
    c fR\              
       8   d Z ddlZddlZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZ ddlmZmZmZmZmZmZ ddlmZmZ ddlmZmZmZ ddlmZ ddlmZ erdd	lmZ dd
lm Z  ddl!m"Z" ddl#m$Z$  ejJ                  e&      Z'de(de)fdZ*deee(f   dede(de(def
dZ+ G d de,      Z- G d de-      Z. G d de-      Z/ G d de-      Z0 G d de-      Z1 G d de.      Z2 G d  d!e.      Z3 G d" d#e-      Z4 G d$ d%e0      Z5 G d& d'e0      Z6 G d( d)e0      Z7 G d* d+e0      Z8 G d, d-e-      Z9 G d. d/e-      Z: G d0 d1e-      Z; G d2 d3e-      Z< G d4 d5e-      Z= G d6 d7e0      Z> G d8 d9e0      Z? G d: d;e0      Z@ G d< d=e0      ZA G d> d?e.e0      ZB G d@ dAeBe0      ZC G dB dCe0      ZD G dD dEe0      ZE G dF dGeE      ZF G dH dIeE      ZG G dJ dKeE      ZH G dL dMeE      ZI G dN dOeE      ZJ G dP dQe0      ZK G dR dSe/      ZLdTej                   dUZN G dV dWe.      ZOy)XzExceptions used throughout package.

This module MUST NOT try to import from anything within `pip._internal` to
operate. This is expected to be importable from any/all files within the
subpackage and, thus, should not depend on them.
    N)chaingroupbyrepeat)TYPE_CHECKINGDictIteratorListOptionalUnion)RequestResponse)ConsoleConsoleOptionsRenderResult)escape)Text)_Hash)Literal)BaseDistribution)InstallRequirementsreturnc                 2    t        j                  d|       d uS )Nz^[a-z]+(-[a-z]+)*$)rematch)r   s    R/var/www/html/py/new-venv/lib/python3.12/site-packages/pip/_internal/exceptions.py_is_kebab_caser   $   s    88)1-T99    consoleprefixindentc                    t        | t              r| }n|j                  |       }|j                  |d      |j                  d| d      j                  |j	                  d            z   S )Nignore)overflow
T)allow_blank)
isinstancer   
render_strjoinsplit)r   r   r    r!   texts        r   _prefix_with_indentr,   (   ss     !T!!!$fx87;M;M
VH <N <
d4::$:'() )r   c                       e Zd ZdZy)PipErrorzThe base pip error.N__name__
__module____qualname____doc__ r   r   r.   r.   9   s    r   r.   c                        e Zd ZU dZeed<   ddddddddee   deeef   d	eeeef      d
eeeef      deeeef      dee   ddf fdZ	defdZ
dededefdZ xZS )DiagnosticPipErrora  An error, that presents diagnostic information to the user.

    This contains a bunch of logic, to enable pretty presentation of our error
    messages. Each error gets a unique reference. Each error can also include
    additional context, a hint and/or a note -- which are presented with the
    main error message in a consistent style.

    This is adapted from the error output styling in `sphinx-theme-builder`.
    	referenceerrorN)kindr7   	note_stmtlinkr9   zLiteral["error", "warning"]messagecontext	hint_stmtr:   r;   r   c                6   |t        | d      sJ d       | j                  }t        |      sJ d       || _        || _        || _        || _        || _        || _        || _        t        | )  d| j                  j                   d| j                   d       y )Nr7   zerror reference not provided!z#error reference must be kebab-case!<z: >)hasattrr7   r   r9   r<   r=   r:   r>   r;   super__init__	__class__r0   )	selfr9   r7   r<   r=   r>   r:   r;   rE   s	           r   rD   zDiagnosticPipError.__init__J   s     4-N/NN-Ii(O*OO(	"""	1T^^445R7GqIJr   c                     d| j                   j                   d| j                  d| j                  d| j                  d| j
                  d| j                  dS )Nr@   z(reference=z
, message=z
, context=z, note_stmt=z, hint_stmt=z)>)rE   r0   r7   r<   r=   r:   r>   rF   s    r   __repr__zDiagnosticPipError.__repr__h   sl    ''( )* +||& '||& '* +*	
r   r   optionsc              #     K   | j                   dk(  rdnd}d| d| j                    d| j                   d d |j                  so| j                  Gt	        | j
                  |d| d	d| d
       t	        | j                  |d| dd| d       nHt	        | j
                  |dd       n,| j
                   | j                  d | j                   | j                  | j                  d | j                  t	        | j                  |dd       | j                  t	        | j                  |dd       | j                  d d| j                    y y w)Nr8   redyellow[z bold]z[/]: [bold]z[/] u   ]×[/] u   ]│[/] )r    r!   u   ]╰─>[/] z]   [/] u   [red]×[/] z  z[magenta bold]note[/]: z      z[cyan bold]hint[/]: zLink: )	r9   r7   
