ó
    µ'Ôi  ã                   ó@   • S SK r SSKJr   " S S\\5      rSSS.S jrg)	é    Né   )ÚAutocommandErrorc                   ó   • \ rS rSrSrg)ÚAutomainRequiresModuleErroré   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    Úf/var/www/surfInsights/venv3-11/lib/python3.13/site-packages/setuptools/_vendor/autocommand/automain.pyr   r      s   † Úr   r   r   )ÚargsÚkwargsc                ót   ^^• [        U 5      (       a  [        U 5      eU S:X  d  U SL a  Tc  0 mUU4S jnU$ S $ )ay  
This decorator automatically invokes a function if the module is being run
as the "__main__" module. Optionally, provide args or kwargs with which to
call the function. If `module` is "__main__", the function is called, and
the program is `sys.exit`ed with the return value. You can also pass `True`
to cause the function to be called unconditionally. If the function is not
called, it is returned unchanged by the decorator.

Usage:

@automain(__name__)  # Pass __name__ to check __name__=="__main__"
def main():
    ...

If __name__ is "__main__" here, the main function is called, and then
sys.exit called with the return value.
Ú__main__Tc                 ó>   >• [         R                  " U " T0 TD65        g ©N)ÚsysÚexit)Úmainr   r   s    €€r   Úautomain_decoratorÚ$automain.<locals>.automain_decorator6   s   ø€ Ü�HŠH‘T˜4Ð* 6Ñ*Õ+r   c                 ó   • U $ r   r   )r   s    r   Ú<lambda>Úautomain.<locals>.<lambda>;   s   € ™Dr   )Úcallabler   )Úmoduler   r   r   s    `` r   Úautomainr       sF   ù€ ô( �×ÑÜ)¨&Ó1Ð1à�Ó˜v¨š~Ø‰>ØˆFö	,ð "Ð!á Ð r   )r   Úerrorsr   Ú	TypeErrorr   r    r   r   r   Ú<module>r#      s(   ðó$ Ý $ô	Ð"2°Iô 	ð  ¨ö !!r   