@lamplitisles/codex-for-love 0.1.0-beta.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 (280) hide show
  1. package/LICENSE +73 -0
  2. package/NOTICE +1 -0
  3. package/README.md +5 -0
  4. package/bin/codex-for-love.mjs +23 -0
  5. package/package.json +17 -0
  6. package/vendor/IMPORTS.md +135 -0
  7. package/vendor/build/_app/immutable/assets/0.BvPOd6uh.css +2 -0
  8. package/vendor/build/_app/immutable/assets/2.BeJIokfS.css +1 -0
  9. package/vendor/build/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 +0 -0
  10. package/vendor/build/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff +0 -0
  11. package/vendor/build/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf +0 -0
  12. package/vendor/build/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf +0 -0
  13. package/vendor/build/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff +0 -0
  14. package/vendor/build/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 +0 -0
  15. package/vendor/build/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff +0 -0
  16. package/vendor/build/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 +0 -0
  17. package/vendor/build/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf +0 -0
  18. package/vendor/build/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf +0 -0
  19. package/vendor/build/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff +0 -0
  20. package/vendor/build/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 +0 -0
  21. package/vendor/build/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf +0 -0
  22. package/vendor/build/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 +0 -0
  23. package/vendor/build/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff +0 -0
  24. package/vendor/build/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 +0 -0
  25. package/vendor/build/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff +0 -0
  26. package/vendor/build/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf +0 -0
  27. package/vendor/build/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 +0 -0
  28. package/vendor/build/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf +0 -0
  29. package/vendor/build/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff +0 -0
  30. package/vendor/build/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf +0 -0
  31. package/vendor/build/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff +0 -0
  32. package/vendor/build/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 +0 -0
  33. package/vendor/build/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 +0 -0
  34. package/vendor/build/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff +0 -0
  35. package/vendor/build/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf +0 -0
  36. package/vendor/build/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf +0 -0
  37. package/vendor/build/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 +0 -0
  38. package/vendor/build/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff +0 -0
  39. package/vendor/build/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff +0 -0
  40. package/vendor/build/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf +0 -0
  41. package/vendor/build/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 +0 -0
  42. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf +0 -0
  43. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 +0 -0
  44. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff +0 -0
  45. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 +0 -0
  46. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff +0 -0
  47. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf +0 -0
  48. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf +0 -0
  49. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff +0 -0
  50. package/vendor/build/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 +0 -0
  51. package/vendor/build/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf +0 -0
  52. package/vendor/build/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 +0 -0
  53. package/vendor/build/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff +0 -0
  54. package/vendor/build/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff +0 -0
  55. package/vendor/build/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf +0 -0
  56. package/vendor/build/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 +0 -0
  57. package/vendor/build/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf +0 -0
  58. package/vendor/build/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 +0 -0
  59. package/vendor/build/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff +0 -0
  60. package/vendor/build/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff +0 -0
  61. package/vendor/build/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf +0 -0
  62. package/vendor/build/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff +0 -0
  63. package/vendor/build/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf +0 -0
  64. package/vendor/build/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 +0 -0
  65. package/vendor/build/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff +0 -0
  66. package/vendor/build/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 +0 -0
  67. package/vendor/build/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf +0 -0
  68. package/vendor/build/_app/immutable/assets/noto-sans-sc-100-400-normal.BO-rXsv0.woff +0 -0
  69. package/vendor/build/_app/immutable/assets/noto-sans-sc-100-400-normal.CX-7pUk_.woff2 +0 -0
  70. package/vendor/build/_app/immutable/assets/noto-sans-sc-101-400-normal.Bi19zLN0.woff +0 -0
  71. package/vendor/build/_app/immutable/assets/noto-sans-sc-101-400-normal.DYFU5ahq.woff2 +0 -0
  72. package/vendor/build/_app/immutable/assets/noto-sans-sc-102-400-normal.D9Vb3-ZK.woff +0 -0
  73. package/vendor/build/_app/immutable/assets/noto-sans-sc-102-400-normal.lPQNp5DG.woff2 +0 -0
  74. package/vendor/build/_app/immutable/assets/noto-sans-sc-103-400-normal.142t-yFg.woff +0 -0
  75. package/vendor/build/_app/immutable/assets/noto-sans-sc-103-400-normal.DrxRoDmn.woff2 +0 -0
  76. package/vendor/build/_app/immutable/assets/noto-sans-sc-104-400-normal.DbzfdvQ5.woff2 +0 -0
  77. package/vendor/build/_app/immutable/assets/noto-sans-sc-104-400-normal.Dlu6I-os.woff +0 -0
  78. package/vendor/build/_app/immutable/assets/noto-sans-sc-105-400-normal.BiKizsW3.woff2 +0 -0
  79. package/vendor/build/_app/immutable/assets/noto-sans-sc-105-400-normal.DAvx8soP.woff +0 -0
  80. package/vendor/build/_app/immutable/assets/noto-sans-sc-106-400-normal.CLmIr7NC.woff +0 -0
  81. package/vendor/build/_app/immutable/assets/noto-sans-sc-106-400-normal.DDMMORp2.woff2 +0 -0
  82. package/vendor/build/_app/immutable/assets/noto-sans-sc-107-400-normal.7y5Di-0o.woff +0 -0
  83. package/vendor/build/_app/immutable/assets/noto-sans-sc-107-400-normal.DUS2YNa3.woff2 +0 -0
  84. package/vendor/build/_app/immutable/assets/noto-sans-sc-108-400-normal.BjvHph8P.woff +0 -0
  85. package/vendor/build/_app/immutable/assets/noto-sans-sc-108-400-normal.D80tGT87.woff2 +0 -0
  86. package/vendor/build/_app/immutable/assets/noto-sans-sc-109-400-normal.D-QmuIiA.woff +0 -0
  87. package/vendor/build/_app/immutable/assets/noto-sans-sc-109-400-normal.ZEHPyOzB.woff2 +0 -0
  88. package/vendor/build/_app/immutable/assets/noto-sans-sc-110-400-normal.BdM_D5Jz.woff +0 -0
  89. package/vendor/build/_app/immutable/assets/noto-sans-sc-110-400-normal.D1IYcvpb.woff2 +0 -0
  90. package/vendor/build/_app/immutable/assets/noto-sans-sc-111-400-normal.C5Xi9UGz.woff2 +0 -0
  91. package/vendor/build/_app/immutable/assets/noto-sans-sc-111-400-normal.D5coW_21.woff +0 -0
  92. package/vendor/build/_app/immutable/assets/noto-sans-sc-112-400-normal.D7zgcIsz.woff +0 -0
  93. package/vendor/build/_app/immutable/assets/noto-sans-sc-112-400-normal.F9zvXQVU.woff2 +0 -0
  94. package/vendor/build/_app/immutable/assets/noto-sans-sc-113-400-normal.DSmELDL6.woff +0 -0
  95. package/vendor/build/_app/immutable/assets/noto-sans-sc-113-400-normal.DZoqVzDv.woff2 +0 -0
  96. package/vendor/build/_app/immutable/assets/noto-sans-sc-114-400-normal.CGiue1yH.woff +0 -0
  97. package/vendor/build/_app/immutable/assets/noto-sans-sc-114-400-normal.CZUMxNv_.woff2 +0 -0
  98. package/vendor/build/_app/immutable/assets/noto-sans-sc-115-400-normal.BQfWDt6M.woff2 +0 -0
  99. package/vendor/build/_app/immutable/assets/noto-sans-sc-115-400-normal.mjVAPzyl.woff +0 -0
  100. package/vendor/build/_app/immutable/assets/noto-sans-sc-116-400-normal.B9rv4EzF.woff2 +0 -0
  101. package/vendor/build/_app/immutable/assets/noto-sans-sc-116-400-normal.DDOlrOnk.woff +0 -0
  102. package/vendor/build/_app/immutable/assets/noto-sans-sc-117-400-normal.DsfbLHms.woff +0 -0
  103. package/vendor/build/_app/immutable/assets/noto-sans-sc-117-400-normal.QPrBdlQO.woff2 +0 -0
  104. package/vendor/build/_app/immutable/assets/noto-sans-sc-118-400-normal.CgZ3QXkC.woff +0 -0
  105. package/vendor/build/_app/immutable/assets/noto-sans-sc-118-400-normal.CqQ_A8sl.woff2 +0 -0
  106. package/vendor/build/_app/immutable/assets/noto-sans-sc-119-400-normal.C7mqcMDM.woff +0 -0
  107. package/vendor/build/_app/immutable/assets/noto-sans-sc-119-400-normal.flOVnW3A.woff2 +0 -0
  108. package/vendor/build/_app/immutable/assets/noto-sans-sc-21-400-normal.Bfz3Xm1a.woff2 +0 -0
  109. package/vendor/build/_app/immutable/assets/noto-sans-sc-21-400-normal.BnEV7ZGG.woff +0 -0
  110. package/vendor/build/_app/immutable/assets/noto-sans-sc-22-400-normal.B_m_Ehi5.woff +0 -0
  111. package/vendor/build/_app/immutable/assets/noto-sans-sc-22-400-normal.yOvQSDF6.woff2 +0 -0
  112. package/vendor/build/_app/immutable/assets/noto-sans-sc-23-400-normal.CX4MRI2p.woff +0 -0
  113. package/vendor/build/_app/immutable/assets/noto-sans-sc-23-400-normal.D0XQUkMM.woff2 +0 -0
  114. package/vendor/build/_app/immutable/assets/noto-sans-sc-24-400-normal.ClGanIYI.woff +0 -0
  115. package/vendor/build/_app/immutable/assets/noto-sans-sc-24-400-normal.mI4tDgE1.woff2 +0 -0
  116. package/vendor/build/_app/immutable/assets/noto-sans-sc-25-400-normal.C6yCXu6a.woff +0 -0
  117. package/vendor/build/_app/immutable/assets/noto-sans-sc-25-400-normal.CD3JKveN.woff2 +0 -0
  118. package/vendor/build/_app/immutable/assets/noto-sans-sc-26-400-normal.B306_DcA.woff2 +0 -0
  119. package/vendor/build/_app/immutable/assets/noto-sans-sc-26-400-normal.Dxnlkp_o.woff +0 -0
  120. package/vendor/build/_app/immutable/assets/noto-sans-sc-27-400-normal.DU5YC6S1.woff +0 -0
  121. package/vendor/build/_app/immutable/assets/noto-sans-sc-27-400-normal.LzZF_NqI.woff2 +0 -0
  122. package/vendor/build/_app/immutable/assets/noto-sans-sc-28-400-normal.4HLOSY5F.woff +0 -0
  123. package/vendor/build/_app/immutable/assets/noto-sans-sc-28-400-normal.CEc-bbYn.woff2 +0 -0
  124. package/vendor/build/_app/immutable/assets/noto-sans-sc-29-400-normal.CTMIENlc.woff2 +0 -0
  125. package/vendor/build/_app/immutable/assets/noto-sans-sc-29-400-normal.DmkA50P6.woff +0 -0
  126. package/vendor/build/_app/immutable/assets/noto-sans-sc-30-400-normal.D4bISz8a.woff +0 -0
  127. package/vendor/build/_app/immutable/assets/noto-sans-sc-30-400-normal.Dzb6Zn8O.woff2 +0 -0
  128. package/vendor/build/_app/immutable/assets/noto-sans-sc-31-400-normal.Cngcbauu.woff2 +0 -0
  129. package/vendor/build/_app/immutable/assets/noto-sans-sc-31-400-normal.CpMy1pFR.woff +0 -0
  130. package/vendor/build/_app/immutable/assets/noto-sans-sc-32-400-normal.BB06QLw6.woff +0 -0
  131. package/vendor/build/_app/immutable/assets/noto-sans-sc-32-400-normal.BqAPF1tT.woff2 +0 -0
  132. package/vendor/build/_app/immutable/assets/noto-sans-sc-33-400-normal.970__YrQ.woff +0 -0
  133. package/vendor/build/_app/immutable/assets/noto-sans-sc-33-400-normal.CUXtFK-t.woff2 +0 -0
  134. package/vendor/build/_app/immutable/assets/noto-sans-sc-34-400-normal.D06kjf8X.woff +0 -0
  135. package/vendor/build/_app/immutable/assets/noto-sans-sc-34-400-normal.Djw1IAuw.woff2 +0 -0
  136. package/vendor/build/_app/immutable/assets/noto-sans-sc-35-400-normal.CaG_p1w5.woff +0 -0
  137. package/vendor/build/_app/immutable/assets/noto-sans-sc-35-400-normal.Chgyqx1E.woff2 +0 -0
  138. package/vendor/build/_app/immutable/assets/noto-sans-sc-36-400-normal.BxBT42kb.woff2 +0 -0
  139. package/vendor/build/_app/immutable/assets/noto-sans-sc-36-400-normal.IjrD2Bk1.woff +0 -0
  140. package/vendor/build/_app/immutable/assets/noto-sans-sc-37-400-normal.BR9TSq0A.woff +0 -0
  141. package/vendor/build/_app/immutable/assets/noto-sans-sc-37-400-normal.CjshmOwp.woff2 +0 -0
  142. package/vendor/build/_app/immutable/assets/noto-sans-sc-38-400-normal.D0ErwWLV.woff2 +0 -0
  143. package/vendor/build/_app/immutable/assets/noto-sans-sc-38-400-normal.Pcs7Bw7T.woff +0 -0
  144. package/vendor/build/_app/immutable/assets/noto-sans-sc-39-400-normal.BdnXWhtv.woff +0 -0
  145. package/vendor/build/_app/immutable/assets/noto-sans-sc-39-400-normal.CNreqa8s.woff2 +0 -0
  146. package/vendor/build/_app/immutable/assets/noto-sans-sc-40-400-normal.DcIMWQiP.woff2 +0 -0
  147. package/vendor/build/_app/immutable/assets/noto-sans-sc-40-400-normal.DmftZfNt.woff +0 -0
  148. package/vendor/build/_app/immutable/assets/noto-sans-sc-41-400-normal.BeCST3sV.woff +0 -0
  149. package/vendor/build/_app/immutable/assets/noto-sans-sc-41-400-normal.CwF0ysup.woff2 +0 -0
  150. package/vendor/build/_app/immutable/assets/noto-sans-sc-42-400-normal.CwAh0C6j.woff +0 -0
  151. package/vendor/build/_app/immutable/assets/noto-sans-sc-42-400-normal.ZKOUmsTa.woff2 +0 -0
  152. package/vendor/build/_app/immutable/assets/noto-sans-sc-43-400-normal.CVPqYXUd.woff +0 -0
  153. package/vendor/build/_app/immutable/assets/noto-sans-sc-43-400-normal.WDsqqjmk.woff2 +0 -0
  154. package/vendor/build/_app/immutable/assets/noto-sans-sc-44-400-normal.BT6yUYAt.woff +0 -0
  155. package/vendor/build/_app/immutable/assets/noto-sans-sc-44-400-normal.wq9JI-iJ.woff2 +0 -0
  156. package/vendor/build/_app/immutable/assets/noto-sans-sc-45-400-normal.DdOuPp0S.woff2 +0 -0
  157. package/vendor/build/_app/immutable/assets/noto-sans-sc-45-400-normal.wKcTGncR.woff +0 -0
  158. package/vendor/build/_app/immutable/assets/noto-sans-sc-46-400-normal.D8BHNHvK.woff +0 -0
  159. package/vendor/build/_app/immutable/assets/noto-sans-sc-46-400-normal.DxQ4Lw-z.woff2 +0 -0
  160. package/vendor/build/_app/immutable/assets/noto-sans-sc-47-400-normal.CZbI_HNG.woff2 +0 -0
  161. package/vendor/build/_app/immutable/assets/noto-sans-sc-47-400-normal.TIljQdBM.woff +0 -0
  162. package/vendor/build/_app/immutable/assets/noto-sans-sc-48-400-normal.BeitBaI5.woff +0 -0
  163. package/vendor/build/_app/immutable/assets/noto-sans-sc-48-400-normal.JHdMabvg.woff2 +0 -0
  164. package/vendor/build/_app/immutable/assets/noto-sans-sc-49-400-normal.B43LfYL1.woff2 +0 -0
  165. package/vendor/build/_app/immutable/assets/noto-sans-sc-49-400-normal.C0rnBp58.woff +0 -0
  166. package/vendor/build/_app/immutable/assets/noto-sans-sc-5-400-normal.3RzBeGhg.woff2 +0 -0
  167. package/vendor/build/_app/immutable/assets/noto-sans-sc-5-400-normal.CxziD17Z.woff +0 -0
  168. package/vendor/build/_app/immutable/assets/noto-sans-sc-50-400-normal.BeYaGcbF.woff2 +0 -0
  169. package/vendor/build/_app/immutable/assets/noto-sans-sc-50-400-normal.Ds5H6yvt.woff +0 -0
  170. package/vendor/build/_app/immutable/assets/noto-sans-sc-51-400-normal.BXmprHGd.woff2 +0 -0
  171. package/vendor/build/_app/immutable/assets/noto-sans-sc-51-400-normal.XuFDRqdl.woff +0 -0
  172. package/vendor/build/_app/immutable/assets/noto-sans-sc-52-400-normal.D6TC2b36.woff2 +0 -0
  173. package/vendor/build/_app/immutable/assets/noto-sans-sc-52-400-normal.aCTK3zc9.woff +0 -0
  174. package/vendor/build/_app/immutable/assets/noto-sans-sc-53-400-normal.0yU0ZVKB.woff +0 -0
  175. package/vendor/build/_app/immutable/assets/noto-sans-sc-53-400-normal.DpzojyPN.woff2 +0 -0
  176. package/vendor/build/_app/immutable/assets/noto-sans-sc-54-400-normal.B9QLYnEh.woff2 +0 -0
  177. package/vendor/build/_app/immutable/assets/noto-sans-sc-54-400-normal.BayPw5AU.woff +0 -0
  178. package/vendor/build/_app/immutable/assets/noto-sans-sc-55-400-normal.BJgYTKZI.woff +0 -0
  179. package/vendor/build/_app/immutable/assets/noto-sans-sc-55-400-normal.CYV3hjnq.woff2 +0 -0
  180. package/vendor/build/_app/immutable/assets/noto-sans-sc-56-400-normal.B57fiM3p.woff2 +0 -0
  181. package/vendor/build/_app/immutable/assets/noto-sans-sc-56-400-normal.DsWT-1MH.woff +0 -0
  182. package/vendor/build/_app/immutable/assets/noto-sans-sc-57-400-normal.0KJcqtwa.woff2 +0 -0
  183. package/vendor/build/_app/immutable/assets/noto-sans-sc-57-400-normal.CS3ugs7l.woff +0 -0
  184. package/vendor/build/_app/immutable/assets/noto-sans-sc-58-400-normal.BDZWSF0h.woff +0 -0
  185. package/vendor/build/_app/immutable/assets/noto-sans-sc-58-400-normal.DHIustpc.woff2 +0 -0
  186. package/vendor/build/_app/immutable/assets/noto-sans-sc-59-400-normal.D2Pb31nB.woff +0 -0
  187. package/vendor/build/_app/immutable/assets/noto-sans-sc-59-400-normal.D7wWmpIm.woff2 +0 -0
  188. package/vendor/build/_app/immutable/assets/noto-sans-sc-6-400-normal.Cz_J3E7W.woff +0 -0
  189. package/vendor/build/_app/immutable/assets/noto-sans-sc-6-400-normal.D73klzWF.woff2 +0 -0
  190. package/vendor/build/_app/immutable/assets/noto-sans-sc-60-400-normal.BPkETD2Q.woff +0 -0
  191. package/vendor/build/_app/immutable/assets/noto-sans-sc-60-400-normal.BkgLo8ii.woff2 +0 -0
  192. package/vendor/build/_app/immutable/assets/noto-sans-sc-61-400-normal.Db-2MbZ9.woff +0 -0
  193. package/vendor/build/_app/immutable/assets/noto-sans-sc-61-400-normal.ggoUFMmb.woff2 +0 -0
  194. package/vendor/build/_app/immutable/assets/noto-sans-sc-62-400-normal.B7SX0Ny8.woff +0 -0
  195. package/vendor/build/_app/immutable/assets/noto-sans-sc-62-400-normal.ytbDME29.woff2 +0 -0
  196. package/vendor/build/_app/immutable/assets/noto-sans-sc-63-400-normal.BYQsjKYd.woff2 +0 -0
  197. package/vendor/build/_app/immutable/assets/noto-sans-sc-63-400-normal.CzPlApb7.woff +0 -0
  198. package/vendor/build/_app/immutable/assets/noto-sans-sc-64-400-normal.9n4RwFjr.woff2 +0 -0
  199. package/vendor/build/_app/immutable/assets/noto-sans-sc-64-400-normal.CnR-0l9p.woff +0 -0
  200. package/vendor/build/_app/immutable/assets/noto-sans-sc-65-400-normal.BeK8C6zz.woff +0 -0
  201. package/vendor/build/_app/immutable/assets/noto-sans-sc-65-400-normal.Co4l6Z_j.woff2 +0 -0
  202. package/vendor/build/_app/immutable/assets/noto-sans-sc-66-400-normal.BELuybXz.woff2 +0 -0
  203. package/vendor/build/_app/immutable/assets/noto-sans-sc-66-400-normal.DyRyltg8.woff +0 -0
  204. package/vendor/build/_app/immutable/assets/noto-sans-sc-67-400-normal.-wzFx5DH.woff +0 -0
  205. package/vendor/build/_app/immutable/assets/noto-sans-sc-67-400-normal.BS_2ddPd.woff2 +0 -0
  206. package/vendor/build/_app/immutable/assets/noto-sans-sc-68-400-normal.BAjgs8u1.woff +0 -0
  207. package/vendor/build/_app/immutable/assets/noto-sans-sc-68-400-normal.DhhAKUnY.woff2 +0 -0
  208. package/vendor/build/_app/immutable/assets/noto-sans-sc-69-400-normal.DVTFUlay.woff +0 -0
  209. package/vendor/build/_app/immutable/assets/noto-sans-sc-69-400-normal.o5cK7hs4.woff2 +0 -0
  210. package/vendor/build/_app/immutable/assets/noto-sans-sc-70-400-normal.1lgt7roi.woff +0 -0
  211. package/vendor/build/_app/immutable/assets/noto-sans-sc-70-400-normal.BlWmkfgH.woff2 +0 -0
  212. package/vendor/build/_app/immutable/assets/noto-sans-sc-71-400-normal.BcUyOtRS.woff +0 -0
  213. package/vendor/build/_app/immutable/assets/noto-sans-sc-71-400-normal.HYJki_zr.woff2 +0 -0
  214. package/vendor/build/_app/immutable/assets/noto-sans-sc-72-400-normal.BLx1zxYv.woff2 +0 -0
  215. package/vendor/build/_app/immutable/assets/noto-sans-sc-72-400-normal.Df_D_sj8.woff +0 -0
  216. package/vendor/build/_app/immutable/assets/noto-sans-sc-73-400-normal.BRFF09wf.woff +0 -0
  217. package/vendor/build/_app/immutable/assets/noto-sans-sc-73-400-normal.tzRZHUkU.woff2 +0 -0
  218. package/vendor/build/_app/immutable/assets/noto-sans-sc-74-400-normal.C15MV3i1.woff +0 -0
  219. package/vendor/build/_app/immutable/assets/noto-sans-sc-74-400-normal.C40Ur-xi.woff2 +0 -0
  220. package/vendor/build/_app/immutable/assets/noto-sans-sc-75-400-normal.BBx4YRQ9.woff +0 -0
  221. package/vendor/build/_app/immutable/assets/noto-sans-sc-75-400-normal.CUYSz9vA.woff2 +0 -0
  222. package/vendor/build/_app/immutable/assets/noto-sans-sc-76-400-normal.C4_76-zS.woff +0 -0
  223. package/vendor/build/_app/immutable/assets/noto-sans-sc-76-400-normal.JtvMmeCp.woff2 +0 -0
  224. package/vendor/build/_app/immutable/assets/noto-sans-sc-77-400-normal.CxYpJvkI.woff2 +0 -0
  225. package/vendor/build/_app/immutable/assets/noto-sans-sc-77-400-normal.D2-acYFw.woff +0 -0
  226. package/vendor/build/_app/immutable/assets/noto-sans-sc-78-400-normal.-Q5ApOuu.woff +0 -0
  227. package/vendor/build/_app/immutable/assets/noto-sans-sc-78-400-normal.AGz1p3mV.woff2 +0 -0
  228. package/vendor/build/_app/immutable/assets/noto-sans-sc-79-400-normal.Bs84SZW2.woff2 +0 -0
  229. package/vendor/build/_app/immutable/assets/noto-sans-sc-79-400-normal.C-sLDZqR.woff +0 -0
  230. package/vendor/build/_app/immutable/assets/noto-sans-sc-80-400-normal.BJE7u3HD.woff +0 -0
  231. package/vendor/build/_app/immutable/assets/noto-sans-sc-80-400-normal.psViYwkz.woff2 +0 -0
  232. package/vendor/build/_app/immutable/assets/noto-sans-sc-81-400-normal.BImDXGMr.woff2 +0 -0
  233. package/vendor/build/_app/immutable/assets/noto-sans-sc-81-400-normal.BWPnSkid.woff +0 -0
  234. package/vendor/build/_app/immutable/assets/noto-sans-sc-82-400-normal.BZZDzro0.woff2 +0 -0
  235. package/vendor/build/_app/immutable/assets/noto-sans-sc-82-400-normal.IMxdP4Bn.woff +0 -0
  236. package/vendor/build/_app/immutable/assets/noto-sans-sc-83-400-normal.CaNTasFi.woff +0 -0
  237. package/vendor/build/_app/immutable/assets/noto-sans-sc-83-400-normal.cx8M2qMo.woff2 +0 -0
  238. package/vendor/build/_app/immutable/assets/noto-sans-sc-84-400-normal.BUAHubMX.woff +0 -0
  239. package/vendor/build/_app/immutable/assets/noto-sans-sc-84-400-normal.BtmNIfry.woff2 +0 -0
  240. package/vendor/build/_app/immutable/assets/noto-sans-sc-85-400-normal.CNc66YTY.woff2 +0 -0
  241. package/vendor/build/_app/immutable/assets/noto-sans-sc-85-400-normal.DJgWDvwN.woff +0 -0
  242. package/vendor/build/_app/immutable/assets/noto-sans-sc-86-400-normal.Cs9yXoGU.woff2 +0 -0
  243. package/vendor/build/_app/immutable/assets/noto-sans-sc-86-400-normal.Ds-iyoTm.woff +0 -0
  244. package/vendor/build/_app/immutable/assets/noto-sans-sc-87-400-normal.BGelIZWt.woff2 +0 -0
  245. package/vendor/build/_app/immutable/assets/noto-sans-sc-87-400-normal.BfoaKG7-.woff +0 -0
  246. package/vendor/build/_app/immutable/assets/noto-sans-sc-88-400-normal.BVGOGyuM.woff +0 -0
  247. package/vendor/build/_app/immutable/assets/noto-sans-sc-88-400-normal.D3GwXLyo.woff2 +0 -0
  248. package/vendor/build/_app/immutable/assets/noto-sans-sc-89-400-normal.DjBdLf5T.woff +0 -0
  249. package/vendor/build/_app/immutable/assets/noto-sans-sc-89-400-normal.acup1U1Z.woff2 +0 -0
  250. package/vendor/build/_app/immutable/assets/noto-sans-sc-90-400-normal.DRuAc-VY.woff2 +0 -0
  251. package/vendor/build/_app/immutable/assets/noto-sans-sc-90-400-normal.DZvnhzDn.woff +0 -0
  252. package/vendor/build/_app/immutable/assets/noto-sans-sc-91-400-normal.BdbNZCTz.woff2 +0 -0
  253. package/vendor/build/_app/immutable/assets/noto-sans-sc-91-400-normal.CxcTLhKE.woff +0 -0
  254. package/vendor/build/_app/immutable/assets/noto-sans-sc-99-400-normal.BKciDCgy.woff +0 -0
  255. package/vendor/build/_app/immutable/assets/noto-sans-sc-99-400-normal.BTAaudar.woff2 +0 -0
  256. package/vendor/build/_app/immutable/assets/noto-sans-sc-cyrillic-400-normal.C55cY1BO.woff +0 -0
  257. package/vendor/build/_app/immutable/assets/noto-sans-sc-cyrillic-400-normal.CgZvxLpU.woff2 +0 -0
  258. package/vendor/build/_app/immutable/assets/noto-sans-sc-latin-400-normal.C2B4T-o7.woff +0 -0
  259. package/vendor/build/_app/immutable/assets/noto-sans-sc-latin-400-normal.C8q2FS1w.woff2 +0 -0
  260. package/vendor/build/_app/immutable/assets/noto-sans-sc-latin-ext-400-normal.CY4-cFyH.woff +0 -0
  261. package/vendor/build/_app/immutable/assets/noto-sans-sc-latin-ext-400-normal.KRK7eeLK.woff2 +0 -0
  262. package/vendor/build/_app/immutable/assets/noto-sans-sc-vietnamese-400-normal.BKaPybhj.woff +0 -0
  263. package/vendor/build/_app/immutable/assets/noto-sans-sc-vietnamese-400-normal.Bi2eM1Po.woff2 +0 -0
  264. package/vendor/build/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  265. package/vendor/build/_app/immutable/chunks/eSlNf1Mv.js +3 -0
  266. package/vendor/build/_app/immutable/chunks/xihTtKlq.js +1 -0
  267. package/vendor/build/_app/immutable/chunks/zMUGUTxq.js +1 -0
  268. package/vendor/build/_app/immutable/entry/app.CzGK3Nds.js +2 -0
  269. package/vendor/build/_app/immutable/entry/start.Clu1UYHv.js +1 -0
  270. package/vendor/build/_app/immutable/nodes/0.gonV4k8o.js +1 -0
  271. package/vendor/build/_app/immutable/nodes/1.BTm4iS_m.js +1 -0
  272. package/vendor/build/_app/immutable/nodes/2.4zGk7wzR.js +553 -0
  273. package/vendor/build/_app/version.json +1 -0
  274. package/vendor/build/index.html +29 -0
  275. package/vendor/config.example.toml +30 -0
  276. package/vendor/package.json +1 -0
  277. package/vendor/persona.example.md +3 -0
  278. package/vendor/runtime/cli.mjs +67591 -0
  279. package/vendor/runtime/companion-mcp.mjs +21947 -0
  280. package/vendor/runtime/session-start-hook.mjs +34 -0
@@ -0,0 +1,553 @@
1
+ import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,I as c,J as l,K as u,L as d,M as f,N as p,O as m,P as h,Q as g,R as _,S as v,St as y,T as b,U as x,V as S,W as C,Y as ee,Z as w,_ as T,_t as te,at as ne,b as re,bt as E,c as ie,ct as ae,d as oe,dt as se,et as D,f as ce,g as le,gt as ue,h as O,ht as de,i as fe,it as k,j as A,k as pe,l as me,lt as he,m as ge,mt as _e,nt as j,o as ve,ot as M,p as ye,pt as be,q as xe,r as Se,rt as Ce,s as N,st as we,t as Te,tt as P,u as Ee,ut as F,v as De,vt as Oe,w as ke,x as Ae,xt as I,y as je,yt as Me,z as Ne}from"../chunks/eSlNf1Mv.js";import"../chunks/xihTtKlq.js";function Pe(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.revision>t.revision)&&n.set(e.id,e)}return[...n.values()].sort((e,t)=>e.sequence-t.sequence)}function Fe(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.revision>t.revision)&&n.set(e.id,e)}return[...n.values()].sort((e,t)=>e.sequence-t.sequence||e.revision-t.revision)}var Ie=`image/png,image/jpeg,image/webp,image/gif`,Le=new Set([`image/png`,`image/jpeg`,`image/webp`,`image/gif`]);function Re(e,t,n){if(t.length!==0){if(!n)return{key:`image.unavailable`};if(t.some(e=>!Le.has(e.type)||!n.mediaTypes.includes(e.type)))return{key:`image.types`};if(e.length+t.length>n.maxImagesPerMessage)return{key:`image.countLimit`,params:{count:n.maxImagesPerMessage}};if(t.some(e=>e.size>n.maxImageBytes))return{key:`image.tooLarge`};if(e.reduce((e,t)=>e+t.file.size,0)+t.reduce((e,t)=>e+t.size,0)>n.maxMessageImageBytes)return{key:`image.totalTooLarge`}}}function ze(e){return e.map(e=>({id:crypto.randomUUID(),file:e,previewUrl:URL.createObjectURL(e)}))}function Be(e){for(let t of e)t.previewUrl.startsWith(`blob:`)&&URL.revokeObjectURL(t.previewUrl)}function Ve(e){if(!e)return[];let t=[];for(let n=0;n<e.items.length;n+=1){let r=e.items[n];if(r.kind!==`file`||!r.type.startsWith(`image/`))continue;let i=r.getAsFile();i&&t.push(i)}return t.length>0?t:Array.from(e.files).filter(e=>e.type.startsWith(`image/`))}async function He(e,t=fetch){let n=e.webPath;if(!n)throw Error(`camera-media-missing-url`);try{let r=await t(n);if(!r.ok)throw Error(`camera-media-fetch-failed`);let i=await r.blob(),a=Ge(i.type)??Ge(e.metadata?.format)??Ge(n);if(!a)throw Error(`camera-media-unsupported-type`);let o=a.slice(6);return new File([i],`camera-photo.${o}`,{type:a})}finally{n.startsWith(`blob:`)&&URL.revokeObjectURL(n)}}async function Ue(e){return Promise.all(e.map(async e=>({type:`image`,mediaType:e.file.type,data:await We(e.file),...e.file.name?{name:e.file.name}:{}})))}function We(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=typeof r.result==`string`?r.result:``,i=e.indexOf(`,`);if(i<0){n(Error(`image-read-failed`));return}t(e.slice(i+1))},r.onerror=()=>n(r.error??Error(`image-read-failed`)),r.readAsDataURL(e)})}function Ge(e){let t=e?.trim().toLowerCase().replace(/^\./u,``);if(t){if(t===`jpg`||t===`jpeg`||t===`image/jpg`||t===`image/jpeg`)return`image/jpeg`;if(t===`png`||t===`image/png`)return`image/png`;if(t===`webp`||t===`image/webp`)return`image/webp`;if(t===`gif`||t===`image/gif`)return`image/gif`}}function Ke(e,t){let n=new Map;for(let r of t){let t=0;if(r.anchorId){let n=e.findIndex(e=>e.id===`${r.anchorId}:user`);if(n<0)continue;if(r.position===`before`)t=n;else if(r.position===`after-user`)t=n+1;else for(t=n+1;e[t]?.side===`incoming`;)t+=1}let i=n.get(t)??[];i.push({id:r.id,side:`incoming`,items:[{id:r.id,messageKey:r.id,kind:`continuity`,side:`incoming`,tone:`success`,compactionId:r.id,text:``,time:r.time,anchorSeq:t}]}),n.set(t,i)}return Array.from({length:e.length+1},(t,r)=>[...n.get(r)??[],...e[r]?[e[r]]:[]]).flat()}Oe();var qe=16e3,Je=10485760,Ye=3e5,Xe=[`audio/aac`,`audio/amr`,`audio/aiff`,`audio/flac`,`audio/mpeg`,`audio/mp3`,`audio/ogg`,`audio/opus`,`audio/wav`,`audio/x-wav`,`audio/webm`,`audio/x-ms-wma`],Ze=[`surprised`,`neutral`,`happy`,`sad`,`disgusted`,`angry`,`fearful`],Qe=`[a-z0-9!#$&^_.+-]+`,$e=RegExp(`^audio\\/[a-z0-9][a-z0-9.+-]*(?:\\s*;\\s*${Qe}=${Qe})*$`,`u`);function et(e){if(typeof e!=`string`||e.length>256)return;let t=e.trim().toLowerCase();if(!/^[\x00-\x7F]*$/u.test(t))return;let n=t.split(`;`,1)[0]?.trim();if(n&&$e.test(t))return Xe.includes(n)?t:void 0}function tt(e){return typeof e==`string`&&Ze.includes(e.trim().toLowerCase())}function nt(e){if(tt(e))return e.trim().toLowerCase()}function rt(e){let t=et(e);return t?`data:${t};base64,`:void 0}function it(e){if(!Number.isSafeInteger(e)||e<0)return;let t=Math.ceil(e/3)*4;return Number.isSafeInteger(t)?t:void 0}function at(e,t){let n=rt(e),r=it(t);return n===void 0||r===void 0?void 0:n.length+r}function ot(e,t=Je){let n=rt(e);if(n===void 0||!Number.isSafeInteger(t)||t<0)return;let r=t-n.length;return r<4?0:Math.floor(r/4)*3}function st(e,t,n=Je){let r=at(e,t);return r!==void 0&&r<=n}var ct=class extends Error{code;constructor(e,t){super(t??e),this.name=`VoiceRecordingError`,this.code=e}};function lt(){let e=globalThis;return{mediaDevices:e.navigator?.mediaDevices,mediaRecorder:e.MediaRecorder,...typeof e.isSecureContext==`boolean`?{isSecureContext:e.isSecureContext}:{}}}function ut(e){return e.setTimeout??globalThis.setTimeout.bind(globalThis)}function dt(e,t){t!==void 0&&(e.clearTimeout??globalThis.clearTimeout.bind(globalThis))(t)}function ft(e){try{for(let t of e?.getTracks?.()??[])t.stop?.()}catch{}}function pt(e){return e.isSecureContext!==!1&&typeof e.mediaDevices?.getUserMedia==`function`&&!!e.mediaRecorder}function mt(e=lt()){return pt(e)}function ht(e=lt().mediaRecorder){if(e)for(let t of[`audio/webm;codecs=opus`,`audio/webm`,`audio/ogg;codecs=opus`,`audio/ogg`,`audio/mp4`,`audio/mpeg`])try{if((!e.isTypeSupported||e.isTypeSupported(t))&&et(t))return t}catch{}}function gt(e,t,n){if(!(e instanceof Blob))throw new ct(`empty`,`录音内容无效。`);let r=et(e.type||t);if(!r)throw new ct(`media-type`,`浏览器生成了不支持的录音格式。`);if(!Number.isSafeInteger(e.size)||e.size<=0)throw new ct(`empty`,`没有录到声音,请再试一次。`);let i=ot(r),a=i===void 0?0:n===void 0?i:Math.min(i,n);if(e.size>a||!st(r,e.size))throw new ct(`size-limit`,`录音超过语音大小限制。`);return{blob:e,mediaType:r,bytes:e.size,durationMs:0}}function _t(e){if(Array.isArray(e)){for(let t of e){let e=_t(t);if(e)return e}return}if(typeof e==`object`&&e){let t=e;return nt(t.expression??t.speechExpression??t.speech_expression??t.emotion)}return nt(e)}function vt(e){if(typeof e!=`object`||!e||Array.isArray(e))throw new ct(`transcript-invalid`,`语音转写结果无效。`);let t=e,n=typeof t.text==`string`?t.text.trim():``;if(!n)throw new ct(`transcript-empty`,`没有听清内容,请再试一次。`);if(Array.from(n).length>2e4)throw new ct(`transcript-invalid`,`语音转写内容过长。`);let r;for(let e of[t.expression,t.speechExpression,t.speech_expression,t.sentences,t.expressions])if(r=_t(e),r)break;return r?{text:n,expression:r}:{text:n}}function yt(e){let t=vt(e);return t.expression?`🎙️ ${t.text} [${t.expression}]`:`🎙️ ${t.text}`}var bt=class{options;maxDurationMs;configuredMaxBytes;statusValue=`idle`;operation;generation=0;disposed=!1;constructor(e={}){this.options={...lt(),...e},this.maxDurationMs=Number.isFinite(e.maxDurationMs)&&(e.maxDurationMs??0)>0?e.maxDurationMs:Ye,this.configuredMaxBytes=Number.isSafeInteger(e.maxBytes)&&(e.maxBytes??0)>0?e.maxBytes:Je}get status(){return this.statusValue}get busy(){return this.statusValue===`recording`||this.statusValue===`stopping`||this.statusValue===`transcribing`}get elapsedMs(){let e=this.operation;return e?Math.max(0,(this.options.now??Date.now)()-e.startedAt):0}setStatus(e){this.statusValue=e;try{this.options.onStatus?.(e)}catch{}}async start(){if(this.disposed||this.busy)return!1;if(!pt(this.options))throw this.setStatus(`unavailable`),new ct(this.options.isSecureContext===!1?`insecure-context`:`unsupported`,`当前环境不支持麦克风录音。`);let e=ht(this.options.mediaRecorder);if(!e)throw this.setStatus(`unavailable`),new ct(`unsupported`,`当前浏览器没有可用的录音格式。`);let t=et(e),n=t===void 0?void 0:ot(t),r=n===void 0?0:Math.min(this.configuredMaxBytes,n);if(r<=0)throw this.setStatus(`unavailable`),new ct(`unsupported`,`当前浏览器没有可用的录音格式。`);let i=++this.generation,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(()=>void 0);let c={generation:i,mediaType:t,maxBytes:r,chunks:[],bytes:0,startedAt:0,completion:s,resolve:a,reject:o};this.operation=c,this.setStatus(`recording`);try{if(c.stream=await this.options.mediaDevices.getUserMedia({audio:!0}),this.disposed||this.operation!==c||i!==this.generation)throw ft(c.stream),new ct(`cancelled`,`录音已取消。`);let t=this.options.mediaRecorder;return c.recorder=new t(c.stream,{mimeType:e}),c.recorder.ondataavailable=e=>this.onData(c,e.data),c.recorder.onerror=e=>this.fail(c,new ct(`capture-failed`,e.error instanceof Error?e.error.message:`录音失败,请重试。`)),c.recorder.onstop=()=>this.finish(c),c.recorder.start(1e3),c.startedAt=(this.options.now??Date.now)(),c.timer=ut(this.options)(()=>this.requestStop(c,`duration-limit`),this.maxDurationMs),!0}catch(e){let t=e instanceof Error||typeof e==`object`&&e&&`name`in e&&typeof e.name==`string`?e.name:``,n=e instanceof ct?e:t===`NotAllowedError`||t===`PermissionDeniedError`?new ct(`permission-denied`,`麦克风权限被拒绝,请允许后重试。`):new ct(`capture-failed`,`无法开始录音,请重试。`);throw this.fail(c,n),n}}async stop(){return this.stopAndGet()}async stopAndGet(){let e=this.operation;if(e){if(this.statusValue===`stopping`)return e.completion;if(this.statusValue===`recording`&&this.setStatus(`stopping`),e.stopReason??=`user`,!e.recorder)this.fail(e,new ct(`cancelled`,`录音已取消。`));else try{e.recorder.stop()}catch{this.fail(e,new ct(`capture-failed`,`录音失败,请重试。`))}return e.completion}}markTranscribing(){return this.disposed||this.operation||this.statusValue===`recording`||this.statusValue===`stopping`?!1:(this.setStatus(`transcribing`),!0)}finishTranscribing(){this.statusValue===`transcribing`&&this.setStatus(`idle`)}async cancel(){let e=this.operation;if(!e){this.statusValue===`transcribing`&&this.setStatus(`idle`);return}if(e.stopReason=`cancelled`,this.statusValue===`recording`&&this.setStatus(`stopping`),e.recorder)try{e.recorder.stop()}catch{this.fail(e,new ct(`cancelled`,`录音已取消。`))}else this.fail(e,new ct(`cancelled`,`录音已取消。`))}dispose(){this.disposed=!0,this.cancel(),this.setStatus(`idle`)}requestStop(e,t){if(!(this.operation!==e||e.stopReason)){e.stopReason=t,this.statusValue===`recording`&&this.setStatus(`stopping`);try{e.recorder?.stop()}catch{this.fail(e,new ct(`capture-failed`,`录音失败,请重试。`))}}}onData(e,t){if(this.operation!==e||!t||t.size<=0)return;let n=et(t.type),r=n===void 0?void 0:ot(n);r!==void 0&&(e.maxBytes=Math.min(e.maxBytes,r)),e.bytes+=t.size,e.chunks.push(t),e.bytes>e.maxBytes&&this.requestStop(e,`size-limit`)}finish(e){if(this.operation!==e)return;let t=e.stopReason;if(t===`cancelled`){this.fail(e,new ct(`cancelled`,`录音已取消。`));return}if(t===`duration-limit`){this.fail(e,new ct(`duration-limit`,`录音最长 5 分钟,已停止。`));return}if(t===`size-limit`||e.bytes>e.maxBytes){this.fail(e,new ct(`size-limit`,`录音超过语音大小限制,已停止。`));return}try{let t=e.chunks.find(e=>e.type)?.type||e.recorder?.mimeType||e.mediaType,n=gt(new Blob(e.chunks,{type:t??``}),t,e.maxBytes);this.complete(e,{...n,durationMs:Math.max(0,(this.options.now??Date.now)()-e.startedAt)})}catch(t){this.fail(e,t)}}complete(e,t){this.operation===e&&(dt(this.options,e.timer),ft(e.stream),this.operation=void 0,this.setStatus(`idle`),e.resolve(t))}fail(e,t){if(this.operation!==e)return;let n=t instanceof ct?t:new ct(`capture-failed`,`录音失败,请重试。`);dt(this.options,e.timer),ft(e.stream),this.operation=void 0,this.setStatus(`idle`);try{this.options.onError?.(n)}catch{}e.reject(n)}},xt={you:`You`,"mood.neutral":`As usual`,"mood.serene":`Calm`,"mood.bright":`Cheerful`,"mood.playful":`Playful`,"mood.tender":`Tender`,"mood.pensive":`Thoughtful`,"mood.tired":`Tired`,"mood.low":`Low`,"affinity.distant":`Distant`,"affinity.unfamiliar":`Getting acquainted`,"affinity.familiar":`Familiar`,"affinity.close":`Close`,"affinity.deep":`Deep bond`,"wait.thinking":`I’m still thinking. Stay with me a little longer.`,"wait.words":`Finding the right words…`,"wait.soon":`Just a little longer. I’ll be back soon.`,"wait.care":`I’m giving this some thought. Thank you for waiting.`,"wait.here":`I’m here, thinking about how best to say it.`,"status.typing":`Typing…`,"status.connecting":`Connecting…`,"status.online":`Online`,"status.offline":`Offline`,"error.stop":`Couldn’t stop the reply. Please try again.`,"error.send":`This message wasn’t sent. Please try again.`,"error.restored":`Your message wasn’t sent. It’s back in the message box.`,"error.image":`This image can’t be displayed right now.`,"error.audio":`Audio is unavailable. You can still read the text.`,"error.compactImages":`Remove the images before organizing memory.`,"voice.secure":`Use a secure connection to access the microphone.`,"voice.unsupported":`This browser doesn’t support recording.`,"voice.permission":`Microphone access was denied. Allow access and try again.`,"voice.duration":`Recording stopped at the 5-minute limit. Try a shorter message.`,"voice.size":`The recording is too large. Try a shorter message.`,"voice.empty":`No audio was recorded. Please try again.`,"voice.unclear":`No speech was recognized. Please try again.`,"voice.failed":`Voice is unavailable right now. Please try again.`,"voice.install":`To use voice, install and configure 语音服务.`,"voice.unavailable":`Microphone recording is unavailable in this environment.`,"message.tooLong":`Message too long ({count}/{limit}). Shorten it before sending; your draft is kept.`,"voice.sent":`Voice message sent.`,"voice.wait":`Voice is getting ready. Please wait.`,"camera.failed":`Couldn’t take a photo. Please try again.`,"image.pending":`Pending image`,"sidebar.show":`Show conversations`,"chat.label":`Companion private chat`,"sidebar.collapse":`Collapse conversations`,"sidebar.expand":`Expand conversations`,"relationship.view":`View Companion relationship`,"relationship.close":`Close relationship details`,"companion.open":`Open Companion`,"history.title":`Relationship history`,"history.current":`Current relationship`,"history.list":`Changes`,"history.loading":`Loading relationship history…`,"history.empty":`No relationship changes have been recorded yet.`,"history.failed":`Relationship history is unavailable.`,"history.retry":`Try again`,"history.earlier":`Load earlier changes`,"history.loadingEarlier":`Loading earlier changes…`,"history.initial":`Initial state`,"history.before":`Before`,"history.after":`After`,"history.reason":`Reason`,"history.mood":`Mood`,"history.affinity":`Closeness`,"history.signature":`Signature`,"drawer.history":`Relationship`,"drawer.diary":`Diary`,"diary.back":`Back to diary`,"diary.empty":`No diary entries yet.`,"diary.failed":`The diary is unavailable right now.`,"diary.tooLarge":`This diary entry is too large to display.`,"signature.empty":`No signature yet`,"mood.label":`Current mood`,"mood.note":`Mood note`,"affinity.label":`Closeness`,loading:`Loading…`,"dsh.open":`Open full DSH`,"dsh.more":`More features`,"loading.label":`Loading`,"loading.progress":`Loading…`,"workspace.empty":`No workspace selected`,"workspace.chooseHint":`Choose a workspace in DSH settings to start chatting.`,"workspace.settingsLabel":`Choose a workspace in DSH settings`,"settings.open":`Open settings`,"workspace.failed":`Workspace unavailable`,"workspace.reconnectHint":`Check the connection in DSH settings, then try again.`,reconnect:`Reconnect`,"relationship.failed":`Relationship details unavailable`,"relationship.reconnectHint":`Your workspace is still here. Continue when the connection returns.`,"session.failed":`Conversation unavailable`,"session.reconnectHint":`Your messages are kept. Continue when the connection returns, or check the status in DSH.`,"history.older":`View earlier messages`,"welcome.prompt":`What would you like to talk about today?`,"image.generating":`Creating an image…`,retry:`Retry`,"image.failed":`Image generation didn’t finish.`,"voice.player":`Audio player`,"voice.pause":`Pause audio`,"voice.play":`Play audio`,"voice.progress":`Audio progress`,"voice.playFailed":`Playback failed`,"voice.preparing":`Preparing audio`,"voice.retry":`Retry audio`,"voice.transcript":`Transcript`,"messages.new":`New messages ↓`,"command.label":`Command suggestions`,"compact.running":`Organizing memory…`,"compact.failed":`Memory wasn’t organized. You can keep chatting.`,"compact.done":`Memory organized`,"compact.record":`Conversation memory organized`,"image.remove":`Remove image`,"image.choose":`Choose a photo; hold to take one`,"composer.label":`Write a message`,"voice.stop":`Stop recording`,"voice.transcribing":`Transcribing audio`,"voice.start":`Start recording`,"voice.micUnavailable":`Microphone recording unavailable`,"context.label":`Conversation capacity`,"reply.stop":`Stop current reply`,"message.send":`Send message`,"voice.stopping":`Stopping recording…`,"voice.transcribingProgress":`Transcribing audio…`,"sidebar.close":`Close conversations`,"sidebar.label":`Conversations`,"sidebar.title":`Our conversations`,"sidebar.closePanel":`Close sidebar`,"reply.running":`Replying`,"session.none":`No conversations to continue yet`,"image.preview":`Image preview`,"image.previewAlt":`Image preview`,"image.close":`Close full-size image`,"image.closeBackdrop":`Close image preview backdrop`,close:`Close`,"settings.saving":`Saving…`,"settings.rejected":`The host rejected these changes. Your draft is kept; check it and try again.`,"settings.unsaved":`Unsaved`,"settings.saved":`Saved`,"settings.failed":`Couldn’t save. Check the settings and try again.`,"settings.discarded":`Unsaved changes discarded`,"settings.affinityInvalid":`Closeness must be a whole number from 0 to 100.`,"settings.affinityUpdated":`Closeness updated`,"settings.affinityFailed":`Couldn’t update closeness.`,"avatar.ready":`Avatar ready. Save to apply it.`,"avatar.invalid":`Invalid avatar.`,"settings.title":`Companion chat`,"settings.description":`One workspace, two identities, and an ongoing relationship`,"settings.readOnlyHint":`These settings are read-only. Changes cannot be saved.`,"workspace.loading":`Loading workspaces…`,"workspace.none":`No workspaces available`,"workspace.select":`Select a workspace`,"workspace.missing":`The selected workspace no longer exists. Choose another one.`,"workspace.hint":`Companion uses the workspace selected here.`,"settings.companionName":`Companion name`,"settings.userName":`Your display name`,"settings.address":`How Companion addresses you`,"settings.addressHint":`For example, “Alex”. Used when Companion greets or addresses you.`,"settings.nameLimit":`Up to 80 characters.`,"settings.defaultAffinity":`Default closeness for new relationships (0–100)`,"settings.defaultAffinityHint":`Used when a relationship is first created or explicitly reset.`,"avatar.companion":`Companion avatar`,"avatar.companionPreview":`Companion avatar preview`,"avatar.choose":`Choose image`,"avatar.selected":`Image selected`,"avatar.none":`No image selected`,"avatar.hint":`Local PNG, JPEG, WebP, or GIF image, up to 5 MB.`,"avatar.user":`Your avatar`,"avatar.userPreview":`Your avatar preview`,"relationship.current":`Current relationship`,"affinity.adjust":`Adjust closeness`,"affinity.hint":`Enter a whole number from 0 to 100.`,apply:`Apply`,"reset.failed":`Couldn’t reset closeness.`,"affinity.reset":`Reset closeness`,"signature.cleared":`Signature cleared`,"signature.failed":`Couldn’t clear the signature.`,"signature.clear":`Clear signature`,"settings.readOnly":`Settings are read-only`,discard:`Discard`,save:`Save`,"workspace.required":`Select a Companion workspace first.`,"relationship.updateFailed":`Couldn’t update the relationship.`,"voice.transcriptionFailed":`Transcription is unavailable. Please try again.`,"session.new":`New conversation`,"session.untitled":`Untitled conversation`,"compact.command":`Organize conversation memory`,"compact.description":`Organize memory to keep the conversation flowing`,"image.unavailable":`Images can’t be sent right now.`,"image.types":`Only PNG, JPEG, WebP, and GIF are supported.`,"image.tooLarge":`This image is too large.`,"image.totalTooLarge":`The images exceed the total size limit.`,"avatar.format":`Choose a PNG, JPEG, WebP, or GIF avatar up to 5 MB.`,"avatar.readFailed":`Couldn’t read the avatar image.`,"avatar.dimensions":`Avatar dimensions must be between 1 and 4096 pixels.`,"avatar.decodeFailed":`Couldn’t decode the avatar image.`,"relationship.named":`{name}’s relationship details`,"welcome.greeting":`Hi, {name}`,"image.view":`View full-size image: {name}`,"status.namedTyping":`{name} is typing`,"composer.placeholder":`Message {name}…`,"context.percentage":`Conversation capacity: {percentage}%`,"voice.recording":`Recording · {elapsed} / 05:00`,"composer.shortcut":`Enter to send · Shift+Enter for a new line`,"session.switch":`Switch to conversation: {title}`,"settings.expand":`Expand Companion chat settings`,"settings.collapse":`Collapse Companion chat settings`,"image.countLimit":`Up to {count} images per message.`},St={you:`你`,"mood.neutral":`如常`,"mood.serene":`平静`,"mood.bright":`愉快`,"mood.playful":`俏皮`,"mood.tender":`柔和`,"mood.pensive":`若有所思`,"mood.tired":`疲惫`,"mood.low":`低落`,"affinity.distant":`疏离`,"affinity.unfamiliar":`生疏`,"affinity.familiar":`熟悉`,"affinity.close":`亲近`,"affinity.deep":`深厚`,"wait.thinking":`我还在认真想,陪我再等一小会儿呀`,"wait.words":`正在把想说的话轻轻理好……`,"wait.soon":`再给我一点点时间,很快就回来`,"wait.care":`这次想认真一点,不让你久等`,"wait.here":`我在这里,只是还在想怎么说更好`,"status.typing":`正在输入…`,"status.connecting":`连接中…`,"status.online":`在线`,"status.offline":`离线`,"error.stop":`暂时停不下来,请再试一次。`,"error.send":`这条消息没发出去,可以再试一次。`,"error.restored":`没有发出去,内容已放回输入框。`,"error.image":`图片暂时无法显示。`,"error.audio":`语音暂时无法播放,文字内容仍可查看。`,"error.compactImages":`整理时请先移除图片。`,"voice.secure":`请在安全连接中使用麦克风。`,"voice.unsupported":`当前浏览器不支持录音。`,"voice.permission":`麦克风权限被拒绝,请允许后重试。`,"voice.duration":`录音最长 5 分钟,已停止;请说短一点再试。`,"voice.size":`录音超过语音大小限制,请说短一点再试。`,"voice.empty":`没有录到声音,请再试一次。`,"voice.unclear":`没有听清内容,请再试一次。`,"voice.failed":`语音暂时无法使用,请再试一次。`,"voice.install":`语音功能不可用,请安装并配置 语音服务。`,"voice.unavailable":`当前环境不支持麦克风录音。`,"message.tooLong":`消息过长({count}/{limit}),请缩短后发送;草稿已保留。`,"voice.sent":`语音消息已发送。`,"voice.wait":`语音功能正在准备,请稍候。`,"camera.failed":`拍照失败,请重试。`,"image.pending":`待发送图片`,"sidebar.show":`显示对话列表`,"chat.label":`Companion 私聊`,"sidebar.collapse":`收起对话列表`,"sidebar.expand":`展开对话列表`,"relationship.view":`查看 Companion 关系资料`,"relationship.close":`关闭关系资料`,"companion.open":`打开 Companion`,"history.title":`关系变化记录`,"history.current":`当前关系`,"history.list":`变化记录`,"history.loading":`正在加载关系记录…`,"history.empty":`还没有记录过关系变化。`,"history.failed":`关系记录暂时无法读取。`,"history.retry":`重试`,"history.earlier":`加载更早的变化`,"history.loadingEarlier":`正在加载更早的变化…`,"history.initial":`初始状态`,"history.before":`变化前`,"history.after":`变化后`,"history.reason":`原因`,"history.mood":`状态`,"history.affinity":`亲近度`,"history.signature":`签名`,"drawer.history":`关系历史`,"drawer.diary":`日记`,"diary.back":`返回日记`,"diary.empty":`还没有日记。`,"diary.failed":`日记暂时无法读取。`,"diary.tooLarge":`这篇日记太长,暂时无法显示。`,"signature.empty":`还没有签名`,"mood.label":`此刻状态`,"mood.note":`状态短句`,"affinity.label":`亲近度`,loading:`加载中…`,"dsh.open":`打开完整 DSH`,"dsh.more":`更多功能`,"loading.label":`正在加载`,"loading.progress":`正在加载…`,"workspace.empty":`还没有设置聊天空间`,"workspace.chooseHint":`请在 DSH 设置中选择一个 Workspace。我们不会替你自动切换。`,"workspace.settingsLabel":`去 DSH 设置选择聊天空间`,"settings.open":`去设置`,"workspace.failed":`聊天空间暂时打不开`,"workspace.reconnectHint":`请回到 DSH 设置检查连接,然后再试一次。`,reconnect:`重新连接`,"relationship.failed":`关系资料暂时打不开`,"relationship.reconnectHint":`聊天空间还在,连接恢复后可以继续。`,"session.failed":`这段对话暂时打不开`,"session.reconnectHint":`你的消息不会被悄悄丢掉。连接恢复后可以继续,或回到 DSH 检查状态。`,"history.older":`查看更早的消息`,"welcome.prompt":`今天想聊点什么?`,"image.generating":`正在画一张图…`,retry:`重试`,"image.failed":`图片生成没有完成。`,"voice.player":`语音播放器`,"voice.pause":`暂停语音`,"voice.play":`播放语音`,"voice.progress":`语音进度`,"voice.playFailed":`播放失败`,"voice.preparing":`正在准备语音`,"voice.retry":`重试语音`,"voice.transcript":`转文字`,"messages.new":`有新消息 ↓`,"command.label":`命令补全`,"compact.running":`正在整理记忆…`,"compact.failed":`本次整理未完成,仍可继续对话`,"compact.done":`整理记忆已完成`,"compact.record":`已整理对话`,"image.remove":`移除图片`,"image.choose":`选择照片;长按拍照`,"composer.label":`写消息`,"voice.stop":`结束录音`,"voice.transcribing":`正在转写语音`,"voice.start":`开始录音`,"voice.micUnavailable":`麦克风录音不可用`,"context.label":`对话容量`,"reply.stop":`停止当前回复`,"message.send":`发送消息`,"voice.stopping":`正在结束录音…`,"voice.transcribingProgress":`正在转写语音…`,"sidebar.close":`关闭对话列表`,"sidebar.label":`对话列表`,"sidebar.title":`我们的对话`,"sidebar.closePanel":`关闭侧栏`,"reply.running":`正在回复`,"session.none":`还没有可以继续的对话`,"image.preview":`图片预览`,"image.previewAlt":`预览图片`,"image.close":`关闭大图`,"image.closeBackdrop":`关闭图片预览背景`,close:`关闭`,"settings.saving":`正在保存…`,"settings.rejected":`保存未被 Host 接受;你的更改仍保留在此处,可以检查后重试。`,"settings.unsaved":`未保存`,"settings.saved":`已保存`,"settings.failed":`保存失败,请检查设置后重试。`,"settings.discarded":`已撤销未保存的更改`,"settings.affinityInvalid":`亲近度必须是 0 到 100 的整数。`,"settings.affinityUpdated":`亲近度已更新`,"settings.affinityFailed":`亲近度更新失败。`,"avatar.ready":`头像已准备,点击保存后生效`,"avatar.invalid":`头像无效。`,"settings.title":`Companion 日常聊天`,"settings.description":`一个 Workspace、两个身份和一段持续的关系`,"settings.readOnlyHint":`当前设置为只读,暂时不能保存更改。`,"workspace.loading":`正在加载 Workspace…`,"workspace.none":`还没有可用的 Workspace`,"workspace.select":`请选择 Workspace`,"workspace.missing":`之前选择的 Workspace 已不存在,请重新选择。`,"workspace.hint":`Companion 只会使用这里选择的 Workspace。`,"settings.companionName":`Companion 名称`,"settings.userName":`你的显示名称`,"settings.address":`Companion 对你的称呼`,"settings.addressHint":`例如“小岛”;用于 Companion 对你的问候和称呼。`,"settings.nameLimit":`最多 80 个字符。`,"settings.defaultAffinity":`新关系的默认亲近度(0–100)`,"settings.defaultAffinityHint":`只在首次创建或显式重置时使用。`,"avatar.companion":`Companion 头像`,"avatar.companionPreview":`Companion 头像预览`,"avatar.choose":`选择图片`,"avatar.selected":`已选择图片`,"avatar.none":`未选择图片`,"avatar.hint":`本地图片,PNG/JPEG/WebP/GIF,5 MB 以内。`,"avatar.user":`你的头像`,"avatar.userPreview":`用户头像预览`,"relationship.current":`当前关系`,"affinity.adjust":`校正亲近度`,"affinity.hint":`输入 0 到 100 的整数。`,apply:`应用`,"reset.failed":`重置失败。`,"affinity.reset":`重置亲近度`,"signature.cleared":`签名已清除`,"signature.failed":`签名清除失败。`,"signature.clear":`清除签名`,"settings.readOnly":`当前设置为只读`,discard:`撤销`,save:`保存`,"workspace.required":`请先配置 Companion Workspace。`,"relationship.updateFailed":`关系更新失败。`,"voice.transcriptionFailed":`语音转写暂时不可用,请再试一次。`,"session.new":`新对话`,"session.untitled":`未命名对话`,"compact.command":`整理当前对话`,"compact.description":`整理记忆,让下一段对话自然接续`,"image.unavailable":`当前无法发送图片。`,"image.types":`只支持 PNG、JPEG、WebP 或 GIF。`,"image.tooLarge":`图片太大了。`,"image.totalTooLarge":`图片总大小超出限制。`,"avatar.format":`头像必须是 5 MB 以内的 PNG、JPEG、WebP 或 GIF。`,"avatar.readFailed":`头像读取失败。`,"avatar.dimensions":`头像尺寸需要在 1 到 4096 像素之间。`,"avatar.decodeFailed":`头像解码失败。`,"relationship.named":`{name}的关系资料`,"welcome.greeting":`嗨,{name}`,"image.view":`查看大图:{name}`,"status.namedTyping":`{name}正在输入`,"composer.placeholder":`写给 {name}…`,"context.percentage":`对话容量:{percentage}%`,"voice.recording":`正在录音 · {elapsed} / 05:00`,"composer.shortcut":`Enter 发送 · Shift+Enter 换行`,"session.switch":`切换到对话:{title}`,"settings.expand":`展开:Companion 日常聊天`,"settings.collapse":`收起:Companion 日常聊天`,"image.countLimit":`一次最多 {count} 张图片。`},Ct=(e,t)=>xt[e].replace(/\{(\w+)\}/gu,(e,n)=>{let r=t?.[n];return typeof r==`string`||typeof r==`number`?String(r):e}),wt;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(wt||={});var Tt=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},Et=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,Dt=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?Et(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new Tt(`"${e}" plugin is not implemented on ${c}`,wt.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new Tt(`"${e}.${t}()" is not implemented on ${c}`,wt.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=Tt,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},Ot=(e=>e.Capacitor=Dt(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),kt=Ot.registerPlugin,At=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new Ot.Exception(e,wt.Unimplemented)}unavailable(e=`not available`){return new Ot.Exception(e,wt.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);r!==-1&&this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},jt=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Mt=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),Nt=class extends At{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=Mt(n).trim(),r=Mt(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=jt(e.key),n=jt(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};kt(`CapacitorCookies`,{web:()=>new Nt});var Pt=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),Ft=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},It=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,Lt=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=Ft(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},Rt=class extends At{async request(e){let t=Lt(e,e.webFetchExtra),n=It(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await Pt(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};kt(`CapacitorHttp`,{web:()=>new Rt});var zt;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(zt||={});var Bt;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(Bt||={});var Vt=class extends At{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};kt(`SystemBars`,{web:()=>new Vt});var Ht;(function(e){e.Prompt=`PROMPT`,e.Camera=`CAMERA`,e.Photos=`PHOTOS`})(Ht||={});var Ut;(function(e){e.Rear=`REAR`,e.Front=`FRONT`})(Ut||={});var Wt;(function(e){e.Uri=`uri`,e.Base64=`base64`,e.DataUrl=`dataUrl`})(Wt||={});var Gt;(function(e){e[e.Photo=0]=`Photo`,e[e.Video=1]=`Video`})(Gt||={});var Kt;(function(e){e[e.Photo=0]=`Photo`,e[e.Video=1]=`Video`,e[e.All=2]=`All`})(Kt||={});var qt;(function(e){e[e.JPEG=0]=`JPEG`,e[e.PNG=1]=`PNG`})(qt||={});var Jt;(function(e){e.CameraPermissionDenied=`OS-PLUG-CAMR-0003`,e.GalleryPermissionDenied=`OS-PLUG-CAMR-0005`,e.NoCameraAvailable=`OS-PLUG-CAMR-0007`,e.TakePhotoCancelled=`OS-PLUG-CAMR-0006`,e.TakePhotoFailed=`OS-PLUG-CAMR-0010`,e.TakePhotoInvalidArguments=`OS-PLUG-CAMR-0014`,e.InvalidImageData=`OS-PLUG-CAMR-0008`,e.EditPhotoFailed=`OS-PLUG-CAMR-0009`,e.EditPhotoCancelled=`OS-PLUG-CAMR-0013`,e.EditPhotoEmptyUri=`OS-PLUG-CAMR-0024`,e.ImageNotFound=`OS-PLUG-CAMR-0011`,e.ProcessImageFailed=`OS-PLUG-CAMR-0012`,e.ChooseMediaFailed=`OS-PLUG-CAMR-0018`,e.ChooseMediaCancelled=`OS-PLUG-CAMR-0020`,e.MediaPathError=`OS-PLUG-CAMR-0021`,e.FetchImageFromUriFailed=`OS-PLUG-CAMR-0028`,e.RecordVideoFailed=`OS-PLUG-CAMR-0016`,e.RecordVideoCancelled=`OS-PLUG-CAMR-0017`,e.VideoNotFound=`OS-PLUG-CAMR-0025`,e.PlayVideoFailed=`OS-PLUG-CAMR-0023`,e.EncodeResultFailed=`OS-PLUG-CAMR-0019`,e.FileNotFound=`OS-PLUG-CAMR-0027`,e.InvalidArgument=`OS-PLUG-CAMR-0031`,e.GeneralError=`OS-PLUG-CAMR-0026`})(Jt||={});var Yt=class extends At{async takePhoto(e){return new Promise(async(t,n)=>{e.webUseInput?this.takePhotoCameraInputExperience(e,t,n):this.takePhotoCameraExperience(e,t,n)})}async recordVideo(e){throw this.unimplemented(`recordVideo is not implemented on Web.`)}async playVideo(e){throw this.unimplemented(`playVideo is not implemented on Web.`)}async chooseFromGallery(e){return new Promise(async(t,n)=>{this.galleryInputExperience(e,t,n)})}async editPhoto(e){throw this.unimplemented(`editPhoto is not implemented on Web.`)}async editURIPhoto(e){throw this.unimplemented(`editURIPhoto is not implemented on Web.`)}async getPhoto(e){return new Promise(async(t,n)=>{if(e.webUseInput||e.source===Ht.Photos)this.fileInputExperience(e,t,n);else if(e.source===Ht.Prompt){let r=document.querySelector(`pwa-action-sheet`);r||(r=document.createElement(`pwa-action-sheet`),document.body.appendChild(r)),r.header=e.promptLabelHeader||`Photo`,r.cancelable=!1,r.options=[{title:e.promptLabelPhoto||`From Photos`},{title:e.promptLabelPicture||`Take Picture`}],r.addEventListener(`onSelection`,async r=>{r.detail===0?this.fileInputExperience(e,t,n):this.cameraExperience(e,t,n)})}else this.cameraExperience(e,t,n)})}async pickImages(e){return new Promise(async(e,t)=>{this.multipleFileInputExperience(e,t)})}async cameraExperience(e,t,n){await this._setupPWACameraModal(e.direction,t=>this._getCameraPhoto(t,e),()=>this.fileInputExperience(e,t,n),t,n)}fileInputExperience(e,t,n){let r=document.querySelector(`#_capacitor-camera-input`),i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r||(r=document.createElement(`input`),r.id=`_capacitor-camera-input`,r.type=`file`,r.hidden=!0,document.body.appendChild(r),r.addEventListener(`change`,n=>{let a=r.files[0],o=`jpeg`;if(a.type===`image/png`?o=`png`:a.type===`image/gif`&&(o=`gif`),e.resultType===`dataUrl`||e.resultType===`base64`){let n=new FileReader;n.addEventListener(`load`,()=>{if(e.resultType===`dataUrl`)t({dataUrl:n.result,format:o});else if(e.resultType===`base64`){let e=n.result.split(`,`)[1];t({base64String:e,format:o})}i()}),n.readAsDataURL(a)}else t({webPath:URL.createObjectURL(a),format:o}),i()}),r.addEventListener(`cancel`,e=>{n(new Tt(`User cancelled photos app`)),i()})),r.accept=`image/*`,r.capture=!0,e.source===Ht.Photos||e.source===Ht.Prompt?r.removeAttribute(`capture`):e.direction===Ut.Front?r.capture=`user`:e.direction===Ut.Rear&&(r.capture=`environment`),r.click()}multipleFileInputExperience(e,t){let n=document.querySelector(`#_capacitor-camera-input-multiple`),r=()=>{var e;(e=n.parentNode)==null||e.removeChild(n)};n||(n=document.createElement(`input`),n.id=`_capacitor-camera-input-multiple`,n.type=`file`,n.hidden=!0,n.multiple=!0,document.body.appendChild(n),n.addEventListener(`change`,t=>{let i=[];for(let e=0;e<n.files.length;e++){let t=n.files[e],r=`jpeg`;t.type===`image/png`?r=`png`:t.type===`image/gif`&&(r=`gif`),i.push({webPath:URL.createObjectURL(t),format:r})}e({photos:i}),r()}),n.addEventListener(`cancel`,e=>{t(new Tt(`User cancelled photos app`)),r()})),n.accept=`image/*`,n.click()}_getCameraPhoto(e,t){return new Promise((n,r)=>{let i=new FileReader,a=this._getFileFormat(e);t.resultType===`uri`?n({webPath:URL.createObjectURL(e),format:a,saved:!1}):(i.readAsDataURL(e),i.onloadend=()=>{let e=i.result;t.resultType===`dataUrl`?n({dataUrl:e,format:a,saved:!1}):n({base64String:e.split(`,`)[1],format:a,saved:!1})},i.onerror=e=>{r(e)})})}async takePhotoCameraExperience(e,t,n){await this._setupPWACameraModal(e.cameraDirection,t=>this._buildPhotoMediaResult(t,e.includeMetadata??!1),()=>this.takePhotoCameraInputExperience(e,t,n),t,n)}takePhotoCameraInputExperience(e,t,n){let r=this._createFileInput(`_capacitor-camera-input-takephoto`),i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r.onchange=async a=>{if(!this._validateFileInput(r,n,i))return;let o=r.files[0];t(await this._buildPhotoMediaResult(o,e.includeMetadata??!1)),i()},r.oncancel=()=>{n(new Tt(`User cancelled photos app`)),i()},r.accept=`image/*`,r.capture=e.cameraDirection===Ut.Front?`user`:`environment`,r.click()}galleryInputExperience(e,t,n){let r=this._createFileInput(`_capacitor-camera-input-gallery`);r.multiple=e.allowMultipleSelection??!1;let i=()=>{var e;(e=r.parentNode)==null||e.removeChild(r)};r.onchange=async a=>{if(!this._validateFileInput(r,n,i))return;let o=[];for(let t=0;t<r.files.length;t++){let n=r.files[t];if(n.type.startsWith(`image/`))o.push(await this._buildPhotoMediaResult(n,e.includeMetadata??!1));else if(n.type.startsWith(`video/`)){let t=this._getFileFormat(n),r,i,a;try{let t=await this._getVideoMetadata(n);r=t.thumbnail,e.includeMetadata&&(i=t.resolution,a=t.duration)}catch(e){console.warn(`Failed to get video metadata:`,e)}let s={type:Gt.Video,thumbnail:r,webPath:URL.createObjectURL(n),saved:!1};e.includeMetadata&&(s.metadata={format:t,resolution:i,size:n.size,creationDate:new Date(n.lastModified).toISOString(),duration:a}),o.push(s)}}t({results:o}),i()},r.oncancel=()=>{n(new Tt(`User cancelled photos app`)),i()};let a=e.mediaType??Kt.Photo;r.accept=a===Kt.Photo?`image/*`:a===Kt.Video?`video/*`:`image/*,video/*`,r.click()}_getFileFormat(e){return e.type===`image/png`?`png`:e.type===`image/gif`?`gif`:e.type.startsWith(`video/`)?e.type.split(`/`)[1]:e.type.startsWith(`image/`)?`jpeg`:e.type.split(`/`)[1]||`jpeg`}async _buildPhotoMediaResult(e,t){let n=this._getFileFormat(e),r=await this._getBase64FromFile(e),i={type:Gt.Photo,thumbnail:r,webPath:URL.createObjectURL(e),saved:!1};return t&&(i.metadata={format:n,resolution:await this._getImageResolution(e),size:e.size,creationDate:`lastModified`in e?new Date(e.lastModified).toISOString():new Date().toISOString()}),i}_validateFileInput(e,t,n){return!e.files||e.files.length===0?(t(new Tt(e.multiple?`No files selected`:`No file selected`)),n(),!1):!0}async _setupPWACameraModal(e,t,n,r,i){if(customElements.get(`pwa-camera-modal`)){let a=document.createElement(`pwa-camera-modal`);a.facingMode=e===Ut.Front?`user`:`environment`,document.body.appendChild(a);try{await a.componentOnReady(),a.addEventListener(`onPhoto`,async e=>{let n=e.detail;n===null?i(new Tt(`User cancelled photos app`)):n instanceof Error?i(n):r(await t(n)),a.dismiss(),document.body.removeChild(a)}),a.present()}catch{n()}}else console.error(`Unable to load PWA Element 'pwa-camera-modal'. See the docs: https://capacitorjs.com/docs/web/pwa-elements.`),n()}_createFileInput(e){let t=document.querySelector(`#${e}`);return t||(t=document.createElement(`input`),t.id=e,t.type=`file`,t.hidden=!0,document.body.appendChild(t)),t}async _getImageResolution(e){try{let t=await createImageBitmap(e),n=`${t.width}x${t.height}`;return t.close(),n}catch(e){console.warn(`Failed to get image resolution:`,e);return}}_getBase64FromFile(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{let e=r.result.split(`,`)[1];t(e)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}_getVideoMetadata(e){return new Promise(t=>{let n=document.createElement(`video`);n.preload=`metadata`,n.muted=!0,n.onloadedmetadata=()=>{let e=Math.min(1,n.duration*.1);n.currentTime=e},n.onseeked=()=>{let e={resolution:`${n.videoWidth}x${n.videoHeight}`,duration:n.duration};try{let t=document.createElement(`canvas`);t.width=n.videoWidth,t.height=n.videoHeight;let r=t.getContext(`2d`);r&&(r.drawImage(n,0,0,t.width,t.height),e.thumbnail=t.toDataURL(`image/jpeg`,.8).split(`,`)[1])}catch(e){console.warn(`Failed to generate video thumbnail:`,e)}URL.revokeObjectURL(n.src),t(e)},n.onerror=()=>{URL.revokeObjectURL(n.src),t({})},n.src=URL.createObjectURL(e)})}async checkPermissions(){if(typeof navigator>`u`||!navigator.permissions)throw this.unavailable(`Permissions API not available in this browser`);try{return{camera:(await window.navigator.permissions.query({name:`camera`})).state,photos:`granted`}}catch{throw this.unavailable(`Camera permissions are not available in this browser`)}}async requestPermissions(){throw this.unimplemented(`Not implemented on web.`)}async pickLimitedLibraryPhotos(){throw this.unavailable(`Not implemented on web.`)}async getLimitedLibraryPhotos(){throw this.unavailable(`Not implemented on web.`)}};new Yt;var Xt=kt(`Camera`,{web:()=>new Yt}),Zt={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Qt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},$t=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),en=c(`<svg><!><!></svg>`);function tn(r,a){let o=ve(a,[`children`,`$$slots`,`$$events`,`$$legacy`]),s=ve(o,[`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`]);ue(a,!1);let c=N(a,`name`,8,void 0),l=N(a,`color`,8,`currentColor`),u=N(a,`size`,8,24),d=N(a,`strokeWidth`,8,2),f=N(a,`absoluteStrokeWidth`,8,!1),m=N(a,`iconNode`,24,()=>[]);oe();var g=en();O(g,(e,t,n)=>({...Zt,...e,...s,width:u(),height:u(),stroke:l(),"stroke-width":t,class:n}),[()=>Qt(s)?void 0:{"aria-hidden":`true`},()=>(n(f()),n(d()),n(u()),C(()=>f()?Number(d())*24/Number(u()):d())),()=>(n($t),n(c()),n(o),C(()=>$t(`lucide-icon`,`lucide`,c()?`lucide-${c()}`:``,o.class)))]);var _=e(g);pe(_,1,m,t,(e,t)=>{var n=F(()=>y(S(t),2));let r=()=>S(n)[0],i=()=>S(n)[1];var a=h(),o=D(a);ke(o,r,!0,(e,t)=>{O(e,()=>({...i()}))}),p(e,a)});var v=j(_);i(v,a,`default`,{},null),E(g),p(r,g),de()}function nn(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M16 5h6`}],[`path`,{d:`M19 2v6`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}]];tn(e,me({name:`image-plus`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function rn(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]];tn(e,me({name:`menu`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function an(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`}],[`path`,{d:`M7 11h10`}],[`path`,{d:`M7 15h6`}],[`path`,{d:`M7 7h8`}]];tn(e,me({name:`message-square-text`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function on(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];tn(e,me({name:`pause`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function sn(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]];tn(e,me({name:`play`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function cn(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];tn(e,me({name:`rotate-ccw`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function ln(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}]];tn(e,me({name:`square`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function un(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M12 19v3`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`}]];tn(e,me({name:`mic`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}function dn(e,t){let n=ve(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];tn(e,me({name:`x`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=h(),a=D(r);i(a,t,`default`,{},null),p(e,r)},$$slots:{default:!0}}))}var fn=8e3;function pn(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function mn(e){return typeof e==`number`&&Number.isFinite(e)&&e>0}function hn(e){let t=pn(e);if(!t||!mn(t.contextWindow))return;let n=Object.hasOwn(t,`projectedTokens`)&&t.projectedTokens!==void 0?t.projectedTokens:t.pressureTokens;if(!(typeof n!=`number`||!Number.isFinite(n)||n<0))return{usedTokens:n,contextWindow:t.contextWindow,percentage:Math.min(100,Math.max(0,Math.round(n/t.contextWindow*100)))}}function gn(e){if(typeof e!=`number`||!Number.isFinite(e)||e<0)return;let t=e>=1e3?1e3:100;return Math.round(e/t)*t}function _n(e){let t=gn(e);if(t!==void 0)return t>=1e3?`${Math.round(t/1e3)}k`:String(t)}var vn=class extends Error{constructor(e){super(e),this.name=`CompanionPreControllerError`}};function yn(e,t=43,n=150){let r=Number.isFinite(t)&&t>0?t:43,i=Number.isFinite(n)&&n>=r?n:150,a=Number.isFinite(e)&&e>0?e:r;return{height:Math.min(i,Math.max(r,a)),scrollable:a>i}}function bn(e){return[{command:`/compact`,label:e(`compact.command`),description:e(`compact.description`)}]}function xn(e=``){return{draft:e,composing:!1}}function Sn(e,t){switch(t.type){case`input`:return{...e,draft:t.value};case`compositionstart`:return{...e,composing:!0};case`compositionend`:return{...e,composing:!1,draft:t.value};case`submit`:return e.composing||!e.draft.trim()?e:{draft:``,composing:!1,lastSubmitted:e.draft}}}function Cn(e,t){return e.key===`Enter`&&!e.shiftKey&&!e.isComposing&&!t}function wn(e,t=Ct){if(e.startsWith(`/`)&&!/\s/u.test(e))return bn(t).find(t=>t.command.startsWith(e))}function Tn(e,t){if(e.changes.seed)return[];let n=[];return e.changes.mood&&n.push({dimension:`mood`,after:{value:e.state.mood,...e.state.note===void 0?{}:{note:e.state.note}},...e.changes.mood.reason===void 0?{}:{reason:e.changes.mood.reason}}),e.changes.affinity&&n.push({dimension:`affinity`,after:{value:e.state.affinity},...t&&e.state.affinity>t.state.affinity?{delta:e.state.affinity-t.state.affinity}:{},...e.changes.affinity.reason===void 0?{}:{reason:e.changes.affinity.reason}}),e.changes.signature&&n.push({dimension:`signature`,after:{value:e.state.signature},...e.changes.signature.reason===void 0?{}:{reason:e.changes.signature.reason}}),n}var En=o(`<a><!></a>`);function Dn(t,n){var r=En();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var On=o(`<abbr><!></abbr>`);function kn(t,n){var r=On();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var An=o(`<address><!></address>`);function jn(t,n){var r=An();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Mn=o(`<article><!></article>`);function Nn(t,n){var r=Mn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Pn=o(`<aside><!></aside>`);function Fn(t,n){var r=Pn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var In=o(`<audio><!></audio>`);function Ln(t,n){var r=In();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Rn=o(`<b><!></b>`);function zn(t,n){var r=Rn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Bn=o(`<bdi><!></bdi>`);function Vn(t,n){var r=Bn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Hn=o(`<bdo><!></bdo>`);function Un(t,n){var r=Hn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Wn=o(`<blockquote><!></blockquote>`);function Gn(t,n){var r=Wn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Kn=o(`<br/>`);function qn(e,t){let n=N(t,`attributes`,19,()=>({}));var r=Kn();O(r,()=>({...n()})),p(e,r)}var Jn=o(`<button><!></button>`);function Yn(t,n){var r=Jn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Xn=o(`<canvas><!></canvas>`);function Zn(t,n){var r=Xn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Qn=o(`<cite><!></cite>`);function $n(t,n){var r=Qn();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var er=o(`<code><!></code>`);function tr(t,n){var r=er();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var nr=o(`<datalist><!></datalist>`);function rr(t,n){var r=nr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ir=o(`<dd><!></dd>`);function ar(t,n){var r=ir();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var or=o(`<del><!></del>`);function sr(t,n){var r=or();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var cr=o(`<details><!></details>`);function lr(t,n){var r=cr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ur=o(`<dfn><!></dfn>`);function dr(t,n){var r=ur();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var fr=o(`<dialog><!></dialog>`);function pr(t,n){var r=fr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var mr=o(`<div><!></div>`);function hr(t,n){var r=mr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var gr=o(`<dl><!></dl>`);function _r(t,n){var r=gr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var vr=o(`<dt><!></dt>`);function yr(t,n){var r=vr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var br=o(`<em><!></em>`);function xr(t,n){var r=br();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Sr=o(`<embed/>`);function Cr(e,t){var n=Sr();O(n,()=>({...t.attributes})),Ne(n),p(e,n)}var wr=o(`<fieldset><!></fieldset>`);function Tr(t,n){var r=wr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Er=o(`<footer><!></footer>`);function Dr(t,n){var r=Er();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Or=o(`<form><!></form>`);function kr(t,n){var r=Or();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ar=o(`<h1><!></h1>`);function jr(t,n){var r=Ar();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Mr=o(`<h2><!></h2>`);function Nr(t,n){var r=Mr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Pr=o(`<h3><!></h3>`);function Fr(t,n){var r=Pr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ir=o(`<h4><!></h4>`);function Lr(t,n){var r=Ir();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Rr=o(`<h5><!></h5>`);function zr(t,n){var r=Rr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Br=o(`<h6><!></h6>`);function Vr(t,n){var r=Br();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Hr=o(`<header><!></header>`);function Ur(t,n){var r=Hr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Wr=o(`<hgroup><!></hgroup>`);function Gr(t,n){var r=Wr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Kr=o(`<hr/>`);function qr(e,t){var n=Kr();O(n,()=>({...t.attributes})),p(e,n)}var Jr=o(`<i><!></i>`);function Yr(t,n){var r=Jr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Xr=o(`<iframe><!></iframe>`);function Zr(t,n){var r=Xr();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),Ne(r),p(t,r)}var Qr=o(`<img/>`);function $r(e,t){var n=Qr();O(n,()=>({...t.attributes})),Ne(n),p(e,n)}var ei=o(`<input/>`);function ti(e,t){var n=ei();O(n,()=>({...t.attributes}),void 0,void 0,void 0,void 0,!0),p(e,n)}var ni=o(`<kbd><!></kbd>`);function ri(t,n){var r=ni();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ii=o(`<label><!></label>`);function ai(t,n){var r=ii();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var oi=o(`<legend><!></legend>`);function si(t,n){var r=oi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ci=o(`<li><!></li>`);function li(t,n){var r=ci();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ui=o(`<main><!></main>`);function di(t,n){var r=ui();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var fi=o(`<mark><!></mark>`);function pi(t,n){var r=fi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var mi=o(`<menu><!></menu>`);function hi(t,n){var r=mi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var gi=o(`<meter><!></meter>`);function _i(t,n){var r=gi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var vi=o(`<nav><!></nav>`);function yi(t,n){var r=vi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var bi=o(`<ol><!></ol>`);function xi(t,n){var r=bi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Si=o(`<optgroup><!></optgroup>`);function Ci(t,n){var r=Si();O(r,()=>({...n.attributes})),ge(r,()=>{var t=e(r),i=h(),o=D(i);a(o,()=>n.children??I),p(t,i)}),p(t,r)}var wi=o(`<option><!></option>`);function Ti(t,n){var r=wi();O(r,()=>({...n.attributes})),ge(r,()=>{var t=e(r),i=h(),o=D(i);a(o,()=>n.children??I),p(t,i)}),p(t,r)}var Ei=o(`<output><!></output>`);function Di(t,n){var r=Ei();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Oi=o(`<p><!></p>`);function ki(t,n){var r=Oi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ai=o(`<param/>`);function ji(e,t){var n=Ai();O(n,()=>({...t.attributes})),p(e,n)}var Mi=o(`<picture><!></picture>`);function Ni(t,n){var r=Mi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Pi=o(`<pre><!></pre>`);function Fi(t,n){var r=Pi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ii=o(`<progress><!></progress>`);function Li(t,n){var r=Ii();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ri=o(`<s><!></s>`);function zi(t,n){var r=Ri();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Bi=o(`<samp><!></samp>`);function Vi(t,n){var r=Bi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Hi=o(`<section><!></section>`);function Ui(t,n){var r=Hi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Wi=o(`<select><!></select>`);function Gi(t,n){var r=Wi();O(r,()=>({...n.attributes})),ge(r,()=>{var t=e(r),i=h(),o=D(i);a(o,()=>n.children??I),p(t,i)}),p(t,r)}var Ki=o(`<small><!></small>`);function qi(t,n){var r=Ki();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ji=o(`<source/>`);function Yi(e,t){var n=Ji();O(n,()=>({...t.attributes})),p(e,n)}var Xi=o(`<span><!></span>`);function Zi(t,n){var r=Xi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Qi=o(`<strong><!></strong>`);function $i(t,n){var r=Qi();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ea=o(`<sub><!></sub>`);function ta(t,n){var r=ea();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var na=o(`<summary><!></summary>`);function ra(t,n){var r=na();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ia=o(`<sup><!></sup>`);function aa(t,n){var r=ia();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var oa=o(`<table><!></table>`);function sa(t,n){var r=oa();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ca=o(`<tbody><!></tbody>`);function la(t,n){var r=ca();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ua=o(`<td><!></td>`);function da(t,n){var r=ua();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var fa=o(`<textarea></textarea>`);function pa(e,t){var n=fa();se(n),O(n,()=>({...t.attributes})),p(e,n)}var ma=o(`<tfoot><!></tfoot>`);function ha(t,n){var r=ma();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ga=o(`<th><!></th>`);function _a(t,n){var r=ga();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var va=o(`<thead><!></thead>`);function ya(t,n){var r=va();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var ba=o(`<tr><!></tr>`);function xa(t,n){var r=ba();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Sa=o(`<track/>`);function Ca(e,t){var n=Sa();O(n,()=>({...t.attributes})),Ne(n),p(e,n)}var wa=o(`<u><!></u>`);function Ta(t,n){var r=wa();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ea=o(`<ul><!></ul>`);function Da(t,n){var r=Ea();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Oa=o(`<var><!></var>`);function ka(t,n){var r=Oa();O(r,()=>({...n.attributes}));var i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Aa=o(` <!> `,1);function ja(e,t){ue(t,!0);let n=Object.entries(t.attributes||{}).map(([e,t])=>`${e}="${t}"`).join(` `)||``;Me();var r=Aa(),i=D(r),o=j(i);a(o,()=>t.children??I);var s=j(o);l(()=>{f(i,`<${t.tag??``}${n?` ${n}`:``}>`),f(s,`</${t.tag??``}>`)}),p(e,r),de()}var Ma={a:Dn,abbr:kn,address:jn,article:Nn,aside:Fn,audio:Ln,b:zn,bdi:Vn,bdo:Un,blockquote:Gn,br:qn,button:Yn,canvas:Zn,cite:$n,code:tr,datalist:rr,dd:ar,del:sr,details:lr,dfn:dr,dialog:pr,div:hr,dl:_r,dt:yr,em:xr,embed:Cr,fieldset:Tr,footer:Dr,form:kr,h1:jr,h2:Nr,h3:Fr,h4:Lr,h5:zr,h6:Vr,header:Ur,hgroup:Gr,hr:qr,i:Yr,iframe:Zr,img:$r,input:ti,kbd:ri,label:ai,legend:si,li,main:di,mark:pi,menu:hi,meter:_i,nav:yi,ol:xi,optgroup:Ci,option:Ti,output:Di,p:ki,param:ji,picture:Ni,pre:Fi,progress:Li,s:zi,samp:Vi,section:Ui,select:Gi,small:qi,source:Yi,span:Zi,strong:$i,sub:ta,summary:ra,sup:aa,table:sa,tbody:la,td:da,textarea:pa,tfoot:ha,th:_a,thead:ya,tr:xa,track:Ca,u:Ta,ul:Da,var:ka},Na=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Pa=Object.hasOwnProperty,Fa=class{constructor(){this.occurrences,this.reset()}slug(e,t){let n=this,r=Ia(e,t===!0),i=r;for(;Pa.call(n.occurrences,r);)n.occurrences[i]++,r=i+`-`+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function Ia(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(Na,``).replace(/ /g,`-`)):``}function La(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ra=La();function za(e){Ra=e}var Ba={exec:()=>null};function Va(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Ha(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Wa.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Ua=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Wa={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Va(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Va(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Va(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Va(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Va(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:Va(e=>RegExp(`^ {0,${e}}>`))},Ga=/^(?:[ \t]*(?:\n|$))+/,Ka=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ja=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ya=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xa=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Za=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qa=Ha(Za).replace(/bull/g,Xa).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),$a=Ha(Za).replace(/bull/g,Xa).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),eo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,to=/^[^\n]+/,no=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ro=Ha(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,no).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),io=Ha(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Xa).getRegex(),ao=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,oo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,so=Ha(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,oo).replace(`tag`,ao).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),co=e=>Ha(eo).replace(`hr`,Ja).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,ao).getRegex(),lo=co(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),uo=co(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),fo={blockquote:Ha(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,uo).getRegex(),code:Ka,def:ro,fences:qa,heading:Ya,hr:Ja,html:so,lheading:Qa,list:io,newline:Ga,paragraph:lo,table:Ba,text:to},po=Ha(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ja).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,ao).getRegex(),mo={...fo,lheading:$a,table:po,paragraph:Ha(eo).replace(`hr`,Ja).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,po).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,ao).getRegex()},ho={...fo,html:Ha(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,oo).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ba,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ha(eo).replace(`hr`,Ja).replace(`heading`,` *#{1,6} *[^
2
+ ]`).replace(`lheading`,Qa).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},go=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_o=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vo=/^( {2,}|\\)\n(?!\s*$)/,yo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,bo=/[\p{P}\p{S}]/u,xo=/[\s\p{P}\p{S}]/u,So=/[^\s\p{P}\p{S}]/u,Co=Ha(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,xo).getRegex(),wo=/[\p{Pi}\p{Ps}"']/u,To=/(?!~)[\p{P}\p{S}]/u,Eo=/(?!~)[\s\p{P}\p{S}]/u,Do=/(?:[^\s\p{P}\p{S}]|~)/u,Oo=Ha(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Ua?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),ko=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ao=Ha(ko,`u`).replace(/punct/g,bo).getRegex(),jo=Ha(ko,`u`).replace(/punct/g,To).getRegex(),Mo=Ha(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,wo).replace(/punct/g,bo).getRegex(),No=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Po=Ha(No,`gu`).replace(/notPunctSpace/g,So).replace(/punctSpace/g,xo).replace(/punct/g,bo).getRegex(),Fo=Ha(No,`gu`).replace(/notPunctSpace/g,Do).replace(/punctSpace/g,Eo).replace(/punct/g,To).getRegex(),Io=Ha(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,So).replace(/punctSpace/g,xo).replace(/punct/g,bo).getRegex(),Lo=Ha(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,So).replace(/punctSpace/g,xo).replace(/punct/g,bo).getRegex(),Ro=Ha(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,So).replace(/punctSpace/g,xo).replace(/punct/g,bo).getRegex(),zo=Ha(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,bo).getRegex(),Bo=Ha(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,So).replace(/punctSpace/g,xo).replace(/punct/g,bo).getRegex(),Vo=Ha(/\\(punct)/,`gu`).replace(/punct/g,bo).getRegex(),Ho=Ha(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Uo=Ha(oo).replace(`(?:-->|$)`,`-->`).getRegex(),Wo=Ha(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Uo).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Go=Ha(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,/\[(?:\\[\s\S]|[^\[\]\\])*\]/).getRegex(),Ko=Ha(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,Go).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qo=Ha(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Go).replace(`ref`,no).getRegex(),Jo=Ha(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,no).getRegex(),Yo=Ha(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,qo).replace(`nolink`,Jo).getRegex(),Xo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Zo={_backpedal:Ba,anyPunctuation:Vo,autolink:Ho,blockSkip:Oo,br:vo,code:_o,del:Ba,delLDelim:Ba,delRDelim:Ba,emStrongLDelim:Ao,emStrongRDelimAst:Po,emStrongRDelimUnd:Lo,escape:go,link:Ko,nolink:Jo,punctuation:Co,reflink:qo,reflinkSearch:Yo,tag:Wo,text:yo,url:Ba},Qo={...Zo,emStrongLDelim:Mo,emStrongRDelimAst:Io,emStrongRDelimUnd:Ro,link:Ha(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Go).getRegex(),reflink:Ha(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Go).getRegex()},$o={...Zo,emStrongRDelimAst:Fo,emStrongLDelim:jo,delLDelim:zo,delRDelim:Bo,url:Ha(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Xo).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ha(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Xo).getRegex()},es={...$o,br:Ha(vo).replace(`{2,}`,`*`).getRegex(),text:Ha($o.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},ts={normal:fo,gfm:mo,pedantic:ho},ns={normal:Zo,gfm:$o,breaks:es,pedantic:Qo},rs={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},is=e=>rs[e];function as(e,t){if(t){if(Wa.escapeTest.test(e))return e.replace(Wa.escapeReplace,is)}else if(Wa.escapeTestNoEncode.test(e))return e.replace(Wa.escapeReplaceNoEncode,is);return e}function os(e){try{e=encodeURI(e).replace(Wa.percentDecode,`%`)}catch{return null}return e}function ss(e,t){let n=e.replace(Wa.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Wa.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(Wa.slashPipe,`|`);return n}function cs(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function ls(e){let t=e.split(`
3
+ `),n=t.length-1;for(;n>=0&&Wa.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
4
+ `)}function us(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function ds(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function fs(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function ps(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
5
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
6
+ `)}var ms=class{options;rules;lexer;constructor(e){this.options=e||Ra}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:ls(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=ps(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=cs(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:cs(t[0],`
7
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:cs(t[0],`
8
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=cs(t[0],`
9
+ `).split(`
10
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
11
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
12
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
13
+ ${s}`:s,r=r?`${r}
14
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
15
+ `),o=t.raw+`
16
+ `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
17
+ ${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
18
+ `+e.join(`
19
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
20
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=ds(t[2].split(`
21
+ `,1)[0],t[1].length),l=e.split(`
22
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
23
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
24
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
25
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
26
+ `+l}u=!l.trim(),r+=p+`
27
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=ls(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:cs(t[0],`
28
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ss(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
29
+ `):[],a={type:`table`,raw:cs(t[0],`
30
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(ss(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:cs(t[0],`
31
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
32
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=cs(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=us(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),fs(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return fs(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},hs=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ra,this.options.tokenizer=this.options.tokenizer||new ms,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:Wa,block:ts.normal,inline:ns.normal};this.options.pedantic?(t.block=ts.pedantic,t.inline=ns.pedantic):this.options.gfm&&(t.block=ts.gfm,t.inline=this.options.breaks?ns.breaks:ns.gfm),this.tokenizer.rules=t}static get rules(){return{block:ts,inline:ns}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Wa.carriageReturn,`
33
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Wa.tabCharGlobal,` `).replace(Wa.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
34
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
35
+ `)?``:`
36
+ `)+i.raw,n.text+=`
37
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
38
+ `)?``:`
39
+ `)+i.raw,n.text+=`
40
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
41
+ `)?``:`
42
+ `)+i.raw,r.text+=`
43
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
44
+ `)?``:`
45
+ `)+i.raw,n.text+=`
46
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,e.slice(n+1,-1))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},gs=class{options;parser;constructor(e){this.options=e||Ra}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Wa.notSpaceStart)?.[0],i=e?e.replace(Wa.endingNewline,``)+`
47
+ `:``;return r?`<pre><code class="language-`+as(r)+`">`+(n?i:as(i,!0))+`</code></pre>
48
+ `:`<pre><code>`+(n?i:as(i,!0))+`</code></pre>
49
+ `}blockquote({tokens:e}){return`<blockquote>
50
+ ${this.parser.parse(e)}</blockquote>
51
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
52
+ `}hr(e){return`<hr>
53
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
54
+ `+r+`</`+i+`>
55
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
56
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
57
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
58
+ <thead>
59
+ `+t+`</thead>
60
+ `+r+`</table>
61
+ `}tablerow({text:e}){return`<tr>
62
+ ${e}</tr>
63
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
64
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${as(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?as(n,!0):this.parser.parseInline(r),o=os(e);if(o===null)return a;e=as(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+as(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=os(e);if(i===null)return as(n);e=i;let a=`<img src="${as(e)}" alt="${as(n)}"`;return t&&(a+=` title="${as(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:as(e.text)}},_s=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},vs=class e{options;renderer;textRenderer;constructor(e){this.options=e||Ra,this.options.renderer=this.options.renderer||new gs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _s}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},ys=class{options;block;constructor(e){this.options=e||Ra}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?hs.lex:hs.lexInline}provideParser(e=this.block){return e?vs.parse:vs.parseInline}},bs=class{defaults=La();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=vs;Renderer=gs;TextRenderer=_s;Lexer=hs;Tokenizer=ms;Hooks=ys;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new gs(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ms(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ys;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=ys.passThroughHooks.has(n)?e=>{if(this.defaults.async&&ys.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return hs.lex(e,t??this.defaults)}parser(e,t){return vs.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?hs.lex:hs.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?vs.parse:vs.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?hs.lex:hs.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?vs.parse:vs.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
65
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+as(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},xs=new bs;function Ss(e,t){return xs.parse(e,t)}Ss.options=Ss.setOptions=function(e){return xs.setOptions(e),Ss.defaults=xs.defaults,za(Ss.defaults),Ss},Ss.getDefaults=La,Ss.defaults=Ra;function Cs(...e){return xs.use(...e),Ss.defaults=xs.defaults,za(Ss.defaults),Ss}Ss.use=Cs,Ss.walkTokens=function(e,t){return xs.walkTokens(e,t)},Ss.parseInline=xs.parseInline,Ss.Parser=vs,Ss.parser=vs.parse,Ss.Renderer=gs,Ss.TextRenderer=_s,Ss.Lexer=hs,Ss.lexer=hs.lex,Ss.Tokenizer=ms,Ss.Hooks=ys,Ss.parse=Ss,Ss.options,Ss.setOptions,Ss.walkTokens,Ss.parseInline,vs.parse,hs.lex;var ws=o(`<blockquote><!></blockquote>`);function Ts(t,n){var r=ws(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Es=o(`<br/>`);function Ds(e){var t=Es();p(e,t)}var Os=o(`<pre><code> </code></pre>`);function ks(t,n){var r=Os(),i=e(r),a=P(i,!0);E(r),l(()=>{re(r,1,Ae(n.lang)),f(a,n.text)}),p(t,r)}var As=o(`<code> </code>`);function js(e,t){ue(t,!0);var n=As(),r=P(n,!0);l(e=>f(r,e),[()=>t.raw.replace(/`/g,``)]),p(e,n),de()}var Ms=o(`<del><!></del>`);function Ns(t,n){var r=Ms(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var Ps=o(`<em><!></em>`);function Fs(t,n){var r=Ps(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}function Is(e,t){Me();var n=d();l(()=>f(n,t.text)),p(e,n)}var Ls=o(`<h1><!></h1>`),Rs=o(`<h2><!></h2>`),zs=o(`<h3><!></h3>`),Bs=o(`<h4><!></h4>`),Vs=o(`<h5><!></h5>`),Hs=o(`<h6><!></h6>`);function Us(t,n){ue(n,!0);let r=N(n,`id`,3,void 0),i=F(()=>n.options.headerIds?r()??`${n.options.headerPrefix}${n.slug(n.text)}`:void 0);var o=h(),s=D(o),c=t=>{var r=Ls(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`id`,S(i))),p(t,r)},u=t=>{var r=Rs(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`id`,S(i))),p(t,r)},m=t=>{var r=zs(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`id`,S(i))),p(t,r)},g=t=>{var r=Bs(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`id`,S(i))),p(t,r)},_=t=>{var r=Vs(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`id`,S(i))),p(t,r)},v=t=>{var r=Hs(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`id`,S(i))),p(t,r)},y=e=>{var t=d();l(()=>f(t,n.raw)),p(e,t)};A(s,e=>{n.depth===1?e(c):n.depth===2?e(u,1):n.depth===3?e(m,2):n.depth===4?e(g,3):n.depth===5?e(_,4):n.depth===6?e(v,5):e(y,-1)}),p(t,o),de()}var Ws=o(`<hr/>`);function Gs(e){var t=Ws();p(e,t)}var Ks=o(`<img/>`);function qs(e,t){ue(t,!0);let n=N(t,`href`,3,void 0),r=N(t,`title`,3,void 0),i=N(t,`text`,3,``),a=N(t,`lazy`,3,!0),o=N(t,`fadeIn`,3,!0),s,c=we(!1),u=we(!a()),d=we(!1);fe(()=>{if(!a())return;if(typeof IntersectionObserver>`u`){M(u,!0);return}let e=new IntersectionObserver(t=>{t[0]?.isIntersecting&&(M(u,!0),e.disconnect())},{rootMargin:`50px`});return s&&e.observe(s),()=>{e?.disconnect()}});let f=()=>{S(d)||M(c,!0)},m=()=>{M(d,!0),M(c,!0)};var h=Ks();let g;ye(h,e=>s=e,()=>s),l(()=>{T(h,`src`,S(u)?n():void 0),T(h,`data-src`,n()),T(h,`title`,r()),T(h,`alt`,i()),T(h,`loading`,a()?`lazy`:`eager`),g=re(h,1,`svelte-1ajidzw`,null,g,{"fade-in":o()&&S(c)&&!S(d),visible:!o()&&S(c)&&!S(d),error:S(d)})}),_(`load`,h,f),_(`error`,h,m),Ne(h),p(e,h),de()}var Js=o(`<a><!></a>`);function Ys(t,n){let r=N(n,`href`,3,void 0),i=N(n,`title`,3,void 0);var o=Js(),s=e(o);a(s,()=>n.children??I),E(o),l(()=>{T(o,`href`,r()),T(o,`title`,i())}),p(t,o)}var Xs=o(`<ol><!></ol>`),Zs=o(`<ul><!></ul>`);function Qs(t,n){let r=N(n,`ordered`,3,!1),i=N(n,`start`,3,1);var o=h(),s=D(o),c=t=>{var r=Xs(),o=e(r);a(o,()=>n.children??I),E(r),l(()=>T(r,`start`,i())),p(t,r)},u=t=>{var r=Zs(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)};A(s,e=>{r()?e(c):e(u,-1)}),p(t,o)}var $s=o(`<li><!></li>`);function ec(t,n){N(n,`listItemIndex`,3,void 0);var r=$s(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var tc=o(`<p><!></p>`);function nc(t,n){var r=tc(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}function rc(e,t){Me();var n=d();l(()=>f(n,t.text)),p(e,n)}var ic=o(`<strong><!></strong>`);function ac(t,n){var r=ic(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var oc=o(`<table><!></table>`);function sc(t,n){var r=oc(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var cc=o(`<tbody><!></tbody>`);function lc(t,n){var r=cc(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var uc=o(`<th><!></th>`),dc=o(`<td><!></td>`);function fc(t,n){let r=F(()=>n.align?`text-align: ${n.align}`:void 0);var i=h(),o=D(i),s=t=>{var i=uc(),o=e(i);a(o,()=>n.children??I),E(i),l(()=>je(i,S(r))),p(t,i)},c=t=>{var i=dc(),o=e(i);a(o,()=>n.children??I),E(i),l(()=>je(i,S(r))),p(t,i)};A(o,e=>{n.header?e(s):e(c,-1)}),p(t,i)}var pc=o(`<thead><!></thead>`);function mc(t,n){var r=pc(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}var hc=o(`<tr><!></tr>`);function gc(t,n){var r=hc(),i=e(r);a(i,()=>n.children??I),E(r),p(t,r)}function _c(e,t){var n=h(),r=D(n);a(r,()=>t.children??I),p(e,n)}var vc={heading:Us,paragraph:nc,text:_c,image:qs,link:Ys,em:Fs,escape:Is,strong:ac,codespan:js,del:Ns,table:sc,tablehead:mc,tablebody:lc,tablerow:gc,tablecell:fc,list:Qs,orderedlistitem:null,unorderedlistitem:null,listitem:ec,hr:Gs,html:Ma,blockquote:Ts,code:ks,br:Ds,rawtext:rc},yc={async:!1,breaks:!1,gfm:!0,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null,headerIds:!0,headerPrefix:``},bc=new Set([`http:`,`https:`,`mailto:`,`tel:`]),xc=new Set([`href`,`src`,`action`,`formaction`,`cite`,`data`,`poster`]),Sc=/^https?:/i,Cc=/^\s+/,wc=/^[#/?.]/,Tc=(e,t)=>{if(!e)return``;let n=e.replace(Cc,``);if(wc.test(n)||!n.includes(`:`)||Sc.test(n))return n;try{let e=new URL(n,`http://localhost`);if(bc.has(e.protocol))return n}catch{}return``},Ec=(e,t,n)=>{let r={};for(let[i,a]of Object.entries(e)){let e=i.toLowerCase();if(!(e.startsWith(`on`)||e===`srcdoc`)){if(xc.has(e)){let e=n(a,t);e&&(r[i]=e);continue}r[i]=a}}return r},Dc=Symbol(`svelte-markdown.renderMetadata`),Oc=e=>Array.isArray(e)?e:void 0,kc=e=>typeof e.raw==`string`?e.raw:typeof e.text==`string`?e.text:``,Ac=e=>typeof e.sourceLength==`number`?e.sourceLength:kc(e).length,jc=e=>({...e}),Mc=e=>({headerIds:e.headerIds,headerPrefix:e.headerPrefix}),Nc=(e,t)=>e!==void 0&&e.headerIds===t.headerIds&&e.headerPrefix===t.headerPrefix,Pc=()=>{let e=new WeakMap,t=new WeakMap,n=new WeakMap,r=[],i=[],a,o=[],s=(t,n)=>{e.set(t,n)},c=t=>typeof t==`object`&&t?e.get(t):void 0,l=(e,t)=>{let n=c(e);return n===void 0?typeof e==`object`&&e?e:`${t}:${String(e)}`:n},u=e=>n.get(e),d=(e,t=0,r=0,i=0)=>{if(!e)return;let a=i;for(let i=r;i<e.length;i++){let r=e[i],o=Ac(r),c=t+a;n.set(r,c),o===0?s(r,`src:${c}:zero:${i}`):s(r,`src:${c}`),g(r,c),a+=o}},f=(e,t=new Set)=>{if(typeof e!=`object`||!e)return t;if(t.add(e),Array.isArray(e)){for(let n of e)f(n,t);return t}let n=e;return f(n.tokens,t),f(n.items,t),f(n.header,t),f(n.rows,t),t},p=(e,t)=>{let n=0,[r,i]=e.size<=t.size?[e,t]:[t,e];for(let e of r)i.has(e)&&n++;return n},m=(e,t,n)=>{let r=-1,i=0;for(let a=0;a<o.length;a++){if(n.has(a))continue;let s=o[a];if(s.type!==e.type)continue;let c=p(t,s.identities);c>i&&(r=a,i=c)}return r===-1?void 0:{index:r,record:o[r]}},h=e=>{if(!e){o=[];return}let t=[],n=new Set;for(let r of e){let e=f(r),i=c(r),a=i===void 0?m(r,e,n):void 0,o=i??a?.record.key??r;a&&n.add(a.index),i===void 0&&s(r,o),t.push({key:o,identities:e,type:r.type})}o=t},g=(e,t)=>{d(Oc(e.tokens),t),d(Oc(e.items),t),d(Oc(e.header),t);let n=Oc(e.rows);if(n)for(let e=0;e<n.length;e++){let r=n[e];s(r,`src:${t}:row:${e}`),d(Oc(r),t)}},_=(e,t,n,r,i,a=0)=>{if(e)for(let o=a;o<e.length;o++){let a=e[o];a.type===`heading`&&(v(a,t,n),y(a,n,r,i)),_(Oc(a.tokens),t,n,r,i),_(Oc(a.items),t,n,r,i),_(Oc(a.header),t,n,r,i);let s=Oc(a.rows);if(s)for(let e of s)_(Oc(e),t,n,r,i)}},v=(e,n,r)=>{t.set(e,n.headerIds&&typeof e.text==`string`?`${n.headerPrefix}${r.slug(e.text)}`:void 0)},y=(e,t,n,r)=>{n.push(e);let i=u(e);r.push(i===void 0?void 0:{offset:i,occurrences:jc(t.occurrences)})},b=e=>{let t=0;for(let n of r){let r=u(n);if(r===void 0)return;if(r>=e)break;let a=i[t];if(!a||a.offset!==r)return;t++}return t},x=(e,t,n,o,s)=>{let c=Mc(t);if(!Nc(a,c))return!1;let l=b(n);if(l===void 0)return!1;if(o.push(...r.slice(0,l)),s.push(...i.slice(0,l)),l===0)return!0;let u=i[l-1];return u?(e.occurrences=jc(u.occurrences),!0):!1},S=(e,t,n,i,a)=>{for(let o of r){let r=u(o);r===void 0||r>=n||(v(o,t,e),y(o,e,i,a))}},C=(e,t,n)=>{let o=new Fa,s=[],c=[];n?.source!==void 0&&n.startOffset!==void 0&&(x(o,t,n.startOffset,s,c)||S(o,t,n.startOffset,s,c)),_(e,t,o,s,c,n?.startIndex??0),r=s,i=c,a=Mc(t)};return{prepareTokensForRender:(e,t,n)=>{if(!e)return e;let r=e;return n?.source===void 0?h(r):(o=[],d(r,0,n.startIndex??0,n.startOffset??0)),C(r,t,n),e},getPreparedHeadingId:e=>typeof e==`object`&&e?t.get(e):void 0,getStableNodeKey:l,getStableRowKey:(e,t)=>{let n=c(e);return n===void 0?e&&e.length>0?l(e[0],t):e||t:n}}},Fc=new Set([`br`,`hr`,`img`,`input`,`link`,`meta`,`area`,`base`,`col`,`embed`,`keygen`,`param`,`source`,`track`,`wbr`]),Ic=Object.freeze({}),Lc=new Set([`$$slots`,`$$events`,`$$legacy`,`type`,`tokens`,`header`,`rows`,`ordered`,`renderers`,`snippetOverrides`,`htmlSnippetOverrides`,`sanitizeUrl`,`sanitizeAttributes`]),Rc=o(`<!> <!>`,1);function zc(e,t){ue(t,!0);let n=(e,r=I,i=I)=>{let a=F(r),o=F(()=>r().type===`html`&&!!S(a).tag&&!!t.renderers.html&&S(a).tag in Ma&&t.renderers.html[S(a).tag]===Ma[S(a).tag]&&!m()[S(a).tag]);var s=h(),c=D(s),v=e=>{},y=e=>{var t=d();l(()=>f(t,r().text??r().raw)),p(e,t)},b=e=>{let t=F(()=>S(a).attributes?_()(S(a).attributes,{type:`html`,tag:S(a).tag},g()):void 0);var r=h(),o=D(r),s=e=>{var n=h(),r=D(n);ke(r,()=>S(a).tag,!1,(e,n)=>{O(e,()=>({...S(t)}))}),p(e,n)},c=F(()=>Fc.has(S(a).tag)),l=e=>{var r=h(),o=D(r);ke(o,()=>S(a).tag,!1,(e,r)=>{O(e,()=>({...S(t)}));var o=h(),s=D(o),c=e=>{var t=h(),r=D(t);pe(r,19,()=>S(a).tokens,(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),i)}),p(e,t)};A(s,e=>{S(a).tokens&&S(a).tokens.length&&e(c)}),p(r,o)}),p(e,r)};A(o,e=>{S(c)?e(s):e(l,-1)}),p(e,r)},w=e=>{let n=F(()=>r().type===`heading`?{id:x.getPreparedHeadingId(r())??r().id}:Ic);zc(e,me(i,r,()=>S(n),{get renderers(){return t.renderers},get snippetOverrides(){return u()},get htmlSnippetOverrides(){return m()},get sanitizeUrl(){return g()},get sanitizeAttributes(){return _()}}))};A(c,e=>{r().type===`space`&&S(ee)?e(v):r().type===`text`&&S(C)&&!r().tokens?e(y,1):S(o)&&S(a).tag?e(b,2):e(w,-1)}),p(e,s)},r=N(t,`type`,3,void 0),i=N(t,`tokens`,3,void 0),o=N(t,`header`,3,void 0),s=N(t,`rows`,3,void 0),c=N(t,`ordered`,3,!1),u=N(t,`snippetOverrides`,19,()=>({})),m=N(t,`htmlSnippetOverrides`,19,()=>({})),g=N(t,`sanitizeUrl`,3,Tc),_=N(t,`sanitizeAttributes`,3,Ec),v=ie(t,Lc),y=_e(Dc),x=y?be(Dc):Pc();y||te(Dc,x);let C=F(()=>t.renderers.text===vc.text&&!u().text&&t.renderers.rawtext===vc.rawtext&&!u().rawtext),ee=F(()=>!t.renderers.space&&!u().space),w=F(()=>{if((r()===`link`||r()===`image`)&&typeof t.href==`string`){let e=r()===`link`?`a`:`img`,n=g()(t.href,{type:r(),tag:e});return{...v,href:n||void 0}}if(r()===`html`&&t.attributes){let e=t.tag??``;return{...v,attributes:_()(t.attributes,{type:r(),tag:e},g())}}return v});var T=h(),ne=D(T),re=e=>{var t=h(),r=D(t),a=e=>{let t=F(()=>{let{text:e,raw:t,tokens:n,...r}=v;return{_text:e,_raw:t,_tokens:n,parserRest:r}});var r=h(),a=D(r);pe(a,19,i,(e,t)=>x.getStableNodeKey(e,t),(e,r)=>{n(e,()=>S(r),()=>S(t).parserRest)}),p(e,r)};A(r,e=>{i()&&e(a)}),p(e,t)},E=e=>{var l=h(),d=D(l),f=e=>{var i=h(),c=D(i),l=e=>{let i=e=>{var r=Rc(),i=D(r),c=e=>{let r=e=>{let r=e=>{var r=h(),i=D(r);pe(i,19,()=>o()??[],(e,t)=>x.getStableNodeKey(e,t),(e,r,i)=>{let o=e=>{var t=h(),i=D(t);pe(i,19,()=>S(r).tokens??[],(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),()=>({}))}),p(e,t)},s=F(()=>{let{align:e,...t}=S(w);return{_align:e,cellRest:t}});var c=h(),l=D(c),u=e=>{var t=h(),n=D(t);{let e=F(()=>({header:!0,align:S(w).align?.[S(i)]??null,...S(s).cellRest,children:o}));a(n,()=>S(m),()=>S(e))}p(e,t)},d=e=>{var n=h(),r=D(n);{let e=F(()=>S(w).align?.[S(i)]??null);b(r,()=>t.renderers.tablecell,(t,n)=>{n(t,me({header:!0,get align(){return S(e)}},()=>S(s).cellRest,{children:(e,t)=>{o(e)},$$slots:{default:!0}}))})}p(e,n)};A(l,e=>{S(m)?e(u):e(d,-1)}),p(e,c)}),p(e,r)};var i=h(),s=D(i),c=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(w),children:r}));a(n,()=>S(f),()=>S(e))}p(e,t)},l=e=>{var n=h(),i=D(n);b(i,()=>t.renderers.tablerow,(e,t)=>{t(e,me(()=>S(w),{children:(e,t)=>{r(e)},$$slots:{default:!0}}))}),p(e,n)};A(s,e=>{S(f)?e(c):e(l,-1)}),p(e,i)};var i=h(),s=D(i),c=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(w),children:r}));a(n,()=>S(l),()=>S(e))}p(e,t)},u=e=>{var n=h(),i=D(n);b(i,()=>t.renderers.tablehead,(e,t)=>{t(e,me(()=>S(w),{children:(e,t)=>{r(e)},$$slots:{default:!0}}))}),p(e,n)};A(s,e=>{S(l)?e(c):e(u,-1)}),p(e,i)};A(i,e=>{t.renderers.tablehead&&e(c)});var u=j(i,2),g=e=>{let r=e=>{var r=h(),i=D(r);pe(i,19,()=>s()??[],(e,t)=>x.getStableRowKey(e,t),(e,r)=>{let i=e=>{var i=h(),o=D(i);pe(o,19,()=>S(r)??[],(e,t)=>x.getStableNodeKey(e,t),(e,r,i)=>{let o=e=>{var t=h(),i=D(t);pe(i,19,()=>S(r).tokens??[],(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),()=>S(s).cellRest)}),p(e,t)},s=F(()=>{let{align:e,...t}=S(w);return{_align:e,cellRest:t}});var c=h(),l=D(c),u=e=>{var t=h(),n=D(t);{let e=F(()=>({header:!1,align:S(w).align?.[S(i)]??null,...S(s).cellRest,children:o}));a(n,()=>S(m),()=>S(e))}p(e,t)},d=e=>{var n=h(),r=D(n);{let e=F(()=>S(w).align?.[S(i)]??null);b(r,()=>t.renderers.tablecell,(t,n)=>{n(t,me(()=>S(s).cellRest,{header:!1,get align(){return S(e)},children:(e,t)=>{o(e)},$$slots:{default:!0}}))})}p(e,n)};A(l,e=>{S(m)?e(u):e(d,-1)}),p(e,c)}),p(e,i)};var o=h(),s=D(o),c=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(w),children:i}));a(n,()=>S(f),()=>S(e))}p(e,t)},l=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.tablerow,(e,t)=>{t(e,me(()=>S(w),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),p(e,n)};A(s,e=>{S(f)?e(c):e(l,-1)}),p(e,o)}),p(e,r)};var i=h(),o=D(i),c=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(w),children:r}));a(n,()=>S(d),()=>S(e))}p(e,t)},l=e=>{var n=h(),i=D(n);b(i,()=>t.renderers.tablebody,(e,t)=>{t(e,me(()=>S(w),{children:(e,t)=>{r(e)},$$slots:{default:!0}}))}),p(e,n)};A(o,e=>{S(d)?e(c):e(l,-1)}),p(e,i)};A(u,e=>{t.renderers.tablebody&&e(g)}),p(e,r)},c=F(()=>u()[r()]),l=F(()=>u().tablehead),d=F(()=>u().tablebody),f=F(()=>u().tablerow),m=F(()=>u().tablecell);var g=h(),_=D(g),v=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(w),children:i}));a(n,()=>S(c),()=>S(e))}p(e,t)},y=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.table,(e,t)=>{t(e,me(()=>S(w),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),p(e,n)};A(_,e=>{S(c)?e(v):e(y,-1)}),p(e,g)};A(c,e=>{t.renderers.table&&t.renderers.tablerow&&t.renderers.tablecell&&e(l)}),p(e,i)},g=e=>{let r=F(()=>u().list);var i=h(),o=D(i),s=e=>{let i=e=>{let r=F(()=>{let{items:e,...t}=S(w);return{_items:e,parserRest:t}}),i=F(()=>S(r)._items??[]);var o=h(),s=D(o);pe(s,19,()=>S(i),(e,t)=>x.getStableNodeKey(e,t),(e,i)=>{let o=e=>{var t=h(),a=D(t);pe(a,19,()=>S(i).tokens??[],(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),()=>S(r).parserRest)}),p(e,t)},s=F(()=>t.renderers.orderedlistitem||t.renderers.listitem),c=F(()=>u().orderedlistitem||u().listitem);var l=h(),d=D(l),f=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(i),children:o}));a(n,()=>S(c),()=>S(e))}p(e,t)},m=e=>{var t=h(),n=D(t);b(n,()=>S(s),(e,t)=>{t(e,me(()=>S(i),{children:(e,t)=>{o(e)},$$slots:{default:!0}}))}),p(e,t)};A(d,e=>{S(c)?e(f):S(s)&&e(m,1)}),p(e,l)}),p(e,o)};var o=h(),s=D(o),l=e=>{var t=h(),n=D(t);{let e=F(()=>({ordered:c(),...S(w),children:i}));a(n,()=>S(r),()=>S(e))}p(e,t)},d=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.list,(e,t)=>{t(e,me({get ordered(){return c()}},()=>S(w),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),p(e,n)};A(s,e=>{S(r)?e(l):e(d,-1)}),p(e,o)},l=e=>{let i=e=>{let r=F(()=>{let{items:e,...t}=S(w);return{_items:e,parserRest:t}}),i=F(()=>S(r)._items??[]);var o=h(),s=D(o);pe(s,19,()=>S(i),(e,t)=>x.getStableNodeKey(e,t),(e,i)=>{let o=e=>{var t=h(),a=D(t);pe(a,19,()=>S(i).tokens??[],(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),()=>S(r).parserRest)}),p(e,t)},s=F(()=>t.renderers.unorderedlistitem||t.renderers.listitem),c=F(()=>u().unorderedlistitem||u().listitem);var l=h(),d=D(l),f=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(i),children:o}));a(n,()=>S(c),()=>S(e))}p(e,t)},m=e=>{var t=h(),n=D(t);b(n,()=>S(s),(e,t)=>{t(e,me(()=>S(i),{children:(e,t)=>{o(e)},$$slots:{default:!0}}))}),p(e,t)};A(d,e=>{S(c)?e(f):S(s)&&e(m,1)}),p(e,l)}),p(e,o)};var o=h(),s=D(o),l=e=>{var t=h(),n=D(t);{let e=F(()=>({ordered:c(),...S(w),children:i}));a(n,()=>S(r),()=>S(e))}p(e,t)},d=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.list,(e,t)=>{t(e,me({get ordered(){return c()}},()=>S(w),{children:(e,t)=>{i(e)},$$slots:{default:!0}}))}),p(e,n)};A(s,e=>{S(r)?e(l):e(d,-1)}),p(e,o)};A(o,e=>{c()?e(s):e(l,-1)}),p(e,i)},_=e=>{let r=F(()=>{let{tag:e,...t}=S(w);return{tag:e,localRest:t}}),o=F(()=>S(w).tag),s=F(()=>m()[S(o)]),c=F(()=>Object.fromEntries(Object.entries(S(r).localRest).filter(([e])=>e!==`attributes`)));var l=h(),u=D(l),d=e=>{let r=e=>{var r=h(),a=D(r),o=e=>{var t=h(),r=D(t);pe(r,19,i,(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),()=>S(c))}),p(e,t)},s=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.rawtext,(e,t)=>{t(e,me({get text(){return S(w).raw}},()=>S(w)))}),p(e,n)};A(a,e=>{i()&&i().length?e(o):e(s,-1)}),p(e,r)};var o=h(),l=D(o);a(l,()=>S(s),()=>({attributes:S(w).attributes,children:r})),p(e,o)},f=e=>{let r=F(()=>t.renderers.html[S(o)]);var a=h(),s=D(a),l=e=>{var a=h(),o=D(a);b(o,()=>S(r),(e,r)=>{r(e,me(()=>S(w),{children:(e,r)=>{var a=h(),o=D(a),s=e=>{var t=h(),r=D(t);pe(r,19,i,(e,t)=>x.getStableNodeKey(e,t),(e,t)=>{n(e,()=>S(t),()=>S(c))}),p(e,t)},l=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.rawtext,(e,t)=>{t(e,me({get text(){return S(w).raw}},()=>S(w)))}),p(e,n)};A(o,e=>{i()&&i().length?e(s):e(l,-1)}),p(e,a)},$$slots:{default:!0}}))}),p(e,a)};A(s,e=>{S(r)&&e(l)}),p(e,a)},g=e=>{let t=F(()=>Object.fromEntries(Object.entries(S(r).localRest).filter(([e])=>e!==`tokens`))),a=F(()=>i()??[]);var o=h(),s=D(o);pe(s,19,()=>S(a),(e,t)=>x.getStableNodeKey(e,t),(e,r)=>{n(e,()=>S(r),()=>S(t))}),p(e,o)};A(u,e=>{S(s)?e(d):t.renderers.html&&S(o)in t.renderers.html?e(f,1):e(g,-1)}),p(e,l)},v=e=>{let o=e=>{var r=h(),a=D(r),o=e=>{let t=F(()=>{let{text:e,raw:t,...n}=S(w);return{_text:e,_raw:t,parserRest:n}});var r=h(),a=D(r);pe(a,19,i,(e,t)=>x.getStableNodeKey(e,t),(e,r)=>{n(e,()=>S(r),()=>S(t).parserRest)}),p(e,r)},s=e=>{var n=h(),r=D(n);b(r,()=>t.renderers.rawtext,(e,t)=>{t(e,me({get text(){return S(w).raw}},()=>S(w)))}),p(e,n)};A(a,e=>{i()?e(o):e(s,-1)}),p(e,r)},s=F(()=>t.renderers[r()]),c=F(()=>u()[r()]);var l=h(),d=D(l),f=e=>{var t=h(),n=D(t);{let e=F(()=>({...S(w),children:o}));a(n,()=>S(c),()=>S(e))}p(e,t)},m=e=>{var t=h(),n=D(t);b(n,()=>S(s),(e,t)=>{t(e,me(()=>S(w),{children:(e,t)=>{o(e)},$$slots:{default:!0}}))}),p(e,t)};A(d,e=>{S(c)?e(f):S(s)&&e(m,1)}),p(e,l)};A(d,e=>{r()===`table`?e(f):r()===`list`&&t.renderers.list?e(g,1):r()===`html`?e(_,2):e(v,-1)}),p(e,l)};A(ne,e=>{r()?(r()in t.renderers||r()in u())&&e(E,1):e(re)}),p(e,T),de()}var Bc=Object.keys(vc).filter(e=>e!==`html`),Vc=Object.keys(Ma),Hc=e=>({...vc,...e,html:e.html?{...vc.html,...e.html}:vc.html}),Uc=e=>[...Bc,...e],Wc=(e,t)=>Object.fromEntries(t.filter(t=>t in e&&e[t]!=null).map(t=>[t,e[t]])),Gc=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>e.startsWith(`html_`)&&t!=null).map(([e,t])=>[e.slice(5),t])),Kc=(e,t)=>{let n=new Set([...t,...Object.keys(e).filter(e=>e.startsWith(`html_`))]);return Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))},qc=0,Jc=new WeakMap,Yc=e=>{let t=Jc.get(e);return t||(t=++qc,Jc.set(e,t)),t},Xc=e=>typeof e==`function`?Yc(e):null,Zc=e=>e.flatMap(e=>e.extensions?.map(e=>e.name)??[]),Qc=e=>e.length>0?new bs(...e).defaults:{},$c=e=>e.some(e=>e.async===!0),el=e=>e.map(e=>({extension:Yc(e),async:e.async??!1,extensions:e.extensions?.map(e=>{let t=e;return{token:Yc(e),name:e.name,level:t.level??null,childTokens:t.childTokens??null,start:Xc(t.start),tokenizer:Xc(t.tokenizer),renderer:Xc(t.renderer)}})??null,hooks:e.hooks?Yc(e.hooks):null,renderer:e.renderer?Yc(e.renderer):null,tokenizer:e.tokenizer?Yc(e.tokenizer):null,walkTokens:Xc(e.walkTokens)})),tl=(e,t)=>{let n=Qc(t),r=t.length>0?el(t):void 0;return{...yc,...n,...e,...r?{_svelteMarkdownExtensionCacheSignature:r}:{}}},nl=class e extends Error{constructor(t){super(t),this.name=`CacheConfigError`,Object.setPrototypeOf(this,e.prototype)}},rl=Symbol(`CACHED_UNDEFINED`),il=Symbol(`CACHED_NULL`),al=class{constructor(e={}){this.cache=new Map,this.inFlight=new Map,this.totalWeight=0,this.stats={hits:0,misses:0,evictions:0,expirations:0},this.expirationQueue=[],this.compactionScheduled=!1;let t=e.maxSize??100,n=e.maxWeight??0,r=e.ttl??3e5;if(t<0)throw new nl(`maxSize must be a non-negative number`);if(r<0)throw new nl(`ttl must be a non-negative number`);if(n<0||Number.isNaN(n))throw new nl(`maxWeight must be a non-negative number`);if(n>0&&!e.sizeCalculation)throw new nl(`sizeCalculation is required when maxWeight is greater than 0`);this.maxSize=t,this.maxWeight=n,this.sizeCalculation=e.sizeCalculation,this.ttl=r,this.hooks=e.hooks??{}}callHook(e,t){if(e)try{e(t)}catch{}}unwrapValue(e){if(e!==rl)return e===il?null:e}removeEntry(e){let t=this.cache.get(e);if(t&&this.cache.delete(e))return this.totalWeight-=t.weight,this.cache.size===0&&(this.totalWeight=0),t}evictEntry(e){let t=this.removeEntry(e);return t?(this.stats.evictions++,this.callHook(this.hooks.onEvict,{key:e,value:this.unwrapValue(t.value)}),!0):!1}exceedsCapacity(e,t){let n=this.cache.size+ +(t===void 0),r=this.totalWeight-(t??0)+e;return this.maxSize>0&&n>this.maxSize||this.maxWeight>0&&r>this.maxWeight}read(e,t,n){let r=this.cache.get(e);if(!r)return n&&(this.stats.misses++,this.callHook(this.hooks.onMiss,{key:e,reason:`not_found`})),{found:!1,reason:`not_found`};if(this.ttl>0&&Date.now()-r.timestamp>this.ttl){let i=this.unwrapValue(r.value);return this.removeEntry(e),this.stats.expirations++,this.callHook(this.hooks.onExpire,{key:e,value:i,source:t}),n&&(this.stats.misses++,this.callHook(this.hooks.onMiss,{key:e,reason:`expired`})),{found:!1,reason:`expired`}}n&&(this.cache.delete(e),this.cache.set(e,r),this.stats.hits++);let i=this.unwrapValue(r.value);return n&&this.callHook(this.hooks.onHit,{key:e,value:i}),{found:!0,value:i}}get(e){let t=this.read(e,`get`,!0);return t.found?t.value:void 0}async getOrSet(e,t){let n=this.inFlight.get(e);if(n)return n;let r=this.read(e,`get`,!0);if(r.found)return r.value;let i=(async()=>{try{let n=await t();return this.set(e,n),n}finally{this.inFlight.delete(e)}})();return this.inFlight.set(e,i),i}has(e){return this.read(e,`has`,!1).found}set(e,t){let n=0;if(this.maxWeight>0&&(n=this.sizeCalculation(t,e),!Number.isFinite(n)||n<0))throw RangeError(`sizeCalculation must return a finite, non-negative number`);let r=this.cache.get(e);if(this.maxWeight>0&&n>this.maxWeight){r&&this.evictEntry(e);return}this.exceedsCapacity(n,r?.weight)&&this.prune();let i=this.cache.get(e);for(;this.exceedsCapacity(n,i?.weight);){let t;for(let n of this.cache.keys())if(n!==e){t=n;break}if(t===void 0||!this.evictEntry(t))break;i=this.cache.get(e)}let a=i!==void 0;a&&this.removeEntry(e);let o;o=t===void 0?rl:t===null?il:t;let s=Date.now();if(this.cache.set(e,{value:o,timestamp:s,weight:n}),this.totalWeight+=n,this.ttl>0){let t=this.expirationQueue,n=t[t.length-1];n?.key===e?n.timestamp=s:t.push({key:e,timestamp:s})}this.callHook(this.hooks.onSet,{key:e,value:t,isUpdate:a})}delete(e){let t=this.removeEntry(e);if(t){let n=this.unwrapValue(t.value);this.callHook(this.hooks.onDelete,{key:e,value:n,source:`delete`})}return t!==void 0}async deleteAsync(e){let t=this.removeEntry(e);if(t){let n=this.unwrapValue(t.value);this.callHook(this.hooks.onDelete,{key:e,value:n,source:`deleteAsync`})}return Promise.resolve(t!==void 0)}clear(){for(let[e,t]of this.cache.entries()){let n=this.unwrapValue(t.value);this.removeEntry(e),this.callHook(this.hooks.onDelete,{key:e,value:n,source:`clear`})}this.expirationQueue=[],this.compactionScheduled=!1}deleteByPrefix(e){let t=0;for(let[n,r]of this.cache.entries())if(n.startsWith(e)){let e=this.unwrapValue(r.value);this.removeEntry(n),this.callHook(this.hooks.onDelete,{key:n,value:e,source:`deleteByPrefix`}),t++}return t}deleteByMagicString(e){let t=0,n=e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`),r=RegExp(`^${n}$`);for(let[e,n]of this.cache.entries())if(r.test(e)){let r=this.unwrapValue(n.value);this.removeEntry(e),this.callHook(this.hooks.onDelete,{key:e,value:r,source:`deleteByMagicString`}),t++}return t}size(){return this.prune(),this.cache.size}keys(){return this.prune(),Array.from(this.cache.keys())}values(){this.prune();let e=[];for(let t of this.cache.values())t.value===rl?e.push(void 0):t.value===il?e.push(null):e.push(t.value);return e}entries(){this.prune();let e=[];for(let[t,n]of this.cache.entries()){let r;r=n.value===rl?void 0:n.value===il?null:n.value,e.push([t,r])}return e}getStats(){return this.prune(),{hits:this.stats.hits,misses:this.stats.misses,evictions:this.stats.evictions,expirations:this.stats.expirations,size:this.cache.size,weight:this.totalWeight}}resetStats(){this.stats.hits=0,this.stats.misses=0,this.stats.evictions=0,this.stats.expirations=0}prune(){if(this.ttl<=0)return 0;let e=0,t=Date.now(),n=this.expirationQueue,r=0;for(;r<n.length&&t-n[r].timestamp>this.ttl;){let{key:t,timestamp:i}=n[r];r++;let a=this.cache.get(t);if(a&&a.timestamp===i){let n=this.unwrapValue(a.value);this.removeEntry(t),this.stats.expirations++,this.callHook(this.hooks.onExpire,{key:t,value:n,source:`prune`}),e++}}return r>0&&n.splice(0,r),!this.compactionScheduled&&this.expirationQueue.length>2*this.cache.size&&(this.compactionScheduled=!0,queueMicrotask(()=>{this.compactionScheduled=!1,this.expirationQueue=this.expirationQueue.filter(e=>{let t=this.cache.get(e.key);return t!==void 0&&t.timestamp===e.timestamp})})),e}},ol=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return(t>>>0).toString(36)},sl=new WeakMap,cl=(e,t)=>{let n=ol(e),r=sl.get(t);if(!r){let e=new WeakSet;r=ol(JSON.stringify(t,(t,n)=>{if(typeof n==`function`)return n.name||n.toString();if(n&&typeof n==`object`){if(e.has(n))return`[Circular]`;e.add(n)}return n})),sl.set(t,r)}return`${n}:${r}`},ll=new class extends al{constructor(e){super({maxSize:50,ttl:3e5,...e})}getTokens(e,t){let n=cl(e,t),r=this.get(n);if(r!==void 0&&r.source===e)return r.tokens}setTokens(e,t,n){let r=cl(e,t);this.set(r,{source:e,tokens:n})}hasTokens(e,t){return this.getTokens(e,t)!==void 0}deleteTokens(e,t){let n=cl(e,t);return this.delete(n)}clearAllTokens(){this.clear()}},ul=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function dl(e){return e===0||e>=55296&&e<=57343||e>1114111}function fl(e){return dl(e)?65533:e>=128&&e<=159&&ul[e-128]||e}function pl(e){return dl(e)?65533:e}var ml=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function hl(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=ml[e.charCodeAt(c++)];return t<a?t:t*91-s+ml[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=ml[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=ml[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=ml[e.charCodeAt(c++)];r+=89+(t<90?t*91+ml[e.charCodeAt(c++)]:ml[e.charCodeAt(c++)]*8281+ml[e.charCodeAt(c++)]*91+ml[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),C=0;for(;c<o;){let t=ml[e.charCodeAt(c++)];t>=a&&(t=t*91-s+ml[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)S[C++]=b[e++]}else S[C++]=n}return S}var gl=hl("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#<B%##%%'%+~#;#@%}#&%#&&%#(~#H1}'%'##&&~#?A}&'~#D#%32}'&&&&~#[}'(#%}'~#;C})&}%%#%~#=&%,3}%'(#%%~#^'#&&)#%'~#Y%-~#d-%'~#^%%&#&&&}#~#b~2t*&'~&(~&@~0%~e~3}%*''0})&}+~!9##-}#%-hD*)1fC#%/&/fB#40~!+#)*4~!+~!K'&:~!/*7~!.#~!H~!L':~%x&~!H#~!*~%1~!I#~!+A~#p'~!F~~#-#~,,(~.Z~!V~%;'B'mq-W~!N~%I%#&&#&}#%},%%}'%}+X#%}#&}(%}'%}<%}#%}%%'}'%}:~![)9@~%>~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37</31&83##&0#),H(?'&?/1##%#&&#%''-%&&&#(&''&#.-'%#%%(,')*'&#&#'##%(%(#%('#&##%%%%('%#%#%%#%#&%##h>w+v<ayvyvcg.uuhKr}g/v|g>u9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a0<or[yc3Dtq>6Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.<rAJwLZtT~?r@dZa%!a.&^*Za(/Reu[ya>6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:9<B@bX~3jVv&v@s@5Re[d/rQt{uAvo&a&a*)a2!,0Wf!3Dt0=Bs'>6Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh<vu5Rgq<=C::9bb~#dZ#T&Ta6Y.X*Dt>[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s<DtDJvyZqY5aws3Jvy!&Wei~Hr1:au5@Bag>23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay<a]C;b`}Vd6s/t{uAvoaxa()!a,a7%-a#a2Dt,[yF2Wo[>6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=<qnJvh_[xhg3v,Rh3kOwOw-sDuev/Re^dha[a%!%!a+#Ta7)-5TaCaO!aka!a)sf[yb2>Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2<E}5xIo9a*X#Y(;5RePJvD_g>vyRgNj8w)v8<wggs:RgXiZt|vjx,hSq3ah!-(~@:Ro/Ou!5RhWj^v(pyw8unRhUdx-UY#^Ua.a3a70!)%UX1TaDa)'omRiRRhE[y:3Dsz=Br,>6Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|i<ARk<c:Z(6Vy}Juh'!wziMRoS:F|vkLuauJv5vtvQRh1d='T+Y#VyO~DR|jcF#T'7R|g97R|kJv3'!ay<Rj,Jvh&!:ReXcsa6*a+#a#_aIRf9aLRf?c,Z&Rf5Rf7c.Z&Rf;Rf>cQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf<d~'Ua%U*^UYa(!a,-!#a4YaTalaEX0a8a<Weo3Dt/3Dsx=Br93Wen~Dr;~<5p<JwNZt2@3p=Pw:5p;Ou!5r3c7&!#:p>3Ds}KvGB)_6Vyk2sM=<r7x'eovA(!hFu1ARf}cV#X&@r5j6rvwQa^Rf3c=Za'wkghJv__g;unRggA53B9=b^}%j6uduo5Jq;!(hIv%2Re`Ou4ARe_e%a#^^^Xa&!a*a2!&a6YaP!*ad!#a:aE/5Rn?[y@>6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<<sSjJpqvewOJq/(!hNw'5ReBk0s2u3w/w'5ReE5@Jq.!a+JQ!&WeU23d(#Y&RjG5]jBk!u7w&u0udARjEe#+^^^Ub#!a2/a`Z(agT1!a-a;|@TaG!aS[yV=Re~fow'RguNuPRe?bz#'>RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=<r#ijuuv/sIKuYD'ZtG@3p9~Gr&d2#`(g<vtRgFj`u5w&rqpxRf2CJuY!+:wfnTOu!5Rg}jNs1ucv&RfwJvA!&3@q|BDcC#T,k/unq8w8Q5RkTklwQuzunq8w8Q5Rk9dga#!a'!a=#a0!:+Tb*b@aO.a4!aba8aFJv^}?!VyR~Dr<g;u%Rn.~<5p[x'e`wNZtR@3p]Pw:5pZhNvjBp.woe_g5u-r4JwF!%DtO3:ooc7&!#:p^3DtpLuGw(!+%)Dtk6Vz#2sd=<r8d'#Y([y#<x3gJt`w@!)%}MRiowzikRij=]ilxAf3,U(#B2Rf#g0v-Rm[ck{`U#]giKv3>)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9<E|u2@H|rx3gJu?w'!+'1Nu7Reg4=H~+9<wxgY95Rm]xLggZ-`(X}U2:Ri4h<uOawRmsJv__5@bb{jbV~3dka#a'a]!,#a+U=a>b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=<qoJvA!{~Jup!%@qk7Rn/KvyD!}''[xz;>wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;Rm<Rm=Rm>Rm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta<aKbD!2wphBRnk[yPw}hE|.=Br-3Dtm>6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2<H|*xHn]#-UX'3Ro)z=iT}6ARns=Bwsn_wpnaRncw]aR(#UXa&Ua*a/=]iPd'#Y&Ro'WnXf{QRm2hNvj]nZd`'T~&1`{|`#9b]{}c:'!#Wl{>@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQ<s7Nu;padH#X'`+WmJ@>RmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe<E|IJva!&WmNg8vsRmLd`*.`#Y'Xa!axRn*]hrA8Rhug5s@rXg8u!RmMd8#X'X*3@rV72smdI*#UY&RmICARho~GsgxVgd)Ta'U-Y&Xa!T#RnEWnA@Wffg1uDRi0hFvK5RnBxGnG&#`%owp)@wsf+bX}Ze-*1!a*^^^Ua|!#a.aq&Ya2!a>.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.<Ju(!&SoG}6Shd}6<Ju(!&SoH}6She}6Kur@._g5vHRieJvx!{L2G{Kx6gd'T#?Rh82Wi5cZ#X(g1w)Rm5dW-Y(Ta#!a)!#aYa=wnfE=su2>>bU{0j9udv:<svj8uQv-7RgHdE%#^'sq9sp=>Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_g<v~Rm#JvG'!6Vz0=<r{Ju{%!:pj@WfsiXuJu3Rm:JvZ&!WfA~Bph@c4Z&Dtwax5rubx(#:awRk1@d,#Y&RfjRfid1#,Y(@Wfp2Wlrg5s@ryKu[@!,'=]ig9wlk?Rk>g5u-rqJvy'!@9RkQcH(T#=>Ri~@<wkj(Wj(KuZB*!&<7rw@9RkRcH(T#=>Ri}@<wkj)Wj)dg(Ta2Xa9X#`-!a*CARhg@@=I}d9x;c~#X%so=<sj>2@@=aybb}XjWv0Q~EfEj3vLv;<d,#Y(56H}`978H}_dgaPaFa'a/!#a3Y0a_a;a|!1(a7-[yE3[xt;:pJNvZrrg3uJrvJwNZt=@3pIh=rt3rxPw:5pGOu!5rpJvG'!6Vys=<rz@c4Z&Dt(ax5rtJvZ!&~BpH@wsfNg-vaRlNci*U#=<wei<F}a5@Jq.!a*JQ!%@qZ23d(#Y&RjH5]jCk!u7w&u0udARjFd/prq=tyvpaEa(a:.!a1aZ(@@=I}:9wpd%=<sX55w_h}@@=I{t=ay<aU@@=I}T=ay<2@@=I})?C9:9au@9Cb]}DP~=x-fAZ(2Wl1=ay<aU@@=I}>5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}<BqP=4qS9:ReMg/ujReNJw0!/<Jui%!bd{kawwnemRelAxUa?a3#*.&UX(Ya+a/RhvRnQ<o}9Wmtd-#Y&RgSRmw9;Rmxay=Rmyg-vaRmuxEhSrNu,v-voC!%(aR.a(a7+1Ro1>Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=<r%JrM_=]h2@Wlud'#)U'Wf'b]{i=]h/Jvh!&~BpWg=v]RnMx+ny#'Nu;pVwjnu=]nwxJnx,T#`&Reqwjnt=]nvieu9vrRjLLuYwP(#+!th@wih5pX~Gr'g5v/Rh4KunA'!-CARnP@wwiN:Rm_9x'cvw>!|l=<saKvAA!0&3@q}>w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5<B92:E{ZLvhwA(a;a%!igQuyRmad+#Y}m@3Rh5d8#X'X*:AqUAHzmaxwbh<aXRnVcF}RT#Nw&cj#U(BWnug/vsRntdka)(a3+.Zb7aYYan1!bVa@Xa}[y^@b[{G=H{+hFu73Rj&Pv#5ReQcK%T#sig1v{Rj'Ku+D#'!t]~Grm~?rkKuMB!01d5#`'Vy.ta3Dtu~Hroc8#'{^45s85AwZbP&!#Rn!wghxWn#KvEA!)&2RlA2RlBx:h|#(T,=]j09Wobz>x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@<plJvf!%b`{(9;Rgwc;.!#2x7cw#T|UDb]|T5Ju={(!=@E{&Jv)&!Ab`{'awJvf!~*>>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8<RhmkMu9vrsBuev/RhlCJvB!,g<v{wchh~@:Rhji[vrv{wchi~@:RhkdS&a5UY#Ta!RgPwwiI5BwciI~@:Rh`x'iJvj'!5]iJPu8Bwch]~@:Rhach)U#h3rp]gLh@t|Ax,hTq3ah!-(~@:Ro0Ou!5RhXj^v(pyw8unRhVd|)`,^UYas!a?/a2Z'a^Ta{Tb7Ta(a#!a,Wf&9sZ3DtAadamov=Bqt3[xig8vsRm~>waiL2b`{QJv*_Ouv2qgj<v]v2BqfdR'X*X#Y-@3qr~Gqv~?p6hHv-]glPup5Lq+q?_%*b_{qF{n9b^{rOu4ARhpKvCD!+&~Bqp:5Dbb}nwoiKl&unuTuBv]v+ueunaXRf0=Jvh!0nKufu8v1w&w7q%w&uHrz:Rgnj5w,uxDJq/(!hNw'5ReCk0s2u3w/w'5ReFd>Za&!*UaA=<wkgsRnSJv^!%Refifw3vyRgOKu_B'!,<]gkiiu:w&Rh<=C@a^<B57@2F{[<B5@aW:=3away9A5aW=<B=C@a^<B57@2F{Ie-#`(^^^bCara.b8aza6!/bZ,!adTbnTbOb+aFaS!aAT9@Wf~2Wli3Dtl2@d,#Y&RfnRfmJwJZtN~GqyJva&!VyMg<v~Rm%iXuJu3Rm9Jv[_=]ih9wlkDRkCd1#`(@Wg>2Wls3cH#T(@<Rj*=>Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@<Rj+=>Ri{cNu+vlax-!(#a0qa9<Rii2;;bU{H;x<i=&X#Rk`<4wwi=C9H~8xAI(Y#<azRi@45wXI<B9;5bb~7dL(X#Xa(+!aL6Vy{g5QqOau:5au2@ay547EzbxOcU(UX-T#Ta#:Cbb|A?wjh/b_|SOw6ARgtihr}u7Rhy<d1#T)X1@@=I|~=ay<2@@=aybb}Sj3vLv;<d,#Y(56H}A978H}@dGpvs@uAu`vcw9*!aFa+ai%(b!aXa8.a?a[ozWey=sU2@G}Nch&U#Rf_WexKu+D#'!t:~Gr`~?r^j]uNr|~FRg*j^psurwJt|RmcKv)@&!)7Rkv~Br[@wxfO:Rl3co#U'6Rezj_q#vIuavjRltwzeyh@vr5JqD0!>aY?C9:9au@9Cb]}9cl#U*5;5<H||jbuus1ucv&Rfvg1v~d/pppzqFr^a--a~!aMat1(hFv;Wiz@@=Izoj5uuv-7Rix~Cw`fk2WlVcZ#X,k)u3vWs@u2]ktg;wEx'fBq(_2Wg/jTv|vV~EfoJv]!15x'hzqG!(P~EfU~CRl_j6v(us5x4i-#T(2WmZ?C2F|d>Kq<aj1!*jTqIsBv=Wl`~Cw`fi2WlWj`v0u*~>RlR=c>Z,k#u3vWs@u2]kr<c1Z+jTqIsBv=Wla~Cw`fm2WlXdmb3!a{(arZa`bkTa%TbQTa-a9+c'!aM!/[yL=Bqug.w'RifhFvyDRj.g>vgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9<H|yd'%_X#skDtb3awwqkgNulRkgdB#^',9:p'hJwSaxRmEBwVb8@4=H|qLu+w50&!)@3qs~?pU>Awwn;;Rn=c:Z'ARn<=<qwKvC@!/&~BqqJv6!&]eVb^z^xRge'/a%+^`#Sge}6<4Rn3=]n0Pw2>Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=<wkaNw~h3z_c5Z{=wjh#=]nLKv^D!&)Vyz=bW|swYb<WetcG#T(2wxa@qVx@gD#Y&b^|V5JwG&!5bb|pg/w&RgD@x=kHs=uAvn!a%%/'+RmSRh694Ro`g-vaRmRhHv-]mlxCcS#`&ba~.5cD#Ta)P~=d,#Y(56H{>978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(Xa<!aiX#(55RiG54RiHcI#T'WiU3RiVNvdwtfcRlKNvdd,#Y&RlHRlExQgf.1*^T'X#Sgf}6Wn4=]hfPrk>Rn7Jw0!&>Rn5>Rn9Lunw?&a2!,5<oq@@wqfdRlJj5Q~=d,#Y(~ARfcOuN]fdDKw;ay(}i!547E}j?cI#T(@5bV}iCbV}hdv(^^Tb?a40,b##Tbo!a*bR!a<b|a/!aKai!aU[yK=]o^g:v>ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Sh<eeJw;!&axEzOg,Qosc!#*:wkeJ]eJ>x'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUg<s2Rkod]+UY0TZ'!a&A9sw<=bczLNvuw{gqzNhJwSaxRmCKuLay!#&s_Rf-55b^{uJvZa!!c%#(55Ri654wmiu5RiuawLu,vp!+}^%b_}Y9;wkgxba}o>A9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8u<uJ5RmbjQrquJu3x,k>uq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;<!aJaYai'anasb(=azRmV:Cbb{MLq2vb!%')RjuRjrRjtRjqx3jnqCw3!%')Rk(Rk+Rk&Rk)Lq2vb!%')Rj{RjxRjzRjwLq2vb!%')RjsRjpRjfRjex3jcqCw3!%')Rk'Rk*RjkRjl9<CbbzfOu4ARhxLq2vb!%')RjyRjvRjhRjgx=joq*uKvb!%')+-Rk.Rk%Rj~Rk-Rk#Rj}x=jdq*uKvb!%')+-Rk,Rk!Rj|RjmRjjRjidAq&qKs@uAv8Aa.'*-a@a&0!aM@a5[y73Dsy3Ds|3Dt):wxgI2sHJwJZt.~Gqxwsf0ikrzt}Rl0Jvy_[xj~HqzKv_A|D!&WfP8axRoVcf,U#k(v]v+ueunaXRf1Ju}'!g8u#Ri=jQw!sCunLprq>!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{N<capoq2r[a&!aPa9,'Pw;5s:@@=I|,55w_h|@@=IzcP~=x'fCqB_2Wl2>aU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#<bI}l5@B932:aV2G{BOuNBJq:|M!5Ezt=<B=C@a^<B57@2F{v>cB{/T#=ay<bI{3Jv6!a.6BKq0ah&+!5E}HP~Ef{978BaU@@=Iza<7d#.Y#978BaU@@=IzH~AJq0!(@@=IzG978BaU@@=IzFe,aU*Y&^^^bvJb,b:bFad!a,c2Ta>aL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[g<v~Rm!==G|>JvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+<E|&2@H|%dE#(^,g;u.RiEg6vjRiC9xCkA{O|zY#g=ucRmXKs0@!&*@G|m@awRknJuh!,3d(}gY}eJvj!%Rm):Jw3!%Rm+Rm-Ls0w(&!a(a#@b[|6cZ#X'7RkxWgAOu4ARn'dH'U#Y*Vz-Wm'CARm}d]*#a%^a*T'aK!a<9bV{PC=p*Jw4!&SgxcbB5r]idw(wBRmF7xFkt#&`(Rm/Rm8E|!JuY_9:Rl5=wrgr2:bbxd@xXfB(a*#T+!.X0X1Ta/a'T&RlDRfL>RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`a<XaKYa1,a'P~=wxfB2bZ}}?C972@@=I}r8@55B9;5bb}G978B2@@=aybb}3j3vLv;<Jw3&!>Rfk=ayb^}4~Ad1#`*@@=aybb{w2@>==<bbz]dx+UY#^UaF!a9!bB'Ya1.!ajXa#%olRhD[y=3Dt#Ov5BrHKuMB%!(Rf^Wep~HrJwkiQjKr|~FRg)Ku+D#'!t5~GrF~?rDdV)UY,Z/_7RkuG{<~BrBg,rlsO:235B@bX}|d?a1!#`(6Vyn5@d##Y+jTv|vV~EfIj]uNpn~FRfH7Lq2vb1!a9-978BaU@@=Iz9978BbU}#~AJq0!(@@=Iz8978BaU@@=Iz7~AJQ|}!978BbU}!JvkaK!AdUa21-U#`a+(g/vsRn~Ou!5RPj:rmu9WhOjXuvvNr}:RhAj^v(pyw8unRn[kPr}p|u7vwv]RiSBd;pppzq@qHQa?(b.!a.a`@.|xa(hFv;Wiyj5uuv-7Riw~Cw`fg2WlU978BbU|wOuNBJqG!(P~EfD~CRlQcZ#X,k)u3vWs@u2]ksg;wEx'f@q1_2Wg.j]uNpn~FRfqJv]!15x'h{qG!(@@=IzK~CRl^j6v(us5x4i,#T(2WmY?C2F{1>Kq<aj1!*jTqIsBv=Wld~Cw`fj2Wl[j`v0u*~>RlT=c>Z,k#u3vWs@u2]kq<c1Z+jTqIsBv=Wle~Cw`fn2Wl]dn1#c(a(b^a2!b/bAT(bj!aDa7bu,a_a{c0!2T0g:v>ReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJ<!+'@Wg(g?QRlC@Jv`!%b[zIwsfII}8JQ_@w|kW|=Jv(%!AqcOuNBJvEzh!bYzjLs@wP#(0!oy@>RkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}w<zizixNgwa#Z'U+!/!a'!a+w~g~z6wcn{Rn}wcnzRn|5Rh%=]nJg5vuRmvNvdRlvcprJu}w*az*a#!%.a.'Bot9qT]kj@Wg'ay2Gzv@Jv`!%b[zEwsfHI}1;ck#Ux`<Cbbx_Lu+w!a&0*!wko*wwo,So,}6Juqxf!E}PigQuyRm`d3(`#8>Rn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=<riifuaw&RmoKrNA!%(Ro4>Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']o<CauRoRAd-#Y':RkpauRoQKu]C.!&;RoFJvB!%RoNRoPBx'h]v+_?w~ha}t5?w~he}ue!/UbhYacXaW^Tc&a;b:a-c/#b&aja1(!cL+!bKbt!bmcRc9aIc?8[yW3Dtt94Rg`Jv}!&SiRMzBhEebShEMNuPRe>x7gL#TzuwjirRipc<Z&>on;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJ<!+'@Wg%g/QRl@@Jv`!&awRl<wsfFIzgLu(w*!.*&ShBMwvhIRhI9;RhNx1hK'!#Sn]Mx1hK~0!#:2<H~7cNu+w7D*'1ZtW>Rn1~?rOc:Z&Rn2=<rQ<7wjh&=BSnLMc]#X(6Vz)w[b=a!U#9wzgMc3#&(RgMRitRis<x,gKt`ax!&+SioM=BSilMc3#&(RgKRinRimKurB,!&SiQMzBhDebShDM6BJQ!(P~Efx978B2@@=I}WLrJw!!,a*&@G}O@9wkibRid@@x'fKwC!&SlDMSfLMjUv~Q~EfKKv3@a+!(hFv-]mpx/hYZ(C5RiWz<o/MwkhY?So/M@x,gbvfB*&!SgEM:SoeeehFu3:Rgbda(,^TZa)X/7Sg[eb:2RgI~BrMC@wgkc:wwkcRerx3h(uUvK!&*,SnOM4Sh*MArRg;wHRh(x=h;rJvPwI!a4',a'0@Wg&=BSh/Mg>w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^<Rm^Jvv_@Wl(g;u1Si/ebKu'B&!*Sh?eb@Wl'z@aPeb95Si.ebcpputyvjB)!,&a+0a%ShAMWeK@G}C@WfJ9;RhMwvhH9w{ia}ix,hJvRA1(!zAn[MRhHx1hJ~*!#hFv(BSn[MBJQ!(@@=I~'978B2@@=I}2db.Ua<'X}+T#a0XaG2G}E;wkg|wuh!Rh!x,hZu,@)!&So0MVy)C5RiXACJvB!&5RiY5RiZg8w)cG}*T#2@bU}=KsA>(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUg<v~Rl~==G|<Jv+'!aYShC}6@B<5?ba~8@Jw3'!g2QRljhLrpWlOd+#Y'g.w'rIg>w*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2<H{mx3n[t{vl!,&a%3Ro(z=iS}6ARnr=Bwsn^wvn`Rnbd`*T}B0!#^X'BG{c9b]{a>>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}<j3vLv;<Jw3&!>Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==<bbzl?C972@@=Ix^d6rSu,v7w*C(0a)a6#B+a%!sQ[y?3Dt%3[xn~<5rLOu!5p@Ku+D#'!t7~GrP~?rNKvlaya7'!h+v-5qMg=t|cd,U#5AAaa5Abb{S@52B5@a[@52B5Gx[iXueu;d<#`a(!/549C;ag>23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!b<bwA!#5@B932:aV2G|:d-)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61),_l=new Uint16Array([512,26465,29036,7,0,2,4,116,24638,116,24636,8693,29807,24610,621,1,0,0,3,112,24614,111,115,24615]),vl;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(vl||={});var yl;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(yl||={});var bl=32;function xl(e){return e-yl.ZERO>>>0<=9}function Sl(e){return(e|bl)-yl.LOWER_A>>>0<=5}function Cl(e){return(e|bl)-yl.LOWER_A>>>0<=25}function wl(e){return e===yl.EQUALS||Cl(e)||xl(e)}var Tl;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Tl||={});var El;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(El||={});var Dl=class{decodeTree;emitCodePoint;errors;state=Tl.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=El.Strict;runConsumed=0;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}startEntity(e){this.decodeMode=e,this.state=Tl.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case Tl.EntityStart:return e.charCodeAt(t)===yl.NUM?(this.state=Tl.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Tl.NamedEntity,this.stateNamedEntity(e,t));case Tl.NumericStart:return this.stateNumericStart(e,t);case Tl.NumericDecimal:return this.stateNumericDecimal(e,t);case Tl.NumericHex:return this.stateNumericHex(e,t);default:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|bl)===yl.LOWER_X?(this.state=Tl.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Tl.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t);if(xl(n)||Sl(n)){let e=n<=yl.NINE?n-yl.ZERO:(n|bl)-yl.LOWER_A+10;r=r*16+e,i+=1,t+=1}else return this.result=r,this.consumed=i,this.emitNumericEntity(n,3)}return this.result=r,this.consumed=i,-1}stateNumericDecimal(e,t){let n=e.length,{result:r}=this,{consumed:i}=this;for(;t<n;){let n=e.charCodeAt(t)-yl.ZERO;if(n>>>0>9)return this.result=r,this.consumed=i,this.emitNumericEntity(n+yl.ZERO,2);r=r*10+n,i+=1,t+=1}return this.result=r,this.consumed=i,-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===yl.SEMI)this.consumed+=1;else if(this.decodeMode===El.Strict)return 0;return this.emitCodePoint((this.decodeTree===_l?pl:fl)(this.result),this.consumed),this.errors&&(e!==yl.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}flushAndEmitLegacyOrReject(e,t,n,r){return this.consumed=e,this.excess=t,this.result===0||this.decodeMode===El.Attribute&&(r===0||t>1||wl(n))?0:this.emitNotTerminatedNamedEntity()}stateNamedEntity(e,t){let{decodeTree:n}=this,r=e.length,i=this.decodeMode===El.Strict,{treeIndex:a}=this,{excess:o}=this,{consumed:s}=this,c=n[a];for(;t<r;){for(;(c&(vl.VALUE_LENGTH|vl.FLAG13))===0&&(c&vl.JUMP_TABLE)!==0;){let i=e.charCodeAt(t),l=c&vl.JUMP_TABLE,u=(c&vl.BRANCH_LENGTH)>>7;if(u===0){if(i!==l)return this.flushAndEmitLegacyOrReject(s,o,i,0);a+=1}else{let e=i-l;if(e>>>0>=u)return this.flushAndEmitLegacyOrReject(s,o,i,0);let t=n[a+1+e];if(t===0)return this.flushAndEmitLegacyOrReject(s,o,i,0);a=a+u+t&65535}if(c=n[a],t+=1,o+=1,t>=r)break}if(t>=r)break;if((c&(vl.VALUE_LENGTH|vl.FLAG13))===vl.FLAG13){let i=(c&vl.BRANCH_LENGTH)>>7,{runConsumed:l}=this;if(l===0){let n=e.charCodeAt(t);if(n!==(c&vl.JUMP_TABLE))return this.flushAndEmitLegacyOrReject(s,o,n,0);t+=1,o+=1,l=1}for(;l<i;){if(t>=r)return this.treeIndex=a,this.excess=o,this.consumed=s,this.runConsumed=l,-1;let i=l-1,c=n[a+1+(i>>1)]>>((i&1)<<3)&255,u=e.charCodeAt(t);if(u!==c)return this.runConsumed=0,this.flushAndEmitLegacyOrReject(s,o,u,0);t+=1,o+=1,l+=1}this.runConsumed=0,a+=1+(i>>1),c=n[a];continue}let l=c>>>14,u=e.charCodeAt(t);if(l!==0){if(!i&&(c&vl.FLAG13)===0&&(this.result=a,s+=o-1,o=1),u===yl.SEMI)return this.emitNamedEntityData(a,l,s+o);if(l===1)return this.flushAndEmitLegacyOrReject(s,o,u,l)}let d=Ol(n,c,a+(l||1),u);if(d<0)return this.flushAndEmitLegacyOrReject(s,o,u,l);a=d,c=n[a],t+=1,o+=1}return!i&&c>>>14&&(c&vl.FLAG13)===0&&(this.result=a,s+=o-1,o=1),this.treeIndex=a,this.excess=o,this.consumed=s,-1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,n=t[e]>>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&vl.VALUE_MASK:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case Tl.NamedEntity:return this.result!==0&&(this.decodeMode!==El.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Tl.NumericDecimal:return this.emitNumericEntity(0,2);case Tl.NumericHex:return this.emitNumericEntity(0,3);case Tl.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;default:return 0}}};function Ol(e,t,n,r){let i=(t&vl.BRANCH_LENGTH)>>7,a=t&vl.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}var L;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(L||={});var R;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.DeclarationSequence=20]=`DeclarationSequence`,e[e.InSpecialComment=21]=`InSpecialComment`,e[e.InCommentLike=22]=`InCommentLike`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.InPlainText=25]=`InPlainText`,e[e.InEntity=26]=`InEntity`})(R||={});function kl(e){return e===L.Space||e===L.NewLine||e===L.Tab||e===L.FormFeed||e===L.CarriageReturn}function Al(e){return e===L.Slash||e===L.Gt||kl(e)}function jl(e){return e>=L.LowerA&&e<=L.LowerZ||e>=L.UpperA&&e<=L.UpperZ}var Ml;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(Ml||={});var Nl={Empty:new Uint8Array,Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},Pl=new Map([[Nl.IframeEnd[2],Nl.IframeEnd],[Nl.NoembedEnd[2],Nl.NoembedEnd],[Nl.Plaintext[2],Nl.Plaintext],[Nl.ScriptEnd[2],Nl.ScriptEnd],[Nl.TitleEnd[2],Nl.TitleEnd],[Nl.XmpEnd[2],Nl.XmpEnd]]),Fl=class{cbs;state=R.Text;buffer=``;sectionStart=0;index=0;entityStart=0;baseState=R.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:e=!1,decodeEntities:t=!0,recognizeSelfClosing:n=e},r){this.cbs=r,this.xmlMode=e,this.decodeEntities=t,this.recognizeSelfClosing=n,this.entityDecoder=new Dl(e?_l:gl,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=R.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=R.Text,this.isSpecial=!1,this.currentSequence=Nl.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===L.Lt||!this.decodeEntities&&this.fastForwardTo(L.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=R.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===L.Amp&&this.startEntity()}currentSequence=Nl.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===Nl.Plaintext?(this.currentSequence=Nl.Empty,this.state=R.InPlainText):this.isSpecial?(this.state=R.InSpecialTag,this.sequenceIndex=0):this.state=R.Text}stateSpecialStartSequence(e){let t=e|32;if(this.sequenceIndex<this.currentSequence.length){if(t===this.currentSequence[this.sequenceIndex]){this.sequenceIndex++;return}if(this.sequenceIndex===3){if(this.currentSequence===Nl.ScriptEnd&&t===Nl.StyleEnd[3]){this.currentSequence=Nl.StyleEnd,this.sequenceIndex=4;return}if(this.currentSequence===Nl.TitleEnd&&t===Nl.TextareaEnd[3]){this.currentSequence=Nl.TextareaEnd,this.sequenceIndex=4;return}}else if(this.sequenceIndex===4&&this.currentSequence===Nl.NoembedEnd&&t===Nl.NoframesEnd[4]){this.currentSequence=Nl.NoframesEnd,this.sequenceIndex=5;return}}else if(Al(e)){this.sequenceIndex=0,this.state=R.InTagName,this.stateInTagName(e);return}this.isSpecial=!1,this.currentSequence=Nl.Empty,this.sequenceIndex=0,this.state=R.InTagName,this.stateInTagName(e)}stateCDATASequence(e){e===Nl.Cdata[this.sequenceIndex]?++this.sequenceIndex===Nl.Cdata.length&&(this.state=R.InCommentLike,this.currentSequence=Nl.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=R.InDeclaration,this.stateInDeclaration(e)):(this.state=R.InSpecialComment,this.stateInSpecialComment(e)))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(e){this.cbs.oncomment(this.sectionStart,this.index,e),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=R.Text}stateInCommentLike(e){!this.xmlMode&&this.currentSequence===Nl.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&e===L.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===Nl.CommentEnd&&this.sequenceIndex===2&&e===L.Gt?this.emitComment(2):this.currentSequence===Nl.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&e!==L.Gt?this.sequenceIndex=Number(e===L.Dash):e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Nl.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=R.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Al(e):jl(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(Al(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Nl.TitleEnd||this.currentSequence===Nl.TextareaEnd?this.decodeEntities&&e===L.Amp&&this.startEntity():this.fastForwardTo(L.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===L.Lt)}stateBeforeTagName(e){if(e===L.ExclamationMark)this.state=R.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===L.Questionmark)this.xmlMode?(this.state=R.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=R.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(e)){this.sectionStart=this.index;let t=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:Pl.get(e|32);t===void 0?this.state=R.InTagName:(this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=3,this.state=R.SpecialStartSequence)}else e===L.Slash?this.state=R.BeforeClosingTagName:(this.state=R.Text,this.stateText(e))}stateInTagName(e){Al(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){kl(e)?this.xmlMode||(this.state=R.InSpecialComment,this.sectionStart=this.index):e===L.Gt?(this.state=R.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(e)?R.InClosingTagName:R.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(e){Al(e)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=R.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===L.Gt||this.fastForwardTo(L.Gt))&&(this.state=R.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===L.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):e===L.Slash?this.state=R.InSelfClosingTag:kl(e)||(this.state=R.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){if(e===L.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing){this.enterTagBody();return}this.state=R.Text,this.isSpecial=!1,this.currentSequence=Nl.Empty}else kl(e)||(this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===L.Eq||Al(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=R.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===L.Eq?this.state=R.BeforeAttributeValue:e===L.Slash||e===L.Gt?(this.cbs.onattribend(Ml.NoValue,this.sectionStart),this.sectionStart=-1,this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(e)):kl(e)||(this.cbs.onattribend(Ml.NoValue,this.sectionStart),this.state=R.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===L.DoubleQuote?(this.state=R.InAttributeValueDq,this.sectionStart=this.index+1):e===L.SingleQuote?(this.state=R.InAttributeValueSq,this.sectionStart=this.index+1):kl(e)||(this.sectionStart=this.index,this.state=R.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===L.DoubleQuote?Ml.Double:Ml.Single,this.index+1),this.state=R.BeforeAttributeName):this.decodeEntities&&e===L.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,L.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,L.SingleQuote)}stateInAttributeValueNoQuotes(e){kl(e)||e===L.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ml.Unquoted,this.index),this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===L.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===L.OpeningSquareBracket?(this.state=R.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=e===L.Dash?R.BeforeComment:R.InDeclaration:(e|32)===Nl.Doctype[0]?(this.state=R.DeclarationSequence,this.currentSequence=Nl.Doctype,this.sequenceIndex=1):e===L.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=R.Text,this.sectionStart=this.index+1):this.state=e===L.Dash?R.BeforeComment:R.InSpecialComment}stateDeclarationSequence(e){this.sequenceIndex===this.currentSequence.length?(this.state=R.InDeclaration,this.stateInDeclaration(e)):(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:e===L.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=R.Text,this.sectionStart=this.index+1):this.state=R.InSpecialComment}stateInDeclaration(e){(e===L.Gt||this.fastForwardTo(L.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=R.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e===L.Questionmark?this.sequenceIndex=1:e===L.Gt&&this.sequenceIndex===1?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=R.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(L.Questionmark))}stateBeforeComment(e){e===L.Dash?(this.state=R.InCommentLike,this.currentSequence=Nl.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=R.InDeclaration:e===L.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=R.Text,this.sectionStart=this.index+1):this.state=R.InSpecialComment}stateInSpecialComment(e){(e===L.Gt||this.fastForwardTo(L.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=R.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=R.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?El.Strict:this.baseState===R.Text||this.baseState===R.InSpecialTag?El.Legacy:El.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&--this.index;else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===L.Amp){this.state=this.baseState,--this.index;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===R.Text||this.state===R.InPlainText||this.state===R.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===R.InAttributeValueDq||this.state===R.InAttributeValueSq||this.state===R.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case R.Text:this.stateText(e);break;case R.InPlainText:this.index=this.buffer.length+this.offset-1;break;case R.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case R.InSpecialTag:this.stateInSpecialTag(e);break;case R.CDATASequence:this.stateCDATASequence(e);break;case R.DeclarationSequence:this.stateDeclarationSequence(e);break;case R.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case R.InAttributeName:this.stateInAttributeName(e);break;case R.InCommentLike:this.stateInCommentLike(e);break;case R.InSpecialComment:this.stateInSpecialComment(e);break;case R.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case R.InTagName:this.stateInTagName(e);break;case R.InClosingTagName:this.stateInClosingTagName(e);break;case R.BeforeTagName:this.stateBeforeTagName(e);break;case R.AfterAttributeName:this.stateAfterAttributeName(e);break;case R.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case R.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case R.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case R.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case R.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case R.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case R.InDeclaration:this.stateInDeclaration(e);break;case R.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case R.BeforeComment:this.stateBeforeComment(e);break;case R.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case R.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===R.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(e){if(this.state!==R.InCommentLike)return!1;if(this.currentSequence===Nl.CdataEnd){if(this.xmlMode)this.sectionStart<e&&this.cbs.oncdata(this.sectionStart,e,0);else{let t=this.sectionStart-Nl.Cdata.length-1;this.cbs.oncomment(t,e,0)}}else{let t=this.xmlMode?0:Math.min(this.sequenceIndex,Nl.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,e,t)}return!0}handleTrailingMarkupDeclaration(e){if(this.xmlMode)switch(this.state){case R.InSpecialComment:case R.BeforeComment:case R.CDATASequence:case R.DeclarationSequence:case R.InDeclaration:return this.cbs.ontext(this.sectionStart,e),!0;default:return!1}switch(this.state){case R.BeforeDeclaration:case R.InSpecialComment:case R.BeforeComment:case R.CDATASequence:return this.cbs.oncomment(this.sectionStart,e,0),!0;case R.DeclarationSequence:return this.sequenceIndex!==Nl.Doctype.length&&this.cbs.oncomment(this.sectionStart,e,0),!0;case R.InDeclaration:return!0;default:return!1}}handleTrailingData(){let e=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(e)||this.handleTrailingMarkupDeclaration(e))&&!(this.sectionStart>=e))switch(this.state){case R.InTagName:case R.BeforeAttributeName:case R.BeforeAttributeValue:case R.AfterAttributeName:case R.InAttributeName:case R.InAttributeValueSq:case R.InAttributeValueDq:case R.InAttributeValueNq:case R.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==R.Text&&this.baseState!==R.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}},{fromCodePoint:Il}=String,Ll=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),Rl=new Set([`p`]),zl=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`p`]),Bl=new Set([`thead`,`tbody`]),Vl=new Set([`dd`,`dt`]),Hl=new Set([`rt`,`rp`]),Ul=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`a`,new Set([`a`])],[`li`,new Set([`li`])],[`p`,Rl],[`h1`,zl],[`h2`,zl],[`h3`,zl],[`h4`,zl],[`h5`,zl],[`h6`,zl],[`select`,Ll],[`input`,Ll],[`output`,Ll],[`button`,Ll],[`datalist`,Ll],[`textarea`,Ll],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,Vl],[`dt`,Vl],[`address`,Rl],[`article`,Rl],[`aside`,Rl],[`blockquote`,Rl],[`details`,Rl],[`div`,Rl],[`dl`,Rl],[`fieldset`,Rl],[`figcaption`,Rl],[`figure`,Rl],[`footer`,Rl],[`form`,Rl],[`header`,Rl],[`hr`,Rl],[`main`,Rl],[`nav`,Rl],[`ol`,Rl],[`pre`,Rl],[`section`,Rl],[`table`,Rl],[`ul`,Rl],[`rt`,Hl],[`rp`,Hl],[`tbody`,Bl],[`tfoot`,Bl]]),Wl=`doctype`,Gl=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),Kl=new Set([`math`,`svg`]),ql=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),Jl=new Map([[`altglyph`,`altGlyph`],[`altglyphdef`,`altGlyphDef`],[`altglyphitem`,`altGlyphItem`],[`animatecolor`,`animateColor`],[`animatemotion`,`animateMotion`],[`animatetransform`,`animateTransform`],[`clippath`,`clipPath`],[`feblend`,`feBlend`],[`fecolormatrix`,`feColorMatrix`],[`fecomponenttransfer`,`feComponentTransfer`],[`fecomposite`,`feComposite`],[`feconvolvematrix`,`feConvolveMatrix`],[`fediffuselighting`,`feDiffuseLighting`],[`fedisplacementmap`,`feDisplacementMap`],[`fedistantlight`,`feDistantLight`],[`fedropshadow`,`feDropShadow`],[`feflood`,`feFlood`],[`fefunca`,`feFuncA`],[`fefuncb`,`feFuncB`],[`fefuncg`,`feFuncG`],[`fefuncr`,`feFuncR`],[`fegaussianblur`,`feGaussianBlur`],[`feimage`,`feImage`],[`femerge`,`feMerge`],[`femergenode`,`feMergeNode`],[`femorphology`,`feMorphology`],[`feoffset`,`feOffset`],[`fepointlight`,`fePointLight`],[`fespecularlighting`,`feSpecularLighting`],[`fespotlight`,`feSpotLight`],[`fetile`,`feTile`],[`feturbulence`,`feTurbulence`],[`foreignobject`,`foreignObject`],[`glyphref`,`glyphRef`],[`lineargradient`,`linearGradient`],[`radialgradient`,`radialGradient`],[`textpath`,`textPath`]]),Yl;(function(e){e[e.None=0]=`None`,e[e.Svg=1]=`Svg`,e[e.MathML=2]=`MathML`})(Yl||={});var Xl=/\s|\//,Zl=class{options;startIndex=0;endIndex=0;openTagStart=0;tagname=``;attribname=``;attribvalue=``;attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(e,t={}){this.options=t,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??Fl)(this.options,this),this.foreignContext=[Yl.None],this.cbs.onparserinit?.(this)}ontext(e,t){let n=this.getSlice(e,t);this.endIndex=t-1,this.cbs.ontext?.(n),this.startIndex=t}ontextentity(e,t){this.endIndex=t-1,this.cbs.ontext?.(Il(e)),this.startIndex=t}isInForeignContext(){return this.foreignContext[0]!==Yl.None}isVoidElement(e){return this.htmlMode&&Gl.has(e)}readTagName(e,t){let n=this.lowerCaseTagNames?this.getSlice(e,t).toLowerCase():this.getSlice(e,t);if(!(this.lowerCaseTagNames&&this.htmlMode))return n;if(this.foreignContext[0]===Yl.Svg)return Jl.get(n)??n;if(this.foreignContext.length>1){let e=Jl.get(n);if(e!==void 0&&this.stack.includes(e))return e}return this.isInForeignContext()?n:n===`image`?`img`:n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&e===`form`&&this.stack.includes(`form`)){this.tagname=``;return}let t=this.htmlMode&&Ul.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(e===`svg`?this.foreignContext.unshift(Yl.Svg):e===`math`?this.foreignContext.unshift(Yl.MathML):ql.has(e)&&this.foreignContext.unshift(Yl.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&=(this.cbs.onopentag?.(this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;let n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&n===`br`&&(this.cbs.onopentagname?.(`br`),this.cbs.onopentag?.(`br`,{},!0),this.cbs.onclosetag?.(`br`,!1));else{let e=this.stack.indexOf(n);if(e!==-1){for(let t=0;t<e;t++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&n===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}popElement(e){let t=this.stack.shift();this.htmlMode&&(Kl.has(t)||ql.has(t))&&this.foreignContext.shift(),this.cbs.onclosetag?.(t,e)}closeCurrentTag(e){let t=this.tagname;this.endOpenTag(e),this.stack[0]===t&&this.popElement(!e)}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=Il(e)}onattribend(e,t){this.endIndex=t,this.cbs.onattribute?.(this.attribname,this.attribvalue,e===Ml.Double?`"`:e===Ml.Single?`'`:e===Ml.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(Xl),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.htmlMode?this.lowerCaseTagNames?Wl:n.slice(0,7):this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){this.endIndex=t,this.cbs.oncomment?.(this.getSlice(e,t-n)),this.cbs.oncommentend?.(),this.startIndex=t+1}oncdata(e,t,n){this.endIndex=t;let r=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(r),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(r):(this.cbs.oncomment?.(`[CDATA[${r}]]`),this.cbs.oncommentend?.()),this.startIndex=t+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(Yl.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){if(e===t)return``;for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){if(this.ended){this.cbs.onerror?.(Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){if(this.ended){this.cbs.onerror?.(Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},Ql=/<\/?([a-zA-Z][a-zA-Z0-9-]{0,})(?:\s+[^>]*)?>/,$l=/^(br|hr|img|input|link|meta|area|base|col|embed|keygen|param|source|track|wbr)$/i,eu=e=>{let t=Ql.exec(e);return t?{tag:t[1],isOpening:!e.startsWith(`</`)}:null},tu=e=>{let t=e.raw.match(/<\/?([a-zA-Z][a-zA-Z0-9-]*)/i);if(!t)return e;let n=t[1];if(!$l.test(n))return e;let r=e.raw.endsWith(`/>`)?e.raw:e.raw.replace(/\s*>$/,`/>`);return{...e,raw:r,tag:n,attributes:nu(e.raw)}},nu=e=>{let t={},n=/([a-zA-Z][\w-]*)=(?:"([^"]*)(?:"|$)|'([^']*)(?:'|$))/g,r;for(;(r=n.exec(e))!==null;){let e=r[1];t[e]=(r[2]??r[3]??``).trim()}let i=e.replace(/[a-zA-Z][\w-]*=(?:"[^"]*(?:"|$)|'[^']*(?:'|$))/g,` `),a=/(?:^|\s)([a-zA-Z][\w-]*?)(?=[\s>]|$)/g;for(;(r=a.exec(i))!==null;){let[,e]=r;e&&!t[e]&&(t[e]=``)}return t},ru=e=>Object.entries(e).map(([e,t])=>` ${e}="${t.replace(/"/g,`&quot;`)}"`).join(``),iu=e=>{let t=e.indexOf(`>`);return t!==-1&&e.indexOf(`<`,t+1)!==-1},au=e=>{let t=[],n=[t],r=[],i=``,a=()=>{i.length!==0&&(i.trim()&&n[n.length-1].push({type:`text`,raw:i,text:i}),i=``)},o=new Zl({onopentag:(e,t)=>{if(a(),$l.test(e)){n[n.length-1].push({type:`html`,raw:`<${e}${ru(t)}/>`,tag:e,attributes:t});return}let i=[],s={type:`html`,raw:`<${e}${ru(t)}>`,tag:e,attributes:t};n[n.length-1].push(s),n.push(i),r.push({tag:e,opening:s,childTokens:i,startIndex:o.startIndex})},ontext:e=>{i+=e},onclosetag:(e,t)=>{if(a(),r.length===0)return;let i=r[r.length-1];if(i.tag===e){if(r.pop(),n.pop(),t){let e=n[n.length-1];for(let t of i.childTokens)e.push(t)}else{let e=i.opening;e.sourceLength=o.endIndex-i.startIndex+1,e.tokens=i.childTokens}}}},{xmlMode:!1,recognizeSelfClosing:!0});return o.write(e),o.end(),a(),t},ou=e=>iu(e.raw)?au(e.raw):[tu(e)],su=e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.type!==`html`){t.push(i);continue}if(`tokens`in i&&Array.isArray(i.tokens)){t.push(i);continue}let a=eu(i.raw);if(!a){t.push(i);continue}if(i.raw.endsWith(`/>`)){t.push(i);continue}if(a.isOpening)n.push({tag:a.tag,startIndex:t.length}),t.push(i);else{let e=n.pop();if(!e||e.tag!==a.tag){t.push(i);continue}let r=e.startIndex,o=t.splice(r+1,t.length-r-1),s=t.pop(),c=s.raw.length+o.reduce((e,t)=>e+(t.sourceLength??t.raw.length),0)+i.raw.length;t.push({type:`html`,raw:s.raw,tag:a.tag,tokens:o,attributes:nu(s.raw),sourceLength:c})}}return t},cu=(e,t)=>!e||e.length!==t.length?!1:e.every((e,n)=>e===t[n]),lu=(e,t)=>{let n=e.tokens?du(e.tokens):[],r=e;return r.listItemIndex===t&&cu(e.tokens,n)?r:{...e,listItemIndex:t,tokens:n}},uu=e=>{let t=e.tokens?du(e.tokens):[];return cu(e.tokens,t)?e:{...e,tokens:t}},du=e=>{let t=[];for(let n of e)if(n.type!==`html`&&`tokens`in n&&Array.isArray(n.tokens)){let e=n;e.tokens=du(e.tokens),t.push(n)}else if(n.type===`list`)n.items=n.items.map(lu),t.push(n);else if(n.type===`table`){let e=n;e.header&&=e.header.map(uu),e.rows&&=e.rows.map(e=>e.map(uu)),t.push(n)}else if(n.type===`html`){let e=ou(n);for(let n of e)t.push(n)}else t.push(n);return su(t)},fu=(e,t,n)=>{let r=new hs(t);return du(n?r.inlineTokens(e):r.lex(e))},pu=(e,t,n)=>{let r=ll.getTokens(e,t);if(r)return r;let i=fu(e,t,n);if(typeof t.walkTokens==`function`)for(let e of i)t.walkTokens(e);return ll.setTokens(e,t,i),i},mu=async(e,t,n)=>{let r=ll.getTokens(e,t);if(r)return r;let i=fu(e,t,n);if(typeof t.walkTokens==`function`){let e=new bs;e.defaults={...e.defaults,...t};let n=e.walkTokens(i,t.walkTokens);await Promise.all(n)}return ll.setTokens(e,t,i),i},hu=e=>typeof e==`object`&&!!e&&!Array.isArray(e),gu=e=>Array.isArray(e)&&e.every(e=>Array.isArray(e)?gu(e):hu(e)),_u=(e,t)=>e.length===t.length&&e.every((e,n)=>{let r=t[n];return Array.isArray(e)||Array.isArray(r)?Array.isArray(e)&&Array.isArray(r)&&_u(e,r):yu(e,r)}),vu=(e,t)=>{let n=new Set([...Object.keys(e),...Object.keys(t)]),r=e,i=t;for(let e of n){let t=r[e],n=i[e],a=gu(t),o=gu(n);if((a||o)&&(!a||!o||!_u(t,n)))return!1}return!0},yu=(e,t)=>{if(e.type!==t.type)return!1;if(typeof e.raw==`string`||typeof t.raw==`string`){if(e.raw!==t.raw)return!1}else if(typeof e.text==`string`||typeof t.text==`string`){if(e.text!==t.text)return!1}else return!1;return vu(e,t)},bu=(e,t)=>{let n=Math.min(e.length,t.length),r;for(let i=0;i<n;i++){let n=e[i],a=t[i],o=a;Array.isArray(n)&&Array.isArray(a)?o=bu(n,a):hu(n)&&hu(a)&&(o=xu(n,a)),o!==a&&(r??=t.slice(),r[i]=o)}return r??t},xu=(e,t)=>{if(yu(e,t))return e;let n,r=e,i=t;for(let e of Object.keys(t)){let a=r[e],o=i[e];if(!gu(a)||!gu(o))continue;let s=bu(a,o);if(s!==o){n??={...t};let r=n;r[e]=s}}return n??t},Su=(e,t,n)=>{let r=Math.min(n,e.length,t.length),i;if(r>0){i=Array(t.length);for(let t=0;t<r;t++)i[t]=e[t];for(let e=r;e<t.length;e++)i[e]=t[e]}if(r<e.length&&r<t.length){let n=xu(e[r],t[r]);n!==t[r]&&(i??=t.slice(),i[r]=n)}return i??t},Cu=Symbol.for(`svelte-markdown.tailWindowSafe`),wu=e=>{e[Cu]=!0},Tu=e=>{for(let t of e.extensions??[])`tokenizer`in t&&typeof t.tokenizer==`function`&&wu(t.tokenizer);return e},Eu=e=>typeof e==`function`&&e[Cu]===!0,Du=/^ {0,3}(`{3,}|~{3,}).*\n[\s\S]*\n {0,3}\1[ \t]*\n*$/,Ou=/\[[^\]\n]+\]\[[^\]\n]*\]/,ku=/\[[^\]\n]+\](?![[(])/,Au=/^\s{0,3}\[[^\]\n]+\]:/m,ju=class{prevTokens=[];prevSource=``;options;tailWindowDisabled;prevHasHtmlSpanMismatch=!1;prevTailWindowBoundary={prefixCount:0,reparseOffset:0};prevHasPotentialReferenceUse=!1;prevHasReferenceDefinition=!1;constructor(e){this.options=e;let t=e.extensions,n=[...t?.block??[],...t?.inline??[]];this.tailWindowDisabled=typeof e.walkTokens==`function`||e.tokenizer!=null||n.some(e=>!Eu(e))}getTailWindowBoundary=()=>this.prevTailWindowBoundary;hasHtmlSpanMismatch=e=>{if(e.type!==`html`)return!1;let t=e;return!t.tag||t.raw.endsWith(`/>`)||t.raw.startsWith(`</`)?!1:t.sourceLength==null};getTokenSourceLength=e=>e.sourceLength??e.raw.length;isStableAtSourceEnd=e=>{if(e.type===`space`)return!1;if(e.raw.endsWith(`
66
+
67
+ `))return!0;switch(e.type){case`heading`:case`hr`:return e.raw.endsWith(`
68
+ `);case`code`:return Du.test(e.raw);default:return!1}};hasPotentialReferenceUse=e=>!e.includes(`[`)||!e.includes(`]`)?!1:Ou.test(e)||ku.test(e);hasPotentialReferenceUseOutsideDefinitions=e=>{if(!e.includes(`[`)||!e.includes(`]`))return!1;for(let t of e.split(`
69
+ `))if(!Au.test(t)&&this.hasPotentialReferenceUse(t))return!0;return!1};hasReferenceDefinition=e=>!e.includes(`[`)||!e.includes(`]`)?!1:Au.test(e);appendIntroducesMatch=(e,t)=>{if(t(e.slice(this.prevSource.length)))return!0;let n=this.prevSource.lastIndexOf(`
70
+ `)+1;return!t(this.prevSource.slice(n))&&t(e.slice(n))};isAppendOnlyUpdate=e=>this.prevSource!==``&&e.startsWith(this.prevSource);hasNewReferenceDefinition=e=>e.startsWith(this.prevSource)?this.appendIntroducesMatch(e,this.hasReferenceDefinition):!1;appendedDefinitionInvalidatesTail=e=>this.prevHasPotentialReferenceUse&&this.hasNewReferenceDefinition(e);canUseTailWindow=(e,t,n=this.isAppendOnlyUpdate(e),r=this.appendedDefinitionInvalidatesTail(e))=>{if(this.tailWindowDisabled||this.prevSource===``||this.prevTokens.length===0||!n||t.reparseOffset<=0||r)return!1;if(this.prevHasReferenceDefinition){let n=e.slice(t.reparseOffset);if(this.hasPotentialReferenceUseOutsideDefinitions(n))return!1}return!0};parseSource=(e,t,n,r)=>{if(!this.canUseTailWindow(e,t,n,r))return{tokens:fu(e,this.options,!1),tailTokens:[],usedTailWindow:!1};let i=fu(e.slice(t.reparseOffset),this.options,!1);return{tokens:[...this.prevTokens.slice(0,t.prefixCount),...i],tailTokens:i,usedTailWindow:!0}};hasAnyHtmlSpanMismatch=e=>e.some(this.hasHtmlSpanMismatch);getNextTailWindowBoundary=(e,t,n)=>{if(e.length===0||n)return{prefixCount:0,reparseOffset:0};let r=e[e.length-1];return this.isStableAtSourceEnd(r)?{prefixCount:e.length,reparseOffset:t}:{prefixCount:e.length-1,reparseOffset:t-this.getTokenSourceLength(r)}};updateCachedState=(e,t,n,r)=>{let i=t.usedTailWindow?this.prevHasHtmlSpanMismatch||this.hasAnyHtmlSpanMismatch(t.tailTokens):this.hasAnyHtmlSpanMismatch(t.tokens);this.prevHasPotentialReferenceUse=n?this.prevHasPotentialReferenceUse||this.appendIntroducesMatch(e,this.hasPotentialReferenceUseOutsideDefinitions):this.hasPotentialReferenceUseOutsideDefinitions(e),this.prevHasReferenceDefinition=n?this.prevHasReferenceDefinition||r:this.hasReferenceDefinition(e),this.prevSource=e,this.prevTokens=t.tokens,this.prevHasHtmlSpanMismatch=i,this.prevTailWindowBoundary=this.getNextTailWindowBoundary(t.tokens,e.length,i)};update=e=>{let t=this.getTailWindowBoundary(),n=this.isAppendOnlyUpdate(e),r=n&&this.appendIntroducesMatch(e,this.hasReferenceDefinition),i=this.prevHasPotentialReferenceUse&&r,a=this.parseSource(e,t,n,i),o=a.tokens;if(typeof this.options.walkTokens==`function`)for(let e of o)this.options.walkTokens(e);let s=n?i:(this.prevHasReferenceDefinition||this.hasReferenceDefinition(e))&&(this.hasPotentialReferenceUse(this.prevSource)||this.hasPotentialReferenceUse(e)),c=n&&!s,l=0,u=a.usedTailWindow?t.reparseOffset:0;if(!s){let e=Math.min(this.prevTokens.length,o.length);for(;l<e;){let e=this.prevTokens[l],n=o[l];if(!yu(e,n))break;a.usedTailWindow?u!==void 0&&l>=t.prefixCount&&(u+=this.getTokenSourceLength(n)):u!==void 0&&(this.hasHtmlSpanMismatch(n)?u=void 0:u+=this.getTokenSourceLength(n)),l++}}return this.updateCachedState(e,a,n,r),{tokens:o,divergeAt:l,divergeOffset:u,canReuse:c,usedTailWindow:a.usedTailWindow}}},Mu=1e6,Nu=e=>typeof e==`object`&&!!e&&`offset`in e,Pu=(e,t,{currentBufferLength:n=0,maxOffsetGap:r=Mu}={})=>typeof e==`string`?t===`offset`?{kind:`drop`,message:`offset mode active, string chunk dropped. Call resetStream() before switching streaming input modes.`}:{kind:`append`,value:e,nextMode:`append`}:!Nu(e)||typeof e.value!=`string`?{kind:`drop`,message:`Invalid chunk object passed to writeChunk(); expected { value: string, offset: number }.`}:!Number.isSafeInteger(e.offset)||e.offset<0?{kind:`drop`,message:`Invalid offset chunk passed to writeChunk(); offset must be a non-negative safe integer.`}:t===`append`?{kind:`drop`,message:`append mode active, offset chunk dropped. Call resetStream() before switching streaming input modes.`}:e.offset-n>r?{kind:`drop`,message:`offset chunk skipped: offset ${e.offset} is more than ${r} chars beyond the current buffer length (${n}).`}:{kind:`offset`,chunk:e,nextMode:`offset`},Fu=(e,t)=>e+t,Iu=(e,t)=>t===``?{committed:!1,sourceBuffer:e,pendingBuffer:t}:{committed:!0,sourceBuffer:e+t,pendingBuffer:``},Lu=(e,t=256)=>e.length>=t,Ru=(e,{value:t,offset:n},{maxOffsetGap:r=Mu}={})=>{let i=Math.max(0,n-e.length),a=Math.min(i,Math.max(0,r)),o=n>e.length?e.length+a:n,s=a>0?e+` `.repeat(a):e,c=s.slice(0,o),l=s.slice(o+t.length);return c+t+l},zu=new Set([`$$slots`,`$$events`,`$$legacy`,`source`,`streaming`,`streamId`,`renderers`,`options`,`isInline`,`parsed`,`extensions`,`sanitizeUrl`,`sanitizeAttributes`]);function Bu(e,t){ue(t,!0);let n=N(t,`source`,19,()=>[]),r=N(t,`streaming`,3,!1),i=N(t,`streamId`,3,void 0),a=N(t,`renderers`,19,()=>({})),o=N(t,`options`,19,()=>({})),s=N(t,`isInline`,3,!1),c=N(t,`parsed`,3,()=>{}),l=N(t,`extensions`,19,()=>[]),u=N(t,`sanitizeUrl`,3,Tc),d=N(t,`sanitizeAttributes`,3,Ec),f=ie(t,zu),p=F(()=>Zc(l())),m=F(()=>tl(o(),l())),h=new Fa,g=Pc();te(Dc,g);let _=F(()=>$c(l())),v,y,b,x,C,w=``,T=``,ne=null,re=null,E=null,ae=we(Ce([])),oe=0,se=0,D=e=>{console.warn(`[svelte-markdown] ${e}`)},ce=()=>{v=void 0,y=void 0,b=void 0},le=()=>{re&&=(re.kind===`raf`&&typeof cancelAnimationFrame==`function`?cancelAnimationFrame(re.id):re.kind===`timeout`&&clearTimeout(re.id),null)},O=()=>!v||y!==o()||b!==l(),fe=(e,t=!1)=>{(t||O())&&(v=new ju(S(m)),y=o(),b=l());let n=v;if(!n)return;let{tokens:r,divergeAt:i,divergeOffset:a,canReuse:s}=n.update(e);M(ae,s?Su(S(ae),r,i):r,!0);let c=s&&a!==void 0;oe=c?i:0,se=c?a:0},k=()=>{let e=Iu(w,T);return e.committed?(w=e.sourceBuffer,T=e.pendingBuffer,!0):!1},A=(e=!1)=>{if(le(),ne!==null){let t=ne;ne=null,T=``,w=t,fe(t,e);return}k()&&fe(w,e)},pe=()=>{if(!(re||T===``&&ne===null)){if(typeof window<`u`&&typeof window.requestAnimationFrame==`function`){re={kind:`raf`,id:window.requestAnimationFrame(()=>{re=null,A()})};return}re={kind:`timeout`,id:setTimeout(()=>{re=null,A()},16)}}},he=()=>{le(),T=``,ne=null,E=null,w=``,oe=0,se=0},ge=(e=``)=>{if(he(),w=e,e===``){ce(),M(ae,[],!0);return}fe(e,!0)},_e=e=>{if(x=e,Array.isArray(e)){he(),ce(),M(ae,[...e],!0);return}let t=e,n=v!==void 0&&w!==``&&t!==``&&t.length>w.length&&t.startsWith(w);if(n){T=``,ne=t,pe();return}if(he(),t===``){ce(),M(ae,[],!0);return}w=t,fe(t,!n)},j=()=>{if(Array.isArray(n())){_e(n());return}x=n(),ge(n())},ve=e=>r()?S(_)?(D(`${e}() is unavailable when async extensions are used; call dropped.`),!1):!Array.isArray(n())||(D(`${e}() requires a string-backed source; token array sources are not supported.`),!1):(D(`${e}() is only available when streaming={true}; call dropped.`),!1),ye=e=>{if(ne!==null&&A(),T=Fu(T,e),Lu(T)){A();return}pe()},be=e=>{w=Ru(w,e,{maxOffsetGap:Mu}),fe(w)};function xe(e){if(!ve(`writeChunk`))return;C!==i()&&(C=i(),j()),ne!==null&&A();let t=Pu(e,E,{currentBufferLength:w.length,maxOffsetGap:Mu});if(t.kind===`drop`){D(t.message);return}if(E=t.nextMode,t.kind===`append`){ye(t.value);return}be(t.chunk)}function Se(e=``){ve(`resetStream`)&&ge(e)}ee(()=>()=>{le()}),ee(()=>{if(!r()||S(_)){he(),v&&ce(),x=n(),C=i(),r()&&S(_)&&D(`streaming prop is ignored when async extensions are used. Remove async extensions or set streaming={false} to silence this warning.`);return}if(C!==i()){C=i(),j();return}if(x!==n()){_e(n());return}if(!Array.isArray(n())&&O()){if(ne!==null){A(!0);return}if(T!==``){A(!0);return}if(w===``){ce(),M(ae,[],!0);return}fe(w,!0)}});let Te=F(()=>{if(!S(_)&&!r())return Array.isArray(n())?n():n()===``?[]:pu(n(),S(m),s())}),P=we(void 0),Ee=0;ee(()=>{if(!S(_))return;if(Array.isArray(n())){M(P,n(),!0);return}if(n()===``){M(P,[],!0);return}let e=n(),t=S(m),r=s(),i=++Ee;mu(e,t,r).then(e=>{i===Ee&&M(P,e,!0)}).catch(e=>{i===Ee&&(console.error(`[svelte-markdown] async walkTokens failed:`,e),M(P,[],!0))})});let De=F(()=>r()&&!S(_)?S(ae):S(_)?S(P):S(Te)),Oe=F(()=>{if(!S(De))return S(De);let e=Array.isArray(n())?void 0:r()&&!S(_)?w:n(),t=r()&&!S(_)?{startIndex:oe,startOffset:se}:{};return g.prepareTokensForRender(S(De),S(m),{source:e,...t})});ee(()=>{S(Oe)&&c()(S(Oe))});let ke=F(()=>Hc(a())),Ae=F(()=>Uc(S(p))),I=F(()=>Wc(f,S(Ae))),je=F(()=>Gc(f)),Me=F(()=>Kc(f,S(Ae)));var Ne={writeChunk:xe,resetStream:Se};return zc(e,me({get tokens(){return S(Oe)}},()=>S(Me),{get options(){return S(m)},slug:e=>h.slug(e),get renderers(){return S(ke)},get snippetOverrides(){return S(I)},get htmlSnippetOverrides(){return S(je)},get sanitizeUrl(){return u()},get sanitizeAttributes(){return d()}})),de(Ne)}var Vu=((e,t,n)=>{let r=t=>e.includes(t),i=()=>{let r={};for(let i of e)r[i]=n[i]===null?null:t;return r};return{buildUnsupported:i,allowOnly:e=>{let t=i();for(let i of e)if(Array.isArray(i)){let[e,n]=i;r(e)&&(t[e]=n)}else{let e=i;r(e)&&(t[e]=n[e])}return t},excludeOnly:(i,a)=>{let o={};for(let t of e)o[t]=n[t];for(let e of i)r(e)&&(o[e]=t);if(a)for(let[e,t]of a)i.includes(e)||r(e)&&(o[e]=t);return o}}})(Vc,ja,Ma),Hu=Vu.buildUnsupported;Vu.allowOnly,Vu.excludeOnly;var Uu=Bu,z=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Wu=/([A-Z])/g,Gu=e=>e.replace(Wu,`-$1`).toLowerCase(),Ku={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},qu=/[&><"']/g,Ju=e=>String(e).replace(qu,e=>Ku[e]),Yu=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Yu(e.body[0]):e:e.type===`font`?Yu(e.body):e,Xu=new Set([`mathord`,`textord`,`atom`]),Zu=e=>Xu.has(Yu(e).type),Qu=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},$u={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function ed(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function td(e){return e.default===void 0?ed(Array.isArray(e.type)?e.type[0]:e.type):e.default}function nd(e,t,n,r){var i=n[t];e[t]=i===void 0?td(r):r.processor?r.processor(i):i}var rd=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys($u)){var n=$u[t];n&&nd(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new z(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Qu(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},id=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return pd[md[this.id]]}sub(){return pd[hd[this.id]]}fracNum(){return pd[gd[this.id]]}fracDen(){return pd[_d[this.id]]}cramp(){return pd[vd[this.id]]}text(){return pd[yd[this.id]]}isTight(){return this.size>=2}},ad=0,od=1,sd=2,cd=3,ld=4,ud=5,dd=6,fd=7,pd=[new id(ad,0,!1),new id(od,0,!0),new id(sd,1,!1),new id(cd,1,!0),new id(ld,2,!1),new id(ud,2,!0),new id(dd,3,!1),new id(fd,3,!0)],md=[ld,ud,ld,ud,dd,fd,dd,fd],hd=[ud,ud,ud,ud,fd,fd,fd,fd],gd=[sd,cd,ld,ud,dd,fd,dd,fd],_d=[cd,cd,ud,ud,fd,fd,fd,fd],vd=[od,od,cd,cd,ud,ud,fd,fd],yd=[ad,od,sd,cd,sd,cd,sd,cd],bd={DISPLAY:pd[ad],TEXT:pd[sd],SCRIPT:pd[ld],SCRIPTSCRIPT:pd[dd]},xd=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Sd(e){for(var t=0;t<xd.length;t++)for(var n=xd[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Cd=[];xd.forEach(e=>e.blocks.forEach(e=>Cd.push(...e)));function wd(e){for(var t=0;t<Cd.length;t+=2)if(e>=Cd[t]&&e<=Cd[t+1])return!0;return!1}var Td=e=>e+` `+e,Ed=80,Dd=function(e,t){return`M95,`+(622+e+t)+`
71
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
72
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
73
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
74
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
75
+ c69,-144,104.5,-217.7,106.5,-221
76
+ l`+e/2.075+` -`+e+`
77
+ c5.3,-9.3,12,-14,20,-14
78
+ H400000v`+(40+e)+`H845.2724
79
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
80
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
81
+ M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Od=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
82
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
83
+ c340,-704.7,510.7,-1060.3,512,-1067
84
+ l`+e/2.084+` -`+e+`
85
+ c4.7,-7.3,11,-11,19,-11
86
+ H40000v`+(40+e)+`H1012.3
87
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
88
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
89
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
90
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
91
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},kd=function(e,t){return`M983 `+(10+e+t)+`
92
+ l`+e/3.13+` -`+e+`
93
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
94
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
95
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
96
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
97
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
98
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
99
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
100
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Ad=function(e,t){return`M424,`+(2398+e+t)+`
101
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
102
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
103
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
104
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
105
+ l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
106
+ v`+(40+e)+`H1014.6
107
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
108
+ c-2,6,-10,9,-24,9
109
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
110
+ h400000v`+(40+e)+`h-400000z`},jd=function(e,t){return`M473,`+(2713+e+t)+`
111
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
112
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
113
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
114
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
115
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
116
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
117
+ 606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Md=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Nd=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
118
+ H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
119
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
120
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
121
+ 219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},Pd=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Dd(t,Ed);break;case`sqrtSize1`:r=Od(t,Ed);break;case`sqrtSize2`:r=kd(t,Ed);break;case`sqrtSize3`:r=Ad(t,Ed);break;case`sqrtSize4`:r=jd(t,Ed);break;case`sqrtTall`:r=Nd(t,Ed,n)}return r},Fd=function(e,t){switch(e){case`⎜`:return Td(`M291 0 H417 V`+t+` H291z`);case`∣`:return Td(`M145 0 H188 V`+t+` H145z`);case`∥`:return Td(`M145 0 H188 V`+t+` H145z`)+Td(`M367 0 H410 V`+t+` H367z`);case`⎟`:return Td(`M457 0 H583 V`+t+` H457z`);case`⎢`:return Td(`M319 0 H403 V`+t+` H319z`);case`⎥`:return Td(`M263 0 H347 V`+t+` H263z`);case`⎪`:return Td(`M384 0 H504 V`+t+` H384z`);case`⏐`:return Td(`M312 0 H355 V`+t+` H312z`);case`‖`:return Td(`M257 0 H300 V`+t+` H257z`)+Td(`M478 0 H521 V`+t+` H478z`);default:return``}},Id={doubleleftarrow:`M262 157
122
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
123
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
124
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
125
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
126
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
127
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
128
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
129
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
130
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
131
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
132
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
133
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
134
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
135
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
136
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
137
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
138
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
139
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
140
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
141
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
142
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
143
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
144
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
145
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
146
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
147
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
148
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
149
+ 435 0h399565z`,leftgroupunder:`M400000 262
150
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
151
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
152
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
153
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
154
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
155
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
156
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
157
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
158
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
159
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
160
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
161
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
162
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
163
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
164
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
165
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
166
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
167
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Td(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:Td(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:Td(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:Td(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
168
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
169
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
170
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Td(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
171
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
172
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
173
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
174
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
175
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
176
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
177
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
178
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
179
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
180
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
181
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
182
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
183
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
184
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
185
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
186
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
187
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
188
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
189
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
190
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
191
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
192
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
193
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
194
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
195
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
196
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
197
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
198
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
199
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
200
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
201
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
202
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
203
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
204
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
205
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
206
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
207
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
208
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
209
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
210
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
211
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
212
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
213
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
214
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
215
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
216
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
217
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
218
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
219
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Td(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:Td(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:Td(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
220
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
221
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
222
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
223
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
224
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
225
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
226
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
227
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
228
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
229
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
230
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
231
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
232
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
233
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
234
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
235
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
236
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
237
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
238
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
239
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
240
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
241
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
242
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
243
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
244
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
245
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
246
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
247
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
248
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
249
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
250
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
251
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
252
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
253
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
254
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
255
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
256
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
257
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
258
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
259
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
260
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
261
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
262
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
263
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
264
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
265
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
266
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
267
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
268
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
269
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
270
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
271
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
272
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
273
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
274
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
275
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
276
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
277
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
278
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
279
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
280
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
281
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
282
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
283
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
284
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
285
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
286
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
287
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
288
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
289
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
290
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
291
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
292
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ld=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
293
+ H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
294
+ M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
295
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
296
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
297
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
298
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
299
+ M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
300
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
301
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
302
+ MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
303
+ MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
304
+ M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
305
+ M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
306
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
307
+ -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
308
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
309
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
310
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
311
+ l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
312
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
313
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
314
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
315
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
316
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
317
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
318
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
319
+ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
320
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function Rd(e){return`toText`in e}var zd=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(Rd(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Bd={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Vd={ex:!0,em:!0,mu:!0},Hd=function(e){return typeof e!=`string`&&(e=e.unit),e in Bd||e in Vd||e===`ex`},Ud=function(e,t){var n;if(e.unit in Bd)n=Bd[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new z(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},B=function(e){return+e.toFixed(4)+`em`},Wd=function(e){return e.filter(e=>e).join(` `)},Gd=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Gu(n)+`:`+r+`;`)}return t},Kd=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},qd=function(e){var t=document.createElement(e);t.className=Wd(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Jd=/[\s"'>/=\x00-\x1f]/,Yd=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Ju(Wd(this.classes))+`"`);var n=Gd(this.style);n&&(t+=` style="`+Ju(n)+`"`);for(var r of Object.keys(this.attributes)){if(Jd.test(r))throw new z(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Ju(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Xd=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Kd.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return qd.call(this,`span`)}toMarkup(){return Yd.call(this,`span`)}},Zd=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Kd.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return qd.call(this,`a`)}toMarkup(){return Yd.call(this,`a`)}},Qd=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+Ju(this.src)+`"`+(` alt="`+Ju(this.alt)+`"`),t=Gd(this.style);return t&&(e+=` style="`+Ju(t)+`"`),e+=`'/>`,e}},$d={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},ef=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Sd(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=$d[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=B(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Wd(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=Ju(Wd(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+B(this.italic)+`;`),n+=Gd(this.style),n&&(e=!0,t+=` style="`+Ju(n)+`"`);var r=Ju(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},tf=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Ju(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},nf=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Id[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Ju(this.alternate)+`"/>`:`<path d="`+Ju(Id[this.pathName])+`"/>`}},rf=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Ju(this.attributes[t])+`"`;return e+=`/>`,e}};function af(e){if(e instanceof ef)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function of(e){if(e instanceof Xd)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var sf=e=>e instanceof Xd||e instanceof Zd||e instanceof zd,cf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},lf={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},uf={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function df(e,t){cf[e]=t}function ff(e,t,n){if(!cf[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=cf[t][r];if(!i&&e[0]in uf&&(r=uf[e[0]].charCodeAt(0),i=cf[t][r]),!i&&n===`text`&&wd(r)&&(i=cf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var pf={};function mf(e){var t=e>=5?0:e>=3?1:2;if(!pf[t]){var n=pf[t]={cssEmPerMu:lf.quad[t]/18};for(var r in lf)lf.hasOwnProperty(r)&&(n[r]=lf[r][t])}return pf[t]}var hf={math:{},text:{}};function V(e,t,n,r,i,a){hf[e][i]={font:t,group:n,replace:r},a&&r&&(hf[e][r]=hf[e][i])}var H=`math`,U=`text`,W=`main`,G=`ams`,gf=`accent-token`,K=`bin`,_f=`close`,vf=`inner`,q=`mathord`,yf=`op-token`,bf=`open`,xf=`punct`,J=`rel`,Sf=`spacing`,Y=`textord`;V(H,W,J,`≡`,`\\equiv`,!0),V(H,W,J,`≺`,`\\prec`,!0),V(H,W,J,`≻`,`\\succ`,!0),V(H,W,J,`∼`,`\\sim`,!0),V(H,W,J,`⊥`,`\\perp`),V(H,W,J,`⪯`,`\\preceq`,!0),V(H,W,J,`⪰`,`\\succeq`,!0),V(H,W,J,`≃`,`\\simeq`,!0),V(H,W,J,`∣`,`\\mid`,!0),V(H,W,J,`≪`,`\\ll`,!0),V(H,W,J,`≫`,`\\gg`,!0),V(H,W,J,`≍`,`\\asymp`,!0),V(H,W,J,`∥`,`\\parallel`),V(H,W,J,`⋈`,`\\bowtie`,!0),V(H,W,J,`⌣`,`\\smile`,!0),V(H,W,J,`⊑`,`\\sqsubseteq`,!0),V(H,W,J,`⊒`,`\\sqsupseteq`,!0),V(H,W,J,`≐`,`\\doteq`,!0),V(H,W,J,`⌢`,`\\frown`,!0),V(H,W,J,`∋`,`\\ni`,!0),V(H,W,J,`∝`,`\\propto`,!0),V(H,W,J,`⊢`,`\\vdash`,!0),V(H,W,J,`⊣`,`\\dashv`,!0),V(H,W,J,`∋`,`\\owns`),V(H,W,xf,`.`,`\\ldotp`),V(H,W,xf,`⋅`,`\\cdotp`),V(H,W,xf,`⋅`,`·`),V(U,W,Y,`⋅`,`·`),V(H,W,Y,`#`,`\\#`),V(U,W,Y,`#`,`\\#`),V(H,W,Y,`&`,`\\&`),V(U,W,Y,`&`,`\\&`),V(H,W,Y,`ℵ`,`\\aleph`,!0),V(H,W,Y,`∀`,`\\forall`,!0),V(H,W,Y,`ℏ`,`\\hbar`,!0),V(H,W,Y,`∃`,`\\exists`,!0),V(H,W,Y,`∇`,`\\nabla`,!0),V(H,W,Y,`♭`,`\\flat`,!0),V(H,W,Y,`ℓ`,`\\ell`,!0),V(H,W,Y,`♮`,`\\natural`,!0),V(H,W,Y,`♣`,`\\clubsuit`,!0),V(H,W,Y,`℘`,`\\wp`,!0),V(H,W,Y,`♯`,`\\sharp`,!0),V(H,W,Y,`♢`,`\\diamondsuit`,!0),V(H,W,Y,`ℜ`,`\\Re`,!0),V(H,W,Y,`♡`,`\\heartsuit`,!0),V(H,W,Y,`ℑ`,`\\Im`,!0),V(H,W,Y,`♠`,`\\spadesuit`,!0),V(H,W,Y,`§`,`\\S`,!0),V(U,W,Y,`§`,`\\S`),V(H,W,Y,`¶`,`\\P`,!0),V(U,W,Y,`¶`,`\\P`),V(H,W,Y,`†`,`\\dag`),V(U,W,Y,`†`,`\\dag`),V(U,W,Y,`†`,`\\textdagger`),V(H,W,Y,`‡`,`\\ddag`),V(U,W,Y,`‡`,`\\ddag`),V(U,W,Y,`‡`,`\\textdaggerdbl`),V(H,W,_f,`⎱`,`\\rmoustache`,!0),V(H,W,bf,`⎰`,`\\lmoustache`,!0),V(H,W,_f,`⟯`,`\\rgroup`,!0),V(H,W,bf,`⟮`,`\\lgroup`,!0),V(H,W,K,`∓`,`\\mp`,!0),V(H,W,K,`⊖`,`\\ominus`,!0),V(H,W,K,`⊎`,`\\uplus`,!0),V(H,W,K,`⊓`,`\\sqcap`,!0),V(H,W,K,`∗`,`\\ast`),V(H,W,K,`⊔`,`\\sqcup`,!0),V(H,W,K,`◯`,`\\bigcirc`,!0),V(H,W,K,`∙`,`\\bullet`,!0),V(H,W,K,`‡`,`\\ddagger`),V(H,W,K,`≀`,`\\wr`,!0),V(H,W,K,`⨿`,`\\amalg`),V(H,W,K,`&`,`\\And`),V(H,W,J,`⟵`,`\\longleftarrow`,!0),V(H,W,J,`⇐`,`\\Leftarrow`,!0),V(H,W,J,`⟸`,`\\Longleftarrow`,!0),V(H,W,J,`⟶`,`\\longrightarrow`,!0),V(H,W,J,`⇒`,`\\Rightarrow`,!0),V(H,W,J,`⟹`,`\\Longrightarrow`,!0),V(H,W,J,`↔`,`\\leftrightarrow`,!0),V(H,W,J,`⟷`,`\\longleftrightarrow`,!0),V(H,W,J,`⇔`,`\\Leftrightarrow`,!0),V(H,W,J,`⟺`,`\\Longleftrightarrow`,!0),V(H,W,J,`↦`,`\\mapsto`,!0),V(H,W,J,`⟼`,`\\longmapsto`,!0),V(H,W,J,`↗`,`\\nearrow`,!0),V(H,W,J,`↩`,`\\hookleftarrow`,!0),V(H,W,J,`↪`,`\\hookrightarrow`,!0),V(H,W,J,`↘`,`\\searrow`,!0),V(H,W,J,`↼`,`\\leftharpoonup`,!0),V(H,W,J,`⇀`,`\\rightharpoonup`,!0),V(H,W,J,`↙`,`\\swarrow`,!0),V(H,W,J,`↽`,`\\leftharpoondown`,!0),V(H,W,J,`⇁`,`\\rightharpoondown`,!0),V(H,W,J,`↖`,`\\nwarrow`,!0),V(H,W,J,`⇌`,`\\rightleftharpoons`,!0),V(H,G,J,`≮`,`\\nless`,!0),V(H,G,J,``,`\\@nleqslant`),V(H,G,J,``,`\\@nleqq`),V(H,G,J,`⪇`,`\\lneq`,!0),V(H,G,J,`≨`,`\\lneqq`,!0),V(H,G,J,``,`\\@lvertneqq`),V(H,G,J,`⋦`,`\\lnsim`,!0),V(H,G,J,`⪉`,`\\lnapprox`,!0),V(H,G,J,`⊀`,`\\nprec`,!0),V(H,G,J,`⋠`,`\\npreceq`,!0),V(H,G,J,`⋨`,`\\precnsim`,!0),V(H,G,J,`⪹`,`\\precnapprox`,!0),V(H,G,J,`≁`,`\\nsim`,!0),V(H,G,J,``,`\\@nshortmid`),V(H,G,J,`∤`,`\\nmid`,!0),V(H,G,J,`⊬`,`\\nvdash`,!0),V(H,G,J,`⊭`,`\\nvDash`,!0),V(H,G,J,`⋪`,`\\ntriangleleft`),V(H,G,J,`⋬`,`\\ntrianglelefteq`,!0),V(H,G,J,`⊊`,`\\subsetneq`,!0),V(H,G,J,``,`\\@varsubsetneq`),V(H,G,J,`⫋`,`\\subsetneqq`,!0),V(H,G,J,``,`\\@varsubsetneqq`),V(H,G,J,`≯`,`\\ngtr`,!0),V(H,G,J,``,`\\@ngeqslant`),V(H,G,J,``,`\\@ngeqq`),V(H,G,J,`⪈`,`\\gneq`,!0),V(H,G,J,`≩`,`\\gneqq`,!0),V(H,G,J,``,`\\@gvertneqq`),V(H,G,J,`⋧`,`\\gnsim`,!0),V(H,G,J,`⪊`,`\\gnapprox`,!0),V(H,G,J,`⊁`,`\\nsucc`,!0),V(H,G,J,`⋡`,`\\nsucceq`,!0),V(H,G,J,`⋩`,`\\succnsim`,!0),V(H,G,J,`⪺`,`\\succnapprox`,!0),V(H,G,J,`≆`,`\\ncong`,!0),V(H,G,J,``,`\\@nshortparallel`),V(H,G,J,`∦`,`\\nparallel`,!0),V(H,G,J,`⊯`,`\\nVDash`,!0),V(H,G,J,`⋫`,`\\ntriangleright`),V(H,G,J,`⋭`,`\\ntrianglerighteq`,!0),V(H,G,J,``,`\\@nsupseteqq`),V(H,G,J,`⊋`,`\\supsetneq`,!0),V(H,G,J,``,`\\@varsupsetneq`),V(H,G,J,`⫌`,`\\supsetneqq`,!0),V(H,G,J,``,`\\@varsupsetneqq`),V(H,G,J,`⊮`,`\\nVdash`,!0),V(H,G,J,`⪵`,`\\precneqq`,!0),V(H,G,J,`⪶`,`\\succneqq`,!0),V(H,G,J,``,`\\@nsubseteqq`),V(H,G,K,`⊴`,`\\unlhd`),V(H,G,K,`⊵`,`\\unrhd`),V(H,G,J,`↚`,`\\nleftarrow`,!0),V(H,G,J,`↛`,`\\nrightarrow`,!0),V(H,G,J,`⇍`,`\\nLeftarrow`,!0),V(H,G,J,`⇏`,`\\nRightarrow`,!0),V(H,G,J,`↮`,`\\nleftrightarrow`,!0),V(H,G,J,`⇎`,`\\nLeftrightarrow`,!0),V(H,G,J,`△`,`\\vartriangle`),V(H,G,Y,`ℏ`,`\\hslash`),V(H,G,Y,`▽`,`\\triangledown`),V(H,G,Y,`◊`,`\\lozenge`),V(H,G,Y,`Ⓢ`,`\\circledS`),V(H,G,Y,`®`,`\\circledR`),V(U,G,Y,`®`,`\\circledR`),V(H,G,Y,`∡`,`\\measuredangle`,!0),V(H,G,Y,`∄`,`\\nexists`),V(H,G,Y,`℧`,`\\mho`),V(H,G,Y,`Ⅎ`,`\\Finv`,!0),V(H,G,Y,`⅁`,`\\Game`,!0),V(H,G,Y,`‵`,`\\backprime`),V(H,G,Y,`▲`,`\\blacktriangle`),V(H,G,Y,`▼`,`\\blacktriangledown`),V(H,G,Y,`■`,`\\blacksquare`),V(H,G,Y,`⧫`,`\\blacklozenge`),V(H,G,Y,`★`,`\\bigstar`),V(H,G,Y,`∢`,`\\sphericalangle`,!0),V(H,G,Y,`∁`,`\\complement`,!0),V(H,G,Y,`ð`,`\\eth`,!0),V(U,W,Y,`ð`,`ð`),V(H,G,Y,`╱`,`\\diagup`),V(H,G,Y,`╲`,`\\diagdown`),V(H,G,Y,`□`,`\\square`),V(H,G,Y,`□`,`\\Box`),V(H,G,Y,`◊`,`\\Diamond`),V(H,G,Y,`¥`,`\\yen`,!0),V(U,G,Y,`¥`,`\\yen`,!0),V(H,G,Y,`✓`,`\\checkmark`,!0),V(U,G,Y,`✓`,`\\checkmark`),V(H,G,Y,`ℶ`,`\\beth`,!0),V(H,G,Y,`ℸ`,`\\daleth`,!0),V(H,G,Y,`ℷ`,`\\gimel`,!0),V(H,G,Y,`ϝ`,`\\digamma`,!0),V(H,G,Y,`ϰ`,`\\varkappa`),V(H,G,bf,`┌`,`\\@ulcorner`,!0),V(H,G,_f,`┐`,`\\@urcorner`,!0),V(H,G,bf,`└`,`\\@llcorner`,!0),V(H,G,_f,`┘`,`\\@lrcorner`,!0),V(H,G,J,`≦`,`\\leqq`,!0),V(H,G,J,`⩽`,`\\leqslant`,!0),V(H,G,J,`⪕`,`\\eqslantless`,!0),V(H,G,J,`≲`,`\\lesssim`,!0),V(H,G,J,`⪅`,`\\lessapprox`,!0),V(H,G,J,`≊`,`\\approxeq`,!0),V(H,G,K,`⋖`,`\\lessdot`),V(H,G,J,`⋘`,`\\lll`,!0),V(H,G,J,`≶`,`\\lessgtr`,!0),V(H,G,J,`⋚`,`\\lesseqgtr`,!0),V(H,G,J,`⪋`,`\\lesseqqgtr`,!0),V(H,G,J,`≑`,`\\doteqdot`),V(H,G,J,`≓`,`\\risingdotseq`,!0),V(H,G,J,`≒`,`\\fallingdotseq`,!0),V(H,G,J,`∽`,`\\backsim`,!0),V(H,G,J,`⋍`,`\\backsimeq`,!0),V(H,G,J,`⫅`,`\\subseteqq`,!0),V(H,G,J,`⋐`,`\\Subset`,!0),V(H,G,J,`⊏`,`\\sqsubset`,!0),V(H,G,J,`≼`,`\\preccurlyeq`,!0),V(H,G,J,`⋞`,`\\curlyeqprec`,!0),V(H,G,J,`≾`,`\\precsim`,!0),V(H,G,J,`⪷`,`\\precapprox`,!0),V(H,G,J,`⊲`,`\\vartriangleleft`),V(H,G,J,`⊴`,`\\trianglelefteq`),V(H,G,J,`⊨`,`\\vDash`,!0),V(H,G,J,`⊪`,`\\Vvdash`,!0),V(H,G,J,`⌣`,`\\smallsmile`),V(H,G,J,`⌢`,`\\smallfrown`),V(H,G,J,`≏`,`\\bumpeq`,!0),V(H,G,J,`≎`,`\\Bumpeq`,!0),V(H,G,J,`≧`,`\\geqq`,!0),V(H,G,J,`⩾`,`\\geqslant`,!0),V(H,G,J,`⪖`,`\\eqslantgtr`,!0),V(H,G,J,`≳`,`\\gtrsim`,!0),V(H,G,J,`⪆`,`\\gtrapprox`,!0),V(H,G,K,`⋗`,`\\gtrdot`),V(H,G,J,`⋙`,`\\ggg`,!0),V(H,G,J,`≷`,`\\gtrless`,!0),V(H,G,J,`⋛`,`\\gtreqless`,!0),V(H,G,J,`⪌`,`\\gtreqqless`,!0),V(H,G,J,`≖`,`\\eqcirc`,!0),V(H,G,J,`≗`,`\\circeq`,!0),V(H,G,J,`≜`,`\\triangleq`,!0),V(H,G,J,`∼`,`\\thicksim`),V(H,G,J,`≈`,`\\thickapprox`),V(H,G,J,`⫆`,`\\supseteqq`,!0),V(H,G,J,`⋑`,`\\Supset`,!0),V(H,G,J,`⊐`,`\\sqsupset`,!0),V(H,G,J,`≽`,`\\succcurlyeq`,!0),V(H,G,J,`⋟`,`\\curlyeqsucc`,!0),V(H,G,J,`≿`,`\\succsim`,!0),V(H,G,J,`⪸`,`\\succapprox`,!0),V(H,G,J,`⊳`,`\\vartriangleright`),V(H,G,J,`⊵`,`\\trianglerighteq`),V(H,G,J,`⊩`,`\\Vdash`,!0),V(H,G,J,`∣`,`\\shortmid`),V(H,G,J,`∥`,`\\shortparallel`),V(H,G,J,`≬`,`\\between`,!0),V(H,G,J,`⋔`,`\\pitchfork`,!0),V(H,G,J,`∝`,`\\varpropto`),V(H,G,J,`◀`,`\\blacktriangleleft`),V(H,G,J,`∴`,`\\therefore`,!0),V(H,G,J,`∍`,`\\backepsilon`),V(H,G,J,`▶`,`\\blacktriangleright`),V(H,G,J,`∵`,`\\because`,!0),V(H,G,J,`⋘`,`\\llless`),V(H,G,J,`⋙`,`\\gggtr`),V(H,G,K,`⊲`,`\\lhd`),V(H,G,K,`⊳`,`\\rhd`),V(H,G,J,`≂`,`\\eqsim`,!0),V(H,W,J,`⋈`,`\\Join`),V(H,G,J,`≑`,`\\Doteq`,!0),V(H,G,K,`∔`,`\\dotplus`,!0),V(H,G,K,`∖`,`\\smallsetminus`),V(H,G,K,`⋒`,`\\Cap`,!0),V(H,G,K,`⋓`,`\\Cup`,!0),V(H,G,K,`⩞`,`\\doublebarwedge`,!0),V(H,G,K,`⊟`,`\\boxminus`,!0),V(H,G,K,`⊞`,`\\boxplus`,!0),V(H,G,K,`⋇`,`\\divideontimes`,!0),V(H,G,K,`⋉`,`\\ltimes`,!0),V(H,G,K,`⋊`,`\\rtimes`,!0),V(H,G,K,`⋋`,`\\leftthreetimes`,!0),V(H,G,K,`⋌`,`\\rightthreetimes`,!0),V(H,G,K,`⋏`,`\\curlywedge`,!0),V(H,G,K,`⋎`,`\\curlyvee`,!0),V(H,G,K,`⊝`,`\\circleddash`,!0),V(H,G,K,`⊛`,`\\circledast`,!0),V(H,G,K,`⋅`,`\\centerdot`),V(H,G,K,`⊺`,`\\intercal`,!0),V(H,G,K,`⋒`,`\\doublecap`),V(H,G,K,`⋓`,`\\doublecup`),V(H,G,K,`⊠`,`\\boxtimes`,!0),V(H,G,J,`⇢`,`\\dashrightarrow`,!0),V(H,G,J,`⇠`,`\\dashleftarrow`,!0),V(H,G,J,`⇇`,`\\leftleftarrows`,!0),V(H,G,J,`⇆`,`\\leftrightarrows`,!0),V(H,G,J,`⇚`,`\\Lleftarrow`,!0),V(H,G,J,`↞`,`\\twoheadleftarrow`,!0),V(H,G,J,`↢`,`\\leftarrowtail`,!0),V(H,G,J,`↫`,`\\looparrowleft`,!0),V(H,G,J,`⇋`,`\\leftrightharpoons`,!0),V(H,G,J,`↶`,`\\curvearrowleft`,!0),V(H,G,J,`↺`,`\\circlearrowleft`,!0),V(H,G,J,`↰`,`\\Lsh`,!0),V(H,G,J,`⇈`,`\\upuparrows`,!0),V(H,G,J,`↿`,`\\upharpoonleft`,!0),V(H,G,J,`⇃`,`\\downharpoonleft`,!0),V(H,W,J,`⊶`,`\\origof`,!0),V(H,W,J,`⊷`,`\\imageof`,!0),V(H,G,J,`⊸`,`\\multimap`,!0),V(H,G,J,`↭`,`\\leftrightsquigarrow`,!0),V(H,G,J,`⇉`,`\\rightrightarrows`,!0),V(H,G,J,`⇄`,`\\rightleftarrows`,!0),V(H,G,J,`↠`,`\\twoheadrightarrow`,!0),V(H,G,J,`↣`,`\\rightarrowtail`,!0),V(H,G,J,`↬`,`\\looparrowright`,!0),V(H,G,J,`↷`,`\\curvearrowright`,!0),V(H,G,J,`↻`,`\\circlearrowright`,!0),V(H,G,J,`↱`,`\\Rsh`,!0),V(H,G,J,`⇊`,`\\downdownarrows`,!0),V(H,G,J,`↾`,`\\upharpoonright`,!0),V(H,G,J,`⇂`,`\\downharpoonright`,!0),V(H,G,J,`⇝`,`\\rightsquigarrow`,!0),V(H,G,J,`⇝`,`\\leadsto`),V(H,G,J,`⇛`,`\\Rrightarrow`,!0),V(H,G,J,`↾`,`\\restriction`),V(H,W,Y,`‘`,"`"),V(H,W,Y,`$`,`\\$`),V(U,W,Y,`$`,`\\$`),V(U,W,Y,`$`,`\\textdollar`),V(H,W,Y,`%`,`\\%`),V(U,W,Y,`%`,`\\%`),V(H,W,Y,`_`,`\\_`),V(U,W,Y,`_`,`\\_`),V(U,W,Y,`_`,`\\textunderscore`),V(H,W,Y,`∠`,`\\angle`,!0),V(H,W,Y,`∞`,`\\infty`,!0),V(H,W,Y,`′`,`\\prime`),V(H,W,Y,`△`,`\\triangle`),V(H,W,Y,`Γ`,`\\Gamma`,!0),V(H,W,Y,`Δ`,`\\Delta`,!0),V(H,W,Y,`Θ`,`\\Theta`,!0),V(H,W,Y,`Λ`,`\\Lambda`,!0),V(H,W,Y,`Ξ`,`\\Xi`,!0),V(H,W,Y,`Π`,`\\Pi`,!0),V(H,W,Y,`Σ`,`\\Sigma`,!0),V(H,W,Y,`Υ`,`\\Upsilon`,!0),V(H,W,Y,`Φ`,`\\Phi`,!0),V(H,W,Y,`Ψ`,`\\Psi`,!0),V(H,W,Y,`Ω`,`\\Omega`,!0),V(H,W,Y,`A`,`Α`),V(H,W,Y,`B`,`Β`),V(H,W,Y,`E`,`Ε`),V(H,W,Y,`Z`,`Ζ`),V(H,W,Y,`H`,`Η`),V(H,W,Y,`I`,`Ι`),V(H,W,Y,`K`,`Κ`),V(H,W,Y,`M`,`Μ`),V(H,W,Y,`N`,`Ν`),V(H,W,Y,`O`,`Ο`),V(H,W,Y,`P`,`Ρ`),V(H,W,Y,`T`,`Τ`),V(H,W,Y,`X`,`Χ`),V(H,W,Y,`¬`,`\\neg`,!0),V(H,W,Y,`¬`,`\\lnot`),V(H,W,Y,`⊤`,`\\top`),V(H,W,Y,`⊥`,`\\bot`),V(H,W,Y,`∅`,`\\emptyset`),V(H,G,Y,`∅`,`\\varnothing`),V(H,W,q,`α`,`\\alpha`,!0),V(H,W,q,`β`,`\\beta`,!0),V(H,W,q,`γ`,`\\gamma`,!0),V(H,W,q,`δ`,`\\delta`,!0),V(H,W,q,`ϵ`,`\\epsilon`,!0),V(H,W,q,`ζ`,`\\zeta`,!0),V(H,W,q,`η`,`\\eta`,!0),V(H,W,q,`θ`,`\\theta`,!0),V(H,W,q,`ι`,`\\iota`,!0),V(H,W,q,`κ`,`\\kappa`,!0),V(H,W,q,`λ`,`\\lambda`,!0),V(H,W,q,`μ`,`\\mu`,!0),V(H,W,q,`ν`,`\\nu`,!0),V(H,W,q,`ξ`,`\\xi`,!0),V(H,W,q,`ο`,`\\omicron`,!0),V(H,W,q,`π`,`\\pi`,!0),V(H,W,q,`ρ`,`\\rho`,!0),V(H,W,q,`σ`,`\\sigma`,!0),V(H,W,q,`τ`,`\\tau`,!0),V(H,W,q,`υ`,`\\upsilon`,!0),V(H,W,q,`ϕ`,`\\phi`,!0),V(H,W,q,`χ`,`\\chi`,!0),V(H,W,q,`ψ`,`\\psi`,!0),V(H,W,q,`ω`,`\\omega`,!0),V(H,W,q,`ε`,`\\varepsilon`,!0),V(H,W,q,`ϑ`,`\\vartheta`,!0),V(H,W,q,`ϖ`,`\\varpi`,!0),V(H,W,q,`ϱ`,`\\varrho`,!0),V(H,W,q,`ς`,`\\varsigma`,!0),V(H,W,q,`φ`,`\\varphi`,!0),V(H,W,K,`∗`,`*`,!0),V(H,W,K,`+`,`+`),V(H,W,K,`−`,`-`,!0),V(H,W,K,`⋅`,`\\cdot`,!0),V(H,W,K,`∘`,`\\circ`,!0),V(H,W,K,`÷`,`\\div`,!0),V(H,W,K,`±`,`\\pm`,!0),V(H,W,K,`×`,`\\times`,!0),V(H,W,K,`∩`,`\\cap`,!0),V(H,W,K,`∪`,`\\cup`,!0),V(H,W,K,`∖`,`\\setminus`,!0),V(H,W,K,`∧`,`\\land`),V(H,W,K,`∨`,`\\lor`),V(H,W,K,`∧`,`\\wedge`,!0),V(H,W,K,`∨`,`\\vee`,!0),V(H,W,Y,`√`,`\\surd`),V(H,W,bf,`⟨`,`\\langle`,!0),V(H,W,bf,`∣`,`\\lvert`),V(H,W,bf,`∥`,`\\lVert`),V(H,W,_f,`?`,`?`),V(H,W,_f,`!`,`!`),V(H,W,_f,`⟩`,`\\rangle`,!0),V(H,W,_f,`∣`,`\\rvert`),V(H,W,_f,`∥`,`\\rVert`),V(H,W,J,`=`,`=`),V(H,W,J,`:`,`:`),V(H,W,J,`≈`,`\\approx`,!0),V(H,W,J,`≅`,`\\cong`,!0),V(H,W,J,`≥`,`\\ge`),V(H,W,J,`≥`,`\\geq`,!0),V(H,W,J,`←`,`\\gets`),V(H,W,J,`>`,`\\gt`,!0),V(H,W,J,`∈`,`\\in`,!0),V(H,W,J,``,`\\@not`),V(H,W,J,`⊂`,`\\subset`,!0),V(H,W,J,`⊃`,`\\supset`,!0),V(H,W,J,`⊆`,`\\subseteq`,!0),V(H,W,J,`⊇`,`\\supseteq`,!0),V(H,G,J,`⊈`,`\\nsubseteq`,!0),V(H,G,J,`⊉`,`\\nsupseteq`,!0),V(H,W,J,`⊨`,`\\models`),V(H,W,J,`←`,`\\leftarrow`,!0),V(H,W,J,`≤`,`\\le`),V(H,W,J,`≤`,`\\leq`,!0),V(H,W,J,`<`,`\\lt`,!0),V(H,W,J,`→`,`\\rightarrow`,!0),V(H,W,J,`→`,`\\to`),V(H,G,J,`≱`,`\\ngeq`,!0),V(H,G,J,`≰`,`\\nleq`,!0),V(H,W,Sf,`\xA0`,`\\ `),V(H,W,Sf,`\xA0`,`\\space`),V(H,W,Sf,`\xA0`,`\\nobreakspace`),V(U,W,Sf,`\xA0`,`\\ `),V(U,W,Sf,`\xA0`,` `),V(U,W,Sf,`\xA0`,`\\space`),V(U,W,Sf,`\xA0`,`\\nobreakspace`),V(H,W,Sf,``,`\\nobreak`),V(H,W,Sf,``,`\\allowbreak`),V(H,W,xf,`,`,`,`),V(H,W,xf,`;`,`;`),V(H,G,K,`⊼`,`\\barwedge`,!0),V(H,G,K,`⊻`,`\\veebar`,!0),V(H,W,K,`⊙`,`\\odot`,!0),V(H,W,K,`⊕`,`\\oplus`,!0),V(H,W,K,`⊗`,`\\otimes`,!0),V(H,W,Y,`∂`,`\\partial`,!0),V(H,W,K,`⊘`,`\\oslash`,!0),V(H,G,K,`⊚`,`\\circledcirc`,!0),V(H,G,K,`⊡`,`\\boxdot`,!0),V(H,W,K,`△`,`\\bigtriangleup`),V(H,W,K,`▽`,`\\bigtriangledown`),V(H,W,K,`†`,`\\dagger`),V(H,W,K,`⋄`,`\\diamond`),V(H,W,K,`⋆`,`\\star`),V(H,W,K,`◃`,`\\triangleleft`),V(H,W,K,`▹`,`\\triangleright`),V(H,W,bf,`{`,`\\{`),V(U,W,Y,`{`,`\\{`),V(U,W,Y,`{`,`\\textbraceleft`),V(H,W,_f,`}`,`\\}`),V(U,W,Y,`}`,`\\}`),V(U,W,Y,`}`,`\\textbraceright`),V(H,W,bf,`{`,`\\lbrace`),V(H,W,_f,`}`,`\\rbrace`),V(H,W,bf,`[`,`\\lbrack`,!0),V(U,W,Y,`[`,`\\lbrack`,!0),V(H,W,_f,`]`,`\\rbrack`,!0),V(U,W,Y,`]`,`\\rbrack`,!0),V(H,W,bf,`(`,`\\lparen`,!0),V(H,W,_f,`)`,`\\rparen`,!0),V(U,W,Y,`<`,`\\textless`,!0),V(U,W,Y,`>`,`\\textgreater`,!0),V(H,W,bf,`⌊`,`\\lfloor`,!0),V(H,W,_f,`⌋`,`\\rfloor`,!0),V(H,W,bf,`⌈`,`\\lceil`,!0),V(H,W,_f,`⌉`,`\\rceil`,!0),V(H,W,Y,`\\`,`\\backslash`),V(H,W,Y,`∣`,`|`),V(H,W,Y,`∣`,`\\vert`),V(U,W,Y,`|`,`\\textbar`,!0),V(H,W,Y,`∥`,`\\|`),V(H,W,Y,`∥`,`\\Vert`),V(U,W,Y,`∥`,`\\textbardbl`),V(U,W,Y,`~`,`\\textasciitilde`),V(U,W,Y,`\\`,`\\textbackslash`),V(U,W,Y,`^`,`\\textasciicircum`),V(H,W,J,`↑`,`\\uparrow`,!0),V(H,W,J,`⇑`,`\\Uparrow`,!0),V(H,W,J,`↓`,`\\downarrow`,!0),V(H,W,J,`⇓`,`\\Downarrow`,!0),V(H,W,J,`↕`,`\\updownarrow`,!0),V(H,W,J,`⇕`,`\\Updownarrow`,!0),V(H,W,yf,`∐`,`\\coprod`),V(H,W,yf,`⋁`,`\\bigvee`),V(H,W,yf,`⋀`,`\\bigwedge`),V(H,W,yf,`⨄`,`\\biguplus`),V(H,W,yf,`⋂`,`\\bigcap`),V(H,W,yf,`⋃`,`\\bigcup`),V(H,W,yf,`∫`,`\\int`),V(H,W,yf,`∫`,`\\intop`),V(H,W,yf,`∬`,`\\iint`),V(H,W,yf,`∭`,`\\iiint`),V(H,W,yf,`∏`,`\\prod`),V(H,W,yf,`∑`,`\\sum`),V(H,W,yf,`⨂`,`\\bigotimes`),V(H,W,yf,`⨁`,`\\bigoplus`),V(H,W,yf,`⨀`,`\\bigodot`),V(H,W,yf,`∮`,`\\oint`),V(H,W,yf,`∯`,`\\oiint`),V(H,W,yf,`∰`,`\\oiiint`),V(H,W,yf,`⨆`,`\\bigsqcup`),V(H,W,yf,`∫`,`\\smallint`),V(U,W,vf,`…`,`\\textellipsis`),V(H,W,vf,`…`,`\\mathellipsis`),V(U,W,vf,`…`,`\\ldots`,!0),V(H,W,vf,`…`,`\\ldots`,!0),V(H,W,vf,`⋯`,`\\@cdots`,!0),V(H,W,vf,`⋱`,`\\ddots`,!0),V(H,W,Y,`⋮`,`\\varvdots`),V(U,W,Y,`⋮`,`\\varvdots`),V(H,W,gf,`ˊ`,`\\acute`),V(H,W,gf,`ˋ`,`\\grave`),V(H,W,gf,`¨`,`\\ddot`),V(H,W,gf,`~`,`\\tilde`),V(H,W,gf,`ˉ`,`\\bar`),V(H,W,gf,`˘`,`\\breve`),V(H,W,gf,`ˇ`,`\\check`),V(H,W,gf,`^`,`\\hat`),V(H,W,gf,`⃗`,`\\vec`),V(H,W,gf,`˙`,`\\dot`),V(H,W,gf,`˚`,`\\mathring`),V(H,W,q,``,`\\@imath`),V(H,W,q,``,`\\@jmath`),V(H,W,Y,`ı`,`ı`),V(H,W,Y,`ȷ`,`ȷ`),V(U,W,Y,`ı`,`\\i`,!0),V(U,W,Y,`ȷ`,`\\j`,!0),V(U,W,Y,`ß`,`\\ss`,!0),V(U,W,Y,`æ`,`\\ae`,!0),V(U,W,Y,`œ`,`\\oe`,!0),V(U,W,Y,`ø`,`\\o`,!0),V(U,W,Y,`Æ`,`\\AE`,!0),V(U,W,Y,`Œ`,`\\OE`,!0),V(U,W,Y,`Ø`,`\\O`,!0),V(U,W,gf,`ˊ`,`\\'`),V(U,W,gf,`ˋ`,"\\`"),V(U,W,gf,`ˆ`,`\\^`),V(U,W,gf,`˜`,`\\~`),V(U,W,gf,`ˉ`,`\\=`),V(U,W,gf,`˘`,`\\u`),V(U,W,gf,`˙`,`\\.`),V(U,W,gf,`¸`,`\\c`),V(U,W,gf,`˚`,`\\r`),V(U,W,gf,`ˇ`,`\\v`),V(U,W,gf,`¨`,`\\"`),V(U,W,gf,`˝`,`\\H`),V(U,W,gf,`◯`,`\\textcircled`);var Cf={"--":!0,"---":!0,"``":!0,"''":!0};V(U,W,Y,`–`,`--`,!0),V(U,W,Y,`–`,`\\textendash`),V(U,W,Y,`—`,`---`,!0),V(U,W,Y,`—`,`\\textemdash`),V(U,W,Y,`‘`,"`",!0),V(U,W,Y,`‘`,`\\textquoteleft`),V(U,W,Y,`’`,`'`,!0),V(U,W,Y,`’`,`\\textquoteright`),V(U,W,Y,`“`,"``",!0),V(U,W,Y,`“`,`\\textquotedblleft`),V(U,W,Y,`”`,`''`,!0),V(U,W,Y,`”`,`\\textquotedblright`),V(H,W,Y,`°`,`\\degree`,!0),V(U,W,Y,`°`,`\\degree`),V(U,W,Y,`°`,`\\textdegree`,!0),V(H,W,Y,`£`,`\\pounds`),V(H,W,Y,`£`,`\\mathsterling`,!0),V(U,W,Y,`£`,`\\pounds`),V(U,W,Y,`£`,`\\textsterling`,!0),V(H,G,Y,`✠`,`\\maltese`),V(U,G,Y,`✠`,`\\maltese`);for(var wf=`0123456789/@."`,Tf=0;Tf<wf.length;Tf++){var Ef=wf.charAt(Tf);V(H,W,Y,Ef,Ef)}for(var Df=`0123456789!@*()-=+";:?/.,`,Of=0;Of<Df.length;Of++){var kf=Df.charAt(Of);V(U,W,Y,kf,kf)}for(var Af=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,jf=0;jf<Af.length;jf++){var Mf=Af.charAt(jf);V(H,W,q,Mf,Mf),V(U,W,Y,Mf,Mf)}V(H,G,Y,`C`,`ℂ`),V(U,G,Y,`C`,`ℂ`),V(H,G,Y,`H`,`ℍ`),V(U,G,Y,`H`,`ℍ`),V(H,G,Y,`N`,`ℕ`),V(U,G,Y,`N`,`ℕ`),V(H,G,Y,`P`,`ℙ`),V(U,G,Y,`P`,`ℙ`),V(H,G,Y,`Q`,`ℚ`),V(U,G,Y,`Q`,`ℚ`),V(H,G,Y,`R`,`ℝ`),V(U,G,Y,`R`,`ℝ`),V(H,G,Y,`Z`,`ℤ`),V(U,G,Y,`Z`,`ℤ`),V(H,W,q,`h`,`ℎ`),V(U,W,q,`h`,`ℎ`);for(var Nf,Pf=0;Pf<Af.length;Pf++){var Ff=Af.charAt(Pf);Nf=String.fromCharCode(55349,56320+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56372+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56424+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56580+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56684+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56736+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56788+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56840+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56944+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Pf<26&&(Nf=String.fromCharCode(55349,56632+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf),Nf=String.fromCharCode(55349,56476+Pf),V(H,W,q,Ff,Nf),V(U,W,Y,Ff,Nf))}Nf=String.fromCharCode(55349,56668),V(H,W,q,`k`,Nf),V(U,W,Y,`k`,Nf);for(var If=0;If<10;If++){var Lf=If.toString();Nf=String.fromCharCode(55349,57294+If),V(H,W,q,Lf,Nf),V(U,W,Y,Lf,Nf),Nf=String.fromCharCode(55349,57314+If),V(H,W,q,Lf,Nf),V(U,W,Y,Lf,Nf),Nf=String.fromCharCode(55349,57324+If),V(H,W,q,Lf,Nf),V(U,W,Y,Lf,Nf),Nf=String.fromCharCode(55349,57334+If),V(H,W,q,Lf,Nf),V(U,W,Y,Lf,Nf)}for(var Rf=`ÐÞþ`,zf=0;zf<Rf.length;zf++){var Bf=Rf.charAt(zf);V(H,W,q,Bf,Bf),V(U,W,Y,Bf,Bf)}var Vf={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Hf={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Uf={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},Wf={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Gf={mathClass:``,textClass:``,font:``},Kf={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},qf={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Jf={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Yf={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Xf={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Zf={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},Qf={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},$f=[Vf,Vf,Hf,Hf,Uf,Uf,Wf,Gf,Gf,Gf,Kf,Kf,qf,qf,Jf,Jf,Yf,Yf,Xf,Xf,Zf,Zf,Gf,Gf,Qf,Qf],ep=[Vf,Gf,Yf,Xf,Qf],tp=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return $f[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return ep[Math.floor((r-120782)/10)];if(r===120485||r===120486)return $f[0];if(120486<r&&r<120782)return Gf;throw new z(`Unsupported character: `+e)},np=function(e,t,n){if(hf[n][e]){var r=hf[n][e].replace;r&&(e=r)}return{value:e,metrics:ff(e,t,n)}},rp=function(e,t,n,r,i){var a=np(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new ef(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new ef(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},ip=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&np(e,`Main-Bold`,t).metrics?rp(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||hf[t][e].font===`main`?rp(e,`Main-Regular`,t,n,r):rp(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},ap=function(e,t,n){return n!==`textord`&&np(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},op=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=tp(i);f=m.font,p=m[r+`Class`]}if(f)return rp(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=ap(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=yp[o].fontName,g=[o]):(h=vp(s,c,l),g=[s,c,l]);if(np(i,h,r).metrics)return rp(i,h,r,t,a.concat(g));if(Cf.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(rp(i[y],h,r,t,a.concat(g)));return pp(v)}}if(n===`mathord`)return rp(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=hf[r][i]&&hf[r][i].font;if(b===`ams`)return rp(i,vp(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return rp(i,vp(`textrm`,c,l),r,t,a.concat(c,l));var x=vp(b,c,l);return rp(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},sp=(e,t)=>{if(Wd(e.classes)!==Wd(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},cp=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof ef&&r instanceof ef&&sp(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},lp=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},X=function(e,t,n,r){var i=new Xd(e,t,n,r);return lp(i),i},up=(e,t,n,r)=>new Xd(e,t,n,r),dp=function(e,t,n){var r=X([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=B(r.height),r.maxFontSize=1,r},fp=function(e,t,n,r){var i=new Zd(e,t,n,r);return lp(i),i},pp=function(e){var t=new zd(e);return lp(t),t},mp=function(e,t){return e instanceof zd?X([],[e],t):e},hp=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},gp=function(e,t){for(var{children:n,depth:r}=hp(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=X([`pstrut`],[]);c.style.height=B(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=X(g,[c,h],void 0,_);v.style.top=B(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=X([`vlist`],l);y.style.height=B(d);var b;if(u<0){var x=X([`vlist`],[X([],[])]);x.style.height=B(-u),b=[X([`vlist-r`],[y,X([`vlist-s`],[new ef(`​`)])]),X([`vlist-r`],[x])]}else b=[X([`vlist-r`],[y])];var S=X([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},_p=(e,t)=>{var n=X([`mspace`],[],t),r=Ud(e,t);return n.style.marginRight=B(r),n},vp=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},yp={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},bp={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},xp=function(e,t){var[n,r,i]=bp[e],a=up([`overlay`],[new tf([new nf(n)],{width:B(r),height:B(i),style:`width:`+B(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=B(i),a.style.width=B(r),a},Sp={number:3,unit:`mu`},Cp={number:4,unit:`mu`},wp={number:5,unit:`mu`},Tp={mord:{mop:Sp,mbin:Cp,mrel:wp,minner:Sp},mop:{mord:Sp,mop:Sp,mrel:wp,minner:Sp},mbin:{mord:Cp,mop:Cp,mopen:Cp,minner:Cp},mrel:{mord:wp,mop:wp,mopen:wp,minner:wp},mopen:{},mclose:{mop:Sp,mbin:Cp,mrel:wp,minner:Sp},mpunct:{mord:Sp,mop:Sp,mrel:wp,mopen:Sp,mclose:Sp,mpunct:Sp,minner:Sp},minner:{mord:Sp,mop:Sp,mbin:Cp,mrel:wp,mopen:Sp,mpunct:Sp,minner:Sp}},Ep={mord:{mop:Sp},mop:{mord:Sp,mop:Sp},mbin:{},mrel:{},mopen:{},mclose:{mop:Sp},mpunct:{},minner:{mop:Sp}},Dp={},Op={},kp={};function Z(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)Dp[n[c]]=s;t&&(a&&(Op[t]=a),o&&(kp[t]=o))}function Ap(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Z({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var jp=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Mp=function(e){return e.type===`ordgroup`?e.body:[e]},Np=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Pp=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Fp={display:bd.DISPLAY,text:bd.TEXT,script:bd.SCRIPT,scriptscript:bd.SCRIPTSCRIPT},Ip={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Lp=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Up(e[a],t);if(o instanceof zd){var s=o.children;i.push(...s)}else i.push(o)}if(cp(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(Fp[l.style]))}var u=X([r[0]||`leftmost`],[],t),d=X([r[1]||`rightmost`],[],t),f=n===`root`;return Rp(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Pp.has(r)?t.classes[0]=`mord`:r===`mbin`&&Np.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Rp(i,(e,t)=>{var n=Vp(t),r=Vp(e),i=n&&r?e.hasClass(`mtight`)?Ep[n]?.[r]:Tp[n]?.[r]:null;if(i)return _p(i,c)},{node:u},d,f),i},Rp=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=zp(o);if(s){Rp(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=X([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},zp=function(e){return e instanceof zd||e instanceof Zd||e instanceof Xd&&e.hasClass(`enclosing`)?e:null},Bp=function(e,t){var n=zp(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Bp(r[r.length-1],`right`);if(t===`left`)return Bp(r[0],`left`)}}return e},Vp=function(e,t){return e?(t&&(e=Bp(e,t)),Ip[e.classes[0]]||null):null},Hp=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return X(t.concat(n))},Up=function(e,t,n){if(!e)return X();if(Op[e.type]){var r=Op[e.type](e,t);if(n&&t.size!==n.size){r=X(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new z(`Got group of unknown type: '`+e.type+`'`)};function Wp(e,t){var n=X([`base`],e,t),r=X([`strut`]);return r.style.height=B(n.height+n.depth),n.depth&&(r.style.verticalAlign=B(-n.depth)),n.children.unshift(r),n}function Gp(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Lp(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(Wp(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Wp(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Wp(o,t));var l;n?(l=Wp(Lp(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=X([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=B(u.height+u.depth),u.depth&&(d.style.verticalAlign=B(-u.depth))}return u}function Kp(e){return new zd(e)}var Q=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Wd(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof qp&&this.children[n+1]instanceof qp){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof qp;)r+=this.children[++n].toText();e.appendChild(new qp(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=Ju(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+Ju(Wd(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},qp=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ju(this.toText())}toText(){return this.text}},Jp=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,B(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+B(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Yp=new Set([`\\imath`,`\\jmath`]),Xp=new Set([`mrow`,`mtable`]),Zp=function(e,t,n){return hf[t][e]&&hf[t][e].replace&&e.charCodeAt(0)!==55349&&!(Cf.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=hf[t][e].replace),new qp(e)},Qp=function(e){return e.length===1?e[0]:new Q(`mrow`,e)},$p={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},em=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=$p[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Yp.has(a))return null;if(hf[r][a]){var o=hf[r][a].replace;o&&(a=o)}var s=yp[n].fontName;return ff(a,s,r)?yp[n].variant:null};function tm(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof qp&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof qp&&n.text===`,`}return!1}var nm=function(e,t,n){if(e.length===1){var r=im(e[0],t);return n&&r instanceof Q&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=im(e[o],t);if(s instanceof Q&&a instanceof Q){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}if(tm(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&tm(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||tm(a))){var c=s.children[0];c instanceof Q&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof qp&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof qp&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},rm=function(e,t,n){return Qp(nm(e,t,n))},im=function(e,t){if(!e)return new Q(`mrow`);if(kp[e.type])return kp[e.type](e,t);throw new z(`Got group of unknown type: '`+e.type+`'`)};function am(e,t,n,r,i){var a=nm(e,n),o=a.length===1&&a[0]instanceof Q&&Xp.has(a[0].type)?a[0]:new Q(`mrow`,a),s=new Q(`annotation`,[new qp(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q(`math`,[new Q(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),X([i?`katex`:`katex-mathml`],[c])}var om=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],sm=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],cm=function(e,t){return t.size<2?e:om[e-1][t.size-1]},lm=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=sm[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:cm(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:sm[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=cm(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=mf(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};lm.BASESIZE=6;var um=function(e){return new lm({style:e.displayMode?bd.DISPLAY:bd.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},dm=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=X(n,[e])}return e},fm=function(e,t,n){var r=um(n),i;return n.output===`mathml`?am(e,t,r,n.displayMode,!0):(i=n.output===`html`?X([`katex`],[Gp(e,r)]):X([`katex`],[am(e,t,r,n.displayMode,!1),Gp(e,r)]),dm(i,n))},pm=function(e,t,n){return dm(X([`katex`],[Gp(e,um(n))]),n)},mm={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},hm=function(e){var t=new Q(`mo`,[new qp(mm[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},gm={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},_m=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),vm=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(_m.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:up([],[new tf([new nf(o)],{width:`100%`,height:B(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=gm[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
321
+ `+h+` children.`);for(var v=0;v<h;v++){var y=new tf([new nf(d[v])],{width:`400em`,height:B(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=up([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=B(m),l.push(b)}return{span:X([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=B(a),i>0&&(r.style.minWidth=B(i)),r},ym=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=X([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new rf({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new rf({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=up([],[new tf(c,{width:`100%`,height:B(o)})],i)}return a.height=o,a.style.height=B(o),a},bm={bin:1,close:1,inner:1,open:1,punct:1,rel:1},xm={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function Sm(e){return e in bm}function Cm(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function wm(e){var t=Tm(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Tm(e){return e&&(e.type===`atom`||xm.hasOwnProperty(e.type))?e:null}var Em=e=>{if(e instanceof ef)return e;if(sf(e)&&e.children.length===1)return Em(e.children[0])},Dm=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Cm(e.base,`accent`),n=r.base,e.base=n,i=of(Up(e,t)),e.base=r):(r=Cm(e,`accent`),n=r.base);var a=Up(n,t.havingCrampedStyle()),o=r.isShifty&&Zu(n),s=0;o&&(s=Em(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=vm(r,t),u=gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+B(2*s)+`)`,marginLeft:B(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=xp(`vec`,t),f=bp.vec[1]):(d=op({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=af(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=X([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=B(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=X([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},Om=(e,t)=>{var n=e.isStretchy?hm(e.label):new Q(`mo`,[Zp(e.label,e.mode)]),r=new Q(`mover`,[im(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},km=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Z({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=jp(t[0]),r=!km.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Dm,mathmlBuilder:Om}),Z({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Dm,mathmlBuilder:Om}),Z({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Up(e.base,t),r=vm(e,t),i=e.label===`\\utilde`?.12:0;return X([`mord`,`accentunder`],[gp({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=hm(e.label),r=new Q(`munder`,[im(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Am=e=>{var t=new Q(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Z({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=mp(Up(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=mp(Up(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=vm(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=gp({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=gp({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return X([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=hm(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Am(im(e.body,t));r=e.below?new Q(`munderover`,[n,Am(im(e.below,t)),i]):new Q(`mover`,[n,i])}else e.below?r=new Q(`munder`,[n,Am(im(e.below,t))]):(r=Am(),r=new Q(`mover`,[n,r]));return r}});function jm(e,t){var n=Lp(e.body,t,!0);return X([e.mclass],n,t)}function Mm(e,t){var n,r=nm(e.body,t);return e.mclass===`minner`?n=new Q(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}Z({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Mp(i),isCharacterBox:Zu(i)}},htmlBuilder:jm,mathmlBuilder:Mm});var Nm=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};Z({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:Nm(t[0]),body:Mp(t[1]),isCharacterBox:Zu(t[1])}}}),Z({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Nm(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Mp(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Zu(c)}},htmlBuilder:jm,mathmlBuilder:Mm}),Z({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:Nm(t[0]),body:Mp(t[0])}},htmlBuilder(e,t){var n=Lp(e.body,t,!0),r=X([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Q(`mstyle`,nm(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var Pm={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Fm=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Im=e=>e.type===`textord`&&e.text===`@`,Lm=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function Rm(e,t,n){var r=Pm[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function zm(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new z(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Fm(),c=0;c<o.length;c++)if(!Im(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=wm(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(Lm(o[p],l)){f=!1,c=p;break}if(Im(o[p]))throw new z(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new z(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new z(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[Rm(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=Fm()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}Z({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=mp(Up(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=B(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Q(`mrow`,[im(e.label,t)]);return n=new Q(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Q(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Z({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=mp(Up(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Q(`mrow`,[im(e.fragment,t)])}}),Z({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Cm(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=Cm(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new z(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new z(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var Bm=(e,t)=>pp(Lp(e.body,t.withColor(e.color),!1)),Vm=(e,t)=>{var n=new Q(`mstyle`,nm(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Z({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=Cm(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Mp(i)}},htmlBuilder:Bm,mathmlBuilder:Vm}),Z({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Cm(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:Bm,mathmlBuilder:Vm}),Z({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&Cm(i,`size`).value}},htmlBuilder(e,t){var n=X([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=B(Ud(e.size,t)))),n},mathmlBuilder(e,t){var n=new Q(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,B(Ud(e.size,t)))),n}});var Hm={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Um=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new z(`Expected a control sequence`,e);return t},Wm=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Gm=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Z({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Hm[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Hm[r.text]),Cm(t.parseFunction(),`internal`);throw new z(`Invalid token after macro prefix`,r)}}),Z({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new z(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new z(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new z(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new z(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Hm[n]),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Um(t.gullet.popToken());return t.gullet.consumeSpaces(),Gm(t,r,Wm(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Um(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Gm(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Km=function(e,t,n){var r=ff(hf.math[e]&&hf.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},qm=function(e,t,n,r){var i=n.havingBaseStyle(t),a=X(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Jm=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=B(i),e.height-=i,e.depth+=i},Ym=function(e,t,n,r,i,a){var o=qm(rp(e,`Main-Regular`,i,r),t,r,a);return n&&Jm(o,r,t),o},Xm=function(e,t,n,r){return rp(e,`Size`+t+`-Regular`,n,r)},Zm=function(e,t,n,r,i,a){var o=Xm(e,t,i,r),s=qm(X([`delimsizing`,`size`+t],[o],r),bd.TEXT,r,a);return n&&Jm(s,r,bd.TEXT),s},Qm=function(e,t,n){return{type:`elem`,elem:X([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[X([],[rp(e,t,n)])])}},$m=function(e,t,n){var r=cf[`Size4-Regular`][e.charCodeAt(0)]?cf[`Size4-Regular`][e.charCodeAt(0)][4]:cf[`Size1-Regular`][e.charCodeAt(0)][4],i=up([],[new tf([new nf(`inner`,Fd(e,Math.round(1e3*t)))],{width:B(r),height:B(t),style:`width:`+B(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=B(t),i.style.width=B(r),{type:`elem`,elem:i}},eh=.008,th={type:`kern`,size:-1*eh},nh=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),rh=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),ih=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):nh.has(e)?(c=`∣`,u=`vert`,d=333):rh.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Km(o,f,i),m=p.height+p.depth,h=Km(c,f,i),g=h.height+h.depth,_=Km(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Km(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var w=C/2-ee,T=[];if(u.length>0){var te=C-m-v,ne=Math.round(C*1e3),re=Ld(u,Math.round(te*1e3)),E=new nf(u,re),ie=B(d/1e3),ae=B(ne/1e3),oe=up([],[new tf([E],{width:ie,height:ae,viewBox:`0 0 `+d+` `+ne})],r);oe.height=ne/1e3,oe.style.width=ie,oe.style.height=ae,T.push({type:`elem`,elem:oe})}else{if(T.push(Qm(l,f,i)),T.push(th),s===null){var se=C-m-v+2*eh;T.push($m(c,se,r))}else{var D=(C-m-v-y)/2+2*eh;T.push($m(c,D,r)),T.push(th),T.push(Qm(s,f,i)),T.push(th),T.push($m(c,D,r))}T.push(th),T.push(Qm(o,f,i))}var ce=r.havingBaseStyle(bd.TEXT);return qm(X([`delimsizing`,`mult`],[gp({positionType:`bottom`,positionData:w,children:T})],ce),bd.TEXT,r,a)},ah=80,oh=.08,sh=function(e,t,n,r,i){return up([`hide-tail`],[new tf([new nf(e,Pd(e,r,n))],{width:`400em`,height:B(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},ch=function(e,t){var n=t.havingBaseSizing(),r=vh(`\\surd`,e*n.sizeMultiplier,gh,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+ah,e<1?i=1:e<1.4&&(i=.7),s=(1+a+oh)/i,c=(1+a)/i,o=sh(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+ah)*fh[r.size],c=(fh[r.size]+a)/i,s=(fh[r.size]+a+oh)/i,o=sh(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+oh,c=e+a,l=Math.floor(1e3*e+a)+ah,o=sh(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=B(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},lh=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),uh=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),dh=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),fh=[0,1.2,1.8,2.4,3],ph=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),lh.has(e)||dh.has(e))return Zm(e,t,!1,n,r,i);if(uh.has(e))return ih(e,fh[t],!1,n,r,i);throw new z(`Illegal delimiter: '`+e+`'`)},mh=[{type:`small`,style:bd.SCRIPTSCRIPT},{type:`small`,style:bd.SCRIPT},{type:`small`,style:bd.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],hh=[{type:`small`,style:bd.SCRIPTSCRIPT},{type:`small`,style:bd.SCRIPT},{type:`small`,style:bd.TEXT},{type:`stack`}],gh=[{type:`small`,style:bd.SCRIPTSCRIPT},{type:`small`,style:bd.SCRIPT},{type:`small`,style:bd.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],_h=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},vh=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Km(e,_h(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},yh=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=dh.has(e)?mh:lh.has(e)?gh:hh,s=vh(e,t,o,r);return s.type===`small`?Ym(e,s.style,n,r,i,a):s.type===`large`?Zm(e,s.size,n,r,i,a):ih(e,t,n,r,i,a)},bh=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return yh(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},xh={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},Sh=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Ch(e){return`isMiddle`in e}function wh(e,t){var n=Tm(e);if(n&&Sh.has(n.text))return n;throw n?new z(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new z(`Invalid delimiter type '`+e.type+`'`,e)}Z({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=wh(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:xh[e.funcName].size,mclass:xh[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?X([e.mclass]):ph(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Zp(e.delim,e.mode));var n=new Q(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=B(fh[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Th(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Z({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new z(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:wh(t[0],e).text,color:n}}}),Z({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=wh(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Cm(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Th(e);for(var n=Lp(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Ch(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?Hp(t,[`mopen`]):bh(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(Ch(u)){var d=u.isMiddle;n[l]=bh(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Hp(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=bh(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),X([`minner`],n,t)},mathmlBuilder:(e,t)=>{Th(e);var n=nm(e.body,t);if(e.left!==`.`){var r=new Q(`mo`,[Zp(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Q(`mo`,[Zp(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Qp(n)}}),Z({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=wh(t[0],e);if(!e.parser.leftrightDepth)throw new z(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Hp(t,[]):(n=ph(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Q(`mo`,[e.delim===`\\vert`||e.delim===`|`?Zp(`|`,`text`):Zp(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var Eh=(e,t)=>{var n=mp(Up(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Zu(e.body);if(r===`sout`)a=X([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Ud({number:.6,unit:`pt`},t),l=Ud({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=B(d/2+c);var f=Math.floor(1e3*d*i);a=up([`hide-tail`],[new tf([new nf(`phase`,Md(f))],{width:`400em`,height:B(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=B(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=ym(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=B(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=B(h),a.style.borderRightWidth=B(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=gp({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=gp({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?X([`mord`,`cancel-lap`],[g],t):X([`mord`],[g],t)},Dh=(e,t)=>{var n,r=new Q(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[im(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+B(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Z({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Cm(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Eh,mathmlBuilder:Dh}),Z({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Cm(t[0],`color-token`).color,o=Cm(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Eh,mathmlBuilder:Dh}),Z({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),Z({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Eh,mathmlBuilder:Dh}),Z({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Eh,mathmlBuilder:Dh}),Z({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var Oh={};function kh(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Oh[n[c]]=s;a&&(Op[t]=a),o&&(kp[t]=o)}var Ah={};function $(e,t){Ah[e]=t}var jh=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Mh=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,jh.range(this,t))}};function Nh(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var Ph=e=>{if(!e.parser.settings.displayMode)throw new z(`{`+e.envName+`} can be used only in display mode.`)},Fh=new Set([`gather`,`gather*`]);function Ih(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Lh(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new z(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Mh(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Nh(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new z(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var ee=void 0;e.gullet.future().text!==` `&&(ee=e.parseSizeGroup(!0)),g.push(ee?ee.value:null),b(),_.push(Nh(e)),m=[],h.push(m),y()}else throw new z(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Rh(e){return e.slice(0,1)===`d`?`display`:`text`}var zh=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(bd.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Ud({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=Up(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var ee=e.rowGaps[n],w=0;ee&&(w=Ud(ee,t),w>0&&(w+=g,x<w&&(x=w),w=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+w,s[n]=S,v(a[n+1])}var T=_/2+t.fontMetrics().axisHeight,te=e.cols||[],ne=[],re,E,ie=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ae=s[n],oe=ae.pos-T,se=e.tags[n],D=void 0;D=se===!0?X([`eqn-num`],[],t):se===!1?X([],[],t):X([],Lp(se,t,!0),t),D.depth=ae.depth,D.height=ae.height,ie.push({type:`elem`,elem:D,shift:oe})}for(r=0,E=0;r<o||E<te.length;++r,++E){for(var ce=te[E],le=!0;(ue=ce)?.type===`separator`;){var ue;if(le||(re=X([`arraycolsep`],[]),re.style.width=B(t.fontMetrics().doubleRuleSep),ne.push(re)),ce.separator===`|`||ce.separator===`:`){var O=ce.separator===`|`?`solid`:`dashed`,de=X([`vertical-separator`],[],t);de.style.height=B(_),de.style.borderRightWidth=B(l),de.style.borderRightStyle=O,de.style.margin=`0 `+B(-l/2);var fe=_-T;fe&&(de.style.verticalAlign=B(-fe)),ne.push(de)}else throw new z(`Invalid separator type: `+ce.separator);E++,ce=te[E],le=!1}if(!(r>=o)){var k=void 0;(r>0||e.hskipBeforeAndAfter)&&(k=ce?.pregap??d,k!==0&&(re=X([`arraycolsep`],[]),re.style.width=B(k),ne.push(re)));var A=[];for(n=0;n<i;++n){var pe=s[n],me=pe.cells[r];if(me){var he=pe.pos-T;me.depth=pe.depth,me.height=pe.height,A.push({type:`elem`,elem:me,shift:he})}}var ge=gp({positionType:`individualShift`,children:A}),_e=X([`col-align-`+(ce?.align||`c`)],[ge]);ne.push(_e),(r<o-1||e.hskipBeforeAndAfter)&&(k=ce?.postgap??d,k!==0&&(re=X([`arraycolsep`],[]),re.style.width=B(k),ne.push(re)))}}var j=X([`mtable`],ne);if(c.length>0){for(var ve=dp(`hline`,t,l),M=dp(`hdashline`,t,l),ye=[{type:`elem`,elem:j,shift:0}];c.length>0;){var be=c.pop(),xe=be.pos-T;be.isDashed?ye.push({type:`elem`,elem:M,shift:xe}):ye.push({type:`elem`,elem:ve,shift:xe})}j=gp({positionType:`individualShift`,children:ye})}if(ie.length===0)return X([`mord`],[j],t);var Se=X([`tag`],[gp({positionType:`individualShift`,children:ie})],t);return pp([j,Se])},Bh={c:`center `,l:`left `,r:`right `},Vh=function(e,t){for(var n=[],r=new Q(`mtd`,[],[`mtr-glue`]),i=new Q(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Q(`mtd`,[im(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Q(`mtr`,s))}var l=new Q(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,B(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Bh[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,ee=e.hLinesBeforeRow;d+=ee[0].length>0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var w=1;w<ee.length-1;w++)C+=ee[w].length===0?`none `:ee[w][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Q(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Q(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Hh=function(e,t){e.envName.includes(`ed`)||Ph(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Lh(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Ih(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=Cm(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Cm(Cm(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new z(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};kh({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Tm(t[0])?[t[0]]:Cm(t[0],`ordgroup`).body).map(function(e){var t=wm(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new z(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Lh(e.parser,r,Rh(e.envName))},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new z(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Lh(e.parser,r,Rh(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Lh(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Tm(t[0])?[t[0]]:Cm(t[0],`ordgroup`).body).map(function(e){var t=wm(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new z(`Unknown column alignment: `+t,e)});if(n.length>1)throw new z(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Lh(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new z(`{subarray} can contain only one column`);return i},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Lh(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Rh(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Hh,htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Fh.has(e.envName)&&Ph(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Ih(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lh(e.parser,t,`display`)},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Hh,htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Ph(e);var t={autoTag:Ih(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lh(e.parser,t,`display`)},htmlBuilder:zh,mathmlBuilder:Vh}),kh({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Ph(e),zm(e.parser)},htmlBuilder:zh,mathmlBuilder:Vh}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),Z({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new z(e.funcName+` valid only within array environment`)}});var Uh=Oh;Z({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new z(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=Cm(i.body[o],`textord`).text;if(r===`\\begin`){if(!Uh.hasOwnProperty(a))throw new z(`No such environment: `+a,i);var s=Uh[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Cm(n.parseFunction(),`environment`);if(p.name!==a)throw new z(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Wh=(e,t)=>{var n=e.font,r=t.withFont(n);return Up(e.body,r)},Gh=(e,t)=>{var n=e.font,r=t.withFont(n);return im(e.body,r)},Kh={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Z({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=jp(t[0]),a=r;return a in Kh&&(a=Kh[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Wh,mathmlBuilder:Gh}),Z({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Nm(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Zu(r)}}}),Z({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:Wh,mathmlBuilder:Gh});var qh=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Up(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Up(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Ud(e.barSize,t),u=dp(`frac-line`,t,d)):u=dp(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===bd.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=gp({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=gp({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===bd.DISPLAY.size?t.fontMetrics().delim1:n.size===bd.SCRIPTSCRIPT.size?t.havingStyle(bd.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Hp(t,[`mopen`]):yh(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?X([]):e.rightDelim==null?Hp(t,[`mclose`]):yh(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return X([`mord`].concat(a.sizingClasses(t)),[x,X([`mfrac`],[g]),S],t)},Jh=(e,t)=>{var n=new Q(`mfrac`,[im(e.numer,t),im(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Ud(e.barSize,t);n.setAttribute(`linethickness`,B(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Q(`mo`,[new qp(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Q(`mo`,[new qp(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Qp(i)}return n},Yh=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Z({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),Yh({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:qh,mathmlBuilder:Jh}),Z({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var Xh=[`display`,`text`,`script`,`scriptscript`],Zh=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Z({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=jp(t[0]),o=a.type===`atom`&&a.family===`open`?Zh(a.text):null,s=jp(t[1]),c=s.type===`atom`&&s.family===`close`?Zh(s.text):null,l=Cm(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Cm(p.body[0],`textord`);f=Xh[Number(m.text)]}}else p=Cm(p,`textord`),f=Xh[Number(p.text)];return Yh({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Z({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Cm(t[0],`size`).value,token:i}}}),Z({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Cm(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Qh=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Up(e.sup,t.havingStyle(n.sup()),t):Up(e.sub,t.havingStyle(n.sub()),t),i=Cm(e.base,`horizBrace`)):i=Cm(e,`horizBrace`);var a=Up(i.base,t.havingBaseStyle(bd.DISPLAY)),o=vm(i,t),s=i.isOver?gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):gp({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=X([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):gp({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return X([`minner`,i.isOver?`mover`:`munder`],[s],t)};Z({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Qh,mathmlBuilder:(e,t)=>{var n=hm(e.label);return new Q(e.isOver?`mover`:`munder`,[im(e.base,t),n])}}),Z({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Cm(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Mp(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Lp(e.body,t,!1);return fp(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=rm(e.body,t);return n instanceof Q||(n=new Q(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Z({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Cm(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:Mp(s)}}}),Z({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:Mp(t[0])}},htmlBuilder(e,t){return pp(Lp(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Q(`mrow`,nm(e.body,t.withFont(``)))}}),Z({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=Cm(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new z(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:Mp(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Lp(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=X(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>rm(e.body,t)}),Z({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:Mp(t[0]),mathml:Mp(t[1])}},htmlBuilder:(e,t)=>pp(Lp(e.html,t,!1)),mathmlBuilder:(e,t)=>rm(e.mathml,t)});var $h=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new z(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Hd(n))throw new z(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Z({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Cm(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=$h(d);break;case`height`:a=$h(d);break;case`totalheight`:o=$h(d);break;default:throw new z(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Cm(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Ud(e.height,t),r=0;e.totalheight.number>0&&(r=Ud(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Ud(e.width,t));var a={height:B(n+r)};i>0&&(a.width=B(i)),r>0&&(a.verticalAlign=B(-r));var o=new Qd(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Q(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Ud(e.height,t),i=0;if(e.totalheight.number>0&&(i=Ud(e.totalheight,t)-r,n.setAttribute(`valign`,B(-i))),n.setAttribute(`height`,B(r+i)),e.width.number>0){var a=Ud(e.width,t);n.setAttribute(`width`,B(a))}return n.setAttribute(`src`,e.src),n}}),Z({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Cm(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return _p(e.dimension,t)},mathmlBuilder(e,t){return new Jp(Ud(e.dimension,t))}}),Z({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=X([],[Up(e.body,t)]),n=X([`inner`],[n],t)):n=X([`inner`],[Up(e.body,t)]);var r=X([`fix`],[]),i=X([e.alignment],[n,r],t),a=X([`strut`]);return a.style.height=B(i.height+i.depth),i.depth&&(a.style.verticalAlign=B(-i.depth)),i.children.unshift(a),i=X([`thinbox`],[i],t),X([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[im(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Z({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Z({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new z(`Mismatched `+e.funcName)}});var eg=(e,t)=>{switch(t.style.size){case bd.DISPLAY.size:return e.display;case bd.TEXT.size:return e.text;case bd.SCRIPT.size:return e.script;case bd.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Z({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Mp(t[0]),text:Mp(t[1]),script:Mp(t[2]),scriptscript:Mp(t[3])}},htmlBuilder:(e,t)=>pp(Lp(eg(e,t),t,!1)),mathmlBuilder:(e,t)=>rm(eg(e,t),t)});var tg=(e,t,n,r,i,a,o)=>{e=X([],[e]);var s=n&&Zu(n),c,l;if(t){var u=Up(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Up(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=gp({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:B(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:B(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=gp({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:B(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=gp({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:B(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=X([`mspace`],[],r);m.style.marginRight=B(a),p.unshift(m)}return X([`mop`,`op-limits`],p,r)},ng=new Set([`\\smallint`]),rg=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Cm(e.base,`op`),i=!0):a=Cm(e,`op`);var o=t.style,s=!1;o.size===bd.DISPLAY.size&&a.symbol&&!ng.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=rp(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=xp(d+`Size`+(s?`2`:`1`),t);c=gp({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=Lp(a.body,t,!0);p.length===1&&p[0]instanceof ef?(c=p[0],c.classes[0]=`mop`):c=X([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(ip(a.name[h],a.mode,t));c=X([`mop`],m,t)}var g=0,_=0;return(c instanceof ef||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?tg(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=B(g)),c)},ig=(e,t)=>{var n;if(e.symbol)n=new Q(`mo`,[Zp(e.name,e.mode)]),ng.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Q(`mo`,nm(e.body,t));else{n=new Q(`mi`,[new qp(e.name.slice(1))]);var r=new Q(`mo`,[Zp(`⁡`,`text`)]);n=e.parentIsSupSub?new Q(`mrow`,[n,r]):Kp([n,r])}return n},ag={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Z({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=ag[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rg,mathmlBuilder:ig}),Z({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Mp(r)}},htmlBuilder:rg,mathmlBuilder:ig});var og={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Z({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rg,mathmlBuilder:ig}),Z({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rg,mathmlBuilder:ig}),Z({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=og[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rg,mathmlBuilder:ig});var sg=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Cm(e.base,`operatorname`),i=!0):a=Cm(e,`operatorname`);var o;if(a.body.length>0){for(var s=Lp(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof ef&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=X([`mop`],s,t)}else o=X([`mop`],[],t);return i?tg(o,n,r,t,t.style,0,0):o};Z({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:Mp(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:sg,mathmlBuilder:(e,t)=>{for(var n=nm(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Jp)){if(a instanceof Q)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof qp?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new qp(n.map(e=>e.toText()).join(``))]);var s=new Q(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Q(`mo`,[Zp(`⁡`,`text`)]);return e.parentIsSupSub?new Q(`mrow`,[s,c]):Kp([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Ap({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?pp(Lp(e.body,t,!1)):X([`mord`],Lp(e.body,t,!0),t)},mathmlBuilder(e,t){return rm(e.body,t,!0)}}),Z({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Up(e.body,t.havingCrampedStyle()),r=dp(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`overline`],[gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new qp(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`mover`,[im(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Z({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:Mp(r)}},htmlBuilder:(e,t)=>pp(Lp(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Q(`mphantom`,nm(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),Z({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>X([`mord`,`rlap`],[X([`inner`],[Up(e.body,t.withPhantom())]),X([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[new Q(`mphantom`,nm(Mp(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Z({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Cm(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Up(e.body,t);return gp({positionType:`shift`,positionData:-Ud(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Q(`mpadded`,[im(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Z({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Z({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Cm(t[0],`size`),o=Cm(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Cm(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=X([`mord`,`rule`],[],t),r=Ud(e.width,t),i=Ud(e.height,t),a=e.shift?Ud(e.shift,t):0;return n.style.borderRightWidth=B(r),n.style.borderTopWidth=B(i),n.style.bottom=B(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ud(e.width,t),r=Ud(e.height,t),i=e.shift?Ud(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Q(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,B(n)),o.setAttribute(`height`,B(r));var s=new Q(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,B(i)):(s.setAttribute(`height`,B(i)),s.setAttribute(`depth`,B(-i))),s.setAttribute(`voffset`,B(i)),s}});function cg(e,t,n){for(var r=Lp(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return pp(r)}var lg=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Z({type:`sizing`,names:lg,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:lg.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return cg(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Q(`mstyle`,nm(e.body,n));return r.setAttribute(`mathsize`,B(n.sizeMultiplier)),r}}),Z({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&Cm(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=wm(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=X([],[Up(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return X([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return X([`mord`],[gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[im(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Z({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Up(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=mp(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<bd.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=ch(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=B(c);var d=gp({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(bd.SCRIPTSCRIPT),p=Up(e.index,f,t);return X([`mord`,`sqrt`],[X([`root`],[gp({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return X([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Q(`mroot`,[im(n,t),im(r,t)]):new Q(`msqrt`,[im(n,t)])}});var ug={display:bd.DISPLAY,text:bd.TEXT,script:bd.SCRIPT,scriptscript:bd.SCRIPTSCRIPT};function dg(e){return e in ug}Z({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!dg(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=ug[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),cg(e.body,r,t)},mathmlBuilder(e,t){var n=ug[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Q(`mstyle`,nm(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var fg=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===bd.DISPLAY.size||n.alwaysHandleSupSub)?rg:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===bd.DISPLAY.size||n.limits)?sg:null:n.type===`accent`?Zu(n.base)?Dm:null:n.type===`horizBrace`&&!e.sub===n.isOver?Qh:null:null};Ap({type:`supsub`,htmlBuilder(e,t){var n=fg(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Up(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Zu(r);if(i){var p=t.havingStyle(t.style.sup());s=Up(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Up(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===bd.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=B(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof ef||y)&&(v=B(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=gp({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=gp({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=gp({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return X([Vp(o,`right`)||`mord`],[o,X([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[im(e.base,t)];e.sub&&a.push(im(e.sub,t)),e.sup&&a.push(im(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===bd.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===bd.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===bd.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===bd.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===bd.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===bd.DISPLAY)?`munder`:`msub`}return new Q(o,a)}}),Ap({type:`atom`,htmlBuilder(e,t){return ip(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Q(`mo`,[Zp(e.text,e.mode)]);if(e.family===`bin`){var r=em(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var pg={mi:`italic`,mn:`normal`,mtext:`normal`};Ap({type:`mathord`,htmlBuilder(e,t){return op(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Q(`mi`,[Zp(e.text,e.mode,t)]),r=em(e,t)||`italic`;return r!==pg[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Ap({type:`textord`,htmlBuilder(e,t){return op(e,t,`textord`)},mathmlBuilder(e,t){var n=Zp(e.text,e.mode,t),r=em(e,t)||`normal`,i=e.mode===`text`?new Q(`mtext`,[n]):/[0-9]/.test(e.text)?new Q(`mn`,[n]):e.text===`\\prime`?new Q(`mo`,[n]):new Q(`mi`,[n]);return r!==pg[i.type]&&i.setAttribute(`mathvariant`,r),i}});var mg={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},hg={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Ap({type:`spacing`,htmlBuilder(e,t){if(hg.hasOwnProperty(e.text)){var n=hg[e.text].className||``;if(e.mode===`text`){var r=op(e,t,`textord`);return r.classes.push(n),r}return X([`mspace`,n],[ip(e.text,e.mode,t)],t)}if(mg.hasOwnProperty(e.text))return X([`mspace`,mg[e.text]],[],t);throw new z(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(hg.hasOwnProperty(e.text))n=new Q(`mtext`,[new qp(`\xA0`)]);else if(mg.hasOwnProperty(e.text))return new Q(`mspace`);else throw new z(`Unknown type of space "`+e.text+`"`);return n}});var gg=()=>{var e=new Q(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Ap({type:`tag`,mathmlBuilder(e,t){var n=new Q(`mtable`,[new Q(`mtr`,[gg(),new Q(`mtd`,[rm(e.body,t)]),gg(),new Q(`mtd`,[rm(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var _g={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},vg={"\\textbf":`textbf`,"\\textmd":`textmd`},yg={"\\textit":`textit`,"\\textup":`textup`},bg=(e,t)=>{var n=e.font;return n?_g[n]?t.withTextFontFamily(_g[n]):vg[n]?t.withTextFontWeight(vg[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(yg[n]):t};Z({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:Mp(i),font:r}},htmlBuilder(e,t){var n=bg(e,t);return X([`mord`,`text`],Lp(e.body,n,!0),n)},mathmlBuilder(e,t){var n=bg(e,t);return rm(e.body,n)}}),Z({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Up(e.body,t),r=dp(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`underline`],[gp({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new qp(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`munder`,[im(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Z({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Up(e.body,t),r=t.fontMetrics().axisHeight;return gp({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Q(`mrow`,[new Q(`mpadded`,[im(e.body,t)],[`vcenter`])])}}),Z({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new z(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=xg(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(rp(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return X([`mord`,`text`].concat(i.sizingClasses(t)),cp(r),i)},mathmlBuilder(e,t){var n=new Q(`mtext`,[new qp(xg(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var xg=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Sg=Dp,Cg=`[ \r
322
+ ]`,wg=`\\\\[a-zA-Z@]+`,Tg=`\\\\[^\ud800-\udfff]`,Eg=`(`+wg+`)`+Cg+`*`,Dg=`\\\\(
323
+ |[ \r ]+
324
+ ?)[ \r ]*`,Og=`[̀-ͯ]`,kg=RegExp(Og+`+$`),Ag=`(`+Cg+`+)|`+(Dg+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(Og+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Og+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Eg)+(`|`+Tg+`)`),jg=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Ag,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Mh(`EOF`,new jh(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new z(`Unexpected character: '`+e[t]+`'`,new Mh(e[t],new jh(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
325
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new Mh(r,new jh(this,t,this.tokenRegex.lastIndex))}},Mg=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new z(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Ng=Ah;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Pg={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new z("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Pg[t.text],r==null||r>=n)throw new z(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Pg[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Fg=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new z(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new z(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new z(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new z(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>Fg(e,!1,!0,!1)),$(`\\renewcommand`,e=>Fg(e,!0,!1,!1)),$(`\\providecommand`,e=>Fg(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Sg[n],hf.math[n],hf.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Ig={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Lg=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Ig?t=Ig[n]:(n.slice(0,4)===`\\not`||n in hf.math&&Lg.has(hf.math[n].group))&&(t=`\\dotsb`),t});var Rg={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in Rg?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in Rg&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in Rg?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new z(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var zg=B(cf[`Main-Regular`][84][1]-.7*cf[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+zg+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+zg+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var Bg=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,Bg(!1)),$(`\\bra@set`,Bg(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Vg={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Hg=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Mg(Ng,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new jg(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new Mh(`EOF`,n.loc)),this.pushTokens(r),new Mh(``,jh.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new z(`Extra }`,i)}else if(i.text===`EOF`)throw new z(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new z(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new z(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new z(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new z(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new z(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new z(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Mh(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new jg(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Sg.hasOwnProperty(e)||hf.math.hasOwnProperty(e)||hf.text.hasOwnProperty(e)||Vg.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Sg.hasOwnProperty(e)&&!Sg[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Ug=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Wg=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Gg={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Kg={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},qg=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Hg(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new z(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Mh(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Sg[i.text]&&Sg[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new z(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new z(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new z(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new z(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new z(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new z(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(Wg[i.text]){var s=Ug.test(i.text),c=[];for(c.push(new Mh(Wg[i.text])),this.consume();;){var l=this.fetch().text;if(!Wg[l]||Ug.test(l)!==s)break;c.unshift(new Mh(Wg[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=Sg[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new z(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new z(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new z(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=Sg[e];if(o&&o.handler)return o.handler(a,t,n);throw new z(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new z(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new z(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new z(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new z(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new z(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new z(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new z(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Hd(i))throw new z(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:jh.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Vg.hasOwnProperty(r)){if(this.settings.throwOnError)throw new z(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:jh.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:jh.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:jh.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new z(`\\verb assertion failed --
326
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Kg.hasOwnProperty(t[0])&&!hf[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=Kg[t[0]]+t.slice(1));var i=kg.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(hf[this.mode][t]){this.settings.strict&&this.mode===`math`&&Rf.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=hf[this.mode][t].group,s=jh.range(e);a=Sm(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(wd(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:jh.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Gg[l])throw new z(`Unknown accent ' `+l+`'`,e);var u=Gg[l][this.mode]||Gg[l].text;if(!u)throw new z(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:jh.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};qg.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var Jg=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new qg(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new z(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Mh(`\\df@tag`)])}]}return r},Yg=function(e,t,n){t.textContent=``;var r=$g(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),Yg=function(){throw new z(`KaTeX doesn't work in quirks mode.`)});var Xg=function(e,t){return $g(e,t).toMarkup()},Zg=function(e,t){return Jg(e,new rd(t))},Qg=function(e,t,n){if(n.throwOnError||!(e instanceof z))throw e;var r=X([`katex-error`],[new ef(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},$g=function(e,t){var n=new rd(t);try{return fm(Jg(e,n),e,n)}catch(t){return Qg(t,e,n)}},e_={version:`0.16.47`,render:Yg,renderToString:Xg,ParseError:z,SETTINGS_SCHEMA:$u,__parse:Zg,__renderToDomTree:$g,__renderToHTMLTree:function(e,t){var n=new rd(t);try{return pm(Jg(e,n),e,n)}catch(t){return Qg(t,e,n)}},__setFontMetrics:df,__defineSymbol:V,__defineFunction:Z,__defineMacro:$,__domTree:{Span:Xd,Anchor:Zd,SymbolNode:ef,SvgNode:tf,PathNode:nf,LineNode:rf}};function t_(e,t){ue(t,!0);let n=N(t,`displayMode`,3,!1),r=F(()=>e_.renderToString(t.text,{throwOnError:!1,displayMode:n()}));var i=h(),a=D(i);m(a,()=>S(r)),p(e,i),de()}var n_=`inlineKatex`,r_=`blockKatex`,i_=[`equation`,`align`,`alignat`,`gather`,`CD`].flatMap(e=>[e,`${e}\\*`]).join(`|`),a_=/^\\\[\s*([\s\S]+?)\s*\\\](?:\n|$)/,o_=/^\$\$\s*([\s\S]+?)\s*\$\$(?:\n|$)/,s_=RegExp(`^\\\\begin\\{(${i_})\\}[\\s\\S]+?\\\\end\\{\\1\\}(?:\\n|$)?`),c_=/^\\\(([\s\S]+?)\\\)/,l_=/^\$(?!\$)((?:\\.|[^\\\n$])+?)\$(?=[\s?!.,:)\]}?!。,:]|$)/,u_=(e,t)=>{let n=-1;for(let r of t){let t=e.indexOf(r);t!==-1&&(n===-1||t<n)&&(n=t)}return n===-1?void 0:n};function d_(e={}){let{singleDollarInline:t=!1}=e;return Tu({_humanspeakKatexConfig:JSON.stringify({singleDollarInline:t}),extensions:[{name:r_,level:`block`,start(e){return u_(e,[`\\[`,`$$`,`\\begin{`])},tokenizer(e){let t=e.match(a_);if(t)return{type:r_,raw:t[0],text:t[1].trim(),displayMode:!0};let n=e.match(o_);if(n)return{type:r_,raw:n[0],text:n[1].trim(),displayMode:!0};let r=e.match(s_);if(r)return{type:r_,raw:r[0],text:r[0].replace(/\n$/,``).trim(),displayMode:!0}}},{name:n_,level:`inline`,start(e){let n=[`\\(`];return t&&n.push(`$`),u_(e,n)},tokenizer(e){let n=e.match(c_);if(n)return{type:n_,raw:n[0],text:n[1].trim(),displayMode:!1};if(t){let t=e.match(l_);if(t)return{type:n_,raw:t[0],text:t[1].trim(),displayMode:!1}}}}]})}var f_=o(`<div class="markdown"><!></div>`);function p_(t,n){ue(n,!1);let r=N(n,`text`,8,``),i={...vc,html:Hu(),inlineKatex:t_,blockKatex:t_},a=[d_({singleDollarInline:!0})];oe();var o=f_();Uu(e(o),{get source(){return r()},get renderers(){return i},get extensions(){return a}}),E(o),p(t,o),de()}function m_(e,t,n=240){let r=typeof e==`number`&&Number.isFinite(e)&&e>0,i=typeof t==`number`&&Number.isFinite(t)&&t>0,a=Number.isFinite(n)&&n>0?n:240;if(!r||!i)return{width:a,height:Math.round(a*.75),cropped:!1};let o=e,s=t,c=o/s,l=Math.min(1,a/Math.max(o,s)),u=Math.max(1,Math.round(o*l)),d=Math.max(1,Math.round(s*l)),f=!1,p=u/d;return p<.25?(u=Math.max(1,Math.round(d*.25)),f=!0):p>4&&(d=Math.max(1,Math.round(u/4)),f=!0),{width:u,height:d,sourceAspectRatio:c,cropped:f}}var h_=o(`<img alt=""/>`),g_=o(`<span aria-hidden="true">✦</span>`),__=o(`<section class="companion-loading-shell" role="status"><span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span><span> </span></section>`),v_=o(`<section class="companion-recovery" role="alert"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p> <a class="cmp-btn cmp-btn-primary" href="/"> </a></section>`),y_=o(`<section class="companion-recovery" role="alert"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p> <button class="cmp-btn cmp-btn-primary"> </button></section>`),b_=o(`<button class="cmp-btn cmp-btn-ghost cmp-btn-sm" style="display:block;margin:0 auto 18px"> </button>`),x_=o(`<div class="companion-recovery"><div class="companion-mood-orb cmp-mask cmp-mask-circle" aria-hidden="true"></div> <h1> </h1> <p> </p></div>`),S_=o(`<div class="companion-continuity-record" aria-live="off"> </div>`),C_=o(`<div class="companion-recovery"><p> </p></div>`),w_=o(`<span aria-hidden="true"> </span>`),T_=o(`<div class="cmp-skeleton companion-media-loading" aria-hidden="true"></div> <div class="companion-media-status" role="status"> </div>`,1),E_=o(`<button class="companion-media-button"><img/></button>`),D_=o(`<div class="companion-media-failure" role="alert"><span> </span><button class="cmp-btn cmp-btn-ghost cmp-btn-sm" type="button"> </button></div>`),O_=o(`<div class="companion-media-failure" role="alert"><span> </span></div>`),k_=o(`<div class="cmp-loading cmp-loading-spinner companion-media-spinner" role="status"></div>`),A_=o(`<div><div><!></div></div>`),j_=o(`<div></div>`),M_=o(`<div><!></div>`),N_=o(`<span aria-hidden="true"></span>`),P_=o(`<span role="timer" aria-live="off"> </span>`),F_=o(`<span role="status"> </span>`),I_=o(`<span role="alert"> </span>`),L_=o(`<audio class="companion-audio" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-voice-control"><!></button> <div class="companion-voice-player"><div class="companion-voice-waveform"><!> <input class="companion-voice-seek" type="range" min="0" step="0.1"/></div> <div class="companion-voice-meta"><!><!></div></div>`,1),R_=o(`<span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span>`),z_=o(`<button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-voice-control"><!></button> <div class="companion-voice-player"><div class="companion-voice-waveform"></div> <div class="companion-voice-meta"><!></div></div>`,1),B_=o(`<div class="cmp-chat-bubble companion-bubble companion-voice" role="region"><!> <details class="companion-transcript"><summary><!><span> </span></summary> <p> </p></details></div>`),V_=o(`<div class="companion-meta" role="status"> </div>`),H_=o(`<article><div class="cmp-chat-image cmp-avatar cmp-avatar-placeholder message-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div> <div class="companion-message-stack"><!> <!></div></article>`),U_=o(`<span class="companion-waiting-copy"> </span>`),W_=o(`<article class="cmp-chat cmp-chat-start companion-row incoming" data-testid="companion-typing-indicator" role="status"><div class="cmp-chat-image cmp-avatar cmp-avatar-placeholder message-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div> <div class="cmp-chat-bubble companion-bubble companion-typing-bubble"><span class="cmp-loading cmp-loading-dots cmp-loading-sm" aria-hidden="true"></span><!></div></article>`),G_=o(`<button class="cmp-btn cmp-btn-primary cmp-btn-sm companion-new-message" style="position:sticky;bottom:10px;left:50%;transform:translateX(-50%)"> </button>`),K_=o(`<div id="companion-command-suggestions" class="companion-command-suggestions" role="listbox"><button id="companion-command-compact" class="cmp-btn cmp-btn-ghost companion-command-suggestion" type="button" role="option" aria-selected="true"><span class="companion-command-name"> </span> <span class="companion-command-description"> </span> <span class="companion-command-tab" aria-hidden="true">Tab</span></button></div>`),q_=o(`<div class="companion-continuity-status" data-testid="companion-continuity-status" aria-live="polite"><!></div>`),J_=o(`<div class="companion-image-draft"><button class="companion-image-draft-preview" type="button"><img/></button> <button class="cmp-btn cmp-btn-neutral cmp-btn-circle cmp-btn-xs companion-image-draft-remove" type="button"><!></button></div>`),Y_=o(`<div class="companion-image-drafts" role="group"></div>`),X_=o(`<div id="companion-context-popover" class="cmp-card companion-context-popover" role="dialog" aria-labelledby="companion-context-popover-title" tabindex="-1"><h2 id="companion-context-popover-title"> </h2> <p class="companion-context-percent"> </p> <p> </p></div>`),Z_=o(`<div class="companion-context-meter-wrap"><button type="button" aria-controls="companion-context-popover"><svg viewBox="0 0 28 28" aria-hidden="true"><circle class="companion-context-meter-track" cx="14" cy="14" r="11"></circle><circle class="companion-context-meter-value" cx="14" cy="14" r="11" pathLength="100"></circle></svg></button> <!></div>`),Q_=o(`<button class="cmp-btn cmp-btn-primary cmp-btn-circle companion-send"><!></button>`),$_=o(`<button class="cmp-btn cmp-btn-primary cmp-btn-circle companion-send"><span aria-hidden="true">↑</span></button>`),ev=o(`<button class="cmp-btn cmp-btn-neutral cmp-btn-circle companion-stop-inline" data-testid="companion-stop"><!></button>`),tv=o(`<div class="companion-voice-input-status companion-voice-input-error" role="alert"> </div>`),nv=o(`<div class="companion-voice-input-status" data-testid="companion-voice-recording-status" role="status" aria-live="polite"> </div>`),rv=o(`<div class="companion-voice-input-status" data-testid="companion-voice-transcribing-status" role="status" aria-live="polite"> </div>`),iv=o(`<div class="companion-voice-input-status companion-voice-input-unavailable" data-testid="companion-voice-unavailable-status" role="status"> </div>`),av=o(`<div class="companion-voice-input-status companion-voice-input-error" data-testid="companion-voice-error-status" role="status"> </div>`),ov=o(`<div role="log" aria-live="polite" aria-relevant="additions text"><div class="companion-timeline-content"><!> <!> <!> <!> <!></div></div> <div class="companion-composer"><!> <!> <!> <div class="companion-compose-row"><input id="companion-image-library" class="companion-image-input" type="file" multiple="" tabindex="-1" aria-hidden="true"/> <button class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-attach" type="button"><!></button> <textarea class="companion-textarea" rows="1"></textarea> <button type="button"><!></button> <!> <!> <!></div> <!> <!> <div class="companion-compose-hint"> </div></div>`,1),sv=o(`<button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm companion-diary-back"> </button> <article class="companion-diary-page"><time> </time> <!></article>`,1),cv=o(`<p class="companion-history-state" role="status"> </p>`),lv=o(`<p class="companion-history-state" role="alert"> </p>`),uv=o(`<div class="companion-history-state" role="alert"><p> </p> <button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm"> </button></div>`),dv=o(`<p class="companion-history-state"> </p>`),fv=o(`<button type="button" class="companion-diary-list-entry"><time> </time> <span aria-hidden="true">›</span></button>`),pv=o(`<div class="companion-diary-list"></div>`),mv=o(`<section class="companion-diary"><!></section>`),hv=o(`<div class="companion-history-state" role="status"><span class="cmp-loading cmp-loading-spinner cmp-loading-sm" aria-hidden="true"></span> <span> </span></div>`),gv=o(`<button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-sm companion-history-earlier"> </button>`),_v=o(`<p class="companion-history-initial"> </p>`),vv=o(`<strong class="companion-history-growth"> </strong>`),yv=o(`<p class="companion-history-reason"> </p>`),bv=o(`<li><strong> </strong> <div class="companion-history-values"><span> </span><!></div> <!></li>`),xv=o(`<ul></ul>`),Sv=o(`<article class="companion-history-entry"><time> </time> <!></article>`),Cv=o(`<!> <div class="companion-history-entries"></div>`,1),wv=o(`<section class="companion-history-current" aria-labelledby="companion-history-current-title"><h3 id="companion-history-current-title"> </h3> <dl class="companion-history-current-list"><dt> </dt> <dd> </dd> <dt> </dt> <dd> </dd> <dt> </dt> <dd> </dd></dl></section> <section class="companion-history-list" aria-labelledby="companion-history-list-title"><h3 id="companion-history-list-title"> </h3> <!></section>`,1),Tv=o(`<div class="companion-history-backdrop"><button type="button" tabindex="-1"></button></div> <div id="companion-relationship-drawer" class="companion-history-drawer" role="dialog" aria-modal="true" data-testid="companion-relationship-drawer"><div class="companion-history-controls"><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle cmp-btn-sm"><!></button></div> <div class="companion-diary-tabs" role="tablist"><button type="button" role="tab" id="companion-history-tab" aria-controls="companion-drawer-panel"> </button> <button type="button" role="tab" id="companion-diary-tab" aria-controls="companion-drawer-panel"> </button></div> <div id="companion-drawer-panel" class="companion-history-scroll" role="tabpanel"><!></div></div>`,1),Ev=o(`<img/>`),Dv=o(`<div class="cmp-loading cmp-loading-spinner"></div>`),Ov=o(`<dialog id="companion-image-lightbox" class="cmp-modal companion-lightbox"><div class="cmp-modal-box companion-lightbox-dialog"><!></div> <button class="cmp-btn cmp-btn-circle companion-lightbox-close"><!></button> <form method="dialog" class="cmp-modal-backdrop companion-lightbox-backdrop"><button type="submit"> </button></form></dialog>`),kv=o(`<div id="dsh-companion" class="companion-shell" data-testid="companion-root"><div class="companion-app"><div class="companion-content"><main class="companion-main"><header class="companion-header"><div><button type="button" class="cmp-btn cmp-btn-ghost cmp-btn-circle companion-history-toggle" aria-controls="companion-relationship-drawer"><!></button></div> <div class="companion-avatar-anchor" aria-hidden="true"><div class="cmp-avatar cmp-avatar-placeholder companion-avatar"><div class="companion-avatar-crop cmp-mask cmp-mask-circle"><!></div></div></div> <div class="companion-header-copy"><div class="companion-name"> </div> <div class="companion-presence" aria-live="polite"><span></span> </div></div></header> <!></main></div></div> <!> <!></div> <div class="companion-sr-only" aria-live="assertive"> </div>`,1);function Av(r,i){ue(i,!1);let a=k(),o=k(),s=k(),c=k(),m=k(),y=N(i,`t`,8,Ct),b=N(i,`locale`,8,`en`),ee=N(i,`projection`,24,()=>({items:[],messageUnits:[],pendingCount:0,running:!1,status:`ready`,openState:`open`,hasMore:!1,loadingOlder:!1})),w=N(i,`identity`,24,()=>({companionName:`Companion`,userName:y()(`you`),preferredAddress:y()(`you`),signature:``,moodLabel:y()(`mood.neutral`),mood:`neutral`,affinity:50,affinityStage:y()(`affinity.familiar`)})),te=N(i,`scheme`,8,`light`),ie=N(i,`actions`,24,()=>({send:async()=>void 0})),O=N(i,`workspaceReadiness`,8,`loading`),me=N(i,`sessionReadiness`,8,`loading`),ge=N(i,`relationshipReadiness`,8,`loading`),_e=N(i,`sessionId`,8),ve=N(i,`imageLimits`,8),be=N(i,`voiceCapability`,8,`unavailable`),Ce=N(i,`continuity`,24,()=>({})),we=N(i,`recoveredDraft`,8),Oe=N(i,`history`,24,()=>({status:`loading`,records:[],hasEarlier:!1})),ke=N(i,`onHistoryOpenChange`,8),Ae=Te(),I={current:0,duration:0,playing:!1},Ne=[`wait.thinking`,`wait.words`,`wait.soon`,`wait.care`,`wait.here`],Pe=k(xn()),Fe=k(),Le=k(),Ue=k(),We=k(!1),Ge=k(),Ke=k(!1),Je=0,Ye=k(!1),Xe=k(`history`),Ze=k([]),Qe=k(),$e=k(!1),et=k(!1),tt=k(!1),nt,rt=k(),it=k(``),at=k({}),ot=k({}),st=k({}),lt=k({}),ut=k({}),dt=k({}),ft={},pt={},ht={},gt=k(!0),_t=k(``),vt,xt,St=k(),wt=k(),Tt=!1,Et=!1,Dt=k(``),Ot=k(!1),kt=k(!1),At=k(``),jt=``,Mt,Nt,Pt=k(!1),Ft=k(),It=k(),Lt,Rt=k(),zt=``,Bt,Vt=k([]),Ht=k(),Ut=k(``),Wt=k(0),Gt=[],Kt=new Set,qt=k(ee()),Yt=k(0),Zt,Qt=!1,$t=0,en=k(`idle`),tn=mt(),pn=k(0),mn,gn=k(``),bn=new bt({onStatus:e=>{M(en,e)},onError:e=>{Dr(),M(pn,0),e.code!==`cancelled`&&(M(gn,Tr(e)),M(_t,{key:S(gn)}))}}),En=k(),Dn;async function On(){let e=++$t;if(await x(),e!==$t||!S(Fe))return;ne(Fe,S(Fe).style.height=`auto`);let t=yn(S(Fe).scrollHeight,43,150);ne(Fe,S(Fe).style.height=`${t.height}px`),ne(Fe,S(Fe).style.overflowY=t.scrollable?`auto`:`hidden`)}async function kn(e){let t=ae(Wt);if(M(Ut,e.key),_e()!==S(Ht))return;let n=S(Pe).draft.trim();M(Pe,{...S(Pe),draft:n?`${e.input}\n${S(Pe).draft}`:e.input,composing:!1});let r=[];for(let t of e.images)try{let e=await fetch(t.url);if(!e.ok)continue;let n=await e.blob();r.push(new File([n],t.name,{type:n.type||`image/png`}))}catch{}t===S(Wt)&&_e()===S(Ht)&&(r.length&&M(Vt,[...S(Vt),...ze(r)]),On(),M(_t,{key:`error.restored`}))}function An(e){let t=e.items.filter(e=>e.kind===`text`||e.kind===`image`||e.kind===`voice`);if(e.side===`outgoing`){let e=t.filter(e=>e.kind===`image`),n=t.filter(e=>e.kind!==`image`);return[...e.length?[{kind:`images`,items:e}]:[],...n.map(e=>({kind:`item`,item:e}))]}let n=[];for(let e of t)if(e.kind===`image`){let t=n.at(-1);t?.kind===`images`?t.items.push(e):n.push({kind:`images`,items:[e]})}else n.push({kind:`item`,item:e});return n}function jn(e){let t=e.attachment?.width,n=e.attachment?.height;return typeof t==`number`&&t>0&&typeof n==`number`&&n>0}function Mn(e,t){if(t)return`width:64px;height:64px`;let n=ht[e.id],r=n?.width??e.attachment?.width,i=n?.height??e.attachment?.height;if(!jn(e)&&!n)return`max-width:100%;max-height:240px;width:auto;height:auto`;let a=m_(r,i,240);return`width:${a.width}px;height:${a.height}px;object-fit:${a.cropped?`cover`:`contain`}`}function Nn(e,t){if(jn(e))return;let n=t.currentTarget;if(n.naturalWidth<=0||n.naturalHeight<=0)return;let r=ht[e.id];(r?.width!==n.naturalWidth||r.height!==n.naturalHeight)&&(ht={...ht,[e.id]:{width:n.naturalWidth,height:n.naturalHeight}})}function Pn(e){let t=e.items.find(e=>e.kind===`voice`);return t?`voice-${t.id}`:`message-${e.id}`}function Fn(e,t){return t===`stop`?{key:`error.stop`}:t===`send`?{key:`error.send`}:e}function In(e,t){return e.id===`prompt-error`?t(ee().promptErrorOp===`stop`?`error.stop`:`error.send`):e.text}function Ln(){let e=Gt;if(Gt=[],e.length&&Be(e),Kt.size){for(let e of Kt)e.startsWith(`blob:`)&&URL.revokeObjectURL(e);Kt.clear()}}function Rn(e){let t=S(it)&&S(rt)?.previewUrl===S(it)?S(it):void 0,n=t?e.filter(e=>e.previewUrl===t):[],r=n.length?e.filter(e=>e.previewUrl!==t):e;if(n.length){let e=new Set(Gt.map(e=>e.previewUrl));Gt=[...Gt,...n.filter(t=>!e.has(t.previewUrl))]}r.length&&x().then(()=>Be(r))}function zn(e){for(let t=e.items.length-1;t>=0;--t){let n=e.items[t];if(n.side===`incoming`&&(n.kind!==`image`||n.state===`ready`||n.state===`failed`))return(`projectionKey`in n?n.projectionKey:void 0)??n.id}return`empty`}function Bn(e,t,n,r){if(t.reason===`observed`){Rn(e);return}if(_e()===r&&_e()===S(Ht)){M(Pe,{...S(Pe),draft:S(Pe).draft?`${n}\n${S(Pe).draft}`:n,composing:!1}),M(Vt,[...S(Vt),...e]),On(),M(_t,{key:`error.restored`});return}Rn(e)}function Vn(){Mt!==void 0&&clearTimeout(Mt),Nt!==void 0&&clearInterval(Nt),Mt=void 0,Nt=void 0}function Hn(e){return[...e?.lifecycles??(e?.latest?[e.latest]:[])].sort((e,t)=>(e.endSeq??e.startSeq)-(t.endSeq??t.startSeq)||e.startSeq-t.startSeq).at(-1)}function Un(){Bt!==void 0&&clearTimeout(Bt),Bt=void 0}function Wn(e){let t=e?`${e.compactionId}:${e.status}:${e.endSeq??``}:${e.endedAt??``}`:``;if(t===zt||(Un(),zt=t,M(Rt,void 0),!e))return;if(e.status===`running`){M(Rt,e);return}let n=(typeof e.endedAt==`number`&&Number.isFinite(e.endedAt)?e.endedAt:Date.now())+fn-Date.now();n<=0||(M(Rt,e),Bt=setTimeout(()=>{M(Rt,void 0),zt=t,Bt=void 0},n))}function Gn(){S(c)&&(Lt=document.activeElement,M(Pt,!0),x().then(()=>S(It)?.focus()))}function Kn(e=!0){M(Pt,!1);let t=Lt;Lt=void 0,e&&t?.focus()}function qn(){S(Pt)?Kn():Gn()}function Jn(e){if(!S(Pt))return;let t=e.target;(!t||!t.closest?.(`.companion-context-meter-wrap`))&&Kn(!1)}function Yn(){let e=Ne.filter(e=>e!==S(At));M(At,e[Math.floor(Math.random()*e.length)]??Ne[0])}function Xn(e,t){let n=e?t:``;n!==jt&&(jt=n,Vn(),M(At,``),e&&(Mt=setTimeout(()=>{Yn(),Nt=setInterval(Yn,9e3)},12e3)))}async function Zn(e){if(await x(),!S(Ge))return;if(e.openState!==`open`){Je&&cancelAnimationFrame(Je),Je=0,M(Ke,!1);return}let t=S(Ge).scrollHeight-S(Ge).clientHeight-S(Ge).scrollTop,n=S(gt)||t<96;n&&!e.loadingOlder&&ne(Ge,S(Ge).scrollTop=S(Ge).scrollHeight),S(Ke)||(Je&&cancelAnimationFrame(Je),Je=requestAnimationFrame(()=>{S(Ge)&&(ne(Ge,S(Ge).scrollTop=S(Ge).scrollHeight),M(Ke,!0),Je=0)})),M(gt,n),M(_t,e.promptError?Fn(e.promptError,e.promptErrorOp):e.lastAgentError??``);let r=new Map;for(let t of e.items)t.kind===`image`&&t.state===`ready`&&t.attachment&&r.set(t.id,t);for(let[e,t]of Object.entries(S(ut))){let n=r.get(e);(!n||ft[e]!==Qn(n))&&er(e,t)}for(let e of r.values()){let t=Qn(e);!S(ut)[e.id]&&pt[e.id]!==t&&ie().attachmentUrl&&tr(e,t)}for(let t of e.items)t.kind===`voice`&&!S(at)[t.id]&&!S(ot)[t.id]&&ie().prepareVoice&&rr(t)}function Qn(e){return`${e.attachment?.attachmentId??``}:${e.attachment?.mediaType??``}`}function $n(e){if(e?.startsWith(`blob:`)){if(e===S(it)){Kt.add(e);return}URL.revokeObjectURL(e)}}function er(e,t=S(ut)[e]){$n(t);let n={...S(ut)},r={...ft},i={...S(dt)};delete n[e],delete r[e],delete i[e],M(ut,n),ft=r,M(dt,i);let a={...ht};delete a[e],ht=a}async function tr(e,t){if(ie().attachmentUrl&&pt[e.id]!==t){pt={...pt,[e.id]:t};try{let n=await ie().attachmentUrl(e.attachment),r=S(qt).items.find(t=>t.kind===`image`&&t.id===e.id);if(r&&Qn(r)===t){if(S(ut)[e.id]&&S(ut)[e.id]!==n&&er(e.id),M(ut,{...S(ut),[e.id]:n}),ft={...ft,[e.id]:t},S(rt)?.id===e.id){let e=S(it);M(it,n),e&&e!==n&&(Kt.delete(e),$n(e))}}else n.startsWith(`blob:`)&&URL.revokeObjectURL(n)}catch{let n=S(qt).items.find(t=>t.kind===`image`&&t.id===e.id);n&&Qn(n)===t&&M(dt,{...S(dt),[e.id]:!0})}finally{let t={...pt};delete t[e.id],pt=t}}}function nr(e){if(!ie().attachmentUrl||!e.attachment)return;let t={...S(dt)};delete t[e.id],M(dt,t);let n={...pt};delete n[e.id],pt=n,tr(e,Qn(e))}async function rr(e){if(!ie().prepareVoice||S(at)[e.id]||S(st)[e.id])return;M(st,{...S(st),[e.id]:!0});let t={...S(ot)};delete t[e.id],M(ot,t);try{let t=await ie().prepareVoice(e.text);M(at,{...S(at),[e.id]:t})}catch{M(ot,{...S(ot),[e.id]:!0})}finally{let t={...S(st)};delete t[e.id],M(st,t)}}function ir(e,t){M(lt,{...S(lt),[e]:{...S(lt)[e]??I,...t}})}function ar(e){return S(lt)[e]??I}function or(e,t=`floor`){if(!Number.isFinite(e)||e<=0)return`0:00`;let n=t===`ceil`?Math.ceil(e):Math.floor(e);return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}function sr(e){return e.duration>0}function cr(e){if(!(e.duration<=0))return e.current>0&&e.current<e.duration?or(e.current):or(e.duration,`ceil`)}function lr(e){return e.duration>0?Math.min(1,Math.max(0,e.current/e.duration)):0}function ur(e){let t=2166136261;for(let n of e)t=Math.imul(t^n.codePointAt(0),16777619);return Array.from({length:28},(e,n)=>(t=Math.imul(t^n,2246822519),28+Math.abs(t)%69))}function dr(e){return e.closest(`.companion-voice`)?.querySelector(`audio`)??void 0}function fr(e,t){let n=e=>yr(t,e),r=e=>br(t,e),i=()=>gr(t),a=()=>_r(t),o=e=>vr(t,e),s=()=>pr(t);return e.addEventListener(`loadedmetadata`,n),e.addEventListener(`timeupdate`,r),e.addEventListener(`play`,i),e.addEventListener(`pause`,a),e.addEventListener(`ended`,o),e.addEventListener(`error`,s),{destroy(){e.removeEventListener(`loadedmetadata`,n),e.removeEventListener(`timeupdate`,r),e.removeEventListener(`play`,i),e.removeEventListener(`pause`,a),e.removeEventListener(`ended`,o),e.removeEventListener(`error`,s)}}}function pr(e){let t={...S(at)};delete t[e],M(at,t),M(ot,{...S(ot),[e]:!0})}async function mr(e,t){S(at)[e.id]||(await rr(e),await x());let n=dr(t);if(n){for(let e of document.querySelectorAll(`#dsh-companion .companion-voice audio`))e!==n&&!e.paused&&e.pause();try{n.ended&&(n.currentTime=0),n.paused?await n.play():n.pause()}catch{pr(e.id)}}}function hr(e,t){let n=dr(e.currentTarget),r=Number(e.currentTarget.value);n&&Number.isFinite(r)&&(n.currentTime=r,ir(t,{current:r}))}function gr(e){ir(e,{playing:!0})}function _r(e){ir(e,{playing:!1})}function vr(e,t){let n=t.target,r=Number.isFinite(n.duration)&&n.duration>0?n.duration:ar(e).duration;ir(e,{current:r,duration:r,playing:!1})}function yr(e,t){let n=t.target;if(!Number.isFinite(n.duration)||n.duration<=0){pr(e);return}ir(e,{duration:n.duration,current:n.currentTime})}function br(e,t){let n=t.target,r=Number.isFinite(n.duration)&&n.duration>0?n.duration:ar(e).duration;ir(e,{current:n.currentTime,duration:r})}function xr(){S(Ge)&&M(gt,S(Ge).scrollHeight-S(Ge).clientHeight-S(Ge).scrollTop<96)}function Sr(e){let t=new ResizeObserver(()=>{S(Ke)&&S(gt)&&S(Ge)&&ne(Ge,S(Ge).scrollTop=S(Ge).scrollHeight)});return t.observe(e),{destroy:()=>t.disconnect()}}function Cr(){let e=S(Pe).draft,t=e.trim();if(t.length>16e3||!t&&S(Vt).length===0||S(Pe).composing)return;let n=[...S(Vt)],r=_e();M(Pe,{...Sn(S(Pe),{type:`submit`}),draft:``,composing:!1}),M(Vt,[]),On();let i=ae(Yt),a=t=>{Bn(n,t,e,r)};Promise.resolve().then(()=>ie().send(t,n,a)).catch(t=>{t instanceof vn&&i===S(Yt)&&_e()===r&&(M(Pe,{...S(Pe),draft:S(Pe).draft?`${e}\n${S(Pe).draft}`:e,composing:!1}),M(Vt,[...S(Vt),...n]),On()),M(_t,t instanceof Error&&t.message===`compact-with-images`?{key:`error.compactImages`}:{key:`error.restored`})})}function wr(e){let t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60).toString().padStart(2,`0`)}:${(t%60).toString().padStart(2,`0`)}`}function Tr(e){if(e instanceof ct){if(e.code===`insecure-context`)return`voice.secure`;if(e.code===`unsupported`||e.code===`media-type`)return`voice.unsupported`;if(e.code===`permission-denied`)return`voice.permission`;if(e.code===`duration-limit`)return`voice.duration`;if(e.code===`size-limit`)return`voice.size`;if(e.code===`empty`)return`voice.empty`;if(e.code===`transcript-empty`)return`voice.unclear`}return`voice.failed`}function Er(e){return e(tn?`voice.install`:`voice.unavailable`)}function Dr(){mn!==void 0&&clearInterval(mn),mn=void 0}async function Or(){Dr(),Dn?.abort(),Dn=void 0;try{await bn.cancel()}catch{}M(pn,0),M(gn,``)}async function kr(){Dr();let e;try{e=await bn.stopAndGet()}catch(e){M(gn,Tr(e)),M(_t,{key:S(gn)}),M(pn,0);return}if(M(pn,0),M(gn,``),!e||!ie().transcribeVoice||!bn.markTranscribing())return;let t=new AbortController,n=_e();Dn=t;try{let r=await ie().transcribeVoice(e,t.signal);if(t.signal.aborted||_e()!==n)return;let i=yt(r);await ie().send(i,[]),M(_t,{key:`voice.sent`})}catch(e){M(gn,Tr(e)),M(_t,{key:S(gn)})}finally{Dn===t&&(Dn=void 0),bn.finishTranscribing()}}async function Ar(){if(S(en)===`recording`||S(en)===`stopping`){S(en)===`recording`&&await kr();return}if(S(en)!==`transcribing`){if(be()===`loading`){M(_t,{key:`voice.wait`});return}if(be()!==`available`||!ie().transcribeVoice||!tn){M(_t,{key:tn?`voice.install`:`voice.unavailable`});return}M(pn,0),M(gn,``),Dr();try{await bn.start(),mn=setInterval(()=>{M(pn,bn.elapsedMs)},250)}catch(e){Dr(),M(gn,Tr(e)),M(_t,{key:S(gn)})}}}async function jr(){if(ie().stop&&!S(We)){M(We,!0);try{await ie().stop()}catch{M(_t,{key:`error.stop`})}finally{M(We,!1)}}}function Mr(e){if(S(Ue)&&(e.key===`Tab`||e.key===`Enter`)&&!e.shiftKey&&!e.isComposing&&!S(Pe).composing){e.preventDefault(),Pr();return}Cn(e,S(Pe).composing)&&(e.preventDefault(),Cr())}function Nr(e){M(Pe,Sn(S(Pe),{type:`input`,value:e})),On()}function Pr(){S(Ue)&&(Nr(S(Ue).command),x().then(()=>S(Fe)?.focus()))}function Fr(e){Nr(e.currentTarget.value)}function Ir(e){M(Pe,Sn(S(Pe),{type:`compositionend`,value:e.currentTarget.value})),On()}function Lr(){M(Pe,Sn(S(Pe),{type:`compositionstart`}))}function Rr(e){let t=Re(S(Vt),e,ve());if(t){M(_t,t);return}M(Vt,[...S(Vt),...ze(e)])}function zr(e){let t=e.currentTarget;Rr(Array.from(t.files??[])),t.value=``}function Br(e){let t=Ve(e.clipboardData);t.length!==0&&(e.preventDefault(),Rr(t))}function Vr(e){if(!e||typeof e!=`object`)return!1;let t=`code`in e?e.code:void 0;if(t!==void 0)return t===Jt.TakePhotoCancelled;let n=`message`in e?e.message:void 0;return typeof n==`string`&&/(?:user\s+)?cancel(?:led|ed)\s+photos\s+app|取消(?:了)?拍照/iu.test(n)}async function Hr(){try{Rr([await He(await Xt.takePhoto({saveToGallery:!1,includeMetadata:!0}))])}catch(e){Vr(e)||M(_t,{key:`camera.failed`})}}function Ur(e){Rn([e]),M(Vt,S(Vt).filter(t=>t!==e))}function Wr(e){e.pointerType===`touch`&&(Zt={id:e.pointerId,startedAt:Date.now()})}function Gr(e){if(!Zt||Zt.id!==e.pointerId)return;let t=Date.now()-Zt.startedAt>=450;Zt=void 0,t&&(Qt=!0,e.preventDefault(),Hr())}function Kr(){Zt=void 0}function qr(){if(Qt){Qt=!1;return}S(Le)?.click()}function Jr(e,t){let n=new Date(e);return Number.isFinite(n.getTime())?n.toLocaleString(t,{dateStyle:`medium`,timeStyle:`short`}):e}function Yr(e){switch(e){case`mood`:return y()(`history.mood`);case`affinity`:return y()(`history.affinity`);case`signature`:return y()(`history.signature`)}}function Xr(e,t){if(e===`mood`){let e=y()(`mood.${t.value}`);return`note`in t&&t.note?`${e} · ${t.note}`:e}return e===`affinity`||t.value?String(t.value):y()(`signature.empty`)}function Zr(e){let t=Oe().records[e];return t?Tn(t,Oe().records[e+1]??(e===Oe().records.length-1?Oe().predecessor:void 0)):[]}async function Qr(){if(ie().loadEarlierHistory)try{await ie().loadEarlierHistory()}catch{}}function $r(e){x().then(()=>{let t=e();(t?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])`)??t)?.focus()})}function ei(e,t){if(e.key!==`Tab`)return;let n=[...t.querySelectorAll(`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])`)].filter(e=>!e.hasAttribute(`hidden`));if(!n.length){e.preventDefault(),t.focus();return}let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())}function ti(){Tt&&(Tt=!1,globalThis.history.back())}function ni(){vt=document.activeElement,M(Ye,!0),ke()?.(!0),x().then(()=>{$r(()=>S(St))})}function ri(e=!0){M(Ye,!1),ke()?.(!1);let t=vt;vt=void 0,e&&t?.focus()}function ii(e=!0){nt?.abort(),nt=void 0,ri(e)}function ai(e){xt=document.activeElement,M(rt,e),M(it,e.previewUrl??S(ut)[e.id]??``),x().then(()=>{S(wt)&&!S(wt).open&&S(wt).showModal(),$r(()=>S(wt))})}function oi(e){let t=xt,n=Tt;M(rt,void 0),M(it,``),xt=void 0,Ln(),t&&t.focus(),!e&&n&&ti()}function si(e=!1){if(S(rt)){if(Et=e,S(wt)?.open){S(wt).close();return}oi(e)}}function ci(){let e=Et;Et=!1,oi(e)}function li(e){if(e.key===`Escape`){if(S(Pt)){e.preventDefault(),Kn();return}if(S(Ye)){e.preventDefault(),ii();return}return}if(S(Ye)&&S(St)){ei(e,S(St));return}S(rt)&&S(wt)&&ei(e,S(wt))}function ui(){Tt=!1,S(rt)&&si(!0)}function di(){Tt||=(globalThis.history.pushState({companionOverlay:!0},``),!0)}function fi(){S(Ye)?ii():ni()}function pi(e){di(),ai({id:e.id,alt:e.alt||y()(`image.preview`),previewUrl:e.previewUrl??S(ut)[e.id]})}function mi(e){di(),ai({id:`draft:${e.id}`,alt:e.file.name||y()(`image.pending`),previewUrl:e.previewUrl})}async function hi(){if(!ie().loadOlder||ee().loadingOlder)return;let e=S(Ge)?.scrollHeight??0;await ie().loadOlder(),await x(),S(Ge)&&ne(Ge,S(Ge).scrollTop+=S(Ge).scrollHeight-e)}function gi(){nt?.abort();let e=new AbortController;return nt=e,M($e,!0),M(et,!1),M(tt,!1),e}async function _i(){M(Xe,`diary`),M(Qe,void 0);let e=gi();try{let t=await fetch(`/api/diary`,{signal:e.signal});if(!t.ok)throw Error();nt===e&&M(Ze,(await t.json()).entries)}catch(t){nt===e&&t.name!==`AbortError`&&M(et,!0)}finally{nt===e&&M($e,!1)}}async function vi(e){let t=gi();try{let n=await fetch(`/api/diary/${encodeURIComponent(e)}`,{signal:t.signal});if(n.status===413){nt===t&&M(tt,!0);return}if(!n.ok)throw Error();nt===t&&M(Qe,await n.json())}catch(e){nt===t&&e.name!==`AbortError`&&M(et,!0)}finally{nt===t&&M($e,!1)}}fe(()=>{On()}),Se(()=>{Je&&cancelAnimationFrame(Je),Ln(),Rn(S(Vt)),Vn(),Un(),Dr(),Dn?.abort(),nt?.abort(),Dn=void 0,bn.dispose();for(let e of document.querySelectorAll(`#dsh-companion .companion-voice audio`))e.pause();for(let e of Object.values(S(ut)))$n(e);Ln()}),u(()=>n(O()),()=>{M(a,O())}),u(()=>n(me()),()=>{M(o,me())}),u(()=>n(ge()),()=>{M(s,ge())}),u(()=>(S(Ye),S(a),S(s)),()=>{S(Ye)&&(S(a)!==`ready`||S(s)!==`ready`)&&ri(!1)}),u(()=>(n(ee()),n(y())),()=>{M(Dt,ee().status===`offline`?y()(`status.offline`):ee().status===`working`?y()(`status.typing`):y()(`status.online`))}),u(()=>n(ee()),()=>{M(Ot,ee().items.some(e=>e.kind===`image`&&(e.state===`running`||e.state===`loading`)))}),u(()=>(n(ee()),S(Ot)),()=>{M(kt,ee().running&&!S(Ot))}),u(()=>(n(_e()),S(Ht),S(Vt),S(Wt),S(Yt)),()=>{_e()!==S(Ht)&&(Rn(S(Vt)),M(Vt,[]),M(Ht,_e()),M(Ut,``),M(Wt,S(Wt)+1),M(Pe,xn()),M(Yt,S(Yt)+1),On())}),u(()=>(S(Vt),S(Pe),n(y())),()=>{M(Ue,S(Vt).length?void 0:wn(S(Pe).draft,y()))}),u(()=>n(Ce()),()=>{M(c,hn(Ce()?.contextPressure))}),u(()=>n(Ce()),()=>{M(m,Hn(Ce()?.lifecycle))}),u(()=>S(m),()=>{Wn(S(m))}),u(()=>(S(c),S(Pt)),()=>{!S(c)&&S(Pt)&&Kn(!1)}),u(()=>(S(kt),n(_e()),n(ee())),()=>{Xn(S(kt),`${_e()??`none`}:${zn(ee())}`)}),u(()=>n(ee()),()=>{M(qt,ee())}),u(()=>S(qt),()=>{S(qt)&&Zn(S(qt))}),u(()=>(n(_e()),S(En)),()=>{_e()!==S(En)&&(M(En,_e()),Or())}),u(()=>(n(we()),S(Ut),n(_e()),S(Ht)),()=>{we()&&we().key!==S(Ut)&&_e()===S(Ht)&&kn(we())}),xe(),oe();var yi=kv();_(`keydown`,g,li),_(`pointerdown`,g,Jn),_(`popstate`,g,ui);var bi=D(yi),xi=e(bi),Si=e(xi),Ci=e(Si),wi=e(Ci),Ti=e(wi),Ei=e(Ti);rn(e(Ei),{size:18,strokeWidth:1.8,"aria-hidden":`true`}),E(Ei),E(Ti);var Di=j(Ti,2),Oi=e(Di),ki=e(Oi),Ai=e(ki),ji=e=>{var t=h_();l(()=>T(t,`src`,(n(w()),C(()=>w().companionAvatar)))),p(e,t)},Mi=e=>{var t=g_();p(e,t)};A(Ai,e=>{n(w()),C(()=>w().companionAvatar)?e(ji):e(Mi,-1)}),E(ki),E(Oi),E(Di);var Ni=j(Di,2),Pi=e(Ni),Fi=P(Pi,!0),Ii=j(Pi,2),Li=e(Ii),Ri=j(Li);E(Ii),E(Ni),E(wi);var zi=j(wi,2),Bi=t=>{var r=__(),i=j(e(r)),a=P(i,!0);E(r),l((e,t)=>{T(r,`aria-label`,e),f(a,t)},[()=>(n(y()),C(()=>y()(`loading.label`))),()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(t,r)},Vi=t=>{var r=v_(),i=j(e(r),2),a=P(i,!0),o=j(i,2),s=P(o,!0),c=j(o,2),u=P(c,!0);E(r),l((e,t,n,r)=>{f(a,e),f(s,t),T(c,`aria-label`,n),f(u,r)},[()=>(n(y()),C(()=>y()(`workspace.empty`))),()=>(n(y()),C(()=>y()(`workspace.chooseHint`))),()=>(n(y()),C(()=>y()(`workspace.settingsLabel`))),()=>(n(y()),C(()=>y()(`settings.open`)))]),_(`click`,c,()=>Ae(`recovery`)),p(t,r)},Hi=t=>{var r=y_(),i=j(e(r),2),a=P(i,!0),o=j(i,2),s=P(o,!0),c=j(o,2),u=P(c,!0);E(r),l((e,t,n)=>{f(a,e),f(s,t),f(u,n)},[()=>(n(y()),C(()=>y()(`workspace.failed`))),()=>(n(y()),C(()=>y()(`workspace.reconnectHint`))),()=>(n(y()),C(()=>y()(`reconnect`)))]),_(`click`,c,()=>Ae(`recovery`)),p(t,r)},Ui=t=>{var r=__(),i=j(e(r)),a=P(i,!0);E(r),l((e,t)=>{T(r,`aria-label`,e),f(a,t)},[()=>(n(y()),C(()=>y()(`loading.label`))),()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(t,r)},Wi=t=>{var r=v_(),i=j(e(r),2),a=P(i,!0),o=j(i,2),s=P(o,!0),c=j(o,2),u=P(c,!0);E(r),l((e,t,n,r)=>{f(a,e),f(s,t),T(c,`aria-label`,n),f(u,r)},[()=>(n(y()),C(()=>y()(`workspace.empty`))),()=>(n(y()),C(()=>y()(`workspace.chooseHint`))),()=>(n(y()),C(()=>y()(`workspace.settingsLabel`))),()=>(n(y()),C(()=>y()(`settings.open`)))]),_(`click`,c,()=>Ae(`recovery`)),p(t,r)},Gi=t=>{var r=y_(),i=j(e(r),2),a=P(i,!0),o=j(i,2),s=P(o,!0),c=j(o,2),u=P(c,!0);E(r),l((e,t,n)=>{f(a,e),f(s,t),f(u,n)},[()=>(n(y()),C(()=>y()(`relationship.failed`))),()=>(n(y()),C(()=>y()(`relationship.reconnectHint`))),()=>(n(y()),C(()=>y()(`reconnect`)))]),_(`click`,c,()=>Ae(`recovery`)),p(t,r)},Ki=t=>{var r=__(),i=j(e(r)),a=P(i,!0);E(r),l((e,t)=>{T(r,`aria-label`,e),f(a,t)},[()=>(n(y()),C(()=>y()(`loading.label`))),()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(t,r)},qi=t=>{var r=y_(),i=j(e(r),2),a=P(i,!0),o=j(i,2),s=P(o,!0),c=j(o,2),u=P(c,!0);E(r),l((e,t,n)=>{f(a,e),f(s,t),f(u,n)},[()=>(n(y()),C(()=>y()(`session.failed`))),()=>(n(y()),C(()=>y()(`session.reconnectHint`))),()=>(n(y()),C(()=>y()(`reconnect`)))]),_(`click`,c,()=>Ae(`recovery`)),p(t,r)},Ji=r=>{var a=ov(),o=D(a);let s;var u=e(o),m=e(u),g=e=>{var t=b_(),r=P(t,!0);l(e=>{t.disabled=(S(qt),C(()=>S(qt).loadingOlder)),f(r,e)},[()=>(S(qt),n(y()),C(()=>S(qt).loadingOlder?y()(`loading.progress`):y()(`history.older`)))]),_(`click`,t,hi),p(e,t)};A(m,e=>{S(qt),C(()=>S(qt).hasMore)&&e(g)});var b=j(m,2),x=t=>{var r=x_(),i=j(e(r),2),a=P(i,!0),o=j(i,2),s=P(o,!0);E(r),l((e,t)=>{f(a,e),f(s,t)},[()=>(n(y()),n(w()),C(()=>y()(`welcome.greeting`,{name:w().preferredAddress}))),()=>(n(y()),C(()=>y()(`welcome.prompt`)))]),p(t,r)};A(b,e=>{S(qt),C(()=>S(qt).items.length===0)&&e(x)});var te=j(b,2);pe(te,1,()=>(S(qt),C(()=>S(qt).messageUnits)),e=>e.id,(r,i)=>{let a=he(()=>(S(i),C(()=>S(i).items[0])));var o=h(),s=D(o),c=e=>{var t=S_(),r=P(t,!0);l(e=>{T(t,`data-testid`,(n(S(a)),C(()=>`continuity-record-${S(a).compactionId}`))),f(r,e)},[()=>(n(y()),C(()=>y()(`compact.record`)))]),p(e,t)},u=t=>{var r=C_(),i=e(r),o=P(i,!0);E(r),l(e=>{T(r,`role`,(n(S(a)),C(()=>S(a).tone===`error`?`alert`:`status`))),f(o,e)},[()=>(n(S(a)),n(y()),C(()=>In(S(a),y())))]),p(t,r)},d=r=>{let a=he(()=>(S(i),C(()=>An(S(i)))));var o=H_();let s;var c=e(o),u=e(c),d=e(u),m=e=>{var t=h_();l(()=>T(t,`src`,(n(w()),C(()=>w().companionAvatar)))),p(e,t)},g=e=>{var t=h_();l(()=>T(t,`src`,(n(w()),C(()=>w().userAvatar)))),p(e,t)},b=e=>{var t=w_(),r=P(t,!0);l(e=>f(r,e),[()=>(S(i),n(y()),C(()=>S(i).side===`incoming`?`✦`:y()(`you`)))]),p(e,t)};A(d,e=>{S(i),n(w()),C(()=>S(i).side===`incoming`&&w().companionAvatar)?e(m):(S(i),n(w()),C(()=>S(i).side===`outgoing`&&w().userAvatar)?e(g,1):e(b,-1))}),E(u),E(c);var x=j(c,2),ee=e(x);pe(ee,1,()=>S(a),t,(r,a)=>{var o=h(),s=D(o),c=t=>{var r=j_();let o;pe(r,5,()=>(S(a),C(()=>S(a).items)),e=>e.id,(t,r)=>{var i=A_();let o;var s=e(i);let c;var u=e(s),d=e=>{var t=T_(),r=j(D(t),2),i=P(r,!0);l(e=>f(i,e),[()=>(n(y()),C(()=>y()(`image.generating`)))]),p(e,t)},m=e=>{var t=E_(),i=P(t);l((e,n,a)=>{T(t,`aria-label`,e),T(i,`src`,(S(r),S(ut),C(()=>S(r).previewUrl??S(ut)[S(r).id]))),T(i,`alt`,n),je(i,a)},[()=>(n(y()),S(r),C(()=>y()(`image.view`,{name:S(r).alt||y()(`image.preview`)}))),()=>(S(r),n(y()),C(()=>S(r).alt||y()(`image.preview`))),()=>(S(r),S(a),C(()=>Mn(S(r),S(a).items.length>1)))]),_(`load`,i,e=>Nn(S(r),e)),_(`click`,t,()=>pi(S(r))),p(e,t)},h=t=>{var i=D_(),o=e(i),s=P(o,!0),c=j(o),u=P(c,!0);E(i),l((e,t,n)=>{je(i,e),f(s,t),f(u,n)},[()=>(S(r),S(a),C(()=>Mn(S(r),S(a).items.length>1))),()=>(n(y()),C(()=>y()(`error.image`))),()=>(n(y()),C(()=>y()(`retry`)))]),_(`click`,c,()=>nr(S(r))),p(t,i)},g=t=>{var i=O_(),o=e(i),s=P(o,!0);E(i),l((e,t)=>{je(i,e),f(s,t)},[()=>(S(r),S(a),C(()=>Mn(S(r),S(a).items.length>1))),()=>(n(y()),C(()=>y()(`image.failed`)))]),p(t,i)},v=e=>{var t=k_();l(e=>T(t,`aria-label`,e),[()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(e,t)};A(u,e=>{S(r),C(()=>S(r).state===`running`||S(r).state===`loading`)?e(d):(S(r),S(ut),C(()=>S(r).previewUrl||S(ut)[S(r).id])?e(m,1):(S(dt),S(r),C(()=>S(dt)[S(r).id])?e(h,2):(S(r),C(()=>S(r).state===`failed`)?e(g,3):e(v,-1))))}),E(s),E(i),l(()=>{o=re(i,1,`companion-image-entry`,null,o,{"companion-image-entry-tile":S(a).items.length>1}),T(i,`data-testid`,(S(r),C(()=>`image-${S(r).id}`))),c=re(s,1,`companion-media`,null,c,{"companion-media-tile":S(a).items.length>1,"companion-media-single":S(a).items.length===1})}),p(t,i)}),E(r),l(()=>{o=re(r,1,`companion-image-group`,null,o,{"companion-image-group-many":S(a).items.length>1}),T(r,`data-testid`,(S(i),C(()=>`image-group-${S(i).id}`)))}),p(t,r)},u=t=>{var n=M_();let r;p_(e(n),{get text(){return S(a),C(()=>S(a).item.text)}}),E(n),l(()=>r=re(n,1,`cmp-chat-bubble companion-bubble`,null,r,{"cmp-skeleton":S(a).item.pending&&!S(a).item.text})),p(t,n)},d=r=>{let i=he(()=>(S(a),C(()=>S(a).item))),o=he(()=>(S(lt),n(S(i)),C(()=>S(lt)[S(i).id]??I)));var s=B_(),c=e(s),u=r=>{var a=L_(),s=D(a);v(s,(e,t)=>fr?.(e,t),()=>S(i).id);var c=j(s,2),u=e(c),d=e=>{on(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})},m=e=>{sn(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})};A(u,e=>{n(S(o)),C(()=>S(o).playing)?e(d):e(m,-1)}),E(c);var h=j(c,2),g=e(h),b=e(g);pe(b,1,()=>(n(S(i)),C(()=>ur(S(i).id))),t,(e,t,n)=>{var r=N_();let i;l(e=>{je(r,`--voice-bar:${S(t)}%`),i=re(r,1,``,null,i,{played:e})},[()=>(n+1)/28<=lr(S(o))]),p(e,r)});var x=j(b,2);le(x),E(g);var ee=j(g,2),w=e(ee),te=e=>{var t=P_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(S(o)),C(()=>cr(S(o))))]),p(e,t)},ne=F(()=>(n(S(o)),C(()=>cr(S(o))))),ie=e=>{var t=F_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(e,t)};A(w,e=>{S(ne)?e(te):e(ie,-1)});var ae=j(w),oe=e=>{var t=I_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`voice.playFailed`)))]),p(e,t)};A(ae,e=>{S(ot),n(S(i)),C(()=>S(ot)[S(i).id])&&e(oe)}),E(ee),E(h),l((e,t,r,a)=>{T(s,`src`,(S(at),n(S(i)),C(()=>S(at)[S(i).id]))),T(c,`aria-label`,e),T(x,`max`,(n(S(o)),C(()=>S(o).duration||0))),De(x,(n(S(o)),C(()=>S(o).current))),x.disabled=t,T(x,`aria-label`,r),T(x,`aria-valuetext`,a)},[()=>(n(S(o)),n(y()),C(()=>S(o).playing?y()(`voice.pause`):y()(`voice.play`))),()=>(n(S(o)),C(()=>!sr(S(o)))),()=>(n(y()),C(()=>y()(`voice.progress`))),()=>(n(S(o)),n(y()),C(()=>sr(S(o))?`${or(S(o).current)} / ${or(S(o).duration,`ceil`)}`:y()(`loading.progress`)))]),_(`click`,c,e=>void mr(S(i),e.currentTarget)),_(`input`,x,e=>hr(e,S(i).id)),p(r,a)},d=r=>{var a=z_(),o=D(a),s=e(o),c=e=>{var t=R_();p(e,t)},u=e=>{cn(e,{size:18,"aria-hidden":`true`})},d=e=>{sn(e,{size:18,fill:`currentColor`,"aria-hidden":`true`})};A(s,e=>{S(st),n(S(i)),C(()=>S(st)[S(i).id])?e(c):(S(ot),n(S(i)),C(()=>S(ot)[S(i).id])?e(u,1):e(d,-1))}),E(o);var m=j(o,2),h=e(m);pe(h,5,()=>(n(S(i)),C(()=>ur(S(i).id))),t,(e,t)=>{var n=N_();l(()=>je(n,`--voice-bar:${S(t)}%`)),p(e,n)}),E(h);var g=j(h,2),v=e(g),b=e=>{var t=F_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(e,t)},x=e=>{var t=I_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`voice.playFailed`)))]),p(e,t)},ee=e=>{var t=F_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`loading.progress`)))]),p(e,t)};A(v,e=>{S(st),n(S(i)),C(()=>S(st)[S(i).id])?e(b):(S(ot),n(S(i)),C(()=>S(ot)[S(i).id])?e(x,1):e(ee,-1))}),E(g),E(m),l(e=>{T(o,`aria-label`,e),o.disabled=(n(ie()),S(st),n(S(i)),C(()=>!ie().prepareVoice||S(st)[S(i).id]))},[()=>(S(st),n(S(i)),n(y()),S(ot),C(()=>S(st)[S(i).id]?y()(`voice.preparing`):S(ot)[S(i).id]?y()(`voice.retry`):y()(`voice.play`)))]),_(`click`,o,e=>void mr(S(i),e.currentTarget)),p(r,a)};A(c,e=>{S(at),n(S(i)),C(()=>S(at)[S(i).id])?e(u):e(d,-1)});var m=j(c,2),h=e(m),g=e(h);an(g,{size:14,"aria-hidden":`true`});var b=j(g),x=P(b,!0);E(h);var ee=j(h,2),w=P(ee,!0);E(m),E(s),l((e,t,r)=>{T(s,`aria-label`,e),m.open=t,f(x,r),f(w,(n(S(i)),C(()=>S(i).text)))},[()=>(n(y()),C(()=>y()(`voice.player`))),()=>(S(ot),n(S(i)),C(()=>!!S(ot)[S(i).id])),()=>(n(y()),C(()=>y()(`voice.transcript`)))]),p(r,s)};A(s,e=>{S(a),C(()=>S(a).kind===`images`)?e(c):(S(a),C(()=>S(a).item.kind===`text`)?e(u,1):(S(a),C(()=>S(a).item.kind===`voice`)&&e(d,2)))}),p(r,o)});var te=j(ee,2),ne=e=>{var t=V_(),n=P(t,!0);l(()=>f(n,(S(i),C(()=>S(i).pendingLabel)))),p(e,t)};A(te,e=>{S(i),C(()=>S(i).pendingLabel)&&e(ne)}),E(x),E(o),l(e=>{s=re(o,1,`cmp-chat companion-row`,null,s,{"cmp-chat-start":S(i).side===`incoming`,"cmp-chat-end":S(i).side===`outgoing`,outgoing:S(i).side===`outgoing`,incoming:S(i).side===`incoming`,"companion-row-pending":S(i).pending}),T(o,`data-pending`,(S(i),C(()=>S(i).pending||void 0))),T(o,`data-testid`,e)},[()=>(S(i),C(()=>Pn(S(i))))]),p(r,o)};A(s,e=>{n(S(a)),C(()=>S(a)?.kind===`continuity`)?e(c):(n(S(a)),C(()=>S(a)?.kind===`notice`)?e(u,1):e(d,-1))}),p(r,o)});var ae=j(te,2),oe=t=>{var r=W_(),i=e(r),a=e(i),o=e(a),s=e=>{var t=h_();l(()=>T(t,`src`,(n(w()),C(()=>w().companionAvatar)))),p(e,t)},c=e=>{var t=g_();p(e,t)};A(o,e=>{n(w()),C(()=>w().companionAvatar)?e(s):e(c,-1)}),E(a),E(i);var u=j(i,2),d=j(e(u)),m=e=>{var t=U_(),r=P(t,!0);l(e=>f(r,e),[()=>(S(At),n(y()),C(()=>S(At)?y()(S(At)):``))]),p(e,t)};A(d,e=>{S(At)&&e(m)}),E(u),E(r),l(e=>T(r,`aria-label`,e),[()=>(n(y()),n(w()),C(()=>y()(`status.namedTyping`,{name:w().companionName})))]),p(t,r)};A(ae,e=>{S(kt)&&e(oe)});var ue=j(ae,2),O=e=>{var t=G_(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`messages.new`)))]),_(`click`,t,()=>ne(Ge,S(Ge).scrollTop=S(Ge).scrollHeight)),p(e,t)};A(ue,e=>{S(gt),S(qt),C(()=>!S(gt)&&S(qt).items.length>0)&&e(O)}),E(u),v(u,e=>Sr?.(e)),E(o),ye(o,e=>M(Ge,e),()=>S(Ge));var de=j(o,2),fe=e(de),k=t=>{var r=K_(),i=e(r),a=e(i),o=P(a,!0),s=j(a,2),c=P(s,!0);Me(2),E(i),E(r),l(e=>{T(r,`aria-label`,e),f(o,(S(Ue),C(()=>S(Ue).command))),f(c,(S(Ue),C(()=>S(Ue).description)))},[()=>(n(y()),C(()=>y()(`command.label`)))]),_(`click`,i,Pr),p(t,r)};A(fe,e=>{S(Ue)&&e(k)});var me=j(fe,2),ge=t=>{var r=q_(),i=e(r),a=e=>{var t=d();l(e=>f(t,e),[()=>(n(y()),C(()=>y()(`compact.running`)))]),p(e,t)},o=e=>{var t=d();l(e=>f(t,e),[()=>(n(y()),C(()=>y()(`compact.failed`)))]),p(e,t)},s=e=>{var t=d();l(e=>f(t,e),[()=>(n(y()),C(()=>y()(`compact.done`)))]),p(e,t)};A(i,e=>{S(Rt),C(()=>S(Rt).status===`running`)?e(a):(S(Rt),C(()=>S(Rt).status===`failed`)?e(o,1):e(s,-1))}),E(r),l(()=>{T(r,`data-state`,(S(Rt),C(()=>S(Rt).status))),T(r,`role`,(S(Rt),C(()=>S(Rt).status===`failed`?`alert`:`status`)))}),p(t,r)};A(me,e=>{S(Rt)&&e(ge)});var _e=j(me,2),xe=t=>{var r=Y_();pe(r,5,()=>S(Vt),e=>e.id,(t,r)=>{var i=J_(),a=e(i),o=P(a),s=j(a,2);dn(e(s),{size:13,strokeWidth:2.5,"aria-hidden":`true`}),E(s),E(i),l((e,t,n)=>{T(a,`aria-label`,e),T(o,`src`,(S(r),C(()=>S(r).previewUrl))),T(o,`alt`,t),T(s,`aria-label`,n)},[()=>(n(y()),S(r),C(()=>y()(`image.view`,{name:S(r).file.name||y()(`image.pending`)}))),()=>(S(r),n(y()),C(()=>S(r).file.name||y()(`image.pending`))),()=>(n(y()),C(()=>y()(`image.remove`)))]),_(`click`,a,()=>mi(S(r))),_(`click`,s,()=>Ur(S(r))),p(t,i)}),E(r),l(e=>T(r,`aria-label`,e),[()=>(n(y()),C(()=>y()(`image.pending`)))]),p(t,r)};A(_e,e=>{S(Vt),C(()=>S(Vt).length>0)&&e(xe)});var Se=j(_e,2),Ce=e(Se);ye(Ce,e=>M(Le,e),()=>S(Le));var N=j(Ce,2);nn(e(N),{size:19,strokeWidth:2,"aria-hidden":`true`}),E(N);var we=j(N,2);se(we),ye(we,e=>M(Fe,e),()=>S(Fe));var Te=j(we,2);let Oe;var ke=e(Te),Ae=e=>{var t=R_();p(e,t)},Ne=e=>{{let t=he(()=>S(en)===`recording`?2.6:2);un(e,{size:19,get strokeWidth(){return S(t)},"aria-hidden":`true`})}};A(ke,e=>{S(en)===`transcribing`||S(en)===`stopping`?e(Ae):e(Ne,-1)}),E(Te);var Re=j(Te,2),ze=t=>{var r=Z_(),i=e(r);let a;var o=e(i),s=j(e(o));E(o),E(i),ye(i,e=>M(Ft,e),()=>S(Ft));var u=j(i,2),d=t=>{var r=X_(),i=e(r),a=P(i,!0),o=j(i,2),s=P(o),u=j(o,2),d=P(u);E(r),ye(r,e=>M(It,e),()=>S(It)),l((e,t,n)=>{f(a,e),f(s,`${S(c),C(()=>S(c).percentage)??``}%`),f(d,`${t??``} / ${n??``}`)},[()=>(n(y()),C(()=>y()(`context.label`))),()=>(n(_n),S(c),C(()=>_n(S(c).usedTokens))),()=>(n(_n),S(c),C(()=>_n(S(c).contextWindow)))]),p(t,r)};A(u,e=>{S(Pt)&&e(d)}),E(r),l(e=>{a=re(i,1,`cmp-btn cmp-btn-ghost cmp-btn-circle companion-context-meter`,null,a,{"companion-context-meter-open":S(Pt)}),T(i,`data-state`,(S(Rt),S(c),C(()=>S(Rt)?.status===`running`?`active`:S(Rt)?.status===`complete`?`complete`:S(Rt)?.status===`failed`?`failed`:S(c).percentage>=80?`warning`:`idle`))),T(i,`aria-label`,e),T(i,`aria-expanded`,S(Pt)),je(s,(S(c),C(()=>`stroke-dashoffset:${100-S(c).percentage}`)))},[()=>(n(y()),S(c),C(()=>y()(`context.percentage`,{percentage:S(c).percentage})))]),_(`click`,i,qn),p(t,r)};A(Re,e=>{S(c)&&e(ze)});var Be=j(Re,2),Ve=t=>{var r=Q_();ln(e(r),{size:15,fill:`currentColor`,"aria-hidden":`true`}),E(r),l(e=>{T(r,`aria-label`,e),r.disabled=(n(ie()),S(We),C(()=>!ie().stop||S(We)))},[()=>(n(y()),C(()=>y()(`reply.stop`)))]),_(`click`,r,()=>void jr()),p(t,r)},He=F(()=>(n(ee()),S(Pe),S(Vt),C(()=>ee().running&&!S(Pe).draft.trim()&&S(Vt).length===0))),Je=e=>{var t=$_();l((e,n)=>{T(t,`aria-label`,e),t.disabled=n},[()=>(n(y()),C(()=>y()(`message.send`))),()=>(S(Pe),n(qe),S(Vt),C(()=>S(Pe).draft.trim().length>16e3||!S(Pe).draft.trim()&&S(Vt).length===0))]),_(`click`,t,Cr),p(e,t)};A(Be,e=>{S(He)?e(Ve):e(Je,-1)});var Ye=j(Be,2),Xe=t=>{var r=ev();ln(e(r),{size:13,fill:`currentColor`,"aria-hidden":`true`}),E(r),l(e=>{T(r,`aria-label`,e),r.disabled=S(We)},[()=>(n(y()),C(()=>y()(`reply.stop`)))]),_(`click`,r,()=>void jr()),p(t,r)},Ze=F(()=>(n(ee()),S(Pe),S(Vt),n(ie()),C(()=>ee().running&&(S(Pe).draft.trim()||S(Vt).length>0)&&ie().stop)));A(Ye,e=>{S(Ze)&&e(Xe)}),E(Se);var Qe=j(Se,2),$e=e=>{var t=tv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),n(qe),S(Pe),C(()=>y()(`message.tooLong`,{limit:qe,count:S(Pe).draft.trim().length})))]),p(e,t)},et=F(()=>(S(Pe),n(qe),C(()=>S(Pe).draft.trim().length>qe)));A(Qe,e=>{S(et)&&e($e)});var tt=j(Qe,2),nt=e=>{var t=nv(),r=P(t,!0);l(e=>f(r,e),[()=>(S(en),n(y()),S(pn),C(()=>S(en)===`stopping`?y()(`voice.stopping`):y()(`voice.recording`,{elapsed:wr(S(pn))})))]),p(e,t)},rt=e=>{var t=rv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`voice.transcribingProgress`)))]),p(e,t)},it=e=>{var t=iv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>Er(y())))]),p(e,t)},ct=e=>{var t=av(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),S(gn),C(()=>y()(S(gn)||`voice.failed`)))]),p(e,t)};A(tt,e=>{S(en)===`recording`||S(en)===`stopping`?e(nt):S(en)===`transcribing`?e(rt,1):be()===`unavailable`||!tn?e(it,2):(S(gn)||S(en)===`unavailable`)&&e(ct,3)});var ft=j(tt,2),pt=P(ft,!0);E(de),l((e,t,r,i,a,c,l)=>{s=re(o,1,`companion-timeline`,null,s,{"timeline-ready":S(Ke)}),T(Ce,`accept`,Ie),T(N,`aria-label`,e),T(N,`title`,t),N.disabled=!ve(),T(we,`aria-label`,r),T(we,`aria-autocomplete`,S(Ue)?`list`:void 0),T(we,`aria-controls`,S(Ue)?`companion-command-suggestions`:void 0),T(we,`placeholder`,i),De(we,(S(Pe),C(()=>S(Pe).draft))),Oe=re(Te,1,`cmp-btn cmp-btn-ghost cmp-btn-circle companion-microphone`,null,Oe,{"companion-microphone-recording":S(en)===`recording`,"companion-microphone-stopping":S(en)===`stopping`}),T(Te,`data-state`,S(en)),T(Te,`aria-label`,a),T(Te,`title`,c),Te.disabled=(S(en),n(be()),n(ie()),C(()=>S(en)===`stopping`||S(en)===`transcribing`||be()!==`available`||!ie().transcribeVoice||!tn)),f(pt,l)},[()=>(n(y()),C(()=>y()(`image.choose`))),()=>(n(y()),C(()=>y()(`image.choose`))),()=>(n(y()),C(()=>y()(`composer.label`))),()=>(n(y()),n(w()),C(()=>y()(`composer.placeholder`,{name:w().companionName}))),()=>(S(en),n(y()),n(be()),C(()=>S(en)===`recording`?y()(`voice.stop`):S(en)===`transcribing`?y()(`voice.transcribing`):be()===`loading`?y()(`voice.preparing`):be()===`available`&&tn?y()(`voice.start`):y()(`voice.micUnavailable`))),()=>(S(en),n(y()),n(be()),C(()=>S(en)===`recording`?y()(`voice.stop`):be()===`available`&&tn?y()(`voice.start`):Er(y()))),()=>(n(y()),C(()=>y()(`composer.shortcut`)))]),_(`scroll`,o,xr),_(`change`,Ce,zr),_(`pointerdown`,N,Wr),_(`pointerup`,N,Gr),_(`pointercancel`,N,Kr),_(`contextmenu`,N,ce(function(e){Ee.call(this,i,e)})),_(`click`,N,qr),_(`input`,we,Fr),_(`paste`,we,Br),_(`compositionstart`,we,Lr),_(`compositionend`,we,Ir),_(`keydown`,we,Mr),_(`click`,Te,()=>void Ar()),p(r,a)};A(zi,e=>{S(a)===`loading`?e(Bi):S(a)===`missing`?e(Vi,1):S(a)===`error`?e(Hi,2):S(s)===`loading`?e(Ui,3):S(s)===`missing`?e(Wi,4):S(s)===`error`?e(Gi,5):S(o)===`loading`?e(Ki,6):(S(o),n(ee()),C(()=>S(o)===`error`||ee().openState===`error`)?e(qi,7):e(Ji,-1))}),E(Ci),E(Si),E(xi);var Yi=j(xi,2),Xi=r=>{var i=Tv(),a=D(i),o=P(a),s=j(a,2),c=e(s),u=e(c);dn(e(u),{size:16,strokeWidth:2,"aria-hidden":`true`}),E(u),E(c);var d=j(c,2),m=e(d);let h;var g=P(m,!0),v=j(m,2);let x;var ee=P(v,!0);E(d);var te=j(d,2),ne=e(te),ae=r=>{var i=mv(),a=e(i),o=t=>{var r=sv(),i=D(r),a=P(i),o=j(i,2),s=e(o),c=P(s,!0);p_(j(s,2),{get text(){return S(Qe),C(()=>S(Qe).text)}}),E(o),l((e,t,n)=>{f(a,`← ${e??``}`),T(s,`datetime`,t),f(c,n)},[()=>(n(y()),C(()=>y()(`diary.back`))),()=>(S(Qe),C(()=>S(Qe).name.slice(0,-3))),()=>(S(Qe),C(()=>S(Qe).name.slice(0,-3)))]),_(`click`,i,()=>M(Qe,void 0)),p(t,r)},s=e=>{var t=cv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`loading`)))]),p(e,t)},c=e=>{var t=lv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`diary.tooLarge`)))]),p(e,t)},u=t=>{var r=uv(),i=e(r),a=P(i,!0),o=j(i,2),s=P(o,!0);E(r),l((e,t)=>{f(a,e),f(s,t)},[()=>(n(y()),C(()=>y()(`diary.failed`))),()=>(n(y()),C(()=>y()(`retry`)))]),_(`click`,o,()=>void _i()),p(t,r)},d=e=>{var t=dv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`diary.empty`)))]),p(e,t)},m=n=>{var r=pv();pe(r,5,()=>S(Ze),t,(t,n)=>{var r=fv(),i=e(r),a=P(i,!0);Me(2),E(r),l((e,t)=>{T(i,`datetime`,e),f(a,t)},[()=>(S(n),C(()=>S(n).slice(0,-3))),()=>(S(n),C(()=>S(n).slice(0,-3)))]),_(`click`,r,()=>void vi(S(n))),p(t,r)}),E(r),p(n,r)};A(a,e=>{S(Qe)?e(o):S($e)?e(s,1):S(tt)?e(c,2):S(et)?e(u,3):(S(Ze),C(()=>!S(Ze).length)?e(d,4):e(m,-1))}),E(i),p(r,i)},oe=r=>{var i=wv(),a=D(i),o=e(a),s=P(o,!0),c=j(o,2),u=e(c),d=P(u,!0),m=j(u,2),h=P(m),g=j(m,2),v=P(g,!0),x=j(g,2),ee=P(x,!0),te=j(x,2),ne=P(te,!0),re=j(te,2),ae=P(re,!0);E(c),E(a);var oe=j(a,2),se=e(oe),ce=P(se,!0),le=j(se,2),ue=t=>{var r=hv(),i=j(e(r),2),a=P(i,!0);E(r),l(e=>f(a,e),[()=>(n(y()),C(()=>y()(`history.loading`)))]),p(t,r)},O=t=>{var r=uv(),i=e(r),a=P(i,!0),o=j(i,2),s=P(o,!0);E(r),l((e,t)=>{f(a,e),f(s,t)},[()=>(n(y()),C(()=>y()(`history.failed`))),()=>(n(y()),C(()=>y()(`history.retry`)))]),_(`click`,o,()=>ie().retryHistory?.()),p(t,r)},de=e=>{var t=dv(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`history.empty`)))]),p(e,t)},fe=r=>{var i=Cv(),a=D(i),o=e=>{var t=gv(),r=P(t,!0);l(e=>{t.disabled=(n(Oe()),C(()=>Oe().loadingEarlier)),f(r,e)},[()=>(n(Oe()),n(y()),C(()=>Oe().loadingEarlier?y()(`history.loadingEarlier`):y()(`history.earlier`)))]),_(`click`,t,()=>void Qr()),p(e,t)};A(a,e=>{n(Oe()),C(()=>Oe().hasEarlier)&&e(o)});var s=j(a,2);pe(s,7,()=>(n(Oe()),C(()=>Oe().records)),(e,t)=>`${e.at}:${t}`,(r,i,a)=>{let o=he(()=>(n(S(a)),C(()=>Zr(S(a)))));var s=Sv(),c=e(s),u=P(c,!0),d=j(c,2),m=e=>{var t=_v(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`history.initial`)))]),p(e,t)},h=e=>{var t=_v(),r=P(t,!0);l(e=>f(r,e),[()=>(n(y()),C(()=>y()(`history.initial`)))]),p(e,t)},g=r=>{var i=xv();pe(i,5,()=>S(o),t,(t,r)=>{var i=bv(),a=e(i),o=P(a,!0),s=j(a,2),c=e(s),u=P(c,!0),d=j(c),m=e=>{var t=vv(),n=P(t);l(()=>f(n,`+${S(r),C(()=>S(r).delta)??``}`)),p(e,t)};A(d,e=>{S(r),C(()=>S(r).dimension===`affinity`&&S(r).delta)&&e(m)}),E(s);var h=j(s,2),g=e=>{var t=yv(),i=P(t);l(e=>f(i,`${e??``}: ${S(r),C(()=>S(r).reason)??``}`),[()=>(n(y()),C(()=>y()(`history.reason`)))]),p(e,t)};A(h,e=>{S(r),C(()=>S(r).reason)&&e(g)}),E(i),l((e,t)=>{f(o,e),f(u,t)},[()=>(S(r),C(()=>Yr(S(r).dimension))),()=>(S(r),C(()=>Xr(S(r).dimension,S(r).after)))]),p(t,i)}),E(i),p(r,i)};A(d,e=>{S(i),C(()=>S(i).changes.seed)?e(m):(n(S(o)),C(()=>S(o).length===0)?e(h,1):e(g,-1))}),E(s),l(e=>{T(c,`datetime`,(S(i),C(()=>S(i).at))),f(u,e)},[()=>(S(i),n(b()),C(()=>Jr(S(i).at,b())))]),p(r,s)}),E(s),p(r,i)};A(le,e=>{n(Oe()),C(()=>Oe().status===`loading`)?e(ue):(n(Oe()),C(()=>Oe().status===`error`)?e(O,1):(n(Oe()),C(()=>Oe().records.length===0)?e(de,2):e(fe,-1)))}),E(oe),l((e,t,r,i,a,o,c)=>{f(s,e),f(d,t),f(h,`${n(w()),C(()=>w().moodLabel)??``}${n(w()),C(()=>w().moodNote?` · ${w().moodNote}`:``)??``}`),f(v,r),f(ee,i),f(ne,a),f(ae,o),f(ce,c)},[()=>(n(y()),C(()=>y()(`history.current`))),()=>(n(y()),C(()=>y()(`mood.label`))),()=>(n(y()),C(()=>y()(`affinity.label`))),()=>(n(w()),n(y()),C(()=>w().affinity===void 0?y()(`loading`):`${w().affinity} · ${w().affinityStage}`)),()=>(n(y()),C(()=>y()(`history.signature`))),()=>(n(w()),n(y()),C(()=>w().signature||y()(`signature.empty`))),()=>(n(y()),C(()=>y()(`history.list`)))]),p(r,i)};A(ne,e=>{S(Xe)===`diary`?e(ae):e(oe,-1)}),E(te),E(s),ye(s,e=>M(St,e),()=>S(St)),l((e,t,n,r,i)=>{T(o,`aria-label`,e),T(s,`aria-label`,t),T(u,`aria-label`,n),T(m,`aria-selected`,S(Xe)===`history`),h=re(m,1,`cmp-btn cmp-btn-ghost cmp-btn-sm`,null,h,{"cmp-btn-active":S(Xe)===`history`}),f(g,r),T(v,`aria-selected`,S(Xe)===`diary`),x=re(v,1,`cmp-btn cmp-btn-ghost cmp-btn-sm`,null,x,{"cmp-btn-active":S(Xe)===`diary`}),f(ee,i),T(te,`aria-labelledby`,S(Xe)===`history`?`companion-history-tab`:`companion-diary-tab`)},[()=>(n(y()),C(()=>y()(`relationship.close`))),()=>(n(y()),n(w()),C(()=>y()(`relationship.named`,{name:w().companionName}))),()=>(n(y()),C(()=>y()(`relationship.close`))),()=>(n(y()),C(()=>y()(`drawer.history`))),()=>(n(y()),C(()=>y()(`drawer.diary`)))]),_(`click`,o,()=>ii()),_(`click`,u,()=>ii()),_(`click`,m,()=>M(Xe,`history`)),_(`click`,v,()=>void _i()),p(r,i)};A(Yi,e=>{S(Ye)&&e(Xi)});var Zi=j(Yi,2),Qi=t=>{var r=Ov(),i=e(r),a=e(i),o=e=>{var t=Ev();l(e=>{T(t,`src`,S(it)),T(t,`alt`,e)},[()=>(n(y()),C(()=>y()(`image.previewAlt`)))]),p(e,t)},s=e=>{var t=Dv();p(e,t)};A(a,e=>{S(it)?e(o):e(s,-1)}),E(i);var c=j(i,2);dn(e(c),{size:16,strokeWidth:2,"aria-hidden":`true`}),E(c);var u=j(c,2),d=e(u),m=P(d,!0);E(u),E(r),ye(r,e=>M(wt,e),()=>S(wt)),l((e,t,n,i)=>{T(r,`aria-label`,e),T(c,`aria-label`,t),T(d,`aria-label`,n),f(m,i)},[()=>(n(y()),C(()=>y()(`image.preview`))),()=>(n(y()),C(()=>y()(`image.close`))),()=>(n(y()),C(()=>y()(`image.closeBackdrop`))),()=>(n(y()),C(()=>y()(`close`)))]),_(`click`,c,()=>si()),_(`close`,r,ci),p(t,r)};A(Zi,e=>{S(rt)&&e(Qi)}),E(bi);var $i=j(bi,2),ea=P($i,!0);l((e,t,r)=>{T(bi,`data-theme`,te()===`dark`?`night-voyage`:`sticker-messenger`),T(Ci,`aria-label`,e),T(Ei,`aria-label`,t),T(Ei,`aria-expanded`,S(Ye)),f(Fi,(n(w()),C(()=>w().companionName))),re(Li,1,`cmp-status ${n(ee()),C(()=>ee().status===`offline`?`cmp-status-error`:ee().status===`working`?`cmp-status-warning`:`cmp-status-success`)??``}`),f(Ri,`${S(Dt)??``} · ${n(w()),C(()=>w().moodLabel)??``}`),f(ea,r)},[()=>(n(y()),C(()=>y()(`chat.label`))),()=>(n(y()),C(()=>y()(`relationship.view`))),()=>(S(_t),n(y()),C(()=>typeof S(_t)==`string`?S(_t):y()(S(_t).key,S(_t).params)))]),_(`click`,Ei,fi),p(r,yi),de()}var jv=`
327
+ #dsh-companion {
328
+ --cmp-line:color-mix(in srgb,var(--color-base-content) 10%,transparent);
329
+ --cmp-panel:color-mix(in srgb,var(--color-base-100) 94%,transparent);
330
+ box-sizing:border-box;height:100dvh;overflow:hidden;color:var(--color-base-content);-webkit-tap-highlight-color:transparent;
331
+ background:radial-gradient(circle at 8% 3%,color-mix(in srgb,var(--color-secondary) 19%,transparent),transparent 32%),var(--color-base-200);
332
+ font-family:"Noto Sans SC",ui-rounded,"SF Pro Rounded","Segoe UI",system-ui,sans-serif;
333
+ }
334
+ #dsh-companion[data-theme="night-voyage"] {
335
+ --cmp-line:color-mix(in srgb,var(--color-base-content) 11%,transparent);
336
+ --cmp-panel:color-mix(in srgb,var(--color-base-100) 92%,transparent);
337
+ }
338
+ #dsh-companion *,#dsh-companion *::before,#dsh-companion *::after{box-sizing:border-box}
339
+ #dsh-companion button,#dsh-companion textarea,#dsh-companion input{font:inherit}
340
+ #dsh-companion + .companion-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
341
+ #dsh-companion.companion-shell{height:100dvh;padding:0;overflow:hidden}
342
+ #dsh-companion .companion-app{position:relative;display:grid;grid-template-columns:minmax(0,1fr);width:100%;height:100dvh;margin:0;overflow:hidden;border:0;border-radius:0;background:var(--cmp-panel);box-shadow:none;transition:grid-template-columns .24s ease}
343
+ #dsh-companion .companion-content{min-width:0;min-height:0;grid-column:1}
344
+ #dsh-companion .companion-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-width:0;min-height:0}
345
+ #dsh-companion .companion-header{position:relative;z-index:8;display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid var(--cmp-line);background:color-mix(in srgb,var(--color-base-100) 83%,transparent);backdrop-filter:blur(20px)}
346
+ #dsh-companion .companion-avatar-anchor{position:relative;flex:none}
347
+ #dsh-companion .companion-avatar{width:46px;height:46px;padding:0;border:0;background:transparent;filter:drop-shadow(0 0 2px color-mix(in srgb,var(--color-primary) 48%,transparent)) drop-shadow(0 6px 9px color-mix(in srgb,var(--color-primary) 22%,transparent));cursor:default}
348
+ #dsh-companion .companion-header-copy{min-width:0;flex:1}
349
+ #dsh-companion .companion-name{font-size:1.02rem;font-weight:780;letter-spacing:-.02em}
350
+ #dsh-companion .companion-presence{display:flex;align-items:center;gap:6px;margin-top:2px;color:color-mix(in srgb,var(--color-base-content) 64%,transparent);font-size:.73rem}
351
+ #dsh-companion .companion-header-actions{display:flex;flex:none;align-items:center;gap:2px}
352
+ #dsh-companion .companion-history-toggle{color:inherit;opacity:.64}
353
+ #dsh-companion .companion-history-toggle:hover,#dsh-companion .companion-history-toggle:focus-visible{opacity:1}
354
+ #dsh-companion .companion-full-dsh{flex:none;color:inherit;opacity:.64;text-decoration:none}
355
+ #dsh-companion .companion-full-dsh-label{display:inline}
356
+ #dsh-companion .companion-full-dsh:hover{opacity:1}
357
+ #dsh-companion .companion-timeline{min-width:0;min-height:0;overflow-x:clip;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:28px clamp(16px,4vw,48px) 16px}
358
+ #dsh-companion .companion-timeline:not(.timeline-ready){visibility:hidden}
359
+ #dsh-companion .companion-timeline-content,#dsh-companion .companion-row,#dsh-companion .companion-message-stack{min-width:0;max-width:100%}
360
+ #dsh-companion .companion-row{display:grid;grid-template-columns:34px minmax(0,auto);align-items:start;justify-content:start;gap:9px;width:100%;margin:9px 0}
361
+ #dsh-companion .companion-row.outgoing{grid-template-columns:minmax(0,auto) 34px;justify-content:end}
362
+ #dsh-companion .companion-row.outgoing .message-avatar{grid-column:2}
363
+ #dsh-companion .companion-row.outgoing .companion-message-stack{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-end}
364
+ #dsh-companion .message-avatar{align-self:start;width:34px;height:34px;font-size:.72rem}
365
+ #dsh-companion .companion-avatar-crop{display:grid;width:100%;height:100%;place-items:center;overflow:hidden;background:color-mix(in srgb,var(--color-primary) 20%,var(--color-base-200));color:var(--color-primary);font-weight:700}
366
+ #dsh-companion .companion-avatar-crop img{display:block;width:100%;height:100%;object-fit:cover}
367
+ #dsh-companion .companion-message-stack{max-width:min(76vw,680px)}
368
+ #dsh-companion .companion-bubble{min-width:0;max-width:min(76vw,680px);overflow:hidden;padding:11px 15px;border-radius:22px;background:var(--color-base-200);box-shadow:0 5px 18px color-mix(in srgb,var(--color-base-content) 7%,transparent);line-height:1.55;overflow-wrap:anywhere}
369
+ #dsh-companion .outgoing .companion-bubble{background:color-mix(in srgb,var(--color-primary) 22%,var(--color-base-100))}
370
+ #dsh-companion .companion-bubble::before{display:none}
371
+ #dsh-companion .markdown{min-width:0;max-width:100%;overflow-x:clip;overflow-wrap:anywhere}
372
+ #dsh-companion .markdown :first-child{margin-top:0}
373
+ #dsh-companion .markdown :last-child{margin-bottom:0}
374
+ #dsh-companion .markdown p{margin:.45em 0}
375
+ #dsh-companion .markdown h1,#dsh-companion .markdown h2,#dsh-companion .markdown h3,#dsh-companion .markdown h4,#dsh-companion .markdown h5,#dsh-companion .markdown h6{margin:.8em 0 .4em;font:inherit;font-weight:750;line-height:1.25}
376
+ #dsh-companion .markdown h1{font-size:1.35em}
377
+ #dsh-companion .markdown h2{font-size:1.2em}
378
+ #dsh-companion .markdown h3{font-size:1.1em}
379
+ #dsh-companion .markdown ul,#dsh-companion .markdown ol{margin:.5em 0;padding-inline-start:1.6em;list-style-position:outside}
380
+ #dsh-companion .markdown ul{list-style-type:disc}
381
+ #dsh-companion .markdown ol{list-style-type:decimal}
382
+ #dsh-companion .markdown ul ul{list-style-type:circle}
383
+ #dsh-companion .markdown ul ul ul{list-style-type:square}
384
+ #dsh-companion .markdown ol ol{list-style-type:lower-alpha}
385
+ #dsh-companion .markdown li>ul,#dsh-companion .markdown li>ol{margin:.3em 0}
386
+ #dsh-companion .markdown li+li{margin-top:.25em}
387
+ #dsh-companion .markdown li:has(>input[type="checkbox"]){list-style:none}
388
+ #dsh-companion .markdown input[type="checkbox"]{accent-color:var(--color-primary);margin:0 .4em 0 0;vertical-align:middle}
389
+ #dsh-companion .markdown a{color:inherit;font-weight:650;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);text-underline-offset:.18em}
390
+ #dsh-companion .markdown blockquote{border-left:3px solid color-mix(in srgb,var(--color-primary) 55%,transparent);margin:.6em 0;padding-left:.8em;opacity:.82}
391
+ #dsh-companion .markdown code{background:color-mix(in srgb,var(--color-base-content) 8%,transparent);border-radius:.4em;font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-size:.9em;padding:.12em .35em}
392
+ #dsh-companion .markdown pre{box-sizing:border-box;background:color-mix(in srgb,var(--color-base-content) 8%,var(--color-base-100));border-radius:14px;margin:.65em 0;max-width:100%;overflow-x:auto;padding:.85em 1em}
393
+ #dsh-companion .markdown pre code{background:transparent;padding:0}
394
+ #dsh-companion .markdown .katex{font-size:1em}
395
+ #dsh-companion .markdown .katex-display{max-width:100%;margin:.75em 0;overflow-x:auto;overflow-y:hidden;padding:.15em .1em;text-align:left}
396
+ #dsh-companion .markdown table{display:block;width:max-content;min-width:100%;max-width:100%;margin:.65em 0;overflow-x:auto;border-collapse:collapse}
397
+ #dsh-companion .markdown th,#dsh-companion .markdown td{overflow-wrap:normal;word-break:normal;border:1px solid color-mix(in srgb,var(--color-base-content) 18%,transparent);padding:.4em .6em;text-align:left;white-space:nowrap}
398
+ #dsh-companion .markdown th{background:color-mix(in srgb,var(--color-base-content) 8%,transparent);font-weight:700}
399
+ #dsh-companion .markdown img{height:auto;max-width:100%}
400
+ #dsh-companion .markdown hr{border:0;border-top:1px solid color-mix(in srgb,var(--color-base-content) 16%,transparent);margin:.9em 0}
401
+ #dsh-companion .companion-meta{margin-top:4px;opacity:.55;font-size:.68rem}
402
+ #dsh-companion .companion-typing-bubble{display:flex;align-items:center;gap:9px;max-width:min(76vw,340px)}
403
+ #dsh-companion .companion-waiting-copy{color:color-mix(in srgb,var(--color-base-content) 68%,transparent);font-size:.76rem;line-height:1.4;animation:companion-waiting-in .24s ease-out}
404
+ #dsh-companion .companion-media{width:min(70vw,480px);overflow:hidden;border-radius:24px;background:var(--color-base-200);box-shadow:0 8px 24px color-mix(in srgb,var(--color-base-content) 10%,transparent)}
405
+ #dsh-companion .companion-media-button{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
406
+ #dsh-companion .companion-media img{display:block;width:100%;max-height:520px;object-fit:cover}
407
+ #dsh-companion .companion-image-group{display:flex;flex-wrap:wrap;gap:6px;max-width:min(76vw,680px)}
408
+ #dsh-companion .outgoing .companion-image-group{justify-content:flex-end}
409
+ #dsh-companion .companion-image-group-many{width:min(206px,76vw)}
410
+ #dsh-companion .companion-image-group-many .companion-image-entry{width:64px;height:64px}
411
+ #dsh-companion .companion-image-group-many .companion-media{width:64px;height:64px;border-radius:16px}
412
+ #dsh-companion .companion-image-group-many .companion-media img{width:64px;height:64px;object-fit:cover}
413
+ #dsh-companion .companion-media-single{width:auto;max-width:min(76vw,480px)}
414
+ #dsh-companion .companion-media-single .companion-media-button{width:auto;max-width:100%}
415
+ #dsh-companion .companion-media-single img{max-width:100%;max-height:240px}
416
+ #dsh-companion .companion-media-loading,#dsh-companion .companion-media-failure{display:flex;width:100%;min-width:64px;min-height:64px;align-items:center;justify-content:center;gap:8px;padding:14px;color:color-mix(in srgb,var(--color-base-content) 65%,transparent);font-size:.72rem;text-align:center}
417
+ #dsh-companion .companion-media-spinner{margin:20px}
418
+ #dsh-companion .companion-media-failure{flex-direction:column;color:var(--color-error);background:color-mix(in srgb,var(--color-error) 6%,var(--color-base-100))}
419
+ #dsh-companion .companion-media-failure .cmp-btn{color:inherit}
420
+ #dsh-companion .companion-voice{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:6px 10px;min-width:min(300px,70vw)}
421
+ #dsh-companion .companion-audio{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
422
+ #dsh-companion .companion-voice-control{width:44px;height:44px;min-width:44px;min-height:44px;color:var(--color-primary)}
423
+ #dsh-companion .companion-voice-player{min-width:0}
424
+ #dsh-companion .companion-voice-waveform{position:relative;display:flex;height:32px;align-items:center;gap:2px;min-width:150px;cursor:pointer}
425
+ #dsh-companion .companion-voice-waveform>span{width:3px;height:var(--voice-bar);flex:1;border-radius:999px;background:color-mix(in srgb,var(--color-base-content) 20%,transparent);transition:background-color .12s ease}
426
+ #dsh-companion .companion-voice-waveform>span.played{background:var(--color-primary)}
427
+ #dsh-companion .companion-voice-seek{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
428
+ #dsh-companion .companion-voice-waveform:has(.companion-voice-seek:focus-visible){outline:2px solid var(--color-primary);outline-offset:3px;border-radius:var(--radius-field)}
429
+ #dsh-companion .companion-voice-meta{display:flex;min-height:16px;align-items:center;justify-content:space-between;gap:10px;color:color-mix(in srgb,var(--color-base-content) 55%,transparent);font-size:.66rem;line-height:1.2}
430
+ #dsh-companion .companion-voice-meta [role="alert"]{color:var(--color-error)}
431
+ #dsh-companion .companion-transcript{grid-column:1/-1;font-size:.72rem}
432
+ #dsh-companion .companion-transcript summary{display:flex;width:max-content;align-items:center;gap:5px;color:color-mix(in srgb,var(--color-base-content) 60%,transparent);cursor:pointer;list-style:none}
433
+ #dsh-companion .companion-transcript summary::-webkit-details-marker{display:none}
434
+ #dsh-companion .companion-transcript[open] summary{color:var(--color-primary)}
435
+ #dsh-companion .companion-transcript p{margin:7px 0 0;padding-top:7px;border-top:1px solid var(--cmp-line);color:color-mix(in srgb,var(--color-base-content) 78%,transparent);line-height:1.45}
436
+ #dsh-companion .companion-composer{padding:10px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--cmp-line);background:color-mix(in srgb,var(--color-base-100) 88%,transparent);backdrop-filter:blur(20px)}
437
+ #dsh-companion .companion-command-suggestions{max-width:820px;margin:0 auto 7px;padding:4px;border:1px solid color-mix(in srgb,var(--color-primary) 25%,var(--cmp-line));border-radius:18px;background:color-mix(in srgb,var(--color-base-100) 94%,var(--color-base-200));box-shadow:0 8px 24px color-mix(in srgb,var(--color-base-content) 10%,transparent)}
438
+ #dsh-companion .companion-command-suggestion{display:grid;width:100%;min-width:0;min-height:40px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 12px;border-radius:14px;text-align:left}
439
+ #dsh-companion .companion-command-name{color:var(--color-primary);font-family:ui-monospace,"SFMono-Regular",Menlo,monospace;font-size:.78rem;font-weight:730}
440
+ #dsh-companion .companion-command-description{min-width:0;overflow:hidden;color:color-mix(in srgb,var(--color-base-content) 64%,transparent);font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
441
+ #dsh-companion .companion-command-tab{padding:2px 6px;border:1px solid color-mix(in srgb,var(--color-base-content) 16%,transparent);border-radius:6px;color:color-mix(in srgb,var(--color-base-content) 54%,transparent);font-family:ui-monospace,"SFMono-Regular",Menlo,monospace;font-size:.62rem}
442
+ #dsh-companion .companion-image-drafts{display:flex;max-width:820px;gap:8px;margin:0 auto 8px;padding:2px 2px 1px;overflow-x:auto;scrollbar-width:none}
443
+ #dsh-companion .companion-image-drafts::-webkit-scrollbar{display:none}
444
+ #dsh-companion .companion-image-draft{position:relative;width:64px;height:64px;flex:none;overflow:hidden;border:1px solid color-mix(in srgb,var(--color-primary) 28%,var(--cmp-line));border-radius:17px;background:var(--color-base-200);box-shadow:0 5px 14px color-mix(in srgb,var(--color-base-content) 10%,transparent)}
445
+ #dsh-companion .companion-image-draft-preview{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
446
+ #dsh-companion .companion-image-draft img{display:block;width:100%;height:100%;object-fit:cover}
447
+ #dsh-companion .companion-image-draft-remove{position:absolute;top:3px;right:3px}
448
+ #dsh-companion .companion-image-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
449
+ #dsh-companion .companion-compose-row{display:flex;align-items:flex-end;gap:8px;max-width:820px;margin:auto;padding:5px 6px;border:1px solid color-mix(in srgb,var(--color-base-content) 12%,transparent);border-radius:22px;overflow:visible;background:color-mix(in srgb,var(--color-base-100) 92%,var(--color-base-200));box-shadow:0 6px 22px color-mix(in srgb,var(--color-base-content) 7%,transparent);transition:border-color .16s ease,box-shadow .16s ease}
450
+ #dsh-companion .companion-compose-row:focus-within{border-color:color-mix(in srgb,var(--color-primary) 65%,transparent);box-shadow:0 0 0 4px color-mix(in srgb,var(--color-primary) 16%,transparent),0 8px 26px color-mix(in srgb,var(--color-base-content) 8%,transparent)}
451
+ #dsh-companion .companion-textarea{flex:1;min-width:0;min-height:43px;max-height:150px;padding:11px 2px;border:0;border-radius:0;outline:0;background:transparent;color:inherit;resize:none;line-height:1.42;box-shadow:none}
452
+ #dsh-companion .companion-textarea::placeholder{color:color-mix(in srgb,var(--color-base-content) 46%,transparent)}
453
+ #dsh-companion .companion-attach{flex:none;margin:0 0 1px;color:color-mix(in srgb,var(--color-base-content) 56%,transparent);touch-action:manipulation;-webkit-touch-callout:none;user-select:none}
454
+ #dsh-companion .companion-attach:hover,#dsh-companion .companion-attach:focus-visible{color:var(--color-primary)}
455
+ #dsh-companion .companion-microphone{flex:none;margin:0 0 1px;color:color-mix(in srgb,var(--color-base-content) 56%,transparent);transition:color .16s ease,background-color .16s ease,box-shadow .16s ease}
456
+ #dsh-companion .companion-microphone:hover,#dsh-companion .companion-microphone:focus-visible{color:var(--color-primary)}
457
+ #dsh-companion .companion-microphone[data-state="recording"]{color:var(--color-error);background:color-mix(in srgb,var(--color-error) 12%,transparent);box-shadow:0 0 0 4px color-mix(in srgb,var(--color-error) 12%,transparent)}
458
+ #dsh-companion .companion-microphone[data-state="stopping"],#dsh-companion .companion-microphone[data-state="transcribing"]{color:var(--color-primary)}
459
+ #dsh-companion .companion-microphone:disabled{cursor:not-allowed;opacity:.52}
460
+ #dsh-companion .companion-send{font-size:1.15rem}
461
+ #dsh-companion .companion-context-meter-wrap{position:relative;flex:none;align-self:flex-end}
462
+ #dsh-companion .companion-context-meter{width:28px;height:28px;margin:0 2px 8px 0;color:color-mix(in srgb,var(--color-base-content) 48%,transparent)}
463
+ #dsh-companion .companion-context-meter:hover,#dsh-companion .companion-context-meter:focus-visible,#dsh-companion .companion-context-meter-open{color:var(--color-primary)}
464
+ #dsh-companion .companion-context-meter:focus-visible{outline:2px solid color-mix(in srgb,var(--color-primary) 70%,transparent);outline-offset:2px}
465
+ #dsh-companion .companion-context-meter svg{display:block;width:28px;height:28px;overflow:visible;transform:rotate(-90deg)}
466
+ #dsh-companion .companion-context-meter circle{fill:none;stroke-width:2.6}
467
+ #dsh-companion .companion-context-meter-track{stroke:color-mix(in srgb,var(--color-base-content) 13%,transparent)}
468
+ #dsh-companion .companion-context-meter-value{stroke:var(--context-meter-color,var(--color-primary));stroke-linecap:round;stroke-dasharray:100;transition:stroke-dashoffset .24s ease,stroke .18s ease}
469
+ #dsh-companion .companion-context-meter[data-state="warning"]{--context-meter-color:var(--color-warning)}
470
+ #dsh-companion .companion-context-meter[data-state="active"]{--context-meter-color:var(--color-secondary);animation:companion-context-pulse 1.8s ease-in-out infinite}
471
+ #dsh-companion .companion-context-meter[data-state="complete"]{--context-meter-color:var(--color-success)}
472
+ #dsh-companion .companion-context-meter[data-state="failed"]{--context-meter-color:var(--color-error)}
473
+ #dsh-companion .companion-context-popover{position:absolute;right:0;bottom:calc(100% + 9px);z-index:15;width:min(260px,calc(100vw - 28px));margin:0;padding:14px 16px;border:1px solid color-mix(in srgb,var(--color-base-content) 14%,transparent);border-radius:16px;color:var(--color-base-content);background:var(--color-base-100);box-shadow:0 14px 38px rgb(0 0 0 / .2);line-height:1.45}
474
+ #dsh-companion .companion-context-popover h2{margin:0 0 3px;font-size:.86rem;font-weight:760}
475
+ #dsh-companion .companion-context-popover p{margin:3px 0;font-size:.76rem}
476
+ #dsh-companion .companion-context-popover .companion-context-percent{color:var(--color-primary);font-size:1.12rem;font-weight:780}
477
+ #dsh-companion .companion-context-popover .companion-context-note{margin-top:9px;color:color-mix(in srgb,var(--color-base-content) 78%,transparent);font-size:.68rem}
478
+ #dsh-companion .companion-continuity-status{max-width:820px;margin:0 auto 6px;padding:0 12px;color:color-mix(in srgb,var(--color-base-content) 64%,transparent);font-size:.72rem;line-height:1.4}
479
+ #dsh-companion .companion-continuity-status[data-state="running"]{color:var(--color-secondary)}
480
+ #dsh-companion .companion-continuity-status[data-state="complete"]{color:var(--color-success)}
481
+ #dsh-companion .companion-continuity-status[data-state="failed"]{color:var(--color-error)}
482
+ #dsh-companion .companion-continuity-record{display:flex;max-width:min(76vw,620px);align-items:center;gap:8px;margin:16px auto;padding:7px 12px;border:1px solid color-mix(in srgb,var(--color-base-content) 10%,transparent);border-radius:999px;color:color-mix(in srgb,var(--color-base-content) 60%,transparent);font-size:.7rem;line-height:1.35;text-align:center}
483
+ #dsh-companion[data-theme="sticker-messenger"] .companion-context-meter[data-state="active"]{--context-meter-color:var(--color-primary)}
484
+ #dsh-companion[data-theme="sticker-messenger"] .companion-context-popover{border-radius:18px}
485
+ #dsh-companion[data-theme="night-voyage"] .companion-context-meter[data-state="active"]{--context-meter-color:var(--color-secondary)}
486
+ #dsh-companion[data-theme="night-voyage"] .companion-context-popover{border-radius:12px;box-shadow:0 16px 42px rgb(0 0 0 / .42)}
487
+ #dsh-companion .companion-compose-hint{max-width:790px;margin:5px auto 0;padding:0 10px;color:color-mix(in srgb,var(--color-base-content) 47%,transparent);font-size:.66rem}
488
+ #dsh-companion .companion-voice-input-status{max-width:820px;margin:6px auto 0;padding:0 12px;color:var(--color-primary);font-size:.7rem;line-height:1.35}
489
+ #dsh-companion .companion-voice-input-status[role="status"]{min-height:1.1em}
490
+ #dsh-companion .companion-voice-input-unavailable{color:color-mix(in srgb,var(--color-base-content) 55%,transparent)}
491
+ #dsh-companion .companion-voice-input-error{color:var(--color-error)}
492
+ #dsh-companion .companion-recovery{align-self:center;justify-self:center;max-width:500px;padding:34px 24px;text-align:center}
493
+ #dsh-companion .companion-recovery h1{margin:8px 0;font-size:1.32rem}
494
+ #dsh-companion .companion-recovery p{opacity:.66}
495
+ #dsh-companion .companion-mood-orb{width:86px;height:86px;margin:0 auto 17px;background:radial-gradient(circle at 34% 28%,var(--color-accent),var(--color-primary));filter:drop-shadow(0 0 10px color-mix(in srgb,var(--color-primary) 12%,transparent)) drop-shadow(0 16px 19px color-mix(in srgb,var(--color-primary) 25%,transparent))}
496
+ #dsh-companion .companion-history-backdrop{position:fixed;z-index:29;inset:0;background:color-mix(in srgb,var(--color-neutral) 42%,transparent);backdrop-filter:blur(3px);animation:companion-history-fade-in .18s ease}
497
+ #dsh-companion .companion-history-backdrop>button{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:default}
498
+ #dsh-companion .companion-history-drawer{position:fixed;z-index:30;top:0;left:0;display:flex;width:min(420px,calc(100vw - 18px));height:100dvh;flex-direction:column;overflow:hidden;border-right:1px solid color-mix(in srgb,var(--color-base-content) 14%,transparent);color:var(--color-base-content);background:color-mix(in srgb,var(--color-base-100) 96%,var(--color-secondary) 4%);box-shadow:18px 0 60px rgb(0 0 0 / .24);animation:companion-history-slide-in .24s cubic-bezier(.2,.8,.2,1);isolation:isolate}
499
+ #dsh-companion .companion-history-controls{display:flex;flex:none;justify-content:flex-end;padding:max(12px,env(safe-area-inset-top)) 16px 8px}
500
+ #dsh-companion .companion-history-scroll{flex:1;min-height:0;overflow-y:auto;padding:0 22px max(24px,env(safe-area-inset-bottom));overscroll-behavior:contain}
501
+ #dsh-companion .companion-history-scroll h3{margin:0 0 10px;font-size:.78rem;font-weight:760;letter-spacing:.04em;text-transform:uppercase}
502
+ #dsh-companion .companion-diary-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 20px 12px;border-bottom:1px solid var(--cmp-line)}
503
+ #dsh-companion .companion-diary-tabs [role="tab"]{border-radius:999px;color:color-mix(in srgb,var(--color-base-content) 62%,transparent)}
504
+ #dsh-companion .companion-diary-tabs [aria-selected="true"]{color:var(--color-base-content);background:color-mix(in srgb,var(--color-secondary) 18%,var(--color-base-200))}
505
+ #dsh-companion .companion-diary{min-height:100%}
506
+ #dsh-companion .companion-diary-list{display:grid;gap:8px}
507
+ #dsh-companion .companion-diary-list-entry{display:flex;width:100%;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid color-mix(in srgb,var(--color-base-content) 9%,transparent);border-radius:13px;color:inherit;background:color-mix(in srgb,var(--color-base-100) 84%,var(--color-secondary) 4%);font:inherit;text-align:left;cursor:pointer}
508
+ #dsh-companion .companion-diary-list-entry:hover{border-color:color-mix(in srgb,var(--color-secondary) 34%,transparent);background:color-mix(in srgb,var(--color-base-100) 76%,var(--color-secondary) 9%)}
509
+ #dsh-companion .companion-diary-list-entry time{font-size:.8rem;letter-spacing:.03em}
510
+ #dsh-companion .companion-diary-list-entry span{color:color-mix(in srgb,var(--color-base-content) 45%,transparent);font-size:1.1rem}
511
+ #dsh-companion .companion-diary-back{margin:0 0 12px}
512
+ #dsh-companion .companion-diary-page{min-height:calc(100dvh - 260px);padding:24px 22px;border:1px solid color-mix(in srgb,var(--color-secondary) 20%,transparent);border-radius:16px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 30px,color-mix(in srgb,var(--color-secondary) 9%,transparent) 31px),color-mix(in srgb,var(--color-base-100) 91%,var(--color-secondary) 5%);box-shadow:0 12px 34px rgb(0 0 0 / .12);font-size:.86rem;line-height:1.82;overflow-wrap:anywhere}
513
+ #dsh-companion .companion-diary-page>time{display:block;margin-bottom:20px;color:color-mix(in srgb,var(--color-base-content) 55%,transparent);font-size:.72rem;letter-spacing:.08em}
514
+ #dsh-companion .companion-history-current{padding:14px 0 18px;border-bottom:1px solid var(--cmp-line)}
515
+ #dsh-companion .companion-history-current-list{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 15px;margin:0;font-size:.77rem;line-height:1.4}
516
+ #dsh-companion .companion-history-current-list dt{color:color-mix(in srgb,var(--color-base-content) 52%,transparent)}
517
+ #dsh-companion .companion-history-current-list dd{min-width:0;margin:0;text-align:right;overflow-wrap:anywhere}
518
+ #dsh-companion .companion-history-list{padding-top:20px}
519
+ #dsh-companion .companion-history-state{display:grid;min-height:86px;place-items:center;gap:8px;padding:22px 12px;color:color-mix(in srgb,var(--color-base-content) 58%,transparent);font-size:.78rem;text-align:center}
520
+ #dsh-companion .companion-history-state p{margin:0}
521
+ #dsh-companion .companion-history-earlier{display:block;width:100%;margin:0 0 12px}
522
+ #dsh-companion .companion-history-entries{display:grid;gap:10px}
523
+ #dsh-companion .companion-history-entry{padding:13px 14px;border:1px solid color-mix(in srgb,var(--color-base-content) 10%,transparent);border-radius:15px;background:color-mix(in srgb,var(--color-base-100) 82%,var(--color-base-200));box-shadow:0 5px 18px color-mix(in srgb,var(--color-base-content) 5%,transparent)}
524
+ #dsh-companion .companion-history-entry>time{display:block;margin-bottom:8px;color:color-mix(in srgb,var(--color-base-content) 78%,transparent);font-size:.68rem}
525
+ #dsh-companion .companion-history-entry ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}
526
+ #dsh-companion .companion-history-entry li{display:grid;gap:6px;min-width:0;font-size:.77rem;line-height:1.4}
527
+ #dsh-companion .companion-history-entry li+li{padding-top:10px;border-top:1px solid var(--cmp-line)}
528
+ #dsh-companion .companion-history-values{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0}
529
+ #dsh-companion .companion-history-values span{display:grid;min-width:0;place-items:center;padding:9px 14px;border-radius:999px;background:color-mix(in srgb,var(--color-base-content) 5%,transparent);text-align:center;overflow-wrap:anywhere}
530
+ #dsh-companion .companion-history-growth{align-self:center;color:var(--color-success);font-size:.8rem}
531
+ #dsh-companion .companion-history-values small{color:color-mix(in srgb,var(--color-base-content) 78%,transparent);font-size:.62rem;text-transform:uppercase}
532
+ #dsh-companion .companion-history-reason{margin:0;color:color-mix(in srgb,var(--color-base-content) 62%,transparent);font-size:.7rem;overflow-wrap:anywhere}
533
+ #dsh-companion .companion-history-initial{margin:0;color:color-mix(in srgb,var(--color-base-content) 62%,transparent);font-size:.76rem}
534
+ #dsh-companion[data-theme="night-voyage"] .companion-history-drawer{background:color-mix(in srgb,var(--color-base-100) 95%,var(--color-secondary) 5%);box-shadow:18px 0 60px rgb(0 0 0 / .42)}
535
+ @keyframes companion-history-fade-in{from{opacity:0}to{opacity:1}}
536
+ @keyframes companion-history-slide-in{from{opacity:.2;transform:translateX(-100%)}to{opacity:1;transform:none}}
537
+ #dsh-companion .companion-lightbox{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:40px;border:0;background:transparent;place-items:center;overflow:hidden}
538
+ #dsh-companion .companion-lightbox::backdrop{background:transparent}
539
+ #dsh-companion .companion-lightbox-dialog{position:relative;z-index:1;display:grid;max-width:calc(100vw - 80px);max-height:calc(100dvh - 80px);margin:0;padding:0;border:0;background:transparent;place-items:center;box-shadow:none}
540
+ #dsh-companion .companion-lightbox .cmp-modal-box{margin:0;padding:0;background:transparent;box-shadow:none}
541
+ #dsh-companion .companion-lightbox img{position:relative;display:block;max-width:min(100%,1600px);max-height:calc(100dvh - 80px);border-radius:12px;background:var(--color-base-200);object-fit:contain;box-shadow:0 20px 60px rgb(0 0 0 / .36)}
542
+ #dsh-companion .companion-loading-shell{display:flex;align-items:center;justify-content:center;gap:9px;color:color-mix(in srgb,var(--color-base-content) 60%,transparent);font-size:.8rem}
543
+ #dsh-companion .companion-lightbox-backdrop{position:fixed;z-index:0;inset:0;display:block;background:color-mix(in srgb,var(--color-neutral) 72%,transparent);backdrop-filter:blur(12px)}
544
+ #dsh-companion .companion-lightbox-backdrop>button{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;opacity:0;cursor:default}
545
+ #dsh-companion .companion-lightbox-close{position:fixed;z-index:2;top:20px;right:20px;width:36px;height:36px;padding:0;border:1px solid color-mix(in srgb,var(--color-base-content) 16%,transparent);border-radius:999px;background:var(--color-base-100);color:var(--color-base-content);box-shadow:0 8px 24px rgb(0 0 0 / .18)}
546
+ @keyframes companion-waiting-in{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:none}}
547
+ @keyframes companion-context-pulse{0%,100%{opacity:.68}50%{opacity:1}}
548
+ @media (min-width:821px){#dsh-companion .companion-composer{padding-bottom:max(24px,env(safe-area-inset-bottom))}#dsh-companion .companion-row{grid-template-columns:40px minmax(0,auto)}#dsh-companion .companion-row.outgoing{grid-template-columns:minmax(0,auto) 40px}#dsh-companion .message-avatar{width:40px;height:40px}}
549
+ @media (max-width:820px){#dsh-companion .companion-header{padding:calc(10px + env(safe-area-inset-top)) 13px 10px}#dsh-companion .companion-timeline{padding:18px 12px 10px}#dsh-companion .companion-composer{padding-inline:9px}#dsh-companion .companion-compose-hint{display:none}#dsh-companion .companion-message-stack,#dsh-companion .companion-bubble{max-width:78vw}#dsh-companion .companion-full-dsh-label{display:none}}
550
+ @media (max-width:520px){#dsh-companion .companion-timeline{padding-bottom:8px}#dsh-companion .companion-composer{padding-inline:9px}#dsh-companion .companion-voice{min-width:0}}
551
+ @media (max-width:430px){#dsh-companion .companion-avatar{width:42px;height:42px}#dsh-companion .companion-header{gap:8px}#dsh-companion .companion-row{grid-template-columns:30px minmax(0,auto);gap:7px}#dsh-companion .companion-row.outgoing{grid-template-columns:minmax(0,auto) 30px}#dsh-companion .message-avatar{width:30px;height:30px}#dsh-companion .companion-voice{min-width:0}}
552
+ @media (prefers-reduced-motion:reduce){#dsh-companion *,#dsh-companion *::before,#dsh-companion *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}#dsh-companion .companion-context-meter[data-state="active"]{animation:none!important}#dsh-companion .companion-history-backdrop,#dsh-companion .companion-history-drawer{animation:none!important}}
553
+ `,Mv=`[[tts:text]]`,Nv=`[[/tts:text]]`,Pv=240;function Fv(e,t){let n,r=0;for(let i of e.split(/\n/u)){if(r>=t)break;let e=/^[ \t]{0,3}(`{3,}|~{3,})[^\n]*$/u.exec(i)?.[1];e&&(n?e[0]===n[0]&&e.length>=n.length&&/^[ \t]*$/u.test(i.slice(e.length))&&(n=void 0):n=e),r+=i.length+1}return!!n}function Iv(e){let t=e.indexOf(Mv);if(t<0)return[{kind:`text`,text:e}];let n=e.indexOf(Nv,t+12);if(n<0)return[{kind:`text`,text:e}];let r=n+13,i=e.slice(t+12,n),a=i.replace(/[\s\u00a0]+/gu,` `).trim();return!a||Array.from(a).length>Pv||i.includes(`[[`)||i.includes(`]]`)||Fv(e,t)||e.indexOf(Mv,r)>=0?[{kind:`text`,text:e}]:[...t?[{kind:`text`,text:e.slice(0,t)}]:[],{kind:`voice`,text:a},...r<e.length?[{kind:`text`,text:e.slice(r)}]:[]]}function Lv(e){return e===`sending`?{pending:!0,label:`正在发送…`}:e===`queued`?{pending:!0,label:`排队中`}:e===`unresolved`?{pending:!0,label:`尚未确认送达…`}:{pending:!1,label:void 0}}function Rv(e,t){ue(t,!0);let n=we(Ce({cursor:0,before:null,hasMore:!1,hasChangesMore:!1,pendingCount:0,cancellable:[],name:`Lamplit`,typing:!1,messages:[],storageError:!1,results:[]})),i=we(null),a=we(!1),o=we(!1),c,l=we(!1),u=we(!1),d=we(``),f,p=!1,m=!1,h=!1,g=new AbortController,_=we(Ce([])),v=new Map;function y(){let e=new Set(S(n).messages.map(e=>e.id));M(_,S(_).filter(t=>!e.has(t.id)),!0);for(let[t,n]of v)e.has(t)&&(v.delete(t),n())}let b=(e,t)=>St[e].replace(/\{(\w+)\}/gu,(e,n)=>String(t?.[n]??e)),x=F(()=>{let e=[],t=S(n).results??[],r=new Map(t.flatMap(e=>e.sourceIds.map(t=>[t,e]))),i=new Set(t.map(e=>e.sourceIds.at(-1)).filter(e=>!!e)),s=[...S(n).messages.filter(e=>e.delivery!==`replaced`),...S(_).filter(e=>e.delivery!==`replaced`&&!S(n).messages.some(t=>t.id===e.id))],c=e=>{let t=e.answers.map((t,n)=>{let r=n===0?``:`:${n}`,i=`${e.id}:answer${r}`;return{id:i,side:`incoming`,items:Iv(t).map((e,t)=>e.kind===`voice`?{id:`${i}:${t}`,messageKey:i,kind:`voice`,side:`incoming`,text:e.text,status:`preparing`}:{id:`${i}:${t}`,messageKey:i,kind:`text`,side:`incoming`,text:e.text})}}),n=[];for(let t of e.images)n.push({id:t.id,messageKey:e.id,kind:`image`,side:`incoming`,state:`ready`,previewUrl:t.url,alt:t.name});let r=e.status===`interrupted`||e.status===`cancelled`;if((e.error||e.status===`failed`||r)&&n.push({id:`${e.id}:error`,messageKey:e.id,kind:`notice`,side:`incoming`,tone:`error`,text:e.error===`cancelled`||r?`这次回应已停止。`:`这次未能回应。`}),n.length&&t.length){let e=t.at(-1);t[t.length-1]={...e,items:[...e.items,...n]}}else n.length&&t.push({id:`${e.id}:answer`,side:`incoming`,items:n});return t};for(let[t,n]of s.entries()){let a=Lv(n.delivery),o=n.sequence>0?n.sequence*2:2**53-1-(s.length-t)*2,l={id:`${n.id}:user`,messageKey:`${n.id}:user`,kind:`text`,side:`outgoing`,text:n.input,time:n.created,pending:[`sending`,`pending`,`unresolved`].includes(n.delivery),waitsForCurrentReply:n.delivery===`pending`};e.push({order:o,unit:{id:l.id,side:`outgoing`,items:[...n.input?[l]:[],...(n.inputImages??[]).map(e=>({id:e.id,messageKey:l.messageKey,kind:`image`,side:`outgoing`,state:`ready`,previewUrl:e.url,alt:e.name}))],time:n.created,pending:a.pending,pendingLabel:a.label}});let u=r.get(n.id),d=[];u&&i.has(n.id)&&(d=c(u)),n.inputError&&(d=[...d,{id:`${n.id}:input-error`,side:`incoming`,items:[{id:`${n.id}:input-error`,messageKey:n.id,kind:`notice`,side:`incoming`,tone:`error`,text:n.inputError}]}]),d.forEach((t,n)=>e.push({order:o+1+n/1e3,unit:t}))}for(let n of t)s.some(e=>e.id===n.sourceIds.at(-1))||c(n).forEach((t,r)=>e.push({order:n.sequence*2+1+r/1e3,unit:t}));e.sort((e,t)=>e.order-t.order);let f=Ke(e.map(({unit:e})=>e),S(n).compactions??[]);return{items:f.flatMap(e=>e.items),messageUnits:f,pendingCount:S(n).pendingCount,running:S(n).typing,status:!S(l)&&S(u)?`offline`:S(n).typing?`working`:`ready`,openState:S(u)?`open`:`loading`,hasMore:S(a),loadingOlder:S(o),promptError:S(d)||(S(n).storageError?`暂时无法保存消息。`:void 0)}});async function C(){if(h){m=!0;return}h=!0;try{do{m=!1;let e=await fetch(c===void 0?`/api/session`:`/api/session?after=${c}`,{signal:g.signal});if(!e.ok)throw Error(`连接暂时中断`);let t=await e.json();c===void 0&&(M(i,t.before,!0),M(a,t.hasMore,!0)),M(n,{...t,messages:Pe(S(n).messages,t.messages),results:Fe(S(n).results??[],t.results??[])},!0),y(),c=t.cursor,M(u,!0),M(l,!0),t.hasChangesMore&&(m=!0)}while(m&&!p)}catch{p||M(l,!1)}finally{h=!1}}class ee extends Error{}async function T(e,t){let n=await fetch(e,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t),signal:g.signal});if(n.status===422)throw new ee(`消息内容无效,请检查文字长度和图片后重新发送。`);if(!n.ok)throw Error(`尚未确认送达,请重试。`)}let te={async prepareVoice(e){let t=await fetch(`/api/voice/synthesize`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({text:e}),signal:g.signal});if(!t.ok)throw Error(`Speech synthesis failed`);return(await t.json()).url},async loadOlder(){if(!S(o)&&S(a)&&S(i)!==null){M(o,!0);try{let e=await fetch(`/api/session?before=${S(i)}`,{signal:g.signal});if(!e.ok)throw Error(`暂时无法加载更早消息`);let t=await e.json();M(n,{...S(n),messages:Pe(S(n).messages,t.messages),results:Fe(S(n).results??[],t.results??[])},!0),M(i,t.before,!0),M(a,t.hasMore,!0)}catch{p||M(d,`暂时无法加载更早消息,请重试。`)}finally{M(o,!1)}}},async transcribeVoice(e,t){let n=await fetch(`/api/voice/transcribe`,{method:`POST`,headers:{"content-type":e.mediaType},body:e.blob,signal:t?AbortSignal.any([t,g.signal]):g.signal});if(!n.ok)throw Error(`Transcription failed`);return n.json()},async send(e,t,r){if(e===`/compact`&&!t.length){try{await T(`/api/compact`,{}),await C()}catch{throw new vn(`暂时无法整理对话`)}return}let i=crypto.randomUUID(),a={id:i,input:e,delivery:`sending`,inputError:null,created:Date.now(),sequence:0,revision:0,inputImages:t.map(e=>({id:e.id,name:e.file.name,url:e.previewUrl}))};M(_,[...S(_),a],!0),M(d,``);let o=!1;try{let a=await Ue(t),s=i;M(_,S(_).map(e=>e.id===s?{...e,id:i}:e),!0),v.set(i,()=>{o=!0,r?.({reason:`observed`})}),y(),await T(`/api/messages`,{id:i,input:e,images:a,replaces:S(n).draft?.sourceIds??[]}),M(_,S(_).map(e=>e.id===i?{...e,delivery:`pending`}:e),!0),await C()}catch(e){if(o)return;throw M(_,S(_).filter(e=>e.id!==i),!0),v.delete(i),M(d,e instanceof ee?e.message:`尚未确认送达,请检查对话中的待确认草稿。`,!0),r?.({reason:`failed`}),e}},async stop(){for(let e of S(n).cancellable)await T(`/api/cancel`,{id:e});await C()}};fe(()=>{let e=document.createElement(`style`);return e.textContent=jv,document.head.append(e),f=new EventSource(`/api/events`),f.onopen=()=>{M(l,!0),C()},f.onmessage=()=>{C()},f.onerror=()=>{C()},()=>{p=!0,g.abort(),f?.close(),v.clear(),e.remove()}}),r(`1uha8ag`,e=>{s(()=>{w.title=`${S(n).name??``} · Lamplit`})});{let t=F(()=>S(n).speech?`available`:`unavailable`),r=F(()=>({companionName:S(n).name,userName:`你`,preferredAddress:`你`,companionAvatar:S(n).avatars?.companion,userAvatar:S(n).avatars?.user,signature:S(n).relationship?.signature??``,mood:S(n).relationship?.mood??`neutral`,moodLabel:S(n).relationship?.moodLabel??`如常`,moodNote:S(n).relationship?.note,affinity:S(n).relationship?.affinity,affinityStage:S(n).relationship?.affinityStage})),i=F(()=>S(u)?`ready`:`loading`),a=F(()=>S(u)?`ready`:`loading`),o=F(()=>S(n).relationship?`ready`:`loading`),s=F(()=>({lifecycle:S(n).lifecycle,contextPressure:S(n).context&&S(n).context.activeTokens!==null&&S(n).context.windowTokens!==null?{contextWindow:S(n).context.windowTokens,projectedTokens:S(n).context.activeTokens}:void 0})),c=F(()=>({status:S(u)?`ready`:`loading`,records:S(n).history??[],hasEarlier:!1}));Av(e,{get projection(){return S(x)},get actions(){return te},t:b,locale:`zh`,scheme:`dark`,sessionId:`partner`,get voiceCapability(){return S(t)},get imageLimits(){return S(n).imageLimits},onHistoryOpenChange:void 0,get identity(){return S(r)},get workspaceReadiness(){return S(i)},get sessionReadiness(){return S(a)},get relationshipReadiness(){return S(o)},get continuity(){return S(s)},get history(){return S(c)},get recoveredDraft(){return S(n).draft}})}de()}export{Rv as component};