§
    ÷„tj@  ã                   óÞ   — d dl mZ d dl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  G d„ de¦  «        Z G d	„ d
e¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )é    )ÚSpecifierSet)ÚNormalizedNameÚcanonicalize_name)Úinstall_req_drop_extras)ÚInstallRequirementé   )Ú	CandidateÚCandidateLookupÚRequirementÚformat_namec                   ó–   — e Zd Zdeddfd„Zdefd„Zdefd„Zede	fd„¦   «         Z
edefd„¦   «         Zdefd	„Zdefd
„Zdedefd„ZdS )ÚExplicitRequirementÚ	candidateÚreturnNc                 ó   — || _         d S ©N©r   ©Úselfr   s     ún/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/requirements.pyÚ__init__zExplicitRequirement.__init__   s   € Ø"ˆŒˆˆó    c                 ó*   — t          | j        ¦  «        S r   )Ústrr   ©r   s    r   Ú__str__zExplicitRequirement.__str__   s   € Ý�4”>Ñ"Ô"Ð"r   c                 ó0   — | j         j        › d| j        ›d�S ©Nú(ú))Ú	__class__Ú__name__r   r   s    r   Ú__repr__zExplicitRequirement.__repr__   s    € Ø”.Ô)Ð?Ð?¨D¬NÐ?Ð?Ð?Ð?r   c                 ó   — | j         j        S r   )r   Úproject_namer   s    r   r%   z ExplicitRequirement.project_name   s   € ð Œ~Ô*Ð*r   c                 ó   — | j         j        S r   )r   Únamer   s    r   r'   zExplicitRequirement.name   s   € ð Œ~Ô"Ð"r   c                 ó4   — | j                              ¦   «         S r   )r   Úformat_for_errorr   s    r   r)   z$ExplicitRequirement.format_for_error   s   € ØŒ~×.Ò.Ñ0Ô0Ð0r   c                 ó   — | j         d fS r   r   r   s    r   Úget_candidate_lookupz(ExplicitRequirement.get_candidate_lookup!   s   € ØŒ~˜tÐ#Ð#r   c                 ó   — || j         k    S r   r   r   s     r   Úis_satisfied_byz#ExplicitRequirement.is_satisfied_by$   s   € Ø˜DœNÒ*Ð*r   )r"   Ú
__module__Ú__qualname__r	   r   r   r   r#   Úpropertyr   r%   r'   r)   r
   r+   Úboolr-   © r   r   r   r   
   s  € € € € € ð# )ð #°ð #ð #ð #ð #ð#˜ð #ð #ð #ð #ð@˜#ð @ð @ð @ð @ð ð+˜nð +ð +ð +ñ „Xð+ð ð#�cð #ð #ð #ñ „Xð#ð1 #ð 1ð 1ð 1ð 1ð$ oð $ð $ð $ð $ð+¨ð +°tð +ð +ð +ð +ð +ð +r   r   c                   ó–   — e Zd Zdeddfd„Zdefd„Zdefd„Zede	fd„¦   «         Z
