HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/botocore/docs/__pycache__/translator.cpython-312.pyc
�

P��e	��>�ddlmZddlmZddlmZGd�de�Zy)�)�nodes)�admonitionlabels)�HTML5Translatorc�6��eZdZdZdgZdd�Zd�Z�fd�Z�xZS)�BotoHTML5TranslatorzEExtension of Sphinx's ``HTML5Translator`` for Botocore documentation.z
[REQUIRED]c��|jj|j|dd|z���|r)dt|�d�}|jj|�yy)z;Uses the h3 tag for admonition titles instead of the p tag.�divzadmonition )�CLASSz<h3 class='admonition-title'> z</h3>N)�body�append�starttagr)�self�node�name�titles    �:/usr/lib/python3/dist-packages/botocore/docs/translator.py�visit_admonitionz$BotoHTML5Translator.visit_admonitionsa���	�	����M�M�$��m�d�.B�M�D�	
��0�1A�$�1G�0H��N�
�
�I�I���U�#�	�c��t|�dk(xrvt|dtj�xrWt|d�dk(xrDt|ddtj�xr"|ddj�|jvS)z�Determines if a node is an implicit heading.

        An implicit heading is represented by a paragraph node whose only
        child is a strong node with text that isnt in `IGNORE_IMPLICIT_HEADINGS`.
        �r)�len�
isinstancer�strong�Text�astext�IGNORE_IMPLICIT_HEADINGS)rrs  r�is_implicit_headingz'BotoHTML5Translator.is_implicit_heading$s���
��I��N�
I��4��7�E�L�L�1�
I��D��G���!�
I��4��7�1�:�u�z�z�2�
I��Q���
�!�!�#�4�+H�+H�H�	
rc���|j|�r7|dd}|jjd|�d��tj�t
�|�|�y)z�Visit a paragraph HTML element.

        Replaces implicit headings with an h3 tag and defers to default
        behavior for normal paragraph elements.
        rz<h3>z</h3>
N)rrrr�SkipNode�super�visit_paragraph)rr�text�	__class__s   �rr!z#BotoHTML5Translator.visit_paragraph2sR����#�#�D�)���7�1�:�D��I�I���t�D�6��1�2��.�.� ��G�#�D�)r)�)	�__name__�
__module__�__qualname__�__doc__rrrr!�
__classcell__)r#s@rrrs'���O�	� ��	$�
�*�*rrN)�docutilsr�
sphinx.localer�sphinx.writers.html5r�SphinxHTML5Translatorr�rr�<module>r/s���*�I�,*�/�,*r