o
    ¨Ýj  ã                	   @   s"   d ddddddddœZ d	d
„ ZdS )ztext/cssz	image/gifz	text/htmlz
image/jpegzapplication/javascriptzapplication/jsonz	image/pngz
text/plain)ÚcssZgifÚhtmlZjpgÚjsÚjsonZpngÚtxtc                 C   st  d}| |v r||  }n.d}| dkr9|   dd¡\} }d| | }| |v r(||  }n| d |v r5|| d  }n| dks|r¸t|tƒrEd|i}n| ¡ }|d  d¡r[| d¡r[|dd… }|d  |7  < |d  d¡r£d|v r›t|d tƒr€|d  |d 7  < n#|d  |d d 7  < d|d v rš|d d |d< n|d  d7  < d|vr¸|d   d¡d	 }t |d
¡|d< |S )a}  Return the local filename and content type for the requested static
    file URL.

    :param path: the path portion of the requested URL.
    :param static_files: a static file configuration dictionary.

    This function returns a dictionary with two keys, "filename" and
    "content_type". If the requested URL does not match any static file, the
    return value is None.
    Ú Nú/é   ÚfilenameÚcontent_typez
index.htmlÚ.éÿÿÿÿzapplication/octet-stream)ÚrsplitÚ
isinstanceÚstrÚcopyÚendswithÚ
startswithÚcontent_typesÚget)ÚpathZstatic_filesZ
extra_pathÚfÚlastÚext© r   úP/var/www/html/chatgpt/venv/lib/python3.10/site-packages/engineio/static_files.pyÚget_static_file   sH   
ø	

€ÿr   N)r   r   r   r   r   r   Ú<module>   s   ø