403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/docutils/parsers/rst/directives/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/docutils/parsers/rst/directives/__pycache__/__init__.cpython-311.pyc
�

M=&b=9��
�dZdZddlZddlZddlmZddlmZmZddl	m
Z
mZddlm
Zidd	�d
d�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d#�d$d%�d&d'�d(d)�id*d+�d,d-�d.d/�d0d1�d2d3�d4d5�d6d7�d8d9�d:d;�d<d=�d>d?�d@dA�dBdC�dDdE�dFdG�dHdI�dJdK��dLdMdNdOdPdQdRdSdTdU�	�Z	iZ	dV�ZdW�ZdX�ZdY�ZdZ�Zd[�Zd\�Zd]�Zd^�Zgd_�Zd`�Zda�Zdpdc�Zdd�Zejdeej ��Z!df�Z"dg�Z#dh�Z$di�Z%dj�Z&dk�Z'dl�Z(dm�Z)dn�Z*do�Z+dS)qz9
This package contains directive implementation modules.
�reStructuredText�N)�
import_module)�nodes�parsers)�split_escaped_whitespace�escape2null)�en�	attention)�admonitions�	Attention�caution)r�Caution�code)�body�	CodeBlock�danger)r�Danger�error)r�Error�	important)r�	Important�note)r�Note�tip)r�Tip�hint)r�Hint�warning)r�Warning�
admonition)r�
Admonition�sidebar)r�Sidebar�topic)r�Topicz
line-block)r�	LineBlockzparsed-literal)r�
ParsedLiteral�math)r�	MathBlock�rubric)r�Rubric�epigraph)r�Epigraph�
highlights)r�
Highlightsz
pull-quote)r�	PullQuote�compound)r�Compound�	container)r�	Container�table)�tables�RSTTablez	csv-table)r6�CSVTablez
list-table)r6�	ListTable�image)�images�Image�figure)r;�Figure�contents)�parts�Contents�sectnum)r@�Sectnum�header)r@�Header�footer)r@�Footerztarget-notes)�
references�TargetNotes�meta)�misc�Meta�raw)rK�Raw)rK�Include)rK�Replace)rK�Unicode)rK�Class)rK�Role)rK�DefaultRole)rK�Title)rK�Date)rK�
TestDirective)	�include�replace�unicode�class�rolezdefault-role�title�datezrestructuredtext-test-directivec��|���}g}g}|tvrt||fSd}	|j|}n_#t$r&}|�d|�d|�d���Yd}~n4d}~wt
$r$|�d|�d|j�d���YnwxYw|sV	tj|}|�d|z��n*#t
$r|�d	|z��|}YnwxYw|rI|j�	d
�
|��|j���}|�|��	t|\}	}
n#t
$rd|fcYSwxYw	td|	z��}nX#t$rK}|�|j�d
|	�d|�d|��|j�����d|fcYd}~Sd}~wwxYw	t!||
��}
|
t|<nR#t$rE|�|j�d|
�d|	�d|�d�|j�����d|fcYSwxYw|
|fS)z�
    Locate and return a directive function from its language-dependent name.
    If not found in the current language, check English.  Return None if the
    named directive cannot be found.
    Nz8Problem retrieving directive entry from language module z: �.zNo directive entry for "z
" in module "z".z*Using English fallback for directive "%s".z(Trying "%s" as canonical directive name.�
)�linez docutils.parsers.rst.directives.z"Error importing directive module "z" (directive "z"):
zNo directive class "z").)�lower�_directives�
directives�AttributeError�append�KeyError�__name__�_fallback_language_module�reporter�info�join�current_line�_directive_registryr�ImportErrorr�getattr)�directive_name�language_module�document�normname�messages�msg_text�
canonicalnamer�message�
modulename�	classname�module�detail�	directives              �J/usr/lib/python3/dist-packages/docutils/parsers/rst/directives/__init__.pyr~r~Ms}���#�#�%�%�H��H��H��;����8�$�h�.�.��M�F�'�2�8�<�
�
���E�E�E�����,;�O�O�U�U�U�D�	E�	E�	E�	E�	E�	E�	E�	E������F�F�F�����)�>�>�?�+C�+C�+C�E�	F�	F�	F�	F�	F�F�����	%�	%�5�@��J�M��O�O�H�,�-�
.�
.�
.�
.���	%�	%�	%��O�O�F�,�-�
.�
.�
.�%�M�M�M�		%����
�!��#�(�(��I�I�h���h�&;�)�=�=������ � � �� 3�M� B��
�I�I�������X�~����������A�*�L�M�M������������)�/�/�/��z�z�>�>�>�6�6�
3��&�0�(�(�	)�	)�	)��X�~�����������������F�I�.�.�	� )��H������������)�/�/�/��y�y�*�*�*�n�n�n�
6��&�0�(�(�	)�	)�	)��X�~���������h��ss�
A�
B�A-�-.B�B�$*C�$C6�5C6�E�E'�&E'�+E>�>
G�AG�G�G�G2�2AI�Ic��|t|<dS)z�
    Register a nonstandard application-defined directive function.
    Language lookups are not needed for such functions.
    N)rd)�namer~s  r�register_directiver��s��
