ó
    öÞ jòj  ã                  ó¾  • S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKrS SKr	S SK
r
S SKJrJrJr  S SKJr  S SKJrJrJr  SSKJr  SSKJrJr  SS	KJrJrJrJrJr  SS
K J!r!J"r"  SSK#J$r$  SSK%J&r&J'r'J(r(J)r)J*r*J+r+J,r,  SSK-J.r.  SSKJ/r/J0r0J1r1J2r2  SSK3J4r4J5r5  SSKJ6r6J7r7  SSK8J9r9J:r:  SSK;J<r<  SSK=J>r>  / SQr? " S S\>5      r@ " S S5      rA\ArB  S       SS jjrCg)é    )ÚannotationsN)ÚAsyncIteratorÚ	GeneratorÚSequence)ÚTracebackType)ÚAnyÚCallableÚcasté   )Úasyncio_timeout)ÚHeadersÚHeadersLike)ÚInvalidHeaderÚInvalidHeaderValueÚInvalidMessageÚNegotiationErrorÚSecurityError)ÚClientExtensionFactoryÚ	Extension)Ú enable_client_permessage_deflate)Úbuild_authorization_basicÚbuild_extensionÚ
build_hostÚbuild_subprotocolÚparse_extensionÚparse_subprotocolÚvalidate_subprotocols)Ú
USER_AGENT)ÚExtensionHeaderÚ
LoggerLikeÚOriginÚSubprotocol)ÚWebSocketURIÚ	parse_urié   )ÚInvalidStatusCodeÚRedirectHandshake)Úbuild_requestÚcheck_response)Úread_response)ÚWebSocketCommonProtocol)ÚconnectÚunix_connectÚWebSocketClientProtocolc                  óè   ^ • \ rS rSrSrSrSrSSSSS\S.               SU 4S jjjrSS jr	SS	 jr
\      SS
 j5       r\      SS j5       r    S           SS jjrSrU =r$ )r.   é/   av  
WebSocket client connection.

:class:`WebSocketClientProtocol` provides :meth:`recv` and :meth:`send`
coroutines for receiving and sending messages.

It supports asynchronous iteration to receive messages::

    async for message in websocket:
        await process(message)

The iterator exits normally when the connection is closed with close code
1000 (OK) or 1001 (going away) or without a close code. It raises
a :exc:`~websockets.exceptions.ConnectionClosedError` when the connection
is closed with any other code.

See :func:`connect` for the documentation of ``logger``, ``origin``,
``extensions``, ``subprotocols``, ``extra_headers``, and
``user_agent_header``.

See :class:`~websockets.legacy.protocol.WebSocketCommonProtocol` for the
documentation of ``ping_interval``, ``ping_timeout``, ``close_timeout``,
``max_size``, ``max_queue``, ``read_limit``, and ``write_limit``.

