§
    ø„tj  ã                   ó`  — d dl Z d dlZd dlmZ ej        r
d dlZd dlmZ  G d„ de j        ¦  «        Zej	        eej
        dgef         f         Z G d„ de¦  «        Z G d	„ d
e¦  «        Z G d„ de¦  «        Z e¦   «         Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )é    N)Ú_utils)ÚRetryCallStatec                   óL   — e Zd ZdZej        dddefd„¦   «         Zdd„Zdd
„Z	dS )Ú	stop_basez(Abstract base class for stop strategies.Úretry_stater   Úreturnc                 ó   — d S ©N© ©Úselfr   s     úW/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/pip/_vendor/tenacity/stop.pyÚ__call__zstop_base.__call__   s   € àˆó    ÚotherÚstop_allc                 ó"   — t          | |¦  «        S r
   )r   ©r   r   s     r   Ú__and__zstop_base.__and__"   ó   € Ý˜˜eÑ$Ô$Ð$r   Ústop_anyc                 ó"   — t          | |¦  «        S r
   )r   r   s     r   Ú__or__zstop_base.__or__%   r   r   N)r   r   r   r   )r   r   r   r   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚabstractmethodÚboolr   r   r   r   r   r   r   r      ss   € € € € € Ø2Ð2àÔðÐ$4ð ¸ð ð ð ñ Ôðð%ð %ð %ð %ð%ð %ð %ð %ð %ð %r   r   r   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	r   z+Stop if any of the stop condition is valid.Ústopsr   Nc                 ó   — || _         d S r
   ©r"   ©r   r"   s     r   Ú__init__zstop_any.__init__/   ó   € ØˆŒ
ˆ
ˆ
r   r   r   c                 óD   ‡— t          ˆfd„| j        D ¦   «         ¦  «        S )Nc              3   ó.   •K  — | ]} |‰¦  «        V — Œd S r
   r   ©Ú.0Úxr   s     €r   ú	<genexpr>z$stop_any.__call__.<locals>.<genexpr>3   ó+   øè è € Ð6Ð6 a�1�1�[‘>”>Ð6Ð6Ð6Ð6Ð6Ð6r   )Úanyr"   r   s    `r   r   zstop_any.__call__2   ó(   ø€ ÝÐ6Ð6Ð6Ð6¨4¬:Ð6Ñ6Ô6Ñ6Ô6Ð6r   ©r   r   r   r   r   r&   r    r   r   r   r   r   r   ,   s_   € € € € € Ø5Ð5ð˜yð ¨Tð ð ð ð ð7Ð$4ð 7¸ð 7ð 7ð 7ð 7ð 7ð 7r   r   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	r   z*Stop if all the stop conditions are valid.r"   r   Nc                 ó   — || _         d S r
   r$   r%   s     r   r&   zstop_all.__init__9   r'   r   r   r   c                 óD   ‡— t          ˆfd„| j        D ¦   «         ¦  «        S )Nc              3   ó.   •K  — | ]} |‰¦  «        V — Œd S r
   r   r*   s     €r   r-   z$stop_all.__call__.<locals>.<genexpr>=   r.   r   )Úallr"   r   s    `r   r   zstop_all.__call__<   r0   r   r1   r   r   r   r   r   6   s_   € € € € € Ø4Ð4ð˜yð ¨Tð ð ð ð ð7Ð$4ð 7¸ð 7ð 7ð 7ð 7ð 7ð 7r   r   c                   ó"   — e Zd ZdZdddefd„ZdS )Ú_stop_neverzNever stop.r   r   r   c                 ó   — dS )NFr   r   s     r   r   z_stop_never.__call__C   s   € Øˆur   N)r   r   r   r   r    r   r   r   r   r8   r8   @   s=   € € € € € ØÐðÐ$4ð ¸ð ð ð ð ð ð r   r8   c                   ó*   — e Zd ZdZd
d„Zdddefd	„ZdS )Ústop_when_event_setz!Stop when the given event is set.Úeventúthreading.Eventr   Nc                 ó   — || _         d S r
   )r<   )r   r<   s     r   r&   zstop_when_event_set.__init__M   r'   r   r   r   c                 ó4   — | j                              ¦   «         S r
   )r<   Úis_setr   s     r   r   zstop_when_event_set.__call__P   s   € ØŒz× Ò Ñ"Ô"Ð"r   )r<   r=   r   N)r   r   r   r   r&   r    r   r   r   r   r;   r;   J   sQ   € € € € € Ø+Ð+ðð ð ð ð#Ð$4ð #¸ð #ð #ð #ð #ð #ð #r   r;   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	Ústop_after_attemptz.Stop when the previous attempt >= max_attempt.Úmax_attempt_numberr   Nc                 ó   — || _         d S r
   )rC   )r   rC   s     r   r&   zstop_after_attempt.__init__W   s   € Ø"4ˆÔÐÐr   r   r   c                 ó"   — |j         | j        k    S r
   )Úattempt_numberrC   r   s     r   r   zstop_after_attempt.__call__Z   s   € ØÔ)¨TÔ-DÒDÐDr   )r   r   r   r   Úintr&   r    r   r   r   r   rB   rB   T   sg   € € € € € Ø8Ð8ð5¨3ð 5°4ð 5ð 5ð 5ð 5ðEÐ$4ð E¸ð Eð Eð Eð Eð Eð Er   rB   c                   ó<   — e Zd ZdZdej        ddfd„Zdddefd„ZdS )	Ústop_after_delayz3Stop when the time from the first attempt >= limit.Ú	max_delayr   Nc                 ó8   — t          j        |¦  «        | _        d S r
   )r   Ú
to_secondsrJ   )r   rJ   s     r   r&   zstop_after_delay.__init__a   s   € ÝÔ*¨9Ñ5Ô5ˆŒˆˆr   r   r   c                 óN   — |j         €t          d¦  «        ‚|j         | j        k    S )Nz4__call__() called but seconds_since_start is not set)Úseconds_since_startÚRuntimeErrorrJ   r   s     r   r   zstop_after_delay.__call__d   s*   € ØÔ*Ð2ÝÐUÑVÔVÐVØÔ.°$´.Ò@Ð@r   )	r   r   r   r   r   Útime_unit_typer&   r    r   r   r   r   rI   rI   ^   sj   € € € € € Ø=Ð=ð6 &Ô"7ð 6¸Dð 6ð 6ð 6ð 6ðAÐ$4ð A¸ð Að Að Að Að Að Ar   rI   )r   ÚtypingÚpip._vendor.tenacityr   ÚTYPE_CHECKINGÚ	threadingr   ÚABCr   ÚUnionÚCallabler    Ú	StopBaseTr   r   r8   Ú
stop_neverr;   rB   rI   r   r   r   ú<module>rZ      sÈ  ðð  €
€
€
Ø €€€à 'Ð 'Ð 'Ð 'Ð 'Ð 'à	Ôð 4ØÐÐÐà3Ð3Ð3Ð3Ð3Ð3ð%ð %ð %ð %ð %�”ñ %ô %ð %ð ŒL˜ F¤OÐ5EÐ4FÈÐ4LÔ$MÐMÔN€	ð7ð 7ð 7ð 7ð 7ˆyñ 7ô 7ð 7ð7ð 7ð 7ð 7ð 7ˆyñ 7ô 7ð 7ðð ð ð ð �)ñ ô ð ð ˆ[‰]Œ]€
ð#ð #ð #ð #ð #˜)ñ #ô #ð #ðEð Eð Eð Eð E˜ñ Eô Eð Eð	Að 	Að 	Að 	Að 	A�yñ 	Aô 	Að 	Að 	Að 	Ar   