Your IP : 3.145.72.125


Current Path : /opt/alt/python313/lib64/python3.13/importlib/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/importlib/__pycache__/_bootstrap.cpython-313.pyc

�

+}g�����SrSrSrSrSrSqSrSr"SS\5r	"SS5r
0rSq"S	S
5r
"SS\5rS
r"SS5r"SS5r"SS5rSrSrSrSS.SjrSrSrSrSr"SS5rSSS .S!jrSBS"jrS#S$.S%jrS&r S'r!S(r"S)r#S*r$S+r%"S,S-5r&"S.S/5r'"S0S15r(S2r)SCS3jr*S4r+S5r,\,S6-r-S7r.\/"5r0S8r1SDS9jr2S#S:.S;jr3S<r4SES=jr5S>r6S?r7S@r8SAr9g)FaSCore implementation of import.

This module is NOT meant to be directly imported! It has been designed such
that it can be bootstrapped into Python as the implementation of import. As
such it requires the injection of specific modules and attributes in order to
work. One should use importlib as the public-facing version of this module.

c�f�UR$![a [U5Rs$f=f�N)�__qualname__�AttributeError�type)�objs �;/opt/alt/python313/lib64/python3.13/importlib/_bootstrap.py�_object_namer	s2��&�������&��C�y�%�%�%�&�s��0�0Nc	��SH*n[X5(dM[X[X55 M, URR	UR5 g)z/Simple substitute for functools.update_wrapper.)�
__module__�__name__r�__doc__N)�hasattr�setattr�getattr�__dict__�update)�new�old�replaces   r�_wrapr(s?��H���3� � ��C�'�#�"7�8�I��L�L������%�c�,�[[5"U5$r)r�sys��names r�_new_moduler0s����9�T�?�rc��\rSrSrSrSrg)�_List�7)�__weakref__�N)rrr�__firstlineno__�	__slots__�__static_attributes__r!rrrr7s�� �Irrc�:�\rSrSrSrSrSrS	SjrS	SjrSr	g)
�_WeakValueDictionary�>c�^�[RU5m"U4SjS[R5nXlUR5 g)Nc�P>^�\rSrSrSrU4SjrU4Sjr\U4Sj5rSr	U=r
$)z/_WeakValueDictionary.__init__.<locals>.KeyedRef�F)�keyc�H>�[TU]XUR5nX#lU$r)�super�__new__�remover+)r�obr+�self�	__class__s    �rr.�7_WeakValueDictionary.__init__.<locals>.KeyedRef.__new__Js!����w��t����=�����rc�8>�[TU]XR5 gr)r-�__init__r/)r1r0r+r2s   �rr5�8_WeakValueDictionary.__init__.<locals>.KeyedRef.__init__Os����� ��[�[�1rc��>�T"5nUbbUR(a&URRUR5 g[RURUR5 ggr)�
_iterating�_pending_removals�appendr+�_weakref�_remove_dead_weakref�data)�wrr1�self_weakrefs  �rr/�6_WeakValueDictionary.__init__.<locals>.KeyedRef.removeRsN���$�~���#�����.�.�5�5�b�f�f�=� �5�5�d�i�i����H�	$r)rrrr"r#r.r5�staticmethodr/r$�
__classcell__)r2r?s@�r�KeyedRef�/_WeakValueDictionary.__init__.<locals>.KeyedRefFs(����I�
�

2��
I��
IrrC)r;�ref�	_KeyedRef�clear)r1rCr?s  @rr5�_WeakValueDictionary.__init__@s3����|�|�D�)��
	I�x�|�|�	I�."���
�
�rc�>�/Ul[5Ul0Ulgr)r9�setr8r=�r1s rrG�_WeakValueDictionary.clear`s��!#����%�����	rc��URRnURnU"5n[RX#5 M![a gf=fr)r9�popr=�
IndexErrorr;r<)r1rN�dr+s    r�_commit_removals�%_WeakValueDictionary._commit_removalsesT���$�$�(�(���I�I���
��e��
�)�)�!�1����
��
�s�A�
A�ANc��UR(aUR5 URUnU"5=ncU$U$![a Us$f=fr)r9rQr=�KeyError)r1r+�defaultr>�os     r�get�_WeakValueDictionary.getosW���!�!��!�!�#�	����3��B��T�	��"������
�	��N�	�s�A�A�Ac���URU"5nUcAUR(aUR5 UR	X!5URU'U$U$![a SnNTf=fr)r=rTr9rQrF)r1r+rUrVs    r�
setdefault�_WeakValueDictionary.setdefault|si��	��	�	�#�� �A�
�9��%�%��%�%�'�!�^�^�G�9�D�I�I�c�N��N��H���	��A�	�s�A�A+�*A+)rFr8r9r=r)
rrrr"r5rGrQrWrZr$r!rrr&r&>s���@�
2��rr&c�*�\rSrSrSrSrSrSrSrg)�_BlockingOnManager�z;A context manager responsible to updating ``_blocking_on``.c��XlX lgr)�	thread_id�lock)r1r`ras   rr5�_BlockingOnManager.__init__�s��"���	rc��[RUR[55UlURRUR5 g)zCMark the running thread as waiting for self.lock. via _blocking_on.N)�_blocking_onrZr`r�
blocked_onr:rarKs r�	__enter__�_BlockingOnManager.__enter__�s4��'�1�1�$�.�.�%�'�J��������t�y�y�)rc�N�URRUR5 g)z6Remove self.lock from this thread's _blocking_on list.N)rer/ra�r1�args�kwargss   r�__exit__�_BlockingOnManager.__exit__�s�������t�y�y�)r)rerar`N)	rrrr"r
r5rfrlr$r!rrr]r]�s��E��	*�*rr]c��\rSrSrSrg)�_DeadlockError�r!N)rrrr"r$r!rrroro�s��rroc���X;agUHbnURU5=n(dMXA;a gURU5 UVs/sHofRPM nn[XUUS9(dMb g gs snf)a�Check if 'target_id' is holding the same lock as another thread(s).

