+
    in=                      a  0 t $ R t^ RIHt ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RIH
t
 ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIt^RIHt ^RIHt ^RIHt ^RIHt ^RIHt ^RIHt ^RIHt ^RIHt ]P>                  ! ] 4      t!R]"R&   R R lt# ! R R4      t$ ! R R]],          4      t% ! R  R!]%],          4      t&R" R# lt' ! R$ R%]],          4      t( ! R& R']%],          4      t) ! R( R)](],          4      t* ! R* R+]],          4      t+ ! R, R-]+],          4      t,R# ).a  Base implementation classes.

The public-facing ``Events`` serves as the base class for an event interface;
its public attributes represent different kinds of events.   These attributes
are mirrored onto a ``_Dispatch`` class, which serves as a container for
collections of listener functions.   These collections are represented both
at the class level of a particular ``_Dispatch`` class as well as within
instances of ``_Dispatch``.

)annotationsN)Any)cast)Dict)Generic)Iterator)List)Mapping)MutableMapping)Optional)overload)Tuple)Type)Union)_ClsLevelDispatch)_EmptyListener)_InstanceLevelDispatch)_JoinedListener)_ET)	_EventKey)util)Literalz8MutableMapping[str, List[Type[_HasEventsDispatch[Any]]]]_registrarsc                    V ^8  d   QhRRRR/# )   namestrreturnbool )formats   "~C:\Users\petid\OneDrive\Desktop\Maestro\MAESTRO CLAUDE\MAESTRO\maestro-backend\venv\Lib\site-packages\sqlalchemy\event\base.py__annotate__r"   2   s     & & & &    c                z    V P                  R 4      '       * ;'       d    V R8g  ;'       g    V P                  R4      # )_dispatch	_sa_event)
startswith)r   s   &r!   _is_event_namer)   2   s;     OOC  77TZ%7& &		%&r#   c                  &    ] tR t^<tRtR R ltRtR# )_UnpickleDispatchzySerializable callable that re-generates an instance of
:class:`_Dispatch` given a particular :class:`.Events` subclass.

