| Server IP : 217.160.0.135 / Your IP : 216.73.217.25 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/prompt_toolkit/layout/__pycache__/ |
Upload File : |
�
�ÏcV� � � � d Z ddlZddlmZmZ ddlmZmZmZm Z m
Z
mZmZm
Z
mZ ddlmZ ddlmZ ddlmZ ddlmZmZmZ dd lmZmZmZ dd
lmZmZ ddl m!Z! ddl"m#Z#m$Z$ d
dl%m&Z& erd
dl'm(Z(m)Z) g d�Z* G d� de�� � Z+ee,ge,f Z-ee,ge,f Z. G d� d� � Z/ G d� d� � Z0 G d� de+� � Z1 G d� de+� � Z2 G d� de2� � Z3 G d� de+� � Z4 G d � d!e+� � Z5 G d"� d#e+� � Z6 G d$� d%e+� � Z7 G d&� d'e+� � Z8 G d(� d)e8� � Z9 G d*� d+e+� � Z: G d,� d-e+� � Z; G d.� d/e+� � Z< G d0� d1e+� � Z= G d2� d3e+� � Z> G d4� d5e+� � Z? G d6� d7e+� � Z@ G d8� d9e+� � ZAd:e e+ d;e+fd<�ZB G d=� d>e+� � ZCdS )?z�
Processors are little transformation blocks that transform the fragments list
from a buffer before the BufferControl will render it to the screen.
They can insert fragments before or after, or highlight fragments by replacing the
fragment types.
� N)�ABCMeta�abstractmethod) �
TYPE_CHECKING�Callable�Hashable�List�Optional�Tuple�Type�Union�cast)�get_app)�SimpleCache)�Document)�FilterOrBool� to_filter�vi_insert_multiple_mode)�AnyFormattedText�StyleAndTextTuples�to_formatted_text)�fragment_list_len�fragment_list_to_text)�SearchDirection)�to_int�to_str� )�explode_text_fragments)�
BufferControl� UIContent)� Processor�TransformationInput�Transformation�DummyProcessor�HighlightSearchProcessor�#HighlightIncrementalSearchProcessor�HighlightSelectionProcessor�PasswordProcessor�!HighlightMatchingBracketProcessor�DisplayMultipleCursors�BeforeInput�ShowArg�
AfterInput�AppendAutoSuggestion�ConditionalProcessor�ShowLeadingWhiteSpaceProcessor�ShowTrailingWhiteSpaceProcessor�
TabsProcessor�ReverseSearchProcessor�DynamicProcessor�merge_processorsc �2 � e Zd ZdZe dd�� � ZdS ) r zt
Manipulate the fragments for a given line in a
:class:`~prompt_toolkit.layout.controls.BufferControl`.
�transformation_inputr! �returnr"