+
    :1j                      a  0 t $ R t^ RIHt ^ RIHtHt ^RIHtH	t	 ^RI
Ht ^RIHt ^RIHt ]'       d   ^ RIHtHt ^RIHt R	tR
]R&    RtR
]R&    ]R,          t R R ltR R ltR R lt]! RR7      R 4       tR# )zEBuilt-in conda standard environment exporter plugins (YAML and JSON).)annotations)TYPE_CHECKINGLiteral)jsonyaml)CondaValueError)hookimpl)CondaEnvironmentExporter)AnyFinal)Environmentenvironment-jsonr   ENVIRONMENT_JSON_FORMATenvironment-yamlENVIRONMENT_YAML_FORMATc                    V ^8  d   QhRRRR/# )   envr   returnzdict[str, Any] )formats   "Slib/python3.14/site-packages/conda/plugins/environment_exporters/environment_yml.py__annotate__r      s     0 0 0 0    c                   RV P                   /pV P                  '       d?   V P                  P                  '       d#   \        V P                  P                  4      VR&   . pV P                  '       d   V P                   FK  p\        V\        4      '       d   VP                  V4       K,  VP                  VP                  4       4       KM  	  V P                  '       d   VP                  V P                  4       M6V P                  '       d%   V P                   Uu. uF  qDP                  NK  	  ppW!R&   V P                  '       d   V P                  VR&   V P                  '       d   V P                  VR&   V# u upi )a  
Convert Environment to standard dictionary format used by YAML and JSON exporters.

This represents the common dictionary structure that both YAML and JSON
environment formats use.

:param env: Environment model to convert
:return: Dictionary with standard environment fields
namechannelsdependencies	variablesprefix)r   configr   listrequested_packages
isinstancedictappendconda_env_formexternal_packagesexplicit_packagesspecr   r   )r   env_dictr   itemexplicit_packages   &    r   to_dictr-      s;    !H zzzcjj)))#CJJ$7$78 L
**D$%%##D) ##D$7$7$9: +     5 56				 ;>:O:O
:O&6!!:O 	 
  ,^ }}} # zzz ZZO
s   E:c                    V ^8  d   QhRRRR/# r   r   r   r   strr   )r   s   "r   r   r   P        L L[ LS Lr   c                    \        V 4      p \        P                  ! V4      #   \        P                   d   p\	        RT 24      hRp?ii ; i)z"Export Environment to YAML format.z&Failed to export environment to YAML: N)r-   r   dumps	YAMLErrorr   r   r*   es   &  r   export_yamlr7   P   sI    s|HLzz(##>> L FqcJKKLs   # AAAc                    V ^8  d   QhRRRR/# r/   r   )r   s   "r   r   r   Y   r1   r   c                    \        V 4      p \        P                  ! V^RR7      #   \        \        \
        3 d   p\        RT 24      hRp?ii ; i)z"Export Environment to JSON format.F)indentensure_asciiz&Failed to export environment to JSON: N)r-   r   r3   	TypeError
ValueErrorRecursionErrorr   r5   s   &  r   export_jsonr?   Y   sP    s|HLzz(15AAz>2 L FqcJKKLs   & AA

AT)tryfirstc               #  v   "   \        \        RR\        RR7      x  \        \        RR\        RR7      x  R# 5i)	z:Register the built-in YAML and JSON environment exporters.z*YAML format with channels and dependencies)r   aliasesdefault_filenamesexportdescriptionz*JSON format with channels and dependenciesN)r   ymlzenv.yml)zenvironment.yamlzenvironment.yml)r   )zenvironment.json)r	   r   r7   r   r?   r   r   r   conda_environment_exportersrG   b   sA      #$*A@  #$/@ s   79N)r   r   )__conditional_annotations____doc__
__future__r   typingr   r   common.serializer   r   
exceptionsr   hookspecr   typesr	   r
   r   models.environmentr   r   __annotations__r   EnvironmentFormatTyper-   r7   r?   rG   )rH   s   @r   <module>rS      s}    L " ) * )  ,!1!3  3 .!3  3 . FG  '0fLL 
4 r   