HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib64/python3.10/site-packages/click/__pycache__/_textwrap.cpython-310.pyc
o

��hx�@sBddlmZddlmZddlZddlmZGdd�dej�ZdS)�)�annotationsN)�contextmanagerc@s.eZdZdd	d
�Zeddd��Zddd�ZdS)�TextWrapper�reversed_chunks�	list[str]�cur_line�cur_len�int�width�return�Nonec	Csdt||d�}|jr%|d}|d|�}||d�}|�|�||d<dS|s0|�|���dSdS)N����)�max�break_long_words�append�pop)	�selfrrrr
�
space_left�last�cut�res�r�E/usr/local/CyberPanel/lib/python3.10/site-packages/click/_textwrap.py�_handle_long_word	s
�zTextWrapper._handle_long_word�indent�str�cabc.Iterator[None]ccsR�|j}|j}|j|7_|j|7_zdVW||_||_dS||_||_w)N)�initial_indent�subsequent_indent)rr�old_initial_indent�old_subsequent_indentrrr�extra_indents�
�zTextWrapper.extra_indent�textcCsJg}t|���D]\}}|j}|dkr|j}|�|�|���qd�|�S)Nr�
)�	enumerate�
splitlinesrrr�join)rr#�rv�idx�linerrrr�indent_only(s
zTextWrapper.indent_onlyN)
rrrrrr	r
r	rr)rrrr)r#rrr)�__name__�
__module__�__qualname__rrr"r+rrrrrs

r)	�
__future__r�collections.abc�abc�cabc�textwrap�
contextlibrrrrrr�<module>s