@diagrammo/dgmo 0.48.2 → 0.50.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 (244) hide show
  1. package/.cursorrules +12 -3
  2. package/.github/copilot-instructions.md +12 -3
  3. package/.windsurfrules +12 -3
  4. package/SKILL.md +12 -3
  5. package/dist/advanced.d.ts +851 -1
  6. package/dist/advanced.js +601 -177
  7. package/dist/auto.css +63 -0
  8. package/dist/auto.js +220 -110
  9. package/dist/auto.mjs +45920 -33167
  10. package/dist/block.css +63 -0
  11. package/dist/block.d.ts +13 -5
  12. package/dist/block.js +239 -62
  13. package/dist/{charts-d3-QOZHKTCT.js → charts-d3-DKUD7MQE.js} +9 -8
  14. package/dist/{chunk-3MQQNXPD.js → chunk-2C56LEML.js} +3 -3
  15. package/dist/{chunk-L66GEFB6.js → chunk-2JJ2KNPI.js} +4 -4
  16. package/dist/{chunk-6SM5NJQH.js → chunk-2QYTMIRR.js} +4 -4
  17. package/dist/{chunk-RJE5JTVK.js → chunk-3G6TMNVF.js} +7 -7
  18. package/dist/{chunk-MO5YHHMQ.js → chunk-3LKM6FMW.js} +2 -2
  19. package/dist/{chunk-76OWZ3BA.js → chunk-3P2DKJCG.js} +2 -2
  20. package/dist/chunk-3TDRHT4J.js +1043 -0
  21. package/dist/chunk-3XPUDB7B.js +420 -0
  22. package/dist/{chunk-2LACINWN.js → chunk-3ZPC476N.js} +7 -7
  23. package/dist/{chunk-G2H74XJZ.js → chunk-4BMJQFNK.js} +8 -8
  24. package/dist/{chunk-THXCFRTU.js → chunk-4S723I74.js} +9 -9
  25. package/dist/{chunk-6NYWYNBI.js → chunk-4XK3FLFB.js} +3 -3
  26. package/dist/chunk-5JSWBPZZ.js +607 -0
  27. package/dist/{chunk-WCT3NYCV.js → chunk-5LWQH6QV.js} +1 -1
  28. package/dist/{chunk-7DTWEFUE.js → chunk-5Z736BSU.js} +8 -8
  29. package/dist/{chunk-ERLBPDGU.js → chunk-6BFZKBGD.js} +2 -2
  30. package/dist/{chunk-6HO5ZTXK.js → chunk-6IAA2QQ2.js} +2 -2
  31. package/dist/{chunk-H6PI3KJT.js → chunk-6IUAK7RZ.js} +2 -2
  32. package/dist/{chunk-RTLBSQ3G.js → chunk-6M5PJFQG.js} +3 -3
  33. package/dist/{chunk-Z5CGSFJB.js → chunk-6X4AKWLF.js} +4 -4
  34. package/dist/{chunk-OJR3MQYV.js → chunk-6ZT4U37Q.js} +291 -52
  35. package/dist/{chunk-5QXL4NYS.js → chunk-7G2ER4CY.js} +10 -5
  36. package/dist/chunk-7PQYTZMA.js +681 -0
  37. package/dist/{chunk-OURHMODR.js → chunk-7RB5Q6MB.js} +11 -11
  38. package/dist/{chunk-YAA6IID3.js → chunk-7UEMZREK.js} +2 -2
  39. package/dist/{chunk-AN2MOO5T.js → chunk-A3WQVFBS.js} +3 -3
  40. package/dist/{chunk-VOKGH627.js → chunk-AHGF2YYA.js} +13 -3
  41. package/dist/{chunk-CI2G3OEB.js → chunk-ASS5YYIZ.js} +12 -12
  42. package/dist/{chunk-TYS6CSS5.js → chunk-BCYVE3N5.js} +2 -2
  43. package/dist/chunk-BDXC7MDK.js +2395 -0
  44. package/dist/chunk-BTUTZMPT.js +482 -0
  45. package/dist/{chunk-YGJTDXVR.js → chunk-C4GQDB5L.js} +2 -2
  46. package/dist/{chunk-Y2ZE3MSG.js → chunk-C63UWAKM.js} +2 -2
  47. package/dist/{chunk-725LDASD.js → chunk-CLD2OKV7.js} +2 -2
  48. package/dist/{chunk-WBRZJOEC.js → chunk-CMCR5WBW.js} +3 -3
  49. package/dist/{chunk-IZMRON6C.js → chunk-CVV36CWI.js} +2 -2
  50. package/dist/chunk-DMJJ3CEQ.js +254 -0
  51. package/dist/{chunk-MZSBFAPJ.js → chunk-EJTKV7CY.js} +9 -9
  52. package/dist/{chunk-FITOLXSX.js → chunk-EOFPYPAU.js} +26 -2
  53. package/dist/{chunk-X5LCYCL5.js → chunk-ER5SCQWQ.js} +5 -5
  54. package/dist/{chunk-4OHACBGX.js → chunk-F2L5GCQ4.js} +2 -2
  55. package/dist/{chunk-FCIIHT24.js → chunk-F5UDBSJY.js} +7 -7
  56. package/dist/{chunk-3JLKYGBQ.js → chunk-F7BFXWNQ.js} +2 -2
  57. package/dist/{chunk-FANX6UJR.js → chunk-FAL7NOK3.js} +11 -11
  58. package/dist/{chunk-BUPDIHML.js → chunk-FB2WHOEQ.js} +4 -4
  59. package/dist/chunk-FL4IOQ37.js +379 -0
  60. package/dist/{chunk-LIOHW36Z.js → chunk-GBE54KY6.js} +6 -5
  61. package/dist/{chunk-RUNNI6VE.js → chunk-GL5UZ6NY.js} +3 -3
  62. package/dist/{chunk-4GRI7MEB.js → chunk-GPWHQ5FJ.js} +6 -6
  63. package/dist/chunk-GROQGHCT.js +960 -0
  64. package/dist/{chunk-SGZYXELT.js → chunk-H73FP42Q.js} +9 -6
  65. package/dist/{chunk-PBAHEPLQ.js → chunk-HGN652MU.js} +7 -6
  66. package/dist/{chunk-3SMGIJDD.js → chunk-HHXOONLX.js} +13 -1
  67. package/dist/{chunk-QOOUC2J5.js → chunk-HQCHYB5F.js} +2 -2
  68. package/dist/{chunk-AELOBFW5.js → chunk-I4IFRCUB.js} +3 -3
  69. package/dist/{chunk-GMR5MFHJ.js → chunk-I7F2A35O.js} +2 -2
  70. package/dist/{chunk-T2OE3YQB.js → chunk-IA3FJYWR.js} +3 -3
  71. package/dist/chunk-IAEC4KLA.js +492 -0
  72. package/dist/chunk-IVKC4GID.js +32 -0
  73. package/dist/{chunk-HSH73DP6.js → chunk-JFYIP7XU.js} +139 -39
  74. package/dist/{chunk-CKNVO24D.js → chunk-JZNMXEIV.js} +2 -2
  75. package/dist/chunk-KJXIHOVL.js +940 -0
  76. package/dist/chunk-L2ZTFHAY.js +331 -0
  77. package/dist/{chunk-B7JUCQUA.js → chunk-M5RXSRO2.js} +4 -4
  78. package/dist/{chunk-ULOEATBZ.js → chunk-NFFIKVNO.js} +106 -29
  79. package/dist/{chunk-PZMETGLY.js → chunk-NISQC5KW.js} +358 -122
  80. package/dist/chunk-O4VUFXIH.js +574 -0
  81. package/dist/{chunk-RVMRZAPB.js → chunk-O76UD6VJ.js} +3 -3
  82. package/dist/{chunk-JM4LEPY3.js → chunk-O7NUCTFU.js} +2 -2
  83. package/dist/{chunk-JED6ZDEE.js → chunk-O7WP4ZD4.js} +2 -2
  84. package/dist/{chunk-EVCVDTXE.js → chunk-OHQEMBLI.js} +3 -3
  85. package/dist/{chunk-ZBWMSD5N.js → chunk-ONA5KPV3.js} +4 -4
  86. package/dist/{chunk-Y3J7VR52.js → chunk-OTAL43EH.js} +34 -2
  87. package/dist/{chunk-WCSOJFU3.js → chunk-OTP5KVLO.js} +3 -3
  88. package/dist/{chunk-RYEGFMUO.js → chunk-PGEGPSCZ.js} +2 -2
  89. package/dist/{chunk-ZO27FGJS.js → chunk-PH5X4GIP.js} +2 -2
  90. package/dist/{chunk-ZJEL4H2R.js → chunk-PJUGRJHJ.js} +9 -9
  91. package/dist/{chunk-ZGR7ULFJ.js → chunk-PLZI6KPM.js} +26 -14
  92. package/dist/{chunk-3R5POCTZ.js → chunk-PMN3Q7RJ.js} +6 -6
  93. package/dist/{chunk-YGJZWZTY.js → chunk-PZFVK3IH.js} +2 -2
  94. package/dist/chunk-Q4V4XQWV.js +158 -0
  95. package/dist/chunk-QDFNCATJ.js +325 -0
  96. package/dist/{chunk-QEBUY5NY.js → chunk-QFQ35BTO.js} +4 -4
  97. package/dist/chunk-QQJUTGQH.js +135 -0
  98. package/dist/{chunk-PWIHZ6NJ.js → chunk-QUJGFNFN.js} +4 -4
  99. package/dist/{chunk-J5FIXQRT.js → chunk-R56LASIN.js} +4 -4
  100. package/dist/{chunk-SRTU6HMQ.js → chunk-RV26LTUU.js} +8 -8
  101. package/dist/chunk-RV6A2B5S.js +354 -0
  102. package/dist/{chunk-EB6FPQUP.js → chunk-S5GRONXL.js} +3 -3
  103. package/dist/{chunk-5MLYVTYM.js → chunk-SCHXJTZL.js} +2 -2
  104. package/dist/{chunk-T3UBLACL.js → chunk-SCQ5VPUF.js} +19 -5
  105. package/dist/{chunk-PBHE5UG6.js → chunk-SGFZZAUO.js} +46 -12
  106. package/dist/{chunk-BUVJFRPY.js → chunk-SU2VBK4L.js} +4 -4
  107. package/dist/{chunk-SML67VPV.js → chunk-T4BRO3Z6.js} +3 -3
  108. package/dist/{chunk-NURGB5Z4.js → chunk-TSA237IM.js} +2 -2
  109. package/dist/chunk-TWCLK2GA.js +273 -0
  110. package/dist/{chunk-IJZFN3HM.js → chunk-TWQUYVP3.js} +4 -4
  111. package/dist/{chunk-DKEPS5LH.js → chunk-U2HGPLZS.js} +36 -2
  112. package/dist/{chunk-B65G5DNL.js → chunk-URSQLCTR.js} +3 -3
  113. package/dist/{chunk-ILKORZ3H.js → chunk-UUS2GIJZ.js} +7 -7
  114. package/dist/{chunk-XAKEUMEJ.js → chunk-UXOSVCLJ.js} +4 -4
  115. package/dist/{chunk-QLCCJEJI.js → chunk-WCUHAQKB.js} +2 -2
  116. package/dist/{chunk-WVAJFAIA.js → chunk-WWN566I7.js} +257 -101
  117. package/dist/{chunk-IPWPWM6R.js → chunk-X2NMFTG3.js} +111 -10
  118. package/dist/{chunk-UWN33VNX.js → chunk-XCLHOZAM.js} +10 -10
  119. package/dist/{chunk-P235SVAH.js → chunk-XDXNDSKO.js} +2 -2
  120. package/dist/chunk-XHVV4NVW.js +51 -0
  121. package/dist/{chunk-33LCUH4H.js → chunk-XMVQ5F4M.js} +4 -4
  122. package/dist/{chunk-MITI6NOL.js → chunk-YA7D2N2O.js} +11 -11
  123. package/dist/{chunk-7JEGTRLD.js → chunk-YB3FW24O.js} +3 -3
  124. package/dist/chunk-YNRDWYZP.js +295 -0
  125. package/dist/{chunk-44CM72SQ.js → chunk-YZLMKW4T.js} +3 -3
  126. package/dist/chunk-Z6XJQ6KO.js +452 -0
  127. package/dist/cli.cjs +179 -133
  128. package/dist/clock.d.ts +10 -0
  129. package/dist/clock.js +235 -0
  130. package/dist/countdown.d.ts +12 -0
  131. package/dist/countdown.js +450 -0
  132. package/dist/dgmo-router-QOMFCOOV.js +84 -0
  133. package/dist/dimensions-P5FSX2QN.js +22 -0
  134. package/dist/editor.js +43 -2
  135. package/dist/element.js +220 -110
  136. package/dist/element.mjs +45920 -33167
  137. package/dist/{flowchart-parser-ZNSKIBVR.js → flowchart-parser-OE4WHLTF.js} +4 -4
  138. package/dist/{flowchart-renderer-SNDSII4D.js → flowchart-renderer-GPCSMTOR.js} +8 -8
  139. package/dist/highlight.d.ts +17 -1
  140. package/dist/highlight.js +163 -6
  141. package/dist/index.d.ts +5 -1
  142. package/dist/index.js +199 -233
  143. package/dist/{layout-HRBZPFCN.js → layout-34CLNICW.js} +5 -5
  144. package/dist/layout-46366KBT.js +10 -0
  145. package/dist/{layout-HWDSRX5E.js → layout-5BG6DFCU.js} +6 -6
  146. package/dist/layout-6RDJHS6E.js +9 -0
  147. package/dist/{layout-7QXCNOVS.js → layout-7H4H46CS.js} +3 -3
  148. package/dist/{layout-46N4JJYK.js → layout-7SKMFYHL.js} +5 -5
  149. package/dist/{layout-EE6GE46Y.js → layout-DC4TVXER.js} +5 -5
  150. package/dist/layout-FGQWRYYW.js +14 -0
  151. package/dist/{layout-S2QBYSK2.js → layout-NXG63LWH.js} +3 -3
  152. package/dist/{layout-N76NR4ZO.js → layout-PUQCB6AN.js} +7 -7
  153. package/dist/{layout-HYZPWAK5.js → layout-QNUQLEHU.js} +3 -3
  154. package/dist/{layout-UM5F4DJB.js → layout-T3OZU5QW.js} +5 -5
  155. package/dist/layout-TJIWF7EM.js +14 -0
  156. package/dist/layout-VYELEAW7.js +14 -0
  157. package/dist/{layout-5RA6QWR6.js → layout-WZHNDT2O.js} +6 -6
  158. package/dist/{layout-search-OYV77HHS.js → layout-search-QS44PI5R.js} +6 -6
  159. package/dist/{parser-6BTRLKRZ.js → parser-45DENHFZ.js} +4 -4
  160. package/dist/{parser-TFZFBVWN.js → parser-4AI5ZN5F.js} +3 -3
  161. package/dist/{parser-XDVELHRK.js → parser-4P36TUVD.js} +4 -4
  162. package/dist/{parser-ZSDPZYQP.js → parser-5AURY4A6.js} +4 -4
  163. package/dist/{parser-N5O4IHUN.js → parser-A2BEFMGK.js} +4 -4
  164. package/dist/parser-B5FVS7O6.js +11 -0
  165. package/dist/{parser-NGU3ETO6.js → parser-C2HF2C2E.js} +4 -4
  166. package/dist/parser-CSFUN3CT.js +14 -0
  167. package/dist/{parser-TRTHDFPP.js → parser-D3QT6GWN.js} +5 -5
  168. package/dist/parser-D5637H5H.js +15 -0
  169. package/dist/{parser-VQP2UJ6W.js → parser-DFFEDKHH.js} +3 -3
  170. package/dist/parser-DOKMZXVZ.js +13 -0
  171. package/dist/parser-FMPCVFRK.js +15 -0
  172. package/dist/{parser-Y6WTBU76.js → parser-HYRTF3DO.js} +3 -3
  173. package/dist/{parser-I6KXEYFK.js → parser-I2UIJKVQ.js} +4 -4
  174. package/dist/{parser-O5J4VBII.js → parser-IBWNAPY4.js} +3 -3
  175. package/dist/{parser-PQ3POX45.js → parser-KUQWRPIT.js} +4 -4
  176. package/dist/{parser-2MFP2H2E.js → parser-LWKKBNSA.js} +3 -3
  177. package/dist/{parser-OV7NOBW6.js → parser-O4QFCUW7.js} +5 -5
  178. package/dist/{parser-IXSZZQHY.js → parser-PGMQDD4G.js} +4 -4
  179. package/dist/{parser-3STE62GB.js → parser-Q4QKCIWQ.js} +4 -4
  180. package/dist/parser-QTOB4KFL.js +14 -0
  181. package/dist/{parser-2EWECDSA.js → parser-QYYM4QVW.js} +4 -4
  182. package/dist/{parser-4OGOBJJ4.js → parser-RZMQP7MM.js} +4 -4
  183. package/dist/parser-RZPVAQVX.js +11 -0
  184. package/dist/parser-SOUJOEYI.js +13 -0
  185. package/dist/{parser-4FL2CMDG.js → parser-UQE5OWZI.js} +5 -5
  186. package/dist/{parser-NRAI6O25.js → parser-WAV5JRPT.js} +4 -4
  187. package/dist/{parser-KNSQSKQO.js → parser-YLKYBRIT.js} +5 -5
  188. package/dist/{parser-XKRP7QKP.js → parser-YS7TOS2K.js} +3 -3
  189. package/dist/{parser-AQETEVRW.js → parser-ZSOWUBML.js} +5 -5
  190. package/dist/{parser-CFZD5IBL.js → parser-ZTBATMLX.js} +4 -4
  191. package/dist/{renderer-VACVQYML.js → renderer-35HSIDMZ.js} +8 -8
  192. package/dist/{renderer-5MYBMBYO.js → renderer-4ITCHBT7.js} +5 -5
  193. package/dist/{renderer-CLJHQPBJ.js → renderer-67NPCBIS.js} +11 -11
  194. package/dist/{renderer-5NDVNDAZ.js → renderer-6GHYK7DX.js} +9 -9
  195. package/dist/{renderer-Z7I3W2PP.js → renderer-6RNGHC5Z.js} +8 -8
  196. package/dist/renderer-72LGR2YF.js +14 -0
  197. package/dist/{renderer-KQB7UGDS.js → renderer-7RH2SI3B.js} +3 -3
  198. package/dist/renderer-7SWMIFMM.js +21 -0
  199. package/dist/renderer-BBCEFILK.js +24 -0
  200. package/dist/{renderer-JGBKUCZD.js → renderer-BSW7SRIZ.js} +4 -4
  201. package/dist/{renderer-BYCNMBF7.js → renderer-BY533UWU.js} +11 -11
  202. package/dist/{renderer-6W5462RB.js → renderer-BZSBPTZJ.js} +9 -9
  203. package/dist/{renderer-7MVLWWQD.js → renderer-CXUC4KAD.js} +9 -9
  204. package/dist/{renderer-QIWVHWZO.js → renderer-DAXMXIKD.js} +3 -3
  205. package/dist/renderer-FZUKFUNZ.js +23 -0
  206. package/dist/renderer-G2NLGNKF.js +17 -0
  207. package/dist/renderer-GO3FE3RA.js +24 -0
  208. package/dist/{renderer-ZGNTUWC4.js → renderer-HPGR6USK.js} +8 -8
  209. package/dist/{renderer-UV6MI64M.js → renderer-HVCU2C3Z.js} +3 -3
  210. package/dist/renderer-ICJN2SA2.js +24 -0
  211. package/dist/{renderer-AWWAF6XD.js → renderer-INEXO7B6.js} +10 -10
  212. package/dist/{renderer-YY2OSF6E.js → renderer-KDYCFRBX.js} +8 -8
  213. package/dist/renderer-KY4KQBTF.js +19 -0
  214. package/dist/{renderer-B2OMQIQG.js → renderer-LBN65V45.js} +13 -13
  215. package/dist/{renderer-N43WR5GV.js → renderer-MGBWOCXG.js} +10 -10
  216. package/dist/{renderer-PGX2TKVS.js → renderer-O4JKUGKO.js} +8 -8
  217. package/dist/{renderer-4JHRUBE6.js → renderer-OOGFODWP.js} +10 -10
  218. package/dist/{renderer-6EEZHMH4.js → renderer-Q6ZKPLS6.js} +9 -9
  219. package/dist/{renderer-RPOA5YPZ.js → renderer-SZQ326M5.js} +12 -12
  220. package/dist/{renderer-ZRNG54CW.js → renderer-TKG6LS4U.js} +11 -11
  221. package/dist/{renderer-W4M6QLIJ.js → renderer-TQMZGDAX.js} +13 -13
  222. package/dist/renderer-radial-JELMHQ24.js +21 -0
  223. package/dist/{resolver-NOAA7ID7.js → resolver-FHBCO3PL.js} +3 -3
  224. package/dist/{state-parser-Z2V23ATR.js → state-parser-3REXRK3R.js} +4 -4
  225. package/dist/{state-renderer-B4DQBM6M.js → state-renderer-XYLNRWXR.js} +8 -8
  226. package/docs/ai-integration.md +12 -3
  227. package/docs/language-reference.md +429 -24
  228. package/gallery/fixtures/body.dgmo +17 -0
  229. package/gallery/fixtures/bracket.dgmo +30 -0
  230. package/gallery/fixtures/clock.dgmo +8 -0
  231. package/gallery/fixtures/countdown.dgmo +3 -0
  232. package/gallery/fixtures/family.dgmo +23 -0
  233. package/gallery/fixtures/goal.dgmo +4 -0
  234. package/gallery/fixtures/sketch.dgmo +22 -0
  235. package/package.json +12 -4
  236. package/dist/chunk-ODZVHU3R.js +0 -153
  237. package/dist/dgmo-router-X35VLZLM.js +0 -73
  238. package/dist/dimensions-J3FHIMJ6.js +0 -22
  239. package/dist/layout-5T6RH5M6.js +0 -14
  240. package/dist/layout-G23F7LDH.js +0 -9
  241. package/dist/layout-OB3RI63S.js +0 -14
  242. package/dist/parser-JAL2HD4I.js +0 -13
  243. package/dist/renderer-SMIBCRVB.js +0 -24
  244. package/dist/renderer-radial-C32GPJQ7.js +0 -21
