§
     @gò  ã                  óz  — d Z ddlmZ ddlZddlZej        rddlmZmZ  G d„ de	¦  «        Z
 G d„ d	e
¦  «        Z G d
„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d „ d!e¦  «        Z G d"„ d#e¦  «        Z G d$„ d%e¦  «        Z G d&„ d'e¦  «        Z G d(„ d)e¦  «        Z G d*„ d+e¦  «        Z G d,„ d-e¦  «        Z G d.„ d/e
¦  «        Z G d0„ d1e	¦  «        Z G d2„ d3e	¦  «        Z  G d4„ d5e!¦  «        Z" G d6„ d7e"¦  «        Z# G d8„ d9e"¦  «        Z$ G d:„ d;e"¦  «        Z% G d<„ d=e"¦  «        Z&ej'        	 dCdDdB„¦   «         Z(dS )Eul  
Our exception hierarchy:

* HTTPError
  x RequestError
    + TransportError
      - TimeoutException
        Â· ConnectTimeout
        Â· ReadTimeout
        Â· WriteTimeout
        Â· PoolTimeout
      - NetworkError
        Â· ConnectError
        Â· ReadError
        Â· WriteError
        Â· CloseError
      - ProtocolError
        Â· LocalProtocolError
        Â· RemoteProtocolError
      - ProxyError
      - UnsupportedProtocol
    + DecodingError
    + TooManyRedirects
  x HTTPStatusError
* InvalidURL
* CookieConflict
* StreamError
  x StreamConsumed
  x StreamClosed
  x ResponseNotRead
  x RequestNotRead
é    )ÚannotationsNé   )ÚRequestÚResponsec                  ó^   ‡ — e Zd ZdZdˆ fd„Zedd„¦   «         Zej        dd
„¦   «         Zˆ xZS )Ú	HTTPErrora’  
    Base class for `RequestError` and `HTTPStatusError`.

    Useful for `try...except` blocks when issuing a request,
    and then calling `.raise_for_status()`.

    For example:

    ```
    try:
        response = httpx.get("https://www.example.com")
        response.raise_for_status()
    except httpx.HTTPError as exc:
        print(f"HTTP Exception for {exc.request.url} - {exc}")
    ```
    ÚmessageÚstrÚreturnÚNonec                óX   •— t          ¦   «                              |¦  «         d | _        d S ©N©ÚsuperÚ__init__Ú_request©Úselfr	   Ú	__class__s     €úE/var/www/piapp/venv/lib/python3.11/site-packages/httpx/_exceptions.pyr   zHTTPError.__init__<   s&   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!Ø(,ˆŒˆˆó    r   c                ó<   — | j         €t          d¦  «        ‚| j         S )Nz'The .request property has not been set.)r   ÚRuntimeError)r   s    r   ÚrequestzHTTPError.request@   s!   € àŒ=Ð ÝÐHÑIÔIÐIØŒ}Ðr   r   c                ó   — || _         d S r   )r   )r   r   s     r   r   zHTTPError.requestF   s   € àˆŒˆˆr   ©r	   r
   r   r   )r   r   )r   r   r   r   )	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   ÚsetterÚ__classcell__©r   s   @r   r   r   *   s‰   ø€ € € € € ðð ð"-ð -ð -ð -ð -ð -ð ðð ð ñ „Xðð
 „^ð ð  ð  ñ „^ð ð  ð  ð  ð  r   r   c                  ó*   ‡ — e Zd ZdZddœdˆ fd
„Zˆ xZS )ÚRequestErrorzS
    Base class for all exceptions that may occur when issuing a `.request()`.
    N)r   r	   r
   r   úRequest | Noner   r   c               óX   •— t          ¦   «                              |¦  «         || _        d S r   r   )r   r	   r   r   s      €r   r   zRequestError.__init__P   s(   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!ð  ˆŒˆˆr   )r	   r
   r   r'   r   r   ©r   r   r   r    r   r#   r$   s   @r   r&   r&   K   sX   ø€ € € € € ðð ð CGð  ð  ð  ð  ð  ð  ð  ð  ð  ð  ð  ð  r   r&   c                  ó   — e Zd ZdZdS )ÚTransportErrorzU
    Base class for all exceptions that occur at the level of the Transport API.
    N©r   r   r   r    © r   r   r+   r+   [   ó   € € € € € ðð ð ð r   r+   c                  ó   — e Zd ZdZdS )ÚTimeoutExceptionzM
    The base class for timeout errors.

    An operation has timed out.
    Nr,   r-   r   r   r0   r0   d   ó   € € € € € ðð ð ð r   r0   c                  ó   — e Zd ZdZdS )ÚConnectTimeoutz1
    Timed out while connecting to the host.
    Nr,   r-   r   r   r3   r3   l   r.   r   r3   c                  ó   — e Zd ZdZdS )ÚReadTimeoutz7
    Timed out while receiving data from the host.
    Nr,   r-   r   r   r5   r5   r   r.   r   r5   c                  ó   — e Zd ZdZdS )ÚWriteTimeoutz3
    Timed out while sending data to the host.
    Nr,   r-   r   r   r7   r7   x   r.   r   r7   c                  ó   — e Zd ZdZdS )ÚPoolTimeoutzB
    Timed out waiting to acquire a connection from the pool.
    Nr,   r-   r   r   r9   r9   ~   r.   r   r9   c                  ó   — e Zd ZdZdS )ÚNetworkErrorzo
    The base class for network-related errors.

    An error occurred while interacting with the network.
    Nr,   r-   r   r   r;   r;   ‡   r1   r   r;   c                  ó   — e Zd ZdZdS )Ú	ReadErrorz2
    Failed to receive data from the network.
    Nr,   r-   r   r   r=   r=   �   r.   r   r=   c                  ó   — e Zd ZdZdS )Ú
