+
     Bi<v                    p   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ]P                  R*9   d   ^ RI
Ht MRt^ RIt^ RIHtHtHtHtHtHt 0 R+mt]! ] R4      '       d7   ]P-                  ] P.                  4       ]P-                  ] P0                  4       R,t]t]! ]R4      ;'       g    ]P6                  P8                  tR-R lt]R.R l4       t R	 t! ]PD                  t" ]PH                  t$ ! R R]PN                  R7      t(]PP                  PS                  ](4        ! R R](4      t*]PT                  PS                  ]*4        ! R R](4      t+]PV                  PS                  ]+4        ! R R]+4      t, ! R R]+4      t- ! R R],4      t. ! R R],4      t/ ! R R]+4      t0 ! R R]/].4      t1R t2 ! R  R!]*4      t3 ! R" R#](4      t4]Ph                  PS                  ]44        ! R$ R%]Pj                  4      t6 ! R& R']44      t7 ! R( R)]74      t8R#   ]# d    ]!t" EL:i ; i  ]# d     ! R
 R]%]&4      t$ ELGi ; i)/    N)allocate_lock)setmode)__all__SEEK_SETSEEK_CURSEEK_ENDReaderWriter	SEEK_HOLEgettotalrefcountc                     V fh   \         P                  P                  '       d   Rp MRp \         P                  P                  '       d#   ^ R IpVP                  R\        V^,           4       V # )Nutf-8localez"'encoding' argument not specified.)sysflags	utf8_modewarn_default_encodingwarningswarnEncodingWarning)encoding
stacklevelr   s   && /usr/lib/python3.14/_pyio.pytext_encodingr   )   sT     99HH99***MM>):>;O    c                    \        V \        4      '       g   \        P                  ! V 4      p \        V \        \
        \        34      '       g   \        R V ,          4      h\        V\        4      '       g   \        RV,          4      h\        V\        4      '       g   \        RV,          4      hVe)   \        V\        4      '       g   \        RV,          4      hVe)   \        V\        4      '       g   \        RV,          4      h\        V4      pV\        R4      ,
          '       g   \        V4      \        V4      8  d   \        RV,          4      hRV9   p	RV9   p
R	V9   pR
V9   pRV9   pRV9   pRV9   pV'       d   V'       d   \        R4      hW,           V,           V,           ^8  d   \        R4      hV	'       g$   V
'       g   V'       g   V'       g   \        R4      hV'       d   Ve   \        R4      hV'       d   Ve   \        R4      hV'       d   Ve   \        R4      hV'       d#   V^8X  d   ^ RI
pVP                  R\        ^4       \        T T	;'       d    R;'       g    RT
;'       d    R;'       g    R,           T;'       d    R	;'       g    R,           T;'       d    R
;'       g    R,           T;'       d    R;'       g    R,           WgR7      pTp RpV^8X  g   V^ 8  d   VP                  4       '       d   RpRpV^ 8  d%   \        \!        VP"                  R4      \$        4      pV^ 8  d   \        R4      hV^ 8X  d   V'       d   V# \        R4      hV'       d   \'        VV4      pMLV	'       g   V'       g	   V'       d   \)        VV4      pM'V
'       d   \+        VV4      pM\        RV,          4      hTpV'       d   V# \-        V4      p\/        VW4VV4      pTpWn        V#    TP3                  4        h ; i)zinvalid file: %rzinvalid mode: %rzinvalid buffering: %rNinvalid encoding: %rinvalid errors: %rzaxrwb+txrwa+tbz'can't have text and binary mode at oncez)can't have read/write/append mode at oncez/must have exactly one of read/write/append modez-binary mode doesn't take an encoding argumentz+binary mode doesn't take an errors argumentz+binary mode doesn't take a newline argumentzaline buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used )openerFTzinvalid buffering sizezcan't have unbuffered text I/Ozunknown mode: %ri   )
isinstanceintosfspathstrbytes	TypeErrorsetlen
ValueErrorr   r   RuntimeWarningFileIO_isatty_open_onlymaxmin_blksizeDEFAULT_BUFFER_SIZEBufferedRandomBufferedWriterBufferedReaderr   TextIOWrappermodeclose)filer>   	bufferingr   errorsnewlineclosefdr'   modescreatingreadingwriting	appendingupdatingtextbinaryr   rawresultline_bufferingbuffers   &&&&&&&&             r   openrQ   J   sw   n dC  yydS%-..*T122dC  *T122i%%/);<<Jx$=$=.9::*VS"9"9,v566IEs9~TSZ!7+d233e|HUlGUlGuIe|H%<DE\FBCCG#i/!3DEE7iJKK(&HII&$FGG'%FGG)q. C$a	) ""s((b//c''R)//c''R) ##))r+ ""s((b	*
 )C F>Y]s/D/D/F/FI!Nq=Ck:<OPIq=566>=>>#C3FI#C3F#C3F/$677M *VXwO	sI   %%O8 AO8 O8 O8 0O8 O8 O8 O8 *(O8 O8 "O8 8Pc                 P    ^ RI pVP                  R\        ^4       \        V R4      # )r   Nz(_pyio.open_code() may not be using hooksrb)r   r   r3   rQ   )pathr   s   & r   _open_code_with_warningrU     s(     MM< !%dr   c                       ] tR tRtRtR# )UnsupportedOperationi.   N)__name__
__module____qualname____firstlineno____static_attributes__rX   r   r   rW   rW   .  s    r   rW   c                      a  ] tR tRt o R tRR ltR tRR ltR tRt	R	 t
R
 tR tRR ltR tRR ltR tRR lt]R 4       tRR ltR tR tR tR tRR ltR tR tRR ltR tRtV tR# ) IOBasei2  c                P    \        V P                  P                  : R V: R24      h).z() not supported)rW   	__class__rY   )selfnames   &&r   _unsupportedIOBase._unsupportedT  s&    "$(NN$;$;T$C D 	Dr   c                (    V P                  R 4       R# )seekNre   rc   poswhences   &&&r   rh   IOBase.seek[  s     	&!r   c                &    V P                  ^ ^4      # r   )rh   rc   s   &r   tellIOBase.tellk  s    yyAr   Nc                (    V P                  R 4       R# truncateNri   rc   rk   s   &&r   ru   IOBase.truncateo       	*%r   c                &    V P                  4        R # N_checkClosedrp   s   &r   flushIOBase.flushy  s    
 	r   Fc                v    V P                   '       g    V P                  4        R V n         R# R#   R T n         i ; i)TN)_IOBase__closedr}   rp   s   &r   r?   IOBase.close  s2    
 }}}%

 $	  !%s   / 	8c                     V P                   pT'       d   R # \        T RR 4      ;p'       d	   T! T 4       T P                  4        R #   \         d     R # i ; i)N_dealloc_warn)closedAttributeErrorgetattrr?   )rc   r   dealloc_warns   &  r   __del__IOBase.__del__  sU    	[[F "4$??<? 	

  	 	s   A AAc                    R # FrX   rp   s   &r   seekableIOBase.seekable  s     r   c                \    V P                  4       '       g   \        Vf   R4      hT4      hR # )NzFile or stream is not seekable.)r   rW   rc   msgs   &&r   _checkSeekableIOBase._checkSeekable  =     }}&*-+ (I @ @;>@ @ r   c                    R # r   rX   rp   s   &r   readableIOBase.readable      
 r   c                \    V P                  4       '       g   \        Vf   R4      hT4      hR # )NzFile or stream is not readable.)r   rW   r   s   &&r   _checkReadableIOBase._checkReadable  r   r   c                    R # r   rX   rp   s   &r   writableIOBase.writable  r   r   c                \    V P                  4       '       g   \        Vf   R4      hT4      hR # )NzFile or stream is not writable.)r   rW   r   s   &&r   _checkWritableIOBase._checkWritable  r   r   c                    V P                   # rz   )r   rp   s   &r   r   IOBase.closed  s     }}r   c                T    V P                   '       d   \        Vf   R4      hT4      hR # )NI/O operation on closed file.r   r2   r   s   &&r   r|   IOBase._checkClosed  s6     ;;; # = 6 6146 6 r   c                &    V P                  4        V # rz   r{   rp   s   &r   	__enter__IOBase.__enter__  s    r   c                &    V P                  4        R # rz   )r?   )rc   argss   &*r   __exit__IOBase.__exit__  s    

