+
    TŎi-                       a  R& t/0 t ^ RIt^ RIt^ RIt^ RIHtHt ^ RIHt ^ RI	H
t
HtHtHtHtHt ]P                   R'8  d   ^ RIHt M^ RI	Ht ]]]RR3,          t  ^ RItR	t ]P                   R(8  d   ^ RIHt M^ RIHt R	tRtR)t^ t R*t! ! R R]4      t" ! R R]4      t# ! R R]4      t$ ! R R]R
R7      t% ! R R4      t&]&! ]4      t'] ^ k R R lt(R+R R llt) ! R R]4      t* ! R R4      t+ ! R  R!]*4      t, ! R" R#]*4      t- ! R$ R%]*4      t.R#   ] d    ^ RIt Li ; i  ] d    R
t Li ; i  ] d    R
t Li ; i),    N)ABCabstractmethod)Executor)AnyFinalOptionalProtocol	TypedDictcast)Buffer)Unionzmemoryview[int]zmemoryview[bytes]TF)ZstdDecompressori   c                   H   a  ] tR t^,t o V 3R lR ltRV 3R lR lltRtV tR# )ZLibCompressObjProtocolc                &   < V ^8  d   QhRS[ RS[/#    datareturn)r   bytes)format__classdict__s   "h/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/aiohttp/compression_utils.py__annotate__$ZLibCompressObjProtocol.__annotate__-   s    22V22    c                    R # N selfr   s   &&r   compress ZLibCompressObjProtocol.compress-   s    sr   c                &   < V ^8  d   QhRS[ RS[/# r   moder   intr   )r   r   s   "r   r   r   .   s    55#555r   c                   R # r   r   r!   r&   s   ""r   flushZLibCompressObjProtocol.flush.   s    #r   r   N.)__name__
__module____qualname____firstlineno__r"   r+   __static_attributes____classdictcell__r   s   @r   r   r   ,   s     22555r   r   c                   h   a  ] tR t^1t o R	V 3R lR lltR	V 3R lR llt]V 3R lR l4       tRtV t	R# )
ZLibDecompressObjProtocolc                ,   < V ^8  d   QhRS[ RS[RS[/# r   r   
max_lengthr   r   r(   r   )r   r   s   "r   r   &ZLibDecompressObjProtocol.__annotate__2   s    KKvK3KKr   c                    R # r   r   r!   r   r9   s   &&&r   
decompress$ZLibDecompressObjProtocol.decompress2   s    r   c                &   < V ^8  d   QhRS[ RS[/# r   lengthr   r'   )r   r   s   "r   r   r;   3   s    77C7U7r   c                   R # r   r   r!   rB   s   ""r   r+   ZLibDecompressObjProtocol.flush3   s    Cr   c                    < V ^8  d   QhRS[ /# r   r   bool)r   r   s   "r   r   r;   6   s    Tr   c                    R # r   r   r!   s   &r   eofZLibDecompressObjProtocol.eof5   s    r   r   Nr-   )
r.   r/   r0   r1   r>   r+   propertyrL   r2   r3   r4   s   @r   r6   r6   1   s     KK77 r   r6   c                      a  ] tR t^9t o RV 3R lR lltRV 3R lR lltRV 3R lR lltRV 3R lR lltV 3R	 ltR
t	V t
R# )ZLibBackendProtocolc                T   < V ^8  d   QhRS[ RS[ RS[ RS[ RS[ RS[S[,          RS[/# )r   levelmethodwbitsmemLevelstrategyzdictr   )r(   r   r   r   )r   r   s   "r   r    ZLibBackendProtocol.__annotate__@   sV     & && & 	&
 & & & 
!&r   c                    R # r   r   )r!   rR   rS   rT   rU   rV   rW   s   &&&&&&&r   compressobjZLibBackendProtocol.compressobj@   s     #&r   c                ,   < V ^8  d   QhRS[ RS[RS[/# )r   rT   rW   r   )r(   r   r6   )r   r   s   "r   r   rX   I   s%     ( (('-(	"(r   c                    R # r   r   )r!   rT   rW   s   &&&r   decompressobj!ZLibBackendProtocol.decompressobjI   s    $'r   c                2   < V ^8  d   QhRS[ RS[ RS[RS[/# )r   rR   rT   r   r   r(   r   r   )r   r   s   "r   r   rX   M   s-      &)8;	r   c                   R # r   r   )r!   r   rR   rT   s   ""&&r   r"   ZLibBackendProtocol.compressM       r   c                2   < V ^8  d   QhRS[ RS[ RS[RS[/# )r   rT   bufsizer   r   ra   )r   r   s   "r   r   rX   P   s-      &):=	r   c                   R # r   r   )r!   r   rT   rf   s   ""&&r   r>   ZLibBackendProtocol.decompressP   rd   r   c                V   < V ^8  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   # )r   	MAX_WBITSZ_FULL_FLUSHZ_SYNC_FLUSHZ_BEST_SPEEDZ_FINISHr(   )r   r   s   "r   r   rX   9   s@     N     	 
 M r   r   N)......)..)r.   r/   r0   r1   rZ   r^   r"   r>   __annotate_func__r2   r3   r4   s   @r   rP   rP   9   s4     & &( (  /  r   rP   c                   ,   a  ] tR t^Ut o V 3R ltRtV tR# )CompressObjArgsc                >   < V ^8  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   # )r   rT   rV   rR   ro   )r   r   s   "r   r   CompressObjArgs.__annotate__U   s%     J M  J r   r   N)r.   r/   r0   r1   rp   r2   r3   r4   s   @r   rr   rr   U   s      r   rr   )totalc                   4  a  ] tR t^[t o V 3R lR lt]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R	 lR
 l4       t	]V 3R lR l4       t
]V 3R lR l4       tV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltRtV tR# )ZLibBackendWrapperc                    < V ^8  d   QhRS[ /# )r   _zlib_backendrP   )r   r   s   "r   r   ZLibBackendWrapper.__annotate__\   s     @ @&9 @r   c                    Wn         R # r   ry   )r!   ry   s   &&r   __init__ZLibBackendWrapper.__init__\   s    2?r   c                    < V ^8  d   QhRS[ /# rG   )str)r   r   s   "r   r   r{   `   s     D Dc Dr   c                0    \        V P                  R R4      # )r.   	undefinedgetattrry   rK   s   &r   nameZLibBackendWrapper.name_   s    t)):{CCr   c                    < V ^8  d   QhRS[ /# rG   ro   )r   r   s   "r   r   r{   d   s     , ,3 ,r   c                .    V P                   P                  # r   )ry   rj   rK   s   &r   rj   ZLibBackendWrapper.MAX_WBITSc   s    !!+++r   c                    < V ^8  d   QhRS[ /# rG   ro   )r   r   s   "r   r   r{   h        / /c /r   c                .    V P                   P                  # r   )ry   rk   rK   s   &r   rk   ZLibBackendWrapper.Z_FULL_FLUSHg       !!...r   c                    < V ^8  d   QhRS[ /# rG   ro   )r   r   s   "r   r   r{   l   r   r   c                .    V P                   P                  # r   )ry   rl   rK   s   &r   rl   ZLibBackendWrapper.Z_SYNC_FLUSHk   r   r   c                    < V ^8  d   QhRS[ /# rG   ro   )r   r   s   "r   r   r{   p   r   r   c                .    V P                   P                  # r   )ry   rm   rK   s   &r   rm   ZLibBackendWrapper.Z_BEST_SPEEDo   r   r   c                    < V ^8  d   QhRS[ /# rG   ro   )r   r   s   "r   r   r{   t   s     + +# +r   c                .    V P                   P                  # r   )ry   rn   rK   s   &r   rn   ZLibBackendWrapper.Z_FINISHs   s    !!***r   c                ,   < V ^8  d   QhRS[ RS[ RS[/# r   argskwargsr   )r   r   )r   r   s   "r   r   r{   w   s#     ? ? ? ?8O ?r   c                :    V P                   P                  ! V/ VB # r   )ry   rZ   r!   r   r   s   &*,r   rZ   ZLibBackendWrapper.compressobjw   s    !!--t>v>>r   c                ,   < V ^8  d   QhRS[ RS[ RS[/# r   )r   r6   )r   r   s   "r   r   r{   z   s(     A A3 A# A:S Ar   c                :    V P                   P                  ! V/ VB # r   )ry   r^   r   s   &*,r   r^    ZLibBackendWrapper.decompressobjz   s    !!//@@@r   c                2   < V ^8  d   QhRS[ RS[RS[RS[/# r   r   r   r   r   r   r   r   )r   r   s   "r   r   r{   }   s/     B BV BC B3 B5 Br   c                B    V P                   P                  ! V.VO5/ VB # r   )ry   r"   r!   r   r   r   s   &&*,r   r"   ZLibBackendWrapper.compress}   s#    !!**4A$A&AAr   c                2   < V ^8  d   QhRS[ RS[RS[RS[/# r   r   )r   r   s   "r   r   r{      s/     D Dv Dc DS DU Dr   c                B    V P                   P                  ! V.VO5/ VB # r   )ry   r>   r   s   &&*,r   r>   ZLibBackendWrapper.decompress   s#    !!,,TCDCFCCr   c                &   < V ^8  d   QhRS[ RS[/# )r   attrnamer   )r   r   )r   r   s   "r   r   r{      s     5 5C 5C 5r   c                .    \        V P                  V4      # r   r   )r!   r   s   &&r   __getattr__ZLibBackendWrapper.__getattr__   s    t))844r   r}   N)r.   r/   r0   r1   r~   rN   r   rj   rk   rl   rm   rn   rZ   r^   r"   r>   r   r2   r3   r4   s   @r   rw   rw   [   s     @ @ D D , , / / / / / / + +? ?A AB BD D5 5r   rw   c                (    V ^8  d   QhR\         RR/# )r   new_zlib_backendr   Nrz   )r   s   "r   r   r      s     1 1': 1t 1r   c                     V \         n        R # r   )ZLibBackendry   )r   s   &r   set_zlib_backendr      s
     0Kr   c                R    V ^8  d   QhR\         \        ,          R\        R\        /# )r   encodingsuppress_deflate_headerr   )r   r   rI   r(   )r   s   "r   r   r      s/     X XsmX!X 	Xr   c                     V R 8X  d   ^\         P                  ,           # V'       d   \         P                  ) # \         P                  # )gzip)r   rj   )r   r   s   &&r   encoding_to_moder      s9     6K))))%<K!!!W+BWBWWr   c                   t   a  ] tR t^t o R]3V 3R lR llt]]3V 3R lR ll4       t]3V 3R lR llt	Rt
