
    chfE                       S SK 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 SKJrJr   " S S\5      r " S	 S
\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\\5      r  " S' S(\ 5      r! " S) S*\5      r" " S+ S,\"5      r# " S- S.\"5      r$ " S/ S0\"5      r% " S1 S2\"5      r& " S3 S4\"5      r' " S5 S6\"5      r( " S7 S8\"5      r) " S9 S:\"5      r* " S; S<\"5      r+ " S= S>\"5      r, " S? S@\"5      r- " SA SB\"5      r. " SC SD\"5      r/ " SE SF\"5      r0 " SG SH\"5      r1 " SI SJ\"5      r2 " SK SL\"5      r3 " SM SN\"5      r4 " SO SP\"5      r5 " SQ SR\"5      r6 " SS ST\"5      r7 " SU SV\"\85      r9 " SW SX\"5      r: " SY SZ\"5      r;g)[    )annotationsN)TYPE_CHECKINGAnyLiteral)util)
Collection)datetimec                      \ rS rSrSrSrg)Error   zThe base class for all exceptions thrown by Streamlit.

Should be used for exceptions raised due to user errors (typically via
StreamlitAPIException) as well as exceptions raised by Streamlit's internal
code.
 N__name__
__module____qualname____firstlineno____doc____static_attributes__r       cC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/errors.pyr   r      s     	r   r   c                      \ rS rSrSrSrg)CustomComponentError&   z5Exceptions thrown in the custom components code path.r   Nr   r   r   r   r   r   &   s    ?r   r   c                      \ rS rSrSrg)DeprecationError,   r   Nr   r   r   r   r   r   r   r   r   r   ,       r   r   c                      \ rS rSrSrSrg)FragmentStorageKeyError0   zUA KeyError raised when a KeyError is encountered during a FragmentStorage
operation.
r   Nr   r   r   r   r!   r!   0        	r   r!   c                      \ rS rSrSrSrg)FragmentHandledException8   zVAn exception that is raised by the fragment
when it has handled the exception itself.
r   Nr   r   r   r   r%   r%   8   r#   r   r%   c                      \ rS rSrSrg)NoStaticFiles@   r   Nr   r   r   r   r(   r(   @   r   r   r(   c                      \ rS rSrSrg)NoSessionContextD   r   Nr   r   r   r   r+   r+   D   r   r   r+   c                      \ rS rSrSrSrg)MarkdownFormattedExceptionH   zExceptions with Markdown in their description.

Instances of this class can use markdown in their messages, which will get
nicely formatted on the frontend.
r   Nr   r   r   r   r.   r.   H   s     	r   r.   c                      \ rS rSrSrSrg)StreamlitMaxRetriesErrorR   zTAn exception raised when a file or folder cannot be accessed after multiple retries.r   Nr   r   r   r   r1   r1   R   s    ^r   r1   c                  "    \ rS rSrSrSS jrSrg)StreamlitAPIExceptionX   a  Base class for Streamlit API exceptions.

An API exception should be thrown when user code interacts with the
Streamlit API incorrectly. (That is, when we throw an exception as a
result of a user's malformed `st.foo` call, it should be a
StreamlitAPIException or subclass.)

When displaying these exceptions on the frontend, we strip Streamlit
entries from the stack trace so that the user doesn't see a bunch of
noise related to Streamlit internals.

c                .    [         R                  " U 5      $ Nr   repr_selfs    r   __repr__StreamlitAPIException.__repr__f       zz$r   r   Nreturnstr)r   r   r   r   r   r<   r   r   r   r   r4   r4   X   s     r   r4   c                      \ rS rSrSrg)DuplicateWidgetIDj   r   Nr   r   r   r   rC   rC   j   r   r   rC   c                      \ rS rSrSrg)StreamlitAuthErrorn   r   Nr   r   r   r   rF   rF   n   r   r   rF   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitDuplicateElementIdr   zKAn exception raised when the auto-generated ID of an element is not unique.c                2   > [         TU ]  SU SU S35        g )NzThere are multiple `a&  ` elements with the same auto-generated ID. When this element is created, it is assigned an internal ID based on the element type and provided parameters. Multiple elements with the same type and parameters will cause this error.

To fix this error, please pass a unique `key` argument to the `z
` element.super__init__)r;   element_type	__class__s     r   rN   $StreamlitDuplicateElementId.__init__u   s*    "<. 1
 ~Z)	
