+
    i	/              
         R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^RIHt  ^ RI	t	 ^ RI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 R]4      t ! R R4      t ! R R4      t ! R R4      t ! R R4      tR]R]R]R]R]/t]	f   ]P3                  R4       ]f   ]P3                  R4       R# R#   ]
 d     ^ RIt	 L  ]
 d    Rt	  Li ; ii ; i  ]
 d    Rt Li ; i)zq
Handlers for Content-Encoding.

See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
)annotationsN)DecodingErrorc                  .    ] tR t^$tR R ltR R ltRtR# )ContentDecoderc                    V ^8  d   QhRRRR/#    databytesreturn )formats   "b/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/httpx/_decoders.py__annotate__ContentDecoder.__annotate__%   s     $ $5 $U $    c                	    \        4       hNNotImplementedErrorselfr	   s   &&r   decodeContentDecoder.decode%       !##r   c                   V ^8  d   QhRR/# r   r   r
   r   )r   s   "r   r   r   (   s     $ $u $r   c                	    \        4       hr   r   r   s   &r   flushContentDecoder.flush(   r   r   r   N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   r   r   $   s    $$ $r   r   c                  2    ] tR t^,tRtR R ltR R ltRtR# )IdentityDecoderz
Handle unencoded data.
c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   IdentityDecoder.__annotate__1   s      5 U r   c                	    V# r   r   r   s   &&r   r   IdentityDecoder.decode1   s    r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r)   4   s      u r   c                	    R # r   r   r   s   &r   r   IdentityDecoder.flush4   s    r   r   N)r!   r"   r#   r$   __doc__r   r   r%   r   r   r   r'   r'   ,   s     r   r'   c                  >    ] tR t^8tRtR R ltR R ltR R ltRtR	# )
DeflateDecoderzN
Handle 'deflate' decoding.

See: https://stackoverflow.com/questions/1838699
c                   V ^8  d   QhRR/# r   r   Noner   )r   s   "r   r   DeflateDecoder.__annotate__?   s     1 1$ 1r   c                	H    R V n         \        P                  ! 4       V n        R# )TN)first_attemptzlibdecompressobjdecompressorr   s   &r   __init__DeflateDecoder.__init__?   s    ! ..0r   c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   r6   C   s     	3 	35 	3U 	3r   c                	T   V P                   pR V n          V P                  P                  V4      #   \        P                   dc   pT'       dA   \        P
                  ! \        P                  ) 4      T n        T P                  T4      u Rp?# \        \        T4      4      ThRp?ii ; iFN)
r8   r;   
decompressr9   errorr:   	MAX_WBITSr   r   str)r   r	   was_first_attemptexcs   &&  r   r   DeflateDecoder.decodeC   s     .."	3$$//55zz 	3 $($6$6$G!{{4((C)s2		3s"   0 B'AB"B'B""B'c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r6   N        3 3u 3r   c                	     V P                   P                  4       #   \        P                   d   p\	        \        T4      4      ThR p?ii ; ir   r;   r   r9   rB   r   rD   r   rF   s   & r   r   DeflateDecoder.flushN   A    	3$$**,,zz 	3C)s2	3    AAA)r;   r8   N	r!   r"   r#   r$   r0   r<   r   r   r%   r   r   r   r2   r2   8   s    1	33 3r   r2   c                  >    ] tR t^UtRtR R ltR R ltR R ltRtR	# )
GZipDecoderzK
Handle 'gzip' decoding.

See: https://stackoverflow.com/questions/1838699
c                   V ^8  d   QhRR/# r4   r   )r   s   "r   r   GZipDecoder.__annotate__\   s     D D$ Dr   c                	f    \         P                  ! \         P                  ^,          4      V n        R# )   N)r9   r:   rC   r;   r   s   &r   r<   GZipDecoder.__init__\   s     ..t~~/BCr   c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   rT   _   s     3 35 3U 3r   c                	     V P                   P                  V4      #   \        P                   d   p\	        \        T4      4      ThR p?ii ; ir   )r;   rA   r9   rB   r   rD   r   r	   rF   s   && r   r   GZipDecoder.decode_   sC    	3$$//55zz 	3C)s2	3s    AAAc                   V ^8  d   QhRR/# r   r   )r   s   "r   r   rT   e   rI   r   c                	     V P                   P                  4       #   \        P                   d   p\	        \        T4      4      ThR p?ii ; ir   rK   rL   s   & r   r   GZipDecoder.flushe   rN   rO   )r;   NrP   r   r   r   rR   rR   U   s    D33 3r   rR   c                  >    ] tR t^ltRtR R ltR R ltR R ltRtR	# )
BrotliDecodera<  
Handle 'brotli' decoding.