WriteErrorz2
    Failed to send data through the network.
    Nr,   r-   r   r   r?   r?   •   r.   r   r?   c                  ó   — e Zd ZdZdS )ÚConnectErrorz+
    Failed to establish a connection.
    Nr,   r-   r   r   rA   rA   ›   r.   r   rA   c                  ó   — e Zd ZdZdS )Ú
CloseErrorz'
    Failed to close a connection.
    Nr,   r-   r   r   rC   rC   ¡   r.   r   rC   c                  ó   — e Zd ZdZdS )Ú
ProxyErrorzB
    An error occurred while establishing a proxy connection.
    Nr,   r-   r   r   rE   rE   ª   r.   r   rE   c                  ó   — e Zd ZdZdS )ÚUnsupportedProtocolz€
    Attempted to make a request to an unsupported protocol.

    For example issuing a request to `ftp://www.example.com`.
    Nr,   r-   r   r   rG   rG   °   r1   r   rG   c                  ó   — e Zd ZdZdS )ÚProtocolErrorz$
    The protocol was violated.
    Nr,   r-   r   r   rI   rI   ¸   r.   r   rI   c                  ó   — e Zd ZdZdS )ÚLocalProtocolErrorzæ
    A protocol was violated by the client.

    For example if the user instantiated a `Request` instance explicitly,
    failed to include the mandatory `Host:` header, and then issued it directly
    using `client.send()`.
    Nr,   r-   r   r   rK   rK   ¾   s   € € € € € ðð ð ð r   rK   c                  ó   — e Zd ZdZdS )ÚRemoteProtocolErrorz^
    The protocol was violated by the server.

    For example, returning malformed HTTP.
    Nr,   r-   r   r   rM   rM   È   r1   r   rM   c                  ó   — e Zd ZdZdS )ÚDecodingErrorzG
    Decoding of the response failed, due to a malformed encoding.
    Nr,   r-   r   r   rO   rO   Ó   r.   r   rO   c                  ó   — e Zd ZdZdS )ÚTooManyRedirectsz
    Too many redirects.
    Nr,   r-   r   r   rQ   rQ   Ù   r.   r   rQ   c                  ó$   ‡ — e Zd ZdZdˆ fd
„Zˆ xZS )ÚHTTPStatusErrorz|
    The response had an error HTTP status of 4xx or 5xx.

    May be raised when calling `response.raise_for_status()`
    r	   r
   r   r   Úresponser   r   r   c               óf   •— t          ¦   «                              |¦  «         || _        || _        d S r   )r   r   r   rT   )r   r	   r   rT   r   s       €r   r   zHTTPStatusError.__init__é   s-   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!ØˆŒØ ˆŒˆˆr   )r	   r
   r   r   rT   r   r   r   r)   r$   s   @r   rS   rS   â   sG   ø€ € € € € ðð ð!ð !ð !ð !ð !ð !ð !ð !ð !ð !r   rS   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )Ú
InvalidURLz7
    URL is improperly formed or cannot be parsed.
    r	   r
   r   r   c                óJ   •— t          ¦   «                              |¦  «         d S r   ©r   r   r   s     €r   r   zInvalidURL.__init__ô   ó!   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   r   r)   r$   s   @r   rW   rW   ï   sG   ø€ € € € € ðð ð"ð "ð "ð "ð "ð "ð "ð "ð "ð "r   rW   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚCookieConflictz†
    Attempted to lookup a cookie by name, but multiple cookies existed.

    Can occur when calling `response.cookies.get(...)`.
    r	   r
   r   r   c                óJ   •— t          ¦   «                              |¦  «         d S r   rY   r   s     €r   r   zCookieConflict.__init__ÿ   rZ   r   r   r)   r$   s   @r   r\   r\   ø   sG   ø€ € € € € ðð ð"ð "ð "ð "ð "ð "ð "ð "ð "ð "r   r\   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚStreamErrorz‡
    The base class for stream exceptions.

    The developer made an error in accessing the request stream in
    an invalid way.
    r	   r
   r   r   c                óJ   •— t          ¦   «                              |¦  «         d S r   rY   r   s     €r   r   zStreamError.__init__  rZ   r   r   r)   r$   s   @r   r_   r_   	  sG   ø€ € € € € ðð ð"ð "ð "ð "ð "ð "ð "ð "ð "ð "r   r_   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚStreamConsumedz]
    Attempted to read or stream content, but the content has already
    been streamed.
    r   r   c                óN   •— d}t          ¦   «                              |¦  «         d S )Na]  Attempted to read or stream some content, but the content has already been streamed. For requests, this could be due to passing a generator as request content, and then receiving a redirect response or a secondary request as part of an authentication flow.For responses, this could be due to attempting to stream the response content more than once.rY   r   s     €r   r   zStreamConsumed.__init__  s-   ø€ ð&ð 	õ 	‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   ©r   r   r)   r$   s   @r   rb   rb     sG   ø€ € € € € ðð ð
	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"ð 	"r   rb   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚStreamClosedz\
    Attempted to read or stream response content, but the request has been
    closed.
    r   r   c                óN   •— d}t          ¦   «                              |¦  «         d S )NzDAttempted to read or stream content, but the stream has been closed.rY   r   s     €r   r   zStreamClosed.__init__-  s+   ø€ àUð 	õ 	‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   rd   r)   r$   s   @r   rf   rf   '  sG   ø€ € € € € ðð ð
