ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/uuid.cpython-311.opt-1.pyc

�

�f�k���dZddlZddlZddlmZmZdZejdvrdxZZ	nddlZej
��ZedkZedkZ	d	ZdZ
erd
ZdZ
gd�\ZZZZeZeZee��Gd
�d����ZGd�d��Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#	ddl$Z$e%e$dd��Z&e%e$dd��Z'e$j(Z)n#e*$rdZ$dZ&dZ'dZ)YnwxYwd�Z+d �Z,d!�Z-d"�Z.e	reegZ/n,ejd#kreee!gZ/nejd$krgZ/n
ere!gZ/neeee!e gZ/ej0d%kre,ge/zZ1nej0d&kre-ge/zZ1ne/Z1da2d'�Z3da4d0d(�Z5d)�Z6d*�Z7d+�Z8ed,��Z9ed-��Z:ed.��Z;ed/��Z<dS)1aQUUID objects (universally unique identifiers) according to RFC 4122.

This module provides immutable UUID objects (class UUID) and the functions
uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
UUIDs as specified in RFC 4122.

If all you want is a unique ID, you should probably call uuid1() or uuid4().
Note that uuid1() may compromise privacy since it creates a UUID containing
the computer's network address.  uuid4() creates a random UUID.

Typical usage:

    >>> import uuid

    # make a UUID based on the host ID and current time
    >>> uuid.uuid1()    # doctest: +SKIP
    UUID('a8098c1a-f86e-11da-bd1a-00112444be1e')

    # make a UUID using an MD5 hash of a namespace UUID and a name
    >>> uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')
    UUID('6fa459ea-ee8a-3ca4-894e-db77e160355e')

    # make a random UUID
    >>> uuid.uuid4()    # doctest: +SKIP
    UUID('16fd2706-8baf-433b-82eb-8c7fada847da')

    # make a UUID using a SHA-1 hash of a namespace UUID and a name
    >>> uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
    UUID('886313e1-3b8a-5372-9b90-0c9aee199e5d')

    # make a UUID from a string of hex digits (braces and hyphens ignored)
    >>> x = uuid.UUID('{00010203-0405-0607-0809-0a0b0c0d0e0f}')

    # convert a UUID to a string of hex digits in standard form
    >>> str(x)
    '00010203-0405-0607-0809-0a0b0c0d0e0f'

    # get the raw 16 bytes of the UUID
    >>> x.bytes
    b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f'

    # make a UUID from a 16-byte string
    >>> uuid.UUID(bytes=x.bytes)
    UUID('00010203-0405-0607-0809-0a0b0c0d0e0f')
�N)�Enum�_simple_enumzKa-Ping Yee <ping@zesty.ca>)�win32�darwinF�AIX�Linux�:�.T)zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionc��eZdZdZdZdZdS)�SafeUUIDr���N)�__name__�
__module__�__qualname__�safe�unsafe�unknown���+/opt/alt/python311/lib64/python3.11/uuid.pyrrNs�������D�
�F��G�G�Grrc���eZdZdZdZ		d!ejd�d�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Z ed���Z!ed���Z"ed ���Z#dS)"�UUIDa�	Instances of the UUID class represent UUIDs as specified in RFC 4122.
    UUID objects are immutable, hashable, and usable as dictionary keys.
    Converting a UUID to a string with str() yields something in the form
    '12345678-1234-1234-1234-123456789abc'.  The UUID constructor accepts
    five possible forms: a similar string of hexadecimal digits, or a tuple
    of six integer fields (with 32-bit, 16-bit, 16-bit, 8-bit, 8-bit, and
    48-bit values respectively) as an argument named 'fields', or a string
    of 16 bytes (with all the integer fields in big-endian order) as an
    argument named 'bytes', or a string of 16 bytes (with the first three
    fields in little-endian order) as an argument named 'bytes_le', or a
    single 128-bit integer as an argument named 'int'.

    UUIDs have these read-only attributes:

        bytes       the UUID as a 16-byte string (containing the six
                    integer fields in big-endian byte order)

        bytes_le    the UUID as a 16-byte string (with time_low, time_mid,
                    and time_hi_version in little-endian byte order)

        fields      a tuple of the six integer fields of the UUID,
                    which are also available as six individual attributes
                    and two derived attributes:

            time_low                the first 32 bits of the UUID
            time_mid                the next 16 bits of the UUID
            time_hi_version         the next 16 bits of the UUID
            clock_seq_hi_variant    the next 8 bits of the UUID
            clock_seq_low           the next 8 bits of the UUID
            node                    the last 48 bits of the UUID

            time                    the 60-bit timestamp
            clock_seq               the 14-bit sequence number

        hex         the UUID as a 32-character hexadecimal string

        int         the UUID as a 128-bit integer

        urn         the UUID as a URN as specified in RFC 4122

        variant     the UUID variant (one of the constants RESERVED_NCS,
                    RFC_4122, RESERVED_MICROSOFT, or RESERVED_FUTURE)

        version     the UUID version number (1 through 5, meaningful only
                    when the variant is RFC_4122)

        is_safe     An enum indicating whether the UUID has been generated in
                    a way that is safe for multiprocessing applications, via
                    uuid_generate_time_safe(3).
    )�int�is_safe�__weakref__N)rc��|||||g�d��dkrtd���|��|�dd���dd��}|�d���dd��}t	|��d	krtd
