Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/Python/Python314/Lib/__pycache__/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/Python/Python314/Lib/__pycache__/traceback.cpython-314.pyc

+
��h7��^�Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
^RIt^RIt^RI
Ht.R7OtR8RltRtR9RltR8R	ltR8R
ltRtRt!R
R4t]!4tRt]]RRR3Rlt]!4tRt]]RR3Rlt]3RR/RlltRRRR/Rlt ]!3Rlt"R:Rlt#R;Rlt$R:Rlt%R<Rlt&R9Rlt'R9R lt(R!t)!R"R4t*R#t+R$t,R%t-R&t.^t/!R'R]04t1R(t2]Pf!R).R=OR*R+.R,7t4R-t5R.t6R8R/lt7!R0R14t8!R2R4t9R3t:^(t;^t<^t=R4t>R5t?R6t@R#)>z@Extract, format and print information about Python stack traces.N)�suppress�FrameSummary�StackSummary�TracebackExceptionc��Vf\Pp\PV4P	4Fp\W!RR7K	R#)zuPrint the list of tuples as returned by extract_tb() or
extract_stack() as a formatted stack trace to the given file.N���file�end)�sys�stderrr�	from_list�format�print)�extracted_listr	�items&& �EC:\Users\ITO\AppData\Local\Programs\Python\Python314\Lib\traceback.py�
print_listrs;���|��z�z���&�&�~�6�=�=�?��
�d�2�&�@�c�H�\PV4P4#)a�Format a list of tuples or FrameSummary objects for printing.

Given a list of tuples or FrameSummary objects as returned by
extract_tb() or extract_stack(), return a list of strings ready
for printing.

Each string in the resulting list corresponds to the item with the
same index in the argument list.  Each string ends in a newline;
the strings may contain internal newlines as well, for those items
whose source text line is not None.
)rr
r)rs&r�format_listr%s���!�!�.�1�8�8�:�:rc�4�\\WR7VR7R#)aPrint up to 'limit' stack trace entries from the traceback 'tb'.

If 'limit' is omitted or None, all entries are printed.  If 'file'
is omitted or None, the output goes to sys.stderr; otherwise
'file' should be an open file or file-like object with a write()
method.
��limit�r	N)r�
extract_tb)�tbrr	s&&&r�print_tbr7s���z�"�*��6rc�6�\WR7P4#)z5A shorthand for 'format_list(extract_tb(tb, limit))'.r)rr�rrs&&r�	format_tbr As���b�&�-�-�/�/rc�B�\P\V4VR7#)a�
Return a StackSummary object representing a list of
pre-processed entries from traceback.

This is useful for alternate formatting of stack traces.  If
'limit' is omitted or None, all entries are extracted.  A
pre-processed stack trace entry is a FrameSummary object
containing attributes filename, lineno, name, and line
representing the information that is usually printed for a stack
trace.  The line is a string with leading and trailing
whitespace stripped; if the source is not available it is None.
r)r� _extract_from_extended_frame_gen�_walk_tb_with_full_positionsrs&&rrrEs&���8�8�$�R�(��9�7�7rzG
The above exception was the direct cause of the following exception:

zF
During handling of the above exception, another exception occurred:

c�&a�]tRt^btoRtRtVtR#)�	_Sentinelc��R#)z
<implicit>���selfs&r�__repr__�_Sentinel.__repr__cs��rr'N)�__name__�
__module__�__qualname__�__firstlineno__r*�__static_attributes__�__classdictcell__��
__classdict__s@rr%r%bs�����rr%c��V\JV\J8wd\R4hYu;Jd\JdQMW3#VeF\V\4'dWP3#\R\
V4PR24hR#W3#)z-Both or neither of value and tb must be givenzException expected for value, z found�NN)�	_sentinel�
ValueError�
isinstance�
BaseException�
__traceback__�	TypeError�typer,)�exc�valuers&&&r�_parse_value_tbr?hs���
����i��0��H�I�I���i���9���?��#�}�-�-��-�-�-�-��<�#�C�y�1�1�2�&�:�;�
;����9�rTc��VPRR4p\WV4wr\\V4WVRR7pVP	WEVR7R#)a�Print exception up to 'limit' stack trace entries from 'tb' to 'file'.

This differs from print_tb() in the following ways: (1) if
traceback is not None, it prints a header "Traceback (most recent
call last):"; (2) it prints the exception type and value after the
stack trace; (3) if type is SyntaxError and value has the
appropriate format, it prints the line where the syntax error
occurred with a caret on the next line indicating the approximate
position of the error.
�colorizeFT�r�compact)r	�chainrAN)�getr?rr<r)	r=r>rrr	rD�kwargsrA�tes	"&&&&&,  r�print_exceptionrHwsF���z�z�*�e�,�H���B�/�I�E�	�D��K��%��	N�B��H�H�$�h�H�7rc��\Pe\PM\Pp\P!VR7p\V\WR7#)Nr)rr	rA)rr�
__stderr__�	_colorize�can_colorizerH�BUILTIN_EXCEPTION_LIMIT)r=r	rAs"  r�_print_exception_bltinrN�s:�����/�3�:�:�S�^�^�D��%�%�4�0�H��3�&=�D�\�\rc��VPRR4p\WV4wr\\V4WVRR7p\	VPWFR74#)abFormat a stack trace and the exception information.

The arguments have the same meaning as the corresponding arguments
to print_exception().  The return value is a list of strings, each
ending in a newline and some containing internal newlines.  When
these lines are concatenated and printed, exactly the same text is
printed as does print_exception().
rAFTrB�rDrA)rEr?rr<�listr)r=r>rrrDrFrArGs"&&&&,  r�format_exceptionrR�sL���z�z�*�e�,�H���B�/�I�E�	�D��K��%��	N�B���	�	��	�9�:�:r�
show_groupFc��VPRR4pV\JdTp\\V4VRRR7p\	VPW$R74#)akFormat the exception part of a traceback.

The return value is a list of strings, each ending in a newline.

The list contains the exception's message, which is
normally a single string; however, for :exc:`SyntaxError` exceptions, it
contains several lines that (when printed) display detailed information
about where the syntax error occurred. Following the message, the list
contains the exception's ``__notes__``.

When *show_group* is ``True``, and the exception is an instance of
:exc:`BaseExceptionGroup`, the nested exceptions are included as
well, recursively, with indentation relative to their nesting depth.
rAFNT)rC)rSrA)rEr6rr<rQ�format_exception_only)r=r>rSrFrArGs"&$,  rrUrU�sN���z�z�*�e�,�H��	����	�D��K���d�	C�B���(�(�J�(�R�S�Sr�insert_final_newlinerAc��\VR4pV'dRMRpV'd#\P!RR7PpM!\P!RR7PpVe	V'g!VPVVP
V2pV#VPVVP
RVPVVP
V2pV#)�	exception�
rT��force_color��force_no_colorz: )�_safe_stringrK�	get_theme�	tracebackr<�reset�message)�etyper>rVrA�valuestr�end_char�theme�lines&&$$    r�_format_final_exc_linerh�s����E�;�/�H�+�t��H���#�#��5�?�?���#�#�4�8�B�B���}�H��*�*��e�W�U�[�[�M�(��<���K��*�*��e�W�U�[�[�M��E�M�M�?�8�*�U�[�[�M�Zb�Yc�d���Krc�H�V!V4# RTRTPR2u#;i)�<� z
() failed>)r,)r>�what�funcs&&&rr^r^�s1��4��E�{���4��4�&��$�-�-��
�3�3�s�
�!c�H�\\P!4WVR7R#)zVShorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'.�rr	rDN)rHrrXros&&&r�	print_excrp�s���C�M�M�O�5�5�Irc�`�RP\\P!4WR74#)z%Like print_exc() but return a string.r�rrD)�joinrRrrXrrs&&r�
format_excrt�s��
�7�7�#�C�M�M�O�5�N�O�Orc	�P�\\R4'g"\\R4'g\R4h\\R4'd\\PWVR7R#\\P
\P\PWVR7R#)z]This is a shorthand for 'print_exception(sys.last_exc, limit=limit, file=file, chain=chain)'.�last_exc�	last_typezno last exceptionroN)�hasattrrr7rHrvrw�
last_value�last_tracebackros&&&r�
print_lastr{�se���3�
�#�#�G�C��,E�,E��,�-�-��s�J�������E�E�J���
�
�s�~�~�s�7I�7I�#�e�	=rc�z�Vf \P!4Pp\\	WR7VR7R#)z�Print a stack trace from its invocation point.

The optional 'f' argument can be used to specify an alternate
stack frame at which to start. The optional 'limit' and 'file'
arguments have the same meaning as for print_exception().
Nrr)r�	_getframe�f_backr�
extract_stack)�frr	s&&&r�print_stackr��s)��	�y��M�M�O�"�"���}�Q�,�4�8rc�r�Vf \P!4Pp\\	WR74#)z5Shorthand for 'format_list(extract_stack(f, limit))'.r)rr}r~rr)r�rs&&r�format_stackr��s(���y��M�M�O�"�"���}�Q�4�5�5rc��Vf \P!4Pp\P	\V4VR7pVP
4V#)a[Extract the raw traceback from the current stack frame.