edefd„¦   «         Zdefd	„Zdefd
„Zdedefd„ZdS )ÚSpecifierRequirementÚireqr   Nc                 ó†   — |j         �
J d¦   «         ‚|| _        t          d„ | j        j        D ¦   «         ¦  «        | _        d S )NúThis is a link, not a specifierc              3   ó4   K  — | ]}t          |¦  «        V — Œd S r   ©r   ©Ú.0Úes     r   ú	<genexpr>z0SpecifierRequirement.__init__.<locals>.<genexpr>,   ó+   è è € Ð QÐ Q¸!Õ!2°1Ñ!5Ô!5Ð QÐ QÐ QÐ QÐ QÐ Qr   )ÚlinkÚ_ireqÚ	frozensetÚextrasÚ_extras©r   r5   s     r   r   zSpecifierRequirement.__init__)   sG   € ØŒyÐ Ð Ð"CÑ Ô Ð ØˆŒ
Ý Ð QÐ Q¸t¼zÔ?PÐ QÑ QÔ QÑQÔQˆŒˆˆr   c                 ó4   — t          | j        j        ¦  «        S r   )r   r@   Úreqr   s    r   r   zSpecifierRequirement.__str__.   s   € Ý�4”:”>Ñ"Ô"Ð"r   c                 óT   — | j         j        › dt          | j        j        ¦  «        ›d�S r   )r!   r"   r   r@   rF   r   s    r   r#   zSpecifierRequirement.__repr__1   s*   € Ø”.Ô)ÐDÐD­C°´
´Ñ,?Ô,?ÐDÐDÐDÐDr   c                 ój   — | j         j        s
J d¦   «         ‚t          | j         j        j        ¦  «        S )Nú'Specifier-backed ireq is always PEP 508)r@   rF   r   r'   r   s    r   r%   z!SpecifierRequirement.project_name4   s/   € àŒzŒ~ÐHÐHÐHÑHÔHˆ~Ý  ¤¤Ô!4Ñ5Ô5Ð5r   c                 ó6   — t          | j        | j        ¦  «        S r   )r   r%   rC   r   s    r   r'   zSpecifierRequirement.name9   s   € å˜4Ô,¨d¬lÑ;Ô;Ð;r   c                 ó  — d„ t          | ¦  «                             d¦  «        D ¦   «         }t          |¦  «        dk    rdS t          |¦  «        dk    r|d         S d                     |d d…         ¦  «        dz   |d         z   S )	Nc                 ó6   — g | ]}|                      ¦   «         ‘ŒS r2   )Ústrip)r;   Úss     r   ú
<listcomp>z9SpecifierRequirement.format_for_error.<locals>.<listcomp>B   s    € Ð9Ð9Ð9˜q�—’‘”Ð9Ð9Ð9r   ú,r   Ú r   z, éÿÿÿÿz and )r   ÚsplitÚlenÚjoin)r   Úpartss     r   r)   z%SpecifierRequirement.format_for_error=   s}   € ð
 :Ð9¥C¨¡I¤I§O¢O°CÑ$8Ô$8Ð9Ñ9Ô9ˆÝˆu‰:Œ:˜Š?ˆ?Ø�2Ý�‰ZŒZ˜1Š_ˆ_Ø˜”8ˆOà�yŠy˜˜s ˜sœÑ$Ô$ wÑ.°°r´Ñ:Ð:r   c                 ó   — d | j         fS r   )r@   r   s    r   r+   z)SpecifierRequirement.get_candidate_lookupJ   s   € Ø�T”ZÐÐr   r   c                 óÜ   — |j         | j         k    sJ d|j         › d| j         › �¦   «         ‚| j        j        s
