Ë
    KêjÀ  ã                  ó$  — d dl m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	m
Z
 d dlmZ d dlmZ ddlmZmZmZmZmZ erd dlmZ g d	¢Zdd
„Zdd„Z G d„ de	«      Zej6                  dd„«       Zdd„Zdd„Zdd„Z	 	 	 	 	 	 dd„Z 	 	 	 	 	 	 	 	 dd„Z!y)é    )Ú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                 óL  — t         j                  dk\  ryt        j                  t        t
        «      5  t        t        t        j                  d   «      «      cddd«       S # 1 sw Y   nxY wt         j                  dk  ryddl
} t        t        | j                  dd«      «      S )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    úd/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/pip/_internal/metadata/__init__.pyÚ_should_use_importlib_metadatar*      sˆ   € ô" ×Ñ˜7Ò"àÜ	×	Ñ	œX¤zÓ	2ñ Jä”IœbŸj™jÐ)FÑGÓHÓI÷J÷ Jò Júô ×Ñ˜'Ò!ð ãä”˜	×*Ñ*Ð,IÈ4ÓPÓQÐQs   ³%A"Á"A+c                 ó€   — t         j                  dk  ry dd l} t        | j                  d«      ry t        dddd¬«       y )	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27.0i4  )ÚreasonÚreplacementÚgone_inÚissue)r   r   r$   Úhasattrr&   r   r'   s    r)   Ú)_emit_pkg_resources_deprecation_if_neededr1   ?   sI   € Ü
×Ñ˜'Ò!ð 	ãäˆy×!Ñ!Ð#@ÔAð 	ô ØHðPð Øöó    c                  ó,   — e Zd ZU ded<   ded<   ded<   y)ÚBackendz%Literal['importlib', 'pkg_resources']ÚNAMEztype[BaseDistribution]ÚDistributionztype[BaseEnvironment]ÚEnvironmentN)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__© r2   r)   r4   r4   X   s   … Ø
/Ó/Ø(Ó(Ø&Ô&r2   r4   c                 ó‚   — t        «       rddlm}  t        t        | «      S t        «        ddlm} t        t        |«      S )Nr
   r'   )Úpkg_resources)r*   Ú r(   r   r4   r1   r>   )r(   r>   s     r)   r   r   ^   s.   € ä%Ô'Ýä”G˜YÓ'Ð'ä-Ô/åä”˜Ó'Ð'r2   c                 óF   — t        «       j                  j                  «       S )a  Get 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   r7   Údefaultr<   r2   r)   r   r   l   s   € ô Ó×'Ñ'×/Ñ/Ó1Ð1r2   c                óH   — t        «       j                  j                  | «      S )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   r7   Ú
from_paths)Úpathss    r)   r   r   v   s   € ô Ó×'Ñ'×2Ñ2°5Ó9Ð9r2   c                óH   — t        «       j                  j                  | «      S )zÈGet 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   r6   Úfrom_directory)Ú	directorys    r)   Úget_directory_distributionrH   €   s   € ô Ó×(Ñ(×7Ñ7¸	ÓBÐBr2   c                óJ   — t        «       j                  j                  | |«      S )a  Get 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   r6   Ú
from_wheel)ÚwheelÚcanonical_names     r)   r   r   ‰   s    € ô Ó×(Ñ(×3Ñ3°E¸>ÓJÐJr2   c                óL   — t        «       j                  j                  | ||«      S )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   r6   Úfrom_metadata_file_contents)Úmetadata_contentsÚfilenamerL   s      r)   Úget_metadata_distributionrQ   –   s)   € ô Ó×(Ñ(×DÑDØØØóð r2   )Úreturnr!   )rR   ÚNone)rR   r4   )rR   r   )rD   zlist[str] | NonerR   r   )rG   ÚstrrR   r   )rK   r   rL   r   rR   r   )rO   ÚbytesrP   rT   rL   rT   rR   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   rH   r   rQ   r<   r2   r)   ú<module>r_      s½   ðÝ "ã Û Û 	Û 
ß 9Ó 9å 6Ý .ç XÕ XáÝ:ò
€óRóBô2'ˆhô 'ð ‡�ò
(ó ð
(ó2ó:óCð
KØð
KØ"0ð
Kàó
KðØðàðð ðð ô	r2   