Ë
    äÿæià&  ã                  ó  — 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__© ó    úg/Volumes/fast/ai/experiments/voice-extract-mac/.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                óJ   •— || _         || _        t        ‰| �  |› d|› �«       y ©Nz: )ÚpoolÚ_messageÚsuperÚ__init__)Úselfr   ÚmessageÚ	__class__s      €r   r   zPoolError.__init__    ó)   ø€ ØˆŒ	ØˆŒÜ‰Ñ˜D˜6  G 9Ð-Õ.r   c                ó6   — | j                   d | j                  ffS ©N©r!   r   ©r   s    r   Ú
__reduce__zPoolError.__reduce__%   ó   € à�~‰~  d§m¡mÐ4Ð4Ð4r   )r   r   r    ÚstrÚreturnÚNone©r*   Ú_TYPE_REDUCE_RESULT©r   r   r   r   r   r'   Ú__classcell__©r!   s   @r   r   r      s   ø„ Ù9õ/÷
5r   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 r$   )Úurlr   r   )r   r   r4   r    r!   s       €r   r   zRequestError.__init__-   s   ø€ ØˆŒÜ‰Ñ˜˜wÕ'r   c                óL   — | j                   d | j                  | j                  ffS r$   )r!   r4   r   r&   s    r   r'   zRequestError.__reduce__1   s    € à�~‰~  d§h¡h°·±Ð>Ð>Ð>r   )r   r   r4   ú
str | Noner    r)   r*   r+   r,   r.   r0   s   @r   r2   r2   *   s   ø„ ÙBõ(÷?r   r2   c                  ó   — e Zd ZdZy)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr   r   r   r   r8   r8   6   ó   „ ÚCr   r8   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 r$   )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/   r0   s   @r   r;   r;   :   s   ø… Ù6ð Ó÷$ñ $r   r;   c                  ó   — e Zd ZdZy)ÚDecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr   r   r   r   rB   rB   E   ó   „ ÚEr   rB   c                  ó   — e Zd ZdZy)ÚProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr   r   r   r   rE   rE   I   s   „ ÚHr   rE   c                  ó>   ‡ — e Zd ZdZ	 d	 	 	 	 	 	 	 dˆ fd„Zd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   r4   rJ   r    r!   s        €r   r   zMaxRetryError.__init___   s1   ø€ ð ˆŒà3°C°5¸ÀVÀJÈaÐPˆä‰Ñ˜˜s GÕ,r   c                óL   — | j                   d | j                  | j                  ffS r$   )r!   r4   rJ   r&   s    r   r'   zMaxRetryError.__reduce__h   s    € à�~‰~  d§h¡h°·±Ð<Ð<Ð<r   r$   )r   r   r4   r6   rJ   zException | Noner*   r+   r,   r.   r0   s   @r   rG   rG   T   s9   ø„ ñð QUð-Ø"ð-Ø)3ð-Ø=Mð-à	õ-÷=r   rG   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   r4   rO   r    r!   s        €r   r   zHostChangedError.__init__p   s)   ø€ ð <¸C¸5ÐAˆÜ‰Ñ˜˜s GÔ,Øˆ�r   )é   )r   r   r4   r)   rO   zRetry | intr*   r+   ©r   r   r   r   r   r/   r0   s   @r   rM   rM   m   s7   ø„ ÙIð FGðØ"ðØ),ðØ7Bðà	÷ñ r   rM   c                  ó   — e Zd ZdZy)ÚTimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr   r   r   r   rS   rS   x   s   „ Ú;r   rS   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   rU   rU   |   s   „ òr   rU   c                  ó   — e Zd ZdZy)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr   r   r   r   rW   rW   „   s   „ ÚPr   rW   c                  ó   — e Zd ZdZy)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr   r   r   r   rY   rY   Š   s   „ ÚJr   rY   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                óJ   •— || _         || _        t        ‰| �  |› d|› �«       y r   )Úconnr   r   r   )r   r]   r    r!   s      €r   r   zNewConnectionError.__init__‘   r"   r   c                ó6   — | j                   d | j                  f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ÚDeprecationWarningr]   r&   s    r   r   zNewConnectionError.poolš   s%   € ä�‰ð5äØõ		
ð �y‰yÐr   )r]   r   r    r)   r*   r+   r,   )r*   r   )	r   r   r   r   r   r'   Úpropertyr   r/   r0   s   @r   r[   r[   Ž   s$   ø„ ÙRõ/ó
5ð òó ôr   r[   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                óT   •— d|› d|› d�}|| _         || _        t        ‰| �  ||«       y )NzFailed to resolve 'z' (rI   )Ú_hostÚ_reasonr   r   )r   Úhostr]   rJ   r    r!   s        €r   r   zNameResolutionError.__init__©   s4   ø€ Ø'¨ v¨S°°¸Ð:ˆØˆŒ
ØˆŒÜ‰Ñ˜˜wÕ'r   c                óL   — | j                   | j                  d | j                  ffS r$   )r!   ri   rj   r&   s    r   r'   zNameResolutionError.__reduce__¯   s    € à�~‰~ §
¡
¨D°$·,±,Ð?Ð?Ð?r   )rk   r)   r]   r   rJ   zsocket.gaierrorr,   r.   r0   s   @r   rg   rg   ¦   s   ø„ Ù1õ(÷@r   rg   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   rn   rn   ´   ó   „ ÚMr   rn   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   rq   rq   ¸   s   „ ÚQr   rq   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   rs   rs   ¼   ro   r   rs   c                  ó   — e Zd ZdZy)ÚLocationValueErrorz<Raised when there is something wrong with a given URL input.Nr   r   r   r   ru   ru   À   s   „ ÚFr   ru   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   ry   r    r!   s      €r   r   zLocationParseError.__init__Ç   s#   ø€ Ø% h ZÐ0ˆÜ‰Ñ˜Ô!à ˆ�r   )ry   r)   r*   r+   rQ   r0   s   @r   rw   rw   Ä   s   ø„ ÙG÷!ñ !r   rw   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   r}   r    r!   s      €r   r   zURLSchemeUnknown.__init__Ñ   s#   ø€ Ø-¨f¨XÐ6ˆÜ‰Ñ˜Ô!àˆ�r   )r}   r)   rQ   r0   s   @r   r{   r{   Î   s   ø„ Ù<÷ñ r   r{   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’   ú   rC   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 r$   ©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 r$   )Ú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://©r   r   r~   s      €r   r   zProxySchemeUnknown.__init__4  s8   ø€ ð �[Ò ØˆFØˆ>ØV‰Gà9¸&¸ÐAaÐbˆGÜ‰Ñ˜Õ!r   )r}   r6   r*   r+   rQ   r0   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¯   @  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: r­   )r   ÚdefectsÚunparsed_datar    r!   s       €r   r   zHeaderParsingError.__init__G  s*   ø€ ð Ò) 	Ð*Ð*;¸MÐ;LÐMˆÜ‰Ñ˜Õ!r   )r´   zlist[MessageDefect]rµ   zbytes | str | Noner*   r+   rQ   r0   s   @r   r±   r±   D  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·   N  r9   r   r·   )AÚ
__future__r   ÚsocketÚtypingrb   Úemail.errorsr   Úhttp.clientr   Úhttplib_IncompleteReadÚTYPE_CHECKINGÚ
connectionr   Úconnectionpoolr   r£   r	   Ú
util.retryr
   r<   r   ÚWarningr   ÚtupleÚCallableÚobjectr-   r   r2   r8   r;   rB   rE   ÚConnectionErrorrG   rM   rS   rU   rW   rY   r[   rg   rn   rq   rs   Ú
ValueErrorru   rw   r{   r€   r„   r‡   r‰   r‹   r�   r�   r’   r”   rŸ   r¨   ÚAssertionErrorrª   r¯   r±   r·   r   r   r   Ú<module>rÉ      sT  ðÝ "ã Û Û Ý &Ý @à	×ÒÝ*Ý.Ý&Ý!ô
.�	ô .ô,�'ô ,ð ˜FŸO™O¨C°¨KÑ8¸%ÀÈÀÑ:LÐLÑMÐ ô
5�	ô 
5ô	?�9ô 	?ôDˆyô Dô$�ô $ôF�)ô FôI�Iô Ið
  €ô=�Lô =ô2�|ô ô<˜	ô <ô�9ô ôQ�| \ô QôK˜,ô KôÐ,¨iô ô0@Ð,ô @ô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   