Ë
    <@‹g¡%  ã                  ó  — d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ	 ej                  rddlmZ ddlmZ ddlmZ dd	lmZ  G d
„ de«      Z G d„ de«      Zeej0                  def   eedf   f   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 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%e«      Z& G d%„ d&e%«      Z' G d'„ d(e'e«      Z( G d)„ d*e(«      Z) G d+„ d,e«      Z* G d-„ d.e«      Z+ G d/„ d0e«      Z, G d1„ d2e-e«      Z. G d3„ d4e.«      Z/ G d5„ d6e.«      Z0 G d7„ d8e«      Z1 G d9„ d:e«      Z2 G d;„ d<e2«      Z3 G d=„ d>e2«      Z4 G d?„ d@e2«      Z5 G dA„ dBe2«      Z6 G dC„ dDe«      Z7 G dE„ dFe e-«      Z8 G dG„ dHe«      Z9 G dI„ dJee	«      Z G dK„ dLee	«      Z: G dM„ dNe«      Z; G dO„ dPe<e0«      Z= G dQ„ dRe-«      Z> G dS„ dTe«      Z? G dU„ dVe«      Z@y)Wé    )ÚannotationsN)ÚMessageDefect)ÚIncompleteReadé   )ÚHTTPConnection)ÚConnectionPool)ÚHTTPResponse)ÚRetryc                  ó   — e Zd ZdZy)Ú	HTTPErrorz#Base exception used by this module.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úQ/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/urllib3/exceptions.pyr   r      s   „ Ú-r   r   c                  ó   — e Zd ZdZy)ÚHTTPWarningz!Base warning used by this module.Nr   r   r   r   r   r      s   „ Ú+r   r   .c                  ó,   ‡ — e Zd ZdZdˆ fd„Zdd„Zˆ xZS )Ú	PoolErrorz/Base exception for errors caused within a pool.c                ó<   •— || _         t        ‰| �	  |› d|› �«       y ©Nz: )ÚpoolÚsuperÚ__init__)Úselfr   ÚmessageÚ	__class__s      €r   r   zPoolError.__init__    ó"   ø€ ØˆŒ	Ü‰Ñ˜D˜6  G 9Ð-Õ.r   c                ó   — | j                   dfS ©N)NN©r    ©r   s    r   Ú
__reduce__zPoolError.__reduce__$   ó   € à�~‰~˜|Ð+Ð+r   )r   r   r   ÚstrÚreturnÚNone©r)   Ú_TYPE_REDUCE_RESULT©r   r   r   r   r   r&   Ú__classcell__r$   s   @r   r   r      s   ø„ Ù9õ/÷,r   r   c                  ó,   ‡ — e Zd ZdZdˆ fd„Zdd„Zˆ xZS )ÚRequestErrorz8Base exception for PoolErrors that have associated URLs.c                ó4   •— || _         t        ‰| �	  ||«       y ©N)Úurlr   r   )r   r   r3   r   r    s       €r   r   zRequestError.__init__,   s   ø€ ØˆŒÜ‰Ñ˜˜wÕ'r   c                ó8   — | j                   d | j                  d ffS r2   )r    r3   r%   s    r   r&   zRequestError.__reduce__0   s   € à�~‰~  d§h¡h°Ð5Ð5Ð5r   )r   r   r3   r(   r   r(   r)   r*   r+   r-   r$   s   @r   r0   r0   )   s   ø„ ÙBõ(÷6r   r0   c                  ó   — e Zd ZdZy)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr   r   r   r   r6   r6   5   ó   „ ÚCr   r6   c                  ó0   ‡ — e Zd ZU dZded<   dˆ fd„Zˆ xZS )Ú
ProxyErrorz,Raised when the connection to a proxy fails.Ú	ExceptionÚoriginal_errorc                ó4   •— t         ‰| �  ||«       || _        y r2   )r   r   r;   )r   r   Úerrorr    s      €r   r   zProxyError.__init__?   s   ø€ Ü‰Ñ˜ %Ô(Ø#ˆÕr   )r   r(   r=   r:   r)   r*   )r   r   r   r   Ú__annotations__r   r.   r$   s   @r   r9   r9   9   s   ø… Ù6ð Ó÷$ñ $r   r9   c                  ó   — e Zd ZdZy)ÚDecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr   r   r   r   r@   r@   D   ó   „ ÚEr   r@   c                  ó   — e Zd ZdZy)ÚProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr   r   r   r   rC   rC   H   s   „ ÚHr   rC   c                  ó6   ‡ — e Zd ZdZ	 d	 	 	 	 	 	 	 dˆ fd„Zˆ xZS )ÚMaxRetryErrora  Raised when the maximum number of retries is exceeded.

    :param pool: The connection pool
    :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
    :param str url: The requested Url
    :param reason: The underlying error
    :type reason: :class:`Exception`

    c                óH   •— || _         d|› d|›d�}t        ‰| �	  |||«       y )NzMax retries exceeded with url: z (Caused by ú))Úreasonr   r   )r   r   r3   rH   r   r    s        €r   r   zMaxRetryError.__init__^   s1   ø€ ð ˆŒà3°C°5¸ÀVÀJÈaÐPˆä‰Ñ˜˜s GÕ,r   r2   )r   r   r3   r(   rH   zException | Noner)   r*   ©r   r   r   r   r   r.   r$   s   @r   rE   rE   S   s9   ø„ ñð JNð-Ø"ð-Ø),ð-Ø6Fð-à	÷-ñ -r   rE   c                  ó6   ‡ — e Zd ZdZ	 d	 	 	 	 	 	 	 dˆ fd„Zˆ xZS )ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.c                ó@   •— d|› �}t         ‰| �  |||«       || _        y )Nz'Tried to open a foreign host with url: )r   r   Úretries)r   r   r3   rM   r   r    s        €r   r   zHostChangedError.__init__k   s)   ø€ ð <¸C¸5ÐAˆÜ‰Ñ˜˜s GÔ,Øˆ�r   )é   )r   r   r3   r(   rM   zRetry | intr)   r*   rI   r$   s   @r   rK   rK   h   s7   ø„ ÙIð FGðØ"ðØ),ðØ7Bðà	÷ñ r   rK   c                  ó   — e Zd ZdZy)ÚTimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr   r   r   r   rP   rP   s   s   „ Ú;r   rP   c                  ó   — e Zd ZdZy)ÚTimeoutErrorz¿Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nr   r   r   r   rR   rR   w   s   „ òr   rR   c                  ó   — e Zd ZdZy)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr   r   r   r   rT   rT      s   „ ÚPr   rT   c                  ó   — e Zd ZdZy)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr   r   r   r   rV   rV   …   s   „ ÚJr   rV   c                  ó>   ‡ — e Zd ZdZdˆ fd„Zdd„Zedd„«       Zˆ xZS )ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.c                ó<   •— || _         t        ‰| �	  |› d|› �«       y r   )Úconnr   r   )r   rZ   r   r    s      €r   r   zNewConnectionError.__init__Œ   r!   r   c                ó   — | j                   dfS r#   r$   r%   s    r   r&   zNewConnectionError.__reduce__�   r'   r   c                óR   — t        j                  dt        d¬«       | j                  S )Nz\The 'pool' property is deprecated and will be removed in urllib3 v2.1.0. Use 'conn' instead.é   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningrZ   r%   s    r   r   zNewConnectionError.pool”   s%   € ä�‰ð5äØõ		