Requires `pip install brotlipy`. See: https://brotlipy.readthedocs.io/
    or   `pip install brotli`. See https://github.com/google/brotli
Supports both 'brotlipy' and 'Brotli' packages since they share an import
name. The top branches are for 'brotlipy' and bottom branches for 'Brotli'
c                   V ^8  d   QhRR/# r4   r   )r   s   "r   r   BrotliDecoder.__annotate__v   s     9 9$ 9r   c                	   \         f   \        R4      R h\         P                  ! 4       V n        RV n        V  \        V P                  R4      '       d   V P                  P                  V n        R # V P                  P                  V n        R # )NzUsing 'BrotliDecoder', but neither of the 'brotlicffi' or 'brotli' packages have been installed. Make sure to install httpx using `pip install httpx[brotli]`.FrA   )	brotliImportErrorDecompressorr;   	seen_datahasattrrA   _decompressprocessr   s   &r   r<   BrotliDecoder.__init__v   sy    >P 	 #//14$$l33#00;;D  $0088Dr   c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   rb      s     3 35 3U 3r   c                	    V'       g   R # RV n          V P                  V4      #   \        P                   d   p\	        \        T4      4      ThRp?ii ; i)r   TN)rg   ri   rd   rB   r   rD   rZ   s   && r   r   BrotliDecoder.decode   sJ    	3##D))|| 	3C)s2	3s   $ AAAc                   V ^8  d   QhRR/# r   r   )r   s   "r   r   rb      s     3 3u 3r   c                	    V P                   '       g   R #  \        V P                  R4      '       d   V P                  P                  4        R #   \        P
                   d   p\        \        T4      4      ThRp?ii ; i)r   finishN)rg   rh   r;   rq   rd   rB   r   rD   rL   s   & r   r   BrotliDecoder.flush   sb    ~~~
	3t(((33 !!((*|| 	3C)s2	3s   6A A=#A88A=)ri   r;   rg   NrP   r   r   r   r`   r`   l   s    9$33 3r   r`   c                  >    ] tR t^tRtR R ltR R ltR R ltRtR	# )
ZStandardDecoderz
Handle 'zstd' RFC 8878 decoding.

Requires `pip install zstandard`.
Can be installed as a dependency of httpx using `pip install httpx[zstd]`.
c                   V ^8  d   QhRR/# r4   r   )r   s   "r   r   ZStandardDecoder.__annotate__   s      $ r   c                	    \         f   \        R4      R h\         P                  ! 4       P                  4       V n        RV n        R # )NzXUsing 'ZStandardDecoder', ...Make sure to install httpx using `pip install httpx[zstd]`.F)	zstandardre   ZstdDecompressorr:   r;   rg   r   s   &r   r<   ZStandardDecoder.__init__   sC    N 
 &668FFHr   c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   rv      s     ! !5 !U !r   c                	l   \         f   Q hRV n        \        P                  ! 4       p VP	                  V P
                  P                  V4      4       V P
                  P                  '       d   V P
                  P                  '       dk   V P
                  P                  p\         P                  ! 4       P                  4       V n        VP	                  V P
                  P                  V4      4       K  VP                  4       #   \         P                   d   p\        \        T4      4      ThR p?ii ; i)NT)rx   rg   ioBytesIOwriter;   rA   eofunused_datary   r:   	ZstdErrorr   rD   getvalue)r   r	   outputr   rF   s   &&   r   r   ZStandardDecoder.decode   s    $$$	3LL**55d;<##'''D,=,=,I,I,I"//;;$-$>$>$@$N$N$P!T..99+FG    "" 	3C)s2	3s%   AD .D 
A*D D3D..D3c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   rv      s      u r   c                	    V P                   '       g   R # V P                  P                  4       pV P                  P                  '       g   \	        R4      h\        V4      # )r   zZstandard data is incomplete)rg   r;   r   r   r   r
   )r   rets   & r   r   ZStandardDecoder.flush   sJ    ~~~%%'  $$$ >??Szr   )r;   rg   NrP   r   r   r   rt   rt      s    ! r   rt   c                  >    ] tR t^tRtR R ltR R ltR R ltRtR	# )
MultiDecoderz=
Handle the case where multiple encodings have been applied.
c                    V ^8  d   QhRRRR/# )r   childrenztyping.Sequence[ContentDecoder]r   r5   r   )r   s   "r   r   MultiDecoder.__annotate__   s     1 1!@ 1T 1r   c                8    \        \        V4      4      V n        R# )zU
'children' should be a sequence of decoders in the order in which
each was applied.
N)listreversedr   )r   r   s   &&r   r<   MultiDecoder.__init__   s     Xh/0r   c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   r      s      5 U r   c                	N    V P                    F  pVP                  V4      pK  	  V# r   )r   r   r   r	   childs   && r   r   MultiDecoder.decode   s#    ]]E<<%D #r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r      s      u r   c                	|    R pV P                    F)  pVP                  V4      VP                  4       ,           pK+  	  V# r.   )r   r   r   r   s   &  r   r   MultiDecoder.flush   s3    ]]E<<%5D #r   )r   NrP   r   r   r   r   r      s    1
 r   r   c                  B    ] tR t^tRtR
