§
    2\öa—  ã                   ó²   — d Z dZddlmZmZ ddlmZ ddlmZ ddlm	Z	  G d„ de¦  «        Z
 G d	„ d
e¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )z 
Directives for document parts.
ÚreStructuredTexté    )ÚnodesÚ	languages)Úparts)Ú	Directive)Ú
directivesc                   óV   — e Zd ZdZdZd„ ZdZdZej	        ej
        eej        dœZd„ ZdS )	Ú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.
    )ÚtopÚentryÚnonec                 óT   — t          j        | t          j        ¦  «        }|dk    rd S |S )Nr   )r   Úchoicer
   Úbacklinks_values)ÚargÚvalues     úG/usr/lib/python3/dist-packages/docutils/parsers/rst/directives/parts.pyÚ	backlinkszContents.backlinks   s*   € ÝÔ! #¥xÔ'@ÑAÔAˆØ�FŠ?ˆ?Ø�4àˆLó    é   T)ÚdepthÚlocalr   Úclassc                 óì  — | j         j        sAt          | j         j        t          j        ¦  «        s|                      d| j        z  ¦  «        ‚| j         j        }t          j
        |j        j        |j        ¦  «        }| j        rD| j        d         }| j                             || j        ¦  «        \  }}t	          j        |dg|¢R Ž }n.g }d| j        v rd }n t	          j        d|j        d         ¦  «        }t	          j        dg¬¦  «        }|dxx         | j                             dg ¦  «        z  cc<   | j                              ¦   «         \  |_        |_        |xj        d	z  c_        d| j        v r|d                              d¦  «         |r|                     ¦   «         }||z  }n|j        d         }t	          j        |¦  «        }|                     |¦  «        s|d
                              |¦  «         |                     |¦  «         t	          j        t@          j!        | j"        ¬¦  «        }	|	j#         $                    | j        ¦  «         | %                    |	¦  «         ||	z  }|g|z   S )NzBThe "%s" directive may not be used within topics or body elements.r   Ú r   Úcontents)Úclassesr   r   r   Únames)Ú	rawsource)&Ústate_machineÚmatch_titlesÚ
isinstanceÚnoder   ÚsidebarÚerrorÚnameÚdocumentr   Úget_languageÚsettingsÚlanguage_codeÚreporterÚ	argumentsÚstateÚinline_textÚlinenoÚtitleÚoptionsÚlabelsÚtopicÚgetÚget_source_and_lineÚsourceÚlineÚappendÚastextÚfully_normalize_nameÚhas_nameÚnote_implicit_targetÚpendingr   r
   Ú
block_textÚdetailsÚupdateÚnote_pending)
Úselfr'   ÚlanguageÚ
title_textÚ
text_nodesÚmessagesr0   r3   r&   r=   s
             r   ÚrunzContents.run-   su  € ØÔ"Ô/ð 	EÝ˜dÔ0Ô5µu´}ÑEÔEð	Eà—*’*ð 8Ø:>¼)ñDñ Eô Eð EàÔ%Ô.ˆÝÔ)¨(Ô*;Ô*IØ*2Ô*;ñ=ô =ˆàŒ>ð 
	EØœ¨Ô*ˆJØ#'¤:×#9Ò#9¸*Ø:>¼+ñ$Gô $GÑ ˆJ˜å”K 
