Ë
    úmxi  ã                  óh   — 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 erd dlmZ  G d„ d«      Zy	)
é    )Úannotations)ÚTYPE_CHECKINGÚcast)ÚEmpty)ÚSkeleton)Úgather_metrics)ÚDeltaGeneratorc                  ó`   — e Zd Z ed«      dd„«       Z ed«      ddœd	d„«       Zedd„«       Zy)
Ú
EmptyMixinÚemptyc                óN   — t        «       }| j                  j                  d|«      S )uæ  Insert a single-element container.

        Inserts a container into your app that can be used to hold a single element.
        This allows you to, for example, remove elements at any point, or replace
        several elements at once (using a child multi-element container).

        To insert/replace/clear an element on the returned container, you can
        use ``with`` notation or just call methods directly on the returned object.
        See examples below.

        Examples
        --------
        Inside a ``with st.empty():`` block, each displayed element will
        replace the previous one.

        >>> import streamlit as st
        >>> import time
        >>>
        >>> with st.empty():
        ...     for seconds in range(10):
        ...         st.write(f"â�³ {seconds} seconds have passed")
        ...         time.sleep(1)
        ...     st.write(":material/check: 10 seconds over!")
        ... st.button("Rerun")

        .. output::
           https://doc-empty.streamlit.app/
           height: 220px

        You can use an ``st.empty`` to replace multiple elements in
        succession. Use ``st.container`` inside ``st.empty`` to display (and
        later replace) a group of elements.

        >>> import streamlit as st
        >>> import time
        >>>
        >>> st.button("Start over")
        >>>
        >>> placeholder = st.empty()
        >>> placeholder.markdown("Hello")
        >>> time.sleep(1)
        >>>
        >>> placeholder.progress(0, "Wait for it...")
        >>> time.sleep(1)
        >>> placeholder.progress(50, "Wait for it...")
        >>> time.sleep(1)
        >>> placeholder.progress(100, "Wait for it...")
        >>> time.sleep(1)
        >>>
        >>> with placeholder.container():
        ...     st.line_chart({"data": [1, 5, 2, 6]})
        ...     time.sleep(1)
        ...     st.markdown("3...")
        ...     time.sleep(1)
        ...     st.markdown("2...")
        ...     time.sleep(1)
        ...     st.markdown("1...")
        ...     time.sleep(1)
        >>>
        >>> placeholder.markdown("Poof!")
        >>> time.sleep(1)
        >>>
        >>> placeholder.empty()

        .. output::
           https://doc-empty-placeholder.streamlit.app/
           height: 600px

        r   )Ú
EmptyProtoÚdgÚ_enqueue)ÚselfÚempty_protos     úO/home/htdocs/ttos/venv/lib/python3.12/site-packages/streamlit/elements/empty.pyr   zEmptyMixin.empty   s#   € ôN !“lˆØ�w‰w×Ñ ¨Ó5Ð5ó    Ú	_skeletonN)Úheightc               ó`   — t        «       }|r||_        | j                  j                  d|«      S )a  Insert a single-element container which displays a "skeleton" placeholder.

        Inserts a container into your app that can be used to hold a single element.
        This allows you to, for example, remove elements at any point, or replace
        several elements at once (using a child multi-element container).

        To insert/replace/clear an element on the returned container, you can
        use ``with`` notation or just call methods directly on the returned object.
        See some of the examples below.

        This is an internal method and should not be used directly.

        Parameters
        ----------
        height: int or None
            Desired height of the skeleton expressed in pixels. If None, a
            default height is used.
        Úskeleton)ÚSkeletonProtor   r   r   )r   r   Úskeleton_protos      r   r   zEmptyMixin._skeletonf   s-   € ô( '›ˆÙØ$*ˆNÔ!Ø�w‰w×Ñ 
¨NÓ;Ð;r   c                ó   — t        d| «      S )zGet our DeltaGenerator.r	   )r   )r   s    r   r   zEmptyMixin.dg   s   € ô Ð$ dÓ+Ð+r   )Úreturnr	   )r   z
int | Noner   r	   )Ú__name__Ú
__module__Ú__qualname__r   r   r   Úpropertyr   © r   r   r   r      sL   „ Ù�GÓòG6ó ðG6ñR �KÓ Ø04ô <ó !ð<ð0 ò,ó ñ,r   r   N)Ú
__future__r   Útypingr   r   Ústreamlit.proto.Empty_pb2r   r   Ústreamlit.proto.Skeleton_pb2r   r   Ústreamlit.runtime.metrics_utilr   Ústreamlit.delta_generatorr	   r   r!   r   r   ú<module>r(      s(   ðõ #ç &å 9Ý BÝ 9áÝ8÷g,ò g,r   