
    -i                    >   S SK J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	J
r
  S SKJr  S SKJr  SSKJrJrJrJrJr  \(       a  S SKJr  / S	QrSS
 jrSS jr " S S\	5      r\R6                  SS j5       rSS jrSS jrSS jr      SS jr         SS jr!g)    )annotationsN)TYPE_CHECKINGLiteralProtocolcast)
deprecated)	strtobool   )BaseDistributionBaseEnvironmentFilesystemWheelMemoryWheelWheel)NormalizedName)	r   r   r   r   r   get_default_environmentget_environmentget_wheel_distributionselect_backendc                 \   [         R                  S:  a  g[        R                  " [        [
        5         [        [        [        R                  S   5      5      sSSS5        $ ! , (       d  f       O= f[         R                  S:  a  gSSK
n [        [        U R                  SS5      5      $ )a  Whether to use the ``importlib.metadata`` or ``pkg_resources`` backend.

By default, pip uses ``importlib.metadata`` on Python 3.11+, and
``pkg_resources`` otherwise. Up to Python 3.13, This can be
overridden by a couple of ways:

* If environment variable ``_PIP_USE_IMPORTLIB_METADATA`` is set, it
  dictates whether ``importlib.metadata`` is used, for Python <3.14.
* On Python 3.11, 3.12 and 3.13, Python distributors can patch
  ``importlib.metadata`` to add a global constant
  ``_PIP_USE_IMPORTLIB_METADATA = False``. This makes pip use
  ``pkg_resources`` (unless the user set the aforementioned environment
  variable to *True*).

On Python 3.14+, the ``pkg_resources`` backend cannot be used.
)      T_PIP_USE_IMPORTLIB_METADATANr      Fr   )sysversion_info
contextlibsuppressKeyError
ValueErrorboolr	   osenvironimportlib.metadatagetattrmetadata	importlibs    R/var/www/html/venv/lib/python3.13/site-packages/pip/_internal/metadata/__init__.py_should_use_importlib_metadatar*      s{    " 7"			Xz	2Ibjj)FGHI 
3	2	2 '! 	**,I4PQQs   %A$$
A2c                     [         R                  S:  a  g SS Kn [        U R                  S5      (       a  g [        SSSSS9  g )	Nr   r   r   z7Using the pkg_resources metadata backend is deprecated.zpto use the default importlib.metadata backend, by unsetting the _PIP_USE_IMPORTLIB_METADATA environment variablez26.3i4  )reasonreplacementgone_inissue)r   r   r$   hasattrr&   r   r'   s    r)   )_emit_pkg_resources_deprecation_if_neededr1   ?   sL    
'! 	y!!#@AA 	 HP     c                  4    \ rS rSr% S\S'   S\S'   S\S'   Srg	)
BackendX   z%Literal['importlib', 'pkg_resources']NAMEztype[BaseDistribution]Distributionztype[BaseEnvironment]Environment N)__name__
__module____qualname____firstlineno____annotations____static_attributes__r9   r2   r)   r4   r4   X   s    
//((&&r2   r4   c                     [        5       (       a  SSKJn   [        [        U 5      $ [        5         SSKJn  [        [        U5      $ )Nr
   r'   )pkg_resources)r*    r(   r   r4   r1   rA   )r(   rA   s     r)   r   r   ^   s1    %''GY''-/''r2   c                 F    [        5       R                  R                  5       $ )zGet the default representation for the current environment.

This returns an Environment instance from the chosen backend. The default
Environment instance should be built from ``sys.path`` and may use caching
to share instance state across calls.
)r   r8   defaultr9   r2   r)   r   r   l   s     ''//11r2   c                H    [        5       R                  R                  U 5      $ )a  Get a representation of the environment specified by ``paths``.

This returns an Environment instance from the chosen backend based on the
given import paths. The backend must build a fresh instance representing
the state of installed distributions when this function is called.
)r   r8   
from_paths)pathss    r)   r   r   v   s     ''22599r2   c                H    [        5       R                  R                  U 5      $ )zGet the distribution metadata representation in the specified directory.

This returns a Distribution instance from the chosen backend based on
the given on-disk ``.dist-info`` directory.
)r   r7   from_directory)	directorys    r)   get_directory_distributionrK      s     ((77	BBr2   c                H    [        5       R                  R                  X5      $ )zGet the representation of the specified wheel's distribution metadata.

This returns a Distribution instance from the chosen backend based on
the given wheel's ``.dist-info`` directory.

:param canonical_name: Normalized project name of the given wheel.
)r   r7   
from_wheel)wheelcanonical_names     r)   r   r      s     ((33EJJr2   c                L    [        5       R                  R                  U UU5      $ )a  Get the dist representation of the specified METADATA file contents.

This returns a Distribution instance from the chosen backend sourced from the data
in `metadata_contents`.

:param metadata_contents: Contents of a METADATA file within a dist, or one served
                          via PEP 658.
:param filename: Filename for the dist this metadata represents.
:param canonical_name: Normalized project name of the given dist.
)r   r7   from_metadata_file_contents)metadata_contentsfilenamerO   s      r)   get_metadata_distributionrT      s)     ((DD r2   )returnr!   )rU   None)rU   r4   )rU   r   )rG   zlist[str] | NonerU   r   )rJ   strrU   r   )rN   r   rO   r   rU   r   )rR   bytesrS   rW   rO   rW   rU   r   )"
__future__r   r   	functoolsr"   r   typingr   r   r   r   pip._internal.utils.deprecationr   pip._internal.utils.miscr	   baser   r   r   r   r   pip._vendor.packaging.utilsr   __all__r*   r1   r4   cacher   r   r   rK   r   rT   r9   r2   r)   <module>rb      s    "   	 
 9 9 6 . X X:
RB2'h ' 
( 
(2:C
K
K"0
K
K  	r2   