+
     Bi
`                    P   ^ RI Ht ^ RIHt ^RIHtHtHtHtH	t	H
t
 Rt]'       d   ^ RIHt ^ RIHtHt ^RIHtHtHt ]! R ]! ^ 4       4       4      ]! ]! ^4      4      ,          t]]! R	4      ,
          t]]! R
4      ,
          t]t]t]t]! R4      t]]! R4      ,          t]! R4      t ] ]! R4      ,          t!]! R4      t"]! RRRR	RRRRRRRRRR/4      t# ! R R4      t$ ! R R]%4      t&R ]'/R! R" llt(R ]'/R# R$ llt) ! R% R&4      t* ! R' R(4      t+ ! R) R*4      t,R+ R, lt-R- R. lt.R/ R0 lt/R1 R2 lt0R3 R4 lt1R5 R6 lt2R7 R8 lt3R9 R: lt4R; R< lt5R= R> lt6R? R@ lt7RA RB lt8RC RD lt9RER/RF RG llt:RH RI lt;RJ RK lt<RL RM lt=RN RO lt>RP RQ lt?RR RS lt@RT RU ltARV RW ltBRX# )Y    )annotations)MappingProxyType)RE_DATETIMERE_LOCALTIME	RE_NUMBERmatch_to_datetimematch_to_localtimematch_to_numberF)Iterable)IOAny)Key
ParseFloatPosc              #  8   "   T F  p\        V4      x  K  	  R # 5iN)chr).0is   & &/usr/lib/python3.14/tomllib/_parser.py	<genexpr>r      s     1y!s1vvys   	z	
z 	
z@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_z"'abcdefABCDEF0123456789z\bz\tz\nz\fz\rz\""z\\\c                      ] tR t^:tRtRtR# )DEPRECATED_DEFAULTzfSentinel to be used as default arg during deprecation
period of TOMLDecodeError's free-form arguments. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r"       r   r!   r!   :   s    8r)   r!   c                  0    ] tR t^?tRt]]]3R R lltRtR# )TOMLDecodeErrora  An error raised if a document is not valid TOML.

Adds the following attributes to ValueError:
msg: The unformatted error message
doc: The TOML document being parsed
pos: The index of doc where parsing failed
lineno: The line corresponding to pos
colno: The column corresponding to pos
c               (    V ^8  d   QhRRRRRRRR/# )   msgstrdocposr   argsr   r"   )formats   "r   __annotate__TOMLDecodeError.__annotate__J   s2     / // / 	/
 /r)   c                	   V'       gC   \        V\        4      '       d-   \        V\        4      '       d   \        V\        4      '       gg   ^ RIpVP	                  R\
        ^R7       V\        Jd   V.VO5pV\        Jd   V.VO5pV\        Jd   V.VO5p\        P                  ! V .VO5!   R# VP                  R^ V4      ^,           pV^8X  d   V^,           pMW2P                  R^ V4      ,
          pV\        V4      8  d   RpMRV RV 2pV RV R	2p	\        P                  W	4       Wn        W n        W0n        W`n        Wpn        R# )
r   Nz{Free-form arguments for TOMLDecodeError are deprecated. Please set 'msg' (str), 'doc' (str) and 'pos' (int) arguments only.)
stacklevelr   zend of documentzline z	, column z (at ))
isinstancer/   intwarningswarnDeprecationWarningr!   
ValueError__init__countrindexlenr.   r0   r1   linenocolno)
selfr.   r0   r1   r2   r;   rC   rD   
coord_reprerrmsgs
   &&&&*     r   r?   TOMLDecodeError.__init__J   s9    c3''c3''c3''MMV"	   ,,zTz,,zTz,,zTz,t,4C(1,Q;!GE**T1c22E#c(?*J 	%9J5j\+D)
