o
    ,&]ij  ã                   @  s"   d dl mZ d dlZdd	d
„ZdS )é    )ÚannotationsNÚdataÚobjectÚunsupported_errorÚ	ExceptionÚreturnútuple[bytes, str]c                 C  sæ   t | tƒr|  ¡ }d}||fS t | tjƒr#|  ¡ }| ¡ }d}||fS t | tƒr0| }d}||fS t | tjƒrE|  d¡ |  	¡ }d}||fS t | tj
ƒrZ|  d¡ |  ¡ }d}||fS t | tjƒrq|  d¡ |  ¡ pjd}d}||fS |‚)Nz
text/plainzapplication/octet-streamr   ó    )Ú
isinstanceÚstrÚencodeÚioÚTextIOWrapperÚreadÚbytesÚBytesIOÚseekÚgetvalueÚBufferedReaderÚ	RawIOBase)r   r   Údata_as_bytesÚinferred_mime_typeÚstring_data© r   úb/var/www/html/IGF-ODF-V3/venv/lib/python3.10/site-packages/streamlit/runtime/download_data_util.pyÚ$convert_data_to_bytes_and_infer_mime   s:   
é
îñ
õ
ù
þr   )r   r   r   r   r   r   )Ú
__future__r   r   r   r   r   r   r   Ú<module>   s   