c                    V ^8  d   QhRRRR/# )r   _instance_cls	Type[_ET]r   _Dispatch[_ET]r   )r    s   "r!   r"   _UnpickleDispatch.__annotate__B   s     O Oi ON Or#   c                	    VP                    FL  pR VP                  9   g   K  \        RVP                  R ,          P                  4      P	                  V4      u # 	  \        R4      h)r&   r/   z*No class with a 'dispatch' member present.)__mro____dict__r   r&   
_for_classAttributeError)selfr-   clss   && r!   __call___UnpickleDispatch.__call__B   sW     ((CS\\)$cll:&>&G&G*]+, ) !!MNNr#   r   N)__name__
__module____qualname____firstlineno____doc__r8   __static_attributes__r   r#   r!   r+   r+   <   s    
O Or#   r+   c                  T    ] tR t^Lt$ R	tR]R&   R R ltR R lt]R R l4       t	R	t
R
# )_DispatchCommonOptional[Type[_ET]]r-   c                    V ^8  d   QhRRRR/# r   other_DispatchCommon[_ET]r   _JoinedDispatcher[_ET]r   )r    s   "r!   r"   _DispatchCommon.__annotate__Q   s     $ $/ $4J $r#   c                	    \        4       hNNotImplementedErrorr6   rE   s   &&r!   _join_DispatchCommon._joinQ       !##r#   c                    V ^8  d   QhRRRR/# r   r   r   r   z_InstanceLevelDispatch[_ET]r   )r    s   "r!   r"   rH   T   s     $ $ $(C $r#   c                	    \        4       hrJ   rK   r6   r   s   &&r!   __getattr___DispatchCommon.__getattr__T   rP   r#   c                   V ^8  d   QhRR/# r   r   Type[_HasEventsDispatch[_ET]]r   )r    s   "r!   r"   rH   X   s     $ $6 $r#   c                	    \        4       hrJ   rK   r6   s   &r!   _events_DispatchCommon._eventsW   s    !##r#   r   N)r:   r;   r<   r=   	__slots____annotations__rN   rU   propertyr\   r?   r   r#   r!   rA   rA   L   s+    I&&$$ $ $r#   rA   c                     ] tR t^\t$ RtR&tR]R&   ]P                  ! 4       t	R]R&   R]R&   R	]R
&   R]R&   R]R&   R]R&    R'R R llt
R R lt]R R l4       tR R ltR R ltR R ltR R ltR R  ltR(R! R" lltR# R$ ltR%tR# ))	_Dispatcha  Mirror the event listening definitions of an Events class with
listener collections.

Classes which define a "dispatch" member will return a
non-instantiated :class:`._Dispatch` subclass when the member
is accessed at the class level.  When the "dispatch" member is
accessed at the instance level of its owner, an instance
of the :class:`._Dispatch` class is returned.

A :class:`._Dispatch` class is generated for each :class:`.Events`
class defined, by the :meth:`._HasEventsDispatch._create_dispatcher_class`
method.  The original :class:`.Events` classes remain untouched.
This decouples the construction of :class:`.Events` subclasses from
the implementation used by the event internals, and allows
inspecting tools like Sphinx to work in an unsurprising
way against the public API.

r-   _empty_listenersr   _active_historyz9MutableMapping[Type[_ET], Dict[str, _EmptyListener[_ET]]]_empty_listener_regzDict[str, _EmptyListener[_ET]]z	List[str]_event_namesrB   zType[_JoinedDispatcher[_ET]]_joined_dispatch_clsrY   r\   Nc                    V ^8  d   QhRRRR/# )r   parentzOptional[_Dispatch[_ET]]instance_clsrB   r   )r    s   "r!   r"   _Dispatch.__annotate__   s     ' '(' *'r#   c           	     	6   Wn         W n        V'       d"   Vf   Q h V P                  V,          V n        R # / V n        R #   \         dO    TP
                   Uu/ uF  pTP                  \        Y24      bK  	  Mu upi up;T n        T P                  T&    R # i ; irJ   )_parentr-   re   rc   KeyError_event_descriptorsr   r   )r6   ri   rj   lss   &&& r!   __init___Dispatch.__init__   s    
 )%%%(,(@(@(N% %'D!  
 %777 GG^B==7%(@(@ )s   ? BA87BBc                    V ^8  d   QhRRRR/# rR   r   )r    s   "r!   r"   rk      s     	 	 	(C 	r#   c                	     V P                   V,          p\        WP                  V4       V#   \         d    \	        T4      hi ; irJ   )rc   setattrr   rn   r5   )r6   r   rp   s   && r!   rU   _Dispatch.__getattr__   sH    	&&t,B D''2&I	  	' &&	's	   - Ac                   V ^8  d   QhRR/# )r   r   z Iterator[_ClsLevelDispatch[_ET]]r   )r    s   "r!   r"   rk      s     # #$D #r#   c              #  	N   "   V P                    F  p\        W4      x  K  	  R # 5irJ   )rf   getattr)r6   ks   & r!   ro   _Dispatch._event_descriptors   s"     ""A $"" #s   #%c               $    V ^8  d   QhRRRRRR/# r   	event_key_EventKey[_ET]kwr   r   Noner   )r    s   "r!   r"   rk      s!     5 5 5s 5t 5r#   c                	<    V P                   P                  ! V3/ VB # rJ   )r\   _listenr6   r~   r   s   &&,r!   r   _Dispatch._listen   s    ||##I444r#   c                    V ^8  d   QhRRRR/# )r   rj   r.   r   r/   r   )r    s   "r!   r"   rk      s     2 2y 2^ 2r#   c                	$    V P                  W4      # rJ   )	__class__)r6   rj   s   &&r!   r4   _Dispatch._for_class   s    ~~d11r#   c                    V ^8  d   QhRRRR/# )r   instancer   r   r/   r   )r    s   "r!   r"   rk      s     - -c -n -r#   c                	<    VP                   pV P                  V4      # rJ   )r   r4   )r6   r   rj   s   && r!   _for_instance_Dispatch._for_instance   s    ))|,,r#   c                    V ^8  d   QhRRRR/# rD   r   )r    s   "r!   r"   rk      s     	6 	6/ 	64J 	6r#   c                ^    RV P                   P                  9   g   Q hV P                  W4      # )zCreate a 'join' of this :class:`._Dispatch` and another.

This new dispatcher will dispatch events to both
:class:`._Dispatch` objects.

rg   )r   r3   rg   rM   s   &&r!   rN   _Dispatch._join   s-     &)@)@@@@((55r#   c                   V ^8  d   QhRR/# )r   r   zUnion[str, Tuple[Any, ...]]r   )r    s   "r!   r"   rk      s     : :7 :r#   c                	0    \        4       V P                  33# rJ   )r+   r-   r[   s   &r!   
__reduce___Dispatch.__reduce__   s     "T%7%7$999r#   c               $    V ^8  d   QhRRRRRR/# )r   rE   r/   only_propagater   r   r   r   )r    s   "r!   r"   rk      s$     
 
#
59
	
r#   c                    VP                    FO  p\        V\        4      '       d   K  \        WP                  4      P                  V 4      P                  W2R7       KQ  	  R# )zAPopulate from the listeners in another :class:`_Dispatch`
object.)r   N)ro   
isinstancer   ry   r   
for_modify_update)r6   rE   r   rp   s   &&& r!   r   _Dispatch._update   sN    
 **B"n--D''"--d3;; <  +r#   c                   V ^8  d   QhRR/# r   r   r   r   )r    s   "r!   r"   rk      s     ( ( (r#   c                	j    V P                    F"  pVP                  V 4      P                  4        K$  	  R # rJ   )ro   r   clear)r6   rp   s   & r!   _clear_Dispatch._clear   s'    ))BMM$%%' *r#   )rc   r-   rm   )rm   r-   r3   rc   rJ   )T)r:   r;   r<   r=   r>   r^   r_   weakrefWeakKeyDictionaryre   rq   rU   r`   ro   r   r4   r   rN   r   r   r   r?   r   r#   r!   rb   rb   \   s    * KI 	!!#   $ 54&&66**',	 # #52-	6:
( (r#   rb   c                    V ^8  d   QhRRRR/# )r   r7   rY   r   r   r   )r    s   "r!   r"   r"      s      9 d r#   c                    V P                   P                   F;  p\        V,          P                  V 4       \        V,          '       d   K4  \        V K=  	  R # rJ   )r&   rf   r   remove)r7   rz   s   & r!   _remove_dispatcherr      s8    \\&&Ac"1~~A 'r#   c            	          ] tR t^t$ R]R&    R]R&    ]P                  '       d   R R ltR R lt]	R	 R
 l4       t
]	RRRRRRRR/R R ll4       t]R R l4       t]	R R l4       tRtR# )_HasEventsDispatchrB   _dispatch_targetr/   r&   c                    V ^8  d   QhRRRR/# rR   r   )r    s   "r!   r"   _HasEventsDispatch.__annotate__   s    LLCL,GLr#   c                	    R # rJ   r   rT   s   &&r!   rU   _HasEventsDispatch.__getattr__   s    r#   c                   V ^8  d   QhRR/# r   r   )r    s   "r!   r"   r      s     P P$ Pr#   c                h    V P                  V P                  V P                  V P                  4       R# )zGIntercept new Event subclasses and create associated _Dispatch
classes.N)_create_dispatcher_classr:   	__bases__r3   r7   s   &r!   __init_subclass__$_HasEventsDispatch.__init_subclass__   s"     	$$S\\3==#,,Or#   c               $    V ^8  d   QhRRRRRR/# r   targetzUnion[_ET, Type[_ET]]
identifierr   r   zOptional[Union[_ET, Type[_ET]]]r   )r    s   "r!   r"   r      s$     $ $*$8;$	($r#   c                	    \        4       hrJ   rK   )r7   r   r   s   &&&r!   _accept_with_HasEventsDispatch._accept_with   s     "##r#   	propagateFinsertnamedasyncioc               0    V ^8  d   QhRRRRRRRRRRRR	/# 
r   r~   r   r   r   r   r   r   r   r   r   )r    s   "r!   r"   r      sF     	$ 	$!	$ 		$
 	$ 	$ 	$ 
	$r#   c               	    \        4       hrJ   rK   r7   r~   r   r   r   r   s   &&$$$$r!   r   _HasEventsDispatch._listen   s     "##r#   c               $    V ^8  d   QhRRRRRR/# )r   klassrY   dispatch_clsType[_Dispatch[_ET]]r   r/   r   )r    s   "r!   r"   r   	  s&      ,* 