r)   )rD   r0   rC   r.   r1   N)r#   r$   r%   r&   r'   r!   r?   r(   r"   r)   r   r+   r+   ?   s     &%%	/ /r)   r+   parse_floatc               $    V ^8  d   QhRRRRRR/# )r-   fpz	IO[bytes]rI   r   returndict[str, Any]r"   )r3   s   "r   r4   r4   |   s!     	- 	-Y 	-: 	-. 	-r)   c                  V P                  4       p VP                  4       p\	        Y1R7      #   \         d    \        R4      Rhi ; i)z%Parse TOML from a binary file object.zEFile must be opened in binary mode, e.g. use `open('foo.toml', 'rb')`N)rI   )readdecodeAttributeError	TypeErrorloads)rK   rI   bss   "$  r   loadrV   |   sN    
	AHHJ
 ,,	  S
	s	   . Ac               $    V ^8  d   QhRRRRRR/# )r-   rU   r/   rI   r   rL   rM   r"   )r3   s   "r   r4   r4      s&     D DS DZ DN Dr)   c                  V P                  RR4      p^ p\        4       pR
p\        T4      p \        Y#\        4      p Y#,          pTR8X  d   T^,          pK,  T\        9   d   \        Y#YET4      p\        Y#\        4      pMyTR8X  d`    Y#^,           ,          pTP                  P                  4        TR8X  d   \        Y#T4      w  r5M\        Y#T4      w  r5\        Y#\        4      pMTR8w  d   \!        RY#4      h\#        Y#4      p Y#,          pTR8w  d   \!        R	Y#4      hT^,          pEK    \        \        3 d%    \        R\        T 4      P                   R24      Rhi ; i  \         d     TP$                  P&                  # i ; i  \         d    Rp ELi ; i  \         d     TP$                  P&                  # i ; i)zParse TOML from a string.z
r   zExpected str object, not ''N[#zInvalid statementz5Expected newline or end of document after a statementr"   )replacerQ   rR   typer%   Outputmake_safe_parse_float
skip_charsTOML_WS
IndexErrorKEY_INITIAL_CHARSkey_value_ruleflagsfinalize_pendingcreate_list_rulecreate_dict_ruler+   skip_commentdatadict)rU   rI   srcr1   outheadercharsecond_chars   "$      r   rS   rS      s   
ii%
 C
