+
    Aåûj<  ã                   ó~   € R t ^ RIHt ^ RIHt RR./tR tR tR t]! RR7      R 4       t	]! RR7      RR	 l4       t
R
# )z‰Module with some functions for MathML, like transforming MathML
content in MathML presentation.

To use this module, you will need lxml.
)ÚPath)Údoctest_depends_onÚlxmlc                 ó"   € R V ,           R,           # )zì<math xmlns:mml="http://www.w3.org/1998/Math/MathML"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.w3.org/1998/Math/MathML
        http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd">z</math>© )Úss   &Ú[C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\utilities\mathml\__init__.pyÚadd_mathml_headersr	      s(   € ðBð EFõFð IRõRð Ró    c                 óž   € ^ RI pVP                  R8¼  d,   ^ RIHp V! V 4      P	                  V4      P                  4       # ^ RIHp V! W4      # )é    N)Úfiles)Úread_binary)é   é
   )ÚsysÚversion_infoÚimportlib.resourcesr   ÚjoinpathÚ
read_bytesr   )ÚpkgnameÚfilenamer   r   r   s   &&   r   Ú_read_binaryr      sD   € Ûà
×Ñ˜7Ô"å-Ù�W‹~×&Ñ& xÓ0×;Ñ;Ó=Ð=õ 	4Ù˜7Ó-Ð-r
   c                 óœ   € V R 8X  d   Rp MV R8X  d   Rp M	V R8X  d   Rp V R9   d   \        RV 4      pV# \        V 4      P                  4       pV# )úmathml/data/simple_mmlctop.xslúsimple_mmlctop.xslúmathml/data/mmlctop.xslúmmlctop.xslzmathml/data/mmltex.xslú
mmltex.xslzsympy.utilities.mathml.data)r   r   r   )r   r   r   )ÚxslÚxslbytess   & r   Ú	_read_xslr!   #   sb   € à
Ð.Ô.Ø"‰Ø	Ð)Ô	)Ø‰Ø	Ð(Ô	(Øˆà
ÐAÔAÜÐ =¸sÓCˆð €Oô ˜“9×'Ñ'Ó)ˆà€Or
   )Úmodulesc                ó  € ^ RI Hp VP                  RR7      pVP                  P                  pVP                  \        V4      VR7      pVP                  WTR7      pVP                  WR7      pV! V4      p\        V4      pV# )aÂ  Apply a xsl to a MathML string.

Parameters
==========

mml
    A string with MathML code.
xsl
    A string giving the name of an xsl (xml stylesheet) file which can be
    found in sympy/utilities/mathml/data. The following files are supplied
    with SymPy:

    - mmlctop.xsl
    - mmltex.xsl
    - simple_mmlctop.xsl

    Alternatively, a full path to an xsl file can be given.

Examples
========

>>> from sympy.utilities.mathml import apply_xsl
>>> xsl = 'simple_mmlctop.xsl'
>>> mml = '<apply> <plus/> <ci>a</ci> <ci>b</ci> </apply>'
>>> res = apply_xsl(mml,xsl)
>>> print(res)
<?xml version="1.0"?>
<mrow xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>a</mi>
  <mo> + </mo>
  <mi>b</mi>
</mrow>
)ÚetreeF)Úresolve_entities)Úparser)Úaccess_control)	r   r$   Ú	XMLParserÚXSLTAccessControlÚDENY_ALLÚXMLr!   ÚXSLTÚstr)	Úmmlr   r$   r&   Úacr   Ú	transformÚdocÚresults	   &&       r   Ú	apply_xslr3   4   sv   € õF à�_‰_¨eˆ_Ó4€FØ	×	 Ñ	 ×	)Ñ	)€Bà�	‰	”)˜C“.¨ˆ	Ó0€AØ—
‘
˜1�
Ó0€IØ
�)‰)�Cˆ)Ó
'€CÙ�s‹^€FÜˆF‹€AØ€Hr
   c                ó†   € V P                  R4      '       g   \        V 4      p V'       d   \        V R4      # \        V R4      # )aN  Transforms a document in MathML content (like the one that sympy produces)
in one document in MathML presentation, more suitable for printing, and more
widely accepted

Examples
========

>>> from sympy.utilities.mathml import c2p
>>> mml = '<apply> <exp/> <cn>2</cn> </apply>'
>>> c2p(mml,simple=True) != c2p(mml,simple=False)
True

z<mathr   r   )Ú
startswithr	   r3   )r.   Úsimples   &&r   Úc2pr7   d   s<   € ð  �>‰>˜'×"Ò"Ü  Ó%ˆçÜ˜Ð>Ó?Ð?ä�SÐ3Ó4Ð4r
   N)r3   r7   )r   )F)Ú__doc__Úpathlibr   Úsympy.utilities.decoratorr   Ú__doctest_requires__r	   r   r!   r3   r7   r   r
   r   Ú<module>r<      sd   ðñõ å 8ð -¨v¨hÐ7Ð òRò
.òñ" ˜IÔ&ñ,ó 'ð,ñ^ ˜IÔ&ó5ó 'ò5r
   