
    8f	                        d dl mZ d dlmZ d dlmZ d dlmZmZm	Z	m
Z
 d dlmZ ddlmZmZmZmZ ddlmZmZ dd	lmZ  G d
 dee         Zy)    )annotations)Sequence)Path)AnyGenericTextIOoverload)InputStream   )WizardInterpreterContextWizardInterpreterContextFactoryWizardTerminationContextWizardTopLevelContext)ContextStateWizardInterpreterState)make_top_level_contextc                      e Zd ZU 	 ded<   	 	 d	dZ	 	 	 	 	 	 d
dZe	 	 	 	 	 	 dd       Ze	 	 	 	 dd       Z	 d	 	 	 	 	 ddZy)WizardInterpreter-WizardInterpreterContextFactory[ContextState]_factoryc                    	 || _         y N)r   )selffactorys     {C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\MO2\plugins\installer_wizard\lib\wizard\interpreter.py__init__zWizardInterpreter.__init__   s    	      c                    	 t        |      }t        ||t        fz         s%|j                         }t        ||t        fz         s%|S r   )tuple
isinstancer   exec)r   contexttargetsstargetss       r   
exec_untilzWizardInterpreter.exec_until%   sL    
	 >Wh2J1L&LMllnG Wh2J1L&LM r   c                     y r    r   scriptstates      r   r   z(WizardInterpreter.make_top_level_context>   s     /2r   c                     y r   r'   )r   r)   s     r   r   z(WizardInterpreter.make_top_level_contextC   s     9<r   Nc                0    t        || j                  |      S r   )r   r   r(   s      r   r   z(WizardInterpreter.make_top_level_contextH   s     &fdmmUCCr   )r   r   )r"   +WizardInterpreterContext[ContextState, Any]r#   z;Sequence[type[WizardInterpreterContext[ContextState, Any]]]returnr-   )r)   !InputStream | Path | TextIO | strr*   r   r.   z#WizardTopLevelContext[ContextState])r)   r/   r.   z-WizardTopLevelContext[WizardInterpreterState]r   )r)   r/   r*   zContextState | Noner.   zSWizardTopLevelContext[ContextState] | WizardTopLevelContext[WizardInterpreterState])__name__
__module____qualname____annotations__r   r%   r	   r   r'   r   r   r   r      s    
 <; > < M 
5	2 272@L2	,2 2 <7<	6< < &*D1D #D
	8Dr   r   N)
__future__r   collections.abcr   pathlibr   typingr   r   r   r	   antlr4r
   contextsr   r   r   r   r*   r   r   utilsr   r   r'   r   r   <module>r;      s<    " $  1 1   8 )=D- =Dr   