@cardstack/boxel-cli 0.3.2-unstable.58 → 0.3.2-unstable.60

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 (921) hide show
  1. package/api.ts +3 -3
  2. package/bundled-realms/base/command.gts +73 -0
  3. package/bundled-test-harness/assets/adapter-TgpmkD23.js +2 -0
  4. package/bundled-test-harness/assets/add-field-to-card-definition-command-test-BVVD6_Wq.js +111 -0
  5. package/bundled-test-harness/assets/add-workspace-test-BvvYJ2Fk.js +71 -0
  6. package/bundled-test-harness/assets/ai-assistant-Ba_RBqf6.js +129 -0
  7. package/bundled-test-harness/assets/ai-assistant-panel-service-test-DK87n1hh.js +95 -0
  8. package/bundled-test-harness/assets/ai-assistant-test-CZATBlJS.js +2137 -0
  9. package/bundled-test-harness/assets/ai-function-generation-test-e58MHziu.js +996 -0
  10. package/bundled-test-harness/assets/ai-module-creation-test-CEieL3Fa.js +150 -0
  11. package/bundled-test-harness/assets/aibot-message-DhTbAqNk.js +1185 -0
  12. package/bundled-test-harness/assets/amd-transpile-test-CSk5COu7.js +425 -0
  13. package/bundled-test-harness/assets/app-Btfy4HWI.js +21464 -0
  14. package/bundled-test-harness/assets/apply-boxel-formatting-test-BHTP9NBp.js +134 -0
  15. package/bundled-test-harness/assets/apply-markdown-edit-test-BETCndeK.js +230 -0
  16. package/bundled-test-harness/assets/apply-search-replace-block-test-KNolar0-.js +630 -0
  17. package/bundled-test-harness/assets/arc-CA8yZ0zo.js +199 -0
  18. package/bundled-test-harness/assets/architecture-7EHR7CIX-C5JFMGdb.js +3 -0
  19. package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-CmVPjKgm.js +7400 -0
  20. package/bundled-test-harness/assets/auth-error-guard-test-D0rKESg_.js +30 -0
  21. package/bundled-test-harness/assets/auth-service-worker-test-DGg_vbKo.js +538 -0
  22. package/bundled-test-harness/assets/authed-fetch-test-CHF3eh_H.js +75 -0
  23. package/bundled-test-harness/assets/avif-image-def-test-p9tiyh4_.js +186 -0
  24. package/bundled-test-harness/assets/base-realm-Chjzrp6m.js +2 -0
  25. package/bundled-test-harness/assets/base-realm-DpSTsZxD.js +140 -0
  26. package/bundled-test-harness/assets/basic-test-D7qEz4hw.js +128 -0
  27. package/bundled-test-harness/assets/bfm-card-references-test-D-m1YnL8.js +577 -0
  28. package/bundled-test-harness/assets/binary-upload-dedupe-test-8RKK73EG.js +308 -0
  29. package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-BdVFTa2C.js +4355 -0
  30. package/bundled-test-harness/assets/bot-registration-test-9zYny2wR.js +99 -0
  31. package/bundled-test-harness/assets/box-test-0T92xi3A.js +51 -0
  32. package/bundled-test-harness/assets/brand-guide-attachments-test-5ZtPn4cC.js +87 -0
  33. package/bundled-test-harness/assets/brand-guide-custom-css-test-CKKSgKyp.js +135 -0
  34. package/bundled-test-harness/assets/brand-logo-mark-field-test-nlNNQ3rw.js +87 -0
  35. package/bundled-test-harness/assets/broken-link-template-test-BGIExVof.js +345 -0
  36. package/bundled-test-harness/assets/browser-index-BaR-gTqG.js +3 -0
  37. package/bundled-test-harness/assets/browser-index-G4NKYBAj.js +8802 -0
  38. package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-DyugX7zz.js +3764 -0
  39. package/bundled-test-harness/assets/cached-fetch-test-MtqvDphJ.js +93 -0
  40. package/bundled-test-harness/assets/can-read-realm-test-BZmwIOqS.js +58 -0
  41. package/bundled-test-harness/assets/cancel-indexing-job-test-BsQtQbDu.js +71 -0
  42. package/bundled-test-harness/assets/card-api-test-BxQ8f0-c.js +196 -0
  43. package/bundled-test-harness/assets/card-basics-test-B-uBZ8o4.js +4895 -0
  44. package/bundled-test-harness/assets/card-catalog-test-YmwmyIKf.js +377 -0
  45. package/bundled-test-harness/assets/card-copy-test-LoqdH1CQ.js +777 -0
  46. package/bundled-test-harness/assets/card-def-field-def-relationships-test-DvtBA1jv.js +560 -0
  47. package/bundled-test-harness/assets/card-def-menu-items-test-DHnd0LuM.js +182 -0
  48. package/bundled-test-harness/assets/card-delete-test-vKF0Jf1X.js +412 -0
  49. package/bundled-test-harness/assets/card-directory-name-test-CbCuPwSz.js +71 -0
  50. package/bundled-test-harness/assets/card-playground-test-CRIP3b5-.js +1497 -0
  51. package/bundled-test-harness/assets/card-prerender-ClYlSOBU.js +12661 -0
  52. package/bundled-test-harness/assets/card-search-adorn-test-Mggk5ZgY.js +128 -0
  53. package/bundled-test-harness/assets/card-search-query-builder-test-Cdl12s50.js +88 -0
  54. package/bundled-test-harness/assets/card-search-selection-menu-test-CtuCCLoB.js +108 -0
  55. package/bundled-test-harness/assets/channel-BKUMepxs.js +8 -0
  56. package/bundled-test-harness/assets/check-correctness-test-DBh8DT_f.js +252 -0
  57. package/bundled-test-harness/assets/chunk-2J33WTMH-ClrRoNQU.js +31 -0
  58. package/bundled-test-harness/assets/chunk-3OPIFGDE-g_0Oh8jN.js +5548 -0
  59. package/bundled-test-harness/assets/chunk-4BX2VUAB-D2LCc7Y9.js +11 -0
  60. package/bundled-test-harness/assets/chunk-4EGX6M5U-D8vRS5IG.js +44 -0
  61. package/bundled-test-harness/assets/chunk-55IACEB6-C5j4VAmb.js +10 -0
  62. package/bundled-test-harness/assets/chunk-5DO6E6H7-CPb3jsP0.js +27 -0
  63. package/bundled-test-harness/assets/chunk-5ZQYHXKU-BlVb7vgG.js +1767 -0
  64. package/bundled-test-harness/assets/chunk-727SXJPM-C_NVCDMC.js +3877 -0
  65. package/bundled-test-harness/assets/chunk-AQP2D5EJ-CpwrMix_.js +2622 -0
  66. package/bundled-test-harness/assets/chunk-BR22UD5L-AF0NWdjT.js +85 -0
  67. package/bundled-test-harness/assets/chunk-BSJP7CBP-Dgun5vYb.js +114 -0
  68. package/bundled-test-harness/assets/chunk-CSCIHK7Q-D7nFiAZ-.js +6144 -0
  69. package/bundled-test-harness/assets/chunk-FHYWG6QK-2nuXS9PL.js +27 -0
  70. package/bundled-test-harness/assets/chunk-FMBD7UC4-O-Y8VK1S.js +20 -0
  71. package/bundled-test-harness/assets/chunk-KSCS5N6A-Du5-DprU.js +871 -0
  72. package/bundled-test-harness/assets/chunk-L5ZTLDWV-C2lDtkix.js +43 -0
  73. package/bundled-test-harness/assets/chunk-LZXEDZCA-qAMsMZkF.js +65 -0
  74. package/bundled-test-harness/assets/chunk-MPE355IW-DcT_60Oq.js +27 -0
  75. package/bundled-test-harness/assets/chunk-MZUSXYTE-BsH_YmnC.js +36 -0
  76. package/bundled-test-harness/assets/chunk-N66VUXT2-DMyMHgoS.js +70 -0
  77. package/bundled-test-harness/assets/chunk-ND2GUHAM-DO1Znn8O.js +93 -0
  78. package/bundled-test-harness/assets/chunk-NZK2D7GU-B1YWBxHm.js +89 -0
  79. package/bundled-test-harness/assets/chunk-O5CBEL6O-CZVSBsRq.js +2395 -0
  80. package/bundled-test-harness/assets/chunk-PUPMXCY4-DzOK-Vbt.js +27 -0
  81. package/bundled-test-harness/assets/chunk-QZHKN3VN-DJFnRn99.js +20 -0
  82. package/bundled-test-harness/assets/chunk-UIBZB4QT-5KIxBxjk.js +27 -0
  83. package/bundled-test-harness/assets/chunk-WCWK7LTN-BsQwhliq.js +36 -0
  84. package/bundled-test-harness/assets/chunk-WU5MYG2G-DUVb5MAo.js +12 -0
  85. package/bundled-test-harness/assets/chunk-XPW4576I-DLaJYAOU.js +2341 -0
  86. package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-DjP2uozG.js +31 -0
  87. package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-Dt6ps5uz.js +31 -0
  88. package/bundled-test-harness/assets/code-equality-assertion-BBezFT13.js +474 -0
  89. package/bundled-test-harness/assets/code-patches-test-DzoQGARM.js +1128 -0
  90. package/bundled-test-harness/assets/code-patching-test-D8r-pJ5w.js +114 -0
  91. package/bundled-test-harness/assets/code-ref-test-DU3HChNz.js +138 -0
  92. package/bundled-test-harness/assets/code-semantics-service-test-DArUotKy.js +65 -0
  93. package/bundled-test-harness/assets/code-submode-test-h5wWKsz2.js +1762 -0
  94. package/bundled-test-harness/assets/codeblocks-test-FbuwTy5v.js +492 -0
  95. package/bundled-test-harness/assets/codemirror-context-DVlC9C78.js +2 -0
  96. package/bundled-test-harness/assets/codemirror-editor-test-JDT9uwqM.js +1176 -0
  97. package/bundled-test-harness/assets/color-field-test-BssRlQAX.js +213 -0
  98. package/bundled-test-harness/assets/command-definitions-test-J21kOxBs.js +72 -0
  99. package/bundled-test-harness/assets/commands-DAo0DgCX.js +1379 -0
  100. package/bundled-test-harness/assets/commands-calling-test-C3deVvv_.js +200 -0
  101. package/bundled-test-harness/assets/commands-test--0zViqs2.js +1041 -0
  102. package/bundled-test-harness/assets/commands-test-BwNn2npL.js +1145 -0
  103. package/bundled-test-harness/assets/computed-test-BD_KrZmc.js +882 -0
  104. package/bundled-test-harness/assets/container-C8gu0I0Q.js +14605 -0
  105. package/bundled-test-harness/assets/convert-to-class-name-test-CX21VRzM.js +17 -0
  106. package/bundled-test-harness/assets/copy-and-edit-test-BUy_o8XJ.js +291 -0
  107. package/bundled-test-harness/assets/copy-card-test-LWbugEPe.js +156 -0
  108. package/bundled-test-harness/assets/copy-file-to-realm-test-BS25EUGV.js +99 -0
  109. package/bundled-test-harness/assets/copy-source-test-Dh33cqM8.js +56 -0
  110. package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-CjAFDdpS.js +4275 -0
  111. package/bundled-test-harness/assets/create-file-test-DOc3YYij.js +963 -0
  112. package/bundled-test-harness/assets/create-file-test-DgUya7-i.js +397 -0
  113. package/bundled-test-harness/assets/create-listing-modal-test-DZxZBYS7.js +194 -0
  114. package/bundled-test-harness/assets/create-listing-pr-request-Aw0ms76l.js +64 -0
  115. package/bundled-test-harness/assets/create-listing-pr-request-test-CFvqkgky.js +117 -0
  116. package/bundled-test-harness/assets/create-spec-test-BTRt8oe8.js +239 -0
  117. package/bundled-test-harness/assets/csv-file-def-test-BVffg8wL.js +101 -0
  118. package/bundled-test-harness/assets/dagre-BM42HDAG-GoRrN65x.js +606 -0
  119. package/bundled-test-harness/assets/dagre-ByxOOmYM.js +4195 -0
  120. package/bundled-test-harness/assets/date-time-fields-test-BEcfCqgB.js +322 -0
  121. package/bundled-test-harness/assets/debug-message-test-CAxbe6x2.js +119 -0
  122. package/bundled-test-harness/assets/diagram-2AECGRRQ-B6-pvp9H.js +279 -0
  123. package/bundled-test-harness/assets/diagram-5GNKFQAL-C9M7hXIc.js +142 -0
  124. package/bundled-test-harness/assets/diagram-KO2AKTUF-BNJvCLGK.js +551 -0
  125. package/bundled-test-harness/assets/diagram-LMA3HP47-hlJyTtqP.js +184 -0
  126. package/bundled-test-harness/assets/diagram-OG6HWLK6-BvPoB3IH.js +857 -0
  127. package/bundled-test-harness/assets/diffing-test-De9Ev_Fr.js +210 -0
  128. package/bundled-test-harness/assets/dist-BsEojs3T.js +232 -0
  129. package/bundled-test-harness/assets/dist-CY3T64Hs.js +105 -0
  130. package/bundled-test-harness/assets/dist-q2xz8RMj.js +2 -0
  131. package/bundled-test-harness/assets/editor-test-DOI_TvWQ.js +551 -0
  132. package/bundled-test-harness/assets/editor.main-CpuM6HrX.js +43566 -0
  133. package/bundled-test-harness/assets/editor.main-DkMgS1qm.js +3 -0
  134. package/bundled-test-harness/assets/email-field-test-t-80Z94b.js +74 -0
  135. package/bundled-test-harness/assets/enum-field-test-DVp-2pip.js +909 -0
  136. package/bundled-test-harness/assets/erDiagram-TEJ5UH35-CYniRkua.js +2041 -0
  137. package/bundled-test-harness/assets/error-display-test-IuRxKyLz.js +343 -0
  138. package/bundled-test-harness/assets/evaluate-module-test-DdnfbFp-.js +66 -0
  139. package/bundled-test-harness/assets/eventmodeling-FCH6USID-BO089-Cs.js +3 -0
  140. package/bundled-test-harness/assets/execute-atomic-operations-test-CgbvrBlu.js +75 -0
  141. package/bundled-test-harness/assets/externals-5atxeNU4.js +5533 -0
  142. package/bundled-test-harness/assets/extract-css-variables-test-Cii-CYfc.js +169 -0
  143. package/bundled-test-harness/assets/fallback-banner-test-CUUd-Wuu.js +227 -0
  144. package/bundled-test-harness/assets/fallback-banner-test-D4NWyahM.js +53 -0
  145. package/bundled-test-harness/assets/fallback-models-test-2MJ1jAs8.js +163 -0
  146. package/bundled-test-harness/assets/fetch-card-json-test-Cruqsq6S.js +63 -0
  147. package/bundled-test-harness/assets/fetcher-test-CkHlbTzz.js +85 -0
  148. package/bundled-test-harness/assets/field-configuration-test-CqwsGNib.js +535 -0
  149. package/bundled-test-harness/assets/field-markdown-domain-test-DPjz8i4Y.js +615 -0
  150. package/bundled-test-harness/assets/field-markdown-primitives-test-Dw07UtT7.js +362 -0
  151. package/bundled-test-harness/assets/field-markdown-specialized-test-C-t34PAw.js +527 -0
  152. package/bundled-test-harness/assets/field-path-parser-test-BeNjacPu.js +387 -0
  153. package/bundled-test-harness/assets/field-playground-test-BILTGxqr.js +902 -0
  154. package/bundled-test-harness/assets/field-support-predicates-test-Df24w0Wa.js +170 -0
  155. package/bundled-test-harness/assets/field-test-helpers-P22hxBNz.js +45 -0
  156. package/bundled-test-harness/assets/file-attachment-test-Cjg4NBeM.js +635 -0
  157. package/bundled-test-harness/assets/file-chooser-test-Cl0XujPT.js +439 -0
  158. package/bundled-test-harness/assets/file-def-live-reload-test-D4Obzi12.js +50 -0
  159. package/bundled-test-harness/assets/file-def-manager-DUgR-gjs.js +470 -0
  160. package/bundled-test-harness/assets/file-def-manager-canonicalize-test-D_LWVsvz.js +451 -0
  161. package/bundled-test-harness/assets/file-def-menu-items-test-xvsUTOK4.js +114 -0
  162. package/bundled-test-harness/assets/file-def-navigation-test-DxPceB7E.js +109 -0
  163. package/bundled-test-harness/assets/file-def-serialization-test-CpwbDb8p.js +87 -0
  164. package/bundled-test-harness/assets/file-def-test-CEnKcvW9.js +219 -0
  165. package/bundled-test-harness/assets/file-tree-test-DE2aH6iq.js +773 -0
  166. package/bundled-test-harness/assets/flac-audio-def-test-BCg7LnR6.js +138 -0
  167. package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-Xv8-LIxQ.js +4883 -0
  168. package/bundled-test-harness/assets/formatted-aibot-message-test-CsxFn62P.js +366 -0
  169. package/bundled-test-harness/assets/formatted-user-message-test-DjZc8qnA.js +43 -0
  170. package/bundled-test-harness/assets/freestyle-test-QEZaZCNJ.js +17 -0
  171. package/bundled-test-harness/assets/full-reindex-realm-test-C_c2OTTD.js +103 -0
  172. package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-DmvkzS5w.js +4060 -0
  173. package/bundled-test-harness/assets/garbage-collection-test-BVuvfidI.js +373 -0
  174. package/bundled-test-harness/assets/general-test-Ydis4jEq.js +926 -0
  175. package/bundled-test-harness/assets/generate-css-variables-test-CZCmgTAO.js +88 -0
  176. package/bundled-test-harness/assets/generate-example-cards-one-shot-test-x_szhkSN.js +67 -0
  177. package/bundled-test-harness/assets/get-available-realm-identifiers-test-DvRnwCHR.js +49 -0
  178. package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-46TE-XA0.js +49 -0
  179. package/bundled-test-harness/assets/get-default-writable-realm-test-DaAkxTNh.js +56 -0
  180. package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-9XEGHVOV.js +55 -0
  181. package/bundled-test-harness/assets/get-relationship-membership-state-test-BY4gk5JZ.js +1306 -0
  182. package/bundled-test-harness/assets/get-type-refs-from-filter-test-BynlX0JE.js +136 -0
  183. package/bundled-test-harness/assets/get-user-system-card-test-D98Xxn1k.js +52 -0
  184. package/bundled-test-harness/assets/gif-image-def-test-FwKGFGWw.js +161 -0
  185. package/bundled-test-harness/assets/gitGraph-WXDBUCRP-Bmn0Z_Xi.js +3 -0
  186. package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-BAo0G82W.js +1150 -0
  187. package/bundled-test-harness/assets/gts-file-def-test-ivEk8Muv.js +99 -0
  188. package/bundled-test-harness/assets/head-format-preview-test-CNhvk724.js +156 -0
  189. package/bundled-test-harness/assets/helpers-BH4Yfo_2.js +5 -0
  190. package/bundled-test-harness/assets/host-mode-test-BRNndb2h.js +391 -0
  191. package/bundled-test-harness/assets/host-submode-test-DHd0x-6x.js +904 -0
  192. package/bundled-test-harness/assets/index-query-engine-test-7Fzc09fG.js +2548 -0
  193. package/bundled-test-harness/assets/index-writer-test-D3cL2q2N.js +1842 -0
  194. package/bundled-test-harness/assets/indexeddb-crypto-store-C09Shau-.js +49434 -0
  195. package/bundled-test-harness/assets/info-J43DQDTF-Dz5b1Xgc.js +3 -0
  196. package/bundled-test-harness/assets/infoDiagram-5YYISTIA-Dl8XvIfi.js +23 -0
  197. package/bundled-test-harness/assets/inspector-test-CVZVQdIJ.js +1776 -0
  198. package/bundled-test-harness/assets/instance-filter-matcher-test-C-4z6qUt.js +564 -0
  199. package/bundled-test-harness/assets/instantiate-card-test-eQ22Vt_m.js +104 -0
  200. package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-hXPsRPMU.js +497 -0
  201. package/bundled-test-harness/assets/interact-submode-setup-D55IIVc5.js +558 -0
  202. package/bundled-test-harness/assets/interact-submode-test-BwrtFe2m.js +725 -0
  203. package/bundled-test-harness/assets/invalidate-realm-identifiers-test-BMk7yd-D.js +101 -0
  204. package/bundled-test-harness/assets/invite-user-to-room-test-B5B0umJQ.js +67 -0
  205. package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-BrO7NAng.js +1009 -0
  206. package/bundled-test-harness/assets/isolated-render-test-DX1wdHoS.js +51 -0
  207. package/bundled-test-harness/assets/item-button-QkVr-FW0.js +203 -0
  208. package/bundled-test-harness/assets/javascript-BWNQhcCY.js +75 -0
  209. package/bundled-test-harness/assets/job-priority-header-test-CuBZloLK.js +81 -0
  210. package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-B7BT66v0.js +1256 -0
  211. package/bundled-test-harness/assets/jpg-image-def-test-DEx462nY.js +430 -0
  212. package/bundled-test-harness/assets/json-file-def-test-Cray6ly6.js +92 -0
  213. package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C0E5Vmr_.js +1284 -0
  214. package/bundled-test-harness/assets/last-modified-date-test-BzE25NOB.js +18 -0
  215. package/bundled-test-harness/assets/limited-set-test-NwGNoXKc.js +123 -0
  216. package/bundled-test-harness/assets/line-BbGOk93s.js +55 -0
  217. package/bundled-test-harness/assets/linear-CHTo-YQl.js +417 -0
  218. package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-CZdgRM1b.js +315 -0
  219. package/bundled-test-harness/assets/linksto-error-sentinel-test-DhsHO7Xs.js +236 -0
  220. package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-mt-RrRta.js +303 -0
  221. package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CdGUXZsi.js +301 -0
  222. package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DOJ_6Gwf.js +258 -0
  223. package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-BZC-gslF.js +194 -0
  224. package/bundled-test-harness/assets/live-prerendered-search-BSkwf5AH.js +639 -0
  225. package/bundled-test-harness/assets/live-test-DTfxZnsy.js +100 -0
  226. package/bundled-test-harness/assets/live-test-WOMYpc1I.js +2 -0
  227. package/bundled-test-harness/assets/loader-icon-error-test-F_ukQytn.js +62 -0
  228. package/bundled-test-harness/assets/loader-parallel-prefetch-test-DpNaFnhc.js +257 -0
  229. package/bundled-test-harness/assets/loader-retry-test-EQ2X0bFS.js +173 -0
  230. package/bundled-test-harness/assets/loader-test-BYkWAwc4.js +245 -0
  231. package/bundled-test-harness/assets/loading-test-jfWH_OpH.js +63 -0
  232. package/bundled-test-harness/assets/login-error-text-test-Cldr1X6h.js +51 -0
  233. package/bundled-test-harness/assets/m4a-audio-def-test-BQ1WKApD.js +185 -0
  234. package/bundled-test-harness/assets/main-ByAsLO_g.js +5 -0
  235. package/bundled-test-harness/assets/markdown-fallback-test-dtTaGP1s.js +316 -0
  236. package/bundled-test-harness/assets/markdown-file-def-test-shW9Xxd1.js +286 -0
  237. package/bundled-test-harness/assets/markdown-helpers-test-B6H7p4ay.js +183 -0
  238. package/bundled-test-harness/assets/markdown-highlighting-test-ZIrFNHRe.js +244 -0
  239. package/bundled-test-harness/assets/markdown-preview-KII3nJ2M.js +69 -0
  240. package/bundled-test-harness/assets/markdown-preview-test-De-IaUbK.js +237 -0
  241. package/bundled-test-harness/assets/marked-sync-CGSehq4u.js +2 -0
  242. package/bundled-test-harness/assets/marked-sync-DenC7QgC.js +2561 -0
  243. package/bundled-test-harness/assets/marked-sync-test-jZBr20Hq.js +146 -0
  244. package/bundled-test-harness/assets/matrix-service-sliding-sync-test-Ax4kyAMt.js +33 -0
  245. package/bundled-test-harness/assets/mermaid-parser.core-B_3tzKUl.js +114 -0
  246. package/bundled-test-harness/assets/mermaid.core-D2hqA7Hq.js +1700 -0
  247. package/bundled-test-harness/assets/message-service-subscription-test-B42KnJ91.js +113 -0
  248. package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-IZz7Qpd0.js +1347 -0
  249. package/bundled-test-harness/assets/mock-matrix-BhFWlMMr.js +14292 -0
  250. package/bundled-test-harness/assets/mock-matrix-CrtMntcN.js +2 -0
  251. package/bundled-test-harness/assets/module-transpile-cache-test-BtWN4OiM.js +66 -0
  252. package/bundled-test-harness/assets/monaco.contribution-B1hOUP3w.js +2 -0
  253. package/bundled-test-harness/assets/monaco.contribution-DhNsYtZe.js +2 -0
  254. package/bundled-test-harness/assets/monaco.contribution-DvJDImx2.js +103 -0
  255. package/bundled-test-harness/assets/monaco.contribution-yXcOyzue.js +243 -0
  256. package/bundled-test-harness/assets/mp3-audio-def-test-D365TuA7.js +129 -0
  257. package/bundled-test-harness/assets/mutex-test-DY09HLvv.js +71 -0
  258. package/bundled-test-harness/assets/number-field-test-wYaQjnzA.js +153 -0
  259. package/bundled-test-harness/assets/ogg-audio-def-test-Dl01PP31.js +191 -0
  260. package/bundled-test-harness/assets/open-create-listing-modal-test-D8C2PUFv.js +117 -0
  261. package/bundled-test-harness/assets/open-workspace-test-DN2n8IkC.js +48 -0
  262. package/bundled-test-harness/assets/operator-mode-acceptance-test-B_hzJZo4.js +1044 -0
  263. package/bundled-test-harness/assets/operator-mode-card-catalog-test-Hrrnkdt9.js +989 -0
  264. package/bundled-test-harness/assets/operator-mode-links-test-DC6sc9TZ.js +797 -0
  265. package/bundled-test-harness/assets/operator-mode-state-service-test-Aqz9_v0U.js +122 -0
  266. package/bundled-test-harness/assets/operator-mode-test-CLgpZGEM.js +617 -0
  267. package/bundled-test-harness/assets/operator-mode-ui-test-CDRrORfC.js +985 -0
  268. package/bundled-test-harness/assets/ordinal-BIRuJQBH.js +85 -0
  269. package/bundled-test-harness/assets/overlay-menu-items-test-of24KuXp.js +316 -0
  270. package/bundled-test-harness/assets/packet-YPE3B663-hs92geQG.js +3 -0
  271. package/bundled-test-harness/assets/panel-rIdTMDfK.js +3371 -0
  272. package/bundled-test-harness/assets/past-sessions-test-ZKr4ACF0.js +321 -0
  273. package/bundled-test-harness/assets/patch-code-test-BZa-Itrt.js +203 -0
  274. package/bundled-test-harness/assets/patch-fields-test-BkaHs-zo.js +992 -0
  275. package/bundled-test-harness/assets/patch-instance-test-CRMgg52p.js +287 -0
  276. package/bundled-test-harness/assets/persist-module-inspector-view-test-CqNy2RXR.js +62 -0
  277. package/bundled-test-harness/assets/phone-number-field-test-CV6gntON.js +72 -0
  278. package/bundled-test-harness/assets/pie-LRSECV5Y-DcM5pWE3.js +3 -0
  279. package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CtO8RHpU.js +253 -0
  280. package/bundled-test-harness/assets/plan-install-test-lfBTuWXU.js +417 -0
  281. package/bundled-test-harness/assets/playground-VscW9KdT.js +57 -0
  282. package/bundled-test-harness/assets/png-image-def-test-CRspcIHP.js +222 -0
  283. package/bundled-test-harness/assets/prerender-file-extract-test-D3SpxfMI.js +176 -0
  284. package/bundled-test-harness/assets/prerender-html-test-WWptGXJ0.js +615 -0
  285. package/bundled-test-harness/assets/prerender-meta-test-DwQEGN6j.js +388 -0
  286. package/bundled-test-harness/assets/prerender-module-test-BM1AOwRF.js +195 -0
  287. package/bundled-test-harness/assets/prerendered-card-search-test-BVJ8IHLe.js +708 -0
  288. package/bundled-test-harness/assets/preview-format-test-DDpiXDN_.js +103 -0
  289. package/bundled-test-harness/assets/preview-test-D2UV1C5D.js +455 -0
  290. package/bundled-test-harness/assets/published-realm-url-DUIZzAJ5.js +52 -0
  291. package/bundled-test-harness/assets/published-realm-url-test-CIgSf4Ub.js +137 -0
  292. package/bundled-test-harness/assets/qs-test-Bi679H5w.js +36 -0
  293. package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-GOTAKsCo.js +2324 -0
  294. package/bundled-test-harness/assets/query-field-barrier-test-BlOuVxdS.js +118 -0
  295. package/bundled-test-harness/assets/query-field-error-sentinel-test-BsB76iUQ.js +202 -0
  296. package/bundled-test-harness/assets/query-field-normalization-test-B2YodJCr.js +271 -0
  297. package/bundled-test-harness/assets/query-field-schema-test-CQhJASFx.js +231 -0
  298. package/bundled-test-harness/assets/query-fields-test-CaZ19leM.js +535 -0
  299. package/bundled-test-harness/assets/queue-test-DrSip6mJ.js +216 -0
  300. package/bundled-test-harness/assets/radar-GUYGQ44K-BkAe1nkp.js +3 -0
  301. package/bundled-test-harness/assets/read-card-for-ai-assistant-test-D8yB-OL9.js +91 -0
  302. package/bundled-test-harness/assets/read-file-for-ai-assistant-test-K3M0-lBD.js +45 -0
  303. package/bundled-test-harness/assets/read-source-test-CKlb0ORb.js +67 -0
  304. package/bundled-test-harness/assets/read-text-file-test-CJdasDDU.js +124 -0
  305. package/bundled-test-harness/assets/realm-DhUCLR5r.js +884 -0
  306. package/bundled-test-harness/assets/realm-field-test-kFgxphDI.js +101 -0
  307. package/bundled-test-harness/assets/realm-index-card-id-test-DAnMAqw4.js +18 -0
  308. package/bundled-test-harness/assets/realm-indexing-test-BQkX-Dat.js +4018 -0
  309. package/bundled-test-harness/assets/realm-paths-test-CmEi9rzu.js +33 -0
  310. package/bundled-test-harness/assets/realm-querying-test-eq3qSXLu.js +1062 -0
  311. package/bundled-test-harness/assets/realm-test-DLQAtdMt.js +2409 -0
  312. package/bundled-test-harness/assets/reasoning-test-CwTfyDlj.js +234 -0
  313. package/bundled-test-harness/assets/recent-files-test-MVIGLp8S.js +449 -0
  314. package/bundled-test-harness/assets/reindex-realm-test-BwLgJeB3.js +119 -0
  315. package/bundled-test-harness/assets/relationship-loading-state-test-B4Ca43yD.js +289 -0
  316. package/bundled-test-harness/assets/render-component-BKEihV4U.js +2 -0
  317. package/bundled-test-harness/assets/render-error-test-DWD6tfNe.js +22 -0
  318. package/bundled-test-harness/assets/render-service-test-BjuoVrUK.js +87 -0
  319. package/bundled-test-harness/assets/render-timer-stub-test-BgUY5u3X.js +84 -0
  320. package/bundled-test-harness/assets/rendered-markdown-DOP-s6fW.js +211 -0
  321. package/bundled-test-harness/assets/rendered-markdown-test-CD02UYwA.js +360 -0
  322. package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-DJIy7eR9.js +2550 -0
  323. package/bundled-test-harness/assets/rich-markdown-field-test-BJeQx1tL.js +806 -0
  324. package/bundled-test-harness/assets/room-message-test-CjD7FlPD.js +171 -0
  325. package/bundled-test-harness/assets/rust-crypto-GS0FFZ7H.js +16141 -0
  326. package/bundled-test-harness/assets/sanitize-module-list-test-gi0pcqSy.js +68 -0
  327. package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-wBsbt1Mr.js +1357 -0
  328. package/bundled-test-harness/assets/schema-editor-test-BSqu8W3e.js +784 -0
  329. package/bundled-test-harness/assets/schema-generation-test-DVFuSsLl.js +28 -0
  330. package/bundled-test-harness/assets/scrolling-test-CpzkRiBS.js +292 -0
  331. package/bundled-test-harness/assets/search-and-choose-test-DVWX4XRb.js +156 -0
  332. package/bundled-test-harness/assets/search-cache-key-test-BMnYM4a5.js +79 -0
  333. package/bundled-test-harness/assets/search-command-test-kEfT0AO7.js +135 -0
  334. package/bundled-test-harness/assets/search-correlation-id-test-D08FtVUZ.js +101 -0
  335. package/bundled-test-harness/assets/search-data-test-CTrBEc1m.js +243 -0
  336. package/bundled-test-harness/assets/search-google-images-test-UnKG8qCp.js +168 -0
  337. package/bundled-test-harness/assets/search-in-flight-key-test-9Va-JXFz.js +79 -0
  338. package/bundled-test-harness/assets/search-test-COlO2lZi.js +847 -0
  339. package/bundled-test-harness/assets/send-ai-assistant-message-test-BPjOjt2R.js +52 -0
  340. package/bundled-test-harness/assets/send-bot-trigger-event-test-BB4lHbB_.js +56 -0
  341. package/bundled-test-harness/assets/send-request-via-proxy-test-U8frmHZA.js +333 -0
  342. package/bundled-test-harness/assets/sending-test-DjEzksEX.js +317 -0
  343. package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-QAEjhoay.js +5551 -0
  344. package/bundled-test-harness/assets/serialization-test-DHdLriC8.js +8283 -0
  345. package/bundled-test-harness/assets/set-user-system-card-test-C8I1lDBh.js +59 -0
  346. package/bundled-test-harness/assets/setup-BkuybBki.js +769 -0
  347. package/bundled-test-harness/assets/setup-gxkWJKID.js +2 -0
  348. package/bundled-test-harness/assets/show-card-test-DHKQ6AI4.js +362 -0
  349. package/bundled-test-harness/assets/skills-test-DlMgZrPV.js +568 -0
  350. package/bundled-test-harness/assets/spec-test-s9Zj7x2E.js +1012 -0
  351. package/bundled-test-harness/assets/stateDiagram-AJRCARHV-nEhf3efZ.js +363 -0
  352. package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-tZz_3w-7.js +29 -0
  353. package/bundled-test-harness/assets/store-add-test-D44FWRl3.js +52 -0
  354. package/bundled-test-harness/assets/store-test-TTmNBs5v.js +1562 -0
  355. package/bundled-test-harness/assets/summarize-session-test-DHAuNb5K.js +169 -0
  356. package/bundled-test-harness/assets/svg-image-def-test-C2_GGzR6.js +164 -0
  357. package/bundled-test-harness/assets/switch-submode-test-CfGaoxVe.js +168 -0
  358. package/bundled-test-harness/assets/test-realm-service-worker-C21o7yvW.js +73 -0
  359. package/bundled-test-harness/assets/tests-BSt6h9iC.js +2771 -0
  360. package/bundled-test-harness/assets/text-file-def-test-CR4QO7e_.js +93 -0
  361. package/bundled-test-harness/assets/text-input-validator-test-DYS3mFj9.js +155 -0
  362. package/bundled-test-harness/assets/text-suggestion-test-GUxJ7WtF.js +339 -0
  363. package/bundled-test-harness/assets/theme-card-test-Ba2KqFB8.js +573 -0
  364. package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-BQYyTIei.js +1545 -0
  365. package/bundled-test-harness/assets/transform-cards-test-DyA8eCom.js +341 -0
  366. package/bundled-test-harness/assets/treeView-BLDUP644-Z4ezSvef.js +3 -0
  367. package/bundled-test-harness/assets/treemap-LRROVOQU-Bf5rk_He.js +3 -0
  368. package/bundled-test-harness/assets/ts-file-def-test-Cxnc6H74.js +90 -0
  369. package/bundled-test-harness/assets/tsMode-oJEHe-CR.js +968 -0
  370. package/bundled-test-harness/assets/typescript-DLbb7q56.js +2 -0
  371. package/bundled-test-harness/assets/update-room-skills-test-B7VLHU3-.js +197 -0
  372. package/bundled-test-harness/assets/url-test-w-69Zycf.js +103 -0
  373. package/bundled-test-harness/assets/use-ai-assistant-test-DJkFz7_b.js +330 -0
  374. package/bundled-test-harness/assets/validate-realm-test-BioLutB8.js +53 -0
  375. package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-9eLwsQET.js +2833 -0
  376. package/bundled-test-harness/assets/wardley-L42UT6IY-qNP5_917.js +3 -0
  377. package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-DZhEm4N4.js +872 -0
  378. package/bundled-test-harness/assets/wav-audio-def-test-DqsTEBw8.js +155 -0
  379. package/bundled-test-harness/assets/webp-image-def-test-23wOLPMu.js +225 -0
  380. package/bundled-test-harness/assets/workspace-chooser-delete-test-Q6S_nGDT.js +189 -0
  381. package/bundled-test-harness/assets/workspace-chooser-test-CzsvY1v_.js +235 -0
  382. package/bundled-test-harness/assets/workspace-delete-multiple-test-BNFHkJpQ.js +213 -0
  383. package/bundled-test-harness/assets/workspace-delete-summary-test-DLzNdjvC.js +63 -0
  384. package/bundled-test-harness/assets/write-binary-file-test-PHHt9fVI.js +100 -0
  385. package/bundled-test-harness/assets/write-text-file-test-DuHe6tR5.js +172 -0
  386. package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-bflHQbEv.js +2551 -0
  387. package/bundled-test-harness/index.html +24 -23
  388. package/bundled-test-harness/tests/index.html +31 -30
  389. package/bundled-types/base/command.d.ts +48 -0
  390. package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +17 -26
  391. package/bundled-types/host-app/lib/published-realm-url.ts +135 -0
  392. package/package.json +3 -3
  393. package/src/build-program.ts +12 -12
  394. package/src/commands/consolidate-workspaces.ts +1 -1
  395. package/src/commands/file/delete.ts +4 -4
  396. package/src/commands/file/index.ts +6 -6
  397. package/src/commands/file/lint.ts +4 -4
  398. package/src/commands/file/list.ts +3 -3
  399. package/src/commands/file/read.ts +3 -3
  400. package/src/commands/file/touch.ts +6 -6
  401. package/src/commands/file/write.ts +3 -3
  402. package/src/commands/lint.ts +6 -6
  403. package/src/commands/parse.ts +6 -6
  404. package/src/commands/profile.ts +4 -4
  405. package/src/commands/read-transpiled.ts +6 -3
  406. package/src/commands/realm/cancel-indexing.ts +3 -3
  407. package/src/commands/realm/create.ts +2 -2
  408. package/src/commands/realm/history.ts +4 -4
  409. package/src/commands/realm/index.ts +15 -15
  410. package/src/commands/realm/indexing-errors.ts +3 -3
  411. package/src/commands/realm/list.ts +2 -2
  412. package/src/commands/realm/milestone.ts +4 -4
  413. package/src/commands/realm/publish.ts +4 -4
  414. package/src/commands/realm/pull.ts +6 -6
  415. package/src/commands/realm/push.ts +7 -7
  416. package/src/commands/realm/remove.ts +3 -3
  417. package/src/commands/realm/status.ts +8 -8
  418. package/src/commands/realm/sync.ts +9 -9
  419. package/src/commands/realm/unpublish.ts +3 -3
  420. package/src/commands/realm/wait-for-ready.ts +2 -2
  421. package/src/commands/realm/watch/index.ts +2 -2
  422. package/src/commands/realm/watch/start.ts +13 -10
  423. package/src/commands/realm/watch/stop.ts +2 -2
  424. package/src/commands/run-command.ts +6 -3
  425. package/src/commands/search.ts +3 -3
  426. package/src/commands/test.ts +5 -5
  427. package/src/index.ts +2 -2
  428. package/src/lib/auth-resolver.ts +3 -3
  429. package/src/lib/boxel-cli-client.ts +18 -15
  430. package/src/lib/checkpoint-manager.ts +1 -1
  431. package/src/lib/find-checkpoint.ts +1 -1
  432. package/src/lib/profile-manager.ts +4 -4
  433. package/src/lib/realm-local-paths.ts +1 -1
  434. package/src/lib/realm-sync-base.ts +1 -1
  435. package/src/lib/seed-auth.ts +1 -1
  436. package/src/lib/sync-logic.ts +1 -1
  437. package/src/lib/watch-process-registry.ts +1 -1
  438. package/bundled-test-harness/assets/adapter-C8oDflNN.js +0 -2
  439. package/bundled-test-harness/assets/add-field-to-card-definition-command-test-Cs670972.js +0 -111
  440. package/bundled-test-harness/assets/add-workspace-test-BviDAUBK.js +0 -71
  441. package/bundled-test-harness/assets/ai-assistant-B5fp2iOz.js +0 -129
  442. package/bundled-test-harness/assets/ai-assistant-panel-service-test-NpHZzZAz.js +0 -95
  443. package/bundled-test-harness/assets/ai-assistant-test-jPV29jEw.js +0 -2137
  444. package/bundled-test-harness/assets/ai-function-generation-test-QRPcE9tQ.js +0 -996
  445. package/bundled-test-harness/assets/ai-module-creation-test-DyuyfnkY.js +0 -150
  446. package/bundled-test-harness/assets/aibot-message-Dwxp5hTW.js +0 -1185
  447. package/bundled-test-harness/assets/amd-transpile-test-CF7Lkbif.js +0 -425
  448. package/bundled-test-harness/assets/app-CgP2IpNG.js +0 -21464
  449. package/bundled-test-harness/assets/apply-boxel-formatting-test-BXyZ3z0I.js +0 -134
  450. package/bundled-test-harness/assets/apply-markdown-edit-test-C6bcaj3a.js +0 -230
  451. package/bundled-test-harness/assets/apply-search-replace-block-test-BSwC4J9g.js +0 -630
  452. package/bundled-test-harness/assets/arc-DNRb_8LA.js +0 -199
  453. package/bundled-test-harness/assets/architecture-7EHR7CIX-BtVh_LBJ.js +0 -3
  454. package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-D9UYbaKj.js +0 -7400
  455. package/bundled-test-harness/assets/auth-error-guard-test-Bvu8E7Wy.js +0 -30
  456. package/bundled-test-harness/assets/auth-service-worker-test-CC6DzdfK.js +0 -538
  457. package/bundled-test-harness/assets/authed-fetch-test-CfF-IBHI.js +0 -75
  458. package/bundled-test-harness/assets/avif-image-def-test-B9L2z0nR.js +0 -186
  459. package/bundled-test-harness/assets/base-realm-43wjttN2.js +0 -140
  460. package/bundled-test-harness/assets/base-realm-CJ5x9iyX.js +0 -2
  461. package/bundled-test-harness/assets/basic-test-B64a5zCK.js +0 -128
  462. package/bundled-test-harness/assets/bfm-card-references-test-cLQVLpth.js +0 -577
  463. package/bundled-test-harness/assets/binary-upload-dedupe-test-By7Y1iQ3.js +0 -308
  464. package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-LgOorG2O.js +0 -4355
  465. package/bundled-test-harness/assets/bot-registration-test-DOjf0P1R.js +0 -99
  466. package/bundled-test-harness/assets/box-test-Cd1-RcXg.js +0 -51
  467. package/bundled-test-harness/assets/brand-guide-attachments-test-DxRqP8fo.js +0 -87
  468. package/bundled-test-harness/assets/brand-guide-custom-css-test-DBpZiHzJ.js +0 -135
  469. package/bundled-test-harness/assets/brand-logo-mark-field-test-61k4e5Om.js +0 -87
  470. package/bundled-test-harness/assets/broken-link-template-test-A1P4flQ5.js +0 -345
  471. package/bundled-test-harness/assets/browser-index-Bzhpucwe.js +0 -3
  472. package/bundled-test-harness/assets/browser-index-D0mzSWYV.js +0 -8802
  473. package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-1iq94vGa.js +0 -3764
  474. package/bundled-test-harness/assets/cached-fetch-test-ByQ-5OQI.js +0 -93
  475. package/bundled-test-harness/assets/can-read-realm-test-VFLHJdEv.js +0 -58
  476. package/bundled-test-harness/assets/cancel-indexing-job-test-n3Os4ZaX.js +0 -71
  477. package/bundled-test-harness/assets/card-api-test-DvNfLv3V.js +0 -196
  478. package/bundled-test-harness/assets/card-basics-test-CKzZuFdw.js +0 -4895
  479. package/bundled-test-harness/assets/card-catalog-test-JFvkVHED.js +0 -377
  480. package/bundled-test-harness/assets/card-copy-test-iwrFA72s.js +0 -777
  481. package/bundled-test-harness/assets/card-def-field-def-relationships-test-D5s2RH5t.js +0 -560
  482. package/bundled-test-harness/assets/card-def-menu-items-test-XcmkT4NF.js +0 -182
  483. package/bundled-test-harness/assets/card-delete-test-jtAOHk1Y.js +0 -412
  484. package/bundled-test-harness/assets/card-directory-name-test-veQEp5FJ.js +0 -71
  485. package/bundled-test-harness/assets/card-playground-test-P7Ed0tO4.js +0 -1497
  486. package/bundled-test-harness/assets/card-prerender-DXG8cQEv.js +0 -12661
  487. package/bundled-test-harness/assets/card-search-adorn-test-BX0-IJHB.js +0 -128
  488. package/bundled-test-harness/assets/card-search-query-builder-test-D01uixke.js +0 -88
  489. package/bundled-test-harness/assets/card-search-selection-menu-test-DMTeZFmW.js +0 -108
  490. package/bundled-test-harness/assets/channel-BvoW_rbI.js +0 -8
  491. package/bundled-test-harness/assets/check-correctness-test-D7QB1GTo.js +0 -252
  492. package/bundled-test-harness/assets/chunk-2J33WTMH-BbxCvOlt.js +0 -31
  493. package/bundled-test-harness/assets/chunk-3OPIFGDE-DHY3s0oT.js +0 -5548
  494. package/bundled-test-harness/assets/chunk-4BX2VUAB-CRivrLQ6.js +0 -11
  495. package/bundled-test-harness/assets/chunk-4EGX6M5U-qWzlMeqd.js +0 -44
  496. package/bundled-test-harness/assets/chunk-55IACEB6-DOl6NECJ.js +0 -10
  497. package/bundled-test-harness/assets/chunk-5DO6E6H7-scwNnzDb.js +0 -27
  498. package/bundled-test-harness/assets/chunk-5ZQYHXKU-BeETnugr.js +0 -1767
  499. package/bundled-test-harness/assets/chunk-727SXJPM-BlycTxFE.js +0 -3877
  500. package/bundled-test-harness/assets/chunk-AQP2D5EJ-BE3Clw-g.js +0 -2622
  501. package/bundled-test-harness/assets/chunk-BR22UD5L-BTPKlhWA.js +0 -85
  502. package/bundled-test-harness/assets/chunk-BSJP7CBP-BIhtUfvc.js +0 -114
  503. package/bundled-test-harness/assets/chunk-CSCIHK7Q-DnRAp6Bv.js +0 -6144
  504. package/bundled-test-harness/assets/chunk-FHYWG6QK-DpIXIGDC.js +0 -27
  505. package/bundled-test-harness/assets/chunk-FMBD7UC4-B36w3LIg.js +0 -20
  506. package/bundled-test-harness/assets/chunk-KSCS5N6A-gbz9p9BU.js +0 -871
  507. package/bundled-test-harness/assets/chunk-L5ZTLDWV-HNfH9U8K.js +0 -43
  508. package/bundled-test-harness/assets/chunk-LZXEDZCA-CbKHJfzx.js +0 -65
  509. package/bundled-test-harness/assets/chunk-MPE355IW-BGVbCTZH.js +0 -27
  510. package/bundled-test-harness/assets/chunk-MZUSXYTE-DoCjuxcJ.js +0 -36
  511. package/bundled-test-harness/assets/chunk-N66VUXT2-BX17MI-i.js +0 -70
  512. package/bundled-test-harness/assets/chunk-ND2GUHAM-IpeiJZYz.js +0 -93
  513. package/bundled-test-harness/assets/chunk-NZK2D7GU-CH-Gg7qc.js +0 -89
  514. package/bundled-test-harness/assets/chunk-O5CBEL6O-D2JbLgI8.js +0 -2395
  515. package/bundled-test-harness/assets/chunk-PUPMXCY4-DS4ZxM2V.js +0 -27
  516. package/bundled-test-harness/assets/chunk-QZHKN3VN-WLHeRUJ3.js +0 -20
  517. package/bundled-test-harness/assets/chunk-UIBZB4QT-DNIJBpkq.js +0 -27
  518. package/bundled-test-harness/assets/chunk-WCWK7LTN-CqRJ3WOy.js +0 -36
  519. package/bundled-test-harness/assets/chunk-WU5MYG2G-CtItCLbE.js +0 -12
  520. package/bundled-test-harness/assets/chunk-XPW4576I-D2Q7Qo8n.js +0 -2341
  521. package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-CnNFReKQ.js +0 -31
  522. package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-BlhpbohY.js +0 -31
  523. package/bundled-test-harness/assets/code-equality-assertion-C-2g5YGf.js +0 -474
  524. package/bundled-test-harness/assets/code-patches-test-DaV4Mon_.js +0 -1128
  525. package/bundled-test-harness/assets/code-patching-test-CcbWlImN.js +0 -114
  526. package/bundled-test-harness/assets/code-ref-test-8Yj8gbww.js +0 -138
  527. package/bundled-test-harness/assets/code-semantics-service-test-C3srTfDz.js +0 -65
  528. package/bundled-test-harness/assets/code-submode-test-BUhjvWtB.js +0 -1762
  529. package/bundled-test-harness/assets/codeblocks-test-3zAp0_GA.js +0 -492
  530. package/bundled-test-harness/assets/codemirror-context-C7KmSAyy.js +0 -2
  531. package/bundled-test-harness/assets/codemirror-editor-test-WojU4k2h.js +0 -1176
  532. package/bundled-test-harness/assets/color-field-test-yESUakoE.js +0 -213
  533. package/bundled-test-harness/assets/command-definitions-test-UsXsAhn7.js +0 -72
  534. package/bundled-test-harness/assets/commands-CBDBujm_.js +0 -1379
  535. package/bundled-test-harness/assets/commands-calling-test-DJTl0EbL.js +0 -200
  536. package/bundled-test-harness/assets/commands-test-DW2gupNS.js +0 -1041
  537. package/bundled-test-harness/assets/commands-test-DjLnuojW.js +0 -1145
  538. package/bundled-test-harness/assets/computed-test-0n5g8Ez5.js +0 -882
  539. package/bundled-test-harness/assets/container-D8y7fmir.js +0 -14602
  540. package/bundled-test-harness/assets/convert-to-class-name-test-DSIflIV2.js +0 -17
  541. package/bundled-test-harness/assets/copy-and-edit-test-BuK1ZHr-.js +0 -291
  542. package/bundled-test-harness/assets/copy-card-test-DnDC4_7J.js +0 -156
  543. package/bundled-test-harness/assets/copy-file-to-realm-test-CFd_3Iff.js +0 -99
  544. package/bundled-test-harness/assets/copy-source-test-38yUGJor.js +0 -56
  545. package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-DXA1S87S.js +0 -4275
  546. package/bundled-test-harness/assets/create-file-test-B2oem0-V.js +0 -963
  547. package/bundled-test-harness/assets/create-file-test-BHk00RtD.js +0 -397
  548. package/bundled-test-harness/assets/create-listing-modal-test-L-71-Uo2.js +0 -194
  549. package/bundled-test-harness/assets/create-listing-pr-request-CZaLsHhE.js +0 -64
  550. package/bundled-test-harness/assets/create-listing-pr-request-test-OGzk4Q2E.js +0 -117
  551. package/bundled-test-harness/assets/create-spec-test-BsM7VKuH.js +0 -239
  552. package/bundled-test-harness/assets/csv-file-def-test-BhJalhE-.js +0 -101
  553. package/bundled-test-harness/assets/dagre-BIk_r1iU.js +0 -4195
  554. package/bundled-test-harness/assets/dagre-BM42HDAG-FaUWeGOj.js +0 -606
  555. package/bundled-test-harness/assets/date-time-fields-test-Cs5T6Xk1.js +0 -322
  556. package/bundled-test-harness/assets/debug-message-test-WlHe7pJF.js +0 -119
  557. package/bundled-test-harness/assets/diagram-2AECGRRQ-DLve-IVM.js +0 -279
  558. package/bundled-test-harness/assets/diagram-5GNKFQAL-CJG1RTLk.js +0 -142
  559. package/bundled-test-harness/assets/diagram-KO2AKTUF-DYGDq3dD.js +0 -551
  560. package/bundled-test-harness/assets/diagram-LMA3HP47-BNRYdpMl.js +0 -184
  561. package/bundled-test-harness/assets/diagram-OG6HWLK6-BlJH5g83.js +0 -857
  562. package/bundled-test-harness/assets/diffing-test-DO54USSm.js +0 -210
  563. package/bundled-test-harness/assets/dist-BDRmXkWl.js +0 -232
  564. package/bundled-test-harness/assets/dist-BfNSLd0O.js +0 -105
  565. package/bundled-test-harness/assets/dist-BoireClP.js +0 -2
  566. package/bundled-test-harness/assets/editor-test-DChC9LuR.js +0 -551
  567. package/bundled-test-harness/assets/editor.main-BiohyrHK.js +0 -3
  568. package/bundled-test-harness/assets/editor.main-CMU_0pR1.js +0 -43566
  569. package/bundled-test-harness/assets/email-field-test-DWIFSfZ-.js +0 -74
  570. package/bundled-test-harness/assets/enum-field-test-BUc6l4us.js +0 -909
  571. package/bundled-test-harness/assets/erDiagram-TEJ5UH35-pOJ2novh.js +0 -2041
  572. package/bundled-test-harness/assets/error-display-test-CHSE6h6Z.js +0 -343
  573. package/bundled-test-harness/assets/evaluate-module-test-Caa5n0B9.js +0 -66
  574. package/bundled-test-harness/assets/eventmodeling-FCH6USID-B6XXU7R3.js +0 -3
  575. package/bundled-test-harness/assets/execute-atomic-operations-test-CT060oDk.js +0 -75
  576. package/bundled-test-harness/assets/externals-Do1fVZ4j.js +0 -5533
  577. package/bundled-test-harness/assets/extract-css-variables-test-DzjAsMgg.js +0 -169
  578. package/bundled-test-harness/assets/fallback-banner-test-CmxysrDn.js +0 -227
  579. package/bundled-test-harness/assets/fallback-banner-test-DJ4cO8PB.js +0 -53
  580. package/bundled-test-harness/assets/fallback-models-test-r5upJFeA.js +0 -163
  581. package/bundled-test-harness/assets/fetch-card-json-test-Di1wmvy5.js +0 -63
  582. package/bundled-test-harness/assets/fetcher-test-DjzNl_7F.js +0 -85
  583. package/bundled-test-harness/assets/field-configuration-test-C3vr-HhG.js +0 -535
  584. package/bundled-test-harness/assets/field-markdown-domain-test-DG2U4qIm.js +0 -615
  585. package/bundled-test-harness/assets/field-markdown-primitives-test-Bay2v8nT.js +0 -362
  586. package/bundled-test-harness/assets/field-markdown-specialized-test-Bl0Sl4sc.js +0 -527
  587. package/bundled-test-harness/assets/field-path-parser-test-bxxwUjcm.js +0 -387
  588. package/bundled-test-harness/assets/field-playground-test-Bcjfws4m.js +0 -902
  589. package/bundled-test-harness/assets/field-support-predicates-test-DYTqOGvv.js +0 -170
  590. package/bundled-test-harness/assets/field-test-helpers-DYSfSGdh.js +0 -45
  591. package/bundled-test-harness/assets/file-attachment-test-6ypDRDS7.js +0 -635
  592. package/bundled-test-harness/assets/file-chooser-test-mtmcHTFP.js +0 -439
  593. package/bundled-test-harness/assets/file-def-live-reload-test-CX1-lOv6.js +0 -50
  594. package/bundled-test-harness/assets/file-def-manager-DNHII2oj.js +0 -470
  595. package/bundled-test-harness/assets/file-def-manager-canonicalize-test-i_7UVakF.js +0 -451
  596. package/bundled-test-harness/assets/file-def-menu-items-test-Dw458iku.js +0 -114
  597. package/bundled-test-harness/assets/file-def-navigation-test-B3Ztr1Rd.js +0 -109
  598. package/bundled-test-harness/assets/file-def-serialization-test-C_gV8AkU.js +0 -87
  599. package/bundled-test-harness/assets/file-def-test-vXXJmtxX.js +0 -219
  600. package/bundled-test-harness/assets/file-tree-test-BJCiw9jm.js +0 -773
  601. package/bundled-test-harness/assets/flac-audio-def-test-BX3SE1vW.js +0 -138
  602. package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-7Q5ROn4X.js +0 -4883
  603. package/bundled-test-harness/assets/formatted-aibot-message-test-DyqUz2nt.js +0 -366
  604. package/bundled-test-harness/assets/formatted-user-message-test-aqAzqvBP.js +0 -43
  605. package/bundled-test-harness/assets/freestyle-test-CLRrZkAE.js +0 -17
  606. package/bundled-test-harness/assets/full-reindex-realm-test-ClqPVQ0c.js +0 -103
  607. package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-BkDoIAAE.js +0 -4060
  608. package/bundled-test-harness/assets/garbage-collection-test-Ba2dD3qS.js +0 -373
  609. package/bundled-test-harness/assets/general-test-D0zhs14K.js +0 -926
  610. package/bundled-test-harness/assets/generate-css-variables-test-CKrXSlHs.js +0 -88
  611. package/bundled-test-harness/assets/generate-example-cards-one-shot-test-fSAdGJeT.js +0 -67
  612. package/bundled-test-harness/assets/get-available-realm-identifiers-test-BXMUW65I.js +0 -49
  613. package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-DKEq6Zcq.js +0 -49
  614. package/bundled-test-harness/assets/get-default-writable-realm-test-Dp4nBIRP.js +0 -56
  615. package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-DYNnMgD-.js +0 -55
  616. package/bundled-test-harness/assets/get-relationship-membership-state-test-k9EUNWeq.js +0 -1306
  617. package/bundled-test-harness/assets/get-type-refs-from-filter-test-BPuivF-v.js +0 -136
  618. package/bundled-test-harness/assets/get-user-system-card-test-DSHv00O7.js +0 -52
  619. package/bundled-test-harness/assets/gif-image-def-test-LuDSr5Kz.js +0 -161
  620. package/bundled-test-harness/assets/gitGraph-WXDBUCRP-BrG_LYEh.js +0 -3
  621. package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-QJjQcX4J.js +0 -1150
  622. package/bundled-test-harness/assets/gts-file-def-test-bS3ML062.js +0 -99
  623. package/bundled-test-harness/assets/head-format-preview-test-B8IPh71E.js +0 -156
  624. package/bundled-test-harness/assets/helpers-wSIq-bau.js +0 -5
  625. package/bundled-test-harness/assets/host-mode-test-D44nXoQZ.js +0 -391
  626. package/bundled-test-harness/assets/host-submode-test-CefkXg9F.js +0 -904
  627. package/bundled-test-harness/assets/index-query-engine-test-DJnDqmfK.js +0 -2548
  628. package/bundled-test-harness/assets/index-writer-test-BcrCMj37.js +0 -1842
  629. package/bundled-test-harness/assets/indexeddb-crypto-store-RTTNdynf.js +0 -49434
  630. package/bundled-test-harness/assets/info-J43DQDTF-DhDzvz9k.js +0 -3
  631. package/bundled-test-harness/assets/infoDiagram-5YYISTIA-8TmRFIRz.js +0 -23
  632. package/bundled-test-harness/assets/inspector-test-D4iMBlbL.js +0 -1776
  633. package/bundled-test-harness/assets/instance-filter-matcher-test-CYT6N3hN.js +0 -564
  634. package/bundled-test-harness/assets/instantiate-card-test-j1JS5lDe.js +0 -104
  635. package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-B-aXzOh6.js +0 -497
  636. package/bundled-test-harness/assets/interact-submode-setup-VMwOUl3u.js +0 -558
  637. package/bundled-test-harness/assets/interact-submode-test-D5lNNXdq.js +0 -725
  638. package/bundled-test-harness/assets/invalidate-realm-identifiers-test-71Ze8eGV.js +0 -101
  639. package/bundled-test-harness/assets/invite-user-to-room-test-UfjsvwVp.js +0 -67
  640. package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-7UALIGwM.js +0 -1009
  641. package/bundled-test-harness/assets/isolated-render-test-C2IL-Fz3.js +0 -51
  642. package/bundled-test-harness/assets/item-button-6g7XYj56.js +0 -203
  643. package/bundled-test-harness/assets/javascript-BwLQ7_Nc.js +0 -75
  644. package/bundled-test-harness/assets/job-priority-header-test-C3FfKLPP.js +0 -81
  645. package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-t4gEZYup.js +0 -1256
  646. package/bundled-test-harness/assets/jpg-image-def-test-BTBk9lk5.js +0 -430
  647. package/bundled-test-harness/assets/json-file-def-test-BpU_Eidn.js +0 -92
  648. package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C_KHB3_r.js +0 -1284
  649. package/bundled-test-harness/assets/last-modified-date-test-fE7IP0q0.js +0 -18
  650. package/bundled-test-harness/assets/limited-set-test-uu2vX1Sv.js +0 -123
  651. package/bundled-test-harness/assets/line-BiZHXOjs.js +0 -55
  652. package/bundled-test-harness/assets/linear-DUaMMmmA.js +0 -417
  653. package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-qZeqQ1gt.js +0 -315
  654. package/bundled-test-harness/assets/linksto-error-sentinel-test-BaV3I8Xx.js +0 -236
  655. package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-BvJi1vCb.js +0 -303
  656. package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CK60Cugk.js +0 -301
  657. package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-BWxdEO9D.js +0 -258
  658. package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-CIsLhqR2.js +0 -194
  659. package/bundled-test-harness/assets/live-prerendered-search-jZe3I16p.js +0 -639
  660. package/bundled-test-harness/assets/live-test-CF_R5WGr.js +0 -2
  661. package/bundled-test-harness/assets/live-test-jO7lXuyB.js +0 -100
  662. package/bundled-test-harness/assets/loader-icon-error-test-N4JYZuTx.js +0 -62
  663. package/bundled-test-harness/assets/loader-parallel-prefetch-test-DteeG7mU.js +0 -257
  664. package/bundled-test-harness/assets/loader-retry-test-DYVgpS_I.js +0 -173
  665. package/bundled-test-harness/assets/loader-test-DLI8JIx-.js +0 -245
  666. package/bundled-test-harness/assets/loading-test-D4ZBtRYf.js +0 -63
  667. package/bundled-test-harness/assets/login-error-text-test-Dcq7q3EY.js +0 -51
  668. package/bundled-test-harness/assets/m4a-audio-def-test-BKqGO-CW.js +0 -185
  669. package/bundled-test-harness/assets/main-BjBdsiQT.js +0 -5
  670. package/bundled-test-harness/assets/markdown-fallback-test-BBj80dZZ.js +0 -316
  671. package/bundled-test-harness/assets/markdown-file-def-test-BnMF5rQF.js +0 -286
  672. package/bundled-test-harness/assets/markdown-helpers-test-DnuuSLfS.js +0 -183
  673. package/bundled-test-harness/assets/markdown-highlighting-test-CWRp2Rce.js +0 -244
  674. package/bundled-test-harness/assets/markdown-preview-test-Bf5OqKGf.js +0 -237
  675. package/bundled-test-harness/assets/markdown-preview-yYHtwNeI.js +0 -69
  676. package/bundled-test-harness/assets/marked-sync-2EfimW4i.js +0 -2
  677. package/bundled-test-harness/assets/marked-sync-DZOVFLjK.js +0 -2561
  678. package/bundled-test-harness/assets/marked-sync-test-BaaYbZNF.js +0 -146
  679. package/bundled-test-harness/assets/matrix-service-sliding-sync-test-CdEy3ASW.js +0 -33
  680. package/bundled-test-harness/assets/mermaid-parser.core-CKNAdXJW.js +0 -114
  681. package/bundled-test-harness/assets/mermaid.core-C0mfwy8A.js +0 -1700
  682. package/bundled-test-harness/assets/message-service-subscription-test-pGz_7rz3.js +0 -113
  683. package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-ClcHxkdY.js +0 -1347
  684. package/bundled-test-harness/assets/mock-matrix-D7JHfFtT.js +0 -2
  685. package/bundled-test-harness/assets/mock-matrix-DqDbNhEj.js +0 -14292
  686. package/bundled-test-harness/assets/module-transpile-cache-test-D0M-fPxs.js +0 -66
  687. package/bundled-test-harness/assets/monaco.contribution-BEs3qwfd.js +0 -103
  688. package/bundled-test-harness/assets/monaco.contribution-Dpx8UiPl.js +0 -2
  689. package/bundled-test-harness/assets/monaco.contribution-RF_qxJYG.js +0 -2
  690. package/bundled-test-harness/assets/monaco.contribution-jPVrF29f.js +0 -243
  691. package/bundled-test-harness/assets/mp3-audio-def-test-CxeRk1bl.js +0 -129
  692. package/bundled-test-harness/assets/mutex-test-D1xyxTj2.js +0 -71
  693. package/bundled-test-harness/assets/number-field-test-gjAGDy6P.js +0 -153
  694. package/bundled-test-harness/assets/ogg-audio-def-test-B6Ww3Ixr.js +0 -191
  695. package/bundled-test-harness/assets/open-create-listing-modal-test-uN58T3rI.js +0 -117
  696. package/bundled-test-harness/assets/open-workspace-test-DXVsvBFJ.js +0 -48
  697. package/bundled-test-harness/assets/operator-mode-acceptance-test-BxIq2xSS.js +0 -1044
  698. package/bundled-test-harness/assets/operator-mode-card-catalog-test-xFYx9_ng.js +0 -989
  699. package/bundled-test-harness/assets/operator-mode-links-test-qhXWmz-S.js +0 -797
  700. package/bundled-test-harness/assets/operator-mode-state-service-test-BdA_uvaY.js +0 -122
  701. package/bundled-test-harness/assets/operator-mode-test-D3EyTwq3.js +0 -617
  702. package/bundled-test-harness/assets/operator-mode-ui-test-CSrk6Q0A.js +0 -985
  703. package/bundled-test-harness/assets/ordinal-DO1mUmjg.js +0 -85
  704. package/bundled-test-harness/assets/overlay-menu-items-test-CuqqLsQT.js +0 -316
  705. package/bundled-test-harness/assets/packet-YPE3B663--JkMNy78.js +0 -3
  706. package/bundled-test-harness/assets/panel-C2rtbx32.js +0 -3371
  707. package/bundled-test-harness/assets/past-sessions-test-B9SCbbXz.js +0 -316
  708. package/bundled-test-harness/assets/patch-code-test-CcFr9pDb.js +0 -203
  709. package/bundled-test-harness/assets/patch-fields-test-BW1gzcJM.js +0 -992
  710. package/bundled-test-harness/assets/patch-instance-test-DKqA9gQ6.js +0 -287
  711. package/bundled-test-harness/assets/persist-module-inspector-view-test-D1eKBUkt.js +0 -62
  712. package/bundled-test-harness/assets/phone-number-field-test-D1is5RWv.js +0 -72
  713. package/bundled-test-harness/assets/pie-LRSECV5Y-BDVv8Wdy.js +0 -3
  714. package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CSYI-nMz.js +0 -253
  715. package/bundled-test-harness/assets/plan-install-test-DB-PrjPR.js +0 -417
  716. package/bundled-test-harness/assets/playground-B0iQV7dU.js +0 -57
  717. package/bundled-test-harness/assets/png-image-def-test-DnOsJGs6.js +0 -222
  718. package/bundled-test-harness/assets/prerender-file-extract-test-DhOLozj2.js +0 -176
  719. package/bundled-test-harness/assets/prerender-html-test-DKVhQZA9.js +0 -615
  720. package/bundled-test-harness/assets/prerender-meta-test-CnRNyqSz.js +0 -388
  721. package/bundled-test-harness/assets/prerender-module-test-D163QcrZ.js +0 -195
  722. package/bundled-test-harness/assets/prerendered-card-search-test-DX-8yabJ.js +0 -708
  723. package/bundled-test-harness/assets/preview-format-test-H7bnpdlC.js +0 -103
  724. package/bundled-test-harness/assets/preview-test-B7u6uWJR.js +0 -455
  725. package/bundled-test-harness/assets/qs-test-COb0mre6.js +0 -36
  726. package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-2Y2ben29.js +0 -2324
  727. package/bundled-test-harness/assets/query-field-barrier-test-Cypj-MhK.js +0 -118
  728. package/bundled-test-harness/assets/query-field-error-sentinel-test-Dnqn8TdN.js +0 -202
  729. package/bundled-test-harness/assets/query-field-normalization-test-B7D8SHBP.js +0 -271
  730. package/bundled-test-harness/assets/query-field-schema-test-DIYY3-c8.js +0 -231
  731. package/bundled-test-harness/assets/query-fields-test-k-VBF9PE.js +0 -535
  732. package/bundled-test-harness/assets/queue-test-B_74vXZE.js +0 -216
  733. package/bundled-test-harness/assets/radar-GUYGQ44K-Cn2A0VBR.js +0 -3
  734. package/bundled-test-harness/assets/read-card-for-ai-assistant-test-SyL9F_La.js +0 -91
  735. package/bundled-test-harness/assets/read-file-for-ai-assistant-test-nLPp49U2.js +0 -45
  736. package/bundled-test-harness/assets/read-source-test-DBELJkhN.js +0 -67
  737. package/bundled-test-harness/assets/read-text-file-test-CP1JuWlX.js +0 -124
  738. package/bundled-test-harness/assets/realm-Dr4iygv_.js +0 -884
  739. package/bundled-test-harness/assets/realm-field-test-Cice2mYk.js +0 -101
  740. package/bundled-test-harness/assets/realm-index-card-id-test-BzpozdWc.js +0 -18
  741. package/bundled-test-harness/assets/realm-indexing-test-C0YSXziR.js +0 -4018
  742. package/bundled-test-harness/assets/realm-paths-test-DV_g07rF.js +0 -33
  743. package/bundled-test-harness/assets/realm-querying-test-B526abM0.js +0 -1062
  744. package/bundled-test-harness/assets/realm-test-D8UN5X-w.js +0 -2409
  745. package/bundled-test-harness/assets/reasoning-test-ClIOvdkX.js +0 -234
  746. package/bundled-test-harness/assets/recent-files-test-C2J_dJUD.js +0 -449
  747. package/bundled-test-harness/assets/reindex-realm-test-DMphy1g6.js +0 -119
  748. package/bundled-test-harness/assets/relationship-loading-state-test-BWrZdLlZ.js +0 -289
  749. package/bundled-test-harness/assets/render-component-BII_KnyK.js +0 -2
  750. package/bundled-test-harness/assets/render-error-test-BUAJJlUi.js +0 -22
  751. package/bundled-test-harness/assets/render-service-test-BKkCjErY.js +0 -87
  752. package/bundled-test-harness/assets/render-timer-stub-test-TUDMWJ8v.js +0 -84
  753. package/bundled-test-harness/assets/rendered-markdown-ColekGTF.js +0 -211
  754. package/bundled-test-harness/assets/rendered-markdown-test-B4CWIo02.js +0 -360
  755. package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-CTICatxk.js +0 -2550
  756. package/bundled-test-harness/assets/rich-markdown-field-test-B5u6D3Nk.js +0 -806
  757. package/bundled-test-harness/assets/room-message-test-0eJSqQfu.js +0 -171
  758. package/bundled-test-harness/assets/rust-crypto-B0m3j_yZ.js +0 -16141
  759. package/bundled-test-harness/assets/sanitize-module-list-test-rH6OqjKh.js +0 -68
  760. package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-hBIg6-LP.js +0 -1357
  761. package/bundled-test-harness/assets/schema-editor-test-DH4MLFCD.js +0 -784
  762. package/bundled-test-harness/assets/schema-generation-test-BZMkX7VA.js +0 -28
  763. package/bundled-test-harness/assets/scrolling-test-CFTyLG8X.js +0 -292
  764. package/bundled-test-harness/assets/search-and-choose-test-CcbVyp4c.js +0 -156
  765. package/bundled-test-harness/assets/search-cache-key-test-BYt46iNT.js +0 -79
  766. package/bundled-test-harness/assets/search-command-test-BRIJPr54.js +0 -135
  767. package/bundled-test-harness/assets/search-correlation-id-test-B298Tfux.js +0 -101
  768. package/bundled-test-harness/assets/search-data-test-DHV2Fd4S.js +0 -243
  769. package/bundled-test-harness/assets/search-google-images-test-CNrazllP.js +0 -168
  770. package/bundled-test-harness/assets/search-in-flight-key-test-Dy3bU2c1.js +0 -79
  771. package/bundled-test-harness/assets/search-test-DL1-gD-G.js +0 -847
  772. package/bundled-test-harness/assets/send-ai-assistant-message-test-CyEkQ5pD.js +0 -52
  773. package/bundled-test-harness/assets/send-bot-trigger-event-test-CAsK28m-.js +0 -56
  774. package/bundled-test-harness/assets/send-request-via-proxy-test-DpMlRvPv.js +0 -333
  775. package/bundled-test-harness/assets/sending-test-BOeGYcTU.js +0 -317
  776. package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-DQMiI040.js +0 -5551
  777. package/bundled-test-harness/assets/serialization-test-gY2QQVxS.js +0 -8283
  778. package/bundled-test-harness/assets/set-user-system-card-test-BE3y5GNK.js +0 -59
  779. package/bundled-test-harness/assets/setup-B8O9JQKq.js +0 -769
  780. package/bundled-test-harness/assets/setup-BMqGUBDK.js +0 -2
  781. package/bundled-test-harness/assets/show-card-test-BfJNnWMy.js +0 -362
  782. package/bundled-test-harness/assets/skills-test-CqhnZxBi.js +0 -568
  783. package/bundled-test-harness/assets/spec-test-BUKNn_1q.js +0 -1012
  784. package/bundled-test-harness/assets/stateDiagram-AJRCARHV-BoOij2yt.js +0 -363
  785. package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-Dosil5p2.js +0 -29
  786. package/bundled-test-harness/assets/store-add-test-BR1M-IDR.js +0 -52
  787. package/bundled-test-harness/assets/store-test-DaqI-HRh.js +0 -1562
  788. package/bundled-test-harness/assets/summarize-session-test-BMg54JGF.js +0 -169
  789. package/bundled-test-harness/assets/svg-image-def-test-xNyIKRPV.js +0 -164
  790. package/bundled-test-harness/assets/switch-submode-test-BKvpODUD.js +0 -168
  791. package/bundled-test-harness/assets/test-realm-service-worker-DK4SmTM5.js +0 -73
  792. package/bundled-test-harness/assets/tests-x4_eRjiT.js +0 -2770
  793. package/bundled-test-harness/assets/text-file-def-test-CsXiyVfI.js +0 -93
  794. package/bundled-test-harness/assets/text-input-validator-test-D4s_laO7.js +0 -155
  795. package/bundled-test-harness/assets/text-suggestion-test-CkLf1xuS.js +0 -339
  796. package/bundled-test-harness/assets/theme-card-test-D-6L6OfD.js +0 -573
  797. package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-DD2d81uJ.js +0 -1545
  798. package/bundled-test-harness/assets/transform-cards-test-CRZF2gqZ.js +0 -341
  799. package/bundled-test-harness/assets/treeView-BLDUP644-CUm8wuM-.js +0 -3
  800. package/bundled-test-harness/assets/treemap-LRROVOQU-lbLrY2PE.js +0 -3
  801. package/bundled-test-harness/assets/ts-file-def-test-CDo6ojCf.js +0 -90
  802. package/bundled-test-harness/assets/tsMode-BPQoRibc.js +0 -968
  803. package/bundled-test-harness/assets/typescript-BaU6yDhK.js +0 -2
  804. package/bundled-test-harness/assets/update-room-skills-test-BnSgVFwT.js +0 -197
  805. package/bundled-test-harness/assets/url-test-CK-HB0qu.js +0 -103
  806. package/bundled-test-harness/assets/use-ai-assistant-test-BuJXEP8H.js +0 -330
  807. package/bundled-test-harness/assets/validate-realm-test-Cx7MOtS8.js +0 -53
  808. package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-DtXtzGwZ.js +0 -2833
  809. package/bundled-test-harness/assets/wardley-L42UT6IY-D8aCp_Ox.js +0 -3
  810. package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-D-73g3bB.js +0 -872
  811. package/bundled-test-harness/assets/wav-audio-def-test-DIo2GzQL.js +0 -155
  812. package/bundled-test-harness/assets/webp-image-def-test-BQsV0_De.js +0 -225
  813. package/bundled-test-harness/assets/workspace-chooser-delete-test-peDXmnQf.js +0 -189
  814. package/bundled-test-harness/assets/workspace-chooser-test-DS2RtTEF.js +0 -235
  815. package/bundled-test-harness/assets/workspace-delete-multiple-test-DTbjRSzN.js +0 -213
  816. package/bundled-test-harness/assets/workspace-delete-summary-test-B--ink4m.js +0 -63
  817. package/bundled-test-harness/assets/write-binary-file-test-A3TQ5lFn.js +0 -100
  818. package/bundled-test-harness/assets/write-text-file-test-D_rjNDsT.js +0 -172
  819. package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-D1aoqDp-.js +0 -2551
  820. /package/bundled-test-harness/assets/{abap-CLdVBGqB.js → abap-FZAuBTMl.js} +0 -0
  821. /package/bundled-test-harness/assets/{apex-DV8eHjgQ.js → apex-CAO3qFTc.js} +0 -0
  822. /package/bundled-test-harness/assets/{array-DsDWWqmW.js → array-CRfHnEm4.js} +0 -0
  823. /package/bundled-test-harness/assets/{azcli-C4pZYsiJ.js → azcli-Bnu7jG0Y.js} +0 -0
  824. /package/bundled-test-harness/assets/{bat-DBoaeFpB.js → bat-DdE54Pqq.js} +0 -0
  825. /package/bundled-test-harness/assets/{bicep-VlrJhbeK.js → bicep-Dp4vFp3K.js} +0 -0
  826. /package/bundled-test-harness/assets/{cameligo-jyzrvLUm.js → cameligo-Cym4x98m.js} +0 -0
  827. /package/bundled-test-harness/assets/{chunk-NNHCCRGN-Be15HUz2.js → chunk-NNHCCRGN-PWOfDYpb.js} +0 -0
  828. /package/bundled-test-harness/assets/{clojure-bzahmEtz.js → clojure-B47IJ25u.js} +0 -0
  829. /package/bundled-test-harness/assets/{codemirror-context-BauLYUNt.js → codemirror-context-oJy03XqC.js} +0 -0
  830. /package/bundled-test-harness/assets/{coffee-CMADdzOH.js → coffee-CZlkBXT8.js} +0 -0
  831. /package/bundled-test-harness/assets/{cpp-CEJwzcLE.js → cpp-mX4KaA7p.js} +0 -0
  832. /package/bundled-test-harness/assets/{csharp-XYqm0UE0.js → csharp-C-OeDGwk.js} +0 -0
  833. /package/bundled-test-harness/assets/{csp-82fNWQc2.js → csp-AS2OEE8R.js} +0 -0
  834. /package/bundled-test-harness/assets/{css-B5b0ooFS.js → css-C-TQxhWe.js} +0 -0
  835. /package/bundled-test-harness/assets/{cssMode-DTKuqAkO.js → cssMode-C87GnEsk.js} +0 -0
  836. /package/bundled-test-harness/assets/{cypher-Df9GkdDY.js → cypher-T6F_0eIM.js} +0 -0
  837. /package/bundled-test-harness/assets/{cytoscape.esm-D0iwZ9Jj.js → cytoscape.esm-Bc2V-MhP.js} +0 -0
  838. /package/bundled-test-harness/assets/{dart-C4JY9dMc.js → dart-DzVesk0n.js} +0 -0
  839. /package/bundled-test-harness/assets/{defaultLocale-BtLxQtxy.js → defaultLocale-CAoL4lzt.js} +0 -0
  840. /package/bundled-test-harness/assets/{dist-D-PuK2H3.js → dist-BZ5MfZEJ.js} +0 -0
  841. /package/bundled-test-harness/assets/{dockerfile-Ck0tNttO.js → dockerfile-BH0_bQxC.js} +0 -0
  842. /package/bundled-test-harness/assets/{ecl-BpeXqJR_.js → ecl-KIxjxrJo.js} +0 -0
  843. /package/bundled-test-harness/assets/{elixir-HmBzrXaX.js → elixir-CPPdtCW1.js} +0 -0
  844. /package/bundled-test-harness/assets/{flow9-DhsfsDhH.js → flow9-Dxho7Ldf.js} +0 -0
  845. /package/bundled-test-harness/assets/{freemarker2-D3Yd6nGl.js → freemarker2-DP1aOr3_.js} +0 -0
  846. /package/bundled-test-harness/assets/{fsharp-D56OprHc.js → fsharp-ozN53Joe.js} +0 -0
  847. /package/bundled-test-harness/assets/{go-BITsFLfX.js → go-DPj6Rbqe.js} +0 -0
  848. /package/bundled-test-harness/assets/{graphlib-qkaQhadO.js → graphlib-DOITgaas.js} +0 -0
  849. /package/bundled-test-harness/assets/{graphql-CJJVsEX1.js → graphql-C8_-AnBG.js} +0 -0
  850. /package/bundled-test-harness/assets/{handlebars-Dvw6QbL7.js → handlebars-B2gYBZpU.js} +0 -0
  851. /package/bundled-test-harness/assets/{hcl-DSTZcJuq.js → hcl-r3d7BhXB.js} +0 -0
  852. /package/bundled-test-harness/assets/{helpers-D_JZYUOQ.js → helpers-CItTycq2.js} +0 -0
  853. /package/bundled-test-harness/assets/{html-Bik3qLmc.js → html-DhN1Nxr0.js} +0 -0
  854. /package/bundled-test-harness/assets/{htmlMode-DPCaR3Ab.js → htmlMode-BnBg5hCh.js} +0 -0
  855. /package/bundled-test-harness/assets/{ini-li-kC8ZU.js → ini-CzzRigmS.js} +0 -0
  856. /package/bundled-test-harness/assets/{init-Bq7IGMcH.js → init-Bd2YUhsG.js} +0 -0
  857. /package/bundled-test-harness/assets/{java-CETpuNN7.js → java-BgeDsIoV.js} +0 -0
  858. /package/bundled-test-harness/assets/{jsonMode-CZ3hOG-W.js → jsonMode-sRb0gsB8.js} +0 -0
  859. /package/bundled-test-harness/assets/{julia-hgihs1aN.js → julia-u3K1H5Ts.js} +0 -0
  860. /package/bundled-test-harness/assets/{katex-DqhsSYO4.js → katex-CHY7BUZt.js} +0 -0
  861. /package/bundled-test-harness/assets/{kotlin-CKfyb82K.js → kotlin-DfqmlJ10.js} +0 -0
  862. /package/bundled-test-harness/assets/{less-xB5yXbw8.js → less-CSzH7DPY.js} +0 -0
  863. /package/bundled-test-harness/assets/{lexon-BLwrXVrI.js → lexon-DwPTpxXt.js} +0 -0
  864. /package/bundled-test-harness/assets/{liquid-Bf2lpknJ.js → liquid-95J9g5Vk.js} +0 -0
  865. /package/bundled-test-harness/assets/{lua-Ch5i3IrF.js → lua-CGw6zbeh.js} +0 -0
  866. /package/bundled-test-harness/assets/{m3-D5tNlhaF.js → m3-BfgwloGF.js} +0 -0
  867. /package/bundled-test-harness/assets/{markdown-Dzc9uMky.js → markdown-RZRK7Mc9.js} +0 -0
  868. /package/bundled-test-harness/assets/{mdx-xsI4TJrf.js → mdx-BYD-W2sn.js} +0 -0
  869. /package/bundled-test-harness/assets/{mips-CmdzHkQm.js → mips-DAySN5Lp.js} +0 -0
  870. /package/bundled-test-harness/assets/{msdax-CAZvxB9E.js → msdax-Cy0COjTJ.js} +0 -0
  871. /package/bundled-test-harness/assets/{mysql-CyVS-z5H.js → mysql-CfGw9jyw.js} +0 -0
  872. /package/bundled-test-harness/assets/{objective-c-CCG8cTc_.js → objective-c-B4uU-8T-.js} +0 -0
  873. /package/bundled-test-harness/assets/{pascal-c8B45FOC.js → pascal-CGDuZzXi.js} +0 -0
  874. /package/bundled-test-harness/assets/{pascaligo-CCqwSqBv.js → pascaligo-eg02k4VJ.js} +0 -0
  875. /package/bundled-test-harness/assets/{path-CsS38UoK.js → path-Dxiz9G2t.js} +0 -0
  876. /package/bundled-test-harness/assets/{perl-JUICYbO2.js → perl-BiT-JJJw.js} +0 -0
  877. /package/bundled-test-harness/assets/{pgsql-aNRiL0Cg.js → pgsql-DAMjrVBF.js} +0 -0
  878. /package/bundled-test-harness/assets/{php-B0YZj_Vw.js → php-kOSUYQyc.js} +0 -0
  879. /package/bundled-test-harness/assets/{pla-D3Zb3KCn.js → pla-BShYV-HC.js} +0 -0
  880. /package/bundled-test-harness/assets/{postiats-ks1KABlA.js → postiats-9Xamd4W2.js} +0 -0
  881. /package/bundled-test-harness/assets/{powerquery-D35K_osc.js → powerquery-l2Nw525Q.js} +0 -0
  882. /package/bundled-test-harness/assets/{powershell-DXQo6KTk.js → powershell-B5rdEn86.js} +0 -0
  883. /package/bundled-test-harness/assets/{protobuf-CFDvn49_.js → protobuf-DjFcruCV.js} +0 -0
  884. /package/bundled-test-harness/assets/{pug-CGdWzJm1.js → pug-d79Nz4-Z.js} +0 -0
  885. /package/bundled-test-harness/assets/{python-BHLYjYlP.js → python-d8oxFZIM.js} +0 -0
  886. /package/bundled-test-harness/assets/{qsharp-BIq3i63T.js → qsharp-CeTlfxZW.js} +0 -0
  887. /package/bundled-test-harness/assets/{qunit-2hoQyeAZ.js → qunit-Cqwmt9Vl.js} +0 -0
  888. /package/bundled-test-harness/assets/{r-CBvzvDSA.js → r-BOu7JTro.js} +0 -0
  889. /package/bundled-test-harness/assets/{razor-JQ0RiIvo.js → razor-ZatoG_Is.js} +0 -0
  890. /package/bundled-test-harness/assets/{recent-files-cards-BQMviQb1.js → recent-files-cards-C3vIjaKb.js} +0 -0
  891. /package/bundled-test-harness/assets/{redis-BmSHTqTU.js → redis-DdXYPyQE.js} +0 -0
  892. /package/bundled-test-harness/assets/{redshift-B1NmQEH7.js → redshift-DswnW-YX.js} +0 -0
  893. /package/bundled-test-harness/assets/{render-component-g_fhz2dX.js → render-component-Bs21y6iv.js} +0 -0
  894. /package/bundled-test-harness/assets/{restructuredtext-Br9BtTbk.js → restructuredtext-C75vUmvX.js} +0 -0
  895. /package/bundled-test-harness/assets/{rough.esm-D8VnzNsL.js → rough.esm-B83ARgx6.js} +0 -0
  896. /package/bundled-test-harness/assets/{ruby-D9_-y1I3.js → ruby-D77950a-.js} +0 -0
  897. /package/bundled-test-harness/assets/{rust-1Jjr1EOs.js → rust-C_G4PKsG.js} +0 -0
  898. /package/bundled-test-harness/assets/{sb-X2JE4zEr.js → sb-Cz3P8_Gp.js} +0 -0
  899. /package/bundled-test-harness/assets/{scala-qFJERKkR.js → scala-DYqUg04P.js} +0 -0
  900. /package/bundled-test-harness/assets/{scheme-D-WJPStO.js → scheme-B31XEGu5.js} +0 -0
  901. /package/bundled-test-harness/assets/{scss-DysfZiXA.js → scss-CtvB8On5.js} +0 -0
  902. /package/bundled-test-harness/assets/{shell-C0Iu3NNJ.js → shell-C2QqpcPN.js} +0 -0
  903. /package/bundled-test-harness/assets/{solidity-Bato3Qrk.js → solidity-FHrhZFd-.js} +0 -0
  904. /package/bundled-test-harness/assets/{sophia-DI0cKdK8.js → sophia-Cxv5FOXb.js} +0 -0
  905. /package/bundled-test-harness/assets/{sparql-BTJMtwoD.js → sparql-CgGkGeQB.js} +0 -0
  906. /package/bundled-test-harness/assets/{sql-R6uHqFYU.js → sql-S6Dos2P0.js} +0 -0
  907. /package/bundled-test-harness/assets/{src-CdPyB7gY.js → src-CvuaVSsl.js} +0 -0
  908. /package/bundled-test-harness/assets/{st-CoyBvq37.js → st-Bfa7LAWp.js} +0 -0
  909. /package/bundled-test-harness/assets/{swift-Bj-haAlF.js → swift-BQD5Ef-A.js} +0 -0
  910. /package/bundled-test-harness/assets/{systemverilog-B-x1NEFI.js → systemverilog-DaNkPux4.js} +0 -0
  911. /package/bundled-test-harness/assets/{tcl-DAUdSQgz.js → tcl-gOPgCDyb.js} +0 -0
  912. /package/bundled-test-harness/assets/{test-support-BHjxBpDK.js → test-support-BEQX5x9U.js} +0 -0
  913. /package/bundled-test-harness/assets/{test-support-yKvYEh-u.js → test-support-BL4XKobD.js} +0 -0
  914. /package/bundled-test-harness/assets/{twig-B0sJ-GzS.js → twig-Bk4gPn5b.js} +0 -0
  915. /package/bundled-test-harness/assets/{typescript-DTMIM5Gl.js → typescript-pPYlxWzr.js} +0 -0
  916. /package/bundled-test-harness/assets/{typespec-6yo9VQxY.js → typespec-D9Zz743B.js} +0 -0
  917. /package/bundled-test-harness/assets/{vb-Bh2IfdtJ.js → vb-ziqHIsJV.js} +0 -0
  918. /package/bundled-test-harness/assets/{view-card-demo-U_AOj-RK.js → view-card-demo-CSIVYD3T.js} +0 -0
  919. /package/bundled-test-harness/assets/{wgsl-DsvJnCCt.js → wgsl-BXiwkiJL.js} +0 -0
  920. /package/bundled-test-harness/assets/{xml-CisPXcjD.js → xml-a_tUOik-.js} +0 -0
  921. /package/bundled-test-harness/assets/{yaml-DkHUoYI5.js → yaml-B3H8LDzK.js} +0 -0
