
    q"h]                     f   S r SSKrSSKJrJrJrJrJrJrJ	r	J
r
Jr  SSKJrJr  SSKJrJrJrJrJrJrJrJrJrJrJrJr  SSKJr  / SQr " S S	\5      r \ r! " S
 S\5      r" " S S\5      r# " S S\5      r$ " S S\5      r%\%r& " S S\5      r' " S S\5      r( " S S\5      r) " S S\ 5      r*g)z
pygments.lexers.python
~~~~~~~~~~~~~~~~~~~~~~

Lexers for Python and related languages.

:copyright: Copyright 2006-2025 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            "          \ rS rSrSrSrSr/ SQr/ SQr/ SQr	Sr
S	\R                   S
\R                   S3rS rS r0 SS\4S\" \\R(                  \R*                  5      4S\" \\R(                  \R*                  5      4S\R.                  4S\R0                  4S\4S\4\" S5      \" S5      S\" \\5      S4S\" \\5      S4S\" \R8                  \5      S4S\" \R8                  \5      S4\" S 5      /_S S!\" \R(                  \R:                  5      \" S"S#5      4S$\" \R(                  \R0                  5      \" S"S%5      4S&\" \R(                  \R:                  5      \" S"S'5      4S(\" \R(                  \R0                  5      \" S"S)5      4S*\" \R(                  \R:                  5      \" S+S#5      4S,\" \R(                  \R0                  5      \" S+S%5      4S-\" \R(                  \R:                  5      \" S+S'5      4S.\" \R(                  \R0                  5      \" S+S)5      4S/\" \R(                  \R:                  5      S04S1\" \R(                  \R0                  5      S24S3\" \R(                  \R:                  5      S44S5\" \R(                  \R0                  5      S64S7\" \R(                  \R:                  5      \" S8S05      4S9\" \R(                  \R0                  5      \" S8S25      4S:\" \R(                  \R:                  5      \" S8S45      4S;\" \R(                  \R0                  5      \" S8S65      4S<\" \R(                  \R:                  5      \" S=S05      4S>\" \R(                  \R0                  5      \" S=S25      4S?\" \R(                  \R:                  5      \" S=S45      4S@\" \R(                  \R0                  5      \" S=S65      4SA\4\" SB5      SC\4SD\ 4SE\RB                  4\" SF5      \" SG5      \" SH5      \" SI5      \" SJ5      /_SKSL\ SM4SN\RD                  SO4SP\RD                  SO4SQ\4\" S 5      /_SMSL\ SM4SR\ SO4SQ\4\" S 5      /_SF\#" SSSTSU9\4\#" SVSTSU9\RH                  4/_S\#" SWSTSU9\4\#" SVSTSU9\RH                  4/_SSXSYRK                  SZ \&RN                   5       5      -   S[-   \" \\5      S\4/_S\S]\" \\(" \)5      \5      4\*" SO5      /_SG\#" S^S_STS`9\+RX                  4Sa\+RX                  RZ                  4\#" SbS_STS`9\+R\                  4/_SH\#" ScSTSU9\+R^                  R`                  4/_SI\#" SdSTSU9\+Rb                  R`                  4/_SBSe\2Rf                  4Sf\2Rf                  4Sg\2Rh                  4Sh\2Rj                  4Si\2Rl                  4Sj\2Rn                  4/_SJSk\-   \+Rp                  4Sk\4\\+4/_S\" SH5      \\+R^                  SO4\*" SO5      /_S\\+Rr                  SO4/_SSl\" \\\5      4Sm\+R8                  4\\+R8                  4Sn\" \\\5      4\*" SO5      /_SSo\" \\R8                  5      SO4Sm\+R8                  4Sp\RH                  SO4\\+R8                  4\*" SO5      /_0 S"Sq\Rt                  4Sr\Rt                  4/_S+\" S"5      \" S85      /_S=Ss\Rt                  4/_S8St\Rt                  4\" S=5      /_Su\" \R0                  5      _Sv\" \R:                  5      _Sw\" \R0                  5      _Sx\" \R:                  5      _S'Sy\R:                  SO4Sz\Rt                  4\" Sv5      /_S)S{\R0                  SO4S|\Rt                  4\" Su5      /_S4Sy\R:                  SO4Sz\Rt                  4\" Sx5      /_S6S{\R0                  SO4S|\Rt                  4\" Sw5      /_S#S}\R:                  SO4\" Sv5      S\R:                  4/_S%S~\R0                  SO4\" Su5      S\R0                  4/_S0S}\R:                  SO4\" Sx5      S\R:                  4/_S2S~\R0                  SO4\" Sw5      S\R0                  4/_Er;S r<Sr=g)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pyi)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                 \    S[         R                  4S[         R                  4SU 4SU 4SU 4/$ )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    T/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/pygments/lexers/python.pyinnerstring_rulesPythonLexer.innerstring_rulesA   sJ    '(.9 OO	% u%U#
 	
    c                 X    S[         R                  4S[         R                  S4SU 4SU 4/$ )Nz\}z\{expr-inside-fstringz[^\\\'"{}\n]+r7   r8   r:   s    r<   fstring_rulesPythonLexer.fstring_rulesU   s9     FOO$FOO%:;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namerA   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asyncrl   breakcontinuedelelifrm   exceptfinallyrn   globalro   rp   passraisenonlocalreturntrywhilerq   rr   aswithz6(^[ \t]*)(match|case)\b(?![ \t]*(?:[:,;=^&|@~)\]}]|(?:|c              #   X   #    U  H   oS    R                  5       (       d  M  Uv   M"     g7f)r   N)islower).0ks     r<   	<genexpr>PythonLexer.<genexpr>   s     C.QaDLLNqq.s   *	*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(?<!\.)prefixru   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                 8    [        U S5      =(       d    SU S S ;   $ )Npythonw?(3(\.\d)?)?import   r   texts    r<   analyse_textPythonLexer.analyse_text  s%    t%;< %et$	%r?    N)>r  r  r  __firstlineno__r  ri   urlaliases	filenames	mimetypesversion_addeduni	xid_startxid_continueuni_namer=   rB   r   r   r   AffixDocr   HashbangSingler   r   r   	NamespaceDoubler
   r   r   Wordr9   r	   Constantjoinkeywordkwlistr   r   r   r   BuiltinPseudor   FunctionMagicVariabler   FloatOctBinHexInteger	DecoratorClassEscapetokensr  __static_attributes__r  r?   r<   r   r      s     D
"CTGI,<IM3==/C$4$4#5R8H
(
sJ6j&,,

;=6j&,,

;=))*gnn%dODMJO$#Xgz%BJO%x'DkR$hw/@/@*&M&1B1BJ(OFO%
s* 	fllFMM2&/1  fllFMM2&/1 fllFMM2&.0 fllFMM2&.0 HV\\6==Aov.0HV\\6==Aov.0(6<<?ou-/(6<<?ou-/ "fllFMM2F<!fllFMM2F<fllFMM2E;fllFMM2E; XfllFMMBnf-/XfllFMMBnf-/8FLL&--@ne,.8FLL&--@ne,. HV\\6==AmV,.HV\\6==AmV,.(6<<?mU+-(6<<?mU+- $I.9[)$hmm4O$JL!K FOy=
+sf 	{$?@OOV-
??F, Z FO 
gsB 	${$?@{F+Z FO	&
CsN 	 '/46  ,U;W=M=MN
Os^ 	 , 5:	;
  ,U;W=M=MN
_sp 	$
 YYC'..CCD
 GOO dG$&;=	
qsD 	#Xj%+w%OPFO 
EsN 	 
0 9C5
R \\ <T\\=P=PQ #0 "%112 ^^3(
Os` 	 * $)+*, ]]  -"
asR 	 8
 AFG ]]  "
Ssd 	()/716<<@!6::. &**-'4V^^,
esv 	H_dnn-8t
ws@ 	L!t}}f-FO
AsJ 	tzz6*
KsP 	Wj IJDNN#t~~&x
HjIJFO
Qs^ 	*g6G6G!H&QDNN# ((&1t~~&FO
_sp 	fmm$fmm$
qsx 	$%N#
ys@ 	@&--P
AsF 	<fmmLM"
GsN 	=7OsP 	=7QsR 	+FMM:SsT 	+FMM:UsV 	6==&)v}}-%&
Ws` 	6==&)v}}-%&
asj 	6==&)v}}-$%
kst 	6==&)v}}-$%
us~ 	V]]F+%&FMM"
sH	 	V]]F+%&FMM"
I	sR	 	V]]F+$%FMM"
S	s\	 	V]]F+$%FMM"
]	sFj	%r?   r   c            #       4	   \ rS rSrSrSrSrSS/r/ rSS/r	S	r
S
 r0 SS\4S\" \\R                  \R                   5      4S\" \\R                  \R                   5      4S\4S\R&                  4S\R(                  4S\4S\4S\4S\R.                  4S\4\" S5      S\" \\5      S4S\" \\5      S4S\" \R4                  \5      S4S\" \R4                  \5      S4\" S 5      \" S!5      \" S"5      \" S#5      S$\" \R                  \R6                  5      S%4S&\" \R                  \R(                  5      S'4S(\" \R                  \R6                  5      S)4S*\" \R                  \R(                  5      S+4S,\" \R                  \R6                  5      \" S-S%5      4S.\" \R                  \R(                  5      \" S-S'5      4S/\" \R                  \R6                  5      \" S-S)5      4S0\" \R                  \R(                  5      \" S-S+5      4\" S15      \" S25      /_S\" S3S4S59\4/_S \" S6S7S4S89\R>                  4S9\R>                  R@                  4\" S:S7S4S89\RB                  4/_S!\" S;S4S59\RD                  RF                  4/_S"\" S<S4S59\RH                  RF                  4/_S2S=\%RL                  4S>\%RL                  4S?\%RN                  4S@\%RP                  4SA\%RR                  4SB\%RT                  RV                  4SC\%RT                  4/_S#SD\RX                  4/_S1SE\RZ                  4SF\4/_S\" S!5      SF\RD                  SG4\." SG5      /_SSF\R^                  SG4/_SSH\4SI\R4                  4SJ\4SK\R4                  4\." SG5      /_SSH\4SL\R4                  SG4SM\R>                  R@                  SG4SN\R4                  4\." SG5      /_S-SO\R`                  4/_SP\" \R(                  5      _SQ\" \R6                  5      _S)SR\R6                  SG4SS\R`                  4\" SQ5      /_S+ST\R(                  SG4SU\R`                  4\" SP5      /_SV\R6                  SG4\" SQ5      S\R6                  4/SW\R(                  SG4\" SP5      S\R(                  4/SX.Er1SY r2SZr3g[)\r   i  z
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                 :    S[         R                  4SU 4SU 4SU 4/$ )NG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%][^\\\'"%\n]+r7   %r8   r:   s    r<   r=   Python2Lexer.innerstring_rules  s6    &'-8 e$5M

 
	
r?   rD   rE   rF   rG   rb   rH   rI   rd   rJ   rK   re   z!=|==|<<|>>|[-~+/*%=<>&^|.]rL   rM   rN   rO   rP   rQ   rR   rS   rT   rf   rg   rh   backtickz!([rR]|[uUbB][rR]|[rR][uUbB])(""")r\   z!([rR]|[uUbB][rR]|[rR][uUbB])(''')r]   z([rR]|[uUbB][rR]|[rR][uUbB])(")r^   z([rR]|[uUbB][rR]|[rR][uUbB])(')r_   z([uUbB]?)(""")r`   z([uUbB]?)(''')z([uUbB]?)(")z([uUbB]?)(')ri   rc   )ry   r{   r|   r}   r~   rm   r   execr   rn   r   ro   rp   r   r   r   r   r   r   rq   rr   r   r   rs   rt   )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/  r0  r1  r2  r3  r5  r6  r7  r8  r9  __getslice__r:  r;  __hex__r<  r=  __idiv__r>  r?  rA  rB  rC  rD  rE  rF  rG  __iop__rH  rI  rJ  rK  rL  rM  rN  rO  rP  __long__rR  rS  rU  rV  rW  rX  rY  rZ  __nonzero____oct____op__r\  r]  r^  r`  ra  __rcmp____rdiv__rb  rc  rd  re  rf  rh  ri  __rop__rj  rl  rm  rn  ro  rp  rq  rr  rs  rt  __setslice__ru  rv  rw  rx  __unicode__ry  )r{  r|  r}  r~  r  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*rj   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  )r\   r]   c                     [        U S5      $ )Nzpythonw?2(\.\d)?r  r  s    r<   r  Python2Lexer.analyse_text{  s    t%899r?   r  N)4r  r  r  r  r  ri   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   r     s*    D
"C% GI!#:;IM
{J6j&,,

;=6j&,,

;=$))*gnn%[)dODM$hmm4+X6J#Xgz%BJO%x'DkR$hw/@/@*&M&1B1BJ(OJL!K J0fllFMM2F<0fllFMM2F<.fllFMM2E;.fllFMM2E;xfmmDnf-/xfmmDnf-/XfllFMMBne,.XfllFMMBne,.FOIU+
{Z 	 , 5:	;
 
[{j 	 > "%1 \\\\((* 5 >HPUW ^^#!
k{n 	 *$ 38%9& ]]  '"
o{Z 	 ,
  ]]  "
[{l 	7F$fll36::&FJJ'!6::.fnn))*v~~&
m{~ 	foo&
{D 	(d#
E{L 	L!dmmV4FO
M{V 	djj&1
W{\ 	&g''(80FO
]{j 	&'++V4 ++V4 $..1 FO
k{B 	<=C]]L
C{J 	+FMM:K{L 	+FMM:M{N 	6==&)v}}-$%
O{X 	6==&)v}}-$%
Y{d V]]F+$%FMM"
 V]]F+$%FMM"
m{Fz:r?   r   c                      \ rS rSrSrSS/rS/r S\" \R                  \
R                  5      S4S\" \R                  \5      4S	\
R                  S
4S\
R                  S
4S\R                  4/S\" \R                  \
R                  5      4S\" \R                  \5      4\" S5      /S\S4S\" \R$                  \5      4S\
R                  4/S.rSrg)_PythonConsoleLexerBasei  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)rj   z(?=>>>( |$))z(KeyboardInterrupt)(\n))rD   r
  r  r  N)r  r  r  r  ri   r  r  r   r   Promptr   Coder   	TracebackOutputr   r   r   r  r  r  r  r?   r<   r  r    s    #D()G()I hw~~uzzBOT 8GNNJ?@<eoo{[(%//;Ggnn%	
  '..%**!EFhw~~zBCFO	
 dF+'$**j)IJeoo&
#Fr?   r  c                   F   ^  \ rS rSrSrSrSS/rS/rSrSr	U 4S	 jr
S
rU =r$ )r   i  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                    >^ [        USS5      nU(       a  [        m[        nO[        m[        n " U4S jS[
        5      n[        TU ]  " X4[        R                  40 UD6  g )Nr*   Tc                   ,   >^  \ rS rSrU U4S jrSrU =r$ )6PythonConsoleLexer.__init__.<locals>._ReplaceInnerCodei  c                 P   > [         TU ]  " T[        [        R                  40 UD6  g N)r   rD  r  r   r  )selfoptionsr|  pylexers     r<   rD  ?PythonConsoleLexer.__init__.<locals>._ReplaceInnerCode.__init__  s     *A5::YQXYr?   r  )r  r  r  r  rD  r  __classcell__)r|  r  s   @r<   _ReplaceInnerCoder    s    Z Zr?   r  )
r   r   r   r   r   r   r   rD  r   r  )r  r  r*   tblexerr  r  r|  s        @r<   rD  PythonConsoleLexer.__init__  sP    w	48!G*G"G+G	Z 	Z 	U__PPr?   r  )r  r  r  r  r  ri   r  r  r  r  rD  r  r  )r|  s   @r<   r   r     s8    . $D()G()I
CMQ Qr?   r   c                      \ rS rSrSrSrSS/rSS/rSS	/rS
r	Sr
S\4S\R                  S4S\R                  4S\R                  4S\R                  S4S\4/S\" \\R$                  \\\\\5      4S\" \\R$                  \\\5      4S\" \\" \5      \5      S4S\" \\\5      4S\" \R.                  \\\5      S4S\" \R.                  \5      S4\" S5      /S\" \\R4                  \5      S4\" S5      /S.rSrg)r   i  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.0rE   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)rj   z^([a-zA-Z_][\w.]*)(:?\n)z^( {4,})([~^]+)(\n))rD   r"  r(  r  N)r  r  r  r  r  ri   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   r     s{    DwG9%I*,FGI
CM J=w?P?PRXY()0):):<)*1*;*;=-w/@/@&Iu	
 AdDLL$dJOQ5dDLL$
CEj%"4jA9N%j':68$gmmT4<fF(gmmZ0&:FO
& $j+"4"4jA FO
5#Fr?   r   c                      \ rS rSrSrSrS/rS/rS/rSr	Sr
S	\" \\R                  5      S
4S\R                  S
4S\4/S\" \\R"                  \\\\\5      4S\" \\R"                  \\\5      4S\" \\" \5      \5      S4S\" \\\5      4S\" \R.                  \\\5      S4S\" \R.                  \5      S4/S\" \\R2                  5      S4\" S5      /S.rSrg)r   i  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*  rj   z^([a-zA-Z_]\w*)(:?\n)z( {4,})(\^))rD   r"  r.  r  N)r  r  r  r  r  ri   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     s@    "DiGI+,I
CM 'dG--.8 .w/@/@&Iu
 AdDLL$dJOQ5dDLL$
CEdE,/<hH%dGZ02$gmmT4<fF%gmmZ0&:
  XdK,>,>?HFO
1Fr?   r   c                       \ rS rSrSrSrSr/ SQr/ SQrSS/r	S	r
0 S
/ S\4PS\" \\R                  5      4PS\" \\R                  5      4PS\4PS\4PS\4PS\4PS\4PS\R&                  4PS\" \\R*                  \5      4PS\4PS\" \\R.                  \\\\\5      4P\" S5      PS\" \\5      S4PS\" \\5      S4PS\" \\5      4PS\" \\5      S4PS\" \\5      S 4PS!\" \\5      S"4P\" S#5      P\" S$5      PS%\S&4PS'\S(4PS)\S*4PS+\S,4PS-\\" S.S&5      4PS/\\" S.S(5      4PS0\\" S.S*5      4PS1\\" S.S,5      4P\" S25      P\" S35      P_S\" S4S5S69\4S7\R8                  4/_S#\" S8S9S5S:9\R:                  4S;\R:                  R<                  4\" S<S9S5S:9\R>                  4/_S3S=\R@                  4S>\RB                  4S?\RD                  4S@\R.                  RF                  4SA\R.                  4/_S$SB\RH                  4/_S2SC\RJ                  4SD\4/_SSD\RL                  SE4/_SSF\RN                  4SG\4SH\" \RL                  \5      SE4SI\" \RL                  \\5      4SJ\SE4SK\4SL\SE4SM\SE4SD\R*                  4SN\4/
_SSD\RP                  SE4/_S"SO\" \\\5      4SP\RR                  4SQ\" \\\5      4\*" SE5      /_S SR\" \\5      SE4SS\RR                  4\*" SE5      /_S.ST\RV                  4/_SUSV\RX                  4SW\4SX\4SY\4/_SZS\4/_S*S[\SE4S\\RV                  4\" SU5      /_S,S]\SE4S^\RV                  4\" SU5      /_S&S_\SE4\" SU5      \" SZ5      /_S(S`\SE4\" SU5      \" SZ5      /0Er-Sar.gb)cr    i>  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.1rD   rE   z^(\s*)("""(?:.|\n)*?""")z^(\s*)('''(?:.|\n)*?''')rb   rI   rd   rJ   rK   re   z(<)([a-zA-Z0-9.?]+)(>)z!=|==|<<|>>|[-~+/*%=<>&^|.?]z(from)(\d+)(<=)(\s+)(<)(\d+)(:)rL   z(def|property)(\s+)rN   z(cp?def)(\s+)cdefz	(cdef)(:)z(class|struct)(\s+)rP   z(from)(\s+)rR   z(c?import)(\s+)rT   rf   r  z(?:[rR]|[uU][rR]|[rR][uU])"""r\   z(?:[rR]|[uU][rR]|[rR][uU])'''r]   z(?:[rR]|[uU][rR]|[rR][uU])"r^   z(?:[rR]|[uU][rR]|[rR][uU])'r_   z[uU]?"""r`   z[uU]?'''z[uU]?"z[uU]?'ri   rc   )ry   rz   rl   r{   byr|   ctypedefr}   r~   rm   r   zexcept?r  r   rn   fusedgilr   ro   r   rp   nogilr   r   r   r   r   r   rq   r   r   rs   rt   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  rj   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  r7   r  nlr  r  r  r  r  r  r  N)/r  r  r  r  r  ri   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  r9   r  r  r  r?   r<   r    r    >  s}    D
C(G+I "89IMd $
J$
((:vzz*JK$
 )(:vzz*JK$
 $	$

 g$
 [)$
 j!$
 DM$
 %hmm4$
 'k7<<=?$
 -h7$
 0gv~~xXK)*$
  J!$
" $Xgz%BJO#$
$ x<fE%$
( 8G[9:)$
* $Xgz%BKP+$
, Xgz:LI-$
.  ':!>I/$
0 J1$
2 J3$
4 -ff=5$
6 -ff=7$
8 +FE:9$
: +FE:;$
< .&!AB=$
> .&!AB?$
@ vx>?A$
B vx>?C$
D FOE$
F IG$
dL 	 J SX	Y
  %goo6
Md^ 	 ) 2<EK \\\\((* % .8G ^^#!
_db 	6Efjj!!6::.fnn))*V^^$
cdp 	foo&
qdv 	dnn%d#
wd~ 	dmmV4
dD 	5w7G7GH+W5/dmmZ0&:&dmmZ=?(g;'4(gll+4L
Ed` 	djj&1
adf 	Wj IJ0x
HjIJFO	
gdr 	!8J#@&I $..1FO	
sd~ 	<=C]]L
dF 	&'-8f% 6N	
GdZ 	FO
[d` 	66"v}}-I
adj 	66"v}}-I
kdt 	VV$IDM
ud~ 	VV$IDM
dFr?   r    c                      \ rS rSrSrSrS/rS/rS/rSr	Sr
S\4S	\R                  4S
\R                  4S\R                   4S\R"                  4S\R$                  4S\R$                  4S\R&                  4S\\" SSS5      4S\\" SSS5      4S\\" SSS5      4S\\" SSS5      4S\4S\R.                  4S\4\" SSSS 9\R4                  4\" S!SSS 9\R4                  4S"\R4                  R6                  4S#\R8                  4S$\R8                  4S%\R<                  4S&\4S'\R>                  4S(\4S)\ 4S*\!4/S+\RD                  4/S,\RF                  4S-\4S.\4S/\4S0\4/S1\S24/S3\S24/S4\S24/S5\S24/S6.r$S7r%g8)9r!   i  zb
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.6rk   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`   r]   stringz(?i)(br|r?b?)"""r\   z(?i)(br|r?b?)'r_   z(?i)(br|r?b?)"r^   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[()]r?  r  r  r  r7   r  rE   r  rj   r  r  r  )rD   r`   rG  r^   r_   r\   r]   r  N)&r  r  r  r  r  ri   r  r  r  r  r  r   r   r  r   r  r  r  r  r  r   r
   r   r  r	   r   r  r  r   r   rD  rB  r   r   r  r9   r  r  r  r?   r<   r!   r!     sT   
 DfGII
$CM TNw~~&VZZ(fjj),8&,,G*FLL9!6>>2 &(>68*TU &(>68*TU(QR(QR"((--8((3 5
 %]< \\  M %]	< \\
 O\\  " D^^%&*nn645<5E5EG #D)#W\\2tk"5Mm7
r<=C]]L

&'-8f% 6NFO	
 66"
 66"
 VV$
 VV$
aSFr?   r!   c                   F    \ rS rSrSrSrSrS/rSr/ r	/ r
1 SkrS rS	 rS
rg)r"   iT  z7
A Python lexer recognizing Numerical Python builtins.
NumPyzhttps://numpy.org/numpyr4   >  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sqrtrT  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              #      #    [         R                  X5       H;  u  p#nU[        L a&  X@R                  ;   a  U[        R
                  U4v   M5  X#U4v   M=     g 7fr  )r   get_tokens_unprocessedr   EXTRA_KEYWORDSr   r  )r  r  indextokenvalues        r<   r  !NumPyLexer.get_tokens_unprocessed  sO     224>  E%}*=*=!=W^^U22E))	 ?s   AAc                 l    U S S n[        U S5      =(       d    SU;   =(       a    SU;   =(       d    SU;   $ )Nr  r  r  zimport numpyzfrom numpy importr  )r  ltexts     r<   r  NumPyLexer.analyse_text  sD    Ud&<= #U"J5(H,?5,H	Jr?   r  N)r  r  r  r  r  ri   r  r  r  r  r  r  r  r  r  r  r?   r<   r"   r"   T  s?     D
CiGM IIANF*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 C; ; ; ; 13
A%* A%H \:: \:~"j "J.Q .Qb3: 3l - -J -`p* pf`j `F]J ]Jr?   