+
    € ’e†^  ã            
       óð  € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt Rt	Rt
RtRtRtRtR	tR
tRt]R]R]R]R]R/t]P&                  ! R4      t ! R R]4      t ! R R]4      t]t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R ]4      tR! t R" t!R.R# lt"]PF                  ! R$R%4      t$R]3R& lt%R.R' lt& ! R( R)]4      t' ! R* R+]4      t( ! R, R-])4      t*R# )/z"Brian Quinlan (brian@sweetapp.com)N)ÚisliceÚFIRST_COMPLETEDÚFIRST_EXCEPTIONÚALL_COMPLETEDÚ_AS_COMPLETEDÚPENDINGÚRUNNINGÚ	CANCELLEDÚCANCELLED_AND_NOTIFIEDÚFINISHEDÚpendingÚrunningÚ	cancelledÚfinishedzconcurrent.futuresc                   ó   € ] tR t^'tRtRtR# )ÚErrorz-Base class for all future-related exceptions.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Úf/home/ubuntu/.hermes/tools/python-3.14.9+20261021-linux-x64/lib/python3.14/concurrent/futures/_base.pyr   r   '   s   † Ù7Ûr   r   c                   ó   € ] tR t^+tRtRtR# )ÚCancelledErrorzThe Future was cancelled.r   Nr   r   r   r   r   r   +   s   † Ù#Ûr   r   c                   ó   € ] tR t^1tRtRtR# )ÚInvalidStateErrorz+The operation is not allowed in this state.r   Nr   r   r   r   r   r   1   s   † Ù5Ûr   r   c                   ó<   a € ] tR t^5t o RtR tR tR tR tRt	V t
R# )Ú_Waiterz;Provides the event that wait() and as_completed() block on.c                óH   € \         P                  ! 4       V n        . V n        R # ©N)Ú	threadingÚEventÚeventÚfinished_futures©Úselfs   &r   Ú__init__Ú_Waiter.__init__7   s   € Ü—_’_Ó&ˆŒ
Ø "ˆÖr   c                ó<   € V P                   P                  V4       R # r#   ©r'   Úappend©r)   Úfutures   &&r   Ú
add_resultÚ_Waiter.add_result;   ó   € Ø×Ñ×$Ñ$ VÖ,r   c                ó<   € V P                   P                  V4       R # r#   r-   r/   s   &&r   Úadd_exceptionÚ_Waiter.add_exception>   r3   r   c                ó<   € V P                   P                  V4       R # r#   r-   r/   s   &&r   Úadd_cancelledÚ_Waiter.add_cancelledA   r3   r   )r&   r'   N)r   r   r   r   r   r*   r1   r5   r8   r   Ú__classdictcell__©Ú__classdict__s   @r   r!   r!   5   s!   ø‡ € ÙEò#ò-ò-÷-ð -r   r!   c                   óZ   a a€ ] tR t^Dt oRtV 3R ltV 3R ltV 3R ltV 3R ltRt	Vt
V ;t# )Ú_AsCompletedWaiterzUsed by as_completed().c                ó`   <€ \         \        V `  4        \        P                  ! 4       V n        R # r#   )Úsuperr>   r*   r$   ÚLockÚlock)r)   Ú	__class__s   &€r   r*   Ú_AsCompletedWaiter.__init__G   s   ø€ ÜÔ  $Ñ0Ô2Ü—N’NÓ$ˆŽ	r   c                óÄ   <€ V P                   ;_uu_ 4        \        \        V `  V4       V P                  P                  4        R R R 4       R #   + '       g   i     R # ; ir#   )rB   r@   r>   r1   r&   Úset©r)   r0   rC   s   &&€r   r1   Ú_AsCompletedWaiter.add_resultK   s6   ø€ Ø�Y�Y‹YÜÔ$ dÑ6°vÔ>Ø�J‰J�N‰NÔ÷ �Y�YŠYúó   –.AÁA	c                óÄ   <€ V P                   ;_uu_ 4        \        \        V `  V4       V P                  P                  4        R R R 4       R #   + '       g   i     R # ; ir#   )rB   r@   r>   r5   r&   rF   rG   s   &&€r   r5   Ú _AsCompletedWaiter.add_exceptionP   ó6   ø€ Ø�Y�Y‹YÜÔ$ dÑ9¸&ÔAØ�J‰J�N‰NÔ÷ �Y�YŠYúrI   c                óÄ   <€ V P                   ;_uu_ 4        \        \        V `  V4       V P                  P                  4        R R R 4       R #   + '       g   i     R # ; ir#   )rB   r@   r>   r8   r&   rF   rG   s   &&€r   r8   Ú _AsCompletedWaiter.add_cancelledU   rL   rI   )rB   )r   r   r   r   r   r*   r1   r5   r8   r   r:   Ú__classcell__©rC   r<   s   @@r   r>   r>   D   s!   ù‡ € Ù!õ%õõ
÷
õ r   r>   c                   óN   a a€ ] tR t^Zt oRtV 3R ltV 3R ltV 3R ltRtVt	V ;t
# )Ú_FirstCompletedWaiterz*Used by wait(return_when=FIRST_COMPLETED).c                óZ   <€ \         SV `  V4       V P                  P                  4        R # r#   )r@   r1   r&   rF   rG   s   &&€r   r1   Ú _FirstCompletedWaiter.add_result]   s   ø€ Ü‰Ñ˜6Ô"Ø�
‰
�‰Ör   c                óZ   <€ \         SV `  V4       V P                  P                  4        R # r#   )r@   r5   r&   rF   rG   s   &&€r   r5   Ú#_FirstCompletedWaiter.add_exceptiona   ó   ø€ Ü‰Ñ˜fÔ%Ø�
‰
�‰Ör   c                óZ   <€ \         SV `  V4       V P                  P                  4        R # r#   )r@   r8   r&   rF   rG   s   &&€r   r8   Ú#_FirstCompletedWaiter.add_cancellede   rW   r   r   )r   r   r   r   r   r1   r5   r8   r   r:   rO   rP   s   @@r   rR   rR   Z   s   ù‡ € Ù4õõ÷õ r   rR   c                   ó`   a a€ ] tR t^it oRtV 3R ltR tV 3R ltV 3R ltV 3R lt	Rt
VtV ;t# )Ú_AllCompletedWaiterz<Used by wait(return_when=FIRST_EXCEPTION and ALL_COMPLETED).c                óp   <€ Wn         W n        \        P                  ! 4       V n        \
        SV `  4        R # r#   )Únum_pending_callsÚstop_on_exceptionr$   rA   rB   r@   r*   )r)   r]   r^   rC   s   &&&€r   r*   Ú_AllCompletedWaiter.__init__l   s(   ø€ Ø!2ÔØ!2ÔÜ—N’NÓ$ˆŒ	Ü‰ÑÖr   c                óò   € V P                   ;_uu_ 4        V ;P                  ^,          un        V P                  '       g   V P                  P                  4        RRR4       R#   + '       g   i     R# ; i)é   N)rB   r]   r&   rF   r(   s   &r   Ú_decrement_pending_callsÚ,_AllCompletedWaiter._decrement_pending_callsr   sB   € Ø�Y�Y‹YØ×"Ò" aÕ'Õ"Ø×)×)Ð)Ø—
‘
—‘Ô ÷ �Y�YŠYús   •AA%Á%A6	c                óF   <€ \         SV `  V4       V P                  4        R # r#   )r@   r1   rb   rG   s   &&€r   r1   Ú_AllCompletedWaiter.add_resultx   s   ø€ Ü‰Ñ˜6Ô"Ø×%Ñ%Ö'r   c                ó¢   <€ \         SV `  V4       V P                  '       d   V P                  P	                  4        R # V P                  4        R # r#   )r@   r5   r^   r&   rF   rb   rG   s   &&€r   r5   Ú!_AllCompletedWaiter.add_exception|   s6   ø€ Ü‰Ñ˜fÔ%Ø×!×!Ð!Ø�J‰J�N‰NÖà×)Ñ)Ö+r   c                óF   <€ \         SV `  V4       V P                  4        R # r#   )r@   r8   rb   rG   s   &&€r   r8   Ú!_AllCompletedWaiter.add_cancelledƒ   s   ø€ Ü‰Ñ˜fÔ%Ø×%Ñ%Ö'r   )rB   r]   r^   )r   r   r   r   r   r*   rb   r1   r5   r8   r   r:   rO   rP   s   @@r   r[   r[   i   s&   ù‡ € ÙFõò!õ(õ,÷(õ (r   r[   c                   ó6   a € ] tR t^‡t o RtR tR tR tRtV t	R# )Ú_AcquireFutureszDA context manager that does an ordered acquire of Future conditions.c                ó2   € \        V\        R 7      V n        R# ))ÚkeyN)ÚsortedÚidÚfutures)r)   rp   s   &&r   r*   Ú_AcquireFutures.__init__Š   s   € Ü˜g¬2Ô.ˆŽr   c                ó`   € V P                    F  pVP                  P                  4        K  	  R # r#   )rp   Ú
_conditionÚacquirer/   s   & r   Ú	__enter__Ú_AcquireFutures.__enter__�   ó"   € Ø—l”lˆFØ×Ñ×%Ñ%Ö'ó #r   c                ó`   € V P                    F  pVP                  P                  4        K  	  R # r#   )rp   rs   Úrelease)r)   Úargsr0   s   &* r   Ú__exit__Ú_AcquireFutures.__exit__‘   rw   r   )rp   N)
r   r   r   r   r   r*   ru   r{   r   r:   r;   s   @r   rk   rk   ‡   s   ø‡ € ÙNò/ò(÷(ð (r   rk   c                 óR  € V\         8X  d   \        4       pMlV\        8X  d   \        4       pMV\	        R  V  4       4      pV\
        8X  d   \        VRR7      pM+V\        8X  d   \        VRR7      pM\        RV,          4      hV  F  pVP                  P                  V4       K   	  V# )c              3   óR   "  € T F  qP                   \        \        39  x € K  	  R # 5ir#   ©Ú_stater
   r   ©Ú.0Úfs   & r   Ú	<genexpr>Ú._create_and_install_waiters.<locals>.<genexpr>›   s!   é € ð PÙLNÀq—‘Ô!7¼Ð BÖBËBùs   ‚%'T)r^   FzInvalid return condition: %r)r   r>   r   rR   Úsumr   r[   r   Ú
ValueErrorÚ_waitersr.   )ÚfsÚreturn_whenÚwaiterÚpending_countrƒ   s   &&   r   Ú_create_and_install_waitersr�   •   sš   € Ø”mÔ#Ü#Ó%‰Ø	œÔ	'Ü&Ó(‰äñ PÙLNóPó Pˆð œ/Ô)Ü(¨È$ÔO‰FØœMÔ)Ü(¨È%ÔP‰FäÐ;¸kÕIÓJÐJãˆØ	�
‰
×Ñ˜&Ö!ñ ð €Mr   c              #  ó$  "  € V '       dq   V R,          pV F  pVP                  V4       K  	  VP                  ;_uu_ 4        VP                  P                  V4       RRR4       ?V P                  4       x € Kx  R#   + '       g   i     L'; i5i)a^  
Iterate on the list *fs*, yielding finished futures one by one in
reverse order.
Before yielding a future, *waiter* is removed from its waiters
and the future is removed from each set in the collection of sets
*ref_collect*.

The aim of this function is to avoid keeping stale references after
the future is yielded and before the iterator resumes.
Néÿÿÿÿ)Úremovers   rˆ   Úpop)r‰   r‹   Úref_collectrƒ   Úfutures_sets   &&&  r   Ú_yield_finished_futuresr”   «   se   é € ÷ Øˆr�FˆÛ&ˆKØ×Ñ˜qÖ!ñ 'à�\�\‹\Ø�J‰J×Ñ˜fÔ%÷ àà�f‰f‹hŒñ ÷ �\üs"   ‚B‹7BÁA=ÁBÁ=B	ÂBc           
   #  ó¼  "  € Ve   V\         P                  ! 4       ,           p\        V 4      p \        V 4      p\	        V 4      ;_uu_ 4        \        R V  4       4      pW,
          p\        V \        4      pRRR4       \        X4      p \        VXV 3R7       Rj  x€L
  X'       dÕ   Vf   RpM@X\         P                  ! 4       ,
          pV^ 8  d   \        R\        V4      V3,          4      hVP                  P                  V4       VP                  ;_uu_ 4        VP                  p. Vn        VP                  P                  4        RRR4       VP                  4        \        WFW3R7       Rj  x€L
  KÜ   V  F;  pVP                   ;_uu_ 4        VP"                  P%                  V4       RRR4       K=  	  R#   + '       g   i     ELT; i EL9  + '       g   i     L“; i Lt  + '       g   i     K~  ; i  T  FO  pTP                   ;_uu_ 4        TP"                  P%                  X4       RRR4       K=    + '       g   i     KN  ; i	  i ; i5i)a<  An iterator over the given futures that yields each as it completes.

Args:
    fs: The sequence of Futures (possibly created by different
        Executors) to iterate over.
    timeout: The maximum number of seconds to wait.  If None, then
        there is no limit on the wait time.

Returns:
    An iterator that yields the given Futures as they complete
    (finished or cancelled).  If any given Futures are duplicated,
    they will be returned once.

Raises:
    TimeoutError: If the entire result iterator could not be generated
        before the given timeout.
Nc              3   ó`   "  € T F$  pVP                   \        \        39   g   K   Vx € K&  	  R # 5ir#   r   r�   s   & r   r„   Úas_completed.<locals>.<genexpr>Ù   s+   é € ð CÙ�aØ—8‘8Ô 6¼ÐAÑA÷ ’›2ùs   ‚.¤
.)r’   z%d (of %d) futures unfinished)ÚtimeÚ	monotonicrF   Úlenrk   r�   r   Úlistr”   ÚTimeoutErrorr&   ÚwaitrB   r'   ÚclearÚreversers   rˆ   r�   )	r‰   ÚtimeoutÚend_timeÚtotal_futuresr   r   r‹   Úwait_timeoutrƒ   s	   &&       r   Úas_completedr¤   Á   sä  é € ð$ ÒØœTŸ^š^Ó-Õ-ˆä	ˆR‹€BÜ˜“G€MÜ	˜×	Õ	Üñ CÙóCó Cˆð •-ˆÜ,¨R´Ó?ˆ÷ 
ô �H‹~€Hð*Ü*¨8°VØ8:°uô>÷ 	>ð 	>÷ ØŠØ#‘à'¬$¯.ª.Ó*:Õ:�Ø !Ô#Ü&Ø;Ü ›L¨-ð?9õ 9ó:ð :ð �L‰L×Ñ˜lÔ+à——“Ø!×2Ñ2�Ø*,�Ô'Ø—‘×"Ñ"Ô$÷ ð ×ÑÔÜ.¨xØ<>¸=ôJ÷ Jò Jð' ó0 ˆAØ——“Ø—
‘
×!Ñ! &Ô)÷ ‘ó ÷G 
×	Ð	úò	>÷ —úñJ÷ —�ûó ˆAØ——“Ø—
‘
×!Ñ! &Ô)÷ ——’úò üs£   ‚A
IÁ+GÁ7IÂH ÂGÂH Â*A6H Ä .GÅ)H Å7G,Å8H Å?IÆG.Æ4IÇG	Ç	IÇH ÇG)	Ç$	H Ç.G?Ç9	IÈIÈIÈ8
IÉIÉIÉIÚDoneAndNotDoneFutureszdone not_donec                ó¬  € \        V 4      p \        V 4      ;_uu_ 4        V  Uu0 uF"  pVP                  \        \        39   g   K   VkK$  	  ppW,
          pV\
        8X  d   V'       d   \        WE4      uuRRR4       # V\        8X  dX   V'       dP   \        ;QJ d    R V 4       F  '       g   K   RM	  RM! R V 4       4      '       d   \        WE4      uuRRR4       # \        V4      \        V 4      8X  d   \        WE4      uuRRR4       # \        W4      pRRR4       XP                  P                  V4       V  F;  pVP                  ;_uu_ 4        VP                  P                  V4       RRR4       K=  	  XP!                  VP"                  4       \        W@V,
          4      # u upi   + '       g   i     Lž; i  + '       g   i     K•  ; i)a:  Wait for the futures in the given sequence to complete.

Args:
    fs: The sequence of Futures (possibly created by different
        Executors) to wait upon.
    timeout: The maximum number of seconds to wait.  If None, then
        there is no limit on the wait time.
    return_when: Indicates when this function should return.
        The options are:

        FIRST_COMPLETED - Return when any future finishes or is
                          cancelled.
        FIRST_EXCEPTION - Return when any future finishes by raising an
                          exception.  If no future raises an exception
                          then it is equivalent to ALL_COMPLETED.
        ALL_COMPLETED -   Return when all futures finish or are
                          cancelled.

Returns:
    A named 2-tuple of sets. The first set, named 'done', contains the
    futures that completed (is finished or cancelled) before the wait
    completed. The second set, named 'not_done', contains uncompleted
    futures. Duplicate futures given to *fs* are removed and will be
    returned only once.
Nc              3   ó~   "  € T F3  pVP                  4       '       d   K  VP                  4       f   K/  Vx € K5  	  R # 5ir#   )r   Ú	exceptionr�   s   & r   r„   Úwait.<locals>.<genexpr>#  s/   é € ð G™d˜ØŸ+™+Ÿ-ô Ø,-¯K©K«M÷ ’1›dùs   ‚=Ÿ=³
=TF)rF   rk   r€   r
   r   r   r¥   r   Úanyrš   r�   r&   r�   rs   rˆ   r�   Úupdater'   )r‰   r    rŠ   rƒ   ÚdoneÚnot_doner‹   s   &&&    r   r�   r�     sh  € ô4 
ˆR‹€BÜ	˜×	Õ	Ùó F™2�aØ—h‘hÔ#9¼8Ð"DÑD÷ �™2ˆð Fà•9ˆØœ?Ô*·Ü(¨Ó8÷ 
Ò	ð œ_Ô,·$ß‹sñ G™dó G�s�sŠsñ G™dó G÷ Gò Gä,¨TÓ<÷ 
Ò	ô ˆt‹9œ˜B›ÔÜ(¨Ó8÷ 
Ò	ô -¨RÓ=ˆ÷ 
ð  ‡L�L×Ñ�gÔÛˆØ�\�\‹\Ø�J‰J×Ñ˜fÔ%÷ ‰\ñ ð 	‡K�K�×'Ñ'Ô(Ü  ¨D¥yÓ1Ð1ùò+F÷ 
×	ú÷$ �\ˆ\ús^   ŸF/¤F*ÁF*ÁF/Á)
F/Á>F/Â
F/ÂF/Â0F/Ã
F/Ã #F/ÄF/ÅGÆ*F/Æ/F?	ÇGc                 ó€   €   V P                  V4      V P                  4        ? #   T P                  4        i ; i  ? i ; ir#   )ÚresultÚcancel)Úfutr    s   &&r   Ú_result_or_cancelr²   5  s9   € ðð	Ø—:‘:˜gÓ&à�J‰JŒLñ øð �J‰J�Lûñ ús   ƒ% “: ¥7·: º=c                   ó¤   a € ] tR tRt o RtR tR tR tR tR t	R t
R	 tR
 tR tRR ltRR ltR tR tR t]! ]P*                  4      tRtV tR# )ÚFuturei@  z5Represents the result of an asynchronous computation.c                óˆ   € \         P                  ! 4       V n        \        V n        RV n        RV n        . V n        . V n        R# )z8Initializes the future. Should not be called by clients.N)	r$   Ú	Conditionrs   r   r€   Ú_resultÚ
_exceptionrˆ   Ú_done_callbacksr(   s   &r   r*   ÚFuture.__init__C  s6   € ä#×-Ò-Ó/ˆŒÜˆŒØˆŒØˆŒØˆŒØ!ˆÖr   c                óŽ   € V P                    F  p V! V 4       K  	  R#   \         d    \        P                  R T 4        K6  i ; i)ú!exception calling callback for %rN)r¹   Ú	ExceptionÚLOGGERr¨   )r)   Úcallbacks   & r   Ú_invoke_callbacksÚFuture._invoke_callbacksL  sC   € Ø×,Ô,ˆHðLÙ˜–ó -øô ô LÜ× Ñ Ð!DÀd×KðLús   ‘Ÿ!AÁAc                óÎ  € V P                   ;_uu_ 4        V P                  \        8X  dá   V P                  '       dh   R V P                  P
                  \        V 4      \        V P                  ,          V P                  P                  P
                  3,          uuRRR4       # RV P                  P
                  \        V 4      \        V P                  ,          V P                  P                  P
                  3,          uuRRR4       # RV P                  P
                  \        V 4      \        V P                  ,          3,          uuRRR4       #   + '       g   i     R# ; i)z<%s at %#x state=%s raised %s>Nz <%s at %#x state=%s returned %s>z<%s at %#x state=%s>)	rs   r€   r   r¸   rC   r   ro   Ú_STATE_TO_DESCRIPTION_MAPr·   r(   s   &r   Ú__repr__ÚFuture.__repr__S  sì   € Ø�_�_‹_Ø�{‰{œhÔ&Ø—?—?�?Ø;ØŸ™×/Ñ/Ü˜4›Ü1°$·+±+Õ>ØŸ™×1Ñ1×:Ñ:ð	?<õ <÷ Š_ð >ØŸ™×/Ñ/Ü˜4›Ü1°$·+±+Õ>ØŸ™×.Ñ.×7Ñ7ð	A9õ 9÷ Š_ð *Ø—N‘N×+Ñ+Ü�t“HÜ,¨T¯[©[Õ9ð-;õ ;÷ �_�_‹_ús   •'E½AEÂ$AEÄ=EÅE$	c                óh  € V P                   ;_uu_ 4        V P                  \        \        39   d    RRR4       R# V P                  \        \
        39   d    RRR4       R# \        V n        V P                   P                  4        RRR4       V P                  4        R#   + '       g   i     L"; i)z£Cancel the future if possible.

Returns True if the future was cancelled, False otherwise. A future
cannot be cancelled if it is running or has already completed.
NFT)rs   r€   r   r   r	   r
   Ú
notify_allrÀ   r(   s   &r   r°   ÚFuture.cancelg  s}   € ð �_�_‹_Ø�{‰{œw¬Ð1Ô1Ø÷ ‰_ð �{‰{œyÔ*@ÐAÔAØ÷ ‰_ô $ˆDŒKØ�O‰O×&Ñ&Ô(÷ ð 	×ÑÔ Ù÷ �_ús   •B!¼B!Á"%B!Â!B1	c                óš   € V P                   ;_uu_ 4        V P                  \        \        39   uuRRR4       #   + '       g   i     R# ; i)z(Return True if the future was cancelled.N)rs   r€   r	   r
   r(   s   &r   r   ÚFuture.cancelledz  s)   € à�_�_‹_Ø—;‘;¤9Ô.DÐ"EÑE÷ �_�_‹_ús	   •9¹A
	c                óŽ   € V P                   ;_uu_ 4        V P                  \        8H  uuRRR4       #   + '       g   i     R# ; i)z1Return True if the future is currently executing.N)rs   r€   r   r(   s   &r   r   ÚFuture.running  s#   € à�_�_‹_Ø—;‘;¤'Ñ)÷ �_�_‹_ús	   •3³A	c                ó¤   € V P                   ;_uu_ 4        V P                  \        \        \        39   uuRRR4       #   + '       g   i     R# ; i)z>Return True if the future was cancelled or finished executing.N)rs   r€   r	   r
   r   r(   s   &r   r¬   ÚFuture.done„  s+   € à�_�_‹_Ø—;‘;¤9Ô.DÄhÐ"OÑO÷ �_�_‹_ús	   •>¾A	c                ó^   € V P                   e    V P                   hV P                  #   R p i ; ir#   )r¸   r·   r(   s   &r   Ú__get_resultÚFuture.__get_result‰  s0   € Ø�?‰?Ò&ðØ—o‘oÐ%ð
 —<‘<Ðøð ‘ús   �( ¨,c                óV  € V P                   ;_uu_ 4        V P                  \        \        \        39  d'   V P
                  P                  V4        RRR4       R#  RRR4        V! V 4       R#   + '       g   i     L; i  \         d    \        P                  RT 4        R# i ; i)að  Attaches a callable that will be called when the future finishes.

Args:
    fn: A callable that will be called with this future as its only
        argument when the future completes or is cancelled.  The
        callable will always be called by a thread in the same
        process in which it was added.  If the future has already
        completed or been cancelled then the callable will be
        called immediately.  These callables are called in the
        order that they were added.
Nr¼   )
rs   r€   r	   r
   r   r¹   r.   r½   r¾   r¨   )r)   Úfns   &&r   Úadd_done_callbackÚFuture.add_done_callback“  s   € ð �_�_‹_Ø�{‰{¤9Ô.DÄhÐ"OÔOØ×$Ñ$×+Ñ+¨BÔ/Ø÷ ‰_ØO÷ ð	HÙˆtŽH÷ �_ûô ô 	HÜ×ÑÐ@À$×Gð	Hús   •=A0Á&B Á0B 	Â!B(Â'B(Nc                ó  €  V P                   ;_uu_ 4        V P                  \        \        39   d   \	        4       hV P                  \
        8X  d   V P                  4       uuRRR4       Rp # V P                   P                  V4       V P                  \        \        39   d   \	        4       hV P                  \
        8X  d   V P                  4       uuRRR4       Rp # \        4       h  + '       g   i     M; i Rp R#   Rp i ; i)aû  Return the result of the call that the future represents.

Args:
    timeout: The number of seconds to wait for the result if the
        future isn't done.  If None, then there is no limit on the
        wait time.

Returns:
    The result of the call that the future represents.

Raises:
    CancelledError: If the future was cancelled.
    TimeoutError: If the future didn't finish executing before the
        given timeout.
    Exception: If the call raised then that exception will be
        raised.
N)	rs   r€   r	   r
   r   r   Ú_Future__get_resultr�   rœ   ©r)   r    s   &&r   r¯   ÚFuture.result¨  sÇ   € ð$	Ø——“Ø—;‘;¤9Ô.DÐ"EÔEÜ(Ó*Ð*Ø—[‘[¤HÔ,Ø×,Ñ,Ó.÷	 !‘ð  ‰Dð —‘×$Ñ$ WÔ-à—;‘;¤9Ô.DÐ"EÔEÜ(Ó*Ð*Ø—[‘[¤HÔ,Ø×,Ñ,Ó.÷ !‘ð  ‰Dô '›.Ð(÷ !—ú�ð  ŠDø�4‰Dús6   ‚D  –A
C(Á 
D  Á-A$C(Ã
D  Ã
C(Ã(C8	Ã3D  Ä Dc                óÞ  € V P                   ;_uu_ 4        V P                  \        \        39   d   \	        4       hV P                  \
        8X  d   V P                  uuRRR4       # V P                   P                  V4       V P                  \        \        39   d   \	        4       hV P                  \
        8X  d   V P                  uuRRR4       # \        4       h  + '       g   i     R# ; i)aö  Return the exception raised by the call that the future represents.

Args:
    timeout: The number of seconds to wait for the exception if the
        future isn't done.  If None, then there is no limit on the
        wait time.

Returns:
    The exception raised by the call that the future represents or
    None if the call completed without raising.

Raises:
    CancelledError: If the future was cancelled.
    TimeoutError: If the future didn't finish executing before the
        given timeout.
N)	rs   r€   r	   r
   r   r   r¸   r�   rœ   rØ   s   &&r   r¨   ÚFuture.exceptionÍ  sŸ   € ð$ �_�_‹_Ø�{‰{œyÔ*@ÐAÔAÜ$Ó&Ð&Ø—‘¤Ô(Ø—‘÷	 Š_ð �O‰O× Ñ  Ô)à�{‰{œyÔ*@ÐAÔAÜ$Ó&Ð&Ø—‘¤Ô(Ø—‘÷ Š_ô #“nÐ$÷ �_ˆ_ús   •ACÁ&A CÃ
CÃC,	c                ó²  € V P                   ;_uu_ 4        V P                  \        8X  d;   \        V n        V P                   F  pVP                  V 4       K  	   RRR4       R# V P                  \        8X  d   \        V n         RRR4       R# \        P                  R\        V 4      V P                  4       \        R4      h  + '       g   i     R# ; i)a@  Mark the future as running or process any cancel notifications.

Should only be used by Executor implementations and unit tests.

If the future has been cancelled (cancel() was called and returned
True) then any threads waiting on the future completing (though
calls to as_completed() or wait()) are notified and False is
returned.

If the future was not cancelled then it is put in the running state
(future calls to running() will return True) and True is returned.

This method should be called by Executor implementations before
executing the work associated with this future. If this method
returns False then the work should not be executed.

Returns:
    False if the Future was cancelled, True otherwise.

Raises:
    RuntimeError: if this method was already called or if
        set_result() or set_exception() was called.
NFTz!Future %s in unexpected state: %szFuture in unexpected state)rs   r€   r	   r
   rˆ   r8   r   r   r¾   Úcriticalro   ÚRuntimeError)r)   r‹   s   & r   Úset_running_or_notify_cancelÚ#Future.set_running_or_notify_cancelï  sž   € ð0 �_�_‹_Ø�{‰{œiÔ'Ü4�”Ø"Ÿmœm�FØ×(Ñ(¨Ö.ñ ,ð ÷ ‰_ð —‘¤Ô'Ü%�”Ø÷ ‰_ô —‘Ð CÜ " 4£Ø $§¡ô-ô #Ð#?Ó@Ð@÷ �_ˆ_ús   •ACÁ%!CÂ5CÃC	c                ó®  € V P                   ;_uu_ 4        V P                  \        \        \        09   d&   \        RP                  V P                  V 4      4      hWn        \        V n        V P                   F  pVP                  V 4       K  	  V P                   P                  4        RRR4       V P                  4        R#   + '       g   i     L"; i)z{Sets the return value of work associated with the future.

Should only be used by Executor implementations and unit tests.
ú{}: {!r}N)rs   r€   r	   r
   r   r   Úformatr·   rˆ   r1   rÇ   rÀ   )r)   r¯   r‹   s   && r   Ú
set_resultÚFuture.set_result  s�   € ð
 �_�_‹_Ø�{‰{œyÔ*@Ä(ÐKÔKÜ'¨
×(9Ñ(9¸$¿+¹+ÀtÓ(LÓMÐMØ!ŒLÜ"ˆDŒKØŸ-œ-�Ø×!Ñ! $Ö'ñ (à�O‰O×&Ñ&Ô(÷ ð 	×ÑÖ ÷ �_úó   •BCÃC	c                ó®  € V P                   ;_uu_ 4        V P                  \        \        \        09   d&   \        RP                  V P                  V 4      4      hWn        \        V n        V P                   F  pVP                  V 4       K  	  V P                   P                  4        RRR4       V P                  4        R#   + '       g   i     L"; i)z}Sets the result of the future as being the given exception.

Should only be used by Executor implementations and unit tests.
râ   N)rs   r€   r	   r
   r   r   rã   r¸   rˆ   r5   rÇ   rÀ   )r)   r¨   r‹   s   && r   Úset_exceptionÚFuture.set_exception'  s�   € ð
 �_�_‹_Ø�{‰{œyÔ*@Ä(ÐKÔKÜ'¨
×(9Ñ(9¸$¿+¹+ÀtÓ(LÓMÐMØ'ŒOÜ"ˆDŒKØŸ-œ-�Ø×$Ñ$ TÖ*ñ (à�O‰O×&Ñ&Ô(÷ ð 	×ÑÖ ÷ �_úræ   )rs   r¹   r¸   r·   r€   rˆ   r#   )r   r   r   r   r   r*   rÀ   rÄ   r°   r   r   r¬   r×   rÔ   r¯   r¨   rß   rä   rè   ÚclassmethodÚtypesÚGenericAliasÚ__class_getitem__r   r:   r;   s   @r   r´   r´   @  si   ø‡ € Ù?ò"òLò;ò(ò&Fò
*ò
Pò
 òHô*#ôJ%òD'AòR!ò!ñ $ E×$6Ñ$6Ó7Ör   r´   c                   ó^   a € ] tR tRt o RtR tRRR^RR/R ltRR	R
/R lltR tR t	Rt
V tR# )ÚExecutori8  zCThis is an abstract base class for concrete asynchronous executors.c               ó   € \        4       h)zøSubmits a callable to be executed with the given arguments.

Schedules the callable to be executed as fn(*args, **kwargs) and
returns a Future instance representing the execution of the
callable.

Returns:
    A Future representing the given call.
)ÚNotImplementedError)r)   rÓ   rz   Úkwargss   ""*,r   ÚsubmitÚExecutor.submit;  s   € ô "Ó#Ð#r   r    NÚ	chunksizeÚ
buffersizec               óæ  a aaaaa	a
a€ Se"   \        S\        4      '       g   \        R4      hSe   S^8  d   \        R4      hSe   S\        P
                  ! 4       ,           o\        V!  oS'       d-   \        P                  ! VV 3R l\        SS4       4       4      o
M$S Uu. uF  pS P                  ! S.VO5!  NK  	  upo
\        P                  ! S 4      o	VVV	VV
VV3R lpV! 4       # u upi )a)  Returns an iterator equivalent to map(fn, iter).

Args:
    fn: A callable that will take as many arguments as there are
        passed iterables.
    timeout: The maximum number of seconds to wait. If None, then
        there is no limit on the wait time.
    chunksize: The size of the chunks the iterable will be broken
        into before being passed to a child process.  This argument
        is only used by ProcessPoolExecutor; it is ignored by
        ThreadPoolExecutor.
    buffersize: The number of submitted tasks whose results have not
        yet been yielded.  If the buffer is full, iteration over the
        iterables pauses until a result is yielded from the buffer.
        If None, all input elements are eagerly collected, and
        a task is submitted for each.

Returns:
    An iterator equivalent to: map(func, *iterables) but the calls
    may be evaluated out-of-order.

Raises:
    TimeoutError: If the entire result iterator could not be
        generated before the given timeout.
    Exception: If fn(*args) raises for any values.
z%buffersize must be an integer or Nonezbuffersize must be None or > 0c              3   óL   <"  € T F  pSP                   ! S.VO5!  x € K  	  R # 5ir#   )ró   )r‚   rz   rÓ   r)   s   & €€r   r„   ÚExecutor.map.<locals>.<genexpr>l  s&   øé € ð #Ù3W¨4�—’˜BÐ& ×&Ð&Ó3Wùs   ƒ!$c               3   ó   <"  €  SP                  4        S'       d¨   S'       dG   S! 4       ;p '       d8   \        S	R 4      ;p'       d$   SP                  V P                  ! S.VO5!  4       Sf   \	        SP                  4       4      x € Kw  \	        SP                  4       S\        P                  ! 4       ,
          4      x € K¯   S F  pVP                  4        K  	  R #   S F  pTP                  4        K  	  i ; i5ir#   )	rŸ   ÚnextÚ
appendleftró   r²   r‘   r˜   r™   r°   )
Úexecutorrz   r0   rö   r¡   Úexecutor_weakrefrÓ   r‰   r    Úzipped_iterabless
      €€€€€€€r   Úresult_iteratorÚ%Executor.map.<locals>.result_iteratorx  s·   øé € ð$à—
‘
”ßç"Ù)9Ó);Ð;˜XÖ;Ü%)Ð*:¸DÓ%AÐA˜TÖAàŸ™ h§o¢o°bÐ&@¸4Ó&@ÔAà’Ü/°·±³Ó9Ô9ä/°·±³¸(ÄTÇ^Â^ÓEUÕ:UÓVÔVð ó !�FØ—M‘M–Oó !ø›b�FØ—M‘M–Oò !üs,   ƒC>…C  �C  ¥C  ´BC  ÃC>Ã C;Ã;C>)Ú
isinstanceÚintÚ	TypeErrorr‡   r˜   r™   ÚzipÚcollectionsÚdequer   ró   ÚweakrefÚref)r)   rÓ   r    rõ   rö   Ú	iterablesrz   r   r¡   rþ   r‰   rÿ   s   ffd$d*  @@@@r   ÚmapÚExecutor.mapG  s×   ÿ€ ð6 Ò!¬*°ZÄ×*EÒ*EÜÐCÓDÐDØÒ! j°1¤nÜÐ=Ó>Ð>àÒØ¤§¢Ó!1Õ1ˆHä 	™?ÐßÜ×"Ò"õ #Ü39Ð:JÈJÔ3Wó#ó ‰Bñ 6FÓFÑ5E¨T�$—+’+˜bÐ( 4Ö(Ñ5EÑFˆBô #Ÿ;š; tÓ,Ð÷	$ó 	$ñ& Ó Ð ùò7 Gs   Â%C.Úcancel_futuresFc               ó   € R# )aë  Clean-up the resources associated with the Executor.

It is safe to call this method several times. Otherwise, no other
methods can be called after this one.

Args:
    wait: If True then shutdown will not return until all running
        futures have finished executing and the resources used by
        the executor have been reclaimed.
    cancel_futures: If True then shutdown will cancel all pending
        futures. Futures that are completed or running will not be
        cancelled.
Nr   )r)   r�   r  s   &&$r   ÚshutdownÚExecutor.shutdown�  s   € ñ 	r   c                ó   € V # r#   r   r(   s   &r   ru   ÚExecutor.__enter__�  s   € Øˆr   c                ó*   € V P                  R R7       R# )T)r�   F)r  )r)   Úexc_typeÚexc_valÚexc_tbs   &&&&r   r{   ÚExecutor.__exit__   s   € Ø�‰˜4ˆÔ Ùr   r   )T)r   r   r   r   r   ró   r  r  ru   r{   r   r:   r;   s   @r   rï   rï   8  sG   ø‡ € ÙMò
$ðD!¨$ð D!¸!ð D!Èô D!ñL°Eõ ò ÷ð r   rï   c                   ó   € ] tR tRtRtRtR# )ÚBrokenExecutori¥  zK
Raised when an executor has become non-functional after a severe failure.
r   Nr   r   r   r   r  r  ¥  s   † õr   r  r#   )+Ú
__author__r  Úloggingr$   r˜   rë   r  Ú	itertoolsr   r   r   r   r   r   r   r	   r
   r   rÃ   Ú	getLoggerr¾   r½   r   r   rœ   r   Úobjectr!   r>   rR   r[   rk   r�   r”   r¤   Ú
namedtupler¥   r�   r²   r´   rï   rÞ   r  r   r   r   Ú<module>r      sP  ðð 2€
ã Û Û Û Û Û Ý à#€Ø#€Ø€Ø€ð €Ø
€à€	à1Ð Ø€ð ˆYØˆYØˆ{Ø˜KØˆjðÐ ð 
×	Ò	Ð/Ó	0€ô	ˆIô 	ô	�Uô 	ð €ô	˜ô 	ô-ˆfô -ô˜ô ô,˜Gô ô(˜'ô (ô<(�fô (òò,ô,<*ð| $×.Ò.Ø ó2Ð à }ô 12ôhôv8ˆVô v8ôpjˆvô jôZ�\ö r   