ghdZdZddlmZmZddlmZddlmZddlm Z GddeZ Gd d eZ Gd d eZ Gd deZ dS)z Directives for document parts. reStructuredText)nodes languages)parts) Directive) directivescVeZdZdZdZdZdZdZej ej eej dZ dZ dS) Contentsa Table of contents. The table of contents is generated in two passes: initial parse and transform. During the initial parse, a 'pending' element is generated which acts as a placeholder, storing the TOC title and any options internally. At a later stage in the processing, the 'pending' element is replaced by a 'topic' element, a title and the table of contents proper. )topentrynonecTtj|tj}|dkrdS|S)Nr )rchoicer backlinks_values)argvalues /builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/docutils/parsers/rst/directives/parts.py backlinkszContents.backlinkss*!#x'@AA F??4LT)depthlocalrclassc|jjsAt|jjtjs|d|jz|jj}tj |j j |j }|jrD|jd}|j||j\}}t j|dg|R}n.g}d|jvrd}n t jd|jd}t jdg}|dxx|jdgz cc<|j\|_|_|xjd zc_d|jvr|dd|r|}||z }n |jd}t j|}||s|d |||t jt@j!|j" } | j#$|j|%| || z }|g|zS) NzBThe "%s" directive may not be used within topics or body elements.rrcontents)classesrrrnames) rawsource)& state_machine match_titles isinstancenodersidebarerrornamedocumentr get_languagesettings language_codereporter argumentsstate inline_textlinenotitleoptionslabelstopicgetget_source_and_linesourcelineappendastextfully_normalize_namehas_namenote_implicit_targetpendingrr block_textdetailsupdate note_pending) selfr'language title_text text_nodesmessagesr0r3r&r=s rrunz Contents.run-su"/ Ed05u}EE E**8:>)DEE E%.)(*;*I*2*;== > E*J#':#9#9*:>+$G$G JK B<<<>D UNEE?:.D)$//  && ( 'N ! !$ ' ' '%%e,,,-$/JJJt|,,,g&&& w!!rN)__name__ __module__ __qualname____doc__rroptional_argumentsfinal_argument_whitespacernonnegative_intflag class_option option_specrGrrr r sr0 $&6&O )&355K '"'"'"'"'"rr c:eZdZdZeeejejdZdZdS)SectnumzAutomatic section numbering.)rstartprefixsuffixctjtj}|j|j|jj ||gSN) rr=rSectNumr?r@r1r r'rA)rBr=s rrGz Sectnum.run`sM- ..t|,,, #00999yrN) rHrIrJrKintrunchanged_requiredrQrGrRrrrTrTWsG&&':':<rts # %%%%%%%%%%%%%%******++++++C"C"C"C"C"yC"C"C"L     i        Y        Y     r