package/dist/advanced.js CHANGED
@@ -1,85 +1,146 @@
1
+ import {
2
+ renderCountdown,
3
+ renderCountdownForExport
4
+ } from "./chunk-GROQGHCT.js";
5
+ import {
6
+ formatTime,
7
+ handAngles,
8
+ renderClock,
9
+ renderClockForExport,
10
+ sunLine,
11
+ workStatus,
12
+ zoneParts
13
+ } from "./chunk-7PQYTZMA.js";
14
+ import {
15
+ layoutBracket,
16
+ renderBracket,
17
+ renderBracketForExport
18
+ } from "./chunk-KJXIHOVL.js";
19
+ import {
20
+ renderRaci,
21
+ renderRaciForExport
22
+ } from "./chunk-H73FP42Q.js";
23
+ import {
24
+ applyCollapseProjection,
25
+ applyGroupOrdering,
26
+ applyPositionOverrides,
27
+ buildNoteMessageMap,
28
+ buildRenderSequence,
29
+ computeActivations,
30
+ groupMessagesBySection,
31
+ renderSequenceDiagram
32
+ } from "./chunk-RV26LTUU.js";
33
+ import {
34
+ mapContentAspect,
35
+ mapExportDimensions
36
+ } from "./chunk-JZNMXEIV.js";
37
+ import {
38
+ loadMapData
39
+ } from "./chunk-6MTWIQVO.js";
40
+ import {
41
+ renderPyramid,
42
+ renderPyramidForExport
43
+ } from "./chunk-O7NUCTFU.js";
44
+ import {
45
+ renderRing,
46
+ renderRingForExport
47
+ } from "./chunk-PZFVK3IH.js";
1
48
  import {
2
49
  layoutTreemapRadial,
3
50
  renderTreemapRadial,
4
51
  renderTreemapRadialForExport
5
- } from "./chunk-ULOEATBZ.js";
52
+ } from "./chunk-NFFIKVNO.js";
6
53
  import {
7
54
  layoutTreemap,
8
55
  renderTreemap,
9
56
  renderTreemapForExport
10
- } from "./chunk-FCIIHT24.js";
11
- import "./chunk-IZMRON6C.js";
57
+ } from "./chunk-F5UDBSJY.js";
12
58
  import {
13
59
  authoredCollapsedIds,
14
60
  layoutBlock,
15
61
  renderBlock,
16
62
  renderBlockForExport
17
- } from "./chunk-RJE5JTVK.js";
63
+ } from "./chunk-3G6TMNVF.js";
18
64
  import {
19
- renderRaci,
20
- renderRaciForExport
21
- } from "./chunk-SGZYXELT.js";
65
+ renderGoal,
66
+ renderGoalForExport
67
+ } from "./chunk-RV6A2B5S.js";
68
+ import "./chunk-CVV36CWI.js";
22
69
  import {
23
- applyCollapseProjection,
24
- applyGroupOrdering,
25
- applyPositionOverrides,
26
- buildNoteMessageMap,
27
- buildRenderSequence,
28
- computeActivations,
29
- groupMessagesBySection,
30
- renderSequenceDiagram
31
- } from "./chunk-SRTU6HMQ.js";
70
+ renderState,
71
+ renderStateForExport
72
+ } from "./chunk-ONA5KPV3.js";
73
+ import {
74
+ collapseStateGroups
75
+ } from "./chunk-SQ7IY53Q.js";
76
+ import {
77
+ computeRadarLayout,
78
+ getRadarGeometry,
79
+ renderQuadrantFocus,
80
+ renderQuadrantFocusForExport,
81
+ renderTechRadar,
82
+ renderTechRadarForExport
83
+ } from "./chunk-GPWHQ5FJ.js";
32
84
  import {
33
85
  renderJourneyMap,
34
86
  renderJourneyMapForExport
35
- } from "./chunk-ZJEL4H2R.js";
87
+ } from "./chunk-PJUGRJHJ.js";
88
+ import {
89
+ layoutJourneyMap
90
+ } from "./chunk-F7BFXWNQ.js";
36
91
  import {
37
92
  computeCycleLayout,
38
93
  renderCycle,
39
94
  renderCycleForExport
40
- } from "./chunk-3R5POCTZ.js";
95
+ } from "./chunk-PMN3Q7RJ.js";
41
96
  import {
42
97
  resolveMap
43
- } from "./chunk-FITOLXSX.js";
98
+ } from "./chunk-EOFPYPAU.js";
44
99
  import {
45
100
  renderMap,
46
101
  renderMapForExport
47
- } from "./chunk-Z5CGSFJB.js";
48
- import {
49
- mapContentAspect,
50
- mapExportDimensions
51
- } from "./chunk-CKNVO24D.js";
102
+ } from "./chunk-6X4AKWLF.js";
52
103
  import {
53
104
  albersSkewFallback,
54
105
  layoutMap,
55
106
  mapBackgroundColor,
56
107
  mapNeutralLandColor
57
- } from "./chunk-IPWPWM6R.js";
108
+ } from "./chunk-X2NMFTG3.js";
58
109
  import {
59
110
  decodeFeatures,
60
111
  regionAt
61
112
  } from "./chunk-I5IGB56C.js";
