reactive-md 0.9.0 → 0.9.2

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 (338) hide show
  1. package/CHANGELOG-ch.md +333 -306
  2. package/CHANGELOG.md +334 -307
  3. package/CONTRIBUTING-ch.md +22 -22
  4. package/CONTRIBUTING.md +22 -22
  5. package/README-ch.md +431 -431
  6. package/README-en.md +431 -431
  7. package/README.md +429 -429
  8. package/SECURITY-ch.md +83 -83
  9. package/SECURITY.md +83 -83
  10. package/THIRD_PARTY_NOTICES.md +111 -1
  11. package/bin/reactive-md.mjs +39 -39
  12. package/cli/args.mjs +263 -263
  13. package/cli/assets.mjs +395 -395
  14. package/cli/build.mjs +445 -444
  15. package/cli/check.mjs +444 -444
  16. package/cli/document.mjs +130 -130
  17. package/cli/errors.mjs +61 -61
  18. package/cli/fs-utils.mjs +133 -133
  19. package/cli/glob.mjs +203 -203
  20. package/cli/help.mjs +323 -323
  21. package/cli/init.mjs +1577 -1577
  22. package/cli/lint.mjs +177 -177
  23. package/cli/main.mjs +65 -65
  24. package/cli/migrate.mjs +368 -368
  25. package/cli/package-loader.mjs +41 -41
  26. package/cli/package.mjs +211 -211
  27. package/dist-library/{LocalDocumentView-K7Y-2bRJ.js → LocalDocumentView-BuqgJZEY.js} +11 -11
  28. package/dist-library/LocalDocumentViewCore-DXE0I0Qc.js +9830 -0
  29. package/dist-library/LocalReactiveDocumentCore-CWBe4Mm5.js +275 -0
  30. package/dist-library/{authoring-Co_TiE-P.js → authoring-Ci_KzJ0q.js} +87 -67
  31. package/dist-library/{compile-LhpTKqCR.js → compile-Dx6Uw3D9.js} +11 -11
  32. package/dist-library/{compiler-core-DTxY-qYz.js → compiler-core-DDDdvuLy.js} +2618 -1846
  33. package/dist-library/compiler-dxLPB9Ym.js +86 -0
  34. package/dist-library/{component-state-BBJ08vML.js → component-state-BRwvTV0d.js} +15 -14
  35. package/dist-library/component-state-CwKX_SN5.js +763 -0
  36. package/dist-library/{config-BUo-8O5C.js → config-DXLvctiZ.js} +68 -66
  37. package/dist-library/config-validation-D3D7Dy2J.js +586 -0
  38. package/dist-library/{controls-BWiLLtBO.js → controls-DoZyLCrV.js} +2434 -2410
  39. package/dist-library/{coordinate-BSl6enWV.js → coordinate-B1VFK9fd.js} +108 -107
  40. package/dist-library/{data-table-DfvytZKQ.js → data-table-8-3F15Jf.js} +69 -66
  41. package/dist-library/{default-components-BwQf0oP-.js → default-components-s21NevON.js} +29 -28
  42. package/dist-library/{display-lw3BT1TA.js → display-B_uutKkN.js} +1 -1
  43. package/dist-library/{config-validation-C5kJYk-J.js → document-theme-C8J6UyNO.js} +241 -731
  44. package/dist-library/export-CIAIPBov.js +370 -0
  45. package/dist-library/{gallery-B8kSt1oI.js → gallery-Dv1rOvL0.js} +151 -147
  46. package/dist-library/html-Cr4CBwAH.js +758 -0
  47. package/dist-library/identity-BUx0Q_-d.js +40 -0
  48. package/dist-library/{incremental-D_6vwAAE.js → incremental-9nx92u9c.js} +407 -143
  49. package/dist-library/layout-BBB2VF0S.js +562 -0
  50. package/dist-library/{mount-preset-C5s9ebEH.js → mount-preset-DMZ5wd3t.js} +3 -3
  51. package/dist-library/observability-4KqXhIEU.js +421 -0
  52. package/dist-library/observability-core-Bcu7vpnl.js +24 -0
  53. package/dist-library/options-BBp9IcHm.js +121 -0
  54. package/dist-library/{package-core-D0POW4Gd.js → package-core-K5xesGqy.js} +30 -29
  55. package/dist-library/{parser-standard-OToYcOBL.js → parser-standard-CBA1-hdG.js} +3332 -3840
  56. package/dist-library/{plugin-packs-B1XPWcFs.js → plugin-packs-Bh1HhLym.js} +3 -2
  57. package/dist-library/preset-core-DeZPA8IE.js +1298 -0
  58. package/dist-library/react-0DCh-Mar.js +7 -0
  59. package/dist-library/reactive-md-authoring.js +28 -30
  60. package/dist-library/reactive-md-build.js +99 -61
  61. package/dist-library/reactive-md-compiler-standard.js +10 -9
  62. package/dist-library/reactive-md-compiler.js +3 -3
  63. package/dist-library/reactive-md-default-packs.js +3 -2
  64. package/dist-library/reactive-md-default-preset.js +3 -2
  65. package/dist-library/reactive-md-export.js +4 -4
  66. package/dist-library/reactive-md-minimal-preset.js +2 -2
  67. package/dist-library/reactive-md-minimal-react-preset.js +3 -3
  68. package/dist-library/reactive-md-observability.js +4 -0
  69. package/dist-library/reactive-md-pdf.js +127 -3
  70. package/dist-library/reactive-md-plugin-chart.js +3 -3
  71. package/dist-library/reactive-md-plugin-data.js +5 -5
  72. package/dist-library/reactive-md-plugin-diagram.js +4 -4
  73. package/dist-library/reactive-md-plugin-forms.js +4 -4
  74. package/dist-library/reactive-md-plugin-gallery.js +3 -3
  75. package/dist-library/reactive-md-plugin-navigation.js +3 -3
  76. package/dist-library/reactive-md-plugin-network.js +119 -116
  77. package/dist-library/reactive-md-plugin-plot.js +4 -4
  78. package/dist-library/reactive-md-print.css +304 -304
  79. package/dist-library/reactive-md-react-minimal.js +4 -4
  80. package/dist-library/reactive-md-react-server.js +6 -6
  81. package/dist-library/reactive-md-react-unstyled.js +11 -12
  82. package/dist-library/reactive-md-react.js +11 -12
  83. package/dist-library/reactive-md-runtime-browser.js +2 -1
  84. package/dist-library/reactive-md-runtime.js +4 -3
  85. package/dist-library/reactive-md-sdk.js +8 -7
  86. package/dist-library/reactive-md-standalone-configured.js +2 -2
  87. package/dist-library/reactive-md-standalone-host.js +2 -2
  88. package/dist-library/reactive-md-testing-browser.js +2 -2
  89. package/dist-library/reactive-md-testing-react.js +6 -6
  90. package/dist-library/reactive-md-testing.js +5 -5
  91. package/dist-library/reactive-md.js +649 -373
  92. package/dist-library/{registry-05JiqmEp.js → registry-D6OGkOcX.js} +3 -3
  93. package/dist-library/{registry-core-Bbad9Bm2.js → registry-core-C9xOunaw.js} +1 -1
  94. package/dist-library/{resources-IeJomeUT.js → resources-B0x_w3s9.js} +71 -46
  95. package/dist-library/{runtime-B2fxeveq.js → runtime-BDnnimPA.js} +17 -16
  96. package/dist-library/{runtime-CuOyRe9f.js → runtime-BpQdZmFI.js} +269 -263
  97. package/dist-library/{schema-C-AeByPp.js → schema-BryM_VRW.js} +14 -14
  98. package/dist-library/{sdk-core-BJLJaVR5.js → sdk-core-ChslheKs.js} +499 -158
  99. package/dist-library/{session-core-BGka5D1J.js → session-core-dxQCJBNa.js} +171 -156
  100. package/dist-library/{shareable-jkGi2g6y.js → shareable-B8xMoGEa.js} +265 -297
  101. package/dist-library/types/authoring/catalog.d.ts +1 -2
  102. package/dist-library/types/build/diagnostics.d.ts +1 -1
  103. package/dist-library/types/components/shared/visual-frame.d.ts +6 -2
  104. package/dist-library/types/local/compilation/compiler-capabilities.d.ts +3 -0
  105. package/dist-library/types/local/compilation/compiler-core.d.ts +11 -3
  106. package/dist-library/types/local/compilation/compiler-services.d.ts +8 -4
  107. package/dist-library/types/local/compilation/compiler.d.ts +3 -3
  108. package/dist-library/types/local/compilation/session/incremental.d.ts +20 -5
  109. package/dist-library/types/local/compilation/streaming.d.ts +27 -0
  110. package/dist-library/types/local/configuration/capability-policy.d.ts +3 -0
  111. package/dist-library/types/local/configuration/diagnostic-messages.d.ts +48 -0
  112. package/dist-library/types/local/configuration/options-core.d.ts +1 -2
  113. package/dist-library/types/local/configuration/options.d.ts +1 -0
  114. package/dist-library/types/local/css/author-css.d.ts +66 -0
  115. package/dist-library/types/local/html/extended-fragment.d.ts +41 -0
  116. package/dist-library/types/local/html/html.d.ts +39 -3
  117. package/dist-library/types/local/index.d.ts +7 -1
  118. package/dist-library/types/local/observability-codes.d.ts +2 -0
  119. package/dist-library/types/local/observability-core.d.ts +25 -0
  120. package/dist-library/types/local/observability-messages.d.ts +6 -0
  121. package/dist-library/types/local/observability.d.ts +43 -0
  122. package/dist-library/types/local/parsing/author-markdown.d.ts +11 -0
  123. package/dist-library/types/local/parsing/parse-session.d.ts +2 -2
  124. package/dist-library/types/local/parsing/parser-convert.d.ts +2 -1
  125. package/dist-library/types/local/parsing/parser-core.d.ts +8 -1
  126. package/dist-library/types/local/parsing/parser-internals.d.ts +2 -1
  127. package/dist-library/types/local/parsing/parser.d.ts +2 -2
  128. package/dist-library/types/local/rendering/document/ExtendedHtmlFragment.d.ts +14 -0
  129. package/dist-library/types/local/rendering/document/LocalDocumentViewCore.d.ts +25 -1
  130. package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +1 -1
  131. package/dist-library/types/local/rendering/document/use-author-script.d.ts +3 -0
  132. package/dist-library/types/local/rendering/document/view-render-context.d.ts +11 -1
  133. package/dist-library/types/local/runtime/author-script-protocol.d.ts +59 -0
  134. package/dist-library/types/local/transport/worker.d.ts +79 -5
  135. package/dist-library/types/local/types.d.ts +60 -16
  136. package/dist-library/types/observability.d.ts +7 -0
  137. package/dist-library/types/react/component-api.d.ts +10 -1
  138. package/dist-library/types/react/component-utils.d.ts +9 -1
  139. package/dist-library/types/react/sdk-core.d.ts +4 -1
  140. package/dist-library/types/shareable.d.ts +5 -4
  141. package/dist-library/types/standalone/prepare.d.ts +1 -1
  142. package/dist-library/types/standalone/session-core.d.ts +3 -2
  143. package/dist-library/{types-BFC5rzC4.js → types-Ib5kSScP.js} +1 -1
  144. package/dist-library/types-daDo2c_w.js +3 -0
  145. package/dist-library/{validation-BlDL2uD9.js → validation-B3RI0xOk.js} +218 -200
  146. package/dist-library/version-DAxuGOG2.js +147 -0
  147. package/dist-library/{visual-frame-G8PHoj1e.js → visual-frame-_rcd5HUv.js} +6 -5
  148. package/dist-library/{visuals-BkYRmYGO.js → visuals-DkDhNdEZ.js} +24191 -24190
  149. package/dist-standalone/reactive-md-standalone.js +124 -117
  150. package/docs/README-ch.md +101 -94
  151. package/docs/README.md +101 -94
  152. package/docs/compatibility/api-stability-ch.md +25 -0
  153. package/docs/compatibility/api-stability-en.md +25 -0
  154. package/docs/compatibility/compatibility-ch.md +146 -129
  155. package/docs/compatibility/compatibility-en.md +146 -129
  156. package/docs/compatibility/compatibility-manifest.schema.json +161 -0
  157. package/docs/compatibility/deprecation-ch.md +21 -0
  158. package/docs/compatibility/deprecation-en.md +21 -0
  159. package/docs/compatibility/source-versioning-ch.md +162 -162
  160. package/docs/compatibility/source-versioning-en.md +162 -162
  161. package/docs/compatibility/support-matrix-ch.md +108 -0
  162. package/docs/compatibility/support-matrix-en.md +108 -0
  163. package/docs/development/component-development-ch.md +66 -66
  164. package/docs/development/component-development-en.md +66 -66
  165. package/docs/development/component-development-reference-ch.md +253 -253
  166. package/docs/development/component-development-reference-en.md +238 -238
  167. package/docs/development/component-protocol-ch.md +748 -748
  168. package/docs/development/component-protocol-en.md +750 -750
  169. package/docs/development/extension-tutorial-ch.md +308 -308
  170. package/docs/development/extension-tutorial-en.md +308 -308
  171. package/docs/development/performance-overview-ch.md +422 -422
  172. package/docs/development/performance-overview-en.md +422 -422
  173. package/docs/guides/local-guide-ch.md +532 -532
  174. package/docs/guides/local-guide-en.md +532 -532
  175. package/docs/integration/author-tools-ch.md +64 -64
  176. package/docs/integration/author-tools-en.md +64 -64
  177. package/docs/integration/compiler-ch.md +49 -47
  178. package/docs/integration/compiler-en.md +36 -34
  179. package/docs/integration/directory-discovery-en.md +1 -1
  180. package/docs/integration/editor-ch.md +295 -295
  181. package/docs/integration/editor-en.md +303 -303
  182. package/docs/integration/extension-sdk-ch.md +394 -394
  183. package/docs/integration/extension-sdk-en.md +379 -379
  184. package/docs/integration/local-integration-ch.md +646 -524
  185. package/docs/integration/local-integration-en.md +662 -540
  186. package/docs/integration/shareable-export-ch.md +307 -305
  187. package/docs/integration/shareable-export-en.md +309 -307
  188. package/docs/reference/diagnostics-counting-ch.md +104 -104
  189. package/docs/reference/diagnostics-counting-en.md +104 -104
  190. package/docs/reference/html-compatibility-ch.md +93 -140
  191. package/docs/reference/html-compatibility-en.md +95 -140
  192. package/docs/reference/local-interaction-syntax-ch.md +724 -724
  193. package/docs/reference/local-interaction-syntax-en.md +722 -722
  194. package/docs/reference/public-api-ch.md +39 -7
  195. package/docs/reference/public-api-en.md +39 -7
  196. package/docs/reference/theme-protocol-ch.md +198 -198
  197. package/docs/reference/theme-protocol-en.md +217 -217
  198. package/docs/releases/release-0.4.0-ch.md +91 -91
  199. package/docs/releases/release-0.4.0-en.md +91 -91
  200. package/docs/releases/release-0.4.1-ch.md +25 -25
  201. package/docs/releases/release-0.4.1-en.md +25 -25
  202. package/docs/releases/release-0.5.0-ch.md +43 -43
  203. package/docs/releases/release-0.5.0-en.md +43 -43
  204. package/docs/releases/release-0.5.1-ch.md +41 -41
  205. package/docs/releases/release-0.5.1-en.md +41 -41
  206. package/docs/releases/release-0.5.2-ch.md +37 -37
  207. package/docs/releases/release-0.5.2-en.md +37 -37
  208. package/docs/releases/release-0.5.3-ch.md +26 -26
  209. package/docs/releases/release-0.5.3-en.md +26 -26
  210. package/docs/releases/release-0.6.0-ch.md +59 -59
  211. package/docs/releases/release-0.6.0-en.md +59 -59
  212. package/docs/releases/release-0.6.1-ch.md +29 -29
  213. package/docs/releases/release-0.6.1-en.md +29 -29
  214. package/docs/releases/release-0.7.0-ch.md +86 -86
  215. package/docs/releases/release-0.7.0-en.md +86 -86
  216. package/docs/releases/release-0.9.1-ch.md +29 -0
  217. package/docs/releases/release-0.9.1-en.md +29 -0
  218. package/docs/releases/release-0.9.2-ch.md +33 -0
  219. package/docs/releases/release-0.9.2-en.md +33 -0
  220. package/examples/component-package/README-ch.md +101 -101
  221. package/examples/component-package/README.md +133 -133
  222. package/examples/conformance/README-ch.md +55 -55
  223. package/examples/conformance/README.md +55 -55
  224. package/examples/conformance/component-protocol-1.json +482 -482
  225. package/examples/conformance/component-protocol-1.schema.json +76 -76
  226. package/examples/conformance/local-draft-1.json +50 -50
  227. package/examples/conformance/local-draft-2.json +212 -212
  228. package/examples/game-2048-package/LICENSE +21 -21
  229. package/examples/game-2048-package/NOTICES.md +11 -11
  230. package/examples/game-2048-package/README-ch.md +91 -91
  231. package/examples/game-2048-package/README.md +98 -98
  232. package/examples/game-2048-package/package.json +35 -35
  233. package/examples/game-2048-package/sample/document.reactive.md +17 -17
  234. package/examples/game-2048-package/scripts/build-export.mjs +44 -44
  235. package/examples/game-2048-package/scripts/build.mjs +130 -130
  236. package/examples/game-2048-package/scripts/verify.mjs +180 -180
  237. package/examples/game-2048-package/src/component.css +161 -161
  238. package/examples/game-2048-package/src/components.tsx +326 -326
  239. package/examples/game-2048-package/src/game-engine.ts +228 -228
  240. package/examples/game-2048-package/src/harness.tsx +34 -34
  241. package/examples/game-2048-package/src/manifest.ts +85 -85
  242. package/examples/game-2048-package/src/node-entry.ts +30 -30
  243. package/examples/game-2048-package/src/sample.ts +4 -4
  244. package/examples/game-2048-package/tsconfig.json +15 -15
  245. package/examples/integration/README-ch.md +82 -63
  246. package/examples/integration/README.md +82 -63
  247. package/examples/integration/core/index.mjs +32 -32
  248. package/examples/integration/extension-sdk/README-ch.md +24 -24
  249. package/examples/integration/extension-sdk/README.md +24 -24
  250. package/examples/integration/streaming/index.html +48 -0
  251. package/examples/integration/streaming/main.js +175 -0
  252. package/examples/integration/streaming/package.json +13 -0
  253. package/examples/integration/streaming/worker.js +3 -0
  254. package/examples/integration/worker/index.html +19 -19
  255. package/examples/integration/worker/main.js +61 -61
  256. package/examples/integration/worker/package.json +13 -13
  257. package/examples/integration/worker/worker.js +3 -3
  258. package/examples/local/README-ch.md +76 -76
  259. package/examples/local/README.md +76 -76
  260. package/examples/local/charts.reactive.md +73 -73
  261. package/examples/local/recipes/invoice-zh.reactive.md +36 -36
  262. package/examples/local/recipes/invoice.reactive.md +36 -36
  263. package/examples/local/recipes/workshop-zh.reactive.md +33 -33
  264. package/examples/local/recipes/workshop.reactive.md +33 -33
  265. package/examples/local/showcase/README-ch.md +22 -22
  266. package/examples/local/showcase/README.md +31 -31
  267. package/examples/local/showcase/explore.reactive.md +102 -102
  268. package/examples/local/showcase/flow.reactive.md +86 -86
  269. package/examples/local/showcase/forms.reactive.md +126 -126
  270. package/examples/local/showcase/functions.reactive.md +119 -119
  271. package/examples/local/showcase/layout.reactive.md +100 -100
  272. package/examples/local/showcase/statistics.reactive.md +108 -108
  273. package/examples/local/showcase/tasks.reactive.md +89 -89
  274. package/examples/local/showcase/zh/explore.reactive.md +102 -102
  275. package/examples/local/showcase/zh/flow.reactive.md +86 -86
  276. package/examples/local/showcase/zh/forms.reactive.md +126 -126
  277. package/examples/local/showcase/zh/functions.reactive.md +119 -119
  278. package/examples/local/showcase/zh/layout.reactive.md +100 -100
  279. package/examples/local/showcase/zh/statistics.reactive.md +108 -108
  280. package/examples/local/showcase/zh/tasks.reactive.md +89 -89
  281. package/examples/minimal-extension/README-ch.md +78 -78
  282. package/examples/minimal-extension/README.md +78 -78
  283. package/examples/minimal-extension/index.html +15 -15
  284. package/examples/minimal-extension/package.json +26 -26
  285. package/examples/minimal-extension/sample/document.reactive.md +10 -10
  286. package/examples/minimal-extension/scripts/build.mjs +32 -32
  287. package/examples/minimal-extension/scripts/export.mjs +72 -72
  288. package/examples/minimal-extension/scripts/test-node.mjs +75 -75
  289. package/examples/minimal-extension/src/extension.tsx +90 -90
  290. package/examples/minimal-extension/src/preview.tsx +12 -12
  291. package/examples/minimal-extension/src/source.ts +4 -4
  292. package/examples/minimal-extension/tsconfig.json +14 -14
  293. package/examples/sci-fi-theme/README-ch.md +133 -133
  294. package/examples/sci-fi-theme/README.md +148 -148
  295. package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -454
  296. package/examples/sci-fi-theme/demo/demo.css +638 -638
  297. package/examples/sci-fi-theme/demo/document.reactive.md +206 -206
  298. package/examples/sci-fi-theme/demo/index.html +13 -13
  299. package/examples/sci-fi-theme/demo/main.tsx +215 -215
  300. package/examples/sci-fi-theme/docs/design-system-ch.md +245 -245
  301. package/examples/sci-fi-theme/docs/design-system.md +474 -474
  302. package/examples/sci-fi-theme/package.json +28 -28
  303. package/examples/sci-fi-theme/scripts/screenshot.mjs +98 -98
  304. package/examples/sci-fi-theme/src/components.css +2370 -2370
  305. package/examples/sci-fi-theme/src/index.ts +6 -6
  306. package/examples/sci-fi-theme/src/notch.css +142 -142
  307. package/examples/sci-fi-theme/src/sci-fi.css +7 -7
  308. package/examples/sci-fi-theme/src/theme.ts +39 -39
  309. package/examples/sci-fi-theme/tsconfig.json +20 -20
  310. package/examples/sci-fi-theme/vite.config.ts +24 -24
  311. package/examples/tetris-package/LICENSE +21 -21
  312. package/examples/tetris-package/NOTICES.md +11 -11
  313. package/examples/tetris-package/README-ch.md +91 -91
  314. package/examples/tetris-package/README.md +95 -95
  315. package/examples/tetris-package/package.json +35 -35
  316. package/examples/tetris-package/sample/document.reactive.md +16 -16
  317. package/examples/tetris-package/scripts/build-export.mjs +44 -44
  318. package/examples/tetris-package/scripts/build.mjs +130 -130
  319. package/examples/tetris-package/scripts/verify.mjs +173 -173
  320. package/examples/tetris-package/src/component.css +145 -145
  321. package/examples/tetris-package/src/components.tsx +334 -334
  322. package/examples/tetris-package/src/harness.tsx +34 -34
  323. package/examples/tetris-package/src/manifests.ts +93 -93
  324. package/examples/tetris-package/src/node-entry.ts +16 -16
  325. package/examples/tetris-package/src/sample.ts +4 -4
  326. package/examples/tetris-package/src/tetris-engine.ts +325 -325
  327. package/examples/tetris-package/tsconfig.json +15 -15
  328. package/package.json +12 -1
  329. package/dist-library/LocalDocumentViewCore-BLG4hMuO.js +0 -9535
  330. package/dist-library/LocalReactiveDocumentCore-DVQ6WA9G.js +0 -259
  331. package/dist-library/compiler-DfGbQhyD.js +0 -62
  332. package/dist-library/component-state-BoLCGee4.js +0 -801
  333. package/dist-library/component-utils-BvHL8VGt.js +0 -298
  334. package/dist-library/export-C7IDW9ul.js +0 -311
  335. package/dist-library/layout-C22VjZh0.js +0 -542
  336. package/dist-library/options-CdSKOi7p.js +0 -116
  337. package/dist-library/preset-core-CKc5YXSM.js +0 -1443
  338. package/dist-library/react-LY5qsVeP.js +0 -7
