403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/_pyrepl/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/_pyrepl/__pycache__/layout.cpython-315.opt-1.pyc
R
>lqjh"c��Qs]QHGs]QHGs]QHGs]QHGsG	s	]QH(GsGs\P	P	Q5QQ22s
\P	P	Q5Q	Q
22s\P	P	Q5QQ22s\P	P	Q5Q
Q22sQQksP!)z:Wrap content lines to the terminal width before rendering.)�annotations)�	dataclass)�Self)�ContentFragment�ContentLine)�CursorXY�
ScreenInfoRow)�frozen�slotsc�z�\sQs]s"QsQ\Q$Q\Q$]sQ\Q$]sQ\Q$\QQ	k2s	\Q
Qk2s
QsP!)
�	LayoutRowuMetadata for one physical screen row.

For the row ``>>> def greet(name):``::

    >>> def greet(name):
    ╰─╯ ╰──────────────╯
     4    char_widths=(1,1,1,…)  ← 16 entries
          buffer_advance=17      ← includes the newline
�int�prompt_width�tuple[int, ...]�char_widths�suffix_width�buffer_advancec��U]6�cPgQQ-!���returnr�)�formats"�#C:\Python315\\Lib\_pyrepl\layout.py�__annotate__�LayoutRow.width.__annotate__s��M�M�s�M�c	�r�UO[UO2*UO*!�N)r
�sumrr��selfs&r�width�LayoutRow.widths)��� � �3�t�'7�'7�#8�8�4�;L�;L�L�Lrc��U]6�cPgQQ-!)rrrr)rs"rr�!LayoutRow.screeninfo.__annotate__"s��)�)�M�)rc	��[UO2oUO%cUOUO2UOU1!r)�listrr�appendr
)r �widthss& r�
screeninfo�LayoutRow.screeninfo!sA���d�&�&�'�������M�M�$�+�+�,�� � �&�(�(rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__annotations__rr�propertyr!r)�__static_attributes__rrrrrsS������ � ��L�#���N�C��
�M��M��)��)rrc��\sQs])s"QsQ\Q$\QQk2s\QQk2s	QQ	ks
Q
QksQQ
ksQQks
QsP!)�	LayoutMapuGMapping between buffer positions and screen coordinates.

Single source of truth for cursor placement.  Given::

    >>> def greet(name):     ← row 0, buffer_advance=17
    ...     return name      ← row 1, buffer_advance=15
                   ▲cursor

``pos_to_xy(31)`` → ``(18, 1)``:  prompt width 4 + 14 body chars.
ztuple[LayoutRow, ...]�rowsc��U]6�cPgQQ-!)rrrr)rs"rr�LayoutMap.empty.__annotate__8s��(�(�d�(rc	�*�U[]Q212!)�r)r)�clss&r�empty�LayoutMap.empty7s���I�a��$�&�'�'rc��U]6�cPgQQ-!)rrzlist[ScreenInfoRow]r)rs"rr�!LayoutMap.screeninfo.__annotate__<s��5�5�/�5rc	�Z�UOTt,tFDpOMJ	to!ttohr)r5r))r �rows& rr)�LayoutMap.screeninfo;s ��*.�)�)�4�)�3���)�4�4��4s�(c�"�U]6�cPgQQQQ-!)r�yrrr)rs"rr�!LayoutMap.max_column.__annotate__?s��"�"�C�"�C�"rc	�>�UOU*O!r)r5r!)r rCs&&r�
max_column�LayoutMap.max_column?s���y�y��|�!�!�!rc��U]6�cPgQQ-!rr)rs"rr�LayoutMap.max_row.__annotate__Bs��"�"��"rc	�<�[UO2]*
!)�)�lenr5rs&r�max_row�LayoutMap.max_rowBs���4�9�9�~��!�!rc�"�U]6�cPgQQQQ-!)r�posrrrr)rs"rr� LayoutMap.pos_to_xy.__annotate__Es��J�J�S�J�X�Jrc	�Z�UO%fQ!So[UO2FD�vq4U[UO26:cU]6XcGUO%f5UO]6Xc$U[UO2]*
6cJlUO
oUOPUFDoVV*
oJ
	VS1t!V$O*oJ�	UOP*oUOUO*
[UO2]*
1!)r9)r9r9)r5�	enumeraterLrrr
r!r)r rP�	remainingrCr@�xr!�last_rows&&      r�	pos_to_xy�LayoutMap.pos_to_xyEs����y�y�y��K��	���	�	�*�F�A��C����0�0���>�#�/�/�/�c�>P�>P�TU�>U�Z[�^a�bf�bk�bk�^l�op�^p�Zp���$�$�� �_�_�Z�i�8�E��J�A�9��t���+�+�+�I�+��9�9�R�=���~�~�� 5� 5�5�s�4�9�9�~��7I�I�Irc�&�U]6�cPgQQQQQQ-!)rrUrrCrr)rs"rr� LayoutMap.xy_to_pos.__annotate__Ys!����3��3��3�rc	��UO%f]!]oUOPUFDoV4O*
oJ	UOU*oUOoUOo]o[	U2FDRvqxVQ6�c%VgPFDo	U	]6XcU]*
oJL	Ut!U]6XcU]*
oJAVX*
oU]*
oJT	U!)r9)r5rr
rrS)
r rUrCrPr@�cur_xr�ir!�trailing_widths
&&&       r�	xy_to_pos�LayoutMap.xy_to_posYs����y�y�y�����9�9�R�a�=�C��%�%�%�C�!��i�i��l��� � ���o�o��
��!�+�.�H�A��z�&1�"�o�N�%��*��q����	'6�
�
���z��q�����N�E��1�H�C�/��
rr)r+r,r-r.r/r0�classmethodr;r1r)rFrMrWr_r2rrrr4r4)sQ���	� ���(��(��5��5�"�"�J�(�rr4c��\sQs]vs"QsPsQ\Q$]sQ\Q$Q
sQ\Q$Q
s	Q\Q	$Ps
Q\Q
$]sQ\Q$]sQ\Q$Q
s
P!)�
WrappedRowu)One physical screen row after wrapping, ready for rendering.

