AlkantarClanX12

Your IP : 3.135.184.195


Current Path : /opt/alt/python312/lib64/python3.12/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/encodings/__pycache__/idna.cpython-312.pyc

�

�Q�f�%��B�ddlZddlZddlZddlmZej
d�ZdZdZd�Z	d�Z
d�ZGd	�d
ej�ZGd�dej�ZGd
�dej�ZGd�deej"�ZGd�deej$�Zd�Zy)�N)�	ucd_3_2_0u[.。.。]sxn--zxn--c�F�g}|D]<}tj|�r�|jtj|���>dj	|�}tjd|�}|D]�}tj|�s�tj|�s�tj|�stj|�sjtj|�sUtj|�s@tj|�s+tj|�stj|�s��t!d|z��|D�cgc]}tj"|���}}t%|�r2t%d�|D��rt!d��|dr|dst!d��|Scc}w)	N��NFKCzInvalid character %rc3�FK�|]}tj|����y�w)N)�
stringprep�in_table_d2)�.0�xs  �5/opt/alt/python312/lib64/python3.12/encodings/idna.py�	<genexpr>znameprep.<locals>.<genexpr>1s����8�%�Q�z�%�%�a�(�%�s�!zViolation of BIDI requirement 2r���zViolation of BIDI requirement 3)r�in_table_b1�append�map_table_b2�join�unicodedata�	normalize�in_table_c12�in_table_c22�in_table_c3�in_table_c4�in_table_c5�in_table_c6�in_table_c7�in_table_c8�in_table_c9�UnicodeError�in_table_d1�any)�label�newlabel�cr�RandALs     r�nameprepr%sa���H�
���!�!�!�$�����
�/�/��2�3�	�

�G�G�H��E�
�!�!�&�%�0�E����"�"�1�%��"�"�1�%��!�!�!�$��!�!�!�$��!�!�!�$��!�!�!�$��!�!�!�$��!�!�!�$��!�!�!�$��5��9�:�:��27�
7��A�j�$�$�Q�'��F�
7�
�6�{��8�%�8�8��@�A�A�
�a�y��r�
��@�A�A��L��#8s�Fc��	|jd�}dt|�cxkrdkr|Std��td��#t$rYnwxYwt|�}	|jd�}dt|�cxkrdkr|Std��td��#t$rYnwxYw|j	t
�rtd��|jd�}t|z}dt|�cxkrdkr|Std��td��)N�asciir�@�label empty or too longzLabel starts with ACE prefix�punycode)�encode�lenrr%�
startswith�sace_prefix�
ace_prefix)r!s r�ToASCIIr0<s/��
6����W�%��
�s�5�z��B���L���4�5�5�l�4�5�5���
��
��
�U�O�E�6����W�%��

�s�5�z��B���L���4�5�5�l�4�5�5��
�
��
��
����$��9�:�:�
�L�L��$�E�
���E�	�3�u�:�������
�0�
1�1�,�0�
1�1s#�A�	A�A�B�	B%�$B%c��t|�dkDrtd��t|t�rd}n	|j	d�}d}|st|�}	|j	d�}|j
t�st|d�S|tt�d}|jd�}t|�}t|d�j�t|d�k7r
td||��|S#t$rd}Y��wxYw#t$rtd��wxYw)	Nizlabel way too longTr'FzInvalid character in IDN labelr*zIDNA does not round-trip)r,r�
isinstance�bytesr+r%r-r/�str�decoder0�lower)r!�
pure_ascii�label1�result�label2s     r�	ToUnicoder;gs��
�5�z�D���/�0�0��%����
�	��L�L��)�E��J������	A��L�L��)�E����J�'��5�'�"�"��3�z�?�#�
$�F��]�]�:�
&�F��V�_�F��5�'�� � �"�c�&�'�&:�:��5�u�f�E�E��M��;�	��J�	���	A��?�@�@�	A�s�C%�C6�%C3�2C3�6Dc��eZdZdd�Zdd�Zy)�Codecc�D�|dk7rtd|z��|sy	|jd�}|jd�}|ddD]-}dt|�cxkrdkr�td	��td	��t|d�dk\rtd
��|t|�fS#t$rYnwxYwt�}tj|�}|r|dsd}|d=nd}|D]/}|r|jd�|jt|���1t||z�t|�fS)N�strict�unsupported error handling ��rr'�.rrr(r)zlabel too longrB)
rr+�splitr,�UnicodeEncodeError�	bytearray�dots�extendr0r3)�self�input�errorsr9�labelsr!�trailing_dots       rr+zCodec.encode�s8���X���<�V�C�D�D���	&��\�\�'�*�F�
�\�\�$�'�F�������C��J�+��+�&�'@�A�A�,�&�'@�A�A�%��6�"�:��"�$�"�#3�4�4��3�u�:�%�%��"�	��	��������E�"���&��*��L��r�
��L��E���
�
�d�#��M�M�'�%�.�)�	�
�V�L�(�)�3�u�:�5�5s�B�	B$�#B$c��|dk7rtd|z��|syt|t�st|�}t|vr	|j	d�t|�fS|jd�}|rt|d�dk(rd}|d=nd	}g}|D]}|jt|���dj|�|zt|�fS#t$rY�ywxYw)
Nr?�Unsupported error handling �rrr'rCrr�.r)rr2r3r/r5r,�UnicodeDecodeErrorrDrr;r)rIrJrKrLrMr9r!s       rr5zCodec.decode�s����X���<�V�C�D�D����%��'��%�L�E��U�"�
��|�|�G�,�c�%�j�8�8����T�"���c�&��*�o��*��L��r�
��L����E��M�M�)�E�*�+���x�x����,�c�%�j�8�8��&�
��
�s�C�	C�CN)r?)�__name__�
__module__�__qualname__r+r5�rBrr=r=�s
��#6�J 9rBr=c��eZdZd�Zy)�IncrementalEncoderc�n�|dk7rtd|z��|sytj|�}d}|r|dsd}|d=n	|s|d=|rd}t�}d}|D]B}|r|j	d�|dz
}|j	t|��|t
|�z
}�D||z
}|t
|�z
}t|�|fS)	Nr?r@rArBrrCr�)rrGrDrFrHr0r,r3�	rIrJrK�finalrLrMr9�sizer!s	         r�_buffer_encodez!IncrementalEncoder._buffer_encode�s����X���<�V�C�D�D������E�"������"�:�#���2�J���2�J��#'�L�������E���
�
�d�#���	���M�M�'�%�.�)��C��J��D�
�	�,�����L�!�!���f�
�t�$�$rBN)rSrTrUr^rVrBrrXrX�s�� %rBrXc��eZdZd�Zy)�IncrementalDecoderc��|dk7rtd|z��|syt|t�rtj	|�}nt|d�}|j	d�}d}|r|dsd}|d=n	|s|d=|rd}g}d}|D]1}|jt
|��|r|d	z
}|t|�z
}�3dj|�|z}|t|�z
}||fS)
Nr?rOrPr'rQrrrrZ)	rr2r4rGrDrr;r,rr[s	         r�_buffer_decodez!IncrementalDecoder._buffer_decodes����X���<�V�C�D�D����e�S�!��Z�Z��&�F���w�'�E��[�[��%�F�����"�:�"���2�J���2�J��#&�L������E��M�M�)�E�*�+����	���C��J��D�	����&�!�L�0����L�!�!����~�rBN)rSrTrUrbrVrBrr`r`s��$rBr`c��eZdZy)�StreamWriterN�rSrTrUrVrBrrdrd,���rBrdc��eZdZy)�StreamReaderNrerVrBrrhrh/rfrBrhc	��tjdt�jt�jt
ttt��S)N�idna)�namer+r5�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInfor=r+r5rXr`rdrhrVrBr�getregentryrr4s6�����
��w�~�~��w�~�~�-�-�!�!��rB)r�rerprr�compilerGr/r.r%r0r;r=�BufferedIncrementalEncoderrX�BufferedIncrementalDecoderr`rdrhrrrVrBr�<module>rws�����0��r�z�z�.�/���
���,�\)2�V/�fF9�F�L�L�F9�P!%��:�:�!%�F%��:�:�%�N	�5��,�,�	�	�5��,�,�	�
	rB