@@ -1,2561 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[(globalThis.__boxelAssetsURL||"/")+"assets/monaco.contribution-Dpx8UiPl.js",(globalThis.__boxelAssetsURL||"/")+"assets/monaco.contribution-BEs3qwfd.js",(globalThis.__boxelAssetsURL||"/")+"assets/chunk-CGdGNDIi.js",(globalThis.__boxelAssetsURL||"/")+"assets/preload-helper-CsWBX1L7.js",(globalThis.__boxelAssetsURL||"/")+"assets/editor.api-C-6J5J7V.js",(globalThis.__boxelAssetsURL||"/")+"assets/languages-DCTDTjXB.js",(globalThis.__boxelAssetsURL||"/")+"assets/editor-C3U8oQBi.css",(globalThis.__boxelAssetsURL||"/")+"assets/monaco.contribution-RF_qxJYG.js",(globalThis.__boxelAssetsURL||"/")+"assets/monaco.contribution-jPVrF29f.js",(globalThis.__boxelAssetsURL||"/")+"assets/languages-BHLYFSz9.js"])))=>i.map(i=>d[i]);
2
- import { i as __name } from "./chunk-CGdGNDIi.js";
3
- import { E as escapeHtml, r as bfmCardReferenceExtensions, t as sanitizeHtml } from "./dompurify-runtime-DnZEeRZb.js";
4
- import { t as __vitePreload } from "./preload-helper-CsWBX1L7.js";
5
- //#region ../runtime-common/bfm-math.ts
6
- var inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1(?=[\s?!.,:\uFF1F\uFF01\u3002\uFF0C\uFF1A]|$)/;
7
- var blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
8
- /**
9
- * A marked extension that tokenizes LaTeX math (`$...$` inline, `$$...$$`
10
- * block) and emits lightweight placeholder HTML instead of rendering with
11
- * KaTeX at parse time. This keeps the heavy KaTeX library (~268 KB min) out
12
- * of the initial bundle.
13
- *
14
- * Placeholders:
15
- * Inline: <span class="math-placeholder" data-math="..." data-display="false">$...$</span>
16
- * Block: <div class="math-placeholder" data-math="..." data-display="true">$$...$$</div>
17
- *
18
- * A client-side modifier should query `.math-placeholder` elements, lazy-load
19
- * KaTeX via `import('katex')`, and call `katex.render()` on each one.
20
- */
21
- function markedKatexPlaceholder() {
22
- return { extensions: [inlineKatex(), blockKatex()] };
23
- }
24
- function inlineKatex() {
25
- return {
26
- name: "inlineKatex",
27
- level: "inline",
28
- start(src) {
29
- let indexSrc = src;
30
- while (indexSrc) {
31
- let index = indexSrc.indexOf("$");
32
- if (index === -1) return void 0;
33
- if (index === 0 || indexSrc.charAt(index - 1) === " ") {
34
- if (indexSrc.substring(index).match(inlineRule)) return index;
35
- }
36
- indexSrc = indexSrc.substring(index + 1).replace(/^\$+/, "");
37
- }
38
- },
39
- tokenizer(src) {
40
- let match = src.match(inlineRule);
41
- if (match) return {
42
- type: "inlineKatex",
43
- raw: match[0],
44
- text: match[2].trim(),
45
- displayMode: match[1].length === 2
46
- };
47
- },
48
- renderer(token) {
49
- return `<span class="math-placeholder" data-math="${escapeHtml(token.text)}" data-display="false">${escapeHtml(token.raw)}</span>`;
50
- }
51
- };
52
- }
53
- function blockKatex() {
54
- return {
55
- name: "blockKatex",
56
- level: "block",
57
- tokenizer(src) {
58
- let match = src.match(blockRule);
59
- if (match) return {
60
- type: "blockKatex",
61
- raw: match[0],
62
- text: match[2].trim(),
63
- displayMode: match[1].length === 2
64
- };
65
- },
66
- renderer(token) {
67
- return `<div class="math-placeholder" data-math="${escapeHtml(token.text)}" data-display="true">${escapeHtml(token.raw)}</div>\n`;
68
- }
69
- };
70
- }
71
- //#endregion
72
- //#region ../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.js
73
- /**
74
- * marked v12.0.2 - a markdown parser
75
- * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
76
- * https://github.com/markedjs/marked
77
- */
78
- /**
79
- * DO NOT EDIT THIS FILE
80
- * The code in this file is generated from files in ./src/
81
- */
82
- /**
83
- * Gets the original marked default options.
84
- */
85
- function _getDefaults() {
86
- return {
87
- async: false,
88
- breaks: false,
89
- extensions: null,
90
- gfm: true,
91
- hooks: null,
92
- pedantic: false,
93
- renderer: null,
94
- silent: false,
95
- tokenizer: null,
96
- walkTokens: null
97
- };
98
- }
99
- var _defaults = _getDefaults();
100
- function changeDefaults(newDefaults) {
101
- _defaults = newDefaults;
102
- }
103
- /**
104
- * Helpers
105
- */
106
- var escapeTest = /[&<>"']/;
107
- var escapeReplace = new RegExp(escapeTest.source, "g");
108
- var escapeTestNoEncode = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/;
109
- var escapeReplaceNoEncode = new RegExp(escapeTestNoEncode.source, "g");
110
- var escapeReplacements = {
111
- "&": "&amp;",
112
- "<": "&lt;",
113
- ">": "&gt;",
114
- "\"": "&quot;",
115
- "'": "&#39;"
116
- };
117
- var getEscapeReplacement = (ch) => escapeReplacements[ch];
118
- function escape$1(html, encode) {
119
- if (encode) {
120
- if (escapeTest.test(html)) return html.replace(escapeReplace, getEscapeReplacement);
121
- } else if (escapeTestNoEncode.test(html)) return html.replace(escapeReplaceNoEncode, getEscapeReplacement);
122
- return html;
123
- }
124
- var unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;
125
- function unescape(html) {
126
- return html.replace(unescapeTest, (_, n) => {
127
- n = n.toLowerCase();
128
- if (n === "colon") return ":";
129
- if (n.charAt(0) === "#") return n.charAt(1) === "x" ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1));
130
- return "";
131
- });
132
- }
133
- var caret = /(^|[^\[])\^/g;
134
- function edit(regex, opt) {
135
- let source = typeof regex === "string" ? regex : regex.source;
136
- opt = opt || "";
137
- const obj = {
138
- replace: (name, val) => {
139
- let valSource = typeof val === "string" ? val : val.source;
140
- valSource = valSource.replace(caret, "$1");
141
- source = source.replace(name, valSource);
142
- return obj;
143
- },
144
- getRegex: () => {
145
- return new RegExp(source, opt);
146
- }
147
- };
148
- return obj;
149
- }
150
- function cleanUrl(href) {
151
- try {
152
- href = encodeURI(href).replace(/%25/g, "%");
153
- } catch (e) {
154
- return null;
155
- }
156
- return href;
157
- }
158
- var noopTest = { exec: () => null };
159
- function splitCells$1(tableRow, count) {
160
- const cells = tableRow.replace(/\|/g, (match, offset, str) => {
161
- let escaped = false;
162
- let curr = offset;
163
- while (--curr >= 0 && str[curr] === "\\") escaped = !escaped;
164
- if (escaped) return "|";
165
- else return " |";
166
- }).split(/ \|/);
167
- let i = 0;
168
- if (!cells[0].trim()) cells.shift();
169
- if (cells.length > 0 && !cells[cells.length - 1].trim()) cells.pop();
170
- if (count) if (cells.length > count) cells.splice(count);
171
- else while (cells.length < count) cells.push("");
172
- for (; i < cells.length; i++) cells[i] = cells[i].trim().replace(/\\\|/g, "|");
173
- return cells;
174
- }
175
- __name(splitCells$1, "splitCells");
176
- /**
177
- * Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
178
- * /c*$/ is vulnerable to REDOS.
179
- *
180
- * @param str
181
- * @param c
182
- * @param invert Remove suffix of non-c chars instead. Default falsey.
183
- */
184
- function rtrim(str, c, invert) {
185
- const l = str.length;
186
- if (l === 0) return "";
187
- let suffLen = 0;
188
- while (suffLen < l) {
189
- const currChar = str.charAt(l - suffLen - 1);
190
- if (currChar === c && !invert) suffLen++;
191
- else if (currChar !== c && invert) suffLen++;
192
- else break;
193
- }
194
- return str.slice(0, l - suffLen);
195
- }
196
- function findClosingBracket(str, b) {
197
- if (str.indexOf(b[1]) === -1) return -1;
198
- let level = 0;
199
- for (let i = 0; i < str.length; i++) if (str[i] === "\\") i++;
200
- else if (str[i] === b[0]) level++;
201
- else if (str[i] === b[1]) {
202
- level--;
203
- if (level < 0) return i;
204
- }
205
- return -1;
206
- }
207
- function outputLink(cap, link, raw, lexer) {
208
- const href = link.href;
209
- const title = link.title ? escape$1(link.title) : null;
210
- const text = cap[1].replace(/\\([\[\]])/g, "$1");
211
- if (cap[0].charAt(0) !== "!") {
212
- lexer.state.inLink = true;
213
- const token = {
214
- type: "link",
215
- raw,
216
- href,
217
- title,
218
- text,
219
- tokens: lexer.inlineTokens(text)
220
- };
221
- lexer.state.inLink = false;
222
- return token;
223
- }
224
- return {
225
- type: "image",
226
- raw,
227
- href,
228
- title,
229
- text: escape$1(text)
230
- };
231
- }
232
- function indentCodeCompensation(raw, text) {
233
- const matchIndentToCode = raw.match(/^(\s+)(?:```)/);
234
- if (matchIndentToCode === null) return text;
235
- const indentToCode = matchIndentToCode[1];
236
- return text.split("\n").map((node) => {
237
- const matchIndentInNode = node.match(/^\s+/);
238
- if (matchIndentInNode === null) return node;
239
- const [indentInNode] = matchIndentInNode;
240
- if (indentInNode.length >= indentToCode.length) return node.slice(indentToCode.length);
241
- return node;
242
- }).join("\n");
243
- }
244
- /**
245
- * Tokenizer
246
- */
247
- var _Tokenizer = class {
248
- options;
249
- rules;
250
- lexer;
251
- constructor(options) {
252
- this.options = options || _defaults;
253
- }
254
- space(src) {
255
- const cap = this.rules.block.newline.exec(src);
256
- if (cap && cap[0].length > 0) return {
257
- type: "space",
258
- raw: cap[0]
259
- };
260
- }
261
- code(src) {
262
- const cap = this.rules.block.code.exec(src);
263
- if (cap) {
264
- const text = cap[0].replace(/^ {1,4}/gm, "");
265
- return {
266
- type: "code",
267
- raw: cap[0],
268
- codeBlockStyle: "indented",
269
- text: !this.options.pedantic ? rtrim(text, "\n") : text
270
- };
271
- }
272
- }
273
- fences(src) {
274
- const cap = this.rules.block.fences.exec(src);
275
- if (cap) {
276
- const raw = cap[0];
277
- const text = indentCodeCompensation(raw, cap[3] || "");
278
- return {
279
- type: "code",
280
- raw,
281
- lang: cap[2] ? cap[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : cap[2],
282
- text
283
- };
284
- }
285
- }
286
- heading(src) {
287
- const cap = this.rules.block.heading.exec(src);
288
- if (cap) {
289
- let text = cap[2].trim();
290
- if (/#$/.test(text)) {
291
- const trimmed = rtrim(text, "#");
292
- if (this.options.pedantic) text = trimmed.trim();
293
- else if (!trimmed || / $/.test(trimmed)) text = trimmed.trim();
294
- }
295
- return {
296
- type: "heading",
297
- raw: cap[0],
298
- depth: cap[1].length,
299
- text,
300
- tokens: this.lexer.inline(text)
301
- };
302
- }
303
- }
304
- hr(src) {
305
- const cap = this.rules.block.hr.exec(src);
306
- if (cap) return {
307
- type: "hr",
308
- raw: cap[0]
309
- };
310
- }
311
- blockquote(src) {
312
- const cap = this.rules.block.blockquote.exec(src);
313
- if (cap) {
314
- let text = cap[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g, "\n $1");
315
- text = rtrim(text.replace(/^ *>[ \t]?/gm, ""), "\n");
316
- const top = this.lexer.state.top;
317
- this.lexer.state.top = true;
318
- const tokens = this.lexer.blockTokens(text);
319
- this.lexer.state.top = top;
320
- return {
321
- type: "blockquote",
322
- raw: cap[0],
323
- tokens,
324
- text
325
- };
326
- }
327
- }
328
- list(src) {
329
- let cap = this.rules.block.list.exec(src);
330
- if (cap) {
331
- let bull = cap[1].trim();
332
- const isordered = bull.length > 1;
333
- const list = {
334
- type: "list",
335
- raw: "",
336
- ordered: isordered,
337
- start: isordered ? +bull.slice(0, -1) : "",
338
- loose: false,
339
- items: []
340
- };
341
- bull = isordered ? `\\d{1,9}\\${bull.slice(-1)}` : `\\${bull}`;
342
- if (this.options.pedantic) bull = isordered ? bull : "[*+-]";
343
- const itemRegex = new RegExp(`^( {0,3}${bull})((?:[\t ][^\\n]*)?(?:\\n|$))`);
344
- let raw = "";
345
- let itemContents = "";
346
- let endsWithBlankLine = false;
347
- while (src) {
348
- let endEarly = false;
349
- if (!(cap = itemRegex.exec(src))) break;
350
- if (this.rules.block.hr.test(src)) break;
351
- raw = cap[0];
352
- src = src.substring(raw.length);
353
- let line = cap[2].split("\n", 1)[0].replace(/^\t+/, (t) => " ".repeat(3 * t.length));
354
- let nextLine = src.split("\n", 1)[0];
355
- let indent = 0;
356
- if (this.options.pedantic) {
357
- indent = 2;
358
- itemContents = line.trimStart();
359
- } else {
360
- indent = cap[2].search(/[^ ]/);
361
- indent = indent > 4 ? 1 : indent;
362
- itemContents = line.slice(indent);
363
- indent += cap[1].length;
364
- }
365
- let blankLine = false;
366
- if (!line && /^ *$/.test(nextLine)) {
367
- raw += nextLine + "\n";
368
- src = src.substring(nextLine.length + 1);
369
- endEarly = true;
370
- }
371
- if (!endEarly) {
372
- const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`);
373
- const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
374
- const fencesBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\`\`\`|~~~)`);
375
- const headingBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`);
376
- while (src) {
377
- const rawLine = src.split("\n", 1)[0];
378
- nextLine = rawLine;
379
- if (this.options.pedantic) nextLine = nextLine.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ");
380
- if (fencesBeginRegex.test(nextLine)) break;
381
- if (headingBeginRegex.test(nextLine)) break;
382
- if (nextBulletRegex.test(nextLine)) break;
383
- if (hrRegex.test(src)) break;
384
- if (nextLine.search(/[^ ]/) >= indent || !nextLine.trim()) itemContents += "\n" + nextLine.slice(indent);
385
- else {
386
- if (blankLine) break;
387
- if (line.search(/[^ ]/) >= 4) break;
388
- if (fencesBeginRegex.test(line)) break;
389
- if (headingBeginRegex.test(line)) break;
390
- if (hrRegex.test(line)) break;
391
- itemContents += "\n" + nextLine;
392
- }
393
- if (!blankLine && !nextLine.trim()) blankLine = true;
394
- raw += rawLine + "\n";
395
- src = src.substring(rawLine.length + 1);
396
- line = nextLine.slice(indent);
397
- }
398
- }
399
- if (!list.loose) {
400
- if (endsWithBlankLine) list.loose = true;
401
- else if (/\n *\n *$/.test(raw)) endsWithBlankLine = true;
402
- }
403
- let istask = null;
404
- let ischecked;
405
- if (this.options.gfm) {
406
- istask = /^\[[ xX]\] /.exec(itemContents);
407
- if (istask) {
408
- ischecked = istask[0] !== "[ ] ";
409
- itemContents = itemContents.replace(/^\[[ xX]\] +/, "");
410
- }
411
- }
412
- list.items.push({
413
- type: "list_item",
414
- raw,
415
- task: !!istask,
416
- checked: ischecked,
417
- loose: false,
418
- text: itemContents,
419
- tokens: []
420
- });
421
- list.raw += raw;
422
- }
423
- list.items[list.items.length - 1].raw = raw.trimEnd();
424
- list.items[list.items.length - 1].text = itemContents.trimEnd();
425
- list.raw = list.raw.trimEnd();
426
- for (let i = 0; i < list.items.length; i++) {
427
- this.lexer.state.top = false;
428
- list.items[i].tokens = this.lexer.blockTokens(list.items[i].text, []);
429
- if (!list.loose) {
430
- const spacers = list.items[i].tokens.filter((t) => t.type === "space");
431
- list.loose = spacers.length > 0 && spacers.some((t) => /\n.*\n/.test(t.raw));
432
- }
433
- }
434
- if (list.loose) for (let i = 0; i < list.items.length; i++) list.items[i].loose = true;
435
- return list;
436
- }
437
- }
438
- html(src) {
439
- const cap = this.rules.block.html.exec(src);
440
- if (cap) return {
441
- type: "html",
442
- block: true,
443
- raw: cap[0],
444
- pre: cap[1] === "pre" || cap[1] === "script" || cap[1] === "style",
445
- text: cap[0]
446
- };
447
- }
448
- def(src) {
449
- const cap = this.rules.block.def.exec(src);
450
- if (cap) {
451
- const tag = cap[1].toLowerCase().replace(/\s+/g, " ");
452
- const href = cap[2] ? cap[2].replace(/^<(.*)>$/, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "";
453
- const title = cap[3] ? cap[3].substring(1, cap[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : cap[3];
454
- return {
455
- type: "def",
456
- tag,
457
- raw: cap[0],
458
- href,
459
- title
460
- };
461
- }
462
- }
463
- table(src) {
464
- const cap = this.rules.block.table.exec(src);
465
- if (!cap) return;
466
- if (!/[:|]/.test(cap[2])) return;
467
- const headers = splitCells$1(cap[1]);
468
- const aligns = cap[2].replace(/^\||\| *$/g, "").split("|");
469
- const rows = cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, "").split("\n") : [];
470
- const item = {
471
- type: "table",
472
- raw: cap[0],
473
- header: [],
474
- align: [],
475
- rows: []
476
- };
477
- if (headers.length !== aligns.length) return;
478
- for (const align of aligns) if (/^ *-+: *$/.test(align)) item.align.push("right");
479
- else if (/^ *:-+: *$/.test(align)) item.align.push("center");
480
- else if (/^ *:-+ *$/.test(align)) item.align.push("left");
481
- else item.align.push(null);
482
- for (const header of headers) item.header.push({
483
- text: header,
484
- tokens: this.lexer.inline(header)
485
- });
486
- for (const row of rows) item.rows.push(splitCells$1(row, item.header.length).map((cell) => {
487
- return {
488
- text: cell,
489
- tokens: this.lexer.inline(cell)
490
- };
491
- }));
492
- return item;
493
- }
494
- lheading(src) {
495
- const cap = this.rules.block.lheading.exec(src);
496
- if (cap) return {
497
- type: "heading",
498
- raw: cap[0],
499
- depth: cap[2].charAt(0) === "=" ? 1 : 2,
500
- text: cap[1],
501
- tokens: this.lexer.inline(cap[1])
502
- };
503
- }
504
- paragraph(src) {
505
- const cap = this.rules.block.paragraph.exec(src);
506
- if (cap) {
507
- const text = cap[1].charAt(cap[1].length - 1) === "\n" ? cap[1].slice(0, -1) : cap[1];
508
- return {
509
- type: "paragraph",
510
- raw: cap[0],
511
- text,
512
- tokens: this.lexer.inline(text)
513
- };
514
- }
515
- }
516
- text(src) {
517
- const cap = this.rules.block.text.exec(src);
518
- if (cap) return {
519
- type: "text",
520
- raw: cap[0],
521
- text: cap[0],
522
- tokens: this.lexer.inline(cap[0])
523
- };
524
- }
525
- escape(src) {
526
- const cap = this.rules.inline.escape.exec(src);
527
- if (cap) return {
528
- type: "escape",
529
- raw: cap[0],
530
- text: escape$1(cap[1])
531
- };
532
- }
533
- tag(src) {
534
- const cap = this.rules.inline.tag.exec(src);
535
- if (cap) {
536
- if (!this.lexer.state.inLink && /^<a /i.test(cap[0])) this.lexer.state.inLink = true;
537
- else if (this.lexer.state.inLink && /^<\/a>/i.test(cap[0])) this.lexer.state.inLink = false;
538
- if (!this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])) this.lexer.state.inRawBlock = true;
539
- else if (this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])) this.lexer.state.inRawBlock = false;
540
- return {
541
- type: "html",
542
- raw: cap[0],
543
- inLink: this.lexer.state.inLink,
544
- inRawBlock: this.lexer.state.inRawBlock,
545
- block: false,
546
- text: cap[0]
547
- };
548
- }
549
- }
550
- link(src) {
551
- const cap = this.rules.inline.link.exec(src);
552
- if (cap) {
553
- const trimmedUrl = cap[2].trim();
554
- if (!this.options.pedantic && /^</.test(trimmedUrl)) {
555
- if (!/>$/.test(trimmedUrl)) return;
556
- const rtrimSlash = rtrim(trimmedUrl.slice(0, -1), "\\");
557
- if ((trimmedUrl.length - rtrimSlash.length) % 2 === 0) return;
558
- } else {
559
- const lastParenIndex = findClosingBracket(cap[2], "()");
560
- if (lastParenIndex > -1) {
561
- const linkLen = (cap[0].indexOf("!") === 0 ? 5 : 4) + cap[1].length + lastParenIndex;
562
- cap[2] = cap[2].substring(0, lastParenIndex);
563
- cap[0] = cap[0].substring(0, linkLen).trim();
564
- cap[3] = "";
565
- }
566
- }
567
- let href = cap[2];
568
- let title = "";
569
- if (this.options.pedantic) {
570
- const link = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href);
571
- if (link) {
572
- href = link[1];
573
- title = link[3];
574
- }
575
- } else title = cap[3] ? cap[3].slice(1, -1) : "";
576
- href = href.trim();
577
- if (/^</.test(href)) if (this.options.pedantic && !/>$/.test(trimmedUrl)) href = href.slice(1);
578
- else href = href.slice(1, -1);
579
- return outputLink(cap, {
580
- href: href ? href.replace(this.rules.inline.anyPunctuation, "$1") : href,
581
- title: title ? title.replace(this.rules.inline.anyPunctuation, "$1") : title
582
- }, cap[0], this.lexer);
583
- }
584
- }
585
- reflink(src, links) {
586
- let cap;
587
- if ((cap = this.rules.inline.reflink.exec(src)) || (cap = this.rules.inline.nolink.exec(src))) {
588
- const link = links[(cap[2] || cap[1]).replace(/\s+/g, " ").toLowerCase()];
589
- if (!link) {
590
- const text = cap[0].charAt(0);
591
- return {
592
- type: "text",
593
- raw: text,
594
- text
595
- };
596
- }
597
- return outputLink(cap, link, cap[0], this.lexer);
598
- }
599
- }
600
- emStrong(src, maskedSrc, prevChar = "") {
601
- let match = this.rules.inline.emStrongLDelim.exec(src);
602
- if (!match) return;
603
- if (match[3] && prevChar.match(/[\p{L}\p{N}]/u)) return;
604
- if (!(match[1] || match[2] || "") || !prevChar || this.rules.inline.punctuation.exec(prevChar)) {
605
- const lLength = [...match[0]].length - 1;
606
- let rDelim;
607
- let rLength;
608
- let delimTotal = lLength;
609
- let midDelimTotal = 0;
610
- const endReg = match[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
611
- endReg.lastIndex = 0;
612
- maskedSrc = maskedSrc.slice(-1 * src.length + lLength);
613
- while ((match = endReg.exec(maskedSrc)) != null) {
614
- rDelim = match[1] || match[2] || match[3] || match[4] || match[5] || match[6];
615
- if (!rDelim) continue;
616
- rLength = [...rDelim].length;
617
- if (match[3] || match[4]) {
618
- delimTotal += rLength;
619
- continue;
620
- } else if (match[5] || match[6]) {
621
- if (lLength % 3 && !((lLength + rLength) % 3)) {
622
- midDelimTotal += rLength;
623
- continue;
624
- }
625
- }
626
- delimTotal -= rLength;
627
- if (delimTotal > 0) continue;
628
- rLength = Math.min(rLength, rLength + delimTotal + midDelimTotal);
629
- const lastCharLength = [...match[0]][0].length;
630
- const raw = src.slice(0, lLength + match.index + lastCharLength + rLength);
631
- if (Math.min(lLength, rLength) % 2) {
632
- const text = raw.slice(1, -1);
633
- return {
634
- type: "em",
635
- raw,
636
- text,
637
- tokens: this.lexer.inlineTokens(text)
638
- };
639
- }
640
- const text = raw.slice(2, -2);
641
- return {
642
- type: "strong",
643
- raw,
644
- text,
645
- tokens: this.lexer.inlineTokens(text)
646
- };
647
- }
648
- }
649
- }
650
- codespan(src) {
651
- const cap = this.rules.inline.code.exec(src);
652
- if (cap) {
653
- let text = cap[2].replace(/\n/g, " ");
654
- const hasNonSpaceChars = /[^ ]/.test(text);
655
- const hasSpaceCharsOnBothEnds = /^ /.test(text) && / $/.test(text);
656
- if (hasNonSpaceChars && hasSpaceCharsOnBothEnds) text = text.substring(1, text.length - 1);
657
- text = escape$1(text, true);
658
- return {
659
- type: "codespan",
660
- raw: cap[0],
661
- text
662
- };
663
- }
664
- }
665
- br(src) {
666
- const cap = this.rules.inline.br.exec(src);
667
- if (cap) return {
668
- type: "br",
669
- raw: cap[0]
670
- };
671
- }
672
- del(src) {
673
- const cap = this.rules.inline.del.exec(src);
674
- if (cap) return {
675
- type: "del",
676
- raw: cap[0],
677
- text: cap[2],
678
- tokens: this.lexer.inlineTokens(cap[2])
679
- };
680
- }
681
- autolink(src) {
682
- const cap = this.rules.inline.autolink.exec(src);
683
- if (cap) {
684
- let text;
685
- let href;
686
- if (cap[2] === "@") {
687
- text = escape$1(cap[1]);
688
- href = "mailto:" + text;
689
- } else {
690
- text = escape$1(cap[1]);
691
- href = text;
692
- }
693
- return {
694
- type: "link",
695
- raw: cap[0],
696
- text,
697
- href,
698
- tokens: [{
699
- type: "text",
700
- raw: text,
701
- text
702
- }]
703
- };
704
- }
705
- }
706
- url(src) {
707
- let cap;
708
- if (cap = this.rules.inline.url.exec(src)) {
709
- let text;
710
- let href;
711
- if (cap[2] === "@") {
712
- text = escape$1(cap[0]);
713
- href = "mailto:" + text;
714
- } else {
715
- let prevCapZero;
716
- do {
717
- prevCapZero = cap[0];
718
- cap[0] = this.rules.inline._backpedal.exec(cap[0])?.[0] ?? "";
719
- } while (prevCapZero !== cap[0]);
720
- text = escape$1(cap[0]);
721
- if (cap[1] === "www.") href = "http://" + cap[0];
722
- else href = cap[0];
723
- }
724
- return {
725
- type: "link",
726
- raw: cap[0],
727
- text,
728
- href,
729
- tokens: [{
730
- type: "text",
731
- raw: text,
732
- text
733
- }]
734
- };
735
- }
736
- }
737
- inlineText(src) {
738
- const cap = this.rules.inline.text.exec(src);
739
- if (cap) {
740
- let text;
741
- if (this.lexer.state.inRawBlock) text = cap[0];
742
- else text = escape$1(cap[0]);
743
- return {
744
- type: "text",
745
- raw: cap[0],
746
- text
747
- };
748
- }
749
- }
750
- };
751
- /**
752
- * Block-Level Grammar
753
- */
754
- var newline = /^(?: *(?:\n|$))+/;
755
- var blockCode = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/;
756
- var fences = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
757
- var hr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
758
- var heading = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
759
- var bullet = /(?:[*+-]|\d{1,9}[.)])/;
760
- var lheading = edit(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, bullet).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex();
761
- var _paragraph = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
762
- var blockText = /^[^\n]+/;
763
- var _blockLabel = /(?!\s*\])(?:\\.|[^\[\]\\])+/;
764
- var def = edit(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", _blockLabel).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
765
- var list = edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bullet).getRegex();
766
- var _tag = "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";
767
- var _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
768
- var html = edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", _comment).replace("tag", _tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
769
- var paragraph = edit(_paragraph).replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
770
- /**
771
- * Normal Block Grammar
772
- */
773
- var blockNormal = {
774
- blockquote: edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", paragraph).getRegex(),
775
- code: blockCode,
776
- def,
777
- fences,
778
- heading,
779
- hr,
780
- html,
781
- lheading,
782
- list,
783
- newline,
784
- paragraph,
785
- table: noopTest,
786
- text: blockText
787
- };
788
- /**
789
- * GFM Block Grammar
790
- */
791
- var gfmTable = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
792
- var blockGfm = {
793
- ...blockNormal,
794
- table: gfmTable,
795
- paragraph: edit(_paragraph).replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", gfmTable).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex()
796
- };
797
- /**
798
- * Pedantic grammar (original John Gruber's loose markdown specification)
799
- */
800
- var blockPedantic = {
801
- ...blockNormal,
802
- html: edit("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", _comment).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(),
803
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
804
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
805
- fences: noopTest,
806
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
807
- paragraph: edit(_paragraph).replace("hr", hr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", lheading).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
808
- };
809
- /**
810
- * Inline-Level Grammar
811
- */
812
- var escape = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
813
- var inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
814
- var br = /^( {2,}|\\)\n(?!\s*$)/;
815
- var inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
816
- var _punctuation = "\\p{P}\\p{S}";
817
- var punctuation = edit(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, _punctuation).getRegex();
818
- var blockSkip = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;
819
- var emStrongLDelim = edit(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, _punctuation).getRegex();
820
- var emStrongRDelimAst = edit("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, _punctuation).getRegex();
821
- var emStrongRDelimUnd = edit("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, _punctuation).getRegex();
822
- var anyPunctuation = edit(/\\([punct])/, "gu").replace(/punct/g, _punctuation).getRegex();
823
- var autolink = edit(/^<(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();
824
- var _inlineComment = edit(_comment).replace("(?:-->|$)", "-->").getRegex();
825
- var tag = edit("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", _inlineComment).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
826
- var _inlineLabel = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;
827
- var link = edit(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", _inlineLabel).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
828
- var reflink = edit(/^!?\[(label)\]\[(ref)\]/).replace("label", _inlineLabel).replace("ref", _blockLabel).getRegex();
829
- var nolink = edit(/^!?\[(ref)\](?:\[\])?/).replace("ref", _blockLabel).getRegex();
830
- /**
831
- * Normal Inline Grammar
832
- */
833
- var inlineNormal = {
834
- _backpedal: noopTest,
835
- anyPunctuation,
836
- autolink,
837
- blockSkip,
838
- br,
839
- code: inlineCode,
840
- del: noopTest,
841
- emStrongLDelim,
842
- emStrongRDelimAst,
843
- emStrongRDelimUnd,
844
- escape,
845
- link,
846
- nolink,
847
- punctuation,
848
- reflink,
849
- reflinkSearch: edit("reflink|nolink(?!\\()", "g").replace("reflink", reflink).replace("nolink", nolink).getRegex(),
850
- tag,
851
- text: inlineText,
852
- url: noopTest
853
- };
854
- /**
855
- * Pedantic Inline Grammar
856
- */
857
- var inlinePedantic = {
858
- ...inlineNormal,
859
- link: edit(/^!?\[(label)\]\((.*?)\)/).replace("label", _inlineLabel).getRegex(),
860
- reflink: edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _inlineLabel).getRegex()
861
- };
862
- /**
863
- * GFM Inline Grammar
864
- */
865
- var inlineGfm = {
866
- ...inlineNormal,
867
- escape: edit(escape).replace("])", "~|])").getRegex(),
868
- url: edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
869
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
870
- del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
871
- text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
872
- };
873
- /**
874
- * GFM + Line Breaks Inline Grammar
875
- */
876
- var inlineBreaks = {
877
- ...inlineGfm,
878
- br: edit(br).replace("{2,}", "*").getRegex(),
879
- text: edit(inlineGfm.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
880
- };
881
- /**
882
- * exports
883
- */
884
- var block = {
885
- normal: blockNormal,
886
- gfm: blockGfm,
887
- pedantic: blockPedantic
888
- };
889
- var inline = {
890
- normal: inlineNormal,
891
- gfm: inlineGfm,
892
- breaks: inlineBreaks,
893
- pedantic: inlinePedantic
894
- };
895
- /**
896
- * Block Lexer
897
- */
898
- var _Lexer = class _Lexer {
899
- tokens;
900
- options;
901
- state;
902
- tokenizer;
903
- inlineQueue;
904
- constructor(options) {
905
- this.tokens = [];
906
- this.tokens.links = Object.create(null);
907
- this.options = options || _defaults;
908
- this.options.tokenizer = this.options.tokenizer || new _Tokenizer();
909
- this.tokenizer = this.options.tokenizer;
910
- this.tokenizer.options = this.options;
911
- this.tokenizer.lexer = this;
912
- this.inlineQueue = [];
913
- this.state = {
914
- inLink: false,
915
- inRawBlock: false,
916
- top: true
917
- };
918
- const rules = {
919
- block: block.normal,
920
- inline: inline.normal
921
- };
922
- if (this.options.pedantic) {
923
- rules.block = block.pedantic;
924
- rules.inline = inline.pedantic;
925
- } else if (this.options.gfm) {
926
- rules.block = block.gfm;
927
- if (this.options.breaks) rules.inline = inline.breaks;
928
- else rules.inline = inline.gfm;
929
- }
930
- this.tokenizer.rules = rules;
931
- }
932
- /**
933
- * Expose Rules
934
- */
935
- static get rules() {
936
- return {
937
- block,
938
- inline
939
- };
940
- }
941
- /**
942
- * Static Lex Method
943
- */
944
- static lex(src, options) {
945
- return new _Lexer(options).lex(src);
946
- }
947
- /**
948
- * Static Lex Inline Method
949
- */
950
- static lexInline(src, options) {
951
- return new _Lexer(options).inlineTokens(src);
952
- }
953
- /**
954
- * Preprocessing
955
- */
956
- lex(src) {
957
- src = src.replace(/\r\n|\r/g, "\n");
958
- this.blockTokens(src, this.tokens);
959
- for (let i = 0; i < this.inlineQueue.length; i++) {
960
- const next = this.inlineQueue[i];
961
- this.inlineTokens(next.src, next.tokens);
962
- }
963
- this.inlineQueue = [];
964
- return this.tokens;
965
- }
966
- blockTokens(src, tokens = []) {
967
- if (this.options.pedantic) src = src.replace(/\t/g, " ").replace(/^ +$/gm, "");
968
- else src = src.replace(/^( *)(\t+)/gm, (_, leading, tabs) => {
969
- return leading + " ".repeat(tabs.length);
970
- });
971
- let token;
972
- let lastToken;
973
- let cutSrc;
974
- let lastParagraphClipped;
975
- while (src) {
976
- if (this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((extTokenizer) => {
977
- if (token = extTokenizer.call({ lexer: this }, src, tokens)) {
978
- src = src.substring(token.raw.length);
979
- tokens.push(token);
980
- return true;
981
- }
982
- return false;
983
- })) continue;
984
- if (token = this.tokenizer.space(src)) {
985
- src = src.substring(token.raw.length);
986
- if (token.raw.length === 1 && tokens.length > 0) tokens[tokens.length - 1].raw += "\n";
987
- else tokens.push(token);
988
- continue;
989
- }
990
- if (token = this.tokenizer.code(src)) {
991
- src = src.substring(token.raw.length);
992
- lastToken = tokens[tokens.length - 1];
993
- if (lastToken && (lastToken.type === "paragraph" || lastToken.type === "text")) {
994
- lastToken.raw += "\n" + token.raw;
995
- lastToken.text += "\n" + token.text;
996
- this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
997
- } else tokens.push(token);
998
- continue;
999
- }
1000
- if (token = this.tokenizer.fences(src)) {
1001
- src = src.substring(token.raw.length);
1002
- tokens.push(token);
1003
- continue;
1004
- }
1005
- if (token = this.tokenizer.heading(src)) {
1006
- src = src.substring(token.raw.length);
1007
- tokens.push(token);
1008
- continue;
1009
- }
1010
- if (token = this.tokenizer.hr(src)) {
1011
- src = src.substring(token.raw.length);
1012
- tokens.push(token);
1013
- continue;
1014
- }
1015
- if (token = this.tokenizer.blockquote(src)) {
1016
- src = src.substring(token.raw.length);
1017
- tokens.push(token);
1018
- continue;
1019
- }
1020
- if (token = this.tokenizer.list(src)) {
1021
- src = src.substring(token.raw.length);
1022
- tokens.push(token);
1023
- continue;
1024
- }
1025
- if (token = this.tokenizer.html(src)) {
1026
- src = src.substring(token.raw.length);
1027
- tokens.push(token);
1028
- continue;
1029
- }
1030
- if (token = this.tokenizer.def(src)) {
1031
- src = src.substring(token.raw.length);
1032
- lastToken = tokens[tokens.length - 1];
1033
- if (lastToken && (lastToken.type === "paragraph" || lastToken.type === "text")) {
1034
- lastToken.raw += "\n" + token.raw;
1035
- lastToken.text += "\n" + token.raw;
1036
- this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
1037
- } else if (!this.tokens.links[token.tag]) this.tokens.links[token.tag] = {
1038
- href: token.href,
1039
- title: token.title
1040
- };
1041
- continue;
1042
- }
1043
- if (token = this.tokenizer.table(src)) {
1044
- src = src.substring(token.raw.length);
1045
- tokens.push(token);
1046
- continue;
1047
- }
1048
- if (token = this.tokenizer.lheading(src)) {
1049
- src = src.substring(token.raw.length);
1050
- tokens.push(token);
1051
- continue;
1052
- }
1053
- cutSrc = src;
1054
- if (this.options.extensions && this.options.extensions.startBlock) {
1055
- let startIndex = Infinity;
1056
- const tempSrc = src.slice(1);
1057
- let tempStart;
1058
- this.options.extensions.startBlock.forEach((getStartIndex) => {
1059
- tempStart = getStartIndex.call({ lexer: this }, tempSrc);
1060
- if (typeof tempStart === "number" && tempStart >= 0) startIndex = Math.min(startIndex, tempStart);
1061
- });
1062
- if (startIndex < Infinity && startIndex >= 0) cutSrc = src.substring(0, startIndex + 1);
1063
- }
1064
- if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) {
1065
- lastToken = tokens[tokens.length - 1];
1066
- if (lastParagraphClipped && lastToken.type === "paragraph") {
1067
- lastToken.raw += "\n" + token.raw;
1068
- lastToken.text += "\n" + token.text;
1069
- this.inlineQueue.pop();
1070
- this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
1071
- } else tokens.push(token);
1072
- lastParagraphClipped = cutSrc.length !== src.length;
1073
- src = src.substring(token.raw.length);
1074
- continue;
1075
- }
1076
- if (token = this.tokenizer.text(src)) {
1077
- src = src.substring(token.raw.length);
1078
- lastToken = tokens[tokens.length - 1];
1079
- if (lastToken && lastToken.type === "text") {
1080
- lastToken.raw += "\n" + token.raw;
1081
- lastToken.text += "\n" + token.text;
1082
- this.inlineQueue.pop();
1083
- this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text;
1084
- } else tokens.push(token);
1085
- continue;
1086
- }
1087
- if (src) {
1088
- const errMsg = "Infinite loop on byte: " + src.charCodeAt(0);
1089
- if (this.options.silent) {
1090
- console.error(errMsg);
1091
- break;
1092
- } else throw new Error(errMsg);
1093
- }
1094
- }
1095
- this.state.top = true;
1096
- return tokens;
1097
- }
1098
- inline(src, tokens = []) {
1099
- this.inlineQueue.push({
1100
- src,
1101
- tokens
1102
- });
1103
- return tokens;
1104
- }
1105
- /**
1106
- * Lexing/Compiling
1107
- */
1108
- inlineTokens(src, tokens = []) {
1109
- let token;
1110
- let lastToken;
1111
- let cutSrc;
1112
- let maskedSrc = src;
1113
- let match;
1114
- let keepPrevChar;
1115
- let prevChar;
1116
- if (this.tokens.links) {
1117
- const links = Object.keys(this.tokens.links);
1118
- if (links.length > 0) {
1119
- while ((match = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) if (links.includes(match[0].slice(match[0].lastIndexOf("[") + 1, -1))) maskedSrc = maskedSrc.slice(0, match.index) + "[" + "a".repeat(match[0].length - 2) + "]" + maskedSrc.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex);
1120
- }
1121
- }
1122
- while ((match = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) maskedSrc = maskedSrc.slice(0, match.index) + "[" + "a".repeat(match[0].length - 2) + "]" + maskedSrc.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
1123
- while ((match = this.tokenizer.rules.inline.anyPunctuation.exec(maskedSrc)) != null) maskedSrc = maskedSrc.slice(0, match.index) + "++" + maskedSrc.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
1124
- while (src) {
1125
- if (!keepPrevChar) prevChar = "";
1126
- keepPrevChar = false;
1127
- if (this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((extTokenizer) => {
1128
- if (token = extTokenizer.call({ lexer: this }, src, tokens)) {
1129
- src = src.substring(token.raw.length);
1130
- tokens.push(token);
1131
- return true;
1132
- }
1133
- return false;
1134
- })) continue;
1135
- if (token = this.tokenizer.escape(src)) {
1136
- src = src.substring(token.raw.length);
1137
- tokens.push(token);
1138
- continue;
1139
- }
1140
- if (token = this.tokenizer.tag(src)) {
1141
- src = src.substring(token.raw.length);
1142
- lastToken = tokens[tokens.length - 1];
1143
- if (lastToken && token.type === "text" && lastToken.type === "text") {
1144
- lastToken.raw += token.raw;
1145
- lastToken.text += token.text;
1146
- } else tokens.push(token);
1147
- continue;
1148
- }
1149
- if (token = this.tokenizer.link(src)) {
1150
- src = src.substring(token.raw.length);
1151
- tokens.push(token);
1152
- continue;
1153
- }
1154
- if (token = this.tokenizer.reflink(src, this.tokens.links)) {
1155
- src = src.substring(token.raw.length);
1156
- lastToken = tokens[tokens.length - 1];
1157
- if (lastToken && token.type === "text" && lastToken.type === "text") {
1158
- lastToken.raw += token.raw;
1159
- lastToken.text += token.text;
1160
- } else tokens.push(token);
1161
- continue;
1162
- }
1163
- if (token = this.tokenizer.emStrong(src, maskedSrc, prevChar)) {
1164
- src = src.substring(token.raw.length);
1165
- tokens.push(token);
1166
- continue;
1167
- }
1168
- if (token = this.tokenizer.codespan(src)) {
1169
- src = src.substring(token.raw.length);
1170
- tokens.push(token);
1171
- continue;
1172
- }
1173
- if (token = this.tokenizer.br(src)) {
1174
- src = src.substring(token.raw.length);
1175
- tokens.push(token);
1176
- continue;
1177
- }
1178
- if (token = this.tokenizer.del(src)) {
1179
- src = src.substring(token.raw.length);
1180
- tokens.push(token);
1181
- continue;
1182
- }
1183
- if (token = this.tokenizer.autolink(src)) {
1184
- src = src.substring(token.raw.length);
1185
- tokens.push(token);
1186
- continue;
1187
- }
1188
- if (!this.state.inLink && (token = this.tokenizer.url(src))) {
1189
- src = src.substring(token.raw.length);
1190
- tokens.push(token);
1191
- continue;
1192
- }
1193
- cutSrc = src;
1194
- if (this.options.extensions && this.options.extensions.startInline) {
1195
- let startIndex = Infinity;
1196
- const tempSrc = src.slice(1);
1197
- let tempStart;
1198
- this.options.extensions.startInline.forEach((getStartIndex) => {
1199
- tempStart = getStartIndex.call({ lexer: this }, tempSrc);
1200
- if (typeof tempStart === "number" && tempStart >= 0) startIndex = Math.min(startIndex, tempStart);
1201
- });
1202
- if (startIndex < Infinity && startIndex >= 0) cutSrc = src.substring(0, startIndex + 1);
1203
- }
1204
- if (token = this.tokenizer.inlineText(cutSrc)) {
1205
- src = src.substring(token.raw.length);
1206
- if (token.raw.slice(-1) !== "_") prevChar = token.raw.slice(-1);
1207
- keepPrevChar = true;
1208
- lastToken = tokens[tokens.length - 1];
1209
- if (lastToken && lastToken.type === "text") {
1210
- lastToken.raw += token.raw;
1211
- lastToken.text += token.text;
1212
- } else tokens.push(token);
1213
- continue;
1214
- }
1215
- if (src) {
1216
- const errMsg = "Infinite loop on byte: " + src.charCodeAt(0);
1217
- if (this.options.silent) {
1218
- console.error(errMsg);
1219
- break;
1220
- } else throw new Error(errMsg);
1221
- }
1222
- }
1223
- return tokens;
1224
- }
1225
- };
1226
- /**
1227
- * Renderer
1228
- */
1229
- var _Renderer = class {
1230
- options;
1231
- constructor(options) {
1232
- this.options = options || _defaults;
1233
- }
1234
- code(code, infostring, escaped) {
1235
- const lang = (infostring || "").match(/^\S*/)?.[0];
1236
- code = code.replace(/\n$/, "") + "\n";
1237
- if (!lang) return "<pre><code>" + (escaped ? code : escape$1(code, true)) + "</code></pre>\n";
1238
- return "<pre><code class=\"language-" + escape$1(lang) + "\">" + (escaped ? code : escape$1(code, true)) + "</code></pre>\n";
1239
- }
1240
- blockquote(quote) {
1241
- return `<blockquote>\n${quote}</blockquote>\n`;
1242
- }
1243
- html(html, block) {
1244
- return html;
1245
- }
1246
- heading(text, level, raw) {
1247
- return `<h${level}>${text}</h${level}>\n`;
1248
- }
1249
- hr() {
1250
- return "<hr>\n";
1251
- }
1252
- list(body, ordered, start) {
1253
- const type = ordered ? "ol" : "ul";
1254
- const startatt = ordered && start !== 1 ? " start=\"" + start + "\"" : "";
1255
- return "<" + type + startatt + ">\n" + body + "</" + type + ">\n";
1256
- }
1257
- listitem(text, task, checked) {
1258
- return `<li>${text}</li>\n`;
1259
- }
1260
- checkbox(checked) {
1261
- return "<input " + (checked ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
1262
- }
1263
- paragraph(text) {
1264
- return `<p>${text}</p>\n`;
1265
- }
1266
- table(header, body) {
1267
- if (body) body = `<tbody>${body}</tbody>`;
1268
- return "<table>\n<thead>\n" + header + "</thead>\n" + body + "</table>\n";
1269
- }
1270
- tablerow(content) {
1271
- return `<tr>\n${content}</tr>\n`;
1272
- }
1273
- tablecell(content, flags) {
1274
- const type = flags.header ? "th" : "td";
1275
- return (flags.align ? `<${type} align="${flags.align}">` : `<${type}>`) + content + `</${type}>\n`;
1276
- }
1277
- /**
1278
- * span level renderer
1279
- */
1280
- strong(text) {
1281
- return `<strong>${text}</strong>`;
1282
- }
1283
- em(text) {
1284
- return `<em>${text}</em>`;
1285
- }
1286
- codespan(text) {
1287
- return `<code>${text}</code>`;
1288
- }
1289
- br() {
1290
- return "<br>";
1291
- }
1292
- del(text) {
1293
- return `<del>${text}</del>`;
1294
- }
1295
- link(href, title, text) {
1296
- const cleanHref = cleanUrl(href);
1297
- if (cleanHref === null) return text;
1298
- href = cleanHref;
1299
- let out = "<a href=\"" + href + "\"";
1300
- if (title) out += " title=\"" + title + "\"";
1301
- out += ">" + text + "</a>";
1302
- return out;
1303
- }
1304
- image(href, title, text) {
1305
- const cleanHref = cleanUrl(href);
1306
- if (cleanHref === null) return text;
1307
- href = cleanHref;
1308
- let out = `<img src="${href}" alt="${text}"`;
1309
- if (title) out += ` title="${title}"`;
1310
- out += ">";
1311
- return out;
1312
- }
1313
- text(text) {
1314
- return text;
1315
- }
1316
- };
1317
- /**
1318
- * TextRenderer
1319
- * returns only the textual part of the token
1320
- */
1321
- var _TextRenderer = class {
1322
- strong(text) {
1323
- return text;
1324
- }
1325
- em(text) {
1326
- return text;
1327
- }
1328
- codespan(text) {
1329
- return text;
1330
- }
1331
- del(text) {
1332
- return text;
1333
- }
1334
- html(text) {
1335
- return text;
1336
- }
1337
- text(text) {
1338
- return text;
1339
- }
1340
- link(href, title, text) {
1341
- return "" + text;
1342
- }
1343
- image(href, title, text) {
1344
- return "" + text;
1345
- }
1346
- br() {
1347
- return "";
1348
- }
1349
- };
1350
- /**
1351
- * Parsing & Compiling
1352
- */
1353
- var _Parser = class _Parser {
1354
- options;
1355
- renderer;
1356
- textRenderer;
1357
- constructor(options) {
1358
- this.options = options || _defaults;
1359
- this.options.renderer = this.options.renderer || new _Renderer();
1360
- this.renderer = this.options.renderer;
1361
- this.renderer.options = this.options;
1362
- this.textRenderer = new _TextRenderer();
1363
- }
1364
- /**
1365
- * Static Parse Method
1366
- */
1367
- static parse(tokens, options) {
1368
- return new _Parser(options).parse(tokens);
1369
- }
1370
- /**
1371
- * Static Parse Inline Method
1372
- */
1373
- static parseInline(tokens, options) {
1374
- return new _Parser(options).parseInline(tokens);
1375
- }
1376
- /**
1377
- * Parse Loop
1378
- */
1379
- parse(tokens, top = true) {
1380
- let out = "";
1381
- for (let i = 0; i < tokens.length; i++) {
1382
- const token = tokens[i];
1383
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) {
1384
- const genericToken = token;
1385
- const ret = this.options.extensions.renderers[genericToken.type].call({ parser: this }, genericToken);
1386
- if (ret !== false || ![
1387
- "space",
1388
- "hr",
1389
- "heading",
1390
- "code",
1391
- "table",
1392
- "blockquote",
1393
- "list",
1394
- "html",
1395
- "paragraph",
1396
- "text"
1397
- ].includes(genericToken.type)) {
1398
- out += ret || "";
1399
- continue;
1400
- }
1401
- }
1402
- switch (token.type) {
1403
- case "space": continue;
1404
- case "hr":
1405
- out += this.renderer.hr();
1406
- continue;
1407
- case "heading": {
1408
- const headingToken = token;
1409
- out += this.renderer.heading(this.parseInline(headingToken.tokens), headingToken.depth, unescape(this.parseInline(headingToken.tokens, this.textRenderer)));
1410
- continue;
1411
- }
1412
- case "code": {
1413
- const codeToken = token;
1414
- out += this.renderer.code(codeToken.text, codeToken.lang, !!codeToken.escaped);
1415
- continue;
1416
- }
1417
- case "table": {
1418
- const tableToken = token;
1419
- let header = "";
1420
- let cell = "";
1421
- for (let j = 0; j < tableToken.header.length; j++) cell += this.renderer.tablecell(this.parseInline(tableToken.header[j].tokens), {
1422
- header: true,
1423
- align: tableToken.align[j]
1424
- });
1425
- header += this.renderer.tablerow(cell);
1426
- let body = "";
1427
- for (let j = 0; j < tableToken.rows.length; j++) {
1428
- const row = tableToken.rows[j];
1429
- cell = "";
1430
- for (let k = 0; k < row.length; k++) cell += this.renderer.tablecell(this.parseInline(row[k].tokens), {
1431
- header: false,
1432
- align: tableToken.align[k]
1433
- });
1434
- body += this.renderer.tablerow(cell);
1435
- }
1436
- out += this.renderer.table(header, body);
1437
- continue;
1438
- }
1439
- case "blockquote": {
1440
- const blockquoteToken = token;
1441
- const body = this.parse(blockquoteToken.tokens);
1442
- out += this.renderer.blockquote(body);
1443
- continue;
1444
- }
1445
- case "list": {
1446
- const listToken = token;
1447
- const ordered = listToken.ordered;
1448
- const start = listToken.start;
1449
- const loose = listToken.loose;
1450
- let body = "";
1451
- for (let j = 0; j < listToken.items.length; j++) {
1452
- const item = listToken.items[j];
1453
- const checked = item.checked;
1454
- const task = item.task;
1455
- let itemBody = "";
1456
- if (item.task) {
1457
- const checkbox = this.renderer.checkbox(!!checked);
1458
- if (loose) if (item.tokens.length > 0 && item.tokens[0].type === "paragraph") {
1459
- item.tokens[0].text = checkbox + " " + item.tokens[0].text;
1460
- if (item.tokens[0].tokens && item.tokens[0].tokens.length > 0 && item.tokens[0].tokens[0].type === "text") item.tokens[0].tokens[0].text = checkbox + " " + item.tokens[0].tokens[0].text;
1461
- } else item.tokens.unshift({
1462
- type: "text",
1463
- text: checkbox + " "
1464
- });
1465
- else itemBody += checkbox + " ";
1466
- }
1467
- itemBody += this.parse(item.tokens, loose);
1468
- body += this.renderer.listitem(itemBody, task, !!checked);
1469
- }
1470
- out += this.renderer.list(body, ordered, start);
1471
- continue;
1472
- }
1473
- case "html": {
1474
- const htmlToken = token;
1475
- out += this.renderer.html(htmlToken.text, htmlToken.block);
1476
- continue;
1477
- }
1478
- case "paragraph": {
1479
- const paragraphToken = token;
1480
- out += this.renderer.paragraph(this.parseInline(paragraphToken.tokens));
1481
- continue;
1482
- }
1483
- case "text": {
1484
- let textToken = token;
1485
- let body = textToken.tokens ? this.parseInline(textToken.tokens) : textToken.text;
1486
- while (i + 1 < tokens.length && tokens[i + 1].type === "text") {
1487
- textToken = tokens[++i];
1488
- body += "\n" + (textToken.tokens ? this.parseInline(textToken.tokens) : textToken.text);
1489
- }
1490
- out += top ? this.renderer.paragraph(body) : body;
1491
- continue;
1492
- }
1493
- default: {
1494
- const errMsg = "Token with \"" + token.type + "\" type was not found.";
1495
- if (this.options.silent) {
1496
- console.error(errMsg);
1497
- return "";
1498
- } else throw new Error(errMsg);
1499
- }
1500
- }
1501
- }
1502
- return out;
1503
- }
1504
- /**
1505
- * Parse Inline Tokens
1506
- */
1507
- parseInline(tokens, renderer) {
1508
- renderer = renderer || this.renderer;
1509
- let out = "";
1510
- for (let i = 0; i < tokens.length; i++) {
1511
- const token = tokens[i];
1512
- if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) {
1513
- const ret = this.options.extensions.renderers[token.type].call({ parser: this }, token);
1514
- if (ret !== false || ![
1515
- "escape",
1516
- "html",
1517
- "link",
1518
- "image",
1519
- "strong",
1520
- "em",
1521
- "codespan",
1522
- "br",
1523
- "del",
1524
- "text"
1525
- ].includes(token.type)) {
1526
- out += ret || "";
1527
- continue;
1528
- }
1529
- }
1530
- switch (token.type) {
1531
- case "escape": {
1532
- const escapeToken = token;
1533
- out += renderer.text(escapeToken.text);
1534
- break;
1535
- }
1536
- case "html": {
1537
- const tagToken = token;
1538
- out += renderer.html(tagToken.text);
1539
- break;
1540
- }
1541
- case "link": {
1542
- const linkToken = token;
1543
- out += renderer.link(linkToken.href, linkToken.title, this.parseInline(linkToken.tokens, renderer));
1544
- break;
1545
- }
1546
- case "image": {
1547
- const imageToken = token;
1548
- out += renderer.image(imageToken.href, imageToken.title, imageToken.text);
1549
- break;
1550
- }
1551
- case "strong": {
1552
- const strongToken = token;
1553
- out += renderer.strong(this.parseInline(strongToken.tokens, renderer));
1554
- break;
1555
- }
1556
- case "em": {
1557
- const emToken = token;
1558
- out += renderer.em(this.parseInline(emToken.tokens, renderer));
1559
- break;
1560
- }
1561
- case "codespan": {
1562
- const codespanToken = token;
1563
- out += renderer.codespan(codespanToken.text);
1564
- break;
1565
- }
1566
- case "br":
1567
- out += renderer.br();
1568
- break;
1569
- case "del": {
1570
- const delToken = token;
1571
- out += renderer.del(this.parseInline(delToken.tokens, renderer));
1572
- break;
1573
- }
1574
- case "text": {
1575
- const textToken = token;
1576
- out += renderer.text(textToken.text);
1577
- break;
1578
- }
1579
- default: {
1580
- const errMsg = "Token with \"" + token.type + "\" type was not found.";
1581
- if (this.options.silent) {
1582
- console.error(errMsg);
1583
- return "";
1584
- } else throw new Error(errMsg);
1585
- }
1586
- }
1587
- }
1588
- return out;
1589
- }
1590
- };
1591
- var _Hooks = class {
1592
- options;
1593
- constructor(options) {
1594
- this.options = options || _defaults;
1595
- }
1596
- static passThroughHooks = new Set([
1597
- "preprocess",
1598
- "postprocess",
1599
- "processAllTokens"
1600
- ]);
1601
- /**
1602
- * Process markdown before marked
1603
- */
1604
- preprocess(markdown) {
1605
- return markdown;
1606
- }
1607
- /**
1608
- * Process HTML after marked is finished
1609
- */
1610
- postprocess(html) {
1611
- return html;
1612
- }
1613
- /**
1614
- * Process all tokens before walk tokens
1615
- */
1616
- processAllTokens(tokens) {
1617
- return tokens;
1618
- }
1619
- };
1620
- var Marked = class {
1621
- defaults = _getDefaults();
1622
- options = this.setOptions;
1623
- parse = this.#parseMarkdown(_Lexer.lex, _Parser.parse);
1624
- parseInline = this.#parseMarkdown(_Lexer.lexInline, _Parser.parseInline);
1625
- Parser = _Parser;
1626
- Renderer = _Renderer;
1627
- TextRenderer = _TextRenderer;
1628
- Lexer = _Lexer;
1629
- Tokenizer = _Tokenizer;
1630
- Hooks = _Hooks;
1631
- constructor(...args) {
1632
- this.use(...args);
1633
- }
1634
- /**
1635
- * Run callback for every token
1636
- */
1637
- walkTokens(tokens, callback) {
1638
- let values = [];
1639
- for (const token of tokens) {
1640
- values = values.concat(callback.call(this, token));
1641
- switch (token.type) {
1642
- case "table": {
1643
- const tableToken = token;
1644
- for (const cell of tableToken.header) values = values.concat(this.walkTokens(cell.tokens, callback));
1645
- for (const row of tableToken.rows) for (const cell of row) values = values.concat(this.walkTokens(cell.tokens, callback));
1646
- break;
1647
- }
1648
- case "list": {
1649
- const listToken = token;
1650
- values = values.concat(this.walkTokens(listToken.items, callback));
1651
- break;
1652
- }
1653
- default: {
1654
- const genericToken = token;
1655
- if (this.defaults.extensions?.childTokens?.[genericToken.type]) this.defaults.extensions.childTokens[genericToken.type].forEach((childTokens) => {
1656
- const tokens = genericToken[childTokens].flat(Infinity);
1657
- values = values.concat(this.walkTokens(tokens, callback));
1658
- });
1659
- else if (genericToken.tokens) values = values.concat(this.walkTokens(genericToken.tokens, callback));
1660
- }
1661
- }
1662
- }
1663
- return values;
1664
- }
1665
- use(...args) {
1666
- const extensions = this.defaults.extensions || {
1667
- renderers: {},
1668
- childTokens: {}
1669
- };
1670
- args.forEach((pack) => {
1671
- const opts = { ...pack };
1672
- opts.async = this.defaults.async || opts.async || false;
1673
- if (pack.extensions) {
1674
- pack.extensions.forEach((ext) => {
1675
- if (!ext.name) throw new Error("extension name required");
1676
- if ("renderer" in ext) {
1677
- const prevRenderer = extensions.renderers[ext.name];
1678
- if (prevRenderer) extensions.renderers[ext.name] = function(...args) {
1679
- let ret = ext.renderer.apply(this, args);
1680
- if (ret === false) ret = prevRenderer.apply(this, args);
1681
- return ret;
1682
- };
1683
- else extensions.renderers[ext.name] = ext.renderer;
1684
- }
1685
- if ("tokenizer" in ext) {
1686
- if (!ext.level || ext.level !== "block" && ext.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
1687
- const extLevel = extensions[ext.level];
1688
- if (extLevel) extLevel.unshift(ext.tokenizer);
1689
- else extensions[ext.level] = [ext.tokenizer];
1690
- if (ext.start) {
1691
- if (ext.level === "block") if (extensions.startBlock) extensions.startBlock.push(ext.start);
1692
- else extensions.startBlock = [ext.start];
1693
- else if (ext.level === "inline") if (extensions.startInline) extensions.startInline.push(ext.start);
1694
- else extensions.startInline = [ext.start];
1695
- }
1696
- }
1697
- if ("childTokens" in ext && ext.childTokens) extensions.childTokens[ext.name] = ext.childTokens;
1698
- });
1699
- opts.extensions = extensions;
1700
- }
1701
- if (pack.renderer) {
1702
- const renderer = this.defaults.renderer || new _Renderer(this.defaults);
1703
- for (const prop in pack.renderer) {
1704
- if (!(prop in renderer)) throw new Error(`renderer '${prop}' does not exist`);
1705
- if (prop === "options") continue;
1706
- const rendererProp = prop;
1707
- const rendererFunc = pack.renderer[rendererProp];
1708
- const prevRenderer = renderer[rendererProp];
1709
- renderer[rendererProp] = (...args) => {
1710
- let ret = rendererFunc.apply(renderer, args);
1711
- if (ret === false) ret = prevRenderer.apply(renderer, args);
1712
- return ret || "";
1713
- };
1714
- }
1715
- opts.renderer = renderer;
1716
- }
1717
- if (pack.tokenizer) {
1718
- const tokenizer = this.defaults.tokenizer || new _Tokenizer(this.defaults);
1719
- for (const prop in pack.tokenizer) {
1720
- if (!(prop in tokenizer)) throw new Error(`tokenizer '${prop}' does not exist`);
1721
- if ([
1722
- "options",
1723
- "rules",
1724
- "lexer"
1725
- ].includes(prop)) continue;
1726
- const tokenizerProp = prop;
1727
- const tokenizerFunc = pack.tokenizer[tokenizerProp];
1728
- const prevTokenizer = tokenizer[tokenizerProp];
1729
- tokenizer[tokenizerProp] = (...args) => {
1730
- let ret = tokenizerFunc.apply(tokenizer, args);
1731
- if (ret === false) ret = prevTokenizer.apply(tokenizer, args);
1732
- return ret;
1733
- };
1734
- }
1735
- opts.tokenizer = tokenizer;
1736
- }
1737
- if (pack.hooks) {
1738
- const hooks = this.defaults.hooks || new _Hooks();
1739
- for (const prop in pack.hooks) {
1740
- if (!(prop in hooks)) throw new Error(`hook '${prop}' does not exist`);
1741
- if (prop === "options") continue;
1742
- const hooksProp = prop;
1743
- const hooksFunc = pack.hooks[hooksProp];
1744
- const prevHook = hooks[hooksProp];
1745
- if (_Hooks.passThroughHooks.has(prop)) hooks[hooksProp] = (arg) => {
1746
- if (this.defaults.async) return Promise.resolve(hooksFunc.call(hooks, arg)).then((ret) => {
1747
- return prevHook.call(hooks, ret);
1748
- });
1749
- const ret = hooksFunc.call(hooks, arg);
1750
- return prevHook.call(hooks, ret);
1751
- };
1752
- else hooks[hooksProp] = (...args) => {
1753
- let ret = hooksFunc.apply(hooks, args);
1754
- if (ret === false) ret = prevHook.apply(hooks, args);
1755
- return ret;
1756
- };
1757
- }
1758
- opts.hooks = hooks;
1759
- }
1760
- if (pack.walkTokens) {
1761
- const walkTokens = this.defaults.walkTokens;
1762
- const packWalktokens = pack.walkTokens;
1763
- opts.walkTokens = function(token) {
1764
- let values = [];
1765
- values.push(packWalktokens.call(this, token));
1766
- if (walkTokens) values = values.concat(walkTokens.call(this, token));
1767
- return values;
1768
- };
1769
- }
1770
- this.defaults = {
1771
- ...this.defaults,
1772
- ...opts
1773
- };
1774
- });
1775
- return this;
1776
- }
1777
- setOptions(opt) {
1778
- this.defaults = {
1779
- ...this.defaults,
1780
- ...opt
1781
- };
1782
- return this;
1783
- }
1784
- lexer(src, options) {
1785
- return _Lexer.lex(src, options ?? this.defaults);
1786
- }
1787
- parser(tokens, options) {
1788
- return _Parser.parse(tokens, options ?? this.defaults);
1789
- }
1790
- #parseMarkdown(lexer, parser) {
1791
- return (src, options) => {
1792
- const origOpt = { ...options };
1793
- const opt = {
1794
- ...this.defaults,
1795
- ...origOpt
1796
- };
1797
- if (this.defaults.async === true && origOpt.async === false) {
1798
- if (!opt.silent) console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored.");
1799
- opt.async = true;
1800
- }
1801
- const throwError = this.#onError(!!opt.silent, !!opt.async);
1802
- if (typeof src === "undefined" || src === null) return throwError(/* @__PURE__ */ new Error("marked(): input parameter is undefined or null"));
1803
- if (typeof src !== "string") return throwError(/* @__PURE__ */ new Error("marked(): input parameter is of type " + Object.prototype.toString.call(src) + ", string expected"));
1804
- if (opt.hooks) opt.hooks.options = opt;
1805
- if (opt.async) return Promise.resolve(opt.hooks ? opt.hooks.preprocess(src) : src).then((src) => lexer(src, opt)).then((tokens) => opt.hooks ? opt.hooks.processAllTokens(tokens) : tokens).then((tokens) => opt.walkTokens ? Promise.all(this.walkTokens(tokens, opt.walkTokens)).then(() => tokens) : tokens).then((tokens) => parser(tokens, opt)).then((html) => opt.hooks ? opt.hooks.postprocess(html) : html).catch(throwError);
1806
- try {
1807
- if (opt.hooks) src = opt.hooks.preprocess(src);
1808
- let tokens = lexer(src, opt);
1809
- if (opt.hooks) tokens = opt.hooks.processAllTokens(tokens);
1810
- if (opt.walkTokens) this.walkTokens(tokens, opt.walkTokens);
1811
- let html = parser(tokens, opt);
1812
- if (opt.hooks) html = opt.hooks.postprocess(html);
1813
- return html;
1814
- } catch (e) {
1815
- return throwError(e);
1816
- }
1817
- };
1818
- }
1819
- #onError(silent, async) {
1820
- return (e) => {
1821
- e.message += "\nPlease report this to https://github.com/markedjs/marked.";
1822
- if (silent) {
1823
- const msg = "<p>An error occurred:</p><pre>" + escape$1(e.message + "", true) + "</pre>";
1824
- if (async) return Promise.resolve(msg);
1825
- return msg;
1826
- }
1827
- if (async) return Promise.reject(e);
1828
- throw e;
1829
- };
1830
- }
1831
- };
1832
- var markedInstance = new Marked();
1833
- function marked(src, opt) {
1834
- return markedInstance.parse(src, opt);
1835
- }
1836
- /**
1837
- * Sets the default options.
1838
- *
1839
- * @param options Hash of options
1840
- */
1841
- marked.options = marked.setOptions = function(options) {
1842
- markedInstance.setOptions(options);
1843
- marked.defaults = markedInstance.defaults;
1844
- changeDefaults(marked.defaults);
1845
- return marked;
1846
- };
1847
- /**
1848
- * Gets the original marked default options.
1849
- */
1850
- marked.getDefaults = _getDefaults;
1851
- marked.defaults = _defaults;
1852
- /**
1853
- * Use Extension
1854
- */
1855
- marked.use = function(...args) {
1856
- markedInstance.use(...args);
1857
- marked.defaults = markedInstance.defaults;
1858
- changeDefaults(marked.defaults);
1859
- return marked;
1860
- };
1861
- /**
1862
- * Run callback for every token
1863
- */
1864
- marked.walkTokens = function(tokens, callback) {
1865
- return markedInstance.walkTokens(tokens, callback);
1866
- };
1867
- /**
1868
- * Compiles markdown to HTML without enclosing `p` tag.
1869
- *
1870
- * @param src String of markdown source to be compiled
1871
- * @param options Hash of options
1872
- * @return String of compiled HTML
1873
- */
1874
- marked.parseInline = markedInstance.parseInline;
1875
- /**
1876
- * Expose
1877
- */
1878
- marked.Parser = _Parser;
1879
- marked.parser = _Parser.parse;
1880
- marked.Renderer = _Renderer;
1881
- marked.TextRenderer = _TextRenderer;
1882
- marked.Lexer = _Lexer;
1883
- marked.lexer = _Lexer.lex;
1884
- marked.Tokenizer = _Tokenizer;
1885
- marked.Hooks = _Hooks;
1886
- marked.parse = marked;
1887
- marked.options;
1888
- marked.setOptions;
1889
- marked.use;
1890
- marked.walkTokens;
1891
- marked.parseInline;
1892
- _Parser.parse;
1893
- _Lexer.lex;
1894
- //#endregion
1895
- //#region ../../node_modules/.pnpm/marked-alert@2.1.2_marked@12.0.2/node_modules/marked-alert/dist/index.js
1896
- var d = [
1897
- {
1898
- type: "note",
1899
- icon: "<svg class=\"octicon octicon-info mr-2\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>"
1900
- },
1901
- {
1902
- type: "tip",
1903
- icon: "<svg class=\"octicon octicon-light-bulb mr-2\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z\"></path></svg>"
1904
- },
1905
- {
1906
- type: "important",
1907
- icon: "<svg class=\"octicon octicon-report mr-2\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"></path></svg>"
1908
- },
1909
- {
1910
- type: "warning",
1911
- icon: "<svg class=\"octicon octicon-alert mr-2\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"></path></svg>"
1912
- },
1913
- {
1914
- type: "caution",
1915
- icon: "<svg class=\"octicon octicon-stop mr-2\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>"
1916
- }
1917
- ];
1918
- function m(a) {
1919
- return a.length ? Object.values([...d, ...a].reduce((i, s) => (i[s.type] = s, i), {})) : d;
1920
- }
1921
- function u(a) {
1922
- return `^(?:\\[!${a.toUpperCase()}])\\s*?
1923
- *`;
1924
- }
1925
- function x(a) {
1926
- return a.slice(0, 1).toUpperCase() + a.slice(1).toLowerCase();
1927
- }
1928
- function A$1(a = {}) {
1929
- const { className: i = "markdown-alert", variants: s = [] } = a;
1930
- const g = m(s);
1931
- return {
1932
- walkTokens(t) {
1933
- var e;
1934
- var h;
1935
- var p;
1936
- var v;
1937
- if (t.type !== "blockquote") return;
1938
- const c = g.find(({ type: n }) => new RegExp(u(n)).test(t.text));
1939
- if (c) {
1940
- const { type: n, icon: w, title: Z = x(n), titleClassName: f = `${i}-title` } = c;
1941
- const o = new RegExp(u(n));
1942
- Object.assign(t, {
1943
- type: "alert",
1944
- meta: {
1945
- className: i,
1946
- variant: n,
1947
- icon: w,
1948
- title: Z,
1949
- titleClassName: f
1950
- }
1951
- });
1952
- const r = (e = t.tokens) == null ? void 0 : e[0];
1953
- if ((h = r.raw) == null ? void 0 : h.replace(o, "").trim()) {
1954
- const l = r.tokens[0];
1955
- Object.assign(l, {
1956
- raw: l.raw.replace(o, ""),
1957
- text: l.text.replace(o, "")
1958
- }), ((p = r.tokens[1]) == null ? void 0 : p.type) === "br" && r.tokens.splice(1, 1);
1959
- } else (v = t.tokens) == null || v.shift();
1960
- }
1961
- },
1962
- extensions: [{
1963
- name: "alert",
1964
- level: "block",
1965
- renderer({ meta: t, tokens: c = [] }) {
1966
- let e = `<div class="${t.className} ${t.className}-${t.variant}">
1967
- `;
1968
- return e += `<p class="${t.titleClassName}">`, e += t.icon, e += t.title, e += `</p>
1969
- `, e += this.parser.parse(c), e += `</div>
1970
- `, e;
1971
- }
1972
- }]
1973
- };
1974
- }
1975
- __name(A$1, "A");
1976
- //#endregion
1977
- //#region ../../node_modules/.pnpm/marked-footnote@1.4.0_marked@12.0.2/node_modules/marked-footnote/dist/index.js
1978
- function R(e, d) {
1979
- const l = {
1980
- type: "footnotes",
1981
- raw: d,
1982
- rawItems: [],
1983
- items: []
1984
- };
1985
- return {
1986
- name: "footnote",
1987
- level: "block",
1988
- childTokens: ["content"],
1989
- tokenizer(c) {
1990
- e.hasFootnotes || (this.lexer.tokens.push(l), e.tokens = this.lexer.tokens, e.hasFootnotes = !0, l.rawItems = [], l.items = []);
1991
- const a = /^\[\^([^\]\n]+)\]:(?:[ \t]+|[\n]*?|$)([^\n]*?(?:\n|$)(?:\n*?[ ]{4,}[^\n]*)*)/.exec(c);
1992
- if (a) {
1993
- const [i, f, s = ""] = a;
1994
- let n = s.split(`
1995
- `).reduce((r, p) => r + `
1996
- ` + p.replace(/^(?:[ ]{4}|[\t])/, ""), "");
1997
- const t = n.trimEnd().split(`
1998
- `).pop();
1999
- n += t && /^[ \t]*?[>\-*][ ]|[`]{3,}$|^[ \t]*?[|].+[|]$/.test(t) ? `
2000
-
2001
- ` : "";
2002
- const o = {
2003
- type: "footnote",
2004
- raw: i,
2005
- label: f,
2006
- refs: [],
2007
- content: this.lexer.blockTokens(n)
2008
- };
2009
- return l.rawItems.push(o), o;
2010
- }
2011
- },
2012
- renderer() {
2013
- return "";
2014
- }
2015
- };
2016
- }
2017
- function T(e) {
2018
- return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
2019
- }
2020
- function A(e, d = !1, l = !1) {
2021
- let c = 0;
2022
- return {
2023
- name: "footnoteRef",
2024
- level: "inline",
2025
- tokenizer(a) {
2026
- const i = /^\[\^([^\]\n]+)\]/.exec(a);
2027
- if (i) {
2028
- const [f, s] = i;
2029
- const n = this.lexer.tokens[0];
2030
- const t = n.rawItems.filter((u) => u.label === s);
2031
- if (!t.length) return;
2032
- const o = t[0];
2033
- const r = n.items.filter((u) => u.label === s)[0];
2034
- const p = {
2035
- type: "footnoteRef",
2036
- raw: f,
2037
- index: o.refs.length,
2038
- id: "",
2039
- label: s
2040
- };
2041
- return r ? (p.id = r.refs[0].id, r.refs.push(p)) : (c++, p.id = String(c), o.refs.push(p), n.items.push(o)), p;
2042
- }
2043
- },
2044
- renderer({ index: a, id: i, label: f }) {
2045
- c = 0;
2046
- const s = encodeURIComponent(f);
2047
- const n = l ? T(f) : i;
2048
- return `<sup><a id="${e}ref-${s}${a > 0 ? `-${a + 1}` : ""}" href="#${e + s}" data-${e}ref aria-describedby="${e}label">${d ? `[${n}]` : n}</a></sup>`;
2049
- }
2050
- };
2051
- }
2052
- function E(e, d, l, c, a, i) {
2053
- return {
2054
- name: "footnotes",
2055
- renderer({ raw: f, items: s = [] }) {
2056
- if (s.length === 0) return "";
2057
- const n = s.reduce((p, { label: u, content: x, refs: y }) => {
2058
- const b = encodeURIComponent(u);
2059
- const $ = this.parser.parse(x).trimEnd();
2060
- const w = $.endsWith("</p>");
2061
- let h = `<li id="${e + b}">
2062
- `;
2063
- return h += w ? $.replace(/<\/p>$/, "") : $, y.forEach((I, F) => {
2064
- const g = i.replace("{0}", u);
2065
- let m;
2066
- let k;
2067
- if (F > 0) {
2068
- const L = F + 1;
2069
- m = `↩<sup>${L}</sup>`, k = `-${L}`;
2070
- } else m = "↩", k = "";
2071
- h += ` <a href="#${e}ref-${b}${k}" data-${e}backref aria-label="${g}">${m}</a>`;
2072
- }), h += w ? `</p>
2073
- ` : `
2074
- `, h += `</li>
2075
- `, p + h;
2076
- }, "");
2077
- let t = "";
2078
- l && (t += `<hr data-${d}footnotes>
2079
- `);
2080
- let o = "";
2081
- c && (o = ` class="${c}"`);
2082
- let r = "";
2083
- return a && (r = ` class="${a}"`), t += `<section${o} data-${d}footnotes>
2084
- `, t += `<h2 id="${e}label"${r}>${f.trimEnd()}</h2>
2085
- `, t += `<ol>
2086
- ${n}</ol>
2087
- `, t += `</section>
2088
- `, t;
2089
- }
2090
- };
2091
- }
2092
- function C(e = {}) {
2093
- const { prefixId: d = "footnote-", prefixData: l = "", description: c = "Footnotes", refMarkers: a = !1, footnoteDivider: i = !1, keepLabels: f = !1, sectionClass: s = "footnotes", headingClass: n = "sr-only", backRefLabel: t = "Back to reference {0}" } = e;
2094
- const o = {
2095
- hasFootnotes: !1,
2096
- tokens: []
2097
- };
2098
- return {
2099
- extensions: [
2100
- R(o, c),
2101
- A(d, a, f),
2102
- E(d, l, i, s, n, t)
2103
- ],
2104
- walkTokens(r) {
2105
- r.type === "footnotes" && o.tokens.indexOf(r) === 0 && r.items.length && (o.tokens[0] = {
2106
- type: "space",
2107
- raw: ""
2108
- }, o.tokens.push(r)), o.hasFootnotes && (o.hasFootnotes = !1);
2109
- }
2110
- };
2111
- }
2112
- //#endregion
2113
- //#region ../../node_modules/.pnpm/marked-extended-tables@2.0.1_marked@12.0.2/node_modules/marked-extended-tables/src/index.js
2114
- function src_default({ interruptPatterns = [], skipEmptyRows = true } = {}) {
2115
- return { extensions: [{
2116
- name: "spanTable",
2117
- level: "block",
2118
- start(src) {
2119
- return src.match(/\n *([^\n ].*\|.*)\n/m)?.index;
2120
- },
2121
- tokenizer(src, tokens) {
2122
- let regexString = "^ *([^\\n ].*\\|.*\\n(?: *[^\\s].*\\n)*?) {0,3}(?:\\| *)?(:?-+(?: *(?:100|[1-9][0-9]?%) *-+)?:? *(?:\\| *:?-+(?: *(?:100|[1-9][0-9]?%) *-+)?:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n| {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)| {0,3}#{1,6}(?:\\s|$)| {0,3}>| {4}[^\\n]| {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n| {0,3}(?:[*+-]|1[.)]) |<\\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?: +|\\n|\\/?>)|<(?:script|pre|style|textarea|!--)endRegex).*(?:\\n|$))*)\\n*|$)";
2123
- regexString = regexString.replace("endRegex", interruptPatterns.map((str) => `|(?:${str})`).join(""));
2124
- const widthRegex = / *(?:100|[1-9][0-9]?%) */g;
2125
- const cap = new RegExp(regexString).exec(src);
2126
- if (cap) {
2127
- const item = {
2128
- type: "spanTable",
2129
- header: cap[1].replace(/\n$/, "").split("\n"),
2130
- align: cap[2].replace(widthRegex, "").replace(/^ *|\| *$/g, "").split(/ *\| */),
2131
- rows: cap[3]?.trim() ? cap[3].replace(/\n[ \t]*$/, "").split("\n") : [],
2132
- width: cap[2].replace(/:/g, "").replace(/-+| /g, "").split("|")
2133
- };
2134
- item.header[0] = splitCells(item.header[0]);
2135
- const colCount = item.header[0].reduce((length, header) => {
2136
- return length + header.colspan;
2137
- }, 0);
2138
- if (colCount === item.align.length) {
2139
- item.raw = cap[0];
2140
- let i;
2141
- let j;
2142
- let k;
2143
- let row;
2144
- let l = item.align.length;
2145
- for (i = 0; i < l; i++) if (/^ *-+: *$/.test(item.align[i])) item.align[i] = "right";
2146
- else if (/^ *:-+: *$/.test(item.align[i])) item.align[i] = "center";
2147
- else if (/^ *:-+ *$/.test(item.align[i])) item.align[i] = "left";
2148
- else item.align[i] = null;
2149
- l = item.header.length;
2150
- for (i = 1; i < l; i++) item.header[i] = splitCells(item.header[i], colCount, item.header[i - 1], skipEmptyRows);
2151
- l = item.rows.length;
2152
- for (i = 0; i < l; i++) item.rows[i] = splitCells(item.rows[i], colCount, item.rows[i - 1], skipEmptyRows);
2153
- l = item.header.length;
2154
- for (j = 0; j < l; j++) {
2155
- row = item.header[j];
2156
- for (k = 0; k < row.length; k++) {
2157
- row[k].tokens = [];
2158
- this.lexer.inline(row[k].text, row[k].tokens);
2159
- }
2160
- }
2161
- l = item.rows.length;
2162
- for (j = 0; j < l; j++) {
2163
- row = item.rows[j];
2164
- for (k = 0; k < row.length; k++) {
2165
- row[k].tokens = [];
2166
- this.lexer.inline(row[k].text, row[k].tokens);
2167
- }
2168
- }
2169
- return item;
2170
- }
2171
- }
2172
- },
2173
- renderer(token) {
2174
- let i;
2175
- let j;
2176
- let row;
2177
- let cell;
2178
- let col;
2179
- let text;
2180
- let output = "<table>";
2181
- output += "<thead>";
2182
- for (i = 0; i < token.header.length; i++) {
2183
- row = token.header[i];
2184
- let col = 0;
2185
- output += "<tr>";
2186
- for (j = 0; j < row.length; j++) {
2187
- cell = row[j];
2188
- text = this.parser.parseInline(cell.tokens);
2189
- output += getTableCell(text, cell, "th", token.align[col], token.width[col]);
2190
- col += cell.colspan;
2191
- }
2192
- output += "</tr>";
2193
- }
2194
- output += "</thead>";
2195
- if (token.rows.length) {
2196
- output += "<tbody>";
2197
- for (i = 0; i < token.rows.length; i++) {
2198
- row = token.rows[i];
2199
- col = 0;
2200
- if (!row[0].emptyRow) {
2201
- output += "<tr>";
2202
- for (j = 0; j < row.length; j++) {
2203
- cell = row[j];
2204
- text = this.parser.parseInline(cell.tokens);
2205
- output += getTableCell(text, cell, "td", token.align[col], token.width[col]);
2206
- col += cell.colspan;
2207
- }
2208
- output += "</tr>";
2209
- }
2210
- }
2211
- output += "</tbody>";
2212
- }
2213
- output += "</table>";
2214
- return output;
2215
- }
2216
- }] };
2217
- }
2218
- __name(src_default, "default");
2219
- var getTableCell = (text, cell, type, align, width) => {
2220
- if (!cell.rowspan) return "";
2221
- return `${`<${type}${cell.colspan > 1 ? ` colspan=${cell.colspan}` : ""}${cell.rowspan > 1 ? ` rowspan=${cell.rowspan}` : ""}${align ? ` align=${align}` : ""}${width ? ` width=${width}` : ""}>` + text}</${type}>\n`;
2222
- };
2223
- var splitCells = (tableRow, count, prevRow = [], skipEmptyRows) => {
2224
- const cells = [...tableRow.trim().matchAll(/(?:[^|\\]|\\.?)+(?:\|+|$)/g)].map((x) => x[0]);
2225
- if (!cells[0]?.trim()) cells.shift();
2226
- if (!cells[cells.length - 1]?.trim()) cells.pop();
2227
- let numCols = 0;
2228
- let i;
2229
- let j;
2230
- let trimmedCell;
2231
- let prevCell;
2232
- let prevCols;
2233
- for (i = 0; i < cells.length; i++) {
2234
- trimmedCell = cells[i].split(/\|+$/)[0];
2235
- cells[i] = {
2236
- rowspan: 1,
2237
- colspan: Math.max(cells[i].length - trimmedCell.length, 1),
2238
- text: trimmedCell.trim().replace(/\\\|/g, "|")
2239
- };
2240
- if (trimmedCell.slice(-1) === "^" && prevRow.length) {
2241
- prevCols = 0;
2242
- for (j = 0; j < prevRow.length; j++) {
2243
- prevCell = prevRow[j];
2244
- if (prevCols === numCols && prevCell.colspan === cells[i].colspan) {
2245
- cells[i].rowSpanTarget = prevCell.rowSpanTarget ?? prevCell;
2246
- cells[i].rowSpanTarget.text += ` ${cells[i].text.slice(0, -1)}`;
2247
- cells[i].rowSpanTarget.rowspan += 1;
2248
- cells[i].rowspan = 0;
2249
- break;
2250
- }
2251
- prevCols += prevCell.colspan;
2252
- if (prevCols > numCols) break;
2253
- }
2254
- }
2255
- numCols += cells[i].colspan;
2256
- }
2257
- if (cells.length > 0 && skipEmptyRows && cells.length === cells.filter((cell) => {
2258
- return cell.rowspan === 0;
2259
- }).length) {
2260
- cells[0].emptyRow = true;
2261
- for (i = 0; i < cells.length; i++) cells[i].rowSpanTarget.rowspan -= 1;
2262
- }
2263
- if (numCols > count) cells.splice(count);
2264
- else while (numCols < count) {
2265
- cells.push({
2266
- rowspan: 1,
2267
- colspan: 1,
2268
- text: ""
2269
- });
2270
- numCols += 1;
2271
- }
2272
- return cells;
2273
- };
2274
- //#endregion
2275
- //#region ../../node_modules/.pnpm/github-slugger@2.0.0/node_modules/github-slugger/regex.js
2276
- var regex = /[\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;
2277
- //#endregion
2278
- //#region ../../node_modules/.pnpm/github-slugger@2.0.0/node_modules/github-slugger/index.js
2279
- var own = Object.hasOwnProperty;
2280
- /**
2281
- * Slugger.
2282
- */
2283
- var BananaSlug = class {
2284
- /**
2285
- * Create a new slug class.
2286
- */
2287
- constructor() {
2288
- /** @type {Record<string, number>} */
2289
- this.occurrences;
2290
- this.reset();
2291
- }
2292
- /**
2293
- * Generate a unique slug.
2294
- *
2295
- * Tracks previously generated slugs: repeated calls with the same value
2296
- * will result in different slugs.
2297
- * Use the `slug` function to get same slugs.
2298
- *
2299
- * @param {string} value
2300
- * String of text to slugify
2301
- * @param {boolean} [maintainCase=false]
2302
- * Keep the current case, otherwise make all lowercase
2303
- * @return {string}
2304
- * A unique slug string
2305
- */
2306
- slug(value, maintainCase) {
2307
- const self = this;
2308
- let result = slug(value, maintainCase === true);
2309
- const originalSlug = result;
2310
- while (own.call(self.occurrences, result)) {
2311
- self.occurrences[originalSlug]++;
2312
- result = originalSlug + "-" + self.occurrences[originalSlug];
2313
- }
2314
- self.occurrences[result] = 0;
2315
- return result;
2316
- }
2317
- /**
2318
- * Reset - Forget all previous slugs
2319
- *
2320
- * @return void
2321
- */
2322
- reset() {
2323
- this.occurrences = Object.create(null);
2324
- }
2325
- };
2326
- /**
2327
- * Generate a slug.
2328
- *
2329
- * Does not track previously generated slugs: repeated calls with the same value
2330
- * will result in the exact same slug.
2331
- * Use the `GithubSlugger` class to get unique slugs.
2332
- *
2333
- * @param {string} value
2334
- * String of text to slugify
2335
- * @param {boolean} [maintainCase=false]
2336
- * Keep the current case, otherwise make all lowercase
2337
- * @return {string}
2338
- * A unique slug string
2339
- */
2340
- function slug(value, maintainCase) {
2341
- if (typeof value !== "string") return "";
2342
- if (!maintainCase) value = value.toLowerCase();
2343
- return value.replace(regex, "").replace(/ /g, "-");
2344
- }
2345
- //#endregion
2346
- //#region ../../node_modules/.pnpm/marked-gfm-heading-id@3.2.0_marked@12.0.2/node_modules/marked-gfm-heading-id/src/index.js
2347
- var slugger = new BananaSlug();
2348
- var headings = [];
2349
- function gfmHeadingId({ prefix = "", globalSlugs = false } = {}) {
2350
- return {
2351
- headerIds: false,
2352
- hooks: { preprocess(src) {
2353
- if (!globalSlugs) resetHeadings();
2354
- return src;
2355
- } },
2356
- renderer: { heading(text, level, raw) {
2357
- raw = raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi, "");
2358
- const id = `${prefix}${slugger.slug(raw)}`;
2359
- const heading = {
2360
- level,
2361
- text,
2362
- id
2363
- };
2364
- headings.push(heading);
2365
- return `<h${level} id="${id}">${text}</h${level}>\n`;
2366
- } }
2367
- };
2368
- }
2369
- function resetHeadings() {
2370
- headings = [];
2371
- slugger = new BananaSlug();
2372
- }
2373
- //#endregion
2374
- //#region ../runtime-common/marked-sync.ts
2375
- var bfmMarked = new Marked();
2376
- bfmMarked.use({ extensions: bfmCardReferenceExtensions() });
2377
- bfmMarked.use(gfmHeadingId({ prefix: "user-content-" }));
2378
- bfmMarked.use(A$1());
2379
- bfmMarked.use(C());
2380
- bfmMarked.use(src_default());
2381
- bfmMarked.use(markedKatexPlaceholder());
2382
- var _codeRenderOpts = {};
2383
- bfmMarked.use({ renderer: { code(code, language = "") {
2384
- if (language === "mermaid") return `<pre class="mermaid">${escapeHtml(code)}</pre>\n`;
2385
- let highlighted = renderWithMonaco(code, language, _codeRenderOpts);
2386
- if (highlighted) return highlighted;
2387
- if (_codeRenderOpts.escapeHtmlInCodeBlocks) return `<pre data-code-language="${escapeHtml(language)}">${escapeHtml(code)}</pre>`;
2388
- else return `<pre data-code-language="${escapeHtml(language)}">${code}</pre>`;
2389
- } } });
2390
- var DECORATIVE_BULLET_PATTERN = /(^|\n)(\s*)([\p{Extended_Pictographic}★•▪●❖✦✧◉◦◾◽⬢⬡☑✔☑️➤➔➜➡→])(\s+)/gu;
2391
- var DEFAULT_MARKED_SYNC_OPTIONS = {
2392
- escapeHtmlInCodeBlocks: true,
2393
- enableMonacoSyntaxHighlighting: false
2394
- };
2395
- /**
2396
- * Renders code with syntax highlighting using the Monaco editor SDK.
2397
- *
2398
- * This function tokenizes code using Monaco's editor capabilities to generate
2399
- * HTML with syntax highlighting spans. Each line is colorized separately and
2400
- * combined into a pre/code block with Monaco token classes.
2401
- *
2402
- * @param code - The source code string to highlight
2403
- * @param language - The programming language for syntax highlighting (e.g., 'typescript', 'javascript')
2404
- * @param opts - Configuration options
2405
- * @param opts.monaco - Optional Monaco SDK instance. Required for highlighting to occur
2406
- * @param opts.monacoTheme - Optional theme name to apply before colorizing (e.g., 'vs-dark', 'vs-light')
2407
- * @param opts.tabSize - Optional tab size for indentation rendering
2408
- * @param opts.enableMonacoSyntaxHighlighting - Flag to enable/disable Monaco syntax highlighting. If false, function returns null immediately
2409
- *
2410
- let editor = monaco?.editor;
2411
- if (monaco === null || !editor?.createModel || !editor?.colorizeModelLine) {
2412
- * or an error occurs during colorization
2413
- *
2414
- * @throws Does not throw; catches all errors and returns null instead
2415
- */
2416
- function renderWithMonaco(code, language, opts) {
2417
- if (!opts.enableMonacoSyntaxHighlighting) return null;
2418
- let monaco = opts.monaco;
2419
- let editor = monaco?.editor;
2420
- if (monaco === null || !editor?.createModel || !editor?.colorizeModelLine) return null;
2421
- let model = null;
2422
- try {
2423
- model = editor.createModel(code, language || void 0);
2424
- if (opts.monacoTheme && editor.setTheme) editor.setTheme(opts.monacoTheme);
2425
- let lineCount = model.getLineCount();
2426
- let highlightedLines = [];
2427
- for (let lineNumber = 1; lineNumber <= lineCount; lineNumber++) highlightedLines.push(editor.colorizeModelLine(model, lineNumber, opts.tabSize));
2428
- return `<pre data-code-language="${escapeHtml(language)}"><code class="monaco-tokenized-source monaco-highlight">${highlightedLines.join("\n")}</code></pre>`;
2429
- } catch (error) {
2430
- console.debug("[marked-sync] Monaco syntax highlighting failed:", error);
2431
- return null;
2432
- } finally {
2433
- model?.dispose?.();
2434
- }
2435
- }
2436
- function markedSync(markdown, opts = DEFAULT_MARKED_SYNC_OPTIONS) {
2437
- _codeRenderOpts = {
2438
- ...DEFAULT_MARKED_SYNC_OPTIONS,
2439
- ...opts
2440
- };
2441
- return bfmMarked.parse(markdown, { async: false });
2442
- }
2443
- var DEFAULT_OPTS = {
2444
- sanitize: true,
2445
- escapeHtmlInCodeBlocks: true,
2446
- enableMonacoSyntaxHighlighting: false
2447
- };
2448
- function markdownToHtml(markdown, opts = DEFAULT_OPTS) {
2449
- opts = {
2450
- ...DEFAULT_OPTS,
2451
- ...opts
2452
- };
2453
- if (!markdown) return "";
2454
- let html = markedSync(markdown.replace(DECORATIVE_BULLET_PATTERN, (_match, boundary, indentation, bullet, whitespace) => `${boundary}${indentation}* ${bullet}${whitespace}`), {
2455
- escapeHtmlInCodeBlocks: opts.escapeHtmlInCodeBlocks,
2456
- enableMonacoSyntaxHighlighting: opts.enableMonacoSyntaxHighlighting,
2457
- monacoTheme: opts.monacoTheme,
2458
- monaco: opts.monaco,
2459
- tabSize: opts.tabSize
2460
- });
2461
- if (opts.sanitize) html = sanitizeHtml(html);
2462
- return html;
2463
- }
2464
- function hasCodeBlocks(markdown) {
2465
- if (!markdown) return false;
2466
- return /```(\S+)?\s*[\r\n]/g.test(markdown);
2467
- }
2468
- /**
2469
- * Preload Monaco language contributions referenced in fenced code blocks.
2470
- * @param {string} markdown
2471
- * @param {typeof import('monaco-editor')} monaco
2472
- */
2473
- async function preloadMarkdownLanguages(md, monaco) {
2474
- const langs = new Set(["typescript", "json"]);
2475
- const fenceRE = /```(\S+)?\s*[\r\n]/g;
2476
- let match;
2477
- while ((match = fenceRE.exec(md)) !== null) {
2478
- const lang = (match[1] || "").trim();
2479
- if (lang) langs.add(lang.toLowerCase());
2480
- }
2481
- const registered = monaco.languages.getLanguages();
2482
- const languagePromises = [];
2483
- const seenLanguageIds = /* @__PURE__ */ new Set();
2484
- const contributionLoaders = {
2485
- json: () => __vitePreload(() => import("./monaco.contribution-Dpx8UiPl.js"), __vite__mapDeps([0,1,2,3,4,5,6]), import.meta.url),
2486
- typescript: () => __vitePreload(() => import("./monaco.contribution-RF_qxJYG.js"), __vite__mapDeps([7,8,2,3,4,5,6]), import.meta.url)
2487
- };
2488
- for (const lang of langs) {
2489
- let entry = registered.find((l) => l.id.toLowerCase() === lang) || registered.find((l) => (l.aliases || []).some((a) => a.toLowerCase() === lang));
2490
- if (!entry) continue;
2491
- if (seenLanguageIds.has(entry.id)) continue;
2492
- seenLanguageIds.add(entry.id);
2493
- languagePromises.push((async () => {
2494
- if (contributionLoaders[lang]) await contributionLoaders[lang]();
2495
- if (typeof entry.loader === "function") await entry.loader();
2496
- await waitForLanguage(monaco, entry.id);
2497
- warmUpModelTokenization(monaco, entry.id);
2498
- await waitForTokenizationSupport(monaco, entry.id);
2499
- })());
2500
- }
2501
- await Promise.all(languagePromises);
2502
- }
2503
- function waitForLanguage(monaco, id) {
2504
- if (monaco.languages.getEncodedLanguageId(id) !== 0) return Promise.resolve();
2505
- return new Promise((resolve) => {
2506
- const disposable = monaco.languages.onLanguage(id, () => {
2507
- disposable.dispose();
2508
- resolve();
2509
- });
2510
- });
2511
- }
2512
- function waitForTokenizationSupport(monaco, id) {
2513
- return getTokenizationRegistry(monaco).then(async (registry) => {
2514
- if (!registry) return;
2515
- try {
2516
- if (await registry.getOrCreate?.(id)) return;
2517
- } catch (err) {
2518
- console.error(`[markdown preload] getOrCreate threw for "${id}": ${String(err)}`);
2519
- }
2520
- const maxAttempts = 20;
2521
- const delayMs = 25;
2522
- for (let i = 0; i < maxAttempts; i++) {
2523
- if (registry.get(id)) return;
2524
- await sleep(delayMs);
2525
- }
2526
- console.error(`[markdown preload] tokenization NOT found for "${id}" after polling`);
2527
- });
2528
- }
2529
- async function getTokenizationRegistry(monaco) {
2530
- let registry = monaco.languages.TokenizationRegistry;
2531
- if (registry) return registry;
2532
- try {
2533
- let mod = await __vitePreload(() => import("./languages-BHLYFSz9.js"), __vite__mapDeps([9,5,2]), import.meta.url);
2534
- if (mod.TokenizationRegistry) {
2535
- monaco.languages.TokenizationRegistry = mod.TokenizationRegistry;
2536
- registry = mod.TokenizationRegistry;
2537
- return registry;
2538
- }
2539
- return null;
2540
- } catch (_error) {
2541
- return null;
2542
- }
2543
- }
2544
- function sleep(ms) {
2545
- return new Promise((resolve) => setTimeout(resolve, ms));
2546
- }
2547
- function warmUpModelTokenization(monaco, id) {
2548
- if (typeof monaco.editor?.createModel !== "function" || typeof monaco.editor?.colorizeModelLine !== "function") return;
2549
- let code = "";
2550
- if (id === "json") code = "{ \"foo\": \"bar\" }";
2551
- else if (id === "typescript") code = "const x: number = 42;";
2552
- if (!code) return;
2553
- let model = monaco.editor.createModel(code, id);
2554
- try {
2555
- monaco.editor.colorizeModelLine(model, 1, 2);
2556
- } catch (_error) {} finally {
2557
- model.dispose();
2558
- }
2559
- }
2560
- //#endregion
2561
- export { preloadMarkdownLanguages as i, markdownToHtml as n, markedSync as r, hasCodeBlocks as t };