§
    ½ÞMh5  ã                  ó‚   — d dl mZ d dlmZ d dlmZmZ d dlmZ erd dl	m
Z
 ddgZeegdf         Z G d	„ d¦  «        Zd
S )é    )Úannotations©Údefaultdict)ÚTYPE_CHECKINGÚCallable)Ú
MouseEvent)ÚNotImplementedOrNoneÚMouseHandlerÚMouseHandlersr	   c                  ó"   — e Zd ZdZdd„Zdd„ZdS )r   z?
    Two dimensional raster of callbacks for mouse events.
    ÚreturnÚNonec                ó>   ‡— dd„Št          ˆfd„¦  «        | _        d S )NÚmouse_eventr   r   r	   c                ó   — t           S )zD
            :param mouse_event: `MouseEvent` instance.
            )ÚNotImplemented)r   s    úd/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/prompt_toolkit/layout/mouse_handlers.pyÚdummy_callbackz.MouseHandlers.__init__.<locals>.dummy_callback   s
   € õ "Ð!ó    c                 ó(   •— t          ˆ fd„¦  «        S )Nc                 ó   •— ‰ S )N© ©r   s   €r   ú<lambda>z:MouseHandlers.__init__.<locals>.<lambda>.<locals>.<lambda>&   s   ø€ °N€ r   r   r   s   €r   r   z(MouseHandlers.__init__.<locals>.<lambda>&   s   ø€ ¥Ð,BÐ,BÐ,BÐ,BÑ CÔ C€ r   )r   r   r   r	   )r   Úmouse_handlers)Úselfr   s    @r   Ú__init__zMouseHandlers.__init__   s<   ø€ ð	"ð 	"ð 	"ð 	"õ ÐCÐCÐCÐCÑDÔDð 	ÔÐÐr   Úx_minÚintÚx_maxÚy_minÚy_maxÚhandlerú,Callable[[MouseEvent], NotImplementedOrNone]c                óv   — t          ||¦  «        D ]'}| j        |         }t          ||¦  «        D ]}|||<   ŒŒ(dS )z1
        Set mouse handler for a region.
        N)Úranger   )	r   r   r    r!   r"   r#   ÚyÚrowÚxs	            r   Úset_mouse_handler_for_rangez)MouseHandlers.set_mouse_handler_for_range)   s]   € õ u˜eÑ$Ô$ð 	!ð 	!ˆAØÔ% aÔ(ˆCå˜5 %Ñ(Ô(ð !ð !Ø A‘ð!ð	!ð 	!r   N)r   r   )r   r   r    r   r!   r   r"   r   r#   r$   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r*   r   r   r   r   r      sF   € € € € € ðð ð
ð 
ð 
ð 
ð !ð !ð !ð !ð !ð !r   N)Ú
__future__r   Úcollectionsr   Útypingr   r   Úprompt_toolkit.mouse_eventsr   Ú'prompt_toolkit.key_binding.key_bindingsr	   Ú__all__r
   r   r   r   r   ú<module>r5      sÃ   ðØ "Ð "Ð "Ð "Ð "Ð "à #Ð #Ð #Ð #Ð #Ð #Ø *Ð *Ð *Ð *Ð *Ð *Ð *Ð *à 2Ð 2Ð 2Ð 2Ð 2Ð 2àð MØLÐLÐLÐLÐLÐLð Øð€ð ˜˜Ð&<Ð<Ô=€ð$!ð $!ð $!ð $!ð $!ñ $!ô $!ð $!ð $!ð $!r   