(CF'4K 7+	8D 4<1HC$$ 3DCSw/CS[#*-Ag, II&&(c!.s=V.s=Sw/CS[!"5s@@ 3$	8D 4<!G  	qw I& (a)=)=(>a@
	2  	F 88==I	  #"#"  	 88==	s@   D. E& 
F F  .5E#&F	F	FF GGc                  j    ] tR t^tRt^ t^tR R ltR R ltR R lt	R R	 lt
R
 R ltR R ltRtR# )Flagsz)Flags that map to parsed keys/namespaces.c                   V ^8  d   QhRR/# r-   rL   Noner"   )r3   s   "r   r4   Flags.__annotate__   s     : :$ :r)   c                	2    / V n         \        4       V n        R # r   )_flagsset_pending_flagsrE   s   &r   r?   Flags.__init__   s    1347Er)   c               $    V ^8  d   QhRRRRRR/# )r-   keyr   flagr:   rL   ru   r"   )r3   s   "r   r4   rv      s!     - -s -# -$ -r)   c                	>    V P                   P                  W34       R # r   )rz   addrE   r~   r   s   &&&r   add_pendingFlags.add_pending   s    ,r)   c                   V ^8  d   QhRR/# rt   r"   )r3   s   "r   r4   rv      s     $ $$ $r)   c                	    V P                    F  w  rV P                  WR R7       K  	  V P                   P                  4        R# )F	recursiveN)rz   ry   clearr   s   &  r   rf   Flags.finalize_pending   s6    ,,ICHHS%H0 -!!#r)   c                    V ^8  d   QhRRRR/# r-   r~   r   rL   ru   r"   )r3   s   "r   r4   rv      s        S  T  r)   c                	    V P                   pVR R  F  pW29  d    R # W#,          R,          pK  	  VP                  VR,          R 4       R # )Nnested)rx   pop)rE   r~   contks   &&  r   	unset_allFlags.unset_all   sC    {{SbA}78$D  	R$r)   c               (    V ^8  d   QhRRRRRRRR/# )	r-   r~   r   r   r:   r   boolrL   ru   r"   )r3   s   "r   r4   rv      s.     	N 	Ns 	N# 	NT 	Nd 	Nr)   c               	8   V P                   pVR R VR,          reV F2  pWt9  d   R\        4       R\        4       R/ /WG&   WG,          R,          pK4  	  Wd9  d   R\        4       R\        4       R/ /WF&   WF,          V'       d   RMR,          P                  V4       R # )Nre   recursive_flagsr   r   )rx   ry   r   )rE   r~   r   r   r   
key_parentkey_stemr   s   &&&$    r   ry   	Flags.set   s    {{"3BxRHA}"CE+<ceXrR78$D  %su.?RTUDNI(7CGGMr)   c               $    V ^8  d   QhRRRRRR/# )r-   r~   r   r   r:   rL   r   r"   )r3   s   "r   r4   rv      s!      s # $ r)   c                	   V'       g   R # V P                   pVRR  F-  pWC9  d    R # W4,          pW%R,          9   d    R# VR,          pK/  	  VR,          pWc9   d'   W6,          pW#R,          9   ;'       g    W#R,          9   # R # )FNr   Tr   re   r   )rx   )rE   r~   r   r   r   
inner_contr   s   &&&    r   is_	Flags.is_   s    {{SbA}J"344h'D  r7>D=(KKD9J4K,KKr)   )rx   rz   N)r#   r$   r%   r&   r'   FROZENEXPLICIT_NESTr?   r   rf   r   ry   r   r(   r"   r)   r   rr   rr      s7    3 F M:-$
 	N r)   rr   c                  B    ] tR tRtR R ltRR/R R lltR R	 ltR
tR# )
NestedDicti	  c                   V ^8  d   QhRR/# rt   r"   )r3   s   "r   r4   NestedDict.__annotate__
  s     ' '$ 'r)   c                	    / V n         R # r   rk   r{   s   &r   r?   NestedDict.__init__
  s	    $&	r)   access_listsTc               $    V ^8  d   QhRRRRRR/# )r-   r~   r   r   r   rL   rM   r"   )r3   s   "r   r4   r     s(       	
 
r)   c               	    V P                   pV F]  pWC9  d   / W4&   W4,          pV'       d    \        V\        4      '       d
   VR,          p\        V\         4      '       d   KT  \        R4      h	  V# )   z There is no nest behind this keyr   )rk   r9   listKeyError)rE   r~   r   r   r   s   &&$  r   get_or_create_nestNestedDict.get_or_create_nest  sb     IIA}7D