ð �y‰yÐr   )rZ   r   r   r(   r)   r*   r+   )r)   r   )	r   r   r   r   r   r&   Úpropertyr   r.   r$   s   @r   rX   rX   ‰   s$   ø„ ÙRõ/ó,ð òó ôr   rX   c                  ó,   ‡ — e Zd ZdZdˆ fd„Zdd„Zˆ xZS )ÚNameResolutionErrorz'Raised when host name resolution fails.c                ó8   •— d|› d|› d�}t         ‰| �  ||«       y )NzFailed to resolve 'z' (rG   ©r   r   )r   ÚhostrZ   rH   r   r    s        €r   r   zNameResolutionError.__init__£   s&   ø€ Ø'¨ v¨S°°¸Ð:ˆÜ‰Ñ˜˜wÕ'r   c                ó   — | j                   dfS )N)NNNr$   r%   s    r   r&   zNameResolutionError.__reduce__§   s   € à�~‰~Ð1Ð1Ð1r   )rg   r(   rZ   r   rH   zsocket.gaierrorr+   r-   r$   s   @r   rd   rd       s   ø„ Ù1õ(÷2r   rd   c                  ó   — e Zd ZdZy)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr   r   r   r   rj   rj   ¬   ó   „ ÚMr   rj   c                  ó   — e Zd ZdZy)ÚFullPoolErrorzGRaised when we try to add a connection to a full pool in blocking mode.Nr   r   r   r   rm   rm   °   s   „ ÚQr   rm   c                  ó   — e Zd ZdZy)ÚClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr   r   r   r   ro   ro   ´   rk   r   ro   c                  ó   — e Zd ZdZy)ÚLocationValueErrorz<Raised when there is something wrong with a given URL input.Nr   r   r   r   rq   rq   ¸   s   „ ÚFr   rq   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.c                ó<   •— d|› �}t         ‰| �  |«       || _        y )NzFailed to parse: )r   r   Úlocation)r   ru   r   r    s      €r   r   zLocationParseError.__init__¿   s#   ø€ Ø% h ZÐ0ˆÜ‰Ñ˜Ô!à ˆ�r   )ru   r(   r)   r*   rI   r$   s   @r   rs   rs   ¼   s   ø„ ÙG÷!ñ !r   rs   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚURLSchemeUnknownz2Raised when a URL input has an unsupported scheme.c                ó<   •— d|› �}t         ‰| �  |«       || _        y )NzNot supported URL scheme )r   r   Úscheme©r   ry   r   r    s      €r   r   zURLSchemeUnknown.__init__É   s#   ø€ Ø-¨f¨XÐ6ˆÜ‰Ñ˜Ô!àˆ�r   )ry   r(   rI   r$   s   @r   rw   rw   Æ   s   ø„ Ù<÷ñ r   rw   c                  ó   — e Zd ZdZdZdZy)ÚResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)r   r   r   r   ÚGENERIC_ERRORÚSPECIFIC_ERRORr   r   r   r|   r|   Ð   s   „ ÙNà.€MØ=�Nr   r|   c                  ó   — e Zd ZdZy)ÚSecurityWarningz0Warned when performing security reducing actionsNr   r   r   r   r€   r€   ×   ó   „ Ú:r   r€   c                  ó   — e Zd ZdZy)ÚInsecureRequestWarningz/Warned when making an unverified HTTPS request.Nr   r   r   r   rƒ   rƒ   Û   s   „ Ú9r   rƒ   c                  ó   — e Zd ZdZy)ÚNotOpenSSLWarningz)Warned when using unsupported SSL libraryNr   r   r   r   r…   r…   ß   s   „ Ú3r   r…   c                  ó   — e Zd ZdZy)ÚSystemTimeWarningz0Warned when system time is suspected to be wrongNr   r   r   r   r‡   r‡   ã   r�   r   r‡   c                  ó   — e Zd ZdZy)ÚInsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nr   r   r   r   r‰   r‰   ç   s   „ ÚSr   r‰   c                  ó   — e Zd ZdZy)ÚDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nr   r   r   r   r‹   r‹   ë   ó   „ òr   r‹   c                  ó   — e Zd ZdZy)ÚResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nr   r   r   r   rŽ   rŽ   ò   rA   r   rŽ   c                  ó   — e Zd ZdZy)ÚBodyNotHttplibCompatiblez‡
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nr   r   r   r   r�   r�   ö   rŒ   r   r�   c                  ó6   — e Zd ZU dZded<   ded<   dd„Zd	d„Zy)
r   zÎ
    Response length doesn't match expected Content-Length

    Subclass of :class:`http.client.IncompleteRead` to allow int value
    for ``partial`` to avoid creating large objects on streamed reads.
    ÚintÚpartialÚexpectedc                ó    — || _         || _        y r2   ©r“   r”   )r   r“   r”   s      r   r   zIncompleteRead.__init__  s   € ØˆŒØ ˆ�r   c                ó8   — d| j                   | j                  fz  S )Nz/IncompleteRead(%i bytes read, %i more expected)r–   r%   s    r   Ú__repr__zIncompleteRead.__repr__  s#   € Ø@Ø�L‰LØ�M‰MðD
