netstar-ai-chat 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (807) hide show
  1. package/README.md +112 -0
  2. package/dist/ChatPanel/AgentPicker.vue.d.ts +94 -0
  3. package/dist/ChatPanel/SubAgentNode.vue.d.ts +23 -0
  4. package/dist/ChatPanel/ToolCallNode.vue.d.ts +33 -0
  5. package/dist/ChatPanel/ToolRenders/SaveModuleDocsRenderer.vue.d.ts +33 -0
  6. package/dist/ChatPanel/ToolRenders/defaultToolRenderers.d.ts +4 -0
  7. package/dist/ChatPanel/WriteTodosTopPanel.vue.d.ts +20 -0
  8. package/dist/ChatPanel/index.vue.d.ts +117 -0
  9. package/dist/CodeBlockNode-CTasgSPs.cjs +1 -0
  10. package/dist/CodeBlockNode-DuMNoiwD.js +1245 -0
  11. package/dist/Serializer-CXJ0fE5z.js +249 -0
  12. package/dist/Serializer-fgUokho9.cjs +1 -0
  13. package/dist/StreamMarkdown/StreamMarkdown.vue.d.ts +29 -0
  14. package/dist/StreamMarkdown/components/CodeBlockNode.vue.d.ts +13 -0
  15. package/dist/StreamMarkdown/components/ThinkNode.vue.d.ts +20 -0
  16. package/dist/StreamMarkdown/components/copyToClipboard.d.ts +5 -0
  17. package/dist/StreamMarkdown/type.d.ts +9 -0
  18. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-ConVUPun.cjs +1 -0
  19. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue-yxSn8jeO.js +5 -0
  20. package/dist/_baseClone-D3YkUt7B.cjs +1 -0
  21. package/dist/_baseClone-M9Eo-ngy.js +228 -0
  22. package/dist/abap-pyAsOErv.cjs +1 -0
  23. package/dist/abap-w3onj0rB.js +3 -0
  24. package/dist/abnfDiagram-VRR7QNED-BZIwESBc.js +89 -0
  25. package/dist/abnfDiagram-VRR7QNED-CbMhyWtU.cjs +1 -0
  26. package/dist/actionscript-3-BOqnK-sH.js +3 -0
  27. package/dist/actionscript-3-CzNUYu3T.cjs +1 -0
  28. package/dist/ada-BLw2DNCr.cjs +1 -0
  29. package/dist/ada-ZOYhNhP6.js +3 -0
  30. package/dist/andromeeda-BK7KK1TI.cjs +1 -0
  31. package/dist/andromeeda-D6zxFn77.js +4 -0
  32. package/dist/angular-html-CM15CIR-.js +16 -0
  33. package/dist/angular-html-CtqN3w77.cjs +1 -0
  34. package/dist/angular-ts-BZbyXOyX.cjs +1 -0
  35. package/dist/angular-ts-D_WjBMhi.js +18 -0
  36. package/dist/apache-DdGV2gIX.cjs +1 -0
  37. package/dist/apache-rcSYX-LI.js +3 -0
  38. package/dist/apex-BQsSAFNB.cjs +1 -0
  39. package/dist/apex-C-w0vHe4.js +3 -0
  40. package/dist/apl-CFUDRIMH.cjs +1 -0
  41. package/dist/apl-DEY32kA8.js +16 -0
  42. package/dist/applescript-BAJgLR5K.cjs +1 -0
  43. package/dist/applescript-BCUU8TOE.js +3 -0
  44. package/dist/ara-B4SncdQz.js +3 -0
  45. package/dist/ara-DSlRoA1z.cjs +1 -0
  46. package/dist/arc-BxwVc1OP.js +80 -0
  47. package/dist/arc-DcUn9_NX.cjs +1 -0
  48. package/dist/architecture-TIHT7OUA-BePVesqR.cjs +1 -0
  49. package/dist/architecture-TIHT7OUA-CdCN4XW2.js +3 -0
  50. package/dist/architectureDiagram-ZJ3FMSHR-DhyGcAG9.cjs +36 -0
  51. package/dist/architectureDiagram-ZJ3FMSHR-pJBnYWx2.js +4120 -0
  52. package/dist/array-CApNbSU9.js +6 -0
  53. package/dist/array-DZSRzHA_.cjs +1 -0
  54. package/dist/asciidoc-CSnR5M0p.cjs +1 -0
  55. package/dist/asciidoc-DZyZo06c.js +3 -0
  56. package/dist/asm-BmB_X3A_.js +3 -0
  57. package/dist/asm-zib-OSTh.cjs +1 -0
  58. package/dist/astro-BApYg9cK.cjs +1 -0
  59. package/dist/astro-Bk1s2QoB.js +16 -0
  60. package/dist/aurora-x-BF78MGx3.cjs +1 -0
  61. package/dist/aurora-x-Tc1Eqrl5.js +4 -0
  62. package/dist/awk-BYQNbw8p.cjs +1 -0
  63. package/dist/awk-C3bvZdNY.js +3 -0
  64. package/dist/ayu-dark-ClxspuCB.cjs +1 -0
  65. package/dist/ayu-dark-cVPWKu1C.js +4 -0
  66. package/dist/ballerina-BPk8Fg7E.cjs +1 -0
  67. package/dist/ballerina-Bp92mgFe.js +3 -0
  68. package/dist/bat-7FZ8F5O4.cjs +1 -0
  69. package/dist/bat-CXbg7Xg3.js +3 -0
  70. package/dist/beancount-DCtU0rYp.cjs +1 -0
  71. package/dist/beancount-DmmCjryt.js +3 -0
  72. package/dist/berry-D8ITycFg.cjs +1 -0
  73. package/dist/berry-DiFcr1nX.js +3 -0
  74. package/dist/bibtex-CmGvn0fl.js +3 -0
  75. package/dist/bibtex-YVvMHIoL.cjs +1 -0
  76. package/dist/bicep-DDIPSBse.cjs +1 -0
  77. package/dist/bicep-zPtP3CSU.js +3 -0
  78. package/dist/blade-aYJa4e4Z.js +18 -0
  79. package/dist/blade-s0X0QSRt.cjs +1 -0
  80. package/dist/blockDiagram-677ZJIJ3-BXsjcvEy.cjs +132 -0
  81. package/dist/blockDiagram-677ZJIJ3-DUfdZ59z.js +3160 -0
  82. package/dist/bsl-2e5sJ_f2.js +5 -0
  83. package/dist/bsl-Boo9Znnk.cjs +1 -0
  84. package/dist/c-CtSegEhe.cjs +1 -0
  85. package/dist/c-DOHa0HhF.js +5 -0
  86. package/dist/c4Diagram-LMCZKHZV-CupZJT9_.cjs +10 -0
  87. package/dist/c4Diagram-LMCZKHZV-XVBQkiBu.js +2962 -0
  88. package/dist/cadence-BdOzwJ16.cjs +1 -0
  89. package/dist/cadence-DKZt82SN.js +3 -0
  90. package/dist/cairo-D7N4wIlJ.js +5 -0
  91. package/dist/cairo-yxjWoJOX.cjs +1 -0
  92. package/dist/catppuccin-frappe-BgIo7C1L.js +4 -0
  93. package/dist/catppuccin-frappe-lMRSGXsq.cjs +1 -0
  94. package/dist/catppuccin-latte-DACltl2d.js +4 -0
  95. package/dist/catppuccin-latte-DvhQrqwX.cjs +1 -0
  96. package/dist/catppuccin-macchiato-D_87UlHU.js +4 -0
  97. package/dist/catppuccin-macchiato-SYJuf56p.cjs +1 -0
  98. package/dist/catppuccin-mocha-btILUzM9.js +4 -0
  99. package/dist/catppuccin-mocha-nV-o7gzF.cjs +1 -0
  100. package/dist/channel-B_58s50a.js +5 -0
  101. package/dist/channel-CftZUi3r.cjs +1 -0
  102. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  103. package/dist/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
  104. package/dist/chunk-32BRIVSS-DUxAI9Oa.cjs +1 -0
  105. package/dist/chunk-32BRIVSS-O-rQI_k2.js +61 -0
  106. package/dist/chunk-52WLFC77-B-_tvcsL.js +590 -0
  107. package/dist/chunk-52WLFC77-SZUA2rNI.cjs +10 -0
  108. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  109. package/dist/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
  110. package/dist/chunk-7BUUIJ7U-B018BbRy.js +82 -0
  111. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  112. package/dist/chunk-C7G6YPKG-D1CB1CXU.js +67 -0
  113. package/dist/chunk-C7G6YPKG-HH-he6SO.cjs +1 -0
  114. package/dist/chunk-EX3LRPZG-D0TH5Vrj.js +2046 -0
  115. package/dist/chunk-EX3LRPZG-DgwSD7VR.cjs +231 -0
  116. package/dist/chunk-FWX5IMBZ-CCaqRbxb.cjs +1 -0
  117. package/dist/chunk-FWX5IMBZ-c8mJHkIt.js +57 -0
  118. package/dist/chunk-HOUHSVGY-CqEBw5yz.cjs +1 -0
  119. package/dist/chunk-HOUHSVGY-D13Pk7nF.js +277 -0
  120. package/dist/chunk-ICXQ74PX-Bq9mKzdP.js +1369 -0
  121. package/dist/chunk-ICXQ74PX-TcRXMN1n.cjs +2 -0
  122. package/dist/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
  123. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  124. package/dist/chunk-KEIR6QF5-CNjhxe7N.cjs +161 -0
  125. package/dist/chunk-KEIR6QF5-yJg1YNda.js +21383 -0
  126. package/dist/chunk-MOJQB5TN-BOC0rggK.js +490 -0
  127. package/dist/chunk-MOJQB5TN-CSjPQYln.cjs +88 -0
  128. package/dist/chunk-OGEWGWER-BYjMhJGb.js +32 -0
  129. package/dist/chunk-OGEWGWER-Bzj7N4Ii.cjs +1 -0
  130. package/dist/chunk-PUDLZKDR-D18W-L-L.js +4142 -0
  131. package/dist/chunk-PUDLZKDR-JbFT5hiR.cjs +156 -0
  132. package/dist/chunk-Q4XR5HBZ-DATOcgxL.cjs +70 -0
  133. package/dist/chunk-Q4XR5HBZ-DwgV8nWo.js +1628 -0
  134. package/dist/chunk-RYQCIY6F-Budeukwp.cjs +1 -0
  135. package/dist/chunk-RYQCIY6F-CTIaeOkt.js +240 -0
  136. package/dist/chunk-V7JOEXUC-BYc3FcMK.js +3357 -0
  137. package/dist/chunk-V7JOEXUC-Wa1_qMKV.cjs +206 -0
  138. package/dist/chunk-VAUOI2AC-3AGHwQI8.cjs +1 -0
  139. package/dist/chunk-VAUOI2AC-D4COVrqB.js +10 -0
  140. package/dist/chunk-VR4S4FIN-BBKjPbG_.js +26 -0
  141. package/dist/chunk-VR4S4FIN-DXfCPsY8.cjs +1 -0
  142. package/dist/chunk-WYO6CB5R-DNtzmu_Z.cjs +127 -0
  143. package/dist/chunk-WYO6CB5R-DVUXWnvM.js +3736 -0
  144. package/dist/chunk-XXDRQBXY-DWq_A1Wb.js +9 -0
  145. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  146. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  147. package/dist/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
  148. package/dist/chunk-ZGVPDNZ5-CYGK4FNM.js +3736 -0
  149. package/dist/chunk-ZGVPDNZ5-Ch-mMgcC.cjs +62 -0
  150. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  151. package/dist/chunk-ZIRB5QZD-DLqc5SfA.js +1146 -0
  152. package/dist/clarity-DnwH_oaR.js +3 -0
  153. package/dist/clarity-mvj5EDZ5.cjs +1 -0
  154. package/dist/classDiagram-OUVF2IWQ-BPcmQYGc.js +30 -0
  155. package/dist/classDiagram-OUVF2IWQ-CMJ1dZOd.cjs +1 -0
  156. package/dist/classDiagram-v2-EOCWNBFH-CMJ1dZOd.cjs +1 -0
  157. package/dist/classDiagram-v2-EOCWNBFH-C_A6LIqp.js +30 -0
  158. package/dist/clojure-C64DxiGB.cjs +1 -0
  159. package/dist/clojure-DQex2ThW.js +3 -0
  160. package/dist/cmake-BvNQeWu_.cjs +1 -0
  161. package/dist/cmake-C4lGF15i.js +3 -0
  162. package/dist/cobol-B6D1w50i.cjs +1 -0
  163. package/dist/cobol-f_8vDiHm.js +10 -0
  164. package/dist/codeowners-a_Z0p9_y.js +3 -0
  165. package/dist/codeowners-jShtr2Jw.cjs +1 -0
  166. package/dist/codeql-B0nK9JGf.js +3 -0
  167. package/dist/codeql-svt7Eror.cjs +1 -0
  168. package/dist/coffee-CIzsduL9.cjs +1 -0
  169. package/dist/coffee-D2SRpDoy.js +5 -0
  170. package/dist/common-lisp-BX8N9UvD.js +3 -0
  171. package/dist/common-lisp-Dd1YOGnK.cjs +1 -0
  172. package/dist/coq-B9dKr70z.cjs +1 -0
  173. package/dist/coq-CvkpvpO8.js +3 -0
  174. package/dist/cose-bilkent-JH36ORCC-DpRqLdKD.js +2251 -0
  175. package/dist/cose-bilkent-JH36ORCC-J0CMLAR2.cjs +1 -0
  176. package/dist/cpp-9IaFKtqm.cjs +1 -0
  177. package/dist/cpp-BWBwL8H2.js +19 -0
  178. package/dist/crystal-Bu5wFOgG.cjs +1 -0
  179. package/dist/crystal-DZ0RRcQB.js +18 -0
  180. package/dist/csharp-BSn8IIds.js +3 -0
  181. package/dist/csharp-DL064tVH.cjs +1 -0
  182. package/dist/css-CARKKeVZ.js +5 -0
  183. package/dist/css-Dedc30a-.cjs +1 -0
  184. package/dist/csv-CyUbk12o.js +3 -0
  185. package/dist/csv-yb5ne98b.cjs +1 -0
  186. package/dist/cue-BMD_ZKqV.js +3 -0
  187. package/dist/cue-BsqD5mfq.cjs +1 -0
  188. package/dist/cynefin-VYW2F7L2-D56X6uF-.js +3 -0
  189. package/dist/cynefin-VYW2F7L2-DfMKgfBn.cjs +1 -0
  190. package/dist/cynefinDiagram-TSTJHNR4-Ccm1ka2e.cjs +62 -0
  191. package/dist/cynefinDiagram-TSTJHNR4-LkTzYNHk.js +349 -0
  192. package/dist/cypher-CmLM-pVb.cjs +1 -0
  193. package/dist/cypher-MBxXk8fI.js +3 -0
  194. package/dist/cytoscape.esm-BJfLlyzE.cjs +321 -0
  195. package/dist/cytoscape.esm-CjrrPC2e.js +18151 -0
  196. package/dist/d-B1zD62h2.cjs +1 -0
  197. package/dist/d-Dr6f0t8l.js +3 -0
  198. package/dist/d2_markstream-vue-C462TwwW.js +5 -0
  199. package/dist/d2_markstream-vue-hk4WzRHI.cjs +1 -0
  200. package/dist/dagre-Cdkj1zk3.js +1603 -0
  201. package/dist/dagre-RL-7--pi.cjs +1 -0
  202. package/dist/dagre-VKFMJZFB-BTuSjqsN.js +326 -0
  203. package/dist/dagre-VKFMJZFB-D-LL1taY.cjs +4 -0
  204. package/dist/dark-plus-BiFR5lqb.js +4 -0
  205. package/dist/dark-plus-g9uFu8Uo.cjs +1 -0
  206. package/dist/dart-B-IpsYek.cjs +1 -0
  207. package/dist/dart-BKVVcZnx.js +3 -0
  208. package/dist/dax-DGyoV51j.cjs +1 -0
  209. package/dist/dax-julDJwHn.js +3 -0
  210. package/dist/defaultLocale-aSMWOJHq.js +201 -0
  211. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  212. package/dist/desktop-C7pIXmgL.cjs +1 -0
  213. package/dist/desktop-DN7gePkB.js +3 -0
  214. package/dist/diagram-FQU43EPY-DXRLbyr1.cjs +3 -0
  215. package/dist/diagram-FQU43EPY-Nd_0dBIp.js +432 -0
  216. package/dist/diagram-G47NLZAW-C6QidYrt.cjs +24 -0
  217. package/dist/diagram-G47NLZAW-DsbgcrAn.js +525 -0
  218. package/dist/diagram-NH7WQ7WH-BIir8UdD.cjs +24 -0
  219. package/dist/diagram-NH7WQ7WH-LBvy80o5.js +134 -0
  220. package/dist/diagram-OA4YK3LP-B6zIeHZO.cjs +30 -0
  221. package/dist/diagram-OA4YK3LP-wIkZDLSU.js +300 -0
  222. package/dist/diagram-WEI45ONY-DoJT44KW.cjs +41 -0
  223. package/dist/diagram-WEI45ONY-DuODSE5u.js +214 -0
  224. package/dist/diff-Pd8fJfZO.cjs +1 -0
  225. package/dist/diff-jiFCwOef.js +3 -0
  226. package/dist/dist-BD0EaJeM.js +42 -0
  227. package/dist/dist-BPaCZ1IA.cjs +3 -0
  228. package/dist/dist-BtUTYFnJ.js +6360 -0
  229. package/dist/dist-BxWvDA4U.js +59 -0
  230. package/dist/dist-CCXt4qM3.cjs +8 -0
  231. package/dist/dist-CS9eMk17.js +1588 -0
  232. package/dist/dist-Cu0Z5KOd.cjs +12 -0
  233. package/dist/dist-DNGlMOWd.cjs +1 -0
  234. package/dist/docker-DMpUQ2UE.js +3 -0
  235. package/dist/docker-OqFhd4tF.cjs +1 -0
  236. package/dist/dotenv-BNXs3SVk.js +3 -0
  237. package/dist/dotenv-skQA6mID.cjs +1 -0
  238. package/dist/dracula-B9CfY-AT.cjs +1 -0
  239. package/dist/dracula-DiGCm6b4.js +4 -0
  240. package/dist/dracula-soft-C5LEeGj9.js +4 -0
  241. package/dist/dracula-soft-IAqLIxBv.cjs +1 -0
  242. package/dist/dream-maker-DMoKJVoA.js +3 -0
  243. package/dist/dream-maker-Kuay-eJE.cjs +1 -0
  244. package/dist/ebnfDiagram-CCIWWBDH-BPnqNNpq.js +100 -0
  245. package/dist/ebnfDiagram-CCIWWBDH-BVWfIZk7.cjs +1 -0
  246. package/dist/edge-DPKc6QBW.cjs +1 -0
  247. package/dist/edge-DewrpuZI.js +12 -0
  248. package/dist/elixir-BHncl6yR.js +5 -0
  249. package/dist/elixir-Bz8PD4t1.cjs +1 -0
  250. package/dist/elm-DFucj7BB.cjs +1 -0
  251. package/dist/elm-DQTVghsR.js +5 -0
  252. package/dist/emacs-lisp-BLYG10aJ.js +3 -0
  253. package/dist/emacs-lisp-DjdBmCDP.cjs +1 -0
  254. package/dist/erDiagram-Q63AITRT-BDhFo6C9.cjs +85 -0
  255. package/dist/erDiagram-Q63AITRT-DT6IAJLm.js +1727 -0
  256. package/dist/erb-BCBUKD2W.js +10 -0
  257. package/dist/erb-BrUkDVI_.cjs +1 -0
  258. package/dist/erlang-Dk9Hm-lN.cjs +1 -0
  259. package/dist/erlang-Hh_mGaXF.js +3 -0
  260. package/dist/eventmodeling-45OFAUF4-9NJTUpfs.cjs +1 -0
  261. package/dist/eventmodeling-45OFAUF4-DhmcBUQs.js +3 -0
  262. package/dist/everforest-dark-B8U5Kz_2.cjs +1 -0
  263. package/dist/everforest-dark-DPbo4JN4.js +4 -0
  264. package/dist/everforest-light-3-FCa2iD.cjs +1 -0
  265. package/dist/everforest-light-E_X_ZD6H.js +4 -0
  266. package/dist/exports-C67Wizt6.js +16990 -0
  267. package/dist/exports-C8Eu-cBn.cjs +261 -0
  268. package/dist/fennel-F2TJW9Cm.js +3 -0
  269. package/dist/fennel-RU1EYi0I.cjs +1 -0
  270. package/dist/find-8kzfNl8Q.js +107 -0
  271. package/dist/find-D49DDMOn.cjs +1 -0
  272. package/dist/fish--5Qbt4_-.cjs +1 -0
  273. package/dist/fish-Cl8O7-1O.js +3 -0
  274. package/dist/flowDiagram-23GEKE2U-BIAXSHCZ.cjs +1 -0
  275. package/dist/flowDiagram-23GEKE2U-FteV-tpU.js +17 -0
  276. package/dist/fluent-B0YyYoEC.js +3 -0
  277. package/dist/fluent-CqQ_wVqT.cjs +1 -0
  278. package/dist/fortran-fixed-form-BPVXUvGc.cjs +1 -0
  279. package/dist/fortran-fixed-form-Cxg1zLtO.js +5 -0
  280. package/dist/fortran-free-form-f48WwHdi.js +3 -0
  281. package/dist/fortran-free-form-wAUw7GO7.cjs +1 -0
  282. package/dist/fsharp-D4kfoNJ7.js +5 -0
  283. package/dist/fsharp-Dkh04On7.cjs +1 -0
  284. package/dist/ganttDiagram-NO4QXBWP-B8AFbqrz.js +3084 -0
  285. package/dist/ganttDiagram-NO4QXBWP-iuUxsjHH.cjs +292 -0
  286. package/dist/gdresource-C3LE_wel.js +10 -0
  287. package/dist/gdresource-DOgNDMAP.cjs +1 -0
  288. package/dist/gdscript-697ItOg3.js +3 -0
  289. package/dist/gdscript-AA2UfFO_.cjs +1 -0
  290. package/dist/gdshader-BahZb96R.js +3 -0
  291. package/dist/gdshader-Bf5fzism.cjs +1 -0
  292. package/dist/genie-DaIfgQYl.js +3 -0
  293. package/dist/genie-IAbcuR8x.cjs +1 -0
  294. package/dist/gherkin-0dxzekuL.js +3 -0
  295. package/dist/gherkin-BOoUZ55R.cjs +1 -0
  296. package/dist/git-commit-CQ35rNAw.js +5 -0
  297. package/dist/git-commit-CoIFbnBM.cjs +1 -0
  298. package/dist/git-rebase-BUotlrNG.js +5 -0
  299. package/dist/git-rebase-bioQjlhA.cjs +1 -0
  300. package/dist/gitGraph-TEB2WS4Q-DQ-Mge2t.cjs +1 -0
  301. package/dist/gitGraph-TEB2WS4Q-DuFCGfar.js +3 -0
  302. package/dist/gitGraphDiagram-IHSO6WYX-CpjxCJlh.js +729 -0
  303. package/dist/gitGraphDiagram-IHSO6WYX-TXisRU_i.cjs +106 -0
  304. package/dist/github-dark-BVSmXPiH.js +4 -0
  305. package/dist/github-dark-default-D_WiUS3j.cjs +1 -0
  306. package/dist/github-dark-default-VbvJ-ilw.js +4 -0
  307. package/dist/github-dark-dimmed-BVZ6NmlH.js +4 -0
  308. package/dist/github-dark-dimmed-CF-d-yzu.cjs +1 -0
  309. package/dist/github-dark-high-contrast-B28XrSlN.cjs +1 -0
  310. package/dist/github-dark-high-contrast-Cu_F5fce.js +4 -0
  311. package/dist/github-dark-lSLm2DGc.cjs +1 -0
  312. package/dist/github-light-5VJ9LmmZ.cjs +1 -0
  313. package/dist/github-light-Dtf7jHNG.js +4 -0
  314. package/dist/github-light-default-CfhvIofU.cjs +1 -0
  315. package/dist/github-light-default-ChKQp2aO.js +4 -0
  316. package/dist/github-light-high-contrast-2daONXzf.cjs +1 -0
  317. package/dist/github-light-high-contrast-CfdjYrkI.js +4 -0
  318. package/dist/gleam-DyHWdg1e.js +3 -0
  319. package/dist/gleam-uW2PZxh0.cjs +1 -0
  320. package/dist/glimmer-js-Ciof3QL9.js +14 -0
  321. package/dist/glimmer-js-DiIpfAHi.cjs +1 -0
  322. package/dist/glimmer-ts-BGK6t0VF.js +14 -0
  323. package/dist/glimmer-ts-D7kaiXm8.cjs +1 -0
  324. package/dist/glsl-BK7MJn4u.js +6 -0
  325. package/dist/glsl-QqXZ78Kg.cjs +1 -0
  326. package/dist/gnuplot-5XuWKCad.js +3 -0
  327. package/dist/gnuplot-CFHC6IzT.cjs +1 -0
  328. package/dist/go-Bv7fxmN-.cjs +1 -0
  329. package/dist/go-C_wi3fjb.js +3 -0
  330. package/dist/graphlib-B0pkl27u.cjs +1 -0
  331. package/dist/graphlib-DjREGp7-.js +340 -0
  332. package/dist/graphql--1t261Yk.js +15 -0
  333. package/dist/graphql-wVo4PHpT.cjs +1 -0
  334. package/dist/groovy-AC3I0XgS.cjs +1 -0
  335. package/dist/groovy-BmEdfp0z.js +3 -0
  336. package/dist/hack-C4FKqOSK.cjs +1 -0
  337. package/dist/hack-DK3t1k__.js +10 -0
  338. package/dist/haml-B3VLhRsZ.js +11 -0
  339. package/dist/haml-CQ-lzphw.cjs +1 -0
  340. package/dist/handlebars-POWurPLW.cjs +1 -0
  341. package/dist/handlebars-_qNUzqAO.js +14 -0
  342. package/dist/haskell-BVQlrU40.cjs +1 -0
  343. package/dist/haskell-CZshrN4v.js +3 -0
  344. package/dist/haxe-CIeDdEBx.js +3 -0
  345. package/dist/haxe-CidPNuKh.cjs +1 -0
  346. package/dist/hcl-BrEqO7Sq.cjs +1 -0
  347. package/dist/hcl-DRqyh8D_.js +3 -0
  348. package/dist/hjson-CVbBR8Ay.cjs +1 -0
  349. package/dist/hjson-D-HSEzgv.js +3 -0
  350. package/dist/hlsl-DQCtPnLa.js +3 -0
  351. package/dist/hlsl-ze_s5DJn.cjs +1 -0
  352. package/dist/houston-BscSB6JY.js +4 -0
  353. package/dist/houston-BtgI9cLW.cjs +1 -0
  354. package/dist/html-D_OBWe7R.js +11 -0
  355. package/dist/html-derivative-Dq3Sh7mm.cjs +1 -0
  356. package/dist/html-derivative-XT6VOD81.js +6 -0
  357. package/dist/html-mo6ldvys.cjs +1 -0
  358. package/dist/http-C2taPV9U.cjs +1 -0
  359. package/dist/http-CdMPSPdd.js +14 -0
  360. package/dist/hxml-CHo8HAT-.js +5 -0
  361. package/dist/hxml-Dkp_OvfK.cjs +1 -0
  362. package/dist/hy-DB6h75gj.js +3 -0
  363. package/dist/hy-JhxQ7Sq3.cjs +1 -0
  364. package/dist/imba-BMaY4ENg.cjs +1 -0
  365. package/dist/imba-B_ww4ZTP.js +5 -0
  366. package/dist/index.cjs +352 -0
  367. package/dist/index.d.ts +12 -0
  368. package/dist/index.mjs +25941 -0
  369. package/dist/index2-Db29305J.cjs +1 -0
  370. package/dist/index2-QpsswhC2.js +129 -0
  371. package/dist/index3-B9UVcR3x.cjs +1 -0
  372. package/dist/index3-CSFQ35FU.js +125 -0
  373. package/dist/index4-BjmzmXkZ.cjs +2 -0
  374. package/dist/index4-CzKbdrmD.js +1166 -0
  375. package/dist/index5-CjNnYoXJ.js +688 -0
  376. package/dist/index5-CvMqoYtf.cjs +1 -0
  377. package/dist/index6-BUkE1lni.js +468 -0
  378. package/dist/index6-DwZeyaka.cjs +1 -0
  379. package/dist/index7-CCL1p1Eh.cjs +1 -0
  380. package/dist/index7-D-76uUB1.js +7 -0
  381. package/dist/info-DKCQHKI2-CVAfu3m_.cjs +1 -0
  382. package/dist/info-DKCQHKI2-X1UEZeu5.js +3 -0
  383. package/dist/infoDiagram-FWYZ7A6U-BQ-pmobf.js +20 -0
  384. package/dist/infoDiagram-FWYZ7A6U-BTUkuUAu.cjs +2 -0
  385. package/dist/infographic_markstream-vue-DH5naZYC.js +5 -0
  386. package/dist/infographic_markstream-vue-DMdeL6IU.cjs +1 -0
  387. package/dist/ini-1ngrKrS7.js +3 -0
  388. package/dist/ini-DrnN5Bei.cjs +1 -0
  389. package/dist/init-07zIhv_j.cjs +1 -0
  390. package/dist/init-Co4dhKfe.js +15 -0
  391. package/dist/isEmpty-9fTBY8_5.js +929 -0
  392. package/dist/isEmpty-DaIHfoaK.cjs +1 -0
  393. package/dist/ishikawaDiagram-FXEZZL3T-DAFpMtyi.cjs +70 -0
  394. package/dist/ishikawaDiagram-FXEZZL3T-Dldh7OZP.js +719 -0
  395. package/dist/java-CCeor0rw.js +5 -0
  396. package/dist/java-DtOeEWAB.cjs +1 -0
  397. package/dist/javascript-1Zv2m4qT.cjs +1 -0
  398. package/dist/javascript-Bx27vxbw.js +5 -0
  399. package/dist/jinja-Bo4OY5rp.cjs +1 -0
  400. package/dist/jinja-DUV-rjqE.js +5 -0
  401. package/dist/jison-BHS26PqW.cjs +1 -0
  402. package/dist/jison-lY_a1uD8.js +5 -0
  403. package/dist/journeyDiagram-5HDEW3XC-BoJvuLAJ.cjs +139 -0
  404. package/dist/journeyDiagram-5HDEW3XC-DWc-P146.js +884 -0
  405. package/dist/json-As0Z6gXq.js +5 -0
  406. package/dist/json-B31_sYlO.cjs +1 -0
  407. package/dist/json5-B0AZLeeE.cjs +1 -0
  408. package/dist/json5-CkR44bl5.js +3 -0
  409. package/dist/jsonc-BhRQOhO0.js +3 -0
  410. package/dist/jsonc-zSGaK820.cjs +1 -0
  411. package/dist/jsonl-BWEDeKY6.js +3 -0
  412. package/dist/jsonl-mSW-3clM.cjs +1 -0
  413. package/dist/jsonnet-D8xj-VWe.js +3 -0
  414. package/dist/jsonnet-xnK8ISOr.cjs +1 -0
  415. package/dist/jssm-BqqNlOWn.js +3 -0
  416. package/dist/jssm-Dc68VWf8.cjs +1 -0
  417. package/dist/jsx-CHdPoawR.cjs +1 -0
  418. package/dist/jsx-DcWc-BUA.js +5 -0
  419. package/dist/julia-A2t8dw8p.cjs +1 -0
  420. package/dist/julia-JllIpLrt.js +16 -0
  421. package/dist/kanagawa-dragon-C_H008Ji.cjs +1 -0
  422. package/dist/kanagawa-dragon-CzUH0vOV.js +4 -0
  423. package/dist/kanagawa-lotus-CWHrabz1.js +4 -0
  424. package/dist/kanagawa-lotus-DuABjfU_.cjs +1 -0
  425. package/dist/kanagawa-wave-B27tzldJ.js +4 -0
  426. package/dist/kanagawa-wave-D93njvJc.cjs +1 -0
  427. package/dist/kanban-definition-HUTT4EX6-4QNogezI.js +975 -0
  428. package/dist/kanban-definition-HUTT4EX6-CSpYoE2w.cjs +89 -0
  429. package/dist/katex-mzuGQl-k.cjs +257 -0
  430. package/dist/katex-uQfgtQZ-.js +21962 -0
  431. package/dist/kotlin-CkALtvL4.js +3 -0
  432. package/dist/kotlin-x64ufdmW.cjs +1 -0
  433. package/dist/kusto-Cc3N9caa.js +3 -0
  434. package/dist/kusto-YvjJ-Hwr.cjs +1 -0
  435. package/dist/languageIconExtended-5rP5TRI7.cjs +116 -0
  436. package/dist/languageIconExtended-BKBNbfml.js +37 -0
  437. package/dist/laserwave-Q0rnzsLB.js +4 -0
  438. package/dist/laserwave-TFMEGQQo.cjs +1 -0
  439. package/dist/latex-B4owy79D.js +5 -0
  440. package/dist/latex-DPkqFaSl.cjs +1 -0
  441. package/dist/lean-CYVERefS.cjs +1 -0
  442. package/dist/lean-Dg5VYRtH.js +3 -0
  443. package/dist/less-BW5l_msz.js +3 -0
  444. package/dist/less-DKjtszmK.cjs +1 -0
  445. package/dist/light-plus-D1TTTooO.js +4 -0
  446. package/dist/light-plus-lbGw82Zw.cjs +1 -0
  447. package/dist/line-QnKkzT3y.js +34 -0
  448. package/dist/line-umMVu17Q.cjs +1 -0
  449. package/dist/linear-Cl2-QuPP.cjs +1 -0
  450. package/dist/linear-D5gAG4Dc.js +289 -0
  451. package/dist/liquid-DOhZfMRk.cjs +1 -0
  452. package/dist/liquid-DbDSSGUn.js +14 -0
  453. package/dist/log-C02Mufkv.js +3 -0
  454. package/dist/log-Dn7sU6Qz.cjs +1 -0
  455. package/dist/logo-CCpvPvYW.cjs +1 -0
  456. package/dist/logo-CESV6ppB.js +3 -0
  457. package/dist/lua-BWV9zmiO.js +6 -0
  458. package/dist/lua-BZylxbuX.cjs +1 -0
  459. package/dist/luau-CO1iqemL.js +3 -0
  460. package/dist/luau-D5ttg_a3.cjs +1 -0
  461. package/dist/make-BorM9pEX.js +3 -0
  462. package/dist/make-OoJyrwI_.cjs +1 -0
  463. package/dist/map-CnWYCApZ.cjs +1 -0
  464. package/dist/map-DmTyBWxT.js +16 -0
  465. package/dist/markdown-Dehhcpca.cjs +1 -0
  466. package/dist/markdown-bvZ2LFQ7.js +3 -0
  467. package/dist/marko-9qP7O73P.js +14 -0
  468. package/dist/marko-CkDNu79_.cjs +1 -0
  469. package/dist/material-theme-BkOXIsau.cjs +1 -0
  470. package/dist/material-theme-RBxZ7zcK.js +4 -0
  471. package/dist/material-theme-darker-CDq_a3lh.cjs +1 -0
  472. package/dist/material-theme-darker-CJJd5EpQ.js +4 -0
  473. package/dist/material-theme-lighter-0ylr_FPD.js +4 -0
  474. package/dist/material-theme-lighter-CSQ2VYal.cjs +1 -0
  475. package/dist/material-theme-ocean-BlU8W8uQ.js +4 -0
  476. package/dist/material-theme-ocean-kObtq4AQ.cjs +1 -0
  477. package/dist/material-theme-palenight-D1I1vvpR.cjs +1 -0
  478. package/dist/material-theme-palenight-Di4FHq0q.js +4 -0
  479. package/dist/matlab-CL6DKGr6.cjs +1 -0
  480. package/dist/matlab-CWaaTDe1.js +3 -0
  481. package/dist/mdc-D8ytkkcj.js +12 -0
  482. package/dist/mdc-DixMyBlq.cjs +1 -0
  483. package/dist/mdx-BYvRDPL7.cjs +1 -0
  484. package/dist/mdx-CwEa7e3y.js +3 -0
  485. package/dist/mermaid-CX3dK12k.cjs +1 -0
  486. package/dist/mermaid-Z3pEhdr4.js +3 -0
  487. package/dist/mermaid-parser.core-Bhhg_EMD.js +638 -0
  488. package/dist/mermaid-parser.core-C0weIoPn.cjs +6 -0
  489. package/dist/mermaid.core-CbBmSLjg.js +817 -0
  490. package/dist/mermaid.core-CsEkQu6v.cjs +10 -0
  491. package/dist/mhchem-CGx3NnwF.js +1762 -0
  492. package/dist/mhchem-DMzgkAws.cjs +1 -0
  493. package/dist/min-dark-BRRwK1lu.js +4 -0
  494. package/dist/min-dark-BVfJIgG3.cjs +1 -0
  495. package/dist/min-light-Bqm_Wy8m.js +4 -0
  496. package/dist/min-light-CpbVExmt.cjs +1 -0
  497. package/dist/mindmap-definition-LN4V7U3C-B29e6fR_.cjs +96 -0
  498. package/dist/mindmap-definition-LN4V7U3C-BUSRrZX0.js +1008 -0
  499. package/dist/mipsasm-CmvfwuBg.js +3 -0
  500. package/dist/mipsasm-Dmsj67N7.cjs +1 -0
  501. package/dist/mojo-CFCIR8gy.cjs +1 -0
  502. package/dist/mojo-emijrbEC.js +3 -0
  503. package/dist/monokai-BQ1cZfkR.cjs +1 -0
  504. package/dist/monokai-KOBwLR5r.js +4 -0
  505. package/dist/move-BtWg9WSG.js +3 -0
  506. package/dist/move-DFUk3AJ3.cjs +1 -0
  507. package/dist/narrat-CE6tJc3S.js +3 -0
  508. package/dist/narrat-DfhrkvLZ.cjs +1 -0
  509. package/dist/netstar-ai-chat.css +2 -0
  510. package/dist/nextflow-D8RM97Up.cjs +1 -0
  511. package/dist/nextflow-DIQqWNA9.js +3 -0
  512. package/dist/nginx-8x8qY3Vr.js +5 -0
  513. package/dist/nginx-DFfEIEnK.cjs +1 -0
  514. package/dist/night-owl-C0QObreH.cjs +1 -0
  515. package/dist/night-owl-DS6PHOBH.js +4 -0
  516. package/dist/nim-BIbchMrJ.cjs +1 -0
  517. package/dist/nim-nIS1y_GA.js +20 -0
  518. package/dist/nix-BeOLKLuV.js +3 -0
  519. package/dist/nix-D5-3ErHy.cjs +1 -0
  520. package/dist/nord-CA9ic6hU.cjs +1 -0
  521. package/dist/nord-CqaxQpqw.js +4 -0
  522. package/dist/nushell-BNdP_dr6.cjs +1 -0
  523. package/dist/nushell-BSiFk-Bi.js +3 -0
  524. package/dist/objective-c-BoPltVXU.cjs +1 -0
  525. package/dist/objective-c-D4ODnIJv.js +3 -0
  526. package/dist/objective-cpp-BC5VHuf6.cjs +1 -0
  527. package/dist/objective-cpp-CFzZBsJ8.js +3 -0
  528. package/dist/ocaml-DjzTWzJR.cjs +1 -0
  529. package/dist/ocaml-ygyAtqA3.js +3 -0
  530. package/dist/one-dark-pro-BiLpJ3Ut.cjs +1 -0
  531. package/dist/one-dark-pro-n87lL4ex.js +4 -0
  532. package/dist/one-light-BHJM53xo.cjs +1 -0
  533. package/dist/one-light-DHV5uJWg.js +4 -0
  534. package/dist/ordinal-95c16pGC.js +65 -0
  535. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  536. package/dist/packet-7NZHBO7P-CWI1wkgR.js +3 -0
  537. package/dist/packet-7NZHBO7P-olpQFy19.cjs +1 -0
  538. package/dist/pascal-BCxfk_0K.cjs +1 -0
  539. package/dist/pascal-Cp3o03W3.js +3 -0
  540. package/dist/path-BECm07xX.js +85 -0
  541. package/dist/path-Kklx0M1v.cjs +1 -0
  542. package/dist/pegDiagram-2B236MQR-5may-nQh.cjs +1 -0
  543. package/dist/pegDiagram-2B236MQR-BlS7jv2X.js +94 -0
  544. package/dist/perl-B32vckzd.cjs +1 -0
  545. package/dist/perl-Caha11sj.js +16 -0
  546. package/dist/php-BZdcwfk-.cjs +1 -0
  547. package/dist/php-Dd_dF-AL.js +18 -0
  548. package/dist/pie-RZYD4A2V-CyOF19CW.js +3 -0
  549. package/dist/pie-RZYD4A2V-KV7VmSAP.cjs +1 -0
  550. package/dist/pieDiagram-ENE6RG2P-B5uibzAn.js +205 -0
  551. package/dist/pieDiagram-ENE6RG2P-peGWddZk.cjs +39 -0
  552. package/dist/plastic-CFgeDarh.cjs +1 -0
  553. package/dist/plastic-CfcNj0mY.js +4 -0
  554. package/dist/plsql-ak2Z7rg2.cjs +1 -0
  555. package/dist/plsql-x7conUc6.js +3 -0
  556. package/dist/po--CQNV_Eo.js +3 -0
  557. package/dist/po-DPOakX0_.cjs +1 -0
  558. package/dist/poimandres-B2kS4VCU.cjs +1 -0
  559. package/dist/poimandres-CSgoTNSr.js +4 -0
  560. package/dist/polar-DZoPeUtu.js +3 -0
  561. package/dist/polar-MGc0OyxL.cjs +1 -0
  562. package/dist/postcss-BAYQYIpZ.js +3 -0
  563. package/dist/postcss-DwSR_Nna.cjs +1 -0
  564. package/dist/powerquery-B9PiNUFU.js +3 -0
  565. package/dist/powerquery-bShN3jEf.cjs +1 -0
  566. package/dist/powershell-DGeGpYK6.cjs +1 -0
  567. package/dist/powershell-DmbTGv4H.js +3 -0
  568. package/dist/prisma-DcdjiSgR.js +3 -0
  569. package/dist/prisma-qjGbhxmN.cjs +1 -0
  570. package/dist/prolog-3Sh8TEBQ.js +3 -0
  571. package/dist/prolog-DOzeE1gX.cjs +1 -0
  572. package/dist/proto-BKmbHU2z.js +3 -0
  573. package/dist/proto-CQtcOaoZ.cjs +1 -0
  574. package/dist/pug-CQRIElQa.cjs +1 -0
  575. package/dist/pug-PKxYWb_o.js +12 -0
  576. package/dist/puppet-CMc7WUL-.js +3 -0
  577. package/dist/puppet-DXMJeNAQ.cjs +1 -0
  578. package/dist/purescript-BmHbM-d_.cjs +1 -0
  579. package/dist/purescript-CJV-ANk0.js +3 -0
  580. package/dist/python-Dgo3Imqt.js +3 -0
  581. package/dist/python-y8JZoKTg.cjs +1 -0
  582. package/dist/qml-DGggscta.cjs +1 -0
  583. package/dist/qml-znAETRGB.js +5 -0
  584. package/dist/qmldir-BSWsNKCW.js +3 -0
  585. package/dist/qmldir-Wb6QN41x.cjs +1 -0
  586. package/dist/qss-P1EyCZ52.js +3 -0
  587. package/dist/qss-b49hd9Kf.cjs +1 -0
  588. package/dist/quadrantDiagram-ABIIQ3AL-0axZxxZT.cjs +7 -0
  589. package/dist/quadrantDiagram-ABIIQ3AL-el6K_cdK.js +2001 -0
  590. package/dist/r-Q1Syx2NF.js +5 -0
  591. package/dist/r-VgF6jsMr.cjs +1 -0
  592. package/dist/racket-DIriCx31.cjs +1 -0
  593. package/dist/racket-DKb_r0U5.js +3 -0
  594. package/dist/radar-I7S5WNFK-BjTQsjn9.cjs +1 -0
  595. package/dist/radar-I7S5WNFK-DXOk1lH0.js +3 -0
  596. package/dist/railroad-3IZDKUUU-BudmQt4z.js +3 -0
  597. package/dist/railroad-3IZDKUUU-CVKrVFrS.cjs +1 -0
  598. package/dist/railroad-abnf-AHOZXSZD-BEuRVGxN.cjs +1 -0
  599. package/dist/railroad-abnf-AHOZXSZD-Bs1OWkDS.js +3 -0
  600. package/dist/railroad-ebnf-EBAXGLYW-Cih63c2z.cjs +1 -0
  601. package/dist/railroad-ebnf-EBAXGLYW-DN3oF240.js +3 -0
  602. package/dist/railroad-peg-LSFZ7HO6--hTz8Aio.js +3 -0
  603. package/dist/railroad-peg-LSFZ7HO6-DbHn_Dfb.cjs +1 -0
  604. package/dist/railroadDiagram-RFXS5EU6-CCPPrI-t.js +76 -0
  605. package/dist/railroadDiagram-RFXS5EU6-DI-XxXi4.cjs +1 -0
  606. package/dist/raku-DM0xz1qH.js +3 -0
  607. package/dist/raku-aSFsj2VS.cjs +1 -0
  608. package/dist/razor-ClXepwCg.cjs +1 -0
  609. package/dist/razor-DoIrK7wH.js +10 -0
  610. package/dist/red-CuDZBeel.js +4 -0
  611. package/dist/red-utLotyz8.cjs +1 -0
  612. package/dist/reg-Bc7EZp_L.js +3 -0
  613. package/dist/reg-GmnSXO4L.cjs +1 -0
  614. package/dist/regexp-CjKnir1L.js +5 -0
  615. package/dist/regexp-CjwGKeJO.cjs +1 -0
  616. package/dist/rel-DMLolXbX.cjs +1 -0
  617. package/dist/rel-DT4yPypn.js +3 -0
  618. package/dist/requirementDiagram-TGXJPOKE-BxnKsGpN.cjs +84 -0
  619. package/dist/requirementDiagram-TGXJPOKE-FQoCKQHp.js +2223 -0
  620. package/dist/riscv-9-ahY7jN.js +3 -0
  621. package/dist/riscv-DWfvSg0U.cjs +1 -0
  622. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  623. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  624. package/dist/rose-pine-BTVbOgGM.cjs +1 -0
  625. package/dist/rose-pine-Dsg47IX4.js +4 -0
  626. package/dist/rose-pine-dawn-C49-oxm2.js +4 -0
  627. package/dist/rose-pine-dawn-y8-MyOw6.cjs +1 -0
  628. package/dist/rose-pine-moon-BZmq4QbO.cjs +1 -0
  629. package/dist/rose-pine-moon-D19T_UYY.js +4 -0
  630. package/dist/rough.esm-B7woRVjF.js +1352 -0
  631. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  632. package/dist/rst-9SsxKThC.cjs +1 -0
  633. package/dist/rst-Ct-G6CIi.js +22 -0
  634. package/dist/ruby-CHhXdqUe.js +30 -0
  635. package/dist/ruby-q98Sa-C-.cjs +1 -0
  636. package/dist/rust-BbRDDZlI.js +3 -0
  637. package/dist/rust-DhJ-EsMg.cjs +1 -0
  638. package/dist/sankeyDiagram-HTMAVEWB-1N6666do.cjs +40 -0
  639. package/dist/sankeyDiagram-HTMAVEWB-CRbnmmPK.js +970 -0
  640. package/dist/sas-DhbnVUXW.cjs +1 -0
  641. package/dist/sas-nwN47Ppz.js +5 -0
  642. package/dist/sass-C3mlvlBn.js +3 -0
  643. package/dist/sass-MDtHeILc.cjs +1 -0
  644. package/dist/scala-BV3NjK9f.cjs +1 -0
  645. package/dist/scala-GwvQo9dz.js +3 -0
  646. package/dist/scheme-C_T6Gr_E.js +3 -0
  647. package/dist/scheme-DaNTt7Ra.cjs +1 -0
  648. package/dist/scss-KLMxyv4f.js +6 -0
  649. package/dist/scss-KgcvXJOI.cjs +1 -0
  650. package/dist/sdbl-9Nf-vYL_.cjs +1 -0
  651. package/dist/sdbl-BGVcFmba.js +3 -0
  652. package/dist/sequenceDiagram-DBY2YBRQ-B0eyTzj-.js +4168 -0
  653. package/dist/sequenceDiagram-DBY2YBRQ-ouUfS-aJ.cjs +162 -0
  654. package/dist/shaderlab-AMREd5T9.cjs +1 -0
  655. package/dist/shaderlab-yvRlOGRS.js +5 -0
  656. package/dist/shellscript-BRXFilKi.cjs +1 -0
  657. package/dist/shellscript-DsmUQZdg.js +5 -0
  658. package/dist/shellsession-BtjfrBaH.cjs +1 -0
  659. package/dist/shellsession-DQ_F9Wr_.js +5 -0
  660. package/dist/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
  661. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  662. package/dist/slack-dark-BzBaQ0xz.js +4 -0
  663. package/dist/slack-dark-DDeCEapU.cjs +1 -0
  664. package/dist/slack-ochin-Cnjuvrsj.js +4 -0
  665. package/dist/slack-ochin-DLKW_Bxr.cjs +1 -0
  666. package/dist/smalltalk-BN2TAEzt.js +3 -0
  667. package/dist/smalltalk-Dfg_7NMl.cjs +1 -0
  668. package/dist/snazzy-light-CO8ltd4m.js +4 -0
  669. package/dist/snazzy-light-Cb_pyD6_.cjs +1 -0
  670. package/dist/solarized-dark-CqgMwhwG.cjs +1 -0
  671. package/dist/solarized-dark-vcCVwuVC.js +4 -0
  672. package/dist/solarized-light-BgVA2R62.js +4 -0
  673. package/dist/solarized-light-U0ItNhXi.cjs +1 -0
  674. package/dist/solidity-bpqb7ojf.cjs +1 -0
  675. package/dist/solidity-idpkkykB.js +3 -0
  676. package/dist/soy-D11BGnGf.cjs +1 -0
  677. package/dist/soy-D5hACXEU.js +5 -0
  678. package/dist/sparql-D2f6sVo0.cjs +1 -0
  679. package/dist/sparql-DvWZ0oTn.js +5 -0
  680. package/dist/splunk-CC1SfDSs.cjs +1 -0
  681. package/dist/splunk-W3Nh1Gtf.js +3 -0
  682. package/dist/sql-BE7gM4sJ.js +5 -0
  683. package/dist/sql-CAKohXJZ.cjs +1 -0
  684. package/dist/src-CR--T_NF.cjs +1 -0
  685. package/dist/src-DR6txdQ-.js +2142 -0
  686. package/dist/ssh-config-Dn_5wFSU.cjs +1 -0
  687. package/dist/ssh-config-lL0vBG-J.js +3 -0
  688. package/dist/stata-DeV05m63.js +5 -0
  689. package/dist/stata-ckWyZ9G6.cjs +1 -0
  690. package/dist/stateDiagram-2N3HPSRC-DaporqgM.js +220 -0
  691. package/dist/stateDiagram-2N3HPSRC-DrVYkEQ-.cjs +1 -0
  692. package/dist/stateDiagram-v2-6OUMAXLB-DZ0YarTq.cjs +1 -0
  693. package/dist/stateDiagram-v2-6OUMAXLB-iNhJP0se.js +30 -0
  694. package/dist/stylus-7dQPGNPK.js +3 -0
  695. package/dist/stylus-CEIbUfUR.cjs +1 -0
  696. package/dist/svelte-BBzqqTAG.cjs +1 -0
  697. package/dist/svelte-DuClbIDV.js +14 -0
  698. package/dist/swift-BfppNwCZ.js +3 -0
  699. package/dist/swift-Dbq1ciSe.cjs +1 -0
  700. package/dist/swimlanes-5IMT3BWC-BkAqjD-a.cjs +1 -0
  701. package/dist/swimlanes-5IMT3BWC-Cl0MBCBd.js +5066 -0
  702. package/dist/swimlanesDiagram-G3AALYLV-Bh7l_29Y.cjs +8 -0
  703. package/dist/swimlanesDiagram-G3AALYLV-Bs_bljXb.js +31 -0
  704. package/dist/synthwave-84-CmyDaNXM.js +4 -0
  705. package/dist/synthwave-84-vhaAnDJD.cjs +1 -0
  706. package/dist/system-verilog-CBp9ww7I.js +3 -0
  707. package/dist/system-verilog-DyrRIUre.cjs +1 -0
  708. package/dist/systemd-CimDnTNX.cjs +1 -0
  709. package/dist/systemd-oFJVdchd.js +3 -0
  710. package/dist/talonscript-2QSX5qC5.cjs +1 -0
  711. package/dist/talonscript-BxIWRwbR.js +3 -0
  712. package/dist/tasl-Bxh5A0Un.js +3 -0
  713. package/dist/tasl-DkVK1Vvo.cjs +1 -0
  714. package/dist/tcl-CNIcTZox.cjs +1 -0
  715. package/dist/tcl-Yv5TG6Ev.js +3 -0
  716. package/dist/templ-BNN_ssr9.cjs +1 -0
  717. package/dist/templ-BxsPIKhr.js +12 -0
  718. package/dist/terraform-CGGCPjBs.cjs +1 -0
  719. package/dist/terraform-DLFpHj9I.js +3 -0
  720. package/dist/tex-DPBa3hMF.cjs +1 -0
  721. package/dist/tex-DZPZ_tE0.js +5 -0
  722. package/dist/timeline-definition-FHXFAJF6-Cb_8gFYP.cjs +120 -0
  723. package/dist/timeline-definition-FHXFAJF6-FkgzuuoZ.js +1069 -0
  724. package/dist/tokyo-night-BmmxIDHp.js +4 -0
  725. package/dist/tokyo-night-DXq-AiCd.cjs +1 -0
  726. package/dist/toml-CJQRMfJQ.cjs +1 -0
  727. package/dist/toml-Dm2pJ9O8.js +3 -0
  728. package/dist/treeView-QDETBFTQ-B_LvJjui.cjs +1 -0
  729. package/dist/treeView-QDETBFTQ-WaAklEEa.js +3 -0
  730. package/dist/treemap-6X3UGDF4-BZ8Ptxjo.cjs +1 -0
  731. package/dist/treemap-6X3UGDF4-TbJH_2rS.js +3 -0
  732. package/dist/ts-tags-BgTM9Oo9.js +38 -0
  733. package/dist/ts-tags-aCZsPrDI.cjs +1 -0
  734. package/dist/tsv-AfvsdcL-.js +3 -0
  735. package/dist/tsv-CrGD5YUm.cjs +1 -0
  736. package/dist/tsx-Bx4pCqLJ.js +5 -0
  737. package/dist/tsx-CqEtpJwc.cjs +1 -0
  738. package/dist/turtle-CSKPMBVG.js +3 -0
  739. package/dist/turtle-hKghkgYb.cjs +1 -0
  740. package/dist/twig-B4TBRIrX.cjs +1 -0
  741. package/dist/twig-BawUFy9o.js +18 -0
  742. package/dist/types/agent.d.ts +199 -0
  743. package/dist/typescript-BPkdvRNZ.js +5 -0
  744. package/dist/typescript-CjwIFskf.cjs +1 -0
  745. package/dist/typespec-BTz_JMOP.js +3 -0
  746. package/dist/typespec-DouelPXK.cjs +1 -0
  747. package/dist/typst-CE4u0InM.js +3 -0
  748. package/dist/typst-tWpJew-N.cjs +1 -0
  749. package/dist/v-BsQ8V6u8.js +3 -0
  750. package/dist/v-C8s-zsPQ.cjs +1 -0
  751. package/dist/vala-DM-_wXAy.cjs +1 -0
  752. package/dist/vala-YJiBqBnL.js +3 -0
  753. package/dist/vb-Bex0KYEQ.js +3 -0
  754. package/dist/vb-C9lJKj2z.cjs +1 -0
  755. package/dist/vennDiagram-L72KCM5P-DRanJu29.cjs +34 -0
  756. package/dist/vennDiagram-L72KCM5P-DigPDc3M.js +1880 -0
  757. package/dist/verilog-BGHQfpqH.js +3 -0
  758. package/dist/verilog-DirKIM6M.cjs +1 -0
  759. package/dist/vesper-B2O42csv.js +4 -0
  760. package/dist/vesper-DvpD9Vcf.cjs +1 -0
  761. package/dist/vhdl-BfmNQSSn.js +3 -0
  762. package/dist/vhdl-CNJHrCfd.cjs +1 -0
  763. package/dist/viml-B611mZED.cjs +1 -0
  764. package/dist/viml-CEz_TDNf.js +3 -0
  765. package/dist/vitesse-black-DC0QCRHA.js +4 -0
  766. package/dist/vitesse-black-NsXXFHlu.cjs +1 -0
  767. package/dist/vitesse-dark-Bv5Yx4Rj.js +4 -0
  768. package/dist/vitesse-dark-D0Ji9E-l.cjs +1 -0
  769. package/dist/vitesse-light-1Wh4YtKa.cjs +1 -0
  770. package/dist/vitesse-light-DYJDYLfk.js +4 -0
  771. package/dist/vue-DPEJC1L8.js +21 -0
  772. package/dist/vue-DwTH6YhB.cjs +1 -0
  773. package/dist/vue-html-CDRAOas6.js +10 -0
  774. package/dist/vue-html-THpxvSNU.cjs +1 -0
  775. package/dist/vue-i18n-3JaSdo8e.cjs +5 -0
  776. package/dist/vue-i18n-C_VfkvBa.js +3020 -0
  777. package/dist/vyper-9K4scKvw.js +3 -0
  778. package/dist/vyper-c-_n3oeH.cjs +1 -0
  779. package/dist/wardley-OPB4EBWU-B1lggTfF.cjs +1 -0
  780. package/dist/wardley-OPB4EBWU-GZ7F_2Eb.js +3 -0
  781. package/dist/wardleyDiagram-EHGQE667-DQE0RgUA.js +645 -0
  782. package/dist/wardleyDiagram-EHGQE667-ZqPLK5FR.cjs +78 -0
  783. package/dist/wasm-B9xa8Mue.js +4 -0
  784. package/dist/wasm-BIF3u71S.js +3 -0
  785. package/dist/wasm-DLWzvvDm.cjs +1 -0
  786. package/dist/wasm-DcRxl4j_.cjs +1 -0
  787. package/dist/wenyan-6FBHpKQQ.js +3 -0
  788. package/dist/wenyan-BQyJDXGi.cjs +1 -0
  789. package/dist/wgsl-0onuchT4.js +3 -0
  790. package/dist/wgsl-CZxSYjuU.cjs +1 -0
  791. package/dist/wikitext-C6FMYqyf.js +3 -0
  792. package/dist/wikitext-DKu5qD0V.cjs +1 -0
  793. package/dist/wolfram-B2KhbCjm.cjs +1 -0
  794. package/dist/wolfram-BuhvgrGp.js +3 -0
  795. package/dist/xml-B8vy9UOv.js +6 -0
  796. package/dist/xml-CQVcpGJ_.cjs +1 -0
  797. package/dist/xsl-B6FtdfnY.cjs +1 -0
  798. package/dist/xsl-DiaKo18G.js +5 -0
  799. package/dist/xychartDiagram-FW5EYKEG-9RCD4gzs.cjs +7 -0
  800. package/dist/xychartDiagram-FW5EYKEG-B_EUKZ5E.js +2102 -0
  801. package/dist/yaml-B-_wC7KV.cjs +1 -0
  802. package/dist/yaml-CANEFoqw.js +5 -0
  803. package/dist/zenscript-BSqTPUXj.cjs +1 -0
  804. package/dist/zenscript-DpMcKymA.js +3 -0
  805. package/dist/zig-DBCpOdKI.cjs +1 -0
  806. package/dist/zig-DWkMyyIZ.js +3 -0
  807. package/package.json +68 -0
