ó
    Ñ]j•  ã                  ó‚   • % S r SSKJr  SSKrSSKrSSKrSSKJrJr  S	S
S jjr	\
" 5       rS\S'   \4SS jjr\" 5       rg)z+
Utilities for dealing with text encodings
é    )ÚannotationsN)ÚAnyÚLiteralc                ób   • [        U S5      (       a  U R                  (       d  U$ U R                  $ )a  Return the given stream's encoding or a default.

There are cases where ``sys.std*`` might not actually be a stream, so
check for the encoding attribute prior to returning it, and return
a default if it doesn't exist or evaluates as False. ``default``
is None if not provided.
Úencoding)Úhasattrr   )ÚstreamÚdefaults     ÚS/home/mande/repo/quber/.venv/lib/python3.13/site-packages/IPython/utils/encoding.pyÚget_stream_encr      s&   € ô �6˜:×&Ñ&¨f¯o¯oØˆà�‰Ðó    ÚobjectÚ	_sentinelc                óz  • U [         La  [        R                  " S[        SS9  Sn SnU (       a  [	        [
        R                  5      nU(       a  US:X  a   [        R                  " 5       nU=(       d    [
        R                  " 5       nUS:X  a  [        R                  " S[        5        g	U$ ! [         a     NNf = f)
a¿  Return IPython's guess for the default encoding for bytes as text.

If prefer_stream is True (default), asks for stdin.encoding first,
to match the calling Terminal, but that is often None for subprocesses.

Then fall back on locale.getpreferredencoding(),
which should be a sensible platform default (that respects LANG environment),
and finally to sys.getdefaultencoding() which is the most conservative option,
and usually UTF8 as of Python 3.
zÒgetpreferredencoding(prefer_stream=) argument is deprecated since IPython 9.0, getdefaultencoding() will take no argument in the future. If you rely on `prefer_stream`, please open an issue on the IPython repo.é   )Ú
stacklevelTNÚasciiÚcp0zˆInvalid code page cp0 detected - using cp1252 instead.If cp1252 is incorrect please ensure a valid code page is defined for the process.Úcp1252)r   ÚwarningsÚwarnÚDeprecationWarningr   ÚsysÚstdinÚlocaleÚgetpreferredencodingÚ	ExceptionÚgetdefaultencodingÚRuntimeWarning)Úprefer_streamÚencs     r   r   r   .   s²   € ð œIÒ%Ü�Šð ô Øò	
ð ˆØ€CÞÜœSŸY™YÓ'ˆÞ�#˜“.ð	ô ×-Ò-Ó/ˆCð ×
)”×'Ò'Ó)€Cð ˆeƒ|Ü�Šð*ô ô		
ð Ø€Jøô ó 	Ùð	ús   ÁB- Â-
B:Â9B:)N)r	   r   r
   ú
str | NoneÚreturnr"   )r    zobject | boolr#   Ústr)Ú__doc__Ú
__future__r   r   r   r   Útypingr   r   r   r   r   Ú__annotations__r   ÚDEFAULT_ENCODING© r   r   Ú<module>r+      sG   ðòõ #ó Û Û ß öñ “H€	ˆ6Ó ð 7@ö +ñ\ &Ó'Ñ r   