§
    ÒÁ³gn?  ã                  óþ  — U d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZm	Z	m
Z
mZmZmZmZmZmZmZ d dlmZmZmZmZmZ d dlZd dlZd dlZddlmZ ddlmZmZm Z m!Z! ddl"m#Z#m$Z$m%Z% dd	l&m'Z' dd
l(m)Z)m*Z*m+Z+m,Z, ddl-m.Z. erddl"m/Z/ ddl0m1Z1  ed¦  «        Z2 ed¦  «        Z3 ed¦  «        Z4 ej5        e6¦  «        Z7de8d<    G d„ dee3         ¦  «        Z9 G d„ de:¦  «        Z;d!d„Z<d"d„Z= G d„ d ¦  «        Z>dS )#é    )ÚannotationsN)
ÚTYPE_CHECKINGÚAnyÚUnionÚGenericÚTypeVarÚCallableÚIteratorÚAsyncIteratorÚcastÚoverload)Ú	AwaitableÚ	ParamSpecÚoverrideÚ
deprecatedÚ
get_originé   )ÚNoneType)Úis_givenÚextract_type_argÚis_annotated_typeÚis_type_alias_type)Ú	BaseModelÚis_basemodelÚadd_request_id)ÚRAW_RESPONSE_HEADER)ÚStreamÚAsyncStreamÚis_stream_class_typeÚextract_stream_chunk_type)ÚAPIResponseValidationError)ÚFinalRequestOptions)Ú
BaseClientÚPÚRÚ_Tzlogging.LoggerÚlogc                  óà  — e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   ded<   ded<   ded<   	 ddœd<d„Zed=d„¦   «         Zed>d"„¦   «         Z	ed?d$„¦   «         Z	d%d&œd@d)„Z	edAd+„¦   «         Z
edBd-„¦   «         ZedCd.„¦   «         ZedDd0„¦   «         ZedEd2„¦   «         ZedFd4„¦   «         ZedEd5„¦   «         ZedEd6„¦   «         ZedGd7„¦   «         ZedHd9„¦   «         Zd%d&œd@d:„ZedEd;„¦   «         Zd%S )IÚLegacyAPIResponsea°  This is a legacy class as it will be replaced by `APIResponse`
    and `AsyncAPIResponse` in the `_response.py` file in the next major
    release.

    For the sync client this will mostly be the same with the exception
    of `content` & `text` will be methods instead of properties. In the
    async client, all methods will be async.

    A migration script will be provided & the migration in general should
    be smooth.
    útype[R]Ú_cast_toúBaseClient[Any, Any]Ú_clientzdict[type[Any], Any]Ú_parsed_by_typeÚboolÚ_streamú1type[Stream[Any]] | type[AsyncStream[Any]] | NoneÚ_stream_clsr"   Ú_optionsúhttpx.ResponseÚhttp_responseÚintÚretries_takenr   )r7   ÚrawÚcast_toÚclientÚstreamÚ
stream_clsÚoptionsÚreturnÚNonec               óv   — || _         || _        i | _        || _        || _        || _        || _        || _        d S ©N)r+   r-   r.   r0   r2   r3   r5   r7   )Úselfr8   r9   r:   r;   r<   r=   r7   s           úU/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/openai/_legacy_response.pyÚ__init__zLegacyAPIResponse.__init__F   sF   € ð  ˆŒØˆŒØ!ˆÔØˆŒØ%ˆÔØˆŒØ ˆÔØ*ˆÔÐÐó    ú
str | Nonec                ó@   — | j         j                             d¦  «        S )Nzx-request-id)r5   ÚheadersÚget©rB   s    rC   Ú
request_idzLegacyAPIResponse.request_idZ   s   € àÔ!Ô)×-Ò-¨nÑ=Ô=Ð=rE   Útoútype[_T]r&   c               ó   — d S rA   © )rB   rL   s     rC   ÚparsezLegacyAPIResponse.parse^   s   € Ø,/¨CrE   r%   c                ó   — d S rA   rO   rJ   s    rC   rP   zLegacyAPIResponse.parsea   s   € Ø˜#rE   N©rL   útype[_T] | NoneúR | _Tc               óx  — |�|n| j         }| j                             |¦  «        }|�|S |                      |¬¦  «        }t	          | j        j        ¦  «        r| j                             |¦  «        }t          |t          ¦  «        rt          || j
        ¦  «         || j        |<   t          t          |¦  «        S )aÞ  Returns the rich python representation of this response's data.

        NOTE: For the async client: this will become a coroutine in the next major version.

        For lower-level control, see `.read()`, `.json()`, `.iter_bytes()`.

        You can customise the type that the response is parsed into through
        the `to` argument, e.g.

        ```py
        from openai import BaseModel


        class MyModel(BaseModel):
            foo: str


        obj = response.parse(to=MyModel)
        print(obj.foo)
        ```

        We support parsing:
          - `BaseModel`
          - `dict`
          - `list`
          - `Union`
          - `str`
          - `int`
          - `float`
          - `httpx.Response`
        NrR   )r+   r.   rI   Ú_parser   r3   Úpost_parserÚ
