+
    i_  c                   s   . ROt ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt	 ]	P                  t
RtRtRtRtRt^NtRt]
! R	4      t]
! R
4      t]P(                  ! R]P*                  ]P,                  ,          4      t]P(                  ! R4      t]P(                  ! R4      t]P4                  P6                  tR tRR lt ! R R 4      t ! R R4      t ! R R] 4      t!R# )HeaderN)HeaderParseError)charset
 s     z 	us-asciizutf-8ai  
  =\?                   # literal =?
  (?P<charset>[^?]*?)   # non-greedy up to the next ? is the charset
  \?                    # literal ?
  (?P<encoding>[qQbB])  # either a "q" or a "b", case insensitive
  \?                    # literal ?
  (?P<encoded>.*?)      # non-greedy up to the next ?= is the encoded string
  \?=                   # literal ?=
  z[\041-\176]+:$z
\n[^ \t]+:c           
      sR   \        V R 4      '       dJ   V P                   UUu. uF0  w  r\        P                  ! V\	        V4      4      \	        V4      3NK2  	  upp# \
        P                  V 4      '       g   V R3.# . pV P                  4        F  p\
        P                  V4      pRpV'       g   K$  VP                  ^ 4      pV'       d   VP                  4       pRpV'       d   VP                  VRR34       V'       g   K[  VP                  ^ 4      P                  4       pVP                  ^ 4      P                  4       pVP                  ^ 4      p	VP                  WV34       K  	  . p
\        V4       F  w  rV^8  g   K  V^,          '       g   K  W;^,
          ,          ^,          '       g   K=  W;^,
          ,          ^ ,          P                  4       '       g   Ki  V
P                  V^,
          4       K  	  \        V
4       F  pW= K  	  . pV F  w  rpVf   VP                  W34       K  VR8X  d5   \         P"                  P%                  V4      pVP                  VV34       KY  VR8X  dc   \'        V4      ^,          pV'       d   VRR^V,
           ,          p \         P(                  P+                  V4      pVP                  VV34       K  \3        RV,           4      h	  . pR;ppV Fu  w  pp\5        V\        4      '       d   \7        VR	4      pVf   TpTpK2  VV8w  d   VP                  VV34       TpTpKR  Vf   V\8        V,           ,          pKl  VV,          pKw  	  VP                  VV34       V# u uppi   \,        P.                   d    \1        R4      hi ; i)
_chunksNTFZqZbz===zBase64 decoding errorzUnexpected encoding: zraw-unicode-escape)Zhasattrr   _charsetZ_encodestrecresearch
splitlinessplitpoplstripappendZlowerZ	enumerateisspaceZreversedemail
quoprimimeZheader_decodelenZ
base64mimedecodebinasciiZErrorr   ZAssertionError
isinstanceZbytesBSPACE)Zheaderstringr   ZwordslinepartsZfirstZ	unencodedZencodingZencodedZdroplistZnZwZdZdecoded_wordsZencoded_stringZwordZpaderrZ	collapsedZ	last_wordlast_charsets   &                    %/usr/lib64/python3.14/email/header.pydecode_headerr   ;   s7   * vy!!+1>>;+9 !!&#g,7WF+9; 	; ;;v E!!#

4 e		!I%,,.	it45u))A,,,. 99Q<--/))A,g9: $" H% Q31Q44EA#JqMMeaCjm.C.C.E.EOOAaC  ! hH   M-2)'  .!:;_##11.AD  $1_(1,F%V"446''..~> $$dG_5 !88!CDD% .3* I##I&gdC  34DI"L$i67I"L!$&II ' i./W;d >> @&'>??@s   6M?!N!N&c                 s    \        WVR 7      pV  F;  w  rVVe"   \        V\        4      '       g   \        V4      pVP                  WV4       K=  	  V# ))
maxlinelenheader_namecontinuation_ws)r    r   Charsetr   )Zdecoded_seqr   r    r!   Zhsr   s   &&&&   r   make_headerr$      sN     	*.	0A!
z'7'C'Cg&G		 "
 H    c                   sV   a  ] tR t^t o R
R ltR tR tRR ltR tRR lt	R t
R	tV tR# )r    Nc                s   Vf   \         pM!\        V\        4      '       g   \        V4      pW n        WPn        . V n        Ve   V P                  WV4       Vf   \        pW0n        Vf
   ^ V n	        R # \        V4      ^,           V n	        R # N)USASCIIr   r"   r   _continuation_wsr   r   
