+
    ½¾j­.  ã                  óâ   € ^ RI Ht ^ RIt^ RIt^ RIt^ RIHtHtHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt RR	 R
 llt ! R R4      tRR R llt]R8X  d
   ]! 4        R# R# )é    )ÚannotationsN)ÚabspathÚbasenameÚdirnameÚjoinÚrealpath)Úpython_version)Úunidata_version)Úfrom_fp)ÚCliDetectionResult)Ú__version__c               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚquestionÚstrÚdefaultÚreturnÚbool© )Úformats   "Ú^/home/ralf/ical-fahrzeuge/venv/lib/python3.14/site-packages/charset_normalizer/cli/__main__.pyÚ__annotate__r      s!   € ÷ 1ñ 1˜3ð 1¨ð 1¸ñ 1ó    c                óÌ   € VR8X  d   RMRp \        W,           4      P                  4       P                  4       pV'       g   VR8H  # VR9   d   R# VR9   d   R# \        R4       KZ  )	zBAsk a yes/no question via input() and return the answer as a bool.Úyesz [Y/n] z [y/N] TFzPlease respond with 'y' or 'n'.)Úyr   )ÚnÚno)ÚinputÚstripÚlowerÚprint)r   r   ÚpromptÚchoices   &&  r   Úquery_yes_nor%      s_   € à! UÔ*‰Y°	€Fà
Ü�xÕ(Ó)×/Ñ/Ó1×7Ñ7Ó9ˆßØ˜eÑ#Ð#Ø�\Ô!ÙØ�[Ô ÙÜÐ/Ö0r   c                  óB   € ] tR t^tRtR
R R lltR R ltR R ltR	tR# )ÚFileTypea´  Factory for creating file object types

Instances of FileType are typically passed as type= arguments to the
ArgumentParser add_argument() method.

Keyword Arguments:
    - mode -- A string indicating how the file is to be opened. Accepts the
        same values as the builtin open() function.
    - bufsize -- The file's desired buffer size. Accepts the same values as
        the builtin open() function.
    - encoding -- The file's encoding. Accepts the same values as the
        builtin open() function.
    - errors -- A string indicating how encoding and decoding errors are to
        be handled. Accepts the same value as the builtin open() function.

Backported from CPython 3.12
Nc               ó(   € V ^8„  d   QhRRRRRRRR/# )r   Úmoder   ÚbufsizeÚintÚencodingz
str | NoneÚerrorsr   )r   s   "r   r   ÚFileType.__annotate__2   s2   € ÷ 
ñ 
àð
ð ð
ð ð	
ð
 ñ
r   c                	ó6   € Wn         W n        W0n        W@n        R # ©N)Ú_modeÚ_bufsizeÚ	_encodingÚ_errors)Úselfr)   r*   r,   r-   s   &&&&&r   Ú__init__ÚFileType.__init__2   s   € ð Œ
ØŒØ!ŒØŽr   c               ó    € V ^8„  d   QhRRRR/# )r   Ústringr   r   z	typing.IOr   )r   s   "r   r   r.   >   s   € ÷ 6ñ 6˜sð 6 yñ 6r   c                	ó¦  a € VR 8X  dâ   RS P                   9   d<   RS P                   9   d   \        P                  P                  # \        P                  # \        ;QJ d    V 3R lR 4       F  '       g   K   RM	  RM! V 3R lR 4       4      '       d<   RS P                   9   d   \        P
                  P                  # \        P
                  # RS P                    2p\        V4      h \        VS P                   S P                  S P                  S P                  4      #   \         d$   pRT R	T 2p\        P                  ! T4      hR
