+
    iL                       ^ RI Ht ^ RIt^ RIHt ^RIHt ^RIHtH	t	 ]P                  ! R4      tR R ltRR	 R
 llt]R8X  d}   ^RIHt ]! ^
R7      t]P#                  R4       ]! ]	! R^
4      4       ]! ^R7      t]P%                  4        ]P#                  R4       ]P%                  4        ]P#                  R4       R# R# )    )annotationsN)Iterable)	loop_last)cell_len
chop_cellsz	\s*\S+\s*c                    V ^8  d   QhRRRR/# )   textstrreturnzIterable[tuple[int, int, str]] )formats   "]/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/_wrap.py__annotate__r      s     . . .6 .    c              #     "   ^ p\         P                  W4      pVeA   VP                  4       w  r4VP                  ^ 4      pW4V3x  \         P                  W4      pKD  R# 5i)zYields each word from the text as a tuple
containing (start_index, end_index, word). A "word" in this context may
include the actual word and any whitespace to the right.
N)re_wordmatchspangroup)r
   position
word_matchstartendwords   &     r   wordsr      s\     
 Ht.J

 __&
"$]]4-
	 !s   AA c               (    V ^8  d   QhRRRRRRRR/# )	r	   r
   r   widthintfoldboolr   z	list[int]r   )r   s   "r   r   r      s(     4 4c 4# 4T 4Y 4r   c                   . pVP                   p^ p\        p\        V 4       F  w  rxp	V! V	P                  4       4      p
W,
          pW8  pV'       d   WV! V	4      ,          pK@  W8  dy   V'       dW   \	        WR7      p\        V4       F9  w  rV'       d	   V! V4       V'       d   V! V4      pK'  V\        V4      ,          pK;  	  K  V'       d	   V! V4       V! V	4      pK  V'       g   K  V'       g   K  V! V4       V! V	4      pK  	  V# )ax  Given a string of text, and a width (measured in cells), return a list
of cell offsets which the string should be split at in order for it to fit
within the given width.

Args:
    text: The text to examine.
    width: The available cell width.
    fold: If True, words longer than `width` will be folded onto a new line.

Returns:
    A list of indices to break the line at.
r   )appendr   r   rstripr   r   len)r
   r   r    break_positionsr$   cell_offset	_cell_lenr   _endr   word_lengthremaining_spaceword_fits_remaining_spacefolded_wordlastlines   &&&             r   divide_liner1      s     "$O##FKI"4[T.-$3$B!$9T?*K " ",T"?K&/&<
 "5M*3D/K!SY.E '= u"+D/K u'oA )D r   __main__)Consoler#   z@12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345abcdefghijklmnopqrstuvwxyzuR   TextualはPythonの高速アプリケーション開発フレームワークですu4   アプリケーションは1670万色を使用でき)T)
__future__r   retypingr   _loopr   cellsr   r   compiler   r   r1   __name__consoler3   printruler   r   r   <module>r?      s    " 	   '
**\
".4n z BGMMTU	*12
67BGLLNMMfgLLNMMHI r   