MAXLINELEN_maxlinelen
_headerlenr   )selfr#   r   r   r    r!   errorss   &&&&&&&r   __init__ZHeader.__init__   s{    : ?GGW--g&G /=KKF+#J%DO "+.2DOr%   c                sZ   V P                  4        . pR pR pV P                   F  w  rETpV\        P                  8X  d%   VP	                  RR4      pVP                  RR4      pV'       du   T;'       d    V P                  V^ ,          4      pVR9  d(   VR9   d    V'       g   VP                  \        4       R pM$VR9  d   V'       g   VP                  \        4       T;'       d    V P                  VR,          4      pTpVP                  V4       K  	  \        P                  V4      # )NZasciisurrogateescapeZreplaceNr   )
_normalizer   r   UNKNOWN8BITencoder   	_nonctextr   SPACEEMPTYSTRINGjoin)	r,   Zuchunkslastcs	lastspacer   r   ZnextcsZoriginal_byteshasspaces	   &        r   __str__ZHeader.__str__   s    	#||OF F---!'w8I!J'..w	B!??dnnVAY&?!33!33Hu-!%#55iNN5)==4>>&*#=IFNN6"+  ,, ((r%   c                s    V\        V 4      8H  # r&   )r	   )r,   Zother   &&r   __eq__ZHeader.__eq__  s     D	!!r%   c                s$   Vf   V P                   pM!\        V\        4      '       g   \        V4      p\        V\        4      '       gP   VP                  ;'       g    RpV\         P
                  8X  d   VP                  RR4      pMVP                  WC4      pVP                  ;'       g    RpV\         P
                  8w  d    VP                  WS4       V P                  P                  W34       R #   \         d    TR8w  d   h \        p L9i ; i)Nr   r/   )r   r   r"   r	   Zinput_codecr3   r   Zoutput_codecr4   ZUnicodeEncodeErrorUTF8r   r   )r,   r#   r   r-   Zinput_charsetZoutput_charset   &&&&  r   r   ZHeader.append  s    * ?mmGGW--g&G!S!!#//==:M 4 44HHZ):;HH]3 !--;;X1110
 	QL)	 & !:-s   C3 3DDc                s<    VP                  4       ;'       g    VR9   # )()rA   Z)Z\)r   )r,   r#   r=   r   r5   ZHeader._nonctext9  s     yy{33a#333r%   c                s   V P                  4        Vf   V P                  pV^ 8X  d   Rp\        V P                  VV P                  V4      pR pR ;rgV P
                   EF  w  rVei   T;'       d    V P                  V^ ,          4      pVR9  d!   V'       d   V	R9  d   VP                  4        MV	R9  d   V'       g   VP                  4        T;'       d    V P                  VR,          4      pT	pRpVP                  4       p
V
'       d   VP                  RV
^ ,          V	4       MVP                  RRV	4       V
R,           F  pVP                  4        V	P                  e5   VP                  V P                  RVP                  4       ,           V	4       KU  VP                  4       pVR \        V4      \        V4      ,
           pVP                  WV	4       K  	  \        V
4      ^8  g   EK  VP                  4        EK  	  V P
                  '       d   VP                  4        VP                  V4      p\        P!                  V4      '       d   \#        RP%                  V4      4      hV# )	Ni@B Fr   :   NNr   z8header value appears to contain an embedded header: {!r}r0   r1   )r2   r*   _ValueFormatterr+   r(   r   r5   add_transitionr   feednewlineheader_encodingr   r   _str_embedded_headerr   r   Zformat)r,   
splitcharsr   linesepZ	formatterr9   r;   r:   r   r   Zlinesr   ZslinefwsZvalues   &&&&           r   r4   ZHeader.encode>  s
   B 	))J ? J#DOOZ$($9$9:G	###||OF#!??dnnVAY&?!33#w6H'H!002$66y,,.==4>>&*#=IFH%%'Er58W5r2w/b		!!#**6NN4#8#8#:M#*, !KKME4D	#e* 45CNN3w7 " 5zA~!!#5  ,6 <<<$$&w'""5))" $++16%=: :r%   c                s4   . pR p. pV P                    FM  w  rEWR8X  d   VP                  V4       K  Ve'   VP                  \        P                  V4      V34       V.pTpKO  	  V'       d'   VP                  \        P                  V4      V34       Wn         R # r&   )r   r   r6   r8   )r,   Zchunksr   Z
