ó
    ¯i¸%  ã                   ó¶   • S SK Jr  S SKJrJr  S SKJr  \R                  S 5       r\R                  S 5       r	\R                  S 5       r
S rS rS	 rS
 rS rg)é    )Ú	is_darwin)ÚloggerÚget_hook_config)Úisolatedc                  óz   • SSK n [        R                  U R                  S5      n[	        U[
        5      (       a  U$ g)zÿ
Return the configured default matplotlib backend name, if available as matplotlib.rcParams['backend'] (or overridden
by MPLBACKEND environment variable. If the value of matplotlib.rcParams['backend'] corresponds to the auto-sentinel
object, returns None
r   NÚbackend)Ú
matplotlibÚdictÚ__getitem__ÚrcParamsÚ
isinstanceÚstr)r	   Úvals     ÚWC:\des-py\RoboSAPF\venv\Lib\site-packages\PyInstaller/hooks/hook-matplotlib.backends.pyÚ_get_configured_default_backendr      s6   € ó ô ×
Ñ
˜:×.Ñ.°	Ó
:€CÜ�#”s×ÑØˆ
Øó    c                  ó6   • SSK n U R                  R                  $ )z9
Returns the names of all available matplotlib backends.
r   N)r	   ÚrcsetupÚall_backends)r	   s    r   Ú_list_available_mpl_backendsr   !   s   € ó
 Ø×Ñ×*Ñ*Ð*r   c                 ó   • [        U 5        g)zm
Attempts to import the given module name (matplotlib backend module).

Exceptions are propagated to caller.
N)Ú
__import__)Úmodule_names    r   Ú_check_mpl_backend_importabler   *   s   € ô ˆ{Õr   c                 ó  • SSK JnJn  1 U" S5      kU" S5      kn/ nU" U 5      R                  5        HR  nU HI  u  pg[	        U5      S;  d  [        US   [        5      (       d  M.  Xc;   d  M5  UR                  US   5        MK     MT     U$ )z´
Recursively scan the bytecode for occurrences of matplotlib.use() or mpl.use() calls with const arguments, and
collect those arguments into list of used matplotlib backend names.
r   )Ú	any_aliasÚrecursive_function_callszmatplotlib.usezmpl.use>   é   é   )ÚPyInstaller.depend.bytecoder   r   ÚvaluesÚlenr   r   Úappend)Úcor   r   Úmpl_use_namesÚbackendsÚcallsÚnameÚargss           r   Ú(_recursive_scan_code_objects_for_mpl_user*   5   s“   € ÷ PðÙ	Ð#Ó	$ðá	�9Ó	ð€Mð
 €HÙ)¨"Ó-×4Ñ4Ö6ˆÛ‰JˆDô �4‹y Ó&¬j¸¸a¹Ä#×.FÑ.FÙØÕ$Ø—‘  Q¡Ö(ó  ñ 7ð €Or   c                 ó^   • U R                  S5      (       a  U SS $ SU R                  5        3$ )z|
Converts matplotlib backend name to its corresponding module name.