R R lltR R ltR R ltR	tR# )ByteChunkerz6
Handles returning byte content in fixed-size chunks.
Nc                    V ^8  d   QhRRRR/# r   
chunk_sizez
int | Noner   r5   r   )r   s   "r   r   ByteChunker.__annotate__        & &: & &r   c                	F    \         P                  ! 4       V n        Wn        R # r   )r}   r~   _buffer_chunk_sizer   r   s   &&r   r<   ByteChunker.__init__   s    zz|%r   c                    V ^8  d   QhRRRR/# )r   contentr
   r   list[bytes]r   )r   s   "r   r   r      s      e  r   c                	   V P                   f   V'       d   V.# . # V P                  P                  V4       V P                  P                  4       V P                   8  Ed   V P                  P	                  4       p\        ^ \        V4      V P                   4       Uu. uF  pW#W0P                   ,            NK  	  pp\        VR,          4      V P                   8X  d8   V P                  P                  ^ 4       V P                  P                  4        V# V P                  P                  ^ 4       V P                  P                  VR,          4       V P                  P                  4        VR R # . # u upi N	r   r   r   tellr   rangelenseektruncater   r   valueichunkss   &&   r   r   ByteChunker.decode   ,   # 'G9/R/7#<<$"2"22LL))+E q#e*d.>.>??A !.../?   6":$"2"22!!!$%%'!!!$""6":.%%'cr{"I   E2c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r     s     ( ({ (r   c                	    V P                   P                  4       pV P                   P                  ^ 4       V P                   P                  4        V'       d   V.# . #     r   r   r   r   r   r   s   & r   r   ByteChunker.flush  E    %%'!w'R'r   r   r   r   rP   r   r   r   r   r          &.( (r   r   c                  B    ] tR tRtRtRR R lltR R ltR R	 ltR
tR# )TextChunkeri  z6
Handles returning text content in fixed-size chunks.
Nc                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   TextChunker.__annotate__  r   r   c                	F    \         P                  ! 4       V n        Wn        R # r   )r}   StringIOr   r   r   s   &&r   r<   TextChunker.__init__  s    {{}%r   c                    V ^8  d   QhRRRR/# )r   r   rD   r   	list[str]r   )r   s   "r   r   r     s      c i r   c                	   V P                   f   V'       d   V.# . # V P                  P                  V4       V P                  P                  4       V P                   8  Ed   V P                  P	                  4       p\        ^ \        V4      V P                   4       Uu. uF  pW#W0P                   ,            NK  	  pp\        VR,          4      V P                   8X  d8   V P                  P                  ^ 4       V P                  P                  4        V# V P                  P                  ^ 4       V P                  P                  VR,          4       V P                  P                  4        VR R # . # u upi r   r   r   s   &&   r   r   TextChunker.decode  r   r   c                   V ^8  d   QhRR/# r   r   r   r   )r   s   "r   r   r   +  s     ( (y (r   c                	    V P                   P                  4       pV P                   P                  ^ 4       V P                   P                  4        V'       d   V.# . # r   r   r   s   & r   r   TextChunker.flush+  r   r   r   r   rP   r   r   r   r   r     r   r   r   c                  B    ] tR tRtRtRR R lltR R ltR R ltR	tR
# )TextDecoderi2  z0
Handles incrementally decoding bytes into text
c                    V ^8  d   QhRRRR/# )r   encodingrD   r   r5   r   )r   s   "r   r   TextDecoder.__annotate__7  s     P P P4 Pr   c                	J    \         P                  ! V4      ! R R7      V n        R# )replace)errorsN)codecsgetincrementaldecoderdecoder)r   r   s   &&r   r<   TextDecoder.__init__7  s    33H=YOr   c                    V ^8  d   QhRRRR/# )r   r	   r
   r   rD   r   )r   s   "r   r   r   :  s     ) )5 )S )r   c                	8    V P                   P                  V4      # r   r   r   r   s   &&r   r   TextDecoder.decode:  s    ||""4((r   c                   V ^8  d   QhRR/# )r   r   rD   r   )r   s   "r   r   r   =  s     . .s .r   c                	:    V P                   P                  R R4      # )r   Tr   r   s   &r   r   TextDecoder.flush=  s    ||""3--r   )r   N)zutf-8rP   r   r   r   r   r   2  s    P). .r   r   c                  >    ] tR tRtRtR R ltR R ltR R ltR	tR