V tR# )	DecompressionBaseHandlerNc                F   < V ^8  d   QhRS[ S[,          RS[ S[,          /# )r   executormax_sync_chunk_sizer   r   r(   )r   r   s   "r   r   %DecompressionBaseHandler.__annotate__   s(     8 88$8 &c]8r   c                    Wn         W n        R# )z&Base class for decompression handlers.N	_executor_max_sync_chunk_size)r!   r   r   s   &&&r   r~   !DecompressionBaseHandler.__init__   s     "$7!r   c                ,   < V ^8  d   QhRS[ RS[RS[ /# r8   r   r(   )r   r   s   "r   r   r      s%     ) ))'*)	)r   c                    R# Decompress the given data.Nr   r=   s   &&&r   decompress_sync(DecompressionBaseHandler.decompress_sync   s    r   c                ,   < V ^8  d   QhRS[ RS[RS[ /# r8   r   )r   r   s   "r   r   r      s%     6 66'*6	6r   c                  "   V P                   e]   \        V4      V P                   8  dC   \        P                  ! 4       P	                  V P
                  V P                  W4      G Rj  xL
 # V P                  W4      #  L5ir   )r   lenasyncioget_event_looprun_in_executorr   r   r=   s   &&&r   r>   #DecompressionBaseHandler.decompress   so     
 %%1D	D555 //1AA 4 4d   ##D55s   A&B (A>)B r   )r.   r/   r0   r1   MAX_SYNC_CHUNK_SIZEr~   r   ZLIB_MAX_LENGTH_UNLIMITEDr   r>   r2   r3   r4   s   @r   r   r      sH      (,-@8 8 -F) ) ) .G6 6 6r   r   c                   ~   a  ] tR t^t o RRRRRR]3V 3R lR lltV 3R lR ltV 3R lR ltRV 3R	 lR
 lltRt	V t