ascii_onlyr=   r,   r<   r:   r>   r;   )rF   r   rJ   colours       r   __rich_console__z#DiagnosticPipError.__rich_console__s   s    
 ))w.H&		{+dnn5ESII!!||')LLvhg.vhh/	  *LLvhl3vhh/	  *LL(	  ,,||'ll">>%)CH>>%%0	  >>%%-	  99 H499+&& !s   E.E0)r0   r1   r2   r3   str__annotations__r
   r   r   rD   rI   r   r   r   rR   __classcell__rE   s   @r   r6   r6   =   s     N
 /6#' 15"K ,K C=	K
 sDy!K %T	*+K E#t),-K E#t),-K smK 
K<	
# 	
:':'  :' 
	:'r   r6   c                       e Zd ZdZy)ConfigurationErrorz"General exception in configurationNr/   r4   r   r   rX   rX      s    ,r   rX   c                       e Zd ZdZy)InstallationErrorz%General exception during installationNr/   r4   r   r   rZ   rZ      s    /r   rZ   c                       e Zd ZdZy)UninstallationErrorz'General exception during uninstallationNr/   r4   r   r   r\   r\      s    1r   r\   c                   0     e Zd ZdZdZdeddf fdZ xZS )MissingPyProjectBuildRequireszNRaised when pyproject.toml has `build-system`, but no `build-system.requires`.z'missing-pyproject-build-system-requirespackager   Nc                h    t         |   dt        |       t        d      dt        d             y )NCan not process zrThis package has an invalid pyproject.toml file.
The [build-system] table is missing the mandatory `requires` key.;This is an issue with the package mentioned above, not pip.+See PEP 518 for the detailed specification.r<   r=   r:   r>   rC   rD   r   r   )rF   r_   rE   s     r   rD   z&MissingPyProjectBuildRequires.__init__   sA    &vg&78T THI 	 	
r   r0   r1   r2   r3   r7   rS   rD   rU   rV   s   @r   r^   r^      s#    X9I	
3 	
4 	
 	
r   r^   c                   4     e Zd ZdZdZdededdf fdZ xZS )InvalidPyProjectBuildRequiresz>Raised when pyproject.toml an invalid `build-system.requires`.z'invalid-pyproject-build-system-requiresr_   reasonr   Nc                n    t         |   dt        |       t        d|       dt        d             y )Nra   zKThis package has an invalid `build-system.requires` key in pyproject.toml.
rb   rc   rd   re   )rF   r_   ri   rE   s      r   rD   z&InvalidPyProjectBuildRequires.__init__   sJ    &vg&78$$*8- THI 	 	
r   rf   rV   s   @r   rh   rh      s*    H9I	
3 	
 	
 	
 	