# )LineDecoderiA  z
Handles incrementally reading lines from text.

Has the same behaviour as the stdllib splitlines,
but handling the input iteratively.
c                   V ^8  d   QhRR/# r4   r   )r   s   "r   r   LineDecoder.__annotate__I  s     ' '$ 'r   c                	"    . V n         R V n        R# r@   buffertrailing_crr   s   &r   r<   LineDecoder.__init__I  s    !#!&r   c                    V ^8  d   QhRRRR/# )r   textrD   r   r   r   )r   s   "r   r   r   M  s     $ $3 $9 $r   c                	6   R pV P                   '       d   RV,           pRV n         VP                  R4      '       d   RV n         VRR pV'       g   . # VR,          V9   pVP                  4       p\        V4      ^8X  d-   V'       g%   V P                  P                  V^ ,          4       . # V P                  '       d@   RP                  V P                  4      V^ ,          ,           .VR,          ,           p. V n        V'       g   VP                  4       .V n        V# )u   
  FTN :   NNr   )r   endswith
splitlinesr   r   appendjoinpop)r   r   NEWLINE_CHARStrailing_newlineliness   &&   r   r   LineDecoder.decodeM  s    B $;D$D==#D9D I8}4!u:?#3KKuQx(I;;; WWT[[)E!H45b	AEDK !99;-DKr   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   s  s      y r   c                	    V P                   '       g   V P                  '       g   . # R P                  V P                   4      .p. V n         RV n        V# )r   F)r   r   r   )r   r   s   & r   r   LineDecoder.flushs  sD    {{{4#3#3#3I%& r   r   NrP   r   r   r   r   r   A  s    '$L r   r   identitygzipdeflatebrzstd)r0   
__future__r   r   r}   typingr9   _exceptionsr   rd   re   
brotlicffirx   r   r'   r2   rR   r`   rt   r   r   r   r   r   SUPPORTED_DECODERSr   r   r   r   <module>r     sD   #  	   &	
$ $	n 	3^ 3:3. 3.23N 23j'~ 'T> 2$( $(N$( $(N. .9 9z 
K~-
  
>4 6" i   	$   Is:   C C9 C6C%%	C2.C61C22C69	DD