When a line overflows the terminal width, it splits into
multiple rows with a ``\`` continuation marker::

    >>> x = "a very long li\   ← suffix="\", suffix_width=1
    ne that wraps"              ← prompt_text="" (continuation)
�str�prompt_textrr
ztuple[ContentFragment, ...]�	fragmentsr�
layout_widths�suffixrrr)r+r,r-r.r/rer0r
rfrgrhrrr2rrrrcrcvsR�����K����L�#��-/�I�*�/�%'�M�?�'��F�C���L�#���N�C�rrcc�8�\sQs]�s"Q\Q$Q\Q$Q\Q$QsP!)�LayoutResultztuple[WrappedRow, ...]�wrapped_rowsr4�
layout_mapr�line_end_offsetsr)r+r,r-r.r0r2rrrrjrj�s���(�(���%�%rrjc�*�U]6�cPgQQQQQQQQ-!)r�linesztuple[ContentLine, ...]r!r�start_offsetrrjr)rs"rr�!layout_content_lines.__annotate__�s6��|�|�"�|��|��|��	|rc�"�U]6:c[Q[Q2Q2!So,o,o,oSFCD�o[UOO2oUO
OFDMo	UOU2UO[U	1Q52UO[]Q]Q52JO	UO
Oo
UO
Oo[UO2o[9PIc,QU2DMJ	3LQU22o
U
%c[U
2U*U6c�U[U2U**
oUOU2UO[U
UUU
[U2U*Q52UO[UU
[U2U*Q52CJ�S
oSo]o[U2o]o]oU
UPFD-oUU*U*U6�cLU]*
oUU*
oJ/	U]6Xc
UU6c]oUU*U6�oU%cUUU**
oPo]oUU*oLUU*
oQo]oSoUU*oUUUoU
UUoUOU2UO[UUUUUUUQ52UO[UUUUQ52SoPo]oU%fCJCJ�	[[U2[[U22[U22!)	uWrap content lines to fit *width* columns.

A short line passes through as one ``WrappedRow``; a long line is
split at the column boundary with ``\`` markers::

    >>> short = 1           ← one WrappedRow
    >>> x = "a long stri\  ← two WrappedRows, first has suffix="\"
    ng"
)rf)rc3�D�SF �DpOw�	J	P!3hr)r!)�.0�fragments& r�	<genexpr>�'layout_content_lines.<locals>.<genexpr>�s��4���4�x�N�N�4�s� )rer
rfrgr�\)rer
rfrgrhrr)rrr)rjr4r�source�has_newline�prompt�
leading_linesr'rcr�textr!�tuple�bodyrrL)ror!rp�offsetrk�layout_rowsrm�line�newline_advance�leadingrer
r�body_widths�current_prompt�current_prompt_width�start�total�index_to_wrap_before�column�
char_width�at_line_endrhrr�end�
row_fragments�
row_widthss&&&                         r�layout_content_linesr��s��
��z��B�	�"�
�r�2�2�
�F�%'�L�#%�K�"$�����d�k�k�5�5�6���{�{�0�0�G��#�#�F�+�����&�j��
�

���y��B�q�A�B�1��k�k�&�&���{�{�(�(���T�Y�Y����e�@�4�@�e�e�@�4�@�@���s�;�/�,�>�%�G��c�$�i�/�1�1�F��#�#�F�+����� +�!-�"�"-�#&�t�9��#>��
�
���� ��#&�t�9��#>��
�
�%��+�����D�	���#$� ��F�)�%�&�1�
��J�&�)=�=��F��$��)�$��*�$��	2�$�q�(�U�U�]�'(�$� �#7�7�E�A�K���.��@�@���� ��!5��!G���.�.���� ��!5���.�.�C� ��s�O�M�$�U�3�/�J��#�#�F�+����� .�!5�+�",�!�!-�#1��

�
����(��!-�#1�	�
��E��N�#$� ��{��A�D�
�l���%��$�%�
����r)r/�
__future__r�dataclassesr�typingr�contentrr�typesrrrr4rcrjr�rrr�<module>r�s���@�"�!��1�*��$�d�#�)�)�$�)�8�$�d�#�I�I�$�I�X�$�d�#���$��$�$�d�#�&�&�$�&�|r

Youez - 2016 - github.com/yon3zu
LinuXploit