+
    õäûjí.  ã                  óH  € ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	H
t
Ht ^ RIHtHtHt ^ RIHt ^RIHt ^RIHtHtHt ^R	IHtHt ]'       d   ^ R
IHt . ROt ! R R4      t ! R R]4      t ! R R]4      t ! R R]4      t  ! R R]4      t! ! R R]4      t"R# )é    )ÚannotationsN)Ú	b64encode)ÚAsyncGeneratorÚCallableÚ	Generator)ÚTYPE_CHECKINGÚClassVarÚ
NamedTuple)Úparse_http_list)ÚProtocolError)ÚCookiesÚRequestÚResponse)Úto_bytesÚto_str)Ú_HashÚAuthÚ	BasicAuthÚ
DigestAuthÚFunctionAuthÚ	NetRCAuthc                  óF   € ] tR t^tRtRtRtR R ltR R ltR R lt	R	t
R
# )r   aÔ  
Base class for all authentication schemes.

To implement a custom authentication scheme, subclass `Auth` and override
the `.auth_flow()` method.

If the authentication scheme does I/O such as disk access or network calls, or uses
synchronization primitives such as locks, you should override `.sync_auth_flow()`
and/or `.async_auth_flow()` instead of `.auth_flow()` to provide specialized
implementations that will be used by `Client` and `AsyncClient` respectively.
Fc               ó    € V ^8„  d   QhRRRR/# ©é   Úrequestr   Úreturnz"Generator[Request, Response, None]© )Úformats   "ÚHC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\httpx2\_auth.pyÚ__annotate__ÚAuth.__annotate__&   s   € ÷ ñ  ð Ð-Oñ ó    c              #  ó   "  € Vx € R# 5i)a—  
Execute the authentication flow.

To dispatch a request, `yield` it:

```
yield request
```

The client will `.send()` the response back into the flow generator. You can
access it like so:

```
response = yield request
```

A `return` (or reaching the end of the generator) will result in the
client returning the last response obtained from the server.

You can dispatch as many requests as is necessary.
Nr   ©Úselfr   s   &&r    Ú	auth_flowÚAuth.auth_flow&   s   é € ð, Œùs   ‚	c               ó    € V ^8„  d   QhRRRR/# r   r   )r   s   "r    r!   r"   >   s   € ÷ ñ  gð Ð2Tñ r#   c              #  ó   "  € V P                   '       d   VP                  4        V P                  V4      p\        V4      p Vx €pV P                  '       d   VP                  4         VP                  V4      pK;    \         d     R# i ; i5i)zÈ
Execute the authentication flow synchronously.

By default, this defers to `.auth_flow()`. You should override this method
when the authentication scheme does I/O and/or uses concurrency primitives.
N)Úrequires_request_bodyÚreadr'   ÚnextÚrequires_response_bodyÚsendÚStopIteration©r&   r   ÚflowÚresponses   &&  r    Úsync_auth_flowÚAuth.sync_auth_flow>   sv   é € ð ×%×%Ð%Ø�L‰LŒNà�~‰~˜gÓ&ˆÜ�t“*ˆàØ$‘}ˆHØ×*×*Ð*Ø—‘”ðØŸ)™) HÓ-’øÜ ô Úðüs0   ‚ABÁBÁ)A< Á:BÁ<BÂBÂ
BÂBc               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   z!AsyncGenerator[Request, Response]r   )r   s   "r    r!   r"   U   s   € ÷ ñ ¨Wð Ð9Zñ r#   c               óJ  "  € V P                   '       d   VP                  4       G Rj  x€L
  V P                  V4      p\        V4      p V5x €pV P                  '       d   VP                  4       G Rj  x€L
   VP                  V4      pKD   Ld L  \         d     R# i ; i5i)zÉ
Execute the authentication flow asynchronously.

