HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pygments/lexers/__pycache__/markup.cpython-311.pyc
�

�E�c�h���dZddlZddlmZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZddlmZmZmZmZmZmZmZmZmZmZmZddlmZm Z gd	�Z!Gd
�de	��Z"Gd�d
e	��Z#Gd�de	��Z$Gd�de	��Z%Gd�de	��Z&Gd�de	��Z'Gd�de'��Z(Gd�de
��Z)Gd�de
��Z*Gd�de
��Z+Gd�de	��Z,Gd �d!e	��Z-dS)"z�
    pygments.lexers.markup
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for non-HTML markup languages.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�XmlLexer)�JavascriptLexer)�CssLexer)	�
RegexLexer�DelegatingLexer�include�bygroups�using�this�
do_insertions�default�words)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Other�
Whitespace)�get_bool_opt�
ClassNotFound)�BBCodeLexer�
MoinWikiLexer�RstLexer�TexLexer�
GroffLexer�MozPreprocHashLexer�MozPreprocPercentLexer�MozPreprocXulLexer�MozPreprocJavascriptLexer�MozPreprocCssLexer�
MarkdownLexer�TiddlyWiki5Lexerc��eZdZdZdZdgZdgZdefdedfdefgd	efd
e	e
jee
��fde	ee
��fded
fgd�ZdS)rzR
    A lexer that highlights BBCode(-like) syntax.

    .. versionadded:: 0.6
    �BBCode�bbcodez
text/x-bbcodez[^[]+z\[/?\w+�tagz\[�\s+z(\w+)(=)("?[^\s"\]]+"?)z(=)("?[^\s"\]]+"?)z\]�#pop)�rootr+N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	mimetypesrrr	r�	Attributerr�tokens���8/usr/lib/python3/dist-packages/pygments/lexers/markup.pyrrs����������D��j�G� �!�I��t��
��%�(�
�D�M�
��T�N�
'�
�X�d�n�h��
7�
7�
9�#�
�X�h��
'�
'�
)��G�V�$�

���F�F�Fr9rc��eZdZdZdZddgZgZdgZej	ej
zZdefde
ee��fde
ejee��eje��fd	e
ejej��d
fdefde
eeje��fd
e
eeje��fdefde
eee��fdefdefdefdefg
dejdfdedfdejfdejfgd�ZdS)rzI
    For MoinMoin (and Trac) Wiki markup.

    .. versionadded:: 0.7
    zMoinMoin/Trac Wiki markupz	trac-wiki�moinztext/x-trac-wikiz^#.*$z(!)(\S+)z^(=+)([^=]+)(=+)(\s*#.+)?$z(\{\{\{)(\n#!.+)?�	codeblockz(\'\'\'?|\|\||`|__|~~|\^|,,|::)z^( +)([.*-])( )z^( +)([a-z]{1,5}\.)( )z\[\[\w+.*?\]\]z(\[[^\s\]]+)(\s+[^\]]+?)?(\])z^----+$z[^\n\'\[{!_~^,|]+�\n�.z\}\}\}r-z\{\{\{z#pushz[^{}]+)r.r=N)r/r0r1r2r3r4�	filenamesr5�re�	MULTILINE�
IGNORECASE�flagsrr	rrr�Headingr
rrr�Builtin�	Namespace�Preprocr7r8r9r:rr>s_��������'�D��F�#�G��I�#�$�I��L�2�=�(�E��w��
�(�(�7�D�1�1�2�
*�
�X�g�o�u�u�T�{�{�G�O�V�
L�
L�
N�"�8�8�D�L�$�.�#I�#I�;�W�
/��9�
���$���d�!C�!C�D�
&����t�|�T�(J�(J�K�
��(�
-�
�X�g�v�w�
/�
/�
1�
��!�
!�4�(�
�D�M�
�4�L�'
�,���f�-�
��g�&�
���(�
�7�?�#�
�-��F�F�Fr9rc��eZdZdZdZdZgd�ZddgZddgZe	j
Zd	�Zd
Z
dZde	je���e	je
���d
�Zdeejeejeeje��fdeejeeje��fdeeeeed�����fdeeeeed�����fdeeeeed�����fdeeeeed�����fdeeeeed�����fdeeeeed�����fdefdeeeejeeeed�����fdeeeejeed�����fdeeeejeed�����fdeeeejeejeeeed�����fdejfdeeeje��fdeeed���eed�����fd ee j!ee e ee ��fe"d��gd!efd"e d#fd$ee e j#e ��fd%e fd&eej$ej%��fd'eej%ej$��fd(ej&fd)ej'fd*e fd+ejfd,efd-efgd.e fd"eze d/fd0e fgd1�Z(d2�Z)d3�Z*d4S)5ran
    For reStructuredText markup.

    .. versionadded:: 0.7

    Additional options accepted:

    `handlecodeblocks`
        Highlight the contents of ``.. sourcecode:: language``,
        ``.. code:: language`` and ``.. code-block:: language``
        directives with a lexer for the given language (default:
        ``True``).

        .. versionadded:: 0.8
    �reStructuredTextz(https://docutils.sourceforge.io/rst.html)�restructuredtext�rst�restz*.rstz*.restz
text/x-rstztext/prs.fallenstein.rstc	#��K�ddlm}|�d��t|�d��fV�|�d��t
|�d��fV�|�d��tj|�d��fV�|�d��t|�d��fV�|�d��t
|�d��fV�|�d��t|�d��fV�|�d	��t
|�d	��fV�d}|j	rB	||�d���
����}n#t$rYnwxYw|�d
��}t|��}||�d��z|�d��z|�d
��z}|�!|�d
��t|fV�dSg}|�d��}d}|D]]}	t|	��|krC|�t|��dt
|	d|�fgf��||	|d�z
}�X||	z
}�^t!||�|����Ed{V��dS)Nr��get_lexer_by_name���������	�
�T�)�pygments.lexersrP�startr�grouprr�Wordr�handlecodeblocks�stripr�lenr�
splitlines�appendr�get_tokens_unprocessed)
�self�matchrP�lexer�	indention�indention_size�code�ins�	codelines�lines
          r:�_handle_sourcecodezRstLexer._handle_sourcecode�s�����5�5�5�5�5�5��k�k�!�n�n�k�5�;�;�q�>�>�9�9�9�9��k�k�!�n�n�d�E�K�K��N�N�2�2�2�2��k�k�!�n�n�h�m�U�[�[��^�^�;�;�;�;��k�k�!�n�n�k�5�;�;�q�>�>�9�9�9�9��k�k�!�n�n�d�E�K�K��N�N�2�2�2�2��k�k�!�n�n�g�u�{�{�1�~�~�5�5�5�5��k�k�!�n�n�d�E�K�K��N�N�2�2�2�2���� �	�
�)�)�%�+�+�a�.�.�*>�*>�*@�*@�A�A���� �
�
�
���
�����K�K��N�N�	��Y�����E�K�K��N�N�*�U�[�[��_�_�<�u�{�{�2���N���=��+�+�a�.�.�&�$�.�.�.�.��F����O�O�D�)�)�	����	�	�D��4�y�y�>�)�)��
�
�C��I�I��D�$����2G�(H�'I�J�K�K�K���^�_�_�-�-�������� ��e�&B�&B�4�&H�&H�I�I�I�I�I�I�I�I�I�I�Is�60F'�'
F4�3F4u'")]}>’”»!?u‐‑‒–— z((?=$)|(?=[-/:.,; \n\x00z]))zH^(=+|-+|`+|:+|\.+|\'+|"+|~+|\^+|_+|\*+|\++|#+)([ \t]*\n)(.+)(\n)(\1)(\n)zc^(\S.*)(\n)(={3,}|-{3,}|`{3,}|:{3,}|\.{3,}|\'{3,}|"{3,}|~{3,}|\^{3,}|_{3,}|\*{3,}|\+{3,}|#{3,})(\n)z!^(\s*)([-*+])( .+\n(?:\1  .+\n)*)�inline��statez1^(\s*)([0-9#ivxlcmIVXLCM]+\.)( .+\n(?:\1  .+\n)*)z4^(\s*)(\(?[0-9#ivxlcmIVXLCM]+\))( .+\n(?:\1  .+\n)*)z$^(\s*)([A-Z]+\.)( .+\n(?:\1  .+\n)+)z*^(\s*)(\(?[A-Za-z]+\))( .+\n(?:\1  .+\n)+)z^(\s*)(\|)( .+\n(?:\|  .+\n)*)zl^( *\.\.)(\s*)((?:source)?code(?:-block)?)(::)([ \t]*)([^\n]+)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\8.*)?\n)+)z,^( *\.\.)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))z'^( *\.\.)(\s*)(_(?:[^:\\]|\\.)+:)(.*?)$z^( *\.\.)(\s*)(\[.+\])(.*?)$z9^( *\.\.)(\s*)(\|.+\|)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))z^ *\.\..*(\n( +.*\n|\n)+)?z+^( *)(:(?:\\\\|\\:|[^:\n])+:(?=\s))([ \t]*)z!^(\S.*(?<!::)\n)((?:(?: +.*)\n)+)z2(::)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\3.*)?\n)+)�\\.z``�literalz(`.+?)(<.+?>)(`__?)z`.+?`__?z(`.+?`)(:[a-zA-Z0-9:-]+?:)?z(:[a-zA-Z0-9:-]+?:)(`.+?`)z\*\*.+?\*\*z\*.+?\*z\[.*?\]_z<.+?>z
[^\\\n\[*`:]+r?z[^`]+r-�`)r.rqruc�V�t|dd��|_tj|fi|��dS�NraT�rrar�__init__�rg�optionss  r:rzzRstLexer.__init__�6�� ,�W�6H�$� O� O�����D�,�,�G�,�,�,�,�,r9c��|dd�dkr|dd�dkrdS|�d��}|�d|dz��}|dkr3|dzdz|kr)||dzd	vr||dz||dz
krd
SdSdSdSdS)NrRz..rSr?g333333�?�
rQ���z-=g�?)�find)�text�p1�p2s   r:�analyse_textzRstLexer.analyse_texts�������8�t����Q�q�S�	�S� 0� 0��3�
�Y�Y�t�_�_��
�Y�Y�t�R�!�V�
$�
$����G�G��Q���
�b� � ��R��T�
�d�"�"��R��T�
�d�2�a�4�j�(�(��3�	
�G� � �"�"�(�(r9N)+r/r0r1r2r3�urlr4r@r5rArBrDrp�closers�unicode_delimiters�escape�end_string_suffixr	rrErrr
rrrr`r�TagrrH�Classr�Escaper�Interpol�Variabler6�Strong�Emphr7rzr�r8r9r:rrksf���������D�
4�C�1�1�1�G��(�#�I��9�:�I��L�E�&J�&J�&J�R*�G�?���%�B�I�&8�9�9�9�%�B�I�g�.�.�.�.�0��!�
�X�g�o�t�W�_��G�O�T�3�3�
4�
<�
�X�g�o�t�W�_�d�
C�
C�
E�2�
�X�d�F�E�E�$�h�$?�$?�$?�
@�
@�
B�B�
�X�d�F�E�E�$�h�$?�$?�$?�
@�
@�
B�
D�
�X�d�F�E�E�$�h�$?�$?�$?�
@�
@�
B�5�
�X�d�F�E�E�$�h�$?�$?�$?�
@�
@�
B�
:�
�X�d�F�E�E�$�h�$?�$?�$?�
@�
@�
B�/�
�X�d�H�e�e�D��&A�&A�&A�
B�
B�
D�?�
�
!�=�
�X�k�4����T��e�D��1�1�1�3�3�
4�8�
�X�k�4���5�5��X�3N�3N�3N�
O�
O�
Q�-�
�X�k�4���5�5��X�3N�3N�3N�
O�
O�
Q�J�
�X�k�4���4���!�4���t�8�)D�)D�)D�F�F�
G�+�G�O�<�
;�
�X�d�D�J��
-�
-�
/�2�
�X�e�e�D��1�1�1�5�5��X�3N�3N�3N�
O�
O�
Q�C�
�X�f�m�T�6�6�4��
H�
H�
J��G�H���o8
�t�T�N�
�F�I�&�
#�
�X�f�f�o�v�
6�
6�
8�
�&�!�
+�
�X�d�m�T�^�
4�
4�
6�
*�
�X�d�n�d�m�
4�
4�
6�
�W�^�,�
���&�
�&�!�
�t�x� �
�t�$�
�4�L�
�$�v��
�&�
&���7�
�6�N�
�WP�P�F�d-�-�-�	�	�	�	�	r9rc
��eZdZdZdZddgZgd�ZddgZdefd	e	j
fd
e	j
fgdejdfd
edfdejdfdedfde
dfde
fed��defgde	jfed��defdefde	j
fgdedfdedfed��gdedfdedfde	j
fed��gde	jfde
fed��gd�Zd �Zd!S)"rz<
    Lexer for the TeX and LaTeX typesetting languages.
    �TeX�tex�latex)z*.texz*.auxz*.tocz
