Ë è†XjFãót—dZddlmZddlZddlmZmZmZddlm Z ddl m Z er ddl mZddlmZd d d „Zd „Zy) 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|}tdtj|«j«}|j t jk7rd}t|||j fz«‚|jS)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_pathrrÚopenÚmain_document_partÚ content_typeÚCTÚWML_DOCUMENT_MAINÚ ValueErrorÚdocument)ÚdocxÚ document_partÚtmpls ú\/mnt/ssd/data/Dropbox/adrian/vault-secondbrain/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ó—tjjt«d}tjj |dd«S)z6Return the path to the built-in default .docx package.rÚ templatesz default.docx)ÚosÚpathÚsplitÚ__file__Újoin)Ú_thisdirs rr r "s0€äw‰w}‰}œXÓ& qÑ)€HÜ 7‰7<‰<˜ +¨~Ó >Ð>r)N)rzstr | IO[bytes] | NoneÚreturnÚDocumentObject)Ú__doc__Ú __future__rrÚtypingrrrÚdocx.opc.constantsrrÚ docx.packagerÚ docx.documentr r"Údocx.parts.documentr r ©rrúr+s1ðñõ #ã ß*Ñ*å1Ý áÝ8Ý0ô "ó?r