
    жvg                        d Z ddlZddlmZmZmZmZmZmZm	Z	m
Z
mZ ddlmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ g dZ G d d	e          Z e Z! G d
 de          Z" G d de          Z# G d de          Z$ G d de          Z%e%Z& G d de          Z' G d de          Z( G d de          Z) G d de           Z*dS )z
    pygments.lexers.python
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Python and related languages.

    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)	DelegatingLexer
RegexLexerincludebygroupsusingdefaultwordscombinedthis)get_bool_optshebang_matches)TextCommentOperatorKeywordNameStringNumberPunctuationGenericOtherError
Whitespace)	unistring)PythonLexerPythonConsoleLexerPythonTracebackLexerPython2LexerPython2TracebackLexerCythonLexerDgLexer
NumPyLexerc            "          e Zd ZdZdZdZg dZg dZg dZdZ	de
j         d	e
j         d
Zd Zd Zi ddefd eeej        ej                  fd eeej        ej                  fdej        fdej        fdefdef ed           ed          d eee          dfd eee          dfd eej        e          dfd eej        e          df ed          gdd  eej        ej                   ed!d"          fd# eej        ej                   ed!d$          fd% eej        ej                   ed!d&          fd' eej        ej                   ed!d(          fd) eej        ej                   ed*d"          fd+ eej        ej                   ed*d$          fd, eej        ej                   ed*d&          fd- eej        ej                   ed*d(          fd. eej        ej                  d/fd0 eej        ej                  d1fd2 eej        ej                  d3fd4 eej        ej                  d5fd6 eej        ej                   ed7d/          fd8 eej        ej                   ed7d1          fd9 eej        ej                   ed7d3          fd: eej        ej                   ed7d5          fd; eej        ej                   ed<d/          fd= eej        ej                   ed<d1          fd> eej        ej                   ed<d3          fd? eej        ej                   ed<d5          fd@ef edA          dBefdCefdDej         f edE           edF           edG           edH           edI          gdJdKedLfdMej!        dNfdOej!        dNfdPef ed          gdLdKedLfdQedNfdPef ed          gdE e"dRdST          ef e"dUdST          ej#        fgd e"dVdST          ef e"dUdST          ej#        fgddWdX$                    dY e%j&        D                       z   dZz    eee          d[fgd[d\ ee e'e(          e          f e)dN          gdF e"d]d^dS_          e*j+        fd`e*j+        j,        f e"dad^dS_          e*j-        fgdG e"dbdST          e*j.        j/        fgdH e"dcdST          e*j0        j/        fgdAdde1j2        fdee1j2        fdfe1j3        fdge1j4        fdhe1j5        fdie1j6        fgdIdjez   e*j7        fdjefee*fgd edG          ee*j.        dNf e)dN          gdee*j8        dNfgddk eeee          fdle*j        fee*j        fdm eeee          f e)dN          gddn eeej                  dNfdle*j        fdoej#        dNfee*j        f e)dN          gi d!dpej9        fdqej9        fgd* ed!           ed7          gd<drej9        fgd7dsej9        f ed<          gdt eej                  du eej                  dv eej                  dw eej                  d&dxej        dNfdyej9        f edu          gd(dzej        dNfd{ej9        f edt          gd3dxej        dNfdyej9        f edw          gd5dzej        dNfd{ej9        f edv          gd"d|ej        dNf edu          dej        fgd$d}ej        dNf edt          dej        fgd/d|ej        dNf edw          dej        fgd1d}ej        dNf edv          dej        fgZ:d~ Z;dS )r   z
    For Python source code (version 3.x).

    .. versionchanged:: 2.5
       This is now the default ``PythonLexer``.  It is still available as the
       alias ``Python3Lexer``.
    Pythonhttps://www.python.org)pythonpysagepython3py3bazelstarlark)z*.pyz*.pywz*.pyiz*.jyz*.sagez*.sc
SConstruct
SConscriptz*.bzlBUCKBUILDzBUILD.bazel	WORKSPACEz*.tac)ztext/x-pythonzapplication/x-pythonztext/x-python3zapplication/x-python30.10[z][z]*c                 L    dt           j        fdt           j        fd| fd| fd| fgS )NzH%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsaux%]zg\{((\w+)((\.\w+)|(\[[^\]]+\]))*)?(\![sra])?(\:(.?[<>=\^])?[-+ ]?#?0?(\d+)?,?(\.\d+)?[E-GXb-gnosx%]?)?\}z[^\\\'"%{\n]+[\'"\\]z%|(\{{1,2})r   Interpolttypes    _/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/pip/_vendor/pygments/lexers/python.pyinnerstring_ruleszPythonLexer.innerstring_rulesA   sF    '(.9 O	% u%U#
 	
    c                 H    dt           j        fdt           j        dfd| fd| fgS )Nz\}z\{expr-inside-fstringz[^\\\'"{}\n]+r5   r6   r8   s    r:   fstring_ruleszPythonLexer.fstring_rulesU   s5     FO$FO%:;u%
 	
r<   root\n&^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")&^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')\A#!.+$#.*$\\\n\\keywordszsoft-keywords(def)((?:\s|\\\s)+)funcname(class)((?:\s|\\\s)+)	classname(from)((?:\s|\\\s)+)
fromimport(import)((?:\s|\\\s)+)importexprz(?i)(rf|fr)(""")rfstringescapetdqfz(?i)(rf|fr)(''')tsqfz(?i)(rf|fr)(")dqfz(?i)(rf|fr)(')sqfz([fF])(""")fstringescapez([fF])(''')z	([fF])(")z	([fF])(')z(?i)(rb|br|r)(""")tdqsz(?i)(rb|br|r)(''')tsqsz(?i)(rb|br|r)(")dqsz(?i)(rb|br|r)(')sqsz([uU]?)(""")stringescapez([uU]?)(''')z
([uU]?)(")z
([uU]?)(')z([bB])(""")bytesescapez([bB])(''')z	([bB])(")z	([bB])(')[^\S\n]+numbersz!=|==|<<|>>|:=|[-~+/*%=<>&^|.][]{}:(),;[](in|is|and|or|not)\bzexpr-keywordsbuiltins
magicfuncs	magicvarsnamer>   z[{([]zexpr-inside-fstring-innerz(=\s*)?(\![sraf])?\}#popz(=\s*)?(\![sraf])?:\s+z[])}])z	async forawaitelseforiflambdayield
yield from\bsuffix)TrueFalseNone)assertasyncrh   breakcontinuedelelifri   exceptfinallyrj   globalrk   rl   passraisenonlocalreturntrywhilerm   rn   aswithz6(^[ \t]*)(match|case)\b(?![ \t]*(?:[:,;=^&|@~)\]}]|(?:|c              #   N   K   | ] }|d                                           |V  !dS )r   N)islower).0ks     r:   	<genexpr>zPythonLexer.<genexpr>   s3      CCQAaDLLNNCqCCCCCCr<   z)\b))zsoft-keywords-innerz(\s+)([^\n_]*)(_\b))C
__import__absaiterallanybinbool	bytearray
breakpointbytescallablechrclassmethodcompilecomplexdelattrdictdirdivmod	enumerateevalfilterfloatformat	frozensetgetattrglobalshasattrhashhexidinputint
isinstance
issubclassiterlenlistlocalsmapmax
memoryviewminnextobjectoctopenordpowprintpropertyrangereprreversedroundsetsetattrslicesortedstaticmethodstrsumsupertupletypevarszip(?<!\.)prefixrq   z+(?<!\.)(self|Ellipsis|NotImplemented|cls)\b)EArithmeticErrorAssertionErrorAttributeErrorBaseExceptionBufferErrorBytesWarningDeprecationWarningEOFErrorEnvironmentError	ExceptionFloatingPointErrorFutureWarningGeneratorExitIOErrorImportErrorImportWarningIndentationError
IndexErrorKeyErrorKeyboardInterruptLookupErrorMemoryError	NameErrorNotImplementedErrorOSErrorOverflowErrorPendingDeprecationWarningReferenceErrorResourceWarningRuntimeErrorRuntimeWarningStopIterationSyntaxErrorSyntaxWarningSystemError
SystemExitTabError	TypeErrorUnboundLocalErrorUnicodeDecodeErrorUnicodeEncodeErrorUnicodeErrorUnicodeTranslateErrorUnicodeWarningUserWarning
ValueErrorVMSErrorWarningWindowsErrorZeroDivisionErrorBlockingIOErrorChildProcessErrorConnectionErrorBrokenPipeErrorConnectionAbortedErrorConnectionRefusedErrorConnectionResetErrorFileExistsErrorFileNotFoundErrorInterruptedErrorIsADirectoryErrorNotADirectoryErrorPermissionErrorProcessLookupErrorTimeoutErrorStopAsyncIterationModuleNotFoundErrorRecursionErrorEncodingWarning)^__abs____add__
__aenter__	__aexit__	__aiter____and__	__anext__	__await____bool__	__bytes____call____complex____contains____del____delattr__
__delete____delitem____dir__
__divmod__	__enter____eq____exit__	__float____floordiv__
__format____ge____get____getattr____getattribute____getitem____gt____hash____iadd____iand____ifloordiv____ilshift____imatmul____imod____imul__	__index____init____instancecheck____int__
__invert____ior____ipow____irshift____isub____iter____itruediv____ixor____le____len____length_hint__
__lshift____lt__
__matmul____missing____mod____mul____ne____neg____new____next____or____pos____pow____prepare____radd____rand____rdivmod____repr____reversed____rfloordiv____rlshift____rmatmul____rmod____rmul____ror__	__round____rpow____rrshift__
__rshift____rsub____rtruediv____rxor____set____setattr____setitem____str____sub____subclasscheck____truediv____xor__)__annotations__	__bases__	__class____closure____code____defaults____dict____doc____file____func____globals____kwdefaults__
__module____mro____name____objclass____qualname____self__	__slots____weakref__zT(\d(?:_?\d)*\.(?:\d(?:_?\d)*)?|(?:\d(?:_?\d)*)?\.\d(?:_?\d)*)([eE][+-]?\d(?:_?\d)*)?z!\d(?:_?\d)*[eE][+-]?\d(?:_?\d)*j?z0[oO](?:_?[0-7])+z0[bB](?:_?[01])+z0[xX](?:_?[a-fA-F0-9])+z\d(?:_?\d)*@(\s+)(as)(\s+)z\.(\s*)(,)(\s*)z(\s+)(import)\bNone\bz\{\{z\}\}z0\\([\\abfnrtv"\']|\n|x[a-fA-F0-9]{2}|[0-7]{1,3})z,\\(N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})zfstrings-singlezfstrings-doublestrings-singlestrings-double"\\\\|\\"|\\\n'\\\\|\\'|\\\n"""'''c                 :    t          | d          pd| d d         v S )Npythonw?(3(\.\d)?)?import   r   texts    r:   analyse_textzPythonLexer.analyse_text  s*    t%;<< %ete$	%r<   N)<r  r  r  r|  re   urlaliases	filenames	mimetypesversion_addeduni	xid_startxid_continueuni_namer;   r?   r   r   r   AffixDocr   HashbangSingler   r   r   	NamespaceDoubler
   r   r   Wordr7   r	   Constantjoinkeywordkwlistr   r   r   r   BuiltinPseudor   FunctionMagicVariabler   FloatOctBinHexInteger	DecoratorClassEscapetokensr   r<   r:   r   r      sq         D
"CMMMG  I,< < <IM83=88C$4888H
 
 
(
 
 
sJ6Xj&,
;;=6Xj&,
;;=)*gn%dODMGJGO$$#XXgt%<%<jI%xx'>'>L$hhw/@$&G&G&1BD(I(IGFOO%
s* 	XflFM22X&//1  XflFM22X&//1 XflFM22X&..0 XflFM22X&..0 HHV\6=AAXov..0HHV\6=AAXov..0((6<??Xou--/((6<??Xou--/ "XflFM22F<!XflFM22F<XflFM22E;XflFM22E; XXflFMBBXnf--/XXflFMBBXnf--/88FL&-@@Xne,,.88FL&-@@Xne,,. HHV\6=AAXmV,,.HHV\6=AAXmV,,.((6<??XmU++-((6<??XmU++- $GI.9[)$hm4GO$$GJGL!!GK  GFOOy=
+sf 	{$?@OV-
?F, Z GFOO 
gsB 	${$?@{F+Z GFOO	&
CsN 	U '/46 6 6  U,U;;;W=MN
Os^ 	U , 5:	; ; ;
  U,U;;;W=MN
_sp 	$
 YYCC'.CCCCCD
 GOO XdG$$&;=	
qsD 	#XXj%%++w%O%OPGFOO 
EsN 	U 
0 9C5
R 
R 
R \ <T\=PQU #0 "%11 1 12 ^3(
Os` 	U * $)+* * *, ] -"
asR 	U 8
 AFG G G ] "
Ssd 	()/716<@!6:. &*-'4V^,
esv 	H_dn-8t
ws@ 	GL!!t}f-GFOO
AsJ 	tz6*
KsP 	w = =>DN#t~&xxh==>GFOO
Qs^ 	$0A!B!BFKDN# (&1t~&GFOO
_s sp 	fm$fm$
qsx 	G$%%GN##
ys@ 	@&-P
AsF 	<fmLGM""
GsN 	==77OsP 	==77QsR 	++FM::SsT 	++FM::UsV 	6=&)v}-G%&&
Ws` 	6=&)v}-G%&&
asj 	6=&)v}-G$%%
kst 	6=&)v}-G$%%
us~ 	V]F+G%&&FM"
sH	 	V]F+G%&&FM"
I	sR	 	V]F+G$%%FM"
S	s\	 	V]F+G$%%FM"
]	s sFj	% % % % %r<   r   c            #          e Zd ZdZdZdZddgZg ZddgZdZ	d	 Z
i d
defd eeej        ej                  fd eeej        ej                  fdefdej        fdej        fdefdefdefdej        fdef ed          d eee          dfd eee          dfd eej        e          dfd eej        e          df ed           ed            ed!           ed"          d# eej        ej                  d$fd% eej        ej                  d&fd' eej        ej                  d(fd) eej        ej                  d*fd+ eej        ej                   ed,d$          fd- eej        ej                   ed,d&          fd. eej        ej                   ed,d(          fd/ eej        ej                   ed,d*          f ed0           ed1          gd ed2d34          efgd ed5d6d37          ej        fd8ej        j        f ed9d6d37          ej         fgd  ed:d34          ej!        j"        fgd! ed;d34          ej#        j"        fgd1d<e$j%        fd=e$j%        fd>e$j&        fd?e$j'        fd@e$j(        fdAe$j)        j*        fdBe$j)        fgd"dCej+        fgd0dDej,        fdEefgd ed           dEej!        dFf e-dF          gddEej.        dFfgddGefdHej        fdIefdJej        f e-dF          gddGefdKej        dFfdLej        j        dFfdMej        f e-dF          gd,dNej/        fgdO e
ej                  dP e
ej                  d(dQej        dFfdRej/        f edP          gd*dSej        dFfdTej/        f edO          gdUej        dFf edP          dej        fgdVej        dFf edO          dej        fgdWZ0dX Z1dYS )Zr   a  
    For Python 2.x source code.

    .. versionchanged:: 2.5
       This class has been renamed from ``PythonLexer``.  ``PythonLexer`` now
       refers to the Python 3 variant.  File name patterns like ``*.py`` have
       been moved to Python 3 as well.
    z
Python 2.xr%   python2py2ztext/x-python2zapplication/x-python2 c                 2    dt           j        fd| fd| fd| fgS )NG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%][^\\\'"%\n]+r5   %r6   r8   s    r:   r;   zPython2Lexer.innerstring_rules  s4    &'-8 e$5M

 
	
r<   r@   rA   rB   rC   r^   rD   rE   r`   rF   rG   ra   z!=|==|<<|>>|[-~+/*%=<>&^|.]rH   rI   rJ   rK   rL   rM   rN   rO   rP   rb   rc   rd   backtickz!([rR]|[uUbB][rR]|[rR][uUbB])(""")rX   z!([rR]|[uUbB][rR]|[rR][uUbB])(''')rY   z([rR]|[uUbB][rR]|[rR][uUbB])(")rZ   z([rR]|[uUbB][rR]|[rR][uUbB])(')r[   z([uUbB]?)(""")r\   z([uUbB]?)(''')z([uUbB]?)(")z([uUbB]?)(')re   r_   )ru   rw   rx   ry   rz   ri   r{   execr|   rj   r}   rk   rl   r~   r   r   r   r   r   rm   rn   r   r   ro   rp   )Nr   r   r   r   apply
basestringr   r   bufferr   r   r   r   r   cmpcoercer   r   r   r   r   r   r   r   execfileexitfiler   r   r   r   r   r   r   r   r   r   r   internr   r   r   r   r   r   longr   r   r   r   r   r   r   r   r   r   r   	raw_inputreducereloadr   r   r   r   r   r   r   r   r   r   r   r   r   unichrunicoder   xranger   r   r   z;(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|cls)\b)1r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   OverflowWarningr   r   r   r   StandardErrorr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  )_r  r  r  r!  __cmp__
__coerce__r"  r#  r$  r%  r&  r'  __delslice____div__r)  r*  r+  r,  r-  r.  r0  r1  r2  r3  r4  __getslice__r5  r6  __hex__r7  r8  __idiv__r9  r:  r<  r=  r>  r?  r@  rA  rB  __iop__rC  rD  rE  rF  rG  rH  rI  rJ  rK  __long__rM  rN  rP  rQ  rR  rS  rT  rU  __nonzero____oct____op__rW  rX  rY  r[  r\  __rcmp____rdiv__r]  r^  r_  r`  ra  rc  rd  __rop__re  rg  rh  ri  rj  rk  rl  rm  rn  ro  __setslice__rp  rq  rr  rs  __unicode__rt  )rv  rw  rx  ry  rz  r{  r|  r}  r~  r  __metaclass__r  r  r  r  r  r  z'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z	0[0-7]+j?z
0[bB][01]+0[xX][a-fA-F0-9]+\d+Lz\d+j?`.*?`z@[\w.]+[a-zA-Z_]\w*rf   z(?:[ \t]|\\\n)+as\b,[a-zA-Z_][\w.]*zimport\br  [a-zA-Z_.][\w.]*Y\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})r  r  r  r  r  r  r  r  )rX   rY   c                 "    t          | d          S )Nzpythonw?2(\.\d)?r  r  s    r:   r  zPython2Lexer.analyse_text{  s    t%8999r<   N)2r  r  r  r|  re   r  r  r  r  r  r;   r   r   r   r  r  r   r   r  r  r   r   r  r   r   r  r  r
   r	   r   r  r  r   r  r  r  r   r  r  r  r  r  LongBacktickr  r   r  r  r  r  r  r<   r:   r   r     s         D
"C% GI!#:;IM
 
 
{J6Xj&,
;;=6Xj&,
;;=$)*gn%[)dODM$hm4+X6GJ#XXgt%<%<jI%xx'>'>L$hhw/@$&G&G&1BD(I(IGJGL!!GK  GJ0XflFM22F<0XflFM22F<.XflFM22E;.XflFM22E;xxfmDDXnf--/xxfmDDXnf--/XXflFMBBXne,,.XXflFMBBXne,,.GFOOGIU+
{Z 	U , 5:	; ; ;
 
[{j 	U > "%1 1 1 \\(*U 5 >HPUW W W ^#!
k{n 	U *$ 38%9 9 9& ] '"
o{Z 	U ,
    ] "
[{l 	7F$fl36:&FJ'!6:.fn)*v~&
m{~ 	fo&
{D 	(d#
E{L 	GL!!dmV4GFOO
M{V 	dj&1
W{\ 	&g'(80GFOO
]{j 	&'+V4 +V4 $.1 GFOO
k{B 	<=C]L
C{J 	++FM::K{L 	++FM::M{N 	6=&)v}-G$%%
O{X 	6=&)v}-G$%%
Y{d V]F+G$%%FM"
 V]F+G$%%FM"
m{ { {Fz: : : : :r<   r   c                   X   e Zd ZdZddgZdgZ	 d eej        e	j
                  dfd eej        e          fde	j        d	fd
e	j        d	fdej        fgd eej        e	j
                  fd eej        e          f ed          gdedfd eej        e          fde	j        fgdZdS )_PythonConsoleLexerBasePython console sessionpyconpython-consoletext/x-python-doctestz(>>> )(.*\n)continuationsz	(>>>)(\n)z,(\^C)?Traceback \(most recent call last\):\n	tracebackz  File "[^"]+", line \d+z.*\nz(\.\.\. )(.*\n)z(\.\.\.)(\n)rf   z(?=>>>( |$))z(KeyboardInterrupt)(\n))r@   r   r  N)r  r  r  re   r  r  r   r   Promptr   Coder   	TracebackOutputr   r   r   r  r  r  r<   r:   r  r  ~  s       #D()G()I hhw~uzBBOT 88GNJ??@<eo{[(%/;Ggn%	
  '.%*!E!EFhhw~zBBCGFOO	
 dF+'$*j)I)IJeo&
# FFFr<   r  c                   <     e Zd ZdZdZddgZdgZdZdZ fdZ	 xZ
S )	r   a  
    For Python console output or doctests, such as:

    .. sourcecode:: pycon

        >>> a = 'foo'
        >>> print(a)
        foo
        >>> 1 / 0
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        ZeroDivisionError: integer division or modulo by zero

    Additional options:

    `python3`
        Use Python 3 lexer for code.  Default is ``True``.

        .. versionadded:: 1.0
        .. versionchanged:: 2.5
           Now defaults to ``True``.
    r  r  r  r  https://python.orgr  c                     t          |dd          }|rt          t          }nt          t          } G fddt
                    } t                      j        ||t          j	        fi | d S )Nr)   Tc                   "     e Zd Z fdZ xZS )6PythonConsoleLexer.__init__.<locals>._ReplaceInnerCodec                 ^     t                      j        t          t          j        fi | d S N)r   r?  r  r   r  )selfoptionsrw  pylexers     r:   r?  z?PythonConsoleLexer.__init__.<locals>._ReplaceInnerCode.__init__  s0      *A5:YYQXYYYYYr<   )r  r  r  r?  __classcell__)rw  r  s   @r:   _ReplaceInnerCoder
    sH        Z Z Z Z Z Z Z Z Z Zr<   r  )
r   r   r   r   r   r   r   r?  r   r  )r  r  r)   tblexerr  r  rw  s        @r:   r?  zPythonConsoleLexer.__init__  s    w	488 	,!G*GG"G+G	Z 	Z 	Z 	Z 	Z 	Z 	Z 	Z 	Z 	Z 	"3U_PPPPPPPr<   )r  r  r  r|  re   r  r  r  r  r?  r  )rw  s   @r:   r   r     so         . $D()G()I
CMQ Q Q Q Q Q Q Q Qr<   r   c                      e Zd ZdZdZddgZddgZddgZd	Zd
Z	de
fdej        dfdej        fdej        fdej        dfdefgd eeej        eeeee
          fd eeej        eee
          fd ee
 ee          e
          dfd ee
ee
          fd eej        eee
          dfd eej        e
          df ed          gd ee
ej        e
          df ed          gdZdS )r   z
    For Python 3.x tracebacks, with support for chained exceptions.

    .. versionchanged:: 2.5
       This is now the default ``PythonTracebackLexer``.  It is still available
       as the alias ``Python3TracebackLexer``.
    zPython Tracebackpytbpy3tbz*.pytbz*.py3tbztext/x-python-tracebackztext/x-python3-tracebackr  z1.0rA   z-^(\^C)?Traceback \(most recent call last\):\nintbzH^During handling of the above exception, another exception occurred:\n\nzI^The above exception was the direct cause of the following exception:\n\n^(?=  File "[^"]+", line \d+)^.*\n0^(  File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)%^(  File )("[^"]+")(, line )(\d+)(\n)^(    )(.+)(\n)markers^([ \t]*)(\.\.\.)(\n)^([^:]+)(: )(.+)(\n)rf   z^([a-zA-Z_][\w.]*)(:?\n)z^( {4,})([~^]+)(\n))r@   r  r  N)r  r  r  r|  re   r  r  r  r  r  r   r   r  r   r   r   r   r  r   r   r   r   r   r   r   Markerr  r  r<   r:   r   r     s         DwG9%I*,FGI
CM J=w?PRXY()0):<)*1*;=-w/@&Iu	
 AXdDL$dJOOQ5XdDL$
CCEXj%%"4"4jAA9N%Xj':668$XgmT4<<fF(XgmZ00&:GFOO
& $Xj+"4jAA GFOO
5# #FFFr<   r   c                      e Zd ZdZdZdgZdgZdgZdZdZ	d e
eej                  d	fd
ej        d	fdefgd e
eej        eeeee          fd e
eej        eee          fd e
e ee          e          dfd e
eee          fd e
ej        eee          dfd e
ej        e          dfgd e
eej                  df ed          gdZdS )r   z
    For Python tracebacks.

    .. versionchanged:: 2.5
       This class has been renamed from ``PythonTracebackLexer``.
       ``PythonTracebackLexer`` now refers to the Python 3 variant.
    zPython 2.x Tracebackpy2tbz*.py2tbztext/x-python2-tracebackr  z0.7z^(\^C)?(Traceback.*\n)r  r  r  r  r  r  markerr  r  rf   z^([a-zA-Z_]\w*)(:?\n)z( {4,})(\^))r@   r  r"  N)r  r  r  r|  re   r  r  r  r  r  r   r   r   r  r   r   r  r   r   r   r   r   r   r   r  r   r  r  r<   r:   r   r     sv         "DiGI+,I
CM 'XdG-..8 .w/@&Iu
 AXdDL$dJOOQ5XdDL$
CCEXdEE,//<<hH%XdGZ002$XgmT4<<fF%XgmZ00&:
  XXdK,>??HGFOO
1 FFFr<   r   c                      e Zd ZdZdZdZg dZg dZddgZdZ	i d	g d
e
fd ee
ej                  fd ee
ej                  fdefdefdefde
fdefdej        fd eeej        e          fdefd eeej        eeeee          f ed          d eee          dfd eee          dfd eee          fd eee          dfd eee          dfd  eee          d!f ed"           ed#          d$ed%fd&ed'fd(ed)fd*ed+fd,e ed-d%          fd.e ed-d'          fd/e ed-d)          fd0e ed-d+          f ed1           ed2          d ed3d45          efd6ej        fgd" ed7d8d49          ej        fd:ej        j        f ed;d8d49          ej        fgd2d<ej        fd=ej         fd>ej!        fd?ej        j"        fd@ej        fgd#dAej#        fgd1dBej$        fdCefgddCej%        dDfgddEej&        fdFefdG eej%        e          dDfdH eej%        ee          fdIedDfdJefdKedDfdLedDfdCej        fdMefg
ddCej'        dDfgd!dN eeee          fdOej(        fdP eeee          f e)dD          gddQ eee          dDfdRej(        f e)dD          gd-dSej*        fgdTdUej+        fdVefdWefdXefgdYd
efgd)dZedDfd[ej*        f edT          gd+d\edDfd]ej*        f edT          gd%d^edDf edT           edY          gd'd_edDf edT           edY          giZ,d`S )ar    z+
    For Pyrex and Cython source code.
    Cythonzhttps://cython.org)cythonpyxpyrex)z*.pyxz*.pxdz*.pxiztext/x-cythonzapplication/x-cythonz1.1r@   rA   z^(\s*)("""(?:.|\n)*?""")z^(\s*)('''(?:.|\n)*?''')r^   rE   r`   rF   rG   ra   z(<)([a-zA-Z0-9.?]+)(>)z!=|==|<<|>>|[-~+/*%=<>&^|.?]z(from)(\d+)(<=)(\s+)(<)(\d+)(:)rH   z(def|property)(\s+)rJ   z(cp?def)(\s+)cdefz	(cdef)(:)z(class|struct)(\s+)rL   z(from)(\s+)rN   z(c?import)(\s+)rP   rb   r  z(?:[rR]|[uU][rR]|[rR][uU])"""rX   z(?:[rR]|[uU][rR]|[rR][uU])'''rY   z(?:[rR]|[uU][rR]|[rR][uU])"rZ   z(?:[rR]|[uU][rR]|[rR][uU])'r[   z[uU]?"""r\   z[uU]?'''z[uU]?"z[uU]?'re   r_   )ru   rv   rh   rw   byrx   ctypedefry   rz   ri   r{   zexcept?r  r|   rj   fusedgilr}   rk   r   rl   nogilr~   r   r   r   r   r   rm   r   r   ro   rp   z(DEF|IF|ELIF|ELSE)\b)Qr   r   r   r   r  r  r   bintr   r  r   r   r   r   r   r  r  r   r   r   r   r   r   r   r   r  r  r  r   r   r   r   r   r   r   r   r   r   r   r  r   r   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   
Py_ssize_tr   r  r  r  r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  unsignedr   r  r   r   r   z<(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|NULL)\b)0r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   NotImplementedr   r   r   r  r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  z&(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?z0\d+r  r  z\d+r  z@\w+r  rf   z%(public|readonly|extern|api|inline)\bz(struct|enum|union|class)\bz([a-zA-Z_]\w*)(\s*)(?=[(:#=]|$)z([a-zA-Z_]\w*)(\s*)(,)zfrom\br  :z	(?=["\']).r  r  r  z(\s+)(c?import)\br  r  stringszP%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]r  r5   r  nlr  r  r  r  r  r  N)-r  r  r  r|  re   r  r  r  r  r  r   r   r   r  r   r   r   r   r  r   Typer   r  r   r   r
   r	   Preprocr  r  r   r  r  r  r  r  r  r  Reservedr  r  r   r  r7   r  r  r<   r:   r    r    ;  s(         D
C(((G+++I "89IMd $
J$
(((:vz*J*JK$
 )((:vz*J*JK$
 $	$

 g$
 [)$
 j!$
 DM$
 %hm4$
 'Xk7<==?$
 -h7$
 0Xgv~xxK) )*$
  GJ!$
" $XXgt%<%<jI#$
$ xx66?%$
( 88G[99:)$
* $XXgt%<%<kJ+$
, XXgt44lC-$
.  '4!8!8(C/$
0 GJ1$
2 GJ3$
4 -ff=5$
6 -ff=7$
8 +FE:9$
: +FE:;$
< .&!A!AB=$
> .&!A!AB?$
@ vxx>>?A$
B vxx>>?C$
D GFOOE$
F GIG$
dL 	U J SX	Y Y Y
  %go6
Md^ 	U ) 2<EK K K \\(*U % .8G G G ^#!
_db 	6Efj!!6:.fn)*V^$
cdp 	fo&
qdv 	dn%d#
wd~ 	dmV4
dD 	5w7GH+W5/XdmT**F4&XdmT;779(g;'4(gl+4L
Ed` 	dj&1
adf 	w = =>0xxh==>GFOO	
gdr 	!88D'#:#:FC $.1GFOO	
sd~ 	<=C]L
dF 	&'-8f% 6N	
GdZ 	FO
[d` 	66"v}-GI
adj 	66"v}-GI
kdt 	VV$GIGDMM
ud~ 	VV$GIGDMM
d dFFFr<   r    c                   h   e Zd ZdZdZdgZdgZdgZdZdZ	de
fdej        fd	ej        fd
ej        fdej        fdej        fdej        fdej        fde eddd          fde eddd          fde eddd          fde eddd          fdefdej        fdef eddd          ej        f ed dd          ej        fd!ej        j        fd"ej        fd#ej        fd$ej        fd%efd&ej        fd'efd(efd)e fgd*ej!        fgd+ej"        fd,efd-efd.efd/efgd0ed1fgd2ed1fgd3ed1fgd4ed1fgd5Z#d6S )7r!   zr
    Lexer for dg,
    a functional and object-oriented programming language
    running on the CPython 3 VM.
    dgz*.dgz	text/x-dgzhttp://pyos.github.io/dgz1.6rg   z#.*?$z(?i)0b[01]+z(?i)0o[0-7]+z(?i)0x[0-9a-f]+z((?i)[+-]?[0-9]+\.[0-9]+(e[+-]?[0-9]+)?j?z(?i)[+-]?[0-9]+e[+-]?\d+j?z(?i)[+-]?[0-9]+j?z(?i)(br|r?b?)'''r\   rY   stringz(?i)(br|r?b?)"""rX   z(?i)(br|r?b?)'r[   z(?i)(br|r?b?)"rZ   z`\w+'*`z\b(and|in|is|or|where)\bz[!$%&*+\-./:<-@\\^|~;,]+)r   r   r   r   r   r   zdict'r   r   r   r   zlist'r   r   r   r   r   zset'r   r   r   r   r   ztuple'r   r   z
(?![\'\w])r   )=r   r   r   r   r   bindr   r  r   r   r   r   r   drop	dropwhiler   r   exhaustr   flipzfoldl1?r   fstr   r   r   r   headr   r   initr   r   r   r   iteratelastr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   zscanl1?sndr   r   tailtake	takewhiler   r   z>(?<!\.)(self|Ellipsis|NotImplemented|None|True|False)(?!['\w])z3(?<!\.)[A-Z]\w*(Error|Exception|Warning)'*(?!['\w])zT(?<!\.)(Exception|GeneratorExit|KeyboardInterrupt|StopIteration|SystemExit)(?!['\w])z_(?<![\w.])(except|finally|for|if|import|not|otherwise|raise|subclass|while|with|yield)(?!['\w])z[A-Z_]+'*(?!['\w])z[A-Z]\w+'*(?!['\w])z\w+'*z[()]r3  r  r  r  r5   r  rA   r  rf   r  r  r  )r@   r\   r;  rZ   r[   rX   rY   N)$r  r  r  r|  re   r  r  r  r  r  r   r   r  r   r  r  r  r  r  r   r
   r   r  r	   r   r  r  r   r   r8  r6  r   r   r  r7   r  r  r<   r:   r!   r!     sq        
 DfGII
$CM TNw~&VZ(fj),8&,G*FL9!6>2 &((>68*T*TU &((>68*T*TU(Q(QR(Q(QR"((-8((3U 5
 %]< < < \ U M %]	< 	< 	< \
 O\ " D^%&*n645<5EG #D)#W\2tk"5Mm7
r<=C]L

&'-8f% 6NFO	
 66"
 66"
 VV$
 VV$
aS SFFFr<   r!   c                   @    e Zd ZdZdZdZdgZdZg Zg Z	h dZ
d Zd Zd	S )
r"   z?
    A Python lexer recognizing Numerical Python builtins.
    NumPyzhttps://numpy.org/numpyr2   >  c_i0r_s_r   addr   r   coscovdotexpeyefftfixinfinvix_logmatr   r   modnanptpputsinstdr   svdtantrivarwhoalenamaxaminbetabmatceilclipconjcopycoshdiagdiffdispdumpfabsfillflatfmodifftimaginfoitemkronlessloadlog2meanmodfndimonespinvpolyprodranfrankrealrintrollseedsignsincsinhsizesortsqrtrH  tanhtesttiletriltriuvdotviewanglearrayr   crossdtypedumpsemptyequalexpm1finfofloorfrexphypotinnerisinfisnanldexploadslog10log1plstsqmgridmsortogridouterplacepowerravelrootsrot90r   shaper   solvesplittracetrapzwherezerosappendarangearccosarcsinarctanargmaxargminaroundastypechoosecumsumdeletedividedsplitdstackfliplrflipudgeterrgumbelhsplithstackinsertinterpinvertisrealkaisermatrixmediannanmaxnanminnansumpoly1dr  repeatresizeround_sampleselectseterrsourcesquaretofiletolistuniqueunwrapvandervsplitvstackalltruearccosharcsinharctan2arctanhargsortasarrayaveragecumprodediff1dextractfftfreqflattengenericgreaterhamminghanningindicesitemsetlexsortloadtxtmaximumminimumndindexnewaxisnonzeropkgloadpoissonpolyaddpolyderpolydivpolyfitpolyintpolymulpolysubpolyvalproductputmaskrandintrequirereshapesavetxtshufflesignbitsqueezeuniformunion1dweibullabsoluteallclosealterdotargwhereasfarrayasmatrixasscalarbartlettbincountbinomialblackmanbyteswapcan_castcompressconvolvecorrcoefdiagflatdiagonaldigitizefftshiftfromfilefromitergetfieldgradientidentityisfiniteisneginfisposinfisscalarissctypeiterablelinspacelogspacemeshgridmultiplynegativerecarrayrollaxissetfieldsetflagssetxor1dsometruesubtractswapaxestostringtypeDicttypenameunique1dvonmises	array_str	base_repr	broadcast	conjugate	correlate	deprecate	getbuffer	geterrobj	histogram	index_exp	iscomplex	isfortran	isrealobj	nanargmax	nanargmin	newbuffer	not_equal	ones_like	piecewise	remainder	row_stack	setdiff1d	seterrobj	tensordot	transpose	vectorize
accumulate
array_repr
arrayrange
asanyarray
atleast_1d
atleast_2d
atleast_3d
bitwise_or
cumproduct
empty_like
fromarrays
frombuffer
frompyfunc
fromstring
getbufsize
geterrcall
issubdtype
left_shift
less_equal
logical_or
nan_to_num
obj2sctype
reciprocal
restoredot
setbufsize
seterrcall
trim_zeros
zeros_likearray_equalarray_equivarray_splitbinary_reprbitwise_andbitwise_notbitwise_xorbyte_boundscommon_typeconcatenateexpand_dimsflatnonzeroget_includehistogram2dhistogramddintersect1dissubclass_issubsctypelogical_andlogical_notlogical_xormintypecodendenumeratepermutationright_shiftsctype2charsetmember1dshow_configtrue_dividearray2stringcolumn_stackfloor_dividefromfunctionint_asbufferiscomplexobjnewbyteordersearchsortedsort_complexgreater_equalrandom_samplereal_if_closeunravel_indexasfortranarrayget_array_wrapintersect1d_numaximum_sctypeapply_over_axesrandom_integersset_numeric_opsstandard_normalapply_along_axisget_printoptionsmay_share_memoryset_printoptionsasarray_chkfiniteascontiguousarrayget_numpy_includecompare_chararraysset_string_functionfastCopyAndTransposeget_numarray_includec              #      K   t                               | |          D ]1\  }}}|t          u r|| j        v r|t          j        |fV  *|||fV  2d S r  )r   get_tokens_unprocessedr   EXTRA_KEYWORDSr   r  )r  r  indextokenvalues        r:   r  z!NumPyLexer.get_tokens_unprocessed  sz      224>>	* 	*E5%}}$*=!=!=W^U22222UE)))))	* 	*r<   c                 N    | d d         }t          | d          sd|v od|v pd|v S )Nr  r  r  zimport numpyzfrom numpy importr  )r  ltexts     r:   r  zNumPyLexer.analyse_text  sI    UdU&<== #U"J5(H,?5,H	Jr<   N)r  r  r  r|  re   r  r  r  r  r  r  r  r  r  r<   r:   r"   r"   Q  sz          D
CiGM IIA A ANF* * *J J J J Jr<   r"   )+r|  r  pip._vendor.pygments.lexerr   r   r   r   r   r   r	   r
   r   pip._vendor.pygments.utilr   r   pip._vendor.pygments.tokenr   r   r   r   r   r   r   r   r   r   r   r   pip._vendor.pygmentsr   r  __all__r   Python3Lexerr   r  r   r   Python3TracebackLexerr   r    r!   r"   r  r<   r:   <module>r     s&    4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 C C C C C C C C; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1 1 1 1 1 13 3 3
A% A% A% A% A%* A% A% A%H \: \: \: \: \:: \: \: \:|" " " " "j " " "H.Q .Q .Q .Q .Q .Q .Q .Q`3 3 3 3 3: 3 3 3l - - - - - -J - - -`p p p p p* p p pf` ` ` ` `j ` ` `F]J ]J ]J ]J ]J ]J ]J ]J ]J ]Jr<   