+
    i
                    0  a 0 t $ ^ RIHt ^ RIHt ^ RIHt ^RIHt . ROt	R]
R&   ]! ]	 U UUu. uF$  w  r]! ]]! W^,           4      4       F  pVNK  	  K&  	  uppp 4      t]P                   tR]
R&   ]! R	4      R
 R l4       t]3R R llt]! R	R7      R R l4       tR R ltR R lt]R8X  d_   ]! ]! R4      4       ]! R^4       F  t]! ]4       K  	  ]! ^P^R4       F(  t]! ]! R]4      R,           4       ]! R],          4       K*  	  R# R# u uppp i )    )annotations)	lru_cache)Callable)CELL_WIDTHSzlist[tuple[int, int]]_SINGLE_CELL_UNICODE_RANGESzCallable[[str], bool]_is_single_cell_widthsi   c                    V ^8  d   QhRRRR/# )   textstrreturnint )formats   "]/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/cells.py__annotate__r   "   s     3 3# 3# 3    c                l    \        V 4      '       d   \        V 4      # \        \        \        V 4      4      # )a  Get the number of cells required to display text.

This method always caches, which may use up a lot of memory. It is recommended to use
`cell_len` over this method.

Args:
    text (str): Text to display.

Returns:
    int: Get the number of cells required to display text.
)r   lensummapget_character_cell_size)r   s   &r   cached_cell_lenr   !   s,     d##4ys*D122r   c               $    V ^8  d   QhRRRRRR/# )r
   r   r   	_cell_lenzCallable[[str], int]r   r   r   )r   s   "r   r   r   3   s"     3 33 3#7 3c 3r   c                    \        V 4      R8  d	   V! V 4      # \        V 4      '       d   \        V 4      # \        \        \        V 4      4      # )zGet the number of cells required to display text.

Args:
    text (str): Text to display.

Returns:
    int: Get the number of cells required to display text.
i   )r   r   r   r   r   )r   r   s   &&r   cell_lenr   3   sA     4y3d##4ys*D122r   )maxsizec                    V ^8  d   QhRRRR/# )r
   	characterr   r   r   r   )r   s   "r   r   r   D   s      s s r   c                   \        V 4      p\        p^ p\        V4      ^,
          pW4,           ^,          p W%,          w  rgpW8  d   V^,
          pMW8  d   V^,           pMVR8X  d   ^ # T# WC8  d    ^# W4,           ^,          pKQ  )zGet the cell size of a character.

Args:
    character (str): A single character.

Returns:
    int: Number of cells (0, 1 or 2) occupied by that character.
)ordr   r   )	r    	codepoint_tablelower_boundupper_boundindexstartendwidths	   &        r   r   r   C   s     IIFKf+/K&1,E
"ME!)K_!)K1..$ *q0r   c               $    V ^8  d   QhRRRRRR/# )r
   r   r   totalr   r   r   )r   s   "r   r   r   `   s!          C  C  r   c                   \        V 4      '       d-   \        V 4      pW!8  d   V RW,
          ,          ,           # V RV # V^ 8:  d   R# \        V 4      pW18X  d   V # W18  d   V RW,
          ,          ,           # ^ p\        V 4      p WE,           ^,          pV RV^,            p\        V4      pW^,           8X  d$   \        VR,          4      ^8X  d   VRR R,           # W8X  d   V# W8  d   TpKi  TpKm  )z?Set the length of a string to fit within given number of cells. N r"   )r   r   r   )	r   r-   size	cell_sizer)   r*   posbefore
before_lens	   &&       r   set_cell_sizer6   `   s     d##4y<#...FU|zIcU.///E
d)C {q iaf%
"xr
';q'@#2;$$MCEr   c               $    V ^8  d   QhRRRRRR/# )r
   r   r   r+   r   r   z	list[str]r   )r   s   "r   r   r      s&     "- "-
"-"- "-r   c                J   \         p. .pVP                  pVR,          P                  p^ pV  FN  pV! V4      pWh,           V8  p	V	'       d!   V! V.4       VR,          P                  pTpK>  V! V4       Wh,          pKP  	  V U
u. uF  p
RP                  V
4      NK  	  up
# u up
i )aL  Split text into lines such that each line fits within the available (cell) width.

Args:
    text: The text to fold such that it fits in the given width.
    width: The width available (number of cells).

Returns:
    A list of strings such that each string in the list has cell width
    less than or equal to the available width.
r0   r"   )r   appendjoin)r   r+   _get_character_cell_sizelinesappend_new_lineappend_to_last_linetotal_widthr    
cell_widthchar_doesnt_fitlines   &&         r   
chop_cellsrC      s      7 TEllO)**K	-i8
%2U:YK("')"2"2$K	*%K  ',,edBGGDMe,,,s   B __main__u   😽u]   这是对亚洲语言支持的测试。面对模棱两可的想法，拒绝猜测的诱惑。|xN))    ~   )      )   i  )ip  i  )i %  i%  )i (  i(  r"   )__conditional_annotations__
__future__r   	functoolsr   typingr   _cell_widthsr   r   __annotations__	frozensetr   chrrange_SINGLE_CELLS
issupersetr   r   r   r   r6   rC   __name__printrB   n)_start_endr    rL   s   000@r   <module>r\      sT   " "   %6 2   87LFS%q"9:I 	: 	7 1>0H0H - H 43 3" ;J 3  4 8 F"-J z	
!&
)*~  AB  Cd C2q"m  BC  D  GJ  J  	KcAg 	 gs   *D