isinstancer   r   rK   r   r%   )rB   rL   Ú	cache_keyÚcachedÚparseds        rC   rP   zLegacyAPIResponse.parsed   s±   € ð@ ˜.�B�B¨d¬mˆ	ØÔ%×)Ò)¨)Ñ4Ô4ˆØÐØˆMà—’ �Ñ#Ô#ˆÝ�D”MÔ-Ñ.Ô.ð 	7Ø”]×.Ò.¨vÑ6Ô6ˆFå�f�iÑ(Ô(ð 	4Ý˜6 4¤?Ñ3Ô3Ð3à*0ˆÔ˜YÑ'Ý•A�v‰ŒÐrE   úhttpx.Headersc                ó   — | j         j        S rA   )r5   rH   rJ   s    rC   rH   zLegacyAPIResponse.headers“   ó   € àÔ!Ô)Ð)rE   úhttpx.Requestc                ó   — | j         j        S rA   )r5   ÚrequestrJ   s    rC   Úhttp_requestzLegacyAPIResponse.http_request—   r^   rE   c                ó   — | j         j        S rA   )r5   Ústatus_coderJ   s    rC   rd   zLegacyAPIResponse.status_code›   s   € àÔ!Ô-Ð-rE   ú	httpx.URLc                ó   — | j         j        S rA   )r5   ÚurlrJ   s    rC   rg   zLegacyAPIResponse.urlŸ   s   € àÔ!Ô%Ð%rE   Ústrc                ó   — | j         j        S rA   )rb   ÚmethodrJ   s    rC   rj   zLegacyAPIResponse.method£   s   € àÔ Ô'Ð'rE   Úbytesc                ó   — | j         j        S )zŠReturn the binary response content.

        NOTE: this will be removed in favour of `.read()` in the
        next major version.
        )r5   ÚcontentrJ   s    rC   rm   zLegacyAPIResponse.content§   s   € ð Ô!Ô)Ð)rE   c                ó   — | j         j        S )zyReturn the decoded response content.

        NOTE: this will be turned into a method in the next major version.
        )r5   ÚtextrJ   s    rC   ro   zLegacyAPIResponse.text°   s   € ð Ô!Ô&Ð&rE   c                ó   — | j         j        S rA   )r5   Úhttp_versionrJ   s    rC   rq   zLegacyAPIResponse.http_version¸   s   € àÔ!Ô.Ð.rE   c                ó   — | j         j        S rA   )r5   Ú	is_closedrJ   s    rC   rs   zLegacyAPIResponse.is_closed¼   s   € àÔ!Ô+Ð+rE   údatetime.timedeltac                ó   — | j         j        S )zCThe time taken for the complete request/response cycle to complete.)r5   ÚelapsedrJ   s    rC   rv   zLegacyAPIResponse.elapsedÀ   s   € ð Ô!Ô)Ð)rE   c               ó~
  — |�|n| j         }t          |¦  «        r|j        }|rt          |¦  «        rt	          |d¦  «        }t          |¦  «        p|}| j        �rF|r{t          |¦  «        st          dt          › dt          › �¦  «        ‚t          t           |t          |d¬¦  «        | j        t          t          | j        ¦  «        ¬¦  «        ¦  «        S | j        rZt          t$          |                      t          | j        ¦  «        | j        t          t          | j        ¦  «        ¬¦  «        ¦  «        S t          d| j        j        ¦  «        }|€t)          ¦   «         ‚t          t$           ||| j        t          t          | j        ¦  «        ¬¦  «        ¦  «        S |t*          u rt          t$          d ¦  «        S | j        }|t,          k    rt          t$          |j        ¦  «        S |t0          k    r't          t$          t1          |j        ¦  «        ¦  «        S |t2          k    r't          t$          t3          |j        ¦  «        ¦  «        S |t4          k    r0t          t$          |j                             ¦   «         dk    ¦  «        S t9          j        |¦  «        r3t=          |t>          ¦  «        rt          t$           ||¦  «        ¦  «        S |t@          k    rtC          d	¦  «        ‚t9          j        |¦  «        rNt=          |tD          j#        ¦  «        r4|tD          j#        k    rtI          d