The return value has the same format as for extract_tb().  The
optional 'f' and 'limit' arguments have the same meaning as for
print_stack().  Each item in the list is a quadruple (filename,
line number, function name, text), and the entries are in order
from oldest to newest stack frame.
r)rr}r~r�extract�
walk_stack�reverse)r�r�stacks&& rrr�sA��	�y��M�M�O�"�"��� � ��A��e� �<�E�	�M�M�O��Lrc��Ve*VPP4VPpK-R# \dLi;i)zEClear all references to local variables in the frames of a traceback.N)�tb_frame�clear�RuntimeError�tb_next�rs&r�clear_framesr�s@��
�.�	��K�K�����Z�Z��
���	��	�s�0�>�>c�a�]tRtRtoRtRtRRRR	R
R	RR	RR	RR	/RltRtR
tRt	Rt
RtRt]
R4t]
R4t]
R4tRtVtR	#)riaInformation about a single frame from a traceback.

- :attr:`filename` The filename for the frame.
- :attr:`lineno` The line within filename for the frame that was
  active when the frame was captured.
- :attr:`name` The name of the function or method that was executing
  when the frame was captured.
- :attr:`line` The text from the linecache module for the
  of code that was running when the frame was captured.
- :attr:`locals` Either None if locals were not supplied, or a dict
  mapping the name to the repr() of the variable.
�
end_lineno�colno�	end_colno�locals�lookup_lineTNrgc�l�WnW nVfTMTVnW�nW�nW0nV
P
R4VnW`nRVn	V'd
VPV'd=VP4UUu/uFwr�V\VR\R7bK	uppVnR#RVnR#uuppi)acConstruct a FrameSummary.

:param lookup_line: If True, `linecache` is consulted for the source
    code line. Otherwise, the line will be looked up when first needed.
:param locals: If supplied the frame locals, which will be captured as
    object representations.
:param line: If provided, use this instead of looking up the line in
    the linecache.
N�_code�local�rm)�filename�linenor�r�r��namerEr��_lines�_lines_dedentedrg�itemsr^�reprr�)
r)r�r�r�r�r�rgr�r�r�rF�k�vs
&&&&$$$$$$,  r�__init__�FrameSummary.__init__'s���!�
���$.�$6�&�J����
�"���	��Z�Z��(��
���#�����I�I�+1�����(�&����,�q�'��=�=�&�(���7;�	
���(s�>B0c��\V\4'd}VPVP8H;'d\VPVP8H;'d;VPVP8H;'dVP
VP
8H#\V\4'd2VPVPVPVP3V8H#\#�N)	r8rr�r�r�r��tuplerg�NotImplemented�r)�others&&r�__eq__�FrameSummary.__eq__As����e�\�*�*��M�M�U�^�^�3�0�0��K�K�5�<�<�/�0�0��I�I����+�0�0��K�K�5�<�<�/�
1��e�U�#�#��M�M�4�;�;��	�	�4�9�9�E��N�N��rc�l�VPVPVPVP3V,#r�)r�r�r�rg)r)�poss&&r�__getitem__�FrameSummary.__getitem__Ks&���
�
�t�{�{�D�I�I�t�y�y�A�#�F�Frc�p�\VPVPVPVP.4#r�)�iterr�r�r�rgr(s&r�__iter__�FrameSummary.__iter__Ns&���T�]�]�D�K�K����D�I�I�F�G�Grc�f�RPVPVPVPR7#)z7<FrameSummary file {filename}, line {lineno} in {name}>)r�r�r�)rr�r�r�r(s&rr*�FrameSummary.__repr__Qs0��H�O�O��]�]�4�;�;�T�Y�Y�P�H�	Hrc��^#)�r'r(s&r�__len__�FrameSummary.__len__Us��rc�P�VPEfVPEeVPe�.p\VPVP^,4F�p\P
!VPV4P4pV'g_VPeQVPPR4'd0\P!VPV4P4pVPV4K�	RPV4R,VnR#R#R#R#)NrjrY)
r�r�r��range�	linecache�getliner��rstripr��
startswith�_getline_from_code�appendrs)r)�linesr�rgs&   r�
_set_lines�FrameSummary._set_linesXs����K�K�����'����+��E�����T�_�_�q�-@�A�� �(�(�����?�F�F�H����
�
� 6�4�=�=�;S�;S�TW�;X�;X�$�7�7��
�
�F�K�R�R�T�D����T�"�B��)�)�E�*�T�1�D�K�,�(�
 rc�:�VP4VP#r�)r�r�r(s&r�_original_lines�FrameSummary._original_linesgs��	
�����{�{�rc��VP4VPf4VPe&\P!VP4VnVP#r�)r�r�r��textwrap�dedentr(s&r�_dedented_lines�FrameSummary._dedented_linesmsD��	
�������'�D�K�K�,C�#+�?�?�4�;�;�#?�D� ��#�#�#rc��VP4VPfR#VPPR4^,P4#)NrY)r�r��	partition�stripr(s&rrg�FrameSummary.lineus<�������;�;����{�{�$�$�T�*�1�-�3�3�5�5r)
r�r�r�r�r�r�r�r�r�r�)
r�r�r�r�r�r�r�r�r�r�)r,r-r.r/�__doc__�	__slots__r�r�r�r�r*r�r��propertyr�r�rgr0r1r2s@rrrs������I�I�<�d�<��<�"�<��<�#'�<�37�<�4�G�H�H��
2�����
�$��$��6��6rc�^�Vf \P!4PpRpV!V4#)z�Walk a stack yielding the frame and line number for each frame.

This will follow f.f_back from the given frame. If no frame is given, the
current stack is used. Usually used with StackSummary.extract.
c3�P"�VeWP3x�VPpK!R#5ir�)�f_linenor~)�frames&r�walk_stack_generator�(walk_stack.<locals>.walk_stack_generator�s&��������'�'��L�L�E� �s�$&)rr}r~)r�r�s& rr�r�~s,��	�y��M�M�O�"�"��!�
 ��"�"rc#�f"�Ve)VPVP3x�VPpK,R#5i)z�Walk a traceback yielding the frame and line number for each frame.

This will follow tb.tb_next (and thus is in the opposite order to
walk_stack). Usually used with StackSummary.extract.
N)r��	tb_linenor�r�s&r�walk_tbr��s-���
�.��k�k�2�<�<�'�'�
�Z�Z���s�/1c#�"�Ve~\VPPVP4pV^,f+VPVP3VR,,3x�MVPV3x�VP
pK�R#5i)N:�NN)�_get_code_positionr��f_code�tb_lastir�r�)r�	positionss& rr#r#�sn���
�.�&�r�{�{�'9�'9�2�;�;�G�	��Q�<���+�+����/�)�B�-�?�?�?��+�+�y�(�(�
�Z�Z���s�BBc��V^8dR#VP4p\\P!W!^,R44#)�N)NNNN)�co_positions�next�	itertools�islice)�code�instruction_index�
positions_gens&& rr�r��s;���1��'�'��%�%�'�M��	� � ��Q�0F��M�N�Nrc�a�]tRtRtoRt]RRRRRR/R	l4t]RRRRRR/R
l4t]R4tRt	R
t
RtRtVt
R#)ri�z?A list of FrameSummary objects, representing a stack of frames.rN�lookup_linesT�capture_localsFc�Ba�V3RlpVPV!4W#VR7#)aCreate a StackSummary from a traceback or stack object.

:param frame_gen: A generator that yields (frame, lineno) tuples
    whose summaries are to be included in the stack.
:param limit: None to include all frames or the number of frames to
    include.
:param lookup_lines: If True, lookup lines for each frame immediately,
    otherwise lookup is deferred until the frame is rendered.
:param capture_locals: If True, the local variables from each frame will
    be captured as object representations into the FrameSummary.
c3�8<"�SFwrWRRR33x�K	R#5ir�r')r�r��	frame_gens  �r�extended_frame_gen�0StackSummary.extract.<locals>.extended_frame_gen�s$����&�	���$��d�3�3�3�'�s��rr�r�)r")�klassr�rr�r�r�s&f$$$ rr��StackSummary.extract�s-���	4��5�5�� ��)�6�+�	+rc��V\JpVe	V'd\\RR4pVe
V^8d^pVe`V'd"\V4pV\	V4V,
RpM6V^8�d\
P!W4pM\P!W)R7pV!4p\4pVF�wpwr�r�VPp
V
PpV
PpVPV4\P!W�P 4V'dVP"pMRpVP%\'W�VRVW�VVPR7	4K�	VFp\P(!V4K	V'dVFpVP*K	V#)N�tracebacklimit)�maxlenF)r�r�r�r�r�r�)rM�getattrrr��lenr�r��collections�deque�setr��co_filename�co_name�addr��	lazycache�	f_globals�f_localsr�r�
checkcacherg)r�r�rr�r��
builtin_limit�result�fnamesr�r�r�r�r��cor�r�rs&&$$$            rr"�-StackSummary._extract_from_extended_frame_gen�sS���!8�8�
��=�M��C�!1�4�8�E�� �U�Q�Y������!�)�,�	�%�c�)�n�u�&<�&=�>�	��!��%�,�,�Y�>�	�'�-�-�i��G�	�������9B�5�A�5��E����B��~�~�H��:�:�D��J�J�x� �����+�+�6���:�:�����M�M��X�t� %�h�)�)��(�(��
�:C�$�H�� � ��*����������
rc
��\4pVFMp\V\4'dVPV4K,VwrErgVP\WEWgR74KO	V#)zh
Create a StackSummary object from a supplied list of
FrameSummary objects or old-style list of tuples.
�rg)rr8rr�)r��a_listrr�r�r�r�rgs&&      rr
�StackSummary.from_list�sR������E��%��.�.��
�
�e�$�/4�,��$��
�
�l�8�T�M�N���
rc
�Laaaaaaaaaaaa�VPRR4o.pVPpVPPR4'd$VPPR4'dRpS'd#\P
!RR7PoM!\P
!RR7PoVPR	PSPVSPSPVPSPSPVPSP4	4VP'EdZVPP4'Ed9VP eVP"f:VP\$P&!VP(R4R,4EM�VP*P-4pV^,pWQP.VP,
,p\1WaP 4p\1WqP"4p	VPP-4R
VP.VP,
^,o\3V4\3S^,4,
p
\5^W�,
4p\5^W�,
4p	\7S^,VR
7o\7SR,V	R
7oRP9S4pW�\3V4\3SR,4V	,
,
pR
oRo\;\<4;_uu_4\?V4oR
R
R
4VPAW�SS4o.o^\3S4^,
0p^o^oRoRoS'EdSPBoSPDoSPF^8Xd
SV,
oSPH^8Xd
SV,
o\7SSPF,SR
7o\7SSPH,SR
7oSPJoSPLoVPO\QSPF^,
SPF^,44VPO\QSPH^,
SPH^,44VPSR4VPS\3S44VVVVVVVVVVVV3Rlp
\UV4p\WV4FfwppV'dQVW�^,
,,
pV^8XdV
!V^,
4M#V^8�dSPRV^,
R24V
!V4Kh	VP\$P&!\$PX!RP9S44RR44VPZ'dP\UVPZP]44F(wppVPRPVVR74K*	RP9V4# +'giEL�;i)z�Format the lines for a single FrameSummary.

