
    q"h                     (   S SK Jr  S SKJrJrJrJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  SSKJrJr  \(       a  SS	KJr  S
SSS
S
S.SSS\\   S\S\S\\   S\\   SS4S jjr\S:X  a)  S SKJr  \" 5         S\S\SS
4S jr\" SS5        \" 5         g
g
)    )Mapping)TYPE_CHECKINGAnyOptionalTuple   )ReprHighlighter)Panel)Pretty)Table)TextTextType)ConsoleRenderableNTF)title	sort_keysindent_guides
max_length
max_stringscopezMapping[str, Any]r   r   r   r   r   returnr   c                   [        5       n[        R                  " SSS9nUR                  SS9  S[        [
        [        4   S[        [        [
        4   4S jnU(       a  [        U R                  5       US	9OU R                  5       n	U	 HR  u  p[        R                  " XR                  S
5      (       a  SOS4S5      nUR                  U[        UUUUUS95        MT     [        R                   " UUSSS9$ )a  Render python variables in a given scope.

Args:
    scope (Mapping): A mapping containing variable names and values.
    title (str, optional): Optional title. Defaults to None.
    sort_keys (bool, optional): Enable sorting of items. Defaults to True.
    indent_guides (bool, optional): Enable indentation guides. Defaults to False.
    max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to None.
    max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.

Returns:
    ConsoleRenderable: A renderable object.
)r   r   F)paddingexpandright)justifyitemr   c                 V    U u  pUR                  S5      (       + UR                  5       4$ )z2Sort special variables first, then alphabetically.__)
startswithlower)r   key_s      H/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/rich/scope.py
sort_items render_scope.<locals>.sort_items)   s&    NN4((#))+66    )r!   r   zscope.key.specialz	scope.key)z =zscope.equals)highlighterr   r   r   zscope.border)r   border_styler   )r	   r   grid
add_columnr   strr   boolsorteditemsr   assembler   add_rowr   r
   fit)r   r   r   r   r   r   r'   items_tabler$   r.   r!   valuekey_texts                r#   render_scoper5      s    . "#K**VE:K7+7sCx 7U49-= 7
 6?F5;;=j1EKKME
==)=)=%;O"
 	'+%%		
  99#	 r&   __main__)printfoobarc                 Z    / SQnSS/ SQS/SS.n[        [        [        5       SS	S
95        g )N)r         N   TFzHello Worldz1.1confirmFruitPurchase)appleorangemangoespomelog+?	194521489)versionmethodparamsidz	[i]localsF)r   r   )r7   r5   locals)r8   r9   list_of_thingsdict_of_thingss       r#   testrK   K   s4    G,?G	
 	l68;%HIr&   gk	W4@g?$	@)collections.abcr   typingr   r   r   r   r'   r	   panelr
   prettyr   tabler   textr   r   consoler   r,   intr5   __name__pip._vendor.richr7   floatrK    r&   r#   <module>rX      s    # 6 6 (     * !% $ $55 H5 	5
 5 5 5 5p z&	GJ% Je J J 	&	G! r&   