62
113
  import {
63
- loadMapData
64
- } from "./chunk-6MTWIQVO.js";
114
+ collectDiagramRoles,
115
+ computeInfraLegendGroups,
116
+ inferRoles,
117
+ parseAndLayoutInfra,
118
+ renderInfra
119
+ } from "./chunk-SGFZZAUO.js";
65
120
  import {
66
- renderPyramid,
67
- renderPyramidForExport
68
- } from "./chunk-JM4LEPY3.js";
121
+ computeInfra
122
+ } from "./chunk-A44USUV7.js";
69
123
  import {
70
- renderRing,
71
- renderRingForExport
72
- } from "./chunk-YGJZWZTY.js";
124
+ layoutInfra
125
+ } from "./chunk-C63UWAKM.js";
73
126
  import {
74
127
  measurePertAnalysisBlock,
75
128
  renderPert,
76
129
  renderPertAnalysisBlock,
77
130
  renderPertForExport
78
- } from "./chunk-CI2G3OEB.js";
131
+ } from "./chunk-ASS5YYIZ.js";
132
+ import {
133
+ analyzePert,
134
+ buildSimulationContext,
135
+ mulberry32,
136
+ sampleBetaPert,
137
+ simulateCanonical,
138
+ simulateFast
139
+ } from "./chunk-NX4EQS3U.js";
79
140
  import {
80
141
  layoutPert,
81
142
  relayoutPert
82
- } from "./chunk-4OHACBGX.js";
143
+ } from "./chunk-F2L5GCQ4.js";
83
144
  import {
84
145
  calculateSchedule,
85
146
  collectTasks,
@@ -88,25 +149,20 @@ import {
88
149
  import {
89
150
  buildTagLaneRowList,
90
151
  renderGantt
91
- } from "./chunk-G2H74XJZ.js";
152
+ } from "./chunk-4BMJQFNK.js";
92
153
  import {
93
- renderState,
94
- renderStateForExport
95
- } from "./chunk-ZBWMSD5N.js";
154
+ collapseMindmapTree
155
+ } from "./chunk-UZ7EZW3B.js";
96
156
  import {
97
- collapseStateGroups
98
- } from "./chunk-SQ7IY53Q.js";
157
+ renderMindmap,
158
+ renderMindmapForExport
159
+ } from "./chunk-4S723I74.js";
99
160
  import {
100
- computeRadarLayout,
101
- getRadarGeometry,
102
- renderQuadrantFocus,
103
- renderQuadrantFocusForExport,
104
- renderTechRadar,
105
- renderTechRadarForExport
106
- } from "./chunk-4GRI7MEB.js";
161
+ layoutWireframe
162
+ } from "./chunk-6IUAK7RZ.js";
107
163
  import {
108
- layoutJourneyMap
109
- } from "./chunk-3JLKYGBQ.js";
164
+ renderWireframe
165
+ } from "./chunk-PH5X4GIP.js";
110
166
  import {
111
167
  renderC4ComponentsForExport,
112
168
  renderC4Containers,
@@ -115,115 +171,111 @@ import {
115
171
  renderC4ContextForExport,
116
172
  renderC4Deployment,
117
173
  renderC4DeploymentForExport
118
- } from "./chunk-ILKORZ3H.js";
174
+ } from "./chunk-UUS2GIJZ.js";
119
175
  import {
120
176
  layoutC4Components,
121
177
  layoutC4Containers,
122
178
  layoutC4Context,
123
179
  layoutC4Deployment,
124
180
  rollUpContextRelationships
125
- } from "./chunk-QEBUY5NY.js";
181
+ } from "./chunk-QFQ35BTO.js";
126
182
  import {
127
183
  renderFlowchart,
128
184
  renderFlowchartForExport
129
- } from "./chunk-B7JUCQUA.js";
185
+ } from "./chunk-M5RXSRO2.js";
130
186
  import "./chunk-PDKUANDZ.js";