¨BÐ<°Ð<Ð<Ð<ˆEˆEàˆHØ˜$œ,Ð&Ð&Ø��åœ B¨¬¸
Ô(CÑDÔD�Ý” Z LÐ1Ñ1Ô1ˆØˆiÐÐÔ˜DœL×,Ò,¨W°bÑ9Ô9Ñ9ÐÐÑà#'Ô#5×#IÒ#IÑ#KÔ#KÑ ˆŒ�e”jØˆ
Œ
�a‰ˆ
Œ
Ø�d”lÐ"Ð"Ø�)Ô×#Ò# GÑ,Ô,Ð,Øð 	/Ø—<’<‘>”>ˆDØ�U‰NˆEˆEà”? :Ô.ˆDÝÔ)¨$Ñ/Ô/ˆØ× Ò  Ñ&Ô&ð 	(Ø�'ŒN×!Ò! $Ñ'Ô'Ð'Ø×%Ò% eÑ,Ô,Ð,Ý”-¥¤¸$¼/ÐJÑJÔJˆØŒ×Ò˜tœ|Ñ,Ô,Ð,Ø×Ò˜gÑ&Ô&Ð&Ø�ÑˆØˆw˜Ñ!Ð!r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úoptional_argumentsÚfinal_argument_whitespacer   Únonnegative_intÚflagÚclass_optionÚoption_specrG   © r   r   r
   r
      sr   € € € € € ðð ð 0Ððð ð ð ÐØ $ÐØ&Ô6Ø&œOØ )Ø&Ô3ð5ð 5€Kð
'"ð '"ð '"ð '"ð '"r   r
   c                   ó:   — e Zd ZdZeeej        ej        dœZd„ ZdS )ÚSectnumzAutomatic section numbering.)r   ÚstartÚprefixÚsuffixc                 óÀ   — t          j        t          j        ¦  «        }|j                             | j        ¦  «         | j        j         	                    |¦  «         |gS ©N)
r   r=   r   ÚSectNumr?   r@   r1   r    r'   rA   )rB   r=   s     r   rG   zSectnum.run`   sM   € Ý”-¥¤Ñ.Ô.ˆØŒ×Ò˜tœ|Ñ,Ô,Ð,ØÔÔ#×0Ò0°Ñ9Ô9Ð9ØˆyÐr   N)	rH   rI   rJ   rK   Úintr   Úunchanged_requiredrQ   rG   rR   r   r   rT   rT   W   sG   € € € € € à&Ð&àØØ'Ô:Ø'Ô:ð<ð <€Kð
ð ð ð ð r   rT   c                   ó   — e Zd ZdZdZd„ ZdS )ÚHeaderzContents of document header.Tc                 óÚ   — |                       ¦   «          | j        j                             ¦   «                              ¦   «         }| j                             | j        | j        |¦  «         g S rY   )	Úassert_has_contentr    r'   Úget_decorationÚ
get_headerr-   Únested_parseÚcontentÚcontent_offset)rB   Úheaders     r   rG   z
Header.runm   ó[   € Ø×ÒÑ!Ô!Ð!ØÔ#Ô,×;Ò;Ñ=Ô=×HÒHÑJÔJˆØŒ
×Ò ¤¨dÔ.AÀ6ÑJÔJÐJØˆ	r   N©rH   rI   rJ   rK   Úhas_contentrG   rR   r   r   r^   r^   g   ó.   € € € € € à&Ð&à€Kðð ð ð ð r   r^   c                   ó   — e Zd ZdZdZd„ ZdS )ÚFooterzContents of document footer.Tc                 óÚ   — |                       ¦   «          | j        j                             ¦   «                              ¦   «         }| j                             | j        | j        |¦  «         g S rY   )	r`   r    r'   ra   Ú
get_footerr-   rc   rd   re   )rB   Úfooters     r   rG   z
Footer.runz   rg   r   Nrh   rR   r   r   rl   rl   t   rj   r   rl   N)rK   Ú__docformat__Údocutilsr   r   Údocutils.transformsr   Údocutils.parsers.rstr   r   r
   rT   r^   rl   rR   r   r   ú<module>rt      s  ðð
ð ð #€à %Ð %Ð %Ð %Ð %Ð %Ð %Ð %Ø %Ð %Ð %Ð %Ð %Ð %Ø *Ð *Ð *Ð *Ð *Ð *Ø +Ð +Ð +Ð +Ð +Ð +ðC"ð C"ð C"ð C"ð C"ˆyñ C"ô C"ð C"ðLð ð ð ð ˆiñ ô ð ð 
ð 
ð 
ð 
ð 
ˆYñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ˆYñ 
ô 
ð 
ð 
ð 
r   