R# )ZLibCompressorNFc                   < V ^8  d   QhRS[ S[,          RS[RS[ S[,          RS[ S[,          RS[ S[,          RS[ S[,          RS[ S[,          /# )r   r   r   rR   rT   rV   r   r   )r   r   rI   r(   r   )r   r   s   "r   r   ZLibCompressor.__annotate__   ss     D D3-D "&D }	D
 }D 3-D 8$D &c]Dr   c                
   W`n         Wpn        Vf   \        W4      MTV n        \	        \
        P                  4      V n        / pV P                  VR&   Ve   WXR&   Ve   W8R&   V P                  P                  ! R/ VB V n        R # )NrT   rV   rR   r   )	r   r   r   _moderw   r   ry   rZ   _compressor)	r!   r   r   rR   rT   rV   r   r   r   s	   &&&&&&&& r   r~   ZLibCompressor.__init__   s     "$7! } X? 	

 %7{7P7P$Q"$**w!):#7O--99CFCr   c                &   < V ^8  d   QhRS[ RS[ /# r   r   )r   r   s   "r   r   r      s     / /% /E /r   c                8    V P                   P                  V4      # r   )r   r"   r    s   &&r   compress_syncZLibCompressor.compress_sync   s    ((..r   c                &   < V ^8  d   QhRS[ RS[ /# r   r   )r   r   s   "r   r   r      s     ( (5 (U (r   c                4  "   V P                   RJ;'       d    \        V4      V P                   8  pV'       dM   \        P                  ! 4       P	                  V P
                  V P                  P                  V4      G Rj  xL
 # V P                  V4      #  L5i)a  Compress the data and returned the compressed bytes.

Note that flush() must be called after the last call to compress()

If the data size is large than the max_sync_chunk_size, the compression
will be done in the executor. Otherwise, the compression will be done
in the event loop.

**WARNING: This method is NOT cancellation-safe when used with flush().**
If this operation is cancelled, the compressor state may be corrupted.
The connection MUST be closed after cancellation to avoid data corruption
in subsequent compress operations.

For cancellation-safe compression (e.g., WebSocket), the caller MUST wrap
compress() + flush() + send operations in a shield and lock to ensure atomicity.
N)	r   r   r   get_running_loopr   r   r   r"   r   )r!   r   should_use_executors   && r   r"   ZLibCompressor.compress   s     & %%T1 6 6D	D555 	  113CC 0 0 9 94   !!$''s   6BAB BBc                6   < V ^8  d   QhRS[ S[,          RS[/# r%   )r   r(   r   )r   r   s   "r   r   r      s     
 
(3- 
5 
r   c                t    V P                   P                  Ve   V4      # V P                  P                  4      # )a  Flush the compressor synchronously.

**WARNING: This method is NOT cancellation-safe when called after compress().**
The flush() operation accesses shared compressor state. If compress() was
cancelled, calling flush() may result in corrupted data. The connection MUST
be closed after compress() cancellation.

For cancellation-safe compression (e.g., WebSocket), the caller MUST wrap
compress() + flush() + send operations in a shield and lock to ensure atomicity.
)r   r+   ry   rn   r*   s   &&r   r+   ZLibCompressor.flush   s>     %%$D
 	
*.*<*<*E*E
 	
r   )r   r   r   r   ry   r   )r.   r/   r0   r1   r   r~   r   r"   r+   r2   r3   r4   s   @r   r   r      sK      #'(-##"&'+-@D D6/ /( (8
 
 
r   r   c                      a a ] tR tRt oRRR]3V3R lV 3R lllt]3V3R lR lltRV3R lR	 llt]	V3R
 lR l4       t
RtVtV ;t# )ZLibDecompressori  NFc          	      b   < V ^8  d   QhRS[ S[,          RS[RS[ S[,          RS[ S[,          /# )r   r   r   r   r   )r   r   rI   r   r(   )r   r   s   "r   r   ZLibDecompressor.__annotate__  sF     
P 
P3-
P "&
P 8$	
P
 &c]
Pr   c                   < \         SV `  W4R 7       \        W4      V n        \	        \
        P                  4      V n        V P                  P                  V P                  R7      V n        R# )r   r   )rT   N)	superr~   r   r   rw   r   ry   r^   _decompressor)r!   r   r   r   r   	__class__s   &&&&&r   r~   ZLibDecompressor.__init__  sT     	(T%hH
