+
    öÙ†jÒ  ã                  óö   € ^ RI Ht ^ RIt^ RIHtHt ^ RIt^ RIt^ RIt^ RI	H
t
Ht ^ RIt^ RItRt]'       d   ^ RIHt ^ RIHt ]
 ! R R	4      4       t]
 ! R
 R]4      4       t ! R R]P*                  4      tR# )é    )ÚannotationsN)ÚABCÚabstractmethod)Ú	dataclassÚfieldF)ÚIO)ÚCallablec                  ó:   € ] tR t^(t$ R]R&   R]R&   RtR]R&   RtR# )	ÚEventÚstrÚevtÚdataó    ÚbytesÚraw© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r   Ú__static_attributes__r   r   Ú&/usr/lib/python3.14/_pyrepl/console.pyr   r   (   s   ‡ à	ƒHØ
ƒIØ€Cˆ×r   r   c                  óä  € ] tR t^/t$ R]R&   ]! ]R7      tR]R&   ^tR]R&   ^Pt	R]R&   R/R	 R
 llt
]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R0R R ll4       t]R R l4       t]R R l4       t]R R l4       t]R R  l4       t]R! R" l4       t]R# R$ l4       t]R% R& l4       t]R' R( l4       t]R) R* l4       t]R+ R, l4       tR-tR.# )1ÚConsoleútuple[int, int]Úposxy)Údefault_factoryú	list[str]ÚscreenÚintÚheightÚwidthc               ó(   € V ^8„  d   QhRRRRRRRR/# )é   Úf_inzIO[bytes] | intÚf_outÚtermr   Úencodingr   )Úformats   "r   Ú__annotate__ÚConsole.__annotate__6   s2   € ÷ ,ñ ,àð,ð ð,ð ð	,ð
 ñ,r   c                	ó  € T;'       g    \         P                  ! 4       V n        \        V\        4      '       d   Wn        MVP                  4       V n        \        V\        4      '       d	   W n        R # VP                  4       V n        R # ©N)ÚsysÚgetdefaultencodingr)   Ú
isinstancer!   Úinput_fdÚfilenoÚ	output_fd)Úselfr&   r'   r(   r)   s   &&&&&r   Ú__init__ÚConsole.__init__6   sZ   € ð !×<Ð<¤C×$:Ò$:Ó$<ˆŒä�dœC× Ò Ø �Mà ŸK™K›MˆDŒMä�eœS×!Ò!Ø"ŽNà"Ÿ\™\›^ˆDŽNr   c               ó$   € V ^8„  d   QhRRRRRR/# )r%   r    r   Úxyr   ÚreturnÚNoner   )r*   s   "r   r+   r,   J   s   € ×JÑJ˜iÐJ¨_ÐJÀÑJr   c                	ó   € R # r.   r   )r5   r    r9   s   &&&r   ÚrefreshÚConsole.refreshI   s   € ÙGJr   c               ó   € V ^8„  d   QhRR/# ©r%   r:   r;   r   )r*   s   "r   r+   r,   M   ó   € ×"Ñ"˜Ñ"r   c                	ó   € R # r.   r   ©r5   s   &r   ÚprepareÚConsole.prepareL   ó   € Ù"r   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   P   rA   r   c                	ó   € R # r.   r   rC   s   &r   ÚrestoreÚConsole.restoreO   rF   r   c               ó$   € V ^8„  d   QhRRRRRR/# )r%   Úxr!   Úyr:   r;   r   )r*   s   "r   r+   r,   S   s   € ×6Ñ6˜SÐ6 SÐ6¨TÑ6r   c                	ó   € R # r.   r   )r5   rL   rM   s   &&&r   Úmove_cursorÚConsole.move_cursorR   s   € Ù36r   c               ó    € V ^8„  d   QhRRRR/# )r%   ÚvisibleÚboolr:   r;   r   )r*   s   "r   r+   r,   V   s   € ×8Ñ8 dÐ8¨tÑ8r   c                	ó   € R # r.   r   )r5   rR   s   &&r   Úset_cursor_visÚConsole.set_cursor_visU   s   € Ù58r   c               ó   € V ^8„  d   QhRR/# )r%   r:   r   r   )r*   s   "r   r+   r,   Y   s   € ÷ ñ  ñ r   c                ó   € R# )zlReturn (height, width) where height and width are the height
and width of the terminal window in characters.Nr   rC   s   &r   ÚgetheightwidthÚConsole.getheightwidthX   ó   € ñ 	r   c               ó    € V ^8„  d   QhRRRR/# )r%   ÚblockrS   r:   zEvent | Noner   )r*   s   "r   r+   r,   _   s   € ÷ ñ ˜tð ¨|ñ r   c                ó   € R# )zŠReturn an Event instance.  Returns None if |block| is false
and there is no event pending, otherwise waits for the
completion of an event.Nr   )r5   r]   s   &&r   Ú	get_eventÚConsole.get_event^   ó   € ñ
 	r   c               ó    € V ^8„  d   QhRRRR/# )r%   Úcharzint | bytesr:   r;   r   )r*   s   "r   r+   r,   f   s   € ÷ ñ ˜kð ¨dñ r   c                ó   € R# )z.