By default, this defers to `.auth_flow()`. You should override this method
when the authentication scheme does I/O and/or uses concurrency primitives.
N)r+   Úareadr'   r-   r.   r/   r0   r1   s   &&  r    Úasync_auth_flowÚAuth.async_auth_flowU   s�   é € ð ×%×%Ð%Ø—-‘-“/×!Ð!à�~‰~˜gÓ&ˆÜ�t“*ˆàØ$’}ˆHØ×*×*Ð*Ø—n‘nÓ&×&Ð&ðØŸ)™) HÓ-’ñ "ñ 'øô !ô ÚðüsK   ‚&B#¨B©7B#Á!B#Á4BÁ5B#Á:B ÂB#ÂB#ÂB ÂB#ÂB Â B#r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r+   r.   r'   r4   r9   Ú__static_attributes__r   r#   r    r   r      s)   † ñ
ð "ÐØ"Ðõõ0÷.ñ r#   c                  ó2   € ] tR t^mtRtR R ltR R ltRtR# )r   z…
Allows the 'auth' argument to be passed as a simple callable function,
that takes the request, and returns a new, modified request.
c               ó    € V ^8„  d   QhRRRR/# )r   ÚfunczCallable[[Request], Request]r   ÚNoner   )r   s   "r    r!   ÚFunctionAuth.__annotate__s   s   € ÷ ñ Ð9ð ¸dñ r#   c                	ó   € Wn         R # ©N©Ú_func)r&   rC   s   &&r    Ú__init__ÚFunctionAuth.__init__s   s   € ØŽ
r#   c               ó    € V ^8„  d   QhRRRR/# r   r   )r   s   "r    r!   rE   v   s   € ÷ "ñ " ð "Ð-Oñ "r#   c              #  	ó4   "  € V P                  V4      x € R # 5irG   rH   r%   s   &&r    r'   ÚFunctionAuth.auth_flowv   s   é € Ø�j‰j˜Ó!Ô!ùs   ‚rH   N)r;   r<   r=   r>   r?   rJ   r'   r@   r   r#   r    r   r   m   s   † ñõ
÷"ñ "r#   c                  ó>   € ] tR t^ztRtR R ltR R ltR R ltRtR	# )
r   zm
Allows the 'auth' argument to be passed as a (username, password) pair,
and uses HTTP Basic authentication.
c               ó$   € V ^8„  d   QhRRRRRR/# ©r   Úusernameústr | bytesÚpasswordr   rD   r   )r   s   "r    r!   ÚBasicAuth.__annotate__€   s&   € ÷ Hñ H ð H¸ð HÈñ Hr#   c                	ó2   € V P                  W4      V n        R # rG   )Ú_build_auth_headerÚ_auth_header©r&   rR   rT   s   &&&r    rJ   ÚBasicAuth.__init__€   s   € Ø ×3Ñ3°HÓGˆÖr#   c               ó    € V ^8„  d   QhRRRR/# r   r   )r   s   "r    r!   rU   ƒ   s   € ÷ ñ  ð Ð-Oñ r#   c              #  	óH   "  € V P                   VP                  R &   Vx € R# 5i)ÚAuthorizationN)rX   Úheadersr%   s   &&r    r'   ÚBasicAuth.auth_flowƒ   s   é € Ø+/×+<Ñ+<ˆ�‰˜Ñ(ØŒùs   ‚ "c               ó$   € V ^8„  d   QhRRRRRR/# ©r   rR   rS   rT   r   Ústrr   )r   s   "r    r!   rU   ‡   ó"   € ÷  ñ  ¨;ð  À+ð  ÐRUñ  r#   c                	óˆ   € R P                  \        V4      \        V4      34      p\        V4      P                  4       pRV 2# ©ó   :zBasic ©Újoinr   r   Údecode©r&   rR   rT   ÚuserpassÚtokens   &&&  r    rW   ÚBasicAuth._build_auth_header‡   ó?   € Ø—9‘9œh xÓ0´(¸8Ó2DÐEÓFˆÜ˜(Ó#×*Ñ*Ó,ˆØ˜�wÐÐr#   )rX   N©	r;   r<   r=   r>   r?   rJ   r'   rW   r@   r   r#   r    r   r   z   s   † ñõ
Hõ÷ ñ  r#   c                  óB   € ] tR t^�tRtR
R R lltR R ltR R ltR	tR# )r   zL
Use a 'netrc' file to lookup basic auth credentials based on the url host.
Nc               ó    € V ^8„  d   QhRRRR/# )r   Úfilez
str | Noner   rD   r   )r   s   "r    r!   ÚNetRCAuth.__annotate__’   s   € ÷ -ñ -˜Zð -°4ñ -r#   c                	ó:   € ^ RI pVP                  V4      V n        R# )r   N)ÚnetrcÚ_netrc_info)r&   rr   ru   s   && r    rJ   ÚNetRCAuth.__init__’   s   € ó 	à Ÿ;™; tÓ,ˆÖr#   c               ó    € V ^8„  d   QhRRRR/# r   r   )r   s   "r    r!   rs   ™   s   € ÷ ñ  ð Ð-Oñ r#   c              #  	ó  "  € V P                   P                  VP                  P                  4      pVe   V^,          '       g   Vx € R # V P	                  V^ ,          V^,          R7      VP
                  R&   Vx € R # 5i)N)rR   rT   r]   )rv   ÚauthenticatorsÚurlÚhostrW   r^   )r&   r   Ú	auth_infos   && r    r'   ÚNetRCAuth.auth_flow™   sk   é € Ø×$Ñ$×3Ñ3°G·K±K×4DÑ4DÓEˆ	ØÒ I¨a§L¤LàŒMð 04×/FÑ/FÐPYÐZ[ÕP\ÐgpÐqrÕgsÐ/FÓ/tˆG�O‰O˜OÑ,ØŒMùs   ‚AA?Á:A?c               ó$   € V ^8„  d   QhRRRRRR/# ra   r   )r   s   "r    r!   rs   £   rc   r#   c                	óˆ   € R P                  \        V4      \        V4      34      p\        V4      P                  4       pRV 2# re   rg   rj   s   &&&  r    rW   ÚNetRCAuth._build_auth_header£   rn   r#   )rv   rG   ro   r   r#   r    r   r   �   s   † ñ÷-õ÷ ñ  r#   c                  óš   € ] tR t^©t$ RRRRRRRRRRR	RR
