� !A?h� � ��ddlZddlZddlZddlZddlZddlmZmZmZm Z m Z m Z ddl m Z eejefZeZd�Zd�Zededed e fd ���Zededed efd ���Ze ddedededed e f d���Ze ddedededed ef d���Zeded eefd���Zededed efd���Zededed eejfd���ZdS)�N)�Union�Iterable�ContextManager�BinaryIO�TextIO�Any�)�_commonc�F��tj����fd���}|S)Nc�\��tj�j�d�td����|i|��S)Nz� is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.�)� stacklevel)�warnings�warn�__name__�DeprecationWarning)�args�kwargs�funcs ��H/opt/alt/python-internal/lib64/python3.11/importlib/resources/_legacy.py�wrapperzdeprecated..wrappersR���� ��}� P� P� P� ��  � � � ��t�T�$�V�$�$�$�)� functools�wraps)rrs` r� deprecatedrs8����_�T���%�%�%�%���%� �Nrc�� t|��}tj�|��\}}|rt |�d����|S)Nz must be only a file name)�str�os�path�split� ValueError)r�str_path�parent� file_names r�normalize_pathr%sQ����4�y�y�H��� � �h�/�/��F�I� �?��D�=�=�=�>�>�>� �r�package�resource�returnc�r� tj|��t|��z �d��S)N�rb�r �filesr%�open�r&r's r� open_binaryr/+s0��N� �M�'� "� "�^�H�%=�%=� =� C� C�D� I� I�Irc�p� tj|��t|��z ���S�N)r r,r%� read_bytesr.s r� read_binaryr31s.��5� �M�'� "� "�^�H�%=�%=� =� I� I� K� K�Kr�utf-8�strict�encoding�errorsc�x� tj|��t|��z �d||���S)N�r)r6r7r+)r&r'r6r7s r� open_textr:7sD��M� �M�'� "� "�^�H�%=�%=� =� C� C� �h�v� D� � �rc�� t||||��5}|���cddd��S#1swxYwYdSr1)r:�read)r&r'r6r7�fps r� read_textr>Ds���� �7�H�h�� 7� 7��2��w�w�y�y���������������������s �5�9�9c�d� d�tj|�����D��S)Nc��g|] }|j�� S�)�name)�.0rs r� zcontents..\s�� C� C� C�$�D�I� C� C� Cr)r r,�iterdir)r&s r�contentsrFTs4��� D� C�'�-��"8�"8�"@�"@�"B�"B� C� C� C�CrrBc��� t|���t�fd�tj|�����D����S)Nc3�V�K�|]#}|j�ko|���V��$dSr1)rB�is_file)rC� traversabler's �r� zis_resource..fsP������� � ��H�$�>��)<�)<�)>�)>������r)r%�anyr r,rE)r&rBr's @r� is_resourcerM_se�����d�#�#�H� �����"�=��1�1�9�9�;�;���� � �rc�p� tjtj|��t|��z ��Sr1)r �as_filer,r%r.s rrrls0�� � �?�7�=��1�1�N�8�4L�4L�L� M� M�Mr)r4r5)rr�pathlib�typesr�typingrrrrrr�r � ModuleTyper�Package�Resourcerr%r/�bytesr3r:r>rF�boolrM�PathrrArr�rZs������� � � � ����� � � � �����I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I������� �� �#�%� &�� �� � � � � � � �J��J�H�J��J�J�J� ��J�  �L��L�H�L��L�L�L� ��L�  ��� � � � �� �� � � �  � � � � �� � ��� � � � �� �� � � �  � � � � �� � �D�g�D�(�3�-�D�D�D� ��D� � �� �� �� � � � �� � � N� � N�� N��G�L�!� N� N� N� �� N� N� Nr