+
    i!                     B   ^ RI t ^ RIHt ^ RIHt ^ RIHtHtHtH	t	H
t
HtHtHt ^RIHt ^RIHt ^RIHt ^RIHt ^R	IHtHt ] P0                  ! R
] P2                  4      t] P0                  ! R4      t ! R R]
4      t]	],          t]].]3,          t]]].]3,          t ] P0                  ! R4      PB                  3R R llt"R R lt#RR R llt$]%R8X  dG   . ROt&^ RI'H(t( ^ RI)H*t* ]*! RRRR7      t+]& F  t,]+P[                  ]! ],4      ],4       K  	  ](! ]+4       R# R# )    N)literal_eval)
attrgetter)CallableIterableListMatch
NamedTupleOptionalTupleUnion)_emoji_replace)EmojiVariant)MarkupError)Style)SpanTextz((\\*)\[([a-z#/@][^[]*?)])z^([\w.]*?)(\(.*?\))?$c                   b   a  ] tR t^t o Rt  V 3R lR lt]V 3R lR l4       tV 3R ltRt	V t
R# )	TagzA tag in console markup.c                    < V ^8  d   QhRS[ /#    returnstr)format__classdict__s   "^/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/markup.py__annotate__Tag.__annotate__   s     
 
 
    c                l    V P                   f   V P                  # V P                   RV P                    2# )N 
parametersnameselfs   &r   __str__Tag.__str__   s3    0DII	
9=1T__DU6V	
r    c                    < V ^8  d   QhRS[ /# r   r   )r   r   s   "r   r   r   "   s     
 
 
r    c                x    V P                   f   RV P                   R2# RV P                   RV P                    R2# )z*Get the string representation of this tag.[]=r#   r&   s   &r   markup
Tag.markup!   sG    
 & 		{!	
 TYYKq 13	
r    c                B   < V ^8  d   Qh/ S[ ;R&   S[S[ ,          ;R&   # )r   r%   r$   )r   r
   )r   r   s   "r   r   r      s"      I 
  r     N)__name__
__module____qualname____firstlineno____doc__r(   propertyr/   __annotate_func____static_attributes____classdictcell__)r   s   @r   r   r      s5     " %3
 

 
 
  r    r   z(\\*)(\[[a-z#/@][^[]*?])c                <    V ^8  d   QhR\         R\        R\         /# )r   r/   _escaper   )r   _EscapeSubMethod)r   s   "r   r   r   0   s&       	r    c                    R R lpV! W 4      p V P                  R4      '       d!   V P                  R4      '       g
   V R,           # V # )zEscapes text so that it won't be interpreted as markup.

Args:
    markup (str): Content to be inserted in to markup.

Returns:
    str: Markup with square brackets escaped.
c                F    V ^8  d   QhR\         \        ,          R\        /# )r   matchr   )r   r   )r   s   "r   r   escape.<locals>.__annotate__=   s     5 5%* 5 5r    c                8    V P                  4       w  rV V RV 2# )z!Called by re.sub replace matches.\)groups)rA   backslashestexts   &  r   escape_backslashes"escape.<locals>.escape_backslashes=   s%    !LLN{m2dV44r    rD   z\\)endswith)r/   r=   rH   s   && r   escaperK   0   s@    5
 '0FtV__V%<%<}Mr    c          	          V ^8  d   QhR\         R\        \        \        \        \         ,          \        \
        ,          3,          ,          /# )r   r/   r   )r   r   r   intr
   r   )r   s   "r   r   r   I   s3     0 03 08E#x}hsm*K$LM 0r    c              #    "   ^ p\         p\        p\        P                  V 4       F  pVP	                  4       w  rVpVP                  4       w  rW8  d	   WW R3x  V'       dX   V! \        V4      ^4      w  rV
'       d   VRV
,          R3x  W^,          ,          pV'       d   W\        V4      R R3x  T	pK  VP                  R4      w  rpTRT! Y'       d   TMR4      3x  T	pK  	  V\        V 4      8  d   WVR R3x  R# R# 5i)zParse markup in to an iterable of tuples of (position, text, tag).

Args:
    markup (str): A string containing console markup

NrD   r.   )divmodr   RE_TAGSfinditerrE   spanlen	partition)r/   position_divmod_TagrA   	full_textescapestag_textstartendrF   escapedrG   equalsr$   s   &              r   _parser_   I   s     HGD!!&)',||~$	HZZ\
/55#*3w<#; KTK/55q(s7|~6<<#+#5#5c#: jT4FjEEE% *& #f+xy)4// s   A!D	$A D	%A$D	c          
          V ^8  d   QhR\         R\        \         \        3,          R\        R\        \
        ,          R\        /# )r   r/   styleemojiemoji_variantr   )r   r   r   boolr
   r   r   )r   s   "r   r   r   j   sO     } }}e} } L)	}
 
}r    c                t  aa \         pRV 9  d%   \        V'       d   V! WR7      VR7      # T VR7      # \        VR7      pVP                  p\        P                  p. oSP
                  o. pVP                  p	\        p
\        pR VV3R llp\        V 4       EF  w  rpVe-   VP                  RR4      pT! V'       d	   V! V4      MT4       K7  Vf   K=  VP                  P                  R4      '       EdX   VP                  R	,          P                  4       pV'       d   V! V4      p V! V4      w  ppM S! 4       w  ppVP                  P                  R4      '       d   VP"                  '       d   RpVP"                  P                  4       p\$        P'                  V4      pVe   VP)                  4       w  ppVf   RMTp \+        V4      pT'       d   T\3        T\4        4      '       d   TMT33pMRpV	! V
! V\7        V4      \        VP                  V/R7      4      4       EK  V	! V
! V\7        V4      \9        V4      4      4       EK  V! V! VP                  4      VP"                  4      pSP                  \7        V4      V34       EK  	  \7        V4      pS'       d;   SP                  4       w  pp\9        V4      pV'       g   K0  V	! V
! VVV4      4       KB  \;        VRRR1,          \=        R4      R7      Vn        V#   \         d    \        R
TP                   RT R24      Rhi ; i  \          d    \        RT R24      Rhi ; i  \,         d0   p\        RT: RTP"                  : RTP.                   24      hRp?i\0         d#   p\        RTP"                  : RT 24      RhRp?ii ; i)a  Render console markup in to a Text instance.

Args:
    markup (str): A string containing console markup.
    style: (Union[str, Style]): The style to use.
    emoji (bool, optional): Also render emoji code. Defaults to True.
    emoji_variant (str, optional): Optional emoji variant, either "text" or "emoji". Defaults to None.


Raises:
    MarkupError: If there is a syntax error in the markup.

Returns:
    Text: A test instance.
r,   )default_variant)ra   c                R    V ^8  d   QhR\         R\        \        \        3,          /# )r   
style_namer   )r   r   rM   r   )r   s   "r   r   render.<locals>.__annotate__   s"     # #c #eCHo #r    c                   < \        \        S4      ^4       F$  w  pw  r#VP                  V 8X  g   K  S! V) 4      u # 	  \        V 4      h)z"Pop tag matching given style name.)	enumeratereversedr%   KeyError)rh   index_tagpopstyle_stacks   &   r   	pop_stylerender.<locals>.pop_style   sE    (+)>BOE8Axx:%E6{"  C z""r    Nz\[/:   NNzclosing tag 'z' at position z doesn't match any open tagzclosing tag '[/]' at position z has nothing to close@ z()zerror parsing z in z; )metar[   )keyr2   ) r   r   appendr   	normalizerq   r   r   r_   replacer%   
startswithstriprm   r   r/   
IndexErrorr$   
RE_HANDLERrA   rE   r   SyntaxErrormsg	Exception
isinstancetuplerS   r   sortedr   spans)r/   ra   rb   rc   emoji_replacerG   r|   r}   r   append_span_SpanrW   rs   rU   
plain_textrp   rh   r[   open_taghandler_namer$   handler_matchmatch_parametersmeta_paramserrornormalized_tagtext_lengthrq   rr   s   &&&&                       @@r   renderr   j   s   * #M
&DIM&@
 	
OU
 	
 eD[[FI)+K
//CE,,KED# # &,F^!c!#++E37J=,:F_xx""3'' XXb\//1
!*:!6J$*3J*?x$*-%x ==++C00***')%-%8%8%>%>%@
(2(8(8(D(4=J=Q=Q=S:L*:(8(@FV '	(*6z*BK ( ,#-k5#A#A !,&1^	+K ')!3t9e(--9U.V  eSYH FG "&i&93>>!J""CI~#>?I &4L d)K
 __&
sC5e[%89ddG)<=DJKC $ $)+CJJ<~hZOjk#$$ & $)<XJF[\#$$$  + "-"0d8CVCVBYY[\a\e\e[f g#   ) ("-"01D1D0Gr% Q##'((sB   *L7
L3M)L03MN7*NN7N7N22N7__main__)print)TableMarkupResult)padding)rx   TN)z[red]Hello World[/red]z[magenta]Hello [b]World[/b]z9[bold]Bold[italic] bold and italic [/bold]italic[/italic]zDClick [link=https://www.willmcgugan.com]here[/link] to visit my Blogz+:warning-emoji: [bold red blink] DANGER![/])r   rv   ).reastr   operatorr   typingr   r   r   r   r	   r
   r   r   r   rb   r   errorsr   ra   r   rG   r   r   compileVERBOSErP   r   r   r   _ReStringMatch_ReSubCallabler>   subrK   r_   r   r3   MARKUPpip._vendor.richr   pip._vendor.rich.tabler   gridr/   add_rowr2   r    r   <module>r      s   	   V V V *    
**%JJ
 ZZ01

* 
. s>*C/0^S1367 
 !#

+F G K K20B}@ zF ',8V4DT&\6*  
$K# r    