+
    ^eòj0  ã                  óÊ   € R t ^ RIHt ^ RIt^ RIHtHtHt ^ RI	H
t
 ^ RIHt ^ RIHtHtHt ^ RIHtHtHtHt ]'       d   ^ RIHt ^ R	IHt  ! R
 R]4      t ! R R]4      tR# )z4Custom element classes related to document comments.)ÚannotationsN)ÚTYPE_CHECKINGÚCallableÚcast)Únsdecls)Ú	parse_xml)ÚST_DateTimeÚST_DecimalNumberÚ	ST_String)ÚBaseOxmlElementÚOptionalAttributeÚRequiredAttributeÚ
ZeroOrMore)ÚCT_Tbl)ÚCT_Pc                  óZ   € ] tR t^t$ RtR]R&   ]! R4      tR R ltR R lt	R	 R
 lt
RtR# )ÚCT_Commentsa~  `w:comments` element, the root element for the comments part.

Simply contains a collection of `w:comment` elements, each representing a single comment. Each
contained comment is identified by a unique `w:id` attribute, used to reference the comment
from the document text. The offset of the comment in this collection is arbitrary; it is
essentially a _set_ implemented as a list.
zlist[CT_Comment]Úcomment_lstz	w:commentc               ó   € V ^8„  d   QhRR/# )é   ÚreturnÚ
CT_Comment© )Úformats   "Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/docx/oxml/comments.pyÚ__annotate__ÚCT_Comments.__annotate__    s   € ÷ ñ ˜Zñ ó    c           
     óš   € V P                  4       p\        \        \        R\	        R4       RV R24      4      pV P                  V4       V# )aÈ  Return newly added `w:comment` child of this `w:comments`.

The returned `w:comment` element is the minimum valid value, having a `w:id` value unique
within the existing comments and the required `w:author` attribute present but set to the
empty string. It's content is limited to a single run containing the necessary annotation
reference but no text. Content is added by adding runs to this first paragraph and by
adding additional paragraphs as needed.
z<w:comment Úwz w:id="z×" w:author="">  <w:p>    <w:pPr>      <w:pStyle w:val="CommentText"/>    </w:pPr>    <w:r>      <w:rPr>        <w:rStyle w:val="CommentReference"/>      </w:rPr>      <w:annotationRef/>    </w:r>  </w:p></w:comment>)Ú_next_available_comment_idr   r   r   r   Úappend)ÚselfÚnext_idÚcomments   &  r   Úadd_commentÚCT_Comments.add_comment    sU   € ð ×1Ñ1Ó3ˆÜÜÜØœg c›l˜^¨7°7°)ð <ð  óó
ˆð$ 	�‰�GÔØˆr   c               ó    € V ^8„  d   QhRRRR/# )r   Ú
comment_idÚintr   zCT_Comment | Noner   )r   s   "r   r   r   ?   s   € ÷ 9ñ 9¨Cð 9Ð4Eñ 9r   c                óR   € V P                  RV R24      pV'       d
   V^ ,          # R# )zRReturn the `w:comment` element identified by `comment_id`, or |None| if not found.z(./w:comment[@w:id='z'])[1]N©Úxpath)r"   r(   Úcomment_elmss   && r   Úget_comment_by_idÚCT_Comments.get_comment_by_id?   s+   € à—z‘zÐ$8¸¸ÀFÐ"KÓLˆß".ˆ|˜A�Ð8°DÐ8r   c               ó   € V ^8„  d   QhRR/# )r   r   r)   r   )r   s   "r   r   r   D   s   € ÷ ñ ¨Cñ r   c                óü   € V P                  R4       Uu. uF  p\        V4      NK  	  pp\        VRR7      ^,           pVR8:  d   V# \        \	        V4      4       F  w  rEWE8w  g   K  Vu # 	  \        V4      # u upi )aF  The next available comment id.

According to the schema, this can be any positive integer, as big as you like, and the
default mechanism is to use `max() + 1`. However, if that yields a value larger than will
fit in a 32-bit signed integer, we take a more deliberate approach to use the first
ununsed integer starting from 0.
z./w:comment/@w:id)Údefaultéÿÿÿÿiÿÿÿ)r,   r)   ÚmaxÚ	enumerateÚsortedÚlen)r"   ÚxÚused_idsr#   ÚexpectedÚactuals   &     r   r    Ú&CT_Comments._next_available_comment_idD   s|   € ð %)§J¡JÐ/BÔ$CÓDÑ$C˜q”C˜–FÑ$CˆÐDä�h¨Ô+¨aÕ/ˆà�iÔØˆNô !*¬&°Ó*:Ö ;ÑˆHØÖ!Ø’ñ !<ô �8‹}Ðùò Es   ”A9r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__annotations__r   r$   r%   r.   r    Ú__static_attributes__r   r   r   r   r      s-   ‡ ñð "Ó!á˜Ó%€Gõõ>9÷
ñ r   r   c                  óò   € ] tR t^[t$ Rt]! R]4      tR]R&   ]! R]	4      t
R]R&   ]! R]	4      tR	]R
&   ]! R]4      tR]R&   ]! RRR7      t]! RRR7      tR]R&   R]R&   R]R&   R]R&   ]R R l4       tRtR# )r   aA  `w:comment` element, representing a single comment.

A comment is a so-called "story" and can contain paragraphs and tables much like a table-cell.
While probably most often used for a single sentence or phrase, a comment can contain rich
content, including multiple rich-text paragraphs, hyperlinks, images, and tables.
zw:idr)   Úidzw:authorÚstrÚauthorz
w:initialsz
str | NoneÚinitialszw:datezdt.datetime | NoneÚdatezw:p)Ú
successorszw:tblzCallable[[], CT_P]Úadd_pz
list[CT_P]Úp_lstzlist[CT_Tbl]Útbl_lstzCallable[[CT_Tbl], CT_Tbl]Ú_insert_tblc               ó   € V ^8„  d   QhRR/# )r   r   zlist[CT_P | CT_Tbl]r   )r   s   "r   r   ÚCT_Comment.__annotate__z   s   € ÷ -ñ -Ð(;ñ -r   c                ó$   € V P                  R4      # )z8Generate all `w:p` and `w:tbl` elements in this comment.z./w:p | ./w:tblr+   )r"   s   &r   Úinner_content_elementsÚ!CT_Comment.inner_content_elementsy   s   € ð �z‰zÐ+Ó,Ð,r   r   N)r=   r>   r?   r@   rA   r   r	   rE   rB   r
   rG   r   rH   r   rI   r   ÚpÚtblÚpropertyrR   rC   r   r   r   r   r   [   s¡   ‡ ññ   Ð(8Ó9€BˆÓ9Ù# J°	Ó:€FˆCÓ:Ù,Ø�ió€Hˆjó ñ  1Ø�+ó €DÐ
ó ñ 	�5 RÔ(€AÙ
�W¨Ô
,€Cð ÓØÓØÓØ+Ó+àô-ó ô-r   r   )rA   Ú
__future__r   ÚdatetimeÚdtÚtypingr   r   r   Údocx.oxml.nsr   Údocx.oxml.parserr   Údocx.oxml.simpletypesr   r	   r
   Údocx.oxml.xmlchemyr   r   r   r   Údocx.oxml.tabler   Údocx.oxml.text.paragraphr   r   r   r   r   r   Ú<module>ra      sJ   ðÙ :å "ã ß 0Ñ 0å  Ý &ß JÑ Jß `Ó `çÝ&Ý-ôF�/ô FôR!-�ö !-r   