Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/http/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/http/__pycache__/cookies.cpython-312.opt-2.pyc

�

�Q�f�M����	ddlZddlZddlZgd�ZdjZdjZdjZGd�de�Z	ejejzdzZed	zZ
eed
��eeee
��z
D�cic]}|d|z��
c}Zej'ed�d
ed�di�ej(dej*e�z�j,Zd�Zej(d�j2Zd�Zd�Zgd�Zgd�Zdeefd�ZGd�de �Z!dZ"e"dzZ#ej(de"zdze#zdzejHejJz�Z&Gd�d e �Z'Gd!�d"e'�Z(ycc}w)#�N)�CookieError�
BaseCookie�SimpleCookie�z; � c��eZdZy)rN)�__name__�
__module__�__qualname__���3/opt/alt/python312/lib64/python3.12/http/cookies.pyrr�s��r
rz!#$%&'*+-.^_`|~:z
 ()/<=>?@[]{}�z\%03o�"�\"�\z\\z[%s]+c�X�	|�t|�r|Sd|jt�zdzS)Nr)�
_is_legal_key�	translate�_Translator��strs r�_quoter�s3����{�m�C�(��
��S�]�]�;�/�/�#�5�5r
z\\(?:([0-3][0-7][0-7])|(.))c�F�|drtt|dd��S|dS)N���)�chr�int)�ms r�_unquote_replacer!�s'����t��3�q��t�Q�<� � ���t�r
c�t�|�t|�dkr|S|ddk7s|ddk7r|S|dd}tt|�S)Nrrr���r)�len�_unquote_subr!rs r�_unquoter&�sO���{�c�#�h��l��
�
�1�v��}��B��3���
��a��)�C��(�#�.�.r
)�Mon�Tue�Wed�Thu�Fri�Sat�Sun)
N�Jan�Feb�Mar�Apr�May�Jun�Jul�Aug�Sep�Oct�Nov�Decc	�n�ddlm}m}|�}|||z�\	}}}}	}
}}}
}d|||||||	|
|fzS)Nr)�gmtime�timez#%s, %02d %3s %4d %02d:%02d:%02d GMT)r<r;)�future�weekdayname�	monthnamer;r<�now�year�month�day�hh�mm�ss�wd�y�zs               r�_getdaterJ�sW��!�
�&�C�-3�C�&�L�-A�*�D�%��b�"�b�"�a��0���O�S�)�E�"2�D�"�b�"�E�F�Fr
c
��eZdZ	ddddddddd	d
�	ZddhZd
�Zed��Zed��Zed��Z	d�Z
dd�Zd�Ze
jZd�Zd�Zd�Zd�Zd�Zd�Zd d�ZeZd�Zdd�Zdd�Zeej8�Zy)!�Morsel�expires�Path�Comment�DomainzMax-Age�Secure�HttpOnly�Version�SameSite)	rM�path�comment�domain�max-age�secure�httponly�version�samesiterYrZc�~�dx|_x|_|_|jD]}tj||d��y)Nr)�_key�_value�_coded_value�	_reserved�dict�__setitem__)�self�keys  r�__init__zMorsel.__init__s:��6:�:��	�:�D�K�$�"3��>�>�C����T�3��+�"r
c��|jS�N)r^�rds rrez
Morsel.keys���y�y�r
c��|jSrh)r_ris r�valuezMorsel.values���{�{�r
c��|jSrh)r`ris r�coded_valuezMorsel.coded_values��� � � r
c��|j�}||jvrtd|����tj	|||�y�NzInvalid attribute )�lowerrarrbrc)rd�K�Vs   rrczMorsel.__setitem__#s9��
�G�G�I���D�N�N�"���;�<�<�����q�!�$r
Nc��|j�}||jvrtd|����tj	|||�Sro)rprarrb�
setdefault)rdre�vals   rrtzMorsel.setdefault)s:���i�i�k���d�n�n�$���=�>�>����t�S�#�.�.r
c��t|t�stStj	||�xrO|j
|j
k(xr4|j|jk(xr|j|jk(Srh)�
isinstancerL�NotImplementedrb�__eq__r_r^r`�rd�morsels  rryz
Morsel.__eq__/sj���&�&�)�!�!����D�&�)�9����v�}�}�,�9��	�	�V�[�[�(�9��!�!�V�%8�%8�8�	:r
c��t�}tj||�|jj|j�|Srh)rLrb�update�__dict__rzs  r�copyzMorsel.copy9s2��������F�D�!������t�}�}�-��
r
c���i}t|�j�D]6\}}|j�}||jvrt	d|����|||<�8tj||�yro)rb�itemsrprarr})rd�values�datarerus     rr}z
Morsel.update?s`�����V��*�*�,�H�C���)�)�+�C��$�.�.�(�!�C�"A�B�B��D��I�	-�
	
���D�$�r
c�:�|j�|jvSrh)rpra)rdrqs  r�
isReservedKeyzMorsel.isReservedKeyHs���w�w�y�D�N�N�*�*r
c��|j�|jvrtd|����t|�std|����||_||_||_y)NzAttempt to set a reserved key zIllegal key )rprarrr^r_r`)rdreru�	coded_vals    r�setz
Morsel.setKsP���9�9�;�$�.�.�(��C�I�J�J��S�!��#�7�8�8���	����%��r
c�J�|j|j|jd�S)N)rerkrm�r^r_r`ris r�__getstate__zMorsel.__getstate__Vs#���9�9��[�[��,�,�
�	
r
c�@�|d|_|d|_|d|_y)Nrerkrmr�)rd�states  r�__setstate__zMorsel.__setstate__]s%���%�L��	��G�n���!�-�0��r
c�.�|�d|j|���S)Nr)�OutputString)rd�attrs�headers   r�outputz
Morsel.outputbs�� �$�"3�"3�E�":�;�;r
c�X�d|jj�d|j��d�S)N�<�: �>)�	__class__r	r�ris r�__repr__zMorsel.__repr__gs ��!�^�^�4�4�d�6G�6G�6I�J�Jr
c�J�d|j|�jdd�zS)Nz�
        <script type="text/javascript">
        <!-- begin hiding
        document.cookie = "%s";
        // end hiding -->
        </script>
        rr)r��replace)rdr�s  r�	js_outputzMorsel.js_outputjs.���� � ��'�/�/��U�;�
=�	=r
c���g}|j}||j�d|j���|�|j}t	|j��}|D]�\}}|dk(r�||vr�|dk(r4t
|t�r$||j|�dt|�����J|dk(r+t
|t�r|d|j||fz��z|dk(r4t
|t�r$||j|�dt|������||jvr"|s��|t|j|����||j|�d|�����t|�S)N�=rrMrXz%s=%drV)
�appendrermra�sortedr�rwrrJrr�_flags�_semispacejoin)rdr��resultr�r�rerks       rr�zMorsel.OutputStringts8��������	�$�(�(�D�$4�$4�5�6��=��N�N�E��t�z�z�|�$���J�C����{���%����i��J�u�c�$:��$�.�.��"5�x���G�H��	�!�j���&<��w�$�.�.��"5�u�!=�=�>��	�!�j���&<��$�.�.��"5�v�e�}�E�F�����#���3�t�~�~�c�2�3�4��$�.�.��"5�u�=�>� �$�f�%�%r
rh)N�Set-Cookie:)r	r
rrar�rf�propertyrerkrmrcrtry�object�__ne__rr}r�r�r�r�r��__str__r�r�r��classmethod�types�GenericAlias�__class_getitem__rr
rrLrL�s����*���������
�I��
�
#�F�,����������!��!�%�/�:��]�]�F�� �+�	&�
�1�
<��G�K�=�&�B$�E�$6�$6�7�r
rLz,\w\d!#%&'~_`><@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=z\[\]z�
    \s*                            # Optional whitespace at start of cookie
    (?P<key>                       # Start of group 'key'
    [a	]+?   # Any word of at least one letter
    )                              # End of group 'key'
    (                              # Optional group: there may not be a value.
    \s*=\s*                          # Equal Sign
    (?P<val>                         # Start of group 'val'
    "(?:[^\\"]|\\.)*"                  # Any doublequoted string
    |                                  # or
    \w{3},\s[\w\d\s-]{9,11}\s[\d:]{8}\sGMT  # Special case for "expires" attr
    |                                  # or
    [a-]*      # Any word or empty string
    )                                # End of group 'val'
    )?                             # End of optional value group
    \s*                            # Any number of spaces.
    (\s+|;|$)                      # Ending either at space, semicolon, or EOS.
    c�X�eZdZ	d�Zd�Zdd�Zd�Zd�Zd