Push a character to the console event queue.
Nr   )r5   rc   s   &&r   Ú	push_charÚConsole.push_chare   ra   r   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   m   s   € ×Ñ�dÑr   c                	ó   € R # r.   r   rC   s   &r   ÚbeepÚConsole.beepl   s   € Ùr   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   p   s   € ÷ ñ �tñ r   c                ó   € R# )zWipe the screenNr   rC   s   &r   ÚclearÚConsole.clearo   ó   € ñ 	r   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   u   s   € ÷ ñ ˜ñ r   c                ó   € R# )zsMove the cursor to the end of the display and otherwise get
ready for end.  XXX could be merged with restore?  Hmm.Nr   rC   s   &r   ÚfinishÚConsole.finisht   r[   r   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   {   s   € ÷ ñ ˜Tñ r   c                ó   € R# )zTFlush all output to the screen (assuming there's some
buffering going on somewhere).Nr   rC   s   &r   ÚflushoutputÚConsole.flushoutputz   r[   r   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   �   s   € ÷ ñ ˜Tñ r   c                ó   € R# )z0Forget all pending, but not yet processed input.Nr   rC   s   &r   ÚforgetinputÚConsole.forgetinput€   ro   r   c               ó   € V ^8„  d   QhRR/# )r%   r:   r   r   )r*   s   "r   r+   r,   †   s   € ÷ ñ ˜Eñ r   c                ó   € R# )zAReturn the characters that have been typed but not yet
processed.Nr   rC   s   &r   Ú
getpendingÚConsole.getpending…   r[   r   c               ó    € V ^8„  d   QhRRRR/# )r%   Útimeoutzfloat | Noner:   rS   r   )r*   s   "r   r+   r,   Œ   s   € ÷ ñ ˜Lð ¨Tñ r   c                ó   € R# )z®Wait for an event. The return value is True if an event is
available, False if the timeout has been reached. If timeout is
None, wait forever. The timeout is in milliseconds.Nr   )r5   r�   s   &&r   ÚwaitÚConsole.wait‹   ra   r   c               ó   € V ^8„  d   QhRR/# )r%   r:   zCallable[[], int] | Noner   )r*   s   "r   r+   r,   “   s   € ÷ ñ Ð4ñ r   c                ó   € R# )zReturns the current input hook.Nr   rC   s   &r   Ú
input_hookÚConsole.input_hook’   ro   r   c               ó   € V ^8„  d   QhRR/# r@   r   )r*   s   "r   r+   r,   ˜   rA   r   c                	ó   € R # r.   r   rC   s   &r   ÚrepaintÚConsole.repaint—   rF   r   )r)   r2   r4   N)r   é   Ú rŽ   )T)r   r   r   r   r   r   Úlistr    r"   r#   r6   r   r=   rD   rI   rO   rU   rY   r_   re   ri   rm   rr   rv   rz   r~   rƒ   Úpropertyr‡   r‹   r   r   r   r   r   r   /   s[  ‡ àÓÙ¨dÔ3€FˆIÓ3Ø€FˆCÓØ€Eˆ3ƒO÷,ð& ÜJó ØJàÜ"ó Ø"àÜ"ó Ø"àÜ6ó Ø6àÜ8ó Ø8àôó ðð
 öó ðð ôó ðð Üó Øàôó ðð ôó ðð
 ôó ðð
 ôó ðð ôó ðð
 ôó ðð ôó ðð Ü"ó Ü"r   r   c                  ón   a € ] tR t^›t]! 4       tR
RR/R V 3R lllltRV 3R lltR tR t	RR lt
R	tV ;t# )ÚInteractiveColoredConsoleÚ
local_exitFc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r%   Úlocalszdict[str, object] | NoneÚfilenamer   r“   rS   r:   r;   r   )r*   s   "r   r+   Ú&InteractiveColoredConsole.__annotate__ž   s2   € ÷ 5ñ 5à(ð5ð ð5ð
 ð5ð 
