Ë
    Eêñi³  ã                  óx   — d 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 erddlmZ ddlmZ  G d	„ d
«      Zy)z1Bottom container proxy with context restrictions.é    )Úannotations)ÚTYPE_CHECKINGÚAny)Úcontext_dg_stack)ÚStreamlitAPIException)ÚRootContainer)ÚTracebackType)ÚDeltaGeneratorc                  ó\   — e Zd ZU dZded<   dd„Zdd„Zdd„Zdd„Zdd„Z		 	 	 	 	 	 	 	 dd	„Z
y
)ÚBottomContainerProxyz²Proxy for the bottom container that restricts usage to the main app area.

    Using st.bottom from within the sidebar, dialogs, or event containers
    raises an exception.
    r
   Ú
_bottom_dgc                ó2   — t         j                  | d|«       y )Nr   )ÚobjectÚ__setattr__)ÚselfÚ	bottom_dgs     ú[/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/streamlit/elements/bottom.pyÚ__init__zBottomContainerProxy.__init__(   s   € ä×Ñ˜4 ¨yÕ9ó    c                óþ   — t        j                  «       }|sy|d   }|j                  }|t        j                  k(  rt        d«      ‚d|j                  v rt        d«      ‚|t        j                  k(  rt        d«      ‚y)zGRaise StreamlitAPIException if st.bottom is used in an invalid context.Néÿÿÿÿzl`st.bottom` cannot be used inside `st.sidebar`. The bottom container is only available in the main app area.Údialogzh`st.bottom` cannot be used inside a dialog. The bottom container is only available in the main app area.zp`st.bottom` cannot be used inside event containers. The bottom container is only available in the main app area.)r   ÚgetÚ_root_containerr   ÚSIDEBARr   Ú_ancestor_block_typesÚEVENT)r   Úcurrent_stackÚ
current_dgÚroot_containers       r   Ú_check_contextz#BottomContainerProxy._check_context,   s—   € ä(×,Ñ,Ó.ˆÙØà" 2Ñ&ˆ
Ø#×3Ñ3ˆàœ]×2Ñ2Ò2Ü'ðOóð ð �z×7Ñ7Ñ7Ü'ðOóð ð œ]×0Ñ0Ò0Ü'ðOóð ð 1r   c                óN   — | j                  «        t        | j                  |«      S ©N)r!   Úgetattrr   )r   Únames     r   Ú__getattr__z BottomContainerProxy.__getattr__G   s   € Ø×ÑÔÜ�t—‘¨Ó-Ð-r   c                ó,   — t        | j                  «      S )z5Return DeltaGenerator methods for IDE autocompletion.)Údirr   ©r   s    r   Ú__dir__zBottomContainerProxy.__dir__K   s   € ä�4—?‘?Ó#Ð#r   c                óX   — | j                  «        | j                  j                  «        y r#   )r!   r   Ú	__enter__r)   s    r   r,   zBottomContainerProxy.__enter__O   s   € Ø×ÑÔØ�‰×!Ñ!Õ#r   c                ó<   — | j                   j                  |||«      S r#   )r   Ú__exit__)r   ÚtypÚexcÚtbs       r   r.   zBottomContainerProxy.__exit__S   s   € ð �‰×'Ñ'¨¨S°"Ó5Ð5r   N)r   r
   ÚreturnÚNone)r2   r3   )r%   Ústrr2   r   )r2   z	list[str])r/   ztype[BaseException] | Noner0   zBaseException | Noner1   zTracebackType | Noner2   Úbool)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   r!   r&   r*   r,   r.   © r   r   r   r      sS   … ñð Óó:óó6.ó$ó$ð6à'ð6ð "ð6ð !ð	6ð
 
ô6r   r   N)r9   Ú
__future__r   Útypingr   r   Ú$streamlit.delta_generator_singletonsr   Ústreamlit.errorsr   Ú!streamlit.proto.RootContainer_pb2r   Útypesr	   Ústreamlit.delta_generatorr
   r   r;   r   r   ú<module>rC      s,   ðñ 8å "ç %å AÝ 2Ý ;áÝ#å8÷:6ò :6r   