4 6 6BxdD))ABB  r)   c                    V ^8  d   QhRRRR/# r   r"   )r3   s   "r   r4   r     s     	" 	"s 	"t 	"r)   c                	    V P                  VR R 4      pVR,          pW29   d=   W#,          p\        V\        4      '       g   \        R4      hVP	                  / 4       R # / .W#&   R # )Nz/An object other than list found behind this keyr   )r   r9   r   r   append)rE   r~   r   last_keylist_s   &&   r   append_nest_to_listNestedDict.append_nest_to_list  s\    &&s3Bx0r7NEeT**PQQLL TDNr)   r   N)r#   r$   r%   r&   r?   r   r   r(   r"   r)   r   r   r   	  s     ' "	"	" 	"r)   r   c                  "    ] tR tRtR R ltRtR# )r^   i+  c                   V ^8  d   QhRR/# rt   r"   )r3   s   "r   r4   Output.__annotate__,  s      $ r)   c                	B    \        4       V n        \        4       V n        R # r   )r   rj   rr   re   r{   s   &r   r?   Output.__init__,  s    L	W
r)   )rj   re   N)r#   r$   r%   r&   r?   r(   r"   r)   r   r^   r^   +  s     r)   r^   c               (    V ^8  d   QhRRRRRRRR/# )r-   rl   r/   r1   r   charszIterable[str]rL   r"   )r3   s   "r   r4   r4   1  s(      C c - C r)   c                ^     W,          V9   d   V^,          pK   V#   \          d     T# i ; i)r   )rb   )rl   r1   r   s   &&&r   r`   r`   1  s?    h%1HC   J  Js    ,,c               0    V ^8  d   QhRRRRRRRRRR	R
R/# )r-   rl   r/   r1   r   expecterror_onzfrozenset[str]error_on_eofr   rL   r"   )r3   s   "r   r4   r4   :  sD      		 
   	r)   c               "    V P                  W!4      pVP	                  WV 4      '       g/   W,          V9  d   V^,          pK  \        RW,          : 2W4      hV#   \         d(    \        T 4      pT'       d   \        R T: 2Y4      Rh Lzi ; i)z	Expected NzFound invalid character )indexr>   rB   r+   
isdisjoint)rl   r1   r   r   r   new_poss   &&&$$ r   
skip_untilr   :  s    R))F( sw/00hh&1HC 8EsPPN  Rc(!IfZ"8#GTQ Rs   A /BBc               $    V ^8  d   QhRRRRRR/# r-   rl   r/   r1   r   rL   r"   )r3   s   "r   r4   r4   P  s!     	 	c 	 	 	r)   c                     W,          pVR8X  d   \        W^,           R\        RR7      # V#   \          d    R p L2i ; i)Nr[   r   Fr   r   )rb   r   ILLEGAL_COMMENT_CHARS)rl   r1   ro   s   && r   ri   ri   P  sO    8 s{q$)>U
 	
 J  s   - ==c               $    V ^8  d   QhRRRRRR/# r   r"   )r3   s   "r   r4   r4   \  s!      C c c r)   c                R     Tp\        W\        4      p\        W4      pW8X  g   K&  V# )T)r`   TOML_WS_AND_NEWLINEri   )rl   r1   pos_before_skips   && r   skip_comments_and_array_wsr   \  s,    
#673$!Jr)   c               (    V ^8  d   QhRRRRRRRR/# 	r-   rl   r/   r1   r   rm   r^   rL   tuple[Pos, Key]r"   )r3   s   "r   r4   r4   e  s(      # C f  r)   c                T   V^,          p\        W\        4      p\        W4      w  rVP                  P	                  V\
        P                  4      '       g1   VP                  P	                  V\
        P                  4      '       d   \        RV R2W4      hVP                  P                  V\
        P                  RR7        VP                  P                  V4       T P                  RT4      '       g   \        RY4      hT^,           T3#   \         d    \        RY4      Rhi ; i)	r   zCannot declare z twiceFr   Cannot overwrite a valueN]z.Expected ']' at the end of a table declaration)r`   ra   	parse_keyre   r   rr   r   r   r+   ry   rj   r   r   
startswithrl   r1   rm   r~   s   &&& r   rh   rh   e  s    1HC
Sw
'C"HC
yy}}S%--..#))--U\\2R2RuF;SFFIIMM#u**eM<N##C( >>#s##<c
 	
 7C<  N8#CMNs   D D'c               (    V ^8  d   QhRRRRRRRR/# r   r"   )r3   s   "r   r4   r4   y  s(      # C f  r)   c                (   V^,          p\        W\        4      p\        W4      w  rVP                  P	                  V\
        P                  4      '       d   \        RV 2W4      hVP                  P                  V4       VP                  P                  V\
        P                  RR7        VP                  P                  V4       T P                  RT4      '       g   \        RY4      hT^,           T3#   \         d    \        RY4      Rhi ; i)r-   "Cannot mutate immutable namespace Fr   r   Nz]]z0Expected ']]' at the end of an array declaration)r`   ra   r   re   r   rr   r   r+   r   ry   r   rj   r   r   r   r   s   &&& r   rg   rg   y  s    1HC
