§
    kŠtjõ  ã                  ó@   — d dl mZ d dlZd dlZd dlZdd	„Zd
„ fdd„ZdS )é    )ÚannotationsNÚpathúpathlib.Path | strÚsuffixÚstrÚreturnÚboolc                ó¼   — t          | t          ¦  «        st          | ¦  «        } |                      ¦   «                              |                     ¦   «         ¦  «        S )zA
    Returns whether `path` ends in `suffix`, ignoring case.
    )Ú
isinstancer   ÚcasefoldÚendswith)r   r   s     úZ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/onnxruntime/tools/file_utils.pyÚpath_match_suffix_ignore_caser   
   sG   € õ �d�CÑ Ô ð Ý�4‰yŒyˆØ�=Š=‰?Œ?×#Ò# F§O¢OÑ$5Ô$5Ñ6Ô6Ð6ó    c                ó   — dS )NT© )Ú_s    r   ú<lambda>r      s   € Ðgk€ r   Úfile_or_dir_pathÚ	predicateú%typing.Callable[[pathlib.Path], bool]úlist[pathlib.Path]c                ó8  ‡‡— t          | t          j        ¦  «        st          j        | ¦  «        } g Šdˆˆfd„}|                      ¦   «         rAt	          j        | ¦  «        D ]+\  }}}|D ]"}t          j        ||¦  «        } ||¦  «         Œ#Œ,n || ¦  «         ‰S )a`  
    Gets the files in `file_or_dir_path` satisfying `predicate`.
    If `file_or_dir_path` is a file, the single file is considered. Otherwise, all files in the directory are
    considered.
    :param file_or_dir_path: Path to a file or directory.
    :param predicate: Predicate to determine if a file is included.
    :return: A list of files.
    Ú	file_pathúpathlib.Pathc                óL   •—  ‰| ¦  «        r‰                      | ¦  «         d S d S )N)Úappend)r   r   Úselected_filess    €€r   Úprocess_filez,files_from_file_or_dir.<locals>.process_file#   s9   ø€ Øˆ9�YÑÔð 	-Ø×!Ò! )Ñ,Ô,Ð,Ð,Ð,ð	-ð 	-r   )r   r   )r   ÚpathlibÚPathÚis_dirÚosÚwalk)	r   r   r   Úrootr   ÚfilesÚfiler   r   s	    `      @r   Úfiles_from_file_or_dirr(      sà   øø€ õ Ð&­¬Ñ5Ô5ð :Ý"œ<Ð(8Ñ9Ô9Ðà€Nð-ð -ð -ð -ð -ð -ð -ð ×ÒÑ Ô ð 'Ý œgÐ&6Ñ7Ô7ð 	(ð 	(‰NˆD�!�UØð (ð (�Ý#œL¨¨tÑ4Ô4�	Ø�˜YÑ'Ô'Ð'Ð'ð(ð	(ð
 	ˆÐ%Ñ&Ô&Ð&àÐr   )r   r   r   r   r   r	   )r   r   r   r   r   r   )Ú
__future__r   r#   r    Útypingr   r(   r   r   r   ú<module>r+      su   ðð #Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø €€€Ø €€€ð7ð 7ð 7ð 7ð ^lÐ]kðð ð ð ð ð ð r   