r   c                (    V P                  R 4       R# )filenoNri   rp   s   &r   r   IOBase.fileno  s    
 	(#r   c                &    V P                  4        R # r   r{   rp   s   &r   isattyIOBase.isatty  s    
 	r   c                  a a \        S R 4      '       d	   V V3R lpMR pSf   RoM SP                  pV! 4       o\	        4       pS^ 8  g   \        V4      S8  dB   S P                  V! 4       4      pV'       g   M"WE,          pVP                  R4      '       g   KW   \        V4      #   \         d    \        S: R24      hi ; i)peekc                     < SP                  ^4      p V '       g   ^# V P                  R4      ^,           ;'       g    \        V 4      pS^ 8  d   \        VS4      pV# )      
)r   findr1   r7   )	readaheadnrc   sizes     r   
nreadahead#IOBase.readline.<locals>.nreadahead	  sL     IIaL	 ^^E*Q.AA3y>19AtAr   c                      ^# )r   rX   rX   r   r   r   r     s    r    is not an integerr   r(   )	hasattr	__index__r   r/   	bytearrayr1   readendswithr.   )rc   r   r   
size_indexresr%   s   ff    r   readlineIOBase.readline  s     4  <D$!^^
 "|kQh#c(T/		*,'AHC||E""Sz " ?4(*< =>>?s   B( (Cc                &    V P                  4        V # rz   r{   rp   s   &r   __iter__IOBase.__iter__'  s    r   c                B    V P                  4       pV'       g   \        hV# rz   )r   StopIterationrc   lines   & r   __next__IOBase.__next__+  s    }}r   c                    Ve   V^ 8:  d   \        V 4      # ^ p. pV  F/  pVP                  V4       V\        V4      ,          pW!8  g   K.   V# 	  V# rz   )listappendr1   )rc   hintr   linesr   s   &&   r   	readlinesIOBase.readlines1  sZ     <419:DLLTNAy 
 r   c                Z    V P                  4        V F  pV P                  V4       K  	  R # rz   )r|   write)rc   r   r   s   && r   
writelinesIOBase.writelinesC  s&     	DJJt r   )__closedro   rz   r(   ) rY   rZ   r[   r\   re   rh   rq   ru   r}   r   r?   r   r   r   r   r   r   r   propertyr   r|   r   r   r   r   r   r   r   r   r   r]   __classdictcell____classdict__s   @r   r_   r_   2  s     DD" & H	%*@@@  6
$(T$ r   r_   )	metaclassc                   <   a  ] tR tRt o RR ltR tR tR tRtV t	R# )		RawIOBaseiP  c                    Vf   RpV^ 8  d   V P                  4       # \        VP                  4       4      pV P                  V4      pVf   R # W#R 1 \	        V4      # Nr(   )readallr   r   readintor.   )rc   r   r%   r   s   &&  r   r   RawIOBase.read^  sX     <D!8<<>!dnn&'MM!9bEQxr   c                    \        4       pV P                  \        4      ;p'       d   W,          pK'  V'       d   \        V4      # V# rz   )r   r   r9   r.   )rc   r   datas   &  r   r   RawIOBase.readallo  s9    kii 344d4KC: Kr   c                (    V P                  R 4       R# )r   Nri   rc   r%   s   &&r   r   RawIOBase.readintoz  rx   r   c                (    V P                  R 4       R# r   Nri   r   s   &&r   r   RawIOBase.write  s     	'"r   rX   Nr   )
rY   rZ   r[   r\   r   r   r   r   r]   r   r   s   @r   r   r   P  s     "	&# #r   r   c                   R   a  ] tR tRt o RR ltRR ltR tR tR tR t	R t
R	tV tR
# )BufferedIOBasei  c                (    V P                  R 4       R# r   Nri   rc   r   s   &&r   r   BufferedIOBase.read  s    $ 	&!r   c                (    V P                  R 4       R# )read1Nri   r   s   &&r   r   BufferedIOBase.read1  s     	'"r   c                (    V P                  VR R7      # )Fr   	_readintor   s   &&r   r   BufferedIOBase.readinto  s     ~~au~--r   c                (    V P                  VR R7      # )Tr   r   r   s   &&r   	readinto1BufferedIOBase.readinto1  s     ~~at~,,r   c                   \        V\        4      '       g   \        V4      pVP                  R 4      pV'       d   V P                  \	        V4      4      pMV P                  \	        V4      4      p\	        V4      pW1RV% V# )BN)r)   
memoryviewcastr   r1   r   )rc   r%   r   r   r   s   &&&  r   r  BufferedIOBase._readinto  sc    !Z((1AFF3K::c!f%D99SV$DI"1r   c                (    V P                  R 4       R# r   ri   r   s   &&r   r   BufferedIOBase.write  s     	'"r   c                (    V P                  R 4       R# detachNri   rp   s   &r   r  BufferedIOBase.detach       	(#r   rX   Nr   )rY   rZ   r[   r\   r   r   r   r  r  r   r  r]   r   r   s   @r   r   r     s-     ""(#.	-	#$ $r   r   c                      a  ] tR tRt o R tRR ltR tRR ltR tR t	R	 t
R
 t]R 4       t]R 4       t]R 4       t]R 4       tR tR tR tR tR tRtV tR# )_BufferedIOMixini  c                    Wn         R # rz   _rawrc   rM   s   &&r   __init___BufferedIOMixin.__init__   s    	r   c                `    V P                   P                  W4      pV^ 8  d   \        R4      hV# )r   z#seek() returned an invalid position)rM   rh   OSError)rc   rk   rl   new_positions   &&& r   rh   _BufferedIOMixin.seek  s.    xx}}S1!?@@r   c                ^    V P                   P                  4       pV^ 8  d   \        R4      hV# )r   z#tell() returned an invalid position)rM   rq   r  rv   s   & r   rq   _BufferedIOMixin.tell  s)    hhmmo7?@@
r   Nc                    V P                  4        V P                  4        V P                  4        Vf   V P                  4       pV P                  P                  V4      # rz   )r|   r   r}   rq   rM   ru   rv   s   &&r   ru   _BufferedIOMixin.truncate  sL    
 	

;))+C xx  %%r   c                t    V P                   '       d   \        R 4      hV P                  P                  4        R# )flush on closed fileN)r   r2   rM   r}   rp   s   &r   r}   _BufferedIOMixin.flush"  s%    ;;;344r   c                    V P                   eB   V P                  '       g.    V P                  4        V P                   P                  4        R # R # R #   T P                   P                  4        i ; irz   )rM   r   r}   r?   rp   s   &r   r?   _BufferedIOMixin.close'  sJ    88!

  )4
     A A.c                ~    V P                   f   \        R4      hV P                  4        V P                  pR V n        V# )Nzraw stream already detached)rM   r2   r}   r  r  s   & r   r  _BufferedIOMixin.detach/  s6    88:;;

ii	
r   c                6    V P                   P                  4       # rz   )rM   r   rp   s   &r   r   _BufferedIOMixin.seekable9      xx  ""r   c                    V P                   # rz   r  rp   s   &r   rM   _BufferedIOMixin.raw<  s    yyr   c                .    V P                   P                  # rz   )rM   r   rp   s   &r   r   _BufferedIOMixin.closed@  s    xxr   c                .    V P                   P                  # rz   )rM   rd   rp   s   &r   rd   _BufferedIOMixin.nameD      xx}}r   c                .    V P                   P                  # rz   )rM   r>   rp   s   &r   r>   _BufferedIOMixin.modeH  r3  r   c                J    \        R V P                  P                  : R24      hzcannot pickle z objectr/   rb   rY   rp   s   &r   __getstate___BufferedIOMixin.__getstate__L  !    .)@)@(C7KLLr   c                    V P                   P                  pV P                   P                  p V P                  pR P	                  WV4      #   \
         d    RP	                  Y4      u # i ; i)z<{}.{} name={!r}>z<{}.{}>)rb   rZ   r[   rd   formatr   )rc   modnameclsnamerd   s   &   r   __repr___BufferedIOMixin.__repr__O  sf    ..++..--	F99D '--gEE  	6##G55	6s   A A+*A+c                X    \        V P                  R R4      ;p'       d   V! V4       R# R# r   N)r   rM   rc   sourcer   s   && r   r   _BufferedIOMixin._dealloc_warnY  s(    "488_dCC<C  Dr   c                6    V P                   P                  4       # rz   )rM   r   rp   s   &r   r   _BufferedIOMixin.fileno_      xx  r   c                6    V P                   P                  4       # rz   )rM   r   rp   s   &r   r   _BufferedIOMixin.isattyb  rI  r   r  ro   rz   )rY   rZ   r[   r\   r  rh   rq   ru   r}   r?   r  r   r   rM   r   rd   r>   r9  r@  r   r   r   r]   r   r   s   @r   r  r    s     
&"
!#        MF!!! !r   r  c                      a a ] tR tRt oRtRR ltR tR tR tV 3R lt	RR lt
RR	 ltR
 tRR ltR tRR ltR tR tR tRtVtV ;t# )BytesIOif  Nc                L    \        4       pVe	   W!,          pW n        ^ V n        R # rz   )r   _buffer_pos)rc   initial_bytesbufs   && r   r  BytesIO.__init__n  s#    k$ C	r   c                p    V P                   '       d   \        R 4      hV P                  P                  4       # )z__getstate__ on closed file)r   r2   __dict__copyrp   s   &r   r9  BytesIO.__getstate__u  s*    ;;;:;;}}!!##r   c                f    V P                   '       d   \        R 4      h\        V P                  4      # )zgetvalue on closed file)r   r2   r.   rO  rp   s   &r   getvalueBytesIO.getvaluez  s(     ;;;677T\\""r   c                f    V P                   '       d   \        R 4      h\        V P                  4      # )zgetbuffer on closed file)r   r2   r  rO  rp   s   &r   	getbufferBytesIO.getbuffer  s(     ;;;788$,,''r   c                t   < V P                   e   V P                   P                  4        \        SV `  4        R # rz   )rO  clearsuperr?   rc   rb   s   &r   r?   BytesIO.close  s&    <<#LL r   c                   V P                   '       d   \        R 4      hVf   RpM VP                  pV! 4       pV^ 8  d   \        V P                  4      p\        V P                  4      V P                  8:  d   R# \        \        V P                  4      V P                  V,           4      pV P                  V P                  V pW0n        \        V4      #   \         d    \	        T: R24      hi ; i)read from closed filer   r   r(   )
