+
    –°³jÄ  ã                   óò   € R t ^ RIt^ RIt^RIHt ^RIHtHt ]P                  ! R]P                  ]P                  ,          ]P                  ,          R7      tRR R lltRR R	 lltRR
 R lltR R ltR# )z-Contains utilities to manage Git credentials.N)ÚENDPOINT)Úrun_interactive_subprocessÚrun_subprocesszß
        ^\s* # start of line
        credential\.helper # credential.helper value
        \s*=\s* # separator
        ([\w\-\/]+) # the helper name or absolute path (group 1)
        (\s|$) # whitespace or end of line
    )Úflagsc                óT   € V ^8„  d   QhR\         R,          R\        \         ,          /# )é   ÚfolderNÚreturn©ÚstrÚlist)Úformats   "Úf/home/luca/screen-checking/.venv/lib/python3.14/site-packages/huggingface_hub/utils/_git_credential.pyÚ__annotate__r   #   s"   € ÷ "ñ "¤C¨$¥Jð "¼$¼s½)ñ "ó    c                ó°   €  \        RV R7      P                  p\        V4      pV#   \        P                   d   p\        TP                  4      hRp?ii ; i)aw  Return the list of git credential helpers configured.

See https://git-scm.com/docs/gitcredentials.

Credentials are saved in all configured helpers (store, cache, macOS keychain,...).
Calls "`git credential approve`" internally. See https://git-scm.com/docs/git-credential.

Args:
    folder (`str`, *optional*):
        The folder in which to check the configured helpers.
zgit config --list©r   N)r   ÚstdoutÚ_parse_credential_outputÚ
subprocessÚCalledProcessErrorÚOSErrorÚstderr)r   ÚoutputÚparsedÚexcs   &   r   Úlist_credential_helpersr   #   sN   € ð"ÜÐ 3¸FÔC×JÑJˆÜ)¨&Ó1ˆØˆøÜ×(Ñ(ô "Ü�c—j‘jÓ!Ð!ûð"ús   ‚#& ¦A»AÁAc                óN   € V ^8„  d   QhR\         R\         R\         R,          RR/# )r   ÚtokenÚusernamer   Nr	   ©r   )r   s   "r   r   r   7   s-   € ÷ ñ œcð ¬Sð ÄcÈDÅjð Ð\`ñ r   c                óê   € \        RVR7      ;_uu_ 4       w  ppVP                  R\         RVP                  4        RV  R24       VP	                  4        RRR4       R#   + '       g   i     R# ; i)a  Save a username/token pair in git credential for HF Hub registry.

Credentials are saved in all configured helpers (store, cache, macOS keychain,...).
Calls "`git credential approve`" internally. See https://git-scm.com/docs/git-credential.

Args:
    username (`str`, defaults to `"hf_user"`):
        A git username. Defaults to `"hf_user"`, the default user used in the Hub.
    token (`str`, defaults to `"hf_user"`):
        A git password. In practice, the User Access Token for the Hub.
        See https://huggingface.co/settings/tokens.
    folder (`str`, *optional*):
        The folder in which to check the configured helpers.
zgit credential approver   úurl=z

username=z

password=z

N)r   Úwriter   ÚlowerÚflush)r   r   r   ÚstdinÚ_s   &&&  r   Úset_git_credentialr(   7   sa   € ô 
$Ð$<ÀV×	LÕ	Lñ QØØ	à�‰�dœ8˜* K°·±Ó0@Ð/AÀÈUÈGÐSWÐXÔYØ�‰Œ÷ 
M×	L×	LÒ	Lús   –AA!Á!A2	c                óB   € V ^8„  d   QhR\         R\         R,          RR/# )r   r   r   Nr	   r    )r   s   "r   r   r   N   s&   € ÷ ñ ¤3ð ¼CÀ$½Jð ÐRVñ r   c                ó  € \        RVR7      ;_uu_ 4       w  ppR\         R2pV e   VRV P                  4        R2,          pVR,          pVP                  V4       VP	                  4        RRR4       R#   + '       g   i     R# ; i)a1  Erase credentials from git credential for HF Hub registry.

Credentials are erased from the configured helpers (store, cache, macOS
keychain,...), if any. If `username` is not provided, any credential configured for
HF Hub endpoint is erased.
Calls "`git credential erase`" internally. See https://git-scm.com/docs/git-credential.

Args:
    username (`str`, defaults to `"hf_user"`):
        A git username. Defaults to `"hf_user"`, the default user used in the Hub.
    folder (`str`, *optional*):
        The folder in which to check the configured helpers.
zgit credential rejectr   r"   Ú
Nz	username=)r   r   r$   r#   r%   )r   r   r&   r'   Ústandard_inputs   &&   r   Úunset_git_credentialr-   N   s|   € ô 
$Ð$;ÀF×	KÕ	Kñ PØØ	à¤˜z¨Ð,ˆØÒØ 	¨(¯.©.Ó*:Ð);¸2Ð>Õ>ˆNØ˜$Õˆà�‰�NÔ#Ø�‰Œ÷ 
L×	K×	KÒ	Kús   –AA7Á7B	c                óF   € V ^8„  d   QhR\         R\        \         ,          /# )r   r   r	   r
   )r   s   "r   r   r   i   s   € ÷ ñ ¤Sð ¬T´#­Yñ r   c                ót   € \        \        P                  V 4       Uu0 uF  q^ ,          kK  	  up4      # u upi )z‹Parse the output of `git credential fill` to extract the password.

Args:
    output (`str`):
        The output of `git credential fill`.
)ÚsortedÚGIT_CREDENTIAL_REGEXÚfindall)r   Úmatchs   & r   r   r   i   s=   € ô ä"6×">Ñ">¸vÔ"Fó	
Ù"F˜�!�HˆHÑ"Fñ	
óð ùò	
s   �5)N)Úhf_userN)Ú__doc__Úrer   Ú	constantsr   Ú_subprocessr   r   ÚcompileÚ	MULTILINEÚ
IGNORECASEÚVERBOSEr1   r   r(   r-   r   © r   r   Ú<module>r>      s[   ðñ 4ã 	Û å  ß Cð —z’zðð �,‰,˜Ÿ™Õ
&¨¯©Õ
3ô	Ð ÷"÷(÷.÷6r   