p?ii ; i)Ú-ÚrÚbc              3  ó@   <"  € T F  qSP                   9   x € K  	  R # 5ir0   )r1   )Ú.0Úcr5   s   & €r   Ú	<genexpr>Ú$FileType.__call__.<locals>.<genexpr>C   s   øé € Ð4©e¨˜$Ÿ*™*–_«eùs   ƒÚwaxTFzargument "-" with mode zcan't open 'z': N)r1   ÚsysÚstdinÚbufferÚanyÚstdoutÚ
ValueErrorÚopenr2   r3   r4   ÚOSErrorÚargparseÚArgumentTypeError)r5   r9   ÚmsgÚeÚmessages   f&   r   Ú__call__ÚFileType.__call__>   sô   ø€ à�SŒ=Ø�d—j‘jÔ Ø+.°$·*±*Ô+<”s—y‘y×'Ñ'ÐKÄ#Ç)Á)ÐKß“Ô4©eÓ4——’Ô4©eÓ4×4Ò4Ø,/°4·:±:Ô,=”s—z‘z×(Ñ(ÐMÄ3Ç:Á:ÐMà/°·
±
¨|Ð<�Ü  “oÐ%ð	6Ü˜ §
¡
¨D¯M©M¸4¿>¹>È4Ï<É<ÓXÐXøÜô 	6Ø$ V H¨C°¨sÐ3ˆGÜ×,Ò,¨WÓ5Ð5ûð	6ús   Ã+6D" Ä"EÄ-EÅEc               ó   € V ^8„  d   QhRR/# )r   r   r   r   )r   s   "r   r   r.   P   s   € ÷ 4ñ 4˜#ñ 4r   c           
     	óh  € V P                   V P                  3pR V P                  3RV P                  3.pRP	                  V Uu. uF  q3R8w  g   K  \        V4      NK  	  upV UUu. uF  w  rCVf   K  V RV: 2NK  	  upp,           4      p\        V 4      P                   RV R2# u upi u uppi )r,   r-   ú, Ú=Ú(Ú)éÿÿÿÿ)r1   r2   r3   r4   r   ÚreprÚtypeÚ__name__)r5   ÚargsÚkwargsÚargÚkwÚargs_strs   &     r   Ú__repr__ÚFileType.__repr__P   sª   € Ø�z‰z˜4Ÿ=™=Ð(ˆØ˜tŸ~™~Ð.°¸4¿<¹<Ð0HÐIˆØ—9‘9Ù"&Ó4¡$˜3°©)ŒYŒT�#ŽY¡$Ñ4Ù.4ÔH©f¡7 2¸Œ�"��Q�s‘g‹©fÒHõIó
