§
    ¡”jÐ  ã                   ó~   — d Z ddlmZmZ ddlmZmZ eeef         Z		 	 	 dde	d	ed
ee         de
de	f
d„Zdedefd„ZdS )z4Provides a wrpper for the Rust based implementation.é    )ÚOptionalÚUnioné   )Úget_base_level_innerÚget_display_innerúutf-8NFÚstr_or_bytesÚencodingÚbase_dirÚdebugÚreturnc                 ó¸   — t          | t          ¦  «        r|                      |¦  «        }d}n| }d}t          |||¦  «        }|r|                     |¦  «        }|S )aa  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          ú[/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/bidi/wrapper.pyÚget_displayr   	   si   € õ" �,¥Ñ&Ô&ð Ø×"Ò" 8Ñ,Ô,ˆØˆˆàˆØˆå  h°Ñ6Ô6€Gàð +Ø—.’. Ñ*Ô*ˆà€Nó    r   c                 ó    — t          | ¦  «        S )zxReturns 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   )r   NF)Ú__doc__Útypingr   r   Úbidir   r   Ústrr   Ú
StrOrBytesÚboolr   Úintr   © r   r   ú<module>r#      sÌ   ðØ :Ð :à "Ð "Ð "Ð "Ð "Ð "Ð "Ð "à 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9à�3˜�:Ô€
ð Ø"Øð	ð Øðàðð �sŒmðð ð	ð
 ðð ð ð ð@&˜ð & ð &ð &ð &ð &ð &ð &r   