HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/rich/__pycache__/__main__.cpython-311.pyc
�

�;f� �	���ddlZddlZddlmZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZGd�d��Zdefd�Ze dk�r�e	ej!��d���Z"e��Z#e��Z$e"�%e#��e&e��e$z
dzd��Z'ej!��e"_(e��Z$e"�%e#��e&e��e$z
dzd��Z)e	d���Z*e*�%e#��e%de'�d���e%de)�d���ddl+m,Z,e	��Z"ej-d���Z.e.�/dd���e.�/d� ��e.�0d!d"��e.�0d#d$��ej1d%��Z2ej-d&���Z3e3�/��e3�/d� ��e3�0e2e.��e"�%e,j4e3ej5d'd(d)�*��d+�,��dSdS)-�N)�process_time)�box)�Color)�Console�ConsoleOptions�Group�RenderableType�RenderResult)�Markdown)�Measurement)�Pretty)�Segment)�Style)�Syntax)�Table)�Textc�6�eZdZdededefd�Zdddedefd�ZdS)�ColorBox�console�options�returnc	#��K�tdd��D]�}t|j��D]�}||jz}d|dzdzz}tj||d��\}}}	tj||dzd��\}
}}t	j|dz|dz|	dz��}
t	j|
dz|dz|dz��}t
dt||
�	����V���t
j��V���dS)
Nr�g�������?gffffff�?g�?g�Q���?�u▄)�color�bgcolor)	�range�	max_width�colorsys�
hls_to_rgbr�from_rgbrr�line)�selfrr�y�x�h�l�r1�g1�b1�r2�g2�b2rrs               �@/opt/alt/python311/lib/python3.11/site-packages/rich/__main__.py�__rich_console__zColorBox.__rich_console__s�����q�!���		!�		!�A��7�,�-�-�
J�
J����)�)���A��E�S�=�)��%�0��A�s�;�;�
��B��%�0��A��L�#�F�F�
��B���.��c��2��8�R�#�X�F�F����r�C�x��c��2��8�D�D���e�U���%H�%H�%H�I�I�I�I�I�I��,�.�.� � � � �		!�		!�rc�,�td|j��S)N�)rr)r#rrs   r.�__rich_measure__zColorBox.__rich_measure__!s���1�g�/�0�0�0r0N)	�__name__�
__module__�__qualname__rrr
r/rr3�r0r.rrsl������!��!�)7�!�	�!�!�!�!�1� �1�+9�1�	�1�1�1�1�1�1r0rrc�X�tjdd���}d|_|�dddd���|�d	��td
dddd���}|�d
t����|�d|��|�dd��d}tjdd���}d|_|�t|dd���t|dd���t|dd���t|dd�����|�dttj	d��|����dtdtdtfd �}|�d!d"��d#}|�d$|��tdddd%d&gtj�'��}|�d(dd�)��|�d*d�+��|�d,d-dd�.��|�d/d0dd�.��|�d1d2d3d4��|�d5d6d3d7��|�d8d9d:d;��|�d<d=d>d?��|�d@|��dA}dBdCgdDdE�}|�dF|t|dGdd�H��t|d�I������dJ}	|�dK|dL|	zt|	������|�dMdN��|S)Oz8Get a renderable that demonstrates a number of features.r2T)�padding�pad_edgez
Rich features�Feature�centerzbold red)�no_wrap�justify�style�
DemonstrationNF)r�expand�show_header�	show_edger:u�✓ [bold green]4-bit color[/]
✓ [bold blue]8-bit color[/]
✓ [bold magenta]Truecolor (16.7 million)[/]
✓ [bold yellow]Dumb terminals[/]
✓ [bold cyan]Automatic color conversion�Colors�Stylesz�All ansi styles: [bold]bold[/], [dim]dim[/], [italic]italic[/italic], [underline]underline[/], [strike]strikethrough[/], [reverse]reverse[/], and even [blink]blink[/].z�Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in metus sed sapien ultricies pretium a at justo. Maecenas luctus velit et auctor maximus.)r9�collapse_padding�left�green)r>r?�yellow�right�blue�full�redrz[Word wrap text. Justify [green]left[/], [yellow]center[/], [blue]right[/] or [red]full[/].
�renderable1�renderable2rc��tdddd���}|�dd���|�dd���|�||��|S)NFT)rBr:rrA�1r2)�ratio�2)r�
add_column�add_row)rNrO�tables   r.�
comparisonz"make_test_card.<locals>.comparisonZsc���%�%�T�$�O�O�O��
����A��&�&�&�
����A��&�&�&�
�
�
�k�;�/�/�/��r0zAsian
language
supportu!:flag_for_china:  该库支持中文,日文和韩文文本!
:flag_for_japan:  ライブラリは中国語、日本語、韓国語のテキストをサポートしています
:flag_for_south_korea:  이 라이브러리는 중국어, 일본어 및 한국어 텍스트를 지원합니다z�[bold magenta]Rich[/] supports a simple [i]bbcode[/i]-like [b]markup[/b] for [yellow]color[/], [underline]style[/], and emoji! :+1: :apple: :ant: :bear: :baguette_bread: :bus: �Markup�none�dim)rCrBrA�
row_stylesrz[green]Date)r?r=z[blue]Title)r?z[cyan]Production Budget�cyan)r?r>r=z[magenta]Box Office�magentazDec 20, 2019z Star Wars: The Rise of Skywalkerz$275,000,000z$375,126,118zMay 25, 2018z[b]Solo[/]: A Star Wars Storyz$393,151,347zDec 15, 2017z!Star Wars Ep. VIII: The Last Jediz$262,000,000zold]$1,332,539,889[/bold]zMay 19, 1999z-Star Wars Ep. [b]I[/b]: [i]The phantom Menacez$115,000,000z$1,027,044,677�Tablesa~def iter_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
    """Iterate and generate a tuple with a flag for last value."""
    iter_values = iter(values)
    try:
        previous_value = next(iter_values)
    except StopIteration:
        return
    for value in iter_values:
        yield False, previous_value
        previous_value = value
    yield True, previous_valueg��?$	@)z