���t
|d��}|�Pt	|��dkrtd���|d
dd�|dd
d�z|ddd�z|dd�z}|�<t	|��dkrtd���t�|��}|��t	|��dkrtd���|\}}	}
}}}
d|cxkrdksntd���d|	cxkrdksntd���d|
cxkrdksntd���d|cxkrdksntd���d|cxkrdksntd���d|
cxkrdksntd���|dz|z}|d z|	d!zz|
d"zz|d#zz|
z}|�!d|cxkr	d$d%zksntd&���|�5d$|cxkrdksntd'���|d(z}|d)z}|d*z}||d+zz}t�	|d,|��t�	|d-|��dS).aLCreate a UUID from either a string of 32 hexadecimal digits,
        a string of 16 bytes as the 'bytes' argument, a string of 16 bytes
        in little-endian order as the 'bytes_le' argument, a tuple of six
        integers (32-bit time_low, 16-bit time_mid, 16-bit time_hi_version,
        8-bit clock_seq_hi_variant, 8-bit clock_seq_low, 48-bit node) as
        the 'fields' argument, or a single 128-bit integer as the 'int'
        argument.  When a string of hex digits is given, curly braces,
        hyphens, and a URN prefix are all optional.  For example, these
        expressions all yield the same UUID:

        UUID('{12345678-1234-5678-1234-567812345678}')
        UUID('12345678123456781234567812345678')
        UUID('urn:uuid:12345678-1234-5678-1234-567812345678')
        UUID(bytes='\x12\x34\x56\x78'*4)
        UUID(bytes_le='\x78\x56\x34\x12\x34\x12\x78\x56' +
                      '\x12\x34\x56\x78\x12\x34\x56\x78')
        UUID(fields=(0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678))
        UUID(int=0x12345678123456781234567812345678)

        Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
        be given.  The 'version' argument is optional; if given, the resulting
        UUID will have its variant and version set according to RFC 4122,
        overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.

        is_safe is an enum exposed as an attribute on the instance.  It
        indicates whether the UUID has been generated in a way that is safe
        for multiprocessing applications, via uuid_generate_time_safe(3).
        N�zGone of the hex, bytes, bytes_le, fields, or int arguments must be givenzurn:�zuuid:z{}�-� z$badly formed hexadecimal UUID string�z bytes_le is not a 16-char string�r