TÚclientN)ÚloggerÚoriginÚ
extensionsÚsubprotocolsÚextra_headersÚuser_agent_headerc               ó˜   >• Uc  [         R                  " S5      n[        TU ]  " SSU0UD6  X l        X0l        X@l        XPl        X`l        g )Núwebsockets.clientr2   © )	ÚloggingÚ	getLoggerÚsuperÚ__init__r3   Úavailable_extensionsÚavailable_subprotocolsr6   r7   )	Úselfr2   r3   r4   r5   r6   r7   ÚkwargsÚ	__class__s	           €ÚR/var/www/html/gaurav/venv/lib/python3.13/site-packages/websockets/legacy/client.pyr>   Ú WebSocketClientProtocol.__init__M   sM   ø€ ð ‰>Ü×&Ò&Ð':Ó;ˆFÜ‰ÒÑ1 Ð1¨&Ò1ØŒØ$.Ô!Ø&2Ô#Ø*ÔØ!2Õó    c                óZ  • Xl         X l        U R                  (       aQ  U R                  R                  SU5        UR	                  5        H!  u  p4U R                  R                  SX45        M#     SU S3nU[        U5      -  nU R                  R                  UR                  5       5        g)z6
Write request line and headers to the HTTP request.

z> GET %s HTTP/1.1z> %s: %szGET z HTTP/1.1
N)	ÚpathÚrequest_headersÚdebugr2   Ú	raw_itemsÚstrÚ	transportÚwriteÚencode)rA   rH   ÚheadersÚkeyÚvalueÚrequests         rD   Úwrite_http_requestÚ*WebSocketClientProtocol.write_http_requesta   s‹   € ð
 Œ	Ø&Ôà�:�:Ø�K‰K×ÑÐ1°4Ô8Ø%×/Ñ/Ö1‘
�Ø—‘×!Ñ! *¨cÖ9ñ 2ð
 ˜˜˜mÐ,ˆØ”3�w“<Ñˆà�‰×Ñ˜WŸ^™^Ó-Õ.rF   c              ƒ  óv  #   •  [        U R                  5      I Sh  v•N u  pnU R                  (       aQ  U R
                  R	                  SX5        UR                  5        H!  u  pVU R
                  R	                  SXV5        M#     X0l        XR                  4$  N|! [         a  n[        S5      UeSnAff = f7f)a  
Read status line and headers from the HTTP response.

If the response contains a body, it may be read from ``self.reader``
after this coroutine returns.

Raises:
    InvalidMessage: If the HTTP message is malformed or isn't an
        HTTP/1.1 GET response.

Nz%did not receive a valid HTTP responsez< HTTP/1.1 %d %sz< %s: %s)r*   ÚreaderÚ	Exceptionr   rJ   r2   rK   Úresponse_headers)rA   Ústatus_codeÚreasonrP   ÚexcrQ   rR   s          rD   Úread_http_responseÚ*WebSocketClientProtocol.read_http_responseu   s¤   é € ð	SÜ1>¸t¿{¹{Ó1K×+KÑ(ˆK ð �:�:Ø�K‰K×ÑÐ0°+ÔFØ%×/Ñ/Ö1‘
�Ø—‘×!Ñ! *¨cÖ9ñ 2ð !(Ôà×1Ñ1Ð1Ð1ñ ,LøÜó 	SÜ Ð!HÓIÈsÐRûð	Süs8   ‚B9„B œB�B ¤A5B9ÂB Â
B6Â%B1Â1B6Â6B9c                ó~  • / nU R                  S5      nU(       aŒ  Uc  [        S5      e[        U Vs/ sH  n[        U5      PM     sn/ 5      nU HS  u  pgU H9  nUR                  U:w  a  M   UR                  Xr5      n	UR                  U	5          MB     [        SU SU 35      e   U$ s  snf ! [         a     Md  f = f)a§  
Handle the Sec-WebSocket-Extensions HTTP response header.

Check that each extension is supported, as well as its parameters.

Return the list of accepted extensions.

Raise :exc:`~websockets.exceptions.InvalidHandshake` to abort the
connection.

:rfc:`6455` leaves the rules up to the specification of each
:extension.

To provide this level of flexibility, for each extension accepted by
the server, we check for a match with each extension available in the
client configuration. If no match is found, an exception is raised.

If several variants of the same extension are accepted by the server,
it may be configured several times, which won't make sense in general.
Extensions must implement their own requirements. For this purpose,
the list of previously accepted extensions is provided.

Other requirements, for example related to mandatory extensions or the
order of extensions, may be implemented by overriding this method.

úSec-WebSocket-Extensionszno extensions supportedzUnsupported extension: name = z, params = )Úget_allr   Úsumr   ÚnameÚprocess_response_paramsÚappend)
rP   r?   Úaccepted_extensionsÚheader_valuesÚheader_valueÚparsed_header_valuesrc   Úresponse_paramsÚextension_factoryÚ	extensions
             rD   Úprocess_extensionsÚ*WebSocketClientProtocol.process_extensions�   só   € ð> 02ÐàŸ™Ð(BÓCˆæØ#Ñ+Ü&Ð'@ÓAÐAä:=ÙCPÓQÁ=°<” Ö.Á=ÑQÐSUó;Ð ó *>Ñ%�Û)=Ð%à(×-Ñ-°Ó5Ù ð!Ø$5×$MÑ$MØ+ó%˜	ð (×.Ñ.¨yÔ9ò ñ# *>ô, +ð"Ø"&  {°?Ð2CðEóð ñ/ *>ð8 #Ð"ùò? Røô ,ó !Ú ð!ús   ²B)Á-B.Â.
B<Â;B<c                ó4  • SnU R                  S5      nU(       ax  Uc  [        S5      e[        U Vs/ sH  n[        U5      PM     sn/ 5      n[	        U5      S:”  a  [        SSSR                  U5       35      eUS   nX!;  a  [        SU 35      eU$ s  snf )	z—
Handle the Sec-WebSocket-Protocol HTTP response header.

Check that it contains exactly one supported subprotocol.

Return the selected subprotocol.

NúSec-WebSocket-Protocolzno subprotocols supportedr%   zmultiple values: z, r   zunsupported subprotocol: )ra   r   rb   r   Úlenr   Újoin)rP   r@   Úsubprotocolrg   rh   ri   s         rD   Úprocess_subprotocolÚ+WebSocketClientProtocol.process_subprotocolØ   s¹   € ð +/ˆàŸ™Ð(@ÓAˆæØ%Ñ-Ü&Ð'BÓCÐCä:=ÙERÓSÁ]°\Ô" <Ö0Á]ÑSÐUWó;Ð ô Ð'Ó(¨1Ó,Ü(Ø,Ø'¨¯	©	Ð2FÓ(GÐ'HÐIóð ð
 /¨qÑ1ˆKàÓ8Ü&Ð)BÀ;À-Ð'PÓQÐQàÐùò Ts   ²Bc              ƒ  ó¦  #   • [        5       n[        UR                  UR                  UR                  5      US'   UR
                  (       a  [        UR
                  6 US'   Ub  X&S'   [        U5      nUb9  [        U Vs/ sH  nUR                  UR                  5       4PM!     sn5      n	X–S'   Ub  [        U5      n
X¦S'   U R                  b  UR                  U R                  5        U R                  (       a  UR                  SU R                  5        U R!                  UR"                  U5        U R%                  5       I Sh  v•N u  p¼US;   a  S	U;  a  ['        S	5      e[)        US	   5      eUS
:w  a  [+        X¼5      e[-        XÇ5        U R/                  XÃ5      U l        U R3                  XÄ5      U l        U R7                  5         gs  snf  N‰7f)aÙ  
Perform the client side of the opening handshake.

Args:
    wsuri: URI of the WebSocket server.
    origin: Value of the ``Origin`` header.
    extensions: List of supported extensions, in order in which they
        should be negotiated and run.
    subprotocols: List of supported subprotocols, in order of decreasing
        preference.
    extra_headers: Arbitrary HTTP headers to add to the handshake request.

Raises:
    InvalidHandshake: If the handshake fails.

ÚHostÚAuthorizationNr!   r`   rp   z
User-Agent)i-  i.  i/  i3  i4  ÚLocationée   )r   r   ÚhostÚportÚsecureÚ	user_infor   r(   r   rc   Úget_request_paramsr   r6   Úupdater7   Ú
setdefaultrT   Úresource_namer]   r   r'   r&   r)   rm   r4   rt   rs   Úconnection_open)rA   Úwsurir3   r?   r@   r6   rI   rQ   rk   Úextensions_headerÚprotocol_headerrZ   rY   s                rD   Ú	handshakeÚ!WebSocketClientProtocol.handshakeý   sÉ  é € ô0 "›)ˆä",¨U¯Z©Z¸¿¹ÀUÇ\Á\Ó"Rˆ˜Ñà�?�?Ü/HØ—‘ð0ˆO˜OÑ,ð ÑØ(.˜HÑ%ä˜OÓ,ˆàÑ+Ü /ñ .Bóá-AÐ)ð '×+Ñ+Ð->×-QÑ-QÓ-SÓTÙ-Añó!Ðð ;LÐ6Ñ7à!Ñ-Ü/Ð0FÓGˆOØ8GÐ4Ñ5à×ÑÑ)Ø×"Ñ" 4×#5Ñ#5Ô6à×!×!Ø×&Ñ& |°T×5KÑ5KÔLà×Ñ × 3Ñ 3°_ÔEà.2×.EÑ.EÓ.G×(GÑ%ˆØÐ3Ó3ØÐ!1Ó1Ü# JÓ/Ð/Ü#Ð$4°ZÑ$@ÓAÐAØ˜CÓÜ# KÓBÐBäÐ'Ô-à×1Ñ1Øó
ˆŒð  ×3Ñ3Øó
ˆÔð 	×ÑÕùòKñ& )Hùs    ‚A=GÁ?%G
Â$B!GÅGÅB
G)
r?   r@   r4   r6   r3   rH   rI   rY   rs   r7   )r2   úLoggerLike | Noner3   úOrigin | Noner4   ú'Sequence[ClientExtensionFactory] | Noner5   úSequence[Subprotocol] | Noner6   úHeadersLike | Noner7   ú
str | NonerB   r   ÚreturnÚNone)rH   rL   rP   r   r�   r�   )r�   ztuple[int, Headers])rP   r   r?   r‹   r�   zlist[Extension])rP   r   r@   rŒ   r�   zSubprotocol | None)NNNN)r„   r#   r3   rŠ   r?   r‹   r@   rŒ   r6   r�   r�   r�   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	is_clientÚsider   r>   rT   r]   Ústaticmethodrm   rt   r‡   Ú__static_attributes__Ú__classcell__)rC   s   @rD   r.   r.   /   sH  ø† ñð4 €IØ€Dð
 %)Ø $Ø>BØ59Ø,0Ø(2ñ3ð "ð3ð ð	3ð
 <ð3ð 3ð3ð *ð3ð &ð3ð ð3ð 
÷3ð 3ô(/ô(2ð4 ðF#ØðF#àEðF#ð 
óF#ó ðF#ðP ð"Øð"Ø2Nð"à	ó"ó ð"ðN !%ØHLØ?CØ,0ðMàðMð ðMð Fð	Mð
 !=ðMð *ðMð 
÷Mó MrF   r.   c                  ó6  • \ rS rSrSr\" \R                  R                  SS5      5      r	SSSSSSS\
SSSSS	S
SSS.                                     SS jjrSS jr\" \R                  R                  SS5      5      r\" \R                  R                  SS5      5      r\" \R                  R                  SS5      5      r\" \R                  R                  SS5      5      rSS jrS S jr        S!S jrS"S jrS S jr\rSrg)#ÚConnectiM  aŸ  
Connect to the WebSocket server at ``uri``.

Awaiting :func:`connect` yields a :class:`WebSocketClientProtocol` which
can then be used to send and receive messages.

:func:`connect` can be used as a asynchronous context manager::

    async with connect(...) as websocket:
        ...

The connection is closed automatically when exiting the context.

:func:`connect` can be used as an infinite asynchronous iterator to
reconnect automatically on errors::

    async for websocket in connect(...):
        try:
            ...
        except websockets.exceptions.ConnectionClosed:
            continue

The connection is closed automatically after each iteration of the loop.

If an error occurs while establishing the connection, :func:`connect`
retries with exponential backoff. The backoff delay starts at three
seconds and increases up to one minute.

If an error occurs in the body of the loop, you can handle the exception
and :func:`connect` will reconnect with the next iteration; or you can
let the exception bubble up and break out of the loop. This lets you
decide which errors trigger a reconnection and which errors are fatal.

Args:
    uri: URI of the WebSocket server.
    create_protocol: Factory for the :class:`asyncio.Protocol` managing
        the connection. It defaults to :class:`WebSocketClientProtocol`.
        Set it to a wrapper or a subclass to customize connection handling.
    logger: Logger for this client.
        It defaults to ``logging.getLogger("websockets.client")``.
        See the :doc:`logging guide <../../topics/logging>` for details.
    compression: The "permessage-deflate" extension is enabled by default.
        Set ``compression`` to :obj:`None` to disable it. See the
        :doc:`compression guide <../../topics/compression>` for details.
    origin: Value of the ``Origin`` header, for servers that require it.
    extensions: List of supported extensions, in order in which they
        should be negotiated and run.
    subprotocols: List of supported subprotocols, in order of decreasing
        preference.
    extra_headers: Arbitrary HTTP headers to add to the handshake request.
    user_agent_header: Value of  the ``User-Agent`` request header.
        It defaults to ``"Python/x.y.z websockets/X.Y"``.
        Setting it to :obj:`None` removes the header.
    open_timeout: Timeout for opening the connection in seconds.
        :obj:`None` disables the timeout.

See :class:`~websockets.legacy.protocol.WebSocketCommonProtocol` for the
documentation of ``ping_interval``, ``ping_timeout``, ``close_timeout``,
``max_size``, ``max_queue``, ``read_limit``, and ``write_limit``.

Any other keyword arguments are passed the event loop's
:meth:`~asyncio.loop.create_connection` method.

For example:

* You can set ``ssl`` to a :class:`~ssl.SSLContext` to enforce TLS
  settings. When connecting to a ``wss://`` URI, if ``ssl`` isn't
  provided, a TLS context is created
  with :func:`~ssl.create_default_context`.

* You can set ``host`` and ``port`` to connect to a different host and
  port from those found in ``uri``. This only changes the destination of
  the TCP connection. The host name from ``uri`` is still used in the TLS
  handshake for secure connections and in the ``Host`` header.

Raises:
    InvalidURI: If ``uri`` isn't a valid WebSocket URI.
    OSError: If the TCP connection fails.
    InvalidHandshake: If the opening handshake fails.
    ~asyncio.TimeoutError: If the opening handshake times out.

ÚWEBSOCKETS_MAX_REDIRECTSÚ10NÚdeflateé
   é   i   é    i   )Úcreate_protocolr2   Úcompressionr3   r4   r5   r6   r7   Úopen_timeoutÚping_intervalÚping_timeoutÚclose_timeoutÚmax_sizeÚ	max_queueÚ
read_limitÚwrite_limitc               óþ  • UR                  SS 5      nUc  SnO[        R                  " S[        5        Uc  UnUR                  SS 5      nUc  [        nO[        R                  " S[        5        Uc  UnUR                  SS5      nUR                  SS 5      nUc  [
        R                  " 5       nOUn[        R                  " S	[        5        [        U5      nUR                  (       a  UR                  S
S5        OUR                  S
5      b  [        S5      eUS:X  a  [        U5      nOUb  [        SU 35      eUb  [        U5        [        [        S[        4   U5      n[         R"                  " U40 SU_SU_SU_SU_SU_SU	_SU_SU_SU_SU_SU_SU_SU_SUR$                  _SUR&                  _SUR                  _SU_SU_6nUR                  S S5      (       a6  UR                  S!S 5      n[         R"                  " UR(                  UU40 UD6nOªUR                  S"5      c  UR$                  UR&                  nnO7S#u  nnUR                  S
5      (       a  UR                  S$UR$                  5        UR                  SU5      nUR                  SU5      n[         R"                  " UR*                  UUU40 UD6nX l        Uc  [.        R0                  " S%5      nX0l        UU l        Xl        UU l        g )&NÚtimeoutr    zrename timeout to close_timeoutÚklasszrename klass to create_protocolÚlegacy_recvFÚloopzremove loop argumentÚsslTzQconnect() received a ssl argument for a ws:// URI, use a wss:// URI to enable TLSrŸ   zunsupported compression: .r2   r3   r4   r5   r6   r7   r¦   r§   r¨   r©   rª   r«   r¬   r{   r|   r}   ÚunixrH   Úsock)NNÚserver_hostnamer9   )ÚpopÚwarningsÚwarnÚDeprecationWarningr.   ÚasyncioÚget_event_loopr$   r}   r�   ÚgetÚ
ValueErrorr   r   r
   r	   Ú	functoolsÚpartialr{   r|   Úcreate_unix_connectionÚcreate_connectionr¥   r;   r<   r2   Ú_create_connectionÚ_uriÚ_wsuri)rA   Úurir£   r2   r¤   r3   r4   r5   r6   r7   r¥   r¦   r§   r¨   r©   rª   r«   r¬   rB   r®   r¯   r°   Ú_loopr±   r„   ÚfactoryrH   rÁ   r{   r|   s                                 rD   r>   ÚConnect.__init__£  s?  € ð. !'§
¡
¨9°dÓ ;ˆØ‰?Ø‰Gä�MŠMÐ;Ô=OÔPàÑ Ø#ˆMð 7=·j±jÀÈ$Ó6OˆØ‰=Ü+‰Eä�MŠMÐ;Ô=OÔPàÑ"Ø#ˆOð #ŸJ™J }°eÓ<ˆð 39·*±*¸VÀTÓ2JˆØ‰=Ü×)Ò)Ó+‰DàˆDÜ�MŠMÐ0Ô2DÔEä˜#“ˆØ�<�<Ø×Ñ˜e TÕ*Ø�Z‰Z˜ÓÑ*Üð1óð ð
 ˜)Ó#Ü9¸*ÓE‰JØÑ$ÜÐ8¸¸ÐFÓGÐGàÑ#Ü! ,Ô/ô œx¨Ô-DÐ(DÑEÀÓWˆÜ×#Ò#Øò
áð
ñ ð
ñ "ð	
ñ
 &ð
ñ (ð
ñ 0ð
ñ (ð
ñ &ð
ñ (ð
ñ ð
ñ  ð
ñ "ð
ñ $ð
ð —’ð
ð  —’ð!
ð" —<’<ð#
ñ$ $ð%
ñ& ð'
ˆð, �:‰:�f˜e×$Ñ$Ø%Ÿz™z¨&°$Ó7ˆDÜ )× 1Ò 1Ø×+Ñ+¨W°dñ!Ø>Dñ!Ñð �z‰z˜&Ó!Ñ)Ø"ŸZ™Z¨¯©�d��dð (‘
��dØ—:‘:˜e×$Ñ$Ø×%Ñ%Ð&7¸¿¹ÔDà—:‘:˜f dÓ+ˆDØ—:‘:˜f dÓ+ˆDÜ )× 1Ò 1Ø×&Ñ&¨°°tñ!Ø?Eñ!Ðð )ÔØ‰>Ü×&Ò&Ð':Ó;ˆFØŒð #4ˆÔØŒ	Øˆ�rF   c           
     ó¨  • U R                   nU R                  n[        R                  R	                  X!5      n[        U5      nUR                  (       a  UR                  (       d  [        S5      eUR                  UR                  :H  =(       a9    UR                  UR                  :H  =(       a    UR                  UR                  :H  nU(       Gdv  U R                  R                  S   nUR                  (       dF  UR                  (       a5  SUR                  S'   U R                  R                  R                  SS5        UR                  R                  S5      nUb6  [        S [        U5      R!                  5        5       5      UR                  S'   ["        R$                  " UR&                  /UR                  Q70 [)        UR                  UR                  UR                  S9D6n["        R$                  " U R                  R&                  /XuR                  UR                  4Q70 U R                  R                  D6U l
        X@l         XPl        g )	Nzredirect from WSS to WSr   Tr}   r²   r6   c              3  óV   #   • U H   u  pUR                  5       S ;  d  M  X4v •  M"     g7f))ÚauthorizationÚcookiezproxy-authorizationN)Úlower)Ú.0rQ   rR   s      rD   Ú	<genexpr>Ú*Connect.handle_redirect.<locals>.<genexpr>@  s/   é € ð á*L™J˜CØŸ9™9›;ØQñRó %˜�Ú*Lùs   ‚)Ÿ
))r{   r|   )rÃ   rÄ   ÚurllibÚparseÚurljoinr$   r}   r   r{   r|   rÂ   ÚargsÚkeywordsr�   r¼   r   rK   r¾   r¿   ÚfuncÚdict)	rA   rÅ   Úold_uriÚ	old_wsuriÚnew_uriÚ	new_wsuriÚsame_originrÇ   r6   s	            rD   Úhandle_redirectÚConnect.handle_redirect"  sÛ  € à—)‘)ˆØ—K‘Kˆ	Ü—,‘,×&Ñ& wÓ4ˆÜ˜gÓ&ˆ	ð ×× I×$4×$4ÜÐ 9Ó:Ð:ð ×Ñ 	× 0Ñ 0Ñ0÷ 1Ø—‘ )§.¡.Ñ0÷1à—‘ )§.¡.Ñ0ð 	÷ Ø×-Ñ-×2Ñ2°1Ñ5ˆGà×#×#¨	×(8×(8Ø-1�× Ñ  Ñ*Ø×'Ñ'×0Ñ0×;Ñ;¸EÀ4ÔHà#×,Ñ,×0Ñ0°ÓAˆMØÑ(Ü4;ñä*1°-Ó*@×*JÑ*JÔ*Lóó5�× Ñ  Ñ1ô  ×'Ò'Ø—‘ðà—‘òô �w×'Ñ'¨i¯n©nÀ9Ç>Á>ÑRñˆGô '0×&7Ò&7Ø×'Ñ'×,Ñ,ð'àŸ>™>¨9¯>©>Ð:ò'ð ×)Ñ)×2Ñ2ñ'ˆDÔ#ð Œ	Ø�rF   Ú WEBSOCKETS_BACKOFF_INITIAL_DELAYÚ5ÚWEBSOCKETS_BACKOFF_MIN_DELAYz3.1ÚWEBSOCKETS_BACKOFF_MAX_DELAYz90.0ÚWEBSOCKETS_BACKOFF_FACTORz1.618c               ó^  #   • U R                   U R                  -  n  U  IS h  v•N nU7v •  S S S 5      IS h  v•N   U R                   nM/   N' N! , IS h  v•N  (       d  f       N)= f! [         Ga5  nXR                   :X  a„  [        R                  " 5       U R                  -  nU R
                  R                  SU[        R                  " U5      S   R                  5       5        [        R                  " U5      I S h  v•N    OsU R
                  R                  S[        U5      [        R                  " U5      S   R                  5       5        [        R                  " [        U5      5      I S h  v•N    XR                  -  n[        XR                  5      n S nAGM‰  S nAff = f7f)Nz0connect failed; reconnecting in %.1f seconds: %sr   z0connect failed again; retrying in %d seconds: %s)ÚBACKOFF_MINÚBACKOFF_FACTORrX   ÚrandomÚBACKOFF_INITIALr2   ÚinfoÚ	tracebackÚformat_exception_onlyÚstriprº   ÚsleepÚintÚminÚBACKOFF_MAX)rA   Úbackoff_delayÚprotocolr\   Úinitial_delays        rD   Ú	__aiter__ÚConnect.__aiter___  s?  é € Ø×(Ñ(¨4×+>Ñ+>Ñ>ˆØð1ß™4 8Ø"“N÷  Ÿ4ð4 !%× 0Ñ 0�ñ9 çŸ4Ÿ4š4ûäô ð !×$4Ñ$4Ó4Ü$*§M¢M£O°d×6JÑ6JÑ$J�MØ—K‘K×$Ñ$ØJØ%Ü!×7Ò7¸Ó<¸QÑ?×EÑEÓGôô
 "Ÿ-š-¨Ó6×6Ò6à—K‘K×$Ñ$ØJÜ˜MÓ*Ü!×7Ò7¸Ó<¸QÑ?×EÑEÓGôô
 "Ÿ-š-¬¨MÓ(:Ó;×;Ñ;à -×0CÑ0CÑ C�Ü # M×3CÑ3CÓ D�Þûð+üs‰   ‚F-žA* ¤A¥A* ¨A®A* ¹AºA* ¾F-ÁA* ÁA* ÁA'ÁAÁA'Á#A* Á*F*Á5BF%ÄDÄA3F%Å5E8Å6(F%ÆF-Æ%F*Æ*F-c              ƒ  ó"   #   • U I S h  v•N $  N7f©Nr:   ©rA   s    rD   Ú
__aenter__ÚConnect.__aenter__�  s   é € Ø�zÐ‰zùs   ‚ˆ‰c              ƒ  óT   #   • U R                   R                  5       I S h  v•N   g  N7fr÷   )rò   Úclose)rA   Úexc_typeÚ	exc_valuerê   s       rD   Ú	__aexit__ÚConnect.__aexit__„  s   é € ð �m‰m×!Ñ!Ó#×#Ó#ùs   ‚( &¡(c                ó>   • U R                  5       R                  5       $ r÷   )Ú__await_impl__Ú	__await__rø   s    rD   r  ÚConnect.__await__Ž  s   € à×"Ñ"Ó$×.Ñ.Ó0Ð0rF   c           
   ƒ  ó  #   • [        U R                  5       IS h  v•N   [        U R                  5       H„  nU R	                  5       I S h  v•N u  p# UR                  U R                  UR                  UR                  UR                  UR                  S9I S h  v•N   X0l        Us  sS S S 5      IS h  v•N   $    [)        S5      e N¬ N~ N0 N! [         aO  nUR                  5         UR                  5       I S h  v•N    U R                  UR                   5         S nAMï  S nAf["        [$        R&                  4 a+    UR                  5         UR                  5       I S h  v•N    e f = f! , IS h  v•N  (       d  f       g = f7f)N)r3   r?   r@   r6   ztoo many redirects)r   r¥   ÚrangeÚMAX_REDIRECTS_ALLOWEDrÂ   r‡   rÄ   r3   r?   r@   r6   rò   r'   Úfail_connectionÚwait_closedrÝ   rÅ   rX   rº   ÚCancelledErrorr   )rA   Ú
_redirectsÚ
_transportrò   r\   s        rD   r  ÚConnect.__await_impl__’  sC  é € Ü" 4×#4Ñ#4×5Õ5Ü# D×$>Ñ$>Ö?�
Ø-1×-DÑ-DÓ-F×'FÑ$�
ð$Ø"×,Ñ,ØŸ™Ø'Ÿ™Ø-5×-JÑ-JØ/7×/NÑ/NØ&.×&<Ñ&<ð -ð ÷ ð ð" %-”MØ#‘O÷- 6×5Ñ5Ù?ô. $Ð$8Ó9Ð9ñ1 6á'Fññ	 6øô )ó 2Ø×,Ñ,Ô.Ø"×.Ñ.Ó0×0Ñ0Ø×(Ñ(¨¯©×1Ò1ûä!¤7×#9Ñ#9Ð:ó Ø×,Ñ,Ô.Ø"×.Ñ.Ó0×0Ñ0Øðú÷! 6×5Ö5üs¸   ‚F
œC	�F
 ,E0ÁCÁE0ÁACÂCÂCÂ!	E0Â*F
Â6CÂ7F
Â<E0Ã	F
ÃE0ÃCÃF
Ã
E-Ã#D%Ã>D
Ã? D%ÄE0Ä%A E-Å%E(
Å&E-Å-E0Å0FÅ6E9Å7FÆF
)rÂ   rÃ   rÄ   r2   r¥   rò   )&rÅ   rL   r£   z-Callable[..., WebSocketClientProtocol] | Noner2   r‰   r¤   rŽ   r3   rŠ   r4   r‹   r5   rŒ   r6   r�   r7   rŽ   r¥   úfloat | Noner¦   r  r§   r  r¨   r  r©   ú
int | Nonerª   r  r«   rî   r¬   rî   rB   r   r�   r�   )rÅ   rL   r�   r�   )r�   z&AsyncIterator[WebSocketClientProtocol])r�   r.   )rý   ztype[BaseException] | Nonerþ   zBaseException | Nonerê   zTracebackType | Noner�   r�   )r�   z-Generator[Any, None, WebSocketClientProtocol])r‘   r’   r“   r”   r•   rî   ÚosÚenvironr¼   r  r   r>   rÝ   Úfloatrè   rå   rð   ræ   rô   rù   rÿ   r  r  Ú__iter__r™   r:   rF   rD   rœ   rœ   M  sè  † ñQñf   §
¡
§¡Ð/IÈ4Ó PÓQÐð JNØ$(Ø"+Ø $Ø>BØ59Ø,0Ø(2Ø%'Ø&(Ø%'Ø&*Ø$Ø $ØØ ñ'}àð}ð Gð	}ð
 "ð}ð  ð}ð ð}ð <ð}ð 3ð}ð *ð}ð &ð}ð #ð}ð $ð}ð #ð}ð $ð}ð  ð!}ð" ð#}ð$ ð%}ð& ð'}ð( ð)}ð* 
õ+}ô~4 ñp ˜BŸJ™JŸN™NÐ+MÈsÓSÓT€OÙ˜Ÿ
™
Ÿ™Ð'EÀuÓMÓN€KÙ˜Ÿ
™
Ÿ™Ð'EÀvÓNÓO€KÙ˜2Ÿ:™:Ÿ>™>Ð*EÀwÓOÓP€Nô1ôDð$à,ð$ð (ð$ð (ð	$ð
 
ô$ô1ô:ð: ƒHrF   rœ   c                ó   • [        SXSS.UD6$ )aÅ  
Similar to :func:`connect`, but for connecting to a Unix socket.

This function builds upon the event loop's
:meth:`~asyncio.loop.create_unix_connection` method.

It is only available on Unix.

It's mainly useful for debugging servers listening on Unix sockets.

Args:
    path: File system path to the Unix socket.
    uri: URI of the WebSocket server; the host is used in the TLS
        handshake for secure connections and in the ``Host`` header.

T)rÅ   rH   r³   r:   )r,   )rH   rÅ   rB   s      rD   r-   r-   µ  s   € ô* Ð;�s¨DÑ;°FÑ;Ð;rF   )Nzws://localhost/)rH   rŽ   rÅ   rL   rB   r   r�   rœ   )DÚ
__future__r   rº   r¾   r;   r  rç   rê   Úurllib.parserÑ   r·   Úcollections.abcr   r   r   Útypesr   Útypingr   r	   r
   Úasyncio.compatibilityr   Údatastructuresr   r   Ú
exceptionsr   r   r   r   r   r4   r   r   Úextensions.permessage_deflater   rP   r   r   r   r   r   r   r   Úhttp11r   r   r    r!   r"   rÅ   r#   r$   r&   r'   r‡   r(   r)   Úhttpr*   rò   r+   Ú__all__r.   rœ   r,   r-   r:   rF   rD   Ú<module>r!     sÍ   ðÝ "ã Û Û Û 	Û Û Û Û ß >Ñ >Ý ß &Ñ &å 3ß 1÷õ ÷ ;Ý L÷÷ ñ õ  ß EÓ Eß )ß <ß 4Ý Ý -ò A€ô[Ð5ô [÷|bñ bðJ €ð Ø ð<Ø
ð<à	ð<ð ð<ð ö	<rF   