� D�gy ��r�ddlmZddlZddlmZddlmZddlmZGd�de��Z ed d ���Z dS)�)� annotationsN)� lru_cache)� NamedTuple�)� deprecatec�N�eZdZUdZded<ded<ded<ded<ded<d d �Zd S) �ModeDescriptorzWrapper for mode strings.�str�modeztuple[str, ...]�bands�basemode�basetype�typestr�returnc��|jS)N)r )�selfs �]/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/PIL/ImageMode.py�__str__zModeDescriptor.__str__!s ���y��N)rr )�__name__� __module__� __qualname__�__doc__�__annotations__r�rrr r s`�������#�#� �I�I�I������M�M�M��M�M�M��L�L�L������rr r r rc��tjdkrdnd}idd�dd�dddd |�d �f�d dd d |�d �f�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d!�d#d!�d$d%�d&d'd(��}||vr4|d)vrt|d*��||\}}}}t|||||��Sd+d,d+d,d-d.|�d/�|�d0�d1d2d1d3d4d3d5�}||}t|d dd|��S)6z*Gets a mode descriptor for the given mode.�little�<�>�1)�Lr!)r z|b1r!)r!r!)r!�|u1�I)r#�i4�F)r%�f4�P)r'r!)r'r"�RGB)r(r!)�R�G�Br"�RGBX)r(r!)r)r*r+�Xr"�RGBA)r(r!)r)r*r+�Ar"�CMYK)r(r!)�C�M�Y�Kr"�YCbCr)r(r!)r3�Cb�Crr"�LAB)r(r!)r!r/r+r"�HSV)r(r!)�H�S�Vr"�RGBa)r(r!)r)r*r+�ar"�BGR;15)r(r!)r+r*r)r"�BGR;16�BGR;24�LA)r!r!)r!r/r")r!r!)r!r>r")r(r!)r'r/r")�La�PA)r?r@rA� z<u2z<i2z>u2z>i2�u2�i2z<u4z>u4z<i4z>i4)zI;16zI;16SzI;16LzI;16LSzI;16BzI;16BSzI;16NzI;16NSzI;32zI;32BzI;32LzI;32SzI;32BSzI;32LS)�sys� byteorderrr )r �endian�modes� base_mode� base_typer �type_str� mapping_modess r�getmoderP%s����M�X�-�-�S�S�3�F� � � &� � � &�  � �c�3��6� � � � .�  � �c�3��6� � � � .�  � � &� � �3� � �9� � �9� � �9� � �7� � �3� � �3� �" �9�# �$ �6�% �& �6�' �( �6�) �* �+�+ �,,�-�/ � � �E�2 �u�}�}� �1� 1� 1� �d�B� � � �05�d� �-� �9�e�X��d�E�9�i��J�J�J������������-�-�-���������M�$�T�"�H� �$���S�(� ;� ;�;r)r r rr ) � __future__rrH� functoolsr�typingr� _deprecaterr rPrrr�<module>rUs���#�"�"�"�"�"� � � � �������������!�!�!�!�!�!� � � � � �Z� � � � �6<�6<�6<� ��6<�6<�6<r
Memory