Ë
    œ,hF  ã                  ót   — d Z ddlmZ ddlZddlmZmZmZ ddlm	Z
 ddlmZ erddlmZ ddlmZ ddd	„Zd
„ Zy)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                óú   — | €
t        «       n| } t        dt        j                  | «      j                  «      }|j
                  t        j                  k7  rd}t        || |j
                  fz  «      ‚|j                  S )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)ÚdocxÚdocument_partÚtmpls      úJ/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/docx/api.pyr	   r	      sn   € ð $( <ÔÔ°T€DÜ˜¬¯©°dÓ);×)NÑ)NÓO€MØ×!Ñ!¤R×%9Ñ%9Ò9ØCˆÜ˜  }×'AÑ'AÐ BÑBÓCÐCØ×!Ñ!Ð!ó    c                 ó   — t         j                  j                  t        «      d   } t         j                  j	                  | dd«      S )z6Return the path to the built-in default .docx package.r   Ú	templateszdefault.docx)ÚosÚpathÚsplitÚ__file__Újoin)Ú_thisdirs    r   r   r   "   s0   € äw‰w}‰}œXÓ& qÑ)€HÜ7‰7<‰<˜ +¨~Ó>Ð>r   )N)r   zstr | IO[bytes] | NoneÚreturnÚDocumentObject)Ú__doc__Ú
__future__r   r   Útypingr   r   r   Údocx.opc.constantsr   r   Údocx.packager   Údocx.documentr	   r"   Údocx.parts.documentr
   r   © r   r   ú<module>r+      s1   ðñõ
 #ã 	ß *Ñ *å 1Ý  áÝ8Ý0ô"ó?r   