ˆô �t“*×%Ñ%Ð& a¨ z°Ð3Ð3ùò 5ùÛHs   ÁB)ÁB)Á'B.Á4B.)r2   r3   r4   r1   )r<   rY   NN)	r\   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r6   rQ   rb   Ú__static_attributes__r   r   r   r'   r'      s   † ñ÷$
õ6÷$4ñ 4r   r'   c               ó    € V ^8„  d   QhRRRR/# )r   Úargvzlist[str] | Noner   r+   r   )r   s   "r   r   r   Z   s   € ÷ Mñ MÐ%ð M°ñ Mr   c                ó0  € \         P                  ! RR7      pVP                  R\        R4      RRR7       VP                  RR	R
RRRR7       VP                  RRR
RRRR7       VP                  RRR
RRRR7       VP                  RRR
RRRR7       VP                  RRR
RRRR7       VP                  RR R
RR!R"R7       VP                  R#R$R
RR%R&R7       VP                  R'R(R)R*\        R+R,R-7       TP                  R.R/R0P                  \        \        4       \        \        P                  P                  4       P                  R14      '       d   R2MR34      R4R57       VP                  V 4      pVP                  R6J dc   VP                  RJ dS   VP                   '       d$   VP                    F  pVP#                  4        K  	  \%        R7\&        P(                  R87       ^# VP*                  R6J dc   VP                  RJ dS   VP                   '       d$   VP                    F  pVP#                  4        K  	  \%        R9\&        P(                  R87       ^# VP,                  R:8  g   VP,                  R;8”  dS   VP                   '       d$   VP                    F  pVP#                  4        K  	  \%        R<\&        P(                  R87       ^# . pVP                    EFV  p\/        VVP,                  VP0                  VP2                  RJ R=7      pVP5                  4       pVf‚   \%        R?P                  VP6                  VP,                  R;8  d   R@MRA4      \&        P(                  R87       VP9                  \;        \=        VP6                  4      R>. . RB. RR;R:R>R64      4       EMk\;        \=        VP6                  4      VP>                  VP@                  VPB                   Uu. uF  pWvP>                  8w  g   K  VNK  	  upVPD                  VPF                  VPH                  VPJ                  VPL                  R>R64      pVP9                  V4       \O        V4      ^8”  dÍ   VPP                  '       d»   V F´  p	W–8w  g   K  TP9                  \;        \=        VP6                  4      V	P>                  V	P@                  V	PB                   Uu. uF  pWyP>                  8w  g   K  VNK  	  upV	PD                  V	PF                  V	PH                  V	PJ                  V	PL                  R>R4      4       K¶  	  VP                  R6J EdÔ   VP>                  PS                  RC4      R6J dX   \%        RDP                  VP6                  4      \&        P(                  R87       VPT                  RJ d   VP#                  4        EKÖ  \W        \Y        VP6                  4      4      p
\[        \Y        VP6                  4      4      pVP]                  RE4      pVP                  RJ d>   VP_                  RMVP>                  4       VPT                  RJ d   VP#                  4        M\VP*                  RJ dM   \a        RFP                  VP6                  4      RG4      RJ d$   VPT                  RJ d   VP#                  4        EKÌ   \c        V
REPc                  V4      4      Vn2        \g        VPd                  RH4      ;_uu_ 4       pVPi                  VPk                  4       4       R>R>R>4       VPT                  RJ g   EKF  VP#                  4        EKY  	  VPp                  RJ dY   ^ RII9H:p \%        T! \O        V4      ^8”  d   V U	u. uF  q™Pv                  NK  	  up	MV^ ,          Pv                  R6^RJ7      4       ^ # VP                    Fg  p\%        RKPc                  V U	u. uF?  p	V	Px                  \=        VP6                  4      8X  g   K)  V	P>                  ;'       g    RLNKA  	  up	4      4       Ki  	  ^ # u upi u upi   + '       g   i     EL$; i  \l         dQ   p\%        \o        T4      \&        P(                  R87       TPT                  RJ d   TP#                  4         R>p? ^# R>p?ii ; iu up	i u up	i )Nzx
CLI assistant using ARGV and ArgumentParser
:param argv:
:return: 0 if everything is fine, anything else equal trouble
zvThe Real First Universal Charset Detector. Discover originating encoding used on text file. Normalize text to unicode.)ÚdescriptionÚfilesÚrbÚ+zFile(s) to be analysed)r[   ÚnargsÚhelpz-vz	--verboseÚ
store_trueFÚverbosezjDisplay complementary information about file if any. Stdout will contain logs about the detection process.)Úactionr   Údestrq   z-az--with-alternativeÚalternativeszIOutput complementary possibilities if any. Top-level JSON WILL be a list.z-nz--normalizeÚ	normalizezLPermit to normalize input file. If not set, program does not write anything.z-mz	--minimalÚminimalzBOnly output the charset detected to STDOUT. Disabling JSON output.z-rz	--replaceÚreplacezGReplace file when trying to normalize it instead of creating a new one.z-fz--forceÚforcezHReplace file without asking if you are sure, use this flag with caution.z-iz--no-preemptiveÚno_preemptivez>Disable looking at a charset declaration to hint the detector.z-tz--thresholdÚstoregš™™™™™É?Ú	thresholdzUDefine a custom maximum amount of noise allowed in decoded content. 0. <= noise <= 1.)rt   r   r[   ru   rq   z	--versionÚversionz;Charset-Normalizer {} - Python {} - Unicode {} - SpeedUp {}z.pyÚOFFÚONz"Show version information and exit.)rt   r~   rq   Tz.Use --replace in addition of --normalize only.)Úfilez*Use --force in addition of --replace only.g        g      ð?z---threshold VALUE should be between 0. AND 1.)r}   ÚexplainÚpreemptive_behaviourNz4Unable to identify originating encoding for "{}". {}z-Maybe try increasing maximum amount of chaos.Ú ÚUnknownÚutfzJ"{}" file does not need to be normalized, as it already came from unicode.Ú.z0Are you sure to normalize "{}" by replacing it ?r   Úwb)Údumps)Úensure_asciiÚindentrU   Ú	undefinedrY   )=rL   ÚArgumentParserÚadd_argumentr'   Úfloatr   r   r	   r
   Ú	md_moduleÚ__file__r!   ÚendswithÚ
parse_argsry   rw   rm   Úcloser"   rD   Ústderrrz   r}   r   rs   r{   ÚbestÚnameÚappendr   r   r,   Úencoding_aliasesÚcould_be_from_charsetÚlanguageÚ	alphabetsÚbomÚpercent_chaosÚpercent_coherenceÚlenrv   Ú
startswithÚclosedr   r   r   ÚsplitÚinsertr%   r   Úunicode_pathrJ   ÚwriteÚoutputrK   r   rx   Újsonr‰   Ú__dict__Úpath)rj   Úparserr]   Úmy_fileÚx_ÚmatchesÚ
best_guessÚcpÚ
cli_resultÚelÚdir_pathÚ	file_nameÚo_ÚfprO   r‰   s   &               r   Ú
cli_detectr·   Z   sƒ  € ô ×$Ò$ð%ô€Fð ×ÑØ”h˜t“n¨CÐ6Nð ô ð ×ÑØØØØØð@ð ô ð ×ÑØØØØØØXð ô ð ×ÑØØØØØØ[ð ô ð ×ÑØØØØØØQð ô ð ×ÑØØØØØØVð ô ð ×ÑØØØØØØWð ô ð ×ÑØØØØØØMð ô ð ×ÑØØØØÜØØdð ô ð ×ÑØØØM×TÑTÜÜÓÜÜ×'Ñ'×-Ñ-Ó/×8Ñ8¸×?Ò?‰EÀTó	
ð 2ð ô 
ð ×Ñ˜TÓ"€Dà‡|�|�tÓ §¡°%Ó 7Ø�:�:ˆ:ØŸ:œ:�Ø—‘–ñ &äÐ>ÄSÇZÁZÕPÙà‡z�z�TÓ˜dŸl™l¨eÓ3Ø�:�:ˆ:ØŸ:œ:�Ø—‘–ñ &äÐ:ÄÇÁÕLÙà‡~�~˜Ô˜tŸ~™~°Ô3Ø�:�:ˆ:ØŸ:œ:�Ø—‘–ñ &äÐ=ÄCÇJÁJÕOÙà	€Bà—:•:ˆÜØØ—n‘nØ—L‘LØ!%×!3Ñ!3°uÐ!<ô	
ˆð —\‘\“^ˆ
àÒÜØF×MÑMØ—L‘Lð  Ÿ>™>¨CÔ/ñ Hàóô —Z‘Zõ
ð �I‰IÜ"Ü˜GŸL™LÓ)ØØØØØØØØØØóöô  ,Ü˜Ÿ™Ó%Ø×#Ñ#Ø×+Ñ+ð )×>Ò>óá>˜Ø×0Ñ0Ñ0÷ �BÙ>ñð
 ×#Ñ#Ø×$Ñ$Ø—‘Ø×(Ñ(Ø×,Ñ,ØØóˆJð" �I‰I�jÔ!ä�7‹|˜aÔ D×$5×$5Ð$5Û!�BØÖ'ØŸ	™	Ü.Ü '¨¯©Ó 5Ø "§¡Ø "× 3Ñ 3ð /1×.FÒ.Fó!"á.F¨Ø')¯[©[Ñ'8÷ %' BÙ.Fñ!"ð
 !#§¡Ø "§¡Ø "§¡Ø "× 0Ñ 0Ø "× 4Ñ 4Ø $Ø %óöñ "ð, �~‰~ Ô%Ø×&Ñ&×1Ñ1°%Ó8¸DÓ@ÜØd×kÑkØ#ŸL™Lóô !ŸZ™Zõ	ð —~‘~¨Ó.ØŸ™œÚä"¤8¨G¯L©LÓ#9Ó:�Ü$¤X¨g¯l©lÓ%;Ó<�	à )§¡°Ó 4�à—<‘< 5Ó(Ø—I‘I˜b *×"5Ñ"5Ô6Ø—~‘~¨Ó.ØŸ™œøà—J‘J %Ó'Ü$ØJ×QÑQØ#ŸL™Lóð ó	ð óð —~‘~¨Ó.ØŸ™œÚð	Ü.2°8¸S¿X¹XÀb»\Ó.J�JÔ+ä˜j×5Ñ5°t×<Ô<ÀØŸ™ ×!2Ñ!2Ó!4Ô5÷ =ð �>‰>˜UÖ"Ø�M‰M�Oñ ðB ‡|�|�uÓÝäÙÜ.1°"«g¸¬k¡rÓ*¡r —”¡rÒ*¸rÀ!½u¿~¹~Ø!Øôô	
ñ& ð —z”zˆGÜØ—	‘	ñ #%óá"$˜BØŸ7™7¤g¨g¯l©lÓ&;Ñ;ô 3˜Ÿ™×2Ð2 {Ò2Ù"$ñóöñ "ñ ùò[ùò.!"÷j =×<Ð<ûäô Üœ#˜a›&¤s§z¡zÕ2Ø—~‘~¨Ó.ØŸ™œÞûð	üò +ùòsg   Ï`Ï2`Ó `Ó`Ú#>`0Û! `Ü`0Ý"bÞ<&bß'bß:bà`-à'`0à-`0à0bà;AbâbÚ__main__)r   r0   )Ú
__future__r   rL   rD   ÚtypingÚos.pathr   r   r   r   r   Úplatformr	   Úunicodedatar
   Úcharset_normalizer.mdÚmdr�   Úcharset_normalizerr   Úcharset_normalizer.modelsr   Úcharset_normalizer.versionr   r%   r'   r·   r\   r   r   r   Ú<module>rÃ      sT   ðÝ "ã Û 
Û ß >Õ >Ý #Ý 'å )Ý &Ý 8Ý 2÷1÷84ñ 84÷vMð` ˆzÔÙ†Lñ r   