XD. d Z dZddlZddlZddlZddlZddlZddlmZm Z m Z mZmZm Z mZ ddlmZ ddlmZ G d d Zd Zd Zdddddd ddddddeefdZ d$dZ d%dZdej ddddddd dddddfdZdej dddddddddfdZ d&dZdddddd ddddddeedej fdZd Zd'dZ d Z!d Z"d Z#d Z$d Z%d Z&d Z'd! Z(d" Z)d# Z*dS )(a Calling the ``publish_*`` convenience functions (or instantiating a `Publisher` object) with component names will result in default behavior. For custom behavior (setting component options), create custom component objects first, and pass *them* to ``publish_*``/`Publisher`. See `The Docutils Publisher`_. .. _The Docutils Publisher: https://docutils.sourceforge.io/docs/api/publisher.html reStructuredText N)__version____version_details__SettingsSpecioutilsreaderswriters)OptionParser)doctreec e Zd ZdZddddej dej dfdZd Zd Z d Z ddZd Z dd Z d Z ddZddZdd ZddZd Z ddZd Zd Zd Zd Zd ZdS ) PublisherzK A facade encapsulating the high-level logic of a Docutils system. Nc Z d| _ || _ || _ || _ dD ]G} t t | | t r"J dt | | d| d| d H|| _ || _ || _ || _ || _ t j | _ dS )a Initial setup. If any of `reader`, `parser`, or `writer` are not specified, ``set_components()`` or the corresponding ``set_...()`` method should be called with component names (`set_reader` sets the parser as well). N)readerparserwriterzpassed string "z" as "z+" parameter; pass an instance, or use the "zL_name" parameter instead (in docutils.core.publish_* convenience functions).)documentr r r isinstancegetattrstrsourcesource_classdestinationdestination_classsettingsr ErrorOutput_stderr) selfr r r r r r r r components m/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/docutils/core.py__init__zPublisher.__init__$ s ;3335 D DI!'$ ":":C@@ D D D 4++++YYY C D D@ D G(?& "3D J ~'' c r t j | } ||| | _ | j j | _ dS )zSet `self.reader` by name.N)r get_reader_classr r )r reader_namer parser_namereader_classs r set_readerzPublisher.set_readerU s5 /<<"l6;77k(r" c L t j | } | | _ dS )zSet `self.writer` by name.N)r get_writer_classr )r writer_namewriter_classs r set_writerzPublisher.set_writer[ s# /<<"lnnr" c | j | || j | | j 7| j j | j | | j j | _ | j | | d S d S N)r r( r set_parserr r- )r r% r&