Sw
'C"HC
yy}}S%,,'' B3%H#SSIIIIMM#u**eM<N$$S) >>$$$>
 	
 7C<  N8#CMNs   .C8 8Dc               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r-   rl   r/   r1   r   rm   r^   rn   r   rI   r   rL   r"   )r3   s   "r   r4   r4     s<      	#-0?Ir)   c                2  aa \        WV4      w  popSR R SR,          rvSV,           pVV3R l\        ^\        S4      4       4       p	V	 Fl  p
VP                  P	                  V
\
        P                  4      '       d   \        RV
 2W4      hVP                  P                  V
\
        P                  4       Kn  	  VP                  P	                  V\
        P                  4      '       d   \        RV 2W4      h VP                  P                  V4      pY{9   d   \        RY4      h\        T\        \        34      '       d4   TP                  P!                  SS,           \
        P                  RR7       Y[T&   T#   \         d    \        RY4      R hi ; i)Nc              3  <   <"   T F  pSSR V ,           x  K  	  R # 5ir   r"   )r   r   rn   r~   s   & r   r   !key_value_rule.<locals>.<genexpr>  s!     L9KAvBQ//9Ks   zCannot redefine namespace r   r   Tr   r   )parse_key_value_pairrangerB   re   r   rr   r   r+   r   r   rj   r   r   r9   rk   r   ry   )rl   r1   rm   rn   rI   valuer   r   abs_key_parentrelative_path_cont_keyscont_keynestr~   s   &&&f&       @r   rd   rd     sa    +3[AOCes8SWj(NLq#c(9KL+99==5#6#677!$>xj"I3TT 			h(;(;< , yy}}^U\\2200@A3
 	
Nxx**>: 8#CC%$&&		fslELLDANJ  N8#CMNs   ;E= =Fc               (    V ^8  d   QhRRRRRRRR/# )	r-   rl   r/   r1   r   rI   r   rL   ztuple[Pos, Key, Any]r"   )r3   s   "r   r4   r4     s,      	%/r)   c                    \        W4      w  r W,          pVR8w  d   \        RW4      hV^,          p\        W\        4      p\        WV4      w  rWV3#   \         d    R p LMi ; i)N=z,Expected '=' after a key in a key/value pair)r   rb   r+   r`   ra   parse_value)rl   r1   rI   r~   ro   r   s   &&&   r   r   r     sv     "HC8 s{LcWW1HC
Sw
'CS{3JCU?  s   A A%$A%c               $    V ^8  d   QhRRRRRR/# )r-   rl   r/   r1   r   rL   r   r"   )r3   s   "r   r4   r4     s!     , ,3 ,S ,_ ,r)   c                   \        W4      w  rV3p\        W\        4      p  W,          pVR8w  d   W3# V^,          p\        W\        4      p\        W4      w  rW23,          p\        W\        4      pKU    \         d    Rp LZi ; i)TN.)parse_key_partr`   ra   rb   )rl   r1   key_partr~   ro   s   &&   r   r   r     s    "3,MC{C
Sw
'C
	"xD 3;8Oq7+&s0{7+  	D	s   A6 6BBc               $    V ^8  d   QhRRRRRR/# r-   rl   r/   r1   r   rL   tuple[Pos, str]r"   )r3   s   "r   r4   r4     s&     P P P# P/ Pr)   c                     W,          pV\        9   d   Tp\        W\        4      pWW1 3# VR8X  d   \        W4      # VR8X  d   \	        W4      # \        RW4      h  \          d    R p Lai ; i)NrY   r   z(Invalid initial character for a key part)rb   BARE_KEY_CHARSr`   parse_literal_strparse_one_line_basic_strr+   )rl   r1   ro   	start_poss   &&  r   r   r     s    8 ~	>2	&&&s{ **s{'11
