
    ,h	                     J   d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ ddl	m
Z
 ddlmZ ddlmZ d	 Zd
 Zd Zde
j$                  fdZe j(                  d        Zej-                  e      d        Zej-                   ed      d        ede
j$                  fd       Zd Zy)    N)	pass_none)yield_lines)consume   )metadata)ensure_unique)OptionErrorc                 p    	 | j                    y# t        t        f$ r}d|  d}t        |      |d}~ww xY w)z
    Exercise one of the dynamic properties to trigger
    the pattern match.

    This function is deprecated in favor of importlib_metadata 8.7 and
    Python 3.14 importlib.metadata, which validates entry points on
    construction.
    zProblems to parse zq.
Please ensure entry-point follows the spec: https://packaging.python.org/en/latest/specifications/entry-points/N)extrasAttributeErrorAssertionErrorr	   )epexmsgs      Z/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/setuptools/_entry_points.pyensure_validr      sL    '
		N+ ' ! %R R 	 #B&'s    505c                     t        |       }d| ddj                  |      z   }t        j                  j	                  |      S )zf
    Given a value of an entry point or series of entry points,
    return each as an EntryPoint.
    []

)r   joinr   EntryPoints
_from_text)valuegrouplinestexts       r   
load_groupr   "   s@     EugS>DIIe,,D**400    c                 2    | j                   | j                  fS N)r   name)r   s    r   by_group_and_namer#   -   s    88RWWr   epsc           	      V    t        t        t        t        | t                           | S )zM
    Ensure entry points are unique by group and name and validate each.
    key)r   mapr   r   r#   r$   s    r   validater*   1   s      CmC5FGHIJr   c                     t         j                  j                  d | j                         D              }t	        t        j                  |            S )zA
    Given a Distribution.entry_points, produce EntryPoints.
    c              3   :   K   | ]  \  }}t        ||        y wr!   )r   ).0r   r   s      r   	<genexpr>zload.<locals>.<genexpr>>   s       +%1UE
5% +s   )	itertoolschainfrom_iterableitemsr*   r   r   )r$   groupss     r   loadr4   9   sC    
 __** +58YY[+ F H((011r   c                 x    t        t        j                  t        j                  j                  |                   S )z
    >>> ep, = load('[console_scripts]\nfoo=bar')
    >>> ep.group
    'console_scripts'
    >>> ep.name
    'foo'
    >>> ep.value
    'bar'
    )r*   r   r   r   r)   s    r   _r6   D   s+     H(()=)=)H)H)MNOOr   c                     | S r!    )xs    r   <lambda>r:   R   s    A r   c                     t        j                  d      }t        j                  t	        | |      |      }dj                  d |D              S )Nr   r&   r   c              3   F   K   | ]  \  }}d | dt        |       d  yw)r   r   r   N)render_items)r-   r   r2   s      r   r.   zrender.<locals>.<genexpr>Z   s)     V|ueqs<#6"7r:Vs   !)operator
attrgetterr/   groupbysortedr   )r$   by_groupr3   s      r   renderrC   U   s@    ""7+Hvcx8(CF99VvVVVr   c                 D    dj                  d t        |       D              S )Nr   c              3   R   K   | ]  }|j                    d |j                    ! yw)z = N)r"   r   )r-   r   s     r   r.   zrender_items.<locals>.<genexpr>^   s#     E2yBHH:.Es   %')r   rA   r)   s    r   r=   r=   ]   s    99EEEEr   )	functoolsr/   r>   jaraco.functoolsr   jaraco.textr   more_itertoolsr   
_importlibr   
_itertoolsr   errorsr	   r   r   r#   r   r*   singledispatchr4   registerstrr6   typerC   r=   r8   r   r   <module>rQ      s       & # "   % '(1(&&  2 2 s
P 
P d4j+ & W$$ W WFr   