ó
    pyüiÐ  ã                   óv   • S r SSKJrJr  SSKJrJr  \\\4   r	   SS\	S\S\\   S	\
S
\	4
S jjrS\S
\4S jrg)z4Provides a wrpper for the Rust based implementation.é    )ÚOptionalÚUnioné   )Úget_base_level_innerÚget_display_innerNÚstr_or_bytesÚencodingÚbase_dirÚdebugÚreturnc                 ó¨   • [        U [        5      (       a  U R                  U5      nSnOU nSn[        XBU5      nU(       a  UR	                  U5      nU$ )aI  Accepts string or bytes. In case of bytes, `encoding`
is needed as the inner function expects a valid string (default:"utf-8").

Set `base_dir` to 'L' or 'R' to override the calculated base_level.

Set `debug` to True to return the calculated levels.

Returns the display layout, either as unicode or `encoding` encoded
string.

TF)Ú
isinstanceÚbytesÚdecoder   Úencode)r   r	   r
   r   ÚtextÚwas_decodedÚdisplays          ÚI/home/mande/repo/quber/.venv/lib/python3.13/site-packages/bidi/wrapper.pyÚget_displayr   	   sR   € ô" �,¤×&Ñ&Ø×"Ñ" 8Ó,ˆØ‰àˆØˆä °Ó6€GæØ—.‘. Ó*ˆà€Nó    r   c                 ó   • [        U 5      $ )zpReturns the base unicode level of the 1st paragraph in `text`.

Return value of 0 means LTR, while 1 means RTL.
)r   )r   s    r   Úget_base_levelr   )   s   € ô
   Ó%Ð%r   )zutf-8NF)Ú__doc__Útypingr   r   Úbidir   r   Ústrr   Ú
StrOrBytesÚboolr   Úintr   © r   r   Ú<module>r"      sr   ðÙ :ç "ç 9à�3˜�:Ñ€
ð Ø"Øñ	Øðàðð �s‰mðð ð	ð
 õð@&˜ð & õ &r   