131
187
  import {
132
188
  layoutGraph
133
- } from "./chunk-T3UBLACL.js";
134
- import {
135
- collectDiagramRoles,
136
- computeInfraLegendGroups,
137
- inferRoles,
138
- parseAndLayoutInfra,
139
- renderInfra
140
- } from "./chunk-PBHE5UG6.js";
141
- import {
142
- computeInfra
143
- } from "./chunk-A44USUV7.js";
144
- import {
145
- layoutInfra
146
- } from "./chunk-Y2ZE3MSG.js";
189
+ } from "./chunk-SCQ5VPUF.js";
147
190
  import {
148
- analyzePert,
149
- buildSimulationContext,
150
- mulberry32,
151
- sampleBetaPert,
152
- simulateCanonical,
153
- simulateFast
154
- } from "./chunk-NX4EQS3U.js";
191
+ renderBoxesAndLines,
192
+ renderBoxesAndLinesForExport
193
+ } from "./chunk-3ZPC476N.js";
155
194
  import {
156
195
  layoutSwimlane
157
- } from "./chunk-725LDASD.js";
196
+ } from "./chunk-CLD2OKV7.js";
197
+ import "./chunk-C4GQDB5L.js";
198
+ import {
199
+ layoutBoxesAndLines
200
+ } from "./chunk-TWQUYVP3.js";
158
201
  import {
159
202
  renderSwimlaneForExport
160
- } from "./chunk-X5LCYCL5.js";
203
+ } from "./chunk-ER5SCQWQ.js";
161
204
  import "./chunk-LP7EC4MI.js";
162
205
  import {
163
- collapseMindmapTree
164
- } from "./chunk-UZ7EZW3B.js";
206
+ layoutFamily
207
+ } from "./chunk-IAEC4KLA.js";
165
208
  import {
166
- renderMindmap,
167
- renderMindmapForExport
168
- } from "./chunk-THXCFRTU.js";
209
+ renderFamily,
210
+ renderFamilyForExport
211
+ } from "./chunk-TWCLK2GA.js";
212
+ import "./chunk-IVKC4GID.js";
169
213
  import {
170
214
  layoutMindmap
171
- } from "./chunk-T2OE3YQB.js";
172
- import {
173
- layoutWireframe
174
- } from "./chunk-H6PI3KJT.js";
175
- import {
176
- renderWireframe
177
- } from "./chunk-ZO27FGJS.js";
215
+ } from "./chunk-IA3FJYWR.js";
178
216
  import {
179
217
  renderSitemap,
180
218
  renderSitemapForExport
181
- } from "./chunk-OURHMODR.js";
219
+ } from "./chunk-7RB5Q6MB.js";
182
220
  import {
183
221
  computeCardArchive,
184
222
  computeCardMove,
185
223
  isArchiveColumn,
186
224
  renderKanban,
187
225
  renderKanbanForExport
188
- } from "./chunk-MZSBFAPJ.js";
226
+ } from "./chunk-EJTKV7CY.js";
189
227
  import {
190
228
  renderClassDiagram,
191
229
  renderClassDiagramForExport
192
- } from "./chunk-7DTWEFUE.js";
230
+ } from "./chunk-5Z736BSU.js";
193
231
  import {
194
232
  layoutClassDiagram
195
- } from "./chunk-WBRZJOEC.js";
233
+ } from "./chunk-CMCR5WBW.js";
196
234
  import {
197
235
  renderERDiagram,
198
236
  renderERDiagramForExport
199
- } from "./chunk-MITI6NOL.js";
200
- import {
201
- layoutERDiagram
202
- } from "./chunk-6NYWYNBI.js";
203
- import {
204
- renderBoxesAndLines,
205
- renderBoxesAndLinesForExport
206
- } from "./chunk-2LACINWN.js";
237
+ } from "./chunk-YA7D2N2O.js";
207
238
  import "./chunk-JEUJOX5X.js";
208
- import "./chunk-YGJTDXVR.js";
209
239
  import {
210
- layoutBoxesAndLines
211
- } from "./chunk-IJZFN3HM.js";
212
- import "./chunk-JED6ZDEE.js";
240
+ layoutERDiagram
241
+ } from "./chunk-4XK3FLFB.js";
242
+ import "./chunk-O7WP4ZD4.js";
213
243
  import "./chunk-6EK55ART.js";
214
- import "./chunk-TYS6CSS5.js";
244
+ import "./chunk-BCYVE3N5.js";
215
245
  import "./chunk-5DH3KYFH.js";
246
+ import {
247
+ SKETCH_FOOT_H,
248
+ SKETCH_FOOT_W,
249
+ SKETCH_GEOMETRY,
250
+ SKETCH_HALF_SLOT_X,
251
+ SKETCH_HALF_SLOT_Y,
252
+ SKETCH_SEP,
253
+ SKETCH_SLOT_X,
254
+ SKETCH_SLOT_Y,
255
+ collapseSketch,
256
+ layoutSketch,
257
+ sketchSlotToPx
258
+ } from "./chunk-Z6XJQ6KO.js";
259
+ import {
260
+ renderSketch,
261
+ renderSketchForExport,
262
+ sketchEdgeGeometry
263
+ } from "./chunk-3TDRHT4J.js";
216
264
  import {
217
265
  clearEventLineMuted,
218
266
  focusEventLine,
219
267
  renderEventLine,
220
268
  renderEventLineForExport
221
- } from "./chunk-ZGR7ULFJ.js";
269
+ } from "./chunk-PLZI6KPM.js";
222
270
  import {
223
271
  parseInlineMarkdown,
224
272
  truncateBareUrl
225
273
  } from "./chunk-3HDBAXF5.js";
