
    eg                     >   U d dl Z d dlZd dlZd dlZd dlmZmZ e j                  dfe j                  dfe j                  dfe j                  dfe j                  dfe j                  dfe j                  d	fgZeeeef      ed
<    ej$                  d      ZdedefdZy)    N)ListTuplezutf-8zutf-16z	utf-16-bez	utf-16-lezutf-32z	utf-32-bez	utf-32-leBOMSs   coding[:=]\s*([-\w.]+)datareturnc                    t         D ]5  \  }}| j                  |      s| t        |      d j                  |      c S  | j	                  d      dd D ]n  }|dd dk(  st
        j                  |      s"t
        j                  |      }|J |j                         d   j                  d      }| j                  |      c S  | j                  t        j                  d      xs t        j                               S )	zCheck a bytes string for a BOM to correctly detect the encoding

    Fallback to locale.getpreferredencoding(False) like open() on Python3N   
   r         #asciiF)r   
startswithlendecodesplitENCODING_REsearchgroupslocalegetpreferredencodingsysgetdefaultencoding)r   bomencodinglineresults        y/var/www/html/FastMealFinder_FlaskServer-InitialRelease/venv/lib/python3.12/site-packages/pip/_internal/utils/encoding.pyauto_decoder      s      5X??3C
#**8445 

5!"1% )!9!3!3D!9 ''-F%%%}}q)009H;;x(() ;;##E*Fc.D.D.F     )codecsr   rer   typingr   r   BOM_UTF8	BOM_UTF16BOM_UTF16_BEBOM_UTF16_LE	BOM_UTF32BOM_UTF32_BEBOM_UTF32_LEr   bytesstr__annotations__compiler   r    r   r   <module>r/      s      	 
  __gx +&+&x +&+&!d5  bjj34e  r   