Ë
    ˆúh5  ã                  ót   — 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y
)é    )Úannotations©Údefaultdict)ÚTYPE_CHECKINGÚCallable)Ú
MouseEvent)ÚNotImplementedOrNoneÚMouseHandlerÚMouseHandlersr	   c                  ó8   — e Zd ZdZdd„Z	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)r   z?
    Two dimensional raster of callbacks for mouse events.
    c                ó4   ‡— dd„Št        ˆfd„«      | _        y )Nc                ó   — t         S )zD
            :param mouse_event: `MouseEvent` instance.
            )ÚNotImplemented)Úmouse_events    ú_/var/www/html/backend/venv/lib/python3.12/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Ó C€ r   )r   r   Úreturnr	   )r   Úmouse_handlers)Úselfr   s    @r   Ú__init__zMouseHandlers.__init__   s   ø€ ó	"ô ÓCÓDð 	Õr   c                óp   — t        ||«      D ]'  }| j                  |   }t        ||«      D ]  }|||<   Œ	 Œ) y)z1
        Set mouse handler for a region.
        N)Úranger   )	r   Úx_minÚx_maxÚy_minÚy_maxÚhandlerÚyÚrowÚxs	            r   Úset_mouse_handler_for_rangez)MouseHandlers.set_mouse_handler_for_range)   sI   € ô u˜eÓ$ò 	!ˆAØ×%Ñ% aÑ(ˆCä˜5 %Ó(ò !Ø A’ñ!ñ	!r   N)r   ÚNone)r   Úintr    r)   r!   r)   r"   r)   r#   z,Callable[[MouseEvent], NotImplementedOrNone]r   r(   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r'   r   r   r   r   r      sK   „ ñó
ð !àð!ð ð!ð ð	!ð
 ð!ð >ð!ð 
ô!r   N)Ú
__future__r   Úcollectionsr   Útypingr   r   Úprompt_toolkit.mouse_eventsr   Ú'prompt_toolkit.key_binding.key_bindingsr	   Ú__all__r
   r   r   r   r   ú<module>r4      sD   ðÝ "å #ß *å 2áÝLð Øð€ð ˜˜Ð&<Ð<Ñ=€÷$!ò $!r   