r   r2   r   r   r/   r1   rO  rP  r7   r.   )rc   r   r   newposr%   s   &&   r   r   BytesIO.read  s    ;;;455<D$!^^
 "|!8t||$Dt||		)S&		D(89LLV,	Qx " ?4(*< =>>?s   C C0c                $    V P                  V4      # rz   )r   r   s   &&r   r   BytesIO.read1  s     yyr   c                   V P                   '       d   \        R 4      h\        V\        4      '       d   \	        R4      h\        V4      ;_uu_ 4       pVP                  pRRR4       X^ 8X  d   ^ # V P                  pV\        V P                  4      8  d   V P                  P                  V4       WP                  WDV,           % V ;P                  V,          un        V#   + '       g   i     L; i)write to closed file can't write str to binary streamN)r   r2   r)   r-   r/   r  nbytesrP  r1   rO  resize)rc   r%   viewr   rk   s   &&   r   r   BytesIO.write  s    ;;;344a>??]]dA 6iiT\\""LL$$%Sq!		Q	 ]s   C  C0	c                   V P                   '       d   \        R 4      h VP                  pV! 4       pT^ 8X  d)   T^ 8  d   \        RT: 24      hYn        T P
                  # T^8X  d/   \        ^ T P
                  T,           4      T n        T P
                  # T^8X  d8   \        ^ \        T P                  4      T,           4      T n        T P
                  # \        R4      h  \         d    \	        T: R24      hi ; i)zseek on closed filer   negative seek position zunsupported whence value)	r   r2   r   r   r/   rP  r6   r1   rO  )rc   rk   rl   	pos_indexs   &&& r   rh   BytesIO.seek  s    ;;;233	I +CQ;Qw !EFFI yy q[Atyy3/DI
 yy	 q[As4<<0367DI yy 788  	:sg%7899	:s   C C:c                T    V P                   '       d   \        R 4      hV P                  # )tell on closed file)r   r2   rP  rp   s   &r   rq   BytesIO.tell  s!    ;;;233yyr   c                   V P                   '       d   \        R 4      hVf   V P                  pM* VP                  pV! 4       pT^ 8  d   \        RT: 24      hV P                  VR1 V#   \         d    \        T: R24      hi ; i)ztruncate on closed fileNr   znegative truncate position )r   r2   rP  r   r   r/   rO  )rc   rk   rr  s   && r   ru   BytesIO.truncate  s    ;;;677;))C"MM	  kQw C!IJJLL
 " >3'); <==>s   A* *Bc                @    V P                   '       d   \        R 4      hR# r   Tr   rp   s   &r   r   BytesIO.readable      ;;;<==r   c                @    V P                   '       d   \        R 4      hR# rz  r   rp   s   &r   r   BytesIO.writable  r|  r   c                @    V P                   '       d   \        R 4      hR# rz  r   rp   s   &r   r   BytesIO.seekable  r|  r   )rO  rP  rz   r   ro   )rY   rZ   r[   r\   rO  r  r9  rY  r\  r?   r   r   r   rh   rq   ru   r   r   r   r]   r   __classcell__rb   r   s   @@r   rM  rM  f  sW      G$
#(
*
"*
"

 r   rM  c                      a  ] tR tRt o ]3R ltR tR tRR ltRR lt	RR lt
RR	 ltRR
 ltR tR tRR ltRtV tR# )r<   i  c                    VP                  4       '       g   \        R 4      h\        P                  W4       V^ 8:  d   \	        R4      hW n        V P                  4        \        4       V n        R# )z "raw" argument must be readable.invalid buffer sizeN)	r   r  r  r  r2   buffer_size_reset_read_bufLock
_read_lockrc   rM   r  s   &&&r   r  BufferedReader.__init__  sX     ||~~<==!!$,!233&&r   c                6    V P                   P                  4       # rz   )rM   r   rp   s   &r   r   BufferedReader.readable  r,  r   c                "    R V n         ^ V n        R# r   N)	_read_buf	_read_posrp   s   &r   r  BufferedReader._reset_read_buf  s    r   Nc                    Ve   VR8  d   \        R4      hV P                  ;_uu_ 4        V P                  V4      uuR R R 4       #   + '       g   i     R # ; i)Nzinvalid number of bytes to readr(   )r2   r  _read_unlockedr   s   &&r   r   BufferedReader.read  s?     r	>??___&&t, ___s   AA	c                   R pRpV P                   pV P                  pVe   VR8X  d   V P                  4        \        V P                  R4      '       d8   V P                  P                  4       pVf   WER ;'       g    R# WER V,           # WER .p^ p V P                  P                  4       pWc9   d   TpM%V\        V4      ,          pVP                  V4       KI  R P                  V4      ;'       g    T# \        V4      V,
          p	W8:  d$   V ;P                  V,          un        WEWQ,            # WER .p\        V P                  V4      p