last_chunkr   r   s   &     r   r2   ZHeader._normalize  s     
#||OF&!!&)+MM5::j#9<"HI$X
&  , MM5::j1<@Ar%   )r   r   r(   r+   r*   )NNNNr   strict)NrM   )z;, 	Nr   )__name__
__module____qualname____firstlineno__r.   r<   r>   r   r5   r4   r2   __static_attributes____classdictcell____classdict__   @r   r    r       s2     -3^)@")*V4
N` r%   c                   sV   a  ] tR tRt o R tR tR tR tR tR t	R t
R	 tR
 tRtV tR# )rC   i  c                sx    W n         W0n        \        V4      V n        W@n        . V n        \        V4      V n        R # r&   )_maxlenr(   r   _continuation_ws_len_splitchars_lines_Accumulator_current_line)r,   Z	headerlenZmaxlenr!   rJ   s   &&&&&r   r.   Z_ValueFormatter.__init__  s4     /$'$8!%))4r%   c                sX    V P                  4        VP                  V P                  4      # r&   )rF   r8   rZ   )r,   rK   r=   r   rH   Z_ValueFormatter._str  s    ||DKK((r%   c                s,    V P                  \        4      # r&   )rH   NLr,      &r   r<   Z_ValueFormatter.__str__  s    yy}r%   c                s
   V P                   P                  4       pVR8w  d   V P                   P                  ! V!   \        V P                   4      ^ 8  d   V P                   P	                  4       '       dF   V P
                  '       d4   V P
                  R;;,          \        V P                   4      ,          uu&   M.V P
                  P                  \        V P                   4      4       V P                   P                  4        R# )r   N)r   r   r1   )	r\   r   pushr   	is_onlywsrZ   r	   r   reset)r,   Zend_of_lines   & r   rF   Z_ValueFormatter.newline  s    ((,,.)###[1t!!"Q&!!++--$+++B3t'9'9#::""3t'9'9#:;  "r%   c                s>    V P                   P                  R R4       R# )r   r   N)r\   r`   r^   r_   r   rD   Z_ValueFormatter.add_transition  s    R(r%   c                s*   VP                   f   V P                  WV P                  4       R # VP                  W P	                  4       4      p VP                  ^ 4      pTe   T P                  Y4        TP                  4       pT P                  4        T P                  P                  T P                  T4       T F/  pT P                  P                  T P                  T,           4       K1  	  R #   \         d     R # i ; i  \         d     R # i ; ir&   )rG   _ascii_splitrY   Zheader_encode_lines_maxlengthsr   Z
IndexError_append_chunkrF   r\   r`   r(   rZ   r   )r,   rL   r   r   Zencoded_linesZ
first_lineZ	last_liner   s   &&&&    r   rE   Z_ValueFormatter.feed  s     ""*c4+;+;<  33F<L<L<NO	&**1-J !s/	%))+I 	 5 5yA!DKKt44t;< "  		  		s$   C1 4D 1D ?D DDc              #  s   "   V P                   \        V P                  4      ,
          x   V P                   V P                  ,
          x  K"  5i)T)rW   r   r\   rX   r^   r_   r   rd   Z_ValueFormatter._maxlengths  s7     llS!3!3444,,!:!:::s   AAc                s   \         P                  ! R \        ,           R,           W,           4      pV^ ,          '       d   R.VR&   MVP                  ^ 4       \	        \        V4      .^,          !   F  w  rV P                  W4       K  	  R# )z([z]+)r   :N    NN)rer   FWSr   ZzipZiterre   )r,   rL   r   rJ   r   partr@   r   rc   Z_ValueFormatter._ascii_split  sf     c%488E"IIIaLtE{mAo.ICs) /r%   c                s   V P                   P                  W4       \        V P                   4      V P                  8  Ed   V P                   F  p\        V P                   P                  4       ^,
          ^ R4       F  pVP                  4       '       d3   V P                   V,          ^ ,          pV'       d   V^ ,          V8X  d    MAV P                   V^,
          ,          ^,          pV'       g   Kv  VR,          V8X  g   K   M	  K   Mp	  V P                   P                  4       w  rV P                   P                  ^ 8  d   V P                  4        V'       g   RpV P                   P                  W4       R# V P                   P                  V4      pV P                  P                  \        V P                   4      4       V P                   P                  V4       R# R# )rB   r   Nr1   )r\   r`   r   rW   rY   Zrange
part_countr   r   _initial_sizerF   pop_fromrZ   r   r	   rb   )r,   rL   r   ZchiZprevpartri   Z	remainders   &&&     r   re   Z_ValueFormatter._append_chunk   sm   ,t!!"T\\1 &&t11<<>q@!RHAzz||"003A63q62:!#11!A#6q9HxHRL"$4 I  ' !..224	%%33a7LLN """''2**33A6IKKs4#5#567$$Y/9 2r%   )r(   rX   r\   rZ   rW   rY   N)rN   rO   rP   rQ   r.   rH   r<   rF   rD   rE   rd   rc   re   rR   rS   rT   rV   r   rC   rC     s8     5)	#)#=J;*,0 0r%   rC   c                   sz   a a ] tR tRt oRV 3R lltR tRR ltV 3R ltR tR t	RR lt
R	 tV 3R
 ltRtVtV ;t# )r[   i!  c                s0   < Wn         \        SV `	  4        R # r&   )rk   superr.   )r,   Zinitial_size	__class__s   &&r   r.   Z_Accumulator.__init__#  s    )r%   c                s*    V P                  W34       R # r&   )r   )r,   rL   r   s   &&&r   r`   Z_Accumulator.push'  s    SM"r%   c                s    WR  p. WR % V# r&    )r,   rm   Zpoppeds   && r   rl   Z_Accumulator.pop_from*  s    bRr%   c                sN   < V P                  4       ^ 8X  d   R# \        SV `	  4       # )rf   )r   r   )rj   rn   r   r,   ro      &r   r   Z_Accumulator.pop/  s#    ??aOw{}r%   c                s<    \        R  V  4       V P                  4      # )c              3   s\   "   T F"  w  r\        V4      \        V4      ,           x  K$  	  R # 5ir&   )r   Z.0rL   ri      &  r   	<genexpr>Z'_Accumulator.__len__.<locals>.<genexpr>5  s"     =93CHSY&&s   *,)Zsumrk   r^   r_   r   __len__Z_Accumulator.__len__4  s     ==%%' 	'r%   c                s:    \         P                  R  V  4       4      # )c              3   sR   "   T F  w  r\         P                  W34      x  K  	  R # 5ir&   r7   r8   rs   rt   r   ru   Z'_Accumulator.__str__.<locals>.<genexpr>9  s)      !715IC "-!1!13+!>!>15s   %'rw   r^   r_   r   r<   Z_Accumulator.__str__8  s"     !715!7 8 	8r%   c                s(    Vf   . pWR&   ^ V n         R # )N:NNNrk   )r,   Zstartvalr=   r   rb   Z_Accumulator.reset<  s    HQr%   c                s    V P                   ^ 8H  ;'       d)    V '       * ;'       g    \        V 4      P                  4       # rf   )rk   r	   r   r^   r_   r   ra   Z_Accumulator.is_onlywsB  s2    !!1$JJd(*I*Ic$i6G6G6IJr%   c                s    < \         SV `  4       # r&   )rn   rv   rq   rr   r   rj   Z_Accumulator.part_countE  s    w  r%   rx   ry   r&   )rN   rO   rP   rQ   r.   r`   rl   r   rv   r<   rb   ra   rj   rR   rS   Z__classcell__)ro   rU   s   @@r   r[   r[   !  s8     #

'8K! !r%   r[   )r    r   r$   z        )NNr   )"Z__all__rg   r   Zemail.quoprimimer   Zemail.base64mimeZemail.errorsr   r   r   r"   r]   r6   r   ZSPACE8r7   r)   rh   r'   r?   ZcompileZVERBOSEZ	MULTILINEr
   ZfcrerI   r   Z_max_appendr   r$   r    rC   Zlistr[   rp   r%   r   <module>rz      s    
    ) %


			

*
w 
zz  
zzBLL " 
zz#$ ::m,  **aH2f fR}0 }0@%!4 %!r%   