r   rh   c                   0    e Zd ZdZdddeddfdZdefdZy)	NoneMetadataErrora4  Raised when accessing a Distribution's "METADATA" or "PKG-INFO".

    This signifies an inconsistency, when the Distribution claims to have
    the metadata file (if not, raise ``FileNotFoundError`` instead), but is
    not actually able to produce its content. This may be due to permission
    errors.
    distr   metadata_namer   Nc                      || _         || _        y)z
        :param dist: A Distribution object.
        :param metadata_name: The name of the metadata being accessed
            (can be "METADATA" or "PKG-INFO").
        N)rm   rn   )rF   rm   rn   s      r   rD   zNoneMetadataError.__init__   s     	*r   c                 :    d| j                    d| j                   S )NzNone z" metadata found for distribution: )rn   rm   rH   s    r   __str__zNoneMetadataError.__str__   s#     t))**LTYYKXXr   r0   r1   r2   r3   rS   rD   rq   r4   r   r   rl   rl      s6    + + + 
	+Y Yr   rl   c                       e Zd ZdZdefdZy)UserInstallationInvalidzBA --user install is requested on an environment without user site.r   c                      y)Nz$User base directory is not specifiedr4   rH   s    r   rq   zUserInstallationInvalid.__str__   s    5r   N)r0   r1   r2   r3   rS   rq   r4   r   r   rt   rt      s    L6 6r   rt   c                       e Zd ZdefdZy)InvalidSchemeCombinationr   c                 x    dj                  d | j                  d d D              }d| d| j                  d    dS )Nz, c              3   2   K   | ]  }t        |        y wN)rS   ).0as     r   	<genexpr>z3InvalidSchemeCombination.__str__.<locals>.<genexpr>  s     :a3q6:s   zCannot set z and z	 together)r)   args)rF   befores     r   rq   z InvalidSchemeCombination.__str__  s=    :499Sb>::VHE$))B-	BBr   N)r0   r1   r2   rS   rq   r4   r   r   rw   rw     s    C Cr   rw   c                       e Zd ZdZy)DistributionNotFoundzCRaised when a distribution cannot be found to satisfy a requirementNr/   r4   r   r   r   r   
  s    Mr   r   c                       e Zd ZdZy)RequirementsFileParseErrorzDRaised when a general error occurs parsing a requirements file line.Nr/   r4   r   r   r   r     s    Nr   r   c                       e Zd ZdZy)BestVersionAlreadyInstalledzNRaised when the most up-to-date version of a package is already
    installed.Nr/   r4   r   r   r   r     s    r   r   c                       e Zd ZdZy)
BadCommandz0Raised when virtualenv or a command is not foundNr/   r4   r   r   r   r     s    :r   r   c                       e Zd ZdZy)CommandErrorz7Raised when there is an error in command-line argumentsNr/   r4   r   r   r   r     s    Ar   r   c                       e Zd ZdZy)PreviousBuildDirErrorz:Raised when there's a previous conflicting build directoryNr/   r4   r   r   r   r     s    Dr   r   c            	       R     e Zd ZdZ	 	 d	dedee   dee   ddf fdZdefdZ	 xZ
S )
NetworkConnectionErrorzHTTP connection errorN	error_msgresponserequestr   c                     || _         || _        || _        | j                   3| j                  s't        |d      r| j                   j                  | _        t        |   |||       y)zc
        Initialize NetworkConnectionError with  `request` and `response`
        objects.
        Nr   )r   r   r   rB   rC   rD   )rF   r   r   r   rE   s       r   rD   zNetworkConnectionError.__init__&  sW     !"MM%LL),==00DLHg6r   c                 ,    t        | j                        S rz   )rS   r   rH   s    r   rq   zNetworkConnectionError.__str__;  s    4>>""r   )NN)r0   r1   r2   r3   rS   r
   r   r   rD   rq   rU   rV   s   @r   r   r   #  sO    
 (,%)	77 8$7 '"	7
 