Dc
OO  s   A A,+A,c               $    V ^8  d   QhRRRRRR/# r   r"   )r3   s   "r   r4   r4     s!     6 6# 6C 6O 6r)   c                .    V^,          p\        WRR7      # )r   F	multiline)parse_basic_strrl   r1   s   &&r   r   r     s    1HC3u55r)   c               (    V ^8  d   QhRRRRRRRR/# )	r-   rl   r/   r1   r   rI   r   rL   ztuple[Pos, list[Any]]r"   )r3   s   "r   r4   r4     s)     " "S "s " "@U "r)   c                   V^,          p. p\        W4      pV P                  RV4      '       d   V^,           V3#  \        WV4      w  rVP                  V4       \        W4      pWV^,            pVR8X  d   V^,           V3# VR8w  d   \	        RW4      hV^,          p\        W4      pV P                  RV4      '       g   K  V^,           V3# )r   r   ,zUnclosed array)r   r   r   r   r+   )rl   r1   rI   arrayvalcs   &&&   r   parse_arrayr    s    1HCE
$S
.C
~~c3Qw~
s5S(2cAg87E>!8!"2C==q(2>>#s##7E>!r)   c               (    V ^8  d   QhRRRRRRRR/# )	r-   rl   r/   r1   r   rI   r   rL   ztuple[Pos, dict[str, Any]]r"   )r3   s   "r   r4   r4     s)     , ,C ,c ,
 ,Ga ,r)   c                6   V^,          p\        4       p\        4       p\        W\        4      pV P	                  RV4      '       d   V^,           VP
                  3#  \        WV4      w  rpVRR VR,          rVP                  V\        P                  4      '       d   \        RV 2W4      h VP                  VRR7      p	Y9   d   \        RT: 2Y4      hYiT&   \        Y\        4      pYT^,            p
T
R8X  d   T^,           TP
                  3# T
R	8w  d   \        R
Y4      h\        T\
        \        34      '       d#   TP                  T\        P                  RR7       T^,          p\        Y\        4      pEK$    \         d    \        RY4      Rhi ; i)r   }TNr   F)r   r   zDuplicate inline table key r  zUnclosed inline tabler   r   )r   rr   r`   ra   r   rk   r   r   r   r+   r   r   r9   r   ry   )rl   r1   rI   nested_dictre   r~   r   r   r   r   r  s   &&&        r   parse_inline_tabler    s   1HC,KGE