Returns a string representing one frame involved in the stack. This
gets called for every frame to be printed in the stack summary.
rAFz<stdin-�>z<stdin>TrZr\z(  File {}"{}"{}, line {}{}{}, in {}{}{}
Nz    rY)�offset�^c� <�SPS
V,R,4S'gR#\S
V,4\S
V,P44,
p.pV\S
4^,
8XdSM\S
V,4p\	V4F�pWA8gV^8XdVS8dVPR4K*S'dfVSP
8�gVSP
8XdDVS8�d=VSP8gVSP8XdVS8dVPS4K�VPS4K�	S'EdSR,p.p.p\P!\P!WRRR7RR7EF�wr�\V	4p
VR8Xd�VPSPRPR	V
44,SP,4VPSPRPR
V
44,SP,4K�VR8Xd�VPSPRPRV
44,SP,4VPSPRPR
V
44,SP,4EKHVPRPRV
444VPRPRV
444EK�	RPV4pRPV4pVSR&SPVR,4R#SPRPV4R,4R#)z*output all_lines[lineno] along with caretsrYNrkr)�	fillvaluec��V^,#�r�r'��xs&r�<lambda>�HStackSummary.format_frame_summary.<locals>.output_line.<locals>.<lambda>�s��@A�BC�@Dr)�keyrc3�*"�TF	wrVx�K	R#5ir�r'��.0�char�_s&  r�	<genexpr>�IStackSummary.format_frame_summary.<locals>.output_line.<locals>.<genexpr>�s���[|�p{�el�ei�\`�p{���c3�*"�TF	wrVx�K	R#5ir�r'�rr!�carets&  rr"r#�s���^A�t�hp�hi�^c�t�r$�~c3�*"�TF	wrVx�K	R#5ir�r'rs&  rr"r#�s���Wx�lw�ah�ae�X\�lw�r$c3�*"�TF	wrVx�K	R#5ir�r'r&s&  rr"r#�s���Y|�p{�dl�de�Z_�p{�r$c3�*"�TF	wrVx�K	R#5ir�r'rs&  rr"r#�s���Cd�Xc�W�T�D�Xc�r$c3�*"�TF	wrVx�K	R#5ir�r'r&s&  rr"r#�s���Eh�\g�PX�PQ�e�\g�r$���)r�r��lstrip�_display_widthr��left_end_lineno�right_start_linenor��groupby�zip_longestrQ�error_highlightrsra�error_range)r��
num_spaces�carets�
num_carets�colrg�colorized_line_parts�colorized_carets_parts�color�group�caret_group�colorized_line�colorized_carets�	all_lines�anchors�anchors_left_end_offset�anchors_right_start_offsetrA�
dp_end_offset�dp_start_offset�primary_charr�secondary_char�show_caretsrfs&            ������������r�output_line�6StackSummary.format_frame_summary.<locals>.output_line�s6����M�M�)�F�"3�d�":�;�&��!$�Y�v�%6�!7�#�i��>O�>V�>V�>X�:Y�!Y�J��F�28�C�	�N�Q�<N�2N��Tb�cl�ms�ct�Tu�J�$�Z�0���+��!���o�@U�"�M�M�#�.�$�"�W�%<�%<�<�#�w�'>�'>�>�3�Ja�Ca�"�W�%?�%?�?�#�w�'A�'A�A�c�Lf�Ff�#�M�M�.�9�"�M�M�,�7� 1� �x� &�b�z��/1�,�13�.�,5�,=�,=�i�>S�>S�TX�ln�>o�vD�-E�-E�L�E�*.�u�+�K�$��|� 4� ;� ;�E�<Q�<Q�TV�T[�T[�[|�p{�[|�T|�<|�@E�@K�@K�=K�!L� 6� =� =�e�>S�>S�VX�V]�V]�^A�t�^A�WA�?A�DI�DO�DO�?O�!P�!&�#�� 4� ;� ;�E�<M�<M�PR�PW�PW�Wx�lw�Wx�Px�<x�|A�|G�|G�=G�!H� 6� =� =�e�>O�>O�RT�RY�RY�Y|�p{�Y|�R|�>|�@E�@K�@K�?K�!L� 4� ;� ;�B�G�G�Cd�Xc�Cd�<d� e� 6� =� =�b�g�g�Eh�\g�Eh�>h� i�-E�*,���1E�)F��+-�7�7�3I�+J�(�%3��r�
��
�
�&6��&=�>��
�
�b�g�g�f�o��&<�=rz...<z lines>...
rc��R#�Tr'r
s&rr�3StackSummary.format_frame_summary.<locals>.<lambda>�s��[_rz    {name} = {value}
)r�r>r-)/rEr�r��endswithrKr_r`r�rra�line_nor�r�r�r�r�r�r�r��indentrgr��
splitlinesr�� _byte_offset_to_character_offsetr��maxr/rsr�	Exception�(_extract_caret_anchors_from_line_segment�_should_show_carets�left_end_offset�right_start_offsetr0r1rGrH�updater��discard�sorted�	enumerater�r�r�) r)�
frame_summaryrF�rowr��all_lines_original�
first_line�	last_line�start_offset�
end_offset�dedent_characters�segment�significant_linesrJ�sig_lines_list�ir��linediffr�r>rArBrCrDrArErFrGrrHrIrfs &&,                 @@@@@@@@@@@@r�format_frame_summary�!StackSummary.format_frame_summarys�����:�:�j�%�0���� �)�)���!�!�,�,�Y�7�7�M�<R�<R�<[�<[�\_�<`�<`� �H���'�'�D�9�C�C�E��'�'�t�<�F�F�E��
�
�7�>�>���������
�
��$�$��������"�"����

�	
��(�(�(�]�-J�-J�-P�-P�-R�-R��#�#�+��'�'�/��
�
�8�?�?�=�+=�+=�v�F��M�N�&3�%B�%B�%M�%M�%O�"�/��2�
�.�/G�/G�-�J^�J^�/^�_�	� @�
�L_�L_�`��=�i�I`�I`�a�
�)�9�9�D�D�F�H�]�-�-�
�0D�0D�D�q�H��	�
%(�
�O�c�)�A�,�6G�$G�!�"�1�l�&F�G�� ��J�$B�C�
�
#1��1��l�"S�� .�y��}�Z� P�
��)�)�I�.��!�s�7�|�s�9�R�=�?Q�T^�?^�/_�`����#���i�(�(�F�w�O�G�)�"�6�6�|�QZ�\c�d����&'��I���(:�$;�!�*+�'�-.�*�"��!$���7�.5�.E�.E�+�18�1K�1K�.��.�.�!�3�/�<�?�/��1�1�Q�6�2�l�B�2�/=�!�'�"9�"9�:�CZ�/�+�2@�!�'�"<�"<�=�F`�2�.�$+�#7�#7�L�%,�%;�%;�N�%�,�,��g�5�5��9�7�;R�;R�UV�;V�W��&�,�,��g�8�8�1�<�g�>X�>X�[\�>\�]��
"�)�)�"�-�!�)�)�#�i�.�9�0>�0>�0>�f"(�(9�!:��!*�>�!:�I�A�v��#)�N�q�5�,A�#A��#�q�=�'���
�3�%��\�"�M�M�D��A���l�*K�L���'�";��
�
��O�O�H�O�O�B�G�G�F�O�$D�f�N_�`������%�m�&:�&:�&@�&@�&B�C���e��
�
�3�:�:��E�:�R�S� D��w�w�s�|��e)�(�(�s�1X�X#	c��aaa�\\\4;_uu_4^RIpVP	RPS44pVP'gRRR4R#VP^,pRpVVV3Rlp	T;VPRc;eTwVPRc;eAw\VPPVP4'd�VPpM|VPRc;ejwVPRc;eWw\VP4^8Xd<\VP^,VP4'dVPpMVeV	!V4'dRRR4R#RRR4V'dR#S^,RSP!4'g!SR,SRP#4'dR#R# +'giL^;i)	r�NrYFc�<�VP^8H;'dGVP\S48H;'d'VPS8H;'dVPS8H#r)r�r�r��
col_offset�end_col_offset)r>rArdrcs&���r�_spawns_full_line�;StackSummary._should_show_carets.<locals>._spawns_full_line�sb����L�L�A�%�;�;��(�(�C�	�N�:�;�;��(�(�L�8�;�;��,�,�
�:�	r)r>r'Tr-)r�SyntaxError�ImportError�ast�parsers�body�Return�Callr8r>rm�Name�Assignr��targetsr.r�)
r)rcrdrArBru�tree�	statementr>rqs
&fff&     rrW� StackSummary._should_show_carets�sU���
�k�;�
/�
/���9�9�T�Y�Y�y�1�2�D��9�9�9��	0�
/�
�	�	�!��I��E�
��1�S�Z�Z�1�c�h�h�j�!�)�/�/�"6�"6����A�A� )����2��Z�Z�1�c�h�h�j��I�-�-�.�!�3�"�9�#4�#4�Q�#7����B�B� )����2�� �%6�u�%=�%=��30�
/�
/�4���Q�<�
��&�-�-�/�/�9�R�=���3M�3T�3T�3V�3V���=0�
/�s+�8G�"A3G�AG�%+G� G�3G�G$	c�v�VPRR4p.pRpRpRp^pVF�pVPW�R7p	V	fKVe9WHP8wg)Ve%WXP8wgVeWhP8wd`V\
8�d/V\
,pTP
RTRV^8�dRMRR	24VPpVPpVPp^pV^,
pV\
8�dK�VP
V	4K�	V\
8�d/V\
,pTP
RTRV^8�dRMRR	24V#)
a�Format the stack ready for printing.