"�K�����c�V�|r&|���rtd|z���dS)z�
    Check for a valid flag option (no argument) and return ``None``.
    (Directive option conversion function.)

    Raise ``ValueError`` if an argument is found.
    z%no argument is allowed; "%s" suppliedN)�strip�
ValueError��arguments r�flagr��s6����H�N�N�$�$���@�8�K�L�L�L��tr�c�(�|�td���|S)z�
    Return the argument text, unchanged.
    (Directive option conversion function.)

    Raise ``ValueError`` if no argument is found.
    N�#argument required but none supplied)r�r�s r�unchanged_requiredr��s�����>�?�?�?��r�c��|�dS|S)z�
    Return the argument text, unchanged.
    (Directive option conversion function.)

    No argument implies empty string ("").
    N��r�s r�	unchangedr��s�����r��r�c��|�td���d�d�|���D����S)z�
    Return the path argument unwrapped (with newlines removed).
    (Directive option conversion function.)

    Raise ``ValueError`` if no argument is found.
    Nr�r�c3�>K�|]}|���V��dS�N)r���.0�ss  r�	<genexpr>zpath.<locals>.<genexpr>�s*����@�@�Q�q�w�w�y�y�@�@�@�@�@�@r�)r�rm�
splitlinesr�s r�pathr��sF�����>�?�?�?��w�w�@�@�(�*=�*=�*?�*?�@�@�@�@�@�@r�c��|�td���tt|����}d�d�|D����S)z�
    Return the URI argument with unescaped whitespace removed.
    (Directive option conversion function.)

    Raise ``ValueError`` if no argument is found.
    Nr�� c3�K�|]=}d�tj|�������V��>dS)r�N)rmr�unescape�split)r��parts  rr�zuri.<locals>.<genexpr>�sX����+�+� ������t� 4� 4� :� :� <� <�=�=�+�+�+�+�+�+r�)r�rrrm)r�r@s  r�urir��s`�����>�?�?�?�(��X�)>�)>�?�?���x�x�+�+�$)�+�+�+�+�+�	+r�c�N�t|��}|dkrtd���|S)z|
    Check for a nonnegative integer argument; raise ``ValueError`` if not.
    (Directive option conversion function.)
    rz(negative value; must be positive or zero��intr��r��values  r�nonnegative_intr���,��

��M�M�E��q�y�y��C�D�D�D��Lr�c�n�	|�d��}n#t$rYnwxYwt|��S)zw
    Check for an integer percentage value with optional percent sign.
    (Directive option conversion function.)
    z %)�rstriprfr�r�s r�
percentager��sH��

��?�?�4�(�(�����
�
�
���
�����8�$�$�$s��
%�%)�em�ex�px�in�cm�mm�pt�pcc�~�tjdd�|��z|��}	t|�d����nD#t
tf$r0t
dd�d�|D����z���wxYw|�d��|�d��zS)a
    Check for a positive argument of one of the units and return a
    normalized string of the form "<value><unit>" (without space in
    between).
    (Directive option conversion function.)

    To be called from directive option conversion functions.
    z^([0-9.]+) *(%s)$�|�z8not a positive measure of one of the following units:
%sr�c3� K�|]	}d|zV��
dS�z"%s"Nr�)r��is  rr�zget_measure.<locals>.<genexpr>�s&����1�1�a�v��z�1�1�1�1�1�1r��)�re�matchrm�float�grouprfr�)r��unitsr�s   r�get_measurer��s���
�H�)�C�H�H�U�O�O�;�X�F�F�E�3�
�e�k�k�!�n�n�������J�'�3�3�3��G��h�h�1�1�5�1�1�1�1�1�
2�3�3�	3�3�����;�;�q�>�>�E�K�K��N�N�*�*s�"A�ABc�4�t|tdgz��S)Nr�)r��length_unitsr�s r�length_or_unitlessr�s���x����!4�5�5�5r�r�c���	t|tdgz��S#t$rC	t|dg��|zcYS#t$rt|tdgz��cYcYSwxYwwxYw)a�
    Return normalized string of a length or percentage unit.
    (Directive option conversion function.)

    Add <default> if there is no unit. Raise ValueError if the argument is not
    a positive measure of one of the valid CSS units (or without unit).

    >>> length_or_percentage_or_unitless('3 pt')
    '3pt'
    >>> length_or_percentage_or_unitless('3%', 'em')
    '3%'
    >>> length_or_percentage_or_unitless('3')
    '3'
    >>> length_or_percentage_or_unitless('3', 'px')
    '3px'
    �%r�)r�r�r�)r��defaults  r� length_or_percentage_or_unitlessr�s���"?��8�\�S�E�%9�:�:�:���?�?�?�	?��x�"��.�.��8�8�8�8���	?�	?�	?��x����)=�>�>�>�>�>�>�>�	?����?���s)��
A(�<�A(�#A$�A(�#A$�$A(c���|�td���|���}g}|D]?}tj|��}|std|z���|�|���@|S)z�
    Convert the argument into a list of ID-compatible strings and return it.
    (Directive option conversion function.)

    Raise ``ValueError`` if no argument is found.
    Nr�z"cannot make "%s" into a class name)r�r�r�make_idrg)r��names�class_namesr��
class_names     r�class_optionr�s������>�?�?�?��N�N���E��K��'�'���]�4�(�(�
��	J��A�D�H�I�I�I����:�&�&�&�&��r�z2(?:0x|x|\\x|U\+?|\\u)([0-9a-f]+)$|&#x([0-9a-f]+);$c�v�	|���rtt|����St�|��}|rG|�d��p|�d��}tt|d����S|S#t$r}td|z���d}~wwxYw)a�
    Convert a Unicode character code to a Unicode character.
    (Directive option conversion function.)

    Codes may be decimal numbers, hexadecimal numbers (prefixed by ``0x``,
    ``x``, ``\x``, ``U+``, ``u``, or ``\u``; e.g. ``U+262E``), or XML-style
    numeric character entities (e.g. ``&#x262E;``).  Other text remains as-is.

    Raise ValueError for illegal Unicode code values.
    r�r��zcode too large (%s)N)�isdigit�chrr��unicode_patternr�r��
OverflowErrorr�)rr�r�r}s    r�unicode_coder�6s���9��<�<�>�>�	��s�4�y�y�>�>�!�#�)�)�$�/�/�E��
����A���8�%�+�+�a�.�.���3�u�b�>�>�*�*�*�����9�9�9��.��7�8�8�8�����9���s#�/B�A"B�B�
B8�!B3�3B8c�n�t|��}t|��dkrtd|z���|S)z�
    A single character is returned as-is.  Unicode characters codes are
    converted as in `unicode_code`.  (Directive option conversion function.)
    r�z8%r invalid; must be a single character or a Unicode code)r��lenr��r��chars  r�single_char_or_unicoder�OsD��
��!�!�D�
�4�y�y�1�}�}��*�,0�1�2�2�	2��Kr�c�H�|dkrd}n|dkrd}nt|��}|S)z�
    As with `single_char_or_unicode`, but "tab" and "space" are also supported.
    (Directive option conversion function.)
    �tab�	�spacer�)r�r�s  r�$single_char_or_whitespace_or_unicoder�[s:��
�5������	�W�	�	����%�h�/�/���Kr�c�N�t|��}|dkrtd���|S)z�
    Converts the argument into an integer.  Raises ValueError for negative,
    zero, or non-integer values.  (Directive option conversion function.)
    r�z(negative or zero value; must be positiver�r�s  r�positive_intr�ir�r�c�v�d|vr|�d��}n|���}d�|D��S)z�
    Converts a space- or comma-separated list of values into a Python list
    of integers.
    (Directive option conversion function.)

    Raises ValueError for non-positive-integer values.
    �,c�,�g|]}t|����Sr�)r�)r��entrys  r�
<listcomp>z%positive_int_list.<locals>.<listcomp>�s ��5�5�5�E�L����5�5�5r�)r�)r��entriess  r�positive_int_listr�tsC���h����.�.��%�%����.�.�"�"��5�5�W�5�5�5�5r�c�r�	tj|��n #t$rtd|z���wxYw|S)z�
    Verifies the encoding argument by lookup.
    (Directive option conversion function.)

    Raises ValueError for unknown encodings.
    zunknown encoding: "%s")�codecs�lookup�LookupErrorr�r�s r�encodingr��sN��>��
�h�������>�>�>��1�H�<�=�=�=�>�����Os��4c��	|������}n-#t$r tdt	|��z���wxYw||vr|Std|�dt	|�������)a
    Directive option utility function, supplied to enable options whose
    argument must be a member of a finite set of possible values (must be
    lower case).  A custom conversion function must be written to use it.  For
    example::

        from docutils.parsers.rst import directives

        def yesno(argument):
            return directives.choice(argument, ('yes', 'no'))

    Raise ``ValueError`` if no argument is found or if the argument's value is
    not valid (not an entry in the supplied list).
    z'must supply an argument; choose from %s�"z" unknown; choose from )rcr�rfr��
format_values)r��valuesr�s   r�choicer��s���2���� � �&�&�(�(�����2�2�2��B�(��0�0�1�2�2�	2�2����
�������j�$�H�H�m�F�&;�&;�&;�=�>�>�	>s	�&)�*Ac�h�d�d�|dd�D�����d|d�d�S)Nz, c3� K�|]	}d|zV��
dSr�r�r�s  rr�z format_values.<locals>.<genexpr>�s&����%F�%F�Q�f�q�j�%F�%F�%F�%F�%F�%Fr����z, or "r�)rm)r�s rr�r��sC�� �I�I�%F�%F�&��"��+�%F�%F�%F�F�F�F�F�"�2�J�J�J�(�(r�c������fd�}|S)zl
    Directive option conversion function.

    The argument can be any of `values` or `argument_type`.
    c�&��|�vr|S�|��Sr�r�)r��otherr�s ��r�
auto_or_otherzvalue_or.<locals>.auto_or_other�s!����v����O��5��?�?�"r�r�)r�r�r�s`` r�value_orr��s*����#�#�#�#�#�#�
�r�c��|sdS	tj|��S#t$r!}tt	|�����d}~wwxYw)z�
    Return a docutils parser whose name matches the argument.
    (Directive option conversion function.)

    Return `None`, if the argument evaluates to `False`.
    Raise `ValueError` if importing the parser module fails.
    N)r�get_parser_classrpr��str)r��errs  r�parser_namer��sZ�����t�#��'��1�1�1���#�#�#���S���"�"�"�����#���s��
A�A�A)r�),�__doc__�
__docformat__r�r��	importlibr�docutilsrr�docutils.utilsrr�docutils.parsers.rst.languagesr	rjrordr~r�r�r�r�r�r�r�r�r�r�r�r�r��compile�
IGNORECASEr�r�r�r�r�r�r�r�r�r�r�r�r�r�<module>rs!��
��#�
�	�	�	�	�
�
�
�
�#�#�#�#�#�#�#�#�#�#�#�#�#�#�@�@�@�@�@�@�@�@�J�J�J�J�J�J�0��/�0��+�0�
�#�0��)�	0�
�'�0��/�
0�
�%�0��
#�0�
�%�0��+�0��1�0��$�0�� �0��)�0��1�0� 
�#�!0�"�"�#0�0�$�&�%0�&�*�'0�(�)�)0�*�&�+0�,�(�-0�0�%�10�2�)�30�4�+�50�6�"�70�8�$�90�:�'�;0�<�%�=0�>�#�?0�@�#�A0�F�3�G0�H
��I0�L�_�M0�0�N%�$�$� ��-� ��)B�_0�0�0��b5���#�8�8�8�v"�"�"�
�
�
�
�
�
�
�
�
�
A�
A�
A�+�+�+����	%�	%�	%�@�?�?��+�+�+�&6�6�6�?�?�?�?�6���&�"�*�9�2�=�J�J��9�9�9�2	�	�	�������6�6�6����>�>�>�6(�(�(�
���
#�
#�
#�
#�
#r�

Youez - 2016 - github.com/yon3zu
LinuXploit