JFIF$        dd7 

Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/babel/__pycache__/lists.cpython-311.pyc

�

OX��E-��p�dZddlmZddlmZddlmZddlmZm	Z	erddl
mZe	��Zdefdd�Z
dS)aY
    babel.lists
    ~~~~~~~~~~~

    Locale dependent formatting of lists.

    The default locale for the functions in this module is determined by the
    following environment variables, in that order:

     * ``LC_ALL``, and
     * ``LANG``

    :copyright: (c) 2015-2023 by the Babel Team.
    :license: BSD, see LICENSE for more details.
�)�annotations)�Sequence)�
TYPE_CHECKING)�Locale�default_locale)�Literal�standard�lst�
Sequence[str]�style�\Literal['standard', 'standard-short', 'or', 'or-short', 'unit', 'unit-short', 'unit-narrow']�locale�Locale | str | None�return�strc
��tj|��}|sdSt|��dkr|dS||jvr+t	d|�d|�dt|j���d����|j|}t|��dkr|d	j|�S|d
�|d|d��}|dd�D]}|d�||��}�|d
�||d��}|S)u�
    Format the items in `lst` as a list.

    >>> format_list(['apples', 'oranges', 'pears'], locale='en')
    u'apples, oranges, and pears'
    >>> format_list(['apples', 'oranges', 'pears'], locale='zh')
    u'apples、oranges和pears'
    >>> format_list(['omena', 'peruna', 'aplari'], style='or', locale='fi')
    u'omena, peruna tai aplari'

    These styles are defined, but not all are necessarily available in all locales.
    The following text is verbatim from the Unicode TR35-49 spec [1].

    * standard:
      A typical 'and' list for arbitrary placeholders.
      eg. "January, February, and March"
    * standard-short:
      A short version of a 'and' list, suitable for use with short or abbreviated placeholder values.
      eg. "Jan., Feb., and Mar."
    * or:
      A typical 'or' list for arbitrary placeholders.
      eg. "January, February, or March"
    * or-short:
      A short version of an 'or' list.
      eg. "Jan., Feb., or Mar."
    * unit:
      A list suitable for wide units.
      eg. "3 feet, 7 inches"
    * unit-short:
      A list suitable for short units
      eg. "3 ft, 7 in"
    * unit-narrow:
      A list suitable for narrow units, where space on the screen is very limited.
      eg. "3′ 7″"

    [1]: https://www.unicode.org/reports/tr35/tr35-49/tr35-general.html#ListPatterns

    :param lst: a sequence of items to format in to a list
    :param style: the style to format the list with. See above for description.
    :param locale: the locale
    ��rzLocale z( does not support list formatting style z (supported are �)��2�start����middle�end)r�parse�len�
list_patterns�
ValueError�sorted�format)r
rr�patterns�result�elems      �k/builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/babel/lists.py�format_listr&s<��X�\�&�
!�
!�F����r�
�3�x�x�1�}�}��1�v�
��F�(�(�(��
>�f�
>�
>�e�
>�
>�$�V�%9�:�:�
>�
>�
>�
�
�	
��#�E�*�H�
�3�x�x�1�}�}�#�x��}�#�S�)�)�
�g�
�
%�
%�c�!�f�c�!�f�
5�
5�F��A�b�D�	�9�9���(�#�*�*�6�4�8�8���
�e�_�
#�
#�F�C��G�
4�
4�F��M�N)r
rrr
rrrr)�__doc__�
__future__r�collections.abcr�typingr�
babel.corerr�typing_extensionsr�DEFAULT_LOCALEr&�r'r%�<module>r0s�����#�"�"�"�"�"�$�$�$�$�$�$� � � � � � �-�-�-�-�-�-�-�-��*�)�)�)�)�)�)���!�!��wA�.<�A�A�A�A�A�A�Ar'
Back to Directory  nL+D550H?Mx ,D"v]qv;6*Zqn)ZP0!1 A "#a$2Qr D8 a Ri[f\mIykIw0cuFcRı?lO7к_f˓[C$殷WF<_W ԣsKcëIzyQy/_LKℂ;C",pFA:/]=H  ~,ls/9ć:[=/#f;)x{ٛEQ )~ =𘙲r*2~ a _V=' kumFD}KYYC)({ *g&f`툪ry`=^cJ.I](*`wq1dđ#̩͑0;H]u搂@:~וKL Nsh}OIR*8:2 !lDJVo(3=M(zȰ+i*NAr6KnSl)!JJӁ* %݉?|D}d5:eP0R;{$X'xF@.ÊB {,WJuQɲRI;9QE琯62fT.DUJ;*cP A\ILNj!J۱+O\͔]ޒS߼Jȧc%ANolՎprULZԛerE2=XDXgVQeӓk yP7U*omQIs,K`)6\G3t?pgjrmۛجwluGtfh9uyP0D;Uڽ"OXlif$)&|ML0Zrm1[HXPlPR0'G=i2N+0e2]]9VTPO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