+
    P(iv7                         R t Rt^ RIt^ RIt^ RItR tR tR t ! R R4      t ! R R4      t	 ! R	 R
]	4      t
R tR tR tR tR tR tRR ltR# )zMethod decorator helpers.Nc                 @    \         P                  ! R \        V R7       R# )z9decorating class methods with @cachedmethod is deprecated
stacklevelNwarningswarnDeprecationWarningr   s   &^/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/cachetools/_cachedmethod.py_warn_classmethodr
   
   s    MMC    c                 @    \         P                  ! V \        VR 7       R# )r   Nr   )msgr   s   &&r	   _warn_instance_dictr      s    MMr   c                     R # N )_s   &r	   _noner      s    r   c                   z   a  ] tR t^t o RtRR ltR tR t]R 4       t	]R 4       t
]R 4       t]R	 4       tR
tV tR# )_WrapperBasezDWrapper base class providing default implementations for properties.Nc                   \        V\        4      '       d   \        ^R7       \        P                  ! W4       Wn        W0n        \        P                  ! WA4      V n        Ve   TM\        V n
        Ve	   W`n        R# \        V n        R# )   r   N)
isinstancetyper
   	functoolsupdate_wrapper_obj_WrapperBase__cachepartial_WrapperBase__keyr   _WrapperBase__lock_WrapperBase__cond)selfobjmethodcachekeylockconds   &&&&&&&r	   __init___WrapperBase.__init__!   s_    c4  +  .	&&s0
".dE".dEr   c                    \        4       hr   NotImplementedErrorr"   argskwargss   &*,r	   __call___WrapperBase.__call__+       !##r   c                    \        4       hr   r,   r"   s   &r	   cache_clear_WrapperBase.cache_clear.   r3   r   c                8    V P                  V P                  4      # r   )r   r   r5   s   &r	   r%   _WrapperBase.cache1   s    ||DII&&r   c                    V P                   # r   )r   r5   s   &r	   	cache_key_WrapperBase.cache_key5   s    zzr   c                8    V P                  V P                  4      # r   )r    r   r5   s   &r	   
cache_lock_WrapperBase.cache_lock9       {{499%%r   c                8    V P                  V P                  4      # r   )r!   r   r5   s   &r	   cache_condition_WrapperBase.cache_condition=   r@   r   )__cache__cond__key__lockr   )NN)__name__
__module____qualname____firstlineno____doc__r)   r1   r6   propertyr%   r;   r>   rB   __static_attributes____classdictcell____classdict__s   @r	   r   r      sg     N:$$ ' '   & & & &r   r   c                   >   a  ] tR t^Bt o RtRR ltR tRR ltRtV t	R# )	_DescriptorBasezADescriptor base class implementing the basic descriptor protocol.c                     R V n         Wn        R # r   )_DescriptorBase__attrname_DescriptorBase__deprecated)r"   
deprecateds   &&r	   r)   _DescriptorBase.__init__E   s    &r   c                    V P                   f	   W n         R # W P                   8w  d   \        RV P                   : RV: R24      hR # )Nz=Cannot assign the same @cachedmethod to two different names (z and z).)rU   	TypeError)r"   ownernames   &&&r	   __set_name___DescriptorBase.__set_name__I   sI    ??""O__$OO&eD827  %r   Nc                l   V P                  V4      pVf    V# V P                  e*    VP                  P                  V P                  V4      pV# V P                  '       d    V# Rp\        V4      R h  \         dW    R\        T4      P                  : RT P                  : R2pT P                  '       d   \        T^4        T# \        T4      R h\         dW    R\        T4      P                  : RT P                  : R2pT P                  '       d   \        T^4        T# \        T4      R hi ; i)NzNo '__dict__' attribute on z instance to cache z
 property.zThe '__dict__' attribute on z7 instance does not support item assignment for caching zDCannot use @cachedmethod instance without calling __set_name__ on it)
WrapperrU   __dict__
setdefaultAttributeErrorr   rH   rV   r   rZ   )r"   r#   objtypewrapperr   s   &&&  r	   __get___DescriptorBase.__get__R   sT   ,,s#; @ ? __(3 ,,11$//7K4    YCC.d*1 " 	3 2$s)2D2D1G H))-(;:G  $$$'Q/$ ! $C.d2 	32493E3E2H I#1= 
 $$$'Q/  $C.d2	3s   &A3 3AD3D3AD3&D3)
__attrname__deprecated)Fr   )
rH   rI   rJ   rK   rL   r)   r]   rf   rN   rO   rP   s   @r	   rS   rS   B   s     K'& &r   rS   c                   B   a a ] tR t^{t oRtV 3R ltR tR tRtVt	V ;t
# )_DeprecatedDescriptorBasez=Descriptor base class supporting deprecated @classmethod use.c                @   < \         SV `  R R7       Wn        W n        R# )T)rW   N)superr)   "_DeprecatedDescriptorBase__wrapper&_DeprecatedDescriptorBase__cache_clear)r"   re   r6   	__class__s   &&&r	   r)   "_DeprecatedDescriptorBase.__init__~   s    D) (r   c                >    \        ^R7       V P                  ! V/ VB #    r   )r
   rn   r.   s   &*,r	   r1   "_DeprecatedDescriptorBase.__call__   s    Q'~~t.v..r   c                <    \        ^R7       V P                  V4      # rs   )r
   ro   )r"   rd   s   &&r	   r6   %_DeprecatedDescriptorBase.cache_clear   s    Q'!!'**r   )__cache_clear	__wrapper)rH   rI   rJ   rK   rL   r)   r1   r6   rN   rO   __classcell__)rp   rQ   s   @@r	   rk   rk   {   s     G)/