¦  «        ‚t          t$          |¦  «        S t9          j        |¦  «        r>t=          |tJ          ¦  «        s)t=          |tL          j%        ¦  «        rt          d¦  «        ‚|tN          ur€|tP          urw|tR          urn|tT          uret=          |tJ          ¦  «        sPtC          d|› dtJ          › dtR          › dtP          › dtT          › dt*          › dt,          › dtD          j#        › d�¦  «        ‚|j+         ,                    dd¦  «         -                    d¦  «        ^}}|dk    r¯t]          |¦  «        rr	 | /                    ¦   «         }| j         0                    |||¬¦  «        S # tb          $ r3}	td           3                    dti          |	¦  «        |	¦  «         Y d }	~	nd }	~	ww xY w| j        j5        rtm          |d|› d�|j        ¬¦  «        ‚|j        S | /                    ¦   «         }| j         0                    |||¬¦  «        S )Nr   z/Expected custom parse type to be a subclass of z or zUExpected custom stream type to be passed with a type argument, e.g. Stream[ChunkType])Úfailure_message)r9   Úresponser:   r1   Útruez+Unexpected state - cast_to is `APIResponse`z:Subclasses of httpx.Response cannot be passed to `cast_to`zVPydantic models must subclass our base model type, e.g. `from openai import BaseModel`zUnsupported type, expected z to be a subclass of z, ú.zcontent-typeÚ*ú;zapplication/json)Údatar9   ry   z5Could not read JSON from response data due to %s - %szMExpected Content-Type response header to be `application/json` but received `z
` instead.)ry   ÚmessageÚbody)7r+   r   Ú	__value__r   r   r   r0   r   Ú	TypeErrorr   r   r   r&   r    r5   r   r-   r2   r%   Ú_default_stream_clsÚMissingStreamClassErrorr   rh   ro   r6   Úfloatr/   ÚlowerÚinspectÚisclassÚ
issubclassÚHttpxBinaryResponseContentr)   ÚRuntimeErrorÚhttpxÚResponseÚ
ValueErrorr   ÚpydanticÚobjectÚlistÚdictr   rH   rI   Úsplitr   ÚjsonÚ_process_response_dataÚ	Exceptionr'   ÚdebugÚtypeÚ_strict_response_validationr!   )
rB   rL   r9   Úoriginr<   ry   Úcontent_typeÚ_r~   Úexcs
             rC   rV   zLegacyAPIResponse._parseÅ   sÌ  € Ø˜�"�"¨D¬Mˆõ ˜gÑ&Ô&ð 	(ØÔ'ˆGð ð 	3Õ(¨Ñ1Ô1ð 	3Ý& w°Ñ2Ô2ˆGå˜GÑ$Ô$Ð/¨ˆàŒ<ñ &	Øð Ý+¨BÑ/Ô/ð qÝ#Ð$oÕV\Ð$oÐ$oÕbmÐ$oÐ$oÑpÔpÐpåÝØ�BÝ 9Øð -Dð!ñ !ô !ð "&Ô!3Ý#¥C¨¬Ñ6Ô6ðñ ô ñ
ô 
ð 
ð Ôð ÝÝØ×$Ò$Ý 9¸$Ô:JÑ KÔ KØ!%Ô!3Ý#¥C¨¬Ñ6Ô6ð %ñ ô ñô ð õ ÐQÐSWÔS_ÔSsÑtÔtˆJØÐ!Ý-Ñ/Ô/Ð/åÝØ�
Ø#Ø!Ô/Ý¥ T¤\Ñ2Ô2ðñ ô ñô ð ð •hÐÐÝ�˜4‘=”=Ð àÔ%ˆØ•cŠ>ˆ>Ý�˜8œ=Ñ)Ô)Ð)à•cŠ>ˆ>Ý��3˜xœ}Ñ-Ô-Ñ.Ô.Ð.à•eÒÐÝ��5 ¤Ñ/Ô/Ñ0Ô0Ð0à•dŠ?ˆ?Ý�˜8œ=×.Ò.Ñ0Ô0°FÒ:Ñ;Ô;Ð;åŒ?˜6Ñ"Ô"ð 	.¥z°&Õ:TÑ'UÔ'Uð 	.Ý�˜7˜7 8Ñ,Ô,Ñ-Ô-Ð-àÕ&Ò&Ð&ÝÐLÑMÔMÐMåŒ?Øñ
ô 
ð 
	%å˜¥¤Ñ0Ô0ð
	%ð �%œ.Ò(Ð(Ý Ð!^Ñ_Ô_Ð_Ý�˜8Ñ$Ô$Ð$õ ŒOØñô ð	võ ˜v¥yÑ1Ô1ð		võ
 ˜6¥8Ô#5Ñ6Ô6ð	võ ÐtÑuÔuÐuð �6Ð!Ð!Ø�d�N�NØ�d�N�NØ�e�O�OÝ˜v¥yÑ1Ô1ð $õ ð Y¨gð  Yð  YÍIð  Yð  YÕY]ð  Yð  YÕaeð  Yð  YÕinð  Yð  YÕrzð  Yð  Yõ  Bð  Yð  Yõ  HMô  HVð  Yð  Yð  Yñô ð ð $Ô+×/Ò/°ÀÑDÔD×JÒJÈ3ÑOÔOÐˆ�qØÐ-Ò-Ð-Ý˜GÑ$Ô$ð 
ð	Ø#Ÿ=š=™?œ?�Dð  œ<×>Ò>Ø!Ø 'Ø!)ð ?ñ ô ð øõ !ð gð gð gÝ—I’IÐUÕW[Ð\_ÑW`ÔW`ÐbeÑfÔfÐfÐfÐfÐfÐfÐføøøøðgøøøð Œ|Ô7ð Ý0Ø%ð EÐlxð  Eð  Eð  EØ!œðñ ô ð ð ”=Ð à�}Š}‰ŒˆàŒ|×2Ò2ØØØð 3ñ 
ô 
ð 	
s   Ñ/R  Ò 
SÒ*)SÓSc                óB   — d| j         › d| j        j        › d| j        › d�S )Nz<APIResponse [ú z] type=ú>)rd   r5   Úreason_phraser+   rJ   s    rC   Ú__repr__zLegacyAPIResponse.__repr__T  s0   € àl Ô 0ÐlÐl°4Ô3EÔ3SÐlÐlÐ\`Ô\iÐlÐlÐlÐlrE   )r8   r4   r9   r*   r:   r,   r;   r/   r<   r1   r=   r"   r7   r6   r>   r?   ©r>   rF   )rL   rM   r>   r&   )r>   r%   )rL   rS   r>   rT   )r>   r\   )r>   r_   )r>   r6   )r>   re   ©r>   rh   ©r>   rk   )r>   r/   )r>   rt   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__rD   ÚpropertyrK   r   rP   rH   rb   rd   rg   rj   rm   ro   rq   rs   rv   rV   r   r¢   rO   rE   rC   r)   r)   -   s¥  € € € € € € ð
ð 
ð ÐÐÑØ!Ð!Ð!Ñ!Ø)Ð)Ð)Ñ)Ø€M€M�MØBÐBÐBÑBØ!Ð!Ð!Ñ!à!Ð!Ð!Ñ!àÐÐÑØMð ð+ð +ð +ð +ð +ð +ð( ð>ð >ð >ñ „Xð>ð Ø/Ð/Ð/ñ „XØ/àØÐÐñ „XØà-1ð -ð -ð -ð -ð -ð -ð^ ð*ð *ð *ñ „Xð*ð ð*ð *ð *ñ „Xð*ð ð.ð .ð .ñ „Xð.ð ð&ð &ð &ñ „Xð&ð ð(ð (ð (ñ „Xð(ð ð*ð *ð *ñ „Xð*ð ð'ð 'ð 'ñ „Xð'ð ð/ð /ð /ñ „Xð/ð ð,ð ,ð ,ñ „Xð,ð ð*ð *ð *ñ „Xð*ð /3ð M
ð M
ð M
ð M
ð M
ð M
ð^ ðmð mð mñ „Xðmð mð mrE   r)   c                  ó    ‡ — e Zd Zdˆ fd„Zˆ xZS )r„   r>   r?   c                óJ   •— t          ¦   «                              d¦  «         d S )NzzThe `stream` argument was set to `True` but the `stream_cls` argument was not given. See `openai._streaming` for reference)ÚsuperrD   )rB   Ú	__class__s    €rC   rD   z MissingStreamClassError.__init__Z  s/   ø€ Ý‰Œ×Òð Iñ	
ô 	
ð 	
ð 	
ð 	
rE   ©r>   r?   )r¦   r§   r¨   rD   Ú__classcell__)r¯   s   @rC   r„   r„   Y  s=   ø€ € € € € ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
rE   r„   ÚfuncúCallable[P, R]r>   ú!Callable[P, LegacyAPIResponse[R]]c                óH   ‡ — t          j        ‰ ¦  «        dˆ fd„¦   «         }|S )	ú�Higher order function that takes one of our bound API methods and wraps it
    to support returning the raw `APIResponse` object directly.
    ÚargsúP.argsÚkwargsúP.kwargsr>   úLegacyAPIResponse[R]c                 óÆ   •— i t          t          |                     d¦  «        ¦  «        pi ¥}d|t          <   ||d<   t          t          t
                    ‰| i |¤Ž¦  «        S ©NÚextra_headersrz   ©r   r   rI   r   r)   r%   ©r·   r¹   r¾   r²   s      €rC   Úwrappedz(to_raw_response_wrapper.<locals>.wrappede  sc   ø€ à(Z­Dµ°f·j²jÀÑ6QÔ6QÑ,RÔ,RÐ,XÐVXÐ(ZˆØ-3ˆÕ)Ñ*à"/ˆˆÑåÕ%¥aÔ(¨$¨$°Ð*?¸Ð*?Ð*?Ñ@Ô@Ð@rE   ©r·   r¸   r¹   rº   r>   r»   ©Ú	functoolsÚwraps©r²   rÁ   s   ` rC   Úto_raw_response_wrapperrÇ   `  sE   ø€ õ
 „_�TÑÔðAð Að Að Að Añ ÔðAð €NrE   úCallable[P, Awaitable[R]]ú,Callable[P, Awaitable[LegacyAPIResponse[R]]]c                óH   ‡ — t          j        ‰ ¦  «        dˆ fd„¦   «         }|S )	r¶   r·   r¸   r¹   rº   r>   r»   c               Ÿ  óÖ   •K  — i t          t          |                     d¦  «        ¦  «        pi ¥}d|t          <   ||d<   t          t          t
                    ‰| i |¤Žƒ d {V —†¦  «        S r½   r¿   rÀ   s      €rC   rÁ   z.async_to_raw_response_wrapper.<locals>.wrappedv  sy   øè è € à(Z­Dµ°f·j²jÀÑ6QÔ6QÑ,RÔ,RÐ,XÐVXÐ(ZˆØ-3ˆÕ)Ñ*à"/ˆˆÑåÕ%¥aÔ(°°°dÐ0E¸fÐ0EÐ0EÐ*EÐ*EÐ*EÐ*EÐ*EÐ*EÑFÔFÐFrE   rÂ   rÃ   rÆ   s   ` rC   Úasync_to_raw_response_wrapperrÌ   q  sE   ø€ õ
 „_�TÑÔðGð Gð Gð Gð Gñ ÔðGð €NrE   c                  ó^  — e Zd ZU ded<   d*d„Zed+d„¦   «         Zed,d	„¦   «         Zed-d„¦   «         Zed-d„¦   «         Z	d.d„Z