r   r   )rO   rA   r@   Noner   r   r   r   r   rN   r   __classcell__rP   s   @r   rI   rI   r   s    U
 
r   rI   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitDuplicateElementKey   z=An exception raised when the key of an element is not unique.c                ,   > [         TU ]  SU S35        g )Nz0There are multiple elements with the same `key='z`'`. To fix this, please make sure that the `key` argument is unique for each element you create.rL   )r;   user_keyrP   s     r   rN   %StreamlitDuplicateElementKey.__init__   s"    >xj I' '	
r   r   )rZ   rA   r@   rR   rS   rU   s   @r   rW   rW      s    G
 
r   rW   c                      \ rS rSrSrg)UnserializableSessionStateError   r   Nr   r   r   r   r]   r]      r   r   r]   c                  :   ^  \ rS rSrSrSU 4S jjrSS jrSrU =r$ )StreamlitAPIWarning   zgUsed to display a warning.

Note that this should not be "raised", but passed to st.exception
instead.
c                |   > [         TU ]  " U6   SS KnSS KnUR	                  5       nUR                  U5      U l        g )Nr   )rM   rN   inspect	tracebackcurrentframeextract_stacktacked_on_stack)r;   argsrc   rd   frP   s        r   rN   StreamlitAPIWarning.__init__   s7    $  "(66q9r   c                .    [         R                  " U 5      $ r7   r8   r:   s    r   r<   StreamlitAPIWarning.__repr__   r>   r   )rg   )rh   r   r@   rR   r?   )	r   r   r   r   r   rN   r<   r   rT   rU   s   @r   r`   r`      s    :   r   r`   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitModuleNotFoundError   zpPrint a pretty message when a Streamlit command requires a dependency
that is not one of our core dependencies.
c                4   > SU S3n[         TU ]  " U/UQ76   g )Nz(This Streamlit command requires module "z" to be installed.rL   )r;   module_namerh   messagerP   s       r   rN   %StreamlitModuleNotFoundError.__init__   s)    6{mCUV 	 	(4(r   r   )rq   rA   rh   r   r@   rR   rS   rU   s   @r   rn   rn      s    ) )r   rn   c                  @   ^  \ rS rSrSU 4S jjr\SS j5       rSrU =r$ )LocalizableStreamlitException   c                P   > [         TU ]  UR                  " S0 UD65        X l        g )Nr   )rM   rN   format_exec_kwargs)r;   rr   kwargsrP   s      r   rN   &LocalizableStreamlitException.__init__   s$    '))3F34"r   c                    U R                   $ r7   ry   r:   s    r   exec_kwargs)LocalizableStreamlitException.exec_kwargs   s       r   r}   )rr   rA   rz   r   r@   rR   )r@   zdict[str, Any])	r   r   r   r   rN   propertyr~   r   rT   rU   s   @r   ru   ru      s    # ! !r   ru   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitInvalidPageLayoutError   z?Exception raised when an invalid value is specified for layout.c                "   > [         TU ]  SUS9  g )Nz<`layout` must be `"centered"` or `"wide"` (got `"{layout}"`))layoutrL   )r;   r   rP   s     r   rN   (StreamlitInvalidPageLayoutError.__init__   s    J 	 	
r   r   )r   rA   r@   rR   rS   rU   s   @r   r   r      s    I
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )!StreamlitInvalidSidebarStateError   zPException raised when an invalid value is specified for `initial_sidebar_state`.c                "   > [         TU ]  SUS9  g )Nzk`initial_sidebar_state` must be `"auto"` or `"expanded"` or `"collapsed"` (got `"{initial_sidebar_state}"`))initial_sidebar_staterL   )r;   r   rP   s     r   rN   *StreamlitInvalidSidebarStateError.__init__   s    >"7 	 	
r   r   )r   rA   r@   rR   rS   rU   s   @r   r   r      s    Z
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ ) StreamlitInvalidMenuItemKeyError   z2Exception raised when an invalid key is specified.c                "   > [         TU ]  SUS9  g )NzfWe only accept the keys: `"Get help"`, `"Report a bug"`, and `"About"` (`"{key}"` is not a valid key.)keyrL   r;   r   rP   s     r   rN   )StreamlitInvalidMenuItemKeyError.__init__   s    t 	 	
r   r   r   rA   r@   rR   rS   rU   s   @r   r   r      s    <
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitInvalidURLError   uc   Exception raised when an invalid URL is specified for any of the menu items except for “About”.c                "   > [         TU ]  SUS9  g )Nzw"{url}" is a not a valid URL. You must use a fully qualified domain beginning with "http://", "https://", or "mailto:".)urlrL   )r;   r   rP   s     r   rN   !StreamlitInvalidURLError.__init__   s    h 	 	
r   r   )r   rA   r@   rR   rS   rU   s   @r   r   r      s    m
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitInvalidColumnSpecError   zRException raised when no weights are specified, or a negative weight is specified.c                $   > [         TU ]  S5        g )Na  The `spec` argument to `st.columns` must be either a positive integer (number of columns) or a list of positive numbers (width ratios of the columns). See [documentation](https://docs.streamlit.io/develop/api-reference/layout/st.columns) for more information.rL   r;   rP   s    r   rN   (StreamlitInvalidColumnSpecError.__init__   s    $	
r   r   r@   rR   rS   rU   s   @r   r   r      s    \
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )&StreamlitInvalidVerticalAlignmentError   zKException raised when an invalid value is specified for vertical_alignment.c                $   > [         TU ]  SUUS9  g )NzThe `vertical_alignment` argument to `{element_type}` must be `"top"`, `"center"`, `"bottom"`, or `"distribute"`. 
The argument passed was {vertical_alignment}.)vertical_alignmentrO   rL   )r;   r   rO   rP   s      r   rN   /StreamlitInvalidVerticalAlignmentError.__init__   s"    <  2% 	 	
r   r   )r   rA   rO   rA   r@   rR   rS   rU   s   @r   r   r      s    U
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitInvalidColumnGapError   z<Exception raised when an invalid value is specified for gap.c                $   > [         TU ]  SUUS9  g )Nz}The `gap` argument to `{element_type}` must be `"small"`, `"medium"`, `"large"`, or `"none"`. 
The argument passed was {gap}.)gaprO   rL   )r;   r   rO   rP   s      r   rN   'StreamlitInvalidColumnGapError.__init__   s     -%	 	 	
r   r   )r   rA   rO   rA   r@   rR   rS   rU   s   @r   r   r      s    F
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )(StreamlitInvalidHorizontalAlignmentErrori  zMException raised when an invalid value is specified for horizontal_alignment.c                $   > [         TU ]  SUUS9  g )NzThe `horizontal_alignment` argument to `{element_type}` must be `"left"`, `"center"`, `"right"`, or `"distribute"`. 
The argument passed was {horizontal_alignment}.)horizontal_alignmentrO   rL   )r;   r   rO   rP   s      r   rN   1StreamlitInvalidHorizontalAlignmentError.__init__  s"    > "6% 	 	
r   r   )r   rA   rO   rA   r@   rR   rS   rU   s   @r   r   r     s    W
 