+ +r   rk   c                 J   a aaaaa  ! VVVVVV 3R  lR\         4      pV! 4       # )c                   >   < ] tR t^t ! V VVVVV3R lR]4      tRtR# )#_condition_info.<locals>.Descriptorc                   \   <a a ] tR t^t oV VVVVV3R ltV3R ltR tV3R ltRtVt	V ;t
# )+_condition_info.<locals>.Descriptor.Wrapperc                j   < \         SV `  VSSSSS4       ^ ;V n        V n        \	        4       V n        R#     N)rm   r)   _Wrapper__hits_Wrapper__missesset_Wrapper__pendingr"   r#   rp   r%   r(   r&   r'   r$   s   &&r	   r)   4_condition_info.<locals>.Descriptor.Wrapper.__init__   s1     feS$E.//dm!$r   c           	       <a a S P                   pS P                  pS P                  pS P                  ! V/ VB oV;_uu_ 4        VP	                  VV 3R  l4        VS,          pS ;P
                  ^,          un        VuuRRR4       #   \         d8    S P                  P                  S4       S ;P                  ^,          un	         Mi ; i RRR4       M  + '       g   i     M; i S	! S P                  .TO5/ TB pT;_uu_ 4         YsS&   M  \         d     Mi ; iTuuRRR4       T;_uu_ 4        S P                  P                  S4       TP                  4        RRR4       #   + '       g   i     # ; i  + '       g   i     M; i T;_uu_ 4        S P                  P                  S4       TP                  4        RRR4       R#   + '       g   i     R# ; i  T;_uu_ 4        S P                  P                  S4       TP                  4        RRR4       i   + '       g   i     i ; i; i)c                  "   < S SP                   9  # r   )r   )r&   r"   s   r	   <lambda>F_condition_info.<locals>.Descriptor.Wrapper.__call__.<locals>.<lambda>   s    #T^^*Cr   N)r%   r>   rB   r;   wait_forr   KeyErrorr   addr   r   
ValueErrorremove
notify_all)
r"   r/   r0   r%   r'   r(   resultvalr&   r$   s
   f*,     @r	   r1   4_condition_info.<locals>.Descriptor.Wrapper.__call__   s   

++nnd5f5TMM"CD+!&sq(% T $ +**3/*+% TTT* <T<V<C!),#J) ! !"  --c2)   --c2) --c2) s   C#B

?C	CCCC)	- G* FDFD"F!D""F&
G* :,E//E?F	G*  ,GG'	*H=5,H*	!	H=*H:5H=c                    V P                   ;_uu_ 4        V P                  P                  4        ^ ;V n        V n        RRR4       R#   + '       g   i     R# ; ir   r>   r%   clearr   r   r5   s   &r	   r6   7_condition_info.<locals>.Descriptor.Wrapper.cache_clear   5    ___JJ$$&233DK$- %___   )AA	c                   < V P                   ;_uu_ 4        S! V P                  V P                  V P                  4      uuR R R 4       #   + '       g   i     R # ; ir   r>   r%   r   r   r"   infos   &r	   
cache_info6_condition_info.<locals>.Descriptor.Wrapper.cache_info   0    ___