$6{7P7P$Q!//==DJJ=Or   c                ,   < V ^8  d   QhRS[ RS[RS[/# r8   r:   )r   r   s   "r   r   r     s%     ? ??(+?	?r   c                8    V P                   P                  W4      # r   )r   r>   r=   s   &&&r   r    ZLibDecompressor.decompress_sync  s     !!,,T>>r   c                &   < V ^8  d   QhRS[ RS[/# rA   r'   )r   r   s   "r   r   r     s     
 
C 
 
r   c                z    V^ 8  d   V P                   P                  V4      # V P                   P                  4       # r   )r   r+   rD   s   &&r   r+   ZLibDecompressor.flush  s?     z $$V,	
 ##))+	
r   c                    < V ^8  d   QhRS[ /# rG   rH   )r   r   s   "r   r   r     s     & &T &r   c                .    V P                   P                  # r   )r   rL   rK   s   &r   rL   ZLibDecompressor.eof  s    !!%%%r   )r   r   ry   r   )r.   r/   r0   r1   r   r~   r   r   r+   rN   rL   r2   r3   __classcell__r   r   s   @@r   r   r     sR      #'(-'+-@
P 
P /H? ?

 
 & & &r   r   c                   p   a a ] tR tRt oR]3V3R lV 3R lllt]3V3R lR lltV3R lR ltR	t	Vt