d�ZeZ	d�Z
dd	�Zd
�Ze
fd�Zy)rc��	||fSrhr�rdrus  r�value_decodezBaseCookie.value_decode�s��	��C�x�r
c�"�	t|�}||fSrhr�rdru�strvals   r�value_encodezBaseCookie.value_encode�s��	�
�S����v�~�r
Nc�,�|r|j|�yyrh)�load)rd�inputs  rrfzBaseCookie.__init__�s����I�I�e��r
c��	|j|t��}|j|||�tj	|||�yrh)�getrLr�rbrc)rdre�
real_valuerm�Ms     r�__setzBaseCookie.__set�s9��9��H�H�S�&�(�#��	���c�:�{�+�����s�A�&r
c��	t|t�rtj|||�y|j	|�\}}|j|||�yrh)rwrLrbrcr��_BaseCookie__set)rdrerk�rval�cvals     rrczBaseCookie.__setitem__�sE��*��e�V�$����T�3��.��*�*�5�1�J�D�$��J�J�s�D�$�'r
c��	g}t|j��}|D]&\}}|j|j||���(|j	|�Srh)r�r�r�r��join)rdr�r��sepr�r�rerks        rr�zBaseCookie.output�sN��0����t�z�z�|�$���J�C���M�M�%�,�,�u�f�5�6� ��x�x���r
c���g}t|j��}|D].\}}|j|�dt|j�����0d|j
j�dt|��d�S)Nr�r�r�r�)r�r�r��reprrkr�r	�
_spacejoin)rd�lr�rerks     rr�zBaseCookie.__repr__�sX�����t�z�z�|�$���J�C��
�H�H��T�%�+�+�%6�7�8� �!�^�^�4�4�j��m�D�Dr
c��	g}t|j��}|D]%\}}|j|j|���'t	|�Srh)r�r�r�r��	_nulljoin)rdr�r�r�rerks      rr�zBaseCookie.js_output�sH��6����t�z�z�|�$���J�C���M�M�%�/�/�%�0�1� ��� � r
c��	t|t�r|j|�y|j�D]
\}}|||<�yrh)rwr�_BaseCookie__parse_stringr�)rd�rawdatarerks    rr�zBaseCookie.load�sH��	�
�g�s�#�����(�
	�&�m�m�o�
��U�!��S�	�.�r
c���d}t|�}g}d}d}d}d|cxkr|k�r!n�n|j||�}	|	s�n|	jd�|	jd�}}
|	jd�}|
ddk(r|s�d|j	||
dd|f�n�|
j�tjvrY|sy|�6|
j�tjvr|j	||
df�nHy|j	||
t|�f�n)|�&|j	||
|j|�f�d}nyd|cxkr|kr��nd}|D].\}
}
}|
|k(r|||
<�|\}}|j|
||�||
}�0y)	NrFrrreru�$T)r$�match�group�endr�rprLrar�r&r�r�)rdr�patt�i�n�parsed_items�morsel_seen�TYPE_ATTRIBUTE�
TYPE_KEYVALUEr�rerkr��tpr�r�s                r�__parse_stringzBaseCookie.__parse_string	s���
����H���������
�
�1�j�q�j��J�J�s�A�&�E������U�+�U�[�[��-?��C��	�	�!��A��1�v��}�"���#�#�^�S���W�e�$D�E������ 0� 0�0�"���=��y�y�{�f�m�m�3�$�+�+�^�S�$�,G�H�� �'�'���h�u�o�(N�O��"��#�#�]�C��9J�9J�5�9Q�$R�S�"���E�1�j�q�j�J
��*�N�B��U��^�#���#��#�
��d��
�
�3��d�+���I��+r
rh)Nr�z
)r	r
rr�r�rfr�rcr�r�r�r�r��_CookiePatternr�rr
rrr�sD��1����'�(� ��G�E�!��(6�:r
rc��eZdZ	d�Zd�Zy)rc��t|�|fSrh)r&r�s  rr�zSimpleCookie.value_decodeMs����}�c�!�!r
c�2�t|�}|t|�fSrh)rrr�s   rr�zSimpleCookie.value_encodePs���S����v�f�~�%�%r
N)r	r
rr�r�rr
rrrFs���"�&r
r))�re�stringr��__all__r�r�r�r��	Exceptionr�
ascii_letters�digits�_LegalChars�_UnescapedCharsr��range�map�ordrr}�compile�escape�	fullmatchrr�subr%r!r&�_weekdayname�
_monthnamerJrbrL�_LegalKeyChars�_LegalValueChars�ASCII�VERBOSEr�rr)r�s0r�<module>r�s���NX�z
�
��
7���G�G�	�����
�X�X�
�
	�)�	�"�"�"�V�]�]�2�5G�G����/���E�#�J��#�c�#��.G�*H�H�J�H�1��(�Q�,��H�J�������H�e���I�v���
��
�
�7�Y�R�Y�Y�{�%;�;�<�F�F�
�
6��r�z�z�8�9�=�=���/�6A��8�
��<�:�F�i8�T�i8�jB��!�G�+������	���		�	�����"
���B�J�J�	�# ��.I��I�X&�:�&��C
Js�
E5

Hacked By AnonymousFox1.0, Coded By AnonymousFox