r#   c                	@    V! R 4      V n         Wn        V P                   # rJ   )r&   r\   )r   r   s   &&r!   _set_dispatch _HasEventsDispatch._set_dispatch  s      &d+$~~r#   c               (    V ^8  d   QhRRRRRRRR/# )	r   	classnamer   baseszTuple[type, ...]dict_zMapping[str, Any]r   r   r   )r    s   "r!   r"   r     s,     7* 7*7*$47*=N7*	7*r#   c           
     D   \        V R4      '       d   V P                  P                  pM\        pV Uu. uF  p\	        V4      '       g   K  VNK  	  pp\        R\        RV,          V3RV/4      4      pWgn        V P                  W4      pVP                   F;  p\        W\        WV,          4      4       \        V,          P                  V 4       K=  	  VP                   F  p	\        V	\        4      '       g   K  V	\        Jg   K'  V	P                  P                  P                    F>  p
\        WP"                  V
4       VP                  P                  V
P"                  4       K@  	  K  	  \%        V RR4      '       dW   V P&                  pVf   Q h\        VR4      '       d#   RVP(                  9   d   \+        V 4      Vn        M\-        V 4      Vn        \        RVP.                  ,          \0        3RV/4      pWn        V\5        4       VP.                  &   R# u upi )	zNCreate a :class:`._Dispatch` class corresponding to an
:class:`.Events` class.r&   r   z
%sDispatchr^   r   N_slots_dispatchzJoined%s)hasattrr&   r   rb   r)   r   typerf   r   ru   r   r   appendr   
issubclassr\   ro   r   ry   r   r^   slots_dispatcher
dispatcherr:   _JoinedDispatcherrg   globals)r7   r   r   r   dispatch_baserz   event_namesr   dispatch_instsuper_rp   dispatch_target_clsr   s   &&&&         r!   r   +_HasEventsDispatch._create_dispatcher_class  s    3
##LL22M%M"'=%Q>!+<qq%="y( k*
 %0!))#<**AM&71X&FGN!!#& + #,,F&),,y1H ..11DDBM77B7 --44RWW= E - 3*D11"%"6"6&222+[99%)<)F)FF/?/D#,/9##,... +&

 -2) %*	%..!S >s   HHr   N)r:   r;   r<   r=   r_   typingTYPE_CHECKINGrU   r   classmethodr   r   staticmethodr   r   r?   r   r#   r!   r   r      s    )); LP $ $
 	$  		$
 	$ 	$ 	$ 	$   7* 7*r#   r   c                      ] tR tRt$ RtRtR]R&   R]R&   R]R&   R R	 ltR
 R ltR R lt	R R lt
]R R l4       tRtR# )r   iQ  z5Represent a connection between two _Dispatch objects.localri   r-   rF   rB   c                    V ^8  d   QhRRRR/# )r   r   rF   ri   r   )r    s   "r!   r"   _JoinedDispatcher.__annotate__Z  s     6 6)63G6r#   c                	T    Wn         W n        V P                   P                  V n        R # rJ   r   ri   r-   )r6   r   ri   s   &&&r!   rq   _JoinedDispatcher.__init__Z  s      
!ZZ55r#   c                   V ^8  d   QhRR/# )r   r   r   r   )r    s   "r!   r"   r   a  s     ; ;C ;r#   c                	J    V P                   V P                  V P                  33# rJ   )r   r   ri   r[   s   &r!   r   _JoinedDispatcher.__reduce__a  s    T[[ 9::r#   c                    V ^8  d   QhRRRR/# )r   r   r   r   z_JoinedListener[_ET]r   )r    s   "r!   r"   r   d  s       (< r#   c                	    \        V P                  V4      p\        V P                  VP                  V4      p\        WP                  V4       V# rJ   )ry   r   r   ri   r   ru   )r6   r   rp   jls   &&  r!   rU   _JoinedDispatcher.__getattr__d  s=     TZZ&T[["''26ggr"	r#   c               $    V ^8  d   QhRRRRRR/# r}   r   )r    s   "r!   r"   r   l  s!     4 4 4s 4t 4r#   c                	<    V P                   P                  ! V3/ VB # rJ   )ri   r   r   s   &&,r!   r   _JoinedDispatcher._listenl  s    {{""9333r#   c                   V ^8  d   QhRR/# rX   r   )r    s   "r!   r"   r   p  s     # #6 #r#   c                	.    V P                   P                  # rJ   )ri   r\   r[   s   &r!   r\   _JoinedDispatcher._eventso  s    {{"""r#   )r-   r   ri   Nr   )r:   r;   r<   r=   r>   r^   r_   rq   r   rU   r   r`   r\   r?   r   r#   r!   r   r   Q  sD    ?2I  &&6;4 # #r#   r   c            	          ] tR tRtRt]R R l4       t]RRRRRRR	R/R
 R ll4       t]R R l4       t]R R l4       t	Rt