W8  dJ   V P                  P                  V
4      pWc9   d   TpM%V	\        V4      ,          p	VP                  V4       KO  \        W4      pR P                  V4      pWR V n         ^ V n        V'       d   VRV # T# )r   Nr   r  r(   )r  r  r  r   rM   r   r   r1   r   joinr6   r  r7   )rc   r   
nodata_valempty_valuesrR  rk   chunkchunkscurrent_sizeavailwantedouts   &&          r   r  BufferedReader._read_unlocked  s   
"nnnn 9R  "txx++((*=t9,,,t9u,,$i[FL(!&JE
*e$88F#11z1 C3:NNaN35>! d)T%%q)iHHMM&)E$"
SZEMM%  MhhvRs2Aw-:-r   c                    V P                  R 4       V P                  ;_uu_ 4        V P                  V4      uuRRR4       #   + '       g   i     R# ; i)zpeek of closed fileN)r|   r  _peek_unlockedr   s   &&r   r   BufferedReader.peekS  s6     	/0___&&t, ___s   AA	c                   \        WP                  4      p\        V P                  4      V P                  ,
          pW28  g   V^ 8:  dc   V P                  V,
          pV P
                  P                  V4      pV'       d-   V P                  V P                  R V,           V n        ^ V n        V P                  V P                  R # r   N)r7   r  r1   r  r  rM   r   )rc   r   wanthaveto_readcurrents   &&    r   r  BufferedReader._peek_unlocked^  s    1&&'4>>"T^^3;$!)&&-GhhmmG,G!%!@7!J!"~~dnno..r   c           
     b   V P                  R 4       V^ 8  d   V P                  pV^ 8X  d   R# V P                  ;_uu_ 4        V P                  ^4       V P	                  \        V\        V P                  4      V P                  ,
          4      4      uuRRR4       #   + '       g   i     R# ; i)zread of closed filer   N)	r|   r  r  r  r  r7   r1   r  r  r   s   &&r   r   BufferedReader.read1i  s}     	/0!8##D19___"&&D#dnn->?A ___s   ABB.	c                   V P                  R 4       \        V\        4      '       g   \        V4      pVP                  ^ 8X  d   ^ # VP	                  R4      p^ pV P
                  ;_uu_ 4        V\        V4      8  Ed5   \        \        V P                  4      V P                  ,
          \        V4      4      pV'       de   V P                  V P                  V P                  V,            WW4,           % V ;P                  V,          un	        W4,          pV\        V4      8X  d   M\        V4      V,
          V P                  8  d0   V P                  P                  WR 4      pV'       g   MHW5,          pM(V'       d	   V'       g   V P                  ^4      '       g   MV'       g   EK9  V'       g   EKD   RRR4       V#   + '       g   i     T# ; i)zreadinto of closed filer  N)r|   r)   r  rl  r	  r  r1   r7   r  r  r  rM   r   r  )rc   rR  r   writtenr  r   s   &&&   r   r  BufferedReader._readinto|  sU    	34
 #z**S/C::?hhsm___CH$ C/$..@#c(Kt~~dnnU6JK .NNe+N$G#c(* s8g%(8(88))#h-8ALG  G..q11 5WW; > ? _> s+   -DF=<F=F=F='F=2F==G	c                    \        \        P                  V 4      \        V P                  4      ,
          V P
                  ,           ^ 4      # ro   )r6   r  rq   r1   r  r  rp   s   &r   rq   BufferedReader.tell  s3    #((.T^^1DDt~~UWXYYr   c                n   V\         9  d   \        R 4      hV P                  R4       V P                  ;_uu_ 4        V^8X  d.   V\	        V P
                  4      V P                  ,
          ,          p\        P                  WV4      pV P                  4        VuuRRR4       #   + '       g   i     R# ; i)invalid whence valuezseek of closed fileN)
valid_seek_flagsr2   r|   r  r1   r  r  r  rh   r  rj   s   &&&r   rh   BufferedReader.seek  s    ))344/0___{s4>>*T^^;;"''6:C  " ___s   AB##B4	)r  r  r  r  rz   ro   r   )rY   rZ   r[   r\   r9   r  r   r  r   r  r   r  r   r  rq   rh   r]   r   r   s   @r   r<   r<     sJ      )< !#-2.h	-	/A&.`Z	 	r   r<   c                   d   a  ] tR tRt o ]3R ltR tR tRR ltR t	R t
R	 tRR
 ltR tRtV tR# )r;   i  c                    VP                  4       '       g   \        R 4      h\        P                  W4       V^ 8:  d   \	        R4      hW n        \        4       V n        \        4       V n	        R# )z "raw" argument must be writable.r  N)
r   r  r  r  r2   r  r   
_write_bufr  _write_lockr  s   &&&r   r  BufferedWriter.__init__  sT    ||~~<==!!$,!233&#+6r   c                6    V P                   P                  4       # rz   )rM   r   rp   s   &r   r   BufferedWriter.writable  r,  r   c                   \        V\        4      '       d   \        R 4      hV P                  ;_uu_ 4        V P                  '       d   \        R4      h\        V P                  4      V P                  8  d   V P                  4        \        V P                  4      pV P                  P                  V4       \        V P                  4      V,
          p\        V P                  4      V P                  8  d    V P                  4        VuuRRR4       #   \         d   p\        T P                  4      T P                  8  dn   \        T P                  4      T P                  ,
          pY5,          pT P                  RT P                   T n        \        TP                  TP                  T4      h Rp?LRp?ii ; i  + '       g   i     R# ; i)rk  rj  N)r)   r-   r/   r  r   r2   r1   r  r  _flush_unlockedextendBlockingIOErrorerrnostrerror)rc   r%   beforer  eoverages   &&    r   r   BufferedWriter.write  s[   a>??{{{ !788 4??#d&6&66 $$&)FOO""1%$//*V3G4??#d&6&66	L((* /  ' L4??+d.>.>> #&doo"69I9I"I**.//:K4;K;K*L-aggqzz7KK ?L s7   CF>9D	F>F; BF61F>6F;;F>>G	Nc                    V P                   ;_uu_ 4        V P                  4        Vf   V P                  P                  4       pV P                  P	                  V4      uuR R R 4       #   + '       g   i     R # ; irz   )r  r  rM   rq   ru   rv   s   &&r   ru   BufferedWriter.truncate  sO      "{hhmmo88$$S)	 s   A	A))A:	c                    V P                   ;_uu_ 4        V P                  4        R R R 4       R #   + '       g   i     R # ; irz   )r  r  rp   s   &r   r}   BufferedWriter.flush  s)      " s	   0A	c                   V P                   '       d   \        R 4      hV P                  '       d    V P                  P	                  V P                  4      pTf   \        \        P                  R^ 4      hT\        T P                  4      8  g   T^ 8  d   \        R4      hT P                  RT1 K  R#   \
         d    \        R4      hi ; i)r#  zHself.raw should implement RawIOBase: it should not raise BlockingIOErrorNz)write could not complete without blockingz*write() returned incorrect number of bytes)r   r2   r  rM   r   r  RuntimeErrorr  EAGAINr1   r  rc   r   s   & r   r  BufferedWriter._flush_unlocked  s    ;;;344oooGHHNN4??3 y%LL?D D 3t''1q5JKK#  # G" $F G GGs   %B4 4Cc                `    \         P                  V 4      \        V P                  4      ,           # rz   )r  rq   r1   r  rp   s   &r   rq   BufferedWriter.tell
  s!    $$T*S-AAAr   c                    V\         9  d   \        R 4      hV P                  ;_uu_ 4        V P                  4        \        P                  WV4      uuRRR4       #   + '       g   i     R# ; i)r  N)r  r2   r  r  r  rh   rj   s   &&&r   rh   BufferedWriter.seek  sN    ))344  "#((F; s   &AA-	c           	        V P                   ;_uu_ 4        V P                  e   V P                  '       d    R R R 4       R #  R R R 4        V P                  4        V P                   ;_uu_ 4        V P                  P	                  4        R R R 4       R #   + '       g   i     LZ; i  + '       g   i     R # ; i  T P                   ;_uu_ 4        T P                  P	                  4        R R R 4       i   + '       g   i     i ; i; irz   )r  rM   r   r}   r?   rp   s   &r   r?   BufferedWriter.close  s    xx4;;; #. 	!JJL!!!  "!  "!!!!!  "!!!s@    BBB; /B'B$	'B8	;DC4	+	D4D?D)r  r  r  rz   ro   )rY   rZ   r[   r\   r9   r  r   r   ru   r}   r  rq   rh   r?   r]   r   r   s   @r   r;   r;     s=      )< 	"#8*#$"B<! !r   r;   c                      a  ] tR tRt o ]3R ltRR ltR tR tRR lt	RR lt
R tR	 tR
 tR tR tR t]R 4       tRtV tR# )BufferedRWPairi$  c                    VP                  4       '       g   \        R 4      hVP                  4       '       g   \        R4      h\        W4      V n        \        W#4      V n        R# )z#"reader" argument must be readable.z#"writer" argument must be writable.N)r   r  r   r<   readerr;   writer)rc   r  r  r  s   &&&&r   r  BufferedRWPair.__init__4  sN    
   ?@@  ?@@$V9$V9r   c                D    Vf   RpV P                   P                  V4      # r   )r  r   r   s   &&r   r   BufferedRWPair.readB  s!    <D{{%%r   c                8    V P                   P                  V4      # rz   )r  r   r   s   &&r   r   BufferedRWPair.readintoG  s    {{##A&&r   c                8    V P                   P                  V4      # rz   )r  r   r   s   &&r   r   BufferedRWPair.writeJ  s    {{  ##r   c                8    V P                   P                  V4      # rz   )r  r   r   s   &&r   r   BufferedRWPair.peekM  s    {{%%r   c                8    V P                   P                  V4      # rz   )r  r   r   s   &&r   r   BufferedRWPair.read1P  s    {{  &&r   c                8    V P                   P                  V4      # rz   )r  r  r   s   &&r   r  BufferedRWPair.readinto1S  s    {{$$Q''r   c                6    V P                   P                  4       # rz   )r  r   rp   s   &r   r   BufferedRWPair.readableV      {{##%%r   c                6    V P                   P                  4       # rz   )r  r   rp   s   &r   r   BufferedRWPair.writableY  r  r   c                6    V P                   P                  4       # rz   )r  r}   rp   s   &r   r}   BufferedRWPair.flush\  s    {{  ""r   c                     V P                   P                  4        V P                  P                  4        R #   T P                  P                  4        i ; irz   )r  r?   r  rp   s   &r   r?   BufferedRWPair.close_  s8    	 KKKKDKKs	   8 Ac                z    V P                   P                  4       ;'       g    V P                  P                  4       # rz   )r  r   r  rp   s   &r   r   BufferedRWPair.isattye  s*    {{!!#;;t{{'9'9';;r   c                .    V P                   P                  # rz   )r  r   rp   s   &r   r   BufferedRWPair.closedh      {{!!!r   )r  r  Nr   ro   )rY   rZ   r[   r\   r9   r  r   r   r   r   r   r  r   r   r}   r?   r   r   r   r]   r   r   s   @r   r  r  $  s[       4G :&
'$&'(&&# < " "r   r  c                   v   a  ] tR tRt o ]3R ltRR ltR tRR ltRR lt	R t
RR	 ltRR
 ltR tR tRtV tR# )r:   im  c                ~    VP                  4        \        P                  WV4       \        P                  WV4       R # rz   )r   r<   r  r;   r  s   &&&r   r  BufferedRandom.__init__v  s.    ;7;7r   c                0   V\         9  d   \        R 4      hV P                  4        V P                  '       d^   V P                  ;_uu_ 4        V P
                  P                  V P                  \        V P                  4      ,
          ^4       RRR4       V P
                  P                  W4      pV P                  ;_uu_ 4        V P                  4        RRR4       V^ 8  d   \        R4      hV#   + '       g   i     Ll; i  + '       g   i     L7; i)r  Nz seek() returned invalid position)r  r2   r}   r  r  rM   rh   r  r1   r  r  rj   s   &&&r   rh   BufferedRandom.seek{  s    ))344

>>>dnns4>>/BBAF ! hhmmC(___  " 7<==
 !
 _s   AC2D2D	D	c                z    V P                   '       d   \        P                  V 4      # \        P                  V 4      # rz   )r  r;   rq   r<   rp   s   &r   rq   BufferedRandom.tell  s-    ???!&&t,,!&&t,,r   Nc                T    Vf   V P                  4       p\        P                  W4      # rz   )rq   r;   ru   rv   s   &&r   ru   BufferedRandom.truncate  s#    ;))+C&&t11r   c                X    Vf   RpV P                  4        \        P                  W4      # r   )r}   r<   r   r   s   &&r   r   BufferedRandom.read  s&    <D

""4..r   c                L    V P                  4        \        P                  W4      # rz   )r}   r<   r   r   s   &&r   r   BufferedRandom.readinto  s    

&&t//r   c                L    V P                  4        \        P                  W4      # rz   )r}   r<   r   r   s   &&r   r   BufferedRandom.peek  s    

""4..r   c                L    V P                  4        \        P                  W4      # rz   )r}   r<   r   r   s   &&r   r   BufferedRandom.read1  s    

##D//r   c                L    V P                  4        \        P                  W4      # rz   )r}   r<   r  r   s   &&r   r  BufferedRandom.readinto1  s    

''00r   c                P   V P                   '       dn   V P                  ;_uu_ 4        V P                  P                  V P                  \        V P                   4      ,
          ^4       V P                  4        RRR4       \        P                  W4      #   + '       g   i     L%; ir   N)	r  r  rM   rh   r  r1   r  r;   r   r   s   &&r   r   BufferedRandom.write  sd    >>>dnns4>>/BBAF$$& ! ##D,, !s   ABB%	rX   ro   rz   r   )rY   rZ   r[   r\   r9   r  rh   rq   ru   r   r   r   r   r  r   r]   r   r   s   @r   r:   r:   m  sA      )< 8
"-2/0/01- -r   r:   c                 h    V R 8  d   V ^,	          pM	RV ,           pV\         8  d   \         pW,           # )      )r9   )
bytes_readaddends   & r   _new_buffersizer    s4    Eqz!##$r   c                     a a ] tR tRt oRtRtRtRtRtRt	Rt
RR ltR tR tR t]R	 4       tR
 tRR ltRR ltR tR tR t]3R ltR tRR ltV 3R ltR tR tR tR tR t R t!]R 4       t"]R 4       t#Rt$Vt%V ;t&# ) r4   i  FNTc                
   V P                   ^ 8  dB   RV n         V P                  '       d!   \        P                  ! V P                   4       RV n         \        V\        4      '       d   \        R4      h\        V\        4      '       dS   \        V\        4      '       d(   ^ RI
pVP                  R\        ^R7       \        V4      pTpV^ 8  d   \        R4      hMRp\        V\        4      '       g   \        RV: 24      h\        V4      \        R4      8:  g   \        RV: 24      h\!        R V 4       4      ^8w  g   VP#                  R	4      ^8  d   \        R
4      hRV9   d5   RV n        RV n        \        P(                  \        P*                  ,          pMRV9   d   RV n        ^ pMnRV9   d.   RV n        \        P*                  \        P.                  ,          pM:RV9   d4   RV n        RV n        \        P2                  \        P*                  ,          pR	V9   d   RV n        RV n        V P,                  '       d+   V P&                  '       d   X\        P4                  ,          pMAV P,                  '       d   X\        P6                  ,          pMX\        P8                  ,          pV\;        \        R^ 4      ,          p\;        \        R^ 4      ;'       g    \;        \        R^ 4      pWx,          pRp	 V^ 8  d   V'       g   \        R4      hVf   \        P<                  ! WR4      pM>V! W4      p\        V\        4      '       g   \        R4      hV^ 8  d   \        RV 24      hTp	V'       g   \        P>                  ! VR4       W0n        \        P@                  ! V4      V n         \B        PD                  ! V P                  PF                  4      '       d>   \I        \J        PL                  \        PN                  ! \J        PL                  4      V4      h \R        '       d   \S        V\        PT                  4       Wn+        V P0                  '       d    \        PX                  ! V^ \Z        4       M W`n         R#   RT n         i ; i  \P         d     L~i ; i  \\         d+   p
T
PJ                  \J        P^                  8w  d   h  Rp
?
LURp
?
ii ; i   RT n        T	e   \        P                  ! T	4       h ; i)r   Nz$integer argument expected, got floatz!bool is used as a file descriptor)r   znegative file descriptorzinvalid mode: zxrwab+c              3   *   "   T F	  qR 9   x  K  	  R# 5i)rwaxNrX   ).0cs   & r   	<genexpr>"FileIO.__init__.<locals>.<genexpr>  s     )DqF{Ds   r#   zKMust have exactly one of create/read/write/append mode and at most one plusr   Tr    r!   r"   O_BINARYO_NOINHERIT	O_CLOEXECz'Cannot use closefd=False with file namei  zexpected integer from openerzopener returned Fr(   )0_fd_stat_atopen_closefdr+   r?   r)   floatr/   r*   boolr   r   r3   r2   r-   r0   sumcount_created	_writableO_EXCLO_CREAT	_readableO_TRUNC
_appendingO_APPENDO_RDWRO_RDONLYO_WRONLYr   rQ   set_inheritablefstatstatS_ISDIRst_modeIsADirectoryErrorr  EISDIRr  r   _setmoder  rd   lseekr   r  ESPIPE)rc   r@   r>   rD   r'   r   fdr   noinherit_flagowned_fdr  s   &&&&&      r   r  FileIO.__init__  s    88q= $D===HHTXX&dE""BCCdC  $%%A,  <4yBAv !;<<  B$$$$8994yCM)49::)D))Q.$**S/A2E 9 : : $; DM!DNII

*ED[!DNED[!DNJJ+ED[!DN"DOKK"**,E$;!DN!DN>>>dnnnRYYE^^^R[[ ER[[ EZ++!"mQ7 6 6!"k15 	.	Av$%NOO>e4B,B%b#..'(FGGAv(+;B4)@AA%&&r51#M "D<< 1 1 9 9::+ELL,.KK,EtM M ; xR[[)IHHRH-  Q ` "     ww%,,. /	 $D#"sx   R  R <S A.S :8S 3A-R  S -2S  R# 	RR S R  S #S. SS SS $S?c                    V P                   ^ 8  dL   V P                  '       d8   V P                  '       g$   ^ RIpVP	                  RV: 2\
        ^V R7       R# R# R# R# )r   Nzunclosed file )r   rE  )r  r  r   r   r   ResourceWarning)rc   rE  r   s   && r   r   FileIO._dealloc_warnI  sJ    88q=T]]]4;;;MMN6*5%&t  5 4?]=r   c                J    \        R V P                  P                  : R24      hr7  r8  rp   s   &r   r9  FileIO.__getstate__O  r;  r   c           	     x   V P                   P                  : R V P                   P                  : 2pV P                  '       d
   RV,          #  V P                  pRV: RV: RV P
                  : RV P                  : R2	#   \         d.    RYP                  T P
                  T P                  3,          u # i ; i)ra   z<%s [closed]><z name=z mode=z	 closefd=>z<%s fd=%d mode=%r closefd=%r>)	rb   rZ   r[   r   rd   r>   r  r   r  )rc   
class_namerd   s   &  r   r@  FileIO.__repr__R  s     $ 9 9 $ ; ;=
;;;"Z//	B99D  tyy$--A B	  	F3499dmmDE F	Fs   B 5B98B9c                x    V P                   f   \        # \        V P                   R^ 4      pV'       g   \        # V# )N
st_blksize)r  r9   r   )rc   blksizes   & r   r8   FileIO._blksize`  s6    $&&$++\1=&&r   c                @    V P                   '       g   \        R 4      hR# )zFile not open for readingN)r(  rW   rp   s   &r   r   FileIO._checkReadablek      ~~~&'BCC r   c                @    V P                   '       g   \        R 4      hR# )zFile not open for writingN)r%  rW   r   s   &&r   r   FileIO._checkWritableo  rM  r   c                    V P                  4        V P                  4        Ve   V^ 8  d   V P                  4       #  \        P                  ! V P
                  V4      #   \         d     R # i ; irz   )r|   r   r   r+   r   r  r  r   s   &&r   r   FileIO.reads  s_     	<4!8<<>!	77488T** 		s    A A-,A-c                d   V P                  4        V P                  4        V P                  e   V P                  P                  ^ 8:  d   \        pMV P                  P                  ^,           pV P                  P                  R8  dg    \
        P                  ! V P                  ^ \        4      pV P                  P                  V8  d%   V P                  P                  V,
          ^,           p\        V4      p^ p \
        P                  ! V P                  \        V4      VR  4      ;p'       d7   WE,          pV\        V4      8  g   KO  VP                  \        V4      4       Kk   VP                  V4       \#        V4      #   \         d     Li ; i  \          d    T'       g    R #  LEi ; i)Nr  )r|   r   r  st_sizer9   r+   r7  r  r   r  r   r   r  r1   rm  r  r  r.   )rc   bufsizerk   rN   r  r   s   &     r   r   FileIO.readall  sc    	$(9(9(A(AQ(F)G ''//!3G  ((50((488Q9C((00C7"&"3"3";";c"AA"E 7#
	{{488Z-?
-LMM!M
V,MM/*"=> N 	j!V}#    	 	s,   
A%F =A
F F FFF/.F/c                    V P                  4        V P                  4         \        P                  ! V P                  V4      #   \
         d     R # i ; irz   )r|   r   r+   r   r  r  rc   rP   s   &&r   r   FileIO.readinto  sF    	;;txx00 		    A AAc                    V P                  4        V P                  4         \        P                  ! V P                  V4      #   \
         d     R # i ; irz   )r|   r   r+   r   r  r  r   s   &&r   r   FileIO.write  sH     		88DHHa(( 		rY  c                    \        V\        4      '       d   \        R 4      hV P                  4        \        P
                  ! V P                  W4      # )zan integer is required)r)   r   r/   r|   r+   r7  r  rj   s   &&&r   rh   FileIO.seek  s>     c5!!455xx#..r   c                n    V P                  4        \        P                  ! V P                  ^ \        4      # ro   )r|   r+   r7  r  r   rp   s   &r   rq   FileIO.tell  s'     	xx!X..r   c                    V P                  4        V P                  4        Vf   V P                  4       p\        P                  ! V P
                  V4       R V n        V# rz   )r|   r   rq   r+   	ftruncater  r  r   s   &&r   ru   FileIO.truncate  sK     	<99;D
TXXt$ r   c                  < V P                   '       g\   R V n         V P                  '       d2   V P                  ^ 8  d!   \        P
                  ! V P                  4       \        SV `  4        R # R #   \        ST `  4        i ; irz   )r   r  r  r  r+   r?   r`  ra  s   &r   r?   FileIO.close  sY     {{{ $D ===TXX]HHTXX&  s   A1 1A1 1Bc                    V P                  4        V P                  f%    V P                  4        RV n        V P                  # V P                  #   \         d    RT n         T P                  # i ; i)NTF)r|   	_seekablerq   r  rp   s   &r   r   FileIO.seekable  sf    >>!&		 "&~~t~~	  '!& ~~	's   A A/.A/c                :    V P                  4        V P                  # rz   )r|   r(  rp   s   &r   r   FileIO.readable      ~~r   c                :    V P                  4        V P                  # rz   )r|   r%  rp   s   &r   r   FileIO.writable  rj  r   c                :    V P                  4        V P                  # rz   )r|   r  rp   s   &r   r   FileIO.fileno  s    xxr   c                b    V P                  4        \        P                  ! V P                  4      # rz   )r|   r+   r   r  rp   s   &r   r   FileIO.isatty  s!    yy""r   c                    V P                   e3   \        P                  ! V P                   P                  4      '       g   R# \        P
                  ! V P                  4      # )NF)r  r1  S_ISCHRr3  r+   r   r  rp   s   &r   r5   FileIO._isatty_open_only!  sA     )LL!2!2!:!:;;yy""r   c                    V P                   # rz   )r  rp   s   &r   rD   FileIO.closefd0  s     }}r   c                    V P                   '       d   V P                  '       d   R # R# V P                  '       d   V P                  '       d   R# R# V P                  '       d   V P                  '       d   R# R# R# )zxb+xbzab+abzrb+rS   wb)r$  r(  r*  r%  rp   s   &r   r>   FileIO.mode5  sO     ===~~~___~~~^^^~~~r   )	r*  r  r$  r  r(  rf  r  r%  rd   r(   )r    TNrz   )'rY   rZ   r[   r\   r  r$  r(  r%  r*  rf  r  r  r   r9  r@  r   r8   r   r   r   r   r   r   r   rh   rq   ru   r?   r   r   r   r   r   r5   rD   r>   r]   r   r  r  s   @@r   r4   r4     s     