V ;t# )
BrotliDecompressori   Nc                J   < V ^8  d   QhRS[ S[,          RS[ S[,          RR/# r   r   r   r   Nr   )r   r   s   "r   r   BrotliDecompressor.__annotate__$  s7     U U8$U &c]U 
	Ur   c                   < \         '       g   \        R4      h\        P                  ! 4       V n        \
        SV `  WR7       R# )z)Decompress data using the Brotli library.zIThe brotli decompression is not available. Please install `Brotli` moduler   N)
HAS_BROTLIRuntimeErrorbrotliDecompressor_objr   r~   r!   r   r   r   s   &&&r   r~   BrotliDecompressor.__init__$  s>     z1  '')	(Tr   c                ,   < V ^8  d   QhRS[ RS[RS[/# r8   r:   )r   r   s   "r   r   r  2  s*     @ @@(+@	@r   c                    \        V P                  R4      '       d*   \        \        V P                  P	                  W4      4      # \        \        V P                  P                  W4      4      # )r   r>   )hasattrr  r   r   r>   processr=   s   &&&r   r   "BrotliDecompressor.decompress_sync2  sM     499l++tyy33DEFFE499,,T>??r   c                    < V ^8  d   QhRS[ /# rG   r   )r   r   s   "r   r   r  :  s      u r   c                    \        V P                  R4      '       d)   \        \        V P                  P	                  4       4      # R# )zFlush the decompressor.r+   r   )r  r  r   r   r+   rK   s   &r   r+   BrotliDecompressor.flush:  s.    499g&&tyy011r   r  r.   r/   r0   r1   r   r~   r   r   r+   r2   r3   r  r  s   @@r   r  r     s:      (,-@U U /H@ @  r   r  c                   p   a a ] tR tRt oR]3V3R lV 3R lllt]3V3R lR lltV3R lR ltR	t	Vt
V ;t# )
ZSTDDecompressoriA  Nc                J   < V ^8  d   QhRS[ S[,          RS[ S[,          RR/# r  r   )r   r   s   "r   r   ZSTDDecompressor.__annotate__B  s7     U U8$U &c]U 
	Ur   c                t   < \         '       g   \        R 4      h\        4       V n        \        SV `  WR7       R# )zOThe zstd decompression is not available. Please install `backports.zstd` moduler   N)HAS_ZSTDr
  r   r  r   r~   r  s   &&&r   r~   ZSTDDecompressor.__init__B  s8    
 x9  %&	(Tr   c                ,   < V ^8  d   QhRS[ RS[RS[ /# r8   r   )r   r   s   "r   r   r  O  s%     
; 
;
;'*
;	
;r   c                ^    V\         8X  d   \        MTpV P                  P                  W4      # r   )r   ZSTD_MAX_LENGTH_UNLIMITEDr  r>   )r!   r   r9   zstd_max_lengths   &&& r   r    ZSTDDecompressor.decompress_syncO  s1     66 & 	
 yy##D::r   c                    < V ^8  d   QhRS[ /# rG   r   )r   r   s   "r   r   r  [  s      u r   c                    R # )r   r   rK   s   &r   r+   ZSTDDecompressor.flush[  s    r   r  r  r  s   @@r   r  r  A  s8      (,-@U U .G
; 
;  r   r  c                @    V ^8  d   Qh/ ^ \         9   d
   \        ;R&   # )r   r   )__conditional_annotations__rw   )r   s   "r   r   r      s    N ; : :O r   )      )r+     i   )NF)0r*  r   syszlibabcr   r   concurrent.futuresr   typingr   r   r   r	   r
   r   version_infocollections.abcr   r   r   	bytearray
brotlicffir  ImportErrorr	  compression.zstdr   backports.zstdr  r   DEFAULT_MAX_DECOMPRESS_SIZEr   r#  r   r6   rP   rr   rw   r   r   r   r   r   r   r  r  r   )r*  s   @r   <module>r<     sk    
  # ' B Bw&5)%68KKLF# J
7"53H
  #    6h 6
 ( 8iu *5 *5Z #5T": :1X6s 6<H
 H
V&/ &<1 B/ _	    J  HsB   D "D( % D7 D%"D( $D%%D( (	D43D47	EE