§
    
Á³gª  ã                   óÐ   — d Z ddlZddlZddlmZmZmZ ddlmZ ddl	m
Z
 	 	 	 dd	ee         d
edededee         f
d„Zddeee                  ddfd„Zedk    r e¦   «          dS dS )a  
Script which takes one or more file paths and reports on their detected
encodings

Example::

    % chardetect somefile someotherfile
    somefile: windows-1252 with confidence 0.5
    someotherfile: ascii with confidence 1.0

If no paths are provided, it takes its input from stdin.

é    N)ÚIterableÚListÚOptionalé   )Ú__version__)ÚUniversalDetectorÚstdinFÚlinesÚnameÚminimalÚshould_rename_legacyÚreturnc                 ó  — t          |¬¦  «        }| D ]/}t          |¦  «        }|                     |¦  «         |j        r nŒ0|                     ¦   «          |j        }|r|d         S |d         r|› d|d         › d|d         › �S |› d�S )a°  
    Return a string describing the probable encoding of a file or
    list of strings.

    :param lines: The lines to get the encoding of.
    :type lines: Iterable of bytes
    :param name: Name of file or collection of lines
    :type name: str
    :param should_rename_legacy:  Should we rename legacy encodings to
                                  their more modern equivalents?
    :type should_rename_legacy:   ``bool``
    )r   Úencodingz: z with confidence Ú
confidencez: no result)r   Ú	bytearrayÚfeedÚdoneÚcloseÚresult)r
   r   r   r   ÚuÚliner   s          ú`/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/pip/_vendor/chardet/cli/chardetect.pyÚdescription_ofr      s¼   € õ$ 	Ð/CÐDÑDÔD€AØð ð ˆÝ˜‰ŒˆØ	�Šˆt‰ŒˆàŒ6ð 	ØˆEð	à‡G‚G�I„I€IØŒX€FØð "Ø�jÔ!Ð!ØˆjÔð VØÐUÐU˜& Ô,ÐUÐU¸vÀlÔ?SÐUÐUÐUØÐÐÐÐó    Úargvc           	      óD  — t          j        d¬¦  «        }|                     ddt          j        d¦  «        dt          j        j        g¬¦  «         |                     dd	d
¬¦  «         |                     dddd
¬¦  «         |                     dddt          › �¬¦  «         |                     | ¦  «        }|j	        D ]`}| 
                    ¦   «         rt          dt          j        ¬¦  «         t          t          ||j        |j        |j        ¬¦  «        ¦  «         ŒadS )zã
    Handles command line arguments and gets things started.

    :param argv: List of arguments, as if specified on the command-line.
                 If None, ``sys.argv[1:]`` is used instead.
    :type argv: list of str
    zATakes one or more file paths and reports their detected encodings)ÚdescriptionÚinputz@File whose encoding we would like to determine. (default: stdin)ÚrbÚ*)ÚhelpÚtypeÚnargsÚdefaultz	--minimalz*Print only the encoding to standard outputÚ
store_true)r"   Úactionz-lz--legacyz,Rename legacy encodings to more modern ones.z	--versionÚversionz	%(prog)s )r'   r(   z£You are running chardetect interactively. Press CTRL-D twice at the start of a blank line to signal the end of your input. If you want help, run chardetect --help
)Úfile)r   r   N)ÚargparseÚArgumentParserÚadd_argumentÚFileTypeÚsysr	   Úbufferr   Ú
parse_argsr   ÚisattyÚprintÚstderrr   r   r   Úlegacy)r   ÚparserÚargsÚfs       r   Úmainr8   :   s~  € õ Ô$àOðñ ô €Fð
 ×ÒØØOÝÔ˜tÑ$Ô$ØÝ”Ô!Ð"ð ñ ô ð ð ×ÒØØ9Øð ñ ô ð ð
 ×ÒØØØ;Øð	 ñ ô ð ð ×ÒØ˜IÐ/H½;Ð/HÐ/Hð ñ ô ð ð ×Ò˜TÑ"Ô"€DàŒZð 
ð 
ˆØ�8Š8‰:Œ:ð 	Ýðõ ”Zðñ ô ð õ 	ÝØ�1”6 4¤<ÀdÄkðñ ô ñ	
ô 	
ð 	
ð 	
ð
ð 
r   Ú__main__)r	   FF)N)Ú__doc__r*   r.   Útypingr   r   r   Ú r   Úuniversaldetectorr   ÚbytesÚstrÚboolr   r8   Ú__name__© r   r   ú<module>rC      s  ððð ð €€€Ø 
€
€
€
Ø +Ð +Ð +Ð +Ð +Ð +Ð +Ð +Ð +Ð +à Ð Ð Ð Ð Ð Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1ð
 ØØ!&ð	 ð  Ø�EŒ?ð à
ð ð ð ð ð	 ð
 ˆc„]ð ð  ð  ð  ðD2
ð 2
ˆx˜˜Sœ	Ô"ð 2
¨dð 2
ð 2
ð 2
ð 2
ðj ˆzÒÐØ€D�F„F€F€F€Fð Ðr   