text/x-texztext/x-latexz%.*?\nz[{}]z[&_^]z\\\[�displaymathz\\\(�
inlinemathz\$\$z\$z\\([a-zA-Z]+|.)�commandz\\$�generalz
[^\\$%&_^{}]+�[0-9]+z[-=!+*/()\[\]]z[^=!+*/()\[\]\\$%&_^{}0-9-]+z\\\)r-�mathz\\\]z\[.*?\]z\*)r�r.r�r�r�r�c�L�dD] }|dt|���|krdS�!dS)N)z\documentclassz\inputz\documentstylez\relaxT)rc)r�r^s  r:r�zTexLexer.analyse_textFsC��!�	�	�E��K�S��Z�Z�K� �E�)�)��t�t�*�	�	r9N)r/r0r1r2r3r4r@r5rrrFr�Backtickrrrr�rrr6r
r7r�r8r9r:rrs����������D��g��G�+�+�+�I��~�.�I��� �
�d�l�#�
�t�|�$�
��f�o�}�5�
�f�l�+�
�f�o�}�5�
�F�L�)�
��)�4�
�W���G�I���
�t�$�	
� ���/��G�I���
���
��)�
,�d�l�;�
��f�f�%�
�F�F�#��G�F�O�O�
��f�f�%�
�f�f�%�
�D�L�!��G�F�O�O�	
����(�
�G���G�F�O�O�
�E'�'�F�R����r9rc
�0�eZdZdZdZgd�Zgd�ZddgZdee	e
��dfd	edfd
e	dfed��ge
d��d
e	fd
e	dfgdefdejfdejfdejfdejfde	dfgd
e	dfe
d��dejfdefdefde	fgd�Zd�ZdS)r z�
    Lexer for the (g)roff typesetting language, supporting groff
    extensions. Mainly useful for highlighting manpage sources.

    .. versionadded:: 0.6
    �Groff)�groff�nroff�man)z*.[1-9]z*.manz*.1pz*.3pmzapplication/x-troffz