DKKG %___   (A		A	)__hits__misses	__pendingrH   rI   rJ   rK   r)   r1   r6   r   rN   rO   rz   )rp   rQ   r%   r(   r   r&   r'   r$   s   @@r	   r`   r      s%     ' '
*84
H Hr   r`   r   NrH   rI   rJ   rK   r   r`   rN   )r%   r(   r   r&   r'   r$   s   r	   
Descriptorr}      s    )	H )	Hl )	H )	Hr   r   rS   )r$   r%   r&   r'   r(   r   r   s   ffffff r	   _condition_infor      s"    *H *H_ *HX <r   c                 F   a aaaa  ! VVVVV 3R  lR\         4      pV! 4       # )c                   <   < ] tR t^t ! V VVVV3R lR]4      tRtR# ) _locked_info.<locals>.Descriptorc                   Z   <a a ] tR t^t oV VVVV3R ltV3R ltR tV3R ltRtVt	V ;t
# )(_locked_info.<locals>.Descriptor.Wrapperc                J   < \         SV `  VSSSS4       ^ ;V n        V n        R# r   rm   r)   r   r   r"   r#   rp   r%   r&   r'   r$   s   &&r	   r)   1_locked_info.<locals>.Descriptor.Wrapper.__init__   s&     feS$?.//dmr   c                4  < V P                   pV P                  pV P                  ! V/ VB pV;_uu_ 4         W5,          pV ;P                  ^,          un        VuuRRR4       #   \         d    T ;P
                  ^,          un         Mi ; i RRR4       M  + '       g   i     M; iS! T P                  .TO5/ TB pT;_uu_ 4         TP                  YW4      uuRRR4       #   \         d    Tu uuRRR4       # i ; i  + '       g   i     R# ; i)   N)	r%   r>   r;   r   r   r   r   rb   r   )	r"   r/   r0   r%   r'   r&   r   r   r$   s	   &*,     r	   r1   1_locked_info.<locals>.Descriptor.Wrapper.__call__   s    

nnd5f5T+!&q(%	 T
 $ +*+% TTT TYY888T#  %//9 T & #"
 T# TTsR   B"A%%$B	BBBB)	DC))D6DDDD	c                    V P                   ;_uu_ 4        V P                  P                  4        ^ ;V n        V n        RRR4       R#   + '       g   i     R# ; ir   r   r5   s   &r	   r6   4_locked_info.<locals>.Descriptor.Wrapper.cache_clear   r   r   c                   < V P                   ;_uu_ 4        S! V P                  V P                  V P                  4      uuR R R 4       #   + '       g   i     R # ; ir   r   r   s   &r	   r   3_locked_info.<locals>.Descriptor.Wrapper.cache_info   r   r   r   r   r   )rp   rQ   r%   r   r&   r'   r$   s   @@r	   r`   r      s%     0 0#*4
H Hr   r`   r   Nr   )r%   r   r&   r'   r$   s   r	   r   r      s    !	H !	Hl !	H !	Hr   r   r   )r$   r%   r&   r'   r   r   s   fffff r	   _locked_infor      s"    "H "H_ "HH <r   c                 B   a aaa  ! VVVV 3R  lR\         4      pV! 4       # )c                   :   < ] tR t^t ! V VVV3R lR]4      tRtR# )"_unlocked_info.<locals>.Descriptorc                   X   <a a ] tR t^t oV VVV3R ltV3R ltR tV3R ltRtVt	V ;t
# )*_unlocked_info.<locals>.Descriptor.Wrapperc                H   < \         SV `  VSSS4       ^ ;V n        V n        R# r   r   r"   r#   rp   r%   r&   r$   s   &&r	   r)   3_unlocked_info.<locals>.Descriptor.Wrapper.__init__   s$     feS9.//dmr   c                :  < V P                   pV P                  ! V/ VB p W4,          pV ;P                  ^,          un        V#   \         d    T ;P                  ^,          un         Mi ; iS! T P
                  .TO5/ TB p YcT&   T#   \         d     T# i ; i)r   )r%   r;   r   r   r   r   r   )r"   r/   r0   r%   r&   r   r   r$   s   &*,    r	   r1   3_unlocked_info.<locals>.Descriptor.Wrapper.__call__   s    

nnd5f5'"ZFKK1$K!M 'MMQ&M'TYY888!$#J 
 " 
s#   "A $A+*A+B BBc                V    V P                   P                  4        ^ ;V n        V n        R# r   )r%   r   r   r   r5   s   &r	   r6   6_unlocked_info.<locals>.Descriptor.Wrapper.cache_clear  s     

  ".//dmr   c                T   < S! V P                   V P                  V P                  4      # r   )r%   r   r   r   s   &r	   r   5_unlocked_info.<locals>.Descriptor.Wrapper.cache_info  s    DJJT]]CCr   r   r   )rp   rQ   r%   r   r&   r$   s   @@r	   r`   r      s%     0 0 0D Dr   r`   r   Nr   )r%   r   r&   r$   s   r	   r   r      s    	D 	Dl 	D 	Dr   r   r   )r$   r%   r&   r   r   s   ffff r	   _unlocked_infor      s!    D D_ D: <r   c           	         a aaaaaaa	 \         P                  ! 4       oVVVVV 3R  lo	VV3R loVV	3R lp ! VVVVVV V	3R lR\        4      pV! VS4      # )c           	        <aa S! V 4      pS	! V .VO5/ VB oS
! V 4      ;_uu_ 4        S! V 4      P                  VV3R  l4        VS,          uuRRR4       #   \         d    SP                  S4        Mi ; i RRR4       M  + '       g   i     M; i S! T .TO5/ TB pS
! T 4      ;_uu_ 4         YTS&   M  \         d     Mi ; iTuuRRR4       S
! T 4      ;_uu_ 4        SP	                  S4       S! T 4      P                  4        RRR4       #   + '       g   i     # ; i  + '       g   i     M; i S
! T 4      ;_uu_ 4        SP	                  S4       S! T 4      P                  4        RRR4       R#   + '       g   i     R# ; i  S
! T 4      ;_uu_ 4        SP	                  S4       S! T 4      P                  4        RRR4       i   + '       g   i     i ; i; i)c                     < S S9  # r   r   )kpendings   r	   r   -_condition.<locals>.wrapper.<locals>.<lambda>  s
    (8r   N)r   r   r   r   r   r   )r"   r   r/   r0   cvr   r%   r(   r&   r'   r$   s   &f*,  @r	   re   _condition.<locals>.wrapper  sd   $K&t&v&$ZZJ 89t Z  A ZZZ	(t-d-f-AdaD!   dq!T
