Ë
    G<k¼‹  ã                  ó‚  — U d dl mZ d dlZd dlmZ d dlmZ ddlmZm	Z	m
Z
mZ ddlmZmZmZmZmZmZmZmZ ddlmZ dd	lmZmZmZ dd
lmZmZmZmZm Z   ejB                  d«      Z" ejF                  «       Z$e$jK                   ejL                  d«      «        e'eejP                  d¬«      Z)de*d<   	 	 	 	 	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z+	 	 	 	 	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z,	 	 	 	 	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z-	 	 	 	 	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z.y)é    )Ú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Ú_CJK_DECODERSÚ_KNOWN_MB_DECODERSÚ_SINGLE_BYTE_DECODERS)Ú
mess_ratio)ÚCharsetMatchÚCharsetMatchesÚCoherenceMatches)Úany_specified_encodingÚcut_sequence_chunksÚ	iana_nameÚidentify_sig_or_bomÚshould_strip_sig_or_bomÚcharset_normalizerz)%(asctime)s | %(levelname)s | %(message)sT)ÚkeyÚreversez	list[str]ÚIANA_SUPPORTED_MB_FIRSTc
                óP  — t        | t        t        f«      s#t        dj	                  t        | «      «      «      ‚|rBt        j                  }
t        j                  t        «       t        j                  t        «       t        | «      }|dk(  r_t        j                  d«       |r.t        j                  t        «       t        j                  
«       t        t!        | dddg d«      g«      S t        j#                  t        «      xr t        j$                   }|�F|r*t        j'                  t        d	d
j)                  |«      «       |D �cg c]  }t+        |d«      ‘Œ }}ng }|�F|r*t        j'                  t        dd
j)                  |«      «       |D �cg c]  }t+        |d«      ‘Œ }}ng }|||z  k  r#|rt        j'                  t        d|||«       d}|}|dkD  r||z  |k  rt-        ||z  «      }t        | «      t.        k  }t        | «      t0        k\  }|r|r;t        j'                  t        d|«       n|r|rt        j'                  t        d|«       g }|rt3        | «      nd}|�.|j5                  |«       |rt        j'                  t        d|«       t7        «       }t7        «       }i }i }|xr dt        |«      cxk  xr dk  nc }d}t7        «       }d}d}d}d}d}d}t        «       }t        «       } t9        | «      \  }!}"|!�9|j;                  d|!«       |r%t        j'                  t        dt        |"«      |!«       |j5                  d«       d|vr|j5                  d«       d}#|t<        z   D �]n  }$|r|$|vrŒ|r|$|v rŒ|$|v rŒ|j?                  |$«       d}%|!|$k(  }&|&xr tA        |$«      }'|$dv r |&s|rt        j'                  t        d|$«       Œb|$dv r |&s|rt        j'                  t        d|$«       Œ†|$|v r|rt        j'                  t        d|$«       Œ¨|$tB        v}(|r^|(r|$tD        v rT|(stG        |$«      })ntI        |$«      })|jK                  |)«      r*|r&t        j'                  t        d|$t7        |)«      |«       �Œ|r(|(s&||k\  r!|rt        j'                  t        d|$||«       �Œ:|r!|(s|rt        j'                  t        d|$«       �Œ]|( xr | }*	 |r5|(s3tM        |'s| dt-        d«       n| t        |"«      t-        d«       |$¬«       nC|*sA|$dk(  r|&rtM        | |$¬«      }%|%r+|%d   d k(  r#|%dd }%ntM        |'s| n| t        |"«      d |$¬«      }%|&rt        |"«      nd},|#�|#jR                  |,k7  r:tU        |,|t-        ||z  «      «      }#tW        dt-        t        |#«      d"z  «      «      }-|(xr |%duxr t        |%«      |k  }.|.r|rt        j'                  t        d#|$«       d}/d}0g }1g }2	 tY        | |$|#||&|'|"|(|%|*«
      D ]_  }3|1j5                  |3«       |j[                  |3«      }4|4€t]        |3||«      }4|4||3<   |2j5                  |4«       |4|k\  r|/dz  }/|/-k\  s|&sŒ\|'rŒ_ n |2rt_        |2«      t        |2«      z  nd}5|0s.|r,|(s*|5|k  r%|/-k  r 	 | t-        d&«      d ja                  |$d'¬(«       |5|k\  s|/-k\  r¤|$tb        v r|je                  tb        |$   «       |r+t        j'                  t        d*|$|/tg        |5d+z  d,¬-«      «       |	rS|$dd|d.d/fv rJ|0sH|%€"	 tM        |'s| n| t        |"«      d |$¬«      }%|rd}%t!        | |$||&g |%|¬1«      }6|$|k(  r|6}n
|$dk(  r|6}n|6}�Œé|*r	 tM        |'s| n| t        |"«      d |$¬«      }%|r*t        j'                  t        d2|$tg        |5d+z  d,¬-«      «       |(stG        |$«      }7ntI        |$«      }7|7r|rt        j'                  t        d3|$|7«       g }8|$dk7  rV|7rd4j)                  |7«      nd}9|1D ]<  }3|3|9f}:|j[                  |:«      };|;€ti        |3||9«      };|;||:<   |8j5                  |;«       Œ> t        |8«      dk(  rtk        |8d   «      n
tm        |8«      }<|<r|rt        j'                  t        d5|<|$«       t!        | |$|5|&|<|r|$|ddfv r|%nd|¬1«      }=|j5                  |=«       |r|(s
|5d6k  r|dz  }|$|ddfv ry|5d7k  rt|5dk(  r^t        j                  d8|=jn                  «       |r.t        j                  t        «       t        j                  
«       t        |=g«      c S | j5                  |=«       t        | «      r€|�||v rzd|v rvd|v rr| jq                  «       }>|>€J ‚t        j                  d8|>jn                  «       |r.t        j                  t        «       t        j                  
«       t        |>g«      c S |sM|(sK|<r|<d   d   nd}?|?d9k\  r:d|v r6d|v r2d%}|je                  |7«       |rt        j'                  t        d:|$|5|?«       |si|(rg|.re|%�ct        |%«      |d;z  k  rR|$tr        v rJ|5dk(  s|<rCd|v r?d|v r;d%}|r7t        j'                  t        d<|$|5t        |%«      |t        |%«      |z  d+z  «       |$|!k(  s�Œt        j                  d=|$«       |r.t        j                  t        «       t        j                  
«       t        ||$   g«      c S  t        |«      dk(  r§|s|s|r|rt        j'                  t        d>«       |r2t        j                  d?|jn                  «       |j5                  |«       nQ|�'t        j                  d@«       |j5                  |«       n(|r&t        j                  dA«       |j5                  |«       |r<t        j                  dB|jq                  «       jn                  t        |«      dz
  «       nt        j                  dC«       |r.t        j                  t        «       t        j                  
«       |S c c}w c c}w # tN        tP        f$ rB}+t        |+tP        «      s'|r%t        j'                  t        d!|$tM        |+«      «       Y d}+~+�	Œd}+~+ww xY w# tN        tP        f$ re}+|*r-|r%t        j'                  t        d!|$tM        |+«      «       Y d}+~+�	ŒH|r%t        j'                  t        d$|$tM        |+«      «       -}/d%}0Y d}+~+�Œ‰d}+~+ww xY w# tN        $ r2}+|r%t        j'                  t        d)|$tM        |+«      «       Y d}+~+�	Œ·d}+~+ww xY w# tN        tP        f$ r! |rt        j'                  t        d0|$«       Y �	Œîw xY w# tN        tP        f$ r2}+|r%t        j'                  t        d!|$tM        |+«      «       Y d}+~+�
Œ.d}+~+ww xY w)Daf  
    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: {}r   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.r   z>Trying to detect encoding from a tiny portion of (%i) byte(s).zIUsing lazy str decoding because the payload is quite large, (%i) 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!zbSkipping %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)Úencodingr(   u   ï»¿z9Code page %s does not fit given bytes sequence at ALL. %sé   zpCode page %s is a multi byte encoding table and it appear that at least one character was encoded using n-bytes.zaLazyStr Loading: After MD chunk decode, code page %s does not fit given bytes sequence at ALL. %sTg     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 %%.éd   é   )Úndigitsr&   r'   z>%s does not decode the whole payload: fallback entry withheld.)Úpreemptive_declarationz=%s passed initial chaos probing. Mean measured chaos is %f %%z&%s should target any language(s) of %sú,z We detected language %s using %sg{®Gáz”?çš™™™™™¹?z.Encoding detection: %s is most likely the one.g      à?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.):Ú
