§
    ŽŸj;  ã                   ó"   — d Z ddlZddlZdd„ZdS )zText related utils.é    Né   Fc                 óD  — | €dS d|z  d|z  z   }|rt          j        dt           j        ¦  «        nt          j        dt           j        ¦  «        }t          j        ||| ¦  «        }|                     t
          j        |z   ¦  «        r|dt          |¦  «         …         S |S )aš  Indent a string a given number of spaces or tabstops.

    indent(str,nspaces=4,ntabs=0) -> indent str by ntabs+nspaces.

    Parameters
    ----------

    instr : basestring
        The string to be indented.
    nspaces : int (default: 4)
        The number of spaces to be indented.
    ntabs : int (default: 0)
        The number of tabs to be indented.
    flatten : bool (default: False)
        Whether to scrub existing indentation.  If True, all lines will be
        aligned to the same indentation.  If False, existing indentation will
        be strictly increased.

    Returns
    -------

    str|unicode : string indented by ntabs and nspaces.

    Nú	ú z^\s*ú^)ÚreÚcompileÚ	MULTILINEÚsubÚendswithÚosÚlinesepÚlen)ÚinstrÚnspacesÚntabsÚflattenÚindÚpatÚoutstrs          úa/var/www/finuniver-perm.ru/html/student/venv/lib/python3.11/site-packages/nbconvert/utils/text.pyÚindentr      s•   € ð2 €}ØˆtØ
�‰,˜˜w™Ñ
&€CØ/6Ð
Y�"Œ*�W�bœlÑ
+Ô
+Ð
+½B¼JÀsÍBÌLÑ<YÔ<Y€CÝŒV�C˜˜eÑ$Ô$€FØ‡‚•r”z CÑ'Ñ(Ô(ð #Ø�k�˜S™œ˜	�kÔ"Ð"Ø€Mó    )r   r   F)Ú__doc__r   r   r   © r   r   ú<module>r      s;   ðØ Ð à 	€	€	€	Ø 	€	€	€	ð ð  ð  ð  ð  ð  r   