ñ 
ð 	
r   N)r“   r’   r”   r’   r)   r*   ©r)   r(   )r   r   r   r   r>   r   r˜   r   r   r   r   r   ý   s   … ñð ƒLØƒMó!ô
r   r   c                  ó    — e Zd ZdZdd„Zdd„Zy)ÚInvalidChunkLengthz+Invalid chunk length in a chunked response.c                ól   — |j                  «       | _        |j                  | _        || _        || _        y r2   )Útellr“   Úlength_remainingr”   ÚresponseÚlength)r   rŸ   r    s      r   r   zInvalidChunkLength.__init__  s*   € Ø$ŸM™M›OˆŒØ$,×$=Ñ$=ˆŒØ ˆŒØˆ�r   c                ó8   — d| j                   | j                  fz  S )Nz0InvalidChunkLength(got length %r, %i bytes read))r    r“   r%   s    r   r˜   zInvalidChunkLength.__repr__  s#   € ØAØ�K‰KØ�L‰LðE
ñ 
ð 	
r   N)rŸ   r	   r    Úbytesr)   r*   r™   )r   r   r   r   r   r˜   r   r   r   r›   r›     s   „ Ù5óô
r   r›   c                  ó   — e Zd ZdZy)ÚInvalidHeaderz(The header provided was somehow invalid.Nr   r   r   r   r¤   r¤   #  s   „ Ú2r   r¤   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚProxySchemeUnknownz1ProxyManager does not support the supplied schemec                óH   •— |dk(  rd }|€d}nd|› d�}t         ‰| �  |«       y )NÚ	localhostz>Proxy URL had no scheme, should start with http:// or https://z!Proxy URL had unsupported scheme z , should use http:// or https://rf   rz   s      €r   r   zProxySchemeUnknown.__init__,  s8   ø€ ð �[Ò ØˆFØˆ>ØV‰Gà9¸&¸ÐAaÐbˆGÜ‰Ñ˜Õ!r   )ry   z
str | Noner)   r*   rI   r$   s   @r   r¦   r¦   '  s   ø„ Ù;÷	"ñ 	"r   r¦   c                  ó   — e Zd ZdZy)ÚProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr   r   r   r   rª   rª   8  s   „ ÚGr   rª   c                  ó0   ‡ — e Zd ZdZ	 	 	 	 	 	 dˆ fd„Zˆ xZS )ÚHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.c                ó:   •— |xs d› d|›�}t         ‰| �  |«       y )NÚUnknownz, unparsed data: rf   )r   ÚdefectsÚunparsed_datar   r    s       €r   r   zHeaderParsingError.__init__?  s*   ø€ ð Ò) 	Ð*Ð*;¸MÐ;LÐMˆÜ‰Ñ˜Õ!r   )r¯   zlist[MessageDefect]r°   zbytes | str | Noner)   r*   rI   r$   s   @r   r¬   r¬   <  s(   ø„ ÙXð"Ø*ð"Ø;Mð"à	÷"ñ "r   r¬   c                  ó   — e Zd ZdZy)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr   r   r   r   r²   r²   F  r7   r   r²   )AÚ
__future__r   ÚsocketÚtypingr_   Úemail.errorsr   Úhttp.clientr   Úhttplib_IncompleteReadÚTYPE_CHECKINGÚ
connectionr   Úconnectionpoolr   rŸ   r	   Ú
util.retryr
   r:   r   ÚWarningr   ÚtupleÚCallableÚobjectr,   r   r0   r6   r9   r@   rC   ÚConnectionErrorrE   rK   rP   rR   rT   rV   rX   rd   rj   rm   ro   Ú