Returns a list of strings ready for printing.  Each string in the
resulting list corresponds to a single frame from the stack.
Each string ends in a newline; the strings may contain internal
newlines as well, for those items with source text lines.

For long sequences of the same frame and line, the first few
repetitions are shown, followed by a summary line stating the exact
number of further repetitions.
rAFN�rAz  [Previous line repeated z
 more time�srz]
)rErkr�r�r��_RECURSIVE_CUTOFFr�)
r)rFrAr�	last_filerb�	last_name�countr^�formatted_frames
&,        rr�StackSummary.format�sZ���:�:�j�%�0�����	��	��	���!�M�"�7�7�
�7�Y�O��&���!�Y�2H�2H�%H��!�Y�2F�2F�%F��!�Y�2D�2D�%D��,�,��.�.�E��M�M�4�U�G�<�&+�a�i�s�R�8��=��*�2�2�	�)�0�0�	�)�.�.�	����Q�J�E��(�(���M�M�/�*�)"�,�$�$��&�&�E��M�M�,�U�G�4�#�a�i�s�R�0��5�
��
rr')r,r-r.r/r��classmethodr�r"r
rkrWrr0r1r2s@rrr�s�����I��+�4�+�d�+� �+��+�*�/�D�/��/�.3�/��/�b����$v�p�B.�.rc�b�VPR4p\VRVPRRR74#)zutf-8N�replace)�errors)�encoder��decode)�strr�as_utf8s&& rrSrSs2���j�j��!�G��w�w���&�&�w�y�&�A�B�Br�_Anchorsr(r)�defaultsc�aaaaa�^RIpVPRVR24p\TP4^8wdR#TP4oT3RloT3RloT3RloT3RloTTT3RlpRTT3R	llpTP^,pTTPR
c;Ee�wpT;TPR
c;e�wT!TP4wrxT!YxR4wrxT^,p	T	\ST,48d�TPP^,
T8�g>T	S!TPP^,
TPP48d7ST,T	,;p
P4'gT
R9d
T	^,
p	\YxYy4#;TPR
c;e<wT!TP4wr�T!Y�R
4wr�T!TRR7wr�\Y�Y�4#TP R
c;e;wT!TP"4wr�T!Y�R4wr�T!TRR7wr�\Y�Y�4#R#R# \dR#i;i)z�
Given source code `segment` corresponding to a FrameSummary, determine:
    - for binary ops, the location of the binary op
    - for indexing and function calls, the location of the brackets.
`segment` is expected to be a valid Python expression.
Nz(
z
)c�*<�\SV,V4#)z%Get character index given byte offset)rS)r�rr�s&&�r�	normalize�;_extract_caret_anchors_from_line_segment.<locals>.normalizeSs���/��f�
�v�F�Frc��<�V\S48d%V\SV,48�d^pV^,
pK4V\S48dV\SV,48gQhW3#)zkGets the next valid character index in `lines`, if
the current location is not valid. Handles empty lines.
)r�)r�r9r�s&&�r�next_valid_char�A_extract_caret_anchors_from_line_segment.<locals>.next_valid_charWsY����s�5�z�!�c�S��v��-?�&?��C��a�K�F���E�
�"�s�S��v��-?�'?�?�?��{�rc�0<�V^,
pS!W4wrW3#)z.Get the next valid character index in `lines`.r'�r�r9r�s&&�r�	increment�;_extract_caret_anchors_from_line_segment.<locals>.incrementas ����q���%�f�2����{�rc�4<�^pV^,
pS!W4wrW3#)z6Get the next valid character at least on the next liner'r�s&&�r�nextline�:_extract_caret_anchors_from_line_segment.<locals>.nextlinegs%������!���%�f�2����{�rc�<�SV,V,pVR9d
S!W4wrK$V!V4'g
S!W4wrK>W3#)zIGet the next valid non-"\#" character that satisfies the `stop` predicate�\#r')r�r9�stop�chr�r�r�s&&& ���r�increment_until�A_extract_caret_anchors_from_line_segment.<locals>.increment_untilnsK�����v��s�#�B��U�{�&�v�3�����"�X�X�'��4������{�rc�t<�VP^,
pS!W P4pV'd	S!W#4#W#3#)z�Get the lineno/col position of the end of `expr`. If `force_valid` is True,
forces the position to be a valid character (e.g. if the position is beyond the
end of the line, move to the next line)
)r�rp)�expr�force_validr�r9r�r�s&&  ��r�setup_positions�A_extract_caret_anchors_from_line_segment.<locals>.setup_positionszs7������1�$���� 3� 3�4��/:��v�+�M��
�Mrr'c�F�VP4'*;'dVR8g#)�)��isspacers&rr�:_extract_caret_anchors_from_line_segment.<locals>.<lambda>�s��Q�Y�Y�[��Ie�Ie�]^�be�]e�Ierr�c��VR8H#)�[r'rs&rrr�����]^�be�]erF)r�c��VR8H#)�(r'rs&rrr��r�rrM)rurvrsr�rwrR�Expr�BinOp�left�rightr�ror�r��	Subscriptr>ryrm)rfrur}r�r�r~r�r�r9�	right_colr��left_lineno�left_col�right_linenor�r�r�r�r�s&             @@@@@rrVrV,s#�����*�y�y�3�w�i�s�+�,���4�9�9�~������� �E�G����
�	N�	N��	�	�!��I�
�
�X�X�^�^�� �S�Y�Y�[�#2�$�)�)�"<�K�F�#2�&�?e�"f�K�F�!$�a��I�!�C��f�
�$6�6�!�J�J�-�-��1�F�:�%�	�$�*�*�2C�2C�a�2G����I^�I^�(_�_�',�V�}�Y�'?�!?�� H� H� J� J��e�O�!�Q��	�$�F��C�C�3!�4%�S�]�]�_�-<�D�J�J�,G�)�K�,;�K�Se�,f�)�K�.=�d�PU�.V�+�L�#�K�<�S�S�%��X�X�Z�-<�D�I�I�,F�)�K�,;�K�Se�,f�)�K�.=�d�PU�.V�+�L�#�K�<�S�S� ��k�j��c����s�H6�6I�I�WFc�a�Vf\V4pVP4'dV#^RIo\V3RlVRV44#)z�Calculate the extra amount of width space the given source
code segment might take if it were to be displayed on a fixed
width output device. Supports wide unicode characters and emojis.Nc3�`<"�TF#pSPV4\9d^M^x�K%	R#5i)�N)�east_asian_width�_WIDE_CHAR_SPECIFIERS)rr �unicodedatas& �rr"�!_display_width.<locals>.<genexpr>�s0�����!�D��
)�
)�$�
/�3H�
H��a�O�!�s�+.)r��isasciir��sum)rgrr�s&&@rr/r/�sH���
�~��T����|�|�~�~��
������&�M���rc�6a�]tRtRtoRtRtRRltRtVtR#)�_ExceptionPrintContexti�c�@�\4Vn^VnRVnR#)r�FN)r��seen�exception_group_depth�
need_closer(s&rr��_ExceptionPrintContext.__init__�s���E��	�%&��"���rc�6�R^VP,,#)rk)r�r(s&rrQ�_ExceptionPrintContext.indent�s���a�$�4�4�4�5�5rNc#�&"�VfRpVP4pVP'dW2R,,
p\V\4'd\P!WR4x�R#VFp\P!WCR4x�K	R#5i)N�|rkc��R#rMr'r
s&rr�-_ExceptionPrintContext.emit.<locals>.<lambda>����Trc��R#rMr'r
s&rrr��r�r)rQr�r8r�r�)r)�text_gen�margin_char�
indent_str�texts&&&  r�emit�_ExceptionPrintContext.emit�so������K��[�[�]�
��%�%�%���+�+�J��h��$�$��/�/�(�8I�J�J� ���o�o�d�8I�J�J�!�s�(B�A&B)r�r�r�r�)	r,r-r.r/r�rQr�r0r1r2s@rr�r��s���� �
6�K�Krr�c��a�]tRtRtoRtRRRRRRR	RR
^R^
RRR
R/Rlt]R4t]R4t	]R4t
RtRtRt
RRR^/RltRtRtRRRR/RltRRRR/RltRtVtR#) ri�aRAn exception ready for rendering.

The traceback module captures enough attributes from the original exception
to this intermediary form to ensure that no references are held, while
still being able to fully print or format it.

max_group_width and max_group_depth control the formatting of exception
groups. The depth refers to the nesting level of the group, and the width
refers to the size of a single exception group's exceptions array. The
formatted output is truncated when either limit is exceeded.

Use `from_exception` to create TracebackException instances from exception
objects, or the constructor to create TracebackException instances from
individual components.

- :attr:`__cause__` A TracebackException of the original *__cause__*.
- :attr:`__context__` A TracebackException of the original *__context__*.
- :attr:`exceptions` For exception groups - a list of TracebackException
  instances for the nested *exceptions*.  ``None`` for other exceptions.
- :attr:`__suppress_context__` The *__suppress_context__* value from the
  original exception.
- :attr:`stack` A `StackSummary` representing the traceback.
- :attr:`exc_type` (deprecated) The class of the original traceback.
- :attr:`exc_type_str` String display of exc_type
- :attr:`filename` For syntax errors - the filename where the error
  occurred.
- :attr:`lineno` For syntax errors - the linenumber where the error
  occurred.
- :attr:`end_lineno` For syntax errors - the end linenumber where the error
  occurred. Can be `None` if not present.
- :attr:`text` For syntax errors - the text where the error
  occurred.
- :attr:`offset` For syntax errors - the offset into the text where the
  error occurred.
- :attr:`end_offset` For syntax errors - the end offset into the text where
  the error occurred. Can be `None` if not present.
- :attr:`msg` For syntax errors - the compiler error message.
rNr�Tr�FrC�max_group_width�max_group_depth�
save_exc_type�_seenc
��VRJpVf\4pVP\V44W�nW�n\
P
\V4WEVR7VnV
'dTMRVn	\VR4Vn\VRR4Vn
RVnVRJVnVe$VP$VnVP(VnMRVnRVnV'd�\-V\.4'd�VP0VnVP2pVe\5V4MRVnVP6pVe\5V4MRVnVP8VnVP:VnVP<VnVP>VnRVn\VRR4Vn EM\V'de\-V\B4'dO\VRR4e@\VRR4p\EW#V4pV'dV;PR	VR
2,
unM�V'd�\-V\F\H34'd�\VRR4e�\VRR4p\EW#V4pV'dV;PR	VR
2,
un\-V\F4'dj\VRR4pVeYV\JPL9dDV'dV;PRVR
2,
unMV;PR
VR
2,
unV'dVPO4Ve
VPPMRVn(V'EgaW3.pV'EdRVPS4wpp
V
eoV
PTea\V
PT4V9dG\W\YV
PT4V
PTV
PTPZVVVVV	VR7	pMRpV'd+VRJ;'dV
RJ;'dV
PP'*pMRpV
ewV
P\eiV'da\V
P\4V9dG\W\YV
P\4V
P\V
P\PZVVVVV	VR7	pMRpV
ee\_V
\`4'dO.pV
PbF;p\W\YV4VVPZVVVVV	VR7	pVPeV4K=	MRpVVn*VVn.VVn1V'd(VPeVPTV
PT34V'd(VPeVP\V
P\34V'gEK(VPg\iVPbV
Pb44EKZR#R# \d&p
R\T
R\42.Tn
Rp
?
EL8Rp
?
ii;i)Nr�rX�	__notes__z!Ignored error getting __notes__: FT�	_metadata�	name_fromz. Did you mean: '�'?r�z Or did you forget to import 'z. Did you forget to import ')rr�r�r�r�r�)5r�r�idr�r�rr"r#r��	_exc_typer^�_strr�r�rUr��_is_syntax_error�_have_exc_typer.�exc_type_qualnamer-�exc_type_module�
issubclassrsr�r�r�r�r�rrd�msg�
_exc_metadatart�_compute_suggestion_error�	NameError�AttributeErrorr�stdlib_module_names�_load_lines�__suppress_context__�pop�	__cause__rr<r:�__context__r8�BaseExceptionGroup�
exceptionsr��extend�zip)r)�exc_type�	exc_value�
exc_tracebackrr�r�rCr�r�r�r��is_recursive_call�e�lno�end_lno�
wrong_name�
suggestion�queuerG�cause�need_context�contextr�r=�texcs&&&&$$$$$$$$              rr��TracebackException.__init__s���"��-���=��E�E�
�	�	�"�Y�-� �.��.��!�B�B�(��7��)�C�+��
�
&3�����!��K�8��	�	Z�$�Y��T�B�D�N�
!&���&�d�2�����%-�%:�%:�D�"�#+�#6�#6�D� �%)�D�"�#'�D� ��
�8�[�9�9�%�.�.�D�M��"�"�C�&)�o�#�c�(�4�D�K��*�*�G�.5�.A�c�'�l�t�D�O�!���D�I�#�*�*�D�K�'�2�2�D�O� �}�}�D�H�$(�D�!�!(��K��!F�D��
�*�X�{�;�;��	�;��5�A� ��K��>�J�2�9�Z�X�J���	�	�0���B�?�?�	��
�*�X�	�>�/J�K�K��	�6�4�0�<� ��F�D�9�J�2�9�Z�X�J���	�	�0���B�?�?�	��(�I�.�.�$�Y���=�
��)�j�C�<S�<S�.S�!��	�	�'E�j�\�QS�%T�T�	��	�	�'C�J�<�r�%R�R�	������.7�.C�I�*�*��	
�!�
!� ��&�'�E��%��	�	����A��M�a�k�k�&=��1�;�;��u�4�.��Q�[�[�)�������1�1�#�%1�'5�(7�(7�#�	%�E�!�E��$)�T�M�%?�%?�$%�T�M�%?�%?�()�(>�(>�$>�!�$(�L��M�a�m�m�&?�$��A�M�M�):�%�)G�0��Q�]�]�+��
�
��
�
�3�3�#�%1�'5�(7�(7�#�	%�G�#�G��=�Z��3E�%F�%F�!#�J� �|�|��1� ��I���-�-�"'�)5�+9�,;�,;�"'�	 )��#�)�)�$�/� ,�"&�J�$���!(��� *��
���L�L�"�,�,����!<�=���L�L�"�.�.�!�-�-�!@�A��:��L�L��R�]�]�A�L�L�!A�B��!��i�	Z�3�L��K�QU�4V�3W�X�Z�D�N�N��	Z�s�V!�!W�,W�Wc�B�V!\V4WP.VO5/VB#)z.Create a TracebackException from an exception.)r<r:)�clsr=�argsrFs&&*,r�from_exception�!TracebackException.from_exception�s%���4��9�c�#4�#4�F�t�F�v�F�Frc�T�\P!R\^R7VP#)z-Deprecated in 3.13. Use exc_type_str instead.)�
stacklevel)�warnings�warn�DeprecationWarningr�r(s&rr��TracebackException.exc_type�s ���
�
�E�(�Q�	8��~�~�rc��VP'gR#VPpVPpVR9d)\V\4'gRpVR,V,pV#)Nz	<unknown>�.)�__main__�builtins)r�r�r�r8r�)r)�stype�smods&  r�exc_type_str�TracebackException.exc_type_str�sU���"�"�"���&�&���#�#���/�/��d�C�(�(�"���3�J��&�E��rc�D�VPFpVPK	R#)z7Private API. force all lines in the stack to be loaded.N)r�rg)r)r�s& rr��TracebackException._load_lines�s���Z�Z�E��J�J� rc�l�\V\4'dVPVP8H#\#r�)r8r�__dict__r�r�s&&rr��TracebackException.__eq__�s)���e�/�0�0��=�=�E�N�N�2�2��rc��VP#r�)r�r(s&r�__str__�TracebackException.__str__�s���y�y�rrS�_depthc	+��"�VPRR4p^V,R,pVP'g$V\RVPVR7,x�R#VPpVP
'gqV^8�dP\W`PRVR7P
R4pVUu.uFpWX,R,NK	upRjx�L
MJ\W`PVR7x�M0VPWdR7Uu.uFq�V,NK
	upRjx�L
\VP\PP4'd}\VP\\34'gWVPFEp	\V	R4p	V	P
R4Uu.uFq�V,R,NK	upRjx�L
KG	MBVPe5VR	P!\VPR
\"R74,x�VP$'dBV'd8VP$F%p
V
P'W^,VR7Rjx�L
K'	R#R#R#uupiEL�uupiELYuupiL�L%5i)
amFormat the exception part of the traceback.

The return value is a generator of strings, each ending in a newline.

Generator yields the exception message.
For :exc:`SyntaxError` exceptions, it
also yields (before the exception message)
several lines that (when printed)
display detailed information about where the syntax error occurred.
Following the message, generator also yields
all the exception's ``__notes__``.

When *show_group* is ``True``, and the exception is an instance of
:exc:`BaseExceptionGroup`, the nested exceptions are included as
well, recursively, with indentation relative to their nesting depth.
rAFrkNr�)rVrArY�notez{}
r�r�)rSr)rA)rEr�rhr�rr��split�_format_syntax_errorr8r�r��abc�Sequencer��bytesr^rr�r�rU)r)rSr)rFrArQr�	formatted�lr+�exs&$$,       rrU�(TracebackException.format_exception_only�s���"�:�:�j�%�0���V��c�!���"�"�"��1�$��	�	�H�U�U�U���!�!���$�$�$���z�2��9�9�5�8���%��+��
'��&���J��%�%�&����
-�U�I�I��Q�Q�,0�,E�,E�e�,E�,_�`�,_�q��
�
�,_�`�`�`�
�t�~�~�{���'?�'?�@�@��t�~�~��U�|�<�<�����#�D�&�1��7;�z�z�$�7G�H�7G�!�Q�J��-�-�7G�H�H�H�'��^�^�
'��6�=�=��d�n�n�k�X\�)]�^�^�^��?�?�?�z��o�o���3�3�z�YZ�RZ�em�3�n�n�n�&� *�?��'���a�`��I�H�o�s��A5I8�82I8�*I�I8�I$�	3I8�<I'�
I8�I,�BI8� I/�8I8�>I4�?AI8�I8�$,I8�I6�I8�'I8�/I8�6I8c
��VP'gQh^RIpVPR8wdRVP9dR#VP'gR#VPwr#pVP
e\
VP
4M^pRpRpVf{VP'dH\VP4;_uu_4pVP4P4pRRR4RpVeTMVPP4pMVP4pYb^8�d
V^,
M^Vp	\P!RPV	44p	\!V	4R8�dR#V	P4p
\"P$!\&P(!V	4P*4p^
p^RIp
VEFtpVP.VP0ppVP2\"P48wdK=V^8XdTMV^,pV'd"VP.^,V,V8wdKxVP6pV\8P:9dK�V^,pV^8dR#^p.pVe:VP=\8P:V4pV'dVP?V4VPAV
PCV\8P:VRR	74VRVpVEFGpV'dVV8XdKV
PE4pVV^,^,
,R
,p\GV4pVVVP.^,VP0^,%RPV4VV^,^,
&RPV4p\HPJ!VR\HPLR
7TPPTnTP.^,^,Tn)TP0^,^,Tn*T^,TnT^,Tn+RTR2TnR#	EKw	R# \dRpEL i;i +'giELj;i \d
^^^r5pEL~i;i \NdEK�i;i)r�Nzinvalid syntaxzPerhaps you forgot a commaFTrYig�?)�n�cutoff:NNNr�exec)�symbol�flagszinvalid syntax. Did you mean 'r�),r��_suggestionsrtr�r�r��intr��open�readrRrUr�r�r�rsr��tokenize�generate_tokens�io�StringIO�readline�difflib�startr
r<�NAME�string�keyword�kwlist�_generate_suggestionsr�r��get_close_matches�copyrQ�codeop�compile_command�
PyCF_ONLY_ASTrsrgrrdr�)r)r;rgr�source�end_liner��
from_filenamer��
error_code�error_lines�tokens�tokens_left_to_processrD�tokenrEr
�the_endr�max_matches�matchesr�	the_lines�the_line�charsr�s&                         r�_find_keyword_typos�&TracebackException._find_keyword_typoss����$�$�$�$�$�	 ��
�8�8�'�'�,H�PT�PX�PX�,X���!�!�!��#�1�1���f�'+�{�{�'>�3�t�{�{�#�A�����
��>��}�}�}�)��d�m�m�,�,�� !���� 3� 3� 5��-�
%)�M�"�.�E�D�I�I�4H�4H�4J�E��%�%�'�E��Q�h�4��7�A�h�?�
��_�_�T�Y�Y�z�%:�;�
��z�?�T�!�� �+�+�-���)�)�"�+�+�j�*A�*J�*J�K��!#����E����e�i�i�3�E��z�z�X�]�]�*��"&�!�)�h��A��G�����Q���!4��!?�����J��W�^�^�+��
#�a�'�"�%��)���K��G��'�)�?�?����PZ�[�
���N�N�:�.��N�N�7�4�4�Z����S^�gj�4�k�l��l�{�+�G�%�
�!�Z�:�%=��'�,�,�.�	�$�U�1�X��\�2�1�5���X���5?��e�k�k�!�n�U�Y�Y�q�\�2�*,�'�'�%�.�	�%��(�Q�,�'��y�y��+����*�*�4��f�FZ�FZ�[�
"�J�J��	�#�k�k�!�n�q�0���"'�)�)�A�,��"2���#�A�h���"%�a�&���;�J�<�r�J����1&�5��O�	 ��L�	 ��$-�,�,�� �3�-.�q��F�D�F�3��v#����sM�P*�!Q�>P>�Q�'Q)�*
P;�:P;�>Q	�		Q�Q&�%Q&�)Q9�8Q9c	+�z"�VPRR4pV'd#\P!RR7PpM!\P!RR7PpRpVPe`RPVPVP;'gR	VPVPVPVP4x�M)VPeR
PVP4pVPp\V\4'Ed�\\4;_uu_4VP4RRR4VPpVPR4pVP!R4p\#V4\#V4,
p	VP$fR
PV4x�EM\VP$\&4'Ed�VP$p
VPVP(8XdA\VP*\&4'dVP*^8wd
VP*MT
pM\#V4^,pVP'd-V
\#VP48�d\#V4^,p
VP'd-V\#VP48�d\#V4^,pW�8�gV^8d
V
^,pV
^,
V	,
pV^,
V	,
p
RpV^8�d�RVRV4pR;ppV'dRVRVVP,,W�V
,VP,W�R,pVP,pVPpR
PV4x�RPRP/V4VRW�,
,V4x�MR
PV4x�VP0;'gRpRPVP2VVPVP4VVPV4x�R# +'giEL�;i5i)z0Format SyntaxError exceptions (internal helper).rAFTrZr\rNz  File {}"{}"{}, line {}{}{}
z<string>z ({})rYz 
z    {}
rkc3�T"�TFqP4'dTMRx�K 	R#5i)rkNr�)r�cs& rr"�:TracebackException._format_syntax_error.<locals>.<genexpr>�s���!U�}�!�	�	���1��#<�}�s�&(z
    {}{}{}{}