Sw
'C
~~c3Qw((((
.sE%"3BxRH99S%,,''!$Fse"LcWW	R11*51QD !$?|"LcWWX7+cAg87K,,,,8!"93DDedD\**IIc5<<4I8q7+  	R!"<cGTQ	Rs   .E? ?Fr   c               (    V ^8  d   QhRRRRRRRR/# 	r-   rl   r/   r1   r   r   r   rL   r   r"   )r3   s   "r   r4   r4   !  s2     P P	PP&*PPr)   c                  WV^,            pV^,          pV'       dX   VR9   dQ   VR8w  d6   \        W\        4      p W,          pTR8w  d   \        RY4      hT^,          p\        W\        4      pVR3# VR8X  d   \        W^4      # VR8X  d   \        W^4      #  V\        V,          3#   \         d    TR3u # i ; i  \         d    \        RY4      Rhi ; i)	r-   \
 r   zUnescaped '\' in a stringz\uz\UN>   \	r  \ )r`   ra   rb   r+   r   parse_hex_charBASIC_STR_ESCAPE_REPLACEMENTSr   )rl   r1   r   	escape_idro   s   &&$  r   parse_basic_str_escaper  !  s     #'"I1HCY"99 Sw/Cx t|%&BCMM1HC#67BwEc**Ec**P1)<<<  Bw  P:CE4OPs   B* B? *B<;B<?Cc               $    V ^8  d   QhRRRRRR/# r   r"   )r3   s   "r   r4   r4   >  s!     < <# <C <O <r)   c                    \        WR R7      # )Tr   )r  r  s   &&r    parse_basic_str_escape_multiliner  >  s    !#d;;r)   c               (    V ^8  d   QhRRRRRRRR/# )	r-   rl   r/   r1   r   hex_lenr:   rL   r   r"   )r3   s   "r   r4   r4   B  s(     
 
 
# 
 
 
r)   c                    WW,            p\        V4      V8w  g   \        P                  V4      '       g   \        R W4      hW,          p\	        V^4      p\        V4      '       g   \        RW4      hV\        V4      3# )zInvalid hex valuez/Escaped character is not a Unicode scalar value)rB   HEXDIGIT_CHARS
issupersetr+   r:   is_unicode_scalar_valuer   )rl   r1   r  hex_strhex_ints   &&&  r   r  r  B  sy    &G
7|wn&?&?&H&H13<<NC'2G"7++=s
 	
 Gr)   c               $    V ^8  d   QhRRRRRR/# r   r"   )r3   s   "r   r4   r4   O  s!     ' '3 'S '_ 'r)   c                X    V^,          pTp\        WR\        RR7      pV^,           WV 3# )r   rY   Tr   )r   ILLEGAL_LITERAL_STR_CHARS)rl   r1   r   s   && r   r   r   O  s:    1HCI
# 9C 7C#&&&r)   c               (    V ^8  d   QhRRRRRRRR/# )	r-   rl   r/   r1   r   literalr   rL   r   r"   )r3   s   "r   r4   r4   X  s(     % %S %s % % %r)   c                  V^,          pV P                  RV4      '       d
   V^,          pV'       d%   Rp\        V VR\        RR7      pWV pV^,           pMRp\        WRR7      w  rV P                  W14      '       g   W3# V^,          pV P                  W14      '       g   WV,           3# V^,          pWV^,          ,           3# )   r   rY   '''Tr   r   r   )r   r   #ILLEGAL_MULTILINE_LITERAL_STR_CHARSr   )rl   r1   r(  delimend_posresults   &&$   r   parse_multiline_strr0  X  s    1HC
