
    Fg                        S SK Jr  S SKJrJr  S SKJrJrJr  S SK	J
r
  S SKJr  S SKJr  \(       a  S SKJr   " S S	\5      r\
" 5        " S
 S\5      5       rg)    )annotations)MappingSequence)TYPE_CHECKINGLiteral	TypedDict)document)	Component)Events)Timerc                  4    \ rS rSr% S\S'   S\S'   S\S'   Srg)		Parameter   strtypedescription
str | Nonedefault N)__name__
__module____qualname____firstlineno____annotations____static_attributes__r       n/Users/admin/workspace/ai/PDFMathTranslate/myenv/lib/python3.13/site-packages/gradio/components/paramviewer.pyr   r      s    
Ir   r   c                     ^  \ rS rSrSr\R                  \R                  /r         S
                 SU 4S jjjr	SS jr
SS jrS rS rS rS	rU =r$ )ParamViewer   a  
Displays an interactive table of parameters and their descriptions and default values with syntax highlighting. For each parameter,
the user should provide a type (e.g. a `str`), a human-readable description, and a default value. As this component does not accept user input,
it is rarely used as an input component. Internally, this component is used to display the parameters of components in the Custom
Component Gallery (https://www.gradio.app/custom-components/gallery).
c
                x   > U=(       d    0 U l         X l        X0l        Xl        Xl        [
        T
U ]  UUUUUS9  g)aK  
Parameters:
    value: A dictionary of dictionaries. The key in the outer dictionary is the parameter name, while the inner dictionary has keys "type", "description", and "default" for each parameter. Markdown links are supported in "description".
    language: The language to display the code in. One of "python" or "typescript".
    linkify: A list of strings to linkify. If any of these strings is found in the description, it will be rendered as a link.
    every: Continously calls `value` to recalculate it if `value` is a function (has no effect otherwise). Can provide a Timer whose tick resets `value`, or a float that provides the regular interval for the reset Timer.
    inputs: Components that are used as inputs to calculate `value` if `value` is a function (has no effect otherwise). `value` is recalculated any time the inputs change.
    render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
    key: if assigned, will be used to assume identity across a re-render. Components that have the same key across a re-render will have their value preserved.
    header: The header to display above the table of parameters, also includes a toggle button that closes/opens all details at once. If None, no header will be displayed.
    anchor_links: If True, creates anchor links for each parameter that can be used to link directly to that parameter. If a string, creates anchor links with the given string as the prefix to prevent conflicts with other ParamViewer components.
)everyinputsvaluerenderkeyN)r$   languagelinkifyheaderanchor_linkssuper__init__)selfr$   r'   r(   r"   r#   r%   r&   r)   r*   	__class__s             r   r,   ParamViewer.__init__#   sF    0 [b
 ( 	 	
r   c                    U$ )a  
Parameters:
    payload: A `dict[str, dict]`. The key in the outer dictionary is the parameter name, while the inner dictionary has keys "type", "description", and "default" for each parameter.
Returns:
    (Rarely used) passes value as a `dict[str, dict]`. The key in the outer dictionary is the parameter name, while the inner dictionary has keys "type", "description", and "default" for each parameter.
r   )r-   payloads     r   
preprocessParamViewer.preprocessH   s	     r   c                    U$ )z
Parameters:
    value: Expects value as a `dict[str, dict]`. The key in the outer dictionary is the parameter name, while the inner dictionary has keys "type", "description", and "default" for each parameter.
Returns:
    The same value.
r   )r-   r$   s     r   postprocessParamViewer.postprocessQ   s	     r   c                    SSSSS.0$ Narraynumpyany valid jsonNone)r   r   r   r   r-   s    r   example_payloadParamViewer.example_payloadZ       /!
 	
r   c                    SSSSS.0$ r8   r   r=   s    r   example_valueParamViewer.example_valuec   r@   r   c                    0 SS.$ )Nr;   )r   r   r   r=   s    r   api_infoParamViewer.api_infol   s    +;<<r   )r*   r)   r'   r(   r$   )	NpythonNNNTN
ParametersF)r$   zMapping[str, Parameter] | Noner'   zLiteral['python', 'typescript']r(   zlist[str] | Noner"   zTimer | float | Noner#   z7Component | Sequence[Component] | set[Component] | Noner%   boolr&   zint | str | Noner)   r   r*   z
bool | str)r1   dict[str, Parameter]returnrJ   )r$   rJ   rK   rJ   )r   r   r   r   __doc__r   changeuploadEVENTSr,   r2   r5   r>   rB   rE   r   __classcell__)r.   s   @r   r   r      s     	F 154<$(&*JN $)#(#
-#
 2#
 "	#

 $#
 H#
 #
 #
 #
 !#
 #
J

= =r   r   N)
__future__r   collections.abcr   r   typingr   r   r   gradio_client.documentationr	   gradio.components.baser
   gradio.eventsr   gradio.componentsr   r   r   r   r   r   <module>rX      sL    " - 4 4 0 ,  '	  
W=) W= W=r   