226
274
  import "./chunk-BMR4CIEO.js";
275
+ import {
276
+ renderBody,
277
+ renderBodyForExport
278
+ } from "./chunk-QDFNCATJ.js";
227
279
  import {
228
280
  renderVersionControl,
229
281
  renderVersionControlForExport
@@ -235,16 +287,16 @@ import {
235
287
  import {
236
288
  renderOrg,
237
289
  renderOrgForExport
238
- } from "./chunk-FANX6UJR.js";
290
+ } from "./chunk-FAL7NOK3.js";
239
291
  import "./chunk-JTSMEYIZ.js";
240
- import "./chunk-VOKGH627.js";
292
+ import "./chunk-AHGF2YYA.js";
241
293
  import "./chunk-3CIOJ5YJ.js";
242
294
  import {
243
295
  layoutOrg
244
- } from "./chunk-J5FIXQRT.js";
296
+ } from "./chunk-R56LASIN.js";
245
297
  import {
246
298
  layoutSitemap
247
- } from "./chunk-6SM5NJQH.js";
299
+ } from "./chunk-2QYTMIRR.js";
248
300
  import {
249
301
  collapseSitemapTree
250
302
  } from "./chunk-UNCCZ3NU.js";
@@ -255,7 +307,7 @@ import {
255
307
  searchMapLocations,
256
308
  themes
257
309
  } from "./chunk-SQAG3UXH.js";
258
- import "./chunk-3SMGIJDD.js";
310
+ import "./chunk-HHXOONLX.js";
259
311
  import {
260
312
  decodeDiagramUrl,
261
313
  decodeViewState,
@@ -269,38 +321,20 @@ import {
269
321
  renderSlopeChart,
270
322
  renderVenn,
271
323
  renderWordCloud
272
- } from "./chunk-PZMETGLY.js";
273
- import "./chunk-PBAHEPLQ.js";
274
- import {
275
- renderLegendSvg,
276
- renderLegendSvgFromConfig
277
- } from "./chunk-OJR3MQYV.js";
324
+ } from "./chunk-NISQC5KW.js";
278
325
  import {
279
326
  formatDateLabel,
280
327
  renderTimeline
281
- } from "./chunk-UWN33VNX.js";
328
+ } from "./chunk-XCLHOZAM.js";
282
329
  import {
283
330
  computeTimeTicks
284
331
  } from "./chunk-YRYKTYMQ.js";
285
- import "./chunk-U6EQI3U6.js";
286
- import {
287
- renderLegendD3
288
- } from "./chunk-PWIHZ6NJ.js";
289
332
  import {
290
333
  ScaleContext
291
334
  } from "./chunk-YYVTBZZC.js";
292
335
  import {
293
- computeLegendLayout,
294
- controlsGroupCapsuleWidth,
295
- getLegendReservedHeight
296
- } from "./chunk-YAA6IID3.js";
297
- import "./chunk-A4GOY3PE.js";
298
- import "./chunk-6KFWC4CO.js";
299
- import {
300
- LEGEND_GEAR_PILL_W,
301
- LEGEND_HEIGHT
302
- } from "./chunk-QOOUC2J5.js";
303
- import "./chunk-WCT3NYCV.js";
336
+ renderLegendD3
337
+ } from "./chunk-QUJGFNFN.js";
304
338
  import {
305
339
  CHART_TYPE_DESCRIPTIONS,
306
340
  chartTypeParsers,
@@ -312,105 +346,161 @@ import {
312
346
  parseDgmo,
313
347
  parseDgmoChartType,
314
348
  parseVisualization
315
- } from "./chunk-HSH73DP6.js";
349
+ } from "./chunk-JFYIP7XU.js";
350
+ import {
351
+ parseGoal
352
+ } from "./chunk-Q4V4XQWV.js";
353
+ import {
354
+ parseCountdown,
355
+ targetToMs
356
+ } from "./chunk-BTUTZMPT.js";
357
+ import {
358
+ DAY_MS,
359
+ applyOrdinalTemplate,
360
+ formatCompound,
361
+ formatCount,
362
+ formatFooter,
363
+ formatHuman,
364
+ formatWordsDetail,
365
+ ordinalFor,
366
+ resolveNext
367
+ } from "./chunk-YNRDWYZP.js";
368
+ import {
369
+ parseClock
370
+ } from "./chunk-3XPUDB7B.js";
371
+ import {
372
+ parseBracket
373
+ } from "./chunk-FL4IOQ37.js";
374
+ import {
375
+ RACI_ERROR_CODES,
376
+ RACI_WARNING_CODES,
377
+ VARIANTS,
378
+ allTasks,
379
+ parseRaci
380
+ } from "./chunk-PGEGPSCZ.js";
381
+ import {
382
+ parseBody
383
+ } from "./chunk-DMJJ3CEQ.js";
384
+ import "./chunk-BDXC7MDK.js";
385
+ import {
386
+ renderLegendSvg,
387
+ renderLegendSvgFromConfig
388
+ } from "./chunk-6ZT4U37Q.js";
389
+ import "./chunk-HGN652MU.js";
390
+ import "./chunk-U6EQI3U6.js";
391
+ import {
392
+ computeLegendLayout,
393
+ controlsGroupCapsuleWidth,
394
+ getLegendReservedHeight
395
+ } from "./chunk-7UEMZREK.js";
396
+ import "./chunk-A4GOY3PE.js";
397
+ import "./chunk-6KFWC4CO.js";
398
+ import {
399
+ LEGEND_GEAR_PILL_W,
400
+ LEGEND_HEIGHT
401
+ } from "./chunk-HQCHYB5F.js";
402
+ import "./chunk-5LWQH6QV.js";
316
403
  import {
317
404
  getExtendedChartLegendGroups,
318
405
  getSimpleChartLegendGroups,
319
406
  parseChart,
320
407
  parseDataRowValues,
321
408
  parseExtendedChart
322
- } from "./chunk-P235SVAH.js";
409
+ } from "./chunk-XDXNDSKO.js";
410
+ import {
411
+ parseWireframe
412
+ } from "./chunk-OHQEMBLI.js";
413
+ import {
414
+ parseTechRadar
415
+ } from "./chunk-TSA237IM.js";
323
416
  import {
324
417
  parseCycle
325
- } from "./chunk-6HO5ZTXK.js";
418
+ } from "./chunk-6IAA2QQ2.js";
326
419
  import {
327
420
  parseJourneyMap
328
- } from "./chunk-44CM72SQ.js";
421
+ } from "./chunk-YZLMKW4T.js";
329
422
  import {
330
423
  parsePyramid
331
- } from "./chunk-76OWZ3BA.js";
424
+ } from "./chunk-3P2DKJCG.js";
332
425
  import {
333
426
  parseRing
334
- } from "./chunk-MO5YHHMQ.js";
427
+ } from "./chunk-3LKM6FMW.js";
335
428
  import {
336
429
  parseTreemap
337
- } from "./chunk-WCSOJFU3.js";
430
+ } from "./chunk-OTP5KVLO.js";
338
431
  import {
339
432
  parseBlock
340
- } from "./chunk-7JEGTRLD.js";
433
+ } from "./chunk-YB3FW24O.js";
341
434
  import "./chunk-NNAAJVBU.js";
342
- import {
343
- RACI_ERROR_CODES,
344
- RACI_WARNING_CODES,
345
- VARIANTS,
346
- allTasks,
347
- parseRaci
348
- } from "./chunk-RYEGFMUO.js";
349
435
  import {
350
436
  INFRA_BEHAVIOR_KEYS,
351
437
  extractSymbols as extractSymbols4,
352
438
  parseInfra
353
- } from "./chunk-33LCUH4H.js";
439
+ } from "./chunk-XMVQ5F4M.js";
354
440
  import {
355
441
  parseGantt
356
- } from "./chunk-XAKEUMEJ.js";
442
+ } from "./chunk-UXOSVCLJ.js";
357
443
  import {
358
444
  looksLikeMap,
359
445
  parseMap
360
- } from "./chunk-BUPDIHML.js";
361
- import "./chunk-DKEPS5LH.js";
446
+ } from "./chunk-FB2WHOEQ.js";
447
+ import "./chunk-U2HGPLZS.js";
362
448
  import {
363
449
  parseBoxesAndLines
364
- } from "./chunk-BUVJFRPY.js";
450
+ } from "./chunk-SU2VBK4L.js";
365
451
  import {
366
- parseSwimlane
367
- } from "./chunk-WVAJFAIA.js";
452
+ SKETCH_SHAPE_KINDS,
453
+ isSketchShapeKind,
454
+ parseSketch
455
+ } from "./chunk-5JSWBPZZ.js";
456
+ import "./chunk-XHVV4NVW.js";
368
457
  import {
369
- parseMindmap
370
- } from "./chunk-EB6FPQUP.js";
458
+ parseSwimlane
459
+ } from "./chunk-WWN566I7.js";
371
460
  import {
372
- parseWireframe
373
- } from "./chunk-EVCVDTXE.js";
461
+ parseFamily
462
+ } from "./chunk-O4VUFXIH.js";
463
+ import "./chunk-QQJUTGQH.js";
374
464
  import {
375
- parseTechRadar
376
- } from "./chunk-NURGB5Z4.js";
465
+ parseMindmap
466
+ } from "./chunk-S5GRONXL.js";
377
467
  import {
378
468
  extractSymbols as extractSymbols3,
379
469
  looksLikeERDiagram,
380
470
  parseERDiagram
381
- } from "./chunk-L66GEFB6.js";
471
+ } from "./chunk-2JJ2KNPI.js";
382
472
  import {
383
473
  parseOrg
384
- } from "./chunk-RVMRZAPB.js";
474
+ } from "./chunk-O76UD6VJ.js";
385
475
  import {
386
476
  looksLikeSitemap,
387
477
  parseSitemap
388
- } from "./chunk-AN2MOO5T.js";
478
+ } from "./chunk-A3WQVFBS.js";
389
479
  import {
390
480
  extractPertSymbols,
391
481
  looksLikePert,
392
482
  parsePert
393
- } from "./chunk-RTLBSQ3G.js";
483
+ } from "./chunk-6M5PJFQG.js";
394
484
  import {
395
485
  formatLocalISODate
396
486
  } from "./chunk-L3UHP6TD.js";