~~dC  q8
 !k%c$? >>%%%{1HC>>%%%UN""1HC%!)$$$r)   c               (    V ^8  d   QhRRRRRRRR/# r  r"   )r3   s   "r   r4   r4   w  s(       3 d  r)   c                  V'       d   \         p\        pM\        p\        pR pTp  W,          pTR8X  dR   T'       g   T^,           YPYa ,           3# T P                  RT4      '       d   T^,           YPYa ,           3# T^,          pKb  TR8X  d!   YPYa ,          pT! Y4      w  rYX,          pTpK  Ys9   d   \        RT: 2Y4      hT^,          pK    \         d    \        RY4      Rhi ; i)r  zUnterminated stringNr   """r   zIllegal character )!ILLEGAL_MULTILINE_BASIC_STR_CHARSr  ILLEGAL_BASIC_STR_CHARSr  rb   r+   r   )	rl   r1   r   r   parse_escapesr/  r   ro   parsed_escapes	   &&$      r   r   r   w  s   48*.FI
	M8D 3;QwY); ;;;~~eS))QwY); ;;;1HC4<)((F!.s!8C#FI!$6th"?JJq#  	M!"7BL	Ms   C C)c               (    V ^8  d   QhRRRRRRRR/# )	r-   rl   r/   r1   r   rI   r   rL   ztuple[Pos, Any]r"   )r3   s   "r   r4   r4     s2     A5 A5	A5A5%/A5A5r)   c                L    W,          pVR8X  d1   V P                  RV4      '       d   \        WRR7      # \        W4      # VR8X  d1   V P                  RV4      '       d   \        WRR7      # \	        W4      # VR8X  d$   V P                  R	V4      '       d   V^,           R3# VR
8X  d$   V P                  RV4      '       d   V^,           R3# VR8X  d   \        WV4      # VR8X  d   \        WV4      # \        P                  ! W4      pV'       d    \        V4      pTP                  4       T3# \        P                  ! W4      pV'       d   VP                  4       \        V4      3# \        P                  ! W4      pV'       d   VP                  4       \!        W4      3# WV^,            p	V	R9   d   V^,           V! V	4      3# WV^,            p
V
R9   d   V^,           V! V
4      3# \        RW4      h  \          d    R p ELi ; i  \         d   p\        RY4      ThR p?ii ; i)Nr   r3  F)r(  rY   r+  TttrueffalserZ   {zInvalid date or datetimezInvalid value>   infnan>   +inf+nan-inf-nan)rb   r   r0  r   r   r  r  r   matchr   r>   r+   endr   r	   r   r
   )rl   r1   rI   ro   datetime_matchdatetime_objelocaltime_matchnumber_matchfirst_three
first_fours   &&&        r   r   r     s   8 s{>>%%%&s??'11 s{>>%%%&s>> ** s{>>&#&&7D= s{>>'3''7E>! s{3[11 s{!#K88 !&&s0N	O,^<L !!#\11"((2O""$&8&III
 ??3,L!?<#MMM C!G$Kn$QwK00037#J55QwJ///
/3
44y  L  	O!"<cGQN	Os)   G2 H 2HHH#HH#c                    V ^8  d   QhRRRR/# )r-   	codepointr:   rL   r   r"   )r3   s   "r   r4   r4     s     H Hs Ht Hr)   c                j    ^ T u;8*  ;'       d    R8*  Mu ;'       g    RT u;8*  ;'       d    R8*  # u # )r   i  i   i r"   )rO  s   &r   r!  r!    s0    ##e#GG))F)Fw)FG)FGr)   c                    V ^8  d   QhRRRR/# )r-   rI   r   rL   r"   )r3   s   "r   r4   r4     s      z j r)   c                :   a  S \         J d   \         # R V 3R llpV# )a  A decorator to make `parse_float` safe.

`parse_float` must not return dicts or lists, because these types
would be mixed with parsed TOML tables and arrays, thus confusing
the parser. The returned decorated callable raises `ValueError`
instead of returning illegal types.
c                    V ^8  d   QhRRRR/# )r-   	float_strr/   rL   r   r"   )r3   s   "r   r4   +make_safe_parse_float.<locals>.__annotate__  s      C C r)   c                f   < S! V 4      p\        V\        \        34      '       d   \        R 4      hV# )z*parse_float must not return dicts or lists)r9   rk   r   r>   )rT  float_valuerI   s   & r   safe_parse_float/make_safe_parse_float.<locals>.safe_parse_float  s0    !),kD$<00IJJr)   )float)rI   rX  s   f r   r_   r_     s$     e  r)   N)C
__future__r   typesr   _rer   r   r   r   r	   r
   TYPE_CHECKINGcollections.abcr   typingr   r   _typesr   r   r   	frozensetr   r   
ASCII_CTRLr5  r4  r&  r,  r   ra   r   r   rc   r  r  r!   r>   r+   rZ  rV   rS   rr   r   r^   r`   r   ri   r   rh   rg   rd   r   r   r   r   r  r  r  r  r  r   r0  r   r   r!  r_   r"   r)   r   <module>rd     s  
 # "  (,,1uRy11Ic#h4GG
 %y6 $.61B$B !3 &G #/ 
E
	$/ O #Yu%55 9: 0xxxxxx
! 8 8
:j :z	- 	-D% DN7 7t" "D ,	(.D ,$P 6
"0,@P-2P:<
'%>@A5HHr)   