
    lj
                    j   d dl mZ d dlZd dlZd dlmZ d dlmZmZ d dl	m
Z
 d dlmZ d dlmZ d dlmZ d d	lmZ d d
lmZ d dlmZ d$dZd$dZ ej        eedddde            ej        dddedd           ej        dddd edd!          ej        d%d"                                                Ze                    e           e                    e
           e                    e           e                    e           e                    e           ed#k    r e             dS dS )&    )annotationsN)__version__)cli_ctx_settingsconsole)cfg)checkhealth)DefaultGroup)init)plugins)render)EPILOGctxclick.Contextparamclick.Optionvalue
str | NonereturnNonec                H    |rt          j        dt           d           dS dS )a7  When giving a value by console, show an initial message with the Manim
    version before executing any other command: ``Manim Community vA.B.C``.

    Parameters
    ----------
    ctx
        The Click context.
    param
        A Click option.
    value
        A string value given by console, or None.
    zManim Community [green]vz	[/green]
N)r   printr   r   r   r   s      I/home/agentuser/manim-venv/lib/python3.11/site-packages/manim/__main__.pyshow_splashr      s;      JHHHHIIIIIJ J    c                X    t          | ||           |r|                                  dS dS )zSame as :func:`show_splash`, but also exit when giving a value by
    console.

    Parameters
    ----------
    ctx
        The Click context.
    param
        A Click option.
    value
        A string value given by console, or None.
    N)r   exitr   s      r   print_version_and_exitr   "   s9     UE""" 




 r   r   Tz-Animation engine for explanatory math videos.zSee 'manim <command>' to read about a specific subcommand.

Note: the subcommand 'manim render' is called if no other subcommand is specified. Run 'manim render --help' if you would like to know what the '-ql' or '-p' flags do, for example.

)context_settingsclsdefaultno_args_is_helphelpepilogz	--versionzShow version and exit.F)is_flagr#   callbackis_eagerexpose_valuez--show-splash/--hide-splashz.Print splash message with version information.)r%   r!   r#   r&   r'   r(   c                    dS )zaThe entry point for Manim.

    Parameters
    ----------
    ctx
        The Click context.
    N )r   s    r   mainr+   6   s
    J 	Dr   __main__)r   r   r   r   r   r   r   r   )r   r   r   r   )
__future__r   clickcloupmanimr   manim._configr   r   manim.cli.cfg.groupr   manim.cli.checkhealth.commandsr   manim.cli.default_groupr	   manim.cli.init.commandsr
   manim.cli.plugins.commandsr   manim.cli.render.commandsr   manim.constantsr   r   r   groupoptionpass_contextr+   add_command__name__r*   r   r   <module>r>      sY   " " " " " "         3 3 3 3 3 3 3 3 # # # # # # 6 6 6 6 6 6 0 0 0 0 0 0 ( ( ( ( ( ( . . . . . . , , , , , , " " " " " "J J J J"   ( %	88 068 8
 
 
 	!#   !	9   	 	 	   
 
:	                              zDFFFFF r   