r   r   c                  <   ^  \ rS rSrSr      SU 4S jjrSrU =r$ )&StreamlitSelectionCountExceedsMaxErrori  zdException raised when there are more default selections specified than the max allowable selections.c                H   > [         TU ]  SUUS:X  a  SOSUUS:X  a  SOSS9  g )Na  Multiselect has {current_selections_count} {current_selections_noun} selected but `max_selections` is set to {max_selections_count}. This happened because you either gave too many options to `default` or you manipulated the widget's state through `st.session_state`. Note that the latter can happen before the line indicated in the traceback. Please select at most {max_selections_count} {options_noun}.   optionoptions)current_selections_countcurrent_selections_nounmax_selections_countoptions_nounrL   )r;   r   r   rP   s      r   rN   /StreamlitSelectionCountExceedsMaxError.__init__  sA     	K &>'1, %-!5%9Q%>I 	 	
r   r   )r   intr   r   r@   rR   rS   rU   s   @r   r   r     s(    n
(+
CF
	
 
r   r   c                  D   ^  \ rS rSrSr          SU 4S jjrSrU =r$ )StreamlitMixedNumericTypesErrori-  z;Exception raised mixing floats and ints in st.number_input.c                D  > S nS nS nS nSn	U(       a  [        U5      R                  nU	S-  n	U(       a  [        U5      R                  nU	S-  n	U(       a  [        U5      R                  nU	S-  n	U(       a  [        U5      R                  nU	S-  n	[        T
U ]  U	UUUUS9  g )Nz1All numerical arguments must be of the same type.z
`value` has {value_type} type.z'
`min_value` has {min_value_type} type.z'
`max_value` has {max_value_type} type.z
`step` has {step_type} type.)
value_typemin_value_typemax_value_type	step_type)typer   rM   rN   )r;   value	min_value	max_valuestepr   r   r   r   error_messagerP   s             r   rN   (StreamlitMixedNumericTypesError.__init__0  s     
	Ke--J??M!)_55NGGM!)_55NGGMT
++I==M!)) 	 	
r   r   )
r   z#int | float | Literal['min'] | Noner   int | float | Noner   r   r   r   r@   rR   rS   rU   s   @r   r   r   -  s@    E$
2$
 &$
 &	$

 !$
 
$
 $
r   r   c                  <   ^  \ rS rSrSr      SU 4S jjrSrU =r$ )StreamlitValueBelowMinErroriW  zBException raised when the `min_value` is greater than the `value`.c                $   > [         TU ]  SUUS9  g )Nz=The `value` {value} is less than the `min_value` {min_value}.)r   r   rL   )r;   r   r   rP   s      r   rN   $StreamlitValueBelowMinError.__init__Z  s     
 	K 	 	