"ð "ð "ð "ð "ð "ð "ð "ð "ð "r   rf   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚResponseNotReadzY
    Attempted to access streaming response content, without having called `read()`.
    r   r   c                óN   •— d}t          ¦   «                              |¦  «         d S )NzOAttempted to access streaming response content, without having called `read()`.rY   r   s     €r   r   zResponseNotRead.__init__9  ó-   ø€ ð/ð 	õ 	‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   rd   r)   r$   s   @r   ri   ri   4  óG   ø€ € € € € ðð ð"ð "ð "ð "ð "ð "ð "ð "ð "ð "r   ri   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚRequestNotReadzX
    Attempted to access streaming request content, without having called `read()`.
    r   r   c                óN   •— d}t          ¦   «                              |¦  «         d S )NzNAttempted to access streaming request content, without having called `read()`.rY   r   s     €r   r   zRequestNotRead.__init__F  rk   r   rd   r)   r$   s   @r   rn   rn   A  rl   r   rn   r   r'   r   útyping.Iterator[None]c              #  óN   K  — 	 dV — dS # t           $ r}| �| |_        |‚d}~ww xY w)z—
    A context manager that can be used to attach the given request context
    to any `RequestError` exceptions that are raised within the block.
    N)r&   r   )r   Úexcs     r   Úrequest_contextrs   N  sI   è è € ðØˆˆˆˆˆøÝð ð ð ØÐØ!ˆCŒKØˆ	øøøøðøøøs   „
 Š
$”Ÿ$r   )r   r'   r   rp   ))r    Ú
__future__r   Ú
contextlibÚtypingÚTYPE_CHECKINGÚ_modelsr   r   Ú	Exceptionr   r&   r+   r0   r3   r5   r7   r9   r;   r=   r?   rA   rC   rE   rG   rI   rK   rM   rO   rQ   rS   rW   r\   r   r_   rb   rf   ri   rn   Úcontextmanagerrs   r-   r   r   ú<module>r{      s/  ððð ð@ #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ø €€€à	Ôð +Ø*Ð*Ð*Ð*Ð*Ð*Ð*Ð*ð ð  ð  ð  ð  �	ñ  ô  ð  ðB ð  ð  ð  ð  �9ñ  ô  ð  ð ð ð ð ð �\ñ ô ð ðð ð ð ð �~ñ ô ð ðð ð ð ð Ð%ñ ô ð ðð ð ð ð Ð"ñ ô ð ðð ð ð ð Ð#ñ ô ð ðð ð ð ð Ð"ñ ô ð ðð ð ð ð �>ñ ô ð ðð ð ð ð �ñ ô ð ðð ð ð ð �ñ ô ð ðð ð ð ð �<ñ ô ð ðð ð ð ð �ñ ô ð ðð ð ð ð �ñ ô ð ðð ð ð ð ˜.ñ ô ð ðð ð ð ð �Nñ ô ð ðð ð ð ð ˜ñ ô ð ðð ð ð ð ˜-ñ ô ð ðð ð ð ð �Lñ ô ð ðð ð ð ð �|ñ ô ð ð
!ð 
!ð 
!ð 
!ð 
!�iñ 
!ô 
!ð 
!ð"ð "ð "ð "ð "�ñ "ô "ð "ð"ð "ð "ð "ð "�Yñ "ô "ð "ð"	"ð 	"ð 	"ð 	"ð 	"�,ñ 	"ô 	"ð 	"ð"ð "ð "ð "ð "�[ñ "ô "ð "ð$
"ð 
"ð 
"ð 
"ð 
"�;ñ 
"ô 
"ð 
"ð
"ð 
"ð 
"ð 
"ð 
"�kñ 
"ô 
"ð 
"ð
"ð 
"ð 
"ð 
"ð 
"�[ñ 
"ô 
"ð 
"ð Ôà"ðð ð ð ñ Ôðð ð r   