Ë
    nûàgU  ã                   óT  — d Z ddlZddlZddlmZ  ej
                  dej                  «      Z ej
                  d«      Z ej
                  d«      Z	d„ Z
ej                  ej                  ej                  ej                  ej                  ej                   d	œZ G d
„ d«      Zdad„ Zy)zAModule for parsing and testing package version predicate strings.é    Né   )Úversionz'(?i)^\s*([a-z_]\w*(?:\.[a-z_]\w*)*)(.*)z^\s*\((.*)\)\s*$z%^\s*(<=|>=|<|>|!=|==)\s*([^\s,]+)\s*$c                 óü   — t         j                  | «      }|st        d| ›�«      ‚|j                  «       \  }}t	        j
                  «       5  t	        j                  |«      }ddd«       ||fS # 1 sw Y   |fS xY w)zVParse a single version comparison.

    Return (comparison string, StrictVersion)
    z bad package restriction syntax: N)Úre_splitComparisonÚmatchÚ
ValueErrorÚgroupsr   Úsuppress_known_deprecationÚStrictVersion)ÚpredÚresÚcompÚverStrÚothers        úd/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/setuptools/_distutils/versionpredicate.pyÚsplitUpr      sy   € ô
 ×
"Ñ
" 4Ó
(€CÙÜÐ;¸D¸8ÐDÓEÐEØ—:‘:“<�L€Dˆ&Ü	×	+Ñ	+Ó	-ñ .Ü×%Ñ% fÓ-ˆ÷.à�%ˆ=Ð÷.à�%ˆ=Ðús   ÁA/Á/A;)ú<z<=z==ú>z>=z!=c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚVersionPredicatea¼  Parse and test package version predicates.

    >>> v = VersionPredicate('pyepat.abc (>1.0, <3333.3a1, !=1555.1b3)')

    The `name` attribute provides the full dotted name that is given::

    >>> v.name
    'pyepat.abc'

    The str() of a `VersionPredicate` provides a normalized
    human-readable version of the expression::

    >>> print(v)
    pyepat.abc (> 1.0, < 3333.3a1, != 1555.1b3)

    The `satisfied_by()` method can be used to determine with a given
    version number is included in the set described by the version
    restrictions::

    >>> v.satisfied_by('1.1')
    True
    >>> v.satisfied_by('1.4')
    True
    >>> v.satisfied_by('1.0')
    False
    >>> v.satisfied_by('4444.4')
    False
    >>> v.satisfied_by('1555.1b3')
    False

    `VersionPredicate` is flexible in accepting extra whitespace::

    >>> v = VersionPredicate(' pat( ==  0.1  )  ')
    >>> v.name
    'pat'
    >>> v.satisfied_by('0.1')
    True
    >>> v.satisfied_by('0.2')
    False

    If any version numbers passed in do not conform to the
    restrictions of `StrictVersion`, a `ValueError` is raised::

    >>> v = VersionPredicate('p1.p2.p3.p4(>=1.0, <=1.3a1, !=1.2zb3)')
    Traceback (most recent call last):
      ...
    ValueError: invalid version number '1.2zb3'

    It the module or package name given does not conform to what's
    allowed as a legal module or package name, `ValueError` is
    raised::

    >>> v = VersionPredicate('foo-bar')
    Traceback (most recent call last):
      ...
    ValueError: expected parenthesized list: '-bar'

    >>> v = VersionPredicate('foo bar (12.21)')
    Traceback (most recent call last):
      ...
    ValueError: expected parenthesized list: 'bar (12.21)'

    c                 óô  — |j                  «       }|st        d«      ‚t        j                  |«      }|st        d|›�«      ‚|j	                  «       \  | _        }|j                  «       }|r€t        j                  |«      }|st        d|›�«      ‚|j	                  «       d   }|j                  d«      D �cg c]  }t        |«      ‘Œ c}| _	        | j                  st        d|›�«      ‚yg | _	        yc c}w )z!Parse a version predicate string.zempty package restrictionzbad package name in zexpected parenthesized list: r   ú,zempty parenthesized list in N)