397
487
  import "./chunk-USZW2HHU.js";
398
488
  import {
399
489
  parseEventLine
400
- } from "./chunk-5QXL4NYS.js";
490
+ } from "./chunk-7G2ER4CY.js";
401
491
  import {
402
492
  addDurationToDate,
403
493
  parseTimelineDate
404
- } from "./chunk-GMR5MFHJ.js";
494
+ } from "./chunk-I7F2A35O.js";
405
495
  import {
406
496
  parseVersionControl
407
- } from "./chunk-ERLBPDGU.js";
497
+ } from "./chunk-6BFZKBGD.js";
408
498
  import {
409
499
  parseKanban
410
- } from "./chunk-AELOBFW5.js";
500
+ } from "./chunk-I4IFRCUB.js";
411
501
  import {
412
502
  parseC4
413
- } from "./chunk-B65G5DNL.js";
503
+ } from "./chunk-URSQLCTR.js";
414
504
  import "./chunk-IYULMRBE.js";
415
505
  import {
416
506
  atlasPalette,
@@ -442,7 +532,7 @@ import {
442
532
  isSequenceNote,
443
533
  looksLikeSequence,
444
534
  parseSequenceDgmo
445
- } from "./chunk-SML67VPV.js";
535
+ } from "./chunk-T4BRO3Z6.js";
446
536
  import {
447
537
  RULE_COUNT,
448
538
  inferParticipantType
@@ -452,24 +542,24 @@ import {
452
542
  isTagBlockHeading,
453
543
  matchTagBlockHeading,
454
544
  tagAttrKey
455
- } from "./chunk-QLCCJEJI.js";
545
+ } from "./chunk-WCUHAQKB.js";
456
546
  import {
457
547
  extractSymbols,
458
548
  looksLikeFlowchart,
459
549
  parseFlowchart
460
- } from "./chunk-LIOHW36Z.js";
550
+ } from "./chunk-GBE54KY6.js";
461
551
  import "./chunk-I46X5VUA.js";
462
552
  import {
463
553
  looksLikeState,
464
554
  parseState
465
- } from "./chunk-3MQQNXPD.js";
555
+ } from "./chunk-2C56LEML.js";
466
556
  import "./chunk-NXMESY4J.js";
467
557
  import {
468
558
  extractSymbols as extractSymbols2,
469
559
  looksLikeClassDiagram,
470
560
  parseClassDiagram
471
- } from "./chunk-RUNNI6VE.js";
472
- import "./chunk-5MLYVTYM.js";
561
+ } from "./chunk-GL5UZ6NY.js";
562
+ import "./chunk-SCHXJTZL.js";
473
563
  import "./chunk-FMDSF3OV.js";