rz<no detail available>z{}{}{}: {}{}{}{}
)rErKr_r`r�rr�rarPr�r8r�rrUr^r�r.r�rr<r�rdr4rsr�r<rb)r)rrFrArf�filename_suffixr��rtext�ltext�spacesrrdr�r��
caretspace�start_color�	end_colorr�s&&,               rr-�'TracebackException._format_syntax_error`sU����:�:�j�%�0����'�'�D�9�C�C�E��'�'�t�<�F�F�E����;�;�"�2�9�9�����
�
�+�+������
�
�������
�
��]�]�
&�%�n�n�T�]�]�;�O��y�y���d�C� � ��)�$�$��(�(�*�%��9�9�D��K�K��%�E��L�L��)�E���Z�#�e�*�,�F��{�{�"� �'�'��.�.��D�K�K��-�-������;�;�$�/�/�1�'�t����<�<� $���1� 4����
$�
�"%�U��a��J��9�9�9��#�d�i�i�.�!8� ��Z�!�^�F��9�9�9��c�$�)�)�n�!<�!$�U��a��J��'�:��>�!'�!��J���
�V�+��&��N�V�3�	� �
��A�:�!U�u�V�e�}�!U�J�.0�0�K�)��"�&�5�M�!�1�1�2�49�	�4J�K�MR�[�[�Y�!�*�-�.��
',�&;�&;��$)�K�K�	�$�+�+�E�2�2�*�1�1����
�+�#��	� 1�2�!�	��%�+�+�E�2�2��h�h�1�1�1��"�)�)��J�J���K�K��M�M���K�K��
�	
�q%�$�$�sA�BP;�BP;�2P'�DP;�#=P;�!BP;�$B<P;�!AP;�'P8	�2	P;rD�_ctxc	+�"�VPRR4pVf\4p.pTpV'dxV'doVPe\pVPpM7VPe&VP
'g\pVPpMRpRpVPWv34TpKvMVPRV34\V4EF�wr�V	eVPV	4Rjx�L
VPf�VP'dMVPR4Rjx�L
VPVPPVR74Rjx�L
VPVPVR74Rjx�L
K�VPVP8�d*VPRVPR24Rjx�L
K�VP^8Hp
V
'dV;P^,
unVP'dYTPRV
'dR	MRR
7Rjx�L
VPVPPVR74Rjx�L
VPVPVR74Rjx�L
\!VP4pW�P"8:dTpMVP"^,pRVn\'V4EF\p
W�^,
8HpV'dRVnVP"eW�P"8�pMRpV'gV
^,MRpVP)4V
^8XdR
MR,RVR2,x�V;P^,
unV'g.VPV
,PWVR7Rjx�L
M=W�P",
pV^8�dRMRpVPRVRVR24Rjx�L
V'd3VP$'d!VP)4R,x�RVnV;P^,unEK_	V
'gEKzVP^8XgQh^VnEK�	R#EL}ELGELEL�EL�ELJELEL�L�L�5i)a�Format the exception.