ValueErrorrq   rs   rw   r|   r€   rƒ   r…   r‡   r‰   r‹   rŽ   r�   r›   r¤   ÚAssertionErrorr¦   rª   r¬   r²   r   r   r   ú<module>rÄ      sR  ðÝ "ã Û Û Ý &Ý @à	×ÒÝ*Ý.Ý&Ý!ô
.�	ô .ô,�'ô ,ð ˜FŸO™O¨C°¨KÑ8¸%ÀÈÀÑ:LÐLÑMÐ ô	,�	ô 	,ô	6�9ô 	6ôDˆyô Dô$�ô $ôF�)ô FôI�Iô Ið
  €ô-�Lô -ô*�|ô ô<˜	ô <ô�9ô ôQ�| \ô QôK˜,ô KôÐ,¨iô ô.	2Ð,ô 	2ôN�Yô NôR�Iô RôN�iô NôG˜ Yô Gô!Ð+ô !ôÐ)ô ô>�Iô >ô;�kô ;ô:˜_ô :ô4˜ô 4ô;˜ô ;ôT˜oô Tô˜ô ôF˜¨
ô Fô˜yô ô
�YÐ 6ô 
ô,
˜Ð$:ô 
ô 3�Iô 3ô"˜Ð)9ô "ô"H˜Zô Hô"˜ô "ôD˜Iõ Dr   