� J��g�!���ddlZddlZddlZddlZddlZddlZddlZddlZddlZdZ d�Z e fd�Z dd�Z d�Zd�Zd �Zd �Zd �Zd �Zd �Zd�Zd�Zd�Zd�ZdS)�NzApyarrow.{} is deprecated as of {}, please use pyarrow.{} instead.c������fd�}|S)a� A decorator that takes docstring templates, concatenates them, and finally performs string substitution on them. This decorator will add a variable "_docstring_components" to the wrapped callable to keep track of the original docstring template for potential future use. If the docstring is a template, it will be saved as a string. Otherwise, it will be saved as a callable and the docstring will be obtained via the __doc__ attribute. This decorator cannot be used on Cython classes due to a CPython constraint, which enforces the __doc__ attribute to be read-only. See https://github.com/python/cpython/issues/91309 Parameters ---------- *docstrings : None, str, or callable The string / docstring / docstring template to be prepended in order before the default docstring under the callable. **params The key/value pairs used to format the docstring template. c���g}�D]a}|��t|d��r|�|j���0t|t��s|jr|�|���b|jr,|�tj|j�����fd�|D��}d� d�|D����|_||_|S)N�_docstring_componentsc�~��g|]9}t|t��r t���dkr |jdi���n|��:S)r�)� isinstance�str�len�format)�.0� component�paramss ��\/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/pyarrow/util.py� <listcomp>z*doc.<locals>.decorator.<locals>.<listcomp>Lsg��� � � ���)�S�)�)� �.1�&�k�k�A�o�o� �I� � &� &�v� &� &� &�� � � ��c�r�g|]4}t|t��r|ntj|jpd����5S)r)rr �textwrap�dedent�__doc__)r r s rrz*doc.<locals>.decorator.<locals>.<listcomp>TsR�� � � ���i��-�-�>� � ��_�Y�%6�%<�"�=�=� � � r) �hasattr�extendrrr r�appendrr�join)� decorated�docstring_components� docstring�params_applied� docstringsrs ��r� decoratorzdoc.<locals>.decorator:s0���!��$� 7� 7�I�� ���y�"9�:�:� 7�$�+�+��3������I�s�+�+� 7�y�/@� 7�$�+�+�I�6�6�6�� � � L� � '� '��� �8I�(J�(J� K� K� K� � � � �2�  � � ���G�G� � �"0�  � � � � � �� !� �'��rr)rrr s`` r�docr!$s+����,%�%�%�%�%�%�N �rc�R����t�|||������fd�}|S)Nc�>��tj�����|i|��S�N)�warnings�warn)�args�kwargs�api�msg�types ���r�wrapperz_deprecate_api.<locals>.wrappergs*���� �c�4� � � ��s�D�#�F�#�#�#r)� _DEPR_MSGr )�old_name�new_namer)� next_versionr+r,r*s ` ` @r�_deprecate_apir1dsF����� � � �8�\�8� <� <�C�$�$�$�$�$�$�$� �NrTc�R����G���fd�dt��}|��fi��S)zM Raise warning if a deprecated class is used in an isinstance check. c���eZdZ���fd�ZdS)�)_deprecate_class.<locals>._DeprecatedMetac���tjt����j��t d���t |���S)N�)� stacklevel)r%r&r-r �__name__� FutureWarningr)�self�other� new_classr0r.s ���r�__instancecheck__z;_deprecate_class.<locals>._DeprecatedMeta.__instancecheck__ssL��� �M�� � ��<��9K�L�L��� � � � � �e�Y�/�/� /rN)r8� __module__� __qualname__r=)r<r0r.s���r�_DeprecatedMetar4rs8������� 0� 0� 0� 0� 0� 0� 0� 0� 0rr@)r+)r.r<r0� instancecheckr@s``` r�_deprecate_classrBms[����� 0�0�0�0�0�0�0�0�0�$�0�0�0� �?�8�i�\�2� 6� 6�6rc�H� t|��dS#t$rYdSwxYw)NTF)�iter� TypeError)�objs r� _is_iterablerG~s9��� �S� � � ��t�� �����u�u����s �� !�!c�L�t|t��pt|d��S)N� __fspath__)rr r��paths r� _is_path_likerL�s!�� �d�C� � � ?�G�D�,�$?�$?�?rc� �t|t��rtj�|��S tj�|�����S#t $rYnwxYwtd���)zA Convert *path* to a string or unicode path if possible. znot a path-like object)rr �osrK� expanduserrI�AttributeErrorrErJs r�_stringify_pathrQ�s����$����(��w�!�!�$�'�'�'� ��w�!�!�$�/�/�"3�"3�4�4�4�� � � � � �� ���� �,� -� -�-s�0A'�' A4�3A4c�0�tjd�|d��S)z- Return a product of sequence items. c� �||zSr$r)�a�bs r�<lambda>zproduct.<locals>.<lambda>�s ���1��r�)� functools�reduce)�seqs r�productr[�s�� � �,�,�c�1� 5� 5�5rc�(�|sd}|t|��z}nxd}|}t|��D]<\}}|dkrdx}}n,||}|dkr |||dz zz }�+|dkr |||dz zz }�=||z |t|��zkrtd���||fS)z� Return a contiguous span of N-D array data. Parameters ---------- shape : tuple strides : tuple itemsize : int Specify array shape data Returns ------- start, end : int The span end points. rrWzarray data is non-contiguous)r[� enumerate� ValueError)�shape�strides�itemsize�start�end�i�dim�strides r�get_contiguous_spanrg�s��� �=��������'���������&�&� ,� ,�F�A�s��a�x�x��������Q�Z�F���z�z��v��q��)�)����!�����3��7�+�+��� ��;�(�W�U�^�^�3� 3� 3��;�<�<� <� �#�:�rc�d�tjtjtj��}tj|��5}|�d��|�tjtjd��|� ��dcddd��S#1swxYwYdS)N)rrrW) �socket�AF_INET� SOCK_STREAM� contextlib�closing�bind� setsockopt� SOL_SOCKET� SO_REUSEADDR� getsockname)�socks r�find_free_portrt�s��� �=����);� <� <�D� � �D� !� !�%�T� � � �'���� ����)�6�+>��B�B�B����!�!�!�$�%�%�%�%�%�%�%�%�%�%�%�%����%�%�%�%�%�%s�AB%�%B)�,B)c�,�ddlm}|��jS)Nr��uuid4)�uuidrw�hexrvs r�guidrz�s"�������� �5�7�7�;�rc� �tjd��}tj|��}|rR|D]"}||urt |t j��rn�#n,d}|���tj|��}|�Rdx}x}}dS)Nr)�sys� _getframe�gc� get_referrersr�types� FrameType�clear)�frame� this_frame�refss r�!_break_traceback_cycle_from_framer��s�����q�!�!�J� � �E� "� "�D� �'�� � �E��J�&�&�:�e�U�_�+M�+M�&���� ��� � � � � � ����&�&�� �'�!%�$�D�$�5�:�:�:rc���ddlm}||��5}t|d��5}|�|�����ddd��n #1swxYwYddd��dS#1swxYwYdS)Nr)�urlopen�wb)�urllib.requestr��open�write�read)�url�out_pathr��response�fs r�_download_urllibr��s���&�&�&�&�&�&� �����%�� �(�D� !� !� %�Q� �G�G�H�M�M�O�O� $� $� $� %� %� %� %� %� %� %� %� %� %� %���� %� %� %� %�%�%�%�%�%�%�%�%�%�%�%�%����%�%�%�%�%�%s4�A/�(A� A/�A �A/�A �A/�/A3�6A3c���ddl}|�|��5}t|d��5}|�|j��ddd��n #1swxYwYddd��dS#1swxYwYdS)Nrr�)�requests�getr�r��content)r�r�r�r�r�s r�_download_requestsr��s����O�O�O� ���c� � �&�h� �(�D� !� !� &�Q� �G�G�H�$� %� %� %� &� &� &� &� &� &� &� &� &� &� &���� &� &� &� &�&�&�&�&�&�&�&�&�&�&�&�&����&�&�&�&�&�&s4�A*�A� A*�A �A*�A �A*�*A.�1A.c���tjdkrtdtj�����ddl}d}tj�d��}tj�|d��}d}tj�|d ��}t j|d � �� t||��t||��n0#t$r#t||��t||��YnwxYwtj� |��sJ�tj� |��sJ�|� |���|��dS) z� Download and extract latest IANA timezone database into the location expected by Arrow which is %USERPROFILE%\Downloads\tzdata. �win32z)Timezone database is already provided by rNz5https://data.iana.org/time-zones/tzdata-latest.tar.gzz%USERPROFILE%\Downloads\tzdataz tzdata.tar.gzz^https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xmlzwindowsZones.xmlT)�exist_ok)r|�platformrE�tarfilerNrK� expandvarsr�makedirsr�� ImportErrorr��existsr�� extractall)r�� tzdata_url� tzdata_path�tzdata_compressed_path�windows_zones_url�windows_zones_paths r�download_tzdata_on_windowsr��si��  �|�w����R�C�L�R�R�S�S�S��N�N�N�H�J��'�$�$�%F�G�G�K��W�\�\�+��G�G��x������k�3E�F�F���K� �d�+�+�+�+�@��:�'=�>�>�>��,�.@�A�A�A�A�� �@�@�@���%;�<�<�<��*�,>�?�?�?�?�?�@���� �7�>�>�0� 1� 1�1�1� 1� �7�>�>�,� -� -�-�-� -� �L�L�'�(�(�3�3�K�@�@�@�@�@s�+ C � *C9�8C9)T)rNrlrXr~rir|rr�r%r-r!r9r1rBrGrLrQr[rgrtrzr�r�r�r�rrr�<module>r�se��( � � � ��������� � � � � � � � � � � � ����� � � � �����H� � =�=�=�@@M�����$(�7�7�7�7�"���@�@�@� .� .� .� 6�6�6�!�!�!�H%�%�%���� %�%�%�.%�%�%�&�&�&�A�A�A�A�Ar
Memory