The search within 'blocking_on' starts with the threads listed in
'candidate_ids'.  'seen_ids' contains any threads that are considered
already traversed in the search.

Keyword arguments:
target_id     -- The thread id to try to reach.
seen_ids      -- A set of threads that have already been visited.
candidate_ids -- The thread ids from which to begin.
blocking_on   -- A dict representing the thread/blocking-on graph.  This may
                 be the same object as the global '_blocking_on' but it is
                 a parameter to reduce the impact that global mutable
                 state has on the result of this function.
TF)�seen_ids�
candidate_ids�blocking_on)rW�add�owner�_has_deadlocked)�	target_idrrrsrt�tid�candidate_blocking_onra�edgess        rrwrw�s��� �!����)4����)=�=�%�=��
�_�
����S��)>�>�(=����(=��>��9�u�'�)�)��!�$��?s�A0c�6�\rSrSrSrSrSrSrSrSr	Sr
g	)
�_ModuleLock��z�A recursive lock implementation which is able to detect deadlocks
(e.g. thread 1 trying to take locks A then B, and thread 2 trying to
take locks B then A).
c��[R5Ul[R5UlXlSUl/Ul/Ulgr)	�_thread�RLockra�
allocate_lock�wakeuprrv�count�waiters�r1rs  rr5�_ModuleLock.__init__�sC��*�M�M�O��	��+�+�-����	���
���
���rc�l�[[R5[5UR/[
S9$)N)rxrrrsrt)rwr��	get_identrJrvrdrKs r�has_deadlock�_ModuleLock.has_deadlock s0��
��'�'�)��U� �:�:�,�$�	
�		
rc��[R5n[X5 UR UR/:XdUR
U:Xa3XlURR
S5 SSS5 SSS5 gUR5(a[SU<35eURRS5(aURR
S5 SSS5 URR5 URR5 M�!,(df   ND=f!,(df   g=f)z�
Acquire the module lock.  If a potential deadlock is detected,
a _DeadlockError is raised.
Otherwise, the lock is always acquired and True is returned.
TNzdeadlock detected by F)
r�r�r]rar�rvr:r�ror��acquirer��release�r1rys  rr��_ModuleLock.acquire0s������!��
��
*���Y�Y��z�z�R�'�4�:�:��+<�&)�
��
�
�)�)�$�/�#��+�
*�D�(�(�*�*�,�/D�T�H�-M�N�N��{�{�*�*�5�1�1����+�+�D�1�Y�b���#�#�%�
���#�#�%�u��Y��+�
*�s0�D0�AD�1D0�AD�!>D0�
D-	�)D0�0
D>c���[R5nUR URU:wa[	S5e[UR5S:�deURR5 [UR5(dTSUl[UR5S:�a4URR5 URR5 SSS5 g!,(df   g=f)N�cannot release un-acquired lock�)r�r�rarv�RuntimeError�lenr�rNr�r�r�r�s  rr��_ModuleLock.releasets������!��
�Y�Y��z�z�S� �"�#D�E�E��t�z�z�?�Q�&�&�&��J�J�N�N���t�z�z�?�?�!��
��t�|�|�$�q�(��L�L�$�$�&��K�K�'�'�)��Y�Y�s�B?C)�)
C7c�:�SUR<S[U53$)Nz_ModuleLock(�) at �r�idrKs r�__repr__�_ModuleLock.__repr__�s���d�i�i�]�%��4��z�:�:r)r�rarrvr�r�N)rrrr"r
r5r�r�r�r�r$r!rrr}r}�s#���
6�p
� B&�H*�;rr}c�0�\rSrSrSrSrSrSrSrSr	g)	�_DummyModuleLocki�zRA simple _ModuleLock equivalent for Python builds without
multi-threading support.c��XlSUlg�Nr�)rr�r�s  rr5�_DummyModuleLock.__init__�s���	���
rc�.�U=RS-
slg)N�T)r�rKs rr��_DummyModuleLock.acquire�s���
�
�a��
�rc�d�URS:Xa[S5eU=RS-slg)Nr�r�r�)r�r�rKs rr��_DummyModuleLock.release�s&���:�:��?��@�A�A��
�
�a��
rc�:�SUR<S[U53$)Nz_DummyModuleLock(r�r�rKs rr��_DummyModuleLock.__repr__�s��"�4�9�9�-�u�R��X�J�?�?r)r�rN)
rrrr"r
r5r�r�r�r$r!rrr�r��s�� ����
@rr�c�&�\rSrSrSrSrSrSrg)�_ModuleLockManageri�c��XlSUlgr)�_name�_lockr�s  rr5�_ModuleLockManager.__init__�s���
���
rc�l�[UR5UlURR5 gr)�_get_module_lockr�r�r�rKs rrf�_ModuleLockManager.__enter__�s"��%�d�j�j�1��
��
�
���rc�8�URR5 gr)r�r�ris   rrl�_ModuleLockManager.__exit__�s���
�
���r)r�r�N)rrrr"r5rfrlr$r!rrr�r��s����rr�c�R�[R5 [U"5nUc@[c[U5nO[
U5nU4Sjn[RX5[U'[R5 U$![a SnNgf=f![R5 f=f)z�Get or create the module lock for a given module name.

Acquire/release internally the global import lock to protect
_module_locks.Nc���[R5 [RU5ULa[U	[R	5 g![R	5 f=fr)�_imp�acquire_lock�
_module_locksrW�release_lock)rErs  r�cb�_get_module_lock.<locals>.cb�sI���!�!�#�(�%�(�(��.�#�5�)�$�/��%�%�'��D�%�%�'�s�A
�
A )
r�r�r�rTr�r�r}r;rEr�)rrar�s   rr�r��s���	�����	� ��&�(�D��<���'��-��"�4�(��!�	
(�#+�,�,�t�"8�M�$�������K��1�	��D�	��,	
����s)�A>�AB�>B
�
B�B
�
B�B&c�|�[U5nUR5 UR5 g![a gf=f)z�Acquires then releases the module lock for a given module name.

This is used to ensure a module is completely initialized, in the
event it is being imported by another thread.
N)r�r�r�ro)rras  r�_lock_unlock_moduler��s=���D�!�D������	
������
�	
�
�s�.�
;�;c��U"U0UD6$)aremove_importlib_frames in import.c will always remove sequences
of importlib frames that end with a call to this function

Use it instead of a normal call in places where including the importlib
frames introduces unwanted noise into the traceback (e.g. when executing
module code)
r!)�frj�kwdss   r�_call_with_frames_removedr��s��
�d��d��rr�)�	verbosityc���[RRU:�aAURS5(dSU-n[	UR
"U6[RS9 gg)z=Print the message to stderr if -v/PYTHONVERBOSE is turned on.)�#zimport z# )�fileN)r�flags�verbose�
startswith�print�format�stderr)�messager�rjs   r�_verbose_messager��sK��
�y�y���I�%��!�!�"2�3�3��W�n�G�
�g�n�n�d�#�#�*�*�5�&rc�,^�U4Sjn[UT5 U$)z1Decorator to verify the named module is built-in.c�X>�U[R;a[U<S3US9eT"X5$)N� is not a built-in moduler)r�builtin_module_names�ImportError�r1�fullname�fxns  �r�_requires_builtin_wrapper�4_requires_builtin.<locals>._requires_builtin_wrapper�s6����3�3�3�3����,E�F�#+�-�
-��4�"�"r�r)r�r�s` r�_requires_builtinr��s���#�

�
#�S�)�$�$rc�,^�U4Sjn[UT5 U$)z/Decorator to verify the named module is frozen.c�d>�[RU5(d[U<S3US9eT"X5$)Nz is not a frozen moduler)r��	is_frozenr�r�s  �r�_requires_frozen_wrapper�2_requires_frozen.<locals>._requires_frozen_wrappers7����~�~�h�'�'����,C�D�#+�-�
-��4�"�"rr�)r�r�s` r�_requires_frozenr��s���#�

�
"�C�(�#�#rc���Sn[RU[5 [X5nU[R
;a1[R
Un[
X45 [R
U$[U5$)zzLoad the specified module into sys.modules and return it.

This method is deprecated.  Use loader.exec_module() instead.

zgthe load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead)�	_warnings�warn�DeprecationWarning�spec_from_loaderr�modules�_exec�_load)r1r��msg�spec�modules     r�_load_module_shimr�
s]��3�C�
�N�N�3�*�+��H�+�D��3�;�;�����X�&��
�d���{�{�8�$�$��T�{�rc��[USS5n[USS5=n(a[U5$URnURnSU<SU<S3$![a SnN&f=f![a Uc	SU<S3s$SU<SU<S	3s$f=f)
z,The implementation of ModuleType.__repr__().�
__loader__N�__spec__�?�<module � from �>� (�)>)r�_module_repr_from_specrr�__file__)r��loaderr�r�filenames     r�_module_reprr�s���
�V�\�4�
0�F��v�z�4�0�0�t�0�%�d�+�+������6��?�?���$����|�1�5�5���������5��>��d�X�Q�'�'��d�X�R��z��4�4�	5�s(�A�A$�A!� A!�$B�:B�Bc��\rSrSrSrSSSS.SjrSrSr\S5r	\	RS	5r	\S
5r\S5r\RS5rS
r
g)�
ModuleSpeci2apThe specification for a module, used for loading.

A module's spec is the source for information about the module.  For
data associated with the module, including source, use the spec's
loader.

`name` is the absolute name of the module.  `loader` is the loader
to use when loading the module.  `parent` is the name of the
package the module is in.  The parent is derived from the name.

`is_package` determines if the module is considered a package or
not.  On modules this is reflected by the `__path__` attribute.

`origin` is the specific location used by the loader from which to
load the module, if that information is available.  When filename is
set, origin will match.

`has_location` indicates that a spec's "origin" reflects a location.
When this is True, `__file__` attribute of the module is set.

`cached` is the location of the cached bytecode file, if any.  It
corresponds to the `__cached__` attribute.

`submodule_search_locations` is the sequence of path entries to
search when importing submodules.  If set, is_package should be
True--and False otherwise.

Packages are simply modules that (may) have submodules.  If a spec
has a non-None value in `submodule_search_locations`, the import
system will consider modules loaded from the spec as packages.

Only finders (see importlib.abc.MetaPathFinder and
importlib.abc.PathEntryFinder) should modify ModuleSpec instances.

N)�origin�loader_state�
is_packagec�~�XlX lX0lX@lU(a/OSUl/UlSUlSUlg�NF)rr�r�r��submodule_search_locations�_uninitialized_submodules�
_set_fileattr�_cached)r1rr�r�r�r�s      rr5�ModuleSpec.__init__Ws<���	�����(��0:�"���'�)+��&�#�����rc�F�SUR<3SUR<3/nURbURSUR<35 URbURSUR35 UR
RSSRU5S3$)Nzname=zloader=zorigin=zsubmodule_search_locations=�(z, �))rr�r�r:rr2r�join)r1rjs  rr��ModuleSpec.__repr__ds�����	�	�}�%������'@�A���;�;�"��K�K�'�$�+�+��1�2��*�*�6��K�K�5�d�6U�6U�5V�W�X��.�.�)�)�*�!�D�I�I�d�O�+<�A�>�>rc��URnURUR:H=(a� URUR:H=(an URUR:H=(aN X!R:H=(a9 URUR:H=(a UR
UR
:H$![a	 [s$f=fr)rrr�r��cached�has_locationr�NotImplemented)r1�other�smsls   r�__eq__�ModuleSpec.__eq__ls����.�.��	"��I�I����+�<��K�K�5�<�<�/�<��K�K�5�<�<�/�<��<�<�<�<��K�K�5�<�<�/�	<�
�%�%��);�);�;�
=���	"�!�!�	"�s�B-B<�<C�Cc���URcOURbBUR(a1[c[e[RUR5UlUR$r)rr�r�_bootstrap_external�NotImplementedError�_get_cachedrKs rr�ModuleSpec.cachedxsJ���<�<���{�{�&�4�+=�+=�&�.�-�-�2�>�>�t�{�{�K����|�|�rc��Xlgr)r)r1rs  rrr�s���rc�p�URcURRS5S$UR$)z The name of the module's parent.�.r�)rr�
rpartitionrKs r�parent�ModuleSpec.parent�s4���*�*�2��9�9�'�'��,�Q�/�/��9�9�rc��UR$r)rrKs rr
�ModuleSpec.has_location�s���!�!�!rc�$�[U5Ulgr)�boolr)r1�values  rr
r�s��!�%�[��r)rrrr�r�rr�r)rrrr"r
r5r�r�propertyr�setterrr
r$r!rrr�r�2s���"�H04�$� ��?�
"������]�]���������"��"����)��)rr��r�r�c�L�Uc
[USS5nU(dI[US5(a8[c[e[RnUcU"XS9$U(a/OSnU"XUS9$Uc&[US5(aURU5nOSn[XX#S9$![a SnNf=f)	z5Return a module spec based on various loader methods.N�_ORIGIN�get_filename)r�)r�rr�Fr%)rrrr�spec_from_file_locationr�r�r�)rr�r�r�r)�searchs      rr�r��s���
�~����D�1���g�f�n�5�5��&�%�%�"5�"M�"M����*�4�?�?�!��t��&�t�BH�J�	J����6�<�(�(�
"�#�.�.�t�4�
�
�J��d�6�I�I��
�
"�!�
�
"�s�6B�B#�"B#c��URnUbU$URnUc
URnURnUcUb
[USS5nU(dUbUnURn[UR5n[XAUS9nUcSOX%:HUl
XclXslU$![a N�f=f![a N�f=f![a SnN�f=f![a SnN|f=f![a SnNxf=f)Nr'�r�F)
r�rrr�r�r�
__cached__�list�__path__r�rrr)r�r�r�r�r�locationrrs        r�_spec_from_moduler1�s4����������K���?�?�D�
�~�	��&�&�F���?�?���~����V�Y��5�F��(�.��F���"�"��*�%)�&�/�/�%:�"��d�6�2�D�"*�"2���9K�D���K�&@�#��K��G�
��
���	��	��
�������������*�%)�"�*�sW�B%�B5�C�C�*C)�%
B2�1B2�5
C�C�C�C�C&�%C&�)C8�7C8F��overridec���U(d[USS5cURUlU(d[USS5coURnUcYUR
bL[c[e[RnURU5nUR
Ul
X0lSUlX1lU(d[USS5cURUlXlU(d[USS5cUR
bUR
UlUR"(a]U(d[USS5cUR$UlU(d[USS5c!UR&bUR&UlU$U$![a GNcf=f![a N�f=f![a N�f=f![a N�f=f![a N�f=f![a N�f=f![a U$f=f)Nrr��__package__r/r�r-)rrrrr�rrr�NamespaceLoaderr.�_pathr�r�rr5r�r/r
r�rr-)r�r�r3r�r6s     r�_init_module_attrsr8�s���	�G�F�J��5�=�	�"�i�i�F�O��7�6�<��6�>������>��.�.�:�&�.�-�-�"5�"E�"E��(�0�0��A��#�>�>���$��#'���	� &���7�6�=�$�7�?�	�!%���F��
����7�6�:�t�4�<��*�*�6�
�"&�"A�"A�������w�v�z�4�8�@�
�"&�+�+����w�v�|�T�:�B��{�{�&��(,���F�%��M�6�M���	��	��8�	��	���	��	��
�
��
��"�
��
��"�
��
��&����M��s}�E>�&F�F�F/�=F?�5G�)G�>
F�F�
F�F�
F,�+F,�/
F<�;F<�?
G�G�
G�G�
G-�,G-c�
�Sn[URS5(aURRU5nO&[URS5(a[S5eUc[	UR
5n[
X5 U$)z+Create a module based on the provided spec.N�
create_module�exec_modulezBloaders that define exec_module() must also define create_module())rr�r:r�rrr8�r�r�s  r�module_from_specr=&ss���F��t�{�{�O�,�,����*�*�4�0��	����m�	,�	,��=�>�	>�
�~��T�Y�Y�'���t�$��Mrc��URcSOURnURcdURnUcSU<S3$[b<[	U[R
5(aSU<S[
UR5S3$SU<SU<S3$UR(aSU<SUR<S3$SUR<SURS3$)z&Return the repr to use for the module.r�r�r�z (namespace) from r�r�r�)	rr�r�r�
isinstancer6r.r7r
)r�rr�s   rr�r�7s����)�)�#�3����D��{�{�������>��d�X�Q�'�'��+��6�#6�#F�#F�G�G��d�X�%7��V�\�\�8J�7K�1�M�M��d�X�R��z��4�4�����d�X�V�D�K�K�?�!�<�<��d�i�i�]�"�T�[�[�M��<�<rc��URn[U5 [RR	U5ULaSU<S3n[X2S9eURc,URc[SURS9e[XSS9 O�[XSS9 [URS5(dN[UR5S	3n[RU[5 URRU5 OURRU5 [RR!UR5nU[RUR'SSS5 U$![RR!UR5nU[RUR'f=f!,(df   U$=f)
zFExecute the spec's specified module in an existing module's namespace.zmodule z not in sys.modulesrN�missing loaderTr2r;�7.exec_module() not found; falling back to load_module())rr�rr�rWr�r�rr8rr	r�r��
ImportWarning�load_moduler;rN)r�r�rr�s    rr�r�MsS���9�9�D�	�D�	!��;�;�?�?�4� ��.��D�8�#6�7�C��c�-�-�	,��{�{�"��2�2�:�%�&6�T�Y�Y�G�G�"�4�$�?�"�4�$�?��t�{�{�M�:�:�*�4�;�;�7�8�9;�;�C��N�N�3�
�6��K�K�+�+�D�1��K�K�+�+�F�3��[�[�_�_�T�Y�Y�/�F�%+�C�K�K��	�	�"�/
"�0�M���[�[�_�_�T�Y�Y�/�F�%+�C�K�K��	�	�"��/
"�	!�0�M�s&�3F/�CE$�AF/�$AF,�,F/�/
F>c�*�URRUR5 [RRUR5nU[RUR'[
USS5cURUl[
USS5cFURUl
[US5(d#URRS5SUl
[
USS5c	Xl
U$U$! UR[R;aF[RRUR5nU[RUR'e=f![a N�f=f![a N�f=f![a U$f=f)Nr�r5r/rr�r�)r�rDrrr�rNrr�rrr5rrr�r<s  r�_load_backward_compatiblerFksZ���������	�	�*��[�[�_�_�T�Y�Y�
'�F�#�C�K�K��	�	���v�|�T�*�2�	� $���F���v�}�d�+�3�	�"(���F���6�:�.�.�%)�Y�Y�%9�%9�#�%>�q�%A��"��v�z�4�(�0�	�"�O��M�6�M��;��9�9����#��[�[�_�_�T�Y�Y�/�F�%+�C�K�K��	�	�"�
���	��	���	��	��
�	���M�	�sC�%C:�<E$�AE4�0F�:A'E!�$
E1�0E1�4
F�F�
F�Fc� �URbX[URS5(d=[UR5S3n[R	U[
5 [
U5$[U5nSUlU[RUR'URc"URc[SURS9eOURRU5 [RR!UR5nU[RUR'[#SURUR5 SUlU$! [RUR	e![a ef=f=f!SUlf=f)Nr;rBTrArzimport {!r} # {!r}F)r�rr	r�r�rCrFr=�
_initializingrr�rrr�r;rTrNr�)r�r�r�s   r�_load_unlockedrI�sP���{�{���t�{�{�M�2�2�"�4�;�;�/�0�14�4�C��N�N�3�
�.�,�T�2�2�
�d�
#�F�
�D��#�!'����D�I�I��	��{�{�"��2�2�:�%�&6�T�Y�Y�G�G�;����'�'��/���������+��!'����D�I�I���-�t�y�y�$�+�+�F�"����M��!	�
��K�K��	�	�*�
���
���
��#���sU�9F�.E�F�E�!A(F�F�E1�0F�1
E>�;F�=E>�>F�F�	F
c�x�[UR5 [U5sSSS5 $!,(df   g=f)z�Return a new module object, loaded by the spec's loader.

The module is not added to its parent.

If a module is already in sys.modules, that existing module gets
clobbered.

N)r�rrI�r�s rr�r��s$��
�D�I�I�	&��d�#�
'�	&�	&�s�+�
9c��\rSrSrSrSr\SSj5r\S5r	\S5r
\\S55r\\S	55r
\\S
55r\"\5rSrg)
�BuiltinImporteri�z�Meta path import for built-in modules.

All methods are either class or static methods to avoid the need to
instantiate the class.

zbuilt-inNc�`�[RU5(a[XURS9$g)Nr,)r��
is_builtinr�r')�clsr��path�targets    r�	find_spec�BuiltinImporter.find_spec�s%���?�?�8�$�$�#�H�#�+�+�F�F�rc��UR[R;a"[UR<S3URS9e[	[
RU5$)zCreate a built-in moduler�r)rrr�r�r�r��create_builtinrKs rr:�BuiltinImporter.create_module�sK���9�9�C�4�4�4�����
�-F�G�#'�9�9�.�
.�(��)<�)<�d�C�Crc�8�[[RU5 g)zExec a built-in moduleN)r�r��exec_builtin)r�s rr;�BuiltinImporter.exec_module�s��	"�$�"3�"3�V�<rc��g)z9Return None as built-in modules do not have code objects.Nr!�rPr�s  r�get_code�BuiltinImporter.get_code����rc��g)z8Return None as built-in modules do not have source code.Nr!r\s  r�
get_source�BuiltinImporter.get_source�r_rc��g)z4Return False as built-in modules are never packages.Fr!r\s  rr��BuiltinImporter.is_package�s��rr!�NN)rrrr"r
r'�classmethodrSrAr:r;r�r]rar�r�rDr$r!rrrMrM�s�����G������D��D��=��=��������������������/�0�KrrMc���\rSrSrSrSr\S5r\SSj5r\SSj5r	\
S5r\
S	5r\S
5r
\\S55r\\S55r\\S
55rSrg)�FrozenImporteri�z�Meta path import for frozen modules.

All methods are either class or static methods to avoid the need to
instantiate the class.

�frozenc���URnURnUGcs[U5RSS5nU(dS5e[	US5n[
R
UR5U:XdU5eURXBRU5upg[[R5"UUS9UlURnU(a1U/:XdU5eU(aURRSU5 O
UbU5e[	US5(aUR5eU(aXalU(aLUR"U:wa<UR"/:XdUR"5eUR"R%U5 GO�URnUSLn['[U55SS/:XdU5eUR((axURUR(URU5up�UR*U	:XdUR*U	45eU(aX�/:XdX�45eOKX�(a/OS:XdU5eO5Sn	UR*bUR*5eX�(a/OS:XdU5eU	(a7[	US5(deURU	:XdURU	45eO"[	US5(aUR5eU(a7[	US5(deUR"U:XdUR"U45eO"[	US5(aUR"5eUR,(aeg![ a GN%f=f)	N�__origname__z'see PyImport_ImportFrozenModuleObject()r/�r��orignamer�r�r�rm)r�r��varsrNrr��is_frozen_packager�_resolve_filenamerrr�implementationr�insertr�rr/�extend�sortedrmr�r
)
rPr�r��staterm�ispkgr��pkgdirr/r�s
          r�_fix_up_module�FrozenImporter._fix_up_module
s�������!�!���=��F�|�'�'���=�H��F�F�F�8��F�J�/�E��)�)�&�/�/�:�e�C�J�U�J�C�"�4�4�X�y�y�%�P��H� $�S�%7�%7� 8�!�!�!�D���6�6�H���2�~�/�x�/�~���3�3�:�:�1�f�E���'�1��1�'��v�z�2�2�C�F�O�O�C�2���&.�O���?�?�h�.�!�?�?�b�0�A�&�/�/�A�0��O�O�*�*�8�4���6�6�H��D�(�E��$�u�+�&�:�z�*B�B�I�E�I�B��~�~��*�*�5�>�>�4�9�9�e�L����~�~��1�M�E�N�N�H�3M�M�1��#�x�/�C�(�1C�C�/�#�e���>�H��H�>����~�~�-�=�u�~�~�=�-��%�B�T�:�D�H�D�:���v�z�2�2�2�2����(�2�O�V�_�_�h�4O�O�2�"�6�:�6�6�G����G�6���v�z�2�2�2�2����(�2�O�V�_�_�h�4O�O�2�"�6�:�6�6�G����G�6��$�$�$�$�$��K&����s�5M�
M!� M!Nc��U(a[[SS5(dgURnX:wa*URS5(aUSSnU(dUS3nOS	nUR
S
U5nU(a [RUU3nUUS3nXv4$Sn[RUUS3nXv4$![a! [RS:XaSOS=o@lN�f=f)
N�_stdlib_dirre�win32�\�/�<r�z	.__init__Frz__init__.pyz.py)rr�_SEPr�platformr�rr{)rPr��aliasrv�sep�relfilerwr�s        rrp� FrozenImporter._resolve_filenameOs����w�s�M�4�@�@��	F��(�(�C����"�"�3�'�'�#�A�B�<���"*��9�5�H�����"�"�3��,������(���g�Y�7�F� ��#��k�2�H�����F��/�/�*�3�%��y��<�H�����#�	F�%(�\�\�W�%<�T�#�E�C�(�	F�s�B0�0(C�Cc�*�[[RU5nUcgUupVn[XURUS9nURXqU5up�[
[R5"U	US9Ul	U
(aURRSU
5 U$)Nr%rlr�)r�r��find_frozenr�r'rprrrqr�rrr)rPr�rQrR�info�_rvrmr�r�rws           rrS�FrozenImporter.find_spechs���(��)9�)9�8�D���<��"���(���'*�{�{�+0�2���0�0��U�K��� ��!3�!3�4���
�����+�+�2�2�1�f�=��rc��[UR5nURRnU(aX!lU$![
a U$f=f)zSet __file__, if able.)rrr�r�r�r)r�r�r�s   rr:�FrozenImporter.create_module�sR���T�Y�Y�'��	+��(�(�1�1�H��"*���
���	���
�	�s�<�
A
�	A
c��URnURn[[RU5n[X0R5 gr)r�rr�r��get_frozen_object�execr)r�r�r�codes    rr;�FrozenImporter.exec_module�s2�������y�y��(��)?�)?��F���T�?�?�#rc���[X5n[RU5nUceUupEnXbl[	U5RSS5 U(a/UlURU5 U$)zOLoad a frozen module.

This method is deprecated.  Use exec_module() instead.

Nr�)r�r�r�rkrnrNr/rx)rPr�r�r�r�rvrms       rrD�FrozenImporter.load_module�sk��#�3�1������)������!���(�&���V�����T�*�� �F�O����6�"��
rc�,�[RU5$)z-Return the code object for the frozen module.)r�r�r\s  rr]�FrozenImporter.get_code�����%�%�h�/�/rc��g)z6Return None as frozen modules do not have source code.Nr!r\s  rra�FrozenImporter.get_source�r_rc�,�[RU5$)z.Return True if the frozen module is a package.)r�ror\s  rr��FrozenImporter.is_package�r�rr!rre)rrrr"r
r'rfrxrprSrAr:r;rDr�r]rar�r$r!rrrhrh�s�����G��B%��B%�H� �� �0����:�
��
��$��$�����$��0���0���������0���0rrhc�$�\rSrSrSrSrSrSrg)�_ImportLockContexti�z$Context manager for the import lock.c�,�[R5 g)zAcquire the import lock.N)r�r�rKs rrf�_ImportLockContext.__enter__�������rc�,�[R5 g)z<Release the import lock regardless of any raised exceptions.N)r�r�)r1�exc_type�	exc_value�
exc_tracebacks    rrl�_ImportLockContext.__exit__�r�rr!N)rrrr"r
rfrlr$r!rrr�r��s��.��rr�c��URSUS-
5n[U5U:a[S5eUSnU(aUSU3$U$)z2Resolve a relative module name to an absolute one.rr�z2attempted relative import beyond top-level packager�)�rsplitr�r�)r�package�level�bits�bases     r�
_resolve_namer��sO���>�>�#�u�q�y�)�D�
�4�y�5���N�O�O���7�D�#�d�V�1�T�F��-��-rc�$�[RnUc[S5eU(d[R	S[
5 U[R;nUHzn[5 URnU"XU5nSSS5 WcM2U(d?U[R;a+[RUnURn	U	cUs $U	s $Us $ g![a SSS5 M�f=f!,(df   Ny=f![a Uss $f=f)zFind a module's spec.Nz5sys.meta_path is None, Python is likely shutting downzsys.meta_path is empty)r�	meta_pathr�r�r�rCr�r�rSrr�)
rrQrRr��	is_reload�finderrSr�r�r�s
          r�
_find_specr��s���
�
�I����*�+�	+�����/��?�
����#�I���
�
!�
5�"�,�,�	�!��V�4��
"��������!4����T�*��(�%���H� �'�#��'����3�6��/"�
��	"�
!�
��"�
!��&� � �K�	 �sB�"C-�$C�0	C-�6C>�
C*�C-�)C*�*C-�-
C;	�>D�Dc� �[U[5(d[S[U535eUS:a[	S5eUS:�a2[U[5(d[S5eU(d[S5eU(dUS:Xa[	S5egg)zVerify arguments are "sane".zmodule name must be str, not r�zlevel must be >= 0z__package__ not set to a stringz6attempted relative import with no known parent packagezEmpty module nameN)r?�str�	TypeErrorr�
ValueErrorr��rr�r�s   r�
_sanity_checkr�s����d�C� � ��7��T�
�|�D�E�E��q�y��-�.�.��q�y��'�3�'�'��=�>�>���(�)�
)��E�Q�J��,�-�-��4rzNo module named z{!r}c��SnURS5SnSnU(a�U[R;a[X5 U[R;a[RU$[RUnURnURnURS5Sn[X5nUc[[U<3US9eU(aURRW5 [U5n	U(aURR5 U(a#[RUn[UWU	5 U	$U	$![
a [U<SU<S3n[X`S9Sef=f!U(aURR5 ff=f![
a( SU<SW<3n[R!U["5 U	$f=f)	Nrr�z; z is not a packager�zCannot set an attribute on z for child module )rrr�r�r/r�_ERR_MSG_PREFIX�ModuleNotFoundErrorr�r�rr:rIrNrr�r�rC)
r�import_rQr�parent_spec�
parent_moduler��childr�r�s
          r�_find_and_load_unlockedr�s����D�
�_�_�S�
!�!�
$�F��K�
�����$�%�g�6��3�;�;���;�;�t�$�$����F�+�
�	@� �)�)�D�$�,�,������$�Q�'���d�!�D��|�!�_�$5�d�X�">�T�J�J��
�1�1�8�8��?�	<�#�D�)�F���5�5�9�9�;�
����F�+�
�	/��M�5�&�1��M�6�M��5�	@�$�%�d�X�R��z�9J�K�C�%�c�5�4�?�	@�� ��5�5�9�9�;����	/�/��z�9K�E�9�U�C��N�N�3�
�.��M�	/�s*�:E�*E*�1
F�%E'�*$F�.G�Gc��[RRU[5nU[Ld[	[	USS5SS5(aa[U5 [RRU[5nU[La[
X5sSSS5 $SSS5 [U5 UcSUS3n[X0S9eU$!,(df   N-=f)zFind and load the module.r�NrHFz
import of z halted; None in sys.modulesr)	rr�rW�_NEEDS_LOADINGrr�r�r�r�)rr�r�r�s    r�_find_and_loadr�Es���
�[�[�_�_�T�>�
2�F��.� ����
�D�1�?�E�J�J�
��
%��[�[�_�_�T�>�:�F���'�.�t�=�&�
%�'�&�	�D�!�
�~��t�f�$@�A��!�'�5�5��M�&�
%�s�8C�
Cc�^�[XU5 US:�a[XU5n[U[5$)aImport and return the module based on its name, the package the call is
being made from, and the level adjustment.

This function represents the greatest common denominator of functionality
between import_module and __import__. This includes setting __package__ if
the loader did not.

r�)r�r�r��_gcd_importr�s   rr�r�_s.���$��'��q�y��T�E�2���$��,�,r��	recursivec	�*�UH�n[U[5(d=U(aURS-nOSn[SUS[	U5R35eUS:Xa3U(d*[US5(a[
XRUSS9 M�M�M�[X5(aM�URS	U3n[X&5 M� U$![aBnURU:Xa,[RRU[5bS
nAGM	eS
nAff=f)z�Figure out what __import__ should return.

The import_ parameter is a callable which takes the name of module to
import. It is required to decouple the function from assuming importlib's
import implementation is desired.

z.__all__z
``from list''zItem in z must be str, not �*�__all__Tr�rN)r?r�rr�rr�_handle_fromlistr�r�r�rrr�rWr�)r��fromlistr�r��x�where�	from_name�excs        rr�r�ns������!�S�!�!�����*�4��'���h�u�g�.#�#'��7�#3�#3�"4�6�7�
7�
�#�X�����!;�!;� �����+/�1�"<�9���#�#�!�?�?�+�1�Q�C�0�I�	
�)�'�=��0�M��'�
��H�H�	�)��K�K�O�O�I�~�>�J����
�s�5C�
D�5D
�D
�
Dc�^�URS5nURS5nUb@Ub;XR:wa,[RSU<SUR<S3[SS9 U$UbUR$[RS[
SS9 US	nS
U;aUR
S5SnU$)
z�Calculate what __package__ should be.

__package__ is not guaranteed to be defined or could be set to None
to represent that its proper value is unknown.

r5r�z __package__ != __spec__.parent (z != r�)�
stacklevelzYcan't resolve package from __spec__ or __package__, falling back on __name__ and __path__rr/rr�)rWrr�r�r�rCr)�globalsr�r�s   r�_calc___package__r��s����k�k�-�(�G��;�;�z�"�D������;�;� 6��N�N��&�k��d�k�k�_�A�?�-�!�
�
=���	
�	��{�{�����?�$��	�	4��*�%���W�$��(�(��-�a�0�G��Nrc���US:Xa[U5nOUbUO0n[U5n[XU5nU(d�US:Xa[URS5S5$U(dU$[U5[URS5S5-
n[R
URS[UR5U-
$[US5(a[XS[5$U$)a�Import a module.

The 'globals' argument is used to infer where the import is occurring from
to handle relative imports. The 'locals' argument is ignored. The
'fromlist' argument specifies what should exist as attributes on the module
being imported (e.g. ``from module import <fromlist>``).  The 'level'
argument represents the package location to import from in a relative
import (e.g. ``from ..pkg import mod`` would have a 'level' of 2).

r�Nrr/)	r�r��	partitionr�rr�rrr�)	rr��localsr�r�r��globals_r��cut_offs	         r�
__import__r��s���
��z��T�"��%�1�7�r��#�H�-���T�E�2����A�:��t�~�~�c�2�1�5�6�6���M��$�i�#�d�n�n�S�&9�!�&<�"=�=�G��;�;�v���/L��F�O�O�0D�W�0L�M�N�N�	���	$�	$���+�>�>��
rc�d�[RU5nUc[SU-5e[U5$)Nzno built-in module named )rMrSr�rI)rr�s  r�_builtin_from_namer��s3���$�$�T�*�D��|��5��<�=�=��$��rc�N�UqUq[[5n[RR	5H�up4[XB5(dMU[R;a[nO#[RU5(a[nOMU[XE5n[Xd5 U[LdMvURU5 M� [R[nSHBnU[R;a[U5n	O[RUn	[XxU	5 MD [!5qg)z�Setup importlib by importing needed built-in modules and injecting them
into the global namespace.

As sys is needed for sys.modules access and _imp is needed to load built-in
modules, those two modules must be explicitly passed in.

)r�r�r;N)r�rrr��itemsr?r�rMr�rhr1r8rxrr�rr&rd)
�
sys_module�_imp_module�module_typerr�r�r��self_module�builtin_name�builtin_modules
          r�_setupr��s����D�
�C��s�)�K����)�)�+����f�*�*��s�/�/�/�(������%�%�'���$�V�4�D��t�,���'��%�%�f�-�,��+�+�h�'�K�<���s�{�{�*�/��=�N� �[�[��6�N���>�:�=�(�)�Lrc��[X5 [RR[5 [RR[
5 g)z0Install importers for builtin and frozen modulesN)r�rr�r:rMrh)r�r�s  r�_installr�s.��
�:�#��M�M����)��M�M����(rc�\�SSKnUqUR[R[
5 g)z9Install importers that require external filesystem accessr�N)�_frozen_importlib_externalrr�rr�r)r�s r�_install_external_importersr�
s$��&�4���'�'����H�(=�>rrerr�)NNr!r�):r
r	r�r�r;rrrr.rr&r�rdr]r�rorwr}r�r�r�r�r�r�r�r�r�r�r�r�r1r8r=r�r�rFrIr�rMrhr�r�r�r�r��_ERR_MSGr��objectr�r�r�r�r�r�r�r�r�r�r!rr�<module>r�s����,&����	�����&��!�D�!�I�I�\�
���*�*�,	�\�	�
(�V`;�`;�F@�@�*�� "�J�"�01�6�%�$��&6�*a)�a)�H.2�d�J�:'�T27�F�R�"=�,�<"�H)�Z
$�11�11�h~0�~0�F
�
�.�*�Z
.� %���V�#��'�T����4-�>C�"�J�6"�J �%*�P)�?r

?>