ñ5r   c               	ó^   <€ \         SV `  WVR 7       \        P                  ! 4       V n        R# ))r•   r–   r“   N)Úsuperr6   Ú	_colorizeÚcan_colorize)r5   r•   r–   r“   Ú	__class__s   &&&$€r   r6   Ú"InteractiveColoredConsole.__init__ž   s(   ø€ ô 	‰Ñ ÀjÐÔQÜ%×2Ò2Ó4ˆÖr   c                	ó,   <€ \         SV `  ! RR V/VB  R# )r–   Nr   )r™   Úshowsyntaxerror)r5   r–   Úkwargsrœ   s   &&,€r   rŸ   Ú)InteractiveColoredConsole.showsyntaxerror¨   s   ø€ Ü‰ÒÑ<¨Ð<°VÔ<r   c                	ó    € ^ RI pVP                  WVV P                  VP                  R7      pV P	                  RP                  V4      4       R# )r   N)ÚcolorizeÚlimitrŽ   )Ú	tracebackÚformat_exceptionr›   ÚBUILTIN_EXCEPTION_LIMITÚwriteÚjoin)r5   ÚtypÚvalueÚtbr¥   Úliness   &&&&  r   Ú_excepthookÚ%InteractiveColoredConsole._excepthook«   sG   € ÛØ×*Ñ*Ø˜BØ×*Ñ*Ø×7Ñ7ð +ó 9ˆð 	�
‰
�2—7‘7˜5“>Ö"r   c                	ó¢   €  \        WP                  4       R #   \         d    h \         d     T P	                  4        T P
                  u # i ; ir.   )Úexecr•   Ú
SystemExitÚBaseExceptionÚshowtracebackÚSTATEMENT_FAILED)r5   Úcodes   &&r   ÚruncodeÚ!InteractiveColoredConsole.runcode³   sL   € ð	)Ü�—{‘{Ô#ñ øô ô 	ØÜô 	)Ø×ÑÔ Ø×(Ñ(Ò(ð	)ús   ‚ ™A®AÁAc                	ó¬  €  V P                   P                  VVR \        P                  RR7      pTP                  '       d   TP                  Ev rVTP                   F™  pTXJ d   \        P                  M\        P                  pYvJ d   TMR p	T! T.4      p
 T P                   P                  Y¢T	4      p\        P                  ! Y±T4       Tf    R# T P)                  T4      pYàP*                  J g   K˜   R# 	  R#   \        \
        \        3 d    T P                  Y!R7        R# i ; i  \         dy   pTP                  ^ ,          R8X  dC   \        P                  P!                  \"        P$                  4      pTP'                  RT R24       T P                  Y!R7        Rp? R# Rp?i\
        \        3 d    T P                  Y!R7         R# i ; i)	r±   F)Úincomplete_input)Úsourcez'await' outside functionzTry the asyncio REPL (zG -m asyncio) to use top-level 'await' and run background asyncio tasks.NT)ÚcompileÚcompilerÚastÚPyCF_ONLY_ASTÚSyntaxErrorÚOverflowErrorÚ
ValueErrorrŸ   ÚbodyÚInteractiveÚModuleÚ	linecacheÚ_register_codeÚargsÚosÚpathÚbasenamer/   Ú
executableÚadd_noter·   rµ   )r5   r»   r–   ÚsymbolÚtreeÚ_Ú	last_stmtÚstmtÚwrapperÚ
the_symbolÚitemr¶   ÚeÚpythonÚresults   &&&&           r   Ú	runsourceÚ#InteractiveColoredConsole.runsource½   sœ  € ð
	Ø—<‘<×(Ñ(ØØØÜ×!Ñ!Ø!&ð )ó ˆDð �9�9ˆ9Ø ŸI™I‰MˆQØ—I”IˆDØ)-°Ó):”c—o’oÄÇ
Á
ˆGØ#'Ó#4™¸&ˆJÙ˜D˜6“?ˆDðØ—|‘|×,Ñ,¨T¸ZÓH�Ü×(Ò(¨°xÔ@ð Š|Úà—\‘\ $Ó'ˆFØ×.Ñ.Õ.ØÙñ5 ñ4 øô? œ]¬JÐ7ô 	Ø× Ñ  Ð Ô9Úð	ûô ô Ø—6‘6˜!•9Ð :Ô:ÜŸW™W×-Ñ-¬c¯n©nÓ=�FØ—J‘JØ0°°ð 9Oð Pôð ×$Ñ$ XÐ$Ô=ÞûÜ!¤:Ð.ô Ø×$Ñ$ XÐ$Ô=Ûðús6   ‚.C; Â3D*Ã;(D'Ä&D'Ä*GÄ5A,F(Æ(GÆ;GÇG)r›   )Nz	<console>r.   )z<input>Úsingle)r   r   r   r   Úobjectrµ   r6   rŸ   r®   r·   rÙ   r   Ú__classcell__)rœ   s   @r   r’   r’   ›   s8   ø† Ù“xÐñ5ð
 !÷5ó 5÷=ò#ò÷(ò (r   r’   )Ú
__future__r   rš   Úabcr   r   r¾   r¶   rÆ   Údataclassesr   r   Úos.pathrÉ   r/   ÚTYPE_CHECKINGÚtypingr   r	   r   r   ÚInteractiveConsoler’   r   r   r   Ú<module>rå      s~   ðõ( #ã ç #Û 
Û Û ß (Û Û 
ð €çÝÝð ÷ð ó ðð ôh#ˆcó h#ó ðh#ôVJ × 7Ñ 7ö Jr   