%%'   dq!T
%%' dq!T
%%' s   BAA85B7A88BB	F 5D,7B<;D,<C
D,	C

D,
F ((DD),D<	7F (FF	G+'(G		G+G(#G+c                    < S! V 4      pS! V 4      ;_uu_ 4        VP                  4        R R R 4       R #   + '       g   i     R # ; ir   r   r"   r   r%   r'   s   & r	   r6   _condition.<locals>.cache_clear'  *    $K$ZZGGI ZZZ	   5A	c                 P   < SP                  V \        4       4      pS! W.VO5/ VB # r   )rb   r   )r"   r/   r0   pr   re   s   &*, r	   classmethod_wrapper'_condition.<locals>.classmethod_wrapper,  s,    tSU+t0000r   c            	       @   < ] tR tRt ! V VVVVVV3R lR]4      tRtR# )_condition.<locals>.Descriptori0  c                   Z   <a a ] tR tRt oV VVVVV3R ltV3R ltRV3R lltRtVtV ;t	# )&_condition.<locals>.Descriptor.Wrapperi1  c                N   < \         SV `  VSSSSS4       \        4       V n        R # r   )rm   r)   r   r   r   s   &&r	   r)   /_condition.<locals>.Descriptor.Wrapper.__init__2  s#     feS$E!$r   c                F   < S! V P                   V P                  .VO5/ VB # r   )r   r   r"   r/   r0   re   s   &*,r	   r1   /_condition.<locals>.Descriptor.Wrapper.__call__6  s"    tyy$..J4J6JJr   c                (   < S! V P                   4      # r   r   r"   _objtyper6   s   &&r	   r6   2_condition.<locals>.Descriptor.Wrapper.cache_clear:      "499--r   )r   r   
rH   rI   rJ   rK   r)   r1   r6   rN   rO   rz   )	rp   rQ   r%   r6   r(   r&   r'   r$   re   s	   @@r	   r`   r   1  s     ' 'K. .r   r`   r   Nr   )r%   r6   r(   r&   r'   r$   re   s   r	   r   r   0  s    
	. 
	.l 
	. 
	.r   r   )weakrefWeakKeyDictionaryrk   )
r$   r%   r&   r'   r(   r   r   r6   r   re   s
   fffff  @@@r	   