J d¦   «         ‚| j        j        j        }|                     |j        d¬¦  «        S )Nz6Internal issue: Candidate is not for this requirement z vs rI   T©Úprereleases)r'   r@   rF   Ú	specifierÚcontainsÚversion)r   r   Úspecs      r   r-   z$SpecifierRequirement.is_satisfied_byM   s�   € ØŒ~ ¤Ò*Ð*Ð*ð/ØŒ~ð/ð /Ø#'¤9ð/ð /ñ +Ô*Ð*ð ŒzŒ~ÐHÐHÐHÑHÔHˆ~ØŒzŒ~Ô'ˆØ�}Š}˜YÔ.¸Dˆ}ÑAÔAÐAr   )r"   r.   r/   r   r   r   r   r#   r0   r   r%   r'   r)   r
   r+   r	   r1   r-   r2   r   r   r4   r4   (   s&  € € € € € ðRÐ/ð R°Dð Rð Rð Rð Rð
#˜ð #ð #ð #ð #ðE˜#ð Eð Eð Eð Eð ð6˜nð 6ð 6ð 6ñ „Xð6ð ð<�cð <ð <ð <ñ „Xð<ð; #ð ;ð ;ð ;ð ;ð  oð  ð  ð  ð  ð
B¨ð 
B°tð 
Bð 
Bð 
Bð 
Bð 
Bð 
Br   r4   c                   ó"   — e Zd ZdZdeddfd„ZdS )Ú!SpecifierWithoutExtrasRequirementz‰
    Requirement backed by an install requirement on a base package.
    Trims extras from its install requirement if there are any.
    r5   r   Nc                 ó    — |j         �
J d¦   «         ‚t          |¦  «        | _        t          d„ | j        j        D ¦   «         ¦  «        | _        d S )Nr7   c              3   ó4   K  — | ]}t          |¦  «        V — Œd S r   r9   r:   s     r   r=   z=SpecifierWithoutExtrasRequirement.__init__.<locals>.<genexpr>c   r>   r   )r?   r   r@   rA   rB   rC   rD   s     r   r   z*SpecifierWithoutExtrasRequirement.__init__`   sO   € ØŒyÐ Ð Ð"CÑ Ô Ð Ý,¨TÑ2Ô2ˆŒ
Ý Ð QÐ Q¸t¼zÔ?PÐ QÑ QÔ QÑQÔQˆŒˆˆr   )r"   r.   r/   Ú__doc__r   r   r2   r   r   r`   r`   Z   sI   € € € € € ðð ð
RÐ/ð R°Dð Rð Rð Rð Rð Rð Rr   r`   c                   óž   — e Zd ZdZdededdfd„Zdefd„Zdefd„Z	e
defd	„¦   «         Ze
defd
„¦   «         Zdefd„Zdefd„Zdedefd„ZdS )ÚRequiresPythonRequirementz4A requirement representing Requires-Python metadata.r[   Úmatchr   Nc                 ó"   — || _         || _        d S r   )r[   Ú
_candidate)r   r[   rf   s      r   r   z"RequiresPythonRequirement.__init__i   s   € Ø"ˆŒØˆŒˆˆr   c                 ó   — d| j         › �S )NzPython )r[   r   s    r   r   z!RequiresPythonRequirement.__str__m   s   € Ø)˜œÐ)Ð)Ð)r   c                 óJ   — | j         j        › dt          | j        ¦  «        ›d�S r   )r!   r"   r   r[   r   s    r   r#   z"RequiresPythonRequirement.__repr__p   s(   € Ø”.Ô)ÐDÐD­C°´Ñ,?Ô,?ÐDÐDÐDÐDr   c                 ó   — | j         j        S r   )rh   r%   r   s    r   r%   z&RequiresPythonRequirement.project_names   s   € àŒÔ+Ð+r   c                 ó   — | j         j        S r   )rh   r'   r   s    r   r'   zRequiresPythonRequirement.namew   s   € àŒÔ#Ð#r   c                 ó    — t          | ¦  «        S r   ©r   r   s    r   r)   z*RequiresPythonRequirement.format_for_error{   ó   € Ý�4‰yŒyÐr   c                 ód   — | j                              | j        j        d¬¦  «        r	| j        d fS dS )NTrY   ©NN)r[   r\   rh   r]   r   s    r   r+   z.RequiresPythonRequirement.get_candidate_lookup~   s6   € ØŒ>×"Ò" 4¤?Ô#:ÈÐ"ÑMÔMð 	)Ø”? DÐ(Ð(Øˆzr   r   c                 ó‚   — |j         | j        j         k    s
J d¦   «         ‚| j                             |j        d¬¦  «        S )NzNot Python candidateTrY   )r'   rh   r[   r\   r]   r   s     r   r-   z)RequiresPythonRequirement.is_satisfied_byƒ   sC   € ØŒ~ ¤Ô!5Ò5Ð5Ð5Ð7MÑ5Ô5Ð5ð Œ~×&Ò& yÔ'8ÀdÐ&ÑKÔKÐKr   )r"   r.   r/   rc   r   r	   r   r   r   r#   r0   r   r%   r'   r)   r
   r+   r1   r-   r2   r   r   re   re   f   s,  € € € € € Ø>Ð>ð  ,ð  °yð  ÀTð  ð  ð  ð  ð*˜ð *ð *ð *ð *ðE˜#ð Eð Eð Eð Eð ð,˜nð ,ð ,ð ,ñ „Xð,ð ð$�cð $ð $ð $ñ „Xð$ð #ð ð ð ð ð oð ð ð ð ð