7*# #r   r   c                       e Zd ZdZy)InvalidWheelFilenamezInvalid wheel filename.Nr/   r4   r   r   r   r   ?  s    !r   r   c                       e Zd ZdZy)UnsupportedWheelzUnsupported wheel.Nr/   r4   r   r   r   r   C  s    r   r   c                   ,    e Zd ZdZdedefdZdefdZy)InvalidWheelzInvalid (e.g. corrupt) wheel.locationnamec                      || _         || _        y rz   )r   r   )rF   r   r   s      r   rD   zInvalidWheel.__init__J  s     	r   r   c                 <    d| j                    d| j                   dS )NzWheel 'z' located at z is invalid.)r   r   rH   s    r   rq   zInvalidWheel.__str__N  s    =|LLr   Nrr   r4   r   r   r   r   G  s&    ' C M Mr   r   c            
       8    e Zd ZdZdddedededdf
d	Zdefd
Zy)MetadataInconsistenta  Built metadata contains inconsistent information.

    This is raised when the metadata contains values (e.g. name and version)
    that do not match the information previously obtained from sdist filename,
    user-supplied ``#egg=`` value, or an install requirement name.
    ireqr   fieldf_valm_valr   Nc                 <    || _         || _        || _        || _        y rz   r   r   r   r   )rF   r   r   r   r   s        r   rD   zMetadataInconsistent.__init__Z  s      	


r   c                 n    d| j                    d| j                   d| j                  d| j                  S )Nz
Requested z has inconsistent z: expected z, but metadata has r   rH   s    r   rq   zMetadataInconsistent.__str__b  s=    #5djj\ B

~%8H	
r   rr   r4   r   r   r   r   R  s@    (14=@IL	
 
r   r   c                   P     e Zd ZdZdZdededeee      ddf fdZ	defd	Z
 xZS )
InstallationSubprocessErrorzA subprocess call failed.zsubprocess-exited-with-errorcommand_description	exit_codeoutput_linesr   Nc                (   |t        d      }nSt        j                  dt        |       d      t        dj                  |            z   t        j                  d      z   }t        |   dt        |       d| |d d	       || _        || _        y )
NzSee above for output.z[red][z lines of output][/]
rO   z[red]\[end of output][/]z[green]z)[/] did not run successfully.
exit code: zNThis error originates from a subprocess, and is likely not a problem with pip.r<   r=   r>   r:   )	r   from_markuplenr)   rC   rD   r   r   r   )rF   r   r   r   output_promptrE   s        r   rD   z$InstallationSubprocessError.__init__n  s      !89M   6#l*;)<<R!STrww|,-.""#>?@  	&!456 7'[* "$ 	 	
 $7 "r   c                 8    | j                    d| j                   S )Nz exited with )r   r   rH   s    r   rq   z#InstallationSubprocessError.__str__  s    **+=8HIIr   )r0   r1   r2   r3   r7   rS   intr
   r	   rD   rq   rU   rV   s   @r   r   r   i  sP    #.I# !# 	#
 tCy)# 
#@J Jr   r   c                   8     e Zd ZdZdeddf fdZdefdZ xZS )MetadataGenerationFailedzmetadata-generation-failedpackage_detailsr   Nc                F    t         t        |   dt        |      dd       y )Nz4Encountered error while generating package metadata.zSee above for details.rb   r   )rC   r   rD   r   )rF   r   rE   s     r   rD   z!MetadataGenerationFailed.__init__  s+    
 	)49J?+.S	 	: 	
r   c                      y)Nzmetadata generation failedr4   rH   s    r   rq   z MetadataGenerationFailed.__str__  s    +r   )r0   r1   r2   r7   rS   rD   rq   rU   rV   s   @r   r   r     s-    ,I

 

 
	

, ,r   r   c                   8    e Zd ZdZddZd	dZdefdZdefdZ	y)