CHIIJIH||5MB  DD,,\  ( / / 



#
#     r   r4   c                   v   a  ] tR tRt o RR ltR tRR ltR tR t]	R 4       t
]	R	 4       t]	R
 4       tRtV tR# )
TextIOBaseiK  c                (    V P                  R 4       R# r   ri   r   s   &&r   r   TextIOBase.readS  s     	&!r   c                (    V P                  R 4       R# r   ri   )rc   ss   &&r   r   TextIOBase.write]  s    '"r   Nc                (    V P                  R 4       R# rt   ri   rv   s   &&r   ru   TextIOBase.truncatea  s    *%r   c                (    V P                  R 4       R# )r   Nri   rp   s   &r   r   TextIOBase.readlinee  s    
 	*%r   c                (    V P                  R 4       R# r  ri   rp   s   &r   r  TextIOBase.detachl  r  r   c                    R # rz   rX   rp   s   &r   r   TextIOBase.encodingu  s     r   c                    R # rz   rX   rp   s   &r   newlinesTextIOBase.newlinesz  s     r   c                    R # rz   rX   rp   s   &r   rB   TextIOBase.errors  s    
 r   rX   r   rz   )rY   rZ   r[   r\   r   r   ru   r   r  r   r   r  rB   r]   r   r   s   @r   r|  r|  K  sZ     "#&&$      r   r|  c                   b   a  ] tR tRt o R
R ltRR ltR tR tR t^t	^t
^t]R 4       tRtV tR	# )IncrementalNewlineDecoderi  c                z    \         P                  P                  WR 7       W n        Wn        ^ V n        RV n        R# ))rB   FN)codecsIncrementalDecoderr  	translatedecoderseennl	pendingcr)rc   r  r  rB   s   &&&&r   r  "IncrementalNewlineDecoder.__init__  s1    !!**4*?"r   c                   V P                   f   TpMV P                   P                  WR7      pV P                  '       d!   V'       g	   V'       d   RV,           pRV n        VP                  R4      '       d   V'       g   VR R pRV n        VP	                  R4      pVP	                  R4      V,
          pVP	                  R4      V,
          pT ;P
                  T;'       d    V P                  T;'       d    V P                  ,          T;'       d    V P                  ,          ,          un        V P                  '       d5   V'       d   VP                  RR4      pV'       d   VP                  RR4      pV# )NfinalFT

