+
    œº<jŸ	  ã                   óz   € ^ RI t ^ RIt^ RIt^ RIHtHt ^ RIHtHt ^ RI	H
t
Ht RR.tR R ltR	 R
 ltR R ltR# )é    N)ÚListÚOptional)Úsite_packagesÚ	user_site)Úrunning_under_virtualenvÚvirtualenv_no_globalÚegg_link_path_from_sys_pathÚegg_link_path_from_locationc                óF   € V ^8„  d   QhR\         R\        \         ,          /# ©é   Úraw_nameÚreturn)Ústrr   )Úformats   "ÚQ/opt/headortail/venv/lib/python3.14/site-packages/pip/_internal/utils/egg_link.pyÚ__annotate__r      s   € ÷ ñ œcð ¤d¬3¥iñ ó    c                óJ   € \         P                  ! RRV 4      R,           V  R2.# )ah  
Convert a Name metadata value to a .egg-link name, by applying
the same substitution as pkg_resources's safe_name function.
Note: we cannot use canonicalize_name because it has a different logic.

We also look for the raw name (without normalization) as setuptools 69 changed
the way it names .egg-link files (https://github.com/pypa/setuptools/issues/4167).
z[^A-Za-z0-9.]+Ú-z	.egg-link)ÚreÚsub)r   s   &r   Ú_egg_link_namesr      s.   € ô 	ŠÐ  hÓ/°+Õ=Øˆ*IÐðð r   c                óF   € V ^8„  d   QhR\         R\        \         ,          /# r   ©r   r   )r   s   "r   r   r   !   s   € ÷ 
ñ 
¬#ð 
´(¼3µ-ñ 
r   c                óð   € \        V 4      p\        P                   FV  pV FM  p\        P                  P	                  W#4      p\        P                  P                  V4      '       g   KI  Vu u # 	  KX  	  R# )zB
Look for a .egg-link file for project name, by walking sys.path.
N)r   ÚsysÚpathÚosÚjoinÚisfile)r   Úegg_link_namesÚ	path_itemÚegg_link_nameÚegg_links   &    r   r	   r	   !   sU   € ô % XÓ.€NÜ—X”Xˆ	Û+ˆMÜ—w‘w—|‘| IÓ=ˆHÜw‰w~‰~˜h×'Ô'Ø”ó ,ñ ñ
 r   c                óF   € V ^8„  d   QhR\         R\        \         ,          /# r   r   )r   s   "r   r   r   .   s   € ÷ "ñ "¬#ð "´(¼3µ-ñ "r   c                óò  € . p\        4       '       dH   VP                  \        4       \        4       '       g"   \        '       d   VP                  \        4       M6\        '       d   VP                  \        4       VP                  \        4       \        V 4      pV FV  pV FM  p\        P                  P                  W44      p\        P                  P                  V4      '       g   KI  Vu u # 	  KX  	  R# )aã  
Return the path for the .egg-link file if it exists, otherwise, None.

There's 3 scenarios:
1) not in a virtualenv
   try to find in site.USER_SITE, then site_packages
2) in a no-global virtualenv
   try to find in site_packages
3) in a yes-global virtualenv
   try to find in site_packages, then site.USER_SITE
   (don't look in global location)

For #1 and #3, there could be odd cases, where there's an egg-link in 2
locations.

This method will just return the first one found.
N)
r   Úappendr   r   r   r   r   r   r    r!   )r   Úsitesr"   Úsiter$   Úegglinks   &     r   r
   r
   .   s¢   € ð$ €EÜ×!Ò!Ø‰”]Ô#Ü#×%Ò%¯)«)ØL‰LœÔ#øç‹9ØL‰LœÔ#Ø‰”]Ô#ä$ XÓ.€NÛˆÛ+ˆMÜ—g‘g—l‘l 4Ó7ˆGÜw‰w~‰~˜g×&Ô&Ø”ó ,ñ ñ
 r   )r   r   r   Útypingr   r   Úpip._internal.locationsr   r   Úpip._internal.utils.virtualenvr   r   Ú__all__r   r	   r
   © r   r   Ú<module>r1      s7   ðÛ 	Û 	Û 
ß !ç <÷ð "Ø!ð€õõ
÷"r   