d+d„Zd/d0d„Zd/d1d„Zd2d„Zd/d0d„Zd3d„Z ed¦  «        ddœd4d„¦   «         Zd5d „Zd+d!„Zd/d6d#„Zd/d7d%„Zd8d&„Zd/d6d'„Z ed¦  «        ddœd4d(„¦   «         Zd5d)„ZdS )9rŠ   r4   ry   r>   r?   c                ó   — || _         d S rA   )ry   )rB   ry   s     rC   rD   z#HttpxBinaryResponseContent.__init__…  s   € Ø ˆŒˆˆrE   rk   c                ó   — | j         j        S rA   )ry   rm   rJ   s    rC   rm   z"HttpxBinaryResponseContent.contentˆ  s   € àŒ}Ô$Ð$rE   rh   c                ó   — | j         j        S rA   )ry   ro   rJ   s    rC   ro   zHttpxBinaryResponseContent.textŒ  s   € àŒ}Ô!Ð!rE   rF   c                ó   — | j         j        S rA   )ry   ÚencodingrJ   s    rC   rÒ   z#HttpxBinaryResponseContent.encoding�  s   € àŒ}Ô%Ð%rE   c                ó   — | j         j        S rA   )ry   Úcharset_encodingrJ   s    rC   rÔ   z+HttpxBinaryResponseContent.charset_encoding”  s   € àŒ}Ô-Ð-rE   r¹   r   c                ó&   —  | j         j        di |¤ŽS )NrO   )ry   r”   )rB   r¹   s     rC   r”   zHttpxBinaryResponseContent.json˜  s   € Ø!ˆtŒ}Ô!Ð+Ð+ FÐ+Ð+Ð+rE   c                ó4   — | j                              ¦   «         S rA   )ry   ÚreadrJ   s    rC   r×   zHttpxBinaryResponseContent.read›  s   € ØŒ}×!Ò!Ñ#Ô#Ð#rE   NÚ
chunk_sizeú
int | NoneúIterator[bytes]c                ó6   — | j                              |¦  «        S rA   )ry   Ú
iter_bytes©rB   rØ   s     rC   rÜ   z%HttpxBinaryResponseContent.iter_bytesž  s   € ØŒ}×'Ò'¨
Ñ3Ô3Ð3rE   úIterator[str]c                ó6   — | j                              |¦  «        S rA   )ry   Ú	iter_textrÝ   s     rC   rà   z$HttpxBinaryResponseContent.iter_text¡  s   € ØŒ}×&Ò& zÑ2Ô2Ð2rE   c                ó4   — | j                              ¦   «         S rA   )ry   Ú
iter_linesrJ   s    rC   râ   z%HttpxBinaryResponseContent.iter_lines¤  s   € ØŒ}×'Ò'Ñ)Ô)Ð)rE   c                ó6   — | j                              |¦  «        S rA   )ry   Úiter_rawrÝ   s     rC   rä   z#HttpxBinaryResponseContent.iter_raw§  s   € ØŒ}×%Ò% jÑ1Ô1Ð1rE   Úfileústr | os.PathLike[str]c                ó¾   — t          |d¬¦  «        5 }| j                             ¦   «         D ]}|                     |¦  «         Œ	 ddd¦  «         dS # 1 swxY w Y   dS )av  Write the output to the given file.

        Accepts a filename or any path-like object, e.g. pathlib.Path

        Note: if you want to stream the data to the file instead of writing
        all at once then you should use `.with_streaming_response` when making
        the API request, e.g. `client.with_streaming_response.foo().stream_to_file('my_filename.txt')`
        Úwb©ÚmodeN©Úopenry   rÜ   Úwrite)rB   rå   Úfr~   s       rC   Úwrite_to_filez(HttpxBinaryResponseContent.write_to_fileª  s«   € õ �$˜TÐ"Ñ"Ô"ð 	 aØœ×0Ò0Ñ2Ô2ð ð �Ø—’˜‘”��ðð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   ’2AÁAÁAz‚Due to a bug, this method doesn't actually stream the response content, `.with_streaming_response.method()` should be used instead)rØ   c               óÀ   — t          |d¬¦  «        5 }| j                             |¦  «        D ]}|                     |¦  «         Œ	 d d d ¦  «         d S # 1 swxY w Y   d S ©Nrè   ré   rë   )rB   rå   rØ   rî   r~   s        rC   Ústream_to_filez)HttpxBinaryResponseContent.stream_to_fileº  s­   € õ �$˜TÐ"Ñ"Ô"ð 	 aØœ×0Ò0°Ñ<Ô<ð ð �Ø—’˜‘”��ðð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   ’3AÁAÁAc                ó4   — | j                              ¦   «         S rA   )ry   ÚcloserJ   s    rC   rô   z HttpxBinaryResponseContent.closeÇ  s   € ØŒ}×"Ò"Ñ$Ô$Ð$rE   c              ƒ  óD   K  — | j                              ¦   «         ƒ d {V —†S rA   )ry   ÚareadrJ   s    rC   rö   z HttpxBinaryResponseContent.areadÊ  s,   è è € Ø”]×(Ò(Ñ*Ô*Ð*Ð*Ð*Ð*Ð*Ð*Ð*rE   úAsyncIterator[bytes]c              ƒ  ó:   K  — | j                              |¦  «        S rA   )ry   Úaiter_bytesrÝ   s     rC   rù   z&HttpxBinaryResponseContent.aiter_bytesÍ  s   è è € ØŒ}×(Ò(¨Ñ4Ô4Ð4rE   úAsyncIterator[str]c              ƒ  ó:   K  — | j                              |¦  «        S rA   )ry   Ú
aiter_textrÝ   s     rC   rü   z%HttpxBinaryResponseContent.aiter_textÐ  s   è è € ØŒ}×'Ò'¨
Ñ3Ô3Ð3rE   c              ƒ  ó8   K  — | j                              ¦   «         S rA   )ry   Úaiter_linesrJ   s    rC   rþ   z&HttpxBinaryResponseContent.aiter_linesÓ  s   è è € ØŒ}×(Ò(Ñ*Ô*Ð*rE   c              ƒ  ó:   K  — | j                              |¦  «        S rA   )ry   Ú	aiter_rawrÝ   s     rC   r   z$HttpxBinaryResponseContent.aiter_rawÖ  s   è è € ØŒ}×&Ò& zÑ2Ô2Ð2rE   c             ƒ  ó>  K  — t          j        |¦  «        }|                     d¬¦  «        ƒ d {V —†4 ƒd {V —†}| j                             |¦  «        2 3 d {V —†}|                     |¦  «        ƒ d {V —† Œ#6 	 d d d ¦  «        ƒd {V —† d S # 1 ƒd {V —†swxY w Y   d S rñ   )ÚanyioÚPathrì   ry   rù   rí   )rB   rå   rØ   Úpathrî   r~   s         rC   Úastream_to_filez*HttpxBinaryResponseContent.astream_to_fileÙ  s^  è è € õ Œz˜$ÑÔˆØŸš¨˜Ñ-Ô-Ð-Ð-Ð-Ð-Ð-Ð-ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$°Ø"œm×7Ò7¸
ÑCÔCð $ð $ð $ð $ð $ð $ð $�dØ—g’g˜d‘m”mÐ#Ð#Ð#Ð#Ð#Ð#Ð#Ð#ð DÐCð	$ð 	$ð 	$ñ 	$ô 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$ð 	$øøøð 	$ð 	$ð 	$ð 	$ð 	$ð 	$s   ¹BÁA7ÁBÂ
BÂBc              ƒ  óD   K  — | j                              ¦   «         ƒ d {V —†S rA   )ry   ÚacloserJ   s    rC   r  z!HttpxBinaryResponseContent.acloseç  s,   è è € Ø”]×)Ò)Ñ+Ô+Ð+Ð+Ð+Ð+Ð+Ð+Ð+rE   )ry   r4   r>   r?   r¥   r¤   r£   )r¹   r   r>   r   rA   )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÷   )rØ   rÙ   r>   rú   )r>   rú   )r¦   r§   r¨   rª   rD   r«   rm   ro   rÒ   rÔ   r”   r×   rÜ   rà   râ   rä   rï   r   rò   rô   rö   rù   rü   rþ   r   r  r  rO   rE   rC   rŠ   rŠ   ‚  st  € € € € € € ØÐÐÑð!ð !ð !ð !ð ð%ð %ð %ñ „Xð%ð ð"ð "ð "ñ „Xð"ð ð&ð &ð &ñ „Xð&ð ð.ð .ð .ñ „Xð.ð,ð ,ð ,ð ,ð$ð $ð $ð $ð4ð 4ð 4ð 4ð 4ð3ð 3ð 3ð 3ð 3ð*ð *ð *ð *ð2ð 2ð 2ð 2ð 2ðð ð ð ð  €Zð 	Mñô ð "&ð	ð ð ð ð ñô ðð%ð %ð %ð %ð+ð +ð +ð +ð5ð 5ð 5ð 5ð 5ð4ð 4ð 4ð 4ð 4ð+ð +ð +ð +ð3ð 3ð 3ð 3ð 3ð €Zð 	Mñô ð "&ð		$ð 	$ð 	$ð 	$ð 	$ñô ð	$ð,ð ,ð ,ð ,ð ,ð ,rE   rŠ   )r²   r³   r>   r´   )r²   rÈ   r>   rÉ   )?Ú
__future__r   Úosr‡   ÚloggingÚdatetimerÄ   Útypingr   r   r   r   r   r	   r
   r   r   r   Útyping_extensionsr   r   r   r   r   r  rŒ   r�   Ú_typesr   Ú_utilsr   r   r   r   Ú_modelsr   r   r   Ú
