allyhub 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1050) hide show
  1. package/bin/allyhub.js +10 -0
  2. package/dist/args.js +1 -1
  3. package/dist/command.js +1 -1
  4. package/dist/commands/add.js +1 -1
  5. package/dist/commands/align.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/check.js +1 -1
  8. package/dist/commands/cloud-tools.js +2 -2
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/contributed.js +1 -1
  11. package/dist/commands/dev.js +5 -5
  12. package/dist/commands/export.js +3 -0
  13. package/dist/commands/found-extensions.js +2 -0
  14. package/dist/commands/frames/common.js +1 -1
  15. package/dist/commands/frames/doc.js +1 -1
  16. package/dist/commands/frames/piece.js +1 -1
  17. package/dist/commands/frames/sheet.js +1 -1
  18. package/dist/commands/frames.js +9 -9
  19. package/dist/commands/index.js +1 -1
  20. package/dist/commands/inspect/combos.js +1 -1
  21. package/dist/commands/inspect/common.js +3 -3
  22. package/dist/commands/inspect/facts.js +2 -2
  23. package/dist/commands/inspect/index.js +1 -1
  24. package/dist/commands/inspect/layout.js +1 -1
  25. package/dist/commands/inspect/views.js +1 -1
  26. package/dist/commands/list.js +2 -0
  27. package/dist/commands/mail.js +1 -1
  28. package/dist/commands/migrate.js +3 -0
  29. package/dist/commands/run-context.js +2 -0
  30. package/dist/commands/skills.js +3 -3
  31. package/dist/commands/upgrade.js +5 -0
  32. package/dist/commands.json +1 -0
  33. package/dist/fields.js +1 -1
  34. package/dist/help.js +3 -3
  35. package/dist/main.js +8 -7
  36. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  37. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  38. package/dist/node_modules/@allyhub/3d-extension/package.json +4 -3
  39. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  40. package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
  41. package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
  42. package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
  43. package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
  44. package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
  45. package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
  46. package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
  47. package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
  48. package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
  49. package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
  50. package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
  51. package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
  52. package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
  53. package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
  54. package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
  55. package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
  56. package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
  57. package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
  58. package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
  59. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
  60. package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
  61. package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
  62. package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
  63. package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
  64. package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
  65. package/dist/node_modules/@allyhub/blocks/package.json +19 -0
  66. package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
  67. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  68. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  69. package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
  70. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  71. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  72. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  73. package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
  74. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  75. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  76. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  77. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  78. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  79. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  80. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  81. package/dist/node_modules/@allyhub/build/package.json +13 -1
  82. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  83. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  84. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
  85. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
  86. package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
  87. package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
  88. package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
  89. package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
  90. package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
  91. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  92. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  93. package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
  94. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  95. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  96. package/dist/node_modules/@allyhub/check/package.json +1 -1
  97. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  98. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  99. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  100. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  101. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  102. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  103. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  104. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  105. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  106. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  107. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  108. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  109. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  110. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  111. package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
  112. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  113. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  114. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  115. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  116. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  117. package/dist/node_modules/@allyhub/components/package.json +1 -1
  118. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  119. package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
  120. package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
  121. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  122. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
  123. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  124. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  125. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  126. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  127. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  128. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
  129. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  130. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
  131. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  132. package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
  133. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  134. package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
  135. package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
  136. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
  137. package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
  138. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  139. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  140. package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
  141. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  142. package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
  143. package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
  144. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
  145. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  146. package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
  147. package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
  148. package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
  149. package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
  150. package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
  151. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  152. package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
  153. package/dist/node_modules/@allyhub/doc/package.json +5 -1
  154. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  155. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  156. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
  157. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
  158. package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
  159. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  160. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  161. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
  162. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
  163. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  164. package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
  165. package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
  166. package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
  167. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
  168. package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
  169. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  170. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  171. package/dist/node_modules/@allyhub/export/package.json +1 -1
  172. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  173. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  174. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  175. package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
  176. package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
  177. package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
  178. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
  179. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
  180. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
  181. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  182. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
  183. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
  184. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
  185. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
  186. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
  187. package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
  188. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
  189. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
  190. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
  191. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
  192. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  193. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
  194. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  195. package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
  196. package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
  197. package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
  198. package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
  199. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  200. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  201. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
  202. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  203. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +36 -10
  204. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  205. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  206. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
  207. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  208. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
  209. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
  210. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  211. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
  212. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
  213. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  214. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
  215. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
  216. package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
  217. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  218. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
  219. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
  220. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  221. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
  222. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
  223. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  224. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
  225. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
  226. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  227. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  228. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  229. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  230. package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
  231. package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
  232. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
  233. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  234. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  235. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
  236. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
  237. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  238. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  239. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  240. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  241. package/dist/node_modules/@allyhub/media/package.json +5 -1
  242. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
  243. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  244. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
  245. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
  246. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  247. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
  248. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  249. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  250. package/dist/node_modules/@allyhub/model/package.json +1 -1
  251. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  252. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
  253. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  254. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  255. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  256. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
  257. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  258. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  259. package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
  260. package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
  261. package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
  262. package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
  263. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  264. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
  265. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  266. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
  268. package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
  269. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +9 -3
  270. package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
  271. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +5 -2
  272. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  273. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  274. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  275. package/dist/node_modules/@allyhub/project/package.json +1 -1
  276. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  277. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  278. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  279. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  280. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  281. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  282. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  283. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  284. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  285. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  286. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  287. package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
  288. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  289. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  290. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  291. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  292. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  293. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  294. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  295. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  296. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  297. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  298. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  299. package/dist/node_modules/@allyhub/render/package.json +9 -1
  300. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  301. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  302. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  303. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  304. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  305. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  306. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
  307. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
  308. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  309. package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
  310. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  311. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  312. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  313. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  314. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  315. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  317. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  322. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  323. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  324. package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
  325. package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
  326. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  327. package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
  328. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  329. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  330. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  331. package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
  332. package/dist/node_modules/@allyhub/sheet/dist/html.js +9 -9
  333. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  334. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  335. package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
  336. package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
  337. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
  338. package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
  339. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  340. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  341. package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
  342. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
  343. package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
  344. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  345. package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
  346. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  347. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  348. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  349. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  350. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
  351. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  352. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  353. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  354. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  355. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
  356. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  357. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
  358. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  359. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
  360. package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
  361. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
  362. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
  363. package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
  364. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  365. package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
  366. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  367. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  368. package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
  369. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  370. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  371. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  372. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  373. package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
  374. package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
  375. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  376. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  377. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  378. package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
  379. package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
  380. package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
  381. package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
  382. package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
  383. package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
  384. package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
  385. package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
  386. package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
  387. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  388. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  389. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
  390. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  391. package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
  392. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
  393. package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
  394. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  395. package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
  396. package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
  397. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  398. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
  399. package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
  400. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  401. package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
  402. package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
  403. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
  404. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
  405. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  406. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  407. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  408. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  409. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  410. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  411. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  412. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  413. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  414. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
  415. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  416. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  417. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
  418. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  419. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  420. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
  421. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
  422. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
  423. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
  424. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
  425. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
  426. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
  427. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
  428. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
  429. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
  430. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
  431. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
  432. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
  433. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
  434. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
  435. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
  436. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
  437. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
  438. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
  439. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
  440. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
  441. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
  442. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  443. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  444. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  445. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  446. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  447. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  448. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  449. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  450. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  451. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  452. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  453. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  454. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  455. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  456. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  457. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  458. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  459. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  460. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  461. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  462. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
  463. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
  464. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  465. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
  466. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
  467. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
  468. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  469. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
  470. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
  471. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
  472. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
  473. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
  474. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
  475. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
  476. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
  477. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
  478. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
  479. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
  480. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
  481. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
  482. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
  483. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
  484. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
  485. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
  486. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
  487. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
  488. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
  489. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
  490. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
  491. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
  492. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
  493. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
  494. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
  495. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
  496. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
  497. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
  498. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
  499. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
  500. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
  501. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
  502. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
  503. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
  504. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
  505. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
  506. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
  507. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
  508. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
  509. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
  510. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
  511. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
  512. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
  513. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  514. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  515. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  516. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  517. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
  518. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
  519. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  520. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
  521. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  522. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
  523. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  524. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
  525. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  526. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
  527. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
  528. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
  529. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
  530. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
  531. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
  532. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
  533. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
  534. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  535. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  536. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  537. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  538. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  539. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  540. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
  541. package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
  542. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  543. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
  544. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  545. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  546. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  547. package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
  548. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  549. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  550. package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
  551. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  552. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  553. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  554. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
  555. package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
  556. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  557. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  558. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
  559. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
  560. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
  561. package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
  562. package/dist/node_modules/@allyhub/video-extension/package.json +7 -26
  563. package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
  564. package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
  565. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  566. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  567. package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
  568. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  569. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  570. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  571. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
  572. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  573. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  574. package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
  575. package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
  576. package/dist/node_modules/@allyhub/website/package.json +1 -1
  577. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  578. package/dist/node_modules/@allyhub/website-extension/package.json +6 -6
  579. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  580. package/dist/node_modules/@allyhub/x-extension/package.json +8 -4
  581. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
  582. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  583. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  584. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  585. package/dist/package.json +14 -14
  586. package/dist/project.js +1 -1
  587. package/dist/resources.js +1 -1
  588. package/dist/sdk-docs.js +1 -1
  589. package/dist/self-upgrade.js +2 -0
  590. package/dist/slot.js +4 -0
  591. package/dist/telemetry.js +1 -1
  592. package/dist/text/batch-text.js +1 -1
  593. package/dist/text/facts-text.js +5 -5
  594. package/dist/text/format.js +2 -2
  595. package/dist/update-notice.js +3 -0
  596. package/dist/version.js +1 -1
  597. package/dist/works.js +1 -1
  598. package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
  599. package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
  600. package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
  601. package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
  602. package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
  603. package/editor-web/assets/article-DHf6mOY_.js +7 -0
  604. package/editor-web/assets/article-Dns1-Xh-.js +3 -0
  605. package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
  606. package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
  607. package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
  608. package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
  609. package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
  610. package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
  611. package/editor-web/assets/channel-CVWSV3su.js +1 -0
  612. package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
  613. package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
  614. package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
  615. package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
  616. package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
  617. package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
  618. package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
  619. package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
  620. package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
  621. package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
  622. package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
  623. package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
  624. package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
  625. package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
  626. package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
  627. package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
  628. package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
  629. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
  630. package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
  631. package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
  632. package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
  633. package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
  634. package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
  635. package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
  636. package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
  637. package/editor-web/assets/deck-DQpNIS2p.js +1 -0
  638. package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
  639. package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
  640. package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
  641. package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
  642. package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
  643. package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
  644. package/editor-web/assets/dist--z0ZHp4T.js +16 -0
  645. package/editor-web/assets/dist-9kuRjUTN.js +41 -0
  646. package/editor-web/assets/dist-B3rd02Cg.js +6 -0
  647. package/editor-web/assets/dist-B5GOGGEe.js +1 -0
  648. package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
  649. package/editor-web/assets/dist-C4hHtrJr.js +1 -0
  650. package/editor-web/assets/dist-CCXJewsi.js +19 -0
  651. package/editor-web/assets/dist-CfK2BLl8.js +4 -0
  652. package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
  653. package/editor-web/assets/dist-Cspf85KV.js +6 -0
  654. package/editor-web/assets/dist-DA72-4WB.js +82 -0
  655. package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
  656. package/editor-web/assets/dist-DIJnhQFK.js +9 -0
  657. package/editor-web/assets/dist-DOrGo1GD.js +19 -0
  658. package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
  659. package/editor-web/assets/dist-DjiCHlSu.js +35 -0
  660. package/editor-web/assets/dist-Do4a40Wn.js +19 -0
  661. package/editor-web/assets/dist-FKEWS3Co.js +547 -0
  662. package/editor-web/assets/dist-QKd2i6kG.js +5 -0
  663. package/editor-web/assets/dist-SGnOfLhx.js +24 -0
  664. package/editor-web/assets/dist-VmVB7tl4.js +3 -0
  665. package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-L54blreB.js} +1 -1
  666. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
  667. package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
  668. package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
  669. package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
  670. package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
  671. package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
  672. package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
  673. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
  674. package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
  675. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
  676. package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
  677. package/editor-web/assets/hint-CbwoSBMw.js +1 -0
  678. package/editor-web/assets/index-CXisi0Cj.css +2 -0
  679. package/editor-web/assets/index-wMlfx8aT.js +28 -0
  680. package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-CdPrqere.js} +1 -1
  681. package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
  682. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
  683. package/editor-web/assets/iso-UwGLGD3F.js +1 -0
  684. package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
  685. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
  686. package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
  687. package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
  688. package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
  689. package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-BOln9YdH.js} +4 -4
  690. package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
  691. package/editor-web/assets/minus-ngE8owxs.js +1 -0
  692. package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
  693. package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
  694. package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
  695. package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
  696. package/editor-web/assets/progress-DZQTiRLv.js +6 -0
  697. package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
  698. package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
  699. package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
  700. package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
  701. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
  702. package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
  703. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
  704. package/editor-web/assets/react-Byupo4pA.js +1 -0
  705. package/editor-web/assets/replace-CLLMtF4e.js +1 -0
  706. package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
  707. package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
  708. package/editor-web/assets/row-Bei9HNEe.js +1 -0
  709. package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
  710. package/editor-web/assets/schemas-C21MyseF.js +1 -0
  711. package/editor-web/assets/{iso-ahTwmFwH.js → schemas-DlRAoVtq.js} +1 -1
  712. package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
  713. package/editor-web/assets/search-D75Bi2GU.js +1 -0
  714. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
  715. package/editor-web/assets/{session-Beijw9EK.js → session-BhClkDyr.js} +1 -1
  716. package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
  717. package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
  718. package/editor-web/assets/sound-DkR3qxSt.js +1 -0
  719. package/editor-web/assets/split-DBAbwPZ5.js +3 -0
  720. package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
  721. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
  722. package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
  723. package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
  724. package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
  725. package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
  726. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
  727. package/editor-web/assets/switch-DrZxoPQS.js +1 -0
  728. package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
  729. package/editor-web/assets/table-BW43XXVd.js +1 -0
  730. package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
  731. package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
  732. package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
  733. package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
  734. package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
  735. package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
  736. package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
  737. package/editor-web/assets/type-CvZ0HZsV.js +41 -0
  738. package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
  739. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
  740. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
  741. package/editor-web/assets/video-SJvDRCJK.js +1 -0
  742. package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
  743. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
  744. package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
  745. package/editor-web/assets/{words-0Ww2RyT4.js → words-BUlNNuH2.js} +3 -3
  746. package/editor-web/assets/words-zMedmPWc.js +3 -0
  747. package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
  748. package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
  749. package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
  750. package/editor-web/index.html +9 -8
  751. package/package.json +3 -3
  752. package/CHANGELOG.md +0 -243
  753. package/dist/commands/render.js +0 -3
  754. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  755. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  756. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  757. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  758. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  759. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  760. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  761. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  762. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  763. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  764. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  765. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  766. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  767. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  768. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  769. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  770. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  771. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  772. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  773. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  774. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  775. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  776. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  777. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  778. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  779. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  780. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  781. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  782. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  783. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  784. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  785. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  786. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  787. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  788. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  789. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  790. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  791. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  792. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
  793. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  794. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  795. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  796. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  797. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  798. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  799. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  800. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  801. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  802. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
  803. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  804. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  805. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  806. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  807. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  808. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  809. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  810. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  811. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  812. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  813. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  814. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  815. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  816. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  817. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  818. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  819. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  820. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  821. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  822. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  823. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  824. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  825. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  826. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  827. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  828. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  829. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  830. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  831. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  832. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  833. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  834. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  835. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  836. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  837. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  838. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  839. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  840. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  841. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  842. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  843. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  844. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  845. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  846. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  847. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  848. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  849. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  850. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  851. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  852. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  853. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  854. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  855. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  856. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  857. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  858. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  859. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  860. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  861. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  862. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  863. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  864. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  865. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  866. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  867. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  868. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  869. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  870. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  871. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  872. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  873. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  874. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  875. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  876. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  877. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  878. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  879. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  880. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  881. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  882. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  883. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  884. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  885. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  886. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  887. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  888. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  889. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  890. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  891. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  892. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  893. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  894. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  895. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  896. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  897. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  898. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  899. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  900. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  901. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  902. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  903. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  904. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  905. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  906. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
  907. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  908. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  909. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  910. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  911. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  912. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  913. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  914. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  915. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  916. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  917. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  918. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  919. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  920. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  921. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  922. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  923. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  924. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  925. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  926. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  927. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
  928. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  929. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  930. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  931. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  932. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  933. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  934. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  935. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
  936. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  937. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  938. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  939. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  940. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  941. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  942. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  943. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  944. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  945. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  946. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  947. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  948. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  949. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  950. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  951. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  952. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  953. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  954. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  955. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  956. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  957. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  958. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  959. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  960. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  961. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  962. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  963. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  964. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  965. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  966. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  967. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  968. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  969. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  970. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  971. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  972. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  973. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  974. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  975. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  976. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  977. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  978. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  979. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  980. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  981. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  982. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  983. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  984. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  985. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  986. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
  987. package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
  988. package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
  989. package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
  990. package/editor-web/assets/article-CS48wwvk.js +0 -3
  991. package/editor-web/assets/article-Cyle57uq.js +0 -7
  992. package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
  993. package/editor-web/assets/calc-worker-BdHh5LXM.js +0 -45
  994. package/editor-web/assets/channel-HUlo15J7.js +0 -1
  995. package/editor-web/assets/chart-amT4lgX3.js +0 -2
  996. package/editor-web/assets/chart-file-CfbWK9l1.js +0 -1
  997. package/editor-web/assets/code-CD-CbJG9.js +0 -1
  998. package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
  999. package/editor-web/assets/deck-CtEtDHo2.js +0 -1
  1000. package/editor-web/assets/dist-BBshIz1Q.js +0 -5
  1001. package/editor-web/assets/dist-BI8QjOsV.js +0 -1
  1002. package/editor-web/assets/dist-BajH5QfK.js +0 -24
  1003. package/editor-web/assets/dist-Bl74xqMW.js +0 -19
  1004. package/editor-web/assets/dist-BrUtQth3.js +0 -18
  1005. package/editor-web/assets/dist-CN5A7Au2.js +0 -1
  1006. package/editor-web/assets/dist-CcL6r6l3.js +0 -1
  1007. package/editor-web/assets/dist-D2E3cgRP.js +0 -4
  1008. package/editor-web/assets/dist-D3C6FyrO.js +0 -82
  1009. package/editor-web/assets/dist-DGKjn59H.js +0 -16
  1010. package/editor-web/assets/dist-NQNQ5HqZ.js +0 -17
  1011. package/editor-web/assets/dist-SV0sOVIC.js +0 -43
  1012. package/editor-web/assets/dist-YW8hS4IM.js +0 -9
  1013. package/editor-web/assets/dist-Y_XZZa8q.js +0 -531
  1014. package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
  1015. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  1016. package/editor-web/assets/dist-elglzHMT.js +0 -6
  1017. package/editor-web/assets/dist-hHcrvNn9.js +0 -1
  1018. package/editor-web/assets/esm-DzxAod8Q.js +0 -21
  1019. package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
  1020. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
  1021. package/editor-web/assets/hint-rlht0uxG.js +0 -1
  1022. package/editor-web/assets/index-Dvh1t1om.css +0 -2
  1023. package/editor-web/assets/index-q7X6hdHp.js +0 -28
  1024. package/editor-web/assets/minus-CbPnUIOy.js +0 -1
  1025. package/editor-web/assets/progress-CwKcXARv.js +0 -6
  1026. package/editor-web/assets/props-form-DUFxM5eb.js +0 -1
  1027. package/editor-web/assets/react-Edyoga_4.js +0 -1
  1028. package/editor-web/assets/row-C_svyL8o.js +0 -1
  1029. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  1030. package/editor-web/assets/search-Ba2BbT6T.js +0 -1
  1031. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  1032. package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
  1033. package/editor-web/assets/sound-bTlco_K3.js +0 -1
  1034. package/editor-web/assets/split-zARio3J8.js +0 -3
  1035. package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
  1036. package/editor-web/assets/surface-DtCjIlrq.js +0 -1
  1037. package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
  1038. package/editor-web/assets/swatch-DhztHwPU.js +0 -1
  1039. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
  1040. package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
  1041. package/editor-web/assets/table-DRbddzx0.js +0 -1
  1042. package/editor-web/assets/tabs-BHBvbekZ.js +0 -1
  1043. package/editor-web/assets/tag-CIfWT8B_.js +0 -1
  1044. package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
  1045. package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
  1046. package/editor-web/assets/video-oJ3qa1Qv.js +0 -1
  1047. package/editor-web/assets/words-XlXG79Ur.js +0 -3
  1048. package/editor-web/assets/workbook-DznVDqoE.js +0 -45
  1049. package/editor-web/assets/x-DlhyIKuu.js +0 -41
  1050. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import*as i from"./icons.generated.js";export const LUCIDE_VERSION=i.LUCIDE_VERSION;const c=i.ICONS,l=i.ICON_ALIASES;export const ICON_GRID=24,ICON_STROKE=2;const d=r=>r.trim().replace(/([a-z0-9])([A-Z])/gu,"$1-$2").toLowerCase().replace(/[\s_]+/gu,"-");export function iconName(r){const n=d(r);if(c[n]!==void 0)return n;const t=l[n];return t!==void 0&&c[t]!==void 0?t:void 0}export function iconPaths(r){const n=iconName(r);return n===void 0?void 0:c[n]}function u(r,n){const t=Array.from({length:n.length+1},(s,e)=>e);for(let s=1;s<=r.length;s++){let e=t[0]??0;t[0]=s;for(let o=1;o<=n.length;o++){const a=t[o]??0;t[o]=Math.min((t[o]??0)+1,(t[o-1]??0)+1,e+(r[s-1]===n[o-1]?0:1)),e=a}}return t[n.length]??0}export function nearestIcons(r){const n=d(r),t=n.split("-").filter(e=>e.length>2);return Object.keys(c).map(e=>({n:e,d:u(n,e)-(t.some(o=>e.split("-").includes(o))?100:0)})).sort((e,o)=>e.d-o.d||e.n.localeCompare(o.n)).slice(0,3).map(e=>e.n)}export const iconNames=()=>Object.keys(c);
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readBlock as s}from"@allyhub/formats";import{blockOf as c}from"./resolve.js";export*from"./model.js";export*from"./measure.js";export*from"./palette.js";export*from"./resolve.js";export*from"./layout.js";export*from"./look.js";export*from"./svg.js";export*from"./html.js";export*from"./alt.js";export*from"./icons.js";export*from"./path.js";export*from"./samples.js";export*from"./format.js";export*from"./page.js";export{sankeyPlace,bandSegs,sankeyNodeColor,SANKEY_FLOW_OPACITY}from"./sankey.js";export{ganttSpan,ganttScaleOf,ganttColor}from"./gantt.js";export{dateOf,isoOf}from"./flow-resolve.js";export*from"./flow-table.js";export*from"./tidy.js";export*from"./trees.js";export*from"./grids.js";export function blockFromFile(p,x,f={}){const e=s(p,x,f),t=[...e.problems];if(e.block===void 0)return{problems:t};const a=new Set(e.problems.flatMap(o=>{const r=/ has a (\w+)\.$/u.exec(o.message);return r?.[1]===void 0?[]:[`${o.path.join(".")}|${r[1]}`]})),m=c(e.block,{...f,problem:(o,r)=>{const n=/ has a (\w+)\b/u.exec(o);n?.[1]!==void 0&&a.has(`${r.join(".")}|${n[1]}`)||t.push({message:o,path:[...r]})}});return m===void 0?{problems:t}:{block:m,problems:t}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{TYPE_STEPS as E}from"@allyhub/formats";import{CHART_DEFAULTS as kt,chartDrawing as Dt,isRound as At,textWidth as Pt}from"@allyhub/chart";import{ICON_GRID as rt,ICON_STROKE as lt,iconPaths as ct}from"./icons.js";import{plainOf as ut,roughMeasure as Rt,runsOf as st,wrap as Mt}from"./measure.js";import{areMonths as Yt,formatDate as Xt,formatDay as $t,formatMonth as St,formatNumber as zt}from"./format.js";import{colorPaints as vt,toneColorPaints as _t}from"./palette.js";import{lookOf as Nt}from"./look.js";import{dayOf as mt,deltaWay as Ft}from"./resolve.js";import{sankeyLayout as Gt}from"./sankey.js";import{ganttLayout as qt}from"./gantt.js";import{gridLayout as Bt}from"./grids.js";import{treeLayout as Kt}from"./trees.js";const ht=(t,n)=>n.auto===!0&&n.number!==void 0?zt(n.number,t.lang):n.text;export const LINE=1.25,PLOT_IN_FLOW={aspect:.5625,most:315},plotHeight=t=>Math.min(t*PLOT_IN_FLOW.aspect,PLOT_IN_FLOW.most);export function textMark(t,n,i,s){const e=s.weight??400,l=typeof i=="string"?st(i):i,a=dt(t,s);let o=s.size,u=Mt(l,s.w,o,e,a);const h=s.max??1/0;if((u.length>h||u.some(y=>y.width>s.w+.5))&&(o=s.size*.86,u=Mt(l,s.w,o,e,a)),(u.length>h||u.some(y=>y.width>s.w+.5))&&(t.overflow.push(n),u.length>h)){u=u.slice(0,h);const y=u.at(-1);if(y){const r=y.runs.at(-1);r&&(r.text=`${r.text.replace(/\s*\S{0,3}$/u,"")}…`)}}const d=o*LINE;return{mark:{type:"text",part:n,x:s.x,y:s.y,w:s.w,lines:u,size:o,weight:e,color:s.color,align:s.align??"left",lineHeight:d,tabular:s.tabular??!1,...s.face==="display"?{face:"display"}:{},...s.caps===!0?{caps:!0}:{},...s.tracking!==void 0&&s.tracking!==0?{tracking:s.tracking}:{}},height:u.length*d}}function dt(t,n){const i=n.face==="display"?t.look.displayWidth/t.look.textWidth:1,s=n.tracking??0;return i===1&&s===0&&n.caps!==!0?t.measure:(e,l,a)=>t.measure(n.caps===!0?e.toUpperCase():e,l,a)*i+s*l*Array.from(e).length}export const labelStyle=t=>t.look.label.caps?{caps:!0,tracking:t.look.label.tracking}:t.look.label.tracking===0?{}:{tracking:t.look.label.tracking},headingStyle=t=>({face:t.look.heading.face,weight:t.look.heading.weight}),add=(t,n)=>{t.marks.push(n)};function xt(t,n,i,s,e,l,a="text"){const o=dt(t,{face:a})(ut(st(n)),1,l);return o<=0?e:Math.max(s,Math.min(e,i/o*.995))}export function figureSize(t,n,i){const s=i.look??Nt(void 0),e={s:i.s,measure:i.measure,flow:!1,marks:[],overflow:[],look:s},l=E.title*i.s;return xt(e,t.value.text,n,l,E.figureMax*i.s*s.figure.scale,s.figure.weight,s.figure.face)}const Ot=t=>t??"neutral";function pt(t,n,i,s,e,l,a={}){const o=t.s,u=a.prefix??"",h=t.look,d=a.ground??!0,M=d&&(h.tile==="card"||h.tile==="well"),y=M?Math.min(16*o,e*.08):0,r=M?y:h.tile==="rule"&&d?12*o:0,c=e-2*y,g=t.marks.length;let m=s+r;if(n.icon!==void 0){const w=ct(n.icon);if(w){const _=20*o;m+=Ct(t,`${u}icon`,w,i+y,m,_,"accent1"),m+=8*o}}const f=w=>{let _=i+y;if(n.status!==void 0&&n.delta===void 0){const I=4*o;add(t,{type:"ellipse",part:`${u}status`,x:_,y:w+E.label*o*LINE/2-I,w:2*I,h:2*I,fill:n.status,line:"none",lineWidth:0}),_+=2*I+6*o}const b=textMark(t,`${u}label`,n.label,{x:_,y:w,w:c-(_-i-y),size:E.label*o,weight:h.label.weight,color:"muted",max:2,...labelStyle(t)});return add(t,b.mark),b.height},p=h.tile==="rule"||h.tile==="bare";p||(m+=Math.max(f(m),a.labelHeight??0)+4*o);const N=a.figure??figureSize(n,c,{s:o,measure:t.measure,look:h}),$=textMark(t,`${u}value`,ht(t,n.value),{x:i+y,y:m,w:c,size:N,weight:h.figure.weight,color:h.figure.paint,max:1,tabular:!0,face:h.figure.face});add(t,$.mark),m+=$.height,p&&(m+=2*o,m+=Math.max(f(m),a.labelHeight??0));const S=n.note;if(n.delta!==void 0||S!==void 0){m+=2*o;const w=[];if(n.delta!==void 0){const b=Ft(n.delta),L=`${b==="up"?"▲ ":b==="down"?"▼ ":""}${ht(t,n.delta).replace(/^[+↑▲]\s*/u,"+").replace(/^[-−–↓▼]\s*/u,"−")}`;w.push({text:L,weight:600,color:Ot(n.status)})}S!==void 0&&w.push({text:`${n.delta===void 0?"":" "}${S.replace(/\*/gu,"")}`,weight:400,color:"muted"});const _=textMark(t,n.delta===void 0?`${u}note`:`${u}delta`,w,{x:i+y,y:m,w:c,size:E.label*o*1.1,color:"muted",max:2,tabular:!0});add(t,_.mark),m+=_.height}const z=n.min?.number,D=n.max?.number,q=n.value.number;if(z!==void 0&&D!==void 0&&q!==void 0&&D!==z){m+=10*o;const w=(h.tile==="card"?7:5)*o,_=Math.max(0,Math.min(1,(q-z)/(D-z)));add(t,{type:"rect",part:`${u}range/track`,x:i+y,y:m,w:c,h:w,r:0,fill:"rule",line:"none",lineWidth:0}),_>0&&add(t,{type:"rect",part:`${u}range/bar`,x:i+y,y:m,w:c*_,h:w,r:0,fill:n.status??"accent1",line:"none",lineWidth:0});const b=n.target?.number;if(b!==void 0&&b>=Math.min(z,D)&&b<=Math.max(z,D)){const L=i+y+c*((b-z)/(D-z));add(t,{type:"line",part:`${u}range/target`,x1:L,y1:m-3*o,x2:L,y2:m+w+3*o,color:"text",width:1.5*o,dash:!1})}m+=w+3*o;const I=E.label*o*.85;for(const[L,B]of[["min",n.min],["max",n.max]]){if(B===void 0)continue;const x=textMark(t,`${u}range/${L}`,ht(t,B),{x:i+y,y:m,w:c,size:I,color:"muted",align:L==="min"?"left":"right",max:1,tabular:!0});add(t,x.mark),L==="max"&&(m+=x.height)}}if(n.trend!==void 0&&n.trend.length>=2){const w=l===void 0?28*o:s+l-r-(m+6*o),_=Math.min(40*o,Math.max(10*o,w));m+=6*o,add(t,{type:"trend",part:`${u}trend`,x:i+y,y:m,w:c,h:_,values:n.trend,target:n.target?.number,color:"accent1",width:2*o}),m+=_}const j=l??m+r-s;return l!==void 0&&m+r>s+l+.5&&t.overflow.push(`${u}stat`),d&&t.marks.splice(g,0,...Et(t,`${u}tile`,i,s,e,j)),j}function Et(t,n,i,s,e,l,a={}){const o=t.look,u=t.s;if(a.featured===!0||a.fill!==void 0)return[{type:"rect",part:n,x:i,y:s,w:e,h:l,r:o.radius*u,fill:a.fill??o.featured,line:"none",lineWidth:0}];switch(o.tile){case"card":case"well":return[{type:"rect",part:n,x:i,y:s,w:e,h:l,r:(t.flow?Math.min(8,o.radius):o.radius)*u,fill:o.ground,line:o.tile==="card"?o.edge:"none",lineWidth:o.tile==="card"?.75:0}];case"rule":return[{type:"line",part:n,x1:i,y1:s,x2:i+(o.rule.stub?Math.min(e,32*u):e),y2:s,color:o.rule.paint,width:o.rule.width*u,dash:!1}];case"bare":return[]}}function Ct(t,n,i,s,e,l,a){if(t.look.icon==="chip"){const o=l*1.75,u=a==="on-accent"?"on-accent~20":/^accent[1-6]$/u.test(a)?`${a}~tint`:`${a}-tint`;return add(t,{type:"rect",part:`${n}chip`,x:s,y:e,w:o,h:o,r:Math.min(t.look.radius*.6,o/2)*t.s,fill:u,line:"none",lineWidth:0}),add(t,{type:"icon",part:n,x:s+(o-l)/2,y:e+(o-l)/2,size:l,paths:i,color:a,stroke:lt*l/rt}),o}return add(t,{type:"icon",part:n,x:s,y:e,size:l,paths:i,color:a,stroke:lt*l/rt}),l}function It(t,n,i,s,e){const l=Math.max(1,Math.min(t,e??Math.floor((n+s)/(i+s))));return{across:l,w:(n-s*(l-1))/l,rows:Math.ceil(t/l)}}function wt(t,n,i,s,e,l){const a=t.s,o=E.label*a,u=o*1.5,h=8*a,d=i.color!==void 0?vt(i.color):_t(Ot(i.status)),M=t.look.tag,y=M==="text"?{caps:!0,tracking:.08}:{},r=dt(t,y)(ut(st(i.text)),o,M==="text"?700:500);r>l-2*h+.5&&t.overflow.push(`${n}pill`);const c=Math.min(r,l-2*h),g=c+(M==="text"?0:2*h);M!=="text"&&add(t,{type:"rect",part:`${n}pill`,x:s,y:e,w:g,h:u,r:Math.min(u/2,t.look.radius*t.s),fill:M==="outline"?"none":d.tint,line:M==="outline"?d.mark:"none",lineWidth:M==="outline"?.75*t.s:0});const m=textMark(t,`${n}text`,i.text,{x:s+(M==="text"?0:h),y:e+(u-o*LINE)/2,w:c+.5,size:o,weight:M==="text"?700:500,color:M==="text"?d.mark:d.ink,max:1,...y});return add(t,m.mark),{w:g,h:u}}function Qt(t,n,i,s){const e=t.s,l=t.look,a=n.featured||l.tile==="card"||l.tile==="well",o=a?(l.tile==="well"?20:18)*e:0,u=a?o:l.tile==="rule"?14*e:0,h=i-2*o,d=t.marks.length,M=n.featured?"on-accent":"text",y=n.featured?"on-accent":"muted";let r=u,c=0;if(n.tag!==void 0){const f=E.label*e,p=t.measure(ut(st(n.tag.text)),f,500)+16*e;c=wt(t,"tag/",n.tag,i-o-Math.min(p,h),u,h).w+8*e}if(n.icon!==void 0){const f=ct(n.icon);if(f){const p=(l.icon==="chip"?20:24)*e;r+=Ct(t,"icon",f,o,r,p,n.featured?"on-accent":"accent1"),r+=(l.icon==="chip"?14:10)*e,c=0}}if(n.eyebrow!==void 0){const f=textMark(t,"eyebrow",n.eyebrow,{x:o,y:r,w:h-c,size:E.label*e,weight:Math.max(600,l.label.weight),color:y,max:2,...labelStyle(t)});add(t,f.mark),r+=f.height+8*e}if(n.value!==void 0){const f=ht(t,n.value),p=xt(t,f,h-c,E.title*e,E.figureMax*e*l.figure.scale,l.figure.weight,l.figure.face),N=textMark(t,"value",f,{x:o,y:r,w:h-c,size:p,weight:l.figure.weight,color:n.featured?"on-accent":"accent1",max:1,tabular:!0,face:l.figure.face});if(add(t,N.mark),r+=N.height+2*e,n.caption!==void 0){const $=textMark(t,"caption",n.caption,{x:o,y:r,w:h,size:E.label*e,color:y,max:2});add(t,$.mark),r+=$.height}r+=12*e,c=0}const g=n.subtitle;if(g!==void 0&&n.title===void 0){const f=textMark(t,"subtitle",g,{x:o,y:r,w:h-c,size:E.label*e,color:y});add(t,f.mark),r+=f.height+6*e}if(n.title!==void 0){const f=textMark(t,"title",n.title,{x:o,y:r,w:h-c,size:E.title*e,color:M,max:3,...headingStyle(t)});if(add(t,f.mark),r+=f.height+4*e,g!==void 0){const p=textMark(t,"subtitle",g,{x:o,y:r,w:h,size:E.label*e,color:y});add(t,p.mark),r+=p.height+4*e}r+=4*e}if(n.body!==void 0){const f=textMark(t,"body",n.body,{x:o,y:r,w:h,size:E.body*e,color:n.featured?"on-accent":"body"});add(t,f.mark),r+=f.height}(n.lines??[]).forEach((f,p)=>{r+=(p===0&&n.body===void 0?0:8)*e;const N=[...f.label===void 0?[]:[{text:`${f.label.replace(/\*/gu,"")} `,weight:600,color:y}],...st(f.text)],$=textMark(t,`lines/${String(p)}`,N,{x:o,y:r,w:h,size:E.body*e,color:n.featured?"on-accent":"body"});add(t,$.mark),r+=$.height});const m=s??r+u;return s!==void 0&&r+u>s+.5&&t.overflow.push("card"),t.marks.splice(d,0,...Et(t,"card",0,0,i,m,{featured:n.featured})),m}const Zt={info:"info",good:"circle-check",warning:"triangle-alert",bad:"octagon-alert",accent1:"message-square-warning"};function Jt(t,n,i,s){const e=t.s,l=t.look.callout,a=l==="rules"?0:16*e,o=12*e,u=l==="bar"?4*e:0,h=n.tone==="accent1"?{tint:"accent1~tint",ink:"text",mark:"accent1"}:_t(n.tone),d=n.tone==="neutral"?"well":h.tint,M=t.marks.length,y=n.icon??Zt[n.tone];let r=a+u;const c=E.body*e;if(y!==void 0){const S=Array.from(y).length<=2&&!/^[a-z]/iu.test(y)?void 0:ct(y),z=c*1.3;S?add(t,{type:"icon",part:"icon",x:r,y:o+(c*LINE-z)/2,size:z,paths:S,color:h.mark,stroke:lt*z/rt}):add(t,textMark(t,"icon",y,{x:r,y:o,w:z*1.4,size:c*1.1,color:"text",max:1}).mark),r+=z+10*e}let g=o;const m=i-r-a,f=n.tone==="neutral"||n.tone==="accent1"?"text":h.ink;if(n.title!==void 0){const S=textMark(t,"title",n.title,{x:r,y:g,w:m,size:c,color:f,...headingStyle(t)});add(t,S.mark),g+=S.height+2*e}if(n.text!==void 0){const S=textMark(t,"text",n.text,{x:r,y:g,w:m,size:c,color:n.tone==="neutral"||n.tone==="accent1"?"body":h.ink});add(t,S.mark),g+=S.height}const p=s??Math.max(g,o+c*LINE)+o,N=Math.min(8,t.look.radius)*e,$=l==="rules"?[0,p].map((S,z)=>({type:"line",part:z===0?"callout":"callout/rule",x1:0,y1:S,x2:i,y2:S,color:n.tone==="neutral"?"rule-strong":h.mark,width:(z===0?1.25:.75)*e,dash:!1})):[{type:"rect",part:"callout",x:0,y:0,w:i,h:p,r:l==="bar"?0:N,fill:l==="outline"?"none":d,line:l==="outline"?n.tone==="neutral"?"rule-strong":h.mark:"none",lineWidth:l==="outline"?1*e:0},...l==="bar"?[{type:"rect",part:"callout/bar",x:0,y:0,w:u,h:p,r:0,fill:n.tone==="neutral"?"deep":h.mark,line:"none",lineWidth:0}]:[]];return t.marks.splice(M,0,...$),s!==void 0&&g+o>s+.5&&t.overflow.push("callout"),p}function Vt(t,n,i,s){const e=n.size??Math.min(i,s??i,s===void 0?24*t.s:1/0),l=ct(n.name)??[],a=s??e;return add(t,{type:"icon",part:"icon",x:(i-e)/2,y:(a-e)/2,size:e,paths:l,color:n.color===void 0?"text":vt(n.color).mark,stroke:(n.stroke??lt)*e/rt}),a}function jt(t,n,i,s){const e=t.s,l=n.status??"accent1",a=Math.max(0,Math.min(1,n.share)),o=n.figure===void 0?n.shown:ht(t,n.figure),u=n.note;if(n.shape==="ring"){const g=n.label===void 0?0:E.label*e*LINE*2+6*e,m=Math.max(24*e,Math.min(i,(s??Math.min(i,160*e)+g)-g)),f=Math.max(4*e,m*.11),p=m/2-f/2,N=i/2,$=m/2;if(add(t,{type:"arc",part:"track",cx:N,cy:$,r:p,width:f,share:1,color:"rule"}),a>0&&add(t,{type:"arc",part:"bar",cx:N,cy:$,r:p,width:f,share:a,color:l}),n.target!==void 0){const q=2*Math.PI*Math.max(0,Math.min(1,n.target))-Math.PI/2,j=p-f/2-2*e,w=p+f/2+2*e;add(t,{type:"line",part:"target",x1:N+j*Math.cos(q),y1:$+j*Math.sin(q),x2:N+w*Math.cos(q),y2:$+w*Math.sin(q),color:"rule-strong",width:2*e,dash:!1})}const S=2*(p-f/2)*.82,z=xt(t,o,S,E.label*e,Math.min(E.heading*e*1.4,m*.28),700);add(t,textMark(t,"value",o,{x:N-S/2,y:$-z*LINE/2,w:S,size:z,weight:700,color:"text",align:"center",max:1,tabular:!0}).mark);let D=m+6*e;if(n.label!==void 0){const q=textMark(t,"label",n.label,{x:0,y:D,w:i,size:E.label*e,weight:500,color:"muted",align:"center",max:2});add(t,q.mark),D+=q.height}if(u!==void 0){const q=textMark(t,"note",u,{x:0,y:D,w:i,size:E.label*e,color:"muted",align:"center",max:2});add(t,q.mark),D+=q.height}return s??D}let h=0;const d=E.title*e,M=textMark(t,"value",o,{x:0,y:h,w:i,size:d,weight:700,color:"text",align:"right",max:1,tabular:!0}),y=M.mark.lines[0]?.width??0;if(n.label!==void 0){const g=textMark(t,"label",n.label,{x:0,y:h+(d-E.label*e)*LINE*.5,w:i-y-12*e,size:E.label*e,weight:500,color:"muted",max:1});add(t,g.mark)}add(t,M.mark),h+=M.height+6*e;const r=(t.flow?6:8)*e;if(add(t,{type:"rect",part:"track",x:0,y:h,w:i,h:r,r:r/2,fill:"rule",line:"none",lineWidth:0}),a>0&&add(t,{type:"rect",part:"bar",x:0,y:h,w:Math.max(r,i*a),h:r,r:r/2,fill:l,line:"none",lineWidth:0}),n.target!==void 0){const g=i*Math.max(0,Math.min(1,n.target));add(t,{type:"line",part:"target",x1:g,y1:h-3*e,x2:g,y2:h+r+3*e,color:"rule-strong",width:2*e,dash:!1})}if(h+=r,u!==void 0){h+=6*e;const g=textMark(t,"note",u,{x:0,y:h,w:i,size:E.label*e,color:"muted",max:2});add(t,g.mark),h+=g.height}if(s===void 0)return h;const c=Math.max(0,(s-h)/2);for(const g of t.marks)moveMark(g,0,c);return s}function Wt(t,n,i,s){const e=t.s,l=E.label*e,a=4*e,o=Math.max(1,n.rows.length),u=Math.max(1,n.columns.length),h=Math.max(0,...n.rows.map(S=>t.measure(ut(st(S)),l,500))),d=Math.min(i*.3,h+14*e),M=n.y===void 0?0:l*LINE+6*e,y=l*LINE+6*e+(n.x===void 0?0:l*LINE+2*e),r=(i-d-a*(u-1))/u,c=s===void 0?Math.min(r*.7,72*e):Math.max(16*e,(s-M-y-a*(o-1))/o),g=M;n.y!==void 0&&add(t,textMark(t,"y",n.y.toUpperCase(),{x:0,y:0,w:i,size:l*.9,weight:600,color:"muted",max:1}).mark);const m=(S,z)=>{if(n.tones==="none")return"well";const q=(o-1-S+z)/Math.max(1,o-1+u-1);return q<.34?"good~tint":q<.67?"warning~tint":"bad~tint"};for(let S=0;S<o;S++){const z=g+S*(c+a);add(t,textMark(t,`rows/${String(S)}`,n.rows[S]??"",{x:0,y:z+(c-l*LINE)/2,w:d-10*e,size:l,weight:500,color:"muted",align:"right",max:1}).mark);for(let D=0;D<u;D++)add(t,{type:"rect",part:`cells/${String(S)}/${String(D)}`,x:d+D*(r+a),y:z,w:r,h:c,r:4*e,fill:m(S,D),line:"none",lineWidth:0})}const f=g+o*c+(o-1)*a;for(let S=0;S<u;S++)add(t,textMark(t,`columns/${String(S)}`,n.columns[S]??"",{x:d+S*(r+a),y:f+6*e,w:r,size:l,weight:500,color:"muted",align:"center",max:1}).mark);n.x!==void 0&&add(t,textMark(t,"x",`${n.x.toUpperCase()} →`,{x:d,y:f+6*e+l*LINE+2*e,w:i-d,size:l*.9,weight:600,color:"muted",align:"center",max:1}).mark);const p=Math.min(11*e,c/2-2*e,r/4),N=new Map;n.items.forEach((S,z)=>{const D=`${String(S.row)}/${String(S.column)}`;N.set(D,[...N.get(D)??[],z])});for(const[S,z]of N){const[D,q]=S.split("/").map(Number),j=d+q*(r+a)+r/2,w=g+D*(c+a)+c/2,_=2*p+4*e;z.forEach((b,I)=>{const L=n.items[b];if(!L)return;const B=j+(I-(z.length-1)/2)*_;add(t,{type:"ellipse",part:`items/${String(b)}/dot`,x:B-p,y:w-p,w:2*p,h:2*p,fill:"deep",line:"none",lineWidth:0});const x=Math.min(l,p*1.1);add(t,textMark(t,`items/${String(b)}/label`,L.label,{x:B-p,y:w-x*LINE/2,w:2*p,size:x,weight:700,color:"on-deep",align:"center",max:1}).mark)})}const $=s??f+y;return s!==void 0&&f+y>s+.5&&t.overflow.push("risk_matrix"),$}export function moveMark(t,n,i){switch(t.type){case"line":case"connector":t.x1+=n,t.x2+=n,t.y1+=i,t.y2+=i;return;case"arc":t.cx+=n,t.cy+=i;return;case"path":t.x+=n,t.y+=i,t.segs=t.segs.map(s=>s[0]==="Z"?s:s[0]==="C"?["C",s[1]+n,s[2]+i,s[3]+n,s[4]+i,s[5]+n,s[6]+i]:[s[0],s[1]+n,s[2]+i]);return;default:t.x+=n,t.y+=i}}function Lt(t,n,i,s,e){const l=t.s,a=6*l;i==="current"&&add(t,{type:"ellipse",part:`${n}halo`,x:s-a-4*l,y:e-a-4*l,w:2*a+8*l,h:2*a+8*l,fill:"ground",line:"accent1",lineWidth:1.5*l});const o=i==="planned"?"ground":i==="done"||i==="current"||i==="none"?"accent1":i;add(t,{type:"ellipse",part:`${n}dot`,x:s-a,y:e-a,w:2*a,h:2*a,fill:o,line:i==="planned"?"rule-strong":"none",lineWidth:1.5*l})}function Ht(t,n,i,s,e,l){const a={x:i-e,y:s-e,w:2*e,h:2*e};return t.look.marker==="square"?{type:"rect",part:n,...a,r:0,fill:l,line:"none",lineWidth:0}:{type:"ellipse",part:n,...a,fill:"ground",line:l,lineWidth:2*t.s}}const yt=t=>t==="done"?"good":t==="current"?"accent1":t==="warning"||t==="bad"||t==="info"?t:"deep";function te(t,n,i,s){const e=t.s,l=n.items.map(k=>mt(k.date));if(n.items.length===0||l.some(k=>k===void 0))return;const a=l,o=n.bands==="quarters",u=k=>{const C=new Date(k*864e5),v=C.getUTCMonth();return Date.UTC(C.getUTCFullYear(),o?v-v%3:v,1)/864e5},h=k=>{const C=new Date(k*864e5);return Date.UTC(C.getUTCFullYear(),C.getUTCMonth()+(o?3:1),1)/864e5},d=mt(n.today),M=u(Math.min(...a,d??1/0)),y=h(u(Math.max(...a))),r=[];for(let k=M;k<y&&r.length<60;k=h(k))r.push({from:k,to:h(k)});const c=E.label*e,g=[...new Set(n.items.map(k=>k.lane).filter(k=>k!==void 0))],m=g.length===0?0:Math.min(i*.22,Math.max(...g.map(k=>t.measure(ut(st(k)),c,600)))+12*e),f=m,p=i-f,N=k=>f+(k-M)/(y-M)*p,$=24*e,S=16*e,z=d===void 0?0:c*LINE+4*e,D=(k,C)=>{const v=n.items[k];if(!v)return{marks:[],h:0,fill:"well"};const F=7*e,P=[];let U=F;const R=v.state==="warning"||v.state==="bad";if(v.date!==void 0){const Y=textMark(t,`items/${String(k)}/date`,`${$t(v.date,t.lang)}${v.text!==void 0&&R?` · ${v.text}`:""}`,{x:F,y:U,w:C-2*F,size:c,weight:700,color:R?`${v.state}-ink`:"text",max:1});P.push(Y.mark),U+=Y.height+1*e}const T=textMark(t,`items/${String(k)}/title`,v.title,{x:F,y:U,w:C-2*F,size:c*1.08,color:"body",max:3});if(P.push(T.mark),U+=T.height,v.text!==void 0&&!R){const Y=textMark(t,`items/${String(k)}/text`,v.text,{x:F,y:U,w:C-2*F,size:c,color:"muted",max:2});P.push(Y.mark),U+=Y.height}return{marks:P,h:U+F,fill:R?`${v.state}-tint`:"well"}},q=k=>k.map((C,v)=>{const F=N(a[C]??M),P=k[v-1],U=k[v+1],R=Math.min(P===void 0?1/0:F-N(a[P]??M),U===void 0?1/0:N(a[U]??M)-F);return Math.max(64*e,Math.min(150*e,R-8*e))}),j=(k,C,v)=>{for(const F of k)moveMark(F,C,v),add(t,F)},w=k=>{if(t.look.band==="line"){_(k);return}r.forEach((C,v)=>{const F=N(C.from)+(v===0?0:1*e),P=N(C.to)-N(C.from)-(v===0?1:2)*e,U=d!==void 0&&C.from<=d;add(t,{type:"rect",part:`bands/${String(v)}`,x:F,y:k,w:P,h:$,r:0,fill:U?"deep":"accent1~tint",line:"none",lineWidth:0});const R=new Date(C.from*864e5).getUTCMonth()===0&&v>0;add(t,textMark(t,`bands/${String(v)}/label`,o?`Q${String(Math.floor(new Date(C.from*864e5).getUTCMonth()/3)+1)}`:St(C.from,t.lang,R),{x:F+6*e,y:k+($-c*LINE)/2,w:Math.max(0,P-8*e),size:c,weight:700,color:U?"on-deep":"deep",max:1}).mark)})},_=k=>{const C=3*e,v=k+$-C,F=d===void 0?f:Math.max(f,Math.min(i,N(d)));add(t,{type:"rect",part:"bands/line",x:f,y:v,w:i-f,h:C,r:0,fill:"rule",line:"none",lineWidth:0}),F>f&&add(t,{type:"rect",part:"bands/done",x:f,y:v,w:F-f,h:C,r:0,fill:"deep",line:"none",lineWidth:0}),r.forEach((P,U)=>{const R=N(P.from),T=N(P.to)-R;U>0&&add(t,{type:"line",part:`bands/${String(U)}/tick`,x1:R,y1:v-6*e,x2:R,y2:v+C,color:"rule-strong",width:.75*e,dash:!1});const Y=new Date(P.from*864e5).getUTCMonth()===0&&U>0;add(t,textMark(t,`bands/${String(U)}/label`,o?`Q${String(Math.floor(new Date(P.from*864e5).getUTCMonth()/3)+1)}`:St(P.from,t.lang,Y),{x:R+5*e,y:v-6*e-c*.9*LINE,w:Math.max(0,T-8*e),size:c*.9,weight:600,color:"muted",max:1,...labelStyle(t)}).mark)})},b=d!==void 0&&d>=M&&d<=y?N(d):void 0,I=4*e,L=(k,C)=>b!==void 0&&k<b+I&&k+C>b-I,B=(k,C,v,F,P)=>{if(b===void 0||!L(C,v))return{bx:C,w:v};const U=64*e;if(k<=b-I){const R=b-I,T=Math.max(0,F);if(R-v>=T)return{bx:R-v,w:v};if(R-T>=U&&T<=k)return{bx:T,w:R-T}}else if(k>=b+I){const R=b+I,T=Math.min(i,P);if(R+v<=T)return{bx:R,w:v};if(T-R>=U)return{bx:R,w:T-R}}return{bx:C,w:v}},x=(k,C,v=[])=>{if(b===void 0)return;const F=[...v].map(([T,Y])=>[T-3*e,Y+3*e]).sort((T,Y)=>T[0]-Y[0]);let P=k,U=0;for(const[T,Y]of[...F,[C,C]])if(T>P&&add(t,{type:"line",part:U===0?"today":`today/${String(U)}`,x1:b,y1:P,x2:b,y2:Math.min(T,C),color:"accent1",width:1.25*e,dash:!0}),U++,P=Math.max(P,Y),P>=C)break;const R=90*e;add(t,textMark(t,"today/date",$t(n.today??"",t.lang),{x:Math.max(0,Math.min(i-R,b-R/2)),y:0,w:R,size:c,weight:700,color:"accent1",align:"center",max:1}).mark)};if(g.length===0){const k=n.items.map((X,K)=>K).sort((X,K)=>(a[X]??0)-(a[K]??0)),C=k.filter((X,K)=>K%2===1),v=k.filter((X,K)=>K%2===0),F=q(C),P=q(v),U=new Map;C.forEach((X,K)=>U.set(X,{w:F[K]??64*e,b:D(X,F[K]??64*e),up:!0})),v.forEach((X,K)=>U.set(X,{w:P[K]??64*e,b:D(X,P[K]??64*e),up:!1}));const R=Math.max(0,...[...U.values()].filter(X=>X.up).map(X=>X.b.h)),T=z+R+(R>0?S:0),Y=new Map;for(const[X,{w:K}]of U)Y.set(X,Math.max(0,Math.min(i-K,N(a[X]??M)-12*e)));for(const X of[C,v])X.forEach((K,J)=>{const H=U.get(K),nt=Y.get(K);if(!H||nt===void 0)return;const ot=X[J-1],at=X[J+1],it=ot===void 0?0:(Y.get(ot)??0)+(U.get(ot)?.w??0)+8*e,gt=at===void 0?i:(Y.get(at)??i)-8*e,ft=B(N(a[K]??M),nt,H.w,it,gt);Y.set(K,ft.bx),ft.w!==H.w&&U.set(K,{...H,w:ft.w,b:D(K,ft.w)})});const et=T+$+6*e,tt=[...U].flatMap(([X,{w:K,b:J,up:H}])=>{const nt=H?T-S-J.h:T+$+S;return L(Y.get(X)??0,K)&&nt<et?[[nt,nt+J.h]]:[]});x(z,et,tt),w(T);let V=T+$;for(const[X,{w:K,b:J,up:H}]of U){const nt=n.items[X];if(!nt)continue;const ot=N(a[X]??M),at=Y.get(X)??0,it=H?T-S-J.h:T+$+S,gt=5*e;add(t,{type:"line",part:`items/${String(X)}/stem`,x1:ot,y1:H?it+J.h:T+$,x2:ot,y2:H?T:it,color:yt(nt.state),width:1.25*e,dash:!1}),add(t,Ht(t,`items/${String(X)}/dot`,ot,H?T-S/2:T+$+S/2,gt,yt(nt.state))),add(t,{type:"rect",part:`items/${String(X)}/box`,x:at,y:it,w:K,h:J.h,r:Math.min(4,t.look.radius)*e,fill:J.fill,line:"none",lineWidth:0}),j(J.marks,at,it),V=Math.max(V,it+J.h)}return s!==void 0&&V>s+.5&&t.overflow.push("timeline"),s??V}const O=z,A=t.marks.length,Q=[];w(O);let G=O+$+10*e;g.forEach((k,C)=>{const v=n.items.map((Y,et)=>({m:Y,i:et})).filter(Y=>Y.m.lane===k).map(Y=>Y.i).sort((Y,et)=>(a[Y]??0)-(a[et]??0)),F=q(v),P=5*e;let U=f;const R=v.map((Y,et)=>{const tt=N(a[Y]??M);let V=F[et]??64*e,X=Math.max(f,Math.min(i-V,tt+P+4*e));const K=v[et+1],J=K===void 0?i:N(a[K]??M)-P-4*e;if(b!==void 0&&L(X,V)&&tt<b){const H=tt-P-4*e-V;H>=U+8*e&&H+V<=b-I?X=H:{bx:X,w:V}=B(tt,X,V,U+8*e,J)}return U=X+V,{i:Y,w:V,bx:X,b:D(Y,V)}}),T=Math.max(28*e,...R.map(Y=>Y.b.h));add(t,{type:"line",part:`lanes/${String(C)}/line`,x1:f,y1:G+T/2,x2:i,y2:G+T/2,color:"rule",width:1*e,dash:!1}),add(t,textMark(t,`lanes/${String(C)}/label`,k,{x:0,y:G+(T-c*LINE)/2,w:m-10*e,size:c,weight:600,color:"muted",max:1}).mark);for(const{i:Y,w:et,b:tt,bx:V}of R){const X=n.items[Y];if(!X)continue;const K=N(a[Y]??M),J=P;add(t,{type:"ellipse",part:`items/${String(Y)}/dot`,x:K-J,y:G+T/2-J,w:2*J,h:2*J,fill:"ground",line:yt(X.state),lineWidth:2*e}),L(V,et)&&Q.push([G+(T-tt.h)/2,G+(T+tt.h)/2]),add(t,{type:"rect",part:`items/${String(Y)}/box`,x:V,y:G+(T-tt.h)/2,w:et,h:tt.h,r:4*e,fill:tt.fill,line:"none",lineWidth:0}),j(tt.marks,V,G+(T-tt.h)/2)}G+=T+10*e});const W=t.marks.length;x(z,G-10*e,Q),t.marks.splice(A,0,...t.marks.splice(W));const Z=G-10*e;return s!==void 0&&Z>s+.5&&t.overflow.push("timeline"),s??Z}function ee(t,n,i,s){const e=t.s,l=n.items.length,a=Yt(n.items.map(x=>x.date)),o=x=>x.date===void 0?void 0:Xt(x.date,t.lang,a),u=x=>x.text;if(l===0)return s??0;if(n.orientation==="vertical"||n.orientation===void 0&&s!==void 0&&s>i*1.1){const x=8*e;let O=0;const A=[],Q=x+22*e;n.items.forEach((v,F)=>{A.push(O);let P=O;if(v.date!==void 0){const R=textMark(t,`items/${String(F)}/date`,o(v)??"",{x:Q,y:P,w:i-Q,size:E.label*e,color:"muted",max:1});add(t,R.mark),P+=R.height}const U=textMark(t,`items/${String(F)}/title`,v.title,{x:Q,y:P,w:i-Q,size:E.body*e,weight:700,color:"text"});if(add(t,U.mark),P+=U.height,u(v)!==void 0){const R=textMark(t,`items/${String(F)}/text`,u(v)??"",{x:Q,y:P,w:i-Q,size:E.label*e,color:"muted"});add(t,R.mark),P+=R.height}O=P+14*e});const G=s??O-14*e,W=t.marks.length,Z=(A[0]??0)+9*e,k=(A.at(-1)??0)+9*e;add(t,{type:"line",part:"line",x1:x,y1:Z,x2:x,y2:k,color:"rule-strong",width:1.5*e,dash:!1}),n.items.forEach((v,F)=>{Lt(t,`items/${String(F)}/`,v.state,x,(A[F]??0)+9*e)});const C=t.marks.splice(W);return t.marks.unshift(...C),s!==void 0&&O-14*e>s+.5&&t.overflow.push("timeline"),G}if(n.bands!==void 0||n.items.some(x=>x.lane!==void 0)){const x=te(t,n,i,s);if(x!==void 0)return x}const d=n.items.map(x=>mt(x.date)),M=mt(n.today),y=d.every(x=>x!==void 0)&&new Set(d).size>=2,r=i/l,c=r/2,g=i-r/2,m=d.filter(x=>x!==void 0),f=Math.min(...m),p=Math.max(...m),N=x=>{const O=d[x];return!y||O===void 0?c+x*r:c+(O-f)/(p-f)*(g-c)},$=4*e,S=(x,O,A)=>x.some((Q,G)=>G>=O&&Q-(x[G-O]??0)<A+$);let z=n.items.map((x,O)=>N(O)),D=1,q=Math.min(r-8*e,i);if(S(z,1,q)){const x=Math.min(2*r-8*e,i);l>2&&!S(z,2,x)?(D=2,q=x):z=n.items.map((O,A)=>c+A*r)}const j=(x,O,A,Q)=>{const G=[];let W=0;if(x.date!==void 0){const k=textMark(t,`items/${String(O)}/date`,o(x)??"",{x:A,y:W,w:Q,size:E.label*e,weight:500,color:"muted",align:"center",max:1});G.push(k.mark),W+=k.height+(D===1?0:2*e)}const Z=textMark(t,`items/${String(O)}/title`,x.title,{x:A,y:W,w:Q,size:E.body*e,weight:700,color:"text",align:"center",max:2});if(G.push(Z.mark),W+=Z.height,u(x)!==void 0){const k=textMark(t,`items/${String(O)}/text`,u(x)??"",{x:A,y:W,w:Q,size:E.label*e,color:"muted",align:"center",max:3});G.push(k.mark),W+=k.height}return{marks:G,height:W}},w=n.items.map((x,O)=>{const A=z[O]??0,Q=Math.max(Math.min(q,2*Math.min(A,i-A)),Math.min(q,r-8*e)),G=Math.max(0,Math.min(i-Q,A-Q/2));return{cx:A,...j(x,O,G,Q),up:D===2&&O%2===1}}),_=E.label*e*LINE,b=D===1?_+12*e:Math.max(0,...w.filter(x=>x.up).map(x=>x.height))+14*e,I=(x,O)=>{"y"in x&&(x.y+=O)};add(t,{type:"line",part:"line",x1:z[0]??0,y1:b,x2:z.at(-1)??i,y2:b,color:"rule-strong",width:1.5*e,dash:!1});const L=n.items.reduce((x,O,A)=>O.state==="done"||O.state==="current"?A:x,-1);if(L>0&&add(t,{type:"line",part:"done",x1:z[0]??0,y1:b,x2:z[L]??0,y2:b,color:"accent1",width:2.25*e,dash:!1}),y&&M!==void 0&&M>=f&&M<=p){const x=c+(M-f)/(p-f)*(g-c);add(t,{type:"line",part:"today",x1:x,y1:b-14*e,x2:x,y2:b+14*e,color:"accent1",width:1.5*e,dash:!0})}let B=b;return w.forEach((x,O)=>{const A=n.items[O];if(!A)return;if(Lt(t,`items/${String(O)}/`,A.state,x.cx,b),D===1){const G=A.date===void 0?void 0:x.marks[0],W=G===void 0?x.marks:x.marks.slice(1);G&&add(t,G);const Z=b+14*e-(G?_:0);for(const k of W)I(k,Z),add(t,k);B=Math.max(B,x.height+Z);return}const Q=x.up?b-14*e-x.height:b+14*e;for(const G of x.marks)I(G,Q),add(t,G);B=Math.max(B,Q+x.height)}),s!==void 0&&B>s+.5&&t.overflow.push("timeline"),s??B}function ne(t,n,i,s){const e=t.s,l=n.items.length;if(l===0)return s??0;const a=n.orientation==="vertical"||n.orientation===void 0&&s!==void 0&&s>i*1.1,o=14*e,u=r=>n.current===void 0||r+1<n.current?"done":r+1===n.current?"current":"next",h=(r,c,g)=>{const m=u(r);m==="current"&&add(t,{type:"ellipse",part:`items/${String(r)}/halo`,x:c-o-4*e,y:g-o-4*e,w:2*o+8*e,h:2*o+8*e,fill:"none",line:"accent1",lineWidth:1.5*e}),add(t,{type:"ellipse",part:`items/${String(r)}/circle`,x:c-o,y:g-o,w:2*o,h:2*o,fill:m==="next"?"ground":"accent-ground",line:m==="next"?"rule-strong":"none",lineWidth:1.5*e});const f=m==="next"?"muted":"on-accent",p=n.items[r],N=!n.numbered&&p?.icon!==void 0?ct(p.icon):void 0;if(N){const $=o*1.1;add(t,{type:"icon",part:`items/${String(r)}/icon`,x:c-$/2,y:g-$/2,size:$,paths:N,color:f,stroke:lt*$/rt})}else{const $=E.body*e;add(t,textMark(t,`items/${String(r)}/number`,String(r+1),{x:c-o,y:g-$*LINE/2,w:2*o,size:$,weight:700,color:f,align:"center",max:1,tabular:!0}).mark)}};if(a){const r=o+2*e,c=r+o+12*e,g=[];let m=0;const f=[],p=t.marks.length;n.items.forEach(($,S)=>{g.push(m);let z=m+Math.max(0,o-E.body*e*LINE*.5);const D=textMark(t,`items/${String(S)}/title`,$.title,{x:c,y:z,w:i-c,size:E.body*e,weight:700,color:"text"});if(f.push(D.mark),z+=D.height,$.text!==void 0){const q=textMark(t,`items/${String(S)}/text`,$.text,{x:c,y:z,w:i-c,size:E.label*e,color:"muted"});f.push(q.mark),z+=q.height}m=Math.max(z,m+2*o)+16*e}),t.marks.splice(p);for(let $=0;$+1<l;$++){const S=u($+1)!=="next";add(t,{type:"line",part:`items/${String($)}/link`,x1:r,y1:(g[$]??0)+o,x2:r,y2:(g[$+1]??0)+o,color:S?"accent1":"rule-strong",width:1.5*e,dash:!1})}n.items.forEach(($,S)=>{h(S,r,(g[S]??0)+o)}),t.marks.push(...f);const N=m-16*e;return s!==void 0&&N>s+.5&&t.overflow.push("steps"),s??N}const d=i/l,M=o+4*e;for(let r=0;r+1<l;r++){const c=u(r+1)!=="next";add(t,{type:"line",part:`items/${String(r)}/link`,x1:d*(r+.5)+o+6*e,y1:M,x2:d*(r+1.5)-o-6*e,y2:M,color:c?"accent1":"rule-strong",width:1.5*e,dash:!1})}let y=0;return n.items.forEach((r,c)=>{const g=d*(c+.5);h(c,g,M);const m=d-10*e;let f=M+o+12*e;const p=textMark(t,`items/${String(c)}/title`,r.title,{x:g-m/2,y:f,w:m,size:E.body*e,weight:700,color:u(c)==="next"?"muted":"text",align:"center",max:2});if(add(t,p.mark),f+=p.height,r.text!==void 0){const N=textMark(t,`items/${String(c)}/text`,r.text,{x:g-m/2,y:f,w:m,size:E.label*e,color:"muted",align:"center",max:3});add(t,N.mark),f+=N.height}y=Math.max(y,f)}),s!==void 0&&y>s+.5&&t.overflow.push("steps"),s??y}export function initialsOf(t){const n=t.trim().split(/\s+/u).filter(Boolean);if(n.length===0)return"";const i=Array.from(n[0]??"")[0]??"";if(/[㐀-鿿가-힣]/u.test(i))return i;const s=n.length>1?Array.from(n.at(-1)??"")[0]??"":"";return(i+s).toUpperCase()}function Tt(t,n,i,s,e,l,a=""){const o=t.s,u=l===void 0?e>=220*o:e>=l*1.6,h=u?Math.min(l??56*o,56*o):Math.min(e*.6,l===void 0?88*o:l*.5,96*o),d=u?i+h/2:i+e/2,M=s;if(n.photo!==void 0)add(t,{type:"picture",part:`${a}photo`,x:d-h/2,y:M,w:h,h,src:n.photo,round:!0});else{add(t,{type:"ellipse",part:`${a}photo`,x:d-h/2,y:M,w:h,h,fill:"accent-ground",line:"none",lineWidth:0});const $=h*.38;add(t,textMark(t,`${a}initials`,initialsOf(n.name),{x:d-h/2,y:M+(h-$*LINE)/2,w:h,size:$,weight:700,color:"on-accent",align:"center",max:1}).mark)}const y=u?i+h+12*o:i,r=u?e-h-12*o:e,c=u?"left":"center",m=[{part:"name",text:n.name,size:(u?E.body:E.body)*o,weight:700,color:"text"},...n.role===void 0?[]:[{part:"role",text:n.role,size:E.label*o,weight:400,color:"muted"}],...n.note===void 0?[]:[{part:"note",text:n.note,size:E.label*o,weight:400,color:"muted"}]].map($=>textMark(t,`${a}${$.part}`,$.text,{x:y,y:0,w:r,size:$.size,weight:$.part==="name"?t.look.heading.weight:$.weight,color:$.color,align:c,max:2,...$.part==="name"?{face:t.look.heading.face}:{}})),f=m.reduce(($,S)=>$+S.height,0)+2*o*(m.length-1);let p=u?M+Math.max(0,(h-f)/2):M+h+8*o;for(const $ of m)$.mark.y=p,add(t,$.mark),p+=$.height+2*o;const N=u?Math.max(h,f):h+8*o+f;return l??N}function oe(t,n,i,s){const e=t.s,l=E.body*e,a=E.label*e,o=8*e,u=6*e,h=(w,_)=>{const b=[w.title??w.name,...n.rows.map(B=>B[_]?.text??"")],I=Math.max(...b.flatMap(B=>B.split(/\s+/u).map(x=>t.measure(x,l,600)))),L=w.tag===!0||n.rows.some(B=>B[_]?.tag!==void 0)?Math.max(...n.rows.map(B=>t.look.tag==="text"?dt(t,{caps:!0,tracking:.08})(B[_]?.text??"",a,700)+1*e:t.measure(B[_]?.text??"",a,500)+16*e)):0;return Math.max(I,L)+2*o+(w.avatar===!0?26*e:0)},d=n,M=d.columns.length;if(M===0)return s??0;const y=d.columns.map((w,_)=>{const b=[w.title??w.name,...d.rows.map(I=>I[_]?.text??"")];return Math.max(40*e,...b.map(I=>t.measure(I,l,400)+2*o))+(w.avatar===!0?26*e:0)}),r=d.columns.map((w,_)=>{if(typeof w.width=="number")return w.width;const b=typeof w.width=="string"?/^(\d+(?:\.\d+)?)\*$/u.exec(w.width):null;return b?Number(b[1])*(i/M):Math.min(y[_]??0,i*.6)}),c=d.columns.map(h),g=r.reduce((w,_)=>w+_,0);let m=r.map(w=>w/g*i);const f=d.columns.map(w=>typeof w.width=="string"?Number(/^(\d+(?:\.\d+)?)\*$/u.exec(w.width)?.[1]??NaN):NaN);if(f.some(w=>!Number.isNaN(w))){const w=m.map((I,L)=>Number.isNaN(f[L]??NaN)?typeof d.columns[L]?.width=="number"?r[L]??0:Math.max(c[L]??0,y[L]??0):0),_=i-w.reduce((I,L)=>I+L,0),b=f.reduce((I,L)=>I+(Number.isNaN(L)?0:L),0);_>0&&b>0&&(m=m.map((I,L)=>Number.isNaN(f[L]??NaN)?w[L]??0:_*(f[L]??0)/b))}const p=m.map((w,_)=>Math.max(0,(c[_]??0)-w)),N=p.reduce((w,_)=>w+_,0);if(N>0){const w=m.map((I,L)=>Math.max(0,I-(c[L]??0))),_=w.reduce((I,L)=>I+L,0),b=Math.min(1,N/Math.max(_,1e-9));m=m.map((I,L)=>I+(p[L]??0)-(w[L]??0)*b),N>_+.5&&t.overflow.push("table")}const $=d.columns.map((w,_)=>d.rows.length>0&&d.rows.every(b=>b[_]?.number!==void 0||(b[_]?.text??"")==="")&&d.rows.some(b=>b[_]?.number!==void 0)),S=(w,_)=>_??d.columns[w]?.align??($[w]===!0?"right":"left");let z=0,D=0;const q=[],j=m.reduce((w,_,b)=>[...w,(w[b]??0)+_],[0]);if(d.head){let w=0;const _=d.columns.map((b,I)=>textMark(t,`head/${String(I)}`,b.title??b.name,{x:(j[I]??0)+o,y:z+u,w:(m[I]??0)-2*o,size:a,weight:600,color:"muted",align:S(I),...labelStyle(t)}));for(const b of _)w=Math.max(w,b.height);for(const b of _)add(t,b.mark);z+=w+2*u,D=w+2*u,add(t,{type:"line",part:"head/rule",x1:0,y1:z,x2:i,y2:z,color:"rule-strong",width:1*e,dash:!1})}return d.rows.forEach((w,_)=>{const b=_===d.rows.length-1,I=d.total&&b;I&&add(t,{type:"line",part:"total/rule",x1:0,y1:z,x2:i,y2:z,color:"rule-strong",width:1.5*e,dash:!1});const L=t.marks.length;let B=0;w.forEach((O,A)=>{const Q=(j[A]??0)+o,G=(m[A]??0)-2*o;if(d.columns[A]?.avatar===!0&&O.text.trim()!==""){const Z=20*e,k=l*LINE,C=z+u+Math.max(k,Z)/2;add(t,{type:"ellipse",part:`rows/${String(_)}/${String(A)}/avatar`,x:Q,y:C-Z/2,w:Z,h:Z,fill:"deep",line:"none",lineWidth:0});const v=a*.8;add(t,textMark(t,`rows/${String(_)}/${String(A)}/initials`,initialsOf(O.text),{x:Q,y:C-v*LINE/2,w:Z,size:v,weight:700,color:"on-deep",align:"center",max:1}).mark);const F=textMark(t,`rows/${String(_)}/${String(A)}`,O.text,{x:Q+Z+6*e,y:C-k/2,w:Math.max(0,G-Z-6*e),size:l,color:O.color??"text"});add(t,F.mark),B=Math.max(B,Z,F.height);return}if(O.tag!==void 0&&O.text.trim()!==""){const Z=t.marks.length,k=wt(t,`rows/${String(_)}/${String(A)}/`,{kind:"tag",text:O.text,status:O.tag},Q,z+u,G);if(S(A,O.align)!=="left"){const C=S(A,O.align)==="right"?G-k.w:(G-k.w)/2;for(const v of t.marks.slice(Z))moveMark(v,C,0)}B=Math.max(B,k.h);return}const W=textMark(t,`rows/${String(_)}/${String(A)}`,O.auto===!0&&O.number!==void 0?zt(O.number,t.lang):O.text,{x:Q,y:z+u,w:G,size:l,weight:I||O.bold===!0?700:400,color:O.color??"text",align:S(A,O.align),tabular:O.number!==void 0});add(t,W.mark),B=Math.max(B,W.height)});const x=B+2*u;q.push(x),w.forEach((O,A)=>{O.fill!==void 0&&t.marks.splice(L,0,{type:"rect",part:`rows/${String(_)}/${String(A)}/fill`,x:j[A]??0,y:z,w:m[A]??0,h:x,r:0,fill:O.fill,line:"none",lineWidth:0})}),z+=x,b||add(t,{type:"line",part:`rows/${String(_)}/rule`,x1:0,y1:z,x2:i,y2:z,color:"rule",width:.75,dash:!1})}),s!==void 0&&z>s+.5&&t.overflow.push("table"),t.grid={widths:m,head:D,rows:q,padX:o,shown:M},s??z}function bt(t,n,i,s){let e;switch(t.kind){case"stat":e=pt(s,t,0,0,n,i);break;case"stats":{const l=12*s.s,a=t.items.length,o=It(a,n,(i===void 0?120:90)*s.s,l,t.columns);let u=Math.min(...t.items.map(r=>figureSize(r,o.w-2*Math.min(16*s.s,o.w*.08),{s:s.s,measure:s.measure})));if(o.across>4&&(u=Math.min(u,E.heading*s.s)),i!==void 0){const r=(i-l*(o.rows-1))/o.rows,c=2*Math.min(16*s.s,o.w*.08),g=E.label*s.s*LINE*2.2+6*s.s;u=Math.max(E.label*s.s,Math.min(u,(r-c-g)/LINE))}const h=i===void 0?void 0:(i-l*(o.rows-1))/o.rows,d=[];for(let r=0;r<o.rows;r++){let c=h??0;for(let g=0;g<o.across;g++){const m=t.items[r*o.across+g];if(m===void 0)continue;const f={...s,marks:[],overflow:[]};c=Math.max(c,pt(f,m,0,0,o.w,void 0,{figure:u}))}d.push(c)}i!==void 0&&d.reduce((r,c)=>r+c,0)+l*(o.rows-1)>i+.5&&s.overflow.push("stats");const M=[];for(let r=0;r<o.rows;r++){let c=0;for(let g=0;g<o.across;g++){const m=t.items[r*o.across+g];if(m===void 0)continue;const f=o.w-2*Math.min(16*s.s,o.w*.08),p={...s,marks:[],overflow:[]};c=Math.max(c,textMark(p,"label",m.label,{x:0,y:0,w:f,size:E.label*s.s,weight:500,color:"muted",max:2}).height)}M.push(c)}let y=0;for(let r=0;r<o.rows;r++){for(let f=0;f<o.across;f++){const p=r*o.across+f,N=t.items[p];N!==void 0&&pt(s,N,f*(o.w+l),y,o.w,d[r],{figure:u,prefix:`items/${String(p)}/`,labelHeight:M[r]??0})}const c=Array.from({length:o.across},(f,p)=>r*o.across+p),g=f=>{const p=s.marks.find(N=>N.part===`items/${String(f)}/range/track`);return p?.type==="rect"?p.y:void 0},m=Math.max(...c.map(f=>g(f)??-1/0));if(Number.isFinite(m))for(const f of c){const p=g(f);if(!(p===void 0||p===m))for(const N of s.marks)N.part.startsWith(`items/${String(f)}/range/`)&&moveMark(N,0,m-p)}y+=(d[r]??0)+l}e=i??Math.max(0,y-l);break}case"card":e=Qt(s,t,n,i);break;case"tag":{const a=E.label*s.s*1.5,o=wt(s,"",t,0,i===void 0?0:Math.max(0,(i-a)/2),n);e=i??o.h;break}case"callout":e=Jt(s,t,n,i);break;case"icon":e=Vt(s,t,n,i);break;case"progress":e=jt(s,t,n,i);break;case"timeline":e=ee(s,t,n,i);break;case"steps":e=ne(s,t,n,i);break;case"person":e=Tt(s,t,0,0,n,i);break;case"people":{const l=16*s.s,a=It(t.items.length,n,110*s.s,l);let o=0;for(let u=0;u<a.rows;u++){let h=0;for(let d=0;d<a.across;d++){const M=u*a.across+d,y=t.items[M];y!==void 0&&(h=Math.max(h,Tt(s,y,d*(a.w+l),o,a.w,void 0,`items/${String(M)}/`)))}o+=h+l}e=i??Math.max(0,o-l),i!==void 0&&o-l>i+.5&&s.overflow.push("people");break}case"table":e=oe(s,t,n,i);break;case"risk_matrix":e=Wt(s,t,n,i);break;case"sankey":e=Gt(s,t,n,i);break;case"gantt":e=qt(s,t,n,i);break;case"org_chart":case"issue_tree":case"decision_tree":case"fishbone":e=Kt(s,t,n,i);break;case"matrix":case"marimekko":case"heatmap":case"small_multiples":e=Bt(s,t,n,i);break;case"chart":{e=i??Math.round(n*.5625),s.marks.push({type:"chart",part:"chart",x:0,y:0,w:snugChartWidth(t.chart,n,e,(l,a)=>s.measure(l,a,400)),h:e,chart:t.chart});break}}return{width:n,height:e,marks:s.marks,overflow:[...new Set(s.overflow)],...s.grid===void 0?{}:{table:s.grid}}}export function snugChartWidth(t,n,i,s=Pt){if(!At(t.type)||t.legend!=="right"&&t.legend!=="left")return n;const e=Dt(t,n,i,s);if(e.keys.length===0||e.plot.width<=0)return n;const l=kt.margin,a=t.font_size??kt.fontSize,o=e.plot.x+e.plot.width/2,u=t.legend==="right"?n-l-Math.min(...e.keys.map(h=>h.x)):2*o-a-n;return Math.min(n,Math.ceil(2*l+e.plot.width+a*2+u))}const ie=[1,.86,.74,.64],se=[1.4,1.25,1.12],ae=new Set(["steps","people"]),Ut=new Set(["org_chart","issue_tree","decision_tree"]),re=new Set(["stat","stats","card","tag","callout","progress","timeline","steps","person","people"]);export function marksBounds(t){let n=1/0,i=1/0,s=-1/0,e=-1/0;const l=(a,o,u,h)=>{n=Math.min(n,a),i=Math.min(i,o),s=Math.max(s,u),e=Math.max(e,h)};for(const a of t)switch(a.type){case"line":case"connector":l(Math.min(a.x1,a.x2),Math.min(a.y1,a.y2),Math.max(a.x1,a.x2),Math.max(a.y1,a.y2));break;case"arc":l(a.cx-a.r-a.width/2,a.cy-a.r-a.width/2,a.cx+a.r+a.width/2,a.cy+a.r+a.width/2);break;case"icon":l(a.x,a.y,a.x+a.size,a.y+a.size);break;case"text":{const o=Math.max(0,...a.lines.map(h=>h.width)),u=a.align==="center"?a.x+(a.w-o)/2:a.align==="right"?a.x+a.w-o:a.x;l(u,a.y,u+o,a.y+a.lines.length*a.lineHeight);break}default:l(a.x,a.y,a.x+a.w,a.y+a.h)}return Number.isFinite(n)?{left:n,top:i,right:s,bottom:e}:{left:0,top:0,right:0,bottom:0}}export function blockLayout(t,n,i={}){const s=i.scale??1,e=Nt(i.look),l=i.measure??Rt,a=e.textWidth===1?l:(r,c,g)=>l(r,c,g)*e.textWidth,o=(r,c,g)=>{let m;for(const f of i.fit==="shrink"?ie:[1]){const p=bt(r,c,g,{s:s*f,measure:a,flow:i.flow??!1,marks:[],overflow:[],lang:i.lang,look:e});if(p.overflow.length===0)return p;m=p}return m??bt(r,c,g,{s,measure:a,flow:i.flow??!1,marks:[],overflow:[],lang:i.lang,look:e})},u=(r,c,g,m)=>{for(const f of se){const p=bt(r,c,Ut.has(r.kind)?g:void 0,{s:s*f,measure:a,flow:i.flow??!1,marks:[],overflow:[],lang:i.lang,look:e});if(p.overflow.length===0&&m(p))return p}},h=n.width,d=n.height;if(d!==void 0&&i.fill!==!0&&Ut.has(t.kind)){const r=u(t,h,d,c=>{const g=marksBounds(c.marks);return g.right-g.left<=h+.5&&g.bottom-g.top<=d+.5});if(r)return r}if(d===void 0||i.fill===!0||!re.has(t.kind))return o(t,h,d);const M=(t.kind==="timeline"||t.kind==="steps")&&t.orientation===void 0?{...t,orientation:d>h*1.1?"vertical":"horizontal"}:t;let y=o(M,h,void 0);if(y.height>d+.5)return o(M,h,d);if(ae.has(M.kind)&&y.overflow.length===0&&(y=u(M,h,d,r=>{const c=marksBounds(r.marks);return r.height<=d+.5&&c.right-c.left<=h+.5})??y),i.anchor!=="top-left"){const r=marksBounds(y.marks),c=(h-(r.right-r.left))/2-r.left,g=(d-y.height)/2;for(const m of y.marks)moveMark(m,c,g)}return{...y,height:d}}export function blockHeight(t,n,i={}){return blockLayout(t,{width:n},{flow:!0,...i}).height}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const DEFAULT_LOOK={tile:"card",radius:12,ground:"surface",edge:"rule",rule:{paint:"rule-strong",width:1,stub:!1},featured:"accent-ground",figure:{face:"text",weight:700,paint:"text",scale:1},heading:{face:"text",weight:700},label:{caps:!1,tracking:0,weight:500},icon:"plain",callout:"tint",tag:"pill",marker:"dot",band:"solid",displayWidth:1,textWidth:1};export function lookOf(e){if(e===void 0)return DEFAULT_LOOK;const t=DEFAULT_LOOK;return{...t,...e,figure:{...t.figure,...e.figure},heading:{...t.heading,...e.heading},label:{...t.label,...e.label},rule:{...t.rule,...e.rule}}}
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ const m=/[ᄀ-ᅟ⺀-〾ぁ-㏿㐀-䶿一-鿿ꀀ-꓏가-힣豈-﫿︰-﹏＀-⦆¢-₩]|\p{Extended_Pictographic}/u;function M(t){return m.test(t)?1:t===" "?.28:"il.,:;'|!·".includes(t)?.27:"fjrt()[]{}/-".includes(t)?.36:/[0-9]/u.test(t)?.56:"MW".includes(t)?.86:"mw".includes(t)?.8:/[A-Z]/u.test(t)?.66:/[a-z]/u.test(t)?.52:"▲▼●".includes(t)?.6:.58}export const roughMeasure=(t,s,r)=>{let o=0;for(const e of t)o+=M(e);return o*s*(r>=600?1.06:1)};export function runsOf(t){const s=[],r=/\*\*([^*]+)\*\*|\*([^*]+)\*/gu;let o=0;for(const e of t.matchAll(r))e.index>o&&s.push({text:t.slice(o,e.index)}),e[1]!==void 0?s.push({text:e[1],bold:!0}):e[2]!==void 0&&s.push({text:e[2],italic:!0}),o=e.index+e[0].length;return o<t.length&&s.push({text:t.slice(o)}),s.length===0?[{text:""}]:s}function A(t){const s=[];for(const r of t.matchAll(/\s+|[^\s]+/gu)){const o=r[0];if(/\s/u.test(o)||!m.test(o))s.push(o);else{let e="";for(const l of o)m.test(l)?(e!==""&&s.push(e),s.push(l),e=""):e+=l;e!==""&&s.push(e)}}return s}export function wrap(t,s,r,o,e=roughMeasure){const l=[];let i=[],h=0;const a=()=>{const n=i.at(-1);if(n){const u=n.text.replace(/\s+$/u,"");h-=e(n.text.slice(u.length),r,o),i[i.length-1]={...n,text:u}}l.push({runs:i.filter(u=>u.text!==""),width:Math.max(0,h)}),i=[],h=0},x=n=>n.weight??(n.bold?Math.max(o,700):o),d=(n,u)=>{const g=e(u,r,x(n)),f=i.at(-1);f&&f.bold===n.bold&&f.italic===n.italic&&f.weight===n.weight&&f.color===n.color?i[i.length-1]={...f,text:f.text+u}:i.push({...n,text:u}),h+=g};for(const n of t)n.text.split(`
3
+ `).forEach((g,f)=>{f>0&&a();for(const p of A(g)){const w=e(p,r,x(n));if(/^\s+$/u.test(p)){i.length>0&&d(n,p);continue}if(h+w>s+.01&&i.length>0&&a(),w>s+.01&&i.length===0){let c="";for(const b of p)c!==""&&e(c+b,r,x(n))>s&&(d(n,c),a(),c=""),c+=b;d(n,c)}else d(n,p)}});return a(),l}export const plainOf=t=>t.map(s=>s.text).join("");
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{};
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{attributeValue as u,blockFieldInfo as o}from"@allyhub/formats";export{PAGE_DATA_ID,askedAddresses,attributeValue,namedAddresses,pageAddresses,pageData,pageWithData,readPath,servedPage}from"@allyhub/formats";export const BLOCK_ELEMENTS={"allyhub-stat":"stat","allyhub-stats":"stats","allyhub-card":"card","allyhub-tag":"tag","allyhub-callout":"callout","allyhub-icon":"icon","allyhub-progress":"progress","allyhub-timeline":"timeline","allyhub-steps":"steps","allyhub-person":"person","allyhub-people":"people","allyhub-table":"table","allyhub-chart":"chart","allyhub-risk-matrix":"risk_matrix","allyhub-sankey":"sankey","allyhub-gantt":"gantt","allyhub-org-chart":"org_chart","allyhub-issue-tree":"issue_tree","allyhub-decision-tree":"decision_tree","allyhub-fishbone":"fishbone","allyhub-matrix":"matrix","allyhub-marimekko":"marimekko","allyhub-heatmap":"heatmap","allyhub-small-multiples":"small_multiples"},ITEM_TAGS=new Set(["allyhub-stat","allyhub-milestone","allyhub-step","allyhub-person","allyhub-entry","allyhub-flow","allyhub-task"]);const h={tag:"text",callout:"text",card:"body"},d={"allyhub-milestone":"text","allyhub-step":"text"},b=t=>{const e=i(t,void 0),a=d[t.tag],l=t.text.replace(/\s+/gu," ").trim();return a!==void 0&&e[a]===void 0&&l!==""&&(e[a]=l),e},c=new Set(["style","class","id","slot","hidden","lang","dir","tabindex","role","part","height"]);function y(t,e){const a=BLOCK_ELEMENTS[t];return a!==void 0&&o(a).some(l=>l.name===e)}const i=(t,e)=>{const a={};for(const[l,s]of Object.entries(t.attributes))(!c.has(l)||y(t.tag,l))&&!l.startsWith("aria-")&&!l.startsWith("data-")&&(a[l]=u(s.replace(/\s+/gu," "),e));return a};export function isListItem(t,e){return ITEM_TAGS.has(t)&&e!==void 0&&e in BLOCK_ELEMENTS&&e!==t}export function elementBlock(t){const e=BLOCK_ELEMENTS[t.tag];if(e===void 0)return;const a=i(t,e),l=t.children.filter(r=>ITEM_TAGS.has(r.tag));l.length>0&&(a.items=l.map(b));const s=h[e],n=t.text.replace(/\s+/gu," ").trim();return s!==void 0&&a[s]===void 0&&l.length===0&&n!==""&&(a[s]=n),{kind:e,fields:a}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{HUE_COLORS as $,NAMED_COLORS as h,OFFICE_COLORS as l,TONE_COLORS as m,colorOfFile as b,roleOf as C,toneOf as O}from"@allyhub/formats";import{colorRgb as W}from"@allyhub/chart";const x=t=>{const n=/^#([0-9A-Fa-f]{6})$/u.exec(t.trim());return n?.[1]===void 0?void 0:Number.parseInt(n[1],16)};export function mix(t,n,e){const r=x(t),c=x(n);if(r===void 0||c===void 0)return t;const s=(i,d)=>i>>d&255;return`#${[16,8,0].map(i=>Math.round(s(r,i)*e+s(c,i)*(1-e))).map(i=>i.toString(16).padStart(2,"0")).join("").toUpperCase()}`}export function luminance(t){const n=x(t);if(n===void 0)return 1;const e=r=>{const c=r/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4};return .2126*e(n>>16&255)+.7152*e(n>>8&255)+.0722*e(n&255)}export function contrast(t,n){const[e,r]=[luminance(t),luminance(n)].sort((c,s)=>s-c);return((e??0)+.05)/((r??0)+.05)}export function markOnGround(t,n){if(!t.startsWith("#")||!n.startsWith("#"))return t;for(let e=1;e>.2;e-=.04){const r=mix(t,"#FFFFFF",e);if(contrast(r,n)>=3)return r}return mix(t,"#FFFFFF",.2)}export function accentGround(t){if(!t.startsWith("#"))return t;for(let n=1;n>.4;n-=.03){const e=mix(t,"#000000",n);if(contrast("#FFFFFF",e)>=4.5)return e}return mix(t,"#000000",.4)}export function onColor(t){if(!t.startsWith("#"))return"#FFFFFF";const n=contrast("#FFFFFF",t);return n>=4.5?"#FFFFFF":contrast("#151515",t)>n?"#151515":"#FFFFFF"}function g(t,n,e,r,c=.7){for(let s=1;s>=1-c;s-=.02){const o=mix(t,n,s);if(contrast(o,e)>=r)return o}return mix(t,n,1-c)}export function themeTones(t){const n=e=>{const r=mix(e,"#FFFFFF",.14);return{mark:g(e,"#000000","#FFFFFF",4.5),tint:r,ink:g(e,"#000000",r,8,.85),dark:g(e,"#FFFFFF","#151515",5.5,.85)}};return{...m,info:n(t.accent1),neutral:n(mix(t.dk1,t.lt1,.62))}}export const BLOCK_FONT='Inter, "Noto Sans SC", Carlito, Calibri, Arial, sans-serif';export function paletteOfTheme(t=l,n={}){const e=n.dark??(n.ground!==void 0&&luminance(n.ground)<.4),r=e?t.lt1:t.dk1,c=n.ground??(e?t.dk1:t.lt1);return{roles:{text:r,body:r,muted:mix(r,c,.62),ground:c,surface:c,well:e?mix(r,c,.08):mix(t.lt2,c,.5),rule:mix(r,c,.15),"rule-strong":mix(r,c,.4),accent1:t.accent1,accent2:t.accent2,accent3:t.accent3,accent4:t.accent4,accent5:t.accent5,accent6:t.accent6,deep:t.dk2},dark:e,theme:t,font:n.font??BLOCK_FONT,tones:themeTones(t)}}export function paletteOfColors(t,n={}){const e=t.bg1??t.lt1,r=t.tx1??t.dk1,c=luminance(e)<.4,s=c?{...t,dk1:e,lt1:r}:t;return paletteOfTheme(s,{dark:c,ground:e,...n.font===void 0?{}:{font:n.font}})}export function paletteOf(t,n={}){const e=paletteOfTheme(n.theme,{...n.dark===void 0?{}:{dark:n.dark},...t.ground===void 0?{}:{ground:t.ground},...n.font===void 0?{}:{font:n.font}}),r=s=>s?.startsWith("#")===!0?s:void 0,c=themeTones({...e.theme,accent1:r(t.accent1)??e.theme.accent1,dk1:r(t.text)??e.theme.dk1,lt1:r(t.ground)??e.theme.lt1});return{...e,roles:{...e.roles,...t},tones:c}}export const CSS_ROLES={text:"text-primary",body:"text-body",muted:"text-secondary",ground:"page-bg",surface:"surface",well:"neutral-bg",rule:"border","rule-strong":"divider",accent1:"chart-1",accent2:"chart-2",accent3:"chart-3",accent4:"chart-4",accent5:"chart-5",accent6:"chart-6",deep:"hero-deco2"};export function cssHex(t){const n=(t??"").trim(),e=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/iu.exec(n);if(e)return`#${e.slice(1,4).map(c=>`${c}${c}`).join("")}`.toUpperCase();if(/^#[0-9a-f]{6}$/iu.test(n))return n.toUpperCase();const r=/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)(?:[\s,/]+([\d.]+%?))?\s*\)$/iu.exec(n);if(r&&!(r[4]!==void 0&&Number.parseFloat(r[4])===0))return`#${[r[1],r[2],r[3]].map(c=>Math.min(255,Number(c)).toString(16).padStart(2,"0")).join("")}`.toUpperCase()}export function cssPalette(t=l,n={}){const e=u=>cssHex(n[u]),r=e(CSS_ROLES.ground),c=paletteOfTheme(t,r===void 0?{}:{ground:r}),s=Object.fromEntries(Object.keys(CSS_ROLES).map(u=>[u,`var(--${CSS_ROLES[u]}, ${e(CSS_ROLES[u])??c.roles[u]})`])),o=(u,f)=>e(`chart-${String(u)}`)??f,i={...t,accent1:o(1,t.accent1),accent2:o(2,t.accent2),accent3:o(3,t.accent3),accent4:o(4,t.accent4),accent5:o(5,t.accent5),accent6:o(6,t.accent6)},d=themeTones(i),a=u=>{const f=d[u],F=k=>`var(--${u}-${k}, ${e(`${u}-${k}`)??f[k]})`;return c.dark?f:{mark:F("mark"),tint:F("tint"),ink:F("ink"),dark:f.dark}};return{...c,roles:s,theme:i,font:"var(--font-sans, Inter, sans-serif)",tones:Object.fromEntries(Object.keys(d).map(u=>[u,a(u)]))}}export function colorNow(t){return t.startsWith("#")?t:/#[0-9A-Fa-f]{6}\)?$/u.exec(t)?.[0]?.replace(")","")}export function paintColor(t,n){if(t.startsWith("on:")){const o=paintColor(t.slice(3),n);return o.startsWith("#")?onColor(o):"#FFFFFF"}const e=/^(.+)~(\d{1,3})$/u.exec(t);if(e){const o=paintColor(e[1]??"",n),i=n.roles.ground.startsWith("#")?n.roles.ground:n.dark?n.theme.dk1:n.theme.lt1;return o.startsWith("#")?mix(o,i,Math.min(100,Number(e[2]))/100):n.roles.well}if(t==="stripe"){const{text:o,ground:i,well:d}=n.roles;return n.dark&&o.startsWith("#")&&i.startsWith("#")?mix(o,i,.04):d}if(t.endsWith("~tint")){const o=paintColor(t.slice(0,-5),n),i=n.roles.ground.startsWith("#")?n.roles.ground:n.dark?n.theme.dk1:n.theme.lt1;return o.startsWith("#")?mix(o,i,.14):n.roles.well}const r=C(t);if(r!==void 0&&!t.includes(" ")){const o=n.roles[r];return n.dark&&/^accent[1-6]$/u.test(r)?markOnGround(o,n.roles.ground):o}if(t==="accent-ground")return accentGround(paintColor("accent1",n));if(t==="on-accent")return onColor(accentGround(paintColor("accent1",n)));if(t==="on-deep")return onColor(paintColor("deep",n));if(t.startsWith("#"))return t.toUpperCase();const c=/^([a-z]+)(?:-(tint|ink))?$/u.exec(t);if(c){const o=c[1]??"",i=c[2],d=Object.keys(m).find(a=>a===o);if(d!==void 0){const a=n.tones[d];if(n.dark){const u=n.roles.ground.startsWith("#")?n.roles.ground:n.theme.dk1;return i==="tint"?mix(a.dark,u,.18):a.dark}return i==="tint"?a.tint:i==="ink"?a.ink:a.mark}if(h.includes(o)){const a=$[o];if(a!==void 0)return i==="tint"?a.tint:a.mark}}const s=b(t);return s!==void 0?W(s,n.theme):t}export function colorPaints(t){const n=t.trim(),e=n.toLowerCase();if(h.includes(e)){if(e==="orange")return toneColorPaints("warning");const c=e==="yellow"?void 0:O(e);if(c!==void 0&&c!=="accent1")return toneColorPaints(c);const s=e;return{tint:`${s}-tint`,ink:s,mark:s}}const r=O(n);return r!==void 0&&r!=="accent1"?toneColorPaints(r):{tint:`${n}~tint`,ink:n,mark:n}}export const toneColorPaints=t=>({tint:`${t}-tint`,ink:`${t}-ink`,mark:t});
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ const t=h=>String(Math.round(h*1e3)/1e3);function B(h){const f=[],o=/([MmLlHhVvCcSsQqTtAaZz])|(-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)/gu;for(const e of h.matchAll(o))e[1]!==void 0?f.push(e[1]):e[2]!==void 0&&f.push(Number(e[2]));return f}function D(h,f,o,e,a,n,i){let s=Math.abs(f),c=Math.abs(o);if(s===0||c===0||h[0]===i[0]&&h[1]===i[1])return[];const r=e*Math.PI/180,l=Math.cos(r),M=Math.sin(r),p=(h[0]-i[0])/2,y=(h[1]-i[1])/2,u=l*p+M*y,$=-M*p+l*y,b=u*u/(s*s)+$*$/(c*c);b>1&&(s*=Math.sqrt(b),c*=Math.sqrt(b));const m=s*s*c*c-s*s*$*$-c*c*u*u,w=s*s*$*$+c*c*u*u,C=(a===n?-1:1)*Math.sqrt(Math.max(0,m/w)),x=C*s*$/c,A=-C*c*u/s,T=l*x-M*A+(h[0]+i[0])/2,U=M*x+l*A+(h[1]+i[1])/2,Q=(d,L,g,Z)=>Math.atan2(d*Z-L*g,d*g+L*Z),v=Q(1,0,(u-x)/s,($-A)/c);let k=Q((u-x)/s,($-A)/c,(-u-x)/s,(-$-A)/c);!n&&k>0&&(k-=2*Math.PI),n&&k<0&&(k+=2*Math.PI);const H=Math.max(1,Math.ceil(Math.abs(k)/(Math.PI/2)-1e-9)),I=k/H,q=4/3*Math.tan(I/4),V=d=>[T+s*Math.cos(d)*l-c*Math.sin(d)*M,U+s*Math.cos(d)*M+c*Math.sin(d)*l],j=d=>[-s*Math.sin(d)*l-c*Math.cos(d)*M,-s*Math.sin(d)*M+c*Math.cos(d)*l],N=[];for(let d=0;d<H;d++){const L=v+d*I,g=L+I,Z=V(L),P=d===H-1?i:V(g),S=j(L),z=j(g);N.push([Z[0]+q*S[0],Z[1]+q*S[1],P[0]-q*z[0],P[1]-q*z[1],P[0],P[1]])}return N}export function absolutePath(h){const f=B(h),o=[];let e=0,a="",n=[0,0],i=[0,0],s,c;const r=()=>{const l=f[e++];return typeof l=="number"?l:0};for(;e<f.length;){const l=f[e];if(typeof l=="string"&&(a=l,e++,a==="Z"||a==="z")){o.push("Z"),n=i,s=void 0,c=void 0;continue}const M=a===a.toLowerCase(),p=M?n[0]:0,y=M?n[1]:0;switch(a.toUpperCase()){case"M":{n=[p+r(),y+r()],i=n,o.push(`M${t(n[0])} ${t(n[1])}`),a=M?"l":"L",s=c=void 0;break}case"L":n=[p+r(),y+r()],o.push(`L${t(n[0])} ${t(n[1])}`),s=c=void 0;break;case"H":n=[(M?n[0]:0)+r(),n[1]],o.push(`L${t(n[0])} ${t(n[1])}`),s=c=void 0;break;case"V":n=[n[0],(M?n[1]:0)+r()],o.push(`L${t(n[0])} ${t(n[1])}`),s=c=void 0;break;case"C":{const u=[p+r(),y+r()],$=[p+r(),y+r()];n=[p+r(),y+r()],o.push(`C${t(u[0])} ${t(u[1])} ${t($[0])} ${t($[1])} ${t(n[0])} ${t(n[1])}`),s=$,c=void 0;break}case"S":{const u=s?[2*n[0]-s[0],2*n[1]-s[1]]:n,$=[p+r(),y+r()];n=[p+r(),y+r()],o.push(`C${t(u[0])} ${t(u[1])} ${t($[0])} ${t($[1])} ${t(n[0])} ${t(n[1])}`),s=$,c=void 0;break}case"Q":case"T":{const u=a.toUpperCase()==="Q"?[p+r(),y+r()]:c?[2*n[0]-c[0],2*n[1]-c[1]]:n,$=[p+r(),y+r()],b=[n[0]+2/3*(u[0]-n[0]),n[1]+2/3*(u[1]-n[1])],m=[$[0]+2/3*(u[0]-$[0]),$[1]+2/3*(u[1]-$[1])];o.push(`C${t(b[0])} ${t(b[1])} ${t(m[0])} ${t(m[1])} ${t($[0])} ${t($[1])}`),n=$,c=u,s=void 0;break}case"A":{const u=r(),$=r(),b=r(),m=r()!==0,w=r()!==0,C=[p+r(),y+r()];for(const x of D(n,u,$,b,m,w,C))o.push(`C${x.map(t).join(" ")}`);n=C,s=c=void 0;break}default:e++}}return o.join("")}export function elementPath(h,f){const o=e=>Number(f[e]??"0");switch(h){case"path":return f.d===void 0?void 0:absolutePath(f.d);case"circle":case"ellipse":{const e=o("cx"),a=o("cy"),n=o(h==="circle"?"r":"rx"),i=o(h==="circle"?"r":"ry");return absolutePath(`M${t(e-n)} ${t(a)}A${t(n)} ${t(i)} 0 1 0 ${t(e+n)} ${t(a)}A${t(n)} ${t(i)} 0 1 0 ${t(e-n)} ${t(a)}Z`)}case"rect":{const e=o("x"),a=o("y"),n=o("width"),i=o("height"),s=Math.min(f.rx===void 0?o("ry"):o("rx"),n/2),c=Math.min(f.ry===void 0?s:o("ry"),i/2);return s<=0?`M${t(e)} ${t(a)}L${t(e+n)} ${t(a)}L${t(e+n)} ${t(a+i)}L${t(e)} ${t(a+i)}Z`:absolutePath(`M${t(e+s)} ${t(a)}H${t(e+n-s)}A${t(s)} ${t(c)} 0 0 1 ${t(e+n)} ${t(a+c)}V${t(a+i-c)}A${t(s)} ${t(c)} 0 0 1 ${t(e+n-s)} ${t(a+i)}H${t(e+s)}A${t(s)} ${t(c)} 0 0 1 ${t(e)} ${t(a+i-c)}V${t(a+c)}A${t(s)} ${t(c)} 0 0 1 ${t(e+s)} ${t(a)}Z`)}case"line":return`M${t(o("x1"))} ${t(o("y1"))}L${t(o("x2"))} ${t(o("y2"))}`;case"polyline":case"polygon":{const e=(f.points??"").trim().split(/[\s,]+/u).map(Number),a=[];for(let n=0;n+1<e.length;n+=2)a.push(`${n===0?"M":"L"}${t(e[n]??0)} ${t(e[n+1]??0)}`);return a.join("")+(h==="polygon"?"Z":"")}default:return}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{addressParts as F,blockItemKind as U,isBlockReference as M,readBlockItem as Z,toneOf as P}from"@allyhub/formats";import{chartOfFile as D,formatValue as B,isBar as q,isRound as H}from"@allyhub/chart";import{ganttOf as J,sankeyOf as K}from"./flow-resolve.js";import{formatNumber as E}from"./format.js";import{gridOf as Q}from"./grids.js";import{treeOf as X}from"./trees.js";export{addressParts}from"@allyhub/formats";export function numberIn(a){const n=/([-+−–]?)\s*[$€£¥]?\s*(\d[\d,]*(?:\.\d+)?|\.\d+)/u.exec(a);if(!n)return;const s=Number((n[2]??"").replace(/,/gu,""));if(Number.isFinite(s))return n[1]==="-"||n[1]==="−"||n[1]==="–"?-s:s}export function deltaWay(a){if(a===void 0)return"flat";const n=a.text.trim().charAt(0);return n==="+"||n==="↑"||n==="▲"?"up":n==="-"||n==="−"||n==="–"||n==="↓"||n==="▼"?"down":a.words!==!0&&a.number!==void 0&&a.number!==0?a.number>0?"up":"down":"flat"}export function dayOf(a){if(a===void 0)return;const n=/^(\d{4})-(\d{2})(?:-(\d{2}))?$/u.exec(a.trim());if(n)return Date.UTC(Number(n[1]),Number(n[2])-1,Number(n[3]??"1"))/864e5}const R=a=>Array.isArray(a)&&a.every(n=>typeof n=="object"&&n!==null&&!Array.isArray(n));function Y(a,n){const s=a[0]??{},d=n in s?n:Object.keys(s).find(b=>b.toLowerCase()===n.toLowerCase());return d===void 0?void 0:a.map(b=>b[d])}export function readAddress(a,n){for(const s of F(a)){const d=G(a,s,n);if(d!==void 0)return d}}function G(a,n,s){const d=a.indexOf("#");if(d<0||n===a)return s(n);const b=n.indexOf("#"),O=b<0?n:n.slice(0,b),_=a.slice(d+1);if(n===`${O}#${_}`)return s(n);const C=s(n),h=/^('?)(.+)\1!\$?([A-Z]{1,3})\$?(\d+)$/u.exec(_);if(h)return typeof C=="object"&&C!==null?C[`${h[3]??""}${h[4]??""}`]:void 0;if(/\.(?:ya?ml|json)$/iu.test(O)){let x=C;for(const g of _.split(".")){if(typeof x!="object"||x===null)return;x=x[g]}return x}const t=/^(.+?)\[([^\]]+)\]$/u.exec(_)??/^([^.![]+)\.([^!]+)$/u.exec(_),A=/\.csv$/iu.test(O)?t?.[2]??_.replace(/^\[|\]$/gu,""):t?.[2]??"";return R(C)?Y(C,A):void 0}function W(a){return Array.isArray(a)&&a.length===1?a[0]:a}export function blockOf(a,n){const s=a.fields,d=(e,r)=>{const i=n.words?.(e);return i!==void 0?i:typeof r=="string"?r:void 0},b=(e,r)=>{if(n.data===void 0){n.problem(`${e} cannot be read here.`,r);return}const i=n.data,u=readAddress(e,i);if(u===void 0){n.problem(`${e} is not there: name a table (#orders), a column (#orders[total]), a defined name (#conversion), a cell (#Summary!B4) or a data file's key.`,r);return}const o=n.shown,f=o===void 0?void 0:readAddress(e,o);return{value:u,shown:f}},O=(e,r,i,u)=>{if(e===void 0)return;let o=e,f=u;const c=!M(e);if(M(e)){const p=b(e,r);if(p===void 0)return;if(o=W(p.value),f=W(p.shown),Array.isArray(o)){n.problem(`${e} holds ${String(o.length)} values: name one (a defined name, a cell, or a table of one row).`,r);return}}let m;if(typeof o=="string"&&/^-?\d+(?:\.\d+)?$/u.test(o.trim())&&(m=o.trim(),o=Number(m)),typeof o=="number")return i!==void 0?{text:B(o,i),number:o}:typeof f=="string"||typeof f=="number"?{text:String(f),number:o}:c&&m!==void 0?{text:m,number:o}:{text:E(o),number:o,auto:!0};if(typeof o=="string"){const p=numberIn(o),l=typeof f=="string"?f:o;return p===void 0?{text:l,words:!0}:{text:l,number:p,words:!0}}n.problem(`${JSON.stringify(o)} is not a figure.`,r)},_=(e,r)=>{if(Array.isArray(e))return e.filter(f=>typeof f=="number");if(!M(e))return;const i=b(e,r);if(i===void 0)return;const o=(Array.isArray(i.value)?i.value:[i.value]).map(f=>typeof f=="number"?f:typeof f=="string"?numberIn(f):void 0);if(o.some(f=>f===void 0)){n.problem(`${e} holds values that are not numbers.`,r);return}return o},C=(e,r)=>{if(e===void 0)return;let i=e;if(M(e)&&(i=W(b(e,r)?.value)),typeof i!="string")return;const u=P(i);if(u===void 0||u==="accent1"){n.problem(`${i} is not a tone (good, warning, bad, info, neutral).`,r);return}return u},h=e=>typeof e=="string"?e:void 0,t=(e,r)=>r===void 0?{}:{[e]:r},A=(e,r,i)=>{const u=h(e.format),o=O(e.value,[...r,"value"],u,i?.value),f=d([...r,"label"],e.label);if(o===void 0)return;if(f===void 0){n.problem("a stat has a label: in the script, or here.",r);return}const c=O(e.delta,[...r,"delta"],void 0,i?.delta),m=O(e.target,[...r,"target"],u,i?.target),p=O(e.min,[...r,"min"],u,i?.min),l=O(e.max,[...r,"max"],u,i?.max);p===void 0!=(l===void 0)&&n.problem("a stat's scale has both ends, min and max, for its bar.",[...r,p===void 0?"min":"max"]);const w=e.good==="down"?"down":"up",j=deltaWay(c),k=C(e.status,[...r,"status"])??(j==="flat"?void 0:j===w?"good":"bad");return{kind:"stat",value:o,label:f,good:w,...t("delta",c),...t("status",k),...t("target",m),...p!==void 0&&l!==void 0?{min:p,max:l}:{},...t("note",d([...r,"note"],e.note)),...t("trend",_(e.trend,[...r,"trend"])),...t("icon",h(e.icon)),...t("alt",d([...r,"alt"],e.alt))}},x=(e,r)=>{const i=d([...r,"name"],e.name);if(i===void 0){n.problem("a person has a name.",r);return}const u=h(e.photo);return{kind:"person",name:i,...t("role",d([...r,"role"],e.role)),...t("photo",u===void 0?void 0:n.picture?.(u)??u),...t("note",d([...r,"note"],e.note)),...t("alt",d([...r,"alt"],e.alt))}},g=e=>{const r=s.items;if(Array.isArray(r))return{list:r,shown:[]};const i=h(s.data);if(i===void 0)return{list:[],shown:[]};const u=b(i,["data"]);if(u===void 0)return{list:[],shown:[]};if(!R(u.value)||u.value.length===0)return n.problem(`${i} holds no rows.`,["data"]),{list:[],shown:[]};const o=u.value,f=R(u.shown)?u.shown:[],c=s.columns??{},m=Object.keys(o[0]??{}),p=Object.values(c).filter(k=>!m.some($=>$.toLowerCase()===k.toLowerCase()));p.length>0&&n.problem(`${i} has no column ${p.join(", ")} (it has ${m.join(", ")}).`,["data"]);const l=k=>{const $={},z=new Set;for(const[S,I]of Object.entries(c)){const N=Object.keys(k).find(T=>T.toLowerCase()===I.toLowerCase());N!==void 0&&($[S]=k[N],z.add(N))}for(const[S,I]of Object.entries(k))!z.has(S)&&!(S in $)&&($[S]=I);return $},w=[],j=[];return o.forEach((k,$)=>{const z=l(k),S=Z(e,z),I=S.problems.filter(L=>!L.message.startsWith("there is no"));for(const L of I)n.problem(`${i} row ${String($+1)}: ${L.message}`,["data"]);if(S.fields===void 0)return;const N=S.fields;for(const L of["value","delta","target"])typeof z[L]=="number"&&(N[L]=z[L]);w.push(N);const T=f[$];j.push(T===void 0?void 0:l(T))}),{list:w,shown:j}},y=()=>t("alt",d(["alt"],s.alt)),v={words:d,items:g,problem:(e,r)=>{n.problem(e,r)},alt:y};switch(a.kind){case"sankey":return K(s,v);case"gantt":return J(s,v);case"stat":return A(s,[]);case"stats":{const{list:e,shown:r}=g("stat"),i=e.flatMap((o,f)=>{const c=A(o,["items",f],r[f]);return c===void 0?[]:[c]}),u=s.columns;return{kind:"stats",items:i,...typeof u=="number"&&u>=1?{columns:Math.round(u)}:{},...y()}}case"person":return x(s,[]);case"people":{const{list:e}=g("person");return{kind:"people",items:e.flatMap((i,u)=>{const o=x(i,["items",u]);return o===void 0?[]:[o]}),...y()}}case"tag":{const e=d(["text"],s.text);if(e===void 0){n.problem("a tag has its words.",[]);return}return{kind:"tag",text:e,...t("status",s.status),...t("color",h(s.color)),...y()}}case"card":{const e=s.tag,r=e===void 0?void 0:d(["tag","text"],e.text),i=e===void 0||r===void 0?void 0:{kind:"tag",text:r,...t("status",e.status),...t("color",h(e.color))},u=Array.isArray(s.lines)?s.lines:[],o=[];for(let f=0;f<Math.max(u.length,64);f++){const c=u[f],m=n.words?.(["lines",f,"text"])??n.words?.(["lines",f])??c?.text;if(m===void 0){if(f>=u.length)break;continue}const p=n.words?.(["lines",f,"label"])??c?.label;o.push({text:m,...t("label",p)})}return{kind:"card",featured:s.featured===!0,...t("eyebrow",d(["eyebrow"],s.eyebrow)),...t("value",O(s.value,["value"])),...t("caption",d(["caption"],s.caption)),...t("title",d(["title"],s.title)),...t("subtitle",d(["subtitle"],s.subtitle)),...t("body",d(["body"],s.body)),...o.length>0?{lines:o}:{},...t("icon",h(s.icon)),...t("tag",i),...y()}}case"callout":return{kind:"callout",tone:s.tone??"neutral",...t("title",d(["title"],s.title)),...t("text",d(["text"],s.text)),...t("icon",h(s.icon)),...y()};case"icon":return{kind:"icon",name:h(s.name)??"circle",...t("size",s.size),...t("color",h(s.color)),...t("stroke",s.stroke),...y()};case"progress":{const e=h(s.format),r=O(s.value,["value"]);if(r===void 0)return;const i=O(s.of,["of"]),u=O(s.target,["target"]),o=p=>{const l=p.number??0;if(i?.number!==void 0&&i.number!==0)return l/i.number;if(p.text.includes("%")){const w=numberIn(p.text);return w!==void 0&&Math.abs(w-l)<1e-9?l/100:l}return l/100},f=o(r),c=e!==void 0&&r.number!==void 0?B(r.number,e):r.text.includes("%")||i!==void 0?r.text:`${String(Math.round(f*100))}%`,m=e===void 0&&i!==void 0&&r.auto===!0?r:void 0;return{kind:"progress",share:f,shown:c,shape:s.shape==="ring"?"ring":"bar",...t("of",i),...t("figure",m),...t("target",u===void 0?void 0:o(u)),...t("label",d(["label"],s.label)),...t("note",d(["note"],s.note)),...t("status",C(s.status,["status"])),...y()}}case"risk_matrix":{const e=c=>(Array.isArray(s[c])?s[c]:[]).map((m,p)=>d([c,p],m)??m),r=e("rows"),i=e("columns"),{list:u}=g("entry"),o=(c,m,p,l)=>{const w=String(c).trim().toLowerCase(),j=m.findIndex($=>$.trim().toLowerCase()===w);if(j>=0)return j;const k=Number(w);if(Number.isInteger(k)&&k>=1&&k<=m.length)return k-1;n.problem(`${String(c)} is not one of the matrix's ${p} (${m.join(", ")}).`,l)},f=u.flatMap((c,m)=>{const p=d(["items",m,"label"],c.label),l=o(c.row,r,"rows",["items",m,"row"]),w=o(c.column,i,"columns",["items",m,"column"]);return p===void 0||l===void 0||w===void 0?[]:[{label:p,row:l,column:w}]});return{kind:"risk_matrix",rows:r,columns:i,tones:s.tones==="none"?"none":"risk",items:f,...t("y",d(["y"],s.y)),...t("x",d(["x"],s.x)),...y()}}case"timeline":{const{list:e}=g("milestone"),r=dayOf(h(s.today)),i=e.flatMap((u,o)=>{const f=d(["items",o,"title"],u.title);if(f===void 0)return n.problem("a milestone has a title.",["items",o]),[];const c=u.status;return[{title:f,state:c??"none",...t("date",h(u.date)),...t("text",d(["items",o,"text"],u.text)),...t("lane",d(["items",o,"lane"],u.lane))}]});if(r!==void 0){let u=!1;for(const o of i){if(o.state!=="none")continue;const f=dayOf(o.date);f!==void 0&&(f<r?o.state="done":u?o.state="planned":(o.state="current",u=!0))}}return{kind:"timeline",items:i,...t("today",h(s.today)),...s.bands==="months"||s.bands==="quarters"?{bands:s.bands}:{},...t("orientation",s.orientation),...y()}}case"steps":{const{list:e}=g("step"),r=e.flatMap((o,f)=>{const c=d(["items",f,"title"],o.title);return c===void 0?(n.problem("a step has a title.",["items",f]),[]):[{title:c,...t("text",d(["items",f,"text"],o.text)),...t("icon",h(o.icon))}]}),i=h(s.current);let u;if(i!==void 0){const o=Number(i);u=Number.isInteger(o)&&o>=1?o:r.findIndex(f=>f.title.toLowerCase()===i.toLowerCase())+1,(u<1||u>r.length)&&(n.problem(`current is a step's number, 1 to ${String(r.length)}, or its title; not ${i}.`,["current"]),u=void 0)}return{kind:"steps",items:r,numbered:s.numbered!==!1,...t("current",u),...t("orientation",s.orientation),...y()}}case"table":return ee(s,n,b);case"org_chart":case"issue_tree":case"decision_tree":case"fishbone":return X(a,n);case"matrix":case"marimekko":case"heatmap":case"small_multiples":return Q(a,n);case"chart":{const e=s,{legend:r,points:i,...u}=e,o=["category_axis","value_axis","secondary_axis"],f={},c={...u};for(const l of o){const w=e[l];if(w===void 0)continue;const{title:j,...k}=w,$=d([l,"title"],j);$!==void 0&&(f[l]=$),c[l]=k}const m=D(r===void 0||r==="none"?c:{...c,legend:r},{title:d(["title"],e.title),axisTitles:f,pointText:(l,w,j)=>{const k=i?.[w];if(typeof k=="object")return d(["points",w,l],k[l]);const $=i?.[l];return j&&typeof $=="string"?d(["points",l],$):void 0},base:n.base??"",rows:l=>n.data===void 0?void 0:readAddress(l,n.data),problem:l=>{n.problem(l,[])}});if(m===void 0)return;const p=e.data===void 0?m:{...m,series:m.series.map((l,w)=>typeof e.series[w]=="string"?{...l,name:columnLabel(l.name)}:l)};return{kind:"chart",chart:chartLook(p,r),...y()}}}}const V={id:"ID",url:"URL",kpi:"KPI",roi:"ROI",arr:"ARR",mrr:"MRR",yoy:"YoY",qoq:"QoQ"};export function columnLabel(a){if(!/^[a-z][a-z0-9]*(?:[_-][a-z0-9]+)*$/u.test(a)&&!/^[a-z][a-z0-9]*(?:[A-Z][a-z0-9]*)+$/u.test(a))return a;const n=a.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").split(/[\s_-]+/u).map(b=>V[b.toLowerCase()]??b.toLowerCase()),[s="",...d]=n;return[s.charAt(0).toUpperCase()+s.slice(1),...d].join(" ")}export const CHART_BARS={gap:80,overlap:-8},CHART_TEXT={size:10,title:13};export function chartLook(a,n){const s=H(a.type),d=n==="none"?void 0:n??(s?"right":a.series.length>1?"top":void 0),b={...a,...q(a.type)&&a.gap_width===void 0?{gap_width:CHART_BARS.gap}:{},...q(a.type)&&a.type.endsWith("-clustered")&&a.series.length>1&&a.overlap===void 0?{overlap:CHART_BARS.overlap}:{},font_size:a.font_size??CHART_TEXT.size,title_size:a.title_size??CHART_TEXT.title};return d===void 0?delete b.legend:b.legend=d,b}function ee(a,n,s){let d=a.columns??[],b=Array.isArray(a.rows)?a.rows:[],O=[];const _=typeof a.data=="string"?a.data:void 0;if(_!==void 0){const t=s(_,["data"]);if(t===void 0||!R(t.value)){t!==void 0&&n.problem(`${_} holds no rows.`,["data"]);return}b=t.value,O=R(t.shown)?t.shown:[],d.length===0&&(d=Object.keys(t.value[0]??{}).map(A=>({name:A})))}if(d.length===0){const t=b[0];d=Array.isArray(t)?t.map(A=>({name:String(A)})):Object.keys(t??{}).map(A=>({name:A})),Array.isArray(t)&&(b=b.slice(1))}const C=(t,A,x)=>{const g=typeof t=="object"&&t!==null&&!Array.isArray(t)?t:{value:t},y=g.value,v=typeof y=="number"?y:void 0,e=v!==void 0&&x.format===void 0&&!(typeof A=="string"||typeof A=="number"),r=v!==void 0&&x.format!==void 0?B(v,x.format):typeof A=="string"||typeof A=="number"?String(A):v!==void 0?E(v):y==null?"":typeof y=="string"||typeof y=="number"||typeof y=="boolean"?String(y):JSON.stringify(y),i=g.tag===!0||x.tag===!0?r:typeof g.tag=="string"?g.tag:void 0,u=i===void 0?void 0:P(i),o=g.align;return{text:r,...v===void 0?{}:{number:v},...e?{auto:!0}:{},...o==="left"||o==="center"||o==="right"?{align:o}:{},...typeof g.fill=="string"?{fill:g.fill}:{},...g.bold===!0?{bold:!0}:{},...typeof g.color=="string"?{color:g.color}:{},...i===void 0?{}:{tag:u===void 0||u==="accent1"?"neutral":u}}},h=b.map((t,A)=>{const x=O[A];return d.map((g,y)=>{const v=Array.isArray(t)?t[y]:t[g.name],e=Array.isArray(x)?x[y]:typeof x=="object"&&x!==null?x[g.name]:void 0;return C(v,e,g)})});return{kind:"table",columns:d.map(t=>t.title===void 0&&columnLabel(t.name)!==t.name?{...t,title:columnLabel(t.name)}:t),rows:h,head:a.head!==!1,total:a.total===!0,...typeof a.alt=="string"?{alt:a.alt}:{}}}export{U as blockItemKind};
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const BLOCK_SAMPLES={chart:{type:"column-clustered",title:"Revenue grew every quarter",categories:["Q1","Q2","Q3","Q4"],series:[{name:"Revenue",values:[120,135,150,172]},{name:"Cost",values:[90,95,101,110]}],legend:"bottom"},table:{columns:["Plan",{name:"Price",format:"$#,##0"},"Seats",{name:"Status",tag:!0}],rows:[["Starter",9,1240,"On track"],["Team",29,380,"At risk"],["Enterprise",99,42,"Off track"]]},stats:[{value:"68.4%",label:"Checkout conversion",delta:"+2.1 pt",trend:[61.2,63,66.1,68.4],target:70},{value:"$1.28M",label:"Monthly revenue",delta:"+8%",note:"vs October"},{value:"3.1%",label:"Churn",delta:"+0.4 pt",good:"down"}],stat:{value:"29.8k",label:"Median views",delta:"+12%",note:"of target",icon:"eye",trend:[18,21,25,24,29.8]},card:{icon:"rocket",title:"Team",subtitle:"$29 a seat",body:"Shared projects, **review** before publish, and a seat for each person.",tag:{text:"Popular",status:"info"}},tag:{text:"On track",status:"good"},callout:{tone:"warning",title:"Provisional",text:"W48's numbers close on Friday; these are Wednesday's."},icon:{name:"users",color:"accent1"},progress:{value:1400,of:2e3,label:"Seats sold",note:"of 2,000",target:1600},timeline:{today:"2026-11-23",items:[{date:"2026-09-01",title:"Beta",text:"200 teams"},{date:"2026-12-01",title:"Launch",text:"Public"},{date:"2027-03-01",title:"EU region"},{date:"2027-06-01",title:"APAC",status:"at risk"}]},steps:{current:2,items:[{title:"Sign up",text:"Two minutes"},{title:"Connect",text:"Your sheet"},{title:"Share",text:"One link"}]},person:{name:"Ada Lovelace",role:"Head of Analytics",note:"London"},people:[{name:"Ada Lovelace",role:"Analytics"},{name:"Grace Hopper",role:"Engineering"},{name:"Alan Turing",role:"Research"}],risk_matrix:{rows:["High","Med","Low"],columns:["Low","Med","High"],y:"Impact",x:"Likelihood",items:[{label:"1",row:"High",column:"High"},{label:"2",row:"High",column:"Med"},{label:"3",row:"Med",column:"Med"},{label:"4",row:"High",column:"Low"}]},sankey:{links:[{source:"Search",target:"Visits",value:5200},{source:"Social",target:"Visits",value:3100},{source:"Referral",target:"Visits",value:1700},{source:"Visits",target:"Sign-ups",value:2400},{source:"Visits",target:"Bounced",value:7600},{source:"Sign-ups",target:"Paid",value:860},{source:"Sign-ups",target:"Trial ended",value:1540}]},gantt:{today:"2026-11-24",tasks:[{name:"Research",group:"Design",start:"2026-10-05",end:"2026-10-30",progress:1},{name:"Prototype",group:"Design",start:"2026-11-02",end:"2026-11-27",progress:.7,depends:"Research"},{name:"API",group:"Build",start:"2026-11-16",end:"2026-12-18",progress:.3},{name:"Editor",group:"Build",depends:"Prototype",duration:"4w"},{name:"Beta",group:"Launch",start:"2027-01-04",end:"2027-01-22",depends:["API","Editor"]},{name:"Launch",group:"Launch",start:"2027-01-28",milestone:!0}]},org_chart:{name:"Maya Chen",role:"Chief Executive",children:[{name:"Omar Haddad",role:"Product",children:[{name:"Lena Novak",role:"Design"},{name:"Sam Ortiz",role:"Research"}]},{name:"Priya Nair",role:"Engineering",children:[{name:"Jon Berg",role:"Platform"},{name:"Ana Silva",role:"Apps"},{name:"Kofi Mensah",role:"Data"}]},{name:"Elif Kaya",role:"Sales"}]},issue_tree:{text:"Why did margin fall 3 pt?",children:[{text:"Revenue per order fell",children:[{text:"Mix shifted to Starter"},{text:"More discounts"}]},{text:"Cost per order rose",children:[{text:"Freight up 12%"},{text:"Returns up"}]}]},decision_tree:{format:'$#,##0.0,,"M"',text:"Launch?",children:[{label:"Launch now",text:"Demand",children:[{label:"High",probability:.6,value:42e5},{label:"Low",probability:.4,value:-8e5}]},{label:"Wait a year",value:15e5}]},fishbone:{effect:"Late deliveries",categories:{People:["Short-staffed weekends","New drivers"],Process:["Manual routing","Late picking"],Equipment:["Old scanners"],Suppliers:["Carrier delays","Missing stock"]}},matrix:{x_axis:{title:"Effort",low:"Low",high:"High"},y_axis:{title:"Impact",low:"Low",high:"High"},quadrants:["Quick wins","Big bets","Fill-ins","Money pits"],items:[{name:"Self-serve trial",x:2,y:8},{name:"SSO",x:7,y:9},{name:"Dark mode",x:3,y:3},{name:"Rewrite billing",x:9,y:4}]},marimekko:{categories:["North","South","West"],series:[{name:"Us",values:[42,18,25]},{name:"Rival A",values:[30,40,20]},{name:"Others",values:[28,22,15]}]},heatmap:{rows:["Mon","Tue","Wed"],columns:["9h","12h","15h","18h"],values:[[12,40,35,18],[15,44,38,22],[9,30,52,27]]},small_multiples:{type:"line",categories:["Q1","Q2","Q3","Q4"],panels:[{title:"North",values:[12,15,14,19]},{title:"South",values:[8,9,12,13]},{title:"West",values:[10,11,9,8]},{title:"East",values:[5,7,10,14]}]}};
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{TYPE_STEPS as F}from"@allyhub/formats";import{formatValue as Z}from"@allyhub/chart";import{formatNumber as q}from"./format.js";import{add as W,LINE as D,plotHeight as G,textMark as K}from"./layout.js";const j=i=>i.reduce((c,u)=>c+u,0);export function sankeyPlace(i,c,u){const{x0:v,y0:f,x1:p,y1:h}=c,O=u.nodeWidth,P=u.iterations??6,m=i.nodes.map((t,e)=>({index:e,sourceLinks:[],targetLinks:[],value:0,depth:0,height:0,layer:0,x0:0,x1:0,y0:0,y1:0})),Y=i.links.flatMap((t,e)=>{const s=m[t.source],o=m[t.target];if(!s||!o)return[];const n={index:e,source:s,target:o,value:t.value,width:0,y0:0,y1:0};return s.sourceLinks.push(n),o.targetLinks.push(n),[n]});for(const t of m)t.value=Math.max(j(t.sourceLinks.map(e=>e.value)),j(t.targetLinks.map(e=>e.value)));const z=(t,e)=>{let s=new Set(m),o=0;for(;s.size>0&&o<=m.length;){const n=new Set;for(const a of s){t(a,o);for(const L of e(a))n.add(L)}o+=1,s=n}};z((t,e)=>{t.depth=e},t=>t.sourceLinks.map(e=>e.target)),z((t,e)=>{t.height=e},t=>t.targetLinks.map(e=>e.source));const M=Math.max(0,...m.map(t=>t.depth))+1,V=M>1?(p-v-O)/(M-1):0,B=t=>{switch(i.align){case"left":return t.depth;case"right":return M-1-t.height;case"center":return t.targetLinks.length>0?t.depth:t.sourceLinks.length>0?Math.min(...t.sourceLinks.map(e=>e.target.depth))-1:0;default:return t.sourceLinks.length>0?t.depth:M-1}},_=Array.from({length:M},()=>[]);for(const t of m){const e=Math.max(0,Math.min(M-1,Math.floor(B(t))));t.layer=e,t.x0=v+e*V,t.x1=t.x0+O,_[e]?.push(t)}const k=_.filter(t=>t.length>0),w=Math.max(1,...k.map(t=>t.length)),g=w>1?Math.min(u.nodePadding,(h-f)/(w-1)):u.nodePadding,A=(t,e)=>t.y0-e.y0,r=(t,e)=>t.source.y0-e.source.y0||t.index-e.index,d=(t,e)=>t.target.y0-e.target.y0||t.index-e.index,x=t=>{for(const e of t)e.sourceLinks.sort(d),e.targetLinks.sort(r)},S=t=>{for(const e of t.targetLinks)e.source.sourceLinks.sort(d);for(const e of t.sourceLinks)e.target.targetLinks.sort(r)},b=Math.min(...k.map(t=>(h-f-(t.length-1)*g)/Math.max(1e-9,j(t.map(e=>e.value)))));for(const t of k){let e=f;for(const o of t){o.y0=e,o.y1=e+o.value*b,e=o.y1+g;for(const n of o.sourceLinks)n.width=n.value*b}const s=(h-e+g)/(t.length+1);t.forEach((o,n)=>{o.y0+=s*(n+1),o.y1+=s*(n+1)}),x(t)}const T=(t,e,s,o)=>{for(;s<t.length;++s){const n=t[s];if(!n)continue;const a=(e-n.y0)*o;a>1e-6&&(n.y0+=a,n.y1+=a),e=n.y1+g}},C=(t,e,s,o)=>{for(;s>=0;--s){const n=t[s];if(!n)continue;const a=(n.y1-e)*o;a>1e-6&&(n.y0-=a,n.y1-=a),e=n.y0-g}},E=(t,e)=>{const s=t.length>>1,o=t[s];o&&(C(t,o.y0-g,s-1,e),T(t,o.y1+g,s+1,e),C(t,h,t.length-1,e),T(t,f,0,e))},y=(t,e)=>{let s=t.y0-(t.sourceLinks.length-1)*g/2;for(const o of t.sourceLinks){if(o.target===e)break;s+=o.width+g}for(const o of e.targetLinks){if(o.source===t)break;s-=o.width}return s},l=(t,e)=>{let s=e.y0-(e.targetLinks.length-1)*g/2;for(const o of e.targetLinks){if(o.source===t)break;s+=o.width+g}for(const o of t.sourceLinks){if(o.target===e)break;s-=o.width}return s};for(let t=0;t<P;++t){const e=.99**t,s=Math.max(1-e,(t+1)/P);for(let o=k.length-2;o>=0;--o){const n=k[o]??[];for(const a of n){let L=0,N=0;for(const $ of a.sourceLinks){const I=$.value*($.target.layer-a.layer);L+=l(a,$.target)*I,N+=I}if(!(N>0))continue;const H=(L/N-a.y0)*e;a.y0+=H,a.y1+=H,S(a)}n.sort(A),E(n,s)}for(let o=1;o<k.length;++o){const n=k[o]??[];for(const a of n){let L=0,N=0;for(const $ of a.targetLinks){const I=$.value*(a.layer-$.source.layer);L+=y($.source,a)*I,N+=I}if(!(N>0))continue;const H=(L/N-a.y0)*e;a.y0+=H,a.y1+=H,S(a)}n.sort(A),E(n,s)}}for(const t of m){let e=t.y0,s=t.y0;for(const o of t.sourceLinks)o.y0=e+o.width/2,e+=o.width;for(const o of t.targetLinks)o.y1=s+o.width/2,s+=o.width}return{nodes:m.map(t=>({index:t.index,layer:t.layer,x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1,value:t.value})),links:Y.map(t=>({index:t.index,source:t.source.index,target:t.target.index,width:t.width,y0:t.y0,y1:t.y1})),columns:M}}export function bandSegs(i,c,u,v,f){const p=(i+u)/2,h=f/2;return[["M",i,c-h],["C",p,c-h,p,v-h,u,v-h],["L",u,v+h],["C",p,v+h,p,c+h,i,c+h],["Z"]]}const J=6;export const sankeyNodeColor=(i,c)=>i.nodes[c]?.color??`accent${String(c%J+1)}`,SANKEY_FLOW_OPACITY=.42;export function sankeyLayout(i,c,u,v){const f=i.s,p=v??Math.round(G(u)),h=F.label*f,O=F.caption*f,P=6*f,m=r=>c.format===void 0?q(Math.round(r*1e3)/1e3,i.lang):Z(r,c.format),Y=sankeyPlace(c,{x0:0,y0:0,x1:u,y1:p},{nodeWidth:10*f,nodePadding:12*f}),z=Y.columns-1,M=r=>{const d=c.nodes[r];if(!d)return 0;const x=i.measure(d.label,h,500),S=c.values?i.measure(m(Y.nodes[r]?.value??0),O,400):0;return Math.max(x,S)*1.08},V=r=>Math.min(u*.26,Math.max(0,...Y.nodes.filter(d=>d.layer===r).map(d=>M(d.index)))+P),B=V(0),_=z>0?V(z):0,k=h*D/2,w=sankeyPlace(c,{x0:B,y0:k,x1:u-_,y1:p-k},{nodeWidth:10*f,nodePadding:12*f}),g=w.columns>1?(u-_-B-10*f)/(w.columns-1):u;for(const r of w.links){const d=w.nodes[r.source],x=w.nodes[r.target];if(!d||!x)continue;const S=bandSegs(d.x1,r.y0,x.x0,r.y1,Math.max(.5,r.width)),b=[r.y0,r.y1].flatMap(T=>[T-r.width/2,T+r.width/2]);W(i,{type:"path",part:`links/${String(r.index)}`,x:d.x1,y:Math.min(...b),w:x.x0-d.x1,h:Math.max(...b)-Math.min(...b),segs:S,fill:c.links[r.index]?.color??sankeyNodeColor(c,r.source),line:"none",lineWidth:0,opacity:SANKEY_FLOW_OPACITY})}for(const r of w.nodes)W(i,{type:"rect",part:`nodes/${String(r.index)}`,x:r.x0,y:r.y0,w:r.x1-r.x0,h:Math.max(.5,r.y1-r.y0),r:0,fill:sankeyNodeColor(c,r.index),line:"none",lineWidth:0});const A=new Map;for(const r of w.nodes)A.set(r.layer,[...A.get(r.layer)??[],r]);for(const[r,d]of A){const x=r===0?"left":r===z?"right":"inner",S=y=>d.flatMap(l=>{const t=c.nodes[l.index];if(!t)return[];const e=x==="left"?B-P:x==="right"?_-P:Math.max(24*f,g-(l.x1-l.x0)-2*P),s=x==="left"?0:l.x1+P,o=x==="left"?"right":"left",n=K(i,`nodes/${String(l.index)}/label`,t.label,{x:s,y:0,w:e,size:h,weight:500,color:"text",align:o,max:2}),a=y?K(i,`nodes/${String(l.index)}/value`,m(l.value),{x:s,y:0,w:e,size:O,color:"muted",align:o,max:1,tabular:!0}):void 0,L=n.height+(a?.height??0);return[{name:n,value:a,height:L,want:(l.y0+l.y1)/2-L/2}]}).sort((l,t)=>l.want-t.want),b=y=>{let l=0;const t=y.map(o=>{const n=Math.max(l,o.want);return l=n+o.height,n});let e=p;for(let o=y.length-1;o>=0;o--){const n=y[o];n&&(t[o]=Math.max(0,Math.min(t[o]??0,e-n.height)),e=t[o]??0)}const s=y.every((o,n)=>n===0||(t[n]??0)>=(t[n-1]??0)+(y[n-1]?.height??0)-.5);return{tops:t,fits:s}},T=i.overflow.length;let C=S(c.values),E=b(C);!E.fits&&c.values&&(i.overflow.length=T,C=S(!1),E=b(C)),E.fits||i.overflow.push(`nodes/layer/${String(r)}`),C.forEach((y,l)=>{const t=E.tops[l]??0;y.name.mark.y=t,W(i,y.name.mark),y.value&&(y.value.mark.y=t+y.name.height,W(i,y.value.mark))})}return p}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{chartSvg as M}from"@allyhub/chart";import{blockAlt as b}from"./alt.js";import{blockLayout as v}from"./layout.js";import{colorNow as g,paintColor as S}from"./palette.js";const P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},h=t=>t.replace(/[&<>"]/gu,e=>P[e]??e),n=t=>String(Math.round(t*100)/100);function a(t,e){const i=[],o=[];for(const[c,r]of Object.entries(e)){const s=r==="none"?"none":S(r,t);s.startsWith("var(")?o.push(`${c}:${s}`):i.push(`${c}="${h(s)}"`)}return i.join(" ")+(o.length>0?` style="${h(o.join(";"))}"`:"")}function j(t,e,i,o){const c=e.align==="center"?e.x+e.w/2:e.align==="right"?e.x+e.w:e.x,r=e.y+i*e.lineHeight+(e.lineHeight-e.size)/2+e.size*.8,s=t.runs.map($=>{const l=[$.weight!==void 0?` font-weight="${String($.weight)}"`:$.bold?' font-weight="700"':"",$.italic?' font-style="italic"':"",$.color!==void 0?` ${a(o,{fill:$.color})}`:""].join("");return l===""?h($.text):`<tspan${l}>${h($.text)}</tspan>`}).join("");return`<tspan x="${n(c)}" y="${n(r)}">${s}</tspan>`}function H(t,e,i,o,c){switch(t.type){case"rect":{const r=t.line==="none"?0:t.lineWidth/2,s=Math.max(0,t.w-2*r),$=Math.max(0,t.h-2*r);return`<rect x="${n(t.x+r)}" y="${n(t.y+r)}" width="${n(s)}" height="${n($)}"${t.r>0?` rx="${n(Math.min(t.r,$/2,s/2))}"`:""} ${a(e,{fill:t.fill,stroke:t.line})}${t.line==="none"?"":` stroke-width="${n(t.lineWidth)}"`}/>`}case"ellipse":return`<ellipse cx="${n(t.x+t.w/2)}" cy="${n(t.y+t.h/2)}" rx="${n(t.w/2)}" ry="${n(t.h/2)}" ${a(e,{fill:t.fill,stroke:t.line})}${t.line==="none"?"":` stroke-width="${n(t.lineWidth)}"`}/>`;case"line":return`<line x1="${n(t.x1)}" y1="${n(t.y1)}" x2="${n(t.x2)}" y2="${n(t.y2)}" ${a(e,{stroke:t.color})} stroke-width="${n(t.width)}" stroke-linecap="round"${t.dash?` stroke-dasharray="${n(t.width*2)} ${n(t.width*2)}"`:""}/>`;case"text":{const r=t.align==="center"?"middle":t.align==="right"?"end":"start",s=t.tabular?' font-variant-numeric="tabular-nums"':"";return`<text font-size="${n(t.size)}" font-weight="${String(t.weight)}" text-anchor="${r}"${s} ${a(e,{fill:t.color})}>${t.lines.map(($,l)=>j($,t,l,e)).join("")}</text>`}case"icon":{const r=t.size/24;return`<g transform="translate(${n(t.x)} ${n(t.y)}) scale(${n(r)})" fill="none" ${a(e,{stroke:t.color})} stroke-width="${n(t.stroke/r)}" stroke-linecap="round" stroke-linejoin="round">${t.paths.map(s=>`<path d="${h(s)}"/>`).join("")}</g>`}case"arc":{const r=`fill="none" ${a(e,{stroke:t.color})} stroke-width="${n(t.width)}"`;if(t.share>=.9999)return`<circle cx="${n(t.cx)}" cy="${n(t.cy)}" r="${n(t.r)}" ${r}/>`;const s=2*Math.PI*t.share-Math.PI/2,$=t.cx+t.r*Math.cos(s),l=t.cy+t.r*Math.sin(s);return`<path d="M${n(t.cx)} ${n(t.cy-t.r)}A${n(t.r)} ${n(t.r)} 0 ${t.share>.5?"1":"0"} 1 ${n($)} ${n(l)}" ${r} stroke-linecap="round"/>`}case"picture":{const r=`${i}-c${String(o)}`;return`${t.round?`<clipPath id="${r}"><ellipse cx="${n(t.x+t.w/2)}" cy="${n(t.y+t.h/2)}" rx="${n(t.w/2)}" ry="${n(t.h/2)}"/></clipPath>`:""}<image href="${h(t.src)}" x="${n(t.x)}" y="${n(t.y)}" width="${n(t.w)}" height="${n(t.h)}" preserveAspectRatio="xMidYMid slice"${t.round?` clip-path="url(#${r})"`:""}/>`}case"trend":{const r=t.values,s=t.target===void 0?r:[...r,t.target],$=Math.min(...s),u=Math.max(...s)-$||1,d=x=>t.y+t.h-(x-$)/u*t.h,f=x=>t.x+x/Math.max(1,r.length-1)*t.w,k=r.map((x,p)=>`${p===0?"M":"L"}${n(f(p))} ${n(d(x))}`).join(""),y=r.length-1;return`${t.target===void 0?"":`<line x1="${n(t.x)}" y1="${n(d(t.target))}" x2="${n(t.x+t.w)}" y2="${n(d(t.target))}" ${a(e,{stroke:"rule-strong"})} stroke-width="${n(t.width/2)}" stroke-dasharray="${n(t.width*1.5)} ${n(t.width*1.5)}"/>`}<path d="${k}" fill="none" ${a(e,{stroke:t.color})} stroke-width="${n(t.width)}" stroke-linejoin="round" stroke-linecap="round"/><circle cx="${n(f(y))}" cy="${n(d(r[y]??0))}" r="${n(t.width*1.4)}" ${a(e,{fill:t.color})}/>`}case"path":return W(t,e);case"connector":return`<path d="${connectorPath(t)}" fill="none" ${a(e,{stroke:t.color})} stroke-width="${n(t.width)}" stroke-linejoin="round"/>`;case"poly":return`<path d="${`${t.points.map(([s,$],l)=>`${l===0?"M":"L"}${n(t.x+s)} ${n(t.y+$)}`).join("")}Z`}" ${a(e,{fill:t.fill,stroke:t.line})}${t.line==="none"?"":` stroke-width="${n(t.lineWidth)}"`}/>`;case"chart":{const r=g(e.roles.body)??e.theme.dk1,s=g(e.roles.ground)??e.theme.lt1;return M(t.chart,t.w,t.h,{pointsPerPixel:1,colors:{...e.theme,dk1:r,lt1:s},paper:"none",edge:"none",font:e.font,...c===void 0?{}:{measure:(l,u)=>c(l,u,400)}}).replace(/^<svg /u,`<svg x="${n(t.x)}" y="${n(t.y)}" `)}}}export function segsD(t,e=n){return t.map(i=>i[0]==="Z"?"Z":i[0]==="C"?`C${e(i[1])} ${e(i[2])} ${e(i[3])} ${e(i[4])} ${e(i[5])} ${e(i[6])}`:`${i[0]}${e(i[1])} ${e(i[2])}`).join("")}export function pathTip(t){const e=t.flatMap(r=>r[0]==="Z"?[]:r[0]==="C"?[[r[3],r[4]],[r[5],r[6]]]:[[r[1],r[2]]]),i=e.at(-1),o=e.at(-2);if(!o||!i)return;const c=Math.hypot(i[0]-o[0],i[1]-o[1])||1;return{x:i[0],y:i[1],dx:(i[0]-o[0])/c,dy:(i[1]-o[1])/c}}function W(t,e){const i=t.line==="none"?"":` stroke-width="${n(t.lineWidth)}" stroke-linejoin="round" stroke-linecap="round"`,o=t.opacity===void 0||t.opacity>=1?"":` fill-opacity="${n(t.opacity)}"`;let c="";const r=t.arrow===!0?pathTip(t.segs):void 0;if(r&&t.line!=="none"){const s=Math.max(3,t.lineWidth*3.5),$=r.x-r.dx*s,l=r.y-r.dy*s,u=-r.dy*s*.55,d=r.dx*s*.55;c=`<path d="M${n(r.x)} ${n(r.y)}L${n($+u)} ${n(l+d)}L${n($-u)} ${n(l-d)}Z" ${a(e,{fill:t.line})}/>`}return`<path d="${segsD(t.segs)}" ${a(e,{fill:t.fill,stroke:t.line})}${i}${o}/>${c}`}export function connectorPath(t){const{x1:e,y1:i,x2:o,y2:c}=t;switch(t.route){case"straight":return`M${n(e)} ${n(i)}L${n(o)} ${n(c)}`;case"hv":{const r=e+(o-e)*t.bend;return`M${n(e)} ${n(i)}H${n(r)}V${n(c)}H${n(o)}`}case"vh":{const r=i+(c-i)*t.bend;return`M${n(e)} ${n(i)}V${n(r)}H${n(o)}V${n(c)}`}case"hv2":return`M${n(e)} ${n(i)}H${n(o)}V${n(c)}`;case"vh2":return`M${n(e)} ${n(i)}V${n(c)}H${n(o)}`}}export function drawingSvg(t,e,i={}){const o=i.pixelsPerPoint??1.3333333333333333,c=i.id??`b${Math.abs(w(JSON.stringify(t.marks.length)+String(t.width)+String(t.height))).toString(36)}`,r=i.label===void 0?"":` role="img" aria-label="${h(i.label)}"`;return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${n(t.width)} ${n(t.height)}" width="${n(t.width*o)}" height="${n(t.height*o)}" font-family="${h(e.font)}"${r}>${t.marks.map((s,$)=>H(s,e,c,$,i.measure)).join("")}</svg>`}function w(t){let e=0;for(let i=0;i<t.length;i++)e=e*31+t.charCodeAt(i)|0;return e}export function blockSvg(t,e,i,o={}){const c=v(t,e,o);return drawingSvg(c,i,{...o.pixelsPerPoint===void 0?{}:{pixelsPerPoint:o.pixelsPerPoint},label:o.label??b(t,o.lang),id:o.id??`b${Math.abs(w(JSON.stringify(t))).toString(36)}`,...o.measure===void 0?{}:{measure:o.measure}})}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export function hierarchy(s,f){const a=(r,p,o,u)=>{const h={data:r,children:[],parent:p,depth:o,x:0,index:u};return h.children=(f(r)??[]).map((m,x)=>a(m,h,o+1,x)),h};return a(s,void 0,0,0)}export function eachNode(s){const f=[],a=r=>{f.push(r),r.children.forEach(a)};return a(s),f}export function tidy(s,f={}){const a=f.cousins??2,r=f.gap??((n,i)=>n.parent===i.parent?1:a),p=(n,i,t)=>{const e={node:n,parent:i,children:[],A:void 0,t:void 0,z:0,m:0,c:0,s:0,i:t};return e.a=e,e.children=n.children.map((d,c)=>p(d,e,c)),e},o={node:void 0,parent:void 0,children:[],A:void 0,t:void 0,z:0,m:0,c:0,s:0,i:0};o.a=o;const u=p(s,o,0);o.children=[u];const h=n=>n.children.length>0?n.children[0]:n.t,m=n=>n.children.length>0?n.children[n.children.length-1]:n.t,x=(n,i,t)=>{const e=t/(i.i-n.i);i.c-=e,i.s+=t,n.c+=e,i.z+=t,i.m+=t},W=n=>{let i=0,t=0;for(let e=n.children.length-1;e>=0;e--){const d=n.children[e];d!==void 0&&(d.z+=i,d.m+=i,t+=d.c,i+=d.s+t)}},L=(n,i,t)=>n.a.parent===i.parent?n.a:t,M=(n,i,t)=>{if(i===void 0)return t;let e=n,d=n,c=i,l=n.parent?.children[0]??n,z=e.m,k=d.m,A=c.m,S=l.m;for(;c=m(c),e=h(e),!(c===void 0||e===void 0);){l=h(l)??l,d=m(d)??d,d.a=n;const g=c.z+A-e.z-z+r(c.node,e.node);g>0&&(x(L(c,n,t),n,g),z+=g,k+=g),A+=c.m,z+=e.m,S+=l.m,k+=d.m}return c!==void 0&&m(d)===void 0&&(d.t=c,d.m+=A-k),e!==void 0&&h(l)===void 0?(l.t=e,l.m+=z-S,n):t},b=n=>{n.children.forEach(b);const i=n.parent?.children??[n],t=n.i>0?i[n.i-1]:void 0;if(n.children.length>0){W(n);const e=n.children[0],d=n.children[n.children.length-1],c=((e?.z??0)+(d?.z??0))/2;t!==void 0?(n.z=t.z+r(t.node,n.node),n.m=n.z-c):n.z=c}else t!==void 0&&(n.z=t.z+r(t.node,n.node));n.parent!==void 0&&(n.parent.A=M(n,t,n.parent.A??i[0]??n))},E=n=>{n.node.x=n.z+(n.parent?.m??0),n.m+=n.parent?.m??0,n.children.forEach(E)};b(u),o.m=-u.z,E(u);const y=eachNode(s),N=Math.min(...y.map(n=>n.x));for(const n of y)n.x-=N;return s}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readTreeNode as ut,TYPE_STEPS as R,isBlockReference as tt}from"@allyhub/formats";import{formatValue as ht}from"@allyhub/chart";import{formatNumber as pt}from"./format.js";import{initialsOf as xt,LINE as T,textMark as mt}from"./layout.js";import{numberIn as yt,readAddress as et}from"./resolve.js";import{eachNode as D,hierarchy as gt,tidy as bt}from"./tidy.js";const wt=t=>Array.isArray(t)&&t.every(i=>typeof i=="object"&&i!==null&&!Array.isArray(i));function it(t,i){const n=typeof t.data=="string"?t.data:void 0;if(n===void 0)return;if(i.data===void 0){i.problem(`${n} cannot be read here.`,["data"]);return}const s=et(n,i.data);if(!wt(s)||s.length===0){i.problem(s===void 0?`${n} is not there: name a table (#people) or a CSV.`:`${n} holds no rows.`,["data"]);return}const e=t.columns??{},w=Object.keys(s[0]??{}),u=Object.values(e).filter(r=>!w.some(a=>a.toLowerCase()===r.toLowerCase()));return u.length>0&&i.problem(`${n} has no column ${u.join(", ")} (it has ${w.join(", ")}).`,["data"]),{rows:s.map(r=>{const a={},g=new Set;for(const[M,E]of Object.entries(e)){const h=Object.keys(r).find(l=>l.toLowerCase()===E.toLowerCase());h!==void 0&&(a[M]=r[h],g.add(h))}for(const[M,E]of Object.entries(r))!g.has(M)&&!(M in a)&&(a[M]=E);return a}),address:n}}export function figureOf(t,i,n,s=!1){if(typeof t=="number"&&Number.isFinite(t))return i!==void 0?{text:ht(t,i),number:t}:{text:pt(t,n),number:t,auto:!0};if(typeof t=="string"&&t.trim()!==""){if(/^-?\d+(?:\.\d+)?$/u.test(t.trim()))return i===void 0&&s?{text:t.trim(),number:Number(t.trim())}:figureOf(Number(t.trim()),i,n);const e=yt(t);return e===void 0?{text:t}:{text:t,number:e}}}export function treeOf(t,i){const n=t.fields,s=(l,f)=>i.words?.(l)??(typeof f=="string"?f:void 0),e=s(["alt"],n.alt),w=e===void 0?{}:{alt:e};if(t.kind==="fishbone")return $t(n,i,s,w);const u=t.kind,O=u==="org_chart"?"name":"text",r=typeof n.format=="string"?n.format:void 0,a=(l,f)=>{const b=s([...f,O],l[O])??"";let x;const p=l.probability;if(typeof p=="number")x=p;else if(tt(p)&&i.data!==void 0){const A=et(p,i.data),d=Array.isArray(A)?A[0]:A;typeof d=="number"?x=d>1?d/100:d:i.problem(`${p} is not a probability.`,[...f,"probability"])}let y=l.value;const j=!tt(y);if(tt(y)&&i.data!==void 0){const A=et(y,i.data);y=Array.isArray(A)?A[0]:A}const W=Array.isArray(l.children)?l.children:[],S={text:b,children:W.map((A,d)=>a(A,[...f,"children",d]))},$=s([...f,"role"],l.role),v=s([...f,"note"],l.note),m=s([...f,"label"],l.label),_=figureOf(y,r,void 0,j);return $!==void 0&&(S.role=$),v!==void 0&&(S.note=v),m!==void 0&&(S.label=m),typeof l.photo=="string"&&(S.photo=i.picture?.(l.photo)??l.photo),typeof l.status=="string"&&l.status!=="accent1"&&(S.status=l.status),x!==void 0&&(S.probability=x),_!==void 0&&(S.value=_),typeof l.type=="string"&&(S.type=l.type),S};let g=[];const M=Array.isArray(n.items)?n.items:[];if(M.length>0)g=M.map((l,f)=>({raw:l,at:["items",f]}));else{const l=it(n,i);l!==void 0&&l.rows.forEach((f,b)=>{const x=ut(u,f);for(const p of x.problems.filter(y=>!y.message.startsWith("there is no")))i.problem(`${l.address} row ${String(b+1)}: ${p.message}`,["data"]);x.fields!==void 0&&(typeof f.value=="number"&&(x.fields.value=f.value),typeof f.probability=="number"&&(x.fields.probability=f.probability>1?f.probability/100:f.probability),g.push({raw:x.fields,at:["items",b]}))})}const E=g.some(({raw:l})=>l.parent!==void 0&&l.parent!=="");let h;if(!E)h=g.map(({raw:l,at:f})=>a(l,f));else{const l=g.map(({raw:x,at:p})=>({raw:x,node:a({...x,children:[]},p)})),f=new Map;for(const{raw:x,node:p}of l){const y=typeof x.id=="string"&&x.id!==""?x.id:p.text;f.has(y)?i.problem(`two nodes are ${y}: give each an id, and name a parent by it.`,["items"]):f.set(y,p)}h=[];const b=new Map;for(const{raw:x,node:p}of l){const y=x.parent,j=typeof y=="string"&&y.trim()!==""?f.get(y):void 0;typeof y=="string"&&y.trim()!==""&&j===void 0&&i.problem(`${p.text}'s parent ${y} is no node's id or words.`,["items"]);let W=j,S=!1;for(;W!==void 0;){if(W===p){S=!0;break}W=b.get(W)}j===void 0||S?(S&&i.problem(`${p.text} is under itself: its parent is its own child.`,["items"]),h.push(p)):(j.children.push(p),b.set(p,j))}}if(h.length===0){i.problem("a tree has a node.",["items"]);return}if(u==="decision_tree"){const l=(b,x)=>{b.type??=b.children.length===0?"end":x===0?"decision":"chance",b.children.forEach(p=>{l(p,x+1)})};h.forEach(b=>{l(b,0)});const f=b=>{if(b.type==="chance"&&b.children.length>0){const x=b.children.map(p=>p.probability);if(x.every(p=>p!==void 0)){const p=x.reduce((y,j)=>y+j,0);Math.abs(p-1)>.005&&i.problem(`the branches of ${b.text||"a chance"} have probabilities that add up to ${String(Math.round(p*1e3)/10)}%, not 100%.`,["items"])}}b.children.forEach(f)};return h.forEach(f),{kind:u,roots:h,...w}}return u==="issue_tree"?{kind:u,roots:h,orientation:n.orientation==="vertical"?"vertical":"horizontal",...w}:{kind:u,roots:h,...w}}function $t(t,i,n,s){const e=n(["effect"],t.effect);if(e===void 0){i.problem("a fishbone has an effect: in the script, or here.",[]);return}const w=[];if(Array.isArray(t.categories))t.categories.forEach((u,O)=>{const r=Array.isArray(u.causes)?u.causes:[];w.push({name:n(["categories",O,"name"],u.name)??"",causes:r.map((a,g)=>({text:n(["categories",O,"causes",g,"text"],a.text)??"",causes:Array.isArray(a.causes)?a.causes.map(M=>typeof M.text=="string"?M.text:""):[]}))})});else{const u=it(t,i);if(u!==void 0){const O=new Map;for(const r of u.rows){const a=r.category,g=r.cause;if(typeof a!="string"||a.trim()==="")continue;const M=O.get(a)??[];O.has(a)||(O.set(a,M),w.push({name:a,causes:M})),typeof g=="string"&&g.trim()!==""&&M.push({text:g,causes:[]})}w.length===0&&i.problem(`${u.address} has no category column with words (name it: category: <its column>).`,["data"])}}return{kind:"fishbone",effect:e,categories:w,...s}}const Y=(t,i)=>{t.marks.push(i)};function L(t,i,n,s){const e=s.probe===!0?{...t,marks:[],overflow:[]}:t,w=mt(e,i,n,{...s,w:Math.max(1,s.w)});return s.probe!==!0&&Y(t,w.mark),w.height}const q=(t,i,n,s=400)=>t.measure(i.replace(/\*+/gu,""),n,s),J=(t,i,n,s,e,w,u)=>{Y(t,{type:"rect",part:i,x:n,y:s,w:e,h:w,r:u.r??0,fill:u.fill,line:u.line??"none",lineWidth:u.lineWidth??0})},Q=(t,i,n,s,e,w=.5)=>{const u=(e.startsWith("hv")||e.startsWith("vh"))&&(Math.abs(n.x-s.x)<.5||Math.abs(n.y-s.y)<.5)&&e.length===2;Y(t,{type:"connector",part:i,x1:n.x,y1:n.y,x2:s.x,y2:s.y,route:u?"straight":e,bend:w,from:{part:n.part,site:n.site},to:{part:s.part,site:s.site},color:"rule-strong",width:1.25*t.s})};function Mt(t,i){const n=t.length>1,s=n?{text:"",children:[...t]}:t[0]??{text:"",children:[]},e=(a,g,M)=>{const E={node:M?void 0:a,id:g},h=b=>M?String(b):`${g}-${String(b)}`;if(!(i&&!M&&a.children.length>=2&&a.children.every(b=>b.children.length===0)))return{item:E,kids:a.children.map((b,x)=>e(b,h(x),!1))};let f=[];for(let b=a.children.length-1;b>=0;b--){const x=a.children[b];x!==void 0&&(f=[{item:{node:x,id:h(b),hanging:!0},kids:f}])}return{item:E,kids:f}},w=e(s,n?"":"0",n),u=gt(w,a=>a.kids),O=(a,g)=>{const M={data:a.data.item,children:[],parent:g,depth:a.depth,x:0,index:a.index};return M.children=a.children.map(E=>O(E,M)),M},r=O(u);for(const a of D(r))if(a.data.hanging===!0){let g=a.parent;for(;g?.data.hanging===!0;)g=g.parent;g!==void 0&&(a.data.hangsFrom=g)}return{root:r,virtual:n}}const V=(t,i,n)=>Math.max(i,Math.min(n,t));function nt(t,i,n){const s=w=>{const u=Mt(t,w);bt(u.root,{gap:(h,l)=>(h.parent===l.parent?1:1.2)+(h.data.hanging===!0?.5:0)});const O=D(u.root).filter(h=>h.data.node!==void 0),r=O.map(h=>h.x),a=Math.min(...r);for(const h of D(u.root))h.x-=a;const g=O.some(h=>h.data.hanging===!0),M=Math.max(...O.map(h=>h.x))+1+(g?.5:0),E=Math.max(...O.map(h=>h.depth))-(u.virtual?1:0)+1;return{...u,span:M,depth:E}},e=s(!1);return!n||i(e.span)?e:s(!0)}function vt(t,i,n,s){const e=t.s,w=12*e,u=104*e,O=210*e,r=nt(i.roots,d=>n/d-w>=u,!0),a=Math.min(O+w,n/r.span),g=Math.max(24,a-w);a-w<u-.5&&t.overflow.push("org_chart");const M=D(r.root).filter(d=>d.data.node!==void 0),E=M.some(d=>d.data.node?.photo!==void 0),h=8*e,l=R.body*e,f=R.label*e,b=d=>d.data.hanging===!0?g*.86:g,x=d=>E?Math.min(36*e,Math.max(20*e,d*.22)):0;let p=0;for(const d of M){const o=d.data.node;if(o===void 0)continue;const c=b(d),z=x(c),k=c-2*h-(z>0?z+8*e:0),N=L(t,"",o.text,{x:0,y:0,w:k,size:l,weight:700,color:"text",max:2,probe:!0}),F=o.role===void 0?0:2*e+L(t,"",o.role,{x:0,y:0,w:k,size:f,color:"muted",max:2,probe:!0});p=Math.max(p,N+F+2*h,z+2*h)}const y=r.depth,j=32*e,W=s===void 0||y<2?j:V((s-y*p)/(y-1),14*e,Math.max(j,p*.9)),S=y*p+(y-1)*W;s!==void 0&&S>s+.5&&t.overflow.push("org_chart");const $=s===void 0?0:Math.max(0,(s-S)/2),v=(n-r.span*a)/2,m=d=>d.depth-(r.virtual?1:0),_=d=>{const o=$+m(d)*(p+W),c=v+(d.x+.5)*a;return d.data.hanging===!0&&d.data.hangsFrom!==void 0?{x:v+(d.data.hangsFrom.x+.5)*a+10*e,y:o,w:b(d),h:p}:{x:c-g/2,y:o,w:g,h:p}},A=d=>`nodes/${d.data.id}`;for(const d of M){const o=_(d);if(d.data.hanging===!0&&d.data.hangsFrom!==void 0){const k=_(d.data.hangsFrom);Q(t,`${A(d)}/link`,{x:k.x+k.w/2,y:k.y+k.h,part:`${A(d.data.hangsFrom)}/box`,site:2},{x:o.x,y:o.y+o.h/2,part:`${A(d)}/box`,site:1},"vh2");continue}const c=d.parent;if(c?.data.node===void 0)continue;const z=_(c);Q(t,`${A(d)}/link`,{x:z.x+z.w/2,y:z.y+z.h,part:`${A(c)}/box`,site:2},{x:o.x+o.w/2,y:o.y,part:`${A(d)}/box`,site:0},"vh")}for(const d of M){const o=d.data.node;if(o===void 0)continue;const c=_(d),z=m(d)===0;J(t,`${A(d)}/box`,c.x,c.y,c.w,c.h,{fill:"surface",line:o.status??(z?"accent1":"rule"),lineWidth:(o.status!==void 0||z?1.5:.75)*e,r:6*e});const k=x(c.w);let N=c.x+h;if(k>0){const I=c.y+(c.h-k)/2;if(o.photo!==void 0)Y(t,{type:"picture",part:`${A(d)}/photo`,x:N,y:I,w:k,h:k,src:o.photo,round:!0});else{Y(t,{type:"ellipse",part:`${A(d)}/photo`,x:N,y:I,w:k,h:k,fill:"accent-ground",line:"none",lineWidth:0});const B=k*.38;L(t,`${A(d)}/initials`,xt(o.text),{x:N,y:I+(k-B*T)/2,w:k,size:B,weight:700,color:"on-accent",align:"center",max:1})}N+=k+8*e}const F=c.x+c.w-h-N,C=k>0?"left":"center",X=L(t,"",o.text,{x:N,y:0,w:F,size:l,weight:700,color:"text",max:2,probe:!0}),G=o.role===void 0?0:2*e+L(t,"",o.role,{x:N,y:0,w:F,size:f,color:"muted",max:2,probe:!0}),P=c.y+(c.h-X-G)/2;L(t,`${A(d)}/name`,o.text,{x:N,y:P,w:F,size:l,weight:700,color:"text",align:C,max:2}),o.role!==void 0&&L(t,`${A(d)}/role`,o.role,{x:N,y:P+X+2*e,w:F,size:f,color:"muted",align:C,max:2})}return s??S}function zt(t,i,n,s){const e=t.s,w=i.orientation==="vertical",u=nt(i.roots,()=>!0,!1),O=D(u.root).filter($=>$.data.node!==void 0),r=$=>$.depth-(u.virtual?1:0),a=u.depth,g=8*e,M=R.body*e,E=R.label*e,h=w?s??n*.75:n,l=Math.max(28*e,h*.04);let f=(h-(a-1)*l)/a;w&&(f=Math.min(f,90*e));const b=w?n/u.span:0,x=w?Math.max(24,b-10*e):f,p=x-2*g;let y=0;for(const $ of O){const v=$.data.node;if(v===void 0)continue;const m=L(t,"",v.text,{x:0,y:0,w:p,size:M,weight:r($)===0?700:400,color:"text",max:3,probe:!0}),_=v.note===void 0?0:2*e+L(t,"",v.note,{x:0,y:0,w:p,size:E,color:"muted",max:2,probe:!0});y=Math.max(y,m+_+2*g)}const j=new Map;let W;if(w){const $=28*e;W=a*y+(a-1)*$,s!==void 0&&W>s+.5&&t.overflow.push("issue_tree");const v=s===void 0?0:Math.max(0,(s-W)/2);for(const m of O)j.set(m,{x:(m.x+.5)*b-x/2,y:v+r(m)*(y+$),w:x});x<60*e&&t.overflow.push("issue_tree")}else{const $=u.span-1,v=y+14*e;let m=s===void 0||$===0?v:Math.min(y*1.9,(s-y)/$);m<y+6*e-.5&&(t.overflow.push("issue_tree"),m=Math.max(m,y*.5)),W=$*m+y;const _=s===void 0?0:Math.max(0,(s-W)/2);for(const A of O)j.set(A,{x:r(A)*(f+l),y:_+A.x*m,w:f})}const S=$=>`nodes/${$.data.id}`;for(const $ of O){const v=$.parent;if(v?.data.node===void 0)continue;const m=j.get(v),_=j.get($);!m||!_||(w?Q(t,`${S($)}/link`,{x:m.x+m.w/2,y:m.y+y,part:`${S(v)}/box`,site:2},{x:_.x+_.w/2,y:_.y,part:`${S($)}/box`,site:0},"vh"):Q(t,`${S($)}/link`,{x:m.x+m.w,y:m.y+y/2,part:`${S(v)}/box`,site:3},{x:_.x,y:_.y+y/2,part:`${S($)}/box`,site:1},"hv"))}for(const $ of O){const v=$.data.node,m=j.get($);if(v===void 0||!m)continue;const _=r($)===0;J(t,`${S($)}/box`,m.x,m.y,m.w,y,{fill:_?"accent-ground":"surface",line:_?"none":v.status??"rule-strong",lineWidth:(v.status===void 0?.75:1.5)*e,r:4*e});const A=_?"on-accent":"text",d=L(t,"",v.text,{x:0,y:0,w:p,size:M,weight:_?700:400,color:A,max:3,probe:!0}),o=v.note!==void 0,c=o?2*e+L(t,"",v.note??"",{x:0,y:0,w:p,size:E,color:"muted",max:2,probe:!0}):0,z=m.y+(y-d-c)/2;L(t,`${S($)}/text`,v.text,{x:m.x+g,y:z,w:p,size:M,weight:_?700:400,color:A,max:3}),o&&L(t,`${S($)}/note`,v.note??"",{x:m.x+g,y:z+d+2*e,w:p,size:E,color:_?"on-accent":"muted",max:2})}return s??W}const at=t=>`${String(Math.round(t*1e3)/10)}%`;function kt(t,i,n,s){const e=t.s,w=nt(i.roots,()=>!0,!1),u=D(w.root).filter(o=>o.data.node!==void 0),O=o=>o.depth-(w.virtual?1:0),r=16*e,a=R.label*e,g=R.caption*e,M=R.body*e,E=u.filter(o=>o.data.node?.type==="end"),h=Math.min(n*.3,Math.max(40*e,...E.map(o=>{const c=o.data.node;return c?Math.max(c.value===void 0?0:q(t,c.value.text,M,700),c.text===""?0:q(t,c.text,a)):0}))+8*e),l=Math.min(n*.22,Math.max(0,...u.filter(o=>O(o)===0).map(o=>{const c=o.data.node;return c===void 0||c.type==="end"||c.text===""?0:q(t,c.text,a,600)+8*e}))),f=w.depth-1,b=f>0?(n-l-r-h-6*e)/f:0;f>0&&b<70*e&&t.overflow.push("decision_tree");const x=Math.max(...u.map(o=>{const c=o.data.node;return!c||c.type==="end"||c.text===""?0:a*T*2+4*e}),0),p=Math.max(a*T+g*T+10*e,r+14*e,x),y=w.span-1,j=x>0?a*T*2:0;let W=s===void 0||y===0?p*1.3:Math.min(p*2.2,(s-r-j)/y);W<p-.5&&(t.overflow.push("decision_tree"),W=Math.max(W,r*1.1));const S=y*W+r+j,$=(s===void 0?0:Math.max(0,(s-S)/2))+j,v=o=>({cx:l+r/2+O(o)*b,cy:$+r/2+o.x*W}),m=o=>`nodes/${o.data.id}`,_=o=>o.type==="chance"?{out:6,in:2}:o.type==="end"?{out:3,in:0}:{out:3,in:1},A=12*e,d=o=>o.type==="end"||o.text===""?0:Math.min(Math.min(b>0?b*.6:n,140*e),q(t,o.text,a,600));for(const o of u){const c=o.parent,z=o.data.node;if(c?.data.node===void 0||z===void 0)continue;const k=v(c),N=v(o),F=N.cx-r/2-(k.cx+r/2),C=F>0?V(A/F,.05,.5):.5;Q(t,`${m(o)}/link`,{x:k.cx+r/2,y:k.cy,part:`${m(c)}/node`,site:_(c.data.node).out},{x:N.cx-r/2,y:N.cy,part:`${m(o)}/node`,site:_(z).in},"hv",C);const X=k.cx+r/2+F*C+5*e,G=d(z),P=G>0?N.cx+r/2-G-6*e:N.cx-r/2-4*e,I=Math.max(12*e,P-X);z.label!==void 0&&L(t,`${m(o)}/label`,z.label,{x:X,y:N.cy-2*e-a*T,w:I,size:a,weight:500,color:"text",max:1}),z.probability!==void 0&&L(t,`${m(o)}/probability`,at(z.probability),{x:X,y:N.cy+2*e,w:I,size:g,color:"muted",max:1})}for(const o of u){const c=o.data.node;if(c===void 0)continue;const{cx:z,cy:k}=v(o),N=`${m(o)}/node`;if(c.type==="chance"?Y(t,{type:"ellipse",part:N,x:z-r/2,y:k-r/2,w:r,h:r,fill:"accent2",line:"none",lineWidth:0}):c.type==="end"?Y(t,{type:"poly",part:N,x:z-r/2,y:k-r/2,w:r,h:r,points:[[r,0],[r,r],[0,r/2]],preset:{geometry:"triangle",rotation:270},fill:c.status??"rule-strong",line:"none",lineWidth:0}):J(t,N,z-r/2,k-r/2,r,r,{fill:"accent1"}),c.type==="end"){const F=z+r/2+6*e,C=Math.max(20,n-F),X=c.value===void 0?0:M*T,G=c.text===""?0:a*T,P=k-(X+G)/2;c.value!==void 0&&L(t,`${m(o)}/value`,c.value.text,{x:F,y:P,w:C,size:M,weight:700,color:c.status??"text",max:1}),c.text!==""&&L(t,`${m(o)}/text`,c.text,{x:F,y:P+X,w:C,size:a,color:"muted",max:1})}else if(c.text!==""&&O(o)===0){const F=Math.max(20,l-8*e),C=L(t,"",c.text,{x:0,y:0,w:F,size:a,weight:600,color:"text",max:2,probe:!0});L(t,`${m(o)}/text`,c.text,{x:0,y:k-C/2,w:F,size:a,weight:600,color:"text",align:"right",max:2})}else if(c.text!==""){const F=Math.max(20,d(c)),C=L(t,"",c.text,{x:0,y:0,w:F,size:a,weight:600,color:"text",max:2,probe:!0});L(t,`${m(o)}/text`,c.text,{x:z+r/2-F,y:k-r/2-3*e-C,w:F,size:a,weight:600,color:"text",align:"right",max:2})}}return s??S}function St(t,i,n,s){const e=t.s,w=i.categories.length,u=Math.ceil(w/2),O=w-u,r=Math.max(u,1),a=Math.max(1,...i.categories.map($=>$.causes.length)),g=R.label*e,M=R.label*e,E=s??Math.max(240*e,(a+1)*g*T*2.2*2),h=V(n*.2,90*e,200*e),l=n-h-10*e,f=E/2,b=Math.min(E*.5,Math.max(44*e,16*e+L(t,"",i.effect,{x:0,y:0,w:h-16*e,size:R.body*e,weight:700,color:"on-accent",max:4,probe:!0})));Y(t,{type:"line",part:"spine",x1:0,y1:f,x2:l-2*e,y2:f,color:"rule-strong",width:2.25*e,dash:!1});const x=9*e;Y(t,{type:"poly",part:"head",x:l-x,y:f-x/2,w:x,h:x,points:[[0,0],[x,x/2],[0,x]],fill:"rule-strong",line:"none",lineWidth:0}),J(t,"effect",n-h,f-b/2,h,b,{fill:"accent-ground",r:6*e});const p=L(t,"",i.effect,{x:0,y:0,w:h-16*e,size:R.body*e,weight:700,color:"on-accent",max:4,probe:!0});L(t,"effect/text",i.effect,{x:n-h+8*e,y:f-p/2,w:h-16*e,size:R.body*e,weight:700,color:"on-accent",align:"center",max:4});const y=l/r,j=M*T+10*e,W=f-j-6*e,S=Math.min(y*.35,W*.45);return i.categories.forEach(($,v)=>{const m=v<u,_=m?v:v-u,A=m?u:Math.max(O,1),d=l/Math.max(A,r),o=_*d+d*.5-S/2,c=o+S,z=m?j+4*e:E-j-4*e,k=Math.min(d-8*e,q(t,$.name,M,700)+20*e),N=V(o-k/2,0,l-k),F=m?0:E-j;J(t,`categories/${String(v)}/box`,N,F,k,j,{fill:"well",line:"rule",lineWidth:.75*e,r:4*e}),L(t,`categories/${String(v)}/name`,$.name,{x:N+4*e,y:F+5*e,w:k-8*e,size:M,weight:700,color:"text",align:"center",max:1}),Y(t,{type:"line",part:`categories/${String(v)}/bone`,x1:o,y1:z,x2:c,y2:f,color:"rule-strong",width:1.5*e,dash:!1});const C=$.causes.length;$.causes.forEach((X,G)=>{const P=(G+1)/(C+1),I=z+(f-z)*P,B=ft=>o+S*(ft-z)/(f-z),Z=B(I),ot=X.causes.length>0?`${X.text} (${X.causes.join(", ")})`:X.text,rt=_*d+2*e,ct=g*T,dt=Math.min(Z,B(I-2*ct-1.5*e))-4*e,U=Math.max(20,Math.min(d*.78,dt-rt)),H=L(t,"",ot,{x:0,y:0,w:U,size:g,color:"body",max:2,probe:!0}),st=Math.min(Z,B(I-H-1.5*e))-4*e,lt=Math.abs(f-z)/(C+1);H>lt+.5&&t.overflow.push(`categories/${String(v)}`),Y(t,{type:"line",part:`categories/${String(v)}/causes/${String(G)}/line`,x1:st-U,y1:I,x2:Z,y2:I,color:"rule",width:.75*e,dash:!1}),L(t,`categories/${String(v)}/causes/${String(G)}/text`,ot,{x:st-U,y:I-H-1.5*e,w:U,size:g,color:"body",align:"right",max:2})})}),E}export function treeLayout(t,i,n,s){switch(i.kind){case"org_chart":return vt(t,i,n,s);case"issue_tree":return zt(t,i,n,s);case"decision_tree":return kt(t,i,n,s);case"fishbone":return St(t,i,n,s)}}const K=t=>t.replace(/\*+/gu,"");export function treeAlt(t){if(t.kind==="fishbone")return`${K(t.effect)} ← ${t.categories.map(n=>`${K(n.name)}: ${n.causes.map(s=>K(s.text)).join(", ")}`).join("; ")}`;const i=n=>{const s=[n.label===void 0?void 0:`${K(n.label)}:`,K(n.text),n.role===void 0?void 0:`(${K(n.role)})`,n.probability===void 0?void 0:at(n.probability),n.value?.text].filter(e=>e!==void 0&&e!=="").join(" ");return n.children.length===0?s:`${s} → [${n.children.map(i).join("; ")}]`};return t.roots.map(i).join("; ")}
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@allyhub/blocks",
3
+ "version": "0.20.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ },
10
+ "./elements": {
11
+ "types": "./dist/elements.d.ts",
12
+ "default": "./dist/elements.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "sideEffects": false,
17
+ "private": true,
18
+ "license": "SEE LICENSE IN LICENSE.md"
19
+ }
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{openPage as n}from"./page.js";import{startServer as r}from"./server.js";const d=16384;export async function drawHtml(l,t){const e=await r([...t.mounts??[],{at:"/index.html",body:t.html,type:"text/html; charset=utf-8"}]),a=await n(l,{width:t.width,height:t.height??100,allow:e.allow});try{await a.goto(`${e.origin}/index.html`),await a.evaluate("(async () => { await document.fonts.ready; await Promise.all(Array.from(document.images).map((i) => i.decode().catch(() => undefined))); await window.allyhubReady; })()");let i=t.height??100;return t.height===void 0&&(i=Math.min(d,Math.max(1,Math.ceil(await a.evaluate("document.documentElement.scrollHeight")))),await a.session.send("Emulation.setDeviceMetricsOverride",{width:t.width,height:i,deviceScaleFactor:1,mobile:!1})),await a.capture({format:t.format??"png",...t.quality===void 0?{}:{quality:t.quality},clip:{x:0,y:0,width:t.width,height:i}})}finally{await a.close(),await e.close()}}
2
+ import{openPage as c}from"./page.js";import{startServer as r}from"./server.js";const o=16384;export async function drawHtml(n,t){const l=Math.ceil(t.width),i=await r([...t.mounts??[],{at:"/index.html",body:t.html,type:"text/html; charset=utf-8"}]);let a;try{a=await c(n,{width:l,height:Math.ceil(t.height??100),allow:i.allow})}catch(e){throw await i.close(),e}try{await a.goto(`${i.origin}/index.html`),await a.evaluate("(async () => { await document.fonts.ready; await Promise.all(Array.from(document.images).map((i) => i.decode().catch(() => undefined))); await window.allyhubReady; })()");let e=Math.ceil(t.height??100);return t.height===void 0&&(e=Math.min(o,Math.max(1,Math.ceil(await a.evaluate("document.documentElement.scrollHeight")))),await a.session.send("Emulation.setDeviceMetricsOverride",{width:l,height:e,deviceScaleFactor:1,mobile:!1})),await a.capture({format:t.format??"png",...t.quality===void 0?{}:{quality:t.quality},clip:{x:0,y:0,width:l,height:e}})}finally{await a.close(),await i.close()}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/browser",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{pathToFileURL as l}from"node:url";import{SDK as u}from"./scan.js";const i=new Map;function f(n){let t=i.get(n);return t||(t=import(n.includes("://")?n:l(n).href).then(o=>{if(typeof o.default!="object"||o.default===null)throw new Error(`The build plugins module ${n} has no default export.`);return o.default}),i.set(n,t)),t}export function buildPluginModules(n){return[...new Set(n.flatMap(t=>t.buildPlugins??[]))]}export async function stageAdditions(n,t,e){const o=[];for(const r of buildPluginModules(n))try{o.push(await f(r))}catch(s){if(!e)throw s;e(r,s)}return{plugins:o.flatMap(r=>r.plugins?.({root:t})??[]),lent:Object.assign({},...o.map(r=>r.lent??{})),sdk:sdkEntriesOf(...o),bound:sdkBindingsOf(...o),async written(r){const s=[];for(const c of o)s.push(...await c.written?.(r)??[]);return s}}}const d=n=>n==="."?u:`${u}/${n.replace(/^\.\//u,"")}`;export function sdkEntriesOf(...n){const t={};for(const e of n)for(const[o,r]of Object.entries(e.sdk??{}))t[d(o)]=r;return t}export function sdkBindingsOf(...n){const t={};for(const e of n)for(const[o,r]of Object.entries(e.bound??{}))t[d(o)]=r;return t}export async function nodeLending(n,t){const e=await stageAdditions(n,t,()=>{});return{lent:e.lent,sdk:e.sdk,bound:e.bound,buildPlugins:buildPluginModules(n)}}export async function nodeAdditions(n,t){const e=[];for(const o of n){const r=await f(o).catch(()=>{});e.push(...r?.node?.({root:t})??[])}return e}
2
+ import{pathToFileURL as a}from"node:url";import{SDK as f}from"./scan.js";const i=new Map;function c(t){let n=i.get(t);return n||(n=import(t.includes("://")?t:a(t).href).then(o=>{if(typeof o.default!="object"||o.default===null)throw new Error(`The build plugins module ${t} has no default export.`);return o.default}),i.set(t,n)),n}export function buildPluginModules(t){return[...new Set(t.flatMap(n=>n.buildPlugins??[]))]}export async function stageAdditions(t,n,e){const o=[];for(const r of buildPluginModules(t))try{o.push(await c(r))}catch(s){if(!e)throw s;e(r,s)}return{plugins:o.flatMap(r=>r.plugins?.({root:n})??[]),lent:Object.assign({},...o.map(r=>r.lent??{})),sdk:sdkEntriesOf(...o),bound:sdkBindingsOf(...o),parts:sdkPartsOf(...o),async written(r){const s=[];for(const d of o)s.push(...await d.written?.(r)??[]);return s}}}const u=t=>t==="."?f:`${f}/${t.replace(/^\.\//u,"")}`;export function sdkEntriesOf(...t){const n={};for(const e of t)for(const[o,r]of Object.entries(e.sdk??{}))n[u(o)]=r;return n}export function sdkBindingsOf(...t){const n={};for(const e of t)for(const[o,r]of Object.entries(e.bound??{}))n[u(o)]=r;return n}export function sdkPartsOf(...t){const n={};for(const e of t)for(const[o,r]of Object.entries(e.parts??{}))n[u(o)]={of:u(r.of),names:[...r.names]};return n}export async function nodeLending(t,n){const e=await stageAdditions(t,n,()=>{});return{lent:e.lent,sdk:e.sdk,bound:e.bound,parts:e.parts,buildPlugins:buildPluginModules(t)}}export async function nodeAdditions(t,n){const e=[];for(const o of t){const r=await c(o).catch(()=>{});e.push(...r?.node?.({root:n})??[])}return e}
@@ -1,4 +1,10 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{createHash as h}from"node:crypto";import{existsSync as m,readFileSync as S}from"node:fs";import{readFile as O}from"node:fs/promises";import{createRequire as w}from"node:module";import{dirname as u,isAbsolute as c,join as g,relative as F,resolve as l,sep as x}from"node:path";import{PACKAGE_FILE as y,within as $}from"@allyhub/formats";export const FONTS_MODULE="allyhub:fonts";const j=/\.(woff2?|ttf|otf)$/i,v=e=>e.startsWith("./")||e.startsWith("../")||c(e);export function fontStyles(e,n){const o=[],r=[],a=w(g(e,y));for(const s of n.fonts??[]){let i;if(v(s)){const d=l(e,s);m(d)&&(i=d)}else try{i=a.resolve(s)}catch{i=void 0}if(i===void 0){r.push(s);continue}const t=F(e,i),p=!t.startsWith("..")&&!c(t)&&!t.split(x).includes("node_modules")?t.split(x).join("/"):i;o.includes(p)||o.push(p)}return{styles:o,missing:r}}function E(e){for(let n=u(e);n!==u(n);n=u(n)){const o=g(n,y);if(m(o))try{const r=JSON.parse(S(o,"utf8"));if(typeof r.name=="string")return`${r.name}@${String(r.version)}`}catch{return""}}return""}export async function fontsDigest(e,n,o){if(o.length===0)return;const r=o.filter(t=>!c(t)),a=[...new Set(r.map(t=>t.slice(0,t.lastIndexOf("/"))))],s=n.filter(t=>j.test(t)&&a.some(f=>$(t,f))),i=h("sha256");for(const t of[...new Set([...o,...s])].sort()){const f=await O(l(e,t)).catch(()=>Buffer.alloc(0));i.update(`${c(t)?E(t):t}\0`).update(h("sha256").update(f).digest("hex")).update("\0")}return`sha256:${i.digest("hex")}`}export function fontsModule(e,n){return n.length===0?`export {};
3
- `:n.map(o=>`import ${JSON.stringify(l(e,o))};
4
- `).join("")}
2
+ import{createHash as w}from"node:crypto";import{existsSync as p,readFileSync as N}from"node:fs";import{readFile as S,writeFile as m}from"node:fs/promises";import{createRequire as j}from"node:module";import{dirname as h,isAbsolute as d,join as l,relative as C,resolve as g,sep as F}from"node:path";import{PACKAGE_FILE as O,within as E}from"@allyhub/formats";import{CONFIG_FILES as I}from"@allyhub/formats/layout";export const FONTS_MODULE="allyhub:fonts";const _=/\.(woff2?|ttf|otf)$/i,b=e=>e.startsWith("./")||e.startsWith("../")||d(e);export function fontStyles(e,i){const s=[],o=[],a=j(l(e,O));for(const r of i.fonts??[]){let n;if(b(r)){const f=g(e,r);p(f)&&(n=f)}else try{n=a.resolve(r)}catch{n=void 0}if(n===void 0){o.push(r);continue}const t=C(e,n),u=!t.startsWith("..")&&!d(t)&&!t.split(F).includes("node_modules")?t.split(F).join("/"):n;s.includes(u)||s.push(u)}return{styles:s,missing:o}}function v(e){for(let i=h(e);i!==h(i);i=h(i)){const s=l(i,O);if(p(s))try{const o=JSON.parse(N(s,"utf8"));if(typeof o.name=="string")return`${o.name}@${String(o.version)}`}catch{return""}}return""}export async function fontsDigest(e,i,s){if(s.length===0)return;const o=s.filter(t=>!d(t)),a=[...new Set(o.map(t=>t.slice(0,t.lastIndexOf("/"))))],r=i.filter(t=>_.test(t)&&a.some(c=>E(t,c))),n=w("sha256");for(const t of[...new Set([...s,...r])].sort()){const c=await S(g(e,t)).catch(()=>Buffer.alloc(0));n.update(`${d(t)?v(t):t}\0`).update(w("sha256").update(c).digest("hex")).update("\0")}return`sha256:${n.digest("hex")}`}export function fontsModule(e,i){return i.length===0?`export {};
3
+ `:i.map(s=>`import ${JSON.stringify(g(e,s))};
4
+ `).join("")}export async function listFonts(e,i){const s=b(i)?i:`./${i}`,o=JSON.stringify(s),a=I.find(f=>p(l(e,f)));if(a===void 0)return await m(l(e,"allyhub.config.ts"),`import { defineConfig } from "@allyhub/sdk/config";
5
+
6
+ export default defineConfig({
7
+ fonts: [${o}],
8
+ });
9
+ `),!0;const r=l(e,a),n=await S(r,"utf8");if(n.includes(s))return!0;const t=/\bfonts\s*:\s*\[/u.exec(n);if(t){const f=t.index+t[0].length,x=n.indexOf("]",f);if(x<0)return!1;const $=n.slice(f,x).replace(/,?\s*$/u,""),y=f+$.length;return await m(r,`${n.slice(0,y)}${$.trim()===""?"":", "}${o}${n.slice(y)}`),!0}const c=/defineConfig\(\s*\{/u.exec(n);if(!c)return!1;const u=c.index+c[0].length;return await m(r,`${n.slice(0,u)}
10
+ fonts: [${o}],${n.slice(u)}`),!0}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{dependenciesOf,listFiles}from"./files.js";export{listWork,projectItems,readWork,unlistedWork}from"./work.js";export{moveEdits,movedPath,referencesOf,referringFiles}from"./move-refs.js";export{bundleForStage,compileErrorOf,createModuleLoader,createStageDevServer,loadUserVite}from"./vite.js";export{nodeStackPlace,placeFinder}from"./places.js";export{mergeScript,pieceLocales,readScripts,readMessages}from"./messages.js";export{MAX_DATA_BYTES,isDataFile,parseCsv,parseData,readData}from"./data.js";export{itemKindBuild,kindBuildOf}from"./kind-build.js";export{madeNotes}from"./made-notes.js";export{FACTS_HEAD,MOMENTS,PROJECT_DIR,STRETCH,VERSION_FIELDS,allFindings,defineView}from"./inspect-view.js";export{fileCheckOf,fileProblems,listedFileProblems}from"./file-check.js";export{FRESH,defineCliCommand,existingFile,fromMedia,media,parameters,progressLines,sizeOf}from"./cli-command.js";export{defineProjectTool}from"./project-tool.js";export{projectAt,projectOfFile,projectRoot}from"./project-root.js";export{buildPluginModules,nodeLending,sdkBindingsOf,sdkEntriesOf,stageAdditions}from"./build-plugins.js";export{deckReferences,referenceModule}from"./references.js";export{messagePrefix,parseComponentRef,readPropsText,resolveDims}from"@allyhub/piece";export{readMedia}from"./media.js";export{modelInfo}from"./model-info.js";export{takeVoice}from"./takes.js";export{resolveMatrix}from"./matrix.js";export{FONTS_MODULE,fontStyles,fontsDigest,fontsModule}from"./fonts.js";export{SDK,checkImports,discover,lineAt,packageName,parse,walk}from"./scan.js";export{allyhubPlugin,boundEntry,mediaHref}from"./plugin.js";export{MetaLoader}from"./meta.js";export{besideModule,fromFolder,plain}from"./evaluate.js";export{MESSAGE_TYPES,messageTypes,writeMessageTypes}from"./types.js";export{BUILD_FOLDER,inTime,issuesText,itemProblem,loadFailure,prepare,sourceOf,stageId,stageItem,stageName}from"./prepare.js";export{codeOf}from"./code.js";export{ProjectError,StuckError}from"./version.js";export{generatedFile,generatedPagedFact,mismatchFacts,secondsOf}from"./generated.js";export{importedItems}from"./imports.js";export{madeType,resolveUses,splitReference,usersOf,usesInOrder}from"./uses.js";
2
+ export{dependenciesOf,listFiles}from"./files.js";export{currentFormats,listWork,projectItems,projectTheme,readWork,unlistedWork}from"./work.js";export{moveEdits,movedPath,referencesOf,referringFiles}from"./move-refs.js";export{bundleForStage,compileErrorOf,createModuleLoader,createStageDevServer,loadUserVite}from"./vite.js";export{nodeStackPlace,placeFinder}from"./places.js";export{mergeScript,pieceLocales,readScripts,readMessages}from"./messages.js";export{MAX_DATA_BYTES,isDataFile,parseCsv,parseData,readData}from"./data.js";export{itemKindBuild,kindBuildOf}from"./kind-build.js";export{madeNotes}from"./made-notes.js";export{FACTS_HEAD,MOMENTS,PROJECT_DIR,STRETCH,VERSION_FIELDS,allFindings,defineView}from"./inspect-view.js";export{fileCheckOf,fileProblems,listedFileProblems}from"./file-check.js";export{FRESH,defineCliCommand,existingFile,fromMedia,media,parameters,progressLines,sizeOf}from"./cli-command.js";export{defineProjectTool}from"./project-tool.js";export{projectAt,projectOfFile,projectRoot}from"./project-root.js";export{buildPluginModules,nodeLending,sdkBindingsOf,sdkEntriesOf,sdkPartsOf,stageAdditions}from"./build-plugins.js";export{deckReferences,referenceModule}from"./references.js";export{messagePrefix,parseComponentRef,readPropsText,resolveDims}from"@allyhub/piece";export{readMedia}from"./media.js";export{modelInfo}from"./model-info.js";export{takeVoice}from"./takes.js";export{resolveMatrix}from"./matrix.js";export{FONTS_MODULE,fontStyles,fontsDigest,fontsModule,listFonts}from"./fonts.js";export{SDK,checkImports,discover,lineAt,packageName,parse,walk}from"./scan.js";export{allyhubPlugin,boundEntry,mediaHref}from"./plugin.js";export{MetaLoader}from"./meta.js";export{besideModule,fromFolder,plain}from"./evaluate.js";export{MESSAGE_TYPES,messageTypes,writeMessageTypes}from"./types.js";export{BUILD_FOLDER,inTime,issuesText,itemProblem,loadFailure,prepare,sourceOf,stageId,stageItem,stageName}from"./prepare.js";export{codeOf}from"./code.js";export{ProjectError,StuckError}from"./version.js";export{generatedFile,generatedPagedFact,mismatchFacts,secondsOf}from"./generated.js";export{importedItems}from"./imports.js";export{madeType,resolveUses,splitReference,usersOf,usesInOrder}from"./uses.js";export{behindIn,defineMigrations,migrateProject,projectFormats}from"./migrate.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";export const PROJECT_DIR=e.string().optional().describe("The project's folder; default the one around where it is run"),VERSION_FIELDS={item:e.string().optional().describe("The piece: its id (its file without its extension) or its file; default the project's only one"),combo:e.array(e.string()).optional().describe("The first combo matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03); default the first combo"),dir:PROJECT_DIR},STRETCH={part:e.string().optional().describe("Only this part"),from:e.number().min(0).optional().describe("From this second of the video"),to:e.number().min(0).optional().describe("Up to this second of the video")},MOMENTS={at:e.array(e.string()).optional().describe("At these moments: seconds (from --part's start when given) or anchors (@press, @/map, @press+0.2)"),every:e.number().positive().optional().describe("Every this many seconds through the stretch (--part, or --from to --to, else all of it)")},allFindings=o=>e.boolean().default(!1).describe(`Every finding on a line of its own${o===void 0?"":`, and ${o}`}`),FACTS_HEAD="measurements for you to judge. Boxes are [x,y,w,h], in pixels (a deck's in points); --json has every one.",defineView=o=>o;
2
+ import{z as e}from"zod";export const PROJECT_DIR=e.string().optional().describe("The project's folder; default the one around where it is run"),VERSION_FIELDS={item:e.string().optional().describe("The piece: its id (its file without its extension) or its file; default the project's only one"),combo:e.array(e.string()).optional().describe("The first combo matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03); default the first combo"),dir:PROJECT_DIR},STRETCH={part:e.string().optional().describe("Only this part"),from:e.number().min(0).optional().describe("From this second of the video"),to:e.number().min(0).optional().describe("Up to this second of the video")},MOMENTS={at:e.array(e.string()).optional().describe("At these moments: seconds (from --part's start when given) or anchors (@press, @/map, @press+0.2)"),every:e.number().positive().optional().describe("Every this many seconds through the stretch (--part, or --from to --to, else all of it)")},allFindings=o=>e.boolean().default(!1).describe(`Every finding on a line of its own${o===void 0?"":`, and ${o}`}`),FACTS_HEAD="boxes are [x,y,w,h], in pixels (a deck's in points); --json has every one.",defineView=o=>o;
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
2
  import b from"node:net";import{join as m}from"node:path";import{format as U}from"node:util";import{parentPort as g,workerData as N}from"node:worker_threads";import{problem as E}from"@allyhub/diagnostics";import{framedComponent as P}from"@allyhub/piece";import{nodeAdditions as V}from"./build-plugins.js";import{plain as k}from"./evaluate.js";import{allyhubPlugin as _}from"./plugin.js";import{SDK as H}from"./scan.js";import{createModuleLoader as I,loadUserVite as K}from"./vite.js";const r=N,u=[];let $=!1;for(const t of["log","info","warn","error","debug"])console[t]=(...o)=>{$||process.stderr.write(`${U(...o)}
3
- `)};const R=Date.UTC(2026,0,1),T=Date,B=Math.random,F=globalThis.fetch,L=Reflect.get(b.Socket.prototype,"connect");function z(t){let o=t>>>0;return()=>{o=o+1831565813|0;let e=Math.imul(o^o>>>15,1|o);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function G(t){let o=2166136261;for(let e=0;e<t.length;e++)o^=t.charCodeAt(e),o=Math.imul(o,16777619);return o>>>0}async function f(t,o,e,i=`reading the metadata of ${o}`,c=!0,n){const s=globalThis;class l extends T{constructor(...d){d.length===0?(super(R),n?.("the clock (new Date())")):super(...d)}static now(){return n?.("the clock (Date.now)"),R}}const M=a=>{u.push(E("AK-B003",`A network request was made while ${i}: ${a}. The build has no network: put the data in the project and import it.`,{where:{file:o}}))};s.Date=l;const j=z(G(t));Math.random=n?()=>(n("a random number (Math.random)"),j()):j;const D=[];if(n){const a=(h,y,O,S)=>{const w=h[y];typeof w=="function"&&(h[y]=function(...C){return n(O),S===void 0?w.apply(this,C):S},D.push(()=>{h[y]=w}))};a(performance,"now","the clock (performance.now)",0);const{crypto:d}=globalThis,A=d;a(A,"randomUUID","a random number (crypto.randomUUID)",void 0),a(A,"getRandomValues","a random number (crypto.getRandomValues)",void 0),a(process,"getBuiltinModule","Node's own modules, which reach outside the project",void 0)}s.fetch=a=>(M(typeof a=="string"?a:a.url??"a request"),Promise.reject(new TypeError("network blocked by AllyHub"))),Reflect.set(b.Socket.prototype,"connect",function(...a){const[d]=a;return M(typeof d=="object"&&d!==null?`${d.host??""}:${String(d.port??"")}`:String(d)),this.destroy(new Error("network blocked by AllyHub")),this}),$=c;try{return await e()}finally{$=!1;for(const a of D)a();s.Date=T,Math.random=B,s.fetch=F,Reflect.set(b.Socket.prototype,"connect",L)}}process.env.NODE_ENV="production";const p=(async()=>{const t=r.user?await K(r.root):void 0;return I(r.root,[_({root:r.root,media:r.media,dependencies:new Set(r.dependencies),inNode:!0,...r.lent?{lent:r.lent}:{},...r.sdk?{sdk:r.sdk}:{},...r.bound?{bound:r.bound}:{}}),...await V(r.buildPlugins??[],r.root)],{mode:"production",inline:[H,...Object.keys(r.lent??{})],...t?{user:t}:{}})})();async function J(t){const o=await f(t,t,async()=>(await p).import(m(r.root,t))),e=[];for(const[i,c]of Object.entries(o)){if(typeof c!="function")continue;const n=c.info;if(n===void 0||typeof c.componentName!="string")continue;const s=[],l=k(n,"",s);s.length>0&&u.push(E("AK-M001",`These places in the component declaration in ${t} are functions and cannot be read as metadata: ${s.join(", ")}. The types and examples of props must be plain data.`,{where:{file:t}})),e.push({...l,file:t,export:i})}return e}async function Q(t,o){const e=await f(t,t,async()=>(await p).import(m(r.root,t)));if(!Object.hasOwn(e,o)){const s=Object.keys(e).filter(l=>l!=="__esModule");return{not:`${t} has no export ${o} (it has ${s.join(", ")||"none"})`}}const i=P(o,e[o]);if(!i)return{not:`${t}'s ${o} is not a component: make it with defineComponent`};const c=[],n=k(i.props,"",c);return c.length>0?{not:`${t}'s ${o} has functions in its props' types (${c.join(", ")}): they must be plain data`}:{name:o,...i.label===void 0?{}:{label:i.label},props:n}}async function W(t){const o=await f(t,t,async()=>(await p).import(m(r.root,t)),void 0,!1);return k(o.default,"",[])}const v=(t,o,e={})=>f(e.seed??t,t,o,e.doing,e.silent??!0,e.strict),x=new Map;async function X(t){let o=x.get(t.module);o||(o=import(t.module).then(n=>{if(typeof n.default!="function")throw new Error(`${t.module} has no default export to run an entry with.`);return n.default}),x.set(t.module,o));const e=await o,i=async n=>(await p).import(m(r.root,n)),c={root:r.root,file:t.file,input:t.input,import:(n,s)=>v(n,()=>i(n),s),load:i,guarded:(n,s)=>v(t.file,n,s),report:n=>{u.push(n)}};return e(c)}g?.on("message",t=>{(async()=>{u.length=0;try{await p;const o=t.type==="run"?await X(t):t.type==="components"?await J(t.file):t.type==="component"?await Q(t.file,t.name):await W(t.file),e={id:t.id,ok:!0,value:o,problems:[...u]};g?.postMessage(e)}catch(o){const e={id:t.id,ok:!1,error:o instanceof Error?o.message:String(o),...o instanceof Error&&o.stack?{stack:o.stack}:{},problems:[...u]};g?.postMessage(e)}})()});
3
+ `)};const R=Date.UTC(2026,0,1),T=Date,B=Math.random,F=globalThis.fetch,L=Reflect.get(b.Socket.prototype,"connect");function z(t){let o=t>>>0;return()=>{o=o+1831565813|0;let e=Math.imul(o^o>>>15,1|o);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function G(t){let o=2166136261;for(let e=0;e<t.length;e++)o^=t.charCodeAt(e),o=Math.imul(o,16777619);return o>>>0}async function f(t,o,e,i=`reading the metadata of ${o}`,c=!0,n){const s=globalThis;class p extends T{constructor(...d){d.length===0?(super(R),n?.("the clock (new Date())")):super(...d)}static now(){return n?.("the clock (Date.now)"),R}}const M=a=>{u.push(E("AK-B003",`A network request was made while ${i}: ${a}. The build has no network: put the data in the project and import it.`,{where:{file:o}}))};s.Date=p;const j=z(G(t));Math.random=n?()=>(n("a random number (Math.random)"),j()):j;const D=[];if(n){const a=(h,y,O,S)=>{const w=h[y];typeof w=="function"&&(h[y]=function(...C){return n(O),S===void 0?w.apply(this,C):S},D.push(()=>{h[y]=w}))};a(performance,"now","the clock (performance.now)",0);const{crypto:d}=globalThis,A=d;a(A,"randomUUID","a random number (crypto.randomUUID)",void 0),a(A,"getRandomValues","a random number (crypto.getRandomValues)",void 0),a(process,"getBuiltinModule","Node's own modules, which reach outside the project",void 0)}s.fetch=a=>(M(typeof a=="string"?a:a.url??"a request"),Promise.reject(new TypeError("network blocked by AllyHub"))),Reflect.set(b.Socket.prototype,"connect",function(...a){const[d]=a;return M(typeof d=="object"&&d!==null?`${d.host??""}:${String(d.port??"")}`:String(d)),this.destroy(new Error("network blocked by AllyHub")),this}),$=c;try{return await e()}finally{$=!1;for(const a of D)a();s.Date=T,Math.random=B,s.fetch=F,Reflect.set(b.Socket.prototype,"connect",L)}}process.env.NODE_ENV="production";const l=(async()=>{const t=r.user?await K(r.root):void 0;return I(r.root,[_({root:r.root,media:r.media,dependencies:new Set(r.dependencies),inNode:!0,...r.lent?{lent:r.lent}:{},...r.sdk?{sdk:r.sdk}:{},...r.bound?{bound:r.bound}:{},...r.parts?{parts:r.parts}:{}}),...await V(r.buildPlugins??[],r.root)],{mode:"production",inline:[H,...Object.keys(r.lent??{})],...t?{user:t}:{}})})();async function J(t){const o=await f(t,t,async()=>(await l).import(m(r.root,t))),e=[];for(const[i,c]of Object.entries(o)){if(typeof c!="function")continue;const n=c.info;if(n===void 0||typeof c.componentName!="string")continue;const s=[],p=k(n,"",s);s.length>0&&u.push(E("AK-M001",`These places in the component declaration in ${t} are functions and cannot be read as metadata: ${s.join(", ")}. The types and examples of props must be plain data.`,{where:{file:t}})),e.push({...p,file:t,export:i})}return e}async function Q(t,o){const e=await f(t,t,async()=>(await l).import(m(r.root,t)));if(!Object.hasOwn(e,o)){const s=Object.keys(e).filter(p=>p!=="__esModule");return{not:`${t} has no export ${o} (it has ${s.join(", ")||"none"})`}}const i=P(o,e[o]);if(!i)return{not:`${t}'s ${o} is not a component: make it with defineComponent`};const c=[],n=k(i.props,"",c);return c.length>0?{not:`${t}'s ${o} has functions in its props' types (${c.join(", ")}): they must be plain data`}:{name:o,...i.label===void 0?{}:{label:i.label},props:n}}async function W(t){const o=await f(t,t,async()=>(await l).import(m(r.root,t)),void 0,!1);return k(o.default,"",[])}const v=(t,o,e={})=>f(e.seed??t,t,o,e.doing,e.silent??!0,e.strict),x=new Map;async function X(t){let o=x.get(t.module);o||(o=import(t.module).then(n=>{if(typeof n.default!="function")throw new Error(`${t.module} has no default export to run an entry with.`);return n.default}),x.set(t.module,o));const e=await o,i=async n=>(await l).import(m(r.root,n)),c={root:r.root,file:t.file,input:t.input,import:(n,s)=>v(n,()=>i(n),s),load:i,guarded:(n,s)=>v(t.file,n,s),report:n=>{u.push(n)}};return e(c)}g?.on("message",t=>{(async()=>{u.length=0;try{await l;const o=t.type==="run"?await X(t):t.type==="components"?await J(t.file):t.type==="component"?await Q(t.file,t.name):await W(t.file),e={id:t.id,ok:!0,value:o,problems:[...u]};g?.postMessage(e)}catch(o){const e={id:t.id,ok:!1,error:o instanceof Error?o.message:String(o),...o instanceof Error&&o.stack?{stack:o.stack}:{},problems:[...u]};g?.postMessage(e)}})()});
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readFile as y,writeFile as F}from"node:fs/promises";import{join as v}from"node:path";import{pathToFileURL as x}from"node:url";import{listedWork as b,WORK_FILE as j}from"@allyhub/formats";import{parseDocument as M}from"yaml";import{currentFormats as O,readWork as g}from"./work.js";export const defineMigrations=n=>n;export async function projectFormats(n,t){const{work:r}=await g(n),i=r.versions,o={};for(const e of t)e.migrations!==void 0&&(o[e.id]=i?.[e.id]??1);return{formats:o,recorded:i!==void 0}}export async function behindIn(n,t){const{formats:r}=await projectFormats(n,t);return t.flatMap(i=>{const o=r[i.id];return i.migrations===void 0||o===void 0||o>=i.migrations.format?[]:[{kind:i.id,at:o,now:i.migrations.format}]})}const p=new Map;function S(n){const t=n.migrations?.module;if(t===void 0)return;let r=p.get(t);return r||(r=import(t.includes("://")?t:x(t).href).then(o=>{const e=o.default;if(!e||!Array.isArray(e.migrations))throw new Error(`${n.extension}'s migrations module for ${n.id} (${t}) has no migrations.`);return e}),p.set(t,r)),r}export async function migrateProject(n,t){const{formats:r,recorded:i}=await projectFormats(n,t),{work:o}=await g(n),e=b(o),c=[];for(const s of t){const f=r[s.id];if(s.migrations===void 0||f===void 0||f>=s.migrations.format)continue;const w=await S(s),l=e.filter(a=>a.kind===s.id).map(a=>a.file.replace(/^\.\//u,"")),m=new Set,u=[];for(const a of w?.migrations??[])if(!(a.to<=f||a.to>s.migrations.format)){for(const h of await a.run({root:n,files:l}))m.add(h);u.push(a.about)}c.push({kind:s.id,at:f,now:s.migrations.format,changed:[...m],about:u})}const d=O(t);return i&&Object.entries(d).every(([s,f])=>o.versions?.[s]===f)||await W(n,d),c}async function W(n,t){const r=v(n,j),i=await y(r,"utf8").catch(()=>{});if(i===void 0)return;const o=M(i),e=o.toJS()?.versions;o.set("versions",{...e,...t}),await F(r,o.toString())}
@@ -1,12 +1,12 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{realpathSync as W}from"node:fs";import{readFile as w}from"node:fs/promises";import{builtinModules as J}from"node:module";import{isAbsolute as u,relative as k,sep as x}from"node:path";import{mediaKindOf as v}from"@allyhub/piece";import{parseCsv as j,parseData as B}from"./data.js";import{FONTS_MODULE as p,fontsModule as D}from"./fonts.js";import{SDK as y,currentName as E,packageName as I}from"./scan.js";const f="\0allyhub-blocked:",c="\0allyhub-sdk:",_=`\0${p}`,U=new Set([...J,...J.map(n=>`node:${n}`)]),S=n=>n.replace(/[?#].*$/u,"");export const mediaHref=n=>`media/${n.split("/").map(encodeURIComponent).join("/")}`;const H=n=>`new URL(${JSON.stringify(`../../${mediaHref(n)}`)}, __allyhubHere).href`;export function boundEntry(n,i,o){return[`export * from ${JSON.stringify(n)};`,`import { ${i.factory} as __allyhubBind } from ${JSON.stringify(n)};`,`export const { ${i.names.join(", ")} } = __allyhubBind({ file: ${JSON.stringify(o)} });`,""].join(`
3
- `)}const L=(n,i)=>`${c}${n}\0${i}`;export function allyhubPlugin(n){const{root:i}=n,o=[i];try{const t=W.native(i);t!==i&&o.push(t)}catch{}const b=t=>{for(const r of o){const e=k(r,t);if(!e.startsWith("..")&&!u(e))return e}},N=t=>(b(t)??k(i,t)).split(x).join("/"),h=t=>b(t)!==void 0,$=t=>t.split(x).includes("node_modules");return{name:"allyhub",enforce:"pre",async resolveId(t,r,e){if(t===p)return _;if(t.startsWith(c))return t;if(t.startsWith("\0"))return null;const l=r?S(r):void 0,a=l!==void 0&&u(l)&&h(l)&&!$(l);if(/^(https?:)?\/\//iu.test(t))return`${f}${t}`;const g=E(t);if(g!==t)return this.resolve(g,r,{...e,skipSelf:!1});const d=I(t);if(d===y){if(a&&n.bound?.[t])return L(t,N(l));const s=await this.resolve(t,r,{...e,skipSelf:!0});return s||(n.dependencies.has(y)?`${f}${t}`:n.sdk?.[t]??`${f}${t}`)}const O=n.lent?.[d];if(O!==void 0&&!n.dependencies.has(d))return await this.resolve(t,O,{...e,skipSelf:!0})??`${f}${t}`;if(!a)return null;if(!t.startsWith(".")&&!t.startsWith("/")&&!u(t)&&!U.has(t))return n.dependencies.has(d)?null:`${f}${t}`;const m=await this.resolve(t,r,{...e,skipSelf:!0});if(m&&!m.external){const s=S(m.id);if(u(s)&&!h(s)&&!$(s))return`${f}${t}`}return m},async load(t){if(t===_)return D(i,n.fonts?.()??[]);if(t.startsWith(c)){const[e="",l=""]=t.slice(c.length).split("\0"),a=n.bound?.[e];return a?boundEntry(e,a,l):null}if(t.startsWith(f)){const e=`AllyHub blocked the import of ${t.slice(f.length)}`;return`throw new Error(${JSON.stringify(e)});
2
+ import{realpathSync as W}from"node:fs";import{readFile as O}from"node:fs/promises";import{builtinModules as k}from"node:module";import{isAbsolute as c,relative as J,sep as x}from"node:path";import{mediaKindOf as v}from"@allyhub/piece";import{parseCsv as j,parseData as B}from"./data.js";import{FONTS_MODULE as S,fontsModule as D}from"./fonts.js";import{SDK as b,currentName as I,packageName as E}from"./scan.js";import{partImports as U,withParts as H}from"./sdk-parts.js";const a="\0allyhub-blocked:",y="\0allyhub-sdk:",_=`\0${S}`,L=new Set([...k,...k.map(n=>`node:${n}`)]),g=n=>n.replace(/[?#].*$/u,"");export const mediaHref=n=>`media/${n.split("/").map(encodeURIComponent).join("/")}`;const P=n=>`new URL(${JSON.stringify(`../../${mediaHref(n)}`)}, __allyhubHere).href`;export function boundEntry(n,s,d){return[`export * from ${JSON.stringify(n)};`,`import { ${s.factory} as __allyhubBind } from ${JSON.stringify(n)};`,`export const { ${s.names.join(", ")} } = __allyhubBind({ file: ${JSON.stringify(d)} });`,""].join(`
3
+ `)}const C=(n,s)=>`${y}${n}\0${s}`;export function allyhubPlugin(n){const{root:s}=n,d=[s];try{const t=W.native(s);t!==s&&d.push(t)}catch{}const N=t=>{for(const e of d){const r=J(e,t);if(!r.startsWith("..")&&!c(r))return r}},w=t=>(N(t)??J(s,t)).split(x).join("/"),h=t=>N(t)!==void 0,p=t=>t.split(x).includes("node_modules");return{name:"allyhub",enforce:"pre",async resolveId(t,e,r){if(t===S)return _;if(t.startsWith(y))return t;if(t.startsWith("\0"))return null;const i=e?g(e):void 0,l=i!==void 0&&c(i)&&h(i)&&!p(i);if(/^(https?:)?\/\//iu.test(t))return`${a}${t}`;const u=I(t);if(u!==t)return this.resolve(u,e,{...r,skipSelf:!1});const f=E(t);if(f===b){if(l&&n.bound?.[t])return C(t,w(i));const o=await this.resolve(t,e,{...r,skipSelf:!0});return o||(n.dependencies.has(b)?`${a}${t}`:n.sdk?.[t]??`${a}${t}`)}const m=n.lent?.[f];if(m!==void 0&&!n.dependencies.has(f))return await this.resolve(t,m,{...r,skipSelf:!0})??`${a}${t}`;if(!l)return null;if(!t.startsWith(".")&&!t.startsWith("/")&&!c(t)&&!L.has(t))return n.dependencies.has(f)?null:`${a}${t}`;const $=await this.resolve(t,e,{...r,skipSelf:!0});if($&&!$.external){const o=g($.id);if(c(o)&&!h(o)&&!p(o))return`${a}${t}`}return $},async load(t){if(t===_)return D(s,n.fonts?.()??[]);if(t.startsWith(y)){const[r="",i=""]=t.slice(y.length).split("\0"),l=n.bound?.[r];return l?boundEntry(r,l,i):null}if(t.startsWith(a)){const r=`AllyHub blocked the import of ${t.slice(a.length)}`;return`throw new Error(${JSON.stringify(r)});
4
4
  export default undefined;
5
- `}if(t.startsWith("\0")||/[?#]/u.test(t)||!u(t)||!h(t)||$(t))return null;const r=N(t);if(v(r)){const e=n.media[r];if(!e)return null;const l=n.inNode?JSON.stringify(mediaHref(r)):H(r);return`import { media } from ${JSON.stringify(`${y}/media`)};
5
+ `}if(t.startsWith("\0")||/[?#]/u.test(t)||!c(t)||!h(t)||p(t))return null;const e=w(t);if(v(e)){const r=n.media[e];if(!r)return null;const i=n.inNode?JSON.stringify(mediaHref(e)):P(e);return`import { media } from ${JSON.stringify(`${b}/media`)};
6
6
  const __allyhubHere = import.meta.url;
7
- export default media({ ...${JSON.stringify(e)}, url: ${l} });
8
- `}return/\.csv$/iu.test(r)?`export default ${JSON.stringify(j(await w(t,"utf8")))};
9
- `:/\.ya?ml$/iu.test(r)?`export default ${JSON.stringify(B(r,await w(t,"utf8")))};
10
- `:null},transform(t,r){const e=S(r);return n.stageEntries?.has(e)?{code:`${t}
11
- import ${JSON.stringify(p)};
12
- `,map:null}:null}}}
7
+ export default media({ ...${JSON.stringify(r)}, url: ${i} });
8
+ `}return/\.csv$/iu.test(e)?`export default ${JSON.stringify(j(await O(t,"utf8")))};
9
+ `:/\.ya?ml$/iu.test(e)?`export default ${JSON.stringify(B(e,await O(t,"utf8")))};
10
+ `:null},async transform(t,e){const r=g(e),i=n.parts&&c(r)&&h(r)&&!p(r)?U(r,t,n.parts):[],l=[];for(const f of i){const m=await this.resolve(f.to,e,{skipSelf:!1}).catch(()=>null);m&&!m.id.startsWith(a)&&l.push(f)}const u=l.length>0?H(t,l):t;return n.stageEntries?.has(r)?{code:`${u}
11
+ import ${JSON.stringify(S)};
12
+ `,map:null}:u===t?null:{code:u,map:null}}}}