isinstanceÚ	bytearrayÚbytesÚ	TypeErrorÚformatÚtypeÚloggerÚlevelÚ
addHandlerÚexplain_handlerÚsetLevelr   ÚlenÚdebugÚremoveHandlerr   r   ÚisEnabledForÚdisabledÚlogÚjoinr   Úintr   r   r   ÚappendÚsetr   Úinsertr   Úaddr   r   r   r   r	   Ú
isdisjointÚstrÚUnicodeDecodeErrorÚLookupErrorÚstartÚrangeÚmaxr   Úgetr   ÚsumÚdecoder   ÚupdateÚroundr   Úlistr
   r)   Úbestr   )@Ú	sequencesÚstepsÚ
chunk_sizeÚ	thresholdÚcp_isolationÚcp_exclusionÚpreemptive_behaviourÚexplainÚlanguage_thresholdÚenable_fallbackÚprevious_logger_levelÚlengthÚtrace_enabledÚcpÚis_too_small_sequenceÚis_too_large_sequenceÚprioritized_encodingsÚspecified_encodingÚtestedÚsoft_failure_skipÚmess_by_chunkÚcoherence_by_chunkÚexplain_messÚ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Úsample_offsetsÚencoding_ianaÚdecoded_payloadÚbom_or_sig_availableÚstrip_sig_or_bomÚis_multi_byte_decoderÚenc_languagesÚdeferred_decodingÚeÚsample_startÚmax_chunk_gave_upÚmulti_byte_bonusÚearly_stop_countÚlazy_str_hard_failureÚ	md_chunksÚ	md_ratiosÚchunkÚ
chunk_messÚmean_mess_ratioÚfallback_entryÚtarget_languagesÚ	cd_ratiosÚlg_inclusionr   Úchunk_languagesÚcd_ratios_mergedÚcurrent_matchÚprobable_resultÚbest_coherences@                                                                   úY/var/www/tapir-food/flask_app/venv/lib/python3.12/site-packages/charset_normalizer/api.pyÚ
from_bytesr˜   .   sÕ  € ô< �i¤)¬UÐ!3Ô4ÜØA×HÑHÜ�Y“óó
ð 	
ñ Ü%+§\¡\ÐÜ×Ñœ/Ô*Ü�‰œÔä�i“.€Fà�‚{Ü�‰ÐSÔTÙÜ× Ñ ¤Ô1Ü�O‰OÐ1Ô2Üœ|¨I°wÀÀUÈBÐPRÓSÐTÓUÐUô !×-Ñ-¬eÓ4ÒL¼V¿_¹_Ð9L€MàÐÙÜ�J‰JÜð9à—	‘	˜,Ó'ô	ð 8DÖD°œ	 " eÕ,ÐDˆÑDàˆàÐÙÜ�J‰JÜð:à—	‘	˜,Ó'ô	ð 8DÖD°œ	 " eÕ,ÐDˆÑDàˆà�*˜uÑ$Ò%ÙÜ�J‰JÜØpØØØôð ˆØˆ
àˆq‚y�V˜e‘^ jÒ0Ü˜ %™Ó(ˆ
ä"% i£.Ô3EÑ"EÐÜ"% i£.Ô4DÑ"DÐáÙÜ�J‰JÜØPØõñ
 
ÙÜ�J‰JÜØ[Øôð (*Ðñ .BÔ˜yÔ)Àtð ð Ð%Ø×$Ñ$Ð%7Ô8ÙÜ�J‰JÜØRØ"ôô “u€FÜ"%£%Ðð ')€MØIKÐØÒ:˜q¤C¨Ó$5Ö:¸Ô:€Lð $)ÐÜ,/«EÐð -.Ð$Ø"#Ðð ',Ðà*.€NØ'+€KØ.2Ðä,Ó.€Gä)7Ó)9Ðä 3°IÓ >Ñ€L�+àÐØ×$Ñ$ Q¨Ô5ÙÜ�J‰JÜØ[Ü�KÓ Øô	ð × Ñ  Ô)àÐ+Ñ+Ø×$Ñ$ WÔ-à#'€NØ.Ô1HÑHó P<ˆÙ˜M°Ñ=Øá˜M¨\Ñ9Øà˜FÑ"Øà�
‰
�=Ô!à&*ˆØ%1°]Ñ%BÐØ!5ò "
Ô:QØó;
Ðð Ð0Ñ0Ñ9MÙÜ—
‘
ÜØrØ!ôð
 Ø˜IÑ%Ñ.BÙÜ—
‘
ÜØhØ!ôð
 ð Ð-Ñ-ÙÜ—
‘
ÜØoØ!ôð
 à -Ô5JÐ JÐñ "Ù%¨Ô:LÑ)Lá(Ü 2°=Ó A‘ä 5°mÓ D�Ø*×5Ñ5°mÔDÙ Ü—J‘JÜØ|Ø%Ü˜MÓ*Ø3ôñ ñ #Ù)Ø0Ð4JÒJáÜ—
‘
ÜØnØ!Ø4Ø*ôñ ñ
 %Ñ-BÙÜ—
‘
ÜØYØ!ôñ
 ð &Ð%ÒCÐ.CÐ*Cð 	ð*	Ù$Ñ-BÜñ  0ð " +¤C¨£IÑ.à&¤s¨;Ó'7¼#¸d»)ÐDà*öñ 'ð ! GÒ+Ñ0DÜ&)Ø!Ø!.ô'�Oñ '¨?¸1Ñ+=ÀÒ+IØ*9¸!¸"Ð*=™ä&)ñ $4ñ &à!*¬3¨{Ó+;Ð+=Ð!>à!.ô'�Oñ( ,@”s˜;Ô'ÀQˆØÐ! ^×%9Ñ%9¸\Ò%IÜ" <°¼¸VÀe¹^Ó9LÓMˆNÜ # A¤s¬3¨~Ó+>ÀÑ+BÓ'CÓ DÐð "ò .Ø tÐ+ò.ä�OÓ$ vÑ-ð 	ñ ÙÜ—
‘
Üð1à!ô	ð !"ÐØ %Ðà!ˆ	Øˆ	ð4	)Ü,ØØØØØ$Ø ØØ%ØØ!óò �ð × Ñ  Ô'à*×.Ñ.¨uÓ5�
ØÐ%Ü!+¨E°9¸lÓ!K�JØ+5�M %Ñ(Ø× Ñ  Ô,à Ò*Ø$¨Ñ)Ð$à$Ð(9Ò9Ú(Ò1Aáð5ñj EN¤ Y£´#°i³.Ò!@ÐSVˆñ
 &Ù%Ù)Ø )Ò+Ø Ð#4Ò4ð
Øœ#˜d›)˜+Ð&×-Ñ-¨mÀHÐ-ÔMð ˜iÒ'Ð+;Ð?PÒ+PØÔ 6Ñ6Ø!×(Ñ(Ô)?ÀÑ)NÔOÙÜ—
‘
Üð4à!Ø$Ü˜/¨CÑ/¸Ô;ôñ  Ø!Ø˜WÐ&8¸(ÀHÐMñNá-ð #Ð*ð!Ü*-ñ (8ñ !*à%.¬s°;Ó/?Ð/AÐ%Bà%2ô+˜ñ  -à*.˜ä!-ØØ!ØØ(ØØ#Ø+=ô"�ð !Ð$6Ò6Ø)7Ñ&Ø" gÒ-Ø%3‘Nà"0�KÙáðÜ"%ñ  0ñ "à&¤s¨;Ó'7Ð'9Ð:à*ô#�ñ$ Ü�J‰JÜØOØÜ�o¨Ñ+°QÔ7ô	ñ %Ü*<¸]Ó*KÑä4°]ÓCÐáÙÜ—
‘
ÜØ<Ø!Ø$ô	ð ˆ	ð ˜GÒ#ñ /?�—‘Ð)Ô*ÀDð ð #ò 2�Ø˜lÐ+�Ø"4×"8Ñ"8¸Ó"=�Ø"Ð*Ü&5ØÐ1°<ó'�Oð />Ð& sÑ+Ø× Ñ  Õ1ð2ô �9‹~ Ò"ô �˜1‘Ôä'¨	Ó2ð 	ñ ÙÜ—
‘
ÜØ6Ø$Ø!ô	ô %ØØØØ Øñ .Ø$Ð);¸WÀgÐ(NÑNñ  ð
 à#5ô
ˆð" 	�‰�}Ô%ñ #Ù)Ø $Ò&à,°Ñ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Ù7GÐ-¨aÑ0°Ò3ÈSˆNØ Ò$¨°FÑ):¸wÈ&Ñ?PØ)-Ð&Ø+×2Ñ2Ð3CÔDÙ Ü—J‘JÜð TØ%Ø'Ø&ôñ *Ù%Ù ØÐ+Ü�OÓ$ v°¡}Ò4Ø¤Ñ.Ø  CÒ'Ñ+;Ø˜6Ñ!Ø˜6Ñ!à(,Ð%ÙÜ—
‘
Üð AØ!Ø#Ü˜Ó(ØÜ˜Ó(¨6Ñ1°CÑ7ôð ˜LÔ(Ü�L‰Lð1àôñ
 Ü×$Ñ$¤_Ô5Ü—‘Ð 5Ô6Ü! 7¨=Ñ#9Ð":Ó;Ò;ðaP<ôd ˆ7ƒ|�qÒÙ™.Ñ,>ÙÜ—
‘
ÜØeôñ
 Ü�L‰LØIØ"×+Ñ+ôð �N‰NÐ-Õ.ØÐ$Ü�L‰LÐUÔVØ�N‰N˜;Õ'ÙÜ�L‰LÐUÔVØ�N‰N˜>Ô*áÜ�‰ØkØ�L‰L‹N×#Ñ#Ü�‹L˜1Ñõ	
ô 	�‰ÐTÔUáÜ×Ñœ_Ô-Ü�‰Ð-Ô.à€NùòU Eùò Eøôv #¤KÐ0ò 		Ü˜a¤Ô-Ù Ü—J‘JÜØSØ%Ü˜A›ô	õ ûð		ûôF Üð
ò 	)ñ !ñ !Ü—J‘JÜØSØ%Ü˜A›ô	õ ÙÜ—
‘
ÜØwØ!Ü˜“Fô	ð  1ÐØ$(Ö!ûð1	)ûôN &ò Ù Ü—J‘JÜØxØ%Ü˜A›ô	õ ûðûôV /´Ð<ò !Ù(Ü"ŸJ™JÜ %Ø `Ø -ôò
 !ð!ûôR '¬Ð4ò Ù Ü—J‘JÜØSØ%Ü˜A›ô	õ ûðús’   ÅpÆp#ÓA:p(×,A/q<Ùq<Ùq<Ús3Üt1Ýu$ð(q9ð77q4ñ4q9ñ<s0ò)s+ò:+s+ó+s0ó3	t.ó<'t)ô)t.ô1,u!õ u!õ$v%õ3'v ö v%c
                óF   — t        | j                  «       |||||||||	«
      S )z†
    Same thing than the function from_bytes but using a file pointer that is already ready.
    Will not close the file pointer.
    )r˜   Úread)