_constantsr   Ú
_streamingr   r   r   r    Ú_exceptionsr!   r"   Ú_base_clientr#   r$   r%   r&   Ú	getLoggerr¦   r'   rª   r)   r‚   r„   rÇ   rÌ   rŠ   rO   rE   rC   ú<module>r     sæ  ðØ "Ð "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø €€€Ø €€€Ø €€€Ø Ð Ð Ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð UÐ TÐ TÐ TÐ TÐ TÐ TÐ TÐ TÐ TÐ TÐ TÐ TÐ Tà €€€Ø €€€Ø €€€à Ð Ð Ð Ð Ð Ø UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UØ <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ø +Ð +Ð +Ð +Ð +Ð +Ø \Ð \Ð \Ð \Ð \Ð \Ð \Ð \Ð \Ð \Ð \Ð \Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3àð )Ø,Ð,Ð,Ð,Ð,Ð,Ø(Ð(Ð(Ð(Ð(Ð(ð €Iˆc�N„N€Ø€GˆC�L„L€Ø€WˆT�]„]€à'�gÔ'¨Ñ1Ô1€Ð 1Ð 1Ð 1Ñ 1ðimð imð imð imð im˜ œ
ñ imô imð imðX	
ð 
ð 
ð 
ð 
˜iñ 
ô 
ð 
ðð ð ð ð"ð ð ð ð"f,ð f,ð f,ð f,ð f,ñ f,ô f,ð f,ð f,ð f,rE   