Lines Matching refs:Bx
1 var input_data="JVBERi0xLjMKJcTl8uXrp/Og0MTGCjQgMCBvYmoKPDwgL0xlbmd0aCA1IDAgUiAvRmlsdGVyIC9GbGF0ZURlY29kZSA+PgpzdHJlYW0KeAFFjrEKwkAQRHu/4pVJYbJ3mqzXKjYWQmDBQizkMF2E5P4f3CBitW9md4adGZjRiErfxBQT+/5A2DUqGgLLixtv2lMJ5IJQsp9LkzSJps4NYfuXa0+UTZ44GiF+1z47vMsmWrOA08id6lqv0Uj1/MEy1jywC2fzt4YPXCAhiwplbmRzdHJlYW0KZW5kb2JqCjUgMCBvYmoKMTI3CmVuZG9iagoyIDAgb2JqCjw8IC9UeXBlIC9QYWdlIC9QYXJlbnQgMyAwIFIgL1Jlc291cmNlcyA2IDAgUiAvQ29udGVudHMgNCAwIFIgL01lZGlhQm94IFswIDAgNjEyIDc5Ml0KPj4KZW5kb2JqCjYgMCBvYmoKPDwgL1Byb2NTZXQgWyAvUERGIC9UZXh0IF0gL0NvbG9yU3BhY2UgPDwgL0NzMSA3IDAgUiA+PiAvRm9udCA8PCAvVFQxIDggMCBSCj4+ID4+CmVuZG9iago5IDAgb2JqCjw8IC9MZW5ndGggMTAgMCBSIC9OIDEgL0FsdGVybmF0ZSAvRGV2aWNlR3JheSAvRmlsdGVyIC9GbGF0ZURlY29kZSA+PgpzdHJlYW0KeAGFVV1oHFUUPrszO3mJQxFtSyt18K8hpGFSrSYWtdtNurtN2K6bjTZVqtPZ2e50JzPjndm0CX0Kgm9aEMRXRXwSLYjQasTkxb60VKiJFIsgKLRYQRD6IAp+Z3ayOxuRzHBnvjn3O+ee8917GKK+ZcP3nbRGNOeGIl/Jzh6fPaH1fUdpUqmfcBlm4GfL5SnGruda/O697q1Tii039nGs3rktvzI1KzDBWsHwaoE5R5TSiZRh0xchUd/rsI+eDX3G7wM/0KxWcsCfAKuxLyA9mLdcS9imlhfGglYWXt12krluNc8xtrzmnBbnytcejP6gOT2J9yByPlczxhk/BfyhaUxMAw8Br/vh4Uqbk063mjPZtj09VBdHZmL78UarwHiYKL202Ki+DLwN+KJ7qnQs5q+YQe4E8GOw321YRd4PjUjaZofFKjB8JV14FeaDI52sWeMTwM8CLzW9Sc5hJ/ByMD/NduZ/v9jIlYCxlpw+YxwtA28Hvt9y8sxHHHnAD8sccxR4ynVKvC7qld+0gqjGAeBPw0a1EPPXQ1Fl30dg/6tuHykCQ4fMQw1RYDvyyRR8JzpPTwMviVaFa38C+JIhJvLAiJn5yXJnWENgRaGXUgZZ5NEpPE1y6R/UHpBN8xHySWCujm+H8mC4GALDAes00K8UYp6t7B9QEzb2ZUaAZxlDxP4a1fDV9rMxy4gj3o58zE3cHOK4tEgGeO2V78Q8T94h6/KTGAflKfk5eVQeI01+QT4kPy+PwzomH4x8BHwXELVbAa94B1Hbkd6gVk8+q8g5hI9DP4PjRRkGyOBvRGhGzIQaF3a1Bnz/vbeXxGu2ef2dPxLqcG3NuM6uPglfOpZUO9K/tlntzC+Z25k1PG9mbiWq0TI/Zm7hvtlTlxevZqM+G5lvKMva29hVr4e9sQObWVlU7kR7ModqWX3eUVaflWwBh3jWYXVpXzLilfPLOzu8BdLW5Euv3ui/cv5/NWF9WGeLEqrU3Qu7fP/kx6ym9VbpXomWhvSL+l39I/0H/Xd9Tf8A6DfpXekL6WvpsvSldJU0aUValb6RvpU+k77C1+ewrkqXkVvy1LVPWef0INP2OTTjE8b18CkOiBVgNtfP1g2lzmCumymf7c0rsM7dE91ZSz2s7lYfVcfVh9XH1Sl1UD2gHlJ3qPsxRtSCuhczuzsqcU+x1jbeZbw3+s6m2Uir9o5wVg2oJ5ClgbubF/eo3YmGOKn7oDNH63J4jXZ324iixd3roWMNmkHFNp2NtAvw7eAbu/kfb+5JZJd6BSfLlvfII3Ix7sGsfABdONnTj6PcpcqEMq5kSVMGlTFlRDnKOKqVO1RT9mJ2DM+JZPaInuD0KIK/T2idw3+LKOf5C8I+3Qi1/br+jJbFb9LSiq45PKQZjqNFU4EmrMAS81ZtmPgfzH5Ef74Y/VtT26+aLTHftlEqdY3oX/q6h3sKZW5kc3RyZWFtCmVuZG9iagoxMCAwIG9iagoxMDg4CmVuZG9iago3IDAgb2JqClsgL0lDQ0Jhc2VkIDkgMCBSIF0KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9NZWRpYUJveCBbMCAwIDYxMiA3OTJdIC9Db3VudCAxIC9LaWRzIFsgMiAwIFIgXSA+PgplbmRvYmoKMTEgMCBvYmoKPDwgL1R5cGUgL0NhdGFsb2cgL1BhZ2VzIDMgMCBSID4+CmVuZG9iago4IDAgb2JqCjw8IC9UeXBlIC9Gb250IC9TdWJ0eXBlIC9UcnVlVHlwZSAvQmFzZUZvbnQgL05QUEdTRCtIZWx2ZXRpY2EgL0ZvbnREZXNjcmlwdG9yCjEyIDAgUiAvRW5jb2RpbmcgL01hY1JvbWFuRW5jb2RpbmcgL0ZpcnN0Q2hhciA3OCAvTGFzdENoYXIgMTE0IC9XaWR0aHMgWyA3MjIKMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgNTU2IDAgMCAwIDAgMjc4IDAgMCAwIDAgMCAwIDAgMCAwIDAgMAozMzMgXSA+PgplbmRvYmoKMTIgMCBvYmoKPDwgL1R5cGUgL0ZvbnREZXNjcmlwdG9yIC9Gb250TmFtZSAvTlBQR1NEK0hlbHZldGljYSAvRmxhZ3MgMzIgL0ZvbnRCQm94IFstOTUxIC00ODEgMTQ0NSAxMTIyXQovSXRhbGljQW5nbGUgMCAvQXNjZW50IDc3MCAvRGVzY2VudCAtMjMwIC9DYXBIZWlnaHQgNzE3IC9TdGVtViA5OCAvWEhlaWdodAo1MjMgL1N0ZW1IIDg1IC9BdmdXaWR0aCAtNDQxIC9NYXhXaWR0aCAxNTAwIC9Gb250RmlsZTIgMTMgMCBSID4+CmVuZG9iagoxMyAwIG9iago8PCAvTGVuZ3RoIDE0IDAgUiAvTGVuZ3RoMSA2MDgwIC9GaWx0ZXIgL0ZsYXRlRGVjb2RlID4+CnN0cmVhbQp4Ab1Ye3QT15n/vjszkvzASLKN5IeQxCC/3wY/sIOFkYwN2DEYWIngINkIbAc3PsR4A11YJw1NEIRtQiFp4KShTVkeSxhsJ5FhoU4O2SZnNwlJ2/SVnjQbkvbs1if7CN00YM9+d2SrmNPk8Acnc3Xne957v/u739zR3P5t20MwCwZBgNb1wb7NoF0WH5Guzt5gX1Q2v060o3Og3xGVpRwAYevmvi29UdnwXYB425atO6baJ1eR/UpXKLgpaocbRCu6SBGVcQHR+V29/Q9GZfMI0ZSt93dO2ZMLSE7sDT44NT68T7LjG8HeUNTforXvu/+B/inZQLSgb1toyh8pfuFtQNJK8CTEwX2gBwZGKu0A+j/E20AkK7fTVfLWb368cXbtNTDxbgA2Nv+DRt8cPf/y56Eb2QlPGP5Mirhpf051uZO5FCKSfTzhiZhFa0c3KQJt+RFoolpHdSHV/PwlVhjE4/Adqs9RFaAb98EOqnupfo+qGONOkjSK+4ZEg/s87oB0XO5OEO1rUtLs1vgE+7sR1I08a/+V9aMLmEar9yGmDc2CuCXx+Bx+HzaBHX8ELtwJjZCDzwznbrUHyHQS+qgOUhW0O+LJobll9ktYAC4RqU0WzBXxJfvvSwvtH5dGGA7ZX82OiERemUuSe7Z9zPas/ce2LfZLVE9HTadyyeMl+0nbVvvBuRF8Zsj+pC2C1OaJKNluo6Yv2XtzD9s3lWr2lYcj7PSQvZrs69wJ9ooqp32h7aq9ODtiQJILbSvteaVv2udTQ3JzUKcut8meaTtoX0SmuTZv9iKqF/AUHoE8PDLkWm4/TyxNd7gpt+pwBL853JhT6orgTndFY87h3MZsV+5Kuyu3ITub+HWv6x/R36Nfoi/T5+tz9Fl6pz5Dn2IwG4yGJEOiId5gMOgj+E9DdXbdBTwNdQTL6WGDziBF8AVSihfwjKY887JBNDADGFIi6u8oeRFSInh6xMg5Yl7SaZwugmeGo6ozbrvIOVEzGBnn6UZ3YGhgsBwUfDyigz1zBuqsdebFpuoGz5fdAppl+p7/5ZcVbcrhFW0+5ZTNr5RxRrX5p92t08yX0v7tZArV5+evWL1jeKCvZ7M3JHsDsjdENaDsG+iyKoMdDse5nj5ucChCVqCjs4vTYEjpk0MepUf2OM4NaO1uMW/m5gHZcw42e9f4zm12hzxDA+4Brxz0+Ic76re1zxhrb2ysbfV/Zax63tk2PlaH1u6Wsdq5uYOP1c7Haudjdbg7tLH45L3dbfUP9FN2OrzdKxxKTpvStGq9T3EE/Z4IHielZztIY2CULkKONAjpYjHYAdRfUf01p5Nr1U+kn4Bxslf9b6GGFnWUVzZZVwtj8DgcgbOggxPE58C98DS8gT30bG+AEXgP50IR7b0iRGAl/Buq6juwGZ4n/354FQ7BOUikNr2QStYD6FJ3kuwmvgMeUX8A86EKvg0XoZp6PQDj6kl1mKyrYS2cgtPU/l9RZufEZPUF9SoYYBX1+QhZ3lFXqmfBDAVQD62kfQQuoUv4tdoFVqih6I7C9+EYvAJ/xIdxRO1SB9Qr6oeUqlbIhDYqu3AEPxTOit9Wj6r/oU4SEjmQR6MG4CD8kPo/S2WMtlYv3of9eBAPMTd7mI2IeyTL5AThkAvLqDTC/fAYITAKl+F/4M/4KbMKRqFfeE1dqP4vJMAKmiWfSQgGqDxK5QDN6QLqsASXYivuwu/iIfwpy2NrmY/9LXuQfSK0CBuEHcJPxQfEIWm/9LQuYfKaekH9ifpzsIAN7oFtsJtm9ypcgc/gCxSor0x0YQ3W471UBvEIG8VjOMpacQyvsFP4AX6En+J1JrFElsryWT87yE6zV9lbQrdwSPie8IFwTVwsMemY9LHOpf/NZMfk3sm31Br1Q/Vz2mIN4KSVqYcW2AhBmm0fLIC/p1mcoXKWVu0yvAZvaOUjzIRx+JxQADRjOpZhM5UWvBs3Yzc+i+epXNJi+ROjhWBxzMQsLJO1sQ7WywbZz9mgkCHkCcuF9cJZKq8L7wnXheuiJCaLqeIysQn2i73iM1SOiyfEIfFtqVpaLLVI66RBaa+0X+iU3pHe0+3WHdAN6T7V/Rdtiyv19+v30+q8QTn7CuXyXy4R51P0ZfAN6EQPdsBhWo1jGIQwZdcmfIzw6oMctV3YLSxjJZQNl+CblK3PwC7YK2yAY+ovhVPwC8qUrdTlIPyjWA826SlanYehhLJoqrhz83JzsrNc8+V5Tgdt+ZkZ6WlWy5zUlGSzyTgrMSE+zqDXSaLAEAq8ckPAoWQFFDFLbmws5LIcJEXwJkWAHmWH0jDTR3HwdkEyzfB0k+fmWzzdUU93zBONjlqoLSxweGWH8qZHdkRw/Sof8Y97ZL9DGdf4Zo3/jsbPIt7ppAYOr7XL41Aw4PAqDQNdYW/AU1iAo26CI76wgG8cbkjgHSuwNLiLNlhYyj28Srrs8SppMvFkE1ze4CaldZXP68lwOv2kI9VqH41RWNCtUJywL3GTvGlfxA0dAc4FN/gUIehXWID3ZcpXLLJHsez82PoXcZrz7r/JqDBXQzAUblDcgX0ELhcDXAruJ2lFm4O6ZXv8PgX3TAXBY+yhSHm40XeCK9DjUOLkerkr3BMgcGG1byjdna5tvgq0+obS3GmaUFgwat1d46TZjxYuKVzCaY3TujtKf/+tqP7dMU6tuy//juiK1TEAkCMgN1GciqNTG0SmYKv4LVQF4c4qwokuP9I0uymepQqjnBFciuRqCiqDbdNhdHmiwQV6PENxaenaS6jeT/6BsHERrRT5G2VH+Bq9rQPy+B9naoJTGp3LeA24kS90LFcUDE7zA/xl6aJZd1nlLr6+A9qakixbvTcpSObQ8JiVFHqBt/qcisNPCvo3WbAiAnGtvnOIB/wRVPdEwGMbpf+owsZ7yVzAU63bQ+OTUFhAijwncUUFjgYauYHniiPsCDdtCjsaHF2UTKJLo2QIhf3FhGCbj3CCNTSi258RY0N+/yLqp5j3Q03IPeynHnqmeiCqqYonyKmkgF6mQlarb5VPGfRkKG6Pn1aB0nes1aeMUeb6/eRVGouUIt7VbZ2KuYxiLs0je3m0F/rvMkhd+MNh3mebT3YqY+FwRpg/b1E5gnCrwj2liAB34ZBHcLCV2hKRnRnaGjhlJ4Xl55guoJSezij6z/7VCFfE4qaWlRRthYZw1R1CuPp2EF50WwjXxCKdgXAtxVzDEb7r60N48QyE674aYXcsbgpyCUXr1hCuv0MIL70dhD23hbA3FukMhBsoZi9HeNnXh3DjDISbvhrh5bG4KcgVFO1yDeGVdwjh5ttBuOW2EL47FukMhFsp5rs5wqu+PoRXz0C47asRXhOLm4JcS9Gu0RBed4cQ/pvbQdh3Wwj7Y5HOQHg9xeznCN8TQ9idocDN+/DgLdsu3PGNecNNkNM/JckM9fS9dVR8AFazashkp2AvqafPcxLpK2MNyS3g4p/Xt3GxmI8Q42Yy9O2uXRWwH9fhD/AP9Ee8HkC8Qt+EAp0tLY2e9xiKIyBSNRgjAFeocpl44X3iieqJCkTj3ofz1ApgXf556kkiWlJabnKasqnWiwciN/5duvjF0ojYfJ3OD8jjKM06j8aKg3gYcKdUYpWO6dGC2bgMfUzSI2MRPOK2mHU6PdMbBGR0aBEvxMejzsAEbntREtMT9QbuFR8HaQmJzzkH+ugMoOWz2uaJ2hbjnzgxmaurq4uhrq62rpZY8dGi/Ed3vVZaAu3YnlyOpnKTjPQ7+p/sk4sfTMy+xBZJF6+vF49/sVT80fV7KD46doPV6vvaV8ds+p6shd+6q/JKMN6YkJGYmV3eaOyO6zHqqw3mxDgho0w/P85mTLTV5LOi3JqXa1hNWZ7LbNRLhszseZbMCIbdssVm12fbihKYbWFCrb62NjNFn5t3Yn764ozczOWzs6vS7lr8z/gUfWyN4mHQ5tM8/tk4zaf56sRlszaZ8Toq4+Zqk9lS3U5TLBovGkeiJkt1acnSHe6cisrUeYBpLqyY7QTr3AwnzHGkONE5DyqZE9JtFiemOulGZ3j5aKzlZwYPPfQQB2X+nPKyyoq7MAlno06vS8WKyoqFC7LkeXqdXl6M5WX02WJKIScaIgnledlZ2ZxkLVxQUZmMSdtaNvoPO7vKejtK23BkcWrit3Y+XuOMPyH93w8vDmy3uBLnmvIKstrz5sRVvvV3hy6efyr89vqCpuNPpGbqkmZlFm/BrYYCa+GGtpV5bf9ypLHx6YmnMucJwp5EXb3sbux58bFDzyfjVf5kZFISWaR36Uu42Z2vt+nibQLOTqmeM0tnjk+zWNKTZplyLWa9eXaSPYkl3UhJs6bdcG7ZHcVzor36cnHtRK2xxRvyfMKzg1Klbvxn46Ul5sqK8rI5ltQimpQutTxVNlFZWL7wRbluxDTfkpmWsNoxNDJ06JBUv2ADY88zXPvCgRubhKMHTlCuIH9u2ZPiMjDB3e6sbCFrVqWwTBSTDEaWFGeKS8w2SHrQmeIN6clYZMw1QZo5OYLeYWdHNDQK5GqLkYfUXHd54jJPX76wPGGTy1M5/rHYTPLe06nP3ydZbcYM42NPjojFoxVHmHBJYGe3TTzNnzHtUkN05vDXLomUpeCBJjqV4JGbp/YWHZ0pQ0tr67I2T35jaOtAqL+7M6h5TPdC2NMZCdBpDdC5B4BPnbqIhxiPtF/NlHkvN9u1s/Wb/Ldx+/8DxOJICgplbmRzdHJlYW0KZW5kb2JqCjE0IDAgb2JqCjM1NDIKZW5kb2JqCjE1IDAgb2JqCihVbnRpdGxlZCkKZW5kb2JqCjE2IDAgb2JqCihNYWMgT1MgWCAxMC45LjUgUXVhcnR6IFBERkNvbnRleHQpCmVuZG9iagoxNyAwIG9iagooQmVuZWRpa3QgTWV1cmVyKQplbmRvYmoKMTggMCBvYmoKKCkKZW5kb2JqCjE5IDAgb2JqCihUZXh0RWRpdCkKZW5kb2JqCjIwIDAgb2JqCihEOjIwMTUwNDIyMDkxNDE1WjAwJzAwJykKZW5kb2JqCjIxIDAgb2JqCigpCmVuZG9iagoyMiAwIG9iagpbICgpIF0KZW5kb2JqCjEgMCBvYmoKPDwgL1RpdGxlIDE1IDAgUiAvQXV0aG9yIDE3IDAgUiAvU3ViamVjdCAxOCAwIFIgL1Byb2R1Y2VyIDE2IDAgUiAvQ3JlYXRvcgoxOSAwIFIgL0NyZWF0aW9uRGF0ZSAyMCAwIFIgL01vZERhdGUgMjAgMCBSIC9LZXl3b3JkcyAyMSAwIFIgL0FBUEw6S2V5d29yZHMKMjIgMCBSID4+CmVuZG9iagp4cmVmCjAgMjMKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDA2MjIzIDAwMDAwIG4gCjAwMDAwMDAyNDIgMDAwMDAgbiAKMDAwMDAwMTY5MCAwMDAwMCBuIAowMDAwMDAwMDIyIDAwMDAwIG4gCjAwMDAwMDAyMjMgMDAwMDAgbiAKMDAwMDAwMDM0NiAwMDAwMCBuIAowMDAwMDAxNjU1IDAwMDAwIG4gCjAwMDAwMDE4MjMgMDAwMDAgbiAKMDAwMDAwMDQ0MyAwMDAwMCBuIAowMDAwMDAxNjM0IDAwMDAwIG4gCjAwMDAwMDE3NzMgMDAwMDAgbiAKMDAwMDAwMjA3NiAwMDAwMCBuIAowMDAwMDAyMzI3IDAwMDAwIG4gCjAwMDAwMDU5NTkgMDAwMDAgbiAKMDAwMDAwNTk4MCAwMDAwMCBuIAowMDAwMDA2MDA3IDAwMDAwIG4gCjAwMDAwMDYwNTkgMDAwMDAgbiAKMDAwMDAwNjA5MyAwMDAwMCBuIAowMDAwMDA2MTEyIDAwMDAwIG4gCjAwMDAwMDYxMzkgMDAwMDAgbiAKMDAwMDAwNjE4MSAwMDAwMCBuIAowMDAwMDA2MjAwIDAwMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgMjMgL1Jvb3QgMTEgMCBSIC9JbmZvIDEgMCBSIC9JRCBbIDwwMDQwMjhmMDIyMTU2MmVjZmFjOTdlODY5MDc2NmM4OT4KPDAwNDAyOGYwMjIxNTYyZWNmYWM5N2U4NjkwNzY2Yzg5PiBdID4+CnN0YXJ0eHJlZgo2Mzk4CiUlRU9GCg==";
7313 =1;a[b+42|0]=1;c[b+44>>2]=2;j=FW(16)|0;jo(j,0);c[b+48>>2]=j;j=FW(16)|0;wo(j);c[b+52>>2]=j;j=FW(16)|0;wo(j);c[b+56>>2]=j;bXbX(b|0,0,64)|0;bX(y|0,0,96)|0;c[o>>2]=13;m=b+184|0;c[m>>2]=0;c[m+4>>2]=0;m=b+192|0;c[m>>2]=13;l=b+200|0;c[l>>2]=0;c[l+4>>2]=0;l=b+208|0;c[l>>2]=13;g=b+216|0;c[g>>2]=0;c[g+4>>2]=0;g=b+224|0;c[g>>2]=13;j=b+232|0;c[j>>2]=0;c[j+4>>2]=0;j=b+240|0;c[j>>2]=13;k=b+248|0;c[k>>2]=0;c[k+4>>2]=0;k=b+256|0;c[k>>2]=13;q=b+264|0;c[q>>2]=0;c[q+4>>2]=0;q=b+272|0;c[q>>2]=13;u=b+280|0;c[u>>2]=0;A=u+4|0;c[A>>2]=0;c[f>>2]=13;r=n+8|0;c[r>>2]=0;c[r+4>>2]=0;bX(B|0,0,32)|0;t=Xu(e,33160)|0;if((d|0)==0){bX(b|0,0,16)|0;h[b+16>>3]=612.0;h[b+24>>3]=792.0;c[b+168>>2]=0;c[u>>2]=0;bX(z|0,0,33)|0;c[A>>2]=0;c[q>>2]=5}else{$W(b|0,d|0,32)|0;$W(z|0,d+32|0,32)|0;a[b+64|0]=a[d+64|0]&1;c[b+168>>2]=c[d+168>>2];Mf(d+272|0,q)|0}if(ig(0,e,33168,B)|0){$W(b|0,B|0,32)|0}u=b+64|0;do{if(ig(0,e,33184,z)|0){a[u]=1}else{if((a[u]&1)!=0){break}$W(z|0,b|0,32)|0}}while(0);do{if(t){d=b+48|0;u=b+16|0;w=+h[u>>3];v=+h[b>>3];if(+h[d>>3]- +h[z>>3]>w-v){h[z>>3]=v;h[d>>3]=w}A=b+56|0;B=b+40|0;t=b+24|0;w=+h[t>>3];C=b+8|0;v=+h[C>>3];if(+h[A>>3]- +h[B>>3]>w-v){h[B>>3]=v;h[A>>3]=w}$W(y|0,z|0,32)|0;ig(0,e,33192,y)|0;$W(x|0,z|0,32)|0;ig(0,e,33208,x)|0;$W(s|0,z|0,32)|0;ig(0,e,33216,s)|0;w=+h[z>>3];v=+h[b>>3];do{if(w<v){h[z>>3]=v}else{D=+h[u>>3];if(w<=D){break}h[z>>3]=D}}while(0);D=+h[d>>3];do{if(D<v){h[d>>3]=v}else{w=+h[u>>3];if(D<=w){break}h[d>>3]=w}}while(0);D=+h[B>>3];w=+h[C>>3];do{if(D<w){h[B>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[B>>3]=E}}while(0);D=+h[A>>3];do{if(D<w){h[A>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[A>>3]=E}}while(0);D=+h[y>>3];do{if(D<v){h[y>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+88|0;D=+h[y>>3];do{if(D<v){h[y>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+80|0;D=+h[y>>3];do{if(D<w){h[y>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+96|0;E=+h[y>>3];do{if(E<w){h[y>>3]=w}else{D=+h[t>>3];if(E<=D){break}h[y>>3]=D}}while(0);D=+h[x>>3];do{if(D<v){h[x>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+120|0;D=+h[x>>3];do{if(D<v){h[x>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+112|0;D=+h[x>>3];do{if(D<w){h[x>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+128|0;E=+h[x>>3];do{if(E<w){h[x>>3]=w}else{D=+h[t>>3];if(E<=D){break}h[x>>3]=D}}while(0);D=+h[s>>3];do{if(D<v){h[s>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[s>>3]=E}}while(0);s=b+152|0;D=+h[s>>3];do{if(D<v){h[s>>3]=v}else{v=+h[u>>3];if(D<=v){break}h[s>>3]=v}}while(0);s=b+144|0;v=+h[s>>3];do{if(v<w){h[s>>3]=w}else{D=+h[t>>3];if(v<=D){break}h[s>>3]=D}}while(0);s=b+160|0;v=+h[s>>3];if(v<w){h[s>>3]=w;break}w=+h[t>>3];if(v<=w){break}h[s>>3]=w}else{$W(y|0,z|0,32)|0;ig(0,e,33192,y)|0;$W(x|0,z|0,32)|0;ig(0,e,33208,x)|0;$W(s|0,z|0,32)|0;ig(0,e,33216,s)|0}}while(0);Yu(e,33224,n,0)|0;if((c[f>>2]|0)==1){C=b+168|0;c[C>>2]=c[r>>2];r=C}else{r=b+168|0}Of(n);b=c[r>>2]|0;if((b|0)<0){C=~b;b=b+(C-((C>>>0)%360|0))+360|0;c[r>>2]=b}if((b|0)>359){c[r>>2]=((b+ -360|0)>>>0)%360|0}Yu(e,33232,o,0)|0;Yu(e,33248,m,0)|0;Yu(e,33264,l,0)|0;Yu(e,33272,g,0)|0;Yu(e,33288,j,0)|0;Yu(e,33304,k,0)|0;Yu(e,33320,n,0)|0;if((c[f>>2]|0)!=7){Of(n);i=p;return}Of(q);Mf(n,q)|0;Of(n);i=p;return}function ig(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0,t=0.0,u=0,v=0,w=0.0;a=i;n=i;i=i+8|0;o=n;s=i;i=i+8|0;r=s;u=i;i=i+8|0;v=u;p=i;i=i+16|0;f=p;l=i;i=i+16|0;g=l;c[p>>2]=13;m=f+8|0;c[m>>2]=0;c[m+4>>2]=0;c[l>>2]=13;k=g+8|0;c[k>>2]=0;c[k+4>>2]=0;Yu(b,d,f,0)|0;if((c[p>>2]|0)!=6){d=0;Of(f);i=a;return d|0}b=c[m>>2]|0;if((c[b+12>>2]|0)!=4){d=0;Of(f);i=a;return d|0}ut(b,0,g)|0;b=c[l>>2]|0;do{if((b+ -1|0)>>>0<2){if((b|0)==1){j=+(c[k>>2]|0);b=1;break}else{j=+h[k>>3];b=1;break}}else{j=0.0;b=0}}while(0);Of(g);d=c[p>>2]|0;if((d|0)!=6){c[u>>2]=d;c[v+4>>2]=6;Qe(0,33832,v);tc()}ut(c[m>>2]|0,1,g)|0;u=c[l>>2]|0;do{if((u+ -1|0)>>>0<2){if((u|0)==1){q=+(c[k>>2]|0);break}else{q=+h[k>>3];break}}else{q=0.0;b=0}}while(0);Of(g);u=c[p>>2]|0;if((u|0)!=6){c[s>>2]=u;c[r+4>>2]=6;Qe(0,33832,r);tc()}ut(c[m>>2]|0,2,g)|0;r=c[l>>2]|0;do{if((r+ -1|0)>>>0<2){if((r|0)==1){t=+(c[k>>2]|0);break}else{t=+h[k>>3];break}}else{t=0.0;b=0}}while(0);Of(g);p=c[p>>2]|0;if((p|0)!=6){c[n>>2]=p;c[o+4>>2]=6;Qe(0,33832,o);tc()}ut(c[m>>2]|0,3,g)|0;l=c[l>>2]|0;do{if((l+ -1|0)>>>0<2){if((l|0)==1){w=+(c[k>>2]|0);break}else{w=+h[k>>3];break}}else{w=0.0;b=0}}while(0);Of(g);if(j==0.0&t==0.0&q==0.0&w==0.0){d=0;Of(f);i=a;return d|0}g=b&1;if(g<<24>>24==0){d=g<<24>>24!=0;Of(f);i=a;return d|0}k=j>t;g=q>w;h[e>>3]=k?t:j;h[e+8>>3]=g?w:q;h[e+16>>3]=k?j:t;h[e+24>>3]=g?q:w;d=1;Of(f);i=a;return d|0}function jg(a){a=a|0;var b=0;b=i;Of(a+176|0);Of(a+192|0);Of(a+208|0);Of(a+224|0);Of(a+240|0);Of(a+256|0);Of(a+272|0);i=b;return}function kg(b,d,e,f,g,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0.0,S=0,T=0;o=i;t=i;i=i+8|0;u=t;l=i;i=i+8|0;z=l;q=i;i=i+8|0;r=q;F=i;i=i+8|0;G=F;J=i;i=i+8|0;K=J;N=i;i=i+8|0;O=N;Q=i;i=i+16|0;D=Q;T=b+8|0;c[T>>2]=13;C=b+16|0;c[C>>2]=0;c[C+4>>2]=0;C=b+40|0;c[C>>2]=13;H=b+48|0;c[H>>2]=0;I=H+4|0;c[I>>2]=0;m=b+56|0;c[m>>2]=13;E=b+64|0;c[E>>2]=0;y=E+4|0;c[y>>2]=0;x=b+80|0;c[x>>2]=13;A=b+88|0;c[A>>2]=0;B=A+4|0;c[B>>2]=0;P=b+96|0;c[P>>2]=13;s=b+104|0;c[s>>2]=0;c[s+4>>2]=0;s=b+112|0;c[s>>2]=13;v=b+120|0;c[v>>2]=0;w=v+4|0;c[w>>2]=0;c[Q>>2]=13;M=D+8|0;c[M>>2]=0;c[M+4>>2]=0;n=b+136|0;a[n]=1;c[b>>2]=d;p=b+32|0;c[p>>2]=e;L=b+128|0;h[L>>3]=-1.0;e=b+72|0;c[e>>2]=0;Kf(T,f)|0;T=g;S=c[T+4>>2]|0;g=b+24|0;c[g>>2]=c[T>>2];c[g+4>>2]=S;c[b+36>>2]=j;Zu(f,33336,P)|0;g=c[P>>2]|0;if(!((g|0)==5|(g|0)==7|(g|0)==9)){S=c[p>>2]|0;T=Pf(P)|0;c[N>>2]=S;c[O+4>>2]=T;Qe(-1,33344,O);Of(P)}Zu(f,33400,D)|0;N=c[Q>>2]|0;do{if((N+ -1|0)>>>0<2){if((N|0)==1){R=+(c[M>>2]|0)}else{R=+h[M>>3]}h[L>>3]=R}else{if((N|0)==5){break}S=c[p>>2]|0;T=Pf(D)|0;c[J>>2]=S;c[K+4>>2]=T;Qe(-1,33408,K)}}while(0);Of(D);Zu(f,33464,C)|0;T=c[C>>2]|0;do{if((T|0)==5|(T|0)==6|(T|0)==9){T=FW(20)|0;S=Nf(C,c[b>>2]|0,D,0)|0;Qv(T,d,S,c[p>>2]|0,k);c[e>>2]=T;Of(D);Zu(f,33528,m)|0;T=c[m>>2]|0;if(!((T|0)==5|(T|0)==6|(T|0)==9)){S=c[p>>2]|0;T=Pf(m)|0;c[q>>2]=S;c[r+4>>2]=T;Qe(-1,33544,r);Of(m);break}Zu(f,33600,x)|0;T=c[x>>2]|0;if(!((T|0)==9|(T|0)==5|(T|0)==8)){S=c[p>>2]|0;T=Pf(x)|0;c[l>>2]=S;c[z+4>>2]=T;Qe(-1,33608,z);c[A>>2]=0;c[B>>2]=0;c[x>>2]=5}Zu(f,33656,s)|0;T=c[s>>2]|0;if((T|0)==5|(T|0)==7){i=o;return}S=c[p>>2]|0;T=Pf(s)|0;c[t>>2]=S;c[u+4>>2]=T;Qe(-1,33664,u);c[v>>2]=0;c[w>>2]=0;c[s>>2]=5;i=o;return}else{S=c[p>>2]|0;T=Pf(C)|0;c[F>>2]=S;c[G+4>>2]=T;Qe(-1,33472,G);Of(C);c[H>>2]=0;c[I>>2]=0;c[C>>2]=5}}while(0);c[E>>2]=0;c[y>>2]=0;c[m>>2]=5;a[n]=0;i=o;return}function lg(a){a=a|0;var b=0,d=0;b=i;d=c[a+72>>2]|0;if((d|0)!=0){Rv(d);HW(d)}d=c[a+36>>2]|0;if((d|0)!=0){Of(d+176|0);Of(d+192|0);Of(d+208|0);Of(d+224|0);Of(d+240|0);Of(d+256|0);Of(d+272|0);HW(d)}Of(a+8|0);Of(a+40|0);Of(a+56|0);Of(a+96|0);Of(a+80|0);Of(a+112|0);i=b;return}function mg(a,b,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;var t=0,u=0,v=0,w=0;t=i;v=i;i=i+16|0;u=v;c[v>>2]=13;w=u+8|0;c[w>>2]=0;c[w+4>>2]=0;if(!(td[c[(c[b>>2]|0)+56>>2]&1](b,a,d,e,f,g,h,j,k,l,m,n,o,p,q)|0)){i=t;return}f=ng(a,b,d,e,f,g,h,j,k,l,m,0,o,p,q,0,0)|0;Nf(a+56|0,c[a>>2]|0,u,0)|0;if((c[v>>2]|0)!=5){yx(f);vx(f,u,1);tx(f)}Of(u);v=FW(8)|0;w=c[a>>2]|0;bt(v,w,o,Nf(a+40|0,w,u,0)|0);Of(u);u=v+4|0;if((c[u>>2]|0)>0){if(uf(c[834]|0)|0){fb(33904)|0}a:do{if((c[u>>2]|0)>0){if((r|0)==0){r=0;while(1){w=c[(c[v>>2]|0)+(r<<2)>>2]|0;Gd[c[(c[w>>2]|0)+8>>2]&255](w,f,n);r=r+1|0;if((r|0)>=(c[u>>2]|0)){break a}}}else{a=0}do{if(Bd[r&255](c[(c[v>>2]|0)+(a<<2)>>2]|0,s)|0){w=c[(c[v>>2]|0)+(a<<2)>>2]|0;Gd[c[(c[w>>2]|0)+8>>2]&255](w,f,n)}a=a+1|0;}while((a|0)<(c[u>>2]|0))}}while(0);fd[c[(c[b>>2]|0)+68>>2]&511](b)}if((v|0)!=0){dt(v);HW(v)}if((f|0)==0){i=t;return}sx(f);HW(f);i=t;return}function ng(b,d,e,f,g,j,l,m,n,o,p,q,r,s,t,u,v){b=b|0;d=d|0;e=+e;f=+f;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;var w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0,E=0.0;v=i;w=i;i=i+8|0;x=i;i=i+32|0;z=x;A=i;i=i+32|0;y=A;u=i;i=i+8|0;B=i;i=i+32|0;q=B;a[u]=l&1;bXbX(L|0,0,13)|0;Ya=c[e>>2]|0;if((Ya|0)!=7){c[fa>>2]=Ya;c[Xa+4>>2]=7;Qe(0,34440,Xa);tc()}fa=e+8|0;Yu(c[fa>>2]|0,34144,h,0)|0;Xa=c[e>>2]|0;if((Xa|0)!=7){c[Wa>>2]=Xa;c[Va+4>>2]=7;Qe(0,34440,Va);tc()}Yu(c[fa>>2]|0,34152,j,0)|0;Va=c[e>>2]|0;if((Va|0)!=7){c[Ua>>2]=Va;c[Ta+4>>2]=7;Qe(0,34440,Ta);tc()}Yu(c[fa>>2]|0,34160,k,0)|0;Ta=c[e>>2]|0;if((Ta|0)!=7){c[Sa>>2]=Ta;c[Ra+4>>2]=7;Qe(0,34440,Ra);tc()}Yu(c[fa>>2]|0,34168,l,0)|0;Ra=c[e>>2]|0;if((Ra|0)!=7){c[Qa>>2]=Ra;c[Oa+4>>2]=7;Qe(0,34440,Oa);tc()}Yu(c[fa>>2]|0,34176,m,0)|0;Oa=c[e>>2]|0;if((Oa|0)!=7){c[Ma>>2]=Oa;c[Na+4>>2]=7;Qe(0,34440,Na);tc()}Yu(c[fa>>2]|0,34184,f,0)|0;if((c[M>>2]|0)==14){Ya=c[O>>2]|0;Of(f);c[Pa>>2]=0;c[M>>2]=1;c[O>>2]=Ya}Ma=c[(c[La>>2]|0)+28>>2]|0;La=c[Ma+40>>2]|0;if((La|0)!=7){c[Ga>>2]=La;c[Ja+4>>2]=7;Qe(0,34440,Ja);tc()}Yu(c[Ma+48>>2]|0,34192,n,0)|0;a:do{if((c[Fa>>2]|0)==1){if((c[Ha>>2]|0)!=1){o=85;break}if((c[J>>2]|0)!=3){o=85;break}if((c[(c[K>>2]|0)+24>>2]|0)!=32){o=85;break}if((c[G>>2]|0)!=3){o=85;break}if((c[(c[D>>2]|0)+24>>2]|0)!=32){o=85;break}if((c[M>>2]|0)!=1){o=85;break}Ha=c[Ka>>2]|0;Fa=b+36|0;c[Fa>>2]=Ha;Ia=c[Ea>>2]|0;Ea=b+40|0;c[Ea>>2]=Ia;Ga=b+48|0;c[Ga>>2]=0;do{if((Ia|0)==2){o=26}else{if((c[Ca>>2]|0)!=1){o=26;break}c[b+32>>2]=(c[Da>>2]|0)/8|0}}while(0);if((o|0)==26){c[b+32>>2]=5}Ca=b+44|0;a[Ca]=1;do{if((Ha|0)==4&(Ia|0)==4){Da=c[e>>2]|0;if((Da|0)!=7){c[Ba>>2]=Da;c[Aa+4>>2]=7;Qe(0,34440,Aa);tc()}Yu(c[fa>>2]|0,34200,_,0)|0;Aa=c[e>>2]|0;if((Aa|0)!=7){c[za>>2]=Aa;c[ya+4>>2]=7;Qe(0,34440,ya);tc()}Yu(c[fa>>2]|0,34208,Y,0)|0;ya=c[e>>2]|0;if((ya|0)!=7){c[qa>>2]=ya;c[va+4>>2]=7;Qe(0,34440,va);tc()}Yu(c[fa>>2]|0,34216,W,0)|0;do{if((c[ra>>2]|0)==7){if((c[sa>>2]|0)!=4){break}if((c[ta>>2]|0)!=4){break}qa=c[xa>>2]|0;if((Qc(qa|0,c[ua>>2]|0)|0)!=0){break}if((c[(Yu(c[wa>>2]|0,qa,Z,0)|0)>>2]|0)==7){qa=c[la>>2]|0;if((qa|0)!=7){c[oa>>2]=qa;c[ma+4>>2]=7;Qe(0,34440,ma);tc()}Yu(c[ga>>2]|0,34224,V,0)|0;do{if((c[na>>2]|0)==4){ma=c[pa>>2]|0;if((Qc(ma|0,34232)|0)==0){c[Fa>>2]=2;c[Ea>>2]=3;ca=c[la>>2]|0;if((ca|0)!=7){c[ha>>2]=ca;c[ia+4>>2]=7;Qe(0,34440,ia);tc()}do{if((c[(Yu(c[ga>>2]|0,34160,X,0)|0)>>2]|0)==1){ca=c[ea>>2]|0;if((ca|0)==1){c[b+32>>2]=c[$>>2];break}else{c[ba>>2]=ca;c[aa+4>>2]=1;Qe(0,34440,aa);tc()}}}while(0);Of(X);break}if((Qc(ma|0,34240)|0)!=0){break}c[Fa>>2]=2;c[Ea>>2]=3;c[Ga>>2]=1;aa=c[la>>2]|0;if((aa|0)!=7){c[ka>>2]=aa;c[ja+4>>2]=7;Qe(0,34440,ja);tc()}do{if((c[(Yu(c[ga>>2]|0,34160,X,0)|0)>>2]|0)==1){aa=c[ea>>2]|0;if((aa|0)==1){c[b+32>>2]=c[$>>2];break}else{c[da>>2]=aa;c[ca+4>>2]=1;Qe(0,34440,ca);tc()}}}while(0);Of(X)}}while(0);Of(V)}Of(Z)}}while(0);Of(W);Of(Y);Of(_);V=c[e>>2]|0;if((V|0)!=7){c[S>>2]=V;c[T+4>>2]=7;Qe(0,34440,T);tc()}do{if((c[(Yu(c[fa>>2]|0,34248,P,0)|0)>>2]|0)==0){R=c[R>>2]|0;if((R|0)==0){a[Ca]=a[U]&1;break}else{c[Q>>2]=R;c[N+4>>2]=0;Qe(0,34440,N);tc()}}}while(0);Of(P);M=c[M>>2]|0;if((M|0)==1){break}c[I>>2]=M;c[H+4>>2]=1;Qe(0,34440,H);tc()}}while(0);c[b+8>>2]=c[O>>2];H=c[J>>2]|0;if((H|0)!=3){c[F>>2]=H;c[E+4>>2]=3;Qe(0,34440,E);tc()}Ya=c[K>>2]|0;E=FW(32)|0;ie(E,Ya);c[L>>2]=E;E=c[G>>2]|0;if((E|0)!=3){c[A>>2]=E;c[B+4>>2]=3;Qe(0,34440,B);tc()}B=c[D>>2]|0;A=FW(32)|0;ie(A,B);c[C>>2]=A;A=c[Fa>>2]|0;B=c[Ea>>2]|0;do{if((A+ -1|0)>>>0<2){if((B+ -2|0)>>>0>=2){break}if((c[w>>2]|0)==6){do{if((c[(ut(c[z>>2]|0,0,q)|0)>>2]|0)==3){t=c[v>>2]|0;if((t|0)==3){Ya=c[u>>2]|0;p=FW(32)|0;ie(p,Ya);break}else{c[r>>2]=t;c[s+4>>2]=3;Qe(0,34440,s);tc()}}else{p=FW(32)|0;ee(p)}}while(0);c[d>>2]=p;Of(q)}else{Ya=FW(32)|0;ee(Ya);c[d>>2]=Ya}a[y]=1;break a}}while(0);c[x>>2]=A;c[t+4>>2]=B;Qe(-1,34264,t)}else{o=85}}while(0);if((o|0)==85){Qe(-1,34336,Ia)}o=b+32|0;if((c[o>>2]|0)<=16){Of(n);Of(f);Of(m);Of(l);Of(k);Of(j);Of(h);i=g;return}c[o>>2]=16;Of(n);Of(f);Of(m);Of(l);Of(k);Of(j);Of(h);i=g;return}function sg(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=34088;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+52>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+56>>2]|0;if((d|0)==0){HW(a);i=b;return}ke(d);HW(d);HW(a);i=b;return}function tg(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=34088;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+52>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+56>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function ug(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;a=FW(8)|0;if((b|0)==0){b=0}else{f=FW(32)|0;ie(f,b);b=f}if((d|0)==0){d=0}else{f=FW(32)|0;ie(f,d);d=f}c[a>>2]=b;c[a+4>>2]=d;i=e;return a|0}function vg(a){a=a|0;i=i;return 0}function wg(a,b){a=a|0;b=b|0;var d=0;a=i;if((b|0)==0){i=a;return}d=c[b>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[b+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}HW(b);i=a;return}function xg(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;if((a[b+64|0]&1)==0){d=0;i=e;return d|0}if((d|0)==0){f=0;d=0}else{f=c[d>>2]|0;d=c[d+4>>2]|0}d=Cu(c[b+36>>2]|0,c[b+40>>2]|0,c[b+32>>2]|0,c[b+52>>2]|0,c[b+56>>2]|0,c[b+8>>2]|0,c[b+60>>2]|0,f,d,b+13|0,(a[b+44|0]&1)!=0,b+12|0)|0;i=e;return d|0}function yg(a){a=a|0;i=i;return c[a+8>>2]|0}function zg(b){b=b|0;i=i;return(a[b+12|0]&1)!=0|0}function Ag(a){a=a|0;i=i;return a+13|0}function Bg(a){a=a|0;i=i;return c[a+32>>2]|0}function Cg(a){a=a|0;i=i;return c[a+36>>2]|0}function Dg(a){a=a|0;i=i;return c[a+40>>2]|0}function Eg(a){a=a|0;i=i;return c[a+48>>2]|0}function Fg(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Gg(a){a=a|0;i=i;return}function Hg(b,d,e,f){b=b|0;d=+d;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;j=i;i=i+8|0;h=i;i=i+16|0;k=h;m=i;i=i+128|0;n=m;o=c[b+4>>2]|0;l=c[o+8>>2]|0;fB(o,d,n);if((a[b+12|0]&1)!=0){a[f]=(((c[m>>2]|0)*255|0)+32768|0)>>>16;a[f+1|0]=(((c[n+4>>2]|0)*255|0)+32768|0)>>>16;a[f+2|0]=(((c[n+8>>2]|0)*255|0)+32768|0)>>>16;i=g;return}switch(e|0){case 1:case 0:{Gd[c[(c[l>>2]|0)+16>>2]&255](l,n,j);l=0;k=0;h=(((c[j>>2]|0)*255|0)+32768|0)>>>16&255;break};case 2:case 3:case 4:{Gd[c[(c[l>>2]|0)+20>>2]&255](l,n,k);l=(((c[k+8>>2]|0)*255|0)+32768|0)>>>16&255;k=(((c[k+4>>2]|0)*255|0)+32768|0)>>>16&255;h=(((c[h>>2]|0)*255|0)+32768|0)>>>16&255;break};default:{l=0;k=0;h=0}}a[f]=h;a[f+1|0]=k;a[f+2|0]=l;i=g;return}function Ig(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Jg(a){a=a|0;i=i;return}function Kg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0,t=0.0;g=i;k=i;i=i+8|0;m=k;j=i;i=i+16|0;l=j;o=i;i=i+128|0;n=o;s=i;i=i+8|0;r=i;i=i+8|0;Hy(b+8|0,+(d|0),+(e|0),s,r);q=+h[b+104>>3]*((+h[s>>3]- +h[b+56>>3])*+h[b+88>>3]+(+h[r>>3]- +h[b+64>>3])*+h[b+96>>3]);do{if(q<0.0){d=c[b+128>>2]|0;if((a[d+364|0]&1)==0){p=4;break}q=+h[b+112>>3]}else{p=4}}while(0);a:do{if((p|0)==4){do{if(q>1.0){d=c[b+128>>2]|0;if((a[d+365|0]&1)==0){break}q=+h[b+120>>3];break a}}while(0);if(q>=0.0&q<=1.0){t=+h[b+112>>3];d=c[b+128>>2]|0;q=t+q*(+h[b+120>>3]-t);break}else{s=0;i=g;return s|0}}}while(0);WA(d,q,n);n=b+132|0;$W((c[n>>2]|0)+124|0,o|0,128)|0;n=c[n>>2]|0;o=c[n+116>>2]|0;n=n+124|0;switch(c[b+136>>2]|0){case 2:case 3:case 4:{Gd[c[(c[o>>2]|0)+20>>2]&255](o,n,l);m=(((c[l+8>>2]|0)*255|0)+32768|0)>>>16&255;l=(((c[l+4>>2]|0)*255|0)+32768|0)>>>16&255;j=(((c[j>>2]|0)*255|0)+32768|0)>>>16&255;break};case 1:case 0:{Gd[c[(c[o>>2]|0)+16>>2]&255](o,n,m);m=0;l=0;j=(((c[k>>2]|0)*255|0)+32768|0)>>>16&255;break};default:{m=0;l=0;j=0}}a[f]=j;a[f+1|0]=l;a[f+2|0]=m;s=1;i=g;return s|0}function Lg(d,e,f,g,j,k,l,m,n,o,p,q){d=d|0;e=e|0;f=+f;g=+g;j=+j;k=+k;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;r=i;s=i;i=i+8|0;u=e;t=c[u+4>>2]|0;e=d;c[e>>2]=c[u>>2];c[e+4>>2]=t;h[d+8>>3]=f;h[d+16>>3]=g;h[d+24>>3]=j;h[d+32>>3]=k;c[d+40>>2]=l;c[d+44>>2]=m;c[d+48>>2]=n;c[d+52>>2]=o;a[d+56|0]=p&1;if(q){m=da(o,n)|0;c[d+60>>2]=m}else{m=da(n+7>>3,o)|0;c[d+60>>2]=m}p=d+68|0;c[p>>2]=8;do{if((m|0)<257){c[d+64>>2]=8;e=8;l=8}else{if((m|0)<513){c[d+64>>2]=4;e=4;l=8;break}if((m|0)<1025){c[d+64>>2]=2;e=2;l=8;break}if((m|0)<2049){c[d+64>>2]=1;c[p>>2]=4;e=1;l=4;break}c[d+64>>2]=1;if((m|0)<4097){c[p>>2]=2;e=1;l=2;break}else{c[p>>2]=1;e=1;l=1;break}}}while(0);q=d+64|0;do{if((m|0)<(((10485760/(l>>>0)|0)>>>0)/(e>>>0)|0|0)){u=ze(da(e,l)|0,m)|0;c[d+72>>2]=u;if((u|0)==0){break}s=ye(da(c[p>>2]|0,c[q>>2]|0)|0,4)|0;d=d+76|0;c[d>>2]=s;m=c[p>>2]|0;if((da(m,c[q>>2]|0)|0)>0){l=0}else{i=r;return}while(1){b[s+(l<<2)+2>>1]=m+65535&l;l=l+1|0;m=c[p>>2]|0;if((l|0)>=(da(m,c[q>>2]|0)|0)){break}s=c[d>>2]|0}i=r;return}else{Qe(-1,34592,s);c[d+72>>2]=0}}while(0);c[d+76>>2]=0;i=r;return}function Mg(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;k=i;c[b+104>>2]=0;c[b>>2]=34864;l=b+112|0;c[l>>2]=d;d=b+116|0;c[d>>2]=e;e=b+120|0;a[e]=h&1;a[b+121|0]=j&1;do{if(j){if(!(kf(c[834]|0)|0)){h=0;break}h=(c[l>>2]|0)!=0|0}else{h=0}}while(0);j=b+122|0;a[j]=h;a[b+123|0]=0;Ng(b,72.0,72.0);a[b+124|0]=f&1;h=(g|0)==0;f=b+125|0;if(h){a[f]=0;a[b+126|0]=0;a[b+127|0]=0}else{a[f]=a[g]|0;a[b+126|0]=a[g+1|0]|0;a[b+127|0]=a[g+2|0]|0}a[b+109|0]=h&1;c[b+176>>2]=0;g=FW(28)|0;h=c[l>>2]|0;Ke(g,1,1,c[d>>2]|0,h,(h|0)!=0,(a[e]&1)!=0);c[b+180>>2]=g;h=FW(192)|0;Jo(h,g,(a[j]&1)!=0,b+136|0);c[b+184>>2]=h;ep(h,f,0);c[b+188>>2]=0;c[b+240>>2]=0;a[b+108|0]=0;c[b+244>>2]=0;bXbXbX(w|0,0,24)|0;c[w>>2]=0;c[w+4>>2]=0;c[w+12>>2]=0;a[w+16|0]=0;n=b+244|0;c[w+28>>2]=c[n>>2];c[n>>2]=w;n=b+180|0;l=c[n>>2]|0;v=w+20|0;c[v>>2]=l;u=b+184|0;t=w+24|0;c[t>>2]=c[u>>2];d=FW(28)|0;Ke(d,c[l>>2]|0,c[l+4>>2]|0,c[b+116>>2]|0,c[b+112>>2]|0,1,(a[b+120|0]&1)!=0);c[n>>2]=d;l=FW(192)|0;x=b+122|0;o=(a[x]&1)!=0;Ko(l,d,o,Oo(c[t>>2]|0)|0);c[u>>2]=l;t=c[n>>2]|0;Cp(l,c[v>>2]|0,0,0,0,0,c[t>>2]|0,c[t+4>>2]|0)|0;cp(c[u>>2]|0,c[v>>2]|0,0,0);n=c[n>>2]|0;c[w+8>>2]=n;w=FW(28)|0;Ke(w,c[n>>2]|0,c[n+4>>2]|0,1,1,0,1);c[b+248>>2]=w;n=FW(192)|0;Jo(n,w,(a[x]&1)!=0,0);a[m]=0;ep(n,q,0);a[m]=-1;x=FW(8)|0;tq(x,q);Ro(n,x);wp(n,182,s,g,j,r,(c[b+228>>2]|0)!=0)|0;if((n|0)==0){break}Lo(n);HW(n)}else{wp(c[b+184>>2]|0,182,s,g,j,r,(c[b+228>>2]|0)!=0)|0;if(!n){break}if((c[d>>2]|0)>=(j|0)){break}do{Bj(c[p>>2]|0)|0;x=(c[d>>2]|0)+1|0;c[d>>2]=x;}while((x|0)<(j|0))}}while(0);b=c[p>>2]|0;if((b|0)!=0){zj(b);HW(b)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Bh(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=i;p=i;i=i+8|0;o=p;n=i;i=i+16|0;m=n;g=b+28|0;if((c[g>>2]|0)==(c[b+24>>2]|0)){r=0;i=f;return r|0}h=b+4|0;q=c[h>>2]|0;k=c[q+8>>2]|0;l=b+8|0;j=b+16|0;r=c[j>>2]|0;a:do{if((c[l>>2]|0)==0){switch(r|0){case 3:case 2:case 4:{break};case 1:case 0:{l=Bj(c[b>>2]|0)|0;j=b+20|0;if((c[j>>2]|0)>0){m=0}else{break a}while(1){oB(c[h>>2]|0,l,o);a[e]=(((c[p>>2]|0)*255|0)+32768|0)>>>16;m=m+1|0;if((m|0)<(c[j>>2]|0)){e=e+1|0;l=l+k|0}else{break a}}break};default:{break a}}o=q+12|0;l=c[o>>2]|0;do{if((l|0)==0){l=18}else{if(jd[c[(c[l>>2]|0)+36>>2]&511](l)|0){p=Bj(c[b>>2]|0)|0;l=24;break}if((c[o>>2]|0)==0){l=18;break}p=Bj(c[b>>2]|0)|0;l=19}}while(0);if((l|0)==18){r=c[q>>2]|0;r=jd[c[(c[r>>2]|0)+36>>2]&511](r)|0;p=Bj(c[b>>2]|0)|0;if(r){l=24}else{l=19}}if((l|0)==19){o=b+20|0;if((c[o>>2]|0)<=0){break}b=m+4|0;l=m+8|0;q=0;while(1){pB(c[h>>2]|0,p,m);a[e]=(((c[n>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[b>>2]|0)*255|0)+32768|0)>>>16;r=e+3|0;a[e+2|0]=(((c[l>>2]|0)*255|0)+32768|0)>>>16;if((c[j>>2]|0)==4){a[r]=-1;e=e+4|0}else{e=r}q=q+1|0;if((q|0)<(c[o>>2]|0)){p=p+k|0}else{break}}}else if((l|0)==24){k=b+20|0;l=ye(c[k>>2]|0,4)|0;qB(c[h>>2]|0,p,l,c[k>>2]|0);if((c[k>>2]|0)>0){h=0;do{r=l+(h<<2)|0;a[e]=(c[r>>2]|0)>>>16;a[e+1|0]=(c[r>>2]|0)>>>8;m=e+3|0;a[e+2|0]=c[r>>2];if((c[j>>2]|0)==4){a[m]=-1;e=e+4|0}else{e=m}h=h+1|0;}while((h|0)<(c[k>>2]|0))}Fe(l);break}}else{switch(r|0){case 1:case 0:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){a[e]=a[(c[l>>2]|0)+(d[j]|0)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+1|0;j=j+1|0}else{break}}break};case 4:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){r=(d[j]|0)<<2;q=c[l>>2]|0;a[e]=a[q+r|0]|0;a[e+1|0]=a[q+(r|1)|0]|0;a[e+2|0]=a[q+(r|2)|0]|0;a[e+3|0]=a[q+(r|3)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+4|0;j=j+1|0}else{break}}break};case 3:case 2:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){r=(d[j]|0)*3|0;q=c[l>>2]|0;a[e]=a[q+r|0]|0;a[e+1|0]=a[q+(r+1)|0]|0;a[e+2|0]=a[q+(r+2)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+3|0;j=j+1|0}else{break}}break};default:{break a}}}}while(0);c[g>>2]=(c[g>>2]|0)+1;r=1;i=f;return r|0}function Ch(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;g=i;l=i;i=i+16|0;k=l;j=i;i=i+8|0;s=j;m=b+28|0;if((c[m>>2]|0)==(c[b+24>>2]|0)){A=0;i=g;return A|0}p=b+4|0;n=c[(c[p>>2]|0)+8>>2]|0;v=Bj(c[b>>2]|0)|0;o=b+20|0;if((c[o>>2]|0)>0){h=(n|0)>0;q=b+8|0;r=b+16|0;t=k+4|0;u=k+8|0;b=b+12|0;w=0;while(1){a:do{if(h){z=c[b>>2]|0;A=0;while(1){y=d[v+A|0]|0;x=A<<1;if((y|0)<(c[z+(x<<2)>>2]|0)){x=-1;break a}A=A+1|0;if((y|0)>(c[z+((x|1)<<2)>>2]|0)){x=-1;break a}if((A|0)>=(n|0)){x=0;break}}}else{x=0}}while(0);y=c[q>>2]|0;z=c[r>>2]|0;b:do{if((y|0)==0){switch(z|0){case 1:case 0:{oB(c[p>>2]|0,v,s);a[e]=(((c[j>>2]|0)*255|0)+32768|0)>>>16;a[f]=x;f=f+1|0;e=e+1|0;break b};case 3:case 2:case 4:{break};default:{break b}}pB(c[p>>2]|0,v,k);a[e]=(((c[l>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[t>>2]|0)*255|0)+32768|0)>>>16;y=e+3|0;a[e+2|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;if((c[r>>2]|0)==4){a[y]=-1;e=e+4|0}else{e=y}a[f]=x;f=f+1|0}else{switch(z|0){case 3:case 2:{A=(d[v]|0)*3|0;a[e]=a[y+A|0]|0;a[e+1|0]=a[y+(A+1)|0]|0;a[e+2|0]=a[y+(A+2)|0]|0;a[f]=x;f=f+1|0;e=e+3|0;break b};case 4:{A=(d[v]|0)<<2;a[e]=a[y+A|0]|0;a[e+1|0]=a[y+(A|1)|0]|0;a[e+2|0]=a[y+(A|2)|0]|0;a[e+3|0]=-1;a[f]=x;f=f+1|0;e=e+4|0;break b};case 1:case 0:{a[e]=a[y+(d[v]|0)|0]|0;a[f]=x;f=f+1|0;e=e+1|0;break b};default:{break b}}}}while(0);w=w+1|0;if((w|0)<(c[o>>2]|0)){v=v+n|0}else{break}}}c[m>>2]=(c[m>>2]|0)+1;A=1;i=g;return A|0}function Dh(b,d,e,f,g,j,l,m,n,o){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0;e=i;w=i;i=i+48|0;m=w;p=i;i=i+32|0;q=p;x=i;i=i+8|0;y=x;u=i;i=i+16|0;t=u;s=i;i=i+8|0;r=s;z=d+16|0;A=0;do{h[k>>3]=+h[d+16+(A<<3)>>3];B=c[k+4>>2]&2146435072;A=A+1|0;if(!(B>>>0<2146435072|(B|0)==2146435072&(c[k>>2]&0)>>>0<0)){v=20;break}}while((A|0)<6);if((v|0)==20){i=e;return}h[w>>3]=+h[z>>3];h[m+8>>3]=+h[d+24>>3];D=+h[d+32>>3];h[m+16>>3]=-0.0-D;C=+h[d+40>>3];h[m+24>>3]=-0.0-C;h[m+32>>3]=D+ +h[d+48>>3];h[m+40>>3]=C+ +h[d+56>>3];w=FW(28)|0;B=l+8|0;z=l+4|0;yj(w,f,g,c[B>>2]|0,c[z>>2]|0);c[p>>2]=w;Aj(w);c[q+4>>2]=l;c[q+12>>2]=n;w=b+112|0;A=c[w>>2]|0;c[q+16>>2]=A;c[q+20>>2]=g;c[q+24>>2]=j;d=q+28|0;c[d>>2]=0;v=q+8|0;c[v>>2]=0;a:do{if((c[B>>2]|0)==1){z=1<<c[z>>2];switch(A|0){case 4:{c[v>>2]=ye(z,4)|0;if((z|0)<=0){break a}x=t+4|0;y=t+8|0;A=0;do{a[s]=A;pB(l,r,t);B=A<<2;a[(c[v>>2]|0)+B|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|1)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|2)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|3)|0]=-1;A=A+1|0;}while((A|0)<(z|0));break};case 1:case 0:{c[v>>2]=we(z)|0;if((z|0)>0){t=0}else{break a}do{a[s]=t;oB(l,r,y);a[(c[v>>2]|0)+t|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;t=t+1|0;}while((t|0)<(z|0));break};case 3:case 2:{c[v>>2]=ye(z,3)|0;if((z|0)<=0){break a}y=t+4|0;x=t+8|0;A=0;do{a[s]=A;pB(l,r,t);B=A*3|0;a[(c[v>>2]|0)+B|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B+1)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B+2)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;A=A+1|0;}while((A|0)<(z|0));break};default:{break a}}}}while(0);l=c[w>>2]|0;n=(n|0)!=0;yp(c[b+184>>2]|0,n?74:75,q,(l|0)==0?1:l,n,g,j,m)|0;do{if(o){if((c[d>>2]|0)>=(j|0)){break}do{Bj(c[p>>2]|0)|0;B=(c[d>>2]|0)+1|0;c[d>>2]=B;}while((B|0)<(j|0))}}while(0);Fe(c[v>>2]|0);j=c[p>>2]|0;if((j|0)!=0){zj(j);HW(j)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Eh(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;h=i;g=i;i=i+8|0;m=g;k=i;i=i+16|0;j=k;n=i;i=i+8|0;r=n;l=b+28|0;if((c[l>>2]|0)==(c[b+24>>2]|0)){A=0;i=h;return A|0}p=b+4|0;q=c[(c[p>>2]|0)+8>>2]|0;w=Bj(c[b>>2]|0)|0;o=b+20|0;if((c[o>>2]|0)>0){s=b+8|0;t=b+12|0;b=b+16|0;u=j+4|0;v=j+8|0;x=0;while(1){Oe(c[s>>2]|0,x,c[l>>2]|0,m);y=((a[g]|0)!=0)<<31>>31;A=c[t>>2]|0;z=c[b>>2]|0;a:do{if((A|0)==0){switch(z|0){case 1:case 0:{oB(c[p>>2]|0,w,r);a[e]=(((c[n>>2]|0)*255|0)+32768|0)>>>16;a[f]=y;f=f+1|0;e=e+1|0;break a};case 3:case 2:case 4:{break};default:{break a}}pB(c[p>>2]|0,w,j);a[e]=(((c[k>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;z=e+3|0;a[e+2|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;if((c[b>>2]|0)==4){a[z]=-1;e=e+4|0}else{e=z}a[f]=y;f=f+1|0}else{switch(z|0){case 3:case 2:{z=(d[w]|0)*3|0;a[e]=a[A+z|0]|0;a[e+1|0]=a[A+(z+1)|0]|0;a[e+2|0]=a[A+(z+2)|0]|0;a[f]=y;f=f+1|0;e=e+3|0;break a};case 4:{z=d[w]<<2;a[e]=a[A+z|0]|0;a[e+1|0]=a[A+(z|1)|0]|0;a[e+2|0]=a[A+(z|2)|0]|0;a[e+3|0]=-1;a[f]=y;f=f+1|0;e=e+4|0;break a};case 1:case 0:{a[e]=a[A+(d[w]|0)|0]|0;a[f]=y;f=f+1|0;e=e+1|0;break a};default:{break a}}}}while(0);x=x+1|0;if((x|0)<(c[o>>2]|0)){w=w+q|0}else{break}}}c[l>>2]=(c[l>>2]|0)+1;A=1;i=h;return A|0}function Fh(b,d,e,f,g,j,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,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.0,Y=0.0;s=i;K=i;i=i+8|0;L=K;P=i;i=i+8|0;O=P;N=i;i=i+16|0;I=N;V=i;i=i+16|0;Q=V;W=i;i=i+16|0;M=W;C=i;i=i+48|0;u=C;v=i;i=i+32|0;t=v;E=i;i=i+24|0;F=E;G=i;i=i+8|0;H=G;B=i;i=i+8|0;A=B;y=i;i=i+16|0;z=y;x=i;i=i+8|0;w=x;c[N>>2]=13;J=I+8|0;c[J>>2]=0;c[J+4>>2]=0;c[V>>2]=13;U=Q+8|0;c[U>>2]=0;S=U+4|0;c[S>>2]=0;c[W>>2]=13;R=M+8|0;c[R>>2]=0;T=R+4|0;c[T>>2]=0;if((o|0)>(g|0)|(p|0)>(j|0)){t=q&1;c[S>>2]=0;c[V>>2]=1;c[U>>2]=t^1;c[T>>2]=0;c[W>>2]=1;c[R>>2]=t;If(I,c[b+176>>2]|0)|0;t=c[N>>2]|0;if((t|0)!=6){c[P>>2]=t;c[O+4>>2]=6;Qe(0,35856,O);tc()}tt(c[J>>2]|0,Q);t=c[N>>2]|0;if((t|0)!=6){c[K>>2]=t;c[L+4>>2]=6;Qe(0,35856,L);tc()}tt(c[J>>2]|0,M);t=FW(672)|0;W=FW(4)|0;Ty(W);mB(t,1,I,W);Of(I);vd[c[(c[b>>2]|0)+324>>2]&3](b,d,e,f,g,j,l,m,n,o,p,t,r);if((t|0)==0){i=s;return}nB(t);HW(t);i=s;return}h[C>>3]=+(g|0);e=u+8|0;I=u+16|0;J=u+24|0;bX(e|0,0,16)|0;h[J>>3]=+(j|0);r=u+32|0;m=u+40|0;bX(r|0,0,16)|0;K=FW(28)|0;yj(K,n,o,1,1);c[E>>2]=K;Aj(K);a[F+4|0]=q&1^1;c[F+8>>2]=o;c[F+12>>2]=p;c[F+16>>2]=0;q=FW(28)|0;Ke(q,g,j,1,0,0,1);K=FW(192)|0;Jo(K,q,0,0);a[G]=0;ep(K,H,0);a[G]=-1;W=FW(8)|0;tq(W,H);Ro(K,W);wp(K,182,F,o,p,u,0)|0;o=c[E>>2]|0;if((o|0)!=0){zj(o);HW(o)}fd[c[(c[n>>2]|0)+16>>2]&511](n);if((K|0)!=0){Lo(K);HW(K)}n=d+16|0;o=0;do{h[k>>3]=+h[d+16+(o<<3)>>3];W=c[k+4>>2]&2146435072;o=o+1|0;if(!(W>>>0<2146435072|(W|0)==2146435072&(c[k>>2]&0)>>>0<0)){D=15;break}}while((o|0)<6);if((D|0)==15){if((q|0)==0){i=s;return}Le(q);HW(q);i=s;return}h[C>>3]=+h[n>>3];h[e>>3]=+h[d+24>>3];Y=+h[d+32>>3];h[I>>3]=-0.0-Y;X=+h[d+40>>3];h[J>>3]=-0.0-X;h[r>>3]=Y+ +h[d+48>>3];h[m>>3]=X+ +h[d+56>>3];n=FW(28)|0;W=l+8|0;o=l+4|0;yj(n,f,g,c[W>>2]|0,c[o>>2]|0);c[v>>2]=n;Aj(n);c[t+4>>2]=l;c[t+8>>2]=q;n=b+112|0;p=c[n>>2]|0;c[t+16>>2]=p;c[t+20>>2]=g;c[t+24>>2]=j;c[t+28>>2]=0;d=t+12|0;c[d>>2]=0;a:do{if((c[W>>2]|0)==1){o=1<<c[o>>2];switch(p|0){case 4:{c[d>>2]=ye(o,4)|0;if((o|0)<=0){break a}A=z+4|0;B=z+8|0;p=0;do{a[x]=p;pB(l,w,z);W=p<<2;a[(c[d>>2]|0)+W|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|1)|0]=(((c[A>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|2)|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|3)|0]=-1;p=p+1|0;}while((p|0)<(o|0));break};case 1:case 0:{c[d>>2]=we(o)|0;if((o|0)>0){y=0}else{break a}do{a[x]=y;oB(l,w,A);a[(c[d>>2]|0)+y|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;y=y+1|0;}while((y|0)<(o|0));break};case 3:case 2:{c[d>>2]=ye(o,3)|0;if((o|0)<=0){break a}p=z+4|0;B=z+8|0;A=0;do{a[x]=A;pB(l,w,z);W=A*3|0;a[(c[d>>2]|0)+W|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W+1)|0]=(((c[p>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W+2)|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;A=A+1|0;}while((A|0)<(o|0));break};default:{break a}}}}while(0);l=c[n>>2]|0;yp(c[b+184>>2]|0,76,t,(l|0)==0?1:l,1,g,j,u)|0;if((q|0)!=0){Le(q);HW(q)}Fe(c[d>>2]|0);j=c[v>>2]|0;if((j|0)!=0){zj(j);HW(j)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=s;return}function Gh(b,d,e,f,g,j,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0.0,J=0.0;e=i;E=i;i=i+48|0;r=E;s=i;i=i+32|0;m=s;C=i;i=i+32|0;z=C;B=i;i=i+8|0;A=B;x=i;i=i+8|0;y=x;v=i;i=i+16|0;w=v;u=i;i=i+8|0;t=u;G=d+16|0;F=0;do{h[k>>3]=+h[d+16+(F<<3)>>3];H=c[k+4>>2]&2146435072;F=F+1|0;if(!(H>>>0<2146435072|(H|0)==2146435072&(c[k>>2]&0)>>>0<0)){D=23;break}}while((F|0)<6);if((D|0)==23){i=e;return}h[E>>3]=+h[G>>3];h[r+8>>3]=+h[d+24>>3];J=+h[d+32>>3];h[r+16>>3]=-0.0-J;I=+h[d+40>>3];h[r+24>>3]=-0.0-I;h[r+32>>3]=J+ +h[d+48>>3];h[r+40>>3]=I+ +h[d+56>>3];D=FW(28)|0;d=q+4|0;yj(D,n,o,c[q+8>>2]|0,c[d>>2]|0);c[C>>2]=D;Aj(D);c[z+4>>2]=q;c[z+12>>2]=0;c[z+16>>2]=1;c[z+20>>2]=o;c[z+24>>2]=p;c[z+28>>2]=0;d=1<<c[d>>2];D=z+8|0;c[D>>2]=we(d)|0;if((d|0)>0){E=0;do{a[u]=E;oB(q,t,y);a[(c[D>>2]|0)+E|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;E=E+1|0;}while((E|0)<(d|0))}q=FW(28)|0;d=c[b+180>>2]|0;Ke(q,c[d>>2]|0,c[d+4>>2]|0,1,1,0,1);d=FW(192)|0;Jo(d,q,(a[b+122|0]&1)!=0,0);a[B]=0;ep(d,A,0);yp(d,75,z,1,0,o,p,r)|0;p=c[C>>2]|0;if((p|0)!=0){zj(p);HW(p)}fd[c[(c[n>>2]|0)+16>>2]&511](n);Fe(c[D>>2]|0);if((d|0)!=0){Lo(d);HW(d)}n=b+184|0;bp(c[n>>2]|0,q);p=FW(28)|0;H=l+8|0;o=l+4|0;yj(p,f,g,c[H>>2]|0,c[o>>2]|0);c[s>>2]=p;Aj(p);c[m+4>>2]=l;c[m+12>>2]=0;p=b+112|0;q=c[p>>2]|0;c[m+16>>2]=q;c[m+20>>2]=g;c[m+24>>2]=j;c[m+28>>2]=0;b=m+8|0;c[b>>2]=0;a:do{if((c[H>>2]|0)==1){o=1<<c[o>>2];switch(q|0){case 3:case 2:{c[b>>2]=ye(o,3)|0;if((o|0)<=0){break a}x=w+4|0;y=w+8|0;q=0;do{a[u]=q;pB(l,t,w);H=q*3|0;a[(c[b>>2]|0)+H|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H+1)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H+2)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;q=q+1|0;}while((q|0)<(o|0));break};case 4:{c[b>>2]=ye(o,4)|0;if((o|0)<=0){break a}y=w+4|0;q=w+8|0;x=0;do{a[u]=x;pB(l,t,w);H=x<<2;a[(c[b>>2]|0)+H|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|1)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|2)|0]=(((c[q>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|3)|0]=-1;x=x+1|0;}while((x|0)<(o|0));break};case 1:case 0:{c[b>>2]=we(o)|0;if((o|0)>0){v=0}else{break a}do{a[u]=v;oB(l,t,y);a[(c[b>>2]|0)+v|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;v=v+1|0;}while((v|0)<(o|0));break};default:{break a}}}}while(0);l=c[p>>2]|0;yp(c[n>>2]|0,75,m,(l|0)==0?1:l,0,g,j,r)|0;bp(c[n>>2]|0,0);Fe(c[b>>2]|0);g=c[s>>2]|0;if((g|0)!=0){zj(g);HW(g)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Hh(b,d,e,f,g,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0,t=0.0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0,C=0.0,D=0.0,E=0,F=0.0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;j=i;m=i;i=i+8|0;k=m;z=+h[e>>3];y=+h[e+8>>3];C=+h[d+16>>3];x=z*C;q=+h[d+32>>3];D=y*q;p=+h[d+48>>3];t=p+(x+D);A=+h[d+24>>3];z=z*A;w=+h[d+40>>3];y=y*w;n=+h[d+56>>3];F=n+(z+y);o=+h[e+24>>3];q=q*o;x=p+(x+q);o=w*o;z=n+(z+o);do{if(x<t){w=t}else{if(x<=t){w=t;x=t;break}w=x;x=t}}while(0);do{if(z<F){t=F}else{if(z<=F){t=F;z=F;break}t=z;z=F}}while(0);F=+h[e+16>>3];C=F*C;D=p+(C+D);A=F*A;y=n+(A+y);do{if(D<x){x=D}else{if(D<=w){break}w=D}}while(0);do{if(y<z){z=y}else{if(y<=t){break}t=y}}while(0);p=p+(C+q);n=n+(A+o);do{if(p<x){x=p}else{if(p<=w){break}w=p}}while(0);do{if(n<z){z=n}else{if(n<=t){break}t=n}}while(0);e=~~+R(+x);if((e|0)<0){r=0}else{r=c[c[b+180>>2]>>2]|0;r=(e|0)<(r|0)?e:r+ -1|0}e=0-r|0;s=~~+R(+z);B=c[b+180>>2]|0;G=c[B+4>>2]|0;if((s|0)<0){v=0}else{v=(s|0)<(G|0)?s:G+ -1|0}s=0-v|0;H=~~+ca(+w);u=b+180|0;E=c[B>>2]|0;E=(H+1|0)>(E|0)?E-r|0:1-r+H|0;E=(E|0)<1?1:E;H=~~+ca(+t);G=(H+1|0)>(G|0)?G-v|0:1-v+H|0;H=(G|0)<1?1:G;G=FW(32)|0;bXbXE|0}else{Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,36312,v);E=a;Of(d);Of(f);i=e;return E|0}return 0}function rj(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;g=i;Q=i;i=i+8|0;O=Q;x=i;i=i+8|0;t=x;A=i;i=i+8|0;B=A;K=i;i=i+8|0;J=K;L=i;i=i+8|0;M=L;m=i;i=i+8|0;l=m;n=i;i=i+8|0;o=n;r=i;i=i+8|0;s=r;u=i;i=i+8|0;v=u;E=i;i=i+8|0;C=E;I=i;i=i+8|0;F=I;q=i;i=i+8|0;p=q;w=i;i=i+8|0;y=w;D=i;i=i+8|0;z=D;H=i;i=i+8|0;G=H;j=i;i=i+16|0;P=j;k=i;i=i+16|0;h=k;c[j>>2]=13;j=P+8|0;c[j>>2]=0;c[j+4>>2]=0;c[k>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;do{if((Qc(d|0,36352)|0)!=0){if((Qc(d|0,36368)|0)==0){break}do{if((Qc(d|0,36376)|0)!=0){if((Qc(d|0,36392)|0)==0){break}do{if((Qc(d|0,36400)|0)!=0){if((Qc(d|0,36416)|0)==0){break}do{if((Qc(d|0,36496)|0)!=0){if((Qc(d|0,36512)|0)==0){break}do{if((Qc(d|0,36520)|0)!=0){if((Qc(d|0,36536)|0)==0){break}do{if((Qc(d|0,36632)|0)!=0){if((Qc(d|0,36648)|0)==0){break}do{if((Qc(d|0,36672)|0)!=0){if((Qc(d|0,36688)|0)==0){break}if((Qc(d|0,36696)|0)==0){if((c[f>>2]|0)==7){Yu(c[f+8>>2]|0,36712,P,0)|0}b=FW(152)|0;bD(b,e,P);Of(P);i=g;return b|0}if((Qc(d|0,36728)|0)==0){b=FW(220)|0;FD(b,e);i=g;return b|0}else{b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[Q>>2]=d;Qe(b,36744,O);b=FW(12)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=48040;i=g;return b|0}}}while(0);if((c[f>>2]|0)==7){n=f+8|0;Yu(c[n>>2]|0,36424,h,0)|0;if((c[k>>2]|0)==1){l=c[j>>2]|0}else{l=1}Of(h);m=c[f>>2]|0;if((m|0)!=7){c[K>>2]=m;c[J+4>>2]=7;Qe(0,48632,J);tc()}Yu(c[n>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){m=c[j>>2]|0}else{m=1}Of(h);o=c[f>>2]|0;if((o|0)!=7){c[A>>2]=o;c[B+4>>2]=7;Qe(0,48632,B);tc()}Yu(c[n>>2]|0,36448,h,0)|0;if((c[k>>2]|0)==1){o=c[j>>2]|0}else{o=1}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[x>>2]=f;c[t+4>>2]=7;Qe(0,48632,t);tc()}Yu(c[n>>2]|0,36456,h,0)|0;if((c[k>>2]|0)==1){j=c[j>>2]|0}else{j=8}Of(h);h=j}else{h=8;o=1;m=1;l=1}b=FW(34100)|0;ql(b,e,l,m,o,h);i=g;return b|0}}while(0);if((c[f>>2]|0)==7){do{if((c[(Yu(c[f+8>>2]|0,36656,h,0)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)==1){N=c[j>>2]|0;break}else{c[L>>2]=k;c[M+4>>2]=1;Qe(0,48632,M);tc()}}else{N=-1}}while(0);Of(h)}else{N=-1}h=FW(4016)|0;c[h+4>>2]=1;c[h+8>>2]=e;c[h>>2]=43144;c[h+180>>2]=N;a[h+13|0]=0;a[h+12|0]=0;c[h+176>>2]=0;bX(h+16|0,0,16)|0;bX(h+3452|0,0,544)|0;if(a[43240]&1){b=h;i=g;return b|0}bX(43248,0,256)|0;e=0;do{a[e+43504|0]=e;e=e+1|0;}while((e|0)<256);bX(43760|0,-1,256)|0;a[43240]=1;b=h;i=g;return b|0}}while(0);if((c[f>>2]|0)==7){t=f+8|0;Yu(c[t>>2]|0,36544,h,0)|0;if((c[k>>2]|0)==1){q=c[j>>2]|0}else{q=0}Of(h);p=c[f>>2]|0;if((p|0)!=7){c[I>>2]=p;c[F+4>>2]=7;Qe(0,48632,F);tc()}Yu(c[t>>2]|0,36552,h,0)|0;if((c[k>>2]|0)==0){p=(a[j]&1)!=0}else{p=0}Of(h);w=c[f>>2]|0;if((w|0)!=7){c[E>>2]=w;c[C+4>>2]=7;Qe(0,48632,C);tc()}Yu(c[t>>2]|0,36568,h,0)|0;if((c[k>>2]|0)==0){w=(a[j]&1)!=0}else{w=0}Of(h);x=c[f>>2]|0;if((x|0)!=7){c[u>>2]=x;c[v+4>>2]=7;Qe(0,48632,v);tc()}Yu(c[t>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){u=c[j>>2]|0}else{u=1728}Of(h);v=c[f>>2]|0;if((v|0)!=7){c[r>>2]=v;c[s+4>>2]=7;Qe(0,48632,s);tc()}Yu(c[t>>2]|0,36592,h,0)|0;if((c[k>>2]|0)==1){r=c[j>>2]|0}else{r=0}Of(h);s=c[f>>2]|0;if((s|0)!=7){c[n>>2]=s;c[o+4>>2]=7;Qe(0,48632,o);tc()}Yu(c[t>>2]|0,36600,h,0)|0;if((c[k>>2]|0)==0){n=(a[j]&1)!=0}else{n=1}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[m>>2]=f;c[l+4>>2]=7;Qe(0,48632,l);tc()}Yu(c[t>>2]|0,36616,h,0)|0;if((c[k>>2]|0)==0){j=(a[j]&1)!=0}else{j=0}Of(h);h=j}else{q=0;h=0;w=0;u=1728;n=1;p=0;r=0}j=FW(68)|0;c[j+4>>2]=1;c[j+8>>2]=e;c[j>>2]=38440;c[j+12>>2]=q;a[j+16|0]=p&1;a[j+17|0]=w&1;e=j+20|0;c[e>>2]=u;do{if((u|0)<1){c[e>>2]=1;u=1}else{if((u|0)<=2147483645){break}c[e>>2]=2147483645;u=2147483645}}while(0);c[j+24>>2]=r;a[j+28|0]=n&1;a[j+29|0]=h&1;e=ze(u+1|0,4)|0;c[j+44>>2]=e;b=ze(u+2|0,4)|0;c[j+48>>2]=b;h=j+30|0;if((e|0)==0|(b|0)==0){a[h]=1}else{a[h]=0;c[e>>2]=u}c[j+32>>2]=0;a[j+31|0]=q>>>31;c[j+40>>2]=0;c[j+52>>2]=0;c[j+60>>2]=0;c[j+64>>2]=-1;b=j;i=g;return b|0}}while(0);b=FW(152)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=38304;Q=b+12|0;c[b+144>>2]=Q;c[b+140>>2]=Q;a[b+148|0]=0;i=g;return b|0}}while(0);if((c[f>>2]|0)==7){m=f+8|0;Yu(c[m>>2]|0,36424,h,0)|0;if((c[k>>2]|0)==1){l=c[j>>2]|0}else{l=1}Of(h);n=c[f>>2]|0;if((n|0)!=7){c[H>>2]=n;c[G+4>>2]=7;Qe(0,48632,G);tc()}Yu(c[m>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){n=c[j>>2]|0}else{n=1}Of(h);o=c[f>>2]|0;if((o|0)!=7){c[D>>2]=o;c[z+4>>2]=7;Qe(0,48632,z);tc()}Yu(c[m>>2]|0,36448,h,0)|0;if((c[k>>2]|0)==1){o=c[j>>2]|0}else{o=1}Of(h);r=c[f>>2]|0;if((r|0)!=7){c[w>>2]=r;c[y+4>>2]=7;Qe(0,48632,y);tc()}Yu(c[m>>2]|0,36456,h,0)|0;if((c[k>>2]|0)==1){r=c[j>>2]|0}else{r=8}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[q>>2]=f;c[p+4>>2]=7;Qe(0,48632,p);tc()}Yu(c[m>>2]|0,36480,h,0)|0;if((c[k>>2]|0)==1){j=c[j>>2]|0}else{j=1}Of(h)}else{r=8;o=1;n=1;j=1;l=1}b=FW(53324)|0;tk(b,e,l,n,o,r,j);i=g;return b|0}}while(0);b=FW(60)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=37936;c[b+52>>2]=0;c[b+48>>2]=0;a[b+56|0]=0;i=g;return b|0}}while(0);b=FW(20)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=37760;c[b+12>>2]=-1;a[b+16|0]=0;i=g;return b|0}function sj(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);HW(a);i=b;return}function tj(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);i=b;return}function uj(a,b){a=a|0;b=b|0;c[a+4>>2]=1;c[a>>2]=36904;c[a+8>>2]=b;i=i;return}function vj(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function wj(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;fd[c[(c[a>>2]|0)+16>>2]&511](a);i=b;return}function xj(a,b,c){a=a|0;b=b|0;c=c|0;c=i;b=i;i=i+8|0;Qe(-1,37e3,b);i=c;return}function yj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;c[a+12>>2]=f;h=da(e,d)|0;b=a+16|0;c[b>>2]=h;if((f|0)==1){h=h+7&-8}c[a+20>>2]=ye((2147483647/(e|0)|0|0)<(d|0)?-1:h,1)|0;c[a+24>>2]=c[b>>2];i=g;return}function zj(a){a=a|0;var b=0;b=i;Fe(c[a+20>>2]|0);i=b;return}function Aj(a){a=a|0;var b=0;b=i;a=c[a>>2]|0;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function Bj(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;e=b+12|0;k=c[e>>2]|0;if((k|0)==8){f=c[b+20>>2]|0;g=c[b>>2]|0;e=b+16|0;h=c[e>>2]|0;a:do{if(jd[c[(c[g>>2]|0)+88>>2]&511](g)|0){h=sd[c[(c[g>>2]|0)+92>>2]&127](g,h,f)|0}else{if((h|0)>0){j=0}else{break}do{k=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((k|0)==-1){h=j;break a}a[f+j|0]=k;j=j+1|0;}while((j|0)<(h|0))}}while(0);if((h|0)>=(c[e>>2]|0)){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}do{a[f+h|0]=-1;h=h+1|0;}while((h|0)<(c[e>>2]|0));n=b+20|0;n=c[n>>2]|0;i=d;return n|0}else if((k|0)==16){f=b+16|0;if((c[f>>2]|0)<=0){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}e=b+20|0;g=0;do{n=c[b>>2]|0;n=(jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)&255;a[(c[e>>2]|0)+g|0]=n;n=c[b>>2]|0;jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));n=b+20|0;n=c[n>>2]|0;i=d;return n|0}else if((k|0)==1){e=b+16|0;if((c[e>>2]|0)<=0){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}f=b+20|0;g=0;do{n=c[b>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;a[(c[f>>2]|0)+g|0]=n>>>7&1;a[(c[f>>2]|0)+(g|1)|0]=n>>>6&1;a[(c[f>>2]|0)+(g|2)|0]=n>>>5&1;a[(c[f>>2]|0)+(g|3)|0]=n>>>4&1;a[(c[f>>2]|0)+(g|4)|0]=n>>>3&1;a[(c[f>>2]|0)+(g|5)|0]=n>>>2&1;a[(c[f>>2]|0)+(g|6)|0]=n>>>1&1;a[(c[f>>2]|0)+(g|7)|0]=n&1;g=g+8|0;}while((g|0)<(c[e>>2]|0));n=b+20|0;n=c[n>>2]|0;i=d;return n|0}else{h=(1<<k)+255|0;g=b+16|0;if((c[g>>2]|0)<=0){n=b+20|0;n=c[n>>2]|0;i=d;return n|0}f=b+20|0;j=0;l=0;m=0;while(1){if((j|0)<(k|0)){k=c[b>>2]|0;l=(jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)&255|l<<8;k=c[e>>2]|0;j=j+8|0}a[(c[f>>2]|0)+m|0]=l>>>(j-k|0)&h;n=c[e>>2]|0;m=m+1|0;if((m|0)<(c[g>>2]|0)){k=n;j=j-n|0}else{break}}n=b+20|0;n=c[n>>2]|0;i=d;return n|0}return 0}function Cj(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;k=i;i=i+72|0;g=k;j=b+4|0;n=c[j>>2]|0;do{if((n|0)>9){f=c[b>>2]|0;f=jd[c[(c[f>>2]|0)+28>>2]&511](f)|0;if((f|0)==-1){w=0;i=e;return w|0}else{n=f+10|0;break}}}while(0);h=b+28|0;f=b+24|0;m=(c[h>>2]|0)-(c[f>>2]|0)|0;l=GW(m>>>0>1073741823?-1:m<<2)|0;o=c[b>>2]|0;Gd[c[(c[o>>2]|0)+32>>2]&255](o,m,l);o=c[f>>2]|0;bX(k|0,0,o+1|0)|0;a:do{if((o|0)<(c[h>>2]|0)){m=b+32|0;b:do{if((n|0)==11){t=o;while(1){if((t|0)>0){n=t;while(1){p=n+ -1|0;a[g+n|0]=a[g+p|0]|0;if((p|0)>0){n=p}else{break}}}r=c[m>>2]|0;n=r+o|0;a[k]=a[n]|0;q=o-t|0;p=c[l+(q<<2)>>2]|0;if((p|0)==-1){break b}a[n]=(d[r+q|0]|0)+p;o=o+1|0;if((o|0)>=(c[h>>2]|0)){break a}t=c[f>>2]|0}}else{t=o;while(1){if((t|0)>0){q=t;while(1){p=q+ -1|0;a[g+q|0]=a[g+p|0]|0;if((p|0)>0){q=p}else{break}}}r=c[m>>2]|0;p=r+o|0;s=a[p]|0;a[k]=s;u=o-t|0;q=c[l+(u<<2)>>2]|0;if((q|0)==-1){break b}do{if((n|0)==12){a[p]=(s&255)+q}else if((n|0)==14){r=d[r+u|0]|0;s=s&255;t=d[g+t|0]|0;w=s+r-t|0;u=w-r|0;u=(u|0)<0?0-u|0:u;v=w-s|0;v=(v|0)<0?0-v|0:v;w=w-t|0;w=(w|0)<0?0-w|0:w;if(!((u|0)>(v|0)|(u|0)>(w|0))){a[p]=r+q;break}if((v|0)>(w|0)){a[p]=t+q;break}else{a[p]=s+q;break}}else if((n|0)==13){a[p]=(((s&255)+(d[r+u|0]|0)|0)>>>1)+q}else{a[p]=q}}while(0);o=o+1|0;if((o|0)>=(c[h>>2]|0)){break a}t=c[f>>2]|0}}}while(0);if((o|0)>(t|0)){break}if((l|0)==0){w=0;i=e;return w|0}IW(l);w=0;i=e;return w|0}}while(0);if((l|0)!=0){IW(l)}c:do{if((c[j>>2]|0)==2){j=b+16|0;l=c[j>>2]|0;if((l|0)==1){m=c[f>>2]|0;g=b+32|0;if((m|0)>=(c[h>>2]|0)){break}w=c[g>>2]|0;k=b+12|0;j=w;l=m;m=d[w+(m+ -1)|0]|0;while(1){w=j+l|0;v=d[w]|0;m=v|m<<8;a[w]=m>>>(c[k>>2]|0)^v;l=l+8|0;if((l|0)>=(c[h>>2]|0)){break c}j=c[g>>2]|0}}else if((l|0)==8){k=c[f>>2]|0;if((k|0)>=(c[h>>2]|0)){break}g=b+12|0;j=b+32|0;do{v=c[j>>2]|0;w=v+k|0;a[w]=(a[w]|0)+(a[v+(k-(c[g>>2]|0))|0]|0)<<24>>24;k=k+1|0;}while((k|0)<(c[h>>2]|0))}else{h=b+12|0;o=c[h>>2]|0;bXbX(b+32|0,0,16)|0;c[h>>2]=4;break}else{k=1;while(1){l=b+12+(k<<2)|0;do{m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;c[l>>2]=m;}while(hE(m)|0);m=c[l>>2]|0;if((m|0)==-1|(m|0)==126){j=12;break}l=k+1|0;if((l|0)<5){k=l}else{j=16;break}}do{if((j|0)==12){c[h>>2]=k+ -1;m=c[l>>2]|0;if(!((m|0)==-1|(m|0)==126)){break}h=k+1|0;if((h|0)<5){do{c[b+12+(h<<2)>>2]=117;h=h+1|0;}while((h|0)<5)}a[f]=1}else if((j|0)==16){c[h>>2]=k}}while(0);m=((((((((c[d>>2]|0)*85|0)+ -2838+(c[b+16>>2]|0)|0)*85|0)+ -33+(c[b+20>>2]|0)|0)*85|0)+ -33+(c[b+24>>2]|0)|0)*85|0)+ -33+(c[b+28>>2]|0)|0;c[b+44>>2]=m&255;c[b+40>>2]=m>>>8&255;c[b+36>>2]=m>>>16&255;c[b+32>>2]=m>>>24;break}}}while(0);m=c[b+32+(c[e>>2]<<2)>>2]|0;i=g;return m|0}function rk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,38032,-1)|0;b=a;i=e;return b|0}function sk(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,0)|0;i=d;return b|0}function tk(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0;k=i;c[b+4>>2]=1;c[b+8>>2]=d;c[b>>2]=38064;a:do{if((e|0)==1){c[b+12>>2]=0}else{d=FW(44)|0;c[d>>2]=b;c[d+4>>2]=e;c[d+8>>2]=f;c[d+12>>2]=g;c[d+16>>2]=h;e=d+32|0;c[e>>2]=0;n=d+40|0;a[n]=0;o=da(g,f)|0;c[d+20>>2]=o;l=(da(h,g)|0)+7>>3;c[d+24>>2]=l;l=((da(o,h)|0)+7>>3)+l|0;m=d+28|0;c[m>>2]=l;do{if(!((f|0)<1|(g|0)<1)){if((h|0)<1|(g|0)>32|(h|0)>16){break}if((2147483647/(g|0)|0|0)<=(f|0)){break}if((o|0)>=(2147483640/(h|0)|0|0)){break}o=we(l)|0;c[e>>2]=o;bXbX(q|0)==8){Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,44384,n);t=0;i=g;return t|0}else if((q|0)==11){if((o|0)<(1<<p+ -1|0)){m=(-1<<p)+1+o|0}else{m=o}if((m|0)==9999){j=0}else{break}i=g;return j|0}else if((q|0)==33){i=g;return j|0}}else{m=0}}while(0);m=(c[e>>2]|0)+m|0;c[e>>2]=m;c[f>>2]=m;bXl|0)>=5){g=7;break}}if((g|0)==5){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44736,j);l=0;i=d;return l|0}else if((g|0)==7){l=k+ -7|0;if((iX(h|0,44760,5)|0)!=0){break}a[b+184|0]=1;break}}}while(0);if((l|0)<=0){l=1;i=d;return l|0}while(1){k=c[e>>2]|0;l=l+ -1|0;if((jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)==-1){break}if((l|0)>0){}else{b=1;g=13;break}}if((g|0)==13){i=d;return b|0}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44736,f);l=0;i=d;return l|0}function nl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;f=i;i=i+8|0;g=i;i=i+16|0;e=b+8|0;j=c[e>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;a:do{if((j|0)!=-1){h=c[e>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((h|0)==-1){break}h=h+(j<<8)|0;if((h|0)<14){break}else{j=0}do{k=c[e>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break a}a[g+j|0]=k;j=j+1|0;}while((j|0)<12);if((vc(g|0,44768,5)|0)!=0){break}c[b+180>>2]=a[g+11|0]|0;a[b+185|0]=1;if((h|0)>14){g=14}else{k=1;i=d;return k|0}while(1){k=c[e>>2]|0;g=g+1|0;if((jd[c[(c[k>>2]|0)+20>>2]&511](k)|0)==-1){break a}if((g|0)<(h|0)){}else{b=1;break}}i=d;return b|0}}while(0);Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,44776,f);k=0;i=d;return k|0}function ol(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,44824,-1)|0;b=a;i=e;return b|0}function pl(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function ql(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 j=0,k=0,l=0,m=0,n=0;j=i;c[b+4>>2]=1;c[b+8>>2]=d;c[b>>2]=47624;a:do{if((e|0)==1){c[b+12>>2]=0}else{d=FW(44)|0;c[d>>2]=b;c[d+4>>2]=e;c[d+8>>2]=f;c[d+12>>2]=g;c[d+16>>2]=h;e=d+32|0;c[e>>2]=0;m=d+40|0;a[m]=0;n=da(g,f)|0;c[d+20>>2]=n;k=(da(h,g)|0)+7>>3;c[d+24>>2]=k;k=((da(n,h)|0)+7>>3)+k|0;l=d+28|0;c[l>>2]=k;do{if(!((f|0)<1|(g|0)<1)){if((h|0)<1|(g|0)>32|(h|0)>16){break}if((2147483647/(g|0)|0|0)<=(f|0)){break}if((n|0)>=(2147483640/(h|0)|0|0)){break}n=we(k)|0;c[e>>2]=n;bX(n|0,0,c[l>>2]|0)|0;c[d+36>>2]=c[l>>2];a[m]=1;c[b+12>>2]=d;break a}}while(0);h=b+12|0;c[h>>2]=d;if((d|0)!=0){Fe(c[e>>2]|0);HW(d)}c[h>>2]=0}}while(0);c[b+34072>>2]=0;c[b+34080>>2]=0;bX(b+16|0,0,32768)|0;i=j;return}function rl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=47624;d=c[a+34072>>2]|0;if((d|0)!=(c[11868]|0)){Fe(d)}d=c[a+34080>>2]|0;if((d|0)!=(c[11902]|0)){Fe(d)}d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function sl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=47624;d=c[a+34072>>2]|0;if((d|0)!=(c[11868]|0)){Fe(d)}d=c[a+34080>>2]|0;if((d|0)!=(c[11902]|0)){Fe(d)}d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function tl(b){b=b|0;var d=0;d=i;a[b+34088|0]=0;bX(b+32784|0,0,16)|0;a[b+34096|0]=1;a[b+34097|0]=1;b=c[b+8>>2]|0;fd[c[(c[b>>2]|0)+12>>2]&511](b);i=d;return}function ul(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;h=i;i=i+8|0;f=i;i=i+8|0;e=i;i=i+8|0;fd[c[(c[b>>2]|0)+40>>2]&511](b);g=b+34097|0;a[g]=1;a[b+34096|0]=1;j=b+8|0;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;j=c[j>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((k|0)==-1|(j|0)==-1){i=d;return}if((k&15|0)!=8){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47720,e);i=d;return}if(((j+(k<<8)|0)%31|0|0)!=0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47768,f);i=d;return}if((j&32|0)==0){a[g]=0;i=d;return}else{Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47800,h);i=d;return}}function vl(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){b=f+36|0;g=c[b>>2]|0;do{if((g|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){g=c[b>>2]|0;break}else{j=-1;i=e;return j|0}}}while(0);c[b>>2]=g+1;j=d[(c[f+32>>2]|0)+g|0]|0;i=e;return j|0}f=b+32788|0;j=c[f>>2]|0;a:do{if((j|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);j=c[f>>2]|0;if((j|0)!=0){break a}}i=e;return b|0}}while(0);g=b+32784|0;k=c[g>>2]|0;h=d[b+16+k|0]|0;c[g>>2]=k+1&32767;c[f>>2]=j+ -1;j=h;i=e;return j|0}function wl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;f=b+12|0;j=c[f>>2]|0;h=(d|0)>0;if((j|0)!=0){if(!h){p=d;i=g;return p|0}l=j+36|0;n=j+28|0;k=j+32|0;m=0;while(1){o=c[l>>2]|0;if((o|0)>=(c[n>>2]|0)){if(!(Cj(j)|0)){j=22;break}o=c[l>>2]|0}c[l>>2]=o+1;a[e+m|0]=a[(c[k>>2]|0)+o|0]|0;m=m+1|0;if((m|0)>=(d|0)){m=d;j=22;break}}if((j|0)==22){i=g;return m|0}}if(!h){p=d;i=g;return p|0}k=b+32788|0;l=b+34096|0;h=b+34097|0;j=b+32784|0;n=0;m=0;a:while(1){if((n|0)==0){n=c[k>>2]|0;if((n|0)==0){do{if((a[l]&1)!=0){if((a[h]&1)!=0){j=22;break a}}yl(b);n=c[k>>2]|0;}while((n|0)==0)}o=c[j>>2]|0;p=a[b+16+o|0]|0;c[j>>2]=o+1&32767;c[k>>2]=n+ -1;n=p}else{o=n+36|0;p=c[o>>2]|0;if((p|0)>=(c[n+28>>2]|0)){if(!(Cj(n)|0)){j=22;break}p=c[o>>2]|0}c[o>>2]=p+1;n=a[(c[n+32>>2]|0)+p|0]|0}a[e+m|0]=n;m=m+1|0;if((m|0)>=(d|0)){m=d;j=22;break}n=c[f>>2]|0}if((j|0)==22){i=g;return m|0}return 0}function xl(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){g=f+36|0;b=c[g>>2]|0;do{if((b|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){b=c[g>>2]|0;break}else{h=-1;i=e;return h|0}}}while(0);h=d[(c[f+32>>2]|0)+b|0]|0;i=e;return h|0}f=b+32788|0;a:do{if((c[f>>2]|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);if((c[f>>2]|0)!=0){break a}}i=e;return b|0}}while(0);h=d[b+16+(c[b+32784>>2]|0)|0]|0;i=e;return h|0}function yl(d){d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;k=i;i=i+8|0;g=d+34096|0;do{if((a[g]&1)!=0){if(Dl(d)|0){break}i=f;return}}while(0);if((a[d+34088|0]&1)==0){h=d+34092|0;j=c[h>>2]|0;j=(j|0)<32768?j:32768;a:do{if((j|0)>0){k=d+8|0;n=0;l=c[d+32784>>2]|0;while(1){m=c[k>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}a[d+16+l|0]=m;n=n+1|0;if((n|0)<(j|0)){l=l+1&32767}else{break a}}a[d+34097|0]=1;a[g]=1}else{n=0}}while(0);c[d+32788>>2]=n;s=c[h>>2]|0;c[h>>2]=s-j;if((s|0)!=(j|0)){i=f;return}a[g]=1;i=f;return}l=d+8|0;h=d+32796|0;m=c[h>>2]|0;n=d+34076|0;o=c[n>>2]|0;j=d+32792|0;b:do{if((m|0)<(o|0)){while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}o=c[h>>2]|0;c[j>>2]=c[j>>2]|(m&255)<<o;m=o+8|0;c[h>>2]=m;o=c[n>>2]|0;if((m|0)>=(o|0)){break b}}m=c[h>>2]|0;o=c[n>>2]|0}}while(0);n=c[j>>2]|0;o=(1<<o)+ -1&n;p=c[d+34072>>2]|0;c:do{if((m|0)!=0){q=p+(o<<2)|0;s=b[q>>1]|0;r=s&65535;if((m|0)<(r|0)|s<<16>>16==0){break}n=n>>r;c[j>>2]=n;q=m-(e[q>>1]|0)|0;c[h>>2]=q;m=b[p+(o<<2)+2>>1]|0;if((m&65535)<256){a[d+16+(c[d+32784>>2]|0)|0]=m;c[d+32788>>2]=1;i=f;return}if(m<<16>>16==256){a[g]=1;c[d+32788>>2]=0;i=f;return}m=(m&65535)+ -257|0;o=c[44936+(m<<3)>>2]|0;if((o|0)>0){if((q|0)<(o|0)){do{n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break c}q=c[h>>2]|0;n=c[j>>2]|(n&255)<<q;c[j>>2]=n;q=q+8|0;c[h>>2]=q;}while((q|0)<(o|0))}p=n&(1<<o)+ -1;n=n>>o;c[j>>2]=n;q=q-o|0;c[h>>2]=q;if((p|0)==-1){break}else{o=p}}m=(c[44940+(m<<3)>>2]|0)+o|0;p=d+34084|0;r=c[p>>2]|0;d:do{if((q|0)<(r|0)){while(1){n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}o=c[h>>2]|0;n=c[j>>2]|(n&255)<<o;c[j>>2]=n;o=o+8|0;c[h>>2]=o;q=c[p>>2]|0;if((o|0)>=(q|0)){break d}}n=c[j>>2]|0;o=c[h>>2]|0;q=c[p>>2]|0}else{o=q;q=r}}while(0);q=(1<<q)+ -1&n;p=c[d+34080>>2]|0;if((o|0)==0){break}s=p+(q<<2)|0;t=b[s>>1]|0;r=t&65535;if((o|0)<(r|0)|t<<16>>16==0){break}r=n>>r;c[j>>2]=r;s=o-(e[s>>1]|0)|0;c[h>>2]=s;n=e[p+(q<<2)+2>>1]|0;o=c[45184+(n<<3)>>2]|0;if((o|0)>0){if((s|0)<(o|0)){do{p=c[l>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break c}s=c[h>>2]|0;r=c[j>>2]|(p&255)<<s;c[j>>2]=r;s=s+8|0;c[h>>2]=s;}while((s|0)<(o|0))}l=r&(1<<o)+ -1;c[j>>2]=r>>o;c[h>>2]=s-o;if((l|0)==-1){break}else{o=l}}h=c[d+32784>>2]|0;if((m|0)>0){g=h;j=h-((c[45188+(n<<3)>>2]|0)+o)|0;h=0;while(1){j=j&32767;a[d+16+g|0]=a[d+16+j|0]|0;h=h+1|0;if((h|0)<(m|0)){j=j+1|0;g=g+1&32767}else{break}}}c[d+32788>>2]=m;i=f;return}}while(0);Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,47864,k);a[d+34097|0]=1;a[g]=1;c[d+32788>>2]=0;i=f;return}function zl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;if((e|0)<=0){i=l;return}k=b+32788|0;g=b+34096|0;j=b+34097|0;m=b+32784|0;n=0;do{o=c[k>>2]|0;a:do{if((o|0)==0){while(1){if((a[g]&1)!=0){if((a[j]&1)!=0){o=-1;break a}}yl(b);o=c[k>>2]|0;if((o|0)!=0){h=7;break}}}else{h=7}}while(0);if((h|0)==7){h=0;q=c[m>>2]|0;p=d[b+16+q|0]|0;c[m>>2]=q+1&32767;c[k>>2]=o+ -1;o=p}c[f+(n<<2)>>2]=o;n=n+1|0;}while((n|0)<(e|0));i=l;return}function Al(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=b+32788|0;j=c[f>>2]|0;a:do{if((j|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);j=c[f>>2]|0;if((j|0)!=0){break a}}i=e;return b|0}}while(0);g=b+32784|0;k=c[g>>2]|0;h=d[b+16+k|0]|0;c[g>>2]=k+1&32767;c[f>>2]=j+ -1;j=h;i=e;return j|0}function Bl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<3){b=0;i=e;return b|0}if((c[a+12>>2]|0)!=0){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,47832,-1)|0;b=a;i=e;return b|0}function Cl(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function Dl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=i;e=i;i=i+8|0;f=i;i=i+8|0;h=b+34072|0;g=c[h>>2]|0;if((g|0)!=(c[11868]|0)){Fe(g)}c[h>>2]=0;j=b+34080|0;g=c[j>>2]|0;if((g|0)!=(c[11902]|0)){Fe(g)}c[j>>2]=0;g=b+32796|0;m=c[g>>2]|0;a:do{if((m|0)<3){n=b+8|0;m=b+32792|0;while(1){k=c[n>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){n=-1;k=11;break a}o=c[g>>2]|0;l=c[m>>2]|(k&255)<<o;c[m>>2]=l;k=o+8|0;c[g>>2]=k;if((k|0)>=3){m=k;k=10;break}}}else{l=c[b+32792>>2]|0;k=10}}while(0);if((k|0)==10){n=l&7;c[b+32792>>2]=l>>3;c[g>>2]=m+ -3;if((l&1|0)!=0){k=11}}if((k|0)==11){a[b+34097|0]=1}k=n>>1;do{if((k|0)==0){a[b+34088|0]=0;j=b+8|0;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}h=b+34092|0;c[h>>2]=k&255;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}c[h>>2]=c[h>>2]|k<<8&65280;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}j=c[j>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){k=23;break}if((j<<8&65280|k&255|0)!=(c[h>>2]&65535^65535|0)){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47904,f)}c[b+32792>>2]=0;c[g>>2]=0;k=22}else if((k|0)==1){a[b+34088|0]=1;c[h>>2]=c[11868];c[b+34076>>2]=c[47476>>2];c[j>>2]=c[11902];c[b+34084>>2]=c[47612>>2];k=22}else if((k|0)==2){a[b+34088|0]=1;if(El(b)|0){k=22}else{k=23}}else{k=23}}while(0);if((k|0)==22){a[b+34096|0]=0;o=1;i=d;return o|0}else if((k|0)==23){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47952,e);a[b+34097|0]=1;a[b+34096|0]=1;o=0;i=d;return o|0}return 0}function El(a){a=a|0;var d=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;f=i;d=i;i=i+8|0;l=i;i=i+80|0;n=l;p=i;i=i+8|0;o=p;c[p>>2]=0;g=a+32796|0;q=c[g>>2]|0;a:do{if((q|0)<5){k=a+8|0;h=a+32792|0;while(1){j=c[k>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){p=0;break a}q=c[g>>2]|0;j=c[h>>2]|(j&255)<<q;c[h>>2]=j;q=q+8|0;c[g>>2]=q;if((q|0)>=5){m=6;break}}}else{j=c[a+32792>>2]|0;m=6}}while(0);b:do{if((m|0)==6){h=a+32792|0;k=j>>5;c[h>>2]=k;q=q+ -5|0;c[g>>2]=q;j=(j&31)+257|0;if((q|0)<5){q=a+8|0;while(1){k=c[q>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){p=0;break b}r=c[g>>2]|0;k=c[h>>2]|(k&255)<<r;c[h>>2]=k;r=r+8|0;c[g>>2]=r;if((r|0)>=5){s=r;break}}}else{s=q}r=k&31;q=k>>5;c[h>>2]=q;t=s+ -5|0;c[g>>2]=t;k=r+1|0;if((t|0)<4){s=a+8|0;do{q=c[s>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){p=0;break b}t=c[g>>2]|0;q=c[h>>2]|(q&255)<<t;c[h>>2]=q;t=t+8|0;c[g>>2]=t;}while((t|0)<4)}s=q>>4;c[h>>2]=s;t=t+ -4|0;c[g>>2]=t;q=(q&15)+4|0;if(j>>>0>288|r>>>0>29|q>>>0>19){p=0;break}bX(l|0,0,76)|0;l=a+8|0;r=0;c:while(1){if((t|0)<3){do{s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){m=18;break c}t=c[g>>2]|0;s=c[h>>2]|(s&255)<<t;c[h>>2]=s;t=t+8|0;c[g>>2]=t;}while((t|0)<3)}u=s>>3;c[h>>2]=u;t=t+ -3|0;c[g>>2]=t;c[n+(c[44856+(r<<2)>>2]<<2)>>2]=s&7;r=r+1|0;if((r|0)<(q|0)){s=u}else{break}}if((m|0)==18){c[n+(c[44856+(r<<2)>>2]<<2)>>2]=-1;p=0;break}Fl(0,n,19,o);n=k+j|0;o=c[o+4>>2]|0;p=c[p>>2]|0;q=a+32800|0;r=0;m=0;d:while(1){while(1){s=c[g>>2]|0;e:do{if((s|0)<(o|0)){while(1){s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}w=c[g>>2]|0;c[h>>2]=c[h>>2]|(s&255)<<w;s=w+8|0;c[g>>2]=s;if((s|0)>=(o|0)){break e}}s=c[g>>2]|0}}while(0);w=c[h>>2]|0;t=(1<<o)+ -1&w;if((s|0)==0){break b}v=p+(t<<2)|0;x=b[v>>1]|0;u=x&65535;if((s|0)<(u|0)|x<<16>>16==0){break b}u=w>>u;c[h>>2]=u;s=s-(e[v>>1]|0)|0;c[g>>2]=s;t=e[p+(t<<2)+2>>1]|0;if((t|0)==17){m=37;break}else if((t|0)==18){m=42;break}else if((t|0)!=16){m=47;break}if((s|0)<2){do{s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break b}x=c[g>>2]|0;u=c[h>>2]|(s&255)<<x;c[h>>2]=u;s=x+8|0;c[g>>2]=s;}while((s|0)<2)}c[h>>2]=u>>2;c[g>>2]=s+ -2;t=(u&3)+3|0;if((t+r|0)>(n|0)){break b}s=u&3;u=-3-s|0;u=r+4+((u|0)>-1?u:-1)|0;while(1){c[a+32800+(r<<2)>>2]=m;t=t+ -1|0;if((t|0)>0){r=r+1|0}else{break}}r=u+s|0;if((r|0)>=(n|0)){break d}}if((m|0)==37){if((s|0)<3){do{m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break b}s=c[g>>2]|0;u=c[h>>2]|(m&255)<<s;c[h>>2]=u;s=s+8|0;c[g>>2]=s;}while((s|0)<3)}c[h>>2]=u>>3;c[g>>2]=s+ -3;if(((u&7)+3+r|0)>(n|0)){break b}s=u&7;m=-3-s|0;t=(m|0)>-1?m:-1;bX(a+32800+(r<<2)|0,0,t+4+s<<2|0)|0;r=r+4+t+s|0;t=0}else if((m|0)==42){if((s|0)<7){do{m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break b}s=c[g>>2]|0;u=c[h>>2]|(m&255)<<s;c[h>>2]=u;s=s+8|0;c[g>>2]=s;}while((s|0)<7)}c[h>>2]=u>>7;c[g>>2]=s+ -7;if(((u&127)+11+r|0)>(n|0)){break b}m=u&127;s=-11-m|0;t=(s|0)>-1?s:-1;bXbX(b+12|0,h&255|0,j|0)|0}}while(0);h=b+12|0;c[e>>2]=h;c[g>>2]=b+12+j}c[e>>2]=h+1;l=d[h]|0;i=f;return l|0}function Km(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=b+140|0;h=c[f>>2]|0;g=b+144|0;if(h>>>0>=(c[g>>2]|0)>>>0){j=b+148|0;if((a[j]&1)!=0){k=-1;i=e;return k|0}h=b+8|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==128|(k|0)==-1){a[j]=1;k=-1;i=e;return k|0}do{if((k|0)<128){j=k+1|0;if((k|0)>-1){k=0}else{break}while(1){l=c[h>>2]|0;a[b+12+k|0]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;k=k+1|0;if((k|0)<(j|0)){}else{break}}}else{j=257-k|0;h=c[h>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((j|0)<=0){break}bX(b+12|0,h&255|0,j|0)|0}}while(0);h=b+12|0;c[f>>2]=h;c[g>>2]=b+12+j}l=d[h]|0;i=e;return l|0}function Lm(a){a=a|0;i=i;return 7}function Mm(a){a=a|0;i=i;return 8}function Nm(a){a=a|0;i=i;return-1}function Om(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+8>>2]&511](a)|0;i=b;return a|0}function Pm(a){a=a|0;i=i;return}function Qm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+36>>2]&511](a)|0;i=b;return a|0}function Rm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;fd[c[(c[a>>2]|0)+40>>2]&511](a);i=b;return}function Sm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;i=b;return a|0}function Tm(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;j=FW(32)|0;fe(j,d);c[b>>2]=j;a[b+8|0]=e&1;c[b+4>>2]=1;c[b+12>>2]=f;c[b+16>>2]=g;c[b+20>>2]=0;c[b+24>>2]=0;c[b+28>>2]=1;ad(b+32|0,0)|0;i=h;return}function Um(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=FW(32)|0;fe(h,d);c[b>>2]=h;a[b+8|0]=e&1;c[b+4>>2]=2;c[b+12>>2]=f;c[b+20>>2]=0;c[b+24>>2]=0;c[b+28>>2]=1;ad(b+32|0,0)|0;i=g;return}function Vm(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){ke(d);HW(d)}do{if((c[a+4>>2]|0)==0){d=c[a+12>>2]|0;if((d|0)==0){break}Fe(d)}}while(0);d=c[a+20>>2]|0;if((d|0)==0){d=a+32|0;kc(d|0)|0;i=b;return}Fe(d);d=a+32|0;kc(d|0)|0;i=b;return}function Wm(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+32|0;Ub(d|0)|0;f=a+28|0;e=(c[f>>2]|0)+ -1|0;c[f>>2]=e;Mc(d|0)|0;if((e|0)!=0|(a|0)==0){i=b;return}e=c[a>>2]|0;if((e|0)!=0){ke(e);HW(e)}do{if((c[a+4>>2]|0)==0){e=c[a+12>>2]|0;if((e|0)==0){break}Fe(e)}}while(0);e=c[a+20>>2]|0;if((e|0)!=0){Fe(e)}kc(d|0)|0;HW(a);i=b;return}function Xm(a){a=a|0;var b=0;b=i;bX(a|0,0,16)|0;i=b;return}function Ym(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){Wm(d)}d=c[a+4>>2]|0;if((d|0)!=0){Wm(d)}d=c[a+8>>2]|0;if((d|0)!=0){Wm(d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}Wm(a);i=b;return}function Zm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,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;g=i;h=i;i=i+8|0;j=h;s=i;i=i+8|0;t=s;v=i;i=i+8|0;w=v;A=i;i=i+8|0;B=A;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=i;i=i+8|0;G=F;I=i;i=i+8|0;H=I;J=i;i=i+8|0;K=J;L=i;i=i+8|0;M=L;p=i;i=i+16|0;r=p;o=i;i=i+16|0;n=o;y=i;i=i+16|0;u=y;c[p>>2]=13;l=r+8|0;c[l>>2]=0;c[l+4>>2]=0;c[o>>2]=13;m=n+8|0;c[m>>2]=0;f=m+4|0;c[f>>2]=0;c[y>>2]=13;x=u+8|0;c[x>>2]=0;c[x+4>>2]=0;c[b>>2]=e;q=b+4|0;k=b+8|0;z=b+12|0;b=b+16|0;bXbX(g+20|0,0,16)|0;c[g+68>>2]=e;c[g+72>>2]=0;c[g+76>>2]=0;En(g);if((a[b]&1)!=0){b=g;i=f;return b|0}if((g|0)==0){b=0;i=f;return b|0}fd[c[(c[g>>2]|0)+4>>2]&511](g);b=0;i=f;return b|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=i;i=i+8|0;b=RG(b,f)|0;if((b|0)==0){g=0;i=e;return g|0}g=FW(80)|0;OG(g,b,c[f>>2]|0,1);c[g>>2]=49808;c[g+60>>2]=0;b=g+65|0;a[b]=0;bXbX(r+544|0,0,17)|0;break}$n(b,k,f,e);if((a[e]&1)==0){r=0;i=d;return r|0}l=c[f+4>>2]|0;m=b+336|0;c[m>>2]=l;n=b+328|0;c[n>>2]=ye(l,584)|0;if((c[m>>2]|0)<=0){break}k=c[f+12>>2]|0;o=(c[g>>2]|0)+3|0;g=c[f+8>>2]|0;q=c[f+16>>2]|0;r=0;while(1){if((l|0)<=(r|0)){f=20;break}f=(WG(b,o+(da(g,r)|0)|0,g,e)|0)+k|0;p=(WG(b,o+(da(g,r+1|0)|0)|0,g,e)|0)+k|0;if((f|0)<(k|0)){f=23;break}if((p|0)<=(k|0)|(f|0)>(q|0)|(p|0)>(q|0)|(p|0)<(f|0)){f=23;break}if((a[e]&1)==0){b=0;f=38;break}fo(b,f,p-f|0,(c[n>>2]|0)+(r*584|0)|0);r=r+1|0;if((r|0)>=(c[m>>2]|0)){break a}}if((f|0)==20){a[e]=0;r=0;i=d;return r|0}else if((f|0)==23){a[e]=0;r=0;i=d;return r|0}else if((f|0)==38){i=d;return b|0}}else{r=we(584)|0;c[b+328>>2]=r;eo(b,c[b+304>>2]|0,c[b+300>>2]|0,r)}}while(0);if((a[e]&1)==0){r=0;i=d;return r|0}f=c[b+296>>2]|0;if((f|0)<1){a[e]=0;r=0;i=d;return r|0}$n(b,f,b+108|0,e);if((a[e]&1)==0){r=0;i=d;return r|0}c[b+332>>2]=c[b+112>>2];do{if((c[j>>2]|0)==3102){go(b);if((a[e]&1)==0){b=0}else{break}i=d;return b|0}}while(0);if(!(ho(b)|0)){a[e]=0;r=0;i=d;return r|0}r=c[j>>2]|0;do{if(!((r|0)==3102|(r|0)==3092)){io(b);if((a[e]&1)==0){b=0}else{break}i=d;return b|0}}while(0);r=(a[e]&1)!=0;i=d;return r|0}}while(0);a[e]=0;r=0;i=d;return r|0}function Vn(a){a=a|0;var b=0,d=0,e=0;b=i;d=i;i=i+8|0;a=RG(a,d)|0;if((a|0)==0){e=0;i=b;return e|0}e=FW(1160)|0;OG(e,a,c[d>>2]|0,1);c[e>>2]=53784;c[e+20>>2]=0;c[e+24>>2]=0;c[e+328>>2]=0;c[e+340>>2]=0;c[e+344>>2]=0;if(Un(e)|0){i=b;return e|0}if((e|0)==0){e=0;i=b;return e|0}fd[c[(c[e>>2]|0)+4>>2]&511](e);e=0;i=b;return e|0}function Wn(a){a=a|0;var b=0;b=i;Xn(a);HW(a);i=b;return}function Xn(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;c[a>>2]=53784;d=c[a+20>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=a+24|0;f=c[d>>2]|0;if(!((f|0)==0|(f|0)==193784|(f|0)==197136)){e=0;do{Fe(c[f+(e<<2)>>2]|0);e=e+1|0;f=c[d>>2]|0}while((e|0)<256);Fe(f)}d=c[a+328>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+340>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+344>>2]|0;if((d|0)==0|(d|0)==200672|(d|0)==201136|(d|0)==201472){QG(a);i=b;return}Fe(d);QG(a);i=b;return}function Yn(a){a=a|0;var b=0;b=i;a=c[a+20>>2]|0;if((a|0)==0){a=0;i=b;return a|0}a=c[a+28>>2]|0;i=b;return a|0}function Zn(a){a=a|0;i=i;return c[a+24>>2]|0}function _n(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;if((c[a+128>>2]|0)!=3102){m=0;k=0;l=d;c[l>>2]=k;i=f;return m|0}g=a+332|0;k=c[g>>2]|0;if((k|0)>0){h=c[a+344>>2]|0;m=0;j=0;do{l=e[h+(m<<1)>>1]|0;j=(l|0)>(j|0)?l:j;m=m+1|0;}while((m|0)<(k|0));h=j+1|0}else{h=1}j=ye(h,2)|0;bX(j|0,0,h<<1|0)|0;if((c[g>>2]|0)<=0){m=j;k=h;l=d;c[l>>2]=k;i=f;return m|0}a=a+344|0;k=0;while(1){b[j+((e[(c[a>>2]|0)+(k<<1)>>1]|0)<<1)>>1]=k;k=k+1|0;if((k|0)<(c[g>>2]|0)){}else{break}}m=d;c[m>>2]=h;i=f;return j|0}function $n(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;c[e>>2]=d;p=UG(b,d,f)|0;j=e+4|0;c[j>>2]=p;if((p|0)==0){c[e+8>>2]=0;p=d+2|0;c[e+16>>2]=p;c[e+12>>2]=p;i=g;return}o=SG(b,d+2|0,f)|0;m=e+8|0;c[m>>2]=o;if((o+ -1|0)>>>0>3){a[f]=0;o=c[m>>2]|0}k=d+3|0;n=c[j>>2]|0;p=(da(n+1|0,o)|0)+k|0;l=p+ -1|0;d=e+12|0;c[d>>2]=l;if((p|0)<1){h=7}else{if((p|0)>(c[b+12>>2]|0)){h=7}}if((h|0)==7){a[f]=0;o=c[m>>2]|0;n=c[j>>2]|0;l=c[d>>2]|0}h=(WG(b,(da(o,n)|0)+k|0,o,f)|0)+l|0;c[e+16>>2]=h;do{if((h|0)>=(c[d>>2]|0)){if((h|0)>(c[b+12>>2]|0)){break}i=g;return}}while(0);a[f]=0;i=g;return}function ao(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;do{if((e|0)>=0){if((c[d+4>>2]|0)<=(e|0)){break}l=d+12|0;k=c[l>>2]|0;n=d+8|0;m=c[n>>2]|0;k=(WG(b,(c[d>>2]|0)+3+(da(m,e)|0)|0,m,g)|0)+k|0;m=c[l>>2]|0;n=c[n>>2]|0;b=(WG(b,(c[d>>2]|0)+3+(da(n,e+1|0)|0)|0,n,g)|0)+m|0;e=c[l>>2]|0;if((k|0)<(e|0)){j=6}else{n=c[d+16>>2]|0;if((b|0)<=(e|0)|(k|0)>(n|0)|(b|0)>(n|0)|(b|0)<(k|0)){j=6}}if((j|0)==6){a[g]=0}c[f>>2]=k;c[f+4>>2]=b-k;i=h;return}}while(0);a[g]=0;i=h;return}function bo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0.0;j=i;g=i;i=i+8|0;l=i;i=i+72|0;p=d+1|0;o=SG(b,d,f)|0;do{if((o|0)==28){l=(SG(b,p,f)|0)<<8;l=l|(SG(b,d+2|0,f)|0);e=d+3|0;n=1;m=0;q=+(((l&32768|0)==0?l:l|-65536)|0)}else{m=e^1;if((o|0)==29&m){p=(SG(b,p,f)|0)<<8;p=(p|(SG(b,d+2|0,f)|0))<<8;p=(p|(SG(b,d+3|0,f)|0))<<8;e=d+5|0;n=1;m=0;q=+(p|(SG(b,d+4|0,f)|0)|0);break}if((o|0)==30&m){n=0;while(1){e=p+1|0;m=SG(b,p,f)|0;d=m>>4;m=m&15;if((d|0)==15){break}o=n+1|0;a[l+n|0]=a[53792+d|0]|0;if((o|0)==64){n=64;break}if((d|0)==12){a[l+o|0]=45;n=n+2|0}else{n=o}if((n|0)==64|(m|0)==15){break}d=n+1|0;a[l+n|0]=a[53792+m|0]|0;if((d|0)==64){n=64;break}if((m|0)==12){a[l+d|0]=45;n=n+2|0}else{n=d}if((n|0)<64){p=e}else{break}}a[l+n|0]=0;n=1;m=1;q=+Ie(l);break}if((o+ -32|0)>>>0<215){e=p;n=1;m=0;q=+(o+ -139|0);break}if((o+ -247|0)>>>0<4){e=d+2|0;n=1;m=0;q=+((o<<8)+ -63124+(SG(b,p,f)|0)|0);break}if((o+ -251|0)>>>0<4){e=d+2|0;n=1;m=0;q=+(64148-(o<<8)-(SG(b,p,f)|0)|0);break}if((o|0)==255&e){p=(SG(b,p,f)|0)<<8;p=(p|(SG(b,d+2|0,f)|0))<<8;p=(p|(SG(b,d+3|0,f)|0))<<8;e=d+5|0;n=1;m=1;q=+(p|(SG(b,d+4|0,f)|0)|0)*152587890625.0e-16;break}if((o|0)==12){e=(SG(b,p,f)|0)+3072|0;c[k>>2]=e;c[k+4>>2]=0;e=d+2|0;n=0;m=0;q=+h[k>>3];break}else{c[k>>2]=o;c[k+4>>2]=0;e=p;n=0;m=0;q=+h[k>>3];break}}}while(0);l=b+1144|0;f=c[l>>2]|0;if((f|0)>=49){i=j;return e|0}c[l>>2]=f+1;p=b+360+(f<<4)|0;a[p]=n;a[b+360+(f<<4)+1|0]=m;$W(p+2|0,g|0,6)|0;h[b+360+(f<<4)+8>>3]=q;i=j;return e|0}function co(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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;F=i;Q=b+128|0;c[Q>>2]=-1;d=b+132|0;B=b+136|0;A=b+140|0;u=b+144|0;C=b+148|0;L=b+152|0;f=b+156|0;v=b+160|0;y=b+168|0;bX(d|0,0,36)|0;h[y>>3]=-100.0;D=b+176|0;h[D>>3]=50.0;x=b+184|0;c[x>>2]=0;M=b+188|0;c[M>>2]=2;m=b+192|0;h[m>>3]=.001;n=b+200|0;o=b+208|0;p=b+216|0;bX(n|0,0,16)|0;h[p>>3]=.001;q=b+224|0;r=b+232|0;s=b+240|0;K=b+244|0;G=b+248|0;H=b+256|0;I=b+264|0;J=b+272|0;g=b+280|0;w=b+288|0;P=b+292|0;E=b+296|0;N=b+300|0;O=b+304|0;j=b+308|0;k=b+312|0;l=b+316|0;z=b+320|0;t=b+324|0;e=b+352|0;bX(q|0,0,17)|0;bX(K|0,0,84)|0;if((c[b+52>>2]|0)<=0){a[e]=0;c[b+1144>>2]=0;i=F;return}S=b+60|0;Z=c[S>>2]|0;Y=b+48|0;_=b+56|0;Z=(WG(b,(c[Y>>2]|0)+3|0,c[_>>2]|0,e)|0)+Z|0;R=c[S>>2]|0;_=c[_>>2]|0;R=(WG(b,(c[Y>>2]|0)+3+_|0,_,e)|0)+R|0;S=c[S>>2]|0;if((Z|0)<(S|0)){T=5}else{_=c[b+64>>2]|0;if((R|0)<=(S|0)|(Z|0)>(_|0)|(R|0)>(_|0)|(R|0)<(Z|0)){T=5}}if((T|0)==5){a[e]=0}T=b+1144|0;c[T>>2]=0;if((R-Z|0)<=0){i=F;return}U=b+368|0;V=b+384|0;W=b+400|0;S=b+416|0;X=b+432|0;Y=b+448|0;while(1){Z=bo(b,Z,0,e)|0;if((a[e]&1)==0){T=38;break}_=(c[T>>2]|0)+ -1|0;if((a[b+360+(_<<4)|0]&1)==0){c[T>>2]=_;_=b+360+(_<<4)+8|0;if((c[Q>>2]|0)<0){c[Q>>2]=c[_>>2]}switch(c[_>>2]|0){case 3073:{c[f>>2]=~~+h[U>>3];break};case 3080:{h[g>>3]=+h[U>>3];break};case 3102:{c[j>>2]=~~+h[U>>3];c[k>>2]=~~+h[V>>3];c[l>>2]=~~+h[W>>3];break};case 3079:{h[m>>3]=+h[U>>3];h[n>>3]=+h[V>>3];h[o>>3]=+h[W>>3];h[p>>3]=+h[S>>3];h[q>>3]=+h[X>>3];h[r>>3]=+h[Y>>3];a[s]=1;break};case 3109:{c[t>>2]=~~+h[U>>3];break};case 2:{c[u>>2]=~~+h[U>>3];break};case 3074:{h[v>>3]=+h[U>>3];break};case 15:{c[w>>2]=~~+h[U>>3];break};case 3077:{c[x>>2]=~~+h[U>>3];break};case 3075:{h[y>>3]=+h[U>>3];break};case 3108:{c[z>>2]=~~+h[U>>3];break};case 3072:{c[A>>2]=~~+h[U>>3];break};case 1:{c[B>>2]=~~+h[U>>3];break};case 3:{c[C>>2]=~~+h[U>>3];break};case 3076:{h[D>>3]=+h[U>>3];break};case 17:{c[E>>2]=~~+h[U>>3];break};case 0:{c[d>>2]=~~+h[U>>3];break};case 5:{h[G>>3]=+h[U>>3];h[H>>3]=+h[V>>3];h[I>>3]=+h[W>>3];h[J>>3]=+h[S>>3];break};case 13:{c[K>>2]=~~+h[U>>3];break};case 4:{c[L>>2]=~~+h[U>>3];break};case 3078:{c[M>>2]=~~+h[U>>3];break};case 18:{c[N>>2]=~~+h[U>>3];c[O>>2]=~~+h[V>>3];break};case 16:{c[P>>2]=~~+h[U>>3];break};default:{}}c[T>>2]=0}if((Z|0)<(R|0)){}else{T=38;break}}if((T|0)==38){i=F;return}}function eo(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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.0,O=0,P=0;g=i;a[f+48|0]=0;n=f+108|0;c[n>>2]=0;B=f+152|0;c[B>>2]=0;u=f+212|0;c[u>>2]=0;t=f+256|0;c[t>>2]=0;p=f+264|0;h[p>>3]=.039625;q=f+272|0;c[q>>2]=7;v=f+276|0;c[v>>2]=1;o=f+288|0;a[o]=0;s=f+304|0;a[s]=0;E=f+408|0;c[E>>2]=0;C=f+512|0;c[C>>2]=0;A=f+517|0;a[A]=0;z=f+520|0;h[z>>3]=0.0;r=f+528|0;c[r>>2]=0;m=f+536|0;h[m>>3]=.06;D=f+544|0;y=f+548|0;k=f+552|0;l=f+560|0;w=f+568|0;h[w>>3]=0.0;x=f+576|0;a[x]=0;bXbX(h+(da(g+ -1|0,d)|0)|0,j|0,da(g,0-d|0)|0)|0;break a}else{bX(h|0,j|0,da(g,d)|0)|0;break a}}}while(0);if((c[g+4>>2]|0)<=0){break a}j=d+2|0;l=g;g=c[g+20>>2]|0;k=0;while(1){b:do{if((c[l>>2]|0)>0){l=g;n=1;while(1){a[l]=a[d]|0;a[l+1|0]=a[h]|0;a[l+2|0]=a[j]|0;m=c[b>>2]|0;if((n|0)>=(c[m>>2]|0)){break b}l=l+3|0;n=n+1|0}}else{m=l}}while(0);k=k+1|0;if((k|0)<(c[m+4>>2]|0)){l=m;g=g+(c[m+12>>2]|0)|0}else{break}}break};case 4:{j=a[d]|0;h=d+1|0;do{if(j<<24>>24==(a[h]|0)){if(j<<24>>24!=(a[d+2|0]|0)){break}d=c[g+12>>2]|0;h=c[g+20>>2]|0;g=c[g+4>>2]|0;if((d|0)<0){bX(h+(da(g+ -1|0,d)|0)|0,j|0,da(g,0-d|0)|0)|0;break a}else{bX(h|0,j|0,da(g,d)|0)|0;break a}}}while(0);if((c[g+4>>2]|0)<=0){break a}j=d+2|0;l=g;g=c[g+20>>2]|0;k=0;while(1){c:do{if((c[l>>2]|0)>0){l=g;n=1;while(1){a[l]=a[d]|0;a[l+1|0]=a[h]|0;a[l+2|0]=a[j]|0;a[l+3|0]=-1;m=c[b>>2]|0;if((n|0)>=(c[m>>2]|0)){break c}l=l+4|0;n=n+1|0}}else{m=l}}while(0);k=k+1|0;if((k|0)<(c[m+4>>2]|0)){l=m;g=g+(c[m+12>>2]|0)|0}else{break}}break};case 0:{h=a[d]>>7;j=c[g+12>>2]|0;d=c[g+20>>2]|0;g=c[g+4>>2]|0;if((j|0)<0){bX(d+(da(g+ -1|0,j)|0)|0,h|0,da(g,0-j|0)|0)|0;break a}else{bX(d|0,h|0,da(g,j)|0)|0;break a}break};case 2:{j=a[d]|0;h=d+1|0;do{if(j<<24>>24==(a[h]|0)){if(j<<24>>24!=(a[d+2|0]|0)){break}h=c[g+12>>2]|0;d=c[g+20>>2]|0;g=c[g+4>>2]|0;if((h|0)<0){bX(d+(da(g+ -1|0,h)|0)|0,j|0,da(g,0-h|0)|0)|0;break a}else{bX(d|0,j|0,da(g,h)|0)|0;break a}}}while(0);if((c[g+4>>2]|0)<=0){break a}j=d+2|0;l=g;g=c[g+20>>2]|0;k=0;while(1){d:do{if((c[l>>2]|0)>0){l=g;n=1;while(1){a[l]=a[j]|0;a[l+1|0]=a[h]|0;a[l+2|0]=a[d]|0;m=c[b>>2]|0;if((n|0)>=(c[m>>2]|0)){break d}l=l+3|0;n=n+1|0}}else{m=l}}while(0);k=k+1|0;if((k|0)<(c[m+4>>2]|0)){l=m;g=g+(c[m+12>>2]|0)|0}else{break}}break};case 1:{j=c[g+12>>2]|0;h=c[g+20>>2]|0;if((j|0)<0){n=c[g+4>>2]|0;m=h+(da(n+ -1|0,j)|0)|0;bX(m|0,a[d]|0,da(n,0-j|0)|0)|0;break a}else{bX(h|0,a[d]|0,da(c[g+4>>2]|0,j)|0)|0;break a}break};default:{}}}while(0);g=c[b>>2]|0;d=c[g+24>>2]|0;if((d|0)!=0){bXb+64|0;b=0;while(1){h=b+1|0;if(!(dr(c[(c[j>>2]|0)+(b<<2)>>2]|0,d,e)|0)){e=0;g=14;break}if((h|0)<(c[g>>2]|0)){b=h}else{e=1;g=14;break}}if((g|0)==14){i=f;return e|0}}else{if(!h){j=1;i=f;return j|0}h=b+64|0;d=d<<2;b=e<<2;j=0;while(1){e=j+1|0;if(!(dr(c[(c[h>>2]|0)+(j<<2)>>2]|0,d,b)|0)){e=0;g=14;break}if((e|0)<(c[g>>2]|0)){j=e}else{e=1;g=14;break}}if((g|0)==14){i=f;return e|0}}return 0}function wp(b,e,f,g,j,l,m){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0.0,r=0,s=0,t=0,u=0.0,v=0.0,w=0,x=0,y=0.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,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0.0,ca=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.0;n=i;r=i;i=i+56|0;p=r;B=i;i=i+80|0;o=B;if((a[b+189|0]&1)!=0){q=+h[l>>3];u=+h[l+8>>3];v=+h[l+16>>3];y=+h[l+24>>3];ba=+h[l+32>>3];qa=+h[l+40>>3];c[r>>2]=g;c[p+4>>2]=j;pa=p+8|0;h[k>>3]=q;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+16|0;h[k>>3]=u;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+24|0;h[k>>3]=v;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+32|0;h[k>>3]=y;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+40|0;h[k>>3]=ba;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];pa=p+48|0;h[k>>3]=qa;c[pa>>2]=c[k>>2];c[pa+4>>2]=c[k+4>>2];Kb(54040,p|0)|0}if((j|g|0)==0){pa=254;i=n;return pa|0}q=+h[l>>3];v=+h[l+24>>3];qa=q*v;ba=+h[l+8>>3];y=+h[l+16>>3];u=ba*y;if(+S(+(qa-u))<1.0e-6){pa=8;i=n;return pa|0}p=+S(+ba)>+S(+q);if(p){qa=y-qa/ba;u=-0.0-ba;y=(-0.0-v)/qa;v=qa;q=(-0.0-q)/ba}else{v=v-u/q;u=q;y=y/v;q=ba/q}s=u>=0.0;ba=+h[l+32>>3];do{if(m){qa=ba+.5;if(qa<=0.0){qa=+R(+qa)}r=~~qa;if(s){ba=u+ba+.5;if(ba<=0.0){ba=+R(+ba)}s=~~ba+ -1|0;break}else{ba=u+ba+.5;if(ba<=0.0){ba=+R(+ba)}s=~~ba;r=r+ -1|0;break}}else{if(s){qa=ba+-.01;if(qa<=0.0){qa=+R(+qa)}ba=u+ba+.01;if(ba<=0.0){ba=+R(+ba)}s=~~ba;r=~~qa;break}else{qa=ba+.01;if(qa<=0.0){qa=+R(+qa)}ba=u+ba+-.01;if(ba<=0.0){ba=+R(+ba)}s=~~ba;r=~~qa;break}}}while(0);s=s-r|0;I=(s|0)>-1?s:0-s|0;s=I+1|0;t=v>=0.0;ba=+h[l+40>>3];do{if(m){qa=ba+.5;if(qa<=0.0){qa=+R(+qa)}m=~~qa;if(t){ba=v+ba+.5;if(ba<=0.0){ba=+R(+ba)}l=~~ba+ -1|0;break}else{ba=v+ba+.5;if(ba<=0.0){ba=+R(+ba)}l=~~ba;m=m+ -1|0;break}}else{if(t){qa=ba+-.01;if(qa<=0.0){qa=+R(+qa)}ba=v+ba+.01;if(ba<=0.0){ba=+R(+ba)}l=~~ba;m=~~qa;break}else{qa=ba+.01;if(qa<=0.0){qa=+R(+qa)}ba=v+ba+-.01;if(ba<=0.0){ba=+R(+ba)}l=~~ba;m=~~qa;break}}}while(0);l=l-m|0;J=(l|0)>-1?l:0-l|0;l=J+1|0;V=u<0.0;t=V?-1:1;x=v<0.0?-1:1;u=q*+(t|0);w=da(I,t)|0;z=~~(q*+(w|0));v=+(x|0);y=y*v;ba=y*+(J|0)+.5;if(ba>0.0){A=~~ba;C=da(J,x)|0;D=~~(q*+(A|0))+C|0}else{ba=+R(+ba);A=~~ba;C=da(J,x)|0;D=~~(q*+(A|0))+C|0}F=~~ba+w|0;H=~~(q*+(F|0))+C|0;if(p){G=H;E=z;C=D;A=m-A|0;D=m-F|0;F=m-w|0}else{G=F;E=w;C=A;A=D+m|0;D=H+m|0;F=m+z|0}K=C+r|0;H=E+r|0;G=G+r|0;do{if((E|0)>0){if((C|0)>0){L=(r|0)<(G|0)?r:G;z=63;break}else{C=(K|0)<(G|0)?K:G;z=67;break}}else{if((H|0)<(K|0)){L=(H|0)<(G|0)?H:G;z=63;break}else{L=(K|0)<(G|0)?K:G;z=63;break}}}while(0);do{if((z|0)==63){if((E|0)>=0){C=L;z=67;break}if((C|0)<0){C=L;E=(r|0)>(G|0)?r:G;break}else{C=L;E=(K|0)>(G|0)?K:G;break}}}while(0);do{if((z|0)==67){if((H|0)>(K|0)){E=(H|0)>(G|0)?H:G;break}else{E=(K|0)>(G|0)?K:G;break}}}while(0);do{if((m|0)<(F|0)){if((m|0)<(A|0)){G=(m|0)<(D|0)?m:D;break}else{G=(A|0)<(D|0)?A:D;break}}else{if((F|0)<(A|0)){G=(F|0)<(D|0)?F:D;break}else{G=(A|0)<(D|0)?A:D;break}}}while(0);do{if((m|0)>(F|0)){if((m|0)>(A|0)){D=(m|0)>(D|0)?m:D;break}else{D=(A|0)>(D|0)?A:D;break}}else{if((F|0)>(A|0)){D=(F|0)>(D|0)?F:D;break}else{D=(A|0)>(D|0)?A:D;break}}}while(0);A=b+4|0;C=Jp(c[(c[A>>2]|0)+132>>2]|0,C,G,E,D)|0;c[b+184>>2]=C;D=(j|0)/(l|0)|0;E=(j|0)%(l|0)|0;j=(g|0)/(s|0)|0;F=(g|0)%(s|0)|0;if((D|0)<0|(D|0)==2147483647){pa=9;i=n;return pa|0}H=D+1|0;G=ye(H,g)|0;K=c[A>>2]|0;L=c[K+52>>2]|0;ba=+h[K+72>>3];c[B>>2]=0;c[o+4>>2]=0;B=c[K+136>>2]|0;if((B|0)!=0){c[o+40>>2]=c[B+20>>2]}B=c[b>>2]|0;switch(c[B+16>>2]|0){case 3:case 2:{c[o+44>>2]=c[B+20>>2];break};case 0:{c[o+44>>2]=c[B+20>>2];c[o+48>>2]=128;break};case 1:{c[o+44>>2]=c[B+20>>2];break};case 4:{c[o+44>>2]=c[B+20>>2];break};default:{}}c[o+52>>2]=c[B+24>>2];do{if((a[K+141|0]&1)==0){z=95}else{M=c[b+16>>2]|0;B=c[M+24>>2]|0;if((B|0)==0){z=95;break}pa=da(c[M>>2]|0,c[b+24>>2]|0)|0;c[o+36>>2]=B+((c[b+20>>2]|0)+pa)}}while(0);if((z|0)==95){c[o+36>>2]=0}B=o+8|0;c[B>>2]=0;if((L|0)==0){c[o+28>>2]=0}else{if(jd[c[(c[L>>2]|0)+16>>2]&511](L)|0){B=o+32|0;pd[c[(c[L>>2]|0)+12>>2]&63](L,0,0,B)|0}else{c[B>>2]=L;B=o+32|0}c[o+28>>2]=B;K=c[A>>2]|0}B=o+16|0;h[B>>3]=ba;if((c[K+136>>2]|0)==0){h[B>>3]=ba*255.0}a[o+24|0]=1;a[o+64|0]=0;B=c[(c[b>>2]|0)+16>>2]|0;if((c[K+60>>2]|0)==0){c[o+68>>2]=c[53896+(B<<2)>>2]}else{c[o+68>>2]=c[53920+(B<<2)>>2]}c[o+72>>2]=0;B=b+188|0;if((a[B]&1)!=0){c[b+12>>2]=-1}if((J|0)>-1){J=(D|0)>0;K=(C|0)==0|p;T=u<0.0;U=(I|0)>-1;M=o+56|0;O=b+168|0;Q=b+176|0;N=b+172|0;L=b+180|0;P=V?I:0;I=V?0:I;Y=1;X=0;V=0;while(1){pa=V+E|0;W=(pa|0)<(l|0);V=pa-(W?0:l)|0;W=W?D:H;Z=J?W:Y;if((Z|0)>0){_=0;Y=G;while(1){Bd[e&255](f,Y)|0;_=_+1|0;if((_|0)<(Z|0)){Y=Y+g|0}else{break}}}ba=+(X|0);qa=y*ba+.5;if(qa<=0.0){qa=+R(+qa)}$=~~qa;qa=q*+($|0);do{if(K){_=C;z=118}else{Y=~~qa;if((Y|0)!=(~~(q*+($+w|0))|0)){_=C;z=118;break}pa=$+r|0;_=(da(X,x)|0)+m+Y|0;_=Kp(c[(c[A>>2]|0)+132>>2]|0,pa-P|0,pa+I|0,_)|0;if((_|0)!=1){z=118}}}while(0);do{if((z|0)==118){z=0;ba=v*ba+qa;if(T){ba=ba+.999}Y=(W|0)<1?1:W;if(!U){break}Z=(Y|0)>0;_=(_|0)==0;aa=0;ca=0;ea=0;while(1){pa=ea+F|0;fa=(pa|0)<(s|0);ea=pa-(fa?0:s)|0;fa=j+(fa&1^1)|0;ga=~~ba;ha=p?ga:$;ga=p?0-$|0:ga;ia=(fa|0)<1?1:fa;la=G+aa|0;do{if(Z){ja=g-ia|0;if((ia|0)<=0){break}ka=(fa|0)>1?fa:1;ma=0;oa=0;while(1){pa=0;na=la;while(1){oa=(d[na]|0)+oa|0;pa=pa+1|0;if((pa|0)<(ia|0)){na=na+1|0}else{break}}ma=ma+1|0;if((ma|0)<(Y|0)){la=la+(ka+ja)|0}else{break}}if((oa|0)==0){break}ia=da(ia,Y)|0;if((oa|0)==(ia|0)){qa=1.0}else{qa=+(oa|0)/+(ia|0)}h[M>>3]=qa;ha=ha+r|0;ga=ga+m|0;if(!((a[B]&1)==0|_)){xp(b,o,ha,ga);break}if((ga|0)<0){break}if(!_){if(!(vp(c[(c[A>>2]|0)+132>>2]|0,ha,ga)|0)){break}}tp(b,o,ha,ga);up(b,o);if((c[O>>2]|0)>(ha|0)){c[O>>2]=ha}if((c[Q>>2]|0)<(ha|0)){c[Q>>2]=ha}if((c[N>>2]|0)>(ga|0)){c[N>>2]=ga}if((c[L>>2]|0)>=(ga|0)){break}c[L>>2]=ga}}while(0);ca=ca+1|0;if((ca|0)<(s|0)){$=$+t|0;aa=fa+aa|0;ba=u+ba}else{break}}}}while(0);X=X+1|0;if((X|0)<(l|0)){Y=W}else{break}}}Fe(G);pa=0;i=n;return pa|0}function xp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;k=i;i=i+8|0;l=i;i=i+8|0;if((f|0)<0){i=j;return}if((c[c[b>>2]>>2]|0)<=(f|0)){i=j;return}m=b+4|0;n=c[(c[m>>2]|0)+132>>2]|0;if((c[n+44>>2]|0)>(g|0)){i=j;return}if((c[n+52>>2]|0)<(g|0)){i=j;return}n=b+12|0;o=b+8|0;if((c[n>>2]|0)!=(g|0)){p=c[o>>2]|0;bX,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;g=i;i=i+8|0;m=c[b>>2]|0;if((c[m+24>>2]|0)==0){Qe(-1,54192,g);i=f;return}a:do{switch(c[m+16>>2]|0){case 3:case 2:{g=a[e]|0;h=a[e+1|0]|0;l=a[e+2|0]|0;if((c[m+4>>2]|0)<=0){break a}e=g&255;j=h&255;k=l&255;o=m;m=0;while(1){n=c[o>>2]|0;if((n|0)>0){q=da(n,m)|0;n=(c[o+20>>2]|0)+(da(c[o+12>>2]|0,m)|0)|0;q=(c[o+24>>2]|0)+q|0;p=0;while(1){o=q+1|0;r=a[q]|0;q=r&255;if(r<<24>>24==0){a[n]=g;a[n+1|0]=h;a[n+2|0]=l}else if(r<<24>>24!=-1){s=~r&255;t=da(s,e)|0;t=(da(d[n]|0,q)|0)+t|0;a[n]=(t+128+(t>>>8)|0)>>>8;t=da(s,j)|0;r=n+1|0;t=(da(d[r]|0,q)|0)+t|0;a[r]=(t+128+(t>>>8)|0)>>>8;s=da(s,k)|0;r=n+2|0;q=(da(d[r]|0,q)|0)+s|0;a[r]=(q+128+(q>>>8)|0)>>>8}p=p+1|0;q=c[b>>2]|0;if((p|0)<(c[q>>2]|0)){n=n+3|0;q=o}else{o=q;break}}}m=m+1|0;if((m|0)>=(c[o+4>>2]|0)){m=o;break}}break};case 1:{if((c[m+4>>2]|0)<=0){break a}g=d[e]|0;h=0;do{e=c[m>>2]|0;if((e|0)>0){j=da(e,h)|0;e=(c[m+20>>2]|0)+(da(c[m+12>>2]|0,h)|0)|0;j=(c[m+24>>2]|0)+j|0;k=0;while(1){t=a[j]|0;m=da(~t&255,g)|0;m=(da(d[e]|0,t&255)|0)+m|0;a[e]=(m+128+(m>>>8)|0)>>>8;k=k+1|0;m=c[b>>2]|0;if((k|0)<(c[m>>2]|0)){j=j+1|0;e=e+1|0}else{break}}}h=h+1|0;}while((h|0)<(c[m+4>>2]|0));break};case 0:{if((c[m+4>>2]|0)<=0){break a}g=d[e]|0;h=0;do{e=c[m>>2]|0;if((e|0)>0){j=da(e,h)|0;k=128;e=(c[m+20>>2]|0)+(da(c[m+12>>2]|0,h)|0)|0;j=(c[m+24>>2]|0)+j|0;l=0;while(1){t=a[j]|0;m=d[e]|0;t=(da(((m&k|0)!=0)<<31>>31&255,t&255)|0)+(da(~t&255,g)|0)|0;if(((t+128+(t>>>8)|0)>>>8&255)<<24>>24<0){m=m|k}else{m=m&(k^255)}a[e]=m;k=k>>1;n=(k|0)==0;l=l+1|0;m=c[b>>2]|0;if((l|0)<(c[m>>2]|0)){k=n?128:k;e=n?e+1|0:e;j=j+1|0}else{break}}}h=h+1|0;}while((h|0)<(c[m+4>>2]|0));break};case 4:{g=a[e]|0;h=a[e+1|0]|0;k=a[e+2|0]|0;if((c[m+4>>2]|0)<=0){break a}l=g&255;e=h&255;j=k&255;o=m;m=0;while(1){n=c[o>>2]|0;if((n|0)>0){q=da(n,m)|0;n=(c[o+20>>2]|0)+(da(c[o+12>>2]|0,m)|0)|0;q=(c[o+24>>2]|0)+q|0;p=0;while(1){o=q+1|0;q=a[q]|0;r=q&255;if(q<<24>>24==0){a[n]=g;a[n+1|0]=h;a[n+2|0]=k}else if(q<<24>>24!=-1){s=~q&255;q=da(s,l)|0;q=(da(d[n]|0,r)|0)+q|0;a[n]=(q+128+(q>>>8)|0)>>>8;q=da(s,e)|0;t=n+1|0;q=(da(d[t]|0,r)|0)+q|0;a[t]=(q+128+(q>>>8)|0)>>>8;s=da(s,j)|0;t=n+2|0;s=(da(d[t]|0,r)|0)+s|0;a[t]=(s+128+(s>>>8)|0)>>>8}a[n+3|0]=-1;p=p+1|0;q=c[b>>2]|0;if((p|0)<(c[q>>2]|0)){n=n+4|0;q=o}else{o=q;break}}}m=m+1|0;if((m|0)>=(c[o+4>>2]|0)){m=o;break}}break};default:{}}}while(0);bX(c[m+24>>2]|0,-1,da(c[m+4>>2]|0,c[m>>2]|0)|0)|0;i=f;return}function Bp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,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,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0.0,$=0.0,aa=0,ba=0,ca=0.0,ea=0.0,fa=0.0,ga=0,ha=0.0,ia=0,ja=0.0,ka=0,la=0,ma=0.0,na=0.0,oa=0,pa=0.0,qa=0,ra=0,sa=0.0,ta=0.0,ua=0.0,va=0,wa=0;j=i;r=i;i=i+24|0;p=r;n=i;i=i+24|0;q=n;w=i;i=i+16|0;u=w;y=i;i=i+16|0;x=y;m=i;i=i+80|0;f=m;g=i;i=i+8|0;v=i;i=i+24|0;t=v;bX(r|0,0,24)|0;bX(n|0,0,24)|0;bX(w|0,0,12)|0;bX(y|0,0,12)|0;C=c[b>>2]|0;l=c[C>>2]|0;o=c[b+4>>2]|0;s=c[o+132>>2]|0;H=C+20|0;B=c[H>>2]|0;I=C+24|0;A=c[I>>2]|0;D=C+16|0;z=c[D>>2]|0;E=(A|0)!=0;G=C+12|0;e=c[G>>2]|0;if((z|0)==1){k=z}else if((z|0)==4){k=z}else if((z|0)==2){k=3}else if((z|0)==3){k=z}else{k=0}Z=+h[o+64>>3];c[m>>2]=0;c[f+4>>2]=0;m=o+136|0;J=c[m>>2]|0;if((J|0)!=0){c[f+40>>2]=c[J+20>>2]}switch(c[D>>2]|0){case 3:case 2:{c[f+44>>2]=c[H>>2];break};case 4:{c[f+44>>2]=c[H>>2];break};case 1:{c[f+44>>2]=c[H>>2];break};case 0:{c[f+44>>2]=c[H>>2];c[f+48>>2]=128;break};default:{}}c[f+52>>2]=c[I>>2];H=o+141|0;do{if((a[H]&1)==0){F=16}else{I=c[b+16>>2]|0;J=c[I+24>>2]|0;if((J|0)==0){F=16;break}wa=da(c[I>>2]|0,c[b+24>>2]|0)|0;c[f+36>>2]=J+((c[b+20>>2]|0)+wa)}}while(0);if((F|0)==16){c[f+36>>2]=0}c[f+8>>2]=0;c[f+28>>2]=g;h[f+16>>3]=Z;if((c[m>>2]|0)==0){_=Z*255.0+.5;if(_<=0.0){_=+R(+_)}a[f+25|0]=~~_}a[f+24|0]=0;do{if(Z==1.0){if((c[m>>2]|0)!=0){F=25;break}if((a[H]&1)!=0){F=25;break}a[f+64|0]=1;c[f+68>>2]=c[53872+(c[D>>2]<<2)>>2];H=1}else{F=25}}while(0);do{if((F|0)==25){a[f+64|0]=0;m=c[D>>2]|0;if((c[o+60>>2]|0)==0){c[f+68>>2]=c[53896+(m<<2)>>2];H=0;break}else{c[f+68>>2]=c[53920+(m<<2)>>2];H=0;break}}}while(0);c[f+72>>2]=0;m=b+188|0;do{if((a[m]&1)==0){if(H<<24>>24==0){F=33;break}if((c[o+60>>2]|0)==0){D=1}else{F=33}}else{if((c[b+8>>2]|0)==0){wa=0;i=j;return wa|0}else{c[b+12>>2]=-1;F=33;break}}}while(0);do{if((F|0)==33){E=FW(28)|0;Ke(E,c[C>>2]|0,c[C+4>>2]|0,c[C+8>>2]|0,c[D>>2]|0,1,(c[G>>2]|0)>-1);B=c[E+20>>2]|0;A=c[E+24>>2]|0;C=c[b>>2]|0;C=da(c[C+4>>2]|0,c[C>>2]|0)|0;if((C|0)<=0){D=0;C=E;E=1;break}bXbX(g+((da(c[e>>2]|0,f+j|0)|0)+h)|0,0,k|0)|0;f=f+1|0;if((f|0)>=(l|0)){h=0;break}e=c[b>>2]|0;g=c[e+24>>2]|0}i=m;return h|0}function Dp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;r=i;j=i;i=i+80|0;u=i;i=i+8|0;t=i;i=i+8|0;s=i;i=i+8|0;m=i;i=i+8|0;k=i;i=i+8|0;o=k;l=i;i=i+8|0;p=l;n=b+8|0;if((c[n>>2]|0)==0){y=255;i=r;return y|0}if((c[d+8>>2]|0)==0){y=2;i=r;return y|0}g=FW(12)|0;q=b+4|0;y=c[q>>2]|0;Pq(g,d,y,+h[y+104>>3],1);Vq(g);Wq(g);d=FW(52)|0;$q(d,g,0);br(d,u,t,s,m);s=Jp(c[(c[q>>2]|0)+132>>2]|0,c[u>>2]|0,c[t>>2]|0,c[s>>2]|0,c[m>>2]|0)|0;do{if((s|0)!=1){y=c[t>>2]|0;u=c[q>>2]|0;w=u+132|0;x=c[w>>2]|0;v=c[x+44>>2]|0;if((y|0)<(v|0)){c[t>>2]=v;x=c[w>>2]|0}else{v=y}w=c[x+52>>2]|0;if((c[m>>2]|0)>(w|0)){c[m>>2]=w}jp(b,j,0,v,f,0,+h[u+72>>3],(a[b+188|0]&1)!=0&(e^1),0);e=c[t>>2]|0;if((e|0)>(c[m>>2]|0)){break}t=(s|0)==0;while(1){hr(d,c[n>>2]|0,o,p,e);if(!t){Lp(c[(c[q>>2]|0)+132>>2]|0,c[n>>2]|0,o,p,e)}pp(b,j,c[k>>2]|0,c[l>>2]|0,e);if((e|0)<(c[m>>2]|0)){e=e+1|0}else{break}}}}while(0);c[b+184>>2]=s;if((d|0)!=0){ar(d);HW(d)}if((g|0)==0){y=0;i=r;return y|0}Uq(g);HW(g);y=0;i=r;return y|0}function Ep(b,d,e,f,g,j){b=b|0;d=+d;e=+e;f=+f;g=+g;j=j|0;var k=0,l=0.0,m=0;k=i;a[b]=j&1;j=b+8|0;if(d<f){h[j>>3]=d;h[b+24>>3]=f;l=f}else{h[j>>3]=f;h[b+24>>3]=d;l=d;d=f}j=b+16|0;if(e<g){h[j>>3]=e;h[b+32>>3]=g;f=g}else{h[j>>3]=g;h[b+32>>3]=e;f=e;e=g}if(d<=0.0){d=+R(+d)}c[b+40>>2]=~~d;if(e<=0.0){e=+R(+e)}c[b+44>>2]=~~e;if(l<=0.0){l=+R(+l)}c[b+48>>2]=~~l;if(f>0.0){d=f;m=~~d;j=b+52|0;c[j>>2]=m;j=b+56|0;bX(j|0,0,20)|0;i=k;return}d=+R(+f);j=~~d;m=b+52|0;c[m>>2]=j;m=b+56|0;bX(m|0,0,20)|0;i=k;return}function Fp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0;e=i;a[b]=a[d]&1;h[b+8>>3]=+h[d+8>>3];h[b+16>>3]=+h[d+16>>3];h[b+24>>3]=+h[d+24>>3];h[b+32>>3]=+h[d+32>>3];c[b+40>>2]=c[d+40>>2];c[b+44>>2]=c[d+44>>2];c[b+48>>2]=c[d+48>>2];c[b+52>>2]=c[d+52>>2];j=b+68|0;c[j>>2]=c[d+68>>2];g=c[d+72>>2]|0;l=b+72|0;c[l>>2]=g;f=b+56|0;c[f>>2]=ye(g,4)|0;g=b+60|0;c[g>>2]=ye(c[l>>2]|0,1)|0;b=b+64|0;c[b>>2]=ye(c[l>>2]|0,4)|0;if((c[j>>2]|0)<=0){i=e;return}k=d+56|0;d=d+60|0;l=0;do{n=c[(c[k>>2]|0)+(l<<2)>>2]|0;m=FW(12)|0;Tq(m,n);c[(c[f>>2]|0)+(l<<2)>>2]=m;a[(c[g>>2]|0)+l|0]=a[(c[d>>2]|0)+l|0]|0;m=FW(52)|0;$q(m,c[(c[f>>2]|0)+(l<<2)>>2]|0,(a[(c[g>>2]|0)+l|0]&1)!=0);c[(c[b>>2]|0)+(l<<2)>>2]=m;l=l+1|0;}while((l|0)<(c[j>>2]|0));i=e;return}function Gp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;e=a+68|0;f=a+56|0;h=c[f>>2]|0;b=a+64|0;if((c[e>>2]|0)>0){g=0;do{h=c[h+(g<<2)>>2]|0;if((h|0)!=0){Uq(h);HW(h)}h=c[(c[b>>2]|0)+(g<<2)>>2]|0;if((h|0)!=0){ar(h);HW(h)}g=g+1|0;h=c[f>>2]|0}while((g|0)<(c[e>>2]|0))}Fe(h);Fe(c[a+60>>2]|0);Fe(c[b>>2]|0);i=d;return}function Hp(a,b,d,e,f){a=a|0;b=+b;d=+d;e=+e;f=+f;var g=0,j=0,k=0.0;g=i;j=a+8|0;k=+h[j>>3];do{if(b<e){if(k<b){h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+40>>2]=~~b}j=a+24|0;if(+h[j>>3]<=e){break}h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+48>>2]=~~e}else{if(k<e){h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+40>>2]=~~e}j=a+24|0;if(+h[j>>3]<=b){break}h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+48>>2]=~~b}}while(0);j=a+16|0;e=+h[j>>3];if(d<f){if(e<d){h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+44>>2]=~~d}j=a+32|0;if(+h[j>>3]<=f){i=g;return 0}h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+52>>2]=~~f;i=g;return 0}else{if(e<f){h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+44>>2]=~~f}j=a+32|0;if(+h[j>>3]<=d){i=g;return 0}h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+52>>2]=~~d;i=g;return 0}return 0}
7317 function Ip(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=+f;g=g|0;var j=0,k=0,l=0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0;j=i;k=FW(12)|0;Pq(k,d,e,f,1);e=c[k+4>>2]|0;if((e|0)==4){l=8}else if((e|0)==0){m=+h[b+8>>3]+-1.0;h[b+24>>3]=m;f=+h[b+16>>3]+-1.0;h[b+32>>3]=f;if(m<=0.0){m=+R(+m)}c[b+48>>2]=~~m;if(f<=0.0){f=+R(+f)}c[b+52>>2]=~~f;if((k|0)==0){i=j;return 0}Uq(k);HW(k);i=j;return 0}do{if((l|0)==8){e=c[k>>2]|0;f=+h[e>>3];m=+h[e+16>>3];do{if(f==m){if(f!=+h[e+56>>3]){l=20;break}if(f!=+h[e+184>>3]){l=20;break}o=+h[e+112>>3];if(o!=+h[e+128>>3]){l=20;break}if(o!=+h[e+72>>3]){l=20;break}if(o!=+h[e+168>>3]){l=20;break}n=+h[e+64>>3];if(n!=+h[e+80>>3]){l=20;break}if(n!=+h[e+24>>3]){l=20;break}p=+h[e+120>>3];if(n!=p){l=20;break}q=+h[e+176>>3];if(q!=+h[e+192>>3]){l=20;break}n=+h[e+8>>3];if(q!=n){l=20;break}if(q!=+h[e+136>>3]){l=20}}else{l=20}}while(0);if((l|0)==20){n=+h[e+8>>3];if(n!=+h[e+24>>3]){break}if(n!=+h[e+64>>3]){break}if(n!=+h[e+192>>3]){break}p=+h[e+120>>3];if(p!=+h[e+136>>3]){break}if(p!=+h[e+80>>3]){break}if(p!=+h[e+176>>3]){break}q=+h[e+56>>3];if(!(q==+h[e+72>>3]&q==m)){break}o=+h[e+112>>3];if(q!=o){break}m=+h[e+168>>3];if(!(m==+h[e+184>>3]&m==f)){break}if(m!=+h[e+128>>3]){break}}Hp(b,f,n,o,p)|0;if((k|0)==0){i=j;return 0}Uq(k);HW(k);i=j;return 0}}while(0);l=b+68|0;s=c[l>>2]|0;d=s+1|0;e=b+72|0;r=c[e>>2]|0;if((s|0)>=(r|0)){if((r|0)==0){c[e>>2]=32;r=32}if((r|0)<(d|0)){do{r=r<<1;}while((r|0)<(d|0));c[e>>2]=r}s=b+56|0;c[s>>2]=Ce(c[s>>2]|0,r,4)|0;s=b+60|0;c[s>>2]=Ce(c[s>>2]|0,c[e>>2]|0,1)|0;s=b+64|0;c[s>>2]=Ce(c[s>>2]|0,c[e>>2]|0,4)|0}if((a[b]&1)!=0){Vq(k)}Wq(k);c[(c[b+56>>2]|0)+(c[l>>2]<<2)>>2]=k;a[(c[b+60>>2]|0)+(c[l>>2]|0)|0]=g&1;s=FW(52)|0;$q(s,k,g);c[(c[b+64>>2]|0)+(c[l>>2]<<2)>>2]=s;c[l>>2]=(c[l>>2]|0)+1;i=j;return 0}function Jp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0;g=i;j=+(e+1|0);k=+h[a+8>>3];if(j<=k){e=1;i=g;return e|0}m=+(b|0);l=+h[a+24>>3];if(m>l){e=1;i=g;return e|0}o=+(f+1|0);n=+h[a+16>>3];if(o<=n){e=1;i=g;return e|0}p=+(d|0);q=+h[a+32>>3];if(p>q){e=1;i=g;return e|0}do{if(!(m<k|j>l|p<n|o>q)){if((c[a+68>>2]|0)==0){a=0}else{break}i=g;return a|0}}while(0);e=2;i=g;return e|0}function Kp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0,t=0;g=i;r=+(e+1|0);q=+h[b+8>>3];if(r<=q){t=1;i=g;return t|0}p=+(d|0);l=+h[b+24>>3];if(p>l){t=1;i=g;return t|0}n=+(f+1|0);m=+h[b+16>>3];if(n<=m){t=1;i=g;return t|0}o=+(f|0);k=+h[b+32>>3];if(o>k){t=1;i=g;return t|0}if(p<q|r>l|o<m|n>k){t=2;i=g;return t|0}j=b+68|0;s=(c[j>>2]|0)>0;if((a[b]&1)==0){if(!s){t=0;i=g;return t|0}t=b+64|0;s=0;while(1){b=s+1|0;if(!(er(c[(c[t>>2]|0)+(s<<2)>>2]|0,d,e,f)|0)){e=2;f=15;break}if((b|0)<(c[j>>2]|0)){s=b}else{e=0;f=15;break}}if((f|0)==15){i=g;return e|0}}else{if(!s){t=0;i=g;return t|0}b=b+64|0;d=d<<2;e=e<<2|3;f=f<<2;s=0;while(1){t=s+1|0;if(!(er(c[(c[b>>2]|0)+(s<<2)>>2]|0,d,e,f)|0)){e=2;f=15;break}if((t|0)<(c[j>>2]|0)){s=t}else{e=0;f=15;break}}if((f|0)==15){i=g;return e|0}}return 0}function Lp(b,e,f,g,j){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0;k=i;n=c[f>>2]|0;s=n<<2;l=b+8|0;v=+h[l>>3]*4.0;if(v<=0.0){v=+R(+v)}m=~~v;o=c[e>>2]|0;m=(m|0)>(o|0)?o:m;if((s|0)<(m|0)){o=s&-8;q=e+20|0;p=e+12|0;r=n>>1;n=255>>>(m&7);u=(c[q>>2]|0)+r|0;do{if((s|7|0)<(m|0)){t=o;while(1){s=u+1|0;a[u]=0;u=t+8|0;if((t+15|0)<(m|0)){t=u;u=s}else{break}}if((u|0)<(m|0)){a[s]=(d[s]|0)&n}u=(c[q>>2]|0)+((c[p>>2]|0)+r)|0;t=o;while(1){s=u+1|0;a[u]=0;u=t+8|0;if((t+15|0)<(m|0)){t=u;u=s}else{break}}if((u|0)<(m|0)){a[s]=(d[s]|0)&n}u=(c[q>>2]|0)+((c[p>>2]<<1)+r)|0;s=o;while(1){t=u+1|0;a[u]=0;u=s+8|0;if((s+15|0)<(m|0)){s=u;u=t}else{break}}if((u|0)<(m|0)){a[t]=(d[t]|0)&n}p=(c[q>>2]|0)+(((c[p>>2]|0)*3|0)+r)|0;while(1){q=p+1|0;a[p]=0;p=o+8|0;if((o+15|0)<(m|0)){o=p;p=q}else{break}}if((p|0)>=(m|0)){break}a[q]=(d[q]|0)&n}else{if((o|0)>=(m|0)){break}a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+((c[p>>2]|0)+r)|0;a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+((c[p>>2]<<1)+r)|0;a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+(((c[p>>2]|0)*3|0)+r)|0;a[u]=(d[u]|0)&n}}while(0);v=+h[l>>3];if(v<=0.0){v=+R(+v)}c[f>>2]=~~v}l=b+24|0;v=+h[l>>3]*4.0;if(v<=0.0){v=+R(+v)}m=~~v+1|0;r=(m|0)<0?0:m;m=(c[g>>2]<<2)+4|0;if((r|0)<(m|0)){p=e+20|0;o=e+12|0;n=r>>3;w=r&7;s=65280>>>w;q=r+8&-8;t=c[p>>2]|0;u=t+n|0;do{if((w|0)==0){if((r|0)<(m|0)){q=r;while(1){a[u]=0;q=q+8|0;if((q|0)<(m|0)){u=u+1|0}else{break}}t=c[p>>2]|0}q=c[o>>2]|0;if((r|0)<(m|0)){q=t+(q+n)|0;s=r;while(1){a[q]=0;s=s+8|0;if((s|0)<(m|0)){q=q+1|0}else{break}}q=c[o>>2]|0;t=c[p>>2]|0}if((r|0)<(m|0)){q=t+((q<<1)+n)|0;s=r;while(1){a[q]=0;s=s+8|0;if((s|0)<(m|0)){q=q+1|0}else{break}}q=c[o>>2]|0;t=c[p>>2]|0}if((r|0)<(m|0)){n=t+((q*3|0)+n)|0}else{break}while(1){a[n]=0;r=r+8|0;if((r|0)<(m|0)){n=n+1|0}else{break}}}else{a[u]=(d[u]|0)&s;if((q|0)<(m|0)){r=t+(n+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}r=c[p>>2]|0;t=(c[o>>2]|0)+n|0;w=r+t|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){r=r+(t+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}r=c[p>>2]|0;t=(c[o>>2]<<1)+n|0;w=r+t|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){r=r+(t+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}p=c[p>>2]|0;n=((c[o>>2]|0)*3|0)+n|0;w=p+n|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){n=p+(n+1)|0}else{break}while(1){a[n]=0;q=q+8|0;if((q|0)<(m|0)){n=n+1|0}else{break}}}}while(0);v=+h[l>>3];if(v<=0.0){v=+R(+v)}c[g>>2]=~~v}l=b+68|0;if((c[l>>2]|0)<=0){i=k;return}b=b+64|0;m=0;do{ir(c[(c[b>>2]|0)+(m<<2)>>2]|0,e,f,g,j);m=m+1|0;}while((m|0)<(c[l>>2]|0));i=k;return}function Mp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;bX(a|0,0,64)|0;if(b){c[a+64>>2]=fH(e,d)|0;i=f;return}else{c[a+64>>2]=0;i=f;return}}function Np(a){a=a|0;var b=0,d=0,e=0;b=i;d=0;do{e=c[a+(d<<2)>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}d=d+1|0;}while((d|0)<16);a=c[a+64>>2]|0;if((a|0)==0){i=b;return}gH(a);HW(a);i=b;return}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=0;a:while(1){f=c[a+(e<<2)>>2]|0;do{if((f|0)!=0){f=c[f+4>>2]|0;if((f|0)==0){break}g=c[f+8>>2]|0;if(Bd[c[(c[g>>2]|0)+8>>2]&255](g,b)|0){b=6;break a}}}while(0);e=e+1|0;if((e|0)>=16){f=0;b=6;break}}if((b|0)==6){i=d;return f|0}return 0}function Pp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=hH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Qp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=iH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Rp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=jH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Sp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=kH(b,d,e)|0}if((a[e]&1)==0){i=f;return d|0}Zp(e);i=f;return d|0}function Tp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=lH(b,d,e)|0}if((a[e]&1)==0){i=f;return d|0}Zp(e);i=f;return d|0}function Up(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 j=0,k=0;j=i;b=c[b+64>>2]|0;if((b|0)==0){k=3}else{d=mH(b,d,e,f,g,h)|0;if((d|0)==0){k=3}}if((k|0)==3){Fe(f);d=0}if((a[e]&1)==0){i=j;return d|0}Zp(e);i=j;return d|0}function Vp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0,r=0.0,s=0,t=0.0,u=0.0;f=i;q=i;i=i+32|0;g=q;k=+h[d>>3];u=+h[e>>3];j=+h[d+8>>3];p=+h[e+16>>3];n=k*u+j*p;h[q>>3]=n;t=+h[e+8>>3];o=+h[e+24>>3];r=-0.0-(k*t+j*o);e=g+8|0;h[e>>3]=r;m=+h[d+16>>3];l=+h[d+24>>3];p=m*u+l*p;h[g+16>>3]=p;o=-0.0-(m*t+l*o);s=g+24|0;h[s>>3]=o;if(+S(+(n*o-p*r))<.01){h[q>>3]=.01;bXbX(a|0,0,32)|0;i=b;return}function hq(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);Fe(c[a+4>>2]|0);Fe(c[a+20>>2]|0);i=b;return}function iq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;g=b+8|0;j=c[g>>2]|0;c[b+16>>2]=(c[d+16>>2]|0)+j;f=d+8|0;k=c[f>>2]|0;j=j+k|0;h=b+12|0;l=c[h>>2]|0;if((j|0)>(l|0)){if((l|0)==0){c[h>>2]=32;l=32}if((l|0)<(j|0)){do{l=l<<1;}while((l|0)<(j|0));c[h>>2]=l}c[b>>2]=Ce(c[b>>2]|0,l,16)|0;k=b+4|0;c[k>>2]=Ce(c[k>>2]|0,c[h>>2]|0,1)|0;k=c[f>>2]|0}if((k|0)<=0){i=e;return}l=d+4|0;k=b+4|0;h=c[g>>2]|0;j=0;do{$W((c[b>>2]|0)+(h<<4)|0,(c[d>>2]|0)+(j<<4)|0,16)|0;a[(c[k>>2]|0)+(c[g>>2]|0)|0]=a[(c[l>>2]|0)+j|0]|0;h=(c[g>>2]|0)+1|0;c[g>>2]=h;j=j+1|0;}while((j|0)<(c[f>>2]|0));i=e;return}function jq(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;j=i;g=b+16|0;f=b+8|0;m=c[f>>2]|0;if((c[g>>2]|0)==(m+ -1|0)){n=3;i=j;return n|0}l=m+1|0;k=b+12|0;n=c[k>>2]|0;if((m|0)<(n|0)){k=b;b=b+4|0}else{if((n|0)==0){c[k>>2]=32;n=32}if((n|0)<(l|0)){do{n=n<<1;}while((n|0)<(l|0));c[k>>2]=n}c[b>>2]=Ce(c[b>>2]|0,n,16)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[k>>2]|0,1)|0;m=c[f>>2]|0;k=b;b=n}h[(c[k>>2]|0)+(m<<4)>>3]=d;h[(c[k>>2]|0)+(c[f>>2]<<4)+8>>3]=e;a[(c[b>>2]|0)+(c[f>>2]|0)|0]=3;n=c[f>>2]|0;c[f>>2]=n+1;c[g>>2]=n;n=0;i=j;return n|0}function kq(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;g=i;f=b+8|0;k=c[f>>2]|0;if((c[b+16>>2]|0)==(k|0)){n=1;i=g;return n|0}j=b+4|0;m=(c[j>>2]|0)+(k+ -1)|0;a[m]=a[m]&-3;m=c[f>>2]|0;l=m+1|0;k=b+12|0;n=c[k>>2]|0;if((m|0)>=(n|0)){if((n|0)==0){c[k>>2]=32;n=32}if((n|0)<(l|0)){do{n=n<<1;}while((n|0)<(l|0));c[k>>2]=n}c[b>>2]=Ce(c[b>>2]|0,n,16)|0;c[j>>2]=Ce(c[j>>2]|0,c[k>>2]|0,1)|0;m=c[f>>2]|0}h[(c[b>>2]|0)+(m<<4)>>3]=d;h[(c[b>>2]|0)+(c[f>>2]<<4)+8>>3]=e;a[(c[j>>2]|0)+(c[f>>2]|0)|0]=2;c[f>>2]=(c[f>>2]|0)+1;n=0;i=g;return n|0}function lq(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=i;m=b+8|0;o=c[m>>2]|0;if((c[b+16>>2]|0)==(o|0)){r=1;i=n;return r|0}l=b+4|0;r=(c[l>>2]|0)+(o+ -1)|0;a[r]=a[r]&-3;r=c[m>>2]|0;p=r+3|0;o=b+12|0;q=c[o>>2]|0;if((p|0)>(q|0)){if((q|0)==0){c[o>>2]=32;q=32}if((q|0)<(p|0)){do{q=q<<1;}while((q|0)<(p|0));c[o>>2]=q}c[b>>2]=Ce(c[b>>2]|0,q,16)|0;c[l>>2]=Ce(c[l>>2]|0,c[o>>2]|0,1)|0;r=c[m>>2]|0}h[(c[b>>2]|0)+(r<<4)>>3]=d;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=e;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=8;r=(c[m>>2]|0)+1|0;c[m>>2]=r;h[(c[b>>2]|0)+(r<<4)>>3]=f;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=g;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=8;r=(c[m>>2]|0)+1|0;c[m>>2]=r;h[(c[b>>2]|0)+(r<<4)>>3]=j;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=k;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=2;c[m>>2]=(c[m>>2]|0)+1;r=0;i=n;return r|0}function mq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0.0;e=i;g=b+16|0;j=c[g>>2]|0;f=b+8|0;k=c[f>>2]|0;if((j|0)==(k|0)){l=1;i=e;return l|0}l=k+ -1|0;k=c[b>>2]|0;do{if((j|0)==(l|0)){m=+h[k+(j<<4)>>3];d=6}else{m=+h[k+(j<<4)>>3];if(+h[k+(l<<4)>>3]!=m){d=6;break}if(+h[k+(l<<4)+8>>3]!=+h[k+(j<<4)+8>>3]){d=6}}}while(0);if((d|0)==6){kq(b,m,+h[k+(j<<4)+8>>3])|0;j=c[g>>2]|0}l=b+4|0;k=(c[l>>2]|0)+j|0;a[k]=a[k]|4;l=(c[l>>2]|0)+((c[f>>2]|0)+ -1)|0;a[l]=a[l]|4;c[g>>2]=c[f>>2];l=0;i=e;return l|0}function nq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=a+24|0;j=c[h>>2]|0;k=a+28|0;if((j|0)==(c[k>>2]|0)){l=(j|0)==0?8:j<<1;c[k>>2]=l;j=a+20|0;k=Ce(c[j>>2]|0,l,16)|0;c[j>>2]=k;j=c[h>>2]|0}else{k=c[a+20>>2]|0}l=a+20|0;c[k+(j<<4)>>2]=b;c[(c[l>>2]|0)+(c[h>>2]<<4)+4>>2]=d;c[(c[l>>2]|0)+(c[h>>2]<<4)+8>>2]=e;c[(c[l>>2]|0)+(c[h>>2]<<4)+12>>2]=f;c[h>>2]=(c[h>>2]|0)+1;i=g;return}function oq(a,b,d){a=a|0;b=+b;d=+d;var e=0,f=0,g=0,j=0;e=i;f=a+8|0;if((c[f>>2]|0)<=0){i=e;return}g=0;do{j=(c[a>>2]|0)+(g<<4)|0;h[j>>3]=+h[j>>3]+b;j=(c[a>>2]|0)+(g<<4)+8|0;h[j>>3]=+h[j>>3]+d;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=a+8|0;f=c[g>>2]|0;if((c[a+16>>2]|0)==(f|0)){d=0;i=e;return d|0}h[b>>3]=+h[(c[a>>2]|0)+(f+ -1<<4)>>3];h[d>>3]=+h[(c[a>>2]|0)+((c[g>>2]|0)+ -1<<4)+8>>3];d=1;i=e;return d|0}function qq(a){a=a|0;c[a>>2]=54864;i=i;return}function rq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function sq(a){a=a|0;i=i;return}function tq(b,d){b=b|0;d=d|0;c[b>>2]=54896;a[b+4|0]=a[d]|0;a[b+5|0]=a[d+1|0]|0;a[b+6|0]=a[d+2|0]|0;i=i;return}function uq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function vq(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;a[e]=a[b+4|0]|0;a[e+1|0]=a[b+5|0]|0;a[e+2|0]=a[b+6|0]|0;i=i;return-1}function wq(b){b=b|0;var d=0,e=0;e=i;d=FW(8)|0;c[d>>2]=54896;a[d+4|0]=a[b+4|0]|0;a[d+5|0]=a[b+5|0]|0;a[d+6|0]=a[b+6|0]|0;i=e;return d|0}function xq(a){a=a|0;i=i;return-1}function yq(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=(b|0)!=0?b:54984;bX(a+4|0,0,10)|0;i=d;return}function zq(b){b=b|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0;e=i;j=c[b>>2]|0;f=c[j>>2]|0;if((f|0)==0){g=b+8|0;f=j+4|0;k=1;while(1){c[g>>2]=k;if((k|0)<(c[f>>2]|0)){k=k<<1}else{break}}c[b+4>>2]=ye(da(k,k)|0,1)|0;s=(c[g>>2]|0)/2|0;Aq(b,s,s,1,s,1)}else if((f|0)==2){f=c[j+4>>2]|0;k=j+8|0;g=c[k>>2]<<1;s=(f|0)<(g|0)?g:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Cq(b,c[k>>2]|0)}else if((f|0)==1){f=c[j+4>>2]&-2;s=(f|0)<2?2:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Bq(b)}g=b+12|0;a[g]=-1;f=b+13|0;a[f]=0;t=+h[j+24>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}k=~~t;k=(k&255|0)==0?1:k&255;t=+h[j+32>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}l=~~t;l=(l|0)>255?-1:l&255;m=b+8|0;s=c[m>>2]|0;if((da(s,s)|0)==0){i=e;return}b=b+4|0;q=j+16|0;n=k&255;j=l&255;p=0;do{o=(c[b>>2]|0)+p|0;t=+U(+(+(d[o]|0)/255.0),+(+h[q>>3]))*255.0+.5;if(t<=0.0){t=+R(+t)}s=~~t;r=s&255;if(r>>>0<n>>>0){r=k}else{r=r>>>0<j>>>0?s&255:l}a[o]=r;do{if((r&255)<(d[g]|0)){a[g]=r}else{if((r&255)<=(d[f]|0)){break}a[f]=r}}while(0);p=p+1|0;s=c[m>>2]|0;}while((p|0)<(da(s,s)|0));i=e;return}function Aq(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 j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;k=b+8|0;if((g|0)==0){n=c[k>>2]|0}else{while(1){m=(g|0)/2|0;l=h<<2;Aq(b,d,e,f,m,l);n=g+d|0;p=c[k>>2]|0;o=g+e|0;Aq(b,(n|0)%(p|0)|0,(o|0)%(p|0)|0,h+f|0,m,l);Aq(b,(n|0)%(c[k>>2]|0)|0,e,(h<<1)+f|0,m,l);n=c[k>>2]|0;d=((g<<1)+d|0)%(n|0)|0;e=(o|0)%(n|0)|0;f=(h*3|0)+f|0;if((g+1|0)>>>0<3){break}else{h=l;g=m}}}o=(((f*254|0)+ -254|0)/((da(n,n)|0)+ -1|0)|0)+1&255;p=(da(n,d)|0)+e|0;a[(c[b+4>>2]|0)+p|0]=o;i=j;return}function Bq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0.0,w=0.0,x=0.0,y=0.0;f=i;d=b+8|0;l=c[d>>2]|0;e=l>>1;if((l|0)>0){g=b+4|0;j=0;do{if((l|0)>0){k=0;while(1){l=(da(l,j)|0)+k|0;a[(c[g>>2]|0)+l|0]=0;k=k+1|0;l=c[d>>2]|0;if((k|0)<(l|0)){}else{break}}}j=j+1|0;}while((j|0)<(l|0))}g=ye(da(l,e)|0,8)|0;j=(e|0)>0;do{if(j){n=e+ -1|0;w=+(e|0);m=0;do{v=+(m|0)+.5;l=da(m,e)|0;s=v-w;k=0;do{x=+(k|0)+.5;if((k+m|0)<(n|0)){y=v}else{x=x-w;y=s}h[g+(k+l<<3)>>3]=y*y+x*x;k=k+1|0;}while((k|0)<(e|0));m=m+1|0;}while((m|0)<(e|0));if(!j){break}s=+(e|0);k=0;do{w=+(k|0)+.5;v=w-s;l=da(k+e|0,e)|0;m=0;do{x=+(m|0)+.5;if((m|0)<(k|0)){y=v}else{x=x-s;y=w}h[g+(m+l<<3)>>3]=y*y+x*x;m=m+1|0;}while((m|0)<(e|0));k=k+1|0;}while((k|0)<(e|0))}}while(0);a[b+12|0]=1;a[b+13|0]=0;m=c[d>>2]|0;if((da(m,e)|0)<=0){Fe(g);i=f;return}k=b+4|0;b=e<<1;l=0;u=0;r=0;do{if(!((m|0)<1|j^1)){s=-1.0;q=0;do{n=da(m,q)|0;p=c[k>>2]|0;o=da(q,e)|0;t=0;do{do{if((a[p+(n+t)|0]|0)==0){v=+h[g+(t+o<<3)>>3];if(v<=s){break}s=v;u=t;r=q}}while(0);t=t+1|0;}while((t|0)<(e|0));q=q+1|0;}while((q|0)<(m|0))}t=((l*508|0)/((da(b,m)|0)+ -1|0)|0)+1&255;n=(da(m,r)|0)+u|0;a[(c[k>>2]|0)+n|0]=t;n=c[d>>2]|0;m=(((l<<1|1)*254|0)/((da(b,n)|0)+ -1|0)|0)+1&255;if((r|0)<(e|0)){t=u+e+(da(n,r+e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}else{t=u+e+(da(n,r-e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}l=l+1|0;m=c[d>>2]|0;}while((l|0)<(da(m,e)|0));Fe(g);i=f;return}function Cq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=i;Eb(123);g=b+8|0;e=c[g>>2]|0;e=ye(da(e,e)|0,12)|0;k=c[g>>2]|0;if((k|0)>0){j=0;h=0;do{if((k|0)>0){k=0;while(1){c[e+(j*12|0)>>2]=k;c[e+(j*12|0)+4>>2]=h;j=j+1|0;l=k+1|0;k=c[g>>2]|0;if((l|0)<(k|0)){k=l}else{break}}}h=h+1|0;}while((h|0)<(k|0))}j=da(k,k)|0;if((j|0)!=0){h=0;do{w=~~(+(j-h|0)*+(kb()|0)*4.656612873077393e-10)+h|0;r=e+(h*12|0)|0;t=c[r>>2]|0;s=e+(h*12|0)+4|0;v=c[s>>2]|0;u=e+(w*12|0)|0;c[r>>2]=c[u>>2];w=e+(w*12|0)+4|0;c[s>>2]=c[w>>2];c[u>>2]=t;c[w>>2]=v;h=h+1|0;w=c[g>>2]|0;j=da(w,w)|0;}while((h|0)<(j|0))}m=d+1|0;k=ye(da(m,m)|0,1)|0;l=(d|0)<0;if(!l){n=da(d,d)|0;o=0;while(1){j=da(o,m)|0;h=0;while(1){a[k+(h+j)|0]=(da(h,o)|0)<=(n|0)|0;if((h|0)<(d|0)){h=h+1|0}else{break}}if((o|0)<(d|0)){o=o+1|0}else{break}}}n=c[g>>2]|0;n=ye(da(n,n)|0,1)|0;o=c[g>>2]|0;if((o|0)>0){h=0;do{if((o|0)>0){j=0;while(1){a[n+((da(o,h)|0)+j)|0]=0;j=j+1|0;o=c[g>>2]|0;if((j|0)<(o|0)){}else{break}}}h=h+1|0;}while((h|0)<(o|0))}j=ye(32,12)|0;s=c[g>>2]|0;if((da(s,s)|0)==0){h=0}else{h=0;p=32;o=0;while(1){t=e+(o*12|0)|0;r=c[t>>2]|0;q=c[e+(o*12|0)+4>>2]|0;if((a[n+((da(q,s)|0)+r)|0]|0)==0){if((h|0)==(p|0)){w=h<<1;p=w;j=Ce(j,w,12)|0}s=h+1|0;$W(j+(h*12|0)|0,t|0,12)|0;a:do{if(!l){h=0;while(1){t=c[g>>2]|0;u=(h+q|0)%(t|0)|0;t=(q-h+t|0)%(t|0)|0;w=da(h,m)|0;v=0;while(1){if((a[k+(v+w)|0]|0)!=0){z=c[g>>2]|0;y=(v+r|0)%(z|0)|0;x=(r-v+z|0)%(z|0)|0;a[n+((da(z,u)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,u)|0)+x)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+x)|0]=1}if((v|0)<(d|0)){v=v+1|0}else{break}}if((h|0)>=(d|0)){break a}h=h+1|0}}}while(0);q=c[g>>2]|0;h=s}else{q=s}o=o+1|0;if((o|0)<(da(q,q)|0)){s=q}else{break}}}Fe(k);Fe(n);k=c[g>>2]|0;k=ye(da(k,k)|0,4)|0;d=c[g>>2]|0;d=ye(da(d,d)|0,4)|0;o=c[g>>2]|0;if((o|0)>0){l=j+4|0;m=(h|0)>1;n=0;do{if((o|0)>0){p=0;do{q=(c[j>>2]|0)-p|0;q=(q|0)>-1?q:0-q|0;r=o-q|0;q=(q|0)<(r|0)?q:r;r=(c[l>>2]|0)-n|0;s=(r|0)>-1?r:0-r|0;r=o-s|0;r=(s|0)<(r|0)?s:r;r=(da(r,r)|0)+(da(q,q)|0)|0;if(m){s=0;q=1;while(1){t=(c[j+(q*12|0)>>2]|0)-p|0;u=(t|0)>-1?t:0-t|0;t=o-u|0;t=(u|0)<(t|0)?u:t;u=(c[j+(q*12|0)+4>>2]|0)-n|0;u=(u|0)>-1?u:0-u|0;v=o-u|0;u=(u|0)<(v|0)?u:v;t=(da(u,u)|0)+(da(t,t)|0)|0;u=(t|0)<(r|0);s=u?q:s;r=u?t:r;q=q+1|0;if((q|0)<(h|0)){}else{break}}}else{s=0}c[k+((da(o,n)|0)+p<<2)>>2]=s;c[d+((da(c[g>>2]|0,n)|0)+p<<2)>>2]=r;p=p+1|0;o=c[g>>2]|0;}while((p|0)<(o|0))}n=n+1|0;}while((n|0)<(o|0))}if((h|0)<=0){Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}b=b+4|0;l=0;while(1){do{if((o|0)>0){m=j+(l*12|0)|0;n=j+(l*12|0)+4|0;r=0;p=0;do{if((o|0)>0){q=0;do{if((c[k+((da(o,p)|0)+q<<2)>>2]|0)==(l|0)){c[e+(r*12|0)>>2]=q;c[e+(r*12|0)+4>>2]=p;o=(c[m>>2]|0)-q|0;s=(o|0)>-1?o:0-o|0;o=c[g>>2]|0;t=o-s|0;s=(s|0)<(t|0)?s:t;t=(c[n>>2]|0)-p|0;t=(t|0)>-1?t:0-t|0;o=o-t|0;o=(t|0)<(o|0)?t:o;c[e+(r*12|0)+8>>2]=(da(o,o)|0)+(da(s,s)|0);o=c[g>>2]|0;r=r+1|0}q=q+1|0;}while((q|0)<(o|0))}p=p+1|0;}while((p|0)<(o|0));pb(e|0,r|0,12,183);if((r|0)<=0){break}m=r+ -1|0;n=0;do{z=da(c[g>>2]|0,c[e+(n*12|0)+4>>2]|0)|0;a[(c[b>>2]|0)+(z+(c[e+(n*12|0)>>2]|0))|0]=255-((n*254|0)/(m|0)|0);n=n+1|0;}while((n|0)<(r|0))}else{pb(e|0,0,12,183)}}while(0);l=l+1|0;if((l|0)>=(h|0)){break}o=c[g>>2]|0}Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}function Dq(a,b){a=a|0;b=b|0;i=i;return(c[a+8>>2]|0)-(c[b+8>>2]|0)|0}function Eq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;c[b>>2]=c[d>>2];g=c[d+8>>2]|0;f=b+8|0;c[f>>2]=g;g=ye(da(g,g)|0,1)|0;c[b+4>>2]=g;f=c[f>>2]|0;$W(g|0,c[d+4>>2]|0,da(f,f)|0)|0;a[b+12|0]=a[d+12|0]|0;a[b+13|0]=a[d+13|0]|0;i=e;return}function Fq(a){a=a|0;var b=0;b=i;Fe(c[a+4>>2]|0);i=b;return}function Gq(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=a+4|0;if((c[h>>2]|0)==0){zq(a)}if((d[a+12|0]|0)>(f&255)){b=0;i=g;return b|0}if((d[a+13|0]|0)<=(f&255)){b=1;i=g;return b|0}a=c[a+8>>2]|0;b=(b|0)%(a|0)|0;e=(e|0)%(a|0)|0;b=(da((e|0)<0?0-e|0:e,a)|0)+((b|0)<0?0-b|0:b)|0;b=(d[(c[h>>2]|0)+b|0]|0)<=(f&255)|0;i=g;return b|0}function Hq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;yq(k,g);c[b+56>>2]=k;c[b+60>>2]=0;h[b+64>>3]=1.0;h[b+72>>3]=1.0;bX(b+80|0,0,16)|0;h[b+96>>3]=10.0;h[b+104>>3]=1.0;bX(b+112|0,0,17)|0;g=FW(80)|0;Ep(g,0.0,0.0,+(d|0)+-.001,+(e|0)+-.001,f);c[b+132>>2]=g;c[b+136>>2]=0;a[b+140|0]=0;a[b+141|0]=0;c[b+144>>2]=0;i=j;return}function Iq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;Eq(k,g);c[b+56>>2]=k;c[b+60>>2]=0;h[b+64>>3]=1.0;h[b+72>>3]=1.0;bX(b+80|0,0,16)|0;h[b+96>>3]=10.0;h[b+104>>3]=1.0;bX(!(Bd[c[d>>2]&255](b,a)|0)){x=1;i=e;return x|0}$W(x|0,a|0,56)|0;$W(a|0,b|0,56)|0;$W(b|0,x|0,56)|0;x=1;i=e;return x|0};default:{j=a+112|0;k=a+56|0;x=Bd[c[d>>2]&255](k,a)|0;l=Bd[c[d>>2]&255](j,k)|0;do{if(x){if(l){$W(n|0,a|0,56)|0;$W(a|0,j|0,56)|0;$W(j|0,n|0,56)|0;break}$W(r|0,a|0,56)|0;$W(a|0,k|0,56)|0;$W(k|0,r|0,56)|0;if(!(Bd[c[d>>2]&255](j,k)|0)){break}$W(q|0,k|0,56)|0;$W(k|0,j|0,56)|0;$W(j|0,q|0,56)|0}else{if(!l){break}$W(t|0,k|0,56)|0;$W(k|0,j|0,56)|0;$W(j|0,t|0,56)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(s|0,a|0,56)|0;$W(a|0,k|0,56)|0;$W(k|0,s|0,56)|0}}while(0);k=a+168|0;if((k|0)==(b|0)){x=1;i=e;return x|0}l=0;while(1){if(Bd[c[d>>2]&255](k,j)|0){$W(g|0,k|0,56)|0;m=k;while(1){$W(m|0,j|0,56)|0;if((j|0)==(a|0)){break}m=j+ -56|0;if(Bd[c[d>>2]&255](h,m)|0){x=j;j=m;m=x}else{break}}$W(j|0,g|0,56)|0;l=l+1|0;if((l|0)==8){break}}j=k+56|0;if((j|0)==(b|0)){a=1;f=35;break}else{x=k;k=j;j=x}}if((f|0)==35){i=e;return a|0}x=(k+56|0)==(b|0);i=e;return x|0}}return 0}function $q(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0.0,j=0,k=0.0,l=0.0,m=0.0,n=0.0,o=0;f=i;c[b>>2]=d;a[b+4|0]=e&1;e=c[d+4>>2]|0;if((e|0)==0){c[b+12>>2]=1;c[b+8>>2]=1;c[b+20>>2]=0;c[b+16>>2]=0;j=0;o=b+24|0;c[o>>2]=j;o=b+36|0;bX(o|0,0,16)|0;i=f;return}d=c[d>>2]|0;g=+h[d>>3];k=+h[d+16>>3];j=g>k;l=j?k:g;m=j?g:k;if((c[d+48>>2]&64|0)==0){o=d+24|0;j=d+8|0}else{o=d+8|0;j=d+24|0}k=+h[o>>3];g=+h[j>>3];if((e|0)>1){j=1;do{n=+h[d+(j*56|0)>>3];do{if(n<l){l=n}else{if(n<=m){break}m=n}}while(0);n=+h[d+(j*56|0)+16>>3];do{if(n<l){l=n}else{if(n<=m){break}m=n}}while(0);do{if((c[d+(j*56|0)+48>>2]&64|0)==0){n=+h[d+(j*56|0)+24>>3];if(n<=k){break}k=n}else{n=+h[d+(j*56|0)+8>>3];if(n<=k){break}k=n}}while(0);j=j+1|0;}while((j|0)<(e|0))}if(l<=0.0){l=+R(+l)}c[b+8>>2]=~~l;if(m<=0.0){m=+R(+m)}c[b+16>>2]=~~m;if(g<=0.0){g=+R(+g)}e=~~g;c[b+12>>2]=e;if(k<=0.0){k=+R(+k)}c[b+20>>2]=~~k;j=e+ -1|0;o=b+24|0;c[o>>2]=j;o=b+36|0;bXbX(c[j>>2]|0,0,da(c[e+4>>2]|0,c[k>>2]|0)|0)|0;n=h<<2;m=b+28|0;p=b+44|0;h=b+40|0;o=b+32|0;q=b+4|0;s=-1;t=c[e>>2]|0;r=0;do{cr(b,r+n|0);y=c[m>>2]|0;u=c[p>>2]|0;if((y|0)<(u|0)){do{w=c[h>>2]|0;v=c[w+(y*12|0)>>2]|0;z=c[w+(y*12|0)+4>>2]|0;x=(c[o>>2]|0)+(c[w+(y*12|0)+8>>2]|0)|0;c[o>>2]=x;y=y+1|0;c[m>>2]=y;a:do{if((y|0)<(u|0)){do{if((c[w+(y*12|0)>>2]|0)>(z|0)){if((a[q]&1)==0){A=(x|0)!=0|0}else{A=x&1}if((A|0)==0){break a}}A=c[w+(y*12|0)+4>>2]|0;z=(A|0)>(z|0)?A:z;x=x+(c[w+(y*12|0)+8>>2]|0)|0;c[o>>2]=x;y=y+1|0;c[m>>2]=y;}while((y|0)<(u|0))}}while(0);u=(v|0)<0?0:v;v=c[e>>2]|0;v=(z|0)<(v|0)?z+1|0:v;do{if((u|0)<(v|0)){x=c[j>>2]|0;y=(da(c[k>>2]|0,r)|0)+(u>>3)|0;w=x+y|0;z=u&7;if((z|0)==0){x=u}else{A=255>>>z;z=u&-8;if((z|0)==(v&-8|0)){A=65280>>>(v&7)&A&255}else{A=A&255}a[w]=a[w]|A;w=x+(y+1)|0;x=z+8|0}if((x+7|0)<(v|0)){z=x;while(1){x=w+1|0;a[w]=-1;y=z+8|0;if((z+15|0)<(v|0)){z=y;w=x}else{w=x;x=y;break}}}if((x|0)>=(v|0)){break}a[w]=d[w]|0|65280>>>(v&7)}}while(0);t=(u|0)<(t|0)?u:t;s=(v|0)>(s|0)?v:s;y=c[m>>2]|0;u=c[p>>2]|0;}while((y|0)<(u|0))}r=r+1|0;}while((r|0)<4);c[f>>2]=(t|0)/4|0;c[g>>2]=(s+ -1|0)/4|0;i=l;return}function ir(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;j=i;m=h<<2;k=b+28|0;r=b+44|0;p=e+20|0;q=e+12|0;l=b+40|0;n=b+32|0;o=b+4|0;h=0;do{s=c[f>>2]<<2;cr(b,h+m|0);y=c[k>>2]|0;u=c[r>>2]|0;a:do{if((y|0)<(u|0)){do{if((s|0)>=((c[g>>2]<<2)+4|0)){break a}w=c[l>>2]|0;v=c[w+(y*12|0)>>2]|0;t=c[w+(y*12|0)+4>>2]|0;x=(c[n>>2]|0)+(c[w+(y*12|0)+8>>2]|0)|0;c[n>>2]=x;y=y+1|0;c[k>>2]=y;b:do{if((y|0)<(u|0)){do{if((c[w+(y*12|0)>>2]|0)>(t|0)){if((a[o]&1)==0){z=(x|0)!=0|0}else{z=x&1}if((z|0)==0){break b}}z=c[w+(y*12|0)+4>>2]|0;t=(z|0)>(t|0)?z:t;x=x+(c[w+(y*12|0)+8>>2]|0)|0;c[n>>2]=x;y=y+1|0;c[k>>2]=y;}while((y|0)<(u|0))}}while(0);u=c[e>>2]|0;u=(v|0)>(u|0)?u:v;do{if((s|0)<(u|0)){w=c[p>>2]|0;v=(da(c[q>>2]|0,h)|0)+(s>>3)|0;x=w+v|0;y=s&7;if((y|0)!=0){y=65280>>>y;s=s&-8;if((s|0)==(u&-8|0)){y=(255>>>(u&7)|y)&255}else{y=y&255}a[x]=a[x]&y;x=w+(v+1)|0;s=s+8|0}if((s+7|0)<=(u|0)){v=x;while(1){x=v+1|0;a[v]=0;v=s+8|0;if((s+15|0)>(u|0)){s=v;break}else{s=v;v=x}}}if((s|0)>=(u|0)){break}a[x]=(d[x]|0)&255>>>(u&7)}}while(0);s=(t|0)<(s|0)?s:t+1|0;y=c[k>>2]|0;u=c[r>>2]|0;}while((y|0)<(u|0))}}while(0);u=(c[g>>2]<<2)+4|0;t=c[e>>2]|0;t=(u|0)>(t|0)?t:u;do{if((s|0)<(t|0)){v=c[p>>2]|0;w=(da(c[q>>2]|0,h)|0)+(s>>3)|0;u=v+w|0;x=s&7;if((x|0)!=0){x=65280>>>x;s=s&-8;if((s|0)==(t&-8|0)){x=255>>>(t&7)&x&255}else{x=x&255}a[u]=a[u]&x;u=v+(w+1)|0;s=s+8|0}if((s+7|0)<=(t|0)){w=u;v=s;while(1){u=w+1|0;a[w]=0;s=v+8|0;if((v+15|0)>(t|0)){break}else{v=s;w=u}}}if((s|0)>=(t|0)){break}a[u]=(d[u]|0)&255>>>(t&7)}}while(0);h=h+1|0;}while((h|0)<4);i=j;return}function jr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;l=i;i=i+16|0;q=i;i=i+16|0;r=i;i=i+16|0;p=i;i=i+16|0;o=i;i=i+16|0;E=i;i=i+16|0;G=i;i=i+16|0;C=i;i=i+16|0;F=i;i=i+16|0;D=i;i=i+16|0;z=i;i=i+16|0;A=i;i=i+16|0;y=i;i=i+16|0;B=i;i=i+16|0;g=i;i=i+16|0;f=g;h=i;i=i+16|0;j=i;i=i+16|0;n=i;i=i+16|0;k=i;i=i+16|0;u=i;i=i+16|0;s=i;i=i+16|0;t=i;i=i+16|0;w=i;i=i+16|0;v=i;i=i+16|0;M=i;i=i+16|0;L=i;i=i+16|0;I=i;i=i+16|0;H=i;i=i+16|0;x=i;i=i+16|0;J=i;i=i+16|0;a:while(1){m=b+ -12|0;b:while(1){O=b-a|0;switch((O|0)/12|0|0){case 4:{K=14;break a};case 3:{K=6;break a};case 5:{K=15;break a};case 1:case 0:{K=81;break a};case 2:{K=4;break a};default:{}}if((O|0)<372){K=21;break a}P=(O|0)/24|0;N=a+(P*12|0)|0;do{if((O|0)>11988){Q=(O|0)/48|0;O=a+(Q*12|0)|0;Q=a+((Q+P|0)*12|0)|0;P=kr(a,O,N,Q,d)|0;if(!(Bd[c[d>>2]&255](m,Q)|0)){break}$W(B|0,Q|0,12)|0;$W(Q|0,m|0,12)|0;$W(m|0,B|0,12)|0;if(!(Bd[c[d>>2]&255](Q,N)|0)){P=P+1|0;break}$W(A|0,N|0,12)|0;$W(N|0,Q|0,12)|0;$W(Q|0,A|0,12)|0;if(!(Bd[c[d>>2]&255](N,O)|0)){P=P+2|0;break}$W(z|0,O|0,12)|0;$W(O|0,N|0,12)|0;$W(N|0,z|0,12)|0;if(!(Bd[c[d>>2]&255](O,a)|0)){P=P+3|0;break}$W(y|0,a|0,12)|0;$W(a|0,O|0,12)|0;$W(O|0,y|0,12)|0;P=P+4|0}else{S=Bd[c[d>>2]&255](N,a)|0;O=Bd[c[d>>2]&255](m,N)|0;if(!S){if(!O){P=0;break}$W(D|0,N|0,12)|0;$W(N|0,m|0,12)|0;$W(m|0,D|0,12)|0;if(!(Bd[c[d>>2]&255](N,a)|0)){P=1;break}$W(C|0,a|0,12)|0;$W(a|0,N|0,12)|0;$W(N|0,C|0,12)|0;P=2;break}if(O){$W(E|0,a|0,12)|0;$W(a|0,m|0,12)|0;$W(m|0,E|0,12)|0;P=1;break}$W(G|0,a|0,12)|0;$W(a|0,N|0,12)|0;$W(N|0,G|0,12)|0;if(!(Bd[c[d>>2]&255](m,N)|0)){P=1;break}$W(F|0,N|0,12)|0;$W(N|0,m|0,12)|0;$W(m|0,F|0,12)|0;P=2}}while(0);do{if(Bd[c[d>>2]&255](a,N)|0){Q=m}else{Q=m;while(1){Q=Q+ -12|0;if((a|0)==(Q|0)){break}if(Bd[c[d>>2]&255](Q,N)|0){K=64;break}else{}}if((K|0)==64){K=0;$W(I|0,a|0,12)|0;$W(a|0,Q|0,12)|0;$W(Q|0,I|0,12)|0;P=P+1|0;break}O=a+12|0;if(!(Bd[c[d>>2]&255](a,m)|0)){if((O|0)==(m|0)){K=81;break a}while(1){N=O+12|0;if(Bd[c[d>>2]&255](a,O)|0){break}if((N|0)==(m|0)){K=81;break a}else{O=N}}$W(x|0,O|0,12)|0;$W(O|0,m|0,12)|0;$W(m|0,x|0,12)|0;O=N}if((O|0)==(m|0)){K=81;break a}else{N=m}while(1){while(1){P=O+12|0;if(Bd[c[d>>2]&255](a,O)|0){break}else{O=P}}do{N=N+ -12|0;}while(Bd[c[d>>2]&255](a,N)|0);if(O>>>0>=N>>>0){a=O;continue b}$W(H|0,O|0,12)|0;$W(O|0,N|0,12)|0;$W(N|0,H|0,12)|0;O=P}}}while(0);O=a+12|0;c:do{if(O>>>0<Q>>>0){while(1){S=O;while(1){O=S+12|0;if(Bd[c[d>>2]&255](S,N)|0){S=O}else{R=Q;break}}do{R=R+ -12|0;}while(!(Bd[c[d>>2]&255](R,N)|0));if(S>>>0>R>>>0){O=S;break c}$W(L|0,S|0,12)|0;$W(S|0,R|0,12)|0;$W(R|0,L|0,12)|0;Q=R;N=(N|0)==(S|0)?R:N;P=P+1|0}}}while(0);do{if((O|0)!=(N|0)){if(!(Bd[c[d>>2]&255](N,O)|0)){break}$W(M|0,O|0,12)|0;$W(O|0,N|0,12)|0;$W(N|0,M|0,12)|0;P=P+1|0}}while(0);if((P|0)==0){P=lr(a,O,d)|0;N=O+12|0;if(lr(N,b,d)|0){K=76;break}if(P){a=N;continue}}if((O-a|0)>=(b-O|0)){K=80;break}jr(a,O,d);a=O+12|0}if((K|0)==76){K=0;if(P){K=81;break}else{b=O;continue}}else if((K|0)==80){K=0;jr(O+12|0,b,d);b=O;continue}}if((K|0)==4){if(!(Bd[c[d>>2]&255](m,a)|0)){i=e;return}$W(J|0,a|0,12)|0;$W(a|0,m|0,12)|0;$W(m|0,J|0,12)|0;i=e;return}else if((K|0)==6){f=a+12|0;S=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](m,f)|0;if(!S){if(!g){i=e;return}$W(v|0,f|0,12)|0;$W(f|0,m|0,12)|0;$W(m|0,v|0,12)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){i=e;return}$W(t|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,t|0,12)|0;i=e;return}if(g){$W(u|0,a|0,12)|0;$W(a|0,m|0,12)|0;$W(m|0,u|0,12)|0;i=e;return}$W(s|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,s|0,12)|0;if(!(Bd[c[d>>2]&255](m,f)|0)){i=e;return}$W(w|0,f|0,12)|0;$W(f|0,m|0,12)|0;$W(m|0,w|0,12)|0;i=e;return}else if((K|0)==14){kr(a,a+12|0,a+24|0,m,d)|0;i=e;return}else if((K|0)==15){b=a+12|0;f=a+24|0;g=a+36|0;kr(a,b,f,g,d)|0;if(!(Bd[c[d>>2]&255](m,g)|0)){i=e;return}$W(k|0,g|0,12)|0;$W(g|0,m|0,12)|0;$W(m|0,k|0,12)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){i=e;return}$W(j|0,f|0,12)|0;$W(f|0,g|0,12)|0;$W(g|0,j|0,12)|0;if(!(Bd[c[d>>2]&255](f,b)|0)){i=e;return}$W(h|0,b|0,12)|0;$W(b|0,f|0,12)|0;$W(f|0,h|0,12)|0;if(!(Bd[c[d>>2]&255](b,a)|0)){i=e;return}$W(n|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,n|0,12)|0;i=e;return}else if((K|0)==21){h=a+24|0;k=a+12|0;S=Bd[c[d>>2]&255](k,a)|0;j=Bd[c[d>>2]&255](h,k)|0;do{if(S){if(j){$W(l|0,a|0,12)|0;$W(a|0,h|0,12)|0;$W(h|0,l|0,12)|0;break}$W(q|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,q|0,12)|0;if(!(Bd[c[d>>2]&255](h,k)|0)){break}$W(p|0,k|0,12)|0;$W(k|0,h|0,12)|0;$W(h|0,p|0,12)|0}else{if(!j){break}$W(o|0,k|0,12)|0;$W(k|0,h|0,12)|0;$W(h|0,o|0,12)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(r|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,r|0,12)|0}}while(0);j=a+36|0;if((j|0)==(b|0)){i=e;return}while(1){if(Bd[c[d>>2]&255](j,h)|0){$W(g|0,j|0,12)|0;k=j;while(1){$W(k|0,h|0,12)|0;if((h|0)==(a|0)){break}k=h+ -12|0;if(Bd[c[d>>2]&255](f,k)|0){S=h;h=k;k=S}else{break}}$W(h|0,g|0,12)|0}h=j+12|0;if((h|0)==(b|0)){break}else{S=j;j=h;h=S}}i=e;return}else if((K|0)==81){i=e;return}}function kr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;k=i;n=i;i=i+16|0;p=i;i=i+16|0;l=i;i=i+16|0;o=i;i=i+16|0;m=i;i=i+16|0;h=i;i=i+16|0;g=i;i=i+16|0;j=i;i=i+16|0;r=Bd[c[f>>2]&255](b,a)|0;q=Bd[c[f>>2]&255](d,b)|0;do{if(r){if(q){$W(n|0,a|0,12)|0;$W(a|0,d|0,12)|0;$W(d|0,n|0,12)|0;l=1;break}$W(p|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,p|0,12)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){l=1;break}$W(o|0,b|0,12)|0;$W(b|0,d|0,12)|0;$W(d|0,o|0,12)|0;l=2}else{if(!q){l=0;break}$W(m|0,b|0,12)|0;$W(b|0,d|0,12)|0;$W(d|0,m|0,12)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){l=1;break}$W(l|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,l|0,12)|0;l=2}}while(0);if(!(Bd[c[f>>2]&255](e,d)|0)){r=l;i=k;return r|0}$W(j|0,d|0,12)|0;$W(d|0,e|0,12)|0;$W(e|0,j|0,12)|0;if(!(Bd[c[f>>2]&255](d,b)|0)){r=l+1|0;i=k;return r|0}$W(h|0,b|0,12)|0;$W(b|0,d|0,12)|0;$W(d|0,h|0,12)|0;if(!(Bd[c[f>>2]&255](b,a)|0)){r=l+2|0;i=k;return r|0}$W(g|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,g|0,12)|0;r=l+3|0;i=k;return r|0}function lr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;n=i;i=i+16|0;r=i;i=i+16|0;s=i;i=i+16|0;q=i;i=i+16|0;t=i;i=i+16|0;k=i;i=i+16|0;j=i;i=i+16|0;l=i;i=i+16|0;m=i;i=i+16|0;u=i;i=i+16|0;w=i;i=i+16|0;p=i;i=i+16|0;v=i;i=i+16|0;o=i;i=i+16|0;x=i;i=i+16|0;g=i;i=i+16|0;h=g;switch((b-a|0)/12|0|0){case 3:{f=a+12|0;b=b+ -12|0;x=Bd[c[d>>2]&255](f,a)|0;g=Bd[c[d>>2]&255](b,f)|0;if(!x){if(!g){x=1;i=e;return x|0}$W(o|0,f|0,12)|0;$W(f|0,b|0,12)|0;$W(b|0,o|0,12)|0;if(!(Bd[c[d>>2]&255](f,a)|0)){x=1;i=e;return x|0}$W(p|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,p|0,12)|0;x=1;i=e;return x|0}if(g){$W(u|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,u|0,12)|0;x=1;i=e;return x|0}$W(w|0,a|0,12)|0;$W(a|0,f|0,12)|0;$W(f|0,w|0,12)|0;if(!(Bd[c[d>>2]&255](b,f)|0)){x=1;i=e;return x|0}$W(v|0,f|0,12)|0;$W(f|0,b|0,12)|0;$W(b|0,v|0,12)|0;x=1;i=e;return x|0};case 4:{kr(a,a+12|0,a+24|0,b+ -12|0,d)|0;x=1;i=e;return x|0};case 2:{b=b+ -12|0;if(!(Bd[c[d>>2]&255](b,a)|0)){x=1;i=e;return x|0}$W(x|0,a|0,12)|0;$W(a|0,b|0,12)|0;$W(b|0,x|0,12)|0;x=1;i=e;return x|0};case 5:{h=a+12|0;f=a+24|0;g=a+36|0;b=b+ -12|0;kr(a,h,f,g,d)|0;if(!(Bd[c[d>>2]&255](b,g)|0)){x=1;i=e;return x|0}$W(m|0,g|0,12)|0;$W(g|0,b|0,12)|0;$W(b|0,m|0,12)|0;if(!(Bd[c[d>>2]&255](g,f)|0)){x=1;i=e;return x|0}$W(j|0,f|0,12)|0;$W(f|0,g|0,12)|0;$W(g|0,j|0,12)|0;if(!(Bd[c[d>>2]&255](f,h)|0)){x=1;i=e;return x|0}$W(k|0,h|0,12)|0;$W(h|0,f|0,12)|0;$W(f|0,k|0,12)|0;if(!(Bd[c[d>>2]&255](h,a)|0)){x=1;i=e;return x|0}$W(l|0,a|0,12)|0;$W(a|0,h|0,12)|0;$W(h|0,l|0,12)|0;x=1;i=e;return x|0};case 1:case 0:{x=1;i=e;return x|0};default:{j=a+24|0;k=a+12|0;x=Bd[c[d>>2]&255](k,a)|0;l=Bd[c[d>>2]&255](j,k)|0;do{if(x){if(l){$W(n|0,a|0,12)|0;$W(a|0,j|0,12)|0;$W(j|0,n|0,12)|0;break}$W(r|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,r|0,12)|0;if(!(Bd[c[d>>2]&255](j,k)|0)){break}$W(q|0,k|0,12)|0;$W(k|0,j|0,12)|0;$W(j|0,q|0,12)|0}else{if(!l){break}$W(t|0,k|0,12)|0;$W(k|0,j|0,12)|0;$W(j|0,t|0,12)|0;if(!(Bd[c[d>>2]&255](k,a)|0)){break}$W(s|0,a|0,12)|0;$W(a|0,k|0,12)|0;$W(k|0,s|0,12)|0}}while(0);k=a+36|0;if((k|0)==(b|0)){x=1;i=e;return x|0}l=0;while(1){if(Bd[c[d>>2]&255](k,j)|0){$W(g|0,k|0,12)|0;m=k;while(1){$W(m|0,j|0,12)|0;if((j|0)==(a|0)){break}m=j+ -12|0;if(Bd[c[d>>2]&255](h,m)|0){x=j;j=m;m=x}else{break}}$W(j|0,g|0,12)|0;l=l+1|0;if((l|0)==8){break}}j=k+12|0;if((j|0)==(b|0)){a=1;f=35;break}else{x=k;k=j;j=x}}if((f|0)==35){i=e;return a|0}x=(k+12|0)==(b|0);i=e;return x|0}}return 0}function mr(a){a=a|0;var b=0;b=i;do{if((a|0)==0){a=5}else{if((te(a,55048)|0)==0){a=0;break}if((te(a,55056)|0)==0){a=1;break}if((te(a,55064)|0)==0){a=2;break}if((te(a,55072)|0)==0){a=3;break}if((te(a,55088)|0)==0){a=4;break}if((te(a,55104)|0)==0){a=6;break}if((te(a,55112)|0)==0){a=7;break}if((te(a,55128)|0)==0){a=8;break}a=(te(a,55144)|0)==0;a=a?9:5}}while(0);i=b;return a|0}function nr(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0,g=0,j=0,k=0,l=0,m=0.0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0;d=i;j=i;i=i+16|0;k=j;o=i;i=i+16|0;n=o;r=i;i=i+16|0;q=r;t=i;i=i+16|0;u=t;l=i;i=i+16|0;f=l;if((c[a+12>>2]|0)!=4){u=0;i=d;return u|0}c[l>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;do{if(((c[(ut(a,0,f)|0)>>2]|0)+ -1|0)>>>0<2){s=c[l>>2]|0;if((s+ -1|0)>>>0>=2){c[t>>2]=s;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,72608,u);tc()}if((s|0)==1){e=+(c[g>>2]|0);break}else{e=+h[g>>3];break}}else{e=0.0}}while(0);Of(f);do{if(((c[(ut(a,1,f)|0)>>2]|0)+ -1|0)>>>0<2){s=c[l>>2]|0;if((s+ -1|0)>>>0>=2){c[r>>2]=s;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,72608,q);tc()}if((s|0)==1){m=+(c[g>>2]|0);break}else{m=+h[g>>3];break}}else{m=0.0}}while(0);Of(f);do{if(((c[(ut(a,2,f)|0)>>2]|0)+ -1|0)>>>0<2){q=c[l>>2]|0;if((q+ -1|0)>>>0>=2){c[o>>2]=q;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,72608,n);tc()}if((q|0)==1){p=+(c[g>>2]|0);break}else{p=+h[g>>3];break}}else{p=0.0}}while(0);Of(f);do{if(((c[(ut(a,3,f)|0)>>2]|0)+ -1|0)>>>0<2){l=c[l>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,72608,k);tc()}if((l|0)==1){v=+(c[g>>2]|0);break}else{v=+h[g>>3];break}}else{v=0.0}}while(0);Of(f);if(!(v!=0.0&((e<0.0|m<0.0|p<0.0)^1))){u=0;i=d;return u|0}x=+h[b+16>>3];w=+h[b>>3];if(x-w-e-p<0.0){u=0;i=d;return u|0}y=+h[b+24>>3];z=+h[b+8>>3];if(y-z-m-v<0.0){u=0;i=d;return u|0}u=FW(32)|0;bXbX(e|0,0,o<<2|0)|0;a:do{if((p|0)>1){p=j+8|0;q=p+4|0;r=0;b:while(1){c[k>>2]=13;c[p>>2]=0;c[q>>2]=0;u=r<<1;do{if(((c[(ut(b,u,j)|0)>>2]|0)+ -1|0)>>>0<2){t=c[k>>2]|0;if((t+ -1|0)>>>0>=2){m=7;break b}if((t|0)==1){t=1;s=+(c[p>>2]|0);break}else{t=1;s=+h[p>>3];break}}else{t=0;s=0.0}}while(0);Of(j);if(((c[(ut(b,u|1,j)|0)>>2]|0)+ -1|0)>>>0>=2){m=12;break}u=c[k>>2]|0;if((u+ -1|0)>>>0>=2){m=14;break}if((u|0)==1){v=+(c[p>>2]|0);Of(j);if(!t){break}}else{v=+h[p>>3];Of(j);if(!t){break}}u=FW(16)|0;h[u>>3]=s;h[u+8>>3]=v;c[e+(r<<2)>>2]=u;r=r+1|0;if((r|0)>=(o|0)){break a}}if((m|0)==7){c[f>>2]=t;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,72608,g);tc()}else if((m|0)==12){Of(j)}else if((m|0)==14){c[l>>2]=u;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,72608,n);tc()}if((r|0)>0){do{r=r+ -1|0;f=c[e+(r<<2)>>2]|0;if((f|0)!=0){HW(f)}}while((r|0)>0)}Fe(e);i=d;return}}while(0);c[a>>2]=e;c[a+4>>2]=o;i=d;return}function qr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=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.0,M=0.0,N=0.0,O=0.0,P=0.0,Q=0.0,R=0.0;e=i;g=i;i=i+8|0;j=i;i=i+16|0;l=j;n=i;i=i+64|0;o=n;t=i;i=i+16|0;p=t;s=c[b+12>>2]|0;c[a>>2]=0;m=a+4|0;c[m>>2]=0;if((s&7|0)!=0){i=e;return}r=(s|0)/8|0;f=ye(r,4)|0;bX(f|0,0,r<<2|0)|0;a:do{if((s|0)>7){C=p+8|0;u=C+4|0;E=d+24|0;D=d+8|0;F=d+16|0;v=o+8|0;w=o+16|0;x=o+24|0;y=o+32|0;z=o+40|0;A=o+48|0;B=o+56|0;s=0;b:while(1){H=s<<3;G=0;do{c[t>>2]=13;c[C>>2]=0;c[u>>2]=0;if(((c[(ut(b,G+H|0,p)|0)>>2]|0)+ -1|0)>>>0>=2){break b}I=c[t>>2]|0;if((I+ -1|0)>>>0>=2){q=7;break b}I=(I|0)==1;if(I){K=c[C>>2]|0;J=K;L=+(K|0)}else{L=+h[C>>3];h[k>>3]=L;J=c[k>>2]|0}if(((G|0)%2|0|0)==1){M=+h[E>>3];do{if(L<=M){if(I){K=J;L=+(J|0)}else{L=+h[C>>3];h[k>>3]=L;K=c[k>>2]|0}M=+h[D>>3];if(L<M){break}if(I){M=+(K|0);break}else{M=+h[C>>3];break}}}while(0);h[o+(G<<3)>>3]=M}else{M=+h[F>>3];do{if(L<=M){if(I){K=J;L=+(J|0)}else{L=+h[C>>3];h[k>>3]=L;K=c[k>>2]|0}M=+h[d>>3];if(L<M){break}if(I){M=+(K|0);break}else{M=+h[C>>3];break}}}while(0);h[o+(G<<3)>>3]=M}Of(p);G=G+1|0;}while((G|0)<8);K=FW(64)|0;R=+h[v>>3];Q=+h[w>>3];P=+h[x>>3];O=+h[y>>3];N=+h[z>>3];L=+h[A>>3];M=+h[B>>3];h[K>>3]=+h[n>>3];h[K+8>>3]=R;h[K+16>>3]=Q;h[K+24>>3]=P;h[K+32>>3]=O;h[K+40>>3]=N;h[K+48>>3]=L;h[K+56>>3]=M;c[f+(s<<2)>>2]=K;s=s+1|0;if((s|0)>=(r|0)){break a}}if((q|0)==7){c[j>>2]=I;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,72608,l);tc()}Of(p);Qe(-1,55224,g);if((s|0)>0){g=0;do{j=c[f+(g<<2)>>2]|0;if((j|0)!=0){HW(j)}g=g+1|0;}while((g|0)<(s|0))}Fe(f);i=e;return}}while(0);c[m>>2]=r;c[a>>2]=f;i=e;return}function rr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55264;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function sr(a){a=a|0;var b=0;b=i;c[a>>2]=55264;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0;l=i;g=i;i=i+16|0;j=g;r=i;i=i+8|0;q=r;t=i;i=i+16|0;u=t;w=i;i=i+16|0;v=w;x=i;i=i+16|0;y=x;k=i;i=i+16|0;f=k;c[a+4>>2]=0;o=a+8|0;h[o>>3]=1.0;p=a+16|0;c[p>>2]=0;m=a+20|0;c[m>>2]=0;n=a+24|0;c[n>>2]=0;c[a>>2]=55304;c[k>>2]=13;d=f+8|0;c[d>>2]=0;c[d+4>>2]=0;z=c[b+12>>2]|0;s=(z|0)==4;do{if((z+ -3|0)>>>0<2){if(((c[(ut(b,0,f)|0)>>2]|0)+ -1|0)>>>0<2){z=c[k>>2]|0;if((z+ -1|0)>>>0>=2){c[x>>2]=z;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,72608,y);tc()}if((z|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[a+32>>3]=A;x=1}else{x=0}Of(f);if(((c[(ut(b,1,f)|0)>>2]|0)+ -1|0)>>>0<2){y=c[k>>2]|0;if((y+ -1|0)>>>0>=2){c[w>>2]=y;c[v+4>>2]=1;c[v+8>>2]=2;Qe(0,72608,v);tc()}if((y|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[a+40>>3]=A}else{x=0}Of(f);if(((c[(ut(b,2,f)|0)>>2]|0)+ -1|0)>>>0<2){a=c[k>>2]|0;if((a+ -1|0)>>>0>=2){c[t>>2]=a;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,72608,u);tc()}if((a|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[o>>3]=A}else{x=0}Of(f);if(!s){if((x&1)==0){break}i=l;return}if((c[(ut(b,3,f)|0)>>2]|0)!=6){Of(f);break}b=c[k>>2]|0;if((b|0)!=6){c[r>>2]=b;c[q+4>>2]=6;Qe(0,72520,q);tc()}b=c[d>>2]|0;q=c[b+12>>2]|0;r=ye(q,8)|0;a:do{if((q|0)>0){s=0;b:while(1){if((x&1)==0){e=x;break a}do{if(((c[(ut(b,s,f)|0)>>2]|0)+ -1|0)>>>0<2){t=c[k>>2]|0;if((t+ -1|0)>>>0>=2){break b}if((t|0)==1){A=+(c[d>>2]|0)}else{A=+h[d>>3]}h[r+(s<<3)>>3]=A;if(A>=0.0){break}x=0}else{x=0}}while(0);Of(f);s=s+1|0;if(!((s|0)<(q|0)&(s|0)<10)){e=x;break a}}c[g>>2]=t;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,72608,j);tc()}else{e=x}}while(0);if((e&1)==0){Fe(r);Of(f);break}c[p>>2]=q;c[m>>2]=r;c[n>>2]=1;Of(f);i=l;return}}while(0);h[o>>3]=0.0;i=l;return}function ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0;n=i;d=i;i=i+16|0;m=d;j=i;i=i+8|0;k=j;t=i;i=i+8|0;s=t;x=i;i=i+16|0;w=x;p=i;i=i+16|0;q=p;y=i;i=i+16|0;u=y;o=i;i=i+16|0;e=o;c[a+4>>2]=0;v=a+8|0;h[v>>3]=1.0;f=a+16|0;c[f>>2]=0;l=a+20|0;c[l>>2]=0;g=a+24|0;c[g>>2]=0;c[a>>2]=55344;c[p>>2]=13;a=q+8|0;c[a>>2]=0;c[a+4>>2]=0;c[y>>2]=13;z=u+8|0;c[z>>2]=0;c[z+4>>2]=0;Yu(b,55376,q,0)|0;Yu(b,55152,u,0)|0;do{if(((c[p>>2]|0)+ -1|0)>>>0<2){if((c[y>>2]|0)!=4){r=21;break}y=FW(32)|0;fe(y,c[z>>2]|0);z=c[p>>2]|0;if((z+ -1|0)>>>0>=2){c[x>>2]=z;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,72608,w);tc()}if((z|0)==1){A=+(c[a>>2]|0)}else{A=+h[a>>3]}h[v>>3]=A;do{if((te(y,55152)|0)==0){c[g>>2]=0}else{if((te(y,55384)|0)==0){c[g>>2]=1;break}if((te(y,55392)|0)==0){c[g>>2]=2;break}if((te(y,55168)|0)==0){c[g>>2]=3;break}if((te(y,55400)|0)==0){c[g>>2]=4;break}else{c[g>>2]=0;break}}}while(0);if((y|0)==0){break}ke(y);HW(y)}else{r=21}}while(0);if((r|0)==21){h[v>>3]=0.0}Of(u);Of(q);a:do{if((c[(Yu(b,55384,q,0)|0)>>2]|0)==6){r=c[p>>2]|0;if((r|0)!=6){c[t>>2]=r;c[s+4>>2]=6;Qe(0,72520,s);tc()}t=c[(c[a>>2]|0)+12>>2]|0;s=ye(t,8)|0;do{if((t|0)>=1){r=e+8|0;u=r+4|0;v=1;b=0;b:while(1){c[o>>2]=13;c[r>>2]=0;c[u>>2]=0;w=c[p>>2]|0;if((w|0)!=6){r=28;break}do{if(((c[(ut(c[a>>2]|0,b,e)|0)>>2]|0)+ -1|0)>>>0<2){w=c[o>>2]|0;if((w+ -1|0)>>>0>=2){r=31;break b}if((w|0)==1){A=+(c[r>>2]|0)}else{A=+h[r>>3]}h[s+(b<<3)>>3]=A;if(A>=0.0){break}v=0}else{v=0}}while(0);Of(e);b=b+1|0;if((b|0)>=(t|0)|v^1){r=38;break}}if((r|0)==28){c[j>>2]=w;c[k+4>>2]=6;Qe(0,72520,k);tc()}else if((r|0)==31){c[d>>2]=w;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,72608,m);tc()}else if((r|0)==38){if(v){break}Fe(s);break a}}}while(0);c[f>>2]=t;c[l>>2]=s;c[g>>2]=1}}while(0);if((c[l>>2]|0)!=0){Of(q);i=n;return}c[f>>2]=1;z=ye(1,8)|0;c[l>>2]=z;h[z>>3]=3.0;Of(q);i=n;return}function vr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0;f=i;m=i;i=i+16|0;l=m;j=i;i=i+16|0;k=j;n=c[b+12>>2]|0;e=a+32|0;n=(n|0)>4?4:n;c[e>>2]=n;a:do{if((n|0)>0){n=k+8|0;o=n+4|0;p=0;while(1){c[j>>2]=13;c[n>>2]=0;c[o>>2]=0;if(((c[(ut(b,p,k)|0)>>2]|0)+ -1|0)>>>0<2){q=c[j>>2]|0;if((q+ -1|0)>>>0>=2){break}if((q|0)==1){r=+(c[n>>2]|0)}else{r=+h[n>>3]}h[a+(p<<3)>>3]=r<0.0|r>1.0?0.0:r}else{h[a+(p<<3)>>3]=0.0}Of(k);p=p+1|0;q=c[e>>2]|0;if((p|0)>=(q|0)){g=q;break a}}c[m>>2]=q;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,72608,l);tc()}else{g=n}}while(0);b=(g|0)==4?0-d|0:d;if((b|0)>0){if((g|0)>0){g=0}else{i=f;return}do{q=a+(g<<3)|0;h[q>>3]=+h[q>>3]*.5+.5;g=g+1|0;}while((g|0)<(c[e>>2]|0));i=f;return}else{if((b|0)<0&(g|0)>0){g=0}else{i=f;return}do{q=a+(g<<3)|0;h[q>>3]=+h[q>>3]*.5;g=g+1|0;}while((g|0)<(c[e>>2]|0));i=f;return}}function wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,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.0;k=i;j=i;i=i+8|0;e=j;p=i;i=i+16|0;o=p;s=i;i=i+8|0;q=s;t=i;i=i+16|0;u=t;w=i;i=i+8|0;v=w;x=i;i=i+8|0;y=x;A=i;i=i+8|0;z=A;m=i;i=i+16|0;f=m;r=i;i=i+16|0;n=r;c[m>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;do{if((c[(Yu(d,55408,f,0)|0)>>2]|0)==4){B=FW(32)|0;C=c[m>>2]|0;if((C|0)!=4){c[A>>2]=C;c[z+4>>2]=4;Qe(0,72520,z);tc()}fe(B,c[g>>2]|0);do{if((te(B,55392)|0)==0){c[b>>2]=1}else{if((te(B,55152)|0)==0){c[b>>2]=2;break}if((te(B,55416)|0)==0){c[b>>2]=3;break}else{c[b>>2]=0;break}}}while(0);if((B|0)==0){break}ke(B);HW(B)}else{c[b>>2]=0}}while(0);Of(f);do{if((c[(Yu(d,55152,f,0)|0)>>2]|0)==4){z=FW(32)|0;A=c[m>>2]|0;if((A|0)!=4){c[x>>2]=A;c[y+4>>2]=4;Qe(0,72520,y);tc()}fe(z,c[g>>2]|0);c[b+4>>2]=(te(z,55424)|0)!=0;if((z|0)==0){break}ke(z);HW(z)}else{c[b+4>>2]=1}}while(0);Of(f);do{if((c[(Yu(d,55424,f,0)|0)>>2]|0)==6){x=c[m>>2]|0;if((x|0)!=6){c[w>>2]=x;c[v+4>>2]=6;Qe(0,72520,v);tc()}w=c[g>>2]|0;if((c[w+12>>2]|0)!=2){l=46;break}c[r>>2]=13;v=n+8|0;c[v>>2]=0;c[v+4>>2]=0;if(((c[(ut(w,0,n)|0)>>2]|0)+ -1|0)>>>0<2){w=c[r>>2]|0;if((w+ -1|0)>>>0>=2){c[t>>2]=w;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,72608,u);tc()}if((w|0)==1){D=+(c[v>>2]|0)}else{D=+h[v>>3]}h[b+8>>3]=D}else{h[b+8>>3]=0.0}Of(n);t=c[m>>2]|0;if((t|0)!=6){c[s>>2]=t;c[q+4>>2]=6;Qe(0,72520,q);tc()}if(((c[(ut(c[g>>2]|0,1,n)|0)>>2]|0)+ -1|0)>>>0<2){q=c[r>>2]|0;if((q+ -1|0)>>>0>=2){c[p>>2]=q;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,72608,o);tc()}if((q|0)==1){D=+(c[v>>2]|0)}else{D=+h[v>>3]}h[b+16>>3]=D}else{h[b+16>>3]=0.0}Of(n);n=b+8|0;D=+h[n>>3];if(D<0.0|D>1.0){h[n>>3]=.5}n=b+16|0;D=+h[n>>3];if(!(D<0.0|D>1.0)){break}h[n>>3]=.5}else{l=46}}while(0);if((l|0)==46){h[b+16>>3]=.5;h[b+8>>3]=.5}Of(f);if((c[(Yu(d,55432,f,0)|0)>>2]|0)!=0){a[b+24|0]=0;Of(f);i=k;return}l=c[m>>2]|0;if((l|0)!=0){c[j>>2]=l;c[e+4>>2]=0;Qe(0,72520,e);tc()}a[b+24|0]=a[g]&1;Of(f);i=k;return}function xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;g=i;i=i+8|0;d=g;k=i;i=i+8|0;l=k;n=i;i=i+8|0;m=n;p=i;i=i+8|0;o=p;r=i;i=i+8|0;q=r;s=i;i=i+8|0;t=s;v=i;i=i+8|0;u=v;x=i;i=i+8|0;w=x;j=i;i=i+16|0;e=j;c[j>>2]=13;f=e+8|0;c[f>>2]=0;c[f+4>>2]=0;do{if((c[(Yu(b,55440,e,0)|0)>>2]|0)==1){y=c[j>>2]|0;if((y|0)==1){c[a>>2]=c[f>>2];break}else{c[x>>2]=y;c[w+4>>2]=1;Qe(0,72520,w);tc()}}else{c[a>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55448,e,0)|0)>>2]|0)==6){w=FW(40)|0;x=c[j>>2]|0;if((x|0)==6){vr(w,c[f>>2]|0,0);c[a+4>>2]=w;break}else{c[v>>2]=x;c[u+4>>2]=6;Qe(0,72520,u);tc()}}else{c[a+4>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55456,e,0)|0)>>2]|0)==6){u=FW(40)|0;v=c[j>>2]|0;if((v|0)==6){vr(u,c[f>>2]|0,0);c[a+8>>2]=u;break}else{c[s>>2]=v;c[t+4>>2]=6;Qe(0,72520,t);tc()}}else{c[a+8>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55464,e,0)|0)>>2]|0)==4){s=FW(32)|0;t=c[j>>2]|0;if((t|0)==4){fe(s,c[f>>2]|0);c[a+12>>2]=s;break}else{c[r>>2]=t;c[q+4>>2]=4;Qe(0,72520,q);tc()}}else{c[a+12>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55472,e,0)|0)>>2]|0)==4){q=FW(32)|0;r=c[j>>2]|0;if((r|0)==4){fe(q,c[f>>2]|0);c[a+16>>2]=q;break}else{c[p>>2]=r;c[o+4>>2]=4;Qe(0,72520,o);tc()}}else{c[a+16>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55480,e,0)|0)>>2]|0)==4){o=FW(32)|0;p=c[j>>2]|0;if((p|0)==4){fe(o,c[f>>2]|0);c[a+20>>2]=o;break}else{c[n>>2]=p;c[m+4>>2]=4;Qe(0,72520,m);tc()}}else{c[a+20>>2]=0}}while(0);Of(e);do{if((c[(Yu(b,55488,e,0)|0)>>2]|0)==7){m=FW(32)|0;n=c[j>>2]|0;if((n|0)==7){wr(m,c[f>>2]|0);c[a+24>>2]=m;break}else{c[k>>2]=n;c[l+4>>2]=7;Qe(0,72520,l);tc()}}else{c[a+24>>2]=0}}while(0);Of(e);if((c[(Yu(b,55496,e,0)|0)>>2]|0)!=1){c[a+28>>2]=0;Of(e);i=h;return}b=c[j>>2]|0;if((b|0)!=1){c[g>>2]=b;c[d+4>>2]=1;Qe(0,72520,d);tc()}c[a+28>>2]=c[f>>2];Of(e);i=h;return}function yr(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;if((d|0)!=0){HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){HW(d)}d=c[a+12>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+16>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+20>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+24>>2]|0;if((a|0)==0){i=b;return}HW(a);i=b;return}function zr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0.0,sa=0.0;k=i;j=i;i=i+8|0;g=j;o=i;i=i+8|0;l=o;q=i;i=i+8|0;r=q;v=i;i=i+8|0;s=v;t=i;i=i+8|0;u=t;L=i;i=i+8|0;K=L;A=i;i=i+8|0;y=A;B=i;i=i+8|0;C=B;E=i;i=i+8|0;G=E;I=i;i=i+8|0;H=I;M=i;i=i+8|0;N=M;O=i;i=i+8|0;P=O;Q=i;i=i+8|0;R=Q;T=i;i=i+8|0;S=T;U=i;i=i+8|0;V=U;ga=i;i=i+8|0;Z=i;i=i+16|0;_=Z;aa=i;i=i+8|0;ba=aa;da=i;i=i+16|0;ca=da;fa=i;i=i+8|0;ea=fa;ia=i;i=i+16|0;ha=ia;ja=i;i=i+8|0;ka=ja;la=i;i=i+16|0;ma=la;pa=i;i=i+8|0;oa=pa;p=i;i=i+16|0;m=p;$=i;i=i+16|0;Y=$;J=i;i=i+16|0;w=J;D=i;i=i+16|0;x=D;F=i;i=i+16|0;z=F;c[p>>2]=13;n=m+8|0;c[n>>2]=0;c[n+4>>2]=0;c[b+52>>2]=0;c[b+56>>2]=65535;na=b+144|0;a[na]=1;c[b+112>>2]=d;c[b+124>>2]=0;h[b+136>>3]=0.0;d=b+64|0;qa=b+72|0;c[qa>>2]=0;c[qa+4>>2]=0;c[d>>2]=5;qa=FW(32)|0;bX0)!=3){c[b+200>>2]=0;Of(e);i=d;return}c[k>>2]=13;p=g+8|0;c[p>>2]=0;c[p+4>>2]=0;o=c[o>>2]|0;if((o|0)!=3){c[m>>2]=o;c[l+4>>2]=3;Qe(0,72520,l);tc()}l=c[n>>2]|0;do{if((c[(Yu(f,56240,g,0)|0)>>2]|0)==3){f=c[k>>2]|0;if((f|0)!=3){c[j>>2]=f;c[h+4>>2]=3;Qe(0,72520,h);tc()}f=c[p>>2]|0;if((te(f,56248)|0)==0){c[b+200>>2]=1;break}if((te(f,56256)|0)==0){c[b+200>>2]=2;break}if((te(f,56272)|0)==0){c[b+200>>2]=3;break}if((te(f,56288)|0)==0){c[b+200>>2]=4;break}if((te(f,56304)|0)==0){c[b+200>>2]=5;break}if((te(f,56320)|0)==0){c[b+200>>2]=6;break}h=b+200|0;if((te(f,56336)|0)==0){c[h>>2]=7;break}else{c[h>>2]=0;break}}else{c[b+200>>2]=0}}while(0);Of(g);if((te(l,56248)|0)==0){b=b+200|0;switch(c[b>>2]|0){case 7:case 6:case 5:case 4:case 3:{c[b>>2]=0;Of(e);i=d;return};case 0:{c[b>>2]=1;Of(e);i=d;return};default:{Of(e);i=d;return}}}b=b+200|0;if((te(l,56344)|0)!=0){c[b>>2]=0;Of(e);i=d;return}g=c[b>>2]|0;if((g|0)==2|(g|0)==1){c[b>>2]=0;Of(e);i=d;return}else if((g|0)==0){c[b>>2]=7;Of(e);i=d;return}else{Of(e);i=d;return}}function Qr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=56184;d=c[a+196>>2]|0;if((d|0)!=0){ke(d);HW(d)}Or(a);HW(a);i=b;return}function Rr(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=56184;d=c[a+196>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0.0,C=0.0,D=0.0;e=i;r=i;i=i+16|0;u=r;v=i;i=i+32|0;q=v;t=i;i=i+40|0;s=t;l=i;i=i+16|0;f=l;p=i;i=i+32|0;j=p;n=i;i=i+16|0;m=n;o=i;i=i+16|0;g=o;c[l>>2]=13;l=f+8|0;c[l>>2]=0;c[l+4>>2]=0;l=c[a+48>>2]|0;if((l&2|0)!=0){i=e;return}do{if(d){if((l&4|0)!=0){break}i=e;return}else{if((l&32|0)==0){break}i=e;return}}while(0);d=c[a+88>>2]|0;do{if((d|0)!=0){l=a+96|0;if((c[l>>2]|0)!=9){break}if(GF(d,l)|0){break}i=e;return}}while(0);l=a+28|0;x=c[l>>2]|0;d=a+64|0;if((c[d>>2]|0)==5){y=+h[a+160>>3];w=FW(32)|0;ee(w);x=a+124|0;c[x>>2]=w;ne(w,56352,-1)|0;w=a+132|0;z=c[w>>2]|0;do{if((z|0)==0){ne(c[x>>2]|0,56360,-1)|0}else{A=c[z+32>>2]|0;if((A|0)==3){A=c[x>>2]|0;C=+h[z+8>>3];B=+h[z+16>>3];h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=q+8|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=q+16|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[q+24>>2]=55800;pe(A,55768,q)|0;break}else if((A|0)==4){A=c[x>>2]|0;D=+h[z+8>>3];B=+h[z+16>>3];C=+h[z+24>>3];v=t;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=s+8|0;h[k>>3]=D;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=s+16|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=s+24|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[s+32>>2]=107;pe(A,55728,s)|0;break}else if((A|0)==1){A=c[x>>2]|0;v=r;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];c[u+8>>2]=103;pe(A,55816,u)|0;break}else{break}}}while(0);q=a+196|0;do{if((te(c[q>>2]|0,56216)|0)==0){ne(c[x>>2]|0,56376,-1)|0}else{if((te(c[q>>2]|0,57440)|0)==0){ne(c[x>>2]|0,57448,-1)|0;break}if((te(c[q>>2]|0,58064)|0)==0){ne(c[x>>2]|0,58072,-1)|0;break}if((te(c[q>>2]|0,59480)|0)==0){ne(c[x>>2]|0,59488,-1)|0;break}if((te(c[q>>2]|0,60600)|0)==0){ne(c[x>>2]|0,60616,-1)|0;break}if((te(c[q>>2]|0,61776)|0)==0){ne(c[x>>2]|0,61792,-1)|0;break}if((te(c[q>>2]|0,62360)|0)==0){ne(c[x>>2]|0,62368,-1)|0;break}if((te(c[q>>2]|0,62888)|0)==0){ne(c[x>>2]|0,62896,-1)|0;break}if((te(c[q>>2]|0,55056)|0)!=0){break}ne(c[x>>2]|0,63240,-1)|0}}while(0);ne(c[x>>2]|0,63808,-1)|0;bXbX(ka|0,0,16)|0;c[b+192>>2]=ka;ka=FW(16)|0;bX(ka|0,0,16)|0;c[b+196>>2]=ka}Of(g);do{if((c[(Yu(f,64088,g,0)|0)>>2]|0)==6){T=c[p>>2]|0;if((T|0)!=6){c[R>>2]=T;c[S+4>>2]=6;Qe(0,72520,S);tc()}S=c[l>>2]|0;if((c[S+12>>2]|0)!=2){I=54;break}c[N>>2]=13;R=L+8|0;c[R>>2]=0;c[R+4>>2]=0;do{if((c[(ut(S,0,L)|0)>>2]|0)==3){S=c[N>>2]|0;if((S|0)==3){c[b+200>>2]=mr(c[R>>2]|0)|0;break}else{c[Q>>2]=S;c[P+4>>2]=3;Qe(0,72520,P);tc()}}else{c[b+200>>2]=5}}while(0);Of(L);P=c[p>>2]|0;if((P|0)!=6){c[M>>2]=P;c[O+4>>2]=6;Qe(0,72520,O);tc()}do{if((c[(ut(c[l>>2]|0,1,L)|0)>>2]|0)==3){M=c[N>>2]|0;if((M|0)==3){c[b+204>>2]=mr(c[R>>2]|0)|0;break}else{c[J>>2]=M;c[K+4>>2]=3;Qe(0,72520,K);tc()}}else{c[b+204>>2]=5}}while(0);Of(L)}else{I=54}}while(0);if((I|0)==54){c[b+204>>2]=5;c[b+200>>2]=5}Of(g);do{if((c[(Yu(f,64136,g,0)|0)>>2]|0)==6){I=FW(40)|0;J=c[p>>2]|0;if((J|0)==6){vr(I,c[l>>2]|0,0);c[b+208>>2]=I;break}else{c[H>>2]=J;c[G+4>>2]=6;Qe(0,72520,G);tc()}}else{c[b+208>>2]=0}}while(0);Of(g);if(((c[(Yu(f,64144,g,0)|0)>>2]|0)+ -1|0)>>>0<2){G=c[p>>2]|0;if((G+ -1|0)>>>0>=2){c[E>>2]=G;c[F+4>>2]=1;c[F+8>>2]=2;Qe(0,72608,F);tc()}if((G|0)==1){ca=+(c[l>>2]|0)}else{ca=+h[l>>3]}h[b+216>>3]=ca}else{h[b+216>>3]=0.0}Of(g);do{if(((c[(Yu(f,64152,g,0)|0)>>2]|0)+ -1|0)>>>0<2){E=c[p>>2]|0;if((E+ -1|0)>>>0>=2){c[D>>2]=E;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,72608,C);tc()}if((E|0)==1){ca=+(c[l>>2]|0)}else{ca=+h[l>>3]}C=b+224|0;h[C>>3]=ca;if(ca>=0.0){break}h[C>>3]=0.0}else{h[b+224>>3]=0.0}}while(0);Of(g);do{if((c[(Yu(f,64160,g,0)|0)>>2]|0)==0){C=c[p>>2]|0;if((C|0)==0){a[b+232|0]=a[l]&1;break}else{c[A>>2]=C;c[B+4>>2]=0;Qe(0,72520,B);tc()}}else{a[b+232|0]=0}}while(0);Of(g);do{if((c[(Yu(f,64024,g,0)|0)>>2]|0)==4){A=FW(32)|0;B=c[p>>2]|0;if((B|0)!=4){c[y>>2]=B;c[z+4>>2]=4;Qe(0,72520,z);tc()}fe(A,c[l>>2]|0);do{if((te(A,64168)|0)==0){c[b+236>>2]=0}else{y=b+236|0;if((te(A,64184)|0)==0){c[y>>2]=1;break}else{c[y>>2]=0;break}}}while(0);if((A|0)==0){break}ke(A);HW(A)}else{c[b+236>>2]=0}}while(0);Of(g);do{if(((c[(Yu(f,64200,g,0)|0)>>2]|0)+ -1|0)>>>0<2){y=c[p>>2]|0;if((y+ -1|0)>>>0>=2){c[w>>2]=y;c[x+4>>2]=1;c[x+8>>2]=2;Qe(0,72608,x);tc()}if((y|0)==1){ca=+(c[l>>2]|0)}else{ca=+h[l>>3]}w=b+240|0;h[w>>3]=ca;if(ca>=0.0){break}h[w>>3]=0.0}else{h[b+240>>3]=0.0}}while(0);Of(g);do{if((c[(Yu(f,64208,g,0)|0)>>2]|0)==4){w=FW(32)|0;x=c[p>>2]|0;if((x|0)!=4){c[u>>2]=x;c[v+4>>2]=4;Qe(0,72520,v);tc()}fe(w,c[l>>2]|0);do{if((te(w,64216)|0)==0){c[b+248>>2]=0}else{u=b+248|0;if((te(w,64224)|0)==0){c[u>>2]=1;break}else{c[u>>2]=0;break}}}while(0);if((w|0)==0){break}ke(w);HW(w)}else{c[b+248>>2]=0}}while(0);Of(g);Yu(f,64232,g,0)|0;c[b+252>>2]=0;Of(g);do{if((c[(Yu(f,64240,g,0)|0)>>2]|0)==6){f=c[p>>2]|0;if((f|0)!=6){c[s>>2]=f;c[t+4>>2]=6;Qe(0,72520,t);tc()}s=c[l>>2]|0;if((c[s+12>>2]|0)!=2){break}c[n>>2]=13;f=e+8|0;c[f>>2]=0;c[f+4>>2]=0;if(((c[(ut(s,0,e)|0)>>2]|0)+ -1|0)>>>0<2){s=c[n>>2]|0;if((s+ -1|0)>>>0>=2){c[r>>2]=s;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,72608,q);tc()}if((s|0)==1){ca=+(c[f>>2]|0)}else{ca=+h[f>>3]}h[b+256>>3]=ca}else{h[b+256>>3]=0.0}Of(e);p=c[p>>2]|0;if((p|0)!=6){c[m>>2]=p;c[o+4>>2]=6;Qe(0,72520,o);tc()}if(((c[(ut(c[l>>2]|0,1,e)|0)>>2]|0)+ -1|0)>>>0<2){l=c[n>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,72608,k);tc()}if((l|0)==1){ca=+(c[f>>2]|0)}else{ca=+h[f>>3]}h[b+264>>3]=ca}else{h[b+264>>3]=0.0}Of(e);Of(g);i=d;return}}while(0);bX(b+256|0,0,16)|0;Of(g);i=d;return}function as(a){a=a|0;var b=0;b=i;bs(a);HW(a);i=b;return}function bs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=64104;d=c[a+192>>2]|0;if((d|0)!=0){HW(d)}d=c[a+196>>2]|0;if((d|0)!=0){HW(d)}d=c[a+208>>2]|0;if((d|0)!=0){HW(d)}d=c[a+252>>2]|0;if((d|0)==0){Or(a);i=b;return}Su(d);HW(d);Or(a);i=b;return}function cs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=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.0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0.0,K=0.0,L=0.0;f=i;q=i;i=i+16|0;r=q;o=i;i=i+16|0;p=o;m=i;i=i+8|0;u=m;w=i;i=i+8|0;x=w;B=i;i=i+16|0;D=B;F=i;i=i+32|0;C=F;E=i;i=i+40|0;G=E;v=i;i=i+16|0;e=v;s=i;i=i+32|0;l=s;t=i;i=i+16|0;j=t;n=i;i=i+16|0;g=n;c[v>>2]=13;v=e+8|0;c[v>>2]=0;c[v+4>>2]=0;v=c[a+48>>2]|0;if((v&2|0)!=0){i=f;return}do{if(d){if((v&4|0)!=0){break}i=f;return}else{if((v&32|0)==0){break}i=f;return}}while(0);d=c[a+88>>2]|0;do{if((d|0)!=0){v=a+96|0;if((c[v>>2]|0)!=9){break}if(GF(d,v)|0){break}i=f;return}}while(0);v=a+28|0;d=c[v>>2]|0;A=+h[d+24>>3];if(+h[d+8>>3]==A){y=c[a+128>>2]|0;if((y|0)==0){J=1.0}else{J=+wd[c[(c[y>>2]|0)+12>>2]&1](y);d=c[v>>2]|0;A=+h[d+24>>3]}h[d+24>>3]=J+A}d=a+64|0;do{if((c[d>>2]|0)==5){A=+h[a+160>>3];y=FW(32)|0;ee(y);z=a+124|0;c[z>>2]=y;ne(y,56352,-1)|0;y=a+132|0;H=c[y>>2]|0;do{if((H|0)!=0){I=c[H+32>>2]|0;if((I|0)==3){I=c[z>>2]|0;K=+h[H+8>>3];J=+h[H+16>>3];G=F;h[k>>3]=+h[H>>3];c[G>>2]=c[k>>2];c[G+4>>2]=c[k+4>>2];H=C+8|0;h[k>>3]=K;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=C+16|0;h[k>>3]=J;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];c[C+24>>2]=55808;pe(I,55768,C)|0;break}else if((I|0)==1){I=c[z>>2]|0;G=B;h[k>>3]=+h[H>>3];c[G>>2]=c[k>>2];c[G+4>>2]=c[k+4>>2];c[D+8>>2]=71;pe(I,55816,D)|0;break}else if((I|0)==4){I=c[z>>2]|0;L=+h[H+8>>3];J=+h[H+16>>3];K=+h[H+24>>3];F=E;h[k>>3]=+h[H>>3];c[F>>2]=c[k>>2];c[F+4>>2]=c[k+4>>2];H=G+8|0;h[k>>3]=L;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=G+16|0;h[k>>3]=J;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=G+24|0;h[k>>3]=K;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];c[G+32>>2]=75;pe(I,55728,G)|0;break}else{break}}}while(0);B=a+128|0;C=c[B>>2]|0;if((C|0)!=0){I=(jd[c[(c[C>>2]|0)+24>>2]&511](C)|0)==1;C=c[z>>2]|0;if(I){ne(C,64248,-1)|0;C=c[B>>2]|0;C=jd[c[(c[C>>2]|0)+16>>2]&511](C)|0;D=c[B>>2]|0;D=jd[c[(c[D>>2]|0)+20>>2]&511](D)|0;F=c[z>>2]|0;if((C|0)>0){E=0;while(1){I=w;h[k>>3]=+h[D+(E<<3)>>3];c[I>>2]=c[k>>2];c[I+4>>2]=c[k+4>>2];pe(F,64256,x)|0;E=E+1|0;F=c[z>>2]|0;if((E|0)<(C|0)){}else{break}}}ne(F,64272,-1)|0}else{ne(C,64280,-1)|0}I=c[z>>2]|0;H=c[B>>2]|0;L=+wd[c[(c[H>>2]|0)+12>>2]&1](H);H=m;h[k>>3]=L;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];pe(I,64288,u)|0}I=c[z>>2]|0;H=c[a+192>>2]|0;G=c[v>>2]|0;L=+h[H+8>>3]- +h[G+8>>3];F=o;h[k>>3]=+h[H>>3]- +h[G>>3];c[F>>2]=c[k>>2];c[F+4>>2]=c[k+4>>2];F=p+8|0;h[k>>3]=L;c[F>>2]=c[k>>2];c[F+4>>2]=c[k+4>>2];pe(I,55832,p)|0;I=c[z>>2]|0;F=c[a+196>>2]|0;G=c[v>>2]|0;L=+h[F+8>>3]- +h[G+8>>3];H=q;h[k>>3]=+h[F>>3]- +h[G>>3];c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];H=r+8|0;h[k>>3]=L;c[H>>2]=c[k>>2];c[H+4>>2]=c[k+4>>2];pe(I,64304,r)|0;ne(c[z>>2]|0,55928,-1)|0;ne(c[z>>2]|0,63808,-1)|0;bXbXbX(n|0,0,16)|0;W=c[p>>2]|0;h[m+16>>3]=+h[W+16>>3]- +h[W>>3];h[m+24>>3]=+h[W+24>>3]- +h[W+8>>3];if(J==1.0){Er(a,m,0,0,d)}else{c[o>>2]=13;n=l+8|0;c[n>>2]=0;c[n+4>>2]=0;Er(a,m,1,0,l);n=c[I>>2]|0;if((n|0)!=0){ke(n);HW(n)}c[j>>2]=13;W=g+8|0;c[W>>2]=0;c[W+4>>2]=0;W=FW(32)|0;fe(W,63816);c[I>>2]=W;Fr(a,63832,l,63840,J,0,g);Er(a,m,0,g,d)}g=c[I>>2]|0;if((g|0)==0){break}ke(g);HW(g)}else{D=a+132|0;p=a+28|0}}while(0);Nf(d,c[a+112>>2]|0,e,0)|0;W=c[p>>2]|0;Tx(b,e,0,c[D>>2]|0,+h[W>>3],+h[W+8>>3],+h[W+16>>3],+h[W+24>>3]);Of(e);i=f;return}function Hs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=i;h=i;i=i+8|0;g=h;l=i;i=i+8|0;m=l;o=i;i=i+8|0;p=o;r=i;i=i+8|0;q=r;v=i;i=i+8|0;u=v;x=i;i=i+8|0;w=x;z=i;i=i+8|0;y=z;C=i;i=i+8|0;B=i;i=i+8|0;A=B;F=i;i=i+8|0;D=F;k=i;i=i+16|0;d=k;E=i;i=i+32|0;t=i;i=i+16|0;s=t;c[k>>2]=13;j=d+8|0;c[j>>2]=0;c[j+4>>2]=0;if((c[(Yu(f,55944,d,0)|0)>>2]|0)==4){G=c[k>>2]|0;if((G|0)!=4){c[F>>2]=G;c[D+4>>2]=4;Qe(0,72520,D);tc()}fe(E,c[j>>2]|0);do{if((te(E,65816)|0)==0){c[b+24>>2]=7}else{if((te(E,65824)|0)!=0){break}c[b+24>>2]=8}}while(0);ke(E)}Of(d);G=(c[(Yu(f,65840,d,0)|0)>>2]|0)==6;D=FW(8)|0;do{if(G){C=c[k>>2]|0;if((C|0)==6){G=c[j>>2]|0;c[D>>2]=0;c[D+4>>2]=0;pr(D,G);c[b+192>>2]=D;break}else{c[B>>2]=C;c[A+4>>2]=6;Qe(0,72520,A);tc()}}else{c[D>>2]=0;c[D+4>>2]=0;c[b+192>>2]=D;Qe(-1,65856,C);a[b+144|0]=0}}while(0);Of(d);do{if((c[(Yu(f,64088,d,0)|0)>>2]|0)==6){A=c[k>>2]|0;if((A|0)!=6){c[z>>2]=A;c[y+4>>2]=6;Qe(0,72520,y);tc()}z=c[j>>2]|0;if((c[z+12>>2]|0)!=2){n=31;break}c[t>>2]=13;y=s+8|0;c[y>>2]=0;c[y+4>>2]=0;do{if((c[(ut(z,0,s)|0)>>2]|0)==3){z=c[t>>2]|0;if((z|0)==3){c[b+196>>2]=mr(c[y>>2]|0)|0;break}else{c[x>>2]=z;c[w+4>>2]=3;Qe(0,72520,w);tc()}}else{c[b+196>>2]=5}}while(0);Of(s);w=c[k>>2]|0;if((w|0)!=6){c[v>>2]=w;c[u+4>>2]=6;Qe(0,72520,u);tc()}do{if((c[(ut(c[j>>2]|0,1,s)|0)>>2]|0)==3){t=c[t>>2]|0;if((t|0)==3){c[b+200>>2]=mr(c[y>>2]|0)|0;break}else{c[r>>2]=t;c[q+4>>2]=3;Qe(0,72520,q);tc()}}else{c[b+200>>2]=5}}while(0);Of(s)}else{n=31}}while(0);if((n|0)==31){c[b+200>>2]=5;c[b+196>>2]=5}Of(d);do{if((c[(Yu(f,64136,d,0)|0)>>2]|0)==6){n=FW(40)|0;q=c[k>>2]|0;if((q|0)==6){vr(n,c[j>>2]|0,0);c[b+204>>2]=n;break}else{c[o>>2]=q;c[p+4>>2]=6;Qe(0,72520,p);tc()}}else{c[b+204>>2]=0}}while(0);Of(d);do{if((c[(Yu(f,64072,d,0)|0)>>2]|0)==7){n=FW(16)|0;o=c[k>>2]|0;if((o|0)==7){or(n,c[j>>2]|0);c[b+208>>2]=n;break}else{c[l>>2]=o;c[m+4>>2]=7;Qe(0,72520,m);tc()}}else{c[b+208>>2]=0}}while(0);Of(d);if((c[(Yu(f,64024,d,0)|0)>>2]|0)!=4){c[b+212>>2]=0;Of(d);i=e;return}f=FW(32)|0;k=c[k>>2]|0;if((k|0)!=4){c[h>>2]=k;c[g+4>>2]=4;Qe(0,72520,g);tc()}fe(f,c[j>>2]|0);do{if((te(f,65888)|0)==0){c[b+212>>2]=0}else{b=b+212|0;if((te(f,65904)|0)==0){c[b>>2]=1;break}else{c[b>>2]=2;break}}}while(0);if((f|0)==0){Of(d);i=e;return}ke(f);HW(f);Of(d);i=e;return}function Is(a){a=a|0;var b=0;b=i;Js(a);HW(a);i=b;return}function Js(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=65800;d=c[a+192>>2]|0;if((d|0)!=0){h=c[d>>2]|0;if((h|0)!=0){e=d+4|0;f=c[e>>2]|0;if((f|0)>0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){HW(j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while((g|0)<(f|0))}Fe(h)}HW(d)}d=c[a+204>>2]|0;if((d|0)!=0){HW(d)}d=c[a+208>>2]|0;if((d|0)==0){Or(a);i=b;return}HW(d);Or(a);i=b;return}function Ks(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;b=i;d=i;i=i+8|0;f=d;l=i;i=i+8|0;m=l;n=i;i=i+16|0;h=n;k=i;i=i+32|0;c[n>>2]=13;g=h+8|0;c[g>>2]=0;c[g+4>>2]=0;j=a+192|0;c[j>>2]=0;if((c[(Yu(e,65960,h,0)|0)>>2]|0)==4){o=c[n>>2]|0;if((o|0)!=4){c[l>>2]=o;c[m+4>>2]=4;Qe(0,72520,m);tc()}fe(k,c[g>>2]|0);do{if((te(k,55584)|0)==0){c[j>>2]=1}else{if((te(k,56336)|0)!=0){break}c[j>>2]=0}}while(0);ke(k)}Of(h);if((c[(Yu(e,64080,h,0)|0)>>2]|0)!=6){c[a+196>>2]=0;Of(h);i=b;return}e=c[n>>2]|0;if((e|0)!=6){c[d>>2]=e;c[f+4>>2]=6;Qe(0,72520,f);tc()}c[a+196>>2]=nr(c[g>>2]|0,c[a+28>>2]|0)|0;Of(h);i=b;return}function Ls(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65936;d=c[a+196>>2]|0;if((d|0)!=0){HW(d)}Or(a);HW(a);i=b;return}function Ms(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65936;d=c[a+196>>2]|0;if((d|0)==0){Or(a);i=b;return}HW(d);Or(a);i=b;return}function Ns(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;o=i;i=i+8|0;e=i;i=i+8|0;d=e;n=i;i=i+8|0;l=n;p=i;i=i+16|0;g=p;j=i;i=i+16|0;k=j;c[p>>2]=13;m=g+8|0;c[m>>2]=0;c[m+4>>2]=0;if((c[(Yu(f,66e3,g,0)|0)>>2]|0)!=6){c[b+196>>2]=0;c[b+192>>2]=0;Qe(-1,66008,o);a[b+144|0]=0;Of(g);i=h;return}f=c[p>>2]|0;if((f|0)!=6){c[n>>2]=f;c[l+4>>2]=6;Qe(0,72520,l);tc()}l=c[m>>2]|0;q=c[l+12>>2]|0;f=b+196|0;c[f>>2]=q;q=ye(q,4)|0;m=b+192|0;c[m>>2]=q;bX(q|0,0,c[f>>2]<<2|0)|0;if((c[f>>2]|0)<=0){Of(g);i=h;return}o=k+8|0;n=o+4|0;p=0;while(1){c[j>>2]=13;c[o>>2]=0;c[n>>2]=0;if((c[(ut(l,p,k)|0)>>2]|0)==6){q=FW(8)|0;b=c[j>>2]|0;if((b|0)!=6){j=8;break}b=c[o>>2]|0;c[q>>2]=0;c[q+4>>2]=0;pr(q,b);c[(c[m>>2]|0)+(p<<2)>>2]=q}Of(k);p=p+1|0;if((p|0)>=(c[f>>2]|0)){j=12;break}}if((j|0)==8){c[e>>2]=b;c[d+4>>2]=6;Qe(0,72520,d);tc()}else if((j|0)==12){Of(g);i=h;return}}function Os(a){a=a|0;var b=0;b=i;Ps(a);HW(a);i=b;return}function Ps(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;b=i;c[a>>2]=65976;d=a+192|0;j=c[d>>2]|0;if((j|0)==0){Or(a);i=b;return}e=a+196|0;h=c[e>>2]|0;if((h|0)>0){f=0;do{g=c[j+(f<<2)>>2]|0;if((g|0)!=0){l=c[g>>2]|0;if((l|0)!=0){h=g+4|0;j=c[h>>2]|0;if((j|0)>0){k=0;do{m=c[l+(k<<2)>>2]|0;if((m|0)!=0){HW(m);l=c[g>>2]|0;j=c[h>>2]|0}k=k+1|0;}while((k|0)<(j|0))}Fe(l)}HW(g);j=c[d>>2]|0;h=c[e>>2]|0}f=f+1|0;}while((f|0)<(h|0))}Fe(j);Or(a);i=b;return}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=i;i=i+8|0;h=g;m=i;i=i+8|0;l=i;i=i+16|0;j=l;c[l>>2]=13;e=j+8|0;c[e>>2]=0;c[e+4>>2]=0;do{if((c[(Yu(f,66072,j,0)|0)>>2]|0)==7){k=3}else{if((c[(Yu(f,66072,j,0)|0)>>2]|0)==3){k=3;break}Qe(-1,66080,m);a[b+144|0]=0}}while(0);if((k|0)==3){Mf(j,b+192|0)|0}Of(j);m=(c[(Yu(f,56208,j,0)|0)>>2]|0)==4;f=FW(32)|0;if(!m){fe(f,66112);c[b+208>>2]=f;Of(j);i=d;return}k=c[l>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,72520,h);tc()}fe(f,c[e>>2]|0);c[b+208>>2]=f;Of(j);i=d;return}function Rs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=66040;Of(a+192|0);d=c[a+208>>2]|0;if((d|0)==0){Or(a);HW(a);i=b;return}ke(d);HW(d);Or(a);HW(a);i=b;return}function Ss(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=66040;Of(a+192|0);d=c[a+208>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Ts(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=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.0,y=0,z=0,A=0.0,B=0.0,C=0.0;f=i;t=i;i=i+16|0;r=t;s=i;i=i+32|0;u=s;v=i;i=i+40|0;q=v;p=i;i=i+16|0;e=p;n=i;i=i+32|0;j=n;o=i;i=i+16|0;g=o;m=i;i=i+16|0;l=m;c[p>>2]=13;p=e+8|0;c[p>>2]=0;c[p+4>>2]=0;p=c[a+48>>2]|0;if((p&2|0)!=0){i=f;return}do{if(d){if((p&4|0)!=0){break}i=f;return}else{if((p&32|0)==0){break}i=f;return}}while(0);p=c[a+88>>2]|0;do{if((p|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(p,d)|0){break}i=f;return}}while(0);p=a+64|0;do{if((c[p>>2]|0)==5){x=+h[a+160>>3];d=FW(32)|0;ee(d);w=a+124|0;c[w>>2]=d;ne(d,56352,-1)|0;d=a+132|0;z=c[d>>2]|0;do{if((z|0)==0){ne(c[w>>2]|0,56360,-1)|0}else{y=c[z+32>>2]|0;if((y|0)==3){y=c[w>>2]|0;B=+h[z+8>>3];A=+h[z+16>>3];v=s;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=u+8|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+16|0;h[k>>3]=A;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[u+24>>2]=55800;pe(y,55768,u)|0;break}else if((y|0)==1){y=c[w>>2]|0;v=t;h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];c[r+8>>2]=103;pe(y,55816,r)|0;break}else if((y|0)==4){y=c[w>>2]|0;C=+h[z+8>>3];A=+h[z+16>>3];B=+h[z+24>>3];h[k>>3]=+h[z>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];z=q+8|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=q+16|0;h[k>>3]=A;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=q+24|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[q+32>>2]=107;pe(y,55728,q)|0;break}else{break}}}while(0);q=a+208|0;do{if((te(c[q>>2]|0,66112)|0)==0){ne(c[w>>2]|0,66120,-1)|0}else{if((te(c[q>>2]|0,66664)|0)==0){ne(c[w>>2]|0,66680,-1)|0;break}if((te(c[q>>2]|0,67536)|0)==0){ne(c[w>>2]|0,67544,-1)|0;break}if((te(c[q>>2]|0,68128)|0)!=0){break}ne(c[w>>2]|0,68136,-1)|0}}while(0);ne(c[w>>2]|0,63808,-1)|0;bX(n|0,0,16)|0;h[j+24>>3]=24.0;h[j+16>>3]=24.0;if(x==1.0){Er(a,j,0,0,p)}else{c[o>>2]=13;n=g+8|0;c[n>>2]=0;c[n+4>>2]=0;Er(a,j,1,0,g);n=c[w>>2]|0;if((n|0)!=0){ke(n);HW(n)}c[m>>2]=13;z=l+8|0;c[z>>2]=0;c[z+4>>2]=0;z=FW(32)|0;fe(z,63816);c[w>>2]=z;Fr(a,63832,g,63840,x,0,l);Er(a,j,0,l,p)}g=c[w>>2]|0;if((g|0)==0){break}ke(g);HW(g)}else{d=a+132|0}}while(0);Nf(p,c[a+112>>2]|0,e,0)|0;z=c[a+28>>2]|0;Tx(b,e,c[a+128>>2]|0,c[d>>2]|0,+h[z>>3],+h[z+8>>3],+h[z+16>>3],+h[z+24>>3]);Of(e);i=f;return}function Us(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=i;i=i+8|0;h=g;l=i;i=i+8|0;k=i;i=i+16|0;j=k;c[k>>2]=13;e=j+8|0;c[e>>2]=0;c[e+4>>2]=0;m=HG(Yu(f,69904,j,0)|0)|0;c[b+192>>2]=m;if((m|0)==0){Qe(-1,69912,l);a[b+144|0]=0}Of(j);m=(c[(Yu(f,56208,j,0)|0)>>2]|0)==4;f=FW(32)|0;if(!m){fe(f,69928);c[b+196>>2]=f;Of(j);i=d;return}k=c[k>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,72520,h);tc()}fe(f,c[e>>2]|0);c[b+196>>2]=f;Of(j);i=d;return}function Vs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=69888;d=c[a+192>>2]|0;if((d|0)!=0){JG(d);HW(d)}d=c[a+196>>2]|0;if((d|0)==0){Or(a);HW(a);i=b;return}ke(d);HW(d);Or(a);HW(a);i=b;return}function Ws(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=69888;d=c[a+192>>2]|0;if((d|0)!=0){JG(d);HW(d)}d=c[a+196>>2]|0;if((d|0)==0){Or(a);i=b;return}ke(d);HW(d);Or(a);i=b;return}function Xs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=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.0,y=0,z=0,A=0.0,B=0.0,C=0.0;f=i;s=i;i=i+16|0;p=s;q=i;i=i+32|0;r=q;t=i;i=i+40|0;u=t;v=i;i=i+16|0;e=v;o=i;i=i+32|0;g=o;m=i;i=i+16|0;j=m;n=i;i=i+16|0;l=n;c[v>>2]=13;v=e+8|0;c[v>>2]=0;c[v+4>>2]=0;v=c[a+48>>2]|0;if((v&2|0)!=0){i=f;return}do{if(d){if((v&4|0)!=0){break}i=f;return}else{if((v&32|0)==0){break}i=f;return}}while(0);v=c[a+88>>2]|0;do{if((v|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(v,d)|0){break}i=f;return}}while(0);v=a+64|0;do{if((c[v>>2]|0)==5){x=+h[a+160>>3];d=FW(32)|0;ee(d);w=a+124|0;c[w>>2]=d;ne(d,56352,-1)|0;d=a+132|0;z=c[d>>2]|0;do{if((z|0)==0){ne(c[w>>2]|0,56360,-1)|0}else{y=c[z+32>>2]|0;if((y|0)==4){y=c[w>>2]|0;C=+h[z+8>>3];B=+h[z+16>>3];A=+h[z+24>>3];h[k>>3]=+h[z>>3];c[t>>2]=c[k>>2];c[t+4>>2]=c[k+4>>2];z=u+8|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+16|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+24|0;h[k>>3]=A;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[u+32>>2]=107;pe(y,55728,u)|0;break}else if((y|0)==1){y=c[w>>2]|0;u=s;h[k>>3]=+h[z>>3];c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];c[p+8>>2]=103;pe(y,55816,p)|0;break}else if((y|0)==3){y=c[w>>2]|0;B=+h[z+8>>3];C=+h[z+16>>3];u=q;h[k>>3]=+h[z>>3];c[u>>2]=c[k>>2];c[u+4>>2]=c[k+4>>2];z=r+8|0;h[k>>3]=B;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=r+16|0;h[k>>3]=C;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];c[r+24>>2]=55800;pe(y,55768,r)|0;break}else{break}}}while(0);p=a+196|0;do{if((te(c[p>>2]|0,69928)|0)==0){ne(c[w>>2]|0,69936,-1)|0}else{if((te(c[p>>2]|0,70664)|0)!=0){break}ne(c[w>>2]|0,70672,-1)|0}}while(0);ne(c[w>>2]|0,63808,-1)|0;bXbX(a|0,0,16)|0;i=b;return}function Mt(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){Gt(d)}d=c[a+4>>2]|0;if((d|0)!=0){Gt(d)}d=c[a+8>>2]|0;if((d|0)!=0){Gt(d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}Gt(a);i=b;return}function Nt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;c[a+4>>2]=d;c[a>>2]=b;c[a+12>>2]=0;h=FW(12)|0;c[h>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;g=a+16|0;c[g>>2]=h;h=a+8|0;c[h>>2]=0;b=sd[c[(c[b>>2]|0)+8>>2]&127](b,d,a)|0;c[h>>2]=b;c[a+20>>2]=1;g=c[g>>2]|0;b=(b>>>13)+1|0;d=g+4|0;a=c[d>>2]|0;h=c[g>>2]|0;f=(a-h|0)/8196|0;if(f>>>0<b>>>0){Yt(g,b-f|0);i=e;return}if(f>>>0<=b>>>0){i=e;return}b=h+(b*8196|0)|0;if((b|0)==(a|0)){i=e;return}c[d>>2]=a+(~(((a+ -8196+(0-b)|0)>>>0)/8196|0)*8196|0);i=e;return}function Ot(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}a=c[a+16>>2]|0;if((a|0)==0){i=b;return}d=c[a>>2]|0;if((d|0)!=0){e=a+4|0;f=c[e>>2]|0;if((d|0)!=(f|0)){c[e>>2]=f+(~(((f+ -8196+(0-d)|0)>>>0)/8196|0)*8196|0)}HW(d)}HW(a);i=b;return}function Pt(a){a=a|0;a=a+20|0;c[a>>2]=(c[a>>2]|0)+1;i=i;return}function Qt(a){a=a|0;var b=0,d=0,e=0;b=i;e=a+20|0;d=(c[e>>2]|0)+ -1|0;c[e>>2]=d;if((d|0)!=0|(a|0)==0){i=b;return}Ot(a);HW(a);i=b;return}function Rt(a){a=a|0;i=i;return c[a+12>>2]|0}function St(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((d|0)==0){c[a+12>>2]=b}else if((d|0)==1){d=a+12|0;b=(c[d>>2]|0)+b|0;c[d>>2]=b}else{b=(c[a+8>>2]|0)+b|0;c[a+12>>2]=b}if(b>>>0<=(c[a+8>>2]|0)>>>0){d=0;i=e;return d|0}c[a+12>>2]=0;d=1;i=e;return d|0}function Tt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;f=i;i=i+16|0;o=f;h=i;i=i+16|0;q=h;k=i;i=i+16|0;x=k;n=i;i=i+16|0;p=n;c[f>>2]=0;d=o+4|0;c[d>>2]=0;m=o+8|0;c[m>>2]=0;v=a+8|0;u=c[v>>2]|0;t=u>>>13;r=t+1|0;g=FW((u>>>18<<2)+4|0)|0;s=r>>>5;bX(g|0,0,s<<2|0)|0;j=s<<5;if((j|0)!=(r|0)){C=g+(s<<2)|0;c[C>>2]=c[C>>2]&~(-1>>>(31-t+j|0))}c[h>>2]=0;j=q+4|0;c[j>>2]=0;t=q+8|0;c[t>>2]=0;c[k>>2]=0;s=x+4|0;c[s>>2]=0;y=x+8|0;c[y>>2]=0;w=c[b+4>>2]|0;if((c[b>>2]|0)==(w|0)){w=FW(8)|0;if((w|0)!=0){C=w;c[C>>2]=0;c[C+4>>2]=u}C=w+8|0;c[k>>2]=w;c[s>>2]=C;c[y>>2]=w+8;u=C;w=C}else{u=0;x=b}b=0;do{C=g+(b>>>5<<2)|0;c[C>>2]=c[C>>2]&~(1<<(b&31));b=b+1|0;}while((b|0)<(r|0));b=c[x>>2]|0;if((w|0)==(b|0)){v=0}else{x=a+16|0;y=0;while(1){B=c[b+(y<<3)+4>>2]|0;a:do{if((B|0)!=0){z=c[b+(y<<3)>>2]|0;A=c[v>>2]|0;if(z>>>0>=A>>>0){break}B=B+ -1+z|0;z=z>>>13;A=(B>>>0<A>>>0?B:A+ -1|0)>>>13;if(z>>>0>A>>>0){break}B=c[x>>2]|0;while(1){if((c[(c[B>>2]|0)+(z*8196|0)>>2]|0)==0){C=g+(z>>>5<<2)|0;c[C>>2]=c[C>>2]|1<<(z&31)}if((z|0)>=(A|0)){break a}z=z+1|0}}}while(0);y=y+1|0;if(y>>>0>=w-b>>3>>>0){v=0;break}}}b:while(1){if((1<<(v&31)&c[g+(v>>>5<<2)>>2]|0)==0){v=v+1|0;if((v|0)==(r|0)){l=66;break}else{continue}}if((v|0)==(r|0)){l=66;break}x=c[d>>2]|0;do{if((x|0)==(c[m>>2]|0)){w=c[f>>2]|0;b=x-w|0;y=b>>2;x=y+1|0;if(x>>>0>1073741823){l=28;break b}if(y>>>0>536870910){A=1073741823;l=31}else{z=b>>1;A=z>>>0<x>>>0?x:z;if((A|0)==0){z=0;A=0}else{l=31}}if((l|0)==31){l=0;z=FW(A<<2)|0}y=z+(y<<2)|0;if((y|0)!=0){c[y>>2]=v}$W(z|0,w|0,b|0)|0;c[f>>2]=z;c[d>>2]=z+(x<<2);c[m>>2]=z+(A<<2);if((w|0)==0){break}HW(w)}else{if((x|0)==0){w=0}else{c[x>>2]=v;w=c[d>>2]|0}c[d>>2]=w+4}}while(0);w=v+1|0;c:do{if((w|0)==(r|0)){b=v;w=r}else{b=v;while(1){if((c[g+(w>>>5<<2)>>2]&1<<(w&31)|0)==0){break c}b=c[d>>2]|0;do{if((b|0)==(c[m>>2]|0)){x=c[f>>2]|0;b=b-x|0;z=b>>2;y=z+1|0;if(y>>>0>1073741823){l=44;break b}if(z>>>0>536870910){B=1073741823;l=47}else{A=b>>1;B=A>>>0<y>>>0?y:A;if((B|0)==0){A=0;B=0}else{l=47}}if((l|0)==47){l=0;A=FW(B<<2)|0}z=A+(z<<2)|0;if((z|0)!=0){c[z>>2]=w}$W(A|0,x|0,b|0)|0;c[f>>2]=A;c[d>>2]=A+(y<<2);c[m>>2]=A+(B<<2);if((x|0)==0){break}HW(x)}else{if((b|0)==0){x=0}else{c[b>>2]=w;x=c[d>>2]|0}c[d>>2]=x+4}}while(0);x=w+1|0;if((x|0)==(r|0)){b=w;w=r;break}else{b=w;w=x}}}}while(0);x=v<<13;v=(b-v<<13)+8192|0;y=c[j>>2]|0;do{if((y|0)==(c[t>>2]|0)){b=c[h>>2]|0;z=y-b|0;A=z>>3;y=A+1|0;if(y>>>0>536870911){l=58;break b}if(A>>>0>268435454){C=536870911;l=61}else{B=z>>2;C=B>>>0<y>>>0?y:B;if((C|0)==0){B=0;C=0}else{l=61}}if((l|0)==61){l=0;B=FW(C<<3)|0}A=B+(A<<3)|0;if((A|0)!=0){c[A>>2]=x;c[A+4>>2]=v}$W(B|0,b|0,z|0)|0;c[h>>2]=B;c[j>>2]=B+(y<<3);c[t>>2]=B+(C<<3);if((b|0)==0){break}HW(b)}else{if((y|0)==0){v=0}else{C=y;c[C>>2]=x;c[C+4>>2]=v;v=c[j>>2]|0}c[j>>2]=v+8}}while(0);if((w|0)<(r|0)){v=w}else{l=66;break}}if((l|0)==28){wn(0)}else if((l|0)==44){wn(0)}else if((l|0)==58){wn(0)}else if((l|0)==66){if((c[j>>2]|0)==(c[h>>2]|0)){a=0}else{c[n>>2]=a;c[p+4>>2]=o;c[p+12>>2]=0;c[p+8>>2]=c[f>>2];a=c[a>>2]|0;a=sd[c[(c[a>>2]|0)+12>>2]&127](a,q,p)|0}k=c[k>>2]|0;if((k|0)!=0){if((k|0)!=(u|0)){c[s>>2]=u+(~((u+ -8+(0-k)|0)>>>3)<<3)}HW(k)}h=c[h>>2]|0;if((h|0)!=0){k=c[j>>2]|0;if((h|0)!=(k|0)){c[j>>2]=k+(~((k+ -8+(0-h)|0)>>>3)<<3)}HW(h)}if((g|0)!=0){HW(g)}f=c[f>>2]|0;if((f|0)==0){i=e;return a|0}g=c[d>>2]|0;if((f|0)!=(g|0)){c[d>>2]=g+(~((g+ -4+(0-f)|0)>>>2)<<2)}HW(f);i=e;return a|0}return 0}function Ut(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;g=i;i=i+16|0;h=g;j=da(e,d)|0;e=c[a+8>>2]|0;d=a+12|0;k=c[d>>2]|0;e=e>>>0<(k+j|0)>>>0?e-k|0:j;if((e|0)==0){n=0;i=f;return n|0}c[g>>2]=0;j=h+4|0;c[j>>2]=0;m=h+8|0;c[m>>2]=0;l=FW(8)|0;n=l+8|0;if((l|0)!=0){o=l;c[o>>2]=k;c[o+4>>2]=e}c[g>>2]=l;c[j>>2]=n;c[m>>2]=n;h=Tt(a,h)|0;k=c[g>>2]|0;if((k|0)!=0){g=c[j>>2]|0;if((k|0)!=(g|0)){c[j>>2]=g+(~((g+ -8+(0-k)|0)>>>3)<<3)}HW(k)}if((h|0)!=0){o=0;i=f;return o|0}a=a+16|0;g=c[d>>2]|0;h=e;while(1){k=g&8191;j=8192-k|0;j=j>>>0>h>>>0?h:j;$W(b|0,(c[c[a>>2]>>2]|0)+((g>>>13)*8196|0)+4+k|0,j|0)|0;g=(c[d>>2]|0)+j|0;c[d>>2]=g;if((h|0)==(j|0)){break}else{h=h-j|0;b=b+j|0}}i=f;return e|0}function Vt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;c[a>>2]=b;c[a+4>>2]=d;if((d|0)==0){i=e;return}c[a+12>>2]=0;c[a+8>>2]=c[d>>2];i=e;return}function Wt(a){a=a|0;i=i;return}function Xt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;if((d|0)==0){r=0;i=e;return r|0}h=a+4|0;g=a+12|0;j=a+8|0;k=0;while(1){l=c[h>>2]|0;if((l|0)==0){m=c[a>>2]|0;l=m+8|0;c[g>>2]=c[l>>2]&8191;l=(c[l>>2]|0)>>>13}else{m=c[j>>2]|0;if((c[g>>2]|0)==8192){m=m+4|0;c[j>>2]=m;if((m|0)==(c[l+4>>2]|0)){f=23;break}c[g>>2]=0;l=m}else{l=m}m=c[a>>2]|0;l=c[l>>2]|0}q=c[m+16>>2]|0;m=q+4|0;n=c[m>>2]|0;p=c[q>>2]|0;r=(n-p|0)/8196|0;do{if(l>>>0>=r>>>0){o=l+1|0;if(r>>>0<o>>>0){Yt(q,o-r|0);break}if(r>>>0<=o>>>0){break}o=p+(o*8196|0)|0;if((o|0)==(n|0)){break}c[m>>2]=n+(~(((n+ -8196+(0-o)|0)>>>0)/8196|0)*8196|0)}}while(0);n=c[g>>2]|0;m=8192-n|0;m=d>>>0>=m>>>0?m:d;$W((c[c[(c[a>>2]|0)+16>>2]>>2]|0)+(l*8196|0)+4+n|0,b|0,m|0)|0;n=(c[g>>2]|0)+m|0;c[g>>2]=n;k=m+k|0;if((c[h>>2]|0)==0){n=(c[a>>2]|0)+8|0;c[n>>2]=(c[n>>2]|0)+m;n=c[g>>2]|0}if((n|0)==8192){c[(c[c[(c[a>>2]|0)+16>>2]>>2]|0)+(l*8196|0)>>2]=1}if((d|0)==(m|0)){break}else{b=b+m|0;d=d-m|0}}if((f|0)==23){i=e;return k|0}f=c[a>>2]|0;g=c[f+8>>2]|0;if((l|0)!=(g>>>13|0)){r=k;i=e;return r|0}if((c[a+12>>2]|0)!=(g&8191|0)){r=k;i=e;return r|0}c[(c[c[f+16>>2]>>2]|0)+(l*8196|0)>>2]=1;r=k;i=e;return r|0}function Yt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;f=a+8|0;k=c[f>>2]|0;d=a+4|0;g=c[d>>2]|0;if(((k-g|0)/8196|0)>>>0>=b>>>0){do{if((g|0)==0){f=0}else{bX(g|0,0,8196)|0;f=c[d>>2]|0}g=f+8196|0;c[d>>2]=g;b=b+ -1|0;}while((b|0)!=0);i=e;return}l=c[a>>2]|0;g=(g-l|0)/8196|0;j=g+b|0;if(j>>>0>524032){wn(0)}k=(k-l|0)/8196|0;if(k>>>0>262015){k=524032;h=9}else{k=k<<1;k=k>>>0<j>>>0?j:k;if((k|0)==0){j=0;k=0}else{h=9}}if((h|0)==9){j=FW(k*8196|0)|0}h=j+(g*8196|0)|0;do{if((h|0)==0){h=0}else{bX(h|0,0,8196)|0}h=h+8196|0;b=b+ -1|0;}while((b|0)!=0);b=c[a>>2]|0;m=(c[d>>2]|0)-b|0;l=j+((((m|0)/-8196|0)+g|0)*8196|0)|0;$W(l|0,b|0,m|0)|0;c[a>>2]=l;c[d>>2]=h;c[f>>2]=j+(k*8196|0);if((b|0)==0){i=e;return}HW(b);i=e;return}function Zt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;f=i;n=i;i=i+8|0;o=n;v=i;i=i+8|0;p=v;x=i;i=i+8|0;y=x;B=i;i=i+8|0;C=B;E=i;i=i+8|0;r=i;i=i+16|0;e=r;A=i;i=i+16|0;q=A;z=i;i=i+16|0;s=z;D=i;i=i+16|0;l=D;c[b+48>>2]=13;j=b+56|0;c[j>>2]=0;c[j+4>>2]=0;c[b+64>>2]=13;j=b+72|0;c[j>>2]=0;c[j+4>>2]=0;c[b+96>>2]=13;j=b+104|0;c[j>>2]=0;c[j+4>>2]=0;c[b+112>>2]=13;j=b+120|0;c[j>>2]=0;c[j+4>>2]=0;c[b+128>>2]=13;j=b+136|0;c[j>>2]=0;c[j+4>>2]=0;j=b+144|0;c[j>>2]=13;m=b+152|0;c[m>>2]=0;c[m+4>>2]=0;c[r>>2]=13;m=e+8|0;c[m>>2]=0;c[m+4>>2]=0;c[A>>2]=13;w=q+8|0;c[w>>2]=0;c[w+4>>2]=0;c[z>>2]=13;t=s+8|0;c[t>>2]=0;c[t+4>>2]=0;c[D>>2]=13;D=l+8|0;c[D>>2]=0;c[D+4>>2]=0;D=b+164|0;a[D]=1;c[b>>2]=d;c[b+4>>2]=0;c[b+8>>2]=0;c[b+36>>2]=-1;c[b+40>>2]=0;u=b+92|0;c[u>>2]=0;c[b+168>>2]=0;h=b+32|0;c[h>>2]=0;k=b+160|0;c[k>>2]=0;c[b+172>>2]=6;c[b+176>>2]=7;c[b+80>>2]=0;c[b+84>>2]=0;c[b+88>>2]=0;bXbX(B|0,0,16384)|0;a:do{if((Do(h,256,d)|0)==0){w=0;A=0;v=0;y=0}else{w=0;z=0;A=0;v=0;y=0;D=4096;C=8;do{while(1){while(1){z=z+1|0;E=Mb(h|0,131328,k|0)|0;if((E|0)!=0){c[e>>2]=p;if((Hc(E|0,131232,r|0)|0)==1){break}}H=c[q>>2]|0;c[n>>2]=z;c[o+4>>2]=H;Qe(-1,131336,o);if((Do(h,256,d)|0)==0){break a}else{}}G=Mb(0,131328,k|0)|0;if((G|0)!=0){F=0;while(1){if((F|0)>=(C|0)){H=C+8|0;C=H;x=Ce(x,H,4)|0}c[l>>2]=x+(F<<2);E=F+1|0;if((Hc(G|0,131232,m|0)|0)!=1){u=14;break}G=Mb(0,131328,k|0)|0;if((G|0)==0){break}else{F=E}}if((u|0)==14){u=0;E=c[q>>2]|0;c[s>>2]=z;c[t+4>>2]=E;Qe(-1,131336,t);E=F}if((E|0)>=1){break}}H=c[q>>2]|0;c[f>>2]=z;c[g+4>>2]=H;Qe(-1,131336,g);if((Do(h,256,d)|0)==0){break a}}G=c[j>>2]|0;if(G>>>0>=D>>>0){F=D;while(1){if(G>>>0<F>>>0){break}else{F=F<<1}}B=Ce(B,F,4)|0;bXbX;p=c[b+40>>2]|0;o=b+32|0;d=c[o+4>>2]|0;e=m;c[e>>2]=c[o>>2];c[e+4>>2]=d;$W(l|0,m|0,8)|0;pn(p,n,f);i=j;return}function nv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;q=i;i=i+8|0;p=q;h=i;i=i+8|0;g=h;o=i;i=i+8|0;t=o;l=i;i=i+8|0;k=l;v=i;i=i+8|0;n=i;i=i+16|0;m=n;j=i;i=i+8|0;u=i;i=i+16|0;s=u;r=i;i=i+8|0;if((a[b+56|0]&1)!=0){Qe(-1,147560,v);e=0;i=f;return e|0}v=c[b+60>>2]|0;if(!((v|0)==0|(v|0)==2)){e=1;i=f;return e|0}if(!e){if((a[b+72|0]&1)!=0){e=0;i=f;return e|0}c[b+68>>2]=-1;g=s+8|0;c[g+4>>2]=0;c[u>>2]=4;c[g>>2]=Ge(146784)|0;g=b+24|0;h=c[g>>2]|0;if((h|0)!=7){c[o>>2]=h;c[t+4>>2]=7;Qe(0,148232,t);tc()}Wu(c[b+32>>2]|0,146792,s);e=c[b+40>>2]|0;t=b+8|0;u=c[t+4>>2]|0;v=r;c[v>>2]=c[t>>2];c[v+4>>2]=u;$W(q|0,r|0,8)|0;pn(e,g,p);e=1;i=f;return e|0}o=b+68|0;c[o>>2]=d;q=b+48|0;r=c[q>>2]|0;if((r|0)>0){p=b+52|0;s=0;do{if((s|0)==(d|0)){d=s}else{mv(c[(c[p>>2]|0)+(s<<2)>>2]|0,0,1);r=c[q>>2]|0;d=c[o>>2]|0}s=s+1|0;}while((s|0)<(r|0))}if((d|0)<=-1){e=1;i=f;return e|0}d=(c[(c[b+52>>2]|0)+(d<<2)>>2]|0)+120|0;if((c[(c[d>>2]|0)+28>>2]|0)==0){e=1;i=f;return e|0}c[n>>2]=13;e=m+8|0;c[e>>2]=0;v=e+4|0;c[v>>2]=0;d=c[(c[d>>2]|0)+28>>2]|0;c[v>>2]=0;c[n>>2]=4;c[e>>2]=Ge(d)|0;n=b+24|0;d=c[n>>2]|0;if((d|0)!=7){c[l>>2]=d;c[k+4>>2]=7;Qe(0,148232,k);tc()}Wu(c[b+32>>2]|0,146792,m);e=c[b+40>>2]|0;t=b+8|0;u=c[t+4>>2]|0;v=j;c[v>>2]=c[t>>2];c[v+4>>2]=u;$W(h|0,j|0,8)|0;pn(e,n,g);e=1;i=f;return e|0}function ov(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,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;d=i;n=i;i=i+8|0;g=i;i=i+8|0;h=g;l=i;i=i+8|0;y=i;i=i+8|0;x=y;w=i;i=i+8|0;v=w;k=i;i=i+16|0;o=k;j=i;i=i+16|0;f=j;q=i;i=i+16|0;t=q;r=i;i=i+16|0;s=r;p=i;i=i+16|0;u=p;m=i;i=i+16|0;e=m;z=b+44|0;if((a[z]&1)!=0){i=d;return}a[z]=1;z=c[b+16>>2]|0;if((z|0)!=7){c[w>>2]=z;c[v+4>>2]=7;Qe(0,148232,v);tc()}w=c[b+24>>2]|0;c[j>>2]=13;v=f+8|0;c[v>>2]=0;c[v+4>>2]=0;do{if((c[(c[b+124>>2]|0)+60>>2]|0)!=1){do{if((c[(Yu(w,146808,f,0)|0)>>2]|0)==7){z=c[j>>2]|0;if((z|0)!=7){c[y>>2]=z;c[x+4>>2]=7;Qe(0,148232,x);tc()}z=c[v>>2]|0;G=c[z+16>>2]|0;if((G|0)<=0){break}D=t+8|0;x=D+4|0;A=b+120|0;B=s+8|0;C=B+4|0;E=u+8|0;F=E+4|0;y=0;do{c[q>>2]=13;c[D>>2]=0;c[x>>2]=0;av(z,y,t)|0;H=c[q>>2]|0;do{if((H|0)==7){H=c[D>>2]|0;I=c[H+16>>2]|0;if((I|0)>0){K=0}else{break}do{c[r>>2]=13;c[B>>2]=0;c[C>>2]=0;av(H,K,s)|0;J=$u(H,K)|0;if((Qc(J|0,146784)|0)!=0){L=FW(32)|0;fe(L,J);c[A>>2]=L}Of(s);K=K+1|0;}while((c[A>>2]|0)==0&(K|0)<(I|0))}else if((H|0)==8){L=c[D>>2]|0;L=jd[c[(c[L>>2]|0)+72>>2]&511](L)|0;c[p>>2]=13;c[E>>2]=0;c[F>>2]=0;Yu(L,146816,u,0)|0;L=FW(32)|0;fe(L,146824);c[A>>2]=L;Of(u)}}while(0);Of(t);y=y+1|0;}while((c[A>>2]|0)==0&(y|0)<(G|0))}}while(0);Of(f);p=b+120|0;if((c[p>>2]|0)!=0){break}Qe(-1,146832,l);L=FW(32)|0;fe(L,146896);c[p>>2]=L}}while(0);L=o+4|0;c[L>>2]=0;c[o+8>>2]=0;c[k>>2]=L;L=Nv(w,146792,f,o)|0;xn(o,c[o+4>>2]|0);do{if((c[L>>2]|0)==4){c[m>>2]=13;k=e+8|0;c[k>>2]=0;c[k+4>>2]=0;k=Yu(w,146800,e,0)|0;j=c[j>>2]|0;if((j|0)!=4){c[g>>2]=j;c[h+4>>2]=4;Qe(0,148232,h);tc()}do{if((c[k>>2]|0)==4){g=c[v>>2]|0;if((Qc(c[k+8>>2]|0,g|0)|0)!=0){break}if((Qc(g|0,146784)|0)==0){break}mv(b,1,0)}}while(0);Of(e)}else{if((c[j>>2]|0)!=6){break}Qe(-1,146904,n)}}while(0);Of(f);i=d;return}function pv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;g=i;i=i+16|0;f=g;h=f+4|0;c[h>>2]=0;c[f+8>>2]=0;c[g>>2]=h;a=Nv(a,b,d,f)|0;xn(f,c[f+4>>2]|0);i=e;return a|0}function qv(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;g=i;i=i+8|0;h=g;k=i;i=i+8|0;l=k;p=i;i=i+8|0;o=p;n=i;i=i+16|0;m=n;j=i;i=i+16|0;e=j;q=b+44|0;if((a[q]&1)!=0){i=f;return}a[q]=1;q=c[b+16>>2]|0;if((q|0)!=7){c[p>>2]=q;c[o+4>>2]=7;Qe(0,148232,o);tc()}q=c[b+24>>2]|0;c[j>>2]=13;o=e+8|0;c[o>>2]=0;c[o+4>>2]=0;p=m+4|0;c[p>>2]=0;c[m+8>>2]=0;c[n>>2]=p;q=Nv(q,146792,e,m)|0;xn(m,c[m+4>>2]|0);do{if((c[q>>2]|0)==3){m=c[j>>2]|0;if((m|0)!=3){c[k>>2]=m;c[l+4>>2]=3;Qe(0,148232,l);tc()}k=ve(c[o>>2]|0)|0;j=c[j>>2]|0;if((j|0)!=3){c[g>>2]=j;c[h+4>>2]=3;Qe(0,148232,h);tc()}j=c[o>>2]|0;g=c[j+24>>2]|0;if(k){if((g|0)<3){break}g=(c[b+112>>2]|0)+60|0;b=c[g>>2]|0;if((b|0)!=0){ke(b);HW(b)}q=FW(32)|0;ie(q,j);c[g>>2]=q;break}if((g|0)<=0){break}h=(g<<1)+2|0;g=GW((h|0)>-1?h:-1)|0;k=c[j+28>>2]|0;a[g]=-2;a[g+1|0]=-1;l=2;j=0;while(1){q=c[189696+((d[k+j|0]|0)<<2)>>2]|0;a[g+l|0]=q>>>8;a[g+(l|1)|0]=q;l=l+2|0;if((l|0)<(h|0)){j=j+1|0}else{break}}j=FW(32)|0;ge(j,g,h);h=(c[b+112>>2]|0)+60|0;b=c[h>>2]|0;if((b|0)!=0){ke(b);HW(b)}q=FW(32)|0;ie(q,j);c[h>>2]=q;if((j|0)!=0){ke(j);HW(j)}if((g|0)==0){break}IW(g)}}while(0);Of(e);i=f;return}function rv(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,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;f=i;p=i;i=i+8|0;m=p;k=i;i=i+8|0;o=k;q=i;i=i+8|0;r=q;x=i;i=i+8|0;y=x;E=i;i=i+8|0;F=E;N=i;i=i+8|0;D=N;A=i;i=i+8|0;B=A;K=i;i=i+8|0;H=i;i=i+8|0;I=H;C=i;i=i+8|0;G=C;Q=i;i=i+8|0;R=Q;j=i;i=i+8|0;O=j;t=i;i=i+16|0;u=t;g=i;i=i+16|0;h=g;J=i;i=i+16|0;z=J;w=i;i=i+16|0;L=w;v=i;i=i+16|0;M=v;l=i;i=i+16|0;n=l;P=b+44|0;if((a[P]&1)!=0){i=f;return}a[P]=1;P=c[b+16>>2]|0;if((P|0)!=7){c[j>>2]=P;c[O+4>>2]=7;Qe(0,148232,O);tc()}O=c[b+24>>2]|0;c[g>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;a:do{if((c[(Yu(O,147008,h,0)|0)>>2]|0)==6){c[J>>2]=13;P=z+8|0;c[P>>2]=0;c[P+4>>2]=0;b=b+112|0;S=c[g>>2]|0;if((S|0)!=6){c[Q>>2]=S;c[R+4>>2]=6;Qe(0,148232,R);tc()}c[(c[b>>2]|0)+64>>2]=c[(c[j>>2]|0)+12>>2];S=c[b>>2]|0;Q=S+64|0;T=c[Q>>2]|0;R=GW(T>>>0>357913941?-1:T*12|0)|0;S=S+68|0;c[S>>2]=R;do{if((T|0)>0){a[R+8|0]=0;if((c[Q>>2]|0)>1){R=1}else{break}do{a[(c[S>>2]|0)+(R*12|0)+8|0]=0;R=R+1|0;}while((R|0)<(c[Q>>2]|0))}}while(0);if((c[(c[b>>2]|0)+64>>2]|0)<=0){e=b;break}S=L+8|0;R=S+4|0;T=M+8|0;Q=T+4|0;U=0;b:while(1){V=c[g>>2]|0;if((V|0)!=6){s=14;break}ut(c[j>>2]|0,U,z)|0;V=c[J>>2]|0;do{if((V|0)==3){V=c[b>>2]|0;W=c[P>>2]|0;s=FW(32)|0;ie(s,W);c[(c[V+68>>2]|0)+(U*12|0)>>2]=s;V=c[J>>2]|0;if((V|0)!=3){s=17;break b}s=c[b>>2]|0;V=c[P>>2]|0;W=FW(32)|0;ie(W,V);c[(c[s+68>>2]|0)+(U*12|0)+4>>2]=W;s=29}else if((V|0)==6){c[w>>2]=13;c[S>>2]=0;c[R>>2]=0;c[v>>2]=13;c[T>>2]=0;c[Q>>2]=0;V=c[P>>2]|0;if((c[V+12>>2]|0)<2){Qe(-1,147016,K);W=c[b>>2]|0;V=FW(32)|0;fe(V,146896);c[(c[W+68>>2]|0)+(U*12|0)>>2]=V;W=c[b>>2]|0;V=FW(32)|0;fe(V,146896);c[(c[W+68>>2]|0)+(U*12|0)+4>>2]=V;break}ut(V,0,L)|0;V=c[J>>2]|0;if((V|0)!=6){s=22;break b}ut(c[P>>2]|0,1,M)|0;V=c[w>>2]|0;if((V|0)!=3){s=24;break b}V=c[b>>2]|0;s=c[S>>2]|0;W=FW(32)|0;ie(W,s);c[(c[V+68>>2]|0)+(U*12|0)>>2]=W;V=c[v>>2]|0;if((V|0)!=3){s=26;break b}s=c[b>>2]|0;V=c[T>>2]|0;W=FW(32)|0;ie(W,V);c[(c[s+68>>2]|0)+(U*12|0)+4>>2]=W;Of(L);Of(M);s=29}else{c[x>>2]=U;Qe(-1,147080,y);s=c[b>>2]|0;W=FW(32)|0;fe(W,146896);c[(c[s+68>>2]|0)+(U*12|0)>>2]=W;s=c[b>>2]|0;W=FW(32)|0;fe(W,146896);c[(c[s+68>>2]|0)+(U*12|0)+4>>2]=W;s=29}}while(0);if((s|0)==29){s=0;Of(z)}U=U+1|0;if((U|0)>=(c[(c[b>>2]|0)+64>>2]|0)){e=b;break a}}if((s|0)==14){c[C>>2]=V;c[G+4>>2]=6;Qe(0,148232,G);tc()}else if((s|0)==17){c[H>>2]=V;c[I+4>>2]=3;Qe(0,148232,I);tc()}else if((s|0)==22){c[A>>2]=V;c[B+4>>2]=6;Qe(0,148232,B);tc()}else if((s|0)==24){c[N>>2]=V;c[D+4>>2]=3;Qe(0,148232,D);tc()}else if((s|0)==26){c[E>>2]=V;c[F+4>>2]=3;Qe(0,148232,F);tc()}}else{e=b+112|0}}while(0);Of(h);s=(c[e>>2]|0)+64|0;v=c[s>>2]|0;v=GW((v|0)>-1?v:-1)|0;bXbX(ka|0,0,13)|0;Fa=f;Ga=c[Fa+4>>2]|0;f=ja;c[f>>2]=c[Fa>>2];c[f+4>>2]=Ga;c[ha>>2]=13;f=l+8|0;c[f>>2]=0;c[f+4>>2]=0;a:do{if((c[(Yu(ia,147176,l,0)|0)>>2]|0)==6){pa=c[ha>>2]|0;if((pa|0)!=6){c[oa>>2]=pa;c[na+4>>2]=6;Qe(0,148232,na);tc()}na=c[f>>2]|0;qa=c[na+12>>2]|0;if((qa|0)<=0){break}ta=w+8|0;Ba=ta+4|0;xa=x+8|0;pa=xa+4|0;sa=R+8|0;Aa=sa+4|0;oa=g+4|0;ua=y+8|0;va=ua+4|0;wa=J+4|0;za=J+8|0;ya=J+4|0;ra=0;b:while(1){c[E>>2]=13;c[ta>>2]=0;c[Ba>>2]=0;c[T>>2]=13;c[xa>>2]=0;c[pa>>2]=0;ut(na,ra,w)|0;if((c[E>>2]|0)==7){c[C>>2]=13;c[sa>>2]=0;c[Aa>>2]=0;vt(na,ra,R)|0;c:do{if((c[C>>2]|0)==9){Ca=c[sa>>2]|0;Fa=c[oa>>2]|0;do{if((Fa|0)!=0){Da=oa;d:while(1){Ea=Fa;while(1){if((c[Ea+16>>2]|0)>=(Ca|0)){break}Ea=c[Ea+4>>2]|0;if((Ea|0)==0){break d}}Fa=c[Ea>>2]|0;if((Fa|0)==0){Da=Ea;break}else{Da=Ea}}if((Da|0)==(oa|0)){break}if((Ca|0)<(c[Da+16>>2]|0)){break}Qe(-1,147288,P);break c}}while(0);e:do{if((c[(Yu(ia,146744,x,0)|0)>>2]|0)==4){c[D>>2]=13;c[ua>>2]=0;c[va>>2]=0;Ca=c[E>>2]|0;if((Ca|0)!=7){Da=20;break b}if((c[(Yu(c[ta>>2]|0,147232,y,0)|0)>>2]|0)==4){Ca=c[C>>2]|0;if((Ca|0)!=9){Da=23;break b}Ea=sa;Fa=c[Ea+4>>2]|0;Ga=z;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;$W(A|0,z|0,8)|0;uv(b,w,B)}Of(y)}else{Ea=c[E>>2]|0;if((Ea|0)!=7){Da=27;break b}do{if((c[(Yu(c[ta>>2]|0,146744,x,0)|0)>>2]|0)!=4){Ea=c[E>>2]|0;if((Ea|0)!=7){Da=30;break b}if((c[(Yu(c[ta>>2]|0,147176,x,0)|0)>>2]|0)==6){break}Ca=c[E>>2]|0;if((Ca|0)!=7){Da=61;break b}if((c[(Yu(c[ta>>2]|0,147232,x,0)|0)>>2]|0)!=4){break e}Ca=c[C>>2]|0;if((Ca|0)!=9){Da=64;break b}Ea=sa;Fa=c[Ea+4>>2]|0;Ga=M;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;$W(N|0,M|0,8)|0;uv(b,w,O);break e}}while(0);c[wa>>2]=0;c[za>>2]=0;c[F>>2]=wa;Da=c[g>>2]|0;do{if((Da|0)==(oa|0)){Da=50}else{do{Ga=Da+16|0;c[H>>2]=wa;$W(I|0,H|0,4)|0;Ea=Xv(J,K,L,Ga)|0;if((c[Ea>>2]|0)==0){Fa=FW(20)|0;c[Fa+16>>2]=c[Ga>>2];Ga=c[G>>2]|0;c[Fa>>2]=0;c[Fa+4>>2]=0;c[Fa+8>>2]=Ga;c[Ea>>2]=Fa;Ga=c[c[F>>2]>>2]|0;if((Ga|0)!=0){c[F>>2]=Ga;Fa=c[Ea>>2]|0}un(c[ya>>2]|0,Fa);c[za>>2]=(c[za>>2]|0)+1}Ea=c[Da+4>>2]|0;if((Ea|0)==0){while(1){Ea=c[Da+8>>2]|0;if((Da|0)==(c[Ea>>2]|0)){Da=Ea;break}else{Da=Ea}}}else{Da=Ea;while(1){Ea=c[Da>>2]|0;if((Ea|0)==0){break}else{Da=Ea}}}}while((Da|0)!=(oa|0));Ea=c[wa>>2]|0;if((Ea|0)==0){Da=50;break}while(1){Da=c[Ea+16>>2]|0;if((Ca|0)<(Da|0)){Da=c[Ea>>2]|0;if((Da|0)==0){Da=45;break}else{Ea=Da;continue}}if((Da|0)>=(Ca|0)){Da=49;break}Fa=Ea+4|0;Da=c[Fa>>2]|0;if((Da|0)==0){Da=48;break}else{Ea=Da}}if((Da|0)==45){Da=0;c[$>>2]=Ea;break}else if((Da|0)==48){Da=0;c[$>>2]=Ea;Ea=Fa;break}else if((Da|0)==49){Da=0;c[$>>2]=Ea;Ea=aa;break}}}while(0);if((Da|0)==50){c[$>>2]=wa;Ea=wa}if((c[Ea>>2]|0)==0){Da=FW(20)|0;c[Da+16>>2]=Ca;Ca=c[$>>2]|0;c[Da>>2]=0;c[Da+4>>2]=0;c[Da+8>>2]=Ca;c[Ea>>2]=Da;Ca=c[c[F>>2]>>2]|0;if((Ca|0)!=0){c[F>>2]=Ca;Da=c[Ea>>2]|0}un(c[ya>>2]|0,Da);c[za>>2]=(c[za>>2]|0)+1}if((a[ma]&1)!=0){Qe(-1,147240,_)}Ca=(c[la>>2]|0)+1|0;c[la>>2]=Ca;c[ka>>2]=Ce(c[ka>>2]|0,Ca,4)|0;Of(x);Ca=c[C>>2]|0;if((Ca|0)!=9){Da=58;break b}Ea=sa;Fa=c[Ea+4>>2]|0;Ga=Y;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;Ga=vv(w,d,Z,J)|0;c[(c[ka>>2]|0)+((c[la>>2]|0)+ -1<<2)>>2]=Ga;xn(J,c[ya>>2]|0)}}while(0);Of(x)}else{Qe(-1,147328,Q)}}while(0);Of(w)}else{Qe(-1,147184,S);Of(w)}ra=ra+1|0;if((ra|0)>=(qa|0)){break a}}if((Da|0)==20){c[s>>2]=Ca;c[t+4>>2]=7;Qe(0,148232,t);tc()}else if((Da|0)==23){c[u>>2]=Ca;c[v+4>>2]=9;Qe(0,148232,v);tc()}else if((Da|0)==27){c[U>>2]=Ea;c[V+4>>2]=7;Qe(0,148232,V);tc()}else if((Da|0)==30){c[W>>2]=Ea;c[X+4>>2]=7;Qe(0,148232,X);tc()}else if((Da|0)==58){c[ba>>2]=Ca;c[ca+4>>2]=9;Qe(0,148232,ca);tc()}else if((Da|0)==61){c[da>>2]=Ca;c[ea+4>>2]=7;Qe(0,148232,ea);tc()}else if((Da|0)==64){c[fa>>2]=Ca;c[ga+4>>2]=9;Qe(0,148232,ga);tc()}}}while(0);Of(l);if((c[(Yu(ia,147232,l,0)|0)>>2]|0)==4){Ea=ja;Fa=c[Ea+4>>2]|0;Ga=p;c[Ga>>2]=c[Ea>>2];c[Ga+4>>2]=Fa;$W(q|0,p|0,8)|0;uv(b,e,r)}Of(l);Ga=n+4|0;c[Ga>>2]=0;c[n+8>>2]=0;c[o>>2]=Ga;Ga=Nv(ia,147376,l,n)|0;xn(n,c[n+4>>2]|0);if((c[Ga>>2]|0)!=1){Of(l);i=m;return}g=c[ha>>2]|0;if((g|0)!=1){c[j>>2]=g;c[k+4>>2]=1;Qe(0,148232,k);tc()}if((c[f>>2]&1|0)==0){Of(l);i=m;return}a[h]=1;Of(l);i=m;return}function uv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;p=i;f=i;i=i+8|0;q=f;m=i;i=i+8|0;n=m;j=i;i=i+8|0;s=i;i=i+8|0;t=s;u=i;i=i+8|0;o=i;i=i+8|0;l=i;i=i+8|0;k=i;i=i+8|0;r=i;i=i+8|0;v=b+16|0;a[v]=1;g=b+48|0;w=(c[g>>2]|0)+1|0;c[g>>2]=w;h=b+52|0;c[h>>2]=Ce(c[h>>2]|0,w,4)|0;w=c[b+4>>2]|0;if((w|0)==1){w=FW(120)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;s=e;t=c[s+4>>2]|0;e=k;c[e>>2]=c[s>>2];c[e+4>>2]=t;$W(j|0,k|0,8)|0;gv(w,u,d,v,j,b);c[w>>2]=146968;c[w+8>>2]=1;c[w+112>>2]=c[w+4>>2];c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else if((w|0)==2){w=FW(120)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;s=e;t=c[s+4>>2]|0;e=l;c[e>>2]=c[s>>2];c[e+4>>2]=t;$W(m|0,l|0,8)|0;gv(w,u,d,v,n,b);c[w>>2]=146992;c[w+8>>2]=2;c[w+112>>2]=c[w+4>>2];c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else if((w|0)==3){w=FW(120)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;s=e;t=c[s+4>>2]|0;e=o;c[e>>2]=c[s>>2];c[e+4>>2]=t;$W(f|0,o|0,8)|0;gv(w,u,d,v,q,b);c[w>>2]=147136;c[w+8>>2]=3;c[w+112>>2]=c[w+4>>2];c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else if((w|0)==0){w=FW(136)|0;u=c[b+40>>2]|0;v=(c[g>>2]|0)+ -1|0;o=e;q=c[o+4>>2]|0;e=r;c[e>>2]=c[o>>2];c[e+4>>2]=q;$W(s|0,r|0,8)|0;gv(w,u,d,v,t,b);c[w>>2]=146768;c[w+8>>2]=0;c[w+124>>2]=c[w+4>>2];c[w+120>>2]=0;a[w+128|0]=0;c[w+112>>2]=0;c[w+116>>2]=0;c[(c[h>>2]|0)+((c[g>>2]|0)+ -1<<2)>>2]=w;i=p;return}else{Qe(-1,147384,u);c[g>>2]=(c[g>>2]|0)+ -1;a[v]=0;i=p;return}}function vv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;o=i;i=i+8|0;n=o;m=i;i=i+16|0;j=m;k=i;i=i+16|0;f=k;c[k>>2]=13;h=f+8|0;c[h>>2]=0;c[h+4>>2]=0;l=c[a>>2]|0;if((l|0)!=7){c[o>>2]=l;c[n+4>>2]=7;Qe(0,148232,n);tc()}l=c[a+8>>2]|0;o=j+4|0;c[o>>2]=0;c[j+8>>2]=0;c[m>>2]=o;l=Nv(l,146744,f,j)|0;xn(j,c[j+4>>2]|0);do{if((c[l>>2]|0)==4){if((Qc(c[l+8>>2]|0,147840)|0)!=0){break}o=FW(80)|0;Bv(o,b,a,d,e);Of(f);yv(o);i=g;return o|0}}while(0);do{if((c[k>>2]|0)==4){h=c[h>>2]|0;if((Qc(h|0,147848)|0)==0){o=FW(80)|0;Ev(o,b,a,d,e);Of(f);yv(o);i=g;return o|0}if((Qc(h|0,147856)|0)==0){o=FW(80)|0;Hv(o,b,a,d,e);Of(f);yv(o);i=g;return o|0}o=(Qc(h|0,147864)|0)==0;h=FW(64)|0;if(!o){break}tv(h,b,a,d,e,3);c[h>>2]=147680;o=h;Of(f);yv(o);i=g;return o|0}else{h=FW(64)|0}}while(0);tv(h,b,a,d,e,4);o=h;Of(f);yv(o);i=g;return o|0}function wv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function xv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;c[b>>2]=147160;if((a[b+16|0]&1)!=0){f=b+48|0;g=c[f>>2]|0;e=b+52|0;j=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[e>>2]|0;g=c[f>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);k=b+24|0;Of(k);i=d;return}f=b+44|0;j=c[f>>2]|0;if((j|0)==0){k=b+24|0;Of(k);i=d;return}e=b+48|0;g=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[f>>2]|0;g=c[e>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);k=b+24|0;Of(k);i=d;return}function yv(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=b+48|0;f=(c[e>>2]|0)>0;if((a[b+16|0]&1)==0){if(!f){i=d;return}b=b+44|0;f=0;do{yv(c[(c[b>>2]|0)+(f<<2)>>2]|0);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}else{if(!f){i=d;return}b=b+52|0;f=0;do{g=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[g>>2]|0)+8>>2]&511](g);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}}function zv(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;if((a[b+16|0]&1)!=0){i=d;return}e=b+48|0;if((c[e>>2]|0)<=0){i=d;return}b=b+44|0;f=0;do{g=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[g>>2]|0)+8>>2]&511](g);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}function Av(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;j=i;i=i+8|0;h=j;n=i;i=i+8|0;e=c[b+48>>2]|0;g=(e|0)>0;if((a[b+16|0]&1)==0){if(!g){p=0;i=f;return p|0}m=d;l=c[m>>2]|0;m=c[m+4>>2]|0;k=c[b+44>>2]|0;p=0;while(1){o=c[k+(p<<2)>>2]|0;q=n;c[q>>2]=l;c[q+4>>2]=m;$W(j|0,n|0,8)|0;o=Av(o,h)|0;p=p+1|0;if((o|0)!=0){h=11;break}if((p|0)<(e|0)){}else{o=0;h=11;break}}if((h|0)==11){i=f;return o|0}}if(!g){q=0;i=f;return q|0}b=c[b+52>>2]|0;g=c[d>>2]|0;d=c[d+4>>2]|0;h=0;while(1){o=c[b+(h<<2)>>2]|0;j=o+32|0;if((c[j>>2]|0)==(g|0)){if((c[j+4>>2]|0)==(d|0)){h=11;break}}h=h+1|0;if((h|0)>=(e|0)){o=0;h=11;break}}if((h|0)==11){i=f;return o|0}return 0}function Bv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=i;h=i;i=i+8|0;k=i;i=i+8|0;l=k;r=i;i=i+8|0;q=r;p=i;i=i+16|0;o=p;m=i;i=i+16|0;n=m;tv(b,d,e,f,g,0);c[b>>2]=147448;g=c[b+24>>2]|0;if((g|0)!=7){c[r>>2]=g;c[q+4>>2]=7;Qe(0,148232,q);tc()}d=c[b+32>>2]|0;c[b+68>>2]=-1;q=b+72|0;a[q]=0;c[m>>2]=13;r=n+8|0;c[r>>2]=0;c[r+4>>2]=0;b=b+60|0;c[b>>2]=0;e=o+4|0;c[e>>2]=0;c[o+8>>2]=0;c[p>>2]=e;d=Nv(d,147376,n,o)|0;xn(o,c[o+4>>2]|0);if((c[d>>2]|0)!=1){i=j;return}m=c[m>>2]|0;if((m|0)!=1){c[k>>2]=m;c[l+4>>2]=1;Qe(0,148232,l);tc()}k=c[r>>2]|0;do{if((k&65536|0)==0){if((k&32768|0)==0){break}c[b>>2]=2;if((k&16384|0)==0){break}a[q]=1}else{c[b>>2]=1}}while(0);if((k&16777216|0)==0){i=j;return}Qe(-1,147464,h);i=j;return}function Cv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=b+48|0;h=c[e>>2]|0;f=(h|0)>0;if((a[b+16|0]&1)==0){if(!f){i=d;return}b=b+44|0;f=0;do{k=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[k>>2]|0)+8>>2]&511](k);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}if(!f){i=d;return}f=b+52|0;b=0;do{g=c[(c[f>>2]|0)+(b<<2)>>2]|0;h=h+ -1|0;c[g+116>>2]=h;g=g+112|0;c[g>>2]=Ce(c[g>>2]|0,h,4)|0;h=c[e>>2]|0;if((h|0)>0){j=0;k=0;do{if((b|0)!=(k|0)){c[(c[g>>2]|0)+(j<<2)>>2]=c[(c[(c[f>>2]|0)+(k<<2)>>2]|0)+64>>2];h=c[e>>2]|0;j=j+1|0}k=k+1|0;}while((k|0)<(h|0))}b=b+1|0;}while((b|0)<(h|0));i=d;return}function Dv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function Ev(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;l=i;i=i+8|0;j=l;p=i;i=i+8|0;q=p;u=i;i=i+8|0;t=u;o=i;i=i+16|0;n=o;r=i;i=i+16|0;s=r;m=i;i=i+16|0;k=m;tv(b,d,e,f,g,1);c[b>>2]=147624;g=c[b+24>>2]|0;if((g|0)!=7){c[u>>2]=g;c[t+4>>2]=7;Qe(0,148232,t);tc()}f=c[b+32>>2]|0;c[m>>2]=13;t=k+8|0;c[t>>2]=0;c[t+4>>2]=0;e=b+70|0;d=b+69|0;v=b+68|0;w=b+67|0;x=b+66|0;y=b+65|0;g=b+64|0;u=b+72|0;c[u>>2]=0;bX(b+60|0,0,11)|0;b=s+4|0;c[b>>2]=0;c[s+8>>2]=0;c[r>>2]=b;b=Nv(f,147376,k,s)|0;xn(s,c[s+4>>2]|0);do{if((c[b>>2]|0)==1){r=c[m>>2]|0;if((r|0)!=1){c[p>>2]=r;c[q+4>>2]=1;Qe(0,148232,q);tc()}p=c[t>>2]|0;if((p&4096|0)!=0){a[g]=1}if((p&8192|0)!=0){a[y]=1}if((p&1048576|0)!=0){a[x]=1}if((p&4194304|0)!=0){a[w]=1}if((p&8388608|0)!=0){a[v]=1}if((p&16777216|0)!=0){a[d]=1}if((p&33554432|0)==0){break}a[e]=1}}while(0);Of(k);y=n+4|0;c[y>>2]=0;c[n+8>>2]=0;c[o>>2]=y;y=Nv(f,147640,k,n)|0;xn(n,c[n+4>>2]|0);if((c[y>>2]|0)!=1){Of(k);i=h;return}m=c[m>>2]|0;if((m|0)!=1){c[l>>2]=m;c[j+4>>2]=1;Qe(0,148232,j);tc()}c[u>>2]=c[t>>2];Of(k);i=h;return}function Fv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=147624;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}xv(a);HW(a);i=b;return}function Gv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=147624;d=c[a+60>>2]|0;if((d|0)==0){xv(a);i=b;return}ke(d);HW(d);xv(a);i=b;return}function Hv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;k=i;i=i+8|0;l=k;q=i;i=i+8|0;p=q;o=i;i=i+16|0;n=o;m=i;i=i+16|0;j=m;tv(b,d,e,f,g,2);c[b>>2]=147656;c[b+64>>2]=0;c[b+68>>2]=0;c[b+72>>2]=0;g=c[b+24>>2]|0;if((g|0)!=7){c[q>>2]=g;c[p+4>>2]=7;Qe(0,148232,p);tc()}d=c[b+32>>2]|0;c[m>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;p=b+57|0;bXBx(b,0)}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+216>>2]&127](h,c[d>>2]|0)}h=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=16}else{if((a[h]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function $v(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,1)}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+220>>2]&127](h,c[d>>2]|0)}h=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=16}else{if((a[h]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function aw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=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;j=i;i=i+8|0;k=j;g=i;i=i+8|0;h=g;m=i;i=i+8|0;p=m;o=i;i=i+8|0;n=o;D=i;i=i+8|0;s=i;i=i+8|0;q=s;w=i;i=i+8|0;t=w;A=i;i=i+8|0;z=A;C=i;i=i+8|0;B=C;F=i;i=i+8|0;E=F;v=i;i=i+16|0;y=v;x=FW(8)|0;u=x;c[u>>2]=0;c[u+4>>2]=0;a[x]=0;u=b+116|0;c[x+4>>2]=c[u>>2];c[u>>2]=x;x=c[(c[b+4>>2]|0)+160>>2]|0;l=c[d>>2]|0;if((l|0)!=4){c[F>>2]=l;c[E+4>>2]=4;Qe(0,162256,E);tc()}l=d+8|0;a:do{if(!((vc(c[l>>2]|0,161320,2)|0)!=0|(x|0)==0)){if((e|0)<=1){q=c[b+120>>2]|0;do{if((q|0)==0){q=-1}else{q=c[q+4>>2]|0;if((c[q+16>>2]|0)!=8){q=-1;break}q=c[q+24>>2]|0;q=jd[c[(c[q>>2]|0)+48>>2]&511](q)|0}}while(0);Qe(q,162112,D);break}D=d+16|0;E=c[D>>2]|0;do{if((E|0)!=4){F=c[b+120>>2]|0;do{if((F|0)==0){F=-1}else{F=c[F+4>>2]|0;if((c[F+16>>2]|0)!=8){F=-1;break}F=c[F+24>>2]|0;F=jd[c[(c[F>>2]|0)+48>>2]&511](F)|0;E=c[D>>2]|0}}while(0);c[C>>2]=E;Qe(F,162072,B);B=c[D>>2]|0;if((B|0)==4){break}c[A>>2]=B;c[z+4>>2]=4;Qe(0,162256,z);tc()}}while(0);z=c[d+24>>2]|0;c[v>>2]=13;A=y+8|0;c[A>>2]=0;c[A+4>>2]=0;A=c[b+20>>2]|0;b:do{if((A|0)!=0){while(1){if((c[A+96>>2]|0)==7){if((c[(Zu(c[A+104>>2]|0,z,y)|0)>>2]|0)!=5){break}Of(y)}A=c[A+112>>2]|0;if((A|0)==0){break b}}if((c[v>>2]|0)!=9){break a}F=GF(x,y)|0;a[c[u>>2]|0]=F&1^1;break a}}while(0);c[w>>2]=z;Qe(-1,159320,t);t=c[b+120>>2]|0;do{if((t|0)==0){t=-1}else{t=c[t+4>>2]|0;if((c[t+16>>2]|0)!=8){t=-1;break}t=c[t+24>>2]|0;t=jd[c[(c[t>>2]|0)+48>>2]&511](t)|0}}while(0);c[s>>2]=z;Qe(t,162096,q)}}while(0);if((a[b+13|0]&1)!=0){q=c[d>>2]|0;if((q|0)!=4){c[o>>2]=q;c[n+4>>2]=4;Qe(0,162256,n);tc()}c[m>>2]=c[l>>2];Kb(162160,p|0)|0;if((e|0)==2){m=c[r>>2]|0;Qf(d+16|0,m)}else{m=c[r>>2]|0}Hb(10)|0;Fc(m|0)|0}if((e|0)==1){g=c[b+8>>2]|0;d=c[d>>2]|0;if((d|0)!=4){c[j>>2]=d;c[k+4>>2]=4;Qe(0,162256,k);tc()}Gd[c[(c[g>>2]|0)+332>>2]&255](g,c[l>>2]|0,0);i=f;return}else if((e|0)==2){if((c[d+16>>2]|0)!=7){i=f;return}j=c[b+8>>2]|0;k=c[d>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,162256,h);tc()}Gd[c[(c[j>>2]|0)+332>>2]&255](j,c[l>>2]|0,c[d+24>>2]|0);i=f;return}else{i=f;return}}function bw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;b=i;d=Sx(a)|0;if((d|0)==0){i=b;return}Qx(a,0,d,1);e=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;e=jd[c[(c[e>>2]|0)+20>>2]&511](e)|0;a=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;while(1){if((e|0)==69){if((a|0)==73|(a|0)==-1){break}}else{if((a|0)==-1){break}}f=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;e=a;a=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0}fd[c[(c[d>>2]|0)+4>>2]&511](d);i=b;return}function cw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;d=i;e=b+8|0;g=c[e>>2]|0;f=b+28|0;hd[c[(c[g>>2]|0)+300>>2]&127](g,c[f>>2]|0);a[b+16|0]=1;g=c[f>>2]|0;h[g+496>>3]=1.0;bX(g+504|0,0,16)|0;h[g+520>>3]=1.0;bX(g+528|0,0,16)|0;g=c[f>>2]|0;bXBx(b,1)}h=c[f>>2]|0;hd[c[(c[h>>2]|0)+84>>2]&127](h,c[g>>2]|0);h=e;a[h]=0;i=d;return}function kw(a,b,d){a=a|0;b=b|0;d=d|0;b=i;d=a+56|0;a=c[d>>2]|0;if((a|0)<=0){i=b;return}c[d>>2]=a+ -1;i=b;return}function lw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,0);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+216>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=13}else{if((a[h]&1)!=0){f=13;break}b=b+52|0}}while(0);do{if((f|0)==13){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function mw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0,m=0;e=i;k=i;i=i+16|0;j=k;d=i;i=i+128|0;f=a+28|0;OB(c[f>>2]|0,0);m=c[f>>2]|0;g=FW(4)|0;Ty(g);MB(m,g);a=a+8|0;g=c[a>>2]|0;hd[c[(c[g>>2]|0)+136>>2]&127](g,c[f>>2]|0);g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[k>>2]=g;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}m=c[f>>2]|0;c[m+252>>2]=~~(l*65536.0);$W(m+256|0,d|0,124)|0;m=c[a>>2]|0;hd[c[(c[m>>2]|0)+144>>2]&127](m,c[f>>2]|0);i=e;return}function nw(a,b,d){a=a|0;b=b|0;d=d|0;d=i;b=i;i=i+8|0;a=c[a+120>>2]|0;do{if((a|0)==0){a=-1}else{a=c[a+4>>2]|0;if((c[a+16>>2]|0)!=8){a=-1;break}a=c[a+24>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0}}while(0);Qe(a,162008,b);i=d;return}function ow(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;d=i;g=i;i=i+8|0;f=g;e=a+28|0;h=c[b>>2]|0;if((h|0)==1){c[(c[e>>2]|0)+464>>2]=c[b+8>>2];h=c[a+8>>2]|0;hd[c[(c[h>>2]|0)+108>>2]&127](h,c[e>>2]|0);i=d;return}else{c[g>>2]=h;c[f+4>>2]=1;Qe(0,162256,f);tc()}}function pw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0;g=i;j=i;i=i+16|0;d=j;f=i;i=i+128|0;k=f;e=a+28|0;OB(c[e>>2]|0,0);n=c[e>>2]|0;l=FW(4)|0;vz(l);MB(n,l);a=a+8|0;l=c[a>>2]|0;hd[c[(c[l>>2]|0)+136>>2]&127](l,c[e>>2]|0);l=0;while(1){m=c[b+(l<<4)>>2]|0;if((m+ -1|0)>>>0>=2){b=3;break}n=b+(l<<4)+8|0;if((m|0)==1){o=+(c[n>>2]|0)}else{o=+h[n>>3]}c[k+(l<<2)>>2]=~~(o*65536.0);l=l+1|0;if((l|0)>=4){b=8;break}}if((b|0)==3){c[j>>2]=m;c[d+4>>2]=1;c[d+8>>2]=2;Qe(0,162328,d);tc()}else if((b|0)==8){$W((c[e>>2]|0)+252|0,f|0,128)|0;n=c[a>>2]|0;hd[c[(c[n>>2]|0)+144>>2]&127](n,c[e>>2]|0);i=g;return}}function qw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+472>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+112>>2]&127](k,c[d>>2]|0);i=e;return}function rw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=i;i=i+8|0;f=b+32|0;h=c[b+36>>2]|0;do{if((c[f>>2]|0)>(c[h+(((c[b+40>>2]|0)-h>>2)+ -1<<2)>>2]|0)){h=b+28|0;g=c[h>>2]|0;if((c[g+656>>2]|0)==0){break}g=YB(g)|0;c[h>>2]=g;h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+84>>2]&127](h,g);c[f>>2]=(c[f>>2]|0)+ -1;i=e;return}}while(0);Qe(-1,162208,d);a[b+18|0]=1;i=e;return}function sw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0;g=i;j=i;i=i+16|0;d=j;f=i;i=i+128|0;k=f;e=a+28|0;OB(c[e>>2]|0,0);n=c[e>>2]|0;l=FW(4)|0;gz(l);MB(n,l);a=a+8|0;l=c[a>>2]|0;hd[c[(c[l>>2]|0)+136>>2]&127](l,c[e>>2]|0);l=0;while(1){m=c[b+(l<<4)>>2]|0;if((m+ -1|0)>>>0>=2){b=3;break}n=b+(l<<4)+8|0;if((m|0)==1){o=+(c[n>>2]|0)}else{o=+h[n>>3]}c[k+(l<<2)>>2]=~~(o*65536.0);l=l+1|0;if((l|0)>=3){b=8;break}}if((b|0)==3){c[j>>2]=m;c[d+4>>2]=1;c[d+8>>2]=2;Qe(0,162328,d);tc()}else if((b|0)==8){$W((c[e>>2]|0)+252|0,f|0,128)|0;n=c[a>>2]|0;hd[c[(c[n>>2]|0)+144>>2]&127](n,c[e>>2]|0);i=g;return}}function tw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=13}else{if((a[h]&1)!=0){f=13;break}b=b+52|0}}while(0);do{if((f|0)==13){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function uw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0;e=i;f=i;i=i+16|0;g=f;m=i;i=i+8|0;k=i;i=i+128|0;l=k;j=a+28|0;o=c[(c[j>>2]|0)+120>>2]|0;if((jd[c[(c[o>>2]|0)+44>>2]&511](o)|0)!=(d|0)){d=c[a+120>>2]|0;do{if((d|0)==0){d=-1}else{d=c[d+4>>2]|0;if((c[d+16>>2]|0)!=8){d=-1;break}d=c[d+24>>2]|0;d=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0}}while(0);Qe(d,160600,m);i=e;return}OB(c[j>>2]|0,0);a:do{if((d|0)>0){m=0;while(1){n=c[b+(m<<4)>>2]|0;if((n+ -1|0)>>>0>=2){break}o=b+(m<<4)+8|0;if((n|0)==1){p=+(c[o>>2]|0)}else{p=+h[o>>3]}c[l+(m<<2)>>2]=~~(p*65536.0);m=m+1|0;if((m|0)>=(d|0)){break a}}c[f>>2]=n;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}}while(0);$W((c[j>>2]|0)+252|0,k|0,128)|0;o=c[a+8>>2]|0;hd[c[(c[o>>2]|0)+144>>2]&127](o,c[j>>2]|0);i=e;return}function vw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0.0;e=i;l=i;i=i+8|0;k=i;i=i+8|0;g=i;i=i+128|0;j=g;f=a+28|0;m=c[(c[f>>2]|0)+120>>2]|0;if((jd[c[(c[m>>2]|0)+12>>2]&511](m)|0)!=10){m=c[(c[f>>2]|0)+120>>2]|0;if((jd[c[(c[m>>2]|0)+44>>2]&511](m)|0)!=(d|0)){f=c[a+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160696,l);i=e;return}OB(c[f>>2]|0,0);if((d|0)>0){k=0;do{m=c[b+(k<<4)>>2]|0;if((m+ -1|0)>>>0<2){l=b+(k<<4)+8|0;if((m|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}c[j+(k<<2)>>2]=~~(n*65536.0)}else{c[j+(k<<2)>>2]=0}k=k+1|0;}while((k|0)<(d|0)&(k|0)<32)}$W((c[f>>2]|0)+252|0,g|0,128)|0;m=c[a+8>>2]|0;hd[c[(c[m>>2]|0)+144>>2]&127](m,c[f>>2]|0);i=e;return}a:do{if((d|0)>1){l=c[(c[(c[f>>2]|0)+120>>2]|0)+4>>2]|0;do{if((l|0)!=0){d=d+ -1|0;if((d|0)!=(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)){break}if((d|0)>0){k=0;do{m=c[b+(k<<4)>>2]|0;if((m+ -1|0)>>>0<2){l=b+(k<<4)+8|0;if((m|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}c[j+(k<<2)>>2]=~~(n*65536.0)}else{c[j+(k<<2)>>2]=0}k=k+1|0;}while((k|0)<(d|0)&(k|0)<32)}$W((c[f>>2]|0)+252|0,g|0,128)|0;m=c[a+8>>2]|0;hd[c[(c[m>>2]|0)+144>>2]&127](m,c[f>>2]|0);break a}}while(0);f=c[a+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160696,k);i=e;return}else{d=d+ -1|0}}while(0);if((c[b+(d<<4)>>2]|0)!=4){i=e;return}b=ox(c[a+20>>2]|0,c[b+(d<<4)+8>>2]|0,a)|0;if((b|0)==0){i=e;return}OB(c[f>>2]|0,b);i=e;return}function ww(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0;d=i;b=a+28|0;e=c[b>>2]|0;g=+h[e+608>>3];j=e+616|0;f=+h[j>>3]- +h[e+568>>3];h[j>>3]=f;h[e+592>>3]=+h[e+528>>3]+(g*+h[e+496>>3]+f*+h[e+512>>3]);h[e+600>>3]=+h[e+536>>3]+(g*+h[e+504>>3]+f*+h[e+520>>3]);a=c[a+8>>2]|0;hd[c[(c[a>>2]|0)+204>>2]&127](a,c[b>>2]|0);i=d;return}function xw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0.0,l=0,m=0,n=0,o=0.0;e=i;g=i;i=i+16|0;j=g;m=i;i=i+16|0;n=m;d=a+28|0;f=c[d>>2]|0;k=+h[f+608>>3];l=c[b>>2]|0;if((l+ -1|0)>>>0>=2){c[m>>2]=l;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,162328,n);tc()}m=b+8|0;if((l|0)==1){o=+(c[m>>2]|0)}else{o=+h[m>>3]}k=k+o;l=c[b+16>>2]|0;if((l+ -1|0)>>>0>=2){c[g>>2]=l;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}b=b+24|0;if((l|0)==1){o=+(c[b>>2]|0)}else{o=+h[b>>3]}h[f+568>>3]=-0.0-o;n=c[d>>2]|0;m=n+616|0;o=o+ +h[m>>3];h[n+608>>3]=k;h[m>>3]=o;h[n+592>>3]=+h[n+528>>3]+(k*+h[n+496>>3]+o*+h[n+512>>3]);h[n+600>>3]=+h[n+536>>3]+(k*+h[n+504>>3]+o*+h[n+520>>3]);n=c[a+8>>2]|0;hd[c[(c[n>>2]|0)+204>>2]&127](n,c[d>>2]|0);i=e;return}function yw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0.0,v=0;e=i;m=i;i=i+8|0;n=i;i=i+16|0;f=n;q=i;i=i+8|0;p=q;o=i;i=i+8|0;l=i;i=i+16|0;j=l;c[l>>2]=13;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;g=b+28|0;r=c[g>>2]|0;if((c[r+484>>2]|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161168,o);i=e;return}s=b+48|0;o=b+8|0;if((a[s]&1)!=0){v=c[o>>2]|0;hd[c[(c[v>>2]|0)+176>>2]&127](v,r);a[s]=0;r=c[g>>2]|0}s=c[o>>2]|0;hd[c[(c[s>>2]|0)+268>>2]&127](s,r);r=c[(c[g>>2]|0)+484>>2]|0;r=jd[c[(c[r>>2]|0)+8>>2]&511](r)|0;s=c[d>>2]|0;if((s|0)!=6){c[q>>2]=s;c[p+4>>2]=6;Qe(0,162256,p);tc()}p=c[d+8>>2]|0;d=p+12|0;a:do{if((c[d>>2]|0)>0){r=(r|0)==0;q=b+120|0;s=0;b:while(1){ut(p,s,j)|0;v=c[l>>2]|0;do{if((v+ -1|0)>>>0<2){t=c[g>>2]|0;if((v|0)==1){u=+(c[k>>2]|0)}else{u=+h[k>>3]}u=u*-.001*+S(+(+h[t+488>>3]));if(r){VB(t,u,0.0)}else{VB(t,0.0,u)}t=c[o>>2]|0;v=c[l>>2]|0;if((v+ -1|0)>>>0>=2){break b}if((v|0)==1){u=+(c[k>>2]|0)}else{u=+h[k>>3]}Id[c[(c[t>>2]|0)+208>>2]&3](t,c[g>>2]|0,u)}else{if((v|0)==3){Ox(b,c[k>>2]|0);break}t=c[q>>2]|0;do{if((t|0)==0){t=-1}else{t=c[t+4>>2]|0;if((c[t+16>>2]|0)!=8){t=-1;break}t=c[t+24>>2]|0;t=jd[c[(c[t>>2]|0)+48>>2]&511](t)|0}}while(0);Qe(t,161192,m)}}while(0);Of(j);s=s+1|0;if((s|0)>=(c[d>>2]|0)){break a}}c[n>>2]=v;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,162328,f);tc()}}while(0);v=c[o>>2]|0;hd[c[(c[v>>2]|0)+272>>2]&127](v,c[g>>2]|0);i=e;return}function zw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0.0;d=i;g=i;i=i+16|0;f=g;a=c[a+28>>2]|0;e=c[b>>2]|0;if((e+ -1|0)>>>0>=2){c[g>>2]=e;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,162328,f);tc()}b=b+8|0;if((e|0)==1){j=+(c[b>>2]|0);g=a+568|0;h[g>>3]=j;i=d;return}else{j=+h[b>>3];g=a+568|0;h[g>>3]=j;i=d;return}}function Aw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+544>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+184>>2]&127](k,c[d>>2]|0);i=e;return}function Bw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0,m=0.0,n=0,o=0,p=0,q=0.0;e=i;j=i;i=i+16|0;k=j;o=i;i=i+16|0;p=o;d=a+28|0;f=c[d>>2]|0;g=f+608|0;l=+h[g>>3];n=c[b>>2]|0;if((n+ -1|0)>>>0>=2){c[o>>2]=n;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}o=b+8|0;if((n|0)==1){m=+(c[o>>2]|0)}else{m=+h[o>>3]}m=l+m;n=f+616|0;l=+h[n>>3];o=c[b+16>>2]|0;if((o+ -1|0)>>>0>=2){c[j>>2]=o;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+24|0;if((o|0)==1){q=+(c[b>>2]|0)}else{q=+h[b>>3]}q=l+q;h[g>>3]=m;h[n>>3]=q;h[f+592>>3]=+h[f+528>>3]+(m*+h[f+496>>3]+q*+h[f+512>>3]);h[f+600>>3]=+h[f+536>>3]+(m*+h[f+504>>3]+q*+h[f+520>>3]);p=c[a+8>>2]|0;hd[c[(c[p>>2]|0)+204>>2]&127](p,c[d>>2]|0);i=e;return}function Cw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0.0;e=i;f=i;i=i+16|0;g=f;j=i;i=i+16|0;l=j;o=i;i=i+16|0;n=o;p=i;i=i+16|0;q=p;t=i;i=i+8|0;s=t;u=i;i=i+8|0;w=u;m=c[b+20>>2]|0;v=c[d>>2]|0;if((v|0)!=4){c[u>>2]=v;c[w+4>>2]=4;Qe(0,162256,w);tc()}u=c[d+8>>2]|0;a:do{if((m|0)!=0){v=m;while(1){m=c[v>>2]|0;if((m|0)!=0){m=wy(m,u)|0;if((m|0)!=0){break}}v=c[v+112>>2]|0;if((v|0)==0){break a}}if((a[b+13|0]&1)==0){s=d+16|0}else{p=c[(c[m+8>>2]|0)+28>>2]|0;q=c[m+20>>2]|0;if((q|0)==0){q=161088}else{q=c[q+28>>2]|0}s=d+16|0;t=c[s>>2]|0;if((t+ -1|0)>>>0>=2){c[o>>2]=t;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,162328,n);tc()}n=d+24|0;if((t|0)==1){x=+(c[n>>2]|0)}else{x=+h[n>>3]}c[j>>2]=p;c[l+4>>2]=q;w=l+8|0;h[k>>3]=x;c[w>>2]=c[k>>2];c[w+4>>2]=c[k+4>>2];Kb(161056,l|0)|0;Fc(c[r>>2]|0)|0}Xx(m);j=c[b+28>>2]|0;l=c[s>>2]|0;if((l+ -1|0)>>>0>=2){c[f>>2]=l;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}d=d+24|0;if((l|0)==1){x=+(c[d>>2]|0)}else{x=+h[d>>3]}PB(j,m,x);a[b+48|0]=1;i=e;return}}while(0);c[t>>2]=u;Qe(-1,159272,s);f=c[b+28>>2]|0;g=c[d+16>>2]|0;if((g+ -1|0)>>>0>=2){c[p>>2]=g;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,162328,q);tc()}d=d+24|0;if((g|0)==1){x=+(c[d>>2]|0)}else{x=+h[d>>3]}PB(f,0,x);a[b+48|0]=1;i=e;return}function Dw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;g=i;i=i+8|0;h=g;j=i;i=i+8|0;f=b+28|0;k=c[f>>2]|0;if((c[k+484>>2]|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161096,j);i=e;return}l=b+48|0;j=b+8|0;if((a[l]&1)!=0){m=c[j>>2]|0;hd[c[(c[m>>2]|0)+176>>2]&127](m,k);a[l]=0;k=c[f>>2]|0}m=c[j>>2]|0;hd[c[(c[m>>2]|0)+268>>2]&127](m,k);k=c[d>>2]|0;if((k|0)!=3){c[g>>2]=k;c[h+4>>2]=3;Qe(0,162256,h);tc()}Ox(b,c[d+8>>2]|0);m=c[j>>2]|0;hd[c[(c[m>>2]|0)+272>>2]&127](m,c[f>>2]|0);i=e;return}function Ew(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0.0,m=0,n=0,o=0.0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0.0,B=0.0;f=i;k=i;i=i+16|0;j=k;n=i;i=i+16|0;m=n;q=i;i=i+16|0;p=q;s=i;i=i+16|0;r=s;v=i;i=i+16|0;u=v;z=i;i=i+16|0;y=z;g=b+28|0;e=c[g>>2]|0;w=c[d>>2]|0;if((w+ -1|0)>>>0>=2){c[z>>2]=w;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,162328,y);tc()}y=d+8|0;if((w|0)==1){l=+(c[y>>2]|0)}else{l=+h[y>>3]}w=c[d+16>>2]|0;if((w+ -1|0)>>>0>=2){c[v>>2]=w;c[u+4>>2]=1;c[u+8>>2]=2;Qe(0,162328,u);tc()}u=d+24|0;if((w|0)==1){o=+(c[u>>2]|0)}else{o=+h[u>>3]}u=c[d+32>>2]|0;if((u+ -1|0)>>>0>=2){c[s>>2]=u;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,162328,r);tc()}r=d+40|0;if((u|0)==1){t=+(c[r>>2]|0)}else{t=+h[r>>3]}r=c[d+48>>2]|0;if((r+ -1|0)>>>0>=2){c[q>>2]=r;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}p=d+56|0;if((r|0)==1){x=+(c[p>>2]|0)}else{x=+h[p>>3]}p=c[d+64>>2]|0;if((p+ -1|0)>>>0>=2){c[n>>2]=p;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}m=d+72|0;if((p|0)==1){A=+(c[m>>2]|0)}else{A=+h[m>>3]}m=c[d+80>>2]|0;if((m+ -1|0)>>>0>=2){c[k>>2]=m;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}d=d+88|0;if((m|0)==1){B=+(c[d>>2]|0)}else{B=+h[d>>3]}h[e+496>>3]=l;h[e+504>>3]=o;h[e+512>>3]=t;h[e+520>>3]=x;h[e+528>>3]=A;h[e+536>>3]=B;z=c[g>>2]|0;bXBx(b,1)}o=c[h>>2]|0;hd[c[(c[o>>2]|0)+84>>2]&127](o,c[f>>2]|0);o=c[h>>2]|0;hd[c[(c[o>>2]|0)+300>>2]&127](o,c[f>>2]|0);o=c[h>>2]|0;hd[c[(c[o>>2]|0)+180>>2]&127](o,c[f>>2]|0);o=c[h>>2]|0;hd[c[(c[o>>2]|0)+204>>2]&127](o,c[f>>2]|0);a[j]=0}}while(0);do{if((g|0)==11){if((h&4|0)==0|k^1){break}g=b+8|0;o=c[g>>2]|0;if(!(Bd[c[(c[o>>2]|0)+40>>2]&255](o,c[f>>2]|0)|0)){break}if((a[b+16|0]&1)==0){break}o=c[g>>2]|0;hd[c[(c[o>>2]|0)+300>>2]&127](o,c[f>>2]|0);a[b+15|0]=1}}while(0);o=c[b+8>>2]|0;hd[c[(c[o>>2]|0)+188>>2]&127](o,c[f>>2]|0);i=e;return}function Gw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+576>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+192>>2]&127](k,c[d>>2]|0);i=e;return}function Hw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+552>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+196>>2]&127](k,c[d>>2]|0);i=e;return}function Iw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0.0;f=i;k=i;i=i+16|0;l=k;e=b+28|0;g=c[e>>2]|0;j=c[d>>2]|0;if((j+ -1|0)>>>0>=2){c[k>>2]=j;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}d=d+8|0;if((j|0)==1){m=+(c[d>>2]|0)}else{m=+h[d>>3]}h[g+560>>3]=m*.01;l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+200>>2]&127](l,c[e>>2]|0);a[b+48|0]=1;i=f;return}function Jw(a,b,d){a=a|0;b=b|0;d=d|0;c[a+52>>2]=1;i=i;return}function Kw(a,b,d){a=a|0;b=b|0;d=d|0;c[a+52>>2]=2;i=i;return}function Lw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0;e=i;d=b+28|0;g=c[d>>2]|0;j=g+588|0;k=c[j>>2]|0;a:do{if((c[k+28>>2]|0)>0){l=c[b+116>>2]|0;b:do{if((l|0)!=0){if((a[l]&1)!=0){break a}while(1){l=c[l+4>>2]|0;if((l|0)==0){break b}if((a[l]&1)!=0){break a}}}}while(0);xB(k);k=c[j>>2]|0;l=k+28|0;k=k+24|0;j=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+592>>3]=+h[(c[j>>2]|0)+((c[j+12>>2]|0)+ -1<<3)>>3];l=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+600>>3]=+h[(c[l+4>>2]|0)+((c[l+12>>2]|0)+ -1<<3)>>3];l=c[(c[d>>2]|0)+116>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Bx(b,0)}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+216>>2]&127](l,c[d>>2]|0)}l=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Cx(b);break}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+212>>2]&127](l,c[d>>2]|0);break}}else{if((a[k]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;j=c[g+588>>2]|0;do{if((c[j+28>>2]|0)>0){f=16}else{if((a[j]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);g=c[b+8>>2]|0;b=c[g>>2]|0;if((c[f>>2]|0)==1){hd[c[b+256>>2]&127](g,c[d>>2]|0);b=f;break}else{hd[c[b+260>>2]&127](g,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function Mw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0;e=i;d=b+28|0;g=c[d>>2]|0;j=g+588|0;k=c[j>>2]|0;a:do{if((c[k+28>>2]|0)>0){l=c[b+116>>2]|0;b:do{if((l|0)!=0){if((a[l]&1)!=0){break a}while(1){l=c[l+4>>2]|0;if((l|0)==0){break b}if((a[l]&1)!=0){break a}}}}while(0);xB(k);k=c[j>>2]|0;l=k+28|0;k=k+24|0;j=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+592>>3]=+h[(c[j>>2]|0)+((c[j+12>>2]|0)+ -1<<3)>>3];l=c[(c[k>>2]|0)+((c[l>>2]|0)+ -1<<2)>>2]|0;h[g+600>>3]=+h[(c[l+4>>2]|0)+((c[l+12>>2]|0)+ -1<<3)>>3];l=c[(c[d>>2]|0)+116>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Bx(b,1)}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+220>>2]&127](l,c[d>>2]|0)}l=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[l>>2]|0)+12>>2]&511](l)|0)==10){Cx(b);break}else{l=c[b+8>>2]|0;hd[c[(c[l>>2]|0)+212>>2]&127](l,c[d>>2]|0);break}}else{if((a[k]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;j=c[g+588>>2]|0;do{if((c[j+28>>2]|0)>0){f=16}else{if((a[j]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);g=c[b+8>>2]|0;b=c[g>>2]|0;if((c[f>>2]|0)==1){hd[c[b+256>>2]&127](g,c[d>>2]|0);b=f;break}else{hd[c[b+260>>2]&127](g,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function Nw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0,q=0.0,r=0,s=0,t=0,u=0,v=0.0,w=0,x=0,y=0,z=0.0,A=0.0,B=0.0;e=i;j=i;i=i+16|0;k=j;m=i;i=i+16|0;l=m;p=i;i=i+16|0;o=p;s=i;i=i+16|0;r=s;u=i;i=i+16|0;t=u;y=i;i=i+16|0;x=y;w=i;i=i+8|0;g=c[b+28>>2]|0;f=c[g+588>>2]|0;do{if((c[f+28>>2]|0)<=0){if((a[f]&1)!=0){break}f=c[b+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160776,w);i=e;return}}while(0);w=c[d>>2]|0;if((w+ -1|0)>>>0>=2){c[y>>2]=w;c[x+4>>2]=1;c[x+8>>2]=2;Qe(0,162328,x);tc()}b=d+8|0;if((w|0)==1){n=+(c[b>>2]|0)}else{n=+h[b>>3]}w=c[d+16>>2]|0;if((w+ -1|0)>>>0>=2){c[u>>2]=w;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,162328,t);tc()}t=d+24|0;if((w|0)==1){q=+(c[t>>2]|0)}else{q=+h[t>>3]}t=c[d+32>>2]|0;if((t+ -1|0)>>>0>=2){c[s>>2]=t;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,162328,r);tc()}r=d+40|0;if((t|0)==1){v=+(c[r>>2]|0)}else{v=+h[r>>3]}r=c[d+48>>2]|0;if((r+ -1|0)>>>0>=2){c[p>>2]=r;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,162328,o);tc()}o=d+56|0;if((r|0)==1){z=+(c[o>>2]|0)}else{z=+h[o>>3]}o=c[d+64>>2]|0;if((o+ -1|0)>>>0>=2){c[m>>2]=o;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}l=d+72|0;if((o|0)==1){A=+(c[l>>2]|0)}else{A=+h[l>>3]}l=c[d+80>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}d=d+88|0;if((l|0)==1){B=+(c[d>>2]|0)}else{B=+h[d>>3]}h[g+592>>3]=A;h[g+600>>3]=B;wB(f,n,q,v,z,A,B);i=e;return}function Ow(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0,N=0.0;g=i;f=i;i=i+16|0;e=f;j=i;i=i+16|0;k=j;l=i;i=i+16|0;m=l;o=i;i=i+16|0;n=o;q=i;i=i+16|0;p=q;r=i;i=i+16|0;s=r;F=i;i=i+16|0;D=F;G=i;i=i+16|0;E=G;B=i;i=i+16|0;C=B;A=i;i=i+16|0;y=A;x=i;i=i+16|0;w=x;u=i;i=i+16|0;M=u;t=b+28|0;z=c[t>>2]|0;v=c[d>>2]|0;if((v+ -1|0)>>>0>=2){c[u>>2]=v;c[M+4>>2]=1;c[M+8>>2]=2;Qe(0,162328,M);tc()}u=d+8|0;if((v|0)==1){H=+(c[u>>2]|0)}else{H=+h[u>>3]}v=d+16|0;M=c[v>>2]|0;if((M+ -1|0)>>>0>=2){c[x>>2]=M;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,162328,w);tc()}x=d+24|0;if((M|0)==1){I=+(c[x>>2]|0)}else{I=+h[x>>3]}w=d+32|0;M=c[w>>2]|0;if((M+ -1|0)>>>0>=2){c[A>>2]=M;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,162328,y);tc()}y=d+40|0;if((M|0)==1){J=+(c[y>>2]|0)}else{J=+h[y>>3]}A=d+48|0;M=c[A>>2]|0;if((M+ -1|0)>>>0>=2){c[B>>2]=M;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,162328,C);tc()}B=d+56|0;if((M|0)==1){K=+(c[B>>2]|0)}else{K=+h[B>>3]}C=d+64|0;M=c[C>>2]|0;if((M+ -1|0)>>>0>=2){c[G>>2]=M;c[E+4>>2]=1;c[E+8>>2]=2;Qe(0,162328,E);tc()}G=d+72|0;if((M|0)==1){L=+(c[G>>2]|0)}else{L=+h[G>>3]}E=d+80|0;M=c[E>>2]|0;if((M+ -1|0)>>>0>=2){c[F>>2]=M;c[D+4>>2]=1;c[D+8>>2]=2;Qe(0,162328,D);tc()}D=d+88|0;if((M|0)==1){N=+(c[D>>2]|0)}else{N=+h[D>>3]}JB(z,H,I,J,K,L,N);z=c[b+8>>2]|0;F=c[(c[z>>2]|0)+92>>2]|0;t=c[t>>2]|0;d=c[d>>2]|0;if((d+ -1|0)>>>0>=2){c[r>>2]=d;c[s+4>>2]=1;c[s+8>>2]=2;Qe(0,162328,s);tc()}if((d|0)==1){H=+(c[u>>2]|0)}else{H=+h[u>>3]}r=c[v>>2]|0;if((r+ -1|0)>>>0>=2){c[q>>2]=r;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}if((r|0)==1){I=+(c[x>>2]|0)}else{I=+h[x>>3]}p=c[w>>2]|0;if((p+ -1|0)>>>0>=2){c[o>>2]=p;c[n+4>>2]=1;c[n+8>>2]=2;Qe(0,162328,n);tc()}if((p|0)==1){J=+(c[y>>2]|0)}else{J=+h[y>>3]}n=c[A>>2]|0;if((n+ -1|0)>>>0>=2){c[l>>2]=n;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}if((n|0)==1){K=+(c[B>>2]|0)}else{K=+h[B>>3]}l=c[C>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}if((l|0)==1){L=+(c[G>>2]|0)}else{L=+h[G>>3]}j=c[E>>2]|0;if((j+ -1|0)>>>0>=2){c[f>>2]=j;c[e+4>>2]=1;c[e+8>>2]=2;Qe(0,162328,e);tc()}if((j|0)==1){N=+(c[D>>2]|0);M=F;Ed[M&3](z,t,H,I,J,K,L,N);M=b+48|0;a[M]=1;i=g;return}else{N=+h[D>>3];M=F;Ed[M&3](z,t,H,I,J,K,L,N);M=b+48|0;a[M]=1;i=g;return}}function Pw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;h=i;i=i+8|0;q=i;i=i+8|0;p=q;l=i;i=i+16|0;k=l;g=i;i=i+128|0;f=g;c[l>>2]=13;n=k+8|0;c[n>>2]=0;m=n+4|0;c[m>>2]=0;o=c[b+20>>2]|0;r=c[d>>2]|0;if((r|0)!=4){c[q>>2]=r;c[p+4>>2]=4;Qe(0,162256,p);tc()}p=c[d+8>>2]|0;a:do{if((o|0)==0){j=8}else{while(1){if((c[o+24>>2]|0)==7){if((c[(Yu(c[o+32>>2]|0,p,k,0)|0)>>2]|0)!=5){break}Of(k)}o=c[o+112>>2]|0;if((o|0)==0){j=8;break a}}if((c[l>>2]|0)==5){j=10;break}d=Jy(k,b)|0}}while(0);if((j|0)==8){c[n>>2]=0;c[m>>2]=0;c[l>>2]=5;j=10}if((j|0)==10){d=Jy(d,b)|0}Of(k);if((d|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,160496,h);i=e;return}h=b+15|0;do{if((a[h]&1)!=0){if((a[b+16|0]&1)==0){break}j=b+8|0;r=c[j>>2]|0;k=b+28|0;r=Bd[c[(c[r>>2]|0)+304>>2]&255](r,c[k>>2]|0)|0;q=c[j>>2]|0;hd[c[(c[q>>2]|0)+308>>2]&127](q,c[k>>2]|0);if(r){Bx(b,1)}r=c[j>>2]|0;hd[c[(c[r>>2]|0)+84>>2]&127](r,c[k>>2]|0)}}while(0);j=b+28|0;NB(c[j>>2]|0,0);LB(c[j>>2]|0,d);k=b+8|0;r=c[k>>2]|0;hd[c[(c[r>>2]|0)+132>>2]&127](r,c[j>>2]|0);hd[c[(c[d>>2]|0)+48>>2]&127](d,f);$W((c[j>>2]|0)+124|0,g|0,128)|0;r=c[k>>2]|0;hd[c[(c[r>>2]|0)+140>>2]&127](r,c[j>>2]|0);if((a[h]&1)!=0){r=c[k>>2]|0;hd[c[(c[r>>2]|0)+300>>2]&127](r,c[j>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+188>>2]&127](r,c[j>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+180>>2]&127](r,c[j>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+204>>2]&127](r,c[j>>2]|0);a[h]=(jd[c[(c[d>>2]|0)+12>>2]&511](d)|0)==10|0;i=e;return}if((a[b+16|0]&1)==0){i=e;return}r=c[k>>2]|0;if(!(Bd[c[(c[r>>2]|0)+40>>2]&255](r,c[j>>2]|0)|0)){i=e;return}r=c[k>>2]|0;hd[c[(c[r>>2]|0)+300>>2]&127](r,c[j>>2]|0);a[h]=1;i=e;return}function Qw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0;d=i;f=i;i=i+16|0;g=f;l=i;i=i+16|0;k=l;o=i;i=i+8|0;n=o;j=i;i=i+16|0;m=j;c[j>>2]=13;j=m+8|0;c[j>>2]=0;c[j+4>>2]=0;j=c[b>>2]|0;if((j|0)!=6){c[o>>2]=j;c[n+4>>2]=6;Qe(0,162256,n);tc()}n=c[b+8>>2]|0;j=c[n+12>>2]|0;a:do{if((j|0)==0){e=0}else{o=ye(j,8)|0;if((j|0)>0){p=0}else{e=o;break}while(1){r=ut(n,p,m)|0;q=c[r>>2]|0;if((q+ -1|0)>>>0>=2){break}r=r+8|0;if((q|0)==1){s=+(c[r>>2]|0)}else{s=+h[r>>3]}h[o+(p<<3)>>3]=s;Of(m);p=p+1|0;if((p|0)>=(j|0)){e=o;break a}}c[l>>2]=q;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}}while(0);l=a+28|0;k=c[l>>2]|0;m=c[b+16>>2]|0;if((m+ -1|0)>>>0>=2){c[f>>2]=m;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}b=b+24|0;if((m|0)==1){s=+(c[b>>2]|0);RB(k,e,j,s);q=a+8|0;q=c[q>>2]|0;p=q;p=c[p>>2]|0;p=p+96|0;p=c[p>>2]|0;r=l;r=c[r>>2]|0;hd[p&127](q,r);i=d;return}else{s=+h[b>>3];RB(k,e,j,s);q=a+8|0;q=c[q>>2]|0;p=q;p=c[p>>2]|0;p=p+96|0;p=c[p>>2]|0;r=l;r=c[r>>2]|0;hd[p&127](q,r);i=d;return}}function Rw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0.0;e=i;g=i;i=i+16|0;j=g;m=i;i=i+16|0;l=m;d=c[a+8>>2]|0;f=c[(c[d>>2]|0)+352>>2]|0;a=c[a+28>>2]|0;k=c[b>>2]|0;if((k+ -1|0)>>>0>=2){c[m>>2]=k;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}l=b+8|0;if((k|0)==1){n=+(c[l>>2]|0)}else{n=+h[l>>3]}k=c[b+16>>2]|0;if((k+ -1|0)>>>0>=2){c[g>>2]=k;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}b=b+24|0;if((k|0)==1){o=+(c[b>>2]|0);m=f;kd[m&1](d,a,n,o);i=e;return}else{o=+h[b>>3];m=f;kd[m&1](d,a,n,o);i=e;return}}function Sw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0.0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0.0,v=0,w=0,x=0,y=0.0,z=0.0,A=0.0;e=i;j=i;i=i+16|0;g=j;k=i;i=i+16|0;l=k;n=i;i=i+16|0;o=n;r=i;i=i+16|0;q=r;t=i;i=i+16|0;s=t;x=i;i=i+16|0;w=x;f=c[a+8>>2]|0;d=c[(c[f>>2]|0)+356>>2]|0;a=c[a+28>>2]|0;v=c[b>>2]|0;if((v+ -1|0)>>>0>=2){c[x>>2]=v;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,162328,w);tc()}w=b+8|0;if((v|0)==1){m=+(c[w>>2]|0)}else{m=+h[w>>3]}v=c[b+16>>2]|0;if((v+ -1|0)>>>0>=2){c[t>>2]=v;c[s+4>>2]=1;c[s+8>>2]=2;Qe(0,162328,s);tc()}s=b+24|0;if((v|0)==1){p=+(c[s>>2]|0)}else{p=+h[s>>3]}s=c[b+32>>2]|0;if((s+ -1|0)>>>0>=2){c[r>>2]=s;c[q+4>>2]=1;c[q+8>>2]=2;Qe(0,162328,q);tc()}q=b+40|0;if((s|0)==1){u=+(c[q>>2]|0)}else{u=+h[q>>3]}q=c[b+48>>2]|0;if((q+ -1|0)>>>0>=2){c[n>>2]=q;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,162328,o);tc()}n=b+56|0;if((q|0)==1){y=+(c[n>>2]|0)}else{y=+h[n>>3]}n=c[b+64>>2]|0;if((n+ -1|0)>>>0>=2){c[k>>2]=n;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}k=b+72|0;if((n|0)==1){z=+(c[k>>2]|0)}else{z=+h[k>>3]}k=c[b+80>>2]|0;if((k+ -1|0)>>>0>=2){c[j>>2]=k;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}b=b+88|0;if((k|0)==1){A=+(c[b>>2]|0);x=d;Ed[x&3](f,a,m,p,u,y,z,A);i=e;return}else{A=+h[b>>3];x=d;Ed[x&3](f,a,m,p,u,y,z,A);i=e;return}}function Tw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,1);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+220>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=13}else{if((a[h]&1)!=0){f=13;break}b=b+52|0}}while(0);do{if((f|0)==13){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function Uw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0;e=i;k=i;i=i+16|0;j=k;g=i;i=i+128|0;f=b+15|0;do{if((a[f]&1)!=0){if((a[b+16|0]&1)==0){break}l=b+8|0;o=c[l>>2]|0;m=b+28|0;o=Bd[c[(c[o>>2]|0)+304>>2]&255](o,c[m>>2]|0)|0;p=c[l>>2]|0;hd[c[(c[p>>2]|0)+308>>2]&127](p,c[m>>2]|0);if(o){BxbX(xa|0,0,16)|0;QB(c[$b>>2]|0,nb);_b=c[b+8>>2]|0;hd[c[(c[_b>>2]|0)+168>>2]&127](_b,c[$b>>2]|0);break};case 8:case 7:{jb=79;break};default:{jb=81}}}while(0);do{if((jb|0)==71){if((c[(c[j>>2]|0)+12>>2]|0)==4){mb=6;ob=0}else{jb=81;break}while(1){if((mb|0)!=6){jb=75;break}ut(c[j>>2]|0,ob,oa)|0;$b=nb+(ob<<2)|0;c[$b>>2]=EH(oa)|0;Of(oa);pb=ob+1|0;if((c[$b>>2]|0)==0){ib=ob;break}if((pb|0)>=4){ib=pb;break}mb=c[m>>2]|0;ob=pb}if((jb|0)==75){c[lb>>2]=mb;c[kb+4>>2]=6;Qe(0,162256,kb);tc()}if((ib|0)!=4){break}$b=b+28|0;QB(c[$b>>2]|0,nb);_b=c[b+8>>2]|0;hd[c[(c[_b>>2]|0)+168>>2]&127](_b,c[$b>>2]|0)}else if((jb|0)==79){$b=EH(g)|0;c[xa>>2]=$b;if(($b|0)==0){break}c[nb+12>>2]=0;c[nb+8>>2]=0;c[nb+4>>2]=0;$b=b+28|0;QB(c[$b>>2]|0,nb);_b=c[b+8>>2]|0;hd[c[(c[_b>>2]|0)+168>>2]&127](_b,c[$b>>2]|0)}}while(0);if((jb|0)==81){ib=c[b+120>>2]|0;do{if((ib|0)==0){ib=-1}else{ib=c[ib+4>>2]|0;if((c[ib+16>>2]|0)!=8){ib=-1;break}ib=c[ib+24>>2]|0;ib=jd[c[(c[ib>>2]|0)+48>>2]&511](ib)|0}}while(0);Qe(ib,159936,mb)}Of(g);ib=c[t>>2]|0;if((ib|0)!=7){c[hb>>2]=ib;c[gb+4>>2]=7;Qe(0,162256,gb);tc()}do{if((c[(Yu(c[p>>2]|0,159976,g,0)|0)>>2]|0)==0){gb=b+28|0;hb=c[m>>2]|0;if((hb|0)==0){a[(c[gb>>2]|0)+481|0]=a[j]&1;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+124>>2]&127]($b,c[gb>>2]|0);break}else{c[fb>>2]=hb;c[eb+4>>2]=0;Qe(0,162256,eb);tc()}}}while(0);Of(g);eb=c[t>>2]|0;if((eb|0)!=7){c[db>>2]=eb;c[cb+4>>2]=7;Qe(0,162256,cb);tc()}do{if((c[(Yu(c[p>>2]|0,159984,g,0)|0)>>2]|0)==0){db=b+28|0;cb=c[m>>2]|0;if((cb|0)==0){a[(c[db>>2]|0)+482|0]=a[j]&1;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+128>>2]&127]($b,c[db>>2]|0);break}else{c[bb>>2]=cb;c[ab+4>>2]=0;Qe(0,162256,ab);tc()}}}while(0);Of(g);ab=c[t>>2]|0;if((ab|0)!=7){c[$a>>2]=ab;c[_a+4>>2]=7;Qe(0,162256,_a);tc()}b:do{if((c[(Yu(c[p>>2]|0,159992,g,0)|0)>>2]|0)!=5){_a=c[m>>2]|0;do{if((_a|0)==5){break b}else if((_a|0)==4){if((Qc(c[j>>2]|0,16e4)|0)!=0){break}$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+396>>2]&127]($b,c[b+28>>2]|0);break b}else if((_a|0)==7){Ya=Yu(c[j>>2]|0,160008,oa,0)|0;if((c[Ya>>2]|0)==4){Ya=(Qc(c[Ya+8>>2]|0,160016)|0)==0}else{Ya=0}Of(oa);c[xa>>2]=0;_a=c[m>>2]|0;if((_a|0)!=7){c[Xa>>2]=_a;c[Za+4>>2]=7;Qe(0,162256,Za);tc()}do{if((c[(Yu(c[j>>2]|0,159904,oa,0)|0)>>2]|0)!=5){Xa=EH(oa)|0;c[xa>>2]=Xa;if((c[Xa+4>>2]|0)==1){if((c[Xa+8>>2]|0)==1){break}}Xa=c[b+120>>2]|0;do{if((Xa|0)==0){Xa=-1}else{Xa=c[Xa+4>>2]|0;if((c[Xa+16>>2]|0)!=8){Xa=-1;break}Xa=c[Xa+24>>2]|0;Xa=jd[c[(c[Xa>>2]|0)+48>>2]&511](Xa)|0}}while(0);Qe(Xa,160024,Wa);Wa=c[xa>>2]|0;if((Wa|0)!=0){fd[c[(c[Wa>>2]|0)+4>>2]&511](Wa)}c[xa>>2]=0}}while(0);Of(oa);Wa=c[m>>2]|0;if((Wa|0)!=7){c[Va>>2]=Wa;c[Ua+4>>2]=7;Qe(0,162256,Ua);tc()}Ua=(c[(Yu(c[j>>2]|0,160080,oa,0)|0)>>2]|0)==6;c:do{if(Ua){bX(ta|0,0,128)|0;Va=c[Pa>>2]|0;if((Va|0)!=6){_b=Va;$b=Sa;c[$b>>2]=_b;$b=Ta+4|0;c[$b>>2]=6;$b=162256;Qe(0,$b,Ta);tc()}Va=0;while(1){Wa=c[Oa>>2]|0;if(!((Va|0)<(c[Wa+12>>2]|0)&(Va|0)<32)){break c}ut(Wa,Va,pa)|0;Wa=c[Da>>2]|0;if((Wa+ -1|0)>>>0<2){if((Wa|0)==1){ac=+(c[Aa>>2]|0)}else{ac=+h[Aa>>3]}c[ya+(Va<<2)>>2]=~~(ac*65536.0)}Of(pa);Wa=c[Pa>>2]|0;if((Wa|0)==6){Va=Va+1|0}else{break}}$b=Sa;c[$b>>2]=Wa;$b=Ta+4|0;c[$b>>2]=6;$b=162256;Qe(0,$b,Ta);tc()}}while(0);Of(oa);Sa=c[m>>2]|0;if((Sa|0)!=7){c[Qa>>2]=Sa;c[Ra+4>>2]=7;Qe(0,162256,Ra);tc()}if((c[(Yu(c[j>>2]|0,160088,oa,0)|0)>>2]|0)==8){Ja=c[Pa>>2]|0;if((Ja|0)!=8){c[Na>>2]=Ja;c[Ma+4>>2]=8;Qe(0,162256,Ma);tc()}$b=c[Oa>>2]|0;do{if((c[(Yu(jd[c[(c[$b>>2]|0)+72>>2]&511]($b)|0,160096,pa,0)|0)>>2]|0)==7){Ga=c[Da>>2]|0;if((Ga|0)!=7){c[La>>2]=Ga;c[Ka+4>>2]=7;Qe(0,162256,Ka);tc()}if((c[(Yu(c[Aa>>2]|0,160104,ua,0)|0)>>2]|0)==5){Ga=0}else{Ga=Jy(ua,b)|0}Of(ua);Ja=c[Da>>2]|0;if((Ja|0)!=7){c[Ia>>2]=Ja;c[Ha+4>>2]=7;Qe(0,162256,Ha);tc()}do{if((c[(Yu(c[Aa>>2]|0,160112,ua,0)|0)>>2]|0)==0){Ha=c[za>>2]|0;if((Ha|0)==0){ra=(a[va]&1)!=0;break}else{c[Ea>>2]=Ha;c[Fa+4>>2]=0;Qe(0,162256,Fa);tc()}}else{ra=0}}while(0);Of(ua);Da=c[Da>>2]|0;if((Da|0)!=7){c[Ba>>2]=Da;c[Ca+4>>2]=7;Qe(0,162256,Ca);tc()}do{if((c[(Yu(c[Aa>>2]|0,160120,ua,0)|0)>>2]|0)==0){za=c[za>>2]|0;if((za|0)==0){qa=(a[va]&1)!=0;break}else{c[wa>>2]=za;c[sa+4>>2]=0;Qe(0,162256,sa);tc()}}else{qa=0}}while(0);Of(ua);do{if(!Ua){if((Ga|0)==0){bX(ta|0,0,128)|0;break}else{hd[c[(c[Ga>>2]|0)+48>>2]&127](Ga,ya);break}}}while(0);zx(b,oa,Ya,Ga,ra,qa,c[xa>>2]|0,ya);qa=c[xa>>2]|0;if((qa|0)==0){break}fd[c[(c[qa>>2]|0)+4>>2]&511](qa)}else{qa=c[b+120>>2]|0;do{if((qa|0)==0){qa=-1}else{qa=c[qa+4>>2]|0;if((c[qa+16>>2]|0)!=8){qa=-1;break}qa=c[qa+24>>2]|0;qa=jd[c[(c[qa>>2]|0)+48>>2]&511](qa)|0}}while(0);Qe(qa,160128,Ga)}}while(0);Of(pa)}else{pa=c[b+120>>2]|0;do{if((pa|0)==0){pa=-1}else{pa=c[pa+4>>2]|0;if((c[pa+16>>2]|0)!=8){pa=-1;break}pa=c[pa+24>>2]|0;pa=jd[c[(c[pa>>2]|0)+48>>2]&511](pa)|0}}while(0);Qe(pa,160128,Ja)}Of(oa);break b}}while(0);oa=c[b+120>>2]|0;do{if((oa|0)==0){oa=-1}else{oa=c[oa+4>>2]|0;if((c[oa+16>>2]|0)!=8){oa=-1;break}oa=c[oa+24>>2]|0;oa=jd[c[(c[oa>>2]|0)+48>>2]&511](oa)|0}}while(0);Qe(oa,160176,Ya)}}while(0);Of(g);oa=c[t>>2]|0;if((oa|0)!=7){c[na>>2]=oa;c[ma+4>>2]=7;Qe(0,162256,ma);tc()}do{if((c[(Yu(c[p>>2]|0,159192,g,0)|0)>>2]|0)==6){ma=c[m>>2]|0;if((ma|0)!=6){c[la>>2]=ma;c[ka+4>>2]=6;Qe(0,162256,ka);tc()}la=c[j>>2]|0;if((c[la+12>>2]|0)!=2){T=c[b+120>>2]|0;do{if((T|0)==0){T=-1}else{T=c[T+4>>2]|0;if((c[T+16>>2]|0)!=8){T=-1;break}T=c[T+24>>2]|0;T=jd[c[(c[T>>2]|0)+48>>2]&511](T)|0}}while(0);Qe(T,160208,ja);break}c[fa>>2]=13;ka=V+8|0;c[ka>>2]=0;c[ka+4>>2]=0;c[Y>>2]=13;ja=T+8|0;c[ja>>2]=0;c[ja+4>>2]=0;vt(la,0,V)|0;la=c[m>>2]|0;if((la|0)!=6){c[ha>>2]=la;c[ia+4>>2]=6;Qe(0,162256,ia);tc()}ut(c[j>>2]|0,1,T)|0;do{if((c[fa>>2]|0)==9){if(((c[Y>>2]|0)+ -1|0)>>>0>=2){break}c[ga>>2]=13;ha=U+8|0;c[ha>>2]=0;c[ha+4>>2]=0;Nf(V,c[b>>2]|0,U,0)|0;if((c[ga>>2]|0)==7){fa=c[fa>>2]|0;if((fa|0)!=9){c[ea>>2]=fa;c[da+4>>2]=9;Qe(0,162256,da);tc()}d=c[d>>2]|0;if((d|0)!=4){c[ca>>2]=d;c[_+4>>2]=4;Qe(0,162256,_);tc()}$b=c[b>>2]|0;Zb=ka;_b=c[Zb+4>>2]|0;d=c[Z>>2]|0;Z=$;c[Z>>2]=c[Zb>>2];c[Z+4>>2]=_b;Z=c[ha>>2]|0;$W(aa|0,$|0,8)|0;Z=Ux($b,d,ba,Z)|0;d=c[b+28>>2]|0;Y=c[Y>>2]|0;if((Y+ -1|0)>>>0>=2){c[W>>2]=Y;c[X+4>>2]=1;c[X+8>>2]=2;Qe(0,162328,X);tc()}if((Y|0)==1){ac=+(c[ja>>2]|0)}else{ac=+h[ja>>3]}PB(d,Z,ac);a[b+48|0]=1}Of(U)}}while(0);Of(V);Of(T)}}while(0);Of(g);T=c[t>>2]|0;if((T|0)!=7){c[S>>2]=T;c[R+4>>2]=7;Qe(0,162256,R);tc()}if(((c[(Yu(c[p>>2]|0,160256,g,0)|0)>>2]|0)+ -1|0)>>>0<2){R=b+28|0;S=c[R>>2]|0;T=c[m>>2]|0;if((T+ -1|0)>>>0>=2){c[P>>2]=T;c[Q+4>>2]=1;c[Q+8>>2]=2;Qe(0,162328,Q);tc()}if((T|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}h[S+432>>3]=ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+116>>2]&127]($b,c[R>>2]|0)}Of(g);P=c[t>>2]|0;if((P|0)!=7){c[N>>2]=P;c[O+4>>2]=7;Qe(0,162256,O);tc()}do{if((c[(Yu(c[p>>2]|0,160264,g,0)|0)>>2]|0)==1){O=b+28|0;N=c[m>>2]|0;if((N|0)==1){c[(c[O>>2]|0)+464>>2]=c[j>>2];$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+108>>2]&127]($b,c[O>>2]|0);break}else{c[M>>2]=N;c[L+4>>2]=1;Qe(0,162256,L);tc()}}}while(0);Of(g);L=c[t>>2]|0;if((L|0)!=7){c[J>>2]=L;c[K+4>>2]=7;Qe(0,162256,K);tc()}do{if((c[(Yu(c[p>>2]|0,160272,g,0)|0)>>2]|0)==1){J=b+28|0;K=c[m>>2]|0;if((K|0)==1){c[(c[J>>2]|0)+460>>2]=c[j>>2];$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+104>>2]&127]($b,c[J>>2]|0);break}else{c[I>>2]=K;c[H+4>>2]=1;Qe(0,162256,H);tc()}}}while(0);Of(g);H=c[t>>2]|0;if((H|0)!=7){c[F>>2]=H;c[G+4>>2]=7;Qe(0,162256,G);tc()}if(((c[(Yu(c[p>>2]|0,160280,g,0)|0)>>2]|0)+ -1|0)>>>0<2){G=b+28|0;F=c[G>>2]|0;H=c[m>>2]|0;if((H+ -1|0)>>>0>=2){c[E>>2]=H;c[D+4>>2]=1;c[D+8>>2]=2;Qe(0,162328,D);tc()}if((H|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}h[F+472>>3]=ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+112>>2]&127]($b,c[G>>2]|0)}Of(g);D=c[t>>2]|0;if((D|0)!=7){c[C>>2]=D;c[B+4>>2]=7;Qe(0,162256,B);tc()}do{if((c[(Yu(c[p>>2]|0,160288,g,0)|0)>>2]|0)==6){B=c[m>>2]|0;if((B|0)!=6){c[A>>2]=B;c[z+4>>2]=6;Qe(0,162256,z);tc()}z=c[j>>2]|0;if((c[z+12>>2]|0)!=2){v=c[b+120>>2]|0;do{if((v|0)==0){v=-1}else{v=c[v+4>>2]|0;if((c[v+16>>2]|0)!=8){v=-1;break}v=c[v+24>>2]|0;v=jd[c[(c[v>>2]|0)+48>>2]&511](v)|0}}while(0);Qe(v,160296,u);break}c[y>>2]=13;u=x+8|0;c[u>>2]=0;c[u+4>>2]=0;c[x+16>>2]=13;u=x+24|0;c[u>>2]=0;c[u+4>>2]=0;vt(z,0,x)|0;u=x+16|0;z=c[m>>2]|0;if((z|0)!=6){c[w>>2]=z;c[v+4>>2]=6;Qe(0,162256,v);tc()}ut(c[j>>2]|0,1,u)|0;do{if((c[y>>2]|0)==6){if((c[u>>2]|0)!=1){break}Qw(b,x,0)}}while(0);Of(x);Of(u)}}while(0);Of(g);u=c[t>>2]|0;if((u|0)!=7){c[s>>2]=u;c[q+4>>2]=7;Qe(0,162256,q);tc()}Yu(c[p>>2]|0,160344,g,0)|0;Of(g);q=c[t>>2]|0;if((q|0)!=7){c[o>>2]=q;c[n+4>>2]=7;Qe(0,162256,n);tc()}if(((c[(Yu(c[p>>2]|0,160352,g,0)|0)>>2]|0)+ -1|0)>>>0<2){o=b+28|0;n=c[o>>2]|0;m=c[m>>2]|0;if((m+ -1|0)>>>0>=2){c[l>>2]=m;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}if((m|0)==1){ac=+(c[j>>2]|0)}else{ac=+h[j>>3]}c[n+456>>2]=~~ac;$b=c[b+8>>2]|0;hd[c[(c[$b>>2]|0)+100>>2]&127]($b,c[o>>2]|0)}Of(g);Of(e);i=f;return}function Ww(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0;e=i;d=i;i=i+8|0;f=c[b+28>>2]|0;g=f+588|0;j=c[g>>2]|0;do{if((c[j+28>>2]|0)<=0){if((a[j]&1)!=0){break}b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,160872,d);i=e;return}}while(0);xB(j);g=c[g>>2]|0;j=g+28|0;g=g+24|0;b=c[(c[g>>2]|0)+((c[j>>2]|0)+ -1<<2)>>2]|0;h[f+592>>3]=+h[(c[b>>2]|0)+((c[b+12>>2]|0)+ -1<<3)>>3];j=c[(c[g>>2]|0)+((c[j>>2]|0)+ -1<<2)>>2]|0;h[f+600>>3]=+h[(c[j+4>>2]|0)+((c[j+12>>2]|0)+ -1<<3)>>3];i=e;return}function Xw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}c[f+456>>2]=~~l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+100>>2]&127](k,c[d>>2]|0);i=e;return}function Yw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;d=i;g=i;i=i+8|0;f=g;e=a+28|0;h=c[b>>2]|0;if((h|0)==1){c[(c[e>>2]|0)+460>>2]=c[b+8>>2];h=c[a+8>>2]|0;hd[c[(c[h>>2]|0)+104>>2]&127](h,c[e>>2]|0);i=d;return}else{c[g>>2]=h;c[f+4>>2]=1;Qe(0,162256,f);tc()}}function Zw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0;m=i;e=i;i=i+16|0;g=e;k=i;i=i+128|0;j=k;l=b+15|0;do{if((a[l]&1)!=0){if((a[b+16|0]&1)==0){break}o=b+8|0;q=c[o>>2]|0;n=b+28|0;q=Bd[c[(c[q>>2]|0)+304>>2]&255](q,c[n>>2]|0)|0;p=c[o>>2]|0;hd[c[(c[p>>2]|0)+308>>2]&127](p,c[n>>2]|0);if(q){Bx(b,1)}q=c[o>>2]|0;hd[c[(c[q>>2]|0)+84>>2]&127](q,c[n>>2]|0)}}while(0);n=b+28|0;NB(c[n>>2]|0,0);q=c[n>>2]|0;o=FW(4)|0;vz(o);LB(q,o);b=b+8|0;o=c[b>>2]|0;hd[c[(c[o>>2]|0)+132>>2]&127](o,c[n>>2]|0);o=0;do{p=c[d+(o<<4)>>2]|0;if((p+ -1|0)>>>0>=2){f=8;break}q=d+(o<<4)+8|0;if((p|0)==1){r=+(c[q>>2]|0)}else{r=+h[q>>3]}c[j+(o<<2)>>2]=~~(r*65536.0);o=o+1|0;}while((o|0)<4);if((f|0)==8){c[e>>2]=p;c[g+4>>2]=1;c[g+8>>2]=2;Qe(0,162328,g);tc()}$W((c[n>>2]|0)+124|0,k|0,128)|0;q=c[b>>2]|0;hd[c[(c[q>>2]|0)+140>>2]&127](q,c[n>>2]|0);if((a[l]&1)==0){i=m;return}q=c[b>>2]|0;hd[c[(c[q>>2]|0)+300>>2]&127](q,c[n>>2]|0);q=c[b>>2]|0;hd[c[(c[q>>2]|0)+188>>2]&127](q,c[n>>2]|0);q=c[b>>2]|0;hd[c[(c[q>>2]|0)+180>>2]&127](q,c[n>>2]|0);q=c[b>>2]|0;hd[c[(c[q>>2]|0)+204>>2]&127](q,c[n>>2]|0);a[l]=0;i=m;return}function _w(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0,p=0.0;e=i;j=i;i=i+16|0;k=j;n=i;i=i+16|0;m=n;l=i;i=i+8|0;f=c[b+28>>2]|0;g=c[f+588>>2]|0;do{if((c[g+28>>2]|0)<=0){if((a[g]&1)!=0){break}f=c[b+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160744,l);i=e;return}}while(0);l=c[d>>2]|0;if((l+ -1|0)>>>0>=2){c[n>>2]=l;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}m=d+8|0;if((l|0)==1){o=+(c[m>>2]|0)}else{o=+h[m>>3]}l=c[d+16>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}d=d+24|0;if((l|0)==1){p=+(c[d>>2]|0)}else{p=+h[d>>3]}h[f+592>>3]=o;h[f+600>>3]=p;vB(g,o,p);i=e;return}function $w(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0,m=0.0;d=i;e=i;i=i+16|0;f=e;k=i;i=i+16|0;j=k;a=c[a+28>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[k>>2]=g;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}j=b+8|0;if((g|0)==1){l=+(c[j>>2]|0)}else{l=+h[j>>3]}g=c[b+16>>2]|0;if((g+ -1|0)>>>0>=2){c[e>>2]=g;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,162328,f);tc()}b=b+24|0;if((g|0)==1){m=+(c[b>>2]|0);k=a+588|0;k=c[k>>2]|0;j=a+592|0;h[j>>3]=l;j=a+600|0;h[j>>3]=m;uB(k,l,m);i=d;return}else{m=+h[b>>3];k=a+588|0;k=c[k>>2]|0;j=a+592|0;h[j>>3]=l;j=a+600|0;h[j>>3]=m;uB(k,l,m);i=d;return}}function ax(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=4}else{if((a[h]&1)!=0){f=4;break}b=b+52|0}}while(0);do{if((f|0)==4){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function bxBx
7321 function $K(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;h=i;do{if((d|b|e|0)<0){a=6}else{if((e|0)==0|(b|0)==0){if((f|0)==0){f=0;a=0;break}hd[c[a+8>>2]&127](a,f);f=0;a=0;break}if((2147483647/(b|0)|0|0)<(e|0)){a=10;break}if((d|0)!=0){d=da(d,b)|0;b=da(e,b)|0;b=pd[c[a+12>>2]&63](a,d,b,f)|0;a=(b|0)==0;f=a?f:b;a=a?64:0;break}b=da(e,b)|0;if((b|0)<=0){f=0;a=b>>31&6;break}f=Bd[c[a+4>>2]&255](a,b)|0;e=(f|0)==0;a=e?64:0;if(e){f=0;break}bX(f|0,0,b|0)|0}}while(0);c[g>>2]=a;i=h;return f|0}function aL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;e=(b|0)==0;do{if(e){j=0;f=4}else{h=(ZW(b|0)|0)+1|0;if((h|0)<=0){j=h;f=4;break}j=Bd[c[a+4>>2]&255](a,h)|0;a=j;j=(j|0)==0?64:0}}while(0);if((f|0)==4){h=j;a=0;j=j>>31&6}if((j|0)!=0|e){h=d;c[h>>2]=j;i=g;return a|0}$W(a|0,b|0,h|0)|0;h=d;c[h>>2]=j;i=g;return a|0}function bL(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=i;a:do{if(d>>>0>1){while(1){g=a[c]|0;if(g<<24>>24==0){break a}c=c+1|0;f=b+1|0;a[b]=g;d=d+ -1|0;if(d>>>0>1){b=f}else{b=f;break}}}}while(0);a[b]=0;i=e;return(a[c]|0)!=0|0}function cL(a){a=a|0;var b=0,c=0;b=i;while(1){c=a+ -1&a;if((c|0)==0){break}else{a=c}}i=b;return a|0}function dL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=i;c[e>>2]=0;if((b|0)==0){d=81;i=a;return d|0}d=nL(b,333319,f)|0;i=a;return d|0}function eL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=i;c[e>>2]=0;if((b|0)==0){d=81;i=a;return d|0}d=nL(b,333312,f)|0;i=a;return d|0}function fL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206480)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function gL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;b=ZW(d|0)|0;h=b+18|0;a=c[a>>2]|0;do{if((h|0)>0){j=Bd[c[a+4>>2]&255](a,h)|0;k=(j|0)==0;a=k?64:0;if(k){j=0;break}bX(j|0,0,h|0)|0}else{j=0;a=h>>31&6}}while(0);if((a|0)!=0){k=a;i=g;return k|0}$W(j|0,d|0,b|0)|0;$W(j+b|0,206456,18)|0;c[e>>2]=j;c[f>>2]=0;k=0;i=g;return k|0}function hL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;b=ZW(d|0)|0;h=b+6|0;a=c[a>>2]|0;do{if((h|0)>0){j=Bd[c[a+4>>2]&255](a,h)|0;k=(j|0)==0;a=k?64:0;if(k){j=0;break}bX(j|0,0,h|0)|0}else{j=0;a=h>>31&6}}while(0);if((a|0)!=0){k=a;i=g;return k|0}$W(j|0,d|0,b|0)|0;$W(j+b|0,206448,6)|0;c[e>>2]=j;c[f>>2]=0;k=0;i=g;return k|0}function iL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;b=i;d=mL(c[a>>2]|0,d,206432)|0;if((d|0)==0){a=64;i=b;return a|0}c[e>>2]=d;c[f>>2]=0;a=0;i=b;return a|0}function jL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;b=i;d=mL(c[a>>2]|0,d,206416)|0;if((d|0)==0){a=64;i=b;return a|0}c[e>>2]=d;c[f>>2]=0;a=0;i=b;return a|0}function kL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206408)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function lL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206392)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function mL(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=ZW(d|0)|0;g=g+1+(ZW(e|0)|0)|0;do{if((g|0)>0){b=Bd[c[b+4>>2]&255](b,g)|0;j=(b|0)==0;h=j?64:0;if(j){b=0;break}bX(b|0,0,g|0)|0}else{b=0;h=g>>31&6}}while(0);if((h|0)!=0){j=0;i=f;return j|0}g=Sa(d|0,47)|0;if((g|0)==0){a[b]=0}else{j=g-d+1|0;hX(b|0,d|0,j|0)|0;a[b+j|0]=0;d=g+1|0}cX(b|0,e|0)|0;cX(b|0,d|0)|0;j=b;i=f;return j|0}function nL(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;m=i;i=i+8|0;h=i;i=i+8|0;g=a+8|0;o=c[g>>2]|0;k=a+4|0;if((o+3|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}j=a+20|0;n=c[j>>2]|0;do{if((n|0)==0){n=(c[a>>2]|0)+o|0;if((n|0)==0){p=0}else{l=6}}else{if((pd[n&63](a,o,h,4)|0)==4){o=c[g>>2]|0;n=h;l=6;break}else{q=85;i=f;return q|0}}}while(0);if((l|0)==6){p=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0)}n=o+4|0;c[g>>2]=n;if((p|0)!=(b|0)){q=2;i=f;return q|0}if((o+7|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}b=c[j>>2]|0;do{if((b|0)==0){c[g>>2]=o+8;o=o+24|0;l=14}else{if((pd[b&63](a,n,h,4)|0)!=4){q=85;i=f;return q|0}n=c[g>>2]|0;o=c[j>>2]|0;c[g>>2]=n+4;b=n+20|0;if((o|0)==0){o=b;l=14;break}q=(pd[o&63](a,b,0,0)|0)==0;o=q?0:85}}while(0);if((l|0)==14){b=o;o=(c[k>>2]|0)>>>0<o>>>0?85:0}if((o|0)!=0){q=o;i=f;return q|0}c[g>>2]=b;if((n+21|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}l=c[j>>2]|0;do{if((l|0)==0){m=(c[a>>2]|0)+b|0;if((m|0)!=0){break}c[g>>2]=n+22;q=2;i=f;return q|0}else{if((pd[l&63](a,b,m,2)|0)==2){b=c[g>>2]|0;break}else{q=85;i=f;return q|0}}}while(0);q=(d[m]|0)<<8&65535|(d[m+1|0]|0);p=b+2|0;c[g>>2]=p;m=q&65535;if(q<<16>>16==0){q=2;i=f;return q|0}b=1;a:while(1){if((p+3|0)>>>0>=(c[k>>2]|0)>>>0){o=85;l=49;break}l=c[j>>2]|0;do{if((l|0)==0){n=(c[a>>2]|0)+p|0;if((n|0)!=0){l=30;break}c[g>>2]=p+4;o=p+12|0;l=44}else{if((pd[l&63](a,p,h,4)|0)!=4){o=85;l=49;break a}p=c[g>>2]|0;n=h;l=30}}while(0);do{if((l|0)==30){l=0;q=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);n=p+4|0;c[g>>2]=n;if((q|0)!=2){l=c[j>>2]|0;n=p+12|0;if((l|0)==0){o=n;l=44;break}q=(pd[l&63](a,n,0,0)|0)==0;o=q?0:85;l=45;break}o=c[k>>2]|0;if((p+7|0)>>>0>=o>>>0){break}p=c[j>>2]|0;if((p|0)==0){p=(c[a>>2]|0)+n|0;if((p|0)==0){p=0}else{l=36}}else{if((pd[p&63](a,n,h,4)|0)!=4){break}o=c[k>>2]|0;n=c[g>>2]|0;p=h;l=36}if((l|0)==36){l=0;p=(d[p+1|0]|0)<<16|(d[p]|0)<<24|(d[p+2|0]|0)<<8|(d[p+3|0]|0)}q=n+4|0;c[g>>2]=q;if((n+7|0)>>>0>=o>>>0){break}n=c[j>>2]|0;if((n|0)==0){break a}if((pd[n&63](a,q,h,4)|0)==4){l=40;break a}}}while(0);if((l|0)==44){n=o;o=(c[k>>2]|0)>>>0<o>>>0?85:0;l=45}if((l|0)==45){if((o|0)!=0){l=49;break}c[g>>2]=n}if((b|0)>=(m|0)){o=2;l=49;break}p=c[g>>2]|0;b=b+1|0}if((l|0)==40){q=c[g>>2]|0}else if((l|0)==49){i=f;return o|0}c[g>>2]=q+4;c[e>>2]=p;q=0;i=f;return q|0}function oL(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;k=i;i=i+128|0;j=k;if((e|0)==0){n=85;i=h;return n|0}l=e+20|0;m=c[l>>2]|0;do{if((m|0)!=0){m=(pd[m&63](e,0,0,0)|0)==0;if(m){break}else{g=m?0:85}i=h;return g|0}}while(0);m=e+8|0;c[m>>2]=0;n=c[e+4>>2]|0;if((n|0)==0){n=85;i=h;return n|0}l=c[l>>2]|0;if((l|0)==0){l=n>>>0>128?128:n;$W(k|0,c[e>>2]|0,l|0)|0}else{l=pd[l&63](e,0,j,128)|0}c[m>>2]=l;if(l>>>0<=127){n=85;i=h;return n|0}if((a[k]|0)!=0){n=2;i=h;return n|0}if((a[j+74|0]|0)!=0){n=2;i=h;return n|0}if((a[j+82|0]|0)!=0){n=2;i=h;return n|0}k=a[j+1|0]|0;if(k<<24>>24==0|(k&255)>33){n=2;i=h;return n|0}if((a[j+63|0]|0)!=0){n=2;i=h;return n|0}if((a[j+((k&255)+2)|0]|0)!=0){n=2;i=h;return n|0}n=pL(b,e,(d[j+84|0]<<16|d[j+83|0]<<24|d[j+85|0]<<8|d[j+86|0])+255&-128,f,g)|0;i=h;return n|0}function pL(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;k=i;p=i;i=i+8|0;n=i;i=i+8|0;t=i;i=i+8|0;s=i;i=i+8|0;l=i;i=i+8|0;o=l;q=i;i=i+8|0;r=q;j=c[b>>2]|0;f=BK(0,e,f,t,s)|0;if((f|0)!=0){F=f;i=k;return F|0}t=c[t>>2]|0;s=c[s>>2]|0;if((FK(b,e,t,s,1347375956,o,r)|0)!=0){o=FK(b,e,t,s,1936092788,o,r)|0;if((o|0)!=0){F=o;i=k;return F|0}o=c[q>>2]|0;p=(g|0)%(o|0)|0;s=c[b>>2]|0;f=(p|0)==-1?0:p;p=c[l>>2]|0;a:do{if((f|0)<(o|0)){t=c[p+(f<<2)>>2]|0;r=e+20|0;q=c[r>>2]|0;if((q|0)==0){q=(c[e+4>>2]|0)>>>0<t>>>0?85:0}else{F=(pd[q&63](e,t,0,0)|0)==0;q=F?0:85}if((q|0)!=0){m=q;break}q=e+8|0;c[q>>2]=t;g=e+4|0;if((t+3|0)>>>0>=(c[g>>2]|0)>>>0){m=85;break}u=c[r>>2]|0;do{if((u|0)==0){n=(c[e>>2]|0)+t|0;if((n|0)!=0){u=t;m=77;break}c[q>>2]=t+4;n=0}else{if((pd[u&63](e,t,n,4)|0)!=4){m=85;break a}u=c[q>>2]|0;m=77}}while(0);if((m|0)==77){n=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);c[q>>2]=u+4;if((n|0)==-1){m=1;break}}m=QJ(b,e,f,h)|0;if((m|0)==0){m=0;break}t=t+4|0;f=c[r>>2]|0;if((f|0)==0){f=(c[g>>2]|0)>>>0<t>>>0?85:0}else{F=(pd[f&63](e,t,0,0)|0)==0;f=F?0:85}if((f|0)!=0){break}c[q>>2]=t;do{if((n|0)>0){m=Bd[c[s+4>>2]&255](s,n)|0;t=(m|0)==0;s=t?64:0;if(t){m=0;break}bX(m|0,0,n|0)|0}else{m=0;s=n>>31&6}}while(0);if((s|0)!=0){m=s;break}s=c[q>>2]|0;g=c[g>>2]|0;if(g>>>0<=s>>>0){m=85;break}r=c[r>>2]|0;if((r|0)==0){r=g-s|0;F=r>>>0>n>>>0?n:r;$W(m|0,(c[e>>2]|0)+s|0,F|0)|0;e=F}else{e=pd[r&63](e,s,m,n)|0}c[q>>2]=e+s;if(e>>>0<n>>>0){m=85;break}if((n|0)>4){F=(iX(m|0,206488,4)|0)!=0;e=F?206240:206496}else{e=206240}m=qL(b,m,n,0,e,h)|0}else{m=1}}while(0);if((p|0)!=0){hd[c[j+8>>2]&127](j,p)}c[l>>2]=0;if((m|0)!=0){F=m;i=k;return F|0}c[c[h>>2]>>2]=o;F=0;i=k;return F|0}o=c[l>>2]|0;r=c[q>>2]|0;q=c[b>>2]|0;b:do{if((g|0)==0|(g|0)==-1){f=(r|0)>0;do{if(f){v=e+20|0;g=e+4|0;u=e+8|0;s=0;t=0;do{w=c[o+(s<<2)>>2]|0;x=c[v>>2]|0;if((x|0)==0){C=(c[g>>2]|0)>>>0<w>>>0?85:0}else{F=(pd[x&63](e,w,0,0)|0)==0;C=F?0:85}if((C|0)!=0){break b}c[u>>2]=w;if((w+3|0)>>>0>=(c[g>>2]|0)>>>0){C=85;break b}x=c[v>>2]|0;if((x|0)==0){x=(c[e>>2]|0)+w|0;if((x|0)==0){x=6}else{m=15}}else{if((pd[x&63](e,w,n,4)|0)!=4){C=85;break b}w=c[u>>2]|0;x=n;m=15}if((m|0)==15){m=0;x=((d[x+1|0]|0)<<16|(d[x]|0)<<24|(d[x+2|0]|0)<<8|(d[x+3|0]|0))+6|0}c[u>>2]=w+4;t=x+t|0;s=s+1|0;}while((s|0)<(r|0));u=t+2|0;if((u|0)>0){g=u;m=19;break}g=u;s=0;C=u>>31&6}else{g=2;t=0;m=19}}while(0);do{if((m|0)==19){s=Bd[c[q+4>>2]&255](q,g)|0;u=(s|0)==0;C=u?64:0;if(u){s=0;break}bX(s|0,0,g|0)|0}}while(0);if((C|0)!=0){break}a[s]=-128;a[s+1|0]=1;F=s+2|0;a[F]=0;a[F+1|0]=0;a[F+2|0]=0;a[F+3|0]=0;c:do{if(f){v=e+20|0;f=e+4|0;u=e+8|0;w=0;z=0;y=2;x=6;A=1;do{B=c[o+(w<<2)>>2]|0;C=c[v>>2]|0;if((C|0)==0){C=(c[f>>2]|0)>>>0<B>>>0?85:0}else{F=(pd[C&63](e,B,0,0)|0)==0;C=F?0:85}if((C|0)!=0){break c}c[u>>2]=B;D=c[f>>2]|0;if((B+3|0)>>>0>=D>>>0){C=85;break b}C=c[v>>2]|0;if((C|0)==0){C=(c[e>>2]|0)+B|0;if((C|0)==0){C=B;B=0}else{E=C;m=33}}else{if((pd[C&63](e,B,n,4)|0)!=4){C=85;break b}D=c[f>>2]|0;B=c[u>>2]|0;E=n;m=33}if((m|0)==33){m=0;C=B;B=(d[E+1|0]|0)<<16|(d[E]|0)<<24|(d[E+2|0]|0)<<8|(d[E+3|0]|0)}E=C+4|0;c[u>>2]=E;if((C+5|0)>>>0>=D>>>0){C=85;break b}D=c[v>>2]|0;do{if((D|0)==0){D=(c[e>>2]|0)+E|0;if((D|0)!=0){m=40;break}c[u>>2]=C+6}else{if((pd[D&63](e,E,p,2)|0)!=2){C=85;break b}E=c[u>>2]|0;D=p;m=40}}while(0);do{if((m|0)==40){m=0;C=((d[D]|0)<<8&65535)>>>8;c[u>>2]=E+2;if((C|0)==0){break}B=(B|0)>2?B+ -2|0:0;if((C|0)==(A|0)){z=B+z|0;D=x}else{E=y+3|0;if((E|0)>(g|0)){C=0;break c}F=z&255;a[s+y|0]=F;A=z>>>8&255;a[s+(y+1)|0]=A;D=z>>>16&255;a[s+(y+2)|0]=D;z=z>>>24&255;a[s+E|0]=z;if((C|0)==5){e=z;m=56;break c}y=x+4|0;if((y|0)>(t|0)){C=0;break c}a[s+x|0]=-128;D=x+2|0;a[s+(x+1)|0]=C;a[s+D|0]=0;a[s+(x+3)|0]=0;a[s+y|0]=0;a[s+(x+5)|0]=0;z=B;y=D;D=x+6|0;A=C}if((D|0)>(t|0)){C=1;break c}x=D+B|0;if((x|0)>(t|0)){C=1;break c}D=s+D|0;C=c[u>>2]|0;E=c[f>>2]|0;if(E>>>0<=C>>>0){C=85;break c}F=c[v>>2]|0;if((F|0)==0){E=E-C|0;F=E>>>0>B>>>0?B:E;$W(D|0,(c[e>>2]|0)+C|0,F|0)|0;D=F}else{D=pd[F&63](e,C,D,B)|0}c[u>>2]=D+C;if(D>>>0<B>>>0){C=85;break c}}}while(0);w=w+1|0;}while((w|0)<(r|0));F=z&255;D=z>>>16&255;e=z>>>24&255;A=z>>>8&255;m=56}else{F=0;D=0;e=0;A=0;y=2;x=6;m=56}}while(0);do{if((m|0)==56){if((x|0)>(t|0)){C=0;break}a[s+x|0]=-128;a[s+(x+1)|0]=3;m=y+3|0;if((m|0)>(g|0)){C=0;break}a[s+y|0]=F;a[s+(y+1)|0]=A;a[s+(y+2)|0]=D;a[s+m|0]=e;C=qL(b,s,x+2|0,0,206504,h)|0;break b}}while(0);if((s|0)==0){break}hd[c[q+8>>2]&127](q,s)}else{C=1}}while(0);if((o|0)!=0){hd[c[j+8>>2]&127](j,o)}c[l>>2]=0;if((C|0)!=0){F=C;i=k;return F|0}c[c[h>>2]>>2]=1;F=0;i=k;return F|0}function qL(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;m=i;i=i+32|0;l=m;j=c[a>>2]|0;k=(b|0)==0;do{if((a|0)==0){if(k){j=33}else{g=33;break}i=h;return j|0}else{if(k){n=6;i=h;return n|0}k=Bd[c[j+4>>2]&255](j,40)|0;if((k|0)==0){g=64;break}bXbX+140>>2]=0;c[e+132>>2]=0;j=a+32|0;lJ(f,c[j>>2]|0);c[j>>2]=0;i=b;return}function lM(b){b=b|0;var d=0,e=0;d=i;e=c[c[b+156>>2]>>2]|0;bX(b+160|0,0,36)|0;c[b+188>>2]=e;a[b+192|0]=0;kJ(e);i=d;return 0}function mM(a){a=a|0;var b=0,d=0,e=0;b=i;d=c[c[a+188>>2]>>2]|0;e=a+168|0;lJ(d,c[e>>2]|0);c[e>>2]=0;c[a+172>>2]=0;c[a+164>>2]=0;lJ(d,c[a+184>>2]|0);bX(1){HM(a,k);if((c[m>>2]|0)==0){break a}n=n+12|0;if((c[a>>2]|0)>>>0>=(c[f>>2]|0)>>>0){break a}}}else{n=b}do{HM(a,k);if((c[m>>2]|0)==0){break a}if(n>>>0<d>>>0){$W(n|0,l|0,12)|0}n=n+12|0;}while((c[a>>2]|0)>>>0<(c[f>>2]|0)>>>0)}else{n=b}}while(0);c[e>>2]=(n-b|0)/12|0;c[a>>2]=g;c[f>>2]=h;i=j;return}function JM(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;j=i;t=i;i=i+8|0;l=t;w=i;i=i+16|0;u=w;r=i;i=i+8|0;o=r;q=i;i=i+8|0;p=q;v=i;i=i+16|0;n=i;i=i+16|0;m=n;HM(e,u);s=c[u+8>>2]|0;a:do{if((s|0)!=0){F=c[w>>2]|0;c[r>>2]=F;w=c[u+4>>2]|0;u=f+8|0;if((c[u>>2]|0)==7){G=c[e>>2]|0;I=e+8|0;H=c[I>>2]|0;c[e>>2]=F+1;c[I>>2]=w+ -1;HM(e,v);c[e>>2]=G;c[I>>2]=H;if((c[v+8>>2]|0)==3){k=5}else{h=1;A=0}}else{if((s|0)==3){k=5}else{h=1;A=0}}if((k|0)==5){if((h|0)==0){break}F=F+1|0;c[r>>2]=F;A=1;w=w+ -1|0}v=f+16|0;f=f+20|0;z=e+16|0;y=m+4|0;e=m+8|0;x=m+12|0;b:while(1){C=c[g+(A<<2)>>2]|0;D=c[v>>2]|0;B=C+D|0;c:do{if(F>>>0<w>>>0){while(1){d:do{switch(a[F]|0){case 37:{E=37;while(1){if(E<<24>>24==10|E<<24>>24==13){break d}F=F+1|0;if(F>>>0>=w>>>0){break d}E=a[F]|0}break};case 0:case 12:case 9:case 10:case 13:case 32:{break};default:{break c}}}while(0);F=F+1|0;if(F>>>0>=w>>>0){break c}}}}while(0);c[r>>2]=F;e:do{switch(c[u>>2]|0){case 4:{C=mN(o,w,3)|0;k=31;break};case 3:{C=mN(o,w,0)|0;k=31;break};case 7:{c[t>>2]=F;f:do{if(F>>>0<w>>>0){E=a[F]|0;if(E<<24>>24==91){E=93;k=48}else{if(E<<24>>24==123){E=125;k=48}else{H=F;F=0;E=0}}if((k|0)==48){k=0;H=F+1|0;c[t>>2]=H;F=1}G=0;while(1){if(H>>>0<w>>>0){I=H}else{break}g:while(1){h:do{switch(a[I]|0){case 37:{H=37;while(1){if(H<<24>>24==10|H<<24>>24==13){break h}I=I+1|0;if(I>>>0>=w>>>0){break h}H=a[I]|0}break};case 0:case 12:case 9:case 10:case 13:case 32:{break};default:{H=I;break g}}}while(0);H=I+1|0;if(H>>>0<w>>>0){I=H}else{break}}c[t>>2]=H;if(H>>>0>=w>>>0){break}if((a[H]|0)==E<<24>>24){k=58;break}if((G|0)>=4){F=H;k=63;break f}c[m+(G<<2)>>2]=mN(l,w,0)|0;I=c[t>>2]|0;if((H|0)==(I|0)){k=61;break b}G=G+1|0;if(F){H=I;F=1}else{H=I;break}}if((k|0)==58){k=0;H=H+1|0;c[t>>2]=H}c[r>>2]=H;if((G|0)<0){break b}}else{k=63}}while(0);if((k|0)==63){k=0;c[r>>2]=F}c[B>>2]=ZI(c[n>>2]|0)|0;c[C+(D+4)>>2]=ZI(c[y>>2]|0)|0;c[C+(D+8)>>2]=ZI(c[e>>2]|0)|0;c[C+(D+12)>>2]=ZI(c[x>>2]|0)|0;break};case 6:case 5:{E=c[z>>2]|0;D=w-F|0;if(F>>>0>=w>>>0){break e}if((s|0)==2){C=F+1|0;c[r>>2]=C;D=D+ -2|0}else if((s|0)==4){C=F+1|0;c[r>>2]=C;D=D+ -1|0}else{k=40;break b}F=c[B>>2]|0;if((F|0)!=0){lJ(E,F);c[B>>2]=0}F=jJ(E,D+1|0,p)|0;E=c[q>>2]|0;if((E|0)!=0){k=70;break b}$W(F|0,C|0,D|0)|0;a[F+D|0]=0;c[B>>2]=F;break};case 1:{C=F+3|0;do{if(C>>>0<w>>>0){if((a[F]|0)!=116){k=21;break}if((a[F+1|0]|0)!=114){k=21;break}if((a[F+2|0]|0)!=117){k=21;break}if((a[C]|0)!=101){k=21;break}F=F+5|0;C=1}else{k=21}}while(0);do{if((k|0)==21){k=F+4|0;if(k>>>0>=w>>>0){C=0;break}if((a[F]|0)!=102){C=0;break}if((a[F+1|0]|0)!=97){C=0;break}if((a[F+2|0]|0)!=108){C=0;break}if((a[C]|0)!=115){C=0;break}F=(a[k]|0)==101?F+6|0:F;C=0}}while(0);c[r>>2]=F;k=31;break};case 2:{C=nN(o,w)|0;k=31;break};default:{break a}}}while(0);do{if((k|0)==31){k=0;D=d[f]|0;if((D|0)==2){b[B>>1]=C;break}else if((D|0)==1){a[B]=C;break}else if((D|0)==4){c[B>>2]=C;break}else{c[B>>2]=C;break}}}while(0);h=h+ -1|0;if((h|0)==0){k=69;break}F=c[r>>2]|0;A=A+1|0}if((k|0)==40){c[q>>2]=3;I=3;i=j;return I|0}else if((k|0)==61){c[r>>2]=H}else if((k|0)==69){c[q>>2]=0;I=0;i=j;return I|0}else if((k|0)==70){i=j;return E|0}c[q>>2]=3;I=3;i=j;return I|0}}while(0);c[q>>2]=3;I=3;i=j;return I|0}function KM(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;t=i;i=i+16|0;s=t;q=i;i=i+16|0;p=q;n=i;i=i+384|0;k=i;i=i+40|0;h=k;$W(k|0,e|0,36)|0;k=h+8|0;c[k>>2]=2;o=e+8|0;r=c[o>>2]|0;if((r|0)==7|(r|0)==9){c[k>>2]=3}HM(b,s);if((c[s+8>>2]|0)!=3){t=162;i=j;return t|0}m=c[b>>2]|0;k=b+8|0;l=c[k>>2]|0;r=n+384|0;u=(c[t>>2]|0)+1|0;c[b>>2]=u;t=(c[s+4>>2]|0)+ -1|0;c[k>>2]=t;a:do{if(u>>>0<t>>>0){s=p+8|0;t=n;do{HM(b,p);if((c[s>>2]|0)==0){break a}if(t>>>0<r>>>0){$W(t|0,q|0,12)|0}t=t+12|0;}while((c[b>>2]|0)>>>0<(c[k>>2]|0)>>>0)}else{t=n}}while(0);u=t-n|0;q=(u|0)/12|0;c[b>>2]=m;c[k>>2]=l;if((u|0)<0){u=162;i=j;return u|0}p=c[e+24>>2]|0;p=q>>>0>p>>>0?p:q;do{if((c[o>>2]|0)!=7){e=c[e+28>>2]|0;if((e|0)==0){break}a[(c[f>>2]|0)+e|0]=p}}while(0);if((p|0)>0){o=h+20|0;e=h+16|0;while(1){c[b>>2]=c[n>>2];c[k>>2]=c[n+4>>2];JM(b,h,f,g,0)|0;c[e>>2]=(c[e>>2]|0)+(d[o]|0);p=p+ -1|0;if((p|0)>0){n=n+12|0}else{break}}}c[b>>2]=m;c[k>>2]=l;u=0;i=j;return u|0}function LM(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;h=i;c[b+64>>2]=0;a[b+68|0]=1;c[b+4>>2]=d;c[b+8>>2]=f;c[b>>2]=c[d+100>>2];do{if((f|0)!=0){f=f+156|0;d=c[c[f>>2]>>2]|0;c[b+12>>2]=d;c[b+16>>2]=d+20;c[b+20>>2]=d+56;kJ(d);c[b+76>>2]=c[e+40>>2];e=b+72|0;c[e>>2]=0;if(g<<24>>24==0){break}c[e>>2]=c[(c[f>>2]|0)+36>>2]}}while(0);bX(b+24|0,0,24)|0;$W(b+80|0,207832,32)|0;i=h;return}function MM(a){a=a|0;var b=0,d=0;b=i;d=c[a+8>>2]|0;if((d|0)==0){i=b;return}$W(d+108|0,c[a+16>>2]|0,20)|0;i=b;return}function NM(a,d){a=a|0;d=d|0;var e=0;e=i;if((d|0)==0){a=0;i=e;return a|0}a=c[a+12>>2]|0;if(((b[a+22>>1]|0)+d+(b[a+58>>1]|0)|0)>>>0<=(c[a+4>>2]|0)>>>0){a=0;i=e;return a|0}a=pJ(a,d,0)|0;i=e;return a|0}function OM(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;j=c[d+20>>2]|0;if((a[d+68|0]|0)==0){d=j+2|0;j=d;j=b[j>>1]|0;j=j+1<<16>>16;b[d>>1]=j;i=h;return}else{l=c[j+4>>2]|0;d=j+2|0;k=b[d>>1]|0;j=(c[j+8>>2]|0)+k|0;c[l+(k<<3)>>2]=(ZI(e)|0)>>16;c[l+(k<<3)+4>>2]=(ZI(f)|0)>>16;a[j]=g<<24>>24!=0?1:2;l=d;k=l;k=b[k>>1]|0;k=k+1<<16>>16;b[l>>1]=k;i=h;return}}function PM(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;h=c[d+12>>2]|0;do{if(((b[h+22>>1]|0)+1+(b[h+58>>1]|0)|0)>>>0>(c[h+4>>2]|0)>>>0){h=pJ(h,1,0)|0;if((h|0)==0){break}i=g;return h|0}}while(0);h=c[d+20>>2]|0;if((a[d+68|0]|0)==0){d=h+2|0}else{k=c[h+4>>2]|0;d=h+2|0;j=b[d>>1]|0;h=(c[h+8>>2]|0)+j|0;c[k+(j<<3)>>2]=(ZI(e)|0)>>16;c[k+(j<<3)+4>>2]=(ZI(f)|0)>>16;a[h]=1}b[d>>1]=(b[d>>1]|0)+1<<16>>16;k=0;i=g;return k|0}function QM(d){d=d|0;var e=0,f=0;e=i;f=c[d+20>>2]|0;if((f|0)==0){d=3;i=e;return d|0}if((a[d+68|0]|0)==0){b[f>>1]=(b[f>>1]|0)+1<<16>>16;d=0;i=e;return d|0}d=c[d+12>>2]|0;do{if(((b[d+20>>1]|0)+1+(b[d+56>>1]|0)|0)>>>0>(c[d+8>>2]|0)>>>0){d=pJ(d,0,1)|0;if((d|0)==0){break}i=e;return d|0}}while(0);d=b[f>>1]|0;if(d<<16>>16>0){b[(c[f+12>>2]|0)+((d<<16>>16)+ -1<<1)>>1]=(b[f+2>>1]|0)+ -1<<16>>16;d=b[f>>1]|0}b[f>>1]=d+1<<16>>16;d=0;i=e;return d|0}function RM(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=d+64|0;if((c[h>>2]|0)==3){l=0;i=g;return l|0}c[h>>2]=3;j=d+20|0;k=c[j>>2]|0;if((k|0)==0){l=3;i=g;return l|0}h=d+68|0;if((a[h]|0)==0){b[k>>1]=(b[k>>1]|0)+1<<16>>16;d=d+12|0}else{d=d+12|0;l=c[d>>2]|0;do{if(((b[l+20>>1]|0)+1+(b[l+56>>1]|0)|0)>>>0>(c[l+8>>2]|0)>>>0){l=pJ(l,0,1)|0;if((l|0)==0){break}i=g;return l|0}}while(0);l=b[k>>1]|0;if(l<<16>>16>0){b[(c[k+12>>2]|0)+((l<<16>>16)+ -1<<1)>>1]=(b[k+2>>1]|0)+ -1<<16>>16;l=b[k>>1]|0}b[k>>1]=l+1<<16>>16}k=c[d>>2]|0;do{if(((b[k+22>>1]|0)+1+(b[k+58>>1]|0)|0)>>>0>(c[k+4>>2]|0)>>>0){l=pJ(k,1,0)|0;if((l|0)==0){break}i=g;return l|0}}while(0);j=c[j>>2]|0;if((a[h]|0)==0){e=j+2|0}else{h=c[j+4>>2]|0;l=j+2|0;k=b[l>>1]|0;d=(c[j+8>>2]|0)+k|0;c[h+(k<<3)>>2]=(ZI(e)|0)>>16;c[h+(k<<3)+4>>2]=(ZI(f)|0)>>16;a[d]=1;e=l}b[e>>1]=(b[e>>1]|0)+1<<16>>16;l=0;i=g;return l|0}function SM(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=c[d+20>>2]|0;if((f|0)==0){i=e;return}g=b[f>>1]|0;if(g<<16>>16<2){h=0}else{h=(b[(c[f+12>>2]|0)+((g<<16>>16)+ -2<<1)>>1]|0)+1|0}d=f+2|0;j=b[d>>1]|0;do{if(j<<16>>16>1){l=c[f+4>>2]|0;k=(j<<16>>16)+ -1|0;if((c[l+(h<<3)>>2]|0)!=(c[l+(k<<3)>>2]|0)){break}if((c[l+(h<<3)+4>>2]|0)!=(c[l+(k<<3)+4>>2]|0)){break}if((a[(c[f+8>>2]|0)+k|0]|0)!=1){break}j=j+ -1<<16>>16;b[d>>1]=j}}while(0);if(g<<16>>16<=0){i=e;return}k=(j<<16>>16)+ -1|0;if((h|0)==(k|0)){b[f>>1]=g+ -1<<16>>16;b[d>>1]=j+ -1<<16>>16;i=e;return}else{b[(c[f+12>>2]|0)+((g<<16>>16)+ -1<<1)>>1]=k;i=e;return}}function TM(b,d,e,f,g,h,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0;m=i;bX(b|0,0,1500)|0;n=oK(c[d+96>>2]|0,209568)|0;if((n|0)==0){n=7;i=m;return n|0}c[b+1348>>2]=n;c[b+64>>2]=0;a[b+68|0]=1;c[b+4>>2]=d;c[b+8>>2]=f;c[b>>2]=c[d+100>>2];do{if((f|0)!=0){f=f+156|0;n=c[c[f>>2]>>2]|0;c[b+12>>2]=n;c[b+16>>2]=n+20;c[b+20>>2]=n+56;kJ(n);c[b+76>>2]=c[e+40>>2];e=b+72|0;c[e>>2]=0;if(j<<24>>24==0){break}c[e>>2]=c[(c[f>>2]|0)+36>>2]}}while(0);bX(b+24|0,0,24)|0;$W(b+80|0,207832,32)|0;c[b+1352>>2]=c[d+16>>2];c[b+1356>>2]=g;c[b+1468>>2]=k;c[b+1464>>2]=h;c[b+1472>>2]=l;$W(b+1476|0,207864,12)|0;n=0;i=m;return n|0}function UM(a){a=a|0;var b=0,d=0;b=i;d=c[a+8>>2]|0;if((d|0)==0){i=b;return}$W(d+108|0,c[a+16>>2]|0,20)|0;i=b;return}function VM(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,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;j=i;l=i;i=i+8|0;p=i;i=i+8|0;k=i;i=i+8|0;c[l>>2]=f;c[p>>2]=g;m=p^l^k;m=(m>>>10^m^m>>20)&65535;c[k>>2]=(m|0)==0?29572:m;c[f+1136>>2]=f+112;D=f+1140|0;c[f+1344>>2]=D;n=f+64|0;c[n>>2]=0;m=c[f+72>>2]|0;q=c[f+1492>>2]|0;if((q|0)!=0){bXbX(a+16|0,0,16)|0;i=b;return}function $M(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,j=0;f=i;if(d>>>0>=256){j=0;i=f;return j|0}g=jd[c[b+20>>2]&511](e[(c[b+16>>2]|0)+(d<<1)>>1]|0)|0;d=c[b+24>>2]|0;if((d|0)==0){j=0;i=f;return j|0}b=c[b+28>>2]|0;h=0;a:while(1){j=c[b+(h<<2)>>2]|0;do{if((j|0)!=0){if((a[j]|0)!=(a[g]|0)){break}if((Qc(j|0,g|0)|0)==0){d=8;break a}}}while(0);h=h+1|0;if(h>>>0>=d>>>0){h=0;d=8;break}}if((d|0)==8){i=f;return h|0}return 0}function aN(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;m=(c[d>>2]|0)+1|0;if(m>>>0>=256){n=0;p=0;o=d;c[o>>2]=n;i=f;return p|0}h=b+16|0;g=b+20|0;j=b+24|0;b=b+28|0;a:while(1){o=jd[c[g>>2]&511](e[(c[h>>2]|0)+(m<<1)>>1]|0)|0;n=c[j>>2]|0;b:do{if((n|0)!=0){l=c[b>>2]|0;k=0;c:while(1){p=c[l+(k<<2)>>2]|0;do{if((p|0)!=0){if((a[p]|0)!=(a[o]|0)){break}if((Qc(p|0,o|0)|0)==0){break c}}}while(0);k=k+1|0;if(k>>>0>=n>>>0){break b}}if((k|0)!=0){g=11;break a}}}while(0);m=m+1|0;if(m>>>0>=256){m=0;k=0;g=11;break}}if((g|0)==11){p=d;c[p>>2]=m;i=f;return k|0}return 0}function bN(a,b){a=a|0;b=b|0;var d=0;d=c[a>>2]|0;b=c[d+484>>2]|0;c[a+24>>2]=c[d+416>>2];c[a+28>>2]=c[d+420>>2];c[a+20>>2]=c[b+20>>2];c[a+16>>2]=c[b+28>>2];i=i;return 0}function cN(a,b){a=a|0;b=b|0;var d=0;d=c[a>>2]|0;b=d+372|0;d=c[d+376>>2]|0;c[a+16>>2]=d;c[a+20>>2]=(c[b+8>>2]|0)-d;c[a+24>>2]=c[b+12>>2];i=i;return 0}function dN(a){a=a|0;c[a+24>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;i=i;return}function eN(a,b){a=a|0;b=b|0;var d=0,f=0;d=i;f=c[a+16>>2]|0;if(f>>>0>b>>>0){b=0;i=d;return b|0}if(((c[a+20>>2]|0)+f|0)>>>0<=b>>>0){b=0;i=d;return b|0}b=e[(c[a+24>>2]|0)+(b<<1)>>1]|0;i=d;return b|0}function fN(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;g=(c[d>>2]|0)+1|0;f=c[a+16>>2]|0;j=g>>>0<f>>>0?f:g;f=(c[a+20>>2]|0)+f|0;a:do{if(j>>>0<f>>>0){g=c[a+24>>2]|0;while(1){k=b[g+(j<<1)>>1]|0;a=k&65535;h=j+1|0;if(k<<16>>16!=0){break a}if(h>>>0<f>>>0){j=h}else{j=0;break}}}else{j=0;a=0}}while(0);c[d>>2]=j;i=e;return a|0}function gN(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a>>2]|0;b=id[c[(c[b+484>>2]|0)+4>>2]&3](c[b+100>>2]|0,a,c[b+416>>2]|0,192,0,b)|0;i=d;return b|0}function hN(a){a=a|0;var b=0,d=0;b=i;d=a+20|0;lJ(c[(c[a>>2]|0)+100>>2]|0,c[d>>2]|0);c[d>>2]=0;c[a+16>>2]=0;i=b;return}function iN(a,b){a=a|0;b=b|0;var d=0;d=i;a=Bd[c[(c[(c[a>>2]|0)+484>>2]|0)+8>>2]&255](a,b)|0;i=d;return a|0}function jN(a,b){a=a|0;b=b|0;var d=0;d=i;a=Bd[c[(c[(c[a>>2]|0)+484>>2]|0)+12>>2]&255](a,b)|0;i=d;return a|0}function kN(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;k=i;i=i+8|0;m=k;n=i;i=i+8|0;j=n;l=c[b+4>>2]|0;if(f>>>0>5|(f|0)==0){x=0;i=h;return x|0}p=l+12|0;q=l+8|0;o=b+12|0;r=b+16|0;s=0;a:while(1){t=e+(s<<3)|0;u=c[p>>2]|0;v=(u|0)>0;if((c[t>>2]|0)==0){b:do{if(v){g=11}else{x=c[l>>2]|0;v=c[q>>2]|0;if(x>>>0>=v>>>0){g=10;break a}c:while(1){w=x+1|0;c[l>>2]=w;switch(d[x]|0|0){case 26:{g=10;break a};case 10:case 13:{g=8;break a};case 59:{break c};case 9:case 32:{break};default:{g=11;break b}}if(w>>>0<v>>>0){x=w}else{g=10;break a}}c[p>>2]=1}}while(0);if((g|0)==11){g=0;if((u|0)>1){break}w=c[l>>2]|0;v=c[q>>2]|0}u=w+ -1|0;x=w;while(1){if(x>>>0>=v>>>0){w=x;v=3;break}w=x+1|0;c[l>>2]=w;x=a[x]|0;y=x&255;if((y|0)==10|(y|0)==13){v=2;break}if(x<<24>>24==26){v=3;break}else{x=w}}c[p>>2]=v;c[k>>2]=u}else{if(v){break}u=c[l>>2]|0;v=c[q>>2]|0;if(u>>>0>=v>>>0){g=24;break}d:while(1){x=u+1|0;c[l>>2]=x;switch(d[u]|0|0){case 26:{g=24;break a};case 9:case 32:{break};case 59:{g=23;break a};case 10:case 13:{g=22;break a};default:{break d}}if(x>>>0<v>>>0){u=x}else{g=24;break a}}e:while(1){if(x>>>0>=v>>>0){w=x;g=29;break}w=x+1|0;c[l>>2]=w;switch(d[x]|0|0){case 59:{g=28;break e};case 10:case 13:{g=27;break e};case 9:case 32:{break e};case 26:{g=29;break e};default:{x=w}}}if((g|0)==27){g=0;c[p>>2]=2}else if((g|0)==28){g=0;c[p>>2]=1}else if((g|0)==29){g=0;c[p>>2]=3}c[k>>2]=u;if((u|0)==0){g=44;break}}w=w-u|0;v=w+ -1|0;f:do{switch(c[t>>2]|0){case 4:{if((v|0)==4){t=(vc(u|0,208176,4)|0)==0|0}else{t=0}a[e+(s<<3)+4|0]=t;break};case 3:{c[e+(s<<3)+4>>2]=nN(m,u+v|0)|0;break};case 5:{t=c[o>>2]|0;if((t|0)==0){c[e+(s<<3)+4>>2]=0;break f}else{c[e+(s<<3)+4>>2]=sd[t&127](u,v,c[r>>2]|0)|0;break f}break};case 1:case 0:{t=OK(c[b>>2]|0,w,j)|0;w=e+(s<<3)+4|0;c[w>>2]=t;if((c[n>>2]|0)!=0){break f}$W(t|0,u|0,v|0)|0;a[(c[w>>2]|0)+v|0]=0;break};case 2:{c[e+(s<<3)+4>>2]=mN(m,u+v|0,0)|0;break};default:{}}}while(0);s=s+1|0;if(s>>>0>=f>>>0){g=44;break}}if((g|0)==8){c[p>>2]=2}else if((g|0)==10){c[p>>2]=3}else if((g|0)==22){c[p>>2]=2}else if((g|0)==23){c[p>>2]=1}else if((g|0)==24){c[p>>2]=3}else if((g|0)==44){i=h;return s|0}c[k>>2]=0;y=s;i=h;return y|0}function lN(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a>>2]<<16|c[a+4>>2];b=c[b>>2]<<16|c[b+4>>2];if(a>>>0>b>>>0){a=1;i=d;return a|0}a=(a>>>0<b>>>0)<<31>>31;i=d;return a|0}function mN(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;f=i;i=i+8|0;k=f;m=c[b>>2]|0;c[f>>2]=m;if((m|0)==(d|0)){o=0;i=g;return o|0}h=a[m]|0;do{if(h<<24>>24==43|h<<24>>24==45){m=m+1|0;c[f>>2]=m;if((m|0)==(d|0)){o=0;i=g;return o|0}else{j=a[m]|0;h=h<<24>>24==45|0;break}}else{j=h;h=0}}while(0);if(j<<24>>24==46){j=0}else{j=(nN(k,d)|0)<<16;m=c[f>>2]|0}a:do{if(m>>>0<d>>>0){if((a[m]|0)!=46){l=0;n=1;break}m=m+1|0;c[f>>2]=m;if(m>>>0>=d>>>0){l=0;n=1;break}if((j|0)==0){l=0;n=1}else{l=0;n=1;while(1){o=a[m]|0;switch(o<<24>>24){case 0:case 12:case 9:case 10:case 13:case 32:{break a};default:{}}if(o<<24>>24<0){break a}o=o&127;if((o+ -48|0)>>>0>9){break a}if((n|0)<1e7){l=(l*10|0)+(a[208184+o|0]|0)|0;n=n*10|0}m=m+1|0;c[f>>2]=m;if(m>>>0>=d>>>0){break a}}}while(1){o=a[m]|0;switch(o<<24>>24){case 0:case 12:case 9:case 10:case 13:case 32:{break a};default:{}}if(o<<24>>24<0){break a}p=o&127;o=a[208184+p|0]|0;if((p+ -48|0)>>>0>9){break a}do{if((e|0)>0){e=e+ -1|0;l=o+(l*10|0)|0}else{if((n|0)>=1e7){break}l=o+(l*10|0)|0;n=n*10|0}}while(0);m=m+1|0;c[f>>2]=m;if(m>>>0>=d>>>0){break a}}}else{l=0;n=1}}while(0);o=m+1|0;do{if(o>>>0<d>>>0){p=a[m]|0;if(!(p<<24>>24==69|p<<24>>24==101)){break}c[f>>2]=o;e=(nN(k,d)|0)+e|0}}while(0);do{if((e|0)>0){while(1){j=j*10|0;l=l*10|0;e=e+ -1|0;if((e|0)>0){}else{break}}}else{if((e|0)>=0){break}while(1){j=(j|0)/10|0;n=n*10|0;e=e+1|0;if((e|0)<0){}else{break}}}}while(0);if((l|0)!=0){j=(bJ(l,n)|0)+j|0}c[b>>2]=c[f>>2];p=h<<24>>24==0?j:0-j|0;i=g;return p|0}function nN(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;j=c[b>>2]|0;if((j|0)==(d|0)){k=0;i=e;return k|0}f=a[j]|0;if(f<<24>>24==43|f<<24>>24==45){h=j+1|0;if((h|0)==(d|0)){f=0}else{j=h;f=f<<24>>24==45|0;g=4}}else{f=0;g=4}if((g|0)==4){a:do{if(j>>>0<d>>>0){h=0;g=j;while(1){j=a[g]|0;switch(j<<24>>24){case 0:case 12:case 9:case 10:case 13:case 32:{break a};default:{}}if(j<<24>>24<0){break a}j=j&127;if((j+ -48|0)>>>0>=10){break a}h=(a[208184+j|0]|0)+(h*10|0)|0;g=g+1|0;if(g>>>0>=d>>>0){break a}}}else{h=0;g=j}}while(0);c[b>>2]=g;j=g;f=f<<24>>24==0?h:0-h|0}if(j>>>0>=d>>>0){k=f;i=e;return k|0}if((a[j]|0)!=35){k=f;i=e;return k|0}h=j+1|0;c[b>>2]=h;if((h|0)==(d|0)){k=0;i=e;return k|0}if((f+ -2|0)>>>0>34){k=0;i=e;return k|0}g=a[h]|0;do{if(g<<24>>24==43|g<<24>>24==45){h=j+2|0;if((h|0)==(d|0)){b=0}else{g=g<<24>>24==45|0;break}i=e;return b|0}else{g=0}}while(0);b:do{if(h>>>0<d>>>0){j=0;while(1){k=a[h]|0;switch(k<<24>>24){case 0:case 12:case 9:case 10:case 13:case 32:{break b};default:{}}if(k<<24>>24<0){break b}l=a[208184+(k&127)|0]|0;k=l<<24>>24;if(!(l<<24>>24>-1&(k|0)<(f|0))){break b}j=k+(da(j,f)|0)|0;h=h+1|0;if(h>>>0>=d>>>0){break b}}}else{j=0}}while(0);c[b>>2]=h;l=g<<24>>24==0?j:0-j|0;i=e;return l|0}function oN(a,b){a=a|0;b=b|0;i=i;return c[(c[a+420>>2]|0)+(b<<2)>>2]|0}function pN(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if((c|0)==0){i=f;return}g=0;e=e&65535;while(1){j=b+g|0;h=d[j]|0;a[j]=h^e>>>8;g=g+1|0;if(g>>>0<c>>>0){e=((h+e|0)*52845|0)+22719&65535}else{break}}i=f;return}function qN(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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;j=i;o=i;i=i+64|0;p=i;i=i+8|0;n=p;t=i;i=i+8|0;q=t;h=i;i=i+128|0;k=h;r=e+2|0;v=b[r>>1]|0;if(v<<16>>16==0){R=0;i=j;return R|0}if((b[e>>1]|0)==0){R=0;i=j;return R|0}bXbX(e|0,0,88)|0;c[e>>2]=d;c[a+108>>2]=77;c[a+112>>2]=39;c[a+116>>2]=332;d=a+120|0;bX(d|0,0,20)|0;c[a+124>>2]=333;c[a+128>>2]=193;c[a+132>>2]=146;c[a+136>>2]=147;c[a+140>>2]=92;c[a+144>>2]=41;c[d>>2]=e;d=a+148|0;bX(d|0,0,20)|0;c[a+152>>2]=334;c[a+156>>2]=193;c[a+160>>2]=33;c[a+164>>2]=34;c[a+168>>2]=148;c[a+172>>2]=41;c[d>>2]=e;i=b;return 0}function tN(a){a=a|0;var b=0,d=0,e=0;b=i;c[a+120>>2]=0;c[a+148>>2]=0;d=a+20|0;e=c[d>>2]|0;uN(a+36|0,e);uN(a+72|0,e);c[a+24>>2]=0;c[d>>2]=0;i=b;return}function uN(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;f=a+28|0;h=c[f>>2]|0;e=a+32|0;if((h|0)!=0){g=c[e>>2]|0;while(1){lJ(b,c[g+8>>2]|0);bX(g|0,0,16)|0;h=h+ -1|0;if((h|0)==0){break}else{g=g+16|0}}}lJ(b,c[e>>2]|0);c[e>>2]=0;c[a+24>>2]=0;c[f>>2]=0;f=a+16|0;h=c[f>>2]|0;e=a+20|0;if((h|0)!=0){g=c[e>>2]|0;while(1){lJ(b,c[g+8>>2]|0);bXbX(o|0,0,40)|0;j=b+16|0;c[j>>2]=0;b=b+20|0;c[b>>2]=0;s=oJ(a,8,0,d+10|0,0,l)|0;c[b>>2]=s;r=c[k>>2]|0;if((r|0)!=0){w=r;i=h;return w|0}do{if((d|0)!=0){if((f|0)==0){f=0;do{r=Bd[e&255](g,f)|0;do{if((r|0)!=0){t=0;while(1){u=t+1|0;if((Qc(215960+(c[216048+(t<<2)>>2]|0)|0,r|0)|0)==0){q=7;break}if(u>>>0<10){t=u}else{break}}do{if((q|0)==7){q=0;u=n+(t<<2)|0;if((c[u>>2]|0)!=0){break}c[u>>2]=1;c[m+(t<<2)>>2]=f}}while(0);r=TN(r)|0;if((r&2147483647|0)==0){break}else{t=0}while(1){u=t+1|0;if((c[215920+(t<<2)>>2]|0)==(r|0)){q=12;break}if(u>>>0<10){t=u}else{break}}if((q|0)==12){q=0;c[n+(t<<2)>>2]=2}c[s>>2]=r;c[s+4>>2]=f;s=s+8|0}}while(0);f=f+1|0;}while(f>>>0<d>>>0)}else{r=0;do{t=Bd[e&255](g,r)|0;if((t|0)!=0){u=0;while(1){v=u+1|0;if((Qc(215960+(c[216048+(u<<2)>>2]|0)|0,t|0)|0)==0){q=19;break}if(v>>>0<10){u=v}else{break}}do{if((q|0)==19){q=0;v=n+(u<<2)|0;if((c[v>>2]|0)!=0){break}c[v>>2]=1;c[m+(u<<2)>>2]=r}}while(0);w=TN(t)|0;if((w&2147483647|0)!=0){v=0;while(1){u=v+1|0;if((c[215920+(v<<2)>>2]|0)==(w|0)){q=24;break}if(u>>>0<10){v=u}else{break}}if((q|0)==24){q=0;c[n+(v<<2)>>2]=2}c[s>>2]=w;c[s+4>>2]=r;s=s+8|0}hd[f&127](g,t)}r=r+1|0;}while(r>>>0<d>>>0)}if((c[o>>2]|0)!=1){break}c[s>>2]=916;c[s+4>>2]=c[p>>2];s=s+8|0}}while(0);if((c[n+4>>2]|0)==1){c[s>>2]=937;c[s+4>>2]=c[m+4>>2];s=s+8|0}if((c[n+8>>2]|0)==1){c[s>>2]=8725;c[s+4>>2]=c[m+8>>2];s=s+8|0}if((c[n+12>>2]|0)==1){c[s>>2]=173;c[s+4>>2]=c[m+12>>2];s=s+8|0}if((c[n+16>>2]|0)==1){c[s>>2]=713;c[s+4>>2]=c[m+16>>2];s=s+8|0}if((c[n+20>>2]|0)==1){c[s>>2]=956;c[s+4>>2]=c[m+20>>2];s=s+8|0}if((c[n+24>>2]|0)==1){c[s>>2]=8729;c[s+4>>2]=c[m+24>>2];s=s+8|0}if((c[n+28>>2]|0)==1){c[s>>2]=160;c[s+4>>2]=c[m+28>>2];s=s+8|0}if((c[n+32>>2]|0)==1){c[s>>2]=538;c[s+4>>2]=c[m+32>>2];s=s+8|0}if((c[n+36>>2]|0)==1){c[s>>2]=539;c[s+4>>2]=c[m+36>>2];s=s+8|0}n=c[b>>2]|0;m=s-n>>3;do{if((m|0)==0){lJ(a,n);c[b>>2]=0;a=c[k>>2]|0;if((a|0)!=0){break}c[k>>2]=163;a=163}else{if(m>>>0<d>>>1>>>0){n=oJ(a,8,d,m,n,l)|0;c[b>>2]=n;c[k>>2]=0}pb(n|0,m|0,8,194);a=c[k>>2]|0}}while(0);c[j>>2]=m;w=a;i=h;return w|0}function VN(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=c[a+20>>2]|0;a=(c[a+16>>2]|0)+ -1|0;if((a|0)<0){j=0;i=d;return j|0}a=e+(a<<3)|0;f=0;a:while(1){j=f;while(1){g=a-e>>4;f=e+(g<<3)|0;h=c[f>>2]|0;if((h|0)==(b|0)){break a}h=h&2147483647;f=(h|0)==(b|0)?f:j;if((e|0)==(a|0)){break a}if(h>>>0>=b>>>0){break}e=e+(g+1<<3)|0;if(e>>>0>a>>>0){break a}else{j=f}}a=g+ -1|0;if((a|0)<0){break}else{a=e+(a<<3)|0}}if((f|0)==0){j=0;i=d;return j|0}j=c[f+4>>2]|0;i=d;return j|0}function WN(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=(c[b>>2]|0)+1|0;e=c[a+16>>2]|0;do{if((e|0)==0){l=0;k=9}else{f=c[a+20>>2]|0;k=e;l=0;j=0;while(1){h=((k-l|0)>>>1)+l|0;m=c[f+(h<<3)>>2]|0;if((m|0)==(g|0)){k=4;break}m=m&2147483647;if((m|0)==(g|0)){j=c[f+(h<<3)+4>>2]|0}m=m>>>0<g>>>0;l=m?h+1|0:l;k=m?k:h;if(l>>>0>=k>>>0){k=8;break}}if((k|0)==4){j=c[f+(h<<3)+4>>2]|0;break}else if((k|0)==8){if((j|0)==0){k=9;break}else{break}}}}while(0);do{if((k|0)==9){if(l>>>0>=e>>>0){g=0;j=0;break}j=c[a+20>>2]|0;g=c[j+(l<<3)>>2]&2147483647;j=c[j+(l<<3)+4>>2]|0}}while(0);c[b>>2]=g;i=d;return j|0}function XN(a){a=a|0;i=i;return 210920+(b[215400+((a>>>0>257?0:a)<<1)>>1]|0)|0}function YN(a){a=a|0;var c=0;c=i;if(a>>>0>390){a=0;i=c;return a|0}a=210920+(b[214616+(a<<1)>>1]|0)|0;i=c;return a|0}function ZN(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;a=c[a>>2]|0;e=a&2147483647;b=c[b>>2]|0;f=b&2147483647;do{if((e|0)==(f|0)){if(a>>>0>b>>>0){a=1;break}a=(a>>>0<b>>>0)<<31>>31}else{if(e>>>0>f>>>0){a=1;break}a=(e>>>0<f>>>0)<<31>>31}}while(0);i=d;return a|0}function _N(b,c){b=b|0;c=c|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;if(!((b|0)!=0&b>>>0<c>>>0)){q=0;i=g;return q|0}h=b+1|0;l=a[b]|0;o=52;p=0;while(1){n=o+p>>1;b=n<<1;b=216088+(d[b+216090|0]<<8|d[b+216091|0])|0;m=a[b]|0;q=m&127;if((q|0)==(l|0)){break}q=(q|0)<(l|0);p=q?n+1|0:p;o=q?o:n;if((p|0)>=(o|0)){j=0;k=16;break}}if((k|0)==16){i=g;return j|0}a:do{if(h>>>0<c>>>0){k=b;b:while(1){b=h+1|0;h=a[h]|0;j=k+1|0;o=a[j]|0;l=o&255;n=l&127;c:do{if(m<<24>>24<0){if((h|0)==(n|0)){m=o}else{j=0;k=16;break b}}else{if((n|0)==0){j=0;k=16;break b}k=((l&128|0)==0?j:k+3|0)+1|0;while(1){j=216088+(d[k]<<8|d[k+1|0])|0;m=a[j]|0;if((h|0)==(m&127|0)){break c}n=n+ -1|0;if((n|0)>0){k=k+2|0}else{j=0;k=16;break b}}}}while(0);if(b>>>0<c>>>0){k=j;h=b}else{e=m;f=j;break a}}if((k|0)==16){i=g;return j|0}}else{e=m;f=b}}while(0);if(e<<24>>24<=-1){q=0;i=g;return q|0}if((a[f+1|0]|0)>=0){q=0;i=g;return q|0}q=d[f+2|0]<<8|d[f+3|0];i=g;return q|0}function $N(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;g=i;i=i+8|0;c[b>>2]=0;f=jJ(a,24,g)|0;e=c[g>>2]|0;if((e|0)!=0){b=e;i=d;return b|0}c[f+8>>2]=a;c[b>>2]=f;b=c[g>>2]|0;i=d;return b|0}function aO(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((a|0)==0){i=e;return}if((b|0)!=0&(d|0)>3075){c[a>>2]=b+1032;c[a+4>>2]=d+ -1032;c[a+12>>2]=b;i=e;return}else{c[a>>2]=0;c[a+4>>2]=0;c[a+12>>2]=0;i=e;return}}function bO(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function cO(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;k=c[e+4>>2]|0;j=c[e>>2]|0;if((d|0)==0){p=96;i=f;return p|0}if((c[d>>2]|0)==0){p=96;i=f;return p|0}h=d+4|0;if((c[h>>2]|0)==0){p=96;i=f;return p|0}if((k|0)==0){p=20;i=f;return p|0}g=b[k+2>>1]|0;if(g<<16>>16==0){p=0;i=f;return p|0}m=b[k>>1]|0;if(m<<16>>16<1){p=0;i=f;return p|0}l=c[k+12>>2]|0;if((l|0)==0){p=20;i=f;return p|0}if((c[k+4>>2]|0)==0){p=20;i=f;return p|0}if((g<<16>>16|0)!=((b[l+((m<<16>>16)+ -1<<1)>>1]|0)+1|0)){p=20;i=f;return p|0}g=c[d+12>>2]|0;e=e+8|0;if((c[e>>2]&2|0)!=0){p=19;i=f;return p|0}if((j|0)==0){p=20;i=f;return p|0}if((c[j+4>>2]|0)==0){p=0;i=f;return p|0}if((c[j>>2]|0)==0){p=0;i=f;return p|0}if((c[j+12>>2]|0)==0){p=20;i=f;return p|0}$W(g+128|0,k|0,20)|0;$W(g+104|0,j|0,24)|0;p=c[d>>2]|0;c[g+28>>2]=p;c[g+32>>2]=p+((c[h>>2]|0)>>>2<<2);if((c[e>>2]&1|0)!=0){p=19;i=f;return p|0}h=c[g+144>>2]|0;if((h&256|0)==0){c[g>>2]=6;c[g+16>>2]=32;c[g+20>>2]=2;d=6}else{c[g>>2]=12;c[g+16>>2]=256;c[g+20>>2]=50;d=12}p=1<<d;c[g+4>>2]=p;c[g+8>>2]=(p|0)/2|0;p=d+ -6|0;c[g+12>>2]=p;c[g+24>>2]=p;do{if((h&8|0)==0){d=g+180|0;j=(h&16|0)==0?0:4;a[d]=j;if((h&32|0)!=0){break}a[d]=j|1}else{a[g+180|0]=2}}while(0);d=g+181|0;a[d]=h>>>9&1^1;o=g+164|0;c[o>>2]=149;p=g+168|0;c[p>>2]=4;m=g+172|0;c[m>>2]=5;l=g+176|0;c[l>>2]=335;h=g+1024|0;c[h>>2]=0;j=g+960|0;b[j>>1]=0;e=g+962|0;b[e>>1]=(c[g+104>>2]|0)+65535;n=g+108|0;b[g+56>>1]=c[n>>2];c[g+60>>2]=c[g+116>>2];k=nO(g,0)|0;if((k|0)!=0){p=k;i=f;return p|0}do{if((a[d]|0)!=0){if((a[g+180|0]|0)==2){break}c[o>>2]=150;c[p>>2]=6;c[m>>2]=7;c[l>>2]=336;c[h>>2]=0;b[j>>1]=0;b[e>>1]=(c[n>>2]|0)+65535;g=nO(g,1)|0;if((g|0)==0){break}i=f;return g|0}}while(0);p=0;i=f;return p|0}function dO(a){a=a|0;var b=0;b=i;lJ(c[a+8>>2]|0,a);i=b;return}function eO(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;Gd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+8>>2]&255](c[a+60>>2]|0,c[d+172>>2]|0,c[d+176>>2]|0);i=b;return 0}function fO(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=i;n=i;i=i+8|0;o=n;j=i;i=i+16|0;q=j;m=i;i=i+48|0;l=m;k=e+72|0;if((c[k>>2]|0)!=(c[d+24>>2]|0)){c[n>>2]=6;v=6;i=h;return v|0}p=c[d+20>>2]|0;do{if((f|0)==2){if((p|0)==270984){e=19}else{break}i=h;return e|0}else{if((p|0)==270912){e=19}else{break}i=h;return e|0}}while(0);p=e+108|0;if((g|0)!=0){HJ(p,c[g>>2]|0,c[g+4>>2]|0)}zK(p,q);v=c[j>>2]&-64;c[j>>2]=v;g=q+4|0;t=c[g>>2]&-64;c[g>>2]=t;s=q+8|0;u=(c[s>>2]|0)+63&-64;c[s>>2]=u;q=q+12|0;s=(c[q>>2]|0)+63&-64;c[q>>2]=s;v=u-v>>6;t=s-t>>6;s=e+76|0;u=c[d+8>>2]|0;r=e+156|0;if((c[(c[r>>2]|0)+4>>2]&1|0)!=0){w=e+88|0;lJ(u,c[w>>2]|0);c[w>>2]=0;w=(c[r>>2]|0)+4|0;c[w>>2]=c[w>>2]&-2}if((f&2|0)==0){a[e+94|0]=2;b[e+92>>1]=256;f=v+3&-4}else{a[e+94|0]=1;f=(v+15|0)>>>4<<1}c[e+80>>2]=v;c[s>>2]=t;c[e+84>>2]=f;c[e+88>>2]=oJ(u,t,0,f,0,o)|0;o=c[n>>2]|0;if((o|0)!=0){w=o;i=h;return w|0}w=(c[r>>2]|0)+4|0;c[w>>2]=c[w>>2]|1;HJ(p,0-(c[j>>2]|0)|0,0-(c[g>>2]|0)|0);c[m>>2]=s;c[l+4>>2]=p;c[l+8>>2]=(a[e+94|0]|0)==2;c[n>>2]=Bd[c[d+64>>2]&255](c[d+60>>2]|0,l)|0;HJ(p,c[j>>2]|0,c[g>>2]|0);l=c[n>>2]|0;if((l|0)!=0){w=l;i=h;return w|0}c[k>>2]=1651078259;c[e+100>>2]=c[j>>2]>>6;c[e+104>>2]=c[q>>2]>>6;w=0;i=h;return w|0}function gO(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){a=6;i=f;return a|0}if((d|0)!=0){GJ(b+108|0,d)}if((e|0)==0){a=0;i=f;return a|0}HJ(b+108|0,c[e>>2]|0,c[e+4>>2]|0);a=0;i=f;return a|0}function hO(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;bX(d|0,0,16)|0;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){i=e;return}zK(b+108|0,d);i=e;return}function iO(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=sd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+12>>2]&127](c[a+60>>2]|0,b,d)|0;i=e;return a|0}function jO(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0;e=c[a+112>>2]|0;g=0-e|0;b[a+156>>1]=g;f=b[d>>1]|0;d=a+148|0;c[d>>2]=da(f,g)|0;if((e|0)>0){c[d>>2]=da((c[a+104>>2]|0)+~f|0,e)|0}b[a+158>>1]=0;b[a+160>>1]=0;i=i;return}function kO(f,g,h,j,k,l){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0;l=i;p=c[f+4>>2]|0;g=0-p|0;m=c[f>>2]|0;k=(h+ -1+p&g)>>m;if((j-h-p|0)>(c[f+20>>2]|0)){h=(g&j)>>m}else{h=k}if((h|0)<=-1){i=l;return}j=e[f+56>>1]|0;if((k|0)>=(j|0)){i=l;return}k=(k|0)<0?0:k;m=(h|0)<(j|0)?h:j+ -1|0;h=k<<13>>16;j=m<<13>>16;g=255>>>(k&7);k=127>>>(m&7)^255;m=f+158|0;if((b[m>>1]|0)>(h|0)){b[m>>1]=h}m=f+160|0;if((b[m>>1]|0)<(j|0)){b[m>>1]=j}m=c[f+60>>2]|0;n=c[f+148>>2]|0;o=n+h|0;p=m+o|0;f=j-h|0;if((f|0)<=0){a[p]=d[p]|k&g;i=l;return}a[p]=d[p]|g;g=m+(o+1)|0;if((f+ -1|0)>0){bX5)|0]|0)<<8|(d[j+(k+4)|0]|0)<<16|(d[j+(k+6)|0]|0);j=j+(k+9)|0;b:while(1){if(a>>>0>(m+p|0)>>>0){e=q;k=o;while(1){o=k;q=0;while(1){k=o+1|0;c[b+(o<<2)>>2]=q+p;q=q+1|0;if(q>>>0>m>>>0){break}else{o=k}}n=n+1|0;if(n>>>0>g>>>0){o=e;e=p;break b}p=(d[e+1|0]|0)<<8|(d[e]|0)<<16|(d[e+2|0]|0);q=e+4|0;m=d[e+3|0]|0;if(a>>>0>(m+p|0)>>>0){e=q}else{e=p;break}}}else{e=p;k=o}if(a>>>0<e>>>0){c[b+(k<<2)>>2]=a;k=k+1|0}l=l+1|0;if(l>>>0>h>>>0){o=q;break}p=e;o=k;a=(d[j+1|0]|0)<<8|(d[j]|0)<<16|(d[j+2|0]|0);j=j+5|0}do{if(l>>>0>h>>>0){if(n>>>0>g>>>0){break}else{h=k;j=0}while(1){k=h+1|0;c[b+(h<<2)>>2]=j+e;j=j+1|0;if(j>>>0>m>>>0){break}else{h=k}}if(n>>>0>=g>>>0){break}while(1){j=(d[o+1|0]|0)<<8|(d[o]|0)<<16|(d[o+2|0]|0);a=d[o+3|0]|0;h=k;l=0;while(1){c[b+(h<<2)>>2]=l+j;l=l+1|0;if(l>>>0>a>>>0){break}else{h=h+1|0}}k=k+1+a|0;n=n+1|0;if(n>>>0<g>>>0){o=o+4|0}else{break}}}else{c[b+(k<<2)>>2]=a;a=k+1|0;if(l>>>0>=h>>>0){k=a;break}g=k+h+1|0;k=a;a=l;while(1){c[b+(k<<2)>>2]=(d[j+1|0]|0)<<8|(d[j]|0)<<16|(d[j+2|0]|0);a=a+1|0;if(a>>>0<h>>>0){j=j+5|0;k=k+1|0}else{break}}k=g-l|0}}while(0);c[b+(k<<2)>>2]=0;s=b;i=f;return s|0}else if((e|0)==59){i=f;return g|0}return 0}function rP(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;l=(d[a+3|0]|0)<<16|(d[a+2|0]|0)<<24|(d[a+4|0]|0)<<8|(d[a+5|0]|0);g=(d[a+7|0]|0)<<16|(d[a+6|0]|0)<<24|(d[a+8|0]|0)<<8|(d[a+9|0]|0);j=b+4|0;if(l>>>0>((c[j>>2]|0)-a|0)>>>0){wJ(b,8)}if(l>>>0<((g*11|0)+10|0)>>>0){wJ(b,8)}if((g|0)==0){i=e;return 0}f=b+8|0;h=b+172|0;n=1;m=0;o=a+10|0;a:while(1){q=(d[o+1|0]|0)<<8|(d[o]|0)<<16|(d[o+2|0]|0);p=(d[o+4|0]|0)<<16|(d[o+3|0]|0)<<24|(d[o+5|0]|0)<<8|(d[o+6|0]|0);k=o+11|0;o=(d[o+8|0]|0)<<16|(d[o+7|0]|0)<<24|(d[o+9|0]|0)<<8|(d[o+10|0]|0);if(!(p>>>0<l>>>0&o>>>0<l>>>0)){f=7;break}if(q>>>0<n>>>0){f=9;break}n=q+1|0;do{if((p|0)!=0){q=p+4|0;p=(d[a+(p+1)|0]|0)<<16|(d[a+p|0]|0)<<24|(d[a+(p+2)|0]|0)<<8|(d[a+(p+3)|0]|0);if((a+((p<<2)+q)|0)>>>0>(c[j>>2]|0)>>>0){f=12;break a}if((p|0)==0){break}else{q=a+q|0;u=0;t=0}while(1){s=(d[q+1|0]|0)<<8|(d[q]|0)<<16|(d[q+2|0]|0);r=s+(d[q+3|0]|0)|0;if(r>>>0>1114111){f=15;break a}if(s>>>0<t>>>0){f=17;break a}u=u+1|0;if(u>>>0<p>>>0){t=r+1|0;q=q+4|0}else{break}}}}while(0);do{if((o|0)!=0){r=a+(o+4)|0;o=(d[a+(o+1)|0]|0)<<16|(d[a+o|0]|0)<<24|(d[a+(o+2)|0]|0)<<8|(d[a+(o+3)|0]|0);if(o<<2>>>0>((c[j>>2]|0)-r|0)>>>0){f=21;break a}if((o|0)==0){break}else{p=0;s=0}while(1){t=(d[r+1|0]|0)<<8|(d[r]|0)<<16|(d[r+2|0]|0);q=r+5|0;if(t>>>0>1114111){f=24;break a}if(t>>>0<s>>>0){f=26;break a}s=t+1|0;if((c[f>>2]|0)!=0){if((((d[r+3|0]|0)<<8&65535|(d[r+4|0]|0))&65535)>>>0>=(c[h>>2]|0)>>>0){f=29;break a}}p=p+1|0;if(p>>>0<o>>>0){r=q}else{break}}}}while(0);m=m+1|0;if(m>>>0<g>>>0){o=k}else{f=32;break}}if((f|0)==7){wJ(b,8)}else if((f|0)==9){wJ(b,8)}else if((f|0)==12){wJ(b,8)}else if((f|0)==15){wJ(b,8)}else if((f|0)==17){wJ(b,8)}else if((f|0)==21){wJ(b,8)}else if((f|0)==24){wJ(b,8)}else if((f|0)==26){wJ(b,8)}else if((f|0)==29){wJ(b,16)}else if((f|0)==32){i=e;return 0}return 0}function sP(a,b){a=a|0;b=b|0;c[b+4>>2]=14;c[b>>2]=-1;i=i;return 0}function tP(a,b){a=a|0;b=b|0;var c=0;c=i;a=uJ(271760,b)|0;i=c;return a|0}function uP(a,b){a=a|0;b=b|0;var d=0;d=i;a=Bd[c[(c[a+12>>2]|0)+48>>2]&255](a,b)|0;i=d;return a|0}function vP(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;h=i;i=i+8|0;f=h;j=i;i=i+8|0;g=j;k=wP(a,271936,g)|0;if((k|0)!=0){a=k;i=e;return a|0}k=wP(a,271960,f)|0;if((k|0)!=0){a=k;i=e;return a|0}if((c[j>>2]|0)!=1){a=6;i=e;return a|0}if((c[h>>2]|0)!=1){a=6;i=e;return a|0}c[b>>2]=c[f+4>>2];c[d>>2]=c[g+4>>2];a=0;i=e;return a|0}function wP(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;j=i;m=c[e+88>>2]|0;c[g>>2]=0;p=e+812|0;a:do{if((a[p]|0)==0){n=c[e+104>>2]|0;o=e+792|0;bX(o|0,0,24)|0;v=b[e+152>>1]|0;r=c[e+156>>2]|0;q=r+((v&65535)<<4)|0;if(v<<16>>16==0){v=8;i=j;return v|0}while(1){if((c[r>>2]|0)==1111770656){t=c[r+12>>2]|0;if((t|0)!=0){break}}s=r+16|0;if(s>>>0<q>>>0){r=s}else{h=8;l=36;break}}if((l|0)==36){i=j;return h|0}if((r|0)==0){v=8;i=j;return v|0}if((PJ(n,c[r+8>>2]|0)|0)!=0|t>>>0<8){v=8;i=j;return v|0}if((LK(n,t,o)|0)!=0){v=8;i=j;return v|0}r=c[o>>2]|0;c[e+796>>2]=r+t;u=d[r+2|0]<<8&65535|d[r+3|0];q=u&65535;v=d[r+5|0]<<16|d[r+4|0]<<24|d[r+6|0]<<8|d[r+7|0];do{if(!((d[r]<<8&65535|d[r+1|0])<<16>>16!=1|v>>>0<8)){if((v+ -8|0)>>>2>>>0<q>>>0|(v+1|0)>>>0>t>>>0){break}c[e+808>>2]=q;s=r+v|0;c[e+800>>2]=s;c[e+804>>2]=t-v;v=r+((q<<2)+8)|0;if(u<<16>>16!=0){u=q;t=r+8|0;while(1){v=v+(((d[t+2|0]<<8&65535|d[t+3|0])&65535)*10|0)|0;u=u+ -1|0;if((u|0)==0){break}else{t=t+4|0}}}if(v>>>0>s>>>0){break}a[p]=1;break a}}while(0);NK(n,o);bXbXbX(a+266|0,0,26)|0;if((c[g>>2]|0)<=65535){k=0;i=f;return k|0}d=ZK(d,272712,g)|0;if((d|0)!=0){k=d;i=f;return k|0}if((e[k>>1]|0)<64){b[k>>1]=64}if((e[j>>1]|0)>65531){b[j>>1]=-5}if((e[h>>1]|0)<=100){k=0;i=f;return k|0}b[h>>1]=100;k=0;i=f;return k|0}function PP(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=i;h=pd[c[a+508>>2]&63](a,1330851634,d,0)|0;do{if((h|0)==0){g=a+368|0;h=ZK(d,272472,g)|0;if((h|0)!=0){break}bX5;s=s+l|0;u=(d[j+s|0]|0)<<8&65535|(d[j+(s|1)|0]|0);n=u&65535;if(e>>>0<n>>>0){r=m}else{break}}o=m+1|0;if(e>>>0<=q>>>0){p=7;break}}b:do{if((p|0)==7){w=s+k|0;r=((d[j+w|0]|0)<<8&65535|(d[j+(w|1)|0]|0))<<16>>16;w=w+k|0;s=j+w|0;v=(d[s]|0)<<8&65535|(d[j+(w|1)|0]|0);p=v&65535;do{if(m>>>0>=(g+ -1|0)>>>0&u<<16>>16==-1&t<<16>>16==-1){t=c[a>>2]|0;if(v<<16>>16==0){t=r;u=p;break}u=(j+(w+2+p)|0)>>>0>((c[t+500>>2]|0)+(c[t+504>>2]|0)|0)>>>0;t=u?1:r;u=u?0:p}else{t=r;u=p}}while(0);v=(u|0)==65535;do{if((c[a+20>>2]&2|0)==0){if(v){j=0;break b}}else{y=v?o:m;c:do{if((m|0)==0){v=q;w=0;x=n}else{v=q;w=m;x=n;while(1){A=w+ -1|0;z=A<<1;B=z+14|0;z=((d[j+B|0]|0)<<8&65535|(d[j+(z+15)|0]|0))&65535;if(e>>>0>z>>>0){break c}B=B+l|0;x=((d[j+B|0]|0)<<8&65535|(d[j+(B|1)|0]|0))&65535;B=B+k|0;t=((d[j+B|0]|0)<<8&65535|(d[j+(B|1)|0]|0))<<16>>16;B=B+k|0;s=j+B|0;B=(d[s]|0)<<8&65535|(d[j+(B|1)|0]|0);u=B&65535;y=B<<16>>16==-1?y:A;if((A|0)==0){v=z;w=0;break}else{w=A;v=z}}}}while(0);if((y|0)==(o|0)){s=(w|0)==(m|0);q=s?v:q;if(o>>>0<g>>>0){t=s?t:r;r=m;u=s?u:p;n=s?x:n}else{j=0;break b}while(1){x=o<<1;w=x+14|0;v=w+l|0;s=j+v|0;p=((d[s]|0)<<8&65535|(d[j+(v|1)|0]|0))&65535;if(e>>>0<p>>>0){break}q=((d[j+w|0]|0)<<8&65535|(d[j+(x+15)|0]|0))&65535;B=v+k|0;t=((d[j+B|0]|0)<<8&65535|(d[j+(B|1)|0]|0))<<16>>16;B=B+k|0;s=j+B|0;B=(d[s]|0)<<8&65535|(d[j+(B|1)|0]|0);u=B&65535;r=B<<16>>16==-1?r:o;o=o+1|0;if(o>>>0<g>>>0){n=p}else{n=p;break}}w=o+ -1|0;if((r|0)==(m|0)){j=0;m=w;break b}else{m=r}}else{q=v;m=y;n=x}if((m|0)==(w|0)){break}q=m<<1;B=q+14|0;n=B+l|0;t=n+k|0;u=t+k|0;s=j+u|0;t=((d[j+t|0]|0)<<8&65535|(d[j+(t|1)|0]|0))<<16>>16;q=((d[j+B|0]|0)<<8&65535|(d[j+(q+15)|0]|0))&65535;u=((d[s]|0)<<8&65535|(d[j+(u|1)|0]|0))&65535;n=((d[j+n|0]|0)<<8&65535|(d[j+(n|1)|0]|0))&65535}}while(0);if((u|0)==0){j=t+e&65535;break}B=(e-n<<1)+u|0;B=(d[s+B|0]|0)<<8&65535|(d[s+(B+1)|0]|0);j=B&65535;if(B<<16>>16==0){break}j=j+t&65535}}while(0);if(!h){B=j;i=f;return B|0}do{if(e>>>0>q>>>0){m=m+1|0;if((m|0)==(g|0)){b=0}else{break}i=f;return b|0}}while(0);if((EQ(a,m)|0)!=0){if((j|0)==0){B=0;i=f;return B|0}c[b>>2]=e;B=j;i=f;return B|0}g=a+24|0;c[g>>2]=e;if((j|0)==0){c[g>>2]=e;CQ(a);j=c[a+28>>2]|0}else{c[a+28>>2]=j}if((j|0)==0){B=0;i=f;return B|0}c[b>>2]=c[g>>2];B=j;i=f;return B|0}function EQ(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;o=c[a+16>>2]|0;g=c[a+32>>2]|0;if(g>>>0<=b>>>0){s=-1;i=f;return s|0}l=a+44|0;h=g<<1;m=h+2|0;n=a+40|0;k=a+48|0;j=g+ -1|0;a:while(1){s=b<<1;q=s+14|0;s=(d[o+q|0]|0)<<8&65535|(d[o+(s+15)|0]|0);c[l>>2]=s&65535;q=m+q|0;t=(d[o+q|0]|0)<<8&65535|(d[o+(q|1)|0]|0);c[n>>2]=t&65535;q=q+h|0;c[k>>2]=((d[o+q|0]|0)<<8&65535|(d[o+(q|1)|0]|0))<<16>>16;q=q+h|0;r=(d[o+q|0]|0)<<8&65535|(d[o+(q|1)|0]|0);p=r&65535;do{if(b>>>0>=j>>>0&t<<16>>16==-1&s<<16>>16==-1){s=c[a>>2]|0;if(r<<16>>16==0){break}if((o+(q+2+p)|0)>>>0>((c[s+500>>2]|0)+(c[s+504>>2]|0)|0)>>>0){e=6;break a}}}while(0);if((p|0)==0){g=0;break}else if((p|0)!=65535){e=8;break}b=b+1|0;if(b>>>0>=g>>>0){a=-1;e=11;break}}if((e|0)==6){c[k>>2]=1;g=0}else if((e|0)==8){g=o+(p+q)|0}else if((e|0)==11){i=f;return a|0}c[a+52>>2]=g;c[a+36>>2]=b;t=0;i=f;return t|0}function FQ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;g=i;i=i+8|0;c[b>>2]=0;f=jJ(a,20,g)|0;e=c[g>>2]|0;if((e|0)!=0){b=e;i=d;return b|0}c[f+12>>2]=a;c[b>>2]=f;b=c[g>>2]|0;i=d;return b|0}function GQ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((a|0)==0){i=e;return}if((b|0)!=0&(d|0)>3475){c[a+16>>2]=b;c[a>>2]=b+1440;d=d+ -1440|0;c[a+4>>2]=d&-16;c[a+8>>2]=d>>>7;i=e;return}else{c[a>>2]=0;c[a+4>>2]=0;c[a+16>>2]=0;i=e;return}}function HQ(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;e=i;g=i;i=i+320|0;h=g;l=c[d+4>>2]|0;s=c[d>>2]|0;if((a|0)==0){M=6;i=e;return M|0}if((c[a>>2]|0)==0){M=6;i=e;return M|0}k=a+4|0;if((c[k>>2]|0)==0){M=6;i=e;return M|0}if((l|0)==0){M=20;i=e;return M|0}n=b[l+2>>1]|0;if(n<<16>>16==0){M=0;i=e;return M|0}m=b[l>>1]|0;if(m<<16>>16<1){M=0;i=e;return M|0}j=c[l+12>>2]|0;if((j|0)==0){M=20;i=e;return M|0}if((c[l+4>>2]|0)==0){M=20;i=e;return M|0}if((n<<16>>16|0)!=((b[j+((m<<16>>16)+ -1<<1)>>1]|0)+1|0)){M=20;i=e;return M|0}j=c[a+16>>2]|0;t=d+8|0;m=c[t>>2]|0;n=(m&2|0)==0;do{if(n){if((s|0)==0){M=6;i=e;return M|0}if((c[s+4>>2]|0)==0){M=0;i=e;return M|0}if((c[s>>2]|0)==0){M=0;i=e;return M|0}if((c[s+12>>2]|0)==0){g=6}else{break}i=e;return g|0}}while(0);if((m&1|0)==0){M=19;i=e;return M|0}do{if(n){c[j+1024>>2]=0;c[j+1028>>2]=0;c[j+1032>>2]=c[s+4>>2];c[j+1036>>2]=c[s>>2]}else{n=j+1024|0;if((m&4|0)==0){c[n>>2]=-32768;c[j+1028>>2]=-32768;c[j+1032>>2]=32767;c[j+1036>>2]=32767;break}else{$W(n|0,d+32|0,16)|0;break}}}while(0);m=c[a>>2]|0;n=c[k>>2]|0;r=j+1412|0;c[r>>2]=m;o=j+1416|0;c[o>>2]=n;n=j+1420|0;c[n>>2]=m;m=j+44|0;c[m>>2]=0;q=j+48|0;c[q>>2]=0;k=j+52|0;c[k>>2]=0;c[j+32>>2]=0;c[j+36>>2]=0;p=j+40|0;c[p>>2]=1;$W(j+980|0,l|0,20)|0;c[k>>2]=0;c[p>>2]=1;l=j+1248|0;c[l>>2]=c[a+8>>2];a=j+1232|0;c[a>>2]=0;if((c[t>>2]&2|0)==0){$W(j+1e3|0,s|0,24)|0;c[j+1236>>2]=36;c[j+1240>>2]=j}else{c[j+1236>>2]=c[d+12>>2];c[j+1240>>2]=c[d+28>>2]}z=c[j+984>>2]|0;w=b[j+982>>1]|0;v=z+(w<<16>>16<<3)|0;if(w<<16>>16<1){bX(j+8|0,0,16)|0;z=0;t=0;A=0;u=0;y=j+12|0}else{x=c[z>>2]|0;d=j+12|0;c[d>>2]=x;u=j+8|0;c[u>>2]=x;y=c[z+4>>2]|0;t=j+20|0;c[t>>2]=y;s=j+16|0;c[s>>2]=y;if(w<<16>>16>1){w=y;A=x;B=z;z=z+8|0;while(1){C=c[z>>2]|0;B=c[B+12>>2]|0;if((C|0)<(x|0)){c[u>>2]=C;x=C}if((C|0)>(A|0)){c[d>>2]=C;A=C}if((B|0)<(y|0)){c[s>>2]=B;y=B}if((B|0)>(w|0)){c[t>>2]=B;w=B}B=z+8|0;if(B>>>0<v>>>0){M=z;z=B;B=M}else{break}}}else{w=y;A=x}M=x>>6;c[u>>2]=M;z=y>>6;c[s>>2]=z;u=A+63>>6;c[d>>2]=u;A=w+63>>6;c[t>>2]=A;t=A;A=M;y=d}w=c[j+1024>>2]|0;if((u|0)<=(w|0)){M=0;i=e;return M|0}x=c[j+1032>>2]|0;if((A|0)>=(x|0)){M=0;i=e;return M|0}s=j+20|0;B=c[j+1028>>2]|0;if((t|0)<=(B|0)){M=0;i=e;return M|0}d=j+16|0;v=c[j+1036>>2]|0;if((z|0)>=(v|0)){M=0;i=e;return M|0}if((A|0)<(w|0)){c[j+8>>2]=w}else{w=A}if((z|0)<(B|0)){c[d>>2]=B;z=B}if((u|0)>(x|0)){c[y>>2]=x;u=x}if((t|0)>(v|0)){c[s>>2]=v}else{v=t}t=j+24|0;c[t>>2]=u-w;A=v-z|0;z=j+28|0;c[z>>2]=A;A=(A|0)/(c[l>>2]|0)|0;if((A|0)==0){A=1}if((A|0)>38){A=39}E=j+1252|0;c[E>>2]=0;G=c[d>>2]|0;F=c[s>>2]|0;D=0;a:do{if((D|0)<(A|0)){u=h+4|0;y=j+1424|0;x=j+1236|0;v=j+1244|0;B=j+1040|0;w=j+1240|0;b:while(1){C=(c[l>>2]|0)+G|0;if((D|0)==(A+ -1|0)){f=58}else{if((C|0)>(F|0)){f=58}}if((f|0)==58){f=0;C=F}c[g>>2]=G;c[u>>2]=C;G=h;if(G>>>0>=h>>>0){do{c[n>>2]=c[r>>2];H=(c[G+4>>2]|0)-(c[G>>2]|0)|0;c[y>>2]=H;J=H<<2;I=J&12;if((I|0)!=0){J=J+16-I|0}I=c[o>>2]&-16;c[m>>2]=(c[r>>2]|0)+J;do{if((J|0)<(I|0)){M=I-J|0;c[q>>2]=M>>4;if((M|0)<32){f=84;break}if((H|0)>0){H=0;do{c[(c[n>>2]|0)+(H<<2)>>2]=0;H=H+1|0;}while((H|0)<(c[y>>2]|0))}c[k>>2]=0;c[p>>2]=1;c[d>>2]=c[G>>2];c[s>>2]=c[G+4>>2];c[z>>2]=(c[G+4>>2]|0)-(c[G>>2]|0);H=SQ(j)|0;if((H|0)==64){f=84;break}else if((H|0)!=0){g=1;f=92;break b}do{if((c[k>>2]|0)!=0){c[a>>2]=0;if((c[y>>2]|0)>0){H=0;do{I=c[(c[n>>2]|0)+(H<<2)>>2]|0;do{if((I|0)!=0){J=0;L=0;do{K=c[I>>2]|0;if(!((K|0)<=(L|0)|(J|0)==0)){TQ(j,L,H,J<<9,K-L|0)}J=(c[I+4>>2]|0)+J|0;K=J<<9;L=c[I+8>>2]|0;M=K-L|0;do{if((K|0)!=(L|0)){L=c[I>>2]|0;if((L|0)<=-1){break}TQ(j,L,H,M,1)}}while(0);L=(c[I>>2]|0)+1|0;I=c[I+12>>2]|0;}while((I|0)!=0);if((J|0)==0){break}TQ(j,L,H,K,(c[t>>2]|0)-L|0)}}while(0);H=H+1|0;}while((H|0)<(c[y>>2]|0))}I=c[x>>2]|0;if((I|0)==0){break}H=c[a>>2]|0;if((H|0)<=0){break}Jd[I&63](c[v>>2]|0,H,B,c[w>>2]|0)}}while(0);G=G+ -8|0}else{f=84}}while(0);if((f|0)==84){f=0;I=c[G>>2]|0;H=c[G+4>>2]|0;M=H-I>>1;J=M+I|0;if((M|0)==0){g=1;f=92;break b}if((I-H|0)>=(c[l>>2]|0)){c[E>>2]=(c[E>>2]|0)+1}c[G+8>>2]=I;c[G+12>>2]=J;c[G>>2]=J;c[G+4>>2]=H;G=G+8|0}}while(G>>>0>=h>>>0)}D=D+1|0;G=C;if((D|0)>=(A|0)){break a}}if((f|0)==92){i=e;return g|0}}}while(0);if((c[E>>2]|0)<=8){M=0;i=e;return M|0}f=c[l>>2]|0;if((f|0)<=16){M=0;i=e;return M|0}c[l>>2]=(f|0)/2|0;M=0;i=e;return M|0}function IQ(a){a=a|0;var b=0;b=i;lJ(c[a+12>>2]|0,a);i=b;return}function JQ(a){a=a|0;var b=0,d=0;b=i;d=c[a+4>>2]|0;Gd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+8>>2]&255](c[a+60>>2]|0,c[d+172>>2]|0,c[d+176>>2]|0);i=b;return 0}function KQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=QQ(a,b,(c|0)==1?0:c,d,0)|0;i=e;return a|0}function LQ(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){a=6;i=f;return a|0}if((d|0)!=0){GJ(b+108|0,d)}if((e|0)==0){a=0;i=f;return a|0}HJ(b+108|0,c[e>>2]|0,c[e+4>>2]|0);a=0;i=f;return a|0}function MQ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;bX(d|0,0,16)|0;if((c[b+72>>2]|0)!=(c[a+24>>2]|0)){i=e;return}zK(b+108|0,d);i=e;return}function NQ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=sd[c[(c[(c[a+20>>2]|0)+56>>2]|0)+12>>2]&127](c[a+60>>2]|0,b,d)|0;i=e;return a|0}function OQ(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=i;e=QQ(b,c,d,e,3)|0;if((e|0)!=0){i=f;return e|0}a[c+94|0]=5;i=f;return e|0}function PQ(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0;f=i;e=QQ(b,c,d,e,4)|0;if((e|0)!=0){i=f;return e|0}a[c+94|0]=6;i=f;return e|0}function QQ(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;k=i;i=i+8|0;o=i;i=i+16|0;p=o;y=i;i=i+48|0;x=y;w=(f|0)==3;n=(f|0)==4;l=e+72|0;if((c[l>>2]|0)!=(c[d+24>>2]|0)){c[k>>2]=6;C=6;i=j;return C|0}if((f|0)!=(h|0)){C=19;i=j;return C|0}h=e+108|0;f=(g|0)==0;if(!f){HJ(h,c[g>>2]|0,c[g+4>>2]|0)}zK(h,p);t=c[o>>2]&-64;c[o>>2]=t;q=p+4|0;m=c[q>>2]&-64;c[q>>2]=m;r=p+8|0;s=(c[r>>2]|0)+63&-64;c[r>>2]=s;r=p+12|0;p=(c[r>>2]|0)+63&-64;c[r>>2]=p;if((t|0)<0&(s|0)>(t+2147483647|0)){C=98;i=j;return C|0}u=s-t>>6;if((m|0)<0&(p|0)>(m+2147483647|0)){C=98;i=j;return C|0}s=p-m>>6;B=e+76|0;C=c[d+8>>2]|0;A=e+156|0;if((c[(c[A>>2]|0)+4>>2]&1|0)!=0){z=e+88|0;lJ(C,c[z>>2]|0);c[z>>2]=0;z=(c[A>>2]|0)+4|0;c[z>>2]=c[z>>2]&-2}if(w){v=u*3|0;m=v+3&-4}else{m=u;v=u}if(n){t=s*3|0}else{t=s}p=c[o>>2]|0;q=c[q>>2]|0;o=p>>6;r=c[r>>2]>>6;if(v>>>0>32767|t>>>0>32767){C=98;i=j;return C|0}a[e+94|0]=2;b[e+92>>1]=256;c[e+80>>2]=v;c[B>>2]=t;c[e+84>>2]=m;HJ(h,0-p|0,0-q|0);z=e+88|0;c[z>>2]=jJ(C,da(t,m)|0,k)|0;C=c[k>>2]|0;do{if((C|0)==0){C=(c[A>>2]|0)+4|0;c[C>>2]=c[C>>2]|1;c[y>>2]=B;c[x+4>>2]=h;c[x+8>>2]=1;c[k>>2]=Bd[c[d+64>>2]&255](c[d+60>>2]|0,x)|0;do{if(w){if((s|0)==0|(u|0)==0){break}else{w=s;d=c[z>>2]|0}while(1){x=d+v|0;A=u;while(1){A=A+ -1|0;C=a[d+A|0]|0;y=x+ -3|0;a[y]=C;a[x+ -2|0]=C;a[x+ -1|0]=C;if((A|0)==0){break}else{x=y}}w=w+ -1|0;if((w|0)==0){break}else{d=d+m|0}}}}while(0);do{if(n){d=c[z>>2]|0;if((s|0)==0){break}n=m<<1;u=n+m|0;v=s;s=d+(da(t-s|0,m)|0)|0;while(1){$W(d|0,s|0,m|0)|0;$W(d+m|0,s|0,m|0)|0;$W(d+n|0,s|0,m|0)|0;v=v+ -1|0;if((v|0)==0){break}else{d=d+u|0;s=s+m|0}}}}while(0);HJ(h,p,q);C=c[k>>2]|0;if((C|0)!=0){break}c[l>>2]=1651078259;c[e+100>>2]=o;c[e+104>>2]=r;C=0}}while(0);if(f){i=j;return C|0}HJ(h,0-(c[g>>2]|0)|0,0-(c[g+4>>2]|0)|0);C=c[k>>2]|0;i=j;return C|0}function RQ(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=c[g+1012>>2]|0;l=c[g+1008>>2]|0;d=da(l,d)|0;if((l|0)>-1){g=da((c[g+1e3>>2]|0)+ -1|0,l)|0}else{g=0}g=g-d|0;if((e|0)<=0){i=j;return}while(1){l=a[f+4|0]|0;a:do{if(l<<24>>24!=0){o=b[f+2>>1]|0;d=o&65535;n=b[f>>1]|0;m=k+(g+n)|0;if((o&65535)>7){bXbX(y|0,0,20)|0;y=f+152|0;A=b[y>>1]|0;if(A<<16>>16==0){break a}h=f+156|0;g=f+508|0;j=f+104|0;z=0;while(1){D=c[h>>2]|0;B=c[D+(z<<4)>>2]|0;if((B|0)==1718642541){B=1;s=16}else if((B|0)==1886545264){B=2;s=16}else if((B|0)==1668707360){B=0;s=16}if((s|0)==16){s=0;A=z&65535;F=0;C=0;while(1){if((c[D+(z<<4)+12>>2]|0)==(c[274064+(C*24|0)+(B<<3)+4>>2]|0)){do{if((F|0)==0){F=c[D+(A<<4)+4>>2]|0;if((F|0)!=0){break}E=c[g>>2]|0;if((E|0)==0){F=0;break}if((pd[E&63](f,c[D+(A<<4)>>2]|0,c[j>>2]|0,0)|0)==0){F=0;break}D=c[j>>2]|0;E=c[(c[h>>2]|0)+(A<<4)+12>>2]|0;if((MK(D,E)|0)!=0){F=0;break}if(E>>>0>3){F=0;while(1){F=(TK(D)|0)+F|0;E=E+ -4|0;if(E>>>0>3){}else{break}}}else{F=0}if((E|0)!=0){G=F;F=3;while(1){G=(((QK(D)|0)&255)<<(F<<3))+G|0;E=E+ -1|0;if((E|0)==0){F=G;break}else{F=F+ -1|0}}}PK(D)}}while(0);E=x+(C<<2)|0;D=c[E>>2]|0;if((c[274064+(C*24|0)+(B<<3)>>2]|0)==(F|0)){D=D+1|0;c[E>>2]=D}if((D|0)==3){break b}}C=C+1|0;if((C|0)>=5){break}D=c[h>>2]|0}A=b[y>>1]|0}z=z+1|0;if((z|0)>=(A&65535|0)){break a}}}else{y=0;while(1){x=y+1|0;if((nb(h|0,274184+(y*17|0)|0)|0)!=0){break b}if((x|0)<8){y=x}else{break a}}}}while(0);c[u>>2]=c[u>>2]|8192}}while(0);g=c[e+28>>2]|0;x=f+508|0;G=pd[c[x>>2]&63](f,1751412088,e,w)|0;c[t>>2]=G;do{if((G|0)==0){w=c[r>>2]|0;if(w>>>0<8){break}z=f+740|0;w=LK(e,w,z)|0;c[t>>2]=w;if((w|0)!=0){G=w;i=k;return G|0}A=c[z>>2]|0;w=A+(c[r>>2]|0)|0;B=d[A+2|0]<<8&65535|d[A+3|0];h=B&65535;y=d[A+5|0]<<16|d[A+4|0]<<24|d[A+6|0]<<8|d[A+7|0];y=y>>>0>4294901759?y&65535:y;do{if((d[A]<<8&65535|d[A+1|0])<<16>>16!=0|(B&65535)>255|y>>>0>65537){c[t>>2]=3;s=47}else{j=f+756|0;c[j>>2]=oJ(g,1,0,h,0,v)|0;if((c[t>>2]|0)!=0){s=47;break}c:do{if(B<<16>>16==0){v=0}else{v=0;z=A+8|0;while(1){g=z+y|0;if(g>>>0>w>>>0){break c}a[(c[j>>2]|0)+v|0]=a[z]|0;v=v+1|0;if(v>>>0<h>>>0){z=g}else{break}}}}while(0);c[f+748>>2]=v;c[f+744>>2]=c[r>>2];c[f+752>>2]=y}}while(0);if((s|0)==47){NK(e,z);c[f+744>>2]=0}r=c[t>>2]|0;if((r|0)==0){break}i=k;return r|0}}while(0);do{if((c[u>>2]&1|0)==0){s=0}else{if((c[(c[f+128>>2]|0)+52>>2]|0)==0){r=f+704|0;s=pd[c[x>>2]&63](f,1735162214,e,r)|0;if((s|0)==142){c[r>>2]=0}else if((s|0)!=0){break}if((pd[c[x>>2]&63](f,1819239265,e,q)|0)!=0){s=144;break}s=c[p>>2]|0;if((b[f+210>>1]|0)==0){if(s>>>0>131071){s=8;break}u=s>>>1;c[f+732>>2]=u;v=1}else{if(s>>>0>262143){s=8;break}u=s>>>2;c[f+732>>2]=u;v=2}q=f+732|0;r=f+16|0;t=c[r>>2]|0;do{if(u>>>0<t>>>0){s=t<<v;w=c[f+156>>2]|0;G=b[f+152>>1]|0;u=w+((G&65535)<<4)|0;t=IK(e)|0;if(G<<16>>16==0){v=2147483647}else{v=2147483647;while(1){y=(c[w+8>>2]|0)-t|0;v=(y|0)>0&(y|0)<(v|0)?y:v;w=w+16|0;if(w>>>0<u>>>0){}else{break}}}if((w|0)==(u|0)){v=(c[e+4>>2]|0)-t|0}if((s|0)>(v|0)){s=c[p>>2]|0;break}else{c[q>>2]=c[r>>2];c[p>>2]=s;break}}}while(0);s=LK(e,s,f+736|0)|0;if((s|0)!=0){break}}s=TR(f,e)|0;if((s|0)!=0){break}if((pd[c[x>>2]&63](f,1718642541,e,n)|0)==0){s=c[o>>2]|0;c[f+652>>2]=s;s=LK(e,s,f+656|0)|0;if((s|0)!=0){break}}else{c[f+656>>2]=0;c[f+652>>2]=0}if((pd[c[x>>2]&63](f,1886545264,e,l)|0)==0){s=c[m>>2]|0;c[f+660>>2]=s;s=LK(e,s,f+664|0)|0;break}else{c[f+664>>2]=0;c[f+660>>2]=0;s=0;break}}}while(0);c[f+512>>2]=43;c[f+520>>2]=254;c[f+524>>2]=255;c[f+528>>2]=256;c[f+516>>2]=340;G=s;i=k;return G|0}function dR(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;d=i;if((a|0)==0){i=d;return}b=c[a+100>>2]|0;h=a+104|0;j=c[h>>2]|0;e=c[a+532>>2]|0;f=a+692|0;g=c[f+4>>2]|0;if((g|0)!=0){fd[g&511](c[f>>2]|0)}if((e|0)!=0){fd[c[e+12>>2]&511](a)}NK(c[h>>2]|0,a+736|0);c[a+732>>2]=0;e=c[h>>2]|0;f=a+756|0;lJ(c[e+28>>2]|0,c[f>>2]|0);c[f>>2]=0;NK(e,a+740|0);e=a+672|0;lJ(b,c[e>>2]|0);c[e>>2]=0;c[a+668>>2]=0;NK(j,a+656|0);NK(j,a+664|0);c[a+652>>2]=0;c[a+660>>2]=0;e=a+712|0;f=c[e>>2]|0;if((f|0)!=0){g=f+4|0;lJ(b,c[g>>2]|0);c[g>>2]=0;g=f+8|0;lJ(b,c[g>>2]|0);c[g>>2]=0;g=f+20|0;a=c[g>>2]|0;if((a|0)!=0){if((c[f>>2]|0)!=0){h=0;while(1){lJ(b,c[a+(h<<3)+4>>2]|0);c[(c[g>>2]|0)+(h<<3)+4>>2]=0;h=h+1|0;a=c[g>>2]|0;if(h>>>0<(c[f>>2]|0)>>>0){}else{break}}}lJ(b,a);c[g>>2]=0}j=f+28|0;lJ(b,c[j>>2]|0);c[j>>2]=0;j=f+36|0;lJ(b,c[j>>2]|0);c[j>>2]=0;lJ(b,f)}c[e>>2]=0;i=d;return}function eR(b){b=b|0;a[b+300|0]=0;a[b+301|0]=0;a[b+108|0]=0;c[b+112>>2]=-1;i=i;return 0}function fR(b){b=b|0;var c=0;c=i;if((a[b+300|0]|0)!=0){SR(b)}a[b+108|0]=0;i=c;return}function gR(a){a=a|0;var b=0;b=i;a=nJ(c[c[a+156>>2]>>2]|0)|0;i=b;return a|0}function hR(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,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;k=i;r=i;i=i+16|0;q=r;p=i;i=i+16|0;m=p;y=i;i=i+8|0;D=y;x=i;i=i+8|0;G=x;v=i;i=i+8|0;u=v;s=i;i=i+208|0;n=s;t=f+4|0;o=c[t>>2]|0;if((f|0)==0){K=37;i=k;return K|0}if((g|0)==0){K=36;i=k;return K|0}if((o|0)==0){K=6;i=k;return K|0}do{if((c[o+16>>2]|0)>>>0<=h>>>0){if((c[(c[o+128>>2]|0)+52>>2]|0)==0){x=6}else{break}i=k;return x|0}}while(0);if((j&2|0)!=0){j=(c[o+8>>2]&8192|0)==0?j:j&-3;j=j>>>14&2|j}if((j&1025|0)!=0){j=(c[o+8>>2]|0)>>>12&2^11|j}w=c[g+112>>2]|0;do{if((w|0)!=-1){if((j&8|0)!=0){break}if((dd[c[(c[o+532>>2]|0)+104>>2]&1](o,w,h,j,c[o+104>>2]|0,f+76|0,u)|0)!=0){break}b[f+110>>1]=0;b[f+108>>1]=0;c[f+24>>2]=d[u+1|0]<<6;c[f+28>>2]=d[v]<<6;q=a[u+2|0]|0;c[f+32>>2]=q<<6;p=a[u+3|0]|0;c[f+36>>2]=p<<6;c[f+40>>2]=d[u+4|0]<<6;m=a[u+5|0]|0;c[f+44>>2]=m<<6;r=a[u+6|0]|0;c[f+48>>2]=r<<6;c[f+52>>2]=d[u+7|0]<<6;c[f+72>>2]=1651078259;u=f+100|0;if((j&16|0)==0){c[u>>2]=q;c[f+104>>2]=p}else{c[u>>2]=m;c[f+104>>2]=r}if((c[o+8>>2]&1|0)==0){K=0;i=k;return K|0}p=c[t>>2]|0;q=c[p+104>>2]|0;bX(s|0,0,208)|0;do{if((c[(c[p+128>>2]|0)+52>>2]|0)==0){m=pd[c[p+508>>2]&63](p,1735162214,q,0)|0;if((m|0)==0){c[n+84>>2]=IK(q)|0;l=22;break}else if((m|0)==142){c[n+84>>2]=0;l=22;break}else{break}}else{c[n+84>>2]=0;l=22}}while(0);if((l|0)==22){c[n+16>>2]=j;c[s>>2]=p;c[n+4>>2]=g;c[n+8>>2]=f;c[n+24>>2]=q}cS(n,h,0,1)|0;g=f+56|0;c[g>>2]=c[n+60>>2];c[f+60>>2]=(c[n+48>>2]|0)+(c[n+176>>2]|0)-(c[n+180>>2]|0);if((c[o+480>>2]|0)==0){K=0;i=k;return K|0}if((j&512|0)!=0){K=0;i=k;return K|0}c[g>>2]=e[o+226>>1]|0;K=0;i=k;return K|0}}while(0);o=(j&1|0)!=0;do{if(!o){if((a[g+108|0]|0)==0){x=36}else{break}i=k;return x|0}}while(0);if((j&16384|0)!=0){K=6;i=k;return K|0}v=c[t>>2]|0;u=c[v+104>>2]|0;bX(s|0,0,208)|0;t=(j&2|0)==0;if(t){w=g+301|0;do{if((a[w]|0)==0){z=g+300|0;a:do{if((a[z]|0)==0){E=c[g>>2]|0;F=c[E+100>>2]|0;H=E+260|0;a[z]=1;a[w]=0;L=e[H+20>>1]|0;c[g+120>>2]=L;K=g+132|0;c[K>>2]=e[H+22>>1]|0;C=g+116|0;c[C>>2]=0;A=g+128|0;c[A>>2]=0;z=g+140|0;c[z>>2]=0;B=g+144|0;c[B>>2]=0;J=g+240|0;c[J>>2]=c[E+668>>2];I=g+248|0;b[I>>1]=b[H+18>>1]|0;M=g+72|0;a[M+37|0]=0;a[M+38|0]=0;bX(g+92|0,0,16)|0;c[g+124>>2]=oJ(F,16,0,L,0,G)|0;b:do{if((c[x>>2]|0)==0){c[g+136>>2]=oJ(F,16,0,c[K>>2]|0,0,G)|0;if((c[x>>2]|0)!=0){break}c[g+244>>2]=oJ(F,4,0,c[J>>2]|0,0,G)|0;if((c[x>>2]|0)!=0){break}c[g+252>>2]=oJ(F,4,0,e[I>>1]|0,0,G)|0;if((c[x>>2]|0)!=0){break}I=(b[H+16>>1]|0)+4<<16>>16;H=g+256|0;bX(H|0,0,36)|0;c[H>>2]=F;J=I&65535;G=H+12|0;c[G>>2]=oJ(F,8,0,J,0,D)|0;K=c[y>>2]|0;do{if((K|0)==0){c[H+16>>2]=oJ(F,8,0,J,0,D)|0;K=c[y>>2]|0;if((K|0)!=0){l=41;break}c[H+20>>2]=oJ(F,8,0,J,0,D)|0;K=c[y>>2]|0;if((K|0)!=0){l=41;break}c[H+24>>2]=oJ(F,1,0,J,0,D)|0;K=c[y>>2]|0;if((K|0)!=0){l=41;break}c[H+28>>2]=oJ(F,2,0,0,0,D)|0;K=c[y>>2]|0;if((K|0)!=0){l=41;break}b[H+4>>1]=I;b[H+6>>1]=0;c[x>>2]=0}else{l=41}}while(0);do{if((l|0)==41){D=c[H>>2]|0;if((D|0)==0){c[x>>2]=K;break b}else{M=H+28|0;lJ(D,c[M>>2]|0);c[M>>2]=0;M=H+24|0;lJ(D,c[M>>2]|0);c[M>>2]=0;M=H+16|0;lJ(D,c[M>>2]|0);c[M>>2]=0;lJ(D,c[G>>2]|0);c[G>>2]=0;M=H+20|0;lJ(D,c[M>>2]|0);c[M>>2]=0;bX(H|0,0,12)|0;M=c[y>>2]|0;c[x>>2]=M;if((M|0)==0){break}else{break b}}}}while(0);b[H+8>>1]=I;$W(g+172|0,273472,68)|0;y=c[(c[(c[E+96>>2]|0)+4>>2]|0)+180>>2]|0;c[E+688>>2]=(y|0)==0?257:y;y=c[g>>2]|0;if((a[g+292|0]|0)==0){D=(c[y+96>>2]|0)+40|0}else{D=g+296|0}D=c[D>>2]|0;do{if((D|0)==0){y=153}else{gS(D,y,g);c[D+428>>2]=0;c[D+16>>2]=0;c[D+476>>2]=64;c[D+480>>2]=0;c[D+484>>2]=0;a[D+488|0]=0;c[D+564>>2]=65536;b[D+252>>1]=0;c[D+260>>2]=0;bX(D+216|0,0,12)|0;c[D+256>>2]=65536;F=c[y+656>>2]|0;M=y+652|0;E=c[M>>2]|0;c[D+444>>2]=F;c[D+448>>2]=E;bXbX(g|0,0,12)|0}j=d+124|0;lJ(e,c[j>>2]|0);c[j>>2]=0;lJ(e,c[d+136>>2]|0);c[d+116>>2]=0;c[d+120>>2]=0;a[d+300|0]=0;bX(d+128|0,0,20)|0;a[d+301|0]=0;i=f;return}function TR(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;f=i;i=i+8|0;h=i;i=i+8|0;k=c[e+28>>2]|0;j=pd[c[d+508>>2]&63](d,1668707360,e,h)|0;c[f>>2]=j;if((j|0)!=0){c[d+668>>2]=0;c[d+672>>2]=0;c[f>>2]=0;k=0;i=g;return k|0}l=(c[h>>2]|0)>>>1;h=d+668|0;c[h>>2]=l;j=d+672|0;c[j>>2]=oJ(k,2,0,l,0,f)|0;k=c[f>>2]|0;if((k|0)!=0){l=k;i=g;return l|0}k=MK(e,c[h>>2]<<1)|0;c[f>>2]=k;if((k|0)!=0){l=k;i=g;return l|0}j=c[j>>2]|0;l=c[h>>2]|0;h=j+(l<<1)|0;if((l|0)>0){do{b[j>>1]=RK(e)|0;j=j+2|0;}while(j>>>0<h>>>0)}PK(e);if((a[d+708|0]|0)==0){l=c[f>>2]|0;i=g;return l|0}else{l=ZR(d,e)|0;c[f>>2]=l;i=g;return l|0}return 0}function UR(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;b=i;f=c[a+24>>2]|0;d=PJ(f,d)|0;if((d|0)!=0){i=b;return d|0}e=MK(f,e)|0;if((e|0)!=0){d=e;i=b;return d|0}c[a+200>>2]=c[f+32>>2];c[a+204>>2]=c[f+36>>2];d=0;i=b;return d|0}function VR(a){a=a|0;var e=0,f=0,g=0,h=0;e=i;h=a+200|0;f=c[h>>2]|0;g=f+10|0;if(g>>>0>(c[a+204>>2]|0)>>>0){h=20;i=e;return h|0}b[a+32>>1]=(d[f]|0)<<8&65535|(d[f+1|0]|0);c[a+36>>2]=((d[f+2|0]|0)<<8&65535|(d[f+3|0]|0))<<16>>16;c[a+40>>2]=((d[f+4|0]|0)<<8&65535|(d[f+5|0]|0))<<16>>16;c[a+44>>2]=((d[f+6|0]|0)<<8&65535|(d[f+7|0]|0))<<16>>16;c[a+48>>2]=((d[f+8|0]|0)<<8&65535|(d[f+9|0]|0))<<16>>16;c[h>>2]=g;h=0;i=e;return h|0}function WR(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;l=i;k=f+200|0;w=c[k>>2]|0;h=c[f+204>>2]|0;m=c[f+12>>2]|0;j=b[f+32>>1]|0;A=j<<16>>16;t=c[f>>2]|0;do{if(j<<16>>16!=0){do{if(((b[m+20>>1]|0)+A+(b[m+56>>1]|0)|0)>>>0>(c[m+8>>2]|0)>>>0){v=pJ(m,0,A)|0;if((v|0)==0){break}else{p=v}i=l;return p|0}}while(0);if(j<<16>>16>4094){p=20}else{break}i=l;return p|0}}while(0);z=m+68|0;C=c[z>>2]|0;v=C+(A<<1)|0;if((w+((A<<1)+2)|0)>>>0>h>>>0){F=20;i=l;return F|0}E=d[w]<<8&65535|d[w+1|0];B=j<<16>>16>0;if(B){b[C>>1]=E}while(1){A=w+2|0;D=C+2|0;if(D>>>0>=v>>>0){break}F=d[A]<<8&65535|d[w+3|0];b[D>>1]=F;if(F<<16>>16>E<<16>>16){E=F;w=A;C=D}else{p=8;u=51;break}}if((u|0)==51){i=l;return p|0}do{if(B){C=b[C>>1]|0;B=C+1|0;if((B|0)<0){F=20;i=l;return F|0}else{C=C+5|0;if((C|0)==0){n=B;break}else{y=C;x=B;u=13;break}}}else{y=4;x=0;u=13}}while(0);do{if((u|0)==13){if(((b[m+22>>1]|0)+y+(b[m+58>>1]|0)|0)>>>0<=(c[m+4>>2]|0)>>>0){n=x;break}n=pJ(m,y,0)|0;if((n|0)==0){n=x;break}else{p=n}i=l;return p|0}}while(0);x=c[z>>2]|0;while(1){y=x+2|0;if(y>>>0>=v>>>0){break}if((b[x>>1]|0)<(b[y>>1]|0)){x=y}else{p=20;u=51;break}}if((u|0)==51){i=l;return p|0}u=f+8|0;c[(c[u>>2]|0)+140>>2]=0;c[(c[u>>2]|0)+136>>2]=0;v=w+4|0;if(v>>>0>h>>>0){F=20;i=l;return F|0}F=d[A]<<8&65535|d[w+3|0];x=F&65535;if((F&65535)>(e[t+286>>1]|0)){F=22;i=l;return F|0}if((h-v|0)<(x|0)){F=22;i=l;return F|0}if((c[f+16>>2]&2|0)==0){c[(c[u>>2]|0)+140>>2]=x;F=f+160|0;c[(c[u>>2]|0)+136>>2]=c[(c[F>>2]|0)+392>>2];$W(c[(c[F>>2]|0)+392>>2]|0,v|0,x|0)|0}z=w+(x+4)|0;t=m+64|0;v=c[t>>2]|0;u=v+n|0;f=(n|0)>0;do{if(f){a:while(1){w=z+1|0;if(w>>>0>h>>>0){p=20;u=51;break}y=a[z]|0;x=v+1|0;a[v]=y;do{if((y&8)==0){v=x;s=w}else{z=z+2|0;if(z>>>0>h>>>0){p=20;u=51;break a}w=a[w]|0;if((v+((w&255)+1)|0)>>>0>u>>>0){p=20;u=51;break a}if(w<<24>>24==0){v=x;s=z;break}s=w+ -1<<24>>24&255;bX
7325 function zD(b,e,f,g,h,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,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,ea=0;p=i;w=i;i=i+8|0;E=i;i=i+8|0;K=i;i=i+8|0;I=i;i=i+8|0;J=I;R=i;i=i+8|0;P=i;i=i+8|0;S=P;O=i;i=i+8|0;U=i;i=i+8|0;x=U;y=i;i=i+8|0;T=y;M=i;i=i+8|0;N=M;G=i;i=i+8|0;H=G;C=i;i=i+8|0;B=C;F=i;i=i+8|0;D=F;Q=i;i=i+8|0;L=Q;A=i;i=i+8|0;z=A;V=i;i=i+8|0;W=i;i=i+8|0;q=FW(24)|0;c[q+4>>2]=0;c[q>>2]=177856;v=q+8|0;c[v>>2]=f;u=q+12|0;c[u>>2]=g;s=f+7>>3;r=q+16|0;c[r>>2]=s;do{if((f|0)<1){t=5}else{if((g|0)<1|(s|0)<1){t=5;break}if((2147483646/(s|0)|0|0)<=(g|0)){t=5;break}s=we((da(s,g)|0)+1|0)|0;W=q+20|0;c[W>>2]=s;a[s+(da(c[r>>2]|0,c[u>>2]|0)|0)|0]=0;W=c[W>>2]|0;s=q+20|0;if((W|0)==0){break}bXbX(b+12|0,0,16)|0;bX}O=c[D>>2]|0;O=jd[c[(c[O>>2]|0)+20>>2]&511](O)|0;if((O|0)==-1){e=21;break a}O=O|P<<8}}while(0);k=k+ -2-O|0;switch(N|0){case 93:{if((c[j>>2]|0)>>>0>256){Q=c[D>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;if((Q|0)==-1){e=105;break a}N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=105;break a}P=c[j>>2]|0;if(P>>>0<257){e=101}else{N=N|Q<<8}}else{e=101}if((e|0)==101){e=0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=105;break a}P=c[j>>2]|0}if(N>>>0>=P>>>0){e=105;break a}Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=105;break a}c[Q+(N*88|0)+40>>2]=P;Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[Q+(N*88|0)+40>>2]&31;if((P|0)==0){c[Q+(N*88|0)+48>>2]=O-((c[j>>2]|0)>>>0>256?5:4);P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=Ce(c[P+(N*88|0)+44>>2]|0,c[P+(N*88|0)+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+44>>2]=P;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if((c[P+(N*88|0)+48>>2]|0)==0){continue a}else{O=0}while(1){Q=c[P+(N*88|0)+44>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=109;break a}c[Q+(O<<2)>>2]=P;O=O+1|0;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if(O>>>0>=(c[P+(N*88|0)+48>>2]|0)>>>0){continue a}}}else if((P|0)==1){c[Q+(N*88|0)+48>>2]=1;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;O=Ce(c[O+(N*88|0)+44>>2]|0,c[O+(N*88|0)+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+44>>2]=O;O=c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+44>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=114;break a}P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=114;break a}c[O>>2]=P|N<<8;continue a}else if((P|0)==2){c[Q+(N*88|0)+48>>2]=(O-((c[j>>2]|0)>>>0>256?5:4)|0)>>>1;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=Ce(c[P+(N*88|0)+44>>2]|0,c[P+(N*88|0)+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+44>>2]=P;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if((c[P+(N*88|0)+48>>2]|0)==0){continue a}else{O=0}while(1){Q=(c[P+(N*88|0)+44>>2]|0)+(O<<2)|0;R=c[D>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){e=118;break a}P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=118;break a}c[Q>>2]=P|R<<8;O=O+1|0;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if(O>>>0>=(c[P+(N*88|0)+48>>2]|0)>>>0){continue a}}}else{e=120;break a}break};case 82:{O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+16>>2]=N;O=c[L>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+(g*52|0)>>2]=N;O=(c[L>>2]|0)+(g*52|0)+4|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=35;break a}c[O>>2]=P|N<<8;O=c[L>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+(g*52|0)+8>>2]=N;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+20>>2]=N;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+24>>2]=N;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+28>>2]=N;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+32>>2]=N;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=35;break a}c[O+36>>2]=N;X=(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+24|0;c[X>>2]=(c[X>>2]|0)+2;X=(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+28|0;c[X>>2]=(c[X>>2]|0)+2;if((c[j>>2]|0)==0){N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;O=0}else{O=0;while(1){if((O|0)!=0){X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[X+(O*88|0)+16>>2]=c[X+16>>2];X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[X+(O*88|0)+20>>2]=c[X+20>>2];X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[X+(O*88|0)+24>>2]=c[X+24>>2];X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[X+(O*88|0)+28>>2]=c[X+28>>2];X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[X+(O*88|0)+32>>2]=c[X+32>>2];X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[X+(O*88|0)+36>>2]=c[X+36>>2]}N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=Ce(c[N+(O*88|0)+84>>2]|0,(c[N+(O*88|0)+20>>2]|0)+1|0,76)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(O*88|0)+84>>2]=N;N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=0;do{c[(c[N+(O*88|0)+84>>2]|0)+(P*76|0)+72>>2]=0;P=P+1|0;N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;}while(P>>>0<=(c[N+(O*88|0)+20>>2]|0)>>>0);O=O+1|0;if(O>>>0>=(c[j>>2]|0)>>>0){O=0;break}}}do{if((c[N+16>>2]&1|0)==0){c[(c[N+84>>2]|0)+(O*76|0)>>2]=15;c[(c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+84>>2]|0)+(O*76|0)+4>>2]=15}else{N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=45;break a}c[(c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+84>>2]|0)+(O*76|0)>>2]=N&15;c[(c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+84>>2]|0)+(O*76|0)+4>>2]=N>>>4&15}O=O+1|0;N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;}while(O>>>0<=(c[N+20>>2]|0)>>>0);if((c[j>>2]|0)>>>0>1){O=1}else{continue a}while(1){P=0;do{c[(c[N+(O*88|0)+84>>2]|0)+(P*76|0)>>2]=c[(c[N+84>>2]|0)+(P*76|0)>>2];X=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[(c[X+(O*88|0)+84>>2]|0)+(P*76|0)+4>>2]=c[(c[X+84>>2]|0)+(P*76|0)+4>>2];P=P+1|0;N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;}while(P>>>0<=(c[N+(O*88|0)+20>>2]|0)>>>0);O=O+1|0;if(O>>>0>=(c[j>>2]|0)>>>0){continue a}}break};case 88:{N=O+ -2|0;break};case 100:{N=O+ -2|0;if((N|0)==0){continue a}else{O=0}while(1){X=c[D>>2]|0;O=O+1|0;if((jd[c[(c[X>>2]|0)+20>>2]&511](X)|0)==-1){e=139;break a}if(O>>>0<N>>>0){}else{continue a}}break};case 83:{if((c[j>>2]|0)>>>0>256){N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=66;break a}P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=66;break a}O=c[j>>2]|0;if(O>>>0<257){e=57}else{N=P|N<<8}}else{e=57}if((e|0)==57){e=0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=66;break a}O=c[j>>2]|0}if(N>>>0>=O>>>0){e=66;break a}O=c[D>>2]|0;O=jd[c[(c[O>>2]|0)+20>>2]&511](O)|0;if((O|0)==-1){e=66;break a}Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=66;break a}c[Q+(N*88|0)+20>>2]=P;Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=66;break a}c[Q+(N*88|0)+24>>2]=P;Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=66;break a}c[Q+(N*88|0)+28>>2]=P;Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=66;break a}c[Q+(N*88|0)+32>>2]=P;Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=66;break a}c[Q+(N*88|0)+36>>2]=P;P=(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+16|0;c[P>>2]=c[P>>2]&-2|O&1;P=(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+24|0;c[P>>2]=(c[P>>2]|0)+2;P=(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+28|0;c[P>>2]=(c[P>>2]|0)+2;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=Ce(c[P+(N*88|0)+84>>2]|0,(c[P+(N*88|0)+20>>2]|0)+1|0,76)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+84>>2]=P;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;O=0;while(1){c[(c[P+(N*88|0)+84>>2]|0)+(O*76|0)+72>>2]=0;O=O+1|0;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if(O>>>0>(c[P+(N*88|0)+20>>2]|0)>>>0){O=0;break}else{}}while(1){if((c[P+(N*88|0)+16>>2]&1|0)==0){c[(c[P+(N*88|0)+84>>2]|0)+(O*76|0)>>2]=15;c[(c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+84>>2]|0)+(O*76|0)+4>>2]=15}else{P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=71;break a}c[(c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+84>>2]|0)+(O*76|0)>>2]=P&15;c[(c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+84>>2]|0)+(O*76|0)+4>>2]=P>>>4&15}O=O+1|0;P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if(O>>>0>(c[P+(N*88|0)+20>>2]|0)>>>0){continue a}}break};case 95:{Rb(183640,4,1,M|0)|0;N=O+ -2|0;if((N|0)==0){continue a}else{O=0}while(1){X=c[D>>2]|0;O=O+1|0;if((jd[c[(c[X>>2]|0)+20>>2]&511](X)|0)==-1){e=128;break a}if(O>>>0<N>>>0){}else{continue a}}break};case 97:{Rb(184120,4,1,M|0)|0;N=O+ -2|0;if((N|0)==0){continue a}else{O=0}while(1){X=c[D>>2]|0;O=O+1|0;if((jd[c[(c[X>>2]|0)+20>>2]&511](X)|0)==-1){e=132;break a}if(O>>>0<N>>>0){}else{break}}break};case 94:{Rb(183600,4,1,M|0)|0;N=O+ -2|0;if((N|0)==0){continue a}else{O=0}while(1){X=c[D>>2]|0;O=O+1|0;if((jd[c[(c[X>>2]|0)+20>>2]&511](X)|0)==-1){e=124;break a}if(O>>>0<N>>>0){}else{continue a}}break};case 147:{e=142;break a};case 92:{P=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=76;break a}c[P+40>>2]=N;N=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;P=c[N+40>>2]&31;do{if((P|0)==2){c[N+48>>2]=(O+ -3|0)>>>1;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;O=Ce(c[O+44>>2]|0,c[O+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+44>>2]=O;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if((c[O+48>>2]|0)==0){break}else{N=0}do{P=(c[O+44>>2]|0)+(N<<2)|0;O=c[D>>2]|0;O=jd[c[(c[O>>2]|0)+20>>2]&511](O)|0;if((O|0)==-1){e=89;break a}Q=c[D>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;if((Q|0)==-1){e=89;break a}c[P>>2]=Q|O<<8;N=N+1|0;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;}while(N>>>0<(c[O+48>>2]|0)>>>0)}else if((P|0)==1){c[N+48>>2]=1;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;O=Ce(c[O+44>>2]|0,c[O+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+44>>2]=O;O=c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+44>>2]|0;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){e=85;break a}P=c[D>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;if((P|0)==-1){e=85;break a}c[O>>2]=P|N<<8}else if((P|0)==0){c[N+48>>2]=O+ -3;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;O=Ce(c[O+44>>2]|0,c[O+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+44>>2]=O;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;if((c[O+48>>2]|0)==0){break}else{N=0}do{P=c[O+44>>2]|0;O=c[D>>2]|0;O=jd[c[(c[O>>2]|0)+20>>2]&511](O)|0;if((O|0)==-1){e=80;break a}c[P+(N<<2)>>2]=O;N=N+1|0;O=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;}while(N>>>0<(c[O+48>>2]|0)>>>0)}else{e=91;break a}}while(0);if((c[j>>2]|0)>>>0<=1){continue a}Q=c[L>>2]|0;N=1;while(1){Q=c[Q+(g*52|0)+48>>2]|0;c[Q+(N*88|0)+40>>2]=c[Q+40>>2];Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;c[Q+(N*88|0)+48>>2]=c[Q+48>>2];Q=c[(c[L>>2]|0)+(g*52|0)+48>>2]|0;Q=Ce(c[Q+(N*88|0)+44>>2]|0,c[Q+48>>2]|0,4)|0;c[(c[(c[L>>2]|0)+(g*52|0)+48>>2]|0)+(N*88|0)+44>>2]=Q;Q=c[L>>2]|0;O=c[Q+(g*52|0)+48>>2]|0;if((c[O+48>>2]|0)!=0){P=0;while(1){c[(c[O+(N*88|0)+44>>2]|0)+(P<<2)>>2]=c[(c[O+44>>2]|0)+(P<<2)>>2];P=P+1|0;Q=c[L>>2]|0;O=c[Q+(g*52|0)+48>>2]|0;if(P>>>0<(c[O+48>>2]|0)>>>0){}else{break}}}N=N+1|0;if(N>>>0>=(c[j>>2]|0)>>>0){continue a}}break};default:{X=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0;c[F>>2]=N;Qe(X,184192,G);N=O+ -2|0;if((N|0)==0){continue a}else{O=0}while(1){X=c[D>>2]|0;O=O+1|0;if((jd[c[(c[X>>2]|0)+20>>2]&511](X)|0)!=-1&O>>>0<N>>>0){}else{continue a}}}}if((N|0)==0){continue}else{O=0}while(1){X=c[D>>2]|0;O=O+1|0;if((jd[c[(c[X>>2]|0)+20>>2]&511](X)|0)==-1){e=136;break a}if(O>>>0<N>>>0){}else{continue a}}}if((e|0)==21){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,184080,E);X=0;i=f;return X|0}else if((e|0)==35){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183376,H);X=0;i=f;return X|0}else if((e|0)==45){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183376,I);X=0;i=f;return X|0}else if((e|0)==66){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183456,l);X=0;i=f;return X|0}else if((e|0)==71){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183376,m);X=0;i=f;return X|0}else if((e|0)==76){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183488,n);X=0;i=f;return X|0}else if((e|0)==80){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183488,o);X=0;i=f;return X|0}else if((e|0)==85){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183488,q);X=0;i=f;return X|0}else if((e|0)==89){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183488,r);X=0;i=f;return X|0}else if((e|0)==91){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183488,s);X=0;i=f;return X|0}else if((e|0)==105){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183568,t);X=0;i=f;return X|0}else if((e|0)==109){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183568,u);X=0;i=f;return X|0}else if((e|0)==114){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183568,v);X=0;i=f;return X|0}else if((e|0)==118){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183488,w);X=0;i=f;return X|0}else if((e|0)==120){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183568,x);X=0;i=f;return X|0}else if((e|0)==124){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183608,y);X=0;i=f;return X|0}else if((e|0)==128){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183608,z);X=0;i=f;return X|0}else if((e|0)==132){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,184128,A);X=0;i=f;return X|0}else if((e|0)==136){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,184160,B);X=0;i=f;return X|0}else if((e|0)==139){Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,183752,C);X=0;i=f;return X|0}else if((e|0)==142){c:do{if((K|0)==0){r=c[L>>2]|0;t=c[J>>2]|0;o=(g>>>0)/(t>>>0)|0;t=(g>>>0)%(t>>>0)|0;n=d+160|0;u=d+152|0;q=(da(c[u>>2]|0,t)|0)+(c[n>>2]|0)|0;l=r+(g*52|0)+12|0;c[l>>2]=q;m=c[d+144>>2]|0;c[l>>2]=q>>>0<m>>>0?m:q;s=d+164|0;q=d+156|0;w=(da(c[q>>2]|0,o)|0)+(c[s>>2]|0)|0;m=r+(g*52|0)+16|0;c[m>>2]=w;v=c[d+148>>2]|0;c[m>>2]=w>>>0<v>>>0?v:w;u=(da(c[u>>2]|0,t+1|0)|0)+(c[n>>2]|0)|0;n=r+(g*52|0)+20|0;c[n>>2]=u;t=c[d+136>>2]|0;c[n>>2]=u>>>0>t>>>0?t:u;q=(da(c[q>>2]|0,o+1|0)|0)+(c[s>>2]|0)|0;o=r+(g*52|0)+24|0;c[o>>2]=q;s=c[d+140>>2]|0;c[o>>2]=q>>>0>s>>>0?s:q;q=r+(g*52|0)+28|0;bXm>>2]=13;l=g+8|0;c[l>>2]=0;c[l+4>>2]=0;q=b+48|0;k=b+40|0;r=b+32|0;y=b+24|0;n=b+16|0;w=b+58|0;x=b+57|0;E=b+56|0;f=b+59|0;A=d+12|0;bXbXbXwhile(u>>>0<t>>>0)}else{u=s}}while(0);if(u>>>0<t>>>0){u=(a[u]|0)==13?u+1|0:u}if(u>>>0<t>>>0){u=(a[u]|0)==10?u+1|0:u}t=u>>>0<t>>>0?u:0;if((t|0)==0){break c}u=t-s|0;if((u|0)>255){Qe(-1,201752,g);u=255}hX(f|0,s|0,u|0)|0;a[f+u|0]=0;u=f;while(1){x=a[u]|0;if(!(x<<24>>24==9|x<<24>>24==32)){break}u=u+1|0}f:do{if((vc(u|0,201832,3)|0)==0){v=u+3|0;while(1){w=a[v]|0;if(!(w<<24>>24==9|w<<24>>24==32)){x=v;break}v=v+1|0}while(1){u=x+1|0;if((w+ -48<<24>>24&255)>=10){break}w=a[u]|0;x=u}if(w<<24>>24==0){s=t;break}a[x]=0;v=ec(v|0)|0;a[x]=w;do{if((v|0)==8&w<<24>>24==35){w=a[u]|0;if((w+ -48<<24>>24&255)<8){v=0}else{v=0;break}while(1){v=(v<<3)+ -48+(w<<24>>24)|0;u=u+1|0;w=a[u]|0;if((w+ -48<<24>>24&255)<8){}else{q=55;break}}}else{u=x;q=55}}while(0);if((q|0)==55){q=0;if(v>>>0>=256){s=t;break}}while(1){if(w<<24>>24==47){break}else if(!(w<<24>>24==9|w<<24>>24==32)){s=t;break f}x=u+1|0;w=a[x]|0;u=x}w=u+1|0;u=w;while(1){x=a[u]|0;if(x<<24>>24==9|x<<24>>24==32|x<<24>>24==0){break}u=u+1|0}a[u]=0;w=Ge(w)|0;c[(c[p>>2]|0)+(v<<2)>>2]=w;a[u]=x;while(1){if(!(x<<24>>24==9|x<<24>>24==32)){break}w=u+1|0;x=a[w]|0;u=w}if((vc(u|0,201840,3)|0)!=0){Qe(-1,201848,h);s=t;break}u=u+3|0;g:while(1){switch(a[u]|0){case 13:case 10:case 9:case 32:{break};case 0:{s=t;break f};default:{break g}}u=u+1|0}s=s+(u-f)|0}else{if((Mb(f|0,201888,e|0)|0)==0){s=t;break}u=Mb(0,201720,e|0)|0;if((u|0)==0){s=t;break}if((Qc(u|0,201696)|0)==0){break c}else{s=t}}}while(0);if((r|0)>298|(s|0)==0){break c}u=c[k>>2]|0;t=c[o>>2]|0;r=r+1|0}}}while(0);if((q|0)==76){q=0;r=(c[o>>2]|0)+(c[k>>2]|0)|0;h:do{if(r>>>0>s>>>0){do{x=a[s]|0;if(x<<24>>24==10|x<<24>>24==13){break h}s=s+1|0;}while(s>>>0<r>>>0)}}while(0);if(s>>>0<r>>>0){s=(a[s]|0)==13?s+1|0:s}if(s>>>0<r>>>0){s=(a[s]|0)==10?s+1|0:s}s=s>>>0<r>>>0?s:0}if((d|0)>99|(s|0)==0){q=86;break}d=d+1|0}if((q|0)==86){x=b+28|0;a[x]=1;i=j;return}}function cH(b){b=b|0;var d=0;d=i;if((a[b+28|0]&1)==0){bH(b)}i=d;return c[b+24>>2]|0}function dH(b){b=b|0;var c=0;c=i;Vb(b|0,0)|0;a[b+16|0]=1;i=c;return}function eH(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0.0;d=i;g=b+8|0;if((a[b+16|0]&1)!=0){Vb(g|0,0)|0}e=c[b+4>>2]|0;h=b+12|0;f=c[h>>2]|0;if((e|0)>(f|0)){f=f+1e6|0;c[h>>2]=f;h=(c[g>>2]|0)+ -1|0;c[g>>2]=h;g=h}else{g=c[g>>2]|0}j=+(f-e|0)/1.0e6+ +(g-(c[b>>2]|0)|0);i=d;return+(j<0.0?0.0:j)}function fH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;k=i;i=i+8|0;h=i;i=i+8|0;g=i;i=i+8|0;j=i;i=i+8|0;if((FL(j)|0)!=0){k=0;i=e;return k|0}f=FW(12)|0;j=c[j>>2]|0;a[f]=b&1;a[f+1|0]=d&1;c[f+4>>2]=j;qK(j,k,h,g);b=c[k>>2]|0;do{if((b|0)>2){g=1}else{if((b|0)!=2){g=0;break}h=c[h>>2]|0;if((h|0)>1){g=1;break}if((h|0)!=1){g=0;break}g=(c[g>>2]|0)>7|0}}while(0);a[f+8|0]=g;k=f;i=e;return k|0}function gH(a){a=a|0;var b=0;b=i;GL(c[a+4>>2]|0)|0;i=b;return}function hH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=nH(a,b,c,d)|0;i=e;return a|0}function iH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=nH(a,b,c,d)|0;i=e;return a|0}function jH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;a=nH(a,b,c,d)|0;i=e;return a|0}function kH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;g=i;i=i+8|0;h=g;do{if((a[b+8|0]&1)==0){if((a[e]&1)==0){j=Tn(c[e+8>>2]|0,c[e+12>>2]|0)|0}else{j=Vn(c[(c[e+4>>2]|0)+28>>2]|0)|0}if((j|0)==0){c[g>>2]=0;h=0;g=0;break}else{k=_n(j,h)|0;fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[g>>2]|0;g=k;break}}else{c[g>>2]=0;h=0;g=0}}while(0);b=oH(b,d,e,g,h)|0;if((b|0)!=0){i=f;return b|0}Fe(g);i=f;return b|0}function lH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;j=g;c[g>>2]=0;do{if((a[b+8|0]&1)==0){if((a[e]&1)==0){h=Cn(c[e+8>>2]|0,c[e+12>>2]|0,0)|0}else{h=Dn(c[(c[e+4>>2]|0)+28>>2]|0,0)|0}if((h|0)==0){h=0;break}if((a[h+64|0]&1)==0){j=0}else{j=Mn(h,j)|0}fd[c[(c[h>>2]|0)+4>>2]&511](h);h=j}else{h=0}}while(0);b=oH(b,d,e,h,c[g>>2]|0)|0;if((b|0)!=0){i=f;return b|0}Fe(h);i=f;return b|0}function mH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=pH(a,b,c,d,e,f)|0;i=g;return a|0}function nH(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;j=i;i=i+8|0;l=j;k=c[d+4>>2]|0;do{if((a[f]&1)==0){if((NJ(k,c[f+8>>2]|0,c[f+12>>2]|0,0,l)|0)==0){break}else{d=0}i=h;return d|0}else{if((LJ(k,c[(c[f+4>>2]|0)+28>>2]|0,0,l)|0)==0){break}else{d=0}i=h;return d|0}}while(0);k=ye(256,4)|0;l=0;do{m=k+(l<<1)|0;b[m>>1]=0;n=c[g+(l<<2)>>2]|0;if((n|0)!=0){b[m>>1]=gK(c[j>>2]|0,n)|0}l=l+1|0;}while((l|0)<256);n=FW(40)|0;m=c[j>>2]|0;Wp(n,e,f);c[n>>2]=201936;c[n+20>>2]=d;c[n+24>>2]=m;c[n+28>>2]=k;c[n+32>>2]=256;a[n+36|0]=0;i=h;return n|0}function oH(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;j=i;i=i+8|0;k=j;l=c[b+4>>2]|0;do{if((a[e]&1)==0){if((NJ(l,c[e+8>>2]|0,c[e+12>>2]|0,0,k)|0)==0){break}else{d=0}i=h;return d|0}else{if((LJ(l,c[(c[e+4>>2]|0)+28>>2]|0,0,k)|0)==0){break}else{d=0}i=h;return d|0}}while(0);l=FW(40)|0;k=c[j>>2]|0;Wp(l,d,e);c[l>>2]=201936;c[l+20>>2]=b;c[l+24>>2]=k;c[l+28>>2]=f;c[l+32>>2]=g;a[l+36|0]=0;g=l;i=h;return g|0}function pH(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 j=0,k=0,l=0,m=0;j=i;m=i;i=i+8|0;k=m;l=c[b+4>>2]|0;do{if((a[e]&1)==0){if((NJ(l,c[e+8>>2]|0,c[e+12>>2]|0,h,k)|0)==0){break}else{e=0}i=j;return e|0}else{if((LJ(l,c[(c[e+4>>2]|0)+28>>2]|0,h,k)|0)==0){break}else{e=0}i=j;return e|0}}while(0);h=FW(40)|0;m=c[m>>2]|0;Wp(h,d,e);c[h>>2]=201936;c[h+20>>2]=b;c[h+24>>2]=m;c[h+28>>2]=f;c[h+32>>2]=g;a[h+36|0]=1;i=j;return h|0}function qH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=201936;d=c[a+24>>2]|0;if((d|0)!=0){SJ(d)|0}d=c[a+28>>2]|0;if((d|0)==0){Yp(a);HW(a);i=b;return}Fe(d);Yp(a);HW(a);i=b;return}function rH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=201936;d=c[a+24>>2]|0;if((d|0)!=0){SJ(d)|0}d=c[a+28>>2]|0;if((d|0)==0){Yp(a);i=b;return}Fe(d);Yp(a);i=b;return}function sH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=i;d=FW(184)|0;LI(d,a,b,c);uH(d);i=e;return d|0}function tH(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0;j=i;c[b>>2]=202e3;c[b+4>>2]=d;_p(d);h[b+8>>3]=+h[e>>3];h[b+16>>3]=+h[e+8>>3];h[b+24>>3]=+h[e+16>>3];h[b+32>>3]=+h[e+24>>3];h[b+40>>3]=+h[f>>3];h[b+48>>3]=+h[f+8>>3];h[b+56>>3]=+h[f+16>>3];h[b+64>>3]=+h[f+24>>3];a[b+72|0]=g&1;bX;return}J=(c[(Yu(e,203096,f,0)|0)>>2]|0)==6;E=(a[b+1040|0]&1)!=0;a:do{if(J){I=c[m>>2]|0;J=(I|0)==6;do{if(E){if(!J){c[H>>2]=I;c[C+4>>2]=6;Qe(0,205232,C);tc()}if((c[(c[j>>2]|0)+12>>2]|0)==(c[b+8>>2]|0)){break}Qe(-1,203104,G);break a}else{if(J){break}c[D>>2]=I;c[F+4>>2]=6;Qe(0,205232,F);tc()}}while(0);J=c[(c[j>>2]|0)+12>>2]|0;u=b+8|0;c[u>>2]=J;if((J|0)<=0){u=27;break}C=6;D=0;while(1){if((C|0)!=6){u=15;break}ut(c[j>>2]|0,D,p)|0;C=c[r>>2]|0;if((C+ -1|0)>>>0>=2){u=17;break}if((C|0)==1){K=+(c[n>>2]|0)}else{K=+h[n>>3]}h[b+1048+(D<<3)>>3]=K;Of(p);D=D+1|0;if((D|0)>=(c[u>>2]|0)){u=27;break a}C=c[m>>2]|0}if((u|0)==15){c[z>>2]=C;c[A+4>>2]=6;Qe(0,205232,A);tc()}else if((u|0)==17){Qe(-1,203144,B);u=54;break}}else{z=b+8|0;do{if(E){if((c[z>>2]|0)==1){break}Qe(-1,203104,I);break a}}while(0);c[z>>2]=1;h[b+1048>>3]=0.0;u=27}}while(0);b:do{if((u|0)==27){Of(f);c:do{if((c[(Yu(e,203184,f,0)|0)>>2]|0)==6){y=c[m>>2]|0;if((y|0)!=6){c[x>>2]=y;c[w+4>>2]=6;Qe(0,205232,w);tc()}x=c[(c[j>>2]|0)+12>>2]|0;w=b+8|0;if((x|0)!=(c[w>>2]|0)){Qe(-1,203192,v);break b}if((x|0)<=0){break}x=6;v=0;while(1){if((x|0)!=6){u=35;break}ut(c[j>>2]|0,v,p)|0;x=c[r>>2]|0;if((x+ -1|0)>>>0>=2){u=37;break}if((x|0)==1){K=+(c[n>>2]|0)}else{K=+h[n>>3]}h[b+1304+(v<<3)>>3]=K;Of(p);v=v+1|0;if((v|0)>=(c[w>>2]|0)){break c}x=c[m>>2]|0}if((u|0)==35){c[t>>2]=x;c[o+4>>2]=6;Qe(0,205232,o);tc()}else if((u|0)==37){Qe(-1,203232,s);u=54;break b}}else{if((c[b+8>>2]|0)==1){h[b+1304>>3]=1.0;break}else{Qe(-1,203192,y);break b}}}while(0);Of(f);if(((c[(Yu(e,203272,f,0)|0)>>2]|0)+ -1|0)>>>0>=2){Qe(-1,203280,q);break}e=c[m>>2]|0;if((e+ -1|0)>>>0>=2){c[k>>2]=e;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,205304,l);tc()}if((e|0)==1){K=+(c[j>>2]|0)}else{K=+h[j>>3]}J=b+1560|0;h[J>>3]=K;Of(f);a[b+1568|0]=+S(+(+h[J>>3]+-1.0))<1.0e-10|0;a[g]=1;i=d;return}}while(0);if((u|0)==54){Of(p)}Of(f);i=d;return}function OH(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function PH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0.0,l=0,m=0,n=0,o=0.0,p=0.0;f=i;o=+h[d>>3];k=+h[b+16>>3];if(o>=k){k=+h[b+24>>3];k=o>k?k:o}m=b+8|0;if((c[m>>2]|0)<=0){i=f;return}l=b+1568|0;d=b+1560|0;j=b+1040|0;g=0;do{o=+h[b+1048+(g<<3)>>3];if((a[l]&1)==0){p=+U(+k,+(+h[d>>3]))}else{p=k}o=o+p*(+h[b+1304+(g<<3)>>3]-o);n=e+(g<<3)|0;h[n>>3]=o;do{if((a[j]&1)!=0){p=+h[b+528+(g<<4)>>3];if(o<p){h[n>>3]=p;break}p=+h[b+528+(g<<4)+8>>3];if(o<=p){break}h[n>>3]=p}}while(0);g=g+1|0;}while((g|0)<(c[m>>2]|0));i=f;return}function QH(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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,ka=0.0,la=0.0;l=i;T=i;i=i+8|0;_=T;w=i;i=i+16|0;t=w;r=i;i=i+8|0;u=i;i=i+8|0;v=u;y=i;i=i+8|0;z=i;i=i+8|0;A=z;F=i;i=i+16|0;G=F;E=i;i=i+8|0;C=i;i=i+8|0;D=C;K=i;i=i+8|0;I=i;i=i+8|0;L=I;U=i;i=i+8|0;W=i;i=i+8|0;V=W;Y=i;i=i+8|0;X=Y;x=i;i=i+8|0;$=x;ba=i;i=i+8|0;aa=i;i=i+8|0;Q=i;i=i+8|0;R=Q;O=i;i=i+8|0;P=O;N=i;i=i+8|0;m=i;i=i+16|0;q=m;o=i;i=i+16|0;s=o;S=i;i=i+16|0;Z=S;c[b>>2]=203328;c[m>>2]=13;p=q+8|0;c[p>>2]=0;c[p+4>>2]=0;c[o>>2]=13;n=s+8|0;c[n>>2]=0;c[n+4>>2]=0;k=b+1064|0;M=b+1048|0;j=b+1052|0;g=b+1056|0;d=b+1060|0;bXbX2,ib);e=xd;continue a}else{Cd=Ad+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=(zd|0)!=(e|0)|0;e=xd;continue a}}else{if((Ad+ -1|0)>>>0>=2){wd=597;break c}}}while(0);Ad=e+1|0;if(((c[d+(Ad<<4)>>2]|0)+ -1|0)>>>0>=2){wd=595;break}if((e|0)==100){Qe(-1,203744,jb);e=c[vd>>2]|0;yd=0.0}else{e=d+(e<<4)+8|0;if(zd){yd=+(c[e>>2]|0)}else{yd=+h[e>>3]}c[vd>>2]=Ad;e=Ad}do{if((e|0)==100){Qe(-1,203744,kb);wd=591}else{zd=c[d+(e<<4)>>2]|0;if((zd+ -1|0)>>>0>=2){Qe(-1,204688,lb);wd=591;break}Ad=d+(e<<4)+8|0;if((zd|0)==1){Bd=+(c[Ad>>2]|0)}else{Bd=+h[Ad>>3]}e=e+1|0;c[vd>>2]=e}}while(0);if((wd|0)==591){wd=0;e=c[vd>>2]|0;Bd=0.0}if((e|0)<1){Qe(-1,205192,mb);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=Bd!=yd|0;e=xd;continue a}}else{wd=595}}while(0);do{if((wd|0)==595){wd=0;if((e|0)!=100){wd=597;break}Qe(-1,203744,Zc);e=0}}while(0);do{if((wd|0)==597){wd=0;if((c[d+(e<<4)>>2]|0)==0){c[vd>>2]=e+1;e=(a[d+(e<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,_c);e=0;break}}}while(0);zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,Xc);Ad=0}else{if((c[d+(zd<<4)>>2]|0)==0){c[vd>>2]=zd+1;Ad=(a[d+(zd<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,Yc);Ad=0;break}}}while(0);zd=c[vd>>2]|0;if((zd|0)<1){Qe(-1,205192,Wc);e=xd;continue a}else{Cd=zd+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=(Ad^e)&1;e=xd;continue a}break};case 28:{e=c[vd>>2]|0;do{if((e|0)<100){if((c[d+(e<<4)>>2]|0)!=1){wd=615;break}c[vd>>2]=e+1;if((e|0)<0){Qe(-1,205192,nb);e=xd;continue a}else{Cd=0-(c[d+(e<<4)+8>>2]|0)|0;c[vd>>2]=e;c[d+(e<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=Cd;e=xd;continue a}}else{if((e|0)!=100){wd=615;break}Qe(-1,203744,ob);wd=621}}while(0);do{if((wd|0)==615){wd=0;Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,$c);wd=621;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){yd=+(c[zd>>2]|0)}else{yd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e}}while(0);if((wd|0)==621){wd=0;e=c[vd>>2]|0;yd=0.0}if((e|0)<1){Qe(-1,205192,ad);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=-0.0-yd;e=xd;continue a}break};case 29:{e=c[vd>>2]|0;do{if((e|0)<100){if((c[d+(e<<4)>>2]|0)!=1){wd=632;break}c[vd>>2]=e+1;if((e|0)<0){Qe(-1,205192,pb);e=xd;continue a}else{Cd=~c[d+(e<<4)+8>>2];c[vd>>2]=e;c[d+(e<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=Cd;e=xd;continue a}}else{if((e|0)!=100){wd=632;break}Qe(-1,203744,qb);e=1}}while(0);do{if((wd|0)==632){wd=0;if((c[d+(e<<4)>>2]|0)==0){c[vd>>2]=e+1;e=a[d+(e<<4)+8|0]&1^1;break}else{Qe(-1,204688,bd);e=1;break}}}while(0);zd=c[vd>>2]|0;if((zd|0)<1){Qe(-1,205192,rb);e=xd;continue a}else{Cd=zd+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=e;e=xd;continue a}break};case 30:{e=c[vd>>2]|0;do{if((e|0)<99){if((c[d+(e<<4)>>2]|0)!=1){wd=655;break}zd=e+1|0;if((c[d+(zd<<4)>>2]|0)!=1){wd=653;break}if((e|0)==100){Qe(-1,203744,sb);zd=c[vd>>2]|0;Ad=0}else{c[vd>>2]=zd;Ad=c[d+(e<<4)+8>>2]|0}do{if((zd|0)==100){Qe(-1,203744,tb);wd=649}else{if((c[d+(zd<<4)>>2]|0)==1){e=zd+1|0;c[vd>>2]=e;zd=c[d+(zd<<4)+8>>2]|0;break}else{Qe(-1,204688,ub);wd=649;break}}}while(0);if((wd|0)==649){wd=0;e=c[vd>>2]|0;zd=0}if((e|0)<1){Qe(-1,205192,vb);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=zd|Ad;e=xd;continue a}}else{wd=653}}while(0);do{if((wd|0)==653){wd=0;if((e|0)!=100){wd=655;break}Qe(-1,203744,fd);e=0}}while(0);do{if((wd|0)==655){wd=0;if((c[d+(e<<4)>>2]|0)==0){c[vd>>2]=e+1;e=(a[d+(e<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,gd);e=0;break}}}while(0);zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,dd);zd=0}else{if((c[d+(zd<<4)>>2]|0)==0){c[vd>>2]=zd+1;zd=(a[d+(zd<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,ed);zd=0;break}}}while(0);Ad=c[vd>>2]|0;if((Ad|0)<1){Qe(-1,205192,cd);e=xd;continue a}else{Cd=Ad+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=(zd|e)&1;e=xd;continue a}break};case 32:{zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,wb);wd=674}else{if((c[d+(zd<<4)>>2]|0)==1){e=zd+1|0;c[vd>>2]=e;zd=c[d+(zd<<4)+8>>2]|0;break}else{Qe(-1,204688,xb);wd=674;break}}}while(0);if((wd|0)==674){wd=0;e=c[vd>>2]|0;zd=0}do{if((e|0)==100){Qe(-1,203744,yb);e=0}else{if((c[d+(e<<4)>>2]|0)==1){c[vd>>2]=e+1;e=c[d+(e<<4)+8>>2]|0;break}else{Qe(-1,204688,zb);e=0;break}}}while(0);VH(d,e,zd);e=xd;continue a};case 31:{e=c[vd>>2]|0;if((e|0)==100){Qe(-1,203744,Ab);e=xd;continue a}else{c[vd>>2]=e+1;e=xd;continue a}break};case 33:{e=c[vd>>2]|0;do{if((e|0)<100){if((c[d+(e<<4)>>2]|0)==1){e=xd;continue a}else{wd=685}}else{if((e|0)!=100){wd=685;break}Qe(-1,203744,Bb);yd=0.0;wd=691}}while(0);do{if((wd|0)==685){wd=0;Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,hd);yd=0.0;wd=691;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){yd=+(c[zd>>2]|0)}else{yd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e;if(yd>=0.0){wd=691;break}yd=+ca(+(yd+-.5))}}while(0);if((wd|0)==691){wd=0;yd=+R(+(yd+.5));e=c[vd>>2]|0}if((e|0)<1){Qe(-1,205192,id);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=yd;e=xd;continue a}break};case 34:{e=c[vd>>2]|0;do{if((e|0)==100){Qe(-1,203744,Cb);wd=704}else{Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,Db);wd=704;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){yd=+(c[zd>>2]|0)}else{yd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e}}while(0);if((wd|0)==704){wd=0;e=c[vd>>2]|0;yd=0.0}if((e|0)<1){Qe(-1,205192,Eb);e=xd;continue a}else{Bd=+W(+(yd*3.141592653589793/180.0));e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=Bd;e=xd;continue a}break};case 36:{e=c[vd>>2]|0;do{if((e|0)<99){if((c[d+(e<<4)>>2]|0)!=1){wd=737;break}zd=e+1|0;if((c[d+(zd<<4)>>2]|0)!=1){wd=735;break}if((e|0)==100){Qe(-1,203744,Fb);zd=c[vd>>2]|0;Ad=0}else{c[vd>>2]=zd;Ad=c[d+(e<<4)+8>>2]|0}do{if((zd|0)==100){Qe(-1,203744,Gb);wd=731}else{if((c[d+(zd<<4)>>2]|0)==1){e=zd+1|0;c[vd>>2]=e;zd=c[d+(zd<<4)+8>>2]|0;break}else{Qe(-1,204688,Hb);wd=731;break}}}while(0);if((wd|0)==731){wd=0;e=c[vd>>2]|0;zd=0}if((e|0)<1){Qe(-1,205192,Ib);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=zd-Ad;e=xd;continue a}}else{wd=735}}while(0);do{if((wd|0)==735){if((e|0)!=100){wd=737;break}Qe(-1,203744,jd);wd=743}}while(0);do{if((wd|0)==737){wd=0;zd=c[d+(e<<4)>>2]|0;if((zd+ -1|0)>>>0>=2){Qe(-1,204688,kd);wd=743;break}Ad=d+(e<<4)+8|0;if((zd|0)==1){yd=+(c[Ad>>2]|0)}else{yd=+h[Ad>>3]}e=e+1|0;c[vd>>2]=e}}while(0);if((wd|0)==743){wd=0;e=c[vd>>2]|0;yd=0.0}do{if((e|0)==100){Qe(-1,203744,ld);wd=752}else{Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,md);wd=752;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){Bd=+(c[zd>>2]|0)}else{Bd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e}}while(0);if((wd|0)==752){wd=0;e=c[vd>>2]|0;Bd=0.0}if((e|0)<1){Qe(-1,205192,nd);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=Bd-yd;e=xd;continue a}break};case 35:{e=c[vd>>2]|0;do{if((e|0)==100){Qe(-1,203744,Jb);wd=716}else{Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,Kb);wd=716;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){yd=+(c[zd>>2]|0)}else{yd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e}}while(0);if((wd|0)==716){wd=0;e=c[vd>>2]|0;yd=0.0}if((e|0)<1){Qe(-1,205192,Lb);e=xd;continue a}else{Bd=+T(+yd);e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=Bd;e=xd;continue a}break};case 37:{e=c[vd>>2]|0;if((e|0)<1){Qe(-1,205192,Mb);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=1;e=xd;continue a}break};case 38:{e=c[vd>>2]|0;do{if((e|0)<100){if((c[d+(e<<4)>>2]|0)==1){e=xd;continue a}else{wd=763}}else{if((e|0)!=100){wd=763;break}Qe(-1,203744,Nb);yd=0.0;wd=769}}while(0);do{if((wd|0)==763){wd=0;Ad=c[d+(e<<4)>>2]|0;if((Ad+ -1|0)>>>0>=2){Qe(-1,204688,od);yd=0.0;wd=769;break}zd=d+(e<<4)+8|0;if((Ad|0)==1){yd=+(c[zd>>2]|0)}else{yd=+h[zd>>3]}e=e+1|0;c[vd>>2]=e;if(yd>=0.0){wd=769;break}yd=+ca(+yd)}}while(0);if((wd|0)==769){wd=0;yd=+R(+yd);e=c[vd>>2]|0}if((e|0)<1){Qe(-1,205192,pd);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=yd;e=xd;continue a}break};case 39:{e=c[vd>>2]|0;do{if((e|0)<99){if((c[d+(e<<4)>>2]|0)!=1){wd=791;break}zd=e+1|0;if((c[d+(zd<<4)>>2]|0)!=1){wd=789;break}if((e|0)==100){Qe(-1,203744,Ob);zd=c[vd>>2]|0;Ad=0}else{c[vd>>2]=zd;Ad=c[d+(e<<4)+8>>2]|0}do{if((zd|0)==100){Qe(-1,203744,Pb);wd=785}else{if((c[d+(zd<<4)>>2]|0)==1){e=zd+1|0;c[vd>>2]=e;zd=c[d+(zd<<4)+8>>2]|0;break}else{Qe(-1,204688,Qb);wd=785;break}}}while(0);if((wd|0)==785){wd=0;e=c[vd>>2]|0;zd=0}if((e|0)<1){Qe(-1,205192,Rb);e=xd;continue a}else{e=e+ -1|0;c[vd>>2]=e;c[d+(e<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=zd^Ad;e=xd;continue a}}else{wd=789}}while(0);do{if((wd|0)==789){wd=0;if((e|0)!=100){wd=791;break}Qe(-1,203744,td);e=0}}while(0);do{if((wd|0)==791){wd=0;if((c[d+(e<<4)>>2]|0)==0){c[vd>>2]=e+1;e=(a[d+(e<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,ud);e=0;break}}}while(0);zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,rd);Ad=0}else{if((c[d+(zd<<4)>>2]|0)==0){c[vd>>2]=zd+1;Ad=(a[d+(zd<<4)+8|0]&1)!=0;break}else{Qe(-1,204688,sd);Ad=0;break}}}while(0);zd=c[vd>>2]|0;if((zd|0)<1){Qe(-1,205192,qd);e=xd;continue a}else{Cd=zd+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=0;a[d+(c[vd>>2]<<4)+8|0]=(Ad^e)&1;e=xd;continue a}break};case 41:{zd=c[vd>>2]|0;do{if((zd|0)==100){Qe(-1,203744,Sb);wd=815}else{if((c[d+(zd<<4)>>2]|0)!=0){Qe(-1,204688,Tb);wd=815;break}c[vd>>2]=zd+1;if((a[d+(zd<<4)+8|0]&1)==0){wd=815;break}bI(b,d,e+3|0)}}while(0);if((wd|0)==815){wd=0;bI(b,d,c[(c[j>>2]|0)+(xd<<4)+8>>2]|0)}e=c[(c[j>>2]|0)+(e+2<<4)+8>>2]|0;continue a};case 40:{xd=c[vd>>2]|0;do{if((xd|0)==100){Qe(-1,203744,Ub)}else{if((c[d+(xd<<4)>>2]|0)!=0){Qe(-1,204688,Vb);break}c[vd>>2]=xd+1;if((a[d+(xd<<4)+8|0]&1)==0){break}bI(b,d,e+3|0)}}while(0);e=c[(c[j>>2]|0)+(e+2<<4)+8>>2]|0;continue a};case 42:{break a};default:{e=xd;continue a}}}else if((xd|0)==2){Ad=e+1|0;xd=c[vd>>2]|0;if((xd|0)<1){Qe(-1,205192,Wb);e=Ad;continue}else{Bd=+h[zd+(e<<4)+8>>3];Cd=xd+ -1|0;c[vd>>2]=Cd;c[d+(Cd<<4)>>2]=2;h[d+(c[vd>>2]<<4)+8>>3]=Bd;e=Ad;continue}}else if((xd|0)==1){Ad=e+1|0;xd=c[vd>>2]|0;if((xd|0)<1){Qe(-1,205192,Yb);e=Ad;continue}else{Cd=c[zd+(e<<4)+8>>2]|0;zd=xd+ -1|0;c[vd>>2]=zd;c[d+(zd<<4)>>2]=1;c[d+(c[vd>>2]<<4)+8>>2]=Cd;e=Ad;continue}}else{Qe(-1,204408,Xb);continue}}i=g;return}function cI(b){b=b|0;var d=0;d=i;c[b>>2]=205072;if((a[b+4|0]&1)==0){i=d;return}b=c[b+12>>2]|0;if((b|0)==0){i=d;return}IW(b);i=d;return}function dI(b){b=b|0;var d=0,e=0;d=i;b=FW(1048)|0;c[b>>2]=202568;c[b+4>>2]=32;c[b+8>>2]=32;e=0;do{h[b+16+(e<<4)>>3]=0.0;h[b+16+(e<<4)+8>>3]=1.0;e=e+1|0;}while((e|0)<32);a[b+1040|0]=0;i=d;return b|0}function eI(a){a=a|0;i=i;return-1}function fI(a){a=a|0;i=i;return-1}function gI(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;b=FW(2600)|0;$W(b|0,a|0,2600)|0;e=c[b+2588>>2]|0;f=ye(e,8)|0;c[b+2584>>2]=f;$W(f|0,c[a+2584>>2]|0,e<<3|0)|0;c[b+2592>>2]=ye(1<<c[b+4>>2],8)|0;i=d;return b|0}function hI(a){a=a|0;i=i;return 0}function iI(b){b=b|0;i=i;return(a[b+2596|0]&1)!=0|0}function jI(a){a=a|0;var b=0,c=0;c=i;b=FW(1576)|0;$W(b|0,a|0,1576)|0;i=c;return b|0}function kI(a){a=a|0;i=i;return 2}function lI(b){b=b|0;i=i;return(a[b+1569|0]&1)!=0|0}function mI(a){a=a|0;var b=0,c=0;c=i;b=FW(1072)|0;RH(b,a);i=c;return b|0}function nI(a){a=a|0;i=i;return 3}function oI(b){b=b|0;i=i;return(a[b+1064|0]&1)!=0|0}function pI(a){a=a|0;var b=0,c=0;c=i;b=FW(1072)|0;ZH(b,a);i=c;return b|0}function qI(a){a=a|0;i=i;return 4}function rI(b){b=b|0;i=i;return(a[b+1060|0]&1)!=0|0}function sI(b){b=b|0;var d=0,e=0;d=i;c[b>>2]=205072;do{if((a[b+4|0]&1)!=0){e=c[b+12>>2]|0;if((e|0)==0){break}IW(e)}}while(0);HW(b);i=d;return}function tI(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a+8>>2]|0;if((e|0)!=(c[b+8>>2]|0)){f=0;i=d;return f|0}a=a+12|0;b=b+12|0;f=0;while(1){if((f|0)>=(e|0)){a=1;e=5;break}if(+h[(c[a>>2]|0)+(f<<3)>>3]==+h[(c[b>>2]|0)+(f<<3)>>3]){f=f+1|0}else{a=0;e=5;break}}if((e|0)==5){i=d;return a|0}return 0}function uI(a){a=a|0;var b=0;b=i;c[a>>2]=205136;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}IW(a);i=b;return}function vI(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=205136;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}IW(d);HW(a);i=b;return}function wI(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=a+4|0;c[e>>2]=b;b=ye(b,1)|0;c[a>>2]=b;bX(b|0,0,c[e>>2]|0)|0;i=d;return}function xI(a){a=a|0;var b=0;b=i;bX(c[a>>2]|0,0,c[a+4>>2]|0)|0;i=b;return}function yI(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function zI(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;b=FW(8)|0;e=a+4|0;g=c[e>>2]|0;c[b+4>>2]=g;f=ye(g,1)|0;c[b>>2]=f;bXbX(m|0,0,40)|0;bX(j|0,0,16)|0;bXbX(e|0,0,96)|0;c[e>>2]=a;c[b>>2]=e;i=d;return g|0}function jJ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;do{if((b|0)>0){f=Bd[c[a+4>>2]&255](a,b)|0;g=(f|0)==0;a=g?64:0;if(g){f=0;break}bX(f|0,0,b|0)|0}else{f=0;a=b>>31&6}}while(0);c[d>>2]=a;i=e;return f|0}function kJ(a){a=a|0;var d=0,e=0;d=i;e=a+20|0;b[a+22>>1]=0;b[e>>1]=0;c[a+48>>2]=0;$W(a+56|0,e|0,36)|0;i=d;return}function lJ(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)==0){i=d;return}hd[c[a+8>>2]&127](a,b);i=d;return}function mJ(a){a=a|0;var d=0,e=0,f=0,g=0;e=i;if((a|0)==0){i=e;return}d=c[a>>2]|0;f=a+24|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;f=a+28|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;f=a+32|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;f=a+40|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;g=a+52|0;f=c[g>>2]|0;if((f|0)!=0){hd[c[d+8>>2]&127](d,f)}c[g>>2]=0;c[a+44>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;g=a+20|0;b[a+22>>1]=0;b[g>>1]=0;c[a+48>>2]=0;$W(a+56|0,g|0,36)|0;hd[c[d+8>>2]&127](d,a);i=e;return}function nJ(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;k=c[d>>2]|0;f=d+4|0;j=c[f>>2]|0;h=j<<1;a:do{if((h|0)<0){f=6}else{do{if((h|0)==0){k=0;g=10}else{if((h|0)>268435455){f=10;break a}j=j<<4;do{if((j|0)>0){k=Bd[c[k+4>>2]&255](k,j)|0;l=(k|0)==0;m=l?64:0;if(l){k=0;break}bX(k|0,0,j|0)|0}else{k=0;m=j>>31&6}}while(0);l=(m|0)==0;if(l&(h|0)>0){bX(k|0,0,j|0)|0;g=10;break}h=d+40|0;c[h>>2]=k;if(l){break}i=e;return m|0}}while(0);if((g|0)==10){h=d+40|0;c[h>>2]=k}a[d+16|0]=1;k=c[h>>2]|0;l=c[f>>2]|0;c[d+44>>2]=k+(l<<3);m=b[d+22>>1]|0;c[d+60>>2]=(c[d+24>>2]|0)+(m<<3);c[d+64>>2]=(c[d+28>>2]|0)+m;c[d+68>>2]=(c[d+32>>2]|0)+(b[d+20>>1]<<1);c[d+76>>2]=(c[h>>2]|0)+(m<<3);c[d+80>>2]=k+(l+m<<3);m=0;i=e;return m|0}}while(0);c[d+40>>2]=0;m=f;i=e;return m|0}function oJ(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;a:do{if((d|b|e|0)<0){a=6}else{do{if((e|0)==0|(b|0)==0){if((f|0)==0){f=0;a=0;break}hd[c[a+8>>2]&127](a,f);f=0;a=0}else{if((2147483647/(b|0)|0|0)<(e|0)){a=10;break a}if((d|0)!=0){k=da(d,b)|0;j=da(e,b)|0;a=pd[c[a+12>>2]&63](a,k,j,f)|0;j=(a|0)==0;f=j?f:a;a=j?64:0;break}j=da(e,b)|0;if((j|0)<=0){f=0;a=j>>31&6;break}f=Bd[c[a+4>>2]&255](a,j)|0;k=(f|0)==0;a=k?64:0;if(k){f=0;break}bX(f|0,0,j|0)|0}}while(0);if(!((a|0)==0&(e|0)>(d|0))){break}bX(f+(da(d,b)|0)|0,0,da(e-d|0,b)|0)|0;a=0}}while(0);c[g>>2]=a;i=h;return f|0}function pJ(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;j=c[d>>2]|0;h=d+22|0;l=(b[h>>1]|0)+e+(b[d+58>>1]|0)|0;e=d+4|0;k=c[e>>2]|0;a:do{if(l>>>0>k>>>0){m=l+7|0;l=m&-8;if(l>>>0>32767){s=10;i=g;return s|0}p=d+24|0;q=c[p>>2]|0;b:do{if((m|k|0)<0){d=6}else{o=(l|0)==0;do{if(o){if((q|0)==0){q=0;r=0;break}hd[c[j+8>>2]&127](j,q);q=0;r=0}else{if((l|0)>268435455){d=10;break b}if((k|0)!=0){r=pd[c[j+12>>2]&63](j,k<<3,l<<3,q)|0;n=(r|0)==0;q=n?q:r;r=n?64:0;break}s=l<<3;if((l|0)<=0){q=0;r=m>>>28&6;break}q=Bd[c[j+4>>2]&255](j,s)|0;r=(q|0)==0;n=r?64:0;if(r){q=0;r=n;break}bX(q|0,0,s|0)|0;r=n}}while(0);s=(r|0)==0;n=(l|0)>(k|0);do{if(s&n){bX(q+(k<<3)|0,0,l-k<<3|0)|0;c[p>>2]=q}else{c[p>>2]=q;if(s){break}else{q=r}i=g;return q|0}}while(0);p=d+28|0;q=c[p>>2]|0;do{if(o){if((q|0)==0){o=0;q=0;break}hd[c[j+8>>2]&127](j,q);o=0;q=0}else{if((k|0)!=0){o=pd[c[j+12>>2]&63](j,k,l,q)|0;m=(o|0)==0;o=m?q:o;q=m?64:0;break}if((l|0)<=0){o=0;q=m>>31&6;break}o=Bd[c[j+4>>2]&255](j,l)|0;m=(o|0)==0;q=m?64:0;if(m){o=0;break}bX(o|0,0,l|0)|0}}while(0);m=(q|0)==0;do{if(m&n){bX(o+k|0,0,l-k|0)|0;c[p>>2]=o}else{c[p>>2]=o;if(m){break}i=g;return q|0}}while(0);c:do{if((a[d+16|0]|0)!=0){o=k<<1;n=l<<1;m=d+40|0;p=c[m>>2]|0;d:do{if((n|o|0)<0){d=6}else{do{if((n|0)==0){if((p|0)==0){p=0;q=0;break}hd[c[j+8>>2]&127](j,p);p=0;q=0}else{if((n|0)>268435455){d=10;break d}if((o|0)!=0){r=pd[c[j+12>>2]&63](j,k<<4,l<<4,p)|0;q=(r|0)==0;p=q?p:r;q=q?64:0;break}r=l<<4;if((r|0)<=0){p=0;q=r>>31&6;break}p=Bd[c[j+4>>2]&255](j,r)|0;s=(p|0)==0;q=s?64:0;if(s){p=0;break}bX(p|0,0,r|0)|0}}while(0);r=(q|0)==0;do{if(r&(n|0)>(o|0)){bX(p+(k<<4)|0,0,n-o<<3|0)|0;c[m>>2]=p}else{c[m>>2]=p;if(r){break}i=g;return q|0}}while(0);aX(p+(l<<3)|0,p+(k<<3)|0,k<<3|0)|0;c[d+44>>2]=(c[m>>2]|0)+(l<<3);break c}}while(0);c[m>>2]=p;s=d;i=g;return s|0}}while(0);c[e>>2]=l;n=1;break a}}while(0);c[p>>2]=q;s=d;i=g;return s|0}else{n=0}}while(0);k=d+8|0;l=c[k>>2]|0;e=d+20|0;m=b[e>>1]|0;f=(m<<16>>16)+f+(b[d+56>>1]|0)|0;e:do{if(f>>>0>l>>>0){o=f+3|0;f=o&-4;if(f>>>0>32767){s=10;i=g;return s|0}m=d+32|0;n=c[m>>2]|0;f:do{if((o|l|0)<0){d=6}else{do{if((f|0)==0){if((n|0)==0){j=0;q=0;break}hd[c[j+8>>2]&127](j,n);j=0;q=0}else{if((f|0)>1073741823){d=10;break f}if((l|0)!=0){j=pd[c[j+12>>2]&63](j,l<<1,f<<1,n)|0;o=(j|0)==0;j=o?n:j;q=o?64:0;break}n=f<<1;if((f|0)<=0){j=0;q=o>>30&6;break}j=Bd[c[j+4>>2]&255](j,n)|0;o=(j|0)==0;q=o?64:0;if(o){j=0;break}bX(j|0,0,n|0)|0}}while(0);n=(q|0)==0;do{if(n&(f|0)>(l|0)){bX(j+(l<<1)|0,0,f-l<<1|0)|0;c[m>>2]=j}else{c[m>>2]=j;if(n){break}i=g;return q|0}}while(0);c[k>>2]=f;m=b[e>>1]|0;break e}}while(0);c[m>>2]=n;s=d;i=g;return s|0}else{if(n<<24>>24==0){s=0;i=g;return s|0}else{j=c[d+32>>2]|0;break}}}while(0);h=b[h>>1]|0;c[d+60>>2]=(c[d+24>>2]|0)+(h<<3);c[d+64>>2]=(c[d+28>>2]|0)+h;c[d+68>>2]=j+(m<<16>>16<<1);if((a[d+16|0]|0)==0){s=0;i=g;return s|0}c[d+76>>2]=(c[d+40>>2]|0)+(h<<3);c[d+80>>2]=(c[d+44>>2]|0)+(h<<3);s=0;i=g;return s|0}function qJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;k=c[a>>2]|0;e=a+48|0;f=(c[e>>2]|0)+b+(c[a+84>>2]|0)|0;b=a+12|0;h=c[b>>2]|0;if(f>>>0<=h>>>0){m=0;i=d;return m|0}l=f+1|0;g=l&-2;f=a+52|0;j=c[f>>2]|0;a:do{if((l|h|0)<0){a=6}else{do{if((g|0)==0){if((j|0)==0){j=0;k=0;break}hd[c[k+8>>2]&127](k,j);j=0;k=0}else{if((g|0)>67108863){a=10;break a}if((h|0)!=0){l=pd[c[k+12>>2]&63](k,h<<5,g<<5,j)|0;k=(l|0)==0;j=k?j:l;k=k?64:0;break}j=g<<5;if((g|0)<=0){j=0;k=l>>>26&6;break}m=Bd[c[k+4>>2]&255](k,j)|0;l=(m|0)==0;k=l?64:0;if(l){j=0;break}bX(m|0,0,j|0)|0;j=m}}while(0);l=(k|0)==0;do{if(l&(g|0)>(h|0)){bX(j+(h<<5)|0,0,g-h<<5|0)|0;c[f>>2]=j}else{c[f>>2]=j;if(l){break}i=d;return k|0}}while(0);c[b>>2]=g;c[a+88>>2]=j+(c[e>>2]<<5);m=0;i=d;return m|0}}while(0);c[f>>2]=j;m=a;i=d;return m|0}function rJ(d){d=d|0;var e=0,f=0,g=0;e=i;b[d+58>>1]=0;b[d+56>>1]=0;c[d+84>>2]=0;f=b[d+22>>1]|0;c[d+60>>2]=(c[d+24>>2]|0)+(f<<3);c[d+64>>2]=(c[d+28>>2]|0)+f;c[d+68>>2]=(c[d+32>>2]|0)+(b[d+20>>1]<<1);if((a[d+16|0]|0)==0){f=d+52|0;f=c[f>>2]|0;g=d+48|0;g=c[g>>2]|0;g=g<<5;g=f+g|0;f=d+88|0;c[f>>2]=g;i=e;return}c[d+76>>2]=(c[d+40>>2]|0)+(f<<3);c[d+80>>2]=(c[d+44>>2]|0)+(f<<3);g=d+52|0;g=c[g>>2]|0;f=d+48|0;f=c[f>>2]|0;f=f<<5;f=g+f|0;g=d+88|0;c[g>>2]=f;i=e;return}function sJ(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;if((d|0)==0){i=g;return}j=d+56|0;r=b[j>>1]|0;n=r<<16>>16;l=d+22|0;o=b[l>>1]|0;h=d+58|0;p=(b[h>>1]|0)+o<<16>>16;b[l>>1]=p;m=d+20|0;q=r+(b[m>>1]|0)<<16>>16;b[m>>1]=q;k=d+84|0;f=d+48|0;c[f>>2]=(c[f>>2]|0)+(c[k>>2]|0);e=d+68|0;if(r<<16>>16!=0){p=0;do{r=(c[e>>2]|0)+(p<<1)|0;b[r>>1]=(b[r>>1]|0)+o<<16>>16;p=p+1|0;}while(p>>>0<n>>>0);q=b[m>>1]|0;p=b[l>>1]|0}b[h>>1]=0;b[j>>1]=0;c[k>>2]=0;h=p<<16>>16;c[d+60>>2]=(c[d+24>>2]|0)+(h<<3);c[d+64>>2]=(c[d+28>>2]|0)+h;c[e>>2]=(c[d+32>>2]|0)+(q<<16>>16<<1);if((a[d+16|0]|0)!=0){c[d+76>>2]=(c[d+40>>2]|0)+(h<<3);c[d+80>>2]=(c[d+44>>2]|0)+(h<<3)}c[d+88>>2]=(c[d+52>>2]|0)+(c[f>>2]<<5);i=g;return}function tJ(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=i;g=b[e+22>>1]|0;j=g<<16>>16;h=b[e+20>>1]|0;k=h<<16>>16;l=pJ(d,j,k)|0;if((l|0)!=0){i=f;return l|0}m=d+24|0;q=j<<3;$W(c[m>>2]|0,c[e+24>>2]|0,q|0)|0;n=d+28|0;$W(c[n>>2]|0,c[e+28>>2]|0,j|0)|0;o=d+32|0;$W(c[o>>2]|0,c[e+32>>2]|0,k<<1|0)|0;r=d+16|0;p=a[r]|0;do{if(p<<24>>24==0){p=0}else{if((a[e+16|0]|0)==0){break}$W(c[d+40>>2]|0,c[e+40>>2]|0,q|0)|0;$W(c[d+44>>2]|0,c[e+44>>2]|0,q|0)|0;p=a[r]|0}}while(0);b[d+22>>1]=g;b[d+20>>1]=h;c[d+60>>2]=(c[m>>2]|0)+(j<<3);c[d+64>>2]=(c[n>>2]|0)+j;c[d+68>>2]=(c[o>>2]|0)+(k<<1);if(p<<24>>24==0){i=f;return l|0}c[d+76>>2]=(c[d+40>>2]|0)+(j<<3);c[d+80>>2]=(c[d+44>>2]|0)+(j<<3);i=f;return l|0}function uJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;a:do{if((a|0)==0|(b|0)==0){b=0}else{e=c[a>>2]|0;if((e|0)==0){b=0;break}else{f=a}while(1){a=f+8|0;if((Qc(e|0,b|0)|0)==0){break}e=c[a>>2]|0;if((e|0)==0){b=0;break a}else{f=a}}b=c[f+4>>2]|0}}while(0);i=d;return b|0}function vJ(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;c[a+12>>2]=0;i=i;return}function wJ(a,b){a=a|0;b=b|0;c[a+12>>2]=b;_a(a+16|0,1)}function xJ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;c[d>>2]=0;if((a|0)==0){h=33;i=e;return h|0}if((b|0)==0){h=6;i=e;return h|0}a=c[a>>2]|0;f=Bd[c[a+4>>2]&255](a,40)|0;h=(f|0)==0;g=h?64:0;if(h){h=64;i=e;return h|0}bX(f|0,0,40)|0;c[f+28>>2]=a;h=c[b>>2]|0;do{if((h&1|0)==0){if((h&4|0)!=0){b=b+12|0;g=HL(f,c[b>>2]|0)|0;c[f+16>>2]=c[b>>2];b=12;break}if((h&2|0)==0){g=6;b=13;break}h=b+16|0;b=c[h>>2]|0;if((b|0)==0){g=6;b=13;break}if((f|0)==0){f=b;b=12;break}hd[c[a+8>>2]&127](a,f);f=c[h>>2]|0;b=12}else{h=c[b+8>>2]|0;c[f>>2]=c[b+4>>2];c[f+4>>2]=h;c[f+8>>2]=0;c[f+32>>2]=0;c[f+20>>2]=0;c[f+24>>2]=0;b=12}}while(0);do{if((b|0)==12){if((g|0)!=0){b=13;break}c[f+28>>2]=a;g=0}}while(0);do{if((b|0)==13){if((f|0)==0){f=0;break}hd[c[a+8>>2]&127](a,f);f=0}}while(0);c[d>>2]=f;h=g;i=e;return h|0}function yJ(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=0;c[a+32>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;i=i;return}function zJ(a){a=a|0;var b=0,d=0;b=i;do{if((a|0)!=0){d=c[a+24>>2]|0;if((d|0)==0){break}fd[d&511](a)}}while(0);i=b;return}function AJ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;e=a+156|0;d=c[e>>2]|0;do{if((d|0)!=0){if((c[d+4>>2]&1|0)==0){break}f=c[(c[a+4>>2]|0)+100>>2]|0;a=a+88|0;g=c[a>>2]|0;if((g|0)!=0){hd[c[f+8>>2]&127](f,g);d=c[e>>2]|0}c[a>>2]=0;g=d+4|0;c[g>>2]=c[g>>2]&-2;i=b;return}}while(0);c[a+88>>2]=0;i=b;return}function BJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;g=a+156|0;f=c[g>>2]|0;do{if((f|0)!=0){if((c[f+4>>2]&1|0)==0){break}j=c[(c[a+4>>2]|0)+100>>2]|0;e=a+88|0;h=c[e>>2]|0;if((h|0)!=0){hd[c[j+8>>2]&127](j,h);f=c[g>>2]|0}c[e>>2]=0;j=f+4|0;c[j>>2]=c[j>>2]&-2;j=a+88|0;c[j>>2]=b;i=d;return}}while(0);c[a+88>>2]=0;j=a+88|0;c[j>>2]=b;i=d;return}function CJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=c[(c[a+4>>2]|0)+100>>2]|0;g=(c[a+156>>2]|0)+4|0;f=c[g>>2]|0;if((f&1|0)==0){c[g>>2]=f|1}else{g=a+88|0;f=c[g>>2]|0;if((f|0)!=0){hd[c[e+8>>2]&127](e,f)}c[g>>2]=0}do{if((b|0)>0){f=Bd[c[e+4>>2]&255](e,b)|0;g=(f|0)==0;e=g?64:0;if(g){f=0;break}bX(f|0,0,b|0)|0}else{f=0;e=b>>31&6}}while(0);c[a+88>>2]=f;i=d;return e|0}function DJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;if((a|0)==0){n=6;i=f;return n|0}j=a+96|0;g=c[j>>2]|0;if((g|0)==0){n=6;i=f;return n|0}e=c[g+8>>2]|0;k=c[(c[g+20>>2]|0)+44>>2]|0;do{if((k|0)>0){g=Bd[c[e+4>>2]&255](e,k)|0;l=(g|0)==0;h=l?64:0;if(l){g=0;break}bX(g|0,0,k|0)|0}else{g=0;h=k>>31&6}}while(0);if((h|0)!=0){if((b|0)==0){n=h;i=f;return n|0}c[b>>2]=0;n=h;i=f;return n|0}h=g+4|0;c[h>>2]=a;m=c[j>>2]|0;j=c[m+20>>2]|0;k=c[m+8>>2]|0;c[g>>2]=c[m+4>>2];n=k+4|0;l=Bd[c[n>>2]&255](k,40)|0;do{if((l|0)==0){b=64}else{bX(l|0,0,40)|0;c[g+156>>2]=l;if((c[c[m>>2]>>2]&512|0)==0){m=Bd[c[n>>2]&255](k,96)|0;if((m|0)==0){b=64;break}bXbX(k|0,0,p|0)|0}else{k=0;o=p>>31&6}}while(0);do{if((o|0)==0){o=Bd[c[l+4>>2]&255](l,64)|0;q=(o|0)==0;p=q?64:0;if(q){n=64;f=0;break}bX(o|0,0,64)|0;q=k+128|0;c[q>>2]=o;c[k+96>>2]=a;c[k+100>>2]=l;c[k+104>>2]=d;c[o+52>>2]=0;a:do{if((f|0)>0){r=0;do{a=(c[q>>2]|0)+52|0;if((c[a>>2]|0)!=0){break a}if((c[g+(r<<3)>>2]|0)==1768842098){c[a>>2]=c[g+(r<<3)+4>>2]}r=r+1|0;}while((r|0)<(f|0))}}while(0);a=c[m+48>>2]|0;if((a|0)!=0){p=Cd[a&63](d,k,e,f,g)|0}if((p|0)!=0){n=p;f=o;break}l=c[k+40>>2]|0;if((l|0)==0){c[h>>2]=k;r=0;i=j;return r|0}m=(c[k+36>>2]|0)+ -1|0;b:do{if((m|0)>=0){m=l+(m<<2)|0;g=m;c:do{f=c[g>>2]|0;do{if((c[f+4>>2]|0)==1970170211){e=b[f+8>>1]|0;if(e<<16>>16==3){if((b[f+10>>1]|0)!=10){break}}else if(e<<16>>16==0){if((b[f+10>>1]|0)!=4){break}}else{break}if((g-l|0)<=60){n=25;break c}}}while(0);g=g+ -4|0;}while(g>>>0>=l>>>0);if((n|0)==25){c[k+92>>2]=f;break}while(1){n=c[m>>2]|0;if((c[n+4>>2]|0)==1970170211){if((m-l|0)<=60){break}}m=m+ -4|0;if(m>>>0<l>>>0){break b}}c[k+92>>2]=n}}while(0);c[h>>2]=k;r=0;i=j;return r|0}else{n=o;f=0}}while(0);e=(k|0)==0;if(!e){g=k+36|0;d=k+40|0;o=c[d>>2]|0;if((c[g>>2]|0)>0){a=0;do{p=c[o+(a<<2)>>2]|0;q=c[(c[p>>2]|0)+100>>2]|0;o=c[(c[p+12>>2]|0)+8>>2]|0;if((o|0)!=0){fd[o&511](p)}hd[c[q+8>>2]&127](q,p);c[(c[d>>2]|0)+(a<<2)>>2]=0;a=a+1|0;o=c[d>>2]|0}while((a|0)<(c[g>>2]|0))}if((o|0)!=0){hd[c[l+8>>2]&127](l,o)}c[d>>2]=0;c[g>>2]=0}m=c[m+52>>2]|0;if((m|0)!=0){fd[m&511](k)}if((f|0)!=0){hd[c[l+8>>2]&127](l,f)}if(!e){hd[c[l+8>>2]&127](l,k)}c[h>>2]=0;r=n;i=j;return r|0}function PJ(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a+20>>2]|0;if((e|0)==0){e=(c[a+4>>2]|0)>>>0<b>>>0?85:0}else{e=(pd[e&63](a,b,0,0)|0)==0;e=e?0:85}if((e|0)!=0){i=d;return e|0}c[a+8>>2]=b;i=d;return e|0}function QJ(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;g=i;o=i;i=i+8|0;n=i;i=i+8|0;m=c[a>>2]|0;j=b+8|0;h=c[j>>2]|0;k=b+4|0;if((h+3|0)>>>0>=(c[k>>2]|0)>>>0){z=85;i=g;return z|0}l=b+20|0;q=c[l>>2]|0;do{if((q|0)==0){r=(c[b>>2]|0)+h|0;if((r|0)!=0){q=h;p=7;break}c[j>>2]=h+4}else{if((pd[q&63](b,h,n,4)|0)==4){q=c[j>>2]|0;r=n;p=7;break}else{z=85;i=g;return z|0}}}while(0);do{if((p|0)==7){z=(d[r+1|0]|0)<<16|(d[r]|0)<<24|(d[r+2|0]|0)<<8|(d[r+3|0]|0);p=q+4|0;c[j>>2]=p;if((z|0)!=1954115633){break}r=c[k>>2]|0;if((q+5|0)>>>0>=r>>>0){z=85;i=g;return z|0}s=c[l>>2]|0;do{if((s|0)==0){o=(c[b>>2]|0)+p|0;if((o|0)!=0){r=0;s=p;p=14;break}c[j>>2]=q+6;o=r;r=q+12|0;q=0;p=17}else{if((pd[s&63](b,p,o,2)|0)==2){r=c[l>>2]|0;s=c[j>>2]|0;p=14;break}else{z=85;i=g;return z|0}}}while(0);do{if((p|0)==14){q=((d[o]|0)<<8&65535|(d[o+1|0]|0))&65535;c[j>>2]=s+2;s=s+8|0;if((r|0)==0){o=c[k>>2]|0;r=s;p=17;break}else{z=(pd[r&63](b,s,0,0)|0)==0;o=z?0:85;break}}}while(0);if((p|0)==17){s=r;o=o>>>0<r>>>0?85:0}if((o|0)!=0){z=o;i=g;return z|0}c[j>>2]=s;if((q|0)==0){z=142;i=g;return z|0}r=(e|0)>-1;o=(e|0)<0;p=s;u=0;s=1;t=-1;a:while(1){x=c[k>>2]|0;if((p+3|0)>>>0>=x>>>0){x=85;p=71;break}v=c[l>>2]|0;do{if((v|0)==0){v=(c[b>>2]|0)+p|0;if((v|0)!=0){x=0;z=p;p=29;break}c[j>>2]=p+4;y=p+8|0;z=p;v=0;p=32}else{if((pd[v&63](b,p,n,4)|0)!=4){x=85;p=71;break a}x=c[l>>2]|0;z=c[j>>2]|0;v=n;p=29}}while(0);do{if((p|0)==29){p=0;v=(d[v+1|0]|0)<<16|(d[v]|0)<<24|(d[v+2|0]|0)<<8|(d[v+3|0]|0);c[j>>2]=z+4;w=z+8|0;if((x|0)==0){x=c[k>>2]|0;y=w;p=32;break}else{y=(pd[x&63](b,w,0,0)|0)==0;x=y?0:85;break}}}while(0);if((p|0)==32){p=0;w=y;x=x>>>0<y>>>0?85:0}if((x|0)!=0){p=71;break}c[j>>2]=w;y=c[k>>2]|0;if((z+11|0)>>>0>=y>>>0){x=85;p=71;break}x=c[l>>2]|0;if((x|0)==0){x=(c[b>>2]|0)+w|0;if((x|0)==0){x=0}else{p=39}}else{if((pd[x&63](b,w,n,4)|0)!=4){x=85;p=71;break}y=c[k>>2]|0;w=c[j>>2]|0;x=n;p=39}if((p|0)==39){p=0;x=(d[x+1|0]|0)<<16|(d[x]|0)<<24|(d[x+2|0]|0)<<8|(d[x+3|0]|0)}z=w+4|0;c[j>>2]=z;if((w+7|0)>>>0>=y>>>0){x=85;p=71;break}w=c[l>>2]|0;if((w|0)==0){w=(c[b>>2]|0)+z|0;if((w|0)==0){w=0}else{p=45}}else{if((pd[w&63](b,z,n,4)|0)!=4){x=85;p=71;break}z=c[j>>2]|0;w=n;p=45}if((p|0)==45){w=(d[w+1|0]|0)<<16|(d[w]|0)<<24|(d[w+2|0]|0)<<8|(d[w+3|0]|0)}p=z+4|0;c[j>>2]=p;if((v|0)==1415139377){x=x+24|0;w=w+ -24|0;if(o){n=w;u=0;p=50;break}else{u=0;t=t+1|0}}else if((v|0)==1128875040){x=x+22|0;w=w+ -22|0;if(o){n=w;u=1;p=50;break}else{u=1;t=t+1|0}}if(r&(t|0)==(e|0)){n=w;p=50;break}if((s|0)>=(q|0)){x=142;p=71;break}s=s+1|0}if((p|0)==50){p=x+h|0;q=c[l>>2]|0;if((q|0)==0){q=(c[k>>2]|0)>>>0<p>>>0?85:0}else{z=(pd[q&63](b,p,0,0)|0)==0;q=z?0:85}if((q|0)!=0){z=0;i=g;return z|0}c[j>>2]=p;do{if((n|0)>0){m=Bd[c[m+4>>2]&255](m,n)|0;p=(m|0)==0;x=p?64:0;if(p){m=0;break}bX(m|0,0,n|0)|0}else{m=0;x=n>>31&6}}while(0);do{if((x|0)==0){p=c[j>>2]|0;r=c[k>>2]|0;if(r>>>0<=p>>>0){z=85;i=g;return z|0}q=c[l>>2]|0;if((q|0)==0){q=r-p|0;q=q>>>0>n>>>0?n:q;$W(m|0,(c[b>>2]|0)+p|0,q|0)|0}else{q=pd[q&63](b,p,m,n)|0}c[j>>2]=q+p;if(q>>>0<n>>>0){z=85;i=g;return z|0}else{x=qL(a,m,n,o?e:0,u<<24>>24!=0?206512:206504,f)|0;break}}}while(0);if((x|0)==2){break}i=g;return x|0}else if((p|0)==71){i=g;return x|0}}}while(0);l=c[l>>2]|0;if((l|0)==0){b=(c[k>>2]|0)>>>0<h>>>0?85:0}else{z=(pd[l&63](b,h,0,0)|0)==0;b=z?0:85}if((b|0)!=0){z=b;i=g;return z|0}c[j>>2]=h;z=2;i=g;return z|0}function RJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;if((a|0)==0){k=35;i=d;return k|0}if((b|0)==0){k=36;i=d;return k|0}e=a+96|0;if((c[e>>2]|0)==0){k=34;i=d;return k|0}c[b>>2]=0;g=c[(c[e>>2]|0)+20>>2]|0;e=c[a+100>>2]|0;h=c[g+40>>2]|0;do{if((h|0)>0){f=Bd[c[e+4>>2]&255](e,h)|0;k=(f|0)==0;j=k?64:0;if(k){f=0;break}bX(f|0,0,h|0)|0}else{f=0;j=h>>31&6}}while(0);a:do{if((j|0)==0){h=Bd[c[e+4>>2]&255](e,12)|0;if((h|0)==0){j=64;break}bXbX(g|0,0,28)|0;c[h+16>>2]=65536;c[h+20>>2]=65536;i=f;return}a:do{switch(c[d>>2]|0){case 2:{j=(c[a+64>>2]|0)-(c[a+56>>2]|0)|0;l=(c[a+60>>2]|0)-(c[a+52>>2]|0)|0;k=11;break};case 4:{o=c[d+4>>2]|0;k=h+16|0;c[k>>2]=o;j=c[d+8>>2]|0;l=h+20|0;c[l>>2]=j;if((o|0)==0){c[k>>2]=j;p=j;o=j;q=0;l=0;k=44;break a}if((j|0)!=0){p=j;q=0;l=0;k=44;break a}c[l>>2]=o;p=o;q=0;l=0;k=44;break};case 1:{l=(b[a+70>>1]|0)-(b[a+72>>1]|0)|0;j=l;k=11;break};case 0:{l=e[a+68>>1]|0;j=l;k=11;break};case 3:{j=(b[a+70>>1]|0)-(b[a+72>>1]|0)|0;l=b[a+76>>1]|0;k=11;break};default:{j=0;l=0;k=11}}}while(0);do{if((k|0)==11){n=(l|0)<0?0-l|0:l;m=(j|0)<0?0-j|0:j;j=c[d+12>>2]|0;o=c[d+4>>2]|0;if((j|0)==0){l=o}else{l=((da(o,j)|0)+36|0)/72|0}p=c[d+16>>2]|0;q=d+8|0;j=c[q>>2]|0;if((p|0)!=0){j=((da(j,p)|0)+36|0)/72|0}if((o|0)==0){o=(j|0)<0?0-j|0:j;k=j^m;l=(m|0)<0?0-m|0:m;do{if((l|0)==0){r=2147483647}else{p=o>>16;q=o<<16;o=q+(l>>1)|0;if((p|0)==0){r=(o>>>0)/(l>>>0)|0;break}q=(o>>>0<q>>>0)+p|0;if(q>>>0<l>>>0){p=32;r=0}else{r=2147483647;break}while(1){r=r<<1;q=q<<1|o>>>31;if(q>>>0>=l>>>0){r=r|1;q=q-l|0}p=p+ -1|0;if((p|0)==0){break}else{o=o<<1}}}}while(0);o=(k|0)<0?0-r|0:r;c[h+20>>2]=o;c[h+16>>2]=o;p=o;q=j;l=_I(j,n,m)|0;k=44;break}r=(l|0)<0?0-l|0:l;o=l^n;p=(n|0)<0?0-n|0:n;do{if((p|0)==0){t=2147483647}else{s=r>>16;t=r<<16;r=t+(p>>1)|0;if((s|0)==0){t=(r>>>0)/(p>>>0)|0;break}u=(r>>>0<t>>>0)+s|0;if(u>>>0<p>>>0){s=32;t=0}else{t=2147483647;break}while(1){t=t<<1;u=u<<1|r>>>31;if(u>>>0>=p>>>0){t=t|1;u=u-p|0}s=s+ -1|0;if((s|0)==0){break}else{r=r<<1}}}}while(0);o=(o|0)<0?0-t|0:t;p=h+16|0;c[p>>2]=o;if((c[q>>2]|0)==0){c[h+20>>2]=o;p=o;q=_I(l,m,n)|0;k=44;break}q=(j|0)<0?0-j|0:j;n=j^m;m=(m|0)<0?0-m|0:m;do{if((m|0)==0){s=2147483647}else{r=q>>16;s=q<<16;q=s+(m>>1)|0;if((r|0)==0){s=(q>>>0)/(m>>>0)|0;break}t=(q>>>0<s>>>0)+r|0;if(t>>>0<m>>>0){r=32;s=0}else{s=2147483647;break}while(1){s=s<<1;t=t<<1|q>>>31;if(t>>>0>=m>>>0){s=s|1;t=t-m|0}r=r+ -1|0;if((r|0)==0){break}else{q=q<<1}}}}while(0);m=(n|0)<0?0-s|0:s;q=h+20|0;c[q>>2]=m;n=c[d>>2]|0;if((n|0)!=3){break}if((m|0)>(o|0)){c[q>>2]=o;p=o;q=j;k=44;break}else{c[p>>2]=m;p=m;o=m;q=j;k=44;break}}}while(0);if((k|0)==44){m=p;n=c[d>>2]|0;j=q}do{if((n|0)!=0){d=b[a+68>>1]|0;j=d&65535;k=d<<16>>16==0;if(k|(o|0)==65536){l=j}else{l=(o|0)<0;n=l?0-o|0:o;if((d&65535)<2049&n>>>0<1048577){n=((da(n,j)|0)+32768|0)>>>16}else{n=(((da(n&65535,j)|0)+32768|0)>>>16)+(da(n>>>16,j)|0)|0}l=l?0-n|0:n}if(k|(m|0)==65536){break}k=(m|0)<0;m=k?0-m|0:m;if((d&65535)<2049&m>>>0<1048577){d=((da(m,j)|0)+32768|0)>>>16}else{d=(((da(m&65535,j)|0)+32768|0)>>>16)+(da(m>>>16,j)|0)|0}j=k?0-d|0:d}}while(0);b[g>>1]=(l+32|0)>>>6;b[h+14>>1]=(j+32|0)>>>6;ZJ(a,g);i=f;return}function $J(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((a|0)==0){e=35;i=d;return e|0}if((c[a+8>>2]&2|0)==0){e=35;i=d;return e|0}if((b|0)<0){e=6;i=d;return e|0}if((c[a+28>>2]|0)<=(b|0)){e=6;i=d;return e|0}e=c[(c[(c[a+96>>2]|0)+20>>2]|0)+100>>2]|0;if((e|0)==0){YJ(a,b);e=0;i=d;return e|0}else{e=Bd[e&255](c[a+88>>2]|0,b)|0;i=d;return e|0}return 0}function aK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;if((a|0)==0){k=35;i=d;return k|0}if((b|0)==0){k=6;i=d;return k|0}h=c[b+4>>2]|0;if((h|0)<0){k=6;i=d;return k|0}g=c[b+8>>2]|0;if((g|0)<0){k=6;i=d;return k|0}j=c[b>>2]|0;if(j>>>0>4){k=6;i=d;return k|0}f=c[(c[a+96>>2]|0)+20>>2]|0;k=c[f+96>>2]|0;if((k|0)!=0){k=Bd[k&255](c[a+88>>2]|0,b)|0;i=d;return k|0}k=c[a+8>>2]|0;if((k&3|0)!=2){_J(a,b);k=0;i=d;return k|0}if((k&2|0)==0){k=35;i=d;return k|0}if((j|0)!=0){k=7;i=d;return k|0}j=c[b+12>>2]|0;if((j|0)==0){j=h}else{j=((da(j,h)|0)+36|0)/72|0}b=c[b+16>>2]|0;if((b|0)==0){b=g}else{b=((da(g,b)|0)+36|0)/72|0}h=(h|0)==0;k=(g|0)==0?j:b;g=(h?k:j)+32|0;b=(h?b:k)+32|0;h=c[a+28>>2]|0;if((h|0)<=0){k=23;i=d;return k|0}k=c[a+32>>2]|0;j=0;while(1){if(((c[k+(j<<4)+12>>2]|0)+32^b)>>>0<=63){if(((c[k+(j<<4)+8>>2]|0)+32^g)>>>0<=63){break}}j=j+1|0;if((j|0)>=(h|0)){a=23;e=25;break}}if((e|0)==25){i=d;return a|0}if(!((j|0)>-1&(h|0)>(j|0))){k=6;i=d;return k|0}e=c[f+100>>2]|0;if((e|0)==0){YJ(a,j);k=0;i=d;return k|0}else{k=Bd[e&255](c[a+88>>2]|0,j)|0;i=d;return k|0}return 0}function bK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;g=i;i=i+24|0;e=g;if((b|0)==0){h=d;b=d}else{h=(d|0)==0?b:d}d=(b|0)==0?1:b;h=(h|0)==0?1:h;c[g>>2]=0;c[e+4>>2]=d>>>0<65535?d<<6:4194240;c[e+8>>2]=h>>>0<65535?h<<6:4194240;c[e+12>>2]=0;c[e+16>>2]=0;b=aK(a,e)|0;i=f;return b|0}function cK(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;if((a|0)==0){m=35;i=g;return m|0}if((d|0)==0){m=6;i=g;return m|0}else if((d|0)==1970170211){d=c[a+40>>2]|0;if((d|0)==0){m=38;i=g;return m|0}j=(c[a+36>>2]|0)+ -1|0;if((j|0)<0){m=38;i=g;return m|0}j=d+(j<<2)|0;l=j;a:while(1){k=c[l>>2]|0;do{if((c[k+4>>2]|0)==1970170211){m=b[k+8>>1]|0;if(m<<16>>16==3){if((b[k+10>>1]|0)!=10){break}}else if(m<<16>>16==0){if((b[k+10>>1]|0)!=4){break}}else{break}if((l-d|0)<=60){e=12;break a}}}while(0);l=l+ -4|0;if(l>>>0<d>>>0){h=j;break}}if((e|0)==12){c[a+92>>2]=k;m=0;i=g;return m|0}while(1){j=c[h>>2]|0;if((c[j+4>>2]|0)==1970170211){if((h-d|0)<=60){break}}h=h+ -4|0;if(h>>>0<d>>>0){f=38;e=23;break}}if((e|0)==23){i=g;return f|0}c[a+92>>2]=j;m=0;i=g;return m|0}else{h=c[a+40>>2]|0;if((h|0)==0){m=38;i=g;return m|0}m=c[a+36>>2]|0;k=h+(m<<2)|0;if((m|0)>0){l=h}else{m=6;i=g;return m|0}while(1){j=c[l>>2]|0;if((c[j+4>>2]|0)==(d|0)){if((l-h|0)<=60){break}}l=l+4|0;if(l>>>0>=k>>>0){f=6;e=23;break}}if((e|0)==23){i=g;return f|0}c[a+92>>2]=j;m=0;i=g;return m|0}return 0}function dK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;h=i;i=i+8|0;if((a|0)==0){k=35;i=e;return k|0}f=a+40|0;g=c[f>>2]|0;if((g|0)==0){k=38;i=e;return k|0}do{if((b|0)!=0){j=c[b>>2]|0;if((j|0)==0){break}j=c[j+96>>2]|0;k=c[(c[j>>2]|0)+32>>2]|0;if((k|0)==0){break}j=Bd[k&255](j,206272)|0;if((j|0)==0){break}if((Bd[c[j>>2]&255](b,h)|0)!=0){break}if((c[h+4>>2]|0)==14){b=6}else{break}i=e;return b|0}}while(0);k=c[a+36>>2]|0;h=g+(k<<2)|0;if((k|0)<=0){k=6;i=e;return k|0}while(1){if((c[g>>2]|0)==(b|0)){if((g-(c[f>>2]|0)|0)<=60){break}}g=g+4|0;if(g>>>0>=h>>>0){b=6;d=14;break}}if((d|0)==14){i=e;return b|0}c[a+92>>2]=b;k=0;i=e;return k|0}function eK(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;if((b|0)==0|(e|0)==0){o=6;i=g;return o|0}k=c[e>>2]|0;if((k|0)==0){o=6;i=g;return o|0}j=c[k+100>>2]|0;n=c[b>>2]|0;do{if((n|0)>0){h=Bd[c[j+4>>2]&255](j,n)|0;o=(h|0)==0;m=o?64:0;if(o){h=0;break}bX(h|0,0,n|0)|0}else{h=0;m=n>>31&6}}while(0);a:do{if((m|0)==0){$W(h|0,e|0,12)|0;e=h+12|0;c[e>>2]=b;b=c[b+4>>2]|0;if((b|0)==0){l=10}else{m=Bd[b&255](h,d)|0;if((m|0)==0){l=10}}if((l|0)==10){l=k+36|0;d=c[l>>2]|0;m=d+1|0;k=k+40|0;b=c[k>>2]|0;b:do{if((m|d|0)<0){m=6}else{do{if((m|0)==0){if((b|0)==0){b=0;break}hd[c[j+8>>2]&127](j,b);b=0}else{if((d|0)>536870910){m=10;break b}do{if((d|0)==0){b=m<<2;n=Bd[c[j+4>>2]&255](j,b)|0;j=(n|0)==0;m=j?64:0;if(j){b=0;break}bX(n|0,0,b|0)|0;b=n}else{m=pd[c[j+12>>2]&63](j,d<<2,m<<2,b)|0;j=(m|0)==0;b=j?b:m;m=j?64:0}}while(0);if((m|0)!=0){break b}}}while(0);m=b+(d<<2)|0;a[m]=0;a[m+1|0]=0;a[m+2|0]=0;a[m+3|0]=0;c[k>>2]=b;m=c[l>>2]|0;c[l>>2]=m+1;c[b+(m<<2)>>2]=h;m=0;break a}}while(0);c[k>>2]=b}j=c[(c[h>>2]|0)+100>>2]|0;e=c[(c[e>>2]|0)+8>>2]|0;if((e|0)!=0){fd[e&511](h)}hd[c[j+8>>2]&127](j,h);h=0}}while(0);if((f|0)==0){o=m;i=g;return o|0}c[f>>2]=h;o=m;i=g;return o|0}function fK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=i;i=i+8|0;g=f;do{if((a|0)==0){g=0;f=0}else{h=c[a+92>>2]|0;if((h|0)==0){g=0;f=0;break}a=a+16|0;if((c[a>>2]|0)==0){g=0;f=0;break}c[f>>2]=b;j=h+12|0;do{b=Bd[c[(c[j>>2]|0)+16>>2]&255](h,g)|0;}while(b>>>0>=(c[a>>2]|0)>>>0);g=b;f=(b|0)==0?0:c[f>>2]|0}}while(0);if((d|0)==0){i=e;return f|0}c[d>>2]=g;i=e;return f|0}function gK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;if((a|0)==0){h=0;i=d;return h|0}if((c[a+8>>2]&512|0)==0){h=0;i=d;return h|0}e=a+128|0;f=(c[e>>2]|0)+40|0;h=c[f>>2]|0;if((h|0)==-2){h=0;i=d;return h|0}else if((h|0)==0){g=4}do{if((g|0)==4){h=c[a+96>>2]|0;g=c[(c[h>>2]|0)+32>>2]|0;if((g|0)==0){c[f>>2]=-2;h=0;i=d;return h|0}else{h=Bd[g&255](h,206256)|0;c[(c[e>>2]|0)+40>>2]=(h|0)!=0?h:-2;if((h|0)==0){a=0}else{break}i=d;return a|0}}}while(0);e=c[h+4>>2]|0;if((e|0)==0){h=0;i=d;return h|0}h=Bd[e&255](a,b)|0;i=d;return h|0}function hK(a){a=a|0;var b=0,d=0;b=i;do{if((a|0)==0){a=6}else{d=c[a>>2]|0;if((d|0)==0){a=6;break}if((c[d+96>>2]|0)==0){a=6;break}c[d+88>>2]=a;a=0}}while(0);i=b;return a|0}function iK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;if((a|0)==0){h=0;i=f;return h|0}h=c[a+156>>2]|0;a=(d|0)!=0;if(a){g=c[d>>2]|0;if((g|0)!=0){h=c[g+4>>2]|0}c[d>>2]=0}if((h|0)==0){h=0;i=f;return h|0}while(1){g=c[h+8>>2]|0;if((c[g+24>>2]|0)==(b|0)){break}h=c[h+4>>2]|0;if((h|0)==0){b=0;e=11;break}}if((e|0)==11){i=f;return b|0}if(!a){h=g;i=f;return h|0}c[d>>2]=h;h=g;i=f;return h|0}function jK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;g=b+72|0;j=c[g>>2]|0;a:do{if((j|0)==1869968492){m=a+156|0;h=m;m=c[m>>2]|0;l=c[a+164>>2]|0;f=8}else if((j|0)==1651078259){m=0;i=e;return m|0}else{h=a+156|0;if((a|0)==0){j=7;l=0;k=0}else{m=c[h>>2]|0;if((m|0)==0){m=0;l=0;f=8;break}while(1){l=c[m+8>>2]|0;if((c[l+24>>2]|0)==(j|0)){break}m=c[m+4>>2]|0;if((m|0)==0){m=0;l=0;break}}if((a|0)==0){j=7;k=0}else{f=8;break}}while(1){if((l|0)==0){break}j=pd[c[l+68>>2]&63](l,b,d,0)|0;if((j|0)!=0&(j&255|0)==19){l=0;k=1}else{d=1;b=l;break a}}i=e;return j|0}}while(0);b:do{if((f|0)==8){j=7;k=0;c:while(1){if((l|0)==0){break}j=pd[c[l+68>>2]&63](l,b,d,0)|0;if(!((j|0)!=0&(j&255|0)==19)){d=0;b=l;break b}k=c[g>>2]|0;m=c[((m|0)==0?h:m+4|0)>>2]|0;if((m|0)==0){m=0;l=0;k=1;continue}while(1){l=c[m+8>>2]|0;if((c[l+24>>2]|0)==(k|0)){k=1;continue c}m=c[m+4>>2]|0;if((m|0)==0){m=0;l=0;k=1;continue c}}}i=e;return j|0}}while(0);if((j|0)!=0|(k|0)==0|d|(b|0)==0){m=j;i=e;return m|0}d=c[h>>2]|0;if((d|0)==0){m=0;i=e;return m|0}while(1){if((c[d+8>>2]|0)==(b|0)){break}d=c[d+4>>2]|0;if((d|0)==0){j=0;f=27;break}}if((f|0)==27){i=e;return j|0}j=c[d>>2]|0;g=d+4|0;f=c[g>>2]|0;if((j|0)!=0){c[j+4>>2]=f;if((f|0)==0){c[a+160>>2]=j}else{c[f>>2]=j}c[d>>2]=0;c[g>>2]=c[h>>2];c[c[h>>2]>>2]=d;c[h>>2]=d}if((c[b+24>>2]|0)!=1869968492){m=0;i=e;return m|0}c[a+164>>2]=b;m=0;i=e;return m|0}function kK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;if((a|0)==0){n=33;i=d;return n|0}if((b|0)==0){n=6;i=d;return n|0}if((c[b+16>>2]|0)>131076){n=4;i=d;return n|0}e=a+24|0;k=c[e>>2]|0;do{if((k|0)==0){j=a}else{j=c[b+8>>2]|0;l=0;while(1){g=c[a+28+(l<<2)>>2]|0;f=c[g>>2]|0;l=l+1|0;if((Qc(c[f+8>>2]|0,j|0)|0)==0){h=9;break}if(l>>>0<k>>>0){}else{break}}do{if((h|0)==9){if((c[b+12>>2]|0)>(c[f+12>>2]|0)){lK(a,g)|0;k=c[e>>2]|0;break}else{n=5;i=d;return n|0}}}while(0);if(k>>>0>31){e=48}else{j=a;break}i=d;return e|0}}while(0);f=c[j>>2]|0;k=c[b+4>>2]|0;do{if((k|0)>0){g=Bd[c[f+4>>2]&255](f,k)|0;m=(g|0)==0;l=m?64:0;if(m){g=0;break}bX(g|0,0,k|0)|0}else{g=0;l=k>>31&6}}while(0);if((l|0)!=0){n=l;i=d;return n|0}c[g+4>>2]=a;c[g+8>>2]=f;c[g>>2]=b;k=c[b>>2]|0;a:do{if((k&2|0)==0){j=b;h=31}else{k=c[j>>2]|0;j=Bd[c[k+4>>2]&255](k,12)|0;if((j|0)==0){n=64;break}bXbX(h|0,0,96)|0;c[h>>2]=f;c[g+36>>2]=h}}while(0);b=c[b+24>>2]|0;if((b|0)!=0){n=jd[b&511](g)|0;if((n|0)!=0){break}}n=c[e>>2]|0;c[e>>2]=n+1;c[a+28+(n<<2)>>2]=g;n=0;i=d;return n|0}}while(0);e=c[c[g>>2]>>2]|0;if((e&513|0)==1){mJ(c[g+36>>2]|0);e=c[c[g>>2]>>2]|0}do{if((e&2|0)!=0){a=c[g+20>>2]|0;if((c[a+36>>2]|0)!=1869968492){break}e=c[g+60>>2]|0;if((e|0)==0){break}fd[c[(c[a+56>>2]|0)+20>>2]&511](e)}}while(0);if((g|0)==0){i=d;return n|0}hd[c[f+8>>2]&127](f,g);i=d;return n|0}function lK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;if((a|0)==0){m=33;i=d;return m|0}if((b|0)==0){m=34;i=d;return m|0}j=a+24|0;h=c[j>>2]|0;k=a+28+(h<<2)|0;if((h|0)<=0){m=34;i=d;return m|0}e=a+28|0;while(1){g=e+4|0;if((c[e>>2]|0)==(b|0)){break}if(g>>>0<k>>>0){e=g}else{b=34;f=46;break}}if((f|0)==46){i=d;return b|0}f=h+ -1|0;c[j>>2]=f;f=a+28+(f<<2)|0;if(e>>>0<f>>>0){while(1){g=e+4|0;c[e>>2]=c[g>>2];if(g>>>0<f>>>0){e=g}else{break}}}c[f>>2]=0;g=b+8|0;e=c[g>>2]|0;f=c[b>>2]|0;a=b+4|0;j=c[a>>2]|0;h=c[b+16>>2]|0;if((h|0)!=0){fd[h&511](b)}do{if((j|0)!=0){h=j+168|0;if((c[h>>2]|0)!=(b|0)){break}c[h>>2]=0}}while(0);l=c[b>>2]|0;m=c[l>>2]|0;a:do{if((m&2|0)!=0){a=c[a>>2]|0;h=c[a>>2]|0;j=a+156|0;k=c[j>>2]|0;if((k|0)==0){break}while(1){if((c[k+8>>2]|0)==(b|0)){break}k=c[k+4>>2]|0;if((k|0)==0){break a}}l=c[b+20>>2]|0;do{if((c[l+36>>2]|0)==1869968492){m=c[b+60>>2]|0;if((m|0)==0){break}fd[c[(c[l+56>>2]|0)+20>>2]&511](m)}}while(0);m=c[k>>2]|0;l=c[k+4>>2]|0;if((m|0)==0){c[j>>2]=l}else{c[m+4>>2]=l}if((l|0)==0){c[a+160>>2]=m}else{c[l>>2]=m}if((k|0)!=0){hd[c[h+8>>2]&127](h,k)}b:do{if((a|0)==0){j=0}else{h=c[j>>2]|0;if((h|0)==0){j=0;break}while(1){j=c[h+8>>2]|0;if((c[j+24>>2]|0)==1869968492){break b}h=c[h+4>>2]|0;if((h|0)==0){j=0;break}}}}while(0);c[a+164>>2]=j;l=c[b>>2]|0;m=c[l>>2]|0}}while(0);do{if((m&1|0)!=0){a=c[g>>2]|0;g=b+24|0;j=c[g>>2]|0;if((j|0)!=0){h=a+8|0;while(1){k=c[j+4>>2]|0;UJ(a,c[j+8>>2]|0,b);if((j|0)!=0){hd[c[h>>2]&127](a,j)}if((k|0)==0){break}else{j=k}}l=c[b>>2]|0}c[g>>2]=0;c[b+28>>2]=0;if((c[l>>2]&512|0)!=0){break}mJ(c[b+36>>2]|0)}}while(0);f=c[f+28>>2]|0;if((f|0)!=0){fd[f&511](b)}hd[c[e+8>>2]&127](e,b);m=0;i=d;return m|0}function mK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if((a|0)==0|(b|0)==0){f=0;i=d;return f|0}f=c[a+24>>2]|0;e=a+28+(f<<2)|0;if((f|0)<=0){f=0;i=d;return f|0}f=a+28|0;while(1){a=c[f>>2]|0;f=f+4|0;if((Qc(c[(c[a>>2]|0)+8>>2]|0,b|0)|0)==0){b=6;break}if(f>>>0<e>>>0){}else{a=0;b=6;break}}if((b|0)==6){i=d;return a|0}return 0}function nK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;if((a|0)==0|(b|0)==0){h=0;i=e;return h|0}h=c[a+24>>2]|0;f=a+28+(h<<2)|0;if((h|0)<=0){h=0;i=e;return h|0}h=a+28|0;while(1){g=c[h>>2]|0;a=c[g>>2]|0;h=h+4|0;if((Qc(c[a+8>>2]|0,b|0)|0)==0){break}if(h>>>0<f>>>0){}else{b=0;d=8;break}}if((d|0)==8){i=e;return b|0}if((g|0)==0){h=0;i=e;return h|0}h=c[a+20>>2]|0;i=e;return h|0}function oK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;if((a|0)==0){h=0;i=d;return h|0}e=c[(c[a>>2]|0)+32>>2]|0;do{if((e|0)!=0){g=Bd[e&255](a,b)|0;if((g|0)==0){break}i=d;return g|0}}while(0);f=c[a+4>>2]|0;h=c[f+24>>2]|0;e=f+28+(h<<2)|0;if((h|0)<=0){h=0;i=d;return h|0}f=f+28|0;a:while(1){h=c[f>>2]|0;do{if((h|0)!=(a|0)){g=c[(c[h>>2]|0)+32>>2]|0;if((g|0)==0){break}g=Bd[g&255](h,b)|0;if((g|0)!=0){a=10;break a}}}while(0);f=f+4|0;if(f>>>0>=e>>>0){g=0;a=10;break}}if((a|0)==10){i=d;return g|0}return 0}function pK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;if((a|0)==0){g=6;i=d;return g|0}f=a+4|0;e=Bd[c[f>>2]&255](a,200)|0;if((e|0)==0){g=64;i=d;return g|0}bX(e|0,0,200)|0;c[e>>2]=a;c[e+176>>2]=16384;g=Bd[c[f>>2]&255](a,16384)|0;f=(g|0)==0;if(f){c[e+172>>2]=0;hd[c[a+8>>2]&127](a,e);g=f?64:0;i=d;return g|0}else{bX(g|0,0,16384)|0;c[e+172>>2]=g;c[e+12>>2]=2;c[e+16>>2]=4;c[e+20>>2]=4;c[e+196>>2]=1;c[b>>2]=e;g=0;i=d;return g|0}return 0}function qK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;if((a|0)==0){h=0;g=0;a=0}else{h=c[a+12>>2]|0;g=c[a+16>>2]|0;a=c[a+20>>2]|0}if((b|0)!=0){c[b>>2]=h}if((d|0)!=0){c[d>>2]=g}if((e|0)==0){i=f;return}c[e>>2]=a;i=f;return}function rK(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;if((a|0)==0){s=33;i=d;return s|0}r=a+196|0;s=(c[r>>2]|0)+ -1|0;c[r>>2]=s;if((s|0)!=0){s=0;i=d;return s|0}b=c[a>>2]|0;f=c[a+8>>2]|0;if((f|0)!=0){fd[f&511](a)}f=a+24|0;h=c[f>>2]|0;m=h;g=0;do{if((h|0)==0){h=0}else{h=(g|0)==0;j=206296+(g<<2)|0;k=0;while(1){l=c[a+28+(k<<2)>>2]|0;n=c[l>>2]|0;if(h){if((Qc(c[n+8>>2]|0,c[j>>2]|0)|0)==0){e=11}else{l=m}}else{e=11}do{if((e|0)==11){e=0;if((c[n>>2]&1|0)==0){l=m;break}l=l+24|0;n=c[l>>2]|0;if((n|0)==0){l=m;break}do{m=c[n+8>>2]|0;a:do{if((m|0)!=0){n=m+96|0;if((c[n>>2]|0)==0){break}s=m+128|0;r=(c[s>>2]|0)+60|0;c[r>>2]=(c[r>>2]|0)+ -1;if((c[(c[s>>2]|0)+60>>2]|0)!=0){break}o=c[n>>2]|0;n=c[o+8>>2]|0;p=o+24|0;s=c[p>>2]|0;if((s|0)==0){break}while(1){if((c[s+8>>2]|0)==(m|0)){break}s=c[s+4>>2]|0;if((s|0)==0){break a}}q=c[s>>2]|0;r=c[s+4>>2]|0;if((q|0)==0){c[p>>2]=r}else{c[q+4>>2]=r}if((r|0)==0){c[o+28>>2]=q}else{c[r>>2]=q}if((s|0)!=0){hd[c[n+8>>2]&127](n,s)}UJ(n,m,o)}}while(0);n=c[l>>2]|0;}while((n|0)!=0);l=c[f>>2]|0}}while(0);k=k+1|0;if(k>>>0<l>>>0){m=l}else{m=l;h=l;break}}}g=g+1|0;}while(g>>>0<2);if((m|0)!=0){do{lK(a,c[a+28+(m+ -1<<2)>>2]|0)|0;m=c[f>>2]|0;}while((m|0)!=0)}e=a+172|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[b+8>>2]&127](b,f)}c[e>>2]=0;c[a+176>>2]=0;hd[c[b+8>>2]&127](b,a);s=0;i=d;return s|0}function sK(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;j=i;k=i;i=i+24|0;g=k;h=(c[(c[a>>2]|0)+96>>2]|0)+20|0;if((c[(c[h>>2]|0)+96>>2]|0)==0){d=0;i=j;return d|0}c[k>>2]=0;c[g+4>>2]=b;c[g+8>>2]=d;k=(e|0)==0?f:e;e=(k|0)==0;c[g+12>>2]=e?72:k;c[g+16>>2]=e?72:(f|0)==0?k:f;d=Bd[c[(c[h>>2]|0)+96>>2]&255](a,g)|0;i=j;return d|0}function tK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=i;i=i+24|0;g=f;h=(c[(c[a>>2]|0)+96>>2]|0)+20|0;if((c[(c[h>>2]|0)+96>>2]|0)==0){a=0;i=e;return a|0}c[f>>2]=0;c[g+4>>2]=b<<6;c[g+8>>2]=d<<6;c[g+12>>2]=0;c[g+16>>2]=0;a=Bd[c[(c[h>>2]|0)+96>>2]&255](a,g)|0;i=e;return a|0}function uK(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;g=i;l=i;i=i+8|0;y=l;t=i;i=i+8|0;s=t;o=i;i=i+8|0;p=o;k=i;i=i+8|0;j=k;m=i;i=i+8|0;n=m;q=i;i=i+8|0;v=q;r=i;i=i+8|0;w=r;u=i;i=i+8|0;x=u;if((d|0)==0|(e|0)==0){Z=6;i=g;return Z|0}h=c[e+16>>2]|0;z=c[e+20>>2]|0;if((b[d>>1]|0)<=0){Z=0;i=g;return Z|0}N=d+12|0;L=d+4|0;K=s+4|0;M=d+8|0;F=e+4|0;I=v+4|0;J=w+4|0;G=x+4|0;H=e+12|0;E=p+4|0;D=y+4|0;C=j+4|0;B=n+4|0;A=e+8|0;U=0;P=0;a:while(1){Z=b[(c[N>>2]|0)+(P<<1)>>1]|0;O=Z<<16>>16;if(Z<<16>>16<0){S=20;Q=29;break}R=c[L>>2]|0;Q=R+(O<<3)|0;V=R+(U<<3)|0;Z=c[V>>2]|0;V=c[V+4>>2]|0;X=t;c[X>>2]=Z;c[X+4>>2]=V;c[t>>2]=(Z<<h)-z;V=(V<<h)-z|0;c[K>>2]=V;Z=(c[R+(O<<3)>>2]<<h)-z|0;X=(c[R+(O<<3)+4>>2]<<h)-z|0;T=t;Y=c[T>>2]|0;T=c[T+4>>2]|0;S=l;c[S>>2]=Y;c[S+4>>2]=T;S=c[M>>2]|0;T=S+U|0;W=a[T]&3;if((W|0)==2){S=20;Q=29;break}else if((W|0)==0){if((a[S+O|0]&3)==1){c[t>>2]=Z;c[K>>2]=X;Q=R+(O+ -1<<3)|0}else{c[t>>2]=(Y+Z|0)/2|0;c[K>>2]=(V+X|0)/2|0}T=U+ -1|0;U=T;T=S+T|0}S=R+(U<<3)|0;R=Bd[c[e>>2]&255](s,f)|0;if((R|0)!=0){S=R;Q=29;break}b:do{if(S>>>0<Q>>>0){U=T;c:while(1){R=S+8|0;T=U+1|0;V=a[T]&3;if((V|0)==0){U=(c[R>>2]<<h)-z|0;c[l>>2]=U;S=(c[S+12>>2]<<h)-z|0;c[D>>2]=S;if(R>>>0<Q>>>0){V=R}else{Q=20;break}while(1){R=V+8|0;T=T+1|0;X=a[T]&3;W=(c[R>>2]<<h)-z|0;c[k>>2]=W;V=(c[V+12>>2]<<h)-z|0;c[C>>2]=V;if((X|0)==1){break}else if((X|0)!=0){S=20;Q=29;break a}c[m>>2]=(W+U|0)/2|0;c[B>>2]=(V+S|0)/2|0;S=sd[c[A>>2]&127](y,n,f)|0;if((S|0)!=0){Q=29;break a}S=k;U=c[S>>2]|0;S=c[S+4>>2]|0;Z=l;c[Z>>2]=U;c[Z+4>>2]=S;if(R>>>0<Q>>>0){S=S|0;V=R}else{Q=20;break c}}S=sd[c[A>>2]&127](y,j,f)|0;if((S|0)!=0){Q=29;break a}}else if((V|0)==1){c[o>>2]=(c[R>>2]<<h)-z;c[E>>2]=(c[S+12>>2]<<h)-z;S=Bd[c[F>>2]&255](p,f)|0;if((S|0)!=0){Q=29;break a}}else{if((S+16|0)>>>0>Q>>>0){S=20;Q=29;break a}if((a[U+2|0]&3)!=2){S=20;Q=29;break a}R=S+24|0;c[q>>2]=(c[S+8>>2]<<h)-z;c[I>>2]=(c[S+12>>2]<<h)-z;c[r>>2]=(c[S+16>>2]<<h)-z;c[J>>2]=(c[S+20>>2]<<h)-z;if(R>>>0>Q>>>0){Q=25;break}c[u>>2]=(c[R>>2]<<h)-z;c[G>>2]=(c[S+28>>2]<<h)-z;S=pd[c[H>>2]&63](v,w,x,f)|0;if((S|0)==0){T=U+3|0}else{Q=29;break a}}if(R>>>0<Q>>>0){S=R;U=T}else{Q=26;break b}}if((Q|0)==20){Q=0;S=sd[c[A>>2]&127](y,s,f)|0;break}else if((Q|0)==25){Q=0;S=pd[c[H>>2]&63](v,w,s,f)|0;break}}else{Q=26}}while(0);if((Q|0)==26){S=Bd[c[F>>2]&255](s,f)|0}if((S|0)!=0){Q=29;break}P=P+1|0;if((P|0)<(b[d>>1]|0)){U=O+1|0}else{S=0;Q=29;break}}if((Q|0)==29){i=g;return S|0}return 0}function vK(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;if((f|0)==0|(a|0)==0){m=6;i=g;return m|0}bX(f|0,0,20)|0;a:do{if((d|0)<0){e=6;h=10}else{k=(d|0)==0;do{if(k){m=0}else{if((d|0)>268435455){e=10;h=10;break a}j=d<<3;m=Bd[c[a+4>>2]&255](a,j)|0;l=(m|0)==0;if(l){m=0}else{bX(m|0,0,j|0)|0}if(l){j=f+4|0;c[j>>2]=m;e=64;break a}else{bX(m|0,0,j|0)|0;break}}}while(0);j=f+4|0;c[j>>2]=m;do{if(k){m=0;h=18}else{l=(d|0)>0;if(!l){k=d>>31&6;c[f+8>>2]=0;if((k|0)==0){break}else{e=k;break a}}m=Bd[c[a+4>>2]&255](a,d)|0;k=(m|0)==0;if(k){m=0}else{bX(m|0,0,d|0)|0}if(l&(k^1)){bX(m|0,0,d|0)|0;h=18;break}else{c[f+8>>2]=m;if(k){e=64;break a}else{break}}}}while(0);if((h|0)==18){c[f+8>>2]=m}b:do{if((e|0)<0){e=6}else{do{if((e|0)==0){m=0}else{if((e|0)>1073741823){e=10;break b}k=e<<1;m=Bd[c[a+4>>2]&255](a,k)|0;l=(m|0)==0;if(l){m=0}else{bX(m|0,0,k|0)|0}if(l){c[f+12>>2]=m;e=64;break a}else{bX(m|0,0,k|0)|0;break}}}while(0);c[f+12>>2]=m;b[f+2>>1]=d;b[f>>1]=e;m=f+16|0;c[m>>2]=c[m>>2]|1;m=0;i=g;return m|0}}while(0);c[f+12>>2]=0}}while(0);if((h|0)==10){j=f+4|0;c[j>>2]=0}h=f+16|0;c[h>>2]=c[h>>2]|1;h=c[j>>2]|0;if((h|0)!=0){hd[c[a+8>>2]&127](a,h)}c[j>>2]=0;h=f+8|0;d=c[h>>2]|0;if((d|0)!=0){hd[c[a+8>>2]&127](a,d)}c[h>>2]=0;h=c[f+12>>2]|0;if((h|0)!=0){hd[c[a+8>>2]&127](a,h)}bX(f|0,0,20)|0;m=e;i=g;return m|0}function wK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((a|0)==0){e=33;i=f;return e|0}e=vK(c[a>>2]|0,b,d,e)|0;i=f;return e|0}function xK(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;if((a|0)==0|(d|0)==0){g=6;i=e;return g|0}g=a+2|0;f=b[g>>1]|0;if(f<<16>>16!=(b[d+2>>1]|0)){g=6;i=e;return g|0}if((b[a>>1]|0)!=(b[d>>1]|0)){g=6;i=e;return g|0}if((a|0)==(d|0)){g=0;i=e;return g|0}$W(c[d+4>>2]|0,c[a+4>>2]|0,f<<16>>16<<3|0)|0;$W(c[d+8>>2]|0,c[a+8>>2]|0,b[g>>1]|0)|0;$W(c[d+12>>2]|0,c[a+12>>2]|0,b[a>>1]<<1|0)|0;g=d+16|0;c[g>>2]=c[a+16>>2]&-2|c[g>>2]&1;g=0;i=e;return g|0}function yK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if((a|0)==0){f=33;i=d;return f|0}a=c[a>>2]|0;if((a|0)==0|(b|0)==0){f=6;i=d;return f|0}if((c[b+16>>2]&1|0)!=0){e=b+4|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[a+8>>2]&127](a,f)}c[e>>2]=0;e=b+8|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[a+8>>2]&127](a,f)}c[e>>2]=0;e=b+12|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[a+8>>2]&127](a,f)}c[e>>2]=0}bXbX(h|0,0,s|0)|0}if(f){y=64;i=l;return y|0}else{bX(h|0,0,s|0)|0;break}}}while(0);s=c[k>>2]|0;a:do{if((s|0)>0){f=0;while(1){s=c[q>>2]|0;if((s+1|0)>>>0>=(c[r>>2]|0)>>>0){break}t=c[p>>2]|0;if((t|0)==0){t=(c[e>>2]|0)+s|0;if((t|0)==0){t=0}else{m=51}}else{if((pd[t&63](e,s,n,2)|0)!=2){break}s=c[q>>2]|0;t=n;m=51}if((m|0)==51){m=0;t=(d[t]|0)<<8&65535|(d[t+1|0]|0)}c[q>>2]=s+2;b[h+(f<<3)>>1]=t;t=c[q>>2]|0;s=t+2|0;u=c[p>>2]|0;if((u|0)==0){u=(c[r>>2]|0)>>>0<s>>>0?85:0}else{y=(pd[u&63](e,s,0,0)|0)==0;u=y?0:85}if((u|0)!=0){break a}c[q>>2]=s;if((t+5|0)>>>0>=(c[r>>2]|0)>>>0){u=85;break a}u=c[p>>2]|0;do{if((u|0)==0){m=(c[e>>2]|0)+s|0;if((m|0)!=0){t=0;u=s;s=m;m=63;break}c[q>>2]=t+6;u=t+10|0;s=0;m=65}else{if((pd[u&63](e,s,o,4)|0)!=4){u=85;break a}t=c[p>>2]|0;u=c[q>>2]|0;s=o;m=63}}while(0);do{if((m|0)==63){m=0;s=(d[s+2|0]|0)<<8|(d[s+1|0]|0)<<16|(d[s+3|0]|0);c[q>>2]=u+4;u=u+8|0;if((t|0)==0){m=65;break}y=(pd[t&63](e,u,0,0)|0)==0;t=u;u=y?0:85}}while(0);if((m|0)==65){m=0;t=u;u=(c[r>>2]|0)>>>0<u>>>0?85:0}if((u|0)!=0){break a}c[q>>2]=t;c[h+(f<<3)+4>>2]=s;f=f+1|0;s=c[k>>2]|0;if((f|0)>=(s|0)){m=68;break a}}b[h+(f<<3)>>1]=0;u=85}else{m=68}}while(0);do{if((m|0)==68){pb(h|0,s|0,8,189);m=c[k>>2]|0;if((m|0)<0){u=6;break}if((m|0)==0){o=0}else{if((m|0)>536870911){u=10;break}m=m<<2;o=Bd[c[a+4>>2]&255](a,m)|0;n=(o|0)==0;if(n){o=0}else{bX(o|0,0,m|0)|0}if(n){u=64;break}bX(o|0,0,m|0)|0}if((c[k>>2]|0)>0){m=0;do{c[o+(m<<2)>>2]=(c[h+(m<<3)+4>>2]|0)+g;m=m+1|0;}while((m|0)<(c[k>>2]|0))}c[j>>2]=o;u=0}}while(0);if((h|0)==0){y=u;i=l;return y|0}hd[c[a+8>>2]&127](a,h);y=u;i=l;return y|0}else if((m|0)==80){i=l;return j|0}return 0}function GK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+3|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,4)|0)!=4){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+1|0]|0)<<16|(d[j]|0)<<24|(d[j+2|0]|0)<<8|(d[j+3|0]|0)}c[g>>2]=h+4;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function HK(a,c){a=a|0;c=c|0;var d=0;d=i;a=b[a>>1]|0;c=b[c>>1]|0;if((a&65535)<(c&65535)){a=-1;i=d;return a|0}a=(a&65535)>(c&65535)|0;i=d;return a|0}function IK(a){a=a|0;i=i;return c[a+8>>2]|0}function JK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;g=c[a+4>>2]|0;if(g>>>0<=b>>>0){h=85;i=f;return h|0}h=c[a+20>>2]|0;if((h|0)==0){g=g-b|0;h=g>>>0>e>>>0?e:g;$W(d|0,(c[a>>2]|0)+b|0,h|0)|0;d=h}else{d=pd[h&63](a,b,d,e)|0}c[a+8>>2]=d+b;h=d>>>0<e>>>0?85:0;i=f;return h|0}function KK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;f=a+8|0;g=c[f>>2]|0;h=c[a+4>>2]|0;if(g>>>0>=h>>>0){j=0;i=e;return j|0}j=c[a+20>>2]|0;if((j|0)==0){h=h-g|0;j=h>>>0>d>>>0?d:h;$W(b|0,(c[a>>2]|0)+g|0,j|0)|0;b=j}else{b=pd[j&63](a,g,b,d)|0}c[f>>2]=(c[f>>2]|0)+b;j=b;i=e;return j|0}function LK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;b=MK(a,b)|0;if((b|0)!=0){i=e;return b|0}f=a+32|0;c[d>>2]=c[f>>2];c[f>>2]=0;c[a+36>>2]=0;i=e;return b|0}function MK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;g=a+20|0;if((c[g>>2]|0)==0){e=a+8|0;f=c[e>>2]|0;h=c[a+4>>2]|0;if(f>>>0>=h>>>0|(h-f|0)>>>0<b>>>0){h=85;i=d;return h|0}g=c[a>>2]|0;c[a+32>>2]=g+f;h=f+b|0;c[a+36>>2]=g+h;c[e>>2]=h;h=0;i=d;return h|0}f=c[a+28>>2]|0;if((c[a+4>>2]|0)>>>0<b>>>0){h=85;i=d;return h|0}if((b|0)>0){e=Bd[c[f+4>>2]&255](f,b)|0;h=e;e=(e|0)==0?64:0}else{h=0;e=b>>31&6}c[a>>2]=h;if((e|0)!=0){h=e;i=d;return h|0}e=a+8|0;g=pd[c[g>>2]&63](a,c[e>>2]|0,h,b)|0;h=c[a>>2]|0;if(g>>>0<b>>>0){if((h|0)!=0){hd[c[f+8>>2]&127](f,h)}c[a>>2]=0;h=0;f=85}else{f=0}c[a+32>>2]=h;c[a+36>>2]=h+b;c[e>>2]=(c[e>>2]|0)+g;h=f;i=d;return h|0}function NK(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;do{if((a|0)!=0){if((c[a+20>>2]|0)==0){break}e=c[a+28>>2]|0;a=c[b>>2]|0;if((a|0)!=0){hd[c[e+8>>2]&127](e,a)}c[b>>2]=0}}while(0);c[b>>2]=0;i=d;return}function OK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)>0){b=Bd[c[a+4>>2]&255](a,b)|0;a=b;b=(b|0)==0?64:0}else{a=0;b=b>>31&6}c[d>>2]=b;i=e;return a|0}function PK(a){a=a|0;var b=0,d=0,e=0;b=i;if((c[a+20>>2]|0)!=0){e=c[a+28>>2]|0;d=c[a>>2]|0;if((d|0)!=0){hd[c[e+8>>2]&127](e,d)}c[a>>2]=0}c[a+32>>2]=0;c[a+36>>2]=0;i=b;return}function QK(b){b=b|0;var d=0,e=0,f=0;d=i;f=b+32|0;e=c[f>>2]|0;if(e>>>0>=(c[b+36>>2]|0)>>>0){f=0;i=d;return f|0}c[f>>2]=e+1;f=a[e]|0;i=d;return f|0}function RK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+1|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+2|0;g=(d[f]|0)<<8&65535|(d[g]|0);f=e;c[f>>2]=a;i=b;return g|0}function SK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+1|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+2|0;g=(d[g]|0)<<8&65535|(d[f]|0);f=e;c[f>>2]=a;i=b;return g|0}function TK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+3|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+4|0;g=(d[f+1|0]|0)<<16|(d[f]|0)<<24|(d[f+2|0]|0)<<8|(d[g]|0);f=e;c[f>>2]=a;i=b;return g|0}function UK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+3|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+4|0;g=(d[f+2|0]|0)<<16|(d[g]|0)<<24|(d[f+1|0]|0)<<8|(d[f]|0);f=e;c[f>>2]=a;i=b;return g|0}function VK(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;h=i;i=i+8|0;j=h;a[h]=0;c[d>>2]=0;k=c[b+20>>2]|0;e=b+8|0;g=c[e>>2]|0;do{if((k|0)==0){if(g>>>0>=(c[b+4>>2]|0)>>>0){h=7;break}d=a[(c[b>>2]|0)+g|0]|0;a[h]=d;h=6}else{if((pd[k&63](b,g,j,1)|0)!=1){h=7;break}d=a[h]|0;g=c[e>>2]|0;h=6}}while(0);if((h|0)==6){c[e>>2]=g+1;b=d;i=f;return b|0}else if((h|0)==7){c[d>>2]=85;b=0;i=f;return b|0}return 0}function WK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+1|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,2)|0)!=2){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+1|0]|0)<<8&65535|(d[j]|0)}c[g>>2]=h+2;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function XK(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;k=i;i=i+8|0;c[e>>2]=0;h=b+8|0;j=c[h>>2]|0;do{if((j+2|0)>>>0<(c[b+4>>2]|0)>>>0){l=c[b+20>>2]|0;if((l|0)==0){k=(c[b>>2]|0)+j|0;if((k|0)==0){k=0}else{f=6}}else{if((pd[l&63](b,j,k,3)|0)!=3){break}j=c[h>>2]|0;f=6}if((f|0)==6){k=d[k+1|0]<<8|a[k]<<16|d[k+2|0]}c[h>>2]=j+3;l=k;i=g;return l|0}}while(0);c[e>>2]=85;l=0;i=g;return l|0}function YK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+3|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,4)|0)!=4){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+2|0]|0)<<16|(d[j+3|0]|0)<<24|(d[j+1|0]|0)<<8|(d[j]|0)}c[g>>2]=h+4;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function ZK(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=i;if((g|0)==0|(f|0)==0){r=6;i=l;return r|0}k=f+32|0;j=f+36|0;n=0;a:while(1){q=c[k>>2]|0;b:while(1){p=a[g]|0;c:do{switch(p&255|0){case 9:case 8:{o=q+1|0;r=24;q=d[q]|0;m=18;break};case 18:case 19:{o=q+4|0;r=0;q=(d[q+2|0]|0)<<16|(d[q+3|0]|0)<<24|(d[q+1|0]|0)<<8|(d[q]|0);m=18;break};case 25:case 24:{r=d[g+1|0]|0;o=q+r|0;if(o>>>0>(c[j>>2]|0)>>>0){h=85;break a}if(p<<24>>24!=24){break c}$W(h+(e[g+2>>1]|0)|0,q|0,r|0)|0;break};case 22:case 23:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q+2|0]|0)<<16|(d[q]|0);m=18;break};case 12:case 13:{o=q+2|0;r=16;q=((d[q]|0)<<8&65535|(d[q+1|0]|0))&65535;m=18;break};case 16:case 17:{o=q+4|0;r=0;q=(d[q+1|0]|0)<<16|(d[q]|0)<<24|(d[q+2|0]|0)<<8|(d[q+3|0]|0);m=18;break};case 14:case 15:{o=q+2|0;r=16;q=((d[q+1|0]|0)<<8&65535|(d[q]|0))&65535;m=18;break};case 20:case 21:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q]|0)<<16|(d[q+2|0]|0);m=18;break};case 4:{break b};default:{m=17;break a}}}while(0);do{if((m|0)==18){m=0;if((p&1)!=0){q=q<<r>>r}r=h+(e[g+2>>1]|0)|0;p=d[g+1|0]|0;if((p|0)==1){a[r]=q;break}else if((p|0)==2){b[r>>1]=q;break}else if((p|0)==4){c[r>>2]=q;break}else{c[r>>2]=q;break}}}while(0);g=g+4|0;q=o}o=MK(f,e[g+2>>1]|0)|0;if((o|0)!=0){h=o;break}g=g+4|0;n=1}if((m|0)==17){c[k>>2]=q;h=0}if(n<<24>>24==0){r=h;i=l;return r|0}if((c[f+20>>2]|0)!=0){n=c[f+28>>2]|0;m=c[f>>2]|0;if((m|0)!=0){hd[c[n+8>>2]&127](n,m)}c[f>>2]=0}c[k>>2]=0;c[j>>2]=0;r=h;i=l;return r|0}function _K(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a;a=c[d>>2]|0;d=c[d+4>>2]|0;if((a|0)==0){g=(d|0)>-1?d:0-d|0;i=b;return g|0}e=(a|0)>-1?a:0-a|0;if((d|0)==0){g=e;i=b;return g|0}e=((d|0)>-1?d:0-d|0)|e;f=(e|0)>65535;e=f?e>>16:e;f=f?16:0;if((e|0)>255){f=f|8;e=e>>8}if((e|0)>15){f=f+4|0;e=e>>4}if((e|0)>3){f=f+2|0;e=e>>2}f=((e|0)>1)+f|0;if((f|0)<28){g=27-f|0;d=d<<g;e=a<<g;a=g}else{e=f+ -27|0;d=d>>e;e=a>>e;a=27-f|0}if((e|0)<0){e=0-e|0;g=0-d|0}else{g=d}f=e<<1;if((g|0)<0){d=0;e=e-(g<<1)|0;f=g+f|0}else{d=0;e=(g<<1)+e|0;f=g-f|0}do{g=e>>d;if((f|0)<0){e=e-(f>>d)|0;f=f+g|0}else{e=(f>>d)+e|0;f=f-g|0}d=d+1|0;}while((d|0)<23);d=(e|0)>-1;e=d?e:0-e|0;f=e>>>16;e=e&65535;g=(e*17797|0)+(f*47593|0)|0;e=(e*47593|0)>>>16;h=g+e|0;f=(h>>>16)+(f*17797|0)|0;e=h>>>0<(g>>>0>=e>>>0?g:e)>>>0?f+65536|0:f;d=d?e:0-e|0;if((a|0)>0){h=d+(1<<a+ -1)>>a;i=b;return h|0}else{h=d<<0-a;i=b;return h|0}return 0}
7329 bX(o+8|0,0,16)|0;h[o+24>>3]=1.0;bX(o+32|0,0,16)|0}}while(0);Of(m);Yu(y,160480,m,0)|0;if((c[s>>2]|0)==7){q=c[u>>2]|0}else{q=0}c[p>>2]=(c[p>>2]|0)+1;Ax(a,b,q,o,n,1,1,e,f,g,d,j,k);c[p>>2]=(c[p>>2]|0)+ -1;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}Of(m);i=l;return}}function Ax(b,d,e,f,g,j,k,l,m,n,o,p,q){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|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.0,I=0.0,J=0,K=0,L=0;r=i;u=i;i=i+8|0;C=i;i=i+8|0;w=i;i=i+8|0;B=i;i=i+8|0;x=i;i=i+48|0;D=x;A=FW(120)|0;s=b+20|0;mx(A,c[b>>2]|0,e,c[s>>2]|0);c[s>>2]=A;e=b+8|0;A=c[e>>2]|0;t=b+28|0;hd[c[(c[A>>2]|0)+80>>2]&127](A,c[t>>2]|0);A=XB(c[t>>2]|0)|0;c[t>>2]=A;y=b+32|0;c[y>>2]=(c[y>>2]|0)+1;SB(A);A=b+120|0;z=c[A>>2]|0;K=f+8|0;J=f+16|0;G=f+24|0;E=f+32|0;F=f+40|0;JB(c[t>>2]|0,+h[f>>3],+h[K>>3],+h[J>>3],+h[G>>3],+h[E>>3],+h[F>>3]);L=c[e>>2]|0;Ed[c[(c[L>>2]|0)+92>>2]&3](L,c[t>>2]|0,+h[f>>3],+h[K>>3],+h[J>>3],+h[G>>3],+h[E>>3],+h[F>>3]);f=c[t>>2]|0;H=+h[g>>3];F=g+8|0;I=+h[F>>3];E=c[f+588>>2]|0;h[f+592>>3]=H;h[f+600>>3]=I;uB(E,H,I);E=c[t>>2]|0;f=g+16|0;I=+h[f>>3];H=+h[F>>3];F=c[E+588>>2]|0;h[E+592>>3]=I;h[E+600>>3]=H;vB(F,I,H);F=c[t>>2]|0;H=+h[f>>3];f=g+24|0;I=+h[f>>3];E=c[F+588>>2]|0;h[F+592>>3]=H;h[F+600>>3]=I;vB(E,H,I);E=c[t>>2]|0;I=+h[g>>3];H=+h[f>>3];f=c[E+588>>2]|0;h[E+592>>3]=I;h[E+600>>3]=H;vB(f,I,H);f=c[t>>2]|0;E=f+588|0;xB(c[E>>2]|0);E=c[E>>2]|0;F=E+28|0;E=E+24|0;G=c[(c[E>>2]|0)+((c[F>>2]|0)+ -1<<2)>>2]|0;h[f+592>>3]=+h[(c[G>>2]|0)+((c[G+12>>2]|0)+ -1<<3)>>3];F=c[(c[E>>2]|0)+((c[F>>2]|0)+ -1<<2)>>2]|0;h[f+600>>3]=+h[(c[F+4>>2]|0)+((c[F+12>>2]|0)+ -1<<3)>>3];TB(c[t>>2]|0);f=c[e>>2]|0;hd[c[(c[f>>2]|0)+256>>2]&127](f,c[t>>2]|0);SB(c[t>>2]|0);f=k|j;if(f){F=c[t>>2]|0;E=F+388|0;if((c[E>>2]|0)==0){E=F}else{c[E>>2]=0;E=c[e>>2]|0;hd[c[(c[E>>2]|0)+148>>2]&127](E,c[t>>2]|0);E=c[t>>2]|0}F=E+392|0;if(+h[F>>3]!=1.0){h[F>>3]=1.0;E=c[e>>2]|0;hd[c[(c[E>>2]|0)+152>>2]&127](E,c[t>>2]|0);E=c[t>>2]|0}F=E+400|0;if(+h[F>>3]!=1.0){h[F>>3]=1.0;E=c[e>>2]|0;hd[c[(c[E>>2]|0)+156>>2]&127](E,c[t>>2]|0);E=c[t>>2]|0}L=c[e>>2]|0;hd[c[(c[L>>2]|0)+396>>2]&127](L,E);L=c[e>>2]|0;yd[c[(c[L>>2]|0)+380>>2]&1](L,c[t>>2]|0,g,l,m,n,k)}l=b+64|0;h[x>>3]=+h[l>>3];m=c[t>>2]|0;h[l>>3]=+h[m+16>>3];L=b+72|0;h[D+8>>3]=+h[L>>3];h[L>>3]=+h[m+24>>3];L=b+80|0;h[D+16>>3]=+h[L>>3];h[L>>3]=+h[m+32>>3];L=b+88|0;h[D+24>>3]=+h[L>>3];h[L>>3]=+h[m+40>>3];L=b+96|0;h[D+32>>3]=+h[L>>3];h[L>>3]=+h[m+48>>3];L=b+104|0;h[D+40>>3]=+h[L>>3];h[L>>3]=+h[m+56>>3];vx(b,d,0);D=c[t>>2]|0;do{if((m|0)!=(D|0)){while(1){D=c[D+656>>2]|0;if((D|0)==(m|0)){break}if((D|0)==0){v=19;break}else{}}if((v|0)==19){Qe(-1,161872,C);break}Qe(-1,161816,B);d=c[t>>2]|0;if((m|0)==(d|0)){break}C=b+40|0;B=b+36|0;D=b+18|0;do{L=c[B>>2]|0;do{if((c[y>>2]|0)>(c[L+(((c[C>>2]|0)-L>>2)+ -1<<2)>>2]|0)){if((c[d+656>>2]|0)==0){v=16;break}L=YB(d)|0;c[t>>2]=L;K=c[e>>2]|0;hd[c[(c[K>>2]|0)+84>>2]&127](K,L);c[y>>2]=(c[y>>2]|0)+ -1}else{v=16}}while(0);if((v|0)==16){v=0;Qe(-1,162208,w);a[D]=1}d=c[t>>2]|0;}while((m|0)!=(d|0))}}while(0);if(f){L=c[e>>2]|0;hd[c[(c[L>>2]|0)+384>>2]&127](L,c[t>>2]|0)}$W(l|0,x|0,48)|0;c[A>>2]=z;L=c[b+36>>2]|0;do{if((c[y>>2]|0)>(c[L+(((c[b+40>>2]|0)-L>>2)+ -1<<2)>>2]|0)){w=c[t>>2]|0;if((c[w+656>>2]|0)==0){v=24;break}L=YB(w)|0;c[t>>2]=L;K=c[e>>2]|0;hd[c[(c[K>>2]|0)+84>>2]&127](K,L);c[y>>2]=(c[y>>2]|0)+ -1}else{v=24}}while(0);if((v|0)==24){Qe(-1,162208,u);a[b+18|0]=1}b=c[s>>2]|0;u=c[b+112>>2]|0;if((b|0)!=0){nx(b);HW(b)}c[s>>2]=u;if(k){L=c[e>>2]|0;ud[c[(c[L>>2]|0)+392>>2]&7](L,c[t>>2]|0,g,o,p,q);i=r;return}if(!j){i=r;return}L=c[e>>2]|0;Gd[c[(c[L>>2]|0)+388>>2]&255](L,c[t>>2]|0,g);i=r;return}function Bx](z)|0;a:do{if(t==s&q==r){C=0.0;e=10}else{do{if(u==v){I=r-q;J=s-t;F=0.0;C=0.0}else{if(v>u){F=(-0.0-u)/(v-u)}else{F=(-0.0-v)/(u-v)}J=s-t;oa=t+J*F;I=r-q;C=q+I*F;ka=oa-t;la=C-q;A=ka*ka+la*la<=u*u;oa=t-oa;C=q-C;C=+Z(+(u/+T(+(oa*oa+C*C))));if(u>v){C=-0.0-C;if(A){e=10;break a}else{break}}else{if(A){e=10;break a}else{break}}}}while(0);_=+$(+I,+J);A=b+28|0;HB(c[A>>2]|0,G,E,D,B);J=t+u;I=s+v-J;do{if(I!=0.0){J=(+h[p>>3]-J)/I;if(J<1.0){I=0.0;break}if(J<=0.0){I=0.0;J=1.0;break}I=J;J=1.0}else{I=0.0;J=1.0}}while(0);L=t-u;M=s-v-L;do{if(M!=0.0){L=(+h[k>>3]-L)/M;if(L<J){J=L;break}if(L<=I){break}I=L}}while(0);L=q+u;M=r+v-L;do{if(M!=0.0){L=(+h[o>>3]-L)/M;if(L<J){J=L;break}if(L<=I){break}I=L}}while(0);L=q-u;M=r-v-L;do{if(M!=0.0){L=(+h[n>>3]-L)/M;if(L<J){J=L;break}if(L<=I){break}I=L}}while(0);do{if(u<v){if(J>=F){F=J;break}}else{I=u>v&I>F?F:I;F=J}}while(0);G=0;I=(a[d+381|0]&1)==0&I>1.0?1.0:I;J=(a[d+380|0]&1)==0&F<0.0?0.0:F;ba=C}}while(0);if((e|0)==10){A=b+28|0;HB(c[A>>2]|0,G,E,D,B);_=0.0;G=1;I=1.0;J=0.0;ba=C}B=b+8|0;ra=c[B>>2]|0;do{if(Bd[c[(c[ra>>2]|0)+20>>2]&255](ra,c[d+4>>2]|0)|0){ra=c[B>>2]|0;if(!(gd[c[(c[ra>>2]|0)+240>>2]&3](ra,c[A>>2]|0,d,J,I)|0)){break}i=f;return}}while(0);D=c[A>>2]|0;F=+S(+(+h[D+16>>3]));C=+S(+(+h[D+24>>3]));C=C>F?C:F;F=+S(+(+h[D+32>>3]));F=F>C?F:C;L=+S(+(+h[D+40>>3]));D=u>v;C=D?u:v;F=C*(L>F?L:F);do{if(F<1.0){E=3}else{E=~~(3.141592653589793/+Y(+(1.0-.1/F)));if((E|0)<3){E=3;break}E=(E|0)>200?200:E}}while(0);M=m-l;R=s-t;L=r-q;Q=v-u;Kx(l,m,l+M*J,d,g);K=c[B>>2]|0;K=sd[c[(c[K>>2]|0)+244>>2]&127](K,c[A>>2]|0,d)|0;O=l+M*I;P=(z|0)>0;N=I-J;b=b+116|0;H=(E|0)>1;F=+(E|0);X=_+ba+1.5707963267948966;U=(E|0)>0;aa=_-ba+-1.5707963267948966;ea=ba*2.0;_=ea+3.141592653589793;ca=ba*-2.0+3.141592653589793;ba=ea+-3.141592653589793;da=(z|0)==0;na=0;ea=u+Q*J;la=J;ga=t+R*J;fa=q+L*J;while(1){Kx(l,m,O,d,y);b:do{if((256-na|0)>1){ma=256;c:while(1){if(da){break}else{pa=0}while(1){qa=(c[y+(pa<<2)>>2]|0)-(c[g+(pa<<2)>>2]|0)|0;pa=pa+1|0;if((((qa|0)>-1?qa:0-qa|0)|0)>256){break}if(pa>>>0>=z>>>0){break c}}ma=(ma+na|0)/2|0;ha=J+N*+(ma|0)*.00390625;Kx(l,m,l+M*ha,d,y);if((ma-na|0)<=1){break b}}pa=na+1|0;d:do{if((na|0)<(ma|0)){na=pa;while(1){Kx(l,m,l+M*(J+N*+(na|0)*.00390625),d,w);if(!da){ra=0;do{qa=(c[w+(ra<<2)>>2]|0)-(c[g+(ra<<2)>>2]|0)|0;ra=ra+1|0;if((((qa|0)>-1?qa:0-qa|0)|0)>256){break d}}while(ra>>>0<z>>>0)}qa=na+1|0;if((na|0)<(ma|0)){na=qa}else{na=qa;break}}}else{na=pa}}while(0);ma=(na|0)>(pa|0)?na+ -1|0:pa;ha=J+N*+(ma|0)*.00390625;Kx(l,m,l+M*ha,d,y)}else{ma=256;ha=I}}while(0);ja=t+R*ha;ka=q+L*ha;ia=u+Q*ha;if(P){na=0;do{ra=g+(na<<2)|0;c[ra>>2]=((c[y+(na<<2)>>2]|0)+(c[ra>>2]|0)|0)/2|0;na=na+1|0;}while((na|0)<(z|0))}$W((c[A>>2]|0)+124|0,j|0,128)|0;ra=c[B>>2]|0;ra=jd[c[(c[ra>>2]|0)+24>>2]&511](ra)|0;na=c[B>>2]|0;if(ra){Id[c[(c[na>>2]|0)+172>>2]&3](na,c[A>>2]|0,(la-J)/N)}else{hd[c[(c[na>>2]|0)+140>>2]&127](na,c[A>>2]|0)}do{if(!K){na=c[A>>2]|0;if(G){oa=ea+ga;ra=c[na+588>>2]|0;h[na+592>>3]=oa;h[na+600>>3]=fa;uB(ra,oa,fa);if(H){na=1;do{oa=+(na|0)/F*2.0*3.141592653589793;qa=c[A>>2]|0;la=ga+ea*+V(+oa);oa=fa+ea*+W(+oa);ra=c[qa+588>>2]|0;h[qa+592>>3]=la;h[qa+600>>3]=oa;vB(ra,la,oa);na=na+1|0;}while((na|0)<(E|0))}qa=c[A>>2]|0;pa=qa+588|0;xB(c[pa>>2]|0);pa=c[pa>>2]|0;ra=pa+28|0;pa=pa+24|0;na=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+592>>3]=+h[(c[na>>2]|0)+((c[na+12>>2]|0)+ -1<<3)>>3];ra=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];qa=c[A>>2]|0;oa=ja+ia;ra=c[qa+588>>2]|0;h[qa+592>>3]=oa;h[qa+600>>3]=ka;uB(ra,oa,ka);if(H){na=1;do{oa=+(na|0)/F*-2.0*3.141592653589793;qa=c[A>>2]|0;la=ja+ia*+V(+oa);oa=ka+ia*+W(+oa);ra=c[qa+588>>2]|0;h[qa+592>>3]=la;h[qa+600>>3]=oa;vB(ra,la,oa);na=na+1|0;}while((na|0)<(E|0))}ra=c[A>>2]|0;pa=ra+588|0;xB(c[pa>>2]|0);pa=c[pa>>2]|0;qa=pa+28|0;pa=pa+24|0;na=c[(c[pa>>2]|0)+((c[qa>>2]|0)+ -1<<2)>>2]|0;h[ra+592>>3]=+h[(c[na>>2]|0)+((c[na+12>>2]|0)+ -1<<3)>>3];qa=c[(c[pa>>2]|0)+((c[qa>>2]|0)+ -1<<2)>>2]|0;h[ra+600>>3]=+h[(c[qa+4>>2]|0)+((c[qa+12>>2]|0)+ -1<<3)>>3];break}oa=ga+ea*+V(+X);la=fa+ea*+W(+X);ra=c[na+588>>2]|0;h[na+592>>3]=oa;h[na+600>>3]=la;uB(ra,oa,la);do{if(U){na=0;do{sa=X-_*(+(na|0)/F);qa=c[A>>2]|0;ta=ja+ia*+V(+sa);sa=ka+ia*+W(+sa);ra=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=sa;vB(ra,ta,sa);na=na+1|0;}while((na|0)<(E|0));if(U){na=0}else{break}do{ta=aa+ba*(+(na|0)/F);qa=c[A>>2]|0;sa=ga+ea*+V(+ta);ta=fa+ea*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);na=na+1|0;}while((na|0)<(E|0))}}while(0);qa=c[A>>2]|0;pa=qa+588|0;xB(c[pa>>2]|0);pa=c[pa>>2]|0;ra=pa+28|0;pa=pa+24|0;na=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+592>>3]=+h[(c[na>>2]|0)+((c[na+12>>2]|0)+ -1<<3)>>3];ra=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];qa=c[A>>2]|0;ra=c[qa+588>>2]|0;h[qa+592>>3]=oa;h[qa+600>>3]=la;uB(ra,oa,la);do{if(U){na=0;do{ta=X+ca*(+(na|0)/F);qa=c[A>>2]|0;sa=ja+ia*+V(+ta);ta=ka+ia*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);na=na+1|0;}while((na|0)<(E|0));if(U){na=0}else{break}do{ta=aa+_*(+(na|0)/F);qa=c[A>>2]|0;sa=ga+ea*+V(+ta);ta=fa+ea*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);na=na+1|0;}while((na|0)<(E|0))}}while(0);ra=c[A>>2]|0;pa=ra+588|0;xB(c[pa>>2]|0);pa=c[pa>>2]|0;qa=pa+28|0;pa=pa+24|0;na=c[(c[pa>>2]|0)+((c[qa>>2]|0)+ -1<<2)>>2]|0;h[ra+592>>3]=+h[(c[na>>2]|0)+((c[na+12>>2]|0)+ -1<<3)>>3];qa=c[(c[pa>>2]|0)+((c[qa>>2]|0)+ -1<<2)>>2]|0;h[ra+600>>3]=+h[(c[qa+4>>2]|0)+((c[qa+12>>2]|0)+ -1<<3)>>3]}}while(0);ra=c[B>>2]|0;if(!(jd[c[(c[ra>>2]|0)+24>>2]&511](ra)|0)){na=c[b>>2]|0;e:do{if((na|0)==0){e=75}else{if((a[na]&1)!=0){break}do{na=c[na+4>>2]|0;if((na|0)==0){e=75;break e}}while((a[na]&1)==0)}}while(0);if((e|0)==75){e=0;ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0)}$W(j|0,x|0,128)|0;if((ma|0)<256){na=ma;ea=ia;la=ha;ga=ja;fa=ka}else{break}}ra=c[B>>2]|0;if(jd[c[(c[ra>>2]|0)+24>>2]&511](ra)|0){$W((c[A>>2]|0)+124|0,j|0,128)|0;w=c[B>>2]|0;Id[c[(c[w>>2]|0)+172>>2]&3](w,c[A>>2]|0,(ha-J)/N);w=c[A>>2]|0;ta=+h[p>>3];sa=+h[o>>3];qa=c[w+588>>2]|0;h[w+592>>3]=ta;h[w+600>>3]=sa;uB(qa,ta,sa);qa=c[A>>2]|0;sa=+h[p>>3];ta=+h[n>>3];w=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(w,sa,ta);w=c[A>>2]|0;ta=+h[k>>3];sa=+h[n>>3];qa=c[w+588>>2]|0;h[w+592>>3]=ta;h[w+600>>3]=sa;vB(qa,ta,sa);qa=c[A>>2]|0;sa=+h[k>>3];ta=+h[o>>3];w=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(w,sa,ta);w=c[A>>2]|0;qa=w+588|0;xB(c[qa>>2]|0);qa=c[qa>>2]|0;ra=qa+28|0;qa=qa+24|0;pa=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[w+592>>3]=+h[(c[pa>>2]|0)+((c[pa+12>>2]|0)+ -1<<3)>>3];ra=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[w+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];w=c[b>>2]|0;f:do{if((w|0)==0){e=83}else{if((a[w]&1)!=0){break}do{w=c[w+4>>2]|0;if((w|0)==0){e=83;break f}}while((a[w]&1)==0)}}while(0);if((e|0)==83){ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0)}if(K|G^1){i=f;return}x=d+380|0;z=a[x]|0;w=u>v;if((z&1)==0|w){y=D^1;if(!((a[d+381|0]&1)==0|y)){e=88}}else{e=88}if((e|0)==88){I=w?v:u;u=w?s:t;v=w?r:q;$A(d,w?m:l,g);$W((c[A>>2]|0)+124|0,j|0,128)|0;qa=c[B>>2]|0;hd[c[(c[qa>>2]|0)+140>>2]&127](qa,c[A>>2]|0);qa=c[A>>2]|0;ta=u+I;ra=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=v;uB(ra,ta,v);if(H){y=1;do{ta=+(y|0)/F*2.0*3.141592653589793;qa=c[A>>2]|0;sa=u+I*+V(+ta);ta=v+I*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);y=y+1|0;}while((y|0)<(E|0))}y=c[A>>2]|0;qa=y+588|0;xB(c[qa>>2]|0);qa=c[qa>>2]|0;ra=qa+28|0;qa=qa+24|0;pa=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[y+592>>3]=+h[(c[pa>>2]|0)+((c[pa+12>>2]|0)+ -1<<3)>>3];ra=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[y+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];y=c[b>>2]|0;g:do{if((y|0)==0){e=94}else{if((a[y]&1)!=0){break}do{y=c[y+4>>2]|0;if((y|0)==0){e=94;break g}}while((a[y]&1)==0)}}while(0);if((e|0)==94){ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0);z=a[x]|0;y=D^1}do{if((z&1)==0|y){if(!((a[d+381|0]&1)==0|w)){break}i=f;return}}while(0);s=D?t:s;q=D?q:r;$A(d,D?l:m,g);$W((c[A>>2]|0)+124|0,j|0,128)|0;qa=c[B>>2]|0;hd[c[(c[qa>>2]|0)+140>>2]&127](qa,c[A>>2]|0);qa=c[A>>2]|0;ta=+h[p>>3];sa=+h[o>>3];pa=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=sa;uB(pa,ta,sa);pa=c[A>>2]|0;sa=+h[p>>3];ta=+h[n>>3];qa=c[pa+588>>2]|0;h[pa+592>>3]=sa;h[pa+600>>3]=ta;vB(qa,sa,ta);qa=c[A>>2]|0;ta=+h[k>>3];sa=+h[n>>3];pa=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=sa;vB(pa,ta,sa);pa=c[A>>2]|0;sa=+h[k>>3];ta=+h[o>>3];qa=c[pa+588>>2]|0;h[pa+592>>3]=sa;h[pa+600>>3]=ta;vB(qa,sa,ta);qa=c[A>>2]|0;pa=qa+588|0;xB(c[pa>>2]|0);pa=c[pa>>2]|0;ra=pa+28|0;pa=pa+24|0;na=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+592>>3]=+h[(c[na>>2]|0)+((c[na+12>>2]|0)+ -1<<3)>>3];ra=c[(c[pa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[qa+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];qa=c[A>>2]|0;ta=s+C;ra=c[qa+588>>2]|0;h[qa+592>>3]=ta;h[qa+600>>3]=q;uB(ra,ta,q);if(H){g=1;do{ta=+(g|0)/F*2.0*3.141592653589793;qa=c[A>>2]|0;sa=s+C*+V(+ta);ta=q+C*+W(+ta);ra=c[qa+588>>2]|0;h[qa+592>>3]=sa;h[qa+600>>3]=ta;vB(ra,sa,ta);g=g+1|0;}while((g|0)<(E|0))}g=c[A>>2]|0;qa=g+588|0;xB(c[qa>>2]|0);qa=c[qa>>2]|0;ra=qa+28|0;qa=qa+24|0;pa=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[g+592>>3]=+h[(c[pa>>2]|0)+((c[pa+12>>2]|0)+ -1<<3)>>3];ra=c[(c[qa>>2]|0)+((c[ra>>2]|0)+ -1<<2)>>2]|0;h[g+600>>3]=+h[(c[ra+4>>2]|0)+((c[ra+12>>2]|0)+ -1<<3)>>3];g=c[b>>2]|0;h:do{if((g|0)==0){e=104}else{if((a[g]&1)!=0){break}do{g=c[g+4>>2]|0;if((g|0)==0){e=104;break h}}while((a[g]&1)==0)}}while(0);if((e|0)==104){ra=c[B>>2]|0;hd[c[(c[ra>>2]|0)+216>>2]&127](ra,c[A>>2]|0)}SB(c[A>>2]|0);i=f;return}function Ix(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0,E=0,F=0,G=0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0;j=i;n=i;i=i+8|0;m=n;o=i;i=i+8|0;e=o;q=i;i=i+8|0;f=q;r=i;i=i+8|0;g=r;p=i;i=i+8|0;k=p;d=i;i=i+8|0;l=d;B=i;i=i+8|0;s=B;t=i;i=i+8|0;w=t;v=i;i=i+8|0;u=v;x=i;i=i+128|0;y=i;i=i+128|0;z=i;i=i+128|0;A=a+8|0;D=c[A>>2]|0;do{if(Bd[c[(c[D>>2]|0)+20>>2]&255](D,c[b+4>>2]|0)|0){D=c[A>>2]|0;A=a+28|0;if(!(sd[c[(c[D>>2]|0)+248>>2]&127](D,c[A>>2]|0,b)|0)){break}i=j;return}else{A=a+28|0}}while(0);F=c[A>>2]|0;D=c[F+588>>2]|0;bXBx(b,1);N=c[o>>2]|0;hd[c[(c[N>>2]|0)+48>>2]&127](N,c[n>>2]|0);a[O]=0}else{Yu(J,159208,o,0)|0;N=c[r>>2]|0;if((N|0)==5){Of(o);Yu(J,160104,o,0)|0;N=c[r>>2]|0}d:do{if((N|0)==4&f){O=c[b+20>>2]|0;N=c[s>>2]|0;e:do{if((O|0)==0){x=53}else{while(1){if((c[O+24>>2]|0)==7){if((c[(Yu(c[O+32>>2]|0,N,q,0)|0)>>2]|0)!=5){break}Of(q)}O=c[O+112>>2]|0;if((O|0)==0){x=53;break e}}if((c[u>>2]|0)==5){break}Of(o);$W(r|0,u|0,16)|0;break d}}while(0);if((x|0)==53){c[t>>2]=0;c[y>>2]=0;c[u>>2]=5}Of(q)}}while(0);do{if((c[r>>2]|0)==5){v=c[v>>2]|0;if((v|0)==3){N=FW(4)|0;vz(N);break}else if((v|0)==2){N=FW(4)|0;gz(N);break}else if((v|0)==1){N=FW(4)|0;Ty(N);break}else{Of(o);break a}}else{N=Jy(o,b)|0}}while(0);Of(o);if((N|0)==0){break a}Yu(J,161600,o,0)|0;if((c[r>>2]|0)==5){Of(o);Yu(J,160288,o,0)|0}v=FW(672)|0;mB(v,c[M>>2]|0,o,N);Of(o);if((a[v+664|0]&1)==0){if((v|0)==0){break a}nB(v);HW(v);break a}Yu(J,161608,n,0)|0;Yu(J,159992,m,0)|0;f:do{if((c[L>>2]|0)==8){if(f){break a}f=c[K>>2]|0;z=jd[c[(c[f>>2]|0)+72>>2]&511](f)|0;Yu(z,161496,o,0)|0;w=c[r>>2]|0;if((w|0)==5){Of(o);Yu(z,161504,o,0)|0;w=c[r>>2]|0}if((w|0)!=1){x=161;break a}w=c[s>>2]|0;Of(o);Yu(z,161512,o,0)|0;A=c[r>>2]|0;if((A|0)==5){Of(o);Yu(z,161520,o,0)|0;A=c[r>>2]|0}if((A|0)!=1){x=161;break a}A=c[s>>2]|0;Of(o);Yu(z,161528,o,0)|0;B=c[r>>2]|0;if((B|0)==5){Of(o);Yu(z,160112,o,0)|0;B=c[r>>2]|0}if((B|0)==0){B=(a[s]&1)!=0}else{B=0}Of(o);Yu(z,161568,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(z,161592,o,0)|0;C=c[r>>2]|0}if((C|0)!=1){x=161;break a}C=c[s>>2]|0;Of(o);Yu(z,159208,o,0)|0;D=c[r>>2]|0;if((D|0)==5){Of(o);Yu(z,160104,o,0)|0;D=c[r>>2]|0}g:do{if((D|0)==4){D=c[b+20>>2]|0;s=c[s>>2]|0;h:do{if((D|0)==0){x=93}else{while(1){if((c[D+24>>2]|0)==7){if((c[(Yu(c[D+32>>2]|0,s,q,0)|0)>>2]|0)!=5){break}Of(q)}D=c[D+112>>2]|0;if((D|0)==0){x=93;break h}}if((c[u>>2]|0)==5){break}Of(o);$W(r|0,u|0,16)|0;break g}}while(0);if((x|0)==93){c[t>>2]=0;c[y>>2]=0;c[u>>2]=5}Of(q)}}while(0);s=Jy(o,b)|0;Of(o);if((s|0)==0){break a}if((jd[c[(c[s>>2]|0)+12>>2]&511](s)|0)!=0){break a}Yu(z,161600,o,0)|0;if((c[r>>2]|0)==5){Of(o);Yu(z,160288,o,0)|0}q=FW(672)|0;mB(q,C,o,s);Of(o);if((a[q+664|0]&1)==0){if((q|0)==0){break a}nB(q);HW(q);break a}o=c[b+116>>2]|0;i:do{if((o|0)==0){x=144}else{if((a[o]&1)!=0){break}do{o=c[o+4>>2]|0;if((o|0)==0){x=144;break i}}while((a[o]&1)==0)}}while(0);if((x|0)==144){O=c[b+8>>2]|0;vd[c[(c[O>>2]|0)+324>>2]&3](O,c[b+28>>2]|0,d,e,j,k,v,l,f,w,A,q,B)}if((q|0)==0){break}nB(q);HW(q)}else{y=c[G>>2]|0;j:do{if((y|0)==6){t=o+8|0;q=0;while(1){u=c[E>>2]|0;if(!((q|0)<(c[u+12>>2]|0)&(q|0)<64)){z=1;break j}ut(u,q,o)|0;u=c[r>>2]|0;if((u|0)==2){Qe(-1,161616,A);u=c[r>>2]|0;if((u|0)!=2){x=111;break}c[w+(q<<2)>>2]=~~+h[t>>3]}else if((u|0)==1){c[w+(q<<2)>>2]=c[s>>2]}else{x=113;break}Of(o);u=c[G>>2]|0;if((u|0)==6){q=q+1|0}else{x=106;break}}if((x|0)==106){c[H>>2]=u;c[I+4>>2]=6;Qe(0,162256,I);tc()}else if((x|0)==111){c[F>>2]=u;c[B+4>>2]=2;Qe(0,162256,B);tc()}else if((x|0)==113){c[C>>2]=u;Qe(-1,161688,D);Of(o);break a}}else if((y|0)==8){if(f){break a}x=c[E>>2]|0;B=jd[c[(c[x>>2]|0)+72>>2]&511](x)|0;Yu(B,161496,o,0)|0;y=c[r>>2]|0;if((y|0)==5){Of(o);Yu(B,161504,o,0)|0;y=c[r>>2]|0}if((y|0)!=1){x=161;break a}y=c[s>>2]|0;Of(o);Yu(B,161512,o,0)|0;z=c[r>>2]|0;if((z|0)==5){Of(o);Yu(B,161520,o,0)|0;z=c[r>>2]|0}if((z|0)!=1){x=161;break a}z=c[s>>2]|0;Of(o);Yu(B,161528,o,0)|0;A=c[r>>2]|0;if((A|0)==5){Of(o);Yu(B,160112,o,0)|0;A=c[r>>2]|0}if((A|0)==0){A=(a[s]&1)!=0}else{A=0}Of(o);Yu(B,161544,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(B,161560,o,0)|0;C=c[r>>2]|0}if((C|0)!=0){x=161;break a}if((a[s]&1)==0){x=161;break a}Of(o);Yu(B,161600,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(B,160288,o,0)|0;C=c[r>>2]|0}if((C|0)==6){ut(c[s>>2]|0,0,q)|0;p=c[u>>2]|0;do{if((p+ -1|0)>>>0<2){if((p|0)==1){P=+(c[t>>2]|0)}else{P=+h[t>>3]}if(P<.9){p=0;break}p=1}else{p=0}}while(0);Of(q)}else if((C|0)==5){p=0}else{x=161;break a}Of(o);o=c[b+116>>2]|0;k:do{if((o|0)!=0){if((a[o]&1)!=0){z=0;break j}while(1){o=c[o+4>>2]|0;if((o|0)==0){break k}if((a[o]&1)==0){}else{z=0;break j}}}}while(0);O=c[b+8>>2]|0;vd[c[(c[O>>2]|0)+320>>2]&3](O,c[b+28>>2]|0,d,e,j,k,v,l,x,y,z,p,A);break f}else{z=0}}while(0);o=c[b+116>>2]|0;l:do{if((o|0)!=0){if((a[o]&1)!=0){break f}while(1){o=c[o+4>>2]|0;if((o|0)==0){break l}if((a[o]&1)!=0){break f}}}}while(0);O=c[b+8>>2]|0;Ad[c[(c[O>>2]|0)+316>>2]&1](O,c[b+28>>2]|0,d,e,j,k,v,l,z?w:0,f)}}while(0);if((v|0)!=0){nB(v);HW(v)}Of(n);Of(m)}}while(0);e=da(k,j)|0;b=b+24|0;c[b>>2]=(c[b>>2]|0)+((e|0)>1e3?1e3:e);i=g;return}}while(0);if((x|0)==161){Of(o)}b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161744,p);i=g;return}function Rx(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0.0;e=i;r=i;i=i+8|0;s=r;v=i;i=i+8|0;w=v;z=i;i=i+8|0;y=z;B=i;i=i+8|0;A=B;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=E;K=i;i=i+8|0;L=K;N=i;i=i+8|0;U=i;i=i+8|0;T=U;V=i;i=i+8|0;W=i;i=i+8|0;Z=i;i=i+8|0;O=Z;I=i;i=i+16|0;H=I;Q=i;i=i+16|0;P=Q;R=i;i=i+48|0;k=R;j=i;i=i+32|0;J=i;i=i+16|0;f=J;x=i;i=i+16|0;g=x;q=i;i=i+16|0;m=q;u=i;i=i+16|0;p=u;c[I>>2]=13;M=H+8|0;c[M>>2]=0;c[M+4>>2]=0;c[Q>>2]=13;S=P+8|0;c[S>>2]=0;c[S+4>>2]=0;c[J>>2]=13;G=f+8|0;c[G>>2]=0;c[G+4>>2]=0;c[x>>2]=13;t=g+8|0;c[t>>2]=0;c[t+4>>2]=0;c[q>>2]=13;q=m+8|0;c[q>>2]=0;c[q+4>>2]=0;c[u>>2]=13;q=p+8|0;c[q>>2]=0;c[q+4>>2]=0;l=b+112|0;if((c[l>>2]|0)>20){i=e;return}Y=c[d>>2]|0;if((Y|0)!=8){c[Z>>2]=Y;c[O+4>>2]=8;Qe(0,162256,O);tc()}O=c[d+8>>2]|0;O=jd[c[(c[O>>2]|0)+72>>2]&511](O)|0;Yu(O,160360,g,0)|0;Y=c[x>>2]|0;if((Y|0)==1){if((c[t>>2]|0)!=1){X=6}}else if((Y|0)!=5){X=6}if((X|0)==6){X=c[b+120>>2]|0;do{if((X|0)==0){X=-1}else{X=c[X+4>>2]|0;if((c[X+16>>2]|0)!=8){X=-1;break}X=c[X+24>>2]|0;X=jd[c[(c[X>>2]|0)+48>>2]&511](X)|0}}while(0);Qe(X,160376,W)}Of(g);Yu(O,160400,P,0)|0;if((c[Q>>2]|0)!=6){Of(P);b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,160408,V);i=e;return}V=6;W=0;while(1){if((V|0)!=6){X=17;break}ut(c[S>>2]|0,W,g)|0;V=c[x>>2]|0;if((V+ -1|0)>>>0>=2){X=24;break}if((V|0)==1){_=+(c[t>>2]|0)}else{_=+h[t>>3]}h[j+(W<<3)>>3]=_;Of(g);W=W+1|0;if((W|0)>=4){X=28;break}V=c[Q>>2]|0}if((X|0)==17){c[U>>2]=V;c[T+4>>2]=6;Qe(0,162256,T);tc()}else if((X|0)==24){Of(g);b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161768,N);i=e;return}else if((X|0)==28){Of(P);Yu(O,160472,H,0)|0;a:do{if((c[I>>2]|0)==6){P=6;N=0;while(1){if((P|0)!=6){break}ut(c[M>>2]|0,N,g)|0;P=c[x>>2]|0;if((P+ -1|0)>>>0<2){if((P|0)==1){_=+(c[t>>2]|0)}else{_=+h[t>>3]}h[k+(N<<3)>>3]=_}else{h[k+(N<<3)>>3]=0.0}Of(g);N=N+1|0;if((N|0)>=6){break a}P=c[I>>2]|0}c[K>>2]=P;c[L+4>>2]=6;Qe(0,162256,L);tc()}else{h[R>>3]=1.0;bX(k+8|0,0,16)|0;h[k+24>>3]=1.0;bX(k+32|0,0,16)|0}}while(0);Of(H);Yu(O,160480,f,0)|0;if((c[J>>2]|0)==7){G=c[G>>2]|0}else{G=0}if((c[(Yu(O,160096,g,0)|0)>>2]|0)==7){H=c[x>>2]|0;if((H|0)!=7){c[E>>2]=H;c[F+4>>2]=7;Qe(0,162256,F);tc()}E=Yu(c[t>>2]|0,160008,m,0)|0;do{if((c[E>>2]|0)==4){if((Qc(c[E+8>>2]|0,161800)|0)!=0){C=0;o=0;n=0;p=0;break}E=c[x>>2]|0;if((E|0)!=7){c[C>>2]=E;c[D+4>>2]=7;Qe(0,162256,D);tc()}if((c[(Yu(c[t>>2]|0,160104,p,0)|0)>>2]|0)==5){C=0}else{C=Jy(p,b)|0}Of(p);D=c[x>>2]|0;if((D|0)!=7){c[B>>2]=D;c[A+4>>2]=7;Qe(0,162256,A);tc()}do{if((c[(Yu(c[t>>2]|0,160112,p,0)|0)>>2]|0)==0){A=c[u>>2]|0;if((A|0)==0){o=(a[q]&1)!=0;break}else{c[z>>2]=A;c[y+4>>2]=0;Qe(0,162256,y);tc()}}else{o=0}}while(0);Of(p);x=c[x>>2]|0;if((x|0)!=7){c[v>>2]=x;c[w+4>>2]=7;Qe(0,162256,w);tc()}do{if((c[(Yu(c[t>>2]|0,160120,p,0)|0)>>2]|0)==0){t=c[u>>2]|0;if((t|0)==0){n=(a[q]&1)!=0;break}else{c[r>>2]=t;c[s+4>>2]=0;Qe(0,162256,s);tc()}}else{n=0}}while(0);Of(p);p=1}else{C=0;o=0;n=0;p=0}}while(0);Of(m)}else{C=0;o=0;n=0;p=0}Of(g);c[l>>2]=(c[l>>2]|0)+1;Ax(b,d,G,k,j,p,0,C,o,n,0,0,0);c[l>>2]=(c[l>>2]|0)+ -1;if((C|0)!=0){fd[c[(c[C>>2]|0)+4>>2]&511](C)}Of(f);i=e;return}}function Sx(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;e=i;i=i+8|0;j=i;i=i+8|0;g=j;o=i;i=i+8|0;m=i;i=i+16|0;b=m;h=i;i=i+16|0;f=h;c[m>>2]=13;l=b+8|0;c[l>>2]=0;c[l+4>>2]=0;c[h>>2]=13;n=f+8|0;c[n>>2]=0;c[n+4>>2]=0;Jf(b,c[a>>2]|0)|0;a=a+120|0;cG(c[a>>2]|0,f,0,0,0,0,0)|0;while(1){p=c[h>>2]|0;if((p|0)==4){p=Ge(c[n>>2]|0)|0;Of(f);cG(c[a>>2]|0,f,0,0,0,0,0)|0;if(((c[h>>2]|0)+ -11|0)>>>0<2){k=13;break}q=c[m>>2]|0;if((q|0)!=7){k=10;break}Tu(c[l>>2]|0,p,f)}else if((p|0)==10){if((Qc(c[n>>2]|0,161912)|0)==0){break}else{k=4}}else if((p|0)==12){k=14;break}else{k=4}if((k|0)==4){k=0;p=c[a>>2]|0;do{if((p|0)==0){p=-1}else{p=c[p+4>>2]|0;if((c[p+16>>2]|0)!=8){p=-1;break}p=c[p+24>>2]|0;p=jd[c[(c[p>>2]|0)+48>>2]&511](p)|0}}while(0);Qe(p,161920,o);Of(f)}cG(c[a>>2]|0,f,0,0,0,0,0)|0}if((k|0)==10){c[j>>2]=q;c[g+4>>2]=7;Qe(0,162256,g);tc()}else if((k|0)==13){Fe(p);if((c[h>>2]|0)==12){k=14}}if((k|0)==14){g=c[a>>2]|0;do{if((g|0)==0){g=-1}else{g=c[g+4>>2]|0;if((c[g+16>>2]|0)!=8){g=-1;break}g=c[g+24>>2]|0;g=jd[c[(c[g>>2]|0)+48>>2]&511](g)|0}}while(0);Qe(g,161976,e);Of(f);Of(b);q=0;i=d;return q|0}Of(f);f=(c[a>>2]|0)+4|0;e=c[f>>2]|0;do{if((c[e+16>>2]|0)==8){if((c[e+24>>2]|0)==0){break}e=FW(40)|0;f=c[f>>2]|0;if((c[f+16>>2]|0)==8){f=c[f+24>>2]|0}else{f=0}$j(e,f,b,0,0);q=qj(e,b)|0;i=d;return q|0}}while(0);Of(b);q=0;i=d;return q|0}function Tx(a,b,d,e,f,g,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,D=0.0,E=0.0,F=0,G=0.0,H=0.0,I=0.0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0.0,ba=0,ca=0.0,da=0.0,ea=0.0,fa=0.0,ga=0.0,ha=0.0,ia=0.0,ja=0.0;l=i;L=i;i=i+16|0;K=L;N=i;i=i+8|0;J=N;V=i;i=i+8|0;Y=i;i=i+8|0;X=Y;$=i;i=i+8|0;M=i;i=i+16|0;S=M;Z=i;i=i+16|0;W=Z;z=i;i=i+16|0;x=z;R=i;i=i+16|0;U=R;B=i;i=i+48|0;w=B;O=i;i=i+32|0;y=O;v=i;i=i+120|0;c[M>>2]=13;P=S+8|0;c[P>>2]=0;c[P+4>>2]=0;c[Z>>2]=13;_=W+8|0;c[_>>2]=0;c[_+4>>2]=0;c[z>>2]=13;A=x+8|0;c[A>>2]=0;c[A+4>>2]=0;c[R>>2]=13;Q=U+8|0;c[Q>>2]=0;c[Q+4>>2]=0;m=a+28|0;q=c[m>>2]|0;ha=+h[q+16>>3];ea=+h[q+40>>3];ia=+h[q+24>>3];fa=+h[q+32>>3];ja=1.0/(ha*ea-ia*fa);u=ea*ja;s=-0.0-ia*ja;r=-0.0-fa*ja;t=ha*ja;da=+h[q+56>>3];ca=+h[q+48>>3];ea=ja*(fa*da-ea*ca);da=ja*(ia*ca-ha*da);q=a+64|0;ha=+h[q>>3];n=a+80|0;ca=+h[n>>3];ia=+h[a+96>>3];ja=ia+(ha*f+ca*g);o=a+72|0;fa=+h[o>>3];p=a+88|0;aa=+h[p>>3];ga=+h[a+104>>3];g=ga+(fa*f+aa*g);f=ea+(u*ja+g*r);g=da+(ja*s+t*g);ca=ia+(ha*j+ca*k);aa=ga+(fa*j+aa*k);j=ea+(u*ca+aa*r);aa=da+(ca*s+t*aa);F=f>j;k=F?f:j;j=F?j:f;F=g>aa;f=F?aa:g;g=F?g:aa;do{if((c[b>>2]|0)==8){F=c[b+8>>2]|0;F=jd[c[(c[F>>2]|0)+72>>2]&511](F)|0;Yu(F,160400,W,0)|0;if((c[Z>>2]|0)!=6){Of(W);m=c[a+120>>2]|0;do{if((m|0)==0){m=-1}else{m=c[m+4>>2]|0;if((c[m+16>>2]|0)!=8){m=-1;break}m=c[m+24>>2]|0;m=jd[c[(c[m>>2]|0)+48>>2]&511](m)|0}}while(0);Qe(m,160408,$);i=l;return}$=6;ba=0;while(1){if(($|0)!=6){Z=9;break}ut(c[_>>2]|0,ba,U)|0;$=c[R>>2]|0;if(($+ -1|0)>>>0>=2){Z=16;break}if(($|0)==1){aa=+(c[Q>>2]|0)}else{aa=+h[Q>>3]}h[y+(ba<<3)>>3]=aa;Of(U);ba=ba+1|0;if((ba|0)>=4){Z=20;break}$=c[Z>>2]|0}if((Z|0)==9){c[Y>>2]=$;c[X+4>>2]=6;Qe(0,162256,X);tc()}else if((Z|0)==16){Of(U);m=c[a+120>>2]|0;do{if((m|0)==0){m=-1}else{m=c[m+4>>2]|0;if((c[m+16>>2]|0)!=8){m=-1;break}m=c[m+24>>2]|0;m=jd[c[(c[m>>2]|0)+48>>2]&511](m)|0}}while(0);Qe(m,161768,V);i=l;return}else if((Z|0)==20){Of(W);Yu(F,160472,S,0)|0;do{if((c[M>>2]|0)==6){if((c[(c[P>>2]|0)+12>>2]|0)>5){W=6;V=0}else{Z=31;break}while(1){if((W|0)!=6){Z=23;break}ut(c[P>>2]|0,V,U)|0;W=c[R>>2]|0;if((W+ -1|0)>>>0>=2){Z=25;break}if((W|0)==1){aa=+(c[Q>>2]|0)}else{aa=+h[Q>>3]}h[w+(V<<3)>>3]=aa;Of(U);V=V+1|0;if((V|0)>=6){Z=32;break}W=c[M>>2]|0}if((Z|0)==23){c[N>>2]=W;c[J+4>>2]=6;Qe(0,162256,J);tc()}else if((Z|0)==25){c[L>>2]=W;c[K+4>>2]=1;c[K+8>>2]=2;Qe(0,162328,K);tc()}else if((Z|0)==32){C=+h[w+40>>3];E=+h[w+24>>3];D=+h[w+8>>3];G=+h[w+32>>3];I=+h[w+16>>3];H=+h[B>>3];break}}else{Z=31}}while(0);if((Z|0)==31){h[B>>3]=1.0;bX(w+8|0,0,16)|0;h[w+24>>3]=1.0;bX0)!=0){ke(F);HW(F)}F=c[E>>2]|0;if((F|0)==0){G=19;break}else{la=0}while(1){k=72928+(la*24|0)|0;Q=la+1|0;if((te(F,c[k>>2]|0)|0)==0){break}if((Q|0)>=14){G=19;break a}F=c[E>>2]|0;la=Q}if((k|0)==0){G=19;break}ha=72936+(la*24|0)|0;ga=d+152|0;h[ga>>3]=+(b[ha>>1]|0)*.001;fa=72938+(la*24|0)|0;ea=d+160|0;h[ea>>3]=+(b[fa>>1]|0)*.001;Q=72940+(la*24|0)|0;ma=d+112|0;h[ma>>3]=+(b[Q>>1]|0)*.001;ia=72942+(la*24|0)|0;ka=d+120|0;h[ka>>3]=+(b[ia>>1]|0)*.001;F=72944+(la*24|0)|0;ja=d+128|0;h[ja>>3]=+(b[F>>1]|0)*.001;la=72946+(la*24|0)|0;na=d+136|0;h[na>>3]=+(b[la>>1]|0)*.001;Zx(d,f,m);if((c[d+52>>2]|0)>=0){F=1;break}h[ga>>3]=+(b[ha>>1]|0)*.001;h[ea>>3]=+(b[fa>>1]|0)*.001;h[ma>>3]=+(b[Q>>1]|0)*.001;h[ka>>3]=+(b[ia>>1]|0)*.001;h[ja>>3]=+(b[F>>1]|0)*.001;h[na>>3]=+(b[la>>1]|0)*.001;F=1}}while(0);if((G|0)==19){h[d+152>>3]=.95;h[d+160>>3]=-.35;bX(d+112|0,0,32)|0;Zx(d,f,m);F=0;k=0}ea=c[E>>2]|0;do{if((ea|0)!=0){Q=c[x>>2]|0;if((Q|0)==5){c[R>>2]=gf(c[834]|0,ea,163512)|0;break}else if((Q|0)==1){c[R>>2]=gf(c[834]|0,ea,163456)|0;break}else{break}}}while(0);h[d+88>>3]=1.0;Q=d+64|0;h[Q>>3]=1.0;bX(d+72|0,0,16)|0;bXbX(A|0,0,1024)|0;A=ku(B)|0;D=0;do{do{if((wu(c[l>>2]|0,D,y)|0)>0){B=wu(C,c[c[z>>2]>>2]|0,y)|0;if((B|0)<=0){break}vu(A,D,c[z>>2]|0,B)}}while(0);D=D+1|0;}while((D|0)<256);uu(C);y=c[l>>2]|0;if((y|0)!=0){su(y);HW(y)}c[l>>2]=A}}while(0);y=d+144|0;z=0;do{h[d+1464+(z<<3)>>3]=+h[y>>3]*.001;z=z+1|0;}while((z|0)<256);Yu(m,164304,q,0)|0;if((c[r>>2]|0)==1){y=c[g>>2]|0}else{y=0}Of(q);y=y>>>0>255?0:y;Yu(m,164320,q,0)|0;if((c[r>>2]|0)==1){z=c[g>>2]|0}else{z=255}Of(q);z=z>>>0>255?255:z;if((c[x>>2]|0)==4){oa=+h[Q>>3]}else{oa=.001}Yu(m,164336,q,0)|0;if((c[r>>2]|0)==6){m=d+44|0;c[m>>2]=c[m>>2]|1;x=c[(c[g>>2]|0)+12>>2]|0;if((x|0)<(1-y+z|0)){x=y+ -1+x|0}else{x=z}if((y|0)>(x|0)){Of(q);na=j;a[na]=1;i=p;return}z=d+1464+(y<<3)|0;A=6;l=y;while(1){if((A|0)!=6){G=193;break}ut(c[g>>2]|0,l-y|0,v)|0;A=c[s>>2]|0;do{if((A+ -1|0)>>>0<2){if((A|0)==1){pa=+(c[w>>2]|0)}else{pa=+h[w>>3]}pa=oa*pa;h[d+1464+(l<<3)>>3]=pa;if(pa==+h[z>>3]){break}c[m>>2]=c[m>>2]&-2}}while(0);Of(v);if((l|0)>=(x|0)){G=217;break}A=c[r>>2]|0;l=l+1|0}if((G|0)==193){c[u>>2]=A;c[t+4>>2]=6;Qe(0,166192,t);tc()}else if((G|0)==217){Of(q);na=j;a[na]=1;i=p;return}}if(F){r=k+20|0;if(BH(c[r>>2]|0,164344,n)|0){h[d+1720>>3]=+(e[o>>1]|0)*.001;s=0}else{s=0}do{t=c[d+176+(s<<2)>>2]|0;do{if((t|0)!=0){if(!(BH(c[r>>2]|0,t,n)|0)){break}h[d+1464+(s<<3)>>3]=+(e[o>>1]|0)*.001}}while(0);s=s+1|0;}while((s|0)<256);Of(q);na=j;a[na]=1;i=p;return}r=c[d+44>>2]|0;if((r&1|0)==0){s=(r<<1&4)+4|0}else{s=0}r=(c[73264+((r>>>17&2|s)+(r>>>6&1)<<2)>>2]|0)+20|0;if(BH(c[r>>2]|0,164344,n)|0){h[d+1720>>3]=+(e[o>>1]|0)*.001;s=0}else{s=0}do{t=c[d+176+(s<<2)>>2]|0;do{if((t|0)!=0){if(!(BH(c[r>>2]|0,t,n)|0)){break}h[d+1464+(s<<3)>>3]=+(e[o>>1]|0)*.001}}while(0);s=s+1|0;}while((s|0)<256);Of(q);na=j;a[na]=1;i=p;return}function cy(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;l=i;u=i;i=i+8|0;v=u;t=i;i=i+8|0;s=t;y=i;i=i+8|0;z=y;m=i;i=i+8|0;n=m;q=i;i=i+8|0;r=q;B=i;i=i+8|0;o=i;i=i+8|0;p=o;A=i;i=i+8|0;x=A;if((e|0)<1){c[B>>2]=b;Qe(-1,166264,B);B=0;i=l;return B|0}do{if(k){B=Fb(b|0,46)|0;if((B|0)==(b|0)){B=0;i=l;return B|0}if((B|0)==0){break}f=He(b,B-b|0)|0;B=cy(f,d,e,1,g,h,j,0)|0;Fe(f);i=l;return B|0}}while(0);do{if(g){if((Fb(b|0,95)|0)==0){break}m=Ge(b)|0;n=m;t=0;while(1){o=Fb(n|0,95)|0;p=(o|0)!=0;if(p){a[o]=0}do{if((a[n]|0)!=0){s=cy(n,d+(t<<2)|0,e-t|0,1,0,h,j,k)|0;if((s|0)==0){c[q>>2]=n;c[r+4>>2]=b;Qe(-1,166352,r);break}else{t=s+t|0;break}}}while(0);if(!p){break}if((t|0)<(e|0)){n=o+1|0}else{break}}Fe(m);B=t;i=l;return B|0}}while(0);do{if(f){k=cf(c[834]|0,b)|0;c[d>>2]=k;k=(k|0)!=0;if(k|h^1){k=k&1}else{break}i=l;return k|0}else{if(h){break}else{k=0}i=l;return k|0}}while(0);h=ZW(b|0)|0;do{if(h>>>0>6&(h&3|0)==3){if((vc(b|0,166424,3)|0)!=0){break}if((e|0)>0&h>>>0>3){k=0;j=3}else{B=0;i=l;return B|0}do{q=b+j|0;do{if((lc(a[q]|0)|0)!=0){if((lc(a[b+(j+1)|0]|0)|0)==0){break}if((lc(a[b+(j+2)|0]|0)|0)==0){break}if((lc(a[b+(j+3)|0]|0)|0)==0){break}c[m>>2]=p;Hc(q|0,166432,n|0)|0;q=c[o>>2]|0;if(!(q>>>0<55296|(q+ -57344|0)>>>0<8192)){break}c[d+(k<<2)>>2]=q;k=k+1|0}}while(0);j=j+4|0;}while((k|0)<(e|0)&j>>>0<h>>>0);i=l;return k|0}}while(0);a:do{if((h+ -5|0)>>>0<3){if((a[b]|0)!=117){w=44;break}e=b+1|0;if((lc(a[e]|0)|0)==0){w=44;break}if((lc(a[b+2|0]|0)|0)==0){w=44;break}if((lc(a[b+3|0]|0)|0)==0){w=44;break}if((lc(a[b+4|0]|0)|0)==0){w=44;break}do{if(h>>>0>=6){if((lc(a[b+5|0]|0)|0)==0){w=44;break a}if(h>>>0<7){break}if((lc(a[b+6|0]|0)|0)==0){break a}}}while(0);c[y>>2]=x;Hc(e|0,166440,z|0)|0;e=c[A>>2]|0;if(!(e>>>0<55296|(e+ -57344|0)>>>0<1056768)){w=44;break}c[d>>2]=e;B=1;i=l;return B|0}else{w=44}}while(0);do{if((w|0)==44){do{if((h|0)==3&j){if((Ab(a[b]|0)|0)==0){break}e=b+1|0;if((lc(a[e]|0)|0)==0){break}if((lc(a[b+2|0]|0)|0)==0){break}c[t>>2]=d;Hc(e|0,166440,s|0)|0;B=1;i=l;return B|0}}while(0);if(!((h|0)==2&j)){break}if((lc(a[b]|0)|0)==0){break}if((lc(a[b+1|0]|0)|0)==0){break}c[u>>2]=d;Hc(b|0,166440,v|0)|0;B=1;i=l;return B|0}}while(0);do{if(!j){if((h+ -2|0)>>>0>=3){break}if(((a[b]|0)+ -48|0)>>>0>=10){break}if(((a[b+1|0]|0)+ -48|0)>>>0>=10){break}c[d>>2]=ec(b|0)|0;B=1;i=l;return B|0}}while(0);do{if((h+ -3|0)>>>0<3){e=b+1|0;if(((a[e]|0)+ -48|0)>>>0>=10){break}if(((a[b+2|0]|0)+ -48|0)>>>0>=10){break}c[d>>2]=ec(e|0)|0;B=1;i=l;return B|0}}while(0);if((h+ -4|0)>>>0>=3){B=0;i=l;return B|0}e=b+2|0;if(((a[e]|0)+ -48|0)>>>0>=10){B=0;i=l;return B|0}if(((a[b+3|0]|0)+ -48|0)>>>0>=10){B=0;i=l;return B|0}c[d>>2]=ec(e|0)|0;B=1;i=l;return B|0}function dy(a){a=a|0;var b=0;b=i;ey(a);HW(a);i=b;return}function ey(b){b=b|0;var d=0,e=0,f=0;d=i;c[b>>2]=163592;e=0;do{do{if((a[b+1200+e|0]|0)!=0){f=c[b+176+(e<<2)>>2]|0;if((f|0)==0){break}Fe(f)}}while(0);e=e+1|0;}while((e|0)<256);uu(c[b+1456>>2]|0);e=b+3512|0;if((c[e>>2]|0)==7){Of(e)}e=b+3528|0;if((c[e>>2]|0)!=7){Wx(b);i=d;return}Of(e);Wx(b);i=d;return}function fy(a,b,e,f,g,j,k,l,m,n){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;e=i;b=d[b]|0;c[f>>2]=b;c[j>>2]=wu(c[a+1456>>2]|0,b,g)|0;h[k>>3]=+h[a+1464+(b<<3)>>3];h[n>>3]=0.0;h[m>>3]=0.0;h[l>>3]=0.0;i=e;return 1}function gy(a){a=a|0;var b=0;b=i;a=a+1456|0;tu(c[a>>2]|0);i=b;return c[a>>2]|0}function hy(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;h=i;i=i+8|0;j=h;g=ye(256,2)|0;bX(g|0,0,512)|0;if((Hn(e)|0)>0){k=0;m=-1;n=-1;l=-1;do{q=In(e,k)|0;o=Jn(e,k)|0;p=(q|0)==3;do{if(p&(o|0)==1|(q|0)==0){l=k}else{o=(o|0)==0;q=(q|0)==1&o;if(q|p^1){m=q?k:m;break}n=o?k:n}}while(0);k=k+1|0;}while((k|0)<(Hn(e)|0))}else{m=-1;n=-1;l=-1}do{if((a[d+1460|0]&1)==0){if((c[d+40>>2]|0)==1){k=8;break}if((n|0)>-1){m=n;k=15;break}m=(m|0)<0?0:m;k=15}else{k=8}}while(0);a:do{if((k|0)==8){o=(m|0)>-1;do{if(!((a[d+1461|0]&1)!=0&o)){if((l|0)<=-1){h=(c[d+44>>2]&4|0)!=0;if(h&(n|0)>-1){m=n;k=15;break a}if(h&o){k=15;break a}m=o?m:0;if(o){break}else{k=15;break a}}m=d+1456|0;n=0;while(1){o=c[d+176+(n<<2)>>2]|0;do{if((o|0)==0){k=25}else{o=cf(c[834]|0,o)|0;if((o|0)==0){k=25;break}b[g+(n<<1)>>1]=Kn(e,l,o)|0}}while(0);do{if((k|0)==25){k=0;if((wu(c[m>>2]|0,n,j)|0)<=0){break}b[g+(n<<1)>>1]=Kn(e,l,c[c[h>>2]>>2]|0)|0}}while(0);n=n+1|0;if((n|0)>=256){h=0;break a}}}}while(0);h=0;while(1){j=c[d+176+(h<<2)>>2]|0;do{if((j|0)!=0){j=bf(c[834]|0,j)|0;if((j|0)==0){break}b[g+(h<<1)>>1]=Kn(e,m,j)|0}}while(0);h=h+1|0;if((h|0)>=256){h=0;break}}}}while(0);if((k|0)==15){j=0;while(1){q=Kn(e,m,j)|0;h=g+(j<<1)|0;b[h>>1]=q;if(q<<16>>16==0){b[h>>1]=Kn(e,m,j+61440|0)|0}j=j+1|0;if((j|0)>=256){h=0;break}}}do{k=g+(h<<1)|0;do{if((b[k>>1]|0)==0){j=c[d+176+(h<<2)>>2]|0;if((j|0)==0){break}b[k>>1]=Ln(e,j)|0}}while(0);h=h+1|0;}while((h|0)<256);i=f;return g|0}function iy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;b=c[a+176+(b<<2)>>2]|0;do{if((b|0)!=0){if((c[a+3512>>2]|0)!=7){break}Yu(c[a+3520>>2]|0,b,d,0)|0;i=e;return d|0}}while(0);b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;i=e;return d|0}function jy(a){a=a|0;var b=0;b=i;if((c[a+3528>>2]|0)!=7){a=0;i=b;return a|0}a=c[a+3536>>2]|0;i=b;return a|0}function ky(d,e,f,g,j,k){d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0.0;m=i;u=i;i=i+8|0;ia=i;i=i+8|0;ha=i;i=i+16|0;ja=ha;I=i;i=i+16|0;L=I;E=i;i=i+16|0;G=E;B=i;i=i+8|0;C=B;z=i;i=i+8|0;A=z;s=i;i=i+8|0;r=s;fa=i;i=i+8|0;ga=fa;ea=i;i=i+8|0;ca=i;i=i+16|0;da=ca;aa=i;i=i+16|0;ba=aa;_=i;i=i+16|0;$=_;Y=i;i=i+8|0;Z=Y;t=i;i=i+8|0;X=t;ka=i;i=i+8|0;V=ka;S=i;i=i+8|0;T=S;x=i;i=i+8|0;y=x;v=i;i=i+8|0;w=v;p=i;i=i+8|0;q=p;ra=i;i=i+16|0;sa=ra;ua=i;i=i+8|0;ta=ua;xa=i;i=i+16|0;wa=xa;za=i;i=i+8|0;ya=za;Fa=i;i=i+8|0;Qa=i;i=i+8|0;Na=i;i=i+16|0;Oa=Na;Ea=i;i=i+8|0;Ba=Ea;La=i;i=i+8|0;Ma=La;Ga=i;i=i+8|0;Ja=i;i=i+16|0;Ka=Ja;Ha=i;i=i+8|0;Ia=Ha;Ua=i;i=i+8|0;Pa=Ua;Sa=i;i=i+8|0;Ra=Sa;Wa=i;i=i+8|0;Ta=Wa;Ca=i;i=i+8|0;Da=Ca;ab=i;i=i+8|0;$a=ab;lb=i;i=i+8|0;eb=i;i=i+8|0;db=eb;bb=i;i=i+8|0;cb=bb;kb=i;i=i+8|0;jb=kb;nb=i;i=i+8|0;mb=nb;ub=i;i=i+8|0;rb=ub;ob=i;i=i+8|0;Ab=i;i=i+8|0;Bb=Ab;zb=i;i=i+8|0;Cb=zb;Eb=i;i=i+8|0;Fb=Eb;Gb=i;i=i+8|0;Ib=i;i=i+8|0;Hb=Ib;Jb=i;i=i+8|0;Kb=Jb;Lb=i;i=i+8|0;Mb=i;i=i+8|0;Nb=Mb;Pb=i;i=i+8|0;Qb=i;i=i+8|0;_a=Qb;Rb=i;i=i+8|0;Sb=i;i=i+8|0;Tb=Sb;Vb=i;i=i+8|0;R=i;i=i+8|0;U=R;Xa=i;i=i+8|0;Va=Xa;Ub=i;i=i+16|0;n=Ub;N=i;i=i+16|0;l=N;K=i;i=i+16|0;Q=K;J=i;i=i+16|0;W=J;H=i;i=i+16|0;P=H;F=i;i=i+16|0;O=F;D=i;i=i+16|0;M=D;wb=i;i=i+8|0;xb=wb;pb=i;i=i+16|0;sb=pb;Ob=g;Wb=c[Ob>>2]|0;Ob=c[Ob+4>>2]|0;c[d>>2]=162528;g=d+172|0;a[g]=0;Db=FW(32)|0;fe(Db,f);c[d+8>>2]=Db;Db=d+12|0;c[Db>>2]=Wb;c[Db+4>>2]=Ob;Db=d+20|0;c[Db>>2]=j;c[d+36>>2]=j;c[d+48>>2]=0;Ob=d+60|0;c[Ob>>2]=0;c[d+24>>2]=0;c[d+28>>2]=0;c[d+32>>2]=0;c[d+4>>2]=0;a[d+173|0]=0;c[d>>2]=164360;c[Ub>>2]=13;Wb=n+8|0;c[Wb>>2]=0;c[Wb+4>>2]=0;c[N>>2]=13;pa=l+8|0;c[pa>>2]=0;c[pa+4>>2]=0;c[K>>2]=13;oa=Q+8|0;c[oa>>2]=0;c[oa+4>>2]=0;c[J>>2]=13;na=W+8|0;c[na>>2]=0;c[na+4>>2]=0;c[H>>2]=13;j=P+8|0;c[j>>2]=0;c[j+4>>2]=0;c[F>>2]=13;qa=O+8|0;c[qa>>2]=0;c[qa+4>>2]=0;c[D>>2]=13;ma=M+8|0;c[ma>>2]=0;c[ma+4>>2]=0;c[d+168>>2]=1;h[d+152>>3]=.95;h[d+160>>3]=-.35;vb=d+176|0;c[vb>>2]=0;yb=d+180|0;c[yb>>2]=0;fb=d+184|0;bX(d+112|0,0,32)|0;h[fb>>3]=1.0;va=d+192|0;h[va>>3]=-1.0;Aa=d+200|0;h[Aa>>3]=.88;Za=d+208|0;Ya=d+212|0;la=d+216|0;f=d+220|0;hb=d+224|0;ib=d+228|0;bXbX(j|0,0,524288)|0;do{if((c[v>>2]|0)==0){c[t>>2]=c[(c[w>>2]|0)+28>>2];Qe(-1,166024,u);k=jd[c[(c[a>>2]|0)+4>>2]&511](a)|0;c[n>>2]=k;if((k|0)==0){o=0;break}else{l=0}do{if((wu(k,l,q)|0)==0){c[j+(l<<1<<2)>>2]=0}else{c[j+(l<<1<<2)>>2]=c[c[o>>2]>>2]}c[j+((l<<1|1)<<2)>>2]=0;l=l+1|0;k=c[n>>2]|0}while(l>>>0<65536);uu(k);o=0}else{fe(l,c[v+8>>2]|0);o=ou(l,16)|0;if((o|0)!=0){n=0;do{if((wu(o,n,r)|0)==1){c[h+(n<<2)>>2]=c[c[s>>2]>>2]}else{c[h+(n<<2)>>2]=0}n=n+1|0;}while(n>>>0<65536);su(o);HW(o)}o=GW(262144)|0;bXbX(x|0,0,24)|0;h[a>>3]=1.0;do{if((c[(Yu(c[m>>2]|0,168288,d,0)|0)>>2]|0)==6){O=c[l>>2]|0;if((O|0)!=6){c[N>>2]=O;c[M+4>>2]=6;Qe(0,172720,M);tc()}M=c[g>>2]|0;if((c[M+12>>2]|0)!=3){F=1.0;G=1.0;K=1.0;break}ut(M,0,p)|0;M=c[s>>2]|0;if((M+ -1|0)>>>0<2){if((M|0)==1){K=+(c[r>>2]|0)}else{K=+h[r>>3]}h[L>>3]=K}else{K=1.0}Of(p);L=c[l>>2]|0;if((L|0)!=6){c[I>>2]=L;c[H+4>>2]=6;Qe(0,172720,H);tc()}ut(c[g>>2]|0,1,p)|0;H=c[s>>2]|0;if((H+ -1|0)>>>0<2){if((H|0)==1){G=+(c[r>>2]|0)}else{G=+h[r>>3]}h[J>>3]=G}else{G=1.0}Of(p);H=c[l>>2]|0;if((H|0)!=6){c[D>>2]=H;c[C+4>>2]=6;Qe(0,172720,C);tc()}ut(c[g>>2]|0,2,p)|0;C=c[s>>2]|0;if((C+ -1|0)>>>0<2){if((C|0)==1){F=+(c[r>>2]|0)}else{F=+h[r>>3]}h[E>>3]=F}else{F=1.0}Of(p)}else{F=1.0;G=1.0;K=1.0}}while(0);Of(d);C=c[q>>2]|0;if((C|0)!=7){c[A>>2]=C;c[B+4>>2]=7;Qe(0,172720,B);tc()}do{if((c[(Yu(c[m>>2]|0,168304,d,0)|0)>>2]|0)==6){A=c[l>>2]|0;if((A|0)!=6){c[z>>2]=A;c[y+4>>2]=6;Qe(0,172720,y);tc()}y=c[g>>2]|0;if((c[y+12>>2]|0)!=3){break}ut(y,0,p)|0;y=c[s>>2]|0;if((y+ -1|0)>>>0<2){if((y|0)==1){P=+(c[r>>2]|0)}else{P=+h[r>>3]}h[x>>3]=P}Of(p);x=c[l>>2]|0;if((x|0)!=6){c[w>>2]=x;c[v+4>>2]=6;Qe(0,172720,v);tc()}ut(c[g>>2]|0,1,p)|0;v=c[s>>2]|0;if((v+ -1|0)>>>0<2){if((v|0)==1){P=+(c[r>>2]|0)}else{P=+h[r>>3]}h[n+40>>3]=P}Of(p);v=c[l>>2]|0;if((v|0)!=6){c[t>>2]=v;c[u+4>>2]=6;Qe(0,172720,u);tc()}ut(c[g>>2]|0,2,p)|0;s=c[s>>2]|0;if((s+ -1|0)>>>0<2){if((s|0)==1){P=+(c[r>>2]|0)}else{P=+h[r>>3]}h[n+48>>3]=P}Of(p)}}while(0);Of(d);p=c[q>>2]|0;if((p|0)!=7){c[o>>2]=p;c[k+4>>2]=7;Qe(0,172720,k);tc()}if(((c[(Yu(c[m>>2]|0,168320,d,0)|0)>>2]|0)+ -1|0)>>>0<2){k=c[l>>2]|0;if((k+ -1|0)>>>0>=2){c[j>>2]=k;c[f+4>>2]=1;c[f+8>>2]=2;Qe(0,172792,f);tc()}if((k|0)==1){P=+(c[g>>2]|0)}else{P=+h[g>>3]}h[a>>3]=P}Of(d);Of(b);h[n+64>>3]=1.0/(K*3.240449+G*-1.537136+F*-.498531);h[n+72>>3]=1.0/(K*-.969265+G*1.876011+F*.041556);h[n+80>>3]=1.0/(K*.055643+G*-.204026+F*1.057229);O=n;i=e;return O|0}function Ly(a){a=a|0;var b=0.0,d=0,e=0,f=0.0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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.0,Q=0.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.0;g=i;d=i;i=i+8|0;e=d;u=i;i=i+8|0;v=u;x=i;i=i+8|0;y=x;C=i;i=i+8|0;A=C;D=i;i=i+8|0;F=D;H=i;i=i+8|0;I=H;J=i;i=i+8|0;K=J;M=i;i=i+8|0;L=M;O=i;i=i+8|0;N=O;T=i;i=i+8|0;S=T;V=i;i=i+8|0;U=V;X=i;i=i+8|0;W=X;Z=i;i=i+8|0;Y=Z;$=i;i=i+8|0;_=$;q=i;i=i+8|0;z=i;i=i+16|0;j=z;l=i;i=i+16|0;k=l;p=i;i=i+16|0;m=p;c[z>>2]=13;w=j+8|0;c[w>>2]=0;c[w+4>>2]=0;c[l>>2]=13;o=k+8|0;c[o>>2]=0;c[o+4>>2]=0;c[p>>2]=13;n=m+8|0;c[n>>2]=0;c[n+4>>2]=0;ut(a,1,j)|0;if((c[z>>2]|0)!=7){Qe(-1,168472,q);Of(j);aa=0;i=g;return aa|0}a=FW(176)|0;c[a>>2]=168408;q=a+24|0;h[q>>3]=1.0;r=a+16|0;h[r>>3]=1.0;s=a+8|0;h[s>>3]=1.0;R=a+32|0;B=a+72|0;bX(R|0,0,24)|0;h[B>>3]=1.0;E=a+64|0;h[E>>3]=1.0;G=a+56|0;h[G>>3]=1.0;t=a+80|0;h[t>>3]=1.0;bX(a+88|0,0,24)|0;h[a+112>>3]=1.0;bX(a+120|0,0,24)|0;h[a+144>>3]=1.0;do{if((c[(Yu(c[w>>2]|0,168288,k,0)|0)>>2]|0)==6){aa=c[l>>2]|0;if((aa|0)!=6){c[$>>2]=aa;c[_+4>>2]=6;Qe(0,172720,_);tc()}_=c[o>>2]|0;if((c[_+12>>2]|0)!=3){P=1.0;Q=1.0;break}ut(_,0,m)|0;_=c[p>>2]|0;if((_+ -1|0)>>>0<2){if((_|0)==1){P=+(c[n>>2]|0)}else{P=+h[n>>3]}h[s>>3]=P}Of(m);_=c[l>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}ut(c[o>>2]|0,1,m)|0;Y=c[p>>2]|0;if((Y+ -1|0)>>>0<2){if((Y|0)==1){Q=+(c[n>>2]|0)}else{Q=+h[n>>3]}h[r>>3]=Q}else{Q=1.0}Of(m);Y=c[l>>2]|0;if((Y|0)!=6){c[X>>2]=Y;c[W+4>>2]=6;Qe(0,172720,W);tc()}ut(c[o>>2]|0,2,m)|0;W=c[p>>2]|0;if((W+ -1|0)>>>0<2){if((W|0)==1){P=+(c[n>>2]|0)}else{P=+h[n>>3]}h[q>>3]=P}else{P=1.0}Of(m)}else{P=1.0;Q=1.0}}while(0);Of(k);W=c[z>>2]|0;if((W|0)!=7){c[V>>2]=W;c[U+4>>2]=7;Qe(0,172720,U);tc()}do{if((c[(Yu(c[w>>2]|0,168304,k,0)|0)>>2]|0)==6){U=c[l>>2]|0;if((U|0)!=6){c[T>>2]=U;c[S+4>>2]=6;Qe(0,172720,S);tc()}S=c[o>>2]|0;if((c[S+12>>2]|0)!=3){break}ut(S,0,m)|0;S=c[p>>2]|0;if((S+ -1|0)>>>0<2){if((S|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[R>>3]=ba}Of(m);R=c[l>>2]|0;if((R|0)!=6){c[O>>2]=R;c[N+4>>2]=6;Qe(0,172720,N);tc()}ut(c[o>>2]|0,1,m)|0;N=c[p>>2]|0;if((N+ -1|0)>>>0<2){if((N|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[a+40>>3]=ba}Of(m);N=c[l>>2]|0;if((N|0)!=6){c[M>>2]=N;c[L+4>>2]=6;Qe(0,172720,L);tc()}ut(c[o>>2]|0,2,m)|0;L=c[p>>2]|0;if((L+ -1|0)>>>0<2){if((L|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[a+48>>3]=ba}Of(m)}}while(0);Of(k);L=c[z>>2]|0;if((L|0)!=7){c[J>>2]=L;c[K+4>>2]=7;Qe(0,172720,K);tc()}do{if((c[(Yu(c[w>>2]|0,168320,k,0)|0)>>2]|0)==6){J=c[l>>2]|0;if((J|0)!=6){c[H>>2]=J;c[I+4>>2]=6;Qe(0,172720,I);tc()}H=c[o>>2]|0;if((c[H+12>>2]|0)!=3){break}ut(H,0,m)|0;H=c[p>>2]|0;if((H+ -1|0)>>>0<2){if((H|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[G>>3]=ba}Of(m);G=c[l>>2]|0;if((G|0)!=6){c[D>>2]=G;c[F+4>>2]=6;Qe(0,172720,F);tc()}ut(c[o>>2]|0,1,m)|0;D=c[p>>2]|0;if((D+ -1|0)>>>0<2){if((D|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[E>>3]=ba}Of(m);D=c[l>>2]|0;if((D|0)!=6){c[C>>2]=D;c[A+4>>2]=6;Qe(0,172720,A);tc()}ut(c[o>>2]|0,2,m)|0;A=c[p>>2]|0;if((A+ -1|0)>>>0<2){if((A|0)==1){ba=+(c[n>>2]|0)}else{ba=+h[n>>3]}h[B>>3]=ba}Of(m)}}while(0);Of(k);z=c[z>>2]|0;if((z|0)!=7){c[x>>2]=z;c[y+4>>2]=7;Qe(0,172720,y);tc()}do{if((c[(Yu(c[w>>2]|0,168496,k,0)|0)>>2]|0)==6){w=c[l>>2]|0;if((w|0)!=6){c[u>>2]=w;c[v+4>>2]=6;Qe(0,172720,v);tc()}if((c[(c[o>>2]|0)+12>>2]|0)!=9){f=P;b=Q;break}u=6;v=0;while(1){if((u|0)!=6){l=87;break}ut(c[o>>2]|0,v,m)|0;u=c[p>>2]|0;if((u+ -1|0)>>>0<2){if((u|0)==1){P=+(c[n>>2]|0)}else{P=+h[n>>3]}h[t+(v<<3)>>3]=P}Of(m);v=v+1|0;if((v|0)>=9){l=95;break}u=c[l>>2]|0}if((l|0)==87){c[d>>2]=u;c[e+4>>2]=6;Qe(0,172720,e);tc()}else if((l|0)==95){f=+h[q>>3];b=+h[r>>3];break}}else{f=P;b=Q}}while(0);Of(k);Of(j);ba=+h[s>>3];h[a+152>>3]=1.0/(ba*3.240449+b*-1.537136+f*-.498531);h[a+160>>3]=1.0/(ba*-.969265+b*1.876011+f*.041556);h[a+168>>3]=1.0/(ba*.055643+b*-.204026+f*1.057229);aa=a;i=g;return aa|0}function My(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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.0,$=0.0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0.0;b=i;k=i;i=i+16|0;j=k;m=i;i=i+8|0;p=m;s=i;i=i+16|0;r=s;u=i;i=i+8|0;t=u;x=i;i=i+16|0;w=x;y=i;i=i+8|0;A=y;B=i;i=i+16|0;C=B;F=i;i=i+8|0;E=F;H=i;i=i+8|0;I=H;L=i;i=i+16|0;K=L;N=i;i=i+8|0;M=N;O=i;i=i+16|0;P=O;R=i;i=i+8|0;Q=R;S=i;i=i+16|0;T=S;W=i;i=i+8|0;V=W;X=i;i=i+8|0;Y=X;ba=i;i=i+16|0;aa=ba;ca=i;i=i+8|0;ea=ca;fa=i;i=i+16|0;ga=fa;ha=i;i=i+8|0;ja=ha;la=i;i=i+16|0;ka=la;oa=i;i=i+8|0;na=oa;n=i;i=i+8|0;J=i;i=i+16|0;d=J;q=i;i=i+16|0;f=q;l=i;i=i+16|0;e=l;c[J>>2]=13;G=d+8|0;c[G>>2]=0;c[G+4>>2]=0;c[q>>2]=13;o=f+8|0;c[o>>2]=0;c[o+4>>2]=0;c[l>>2]=13;g=e+8|0;c[g>>2]=0;c[g+4>>2]=0;ut(a,1,d)|0;if((c[J>>2]|0)!=7){Qe(-1,168648,n);Of(d);pa=0;i=b;return pa|0}a=FW(112)|0;c[a>>2]=168584;da=a+24|0;h[da>>3]=1.0;ia=a+16|0;h[ia>>3]=1.0;ma=a+8|0;h[ma>>3]=1.0;U=a+32|0;v=a+72|0;bX(U|0,0,24)|0;h[v>>3]=-100.0;D=a+56|0;h[D>>3]=-100.0;n=a+80|0;h[n>>3]=100.0;z=a+64|0;h[z>>3]=100.0;do{if((c[(Yu(c[G>>2]|0,168288,f,0)|0)>>2]|0)==6){pa=c[q>>2]|0;if((pa|0)!=6){c[oa>>2]=pa;c[na+4>>2]=6;Qe(0,172720,na);tc()}na=c[o>>2]|0;if((c[na+12>>2]|0)!=3){Z=1.0;_=1.0;$=1.0;break}ut(na,0,e)|0;na=c[l>>2]|0;if((na+ -1|0)>>>0>=2){c[la>>2]=na;c[ka+4>>2]=1;c[ka+8>>2]=2;Qe(0,172792,ka);tc()}if((na|0)==1){$=+(c[g>>2]|0)}else{$=+h[g>>3]}h[ma>>3]=$;Of(e);ka=c[q>>2]|0;if((ka|0)!=6){c[ha>>2]=ka;c[ja+4>>2]=6;Qe(0,172720,ja);tc()}ut(c[o>>2]|0,1,e)|0;ha=c[l>>2]|0;if((ha+ -1|0)>>>0>=2){c[fa>>2]=ha;c[ga+4>>2]=1;c[ga+8>>2]=2;Qe(0,172792,ga);tc()}if((ha|0)==1){_=+(c[g>>2]|0)}else{_=+h[g>>3]}h[ia>>3]=_;Of(e);fa=c[q>>2]|0;if((fa|0)!=6){c[ca>>2]=fa;c[ea+4>>2]=6;Qe(0,172720,ea);tc()}ut(c[o>>2]|0,2,e)|0;ca=c[l>>2]|0;if((ca+ -1|0)>>>0>=2){c[ba>>2]=ca;c[aa+4>>2]=1;c[aa+8>>2]=2;Qe(0,172792,aa);tc()}if((ca|0)==1){Z=+(c[g>>2]|0)}else{Z=+h[g>>3]}h[da>>3]=Z;Of(e)}else{Z=1.0;_=1.0;$=1.0}}while(0);Of(f);aa=c[J>>2]|0;if((aa|0)!=7){c[X>>2]=aa;c[Y+4>>2]=7;Qe(0,172720,Y);tc()}do{if((c[(Yu(c[G>>2]|0,168304,f,0)|0)>>2]|0)==6){X=c[q>>2]|0;if((X|0)!=6){c[W>>2]=X;c[V+4>>2]=6;Qe(0,172720,V);tc()}V=c[o>>2]|0;if((c[V+12>>2]|0)!=3){break}ut(V,0,e)|0;V=c[l>>2]|0;if((V+ -1|0)>>>0>=2){c[S>>2]=V;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}if((V|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[U>>3]=qa;Of(e);S=c[q>>2]|0;if((S|0)!=6){c[R>>2]=S;c[Q+4>>2]=6;Qe(0,172720,Q);tc()}ut(c[o>>2]|0,1,e)|0;Q=c[l>>2]|0;if((Q+ -1|0)>>>0>=2){c[O>>2]=Q;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}if((Q|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[a+40>>3]=qa;Of(e);O=c[q>>2]|0;if((O|0)!=6){c[N>>2]=O;c[M+4>>2]=6;Qe(0,172720,M);tc()}ut(c[o>>2]|0,2,e)|0;M=c[l>>2]|0;if((M+ -1|0)>>>0>=2){c[L>>2]=M;c[K+4>>2]=1;c[K+8>>2]=2;Qe(0,172792,K);tc()}if((M|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[a+48>>3]=qa;Of(e)}}while(0);Of(f);J=c[J>>2]|0;if((J|0)!=7){c[H>>2]=J;c[I+4>>2]=7;Qe(0,172720,I);tc()}do{if((c[(Yu(c[G>>2]|0,168672,f,0)|0)>>2]|0)==6){G=c[q>>2]|0;if((G|0)!=6){c[F>>2]=G;c[E+4>>2]=6;Qe(0,172720,E);tc()}E=c[o>>2]|0;if((c[E+12>>2]|0)!=4){break}ut(E,0,e)|0;E=c[l>>2]|0;if((E+ -1|0)>>>0>=2){c[B>>2]=E;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,172792,C);tc()}if((E|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[D>>3]=qa;Of(e);B=c[q>>2]|0;if((B|0)!=6){c[y>>2]=B;c[A+4>>2]=6;Qe(0,172720,A);tc()}ut(c[o>>2]|0,1,e)|0;y=c[l>>2]|0;if((y+ -1|0)>>>0>=2){c[x>>2]=y;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,172792,w);tc()}if((y|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[z>>3]=qa;Of(e);w=c[q>>2]|0;if((w|0)!=6){c[u>>2]=w;c[t+4>>2]=6;Qe(0,172720,t);tc()}ut(c[o>>2]|0,2,e)|0;t=c[l>>2]|0;if((t+ -1|0)>>>0>=2){c[s>>2]=t;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,172792,r);tc()}if((t|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[v>>3]=qa;Of(e);q=c[q>>2]|0;if((q|0)!=6){c[m>>2]=q;c[p+4>>2]=6;Qe(0,172720,p);tc()}ut(c[o>>2]|0,3,e)|0;l=c[l>>2]|0;if((l+ -1|0)>>>0>=2){c[k>>2]=l;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,172792,j);tc()}if((l|0)==1){qa=+(c[g>>2]|0)}else{qa=+h[g>>3]}h[n>>3]=qa;Of(e)}}while(0);Of(f);Of(d);h[a+88>>3]=1.0/($*3.240449+_*-1.537136+Z*-.498531);h[a+96>>3]=1.0/($*-.969265+_*1.876011+Z*.041556);h[a+104>>3]=1.0/($*.055643+_*-.204026+Z*1.057229);pa=a;i=b;return pa|0}function Ny(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0.0;n=i;s=i;i=i+8|0;r=s;g=i;i=i+8|0;j=g;u=i;i=i+8|0;t=u;B=i;i=i+8|0;E=i;i=i+8|0;D=E;F=i;i=i+8|0;w=F;G=i;i=i+8|0;H=i;i=i+8|0;I=i;i=i+16|0;p=I;q=i;i=i+16|0;f=q;e=i;i=i+16|0;k=e;d=i;i=i+16|0;l=d;c[I>>2]=13;C=p+8|0;c[C>>2]=0;c[C+4>>2]=0;c[q>>2]=13;o=f+8|0;c[o>>2]=0;c[o+4>>2]=0;c[e>>2]=13;m=k+8|0;c[m>>2]=0;c[m+4>>2]=0;vt(a,1,p)|0;if((c[I>>2]|0)==9){y=C;A=c[y>>2]|0;y=c[y+4>>2]|0;z=A&0;x=y|0;A=A|0;y=y&0}else{z=0;x=0;A=0;y=0}Of(p);ut(a,1,p)|0;if((c[I>>2]|0)!=8){Qe(-1,168752,H);Of(p);I=0;i=n;return I|0}C=c[C>>2]|0;C=jd[c[(c[C>>2]|0)+72>>2]&511](C)|0;if((c[(Yu(C,168792,f,0)|0)>>2]|0)!=1){Qe(-1,168800,G);Of(f);Of(p);I=0;i=n;return I|0}G=c[q>>2]|0;if((G|0)!=1){c[F>>2]=G;c[w+4>>2]=1;Qe(0,172720,w);tc()}w=c[o>>2]|0;Of(f);if((w|0)>32){c[E>>2]=w;c[D+4>>2]=32;Qe(-1,168832,D);w=32}if((c[(Yu(C,168888,f,0)|0)>>2]|0)==5){v=13}else{b=Jy(f,b)|0;if((b|0)==0){v=13}}do{if((v|0)==13){if((w|0)==1){b=FW(4)|0;c[b>>2]=168128;break}else if((w|0)==4){b=FW(4)|0;c[b>>2]=168512;break}else if((w|0)==3){b=FW(4)|0;c[b>>2]=168336;break}else{Qe(-1,168904,B);Of(f);Of(p);I=0;i=n;return I|0}}}while(0);Of(f);B=FW(88)|0;c[B>>2]=168688;c[B+4>>2]=w;c[B+8>>2]=b;v=B+80|0;c[v>>2]=A|z;c[v+4>>2]=y|x;x=B+16|0;bXbX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];i=d;return b|0}function cz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function dz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0;e=i;g=+U(+(+(c[b>>2]|0)*152587890625.0e-16),+(+h[a+56>>3]));j=g*+h[a+8>>3];f=g*+h[a+16>>3];g=g*+h[a+24>>3];k=+h[a+64>>3]*(j*3.240449+f*-1.537136+g*-.498531);if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d>>2]=~~(+T(+k)*65536.0);k=(j*-.969265+f*1.876011+g*.041556)*+h[a+72>>3];if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d+4>>2]=~~(+T(+k)*65536.0);f=(j*.055643+f*-.204026+g*1.057229)*+h[a+80>>3];if(f<0.0){k=0.0;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}k=f>1.0?1.0:f;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}function ez(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function fz(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function gz(a){a=a|0;c[a>>2]=168336;i=i;return}function hz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function iz(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168336;i=b;return a|0}function jz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;b=~~(+(c[b>>2]|0)*.3+ +(c[b+4>>2]|0)*.59+ +(c[b+8>>2]|0)*.11+.5);if((b|0)<0){e=0;b=d;c[b>>2]=e;i=a;return}b=(b|0)>65536?65536:b;e=d;c[e>>2]=b;i=a;return}function kz(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0;b=i;if((f|0)>0){g=0}else{i=b;return}do{h=g*3|0;a[e+g|0]=(((d[c+(h+1)|0]|0)*38469|0)+((d[c+h|0]|0)*19595|0)+((d[c+(h+2)|0]|0)*7472|0)|0)>>>16;g=g+1|0;}while((g|0)<(f|0));i=b;return}function lz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;e=c[b>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d>>2]=e;e=c[b+4>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+4>>2]=e;b=c[b+8>>2]|0;if((b|0)<0){b=0;e=d+8|0;c[e>>2]=b;i=a;return}b=(b|0)>65536?65536:b;e=d+8|0;c[e>>2]=b;i=a;return}function mz(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0;a=i;if((f|0)>0){g=0}else{i=a;return}while(1){c[e+(g<<2)>>2]=(d[b+1|0]|0)<<8|(d[b]|0)<<16|(d[b+2|0]|0);g=g+1|0;if((g|0)<(f|0)){b=b+3|0}else{break}}i=a;return}function nz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;a=65536-(c[b>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}e=65536-(c[b+4>>2]|0)|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}b=65536-(c[b+8>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}f=(e|0)<(a|0)?e:a;f=(b|0)<(f|0)?b:f;c[d>>2]=a-f;c[d+4>>2]=e-f;c[d+8>>2]=b-f;c[d+12>>2]=f;i=i;return}function oz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;i=i;return}function pz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function qz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(176)|0;c[b>>2]=168408;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];h[b+64>>3]=+h[a+64>>3];h[b+72>>3]=+h[a+72>>3];$W(b+80|0,a+80|0,72)|0;i=d;return b|0}function rz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function sz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0,l=0.0;e=i;g=+U(+(+(c[b>>2]|0)*152587890625.0e-16),+(+h[a+56>>3]));j=+U(+(+(c[b+4>>2]|0)*152587890625.0e-16),+(+h[a+64>>3]));f=+U(+(+(c[b+8>>2]|0)*152587890625.0e-16),+(+h[a+72>>3]));l=g*+h[a+80>>3]+j*+h[a+104>>3]+f*+h[a+128>>3];k=g*+h[a+88>>3]+j*+h[a+112>>3]+f*+h[a+136>>3];f=g*+h[a+96>>3]+j*+h[a+120>>3]+f*+h[a+144>>3];j=l*3.240449+k*-1.537136+f*-.498531;g=l*-.969265+k*1.876011+f*.041556;f=l*.055643+k*-.204026+f*1.057229;if(j<0.0){j=0.0}else{j=j>1.0?1.0:j}c[d>>2]=~~(+T(+j)*65536.0);if(g<0.0){g=0.0}else{g=g>1.0?1.0:g}c[d+4>>2]=~~(+T(+g)*65536.0);if(f<0.0){l=0.0;l=+T(+l);l=l*65536.0;a=~~l;b=d+8|0;c[b>>2]=a;i=e;return}l=f>1.0?1.0:f;l=+T(+l);l=l*65536.0;a=~~l;b=d+8|0;c[b>>2]=a;i=e;return}function tz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function uz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;i=i;return}function vz(a){a=a|0;c[a>>2]=168512;i=i;return}function wz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function xz(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168512;i=b;return a|0}function yz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;b=~~(+(65536-(c[b+12>>2]|0)|0)- +(c[b>>2]|0)*.3- +(c[b+4>>2]|0)*.59- +(c[b+8>>2]|0)*.11+.5);if((b|0)<0){e=0;b=d;c[b>>2]=e;i=a;return}b=(b|0)>65536?65536:b;e=d;c[e>>2]=b;i=a;return}function zz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0.0,g=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0;a=i;h=+(c[b>>2]|0)*152587890625.0e-16;w=+(c[b+4>>2]|0)*152587890625.0e-16;v=+(c[b+8>>2]|0)*152587890625.0e-16;f=+(c[b+12>>2]|0)*152587890625.0e-16;u=1.0-h;q=1.0-w;g=1.0-v;e=1.0-f;r=u*q;p=r*g;o=p*e;p=f*p;r=v*r;s=r*e;r=f*r;u=u*w;t=u*g;n=t*e;u=u*v;m=u*e;q=h*q;k=q*g;l=k*e;k=f*k;q=v*q;j=q*e;w=h*w;g=w*g;h=g*e;e=w*v*e;b=~~((e*.2118+(h*.1804+(u*f*.1333+(m*.9294+(f*t*.1412+(n*.9255+(r*.1098+(s+(o+p*.1373)))))))))*65536.0);if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d>>2]=b;b=~~((e*.2119+(h*.1922+(f*q*.0745+(j*.651+(k*.0588+(l*.6784+(m*.1098+(r*.102+(s*.949+(o+p*.1216))))))))))*65536.0);if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+4>>2]=b;b=~~((e*.2235+(f*g*.0078+(h*.5725+(j*.3137+(k*.1412+(l*.9373+(m*.1412+(n*.549+(o+p*.1255)))))))))*65536.0);if((b|0)<0){x=0;b=d+8|0;c[b>>2]=x;i=a;return}b=(b|0)>65536?65536:b;x=d+8|0;c[x>>2]=b;i=a;return}function Az(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;e=c[b>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d>>2]=e;e=c[b+4>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+4>>2]=e;e=c[b+8>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+8>>2]=e;b=c[b+12>>2]|0;if((b|0)<0){b=0;e=d+12|0;c[e>>2]=b;i=a;return}b=(b|0)>65536?65536:b;e=d+12|0;c[e>>2]=b;i=a;return}function Bz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=65536;i=i;return}function Cz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Dz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(112)|0;c[b>>2]=168584;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];h[b+64>>3]=+h[a+64>>3];h[b+72>>3]=+h[a+72>>3];h[b+80>>3]=+h[a+80>>3];h[b+88>>3]=+h[a+88>>3];h[b+96>>3]=+h[a+96>>3];h[b+104>>3]=+h[a+104>>3];i=d;return b|0}function Ez(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function Fz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0;e=i;j=(+(c[b>>2]|0)*152587890625.0e-16+16.0)/116.0;f=j+ +(c[b+4>>2]|0)*152587890625.0e-16/500.0;if(f<.20689655172413793){f=(f+-.13793103448275862)*.12841854934601665}else{f=f*f*f}if(j<.20689655172413793){g=(j+-.13793103448275862)*.12841854934601665}else{g=j*j*j}j=j- +(c[b+8>>2]|0)*152587890625.0e-16/200.0;if(j<.20689655172413793){j=(j+-.13793103448275862)*.12841854934601665}else{j=j*j*j}f=f*+h[a+8>>3];g=g*+h[a+16>>3];j=j*+h[a+24>>3];k=+h[a+88>>3]*(f*3.240449+g*-1.537136+j*-.498531);if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d>>2]=~~(+T(+k)*65536.0);k=(f*-.969265+g*1.876011+j*.041556)*+h[a+96>>3];if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d+4>>2]=~~(+T(+k)*65536.0);f=(f*.055643+g*-.204026+j*1.057229)*+h[a+104>>3];if(f<0.0){k=0.0;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}k=f>1.0?1.0:f;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}function Gz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function Hz(a,b){a=a|0;b=b|0;var d=0,e=0.0;d=i;c[b>>2]=0;e=+h[a+56>>3];do{if(e>0.0){c[b+4>>2]=~~(e*65536.0)}else{e=+h[a+64>>3];if(e<0.0){c[b+4>>2]=~~(e*65536.0);break}else{c[b+4>>2]=0;break}}}while(0);e=+h[a+72>>3];if(e>0.0){c[b+8>>2]=~~(e*65536.0);i=d;return}e=+h[a+80>>3];if(e<0.0){c[b+8>>2]=~~(e*65536.0);i=d;return}else{c[b+8>>2]=0;i=d;return}}function Iz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;h[b>>3]=0.0;h[c>>3]=100.0;d=a+56|0;h[b+8>>3]=+h[d>>3];h[c+8>>3]=+h[a+64>>3]- +h[d>>3];d=a+72|0;h[b+16>>3]=+h[d>>3];h[c+16>>3]=+h[a+80>>3]- +h[d>>3];i=i;return}function Jz(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=168688;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Kz(a){a=a|0;var b=0;b=i;c[a>>2]=168688;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Lz(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;b=FW(88)|0;f=c[a+4>>2]|0;g=c[a+8>>2]|0;g=jd[c[(c[g>>2]|0)+8>>2]&511](g)|0;c[b>>2]=168688;c[b+4>>2]=f;c[b+8>>2]=g;g=a+80|0;f=c[g+4>>2]|0;e=b+80|0;c[e>>2]=c[g>>2];c[e+4>>2]=f;e=b+16|0;bXbX(q|0,0,16)|0;h[G>>3]=1.0;E=S+16|0;h[E>>3]=1.0;a:do{if((c[(Yu(D,170112,x,0)|0)>>2]|0)==6){Z=c[k>>2]|0;if((Z|0)!=6){c[W>>2]=Z;c[X+4>>2]=6;Qe(0,172720,X);tc()}if((c[(c[e>>2]|0)+12>>2]|0)!=4){C=28;break}X=6;W=0;while(1){if((X|0)!=6){C=18;break}if(((c[(ut(c[e>>2]|0,W,f)|0)>>2]|0)+ -1|0)>>>0<2){X=c[s>>2]|0;if((X+ -1|0)>>>0>=2){C=21;break}if((X|0)==1){$=+(c[w>>2]|0)}else{$=+h[w>>3]}h[S+(W<<3)>>3]=$}Of(f);W=W+1|0;if((W|0)>=4){break a}X=c[k>>2]|0}if((C|0)==18){c[V>>2]=X;c[U+4>>2]=6;Qe(0,172720,U);tc()}else if((C|0)==21){c[R>>2]=X;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}}else{C=28}}while(0);if((C|0)==28){Qe(-1,170120,Y)}Of(x);do{if(((c[(Yu(D,170160,x,0)|0)>>2]|0)+ -1|0)>>>0<2){C=c[k>>2]|0;if((C+ -1|0)>>>0>=2){c[P>>2]=C;c[O+4>>2]=1;c[O+8>>2]=2;Qe(0,172792,O);tc()}if((C|0)==1){$=+(c[e>>2]|0);break}else{$=+h[e>>3];break}}else{Qe(-1,170168,Q);$=1.0}}while(0);Of(x);do{if(((c[(Yu(D,170208,x,0)|0)>>2]|0)+ -1|0)>>>0<2){C=c[k>>2]|0;if((C+ -1|0)>>>0>=2){c[M>>2]=C;c[L+4>>2]=1;c[L+8>>2]=2;Qe(0,172792,L);tc()}if((C|0)==1){ba=+(c[e>>2]|0);break}else{ba=+h[e>>3];break}}else{Qe(-1,170216,N);ba=1.0}}while(0);Of(x);if((c[(Yu(D,170256,d,0)|0)>>2]|0)!=7){Of(d);c[H>>2]=0;c[I>>2]=0;c[J>>2]=5;Qe(-1,170272,K)}h[l>>3]=1.0;L=m+8|0;K=m+16|0;J=m+24|0;bX(L|0,0,16)|0;h[J>>3]=1.0;I=m+32|0;H=m+40|0;bX(I|0,0,16)|0;do{if((c[(Yu(D,168496,x,0)|0)>>2]|0)==6){C=c[k>>2]|0;if((C|0)!=6){c[B>>2]=C;c[A+4>>2]=6;Qe(0,172720,A);tc()}if((c[(c[e>>2]|0)+12>>2]|0)!=6){p=0.0;b=1.0;r=0.0;t=0.0;u=1.0;break}B=6;A=0;while(1){if((B|0)!=6){C=51;break}if(((c[(ut(c[e>>2]|0,A,f)|0)>>2]|0)+ -1|0)>>>0<2){B=c[s>>2]|0;if((B+ -1|0)>>>0>=2){C=54;break}if((B|0)==1){ca=+(c[w>>2]|0)}else{ca=+h[w>>3]}h[m+(A<<3)>>3]=ca}Of(f);A=A+1|0;if((A|0)>=6){C=61;break}B=c[k>>2]|0}if((C|0)==51){c[z>>2]=B;c[g+4>>2]=6;Qe(0,172720,g);tc()}else if((C|0)==54){c[n>>2]=B;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,172792,y);tc()}else if((C|0)==61){p=+h[I>>3];b=+h[J>>3];r=+h[K>>3];t=+h[L>>3];u=+h[l>>3];break}}else{p=0.0;b=1.0;r=0.0;t=0.0;u=1.0}}while(0);Of(x);aa=FW(144)|0;c[aa+4>>2]=1;c[aa>>2]=170320;Z=aa+64|0;c[Z>>2]=13;c[aa+72>>2]=0;c[aa+76>>2]=0;_=aa+128|0;c[_>>2]=13;c[aa+136>>2]=0;c[aa+140>>2]=0;c[aa+8>>2]=o;c[aa+12>>2]=v;h[aa+16>>3]=+h[q>>3];h[aa+24>>3]=+h[F>>3];h[aa+32>>3]=+h[E>>3];h[aa+40>>3]=+h[G>>3];h[aa+48>>3]=$;h[aa+56>>3]=ba;Mf(d,Z)|0;h[aa+80>>3]=u;h[aa+88>>3]=t;h[aa+96>>3]=r;h[aa+104>>3]=b;h[aa+112>>3]=p;h[aa+120>>3]=+h[H>>3];Mf(a,_)|0;Of(d);i=j;return aa|0}function xA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0,g=0,j=0,k=0,l=0,m=0.0,n=0.0,o=0,p=0.0,q=0.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.0;o=i;k=i;i=i+16|0;l=k;g=i;i=i+8|0;j=g;D=i;i=i+8|0;C=D;r=i;i=i+48|0;w=r;x=i;i=i+16|0;f=x;u=i;i=i+16|0;s=u;c[x>>2]=13;t=f+8|0;c[t>>2]=0;c[t+4>>2]=0;c[u>>2]=13;v=s+8|0;c[v>>2]=0;c[v+4>>2]=0;if((c[a>>2]|0)!=7){E=0;i=o;return E|0}E=c[a+8>>2]|0;Yu(E,170336,f,0)|0;z=BA(f,b)|0;Of(f);if((z|0)==0){E=0;i=o;return E|0}h[r>>3]=1.0;a=w+8|0;y=w+16|0;A=w+24|0;bX(a|0,0,16)|0;h[A>>3]=1.0;B=w+32|0;b=w+40|0;bXbX(z+(d*144|0)|0,0,(L-d|0)*144|0)|0}h[z+(d*144|0)>>3]=r+s*+(M>>>0);h[z+(d*144|0)+8>>3]=t+u*+(N>>>0);if(C){M=0;do{c[z+(d*144|0)+16+(M<<2)>>2]=~~((+h[m+(M<<3)>>3]+ +h[l+(M<<3)>>3]*+((c[k+(M<<2)>>2]|0)>>>0))*65536.0);M=M+1|0;}while((M|0)<(w|0))}M=d+1|0;c[G>>2]=0;c[B>>2]=0;if(q){break}else{d=M}}if(I>>>0<2){d=M;I=I+1|0;continue}else{N=(I|0)==2;if((K|0)==0&(N^1)){d=M;I=1;K=0;continue}else{break}}}if((E|0)==(J|0)){na=(E|0)==0?16:E<<1;J=na;H=Ce(H,na*3|0,4)|0}do{if(N){c[H+(E*12|0)>>2]=d+ -2;c[H+(E*12|0)+4>>2]=d+ -1;c[H+(E*12|0)+8>>2]=d;I=3}else{N=E+ -1|0;if((K|0)==1){c[H+(E*12|0)>>2]=c[H+(N*12|0)+4>>2];c[H+(E*12|0)+4>>2]=c[H+(N*12|0)+8>>2];c[H+(E*12|0)+8>>2]=d;break}else{c[H+(E*12|0)>>2]=c[H+(N*12|0)>>2];c[H+(E*12|0)+4>>2]=c[H+(N*12|0)+8>>2];c[H+(E*12|0)+8>>2]=d;break}}}while(0);E=E+1|0;d=M}if((x|0)==94){c[B>>2]=0;x=145}else if((x|0)==105){c[B>>2]=0;x=145}else if((x|0)==117){c[B>>2]=0;x=145}else if((x|0)==144){c[B>>2]=0;if((A|0)!=0){x=145}}if((x|0)==145){na=c[A>>2]|0;fd[c[(c[na>>2]|0)+16>>2]&511](na);HW(A)}do{if((a|0)==5){l=((d|0)/(j|0)|0)+ -1|0;k=j+ -1|0;E=da(l<<1,k)|0;H=ye(E*3|0,4)|0;if((l|0)<=0){break}n=(k|0)>0;m=(j<<1)+ -2|0;w=0;o=0;do{if(n){p=da(w,j)|0;w=w+1|0;v=da(w,j)|0;x=0;q=o;while(1){ia=x+p|0;c[H+(q*12|0)>>2]=ia;ia=ia+1|0;c[H+(q*12|0)+4>>2]=ia;ja=x+v|0;c[H+(q*12|0)+8>>2]=ja;na=q+1|0;c[H+(na*12|0)>>2]=ia;c[H+(na*12|0)+4>>2]=ja;c[H+(na*12|0)+8>>2]=ja+1;x=x+1|0;if((x|0)<(k|0)){q=q+2|0}else{break}}o=m+o|0}else{w=w+1|0}}while((w|0)<(l|0))}}while(0);j=FW(328)|0;c[j+4>>2]=a;c[j+8>>2]=0;c[j>>2]=171032;c[j+180>>2]=z;c[j+184>>2]=d;c[j+188>>2]=H;c[j+192>>2]=E;a=j+324|0;c[a>>2]=y;if((y|0)>0){k=0;do{c[j+196+(k<<2)>>2]=c[g+(k<<2)>>2];k=k+1|0;}while((k|0)<(c[a>>2]|0))}if(MA(j,b,e)|0){na=j;i=f;return na|0}if((j|0)==0){na=0;i=f;return na|0}fd[c[(c[j>>2]|0)+4>>2]&511](j);na=0;i=f;return na|0}}}while(0);Qe(-1,171376,H)}else{Qe(-1,171072,ja)}}while(0);Of(z);na=0;i=f;return na|0}function LA(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0.0,v=0.0,w=0.0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,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,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.0,ya=0.0,za=0.0,Aa=0.0,Ba=0.0,Ca=0.0,Da=0.0,Ea=0.0,Fa=0.0,Ga=0.0,Ha=0.0,Ia=0.0,Ja=0.0;f=i;C=i;i=i+8|0;D=C;H=i;i=i+8|0;I=i;i=i+8|0;O=i;i=i+16|0;L=O;M=i;i=i+8|0;N=M;K=i;i=i+16|0;P=K;z=i;i=i+8|0;G=z;x=i;i=i+16|0;y=x;Q=i;i=i+8|0;R=Q;S=i;i=i+16|0;T=S;U=i;i=i+8|0;V=U;X=i;i=i+16|0;W=X;Z=i;i=i+8|0;Y=Z;$=i;i=i+16|0;_=$;aa=i;i=i+8|0;ba=aa;da=i;i=i+8|0;ca=i;i=i+8|0;s=ca;fa=i;i=i+8|0;ea=i;i=i+8|0;r=ea;ha=i;i=i+8|0;ga=i;i=i+8|0;q=ga;J=i;i=i+128|0;g=J;m=i;i=i+256|0;j=i;i=i+256|0;p=i;i=i+128|0;o=p;l=i;i=i+128|0;n=l;k=i;i=i+1024|0;F=i;i=i+16|0;A=F;wa=i;i=i+16|0;B=wa;c[F>>2]=13;E=A+8|0;c[E>>2]=0;c[E+4>>2]=0;c[wa>>2]=13;wa=B+8|0;c[wa>>2]=0;c[wa+4>>2]=0;do{if((c[(Yu(b,171048,A,0)|0)>>2]|0)==1){ha=c[F>>2]|0;if((ha|0)!=1){c[ga>>2]=ha;c[q+4>>2]=1;Qe(0,172720,q);tc()}q=c[E>>2]|0;Of(A);if((c[(Yu(b,171136,A,0)|0)>>2]|0)!=1){Qe(-1,171160,fa);break}fa=c[F>>2]|0;if((fa|0)!=1){c[ea>>2]=fa;c[r+4>>2]=1;Qe(0,172720,r);tc()}r=c[E>>2]|0;Of(A);if((c[(Yu(b,171224,A,0)|0)>>2]|0)!=1){Qe(-1,171240,da);break}da=c[F>>2]|0;if((da|0)!=1){c[ca>>2]=da;c[s+4>>2]=1;Qe(0,172720,s);tc()}s=c[E>>2]|0;Of(A);do{if((c[(Yu(b,171368,A,0)|0)>>2]|0)==6){ca=c[F>>2]|0;if((ca|0)!=6){c[aa>>2]=ca;c[ba+4>>2]=6;Qe(0,172720,ba);tc()}aa=c[E>>2]|0;if((c[aa+12>>2]|0)<=5){break}ba=ut(aa,0,B)|0;aa=c[ba>>2]|0;if((aa+ -1|0)>>>0>=2){c[$>>2]=aa;c[_+4>>2]=1;c[_+8>>2]=2;Qe(0,172792,_);tc()}_=ba+8|0;if((aa|0)==1){t=+(c[_>>2]|0)}else{t=+h[_>>3]}Of(B);_=c[F>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}Z=ut(c[E>>2]|0,1,B)|0;Y=c[Z>>2]|0;if((Y+ -1|0)>>>0>=2){c[X>>2]=Y;c[W+4>>2]=1;c[W+8>>2]=2;Qe(0,172792,W);tc()}W=Z+8|0;if((Y|0)==1){u=+(c[W>>2]|0)}else{u=+h[W>>3]}Of(B);w=+lW(1.0,q)+-1.0;u=(u-t)/w;W=c[F>>2]|0;if((W|0)!=6){c[U>>2]=W;c[V+4>>2]=6;Qe(0,172720,V);tc()}V=ut(c[E>>2]|0,2,B)|0;U=c[V>>2]|0;if((U+ -1|0)>>>0>=2){c[S>>2]=U;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}S=V+8|0;if((U|0)==1){v=+(c[S>>2]|0)}else{v=+h[S>>3]}Of(B);S=c[F>>2]|0;if((S|0)!=6){c[Q>>2]=S;c[R+4>>2]=6;Qe(0,172720,R);tc()}R=ut(c[E>>2]|0,3,B)|0;Q=c[R>>2]|0;if((Q+ -1|0)>>>0>=2){c[x>>2]=Q;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,172792,y);tc()}x=R+8|0;if((Q|0)==1){xa=+(c[x>>2]|0)}else{xa=+h[x>>3]}Of(B);w=(xa-v)/w;x=c[F>>2]|0;if((x|0)!=6){va=x;wa=z;c[wa>>2]=va;wa=G+4|0;c[wa>>2]=6;wa=172720;Qe(0,wa,G);tc()}x=(1<<r)+ -1|0;xa=+(x|0);Q=5;R=0;y=0;while(1){S=c[E>>2]|0;if(!((Q|0)<(c[S+12>>2]|0)&(y|0)<32)){pa=60;break}S=ut(S,R+4|0,B)|0;R=c[S>>2]|0;if((R+ -1|0)>>>0>=2){pa=48;break}S=S+8|0;if((R|0)==1){ya=+(c[S>>2]|0)}else{ya=+h[S>>3]}h[m+(y<<3)>>3]=ya;Of(B);R=c[F>>2]|0;if((R|0)!=6){pa=53;break}R=ut(c[E>>2]|0,Q,B)|0;Q=c[R>>2]|0;if((Q+ -1|0)>>>0>=2){pa=55;break}R=R+8|0;if((Q|0)==1){za=+(c[R>>2]|0)}else{za=+h[R>>3]}Of(B);h[j+(y<<3)>>3]=(za-ya)/xa;y=y+1|0;R=y<<1;Q=c[F>>2]|0;if((Q|0)==6){Q=R+5|0}else{pa=45;break}}if((pa|0)==45){wa=z;c[wa>>2]=Q;wa=G+4|0;c[wa>>2]=6;wa=172720;Qe(0,wa,G);tc()}else if((pa|0)==48){c[K>>2]=R;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}else if((pa|0)==53){c[M>>2]=R;c[N+4>>2]=6;Qe(0,172720,N);tc()}else if((pa|0)==55){c[O>>2]=Q;c[L+4>>2]=1;c[L+8>>2]=2;Qe(0,172792,L);tc()}else if((pa|0)==60){Of(A);a:do{if((c[(Yu(b,170848,A,0)|0)>>2]|0)==5){z=0}else{if((c[F>>2]|0)!=6){wa=EH(A)|0;c[J>>2]=wa;if((wa|0)!=0){z=1;break}Of(A);wa=0;i=f;return wa|0}z=c[(c[E>>2]|0)+12>>2]|0;if((z|0)>32){Qe(-1,170864,H);wa=0;i=f;return wa|0}if((z|0)>0){G=6;H=0}else{break}while(1){if((G|0)!=6){pa=67;break}ut(c[E>>2]|0,H,B)|0;wa=EH(B)|0;c[g+(H<<2)>>2]=wa;if((wa|0)==0){break}Of(B);H=H+1|0;if((H|0)>=(z|0)){break a}G=c[F>>2]|0}if((pa|0)==67){c[C>>2]=G;c[D+4>>2]=6;Qe(0,172720,D);tc()}Of(A);Of(B);wa=0;i=f;return wa|0}}while(0);Of(A);A=FW(12)|0;c[A>>2]=d;fd[c[(c[d>>2]|0)+12>>2]&511](d);Z=A+4|0;c[Z>>2]=0;$=A+8|0;ha=(s|0)>0;_=(a|0)==6;Y=(1<<q)+ -1|0;X=(y|0)>0;W=(z|0)==0;U=o+8|0;T=n+8|0;S=o+16|0;R=n+16|0;Q=o+24|0;P=n+24|0;O=o+32|0;N=n+32|0;M=o+40|0;L=n+40|0;K=o+48|0;J=n+48|0;I=o+56|0;H=n+56|0;G=o+64|0;F=n+64|0;E=o+72|0;D=n+72|0;C=o+80|0;B=n+80|0;ka=o+88|0;ja=n+88|0;ga=o+96|0;fa=n+96|0;ea=o+104|0;da=n+104|0;ca=o+112|0;ba=n+112|0;V=o+120|0;aa=n+120|0;ia=0-s|0;d=0;la=0;ma=0;b:while(1){c[$>>2]=0;c:do{if(ha){qa=s;na=0;while(1){oa=c[A>>2]|0;oa=jd[c[(c[oa>>2]|0)+20>>2]&511](oa)|0;c[Z>>2]=oa;if((oa|0)==-1){pa=81;break b}if((qa|0)<=7){break}na=oa|na<<8;qa=qa+ -8|0;if((qa|0)<=0){pa=oa;break c}}wa=8-qa|0;c[$>>2]=wa;pa=oa;na=oa>>wa|na<<qa}else{c[$>>2]=ia;pa=0;na=0}}while(0);oa=(na|0)==0;if(_){qa=oa?12:8}else{qa=oa?16:12}oa=oa?4:2;ra=0;while(1){sa=c[$>>2]|0;do{if((sa|0)<(q|0)){if((sa|0)>0){c[$>>2]=0;wa=q-sa|0;ua=0;ta=pa&(1<<sa)+ -1}else{wa=q;ua=sa;ta=0}if((wa|0)<=0){sa=pa;break}while(1){va=c[A>>2]|0;va=jd[c[(c[va>>2]|0)+20>>2]&511](va)|0;c[Z>>2]=va;if((va|0)==-1){pa=144;break b}if((wa|0)<=7){pa=93;break}ta=va|ta<<8;wa=wa+ -8|0;if((wa|0)<=0){pa=95;break}}if((pa|0)==93){pa=8-wa|0;c[$>>2]=pa;sa=va;ua=pa;ta=va>>pa|ta<<wa;break}else if((pa|0)==95){sa=va;ua=c[$>>2]|0;break}}else{ta=sa-q|0;c[$>>2]=ta;sa=pa;ua=ta;ta=pa>>ta&Y}}while(0);d:do{if((ua|0)<(q|0)){if((ua|0)>0){c[$>>2]=0;pa=q-ua|0;ua=sa&(1<<ua)+ -1}else{pa=q;ua=0}if((pa|0)>0){sa=pa;va=ua}else{pa=sa;break}while(1){ua=c[A>>2]|0;ua=jd[c[(c[ua>>2]|0)+20>>2]&511](ua)|0;c[Z>>2]=ua;if((ua|0)==-1){pa=102;break b}if((sa|0)<=7){break}va=ua|va<<8;sa=sa+ -8|0;if((sa|0)<=0){pa=ua;ua=va;break d}}wa=8-sa|0;c[$>>2]=wa;pa=ua;ua=ua>>wa|va<<sa}else{ua=ua-q|0;c[$>>2]=ua;pa=sa;ua=sa>>ua&Y}}while(0);h[o+(ra<<3)>>3]=t+u*+(ta>>>0);h[n+(ra<<3)>>3]=v+w*+(ua>>>0);ra=ra+1|0;if((ra|0)>=(qa|0)){ra=pa;sa=pa;pa=0;break}}do{if(X){ta=ra;qa=0;while(1){ua=c[$>>2]|0;e:do{if((ua|0)<(r|0)){if((ua|0)>0){c[$>>2]=0;ra=r-ua|0;ua=sa&(1<<ua)+ -1}else{ra=r;ua=0}if((ra|0)>0){ta=ra}else{ra=ta;break}while(1){va=c[A>>2]|0;va=jd[c[(c[va>>2]|0)+20>>2]&511](va)|0;c[Z>>2]=va;if((va|0)==-1){pa=121;break b}if((ta|0)<=7){break}ua=va|ua<<8;ta=ta+ -8|0;if((ta|0)<=0){ra=va;sa=va;break e}}wa=8-ta|0;c[$>>2]=wa;ra=va;sa=va;ua=va>>wa|ua<<ta}else{ua=ua-r|0;c[$>>2]=ua;ra=ta;sa=ta;ua=ta>>ua&x}}while(0);xa=+h[m+(qa<<3)>>3]+ +(ua>>>0)*+h[j+(qa<<3)>>3];if(W){xa=+(~~(xa*65536.0)|0)}h[k+(pa<<8)+(qa<<3)>>3]=xa;qa=qa+1|0;if((qa|0)<(y|0)){ta=ra}else{break}}}pa=pa+1|0;}while((pa|0)<(oa|0));if((d|0)==(ma|0)){ma=(d|0)==0?16:d<<1;la=Ce(la,ma,1280)|0;bXbX(b+12|0,0,129)|0;a:do{if((c[(Yu(d,170672,g,0)|0)>>2]|0)==6){N=c[z>>2]|0;if((N|0)!=6){c[L>>2]=N;c[K+4>>2]=6;Qe(0,172720,K);tc()}L=c[(c[u>>2]|0)+12>>2]|0;N=c[e>>2]|0;if((L|0)!=(jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)){Qe(-1,170688,J);break}a[M]=1;N=c[e>>2]|0;if((jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)>0){J=0}else{break}while(1){K=c[z>>2]|0;if((K|0)!=6){f=9;break}L=ut(c[u>>2]|0,J,k)|0;K=c[L>>2]|0;if((K+ -1|0)>>>0>=2){f=11;break}L=L+8|0;if((K|0)==1){O=+(c[L>>2]|0)}else{O=+h[L>>3]}c[b+12+(J<<2)>>2]=~~(O*65536.0);Of(k);J=J+1|0;N=c[e>>2]|0;if((J|0)>=(jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)){break a}}if((f|0)==9){c[I>>2]=K;c[H+4>>2]=6;Qe(0,172720,H);tc()}else if((f|0)==11){c[G>>2]=K;c[F+4>>2]=1;c[F+8>>2]=2;Qe(0,172792,F);tc()}}}while(0);Of(g);F=b+168|0;G=b+160|0;H=b+152|0;I=b+144|0;b=b+176|0;bX(I|0,0,33)|0;do{if((c[(Yu(d,170112,g,0)|0)>>2]|0)==6){d=c[z>>2]|0;if((d|0)!=6){c[D>>2]=d;c[E+4>>2]=6;Qe(0,172720,E);tc()}d=c[u>>2]|0;if((c[d+12>>2]|0)!=4){Qe(-1,170784,C);break}c[s>>2]=13;E=l+8|0;c[E>>2]=0;c[E+4>>2]=0;c[r>>2]=13;D=m+8|0;c[D>>2]=0;c[D+4>>2]=0;c[q>>2]=13;C=n+8|0;c[C>>2]=0;c[C+4>>2]=0;ut(d,0,k)|0;d=c[z>>2]|0;if((d|0)!=6){c[A>>2]=d;c[B+4>>2]=6;Qe(0,172720,B);tc()}ut(c[u>>2]|0,1,l)|0;A=c[z>>2]|0;if((A|0)!=6){c[y>>2]=A;c[x+4>>2]=6;Qe(0,172720,x);tc()}ut(c[u>>2]|0,2,m)|0;x=c[z>>2]|0;if((x|0)!=6){c[v>>2]=x;c[t+4>>2]=6;Qe(0,172720,t);tc()}ut(c[u>>2]|0,3,n)|0;t=c[w>>2]|0;do{if((t+ -1|0)>>>0<2){s=c[s>>2]|0;if((s+ -1|0)>>>0>=2){f=44;break}r=c[r>>2]|0;if((r+ -1|0)>>>0>=2){f=44;break}q=c[q>>2]|0;if((q+ -1|0)>>>0>=2){f=44;break}a[b]=1;if((t|0)==1){O=+(c[o>>2]|0)}else{O=+h[o>>3]}h[I>>3]=O;if((s|0)==1){O=+(c[E>>2]|0)}else{O=+h[E>>3]}h[H>>3]=O;if((r|0)==1){O=+(c[D>>2]|0)}else{O=+h[D>>3]}h[G>>3]=O;if((q|0)==1){O=+(c[C>>2]|0)}else{O=+h[C>>3]}h[F>>3]=O}else{f=44}}while(0);if((f|0)==44){Qe(-1,170728,p)}Of(k);Of(l);Of(m);Of(n)}}while(0);Of(g);N=1;i=j;return N|0}function NA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=170824;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];h[b+232>>3]=+h[d+232>>3];h[b+240>>3]=+h[d+240>>3];h[b+248>>3]=+h[d+248>>3];h[b+256>>3]=+h[d+256>>3];g=c[d+392>>2]|0;f=b+392|0;c[f>>2]=g;if((g|0)>0){g=0}else{i=e;return}do{j=c[d+264+(g<<2)>>2]|0;c[b+264+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function OA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170824;d=a+392|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+264+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function PA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170824;d=a+392|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+264+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function QA(a){a=a|0;var b=0,c=0;c=i;b=FW(400)|0;NA(b,a);i=c;return b|0}function RA(a,b,d,e){a=a|0;b=+b;d=+d;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0;g=i;k=i;i=i+16|0;j=k;l=i;i=i+256|0;f=l;bX(l|0,0,256)|0;h[k>>3]=b;h[j+8>>3]=d;k=a+392|0;if((c[k>>2]|0)>0){l=0;while(1){m=c[a+264+(l<<2)>>2]|0;Gd[c[(c[m>>2]|0)+16>>2]&255](m,j,f+(l<<3)|0);l=l+1|0;if((l|0)<(c[k>>2]|0)){}else{j=0;break}}}else{j=0}do{c[e+(j<<2)>>2]=~~(+h[f+(j<<3)>>3]*65536.0);j=j+1|0;}while((j|0)<32);i=g;return}function SA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=170920;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];g=c[d+360>>2]|0;f=b+360|0;c[f>>2]=g;if((g|0)>0){g=0}else{g=d+364|0;g=a[g]|0;g=g&1;f=b+364|0;a[f]=g;f=d+365|0;f=a[f]|0;f=f&1;g=b+365|0;a[g]=f;i=e;return}do{j=c[d+232+(g<<2)>>2]|0;c[b+232+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));j=d+364|0;j=a[j]|0;j=j&1;g=b+364|0;a[g]=j;g=d+365|0;g=a[g]|0;g=g&1;j=b+365|0;a[j]=g;i=e;return}function TA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170920;d=a+360|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+232+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function UA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170920;d=a+360|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+232+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function VA(a){a=a|0;var b=0,c=0;c=i;b=FW(368)|0;SA(b,a);i=c;return b|0}function WA(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=k;j=i;i=i+256|0;e=j;h[k>>3]=b;bX(j|0,0,256)|0;j=a+360|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+232+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function XA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=171008;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];h[b+232>>3]=+h[d+232>>3];h[b+240>>3]=+h[d+240>>3];g=c[d+376>>2]|0;f=b+376|0;c[f>>2]=g;if((g|0)>0){g=0}else{g=d+380|0;g=a[g]|0;g=g&1;f=b+380|0;a[f]=g;f=d+381|0;f=a[f]|0;f=f&1;g=b+381|0;a[g]=f;i=e;return}do{j=c[d+248+(g<<2)>>2]|0;c[b+248+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));j=d+380|0;j=a[j]|0;j=j&1;g=b+380|0;a[g]=j;g=d+381|0;g=a[g]|0;g=g&1;j=b+381|0;a[j]=g;i=e;return}function YA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171008;d=a+376|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+248+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function ZA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171008;d=a+376|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+248+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function _A(a){a=a|0;var b=0,c=0;c=i;b=FW(384)|0;XA(b,a);i=c;return b|0}function $A(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=k;j=i;i=i+256|0;e=j;h[k>>3]=b;bXbX(b+20|0,0,132)|0;x=c[f>>2]|0;a:do{if((x|0)==5){c[b+8>>2]=jd[c[(c[g>>2]|0)+44>>2]&511](g)|0;C=c[b>>2]|0;Jd[c[(c[C>>2]|0)+52>>2]&63](C,b+152|0,b+408|0,k)}else if((x|0)==6){x=f+8|0;C=(c[(c[x>>2]|0)+12>>2]|0)/2|0;y=b+8|0;c[y>>2]=C;if((C|0)!=(jd[c[(c[g>>2]|0)+44>>2]&511](g)|0)){o=60;break}if((c[y>>2]|0)<=0){break}g=0;while(1){z=g<<1;A=c[f>>2]|0;if((A|0)!=6){o=7;break}ut(c[x>>2]|0,z,t)|0;A=c[q>>2]|0;if((A+ -1|0)>>>0>=2){o=59;break}if((A|0)==1){B=+(c[w>>2]|0)}else{B=+h[w>>3]}A=b+152+(g<<3)|0;h[A>>3]=B;Of(t);C=c[f>>2]|0;if((C|0)!=6){o=13;break}ut(c[x>>2]|0,z|1,t)|0;z=c[q>>2]|0;if((z+ -1|0)>>>0>=2){o=59;break}if((z|0)==1){B=+(c[w>>2]|0)}else{B=+h[w>>3]}h[b+408+(g<<3)>>3]=B- +h[A>>3];Of(t);g=g+1|0;if((g|0)>=(c[y>>2]|0)){break a}}if((o|0)==7){c[u>>2]=A;c[s+4>>2]=6;Qe(0,172720,s);tc()}else if((o|0)==13){c[p>>2]=C;c[v+4>>2]=6;Qe(0,172720,v);tc()}else if((o|0)==59){Of(t);o=60;break}}else{o=60}}while(0);if((o|0)==60){a[r]=0;i=j;return}r=b+12|0;c[r>>2]=0;p=b+16|0;c[p>>2]=0;q=c[b>>2]|0;q=jd[c[(c[q>>2]|0)+12>>2]&511](q)|0;if((q|0)==7){n=c[b>>2]|0;C=c[n+4>>2]|0;c[r>>2]=C;q=c[n+8>>2]|0;c[p>>2]=jd[c[(c[C>>2]|0)+44>>2]&511](C)|0;n=c[n+12>>2]|0;C=c[r>>2]|0;Jd[c[(c[C>>2]|0)+52>>2]&63](C,m,l,q);C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=22}else{C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=22}else{r=0}}if((o|0)==22){c[e>>2]=ye(k+1|0,c[p>>2]|0)|0;r=1}if((c[p>>2]|0)<=0){i=j;return}s=k+1|0;o=(k|0)<0;v=b+152|0;u=b+408|0;B=+(k|0);x=0;do{y=b+20+(x<<2)|0;c[y>>2]=ye(s,4)|0;if(!o){f=m+(x<<3)|0;w=l+(x<<3)|0;t=0;while(1){g=~~(+h[v>>3]+ +(t|0)*+h[u>>3]/B+.5);if((g|0)<0){g=0}else{g=(g|0)>(q|0)?q:g}D=+(d[n+((da(c[p>>2]|0,g)|0)+x)|0]|0|0)/255.0;D=+h[f>>3]+D*+h[w>>3];c[(c[y>>2]|0)+(t<<2)>>2]=~~(D*65536.0);if(r){C=(da(c[p>>2]|0,t)|0)+x|0;a[(c[e>>2]|0)+C|0]=~~(D*255.0)}if((t|0)<(k|0)){t=t+1|0}else{break}}}x=x+1|0;}while((x|0)<(c[p>>2]|0));i=j;return}else if((q|0)==8){q=c[b>>2]|0;C=c[q+8>>2]|0;c[r>>2]=C;c[p>>2]=jd[c[(c[C>>2]|0)+44>>2]&511](C)|0;q=c[q+12>>2]|0;C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=35}else{C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=35}else{r=0}}if((o|0)==35){c[e>>2]=ye(k+1|0,c[p>>2]|0)|0;r=1}if((c[p>>2]|0)<=0){i=j;return}u=k+1|0;o=(k|0)<0;s=b+152|0;t=b+408|0;B=+(k|0);f=0;do{v=b+20+(f<<2)|0;c[v>>2]=ye(u,4)|0;if(!o){w=l+(f<<3)|0;x=0;while(1){h[n>>3]=+h[s>>3]+ +(x|0)*+h[t>>3]/B;Gd[c[(c[q>>2]|0)+16>>2]&255](q,m,l);c[(c[v>>2]|0)+(x<<2)>>2]=~~(+h[w>>3]*65536.0);if(r){C=(da(c[p>>2]|0,x)|0)+f|0;a[(c[e>>2]|0)+C|0]=~~(+h[w>>3]*255.0)}if((x|0)<(k|0)){x=x+1|0}else{break}}}f=f+1|0;}while((f|0)<(c[p>>2]|0));i=j;return}else{C=c[b>>2]|0;do{if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=47}else{C=c[b>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=47;break}m=b+8|0;l=0}}while(0);if((o|0)==47){m=b+8|0;c[e>>2]=ye(k+1|0,c[m>>2]|0)|0;l=1}if((c[m>>2]|0)<=0){i=j;return}q=k+1|0;r=(k|0)<0;B=+(k|0);p=0;do{t=ye(q,4)|0;f=b+20+(p<<2)|0;c[f>>2]=t;b:do{if(!r){o=b+152+(p<<3)|0;n=b+408+(p<<3)|0;s=0;while(1){D=+h[o>>3]+ +(s|0)*+h[n>>3]/B;c[t+(s<<2)>>2]=~~(D*65536.0);if(l){t=~~(D*255.0+.5);if((t|0)<0){t=0}else{t=(t|0)>255?-1:t&255}C=(da(c[m>>2]|0,s)|0)+p|0;a[(c[e>>2]|0)+C|0]=t}if((s|0)>=(k|0)){break b}t=c[f>>2]|0;s=s+1|0}}}while(0);p=p+1|0;}while((p|0)<(c[m>>2]|0));i=j;return}}function nB(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)==0){d=0}else{fd[c[(c[d>>2]|0)+4>>2]&511](d);d=0}do{Fe(c[a+20+(d<<2)>>2]|0);d=d+1|0;}while((d|0)<32);Fe(c[a+148>>2]|0);i=b;return}function oB(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=i;i=i+128|0;j=c[b+12>>2]|0;if((j|0)==0){k=c[b+8>>2]|0;if((k|0)>0){j=0;do{c[h+(j<<2)>>2]=c[(c[b+20+(j<<2)>>2]|0)+((d[e+j|0]|0)<<2)>>2];j=j+1|0;}while((j|0)<(k|0))}l=c[b>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,h,f);i=g;return}k=c[b+16>>2]|0;if((k|0)>0){e=a[e]|0;l=0;do{c[h+(l<<2)>>2]=c[(c[b+20+(l<<2)>>2]|0)+((e&255)<<2)>>2];l=l+1|0;}while((l|0)<(k|0))}Gd[c[(c[j>>2]|0)+16>>2]&255](j,h,f);i=g;return}function pB(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=i;i=i+128|0;j=c[b+12>>2]|0;if((j|0)==0){k=c[b+8>>2]|0;if((k|0)>0){j=0;do{c[h+(j<<2)>>2]=c[(c[b+20+(j<<2)>>2]|0)+((d[e+j|0]|0)<<2)>>2];j=j+1|0;}while((j|0)<(k|0))}l=c[b>>2]|0;Gd[c[(c[l>>2]|0)+20>>2]&255](l,h,f);i=g;return}k=c[b+16>>2]|0;if((k|0)>0){e=a[e]|0;l=0;do{c[h+(l<<2)>>2]=c[(c[b+20+(l<<2)>>2]|0)+((e&255)<<2)>>2];l=l+1|0;}while((l|0)<(k|0))}Gd[c[(c[j>>2]|0)+20>>2]&255](j,h,f);i=g;return}function qB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;k=i;i=i+128|0;l=i;i=i+16|0;m=l;j=b+12|0;o=c[j>>2]|0;do{if((o|0)==0){n=5}else{if(jd[c[(c[o>>2]|0)+36>>2]&511](o)|0){k=b;break}else{if((c[j>>2]|0)==0){n=5;break}else{n=6;break}}}}while(0);if((n|0)==5){v=c[b>>2]|0;if(jd[c[(c[v>>2]|0)+36>>2]&511](v)|0){k=b}else{n=6}}if((n|0)==6){if((g|0)<=0){i=h;return}q=b+8|0;n=m+4|0;p=m+8|0;o=b+16|0;r=0;while(1){s=c[j>>2]|0;if((s|0)==0){t=c[q>>2]|0;if((t|0)>0){s=0;do{c[k+(s<<2)>>2]=c[(c[b+20+(s<<2)>>2]|0)+((d[e+s|0]|0)<<2)>>2];s=s+1|0;}while((s|0)<(t|0))}v=c[b>>2]|0;Gd[c[(c[v>>2]|0)+20>>2]&255](v,k,m)}else{v=c[o>>2]|0;if((v|0)>0){t=d[e]|0;u=0;do{c[k+(u<<2)>>2]=c[(c[b+20+(u<<2)>>2]|0)+(t<<2)>>2];u=u+1|0;}while((u|0)<(v|0))}Gd[c[(c[s>>2]|0)+20>>2]&255](s,k,m)}c[f+(r<<2)>>2]=(((c[n>>2]|0)*255|0)+32768|0)>>>8&65280|((c[l>>2]|0)*255|0)+32768&16711680|(((c[p>>2]|0)*255|0)+32768|0)>>>16&255;r=r+1|0;if((r|0)>=(g|0)){break}e=e+(c[q>>2]|0)|0}i=h;return}v=c[k>>2]|0;if(((jd[c[(c[v>>2]|0)+12>>2]&511](v)|0)+ -7|0)>>>0>=2){if((g|0)>0){j=b+8|0;b=b+148|0;o=c[j>>2]|0;m=e;l=0;do{if((o|0)>0){n=0;while(1){o=(da(d[m]|0,o)|0)+n|0;a[m]=a[(c[b>>2]|0)+o|0]|0;m=m+1|0;n=n+1|0;o=c[j>>2]|0;if((n|0)<(o|0)){}else{break}}}l=l+1|0;}while((l|0)<(g|0))}v=c[k>>2]|0;Jd[c[(c[v>>2]|0)+32>>2]&63](v,e,f,g);i=h;return}k=b+16|0;l=ye(g,c[k>>2]|0)|0;if((g|0)>0){b=b+148|0;o=c[k>>2]|0;m=0;do{if((o|0)>0){n=e+m|0;p=0;while(1){v=(da(d[n]|0,o)|0)+p|0;a[l+((da(o,m)|0)+p)|0]=a[(c[b>>2]|0)+v|0]|0;p=p+1|0;o=c[k>>2]|0;if((p|0)<(o|0)){}else{break}}}m=m+1|0;}while((m|0)<(g|0))}v=c[j>>2]|0;Jd[c[(c[v>>2]|0)+32>>2]&63](v,l,f,g);Fe(l);i=h;return}function rB(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;g=i;f=b+12|0;k=c[f>>2]|0;j=b+16|0;l=c[j>>2]|0;if((k|0)<(l|0)){l=b;j=b+4|0;b=b+8|0}else{n=l+16|0;c[j>>2]=n;c[b>>2]=Ce(c[b>>2]|0,n,8)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[j>>2]|0,8)|0;m=b+8|0;c[m>>2]=Ce(c[m>>2]|0,c[j>>2]|0,1)|0;k=c[f>>2]|0;l=b;j=n;b=m}h[(c[l>>2]|0)+(k<<3)>>3]=d;h[(c[j>>2]|0)+(c[f>>2]<<3)>>3]=e;a[(c[b>>2]|0)+(c[f>>2]|0)|0]=0;c[f>>2]=(c[f>>2]|0)+1;i=g;return}function sB(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0;m=i;l=b+12|0;p=c[l>>2]|0;o=b+16|0;n=c[o>>2]|0;if((p+3|0)>(n|0)){n=n+16|0;c[o>>2]=n;c[b>>2]=Ce(c[b>>2]|0,n,8)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[o>>2]|0,8)|0;q=b+8|0;c[q>>2]=Ce(c[q>>2]|0,c[o>>2]|0,1)|0;p=c[l>>2]|0;o=b;b=q}else{o=b;n=b+4|0;b=b+8|0}h[(c[o>>2]|0)+(p<<3)>>3]=d;h[(c[n>>2]|0)+(c[l>>2]<<3)>>3]=e;h[(c[o>>2]|0)+((c[l>>2]|0)+1<<3)>>3]=f;h[(c[n>>2]|0)+((c[l>>2]|0)+1<<3)>>3]=g;h[(c[o>>2]|0)+((c[l>>2]|0)+2<<3)>>3]=j;h[(c[n>>2]|0)+((c[l>>2]|0)+2<<3)>>3]=k;a[(c[b>>2]|0)+((c[l>>2]|0)+1)|0]=1;a[(c[b>>2]|0)+(c[l>>2]|0)|0]=1;a[(c[b>>2]|0)+((c[l>>2]|0)+2)|0]=0;c[l>>2]=(c[l>>2]|0)+3;i=m;return}function tB(b,d,e,f,g,j,k){b=b|0;d=d|0;e=+e;f=+f;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=i;a[b]=d&1;h[b+8>>3]=e;h[b+16>>3]=f;c[b+32>>2]=k;d=b+28|0;c[d>>2]=j;b=b+24|0;c[b>>2]=ye(k,4)|0;if((c[d>>2]|0)>0){k=0}else{i=l;return}do{m=c[g+(k<<2)>>2]|0;j=FW(24)|0;o=c[m+16>>2]|0;c[j+16>>2]=o;n=c[m+12>>2]|0;c[j+12>>2]=n;r=ye(o,8)|0;c[j>>2]=r;q=ye(o,8)|0;c[j+4>>2]=q;o=ye(o,1)|0;c[j+8>>2]=o;p=n<<3;$W(r|0,c[m>>2]|0,p|0)|0;$W(q|0,c[m+4>>2]|0,p|0)|0;$W(o|0,c[m+8>>2]|0,n|0)|0;a[j+20|0]=a[m+20|0]&1;c[(c[b>>2]|0)+(k<<2)>>2]=j;k=k+1|0;}while((k|0)<(c[d>>2]|0));i=l;return}function uB(b,c,d){b=b|0;c=+c;d=+d;a[b]=1;h[b+8>>3]=c;h[b+16>>3]=d;i=i;return}function vB(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0.0;f=i;g=b+28|0;j=c[g>>2]|0;if((a[b]&1)==0){l=j;k=b+24|0;l=l+ -1|0;k=c[k>>2]|0;l=l<<2;l=k+l|0;l=c[l>>2]|0;rB(l,d,e);i=f;return}k=b+32|0;l=c[k>>2]|0;if((j|0)<(l|0)){j=b+24|0}else{l=l+16|0;c[k>>2]=l;j=b+24|0;c[j>>2]=Ce(c[j>>2]|0,l,4)|0}l=FW(24)|0;p=+h[b+8>>3];n=+h[b+16>>3];c[l+16>>2]=16;o=ye(16,8)|0;c[l>>2]=o;m=l+4|0;c[m>>2]=ye(16,8)|0;k=l+8|0;c[k>>2]=ye(16,1)|0;c[l+12>>2]=1;h[o>>3]=p;h[c[m>>2]>>3]=n;a[c[k>>2]|0]=0;a[l+20|0]=0;c[(c[j>>2]|0)+(c[g>>2]<<2)>>2]=l;l=(c[g>>2]|0)+1|0;c[g>>2]=l;a[b]=0;k=j;l=l+ -1|0;k=c[k>>2]|0;l=l<<2;l=k+l|0;l=c[l>>2]|0;rB(l,d,e);i=f;return}function wB(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0,t=0.0;m=i;l=b+28|0;n=c[l>>2]|0;if((a[b]&1)==0){p=n;o=b+24|0;p=p+ -1|0;o=c[o>>2]|0;p=p<<2;p=o+p|0;p=c[p>>2]|0;sB(p,d,e,f,g,j,k);i=m;return}o=b+32|0;p=c[o>>2]|0;if((n|0)<(p|0)){n=b+24|0}else{p=p+16|0;c[o>>2]=p;n=b+24|0;c[n>>2]=Ce(c[n>>2]|0,p,4)|0}p=FW(24)|0;t=+h[b+8>>3];r=+h[b+16>>3];c[p+16>>2]=16;s=ye(16,8)|0;c[p>>2]=s;q=p+4|0;c[q>>2]=ye(16,8)|0;o=p+8|0;c[o>>2]=ye(16,1)|0;c[p+12>>2]=1;h[s>>3]=t;h[c[q>>2]>>3]=r;a[c[o>>2]|0]=0;a[p+20|0]=0;c[(c[n>>2]|0)+(c[l>>2]<<2)>>2]=p;p=(c[l>>2]|0)+1|0;c[l>>2]=p;a[b]=0;o=n;p=p+ -1|0;o=c[o>>2]|0;p=p<<2;p=o+p|0;p=c[p>>2]|0;sB(p,d,e,f,g,j,k);i=m;return}function xB(b){b=b|0;var d=0,e=0,f=0.0,g=0,j=0,k=0.0,l=0,m=0,n=0;d=i;e=b+28|0;j=c[e>>2]|0;if((a[b]&1)==0){g=b+24|0}else{g=b+32|0;l=c[g>>2]|0;if((j|0)<(l|0)){g=b+24|0}else{l=l+16|0;c[g>>2]=l;g=b+24|0;c[g>>2]=Ce(c[g>>2]|0,l,4)|0}j=FW(24)|0;f=+h[b+8>>3];k=+h[b+16>>3];n=j+16|0;c[n>>2]=16;c[j>>2]=ye(16,8)|0;m=j+4|0;c[m>>2]=ye(c[n>>2]|0,8)|0;l=j+8|0;c[l>>2]=ye(c[n>>2]|0,1)|0;c[j+12>>2]=1;h[c[j>>2]>>3]=f;h[c[m>>2]>>3]=k;a[c[l>>2]|0]=0;a[j+20|0]=0;c[(c[g>>2]|0)+(c[e>>2]<<2)>>2]=j;j=(c[e>>2]|0)+1|0;c[e>>2]=j;a[b]=0}b=c[(c[g>>2]|0)+(j+ -1<<2)>>2]|0;g=(c[b+12>>2]|0)+ -1|0;n=c[b>>2]|0;f=+h[n>>3];e=c[b+4>>2]|0;do{if(+h[n+(g<<3)>>3]!=f){k=+h[e>>3]}else{k=+h[e>>3];if(+h[e+(g<<3)>>3]!=k){break}n=b+20|0;a[n]=1;i=d;return}}while(0);rB(b,f,k);n=b+20|0;a[n]=1;i=d;return}function yB(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=b;bXbX(b+24|0,0,16)|0;if(j){h[b+40>>3]=e;h[b+48>>3]=d*k;p=-0.0-m}else{h[b+40>>3]=-0.0-e;h[b+48>>3]=d*k;p=o}h[b+56>>3]=e*p;h[b+96>>3]=d*(k-l);h[b+104>>3]=e*(o-m)}else if((g|0)==90){h[b+16>>3]=0.0;if(j){p=e;j=1}else{p=-0.0-e}h[b+24>>3]=p;h[b+32>>3]=d;h[b+40>>3]=0.0;h[b+48>>3]=-0.0-d*m;if(j){p=-0.0-l}else{p=k}h[b+56>>3]=e*p;h[b+96>>3]=d*(o-m);h[b+104>>3]=e*(k-l)}else if((g|0)==270){h[b+16>>3]=0.0;if(j){p=-0.0-e}else{p=e;j=0}h[b+24>>3]=p;h[b+32>>3]=-0.0-d;h[b+40>>3]=0.0;h[b+48>>3]=d*o;if(j){p=k}else{p=-0.0-l}h[b+56>>3]=e*p;h[b+96>>3]=d*(o-m);h[b+104>>3]=e*(k-l)}else{h[b+16>>3]=d;bX(b+24|0,0,16)|0;if(j){h[b+40>>3]=-0.0-e;h[b+48>>3]=-0.0-d*l;p=o}else{h[b+40>>3]=e;h[b+48>>3]=-0.0-d*l;p=-0.0-m}h[b+56>>3]=e*p;h[b+96>>3]=d*(k-l);h[b+104>>3]=e*(o-m)}f=FW(4)|0;c[f>>2]=168128;c[b+116>>2]=f;f=FW(4)|0;c[f>>2]=168128;c[b+120>>2]=f;c[b+124>>2]=0;c[b+252>>2]=0;c[b+380>>2]=0;c[b+384>>2]=0;c[b+388>>2]=0;h[b+392>>3]=1.0;h[b+400>>3]=1.0;a[b+408|0]=0;a[b+409|0]=0;bX(b+412|0,0,16)|0;h[b+432>>3]=1.0;bX(b+440|0,0,16)|0;c[b+456>>2]=1;c[b+460>>2]=0;c[b+464>>2]=0;h[b+472>>3]=10.0;a[b+480|0]=0;c[b+484>>2]=0;h[b+488>>3]=0.0;h[b+496>>3]=1.0;bX(b+504|0,0,16)|0;h[b+520>>3]=1.0;bX(b+528|0,0,32)|0;h[b+560>>3]=1.0;bX(b+568|0,0,20)|0;f=FW(40)|0;a[f]=0;c[f+32>>2]=16;c[f+28>>2]=0;bX(f+8|0,0,16)|0;c[f+24>>2]=ye(16,4)|0;c[b+588>>2]=f;bX(b+592|0,0,48)|0;h[b+640>>3]=+h[b+96>>3];h[b+648>>3]=+h[b+104>>3];c[b+656>>2]=0;i=n;return}function EB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;d=c[a+116>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+120>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+380>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+384>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+412>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+416>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+420>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+424>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+440>>2]|0);d=c[a+588>>2]|0;if((d|0)!=0){f=d+28|0;g=c[f>>2]|0;e=d+24|0;j=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){Fe(c[k>>2]|0);Fe(c[k+4>>2]|0);Fe(c[k+8>>2]|0);HW(k);j=c[e>>2]|0;g=c[f>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);HW(d)}d=c[a+656>>2]|0;if((d|0)!=0){EB(d);HW(d)}a=c[a+484>>2]|0;if((a|0)==0){i=b;return}Yx(a);i=b;return}function FB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;$W(a|0,b|0,664)|0;e=a+116|0;if((c[e>>2]|0)!=0){f=c[b+116>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+120|0;if((c[e>>2]|0)!=0){f=c[b+120>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+380|0;if((c[e>>2]|0)!=0){f=c[b+380>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+384|0;if((c[e>>2]|0)!=0){f=c[b+384>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+412|0;if((c[e>>2]|0)!=0){f=c[b+412>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+416|0;if((c[e>>2]|0)!=0){f=c[b+416>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+420|0;if((c[e>>2]|0)!=0){f=c[b+420>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+424|0;if((c[e>>2]|0)!=0){f=c[b+424>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+444|0;f=c[e>>2]|0;if((f|0)>0){f=ye(f,8)|0;c[a+440>>2]=f;$W(f|0,c[b+440>>2]|0,c[e>>2]<<3|0)|0}b=c[a+484>>2]|0;if((b|0)==0){f=a+656|0;c[f>>2]=0;i=d;return}Xx(b);f=a+656|0;c[f>>2]=0;i=d;return}function GB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;a=a+588|0;e=c[a>>2]|0;if((e|0)==0){l=a;c[l>>2]=b;i=d;return}g=e+28|0;h=c[g>>2]|0;f=e+24|0;k=c[f>>2]|0;if((h|0)>0){j=0;do{l=c[k+(j<<2)>>2]|0;if((l|0)!=0){Fe(c[l>>2]|0);Fe(c[l+4>>2]|0);Fe(c[l+8>>2]|0);HW(l);k=c[f>>2]|0;h=c[g>>2]|0}j=j+1|0;}while((j|0)<(h|0))}Fe(k);HW(e);l=a;c[l>>2]=b;i=d;return}function HB(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.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0;f=i;q=+h[a+16>>3];k=+h[a+40>>3];o=+h[a+24>>3];n=+h[a+32>>3];t=1.0/(q*k-o*n);r=k*t;s=-0.0-o*t;l=-0.0-n*t;m=q*t;g=+h[a+56>>3];p=+h[a+48>>3];k=t*(n*g-k*p);g=t*(o*p-q*g);q=+h[a+624>>3];p=r*q;o=+h[a+632>>3];t=o*l;n=k+(p+t);q=q*s;o=m*o;u=g+(q+o);j=+h[a+648>>3];l=j*l;p=k+(p+l);j=m*j;q=g+(q+j);do{if(p<n){m=n}else{if(p<=n){m=n;p=n;break}m=p;p=n}}while(0);do{if(q<u){n=u}else{if(q<=u){n=u;q=u;break}n=q;q=u}}while(0);u=+h[a+640>>3];r=r*u;t=k+(r+t);s=u*s;o=g+(s+o);do{if(t<p){p=t}else{if(t<=m){break}m=t}}while(0);do{if(o<q){q=o}else{if(o<=n){break}n=o}}while(0);k=k+(r+l);g=g+(s+j);do{if(k<p){p=k}else{if(k<=m){break}m=k}}while(0);do{if(g<q){q=g}else{if(g<=n){break}n=g}}while(0);h[b>>3]=p;h[c>>3]=q;h[d>>3]=m;h[e>>3]=n;i=f;return}function IB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h[a+16>>3]=b;h[a+24>>3]=c;h[a+32>>3]=d;h[a+40>>3]=e;h[a+48>>3]=f;h[a+56>>3]=g;i=i;return}function JB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var j=0.0,k=0.0,l=0,m=0.0,n=0.0,o=0,p=0,q=0;q=a+16|0;n=+h[q>>3];p=a+24|0;k=+h[p>>3];o=a+32|0;m=+h[o>>3];l=a+40|0;j=+h[l>>3];h[q>>3]=n*b+m*c;h[p>>3]=k*b+j*c;h[o>>3]=n*d+m*e;h[l>>3]=k*d+j*e;l=a+48|0;h[l>>3]=n*f+m*g+ +h[l>>3];a=a+56|0;h[a>>3]=k*f+j*g+ +h[a>>3];i=i;return}function KB(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=a+48|0;h[d>>3]=+h[d>>3]+b;d=a+56|0;h[d>>3]=+h[d>>3]+c;d=a+624|0;h[d>>3]=+h[d>>3]+b;d=a+632|0;h[d>>3]=+h[d>>3]+c;d=a+640|0;h[d>>3]=+h[d>>3]+b;a=a+648|0;h[a>>3]=+h[a>>3]+c;i=i;return}function LB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+116|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function MB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+120|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function NB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+380|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function OB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+384|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function PB(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0,g=0;e=i;f=a+484|0;g=c[f>>2]|0;if((g|0)!=0){Yx(g)}c[f>>2]=b;h[a+488>>3]=d;i=e;return}function QB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;f=a+412|0;e=c[f>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[f>>2]=c[b>>2];e=a+416|0;f=c[e>>2]|0;if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}c[e>>2]=c[b+4>>2];e=a+420|0;f=c[e>>2]|0;if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}c[e>>2]=c[b+8>>2];a=a+424|0;e=c[a>>2]|0;if((e|0)==0){e=b+12|0;e=c[e>>2]|0;f=a;c[f>>2]=e;i=d;return}fd[c[(c[e>>2]|0)+4>>2]&511](e);e=b+12|0;e=c[e>>2]|0;f=a;c[f>>2]=e;i=d;return}function RB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0,g=0,j=0;f=i;g=a+440|0;j=c[g>>2]|0;if((j|0)!=0){Fe(j)}c[g>>2]=b;c[a+444>>2]=d;h[a+448>>3]=e;i=f;return}function SB(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;e=b+588|0;b=c[e>>2]|0;if((b|0)!=0){g=b+28|0;h=c[g>>2]|0;f=b+24|0;k=c[f>>2]|0;if((h|0)>0){j=0;do{l=c[k+(j<<2)>>2]|0;if((l|0)!=0){Fe(c[l>>2]|0);Fe(c[l+4>>2]|0);Fe(c[l+8>>2]|0);HW(l);k=c[f>>2]|0;h=c[g>>2]|0}j=j+1|0;}while((j|0)<(h|0))}Fe(k);HW(b)}l=FW(40)|0;a[l]=0;c[l+32>>2]=16;c[l+28>>2]=0;bX(l+8|0,0,16)|0;c[l+24>>2]=ye(16,4)|0;c[e>>2]=l;i=d;return}function TB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0,v=0.0,w=0.0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0;b=i;m=c[a+588>>2]|0;d=c[m+28>>2]|0;if((d|0)>0){e=a+16|0;f=a+32|0;g=a+48|0;j=a+24|0;k=a+40|0;l=a+56|0;m=c[m+24>>2]|0;n=0;y=0.0;A=0.0;z=0.0;B=0.0;do{u=c[m+(n<<2)>>2]|0;p=c[u+12>>2]|0;if((p|0)>0){o=c[u>>2]|0;u=c[u+4>>2]|0;s=+h[e>>3];r=+h[f>>3];t=+h[g>>3];w=+h[j>>3];v=+h[k>>3];q=+h[l>>3];x=0;C=B;while(1){E=+h[o+(x<<3)>>3];B=+h[u+(x<<3)>>3];D=t+(E*s+B*r);B=q+(E*w+B*v);do{if((x|n|0)==0){y=D;A=D;z=B}else{do{if(D<A){A=D}else{if(D<=y){break}y=D}}while(0);if(B<C){break}if(B<=z){B=C;break}z=B;B=C}}while(0);x=x+1|0;if((x|0)<(p|0)){C=B}else{break}}}n=n+1|0;}while((n|0)<(d|0))}else{y=0.0;A=0.0;z=0.0;B=0.0}d=a+624|0;if(A>+h[d>>3]){h[d>>3]=A}d=a+632|0;if(B>+h[d>>3]){h[d>>3]=B}d=a+640|0;if(y<+h[d>>3]){h[d>>3]=y}a=a+648|0;if(z>=+h[a>>3]){i=b;return}h[a>>3]=z;i=b;return}function UB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0;b=i;m=c[a+588>>2]|0;f=c[m+28>>2]|0;e=a+16|0;d=a+32|0;if((f|0)>0){j=a+48|0;k=a+24|0;g=a+40|0;l=a+56|0;m=c[m+24>>2]|0;n=0;z=0.0;B=0.0;y=0.0;A=0.0;do{w=c[m+(n<<2)>>2]|0;p=c[w+12>>2]|0;if((p|0)>0){o=c[w>>2]|0;w=c[w+4>>2]|0;u=+h[e>>3];t=+h[d>>3];v=+h[j>>3];r=+h[k>>3];q=+h[g>>3];s=+h[l>>3];x=0;C=A;while(1){E=+h[o+(x<<3)>>3];A=+h[w+(x<<3)>>3];D=v+(E*u+A*t);A=s+(E*r+A*q);do{if((x|n|0)==0){z=D;B=D;y=A}else{do{if(D<B){B=D}else{if(D<=z){break}z=D}}while(0);if(A<C){break}if(A<=y){A=C;break}y=A;A=C}}while(0);x=x+1|0;if((x|0)<(p|0)){C=A}else{break}}}n=n+1|0;}while((n|0)<(f|0))}else{g=a+40|0;z=0.0;B=0.0;y=0.0;A=0.0}r=+S(+(+h[e>>3]));q=+S(+(+h[d>>3]));t=+h[a+432>>3]*.5;q=t*(r>q?r:q);s=B-q;q=z+q;u=+S(+(+h[g>>3]));t=t*(r>u?r:u);r=y+t;t=A-t;d=a+624|0;if(s>+h[d>>3]){h[d>>3]=s}d=a+632|0;if(t>+h[d>>3]){h[d>>3]=t}d=a+640|0;if(q<+h[d>>3]){h[d>>3]=q}a=a+648|0;if(r>=+h[a>>3]){i=b;return}h[a>>3]=r;i=b;return}function VB(a,b,c){a=a|0;b=+b;c=+c;var d=0.0,e=0;d=+h[a+504>>3]*b+ +h[a+520>>3]*c;e=a+592|0;h[e>>3]=+h[a+496>>3]*b+ +h[a+512>>3]*c+ +h[e>>3];a=a+600|0;h[a>>3]=+h[a>>3]+d;i=i;return}function WB(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=a+592|0;h[d>>3]=+h[d>>3]+b;a=a+600|0;h[a>>3]=+h[a>>3]+c;i=i;return}function XB(a){a=a|0;var b=0,d=0;d=i;b=FW(664)|0;FB(b,a);c[b+656>>2]=a;i=d;return b|0}function YB(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=a+656|0;d=c[e>>2]|0;if((d|0)==0){e=a;i=b;return e|0}f=a+588|0;c[d+588>>2]=c[f>>2];h[d+592>>3]=+h[a+592>>3];h[d+600>>3]=+h[a+600>>3];h[d+608>>3]=+h[a+608>>3];h[d+616>>3]=+h[a+616>>3];c[f>>2]=0;c[e>>2]=0;EB(a);HW(a);e=d;i=b;return e|0}function ZB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;a=i;f=i;i=i+8|0;g=f;j=i;i=i+16|0;h=j;c[j>>2]=13;k=h+8|0;c[k>>2]=0;c[k+4>>2]=0;l=c[b>>2]|0;if((l|0)==4){f=b+8|0;g=0;while(1){b=g+1|0;if((Qc(c[f>>2]|0,c[171536+(g<<3)>>2]|0)|0)==0){break}if((b|0)<17){g=b}else{d=0;e=16;break}}if((e|0)==16){i=a;return d|0}c[d>>2]=c[171540+(g<<3)>>2];n=1;i=a;return n|0}else if((l|0)==6){e=b+8|0;l=0;a:while(1){m=c[e>>2]|0;if((l|0)>=(c[m+12>>2]|0)){e=15;break}ut(m,l,h)|0;if((c[j>>2]|0)==4){m=0}else{e=10;break}while(1){n=m+1|0;if((Qc(c[k>>2]|0,c[171536+(m<<3)>>2]|0)|0)==0){e=13;break a}if((n|0)<17){m=n}else{break}}Of(h);m=c[b>>2]|0;if((m|0)==6){l=l+1|0}else{e=7;break}}if((e|0)==7){c[f>>2]=m;c[g+4>>2]=6;Qe(0,172720,g);tc()}else if((e|0)==10){Of(h);n=0;i=a;return n|0}else if((e|0)==13){Of(h);c[d>>2]=c[171540+(m<<3)>>2];n=1;i=a;return n|0}else if((e|0)==15){c[d>>2]=0;n=1;i=a;return n|0}}else{n=0;i=a;return n|0}return 0}function _B(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return}function $B(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return}function aC(a){a=a|0;i=i;return 0}function bC(a){a=a|0;i=i;return 0}function cC(a){a=a|0;i=i;return 0}function dC(a){a=a|0;i=i;return 0}function eC(a){a=a|0;i=i;return-1}function fC(a){a=a|0;i=i;return-1}function gC(a){a=a|0;i=i;return 1}function hC(a){a=a|0;i=i;return 2}function iC(a){a=a|0;i=i;return-1}function jC(a){a=a|0;i=i;return-1}function kC(a){a=a|0;i=i;return 3}function lC(a){a=a|0;i=i;return 4}function mC(a){a=a|0;i=i;return 4}function nC(a){a=a|0;i=i;return 10}function oC(a){a=a|0;i=i;return 0}function pC(a){a=a|0;i=i;return 1}function qC(a){a=a|0;i=i;return 1}function rC(a){a=a|0;i=i;return 3}function sC(a){a=a|0;i=i;return 3}function tC(a){a=a|0;i=i;return 5}function uC(a){a=a|0;i=i;return 3}function vC(a){a=a|0;i=i;return 6}function wC(a){a=a|0;i=i;return c[a+4>>2]|0}function xC(a){a=a|0;i=i;return 7}function yC(a){a=a|0;i=i;return-1}function zC(a){a=a|0;i=i;return 1}function AC(a){a=a|0;i=i;return 8}function BC(a){a=a|0;i=i;return 1}function CC(b){b=b|0;i=i;return(a[b+16|0]&1)!=0|0}function DC(a){a=a|0;i=i;return 9}function EC(a){a=a|0;i=i;return c[a+4>>2]|0}function FC(b){b=b|0;i=i;return(a[b+144|0]&1)!=0|0}function GC(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;j=i;i=i+8|0;l=i;i=i+8|0;k=l;q=i;i=i+8|0;p=q;c[a+16>>2]=sE(d)|0;g=a+20|0;c[g>>2]=rE(d)|0;c[a+24>>2]=tE(d)|0;c[a+36>>2]=qE(d)|0;o=pE(d)|0;n=a+28|0;c[n>>2]=o;if((o|0)<0){m=3}else{if((o|0)>=(c[e+16>>2]|0)){m=3}}if((m|0)==3){c[q>>2]=o;Qe(-1,172872,p);c[n>>2]=0;o=0}c[a+32>>2]=c[(kn(e,o)|0)>>2];m=c[g>>2]|0;if((m|0)>536870910){c[l>>2]=m;Qe(-1,172944,k);c[g>>2]=0;m=0}q=a+96|0;c[q>>2]=ze(m,4)|0;m=a+100|0;c[m>>2]=ze(c[g>>2]|0,4)|0;p=a+104|0;c[p>>2]=ze(c[g>>2]|0,4)|0;o=a+108|0;c[o>>2]=ze(c[g>>2]|0,4)|0;n=a+112|0;c[n>>2]=ze(c[g>>2]|0,4)|0;l=a+116|0;c[l>>2]=ze(c[g>>2]|0,4)|0;k=ze(c[g>>2]|0,4)|0;c[a+120>>2]=k;do{if((c[q>>2]|0)!=0){if((c[m>>2]|0)==0){break}if((c[p>>2]|0)==0){break}if((c[o>>2]|0)==0){break}if((c[n>>2]|0)==0){break}m=c[l>>2]|0;if((m|0)==0|(k|0)==0){break}q=c[g>>2]<<2;p=m;bX(p|0,0,q|0)|0;q=a+124|0;bX(q|0,0,24)|0;HC(a,b,d,e,f);i=h;return}}while(0);Qe(-1,172992,j);c[g>>2]=0;q=0;p=c[l>>2]|0;bX(p|0,0,q|0)|0;q=a+124|0;bXbX(p|0,0,da(c[k>>2]|0,c[n>>2]|0)|0)|0;if((h|0)==0){u=l;i=j;return u|0}o=(g|0)==0;n=b+8|0;q=b+12|0;p=b+16|0;b=b+20|0;r=0;do{do{if(!o){u=r+f|0;if((u|0)<0){break}else{s=0}do{t=s+e|0;do{if((t|0)>=0){if((c[n>>2]|0)<=(t|0)){break}if((c[q>>2]|0)<=(u|0)){break}v=(da(c[p>>2]|0,u)|0)+(t>>3)|0;if(((d[(c[b>>2]|0)+v|0]|0)&1<<(t&7^7)|0)==0){break}v=(da(c[k>>2]|0,r)|0)+(s>>3)|0;v=(c[m>>2]|0)+v|0;a[v]=d[v]|0|1<<(s&7^7)}}while(0);s=s+1|0;}while(s>>>0<g>>>0)}}while(0);r=r+1|0;}while(r>>>0<h>>>0);i=j;return l|0}}while(0);do{if((o|0)==16){Qe(-1,177872,p);c[l+20>>2]=0;if((l|0)==0){l=0}else{break}i=j;return l|0}}while(0);fd[c[(c[l>>2]|0)+4>>2]&511](l);v=0;i=j;return v|0}function VC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=b+12|0;do{if((c[g>>2]|0)<(d|0)){h=b+16|0;j=c[h>>2]|0;if((j|0)<1){break}if((2147483646/(j|0)|0|0)<=(d|0)){break}k=b+20|0;b=xe(c[k>>2]|0,(da(j,d)|0)+1|0)|0;c[k>>2]=b;l=c[g>>2]|0;j=c[h>>2]|0;b=b+(da(j,l)|0)|0;j=da(d-l|0,j)|0;if((e|0)==0){bX(b|0,0,j|0)|0}else{bX(b|0,-1,j|0)|0}c[g>>2]=d;l=da(c[h>>2]|0,d)|0;a[(c[k>>2]|0)+l|0]=0;i=f;return}}while(0);Qe(-1,177872,k);l=b+20|0;Fe(c[l>>2]|0);c[l>>2]=0;i=f;return}function WC(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;j=i;if((g|0)==-2147483648){i=j;return}z=(g|0)<0?0-g|0:0;l=c[e+12>>2]|0;k=c[b+12>>2]|0;m=(l+g|0)>(k|0)?k-g|0:l;if((z|0)>=(m|0)){i=j;return}l=(f|0)>-1;k=l?f&-8:0;o=(c[e+8>>2]|0)+f|0;n=c[b+8>>2]|0;y=(o|0)>(n|0)?n:o;if((k|0)>=(y|0)){i=j;return}o=f&7;p=y&7;n=255>>>p;p=(p|0)==0?255:255<<8-p;s=p&255>>>o;r=(k|0)==(y+ -1&-8|0);q=b+20|0;u=b+16|0;b=f>>3;t=e+20|0;e=e+16|0;v=s^255;f=0-f>>3;x=k+8|0;w=255<<8-o;y=y+ -8|0;do{D=c[q>>2]|0;B=da(c[u>>2]|0,z+g|0)|0;A=D+B|0;do{if(r){if(l){A=D+(B+b)|0;B=(c[t>>2]|0)+(da(c[e>>2]|0,z)|0)|0;D=a[A]|0;C=D&255;B=d[B]|0;switch(h|0){case 4:{D=(B>>>o&s|C&v)&255;break};case 2:{D=(B>>>o&p^C)&255;break};case 3:{D=((B^255)>>>o&p^C)&255;break};case 0:{D=(B>>>o&p|C)&255;break};case 1:{D=((B|65280)>>>o|n)&C&255;break};default:{}}a[A]=D;break}else{D=(c[t>>2]|0)+((da(c[e>>2]|0,z)|0)+f)|0;C=a[A]|0;B=C&255;D=d[D]|0;switch(h|0){case 0:{C=(D&p|B)&255;break};case 2:{C=(D&p^B)&255;break};case 3:{C=((D^255)&p^B)&255;break};case 1:{C=(D|n)&B&255;break};case 4:{C=(D&p|B&n)&255;break};default:{}}a[A]=C;break}}else{if(l){A=B+b|0;F=D+A|0;C=c[t>>2]|0;B=da(c[e>>2]|0,z)|0;E=d[C+B|0]|0;G=a[F]|0;H=G&255;switch(h|0){case 4:{G=(H&w|E>>>o)&255;break};case 1:{G=(E|65280)>>>o&H&255;break};case 2:{G=(H^E>>>o)&255;break};case 0:{G=(H|E>>>o)&255;break};case 3:{G=((E^255)>>>o^H)&255;break};default:{}}a[F]=G;A=D+(A+1)|0;D=E;E=C+(B+1)|0;B=x}else{B=c[t>>2]|0;E=(da(c[e>>2]|0,z)|0)+f|0;D=d[B+E|0]|0;E=B+(E+1)|0;B=k}G=a[A]|0;C=G&255;F=E+1|0;E=d[E]|0;D=(E|D<<8)>>>o;if((B|0)<(y|0)){if((h|0)==1){H=A;while(1){A=H+1|0;a[H]=D&C;B=B+8|0;H=a[A]|0;C=H&255;G=d[F]|0;D=(G|E<<8)>>>o;if((B|0)<(y|0)){H=A;F=F+1|0;E=G}else{B=H;break}}}else if((h|0)==0){H=A;while(1){A=H+1|0;a[H]=D|C;B=B+8|0;H=a[A]|0;C=H&255;G=d[F]|0;D=(G|E<<8)>>>o;if((B|0)<(y|0)){H=A;F=F+1|0;E=G}else{B=H;break}}}else{H=A;while(1){if((h|0)==4){G=D&255}else if((h|0)==3){G=(C^255^D)&255}else if((h|0)==2){G=(D^C)&255}A=H+1|0;a[H]=G;B=B+8|0;G=a[A]|0;C=G&255;H=d[F]|0;D=(H|E<<8)>>>o;if((B|0)<(y|0)){E=H;F=F+1|0;H=A}else{B=G;break}}}}else{B=G}switch(h|0){case 0:{B=(D&p|C)&255;break};case 1:{B=(D|n)&C&255;break};case 4:{B=(D&p|C&n)&255;break};case 3:{B=((D^255)&p^C)&255;break};case 2:{B=(D&p^C)&255;break};default:{}}a[A]=B}}while(0);z=z+1|0;}while((z|0)<(m|0));i=j;return}function XC(a){a=a|0;var b=0;b=i;YC(a);HW(a);i=b;return}function YC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=177904;e=a+8|0;f=c[e>>2]|0;d=a+12|0;h=c[d>>2]|0;if((f|0)!=0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while(g>>>0<f>>>0)}Fe(h);d=c[a+16>>2]|0;if((d|0)!=0){yI(d);HW(d)}a=c[a+20>>2]|0;if((a|0)==0){i=b;return}yI(a);HW(a);i=b;return}function ZC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=177928;e=a+8|0;f=c[e>>2]|0;d=a+12|0;h=c[d>>2]|0;if((f|0)==0){j=h;Fe(j);HW(a);i=b;return}else{g=0}do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while(g>>>0<f>>>0);Fe(h);HW(a);i=b;return}function _C(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=177928;d=a+8|0;e=c[d>>2]|0;a=a+12|0;g=c[a>>2]|0;if((e|0)==0){h=g;Fe(h);i=b;return}else{f=0}do{h=c[g+(f<<2)>>2]|0;if((h|0)!=0){fd[c[(c[h>>2]|0)+4>>2]&511](h);g=c[a>>2]|0;e=c[d>>2]|0}f=f+1|0;}while(f>>>0<e>>>0);Fe(g);i=b;return}function $C(a){a=a|0;var b=0;b=i;c[a>>2]=177952;Fe(c[a+8>>2]|0);HW(a);i=b;return}function aD(a){a=a|0;var b=0;b=i;c[a>>2]=177952;Fe(c[a+8>>2]|0);i=b;return}function bD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;uj(a,b);c[a>>2]=177976;b=a+16|0;c[b>>2]=13;f=a+24|0;c[f>>2]=0;c[f+4>>2]=0;c[a+48>>2]=0;f=FW(36)|0;CI(f);c[a+76>>2]=f;f=FW(8)|0;wI(f,2);c[a+80>>2]=f;f=FW(8)|0;wI(f,2);c[a+84>>2]=f;f=FW(8)|0;wI(f,512);c[a+88>>2]=f;f=FW(8)|0;wI(f,512);c[a+92>>2]=f;f=FW(8)|0;wI(f,512);c[a+96>>2]=f;f=FW(8)|0;wI(f,512);c[a+100>>2]=f;f=FW(8)|0;wI(f,512);c[a+104>>2]=f;f=FW(8)|0;wI(f,512);c[a+108>>2]=f;f=FW(8)|0;wI(f,512);c[a+112>>2]=f;f=FW(8)|0;wI(f,512);c[a+116>>2]=f;f=FW(8)|0;wI(f,512);c[a+120>>2]=f;f=FW(8)|0;wI(f,512);c[a+124>>2]=f;f=FW(8)|0;wI(f,512);c[a+128>>2]=f;f=FW(8)|0;wI(f,512);c[a+132>>2]=f;f=FW(8)|0;wI(f,512);c[a+136>>2]=f;f=FW(8)|0;wI(f,2);c[a+140>>2]=f;f=FW(12)|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[a+144>>2]=f;f=FW(16)|0;bX(f|0,0,16)|0;c[a+148>>2]=f;Mf(d,b)|0;bXbXbX(C|0,0,e|0)|0}else{bX(C|0,-1,e|0)|0}C=(F|0)!=0;if(C){e=FW(24)|0;c[e+4>>2]=0;c[e>>2]=177856;c[e+8>>2]=r;F=e+12|0;c[F>>2]=s;K=r+7>>3;E=e+16|0;c[E>>2]=K;do{if((r|0)<1){k=79}else{if((s|0)<1|(K|0)<1){k=79;break}if((2147483646/(K|0)|0|0)<=(s|0)){k=79;break}O=we((da(s,K)|0)+1|0)|0;K=e+20|0;c[K>>2]=O;a[O+(da(c[E>>2]|0,c[F>>2]|0)|0)|0]=0;K=c[K>>2]|0}}while(0);if((k|0)==79){Qe(-1,177872,B);c[e+20>>2]=0;K=0}B=e+20|0;bX(K|0,0,da(c[E>>2]|0,c[F>>2]|0)|0)|0;F=(r|0)==0;K=0;while(1){if(!F){L=(da(K,A)|0)+t|0;O=(da(K,y)|0)+x|0;M=0;do{P=L+(da(M,y)|0)|0;N=O-(da(M,A)|0)|0;if((P+I>>8|0)>0&(P>>8|0)<(z|0)){if(!((N+J>>8|0)>0&(N>>8|0)<(h|0))){k=86}}else{k=86}if((k|0)==86){k=0;P=(da(c[E>>2]|0,K)|0)+(M>>3)|0;P=(c[B>>2]|0)+P|0;a[P]=d[P]|0|1<<(M&7^7)}M=M+1|0;}while(M>>>0<r>>>0)}K=K+1|0;if(K>>>0>=s>>>0){B=e;break}}}else{B=0}P=da(s,r)|0;z=ye(P,4)|0;bX(z|0,0,P<<2|0)|0;c[u>>2]=w>>>0<2?3:2;c[v>>2]=-1;c[o+4>>2]=-3;c[n+4>>2]=-1;c[o+8>>2]=2;c[n+8>>2]=-2;c[o+12>>2]=-2;c[n+12>>2]=-2;if((j|0)>-1){u=(r|0)==0;do{F=zD(b,H,r,s,w,0,C,B,o,n,-1)|0;I=F+8|0;v=F+12|0;E=F+16|0;e=F+20|0;K=0;J=0;do{if(!u){L=(J|0)<0;M=K;N=0;while(1){do{if((N|0)<0){O=0}else{if((c[I>>2]|0)<=(N|0)|L){O=0;break}if((c[v>>2]|0)<=(J|0)){O=0;break}O=(da(c[E>>2]|0,J)|0)+(N>>3)|0;O=(d[(c[e>>2]|0)+O|0]|0)>>>(N&7^7)&1}}while(0);P=z+(M<<2)|0;Q=c[P>>2]|0;c[P>>2]=Q&1^O|Q<<1;N=N+1|0;if(N>>>0<r>>>0){M=M+1|0}else{break}}K=r+K|0}J=J+1|0;}while(J>>>0<s>>>0);if((F|0)!=0){fd[c[(c[F>>2]|0)+4>>2]&511](F)}j=j+ -1|0;}while((j|0)>-1)}n=(r|0)==0;C=C^1;w=B+8|0;v=B+12|0;o=B+16|0;u=B+20|0;E=0;e=0;do{if(!n){F=(e|0)<0;H=E;J=0;j=(da(e,A)|0)+t|0;I=(da(e,y)|0)+x|0;while(1){do{if((J|0)<0|C){k=111}else{if((c[w>>2]|0)<=(J|0)|F){k=111;break}if((c[v>>2]|0)<=(e|0)){k=111;break}Q=(da(c[o>>2]|0,e)|0)+(J>>3)|0;if(((d[(c[u>>2]|0)+Q|0]|0)&1<<(J&7^7)|0)==0){k=111}}}while(0);if((k|0)==111){k=0;WC(G,c[(c[D>>2]|0)+(c[z+(H<<2)>>2]<<2)>>2]|0,j>>8,I>>8,q)}J=J+1|0;if(J>>>0<r>>>0){H=H+1|0;j=j+y|0;I=I-A|0}else{break}}E=r+E|0}e=e+1|0;}while(e>>>0<s>>>0);Fe(z);if((B|0)!=0){fd[c[(c[B>>2]|0)+4>>2]&511](B)}if(!f){yo(c[b+56>>2]|0,G);i=g;return}do{if((c[b+36>>2]|0)==-1){f=m+h|0;if(f>>>0<=(c[b+40>>2]|0)>>>0){break}VC(c[b+48>>2]|0,f,c[b+44>>2]|0)}}while(0);WC(c[b+48>>2]|0,G,l,m,p);if((G|0)==0){i=g;return}fd[c[(c[G>>2]|0)+4>>2]&511](G);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182096,G);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182056,J);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182008,K);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,178296,A);i=g;return}function qD(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;k=i;i=i+8|0;p=i;i=i+16|0;g=p;n=i;i=i+16|0;h=n;j=a+64|0;l=c[j>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;do{if((l|0)!=-1){o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}l=o<<16|l<<24|q<<8|m;r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}m=q<<16|r<<24|o<<8|m;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}o=r<<16|s<<24|q<<8|o;q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}q=r<<16|q<<24|s<<8|t;r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}r=r&7;u=c[j>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=u>>>1&3;s=u&8;u=(u&1|0)!=0;if(!u){v=c[j>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){p=0}else{c[p>>2]=(v&128|0)==0?v:v|-256;p=1}if((t|0)==0){if(!p){break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[n>>2]=(p&128|0)==0?p:p|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+4>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+4>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+8>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+8>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+12>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+12>>2]=(n&128|0)==0?n:n|-256}else{if(!p){break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[n>>2]=(p&128|0)==0?p:p|-256}j=c[182448+(t<<2)>>2]|0;n=a+80|0;k=c[n>>2]|0;if((c[k+4>>2]|0)==(j|0)){xI(k)}else{if((k|0)!=0){yI(k);HW(k)}v=FW(8)|0;wI(v,1<<j);c[n>>2]=v}FI(c[a+76>>2]|0)}f=zD(a,u,l,m,t,(s|0)!=0,0,0,g,h,u?f+ -18|0:0)|0;if((f|0)==0){i=e;return}if(!d){c[f+4>>2]=b;yo(c[a+56>>2]|0,f);i=e;return}do{if((c[a+36>>2]|0)==-1){b=q+m|0;if(b>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,b,c[a+44>>2]|0)}}while(0);WC(c[a+48>>2]|0,f,o,q,r);fd[c[(c[f>>2]|0)+4>>2]&511](f);i=e;return}}while(0);v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178296,k);i=e;return}function rD(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var 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;e=i;w=i;i=i+8|0;k=i;i=i+8|0;n=i;i=i+8|0;v=i;i=i+8|0;y=i;i=i+8|0;m=y;x=i;i=i+8|0;l=x;f=a+64|0;o=c[f>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;do{if((o|0)!=-1){r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=c[f>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}o=r<<16|o<<24|q<<8|p;r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}p=c[f>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=s<<16|r<<24|p<<8|q;t=c[f>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}q=q<<16|t<<24|r<<8|s;t=c[f>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}u=c[f>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}r=r<<16|t<<24|s<<8|u;s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}s=s&7;u=c[f>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=u&1;u=u&2;if((t|0)==0){z=c[f>>2]|0;z=jd[c[(c[z>>2]|0)+20>>2]&511](z)|0;if((z|0)==-1){break}c[y>>2]=(z&128|0)==0?z:z|-256;y=c[f>>2]|0;y=jd[c[(c[y>>2]|0)+20>>2]&511](y)|0;if((y|0)==-1){break}c[x>>2]=(y&128|0)==0?y:y|-256;x=c[f>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}c[m+4>>2]=(x&128|0)==0?x:x|-256;x=c[f>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}c[l+4>>2]=(x&128|0)==0?x:x|-256}do{if((h|0)==0|d){if((c[a+36>>2]|0)!=-1){break}w=r+p|0;if(w>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,w,c[a+44>>2]|0)}}while(0);if(h>>>0>1){z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182280,v);i=e;return}h=(h|0)==1;a:do{if(h){v=c[g>>2]|0;w=c[a+60>>2]|0;j=c[w+8>>2]|0;b:do{if((j|0)>0){w=c[w>>2]|0;y=0;while(1){x=c[w+(y<<2)>>2]|0;y=y+1|0;if((c[x+4>>2]|0)==(v|0)){j=40;break b}if((y|0)<(j|0)){}else{j=35;break}}}else{j=35}}while(0);c:do{if((j|0)==35){x=c[a+56>>2]|0;w=c[x+8>>2]|0;if((w|0)<=0){break}y=c[x>>2]|0;z=0;do{x=c[y+(z<<2)>>2]|0;z=z+1|0;if((c[x+4>>2]|0)==(v|0)){j=40;break c}}while((z|0)<(w|0))}}while(0);do{if((j|0)==40){if((x|0)==0){break}if((jd[c[(c[x>>2]|0)+8>>2]&511](x)|0)!=0){break}break a}}while(0);z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182336,n);i=e;return}else{x=UC(c[a+48>>2]|0,q,r,o,p)|0}}while(0);n=c[182464+(t<<2)>>2]|0;v=a+84|0;w=c[v>>2]|0;if((c[w+4>>2]|0)==(n|0)){xI(w)}else{if((w|0)!=0){yI(w);HW(w)}z=FW(8)|0;wI(z,1<<n);c[v>>2]=z}FI(c[a+76>>2]|0);l=xD(a,o,p,t,(u|0)!=0,x,0,0,m,l)|0;do{if(d){WC(c[a+48>>2]|0,l,q,r,s);if((l|0)==0){break}fd[c[(c[l>>2]|0)+4>>2]&511](l)}else{if((l|0)==0){z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182400,k);break}else{c[l+4>>2]=b;yo(c[a+56>>2]|0,l);break}}}while(0);if(!h){if((x|0)==0){i=e;return}fd[c[(c[x>>2]|0)+4>>2]&511](x);i=e;return}d=c[g>>2]|0;l=c[a+60>>2]|0;b=c[l+8>>2]|0;d:do{if((b|0)>0){k=c[l>>2]|0;f=0;while(1){g=f+1|0;if((c[(c[k+(f<<2)>>2]|0)+4>>2]|0)==(d|0)){break}if((g|0)<(b|0)){f=g}else{break d}}Ao(l,f)|0;i=e;return}}while(0);b=c[a+56>>2]|0;a=c[b+8>>2]|0;if((a|0)<=0){i=e;return}f=c[b>>2]|0;g=0;while(1){k=g+1|0;if((c[(c[f+(g<<2)>>2]|0)+4>>2]|0)==(d|0)){break}if((k|0)<(a|0)){g=k}else{j=70;break}}if((j|0)==70){i=e;return}Ao(b,g)|0;i=e;return}}while(0);z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,178296,w);i=e;return}function sD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;g=i;i=i+8|0;e=i;i=i+8|0;f=b+32|0;h=b+64|0;m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;do{if((m|0)!=-1){k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}j=c[h>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){break}c[f>>2]=k<<16|m<<24|l<<8|j;j=b+36|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}n=c[h>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[j>>2]=l<<16|k<<24|m<<8|n;n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}g=b+44|0;c[g>>2]=m>>>2&1;c[b+52>>2]=m>>>3&3;h=c[j>>2]|0;if((h|0)==-1){k=(k|l<<8)&32767;c[b+40>>2]=k}else{c[b+40>>2]=h;k=h}h=FW(24)|0;n=c[f>>2]|0;c[h+4>>2]=0;c[h>>2]=177856;c[h+8>>2]=n;f=h+12|0;c[f>>2]=k;l=n+7>>3;j=h+16|0;c[j>>2]=l;do{if((n|0)<1){f=27}else{if((k|0)<1|(l|0)<1){f=27;break}if((2147483646/(l|0)|0|0)<=(k|0)){f=27;break}n=we((da(l,k)|0)+1|0)|0;e=h+20|0;c[e>>2]=n;a[n+(da(c[j>>2]|0,c[f>>2]|0)|0)|0]=0;e=c[e>>2]|0;b=b+48|0;c[b>>2]=h;if((e|0)==0){f=28;break}b=da(c[j>>2]|0,c[f>>2]|0)|0;if((c[g>>2]|0)==0){bX(e|0,0,b|0)|0;i=d;return}else{bXbXbX(f|0,0,_|0)|0}else{bX(f|0,-1,_|0)|0}if(d){NC(c[b+144>>2]|0,Z,v)|0}else{JI(c[b+76>>2]|0,Z,c[b+104>>2]|0)|0}c[J>>2]=da(c[J>>2]|0,0-ja|0)|0;if((h|0)==0){wa=Y;i=E;return wa|0}ca=b+144|0;fa=(ja|0)==1;Z=(l|0)==0;ba=(m|0)==32;g=(1<<m)+ -1|0;ea=b+76|0;aa=b+128|0;_=b+132|0;$=b+120|0;f=b+124|0;o=b+136|0;ha=(q|0)==0;q=b+116|0;ga=b+64|0;ia=b+140|0;ma=(j|0)==32?-1:ja+ -1|0;ka=b+108|0;ja=b+104|0;la=b+112|0;oa=0;na=0;a:while(1){if(d){NC(c[ca>>2]|0,H,v)|0;c[J>>2]=(c[J>>2]|0)+(c[I>>2]<<j);NC(c[ca>>2]|0,G,t)|0}else{JI(c[ea>>2]|0,H,c[ja>>2]|0)|0;c[J>>2]=(c[J>>2]|0)+(c[I>>2]<<j);JI(c[ea>>2]|0,G,c[la>>2]|0)|0}na=(c[F>>2]|0)+na|0;b:do{if(oa>>>0<h>>>0){pa=na;while(1){do{if(fa){ta=0;qa=30}else{if(!d){JI(c[ea>>2]|0,H,c[ka>>2]|0)|0;ra=(c[I>>2]|0)+(c[J>>2]|0)|0;qa=40;break}ra=c[ca>>2]|0;sa=ra+8|0;ua=c[sa>>2]|0;qa=ra+4|0;ta=c[qa>>2]|0;if(ua>>>0>=j>>>0){qa=ua-j|0;ra=ta>>>qa&ma;c[sa>>2]=qa;c[I>>2]=ra;ra=(c[J>>2]|0)+ra|0;qa=31;break}ta=(1<<ua)+ -1&ta;ua=j-ua|0;c[sa>>2]=0;if(ua>>>0>7){while(1){wa=c[ra>>2]|0;ta=(jd[c[(c[wa>>2]|0)+20>>2]&511](wa)|0)&255|ta<<8;ua=ua+ -8|0;if(ua>>>0>7){}else{break}}}if((ua|0)==0){qa=30;break}wa=c[ra>>2]|0;wa=jd[c[(c[wa>>2]|0)+20>>2]&511](wa)|0;c[qa>>2]=wa;qa=8-ua|0;c[sa>>2]=qa;ta=wa>>>qa&(1<<ua)+ -1|ta<<ua;qa=30}}while(0);if((qa|0)==30){c[I>>2]=ta;ra=(c[J>>2]|0)+ta|0;if(d){qa=31}else{qa=40}}do{if((qa|0)==31){qa=0;ta=c[ca>>2]|0;if(!Z){NC(ta,W,l)|0;sa=c[X>>2]|0;break}sa=ta+8|0;va=c[sa>>2]|0;ua=ta+4|0;wa=c[ua>>2]|0;if(va>>>0>=m>>>0){va=va-m|0;c[sa>>2]=va;sa=wa>>>va&(ba?-1:g);break}wa=(1<<va)+ -1&wa;va=m-va|0;c[sa>>2]=0;if(va>>>0>7){while(1){xa=c[ta>>2]|0;wa=(jd[c[(c[xa>>2]|0)+20>>2]&511](xa)|0)&255|wa<<8;va=va+ -8|0;if(va>>>0>7){}else{break}}}if((va|0)==0){sa=wa;break}ta=c[ta>>2]|0;ta=jd[c[(c[ta>>2]|0)+20>>2]&511](ta)|0;c[ua>>2]=ta;xa=8-va|0;c[sa>>2]=xa;sa=ta>>>xa&(1<<va)+ -1|wa<<va}else if((qa|0)==40){qa=0;sa=KI(c[ea>>2]|0,m,c[ia>>2]|0)|0}}while(0);do{if(sa>>>0<k>>>0){do{if(e){if(d){ua=c[ca>>2]|0;ta=ua+8|0;va=c[ta>>2]|0;if((va|0)==0){va=c[ua>>2]|0;va=jd[c[(c[va>>2]|0)+20>>2]&511](va)|0;c[ua+4>>2]=va;c[ta>>2]=8;ua=va;va=7}else{ua=c[ua+4>>2]|0;va=va+ -1|0}c[ta>>2]=va;ta=ua>>>va&1;c[K>>2]=ta}else{JI(c[ea>>2]|0,U,c[o>>2]|0)|0;ta=c[K>>2]|0}if((ta|0)==0){qa=64;break}if(d){xa=NC(c[ca>>2]|0,T,w)|0;ta=c[ca>>2]|0;if(!xa){qa=82;break a}xa=NC(ta,S,x)|0;ta=c[ca>>2]|0;if(!xa){qa=81;break a}xa=NC(ta,R,y)|0;ta=c[ca>>2]|0;if(!xa){qa=80;break a}xa=NC(ta,Q,z)|0;ta=c[ca>>2]|0;if(!xa){qa=79;break a}xa=NC(ta,P,A)|0;wa=c[ca>>2]|0;c[wa+4>>2]=0;c[wa+8>>2]=0;FI(c[ea>>2]|0);if(!xa){break a}}else{if(!(JI(c[ea>>2]|0,T,c[aa>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,S,c[_>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,R,c[$>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,Q,c[f>>2]|0)|0)){break a}}sa=c[n+(sa<<2)>>2]|0;if((sa|0)==0){break a}wa=c[L>>2]|0;xa=c[M>>2]|0;sa=xD(b,(c[sa+8>>2]|0)+wa|0,(c[sa+12>>2]|0)+xa|0,B,0,sa,(c[N>>2]|0)+(((wa>>31)+wa|0)/2|0)|0,(c[O>>2]|0)+(((xa>>31)+xa|0)/2|0)|0,C,D)|0}else{c[K>>2]=0;qa=64}}while(0);if((qa|0)==64){qa=0;sa=c[n+(sa<<2)>>2]|0}if((sa|0)==0){break a}ta=(c[sa+8>>2]|0)+ -1|0;qa=(c[sa+12>>2]|0)+ -1|0;do{if(ha){if((r|0)==1){WC(Y,sa,pa,ra,p);qa=ta;break}else if((r|0)==0){WC(Y,sa,pa,ra-qa|0,p);qa=ta;break}else if((r|0)==3){WC(Y,sa,pa,ra,p);qa=ta;break}else if((r|0)==2){WC(Y,sa,pa,ra-qa|0,p);qa=ta;break}else{qa=ta;break}}else{if((r|0)==3){WC(Y,sa,ra-ta|0,pa,p);break}else if((r|0)==2){WC(Y,sa,ra-ta|0,pa,p);break}else if((r|0)==1){WC(Y,sa,ra,pa,p);break}else if((r|0)==0){WC(Y,sa,ra,pa,p);break}else{break}}}while(0);pa=qa+pa|0;if((c[K>>2]|0)==0){break}fd[c[(c[sa>>2]|0)+4>>2]&511](sa)}else{xa=c[ga>>2]|0;Qe(jd[c[(c[xa>>2]|0)+48>>2]&511](xa)|0,181960,V)}}while(0);oa=oa+1|0;if(d){if(!(NC(c[ca>>2]|0,G,u)|0)){break b}}else{if(!(JI(c[ea>>2]|0,G,c[q>>2]|0)|0)){break b}}if(oa>>>0<h>>>0){pa=pa+s+(c[F>>2]|0)|0}else{break}}}}while(0);if(oa>>>0>=h>>>0){qa=89;break}}if((qa|0)==79){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==80){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==81){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==82){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==89){i=E;return Y|0}if((Y|0)==0){xa=0;i=E;return xa|0}fd[c[(c[Y>>2]|0)+4>>2]&511](Y);xa=0;i=E;return xa|0}}while(0);do{if((qa|0)==5){Qe(-1,177872,ba);c[Y+20>>2]=0;if((Y|0)==0){Y=0}else{break}i=E;return Y|0}}while(0);fd[c[(c[Y>>2]|0)+4>>2]&511](Y);xa=0;i=E;return xa|0}
7333 function ZR(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;h=i;g=i;i=i+8|0;q=g;j=i;i=i+8|0;k=i;i=i+8|0;l=k;f=c[d+28>>2]|0;m=c[a+712>>2]|0;if((m|0)==0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}n=a+672|0;if((c[n>>2]|0)==0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}B=pd[c[a+508>>2]&63](a,1668702578,d,j)|0;c[g>>2]=B;if((B|0)!=0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}B=MK(d,c[j>>2]|0)|0;c[g>>2]=B;if((B|0)!=0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}p=d+32|0;u=(c[p>>2]|0)-(c[d>>2]|0)|0;do{if((TK(d)|0)==65536){j=oJ(f,4,0,c[m>>2]|0,0,q)|0;if((c[g>>2]|0)!=0){r=0;o=0;break}o=oJ(f,4,0,c[m>>2]|0,0,q)|0;if((c[g>>2]|0)!=0){r=0;break}r=oJ(f,4,0,c[m>>2]|0,0,q)|0;if((c[g>>2]|0)!=0){break}q=(RK(d)|0)&65535;v=RK(d)|0;q=q&4095;if((q|0)==0){break}a=a+668|0;s=0;v=u+(v&65535)|0;while(1){u=(RK(d)|0)&65535;w=RK(d)|0;x=w&65535;do{if((x&32768|0)==0){if((x&16384|0)==0){break}if((c[m>>2]&2147483647|0)==0){break}else{w=0}do{RK(d)|0;w=w+1|0;}while(w>>>0<c[m>>2]<<1>>>0)}else{if((c[m>>2]|0)==0){z=0}else{y=0;while(1){c[j+(y<<2)>>2]=(RK(d)|0)<<16>>16<<2;y=y+1|0;z=c[m>>2]|0;if(y>>>0<z>>>0){}else{break}}}do{if(!((x&16384|0)==0|(z|0)==0)){z=0;do{c[o+(z<<2)>>2]=(RK(d)|0)<<16>>16<<2;z=z+1|0;y=c[m>>2]|0;}while(z>>>0<y>>>0);if((y|0)==0){break}else{y=0}do{c[r+(y<<2)>>2]=(RK(d)|0)<<16>>16<<2;y=y+1|0;}while(y>>>0<(c[m>>2]|0)>>>0)}}while(0);w=_R(m,w,j,o,r)|0;if((w|0)==0){break}if((x&8192|0)==0){break}x=c[d>>2]|0;y=(c[p>>2]|0)-x|0;c[p>>2]=x+v;x=$R(d,l)|0;A=c[k>>2]|0;B=(A|0)==0;if(B){z=c[a>>2]|0}else{z=A}z=aS(d,z)|0;do{if((x|0)==0|(z|0)==0){t=36}else{if((x|0)==-1){if((c[a>>2]|0)==0){break}else{t=0}while(1){B=e[(c[n>>2]|0)+(t<<1)>>1]|0;B=(aJ(b[z+(t<<1)>>1]|0,w)|0)+B&65535;b[(c[n>>2]|0)+(t<<1)>>1]=B;t=t+1|0;if(t>>>0<(c[a>>2]|0)>>>0){}else{t=36;break}}}else{if(B){t=37;break}else{t=0}while(1){B=e[x+(t<<1)>>1]|0;C=e[(c[n>>2]|0)+(B<<1)>>1]|0;C=(aJ(b[z+(t<<1)>>1]|0,w)|0)+C&65535;b[(c[n>>2]|0)+(B<<1)>>1]=C;t=t+1|0;if(t>>>0<A>>>0){}else{t=36;break}}}}}while(0);if((t|0)==36){t=0;if((x|0)!=-1){t=37}}if((t|0)==37){t=0;lJ(f,x)}lJ(f,z);c[p>>2]=(c[d>>2]|0)+y}}while(0);s=s+1|0;if(s>>>0<q>>>0){v=u+v|0}else{break}}}else{c[g>>2]=0;r=0;o=0;j=0}}while(0);PK(d);C=r;B=o;A=j;lJ(f,A);lJ(f,B);lJ(f,C);C=g;C=c[C>>2]|0;i=h;return C|0}function _R(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;g=a+4|0;n=c[a>>2]|0;if((n|0)==0){o=65536;i=h;return o|0}if((b&16384)==0){b=65536;l=0;while(1){m=c[d+(l<<2)>>2]|0;if((m|0)!=0){n=c[(c[g>>2]|0)+(l<<2)>>2]|0;if((n|0)==0){b=0;l=19;break}if((n|0)<0&(m|0)>0){b=0;l=19;break}o=(n|0)>0;if(o&(m|0)<0){b=0;l=19;break}b=_I(b,o?n:0-n|0,65536)|0;n=c[a>>2]|0}l=l+1|0;if(l>>>0>=n>>>0){l=19;break}}if((l|0)==19){i=h;return b|0}}else{k=65536;j=0}a:while(1){m=c[d+(j<<2)>>2]|0;do{if((m|0)!=0){l=c[(c[g>>2]|0)+(j<<2)>>2]|0;if((l|0)==0){b=0;l=19;break a}if((l|0)<0&(m|0)>0){b=0;l=19;break a}if((l|0)>0&(m|0)<0){b=0;l=19;break a}b=c[e+(j<<2)>>2]|0;if((l|0)<=(b|0)){b=0;l=19;break a}n=c[f+(j<<2)>>2]|0;if((l|0)>=(n|0)){b=0;l=19;break a}if((l|0)<(m|0)){k=_I(k,_I(l-b|0,65536,m-b|0)|0,65536)|0;break}else{k=_I(k,_I(n-l|0,65536,n-m|0)|0,65536)|0;break}}}while(0);j=j+1|0;if(j>>>0>=(c[a>>2]|0)>>>0){b=k;l=19;break}}if((l|0)==19){i=h;return b|0}return 0}function $R(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;h=i;i=i+8|0;g=c[a+28>>2]|0;c[h>>2]=0;m=QK(a)|0;f=m&255;c[d>>2]=f;if(m<<24>>24==0){m=-1;i=e;return m|0}if((f&128|0)!=0){f=(QK(a)|0)&255|f<<8&32512}g=oJ(g,2,0,f,0,h)|0;if((c[h>>2]|0)!=0){m=0;i=e;return m|0}if((f|0)>0){j=0}else{m=g;i=e;return m|0}while(1){k=QK(a)|0;h=k&255;if((h&128|0)==0){l=QK(a)|0;d=j+1|0;b[g+(j<<1)>>1]=l&255;if(k<<24>>24==0){a=18;break}if((h+d|0)>=(f|0)){a=18;break}j=h>>>0>1?h:1;l=l&255;k=d;m=0;while(1){l=((QK(a)|0)&255)+l|0;b[g+(k<<1)>>1]=l;m=m+1|0;if((m|0)<(h|0)){k=k+1|0}else{break}}j=d+j|0}else{h=h&127;l=RK(a)|0;d=j+1|0;b[g+(j<<1)>>1]=l;if((h|0)==0){a=18;break}if((h+d|0)>=(f|0)){a=18;break}j=k&127;j=j>>>0>1?j:1;m=l&65535;k=d;l=0;while(1){m=((RK(a)|0)&65535)+m|0;b[g+(k<<1)>>1]=m;l=l+1|0;if((l|0)<(h|0)){k=k+1|0}else{break}}j=d+j|0}if((j|0)>=(f|0)){a=18;break}}if((a|0)==18){i=e;return g|0}return 0}function aS(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;q=i;i=i+8|0;k=c[a+28>>2]|0;c[q>>2]=0;h=oJ(k,2,0,d,0,q)|0;if((c[q>>2]|0)==0){g=0}else{q=0;i=e;return q|0}while(1){if(g>>>0>=d>>>0){f=10;break}n=QK(a)|0;j=n&255;if((j&128|0)==0){l=j&63;m=g-d|0;n=~(n&63);m=m>>>0>n>>>0?m:n;n=0-m|0;if((j&64|0)==0){q=g;p=0;while(1){o=q+1|0;b[h+(q<<1)>>1]=(QK(a)|0)<<24>>24;p=p+1|0;if(p>>>0<=l>>>0&o>>>0<d>>>0){q=o}else{break}}}else{p=g;q=0;while(1){o=p+1|0;b[h+(p<<1)>>1]=RK(a)|0;q=q+1|0;if(q>>>0<=l>>>0&o>>>0<d>>>0){p=o}else{break}}}}else{l=g-d|0;m=~(n&63);m=l>>>0>m>>>0?l:m;bX(h+(g<<1)|0,0,da(m,-2)|0)|0;n=0-m|0}if(n>>>0>(j&63)>>>0){g=g-m|0}else{break}}if((f|0)==10){i=e;return h|0}lJ(k,h);q=0;i=e;return q|0}function bS(d){d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;g=d+72|0;f=d+108|0;a[f]=0;l=c[d>>2]|0;k=d+44|0;$W(k|0,d+12|0,28)|0;j=b[k>>1]|0;if(j<<16>>16==0){n=151;i=h;return n|0}n=d+46|0;m=b[n>>1]|0;if(m<<16>>16==0){n=151;i=h;return n|0}if((b[l+176>>1]&8)!=0){o=l+68|0;m=d+48|0;c[m>>2]=bJ((j&65535)<<6,e[o>>1]|0)|0;o=bJ(e[n>>1]<<6,e[o>>1]|0)|0;j=d+52|0;c[j>>2]=o;c[d+56>>2]=(aJ(b[l+70>>1]|0,o)|0)+32&-64;c[d+60>>2]=(aJ(b[l+72>>1]|0,c[j>>2]|0)|0)+32&-64;c[d+64>>2]=(aJ(b[l+74>>1]|0,c[j>>2]|0)|0)+32&-64;c[d+68>>2]=(aJ(b[l+76>>1]|0,c[m>>2]|0)|0)+32&-64;m=b[n>>1]|0;j=b[k>>1]|0}if((j&65535)<(m&65535)){c[d+88>>2]=c[d+52>>2];b[d+80>>1]=m;c[g>>2]=_I(j&65535,65536,m&65535)|0;c[d+76>>2]=65536}else{c[d+88>>2]=c[d+48>>2];b[d+80>>1]=j;c[g>>2]=65536;c[d+76>>2]=_I(m&65535,65536,j&65535)|0}a[d+301|0]=0;a[f]=1;o=0;i=h;return o|0}function cS(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,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;j=i;r=i;i=i+8|0;s=r;q=i;i=i+8|0;t=q;z=i;i=i+8|0;B=z;O=i;i=i+16|0;N=O;v=i;i=i+16|0;u=v;C=i;i=i+8|0;K=C;H=i;i=i+8|0;P=H;m=i;i=i+8|0;L=m;M=i;i=i+8|0;J=M;F=i;i=i+8|0;I=F;n=i;i=i+40|0;w=n;x=i;i=i+8|0;k=x;G=c[d>>2]|0;p=d+12|0;y=c[p>>2]|0;c[F>>2]=0;do{if(g>>>0>1){if((e[G+290>>1]|0)>>>0<g>>>0){k=21}else{break}i=j;return k|0}}while(0);if((c[G+16>>2]|0)>>>0<=f>>>0){_=16;i=j;return _|0}A=d+20|0;c[A>>2]=f;o=d+16|0;Q=c[o>>2]|0;if((Q&1|0)==0){D=c[d+4>>2]|0;E=c[D+48>>2]|0;D=c[D+52>>2]|0}else{E=65536;D=65536}b[C>>1]=0;b[H>>1]=0;b[m>>1]=0;b[M>>1]=0;R=G+532|0;Cd[c[(c[R>>2]|0)+156>>2]&63](G,0,f,K,L)|0;do{if((Q&512|0)==0){if((c[G+480>>2]|0)==0){break}b[m>>1]=b[G+226>>1]|0}}while(0);if((a[G+296|0]|0)==0){b[H>>1]=0;L=b[G+68>>1]|0;b[M>>1]=L;K=0}else{Cd[c[(c[R>>2]|0)+156>>2]&63](G,1,f,P,J)|0;L=b[M>>1]|0;K=b[H>>1]|0}H=d+52|0;c[H>>2]=b[C>>1]|0;m=e[m>>1]|0;J=d+56|0;c[J>>2]=m;C=d+176|0;c[C>>2]=K;K=d+180|0;c[K>>2]=L&65535;M=d+64|0;if((a[M]|0)==0){a[M]=1;c[d+60>>2]=m}m=G+128|0;L=c[(c[m>>2]|0)+52>>2]|0;do{if((L|0)==0){n=0;w=dS(G,f,d+28|0)|0}else{L=sd[c[c[L>>2]>>2]&127](c[L+4>>2]|0,f,k)|0;if((L|0)==0){_=c[k+4>>2]|0;c[d+28>>2]=_;bXbX(d+36|0,0,16)|0;if(h<<24>>24!=0){g=0;break}B=c[H>>2]|0;q=d+68|0;c[q>>2]=0-B;h=d+72|0;c[h>>2]=0;z=c[J>>2]|0;s=d+76|0;c[s>>2]=z-B;w=d+80|0;c[w>>2]=0;x=d+184|0;c[x>>2]=0;y=c[C>>2]|0;t=d+188|0;c[t>>2]=y;r=d+192|0;c[r>>2]=0;p=d+196|0;c[p>>2]=y-(c[K>>2]|0);y=(c[d>>2]|0)+128|0;A=c[(c[y>>2]|0)+52>>2]|0;do{if((A|0)!=0){if((c[(c[A>>2]|0)+8>>2]|0)==0){break}c[v>>2]=B;c[u+4>>2]=0;A=u+8|0;c[A>>2]=z;c[u+12>>2]=0;_=c[(c[y>>2]|0)+52>>2]|0;if((pd[c[(c[_>>2]|0)+8>>2]&63](c[_+4>>2]|0,f,0,u)|0)!=0){break}u=c[A>>2]|0;c[H>>2]=c[v>>2]<<16>>16;u=u&65535;c[J>>2]=u;c[C>>2]=0;c[K>>2]=0;if((a[M]|0)!=0){break}a[M]=1;c[d+60>>2]=u}}while(0);y=c[d>>2]|0;v=a[y+708|0]|0;if(v<<24>>24!=0){u=c[y+100>>2]|0;g=eS(c[y+104>>2]|0,v,c[y+712>>2]|0,f,I,4)|0;if((g|0)!=0){break}_=c[F>>2]|0;c[q>>2]=(c[q>>2]|0)+(c[_>>2]|0);c[h>>2]=(c[h>>2]|0)+(c[_+4>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[_+8>>2]|0);c[w>>2]=(c[w>>2]|0)+(c[_+12>>2]|0);c[x>>2]=(c[x>>2]|0)+(c[_+16>>2]|0);c[t>>2]=(c[t>>2]|0)+(c[_+20>>2]|0);c[r>>2]=(c[r>>2]|0)+(c[_+24>>2]|0);c[p>>2]=(c[p>>2]|0)+(c[_+28>>2]|0);lJ(u,_);c[F>>2]=0}if((c[o>>2]&1|0)!=0){g=0;break}c[q>>2]=aJ(c[q>>2]|0,E)|0;c[s>>2]=aJ(c[s>>2]|0,E)|0;c[t>>2]=aJ(c[t>>2]|0,D)|0;c[p>>2]=aJ(c[p>>2]|0,D)|0;g=0}}while(0);if(L<<24>>24!=0){l=120}}}while(0);if((l|0)==120){fd[c[G+516>>2]&511](d)}if(n<<24>>24==0){_=g;i=j;return _|0}_=c[(c[m>>2]|0)+52>>2]|0;hd[c[(c[_>>2]|0)+4>>2]&127](c[_+4>>2]|0,k);_=g;i=j;return _|0}function dS(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;h=c[a+732>>2]|0;do{if(h>>>0>e>>>0){j=c[a+736>>2]|0;if((b[a+210>>1]|0)!=0){e=e<<2;k=d[j+(e|1)|0]<<16|d[j+e|0]<<24|d[j+(e|2)|0]<<8|d[j+(e|3)|0];if((e+8|0)>(h<<2|0)){h=k;j=k;break}h=k;j=d[j+(e+5)|0]<<16|d[j+(e+4)|0]<<24|d[j+(e+6)|0]<<8|d[j+(e+7)|0];break}k=e<<1;e=(d[j+k|0]<<8&65535|d[j+(k|1)|0])&65535;if((k+4|0)>(h<<1|0)){j=e}else{j=(d[j+(k+2)|0]<<8&65535|d[j+(k+3)|0])&65535}h=e<<1;j=j<<1}else{h=0;j=0}}while(0);a=c[a+704>>2]|0;if(h>>>0>=a>>>0){k=0;j=0;e=f;c[e>>2]=j;i=g;return k|0}e=j>>>0<a>>>0?j:a;j=h;e=(e>>>0<h>>>0?a:e)-h|0;k=f;c[k>>2]=e;i=g;return j|0}function eS(a,d,f,g,h,j){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;k=i;l=i;i=i+8|0;s=l;n=i;i=i+8|0;o=n;m=i;i=i+8|0;t=m;p=c[a+28>>2]|0;c[m>>2]=0;if(d<<24>>24==0|(f|0)==0){I=6;i=k;return I|0}d=oJ(p,8,0,j,0,s)|0;q=c[l>>2]|0;if((q|0)!=0){I=q;i=k;return I|0}c[h>>2]=d;if((c[f+32>>2]|0)>>>0<=g>>>0){I=0;i=k;return I|0}r=f+36|0;I=c[r>>2]|0;u=c[I+(g<<2)>>2]|0;q=g+1|0;if((u|0)==(c[I+(q<<2)>>2]|0)){I=0;i=k;return I|0}I=PJ(a,u)|0;c[l>>2]=I;do{if((I|0)==0){I=c[r>>2]|0;I=MK(a,(c[I+(q<<2)>>2]|0)-(c[I+(g<<2)>>2]|0)|0)|0;c[l>>2]=I;if((I|0)!=0){break}r=a+32|0;v=(c[r>>2]|0)-(c[a>>2]|0)|0;q=oJ(p,4,0,c[f>>2]|0,0,s)|0;do{if((c[l>>2]|0)==0){g=oJ(p,4,0,c[f>>2]|0,0,s)|0;if((c[l>>2]|0)!=0){break}s=oJ(p,4,0,c[f>>2]|0,0,s)|0;if((c[l>>2]|0)!=0){break}u=(RK(a)|0)&65535;A=((RK(a)|0)&65535)+v|0;if((u&32768|0)==0){t=0}else{H=c[a>>2]|0;I=(c[r>>2]|0)-H|0;c[r>>2]=H+A;t=$R(a,t)|0;H=c[a>>2]|0;A=(c[r>>2]|0)-H|0;c[r>>2]=H+I}v=u&4095;a:do{if((v|0)!=0){w=f+24|0;x=f+28|0;u=(j|0)==0;z=0;D=0;b:while(1){y=(RK(a)|0)&65535;B=RK(a)|0;E=B&65535;do{if((E&32768|0)==0){C=E&4095;if(C>>>0>=(c[w>>2]|0)>>>0){break b}I=c[f>>2]|0;H=da(I,C)|0;$W(q|0,(c[x>>2]|0)+(H<<2)|0,I<<2|0)|0}else{if((c[f>>2]|0)==0){break}else{C=0}do{c[q+(C<<2)>>2]=(RK(a)|0)<<16>>16<<2;C=C+1|0;}while(C>>>0<(c[f>>2]|0)>>>0)}}while(0);do{if((E&16384|0)!=0){if((c[f>>2]|0)==0){break}else{C=0}do{c[g+(C<<2)>>2]=(RK(a)|0)<<16>>16<<2;C=C+1|0;F=c[f>>2]|0;}while(C>>>0<F>>>0);if((F|0)==0){break}else{C=0}do{c[s+(C<<2)>>2]=(RK(a)|0)<<16>>16<<2;C=C+1|0;}while(C>>>0<(c[f>>2]|0)>>>0)}}while(0);C=_R(f,B,q,g,s)|0;if((C|0)!=0){F=c[a>>2]|0;B=(c[r>>2]|0)-F|0;if((E&8192|0)==0){G=c[m>>2]|0;c[n>>2]=G;H=t}else{c[r>>2]=F+A;H=$R(a,o)|0;G=c[n>>2]|0;D=H}I=(G|0)==0;E=I?j:G;F=aS(a,E)|0;E=aS(a,E)|0;do{if(!((H|0)==0|(E|0)==0|(F|0)==0)){if((H|0)==-1){if(u){break}else{G=0}do{I=aJ(b[F+(G<<1)>>1]|0,C)|0;H=d+(G<<3)|0;c[H>>2]=(c[H>>2]|0)+I;H=aJ(b[E+(G<<1)>>1]|0,C)|0;I=d+(G<<3)+4|0;c[I>>2]=(c[I>>2]|0)+H;G=G+1|0;}while(G>>>0<j>>>0)}else{if(I){break}else{H=0}do{K=aJ(b[F+(H<<1)>>1]|0,C)|0;I=D+(H<<1)|0;J=d+(e[I>>1]<<3)|0;c[J>>2]=(c[J>>2]|0)+K;J=aJ(b[E+(H<<1)>>1]|0,C)|0;I=d+(e[I>>1]<<3)+4|0;c[I>>2]=(c[I>>2]|0)+J;H=H+1|0;}while(H>>>0<G>>>0)}}}while(0);if((D|0)==-1){D=-1}else{lJ(p,D);D=0}lJ(p,F);lJ(p,E);c[r>>2]=(c[a>>2]|0)+B}z=z+1|0;if(z>>>0<v>>>0){A=y+A|0}else{break a}}c[l>>2]=8}}while(0);lJ(p,q);lJ(p,g);lJ(p,s)}}while(0);PK(a);if((c[l>>2]|0)==0){j=0}else{break}i=k;return j|0}}while(0);lJ(p,d);c[h>>2]=0;K=c[l>>2]|0;i=k;return K|0}function fS(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=i;m=f+124|0;l=c[(c[f+8>>2]|0)+140>>2]|0;k=f+132|0;p=b[k>>1]|0;o=p&65535;j=f+140|0;n=c[j>>2]|0;r=c[n+(o+ -4<<3)>>2]|0;q=r+32&-64;do{if((q|0)!=(r|0)){q=q-r|0;if(p<<16>>16==0){break}else{p=0}do{r=n+(p<<3)|0;c[r>>2]=q+(c[r>>2]|0);p=p+1|0;}while(p>>>0<o>>>0)}}while(0);o=(l|0)!=0;if(o){$W(c[f+136>>2]|0,c[j>>2]|0,e[k>>1]<<3|0)|0}n=f+160|0;p=f+4|0;$W((c[n>>2]|0)+284|0,(c[p>>2]|0)+172|0,68)|0;if(g<<24>>24==0){c[(c[n>>2]|0)+220>>2]=c[(c[p>>2]|0)+48>>2];c[(c[n>>2]|0)+224>>2]=c[(c[p>>2]|0)+52>>2]}else{c[(c[n>>2]|0)+220>>2]=65536;c[(c[n>>2]|0)+224>>2]=65536;$W(c[f+144>>2]|0,c[j>>2]|0,e[k>>1]<<3|0)|0}r=(c[j>>2]|0)+((e[k>>1]|0)+ -3<<3)|0;c[r>>2]=(c[r>>2]|0)+32&-64;r=(c[j>>2]|0)+((e[k>>1]|0)+ -1<<3)+4|0;c[r>>2]=(c[r>>2]|0)+32&-64;if(o){o=c[(c[f+12>>2]|0)+64>>2]|0;r=c[n>>2]|0;c[r+460>>2]=c[r+392>>2];c[r+464>>2]=l;a[(c[n>>2]|0)+560|0]=g;$W((c[n>>2]|0)+144|0,m|0,36)|0;l=c[n>>2]|0;c[l+356>>2]=c[l+460>>2];c[l+364>>2]=c[l+464>>2];c[l+360>>2]=0;c[l+352>>2]=3;r=l+144|0;$W(l+36|0,r|0,36)|0;$W(l+72|0,r|0,36)|0;$W(l+108|0,r|0,36)|0;b[l+344>>1]=1;b[l+346>>1]=1;b[l+348>>1]=1;r=l+294|0;b[r>>1]=16384;b[l+296>>1]=0;r=e[r>>1]|e[r+2>>1]<<16;m=l+298|0;b[m>>1]=r;b[m+2>>1]=r>>>16;m=l+290|0;b[m>>1]=r;b[m+2>>1]=r>>>16;c[l+312>>2]=1;c[l+304>>2]=1;c[l+16>>2]=0;c[l+428>>2]=0;l=jd[c[(c[l>>2]|0)+688>>2]&511](l)|0;m=c[n>>2]|0;do{if((l|0)!=0){if((a[m+561|0]|0)==0){break}i=h;return l|0}}while(0);a[o]=c[m+340>>2]<<5|d[o]|4}if((a[f+65|0]|0)!=0){r=0;i=h;return r|0}p=e[k>>1]|0;q=c[j>>2]|0;n=q+(p+ -4<<3)|0;o=c[n+4>>2]|0;r=f+68|0;c[r>>2]=c[n>>2];c[r+4>>2]=o;r=q+(p+ -3<<3)|0;o=c[r+4>>2]|0;n=f+76|0;c[n>>2]=c[r>>2];c[n+4>>2]=o;n=q+(p+ -2<<3)|0;o=c[n+4>>2]|0;r=f+184|0;c[r>>2]=c[n>>2];c[r+4>>2]=o;p=q+(p+ -1<<3)|0;q=c[p+4>>2]|0;r=f+192|0;c[r>>2]=c[p>>2];c[r+4>>2]=q;r=0;i=h;return r|0}function gS(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;k=i;i=i+8|0;j=k;o=i;i=i+8|0;c[d>>2]=f;c[d+4>>2]=g;if((g|0)!=0){c[d+396>>2]=c[g+116>>2];c[d+400>>2]=c[g+120>>2];c[d+408>>2]=c[g+128>>2];c[d+412>>2]=c[g+132>>2];c[d+404>>2]=c[g+124>>2];c[d+416>>2]=c[g+136>>2];$W(d+244|0,g+72|0,40)|0;$W(d+216|0,g+44|0,28)|0;c[d+420>>2]=c[g+140>>2];c[d+424>>2]=c[g+144>>2];n=g+148|0;p=c[n+4>>2]|0;q=d+444|0;c[q>>2]=c[n>>2];c[q+4>>2]=p;q=g+156|0;p=c[q+4>>2]|0;n=d+452|0;c[n>>2]=c[q>>2];c[n+4>>2]=p;n=g+164|0;p=c[n+4>>2]|0;q=d+460|0;c[q>>2]=c[n>>2];c[q+4>>2]=p;$W(d+284|0,g+172|0,68)|0;c[d+380>>2]=c[g+240>>2];c[d+384>>2]=c[g+244>>2];b[d+468>>1]=b[g+248>>1]|0;c[d+472>>2]=c[g+252>>2];$W(d+180|0,g+256|0,36)|0;q=d+36|0;bXbX(B|0,0,376)|0;c[f+536>>2]=-1;c[f+540>>2]=-1;o=f+544|0;c[o>>2]=0;c[f+280>>2]=7;c[f+284>>2]=1;c[f+172>>2]=4;c[f+348>>2]=3932;c[f+276>>2]=2596864;N=c[f+104>>2]|0;w=f+100|0;M=c[w>>2]|0;D=y+4|0;Jd[c[c[D>>2]>>2]&63](u,0,0,M);J=u+72|0;c[J>>2]=N;E=u+80|0;t=u+76|0;K=u+92|0;r=u+93|0;bX}bX(g|0,0,e<<2|0)|0;m=0;i=h;return m|0}f=Fd[c[c[(c[b+488>>2]|0)+12>>2]>>2]&7](j,b,0,0,c[b+420>>2]|0,c[b+532>>2]|0,0,0,199)|0;if((f|0)!=0){m=f;i=h;return m|0}a[j+70|0]=1;a[j+68|0]=0;c[j+1364>>2]=c[b+404>>2];c[j+1368>>2]=c[b+408>>2];c[j+1372>>2]=c[b+412>>2];c[j+1488>>2]=c[b+548>>2];c[j+1492>>2]=c[b+544>>2];if((e|0)==0){m=0;i=h;return m|0}f=j+4|0;b=j+40|0;m=0;while(1){if((CS(j,m+d|0,k)|0)==0){l=c[(c[(c[f>>2]|0)+128>>2]|0)+52>>2]|0;if((l|0)!=0){hd[c[(c[l>>2]|0)+4>>2]&127](c[l+4>>2]|0,k)}c[g+(m<<2)>>2]=(ZI(c[b>>2]|0)|0)>>16}else{c[g+(m<<2)>>2]=0}m=m+1|0;if(m>>>0>=e>>>0){g=0;break}}i=h;return g|0}function yS(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a>>2]|0;f=c[e+552>>2]|0;e=mK(c[(c[e+96>>2]|0)+4>>2]|0,274744)|0;do{if(!((e|0)==0|(f|0)==0)){f=c[f>>2]|0;if((f|0)==0){break}e=jd[f&511](e)|0;_J(c[a>>2]|0,b);if((e|0)==0){i=d;return 0}Cd[c[e+4>>2]&63](c[a+40>>2]|0,c[a+16>>2]|0,c[a+20>>2]|0,0,0)|0;i=d;return 0}}while(0);_J(c[a>>2]|0,b);i=d;return 0}function zS(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(d>>>0>65535){j=0;i=f;return j|0}g=c[e+284>>2]|0;if((g|0)<=0){j=0;i=f;return j|0}e=c[e+288>>2]|0;h=0;a:while(1){j=c[e+(h<<2)>>2]|0;do{if((j|0)!=0){if((a[j]|0)!=(a[b]|0)){break}if((ZW(j|0)|0)!=(d|0)){break}if((vc(j|0,b|0,d|0)|0)==0){d=9;break a}}}while(0);h=h+1|0;if((h|0)>=(g|0)){h=0;d=9;break}}if((d|0)==9){i=f;return h|0}return 0}function AS(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a>>2]<<16|c[a+4>>2];b=c[b>>2]<<16|c[b+4>>2];if(a>>>0>b>>>0){a=1;i=d;return a|0}a=(a>>>0<b>>>0)<<31>>31;i=d;return a|0}function BS(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=i;i=i+8|0;b=CS(a,b,e)|0;if((b|0)!=0){i=d;return b|0}a=c[(c[(c[a+4>>2]|0)+128>>2]|0)+52>>2]|0;if((a|0)==0){i=d;return b|0}hd[c[(c[a>>2]|0)+4>>2]&127](c[a+4>>2]|0,e);i=d;return b|0}function CS(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;j=i;e=i;i=i+16|0;f=e;k=c[a+4>>2]|0;g=c[(c[k+128>>2]|0)+52>>2]|0;$W(a+1376|0,k+436|0,16)|0;m=k+452|0;l=c[m+4>>2]|0;h=a+1392|0;c[h>>2]=c[m>>2];c[h+4>>2]=l;h=(g|0)!=0;do{if(h){k=sd[c[c[g>>2]>>2]&127](c[g+4>>2]|0,b,d)|0;if((k|0)==0){k=c[d+4>>2]|0;d=c[d>>2]|0;break}else{m=k;i=j;return m|0}}else{m=c[(c[k+424>>2]|0)+(b<<2)>>2]|0;c[d>>2]=m;k=c[(c[k+428>>2]|0)+(b<<2)>>2]|0;c[d+4>>2]=k;d=m}}while(0);d=sd[c[a+1484>>2]&127](a,d,k)|0;if((d|0)!=0|h^1){m=d;i=j;return m|0}if((c[(c[g>>2]|0)+8>>2]|0)==0){m=0;i=j;return m|0}n=a+32|0;c[e>>2]=(ZI(c[n>>2]|0)|0)>>16;c[f+4>>2]=0;d=a+40|0;h=f+8|0;c[h>>2]=(ZI(c[d>>2]|0)|0)>>16;l=a+44|0;k=f+12|0;c[k>>2]=(ZI(c[l>>2]|0)|0)>>16;m=pd[c[(c[g>>2]|0)+8>>2]&63](c[g+4>>2]|0,b,0,f)|0;c[n>>2]=c[e>>2]<<16;c[d>>2]=c[h>>2]<<16;c[l>>2]=c[k>>2]<<16;i=j;return m|0}function DS(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;d=c[b+100>>2]|0;g=b+532|0;f=c[g>>2]|0;if((f|0)==0){i=e;return}h=c[f>>2]|0;b=c[f+4>>2]|0;j=f+24|0;lJ(d,c[j>>2]|0);c[j>>2]=0;if(h>>>0>1){bXbX(z|0,0,104)|0;u=f+104|0;F=c[u>>2]|0;e=c[o>>2]|0;bXbX(C|0,0,304)|0;o=e+492|0;c[o>>2]=jJ(z,12,u)|0;a:do{if((c[u>>2]|0)==0){E=c[e+104>>2]|0;A=c[c[m+4>>2]>>2]|0;c[B>>2]=0;Jd[A&63](t,0,0,z);c[t+72>>2]=E;A=t+80|0;c[A>>2]=0;y=t+76|0;c[y>>2]=0;D=t+84|0;a[D]=0;G=PJ(E,0)|0;c[B>>2]=G;do{if((G|0)==0){G=MK(E,17)|0;c[B>>2]=G;if((G|0)!=0){F=G;r=15;break}if((iX(c[E+32>>2]|0,281864,17)|0)!=0){c[B>>2]=2}PK(E);G=c[B>>2]|0;if((G|0)!=0){F=G;r=15;break}G=PJ(E,0)|0;c[B>>2]=G;if((G|0)!=0){F=G;r=15;break}G=c[E+4>>2]|0;if((c[E+20>>2]|0)==0){c[y>>2]=(c[E>>2]|0)+(c[E+8>>2]|0);c[A>>2]=G;a[D]=1;F=DK(E,G)|0;c[B>>2]=F;if((F|0)!=0){r=15;break}G=c[A>>2]|0}else{H=jJ(z,G,F)|0;c[y>>2]=H;F=c[B>>2]|0;if((F|0)!=0){r=15;break}F=CK(E,H,G)|0;c[B>>2]=F;if((F|0)!=0){r=15;break}c[A>>2]=G}z=c[y>>2]|0;c[t+4>>2]=z;c[C>>2]=z;A=t+8|0;c[A>>2]=z+G;c[u>>2]=0;y=t}else{F=G;r=15}}while(0);if((r|0)==15){if((a[D]|0)!=0){c[u>>2]=F;break}lJ(z,c[y>>2]|0);c[y>>2]=0;P=c[B>>2]|0;c[u>>2]=P;if((P|0)!=0){break}G=c[A>>2]|0;z=0;A=t+8|0;y=t}c[y>>2]=z;z=z+G|0;c[A>>2]=z;I=t+12|0;c[I>>2]=0;J=t+28|0;fd[c[J>>2]&511](t);L=c[y>>2]|0;b:do{if(L>>>0<z>>>0){F=t+32|0;E=t+56|0;D=v+8|0;B=e+132|0;K=t+68|0;H=t+64|0;C=e+132|0;A=e+164|0;G=e+460|0;c:while(1){M=a[L]|0;do{if(M<<24>>24==70&(L+25|0)>>>0<z>>>0){if((vc(L|0,280776,13)|0)!=0){r=30;break}fd[c[F>>2]&511](t);fd[c[J>>2]&511](t);L=c[y>>2]|0;d:do{if(L>>>0<z>>>0){M=L;while(1){if((a[M]|0)==107&(M+5|0)>>>0<z>>>0){if((vc(M|0,280792,5)|0)==0){break}}fd[c[F>>2]&511](t);M=c[I>>2]|0;if((M|0)!=0){r=51;break c}fd[c[J>>2]&511](t);M=c[y>>2]|0;if(M>>>0>=z>>>0){break d}}fd[c[F>>2]&511](t);hd[c[E>>2]&127](t,v);L=(c[D>>2]|0)==3?c[y>>2]|0:L}}while(0);c[y>>2]=L}else{r=30}}while(0);e:do{if((r|0)==30){r=0;if(!(M<<24>>24==47&(L+2|0)>>>0<z>>>0)){fd[c[F>>2]&511](t);M=c[I>>2]|0;if((M|0)==0){break}else{r=52;break c}}L=L+1|0;c[y>>2]=L;fd[c[F>>2]&511](t);M=c[I>>2]|0;if((M|0)!=0){r=52;break c}P=c[y>>2]|0;N=P-L|0;if((N+ -1|0)>>>0<21&P>>>0<z>>>0){O=0}else{break}f:while(1){M=280800+(O*36|0)|0;P=c[M>>2]|0;do{if((P|0)!=0){if((a[L]|0)!=(a[P]|0)){break}if((N|0)!=(ZW(P|0)|0)){break}if((iX(L|0,P|0,N|0)|0)==0){break f}}}while(0);O=O+1|0;if((O|0)>=20){break e}}L=c[280808+(O*36|0)>>2]|0;do{if((O+ -15|0)>>>0<4){hd[c[280812+(O*36|0)>>2]&127](e,t);M=c[I>>2]|0}else{N=c[280804+(O*36|0)>>2]|0;if((N|0)==5){c[x>>2]=G}else if((N|0)==2){c[x>>2]=A}else if((N|0)==3){c[x>>2]=C}else{c[x>>2]=B}if((L+ -8|0)>>>0<2){M=Cd[c[K>>2]&63](t,M,w,0,0)|0;break}else{M=Cd[c[H>>2]&63](t,M,w,0,0)|0;break}}}while(0);c[I>>2]=M;if((M|0)!=0){r=51;break c}}}while(0);fd[c[J>>2]&511](t);L=c[y>>2]|0;if(L>>>0>=z>>>0){break b}}if((r|0)==51){c[u>>2]=M;break a}else if((r|0)==52){c[u>>2]=M;break a}}}while(0);P=c[I>>2]|0;c[u>>2]=P;if((P|0)!=0){break}if((a[e+433|0]|0)!=42){c[u>>2]=2;break}v=e+416|0;c[v>>2]=c[t+144>>2];w=t+212|0;if((c[w>>2]|0)==0){c[u>>2]=3}c[w>>2]=0;c[e+396>>2]=c[t+200>>2];c[e+424>>2]=c[t+224>>2];c[e+428>>2]=c[t+228>>2];O=t+148|0;c[e+400>>2]=c[O>>2];P=t+172|0;w=e+420|0;c[w>>2]=c[P>>2];c[O>>2]=0;c[P>>2]=0;if((c[e+368>>2]|0)!=1){break}z=t+108|0;if((c[z>>2]|0)>0){A=e+384|0;y=e+388|0;x=t+116|0;B=0;D=0;C=0;do{b[(c[A>>2]|0)+(B<<1)>>1]=0;c[(c[y>>2]|0)+(B<<2)>>2]=280768;E=c[(c[x>>2]|0)+(B<<2)>>2]|0;g:do{if((E|0)!=0){J=c[v>>2]|0;if((J|0)<=0){break}G=c[w>>2]|0;I=0;while(1){F=c[G+(I<<2)>>2]|0;H=I+1|0;if((Qc(E|0,F|0)|0)==0){break}if((H|0)<(J|0)){I=H}else{break g}}b[(c[A>>2]|0)+(B<<1)>>1]=I;c[(c[y>>2]|0)+(B<<2)>>2]=F;if((Qc(280768,F|0)|0)==0){break}D=(B|0)<(D|0)?D:B+1|0;C=(B|0)<(C|0)?B:C}}while(0);B=B+1|0;}while((B|0)<(c[z>>2]|0))}else{D=0;C=0}c[e+376>>2]=C;c[e+380>>2]=D;c[e+372>>2]=c[t+88>>2]}}while(0);v=c[t+140>>2]|0;if((v|0)!=0){fd[v&511](t+92|0)}v=c[t+248>>2]|0;if((v|0)!=0){fd[v&511](t+200|0)}v=c[t+196>>2]|0;if((v|0)!=0){fd[v&511](t+148|0)}v=c[t+300>>2]|0;if((v|0)!=0){fd[v&511](t+252|0)}if((a[t+84|0]|0)==0){P=t+76|0;lJ(c[t+16>>2]|0,c[P>>2]|0);c[P>>2]=0}fd[c[t+24>>2]&511](t);t=c[u>>2]|0;if((t|0)!=0|(f|0)<0){P=t;i=d;return P|0}if((f|0)>0){P=6;i=d;return P|0}c[e+16>>2]=c[e+416>>2];c[e+36>>2]=0;c[e+4>>2]=0;f=e+8|0;c[f>>2]=(a[e+156|0]|0)==0?2577:2581;w=c[e+144>>2]|0;u=e+20|0;c[u>>2]=w;t=e+24|0;c[t>>2]=280760;h:do{if((w|0)==0){r=c[e+364>>2]|0;if((r|0)==0){break}c[u>>2]=r}else{v=c[e+140>>2]|0;if((v|0)==0){break}u=a[v]|0;if(u<<24>>24==0){break}i:while(1){while(1){x=a[w]|0;if(u<<24>>24==x<<24>>24){r=87;break}if(u<<24>>24==45|u<<24>>24==32){break}if(x<<24>>24==0){break i}else if(!(x<<24>>24==45|x<<24>>24==32)){break h}if(u<<24>>24==0){break h}else{w=w+1|0}}if((r|0)==87){r=0;w=w+1|0}v=v+1|0;u=a[v]|0;if(u<<24>>24==0){break h}}c[t>>2]=v}}while(0);c[e+28>>2]=0;c[e+32>>2]=0;c[p>>2]=1;c[s+4>>2]=c[o>>2];c[s+8>>2]=c[e+496>>2];if((g|0)!=0){c[p>>2]=17;c[s+24>>2]=g;c[s+28>>2]=h}h=MJ(c[(c[q>>2]|0)+4>>2]|0,s,0,n)|0;if((h|0)!=0){P=h;i=d;return P|0}VJ(c[(c[n>>2]|0)+88>>2]|0)|0;h=c[n>>2]|0;$W(e+52|0,h+52|0,16)|0;b[e+68>>1]=b[h+68>>1]|0;b[e+70>>1]=b[h+70>>1]|0;b[e+72>>1]=b[h+72>>1]|0;b[e+74>>1]=b[h+74>>1]|0;b[e+76>>1]=b[h+76>>1]|0;b[e+78>>1]=b[h+78>>1]|0;b[e+80>>1]=b[e+158>>1]|0;b[e+82>>1]=b[e+160>>1]|0;n=e+12|0;g=(c[e+152>>2]|0)!=0|0;c[n>>2]=g;if((c[h+12>>2]&2|0)!=0){c[n>>2]=g|2}if((c[h+8>>2]&32|0)!=0){c[f>>2]=c[f>>2]|32}if((l|0)==0|(m|0)==0){P=0;i=d;return P|0}l=c[m+20>>2]|0;c[k>>2]=e;g=j+8|0;b[g>>1]=3;m=j+10|0;b[m>>1]=1;h=j+4|0;c[h>>2]=1970170211;k=l+12|0;n=eK(c[k>>2]|0,0,j,0)|0;if(!((n|0)==0|(n|0)==163)){P=n;i=d;return P|0}b[g>>1]=7;e=c[e+368>>2]|0;if((e|0)==4){c[h>>2]=1094992453;b[m>>1]=1;l=l+4|0}else if((e|0)==2){c[h>>2]=1094995778;b[m>>1]=0}else if((e|0)==3){c[h>>2]=1818326065;b[m>>1]=3;l=k}else if((e|0)==1){c[h>>2]=1094992451;b[m>>1]=2;l=l+8|0}else{P=0;i=d;return P|0}e=c[l>>2]|0;if((e|0)==0){P=0;i=d;return P|0}P=eK(e,0,j,0)|0;i=d;return P|0}function BT(a){a=a|0;var b=0,d=0,e=0;b=i;if((a|0)==0){i=b;return}d=c[a+100>>2]|0;e=c[a+500>>2]|0;if((e|0)!=0){SJ(e)|0}e=a+132|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+136|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+140|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+144|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+148|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+428|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+424|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+420|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+396|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+400|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+384|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+388|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+364|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+492|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+556|0;lJ(d,c[e>>2]|0);c[e>>2]=0;c[a+552>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;i=b;return}function CT(a){a=a|0;var b=0,d=0,e=0;d=i;e=i;i=i+8|0;b=RJ(c[(c[a>>2]|0)+500>>2]|0,e)|0;e=c[e>>2]|0;c[a+44>>2]=e;hK(e)|0;i=d;return b|0}function DT(a){a=a|0;var b=0,d=0;b=i;d=a+44|0;if((TJ((c[(c[a>>2]|0)+500>>2]|0)+108|0,c[d>>2]|0)|0)==0){i=b;return}VJ(c[d>>2]|0)|0;c[d>>2]=0;i=b;return}function ET(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=i;i=i+8|0;f=c[a+4>>2]|0;d=c[f+500>>2]|0;if((c[f+84>>2]|0)==0){c[a+160>>2]=c[d+84>>2];f=0;i=b;return f|0}else{f=DJ(d,e)|0;c[a+160>>2]=c[e>>2];i=b;return f|0}return 0}function FT(a){a=a|0;var b=0;b=i;EJ(c[a+160>>2]|0);i=b;return}function GT(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;h=c[(c[(c[a+4>>2]|0)+96>>2]|0)+40>>2]|0;g=a+160|0;j=c[g>>2]|0;AJ(j);c[j+152>>2]=0;bX(j+24|0,0,40)|0;bX;return Y|0}else{c[j>>2]=282208;Y=0;i=k;return Y|0}}}while(0);if((g|0)==0){i=k;return Y|0}n=c[n>>2]|0;o=c[m>>2]|0;p=c[l>>2]|0;if((p|0)!=0){m=p+160|0;if((c[m>>2]|0)!=0){NK(o,m)}Y=p+168|0;lJ(n,c[Y>>2]|0);c[Y>>2]=0;lJ(n,p);c[l>>2]=0}Y=g+32|0;lJ(n,c[Y>>2]|0);c[Y>>2]=0;c[g+28>>2]=0;Y=c[j>>2]|0;i=k;return Y|0}function WT(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;if((a|0)==0){i=b;return}d=c[a+100>>2]|0;g=c[a+104>>2]|0;f=a+132|0;e=c[f>>2]|0;if((e|0)!=0){h=e+160|0;if((c[h>>2]|0)!=0){NK(g,h)}h=e+168|0;lJ(d,c[h>>2]|0);c[h>>2]=0;lJ(d,e);c[f>>2]=0}h=a+32|0;lJ(d,c[h>>2]|0);c[h>>2]=0;c[a+28>>2]=0;i=b;return}function XT(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;k=i;i=i+8|0;n=k;l=c[g>>2]|0;c[k>>2]=0;if((l|0)==0){c[k>>2]=6;t=6;i=j;return t|0}g=c[l+132>>2]|0;do{if((g|0)!=0){if((c[l+16>>2]|0)>>>0<=h>>>0){break}if((h|0)==0){h=d[g+106|0]|0}else{h=h+ -1|0}o=(b[g+4>>1]|0)==768;m=g+160|0;p=c[m>>2]|0;r=(da(o?6:4,h)|0)+(o?148:118)|0;l=(d[p+(r|1)|0]<<8&65535|d[p+r|0])<<16>>16;h=f+80|0;c[h>>2]=l;q=p+(r+2)|0;if(o){o=d[p+(r+4)|0]<<16|d[p+(r+5)|0]<<24|d[p+(r+3)|0]<<8|d[q]}else{o=(d[p+(r+3)|0]<<8&65535|d[q])&65535}r=g+8|0;if(o>>>0>=(c[r>>2]|0)>>>0){c[k>>2]=3;t=3;i=j;return t|0}p=c[m>>2]|0;s=c[(c[f+4>>2]|0)+100>>2]|0;q=l+7>>3;l=f+84|0;c[l>>2]=q;t=e[g+96>>1]|0;m=f+76|0;c[m>>2]=t;a[f+94|0]=1;u=(da(q,t)|0)+o|0;if(u>>>0>=(c[r>>2]|0)>>>0){c[k>>2]=3;u=3;i=j;return u|0}n=oJ(s,t,0,q,0,n)|0;c[f+88>>2]=n;r=c[k>>2]|0;if((r|0)!=0){u=r;i=j;return u|0}a:do{if((q|0)>0){p=p+o|0;while(1){u=c[m>>2]|0;o=p+u|0;if((u|0)>0){r=p;p=n;while(1){a[p]=a[r]|0;r=r+1|0;if(r>>>0<o>>>0){p=p+(c[l>>2]|0)|0}else{p=r;break}}}q=q+ -1|0;if((q|0)<=0){break a}n=n+1|0}}}while(0);c[(c[f+156>>2]|0)+4>>2]=1;c[f+100>>2]=0;s=e[g+80>>1]|0;c[f+104>>2]=s;c[f+72>>2]=1651078259;r=c[h>>2]<<6;t=f+24|0;c[t>>2]=r;u=c[m>>2]<<6;c[f+28>>2]=u;c[f+40>>2]=r;c[f+32>>2]=0;c[f+36>>2]=s<<6;XJ(t,u);u=c[k>>2]|0;i=j;return u|0}}while(0);c[k>>2]=6;u=6;i=j;return u|0}function YT(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0,j=0;g=i;d=c[a>>2]|0;f=c[d+132>>2]|0;h=c[b+16>>2]|0;j=c[b+8>>2]|0;if((h|0)!=0){j=((da(j,h)|0)+36|0)/72|0}h=j+32>>6;b=c[b>>2]|0;if((b|0)==0){b=(c[(c[d+32>>2]|0)+12>>2]|0)+32>>6}else if((b|0)==1){b=e[f+96>>1]|0}else{j=7;i=g;return j|0}b=(h|0)==(b|0);if(!b){j=b?0:23;i=g;return j|0}YJ(d,0);j=f+80|0;c[a+24>>2]=(e[j>>1]|0)<<6;c[a+28>>2]=(e[j>>1]|0)-(e[f+96>>1]|0)<<6;c[a+36>>2]=(e[f+102>>1]|0)<<6;j=0;i=g;return j|0}function ZT(a,b){a=a|0;b=b|0;var d=0,f=0;b=i;f=c[a>>2]|0;d=c[f+132>>2]|0;YJ(f,0);f=d+80|0;c[a+24>>2]=(e[f>>1]|0)<<6;c[a+28>>2]=(e[f>>1]|0)-(e[d+96>>1]|0)<<6;c[a+36>>2]=(e[d+102>>1]|0)<<6;i=b;return 0}function _T(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;f=a+4|0;g=PJ(d,c[a>>2]|0)|0;do{if((g|0)==0){g=ZK(d,282264,f)|0;if((g|0)!=0){break}g=b[f>>1]|0;if(!(g<<16>>16==768|g<<16>>16==512)){g=2;break}f=a+8|0;if((c[f>>2]|0)>>>0<(g<<16>>16==768?148:118)>>>0){g=2;break}if(g<<16>>16==512){bXbX(k|0,0,28)|0;c[k>>2]=d;c[h+4>>2]=c[n+16>>2];c[h+12>>2]=0;c[h+8>>2]=c[n+20>>2];c[h+16>>2]=0;c[h+20>>2]=g>>>16&15;c[h+24>>2]=0;c[j>>2]=d;n=d+116|0;o=b+24|0;c[o>>2]=c[n>>2];kJ(c[b+28>>2]|0);p=c[o>>2]|0;if((p|0)==0){r=d+16|0;p=jJ(c[d+100>>2]|0,(c[r>>2]|0)+28|0,q)|0;q=c[q>>2]|0;if((q|0)!=0){c[o>>2]=p;z=q;i=e;return z|0}c[p>>2]=d;z=c[r>>2]|0;r=p+4|0;c[r>>2]=z;y=p+28|0;c[p+8>>2]=y;q=c[d+92>>2]|0;bX(y|0,127,z|0)|0;if((cK(d,1970170211)|0)==0){v=0;while(1){w=c[(c[283296+(v<<2)>>2]|0)+4>>2]|0;do{if((w|0)!=0){y=c[w>>2]|0;if((y|0)==0){break}u=v&255;do{x=KJ(d,y)|0;c[t>>2]=x;do{if((x|0)!=0){if(x>>>0>=(c[r>>2]|0)>>>0){break}x=p+(x+28)|0;if((a[x]|0)!=127){break}a[x]=u}}while(0);x=w+4|0;z=fK(d,y,s)|0;y=c[t>>2]|0;a:do{if((y|0)!=0){do{if(z>>>0>(c[x>>2]|0)>>>0){break a}do{if(y>>>0<(c[r>>2]|0)>>>0){y=p+(y+28)|0;if((a[y]|0)!=127){break}a[y]=u}}while(0);z=fK(d,z,s)|0;y=c[t>>2]|0;}while((y|0)!=0)}}while(0);w=w+8|0;y=c[w>>2]|0;}while((y|0)!=0)}}while(0);v=v+1|0;if((v|0)==4){t=48;break}}do{s=KJ(d,t)|0;do{if((s|0)!=0){if(s>>>0>=(c[r>>2]|0)>>>0){break}z=p+(s+28)|0;a[z]=a[z]|-128}}while(0);t=t+1|0;}while(t>>>0<58)}t=c[r>>2]|0;if((t|0)>0){s=0;do{u=p+(s+28)|0;v=a[u]|0;if((v&127)==127){a[u]=v&-128|2;t=c[r>>2]|0}s=s+1|0;}while((s|0)<(t|0))}dK(d,q)|0;c[o>>2]=p;c[n>>2]=p;c[d+120>>2]=341;o=c[o>>2]|0}else{o=p}c[l>>2]=0;if((c[o+4>>2]|0)>>>0<=f>>>0){c[l>>2]=6;z=6;i=e;return z|0}n=c[283296+((a[(c[o+8>>2]|0)+f|0]&127)<<2)>>2]|0;d=c[o+12+(c[n>>2]<<2)>>2]|0;b:do{if((d|0)==0){d=c[(c[o>>2]|0)+100>>2]|0;m=jJ(d,c[n+8>>2]|0,m)|0;p=c[l>>2]|0;if((p|0)!=0){z=p;i=e;return z|0}c[m>>2]=n;p=c[n+12>>2]|0;do{if((p|0)!=0){z=Bd[p&255](m,c[o>>2]|0)|0;c[l>>2]=z;if((z|0)==0){break}n=c[n+20>>2]|0;if((n|0)!=0){fd[n&511](m)}lJ(d,m);m=0;break b}}while(0);c[o+12+(c[n>>2]<<2)>>2]=m}else{m=d}}while(0);l=c[l>>2]|0;if((l|0)!=0){z=l;i=e;return z|0}c[b+156>>2]=m;d=c[m>>2]|0;l=c[d+16>>2]|0;if((l|0)==0){$W(m+4|0,k|0,28)|0}else{hd[l&127](m,h);d=c[m>>2]|0}g=g&-2054|2049;k=c[d+24>>2]|0;do{if((k|0)!=0){b=Bd[k&255](b+32|0,m)|0;if((b|0)==0){break}i=e;return b|0}}while(0);z=vU(j,h,f,g,0)|0;i=e;return z|0}function sU(a){a=a|0;var b=0,d=0;b=i;d=c[c[a+4>>2]>>2]|0;bXbX(G|0,0,40)|0;c[G+40>>2]=e;c[G+44>>2]=e;b[G>>1]=b[q>>1]|0;F=aJ(b[q>>1]|0,l)|0;c[G+8>>2]=F;c[G+4>>2]=F;c[e+16>>2]=e;a[(c[j>>2]|0)+13|0]=a[e+1|0]|0}e=e+52|0;if(e>>>0>=m>>>0){break e}}i=f;return r|0}}while(0);h=c[d>>2]|0;G=c[k>>2]|0;g=h+(G*48|0)|0;if((G|0)>0){d=h}else{G=0;i=f;return G|0}do{j=d+40|0;e=c[j>>2]|0;if((e|0)!=0){do{c[e+12>>2]=d;e=c[e+16>>2]|0;}while((e|0)!=(c[j>>2]|0))}d=d+48|0;}while(d>>>0<g>>>0);while(1){e=h+40|0;k=c[e>>2]|0;d=h+24|0;j=h+28|0;l=k;m=0;n=0;do{p=(a[k]&1^1)&255;m=(p^1)+m|0;n=p+n|0;p=k+24|0;o=c[p>>2]|0;if((o|0)==0){o=0}else{o=(c[o+12>>2]|0)!=(h|0)|0}q=k+20|0;do{if(!((c[q>>2]|0)==0&o<<24>>24==0)){o=o<<24>>24!=0;t=c[(o?p:q)>>2]|0;p=c[(o?j:d)>>2]|0;do{if((p|0)==0){p=c[t+12>>2]|0}else{r=(b[h>>1]|0)-(b[p>>1]|0)|0;F=b[k+2>>1]|0;s=F<<16>>16;G=b[t+2>>1]|0;q=G<<16>>16;if(((F<<16>>16>G<<16>>16?s-q|0:q-s|0)|0)>=(((r|0)<0?0-r|0:r)|0)){break}p=c[t+12>>2]|0}}while(0);if(o){c[j>>2]=p;l=p+12|0;a[l]=a[l]|2;l=c[e>>2]|0;break}else{c[d>>2]=p;break}}}while(0);k=c[k+16>>2]|0;}while((k|0)!=(l|0));a[h+12|0]=((m|0)<1|(m|0)<(n|0))&1^1;do{if((c[j>>2]|0)!=0){if((c[d>>2]|0)==0){break}c[j>>2]=0}}while(0);h=h+48|0;if(h>>>0>=g>>>0){r=0;break}}i=f;return r|0}function zU(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;g=i;s=c[a+32>>2]|0;k=c[a+28>>2]|0;f=s+(k*40|0)|0;h=c[a+48+(d*28|0)+20>>2]|0;p=c[a+48+(d*28|0)+12>>2]|0;j=(d|0)==0;a=j?64:128;if(!((p|0)>0&(k|0)>0)){i=g;return}k=(d|0)==1;l=h+8|0;m=h+4|0;o=p+ -1|0;d=h+(o*48|0)|0;n=h+(o*48|0)+8|0;o=h+(o*48|0)+4|0;q=p*48|0;p=(q|0)/48|0;r=(q|0)<432;q=(q|0)>0;do{y=e[s>>1]|0;if(!((y&a|0)!=0|(y&768|0)==256)){if(k){v=s+8|0;t=s+14|0}else{v=s+4|0;t=s+12|0}u=b[t>>1]|0;t=u<<16>>16;v=c[v>>2]|0;x=b[h>>1]|0;a:do{if(((x<<16>>16)-t|0)>-1){t=(c[l>>2]|0)+v-(c[m>>2]|0)|0}else{if((t-(b[d>>1]|0)|0)>-1){t=(c[n>>2]|0)+v-(c[o>>2]|0)|0;break}b:do{if(r){c:do{if(q){v=0;while(1){w=v+1|0;if(x<<16>>16>=u<<16>>16){break c}x=b[h+(w*48|0)>>1]|0;if((w|0)<(p|0)){v=w}else{v=w;break}}}else{v=0}}while(0);if(x<<16>>16!=u<<16>>16){break}t=c[h+(v*48|0)+8>>2]|0;break a}else{y=p;v=0;while(1){while(1){if((v|0)>=(y|0)){break b}w=y+v>>1;x=b[h+(w*48|0)>>1]|0;if(u<<16>>16<x<<16>>16){y=w}else{break}}if(u<<16>>16>x<<16>>16){v=w+1|0}else{break}}t=c[h+(w*48|0)+8>>2]|0;break a}}while(0);w=v+ -1|0;u=h+(w*48|0)|0;x=h+(w*48|0)+16|0;y=c[x>>2]|0;if((y|0)==0){w=h+(w*48|0)+8|0;v=bJ((c[h+(v*48|0)+8>>2]|0)-(c[w>>2]|0)|0,(b[h+(v*48|0)>>1]|0)-(b[u>>1]|0)|0)|0;c[x>>2]=v}else{v=y;w=h+(w*48|0)+8|0}y=c[w>>2]|0;t=(aJ(t-(b[u>>1]|0)|0,v)|0)+y|0}}while(0);if(j){c[s+16>>2]=t}else{c[s+20>>2]=t}b[s>>1]=e[s>>1]|a}s=s+40|0;}while(s>>>0<f>>>0);i=g;return}function AU(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;d=i;g=c[a+32>>2]|0;h=c[a+28>>2]|0;f=g+(h*40|0)|0;k=c[a+44>>2]|0;l=c[a+40>>2]|0;a=k+(l<<2)|0;b=(b|0)==0;j=(h|0)>0;do{if(b){if(j){j=g}else{j=64;break}while(1){c[j+24>>2]=c[j+16>>2];c[j+28>>2]=c[j+4>>2];j=j+40|0;if(j>>>0<f>>>0){}else{j=64;break}}}else{if(j){j=g}else{j=128;break}while(1){c[j+24>>2]=c[j+20>>2];c[j+28>>2]=c[j+8>>2];j=j+40|0;if(j>>>0<f>>>0){}else{j=128;break}}}}while(0);if((l|0)>0){do{o=c[k>>2]|0;l=c[o+36>>2]|0;a:do{if(o>>>0<=l>>>0){m=o;while(1){n=m+40|0;if(((e[m>>1]|0)&j|0)!=0){p=m;break}if(n>>>0>l>>>0){break a}else{m=n}}b:while(1){q=p>>>0<l>>>0;if(q){r=p+40|0;if(((e[p+40>>1]|0)&j|0)!=0){p=r;continue}}else{r=p+40|0}if(r>>>0>l>>>0){break}else{s=r}while(1){t=s+40|0;if(((e[s>>1]|0)&j|0)!=0){break}if(t>>>0>l>>>0){break b}else{s=t}}BU(r,s+ -40|0,p,s);p=s}if((p|0)!=(m|0)){if(q){BU(r,l,p,m)}if(m>>>0<=g>>>0){break}BU(o,m+ -40|0,p,m);break}s=c[m+24>>2]|0;t=c[m+28>>2]|0;p=s-t|0;if((s|0)==(t|0)){break}if(o>>>0<m>>>0){do{c[o+24>>2]=(c[o+28>>2]|0)+p;o=o+40|0;}while(o>>>0<m>>>0)}if(n>>>0>l>>>0){break}while(1){c[m+64>>2]=(c[m+68>>2]|0)+p;o=n+40|0;if(o>>>0>l>>>0){break}else{m=n;n=o}}}}while(0);k=k+4|0;}while(k>>>0<a>>>0)}h=(h|0)>0;if(b){if(!h){i=d;return}do{c[g+16>>2]=c[g+24>>2];g=g+40|0;}while(g>>>0<f>>>0);i=d;return}else{if(!h){i=d;return}do{c[g+20>>2]=c[g+24>>2];g=g+40|0;}while(g>>>0<f>>>0);i=d;return}}function BU(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;f=c[d+28>>2]|0;h=c[e+28>>2]|0;j=d+24|0;d=(c[j>>2]|0)-f|0;k=e+24|0;e=(c[k>>2]|0)-h|0;if(a>>>0>b>>>0){i=g;return}if((f|0)==(h|0)){do{h=c[a+28>>2]|0;c[a+24>>2]=((h|0)>(f|0)?e:d)+h;a=a+40|0;}while(a>>>0<=b>>>0);i=g;return}l=h-f|0;if((f|0)<(h|0)){do{m=c[a+28>>2]|0;do{if((m|0)>(f|0)){if((m|0)<(h|0)){n=c[j>>2]|0;m=(_I(m-f|0,(c[k>>2]|0)-n|0,l)|0)+n|0;break}else{m=m+e|0;break}}else{m=m+d|0}}while(0);c[a+24>>2]=m;a=a+40|0;}while(a>>>0<=b>>>0);i=g;return}else{do{m=c[a+28>>2]|0;do{if((m|0)>(h|0)){if((m|0)<(f|0)){n=c[j>>2]|0;m=(_I(m-f|0,(c[k>>2]|0)-n|0,l)|0)+n|0;break}else{m=m+d|0;break}}else{m=m+e|0}}while(0);c[a+24>>2]=m;a=a+40|0;}while(a>>>0<=b>>>0);i=g;return}}function CU(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;n=c[b+108>>2]|0;l=(n&4|0)==0;a:do{if(l){do{if((a[d+12|0]&1)!=0){if((a[e+12|0]&1)==0){break}m=(g|0)==1?55:49;break a}}while(0);m=(g|0)==1?61:59}else{m=64}}while(0);k=c[e+4>>2]|0;h=c[d+4>>2]|0;g=DU(n,c[b+112>>2]|0,g,k-h|0)|0;f=((h+k|0)/2|0)+f+((g|0)/-2|0)|0;p=f&63;b=f+g&63;n=64-p|0;o=64-b|0;do{if((p|0)==0|(b|0)==0){m=0}else{if((g|0)<=(m|0)){if((b|0)>=(g|0)){m=0;break}m=n>>>0>b>>>0?0-b|0:n;break}if(m>>>0<64){if(!(p>>>0<m>>>0&n>>>0<m>>>0&b>>>0<m>>>0&o>>>0<m>>>0)){m=0;break}}p=(g|0)%64|0;if((p|0)<32){if(!((n|0)>(p|0)&(b|0)>(p|0))){m=0;break}}else{p=64-m|0}o=m-n|0;n=n-p|0;m=m-b|0;b=b-p|0;n=(o|0)>(n|0)?n:0-o|0;m=(b|0)>(m|0)?m:0-b|0;m=(((n|0)<0?0-n|0:n)|0)>(((m|0)<0?0-m|0:m)|0)?m:n}}while(0);do{if(l){if((m|0)>14){m=14;break}m=(m|0)<-14?-14:m}}while(0);l=m+f|0;if((h|0)<(k|0)){c[d+8>>2]=l;c[e+8>>2]=l+g;i=j;return m|0}else{c[d+8>>2]=l+g;c[e+8>>2]=l;i=j;return m|0}return 0}function DU(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;j=b+40|0;h=(d|0)==1;if((a&4|0)==0){q=e;i=f;return q|0}b=(e|0)<0?0-e|0:e;if(h){if((a&2|0)==0){g=5}else{g=15}}else{if((a&1|0)==0){g=5}else{g=15}}a:do{if((g|0)==5){do{if((c[j+(d*396|0)+8>>2]|0)!=0){g=c[j+(d*396|0)+16>>2]|0;a=b-g|0;if((((a|0)<0?0-a|0:a)|0)>=40){break}b=(g|0)<48?48:g;break a}}while(0);if((b|0)<54){b=((54-b|0)/2|0)+b|0;break}if((b|0)>=192){break}g=b&63;a=b&-64;if(g>>>0<10){break}if(g>>>0<22){b=a|10;break}else{b=(g+ -42|0)>>>0<12?a|54:b;break}}else if((g|0)==15){l=c[j+(d*396|0)+8>>2]|0;do{if((l|0)>0){k=98;n=0;o=b;while(1){q=c[j+(d*396|0)+12+(n*12|0)+4>>2]|0;m=b-q|0;p=(m|0)<0?0-m|0:m;m=(p|0)<(k|0);o=m?q:o;n=n+1|0;if((n|0)<(l|0)){k=m?p:k}else{break}}d=o+32&-64;if((o|0)<=(b|0)){g=19;break}b=(d+ -48|0)<(b|0)?o:b}else{d=b+32&-64;o=b;g=19}}while(0);if((g|0)==19){b=(d|48|0)>(b|0)?o:b}if(h){if((b|0)<=63){b=64;break}b=b+16&-64;break}if((a&8|0)!=0){if((b|0)<64){b=64;break}b=b+32&-64;break}if((b|0)<48){b=b+64>>1;break}if((b|0)<128){b=b+22&-64;break}else{b=b+32&-64;break}}}while(0);q=(e|0)>-1?b:0-b|0;i=f;return q|0}function EU(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;l=i;i=i+8|0;n=l;c[l>>2]=0;k=d+12|0;p=c[k>>2]|0;m=d+16|0;o=c[m>>2]|0;do{if((p|0)<(o|0)){m=c[d+20>>2]|0}else{if((o|0)>44739241){c[l>>2]=64;p=64;o=0;g=h;c[g>>2]=o;i=j;return p|0}q=(o>>2)+4|0;p=q+o|0;p=(q|0)<0|(p|0)>44739242?44739242:p;q=d+20|0;n=oJ(g,48,o,p,c[q>>2]|0,n)|0;c[q>>2]=n;o=c[l>>2]|0;if((o|0)==0){c[m>>2]=p;m=n;p=c[k>>2]|0;break}else{q=o;g=0;p=h;c[p>>2]=g;i=j;return q|0}}}while(0);n=m+(p*48|0)|0;d=d+24|0;a:do{if((p|0)>0){while(1){o=n+ -48|0;g=b[o>>1]|0;if((g|0)<(e|0)){break a}if((g|0)==(e|0)){if((c[d>>2]|0)==(f|0)){break a}}$W(n|0,o|0,48)|0;if(o>>>0>m>>>0){n=o}else{n=o;break}}}}while(0);c[k>>2]=(c[k>>2]|0)+1;bX(n|0,0,48)|0;b[n>>1]=e;a[n+13|0]=f;q=c[l>>2]|0;g=n;p=h;c[p>>2]=g;i=j;return q|0}function FU(d,f){d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;g=i;n=i;i=i+8|0;m=n;o=i;i=i+32|0;k=i;i=i+16|0;l=c[d>>2]|0;s=c[d+44>>2]|0;r=c[d+40>>2]|0;p=s+(r<<2)|0;bX(o|0,0,31)|0;bXbX(k|0,0,124)|0;c[k>>2]=h;k=d+48|0;c[k>>2]=0;h=d+444|0;c[h>>2]=0;f=KJ(e,f)|0;a:do{if((f|0)!=0){if((YI(e,f,1)|0)!=0){break}f=c[e+84>>2]|0;if((b[f+110>>1]|0)<1){break}bX(n|0,0,832)|0;c[m+36>>2]=c[d+36>>2];c[m+12>>2]=65536;c[m+8>>2]=65536;c[m+20>>2]=0;c[m+16>>2]=0;c[m+4>>2]=e;c[m+24>>2]=0;c[m+28>>2]=0;c[j+112>>2]=m;c[j+104>>2]=0;if((xU(j,f+108|0)|0)!=0){break}e=0;do{if((FU(j,e)|0)!=0){break a}HU(j,e);f=c[j+48+(e*28|0)+8>>2]|0;p=c[j+48+(e*28|0)>>2]|0;n=f+(p*52|0)|0;do{if((p|0)>0){m=0;do{o=c[f+20>>2]|0;do{if((o|0)!=0){if(!((c[o+20>>2]|0)==(f|0)&o>>>0>f>>>0)){break}o=(b[f+2>>1]|0)-(b[o+2>>1]|0)|0;if(m>>>0>=16){break}c[d+40+(e*396|0)+12+(m*12|0)>>2]=(o|0)<0?0-o|0:o;m=m+1|0}}while(0);f=f+52|0;}while(f>>>0<n>>>0);if(m>>>0>1){p=1}else{break}do{o=p;do{f=d+40+(e*396|0)+12+(o*12|0)|0;o=o+ -1|0;n=d+40+(e*396|0)+12+(o*12|0)|0;if((c[f>>2]|0)>(c[n>>2]|0)){break}$W(l|0,f|0,12)|0;$W(f|0,n|0,12)|0;$W(n|0,l|0,12)|0;}while((o|0)!=0);p=p+1|0;}while(p>>>0<m>>>0)}else{m=0}}while(0);c[d+40+(e*396|0)+8>>2]=m;e=e+1|0;}while((e|0)<2)}}while(0);l=d+36|0;if((c[k>>2]|0)==0){k=((c[l>>2]|0)*50|0)/2048|0}else{k=c[d+52>>2]|0}c[d+244>>2]=(k|0)/5|0;c[d+248>>2]=k;a[d+252|0]=0;if((c[h>>2]|0)==0){o=((c[l>>2]|0)*50|0)/2048|0;f=(o|0)/5|0;p=d+640|0;c[p>>2]=f;p=d+644|0;c[p>>2]=o;p=d+648|0;a[p]=0;uU(j);i=g;return}else{o=c[d+448>>2]|0;f=(o|0)/5|0;p=d+640|0;c[p>>2]=f;p=d+644|0;c[p>>2]=o;p=d+648|0;a[p]=0;uU(j);i=g;return}}function HU(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;f=i;h=c[d+48+(e*28|0)+8>>2]|0;l=c[d+48+(e*28|0)>>2]|0;g=h+(l*52|0)|0;k=c[(c[d+112>>2]|0)+36>>2]|0;j=k<<3;j=(j+2047|0)>>>0<4095?1:(j|0)/2048|0;k=(k*6e3|0)/2048|0;l=(l|0)>0;if(!l){i=f;return}n=d+48+(e*28|0)+24|0;o=h;do{p=o+1|0;t=a[p]|0;a:do{if((t<<24>>24|0)==(c[n>>2]|0)){if((c[o+40>>2]|0)==(c[o+44>>2]|0)){break}q=o+2|0;m=o+4|0;e=o+6|0;r=o+32|0;d=o+20|0;s=h;while(1){do{if((t<<24>>24|0)==(0-(a[s+1|0]|0)|0)){u=b[s+2>>1]|0;t=b[q>>1]|0;if(u<<16>>16<=t<<16>>16){break}t=(u<<16>>16)-(t<<16>>16)|0;x=b[m>>1]|0;u=b[e>>1]|0;w=b[s+4>>1]|0;v=b[s+6>>1]|0;u=((u<<16>>16>v<<16>>16?v:u)<<16>>16)-((x<<16>>16<w<<16>>16?w:x)<<16>>16)|0;if((u|0)<(j|0)){break}t=((k|0)/(u|0)|0)+((t|0)<0?0-t|0:t)|0;if((t|0)<(c[r>>2]|0)){c[r>>2]=t;c[d>>2]=s}u=s+32|0;if((t|0)>=(c[u>>2]|0)){break}c[u>>2]=t;c[s+20>>2]=o}}while(0);s=s+52|0;if(s>>>0>=g>>>0){break a}t=a[p]|0}}}while(0);o=o+52|0;}while(o>>>0<g>>>0);if(!l){i=f;return}do{j=h+20|0;k=c[j>>2]|0;do{if((k|0)!=0){k=k+20|0;if((c[k>>2]|0)==(h|0)){break}c[j>>2]=0;c[h+24>>2]=c[k>>2]}}while(0);h=h+52|0;}while(h>>>0<g>>>0);i=f;return}function IU(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;k=i;i=i+8|0;j=k;h=FU(d,e)|0;if((h|0)!=0){A=h;i=f;return A|0}HU(d,e);o=d+48+(e*28|0)|0;m=c[d>>2]|0;q=(c[d+112>>2]|0)+40|0;s=c[d+48+(e*28|0)+8>>2]|0;r=c[o>>2]|0;l=s+(r*52|0)|0;h=d+48+(e*28|0)+12|0;c[h>>2]=0;p=(e|0)==0;t=d+12|0;n=c[(p?d+4|0:t)>>2]|0;if(p){p=bJ(64,c[t>>2]|0)|0}else{p=0}q=aJ(c[q+(e*396|0)+204>>2]|0,n)|0;q=bJ((q|0)>16?16:q,n)|0;a:do{if((r|0)>0){r=p*3|0;e=d+48+(e*28|0)+20|0;b:while(1){d=b[s+8>>1]|0;c:do{if((d|0)>=(p|0)){if((c[s+24>>2]|0)!=0){if((d<<1|0)<(r|0)){break}}x=c[h>>2]|0;d:do{if((x|0)>0){v=c[e>>2]|0;t=s+2|0;d=b[t>>1]|0;w=d<<16>>16;u=s+1|0;y=0;while(1){z=v+(y*48|0)|0;A=w-(b[z>>1]|0)|0;if((((A|0)<0?0-A|0:A)|0)<(q|0)){A=a[v+(y*48|0)+13|0]|0;if(A<<24>>24==(a[u]|0)){break}}y=y+1|0;if((y|0)>=(x|0)){g=17;break d}}if((z|0)==0){break}c[s+16>>2]=c[v+(y*48|0)+40>>2];A=v+(y*48|0)+44|0;c[(c[A>>2]|0)+16>>2]=s;c[A>>2]=s;break c}else{u=s+1|0;d=b[s+2>>1]|0;g=17}}while(0);if((g|0)==17){g=0;A=a[u]|0;t=s+2|0}d=EU(o,d<<16>>16,A<<24>>24,m,j)|0;if((d|0)!=0){break b}A=c[k>>2]|0;bX(A|0,0,40)|0;c[A+40>>2]=s;c[A+44>>2]=s;b[A>>1]=b[t>>1]|0;a[A+13|0]=a[s+1|0]|0;z=aJ(b[t>>1]|0,n)|0;c[A+8>>2]=z;c[A+4>>2]=z;c[s+16>>2]=s}}while(0);s=s+52|0;if(s>>>0>=l>>>0){break a}}i=f;return d|0}else{e=d+48+(e*28|0)+20|0}}while(0);l=c[e>>2]|0;A=c[h>>2]|0;h=l+(A*48|0)|0;if((A|0)>0){k=l}else{A=0;i=f;return A|0}do{j=k+40|0;m=c[j>>2]|0;if((m|0)!=0){do{c[m+12>>2]=k;m=c[m+16>>2]|0;}while((m|0)!=(c[j>>2]|0))}k=k+48|0;}while(k>>>0<h>>>0);while(1){j=l+40|0;n=c[j>>2]|0;k=l+24|0;m=l+28|0;o=n;p=0;q=0;do{e=(a[n]&1^1)&255;p=(e^1)+p|0;q=e+q|0;e=n+24|0;r=c[e>>2]|0;do{if((r|0)==0){d=0}else{r=c[r+12>>2]|0;if((r|0)==0){d=0;break}d=(r|0)!=(l|0)|0}}while(0);s=n+20|0;r=c[s>>2]|0;if((r|0)==0){if(d<<24>>24!=0){g=33}}else{if(!((c[r+12>>2]|0)==0&d<<24>>24==0)){g=33}}do{if((g|0)==33){g=0;r=d<<24>>24!=0;e=c[(r?e:s)>>2]|0;t=c[(r?m:k)>>2]|0;do{if((t|0)==0){t=c[e+12>>2]|0}else{s=(b[l>>1]|0)-(b[t>>1]|0)|0;d=(b[n+2>>1]|0)-(b[e+2>>1]|0)|0;if((((d|0)<0?0-d|0:d)|0)>=(((s|0)<0?0-s|0:s)|0)){break}t=c[e+12>>2]|0}}while(0);if(r){c[m>>2]=t;o=t+12|0;a[o]=a[o]|2;o=c[j>>2]|0;break}else{c[k>>2]=t;break}}}while(0);n=c[n+16>>2]|0;}while((n|0)!=(o|0));a[l+12|0]=((p|0)<1|(p|0)<(q|0))&1^1;do{if((c[m>>2]|0)!=0){if((c[k>>2]|0)==0){break}c[m>>2]=0}}while(0);l=l+48|0;if(l>>>0>=h>>>0){d=0;break}}i=f;return d|0}function JU(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 j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=i;m=d+40|0;l=(e|0)==1;if((b&4|0)==0){r=f;i=j;return r|0}if((a[m+(e*396|0)+212|0]|0)!=0){r=f;i=j;return r|0}d=(f|0)<0?0-f|0:f;do{if(l){if((b&2|0)!=0){k=19;break}if(!(l&(h&2|0)!=0&(d|0)<192)){k=7}}else{if((b&1|0)==0){k=7}else{k=19}}}while(0);do{if((k|0)==7){if((g&1|0)==0){d=(d|0)<56?56:d}else{d=(d|0)<80?64:d}if((c[m+(e*396|0)+8>>2]|0)==0){break}k=c[m+(e*396|0)+16>>2]|0;b=d-k|0;if((((b|0)<0?0-b|0:b)|0)<40){d=(k|0)<48?48:k;break}if((d|0)>=192){d=d+32&-64;break}b=d&63;k=d&-64;if(b>>>0<10){break}if(b>>>0<32){d=k|10;break}else{d=b>>>0<54?k|54:d;break}}else if((k|0)==19){h=c[m+(e*396|0)+8>>2]|0;do{if((h|0)>0){g=98;o=0;p=d;while(1){r=c[m+(e*396|0)+12+(o*12|0)+4>>2]|0;n=d-r|0;q=(n|0)<0?0-n|0:n;n=(q|0)<(g|0);p=n?r:p;o=o+1|0;if((o|0)<(h|0)){g=n?q:g}else{break}}e=p+32&-64;if((p|0)<=(d|0)){k=23;break}e=(e+ -48|0)<(d|0)?p:d}else{e=d+32&-64;p=d;k=23}}while(0);if((k|0)==23){e=(e|48|0)>(d|0)?p:d}if(l){if((e|0)<=63){d=64;break}d=e+16&-64;break}if((b&8|0)!=0){if((e|0)<64){d=64;break}d=e+32&-64;break}if((e|0)<48){d=e+64>>1;break}if((e|0)>=128){d=e+32&-64;break}k=e+22&-64;b=k-d|0;if((((b|0)<0?0-b|0:b)|0)<=15){d=k;break}if((d|0)>=48){break}d=d+64>>1}}while(0);r=(f|0)>-1?d:0-d|0;i=j;return r|0}function KU(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;k=(e|0)==0;if(k){g=d+12|0;h=d+4|0}else{g=d+16|0;h=d+8|0}j=c[h>>2]|0;g=c[g>>2]|0;l=b+40+(e*396|0)+388|0;h=b+40+(e*396|0)+392|0;do{if((c[l>>2]|0)==(j|0)){if((c[h>>2]|0)!=(g|0)){break}i=f;return}}while(0);c[l>>2]=j;c[h>>2]=g;h=b+652|0;l=c[h>>2]|0;a:do{if((l|0)!=0){n=0;while(1){m=n+1|0;if((c[b+656+(n*28|0)+24>>2]&4|0)!=0){break}if(m>>>0<l>>>0){n=m}else{break a}}l=aJ(c[b+656+(n*28|0)+12>>2]|0,c[d+8>>2]|0)|0;d=l+40&-64;if(!((l|0)!=(d|0)&(e|0)==1)){break}j=_I(j,d,l)|0}}while(0);c[b+40+(e*396|0)>>2]=j;c[b+40+(e*396|0)+4>>2]=g;if(k){c[b+8>>2]=j;c[b+16>>2]=g}else{c[b+12>>2]=j;c[b+20>>2]=g}k=b+40+(e*396|0)+8|0;if((c[k>>2]|0)!=0){d=0;do{o=aJ(c[b+40+(e*396|0)+12+(d*12|0)>>2]|0,j)|0;c[b+40+(e*396|0)+12+(d*12|0)+4>>2]=o;c[b+40+(e*396|0)+12+(d*12|0)+8>>2]=o;d=d+1|0;}while(d>>>0<(c[k>>2]|0)>>>0)}a[b+40+(e*396|0)+212|0]=(aJ(c[b+40+(e*396|0)+208>>2]|0,j)|0)<40|0;if((e|0)!=1){i=f;return}if((c[h>>2]|0)==0){i=f;return}else{d=0}do{o=b+656+(d*28|0)|0;n=(aJ(c[o>>2]|0,j)|0)+g|0;l=b+656+(d*28|0)+4|0;c[l>>2]=n;e=b+656+(d*28|0)+8|0;c[e>>2]=n;n=b+656+(d*28|0)+12|0;m=(aJ(c[n>>2]|0,j)|0)+g|0;c[b+656+(d*28|0)+16>>2]=m;k=b+656+(d*28|0)+20|0;c[k>>2]=m;m=b+656+(d*28|0)+24|0;c[m>>2]=c[m>>2]&-2;if(((aJ((c[o>>2]|0)-(c[n>>2]|0)|0,j)|0)+48|0)>>>0<97){o=(c[n>>2]|0)-(c[o>>2]|0)|0;n=(o|0)<0;o=aJ(n?0-o|0:o,j)|0;do{if((o|0)<32){o=0}else{if((o|0)<64){o=o+16&-32;break}else{o=o+32&-64;break}}}while(0);l=(c[l>>2]|0)+32&-64;c[e>>2]=l;c[k>>2]=l+(n?0-o|0:o);c[m>>2]=c[m>>2]|1}d=d+1|0;}while(d>>>0<(c[h>>2]|0)>>>0);i=f;return}function LU(a,b){a=a|0;b=b|0;b=c[a>>2]|0;c[a+16>>2]=c[(c[b+140>>2]|0)+52>>2];c[a+20>>2]=c[b+144>>2];i=i;return 0}function MU(a){a=a|0;c[a+20>>2]=0;c[a+16>>2]=0;i=i;return}function NU(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0,j=0,k=0;f=i;g=c[a+20>>2]|0;a=c[a+16>>2]|0;if((a|0)==0){k=0;i=f;return k|0}else{j=0}while(1){h=(j+a|0)>>>1;k=c[g+(h<<3)>>2]|0;if((k|0)==(b|0)){break}k=k>>>0>b>>>0;a=k?h:a;j=k?j:h+1|0;if(j>>>0>=a>>>0){g=0;d=5;break}}if((d|0)==5){i=f;return g|0}k=(e[g+(h<<3)+4>>1]|0)+1&65535;i=f;return k|0}function OU(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;g=c[a+20>>2]|0;h=(c[d>>2]|0)+1|0;a=c[a+16>>2]|0;a:do{if((a|0)==0){k=0;e=5}else{l=a;k=0;while(1){j=(k+l|0)>>>1;m=c[g+(j<<3)>>2]|0;if((h|0)==(m|0)){break}m=h>>>0<m>>>0;l=m?j:l;k=m?k:j+1|0;if(k>>>0>=l>>>0){e=5;break a}}g=(b[g+(j<<3)+4>>1]|0)+1<<16>>16}}while(0);do{if((e|0)==5){if(k>>>0>=a>>>0){h=0;g=0;break}h=c[g+(k<<3)>>2]|0;g=(b[g+(k<<3)+4>>1]|0)+1<<16>>16}}while(0);c[d>>2]=h;i=f;return g&65535|0}function PU(a,b){a=a|0;b=b|0;var c=0;c=i;a=uJ(286872,b)|0;i=c;return a|0}function QU(d,f,g,h,j){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,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;j=i;r=i;i=i+8|0;s=r;D=i;i=i+8|0;C=D;A=i;i=i+8|0;B=A;t=i;i=i+8|0;q=t;g=i;i=i+8|0;m=g;v=i;i=i+16|0;w=v;k=i;i=i+16|0;h=k;n=i;i=i+16|0;o=n;c[g>>2]=0;u=f+100|0;l=c[u>>2]|0;x=PJ(d,0)|0;c[g>>2]=x;if((x|0)!=0){Q=x;i=j;return Q|0}c[v>>2]=1;c[w+4>>2]=1;c[w+8>>2]=0;c[w+12>>2]=8;c[t>>2]=0;v=jJ(l,8252,q)|0;a:do{if((c[t>>2]|0)==0){z=v+36|0;c[z>>2]=w;y=v+12|0;b[y>>1]=32767;c[v+8248>>2]=l;w=v+8232|0;bX(w|0,0,12)|0;x=v+8244|0;c[x>>2]=l;E=c[d+28>>2]|0;c[A>>2]=0;I=oJ(E,1,0,1024,0,B)|0;b:do{if((c[A>>2]|0)==0){c[D>>2]=40;a[I]=0;K=0;H=1024;L=0;M=0;F=1;N=0;J=0;G=256;c:while(1){d:while(1){e:do{if((J|0)==0){J=K;p=7}else{if(!N){L=KK(d,I+M|0,H-M|0)|0;K=L+M|0;M=0}f:do{if((J|0)<(K|0)){O=a[I+J|0]|0;if((O<<24>>24|0)==(G|0)){break e}else{N=J}while(1){if(O<<24>>24==10|O<<24>>24==13){G=O;break d}N=N+1|0;if((N|0)>=(K|0)){break f}O=a[I+N|0]|0}}}while(0);if((L|0)==0){break b}M=K-J|0;$W(I|0,I+J|0,M|0)|0;L=M;N=0;p=7}}while(0);g:do{if((p|0)==7){while(1){p=0;if(!N){L=KK(d,I+M|0,H-M|0)|0;J=L+M|0;M=0}h:do{if((J|0)>0){K=a[I]|0;if((K<<24>>24|0)==(G|0)){K=J;J=0;break g}else{N=0}while(1){if(K<<24>>24==10|K<<24>>24==13){G=K;K=J;J=0;break d}N=N+1|0;if((N|0)>=(J|0)){break h}K=a[I+N|0]|0}}}while(0);if((L|0)==0){break b}if(H>>>0>65535){break c}p=H<<1;I=oJ(E,1,H,p,I,B)|0;if((c[A>>2]|0)==0){M=H;H=p;N=0;p=7}else{break b}}}}while(0);N=1;J=J+1|0;G=256}O=I+N|0;a[O]=0;P=I+J|0;Q=a[P]|0;do{if(!(Q<<24>>24==26|Q<<24>>24==35)){if((N|0)<=(J|0)){break}Q=N-J|0;J=Cd[c[D>>2]&63](P,Q,F,C,v)|0;c[A>>2]=J;if((J|0)==-1){J=Cd[c[D>>2]&63](P,Q,F,C,v)|0;c[A>>2]=J}if((J|0)!=0){break b}}}while(0);F=F+1|0;a[O]=G;J=N+1|0;if(G<<24>>24==10){N=1;G=13;continue}else if(G<<24>>24==13){N=1;G=10;continue}else{N=1;G=256;continue}}c[A>>2]=6}}while(0);lJ(E,I);Q=c[A>>2]|0;c[t>>2]=Q;p=v+32|0;i:do{if((Q|0)==0){d=c[p>>2]|0;do{if((d|0)!=0){if((c[d+28>>2]|0)!=8){b[d+32>>1]=b[d+4>>1]|0;d=c[p>>2]|0}if((c[v+4>>2]|0)!=((c[d+64>>2]|0)+(c[d+52>>2]|0)|0)){b[d+16516>>1]=1}if((c[c[z>>2]>>2]|0)==0){break}d=c[p>>2]|0;if((c[d+52>>2]|0)==0){if((c[d+64>>2]|0)==0){break}}z=b[y>>1]|0;B=(b[v+16>>1]|0)-(z<<16>>16)|0;A=d+4|0;if((B|0)!=(e[A>>1]|0)){b[A>>1]=B;b[(c[p>>2]|0)+16516>>1]=1;z=b[y>>1]|0;d=c[p>>2]|0}y=d+8|0;if((b[y>>1]|0)!=z<<16>>16){b[y>>1]=z;b[(c[p>>2]|0)+16516>>1]=1;d=c[p>>2]|0}A=d+12|0;y=v+18|0;z=b[y>>1]|0;if((b[A>>1]|0)==z<<16>>16){C=d}else{b[A>>1]=z;b[(c[p>>2]|0)+16516>>1]=1;C=c[p>>2]|0}B=C+14|0;z=b[B>>1]|0;d=v+20|0;A=b[d>>1]|0;if(z<<16>>16==A<<16>>16){A=C}else{b[B>>1]=A;b[(c[p>>2]|0)+10>>1]=0-(b[d>>1]|0)<<16>>16;b[(c[p>>2]|0)+16516>>1]=1;A=c[p>>2]|0;z=b[d>>1]|0}y=(b[y>>1]|0)+(z<<16>>16)|0;d=A+6|0;if((y|0)==(e[d>>1]|0)){break}b[d>>1]=y}}while(0);y=c[v>>2]|0;if((y&1|0)!=0){if((y&32|0)==0){c[t>>2]=185;p=66;break a}else{c[t>>2]=186;p=66;break a}}y=c[p>>2]|0;do{if((y|0)==0){if((c[t>>2]|0)!=0){break}c[t>>2]=3}else{d=c[y+88>>2]|0;if((d|0)==0){break}Q=oJ(c[y+16520>>2]|0,1,d,d+1|0,c[y+84>>2]|0,q)|0;c[(c[p>>2]|0)+84>>2]=Q;if((c[t>>2]|0)!=0){break i}Q=c[p>>2]|0;a[(c[Q+84>>2]|0)+(c[Q+88>>2]|0)|0]=0}}while(0);q=c[p>>2]|0;p=68;break a}}while(0);VU(c[p>>2]|0);lJ(l,c[p>>2]|0);c[p>>2]=0;p=66}else{p=66}}while(0);do{if((p|0)==66){if((v|0)==0){q=0;break}q=0;x=v+8244|0;w=v+8232|0;p=68}}while(0);if((p|0)==68){x=c[x>>2]|0;if((x|0)!=0){lJ(x,c[w>>2]|0);bXbXbX(p|0,0,12)|0;l=q+12|0;c[l>>2]=F;m=m+28|0;c[m>>2]=c[o+12>>2];o=(ZW(n|0)|0)+1|0;if(o>>>0>255){break}$W(s|0,n|0,o|0)|0;o=YU(q,285592,r,o)|0;n=(o|0)==0;b:do{if(n){if((c[q+8>>2]|0)!=15){break}switch(a[c[(c[p>>2]|0)+44>>2]|0]|0){case 99:case 67:{c[m>>2]=32;break b};case 109:case 77:{c[m>>2]=16;break b};case 112:case 80:{c[m>>2]=8;break b};default:{break b}}}}while(0);l=c[l>>2]|0;if((l|0)!=0){lJ(l,c[p>>2]|0);bX(p|0,0,16)|0}c[k>>2]=o;if(!n){F=k;F=c[F>>2]|0;i=g;return F|0}c[j>>2]=c[j>>2]|2;F=k;F=c[F>>2]|0;i=g;return F|0}}while(0);c[k>>2]=6;F=k;F=c[F>>2]|0;i=g;return F|0}}while(0);c[k>>2]=3;F=k;F=c[F>>2]|0;i=g;return F|0}if((iX(e|0,285240,4)|0)!=0){if((iX(e|0,285248,5)|0)!=0){c[k>>2]=3;F=k;F=c[F>>2]|0;i=g;return F|0}if((v&8|0)==0){c[k>>2]=179;F=k;F=c[F>>2]|0;i=g;return F|0}c[w+40>>2]=b[w+12>>1]|0;c[E>>2]=b[(c[l>>2]|0)+12>>1]|0;Lb(D|0,285256,B|0)|0;F=_U(c[l>>2]|0,285264,D)|0;c[k>>2]=F;if((F|0)!=0){F=k;F=c[F>>2]|0;i=g;return F|0}F=c[l>>2]|0;c[F+44>>2]=b[F+14>>1]|0;c[C>>2]=b[(c[l>>2]|0)+14>>1]|0;Lb(D|0,285256,A|0)|0;F=_U(c[l>>2]|0,285280,D)|0;c[k>>2]=F;if((F|0)!=0){F=k;F=c[F>>2]|0;i=g;return F|0}b[(c[l>>2]|0)+16516>>1]=1;c[h>>2]=42;c[k>>2]=-1;F=k;F=c[F>>2]|0;i=g;return F|0}if((v&2|0)==0){c[k>>2]=177;F=k;F=c[F>>2]|0;i=g;return F|0}n=j+8232|0;F=YU(n,285208,e,f)|0;c[k>>2]=F;if((F|0)!=0){F=k;F=c[F>>2]|0;i=g;return F|0}r=c[(c[n>>2]|0)+4>>2]|0;c:do{if((r|0)==0){s=0}else{q=a[r]|0;p=285544;do{if(q<<24>>24==48){F=a[r+1|0]|0;if(!(F<<24>>24==88|F<<24>>24==120)){q=48;o=10;p=285544;break}r=r+2|0;q=a[r]|0;o=16;p=285512}else if(q<<24>>24==0){s=0;break c}else{o=10}}while(0);q=q<<24>>24;if((d[p+(q>>3)|0]&1<<(q&7)|0)==0){s=0;break}else{s=0}while(1){s=da(s,o)|0;s=(d[285344+q|0]|0)+s|0;r=r+1|0;q=a[r]|0;if((1<<(q&7)&d[p+(q>>3)|0]|0)==0){break}else{}}}}while(0);c[(c[l>>2]|0)+16>>2]=s;r=c[(c[n>>2]|0)+8>>2]|0;d:do{if((r|0)==0){s=0}else{q=a[r]|0;p=285544;do{if(q<<24>>24==0){s=0;break d}else if(q<<24>>24==48){F=a[r+1|0]|0;if(!(F<<24>>24==88|F<<24>>24==120)){q=48;o=10;p=285544;break}r=r+2|0;q=a[r]|0;o=16;p=285512}else{o=10}}while(0);q=q<<24>>24;if((d[p+(q>>3)|0]&1<<(q&7)|0)==0){s=0;break}else{s=0}while(1){s=da(s,o)|0;s=(d[285344+q|0]|0)+s|0;r=r+1|0;q=a[r]|0;if((1<<(q&7)&d[p+(q>>3)|0]|0)==0){break}else{}}}}while(0);c[(c[l>>2]|0)+20>>2]=s;q=c[(c[n>>2]|0)+12>>2]|0;e:do{if((q|0)==0){r=0}else{r=a[q]|0;p=285544;do{if(r<<24>>24==0){r=0;break e}else if(r<<24>>24==48){F=a[q+1|0]|0;if(!(F<<24>>24==88|F<<24>>24==120)){r=48;o=10;p=285544;break}q=q+2|0;r=a[q]|0;o=16;p=285512}else{o=10}}while(0);s=r<<24>>24;if((d[p+(s>>3)|0]&1<<(s&7)|0)==0){r=0;break}else{r=0}while(1){r=da(r,o)|0;r=(d[285344+s|0]|0)+r|0;q=q+1|0;s=a[q]|0;if((1<<(s&7)&d[p+(s>>3)|0]|0)==0){break}else{}}}}while(0);c[(c[l>>2]|0)+24>>2]=r;do{if((c[j+8240>>2]|0)==5){o=c[(c[n>>2]|0)+16>>2]|0;do{if((o|0)==0){n=0}else{n=a[o]|0;if(n<<24>>24==0){n=0;break}n=n<<24>>24==45;q=n?o+1|0:o;r=a[q]|0;p=285544;do{if(r<<24>>24==48){F=a[q+1|0]|0;if(!(F<<24>>24==88|F<<24>>24==120)){r=48;o=10;p=285544;break}q=q+2|0;r=a[q]|0;o=16;p=285512}else{o=10}}while(0);r=r<<24>>24;if((d[p+(r>>3)|0]&1<<(r&7)|0)==0){s=0}else{s=0;while(1){s=da(s,o)|0;q=q+1|0;s=(d[285344+r|0]|0)+s<<16>>16;r=a[q]|0;if((1<<(r&7)&d[p+(r>>3)|0]|0)==0){break}else{}}}n=(n?0-s|0:s)&65535}}while(0);b[(c[l>>2]|0)+16518>>1]=n;l=(c[l>>2]|0)+16518|0;n=b[l>>1]|0;if(n<<16>>16==0){p=0;m=139}else{p=0;o=0;q=n;while(1){p=(q&1)==0?p:o;q=(q&65535)>>>1;if(q<<16>>16==0){break}else{o=o+1<<16>>16}}if((p&65535)>3){o=8}else{m=139}}if((m|0)==139){o=1<<(p&65535)&65535}if((n&65535|0)==(o|0)){break}b[l>>1]=o<<1}else{b[(c[l>>2]|0)+16518>>1]=1}}while(0);c[j>>2]=c[j>>2]|4;F=k;F=c[F>>2]|0;i=g;return F|0}function XU(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;h=i;k=i;i=i+8|0;n=k;g=i;i=i+8|0;m=g;j=e+12|0;p=c[j>>2]|0;o=a[b]|0;if(o<<24>>24==0){q=0}else{l=o;r=b;q=0;while(1){r=r+1|0;q=(q*31|0)+(l<<24>>24)|0;l=a[r]|0;if(l<<24>>24==0){break}else{}}}l=e+4|0;t=c[l>>2]|0;s=p+(((q>>>0)%(t>>>0)|0)<<2)|0;r=c[s>>2]|0;a:do{if((r|0)!=0){q=p+(t+ -1<<2)|0;do{r=c[r>>2]|0;if((a[r]|0)==o<<24>>24){if((Qc(r|0,b|0)|0)==0){break a}}r=s+ -4|0;s=r>>>0<p>>>0?q:r;r=c[s>>2]|0;}while((r|0)!=0)}}while(0);c[g>>2]=0;o=c[s>>2]|0;if((o|0)!=0){c[o+4>>2]=d;u=g;u=c[u>>2]|0;i=h;return u|0}m=jJ(f,8,m)|0;if((c[g>>2]|0)!=0){u=g;u=c[u>>2]|0;i=h;return u|0}c[s>>2]=m;c[m>>2]=b;c[m+4>>2]=d;d=e+8|0;b=c[d>>2]|0;do{if((b|0)>=(c[e>>2]|0)){b=c[j>>2]|0;m=c[l>>2]|0;c[k>>2]=0;u=m<<1;c[l>>2]=u;c[e>>2]=(u|0)/3|0;c[j>>2]=oJ(f,4,0,u,0,n)|0;e=c[k>>2]|0;if((e|0)!=0){c[g>>2]=e;u=g;u=c[u>>2]|0;i=h;return u|0}if((m|0)>0){e=b;o=0;while(1){n=c[e>>2]|0;if((n|0)!=0){q=c[n>>2]|0;r=c[j>>2]|0;p=a[q]|0;if(p<<24>>24==0){t=0}else{u=p;s=q;t=0;while(1){s=s+1|0;t=(t*31|0)+(u<<24>>24)|0;u=a[s]|0;if(u<<24>>24==0){break}else{}}}s=c[l>>2]|0;u=r+(((t>>>0)%(s>>>0)|0)<<2)|0;t=c[u>>2]|0;b:do{if((t|0)!=0){s=r+(s+ -1<<2)|0;do{t=c[t>>2]|0;if((a[t]|0)==p<<24>>24){if((Qc(t|0,q|0)|0)==0){break b}}t=u+ -4|0;u=t>>>0<r>>>0?s:t;t=c[u>>2]|0;}while((t|0)!=0)}}while(0);c[u>>2]=n}o=o+1|0;if((o|0)<(m|0)){e=e+4|0}else{break}}}lJ(f,b);u=c[k>>2]|0;c[g>>2]=u;if((u|0)==0){b=c[d>>2]|0;break}else{u=g;u=c[u>>2]|0;i=h;return u|0}}}while(0);c[d>>2]=b+1;u=g;u=c[u>>2]|0;i=h;return u|0}function YU(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;h=i;k=i;i=i+8|0;l=k;o=i;i=i+8|0;p=o;r=i;i=i+32|0;n=r;j=b+8|0;c[j>>2]=0;if((g|0)==0){u=0;i=h;return u|0}s=a[f]|0;if(s<<24>>24==0){u=0;i=h;return u|0}if((e|0)==0){u=6;i=h;return u|0}q=a[e]|0;if(q<<24>>24==0){u=6;i=h;return u|0}bX(r|0,0,32)|0;r=0;while(1){if(q<<24>>24==43){e=e+1|0;if((a[e]|0)==0){r=1}else{m=9}}else if(q<<24>>24==0){break}else{e=e+1|0;m=9}if((m|0)==9){m=0;t=q&255;u=n+(t>>>3)|0;a[u]=1<<(t&7)|d[u]}q=a[e]|0}e=f+g|0;q=b+4|0;a:do{if((g|0)>0){g=b+12|0;r=(r|0)==0;u=0;t=f;b:while(1){if(s<<24>>24==0){t=u;break a}else{f=t}while(1){s=s&255;u=f+1|0;if((a[n+(s>>>3)|0]&1<<(s&7)|0)!=0){break}s=a[u]|0;if(s<<24>>24==0){f=u;break}else{f=u}}u=c[j>>2]|0;do{if((u|0)==(c[q>>2]|0)){c[o>>2]=0;if((u|0)==-1){u=-1;break}s=u+4+(u>>>1)|0;if((u|0)==536870911){break b}s=s>>>0<u>>>0|s>>>0>536870911?536870911:s;c[b>>2]=oJ(c[g>>2]|0,4,u,s,c[b>>2]|0,p)|0;u=c[o>>2]|0;if((u|0)!=0){m=41;break b}c[q>>2]=s;u=c[j>>2]|0}}while(0);c[j>>2]=u+1;c[(c[b>>2]|0)+(u<<2)>>2]=f>>>0>t>>>0?t:285600;s=a[f]|0;t=s<<24>>24==0;do{if(r){if(t){s=0;t=0;break}m=f+1|0;a[f]=0;t=a[m]|0;f=m;m=29}else{if(t){s=0;t=0;break}else{u=f}while(1){t=s&255;if((a[n+(t>>>3)|0]&1<<(t&7)|0)==0){break}a[u]=0;u=u+1|0;s=a[u]|0;if(s<<24>>24==0){s=0;break}}if(u>>>0>f>>>0){t=s;f=u;m=29}else{t=0;f=u}}}while(0);if((m|0)==29){m=0;s=t;t=t<<24>>24==0|0}if(f>>>0<e>>>0){u=t;t=f}else{break a}}if((m|0)==41){i=h;return u|0}c[o>>2]=64;u=64;i=h;return u|0}else{t=0}}while(0);n=(c[j>>2]|0)+t|0;m=c[q>>2]|0;do{if(n>>>0>=m>>>0){c[k>>2]=0;if(m>>>0>=(n+1|0)>>>0){break}n=m+4+(m>>>1)|0;if((m|0)==536870911){c[k>>2]=64;u=64;i=h;return u|0}n=n>>>0<m>>>0|n>>>0>536870911?536870911:n;c[b>>2]=oJ(c[b+12>>2]|0,4,m,n,c[b>>2]|0,l)|0;k=c[k>>2]|0;if((k|0)==0){c[q>>2]=n;break}else{u=k;i=h;return u|0}}}while(0);if((t|0)!=0){u=c[j>>2]|0;c[j>>2]=u+1;c[(c[b>>2]|0)+(u<<2)>>2]=285600}c[(c[b>>2]|0)+(c[j>>2]<<2)>>2]=0;u=0;i=h;return u|0}function ZU(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;m=i;i=i+8|0;l=m;o=i;i=i+8|0;n=o;k=i;i=i+128|0;if((iX(d|0,285608,13)|0)==0){d=h+32|0;p=c[d>>2]|0;a:do{if((p|0)==0){j=11}else{if((c[p+72>>2]|0)==0){j=11;break}q=c[p+128>>2]|0;e=c[q+12>>2]|0;q=c[q+4>>2]|0;s=e+((1895527114%(q>>>0)|0)<<2)|0;r=c[s>>2]|0;if((r|0)==0){j=11;break}q=e+(q+ -1<<2)|0;while(1){t=c[r>>2]|0;if((a[t]|0)==70){if((Qc(t|0,285264)|0)==0){break}}r=s+ -4|0;s=r>>>0<e>>>0?q:r;r=c[s>>2]|0;if((r|0)==0){j=11;break a}}if((r|0)==0){j=11;break}if(((c[p+80>>2]|0)+(c[r+4>>2]<<4)|0)==0){j=11}}}while(0);do{if((j|0)==11){c[p+40>>2]=b[p+12>>1]|0;c[o>>2]=b[(c[d>>2]|0)+12>>1]|0;Lb(k|0,285256,n|0)|0;e=_U(c[d>>2]|0,285264,k)|0;if((e|0)==0){b[(c[d>>2]|0)+16516>>1]=1;p=c[d>>2]|0;break}else{t=e;i=f;return t|0}}}while(0);b:do{if((p|0)==0){j=22}else{if((c[p+72>>2]|0)==0){j=22;break}n=c[p+128>>2]|0;e=c[n+12>>2]|0;n=c[n+4>>2]|0;q=e+((908209322%(n>>>0)|0)<<2)|0;o=c[q>>2]|0;if((o|0)==0){j=22;break}n=e+(n+ -1<<2)|0;while(1){r=c[o>>2]|0;if((a[r]|0)==70){if((Qc(r|0,285280)|0)==0){break}}o=q+ -4|0;q=o>>>0<e>>>0?n:o;o=c[q>>2]|0;if((o|0)==0){j=22;break b}}if((o|0)==0){j=22;break}if(((c[p+80>>2]|0)+(c[o+4>>2]<<4)|0)==0){j=22}}}while(0);do{if((j|0)==22){c[p+44>>2]=b[p+14>>1]|0;c[m>>2]=b[(c[d>>2]|0)+14>>1]|0;Lb(k|0,285256,l|0)|0;j=_U(c[d>>2]|0,285280,k)|0;if((j|0)==0){b[(c[d>>2]|0)+16516>>1]=1;break}else{t=j;i=f;return t|0}}}while(0);c[h>>2]=c[h>>2]&-17;c[g>>2]=42;t=0;i=f;return t|0}if((iX(d|0,285624,21)|0)==0){t=0;i=f;return t|0}if((iX(d|0,283840,7)|0)==0){g=d+7|0;if((a[g]|0)!=0){a[g]=0;g=d+8|0}t=_U(c[h+32>>2]|0,d,g)|0;i=f;return t|0}g=h+32|0;l=c[g>>2]|0;k=d;while(1){m=a[k]|0;if(m<<24>>24==32|m<<24>>24==9){j=33;break}else if(m<<24>>24==0){m=-1;break}k=k+1|0}if((j|0)==33){a[k]=0;m=m<<24>>24}c:do{if((d|0)==0){j=0}else{n=a[d]|0;if(n<<24>>24==0){j=0;break}j=c[l+16544>>2]|0;q=n;p=d;o=0;do{p=p+1|0;o=(o*31|0)+(q<<24>>24)|0;q=a[p]|0;}while(q<<24>>24!=0);r=c[l+16536>>2]|0;q=j+(((o>>>0)%(r>>>0)|0)<<2)|0;p=c[q>>2]|0;if((p|0)==0){j=0;break}o=j+(r+ -1<<2)|0;while(1){r=c[p>>2]|0;if((a[r]|0)==n<<24>>24){if((Qc(r|0,d|0)|0)==0){break}}p=q+ -4|0;q=p>>>0<j>>>0?o:p;p=c[q>>2]|0;if((p|0)==0){j=0;break c}}if((p|0)==0){j=0;break}j=c[p+4>>2]|0;if(j>>>0>82){j=(c[l+16524>>2]|0)+(j+ -83<<4)|0;break}else{j=283864+(j<<4)|0;break}}}while(0);if((m|0)!=-1){a[k]=m}do{if((j|0)!=0){if((c[j+4>>2]|0)==1){break}j=h+8232|0;d=YU(j,285208,d,e)|0;if((d|0)!=0){t=d;i=f;return t|0}k=c[j>>2]|0;d=c[k>>2]|0;h=h+8240|0;e=c[h>>2]|0;do{if((e|0)==0){e=0}else{if(e>>>0<2){c[h>>2]=0;e=0;break}else{e=0;l=1}while(1){c[k+(e<<2)>>2]=c[k+(l<<2)>>2];l=l+1|0;k=c[h>>2]|0;if(l>>>0>=k>>>0){break}k=c[j>>2]|0;e=e+1|0}o=k+ -1|0;c[h>>2]=o;if((o|0)==0){e=0;break}e=c[c[j>>2]>>2]|0;l=e;k=1;n=0;while(1){m=a[l]|0;if(m<<24>>24!=0){o=n;while(1){l=l+1|0;n=o+1|0;a[e+o|0]=m;m=a[l]|0;if(m<<24>>24==0){break}else{o=n}}o=c[h>>2]|0}if(k>>>0<o>>>0){a[e+n|0]=32;o=c[h>>2]|0;n=n+1|0}if(k>>>0>=o>>>0){break}l=c[(c[j>>2]|0)+(k<<2)>>2]|0;k=k+1|0}if((e|0)==285600){e=285600;break}a[e+n|0]=0}}while(0);t=_U(c[g>>2]|0,d,e)|0;i=f;return t|0}}while(0);a[k]=0;while(1){l=k+1|0;j=a[l]|0;if(j<<24>>24==32|j<<24>>24==9){k=l}else{break}}h=d+e|0;j=j<<24>>24==34?k+2|0:l;d:do{if(h>>>0>j>>>0){while(1){h=h+ -1|0;e=a[h]|0;if(e<<24>>24==34){break}else if(!(e<<24>>24==9|e<<24>>24==32)){break d}a[h]=0;if(h>>>0<=j>>>0){break d}}a[h]=0}}while(0);t=_U(c[g>>2]|0,d,j)|0;i=f;return t|0}function _U(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;h=i;m=i;i=i+8|0;n=m;g=i;i=i+8|0;l=g;j=c[b+16520>>2]|0;c[g>>2]=0;k=b+128|0;r=c[k>>2]|0;q=c[r+12>>2]|0;p=a[e]|0;t=p<<24>>24==0;if(t){s=0}else{v=p;u=e;s=0;while(1){u=u+1|0;s=(s*31|0)+(v<<24>>24)|0;v=a[u]|0;if(v<<24>>24==0){break}else{}}}r=c[r+4>>2]|0;u=q+(((s>>>0)%(r>>>0)|0)<<2)|0;s=c[u>>2]|0;a:do{if((s|0)!=0){r=q+(r+ -1<<2)|0;while(1){v=c[s>>2]|0;if((a[v]|0)==p<<24>>24){if((Qc(v|0,e|0)|0)==0){break}}s=u+ -4|0;u=s>>>0<q>>>0?r:s;s=c[u>>2]|0;if((s|0)==0){break a}}if((s|0)==0){break}b=c[b+80>>2]|0;k=c[s+4>>2]|0;e=c[b+(k<<4)+4>>2]|0;if((e|0)==3){b:do{if((f|0)==0){m=0}else{l=a[f]|0;e=285544;do{if(l<<24>>24==0){m=0;break b}else if(l<<24>>24==48){z=a[f+1|0]|0;if(!(z<<24>>24==88|z<<24>>24==120)){l=48;j=10;e=285544;break}f=f+2|0;l=a[f]|0;j=16;e=285512}else{j=10}}while(0);l=l<<24>>24;if((d[e+(l>>3)|0]&1<<(l&7)|0)==0){m=0;break}else{m=0}do{z=da(m,j)|0;m=(d[285344+l|0]|0)+z|0;f=f+1|0;l=a[f]|0;}while((1<<(l&7)&d[e+(l>>3)|0]|0)!=0)}}while(0);c[b+(k<<4)+12>>2]=m;z=g;z=c[z>>2]|0;i=h;return z|0}else if((e|0)==1){b=b+(k<<4)+12|0;lJ(j,c[b>>2]|0);c[b>>2]=0;if((f|0)==0){z=g;z=c[z>>2]|0;i=h;return z|0}if((a[f]|0)==0){z=g;z=c[z>>2]|0;i=h;return z|0}c[b>>2]=aL(j,f,l)|0;z=g;z=c[z>>2]|0;i=h;return z|0}else if((e|0)==2){do{if((f|0)==0){j=0}else{j=a[f]|0;if(j<<24>>24==0){j=0;break}j=j<<24>>24==45;l=j?f+1|0:f;m=a[l]|0;f=285544;do{if(m<<24>>24==48){z=a[l+1|0]|0;if(!(z<<24>>24==88|z<<24>>24==120)){m=48;e=10;f=285544;break}l=l+2|0;m=a[l]|0;e=16;f=285512}else{e=10}}while(0);m=m<<24>>24;if((d[f+(m>>3)|0]&1<<(m&7)|0)==0){n=0}else{n=0;while(1){n=da(n,e)|0;n=(d[285344+m|0]|0)+n|0;l=l+1|0;m=a[l]|0;if((1<<(m&7)&d[f+(m>>3)|0]|0)==0){break}else{}}}j=j?0-n|0:n}}while(0);c[b+(k<<4)+12>>2]=j;z=g;z=c[z>>2]|0;i=h;return z|0}else{z=g;z=c[z>>2]|0;i=h;return z|0}}}while(0);s=b+16532|0;r=b+16544|0;u=c[r>>2]|0;if(t){w=0}else{w=p;q=e;v=0;while(1){q=q+1|0;v=(v*31|0)+(w<<24>>24)|0;w=a[q]|0;if(w<<24>>24==0){w=v;break}else{}}}q=b+16536|0;v=c[q>>2]|0;y=u+(((w>>>0)%(v>>>0)|0)<<2)|0;x=c[y>>2]|0;c:do{if((x|0)==0){o=38}else{w=u+(v+ -1<<2)|0;while(1){z=c[x>>2]|0;if((a[z]|0)==p<<24>>24){if((Qc(z|0,e|0)|0)==0){break}}x=y+ -4|0;y=x>>>0<u>>>0?w:x;x=c[y>>2]|0;if((x|0)==0){o=38;break c}}if((x|0)==0){o=38}}}while(0);d:do{if((o|0)==38){c[m>>2]=0;if(t){x=0}else{w=p;t=e;x=0;while(1){t=t+1|0;x=(x*31|0)+(w<<24>>24)|0;w=a[t]|0;if(w<<24>>24==0){break}else{}}}w=u+(((x>>>0)%(v>>>0)|0)<<2)|0;x=c[w>>2]|0;e:do{if((x|0)==0){o=46}else{t=u+(v+ -1<<2)|0;v=x;while(1){x=c[v>>2]|0;if((a[x]|0)==p<<24>>24){if((Qc(x|0,e|0)|0)==0){break}}v=w+ -4|0;w=v>>>0<u>>>0?t:v;v=c[w>>2]|0;if((v|0)==0){o=46;break e}}if((v|0)==0){o=46}}}while(0);f:do{if((o|0)==46){o=b+16528|0;p=c[o>>2]|0;w=b+16524|0;p=oJ(j,16,p,p+1|0,c[w>>2]|0,n)|0;c[w>>2]=p;w=c[m>>2]|0;do{if((w|0)==0){u=c[o>>2]|0;v=p+(u<<4)|0;bX(v|0,0,16)|0;t=(ZW(e|0)|0)+1|0;n=oJ(j,1,0,t,0,n)|0;c[v>>2]=n;w=c[m>>2]|0;if((w|0)!=0){break}$W(n|0,e|0,t|0)|0;c[p+(u<<4)+4>>2]=1;c[p+(u<<4)+8>>2]=0;w=XU(c[v>>2]|0,(c[o>>2]|0)+83|0,s,j)|0;c[m>>2]=w;if((w|0)!=0){break}c[o>>2]=(c[o>>2]|0)+1;p=a[e]|0;u=c[r>>2]|0;break f}}while(0);c[g>>2]=w;z=g;z=c[z>>2]|0;i=h;return z|0}}while(0);c[g>>2]=0;if(p<<24>>24==0){o=0}else{n=p;m=e;o=0;while(1){m=m+1|0;o=(o*31|0)+(n<<24>>24)|0;n=a[m]|0;if(n<<24>>24==0){break}else{}}}m=c[q>>2]|0;n=u+(((o>>>0)%(m>>>0)|0)<<2)|0;x=c[n>>2]|0;if((x|0)==0){x=0;break}m=u+(m+ -1<<2)|0;while(1){o=c[x>>2]|0;if((a[o]|0)==p<<24>>24){if((Qc(o|0,e|0)|0)==0){break d}}n=n+ -4|0;n=n>>>0<u>>>0?m:n;x=c[n>>2]|0;if((x|0)==0){x=0;break}}}}while(0);m=b+76|0;o=c[m>>2]|0;n=b+72|0;if((o|0)==(c[n>>2]|0)){do{if((o|0)==0){o=oJ(j,16,0,1,0,l)|0;c[b+80>>2]=o;if((c[g>>2]|0)==0){break}z=g;z=c[z>>2]|0;i=h;return z|0}else{z=b+80|0;o=oJ(j,16,o,o+1|0,c[z>>2]|0,l)|0;c[z>>2]=o;if((c[g>>2]|0)==0){break}z=g;z=c[z>>2]|0;i=h;return z|0}}while(0);bXbX(p|0,0,2072)|0;bX(D|0,0,32)|0;c[p>>2]=f;c[p+4>>2]=fa;V=p+1324|0;T=IK(f)|0;ha=ZK(f,287200,p)|0;c[E>>2]=ha;b:do{if((ha|0)==0){do{if((a[p+16|0]|0)==1){j=a[p+18|0]|0;if((j&255)<4){break}if((d[p+19|0]|0)>4){break}ha=DK(f,(j&255)+ -4|0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}j=p+20|0;ha=BV(j,f,0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ba=p+1208|0;ha=BV(ba,f,0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ha=BV(F,f,1)|0;c[E>>2]=ha;if((ha|0)!=0){break b}$=p+84|0;ha=BV($,f,1)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ha=CV(F,p+1316|0,p+1320|0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}c[p+1312>>2]=c[F+8>>2];ha=c[p+28>>2]|0;c[p+8>>2]=ha;if((ha|0)<=(h|0)){c[E>>2]=6}if((h|0)<0){break b}ha=DV(V,ba,h,f,T,ca)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ba=p+1432|0;ha=PJ(f,(c[ba>>2]|0)+T|0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ha=BV(p+1176|0,f,0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}V=p+1452|0;if((c[V>>2]|0)==65535){c[p+1892>>2]=0}else{ha=PJ(f,(c[p+1484>>2]|0)+T|0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ha=BV(Z,f,0)|0;c[E>>2]=ha;if((ha|0)!=0){break b}ea=Z+8|0;ga=c[ea>>2]|0;c:do{if(ga>>>0>32){fa=0}else{c[p+1892>>2]=ga;da=oJ(fa,568,0,ga,0,da)|0;fa=c[E>>2]|0;if((fa|0)!=0){break}fa=c[ea>>2]|0;if((fa|0)!=0){ga=0;while(1){c[p+1896+(ga<<2)>>2]=da+(ga*568|0);ga=ga+1|0;if(ga>>>0<fa>>>0){}else{da=0;break}}do{fa=DV(c[p+1896+(da<<2)>>2]|0,Z,da,f,T,ca)|0;c[E>>2]=fa;da=da+1|0;if((fa|0)!=0){break c}}while(da>>>0<(c[ea>>2]|0)>>>0)}ca=c[p+1184>>2]|0;fa=PJ(f,(c[p+1488>>2]|0)+T|0)|0;c[_>>2]=fa;do{if((fa|0)==0){da=VK(f,aa)|0;fa=c[_>>2]|0;if((fa|0)!=0){break}a[p+2024|0]=da;c[p+2044>>2]=0;da=da&255;if((da|0)==3){aa=EK(f,aa)|0;fa=c[_>>2]|0;if((fa|0)!=0){break}ca=((aa&65535)*3|0)+2|0;c[p+2036>>2]=ca}else if((da|0)==0){c[p+2036>>2]=ca}else{c[_>>2]=3;fa=3;break}fa=LK(f,ca,p+2032|0)|0;c[_>>2]=fa}}while(0);c[E>>2]=fa}}while(0);_=c[Y>>2]|0;if((_|0)!=0){ca=c[_+28>>2]|0;aa=Z+28|0;if((c[aa>>2]|0)!=0){NK(_,aa)}lJ(ca,c[Z+24>>2]|0);bXbX(D|0,0,32)|0}ha=c[E>>2]|0;c[m>>2]=ha;if((ha|0)!=0){break}c[p+2052>>2]=G;E=p+2056|0;c[E>>2]=C;c[g+4>>2]=h;F=g+16|0;c[F>>2]=c[p+12>>2];D=p+1452|0;if((c[D>>2]|0)==65535&(C|0)==0){u=304;break}C=p+1388|0;I=c[C>>2]|0;if((I|0)==0){if(k<<24>>24==0){I=e[g+68>>1]|0}else{I=1e3}c[C>>2]=I}H=p+1372|0;G=p+1392|0;J=p+1384|0;K=c[J>>2]|0;K=(K|0)<0?0-K|0:K;if((K|0)==65536){I=c[p+1396>>2]|0;J=G}else{c[C>>2]=bJ(I,K)|0;c[H>>2]=bJ(c[H>>2]|0,K)|0;I=p+1380|0;c[I>>2]=bJ(c[I>>2]|0,K)|0;I=p+1376|0;c[I>>2]=bJ(c[I>>2]|0,K)|0;c[J>>2]=bJ(c[J>>2]|0,K)|0;c[G>>2]=bJ(c[G>>2]|0,K)|0;J=p+1396|0;I=bJ(c[J>>2]|0,K)|0;c[J>>2]=I;J=G}c[J>>2]=c[J>>2]>>16;c[p+1396>>2]=I>>16;K=c[p+1892>>2]|0;if((K|0)!=0){I=p+1896|0;do{K=K+ -1|0;J=c[I+(K<<2)>>2]|0;L=J+64|0;M=c[L>>2]|0;if((M|0)==0){$W(J+48|0,H|0,16)|0;ga=G;ha=c[ga+4>>2]|0;f=J+68|0;c[f>>2]=c[ga>>2];c[f+4>>2]=ha;f=c[C>>2]|0}else{j=c[C>>2]|0;if(j>>>0>1&M>>>0>1){M=j>>>0<M>>>0?j:M}else{M=1}dJ(H,J+48|0,M);eJ(J+68|0,H,M);f=_I(c[L>>2]|0,c[C>>2]|0,M)|0}c[L>>2]=f;M=J+68|0;j=J+60|0;N=c[j>>2]|0;N=(N|0)<0?0-N|0:N;if((N|0)==65536){L=c[J+72>>2]|0}else{f=bJ(f,N)|0;if(f>>>0>1e5){f=((f+500|0)>>>0)/1e3|0}c[L>>2]=f;ha=J+48|0;c[ha>>2]=bJ(c[ha>>2]|0,N)|0;ha=J+56|0;c[ha>>2]=bJ(c[ha>>2]|0,N)|0;ha=J+52|0;c[ha>>2]=bJ(c[ha>>2]|0,N)|0;c[j>>2]=bJ(c[j>>2]|0,N)|0;c[M>>2]=bJ(c[M>>2]|0,N)|0;ha=J+72|0;L=bJ(c[ha>>2]|0,N)|0;c[ha>>2]=L}c[M>>2]=c[M>>2]>>16;c[J+72>>2]=L>>16;}while((K|0)!=0)}k=k<<24>>24==0;if(!k){c[g>>2]=c[p+8>>2];if((c[D>>2]|0)==65535){G=c[p+1184>>2]|0}else{G=(c[p+1168>>2]|0)+1|0}c[F>>2]=G;c[g+52>>2]=c[p+1404>>2]>>16;ga=c[p+1408>>2]>>16;c[g+56>>2]=ga;c[g+60>>2]=(c[p+1412>>2]|0)+65535>>16;ha=(c[p+1416>>2]|0)+65535>>16;c[g+64>>2]=ha;F=c[C>>2]|0;b[g+68>>1]=F;ha=ha&65535;b[g+70>>1]=ha;C=ga&65535;b[g+72>>1]=C;F=((((F&65535)*12|0)>>>0)/10|0)&65535;C=(ha<<16>>16)-(C<<16>>16)|0;b[g+74>>1]=(F<<16>>16|0)<(C|0)?C&65535:F;b[g+80>>1]=(c[p+1356>>2]|0)>>>16;b[g+82>>1]=(c[p+1360>>2]|0)>>>16;C=p+20|0;F=c[(c[C>>2]|0)+28>>2]|0;ha=AV(C,h,y,B)|0;c[w>>2]=ha;do{if((ha|0)==0){A=c[A>>2]|0;z=jJ(F,A+1|0,z)|0;if((c[w>>2]|0)==0){$W(z|0,c[x>>2]|0,A|0)|0;a[z+A|0]=0}if((c[p+48>>2]|0)!=0){w=z;break}NK(c[C>>2]|0,y);w=z}else{w=0}}while(0);x=g+20|0;c[x>>2]=w;h:do{if((w|0)==0){u=c[p+1492>>2]|0;if((u|0)==65535){u=261;break}if(u>>>0>390){r=u+ -391|0;if((c[p+1312>>2]|0)>>>0<=r>>>0){u=261;break}r=c[(c[p+1316>>2]|0)+(r<<2)>>2]|0}else{r=c[E>>2]|0;if((r|0)==0){u=261;break}r=jd[c[r+20>>2]&511](u)|0}if((r|0)==0){u=261;break}c[x>>2]=aL(s,r,v)|0;u=261}else{y=c[p+1336>>2]|0;do{if((y|0)==65535){v=0}else{if(y>>>0>390){v=y+ -391|0;if((c[p+1312>>2]|0)>>>0<=v>>>0){v=0;break}v=c[(c[p+1316>>2]|0)+(v<<2)>>2]|0;break}else{v=c[E>>2]|0;if((v|0)==0){v=0;break}v=jd[c[v+20>>2]&511](y)|0;w=c[x>>2]|0;break}}}while(0);B=(ZW(w|0)|0)+1|0;C=w+6|0;F=(B|0)>7;i:do{if((B|0)>6){x=w+1|0;A=w+2|0;z=w+3|0;y=w+4|0;h=w+5|0;G=1;j:while(1){if((a[C]|0)!=43){break i}G=((a[y]|0)+ -65<<24>>24&255)<26?((a[z]|0)+ -65<<24>>24&255)<26?((a[A]|0)+ -65<<24>>24&255)<26?((a[x]|0)+ -65<<24>>24&255)<26?((a[w]|0)+ -65<<24>>24&255)<26?G:0:0:0:0:0;if(G<<24>>24==0|((a[h]|0)+ -65<<24>>24&255)>25){break i}if(F){H=7}else{continue}while(1){a[w+(H+ -7)|0]=a[w+H|0]|0;H=H+1|0;if((H|0)<(B|0)){}else{continue j}}}}}while(0);x=c[p+1340>>2]|0;do{if((x|0)==65535){x=0;u=240}else if((x|0)!=0){if(x>>>0>390){u=x+ -391|0;if((c[p+1312>>2]|0)>>>0<=u>>>0){x=0;u=240;break}x=c[(c[p+1316>>2]|0)+(u<<2)>>2]|0;u=240;break}else{u=c[E>>2]|0;if((u|0)==0){x=0;u=240;break}x=jd[c[u+20>>2]&511](x)|0;u=240;break}}}while(0);if((u|0)==240){w=(x|0)==0?w:x}if((v|0)==0|(w|0)==0){u=261;break}x=a[v]|0;if(x<<24>>24==0){u=261;break}k:while(1){while(1){y=a[w]|0;if(x<<24>>24==y<<24>>24){u=245;break}if(x<<24>>24==45|x<<24>>24==32){break}if(y<<24>>24==0){break k}else if(!(y<<24>>24==45|y<<24>>24==32)){u=261;break h}if(x<<24>>24==0){u=261;break h}w=w+1|0}if((u|0)==245){u=0;w=w+1|0}v=v+1|0;x=a[v]|0;if(x<<24>>24==0){u=261;break h}}r=aL(s,v,r)|0;if((r|0)==0){u=261;break}c[g+24>>2]=r}}while(0);if((u|0)==261){c[g+24>>2]=aL(s,287176,q)|0}q=t<<24>>24==0?2065:2073;c[g+8>>2]=(a[p+1348|0]|0)==0?q:q|4;q=(c[p+1352>>2]|0)!=0|0;r=c[p+1344>>2]|0;do{if((r|0)!=65535){if(r>>>0>390){r=r+ -391|0;if((c[p+1312>>2]|0)>>>0<=r>>>0){break}r=c[(c[p+1316>>2]|0)+(r<<2)>>2]|0}else{s=c[E>>2]|0;if((s|0)==0){break}r=jd[c[s+20>>2]&511](r)|0}if((r|0)==0){break}if((Qc(r|0,287184)|0)!=0){if((Qc(r|0,287192)|0)!=0){break}}q=q|2}}while(0);do{if((q&2|0)==0){r=c[g+24>>2]|0;if((r|0)==0){break}if((vc(r|0,287184,4)|0)!=0){if((vc(r|0,287192,5)|0)!=0){break}}q=q|2}}while(0);c[g+12>>2]=q}q=c[D>>2]|0;if((q|0)==65535){q=g+8|0;c[q>>2]=c[q>>2]|512;q=c[D>>2]|0}if(!((q|0)==65535|k)){ha=g+8|0;c[ha>>2]=c[ha>>2]|4096}q=g+36|0;s=c[q>>2]|0;l:do{if((s|0)==0){s=0;r=1;u=288}else{t=c[g+40>>2]|0;r=0;while(1){w=c[t+(r<<2)>>2]|0;v=b[w+8>>1]|0;if(v<<16>>16==3){if((b[w+10>>1]|0)==1){break l}}else if(v<<16>>16==0){break l}v=r+1|0;if(v>>>0<s>>>0){r=v}else{break}}r=r+2|0;u=288}}while(0);do{if((u|0)==288){if(k){if(r>>>0>15){break a}}else{if((c[D>>2]|0)!=65535|r>>>0>15){break a}}c[o>>2]=g;b[l+8>>1]=3;b[l+10>>1]=1;c[l+4>>2]=1970170211;ha=eK(287088,0,l,0)|0;c[m>>2]=ha;if(!((ha|0)==0|(ha|0)==163)){break a}c[m>>2]=0;r=g+92|0;if((c[r>>2]|0)!=0){r=s;break}if((s|0)==(c[q>>2]|0)){r=s;break}c[r>>2]=c[(c[g+40>>2]|0)+(s<<2)>>2];r=s}}while(0);if(r>>>0>15){break}if((c[p+124>>2]|0)==0){break}c[o>>2]=g;b[l+8>>1]=7;g=c[p+120>>2]|0;do{if((g|0)==0){b[l+10>>1]=0;c[l+4>>2]=1094995778}else{o=l+10|0;if((g|0)==1){b[o>>1]=1;c[l+4>>2]=1094992453;break}else{b[o>>1]=2;c[l+4>>2]=1094992451;break}}}while(0);c[m>>2]=eK(287048,0,l,0)|0}}while(0);if((u|0)==304){c[m>>2]=2}ha=c[m>>2]|0;i=n;return ha|0}function hV(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;d=i;if((b|0)==0){i=d;return}e=c[b+100>>2]|0;f=c[b+532>>2]|0;if((f|0)!=0){fd[c[f+12>>2]&511](b)}f=b+692|0;g=c[f>>2]|0;if((g|0)==0){i=d;return}b=c[g+4>>2]|0;h=g+84|0;j=c[h>>2]|0;if((j|0)!=0){k=c[j+28>>2]|0;l=g+112|0;if((c[l>>2]|0)!=0){NK(j,l)}lJ(k,c[g+108>>2]|0);bX(h|0,0,32)|0}j=g+1208|0;k=c[j>>2]|0;if((k|0)!=0){l=c[k+28>>2]|0;h=g+1236|0;if((c[h>>2]|0)!=0){NK(k,h)}lJ(l,c[g+1232>>2]|0);bX(j|0,0,32)|0}h=g+20|0;j=c[h>>2]|0;if((j|0)!=0){k=c[j+28>>2]|0;l=g+48|0;if((c[l>>2]|0)!=0){NK(j,l)}lJ(k,c[g+44>>2]|0);bX(h|0,0,32)|0}l=g+1176|0;h=c[l>>2]|0;if((h|0)!=0){j=c[h+28>>2]|0;k=g+1204|0;if((c[k>>2]|0)!=0){NK(h,k)}lJ(j,c[g+1200>>2]|0);bX(l|0,0,32)|0}h=g+1892|0;l=c[h>>2]|0;if((l|0)!=0){j=0;do{k=c[g+1896+(j<<2)>>2]|0;if((k|0)!=0){l=k+532|0;m=c[l>>2]|0;if((m|0)!=0){n=c[m+28>>2]|0;o=k+560|0;if((c[o>>2]|0)!=0){NK(m,o)}lJ(n,c[k+556>>2]|0);bX(l|0,0,32)|0}l=k+564|0;lJ(b,c[l>>2]|0);c[l>>2]=0;l=c[h>>2]|0}j=j+1|0;}while(j>>>0<l>>>0);o=g+1896|0;lJ(b,c[o>>2]|0);c[o>>2]=0}c[g+116>>2]=0;c[g+120>>2]=0;c[g+124>>2]=0;j=c[(c[g>>2]|0)+28>>2]|0;k=g+1164|0;lJ(j,c[k>>2]|0);c[k>>2]=0;c[g+1168>>2]=0;k=g+1160|0;lJ(j,c[k>>2]|0);c[k>>2]=0;c[g+1152>>2]=0;c[g+1156>>2]=0;k=g+1856|0;j=c[k>>2]|0;if((j|0)!=0){l=c[j+28>>2]|0;h=g+1884|0;if((c[h>>2]|0)!=0){NK(j,h)}lJ(l,c[g+1880>>2]|0);bX(k|0,0,32)|0}h=g+1888|0;lJ(b,c[h>>2]|0);c[h>>2]=0;h=g+2032|0;if((c[h>>2]|0)!=0){NK(c[g>>2]|0,h)}c[g+2036>>2]=0;a[g+2024|0]=0;c[g+2028>>2]=0;o=g+2060|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1304|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1308|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1316|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1320|0;lJ(b,c[o>>2]|0);c[o>>2]=0;lJ(e,c[f>>2]|0);c[f>>2]=0;i=d;return}function iV(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;d=i;i=i+8|0;f=d;e=i;i=i+200|0;c[d>>2]=0;g=c[a>>2]|0;h=c[(c[g+692>>2]|0)+2052>>2]|0;g=mK(c[(c[g+96>>2]|0)+4>>2]|0,287160)|0;do{if(!((g|0)==0|(h|0)==0)){h=c[h>>2]|0;if((h|0)==0){break}g=jd[h&511](g)|0;if((g|0)==0){break}j=c[a>>2]|0;h=c[j+692>>2]|0;f=jJ(c[j+100>>2]|0,132,f)|0;j=c[d>>2]|0;if((j|0)!=0){l=j;i=b;return l|0}KV(h+1324|0,e);j=sd[c[g>>2]&127](c[(c[a>>2]|0)+100>>2]|0,e,f)|0;c[d>>2]=j;if((j|0)!=0){l=j;i=b;return l|0}k=h+1896|0;j=f+4|0;l=c[h+1892>>2]|0;while(1){if((l|0)==0){e=9;break}l=l+ -1|0;KV(c[k+(l<<2)>>2]|0,e);h=sd[c[g>>2]&127](c[(c[a>>2]|0)+100>>2]|0,e,j+(l<<2)|0)|0;c[d>>2]=h;if((h|0)!=0){e=11;break}}if((e|0)==9){c[a+40>>2]=f;break}else if((e|0)==11){i=b;return h|0}}}while(0);c[a+44>>2]=-1;l=c[d>>2]|0;i=b;return l|0}function jV(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;f=c[a>>2]|0;d=c[f+692>>2]|0;a=c[a+40>>2]|0;if((a|0)==0){i=b;return}e=c[d+2052>>2]|0;f=mK(c[(c[f+96>>2]|0)+4>>2]|0,287160)|0;if((f|0)==0|(e|0)==0){i=b;return}e=c[e>>2]|0;if((e|0)==0){i=b;return}e=jd[e&511](f)|0;if((e|0)==0){i=b;return}e=e+8|0;fd[c[e>>2]&511](c[a>>2]|0);d=c[d+1892>>2]|0;if((d|0)==0){i=b;return}do{d=d+ -1|0;fd[c[e>>2]&511](c[a+4+(d<<2)>>2]|0);}while((d|0)!=0);i=b;return}function kV(a){a=a|0;var b=0,d=0,e=0;b=i;e=c[a+4>>2]|0;d=c[(c[e+692>>2]|0)+2052>>2]|0;if((d|0)==0){i=b;return 0}e=mK(c[(c[e+96>>2]|0)+4>>2]|0,287160)|0;if((e|0)==0){i=b;return 0}e=jd[c[d+8>>2]&511](e)|0;c[(c[a+156>>2]|0)+36>>2]=e;i=b;return 0}function lV(a){a=a|0;c[(c[a+156>>2]|0)+36>>2]=0;i=i;return}function mV(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,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;k=i;F=i;i=i+8|0;E=F;V=i;i=i+8|0;U=V;X=i;i=i+928|0;o=X;r=i;i=i+16|0;q=r;N=i;i=i+8|0;M=N;G=i;i=i+8|0;D=G;J=i;i=i+8|0;T=J;A=i;i=i+16|0;C=A;m=i;i=i+16|0;l=m;t=i;i=i+8|0;s=t;v=i;i=i+8|0;x=v;w=i;i=i+8|0;y=w;if((f|0)==0){da=37;i=k;return da|0}n=j|3;u=(g|0)==0?n:j;j=(u&1|0)==0?g:0;K=(j|0)==0;do{if(K){z=c[f+4>>2]|0}else{z=c[g>>2]|0;if((z|0)==(c[f+4>>2]|0)){break}else{C=35}i=k;return C|0}}while(0);I=z+692|0;H=c[I>>2]|0;L=H+1324|0;do{if((c[L+128>>2]|0)==65535){p=10}else{g=c[H+1164>>2]|0;if((g|0)==0){p=10;break}if((h|0)==0){h=0;break}if((c[H+1168>>2]|0)>>>0<h>>>0){da=6;i=k;return da|0}g=b[g+(h<<1)>>1]|0;if(g<<16>>16==0){C=6}else{h=g&65535;break}i=k;return C|0}}while(0);do{if((p|0)==10){if((c[H+12>>2]|0)>>>0>h>>>0){break}else{C=6}i=k;return C|0}}while(0);n=(u&1024|0)==0?u:n;g=f+164|0;c[g>>2]=65536;u=f+168|0;c[u>>2]=65536;B=(j|0)!=0;do{if(B){c[g>>2]=c[j+16>>2];c[u>>2]=c[j+20>>2];P=c[j>>2]|0;O=c[P+532>>2]|0;Q=c[j+44>>2]|0;if((Q|0)==-1){break}if((c[O+140>>2]|0)==0){break}if((n&8|0)!=0){break}if((dd[c[O+104>>2]&1](z,Q,h,n,c[P+104>>2]|0,f+76|0,M)|0)!=0){break}b[f+110>>1]=0;b[f+108>>1]=0;c[f+24>>2]=d[M+1|0]<<6;c[f+28>>2]=d[N]<<6;l=a[M+2|0]|0;c[f+32>>2]=l<<6;m=a[M+3|0]|0;c[f+36>>2]=m<<6;c[f+40>>2]=d[M+4|0]<<6;p=a[M+5|0]|0;c[f+44>>2]=p<<6;o=a[M+6|0]|0;c[f+48>>2]=o<<6;c[f+52>>2]=d[M+7|0]<<6;c[f+72>>2]=1651078259;q=f+100|0;if((n&16|0)==0){c[q>>2]=l;c[f+104>>2]=m;da=0;i=k;return da|0}else{c[q>>2]=p;c[f+104>>2]=o;da=0;i=k;return da|0}}}while(0);if((n&16384|0)!=0){da=6;i=k;return da|0}M=c[H+1892>>2]|0;do{if((M|0)==0){$W(r|0,L+48|0,16)|0;O=c[H+1392>>2]|0;P=c[H+1396>>2]|0;R=0}else{N=H+2024|0;O=d[N]|0;a:do{if((O|0)==0){P=a[(c[N+8>>2]|0)+h|0]|0}else if((O|0)==3){W=N+16|0;S=N+20|0;if((h-(c[W>>2]|0)|0)>>>0<(c[S>>2]|0)>>>0){P=a[N+24|0]|0;break}Y=c[N+8>>2]|0;Q=Y+(c[N+12>>2]|0)|0;R=(d[Y]<<8&65535|d[Y+1|0])&65535;Y=Y+2|0;while(1){if(R>>>0>h>>>0){P=0;break a}P=a[Y]|0;O=Y+3|0;Y=(d[Y+1|0]<<8&65535|d[Y+2|0])&65535;if(Y>>>0>h>>>0){break}if(O>>>0<Q>>>0){R=Y;Y=O}else{P=0;break a}}c[W>>2]=R;c[S>>2]=Y-R;a[N+24|0]=P}else{P=0}}while(0);if((P&255)>>>0>=M>>>0){P=M+255&255}L=c[L+64>>2]|0;P=H+1896+((P&255)<<2)|0;O=c[P>>2]|0;M=c[O+64>>2]|0;$W(r|0,O+48|0,16)|0;P=c[P>>2]|0;O=c[P+68>>2]|0;P=c[P+72>>2]|0;if((L|0)==(M|0)){R=0;break}c[g>>2]=_I(c[g>>2]|0,L,M)|0;c[u>>2]=_I(c[u>>2]|0,L,M)|0;R=1}}while(0);L=f+108|0;N=f+110|0;b[N>>1]=0;b[L>>1]=0;Q=(n&1|0)==0;if(Q){M=(n&2|0)!=0}else{M=1}S=f+72|0;c[S>>2]=1869968492;Y=n>>>16&15;$=c[I>>2]|0;bX(X|0,0,928)|0;a[o+65|0]=1;_=o+4|0;c[_>>2]=z;W=o+8|0;c[W>>2]=f;c[X>>2]=c[z+100>>2];aa=f+156|0;X=c[c[aa>>2]>>2]|0;c[o+12>>2]=X;c[o+16>>2]=X+20;c[o+20>>2]=X+56;kJ(X);X=o+72|0;c[X>>2]=0;Z=o+68|0;c[Z>>2]=0;if(!(M|K)){c[X>>2]=c[c[j+40>>2]>>2];c[Z>>2]=c[(c[aa>>2]|0)+36>>2]}bXbX(b|0,0,32)|0;c[b>>2]=e;l=b+4|0;c[l>>2]=IK(e)|0;n=EK(e,o)|0;a:do{if((c[h>>2]|0)==0){m=n&65535;if(n<<16>>16==0){p=0;i=g;return p|0}p=VK(e,o)|0;if((c[h>>2]|0)!=0){break}o=p&255;if(p<<24>>24==0|(p&255)>4){c[h>>2]=8;break}c[b+8>>2]=m;n=b+12|0;a[n]=p;p=da(o,m+1|0)|0;c[b+16>>2]=p+3+(c[l>>2]|0);p=DK(e,p-o|0)|0;c[h>>2]=p;if((p|0)!=0){break}l=CK(c[b>>2]|0,k,d[n]|0)|0;m=(l|0)==0;if(!m){c[h>>2]=l;break}n=a[n]|0;do{if(n<<24>>24==0){c[h>>2]=l}else{p=n&255;o=0;n=0;do{n=d[k+o|0]|0|n<<8;o=o+1|0;}while((o|0)<(p|0));c[h>>2]=l;if(!m){break a}if((n|0)==0){break}k=n+ -1|0;c[b+20>>2]=k;if(f<<24>>24==0){e=DK(e,k)|0}else{e=LK(e,k,b+28|0)|0}c[h>>2]=e;if((e|0)==0){b=0}else{break a}i=g;return b|0}}while(0);c[h>>2]=8}}while(0);p=b+24|0;lJ(j,c[p>>2]|0);c[p>>2]=0;p=c[h>>2]|0;i=g;return p|0}function CV(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=i;o=i;i=i+8|0;r=o;g=i;i=i+8|0;p=g;c[g>>2]=0;m=c[(c[b>>2]|0)+28>>2]|0;c[e>>2]=0;j=b+24|0;a:do{if((c[j>>2]|0)==0){c[o>>2]=0;n=c[b>>2]|0;q=c[n+28>>2]|0;l=b+8|0;s=c[l>>2]|0;b:do{if((s|0)!=0){v=s+1|0;t=d[b+12|0]|0;u=da(t,v)|0;c[j>>2]=oJ(q,4,0,v,0,r)|0;do{if((c[o>>2]|0)==0){v=PJ(n,(c[b+4>>2]|0)+3|0)|0;c[o>>2]=v;if((v|0)!=0){break}v=MK(n,u)|0;c[o>>2]=v;if((v|0)!=0){break}s=c[j>>2]|0;v=c[n+32>>2]|0;r=v+u|0;do{if((t|0)==2){if((u|0)<=0){break}while(1){c[s>>2]=(d[v]<<8&65535|d[v+1|0])&65535;v=v+2|0;if(v>>>0<r>>>0){s=s+4|0}else{break}}}else if((t|0)==3){if((u|0)<=0){break}while(1){c[s>>2]=d[v+1|0]<<8|a[v]<<16|d[v+2|0];v=v+3|0;if(v>>>0<r>>>0){s=s+4|0}else{break}}}else if((t|0)==1){if((u|0)<=0){break}while(1){c[s>>2]=d[v]|0;v=v+1|0;if(v>>>0<r>>>0){s=s+4|0}else{break}}}else{if((u|0)<=0){break}while(1){c[s>>2]=d[v+1|0]<<16|d[v]<<24|d[v+2|0]<<8|d[v+3|0];v=v+4|0;if(v>>>0<r>>>0){s=s+4|0}else{break}}}}while(0);PK(n);if((c[o>>2]|0)==0){break b}}}while(0);lJ(q,c[j>>2]|0);c[j>>2]=0;v=c[o>>2]|0;c[g>>2]=v;if((v|0)==0){break a}v=g;v=c[v>>2]|0;i=h;return v|0}}while(0);c[g>>2]=0}else{l=b+8|0}}while(0);n=c[l>>2]|0;if((n|0)==0){v=g;v=c[v>>2]|0;i=h;return v|0}q=oJ(m,4,0,n+1|0,0,p)|0;if((c[g>>2]|0)!=0){v=g;v=c[v>>2]|0;i=h;return v|0}o=(f|0)!=0;n=b+20|0;do{if(o){m=jJ(m,(c[l>>2]|0)+(c[n>>2]|0)|0,p)|0;if((c[g>>2]|0)==0){break}v=g;v=c[v>>2]|0;i=h;return v|0}else{m=0}}while(0);b=c[b+28>>2]|0;p=(c[c[j>>2]>>2]|0)+ -1|0;r=p>>>0>=(c[n>>2]|0)>>>0?0:p;c[q>>2]=(o?m:b)+r;s=c[l>>2]|0;c:do{if((s|0)!=0){if(o){t=0;p=1}else{p=1;while(1){t=(c[(c[j>>2]|0)+(p<<2)>>2]|0)+ -1|0;if((t|0)==0|t>>>0<r>>>0){k=33}else{if(t>>>0>=(c[n>>2]|0)>>>0&p>>>0<s>>>0){k=33}else{r=t}}if((k|0)==33){k=0}c[q+(p<<2)>>2]=b+r;s=c[l>>2]|0;p=p+1|0;if(p>>>0>s>>>0){break c}}}do{u=(c[(c[j>>2]|0)+(p<<2)>>2]|0)+ -1|0;do{if((u|0)==0|u>>>0<r>>>0){k=27}else{if(u>>>0>=(c[n>>2]|0)>>>0&p>>>0<s>>>0){k=27;break}s=m+(u+t)|0;v=q+(p<<2)|0;c[v>>2]=s;if((u|0)==(r|0)){r=u;break}w=c[q+(p+ -1<<2)>>2]|0;$W(w|0,b+r|0,s-w|0)|0;a[c[v>>2]|0]=0;c[v>>2]=(c[v>>2]|0)+1;t=t+1|0;r=u}}while(0);if((k|0)==27){k=0;c[q+(p<<2)>>2]=m+(r+t)}p=p+1|0;s=c[l>>2]|0;}while(p>>>0<=s>>>0)}}while(0);c[e>>2]=q;if(!o){w=g;w=c[w>>2]|0;i=h;return w|0}c[f>>2]=m;w=g;w=c[w>>2]|0;i=h;return w|0}function DV(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=i;l=i;i=i+416|0;k=l;s=i;i=i+8|0;q=s;t=i;i=i+8|0;c[s>>2]=0;bX(l|0,0,408)|0;o=k+16|0;n=k+404|0;c[n>>2]=o;p=k+408|0;c[p>>2]=4096;m=k+412|0;c[m>>2]=b;c[l>>2]=h;bX(b|0,0,168)|0;c[b+32>>2]=-6553600;c[b+36>>2]=3276800;c[b+44>>2]=2;c[b+48>>2]=65536;c[b+60>>2]=65536;c[b+152>>2]=8720;c[b>>2]=65535;c[b+4>>2]=65535;c[b+8>>2]=65535;c[b+12>>2]=65535;c[b+16>>2]=65535;c[b+20>>2]=65535;c[b+124>>2]=65535;r=b+128|0;c[r>>2]=65535;c[b+132>>2]=65535;c[b+168>>2]=65535;e=AV(d,e,q,t)|0;if((e|0)==0){e=c[s>>2]|0;e=EV(k,e,e+(c[t>>2]|0)|0)|0}if((c[d+28>>2]|0)==0){NK(c[d>>2]|0,q)}if((e|0)!=0){i=j;return e|0}if((c[r>>2]|0)!=65535){e=0;i=j;return e|0}q=b+112|0;s=c[q>>2]|0;do{if((s|0)!=0){r=b+116|0;if((c[r>>2]|0)==0){break}d=b+172|0;bX(d|0,0,360)|0;c[b+372>>2]=7;c[b+376>>2]=1;c[b+504>>2]=-1;c[b+512>>2]=3932;c[b+368>>2]=2596864;bXbX$W(e|0,k|0,32)|0;l=f;l=c[l>>2]|0;i=g;return l|0}function XV(a){a=a|0;i=i;return(c[a+8>>2]|0)>>>9&1|0}function YV(a){a=a|0;var b=0;b=i;bX(a|0,0,24)|0;i=b;return}function ZV(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;e=i;i=i+8|0;j=e;k=c[a>>2]|0;c[e>>2]=0;g=c[b+8>>2]|0;if((b|0)==(d|0)){m=0;i=f;return m|0}a=b+12|0;if((c[a>>2]|0)==0){$W(d|0,b|0,24)|0;m=0;i=f;return m|0}g=da(c[b>>2]|0,(g|0)<0?0-g|0:g)|0;h=d+12|0;l=c[h>>2]|0;do{if((l|0)==0){l=OK(k,g,j)|0;c[h>>2]=l}else{m=c[d+8>>2]|0;m=da((m|0)<0?0-m|0:m,c[d>>2]|0)|0;if((m|0)==(g|0)){break}l=$K(k,1,m,g,l,j)|0;c[h>>2]=l}}while(0);j=c[e>>2]|0;if((j|0)!=0){m=j;i=f;return m|0}$W(d|0,b|0,24)|0;c[h>>2]=l;$W(l|0,c[a>>2]|0,g|0)|0;m=c[e>>2]|0;i=f;return m|0}function _V(a,b){a=a|0;b=b|0;var d=0;d=i;if((a|0)==0){b=33;i=d;return b|0}if((b|0)==0){b=6;i=d;return b|0}lJ(c[a>>2]|0,c[b+12>>2]|0);bX(b|0,0,24)|0;b=0;i=d;return b|0}function $V(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;j=i;i=i+8|0;k=j;e=i;i=i+8|0;h=e;m=b+28|0;f=c[m>>2]|0;n=aW(b)|0;c[e>>2]=n;if((n|0)!=0){n=e;n=c[n>>2]|0;i=g;return n|0}bX(a|0,0,40)|0;n=a+28|0;c[n>>2]=f;d=OK(f,8276,h)|0;a:do{if((c[e>>2]|0)==0){l=d+12|0;c[d+4>>2]=a;c[d>>2]=b;c[d+8>>2]=c[n>>2];n=d+8264|0;c[d+8272>>2]=n;c[d+8268>>2]=n;c[n>>2]=0;n=aW(b)|0;do{if((n|0)==0){c[d+68>>2]=IK(b)|0;c[d+44>>2]=92;c[d+48>>2]=93;c[d+52>>2]=c[m>>2];c[d+16>>2]=0;c[l>>2]=d+4168;if((wc(l|0,-15,291008,56)|0)!=0){n=3;break}if((c[l>>2]|0)==0){n=3;break}c[e>>2]=0;c[a+12>>2]=d;break a}}while(0);c[e>>2]=n;lJ(f,d);n=e;n=c[n>>2]|0;i=g;return n|0}}while(0);l=c[b+8>>2]|0;do{if((PJ(b,(c[b+4>>2]|0)+ -4|0)|0)==0){k=GK(b,k)|0;j=(c[j>>2]|0)!=0?0:k;PJ(b,l)|0;if(!((j|0)!=0&j>>>0<40960)){break}b=jJ(f,j,h)|0;do{if((c[e>>2]|0)==0){if((bW(d,0,b,j)|0)!=(j|0)){bW(d,0,0,0)|0;lJ(f,b);break}Wc(d+12|0)|0;c[d+44>>2]=0;c[d+48>>2]=0;c[d+52>>2]=0;c[d+24>>2]=0;c[d+28>>2]=0;bXbX(d|0,0,20)|0;lJ(a,d);c[e>>2]=0;i=b;return}function dW(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;a=bW(c[a+12>>2]|0,b,d,e)|0;i=f;return a|0}function eW(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=i;e=i;i=i+8|0;a=jJ(a,da(c,b)|0,e)|0;i=d;return a|0}function fW(a,b){a=a|0;b=b|0;var c=0;c=i;lJ(a,b);i=c;return}function gW(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;h=i;i=i+8|0;k=h;f=i;i=i+8|0;m=f;j=d+28|0;g=c[j>>2]|0;l=PJ(d,0)|0;do{if((l|0)==0){l=CK(d,k,2)|0;if((l|0)!=0){break}if((a[h]|0)!=31){l=3;break}l=k+1|0;if((a[l]|0)!=-99){l=3;break}c[f>>2]=0;bX(b|0,0,40)|0;n=b+28|0;c[n>>2]=g;m=jJ(g,4292,m)|0;o=c[f>>2]|0;a:do{if((o|0)==0){c[m+4>>2]=b;c[m>>2]=d;c[m+8>>2]=c[n>>2];n=m+4280|0;c[m+4288>>2]=n;c[m+4284>>2]=n;c[n>>2]=0;n=PJ(d,0)|0;do{if((n|0)==0){n=CK(d,k,2)|0;if((n|0)!=0){break}if((a[h]|0)!=31){n=3;break}if((a[l]|0)!=-99){n=3;break}o=m+12|0;bX(o|0,0,172)|0;c[m+176>>2]=d;c[m+180>>2]=c[j>>2];c[m+88>>2]=0;c[m+92>>2]=0;c[m+96>>2]=0;c[m+100>>2]=m+112;c[m+108>>2]=64;c[m+16>>2]=0;c[m+36>>2]=0;c[m+40>>2]=0;a[m+44|0]=0;c[m+48>>2]=0;c[m+104>>2]=0;c[m+64>>2]=9;c[o>>2]=0;c[f>>2]=0;c[b+12>>2]=m;o=0;break a}}while(0);c[f>>2]=n;lJ(g,m);o=c[f>>2]|0;i=e;return o|0}}while(0);c[b+4>>2]=2147483647;c[b+8>>2]=0;c[b>>2]=0;c[b+20>>2]=45;c[b+24>>2]=343;i=e;return o|0}}while(0);c[f>>2]=l;o=l;i=e;return o|0}function hW(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;h=c[b+12>>2]|0;b=h+4280|0;m=c[b>>2]|0;do{if(m>>>0>d>>>0){l=m-d|0;k=h+4284|0;j=c[k>>2]|0;if(l>>>0<=(j-(h+184)|0)>>>0){c[k>>2]=j+(0-l);c[b>>2]=d;j=12;break}if((PJ(c[h>>2]|0,0)|0)==0){c[h+16>>2]=0;c[h+36>>2]=0;c[h+40>>2]=0;a[h+44|0]=0;c[h+48>>2]=0;c[h+104>>2]=0;c[h+64>>2]=9;c[h+12>>2]=0;c[h+4288>>2]=b;c[k>>2]=b;c[b>>2]=0;m=0;j=6;break}else{o=0;i=g;return o|0}}else{j=6}}while(0);do{if((j|0)==6){if(m>>>0>=d>>>0){j=12;break}l=d-m|0;k=h+4288|0;d=h+4284|0;n=c[d>>2]|0;o=(c[k>>2]|0)-n|0;o=o>>>0<l>>>0?o:l;c[d>>2]=n+o;c[b>>2]=o+m;a:do{if((o|0)!=(l|0)){m=h+12|0;l=l-o|0;while(1){n=l>>>0<4096?l:4096;if((jW(m,0,n)|0)>>>0<n>>>0){o=0;break}c[b>>2]=(c[b>>2]|0)+n;if((l|0)==(n|0)){break a}else{l=l-n|0}}i=g;return o|0}}while(0);if((f|0)==0){o=0}else{break}i=g;return o|0}}while(0);do{if((j|0)==12){if((f|0)==0){o=0;i=g;return o|0}else{d=h+4284|0;k=h+4288|0;break}}}while(0);j=h+12|0;h=h+184|0;l=c[d>>2]|0;n=c[k>>2]|0;o=0;while(1){m=n-l|0;m=m>>>0<f>>>0?m:f;$W(e+o|0,l|0,m|0)|0;o=m+o|0;c[d>>2]=(c[d>>2]|0)+m;c[b>>2]=(c[b>>2]|0)+m;if((f|0)==(m|0)){j=17;break}c[d>>2]=h;p=jW(j,h,4096)|0;l=c[d>>2]|0;n=l+p|0;c[k>>2]=n;if((p|0)==0){j=17;break}else{f=f-m|0}}if((j|0)==17){i=g;return o|0}return 0}function iW(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=b+12|0;e=c[f>>2]|0;if((e|0)==0){i=d;return}b=c[b+28>>2]|0;g=c[e+180>>2]|0;c[e+16>>2]=0;c[e+36>>2]=0;c[e+40>>2]=0;a[e+44|0]=0;c[e+48>>2]=0;c[e+104>>2]=0;c[e+64>>2]=9;c[e+12>>2]=0;h=e+100|0;j=c[h>>2]|0;if((j|0)!=(e+112|0)){lJ(g,j);c[h>>2]=0}lJ(g,c[e+88>>2]|0);bX(e|0,0,184)|0;lJ(b,e);c[f>>2]=0;i=d;return}function jW(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,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=i;o=i;i=i+8|0;n=o;r=i;i=i+8|0;t=r;m=i;i=i+8|0;p=m;q=i;i=i+8|0;s=q;y=i;i=i+8|0;u=y;l=e+68|0;w=c[l>>2]|0;h=e+64|0;v=c[h>>2]|0;j=e+72|0;x=c[j>>2]|0;if((g|0)==0){H=x;G=w;F=v;J=0;I=h;c[I>>2]=F;I=l;c[I>>2]=G;I=j;c[I>>2]=H;i=k;return J|0}z=c[e>>2]|0;do{if((z|0)==1){z=x;u=0;y=12}else if((z|0)==0){z=e+164|0;if((PJ(c[z>>2]|0,2)|0)!=0){g=0;y=55;break}if((KK(c[z>>2]|0,u,1)|0)!=1){g=0;y=55;break}z=d[y]|0;u=z&31;c[e+40>>2]=u;c[e+44>>2]=z&128;y=1<<u;c[e+48>>2]=y+ -256;if(u>>>0>16){g=0;y=55;break}c[e+52>>2]=9;c[e+56>>2]=z>>>7;c[e+60>>2]=u>>>0>9?256:y+ -255|0;u=kW(e)|0;if((u|0)<0){x=0;g=0;y=55;break}if((f|0)!=0){a[f]=u}if(g>>>0<2){H=0;G=u;F=u;J=1;I=h;c[I>>2]=F;I=l;c[I>>2]=G;I=j;c[I>>2]=H;i=k;return J|0}else{c[e>>2]=1;z=0;w=u;v=u;u=1;y=12;break}}else if((z|0)==2){z=e+92|0;B=e+88|0;u=0;y=39}else{H=x;G=w;F=v;J=0;I=h;c[I>>2]=F;I=l;c[I>>2]=G;I=j;c[I>>2]=H;i=k;return J|0}}while(0);a:while(1){if((y|0)==12){x=kW(e)|0;if((x|0)<0){x=z;g=u;y=55;continue}do{if((x|0)==256){if((c[e+44>>2]|0)==0){x=256;y=17;break}c[e+56>>2]=0;a[e+32|0]=1;x=kW(e)|0;if((x|0)<0){x=z;g=u;y=55;continue a}else{y=16}}else{y=16}}while(0);if((y|0)==16){y=0;if(x>>>0>255){y=17}else{A=x;w=x}}do{if((y|0)==17){if((x+ -256|0)>>>0<(c[e+56>>2]|0)>>>0){F=x}else{y=e+92|0;B=c[y>>2]|0;z=e+96|0;A=c[z>>2]|0;if(B>>>0>=A>>>0){C=c[e+168>>2]|0;B=A+4+(A>>>1)|0;D=e+88|0;E=c[D>>2]|0;if((E|0)==(e+100|0)){c[D>>2]=0;E=0;A=0}c[D>>2]=oJ(C,1,A,B,E,s)|0;if((c[q>>2]|0)!=0){g=u;y=55;continue a}c[z>>2]=B;B=c[y>>2]|0}c[y>>2]=B+1;a[(c[e+88>>2]|0)+B|0]=w;F=v}if(F>>>0<=255){A=x;w=F;break}C=e+76|0;A=e+92|0;z=e+96|0;E=e+80|0;B=e+88|0;D=e+168|0;y=e+100|0;G=c[C>>2]|0;while(1){if((G|0)==0){g=u;y=55;continue a}G=c[A>>2]|0;I=c[z>>2]|0;if(G>>>0>=I>>>0){H=c[D>>2]|0;G=I+4+(I>>>1)|0;J=c[B>>2]|0;if((J|0)==(y|0)){c[B>>2]=0;J=0;I=0}c[B>>2]=oJ(H,1,I,G,J,p)|0;if((c[m>>2]|0)!=0){g=u;y=55;continue a}c[z>>2]=G;G=c[A>>2]|0}J=F+ -256|0;F=a[(c[E>>2]|0)+J|0]|0;c[A>>2]=G+1;a[(c[B>>2]|0)+G|0]=F;G=c[C>>2]|0;J=b[G+(J<<1)>>1]|0;F=J&65535;if((J&65535)<=255){A=x;w=F;break}}}}while(0);z=e+92|0;y=c[z>>2]|0;x=e+96|0;C=c[x>>2]|0;if(y>>>0>=C>>>0){D=c[e+168>>2]|0;y=C+4+(C>>>1)|0;B=e+88|0;E=c[B>>2]|0;if((E|0)==(e+100|0)){c[B>>2]=0;E=0;C=0}c[B>>2]=oJ(D,1,C,y,E,t)|0;if((c[r>>2]|0)!=0){x=A;g=u;y=55;continue}c[x>>2]=y;y=c[z>>2]|0}c[z>>2]=y+1;B=e+88|0;a[(c[B>>2]|0)+y|0]=w;c[e>>2]=2;x=A;y=39;continue}else if((y|0)==39){b:do{if((f|0)==0){y=c[z>>2]|0;while(1){if((y|0)==0){break b}y=y+ -1|0;c[z>>2]=y;u=u+1|0;if((u|0)==(g|0)){y=54;break a}}}else{while(1){y=c[z>>2]|0;if((y|0)==0){break b}J=y+ -1|0;c[z>>2]=J;a[f+u|0]=a[(c[B>>2]|0)+J|0]|0;u=u+1|0;if((u|0)==(g|0)){y=54;break a}}}}while(0);y=e+56|0;z=c[y>>2]|0;if(z>>>0<(c[e+48>>2]|0)>>>0){A=e+84|0;B=c[A>>2]|0;if(z>>>0<B>>>0){A=z;z=e+76|0;B=e+80|0}else{if((B|0)==0){D=512}else{D=(B>>>2)+B|0}z=e+76|0;C=oJ(c[e+168>>2]|0,3,B,D,c[z>>2]|0,n)|0;c[z>>2]=C;if((c[o>>2]|0)!=0){g=u;y=55;continue}I=C+(D<<1)|0;J=e+80|0;c[J>>2]=I;aX(I|0,C+(B<<1)|0,B|0)|0;c[A>>2]=D;A=c[y>>2]|0;B=J}b[(c[z>>2]|0)+(A<<1)>>1]=v;a[(c[B>>2]|0)+(c[y>>2]|0)|0]=w;c[y>>2]=(c[y>>2]|0)+1}c[e>>2]=1;z=x;v=x;y=12;continue}else if((y|0)==55){c[e>>2]=3;y=54;break}}if((y|0)==54){J=h;c[J>>2]=v;J=l;c[J>>2]=w;J=j;c[J>>2]=x;i=k;return g|0}return 0}function kW(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;g=b+52|0;l=c[g>>2]|0;f=b+24|0;m=c[f>>2]|0;h=b+32|0;j=(a[h]|0)==0;do{if(j){if((m|0)>=(c[b+28>>2]|0)){k=4;break}if((c[b+56>>2]|0)>>>0<(c[b+60>>2]|0)>>>0){h=l}else{k=4}}else{k=4}}while(0);do{if((k|0)==4){k=b+60|0;if((c[b+56>>2]|0)>>>0>=(c[k>>2]|0)>>>0){l=l+1|0;c[g>>2]=l;if(l>>>0<(c[b+40>>2]|0)>>>0){m=(1<<l)+ -256|0}else{m=(c[b+48>>2]|0)+1|0}c[k>>2]=m}if(j){h=l}else{c[g>>2]=9;c[k>>2]=256;a[h]=0;h=9}j=b+4|0;if((c[j>>2]|0)!=0){m=-1;i=e;return m|0}m=KK(c[b+164>>2]|0,b+8|0,h)|0;l=b+36|0;c[l>>2]=(c[l>>2]|0)+m;l=c[g>>2]|0;c[j>>2]=m>>>0<l>>>0;c[f>>2]=0;c[b+28>>2]=(m<<3|1)-l;if((m|0)==0){b=-1}else{m=0;break}i=e;return b|0}}while(0);c[f>>2]=m+h;f=m>>3;k=m&7;g=b+8+(f+1)|0;j=(d[b+8+f|0]|0)>>>k;k=8-k|0;l=h-k|0;if(l>>>0>7){l=l+ -8|0;h=k+8|0;b=b+8+(f+2)|0;j=d[g]<<k|j}else{h=k;b=g}if((l|0)==0){m=j;i=e;return m|0}m=(d[b]&(1<<l)+ -1)<<h|j;i=e;return m|0}function lW(a,b){a=+a;b=b|0;var c=0;c=i;a=+QW(a,b);i=c;return+a}function mW(a){a=a|0;i=i;return}function nW(a){a=a|0;i=i;return}function oW(a){a=a|0;i=i;return}function pW(a){a=a|0;i=i;return}function qW(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function rW(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function sW(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=i;i=i+56|0;g=f;if((a|0)==(b|0)){b=1;i=e;return b|0}if((b|0)==0){b=0;i=e;return b|0}b=vW(b,291080,291136,0)|0;if((b|0)==0){b=0;i=e;return b|0}bX(f|0,0,56)|0;c[f>>2]=b;c[g+8>>2]=a;c[g+12>>2]=-1;c[g+48>>2]=1;Jd[c[(c[b>>2]|0)+28>>2]&63](b,g,c[d>>2]|0,1);if((c[g+24>>2]|0)!=1){b=0;i=e;return b|0}c[d>>2]=c[g+16>>2];b=1;i=e;return b|0}function tW(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;if((c[d+8>>2]|0)!=(b|0)){i=g;return}b=d+16|0;h=c[b>>2]|0;if((h|0)==0){c[b>>2]=e;c[d+24>>2]=f;c[d+36>>2]=1;i=g;return}if((h|0)!=(e|0)){h=d+36|0;c[h>>2]=(c[h>>2]|0)+1;c[d+24>>2]=2;a[d+54|0]=1;i=g;return}e=d+24|0;if((c[e>>2]|0)!=2){i=g;return}c[e>>2]=f;i=g;return}function uW(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;if((b|0)!=(c[d+8>>2]|0)){h=c[b+8>>2]|0;Jd[c[(c[h>>2]|0)+28>>2]&63](h,d,e,f);i=g;return}b=d+16|0;h=c[b>>2]|0;if((h|0)==0){c[b>>2]=e;c[d+24>>2]=f;c[d+36>>2]=1;i=g;return}if((h|0)!=(e|0)){h=d+36|0;c[h>>2]=(c[h>>2]|0)+1;c[d+24>>2]=2;a[d+54|0]=1;i=g;return}e=d+24|0;if((c[e>>2]|0)!=2){i=g;return}c[e>>2]=f;i=g;return}function vW(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;m=i;i=i+56|0;g=m;h=c[a>>2]|0;j=a+(c[h+ -8>>2]|0)|0;h=c[h+ -4>>2]|0;c[m>>2]=d;c[g+4>>2]=a;c[g+8>>2]=b;c[g+12>>2]=e;b=g+16|0;m=g+20|0;k=g+24|0;e=g+28|0;a=g+32|0;l=g+40|0;bX
7337 bX(h|0,0,112)|0;h=f+4|0;c[h>>2]=a;g=f+8|0;c[g>>2]=-1;c[f+44>>2]=a;c[f+76>>2]=-1;OW(f,0);d=+MW(f,1,1);f=(c[h>>2]|0)-(c[g>>2]|0)+(c[f+108>>2]|0)|0;if((b|0)==0){i=e;return+d}if((f|0)!=0){a=a+f|0}c[b>>2]=a;i=e;return+d}function VW(){c[72964]=o}function WW(a){a=a|0;if((a|0)<65)return a|0;if((a|0)>90)return a|0;return a-65+97|0}function XW(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;while(e>>>0<d>>>0){f=WW(a[b+e|0]|0)|0;g=WW(a[c+e|0]|0)|0;if((f|0)==(g|0)&(f|0)==0)return 0;if((f|0)==0)return-1;if((g|0)==0)return 1;if((f|0)==(g|0)){e=e+1|0;continue}else{return(f>>>0>g>>>0?1:-1)|0}}return 0}function YW(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;u=u+1|0;c[a>>2]=u;while((e|0)<40){if((c[d+(e<<2)>>2]|0)==0){c[d+(e<<2)>>2]=u;c[d+((e<<2)+4)>>2]=b;c[d+((e<<2)+8)>>2]=0;return 0}e=e+2|0}Hb(116);Hb(111);Hb(111);Hb(32);Hb(109);Hb(97);Hb(110);Hb(121);Hb(32);Hb(115);Hb(101);Hb(116);Hb(106);Hb(109);Hb(112);Hb(115);Hb(32);Hb(105);Hb(110);Hb(32);Hb(97);Hb(32);Hb(102);Hb(117);Hb(110);Hb(99);Hb(116);Hb(105);Hb(111);Hb(110);Hb(32);Hb(99);Hb(97);Hb(108);Hb(108);Hb(44);Hb(32);Hb(98);Hb(117);Hb(105);Hb(108);Hb(100);Hb(32);Hb(119);Hb(105);Hb(116);Hb(104);Hb(32);Hb(97);Hb(32);Hb(104);Hb(105);Hb(103);Hb(104);Hb(101);Hb(114);Hb(32);Hb(118);Hb(97);Hb(108);Hb(117);Hb(101);Hb(32);Hb(102);Hb(111);Hb(114);Hb(32);Hb(77);Hb(65);Hb(88);Hb(95);Hb(83);Hb(69);Hb(84);Hb(74);Hb(77);Hb(80);Hb(83);Hb(10);ea(0);return 0}function ZW(b){b=b|0;var c=0;c=b;while(a[c]|0){c=c+1|0}return c-b|0}function _W(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){H=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}H=(b|0)<0?-1:0;return b>>c-32|0}function $W(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b|0;if((b&3)==(d&3)){while(b&3){if((e|0)==0)return f|0;a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function aX(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b]=a[c]|0}b=e}else{$W(b,c,d)|0}return b|0}function bX(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;i=b&3;h=d|d<<8|d<<16|d<<24;g=f&~3;if(i){i=b+4-i|0;while((b|0)<(i|0)){a[b]=d;b=b+1|0}}while((b|0)<(g|0)){c[b>>2]=h;b=b+4|0}}while((b|0)<(f|0)){a[b]=d;b=b+1|0}return b-e|0}function cX(b,c){b=b|0;c=c|0;var d=0,e=0;d=b+(ZW(b)|0)|0;do{a[d+e|0]=a[c+e|0];e=e+1|0}while(a[c+(e-1)|0]|0);return b|0}function dX(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){H=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}H=a<<c-32;return 0}function eX(b,c){b=b|0;c=c|0;var d=0;do{a[b+d|0]=a[c+d|0];d=d+1|0}while(a[c+(d-1)|0]|0);return b|0}function fX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=b-d-(c>>>0>a>>>0|0)>>>0;return(H=b,a-c>>>0|0)|0}function gX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return(H=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function hX(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;while((e|0)<(d|0)){a[b+e|0]=f?0:a[c+e|0]|0;f=f?1:(a[c+e|0]|0)==0;e=e+1|0}return b|0}function iX(a,b,c){a=a|0;b=b|0;c=c|0;var e=0,f=0,g=0;while((e|0)<(c|0)){g=d[a+e|0]|0;f=d[b+e|0]|0;if((g|0)!=(f|0))return((g|0)>(f|0)?1:-1)|0;e=e+1|0}return 0}function jX(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){H=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}H=0;return b>>>c-32|0}function kX(a,b){a=a|0;b=b|0;var d=0,e=0;while((d|0)<20){e=c[b+(d<<2)>>2]|0;if((e|0)==0)break;if((e|0)==(a|0)){return c[b+((d<<2)+4)>>2]|0}d=d+2|0}return 0}function lX(b){b=b|0;var c=0;c=a[n+(b>>>24)|0]|0;if((c|0)<8)return c|0;c=a[n+(b>>16&255)|0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>8&255)|0]|0;if((c|0)<8)return c+16|0;return(a[n+(b&255)|0]|0)+24|0}function mX(b){b=b|0;var c=0;c=a[m+(b&255)|0]|0;if((c|0)<8)return c|0;c=a[m+(b>>8&255)|0]|0;if((c|0)<8)return c+8|0;c=a[m+(b>>16&255)|0]|0;if((c|0)<8)return c+16|0;return(a[m+(b>>>24)|0]|0)+24|0}function nX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=da(d,f)|0;e=a>>>16;d=(c>>>16)+(da(d,e)|0)|0;b=b>>>16;a=da(b,f)|0;return(H=(d>>>16)+(da(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function oX(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=b>>31|((b|0)<0?-1:0)<<1;f=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;g=d>>31|((d|0)<0?-1:0)<<1;h=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;a=fX(e^a,f^b,e,f)|0;b=H;e=g^e;f=h^f;g=fX((tX(a,b,fX(g^c,h^d,g,h)|0,H,0)|0)^e,H^f,e,f)|0;return(H=H,g)|0}function pX(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+8|0;f=g|0;h=b>>31|((b|0)<0?-1:0)<<1;j=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;k=e>>31|((e|0)<0?-1:0)<<1;l=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;a=fX(h^a,j^b,h,j)|0;b=H;tX(a,b,fX(k^d,l^e,k,l)|0,H,f)|0;k=fX(c[f>>2]^h,c[f+4>>2]^j,h,j)|0;j=H;i=g;return(H=j,k)|0}function qX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;a=nX(e,f)|0;c=H;return(H=(da(b,f)|0)+(da(d,e)|0)+c|c&0,a|0|0)|0}function rX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=tX(a,b,c,d,0)|0;return(H=H,a)|0}function sX(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+8|0;f=g|0;tX(a,b,d,e,f)|0;i=g;return(H=c[f+4>>2]|0,c[f>>2]|0)|0}function tX(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=a;j=b;i=j;k=d;g=e;l=g;if((i|0)==0){d=(f|0)!=0;if((l|0)==0){if(d){c[f>>2]=(h>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(h>>>0)/(k>>>0)>>>0;return(H=l,m)|0}else{if(!d){l=0;m=0;return(H=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;l=0;m=0;return(H=l,m)|0}}m=(l|0)==0;do{if((k|0)==0){if(m){if((f|0)!=0){c[f>>2]=(i>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(i>>>0)/(k>>>0)>>>0;return(H=l,m)|0}if((h|0)==0){if((f|0)!=0){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(l>>>0)}k=0;m=(i>>>0)/(l>>>0)>>>0;return(H=k,m)|0}k=l-1|0;if((k&l|0)==0){if((f|0)!=0){c[f>>2]=a|0;c[f+4>>2]=k&i|b&0}k=0;m=i>>>((mX(l|0)|0)>>>0);return(H=k,m)|0}k=(lX(l|0)|0)-(lX(i|0)|0)|0;if(k>>>0<=30){b=k+1|0;m=31-k|0;j=b;a=i<<m|h>>>(b>>>0);b=i>>>(b>>>0);l=0;i=h<<m;break}if((f|0)==0){l=0;m=0;return(H=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;l=0;m=0;return(H=l,m)|0}else{if(!m){k=(lX(l|0)|0)-(lX(i|0)|0)|0;if(k>>>0<=31){l=k+1|0;m=31-k|0;b=k-31>>31;j=l;a=h>>>(l>>>0)&b|i<<m;b=i>>>(l>>>0)&b;l=0;i=h<<m;break}if((f|0)==0){l=0;m=0;return(H=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;l=0;m=0;return(H=l,m)|0}l=k-1|0;if((l&k|0)!=0){m=(lX(k|0)|0)+33-(lX(i|0)|0)|0;p=64-m|0;k=32-m|0;n=k>>31;o=m-32|0;b=o>>31;j=m;a=k-1>>31&i>>>(o>>>0)|(i<<k|h>>>(m>>>0))&b;b=b&i>>>(m>>>0);l=h<<p&n;i=(i<<p|h>>>(o>>>0))&n|h<<k&m-33>>31;break}if((f|0)!=0){c[f>>2]=l&h;c[f+4>>2]=0}if((k|0)==1){o=j|b&0;p=a|0|0;return(H=o,p)|0}else{p=mX(k|0)|0;o=i>>>(p>>>0)|0;p=i<<32-p|h>>>(p>>>0)|0;return(H=o,p)|0}}}while(0);if((j|0)==0){m=a;d=0;a=0}else{d=d|0|0;g=g|e&0;e=gX(d,g,-1,-1)|0;h=H;k=b;m=a;a=0;while(1){b=l>>>31|i<<1;l=a|l<<1;i=m<<1|i>>>31|0;k=m>>>31|k<<1|0;fX(e,h,i,k)|0;m=H;p=m>>31|((m|0)<0?-1:0)<<1;a=p&1;m=fX(i,k,p&d,(((m|0)<0?-1:0)>>31|((m|0)<0?-1:0)<<1)&g)|0;k=H;j=j-1|0;if((j|0)==0){break}else{i=b}}i=b;b=k;d=0}g=0;if((f|0)!=0){c[f>>2]=m;c[f+4>>2]=b}o=(l|0)>>>31|(i|g)<<1|(g<<1|l>>>31)&0|d;p=(l<<1|0>>>31)&-2|a;return(H=o,p)|0}function uX(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return dd[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function vX(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ed[a&3](b|0,c|0,d|0,e|0,f|0)}function wX(a,b){a=a|0;b=b|0;fd[a&511](b|0)}function xX(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;return gd[a&3](b|0,c|0,d|0,+e,+f)|0}function yX(a,b,c){a=a|0;b=b|0;c=c|0;hd[a&127](b|0,c|0)}function zX(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;return id[a&3](b|0,c|0,d|0,e|0,f|0,g|0)|0}function AX(a,b){a=a|0;b=b|0;return jd[a&511](b|0)|0}function BX
7343 var dd=[$X,bQ];var ed=[aY,LM,xW,wW];var fd=[bY,Te,Se,tg,sg,Gg,Fg,Jg,Ig,Pg,Og,Sg,hi,WF,Oi,Pi,hj,ij,tj,sj,kj,jj,vj,wj,rm,Fj,Ej,Hj,Ij,Ql,Nj,Mj,Pj,Qj,dm,Vj,Uj,Xj,Yj,km,ak,Pm,Rm,ik,hk,jk,ok,nk,pk,vk,uk,Bk,Fk,Ek,Gk,Kk,Jk,Mk,Lk,Vk,Uk,Xk,$k,Wk,sl,rl,ul,tl,Hl,Gl,Cm,yn,zn,ln,An,Gn,Fn,Xn,Wn,Yp,Xp,fq,eq,sq,rq,uq,jt,kt,lt,mt,sr,rr,nt,ot,pt,qt,Cr,Br,Kr,Jr,Or,Nr,Rr,Qr,Wr,Vr,_r,Zr,bs,as,fs,es,ks,js,us,ts,zs,ys,Cs,Bs,Fs,Es,Js,Is,Ms,Ls,Ps,Os,Ss,Rs,Ws,Vs,$s,_s,Hu,Gu,Iu,iv,hv,Sv,lv,kv,ov,Tv,Uv,qv,sv,rv,Vv,Wv,xv,wv,zv,Dv,Cv,Gv,Fv,Jv,Iv,Kv,Wx,Vx,ey,dy,oy,ny,Iy,Uy,az,hz,pz,wz,Cz,Kz,Jz,Uz,Tz,bA,aA,iA,hA,pA,oA,zA,yA,DA,CA,GA,FA,PA,OA,UA,TA,ZA,YA,cB,bB,jB,iB,TC,SC,YC,XC,_C,ZC,aD,$C,dD,cD,eD,gD,HD,GD,ID,KD,yE,xE,BE,AE,EE,DE,HE,GE,JE,IE,ME,LE,PE,OE,SE,RE,VE,UE,YE,XE,_E,ZE,xF,yF,wG,xG,vG,yG,MG,NG,QG,PG,$G,_G,rH,qH,wH,vH,DH,HH,LH,KH,OH,TH,SH,$H,_H,cI,sI,uI,vI,NI,MI,tL,xL,QL,VL,cM,kM,mM,vM,xM,zM,AM,BM,MM,SM,UM,XM,_M,dN,hN,tN,dO,jP,IP,SP,UP,cQ,dQ,kQ,IQ,aR,dR,fR,mS,pS,rS,tS,dT,gT,iT,kT,yT,BT,DT,FT,WT,tU,MU,RU,eV,hV,jV,lV,sV,wV,nW,qW,oW,pW,rW,KW,JW,rL,IL,KL,IN,DN,vN,mO,rO,yO,vO,UQ,YR,wU,cW,iW,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY];var gd=[cY,Ph,Bi,cY];var hd=[dY,wg,zh,NF,Tg,Ug,Vg,Xg,Yg,Zg,_g,$g,ah,bh,ii,ji,ki,li,ch,eh,fh,gh,hh,mi,ni,oi,ih,qi,ri,si,ti,ui,vi,wi,kh,mh,nh,oh,ph,qh,Ei,Fi,Hi,th,wh,xh,QF,SF,Ki,Ih,Lh,Nh,Kj,Sj,_j,nm,gk,$y,fz,oz,uz,Bz,Hz,Rz,_z,gA,nA,uA,vL,AL,HM,FS,GS,HS,IS,JS,KS,LS,MS,NS,OS,oT,pT,qT,JT,KT,LT,MT,gU,kU,oU,LL,GN,fW,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY];var id=[eY,UN,$P,eY];var jd=[fY,vg,yg,zg,Ag,Bg,Cg,Dg,Eg,Sh,Uh,Vh,Wh,Qh,Rh,Yh,Zh,_h,ai,bi,ci,di,Mi,XF,Mh,lj,Tl,Ul,Vl,Il,Kl,Ll,Yl,Zl,qm,sm,tm,um,vm,wm,Ml,Nl,Ol,Pl,Rl,Wl,_l,$l,am,bm,cm,em,fm,gm,hm,im,jm,lm,mm,Om,ck,dk,Qm,Sm,fk,om,pm,kk,xm,ym,qk,Hm,wk,yk,Ak,Im,Jm,Km,zm,Am,Nk,Lm,al,cl,Mm,vl,xl,Al,Nm,Bm,Dm,Em,wq,xq,et,gt,ht,it,Ou,Ku,Mu,Ju,Pu,xy,yy,gy,zy,ry,qy,Vy,dC,eC,fC,gC,cC,bz,pC,aC,bC,qC,iz,hC,iC,jC,kC,qz,rC,sC,xz,lC,mC,Dz,tC,uC,Lz,vC,Qz,wC,Vz,xC,yC,zC,cA,AC,BC,CC,jA,DC,EC,FC,qA,nC,oC,AA,EA,QA,VA,_A,dB,lB,AD,BD,CD,DD,ED,hD,iD,jD,aE,LD,ND,$E,aF,bF,cF,dF,eF,fF,gF,hF,iF,jF,kF,nF,oF,lF,mF,pF,qF,rF,sF,tF,uF,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,oI,pI,qI,rI,lM,CM,QM,YM,LN,MN,NN,sN,TN,XN,YN,eO,CP,JQ,$Q,eR,gR,lS,qS,sS,bT,ZS,cT,hT,jT,wT,xT,CT,ET,RT,PT,sU,dV,iV,kV,GV,HV,IV,JV,XV,VV,LW,zt,At,nu,pu,VR,WR,XR,nR,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY];var kd=[gY,uh];var ld=[hY,OF,PF,hY];var md=[iY,rh];var nd=[jY,yi];var od=[kY,Hg];var pd=[lY,Th,Kg,vq,VI,WL,gM,nM,oM,wM,GM,WM,fO,gO,mP,xP,JP,ZP,yP,KQ,LQ,OQ,PQ,YQ,hR,iR,uS,vS,$S,WS,lT,rT,GT,ST,XT,SU,mV,nV,TV,PV,NL,qN,eK,UR,dW,hW,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY];var qd=[mY,sh];var rd=[nY,Xh];var sd=[oY,ug,zi,Ai,Ci,Oh,Di,oj,pj,mj,Xl,lk,rk,Ck,Hk,Sk,ol,Bl,wl,Fm,kD,OD,KG,LG,sH,UI,tK,$L,aM,hM,qM,rM,sM,tM,uM,FM,PM,RM,VM,bO,iO,nP,pP,qP,KP,MP,aQ,AP,eQ,gQ,iQ,lQ,mQ,vP,wP,NQ,XQ,iS,kS,dS,SS,TS,VS,tT,eU,iU,mU,qU,bV,cV,RV,sW,Ve,We,Ch,Bh,Eh,HN,uK,BR,wR,ER,FR,xR,yR,CR,DR,IR,JR,KR,LR,zS,eW,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY];var td=[pY,gi];var ud=[qY,Kh,zW,yW,kO,lO,pO,qO];var vd=[rY,Fh,Gh,rY];var wd=[sY,ft];var xd=[tY,fy,py,tY];var yd=[uY,Hh];var zd=[vY,Ah];var Ad=[wY,Dh];var Bd=[xY,xg,$h,ei,fi,Ji,Qi,gj,Sl,mk,sk,Dk,Ik,Tk,pl,Cl,Gm,Bn,Nu,lD,PD,wF,zG,tI,RI,SI,TI,sL,uL,wL,yL,BL,PL,RL,SL,TL,XL,YL,bM,dM,eM,iM,DM,NM,ZM,$M,aN,bN,cN,eN,fN,gN,iN,jN,VN,WN,SN,$N,cO,AO,BO,CO,DO,EO,FO,GO,HO,IO,JO,KO,LO,MO,NO,OO,PO,QO,RO,SO,TO,UO,VO,WO,XO,YO,ZO,_O,$O,aP,bP,cP,dP,eP,fP,gP,hP,iP,kP,lP,oP,rP,sP,tP,LP,NP,OP,PP,QP,RP,TP,VP,WP,XP,YP,_P,fQ,hQ,jQ,EP,zP,uP,FQ,HQ,VQ,WQ,bR,kR,lR,jS,nS,wS,yS,aT,XS,YS,_S,RS,US,eT,mT,uT,vT,sT,zT,HT,IT,TT,NT,OT,QT,UT,YT,ZT,$T,aU,bU,cU,dU,fU,hU,jU,lU,nU,pU,LU,NU,OU,PU,TU,UU,fV,pV,qV,rV,tV,uV,vV,xV,yV,WV,UV,SV,QV,yh,Dq,Xq,gr,cv,ly,my,HK,JL,lN,oN,wN,ZN,tQ,uQ,oR,rR,BS,AS,nT,aV,zV,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY];var Cd=[yY,fj,Gj,Oj,Wj,bk,vF,dL,eL,fL,gL,hL,iL,jL,kL,lL,UL,sK,fM,jM,EM,JM,KM,GP,HP,DP,nQ,FP,cR,jR,oS,xS,fT,AT,VT,rU,QU,gV,oV,rN,WU,ZU,$U,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY];var Dd=[zY,yH,QI,zY];var Ed=[AY,Wg,vh,AY];var Fd=[BY,xH,OI,PI,TM,BY,BY,BY];var Gd=[CY,Re,Rg,Gi,Ii,RF,TF,UF,VF,Li,Jh,Ni,nj,Jl,xj,Jj,Rj,Zj,ek,zk,zl,Gr,Sr,Xr,cs,gs,qs,vs,Gs,Ts,Xs,Yv,Zv,_v,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,sw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,_w,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,Wy,Yy,_y,cz,dz,ez,jz,lz,nz,rz,sz,tz,yz,zz,Az,Ez,Fz,Gz,Mz,Nz,Pz,Wz,Xz,Zz,dA,eA,fA,kA,lA,mA,rA,sA,tA,QD,IH,MH,PH,UH,aI,zL,pN,aO,hO,GQ,MQ,EN,FN,zN,jO,oO,pR,qR,sR,tR,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY];var Hd=[DY,EY];var Id=[FY,pi,xi,FY];var Jd=[GY,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,Zi,_i,$i,aj,bj,cj,dj,Xy,Zy,Sy,_B,$B,kz,mz,Iz,Oz,Sz,Yz,$z,yM,IM,OM,tW,uW,xN,yN,vJ,RQ,MR,NR,OR,PR,QR,RR,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY];return{_saveSetjmp:YW,_memcmp:iX,_strncasecmp:XW,_strcat:cX,_free:BW,_main:_d,_realloc:CW,_i64Add:gX,_memmove:aX,_tolower:WW,_strlen:ZW,_memset:bX,_malloc:AW,_bitshift64Ashr:_W,_memcpy:$W,_strncpy:hX,_bitshift64Lshr:jX,_bitshift64Shl:dX,_i64Subtract:fX,_strcpy:eX,_testSetjmp:kX,runPostSets:VW,stackAlloc:Kd,stackSave:Ld,stackRestore:Md,setThrew:Nd,setTempRet0:Qd,setTempRet1:Rd,setTempRet2:Sd,setTempRet3:Td,setTempRet4:Ud,setTempRet5:Vd,setTempRet6:Wd,setTempRet7:Xd,setTempRet8:Yd,setTempRet9:Zd,dynCall_iiiiiiii:uX,dynCall_viiiii:vX,dynCall_vi:wX,dynCall_iiiidd:xX,dynCall_vii:yX,dynCall_iiiiiii:zX,dynCall_ii:AX,dynCall_viidd:BX,dynCall_viddii:CX,dynCall_viiddddddiiii:DX,dynCall_iiiiiiiiiiiidd:EX,dynCall_vidii:FX,dynCall_iiiii:GX,dynCall_iiiddddiii:HX,dynCall_viiiiiiiiiii:IX,dynCall_iiii:JX,dynCall_iiiddiiiiiiiiiii:KX,dynCall_viiiiii:LX,dynCall_viiiiiiiiiiiii:MX,dynCall_di:NX,dynCall_iiiiiiiiiii:OX,dynCall_viiiiiii:PX,dynCall_viiiiiiiii:QX,dynCall_viiiiiiiiii:RX,dynCall_iii:SX,dynCall_iiiiii:TX,dynCall_dii:UX,dynCall_viidddddd:VX,dynCall_iiiiiiiiii:WX,dynCall_viii:XX,dynCall_v:YX,dynCall_viid:ZX,dynCall_viiii:_X}})