ÚfprY   rZ   r[   r\   r]   r^   r_   r`   ra   s
             r—   Úfrom_fprœ     s5   € ô  Ø
�‰‹	ØØØØØØØØØóð ó    c
                ón   — t        | d«      5 }
t        |
|||||||||	«
      cddd«       S # 1 sw Y   yxY w)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œ   )ÚpathrY   rZ   r[   r\   r]   r^   r_   r`   ra   r›   s              r—   Ú	from_pathr¢   7  sK   € ô  
ˆd�DÓ	ð 
˜RÜØØØØØØØ ØØØó
÷
÷ 
ò 
ús   �+«4c
                óê   — t        | t        t        f«      rt        | |||||||||	¬«
      }
|
 S t        | t        t
        f«      rt        | |||||||||	¬«
      }
|
 S t        | |||||||||	¬«
      }
|
 S )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.
    )	rY   rZ   r[   r\   r]   r^   r_   r`   ra   )r3   rK   r   r¢   r5   r4   r˜   rœ   )Úfp_or_path_or_payloadrY   rZ   r[   r\   r]   r^   r_   r`   ra   Úguessess              r—   Ú	is_binaryr¦   V  sÇ   € ô" Ð'¬#¬x¨Ô9ÜØ!ØØ!ØØ%Ø%Ø!5ØØ1Ø+ô