@@ -1,44 +1,47 @@
1
- import { O as e } from "./preset-core-CKc5YXSM.js";
2
- import { i as t } from "./props-sJ8vk0cr.js";
3
- import { s as n } from "./config-BUo-8O5C.js";
4
- import { C as r, E as i, T as a, j as o, x as s } from "./component-state-BoLCGee4.js";
5
- import { t as c } from "./runtime-B2fxeveq.js";
6
- import { i as l } from "./resources-IeJomeUT.js";
7
- import { Component as u, createElement as d } from "react";
1
+ import { s as e } from "./document-theme-C8J6UyNO.js";
2
+ import { O as t } from "./preset-core-DeZPA8IE.js";
3
+ import { i as n, o as r } from "./props-sJ8vk0cr.js";
4
+ import { s as i } from "./config-DXLvctiZ.js";
5
+ import { S as a } from "./component-state-CwKX_SN5.js";
6
+ import { i as o, n as s, o as c, s as l } from "./identity-BUx0Q_-d.js";
7
+ import { t as u } from "./runtime-BDnnimPA.js";
8
+ import { i as d } from "./resources-B0x_w3s9.js";
9
+ import { Component as f, createElement as p, useCallback as m, useEffect as h, useRef as g, useState as _ } from "react";
10
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
8
11
  // src/react/component-api.tsx