R# )Eventsit  z>Define event listening functions for a particular target type.c               $    V ^8  d   QhRRRRRR/# r   r   )r    s   "r!   r"   Events.__annotate__x  s$      *8;	(r#   c                	N  a R  V3R llpR V3R llp\        SR4      '       d   V! V P                  P                  4      '       g\   V! \        V P                  P                  4      '       g5   V! \        4      '       d%   V! V P                  P                  4      '       d   S# R# )c                    V ^8  d   QhRRRR/# )r   types	Type[Any]r   r   r   )r    s   "r!   r"   )Events._accept_with.<locals>.__annotate__{  s     	F 	F	 	Fd 	Fr#   c                 x   < \         ;QJ d    V3R  lV  4       F  '       d   K   R# 	  R# ! V3R  lV  4       4      # )c              3  P   <"   T F  p\        SP                  V4      x  K  	  R # 5irJ   )r   r&   ).0tr   s   & r!   	<genexpr>;Events._accept_with.<locals>.dispatch_is.<locals>.<genexpr>|  s     Eu!z&//155us   #&FT)all)r   r   s   *r!   dispatch_is(Events._accept_with.<locals>.dispatch_is{  s,    3EuE33E3E3EuEEEr#   c                    V ^8  d   QhRRRR/# )r   r  r  r   r   r   )r    s   "r!   r"   r  ~  s     	) 	)) 	) 	)r#   c                   < \        R SP                  4      P                  p\        V\        4      '       d   \        R V4      P                  pK.  \        W4      # )rG   )r   r&   ri   r   r   )r  ri   r   s   & r!   dispatch_parent_is/Events._accept_with.<locals>.dispatch_parent_is~  sF    2FOODKKFV%6776?FFf((r#   r&   N)r   r&   r   r   r   )r7   r   r   r
  r  s   &f&  r!   r   Events._accept_withw  s    	F 	F	) 	) 6:&&CLL2233tS\\%;%;<< 122*3<<+A+ABB r#   r   Fr   r   r   c               0    V ^8  d   QhRRRRRRRRRRRR	/# r   r   )r    s   "r!   r"   r     sF     
 