���zbytes is not a 16-char string�zfields is not a 6-tuplerlz*field 1 out of range (need a 32-bit value)iz*field 2 out of range (need a 16-bit value)z*field 3 out of range (need a 16-bit value)�z*field 4 out of range (need an 8-bit value)z*field 5 out of range (need an 8-bit value)�z*field 6 out of range (need a 48-bit value)�`�P�@�0��z*int is out of range (need a 128-bit value)zillegal version numberl�����l�����Lrr)
�count�	TypeError�replace�strip�len�
ValueError�int_�
from_bytes�object�__setattr__)�self�hex�bytes�bytes_le�fieldsr�versionr�time_low�time_mid�time_hi_version�clock_seq_hi_variant�
clock_seq_low�node�	clock_seqs               r�__init__z
UUID.__init__�s���@
���&�#�.�4�4�T�:�:�a�?�?��=�>�>�
>��?��+�+�f�b�)�)�1�1�'�2�>�>�C��)�)�D�/�/�)�)�#�r�2�2�C��3�x�x�2�~�~� �!G�H�H�H��s�B�-�-�C����8�}�}��"�"� �!C�D�D�D��c�g�2�g�&��#�c�"�*�)=�=��c�#�b�j�)�*�,4�Q�R�R�L�9�E����5�z�z�R��� �!@�A�A�A��/�/�%�(�(�C����6�{�{�a��� �!:�;�;�;�:@�
8�X�x��
!�=�$���(�(�(�(�5�(�(�(�(� �!M�N�N�N���(�(�(�(�5�(�(�(�(� �!M�N�N�N���/�/�/�/�%�/�/�/�/� �!M�N�N�N��,�3�3�3�3�t�3�3�3�3� �!M�N�N�N��
�,�,�,�,��,�,�,�,� �!M�N�N�N���$�$�$�$�u�$�$�$�$� �!M�N�N�N�-��2�m�C�I���N�x�2�~�6�#�r�)�+�.7�2�o�?�AE�F�C��?���$�$�$�$�a��f�$�$�$�$� �!M�N�N�N�����$�$�$�$�1�$�$�$�$� �!9�:�:�:��?�"�C��<��C��?�"�C��7�b�=� �C����4���,�,�,����4��G�4�4�4�4�4rc�`�d|ji}|jtjkr|jj|d<|S�Nrr)rrrr�value)r;�ds  r�__getstate__zUUID.__getstate__�s3��
�D�H����<�8�+�+�+� �<�-�A�i�L��rc���t�|d|d��t�|dd|vrt|d��ntj��dSrJ)r9r:rr)r;�states  r�__setstate__zUUID.__setstate__�so�����4���e��5�5�5����4��'�5�0�0�$�E�)�$4�5�5�5�6>�6F�	H�	H�	H�	H�	Hrc�Z�t|t��r|j|jkStS�N��
isinstancerr�NotImplemented�r;�others  r�__eq__zUUID.__eq__��)���e�T�"�"�	)��8�u�y�(�(��rc�Z�t|t��r|j|jkStSrRrSrVs  r�__lt__zUUID.__lt__��)���e�T�"�"�	(��8�e�i�'�'��rc�Z�t|t��r|j|jkStSrRrSrVs  r�__gt__zUUID.__gt__�r\rc�Z�t|t��r|j|jkStSrRrSrVs  r�__le__zUUID.__le__rYrc�Z�t|t��r|j|jkStSrRrSrVs  r�__ge__zUUID.__ge__rYrc�*�t|j��SrR)�hashr�r;s r�__hash__z
UUID.__hash__s���D�H�~�~�rc��|jSrR�rres r�__int__zUUID.__int__s	���x�rc�@�|jj�dt|���d�S)N�(�))�	__class__r�strres r�__repr__z
UUID.__repr__s"���>�2�2�2�C��I�I�I�I�>�>rc� �td���)NzUUID objects are immutable)r2)r;�namerKs   rr:zUUID.__setattr__s���4�5�5�5rc��d|jz}|dd��d|dd��d|dd��d|dd��d|dd���	S)N�%032xr%r�r!�rh)r;r<s  r�__str__zUUID.__str__s_����� ������G�G�G�S��2��Y�Y�Y��B�r�E�
�
�
�C��2��J�J�J��B�C�C���B�	Brc�6�|j�d��S)Nr!)r�to_bytesres rr=z
UUID.bytess���x� � ��$�$�$rc�l�|j}|ddd�|ddd�z|ddd�z|dd�zS)Nr"r
r#r$r%�r=)r;r=s  rr>z
UUID.bytes_le!sK���
���c�g�2�g���s�3�r�z�!2�2�U�3�s�2�:�5F�F��a�b�b�	��	rc�N�|j|j|j|j|j|jfSrR)rArBrCrDrErFres rr?zUUID.fields's+���
�t�}�d�.B��)�4�+=�t�y�J�	Jrc��|jdz	S)Nr)rhres rrAz
UUID.time_low,s���x�2�~�rc��|jdz	dzS)Nr*�rhres rrBz
UUID.time_mid0�����B��&�(�(rc��|jdz	dzS)Nr+r~rhres rrCzUUID.time_hi_version4rrc��|jdz	dzS)N�8�rhres rrDzUUID.clock_seq_hi_variant8�����B��$�&�&rc��|jdz	dzS)Nr,r�rhres rrEzUUID.clock_seq_low<r�rc�B�|jdzdz|jdzz|jzS)N�r,r )rCrBrAres r�timez	UUID.time@s0���&��/�B�6���"�$�&�(,�
�6�	7rc�,�|jdzdz|jzS)N�?r%)rDrEres rrGzUUID.clock_seqEs"���+�d�2�q�8��"�#�	$rc��|jdzS)Nl���rhres rrFz	UUID.nodeJs���x�.�(�(rc��d|jzS)Nrsrhres rr<zUUID.hexNs�����!�!rc�&�dt|��zS)Nz	urn:uuid:)rnres r�urnzUUID.urnRs���S��Y�Y�&�&rc�v�|jdzstS|jdzstS|jdzstStS)Nr/ll)r�RESERVED_NCS�RFC_4122�RESERVED_MICROSOFT�RESERVED_FUTUREres r�variantzUUID.variantVsF���x�<�(�	#�����\�*�	#��O���\�*�	#�%�%�"�"rc�Z�|jtkrt|jdz	dz��SdS)Nr0�)r�r�rres rr@zUUID.versionas2���<�8�#�#����B��#�-�.�.�.�$�#r)NNNNNN)$rrr�__doc__�	__slots__rrrHrMrPrXr[r^r`rbrfriror:rv�propertyr=r>r?rArBrCrDrEr�rGrFr<r�r�r@rrrrrUs�������1�1�f2�I�CG�)-�T5�"*�"2�T5�T5�T5�T5�T5�l���H�H�H�������
���
���
���
������?�?�?�6�6�6�B�B�B�
�%�%��X�%�����X��
�J�J��X�J�����X���)�)��X�)��)�)��X�)��'�'��X�'��'�'��X�'��7�7��X�7��$�$��X�$��)�)��X�)��"�"��X�"��'�'��X�'��#�#��X�#��/�/��X�/�/�/rrc�P�ddl}ddl}ddl}ddl}	|j�d|j���|j��}|�	ddg��|�
||j�|�����}|�dSt|j��}d|d<|dkr|g|�R}n|f}|�
||j|j|�	��}	|	sdS|	���\}
}|�|
��S#t$|jf$rYdSwxYw)
Nr�PATHz/sbinz	/usr/sbin)�path�C�LC_ALL)r)�stdout�stderr�env)�io�os�shutil�
subprocess�environ�get�defpath�split�pathsep�extend�which�join�dict�Popen�PIPE�DEVNULL�communicate�BytesIO�OSError�SubprocessError)�command�argsr�r�r�r��	path_dirs�
executabler��procr�r�s            r�_get_command_stdoutr�hsk��%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%���J�N�N�6�2�:�6�6�<�<�R�Z�H�H�	����'�;�/�0�0�0��\�\�'��
���	�0J�0J�\�K�K�
����4��2�:������H�
��5�=�=�!�)�D�)�)�G�G�!�m�G�����'1��'1�'9�$'� �)�)���	��4��)�)�+�+�����z�z�&�!�!�!���Z�/�0�����t�t����s�BD�AD�$+D�D%�$D%c��|dzS)Nlr��macs r�
_is_universalr��s���w�� � rc���t||��}|�dSd}|D]�}|���������}t	t|����D]x}|||vrl	|||��}	t
|	�td��d��}
t|
��r|
ccS|p|
}�a#ttf$rY�twxYw�y��|pdS)a�Searches a command's output for a MAC address near a keyword.

    Each line of words in the output is case-insensitively searched for
    any of the given keywords.  Upon a match, get_word_index is invoked
    to pick a word from the line, given the index of the match.  For
    example, lambda i: 0 would get the first word on the line, while
    lambda i: i - 1 would get the word preceding the keyword.
    Nrr!)r��lower�rstripr��ranger5rr3�
_MAC_DELIMr�r6�
IndexError)r�r��keywords�get_word_indexr��first_local_mac�line�words�i�wordr�s           r�_find_mac_near_keywordr��s#��!��$�
/�
/�F�
�~��t��O��=�=���
�
���#�#�%�%�+�+�-�-���s�5�z�z�"�"�	=�	=�A��Q�x�8�#�#�
=� ����!2�!2�3�D��d�l�l�:�s�;�;�R�@�@�C�%�S�)�)�#�"�
�
�
�
�
�&5�&<��O�O��#�J�/�����D�
����	$�	=� �"�d�"s�<:C�C$�#C$c��|�t��}t|��dkrdStr;t	d�|D����sdSd�d�|D����}n0t	d�|D����sdSd�|��}	t
|d��S#t$rYdSwxYw)Nr&c3�PK�|]!}dt|��cxkodkncV��"dS)r-�N�r5��.0�parts  r�	<genexpr>z_parse_mac.<locals>.<genexpr>�sD����9�9�4�1��D�	�	�&�&�&�&�Q�&�&�&�&�9�9�9�9�9�9rrc3�BK�|]}|�dd��V��dS)r��0N)�rjustr�s  rr�z_parse_mac.<locals>.<genexpr>�s0����@�@�$�$�*�*�Q��-�-�@�@�@�@�@�@rc3�<K�|]}t|��dkV��dS)r�Nr�r�s  rr�z_parse_mac.<locals>.<genexpr>�s,����4�4�d�3�t�9�9��>�4�4�4�4�4�4rr!)r�r�r5�_MAC_OMITS_LEADING_ZEROES�allr�rr6)r��parts�hexstrs   r�
_parse_macr��s���
�J�J�z�"�"�E�
�5�z�z�Q����� �!�
�9�9�5�9�9�9�9�9�	��F����@�@�%�@�@�@�@�@����4�4�e�4�4�4�4�4�	��F����%������6�2���������������s�#B3�3
C�Cc���t||��}|�dS|���������}	|�|��}n#t
$rYdSwxYwd}|D]k}|������}	||}	n#t$rY�>wxYwt|	��}
|
��Tt|
��r|
cS|�|
}�l|S)aLooks for a MAC address under a heading in a command's output.

    The first line of words in the output is searched for the given
    heading. Words at the same word index as the heading in subsequent
    lines are then examined to see if they look like MAC addresses.
    N)	r��readliner�r��indexr6r�r�r�)r�r��headingr�r��column_indexr�r�r�r�r�s           r�_find_mac_under_headingr��s ��!��$�
/�
/�F�
�~��t���� � �'�'�)�)�/�/�1�1�H���~�~�g�.�.���������t�t������O��
"�
"�����
�
�#�#�%�%��	���&�D�D���	�	�	��H�	����������;������	��J�J�J��"�!�O���s$�A$�$
A2�1A2�"B+�+
B8�7B8c�F�d}dD]}td||d���}|r|cS�dS)z5Get the hardware address on Unix by running ifconfig.)shwaddrsethersaddress:slladdr)rz-az-av�ifconfigc��|dzS�Nr-r�r�s r�<lambda>z#_ifconfig_getnode.<locals>.<lambda>s
��1�Q�3�rN�r�)r�r�r�s   r�_ifconfig_getnoder��sH��=�H�!����$�Z��x���O�O���	��J�J�J�	��4rc�6�tdddgd���}|r|SdS)z/Get the hardware address on Unix by running ip.�ip�links
link/etherc��|dzSr�rr�s rr�z_ip_getnode.<locals>.<lambda>s
��!�A�#�rNr�r�s r�_ip_getnoder�	s-��!��v�
��
�
�
N�
N�C�
���
��4rc��ddl}ddl}t|d��sdS	|�|�����}n#t
$rYdSwxYwt
dd|j|��gd���}|r|St
dd|j|��gd���}|r|St
dd|jd|z��gd	���}|r|SdS)
z0Get the hardware address on Unix by running arp.rN�
gethostbyname�arpz-anc��dS)Nr
rr�s rr�z_arp_getnode.<locals>.<lambda>s��QS�rc��|dzSr�rr�s rr�z_arp_getnode.<locals>.<lambda>!s
��QR�ST�QT�rz(%s)c��|dzS)Nr�rr�s rr�z_arp_getnode.<locals>.<lambda>'s
��a��c�r)r��socket�hasattrr��gethostnamer�r��fsencode)r�r��ip_addrr�s    r�_arp_getnoder�s#�����������6�?�+�+���t���&�&�v�'9�'9�';�';�<�<���������t�t�����!������G�0D�0D�/E�|�|�
T�
T�C�
���
�!������G�0D�0D�/E�}�}�
U�
U�C�
���
�!������F�W�<L�0M�0M�/N�!�M�#�#�C����
��4s�'A�
A�Ac�*�tdddgd���S)z4Get the hardware address on Unix by running lanscan.�lanscanz-aislan0c��dS)Nrrr�s rr�z"_lanscan_getnode.<locals>.<lambda>0s���rr�rrr�_lanscan_getnoder-s��"�)�U�W�I�{�{�K�K�Krc�$�tddd��S)z4Get the hardware address on Unix by running netstat.�netstatz-iansAddress)r�rrr�_netstat_getnoder2s��#�9�f�j�A�A�Arc��t��S�z1[DEPRECATED] Get the hardware address on Windows.��_windll_getnoderrr�_ipconfig_getnoder	7������rc��t��Srrrrr�_netbios_getnoder<r
r�generate_time_safe�
UuidCreatec��dS)z>[DEPRECATED] Platform-specific functions loaded at import timeNrrrr�_load_system_functionsrOs���rc�`�tr&t��\}}t|���jSdS)zBGet the hardware address on Unix using the _uuid extension module.rzN)�_generate_time_saferrF)�	uuid_time�_s  r�
_unix_getnoderSs7���*�*�,�,��	�1��)�$�$�$�)�)�*�*rc�Z�tr#t��}t|���jSdS)zEGet the hardware address on Windows using the _uuid extension module.)r>N)�_UuidCreaterrF)�
uuid_bytess rrrYs1���.� �]�]�
��Z�(�(�(�-�-�.�.rc�:�ddl}|�d��dzS)zGet a random node ID.rNr,l)�random�getrandbits)rs r�_random_getnoder_s&���M�M�M����b�!�!�W�-�-rrr�posix�ntc��t�tSttgzD]:}	|��an#Y�xYwt�dtcxkrdkrn�1tcS�;dS)a3Get the hardware address as a 48-bit positive integer.

    The first time this runs, it may launch a separate program, which could
    be quite slow.  If all attempts to obtain the hardware address fail, we
    choose a random 48-bit number with its eighth bit set to 1 as recommended
    in RFC 4122.
    Nrr()�_node�_GETTERSr)�getters r�getnoder#�s���
�����o�.�.����	��F�H�H�E�E��	��H������A��$:�$:�$:�$:�'�$:�$:�$:�$:�$:��L�L�L��
�s�
-�1c��t�Y||cxur�RnnOt��\}}	t|��}n#t$rtj}YnwxYwt	||���Sddl}|���}|dzdz}t�|tkr
tdz}|a|�ddl}|�	d��}|dz}	|d	z	d
z}
|dz	dz}|d
z}|dz	dz}
|�t��}t	|	|
||
||fd���S)aGenerate a UUID from a host ID, sequence number, and the current time.
    If 'node' is not given, getnode() is used to obtain the hardware
    address.  If 'clock_seq' is given, it is used as the sequence number;
    otherwise a random 14-bit sequence number is chosen.N)r=rr�dl@'Hw�
r-�l��r r~r,r�r�r%r�)r?r@)rrr6rrr��time_ns�_last_timestamprrr#)rFrGr�safely_generatedrr��nanoseconds�	timestamprrArBrCrErDs              r�uuid1r,�so���&�4�9�+D�+D�+D�+D�+D�+D�+D�+D�&9�&;�&;�#�	�#�	'��/�0�0�G�G���	'�	'�	'��&�G�G�G�	'�����)�W�5�5�5�5��K�K�K��,�,�.�.�K��s�"�%7�7�I��"�y�O�'C�'C�#�a�'�	��O����
�
�
��&�&�r�*�*�	��:�%�H��R��6�)�H� �B��&�0�O���$�M�%��N�d�2���|��y�y����(�O�,�m�T�C�LM�O�O�O�Os�4�A
�A
c��ddlm}||jt|d��zd������}t	|dd�d�	��S)
zAGenerate a UUID from the MD5 hash of a namespace UUID and a name.r)�md5�utf-8F)�usedforsecurityNr!r"�r=r@)�hashlibr.r=�digestr)�	namespacerqr.r3s    r�uuid3r5�sl��������
�S���%��g�.�.�.�����
�f�h�h���f�S�b�S�k�1�-�-�-�-rc�H�ttjd��d���S)zGenerate a random UUID.r!rr1)rr��urandomrrr�uuid4r8�s���b�j��n�n�a�0�0�0�0rc��ddlm}||jt|d��z�����}t	|dd�d���S)zCGenerate a UUID from the SHA-1 hash of a namespace UUID and a name.r)�sha1r/Nr!r#r1)r2r:r=r3r)r4rqr:rds    r�uuid5r;�s[���������4�	��%��g�"6�"6�6�7�7�>�>�@�@�D��d�3�B�3�i��+�+�+�+rz$6ba7b810-9dad-11d1-80b4-00c04fd430c8z$6ba7b811-9dad-11d1-80b4-00c04fd430c8z$6ba7b812-9dad-11d1-80b4-00c04fd430c8z$6ba7b814-9dad-11d1-80b4-00c04fd430c8)NN)=r�r��sys�enumrr�
__author__�platform�_AIX�_LINUX�system�_platform_systemr�r�r�r�r�r�rr7r=�bytes_rrr�r�r�r�r�r�r�r�rrr	r�_uuid�getattrrr�has_uuid_generate_time_safe�_has_uuid_generate_time_safe�ImportErrorrrrr�_OS_GETTERSrqr!r r#r(r,r5r8r;�
NAMESPACE_DNS�
NAMESPACE_URL�
NAMESPACE_OID�NAMESPACE_X500rrr�<module>rOs
��,�,�\
�	�	�	�
�
�
�
�#�#�#�#�#�#�#�#�+�
��<�&�&�&���D�6�6��O�O�O�&�x��(�(���5�(�D��7�*�F�
�
�!���%��J� $��?N�?N�?N�;��h�*�O���	����d�������������P/�P/�P/�P/�P/�P/�P/�P/�f���\!�!�!� #� #� #�F���8!�!�!�L���������8L�L�L�
B�B�B�
���
���	(��L�L�L�!�'�%�)=�t�D�D���'�%��t�4�4�K�#(�#D� � ���(�(�(��E����K�#'� � � �	(����I�I�I�*�*�*�.�.�.�
.�
.�
.�,
�7�� 1�2�K�K��\�X���$�l�4D�E�K�K��\�W����K�K�	�7�#�$�K�K�$�k�<�#�%5�7�K��7�g������,�H�H��W��_�_�� �;�.�H�H��H���O�O�O�,��$O�$O�$O�$O�L.�.�.�1�1�1�,�,�,���;�<�<�
���;�<�<�
���;�<�<�
���<�=�=���s�)%C�
C�C

Zerion Mini Shell 1.0