Ústripr   Úre_validPackager   r	   ÚnameÚre_parenÚsplitr   r   )ÚselfÚversionPredicateStrr   ÚparenÚstrÚaPreds         r   Ú__init__zVersionPredicate.__init__i   sí   € ð 2×7Ñ7Ó9ÐÙ"ÜÐ8Ó9Ð9Ü×%Ñ%Ð&9Ó:ˆÙÜÐ3Ð4GÐ3JÐKÓLÐLØ Ÿ<™<›>ÑˆŒ	�5Ø—‘“ˆÙÜ—N‘N 5Ó)ˆEÙÜ Ð#@ÀÀ	Ð!JÓKÐKØ—,‘,“. Ñ#ˆCØ58·Y±Y¸s³^ÖD¨Eœ �ÒDˆDŒIØ—9’9Ü Ð#?Ð@SÐ?VÐ!WÓXÐXð ð ˆD�Iùò	 Es   Â8C5c                 óà   — | j                   rQ| j                   D ��cg c]  \  }}|dz   t        |«      z   ‘Œ }}}| j                  dz   dj                  |«      z   dz   S | j                  S c c}}w )Nú z (z, ú))r   r!   r   Újoin)r   ÚcondÚverÚseqs       r   Ú__str__zVersionPredicate.__str__‚   sb   € Ø�9Š9Ø:>¿)¹)×D©Y¨T°3�4˜#‘:¤ C£Ó(ÐDˆCÑDØ—9‘9˜tÑ# d§i¡i°£nÑ4°sÑ:Ð:à—9‘9Ðùó Es   œA*c                 óN   — | j                   D ]  \  }}t        |   ||«      rŒ y y)zÏTrue if version is compatible with all the predicates in self.
        The parameter version must be acceptable to the StrictVersion
        constructor.  It may be either a string or StrictVersion.
        FT)r   Úcompmap)r   r   r(   r)   s       r   Úsatisfied_byzVersionPredicate.satisfied_by‰   s1   € ð
 Ÿ™ò 	‰IˆD�#Ü˜4‘= ¨#Õ.Ùð	ð ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r#   r+   r.   © r/   r   r   r   (   s   „ ñ>ò@ò2ór/   r   c                 ó�  — t         €$t        j                  dt        j                  «      a | j	                  «       } t         j                  | «      }|st        d| ›�«      ‚|j                  d«      xs d}|r2t        j                  «       5  t        j                  |«      }ddd«       |j                  d«      |fS # 1 sw Y   ŒxY w)a9  Return the name and optional version number of a provision.

    The version number, if given, will be returned as a `StrictVersion`
    instance, otherwise it will be `None`.

    >>> split_provision('mypkg')
    ('mypkg', None)
    >>> split_provision(' mypkg( 1.2 ) ')
    ('mypkg', StrictVersion ('1.2'))
    Nz=([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$z illegal provides specification: é   r   )Ú_provision_rxÚreÚcompileÚASCIIr   r   r   Úgroupr   r
   r   )ÚvalueÚmr)   s      r   Úsplit_provisionr>   —   s¬   € ô ÐÜŸ
™
ØLÌbÏhÉhó
ˆð �K‰K‹M€EÜ×Ñ˜EÓ"€AÙÜÐ;¸E¸9ÐEÓFÐFØ
�'‰'�!‹*Ò
˜€CÙ
Ü×/Ñ/Ó1ñ 	-Ü×'Ñ'¨Ó,ˆC÷	-à�7‰7�1‹:�sˆ?Ð÷	-ð 	-ús   ÂB<Â<C)r3   Úoperatorr8   Ú r   r9   r:   r   r   r   r   ÚltÚleÚeqÚgtÚgeÚner-   r   r7   r>   r4   r/   r   ú<module>rG      sž   ðÙ Gã Û 	å à�"—*‘*ÐGÈÏÉÓR€ð ˆ2�:‰:Ð)Ó*€Ø�R—Z‘ZÐ HÓIÐ òð 
�‰Ø
�+‰+Ø
�+‰+Ø	�‰Ø
�+‰+Ø
�+‰+ñ€÷iñ iðX €ór/   