+
    RiC	                        ^ RI Ht ^ RIHtHtHtHtHtHt ^ RI	H
t
 ]'       d   ^ RIHt R.t]! R]
R7      t ! R R	]],          4      tR
 R ltR# )    )annotations)TYPE_CHECKINGIterableListTypeVarcastoverload)OneStyleAndTextTuple)SupportsIndexexplode_text_fragments_T)boundc                     a  ] tR t^tRtRtR R ltR V 3R lltR R lt]	R	 R
 l4       t
]	R R l4       t
R V 3R llt
RtV ;t# )_ExplodedListz
Wrapper around a list, that marks it as 'exploded'.

As soon as items are added or the list is extended, the new items are
automatically exploded as well.
Tc                    V ^8  d   QhRRRR/# )   itemr   returnNone )formats   "Z/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/prompt_toolkit/layout/utils.py__annotate___ExplodedList.__annotate__   s      2 $     c                	*    V P                  V.4       R # N)extend)selfr   s   &&r   append_ExplodedList.append   s    TFr   c                    V ^8  d   QhRRRR/# )r   lstIterable[_T]r   r   r   )r   s   "r   r   r      s     4 4, 44 4r   c                	8   < \         SV `  \        V4      4       R # r   )superr   r   )r   r#   	__class__s   &&r   r   _ExplodedList.extend   s    -c23r   c               $    V ^8  d   QhRRRRRR/# )r   indexr   r   r   r   r   r   )r   s   "r   r   r   !   s!     " "M " " "r   c                	    \         hr   )NotImplementedError)r   r*   r   s   &&&r   insert_ExplodedList.insert!   s    !!r   c               $    V ^8  d   QhRRRRRR/# )r   r*   r   valuer   r   r   r   )r   s   "r   r   r   '   s    GGGrGdGr   c                	    R # r   r   r   r*   r0   s   &&&r   __setitem___ExplodedList.__setitem__&   s    DGr   c               $    V ^8  d   QhRRRRRR/# )r   r*   slicer0   r$   r   r   r   )r   s   "r   r   r   *   s    III|IIr   c                	    R # r   r   r2   s   &&&r   r3   r4   )   s    FIr   c               $    V ^8  d   QhRRRRRR/# )r   r*   zSupportsIndex | slicer0   z_T | Iterable[_T]r   r   r   )r   s   "r   r   r   ,   s)     B B*B3DB	Br   c                   < \        V\        4      '       g#   VP                  4       p\        W3^,           4      p\        V\        4      '       d   \	        RV.4      p\
        SV `  V\        V4      4       R# )zT
Ensure that when `(style_str, 'long string')` is set, the string will be
exploded.
zList[_T]N)
isinstancer6   	__index__tupler   r&   r3   r   )r   r*   r0   	int_indexr'   s   &&& r   r3   r4   ,   s\     %'')I)]3EeU##eW-EE#9%#@Ar   r   )__name__
__module____qualname____firstlineno____doc__explodedr    r   r-   r	   r3   __static_attributes____classcell__)r'   s   @r   r   r      sM     H4 4"
 G GI IB Br   r   c                    V ^8  d   QhRRRR/# )r   	fragmentsr$   r   z_ExplodedList[_T]r   )r   s   "r   r   r   <   s     ! !l !7H !r   c                    \        V \        4      '       d   V # . pV  F#  vr#pV F  pVP                  W%.VO54       K  	  K%  	  \        V4      # )a  
Turn a list of (style_str, text) tuples into another list where each string is
exactly one character.

It should be fine to call this function several times. Calling this on a
list that is already exploded, is a null operation.

:param fragments: List of (style, text) tuples.
)r:   r   r    )rG   resultstylestringrestcs   &     r   r   r   <   sV     )]++F )AMM5+d+,  !*   r   N)
__future__r   typingr   r   r   r   r   r	   "prompt_toolkit.formatted_text.baser
   typing_extensionsr   __all__r   r   r   r   r   r   <module>rS      sJ    " I I C/  T-.(BDH (BV!r   