HashErrorsz:Multiple HashError instances rolled into one for reportingr   Nc                     g | _         y rz   )errorsrH   s    r   rD   zHashErrors.__init__  s	    )+r   c                 :    | j                   j                  |       y rz   )r   append)rF   r8   s     r   r   zHashErrors.append  s    5!r   c                    g }| j                   j                  d        t        | j                   d       D ]8  \  }}|j                  |j                         |j                  d |D               : |rdj                  |      S y)Nc                     | j                   S rz   )orderes    r   <lambda>z$HashErrors.__str__.<locals>.<lambda>  s
    qww r   )keyc                     | j                   S rz   rV   r   s    r   r   z$HashErrors.__str__.<locals>.<lambda>  s
     r   c              3   <   K   | ]  }|j                           y wrz   )body)r{   r   s     r   r}   z%HashErrors.__str__.<locals>.<genexpr>  s     9a9s   r%   rO   )r   sortr   r   headextendr)   )rF   linesclserrors_of_clss       r   rq   zHashErrors.__str__  sv    ./")$++7L"M 	:CLL"LL9=99	: 99U##r   c                 ,    t        | j                        S rz   )boolr   rH   s    r   __bool__zHashErrors.__bool__  s    DKK  r   )r   N)r8   	HashErrorr   N)
r0   r1   r2   r3   rD   r   rS   rq   r   r   r4   r   r   r   r     s'    D," !$ !r   r   c                   \    e Zd ZU dZdZed   ed<   dZdZe	ed<   de
fd	Zde
fd
Zde
fdZy)r   a  
    A failure to verify a package against known-good hashes

    :cvar order: An int sorting hash exception classes by difficulty of
        recovery (lower being harder), so the user doesn't bother fretting
        about unpinned packages when he has deeper issues, like VCS
        dependencies, to deal with. Also keeps error reports in a
        deterministic order.
    :cvar head: A section heading for display above potentially many
        exceptions of this kind
    :ivar req: The InstallRequirement that triggered this error. This is
        pasted on after the exception is instantiated, because it's not
        typically available earlier.

    Nr   reqrO   r~   r   r   c                 (    d| j                          S )a=  Return a summary of me for display under the heading.

        This default implementation simply prints a description of the
        triggering requirement.

        :param req: The InstallRequirement that provoked this error, with
            its link already populated by the resolver's _populate_link().

            )_requirement_namerH   s    r   r   zHashError.body  s     d,,./00r   c                 @    | j                    d| j                          S )Nr%   )r   r   rH   s    r   rq   zHashError.__str__  s    ))Btyy{m,,r   c                 H    | j                   rt        | j                         S dS )zReturn a description of the requirement that triggered me.

        This default implementation returns long description of the req, with
        line numbers

        unknown package)r   rS   rH   s    r   r   zHashError._requirement_name  s     !%s488}?.??r   )r0   r1   r2   r3   r   r
   rT   r   r   r   rS   r   rq   r   r4   r   r   r   r     sM      +/C&	'.DE3O
1c 
1- -@3 @r   r   c                       e Zd ZdZdZdZy)VcsHashUnsupporteduA hash was provided for a version-control-system-based requirement, but
    we don't have a method for hashing those.r   zlCan't verify hashes for these requirements because we don't have a way to hash version control repositories:Nr0   r1   r2   r3   r   r   r4   r   r   r   r     s    1 E	; 	r   r   c                       e Zd ZdZdZdZy)DirectoryUrlHashUnsupportedr      zUCan't verify hashes for these file:// requirements because they point to directories:Nr   r4   r   r   r   r     s    1 E	  	r   r   c                   4    e Zd ZdZdZdZdeddfdZdefdZy)	HashMissingz2A hash was needed for a requirement but is absent.   aw  Hashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines like these to your requirements files to prevent tampering. (If you did not enable --require-hashes manually, note that it turns on automatically when any package has a hash.)gotten_hashr   Nc                     || _         y)zq
        :param gotten_hash: The hash of the (possibly malicious) archive we
            just downloaded
        N)r   )rF   r   s     r   rD   zHashMissing.__init__  s    
 'r   c                     ddl m} d }| j                  rC| j                  j                  r| j                  j                  nt        | j                  dd       }dj                  |xs d|| j                        S )Nr   )FAVORITE_HASHr   z    {} --hash={}:{}r   )pip._internal.utils.hashesr   r   	is_directoriginal_linkgetattrformatr   )rF   r   r_   s      r   r   zHashMissing.body  sn    <88 88%% && TXXud3  %++((-9I9I
 	
