+
    LV-j¼—  ã                  ó`  a € 0 t $ ^ RIHt ^ RIt^ RIHt ^ RIHt ^RIH	t	H
t
HtHt ^RIHtHtHtHtHt ^RIHt ^RIHtHt ^R	IHtHtHtHtHtHt ]P>                  ! R
4      t ]PB                  ! 4       t"]"PG                  ]PH                  ! R4      4       . t%R]&R&   . t'R]&R&   ] F6  t( ]! ](4      '       d   ]%PS                  ](4       K%  ]'PS                  ](4       K8  	  ]%]',           t+R]&R&   RR R llt,RR R llt-RR R llt.RR R llt/R#   ]* d    ]'PS                  ](4        K…  i ; i)é    )ÚannotationsN)ÚPathLike)ÚBinaryIO)Úcoherence_ratioÚencoding_languagesÚmb_encoding_languagesÚmerge_coherence_ratios)ÚIANA_SUPPORTEDÚIANA_SUPPORTED_SIMILARÚTOO_BIG_SEQUENCEÚTOO_SMALL_SEQUENCEÚTRACE)Ú
mess_ratio)ÚCharsetMatchÚCharsetMatches)Úany_specified_encodingÚcut_sequence_chunksÚ	iana_nameÚidentify_sig_or_bomÚis_multi_byte_encodingÚshould_strip_sig_or_bomÚcharset_normalizerz)%(asctime)s | %(levelname)s | %(message)sz	list[str]Ú_mb_supportedÚ_sb_supportedÚIANA_SUPPORTED_MB_FIRSTc               óD   € V ^8„  d   QhRRRRRRRRRR	R
R	RRRRRRRRRR/# )é   Ú	sequenceszbytes | bytearrayÚstepsÚintÚ
chunk_sizeÚ	thresholdÚfloatÚcp_isolationúlist[str] | NoneÚcp_exclusionÚpreemptive_behaviourÚboolÚexplainÚlanguage_thresholdÚenable_fallbackÚreturnr   © )Úformats   "Úg/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/charset_normalizer/api.pyÚ__annotate__r0   9   sƒ   € ÷ dñ dØ ðdàðdð ðdð ð	dð
 #ðdð #ðdð ðdð ðdð ðdð ðdð ñdó    c
                óÐ#  € \        V \        \        34      '       g$   \        RP	                  \        V 4      4      4      hV'       dC   \        P                  p
\        P                  \        4       \        P                  \        4       \        V 4      pV^ 8X  df   \        P                  R4       V'       d/   \        P                  \        4       \        P                  X
4       \        \!        V RRR. R4      .4      # VeG   \        P#                  \        RR	P%                  V4      4       V Uu. uF  p\'        VR4      NK  	  ppM. pVeG   \        P#                  \        R
R	P%                  V4      4       V Uu. uF  p\'        VR4      NK  	  ppM. pW²V,          8:  d"   \        P#                  \        RVVV4       ^pTpV^8”  d   W±,          V8  d   \)        W±,          4      p\        V 4      \*        8  p\        V 4      \,        8¬  pV'       d+   \        P#                  \        RP	                  V4      4       M1V'       d*   \        P#                  \        RP	                  V4      4       . pV'       d   \/        V 4      MRpVe-   VP1                  V4       \        P#                  \        RV4       \3        4       p. p. p\3        4       p\3        4       p/ pRp\3        4       p^ p^pRpRpRpRp\        4       p\        4       p \5        V 4      w  p!p"V!e7   VP1                  V!4       \        P#                  \        R\        V"4      V!4       VP1                  R4       RV9  d   VP1                  R4       V\6        ,            EF~  p#V'       d
   V#V9  d   K  V'       d
   V#V9   d   K&  V#V9   d   K/  VP9                  V#4       Rp$V!V#8H  p%T%;'       d    \;        V#4      p&V#RA9   d&   V%'       g   \        P#                  \        RV#4       Kˆ  V#RB9   d&   V%'       g   \        P#                  \        RV#4       K´  V#V9   d   \        P#                  \        RV#4       KØ  V#V9   d   \        P#                  \        RV#4       Kü   \=        V#4      p'T'       di   T''       g   \3        \C        T#4      4      p(M\3        \E        T#4      4      p(T(PG                  T4      '       g!   \        P#                  \        RT#T(T4       EKx  T'       d0   T''       g(   TT8¼  d!   \        P#                  \        RT#TT4       EK¯  T'       d'   T''       g   \        P#                  \        RT#4       EKÝ   T'       d>   T'RJ d8   \I        T&RJ d   T R\)        R4       MT \        T"4      \)        R4       T#R7       M^T#R8X  d6   T%'       d.   \I        T T#R7      p$T$'       d   T$^ ,          R8X  d
   T$R,          p$M"\I        T&RJ d   T MT \        T"4      R T#R7      p$ \O        T%'       g   ^ M
\        T"4      T\)        Y±,          4      4      p*T';'       d    T$RJ;'       d    \        T$4      T8  p+T+'       d   \        P#                  \        R!T#4       T$EeG   T''       Eg>   \Q        T$4      p,TPS                  T,4      p-T-Ee   T-w  p.p/p0T0'       Ed£   \!        T T#T.T%T/TRJ g   T#TRR39   d   T$MRTR"7      p1TP1                  T14       TP9                  T#4       \        P#                  \        R#T#\U        T.^d,          ^R$7      4       T#TRR39   d„   T.R%8  d}   T.R8X  de   \        P                  R&T1PV                  4       T'       d/   \        P                  \        4       \        P                  X
4       \        T1.4      u # T P1                  T14       \        T 4      '       dŽ   Te   TT9   dƒ   RT9   d|   RT9   du   T PY                  4       p2\        P                  R&T2PV                  4       T'       d/   \        P                  \        4       \        P                  X
4       \        T2.4      u # EK×  TP1                  T#4       \        P#                  \        R'T#4       T	'       d5   T#RRTRR39   d)   \!        T T#TT%. T$TR"7      p3T#T8X  d   T3pMT#R8X  d   T3pMT3pEKB  \)        \        T*4      ^,          4      p4\[        T4^4      p4^ p5Rp6. p7. p8 \]        T T#T*TT%T&T"T'T$4	       F‰  p9T7P1                  T94       T8P1                  \_        T9TTR(J ;'       d     ^\        T4      u;8*  ;'       d    ^8*  Mu 4      4       T8RC,          T8¼  d
   T5^,          p5T5T48¼  g   T%'       g   K�  T&RJ g   K‰   M	   T6'       g1   T'       d)   T''       g!    T \)        R*4      R Pa                  T#R+R,7       T8'       d   \c        T84      \        T84      ,          MRp:T:T8¼  g   T5T48¼  dÙ   TP1                  T#4       T#\d        9   d   TPg                  \d        T#,          4       T$e'   T''       g   TPi                  \Q        T$4      T:. R34       \        P#                  \        R.T#T5\U        T:^d,          ^R$7      4       T	'       d=   T#RRTRR39   d1   T6'       g)   \!        T T#TT%. T$TR"7      p3T#T8X  d   T3pMT#R8X  d   T3pMT3pEKV  \        P#                  \        R/T#\U        T:^d,          ^R$7      4       T''       g   \C        T#4      p;M\E        T#4      p;T;'       d4   \        P#                  \        R0P	                  T#\I        T;4      4      4       . p<T#R8w  dM   T7 F:  p9\k        T9TT;'       d   R1P%                  T;4      MR4      p=T<P1                  T=4       K<  	  \m        T<4      p>M\m        T<4      p>T>'       d+   \        P#                  \        R2P	                  T>T#4      4       \!        T T#T:T%T>TRJ g   T#TRR39   d   T$MRTR"7      p?TP1                  T?4       T$e'   T''       g   TPi                  \Q        T$4      T:T>R(34       T'       d   T''       g   T:R38  d
   T^,          pT#TRR39   d„   T:R%8  d}   T:R8X  de   \        P                  R&T?PV                  4       T'       d/   \        P                  \        4       \        P                  X
4       \        T?.4      u # T P1                  T?4       \        T 4      '       dŽ   Te   TT9   dƒ   RT9   d|   RT9   du   T PY                  4       p2\        P                  R&T2PV                  4       T'       d/   \        P                  \        4       \        P                  X
4       \        T2.4      u # T'       gl   T''       gd   T>'       d   \[        R4 T> 4       RR57      MRp@T@R68¼  d?   RT9   d8   RT9   d1   R(pTPg                  T;4       \        P#                  \        R7T#T:X@4       T'       g‚   T''       dz   T+'       dr   T$en   \        T$4      TR8,          8  dW   T#RD9  dP   RT9   dI   RT9   dB   R(p\        P#                  \        R9T#T:\        T$4      T\        T$4      T,          ^d,          4       T#T!8X  g   EK   \        P                  R:T#4       T'       d/   \        P                  \        4       \        P                  X
4       \        TT#,          .4      u # 	  \        V4      ^ 8X  dý   V'       g   V'       g	   V'       d   \        P#                  \        R;4       V'       d3   \        P                  R<VPV                  4       VP1                  V4       M�V'       d   Ve0   V'       d$   V'       d   VPn                  VPn                  8w  g   Ve(   \        P                  R=4       VP1                  V4       M.V'       d'   \        P                  R>4       VP1                  V4       V'       dA   \        P                  R?VPY                  4       PV                  \        V4      ^,
          4       M\        P                  R@4       V'       d/   \        P                  \        4       \        P                  X
4       V# u upi u upi   \>        \@        3 d!    \        P#                  \        RT#4        EK^  i ; i  \J        \L        3 dY   p)\        T)\L        4      '       g&   \        P#                  \        R T#\I        T)4      4       TP1                  T#4        Rp)?)EKÆ  Rp)?)ii ; i  \J         d5   p)\        P#                  \        R)T#\I        T)4      4       T4p5R(p6 Rp)?)ELõRp)?)ii ; i  \J         dC   p)\        P#                  \        R-T#\I        T)4      4       TP1                  T#4        Rp)?)EKX  Rp)?)ii ; i)Ea2  
Given a raw bytes sequence, return the best possibles charset usable to render str objects.
If there is no results, it is a strong indicator that the source is binary/not text.
By default, the process will extract 5 blocks of 512o each to assess the mess and coherence of a given sequence.
And will give up a particular code page after 20% of measured mess. Those criteria are customizable at will.

The preemptive behavior DOES NOT replace the traditional detection workflow, it prioritize a particular code page
but never take it for granted. Can improve the performance.

You may want to focus your attention to some code page or/and not others, use cp_isolation and cp_exclusion for that
purpose.

This function will strip the SIG in the payload/sequence every time except on UTF-16, UTF-32.
By default the library does not setup any handler other than the NullHandler, if you choose to set the 'explain'
toggle to True it will alter the logger configuration to add a StreamHandler that is suitable for debugging.
Custom logging format and handler can be set manually.
z3Expected object of type bytes or bytearray, got: {}z<Encoding detection on empty bytes, assuming utf_8 intention.Úutf_8g        FÚ Nz`cp_isolation is set. use this flag for debugging purpose. limited list of encoding allowed : %s.z, zacp_exclusion is set. use this flag for debugging purpose. limited list of encoding excluded : %s.z^override steps (%i) and chunk_size (%i) as content does not fit (%i byte(s) given) parameters.z>Trying to detect encoding from a tiny portion of ({}) byte(s).zIUsing lazy str decoding because the payload is quite large, ({}) byte(s).z@Detected declarative mark in sequence. Priority +1 given for %s.zIDetected a SIG or BOM mark on first %i byte(s). Priority +1 given for %s.ÚasciiÚutf_16Úutf_32z\Encoding %s won't be tested as-is because it require a BOM. Will try some sub-encoder LE/BE.Úutf_7zREncoding %s won't be tested as-is because detection is unreliable without BOM/SIG.zY%s is deemed too similar to a code page that was already considered unsuited. Continuing!zESkipping %s: already fast-tracked from a similar successful encoding.z2Encoding %s does not provide an IncrementalDecoderzbSkipping %s: definitive match already found, this encoding targets different languages (%s vs %s).zXSkipping %s: already accumulated %d same-family results after definitive match (cap=%d).zCSkipping single-byte %s: multi-byte definitive match already found.g    €„A)Úencodingu   ï»¿:é   NNz9Code page %s does not fit given bytes sequence at ALL. %szpCode page %s is a multi byte encoding table and it appear that at least one character was encoded using n-bytes.)Úpreemptive_declarationzM%s fast-tracked (identical decoded payload to a prior encoding, chaos=%f %%).)Úndigitsçš™™™™™¹?z.Encoding detection: %s is most likely the one.zZ%s fast-skipped (identical decoded payload to a prior encoding that failed chaos probing).TzaLazyStr Loading: After MD chunk decode, code page %s does not fit given bytes sequence at ALL. %sg     jè@Ústrict)Úerrorsz^LazyStr Loading: After final lookup, code page %s does not fit given bytes sequence at ALL. %szc%s was excluded because of initial chaos probing. Gave up %i time(s). Computed mean chaos is %f %%.z=%s passed initial chaos probing. Mean measured chaos is %f %%z&{} should target any language(s) of {}Ú,z We detected language {} using {}g{®Gáz”?c              3  ó*   "  € T F	  w  rVx € K  	  R # 5i)Nr-   )Ú.0Ú_Úvs   &  r/   Ú	<genexpr>Úfrom_bytes.<locals>.<genexpr>ö  s   é € Ð4Ñ#3™4˜1•QÓ#3ùs   ‚)Údefaultg      à?zyDefinitive match found: %s (chaos=%.3f, coherence=%.2f). Encodings targeting different language families will be skipped.g\�Âõ(\ï?zjMulti-byte definitive match: %s (chaos=%.3f, decoded=%d/%d=%.1f%%). Single-byte encodings will be skipped.zoEncoding detection: %s is most likely the one as we detected a BOM or SIG within the beginning of the sequence.zONothing got out of the detection process. Using ASCII/UTF-8/Specified fallback.z7Encoding detection: %s will be used as a fallback matchz:Encoding detection: utf_8 will be used as a fallback matchz:Encoding detection: ascii will be used as a fallback matchz]Encoding detection: Found %s as plausible (best-candidate) for content. With %i alternatives.z=Encoding detection: Unable to determine any suitable charset.>   r6   r7   >   r8   éÿÿÿÿ>	   r8   r3   r6   r7   Ú	utf_16_beÚ	utf_16_leÚ	utf_32_beÚ	utf_32_leÚ	utf_8_sig)8Ú
isinstanceÚ	bytearrayÚbytesÚ	TypeErrorr.   ÚtypeÚloggerÚlevelÚ
addHandlerÚexplain_handlerÚsetLevelr   ÚlenÚdebugÚremoveHandlerr   r   ÚlogÚjoinr   r    r   r   r   ÚappendÚsetr   r   Úaddr   r   ÚModuleNotFoundErrorÚImportErrorr   r   ÚintersectionÚstrÚUnicodeDecodeErrorÚLookupErrorÚrangeÚhashÚgetÚroundr9   ÚbestÚmaxr   r   ÚdecodeÚsumr   ÚupdateÚ
setdefaultr   r	   Úfingerprint)Ar   r   r!   r"   r$   r&   r'   r)   r*   r+   Úprevious_logger_levelÚlengthÚcpÚis_too_small_sequenceÚis_too_large_sequenceÚprioritized_encodingsÚspecified_encodingÚtestedÚtested_but_hard_failureÚtested_but_soft_failureÚsoft_failure_skipÚsuccess_fast_trackedÚpayload_result_cacheÚdefinitive_match_foundÚdefinitive_target_languagesÚ post_definitive_sb_success_countÚPOST_DEFINITIVE_SB_CAPÚmb_definitive_match_foundÚfallback_asciiÚfallback_u8Úfallback_specifiedÚresultsÚearly_stop_resultsÚsig_encodingÚsig_payloadÚencoding_ianaÚdecoded_payloadÚbom_or_sig_availableÚstrip_sig_or_bomÚis_multi_byte_decoderÚenc_languagesÚeÚr_Úmulti_byte_bonusÚpayload_hashÚcachedÚcached_messÚ	cached_cdÚcached_passedÚ
fast_matchÚprobable_resultÚfallback_entryÚmax_chunk_gave_upÚearly_stop_countÚlazy_str_hard_failureÚ	md_chunksÚ	md_ratiosÚchunkÚmean_mess_ratioÚtarget_languagesÚ	cd_ratiosÚchunk_languagesÚcd_ratios_mergedÚcurrent_matchÚbest_coherencesA   &&&&&&&&&&                                                       r/   Ú
from_bytesr¨   9   sb  € ô< �i¤)¬UÐ!3×4Ò4ÜØA×HÑHÜ�Y“óó
ð 	
÷ Ü%+§\¡\ÐÜ×Ñœ/Ô*Ü�‰œÔä�i“.€Fà�„{Ü�‰ÐSÔTßÜ× Ñ ¤Ô1Ü�O‰OÐ1Ô2Üœ|¨I°wÀÀUÈBÐPRÓSÐTÓUÐUàÒÜ�
‰
Üð5à�I‰I�lÓ#ô		
ñ 8DÓD±|°œ	 " eÖ,±|ˆÐDˆàˆàÒÜ�
‰
Üð6à�I‰I�lÓ#ô		
ñ 8DÓD±|°œ	 " eÖ,±|ˆÐDˆàˆà˜uÕ$Ô%Ü�
‰
ÜØlØØØô	
ð ˆØˆ
àˆq„y�V•^ jÔ0Ü˜�Ó(ˆ
ä"% i£.Ô3EÑ"EÐÜ"% i£.Ô4DÑ"DÐçÜ�
‰
ÜØL×SÑSØóõ	
÷ 
Ü�
‰
ÜØW×^Ñ^Øóô	
ð (*Ð÷ .BÔ˜yÔ)Àtð ð Ò%Ø×$Ñ$Ð%7Ô8Ü�
‰
ÜØNØô	
ô “u€FØ)+ÐØ)+ÐÜ"%£%ÐÜ%(£UÐð
 TVÐð $)ÐÜ,/«EÐð -.Ð$Ø"#Ðð ',Ðà*.€NØ'+€KØ.2Ðä,Ó.€Gä)7Ó)9Ðä 3°IÓ >Ñ€L�+àÒØ×$Ñ$ \Ô2Ü�
‰
ÜØWÜ�ÓØô		
ð × Ñ  Ô)àÐ+Ô+Ø×$Ñ$ WÔ-à.Ô1H×HÑHˆß˜M°Ô=Ùç˜M¨\Ô9Ùà˜FÔ"Ùà�
‰
�=Ô!à&*ˆØ%1°]Ñ%BÐØ!5÷ "
ð "
Ô:QØó;
Ðð Ð0Ô0×9MÜ�J‰JÜØnØôñ
 Ø˜IÔ%×.BÜ�J‰JÜØdØôñ
 ð Ð-Ô-Ü�J‰JÜØkØôñ
 ð Ð0Ô0Ü�J‰JÜØWØôñ
 ð	Ü*@ÀÓ*OÐ!÷ "ß(Ü #Ô$6°}Ó$EÓ F‘ä #Ô$9¸-Ó$HÓ I�Ø ×-Ñ-Ð.I×JÒJÜ—
‘
ÜØxØ!Ø!Ø/ôò ÷ #ß)Ø0Ð4JÔJä�J‰JÜØjØØ0Ø&ôò ÷
 %×-BÜ�J‰JÜØUØôò
 ð*	ß$Ð)>À%Ó)GÜð ,¨uÓ4ð " +¤C¨£IÑ.à&¤s¨;Ó'7¼#¸d»)ÐDà*öð ! GÔ+×0DÜ&)Ø!Ø!.ô'�O÷ '¨?¸1Õ+=ÀÔ+IØ*9¸"Õ*=˜øä&)ð  0°5Ó8ñ &à!*¬3¨{Ó+;Ð+=Ð!>à!.ô'‘Oô& ß)‰A¬s°;Ó/?ØÜ�•Óó
ˆð "÷ .ð .Ø tÐ+÷.ð .ä�OÓ$ vÑ-ð 	÷ Ü�J‰JÜð-àô	ð Ó&×/DÐ/DÜ $ _Ó 5ˆLØ)×-Ñ-¨lÓ;ˆFØÓ!Ø8>Ñ5�˜Y¨ß �=ä!-Ø!Ø%Ø#Ø,Ø!ð !6¸Ó >Ø#0Ø$6¸ÀÐ#Iô$Jñ ,ð "&à/Aô"�Jð" —N‘N :Ô.Ø(×,Ñ,¨]Ô;Ü—J‘JÜØgØ%Ü˜k¨CÕ/¸Ô;ô	ð &Ð*<¸gÀwÐ)OÔOØ'¨#Ô-à&¨#Ô-Ü"ŸL™LØ PØ *× 3Ñ 3ô÷  'Ü &× 4Ñ 4´_Ô EÜ &§¡Ð0EÔ FÜ#1°:°,Ó#?Ò?Ø*×1Ñ1°*Ô=ô Ð.×/Ò/Ø/Ò7Ð;MÐQWÔ;WØ# vÔ-Ø# vÔ-à8J×8OÑ8OÓ8Q˜ÜŸ™ØLØ+×4Ñ4ô÷ #Ü"×0Ñ0´ÔAÜ"ŸO™OÐ,AÔBÜ-¨Ð.?Ó@Ò@âð ,×2Ñ2°=ÔAÜ—J‘JÜØtØ%ô÷ '¨=ØØØ*Ø Ø ð=ô ,ô *6Ø%Ø)Ø%Ø0ØØ+Ø3Eô*˜ð )Ð,>Ô>Ø1?Ñ.Ø*¨gÔ5Ø-;™Nà*8˜KÚä!$¤S¨£W¨q¥[Ó!1ÐäÐ 1°1Ó5ÐØ !ÐØ %Ðà!ˆ	Øˆ	ð'	)Ü,ØØØØØ$Ø ØØ%Øö
�ð × Ñ  Ô'à× Ñ ÜØØ!Ø 4˜×GÐG¨A´°\Ó1B×,GÔ,GÀaÔ,Góôð ˜R•= IÔ-Ø$¨Õ)Ð$à$Ð(9Ô9ß(Ñ(Ð-=ÀÕ-Fáò7
÷V &ß%ß)ð
Øœ#˜d›)˜+Ð&×-Ñ-¨mÀHÐ-ÔM÷ EN¤ Y£´#°i³.Ö!@ÐSVˆØ˜iÔ'Ð+;Ð?PÔ+PØ#×*Ñ*¨=Ô9ØÔ 6Ô6Ø!×(Ñ(Ô)?ÀÕ)NÔOð Ò*×3HØ$×/Ñ/Ü˜Ó)¨O¸RÀÐ+Gôô �J‰JÜð0àØ Ü�o¨Õ+°QÔ7ô÷  Ø!Ø˜WÐ&8¸(ÀHÐMôNç-ä!-ØØ!ØØ(ØØ#Ø+=ô"�ð !Ð$6Ô6Ø)7Ñ&Ø" gÔ-Ø%3‘Nà"0�KÚä�
‰
ÜØKØÜ�/ CÕ'°Ô3ô		
÷ %Ü*<¸]Ó*KÑä4°]ÓCÐçÜ�J‰JÜØ8×?Ñ?Ø!¤3Ð'7Ó#8óôð ˆ	ð ˜GÔ#ó #�Ü"1ØØ&ß2B�C—H‘HÐ-Ô.Èó#�ð × Ñ  Ö1ñ #ô  6°iÓ@Ñä5°iÓ@ÐçÜ�J‰JÜØ2×9Ñ9Ø$ móôô %ØØØØ Øð *¨UÓ2Ø$Ð);¸WÀgÐ(NÔNñ  ð
 à#5ô