Equivalent to matplotlib.cbook._backend_module_name().
z	module://é	   Nzmatplotlib.backends.backend_)Ú
startswithÚlower)r(   s    r   Ú_backend_module_namer/   P   s1   € ð ‡��{×#Ñ#Ø�A�BˆxˆØ)¨$¯*©*«,¨Ð8Ð8r   c                 ó˜  • U R                   R                  nUR                  S5      n/ nUR                  5        H4  u  pE[	        U5      nU(       d  M  [
        R                  " SXF5        X6-  nM6     [        [        U5      5      nU(       a  Sn[
        R                  " SX75        U$ [        5       nU(       a  [
        R                  " SU5        U/$ / SQn	[        (       a  S/U	-   n	[
        R                  " SU	5        U	 H  n
 [        U
5      n[        U5        U
/s  $    [
        R                  " S	5        S
/$ ! [         a     MG  f = f)z§
Returns a list of automatically-discovered matplotlib backends in use, or the name of the default matplotlib
backend. Implements the 'auto' backend selection method.
r	   zMDiscovered Matplotlib backend(s) via `matplotlib.use()` call in module %r: %rzDhttps://pyinstaller.org/en/stable/hooks-config.html#matplotlib-hooksa  The following Matplotlib backends were discovered by scanning for `matplotlib.use()` calls: %r. If your backend of choice is not in this list, either add a `matplotlib.use()` call to your code, or configure the backend collection via hook options (see: %s).z/Found configured default matplotlib backend: %s)ÚQtAggÚQt5AggÚGtk4AggÚGtk3AggÚTkAggÚWxAggÚMacOSXzTTrying determine the default backend as first importable candidate from the list: %rzONone of the backend candidates could be imported; falling back to headless Agg!ÚAgg)ÚanalysisÚgraphÚget_code_usingÚitemsr*   r   ÚinfoÚsortedÚsetr   r   r/   r   Ú	Exception)Úhook_apiÚmodulegraphÚmpl_code_objsÚused_backendsr(   r$   Úco_backendsÚHOOK_CONFIG_DOCSÚdefault_backendÚ
candidatesÚ	candidater   s               r   Ú_autodetect_used_backendsrJ   [   sD  € ð ×#Ñ#×)Ñ)€KØ×.Ñ.¨|Ó<€MØ€MØ!×'Ñ'Ö)‰ˆÜ>¸rÓBˆßˆ;Ü�KŠKØ_Ðaeôð Ñ(ŠMñ *ô œ3˜}Ó-Ó.€MæØaÐÜ�ŠðAàBOô	
ð
 Ðô 6Ó7€OÞÜ�ŠÐEÀÔWØÐ Ð ò M€Jß‚yØ�Z *Ñ,ˆ
Ü
‡K‚KÐfÐhrÔsãˆ	ð	Ü.¨yÓ9ˆKÜ)¨+Ô6ð ˆ{Òñ  ô ‡K‚KÐaÔbØˆ7€Nøô ó 	Úð	ús   ÄD;Ä;
E	ÅE	c                 ó”  • [        5       n[        R                  " SU5        / nSS1n[        (       d  USS1-  nU H`  nXC;   a  [        R                  " SU5        M!   [	        U5      n[        U5        [        R                  " SU5        UR                  U5        Mb     U$ ! [         a    [        R                  " SU5         MŠ  f = f)	zf
Returns a list of all importable matplotlib backends. Implements the 'all' backend selection method.
z%All available matplotlib backends: %rÚQt4AggÚQt4CairoÚCocoaAggr7   z!  Matplotlib backend %r: excludedz4  Matplotlib backend %r: ignored due to import errorz  Matplotlib backend %r: added)r   r   r=   r   r/   r   r@   r#   )rA   Úbackend_namesÚimportable_backendsÚexclude_backendsÚbackend_namer   s         r   Ú _collect_all_importable_backendsrS   ž   sÍ   € ô
 1Ó2€MÜ
‡K‚KÐ7¸ÔGð Ðð ! *Ð-Ð÷
 Š9Ø˜Z¨Ð2Ñ2Ðó &ˆØÓ+Ü�KŠKÐ;¸\ÔJÙð	Ü.¨|Ó<ˆKÜ)¨+Ô6ô 	�ŠÐ4°lÔCØ×"Ñ" <Ö0ñ &ð  Ðøô ó 	ä�KŠKÐNÐP\Ô]Úð	ús   ÁB"Â"!CÃCc                 ó  • [        U SS5      nUc  SnUS:X  a"  [        R                  " S5        [        U 5      nOuUS:X  a"  [        R                  " S5        [	        U 5      nOM[        R                  " S5        [        U[        5      (       a  U/nO[        U[        5      (       d   S5       eUn[        [        U5      5      n[        R                  " S	U5        U Vs/ s H  n[        U5      PM     nnU R                  " U6   g s  snf )
Nr	   r&   ÚautozIMatplotlib backend selection method: automatic discovery of used backendsÚallzJMatplotlib backend selection method: collection of all importable backendsz:Matplotlib backend selection method: user-provided name(s)z@User-provided backend name(s) must be either a string or a list!z Selected matplotlib backends: %r)r   r   r=   rJ   rS   r   r   Úlistr>   r?   r/   Úadd_imports)rA   Úbackends_methodrO   r   Úmodule_namess        r   Úhookr[   Æ   sí   € ä% h°¸jÓI€OØÑØ ˆð ˜&Ó Ü�ŠÐ_Ô`Ü1°(Ó;‰Ø	˜EÓ	!Ü�ŠÐ`ÔaÜ8¸ÓB‰ä�ŠÐPÔQÜ�o¤s×+Ñ+Ø,Ð-‰Mä˜o¬t×4Ñ4ÐxÐ6xÓxÐ4Ø+ˆMô œ3˜}Ó-Ó.€Mä
‡K‚KÐ2°MÔBñ BOÓOÂ°gÔ(¨Ö1Á€LÐOØ×Ò˜,Ò'ùò Ps   ÃDN)ÚPyInstaller.compatr   ÚPyInstaller.utils.hooksr   r   ÚPyInstallerr   Údecorater   r   r   r*   r/   rJ   rS   r[   © r   r   Ú<module>ra      sz   ðõ )ß ;Ý  ð 
×Ññó ðð 
×Ññ+ó ð+ð 
×Ññó ðòò69ò@òF%óP(r   