r(   )r  decoder  r   r#  r  _LF_CR_CRLFr  replace)rc   inputr  outputcrlfcrlfs   &&&    r   r   IncrementalNewlineDecoder.decode  s   <<F\\(((<F>>>vF]F"DN ??4  CR[F!DN ||F#\\$$&\\$$&txxBOO488<**

, 	, >>>5d3r   c                    V P                   f   Rp^ pMV P                   P                  4       w  rV^,          pV P                  '       d
   V^,          pW3# )Nr   )r  getstater  )rc   rR  flags   &  r   r  "IncrementalNewlineDecoder.getstate  sM    <<CD--/IC
>>>AIDyr   c                    Vw  r#\        V^,          4      V n        V P                  e&   V P                  P                  W#^,	          34       R# R# r
  )r!  r  r  setstate)rc   staterR  r  s   &&  r   r  "IncrementalNewlineDecoder.setstate  s@    	dQh<<#LL!!3	"23 $r   c                v    ^ V n         RV n        V P                  e   V P                  P                  4        R# R# )r   FN)r  r  r  resetrp   s   &r   r  IncrementalNewlineDecoder.reset  s/    <<#LL  $r   c                (    RV P                   ,          # )N)Nr  r  )r  r  r  )r  r  )r  r  )r  r  r  )r  rp   s   &r   r  "IncrementalNewlineDecoder.newlines  s      	r   )r  r  r  r  N)strictr   )rY   rZ   r[   r\   r  r  r  r  r  r  r  r  r   r  r]   r   r   s   @r   r  r    sA     >	4! C
CE	 	r   r  c            
         a  ] tR tRt o RtRtR0R ltR tR0R ltR 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 ltR tR tR tR tR t]
R 4       t]
R 4       tR tR tR tR tR tR tR1R  ltR! t R" t!R# t"R2R$ lt#R% t$R& t%R1R' lt&R( t'R3R) lt(R1R* lt)R+ t*R1R, lt+]
R- 4       t,R. t-R/t.V t/R# )4r=   i  i   Nc                   V P                  V4       \        V4      pVR 8X  d   V P                  4       p\        V\        4      '       g   \        RV,          4      h\        P                  ! V4      P                  '       g   Rp\        Wr,          4      hVf   RpMJ\        V\        4      '       g   \        RV,          4      h\        '       d   \        P                  ! V4       Wn        RV n        ^ V n        RV n        V P                   P#                  4       ;V n        V n        \)        V P                   R4      V n        V P-                  W#VWV4       R# )r   r   z%r is not a text encodingNr  r   r&   r   )_check_newliner   _get_locale_encodingr)   r-   r2   r  lookup_is_text_encodingLookupError_CHECK_ERRORSlookup_errorrO  _decoded_chars_decoded_chars_used	_snapshotrP   r   rf  _tellingr   
_has_read1
_configure)rc   rP   r   rB   rC   rO   write_throughr   s   &&&&&&& r   r  TextIOWrapper.__init__  s   G$ *x002H(C((3h>??}}X&888-Ccn-->Ffc** !5!>??}##F+ #$ )-)=)=)??!$++w7'&	7r   c                    Ve/   \        V\        4      '       g   \        R\        V4      : 24      hVR9  d   \	        RV: 24      hR # )Nzillegal newline type: zillegal newline value: )Nr&   r  r  r  )r)   r-   r/   typer2   )rc   rC   s   &&r   r  TextIOWrapper._check_newline$  sB    z'3'?'?$w-IJJ88GEFF 9r   c                   Wn         W n        R V n        R V n        RV n        V'       * V n        VR J V n        W0n        VR8g  V n        T;'       g    \        P                  V n        W@n        WPn        V P                  '       d^   V P                  4       '       dF   V P                   P#                  4       pV^ 8w  d#    V P%                  4       P'                  ^ 4       R # R # R # R #   \(         d     R # i ; i)N        r&   )	_encoding_errors_encoder_decoder	_b2cratio_readuniversal_readtranslate_readnl_writetranslater+   linesep_writenl_line_buffering_write_throughrf  r   rP   rq   _get_encoderr  r  )rc   r   rB   rC   rO   r  positions   &&&&&& r   r  TextIOWrapper._configure*  s    !")k%o&"}--2::-+ >>>dmmoo{{'')H1}%%'003  .>
 # s   <C# #C21C2c                   R P                  V P                  P                  V P                  P                  4      p V P                  pVRP                  V4      ,          p V P                  pVRP                  V4      ,          pVRP                  V P                  4      ,           #   \
         d     LTi ; i  \
         d     L@i ; i)z<{}.{}z name={0!r}z mode={0!r}z encoding={0!r}>)r=  rb   rZ   r[   rd   r   r>   r   )rc   rN   rd   r>   s   &   r   r@  TextIOWrapper.__repr__N  s    !:!:!%!<!<>	199D m**400F	199D m**400F*11$--@@@  		  		s#   B' !B8 'B54B58CCc                    V P                   # rz   )r  rp   s   &r   r   TextIOWrapper.encoding_  s    ~~r   c                    V P                   # rz   )r  rp   s   &r   rB   TextIOWrapper.errorsc      ||r   c                    V P                   # rz   )r  rp   s   &r   rO   TextIOWrapper.line_bufferingg  s    ###r   c                    V P                   # rz   )r  rp   s   &r   r  TextIOWrapper.write_throughk  s    """r   c                    V P                   # rz   )rO  rp   s   &r   rP   TextIOWrapper.buffero  r  r   r   rB   rC   rO   r  c               P   V P                   e   Vf   Vf   V\        Jd   \        R4      hVf   Vf   V P                  pM+RpM(\	        V\
        4      '       g   \        RV,          4      hVf   V P                  pM?\	        V\
        4      '       g   \        RV,          4      hVR8X  d   V P                  4       pV\        J d   V P                  pV P                  V4       Vf   V P                  pVf   V P                  pV P                  4        V P                  WVWE4       R # )NzPIt is not possible to set the encoding or newline of stream after the first readr  r   r   r   )r  EllipsisrW   r  r)   r-   r/   r  r  r  r  rO   r  r}   r  )rc   r   rB   rC   rO   r  s   &$$$$$r   reconfigureTextIOWrapper.reconfigures  s    MM%)V-?x/&'( ( >!FC((069::~~Hh,, 6 ABB8#446hllGG$!!00N  ..M

