%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.12/collections/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.12/collections/__pycache__/__init__.cpython-312.pyc

�

���f�����dZgd�ZddlZddlZddlmZddlmZ	ddlm
Zddlm
ZddlmZdd	lmZdd
lmZddlmZ	ddlmZej8j;e�	dd
lmZ	ddlm Z Gd�dejB�Z"Gd�dejF�Z$Gd�dejJ�Z&Gd�de'�Z(Gd�de)�Z*	ddlm*Z*	ddlm+Z+dddd�d�Z,d�Z-	dd lm-Z-Gd!�d"e)�Z.Gd#�d$ej^�Z0Gd%�d&ej^�Z1Gd'�d(ej8�Z2Gd)�d*ejf�Z4y#e$rY��wxYw#e$rY��wxYw#e$rY��wxYw#e$rY��wxYw#e$rd�Z+Y��wxYw#e$rY��wxYw)+a?This module implements specialized container datatypes providing
alternatives to Python's general purpose built-in containers, dict,
list, set, and tuple.

* namedtuple   factory function for creating tuple subclasses with named fields
* deque        list-like container with fast appends and pops on either end
* ChainMap     dict-like class for creating a single view of multiple mappings
* Counter      dict subclass for counting hashable objects
* OrderedDict  dict subclass that remembers the order entries were added
* defaultdict  dict subclass that calls a factory function to supply missing values
* UserDict     wrapper around dictionary objects for easier dict subclassing
* UserList     wrapper around list objects for easier list subclassing
* UserString   wrapper around string objects for easier string subclassing

)	�ChainMap�Counter�OrderedDict�UserDict�UserList�
UserString�defaultdict�deque�
namedtuple�N)�chain)�repeat)�starmap)�	iskeyword)�eq)�
itemgetter)�recursive_repr)�proxy)r	)�_deque_iterator)rc��eZdZd�Zy)�_OrderedDictKeysViewc#�JK�t|j�Ed{���y7��w�N��reversed�_mapping��selfs �+/usr/lib/python3.12/collections/__init__.py�__reversed__z!_OrderedDictKeysView.__reversed__As�����D�M�M�*�*�*�s�#�!�#N��__name__�
__module__�__qualname__r��rrr?s��+r%rc��eZdZd�Zy)�_OrderedDictItemsViewc#�fK�t|j�D]}||j|f���y�wrr�r�keys  rrz"_OrderedDictItemsView.__reversed__Fs2�����D�M�M�*�	,�C���
�
�c�*�+�+�	,�s�/1Nr r$r%rr'r'Ds��,r%r'c��eZdZd�Zy)�_OrderedDictValuesViewc#�bK�t|j�D]}|j|���y�wrrr)s  rrz#_OrderedDictValuesView.__reversed__Ls-�����D�M�M�*�	%�C��-�-��$�$�	%�s�-/Nr r$r%rr,r,Js��%r%r,c��eZdZdZy)�_Link)�prev�nextr*�__weakref__N)r!r"r#�	__slots__r$r%rr/r/Ps��4�Ir%r/c�d�eZdZdZd�Zdd�Zejee	fd�Zejfd�Z
d�Zd�Zd�Z
dd	�Zdd
�Zd�Zej$j&xZZd�Zd
�Zd�Zej$j0Ze�Zefd�Zdd�Ze�d��Zd�Zd�Z e!dd��Z"d�Z#d�Z$d�Z%d�Z&y)rz)Dictionary that remembers insertion orderc��tj|�}t�|_t	|j�x|_}|x|_|_i|_|S)zDCreate the ordered dict object and set up the underlying structures.)	�dict�__new__r/�_OrderedDict__hardroot�_proxy�_OrderedDict__rootr0r1�_OrderedDict__map)�cls�args�kwdsr�roots     rr7zOrderedDict.__new__bsH���|�|�C� ���'���#�D�O�O�4�4���d� $�$��	�D�I���
��r%c�*�|j|fi|��y)z�Initialize an ordered dictionary.  The signature is the same as
        regular dictionaries.  Keyword argument order is preserved.
        N)�_OrderedDict__update)r�otherr>s   r�__init__zOrderedDict.__init__ks��	��
�
�e�$�t�$r%c���||vrX|�x|j|<}|j}|j}|||c|_|_|_||_||�|_||||�y)z!od.__setitem__(i, y) <==> od[i]=yN)r;r:r0r1r*)	rr*�value�dict_setitemr�Link�linkr?�lasts	         r�__setitem__zOrderedDict.__setitem__qse��
�d�?�%)�V�+�D�J�J�s�O�d��;�;�D��9�9�D�-1�4��*�D�I�t�y�$�(��D�I��d��D�I��T�3��&r%c��|||�|jj|�}|j}|j}||_||_d|_d|_y)z od.__delitem__(y) <==> del od[y]N)r;�popr0r1)rr*�dict_delitemrH�	link_prev�	link_nexts      r�__delitem__zOrderedDict.__delitem__sN��	�T�3���z�z�~�~�c�"���I�I�	��I�I�	�"�	��"�	����	���	r%c#�K�|j}|j}||ur |j��|j}||ur�yy�w)zod.__iter__() <==> iter(od)N)r:r1r*�rr?�currs   r�__iter__zOrderedDict.__iter__��>�����{�{���y�y���$���(�(�N��9�9�D��$���
�;A�Ac#�K�|j}|j}||ur |j��|j}||ur�yy�w)z#od.__reversed__() <==> reversed(od)N)r:r0r*rRs   rrzOrderedDict.__reversed__�rUrVc��|j}|x|_|_|jj	�t
j	|�y)z.od.clear() -> None.  Remove all items from od.N)r:r0r1r;�clearr6)rr?s  rrYzOrderedDict.clear�s5���{�{�� $�$��	�D�I��
�
�����
�
�4�r%c�8�|std��|j}|r'|j}|j}||_||_n&|j}|j}||_||_|j}|j
|=tj||�}||fS)z�Remove and return a (key, value) pair from the dictionary.

        Pairs are returned in LIFO order if last is true or FIFO order if false.
        zdictionary is empty)�KeyErrorr:r0r1r*r;r6rL)rrIr?rHrNrOr*rEs        r�popitemzOrderedDict.popitem�s���
��0�1�1��{�{����9�9�D��	�	�I�!�I�N�!�D�I��9�9�D��	�	�I�!�D�I�!�I�N��h�h���J�J�s�O�����s�#���E�z�r%c�D�|j|}|j}|j}|j}||_||_|j}|r)|j}||_||_||_||_y|j}||_||_||_||_y)z�Move an existing element to the end (or beginning if last is false).

        Raise KeyError if the element does not exist.
        N)r;r0r1r:)	rr*rIrHrNrO�	soft_linkr?�firsts	         r�move_to_endzOrderedDict.move_to_end�s���
�z�z�#����I�I�	��I�I�	��N�N�	�"�	��"�	���{�{����9�9�D��D�I��D�I�!�D�I��D�I��I�I�E��D�I��D�I�"�E�J��D�Ir%c��tj}t|�dz}||j�}|||j�dzz
}|||j
�|zz
}|||j�|zz
}|S)N��)�_sys�	getsizeof�len�__dict__r;r8r:)r�sizeof�n�sizes    r�
__sizeof__zOrderedDict.__sizeof__�ss��������I��M���d�m�m�$����t�z�z�"�Q�&�&����t���'�!�+�+����t�{�{�#�a�'�'���r%c��t|�S)z:D.keys() -> a set-like object providing a view on D's keys)rrs r�keyszOrderedDict.keys�s
��#�D�)�)r%c��t|�S)z<D.items() -> a set-like object providing a view on D's items)r'rs r�itemszOrderedDict.items�s
��$�T�*�*r%c��t|�S)z6D.values() -> an object providing a view on D's values)r,rs r�valueszOrderedDict.values�s
��%�d�+�+r%c��|j}tj|||�}||urQ|jj|�}|j}|j
}||_||_d|_d|_|S||urt
|��|S)z�od.pop(k[,d]) -> v, remove specified key and return the corresponding
        value.  If key is not found, d is returned if given, otherwise KeyError
        is raised.

        N)�_OrderedDict__markerr6rLr;r0r1r[)rr*�default�marker�resultrHrNrOs        rrLzOrderedDict.pop�s����������$��V�,������:�:�>�>�#�&�D��	�	�I��	�	�I�&�I�N�&�I�N��D�I��D�I��M��f���3�-���r%Nc�"�||vr||S|||<|S)z�Insert key with a value of default if key is not in the dictionary.

        Return the value for key if key is in the dictionary, else default.
        r$�rr*rts   r�
setdefaultzOrderedDict.setdefaults#��
�$�;���9����S�	��r%c��|s|jj�d�S|jj�dt|j���d�S)zod.__repr__() <==> repr(od)�()�(�))�	__class__r!r6rors r�__repr__zOrderedDict.__repr__s:���!�^�^�4�4�6�6��>�>�2�2�D�����4F�G�Gr%c�x�|j�}|r�t|t�r|\}}ni}|j�}|j�}t	t��D]&}|j
|d�|j
|d��(|r||f}n|xsd}|jd|dt|j��fS)z%Return state information for picklingNr$)
�__getstate__�
isinstance�tuple�copy�varsrrLr~�iterro)r�state�slots�ks    r�
__reduce__zOrderedDict.__reduce__s����!�!�#����%��'�$���u����J�J�L�E��J�J�L�E��+�-�(�
#���	�	�!�T�"��	�	�!�T�"�
#���u����
����~�~�r�5�$��T�Z�Z�\�0B�B�Br%c�$�|j|�S)z!od.copy() -> a shallow copy of od�r~rs rr�zOrderedDict.copy*����~�~�d�#�#r%c�,�|�}|D]}|||<�	|S)zYCreate a new ordered dictionary with keys from iterable and values set to value.
        r$)r<�iterablerErr*s     r�fromkeyszOrderedDict.fromkeys.s(���u���	�C��D��I�	��r%c��t|t�r2tj||�xrt	tt||��Stj||�S)z�od.__eq__(y) <==> od==y.  Comparison to another OD is order-sensitive
        while comparison to a regular mapping is order-insensitive.

        )r�rr6�__eq__�all�map�_eq�rrBs  rr�zOrderedDict.__eq__7sC��
�e�[�)��;�;�t�U�+�J��C��T�5�4I�0J�J��{�{�4��'�'r%c�(�|j|�|Sr)�updater�s  r�__ior__zOrderedDict.__ior__@s�����E���r%c�v�t|t�stS|j|�}|j	|�|Sr�r�r6�NotImplementedr~r��rrB�news   r�__or__zOrderedDict.__or__Ds1���%��&�!�!��n�n�T�"���
�
�5���
r%c�v�t|t�stS|j|�}|j	|�|Srr�r�s   r�__ror__zOrderedDict.__ror__Ks1���%��&�!�!��n�n�U�#���
�
�4���
r%)r$)Tr)'r!r"r#�__doc__r7rCr6rJr9r/rPrTrrYr\r`rk�_collections_abc�MutableMappingr�rArmrorq�__ne__�objectrsrLry�_recursive_reprrr�r��classmethodr�r�r�r�r�r$r%rrrSs���/��%�"&�!1�!1��e�'�-1�,<�,<������.�2�)�7�7�>�>�>�F�X�*�+�,��
,�
,�
3�
3�F��x�H�'��,���H��H�C�&$�����(���r%r)r)�_tuplegetterc�.�tt|�|��S)N)�doc)�property�_itemgetter)�indexr�s  r�<lambda>r�as��h�{�5�/A�s�&K�r%F)�rename�defaults�modulec�2����������t�t�r �jdd�j��t	tt����t
jt|��}|rft�}t��D]N\}}|j�r t|�s|jd�s||vrd|���|<|j|��P|g�zD]U}t|�turtd��|j�st!d|����t|�s�It!d|����t�}�D]F}|jd�r|st!d|����||vrt!d|����|j|��Hi}|�ft#|�}t%|�t%��kDrtd	��t't)t	t+t)��t)|�����}t#ttj����t%���d
j-��}	�dk(r|	dz
}	dd
j-d
��D��zdz�t"j.�t&t"t$t
t*f\������id|��d�}
d|	�d|	�d�}t1||
�}d|_d|�d|	�d�|_|�||_t8���fd��}
d|�d�|
j:_��fd�}d|�d�|_�fd�}��fd�}�fd�}||
j:||||fD]}|�d|j2��|_�|�d|	�d�d �|||
||||�d!�}t��D],\}}t
jd"|���}t?||�||<�.t|t"f|�}|�	t
j@d�xsd#}|�||_%|S#tB$rI	t
jDd�jFjId$d#�}n#tBt f$rYnwxYwY�\wxYw)%aCReturns a new subclass of tuple with named fields.

    >>> Point = namedtuple('Point', ['x', 'y'])
    >>> Point.__doc__                   # docstring for the new class
    'Point(x, y)'
    >>> p = Point(11, y=22)             # instantiate with positional args or keywords
    >>> p[0] + p[1]                     # indexable like a plain tuple
    33
    >>> x, y = p                        # unpack like a regular tuple
    >>> x, y
    (11, 22)
    >>> p.x + p.y                       # fields also accessible by name
    33
    >>> d = p._asdict()                 # convert to a dictionary
    >>> d['x']
    11
    >>> Point(**d)                      # convert from a dictionary
    Point(x=11, y=22)
    >>> p._replace(x=100)               # _replace() is like str.replace() but targets named fields
    Point(x=100, y=22)

    �,� �_z*Type names and field names must be stringsz6Type names and field names must be valid identifiers: z0Type names and field names cannot be a keyword: z-Field names cannot start with an underscore: z"Encountered duplicate field name: z(Got more default values than field names�, rbr|c3�&K�|]	}|�d����y�w)z=%rNr$)�.0�names  r�	<genexpr>znamedtuple.<locals>.<genexpr>�s����D��$��s�|�D�s�r}�namedtuple_)�
_tuple_new�__builtins__r!z
lambda _cls, z: _tuple_new(_cls, (z))r7zCreate new instance of c�d���||�}�|��k7rtd��dt|�����|S)Nz	Expected z arguments, got )�	TypeErrorrf)r<r�rv�_len�
num_fields�	tuple_news   ���r�_makeznamedtuple.<locals>._make�s=����3��)����<�:�%��i�
�|�3C�C��K�=�Q�R�R��
r%zMake a new z# object from a sequence or iterablec���|j�|j�|��}|rtdt|�����|S)NzGot unexpected field names: )r�rL�
ValueError�list)rr>rv�_map�field_namess   ��r�_replaceznamedtuple.<locals>._replace�s=������D����;��=�>����;�D��J�>�J�K�K��
r%z
Return a new z2 object replacing specified fields with new valuesc�<��|jj�|zzS)z/Return a nicely formatted representation string)r~r!)r�repr_fmts �rrznamedtuple.<locals>.__repr__�s����~�~�&�&��D��8�8r%c�6����|j|��S)z9Return a new dict which maps field names to their values.)�_fields)r�_dict�_zips ��r�_asdictznamedtuple.<locals>._asdict�s����T�$�,�,��-�.�.r%c����|�S)z7Return self as a plain tuple.  Used by copy and pickle.r$)r�_tuples �r�__getnewargs__z"namedtuple.<locals>.__getnewargs__�s
����d�|�r%�.r$)r�r3r��_field_defaultsr7r�r�rr�r��__match_args__zAlias for field number �__main__r!)&r��str�replace�splitr�r�rd�intern�set�	enumerate�isidentifier�
_iskeyword�
startswith�add�typer�r�r�rfr6r�zip�joinr7�evalr!r��__defaults__r��__func__r#r��_getframemodulename�AttributeError�	_getframe�	f_globals�getr")�typenamer�r�r�r��seenr�r��field_defaults�arg_list�	namespace�coder7r�r�rr�r��method�class_namespacer�rvr�r�r�r�r�r�r�r�s `                    @@@@@@@@rr
r
cs�����4�+�s�#�!�)�)�#�s�3�9�9�;���s�3��,�-�K��{�{�3�x�=�)�H�
��u��$�[�1�	�K�E�4��%�%�'��d�#��?�?�3�'��4�<�'(���[��E�"��H�H�T�N�
	��
�[�(�3����:�S� ��H�I�I�� � �"��-�-1�H�6�7�
7��d���)�)-��2�3�
3�3��5�D�����?�?�3����L� $�x�)�*�
*��4�<��A�$��J�K�K������
��N�����?���x�=�3�{�+�+��F�G�G��h�t�C���0E�08��0B�-D�(E�F�G����D�K�K��5�6�K��[�!�J��y�y��%�H��Q���C����T�Y�Y�D��D�D�D�s�J�H��
�
�I�&*�E�3��S�&@�#�E�6�4��t�
 ��!�(��,��I�
�8�*�$8��
�"�E�D��4��#�G� �G��/��z��8�*�A�F�G�O���'�������!,�H�:�6,�,�E�N�N���(��z�21�1�H��9�/��	�
�������
�>��"*�
�!�F�O�O�+<�=���>��Z�q��
�!�,���)������(�%��O�!��-�9���t��k�k�3�E�7�;�<�� ,�U�C� 8����9��(�U�H�o�
6�F��~�	��-�-�a�0�>�J�F���"����M���	�
�����*�4�4�8�8��Z�P���"�J�/�
��
��	�s6� O�	P�/O>�=P�>P�
P�P�P�Pc�H�|j}|D]}||d�dz||<�y)z!Tally elements from the iterable.rrbN)r�)�mappingr��mapping_get�elems    r�_count_elementsr�s/���+�+�K��1��#�D�!�,�q�0���
�1r%)r�c����eZdZdZd�fd�	Zd�Zd�Zdd�Zd�Ze	dd��Z
d�fd�	Zdd	�Zd
�Z
d�Z�fd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!�xZ"S) ra�Dict subclass for counting hashable items.  Sometimes called a bag
    or multiset.  Elements are stored as dictionary keys and their counts
    are stored as dictionary values.

    >>> c = Counter('abcdeabcdabcaba')  # count elements from a string

    >>> c.most_common(3)                # three most common elements
    [('a', 5), ('b', 4), ('c', 3)]
    >>> sorted(c)                       # list all unique elements
    ['a', 'b', 'c', 'd', 'e']
    >>> ''.join(sorted(c.elements()))   # list elements with repetitions
    'aaaaabbbbcccdde'
    >>> sum(c.values())                 # total of all counts
    15

    >>> c['a']                          # count of letter 'a'
    5
    >>> for elem in 'shazam':           # update counts from an iterable
    ...     c[elem] += 1                # by adding 1 to each element's count
    >>> c['a']                          # now there are seven 'a'
    7
    >>> del c['b']                      # remove all 'b'
    >>> c['b']                          # now there are zero 'b'
    0

    >>> d = Counter('simsalabim')       # make another counter
    >>> c.update(d)                     # add in the second counter
    >>> c['a']                          # now there are nine 'a'
    9

    >>> c.clear()                       # empty the counter
    >>> c
    Counter()

    Note:  If a count is set to zero or reduced to zero, it will remain
    in the counter until the entry is deleted or the counter is cleared:

    >>> c = Counter('aaabbc')
    >>> c['b'] -= 2                     # reduce the count of 'b' by two
    >>> c.most_common()                 # 'b' is still in, but its count is zero
    [('a', 3), ('c', 1), ('b', 0)]

    c�H��t�|��|j|fi|��y)a	Create a new, empty Counter object.  And if given, count elements
        from an input iterable.  Or, initialize the count from another mapping
        of elements to their counts.

        >>> c = Counter()                           # a new, empty counter
        >>> c = Counter('gallahad')                 # a new counter from an iterable
        >>> c = Counter({'a': 4, 'b': 2})           # a new counter from a mapping
        >>> c = Counter(a=4, b=2)                   # a new counter from keyword args

        N)�superrCr�)rr�r>r~s   �rrCzCounter.__init__Ss#���	��������H�%��%r%c��y)z1The count of elements not in the Counter is zero.rr$r)s  r�__missing__zCounter.__missing__as��r%c�4�t|j��S)zSum of the counts)�sumrqrs r�totalz
Counter.totalfs���4�;�;�=�!�!r%c��|�%t|j�td�d��Sddl}|j	||j�td���S)z�List the n most common elements and their counts from the most
        common to the least.  If n is None, then list all element counts.

        >>> Counter('abracadabra').most_common(3)
        [('a', 5), ('b', 2), ('r', 2)]

        NrbT)r*�reverser)r*)�sortedror��heapq�nlargest)rrirs   r�most_commonzCounter.most_commonjsF��
�9��$�*�*�,�K��N�D�I�I�	��~�~�a�����;�q�>�~�B�Br%c�d�tjtt|j	���S)aIterator over elements repeating each as many times as its count.

        >>> c = Counter('ABCABC')
        >>> sorted(c.elements())
        ['A', 'A', 'B', 'B', 'C', 'C']

        Knuth's example for prime factors of 1836:  2**2 * 3**3 * 17**1

        >>> import math
        >>> prime_factors = Counter({2: 2, 3: 3, 17: 1})
        >>> math.prod(prime_factors.elements())
        1836

        Note, if an element's count has been set to zero or is a negative
        number, elements() will ignore it.

        )�_chain�
from_iterable�_starmap�_repeatrors r�elementszCounter.elementszs"��&�#�#�H�W�d�j�j�l�$C�D�Dr%c��td��)Nz@Counter.fromkeys() is undefined.  Use Counter(iterable) instead.)�NotImplementedError)r<r��vs   rr�zCounter.fromkeys�s��"�N�P�	Pr%c�
��|�lt|tj�rF|r4|j}|j	�D]\}}|||d�z||<�nt
�|�|�nt||�|r|j
|�yy)a�Like dict.update() but add counts instead of replacing them.

        Source can be an iterable, a dictionary, or another Counter instance.

        >>> c = Counter('which')
        >>> c.update('witch')           # add elements from another iterable
        >>> d = Counter('watch')
        >>> c.update(d)                 # add elements from another counter
        >>> c['h']                      # four 'h' in which, witch, and watch
        4

        Nr)r�r��Mappingr�ror�r�r�)rr�r>�self_getr��countr~s      �rr�zCounter.update�s����(���(�$4�$<�$<�=��#�x�x�H�'/�~�~�'7�?���e�%*�X�d�A�->�%>��T�
�?��G�N�8�,���h�/���K�K���r%c��|�d|j}t|tj�r(|j	�D]\}}||d�|z
||<�n|D]}||d�dz
||<�|r|j|�yy)a�Like dict.update() but subtracts counts instead of replacing them.
        Counts can be reduced below zero.  Both the inputs and outputs are
        allowed to contain zero and negative counts.

        Source can be an iterable, a dictionary, or another Counter instance.

        >>> c = Counter('which')
        >>> c.subtract('witch')             # subtract elements from another iterable
        >>> c.subtract(Counter('watch'))    # subtract elements from another counter
        >>> c['h']                          # 2 in which, minus 1 in witch, minus 1 in watch
        0
        >>> c['w']                          # 1 in which, minus 1 in witch, minus 1 in watch
        -1

        Nrrb)r�r�r�rro�subtract)rr�r>rr�rs      rrzCounter.subtract�s��� ���x�x�H��(�$4�$<�$<�=�#+�>�>�#3�;�K�D�%�!)�$��!2�U�!:�D��J�;�%�7�D�!)�$��!2�Q�!6�D��J�7���M�M�$��r%c�$�|j|�S)zReturn a shallow copy.r�rs rr�zCounter.copy�r�r%c�2�|jt|�ffSr)r~r6rs rr�zCounter.__reduce__�s���~�~��T�
�}�,�,r%c�.��||vrt�|�|�yy)zGLike dict.__delitem__() but does not raise KeyError for missing values.N)r�rP)rr�r~s  �rrPzCounter.__delitem__�s����4�<��G���%�r%c���|s|jj�d�S	t|j��}|jj�d|�d�S#t$rt|�}Y�2wxYw)Nr{r|r})r~r!r6rr�)r�ds  rrzCounter.__repr__�so����n�n�-�-�.�b�1�1�	��T�%�%�'�(�A��.�.�)�)�*�!�A�5��2�2���	��T�
�A�	�s�A�A)�(A)c�`���t�t�stSt��fd���fD��S)z=True if all counts agree. Missing counts are treated as zero.c3�B�K�|]}|D]}�|�|k(����y�wrr$�r��c�erBrs   ��rr�z!Counter.__eq__.<locals>.<genexpr>�+�����I�1�q�I�!�4��7�e�A�h�&�I�&�I����r�rr�r�r�s``rr�zCounter.__eq__�(����%��)�!�!��I��u�
�I�I�Ir%c�:�t|t�stS||k(S)z@True if any counts disagree. Missing counts are treated as zero.�r�rr�r�s  rr�zCounter.__ne__s���%��)�!�!��5�=� � r%c�`���t�t�stSt��fd���fD��S)z:True if all counts in self are a subset of those in other.c3�B�K�|]}|D]}�|�|k����y�wrr$rs   ��rr�z!Counter.__le__.<locals>.<genexpr>#r"r#r$r�s``r�__le__zCounter.__le__r%r%c�F�t|t�stS||kxr||k7S)zATrue if all counts in self are a proper subset of those in other.r'r�s  r�__lt__zCounter.__lt__%�%���%��)�!�!��u�}�.����.r%c�`���t�t�stSt��fd���fD��S)z<True if all counts in self are a superset of those in other.c3�B�K�|]}|D]}�|�|k\����y�wrr$rs   ��rr�z!Counter.__ge__.<locals>.<genexpr>/r"r#r$r�s``r�__ge__zCounter.__ge__+r%r%c�F�t|t�stS||k\xr||k7S)zCTrue if all counts in self are a proper superset of those in other.r'r�s  r�__gt__zCounter.__gt__1r-r%c���t|t�stSt�}|j�D]\}}|||z}|dkDs�|||<�|j�D]\}}||vs�|dkDs�|||<�|S)zAdd counts from two counters.

        >>> Counter('abbb') + Counter('bcc')
        Counter({'b': 4, 'c': 2, 'a': 1})

        r�r�rr�ro�rrBrvr�r�newcounts      r�__add__zCounter.__add__7s����%��)�!�!�����:�:�<�	(�K�D�%��u�T�{�*�H��!�|�'��t��	(�!�;�;�=�	%�K�D�%��4��E�A�I�$��t��	%��
r%c���t|t�stSt�}|j�D]\}}|||z
}|dkDs�|||<�|j�D]\}}||vs�|dks�d|z
||<�|S)z� Subtract count, but keep only results with positive counts.

        >>> Counter('abbbc') - Counter('bccd')
        Counter({'b': 2, 'a': 1})

        rr4r5s      r�__sub__zCounter.__sub__Js����%��)�!�!�����:�:�<�	(�K�D�%��u�T�{�*�H��!�|�'��t��	(�!�;�;�=�	)�K�D�%��4��E�A�I� �5�y��t��	)��
r%c��t|t�stSt�}|j�D]\}}||}||kr|n|}|dkDs�|||<� |j�D]\}}||vs�|dkDs�|||<�|S)z�Union is the maximum of value in either of the input counters.

        >>> Counter('abbb') | Counter('bcc')
        Counter({'b': 3, 'c': 2, 'a': 1})

        rr4�rrBrvr�r�other_countr6s       rr�zCounter.__or__]s����%��)�!�!�����:�:�<�	(�K�D�%���+�K�&+�k�&9�{�u�H��!�|�'��t��		(�
!�;�;�=�	%�K�D�%��4��E�A�I�$��t��	%��
r%c��t|t�stSt�}|j�D]\}}||}||kr|n|}|dkDs�|||<� |S)z� Intersection is the minimum of corresponding counts.

        >>> Counter('abbb') & Counter('bcc')
        Counter({'b': 1})

        rr4r;s       r�__and__zCounter.__and__qsb���%��)�!�!�����:�:�<�	(�K�D�%���+�K� %�� 3�u��H��!�|�'��t��		(�
�
r%c�`�t�}|j�D]\}}|dkDs�|||<�|S)zEAdds an empty counter, effectively stripping negative and zero countsr�rro�rrvr�rs    r�__pos__zCounter.__pos__�s9������:�:�<�	%�K�D�%��q�y�$��t��	%��
r%c�f�t�}|j�D]\}}|dks�d|z
||<�|S)z{Subtracts from an empty counter.  Strips positive and zero counts,
        and flips the sign on negative counts.

        rr@rAs    r�__neg__zCounter.__neg__�s?��
����:�:�<�	)�K�D�%��q�y� �5�y��t��	)��
r%c�v�|j�D��cgc]
\}}|dkDr�|��}}}|D]}||=�|Scc}}w)z?Internal method to strip elements with a negative or zero countr)ro)rr�r�nonpositives    r�_keep_positivezCounter._keep_positive�sF��/3�z�z�|�M���e�5�1�9�t�M��M��	�D��T�
�	����Ns�
5�5c�l�|j�D]\}}||xx|z
cc<�|j�S)z�Inplace add from another counter, keeping only positive counts.

        >>> c = Counter('abbb')
        >>> c += Counter('bcc')
        >>> c
        Counter({'b': 4, 'c': 2, 'a': 1})

        �rorG�rrBr�rs    r�__iadd__zCounter.__iadd__��:��!�;�;�=�	 �K�D�%���J�%��J�	 ��"�"�$�$r%c�l�|j�D]\}}||xx|zcc<�|j�S)z�Inplace subtract counter, but keep only results with positive counts.

        >>> c = Counter('abbbc')
        >>> c -= Counter('bccd')
        >>> c
        Counter({'b': 2, 'a': 1})

        rIrJs    r�__isub__zCounter.__isub__�rLr%c�r�|j�D]\}}||}||kDs�|||<�|j�S)z�Inplace union is the maximum of value from either counter.

        >>> c = Counter('abbb')
        >>> c |= Counter('bcc')
        >>> c
        Counter({'b': 3, 'c': 2, 'a': 1})

        rI)rrBr�r<rs     rr�zCounter.__ior__�sI��"'����	)��D�+���J�E��U�"�(��T�
�	)��"�"�$�$r%c�r�|j�D]\}}||}||ks�|||<�|j�S)z�Inplace intersection is the minimum of corresponding counts.

        >>> c = Counter('abbb')
        >>> c &= Counter('bcc')
        >>> c
        Counter({'b': 1})

        rI)rrBr�rr<s     r�__iand__zCounter.__iand__�sH�� �:�:�<�	)�K�D�%���+�K��U�"�(��T�
�	)��"�"�$�$r%r)#r!r"r#r�rCr�rrrr�r�r�rr�r�rPrr�r�r*r,r0r2r7r9r�r>rBrDrGrKrNr�rQ�
__classcell__r�s@rrr s����*�d&��
"�C� E�.�	P��	P� �D �6$�-�&�
	3�ZJ�!�J�/�J�/��&�&�(�"�	��%�%�
%�
%r%rc��eZdZdZd�Zd�Zd�Zdd�Zd�Zd�Z	d	�Z
d
�Ze�d��Z
ed��Zd
�ZeZdd�Zed��Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)ra� A ChainMap groups multiple dicts (or other mappings) together
    to create a single, updateable view.

    The underlying mappings are stored in a list.  That list is public and can
    be accessed or updated using the *maps* attribute.  There is no other
    state.

    Lookups search the underlying mappings successively until a key is found.
    In contrast, writes, updates, and deletions only operate on the first
    mapping.

    c�.�t|�xsig|_y)z�Initialize a ChainMap by setting *maps* to the given mappings.
        If no mappings are provided, a single empty dictionary is used.

        N)r��maps)rrUs  rrCzChainMap.__init__�s��
��J�&�2�$��	r%c��t|��r)r[r)s  rr�zChainMap.__missing__�s���s�m�r%c�r�|jD]	}	||cS|j|�S#t$rY�(wxYwr)rUr[r�)rr*r�s   r�__getitem__zChainMap.__getitem__�sK���y�y�	�G�
��s�|�#�	�
����$�$���
��
�s�*�	6�6Nc��||vr||S|Srr$rxs   rr�zChainMap.get�s���4�K�t�C�y�4�W�4r%c�V�tt�j|j��Sr)rfr��unionrUrs r�__len__zChainMap.__len__�s���;�3�5�;�;��	�	�*�+�+r%c��i}ttjt|j��D]}||z}�	t|�Sr)r�r6r�rrUr�)rrr�s   rrTzChainMap.__iter__�s<�����4�=�=�(�4�9�9�*=�>�	�G�
��L�A�	��A�w�r%c�@��t�fd�|jD��S)Nc3�&�K�|]}�|v���
y�wrr$)r��mr*s  �rr�z(ChainMap.__contains__.<locals>.<genexpr>s�����/��3�!�8�/�s���anyrUr)s `r�__contains__zChainMap.__contains__s����/�T�Y�Y�/�/�/r%c�,�t|j�Srrars r�__bool__zChainMap.__bool__����4�9�9�~�r%c��|jj�ddjtt|j
���d�S)Nr|r�r})r~r!r�r��reprrUrs rrzChainMap.__repr__s5���.�.�)�)�*�!�D�I�I�c�$��	�	�6J�,K�+L�A�N�Nr%c�:�|tj|g|����S)z?Create a ChainMap with a single dict created from the iterable.)r6r�)r<r�r=s   rr�zChainMap.fromkeyss���4�=�=��1�D�1�2�2r%c�x�|j|jdj�g|jdd���S)zHNew ChainMap or subclass with a new copy of maps[0] and refs to maps[1:]rrbN)r~rUr�rs rr�z
ChainMap.copys3���t�~�~�d�i�i��l�/�/�1�B�D�I�I�a�b�M�B�Br%c�l�|�|}n|r|j|�|j|g|j���S)z�New ChainMap with a new map followed by all previous maps.
        If no map is provided, an empty dict is used.
        Keyword arguments update the map or new empty dict.
        )r�r~rU)rr`�kwargss   r�	new_childzChainMap.new_childs7��

�9��A�
�
�H�H�V���t�~�~�a�,�$�)�)�,�,r%c�:�|j|jdd�S)zNew ChainMap from maps[1:].rbN)r~rUrs r�parentszChainMap.parents%s���t�~�~�t�y�y���}�-�-r%c�(�||jd|<y�Nr)rU)rr*rEs   rrJzChainMap.__setitem__*s��!��	�	�!��S�r%c�\�	|jd|=y#t$rtd|����wxYw)Nr�$Key not found in the first mapping: )rUr[r)s  rrPzChainMap.__delitem__-s<��	K��	�	�!��S�!���	K��A�#��I�J�J�	K�s��+c�n�	|jdj�S#t$rtd��wxYw)zPRemove and return an item pair from maps[0]. Raise KeyError is maps[0] is empty.rz#No keys found in the first mapping.)rUr\r[rs rr\zChainMap.popitem3s<��	B��9�9�Q�<�'�'�)�)���	B��@�A�A�	B�s��4c�z�	|jdj|g|���S#t$rtd|����wxYw)zWRemove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].rrs)rUrLr[)rr*r=s   rrLzChainMap.pop:sL��	K�#�4�9�9�Q�<�#�#�C�/�$�/�/���	K��A�#��I�J�J�	K�s�"�:c�>�|jdj�y)z'Clear maps[0], leaving maps[1:] intact.rN)rUrYrs rrYzChainMap.clearAs���	�	�!����r%c�B�|jdj|�|Srq)rUr�r�s  rr�zChainMap.__ior__Es���	�	�!����E�"��r%c��t|tj�stS|j	�}|j
dj
|�|Srq)r�r�rr�r�rUr�)rrBr`s   rr�zChainMap.__or__Is?���%�!1�!9�!9�:�!�!��I�I�K��	���q�	������r%c���t|tj�stSt	|�}t|j�D]}|j|��|j|�Sr)	r�r�rr�r6rrUr�r~)rrBr`�childs    rr�zChainMap.__ror__PsT���%�!1�!9�!9�:�!�!���K���d�i�i�(�	�E�
�H�H�U�O�	��~�~�a� � r%r)r!r"r#r�rCr�rXr�r\rTrcrer�rr�r�r��__copy__rmr�rorJrPr\rLrYr�r�r�r$r%rrr�s����'��%�5�,��0����O��O��3��3�C��H�	-��.��.�"�K�B�K����!r%rc�v�eZdZdd�Zd�Zd�Zd�Zd�Zd�Zd�Z	dd	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zedd��Zy)rNc�`�i|_|�|j|�|r|j|�yyr)�datar�)rr6rls   rrCzUserDict.__init__`s/����	����K�K�����K�K���r%c�,�t|j�Sr�rfr~rs rr\zUserDict.__len__grfr%c��||jvr|j|St|jd�r|jj||�St	|��)Nr�)r~�hasattrr~r�r[r)s  rrXzUserDict.__getitem__jsK���$�)�)���9�9�S�>�!��4�>�>�=�1��>�>�-�-�d�C�8�8��s�m�r%c�"�||j|<yr�r~)rr*�items   rrJzUserDict.__setitem__qs����	�	�#�r%c��|j|=yrr�r)s  rrPzUserDict.__delitem__ts
���I�I�c�Nr%c�,�t|j�Sr)r�r~rs rrTzUserDict.__iter__w����D�I�I��r%c��||jvSrr�r)s  rrczUserDict.__contains__|s���d�i�i��r%c��||vr||S|Srr$rxs   rr�zUserDict.gets���$�;���9���r%c�,�t|j�Sr�rhr~rs rrzUserDict.__repr__�r�r%c���t|t�r(|j|j|jz�St|t�r|j|j|z�St
Sr�r�rr~r~r6r�r�s  rr�zUserDict.__or__�sP���e�X�&��>�>�$�)�)�e�j�j�"8�9�9��e�T�"��>�>�$�)�)�e�"3�4�4��r%c���t|t�r(|j|j|jz�St|t�r|j||jz�St
Srr�r�s  rr�zUserDict.__ror__�sP���e�X�&��>�>�%�*�*�t�y�y�"8�9�9��e�T�"��>�>�%�$�)�)�"3�4�4��r%c��t|t�r!|xj|jzc_|S|xj|zc_|Sr)r�rr~r�s  rr�zUserDict.__ior__�s:���e�X�&��I�I����#�I���
�I�I���I��r%c���|jj|j�}|jj|j�|jdj	�|jd<|S�Nr~)r~r7rgr�r��r�insts  rr{zUserDict.__copy__�sU���~�~�%�%�d�n�n�5���
�
���T�]�]�+� $�
�
�f� 5� :� :� <��
�
�f���r%c�
�|jtur#t|jj��Sddl}|j}	i|_|j|�}||_|j	|�|S#||_wxYwrq)r~rr~r�r�)rr�r~r s    rr�z
UserDict.copy�sk���>�>�X�%��D�I�I�N�N�,�-�-���y�y��	��D�I��	�	�$��A��D�I�	���������D�I�s�A9�9	Bc�,�|�}|D]}|||<�	|Srr$)r<r�rErr*s     rr�zUserDict.fromkeys�s&���E���	�C��A�c�F�	��r%r)r!r"r#rCr\rXrJrPrTrcr�rr�r�r�r{r�r�r�r$r%rrr]s\�� ������
 �����������r%rc���eZdZdZd!d�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�ZeZd�Zd�Zd�Zd�Zd"d�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"y)#rzAA more or less complete user-defined wrapper around list objects.Nc���g|_|�ot|�t|j�k(r||jddyt|t�r|jdd|jddyt	|�|_yyr)r~r�r�rr�)r�initlists  rrCzUserList.__init__�s`����	����H�~��d�i�i��0�'��	�	�!���H�h�/�'�}�}�Q�/��	�	�!�� ��N��	� r%c�,�t|j�Srr�rs rrzUserList.__repr__�r�r%c�>�|j|j|�kSr�r~�_UserList__castr�s  rr,zUserList.__lt__�����y�y�4�;�;�u�-�-�-r%c�>�|j|j|�kSrr�r�s  rr*zUserList.__le__�����y�y�D�K�K��.�.�.r%c�>�|j|j|�k(Srr�r�s  rr�zUserList.__eq__�r�r%c�>�|j|j|�kDSrr�r�s  rr2zUserList.__gt__�r�r%c�>�|j|j|�k\Srr�r�s  rr0zUserList.__ge__�r�r%c�>�t|t�r|jS|Sr)r�rr~r�s  r�__castzUserList.__cast�s��'��x�8�u�z�z�C�e�Cr%c��||jvSrr��rr�s  rrczUserList.__contains__�s���t�y�y� � r%c�,�t|j�Srr�rs rr\zUserList.__len__�rfr%c�|�t|t�r|j|j|�S|j|Sr)r��slicer~r~�r�is  rrXzUserList.__getitem__�s1���a����>�>�$�)�)�A�,�/�/��9�9�Q�<�r%c�"�||j|<yrr��rr�r�s   rrJzUserList.__setitem__�s����	�	�!�r%c��|j|=yrr�r�s  rrPzUserList.__delitem__�s