r   )	r0   r1   r2   r3   r   r   rS   rD   r   r4   r   r   r   r      s3    <E	 	'C 'D '
c 
r   r   c                       e Zd ZdZdZdZy)HashUnpinnedzPA requirement had a hash specified but was not pinned to a specific
    version.   zaIn --require-hashes mode, all requirements must have their versions pinned with ==. These do not:Nr   r4   r   r   r   r   *  s     E	1 	r   r   c                   ^    e Zd ZdZdZdZdeeee   f   deedf   ddfd	Z	defd
Z
defdZy)HashMismatchz
    Distribution file hash values don't match.

    :ivar package_name: The name of the package that triggered the hash
        mismatch. Feel free to write to this after the exception is raise to
        improve its error message.

       zTHESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.allowedgotsr   r   Nc                      || _         || _        y)z
        :param allowed: A dict of algorithm names pointing to lists of allowed
            hex digests
        :param gots: A dict of algorithm names pointing to hashes we
            actually got from the files under suspicion
        N)r   r   )rF   r   r   s      r   rD   zHashMismatch.__init__G  s     	r   c                 J    d| j                          d| j                          S )Nr   z:
)r   _hash_comparisonrH   s    r   r   zHashMismatch.bodyQ  s)    d,,./s43H3H3J2KLLr   c                 *   dt         ddfd}g }| j                  j                         D ]W  \  }} ||      |j                  fd|D               |j	                  d| j
                  |   j                          d       Y dj                  |      S )aE  
        Return a comparison of actual and expected hash values.

        Example::

               Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde
                            or 123451234512345123451234512345123451234512345
                    Got        bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef

        	hash_namer   z