r   r   )r   int | float | date | timer   r   r@   rR   rS   rU   s   @r   r   r   W  s,    L	
(	
 -	
 
		
 	
r   r   c                  <   ^  \ rS rSrSr      SU 4S jjrSrU =r$ )StreamlitValueAboveMaxErrorif  z?Exception raised when the `max_value` is less than the `value`.c                $   > [         TU ]  SUUS9  g )Nz@The `value` {value} is greater than the `max_value` {max_value}.)r   r   rL   )r;   r   r   rP   s      r   rN   $StreamlitValueAboveMaxError.__init__i  s     
 	N 	 	
r   r   )r   r   r   r   r@   rR   rS   rU   s   @r   r   r   f  s,    I	
(	
 -	
 
		
 	
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitJSNumberBoundsErroriu  z=Exception raised when a number exceeds the Javascript limits.c                $   > [         TU ]  U5        g r7   rL   r;   rr   rP   s     r   rN   %StreamlitJSNumberBoundsError.__init__x      !r   r   rr   rA   r@   rR   rS   rU   s   @r   r   r   u  s    G" "r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )!StreamlitInvalidNumberFormatErrori|  z[Exception raised when the format string for `st.number_input` contains
invalid characters.
c                "   > [         TU ]  SUS9  g )NzIFormat string for `st.number_input` contains invalid characters: {format})rx   rL   )r;   rx   rP   s     r   rN   *StreamlitInvalidNumberFormatError.__init__  s    W 	 	
r   r   )rx   rA   r@   rR   rS   rU   s   @r   r   r   |      
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitMissingPageLabelErrori  z=Exception raised when a page_link is created without a label.c                $   > [         TU ]  S5        g )NzeThe `label` param is required for external links used with `st.page_link` - please provide a `label`.rL   r   s    r   rN   'StreamlitMissingPageLabelError.__init__  s    s	
r   r   r   rS   rU   s   @r   r   r     s    G
 
r   r   c                  @   ^  \ rS rSrSr        SU 4S jjrSrU =r$ )StreamlitPageNotFoundErrori  z2Exception raised the linked page can not be found.c                x   > [         R                  R                  U5      nSnU(       a  Sn[        TU ]  UUUS9  g )NzCould not find page: `{page}`. You must provide a `StreamlitPage` object or file path relative to the entrypoint file. Only pages previously defined by `st.Page` and passed to `st.navigation` are allowed.zCould not find page: `{page}`. You must provide a file path relative to the entrypoint file (from the directory `{directory}`). Only the entrypoint file and files in the `pages/` directory are supported.)page	directory)ospathbasenamerM   rN   )r;   r   main_script_directoryuses_pages_directoryr   rr   rP   s         r   rN   #StreamlitPageNotFoundError.__init__  sQ     GG$$%:;	 	  ^  	 	 	
r   r   )r   rA   r   rA   r   boolr@   rR   rS   rU   s   @r   r   r     s0    <