_conditionr     sG    '')G( (,
1. .. . );77r   c                 n   a aaaaa VVVV 3R  loVV3R lo ! VVVVV V3R lR\         4      pV! SS4      # )c                   < S! V 4      pS! V .VO5/ VB pS! V 4      ;_uu_ 4         W4,          uuR R R 4       #   \          d     Mi ; i R R R 4       M  + '       g   i     M; iS	! T .TO5/ TB pS! T 4      ;_uu_ 4         TP                  YE4      uuR R R 4       #   \         d    Tu uuR R R 4       # i ; i  + '       g   i     R # ; ir   )r   rb   r   )
r"   r/   r0   r   r   r   r%   r&   r'   r$   s
   &*,   r	   re   _locked.<locals>.wrapperA  s    $K&t&v&$ZZt Z  	 ZZZ
 4)$)&)$ZZ ||A) Z   Z ZZsP   A:AAAAA%	B>B!!B;.B>:B;;B>>C	c                    < S! V 4      pS! V 4      ;_uu_ 4        VP                  4        R R R 4       R #   + '       g   i     R # ; ir   r   r   s   & r	   r6   _locked.<locals>.cache_clearS  r   r   c                   >   < ] tR tRt ! V VVVVV3R lR]4      tRtR# )_locked.<locals>.DescriptoriX  c                   X   <a a ] tR tRt oV VVVV3R ltV3R ltRV3R lltRtVtV ;t	# )#_locked.<locals>.Descriptor.WrapperiY  c                .   < \         SV `  VSSSS4       R # r   rm   r)   r   s   &&r	   r)   ,_locked.<locals>.Descriptor.Wrapper.__init__Z  s     feS$?r   c                0   < S! V P                   .VO5/ VB # r   r   r   s   &*,r	   r1   ,_locked.<locals>.Descriptor.Wrapper.__call__]      tyy:4:6::r   c                (   < S! V P                   4      # r   r   r   s   &&r	   r6   /_locked.<locals>.Descriptor.Wrapper.cache_cleara  r   r   r   r   r   )rp   rQ   r%   r6   r&   r'   r$   re   s   @@r	   r`   r   Y  s      @ @;. .r   r`   r   Nr   )r%   r6   r&   r'   r$   re   s   r	   r   r   X  s    		. 		.l 		. 		.r   r   rk   )r$   r%   r&   r'   r   r6   re   s   ffff @@r	   _lockedr  @  s3     $

. 
.. 
. g{++r   c                 f   a aaaa VVV 3R  loV3R lo ! VVVV V3R lR\         4      pV! SS4      # )c                    < S! V 4      pS! V .VO5/ VB p W4,          #   \          d     Mi ; iS! T .TO5/ TB p YST&   T#   \         d     T# i ; ir   )r   r   )	r"   r/   r0   r   r   r   r%   r&   r$   s	   &*,   r	   re   _unlocked.<locals>.wrapperh  s~    $K&t&v&	4K 		4)$)&)	aD   		s    --A AAc                 8   < S! V 4      pVP                  4        R # r   r   )r"   r   r%   s   & r	   r6   _unlocked.<locals>.cache_clearv  s    $K		r   c                   <   < ] tR tRt ! V VVVV3R lR]4      tRtR# )_unlocked.<locals>.Descriptoriz  c                   V   <a a ] tR tRt oV VVV3R ltV3R ltRV3R lltRtVtV ;t	# )%_unlocked.<locals>.Descriptor.Wrapperi{  c                ,   < \         SV `  VSSS4       R # r   r   r   s   &&r	   r)   ._unlocked.<locals>.Descriptor.Wrapper.__init__|  s     feS9r   c                0   < S! V P                   .VO5/ VB # r   r   r   s   &*,r	   r1   ._unlocked.<locals>.Descriptor.Wrapper.__call__  r  r   c                (   < S! V P                   4      # r   r   r   s   &&r	   r6   1_unlocked.<locals>.Descriptor.Wrapper.cache_clear  r   r   r   r   r   )rp   rQ   r%   r6   r&   r$   re   s   @@r	   r`   r  {  s     : :;. .r   r`   r   Nr   )r%   r6   r&   r$   re   s   r	   r   r  z  s    		. 		.l 		. 		.r   r   r  )r$   r%   r&   r   r6   re   s   fff @@r	   	_unlockedr  g  s.    
. 
.. 
. g{++r   c                    VeH   Ve   Ve   \        WW#WE4      pMvVe   \        WW$WE4      pMdVe   \        WW#V4      pMR\        WW%4      pMEVe   Ve   \        WW#V4      pM/Ve   \        WW$V4      pMVe   \	        WW#4      pM\        WV4      pWn        W&n        Ve   TMTVn        WFn	        \        P                  ! W`4      # r   )r   r   r   r   r  r  r%   r;   r>   rB   r   r   )r$   r%   r&   r'   r(   r   re   s   &&&&&& r	   _wrapperr    s     0%fSKG%fSKG"6#TBG$VC>G 0 4@G 4@GfS7Gs3G M!%!1tG"##G44r   r   )NNN)rL   __all__r   r   r   r
   r   r   r   rS   rk   r   r   r   r   r  r  r  r   r   r	   <module>r     sp    
   !& !&H6 6r+ +2-`%PB08f$,N,D5r   