chain[str]c                 .    t        | gt        d            S )Nz    or)r   r   )r   s    r   hash_then_orz3HashMismatch._hash_comparison.<locals>.hash_then_or`  s     )fX&677r   c              3   @   K   | ]  }d t               d|   yw)z        Expected  N)next)r{   r   r    s     r   r}   z0HashMismatch._hash_comparison.<locals>.<genexpr>h  s#     Ua-d6l^1QC@Us   z             Got        r%   )rS   r   itemsr   r   r   	hexdigestr)   )rF   r   r   r   	expectedsr    s        @r   r   zHashMismatch._hash_comparisonT  s    	8C 	8L 	8
 $(LL$6$6$8 	 Iy!),FLLU9UULL*499Y+?+I+I+K*LBO	 yyr   )r0   r1   r2   r3   r   r   r   rS   r	   rD   r   r   r4   r   r   r   r   5  sc     E	/ 	S$s)^ 4 Dg<N SW Mc M #  r   r   c                       e Zd ZdZy)UnsupportedPythonVersionzMUnsupported python version according to Requires-Python package
    metadata.Nr/   r4   r   r   r  r  o  s    r   r  c            	       h     e Zd ZdZ	 	 	 d	dedee   deej                     ddf fdZdefdZ	 xZ
S )
!ConfigurationFileCouldNotBeLoadedz8When there are errors while loading a configuration fileNri   fnamer8   r   c                 N    t         |   |       || _        || _        || _        y rz   )rC   rD   ri   r  r8   )rF   ri   r  r8   rE   s       r   rD   z*ConfigurationFileCouldNotBeLoaded.__init__w  s'     	

r   c                     | j                   d| j                    d}n| j                  J d| j                   d}d| j                   | S )Nz in .z.
r%   zConfiguration file )r  r8   ri   )rF   message_parts     r   rq   z)ConfigurationFileCouldNotBeLoaded.__str__  sU    ::!!$**Q/L::))) B/L$T[[M,@@r   )zcould not be loadedNN)r0   r1   r2   r3   rS   r
   configparserErrorrD   rq   rU   rV   s   @r   r  r  t  sY    B ,#.2			 }	 **+		
 
	A Ar   r  zThe Python environment under z is managed externally, and may not be
manipulated by the user. Please use specific tooling from the distributor of
the Python installation to interact with this environment instead.
c                        e Zd ZdZdZdee   ddf fdZede	e   fd       Z
edeej                  ef   dd fd	       Z xZS )
ExternallyManagedEnvironmentaP  The current environment is externally managed.

    This is raised when the current environment is externally managed, as
    defined by `PEP 668`_. The ``EXTERNALLY-MANAGED`` configuration is checked
    and displayed when the error is bubbled up to the user.

    :param error: The error message read from ``EXTERNALLY-MANAGED``.
    zexternally-managed-environmentr8   r   Nc                 x    |t        t              }nt        |      }t        |   d|dt        d             y )Nz&This environment is externally managedzIf you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.z+See PEP 668 for the detailed specification.rd   )r   !_DEFAULT_EXTERNALLY_MANAGED_ERRORrC   rD   )rF   r8   r=   rE   s      r   rD   z%ExternallyManagedEnvironment.__init__  sE    =<=G5kG<J
 HI 	 
	
r   c               #      K   	 t         j                  } t        j                  |       \  }}|-d|  dD ]!  }|j	                  |      \  }}}|sd|  # d y # t        $ r d }Y Aw xY ww)NzError-)-_r  )localeLC_MESSAGES	getlocaleAttributeError	partition)categorylangr  sepr   founds         r   #_iter_externally_managed_error_keysz@ExternallyManagedEnvironment._iter_externally_managed_error_keys  s     	1))H &&x0GD!4&/!! (#'>>##6 qvh''	(
   	'"&D	's(   A1A  AA1 A.+A1-A..A1configc                    t        j                  d       }	 |j                  |d       |d   }| j                         D ]1  }t	        j
                  t              5   | ||         cd d d        c S  	  | d       S # 1 sw Y   FxY w# t        $ r Y t        t        t         j                  f$ r6 ddl
m} t        j                  |      }t        j                  d||       Y qw xY w)	N)interpolationzutf-8)encodingzexternally-managedr   )VERBOSEzFailed to read %s)exc_info)r  ConfigParserreadr  
contextlibsuppressKeyErrorOSErrorUnicodeDecodeErrorParsingErrorpip._internal.utils._logr"  loggerisEnabledForwarning)r   r  parsersectionr   r"  r#  s          r   from_configz(ExternallyManagedEnvironment.from_config  s    
 **>	KKKK112G>>@ -((2 -ws|,- -- 4y- - 	+\-F-FG 	K8**73HNN.NJ		Ks7   AB	 A='B	 3B	 =B	B	 		C'AC'&C')r0   r1   r2   r3   r7   r
   rS   rD   staticmethodr   r  classmethodr   pathlibPathr2  rU   rV   s   @r   r  r    sy     1I
hsm 
 
" #  * gllC'( 
( r   r  )Pr3   r  r&  r  loggingr5  r   sys	itertoolsr   r   r   typingr   r   r   r	   r
   r   pip._vendor.requests.modelsr   r   pip._vendor.rich.consoler   r   r   pip._vendor.rich.markupr   pip._vendor.rich.textr   hashlibr   r   pip._internal.metadatar   pip._internal.req.req_installr   	getLoggerr0   r-  rS   r   r   r,   	Exceptionr.   r6   rX   rZ   r\   r^   rh   rl   rt   rw   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r    r  r  r4   r   r   <module>rD     s        	 
 , , G G 9 J J * &7@			8	$:c :d :)T3Y)) 	)
 ) 
)"y p' p'l- -0 02( 2
$6 
"
$6 
"Y Y86/ 6C0 CN, NO!2 O( 
; ;B8 BEH E#X #8", "( M$ M
, 
.&J"46G &JR,:<M ,&!" !.+@! +@\ ) '
) '
T9 7 9 7 t0 
A(: A.)!jj\ *% !F#5 Fr   