
    ch                        % S SK Jr  S SKrS SKrS SKJrJr  S SKrS SK	J
r
JrJr  S SKJr  \(       a  S SKJr  SrS\S	'   \R&                   SS
S
SS.         SS jjj5       rg)    )annotationsN)TYPE_CHECKINGFinal)LayoutConfigWidthvalidate_width)add_script_run_ctx)Iteratorg      ?r   
DELAY_SECSFcontent)	show_time_cachewidthc          
   #    ^ ^^^^^^^	^
#    SSK Jm  SSKJm  [	        USS9  [        US9m	[        R                  " 5       m
Sm[        R                  " 5       m SUUUUUU	U
UU 4	S jjn[        [        R                  " [        U5      5      R                  5         Sv   T(       aR  T   S	mSSS5        S
[        T
R                  R                   5      ;   a  T
R#                  5         gT
R                  5         gg! , (       d  f       NT= f! T(       ad  T   S	mSSS5        O! , (       d  f       O= fS
[        T
R                  R                   5      ;   a  T
R#                  5         f T
R                  5         f f = f7f)a  Display a loading spinner while executing a block of code.

Parameters
----------
text : str
    The text to display next to the spinner. This defaults to
    ``"In progress..."``.

    The text can optionally contain GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional, supported
    Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown

show_time : bool
    Whether to show the elapsed time next to the spinner text. If this is
    ``False`` (default), no time is displayed. If this is ``True``,
    elapsed time is displayed with a precision of 0.1 seconds. The time
    format is not configurable.

width : "content", "stretch", or int
    The width of the spinner element. This can be one of the following:

    - ``"content"`` (default): The width of the element matches the
      width of its content, but doesn't exceed the width of the parent
      container.
    - ``"stretch"``: The width of the element matches the width of the
      parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Example
-------
>>> import streamlit as st
>>> import time
>>>
>>> with st.spinner("Wait for it...", show_time=True):
>>>     time.sleep(5)
>>> st.success("Done!")
>>> st.button("Rerun")

.. output ::
    https://doc-spinner.streamlit.app/
    height: 210px

r   )Spinner)
clean_textT)allow_content)r   c                    >	 T   T(       a3  T" 5       n T" T	5      U l         TU l        TU l        TR                  SU TS9  S S S 5        g ! , (       d  f       g = f)Nspinner)layout_config)textcacher   _enqueue)
spinner_protoSpinnerProtor   r   display_messagedisplay_message_lockr   messager   r   s
    mC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/elements/spinner.pyset_messagespinner.<locals>.set_messagem   sS    %"$0NM)3D)9M&*0M'.7M+$$!= %  &%%s   ;A
ANFchat_message)returnNone)streamlit.proto.Spinner_pb2r   streamlit.string_utilr   r   r   stempty	threadingLockr	   Timerr   startset
_active_dg_ancestor_block_types	container)r   r   r   r   r    r   r   r   r   r   r   s   ```  @@@@@@r   r   r   %   s    v D05- u-MhhjGO$>>+ 		 		 	9??:{CDJJL 	%"' &W%7%7%M%M!NN !!#  %%  %"' &%%W%7%7%M%M!NN !!#  sQ   AE9AD	 	E9'C8*AE98
DE9	
E6D	E6
D-)AE66E9)zIn progress...)
r   strr   boolr   r2   r   r   r#   zIterator[None])
__future__r   
contextlibr)   typingr   r   	streamlitr'   #streamlit.elements.lib.layout_utilsr   r   r   streamlit.runtime.scriptrunnerr	   collections.abcr
   r   __annotations__contextmanagerr        r   <module>r>      s    #   '  
 >( 
E   d  d 
d  d  	d 
 d  d  d r=   