Paul AtreideszVladimir HarkonnenzThufir Hawat)FTN)�foo�atomicz%Syntax
highlighting
&
pretty
printing�python3)�line_numbers�
indent_guides)rcz�# Markdown

Supports much of the *markdown* __syntax__!

- Headers
- Basic formatting: **bold**, *italic*, `code`
- Block quotes
- Lists, and more...
    rz[cyan]z+more!zBProgress bars, columns, styled logging handler, tracebacks, etc...)r�grid�titlerTrUrr:rr�from_markupr	r�SIMPLErr
r)
rV�color_table�lorem�lorem_tablerW�markup_example�
example_table�code�pretty_data�markdown_examples
          r.�make_test_cardrp's8���J�q�4�0�0�0�E�!�E�K�	���Y��h�j��Q�Q�Q�	���_�%�%�%����������K����
8�	�
�
�	�	�	�
�M�M�(�K�(�(�(�	�M�M��	r����

j�E��*�Q��>�>�>�K� �K������U�F�'�2�2�2��U�H�H�5�5�5��U�G�6�2�2�2��U�F�%�0�0�0�	���
�M�M��
���r�
�
�
�		
�	
�������^��PU�����
�M�M�"�	n����	<��
�M�M�(�N�+�+�+������E�?��J����M����]�'�4��H�H�H����]�&��9�9�9����!����	�����������	��������*���	�������'���	�������+��%�	�������7���	���
�M�M�(�M�*�*�*�"�D�
�
�
�&�
�
�K�
�M�M�3��
��4���T�J�J�J��;�d�3�3�3�	
�	
����	��
�M�M��J�J�x�*:�:�H�EU�<V�<V�W�W����
�M�M��P�����Lr0�__main__T)�file�force_terminalg@�@r2)�recordzrendered in zms (cold cache)zms (warm cache))�Panel)r9rHrJ)r?r>)r=�
TextualizezH[u blue link=https://github.com/textualize]https://github.com/textualize�TwitterzL[u blue link=https://twitter.com/willmcgugan]https://twitter.com/willmcguganz�We hope you enjoy using Rich!

Rich is maintained with [red]:heart:[/] by [link=https://www.textualize.io]Textualize.io[/]

- Will McGugan�)r2rxz"[b red]Thanks for trying out Rich!�bright_blue)rr9re�border_styler<)r>)6r�io�timer�richr�
rich.colorr�rich.consolerrrr	r
�
rich.markdownr�rich.measurer�rich.prettyr
�rich.segmentr�
rich.styler�rich.syntaxr�
rich.tabler�	rich.textrrrpr4�StringIOr�	test_card�start�print�round�pre_cache_takenrr�taken�c�
rich.panelrurd�sponsor_messagerTrUrf�
intro_message�message�fit�ROUNDEDr7r0r.�<module>r�s�������	�	�	�	�������������������U�U�U�U�U�U�U�U�U�U�U�U�U�U�"�"�"�"�"�"�$�$�$�$�$�$������� � � � � � �������������������������1�1�1�1�1�1�1�1�*g��g�g�g�g�T�z����g�
�R�[�]�]�����G��� � �I�
�L�N�N�E��M�M�)�����e�\�\�^�^�e�3�v�=�q�A�A�O��2�;�=�=�G�L��L�N�N�E��M�M�)�����E�<�<�>�>�E�)�V�3�Q�7�7�E���t����A��G�G�I����	�E�
9��
9�
9�
9�:�:�:�	�E�
/��
/�
/�
/�0�0�0� � � � � � ��g�i�i�G� �e�j��+�+�+�O����W�g��>�>�>����t��,�,�,�����R��������V����
%�D�$�	���M��e�j��#�#�#�G����������t��$�$�$��O�O�M�?�3�3�3��M�M���	�����6�&�	
�	
�	
���	�	�	�	�	�o�r0