
    5h                     d   S SK rS SKJr  \R                  (       a
  S SKrSSKJr  \" 5       r	\R                  SSS jj5       r\R                  SS\S\R                  S   4S	 jj5       rSS\S\R                  S   4S
 jjrSS jrSS jrSS\R                  \   S\R                  \   4S jjrg)    N)local   )Contextsilentreturnr   c                     g N r   s    X/var/www/html/cementerio_25MayoBackend/env/lib/python3.13/site-packages/click/globals.pyget_current_contextr      s    KN    c                     g r	   r
   r   s    r   r   r      s    FIr   c                      [         R                  " S[        R                  S   5      $ ! [        [
        4 a  nU (       d  [        S5      Ue SnAgSnAff = f)aZ  Returns the current click context.  This can be used as a way to
access the current context object from anywhere.  This is a more implicit
alternative to the :func:`pass_context` decorator.  This function is
primarily useful for helpers such as :func:`echo` which might be
interested in changing its behavior based on the current context.

To push the current context, :meth:`Context.scope` can be used.

.. versionadded:: 5.0

:param silent: if set to `True` the return value is `None` if no context
               is available.  The default behavior is to raise a
               :exc:`RuntimeError`.
r   z!There is no active click context.N)tcast_localstackAttributeError
IndexErrorRuntimeError)r   es     r   r   r      sT    Kvvib!122J' KBCJ  	Ks   '* AAAc                 b    [         R                  R                  S/ 5      R                  U 5        g)z*Pushes a new context to the current stack.r   N)r   __dict__
setdefaultappend)ctxs    r   push_contextr   ,   s!    
OOw+2237r   c                  @    [         R                  R                  5         g)z%Removes the top level from the stack.N)r   r   popr
   r   r   pop_contextr"   1   s    
LLr   colorc                 >    U b  U $ [        SS9nUb  UR                  $ g)zInternal helper to get the default value of the color flag.  If a
value is passed it's returned unchanged, otherwise it's looked up from
the current context.
NTr   )r   r#   )r#   r   s     r   resolve_color_defaultr%   6   s+    
 
T
*C
yyr   )F)r   zte.Literal[False]r   r   ).)r   r   r   N)r   Nr	   )typingr   	threadingr   TYPE_CHECKINGtyping_extensionstecorer   r   overloadr   boolOptionalr   r"   r%   r
   r   r   <module>r/      s     ??"	  N  N  I Iqzz)/D I  I I1F 08

D!1 QZZ=M r   