474
564
  import {
475
565
  ARROW_DIAGNOSTIC_CODES,
@@ -485,7 +575,7 @@ import {
485
575
  ALL_CHART_TYPES,
486
576
  measureIndent,
487
577
  parseFirstLine
488
- } from "./chunk-Y3J7VR52.js";
578
+ } from "./chunk-OTAL43EH.js";
489
579
  import {
490
580
  INVALID_COLOR_CODE,
491
581
  INVALID_CSS_COLOR_HEX,
@@ -876,6 +966,298 @@ function normalizePertSourceForShare(dsl) {
876
966
  return out.join("\n");
877
967
  }
878
968
 
969
+ // src/countdown/ticker.ts
970
+ var DATE_ONLY_RE = /^\d{4}-\d{2}-\d{2}$/;
971
+ function dayStartLocal(ms) {
972
+ const d = new Date(ms);
973
+ return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();
974
+ }
975
+ function dayDeltaLocal(aMs, bMs) {
976
+ const a = new Date(aMs);
977
+ const b = new Date(bMs);
978
+ const a0 = new Date(a.getFullYear(), a.getMonth(), a.getDate()).getTime();
979
+ const b0 = new Date(b.getFullYear(), b.getMonth(), b.getDate()).getTime();
980
+ return Math.round((b0 - a0) / DAY_MS);
981
+ }
982
+ function pad2(n) {
983
+ return n < 10 ? "0" + n : String(n);
984
+ }
985
+ function polar(cx, cy, r, deg) {
986
+ const a = (deg - 90) * Math.PI / 180;
987
+ return [cx + r * Math.cos(a), cy + r * Math.sin(a)];
988
+ }
989
+ function arcPath(cx, cy, r, frac) {
990
+ frac = Math.max(0, Math.min(0.9999, frac));
991
+ const [x0, y0] = polar(cx, cy, r, 0);
992
+ const [x1, y1] = polar(cx, cy, r, frac * 360);
993
+ return `M ${x0} ${y0} A ${r} ${r} 0 ${frac > 0.5 ? 1 : 0} 1 ${x1} ${y1}`;
994
+ }
995
+ function updateGauges(svg, remaining) {
996
+ const rem = Math.abs(remaining);
997
+ const vals = {
998
+ h: Math.floor(rem / 36e5),
999
+ m: Math.floor(rem % 36e5 / 6e4),
1000
+ s: Math.floor(rem % 6e4 / 1e3)
1001
+ };
1002
+ const fracs = {
1003
+ h: vals["h"] % 24 / 24,
1004
+ m: vals["m"] / 60,
1005
+ s: vals["s"] / 60
1006
+ };
1007
+ svg.querySelectorAll("[data-dgmo-gauge-val]").forEach((el) => {
1008
+ const k = el.getAttribute("data-dgmo-gauge-val");
1009
+ const v = pad2(vals[k] ?? 0);
1010
+ if (el.textContent !== v) el.textContent = v;
1011
+ });
1012
+ svg.querySelectorAll("[data-dgmo-gauge-arc]").forEach((el) => {
1013
+ const k = el.getAttribute("data-dgmo-gauge-arc");
1014
+ const cx = Number(el.getAttribute("data-cx"));
1015
+ const cy = Number(el.getAttribute("data-cy"));
1016
+ const r = Number(el.getAttribute("data-r"));
1017
+ const f = fracs[k] ?? 0;
1018
+ el.setAttribute("d", f > 1e-3 ? arcPath(cx, cy, r, f) : "");
1019
+ });
1020
+ const cap = svg.querySelector("[data-dgmo-gauge-caption]");
1021
+ if (cap) {
1022
+ const t = remaining >= 0 ? "TO GO" : "AGO";
1023
+ if (cap.textContent !== t) cap.textContent = t;
1024
+ }
1025
+ }
1026
+ function targetToMs2(target) {
1027
+ const s = target.trim();
1028
+ if (DATE_ONLY_RE.test(s)) {
1029
+ const p = s.split("-").map(Number);
1030
+ return new Date(p[0], p[1] - 1, p[2]).getTime();
1031
+ }
1032
+ const t = new Date(s).getTime();
1033
+ return Number.isFinite(t) ? t : null;
1034
+ }
1035
+ function readRule(node) {
1036
+ const kind = node.getAttribute("data-dgmo-recur-kind");
1037
+ if (!kind) return null;
1038
+ const num = (name) => {
1039
+ const v = node.getAttribute(name);
1040
+ return v === null ? void 0 : Number(v);
1041
+ };
1042
+ return {
1043
+ kind,
1044
+ month: num("data-dgmo-recur-month"),
1045
+ day: num("data-dgmo-recur-day"),
1046
+ nth: num("data-dgmo-recur-nth"),
1047
+ weekday: num("data-dgmo-recur-weekday"),
1048
+ hour: num("data-dgmo-recur-hour") ?? 0,
1049
+ minute: num("data-dgmo-recur-minute") ?? 0,
1050
+ allDay: node.getAttribute("data-dgmo-recur-allday") !== "0",
1051
+ intervalN: num("data-dgmo-recur-interval-n"),
1052
+ intervalUnit: node.getAttribute("data-dgmo-recur-interval-unit") ?? void 0,
1053
+ anchorMs: num("data-dgmo-recur-anchor")
1054
+ };
1055
+ }
1056
+ function sameLocalDay(a, b) {
1057
+ const x = new Date(a);
1058
+ const y = new Date(b);
1059
+ return x.getFullYear() === y.getFullYear() && x.getMonth() === y.getMonth() && x.getDate() === y.getDate();
1060
+ }
1061
+ function readFields(node) {
1062
+ const raw = node.getAttribute("data-dgmo-countdown-fields");
1063
+ if (!raw) return ["d", "h", "m", "s"];
1064
+ return raw.split(",").filter((f) => ["d", "h", "m", "s"].includes(f));
1065
+ }
1066
+ function updateNode(node, now) {
1067
+ const rule = readRule(node);
1068
+ const units = node.getAttribute("data-dgmo-countdown-units") || "days";
1069
+ const round = node.getAttribute("data-dgmo-countdown-round") || "up";
1070
+ const fields = readFields(node);
1071
+ const onDay = node.getAttribute("data-dgmo-countdown-onday");
1072
+ const title = node.getAttribute("data-dgmo-countdown-title");
1073
+ let resolvedMs;
1074
+ let expiredNow = false;
1075
+ if (rule) {
1076
+ resolvedMs = resolveNext(rule, now);
1077
+ } else {
1078
+ const target = node.getAttribute("data-dgmo-countdown");
1079
+ resolvedMs = target ? targetToMs2(target) : null;
1080
+ if (resolvedMs !== null && resolvedMs - now <= 0) expiredNow = true;
1081
+ }
1082
+ if (resolvedMs === null) return;
1083
+ const remaining = resolvedMs - now;
1084
+ const sinceAttr = node.getAttribute("data-dgmo-countdown-since");
1085
+ const custom = node.getAttribute("data-dgmo-countdown-expired");
1086
+ const hasTime = node.getAttribute("data-dgmo-countdown-hastime") === "1";
1087
+ const frozen = expiredNow && custom !== null;
1088
+ const clockFinale = hasTime && !frozen && dayDeltaLocal(now, resolvedMs) <= 0;
1089
+ let text;
1090
+ if (frozen) {
1091
+ text = custom;
1092
+ } else if (clockFinale) {
1093
+ const clock = formatCount(Math.abs(remaining), {
1094
+ units: "clock",
1095
+ round,
1096
+ fields
1097
+ });
1098
+ text = remaining < 0 ? `${clock} ago` : clock;
1099
+ } else if (expiredNow) {
1100
+ if (units === "compound" || units === "human")
1101
+ text = `${formatCompound(resolvedMs, now)} ago`;
1102
+ else {
1103
+ const elapsed = -remaining;
1104
+ text = elapsed <= 0 ? "Now!" : `${formatCount(elapsed, { units, round, fields })} ago`;
1105
+ }
1106
+ } else if (rule && sameLocalDay(resolvedMs, now)) {
1107
+ text = onDay ?? "Today!";
1108
+ } else if (units === "human") {
1109
+ text = hasTime ? formatHuman(now, resolvedMs).big : formatHuman(dayStartLocal(now), dayStartLocal(resolvedMs)).big;
1110
+ } else if (units === "compound") {
1111
+ text = formatCompound(now, resolvedMs);
1112
+ } else {
1113
+ text = formatCount(Math.max(0, remaining), { units, round, fields });
1114
+ }
1115
+ if (node.textContent !== text) node.textContent = text;
1116
+ node.setAttribute(
1117
+ "aria-label",
1118
+ title ? `${title}: ${text}` : expiredNow ? text : `${text} remaining`
1119
+ );
1120
+ const svg = node.ownerSVGElement ?? node.closest("svg");
1121
+ if (!svg) return;
1122
+ const footer = svg.querySelector("[data-dgmo-countdown-footer]");
1123
+ if (footer && !expiredNow) {
1124
+ const hasTime2 = node.getAttribute("data-dgmo-countdown-hastime") === "1";
1125
+ footer.textContent = formatFooter(resolvedMs, hasTime2);
1126
+ }
1127
+ const eyebrowEl = svg.querySelector("[data-dgmo-countdown-eyebrow]");
1128
+ if (eyebrowEl && sinceAttr) {
1129
+ const tpl = node.getAttribute("data-dgmo-countdown-since-label") || "Nth";
1130
+ eyebrowEl.textContent = applyOrdinalTemplate(
1131
+ tpl,
1132
+ ordinalFor(resolvedMs, Number(sinceAttr))
1133
+ );
1134
+ }
1135
+ const detail = svg.querySelector("[data-dgmo-countdown-detail]");
1136
+ if (detail && !expiredNow && !clockFinale) {
1137
+ if (units === "words") {
1138
+ detail.textContent = formatWordsDetail(Math.max(0, remaining));
1139
+ } else if (units === "human" && remaining > 0) {
1140
+ detail.textContent = hasTime ? formatCount(remaining, { units: "clock", round, fields }) : formatHuman(dayStartLocal(now), dayStartLocal(resolvedMs)).sub;
1141
+ }
1142
+ }
1143
+ if (clockFinale) updateGauges(svg, remaining);
1144
+ const stamp = svg.querySelector("[data-dgmo-countdown-asof]");
1145
+ if (stamp && stamp.parentNode) stamp.parentNode.removeChild(stamp);
1146
+ }
1147
+ function tickCountdowns(root = document) {
1148
+ if (typeof document === "undefined") return;
1149
+ const now = Date.now();
1150
+ root.querySelectorAll("[data-dgmo-countdown]").forEach((node) => updateNode(node, now));
1151
+ }
1152
+ var intervalStarted = false;
1153
+ function startCountdowns(root = document) {
1154
+ if (typeof window === "undefined" || typeof document === "undefined") return;
1155
+ tickCountdowns(root);
1156
+ if (intervalStarted) return;
1157
+ intervalStarted = true;
1158
+ window.setInterval(() => tickCountdowns(document), 1e3);
1159
+ }
1160
+
1161
+ // src/clock/ticker.ts
1162
+ function readWork(node) {
1163
+ const start = node.getAttribute("data-dgmo-clock-work-start");
1164
+ const end = node.getAttribute("data-dgmo-clock-work-end");
1165
+ if (start === null || end === null) return null;
1166
+ const days = {};
1167
+ (node.getAttribute("data-dgmo-clock-work-days") ?? "").split(",").filter(Boolean).forEach((d) => {
1168
+ days[d] = true;
1169
+ });
1170
+ return { startMin: Number(start), endMin: Number(end), days };
1171
+ }
1172
+ function setHand(group, which, angle) {
1173
+ const hand = group.querySelector(`[data-dgmo-clock-hand="${which}"]`);
1174
+ if (hand) hand.setAttribute("transform", `rotate(${angle} 50 50)`);
1175
+ }
1176
+ function setPart(group, sel, textContent) {
1177
+ const el = group.querySelector(sel);
1178
+ if (el && el.textContent !== textContent) el.textContent = textContent;
1179
+ }
1180
+ function updateRow(group, now) {
1181
+ const zone = group.getAttribute("data-dgmo-clock-zone");
1182
+ if (!zone) return;
1183
+ const parts = zoneParts(zone, now);
1184
+ const latAttr = group.getAttribute("data-dgmo-clock-lat");
1185
+ const lonAttr = group.getAttribute("data-dgmo-clock-lon");
1186
+ const sunOn = group.getAttribute("data-dgmo-clock-sun") === "1";
1187
+ const hasCoords = latAttr !== null && lonAttr !== null;
1188
+ const sun = sunOn && hasCoords ? sunLine(now, Number(latAttr), Number(lonAttr)) : null;
1189
+ const up = sun ? sun.up : parts.h >= 6 && parts.h < 18;
1190
+ const c = (name) => group.getAttribute(`data-dgmo-clock-c-${name}`) ?? "";
1191
+ const stColor = up ? c("day") : c("night");
1192
+ const stTint = up ? c("day-soft") : c("night-soft");
1193
+ const hours12 = group.getAttribute("data-dgmo-clock-hours12") !== "0";
1194
+ const ts = formatTime(parts.h, parts.m, parts.s, hours12);
1195
+ const ang = handAngles(parts.h, parts.m, parts.s);
1196
+ setHand(group, "h", ang.hour);
1197
+ setHand(group, "m", ang.minute);
1198
+ setHand(group, "s", ang.second);
1199
+ const autoSolid = group.getAttribute("data-dgmo-clock-auto-solid");
1200
+ const autoFace = group.getAttribute("data-dgmo-clock-auto-face");
1201
+ const faceFill = autoFace ?? stTint;
1202
+ const handColor = autoSolid ?? stColor;
1203
+ const face = group.querySelector("[data-dgmo-clock-facebg]");
1204
+ if (face) face.setAttribute("fill", faceFill);
1205
+ const ring = group.querySelector("[data-dgmo-clock-facering]");
1206
+ if (ring && autoSolid) ring.setAttribute("stroke", autoSolid);
1207
+ const center = group.querySelector("[data-dgmo-clock-center]");
1208
+ if (center) center.setAttribute("fill", handColor);
1209
+ const secondHand = group.querySelector('[data-dgmo-clock-hand="s"]');
1210
+ if (secondHand) secondHand.setAttribute("stroke", handColor);
1211
+ setPart(group, '[data-dgmo-clock-digital-part="main"]', ts.main);
1212
+ setPart(group, '[data-dgmo-clock-digital-part="sec"]', `:${ts.sec}`);
1213
+ setPart(group, '[data-dgmo-clock-digital-part="ap"]', ` ${ts.ap}`);
1214
+ setPart(group, "[data-dgmo-clock-ampm]", ts.ap.toUpperCase());
1215
+ const work = readWork(group);
1216
+ const status = workStatus(parts, work);
1217
+ const statusEl = group.querySelector("[data-dgmo-clock-status]");
1218
+ if (status && statusEl) {
1219
+ const col = status.cls === "ok" ? c("ok") : status.cls === "soon" ? c("soon") : c("off");
1220
+ if (statusEl.textContent !== status.text)
1221
+ statusEl.textContent = status.text;
1222
+ statusEl.setAttribute("fill", col);
1223
+ const dot = group.querySelector("[data-dgmo-clock-status-dot]");
1224
+ if (dot) {
1225
+ if (status.cls === "off") {
1226
+ dot.setAttribute("fill", "none");
1227
+ dot.setAttribute("stroke", col);
1228
+ dot.setAttribute("stroke-width", "1.4");
1229
+ } else {
1230
+ dot.setAttribute("fill", col);
1231
+ dot.setAttribute("stroke", "none");
1232
+ }
1233
+ }
1234
+ }
1235
+ const sunEl = group.querySelector("[data-dgmo-clock-sun-line]");
1236
+ if (sun && sunEl) {
1237
+ if (sunEl.textContent !== sun.text) sunEl.textContent = sun.text;
1238
+ const icon = group.querySelector("[data-dgmo-clock-sun-icon]");
1239
+ if (icon) {
1240
+ const sunG = icon.querySelector('[data-clock-glyph="sun"]');
1241
+ const moonG = icon.querySelector('[data-clock-glyph="moon"]');
1242
+ if (sunG) sunG.setAttribute("display", up ? "inline" : "none");
1243
+ if (moonG) moonG.setAttribute("display", up ? "none" : "inline");
1244
+ }
1245
+ }
1246
+ }
1247
+ function tickClocks(root = document) {
1248
+ if (typeof document === "undefined") return;
1249
+ const now = Date.now();
1250
+ root.querySelectorAll("[data-dgmo-clock]").forEach((group) => updateRow(group, now));
1251
+ }
1252
+ var intervalStarted2 = false;
1253
+ function startClocks(root = document) {
1254
+ if (typeof window === "undefined" || typeof document === "undefined") return;
1255
+ tickClocks(root);
1256
+ if (intervalStarted2) return;
1257
+ intervalStarted2 = true;
1258
+ window.setInterval(() => tickClocks(document), 1e3);
1259
+ }
1260
+
879
1261
  // src/map/invert.ts
880
1262
  function inInsetFrame(inset, px, py) {
881
1263
  return px >= inset.x && px <= inset.x + inset.w && py >= inset.y && py <= inset.y + inset.h;
@@ -1538,6 +1920,15 @@ export {
1538
1920
  RACI_WARNING_CODES,
1539
1921
  RECOGNIZED_COLOR_NAMES,
1540
1922
  RULE_COUNT,
1923
+ SKETCH_FOOT_H,
1924
+ SKETCH_FOOT_W,
1925
+ SKETCH_GEOMETRY,
1926
+ SKETCH_HALF_SLOT_X,
1927
+ SKETCH_HALF_SLOT_Y,
1928
+ SKETCH_SEP,
1929
+ SKETCH_SHAPE_KINDS,
1930
+ SKETCH_SLOT_X,
1931
+ SKETCH_SLOT_Y,
1541
1932
  ScaleContext,
1542
1933
  addDurationToDate,
1543
1934
  albersSkewFallback,
@@ -1562,6 +1953,7 @@ export {
1562
1953
  collapseMindmapTree,
1563
1954
  collapseOrgTree,
1564
1955
  collapseSitemapTree,
1956
+ collapseSketch,
1565
1957
  collapseStateGroups,
1566
1958
  collectDiagramRoles,
1567
1959
  collectTasks,
@@ -1618,16 +2010,19 @@ export {
1618
2010
  isRecognizedColorName,
1619
2011
  isSequenceBlock,
1620
2012
  isSequenceNote,
2013
+ isSketchShapeKind,
1621
2014
  isValidHex,
1622
2015
  knownChartTypeIds,
1623
2016
  layoutBlock,
1624
2017
  layoutBoxesAndLines,
2018
+ layoutBracket,
1625
2019
  layoutC4Components,
1626
2020
  layoutC4Containers,
1627
2021
  layoutC4Context,
1628
2022
  layoutC4Deployment,
1629
2023
  layoutClassDiagram,
1630
2024
  layoutERDiagram,
2025
+ layoutFamily,
1631
2026
  layoutGraph,
1632
2027
  layoutInfra,
1633
2028
  layoutJourneyMap,
@@ -1636,6 +2031,7 @@ export {
1636
2031
  layoutOrg,
1637
2032
  layoutPert,
1638
2033
  layoutSitemap,
2034
+ layoutSketch,
1639
2035
  layoutSwimlane,
1640
2036
  layoutTreemap,
1641
2037
  layoutTreemapRadial,
@@ -1666,10 +2062,14 @@ export {
1666
2062
  palettes,
1667
2063
  parseAndLayoutInfra,
1668
2064
  parseBlock,
2065
+ parseBody,
1669
2066
  parseBoxesAndLines,
2067
+ parseBracket,
1670
2068
  parseC4,
1671
2069
  parseChart,
1672
2070
  parseClassDiagram,
2071
+ parseClock,
2072
+ parseCountdown,
1673
2073
  parseCycle,
1674
2074
  parseDataRowValues,
1675
2075
  parseDgmo,
@@ -1677,9 +2077,11 @@ export {
1677
2077
  parseERDiagram,
1678
2078
  parseEventLine,
1679
2079
  parseExtendedChart,
2080
+ parseFamily,
1680
2081
  parseFirstLine,
1681
2082
  parseFlowchart,
1682
2083
  parseGantt,
2084
+ parseGoal,
1683
2085
  parseInArrowLabel,
1684
2086
  parseInfra,
1685
2087
  parseInlineMarkdown,
@@ -1695,6 +2097,7 @@ export {
1695
2097
  parseSequenceDgmo,
1696
2098
  parseSequenceDgmo as parseSequenceDiagram,
1697
2099
  parseSitemap,
2100
+ parseSketch,
1698
2101
  parseState,
1699
2102
  parseSwimlane,
1700
2103
  parseTechRadar,
@@ -1713,8 +2116,12 @@ export {
1713
2116
  renderArcDiagram,
1714
2117
  renderBlock,
1715
2118
  renderBlockForExport,
2119
+ renderBody,
2120
+ renderBodyForExport,
1716
2121
  renderBoxesAndLines,
1717
2122
  renderBoxesAndLinesForExport,
2123
+ renderBracket,
2124
+ renderBracketForExport,
1718
2125
  renderC4ComponentsForExport,
1719
2126
  renderC4Containers,
1720
2127
  renderC4ContainersForExport,
@@ -1724,16 +2131,24 @@ export {
1724
2131
  renderC4DeploymentForExport,
1725
2132
  renderClassDiagram,
1726
2133
  renderClassDiagramForExport,
2134
+ renderClock,
2135
+ renderClockForExport,
2136
+ renderCountdown,
2137
+ renderCountdownForExport,
1727
2138
  renderCycle,
1728
2139
  renderCycleForExport,
1729
2140
  renderERDiagram,
1730
2141
  renderERDiagramForExport,
1731
2142
  renderEventLine,
1732
2143
  renderEventLineForExport,
2144
+ renderFamily,
2145
+ renderFamilyForExport,
1733
2146
  renderFlowchart,
1734
2147
  renderFlowchartForExport,
1735
2148
  renderForExport,
1736
2149
  renderGantt,
2150
+ renderGoal,
2151
+ renderGoalForExport,
1737
2152
  renderInfra,
1738
2153
  renderJourneyMap,
1739
2154
  renderJourneyMapForExport,
@@ -1763,6 +2178,8 @@ export {
1763
2178
  renderSequenceDiagram,
1764
2179
  renderSitemap,
1765
2180
  renderSitemapForExport,
2181
+ renderSketch,
2182
+ renderSketchForExport,
1766
2183
  renderSlopeChart,
1767
2184
  renderState,
1768
2185
  renderStateForExport,
@@ -1792,9 +2209,16 @@ export {
1792
2209
  shapeFill,
1793
2210
  simulateCanonical,
1794
2211
  simulateFast,
2212
+ sketchEdgeGeometry,
2213
+ sketchSlotToPx,
1795
2214
  slatePalette,
2215
+ startClocks,
2216
+ startCountdowns,
1796
2217
  tagAttrKey,
2218
+ targetToMs,
1797
2219
  themes,
2220
+ tickClocks,
2221
+ tickCountdowns,
1798
2222
  tidewaterPalette,
1799
2223
  tint,
1800
2224
  tokyoNightPalette,