eSrSrSrSrSrSqSrSr"SS\5r "SS5r 0r Sq "S S 5r "S S \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. cfUR$![a [U5Rs$f=fN) __qualname__AttributeErrortype)objs :/opt/imh/python3.13/lib/python3.13/importlib/_bootstrap.py _object_namer s2& &Cy%%%&s 00Nc SH*n[X5(dM[X[X55 M, URR UR5 g)z/Simple substitute for functools.update_wrapper.) __module____name__r__doc__N)hasattrsetattrgetattr__dict__update)newoldreplaces r_wrapr(s?H 3 C'#"7 8ILL %c,[[5"U5$r)rsysnames r _new_moduler0s 9T?rc\rSrSrSrSrg)_List7) __weakref__N)r r r__firstlineno__ __slots____static_attributes__r!rrrr7s Irrc:\rSrSrSrSrSrS SjrS SjrSr g) _WeakValueDictionary>c^[RU5m"U4SjS[R5nXlUR5 g)NcP>^\rSrSrSrU4SjrU4Sjr\U4Sj5rSr U=r $)z/_WeakValueDictionary.__init__..KeyedRefF)keycH>[TU]XUR5nX#lU$r)super__new__remover+)robr+self __class__s rr.7_WeakValueDictionary.__init__..KeyedRef.__new__Js!wt= rc8>[TU]XR5 gr)r-__init__r/)r1r0r+r2s rr58_WeakValueDictionary.__init__..KeyedRef.__init__Os [[1rc>T"5nUbbUR(a&URRUR5 g[R UR UR5 ggr) _iterating_pending_removalsappendr+_weakref_remove_dead_weakrefdata)wrr1 self_weakrefs rr/6_WeakValueDictionary.__init__..KeyedRef.removeRsN$~#..55bff= 55diiH $r) r r rr"r#r.r5 staticmethodr/r$ __classcell__)r2r?s@rKeyedRef/_WeakValueDictionary.__init__..KeyedRefFs(I   2 I IrrC)r;ref _KeyedRefclear)r1rCr?s @rr5_WeakValueDictionary.__init__@s3||D)  Ix|| I." rc>/Ul[5Ul0Ulgr)r9setr8r=r1s rrG_WeakValueDictionary.clear`s!#% rcURRnURnU"5n[R X#5 M![a gf=fr)r9popr= IndexErrorr;r<)r1rNdr+s r_commit_removals%_WeakValueDictionary._commit_removalsesT$$(( II e  ) )! 1   sA AANcUR(aUR5 URUnU"5=ncU$U$![a Us$f=fr)r9rQr=KeyError)r1r+defaultr>os rget_WeakValueDictionary.getosW  ! !  ! ! # 3BT "  N sA AAcURU"5nUcAUR(aUR5 UR X!5URU'U$U$![a SnNTf=fr)r=rTr9rQrF)r1r+rUrVs r setdefault_WeakValueDictionary.setdefault|si  # A 9%%%%'!^^G9DIIcNNH A sA A+*A+)rFr8r9r=r) r r rr"r5rGrQrWrZr$r!rrr&r&>s@ 2  rr&c*\rSrSrSrSrSrSrSrg)_BlockingOnManagerz;A context manager responsible to updating ``_blocking_on``.cXlX lgr) thread_idlock)r1r`ras rr5_BlockingOnManager.__init__s " rc[RUR[55UlURR UR 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'11$..%'J tyy)rcNURRUR5 g)z6Remove self.lock from this thread's _blocking_on list.N)rer/rar1argskwargss r__exit___BlockingOnManager.__exit__s tyy)r)rerar`N) r r rr"r r5rfrlr$r!rrr]r]sE **rr]c\rSrSrSrg)_DeadlockErrorr!N)r r rr"r$r!rrrorosrrocX;agUHbnURU5=n(dMXA;a gURU5 UVs/sHofRPM nn[XUUS9(dMb g gs snf)aCheck 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)rWaddowner_has_deadlocked) target_idrrrsrttidcandidate_blocking_onraedgess rrwrws !)4)==%=  _  S)>>(=(=> 9u' ) )!$  ?sA0c6\rSrSrSrSrSrSrSrSr Sr g ) _ModuleLockzA 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) _threadRLockra allocate_lockwakeuprrvcountwaitersr1rs rr5_ModuleLock.__init__sC*MMO ++-     rcl[[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) rrr]rarrvr:rroracquirerreleaser1rys rr_ModuleLock.acquire0s !  *YYzzR'4::+<&)  ))$/# + *D((**,/DTH-MNN{{**511 ++D1Yb ##%  ##%uY + *s0D0AD1D0AD!>D0 D- )D00 D>c[R5nUR URU:wa [ S5e[ UR 5S:deUR R5 [ UR 5(dTSUl[ UR5S:a4URR5 URR5 SSS5 g!,(df  g=f)Ncannot release un-acquired lock) rrrarv RuntimeErrorlenrrNrrrrs rr_ModuleLock.releasets! YYzzS "#DEEtzz?Q& && JJNN tzz??! t||$q(LL$$&KK'')YYs B?C)) C7c:SUR<S[U53$)Nz _ModuleLock() at ridrKs r__repr___ModuleLock.__repr__sdii]%4z::r)rrarrvrrN) r r rr"r r5rrrrr$r!rrr}r}s# 6p B&H *;rr}c0\rSrSrSrSrSrSrSrSr g) _DummyModuleLockizRA simple _ModuleLock equivalent for Python builds without multi-threading support.cXlSUlgNr)rrrs rr5_DummyModuleLock.__init__s  rc.U=RS- slg)NT)rrKs rr_DummyModuleLock.acquires a rcdURS:Xa [S5eU=RS-slg)Nrrr)rrrKs rr_DummyModuleLock.releases& ::?@A A a rc:SUR<S[U53$)Nz_DummyModuleLock(rrrKs rr_DummyModuleLock.__repr__s"499-uRXJ??r)rrN) r r rr"r r5rrrr$r!rrrrs  @rrc&\rSrSrSrSrSrSrg)_ModuleLockManagericXlSUlgr)_name_lockrs rr5_ModuleLockManager.__init__s  rcl[UR5UlURR5 gr)_get_module_lockrrrrKs rrf_ModuleLockManager.__enter__s"%djj1  rc8URR5 gr)rrris rrl_ModuleLockManager.__exit__s r)rrN)r r rr"r5rfrlr$r!rrrrsrrcR[R5 [U"5nUc@[c [ U5nO [ U5nU4Sjn[RX5[U'[R5 U$![a SnNgf=f![R5 f=f)zGet 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 rcb_get_module_lock..cbsI!!#(%((.#5)$/%%'D%%'s A A ) rrrrTrrr}r;rEr)rrars rrrs    &(D <'-"4(! (#+,,t"8M$   K1 D , s)A>AB> B  B B  BB&c|[U5nUR5 UR5 g![a gf=f)zAcquires 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)rrrro)rras r_lock_unlock_modulers= D !D      s . ;;cU"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!)frjkwdss r_call_with_frames_removedrs 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)rflagsverbose startswithprintformatstderr)messagerrjs r_verbose_messagersK yyI%!!"233WnG gnnd##**5&rc,^U4Sjn[UT5 U$)z1Decorator to verify the named module is built-in.cX>U[R;a[U<S3US9eT"X5$)N is not a built-in moduler)rbuiltin_module_names ImportErrorr1fullnamefxns r_requires_builtin_wrapper4_requires_builtin.._requires_builtin_wrappers6 333 3 ,EF#+- -4""rr)rrs` r_requires_builtinrs#  #S) $$rc,^U4Sjn[UT5 U$)z/Decorator to verify the named module is frozen.cd>[RU5(d[U<S3US9eT"X5$)Nz is not a frozen moduler)r is_frozenrrs r_requires_frozen_wrapper2_requires_frozen.._requires_frozen_wrappers7~~h'' ,CD#+- -4""rr)rrs` r_requires_frozenrs#  "C( ##rcSn[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.15; use exec_module() instead) _warningswarnDeprecationWarningspec_from_loaderrmodules_exec_load)r1rmsgspecmodules r_load_module_shimr s]  4C NN3*+ H +D3;;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__? ()>)r_module_repr_from_specr r__file__)rloaderrrfilenames r _module_reprrs V\4 0Fvz400t0%d++6??$|155  5 >dXQ' 'dXRz4 4 5s( A A$ A! A!$B: BBc\rSrSrSrSSSS.SjrSrSr\S5r \ RS 5r \S 5r \S 5r \ 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/UlSUlSUlgNF)rrrrsubmodule_search_locations_uninitialized_submodules _set_fileattr_cached)r1rrrrrs rr5ModuleSpec.__init__Ws<   (0:"')+&# rcFSUR<3SUR<3/nURbURSUR<35 URbURSUR35 UR R SSRU5S3$)Nzname=zloader=zorigin=zsubmodule_search_locations=(z, ))rrrr:rr2r join)r1rjs rrModuleSpec.__repr__ds }%'@A ;; " KK'$++1 2  * * 6 KK5d6U6U5VW X..))*!DIIdO+>rcURnURUR:H=(a URUR:H=(an URUR:H=(aN X!R:H=(a9 URUR:H=(a UR UR :H$![ a [s$f=fr)rrrrcached has_locationrNotImplemented)r1othersmsls r__eq__ModuleSpec.__eq__ls.. "II+<KK5<</<KK5<</<<<<<KK5<</ < %%););;  =  "! ! "sB-B<<CCcURcOURbBUR(a1[c[e[R UR5UlUR$r)rrr_bootstrap_externalNotImplementedError _get_cachedrKs rr ModuleSpec.cachedxsJ << {{&4+=+=&.--2>>t{{K ||rcXlgr)r)r1r s rr rs rcpURcURRS5S$UR$)z The name of the module's parent..r)rr rpartitionrKs rparentModuleSpec.parents4  * * 299'',Q/ /99 rcUR$r)rrKs rr ModuleSpec.has_locations!!!rc$[U5Ulgr)boolr)r1values rr rs!%[r)rrrrrrrr)r r rr"r r5rrpropertyr setterrr r$r!rrrr2s"H04$  ? " ]]""))rrrrcLUc [USS5nU(dI[US5(a8[c[e[RnUcU"XS9$U(a/OSnU"XUS9$Uc&[US5(aUR U5nOSn[XX#S9$![ a SnNf=f) z5Return a module spec based on various loader methods.N_ORIGIN get_filename)r)rrrFr%)rrrrspec_from_file_locationrrr)rrrrr)searchs rrrs ~D1 gfn55  &% %"5"M"M  *4? ?!t&tBHJ J 6< ( ( "#..t4 J d6 II  "!  "s6B B#"B#cURnUbU$URnUc URnURnUcUb [ USS5nU(dUbUnUR n[UR5n[XAUS9nUcSOX%:HUl Xcl Xsl U$![a Nf=f![a Nf=f![a SnNf=f![a SnN|f=f![a SnNxf=f)Nr'rF) rrr rrr __cached__list__path__rrr r)rrrrrlocationr rs r_spec_from_moduler1s4  K  ??D ~ &&F??~  VY5F(.F""*%)&//%:" d6 2D"*"29KDK&@# KG          *%)"*sW B% B5 C C*C)% B21B25 CC CC C&%C&) C87C8FoverridecU(d[USS5cURUlU(d[USS5coURnUcYUR bL[ c[e[ RnURU5nUR Ul X0lSUl X1l U(d[USS5cURUlXlU(d[USS5cUR bUR UlUR"(a]U(d[USS5cUR$Ul U(d[USS5c!UR&bUR&UlU$U$![a GNcf=f![a Nf=f![a Nf=f![a Nf=f![a Nf=f![a Nf=f![a U$f=f)Nr r __package__r/rr-)rrr rrrrrNamespaceLoaderr._pathrrrr5rr/r rr r-)rrr3rr6s r_init_module_attrsr8s GFJ5= "iiFO76<6> >..:&.--"5"E"E(00A#>> $ #'  & 76=$7? !%F  76:t4<  * * 6 "&"A"A  wvz48@ "&++ wv|T:B{{&(, F% M6M   8           "  "  & Ms}E>&FFF/=F?5G)G> F  F  FF F,+F,/ F<;F<? G  G  GG 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())rrr:rrrr8rrs rmodule_from_specr=&ssFt{{O,,**40 m , ,=> > ~TYY't$ MrcURcSO URnURcdURnUcSU<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.rrrz (namespace) from rrr) rrrr isinstancer6r.r7r )rrrs rrr7s))#3D {{ >dXQ' '  +6#6#F#FGGdX%7V\\8J7K1M MdXRz4 4   dXVDKK?!< <dii]"T[[M< c*URRUR5 [RR UR5nU[RUR'[ USS5cURUl[ USS5cFURUl [US5(d#URRS5SUl [ USS5c Xl U$U$! UR[R;aF[RR UR5nU[RUR'e=f![a Nf=f![a Nf=f![a U$f=f)Nrr5r/rrr)rrDrrrrNrrrr r5rrrr<s r_load_backward_compatiblerFksZ  *[[__TYY 'F#CKK v|T*2  $ F v}d+3 "(F 6:..%)YY%9%9#%>q%A"vz4(0 "O M6M; 99 #[[__TYY/F%+CKK "           M sC%C:<E$AE40F:A'E!$ E10E14 FF FFc 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)rrr rrrCrFr= _initializingrrrrrr;rTrNr)rrrs r_load_unlockedrIsP {{t{{M22"4;;/0144C NN3 .,T2 2 d #F D#!' DII {{"22:%&6TYYGG; ''/+!' DII-tyy$++F" M!  KK *    #sU9F.EFE!A(FFE10F1 E>;F=E>>FF F cx[UR5 [U5sSSS5 $!,(df  g=f)zReturn 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)rrrIrs rrrs$ DII &d# ' & &s + 9c\rSrSrSrSr\S Sj5r\S5r \S5r \\ S55r \\ S 55r \\ S 55r\"\5rS rg) BuiltinImporterizMeta 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_builtinrr')clsrpathtargets r find_specBuiltinImporter.find_specs% ??8 $ $#H#++F FrcUR[R;a"[UR<S3URS9e[ [ R U5$)zCreate a built-in modulerr)rrrrrrcreate_builtinrKs rr:BuiltinImporter.create_modulesK 99C44 4 -FG#'99. .()<)>499eL~~1MENNH3MM1#x/C(1CC/#e>HH>~~-=u~~=-%BT:DHD:vz2222(2OV__h4OO2"6:66GG6vz2222(2OV__h4OO2"6:66GG6$$$$$K&s5M M! M!NcU(a[[SS5(dgURnX:wa*UR S5(aUSSnU(dUS3nOS nUR S U5nU(a [RUU3nUUS 3nXv4$Sn[RUUS 3nXv4$![a! [RS:XaSOS=o@lNf=f) N _stdlib_dirrewin32\/>#uqy )D 4y5NOO 7D#dV1TF --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 Mf=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_pathrrrrCrrrSrr) rrQrRr is_reloadfinderrSrrrs r _find_specrs I*+ + /?  #I  ! 5",, !V4 "  !4T* (%H '# ' 36/"  " ! " !&  K  sB"C-$ C0 C-6 C> C*C-)C**C-- C; > DDc [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 rzlevel must be >= 0z__package__ not set to a stringz6attempted relative import with no known parent packagezEmpty module nameN)r?str TypeErrorr ValueErrorrrrrs r _sanity_checkrs dC 7T |DEE qy-.. qy'3''=> >() ) EQJ,--4rzNo module named z{!r}cSnURS5SnSnU(aU[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) Nrrz; z is not a packagerzCannot set an attribute on z for child module )rrrrr/r_ERR_MSG_PREFIXModuleNotFoundErrorrrrr:rIrNrrrrC) rimport_rQr parent_spec parent_modulerchildrrs r_find_and_load_unlockedrs D __S !! $FK  $ %g 6 3;; ;;t$ $ F+  @ ))D$,, $Q' d !D |!_$5dX">TJJ   1 1 8 8 ? <#D)F5599;  F+  / M5& 1 M6M5 @$%dXRz9JKC%c54 ? @ 5599; //z9KE9UC NN3 . M /s*: E* E*1 F%E'*$F.GGc[RRU[5nU[Ld[ [ USS5SS5(aa[ U5 [RRU[5nU[La[ X5sSSS5 $SSS5 [U5 UcSUS3n[X0S9eU$!,(df  N-=f)zFind and load the module.rNrHFz import of z halted; None in sys.modulesr) rrrW_NEEDS_LOADINGrrrrr)rrrrs r_find_and_loadrEs [[__T> 2F.  D1?EJJ  %[[__T>:F'.t=& %'& D! ~tf$@A!'55 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)rrr _gcd_importrs rrr_s.$' qyTE2 $ ,,r recursivec *UHn[U[5(d=U(aURS-nOSn[SUS[ U5R35eUS:Xa3U(d*[ US5(a[ XRUSS9 MMM[ X5(aMURS U3n[X&5 M U$![aBnURU:Xa,[RRU[5bS nAGM eS nAff=f) zFigure 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__TrrN)r?rr rrr_handle_fromlistrrrrrrrWr)rfromlistrrxwhere from_nameexcs rrrns!S!!*4'hug.##'7#3#3"467 7 #X!;!; +/1"<9##!??+1QC0I )'=0 M' HH )KKOOI~>J s5 C D5D  D  Dc^URS5nURS5nUb@Ub;XR:wa,[RSU<SUR<S3[SS9 U$Ub UR$[RS[ SS9 US nS U;aUR S 5S nU$) zCalculate 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. r5rz __package__ != __spec__.parent (z != r) stacklevelzYcan't resolve package from __spec__ or __package__, falling back on __name__ and __path__r r/rr)rWrrrrrCr)globalsrrs r_calc___package__rskk-(G ;;z "D  ;; 6 NN&kdkk_A?-!  = {{?$  4*% W $((-a0G NrcUS:Xa [U5nOUbUO0n[U5n[XU5nU(dUS:Xa[URS5S5$U(dU$[U5[URS5S5- n[R UR S[UR 5U- $[US5(a[XS[5$U$)aImport 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 ``). 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). rNrr/) rr partitionrrrr rr) rrlocalsrrrglobals_rcut_offs r __import__rs zT"%17r#H-TE2  A:t~~c2156 6M$i#dnnS&9!&<"==G;;v/LFOO0DW0LMN N  $ $+>> rcd[RU5nUc[SU-5e[U5$)Nzno built-in module named )rMrSrrI)rrs r_builtin_from_namers3  $ $T *D |5<== $ rcNUqUq[[5n[RR 5Hup4[ XB5(dMU[R ;a[nO#[RU5(a[nOMU[XE5n[Xd5 U[LdMvURU5 M [R[nSHBnU[R;a [U5n O[RUn [XxU 5 MD [!5qg)zSetup 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. )rrr;N)rrrritemsr?rrMrrhr1r8rxr rrr&rd) sys_module _imp_module module_typerrrr self_module builtin_namebuiltin_modules r_setuprs D Cs)K ))+  f * *s///(%%'$V4D t ,'%%f-,++h'K< s{{ */ =N [[6N >: =()Lrc[X5 [RR[5 [RR[ 5 g)z0Install importers for builtin and frozen modulesN)rrrr:rMrh)rrs r_installrs. :#MM)MM(rc\SSKnUqUR[R[ 5 g)z9Install importers that require external filesystem accessrN)_frozen_importlib_externalrrrrr )rs r_install_external_importersr s$&4'' H(=>rrerr)NNr!r):r r rrr;rrrr.rr&rrdr]rrorwr}rrrrrrrrrrrrr1r8r=rrrFrIrrMrhrrrrr_ERR_MSGrobjectrrrrrrrrrrr!rrrs,&   &!D!II\  **, \ (V`;`;F@@*   "J"016%$&6*a)a)H.2dJ:'T27FR"=,<"H)Z $1111h~0~0F  .*Z . % V #'T4 ->C"J6"J %*P)?r