text/troffz	(\.)(\w+)�requestz\.z[^\\\n]+�textline�escapesr>r-z	\\"[^\n]*z\\[fn]\wz\\\(.{2}z	\\.\[.*\]rtz\\\nz	"[^\n"]+"z\d+z\S+r,)r.r�r�r�c���|dd�dkrdS|dd�dkrdS|dd�dkrdS|dd����r|d���rd	SdSdS)
NrQr?FrSz.\"TrTz.TH g�������?)�isalnum�isspace)r�s r:r�zGroffLexer.analyse_textzs�������8�s�?�?��5�����8�v����4�����8�v����4���!��9�����	�4��7�?�?�#4�#4�	��3�	�	�	�	r9N)r/r0r1r2r3r4r@r5r	rrrr
rrrr��Doublerr7r�r8r9r:r r MsE���������D�'�'�'�G�5�5�5�I�&��5�I��8�8�D�'�2�2�I�>�
�K��+�
�$�
�+��G�J���
�
�G�I���
�$��
�D�&�!�
��7�#�
�&�-�(�
�&�-�(�
�6�=�)�
�V�]�#�
�d�I�&�
��D�&�!��G�I���
�6�=�)�
�V��
�V��
�T�N�

�-��F�@����r9r c
��eZdZdZdZegZgZgZdej	dfde
fgdeej	e��dfe
d��ej	d	fge
d
��efdeee��fdefd
ejfdejfdejfdefded	fdefdefg
d�ZdS)r!z�
    Lexer for Mozilla Preprocessor files (with '#' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    �mozhashpreprocz^#��expr�	exprstart�.+z
(literal)(.*)z#pop:2)�define�undef�if�ifdef�ifndef�else�elif�elifdef�elifndef�endif�expand�filter�unfilterr�includesubst�errorr-)�!z!=z==z&&z||z
(defined)(\()z\)r�z__\w+?__z@\w+?@z\w+r>r,z\S)r.r�r�N)r/r0r1r2r3r4r@r5rrHrr	rrrrrr�Decimalrr�r�r7r8r9r:r!r!�s���������D��f�G��I��I��G�O�%:�;�
�E�N�
�
�x�x����>�>��I�
�U�4�5�5��_�f�	
&�
��U�0�
1�
1�8�<�
�x�x���=�=�>�
�K� �
���'�
�$�-�(�
��
�#�
�T�N�
�D�&�!�
�T�N�
�K� �
���F�F�Fr9r!c�D�eZdZdZdZegZgZgZddej	dfde
fgiZdS)r"z�
    Lexer for Mozilla Preprocessor files (with '%' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    �mozpercentpreprocr.z^%r�r�N)r/r0r1r2r3r4r@r5rrHrr7r8r9r:r"r"�sU���������D��f�G��I��I�	�
�G�O�%:�;�
�E�N�
��F�F�Fr9r"c�6��eZdZdZdZdgZdgZgZ�fd�Z�xZ	S)r#z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `XmlLexer`.

    .. versionadded:: 2.0
    zXUL+mozpreproczxul+mozpreprocz*.xul.inc�R��t��jttfi|��dS�N)�superrzrr!�rgr|�	__class__s  �r:rzzMozPreprocXulLexer.__init__�s+���������#6�B�B�'�B�B�B�B�Br9�
r/r0r1r2r3r4r@r5rz�
__classcell__�r�s@r:r#r#�sf����������D�� �G���I��I�C�C�C�C�C�C�C�C�Cr9r#c�6��eZdZdZdZdgZdgZgZ�fd�Z�xZ	S)r$z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `JavascriptLexer`.

    .. versionadded:: 2.0
    zJavascript+mozpreproczjavascript+mozpreprocz*.js.inc�R��t��jttfi|��dSr�)r�rzrr!r�s  �r:rzz"MozPreprocJavascriptLexer.__init__�s+���������*=�I�I��I�I�I�I�Ir9r�r�s@r:r$r$�sf���������#�D�&�'�G���I��I�J�J�J�J�J�J�J�J�Jr9r$c�6��eZdZdZdZdgZdgZgZ�fd�Z�xZ	S)r%z�
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `CssLexer`.

    .. versionadded:: 2.0
    zCSS+mozpreproczcss+mozpreprocz*.css.inc�R��t��jttfi|��dSr�)r�rzrr"r�s  �r:rzzMozPreprocCssLexer.__init__�s+���������#9�E�E�W�E�E�E�E�Er9r�r�s@r:r%r%�sf����������D�� �G���I��I�F�F�F�F�F�F�F�F�Fr9r%c��eZdZdZdZdZddgZddgZdgZe	j