ˆðZ ˆ;ÐôC 
ØäÜð	
ô
ô Ø!ØØ!ØØ%Ø%Ø!5ØØ1Ø+ô
ˆð4 ˆ;Ðô Ø!ØØ!ØØ%Ø%Ø!5ØØ1Ø+ô
ˆð ˆ;Ðr�   )	é   é   çš™™™™™É?NNTFr2   T)rX   zbytes | bytearrayrY   rE   rZ   rE   r[   Úfloatr\   úlist[str] | Noner]   r«   r^   Úboolr_   r¬   r`   rª   ra   r¬   Úreturnr   )r›   r   rY   rE   rZ   rE   r[   rª   r\   r«   r]   r«   r^   r¬   r_   r¬   r`   rª   ra   r¬   r­   r   )r¡   zstr | bytes | PathLikerY   rE   rZ   rE   r[   rª   r\   r«   r]   r«   r^   r¬   r_   r¬   r`   rª   ra   r¬   r­   r   )	r§   r¨   r©   NNTFr2   F)r¤   z!PathLike | str | BinaryIO | bytesrY   rE   rZ   rE   r[   rª   r\   r«   r]   r«   r^   r¬   r_   r¬   r`   rª   ra   r¬   r­   r¬   )/Ú
__future__r   ÚloggingÚosr   Útypingr   Úcdr   r   r	   r
   Úconstantr   r   r   r   r   r   r   r   Úmdr   Úmodelsr   r   r   Úutilsr   r   r   r   r   Ú	getLoggerr9   ÚStreamHandlerr<   ÚsetFormatterÚ	FormatterÚsortedÚ__contains__r   Ú__annotations__r˜   rœ   r¢   r¦   © r�   r—   ú<module>r¿      sä  ðÞ "ã Ý Ý ÷ó ÷	÷ 	ó 	õ ß BÑ B÷õ ð 
ˆ×	Ñ	Ð/Ó	0€Ø'�'×'Ñ'Ó)€Ø × Ñ Ø€G×ÑÐAÓBôñ &,ØÐ*×7Ñ7Àô&Ð ˜ó ð ØØØ%)Ø%)Ø!%ØØ #Ø ðhØ ðhàðhð ðhð ð	hð
 #ðhð #ðhð ðhð ðhð ðhð ðhð óhðZ ØØØ%)Ø%)Ø!%ØØ #Ø ðØðàðð ðð ð	ð
 #ðð #ðð ðð ðð ðð ðð óð@ ØØØ%)Ø%)Ø!%ØØ #Ø ð
Ø
 ð
àð
ð ð
ð ð	
ð
 #ð
ð #ð
ð ð
ð ð
ð ð
ð ð
ð ó
ðB ØØØ%)Ø%)Ø!%ØØ #Ø!ð?Ø<ð?àð?ð ð?ð ð	?ð
 #ð?ð #ð?ð ð?ð ð?ð ð?ð ð?ð 
ô?r�   