'&	7r   c                T    V P                   '       d   \        R 4      hV P                  # )r   )r   r2   rf  rp   s   &r   r   TextIOWrapper.seekable  s!    ;;;<==~~r   c                6    V P                   P                  4       # rz   )rP   r   rp   s   &r   r   TextIOWrapper.readable  r  r   c                6    V P                   P                  4       # rz   )rP   r   rp   s   &r   r   TextIOWrapper.writable  r  r   c                \    V P                   P                  4        V P                  V n        R # rz   )rP   r}   rf  r  rp   s   &r   r}   TextIOWrapper.flush  s    r   c                    V P                   eB   V P                  '       g.    V P                  4        V P                   P                  4        R # R # R #   T P                   P                  4        i ; irz   )rP   r   r}   r?   rp   s   &r   r?   TextIOWrapper.close  sN    ;;"4;;;$

!!#	 ,7" !!#r'  c                .    V P                   P                  # rz   )rP   r   rp   s   &r   r   TextIOWrapper.closed  r  r   c                .    V P                   P                  # rz   )rP   rd   rp   s   &r   rd   TextIOWrapper.name  s    {{r   c                6    V P                   P                  4       # rz   )rP   r   rp   s   &r   r   TextIOWrapper.fileno      {{!!##r   c                6    V P                   P                  4       # rz   )rP   r   rp   s   &r   r   TextIOWrapper.isatty  r  r   c                \   V P                   '       d   \        R 4      h\        V\        4      '       g'   \	        RVP
                  P                  ,          4      h\        V4      pV P                  ;'       g    V P                  ;'       d    RV9   pV'       d@   V P                  '       d.   V P                  R8w  d   VP                  RV P                  4      pV P                  ;'       g    V P                  4       pVP                  V4      pV P                  P!                  V4       V P                  '       d    V'       g   RV9   d   V P#                  4        V P$                  e   V P'                  R4       RV n        V P(                  '       d   V P(                  P+                  4        V# )rj  zcan't write %s to text streamr  r  Nr&   )r   r2   r)   r-   r/   rb   rY   r1   r  r  r  r  r  r  encoderP   r   r}   r  _set_decoded_charsr  r  )rc   r  lengthhaslfencoderr%   s   &&    r   r   TextIOWrapper.write  s5   ;;;344!S!!;KK001 2 2Q%%==)=)=LL419T)))dmmt.C		$.A--664#4#4#6NN1!UdaiJJL>>%##B'!DN===MM!r   c                    \         P                  ! V P                  4      pV! V P                  4      V n        V P                  # rz   )r  getincrementalencoderr  r  r  )rc   make_encoders   & r   r  TextIOWrapper._get_encoder  s0    33DNNC$T\\2}}r   c                    \         P                  ! V P                  4      pV! V P                  4      pV P                  '       d   \        W P                  4      pW n        V# rz   )r  getincrementaldecoderr  r  r  r  r  r  )rc   make_decoderr  s   &  r   _get_decoderTextIOWrapper._get_decoder  sJ    33DNNCt||,/9L9LMGr   c                     Wn         ^ V n        R# r  )r  r  )rc   charss   &&r   r   TextIOWrapper._set_decoded_chars  s    ##$ r   c                    V P                   pVf   V P                  VR  pMV P                  W"V,            pV ;P                   \        V4      ,          un         V# rz   )r  r  r1   )rc   r   offsetr  s   &&  r   _get_decoded_chars TextIOWrapper._get_decoded_chars  sR    ))9''0E''z:E  CJ. r   c                P     ^ RI pVP                  4       #   \         d     R# i ; i)r   Nr   )r   getencodingImportError)rc   r   s   & r   r  "TextIOWrapper._get_locale_encoding  s/    	(
 %%''	  		s    %%c                p    V P                   V8  d   \        R 4      hV ;P                   V,          un         R# )z"rewind decoded_chars out of boundsN)r  AssertionErrorr  s   &&r   _rewind_decoded_chars#TextIOWrapper._rewind_decoded_chars	  s-    ##a' !EFF  A% r   c                v   V P                   f   \        R4      hV P                  '       d   V P                   P                  4       w  rV P                  '       d'   V P
                  P                  V P                  4      pM%V P
                  P                  V P                  4      pV'       * pV P                   P                  W44      pV P                  V4       V'       d,   \        V4      \        V P                  4      ,          V n        MRV n        V P                  '       d   XXV,           3V n        V'       * # )Nz
no decoderr  )r  r2   r  r  r  rP   r   _CHUNK_SIZEr   r  r  r1   r  r  r  )rc   
dec_buffer	dec_flagsinput_chunkeofdecoded_charss   &     r   _read_chunkTextIOWrapper._read_chunk	  s     == \**=== %)MM$:$:$<!J
 ???++++D,<,<=K++**4+;+;<Ko,,[>. -D4G4G0HHDN DN=== (k)ABDNwr   c                    W^@,          ,          V^,          ,          V^,          ,          \        V4      R,          ,          # )@   r  )r!  )rc   r  r$  bytes_to_feedneed_eofchars_to_skips   &&&&&&r   _pack_cookieTextIOWrapper._pack_cookie2	  s;     rM*mS.@As"$&*8nc&9: 	;r   c                    \        VR4      w  r#\        VR4      w  r$\        VR4      w  r%\        VR4      w  rgW4V\        V4      V3# )r   l            )divmodr!  )rc   bigintrestr  r$  r,  r-  r.  s   &&      r   _unpack_cookieTextIOWrapper._unpack_cookie<	  sO    . u-$T51"(u"5M4>=PPr   c           
        V P                   '       g   \        R 4      hV P                  '       g   \        R4      hV P	                  4        V P
                  P                  4       pV P                  pVe   V P                  f    V P                  '       d   \        R4      hV# V P                  w  r4V\        V4      ,          pV P                  pV^ 8X  d   V P                  W4      # VP                  4       p \        V P                   V,          4      p^pV^ 8  d   VP#                  RV34       \        VP%                  VRV 4      4      p	W8:  d<   VP                  4       w  rV
'       g   TpWY,          pM>V\        V
4      ,          p^pKx  Wx,          pV^,          pK  ^ pVP#                  RV34       W,           pTpV^ 8X  d#   V P                  W4      VP#                  V4       # ^ pRp^ p\'        V\        V4      4       Fx  pV^,          pV\        VP%                  VVV^,            4      4      ,          pVP                  4       w  ppV'       g   VV8:  d   W,          pVV,          pT^ ^ prVV8  g   Kx   M9	  V\        VP%                  RRR7      4      ,          pRpVV8  d   \        R4      hV P                  WWV4      VP#                  V4       #   TP#                  T4       i ; i)	!underlying stream is not seekablez(telling position disabled by next() callNzpending decoded textr   FTr  z'can't reconstruct logical file position)rf  rW   r  r  r}   rP   rq   r  r  r  r  r1   r  r/  r  r*   r  r  r  range)rc   r  r  r$  
next_inputr.  saved_state
skip_bytes	skip_backr   r%   d	start_posstart_flags	bytes_fedr-  chars_decodedir#  s   &                  r   rq   TextIOWrapper.tellC	  s   ~~~&'JKK}}}DEE

;;##%--?dnn4"""$%;<<O !%	C
O# 00A$$X99 &&(F	* T^^m;<JIq.  #y!12z+:'>?@%"++-DA$%	%*#a&(J !I +J )AI
  #y!12 !-I#K!((@@ [)5 IHM:s:7Q	W^^Jq14E%F!GG(/(8(8(:%
I!m}&D*I!]2M<Eq!M M1 8 W^^Ct^%D!EE =0!"KLL $$	]L [)G[)s   7CK (BK ;AK K-c                    V P                  4        Vf   V P                  4       pV P                  P                  V4      # rz   )r}   rq   rP   ru   rv   s   &&r   ru   TextIOWrapper.truncate	  s0    