9
- var f = Symbol("reactive-md.content-node");
10
- function p(e) {
11
- return e[f];
12
+ var b = Symbol("reactive-md.content-node");
13
+ function x(e) {
14
+ return e[b];
12
15
  }
13
- function m(e, t) {
14
- return Object.defineProperty(e, f, {
16
+ function S(e, t) {
17
+ return Object.defineProperty(e, b, {
15
18
  value: t,
16
19
  enumerable: !1,
17
20
  configurable: !1,
18
21
  writable: !1
19
22
  }), Object.freeze(e);
20
23
  }
21
- var h = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/;
22
- function g(e) {
24
+ var C = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/;
25
+ function w(e) {
23
26
  return e === null ? "" : typeof e == "string" ? e : typeof e == "number" ? Number.isFinite(e) ? String(e) : null : typeof e == "boolean" ? e ? "true" : "false" : null;
24
27
  }
25
- function _(e) {
28
+ function T(e) {
26
29
  if (!Number.isFinite(e)) return "—";
27
30
  if (Object.is(e, -0)) return "0";
28
31
  let t = Math.abs(e);
29
32
  return t >= 0xe8d4a51000 || t > 0 && t < 1e-4 ? e.toExponential(3).replace(/(\.\d*?)0+e/, "$1e").replace(/\.e/, "e") : Number(e.toFixed(6)).toString();
30
33
  }
31
- function v(e) {
34
+ function E(e) {
32
35
  return Array.isArray(e) ? Object.freeze(e.slice()) : e === void 0 ? null : e;
33
36
  }
34
- function y(e) {
37
+ function D(e) {
35
38
  return Array.isArray(e) ? e.slice() : e;
36
39
  }
37
- function b(e, n, r, i) {
40
+ function O(e, t, r, i) {
38
41
  try {
39
42
  return {
40
43
  ok: !0,
41
- value: t(e, n, r, i)
44
+ value: n(e, t, r, i)
42
45
  };
43
46
  } catch (e) {
44
47
  return {
@@ -47,16 +50,16 @@ function b(e, n, r, i) {
47
50
  };
48
51
  }
49
52
  }
50
- var x = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
51
- function C(e) {
52
- S.delete(D(e));
53
+ var ee = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap();
54
+ function te(e) {
55
+ k.delete(j(e));
53
56
  }
54
- var w = /* @__PURE__ */ new WeakMap(), T = 4096, E = 512;
55
- function D(e) {
56
- let t = M.get(e);
57
- return t || (t = Object.freeze({}), M.set(e, t)), t;
57
+ var A = /* @__PURE__ */ new WeakMap(), ne = 4096, re = 512;
58
+ function j(e) {
59
+ let t = N.get(e);
60
+ return t || (t = Object.freeze({}), N.set(e, t)), t;
58
61
  }
59
- function O(e, t, n) {
62
+ function ie(e, t, n) {
60
63
  let { environment: r, node: i } = e, a = r.positionOf?.(i.range.start) ?? {
61
64
  line: 1,
62
65
  column: 1
@@ -73,22 +76,22 @@ function O(e, t, n) {
73
76
  column: a.column
74
77
  };
75
78
  }
76
- function k(e, t, n) {
79
+ function ae(e, t, n) {
77
80
  if (n.length === 0) return;
78
81
  if (typeof window > "u") {
79
82
  e.report(n);
80
83
  return;
81
84
  }
82
- let r = w.get(t);
85
+ let r = A.get(t);
83
86
  r || (r = {
84
87
  diagnostics: [],
85
88
  scheduled: !1,
86
89
  report: e.report
87
- }, w.set(t, r));
90
+ }, A.set(t, r));
88
91
  let i = r;
89
92
  i.report = e.report;
90
93
  for (let e of n) {
91
- if (i.diagnostics.length >= E) break;
94
+ if (i.diagnostics.length >= re) break;
92
95
  i.diagnostics.push(e);
93
96
  }
94
97
  if (i.scheduled) return;
@@ -100,16 +103,16 @@ function k(e, t, n) {
100
103
  };
101
104
  typeof queueMicrotask == "function" ? queueMicrotask(a) : setTimeout(a, 0);
102
105
  }
103
- function A(e, t, n, r) {
106
+ function oe(e, t, n, r) {
104
107
  if (!e) return {};
105
- let i = t ?? {}, a = {}, o = r?.environment.mode === "static" && typeof window > "u", s = r !== void 0, c = r ? D(n) : null, l = null;
108
+ let i = t ?? {}, a = {}, o = r?.environment.mode === "static" && typeof window > "u", s = r !== void 0, c = r ? j(n) : null, l = null;
106
109
  if (r && c && s) {
107
- let e = o ? S : x;
108
- l = e.get(c) ?? null, l ? l.size > T && l.clear() : (l = /* @__PURE__ */ new Map(), e.set(c, l));
110
+ let e = o ? k : ee;
111
+ l = e.get(c) ?? null, l ? l.size > ne && l.clear() : (l = /* @__PURE__ */ new Map(), e.set(c, l));
109
112
  }
110
113
  let u = [];
111
114
  for (let t of Object.keys(e.props)) {
112
- let o = Object.hasOwn(i, t) && typeof i[t] == "string" ? i[t] : void 0, s = b(e, t, o, n);
115
+ let o = Object.hasOwn(i, t) && typeof i[t] == "string" ? i[t] : void 0, s = O(e, t, o, n);
113
116
  if (s.ok) a[t] = s.value, r && l && l.delete(`${r.node.id}\u0000${t}`);
114
117
  else if (a[t] = null, r) {
115
118
  if (l) {
@@ -117,32 +120,32 @@ function A(e, t, n, r) {
117
120
  if (l.get(e) === n) continue;
118
121
  l.set(e, n);
119
122
  }
120
- u.push(O(r, t, s.error));
123
+ u.push(ie(r, t, s.error));
121
124
  }
122
125
  }
123
- return r && c && k(r.environment, c, u), a;
126
+ return r && c && ae(r.environment, c, u), a;
124
127
  }
125
- function ee(e) {
128
+ function se(e) {
126
129
  return e?.bindings ?? {};
127
130
  }
128
- function j(e, t, n, r) {
131
+ function M(e, t, n, r) {
129
132
  let i = r.get(e);
130
133
  if (i) return i;
131
- let a = e.type === "component" || e.type === "hostComponent", o = a ? t.definitionFor(e.name ?? "") : void 0, s = Object.freeze(a ? A(o, e.attrs, t.runtime, {
134
+ let a = e.type === "component" || e.type === "hostComponent", o = a ? t.definitionFor(e.name ?? "") : void 0, s = Object.freeze(a ? oe(o, e.attrs, t.runtime, {
132
135
  environment: t,
133
136
  node: e
134
- }) : {}), c = (e.children ?? []).map((e) => j(e, t, n, r)), l = null;
137
+ }) : {}), c = (e.children ?? []).map((e) => M(e, t, n, r)), l = null;
135
138
  if (a) try {
136
- l = v(t.runtime.get(e));
139
+ l = E(t.runtime.get(e));
137
140
  } catch {
138
141
  l = null;
139
142
  }
140
143
  else if (e.type === "interpolation") try {
141
- l = v(t.runtime.evaluate(e.value ?? ""));
144
+ l = E(t.runtime.evaluate(e.value ?? ""));
142
145
  } catch {
143
146
  l = null;
144
147
  }
145
- let u = m({
148
+ let u = S({
146
149
  id: e.id,
147
150
  kind: a ? "component" : e.type,
148
151
  name: a ? e.name ?? "" : "",
@@ -161,11 +164,11 @@ function j(e, t, n, r) {
161
164
  }, e);
162
165
  return r.set(e, u), u;
163
166
  }
164
- var M = /* @__PURE__ */ new WeakMap();
165
- function N(e, t, n) {
166
- let r = t === "static", i = M.get(e);
167
- i || (i = Object.freeze({}), M.set(e, i));
168
- let a = p, o = (e) => (e.length > 0 && n(e), e), s = (e, t) => {
167
+ var N = /* @__PURE__ */ new WeakMap();
168
+ function ce(e, t, n) {
169
+ let r = t === "static", i = N.get(e);
170
+ i || (i = Object.freeze({}), N.set(e, i));
171
+ let a = x, o = (e) => (e.length > 0 && n(e), e), s = (e, t) => {
169
172
  let n = {
170
173
  start: e.range.start,
171
174
  end: e.range.end
@@ -182,12 +185,12 @@ function N(e, t, n) {
182
185
  return Object.freeze({
183
186
  identity: i,
184
187
  get(t, n) {
185
- return v(e.get(a(t), n === "value" ? void 0 : n));
188
+ return E(e.get(a(t), n === "value" ? void 0 : n));
186
189
  },
187
190
  set(t, n, i) {
188
191
  if (r) return s(t, /* @__PURE__ */ Error("Runtime is read-only in static mode."));
189
192
  try {
190
- return o(e.set(a(t), y(n), i === "value" ? void 0 : i));
193
+ return o(e.set(a(t), D(n), i === "value" ? void 0 : i));
191
194
  } catch (e) {
192
195
  return s(t, e);
193
196
  }
@@ -196,7 +199,7 @@ function N(e, t, n) {
196
199
  if (r) return s(t, /* @__PURE__ */ Error("Runtime is read-only in static mode."));
197
200
  try {
198
201
  let r = {};
199
- for (let [e, t] of Object.entries(n)) r[e] = y(t);
202
+ for (let [e, t] of Object.entries(n)) r[e] = D(t);
200
203
  return o(e.setMany(a(t), r));
201
204
  } catch (e) {
202
205
  return s(t, e);
@@ -215,12 +218,12 @@ function N(e, t, n) {
215
218
  }
216
219
  },
217
220
  evaluate(t) {
218
- return v(e.evaluate(t));
221
+ return E(e.evaluate(t));
219
222
  },
220
223
  snapshot() {
221
224
  try {
222
225
  let t = e.snapshot(), n = {};
223
- for (let [e, r] of Object.entries(t.state)) n[e] = v(r);
226
+ for (let [e, r] of Object.entries(t.state)) n[e] = E(r);
224
227
  return {
225
228
  revision: t.revision,
226
229
  state: Object.freeze(n)
@@ -264,7 +267,7 @@ function N(e, t, n) {
264
267
  }
265
268
  });
266
269
  }
267
- function te(e, t, n, r) {
270
+ function le(e, t, n, r) {
268
271
  return Object.freeze({
269
272
  get: () => {
270
273
  try {
@@ -286,11 +289,11 @@ function te(e, t, n, r) {
286
289
  }
287
290
  });
288
291
  }
289
- function ne(e, t) {
292
+ function ue(e, t) {
290
293
  let n = [], r = e.children, i = t.definitionFor(e.name), a = i?.rules?.find((e) => e.kind === "options-body"), o = a?.kind === "options-body" ? a.child : i?.structure?.child ?? "option", s = a?.kind === "options-body" ? a.valueAttribute : i?.structure?.valueAttribute ?? "value", c = 0;
291
294
  for (let i of r) {
292
295
  if (i.kind !== "component" || i.name !== o) continue;
293
- let r = p(i), a = i.attrs[s] ?? `option-${c + 1}`;
296
+ let r = x(i), a = i.attrs[s] ?? `option-${c + 1}`;
294
297
  c += 1;
295
298
  let l = t.renderToText(r.children) || i.attrs[s] || "";
296
299
  n.push(Object.freeze({
@@ -306,8 +309,8 @@ function P(e, t) {
306
309
  let n = e.children ?? [], r = n.filter((e) => !(e.type === "text" && !(e.value ?? "").trim())), i, a = "empty", o = "", s = null, c = null;
307
310
  if (r.length === 1 && r[0].type === "interpolation") try {
308
311
  i = t.runtime.evaluate(r[0].value ?? "");
309
- let e = g(i);
310
- i === null ? (a = "null", o = "") : typeof i == "string" ? (a = "string", o = i) : typeof i == "number" ? Number.isFinite(i) ? (a = "number", o = _(i), s = i) : (a = "error", o = t.locale === "zh" ? "无法计算" : "Cannot compute", c = t.locale === "zh" ? "结果不是有限数字" : "Result is not a finite number") : typeof i == "boolean" ? (a = "boolean", o = i ? "true" : "false") : (a = "array", o = e ?? "", c = t.locale === "zh" ? "数组需要先用 len 等函数转换" : "Arrays must first be converted with a function such as len");
312
+ let e = w(i);
313
+ i === null ? (a = "null", o = "") : typeof i == "string" ? (a = "string", o = i) : typeof i == "number" ? Number.isFinite(i) ? (a = "number", o = T(i), s = i) : (a = "error", o = t.locale === "zh" ? "无法计算" : "Cannot compute", c = t.locale === "zh" ? "结果不是有限数字" : "Result is not a finite number") : typeof i == "boolean" ? (a = "boolean", o = i ? "true" : "false") : (a = "array", o = e ?? "", c = t.locale === "zh" ? "数组需要先用 len 等函数转换" : "Arrays must first be converted with a function such as len");
311
314
  } catch (e) {
312
315
  a = "error", o = t.locale === "zh" ? "无法计算" : "Cannot compute", c = e instanceof Error ? e.message : String(e);
313
316
  }
@@ -315,7 +318,7 @@ function P(e, t) {
315
318
  let e = "", l = null, u = (n) => {
316
319
  for (let r of n ?? []) if (r.type === "text" || r.type === "inlineCode" || r.type === "code") e += r.value ?? "";
317
320
  else if (r.type === "interpolation") try {
318
- let n = g(t.runtime.evaluate(r.value ?? ""));
321
+ let n = w(t.runtime.evaluate(r.value ?? ""));
319
322
  n === null ? l ??= t.locale === "zh" ? "数组需要先用 len 等函数转换" : "Arrays must first be converted with a function such as len" : e += n;
320
323
  } catch (n) {
321
324
  l ??= n instanceof Error ? n.message : String(n), e += t.locale === "zh" ? "无法计算" : "Cannot compute";
@@ -324,7 +327,7 @@ function P(e, t) {
324
327
  };
325
328
  u(n);
326
329
  let d = r.length > 0 && r.every((e) => e.type === "text"), f = e.trim();
327
- if (d && h.test(f)) {
330
+ if (d && C.test(f)) {
328
331
  let t = Number(f);
329
332
  Number.isFinite(t) && (a = "number", o = e, s = t, i = t);
330
333
  }
@@ -339,10 +342,10 @@ function P(e, t) {
339
342
  render: () => t.renderInline(n, !0)
340
343
  });
341
344
  }
342
- function re(e, t) {
345
+ function de(e, t) {
343
346
  let n = e.children.find((e) => e.kind === "table");
344
347
  if (!n) return null;
345
- let r = (p(n).children ?? []).filter((e) => e.type === "tableRow");
348
+ let r = (x(n).children ?? []).filter((e) => e.type === "tableRow");
346
349
  if (r.length === 0) return null;
347
350
  let i = (r[0].children ?? []).map((e) => P(e, t));
348
351
  return Object.freeze({
@@ -354,11 +357,11 @@ function re(e, t) {
354
357
  })))
355
358
  });
356
359
  }
357
- function ie(e, t) {
360
+ function fe(e, t) {
358
361
  let n = e["state-key"];
359
- return a(typeof n == "string" ? n : t["state-key"]);
362
+ return c(typeof n == "string" ? n : t["state-key"]);
360
363
  }
361
- function ae(e) {
364
+ function pe(e) {
362
365
  try {
363
366
  return e.document.source;
364
367
  } catch {
@@ -369,87 +372,87 @@ var F = /* @__PURE__ */ new WeakMap();
369
372
  function I(e) {
370
373
  if (e.services !== void 0) return e.services;
371
374
  let t = F.get(e);
372
- return t === void 0 && (t = c({ sourceDigest: r(ae(e)) }), F.set(e, t)), t;
375
+ return t === void 0 && (t = u({ sourceDigest: o(pe(e)) }), F.set(e, t)), t;
373
376
  }
374
377
  function L(e, t) {
375
- let n = t.definitionFor(e.name ?? ""), r = /* @__PURE__ */ new Map(), a = j(e, t, t.visible, r), c = N(t.runtime, t.mode, t.report), l = t.services ?? I(t.runtime), u = n?.id ?? e.name ?? e.type, d = ie(a.props, a.attrs), f = null, m = () => (f === null && (f = l.state.handle({
378
+ let n = t.definitionFor(e.name ?? ""), r = /* @__PURE__ */ new Map(), i = M(e, t, t.visible, r), o = ce(t.runtime, t.mode, t.report), c = t.services ?? I(t.runtime), u = n?.id ?? e.name ?? e.type, d = fe(i.props, i.attrs), f = null, p = () => (f === null && (f = c.state.handle({
376
379
  nodeId: e.id,
377
380
  component: u,
378
381
  componentVersion: n?.version ?? "0.0.0",
379
382
  stateKey: d,
380
383
  stateVersion: 0
381
- })), f), h = typeof a.props.seed == "number" && Number.isFinite(a.props.seed) ? a.props.seed : void 0, g = i({
382
- explicitSeed: h,
383
- documentSeed: l.randomSeed,
384
+ })), f), m = typeof i.props.seed == "number" && Number.isFinite(i.props.seed) ? i.props.seed : void 0, h = l({
385
+ explicitSeed: m,
386
+ documentSeed: c.randomSeed,
384
387
  componentId: u,
385
388
  nodeId: e.id,
386
389
  stateKey: d
387
- }), v = Object.freeze({
388
- network: t.mode === "static" ? o : t.network ?? t.runtime.network ?? o,
390
+ }), g = Object.freeze({
391
+ network: t.mode === "static" ? a : t.network ?? t.runtime.network ?? a,
389
392
  random: Object.freeze({
390
- seed: g,
391
- derive: (e) => s(g, e)
393
+ seed: h,
394
+ derive: (e) => s(h, e)
392
395
  }),
393
- clock: l.clock,
394
- scheduler: l.scheduler,
396
+ clock: c.clock,
397
+ scheduler: c.scheduler,
395
398
  get state() {
396
- return m();
399
+ return p();
397
400
  }
398
- }), y = t.mode === "static", b = ee(n), x = {};
399
- for (let e of Object.keys(b)) x[e] = te(c, a, e, y);
400
- let S = x.value ?? Object.freeze({
401
+ }), _ = t.mode === "static", v = se(n), y = {};
402
+ for (let e of Object.keys(v)) y[e] = le(o, i, e, _);
403
+ let b = y.value ?? Object.freeze({
401
404
  get: () => null,
402
405
  set: () => ({
403
406
  ok: !1,
404
407
  diagnostics: []
405
408
  })
406
- }), C = Object.freeze({
409
+ }), S = Object.freeze({
407
410
  render: () => t.renderChildren(e.children, t.visible),
408
411
  inline: () => t.renderInline(e.children, t.visible),
409
412
  text: () => t.renderToText(e.children),
410
- items: () => a.children,
411
- renderItems: (e, n) => t.renderChildren(e.map((e) => p(e)), n ?? t.visible),
412
- renderInlineItems: (e, n) => t.renderInline(e.map((e) => p(e)), n ?? t.visible),
413
- textOf: (e) => t.renderToText(e.map((e) => p(e))),
414
- options: () => ne(a, t),
415
- table: () => re(a, t),
416
- math: () => a.children.filter((e) => e.kind === "math" || e.kind === "inlineMath")
417
- }), w = Object.freeze({
418
- value: S,
419
- slots: Object.freeze(x),
420
- isReadOnly: y,
413
+ items: () => i.children,
414
+ renderItems: (e, n) => t.renderChildren(e.map((e) => x(e)), n ?? t.visible),
415
+ renderInlineItems: (e, n) => t.renderInline(e.map((e) => x(e)), n ?? t.visible),
416
+ textOf: (e) => t.renderToText(e.map((e) => x(e))),
417
+ options: () => ue(i, t),
418
+ table: () => de(i, t),
419
+ math: () => i.children.filter((e) => e.kind === "math" || e.kind === "inlineMath")
420
+ }), C = Object.freeze({
421
+ value: b,
422
+ slots: Object.freeze(y),
423
+ isReadOnly: _,
421
424
  get(e = "value") {
422
- let t = x[e];
425
+ let t = y[e];
423
426
  return t ? t.get() : null;
424
427
  },
425
428
  set(e, t) {
426
- let n = x[e];
429
+ let n = y[e];
427
430
  return n ? n.set(t) : {
428
431
  ok: !1,
429
432
  diagnostics: [{
430
433
  code: "local.extension.binding",
431
- message: `Component <${a.name || a.id}> has no binding slot "${e}".`,
434
+ message: `Component <${i.name || i.id}> has no binding slot "${e}".`,
432
435
  severity: "error",
433
- range: a.range,
436
+ range: i.range,
434
437
  line: 1,
435
438
  column: 1
436
439
  }]
437
440
  };
438
441
  },
439
442
  setMany(e) {
440
- if (y) return {
443
+ if (_) return {
441
444
  ok: !1,
442
445
  diagnostics: []
443
446
  };
444
- let t = c.setMany(a, e);
447
+ let t = o.setMany(i, e);
445
448
  return {
446
449
  ok: t.length === 0,
447
450
  diagnostics: t
448
451
  };
449
452
  }
450
- }), T = Object.freeze({
451
- fieldFor: (e) => t.validationFieldFor(p(e)),
452
- hintFor: (e) => t.validationHintFor(p(e))
453
+ }), w = Object.freeze({
454
+ fieldFor: (e) => t.validationFieldFor(x(e)),
455
+ hintFor: (e) => t.validationHintFor(x(e))
453
456
  }), E = Object.freeze({
454
457
  targetId: (e) => t.targetId(e),
455
458
  anchorId: () => t.anchorId(e),
@@ -489,15 +492,18 @@ function L(e, t) {
489
492
  }), O = Object.freeze({
490
493
  locale: t.locale,
491
494
  t: (e, n) => t.locale === "zh" ? n : e,
492
- formatNumber: _
495
+ formatNumber: T
493
496
  });
494
497
  return Object.freeze({
495
- props: a.props,
496
- content: a,
497
- services: v,
498
- bindings: w,
499
- children: C,
500
- runtime: c,
498
+ props: i.props,
499
+ authorStyle: t.authorStyle,
500
+ authorStyleText: t.authorStyleText,
501
+ dispatchAuthorAction: t.dispatchAuthorAction,
502
+ content: i,
503
+ services: g,
504
+ bindings: C,
505
+ children: S,
506
+ runtime: o,
501
507
  instance: Object.freeze({
502
508
  id: e.id,
503
509
  componentId: n?.id ?? e.name ?? "",
@@ -511,8 +517,8 @@ function L(e, t) {
511
517
  disabled: t.disabled,
512
518
  disabledInvalid: t.disabledInvalid,
513
519
  resetToken: t.resetToken,
514
- validation: T,
515
- source: Object.freeze({ attributes: (n) => t.sourceAttributes(n ? p(n) : e, e.name) }),
520
+ validation: w,
521
+ source: Object.freeze({ attributes: (n) => t.sourceAttributes(n ? x(n) : e, e.name) }),
516
522
  navigation: E,
517
523
  url: D,
518
524
  locale: O,
@@ -548,17 +554,17 @@ function B(e, t, n) {
548
554
  if (t.interactive === !1 && t.offline === !0 && t.static !== !0) throw TypeError(`Component "${e.id ?? ""}" declares offline output without any renderable implementation.`);
549
555
  }
550
556
  }
551
- function V(e) {
557
+ function me(e) {
552
558
  if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError("defineReactComponent requires a component definition object.");
553
559
  return e;
554
560
  }
555
- function H(t, n) {
556
- let r = V(t);
561
+ function he(e, n) {
562
+ let r = me(e);
557
563
  if (!n || typeof n != "object") throw TypeError("defineReactComponent requires an implementation object.");
558
564
  B(r, z(r), n);
559
565
  let i;
560
566
  try {
561
- i = e(r);
567
+ i = t(r);
562
568
  } catch (e) {
563
569
  throw TypeError(`Cannot bind a React implementation to component "${r.id}": ${e instanceof Error ? e.message : String(e)}`);
564
570
  }
@@ -569,14 +575,346 @@ function H(t, n) {
569
575
  ...n.renderStatic === void 0 ? {} : { renderStatic: n.renderStatic }
570
576
  });
571
577
  }
572
- // src/react/sdk-core.tsx
578
+ // src/react/component-utils.tsx
579
+ function ge(e) {
580
+ return {
581
+ context: e,
582
+ content: e.content,
583
+ props: e.props,
584
+ runtime: e.runtime,
585
+ bindings: e.bindings,
586
+ children: e.children,
587
+ mode: e.mode,
588
+ visible: e.visible,
589
+ disabled: e.disabled,
590
+ disabledInvalid: e.disabledInvalid,
591
+ resetToken: e.resetToken,
592
+ t: e.locale.t,
593
+ locale: e.locale.locale,
594
+ validation: e.validation,
595
+ source: e.source,
596
+ navigation: e.navigation,
597
+ url: e.url,
598
+ report: e.report,
599
+ render: (t, n) => e.children.renderItems(t ?? e.children.items(), n),
600
+ renderInline: (t, n) => e.children.renderInlineItems(t ?? e.children.items(), n)
601
+ };
602
+ }
603
+ function _e(t) {
604
+ let [n, r] = _(null), { locale: i, report: a, bindings: o } = t, s = m((t) => t.map((t) => e(t, i.locale)).join("; "), [i.locale]);
605
+ return {
606
+ write: m((e, t = "value") => {
607
+ let n = o.set(t, e);
608
+ return n.ok ? (r(null), !0) : (n.diagnostics.length > 0 ? (r(s(n.diagnostics)), a(n.diagnostics)) : r(i.t("Cannot write this value", "无法写入此值")), !1);
609
+ }, [
610
+ o,
611
+ i,
612
+ s,
613
+ a
614
+ ]),
615
+ writeMany: m((e) => {
616
+ let t = o.setMany(e);
617
+ return t.ok ? (r(null), !0) : (t.diagnostics.length > 0 ? (r(s(t.diagnostics)), a(t.diagnostics)) : r(i.t("Cannot write this value", "无法写入此值")), !1);
618
+ }, [
619
+ o,
620
+ i,
621
+ s,
622
+ a
623
+ ]),
624
+ error: n,
625
+ setError: r
626
+ };
627
+ }
628
+ function ve(e) {
629
+ return {
630
+ disabled: e.disabled,
631
+ invalid: e.disabledInvalid
632
+ };
633
+ }
634
+ function ye(e, t) {
635
+ return e.validation.fieldFor(t ?? e.content);
636
+ }
637
+ function be(e, t) {
638
+ return e.validation.hintFor(t ?? e.content);
639
+ }
640
+ function xe(e, t) {
641
+ return e.source.attributes(t);
642
+ }
643
+ function Se(e, t) {
644
+ let n = e.resetToken, r = g(n), i = g(t);
645
+ i.current = t, h(() => {
646
+ r.current !== n && (r.current = n, i.current());
647
+ }, [n]);
648
+ }
649
+ function Ce(e, t) {
650
+ return e.attrs[t];
651
+ }
652
+ function we(e, t, n = "") {
653
+ let r = e.props[t];
654
+ return typeof r == "string" ? r : typeof r == "number" ? Number.isFinite(r) ? String(r) : n : typeof r == "boolean" ? r ? "true" : "false" : e.content.attrs[t] === void 0 ? n : e.locale.t("Cannot compute", "无法计算");
655
+ }
656
+ function V(e, t, n) {
657
+ let r = e.props[t];
658
+ return typeof r == "number" && Number.isFinite(r) ? r : n;
659
+ }
660
+ function Te(e, t, n, r = "") {
661
+ let i = t.props[n];
662
+ return typeof i == "string" ? i : typeof i == "number" ? Number.isFinite(i) ? String(i) : r : typeof i == "boolean" ? i ? "true" : "false" : t.attrs[n] === void 0 ? r : e.locale.t("Cannot compute", "无法计算");
663
+ }
664
+ function Ee(e, t, n, r = !1) {
665
+ let i = t.props[n];
666
+ return typeof i == "boolean" ? i : r;
667
+ }
668
+ function De(e, t) {
669
+ if (e.content.attrs[t] === void 0) return {
670
+ present: !1,
671
+ error: !1
672
+ };
673
+ let n = e.props[t];
674
+ return typeof n == "number" && Number.isFinite(n) ? {
675
+ present: !0,
676
+ error: !1,
677
+ value: n
678
+ } : {
679
+ present: !0,
680
+ error: !0
681
+ };
682
+ }
683
+ function Oe(e, t) {
684
+ if (e.content.attrs[t] === void 0) return {
685
+ present: !1,
686
+ error: !1
687
+ };
688
+ let n = e.props[t];
689
+ return typeof n == "string" ? {
690
+ present: !0,
691
+ error: !1,
692
+ value: n
693
+ } : {
694
+ present: !0,
695
+ error: !0
696
+ };
697
+ }
698
+ function H(e, t, n) {
699
+ if (e.content.attrs[t] === void 0) return {
700
+ ok: !0,
701
+ value: n
702
+ };
703
+ let r = e.props[t];
704
+ return typeof r == "boolean" ? {
705
+ ok: !0,
706
+ value: r
707
+ } : { ok: !1 };
708
+ }
709
+ function ke(e, t, n = !1) {
710
+ let r = H(e, t, n);
711
+ return r.ok ? r.value : n;
712
+ }
713
+ function Ae(e, t, n, r) {
714
+ if (e.content.attrs[t] === void 0) return {
715
+ tone: r,
716
+ error: !1
717
+ };
718
+ let i = e.props[t];
719
+ return typeof i == "string" && n.includes(i) ? {
720
+ tone: i,
721
+ error: !1
722
+ } : {
723
+ tone: r,
724
+ error: /\{\{/.test(e.content.attrs[t] ?? "")
725
+ };
726
+ }
727
+ function je(e) {
728
+ let t = e.attrs.color;
729
+ if (t === void 0) return;
730
+ let n = t.trim();
731
+ return n !== "" && r(n) ? n : void 0;
732
+ }
733
+ function Me(e) {
734
+ if (e) return {
735
+ "--local-accent": e,
736
+ "--local-accent-soft": `color-mix(in srgb, ${e} 14%, var(--surface))`,
737
+ "--local-accent-strong": e
738
+ };
739
+ }
573
740
  function U(e) {
741
+ return e === null ? "" : typeof e == "string" ? e : typeof e == "number" ? Number.isFinite(e) ? String(e) : null : typeof e == "boolean" ? e ? "true" : "false" : null;
742
+ }
743
+ function Ne(e) {
744
+ return U(e) ?? "";
745
+ }
746
+ function Pe(e) {
747
+ try {
748
+ return e.runtime.get(e.content);
749
+ } catch {
750
+ return null;
751
+ }
752
+ }
753
+ function Fe(e, t, n) {
754
+ try {
755
+ let r = e.runtime.get(e.content, t);
756
+ return typeof r == "number" && Number.isFinite(r) ? r : n;
757
+ } catch {
758
+ return n;
759
+ }
760
+ }
761
+ function Ie(e, t, n) {
762
+ return Math.min(n, Math.max(t, e));
763
+ }
764
+ function Le(e, t, n, r) {
765
+ let i = Number.isFinite(r) && r > 0 ? r : 1, a = Math.max(0, Math.floor((n - t) / i + 1e-9)), o = t + Math.max(0, Math.min(a, Math.round((e - t) / i))) * i;
766
+ return Number(o.toPrecision(15));
767
+ }
768
+ function Re(e, t, n, r, i, a = 1) {
769
+ let o = V(e, t, r), s = V(e, n, i);
770
+ o > s && ([o, s] = [s, o]);
771
+ let c = V(e, "step", a);
772
+ return {
773
+ min: o,
774
+ max: s,
775
+ step: Number.isFinite(c) && c > 0 ? c : 1
776
+ };
777
+ }
778
+ function ze(e) {
779
+ return e.trim() === "" ? "—" : e;
780
+ }
781
+ var W = (e) => e.startsWith("--") ? e : e.replace(/^ms-?/, "-ms").replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
782
+ function Be(e, t, n) {
783
+ let r = e.ownerDocument.createElement("span").style;
784
+ for (let [e, n] of Object.entries(t ?? {})) {
785
+ if (n == null) continue;
786
+ let t = W(e);
787
+ r.setProperty(t, String(n)), typeof n == "number" && !t.startsWith("--") && !r.getPropertyValue(t) && r.setProperty(t, `${n}px`);
788
+ }
789
+ let i = r.cssText;
790
+ return e.style.cssText = i + n, () => {
791
+ e.style.cssText = i;
792
+ };
793
+ }
794
+ function Ve(e) {
795
+ let t = e.authorStyle, n = e.authorStyleText, r = m((e) => {
796
+ if (!e || !t) return;
797
+ let n = Object.entries(t).map(([e, t]) => `${W(e)}:${t};`).join("");
798
+ e.style.cssText += n;
799
+ }, [t]);
800
+ return (e) => {
801
+ if (n) return {
802
+ style: {
803
+ ...e,
804
+ "--rmd-author-inline": `initial;${n}`
805
+ },
806
+ ref: (t) => t ? Be(t, e, n) : void 0
807
+ };
808
+ if (!t) return {
809
+ style: e,
810
+ ref: void 0
811
+ };
812
+ let i = { ...e };
813
+ for (let [e, n] of Object.entries(t)) delete i[e], i[e] = n;
814
+ return {
815
+ style: i,
816
+ ref: r
817
+ };
818
+ };
819
+ }
820
+ function He({ label: e, value: t, hint: n, className: r = "", multiline: i = !1, authorRoot: a }) {
821
+ return /* @__PURE__ */ y("div", {
822
+ className: `md-control local-static-control ${r}`.trim(),
823
+ ...a,
824
+ children: [
825
+ /* @__PURE__ */ v("span", {
826
+ className: "md-label",
827
+ children: e
828
+ }),
829
+ /* @__PURE__ */ v("span", {
830
+ className: `local-static-value${i ? " local-static-multiline" : ""}`,
831
+ "data-local-static-value": "",
832
+ children: t
833
+ }),
834
+ n ? /* @__PURE__ */ v("span", {
835
+ className: "md-hint",
836
+ children: n
837
+ }) : null
838
+ ]
839
+ });
840
+ }
841
+ function Ue({ value: e, block: t = !1 }) {
842
+ return t ? /* @__PURE__ */ v("div", {
843
+ className: "local-print-value local-print-block",
844
+ "aria-hidden": "true",
845
+ "data-local-print-value": "",
846
+ children: e
847
+ }) : /* @__PURE__ */ v("span", {
848
+ className: "local-print-value",
849
+ "aria-hidden": "true",
850
+ "data-local-print-value": "",
851
+ children: e
852
+ });
853
+ }
854
+ function We({ message: e, id: t }) {
855
+ return e ? /* @__PURE__ */ v("span", {
856
+ id: t,
857
+ className: "field-error",
858
+ role: "alert",
859
+ children: e
860
+ }) : null;
861
+ }
862
+ function Ge({ message: e }) {
863
+ return /* @__PURE__ */ v("span", {
864
+ className: "local-error",
865
+ role: "alert",
866
+ children: e ?? "Cannot compute"
867
+ });
868
+ }
869
+ function Ke({ message: e }) {
870
+ return /* @__PURE__ */ v("span", {
871
+ className: "local-error local-tone-error",
872
+ role: "status",
873
+ children: e
874
+ });
875
+ }
876
+ function qe(e, t) {
877
+ let n = Math.max(0, Math.floor(e)), r = Math.floor(n / 60), i = n % 60;
878
+ return r === 0 ? t(`${i} seconds`, `${i} 秒`) : `${r}:${String(i).padStart(2, "0")}`;
879
+ }
880
+ function Je(e) {
881
+ return T(e);
882
+ }
883
+ function G(e, t, n = 0) {
884
+ if (!t || n > 64) return "";
885
+ let r = "";
886
+ for (let i of t) switch (i.kind) {
887
+ case "text":
888
+ case "inlineCode":
889
+ case "fallback":
890
+ r += i.text;
891
+ break;
892
+ case "interpolation":
893
+ try {
894
+ let t = U(e.runtime.evaluate(i.text));
895
+ r += t ?? e.locale.t("Cannot compute", "无法计算");
896
+ } catch {
897
+ r += e.locale.t("Cannot compute", "无法计算");
898
+ }
899
+ break;
900
+ case "break":
901
+ r += " ";
902
+ break;
903
+ default: r += G(e, i.children, n + 1);
904
+ }
905
+ return r;
906
+ }
907
+ function Ye(e, t) {
908
+ return G(e, t.content.children) || t.content.attrs.value || "";
909
+ }
910
+ // src/react/sdk-core.tsx
911
+ function Xe(e) {
574
912
  if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError("defineReactComponent requires a component definition object.");
575
913
  return e;
576
914
  }
577
- var W = /* @__PURE__ */ new WeakMap();
578
- function G(e) {
579
- let t = W.get(e);
915
+ var K = /* @__PURE__ */ new WeakMap();
916
+ function q(e) {
917
+ let t = K.get(e);
580
918
  if (t) return t;
581
919
  let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
582
920
  for (let t of e.components) n.set(t.definition.name, t), r.set(t.definition.id, t);
@@ -584,9 +922,9 @@ function G(e) {
584
922
  byName: n,
585
923
  byId: r
586
924
  });
587
- return W.set(e, i), i;
925
+ return K.set(e, i), i;
588
926
  }
589
- function K(e) {
927
+ function Ze(e) {
590
928
  if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError("createReactConfig components must be LocalReactComponent values.");
591
929
  let t = e;
592
930
  if (!t.definition || typeof t.definition != "object") throw TypeError("A React component is missing its manifest definition.");
@@ -594,17 +932,17 @@ function K(e) {
594
932
  if (t.renderStatic !== void 0 && typeof t.renderStatic != "function") throw TypeError("A React component renderStatic must be a function.");
595
933
  return t;
596
934
  }
597
- function q(t, r, i) {
598
- let a = n(t), o = r?.components;
935
+ function Qe(e, n, r) {
936
+ let a = i(e), o = n?.components;
599
937
  if (!Array.isArray(o)) throw TypeError("createReactConfig requires a components array.");
600
- let s = r?.presets ?? [];
938
+ let s = n?.presets ?? [];
601
939
  if (!Array.isArray(s)) throw TypeError("createReactConfig presets must be an array.");
602
- let c = [], l = [], u = /* @__PURE__ */ new Set(), d = (t, n) => {
603
- let r = K(t), i = U(r.definition), a = e(i);
940
+ let c = [], l = [], u = /* @__PURE__ */ new Set(), d = (e, n) => {
941
+ let r = Ze(e), i = Xe(r.definition), a = t(i);
604
942
  if (r.digest !== a) throw TypeError(`React component "${i.id}" from ${n} has a stale digest; create it with defineReactComponent.`);
605
943
  return c.push(r), r;
606
944
  };
607
- for (let e of i) {
945
+ for (let e of r) {
608
946
  let t = d(e, "the default React preset");
609
947
  u.add(t);
610
948
  }
@@ -614,13 +952,13 @@ function q(t, r, i) {
614
952
  }
615
953
  for (let e of o) l.push(d(e, "components"));
616
954
  let f = [], p = [];
617
- for (let t of a.registry) {
618
- let n = e(t), r = c.filter((e) => e.definition.id === t.id && e.definition.name === t.name && e.definition.version === t.version && e.digest === n);
955
+ for (let e of a.registry) {
956
+ let n = t(e), r = c.filter((t) => t.definition.id === e.id && t.definition.name === e.name && t.definition.version === e.version && t.digest === n);
619
957
  if (r.length === 0) {
620
- if (c.some((e) => e.definition.id === t.id)) throw TypeError(`React component "${t.id}@${t.version}" does not match the installed manifest contract.`);
621
- p.push(`${t.id}@${t.version}`);
958
+ if (c.some((t) => t.definition.id === e.id)) throw TypeError(`React component "${e.id}@${e.version}" does not match the installed manifest contract.`);
959
+ p.push(`${e.id}@${e.version}`);
622
960
  } else {
623
- if (r.length > 1) throw TypeError(`Component id "${t.id}" has more than one matching React implementation.`);
961
+ if (r.length > 1) throw TypeError(`Component id "${e.id}" has more than one matching React implementation.`);
624
962
  f.push(r[0]);
625
963
  }
626
964
  }
@@ -636,9 +974,9 @@ function q(t, r, i) {
636
974
  components: Object.freeze(g),
637
975
  implementations: Object.freeze(f),
638
976
  themes: _,
639
- hostRenderer: Q(v)
977
+ hostRenderer: rt(v)
640
978
  });
641
- return W.set(y, v), y;
979
+ return K.set(y, v), y;
642
980
  }
643
981
  var J = class extends Error {
644
982
  componentName;
@@ -646,14 +984,14 @@ var J = class extends Error {
646
984
  super(`No React implementation is registered for <${e}>.`), this.name = "LocalReactExtensionMissingError", this.componentName = e;
647
985
  }
648
986
  };
649
- function oe(e) {
987
+ function $e(e) {
650
988
  try {
651
989
  return e.snapshot().revision;
652
990
  } catch {
653
991
  return 0;
654
992
  }
655
993
  }
656
- function se(e, t) {
994
+ function et(e, t) {
657
995
  if (typeof e != "string" || e.length === 0) return {
658
996
  line: 1,
659
997
  column: 1
@@ -666,7 +1004,7 @@ function se(e, t) {
666
1004
  };
667
1005
  }
668
1006
  function Y(e, t, n, r, i) {
669
- let { line: a, column: o } = se(r, n.start);
1007
+ let { line: a, column: o } = et(r, n.start);
670
1008
  return {
671
1009
  code: e,
672
1010
  message: `Component <${t}> failed: ${i instanceof Error ? i.message : String(i)}`,
@@ -679,7 +1017,7 @@ function Y(e, t, n, r, i) {
679
1017
  column: o
680
1018
  };
681
1019
  }
682
- var ce = class extends u {
1020
+ var X = class extends f {
683
1021
  state = { failed: !1 };
684
1022
  static getDerivedStateFromError() {
685
1023
  return { failed: !0 };
@@ -693,7 +1031,7 @@ var ce = class extends u {
693
1031
  this.state.failed && e.revision !== this.props.revision && this.setState({ failed: !1 });
694
1032
  }
695
1033
  render() {
696
- return this.state.failed ? d("span", {
1034
+ return this.state.failed ? p("span", {
697
1035
  className: "local-host-component local-host-unavailable local-sdk-unavailable",
698
1036
  "data-local-host-component": this.props.name,
699
1037
  "data-local-host-reason": "error",
@@ -706,11 +1044,14 @@ var ce = class extends u {
706
1044
  }, `Component <${this.props.name}> is unavailable here.`) : this.props.children;
707
1045
  }
708
1046
  };
709
- function le({ implementation: e, node: t, environment: n }) {
1047
+ function tt({ implementation: e, node: t, environment: n }) {
710
1048
  let r = e.definition.id.startsWith("reactive-md/"), i = n.mode === "static" ? "static" : "interactive";
711
1049
  if (!r && !e.definition.capabilities[i]) throw Error(`Component ${e.definition.id} does not support ${i} rendering.`);
712
1050
  let a = L(t, {
713
1051
  runtime: n.runtime,
1052
+ authorStyle: n.authorStyle,
1053
+ authorStyleText: n.authorStyleText,
1054
+ dispatchAuthorAction: n.dispatchAuthorAction,
714
1055
  network: n.network,
715
1056
  services: n.services ?? n.runtime.services,
716
1057
  mode: n.mode,
@@ -734,9 +1075,9 @@ function le({ implementation: e, node: t, environment: n }) {
734
1075
  urlPolicy: n.urlPolicy,
735
1076
  imageResolver: n.imageResolver
736
1077
  }), o = n.mode === "static" && e.renderStatic ? e.renderStatic : e.render;
737
- return d(o, a);
1078
+ return p(o, a);
738
1079
  }
739
- function X(e, t, n) {
1080
+ function Z(e, t, n) {
740
1081
  let r = t.name ?? "", i = e.byName.get(r);
741
1082
  if (!i) throw new J(r);
742
1083
  let a;
@@ -745,30 +1086,30 @@ function X(e, t, n) {
745
1086
  } catch {
746
1087
  a = void 0;
747
1088
  }
748
- let o = d(le, {
1089
+ let o = p(tt, {
749
1090
  implementation: i,
750
1091
  node: t,
751
1092
  environment: n
752
1093
  });
753
- return i.definition.id.startsWith("reactive-md/") ? o : d(ce, {
1094
+ return i.definition.id.startsWith("reactive-md/") ? o : p(X, {
754
1095
  name: r,
755
1096
  nodeId: t.id,
756
- revision: oe(n.runtime),
1097
+ revision: $e(n.runtime),
757
1098
  range: t.range,
758
1099
  source: a,
759
1100
  report: n.report
760
1101
  }, o);
761
1102
  }
762
- function ue(e) {
763
- return (t, n) => X(G(e), t, n);
1103
+ function nt(e) {
1104
+ return (t, n) => Z(q(e), t, n);
764
1105
  }
765
- function Z(e) {
1106
+ function Q(e) {
766
1107
  let t = "";
767
- for (let n of e ?? []) n.type === "text" || n.type === "inlineCode" || n.type === "code" ? t += n.value ?? "" : n.type === "math" || n.type === "inlineMath" || n.type === "image" ? t += n.value ?? n.alt ?? "" : t += Z(n.children);
1108
+ for (let n of e ?? []) n.type === "text" || n.type === "inlineCode" || n.type === "code" ? t += n.value ?? "" : n.type === "math" || n.type === "inlineMath" || n.type === "image" ? t += n.value ?? n.alt ?? "" : t += Q(n.children);
768
1109
  return t;
769
1110
  }
770
- function Q(e) {
771
- return (t, n, r) => X(e, t, {
1111
+ function rt(e) {
1112
+ return (t, n, r) => Z(e, t, {
772
1113
  runtime: r.runtime,
773
1114
  mode: r.mode,
774
1115
  visible: r.visible,
@@ -778,7 +1119,7 @@ function Q(e) {
778
1119
  locale: "en",
779
1120
  renderChildren: (e, t) => r.render(e, t),
780
1121
  renderInline: (e, t) => r.render(e, t),
781
- renderToText: (e) => Z(e),
1122
+ renderToText: (e) => Q(e),
782
1123
  report: (e) => r.report(e),
783
1124
  definitionFor: (t) => e.byName.get(t)?.definition,
784
1125
  validationField: () => ({ invalid: !1 }),
@@ -790,12 +1131,12 @@ function Q(e) {
790
1131
  jumpTo: () => "missing"
791
1132
  });
792
1133
  }
793
- function de(e, t) {
794
- let n = l(t, e.config);
1134
+ function it(e, t) {
1135
+ let n = d(t, e.config);
795
1136
  if (n.length || !t || typeof t != "object") return n;
796
1137
  let r = t.components;
797
1138
  if (!Array.isArray(r)) return n;
798
- let i = G(e);
1139
+ let i = q(e);
799
1140
  for (let e of r) i.byId.has(e.id) || n.push({
800
1141
  code: "local.extension.renderer-missing",
801
1142
  severity: "error",
@@ -814,7 +1155,7 @@ function $(e, t, n) {
814
1155
  e.report([Y("local.extension.event", e.instance.componentId, e.instance.range, n, t)]);
815
1156
  } catch {}
816
1157
  }
817
- function fe(e, t, n) {
1158
+ function at(e, t, n) {
818
1159
  return (...r) => {
819
1160
  try {
820
1161
  t(...r);
@@ -823,4 +1164,4 @@ function fe(e, t, n) {
823
1164
  }
824
1165
  };
825
1166
  }
826
- export { fe as a, H as c, $ as i, _ as l, q as n, de as o, ue as r, C as s, J as t };
1167
+ export { U as A, xe as B, je as C, Ye as D, Re as E, Ae as F, he as G, be as H, Ve as I, ge as L, Le as M, ze as N, Ce as O, we as P, ve as R, Te as S, De as T, _e as U, ye as V, te as W, Ne as _, at as a, G as b, Ge as c, Ke as d, Me as f, Oe as g, Pe as h, $ as i, Fe as j, H as k, Ue as l, Ie as m, Qe as n, it as o, ke as p, nt as r, We as s, J as t, He as u, Je as v, V as w, Ee as x, qe as y, Se as z };