!
 	

 
 
 
 

r#   c               	,    VP                  W#WER 7       R# ))r   r   r   r   N)base_listenr   s   &&$$$$r!   r   Events._listen  s     	e 	 	
r#   c                    V ^8  d   QhRRRR/# )r   r~   r   r   r   r   )r    s   "r!   r"   r     s       4 r#   c                	&    VP                  4        R # rJ   )r   )r7   r~   s   &&r!   _removeEvents._remove  s    r#   c                   V ^8  d   QhRR/# r   r   )r    s   "r!   r"   r     s      t r#   c                	:    V P                   P                  4        R # rJ   )r&   r   r   s   &r!   r   Events._clear  s    r#   r   N)r:   r;   r<   r=   r>   r   r   r   r  r   r?   r   r#   r!   r   r   t  s{    H 8 
  	

 
 
 
 
    r#   r   c                  ^    ] tR tRtRtR R lt]R R l4       t]R R l4       tR	 R
 ltRtR# )r   i  zDescriptor used by target classes to
deliver the _Dispatch class at the class level
and produce new _Dispatch instances for target
instances.

c                   V ^8  d   QhRR/# )r   eventsrY   r   )r    s   "r!   r"   dispatcher.__annotate__  s      < r#   c                	4    VP                   V n         Wn        R # rJ   r&   r  )r6   r  s   &&r!   rq   dispatcher.__init__  s    r#   c               $    V ^8  d   QhRRRRRR/# )r   objzLiteral[None]r7   r  r   r   r   )r    s   "r!   r"   r    s$     # # #'0#	#r#   c                	    R # rJ   r   r6   r$  r7   s   &&&r!   __get__dispatcher.__get__  s      #r#   c               $    V ^8  d   QhRRRRRR/# )r   r$  r   r7   r  r   rF   r   )r    s   "r!   r"   r    s    LL3LYL3GLr#   c                	    R # rJ   r   r&  s   &&&r!   r'  r(    s    ILr#   c               $    V ^8  d   QhRRRRRR/# r   r$  r   r7   r  r   r   )r    s   "r!   r"   r    s!      3 Y 3 r#   c                	    Vf   V P                   # V P                   P                  V4      p W1P                  R&   V#   \         d   p\	        RT: R24      ThR p?ii ; i)Nr&   ztarget z> doesn't have __dict__, should it be defining _slots_dispatch?)r&   r   r3   r5   	TypeError)r6   r$  r7   dispaes   &&&  r!   r'  r(    si    ;== }}**3/	'+LL$   	/25 	s   = AAAr!  N)	r:   r;   r<   r=   r>   rq   r   r'  r?   r   r#   r!   r   r     s:     # # L L r#   r   c                  "    ] tR tRtR R ltRtR# )r   i  c               $    V ^8  d   QhRRRRRR/# r,  r   )r    s   "r!   r"   slots_dispatcher.__annotate__  s!     	 	3 	Y 	3 	r#   c                	    Vf   V P                   # \        VR4      '       d   VP                  # V P                   P                  V4      pW1n        V# )Nr   )r&   r   r   r   )r6   r$  r7   r/  s   &&& r!   r'  slots_dispatcher.__get__  sJ    ;== 3)**&&&}}**3/"r#   r   N)r:   r;   r<   r=   r'  r?   r   r#   r!   r   r     s    	 	r#   r   )-__conditional_annotations__r>   
__future__r   r   r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   attrr   r   r   r   registryr   r    r   util.typingr   defaultdictlistr   r_   r)   r+   rA   rb   r   r   r   r   r   r   )r6  s   @r!   <module>r>     s  	 #         !       #   ( !    ! 	T E 
&O O $gcl $ {($ {(|m* m*` #,  #F4$ 4n   F
z# 
r#   