;))+C{{##C((r   c                ~    V P                   f   \        R4      hV P                  4        V P                  pR V n        V# )Nzbuffer is already detached)rP   r2   r}   rO  rW  s   & r   r  TextIOWrapper.detach	  s6    ;;9::

r   c                |  a  V 3R  lpS P                   '       d   \        R4      hS P                  '       g   \        R4      hV\        8X  d&   V^ 8w  d   \        R4      h^ pS P                  4       pMV\        8X  d   V^ 8w  d   \        R4      hS P                  4        S P                  P                  ^ V4      pS P                  R4       RS n        S P                  '       d   S P                  P                  4        V! V4       V# V^ 8w  d   \        RV: R24      hV^ 8  d   \        R	V: 24      hS P                  4        S P                  V4      w  rVrxp	S P                  P                  V4       S P                  R4       RS n        V^ 8X  d.   S P                  '       d   S P                  P                  4        MqS P                  '       g   V'       g	   V	'       dP   S P                  ;'       g    S P                  4       S n        S P                  P!                  R
V34       VR
3S n        V	'       dz   S P                  P#                  V4      p
S P                  S P                  P%                  W4      4       Wj3S n        \'        S P(                  4      V	8  d   \+        R4      hV	S n        V! V4       V# )c                    <  SP                   ;'       g    SP                  4       pV ^ 8w  d   VP                  ^ 4       R# VP                  4        R#   \         d     R# i ; ir  )r  r  r  r  r  )r  r  rc   s   & r   _reset_encoder*TextIOWrapper.seek.<locals>._reset_encoder	  sV    	$-->>4+<+<+>
 q=$$Q'MMO  s   A A A"!A"ru  r8  z#can't do nonzero cur-relative seeksz#can't do nonzero end-relative seeksr&   Nzunsupported whence ()rq  r   z#can't restore logical file position)r   r2   rf  rW   r   rq   r   r}   rP   rh   r  r  r  r  r5  r  r  r   r  r1   r  r  r  )rc   cookierl   rK  r  r?  r$  r,  r-  r.  r%  s   f&&        r   rh   TextIOWrapper.seek	  s2   	$ ;;;233~~~&'JKKX{*+PQQ FYY[Fx{*+PQQJJL{{''62H##B'!DN}}}##%8$OQ;&BCCA:FDEE


 ' 	E	m} 	## Q;4===MM!]]]i= MM@@T->->-@DMMM""C#34'-DN++**=9K##$$[;='5DN 4&&'-7CDD'4D$vr   c                   V P                  4        Vf   RpM VP                  pV! 4       pV P                  ;'       g    V P                  4       pV^ 8  dz   V P                  P                  4       pVf   \        R4      hV P                  4       VP                  VRR7      ,           pV P                  e   V P                  R4       R V n        V# RpV P                  V4      p\        V4      V8  dG   V'       g?   V P                  4       '       * pWPP                  V\        V4      ,
          4      ,          pKV  V#   \         d    \        T: R24      hi ; i)Nr   zRead returned None.Tr  r&   Fr(   )r   r   r   r/   r  r  rP   r   r  r  r  r  r  r1   r(  )rc   r   r   r  r  rN   r&  s   &&     r   r   TextIOWrapper.read	  s5   <D$!^^
 "|--664#4#4#6!8KK$$&E}%&;<<--/nnU$n78F~~)''+!%M C,,T2Ff+$S**,,11$V2DEEM/ " ?4(*< =>>?s   D; ;Ec                    R V n         V P                  4       pV'       g   RV n        V P                  V n         \        hV# )FN)r  r   r  rf  r   r   s   & r   r   TextIOWrapper.__next__
  s4    }}!DN NNDMr   c                   V P                   '       d   \        R 4      hVf   RpM VP                  pV! 4       pV P                  4       p^ pV P                  '       g   V P                  4        R;rV V P                  '       d1   VP                  RV4      pV^ 8  d   V^,           pEMr\        V4      pMV P                  '       d   VP                  RV4      pVP                  RV4      pVR8X  d   VR8X  d   \        V4      pMV^,           pEMVR8X  d   V^,           pMWx8  d   V^,           pMWx^,           8X  d   V^,           pMV^,           pMVP                  V P                  4      pV^ 8  d   V\        V P                  4      ,           pMV^ 8  d   \        V4      V8  d   TpMpV P                  4       '       d   V P                  '       g   K*   V P                  '       d   W0P                  4       ,          pEK  V P                  R4       RV n        V# V^ 8  d	   Wa8  d   TpV P#                  \        V4      V,
          4       VRV #   \         d    \	        T: R24      hi ; i)rd  Nr   r  r  r&   r(   )r   r2   r   r   r/   r  r  r  r  r   r1   r  r  r(  r  r  r  r  )	rc   r   r   r   startrk   endposnlposcrposs	   &&       r   r   TextIOWrapper.readline(
  s>   ;;;455<D$!^^
 "| &&(}}}"""iie,!8 1WFIE$$$
 		$.		$.B;{ #D	 "'b["QYF]"QYFai'"QYF #QYF ii-!8 3t||#44FqySY$. ""$$&&&"""//11 ''+!%19F 	""3t9v#56GV}g " ?4(*< =>>?s   I I)c                V    V P                   '       d   V P                   P                  # R # rz   )r  r  rp   s   &r   r  TextIOWrapper.newlines
  s    )-t}}%%@D@r   c                X    \        V P                  R R4      ;p'       d   V! V4       R# R# rC  )r   rP   rD  s   && r   r   TextIOWrapper._dealloc_warn
  s(    "4;;FF<F  Gr   )r  rO  r  r  r  r  r  r  r  r  r  r  r  rf  r  r  r  r  r  )NNNFFrz   )r   r   Fr   ro   )0rY   rZ   r[   r\   r"  rO  r  r  r  r@  r   r   rB   rO   r  rP   r  r  r   r   r   r}   r?   r   rd   r   r   r   r  r  r  r  r  r  r(  r/  r5  rq   ru   r  rh   r   r   r   r  r   r]   r   r   s   @r   r=   r=     s    0 K G
7@GHA"     $ $ # #  )7!)7*.)78@)7#')77;)7V
&&'$ " "    $$0
%
(&(T;Qa*F)IV@[z A A! !r   r=   c                   h   a a ] tR tRt oR	V 3R lltR tR t]R 4       t]R 4       t	R t
RtVtV ;t# )
StringIOi
  c                2  < \         \        V `  \        4       R RVR7       Vf   RV n        Veh   \        V\        4      '       g.   \        RP                  \        V4      P                  4      4      hV P                  V4       V P                  ^ 4       R# R# )r   surrogatepass)r   rB   rC   NFz*initial_value must be str or None, not {0})r`  r_  r  rM  r  r)   r-   r/   r=  r  rY   r   rh   )rc   initial_valuerC   rb   s   &&&r   r  StringIO.__init__
  s    h&wy07.=/6 	' 	8 ?#(D $mS11 L!'](;(D(D!EG GJJ}%IIaL %r   c                P   V P                  4        V P                  ;'       g    V P                  4       pVP                  4       pVP	                  4         VP                  V P                  P                  4       R R7      VP                  V4       #   TP                  T4       i ; i)Tr  )	r}   r  r  r  r  r  rP   rY  r  )rc   r  	old_states   &  r   rY  StringIO.getvalue
  s{    

--664#4#4#6$$&		(>>$++"6"6"8>EY'GY's   *B B%c                ,    \         P                  V 4      # rz   )objectr@  rp   s   &r   r@  StringIO.__repr__
  s     t$$r   c                    R # rz   rX   rp   s   &r   rB   StringIO.errors
      r   c                    R # rz   rX   rp   s   &r   r   StringIO.encoding
  rl  r   c                (    V P                  R 4       R# r  ri   rp   s   &r   r  StringIO.detach
  s    (#r   )r  )r&   r  )rY   rZ   r[   r\   r  rY  r@  r   rB   r   r  r]   r   r  r  s   @@r   r_  r_  
  sF      (%
    $ $r   r_  >   win32cygwin>   r   r      i   )rs  )r    r(   NNNTN)9r+   abcr  r  r1  r   _threadr   r  platformmsvcrtr   r6  ior   r   r   r   r	   r
   r  r   addr   	SEEK_DATAr9   r  r   dev_moder  r   staticmethodrQ   rU   	open_coder   rW   r  r2   ABCMetar_   registerr   r   r  rM  r<   r;   r  r:   r  r4   r|  r  r  r=   r_  rX   r   r   <module>r     sH  
 
 
    
 )<<&&*H 	 F F 
2{&& !  " 01GGSYY5G5GB D DP (I22Ys{{ Yv 		  6 8# 8#t   i  e$V e$N     > *l!~ l!^Jn JZF% FPf!% f!RF"^ F"RG-^^ G-TFY FR> >@   z "R 9 9 Rjh
!J h
!V0$} 0$SK  ('I(  w
 s$   H !H 	HHH54H5