�
I�g') � �� � d Z ddlZddlZddlZddlZddlZddlZddlZej Z G d� de
� � Z G d� de
� � Z G d� de � � Z
G d � d
e
� � Zdd
�ZdS )zb
Fast cryptographic hash of Python objects, with a special case for fast
hashing of numpy arrays.
� Nc � � e Zd ZdZd� ZdS )�_ConsistentSetza Class used to ensure the hash of Sets is preserved
whatever the order of its items.
c � � t |� � | _ d S # t t j f$ r" t d� |D � � � � | _ Y d S w xY w)Nc 3 �4 K � | ]}t |� � V � �d S �N��hash)�.0�es �^/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/joblib/hashing.py� <genexpr>z*_ConsistentSet.__init__.<locals>.<genexpr>% s( � � � �$C�$C��T�!�W�W�$C�$C�$C�$C�$C�$C� )�sorted� _sequence� TypeError�decimal�InvalidOperation)�self�set_sequences r �__init__z_ConsistentSet.__init__ sj � � E�
$�L�1�1�D�N�N�N���7�3�4� E� E� E� $�$C�$C�l�$C�$C�$C�D�D�D�N�N�N�N� E���s � �4A�AN��__name__�
__module__�__qualname__�__doc__r � r r r r s2 � � � � � �� �E� E� E� E� Er r c � � e Zd ZdZd� ZdS )�_MyHashz7 Class used to hash objects that won't normally pickle c � � || _ d S r )�args)r r s r r z_MyHash.__init__+ s
� ��� � � r Nr r r r r r ( s) � � � � � �A�A�� � � � r r c �( � e Zd ZdZdd�Zd
d�Zd� Zd� Zdej fd �Z
ej �
� � Ze
e ee� � <