Zd	�Zd
e
eje��fde
eje��fde
ejeeje��fd
e
ejeeje��fde
eeeeed�����fde
eeeeed�����fde
eeeed�����fde
eej��fdejfdefed��gdefde
eej��fde
eej��fde
eej��fde
eej��fde
eej��fde
eej��fdejfde
eejeeeje��fde
eejeeej e��fd e
eej eej��fd!efd"efg
d#�Z!d$�Z"d%S)&r&z9
    For Markdown markup.

    .. versionadded:: 2.2
    �Markdownz-https://daringfireball.net/projects/markdown/�markdown�mdz*.mdz
*.markdownztext/x-markdownc#�K�ddlm}|�d��tj|�d��fV�|�d��tj|�d��fV�|�d��t|�d��fV�d}|jrB	||�d�������}n#t$rYnwxYw|�d��}|� |�d��t|fV�n)tg|�|����Ed{V��|�d��tj|�d��fV�dS�	zV
        match args: 1:backticks, 2:lang_name, 3:newline, 4:code, 5:backticks
        rrOrQrRrSNrTrU)r]rPr^rr�r_rrarbrrrf�rgrhrPrirls     r:�_handle_codeblockzMarkdownLexer._handle_codeblocks�����	6�5�5�5�5�5��k�k�!�n�n�f�o�u�{�{�1�~�~�=�=�=�=��k�k�!�n�n�f�o�u�{�{�1�~�~�=�=�=�=��k�k�!�n�n�d�u�{�{�1�~�~�=�=�=�=���� �	�
�)�)�5�;�;�q�>�>�+?�+?�+A�+A�C�C���� �
�
�
���
�����{�{�1�~�~���=��+�+�a�.�.�&�$�.�.�.�.�.�$�R��)E�)E�d�)K�)K�L�L�L�L�L�L�L�L�L��k�k�!�n�n�f�o�u�{�{�1�~�~�=�=�=�=�=�=s�30C$�$
C1�0C1z(^#[^#].+)(\n)z(^#{2,6}[^#].+)(\n)z^(.+)(\n)(=+)(\n)z^(.+)(\n)(-+)(\n)z^(\s*)([*-] )(\[[ xX]\])( .+\n)rqrrz^(\s*)([*-])(\s)(.+\n)z^(\s*)([0-9]+\.)( .+\n)z^(\s*>\s)(.+\n)z^(\s*```\n[\w\W]*?^\s*```$\n)z(^(\s*```)(\w+)(\n)([\w\W]*?)(^\s*```$\n)rtz([^`]?)(`[^`\n]+`)z ([^\*]?)(\*\*[^* \n][^*\n]*\*\*)z([^_]?)(__[^_ \n][^_\n]*__)z([^\*]?)(\*[^* \n][^*\n]*\*)z([^_]?)(_[^_ \n][^_\n]*_)z([^~]?)(~~[^~ \n][^~\n]*~~)z[@#][\w/:]+z (!?\[)([^]]+)(\])(\()([^)]+)(\))z(\[)([^]]+)(\])(\[)([^]]*)(\])z^(\s*\[)([^]]*)(\]:\s*)(.+)z[^\\\s]+r?)r.rqc�V�t|dd��|_tj|fi|��dSrxryr{s  r:rzzMarkdownLexer.__init__\r}r9N)#r/r0r1r2r3r�r4r@r5rArBrDr�r	rrEr�
Subheadingrrr
rr�rr�rr��Deletedr�Entityr�r6�Labelr7rzr8r9r:r&r&�s���������
�D�
9�C��4� �G���&�I�"�#�I��L�E�>�>�>�>�����$� ?� ?�@�
#�X�X�g�.@�$�%G�%G�H�
!�8�8�G�O�T�7�?�TX�#Y�#Y�Z�
!�8�8�G�,>��g�FX�Z^�#_�#_�`�
/��H�Z��'�5�5��X�3N�3N�3N�O�O�
Q�'��H�Z��*�e�e�D��6Q�6Q�6Q�R�R�
T�(��H�Z��%�%��H�*E�*E�*E�F�F�
H� ���'�7�<�!@�!@�A�
-�v��?�
8�:K�L��G�H���3
�:�T�N�
"�H�H�T�6�?�$C�$C�D�1�(�(�4���2P�2P�Q�
+�X�X�d�G�N�-K�-K�L�
,�h�h�t�W�\�.J�.J�K�
)�8�8�D�'�,�+G�+G�H�
+�X�X�d�G�O�-L�-L�M�
�T�[�)�
0�
�X�d�D�H�d�D�$�.�$�
G�
G�
I�
/�
�X�d�D�H�d�D�$�*�d�
C�
C�
E�
+�
�X�d�D�J��d�n�
=�
=�
?��$��
�4�L�A!
�9>�>�F�@-�-�-�-�-r9r&c��eZdZdZdZdZdgZdgZdgZe	j
Zd�Zd�Z
d	eeeej��fd
eeje��fdeeje��fdeeeeeed
�����fdeeee��fdeej��fdeej��fdeej��fdeej��fdeeee��fdefde
fed��ed
��geddd���efgdefdejfdeeeje��fdeeej��fd eeej��fd!eeej��fd"eeeje��fd#eeeje��fd$ejfd%ejfd&ejfd'ejfd(ejfd)ej fd*ej!fd+eeeje��fd,eeejeej"e��fd-eeeje��fd.eej"��fd/efd0efgd1�Z#d2�Z$d3S)4r'z<
    For TiddlyWiki5 markup.

    .. versionadded:: 2.7
    �tiddlerz$https://tiddlywiki.com/#TiddlerFiles�tidz*.tidztext/vnd.tiddlywikic#�K�ddlm}|�d��t|�d��fV�|�d��t|�d��fV�|�d��t
|�d��fV�d}|jrB	||�d�������}n#t$rYnwxYw|�d��}|�!|�d��t|fV�dStg|�
|����Ed{V��|�d��t|�d��fV�dSr�)r]rPr^rr_rrarbrrrfr�s     r:r�z"TiddlyWiki5Lexer._handle_codeblockns�����	6�5�5�5�5�5��k�k�!�n�n�f�e�k�k�!�n�n�4�4�4�4��k�k�!�n�n�f�e�k�k�!�n�n�4�4�4�4��k�k�!�n�n�d�e�k�k�!�n�n�4�4�4�4���� �	�
�)�)�%�+�+�a�.�.�*>�*>�*@�*@�A�A���� �
�
�
���
�����{�{�1�~�~���=��+�+�a�.�.�&�$�.�.�.�.��F� ��U�%A�%A�$�%G�%G�H�H�H�H�H�H�H�H�H��k�k�!�n�n�f�e�k�k�!�n�n�4�4�4�4�4�4s�)0C�
C'�&C'c#�PK�ddlm}|�d��t|�d��fV�|�d��t|�d��fV�d}|jr	|d��}n#t$rYnwxYw|�d��}|�!|�d��t|fV�dStg|�|����Ed{V��|�d��t|�d��fV�dS)	zP
        match args: 1:style tag 2:newline, 3:code, 4:closing style tag
        rrOrQrRN�cssrSrT)	r]rPr^rr_rarrrfr�s     r:�_handle_cssblockz!TiddlyWiki5Lexer._handle_cssblock�sF����	6�5�5�5�5�5��k�k�!�n�n�f�e�k�k�!�n�n�4�4�4�4��k�k�!�n�n�f�e�k�k�!�n�n�4�4�4�4���� �	�
�)�)�%�0�0���� �
�
�
���
�����{�{�1�~�~���=��+�+�a�.�.�&�$�.�.�.�.��F� ��U�%A�%A�$�%G�%G�H�H�H�H�H�H�H�H�H��k�k�!�n�n�f�e�k�k�!�n�n�4�4�4�4�4�4s�7B�
B�Bz^(title)(:\s)(.+\n)z^(!)([^!].+\n)z^(!{2,6})(.+\n)z^(\s*)([*#>]+)(\s*)(.+\n)rqrrz^(<<<.*\n)([\w\W]*?)(^<<<.*$)z^(\|.*?\|h)$z^(\|.*?\|[cf])$z^(\|.*?\|k)$z^(;.*)$z^(```\n)([\w\W]*?)(^```$)z ^(```)(\w+)(\n)([\w\W]*?)(^```$)z$^(<style>)(\n)([\w\W]*?)(^</style>$)�keywords)z\definez\end�caption�created�modified�tags�title�type�^z\b)�prefix�suffixrtz\d{17}z(\s)(//[^/]+//)((?=\W|\n))z(\s)(\^\^[^\^]+\^\^)z(\s)(,,[^,]+,,)z(\s)(__[^_]+__)z(\s)(''[^']+'')((?=\W|\n))z(\s)(~~[^~]+~~)((?=\W|\n))z	<<[^>]+>>z
\$\$[^$]+\$\$z
\$\([^)]+\)\$z^@@.*$z	</?[^>]+>z`[^`]+`z&\S*?;z(\[{2})([^]\|]+)(\]{2})z$(\[{2})([^]\|]+)(\|)([^]\|]+)(\]{2})z(\{{2})([^}]+)(\}{2})z(\b.?.?tps?://[^\s"]+)z[\w]+r?)r.r�rqc�V�t|dd��|_tj|fi|��dSrxryr{s  r:rzzTiddlyWiki5Lexer.__init__�r}r9N)%r/r0r1r2r3r�r4r@r5rArBrDr�r�r	rrrrEr�r
rrr�r�rr�rrr�Integerr�r��Regexr6r7rzr8r9r:r'r'asG��������
�D�
0�C��g�G��	�I�&�'�I��L�E�5�5�5�:5�5�5�<$�X�X�g�t�W�_�%M�%M�N�
�����$� ?� ?�@�
���'�*<�d�!C�!C�D�*�
�X�d�G�T�5�5��X�+F�+F�+F�
G�
G�
I�.�x�x���f�/M�/M�N�
�h�h�w�~�6�6�7�
���'�,�!7�!7�8�
�h�h�t�x�0�0�1�
���'�.�1�1�2�
)�8�8�F�D�&�+I�+I�J�
0�2C�D�
4�6F�G��G�J����G�H���9
�>�U�!�)-�e�=�=�=��
�
��T�N�
���'�
*�
�X�d�G�L�$�
/�
/�
1�%�h�h�t�W�\�&B�&B�C�
���$���!=�!=�>�
���$���!?�!?�@�
*�
�X�d�G�N�D�
1�
1�
3�+�
�X�d�G�O�T�
2�
2�
4��4�8�$�
�t�x�(�
�t�x�(�
���!�
�4�8�$�
���)�
���%�
'���$���$�)G�)G�H�
4��H�T�4�8�T�4�>�4�@�@�
B�&�x�x��d�h��'E�'E�F�
&�����(@�(@�A��t��
�4�L�Y-
�KS�S�F�j-�-�-�-�-r9r').r2rA�pygments.lexers.htmlr�pygments.lexers.javascriptr�pygments.lexers.cssr�pygments.lexerrrrr	r
rrr
r�pygments.tokenrrrrrrrrrrr�
pygments.utilrr�__all__rrrrr r!r"r#r$r%r&r'r8r9r:�<module>r�s�����
�	�	�	�)�)�)�)�)�)�6�6�6�6�6�6�(�(�(�(�(�(�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�5�5�5�5�5�5�5�5�F�F�F�������*����B*�*�*�*�*�J�*�*�*�Ze�e�e�e�e�z�e�e�e�P7�7�7�7�7�z�7�7�7�t5�5�5�5�5��5�5�5�p&�&�&�&�&�*�&�&�&�R�����0����*
C�
C�
C�
C�
C��
C�
C�
C� 
J�
J�
J�
J�
J��
J�
J�
J� 
F�
F�
F�
F�
F��
F�
F�
F� k-�k-�k-�k-�k-�J�k-�k-�k-�\\-�\-�\-�\-�\-�z�\-�\-�\-�\-�\-r9