L¨ð L°tð Lð Lð Lð Lð Lð Lr   re   c                   óš   — e Zd ZdZdeddfd„Zdefd„Zdefd„Ze	defd„¦   «         Z
e	defd	„¦   «         Zdefd
„Zdefd„Zdedefd„ZdS )ÚUnsatisfiableRequirementz'A requirement that cannot be satisfied.r'   r   Nc                 ó   — || _         d S r   ©Ú_name)r   r'   s     r   r   z!UnsatisfiableRequirement.__init__Ž   s   € ØˆŒ
ˆ
ˆ
r   c                 ó   — | j         › d�S )Nz (unavailable)rv   r   s    r   r   z UnsatisfiableRequirement.__str__‘   s   € Ø”*Ð,Ð,Ð,Ð,r   c                 óJ   — | j         j        › dt          | j        ¦  «        ›d�S r   )r!   r"   r   rw   r   s    r   r#   z!UnsatisfiableRequirement.__repr__”   s&   € Ø”.Ô)Ð@Ð@­C°´
©O¬OÐ@Ð@Ð@Ð@r   c                 ó   — | j         S r   rv   r   s    r   r%   z%UnsatisfiableRequirement.project_name—   ó
   € àŒzÐr   c                 ó   — | j         S r   rv   r   s    r   r'   zUnsatisfiableRequirement.name›   r{   r   c                 ó    — t          | ¦  «        S r   rn   r   s    r   r)   z)UnsatisfiableRequirement.format_for_errorŸ   ro   r   c                 ó   — dS )Nrq   r2   r   s    r   r+   z-UnsatisfiableRequirement.get_candidate_lookup¢   s   € Øˆzr   r   c                 ó   — dS )NFr2   r   s     r   r-   z(UnsatisfiableRequirement.is_satisfied_by¥   s   € Øˆur   )r"   r.   r/   rc   r   r   r   r   r#   r0   r%   r'   r)   r
   r+   r	   r1   r-   r2   r   r   rt   rt   ‹   s  € € € € € Ø1Ð1ð˜^ð °ð ð ð ð ð-˜ð -ð -ð -ð -ðA˜#ð Að Að Að Að ð˜nð ð ð ñ „Xðð ð�cð ð ð ñ „Xðð #ð ð ð ð ð oð ð ð ð ð¨ð °tð ð ð ð ð ð r   rt   N)Ú pip._vendor.packaging.specifiersr   Úpip._vendor.packaging.utilsr   r   Úpip._internal.req.constructorsr   Úpip._internal.req.req_installr   Úbaser	   r
   r   r   r   r4   r`   re   rt   r2   r   r   ú<module>r…      sn  ðØ 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø IÐ IÐ IÐ IÐ IÐ IÐ IÐ Ià BÐ BÐ BÐ BÐ BÐ BØ <Ð <Ð <Ð <Ð <Ð <à FÐ FÐ FÐ FÐ FÐ FÐ FÐ FÐ FÐ FÐ FÐ Fð+ð +ð +ð +ð +˜+ñ +ô +ð +ð</Bð /Bð /Bð /Bð /B˜;ñ /Bô /Bð /Bðd	Rð 	Rð 	Rð 	Rð 	RÐ(<ñ 	Rô 	Rð 	Rð"Lð "Lð "Lð "Lð "L ñ "Lô "Lð "LðJð ð ð ð ˜{ñ ô ð ð ð r   