ˆð" 	�‰�}Ô%ð Ò&×/DØ ×+Ñ+Ü�_Ó%Ø Ð"2°DÐ9ô÷ #ß)Ø $Ô&à,°Õ1Ð,ð Ð0°'¸7ÐCÔCØ #Ô%ð  #Ô%Ü—‘ØDØ!×*Ñ*ô÷ Ü×(Ñ(¬Ô9Ü—O‘OÐ$9Ô:Ü% } oÓ6Ò6à×%Ñ% mÔ4ô Ð"×#Ò#Ø#Ò+Ð/AÀVÔ/KØ˜6Ô!Ø˜6Ô!à0×5Ñ5Ó7ˆOÜ�L‰LØ@Ø×(Ñ(ô÷ Ü×$Ñ$¤_Ô5Ü—‘Ð 5Ô6ä! ?Ð"3Ó4Ò4÷ &×.C÷ $ô Ñ4Ñ#3Ó4¸cÕBàð ð
  Ô$¨°FÔ):¸wÈ&Ô?PØ)-Ð&Ø+×2Ñ2Ð3CÔDÜ—
‘
Üð PØ!Ø#Ø"ô÷ *ß%ß ØÒ+Ü�OÓ$ v°¥}Ô4Øð
ôð ˜6Ô!Ø˜6Ô!à(,Ð%Ü�J‰JÜØ|ØØÜ�OÓ$ØÜ�OÓ$ vÕ-°Õ3ôð ˜L×(Ü�L‰Lð1àô÷
 Ü×$Ñ$¤_Ô5Ü—‘Ð 5Ô6Ü! 7¨=Õ#9Ð":Ó;Ò;ñI IôL ˆ7ƒ|�qÔßŸ.×,>Ü�J‰JÜØaô÷
 Ü�L‰LØIØ"×+Ñ+ôð �N‰NÐ-Õ.ç˜^Ò3çß"Ø×+Ñ+¨~×/IÑ/IÔIàÒ'ä�L‰LÐUÔVØ�N‰N˜;Õ'ßÜ�L‰LÐUÔVØ�N‰N˜>Ô*çÜ�‰ØkØ�L‰L‹N×#Ñ#Ü�‹L˜1Õõ	
ô 	�‰ÐTÔUçÜ×Ñœ_Ô-Ü�‰Ð-Ô.à€NùòU Eùò EøôL $¤[Ð1ô 	Ü�J‰JÜØDØôó
 ð	ûôt #¤KÐ0ô 		Ü˜a¤×-Ò-Ü—
‘
ÜØOØ!Ü˜“Fô	ð $×*Ñ*¨=Ô9Þûð		ûôX ô
	)ô �J‰JÜØsØÜ�A“ô	ð  1ÐØ$(Ö!ûð
	)ûô* &ô Ü—
‘
ÜØtØ!Ü˜“Fô	ð (×.Ñ.¨}Ô=Þûðús½   Ä3AB,Å?AB1ÒAB6Õ&AC*Õ.<AC*Ö+AC*Ö:,AC*×'!AC*ã:AAEä>AAEæAEæAEæAEæ4AFÁB6,AC'ÁC&AC'ÁC*AEÁC;AAEÁEAEÁEAFÁE!)AFÁFAFÁFAG%ÁF#6AG ÁG AG%c               óD   € V ^8„  d   QhRRRRRRRRRR	R
R	RRRRRRRRRR/# )r   Úfpr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r   r-   )r.   s   "r/   r0   r0   `  sv   € ÷ ñ Øðàðð ðð ð	ð
 #ðð #ðð ðð ðð ðð ðð ñr1   c
                óF   € \        V P                  4       VVVVVVVVV	4
      # )zz
Same thing than the function from_bytes but using a file pointer that is already ready.
Will not close the file pointer.
)r¨   Úread)
rª   r   r!   r"   r$   r&   r'   r)   r*   r+   s
   &&&&&&&&&&r/   Úfrom_fpr­   `  s5   € ô  Ø
�‰‹	ØØØØØØØØØóð r1   c               óD   € V ^8„  d   QhRRRRRRRRRR	R
R	RRRRRRRRRR/# )r   Úpathzstr | bytes | PathLiker   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r   r-   )r.   s   "r/   r0   r0   ~  sv   € ÷ 
ñ 
Ø
 ð
àð
ð ð
ð ð	
ð
 #ð
ð #ð
ð ð
ð ð
ð ð
ð ð
ð ñ
r1   c
                ó�   € \        V R4      ;_uu_ 4       p
\        V
VVVVVVVVV	4
      uuRRR4       #   + '       g   i     R# ; i)z‰
Same thing than the function from_bytes but with one extra step. Opening and reading given file path in binary mode.
Can raise IOError.
ÚrbN)Úopenr­   )r¯   r   r!   r"   r$   r&   r'   r)   r*   r+   rª   s   &&&&&&&&&& r/   Ú	from_pathr³   ~  sH   € ô  
ˆd�D×	Ô	˜RÜØØØØØØØ ØØØó
÷ 
×	×	Ó	ús	   •4´A	c               óD   € V ^8„  d   QhRRRRRRRRRR	R
R	RRRRRRRRRR/# )r   Úfp_or_path_or_payloadz!PathLike | str | BinaryIO | bytesr   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   )r.   s   "r/   r0   r0   �  sv   € ÷ ?ñ ?Ø<ð?àð?ð ð?ð ð	?ð
 #ð?ð #ð?ð ð?ð ð?ð ð?ð ð?ð 
ñ?r1   c
                ó  € \        V \        \        34      '       d   \        V VVVVVVVVV	R7
      p
V
'       * # \        V \        \
        34      '       d   \        V VVVVVVVVV	R7
      p
V
'       * # \        V VVVVVVVVV	R7
      p
V
'       * # )a  
Detect if the given input (file, bytes, or path) points to a binary file. aka. not a string.
Based on the same main heuristic algorithms and default kwargs at the sole exception that fallbacks match
are disabled to be stricter around ASCII-compatible but unlikely to be a string.
)	r   r!   r"   r$   r&   r'   r)   r*   r+   )rN   rc   r   r³   rP   rO   r¨   r­   )rµ   r   r!   r"   r$   r&   r'   r)   r*   r+   Úguessess   &&&&&&&&&& r/   Ú	is_binaryr¸   �  sÏ   € ô" Ð'¬#¬x¨×9Ò9ÜØ!ØØ!ØØ%Ø%Ø!5ØØ1Ø+ô
ˆðZ Œ;ÐôC 
ØäÜð	
÷
ò 
ô Ø!ØØ!ØØ%Ø%Ø!5ØØ1Ø+ô
ˆð4 Œ;Ðô Ø!ØØ!ØØ%Ø%Ø!5ØØ1Ø+ô
ˆð Œ;Ðr1   )	é   é   çš™™™™™É?NNTFr=   T)	r¹   rº   r»   NNTFr=   F)0Ú__conditional_annotations__Ú
__future__r   ÚloggingÚosr   Útypingr   Úcdr   r   r   r	   Úconstantr
   r   r   r   r   Úmdr   Úmodelsr   r   Úutilsr   r   r   r   r   r   Ú	getLoggerrS   ÚStreamHandlerrV   ÚsetFormatterÚ	Formatterr   Ú__annotations__r   Ú_supported_encr]   ra   r   r¨   r­   r³   r¸   )r¼   s   @r/   Ú<module>rÌ      s  øðß "Ð "ã Ý Ý ÷ó ÷õ õ ß 0÷÷ ð 
×	Ò	Ð/Ó	0€Ø×'Ò'Ó)€Ø × Ñ Ø×ÒÐAÓBôð €ˆyÓ Ø€ˆyÓ ã$€Nð-Ù! .×1Ò1Ø× Ñ  Ö0à× Ñ  Ö0ñ %ð &3°]Õ%BÐ ˜Ó B÷d÷N÷<
÷>?ñ ?øðU ô -Ø×Ñ˜^×,ð-ús   Â+DÃDÄD-Ä,D-