+
    ó°iF  ã                  óˆ   € 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 ]'       d   ^ RIHt ^ RIHt RR R	 lltR
 tR# )zŸDirectly exposed API functions and classes, :func:`Document` for now.

Provides a syntactically more convenient API for interacting with the OpcPackage graph.
)ÚannotationsN)ÚIOÚTYPE_CHECKINGÚcast)ÚCONTENT_TYPE)ÚPackage)ÚDocument)ÚDocumentPartc               ó    € V ^8„  d   QhRRRR/# )é   Údocxzstr | IO[bytes] | NoneÚreturnÚDocumentObject© )Úformats   "ÚO/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/docx/api.pyÚ__annotate__r      s   € ÷ "ñ "Ð)ð "°^ñ "ó    c                ó
  € V f   \        4       MT p \        R\        P                  ! V 4      P                  4      pVP
                  \        P                  8w  d    Rp\        W VP
                  3,          4      hVP                  # )zÞReturn a |Document| object loaded from `docx`, where `docx` can be either a path
to a ``.docx`` file (a string) or a file-like object.

If `docx` is missing or ``None``, the built-in default document "template" is
loaded.
r	   z2file '%s' is not a Word file, content type is '%s')
Ú_default_docx_pathr   r   ÚopenÚmain_document_partÚcontent_typeÚCTÚWML_DOCUMENT_MAINÚ
ValueErrorÚdocument)r   Údocument_partÚtmpls   &  r   r   r      sl   € ð $(¢<ÔÔ°T€DÜ˜¬¯ª°dÓ);×)NÑ)NÓO€MØ×!Ñ!¤R×%9Ñ%9Ô9ØCˆÜ˜ }×'AÑ'AÐ BÕBÓCÐCØ×!Ñ!Ð!r   c                 ó˜   € \         P                  P                  \        4      ^ ,          p \         P                  P	                  V RR4      # )z6Return the path to the built-in default .docx package.Ú	templateszdefault.docx)ÚosÚpathÚsplitÚ__file__Újoin)Ú_thisdirs    r   r   r   "   s0   € äw‰w}‰}œXÓ& qÕ)€HÜ7‰7<‰<˜ +¨~Ó>Ð>r   )N)Ú__doc__Ú
__future__r   r!   Útypingr   r   r   Údocx.opc.constantsr   r   Údocx.packager   Údocx.documentr   r   Údocx.parts.documentr	   r   r   r   r   Ú<module>r.      s1   ðñõ
 #ã 	ß *Ñ *å 1Ý  çÝ8Ý0÷"ô?r   