@@ -0,0 +1,1762 @@
1
+ import e from "./katex-uQfgtQZ-.js";
2
+ e.__defineMacro("\\ce", function(e) {
3
+ return t(e.consumeArgs(1)[0], "ce");
4
+ }), e.__defineMacro("\\pu", function(e) {
5
+ return t(e.consumeArgs(1)[0], "pu");
6
+ }), e.__defineMacro("\\tripledash", "{\\vphantom{-}\\raisebox{2.56mu}{$\\mkern2mu\\tiny\\text{-}\\mkern1mu\\text{-}\\mkern1mu\\text{-}\\mkern2mu$}}");
7
+ var t = function(e, t) {
8
+ for (var i = "", a = e.length && e[e.length - 1].loc.start, o = e.length - 1; o >= 0; o--) e[o].loc.start > a && (i += " ", a = e[o].loc.start), i += e[o].text, a += e[o].text.length;
9
+ return r.go(n.go(i, t));
10
+ }, n = {
11
+ go: function(e, t) {
12
+ if (!e) return [];
13
+ t === void 0 && (t = "ce");
14
+ var r = "0", i = {};
15
+ i.parenthesisLevel = 0, e = e.replace(/\n/g, " "), e = e.replace(/[\u2212\u2013\u2014\u2010]/g, "-"), e = e.replace(/[\u2026]/g, "...");
16
+ for (var a, o = 10, s = [];;) {
17
+ a === e ? o-- : (o = 10, a = e);
18
+ var c = n.stateMachines[t], l = c.transitions[r] || c.transitions["*"];
19
+ iterateTransitions: for (var u = 0; u < l.length; u++) {
20
+ var d = n.patterns.match_(l[u].pattern, e);
21
+ if (d) {
22
+ for (var f = l[u].task, p = 0; p < f.action_.length; p++) {
23
+ var m;
24
+ if (c.actions[f.action_[p].type_]) m = c.actions[f.action_[p].type_](i, d.match_, f.action_[p].option);
25
+ else if (n.actions[f.action_[p].type_]) m = n.actions[f.action_[p].type_](i, d.match_, f.action_[p].option);
26
+ else throw ["MhchemBugA", "mhchem bug A. Please report. (" + f.action_[p].type_ + ")"];
27
+ n.concatArray(s, m);
28
+ }
29
+ if (r = f.nextState || r, e.length > 0) {
30
+ if (f.revisit || (e = d.remainder), !f.toContinue) break iterateTransitions;
31
+ } else return s;
32
+ }
33
+ }
34
+ if (o <= 0) throw ["MhchemBugU", "mhchem bug U. Please report."];
35
+ }
36
+ },
37
+ concatArray: function(e, t) {
38
+ if (t) if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e.push(t[n]);
39
+ else e.push(t);
40
+ },
41
+ patterns: {
42
+ patterns: {
43
+ empty: /^$/,
44
+ else: /^./,
45
+ else2: /^./,
46
+ space: /^\s/,
47
+ "space A": /^\s(?=[A-Z\\$])/,
48
+ space$: /^\s$/,
49
+ "a-z": /^[a-z]/,
50
+ x: /^x/,
51
+ x$: /^x$/,
52
+ i$: /^i$/,
53
+ letters: /^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,
54
+ "\\greek": /^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,
55
+ "one lowercase latin letter $": /^(?:([a-z])(?:$|[^a-zA-Z]))$/,
56
+ "$one lowercase latin letter$ $": /^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,
57
+ "one lowercase greek letter $": /^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,
58
+ digits: /^[0-9]+/,
59
+ "-9.,9": /^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,
60
+ "-9.,9 no missing 0": /^[+\-]?[0-9]+(?:[.,][0-9]+)?/,
61
+ "(-)(9.,9)(e)(99)": function(e) {
62
+ var t = e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);
63
+ return t && t[0] ? {
64
+ match_: t.splice(1),
65
+ remainder: e.substr(t[0].length)
66
+ } : null;
67
+ },
68
+ "(-)(9)^(-9)": function(e) {
69
+ var t = e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);
70
+ return t && t[0] ? {
71
+ match_: t.splice(1),
72
+ remainder: e.substr(t[0].length)
73
+ } : null;
74
+ },
75
+ "state of aggregation $": function(e) {
76
+ var t = n.patterns.findObserveGroups(e, "", /^\([a-z]{1,3}(?=[\),])/, ")", "");
77
+ if (t && t.remainder.match(/^($|[\s,;\)\]\}])/)) return t;
78
+ var r = e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);
79
+ return r ? {
80
+ match_: r[0],
81
+ remainder: e.substr(r[0].length)
82
+ } : null;
83
+ },
84
+ "_{(state of aggregation)}$": /^_\{(\([a-z]{1,3}\))\}/,
85
+ "{[(": /^(?:\\\{|\[|\()/,
86
+ ")]}": /^(?:\)|\]|\\\})/,
87
+ ", ": /^[,;]\s*/,
88
+ ",": /^[,;]/,
89
+ ".": /^[.]/,
90
+ ". ": /^([.\u22C5\u00B7\u2022])\s*/,
91
+ "...": /^\.\.\.(?=$|[^.])/,
92
+ "* ": /^([*])\s*/,
93
+ "^{(...)}": function(e) {
94
+ return n.patterns.findObserveGroups(e, "^{", "", "", "}");
95
+ },
96
+ "^($...$)": function(e) {
97
+ return n.patterns.findObserveGroups(e, "^", "$", "$", "");
98
+ },
99
+ "^a": /^\^([0-9]+|[^\\_])/,
100
+ "^\\x{}{}": function(e) {
101
+ return n.patterns.findObserveGroups(e, "^", /^\\[a-zA-Z]+\{/, "}", "", "", "{", "}", "", !0);
102
+ },
103
+ "^\\x{}": function(e) {
104
+ return n.patterns.findObserveGroups(e, "^", /^\\[a-zA-Z]+\{/, "}", "");
105
+ },
106
+ "^\\x": /^\^(\\[a-zA-Z]+)\s*/,
107
+ "^(-1)": /^\^(-?\d+)/,
108
+ "'": /^'/,
109
+ "_{(...)}": function(e) {
110
+ return n.patterns.findObserveGroups(e, "_{", "", "", "}");
111
+ },
112
+ "_($...$)": function(e) {
113
+ return n.patterns.findObserveGroups(e, "_", "$", "$", "");
114
+ },
115
+ _9: /^_([+\-]?[0-9]+|[^\\])/,
116
+ "_\\x{}{}": function(e) {
117
+ return n.patterns.findObserveGroups(e, "_", /^\\[a-zA-Z]+\{/, "}", "", "", "{", "}", "", !0);
118
+ },
119
+ "_\\x{}": function(e) {
120
+ return n.patterns.findObserveGroups(e, "_", /^\\[a-zA-Z]+\{/, "}", "");
121
+ },
122
+ "_\\x": /^_(\\[a-zA-Z]+)\s*/,
123
+ "^_": /^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,
124
+ "{}": /^\{\}/,
125
+ "{...}": function(e) {
126
+ return n.patterns.findObserveGroups(e, "", "{", "}", "");
127
+ },
128
+ "{(...)}": function(e) {
129
+ return n.patterns.findObserveGroups(e, "{", "", "", "}");
130
+ },
131
+ "$...$": function(e) {
132
+ return n.patterns.findObserveGroups(e, "", "$", "$", "");
133
+ },
134
+ "${(...)}$": function(e) {
135
+ return n.patterns.findObserveGroups(e, "${", "", "", "}$");
136
+ },
137
+ "$(...)$": function(e) {
138
+ return n.patterns.findObserveGroups(e, "$", "", "", "$");
139
+ },
140
+ "=<>": /^[=<>]/,
141
+ "#": /^[#\u2261]/,
142
+ "+": /^\+/,
143
+ "-$": /^-(?=[\s_},;\]/]|$|\([a-z]+\))/,
144
+ "-9": /^-(?=[0-9])/,
145
+ "- orbital overlap": /^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,
146
+ "-": /^-/,
147
+ "pm-operator": /^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,
148
+ operator: /^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,
149
+ arrowUpDown: /^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,
150
+ "\\bond{(...)}": function(e) {
151
+ return n.patterns.findObserveGroups(e, "\\bond{", "", "", "}");
152
+ },
153
+ "->": /^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,
154
+ CMT: /^[CMT](?=\[)/,
155
+ "[(...)]": function(e) {
156
+ return n.patterns.findObserveGroups(e, "[", "", "", "]");
157
+ },
158
+ "1st-level escape": /^(&|\\\\|\\hline)\s*/,
159
+ "\\,": /^(?:\\[,\ ;:])/,
160
+ "\\x{}{}": function(e) {
161
+ return n.patterns.findObserveGroups(e, "", /^\\[a-zA-Z]+\{/, "}", "", "", "{", "}", "", !0);
162
+ },
163
+ "\\x{}": function(e) {
164
+ return n.patterns.findObserveGroups(e, "", /^\\[a-zA-Z]+\{/, "}", "");
165
+ },
166
+ "\\ca": /^\\ca(?:\s+|(?![a-zA-Z]))/,
167
+ "\\x": /^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,
168
+ orbital: /^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,
169
+ others: /^[\/~|]/,
170
+ "\\frac{(...)}": function(e) {
171
+ return n.patterns.findObserveGroups(e, "\\frac{", "", "", "}", "{", "", "", "}");
172
+ },
173
+ "\\overset{(...)}": function(e) {
174
+ return n.patterns.findObserveGroups(e, "\\overset{", "", "", "}", "{", "", "", "}");
175
+ },
176
+ "\\underset{(...)}": function(e) {
177
+ return n.patterns.findObserveGroups(e, "\\underset{", "", "", "}", "{", "", "", "}");
178
+ },
179
+ "\\underbrace{(...)}": function(e) {
180
+ return n.patterns.findObserveGroups(e, "\\underbrace{", "", "", "}_", "{", "", "", "}");
181
+ },
182
+ "\\color{(...)}0": function(e) {
183
+ return n.patterns.findObserveGroups(e, "\\color{", "", "", "}");
184
+ },
185
+ "\\color{(...)}{(...)}1": function(e) {
186
+ return n.patterns.findObserveGroups(e, "\\color{", "", "", "}", "{", "", "", "}");
187
+ },
188
+ "\\color(...){(...)}2": function(e) {
189
+ return n.patterns.findObserveGroups(e, "\\color", "\\", "", /^(?=\{)/, "{", "", "", "}");
190
+ },
191
+ "\\ce{(...)}": function(e) {
192
+ return n.patterns.findObserveGroups(e, "\\ce{", "", "", "}");
193
+ },
194
+ oxidation$: /^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,
195
+ "d-oxidation$": /^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,
196
+ "roman numeral": /^[IVX]+/,
197
+ "1/2$": /^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,
198
+ amount: function(e) {
199
+ var t = e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/);
200
+ if (t) return {
201
+ match_: t[0],
202
+ remainder: e.substr(t[0].length)
203
+ };
204
+ var r = n.patterns.findObserveGroups(e, "", "$", "$", "");
205
+ return r && (t = r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/), t) ? {
206
+ match_: t[0],
207
+ remainder: e.substr(t[0].length)
208
+ } : null;
209
+ },
210
+ amount2: function(e) {
211
+ return this.amount(e);
212
+ },
213
+ "(KV letters),": /^(?:[A-Z][a-z]{0,2}|i)(?=,)/,
214
+ formula$: function(e) {
215
+ if (e.match(/^\([a-z]+\)$/)) return null;
216
+ var t = e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);
217
+ return t ? {
218
+ match_: t[0],
219
+ remainder: e.substr(t[0].length)
220
+ } : null;
221
+ },
222
+ uprightEntities: /^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,
223
+ "/": /^\s*(\/)\s*/,
224
+ "//": /^\s*(\/\/)\s*/,
225
+ "*": /^\s*[*.]\s*/
226
+ },
227
+ findObserveGroups: function(e, t, n, r, i, a, o, s, c, l) {
228
+ var u = function(e, t) {
229
+ if (typeof t == "string") return e.indexOf(t) === 0 ? t : null;
230
+ var n = e.match(t);
231
+ return n ? n[0] : null;
232
+ }, d = function(e, t, n) {
233
+ for (var r = 0; t < e.length;) {
234
+ var i = e.charAt(t), a = u(e.substr(t), n);
235
+ if (a !== null && r === 0) return {
236
+ endMatchBegin: t,
237
+ endMatchEnd: t + a.length
238
+ };
239
+ if (i === "{") r++;
240
+ else if (i === "}") {
241
+ if (r === 0) throw ["ExtraCloseMissingOpen", "Extra close brace or missing open brace"];
242
+ r--;
243
+ }
244
+ t++;
245
+ }
246
+ return null;
247
+ }, f = u(e, t);
248
+ if (f === null || (e = e.substr(f.length), f = u(e, n), f === null)) return null;
249
+ var p = d(e, f.length, r || i);
250
+ if (p === null) return null;
251
+ var m = e.substring(0, r ? p.endMatchEnd : p.endMatchBegin);
252
+ if (a || o) {
253
+ var h = this.findObserveGroups(e.substr(p.endMatchEnd), a, o, s, c);
254
+ if (h === null) return null;
255
+ var g = [m, h.match_];
256
+ return {
257
+ match_: l ? g.join("") : g,
258
+ remainder: h.remainder
259
+ };
260
+ } else return {
261
+ match_: m,
262
+ remainder: e.substr(p.endMatchEnd)
263
+ };
264
+ },
265
+ match_: function(e, t) {
266
+ var r = n.patterns.patterns[e];
267
+ if (r === void 0) throw ["MhchemBugP", "mhchem bug P. Please report. (" + e + ")"];
268
+ if (typeof r == "function") return n.patterns.patterns[e](t);
269
+ var i = t.match(r);
270
+ return i ? {
271
+ match_: i[2] ? [i[1], i[2]] : i[1] ? i[1] : i[0],
272
+ remainder: t.substr(i[0].length)
273
+ } : null;
274
+ }
275
+ },
276
+ actions: {
277
+ "a=": function(e, t) {
278
+ e.a = (e.a || "") + t;
279
+ },
280
+ "b=": function(e, t) {
281
+ e.b = (e.b || "") + t;
282
+ },
283
+ "p=": function(e, t) {
284
+ e.p = (e.p || "") + t;
285
+ },
286
+ "o=": function(e, t) {
287
+ e.o = (e.o || "") + t;
288
+ },
289
+ "q=": function(e, t) {
290
+ e.q = (e.q || "") + t;
291
+ },
292
+ "d=": function(e, t) {
293
+ e.d = (e.d || "") + t;
294
+ },
295
+ "rm=": function(e, t) {
296
+ e.rm = (e.rm || "") + t;
297
+ },
298
+ "text=": function(e, t) {
299
+ e.text_ = (e.text_ || "") + t;
300
+ },
301
+ insert: function(e, t, n) {
302
+ return { type_: n };
303
+ },
304
+ "insert+p1": function(e, t, n) {
305
+ return {
306
+ type_: n,
307
+ p1: t
308
+ };
309
+ },
310
+ "insert+p1+p2": function(e, t, n) {
311
+ return {
312
+ type_: n,
313
+ p1: t[0],
314
+ p2: t[1]
315
+ };
316
+ },
317
+ copy: function(e, t) {
318
+ return t;
319
+ },
320
+ rm: function(e, t) {
321
+ return {
322
+ type_: "rm",
323
+ p1: t || ""
324
+ };
325
+ },
326
+ text: function(e, t) {
327
+ return n.go(t, "text");
328
+ },
329
+ "{text}": function(e, t) {
330
+ var r = ["{"];
331
+ return n.concatArray(r, n.go(t, "text")), r.push("}"), r;
332
+ },
333
+ "tex-math": function(e, t) {
334
+ return n.go(t, "tex-math");
335
+ },
336
+ "tex-math tight": function(e, t) {
337
+ return n.go(t, "tex-math tight");
338
+ },
339
+ bond: function(e, t, n) {
340
+ return {
341
+ type_: "bond",
342
+ kind_: n || t
343
+ };
344
+ },
345
+ "color0-output": function(e, t) {
346
+ return {
347
+ type_: "color0",
348
+ color: t[0]
349
+ };
350
+ },
351
+ ce: function(e, t) {
352
+ return n.go(t);
353
+ },
354
+ "1/2": function(e, t) {
355
+ var n = [];
356
+ t.match(/^[+\-]/) && (n.push(t.substr(0, 1)), t = t.substr(1));
357
+ var r = t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);
358
+ return r[1] = r[1].replace(/\$/g, ""), n.push({
359
+ type_: "frac",
360
+ p1: r[1],
361
+ p2: r[2]
362
+ }), r[3] && (r[3] = r[3].replace(/\$/g, ""), n.push({
363
+ type_: "tex-math",
364
+ p1: r[3]
365
+ })), n;
366
+ },
367
+ "9,9": function(e, t) {
368
+ return n.go(t, "9,9");
369
+ }
370
+ },
371
+ createTransitions: function(e) {
372
+ var t, n, r, i, a = {};
373
+ for (t in e) for (n in e[t]) for (r = n.split("|"), e[t][n].stateArray = r, i = 0; i < r.length; i++) a[r[i]] = [];
374
+ for (t in e) for (n in e[t]) for (r = e[t][n].stateArray || [], i = 0; i < r.length; i++) {
375
+ var o = e[t][n];
376
+ if (o.action_) {
377
+ o.action_ = [].concat(o.action_);
378
+ for (var s = 0; s < o.action_.length; s++) typeof o.action_[s] == "string" && (o.action_[s] = { type_: o.action_[s] });
379
+ } else o.action_ = [];
380
+ for (var c = t.split("|"), l = 0; l < c.length; l++) if (r[i] === "*") for (var u in a) a[u].push({
381
+ pattern: c[l],
382
+ task: o
383
+ });
384
+ else a[r[i]].push({
385
+ pattern: c[l],
386
+ task: o
387
+ });
388
+ }
389
+ return a;
390
+ },
391
+ stateMachines: {}
392
+ };
393
+ n.stateMachines = {
394
+ ce: {
395
+ transitions: n.createTransitions({
396
+ empty: { "*": { action_: "output" } },
397
+ else: { "0|1|2": {
398
+ action_: "beginsWithBond=false",
399
+ revisit: !0,
400
+ toContinue: !0
401
+ } },
402
+ oxidation$: { 0: { action_: "oxidation-output" } },
403
+ CMT: {
404
+ r: {
405
+ action_: "rdt=",
406
+ nextState: "rt"
407
+ },
408
+ rd: {
409
+ action_: "rqt=",
410
+ nextState: "rdt"
411
+ }
412
+ },
413
+ arrowUpDown: { "0|1|2|as": {
414
+ action_: [
415
+ "sb=false",
416
+ "output",
417
+ "operator"
418
+ ],
419
+ nextState: "1"
420
+ } },
421
+ uprightEntities: { "0|1|2": {
422
+ action_: ["o=", "output"],
423
+ nextState: "1"
424
+ } },
425
+ orbital: { "0|1|2|3": {
426
+ action_: "o=",
427
+ nextState: "o"
428
+ } },
429
+ "->": {
430
+ "0|1|2|3": {
431
+ action_: "r=",
432
+ nextState: "r"
433
+ },
434
+ "a|as": {
435
+ action_: ["output", "r="],
436
+ nextState: "r"
437
+ },
438
+ "*": {
439
+ action_: ["output", "r="],
440
+ nextState: "r"
441
+ }
442
+ },
443
+ "+": {
444
+ o: {
445
+ action_: "d= kv",
446
+ nextState: "d"
447
+ },
448
+ "d|D": {
449
+ action_: "d=",
450
+ nextState: "d"
451
+ },
452
+ q: {
453
+ action_: "d=",
454
+ nextState: "qd"
455
+ },
456
+ "qd|qD": {
457
+ action_: "d=",
458
+ nextState: "qd"
459
+ },
460
+ dq: {
461
+ action_: ["output", "d="],
462
+ nextState: "d"
463
+ },
464
+ 3: {
465
+ action_: [
466
+ "sb=false",
467
+ "output",
468
+ "operator"
469
+ ],
470
+ nextState: "0"
471
+ }
472
+ },
473
+ amount: { "0|2": {
474
+ action_: "a=",
475
+ nextState: "a"
476
+ } },
477
+ "pm-operator": { "0|1|2|a|as": {
478
+ action_: [
479
+ "sb=false",
480
+ "output",
481
+ {
482
+ type_: "operator",
483
+ option: "\\pm"
484
+ }
485
+ ],
486
+ nextState: "0"
487
+ } },
488
+ operator: { "0|1|2|a|as": {
489
+ action_: [
490
+ "sb=false",
491
+ "output",
492
+ "operator"
493
+ ],
494
+ nextState: "0"
495
+ } },
496
+ "-$": {
497
+ "o|q": {
498
+ action_: ["charge or bond", "output"],
499
+ nextState: "qd"
500
+ },
501
+ d: {
502
+ action_: "d=",
503
+ nextState: "d"
504
+ },
505
+ D: {
506
+ action_: ["output", {
507
+ type_: "bond",
508
+ option: "-"
509
+ }],
510
+ nextState: "3"
511
+ },
512
+ q: {
513
+ action_: "d=",
514
+ nextState: "qd"
515
+ },
516
+ qd: {
517
+ action_: "d=",
518
+ nextState: "qd"
519
+ },
520
+ "qD|dq": {
521
+ action_: ["output", {
522
+ type_: "bond",
523
+ option: "-"
524
+ }],
525
+ nextState: "3"
526
+ }
527
+ },
528
+ "-9": { "3|o": {
529
+ action_: ["output", {
530
+ type_: "insert",
531
+ option: "hyphen"
532
+ }],
533
+ nextState: "3"
534
+ } },
535
+ "- orbital overlap": {
536
+ o: {
537
+ action_: ["output", {
538
+ type_: "insert",
539
+ option: "hyphen"
540
+ }],
541
+ nextState: "2"
542
+ },
543
+ d: {
544
+ action_: ["output", {
545
+ type_: "insert",
546
+ option: "hyphen"
547
+ }],
548
+ nextState: "2"
549
+ }
550
+ },
551
+ "-": {
552
+ "0|1|2": {
553
+ action_: [
554
+ {
555
+ type_: "output",
556
+ option: 1
557
+ },
558
+ "beginsWithBond=true",
559
+ {
560
+ type_: "bond",
561
+ option: "-"
562
+ }
563
+ ],
564
+ nextState: "3"
565
+ },
566
+ 3: { action_: {
567
+ type_: "bond",
568
+ option: "-"
569
+ } },
570
+ a: {
571
+ action_: ["output", {
572
+ type_: "insert",
573
+ option: "hyphen"
574
+ }],
575
+ nextState: "2"
576
+ },
577
+ as: {
578
+ action_: [{
579
+ type_: "output",
580
+ option: 2
581
+ }, {
582
+ type_: "bond",
583
+ option: "-"
584
+ }],
585
+ nextState: "3"
586
+ },
587
+ b: { action_: "b=" },
588
+ o: {
589
+ action_: {
590
+ type_: "- after o/d",
591
+ option: !1
592
+ },
593
+ nextState: "2"
594
+ },
595
+ q: {
596
+ action_: {
597
+ type_: "- after o/d",
598
+ option: !1
599
+ },
600
+ nextState: "2"
601
+ },
602
+ "d|qd|dq": {
603
+ action_: {
604
+ type_: "- after o/d",
605
+ option: !0
606
+ },
607
+ nextState: "2"
608
+ },
609
+ "D|qD|p": {
610
+ action_: ["output", {
611
+ type_: "bond",
612
+ option: "-"
613
+ }],
614
+ nextState: "3"
615
+ }
616
+ },
617
+ amount2: { "1|3": {
618
+ action_: "a=",
619
+ nextState: "a"
620
+ } },
621
+ letters: {
622
+ "0|1|2|3|a|as|b|p|bp|o": {
623
+ action_: "o=",
624
+ nextState: "o"
625
+ },
626
+ "q|dq": {
627
+ action_: ["output", "o="],
628
+ nextState: "o"
629
+ },
630
+ "d|D|qd|qD": {
631
+ action_: "o after d",
632
+ nextState: "o"
633
+ }
634
+ },
635
+ digits: {
636
+ o: {
637
+ action_: "q=",
638
+ nextState: "q"
639
+ },
640
+ "d|D": {
641
+ action_: "q=",
642
+ nextState: "dq"
643
+ },
644
+ q: {
645
+ action_: ["output", "o="],
646
+ nextState: "o"
647
+ },
648
+ a: {
649
+ action_: "o=",
650
+ nextState: "o"
651
+ }
652
+ },
653
+ "space A": { "b|p|bp": {} },
654
+ space: {
655
+ a: { nextState: "as" },
656
+ 0: { action_: "sb=false" },
657
+ "1|2": { action_: "sb=true" },
658
+ "r|rt|rd|rdt|rdq": {
659
+ action_: "output",
660
+ nextState: "0"
661
+ },
662
+ "*": {
663
+ action_: ["output", "sb=true"],
664
+ nextState: "1"
665
+ }
666
+ },
667
+ "1st-level escape": {
668
+ "1|2": { action_: ["output", {
669
+ type_: "insert+p1",
670
+ option: "1st-level escape"
671
+ }] },
672
+ "*": {
673
+ action_: ["output", {
674
+ type_: "insert+p1",
675
+ option: "1st-level escape"
676
+ }],
677
+ nextState: "0"
678
+ }
679
+ },
680
+ "[(...)]": {
681
+ "r|rt": {
682
+ action_: "rd=",
683
+ nextState: "rd"
684
+ },
685
+ "rd|rdt": {
686
+ action_: "rq=",
687
+ nextState: "rdq"
688
+ }
689
+ },
690
+ "...": {
691
+ "o|d|D|dq|qd|qD": {
692
+ action_: ["output", {
693
+ type_: "bond",
694
+ option: "..."
695
+ }],
696
+ nextState: "3"
697
+ },
698
+ "*": {
699
+ action_: [{
700
+ type_: "output",
701
+ option: 1
702
+ }, {
703
+ type_: "insert",
704
+ option: "ellipsis"
705
+ }],
706
+ nextState: "1"
707
+ }
708
+ },
709
+ ". |* ": { "*": {
710
+ action_: ["output", {
711
+ type_: "insert",
712
+ option: "addition compound"
713
+ }],
714
+ nextState: "1"
715
+ } },
716
+ "state of aggregation $": { "*": {
717
+ action_: ["output", "state of aggregation"],
718
+ nextState: "1"
719
+ } },
720
+ "{[(": {
721
+ "a|as|o": {
722
+ action_: [
723
+ "o=",
724
+ "output",
725
+ "parenthesisLevel++"
726
+ ],
727
+ nextState: "2"
728
+ },
729
+ "0|1|2|3": {
730
+ action_: [
731
+ "o=",
732
+ "output",
733
+ "parenthesisLevel++"
734
+ ],
735
+ nextState: "2"
736
+ },
737
+ "*": {
738
+ action_: [
739
+ "output",
740
+ "o=",
741
+ "output",
742
+ "parenthesisLevel++"
743
+ ],
744
+ nextState: "2"
745
+ }
746
+ },
747
+ ")]}": {
748
+ "0|1|2|3|b|p|bp|o": {
749
+ action_: ["o=", "parenthesisLevel--"],
750
+ nextState: "o"
751
+ },
752
+ "a|as|d|D|q|qd|qD|dq": {
753
+ action_: [
754
+ "output",
755
+ "o=",
756
+ "parenthesisLevel--"
757
+ ],
758
+ nextState: "o"
759
+ }
760
+ },
761
+ ", ": { "*": {
762
+ action_: ["output", "comma"],
763
+ nextState: "0"
764
+ } },
765
+ "^_": { "*": {} },
766
+ "^{(...)}|^($...$)": {
767
+ "0|1|2|as": {
768
+ action_: "b=",
769
+ nextState: "b"
770
+ },
771
+ p: {
772
+ action_: "b=",
773
+ nextState: "bp"
774
+ },
775
+ "3|o": {
776
+ action_: "d= kv",
777
+ nextState: "D"
778
+ },
779
+ q: {
780
+ action_: "d=",
781
+ nextState: "qD"
782
+ },
783
+ "d|D|qd|qD|dq": {
784
+ action_: ["output", "d="],
785
+ nextState: "D"
786
+ }
787
+ },
788
+ "^a|^\\x{}{}|^\\x{}|^\\x|'": {
789
+ "0|1|2|as": {
790
+ action_: "b=",
791
+ nextState: "b"
792
+ },
793
+ p: {
794
+ action_: "b=",
795
+ nextState: "bp"
796
+ },
797
+ "3|o": {
798
+ action_: "d= kv",
799
+ nextState: "d"
800
+ },
801
+ q: {
802
+ action_: "d=",
803
+ nextState: "qd"
804
+ },
805
+ "d|qd|D|qD": { action_: "d=" },
806
+ dq: {
807
+ action_: ["output", "d="],
808
+ nextState: "d"
809
+ }
810
+ },
811
+ "_{(state of aggregation)}$": { "d|D|q|qd|qD|dq": {
812
+ action_: ["output", "q="],
813
+ nextState: "q"
814
+ } },
815
+ "_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x": {
816
+ "0|1|2|as": {
817
+ action_: "p=",
818
+ nextState: "p"
819
+ },
820
+ b: {
821
+ action_: "p=",
822
+ nextState: "bp"
823
+ },
824
+ "3|o": {
825
+ action_: "q=",
826
+ nextState: "q"
827
+ },
828
+ "d|D": {
829
+ action_: "q=",
830
+ nextState: "dq"
831
+ },
832
+ "q|qd|qD|dq": {
833
+ action_: ["output", "q="],
834
+ nextState: "q"
835
+ }
836
+ },
837
+ "=<>": { "0|1|2|3|a|as|o|q|d|D|qd|qD|dq": {
838
+ action_: [{
839
+ type_: "output",
840
+ option: 2
841
+ }, "bond"],
842
+ nextState: "3"
843
+ } },
844
+ "#": { "0|1|2|3|a|as|o": {
845
+ action_: [{
846
+ type_: "output",
847
+ option: 2
848
+ }, {
849
+ type_: "bond",
850
+ option: "#"
851
+ }],
852
+ nextState: "3"
853
+ } },
854
+ "{}": { "*": {
855
+ action_: {
856
+ type_: "output",
857
+ option: 1
858
+ },
859
+ nextState: "1"
860
+ } },
861
+ "{...}": {
862
+ "0|1|2|3|a|as|b|p|bp": {
863
+ action_: "o=",
864
+ nextState: "o"
865
+ },
866
+ "o|d|D|q|qd|qD|dq": {
867
+ action_: ["output", "o="],
868
+ nextState: "o"
869
+ }
870
+ },
871
+ "$...$": {
872
+ a: { action_: "a=" },
873
+ "0|1|2|3|as|b|p|bp|o": {
874
+ action_: "o=",
875
+ nextState: "o"
876
+ },
877
+ "as|o": { action_: "o=" },
878
+ "q|d|D|qd|qD|dq": {
879
+ action_: ["output", "o="],
880
+ nextState: "o"
881
+ }
882
+ },
883
+ "\\bond{(...)}": { "*": {
884
+ action_: [{
885
+ type_: "output",
886
+ option: 2
887
+ }, "bond"],
888
+ nextState: "3"
889
+ } },
890
+ "\\frac{(...)}": { "*": {
891
+ action_: [{
892
+ type_: "output",
893
+ option: 1
894
+ }, "frac-output"],
895
+ nextState: "3"
896
+ } },
897
+ "\\overset{(...)}": { "*": {
898
+ action_: [{
899
+ type_: "output",
900
+ option: 2
901
+ }, "overset-output"],
902
+ nextState: "3"
903
+ } },
904
+ "\\underset{(...)}": { "*": {
905
+ action_: [{
906
+ type_: "output",
907
+ option: 2
908
+ }, "underset-output"],
909
+ nextState: "3"
910
+ } },
911
+ "\\underbrace{(...)}": { "*": {
912
+ action_: [{
913
+ type_: "output",
914
+ option: 2
915
+ }, "underbrace-output"],
916
+ nextState: "3"
917
+ } },
918
+ "\\color{(...)}{(...)}1|\\color(...){(...)}2": { "*": {
919
+ action_: [{
920
+ type_: "output",
921
+ option: 2
922
+ }, "color-output"],
923
+ nextState: "3"
924
+ } },
925
+ "\\color{(...)}0": { "*": { action_: [{
926
+ type_: "output",
927
+ option: 2
928
+ }, "color0-output"] } },
929
+ "\\ce{(...)}": { "*": {
930
+ action_: [{
931
+ type_: "output",
932
+ option: 2
933
+ }, "ce"],
934
+ nextState: "3"
935
+ } },
936
+ "\\,": { "*": {
937
+ action_: [{
938
+ type_: "output",
939
+ option: 1
940
+ }, "copy"],
941
+ nextState: "1"
942
+ } },
943
+ "\\x{}{}|\\x{}|\\x": {
944
+ "0|1|2|3|a|as|b|p|bp|o|c0": {
945
+ action_: ["o=", "output"],
946
+ nextState: "3"
947
+ },
948
+ "*": {
949
+ action_: [
950
+ "output",
951
+ "o=",
952
+ "output"
953
+ ],
954
+ nextState: "3"
955
+ }
956
+ },
957
+ others: { "*": {
958
+ action_: [{
959
+ type_: "output",
960
+ option: 1
961
+ }, "copy"],
962
+ nextState: "3"
963
+ } },
964
+ else2: {
965
+ a: {
966
+ action_: "a to o",
967
+ nextState: "o",
968
+ revisit: !0
969
+ },
970
+ as: {
971
+ action_: ["output", "sb=true"],
972
+ nextState: "1",
973
+ revisit: !0
974
+ },
975
+ "r|rt|rd|rdt|rdq": {
976
+ action_: ["output"],
977
+ nextState: "0",
978
+ revisit: !0
979
+ },
980
+ "*": {
981
+ action_: ["output", "copy"],
982
+ nextState: "3"
983
+ }
984
+ }
985
+ }),
986
+ actions: {
987
+ "o after d": function(e, t) {
988
+ var r;
989
+ if ((e.d || "").match(/^[0-9]+$/)) {
990
+ var i = e.d;
991
+ e.d = void 0, r = this.output(e), e.b = i;
992
+ } else r = this.output(e);
993
+ return n.actions["o="](e, t), r;
994
+ },
995
+ "d= kv": function(e, t) {
996
+ e.d = t, e.dType = "kv";
997
+ },
998
+ "charge or bond": function(e, t) {
999
+ if (e.beginsWithBond) {
1000
+ var r = [];
1001
+ return n.concatArray(r, this.output(e)), n.concatArray(r, n.actions.bond(e, t, "-")), r;
1002
+ } else e.d = t;
1003
+ },
1004
+ "- after o/d": function(e, t, r) {
1005
+ var i = n.patterns.match_("orbital", e.o || ""), a = n.patterns.match_("one lowercase greek letter $", e.o || ""), o = n.patterns.match_("one lowercase latin letter $", e.o || ""), s = n.patterns.match_("$one lowercase latin letter$ $", e.o || ""), c = t === "-" && (i && i.remainder === "" || a || o || s);
1006
+ c && !e.a && !e.b && !e.p && !e.d && !e.q && !i && o && (e.o = "$" + e.o + "$");
1007
+ var l = [];
1008
+ return c ? (n.concatArray(l, this.output(e)), l.push({ type_: "hyphen" })) : (i = n.patterns.match_("digits", e.d || ""), r && i && i.remainder === "" ? (n.concatArray(l, n.actions["d="](e, t)), n.concatArray(l, this.output(e))) : (n.concatArray(l, this.output(e)), n.concatArray(l, n.actions.bond(e, t, "-")))), l;
1009
+ },
1010
+ "a to o": function(e) {
1011
+ e.o = e.a, e.a = void 0;
1012
+ },
1013
+ "sb=true": function(e) {
1014
+ e.sb = !0;
1015
+ },
1016
+ "sb=false": function(e) {
1017
+ e.sb = !1;
1018
+ },
1019
+ "beginsWithBond=true": function(e) {
1020
+ e.beginsWithBond = !0;
1021
+ },
1022
+ "beginsWithBond=false": function(e) {
1023
+ e.beginsWithBond = !1;
1024
+ },
1025
+ "parenthesisLevel++": function(e) {
1026
+ e.parenthesisLevel++;
1027
+ },
1028
+ "parenthesisLevel--": function(e) {
1029
+ e.parenthesisLevel--;
1030
+ },
1031
+ "state of aggregation": function(e, t) {
1032
+ return {
1033
+ type_: "state of aggregation",
1034
+ p1: n.go(t, "o")
1035
+ };
1036
+ },
1037
+ comma: function(e, t) {
1038
+ var n = t.replace(/\s*$/, "");
1039
+ return n !== t && e.parenthesisLevel === 0 ? {
1040
+ type_: "comma enumeration L",
1041
+ p1: n
1042
+ } : {
1043
+ type_: "comma enumeration M",
1044
+ p1: n
1045
+ };
1046
+ },
1047
+ output: function(e, t, r) {
1048
+ var i;
1049
+ if (!e.r) i = [], !e.a && !e.b && !e.p && !e.o && !e.q && !e.d && !r || (e.sb && i.push({ type_: "entitySkip" }), !e.o && !e.q && !e.d && !e.b && !e.p && r !== 2 ? (e.o = e.a, e.a = void 0) : !e.o && !e.q && !e.d && (e.b || e.p) ? (e.o = e.a, e.d = e.b, e.q = e.p, e.a = e.b = e.p = void 0) : e.o && e.dType === "kv" && n.patterns.match_("d-oxidation$", e.d || "") ? e.dType = "oxidation" : e.o && e.dType === "kv" && !e.q && (e.dType = void 0), i.push({
1050
+ type_: "chemfive",
1051
+ a: n.go(e.a, "a"),
1052
+ b: n.go(e.b, "bd"),
1053
+ p: n.go(e.p, "pq"),
1054
+ o: n.go(e.o, "o"),
1055
+ q: n.go(e.q, "pq"),
1056
+ d: n.go(e.d, e.dType === "oxidation" ? "oxidation" : "bd"),
1057
+ dType: e.dType
1058
+ }));
1059
+ else {
1060
+ var a = e.rdt === "M" ? n.go(e.rd, "tex-math") : e.rdt === "T" ? [{
1061
+ type_: "text",
1062
+ p1: e.rd || ""
1063
+ }] : n.go(e.rd), o = e.rqt === "M" ? n.go(e.rq, "tex-math") : e.rqt === "T" ? [{
1064
+ type_: "text",
1065
+ p1: e.rq || ""
1066
+ }] : n.go(e.rq);
1067
+ i = {
1068
+ type_: "arrow",
1069
+ r: e.r,
1070
+ rd: a,
1071
+ rq: o
1072
+ };
1073
+ }
1074
+ for (var s in e) s !== "parenthesisLevel" && s !== "beginsWithBond" && delete e[s];
1075
+ return i;
1076
+ },
1077
+ "oxidation-output": function(e, t) {
1078
+ var r = ["{"];
1079
+ return n.concatArray(r, n.go(t, "oxidation")), r.push("}"), r;
1080
+ },
1081
+ "frac-output": function(e, t) {
1082
+ return {
1083
+ type_: "frac-ce",
1084
+ p1: n.go(t[0]),
1085
+ p2: n.go(t[1])
1086
+ };
1087
+ },
1088
+ "overset-output": function(e, t) {
1089
+ return {
1090
+ type_: "overset",
1091
+ p1: n.go(t[0]),
1092
+ p2: n.go(t[1])
1093
+ };
1094
+ },
1095
+ "underset-output": function(e, t) {
1096
+ return {
1097
+ type_: "underset",
1098
+ p1: n.go(t[0]),
1099
+ p2: n.go(t[1])
1100
+ };
1101
+ },
1102
+ "underbrace-output": function(e, t) {
1103
+ return {
1104
+ type_: "underbrace",
1105
+ p1: n.go(t[0]),
1106
+ p2: n.go(t[1])
1107
+ };
1108
+ },
1109
+ "color-output": function(e, t) {
1110
+ return {
1111
+ type_: "color",
1112
+ color1: t[0],
1113
+ color2: n.go(t[1])
1114
+ };
1115
+ },
1116
+ "r=": function(e, t) {
1117
+ e.r = t;
1118
+ },
1119
+ "rdt=": function(e, t) {
1120
+ e.rdt = t;
1121
+ },
1122
+ "rd=": function(e, t) {
1123
+ e.rd = t;
1124
+ },
1125
+ "rqt=": function(e, t) {
1126
+ e.rqt = t;
1127
+ },
1128
+ "rq=": function(e, t) {
1129
+ e.rq = t;
1130
+ },
1131
+ operator: function(e, t, n) {
1132
+ return {
1133
+ type_: "operator",
1134
+ kind_: n || t
1135
+ };
1136
+ }
1137
+ }
1138
+ },
1139
+ a: {
1140
+ transitions: n.createTransitions({
1141
+ empty: { "*": {} },
1142
+ "1/2$": { 0: { action_: "1/2" } },
1143
+ else: { 0: {
1144
+ nextState: "1",
1145
+ revisit: !0
1146
+ } },
1147
+ "$(...)$": { "*": {
1148
+ action_: "tex-math tight",
1149
+ nextState: "1"
1150
+ } },
1151
+ ",": { "*": { action_: {
1152
+ type_: "insert",
1153
+ option: "commaDecimal"
1154
+ } } },
1155
+ else2: { "*": { action_: "copy" } }
1156
+ }),
1157
+ actions: {}
1158
+ },
1159
+ o: {
1160
+ transitions: n.createTransitions({
1161
+ empty: { "*": {} },
1162
+ "1/2$": { 0: { action_: "1/2" } },
1163
+ else: { 0: {
1164
+ nextState: "1",
1165
+ revisit: !0
1166
+ } },
1167
+ letters: { "*": { action_: "rm" } },
1168
+ "\\ca": { "*": { action_: {
1169
+ type_: "insert",
1170
+ option: "circa"
1171
+ } } },
1172
+ "\\x{}{}|\\x{}|\\x": { "*": { action_: "copy" } },
1173
+ "${(...)}$|$(...)$": { "*": { action_: "tex-math" } },
1174
+ "{(...)}": { "*": { action_: "{text}" } },
1175
+ else2: { "*": { action_: "copy" } }
1176
+ }),
1177
+ actions: {}
1178
+ },
1179
+ text: {
1180
+ transitions: n.createTransitions({
1181
+ empty: { "*": { action_: "output" } },
1182
+ "{...}": { "*": { action_: "text=" } },
1183
+ "${(...)}$|$(...)$": { "*": { action_: "tex-math" } },
1184
+ "\\greek": { "*": { action_: ["output", "rm"] } },
1185
+ "\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: ["output", "copy"] } },
1186
+ else: { "*": { action_: "text=" } }
1187
+ }),
1188
+ actions: { output: function(e) {
1189
+ if (e.text_) {
1190
+ var t = {
1191
+ type_: "text",
1192
+ p1: e.text_
1193
+ };
1194
+ for (var n in e) delete e[n];
1195
+ return t;
1196
+ }
1197
+ } }
1198
+ },
1199
+ pq: {
1200
+ transitions: n.createTransitions({
1201
+ empty: { "*": {} },
1202
+ "state of aggregation $": { "*": { action_: "state of aggregation" } },
1203
+ i$: { 0: {
1204
+ nextState: "!f",
1205
+ revisit: !0
1206
+ } },
1207
+ "(KV letters),": { 0: {
1208
+ action_: "rm",
1209
+ nextState: "0"
1210
+ } },
1211
+ formula$: { 0: {
1212
+ nextState: "f",
1213
+ revisit: !0
1214
+ } },
1215
+ "1/2$": { 0: { action_: "1/2" } },
1216
+ else: { 0: {
1217
+ nextState: "!f",
1218
+ revisit: !0
1219
+ } },
1220
+ "${(...)}$|$(...)$": { "*": { action_: "tex-math" } },
1221
+ "{(...)}": { "*": { action_: "text" } },
1222
+ "a-z": { f: { action_: "tex-math" } },
1223
+ letters: { "*": { action_: "rm" } },
1224
+ "-9.,9": { "*": { action_: "9,9" } },
1225
+ ",": { "*": { action_: {
1226
+ type_: "insert+p1",
1227
+ option: "comma enumeration S"
1228
+ } } },
1229
+ "\\color{(...)}{(...)}1|\\color(...){(...)}2": { "*": { action_: "color-output" } },
1230
+ "\\color{(...)}0": { "*": { action_: "color0-output" } },
1231
+ "\\ce{(...)}": { "*": { action_: "ce" } },
1232
+ "\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "copy" } },
1233
+ else2: { "*": { action_: "copy" } }
1234
+ }),
1235
+ actions: {
1236
+ "state of aggregation": function(e, t) {
1237
+ return {
1238
+ type_: "state of aggregation subscript",
1239
+ p1: n.go(t, "o")
1240
+ };
1241
+ },
1242
+ "color-output": function(e, t) {
1243
+ return {
1244
+ type_: "color",
1245
+ color1: t[0],
1246
+ color2: n.go(t[1], "pq")
1247
+ };
1248
+ }
1249
+ }
1250
+ },
1251
+ bd: {
1252
+ transitions: n.createTransitions({
1253
+ empty: { "*": {} },
1254
+ x$: { 0: {
1255
+ nextState: "!f",
1256
+ revisit: !0
1257
+ } },
1258
+ formula$: { 0: {
1259
+ nextState: "f",
1260
+ revisit: !0
1261
+ } },
1262
+ else: { 0: {
1263
+ nextState: "!f",
1264
+ revisit: !0
1265
+ } },
1266
+ "-9.,9 no missing 0": { "*": { action_: "9,9" } },
1267
+ ".": { "*": { action_: {
1268
+ type_: "insert",
1269
+ option: "electron dot"
1270
+ } } },
1271
+ "a-z": { f: { action_: "tex-math" } },
1272
+ x: { "*": { action_: {
1273
+ type_: "insert",
1274
+ option: "KV x"
1275
+ } } },
1276
+ letters: { "*": { action_: "rm" } },
1277
+ "'": { "*": { action_: {
1278
+ type_: "insert",
1279
+ option: "prime"
1280
+ } } },
1281
+ "${(...)}$|$(...)$": { "*": { action_: "tex-math" } },
1282
+ "{(...)}": { "*": { action_: "text" } },
1283
+ "\\color{(...)}{(...)}1|\\color(...){(...)}2": { "*": { action_: "color-output" } },
1284
+ "\\color{(...)}0": { "*": { action_: "color0-output" } },
1285
+ "\\ce{(...)}": { "*": { action_: "ce" } },
1286
+ "\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "copy" } },
1287
+ else2: { "*": { action_: "copy" } }
1288
+ }),
1289
+ actions: { "color-output": function(e, t) {
1290
+ return {
1291
+ type_: "color",
1292
+ color1: t[0],
1293
+ color2: n.go(t[1], "bd")
1294
+ };
1295
+ } }
1296
+ },
1297
+ oxidation: {
1298
+ transitions: n.createTransitions({
1299
+ empty: { "*": {} },
1300
+ "roman numeral": { "*": { action_: "roman-numeral" } },
1301
+ "${(...)}$|$(...)$": { "*": { action_: "tex-math" } },
1302
+ else: { "*": { action_: "copy" } }
1303
+ }),
1304
+ actions: { "roman-numeral": function(e, t) {
1305
+ return {
1306
+ type_: "roman numeral",
1307
+ p1: t || ""
1308
+ };
1309
+ } }
1310
+ },
1311
+ "tex-math": {
1312
+ transitions: n.createTransitions({
1313
+ empty: { "*": { action_: "output" } },
1314
+ "\\ce{(...)}": { "*": { action_: ["output", "ce"] } },
1315
+ "{...}|\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "o=" } },
1316
+ else: { "*": { action_: "o=" } }
1317
+ }),
1318
+ actions: { output: function(e) {
1319
+ if (e.o) {
1320
+ var t = {
1321
+ type_: "tex-math",
1322
+ p1: e.o
1323
+ };
1324
+ for (var n in e) delete e[n];
1325
+ return t;
1326
+ }
1327
+ } }
1328
+ },
1329
+ "tex-math tight": {
1330
+ transitions: n.createTransitions({
1331
+ empty: { "*": { action_: "output" } },
1332
+ "\\ce{(...)}": { "*": { action_: ["output", "ce"] } },
1333
+ "{...}|\\,|\\x{}{}|\\x{}|\\x": { "*": { action_: "o=" } },
1334
+ "-|+": { "*": { action_: "tight operator" } },
1335
+ else: { "*": { action_: "o=" } }
1336
+ }),
1337
+ actions: {
1338
+ "tight operator": function(e, t) {
1339
+ e.o = (e.o || "") + "{" + t + "}";
1340
+ },
1341
+ output: function(e) {
1342
+ if (e.o) {
1343
+ var t = {
1344
+ type_: "tex-math",
1345
+ p1: e.o
1346
+ };
1347
+ for (var n in e) delete e[n];
1348
+ return t;
1349
+ }
1350
+ }
1351
+ }
1352
+ },
1353
+ "9,9": {
1354
+ transitions: n.createTransitions({
1355
+ empty: { "*": {} },
1356
+ ",": { "*": { action_: "comma" } },
1357
+ else: { "*": { action_: "copy" } }
1358
+ }),
1359
+ actions: { comma: function() {
1360
+ return { type_: "commaDecimal" };
1361
+ } }
1362
+ },
1363
+ pu: {
1364
+ transitions: n.createTransitions({
1365
+ empty: { "*": { action_: "output" } },
1366
+ space$: { "*": { action_: ["output", "space"] } },
1367
+ "{[(|)]}": { "0|a": { action_: "copy" } },
1368
+ "(-)(9)^(-9)": { 0: {
1369
+ action_: "number^",
1370
+ nextState: "a"
1371
+ } },
1372
+ "(-)(9.,9)(e)(99)": { 0: {
1373
+ action_: "enumber",
1374
+ nextState: "a"
1375
+ } },
1376
+ space: { "0|a": {} },
1377
+ "pm-operator": { "0|a": {
1378
+ action_: {
1379
+ type_: "operator",
1380
+ option: "\\pm"
1381
+ },
1382
+ nextState: "0"
1383
+ } },
1384
+ operator: { "0|a": {
1385
+ action_: "copy",
1386
+ nextState: "0"
1387
+ } },
1388
+ "//": { d: {
1389
+ action_: "o=",
1390
+ nextState: "/"
1391
+ } },
1392
+ "/": { d: {
1393
+ action_: "o=",
1394
+ nextState: "/"
1395
+ } },
1396
+ "{...}|else": {
1397
+ "0|d": {
1398
+ action_: "d=",
1399
+ nextState: "d"
1400
+ },
1401
+ a: {
1402
+ action_: ["space", "d="],
1403
+ nextState: "d"
1404
+ },
1405
+ "/|q": {
1406
+ action_: "q=",
1407
+ nextState: "q"
1408
+ }
1409
+ }
1410
+ }),
1411
+ actions: {
1412
+ enumber: function(e, t) {
1413
+ var r = [];
1414
+ return t[0] === "+-" || t[0] === "+/-" ? r.push("\\pm ") : t[0] && r.push(t[0]), t[1] && (n.concatArray(r, n.go(t[1], "pu-9,9")), t[2] && (t[2].match(/[,.]/) ? n.concatArray(r, n.go(t[2], "pu-9,9")) : r.push(t[2])), t[3] = t[4] || t[3], t[3] && (t[3] = t[3].trim(), t[3] === "e" || t[3].substr(0, 1) === "*" ? r.push({ type_: "cdot" }) : r.push({ type_: "times" }))), t[3] && r.push("10^{" + t[5] + "}"), r;
1415
+ },
1416
+ "number^": function(e, t) {
1417
+ var r = [];
1418
+ return t[0] === "+-" || t[0] === "+/-" ? r.push("\\pm ") : t[0] && r.push(t[0]), n.concatArray(r, n.go(t[1], "pu-9,9")), r.push("^{" + t[2] + "}"), r;
1419
+ },
1420
+ operator: function(e, t, n) {
1421
+ return {
1422
+ type_: "operator",
1423
+ kind_: n || t
1424
+ };
1425
+ },
1426
+ space: function() {
1427
+ return { type_: "pu-space-1" };
1428
+ },
1429
+ output: function(e) {
1430
+ var t, r = n.patterns.match_("{(...)}", e.d || "");
1431
+ r && r.remainder === "" && (e.d = r.match_);
1432
+ var i = n.patterns.match_("{(...)}", e.q || "");
1433
+ if (i && i.remainder === "" && (e.q = i.match_), e.d &&= (e.d = e.d.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"), e.d.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F")), e.q) {
1434
+ e.q = e.q.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"), e.q = e.q.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F");
1435
+ var a = {
1436
+ d: n.go(e.d, "pu"),
1437
+ q: n.go(e.q, "pu")
1438
+ };
1439
+ e.o === "//" ? t = {
1440
+ type_: "pu-frac",
1441
+ p1: a.d,
1442
+ p2: a.q
1443
+ } : (t = a.d, a.d.length > 1 || a.q.length > 1 ? t.push({ type_: " / " }) : t.push({ type_: "/" }), n.concatArray(t, a.q));
1444
+ } else t = n.go(e.d, "pu-2");
1445
+ for (var o in e) delete e[o];
1446
+ return t;
1447
+ }
1448
+ }
1449
+ },
1450
+ "pu-2": {
1451
+ transitions: n.createTransitions({
1452
+ empty: { "*": { action_: "output" } },
1453
+ "*": { "*": {
1454
+ action_: ["output", "cdot"],
1455
+ nextState: "0"
1456
+ } },
1457
+ "\\x": { "*": { action_: "rm=" } },
1458
+ space: { "*": {
1459
+ action_: ["output", "space"],
1460
+ nextState: "0"
1461
+ } },
1462
+ "^{(...)}|^(-1)": { 1: { action_: "^(-1)" } },
1463
+ "-9.,9": {
1464
+ 0: {
1465
+ action_: "rm=",
1466
+ nextState: "0"
1467
+ },
1468
+ 1: {
1469
+ action_: "^(-1)",
1470
+ nextState: "0"
1471
+ }
1472
+ },
1473
+ "{...}|else": { "*": {
1474
+ action_: "rm=",
1475
+ nextState: "1"
1476
+ } }
1477
+ }),
1478
+ actions: {
1479
+ cdot: function() {
1480
+ return { type_: "tight cdot" };
1481
+ },
1482
+ "^(-1)": function(e, t) {
1483
+ e.rm += "^{" + t + "}";
1484
+ },
1485
+ space: function() {
1486
+ return { type_: "pu-space-2" };
1487
+ },
1488
+ output: function(e) {
1489
+ var t = [];
1490
+ if (e.rm) {
1491
+ var r = n.patterns.match_("{(...)}", e.rm || "");
1492
+ t = r && r.remainder === "" ? n.go(r.match_, "pu") : {
1493
+ type_: "rm",
1494
+ p1: e.rm
1495
+ };
1496
+ }
1497
+ for (var i in e) delete e[i];
1498
+ return t;
1499
+ }
1500
+ }
1501
+ },
1502
+ "pu-9,9": {
1503
+ transitions: n.createTransitions({
1504
+ empty: {
1505
+ 0: { action_: "output-0" },
1506
+ o: { action_: "output-o" }
1507
+ },
1508
+ ",": { 0: {
1509
+ action_: ["output-0", "comma"],
1510
+ nextState: "o"
1511
+ } },
1512
+ ".": { 0: {
1513
+ action_: ["output-0", "copy"],
1514
+ nextState: "o"
1515
+ } },
1516
+ else: { "*": { action_: "text=" } }
1517
+ }),
1518
+ actions: {
1519
+ comma: function() {
1520
+ return { type_: "commaDecimal" };
1521
+ },
1522
+ "output-0": function(e) {
1523
+ var t = [];
1524
+ if (e.text_ = e.text_ || "", e.text_.length > 4) {
1525
+ var n = e.text_.length % 3;
1526
+ n === 0 && (n = 3);
1527
+ for (var r = e.text_.length - 3; r > 0; r -= 3) t.push(e.text_.substr(r, 3)), t.push({ type_: "1000 separator" });
1528
+ t.push(e.text_.substr(0, n)), t.reverse();
1529
+ } else t.push(e.text_);
1530
+ for (var i in e) delete e[i];
1531
+ return t;
1532
+ },
1533
+ "output-o": function(e) {
1534
+ var t = [];
1535
+ if (e.text_ = e.text_ || "", e.text_.length > 4) {
1536
+ for (var n = e.text_.length - 3, r = 0; r < n; r += 3) t.push(e.text_.substr(r, 3)), t.push({ type_: "1000 separator" });
1537
+ t.push(e.text_.substr(r));
1538
+ } else t.push(e.text_);
1539
+ for (var i in e) delete e[i];
1540
+ return t;
1541
+ }
1542
+ }
1543
+ }
1544
+ };
1545
+ var r = {
1546
+ go: function(e, t) {
1547
+ if (!e) return "";
1548
+ for (var n = "", i = !1, a = 0; a < e.length; a++) {
1549
+ var o = e[a];
1550
+ typeof o == "string" ? n += o : (n += r._go2(o), o.type_ === "1st-level escape" && (i = !0));
1551
+ }
1552
+ return !t && !i && n && (n = "{" + n + "}"), n;
1553
+ },
1554
+ _goInner: function(e) {
1555
+ return e && r.go(e, !0);
1556
+ },
1557
+ _go2: function(e) {
1558
+ var t;
1559
+ switch (e.type_) {
1560
+ case "chemfive":
1561
+ t = "";
1562
+ var n = {
1563
+ a: r._goInner(e.a),
1564
+ b: r._goInner(e.b),
1565
+ p: r._goInner(e.p),
1566
+ o: r._goInner(e.o),
1567
+ q: r._goInner(e.q),
1568
+ d: r._goInner(e.d)
1569
+ };
1570
+ n.a && (n.a.match(/^[+\-]/) && (n.a = "{" + n.a + "}"), t += n.a + "\\,"), (n.b || n.p) && (t += "{\\vphantom{X}}", t += "^{\\hphantom{" + (n.b || "") + "}}_{\\hphantom{" + (n.p || "") + "}}", t += "{\\vphantom{X}}", t += "^{\\smash[t]{\\vphantom{2}}\\mathllap{" + (n.b || "") + "}}", t += "_{\\vphantom{2}\\mathllap{\\smash[t]{" + (n.p || "") + "}}}"), n.o && (n.o.match(/^[+\-]/) && (n.o = "{" + n.o + "}"), t += n.o), e.dType === "kv" ? ((n.d || n.q) && (t += "{\\vphantom{X}}"), n.d && (t += "^{" + n.d + "}"), n.q && (t += "_{\\smash[t]{" + n.q + "}}")) : e.dType === "oxidation" ? (n.d && (t += "{\\vphantom{X}}", t += "^{" + n.d + "}"), n.q && (t += "{\\vphantom{X}}", t += "_{\\smash[t]{" + n.q + "}}")) : (n.q && (t += "{\\vphantom{X}}", t += "_{\\smash[t]{" + n.q + "}}"), n.d && (t += "{\\vphantom{X}}", t += "^{" + n.d + "}"));
1571
+ break;
1572
+ case "rm":
1573
+ t = "\\mathrm{" + e.p1 + "}";
1574
+ break;
1575
+ case "text":
1576
+ e.p1.match(/[\^_]/) ? (e.p1 = e.p1.replace(" ", "~").replace("-", "\\text{-}"), t = "\\mathrm{" + e.p1 + "}") : t = "\\text{" + e.p1 + "}";
1577
+ break;
1578
+ case "roman numeral":
1579
+ t = "\\mathrm{" + e.p1 + "}";
1580
+ break;
1581
+ case "state of aggregation":
1582
+ t = "\\mskip2mu " + r._goInner(e.p1);
1583
+ break;
1584
+ case "state of aggregation subscript":
1585
+ t = "\\mskip1mu " + r._goInner(e.p1);
1586
+ break;
1587
+ case "bond":
1588
+ if (t = r._getBond(e.kind_), !t) throw ["MhchemErrorBond", "mhchem Error. Unknown bond type (" + e.kind_ + ")"];
1589
+ break;
1590
+ case "frac":
1591
+ var i = "\\frac{" + e.p1 + "}{" + e.p2 + "}";
1592
+ t = "\\mathchoice{\\textstyle" + i + "}{" + i + "}{" + i + "}{" + i + "}";
1593
+ break;
1594
+ case "pu-frac":
1595
+ var a = "\\frac{" + r._goInner(e.p1) + "}{" + r._goInner(e.p2) + "}";
1596
+ t = "\\mathchoice{\\textstyle" + a + "}{" + a + "}{" + a + "}{" + a + "}";
1597
+ break;
1598
+ case "tex-math":
1599
+ t = e.p1 + " ";
1600
+ break;
1601
+ case "frac-ce":
1602
+ t = "\\frac{" + r._goInner(e.p1) + "}{" + r._goInner(e.p2) + "}";
1603
+ break;
1604
+ case "overset":
1605
+ t = "\\overset{" + r._goInner(e.p1) + "}{" + r._goInner(e.p2) + "}";
1606
+ break;
1607
+ case "underset":
1608
+ t = "\\underset{" + r._goInner(e.p1) + "}{" + r._goInner(e.p2) + "}";
1609
+ break;
1610
+ case "underbrace":
1611
+ t = "\\underbrace{" + r._goInner(e.p1) + "}_{" + r._goInner(e.p2) + "}";
1612
+ break;
1613
+ case "color":
1614
+ t = "{\\color{" + e.color1 + "}{" + r._goInner(e.color2) + "}}";
1615
+ break;
1616
+ case "color0":
1617
+ t = "\\color{" + e.color + "}";
1618
+ break;
1619
+ case "arrow":
1620
+ var o = {
1621
+ rd: r._goInner(e.rd),
1622
+ rq: r._goInner(e.rq)
1623
+ }, s = "\\x" + r._getArrow(e.r);
1624
+ o.rq && (s += "[{" + o.rq + "}]"), o.rd ? s += "{" + o.rd + "}" : s += "{}", t = s;
1625
+ break;
1626
+ case "operator":
1627
+ t = r._getOperator(e.kind_);
1628
+ break;
1629
+ case "1st-level escape":
1630
+ t = e.p1 + " ";
1631
+ break;
1632
+ case "space":
1633
+ t = " ";
1634
+ break;
1635
+ case "entitySkip":
1636
+ t = "~";
1637
+ break;
1638
+ case "pu-space-1":
1639
+ t = "~";
1640
+ break;
1641
+ case "pu-space-2":
1642
+ t = "\\mkern3mu ";
1643
+ break;
1644
+ case "1000 separator":
1645
+ t = "\\mkern2mu ";
1646
+ break;
1647
+ case "commaDecimal":
1648
+ t = "{,}";
1649
+ break;
1650
+ case "comma enumeration L":
1651
+ t = "{" + e.p1 + "}\\mkern6mu ";
1652
+ break;
1653
+ case "comma enumeration M":
1654
+ t = "{" + e.p1 + "}\\mkern3mu ";
1655
+ break;
1656
+ case "comma enumeration S":
1657
+ t = "{" + e.p1 + "}\\mkern1mu ";
1658
+ break;
1659
+ case "hyphen":
1660
+ t = "\\text{-}";
1661
+ break;
1662
+ case "addition compound":
1663
+ t = "\\,{\\cdot}\\,";
1664
+ break;
1665
+ case "electron dot":
1666
+ t = "\\mkern1mu \\bullet\\mkern1mu ";
1667
+ break;
1668
+ case "KV x":
1669
+ t = "{\\times}";
1670
+ break;
1671
+ case "prime":
1672
+ t = "\\prime ";
1673
+ break;
1674
+ case "cdot":
1675
+ t = "\\cdot ";
1676
+ break;
1677
+ case "tight cdot":
1678
+ t = "\\mkern1mu{\\cdot}\\mkern1mu ";
1679
+ break;
1680
+ case "times":
1681
+ t = "\\times ";
1682
+ break;
1683
+ case "circa":
1684
+ t = "{\\sim}";
1685
+ break;
1686
+ case "^":
1687
+ t = "uparrow";
1688
+ break;
1689
+ case "v":
1690
+ t = "downarrow";
1691
+ break;
1692
+ case "ellipsis":
1693
+ t = "\\ldots ";
1694
+ break;
1695
+ case "/":
1696
+ t = "/";
1697
+ break;
1698
+ case " / ":
1699
+ t = "\\,/\\,";
1700
+ break;
1701
+ default: throw ["MhchemBugT", "mhchem bug T. Please report."];
1702
+ }
1703
+ return t;
1704
+ },
1705
+ _getArrow: function(e) {
1706
+ switch (e) {
1707
+ case "->": return "rightarrow";
1708
+ case "→": return "rightarrow";
1709
+ case "⟶": return "rightarrow";
1710
+ case "<-": return "leftarrow";
1711
+ case "<->": return "leftrightarrow";
1712
+ case "<-->": return "rightleftarrows";
1713
+ case "<=>": return "rightleftharpoons";
1714
+ case "⇌": return "rightleftharpoons";
1715
+ case "<=>>": return "rightequilibrium";
1716
+ case "<<=>": return "leftequilibrium";
1717
+ default: throw ["MhchemBugT", "mhchem bug T. Please report."];
1718
+ }
1719
+ },
1720
+ _getBond: function(e) {
1721
+ switch (e) {
1722
+ case "-": return "{-}";
1723
+ case "1": return "{-}";
1724
+ case "=": return "{=}";
1725
+ case "2": return "{=}";
1726
+ case "#": return "{\\equiv}";
1727
+ case "3": return "{\\equiv}";
1728
+ case "~": return "{\\tripledash}";
1729
+ case "~-": return "{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";
1730
+ case "~=": return "{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";
1731
+ case "~--": return "{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";
1732
+ case "-~-": return "{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";
1733
+ case "...": return "{{\\cdot}{\\cdot}{\\cdot}}";
1734
+ case "....": return "{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";
1735
+ case "->": return "{\\rightarrow}";
1736
+ case "<-": return "{\\leftarrow}";
1737
+ case "<": return "{<}";
1738
+ case ">": return "{>}";
1739
+ default: throw ["MhchemBugT", "mhchem bug T. Please report."];
1740
+ }
1741
+ },
1742
+ _getOperator: function(e) {
1743
+ switch (e) {
1744
+ case "+": return " {}+{} ";
1745
+ case "-": return " {}-{} ";
1746
+ case "=": return " {}={} ";
1747
+ case "<": return " {}<{} ";
1748
+ case ">": return " {}>{} ";
1749
+ case "<<": return " {}\\ll{} ";
1750
+ case ">>": return " {}\\gg{} ";
1751
+ case "\\pm": return " {}\\pm{} ";
1752
+ case "\\approx": return " {}\\approx{} ";
1753
+ case "$\\approx$": return " {}\\approx{} ";
1754
+ case "v": return " \\downarrow{} ";
1755
+ case "(v)": return " \\downarrow{} ";
1756
+ case "^": return " \\uparrow{} ";
1757
+ case "(^)": return " \\uparrow{} ";
1758
+ default: throw ["MhchemBugT", "mhchem bug T. Please report."];
1759
+ }
1760
+ }
1761
+ };
1762
+ //#endregion