If chain is not *True*, *__cause__* and *__context__* will not be formatted.

The return value is a generator of strings, each ending in a newline and
some containing internal newlines. `print_exception` is a wrapper around
this method which just prints the lines to a file.

The message indicating which exception occurred is always the last
string in the output.
rAFNz#Traceback (most recent call last):
r�z... (max_group_depth is z)
z3Exception Group Traceback (most recent call last):
�+)r�Tz...z+-z  z+---------------- z ----------------
)rDrlrAr�rzand z more exceptionrYz&+------------------------------------
)rEr�r��_cause_messager�r��_context_messager��reversedr�r�r�rrUr�r�r�r�r�r�rQ)r)rDrlrFrA�outputr=�chained_msg�chained_excr��is_toplevel�num_excsr6rirv�	truncated�title�	remaining�plurals&$$,               rr�TracebackException.format�s�����:�:�j�%�0���<�)�+�D��������=�=�,�"0�K�"%�-�-�K��o�o�2��2�2�2�"2�K�"%�/�/�K�"&�K�"&�K��
�
�{�0�1�!���
�M�M�4��+�&� ��(�H�C����9�9�S�>�)�)��~�~�%��9�9�9�#�y�y�)O�P�P�P�#�y�y����)9�)9�8�)9�)L�M�M�M��9�9�S�%>�%>��%>�%Q�R�R�R��+�+�d�.B�.B�B��9�9�.�t�/C�/C�.D�C�H�J�J�J� $�9�9�Q�>����.�.�!�3�.��9�9�9�#�y�y�N�-8�c�d� )� D�D�D� $�y�y����)9�)9�8�)9�)L�M�M�M��9�9�S�%>�%>��%>�%Q�R�R�R��s�~�~�.���3�3�3� �A��,�,�q�0�A�"'����q��A� !�q�S��H��*.����+�+�7�%&�*>�*>�%>�	�$)�	�,5�q��s�e�5�E��;�;�=�$%�q�D�D�d�4�/��w�6I�J�K�L��.�.�!�3�.�$�#&�>�>�!�#4�#;�#;�%�]e�#;�#f�f�f�$,�/C�/C�$C�	�(1�A�
��2��#'�9�9�"�9�+�_�V�H�B�G�$I�I�I� �D�O�O�O�#�{�{�}�H� I�J�*/����.�.�!�3�.�.�7"�:�;��5�5��:�:�:�12�D�.�})�)�Q�M�R�J�D�N�R�.g�I�s��,Q;�Q;�AQ;�8A*Q;�"Q�##Q;�Q;�Q"�2Q;�Q%�(Q;�7Q(�8AQ;�;Q+�<Q;�*Q;�Q;�Q;�$Q.�%2Q;�Q1�(Q;�Q4�BQ;�AQ;�1'Q;�Q7�=Q;�Q9�Q;�#Q;�5AQ;�>"Q;�"Q;�%Q;�(Q;�+Q;�.Q;�1Q;�4Q;�7Q;�9Q;r	c��VPRR4pVf\PpVPW$R7Fp\	WQRR7K	R#)z7Print the result of self.format(chain=chain) to 'file'.rAFNrPrr)rErrrr)r)r	rDrFrArgs&$$,  rr�TracebackException.print!s@���:�:�j�%�0���<��:�:�D��K�K�e�K�?�D��$�r�*�@r)r�r�r�r�r�r�r�r�rdr�r�r�r�r�r�r�rr�r�)r,r-r.r/r�r�r�rr�r�rr�r�r'rUr^r-rrr0r1r2s@rrr�s����%�NPC�D�PC��PC�.3�PC�=B�PC��PC�02�PC�BF�PC�NR�PC�d�G��G�����
�	��	��
�
�4o�%�4o��4o�l]�@Z
�xb3�d�b3��b3�J+�D�+��+�+ri�c�p�W8Xd^#VP4VP48Xd\#\#)r�)�lower�
_CASE_COST�
_MOVE_COST)�ch_a�ch_bs&&r�_substitution_costr�0s*���|���z�z�|�t�z�z�|�#����rc	���Ve\V\4'gR#\V\4'd�VPp\	V4p\VUu.uFp\V\4'gKVNK	up4pVR,R8gpV'dWVeSVPeVPpKVPpRVP9dVPR,VJdRpV'd!VUu.uFqUR,R8wgKVNK	ppEM�\V\4'd�\!VP"4p\	V4p\VUu.uFp\V\4'gKVNK	up4pVR,R8wd!VUu.uFqUR,R8wgKVNK	ppM�\V\$4'gQhVfR#VPeVPpKVPp\
VP4\
VP&4,\
VP(4,pVUu.uFp\V\4'gKVNK	ppRVP9d-VPR,p	\+W�4p
V
'dRV2#^RIpVP/WB4# \
dZ\
TPPP44\
TPP44,pEL�i;iuupiuupi \dR#i;i \
d(\
TPP44pEL!i;iuupiuupi \dR#i;iuupi \dRp
ELi;i \dMi;i\1T4\28�dR#\1T4pT\48�dR#Tp
RpTFspY�8XdK\1T4T,^,\6,^,p\9TT
^,
4p\;Y/T4pTT8�dK^T'd
TT
8gKoTpTp
Ku	T#)N:Nr�Nr!r)Fzself.)r8r�r��obj�dirr;rQ�	__class__r$�keysr\r�r�rrUrt�
__import__r�r�r�
f_builtinsrxr;rJr��_MAX_CANDIDATE_ITEMS�_MAX_STRING_SIZEr��min�_levenshtein_distance)rrrr��dr�hide_underscoredr��modr)�has_wrong_namer;�wrong_name_len�
best_distancer�
possible_name�max_distance�current_distances&&&               rr�r�8s������J��!<�!<���)�^�,�,��m�m��	�
T���H���1�;�1�a�
�1�c�(:���1�;�<�A� *�2��#� 5���B�N��j�j�,����B������U�^�^�+����v�0F�#�0M�',�$�� !�2��1�r�U�c�\�Q�Q���2��
�I�{�	+�	+�
	��Y�^�^�,�C�
.���H���1�;�1�a�
�1�c�(:���1�;�<�A��"�~��$� !�2��1�r�U�c�\�Q�Q���2���)�Y�/�/�/�/�
�:���j�j�$����B��������� ��5�?�?�#�
$��5�#�#�$�
%�	
�
�0��1�Z��3�/�Q�Q���0��U�^�^�#��>�>�&�)�D�
'�!(��!:����z�l�+�+�A���1�1�!�@�@��s�
T�����/�/�4�4�6�7�$�s�|�|�?P�?P�?R�:S�S��
T��;��3���	��	���
.�����*�*�,�-��
.��;��2���	��	��
1���
'�!&��
'���
��
���1�v�$�$����_�N��(�(��"�M��J��
��&���M�*�^�;�a�?�:�M�QR�R���<���):�;��0��L�Y���l�*���-�
�=�&�J�,�M���s��J8�	L)�L�2L�8L)�AL)�1L)�5L$�	L$�L)�*M:�L;�	M:�M0�1M0�7M:�M5�$M5�*M:�N�N�
N�#N%�8A L�L)�L�
L)�)L8�7L8�;.M-�)M:�,M-�-
M:�:N	�N	�
N"�!N"�%N3�2N3c	���W8Xd^#^pWR'd)WR'dW,W,8XdV^,
pK2WRpWRp^pTRT;'gR'dBTRT;'gR'd-W^,
,W^,
,8XdV^,pKVTRT;'gRpTRT;'gRpV'd	V'g'\\V4\V4,,#\V4\8�g\V4\8�d
V^,#\V4\V48dYr\V4\V4,
\,V8�d
V^,#\\	\\\V4^,,\44p^p\	\V44F�pW,pV\,;r�\
Pp
\	\V44FSpV	\W�V,4,pW[,p	\Wi4\,p
\W�4pWeV&Wj8gKQTp
KU	W�8�gK�V^,u#	V#)r�N)	r�r�r�rQr�r�maxsizer�r�)�a�b�max_cost�pre�postr_r�bindex�bchar�distance�minimum�index�
substitute�
insert_deletes&&&           rr�r��s���	�v���C�
�D�'�a��g�!�&�A�F�"2��q���	�$��A�	�$��A��D�
�M�T�\�\�T�
�q��$�,�,�$�/�A�1�f�I���6��4J���	��	�-�4�<�<�4��A�	�-�4�<�<�4��A��A��S��V�c�!�f�_�-�-�
�1�v� � �C��F�-=�$=��!�|���1�v��A����1�	�A���Q���:�%��0��!�|��
�u�Z��s�1�v��z�!:�J�G�
H�C�
�F���A��-���	��"�Z�/�/���+�+���3�q�6�]�E�!�$6�u��h�$G�G�J��z�H� ��1�J�>�M���3�F� ��J��� ��#����a�<��) �*�Mr)rrrRrUrr�r rprtrHr{r�rr�rrrr�r�rr�r5)NNT)NT)NNN)r0rXr1rYrGrH)Ar��collections.abcr�r�r�rr�rrMrHr?rArK�
contextlibr�__all__rrrr rrorpr%r6r?rH�objectrMrNrRrUrhr�r^rprtr{r�r�rr�rr�r�r#r�r�rQrrS�
namedtupler�rVr�r/r�rr�r�r�r�r�r�r�r'rr�<module>r�s���F����
���
���	���2��'�;�$7�0�7�*&��
&��
��
�K�	��#,�	���T�8�$!�(��]�$-��$��
;� )2�T��T�0���PU��$'�4�J�P�	=� 	9�6�
� �e6�e6�P#�"��O���e�4�e�PC�
�!�!����3�Z���P�d���*K�K�.{+�{+�|����
�
�
�
��Z�z:r