03
KO
	
 
r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ ).StreamlitFragmentWidgetsNotAllowedOutsideErrori  z\Exception raised when the fragment attempts to write to an element outside of its container.c                $   > [         TU ]  S5        g )Nz5Fragments cannot write widgets to outside containers.rL   r   s    r   rN   7StreamlitFragmentWidgetsNotAllowedOutsideError.__init__  s    PQr   r   r   rS   rU   s   @r   r   r     s    fR Rr   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )!StreamlitInvalidFormCallbackErrori  zpException raised a `on_change` callback is set on any element in a form except for
the `st.form_submit_button`.
c                $   > [         TU ]  S5        g )NzWithin a form, callbacks can only be defined on `st.form_submit_button`. Defining callbacks on other widgets inside a form is not allowed.rL   r   s    r   rN   *StreamlitInvalidFormCallbackError.__init__  s    P	
r   r   r   rS   rU   s   @r   r   r     r   r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )'StreamlitValueAssignmentNotAllowedErrori  zHException raised when trying to set values where writes are not allowed.c                "   > [         TU ]  SUS9  g )NzPValues for the widget with `key` '{key}' cannot be set using `st.session_state`.r   rL   r   s     r   rN   0StreamlitValueAssignmentNotAllowedError.__init__  s    ^ 	 	
r   r   r   rS   rU   s   @r   r   r     s    R
 
r   r   c                  4   ^  \ rS rSr    SU 4S jjrSrU =r$ )StreamlitInvalidColorErrori  c                4   > [         TU ]  S[        U5      S9  g )NzThis does not look like a valid color: {color}.

Colors must be in one of the following formats:* Hex string with 3, 4, 6, or 8 digits. Example: `'#00ff00'`* List or tuple with 3 or 4 components. Example: `[1.0, 0.5, 0, 0.2]`)colorrM   rN   repr)r;   r  rP   s     r   rN   #StreamlitInvalidColorError.__init__  s&     	T u+ 	 	
r   r   )r  z1str | Collection[Any] | tuple[int, int, int, int]r@   rR   )r   r   r   r   rN   r   rT   rU   s   @r   r  r    s    	
F	
		
 	
r   r  c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitBadTimeStringErrori  zMException Raised when a time string argument is passed that cannot be parsed.c                "   > [         TU ]  SUS9  g )NzqTime string doesn't look right. It should be formatted as`'1d2h34m'` or `2 days`, for example. Got: {time_string})time_stringrL   )r;   r
  rP   s     r   rN   $StreamlitBadTimeStringError.__init__  s    G# 	 	
r   r   )r
  rA   r@   rR   rS   rU   s   @r   r  r    s    W
 
r   r  c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )StreamlitSecretNotFoundErrori  zRException raised when a secret cannot be found or parsed in the secrets.toml file.c                $   > [         TU ]  U5        g r7   rL   r   s     r   rN   %StreamlitSecretNotFoundError.__init__  r   r   r   r   rS   rU   s   @r   r  r    s    \" "r   r  c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )StreamlitInvalidWidthErrori  z9Exception raised when an invalid width value is provided.c                L   > SnU(       a  Sn[         TU ]  S[        U5      US9  g )N an integer (pixels) or 'stretch',an integer (pixels), 'stretch', or 'content'zBInvalid width value: {width}. Width must be either {valid_values}.)widthvalid_valuesr  )r;   r  allow_contentr  rP   s       r   rN   #StreamlitInvalidWidthError.__init__  s/    9ILPu+% 	 	
r   r   F)r  r   r  r   r@   rR   rS   rU   s   @r   r  r    s    C	
 	
r   r  c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )StreamlitInvalidHeightErrori  z:Exception raised when an invalid height value is provided.c                L   > SnU(       a  Sn[         TU ]  S[        U5      US9  g )Nr  r  zEInvalid height value: {height}. Height must be either {valid_values}.)heightr  r  )r;   r  r  r  rP   s       r   rN   $StreamlitInvalidHeightError.__init__  s/    9ILS<% 	 	
r   r   r  )r  r   r  r   r@   rR   rS   rU   s   @r   r  r    s    D	
 	
r   r  )<
__future__r   r   typingr   r   r   	streamlitr   collections.abcr   datetimer	   r
   	Exceptionr   r   r   KeyErrorr!   r%   r(   r+   r.   r1   r4   rC   rF   rI   rW   r]   Warningr`   rn   ru   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  FileNotFoundErrorr  r  r  r   r   r   <module>r(     sB   # 	 . . *#	I 		5 		u 		eX 		y 		E 		u 		 		u 	 6  $	- 		. 	
"3 

#4 
	&; 	 /  &	)#6 	)!$9 !
&C 

(E 

'D 

< 
	
&C 	


-J 

	
%B 	


/L 


-J 
.'
&C '
T
"? 

"? 
"#@ "	
(E 	

%B 

!> 
<R5R R	
(E 	

.K 


!> 


"? 
"#@BS "
!> 

"? 
r   