
    5h                        S r SSK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  SSKJr  SSKJr  S/r0 \S_\S_\S_\R&                  S	_\S
_\R(                  S	_\
R*                  S_\R,                  S	_\R.                  S_\R0                  S_\R2                  S_\R4                  S	_\R6                  S_\R8                  S_\R:                  S_\R<                  S	_\R>                  S_\S\	S
\R@                  S\RB                  S\RD                  S\RF                  S\RH                  S\R                  S\S0	Er% " S S\5      r&g)z
pygments.formatters.terminal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Formatter for terminal output with ANSI sequences.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
    )	Formatter)
KeywordNameCommentStringErrorNumberOperatorGenericToken
Whitespace)
ansiformat)get_choice_optTerminalFormatter) r   )graybrightblack)cyan
brightcyan)blue
brightblue)magentabrightmagenta)greenbrightgreen)_cyan__brightcyan_)_green__brightgreen_)r   r   )red	brightred)r   r   )yellowr"   )r!   r!   )**r#   )z	*magenta*z*brightmagenta*)_brightred_r$   c                   F    \ rS rSrSrSrSS/r/ rS rS r	S r
S	 rS
 rSrg)r   8   a  
Format tokens with ANSI color sequences, for output in a text console.
Color sequences are terminated at newlines, so that paging the output
works correctly.

The `get_style_defs()` method doesn't do anything special since there is
no support for common styles.

Options accepted:

`bg`
    Set to ``"light"`` or ``"dark"`` depending on the terminal's background
    (default: ``"light"``).

`colorscheme`
    A dictionary mapping token types to (lightbg, darkbg) color names or
    ``None`` (default: ``None`` = use builtin colorscheme).

`linenos`
    Set to ``True`` to have line numbers on the terminal output as well
    (default: ``False`` = no line numbers).
Terminalterminalconsolec                     [         R                  " U 40 UD6  [        USSS/S5      S:H  U l        UR	                  SS 5      =(       d    [
        U l        UR	                  SS5      U l        SU l        g )NbglightdarkcolorschemelinenosFr   )	r   __init__r   darkbggetTERMINAL_COLORSr.   r/   _lineno)selfoptionss     g/var/www/html/cementerio_25MayoBackend/env/lib/python3.13/site-packages/pygments/formatters/terminal.pyr0   TerminalFormatter.__init__S   sj    4+7+$Wd&-v%6ADJK";;}d;N{{9e4    c                 0    [         R                  " XU5      $ N)r   format)r5   tokensourceoutfiles      r7   r<   TerminalFormatter.format[   s    7;;r9   c                     U =R                   S-  sl         UR                  SU R                   S:g  =(       a    S=(       d    SU R                   4-  5        g )N   z%s%04d: 
r   )r4   write)r5   r>   s     r7   _write_linenoTerminalFormatter._write_lineno^   s=    jDLLA$5$>$$D"dll#SSTr9   c                     U R                   R                  U5      nUc,  UR                  nU R                   R                  U5      nUc  M,  X R                     $ r;   )r.   r2   parentr1   )r5   ttypecolorss      r7   
_get_colorTerminalFormatter._get_colorb   sT     !!%%e,nLLE%%))%0F n kk""r9   c           
      2   U R                   (       a  U R                  U5        U H  u  p4U R                  U5      nUR                  S5       H  nU(       a*  UR	                  [        XVR                  S5      5      5        O UR	                  UR                  S5      5        UR                  S5      (       d  Ml  U R                   (       a  U R                  U5        M  UR	                  S5        M     M     U R                   (       a  UR	                  S5        g g )NTrB   )r/   rD   rJ   
splitlinesrC   r   rstripendswith)r5   r=   r>   rH   valuecolorlines          r7   format_unencoded"TerminalFormatter.format_unencodedl   s    <<w''LEOOE*E((.MM*UKK4E"FGMM$++d"34==&&||**73d+ / ( <<MM$ r9   )r4   r.   r1   r/   N)__name__
__module____qualname____firstlineno____doc__namealiases	filenamesr0   r<   rD   rJ   rS   __static_attributes__ r9   r7   r   r   8   s7    , D9%GI<U# r9   N)'rY   pygments.formatterr   pygments.tokenr   r   r   r   r   r	   r
   r   r   r   pygments.consoler   pygments.utilr   __all__PreprocTypeWordBuiltinFunction	NamespaceClass	Exception	DecoratorVariableConstant	AttributeTagDeletedInsertedHeading
SubheadingPromptr3   r   r^   r9   r7   <module>rv      s   )1 1 1 ' ( 

	+ 1 1	
 OO5 1 LL5 MM9 	LL5 	MM2 	NN7 	JJ4 	NN5 	NN2 	MM0  	MM0!" 	NN5#$ 	HH;%& 2
1OO91OO,:NN,MM9	;;BG 	 G r9   