HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/email/__pycache__/_encoded_words.cpython-310.opt-2.pyc
o

�i]!�@s�	ddlZddlZddlZddlZddlmZmZddlmZgd�Z	e�
e�d�jdd��Z
dd	�ZGd
d�de�Ze�Zdeed
�<dd�Zdd�Zdd�Zdd�Zdd�Zeed�Zdd�Zeed�Zeed�Zddd�ZdS) �N)�
ascii_letters�digits)�errors)�decode_q�encode_q�decode_b�encode_b�len_q�len_b�decode�encodes=([a-fA-F0-9]{2})cCst�|�d����S)N�)�bytes�fromhex�groupr)�m�r�1/usr/local/lib/python3.10/email/_encoded_words.py�<lambda>AsrcCs|�dd�}t|�gfS)N�_� )�replace�_q_byte_subber)�encodedrrrrCsrc@s,eZdZde�d�e�d�Zdd�ZdS)�	_QByteMaps-!*+/�asciicCs4||jvrt|�||<||Sd�|�||<||S)Nz={:02X})�safe�chr�format)�self�keyrrr�__missing__Ms

�z_QByteMap.__missing__N)�__name__�
__module__�__qualname__rrrrr!rrrrrIsr�_� cCsd�dd�|D��S)N�css�|]}t|VqdS�N)�_q_byte_map��.0�xrrr�	<genexpr>Zs�zencode_q.<locals>.<genexpr>)�join��bstringrrrrYsrcCstdd�|D��S)Ncss�|]	}tt|�VqdSr()�lenr)r*rrrr-]s�zlen_q.<locals>.<genexpr>)�sumr/rrrr	\sr	cCs�t|�d}|rddd|�nd}ztj||dd�|r$t��gfWSgfWStjysztj|dd�t��gfWYStjyrztj|ddd�t��t��gfWYYStjyq|t��gfYYYSwww)N�s===�T)�validateFs==)	r1�base64Z	b64decoderZInvalidBase64PaddingDefect�binascii�ErrorZInvalidBase64CharactersDefectZInvalidBase64LengthDefect)rZpad_errZmissing_paddingrrrrds2��
������rcCst�|��d�S)Nr)r6Z	b64encoderr/rrrr�srcCs(tt|�d�\}}|d|rdSdS)N�r3r)�divmodr1)r0Zgroups_of_3Zleftoverrrrr
�sr
)�q�bc	
Cs�	|�d�\}}}}}|�d�\}}}|��}|�dd�}t||�\}}z|�|�}Wn=tyG|�t�	d|�d���|�|d�}Yn#t
tfyi|�dd�}|��dkrg|�t�d|�d	���Ynw||||fS)
N�?�*r�surrogateescapez0Encoded word contains bytes not decodable using z charset�unknown-8bitzUnknown charset z* in encoded word; decoded as unknown bytes)
�split�	partition�lowerr�
_cte_decodersr�UnicodeDecodeError�appendrZUndecodableBytesDefect�LookupError�UnicodeEncodeErrorZCharsetError)	Zewr%�charsetZcteZ
cte_string�langr0Zdefects�stringrrrr�s(
���r�utf-8r'cCs~	|dkr|�dd�}n|�|�}|dur+td|�}td|�}||dkr)dnd}t||�}|r7d|}d�||||�S)	Nr@rr?r;r<�r>z=?{}{}?{}?{}?=)r�_cte_encode_length�
_cte_encodersr)rKrI�encodingrJr0ZqlenZblenrrrrr�s
r)rLNr')�rer6r7�	functoolsrKrrZemailr�__all__�partial�compile�subrr�dictrr)�ordrr	rrr
rDrrOrNrrrrr�<module>s>)�&�+��