§
    Áôg�  ã                   ó.  — d Z dZddlZ	 eZeZeZeZddlm	Z
 ddlmZ ddlmZ ddlmZ n-# eef$ r# eZeZeZeZddlm
Z
 ddlmZ ddlmZ ddlmZ Y nw xY w	 dd	lmZ n&# e$ r 	 dd	lmZ n# eef$ r	 dd
lmZ Y nw xY wY nw xY wd„ Zd„ Zd„ Zd„ Zd„ ZdS )aK  
Compatibility with Python 2 and 3.

This module exposes aliases and functions that make it easier to write Python
code that is compatible with Python 2 and Python 3.

.. data:: basestring

   Alias for :func:`python2:basestring` (in Python 2) or :class:`python3:str`
   (in Python 3). See also :func:`is_string()`.

.. data:: HTMLParser

   Alias for :class:`python2:HTMLParser.HTMLParser` (in Python 2) or
   :class:`python3:html.parser.HTMLParser` (in Python 3).

.. data:: interactive_prompt

   Alias for :func:`python2:raw_input()` (in Python 2) or
   :func:`python3:input()` (in Python 3).

.. data:: StringIO

   Alias for :class:`python2:StringIO.StringIO` (in Python 2) or
   :class:`python3:io.StringIO` (in Python 3).

.. data:: unicode

   Alias for :func:`python2:unicode` (in Python 2) or :class:`python3:str` (in
   Python 3). See also :func:`coerce_string()`.

.. data:: monotonic

   Alias for :func:`python3:time.monotonic()` (in Python 3.3 and higher) or
   `monotonic.monotonic()` (a `conditional dependency
   <https://pypi.org/project/monotonic/>`_ on older Python versions).
)Ú
HTMLParserÚStringIOÚ
basestringÚcoerce_stringÚinteractive_promptÚ	is_stringÚ
is_unicodeÚ	monotonicÚname2codepointÚon_macosÚ
on_windowsÚunichrÚunicodeÚwhiché    N)Úfind_executable)r   )r   )r
   )r   )r	   )Útimec                 óB   — t          | ¦  «        r| nt          | ¦  «        S )z×
    Coerce any value to a Unicode string (:func:`python2:unicode` in Python 2 and :class:`python3:str` in Python 3).

    :param value: The value to coerce.
    :returns: The value coerced to a Unicode string.
    )r   r   ©Úvalues    ú]/var/www/html/bac/bac_backend/python/env/lib/python3.11/site-packages/humanfriendly/compat.pyr   r   e   s!   € õ ˜eÑ$Ô$Ð8ˆ5ˆ5­'°%©.¬.Ð8ó    c                 ó,   — t          | t          ¦  «        S )zë
    Check if a value is a :func:`python2:basestring` (in Python 2) or :class:`python3:str` (in Python 3) object.

    :param value: The value to check.
    :returns: :data:`True` if the value is a string, :data:`False` otherwise.
    )Ú
isinstancer   r   s    r   r   r   o   s   € õ �e�ZÑ(Ô(Ð(r   c                 ó,   — t          | t          ¦  «        S )zð
    Check if a value is a :func:`python2:unicode` (in Python 2) or :class:`python2:str` (in Python 3) object.

    :param value: The value to check.
    :returns: :data:`True` if the value is a Unicode string, :data:`False` otherwise.
    )r   r   r   s    r   r   r   y   s   € õ �e�WÑ%Ô%Ð%r   c                  ó@   — t           j                             d¦  «        S )zw
    Check if we're running on Apple MacOS.

    :returns: :data:`True` if running MacOS, :data:`False` otherwise.
    Údarwin©ÚsysÚplatformÚ
startswith© r   r   r   r   ƒ   s   € õ Œ<×"Ò" 8Ñ,Ô,Ð,r   c                  ó@   — t           j                             d¦  «        S )z†
    Check if we're running on the Microsoft Windows OS.

    :returns: :data:`True` if running Windows, :data:`False` otherwise.
    Úwinr   r!   r   r   r   r   Œ   s   € õ Œ<×"Ò" 5Ñ)Ô)Ð)r   ) Ú__doc__Ú__all__r   r   r   r   Ú	raw_inputr   Údistutils.spawnr   r   r   r   Úhtmlentitydefsr
   ÚImportErrorÚ	NameErrorÚstrÚchrÚinputÚshutilÚhtml.parserÚioÚhtml.entitiesr   r	   ÚRuntimeErrorr   r   r   r   r   r!   r   r   ú<module>r3      sê  ðð$ð $ðL€ð$ €
€
€
ð-à€GØ€FØ€JØ"ÐØ8Ð8Ð8Ð8Ð8Ð8Ø%Ð%Ð%Ð%Ð%Ð%Ø!Ð!Ð!Ð!Ð!Ð!Ø-Ð-Ð-Ð-Ð-Ð-Ð-øØ�YÐð 	-ð 	-ð 	-à€GØ€FØ€JØÐØÐÐÐÐÐØ&Ð&Ð&Ð&Ð&Ð&ØÐÐÐÐÐØ,Ð,Ð,Ð,Ð,Ð,Ð,Ð,ð	-øøøð+àÐÐÐÐÐÐøØð +ð +ð +ð+Ø'Ð'Ð'Ð'Ð'Ð'Ð'øØ˜Ð&ð +ð +ð +ð 	+Ð*Ð*Ð*Ð*Ð*Ð*Ð*ð+øøøøøð+øøøð9ð 9ð 9ð)ð )ð )ð&ð &ð &ð-ð -ð -ð*ð *ð *ð *ð *sE   Š + «'AÁAÁA  Á BÁ&A-Á,BÁ-A=Á:BÁ<A=Á=BÂB