
    wi                        U d dl mZ d dlmZ d dlmZ d dlmZmZ ej	        gZ
ded<    G d de          Z G d	 d
          ZdS )    )annotations)
wasm_utils)create_or_modify_pyi)EventListenerEventszlist[EventListener | str]BLOCKS_EVENTSc                       e Zd Z fdZ xZS )
BlocksMetac                d   t           D ][}t          |t                    r|nt          |                                          }|                    |           |j        ||<   \t                                          | |||          }t          j	        st          t          dt                      |S )N)
event_name)	componentBlocksEvents)r   
isinstancer   copyset_doclistenersuper__new__r   IS_WASMr   r   )clsnamebasesattrseventtriggercomponent_class	__class__s          d/root/.openclaw/workspace/chatterbox_venv_py311/lib/python3.11/site-packages/gradio/blocks_events.pyr   zBlocksMeta.__new__   s    " 	, 	,E e]335"e444dff	 
 OOdO+++"+E%LL''//#tUEBB! 	N ~}MMM    )__name__
__module____qualname__r   __classcell__)r   s   @r   r
   r
   
   s8                r   r
   c                      e Zd ZdZdS )r   z
    This class is used to hold the events for the Blocks component. It is populated dynamically
    by the BlocksMeta metaclass.
    N)r    r!   r"   __doc__ r   r   r   r      s         
 	Dr   r   N)
__future__r   gradior   gradio.component_metar   gradio.eventsr   r   loadr   __annotations__typer
   r   r&   r   r   <module>r.      s    " " " " " " "       6 6 6 6 6 6 / / / / / / / /,2K= 8 8 8 8        	 	 	 	 	 	 	 	 	 	r   