���I�I�a�Lr%c�:�t|t�r(|j|j|jz�St|t	|j��r|j|j|z�S|j|jt|�z�Sr�r�rr~r~r�r�r�s  rr7zUserList.__add__�sn���e�X�&��>�>�$�)�)�e�j�j�"8�9�9�
��t�D�I�I��
/��>�>�$�)�)�e�"3�4�4��~�~�d�i�i�$�u�+�5�6�6r%c�:�t|t�r(|j|j|jz�St|t	|j��r|j||jz�S|jt|�|jz�Srr�r�s  r�__radd__zUserList.__radd__�sn���e�X�&��>�>�%�*�*�t�y�y�"8�9�9�
��t�D�I�I��
/��>�>�%�$�)�)�"3�4�4��~�~�d�5�k�D�I�I�5�6�6r%c��t|t�r!|xj|jz
c_|St|t|j��r|xj|z
c_|S|xjt	|�z
c_|Sr)r�rr~r�r�r�s  rrKzUserList.__iadd__sg���e�X�&��I�I����#�I�
��	��t�D�I�I��
/��I�I���I���
�I�I��e��$�I��r%c�>�|j|j|z�Sr�r~r~�rris  r�__mul__zUserList.__mul__
����~�~�d�i�i�!�m�,�,r%c�0�|xj|zc_|Srr�r�s  r�__imul__zUserList.__imul__s���	�	�Q��	��r%c���|jj|j�}|jj|j�|jddd|jd<|Sr�)r~r7rgr�r�s  rr{zUserList.__copy__sQ���~�~�%�%�d�n�n�5���
�
���T�]�]�+� $�
�
�f� 5�a� 8��
�
�f���r%c�:�|jj|�yr)r~�appendr�s  rr�zUserList.append����	�	����r%c�<�|jj||�yr)r~�insertr�s   rr�zUserList.inserts���	�	����D�!r%c�8�|jj|�Sr)r~rLr�s  rrLzUserList.pop s���y�y�}�}�Q��r%c�:�|jj|�yr)r~�remover�s  rr�zUserList.remove#r�r%c�8�|jj�yr)r~rYrs rrYzUserList.clear&s���	�	���r%c�$�|j|�Srr�rs rr�z
UserList.copy)s���~�~�d�#�#r%c�8�|jj|�Sr)r~rr�s  rrzUserList.count,s���y�y���t�$�$r%c�<�|jj|g|���Sr�r~r�)rr�r=s   rr�zUserList.index/s���t�y�y���t�+�d�+�+r%c�8�|jj�yr)r~rrs rrzUserList.reverse2s���	�	���r%c�<�|jj|i|��yr)r~�sort�rr=r>s   rr�z
UserList.sort5s����	�	����%��%r%c��t|t�r&|jj|j�y|jj|�yr)r�rr~�extendr�s  rr�zUserList.extend8s4���e�X�&��I�I���U�Z�Z�(��I�I���U�#r%r����)#r!r"r#r�rCrr,r*r�r2r0r�rcr\rXrJrPr7r�rKr��__rmul__r�r{r�r�rLr�rYr�rr�rr�r�r$r%rrr�s���K�	+��.�/�/�.�/�D�!�� ���7�7��-��H����"� ���$�%�,��&�$r%rc��eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�ZeZd�Zd�Zd�Zd�Zd�Zdej:fd�Zd�Zd�Z dFd�Z!dej:fd�Z"dGd�Z#dej:fd �Z$d!�Z%d"�Z&dej:fd#�Z'd$�Z(d%�Z)d&�Z*d'�Z+d(�Z,d)�Z-d*�Z.d+�Z/d,�Z0d-�Z1d.�Z2d/�Z3d0�Z4d1�Z5d2�Z6dHd4�Z7e8jrZ9d5�Z:dId6�Z;dej:fd7�Z<dej:fd8�Z=d9�Z>d:�Z?dHd;�Z@dJd<�ZAdJd=�ZBdKd>�ZCdej:fd?�ZDdHd@�ZEdA�ZFdB�ZGdC�ZHdD�ZIdE�ZJy3)Lrc��t|t�r||_yt|t�r|jdd|_yt|�|_yr)r�r�r~r�r�seqs  rrCzUserString.__init__Es7���c�3���D�I�
��Z�
(������D�I��C��D�Ir%c�,�t|j�Sr)r�r~rs r�__str__zUserString.__str__Mrfr%c�,�t|j�Srr�rs rrzUserString.__repr__Pr�r%c�,�t|j�Sr)�intr~rs r�__int__zUserString.__int__Srfr%c�,�t|j�Sr)�floatr~rs r�	__float__zUserString.__float__Vs���T�Y�Y��r%c�,�t|j�Sr)�complexr~rs r�__complex__zUserString.__complex__Ys���t�y�y�!�!r%c�,�t|j�Sr)�hashr~rs r�__hash__zUserString.__hash__\r�r%c�"�|jddfSrr�rs rr�zUserString.__getnewargs___s���	�	�!���r%c�r�t|t�r|j|jk(S|j|k(Sr�r�rr~�r�strings  rr�zUserString.__eq__b�.���f�j�)��9�9����+�+��y�y�F�"�"r%c�r�t|t�r|j|jkS|j|kSrr�r�s  rr,zUserString.__lt__g�.���f�j�)��9�9�v�{�{�*�*��y�y�6�!�!r%c�r�t|t�r|j|jkS|j|kSrr�r�s  rr*zUserString.__le__lr�r%c�r�t|t�r|j|jkDS|j|kDSrr�r�s  rr2zUserString.__gt__qr�r%c�r�t|t�r|j|jk\S|j|k\Srr�r�s  rr0zUserString.__ge__vr�r%c�V�t|t�r|j}||jvSrr�)r�chars  rrczUserString.__contains__{s$���d�J�'��9�9�D��t�y�y� � r%c�,�t|j�Srr�rs rr\zUserString.__len__�rfr%c�>�|j|j|�Srr�)rr�s  rrXzUserString.__getitem__�s���~�~�d�i�i��.�/�/r%c��t|t�r(|j|j|jz�St|t�r|j|j|z�S|j|jt	|�z�Sr)r�rr~r~r�r�s  rr7zUserString.__add__�sf���e�Z�(��>�>�$�)�)�e�j�j�"8�9�9�
��s�
#��>�>�$�)�)�e�"3�4�4��~�~�d�i�i�#�e�*�4�5�5r%c��t|t�r|j||jz�S|jt|�|jz�Sr)r�r�r~r~r�s  rr�zUserString.__radd__�s@���e�S�!��>�>�%�$�)�)�"3�4�4��~�~�c�%�j�4�9�9�4�5�5r%c�>�|j|j|z�Srr�r�s  rr�zUserString.__mul__�r�r%c�>�|j|j|z�Srr��rr=s  r�__mod__zUserString.__mod__�s���~�~�d�i�i�$�.�/�/r%c�<�|jt|�|z�Sr)r~r�)r�templates  r�__rmod__zUserString.__rmod__�s���~�~�c�(�m�d�2�3�3r%c�T�|j|jj��Sr)r~r~�
capitalizers rr�zUserString.capitalize�s���~�~�d�i�i�2�2�4�5�5r%c�T�|j|jj��Sr)r~r~�casefoldrs rrzUserString.casefold�����~�~�d�i�i�0�0�2�3�3r%c�Z�|j|jj|g|����Sr)r~r~�center�r�widthr=s   rrzUserString.center�s(���~�~�.�d�i�i�.�.�u�<�t�<�=�=r%rc�t�t|t�r|j}|jj|||�Sr)r�rr~r�r�sub�start�ends    rrzUserString.count��,���c�:�&��(�(�C��y�y���s�E�3�/�/r%c��t|t�r|j}|j|jj	|��Sr)r�rr~r~�removeprefix)r�prefixs  rrzUserString.removeprefix��3���f�j�)��[�[�F��~�~�d�i�i�4�4�V�<�=�=r%c��t|t�r|j}|j|jj	|��Sr)r�rr~r~�removesuffix)r�suffixs  rrzUserString.removesuffix�rr%c�R�|�dn|}|�dn|}|jj||�S)N�utf-8�strict)r~�encode)r�encoding�errorss   rrzUserString.encode�s0��&�.�7�H��#�^�����y�y����&�1�1r%c�<�|jj|||�Sr)r~�endswith)rrr
rs    rrzUserString.endswith�s���y�y�!�!�&�%��5�5r%c�V�|j|jj|��Sr)r~r~�
expandtabs)r�tabsizes  rrzUserString.expandtabs�s ���~�~�d�i�i�2�2�7�;�<�<r%c�t�t|t�r|j}|jj|||�Sr)r�rr~�findrs    rr zUserString.find�s,���c�:�&��(�(�C��y�y�~�~�c�5�#�.�.r%c�:�|jj|i|��Sr)r~�formatr�s   rr"zUserString.format�s���t�y�y����.��.�.r%c�8�|jj|�Sr)r~�
format_map)rr�s  rr$zUserString.format_map�s���y�y�#�#�G�,�,r%c�<�|jj|||�Srr�rs    rr�zUserString.index�s���y�y���s�E�3�/�/r%c�6�|jj�Sr)r~�isalphars rr'zUserString.isalpha�����y�y� � �"�"r%c�6�|jj�Sr)r~�isalnumrs rr*zUserString.isalnum�r(r%c�6�|jj�Sr)r~�isasciirs rr,zUserString.isascii�r(r%c�6�|jj�Sr)r~�	isdecimalrs rr.zUserString.isdecimal�����y�y�"�"�$�$r%c�6�|jj�Sr)r~�isdigitrs rr1zUserString.isdigit�r(r%c�6�|jj�Sr)r~r�rs rr�zUserString.isidentifier�s���y�y�%�%�'�'r%c�6�|jj�Sr)r~�islowerrs rr4zUserString.islower�r(r%c�6�|jj�Sr)r~�	isnumericrs rr6zUserString.isnumeric�r/r%c�6�|jj�Sr)r~�isprintablers rr8zUserString.isprintable�s���y�y�$�$�&�&r%c�6�|jj�Sr)r~�isspacers rr:zUserString.isspace�r(r%c�6�|jj�Sr)r~�istitlers rr<zUserString.istitle�r(r%c�6�|jj�Sr)r~�isupperrs rr>zUserString.isupper�r(r%c�8�|jj|�Sr)r~r�r�s  rr�zUserString.join�s���y�y�~�~�c�"�"r%c�Z�|j|jj|g|����Sr)r~r~�ljustrs   rrAzUserString.ljust��%���~�~�o�d�i�i�o�o�e�;�d�;�<�<r%c�T�|j|jj��Sr)r~r~�lowerrs rrDzUserString.lower�����~�~�d�i�i�o�o�/�0�0r%Nc�V�|j|jj|��Sr)r~r~�lstrip�r�charss  rrGzUserString.lstrip�� ���~�~�d�i�i�.�.�u�5�6�6r%c�8�|jj|�Sr)r~�	partition�r�seps  rrLzUserString.partitions���y�y�"�"�3�'�'r%c���t|t�r|j}t|t�r|j}|j|jj	|||��Sr)r�rr~r~r�)r�oldr��maxsplits    rr�zUserString.replacesJ���c�:�&��(�(�C��c�:�&��(�(�C��~�~�d�i�i�/�/��S�(�C�D�Dr%c�t�t|t�r|j}|jj|||�Sr)r�rr~�rfindrs    rrSzUserString.rfindrr%c�<�|jj|||�Sr)r~�rindexrs    rrUzUserString.rindexs���y�y����U�C�0�0r%c�Z�|j|jj|g|����Sr)r~r~�rjustrs   rrWzUserString.rjustrBr%c�8�|jj|�Sr)r~�
rpartitionrMs  rrYzUserString.rpartitions���y�y�#�#�C�(�(r%c�V�|j|jj|��Sr)r~r~�rstriprHs  rr[zUserString.rstriprJr%c�:�|jj||�Sr)r~r��rrNrQs   rr�zUserString.splits���y�y���s�H�-�-r%c�:�|jj||�Sr)r~�rsplitr]s   rr_zUserString.rsplits���y�y����X�.�.r%c�8�|jj|�Sr)r~�
splitlines)r�keependss  rrazUserString.splitlines"s���y�y�#�#�H�-�-r%c�<�|jj|||�Sr)r~r�)rrr
rs    rr�zUserString.startswith%s���y�y�#�#�F�E�3�7�7r%c�V�|j|jj|��Sr)r~r~�striprHs  rrezUserString.strip(����~�~�d�i�i�o�o�e�4�5�5r%c�T�|j|jj��Sr)r~r~�swapcasers rrhzUserString.swapcase+rr%c�T�|j|jj��Sr)r~r~�titlers rrjzUserString.title.rEr%c�R�|j|jj|��Sr)r~r~�	translater�s  rrlzUserString.translate1s#���~�~�1�d�i�i�1�1�4�8�9�9r%c�T�|j|jj��Sr)r~r~�upperrs rrnzUserString.upper4rEr%c�V�|j|jj|��Sr)r~r~�zfill)rrs  rrpzUserString.zfill7rfr%)rr)�rr�)Nr�)F)Kr!r"r#rCr�rr�r�r�r�r�r�r,r*r2r0rcr\rXr7r�r�r�r�r�r�rrrd�maxsizerrrrrrr r"r$r�r'r*r,r.r1r�r4r6r8r:r<r>r�rArDrGr��	maketransrLr�rSrUrWrYr[r�r_rar�rerhrjrlrnrpr$r%rrrCs���!���� �"���#�
"�
#�
"�
#�
!�
�0�6�6�
-��H�0�4�6�4�>� !�d�l�l�0�
>�
>�
2�
&'�D�L�L�6�=� �T�\�\�/�
/�-� !�d�l�l�0�#�#�#�%�#�(�#�%�'�#�#�#�#�=�1�7��
�
�I�(�E� !�d�l�l�0�
!"�t�|�|�1�=�)�7�.�/�.�()�d�l�l�8�6�4�1�:�1�6r%r)5r��__all__r��sysrd�	itertoolsrr
r
r
rr�keywordrr��operatorrr�rr��reprlibrr��_weakrefrr9�_collectionsr	�MutableSequence�register�ImportErrorrr�KeysViewr�	ItemsViewr'�
ValuesViewr,r�r/r6rr�r
r�rr�rrr�Sequencerr$r%r�<module>r�s���� 
����%�'�)�+��.�5�$�5�"��$�$�-�-�e�4�	�,�	�(�+�+�4�4�+�
,�,�6�6�,�%�-�8�8�%�5�F�5�}�$�}�@	�(�L�)�16��T�k�d1�	�,�r%�d�r%�r
}!��.�.�}!�HZ��.�.�Z�B~$��/�/�~$�Ju6�!�*�*�u6��q(�	��	���	��	��
�	��	��|�	��	���L�K�L�L��z�	��	�sl�E�"E�)E�E%�E0�E>�E�E�E�E�E"�!E"�%E-�,E-�0E;�:E;�>F�F

Zerion Mini Shell 1.0