HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/__pycache__/bisect.cpython-311.pyc
�

��Vc���l�dZd	dd�d�Zd	dd�d�Zd	dd�d�Zd	dd�d�Z	ddlTn#e$rYnwxYweZeZdS)
zBisection algorithms.�N��keyc��|�t||||��}nt|||��|||���}|�||��dS)z�Insert item x in list a, and keep it sorted assuming a is sorted.

    If x is already in a, insert it to the right of the rightmost x.

    Optional args lo (default 0) and hi (default len(a)) bound the
    slice of a to be searched.
    Nr)�bisect_right�insert��a�x�lo�hirs     �D:\Python311\Lib\bisect.py�insort_rightrsV���6�
�!�Q��B�
'�
'���
�!�S�S��V�V�R���
5�
5�
5���H�H�R��O�O�O�O�O�c�
�|dkrtd���|�t|��}|�)||kr"||zdz}|||kr|}n|dz}||k�"n1||kr+||zdz}||||��kr|}n|dz}||k�+|S)a�Return the index where to insert item x in list a, assuming a is sorted.

    The return value i is such that all e in a[:i] have e <= x, and all e in
    a[i:] have e > x.  So if x already appears in the list, a.insert(i, x) will
    insert just after the rightmost x already there.

    Optional args lo (default 0) and hi (default len(a)) bound the
    slice of a to be searched.
    r�lo must be non-negativeN����
ValueError�len�r	r
rrr�mids      r
rrs���
�A�v�4��2�3�3�3�	��
��V�V���
��2�g�	���7�q�.�C��1�S�6�z�
�����1�W���2�g�	���2�g�	���7�q�.�C��3�3�q��v�;�;��
�����1�W���2�g�	��Irc��|�t||||��}nt|||��|||���}|�||��dS)z�Insert item x in list a, and keep it sorted assuming a is sorted.

    If x is already in a, insert it to the left of the leftmost x.

    Optional args lo (default 0) and hi (default len(a)) bound the
    slice of a to be searched.
    Nr)�bisect_leftrrs     r
�insort_leftr5sV���5�
��A�r�2�
&�
&���
��C�C��F�F�B���
4�
4�
4���H�H�R��O�O�O�O�Orc�
�|dkrtd���|�t|��}|�)||kr"||zdz}|||kr|dz}n|}||k�"n1||kr+||zdz}|||��|kr|dz}n|}||k�+|S)a�Return the index where to insert item x in list a, assuming a is sorted.

    The return value i is such that all e in a[:i] have e < x, and all e in
    a[i:] have e >= x.  So if x already appears in the list, a.insert(i, x) will
    insert just before the leftmost x already there.

    Optional args lo (default 0) and hi (default len(a)) bound the
    slice of a to be searched.
    rrNrrrrs      r
rrDs���
�A�v�4��2�3�3�3�	��
��V�V���
��2�g�	���7�q�.�C���v��z�
��1�W������2�g�	���2�g�	���7�q�.�C��s�1�S�6�{�{�Q��
��1�W������2�g�	��Ir)�*)rN)	�__doc__rrrr�_bisect�ImportError�bisect�insort�rr
�<module>r$s������T�������T������D
�D�
�
�
�
�
��D������F	��������	�	�	��D�	����
��	���s�%�-�-