RRR/tR]R&   R R ltR R ltR R ltR R lt	R R lt
R R ltR R ltRtR# )r   ÚMD5Úmd5zMD5-SESSÚSHAÚsha1zSHA-SESSzSHA-256Úsha256zSHA-256-SESSzSHA-512Úsha512zSHA-512-SESSzClassVar[dict[str, str]]Ú_ALGORITHM_TO_HASH_NAMEc               ó$   € V ^8„  d   QhRRRRRR/# rQ   r   )r   s   "r    r!   ÚDigestAuth.__annotate__¶   s!   € ÷ ñ  ð ¸ð Èñ r#   c                	ób   € \        V4      V n        \        V4      V n        R V n        ^V n        R # rG   )r   Ú	_usernameÚ	_passwordÚ_last_challengeÚ_nonce_countrY   s   &&&r    rJ   ÚDigestAuth.__init__¶   s*   € Ü! (Ó+ˆŒÜ! (Ó+ˆŒØ<@ˆÔØˆÖr#   c               ó    € V ^8„  d   QhRRRR/# r   r   )r   s   "r    r!   r‹   ¼   s   € ÷ ñ  ð Ð-Oñ r#   c              #  	ój  "  € V P                   '       d)   V P                  WP                   4      VP                  R &   Vx €pVP                  R8w  g   RVP                  9  d   R# VP                  P	                  R4       F*  pVP                  4       P                  R4      '       g   K*   M	  R# V P                  WV4      V n         ^V n        V P                  WP                   4      VP                  R &   VP                  '       d&   \        VP                  4      P                  VR7       Vx € R# 5i)r]   i‘  zwww-authenticateNzdigest ©r   )r�   rW   r^   Ústatus_codeÚget_listÚlowerÚ
startswithÚ_parse_challenger�   Úcookiesr   Úset_cookie_header)r&   r   r3   Úauth_headers   &&  r    r'   ÚDigestAuth.auth_flow¼   s   é € Ø××ÐØ/3×/FÑ/FÀw×PdÑPdÓ/eˆG�O‰O˜OÑ,à ‘=ˆà×Ñ 3Ô&Ð*<ÀH×DTÑDTÔ*Tñ à#×+Ñ+×4Ñ4Ð5GÖHˆKØ× Ñ Ó"×-Ñ-¨i×8Ô8Ùñ Iñ à#×4Ñ4°WÈÓTˆÔØˆÔà+/×+BÑ+BÀ7×L`ÑL`Ó+aˆ�‰˜Ñ(Ø××ÐÜ�H×$Ñ$Ó%×7Ñ7ÀÐ7ÔHØŒùs   ‚B#D3Â*B	D3c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r   r   r   r3   r   rœ   rb   r   Ú_DigestAuthChallenger   )r   s   "r    r!   r‹   ×   s0   € ÷ Cñ C¨ð C¸8ð CÐRUð CÐZnñ Cr#   c                ó¢  € VP                  R4      w  rEpVP                  4       R8X  g   Q h/ p\        V4       Fb  pVP                  4       P	                  R^4      w  ršV
P                  4       P                  R4      WyP                  4       P                  4       &   Kd  	   VR,          P                  4       pVR,          P                  4       pVP                  RR4      pR	V9   d   VR	,          P                  4       MR
pRV9   d   VR,          P                  4       MR
p\        W¼WÞVR7      #   \         d   pRp\        TTR7      ThR
p?ii ; i)z¡
Returns a challenge from a Digest WWW-Authenticate header.
These take the form of:
`Digest realm="realm@host.com",qop="auth,auth-int",nonce="abc",opaque="xyz"`
Ú ÚdigestÚ=Ú"ÚrealmÚnonceÚ	algorithmrƒ   ÚopaqueNÚqop)r¥   r¦   r§   r¨   r©   z(Malformed Digest WWW-Authenticate headerr”   )
Ú	partitionr—   r   ÚstripÚsplitÚencodeÚgetrŸ   ÚKeyErrorr   )r&   r   r3   rœ   ÚschemeÚ_ÚfieldsÚheader_dictÚfieldÚkeyÚvaluer¥   r¦   r§   r¨   r©   ÚexcÚmessages   &&&&              r    r™   ÚDigestAuth._parse_challenge×   s0  € ð (×1Ñ1°#Ó6Ñˆ�6ð �|‰|‹~ Ô)Ð)Ð)à&(ˆÜ$ VÖ,ˆEØŸ™›×,Ñ,¨S°!Ó4‰JˆCØ/4¯{©{«}×/BÑ/BÀ3Ó/GˆKŸ	™	›×)Ñ)Ó+Ó,ñ -ð		CØ Õ(×/Ñ/Ó1ˆEØ Õ(×/Ñ/Ó1ˆEØ#Ÿ™¨°UÓ;ˆIØ7?À;Ô7N�[ Õ*×1Ñ1Ô3ÐTXˆFØ16¸+Ô1E�+˜eÕ$×+Ñ+Ô-È4ˆCÜ'¨eÈIÐjmÔnÐnøÜô 	CØ@ˆGÜ °Ô9¸sÐBûð	Cús   Â BD. Ä.EÄ9E	Å	Ec               ó$   € V ^8„  d   QhRRRRRR/# )r   r   r   Ú	challengerŸ   r   rb   r   )r   s   "r    r!   r‹   ò   s#   € ÷ 2?ñ 2?¨'ð 2?Ð>Rð 2?ÐWZñ 2?r#   c                	ó  a€  \        \        V P                  VP                  P	                  4       ,          4      oR T3R llpRP                  T P                  TP                  T P                  34      pTP                  P                  pRP                  TP                  P                  4       T34      pT! T4      p	RT P                   ,          p
T P#                  T P                   TP$                  4      pT ;P                   ^,          un        T! T4      pTP                  P'                  4       P)                  R4      '       d$   T! RP                  YÂP$                  T34      4      pT P+                  TP,                  TR7      pTf   YÂP$                  T	.pMYÂP$                  Y«YÙ.pRT P                  R	TP                  R
TP$                  RTRT! RP                  T4      4      RTP                  P                  4       /pTP.                  '       d   TP.                  TR&   T'       d   RTR&   Y¯R&   Y¿R&   RT P1                  T4      ,           #   \
        \        3 d#   pR TP                  : 2p\        YAR7      ThRp?ii ; i)z"Unsupported digest auth algorithm r”   Nc               ó    € V ^8„  d   QhRRRR/# )r   ÚdataÚbytesr   r   )r   s   "r    r!   Ú3DigestAuth._build_auth_header.<locals>.__annotate__û   s   € ÷ 	8ñ 	8˜ð 	8 5ñ 	8r#   c                óL   <€ S! V 4      P                  4       P                  4       # rG   )Ú	hexdigestr­   )r¾   Ú	hash_funcs   &€r    r¢   Ú-DigestAuth._build_auth_header.<locals>.digestû   s   ø€ Ù˜T“?×,Ñ,Ó.×5Ñ5Ó7Ð7r#   rf   s   %08xz-sessrR   r¥   r¦   Úurir3   r§   r¨   ó   authr©   ÚncÚcnoncezDigest )ÚgetattrÚhashlibr‰   r§   Úupperr¯   ÚAttributeErrorr   rh   r�   r¥   rŽ   r{   Úraw_pathÚmethodr­   r�   Ú_get_client_noncer¦   r—   ÚendswithÚ_resolve_qopr©   r¨   Ú_get_header_value)r&   r   r»   r·   r¸   r¢   ÚA1ÚpathÚA2ÚHA2Únc_valuerÈ   ÚHA1r©   Údigest_dataÚformat_argsrÃ   s   &&&             @r    rW   ÚDigestAuth._build_auth_headerò   s2  ø€ ð	CÜ29Ü˜×5Ñ5°i×6IÑ6I×6OÑ6OÓ6QÕRó3ˆI÷	8ð 	8ð �Y‰Y˜Ÿ™¨	¯©¸¿¹ÐHÓIˆà�{‰{×#Ñ#ˆØ�Y‰Y˜Ÿ™×-Ñ-Ó/°Ð6Ó7ˆá�R‹jˆà˜T×.Ñ.Õ.ˆØ×'Ñ'¨×(9Ñ(9¸9¿?¹?ÓKˆØ×Ò˜QÕÕá�R‹jˆØ×Ñ×$Ñ$Ó&×/Ñ/°×8Ò8Ù˜Ÿ™ C¯©¸&Ð#AÓBÓCˆCà×Ñ 	§¡°wÐÓ?ˆØŠ;à§¡°Ð5‰Kð §¡°À3ÐLˆKð ˜Ÿ™Ø�Y—_‘_Ø�Y—_‘_Ø�4Ø™˜tŸy™y¨Ó5Ó6Ø˜×,Ñ,×3Ñ3Ó5ð
ˆð ××ÐØ$-×$4Ñ$4ˆK˜Ñ!ßØ!(ˆK˜ÑØ (˜ÑØ$*˜Ñ!à˜4×1Ñ1°+Ó>Õ>Ð>øô[ œ.Ð)ô 	CØ:¸9×;NÑ;NÑ:QÐRˆGÜ Ô9¸sÐBûð	Cús   ƒ9I ÉJÉ#J Ê Jc               ó$   € V ^8„  d   QhRRRRRR/# )r   Únonce_countÚintr¦   r¿   r   r   )r   s   "r    r!   r‹   &  s!   € ÷ 9ñ 9¨Sð 9¸ð 9À5ñ 9r#   c                	óD  € \        V4      P                  4       pW2,          pV\        P                  ! 4       P                  4       ,          pV\        P
                  ! ^4      ,          p\        P                  ! V4      P                  4       R,          P                  4       # )é   :Né   N)	rb   r­   ÚtimeÚctimeÚosÚurandomrÊ   r†   rÂ   )r&   rÝ   r¦   Úss   &&& r    rÏ   ÚDigestAuth._get_client_nonce&  sl   € Ü�Ó×#Ñ#Ó%ˆØ	�
ˆØ	ŒT�ZŠZ‹\× Ñ Ó"Õ"ˆØ	ŒR�ZŠZ˜‹]Õˆä�|Š|˜A‹×(Ñ(Ó*¨3Õ/×6Ñ6Ó8Ð8r#   c               ó    € V ^8„  d   QhRRRR/# )r   Úheader_fieldszdict[str, bytes]r   rb   r   )r   s   "r    r!   r‹   .  s   € ÷ ñ Ð/?ð ÀCñ r#   c                	óÖ   € RpRpRpRp\        VP                  4       4       FC  w  pw  rxV^ 8”  d
   VR,          pWr9  d   TMTp	WYP                  V\        V4      4      ,          pKE  	  V# )r§   z{}="{}"z{}={}Ú z, )r§   r©   rÇ   )Ú	enumerateÚitemsr   r   )
r&   ré   ÚNON_QUOTED_FIELDSÚQUOTED_TEMPLATEÚNON_QUOTED_TEMPLATEÚheader_valueÚir´   r¶   Útemplates
   &&        r    rÒ   ÚDigestAuth._get_header_value.  su   € Ø6ÐØ#ˆØ%ÐàˆÜ!*¨=×+>Ñ+>Ó+@Ö!AÑˆA‰~�Ø�1ŒuØ Õ$�Ø*/Ô*H‘ÐNaˆHØŸO™O¨E´6¸%³=ÓAÕAŠLñ	 "Bð Ðr#   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r©   úbytes | Noner   r   r   r   )r   s   "r    r!   r‹   <  s!   € ÷ 6ñ 6 ð 6°wð 6À<ñ 6r#   c                	óš   € Vf   R # \         P                  ! RV4      pRV9   d   R# VR.8X  d   \        R4      hRV: R2p\        WBR7      h)Ns   , ?rÆ   s   auth-intz.Digest auth-int support is not yet implementedzUnexpected qop value "z" in digest authr”   )Úrer¬   ÚNotImplementedErrorr   )r&   r©   r   Úqopsr¸   s   &&&  r    rÑ   ÚDigestAuth._resolve_qop<  sT   € ØŠ;ÙÜ�xŠx˜ Ó$ˆØ�dŒ?Ùà�K�=Ô Ü%Ð&VÓWÐWà*¨3©'Ð1AÐBˆÜ˜GÔ5Ð5r#   )r�   r�   rŽ   r�   N)r;   r<   r=   r>   r‰   Ú__annotations__rJ   r'   r™   rW   rÏ   rÒ   rÑ   r@   r   r#   r    r   r   ©   sf   ‡ ð 	ˆuØ�EØˆvØ�FØ�8Ø˜Ø�8Ø˜ð	9ÐÐ5ó 	õõõ6Cõ62?õh9õ÷6ñ 6r#   c                  óJ   € ] tR tRt$ R]R&   R]R&   R]R&   R]R&   R]R	&   R
tR# )rŸ   iJ  r¿   r¥   r¦   rb   r§   rö   r¨   r©   r   N)r;   r<   r=   r>   rü   r@   r   r#   r    rŸ   rŸ   J  s   ‡ ØƒLØƒLØƒNØÓØ	×r#   rŸ   )r   r   r   r   r   )#Ú
__future__r   rÊ   rä   rø   râ   Úbase64r   Úcollections.abcr   r   r   Útypingr   r	   r
   Úurllib.requestr   Ú_exceptionsr   Ú_modelsr   r   r   Ú_utilsr   r   r   Ú__all__r   r   r   r   r   rŸ   r   r#   r    Ú<module>r     s‰   ðÝ "ã Û 	Û 	Û Ý ß ?Ñ ?ß 6Ñ 6Ý *å &ß /Ñ /ß $çÝâ
J€÷Tñ Tôn
"�4ô 
"ô �ô  ô& �ô  ô8^6�ô ^6ôB˜:ö r#   