��#� �,{1��z �-� �MR�z��S-N�vQ�~�^(u � ��U �MR�z��S�vg�S�N� � �\O:NMR�z��S� �O�k)Y��(W�TQ�~Sb�NS���S� �H�T�T�P� ���Bl0Yt_ekpenc0OS�R}���^0㉳Q��W�& & FOOw�vt�ُ�N�d\ÒT�vQ�~�StT� � �ُ�N�z �bO(u�g�[b�v�e �&^O�bQ�~�wƋ�^(u0R�[E��vMR�z�_�S-N0f[�[T �OO�S�s�YKNMRG�0R�v 0GY*� 0 �vQ�[�� g���S�_� � �#�#� �<�� �H�T�T�P� ���Bl�[b � �#�#�#� �F�e�t�c�h� �A�P�I� ��� � �#�#�#�#� ��W,g �G�E�T� ���Bl � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��g�{US�v �G�E�T� ���Bl �f�e�t�c�h�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s�'�)� � � �.�t�h�e�n�(�r�e�s�p�o�n�s�e� �=�>� �{� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��rx:�'�,� �r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�)�;� � � � � � � � �/�/� �2�0�0� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��r�e,g:�'�,� �r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�T�e�x�t�)�;� � �/�/� �O�K� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��T�^4Y:�'�,� �r�e�s�p�o�n�s�e�.�h�e�a�d�e�r�s�)�;� � � � � � � �/�/� �H�e�a�d�e�r�s� ��[a� � � � � � � � � � �/�/� ��h�g�T�^/f&Tb�R � � � � �i�f� �(�!�r�e�s�p�o�n�s�e�.�o�k�)� �{� � � � � � � �t�h�r�o�w� �n�e�w� �E�r�r�o�r�(��H�T�T�P� �e�r�r�o�r�!� �s�t�a�t�u�s�:� �$�{�r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�}��)�;� � � � � �}� � � � � � � � � � �r�e�t�u�r�n� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� � �/�/� �㉐g �J�S�O�N� � � �}�)� � � �.�t�h�e�n�(�d�a�t�a� �=�>� �{� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�penc:�'�,� �d�a�t�a�)�;� � � �}�)� � � �.�c�a�t�c�h�(�e�r�r�o�r� �=�>� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'���Bl1Y%�:�'�,� �e�r�r�o�r�)�;� � � �}�)�;� � �/�/� �O(u �a�s�y�n�c�/�a�w�a�i�t���cP� � �a�s�y�n�c� �f�u�n�c�t�i�o�n� �f�e�t�c�h�U�s�e�r�s�(�)� �{� � � �t�r�y� �{� � � � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s�'�)�;� � � � � � � � � � �i�f� �(�!�r�e�s�p�o�n�s�e�.�o�k�)� �{� � � � � � � �t�h�r�o�w� �n�e�w� �E�r�r�o�r�(��H�T�T�P� �$�{�r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�}��)�;� � � � � �}� � � � � � � � � � �c�o�n�s�t� �d�a�t�a� �=� �a�w�a�i�t� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�(u7bRh�:�'�,� �d�a�t�a�)�;� � � � � �r�e�t�u�r�n� �d�a�t�a�;� � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'���Bl1Y%�:�'�,� �e�r�r�o�r�)�;� � � �}� �}� ���� � �#�#�#�#� �P�O�S�T� ���Bl�c�Npenc � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��c�N �J�S�O�N� �penc �a�s�y�n�c� �f�u�n�c�t�i�o�n� �c�r�e�a�t�e�U�s�e�r�(�u�s�e�r�D�a�t�a�)� �{� � � �t�r�y� �{� � � � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s�'�,� �{� � � � � � � �m�e�t�h�o�d�:� �'�P�O�S�T�'�,� � � � � � � �h�e�a�d�e�r�s�:� �{� � � � � � � � � �'�C�o�n�t�e�n�t�-�T�y�p�e�'�:� �'�a�p�p�l�i�c�a�t�i�o�n�/�j�s�o�n�'�,� � � � � � � � � �'�A�u�t�h�o�r�i�z�a�t�i�o�n�'�:� �'�B�e�a�r�e�r� �Y�O�U�R��T�O�K�E�N�'� � � � � � � �}�,� � � � � � � �b�o�d�y�:� �J�S�O�N�.�s�t�r�i�n�g�i�f�y�(�u�s�e�r�D�a�t�a�)� � � � � �}�)�;� � � � � � � � � � �c�o�n�s�t� �r�e�s�u�l�t� �=� �a�w�a�i�t� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� � � � � �r�e�t�u�r�n� �r�e�s�u�l�t�;� � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�R�^(u7b1Y%�:�'�,� �e�r�r�o�r�)�;� � � �}� �}� � �/�/� �O(u �c�o�n�s�t� �n�e�w�U�s�e�r� �=� �{� � � �n�a�m�e�:� �'� _ N'�,� � � �e�m�a�i�l�:� �'�z�h�a�n�g�s�a�n�@�e�x�a�m�p�l�e�.�c�o�m�'�,� � � �a�g�e�:� �2�5� �}�;� � �c�r�e�a�t�e�U�s�e�r�(�n�e�w�U�s�e�r�)�;� ���� � �#�#�#�#� � N O�e�N � ����j�a�v�a�s�c�r�i�p�t� �/�/� � N O�VGr�e�N �a�s�y�n�c� �f�u�n�c�t�i�o�n� �u�p�l�o�a�d�I�m�a�g�e�(�f�i�l�e�)� �{� � � �c�o�n�s�t� �f�o�r�m�D�a�t�a� �=� �n�e�w� �F�o�r�m�D�a�t�a�(�)�;� � � �f�o�r�m�D�a�t�a�.�a�p�p�e�n�d�(�'�i�m�a�g�e�'�,� �f�i�l�e�)�;� � � �f�o�r�m�D�a�t�a�.�a�p�p�e�n�d�(�'�u�s�e�r�I�d�'�,� �'�1�2�3�'�)�;� � � � � � �t�r�y� �{� � � � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�p�l�o�a�d�'�,� �{� � � � � � � �m�e�t�h�o�d�:� �'�P�O�S�T�'�,� � � � � � � �b�o�d�y�:� �f�o�r�m�D�a�t�a� � �/�/� � N����n �C�o�n�t�e�n�t�-�T�y�p�e� �OmȉhVOꁨR��n � � � � �}�)�;� � � � � � � � � � �c�o�n�s�t� �r�e�s�u�l�t� �=� �a�w�a�i�t� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'� N Ob�R:�'�,� �r�e�s�u�l�t�.�u�r�l�)�;� � � � � �r�e�t�u�r�n� �r�e�s�u�l�t�;� � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'� N O1Y%�:�'�,� �e�r�r�o�r�)�;� � � �}� �}� � �/�/� �H�T�M�L� �/�/� �<�i�n�p�u�t� �t�y�p�e�=�"�f�i�l�e�"� �i�d�=�"�f�i�l�e�I�n�p�u�t�"� �a�c�c�e�p�t�=�"�i�m�a�g�e�/��"�>� � �d�o�c�u�m�e�n�t�.�g�e�t�E�l�e�m�e�n�t�B�y�I�d�(�'�f�i�l�e�I�n�p�u�t�'�)�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�c�h�a�n�g�e�'�,� �(�e�)� �=�>� �{� � � �c�o�n�s�t� �f�i�l�e� �=� �e�.�t�a�r�g�e�t�.�f�i�l�e�s�[�0�]�;� � � �i�f� �(�f�i�l�e�)� �{� � � � � �u�p�l�o�a�d�I�m�a�g�e�(�f�i�l�e�)�;� � � �}� �}�)�;� ���� � �#�#�#� �A�x�i�o�s� ��^O(u � ����j�a�v�a�s�c�r�i�p�t� �i�m�p�o�r�t� �a�x�i�o�s� �f�r�o�m� �'�a�x�i�o�s�'�;� � �/�/� �R�^�[�O �M�n�W@x �U�R�L� ��T���e �c�o�n�s�t� �a�p�i� �=� �a�x�i�o�s�.�c�r�e�a�t�e�(�{� � � �b�a�s�e�U�R�L�:� �'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�'�,� � � �t�i�m�e�o�u�t�:� �5�0�0�0�,� � � �h�e�a�d�e�r�s�:� �{� � � � � �'�C�o�n�t�e�n�t�-�T�y�p�e�'�:� �'�a�p�p�l�i�c�a�t�i�o�n�/�j�s�o�n�'� � � �}� �}�)�;� � �/�/� ���Bl�bbhV��m�R �t�o�k�e�n� � �a�p�i�.�i�n�t�e�r�c�e�p�t�o�r�s�.�r�e�q�u�e�s�t�.�u�s�e�(� � � �c�o�n�f�i�g� �=�>� �{� � � � � �c�o�n�s�t� �t�o�k�e�n� �=� �l�o�c�a�l�S�t�o�r�a�g�e�.�g�e�t�I�t�e�m�(�'�t�o�k�e�n�'�)�;� � � � � �i�f� �(�t�o�k�e�n�)� �{� � � � � � � �c�o�n�f�i�g�.�h�e�a�d�e�r�s�.�A�u�t�h�o�r�i�z�a�t�i�o�n� �=� ��B�e�a�r�e�r� �$�{�t�o�k�e�n�}��;� � � � � �}� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��S���Bl:�'�,� �c�o�n�f�i�g�.�u�r�l�)�;� � � � � �r�e�t�u�r�n� �c�o�n�f�i�g�;� � � �}�,� � � �e�r�r�o�r� �=�>� �{� � � � � �r�e�t�u�r�n� �P�r�o�m�i�s�e�.�r�e�j�e�c�t�(�e�r�r�o�r�)�;� � � �}� �)�;� � �/�/� ��T�^�bbhV��~�NYt�� � �a�p�i�.�i�n�t�e�r�c�e�p�t�o�r�s�.�r�e�s�p�o�n�s�e�.�u�s�e�(� � � �r�e�s�p�o�n�s�e� �=�>� �{� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�6e0R�T�^:�'�,� �r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�)�;� � � � � �r�e�t�u�r�n� �r�e�s�p�o�n�s�e�.�d�a�t�a�;� � �/�/� ��v�cԏ�Vpenc � � �}�,� � � �e�r�r�o�r� �=�>� �{� � � � � �i�f� �(�e�r�r�o�r�.�r�e�s�p�o�n�s�e�)� �{� � � � � � � �/�/� � g�RhVԏ�V�N�rx � � � � � � �s�w�i�t�c�h� �(�e�r�r�o�r�.�r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�)� �{� � � � � � � � � �c�a�s�e� �4�0�1�:� � � � � � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�*g�cCg ���{vU_'�)�;� � � � � � � � � � � �/�/� ��l�0R{vU_u� � � � � � � � � � � �w�i�n�d�o�w�.�l�o�c�a�t�i�o�n�.�h�r�e�f� �=� �'�/�l�o�g�i�n�'�;� � � � � � � � � � � �b�r�e�a�k�;� � � � � � � � � �c�a�s�e� �4�0�4�:� � � � � � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�D��n NX[(W'�)�;� � � � � � � � � � � �b�r�e�a�k�;� � � � � � � � � �c�a�s�e� �5�0�0�:� � � � � � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'� g�RhV��'�)�;� � � � � � � � � � � �b�r�e�a�k�;� � � � � � � � � �d�e�f�a�u�l�t�:� � � � � � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'���Bl1Y%�:�'�,� �e�r�r�o�r�.�r�e�s�p�o�n�s�e�.�d�a�t�a�)�;� � � � � � � �}� � � � � �}� �e�l�s�e� �i�f� �(�e�r�r�o�r�.�r�e�q�u�e�s�t�)� �{� � � � � � � �/�/� ���Bl�]�S�FO�l g6e0R�T�^ � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�Q�~�� ����h�gޏ�c'�)�;� � � � � �}� �e�l�s�e� �{� � � � � � � �/�/� ���BlM�n�Q� � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'���BlM�n��:�'�,� �e�r�r�o�r�.�m�e�s�s�a�g�e�)�;� � � � � �}� � � � � �r�e�t�u�r�n� �P�r�o�m�i�s�e�.�r�e�j�e�c�t�(�e�r�r�o�r�)�;� � � �}� �)�;� � �/�/� �O(u\ň}Y�v �A�P�I� �a�s�y�n�c� �f�u�n�c�t�i�o�n� �g�e�t�U�s�e�r�s�(�)� �{� � � �t�r�y� �{� � � � � �c�o�n�s�t� �d�a�t�a� �=� �a�w�a�i�t� �a�p�i�.�g�e�t�(�'�/�u�s�e�r�s�'�)�;� � � � � �r�e�t�u�r�n� �d�a�t�a�;� � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'����S(u7b1Y%�'�)�;� � � �}� �}� � �a�s�y�n�c� �f�u�n�c�t�i�o�n� �c�r�e�a�t�e�U�s�e�r�(�u�s�e�r�D�a�t�a�)� �{� � � �t�r�y� �{� � � � � �c�o�n�s�t� �d�a�t�a� �=� �a�w�a�i�t� �a�p�i�.�p�o�s�t�(�'�/�u�s�e�r�s�'�,� �u�s�e�r�D�a�t�a�)�;� � � � � �r�e�t�u�r�n� �d�a�t�a�;� � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�R�^(u7b1Y%�'�)�;� � � �}� �}� ���� � �#�#� �=� �Q�~'��OS � �#�#�#� �1�.� �D��n���R}� � ����h�t�m�l� �<�!�-�-� �D�N�S� ���㉐g �-�-�>� �<�l�i�n�k� �r�e�l�=�"�d�n�s�-�p�r�e�f�e�t�c�h�"� �h�r�e�f�=�"�/�/�c�d�n�.�e�x�a�m�p�l�e�.�c�o�m�"�>� �<�l�i�n�k� �r�e�l�=�"�d�n�s�-�p�r�e�f�e�t�c�h�"� �h�r�e�f�=�"�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�"�>� � �<�!�-�-� ���ޏ�c�D�N�S� �+� �T�C�P� �+� �T�L�S� �-�-�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�c�o�n�n�e�c�t�"� �h�r�e�f�=�"�h�t�t�p�s�:�/�/�f�o�n�t�s�.�g�o�o�g�l�e�a�p�i�s�.�c�o�m�"�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�c�o�n�n�e�c�t�"� �h�r�e�f�=�"�h�t�t�p�s�:�/�/�f�o�n�t�s�.�g�s�t�a�t�i�c�.�c�o�m�"� �c�r�o�s�s�o�r�i�g�i�n�>� � �<�!�-�-� ����R}�sQ.�D��n �-�-�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�l�o�a�d�"� �h�r�e�f�=�"�/�f�o�n�t�s�/�m�a�i�n�.�w�o�f�f�2�"� �a�s�=�"�f�o�n�t�"� �t�y�p�e�=�"�f�o�n�t�/�w�o�f�f�2�"� �c�r�o�s�s�o�r�i�g�i�n�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�l�o�a�d�"� �h�r�e�f�=�"�/�c�s�s�/�c�r�i�t�i�c�a�l�.�c�s�s�"� �a�s�=�"�s�t�y�l�e�"�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�l�o�a�d�"� �h�r�e�f�=�"�/�j�s�/�m�a�i�n�.�j�s�"� �a�s�=�"�s�c�r�i�p�t�"�>� � �<�!�-�-� ������SN�Nu�D��n �-�-�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�f�e�t�c�h�"� �h�r�e�f�=�"�/�n�e�x�t�-�p�a�g�e�.�h�t�m�l�"�>� �<�l�i�n�k� �r�e�l�=�"�p�r�e�f�e�t�c�h�"� �h�r�e�f�=�"�/�i�m�a�g�e�s�/�n�e�x�t�-�i�m�a�g�e�.�j�p�g�"�>� ���� � �#�#�#� �2�.� ��VGr�a�R}� � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��e_1��O(u �I�n�t�e�r�s�e�c�t�i�o�n� �O�b�s�e�r�v�e�r� �A�P�I� �c�l�a�s�s� �L�a�z�y�L�o�a�d� �{� � � �c�o�n�s�t�r�u�c�t�o�r�(�)� �{� � � � � �t�h�i�s�.�i�m�a�g�e�s� �=� �d�o�c�u�m�e�n�t�.�q�u�e�r�y�S�e�l�e�c�t�o�r�A�l�l�(�'�i�m�g�[�d�a�t�a�-�s�r�c�]�'�)�;� � � � � �t�h�i�s�.�o�b�s�e�r�v�e�r� �=� �n�e�w� �I�n�t�e�r�s�e�c�t�i�o�n�O�b�s�e�r�v�e�r�(� � � � � � � �t�h�i�s�.�h�a�n�d�l�e�I�n�t�e�r�s�e�c�t�i�o�n�.�b�i�n�d�(�t�h�i�s�)�,� � � � � � � �{� � � � � � � � � �r�o�o�t�M�a�r�g�i�n�:� �'�5�0�p�x� �0�p�x�'�,� � �/�/� ��cMR �5�0�p�x� ���Y�R}� � � � � � � � � �t�h�r�e�s�h�o�l�d�:� �0�.�0�1� � � � � � � �}� � � � � �)�;� � � � � � � � � � �t�h�i�s�.�o�b�s�e�r�v�e�(�)�;� � � �}� � � � � � �h�a�n�d�l�e�I�n�t�e�r�s�e�c�t�i�o�n�(�e�n�t�r�i�e�s�)� �{� � � � � �e�n�t�r�i�e�s�.�f�o�r�E�a�c�h�(�e�n�t�r�y� �=�>� �{� � � � � � � �i�f� �(�e�n�t�r�y�.�i�s�I�n�t�e�r�s�e�c�t�i�n�g�)� �{� � � � � � � � � �c�o�n�s�t� �i�m�g� �=� �e�n�t�r�y�.�t�a�r�g�e�t�;� � � � � � � � � �c�o�n�s�t� �s�r�c� �=� �i�m�g�.�d�a�t�a�s�e�t�.�s�r�c�;� � � � � � � � � � � � � � � � � � �/�/� �R�^�e�VGr�[a����R}� � � � � � � � � �c�o�n�s�t� �t�e�m�p�I�m�g� �=� �n�e�w� �I�m�a�g�e�(�)�;� � � � � � � � � �t�e�m�p�I�m�g�.�o�n�l�o�a�d� �=� �(�)� �=�>� �{� � � � � � � � � � � �i�m�g�.�s�r�c� �=� �s�r�c�;� � � � � � � � � � � �i�m�g�.�c�l�a�s�s�L�i�s�t�.�a�d�d�(�'�l�o�a�d�e�d�'�)�;� � � � � � � � � �}�;� � � � � � � � � �t�e�m�p�I�m�g�.�s�r�c� �=� �s�r�c�;� � � � � � � � � � � � � � � � � � �/�/� �\Pbk�[�]�R}��v�VGr � � � � � � � � �t�h�i�s�.�o�b�s�e�r�v�e�r�.�u�n�o�b�s�e�r�v�e�(�i�m�g�)�;� � � � � � � �}� � � � � �}�)�;� � � �}� � � � � � �o�b�s�e�r�v�e�(�)� �{� � � � � �t�h�i�s�.�i�m�a�g�e�s�.�f�o�r�E�a�c�h�(�i�m�g� �=�>� �t�h�i�s�.�o�b�s�e�r�v�e�r�.�o�b�s�e�r�v�e�(�i�m�g�)�)�;� � � �}� �}� � �/�/� �O(u �n�e�w� �L�a�z�y�L�o�a�d�(�)�;� � �/�/� �H�T�M�L� �/�/� �<�i�m�g� �d�a�t�a�-�s�r�c�=�"�i�m�a�g�e�.�j�p�g�"� �a�l�t�=�"��a�R}��VGr"� �c�l�a�s�s�=�"�l�a�z�y�"�>� ���� � ����h�t�m�l� �<�!�-�-� ��e_2��O(u�Su �l�o�a�d�i�n�g� �^'��{USFO|Q�['�] �-�-�>� �<�i�m�g� �s�r�c�=�"�i�m�a�g�e�.�j�p�g�"� �l�o�a�d�i�n�g�=�"�l�a�z�y�"� �a�l�t�=�"��VGr"�>� ���� � �#�#�#� �3�.� ���BlTv^NX[ � ����j�a�v�a�s�c�r�i�p�t� �/�/� ���BlTv^�ybϑ���S(u7b�Oo � �c�l�a�s�s� �R�e�q�u�e�s�t�B�a�t�c�h�e�r� �{� � � �c�o�n�s�t�r�u�c�t�o�r�(�f�e�t�c�h�F�n�,� �d�e�l�a�y� �=� �5�0�)� �{� � � � � �t�h�i�s�.�f�e�t�c�h�F�n� �=� �f�e�t�c�h�F�n�;� � � � � �t�h�i�s�.�d�e�l�a�y� �=� �d�e�l�a�y�;� � � � � �t�h�i�s�.�q�u�e�u�e� �=� �[�]�;� � � � � �t�h�i�s�.�t�i�m�e�r� �=� �n�u�l�l�;� � � �}� � � � � � �a�d�d�(�i�d�)� �{� � � � � �r�e�t�u�r�n� �n�e�w� �P�r�o�m�i�s�e�(�(�r�e�s�o�l�v�e�,� �r�e�j�e�c�t�)� �=�>� �{� � � � � � � �t�h�i�s�.�q�u�e�u�e�.�p�u�s�h�(�{� �i�d�,� �r�e�s�o�l�v�e�,� �r�e�j�e�c�t� �}�)�;� � � � � � � � � � � � � � �i�f� �(�t�h�i�s�.�t�i�m�e�r�)� �{� � � � � � � � � �c�l�e�a�r�T�i�m�e�o�u�t�(�t�h�i�s�.�t�i�m�e�r�)�;� � � � � � � �}� � � � � � � � � � � � � � �t�h�i�s�.�t�i�m�e�r� �=� �s�e�t�T�i�m�e�o�u�t�(�(�)� �=�>� �{� � � � � � � � � �t�h�i�s�.�f�l�u�s�h�(�)�;� � � � � � � �}�,� �t�h�i�s�.�d�e�l�a�y�)�;� � � � � �}�)�;� � � �}� � � � � � �a�s�y�n�c� �f�l�u�s�h�(�)� �{� � � � � �c�o�n�s�t� �i�t�e�m�s� �=� �t�h�i�s�.�q�u�e�u�e�.�s�l�i�c�e�(�)�;� � � � � �t�h�i�s�.�q�u�e�u�e� �=� �[�]�;� � � � � � � � � � �c�o�n�s�t� �i�d�s� �=� �i�t�e�m�s�.�m�a�p�(�i�t�e�m� �=�>� �i�t�e�m�.�i�d�)�;� � � � � � � � � � �t�r�y� �{� � � � � � � �/�/� �ybϑ��Bl � � � � � � �c�o�n�s�t� �r�e�s�u�l�t�s� �=� �a�w�a�i�t� �t�h�i�s�.�f�e�t�c�h�F�n�(�i�d�s�)�;� � � � � � � � � � � � � � �/�/� �\�~�gRM��~T*N �P�r�o�m�i�s�e� � � � � � � �i�t�e�m�s�.�f�o�r�E�a�c�h�(�i�t�e�m� �=�>� �{� � � � � � � � � �c�o�n�s�t� �r�e�s�u�l�t� �=� �r�e�s�u�l�t�s�.�f�i�n�d�(�r� �=�>� �r�.�i�d� �=�=�=� �i�t�e�m�.�i�d�)�;� � � � � � � � � �i�t�e�m�.�r�e�s�o�l�v�e�(�r�e�s�u�l�t�)�;� � � � � � � �}�)�;� � � � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � � � �i�t�e�m�s�.�f�o�r�E�a�c�h�(�i�t�e�m� �=�>� �i�t�e�m�.�r�e�j�e�c�t�(�e�r�r�o�r�)�)�;� � � � � �}� � � �}� �}� � �/�/� �ybϑ���S(u7b�Oo �a�s�y�n�c� �f�u�n�c�t�i�o�n� �f�e�t�c�h�U�s�e�r�s�B�y�I�d�s�(�i�d�s�)� �{� � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�(��/�a�p�i�/�u�s�e�r�s�?�i�d�s�=�$�{�i�d�s�.�j�o�i�n�(�'�,�'�)�}��)�;� � � �r�e�t�u�r�n� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� �}� � �c�o�n�s�t� �u�s�e�r�B�a�t�c�h�e�r� �=� �n�e�w� �R�e�q�u�e�s�t�B�a�t�c�h�e�r�(�f�e�t�c�h�U�s�e�r�s�B�y�I�d�s�)�;� � �/�/� �O(u�Y!k�(uOꁨRTv^ � �a�s�y�n�c� �f�u�n�c�t�i�o�n� �d�i�s�p�l�a�y�U�s�e�r�(�u�s�e�r�I�d�)� �{� � � �c�o�n�s�t� �u�s�e�r� �=� �a�w�a�i�t� �u�s�e�r�B�a�t�c�h�e�r�.�a�d�d�(�u�s�e�r�I�d�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�(u7b�Oo:�'�,� �u�s�e�r�)�;� �}� � �/�/� �ُ�N��BlO��Tv^b�N*N �d�i�s�p�l�a�y�U�s�e�r�(�1�)�;� �d�i�s�p�l�a�y�U�s�e�r�(�2�)�;� �d�i�s�p�l�a�y�U�s�e�r�(�3�)�;� �/�/� ��[E��S�S��N*N��Bl:� �/�a�p�i�/�u�s�e�r�s�?�i�d�s�=�1�,�2�,�3� ���� � �#�#�#� �4�.� �X[V{eu � ����j�a�v�a�s�c�r�i�p�t� �/�/� �&^X[�v��Bl\ň �c�l�a�s�s� �C�a�c�h�e�d�R�e�q�u�e�s�t� �{� � � �c�o�n�s�t�r�u�c�t�o�r�(�t�t�l� �=� �6�0�0�0�0�)� �{� � �/�/� �؞��X[ �6�0� ��y � � � � �t�h�i�s�.�c�a�c�h�e� �=� �n�e�w� �M�a�p�(�)�;� � � � � �t�h�i�s�.�t�t�l� �=� �t�t�l�;� � � �}� � � � � � �a�s�y�n�c� �g�e�t�(�u�r�l�)� �{� � � � � �c�o�n�s�t� �c�a�c�h�e�d� �=� �t�h�i�s�.�c�a�c�h�e�.�g�e�t�(�u�r�l�)�;� � � � � � � � � � �/�/� ��h�gX[/f&T gHe � � � � �i�f� �(�c�a�c�h�e�d� �&�&� �D�a�t�e�.�n�o�w�(�)� �-� �c�a�c�h�e�d�.�t�i�m�e�s�t�a�m�p� �<� �t�h�i�s�.�t�t�l�)� �{� � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�O(uX[:�'�,� �u�r�l�)�;� � � � � � � �r�e�t�u�r�n� �c�a�c�h�e�d�.�d�a�t�a�;� � � � � �}� � � � � � � � � � �/�/� ��S���Bl � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��S���Bl:�'�,� �u�r�l�)�;� � � � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�(�u�r�l�)�;� � � � � �c�o�n�s�t� �d�a�t�a� �=� �a�w�a�i�t� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� � � � � � � � � � �/�/� �X[eQX[ � � � � �t�h�i�s�.�c�a�c�h�e�.�s�e�t�(�u�r�l�,� �{� � � � � � � �d�a�t�a�,� � � � � � � �t�i�m�e�s�t�a�m�p�:� �D�a�t�e�.�n�o�w�(�)� � � � � �}�)�;� � � � � � � � � � �r�e�t�u�r�n� �d�a�t�a�;� � � �}� � � � � � �c�l�e�a�r�(�u�r�l�)� �{� � � � � �i�f� �(�u�r�l�)� �{� � � � � � � �t�h�i�s�.�c�a�c�h�e�.�d�e�l�e�t�e�(�u�r�l�)�;� � � � � �}� �e�l�s�e� �{� � � � � � � �t�h�i�s�.�c�a�c�h�e�.�c�l�e�a�r�(�)�;� � � � � �}� � � �}� �}� � �c�o�n�s�t� �c�a�c�h�e�d�R�e�q�u�e�s�t� �=� �n�e�w� �C�a�c�h�e�d�R�e�q�u�e�s�t�(�3�0�0�0�0�)�;� � �/�/� �3�0��yX[ � �/�/� �O(u �a�s�y�n�c� �f�u�n�c�t�i�o�n� �g�e�t�U�s�e�r�s�(�)� �{� � � �r�e�t�u�r�n� �a�w�a�i�t� �c�a�c�h�e�d�R�e�q�u�e�s�t�.�g�e�t�(�'�/�a�p�i�/�u�s�e�r�s�'�)�;� �}� ���� � �#�#� �=�� ���W�㉳Q � �#�#�#� ��NHN/f��W� � ����j�a�v�a�s�c�r�i�p�t� �/�/� � T�nV{eu�OS��0�W T0�z�S���v TMb�{ T�n � �/�/� �S_MRu�b�:� �h�t�t�p�s�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m�:�4�4�3� � �/�/� � T�n �' �h�t�t�p�s�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m�/�a�p�i�/�u�s�e�r�s� �h�t�t�p�s�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m�:�4�4�3�/�d�a�t�a� � �/�/� ���W �L' �h�t�t�p�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m� � � � � � �/�/� �OS�� N T�h�t�t�p�s� �v�s� �h�t�t�p� � �h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m� � � � � �/�/� ��W T N T�w�w�w� �v�s� �a�p�i� � �h�t�t�p�s�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m�:�8�0�8�0� � �/�/� ��z�S N T�4�4�3� �v�s� �8�0�8�0� � ���� � �#�#�#� �㉳Q�eHh1��C�O�R�S��T�zM�n � � ����j�a�v�a�s�c�r�i�p�t� �/�/� �MR�z�Nx��{US��Bl � �f�e�t�c�h�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s�'�)� � � �.�t�h�e�n�(�r�e�s�p�o�n�s�e� �=�>� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�)� � � �.�t�h�e�n�(�d�a�t�a� �=�>� �c�o�n�s�o�l�e�.�l�o�g�(�d�a�t�a�)�)�;� � �/�/� �T�z����M�n�T�^4Y� �/�/� �A�c�c�e�s�s�-�C�o�n�t�r�o�l�-�A�l�l�o�w�-�O�r�i�g�i�n�:� �*� �/�/� �b �/�/� �A�c�c�e�s�s�-�C�o�n�t�r�o�l�-�A�l�l�o�w�-�O�r�i�g�i�n�:� �h�t�t�p�s�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m� ���� � ����j�a�v�a�s�c�r�i�p�t� �/�/� �MR�z�Nx����h��Bl � �f�e�t�c�h�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s�'�,� �{� � � �m�e�t�h�o�d�:� �'�P�O�S�T�'�,� � � �h�e�a�d�e�r�s�:� �{� � � � � �'�C�o�n�t�e�n�t�-�T�y�p�e�'�:� �'�a�p�p�l�i�c�a�t�i�o�n�/�j�s�o�n�'�,� � � � � �'�A�u�t�h�o�r�i�z�a�t�i�o�n�'�:� �'�B�e�a�r�e�r� �t�o�k�e�n�1�2�3�'� � � �}�,� � � �b�o�d�y�:� �J�S�O�N�.�s�t�r�i�n�g�i�f�y�(�{� �n�a�m�e�:� �'� _ N'� �}�)� �}�)�;� � �/�/� �OmȉhVOHQ�S� �O�P�T�I�O�N�S� ����h��Bl �/�/� �T�z����M�n� �/�/� �A�c�c�e�s�s�-�C�o�n�t�r�o�l�-�A�l�l�o�w�-�O�r�i�g�i�n�:� �h�t�t�p�s�:�/�/�w�w�w�.�e�x�a�m�p�l�e�.�c�o�m� �/�/� �A�c�c�e�s�s�-�C�o�n�t�r�o�l�-�A�l�l�o�w�-�M�e�t�h�o�d�s�:� �P�O�S�T�,� �G�E�T�,� �O�P�T�I�O�N�S� �/�/� �A�c�c�e�s�s�-�C�o�n�t�r�o�l�-�A�l�l�o�w�-�H�e�a�d�e�r�s�:� �C�o�n�t�e�n�t�-�T�y�p�e�,� �A�u�t�h�o�r�i�z�a�t�i�o�n� �/�/� �A�c�c�e�s�s�-�C�o�n�t�r�o�l�-�M�a�x�-�A�g�e�:� �8�6�4�0�0� ���� � �#�#�#� �㉳Q�eHh2���Nt���S�s�X � � ����j�a�v�a�s�c�r�i�p�t� �/�/� �V�i�t�e� �M�n�v�i�t�e�.�c�o�n�f�i�g�.�j�s� � �e�x�p�o�r�t� �d�e�f�a�u�l�t� �{� � � �s�e�r�v�e�r�:� �{� � � � � �p�r�o�x�y�:� �{� � � � � � � �'�/�a�p�i�'�:� �{� � � � � � � � � �t�a�r�g�e�t�:� �'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�'�,� � � � � � � � � �c�h�a�n�g�e�O�r�i�g�i�n�:� �t�r�u�e�,� � � � � � � � � �r�e�w�r�i�t�e�:� �(�p�a�t�h�)� �=�>� �p�a�t�h�.�r�e�p�l�a�c�e�(�/�^�\�/�a�p�i�/�,� �'�'�)� � � � � � � �}� � � � � �}� � � �}� �}� � �/�/� �MR�z�Nx �f�e�t�c�h�(�'�/�a�p�i�/�u�s�e�r�s�'�)� � �/�/� �O���Nt0R �h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s� � � �.�t�h�e�n�(�r�e�s�p�o�n�s�e� �=�>� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�)�;� ���� � ����j�a�v�a�s�c�r�i�p�t� �/�/� �W�e�b�p�a�c�k� �D�e�v� �S�e�r�v�e�r� �M�n�w�e�b�p�a�c�k�.�c�o�n�f�i�g�.�j�s� � �m�o�d�u�l�e�.�e�x�p�o�r�t�s� �=� �{� � � �d�e�v�S�e�r�v�e�r�:� �{� � � � � �p�r�o�x�y�:� �{� � � � � � � �'�/�a�p�i�'�:� �{� � � � � � � � � �t�a�r�g�e�t�:� �'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�'�,� � � � � � � � � �c�h�a�n�g�e�O�r�i�g�i�n�:� �t�r�u�e�,� � � � � � � � � �p�a�t�h�R�e�w�r�i�t�e�:� �{� �'�^�/�a�p�i�'�:� �'�'� �}� � � � � � � �}� � � � � �}� � � �}� �}� ���� � �#�#�#� �㉳Q�eHh3��J�S�O�N�P���N/ec �G�E�T� � � ����j�a�v�a�s�c�r�i�p�t� �/�/� �J�S�O�N�P� ��St�)R(u �<�s�c�r�i�p�t�>� �h~{ N�S��WP�6R �f�u�n�c�t�i�o�n� �j�s�o�n�p�(�u�r�l�,� �c�a�l�l�b�a�c�k�)� �{� � � �c�o�n�s�t� �c�a�l�l�b�a�c�k�N�a�m�e� �=� �'�j�s�o�n�p�_�'� �+� �D�a�t�e�.�n�o�w�(�)�;� � � � � � �/�/� �R�^hQ@\�V��Qpe � � �w�i�n�d�o�w�[�c�a�l�l�b�a�c�k�N�a�m�e�]� �=� �(�d�a�t�a�)� �=�>� �{� � � � � �c�a�l�l�b�a�c�k�(�d�a�t�a�)�;� � � � � �d�o�c�u�m�e�n�t�.�b�o�d�y�.�r�e�m�o�v�e�C�h�i�l�d�(�s�c�r�i�p�t�)�;� � � � � �d�e�l�e�t�e� �w�i�n�d�o�w�[�c�a�l�l�b�a�c�k�N�a�m�e�]�;� � � �}�;� � � � � � �/�/� �R�^ �s�c�r�i�p�t� �h~{ � � �c�o�n�s�t� �s�c�r�i�p�t� �=� �d�o�c�u�m�e�n�t�.�c�r�e�a�t�e�E�l�e�m�e�n�t�(�'�s�c�r�i�p�t�'�)�;� � � �s�c�r�i�p�t�.�s�r�c� �=� ��$�{�u�r�l�}�?�c�a�l�l�b�a�c�k�=�$�{�c�a�l�l�b�a�c�k�N�a�m�e�}��;� � � �d�o�c�u�m�e�n�t�.�b�o�d�y�.�a�p�p�e�n�d�C�h�i�l�d�(�s�c�r�i�p�t�)�;� �}� � �/�/� �O(u �j�s�o�n�p�(�'�h�t�t�p�s�:�/�/�a�p�i�.�e�x�a�m�p�l�e�.�c�o�m�/�u�s�e�r�s�'�,� �(�d�a�t�a�)� �=�>� �{� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�penc:�'�,� �d�a�t�a�)�;� �}�)�;� � �/�/� � g�RhV����ԏ�V� �/�/� �j�s�o�n�p�_�1�2�3�4�5�6�7�8�9�0�(�{�"�u�s�e�r�s�"�:� �[�.�.�.�]�}�)�;� ���� � �#�#� �=��� �W�e�b�S�o�c�k�e�t� ��[�e��O � �#�#�#� �W�e�b�S�o�c�k�e�t� ��W@x � ����j�a�v�a�s�c�r�i�p�t� �c�l�a�s�s� �W�e�b�S�o�c�k�e�t�C�l�i�e�n�t� �{� � � �c�o�n�s�t�r�u�c�t�o�r�(�u�r�l�)� �{� � � � � �t�h�i�s�.�u�r�l� �=� �u�r�l�;� � � � � �t�h�i�s�.�w�s� �=� �n�u�l�l�;� � � � � �t�h�i�s�.�r�e�c�o�n�n�e�c�t�I�n�t�e�r�v�a�l� �=� �5�0�0�0�;� � �/�/� �5��y͑ޏ � � � � �t�h�i�s�.�h�e�a�r�t�b�e�a�t�I�n�t�e�r�v�a�l� �=� �3�0�0�0�0�;� � �/�/� �3�0��y�_� � � � � �t�h�i�s�.�h�e�a�r�t�b�e�a�t�T�i�m�e�r� �=� �n�u�l�l�;� � � �}� � � � � � �c�o�n�n�e�c�t�(�)� �{� � � � � �t�h�i�s�.�w�s� �=� �n�e�w� �W�e�b�S�o�c�k�e�t�(�t�h�i�s�.�u�r�l�)�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�o�p�e�n� �=� �(�)� �=�>� �{� � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�W�e�b�S�o�c�k�e�t� �ޏ�cb�R'�)�;� � � � � � � �t�h�i�s�.�s�t�a�r�t�H�e�a�r�t�b�e�a�t�(�)�;� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�m�e�s�s�a�g�e� �=� �(�e�v�e�n�t�)� �=�>� �{� � � � � � � �c�o�n�s�t� �d�a�t�a� �=� �J�S�O�N�.�p�a�r�s�e�(�e�v�e�n�t�.�d�a�t�a�)�;� � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�6e0R�mo:�'�,� �d�a�t�a�)�;� � � � � � � �t�h�i�s�.�h�a�n�d�l�e�M�e�s�s�a�g�e�(�d�a�t�a�)�;� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�e�r�r�o�r� �=� �(�e�r�r�o�r�)� �=�>� �{� � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�W�e�b�S�o�c�k�e�t� ���:�'�,� �e�r�r�o�r�)�;� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�c�l�o�s�e� �=� �(�)� �=�>� �{� � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�W�e�b�S�o�c�k�e�t� �ޏ�csQ�'�)�;� � � � � � � �t�h�i�s�.�s�t�o�p�H�e�a�r�t�b�e�a�t�(�)�;� � � � � � � �/�/� �ꁨR͑ޏ � � � � � � �s�e�t�T�i�m�e�o�u�t�(�(�)� �=�>� �{� � � � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�\Ջ͑�eޏ�c.�.�.�'�)�;� � � � � � � � � �t�h�i�s�.�c�o�n�n�e�c�t�(�)�;� � � � � � � �}�,� �t�h�i�s�.�r�e�c�o�n�n�e�c�t�I�n�t�e�r�v�a�l�)�;� � � � � �}�;� � � �}� � � � � � �s�e�n�d�(�d�a�t�a�)� �{� � � � � �i�f� �(�t�h�i�s�.�w�s� �&�&� �t�h�i�s�.�w�s�.�r�e�a�d�y�S�t�a�t�e� �=�=�=� �W�e�b�S�o�c�k�e�t�.�O�P�E�N�)� �{� � � � � � � �t�h�i�s�.�w�s�.�s�e�n�d�(�J�S�O�N�.�s�t�r�i�n�g�i�f�y�(�d�a�t�a�)�)�;� � � � � �}� �e�l�s�e� �{� � � � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'�W�e�b�S�o�c�k�e�t� �gޏ�c'�)�;� � � � � �}� � � �}� � � � � � �s�t�a�r�t�H�e�a�r�t�b�e�a�t�(�)� �{� � � � � �t�h�i�s�.�h�e�a�r�t�b�e�a�t�T�i�m�e�r� �=� �s�e�t�I�n�t�e�r�v�a�l�(�(�)� �=�>� �{� � � � � � � �t�h�i�s�.�s�e�n�d�(�{� �t�y�p�e�:� �'�p�i�n�g�'� �}�)�;� � � � � �}�,� �t�h�i�s�.�h�e�a�r�t�b�e�a�t�I�n�t�e�r�v�a�l�)�;� � � �}� � � � � � �s�t�o�p�H�e�a�r�t�b�e�a�t�(�)� �{� � � � � �i�f� �(�t�h�i�s�.�h�e�a�r�t�b�e�a�t�T�i�m�e�r�)� �{� � � � � � � �c�l�e�a�r�I�n�t�e�r�v�a�l�(�t�h�i�s�.�h�e�a�r�t�b�e�a�t�T�i�m�e�r�)�;� � � � � �}� � � �}� � � � � � �h�a�n�d�l�e�M�e�s�s�a�g�e�(�d�a�t�a�)� �{� � � � � �s�w�i�t�c�h� �(�d�a�t�a�.�t�y�p�e�)� �{� � � � � � � �c�a�s�e� �'�p�o�n�g�'�:� � � � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��_��T�^'�)�;� � � � � � � � � �b�r�e�a�k�;� � � � � � � �c�a�s�e� �'�m�e�s�s�a�g�e�'�:� � � � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'��e�mo:�'�,� �d�a�t�a�.�c�o�n�t�e�n�t�)�;� � � � � � � � � �b�r�e�a�k�;� � � � � � � �d�e�f�a�u�l�t�:� � � � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�*g�w�mo{|�W:�'�,� �d�a�t�a�)�;� � � � � �}� � � �}� � � � � � �c�l�o�s�e�(�)� �{� � � � � �t�h�i�s�.�s�t�o�p�H�e�a�r�t�b�e�a�t�(�)�;� � � � � �i�f� �(�t�h�i�s�.�w�s�)� �{� � � � � � � �t�h�i�s�.�w�s�.�c�l�o�s�e�(�)�;� � � � � �}� � � �}� �}� � �/�/� �O(u �c�o�n�s�t� �w�s� �=� �n�e�w� �W�e�b�S�o�c�k�e�t�C�l�i�e�n�t�(�'�w�s�s�:�/�/�c�h�a�t�.�e�x�a�m�p�l�e�.�c�o�m�'�)�;� �w�s�.�c�o�n�n�e�c�t�(�)�;� � �/�/� ��S��mo �w�s�.�s�e�n�d�(�{� � � �t�y�p�e�:� �'�m�e�s�s�a�g�e�'�,� � � �c�o�n�t�e�n�t�:� �'�O}Y�'� �}�)�;� ���� � �#�#�#� �J�)Y�[:y�O � ����j�a�v�a�s�c�r�i�p�t� �/�/� �H�T�M�L� �/�� �<�d�i�v� �i�d�=�"�c�h�a�t�-�c�o�n�t�a�i�n�e�r�"�>� � � �<�d�i�v� �i�d�=�"�m�e�s�s�a�g�e�s�"�>�<�/�d�i�v�>� � � �<�i�n�p�u�t� �t�y�p�e�=�"�t�e�x�t�"� �i�d�=�"�m�e�s�s�a�g�e�I�n�p�u�t�"� �p�l�a�c�e�h�o�l�d�e�r�=�"���eQ�mo.�.�.�"�>� � � �<�b�u�t�t�o�n� �i�d�=�"�s�e�n�d�B�t�n�"�>��S�<�/�b�u�t�t�o�n�>� �<�/�d�i�v�>� �*�/� � �c�l�a�s�s� �C�h�a�t�R�o�o�m� �{� � � �c�o�n�s�t�r�u�c�t�o�r�(�w�s�U�r�l�)� �{� � � � � �t�h�i�s�.�w�s� �=� �n�e�w� �W�e�b�S�o�c�k�e�t�(�w�s�U�r�l�)�;� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�s�D�i�v� �=� �d�o�c�u�m�e�n�t�.�g�e�t�E�l�e�m�e�n�t�B�y�I�d�(�'�m�e�s�s�a�g�e�s�'�)�;� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�I�n�p�u�t� �=� �d�o�c�u�m�e�n�t�.�g�e�t�E�l�e�m�e�n�t�B�y�I�d�(�'�m�e�s�s�a�g�e�I�n�p�u�t�'�)�;� � � � � �t�h�i�s�.�s�e�n�d�B�t�n� �=� �d�o�c�u�m�e�n�t�.�g�e�t�E�l�e�m�e�n�t�B�y�I�d�(�'�s�e�n�d�B�t�n�'�)�;� � � � � � � � � � �t�h�i�s�.�i�n�i�t�(�)�;� � � �}� � � � � � �i�n�i�t�(�)� �{� � � � � �t�h�i�s�.�w�s�.�o�n�o�p�e�n� �=� �(�)� �=�>� �{� � � � � � � �t�h�i�s�.�a�d�d�S�y�s�t�e�m�M�e�s�s�a�g�e�(�'��]ޏ�c0RJ�)Y�['�)�;� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�m�e�s�s�a�g�e� �=� �(�e�v�e�n�t�)� �=�>� �{� � � � � � � �c�o�n�s�t� �d�a�t�a� �=� �J�S�O�N�.�p�a�r�s�e�(�e�v�e�n�t�.�d�a�t�a�)�;� � � � � � � �t�h�i�s�.�d�i�s�p�l�a�y�M�e�s�s�a�g�e�(�d�a�t�a�)�;� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�e�r�r�o�r� �=� �(�e�r�r�o�r�)� �=�>� �{� � � � � � � �t�h�i�s�.�a�d�d�S�y�s�t�e�m�M�e�s�s�a�g�e�(�'�ޏ�c��'�,� �'�e�r�r�o�r�'�)�;� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�o�n�c�l�o�s�e� �=� �(�)� �=�>� �{� � � � � � � �t�h�i�s�.�a�d�d�S�y�s�t�e�m�M�e�s�s�a�g�e�(�'�ޏ�c�]�e�_'�,� �'�e�r�r�o�r�'�)�;� � � � � �}�;� � � � � � � � � � �/�/� ��S� c�� � � � � �t�h�i�s�.�s�e�n�d�B�t�n�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�c�l�i�c�k�'�,� �(�)� �=�>� �{� � � � � � � �t�h�i�s�.�s�e�n�d�M�e�s�s�a�g�e�(�)�;� � � � � �}�)�;� � � � � � � � � � �/�/� ��Vf��S� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�I�n�p�u�t�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�k�e�y�p�r�e�s�s�'�,� �(�e�)� �=�>� �{� � � � � � � �i�f� �(�e�.�k�e�y� �=�=�=� �'�E�n�t�e�r�'�)� �{� � � � � � � � � �t�h�i�s�.�s�e�n�d�M�e�s�s�a�g�e�(�)�;� � � � � � � �}� � � � � �}�)�;� � � �}� � � � � � �s�e�n�d�M�e�s�s�a�g�e�(�)� �{� � � � � �c�o�n�s�t� �t�e�x�t� �=� �t�h�i�s�.�m�e�s�s�a�g�e�I�n�p�u�t�.�v�a�l�u�e�.�t�r�i�m�(�)�;� � � � � �i�f� �(�!�t�e�x�t�)� �r�e�t�u�r�n�;� � � � � � � � � � �c�o�n�s�t� �m�e�s�s�a�g�e� �=� �{� � � � � � � �t�y�p�e�:� �'�m�e�s�s�a�g�e�'�,� � � � � � � �c�o�n�t�e�n�t�:� �t�e�x�t�,� � � � � � � �t�i�m�e�s�t�a�m�p�:� �D�a�t�e�.�n�o�w�(�)� � � � � �}�;� � � � � � � � � � �t�h�i�s�.�w�s�.�s�e�n�d�(�J�S�O�N�.�s�t�r�i�n�g�i�f�y�(�m�e�s�s�a�g�e�)�)�;� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�I�n�p�u�t�.�v�a�l�u�e� �=� �'�'�;� � � �}� � � � � � �d�i�s�p�l�a�y�M�e�s�s�a�g�e�(�d�a�t�a�)� �{� � � � � �c�o�n�s�t� �m�e�s�s�a�g�e�D�i�v� �=� �d�o�c�u�m�e�n�t�.�c�r�e�a�t�e�E�l�e�m�e�n�t�(�'�d�i�v�'�)�;� � � � � �m�e�s�s�a�g�e�D�i�v�.�c�l�a�s�s�N�a�m�e� �=� �'�m�e�s�s�a�g�e�'�;� � � � � �m�e�s�s�a�g�e�D�i�v�.�i�n�n�e�r�H�T�M�L� �=� �� � � � � � � �<�s�p�a�n� �c�l�a�s�s�=�"�u�s�e�r�"�>�$�{�d�a�t�a�.�u�s�e�r�n�a�m�e�}�:�<�/�s�p�a�n�>� � � � � � � �<�s�p�a�n� �c�l�a�s�s�=�"�c�o�n�t�e�n�t�"�>�$�{�t�h�i�s�.�e�s�c�a�p�e�H�t�m�l�(�d�a�t�a�.�c�o�n�t�e�n�t�)�}�<�/�s�p�a�n�>� � � � � � � �<�s�p�a�n� �c�l�a�s�s�=�"�t�i�m�e�"�>�$�{�t�h�i�s�.�f�o�r�m�a�t�T�i�m�e�(�d�a�t�a�.�t�i�m�e�s�t�a�m�p�)�}�<�/�s�p�a�n�>� � � � � ��;� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�s�D�i�v�.�a�p�p�e�n�d�C�h�i�l�d�(�m�e�s�s�a�g�e�D�i�v�)�;� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�s�D�i�v�.�s�c�r�o�l�l�T�o�p� �=� �t�h�i�s�.�m�e�s�s�a�g�e�s�D�i�v�.�s�c�r�o�l�l�H�e�i�g�h�t�;� � � �}� � � � � � �a�d�d�S�y�s�t�e�m�M�e�s�s�a�g�e�(�t�e�x�t�,� �t�y�p�e� �=� �'�i�n�f�o�'�)� �{� � � � � �c�o�n�s�t� �m�e�s�s�a�g�e�D�i�v� �=� �d�o�c�u�m�e�n�t�.�c�r�e�a�t�e�E�l�e�m�e�n�t�(�'�d�i�v�'�)�;� � � � � �m�e�s�s�a�g�e�D�i�v�.�c�l�a�s�s�N�a�m�e� �=� ��s�y�s�t�e�m�-�m�e�s�s�a�g�e� �$�{�t�y�p�e�}��;� � � � � �m�e�s�s�a�g�e�D�i�v�.�t�e�x�t�C�o�n�t�e�n�t� �=� �t�e�x�t�;� � � � � �t�h�i�s�.�m�e�s�s�a�g�e�s�D�i�v�.�a�p�p�e�n�d�C�h�i�l�d�(�m�e�s�s�a�g�e�D�i�v�)�;� � � �}� � � � � � �e�s�c�a�p�e�H�t�m�l�(�t�e�x�t�)� �{� � � � � �c�o�n�s�t� �d�i�v� �=� �d�o�c�u�m�e�n�t�.�c�r�e�a�t�e�E�l�e�m�e�n�t�(�'�d�i�v�'�)�;� � � � � �d�i�v�.�t�e�x�t�C�o�n�t�e�n�t� �=� �t�e�x�t�;� � � � � �r�e�t�u�r�n� �d�i�v�.�i�n�n�e�r�H�T�M�L�;� � � �}� � � � � � �f�o�r�m�a�t�T�i�m�e�(�t�i�m�e�s�t�a�m�p�)� �{� � � � � �c�o�n�s�t� �d�a�t�e� �=� �n�e�w� �D�a�t�e�(�t�i�m�e�s�t�a�m�p�)�;� � � � � �r�e�t�u�r�n� �d�a�t�e�.�t�o�L�o�c�a�l�e�T�i�m�e�S�t�r�i�n�g�(�)�;� � � �}� �}� � �/�/� �O(u �c�o�n�s�t� �c�h�a�t� �=� �n�e�w� �C�h�a�t�R�o�o�m�(�'�w�s�s�:�/�/�c�h�a�t�.�e�x�a�m�p�l�e�.�c�o�m�'�)�;� ���� � �#�#� �=��� �Q�~�v�cN�Ջ � �#�#�#� �P�e�r�f�o�r�m�a�n�c�e� �A�P�I� � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��v�cu�b��R}�'�� �w�i�n�d�o�w�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�l�o�a�d�'�,� �(�)� �=�>� �{� � � �c�o�n�s�t� �p�e�r�f�D�a�t�a� �=� �p�e�r�f�o�r�m�a�n�c�e�.�t�i�m�i�n�g�;� � � �c�o�n�s�t� �p�a�g�e�L�o�a�d�T�i�m�e� �=� �p�e�r�f�D�a�t�a�.�l�o�a�d�E�v�e�n�t�E�n�d� �-� �p�e�r�f�D�a�t�a�.�n�a�v�i�g�a�t�i�o�n�S�t�a�r�t�;� � � �c�o�n�s�t� �d�n�s�T�i�m�e� �=� �p�e�r�f�D�a�t�a�.�d�o�m�a�i�n�L�o�o�k�u�p�E�n�d� �-� �p�e�r�f�D�a�t�a�.�d�o�m�a�i�n�L�o�o�k�u�p�S�t�a�r�t�;� � � �c�o�n�s�t� �t�c�p�T�i�m�e� �=� �p�e�r�f�D�a�t�a�.�c�o�n�n�e�c�t�E�n�d� �-� �p�e�r�f�D�a�t�a�.�c�o�n�n�e�c�t�S�t�a�r�t�;� � � �c�o�n�s�t� �r�e�q�u�e�s�t�T�i�m�e� �=� �p�e�r�f�D�a�t�a�.�r�e�s�p�o�n�s�e�E�n�d� �-� �p�e�r�f�D�a�t�a�.�r�e�q�u�e�s�t�S�t�a�r�t�;� � � �c�o�n�s�t� �d�o�m�P�a�r�s�e�T�i�m�e� �=� �p�e�r�f�D�a�t�a�.�d�o�m�C�o�m�p�l�e�t�e� �-� �p�e�r�f�D�a�t�a�.�d�o�m�L�o�a�d�i�n�g�;� � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�u�b��R}��e��:�'�,� �p�a�g�e�L�o�a�d�T�i�m�e� �+� �'�m�s�'�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�D�N�S� �㉐g�e��:�'�,� �d�n�s�T�i�m�e� �+� �'�m�s�'�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�T�C�P� �ޏ�c�e��:�'�,� �t�c�p�T�i�m�e� �+� �'�m�s�'�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'���Bl�T�^�e��:�'�,� �r�e�q�u�e�s�t�T�i�m�e� �+� �'�m�s�'�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�D�O�M� �㉐g�e��:�'�,� �d�o�m�P�a�r�s�e�T�i�m�e� �+� �'�m�s�'�)�;� �}�)�;� � �/�/� ��v�cD��n�R}� �c�o�n�s�t� �r�e�s�o�u�r�c�e�s� �=� �p�e�r�f�o�r�m�a�n�c�e�.�g�e�t�E�n�t�r�i�e�s�B�y�T�y�p�e�(�'�r�e�s�o�u�r�c�e�'�)�;� �r�e�s�o�u�r�c�e�s�.�f�o�r�E�a�c�h�(�r�e�s�o�u�r�c�e� �=�>� �{� � � �c�o�n�s�o�l�e�.�l�o�g�(��$�{�r�e�s�o�u�r�c�e�.�n�a�m�e�}�:� �$�{�r�e�s�o�u�r�c�e�.�d�u�r�a�t�i�o�n�}�m�s��)�;� �}�)�;� ���� � �#�#�#� �N�e�t�w�o�r�k� �I�n�f�o�r�m�a�t�i�o�n� �A�P�I� � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��hKmQ�~�r �i�f� �(�'�c�o�n�n�e�c�t�i�o�n�'� �i�n� �n�a�v�i�g�a�t�o�r�)� �{� � � �c�o�n�s�t� �c�o�n�n�e�c�t�i�o�n� �=� �n�a�v�i�g�a�t�o�r�.�c�o�n�n�e�c�t�i�o�n�;� � � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�Q�~{|�W:�'�,� �c�o�n�n�e�c�t�i�o�n�.�e�f�f�e�c�t�i�v�e�T�y�p�e�)�;� � �/�/� �4�g�,� �3�g�,� �2�g�,� �s�l�o�w�-�2�g� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�NL���^:�'�,� �c�o�n�n�e�c�t�i�o�n�.�d�o�w�n�l�i�n�k� �+� �'� �M�b�p�s�'�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'��_ԏ�e��:�'�,� �c�o�n�n�e�c�t�i�o�n�.�r�t�t� �+� �'� �m�s�'�)�;� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�wAm!j_:�'�,� �c�o�n�n�e�c�t�i�o�n�.�s�a�v�e�D�a�t�a�)�;� � � � � � �/�/� �9hncQ�~�r�Q�teV{eu � � �i�f� �(�c�o�n�n�e�c�t�i�o�n�.�e�f�f�e�c�t�i�v�e�T�y�p�e� �=�=�=� �'�s�l�o�w�-�2�g�'� �|�|� �c�o�n�n�e�c�t�i�o�n�.�s�a�v�e�D�a�t�a�)� �{� � � � � �/�/� ��R}�NO(�ϑ�VGr � � � � �l�o�a�d�L�o�w�Q�u�a�l�i�t�y�I�m�a�g�e�s�(�)�;� � � �}� �e�l�s�e� �{� � � � � �/�/� ��R}�ؚ(�ϑ�VGr � � � � �l�o�a�d�H�i�g�h�Q�u�a�l�i�t�y�I�m�a�g�e�s�(�)�;� � � �}� � � � � � �/�/� ��v,TQ�~�SS � � �c�o�n�n�e�c�t�i�o�n�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�c�h�a�n�g�e�'�,� �(�)� �=�>� �{� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�'�Q�~�r�Q9e�S:�'�,� �c�o�n�n�e�c�t�i�o�n�.�e�f�f�e�c�t�i�v�e�T�y�p�e�)�;� � � �}�)�;� �}� ���� � �#�#�#� �(W�~/��y�~�r � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��hKm(W�~�r �c�o�n�s�o�l�e�.�l�o�g�(�'�S_MR(W�~�r:�'�,� �n�a�v�i�g�a�t�o�r�.�o�n�L�i�n�e�)�;� � �w�i�n�d�o�w�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�o�n�l�i�n�e�'�,� �(�)� �=�>� �{� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�Q�~�]ޏ�c'�)�;� � � �s�h�o�w�N�o�t�i�f�i�c�a�t�i�o�n�(�'�Q�~�]b Y'�,� �'�s�u�c�c�e�s�s�'�)�;� � � �/�/� � Tek�y�~penc � � �s�y�n�c�O�f�f�l�i�n�e�D�a�t�a�(�)�;� �}�)�;� � �w�i�n�d�o�w�.�a�d�d�E�v�e�n�t�L�i�s�t�e�n�e�r�(�'�o�f�f�l�i�n�e�'�,� �(�)� �=�>� �{� � � �c�o�n�s�o�l�e�.�l�o�g�(�'�Q�~�]�e�_'�)�;� � � �s�h�o�w�N�o�t�i�f�i�c�a�t�i�o�n�(�'�Q�~ޏ�c�]�e�_'�,� �'�e�r�r�o�r�'�)�;� � � �/�/� �/T(u�y�~!j_ � � �e�n�a�b�l�e�O�f�f�l�i�n�e�M�o�d�e�(�)�;� �}�)�;� ���� � �#�#� �=ء� ��[(u�b�] � �#�#�#� �1�.� ���Bl���e�c6R � ����j�a�v�a�s�c�r�i�p�t� �/�/� �F�e�t�c�h� ����e�c6R �f�u�n�c�t�i�o�n� �f�e�t�c�h�W�i�t�h�T�i�m�e�o�u�t�(�u�r�l�,� �o�p�t�i�o�n�s� �=� �{�}�,� �t�i�m�e�o�u�t� �=� �5�0�0�0�)� �{� � � �r�e�t�u�r�n� �P�r�o�m�i�s�e�.�r�a�c�e�(�[� � � � � �f�e�t�c�h�(�u�r�l�,� �o�p�t�i�o�n�s�)�,� � � � � �n�e�w� �P�r�o�m�i�s�e�(�(�_�,� �r�e�j�e�c�t�)� �=�>� � � � � � � �s�e�t�T�i�m�e�o�u�t�(�(�)� �=�>� �r�e�j�e�c�t�(�n�e�w� �E�r�r�o�r�(�'���Bl���e'�)�)�,� �t�i�m�e�o�u�t�)� � � � � �)� � � �]�)�;� �}� � �/�/� �O(u �t�r�y� �{� � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�W�i�t�h�T�i�m�e�o�u�t�(�'�/�a�p�i�/�u�s�e�r�s�'�,� �{�}�,� �3�0�0�0�)�;� � � �c�o�n�s�t� �d�a�t�a� �=� �a�w�a�i�t� �r�e�s�p�o�n�s�e�.�j�s�o�n�(�)�;� �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � �i�f� �(�e�r�r�o�r�.�m�e�s�s�a�g�e� �=�=�=� �'���Bl���e'�)� �{� � � � � �c�o�n�s�o�l�e�.�e�r�r�o�r�(�'���Bl���e ��� zT͑Ջ'�)�;� � � �}� �}� ���� � �#�#�#� �2�.� ���Bl͑Ջ � ����j�a�v�a�s�c�r�i�p�t� �/�/� �ꁨR͑Ջ �a�s�y�n�c� �f�u�n�c�t�i�o�n� �f�e�t�c�h�W�i�t�h�R�e�t�r�y�(�u�r�l�,� �o�p�t�i�o�n�s� �=� �{�}�,� �r�e�t�r�i�e�s� �=� �3�)� �{� � � �f�o�r� �(�l�e�t� �i� �=� �0�;� �i� �<� �r�e�t�r�i�e�s�;� �i�+�+�)� �{� � � � � �t�r�y� �{� � � � � � � �c�o�n�s�t� �r�e�s�p�o�n�s�e� �=� �a�w�a�i�t� �f�e�t�c�h�(�u�r�l�,� �o�p�t�i�o�n�s�)�;� � � � � � � �i�f� �(�r�e�s�p�o�n�s�e�.�o�k�)� �{� � � � � � � � � �r�e�t�u�r�n� �r�e�s�p�o�n�s�e�;� � � � � � � �}� � � � � � � �t�h�r�o�w� �n�e�w� �E�r�r�o�r�(��H�T�T�P� �$�{�r�e�s�p�o�n�s�e�.�s�t�a�t�u�s�}��)�;� � � � � �}� �c�a�t�c�h� �(�e�r�r�o�r�)� �{� � � � � � � �c�o�n�s�o�l�e�.�l�o�g�(��,{ �$�{�i� �+� �1�}� �!k\Ջ1Y%��)�;� � � � � � � �i�f� �(�i� �=�=�=� �r�e�t�r�i�e�s� �-� �1�)� �{� � � � � � � � � �t�h�r�o�w� �e�r�r�o�r�;� � �/�/� ��gT�N!k1Y%�R�b�Q�� � � � � � � �}� � � � � � � �/�/� �I{�_T͑Ջ�cpe��� � � � � � � � �a�w�a�i�t� �n�e�w� �P�r�o�m�i�s�e�(�r�e�s�o�l�v�e� �=�>� �s�e�t�T�i�m�e�o�u�t�(�r�e�s�o�l�v�e�,� �1�0�0�0� �*� �M�a�t�h�.�p�o�w�(�2�,� �i�)�)�)�;� � � � � �}� � � �}� �}� ���� � �#�#�#� �3�.� �v^�S�c6R � ����j�a�v�a�s�c�r�i�p�t� �/�/� ��c6Rv^�S��Blpeϑ �c�l�a�s�s� �R�e�q�u�e�s�t�Q�u�e�u�e� �{� � � �c�o�n�s�t�r�u�c�t�o�r�(�m�a�x�C�o�n�c�u�r�r�e�n�t� �=� �3�)� �{� � � � � �t�h�i�s�.�m�a�x�C�o�n�c�u�r�r�e�n�t� �=� �m�a�x�C�o�n�c�u�r�r�e�n�t�;� � � � � �t�h�i�s�.�c�u�r�r�e�n�t� �=� �0�;� � � � � �t�h�i�s�.�q�u�e�u�e� �=� �[�]�;� � � �}� � � � � � �a�s�y�n�c� �a�d�d�(�f�n�)� �{� � � � � �i�f� �(�t�h�i�s�.�c�u�r�r�e�n�t� �>�=� �t�h�i�s�.�m�a�x�C�o�n�c�u�r�r�e�n�t�)� �{� � � � � � � �a�w�a�i�t� �n�e�w� �P�r�o�m�i�s�e�(�r�e�s�o�l�v�e� �=�>� �t�h�i�s�.�q�u�e�u�e�.�p�u�s�h�(�r�e�s�o�l�v�e�)�)�;� � � � � �}� � � � � � � � � � �t�h�i�s�.�c�u�r�r�e�n�t�+�+�;� � � � � � � � � � �t�r�y� �{� � � � � � � �r�e�t�u�r�n� �a�w�a�i�t� �f�n�(�)�;� � � � � �}� �f�i�n�a�l�l�y� �{� � � � � � � �t�h�i�s�.�c�u�r�r�e�n�t�-�-�;� � � � � � � �c�o�n�s�t� �r�e�s�o�l�v�e� �=� �t�h�i�s�.�q�u�e�u�e�.�s�h�i�f�t�(�)�;� � � � � � � �i�f� �(�r�e�s�o�l�v�e�)� �r�e�s�o�l�v�e�(�)�;� � � � � �}� � � �}� �}� � �c�o�n�s�t� �q�u�e�u�e� �=� �n�e�w� �R�e�q�u�e�s�t�Q�u�e�u�e�(�3�)�;� � �/�/� ��S� �1�0� �*N��Bl �FO�gY T�e �3� �*N �c�o�n�s�t� �p�r�o�m�i�s�e�s� �=� �[�]�;� �f�o�r� �(�l�e�t� �i� �=� �1�;� �i� �<�=� �1�0�;� �i�+�+�)� �{� � � �p�r�o�m�i�s�e�s�.�p�u�s�h�(� � � � � �q�u�e�u�e�.�a�d�d�(�(�)� �=�>� �f�e�t�c�h�(��/�a�p�i�/�u�s�e�r�/�$�{�i�}��)�)� � � �)�;� �}� � �c�o�n�s�t� �r�e�s�u�l�t�s� �=� �a�w�a�i�t� �P�r�o�m�i�s�e�.�a�l�l�(�p�r�o�m�i�s�e�s�)�;� ���� � �#�#� �=��� �\�~ � �ُ�N�zb�Nf[N�N� � �' �*�*�H�T�T�P� ���Bl*�*��F�e�t�c�h� �A�P�I�0A�x�i�o�s� �\ň0��Bl�b*bhV � � �' �*�*�'��OS���D��n���R}�0�VGr�a�R}�0��BlTv^0X[V{eu � � �' �����W㉳Q���C�O�R�S�0�Nt0J�S�O�N�P� � � �' ���W�e�b�S�o�c�k�e�t�����[�e��O0J�)Y�[�[�s0ꁨR͑ޏ � � �' ���Q�~�v�c�*��P�e�r�f�o�r�m�a�n�c�e� �A�P�I�0Q�~�r�hKm0(W�~�y�~ � � �' �*�*��[(u�b�]*�*�����e�c6R0ꁨR͑Ջ0v^�S�c6R � �#�#� �<د� �N�Nek � ��s(WO�]�~�c�c�NMR�zQ�~��S�v8h��b�� ��cNeg�S�Nf[NT�z�_�S-N�vQ�~�^(u� � �[��~�~f[N,{2��z�T�z�_�S-N�vQ�~�^(u ��!]�(�/�p�r�a�c�t�i�c�e�/�0�2�-�b�a�c�k�e�n�d�-�n�e�t�w�o�r�k�)� �
