ranui 0.3.1-alpha.1 → 0.4.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/README.md +4 -4
  2. package/README.zh-CN.md +3 -3
  3. package/dist/Temml-3BKyDWY9.js +4 -0
  4. package/dist/Temml-B3J22Yln.cjs +1 -0
  5. package/dist/{abnfDiagram-VRR7QNED-CTsqwzwi.js → abnfDiagram-VRR7QNED-C21Pc9Db.js} +4 -4
  6. package/dist/abnfDiagram-VRR7QNED-Do5oGbAb.cjs +1 -0
  7. package/dist/add-user-Dk1LIZtp.cjs +6 -0
  8. package/dist/add-user-WnpaBGEK.js +15 -0
  9. package/dist/arc-ByizYZ13.cjs +1 -0
  10. package/dist/{arc-DRPGof21.js → arc-DJJx8BhF.js} +1 -1
  11. package/dist/arc-DOGcyb-0.js +9 -0
  12. package/dist/architecture-TIHT7OUA-BJNZJd9x.cjs +1 -0
  13. package/dist/{architectureDiagram-ZJ3FMSHR-8mjyXr-w.js → architectureDiagram-ZJ3FMSHR-Dt0W9V1f.js} +7 -7
  14. package/dist/{architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs → architectureDiagram-ZJ3FMSHR-WH22GUwo.cjs} +2 -2
  15. package/dist/{arrow-down-Bi5kqUrX.js → arrow-down-DrjnnTe1.js} +4 -2
  16. package/dist/arrow-down-Dt-KyDFE.cjs +5 -0
  17. package/dist/{blockDiagram-677ZJIJ3-3F79MOSt.js → blockDiagram-677ZJIJ3-Cb0N9R3M.js} +8 -8
  18. package/dist/book-8PpGdTqf.cjs +1 -0
  19. package/dist/book-CkgJlJ4n.js +10 -0
  20. package/dist/build/config.d.ts +11 -2
  21. package/dist/builder-BjRti6oP.cjs +1 -0
  22. package/dist/builder.js +40 -40
  23. package/dist/{button-Dw6YKyNd.js → button-DFBA474n.js} +14 -12
  24. package/dist/button.js +1 -1
  25. package/dist/{c4Diagram-LMCZKHZV-Cxn_gqu_.js → c4Diagram-LMCZKHZV-CFLtikIe.js} +5 -5
  26. package/dist/{card-BHN9Xp4S.js → card-Cfkb7dIm.js} +13 -13
  27. package/dist/card.js +1 -1
  28. package/dist/{channel-k5-UxdcV.js → channel-B9hm3LKF.js} +1 -1
  29. package/dist/check-63MT_RxH.cjs +1 -0
  30. package/dist/check-circle-Cbsw_Ffd.cjs +1 -0
  31. package/dist/check-circle-Dpkv0_9Z.js +10 -0
  32. package/dist/check-circle-fill-DVVjVyV6.cjs +1 -0
  33. package/dist/check-circle-fill-eBwMoYEo.js +10 -0
  34. package/dist/{checkbox-O_J_n1_W.js → checkbox-CeVzf_ff.js} +15 -14
  35. package/dist/checkbox.js +1 -1
  36. package/dist/{chunk-32BRIVSS-jAuAwMVV.js → chunk-32BRIVSS-DhXCFCbM.js} +3 -3
  37. package/dist/{chunk-52WLFC77-wpL7en7e.js → chunk-52WLFC77-CLS2Long.js} +8 -8
  38. package/dist/chunk-5FCAYU7R-M2ohMDGf.cjs +1 -0
  39. package/dist/chunk-5HE753X5-DkUtBcPF.cjs +1 -0
  40. package/dist/chunk-5JV3BV7I-BAn3GEjF.cjs +1 -0
  41. package/dist/chunk-5TONJI2A-Bk0HPVuY.cjs +2 -0
  42. package/dist/chunk-BIQX33UG-CaI4JSOY.cjs +1 -0
  43. package/dist/{chunk-C7G6YPKG-CA-DNpvI.js → chunk-C7G6YPKG-CuJexLt7.js} +1 -1
  44. package/dist/chunk-CQNSW5MT-DHm86rAm.cjs +1 -0
  45. package/dist/chunk-CYSBUYHQ-8HNynFK-.cjs +1 -0
  46. package/dist/chunk-EMLP6XTP-DESFjGc5.cjs +1 -0
  47. package/dist/{chunk-EX3LRPZG-BCmf0iDq.js → chunk-EX3LRPZG-C-g2gFWb.js} +7 -7
  48. package/dist/{chunk-FWX5IMBZ-DZ5VYvm5.js → chunk-FWX5IMBZ-Cpx1Lg-4.js} +8 -8
  49. package/dist/{chunk-HOUHSVGY-DRQcQeMT.js → chunk-HOUHSVGY-DpvP0Kt0.js} +2 -2
  50. package/dist/{chunk-ICXQ74PX-DR8rL-xF.js → chunk-ICXQ74PX-DPZfA3a8.js} +3 -3
  51. package/dist/chunk-JG7HCLWE-DJPVQhqh.cjs +2 -0
  52. package/dist/{chunk-MOJQB5TN-BC46HDyu.js → chunk-MOJQB5TN-BWgg4qSh.js} +3 -3
  53. package/dist/chunk-MOZMSUNE-BiirTonv.cjs +1 -0
  54. package/dist/{chunk-OGEWGWER-BV51ll2w.js → chunk-OGEWGWER-CYsD5SNd.js} +2 -2
  55. package/dist/chunk-OSBZ3O6U-BDLnzsCC.cjs +1 -0
  56. package/dist/{chunk-PUDLZKDR-NdMR0Ft5.js → chunk-PUDLZKDR-Dw2BOPG-.js} +9 -9
  57. package/dist/{chunk-Q4XR5HBZ-3BHjjc9u.js → chunk-Q4XR5HBZ-D_n2NzvL.js} +4 -4
  58. package/dist/chunk-QBLGF6JB-DgQIhta2.cjs +1 -0
  59. package/dist/chunk-R7FJI6CG-BjmGc1OU.cjs +1 -0
  60. package/dist/{chunk-RYQCIY6F-BER2T9t0.js → chunk-RYQCIY6F-CIHQ94xS.js} +1 -1
  61. package/dist/chunk-U6XO7XAA-Cxdku9z7.cjs +2 -0
  62. package/dist/{chunk-V7JOEXUC-Cr_hr02u.js → chunk-V7JOEXUC-DNMlt0_E.js} +7 -7
  63. package/dist/{chunk-VAUOI2AC-izt0o4id.js → chunk-VAUOI2AC-CrgGIUR-.js} +2 -2
  64. package/dist/{chunk-VR4S4FIN-CJi5okl4.js → chunk-VR4S4FIN-DQsfbArk.js} +2 -2
  65. package/dist/{chunk-WYO6CB5R-DDHkKowO.js → chunk-WYO6CB5R-DyGmS3I6.js} +1 -1
  66. package/dist/{chunk-XXDRQBXY-BB1i_53q.js → chunk-XXDRQBXY-BeVLa_G2.js} +1 -1
  67. package/dist/chunk-YOTPTUD7-BCQ2zMB7.cjs +1 -0
  68. package/dist/{chunk-ZGVPDNZ5-6uMbTJXy.js → chunk-ZGVPDNZ5-DlEsNy2g.js} +7 -7
  69. package/dist/circle-DgoPsPmL.cjs +1 -0
  70. package/dist/circle-fold-CZf63cE1.js +9 -0
  71. package/dist/circle-fold-DGHgTbNx.cjs +1 -0
  72. package/dist/circle-line-DDD6hHbp.cjs +1 -0
  73. package/dist/circle-line-vsuTmqx8.js +9 -0
  74. package/dist/circle-rotate-B7JrnjYG.cjs +1 -0
  75. package/dist/circle-rotate-DDC3CKzB.js +9 -0
  76. package/dist/circle-spin-CIMhAYj5.cjs +1 -0
  77. package/dist/circle-spin-Djuwx9eN.js +9 -0
  78. package/dist/circle-turn-D1Z-dXF8.cjs +1 -0
  79. package/dist/circle-turn-DtYjq4Ky.js +9 -0
  80. package/dist/classDiagram-OUVF2IWQ-CkQt8O2B.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-CkQt8O2B.js +30 -0
  82. package/dist/close-CDF9aHTU.js +10 -0
  83. package/dist/close-Ck_jxN7T.cjs +1 -0
  84. package/dist/close-circle-B3lBlRHE.cjs +1 -0
  85. package/dist/close-circle-DZZJhaf-.js +10 -0
  86. package/dist/close-circle-fill-Ds9W-XNo.cjs +1 -0
  87. package/dist/close-circle-fill-OiY9CVOv.js +10 -0
  88. package/dist/colorpicker-C8vbgSta.js +250 -0
  89. package/dist/colorpicker.js +1 -1
  90. package/dist/components/icon/index.d.ts +7 -0
  91. package/dist/components/loading/index.d.ts +6 -29
  92. package/dist/components/loading/types.d.ts +11 -0
  93. package/dist/components/loading/variants/arc/index.d.ts +6 -0
  94. package/dist/components/loading/variants/circle/index.d.ts +6 -0
  95. package/dist/components/loading/variants/circle-fold/index.d.ts +6 -0
  96. package/dist/components/loading/variants/circle-line/index.d.ts +6 -0
  97. package/dist/components/loading/variants/circle-rotate/index.d.ts +6 -0
  98. package/dist/components/loading/variants/circle-spin/index.d.ts +6 -0
  99. package/dist/components/loading/variants/circle-turn/index.d.ts +6 -0
  100. package/dist/components/loading/variants/cube/index.d.ts +6 -0
  101. package/dist/components/loading/variants/cube-dim/index.d.ts +6 -0
  102. package/dist/components/loading/variants/cube-fold/index.d.ts +6 -0
  103. package/dist/components/loading/variants/cube-grid/index.d.ts +6 -0
  104. package/dist/components/loading/variants/dot/index.d.ts +6 -0
  105. package/dist/components/loading/variants/dot-bar/index.d.ts +6 -0
  106. package/dist/components/loading/variants/dot-circle/index.d.ts +6 -0
  107. package/dist/components/loading/variants/dot-line/index.d.ts +6 -0
  108. package/dist/components/loading/variants/dot-pulse/index.d.ts +6 -0
  109. package/dist/components/loading/variants/double-bounce/index.d.ts +6 -0
  110. package/dist/components/loading/variants/drop/index.d.ts +6 -0
  111. package/dist/components/loading/variants/line/index.d.ts +6 -0
  112. package/dist/components/loading/variants/line-scale/index.d.ts +6 -0
  113. package/dist/components/loading/variants/pacman/index.d.ts +6 -0
  114. package/dist/components/loading/variants/pulse/index.d.ts +6 -0
  115. package/dist/components/loading/variants/rotate/index.d.ts +6 -0
  116. package/dist/components/loading/variants/scale-out/index.d.ts +6 -0
  117. package/dist/components/loading/variants/solar/index.d.ts +6 -0
  118. package/dist/components/loading/variants/square/index.d.ts +6 -0
  119. package/dist/components/loading/variants/stretch/index.d.ts +6 -0
  120. package/dist/components/loading/variants/text/index.d.ts +6 -0
  121. package/dist/components/loading/variants/triple-bounce/index.d.ts +6 -0
  122. package/dist/components/math/index.d.ts +37 -1
  123. package/dist/components/player/index.d.ts +0 -1
  124. package/dist/components/popover/index.d.ts +5 -5
  125. package/dist/components/select/index.d.ts +23 -0
  126. package/dist/{content-YOKzMoc7.js → content-WyCTQEb9.js} +7 -7
  127. package/dist/content.js +1 -1
  128. package/dist/copy-CMAYGCsm.cjs +1 -0
  129. package/dist/{cose-bilkent-JH36ORCC-DTwvJlGw.js → cose-bilkent-JH36ORCC-DCMxiO2H.js} +2 -2
  130. package/dist/cube-BHbuhZjD.cjs +1 -0
  131. package/dist/cube-BJr0a40o.js +9 -0
  132. package/dist/cube-dim-FDQVX9Sb.js +9 -0
  133. package/dist/cube-dim-JK8OwqXU.cjs +1 -0
  134. package/dist/cube-fold-68Pk6igJ.js +9 -0
  135. package/dist/cube-fold-DMmWEicy.cjs +1 -0
  136. package/dist/cube-grid-C5ONBtr1.cjs +1 -0
  137. package/dist/cube-grid-DTgwN5o-.js +9 -0
  138. package/dist/cynefin-VYW2F7L2-Yeua0tAa.cjs +1 -0
  139. package/dist/{cynefinDiagram-TSTJHNR4-Bjt4QTVh.js → cynefinDiagram-TSTJHNR4-B6dEjVBJ.js} +4 -4
  140. package/dist/{cynefinDiagram-TSTJHNR4-ISDORSxO.cjs → cynefinDiagram-TSTJHNR4-CAx-94I7.cjs} +1 -1
  141. package/dist/{dagre-VKFMJZFB-Dfku86Az.js → dagre-VKFMJZFB-CkNsP9vI.js} +10 -10
  142. package/dist/{diagram-FQU43EPY-BvQ5jmVn.js → diagram-FQU43EPY-Cefzg0En.js} +3 -3
  143. package/dist/{diagram-FQU43EPY-BAiRt5eL.cjs → diagram-FQU43EPY-Cn7-Jxoj.cjs} +2 -2
  144. package/dist/{diagram-G47NLZAW-DT2BBA0T.js → diagram-G47NLZAW-BsDJqCJu.js} +6 -6
  145. package/dist/{diagram-G47NLZAW-DGnmEa8u.cjs → diagram-G47NLZAW-Clm1JIiF.cjs} +1 -1
  146. package/dist/{diagram-NH7WQ7WH-DxgkStA3.cjs → diagram-NH7WQ7WH-BQWzEBKY.cjs} +1 -1
  147. package/dist/{diagram-NH7WQ7WH-W7jg4Vh8.js → diagram-NH7WQ7WH-DEGzjxf4.js} +4 -4
  148. package/dist/{diagram-OA4YK3LP-DkvFII73.cjs → diagram-OA4YK3LP-B90IV5Q-.cjs} +3 -3
  149. package/dist/{diagram-OA4YK3LP-jU--aqQl.js → diagram-OA4YK3LP-BZUB0lzT.js} +5 -5
  150. package/dist/{diagram-WEI45ONY-XvzRFmmY.cjs → diagram-WEI45ONY-B-8IP8vK.cjs} +1 -1
  151. package/dist/{diagram-WEI45ONY-C_Qhf4ny.js → diagram-WEI45ONY-BURO1A6S.js} +4 -4
  152. package/dist/{dist-C0Fwsvsq.js → dist-9Ly83Lo6.js} +1 -1
  153. package/dist/dot-D8taMWFZ.cjs +1 -0
  154. package/dist/dot-bar-CXBmT1RL.js +9 -0
  155. package/dist/dot-bar-Ddbyx-0a.cjs +1 -0
  156. package/dist/dot-circle-DksscvAR.js +9 -0
  157. package/dist/dot-circle-DxoSLiz7.cjs +1 -0
  158. package/dist/dot-line-8Z2hpBOL.js +9 -0
  159. package/dist/dot-line-CKcmWaBb.cjs +1 -0
  160. package/dist/dot-pulse-BC7xaifX.js +9 -0
  161. package/dist/dot-pulse-DVwedcib.cjs +1 -0
  162. package/dist/double-bounce-BVGrEHLy.js +9 -0
  163. package/dist/double-bounce-Cxp3i6ip.cjs +1 -0
  164. package/dist/download-DiDwbZL3.cjs +1 -0
  165. package/dist/drop-CTufsC6T.js +9 -0
  166. package/dist/drop-DU-RgWR1.js +16 -0
  167. package/dist/drop-_Iz47Fmh.cjs +7 -0
  168. package/dist/drop-q8qufm5t.cjs +1 -0
  169. package/dist/{dropdown-CzGAVWYC.js → dropdown-B2Sk5gQF.js} +22 -21
  170. package/dist/dropdown.js +1 -1
  171. package/dist/ebnfDiagram-CCIWWBDH-B5ZJxr_W.cjs +1 -0
  172. package/dist/{ebnfDiagram-CCIWWBDH-Gnr20Oc1.js → ebnfDiagram-CCIWWBDH-B6Gh-zq6.js} +4 -4
  173. package/dist/{erDiagram-Q63AITRT-D0Hh9b-W.js → erDiagram-Q63AITRT-B1iQoGRH.js} +13 -13
  174. package/dist/eventmodeling-45OFAUF4-_fgxNekW.cjs +1 -0
  175. package/dist/eye-BoGpexya.cjs +4 -0
  176. package/dist/eye-close-DdWDFgn0.cjs +4 -0
  177. package/dist/eye-close-pVr4NTjX.js +13 -0
  178. package/dist/eye-j7jzy-2Y.js +13 -0
  179. package/dist/factory-Ce9hR27Y.js +653 -0
  180. package/dist/flowDiagram-23GEKE2U-BxyRR3qT.js +19 -0
  181. package/dist/{form-B8afuJlF.js → form-C0-UiXLj.js} +9 -9
  182. package/dist/form.js +1 -1
  183. package/dist/fullscreen-0HIdaZda.cjs +1 -0
  184. package/dist/{ganttDiagram-NO4QXBWP-B40Eabk0.js → ganttDiagram-NO4QXBWP-BE1v5yrp.js} +6 -6
  185. package/dist/gitGraph-TEB2WS4Q-BlIs9PSc.cjs +1 -0
  186. package/dist/{gitGraphDiagram-IHSO6WYX-BUJNSssA.js → gitGraphDiagram-IHSO6WYX-BVRc2mkM.js} +3 -3
  187. package/dist/{gitGraphDiagram-IHSO6WYX-DW06165m.cjs → gitGraphDiagram-IHSO6WYX-DODKoP1i.cjs} +1 -1
  188. package/dist/github-BjP57_Xw.js +11 -0
  189. package/dist/github-_spzUZUJ.cjs +2 -0
  190. package/dist/{glass-BniIptBE.js → glass-TzHfgesD.js} +6 -6
  191. package/dist/glass.js +1 -1
  192. package/dist/globe-0D8896Sf.js +15 -0
  193. package/dist/globe-DOwlStJB.cjs +6 -0
  194. package/dist/home-C2_ARWjR.cjs +1 -0
  195. package/dist/home-COHVdQmi.js +10 -0
  196. package/dist/i18n-B3HBw6rL.js +1 -0
  197. package/dist/i18n-Cf5TtRb4-BeflTU82.js +175 -0
  198. package/dist/i18n.js +3 -2
  199. package/dist/icon-BoaQYEij.js +318 -0
  200. package/dist/icon.js +1 -1
  201. package/dist/icons.js +91 -3
  202. package/dist/iife/button.iife.js +1 -1
  203. package/dist/iife/card.iife.js +1 -1
  204. package/dist/iife/checkbox.iife.js +1 -1
  205. package/dist/iife/colorpicker.iife.js +235 -2
  206. package/dist/iife/content.iife.js +1 -1
  207. package/dist/iife/dropdown.iife.js +1 -1
  208. package/dist/iife/form.iife.js +1 -1
  209. package/dist/iife/glass.iife.js +1 -1
  210. package/dist/iife/icon.iife.js +238 -1
  211. package/dist/iife/image.iife.js +1 -1
  212. package/dist/iife/input.iife.js +238 -1
  213. package/dist/iife/link.iife.js +1 -1
  214. package/dist/iife/loading.iife.js +1 -1
  215. package/dist/iife/math.iife.js +332 -260
  216. package/dist/iife/mermaid.iife.js +489 -252
  217. package/dist/iife/message.iife.js +238 -1
  218. package/dist/iife/modal.iife.js +1 -1
  219. package/dist/iife/player.iife.js +243 -10
  220. package/dist/iife/popover.iife.js +1 -1
  221. package/dist/iife/progress.iife.js +1 -1
  222. package/dist/iife/radar.iife.js +1 -1
  223. package/dist/iife/route.iife.js +1 -1
  224. package/dist/iife/router.iife.js +1 -1
  225. package/dist/iife/scratch.iife.js +1 -1
  226. package/dist/iife/section.iife.js +1 -1
  227. package/dist/iife/select.iife.js +235 -2
  228. package/dist/iife/skeleton.iife.js +1 -1
  229. package/dist/iife/tab.iife.js +1 -1
  230. package/dist/iife/tabpane.iife.js +1 -1
  231. package/dist/iife/theme-switch.iife.js +1 -1
  232. package/dist/{image-CqoQfJoV.js → image-CNpdv9k_.js} +8 -8
  233. package/dist/image.js +1 -1
  234. package/dist/index.cjs +26 -263
  235. package/dist/index.d.ts +9 -0
  236. package/dist/index.iife.js +617 -781
  237. package/dist/index.js +88 -87
  238. package/dist/info-DKCQHKI2-Chhdpnw0.cjs +1 -0
  239. package/dist/info-circle-Ciy6yKz-.js +14 -0
  240. package/dist/info-circle-fill-ChhhmoCU.cjs +1 -0
  241. package/dist/info-circle-fill-D5WjbRhd.js +10 -0
  242. package/dist/info-circle-xp0NNK4i.cjs +5 -0
  243. package/dist/infoDiagram-FWYZ7A6U-D_0rNuCQ.cjs +2 -0
  244. package/dist/{infoDiagram-FWYZ7A6U-Dc0m9qAx.js → infoDiagram-FWYZ7A6U-Z_GyAL7u.js} +3 -3
  245. package/dist/input-_iNjylVC.js +195 -0
  246. package/dist/input.js +1 -1
  247. package/dist/{ishikawaDiagram-FXEZZL3T-DuFtHOmf.js → ishikawaDiagram-FXEZZL3T-l087wv0C.js} +4 -4
  248. package/dist/issue-DF89eLmN.js +11 -0
  249. package/dist/issue-jx2d2kOG.cjs +2 -0
  250. package/dist/{journeyDiagram-5HDEW3XC-Bshelnhq.js → journeyDiagram-5HDEW3XC-DmNilMKR.js} +4 -4
  251. package/dist/{kanban-definition-HUTT4EX6-Dogv2paU.js → kanban-definition-HUTT4EX6-CmUdDowM.js} +9 -9
  252. package/dist/latinmodernmath-BNPh95x3.cjs +1 -0
  253. package/dist/latinmodernmath-BnpcbCAh.js +4 -0
  254. package/dist/line-Bhz15vpy.js +9 -0
  255. package/dist/{line-BIPmUVxO.js → line-CteEpfCu.js} +1 -1
  256. package/dist/line-qgqu6ngc.cjs +1 -0
  257. package/dist/line-scale-CtMO8YfX.js +9 -0
  258. package/dist/line-scale-Dr9ILV5d.cjs +1 -0
  259. package/dist/{linear-B2AM4ZBe.js → linear-C8AjwHWi.js} +1 -1
  260. package/dist/{link-BCrmHvXP.js → link-CmMSKe18.js} +9 -9
  261. package/dist/link.js +1 -1
  262. package/dist/loading-DHQDAkef.js +116 -0
  263. package/dist/loading-_bxcEaz0.js +10 -0
  264. package/dist/loading-fDM8Celd.cjs +1 -0
  265. package/dist/loading-scene-DTIgBHY7.cjs +53 -0
  266. package/dist/loading-scene-nEgp25AV.js +62 -0
  267. package/dist/loading.js +1 -1
  268. package/dist/lock-DSKjvWfl.cjs +4 -0
  269. package/dist/lock-Dw1hWtdP.js +13 -0
  270. package/dist/math-DobANAnr.js +223 -0
  271. package/dist/math.js +1 -1
  272. package/dist/menu-DQpdpBLB.js +11 -0
  273. package/dist/menu-DdHtbEk4.cjs +2 -0
  274. package/dist/{mermaid-C1oQyPE3.js → mermaid-CwMPhttK.js} +11 -11
  275. package/dist/mermaid-parser.core-BgDzuhyE.cjs +3 -0
  276. package/dist/{mermaid.core-B2d5lQW2.js → mermaid.core-do05yX9X.js} +49 -49
  277. package/dist/{mermaid.core-a1hgpWfs.cjs → mermaid.core-r_D7CSaj.cjs} +2 -2
  278. package/dist/mermaid.js +1 -1
  279. package/dist/message-BFv9-X-4.js +10 -0
  280. package/dist/{message-CNdmbeLf.js → message-CT-at-dX.js} +24 -21
  281. package/dist/message-DHzOpb1d.cjs +1 -0
  282. package/dist/message.js +1 -1
  283. package/dist/{mindmap-definition-LN4V7U3C-f7s5ZePP.js → mindmap-definition-LN4V7U3C-Mj5HCDww.js} +12 -12
  284. package/dist/modal-COzuPRoz.cjs +2 -0
  285. package/dist/{modal-gRagDkTb.js → modal-DkFW7_It.js} +12 -12
  286. package/dist/modal.js +1 -1
  287. package/dist/more-l0-w-c99.js +11 -0
  288. package/dist/more-tqkE9a7G.cjs +2 -0
  289. package/dist/packet-7NZHBO7P-BIgRfmDy.cjs +1 -0
  290. package/dist/pacman-C7_BcAl5.cjs +1 -0
  291. package/dist/pacman-DSIM9KGC.js +9 -0
  292. package/dist/pegDiagram-2B236MQR-CTcfU4SV.cjs +1 -0
  293. package/dist/{pegDiagram-2B236MQR-B-Xeh55J.js → pegDiagram-2B236MQR-Crdw8nmA.js} +4 -4
  294. package/dist/pie-RZYD4A2V-BJEu4CoQ.cjs +1 -0
  295. package/dist/{pieDiagram-ENE6RG2P-CVSE95zc.js → pieDiagram-ENE6RG2P-9GNsaY-6.js} +6 -6
  296. package/dist/{pieDiagram-ENE6RG2P-BkSiP4iu.cjs → pieDiagram-ENE6RG2P-D1QD_sOE.cjs} +2 -2
  297. package/dist/{player-BkkmkqR4.js → player-Dhv_QP4a.js} +112 -113
  298. package/dist/player.js +1 -1
  299. package/dist/plugins/load-svg.d.ts +16 -3
  300. package/dist/plus-C91b38f6.js +11 -0
  301. package/dist/plus-DjDn222b.cjs +2 -0
  302. package/dist/{popover-BZKSLe3D.js → popover-DR5ua2_I.js} +17 -15
  303. package/dist/popover.js +1 -1
  304. package/dist/power-off-CM1fKRrr.js +10 -0
  305. package/dist/power-off-C_Akq2D-.cjs +1 -0
  306. package/dist/preview-ByPt3tw_.cjs +1 -0
  307. package/dist/preview-CAEhg4Xl.js +10 -0
  308. package/dist/{progress-vk40tuhm.js → progress-BRIBVXqD.js} +13 -12
  309. package/dist/progress.js +1 -1
  310. package/dist/pulse-DNmbppj-.js +9 -0
  311. package/dist/pulse-QISsDmFE.cjs +1 -0
  312. package/dist/{quadrantDiagram-ABIIQ3AL-TJ8FmqES.js → quadrantDiagram-ABIIQ3AL-rDltxRrQ.js} +3 -3
  313. package/dist/{radar-Bg0cexzU.js → radar-B9eKnRw8.js} +12 -10
  314. package/dist/radar-I7S5WNFK-DYV5_m9_.cjs +1 -0
  315. package/dist/radar.js +1 -1
  316. package/dist/railroad-3IZDKUUU-6oFUgWYG.cjs +1 -0
  317. package/dist/railroad-abnf-AHOZXSZD-DY3xJn9p.cjs +1 -0
  318. package/dist/railroad-ebnf-EBAXGLYW-DljDdad3.cjs +1 -0
  319. package/dist/railroad-peg-LSFZ7HO6-DNRdpVaC.cjs +1 -0
  320. package/dist/{railroadDiagram-RFXS5EU6-0lS5wYI7.js → railroadDiagram-RFXS5EU6-B6b0YncQ.js} +4 -4
  321. package/dist/railroadDiagram-RFXS5EU6-DCqD-VXV.cjs +1 -0
  322. package/dist/refresh-CjGodz5_.cjs +1 -0
  323. package/dist/{requirementDiagram-TGXJPOKE-viCQLyJd.js → requirementDiagram-TGXJPOKE-BVEkrDX1.js} +12 -12
  324. package/dist/rolldown-runtime-DkpYurw3.js +25 -0
  325. package/dist/rotate-BX5qIRKZ.js +9 -0
  326. package/dist/rotate-VMR047YI.cjs +1 -0
  327. package/dist/{route-CGwS0cd_.js → route-C9sC9d8P.js} +10 -11
  328. package/dist/route.js +1 -1
  329. package/dist/{router-BK6DEkcN.js → router-CID9Dasr.js} +11 -11
  330. package/dist/router.js +1 -1
  331. package/dist/{sankeyDiagram-HTMAVEWB-CV6_AuMF.js → sankeyDiagram-HTMAVEWB-C_G-oWGd.js} +2 -2
  332. package/dist/scale-out-DqffQsuL.js +9 -0
  333. package/dist/scale-out-aZu3503p.cjs +1 -0
  334. package/dist/{scratch-ClF1awGi.js → scratch-y8Op8fTo.js} +8 -8
  335. package/dist/scratch.js +1 -1
  336. package/dist/search-Bci4TKOK.js +11 -0
  337. package/dist/search-DewMt8lt.cjs +2 -0
  338. package/dist/{section-BL0V7Kjf.js → section-cgPwzwLR.js} +10 -10
  339. package/dist/section.js +1 -1
  340. package/dist/{select-DRKYa3W2.js → select-Bqo_7nRL.js} +52 -46
  341. package/dist/select.js +1 -1
  342. package/dist/{sequenceDiagram-DBY2YBRQ-B9WNesh2.js → sequenceDiagram-DBY2YBRQ-B8lP53eo.js} +5 -5
  343. package/dist/setting-BlJhorAQ.cjs +1 -0
  344. package/dist/setting-RhW6oH2c.js +10 -0
  345. package/dist/{skeleton-D7JIbROq.js → skeleton-wq2ybbYv.js} +9 -9
  346. package/dist/skeleton.js +1 -1
  347. package/dist/solar-BPmDmWLU.js +9 -0
  348. package/dist/solar-DaoF834l.cjs +1 -0
  349. package/dist/sort-CZTjWeHC.cjs +7 -0
  350. package/dist/sort-tAqAKb3x.js +16 -0
  351. package/dist/sprite-DHG11_c7.cjs +138 -0
  352. package/dist/sprite-ICuni2rO.js +147 -0
  353. package/dist/square-DKQ0d_O6.js +9 -0
  354. package/dist/square-DiBkWYAH.cjs +1 -0
  355. package/dist/{src-DtRLxcYO.js → src-CM-0IT-N.js} +1 -1
  356. package/dist/ssg.js +1 -1
  357. package/dist/ssr-stream.js +1 -1
  358. package/dist/{ssr-DSGwPtEd.js → ssr-vZNJHtYm.js} +5 -5
  359. package/dist/ssr.js +1 -1
  360. package/dist/{stateDiagram-2N3HPSRC-DxH4BMSh.js → stateDiagram-2N3HPSRC-DzG4g-Br.js} +15 -15
  361. package/dist/stateDiagram-v2-6OUMAXLB-tbh4Ib6Z.js +30 -0
  362. package/dist/stretch-BXJ4labN.js +9 -0
  363. package/dist/stretch-LP22YEA3.cjs +1 -0
  364. package/dist/{swimlanes-5IMT3BWC-DcADNGpg.js → swimlanes-5IMT3BWC-CQpI-vXu.js} +10 -10
  365. package/dist/swimlanesDiagram-G3AALYLV-C_mEClzT.js +31 -0
  366. package/dist/{tab-DFVtDJb2.js → tab-DMUILL_2.js} +12 -12
  367. package/dist/tab.js +1 -1
  368. package/dist/{tabpane-C3qZGN-D.js → tabpane-R8Kyn9jv.js} +11 -11
  369. package/dist/tabpane.js +1 -1
  370. package/dist/team-DshvOQrF.cjs +1 -0
  371. package/dist/team-oJOYGlHy.js +10 -0
  372. package/dist/temml-DKTWcsY9.js +9934 -0
  373. package/dist/temml-qMLYhcAb.cjs +96 -0
  374. package/dist/test/e2e/helpers.d.ts +32 -0
  375. package/dist/test/unit/select-ssr-upgrade.test.d.ts +1 -0
  376. package/dist/text-8gI5TFOa.js +17 -0
  377. package/dist/text-C_XRjuGr.cjs +1 -0
  378. package/dist/theme-DAG2-N5e.js +52 -0
  379. package/dist/{theme-switch-BXNH5uPD.js → theme-switch-D3MpVw-R.js} +16 -17
  380. package/dist/theme-switch.js +1 -1
  381. package/dist/theme.js +1 -1
  382. package/dist/{timeline-definition-FHXFAJF6-C80VjPLh.js → timeline-definition-FHXFAJF6-JZu2t9NH.js} +5 -5
  383. package/dist/treeView-QDETBFTQ-JVYSN7d-.cjs +1 -0
  384. package/dist/treemap-6X3UGDF4-ChqvozdN.cjs +1 -0
  385. package/dist/triple-bounce-CMwTsw-f.js +9 -0
  386. package/dist/triple-bounce-CNjk5imb.cjs +1 -0
  387. package/dist/typings.d.ts +9 -0
  388. package/dist/unlock-B6Kz8QUC.cjs +4 -0
  389. package/dist/unlock-DMG2IKZP.js +13 -0
  390. package/dist/user-BvjpVTOP.js +10 -0
  391. package/dist/user-CNTRFuXZ.cjs +1 -0
  392. package/dist/utils/builder/escape.d.ts +6 -1
  393. package/dist/utils/dom.d.ts +2 -15
  394. package/dist/utils/i18n/index.d.ts +2 -69
  395. package/dist/utils/i18n.js +5 -87
  396. package/dist/utils/index.d.ts +2 -1
  397. package/dist/utils/style.d.ts +7 -5
  398. package/dist/utils-DqjNwwjC.js +48 -0
  399. package/dist/utils-nntJky78.js +646 -0
  400. package/dist/{vennDiagram-L72KCM5P-BYHB7OW8.js → vennDiagram-L72KCM5P-DM6fQj7p.js} +4 -4
  401. package/dist/wardley-OPB4EBWU-BI6su3co.cjs +1 -0
  402. package/dist/{wardleyDiagram-EHGQE667--ubmCaWM.js → wardleyDiagram-EHGQE667-CzH0l2vj.js} +4 -4
  403. package/dist/{wardleyDiagram-EHGQE667-K6ckkRZS.cjs → wardleyDiagram-EHGQE667-ZMxVQw17.cjs} +2 -2
  404. package/dist/warning-circle-2Ni7fSPp.js +10 -0
  405. package/dist/warning-circle-CxDUN_Pg.cjs +1 -0
  406. package/dist/warning-circle-fill-CNmn_n74.js +10 -0
  407. package/dist/warning-circle-fill-CRKQ8eDt.cjs +1 -0
  408. package/dist/without-content-BCQsfG1Q.cjs +1 -0
  409. package/dist/without-content-C7ATBu1N.js +10 -0
  410. package/dist/{xychartDiagram-FW5EYKEG-DLqWcTPt.js → xychartDiagram-FW5EYKEG-GL1uK3EN.js} +8 -8
  411. package/dist/zoom-in-BLTVwnRI.cjs +1 -0
  412. package/dist/zoom-out-BIXvVAC9.cjs +1 -0
  413. package/docs/COMPONENTS.md +5 -5
  414. package/package.json +119 -35
  415. package/typings.d.ts +9 -0
  416. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +0 -1
  417. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +0 -1
  418. package/dist/builtin-1lUEp_ro.js +0 -416
  419. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +0 -30
  420. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +0 -30
  421. package/dist/colorpicker-CKA4xN-g.js +0 -314
  422. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +0 -1
  423. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +0 -1
  424. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +0 -1
  425. package/dist/factory-ZNhcQ4tf.js +0 -482
  426. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +0 -19
  427. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +0 -1
  428. package/dist/icon-GZrfSeon.js +0 -256
  429. package/dist/info-DKCQHKI2-DNOtUIin.cjs +0 -1
  430. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +0 -2
  431. package/dist/input-ZY2Wumze.js +0 -195
  432. package/dist/katex-es-BTpuCxxV.cjs +0 -261
  433. package/dist/katex-es-CKRwcaiU.js +0 -23682
  434. package/dist/loading-M6gWxLbm.js +0 -206
  435. package/dist/math-8E-45Y8e.js +0 -52
  436. package/dist/mermaid-parser.core-DYumW1vq.cjs +0 -6
  437. package/dist/mocks-CMGoftIc.js +0 -179
  438. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +0 -1
  439. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +0 -1
  440. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +0 -1
  441. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +0 -1
  442. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +0 -1
  443. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +0 -1
  444. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +0 -1
  445. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +0 -1
  446. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +0 -1
  447. package/dist/rolldown-runtime-9ZSF5uba.js +0 -16
  448. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +0 -30
  449. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +0 -31
  450. package/dist/test/unit/colorpicker.color.utils.test.d.ts +0 -1
  451. package/dist/test/unit/utils.math.test.d.ts +0 -1
  452. package/dist/test/unit/utils.tween.test.d.ts +0 -1
  453. package/dist/theme-kOWZbKCq.js +0 -70
  454. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +0 -1
  455. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +0 -1
  456. package/dist/utils/color.d.ts +0 -52
  457. package/dist/utils/image.d.ts +0 -39
  458. package/dist/utils/math.d.ts +0 -26
  459. package/dist/utils/tween.d.ts +0 -21
  460. package/dist/utils-D1iZnChu.js +0 -614
  461. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +0 -1
  462. package/dist/warning-circle-fill-Cz0qu7AH.js +0 -23
@@ -1,16 +1,52 @@
1
1
  import { RanElement } from '@/utils/index';
2
+ import { EventManager } from '@/utils/builder';
3
+ import '@/components/icon';
2
4
  export declare class Math extends RanElement {
3
- contain: HTMLElement;
5
+ _events: EventManager;
4
6
  _shadowDom: ShadowRoot;
7
+ _wrap: HTMLElement;
8
+ contain: HTMLElement;
9
+ _toolbar: HTMLElement;
10
+ _copyResetTimer?: number;
11
+ _downloadMenu?: HTMLElement;
5
12
  static get observedAttributes(): string[];
6
13
  constructor();
7
14
  get latex(): string;
8
15
  set latex(value: string);
16
+ get display(): string;
17
+ set display(value: string);
18
+ get font(): string;
19
+ set font(value: string);
20
+ get macros(): Record<string, string> | undefined;
21
+ set macros(value: Record<string, string> | string | undefined);
22
+ get wrap(): 'none' | 'tex' | '=' | undefined;
23
+ set wrap(value: string);
24
+ get copyable(): boolean;
25
+ set copyable(v: boolean);
26
+ get copyTarget(): 'source' | 'mathml';
27
+ get downloadable(): boolean;
28
+ set downloadable(v: boolean);
9
29
  get sheet(): string;
10
30
  set sheet(value: string);
31
+ private label;
32
+ private emit;
11
33
  handlerExternalCss: () => void;
34
+ private showError;
12
35
  render(): void;
36
+ private iconButton;
37
+ private buildToolbar;
38
+ private currentMathML;
39
+ private copyContent;
40
+ private downloadFormats;
41
+ private onDownload;
42
+ private triggerDownload;
43
+ private saveBlob;
44
+ private downloadSource;
45
+ private downloadMathML;
46
+ private toggleDownloadMenu;
47
+ private closeDownloadMenu;
13
48
  connectedCallback(): void;
49
+ disconnectedCallback(): void;
14
50
  attributeChangedCallback(k: string, o: string | null, n: string | null): void;
15
51
  }
16
52
  export default Math;
@@ -226,7 +226,6 @@ export declare class RanPlayer extends RanPlayer_base {
226
226
  * @return {*}
227
227
  */
228
228
  updateCurrentProgress: () => void;
229
- changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
230
229
  /**
231
230
  * @description: 点击整个视频时,触发的事件
232
231
  * @param {*} void
@@ -51,22 +51,22 @@ export declare class Popover extends RanElement {
51
51
  * @description: 焦点移除的情况,需要移除下拉框
52
52
  * @return {*}
53
53
  */
54
- blur: any;
54
+ blur: import("ranuts/utils").Debounced<() => void>;
55
55
  /**
56
56
  * @description: 移除下拉框
57
57
  * @return {*}
58
58
  */
59
- removeDropDownTimeId: any;
59
+ removeDropDownTimeId: import("ranuts/utils").Debounced<() => void>;
60
60
  /**
61
61
  * @description: 添加 dropdown
62
62
  * @return {*}
63
63
  */
64
- setDropdownDisplayBlock: any;
64
+ setDropdownDisplayBlock: import("ranuts/utils").Debounced<() => void>;
65
65
  /**
66
66
  * @description: 移除 select dropdown
67
67
  * @return {*}
68
68
  */
69
- setDropdownDisplayNone: any;
69
+ setDropdownDisplayNone: import("ranuts/utils").Debounced<() => void>;
70
70
  /**
71
71
  * @description: 设置 popover 位置
72
72
  * @param {*} void
@@ -85,7 +85,7 @@ export declare class Popover extends RanElement {
85
85
  clickRemovePopover: (e: Event) => void;
86
86
  popoverTrigger: () => void;
87
87
  hoverRemovePopover: (e: Event) => void;
88
- changePlacement: any;
88
+ changePlacement: import("ranuts/utils").Debounced<() => void>;
89
89
  connectedCallback(): void;
90
90
  disconnectedCallback(): void;
91
91
  attributeChangedCallback(n: string, o: string, v: string): void;
@@ -63,6 +63,20 @@ export declare class Select extends RanElement {
63
63
  getDropdownOptions: () => HTMLElement[];
64
64
  syncActiveState: () => void;
65
65
  setActiveOptionByIndex: (targetIndex: number) => void;
66
+ /**
67
+ * Vertically center the closed-state label by matching its line-height to the
68
+ * host height.
69
+ *
70
+ * Guarded on a non-zero height: during a custom-element **upgrade** (SSR/DSD
71
+ * markup, or any element whose `value` attribute is present before it is laid
72
+ * out) `attributeChangedCallback` runs before `connectedCallback`, so
73
+ * `getBoundingClientRect()` still reports 0. Writing `line-height: 0px` then
74
+ * collapses the label to invisible even though its text is correct — the
75
+ * component looks empty until something re-selects the option. When there is
76
+ * no layout yet we clear the inline value and let the stylesheet decide;
77
+ * `connectedCallback` re-applies it once the element has a box.
78
+ */
79
+ applyLabelLineHeight: () => void;
66
80
  selectOptionElement: (optionElement: HTMLElement | null, shouldDispatch?: boolean) => void;
67
81
  isDropdownOpen: () => boolean;
68
82
  /**
@@ -131,6 +145,15 @@ export declare class Select extends RanElement {
131
145
  changeSearch: (e: Event) => void;
132
146
  clickRemoveSelect: (e: Event) => void;
133
147
  connectedCallback(): void;
148
+ /**
149
+ * Re-run the `value` → label/active-option reflection after connect.
150
+ *
151
+ * `syncSelectedFromValue` bails out when `_activeOption` already matches, which
152
+ * is exactly the situation left behind by an upgrade-time sync: the option was
153
+ * marked active but the label was written without layout. Clearing the cached
154
+ * option first forces a full, correct pass.
155
+ */
156
+ reapplyValueAfterConnect: () => void;
134
157
  /**
135
158
  * (Re)wire the search-box listeners to match the current `showSearch` value.
136
159
  * Reactive: abort any previously-registered search listeners first, then
@@ -1,13 +1,13 @@
1
- import { n as s, t as o } from "./utils-D1iZnChu.js";
2
- import { p as i } from "./factory-ZNhcQ4tf.js";
3
- import { a, n } from "./ssr-DSGwPtEd.js";
4
- var r = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{visibility:hidden;position:absolute}", c = class extends n {
1
+ import { p as s } from "./factory-Ce9hR27Y.js";
2
+ import { a as o, n as i } from "./ssr-vZNJHtYm.js";
3
+ import { n as a, t as n } from "./utils-DqjNwwjC.js";
4
+ var r = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{visibility:hidden;position:absolute}", c = class extends i {
5
5
  observer;
6
6
  _shadowDom;
7
7
  _slot;
8
8
  constructor() {
9
- super(), this._shadowDom = s(this, r);
10
- const t = o(this._shadowDom, ".slot", () => i().class("slot").build());
9
+ super(), this._shadowDom = a(this, r);
10
+ const t = n(this._shadowDom, ".slot", () => s().class("slot").build());
11
11
  this._slot = t, this.observer = new MutationObserver(this.callback);
12
12
  }
13
13
  callback = (t) => {
@@ -33,7 +33,7 @@ var r = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
33
33
  this.observer.disconnect();
34
34
  }
35
35
  };
36
- a("r-content", c);
36
+ o("r-content", c);
37
37
  export {
38
38
  c as t
39
39
  };
package/dist/content.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as o } from "./content-YOKzMoc7.js";
1
+ import { t as o } from "./content-WyCTQEb9.js";
2
2
  export {
3
3
  o as Content,
4
4
  o as default
@@ -0,0 +1 @@
1
+ const r=require("./rolldown-runtime-CAnuVJ4g.cjs");var t=r.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></g></svg>'};Object.defineProperty(exports,"copy_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"copy_exports",{enumerable:!0,get:function(){return t}});
@@ -1,6 +1,6 @@
1
- import { n as st, t as $ } from "./rolldown-runtime-9ZSF5uba.js";
1
+ import { r as st, t as $ } from "./rolldown-runtime-DkpYurw3.js";
2
2
  import { n as B } from "./chunk-Y2CYZVJY-0JxdZxki.js";
3
- import { m as k, p as ot } from "./src-DtRLxcYO.js";
3
+ import { m as k, p as ot } from "./src-CM-0IT-N.js";
4
4
  import { t as K } from "./cytoscape.esm-CFq1_DTa.js";
5
5
  var Q = /* @__PURE__ */ $(((w, _) => {
6
6
  (function(O, y) {
@@ -0,0 +1 @@
1
+ const a=require("./builder-BjRti6oP.cjs");var i=".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube{width:var(--loading-cube-width, 2em);height:var(--loading-cube-width, 2em);position:var(--loading-cube-width, relative)}.ran-loading .cube .cube1{background:var(--loading-cube1-background, var(--ran-color-primary, #4096ff));width:var(--loading-cube1-width, 2em);height:var(--loading-cube1-height, 2em);position:var(--loading-cube1-position, absolute);top:var(--loading-cube1-top, 0);left:var(--loading-cube1-left, 0);animation:var(--loading-cube1-animation, ran-loading-cube 1.8s infinite ease-in-out);animation-play-state:var(--loading-cube1-animation-play-state, running)}.ran-loading .cube .cube2{background:var(--loading-cube2-background, var(--ran-color-primary, #4096ff));width:var(--loading-cube2-width, 2em);height:var(--loading-cube2-height, 2em);position:var(--loading-cube2-position, absolute);top:var(--loading-cube2-top, 0);left:var(--loading-cube2-left, 0);animation:var(--loading-cube2-animation, ran-loading-cube 1.8s infinite ease-in-out);animation-delay:var(--loading-cube2-animation-delay, -.9s);animation-play-state:var(--loading-cube2-animation-play-state, running)}@keyframes ran-loading-cube{25%{transform:var(--loading-cube-keyframes-25, translateX(42px) rotate(-90deg) scale(.5))}50%{transform:var(--loading-cube-keyframes-50, translateX(42px) translateY(42px) rotate(-179deg))}50.1%{transform:var(--loading-cube-keyframes-501, translateX(42px) translateY(42px) rotate(-180deg))}75%{transform:var(--loading-cube-keyframes-75, translateX(0px) translateY(42px) rotate(-270deg) scale(.5))}to{transform:var(--loading-cube-keyframes-100, rotate(-360deg))}}",t=()=>a.Div().class("cube").part("cube").children(...Array(2).fill(1).map((r,e)=>a.Div().class(`cube${e+1}`))).build(),n={css:i,render:t};exports.default=n;
@@ -0,0 +1,9 @@
1
+ import { i as a } from "./factory-Ce9hR27Y.js";
2
+ import "./ssr-vZNJHtYm.js";
3
+ var i = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube{width:var(--loading-cube-width, 2em);height:var(--loading-cube-width, 2em);position:var(--loading-cube-width, relative)}.ran-loading .cube .cube1{background:var(--loading-cube1-background, var(--ran-color-primary, #4096ff));width:var(--loading-cube1-width, 2em);height:var(--loading-cube1-height, 2em);position:var(--loading-cube1-position, absolute);top:var(--loading-cube1-top, 0);left:var(--loading-cube1-left, 0);animation:var(--loading-cube1-animation, ran-loading-cube 1.8s infinite ease-in-out);animation-play-state:var(--loading-cube1-animation-play-state, running)}.ran-loading .cube .cube2{background:var(--loading-cube2-background, var(--ran-color-primary, #4096ff));width:var(--loading-cube2-width, 2em);height:var(--loading-cube2-height, 2em);position:var(--loading-cube2-position, absolute);top:var(--loading-cube2-top, 0);left:var(--loading-cube2-left, 0);animation:var(--loading-cube2-animation, ran-loading-cube 1.8s infinite ease-in-out);animation-delay:var(--loading-cube2-animation-delay, -.9s);animation-play-state:var(--loading-cube2-animation-play-state, running)}@keyframes ran-loading-cube{25%{transform:var(--loading-cube-keyframes-25, translateX(42px) rotate(-90deg) scale(.5))}50%{transform:var(--loading-cube-keyframes-50, translateX(42px) translateY(42px) rotate(-179deg))}50.1%{transform:var(--loading-cube-keyframes-501, translateX(42px) translateY(42px) rotate(-180deg))}75%{transform:var(--loading-cube-keyframes-75, translateX(0px) translateY(42px) rotate(-270deg) scale(.5))}to{transform:var(--loading-cube-keyframes-100, rotate(-360deg))}}", t = () => a().class("cube").part("cube").children(...Array(2).fill(1).map((n, e) => a().class(`cube${e + 1}`))).build(), l = {
4
+ css: i,
5
+ render: t
6
+ };
7
+ export {
8
+ l as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import { i } from "./factory-Ce9hR27Y.js";
2
+ import "./ssr-vZNJHtYm.js";
3
+ var a = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube-dim{height:var(--loading-cube-dim-height, 9em);width:var(--loading-cube-dim-width, 9em);padding:var(--loading-cube-dim-padding, 3em);transform:var(--loading-cube-dim-transform, rotateX(45deg) rotateZ(45deg));transform-style:var(--loading-cube-dim-transform-style, preserve-3d)}@keyframes anim{50%{transform:var(--loading-cube-dim-width, translateZ(.5em))}}.ran-loading .cube-dim-item{background-color:var(--loading-cube-dim-item-background-color, #05afd1);position:var(--loading-cube-dim-item-position, relative);transform:var(--loading-cube-dim-item-transform, translateZ(3em));transform-style:var(--loading-cube-dim-item-transform-style, preserve-3d);transition:var(--loading-cube-dim-item-transition, transform .25s);box-shadow:var(--loading-cube-dim-item-box-shadow, 13em 13em 1.5em rgba(0, 0, 0, .1));animation:var(--loading-cube-dim-item-animation, anim 1s infinite);animation-play-state:var(--loading-cube-dim-item-animation-play-state, running);float:var(--loading-cube-dim-item-float, left);height:var(--loading-cube-dim-item-height, 3em);width:var(--loading-cube-dim-item-width, 3em)}.ran-loading .cube-dim-item:nth-child(1){animation-delay:var(--loading-cube-dim-item-nth-child-1-animation-delay, .05s)}.ran-loading .cube-dim-item:nth-child(2){animation-delay:var(--loading-cube-dim-item-nth-child-2-animation-delay, .1s)}.ran-loading .cube-dim-item:nth-child(3){animation-delay:var(--loading-cube-dim-item-nth-child-3-animation-delay, .15s)}.ran-loading .cube-dim-item:nth-child(4){animation-delay:var(--loading-cube-dim-item-nth-child-4-animation-delay, .2s)}.ran-loading .cube-dim-item:nth-child(5){animation-delay:var(--loading-cube-dim-item-nth-child-5-animation-delay, .25s)}.ran-loading .cube-dim-item:nth-child(6){animation-delay:var(--loading-cube-dim-item-nth-child-6-animation-delay, .3s)}.ran-loading .cube-dim-item:nth-child(7){animation-delay:var(--loading-cube-dim-item-nth-child-7-animation-delay, .35s)}.ran-loading .cube-dim-item:nth-child(8){animation-delay:var(--loading-cube-dim-item-nth-child-8-animation-delay, .4s)}.ran-loading .cube-dim-item:nth-child(9){animation-delay:var(--loading-cube-dim-item-nth-child-9-animation-delay, .45s)}.ran-loading .cube-dim-item:before{content:var(--loading-cube-dim-item-before-content, "");float:var(--loading-cube-dim-item-before-float, left);height:var(--loading-cube-dim-item-before-height, 3em);position:var(--loading-cube-dim-item-before-position, absolute);width:var(--loading-cube-dim-item-before-width, 3em);background-color:var(--loading-cube-dim-item-before-background-color, #048ca7);transform:var(--loading-cube-dim-item-before-transform, rotateY(90deg) translateX(3em));transform-origin:var(--loading-cube-dim-item-before-transform-origin, 100% 0)}.ran-loading .cube-dim-item:after{content:var(--loading-cube-dim-item-after-content, "");float:var(--loading-cube-dim-item-after-float, left);height:var(--loading-cube-dim-item-after-height, 3em);position:var(--loading-cube-dim-item-after-position, absolute);width:var(--loading-cube-dim-item-after-width, 3em);background-color:var(--loading-cube-dim-item-after-background-color, #049dbc);transform:var(--loading-cube-dim-item-after-transform, rotateX(-90deg) translateY(3em));transform-origin:var(--loading-cube-dim-item-after-transform-origin, 100% 100%)}', e = () => i().class("cube-dim").part("cube-dim").children(...Array(9).fill(1).map(() => i().class("cube-dim-item"))).build(), d = {
4
+ css: a,
5
+ render: e
6
+ };
7
+ export {
8
+ d as default
9
+ };
@@ -0,0 +1 @@
1
+ const i=require("./builder-BjRti6oP.cjs");var a='.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube-dim{height:var(--loading-cube-dim-height, 9em);width:var(--loading-cube-dim-width, 9em);padding:var(--loading-cube-dim-padding, 3em);transform:var(--loading-cube-dim-transform, rotateX(45deg) rotateZ(45deg));transform-style:var(--loading-cube-dim-transform-style, preserve-3d)}@keyframes anim{50%{transform:var(--loading-cube-dim-width, translateZ(.5em))}}.ran-loading .cube-dim-item{background-color:var(--loading-cube-dim-item-background-color, #05afd1);position:var(--loading-cube-dim-item-position, relative);transform:var(--loading-cube-dim-item-transform, translateZ(3em));transform-style:var(--loading-cube-dim-item-transform-style, preserve-3d);transition:var(--loading-cube-dim-item-transition, transform .25s);box-shadow:var(--loading-cube-dim-item-box-shadow, 13em 13em 1.5em rgba(0, 0, 0, .1));animation:var(--loading-cube-dim-item-animation, anim 1s infinite);animation-play-state:var(--loading-cube-dim-item-animation-play-state, running);float:var(--loading-cube-dim-item-float, left);height:var(--loading-cube-dim-item-height, 3em);width:var(--loading-cube-dim-item-width, 3em)}.ran-loading .cube-dim-item:nth-child(1){animation-delay:var(--loading-cube-dim-item-nth-child-1-animation-delay, .05s)}.ran-loading .cube-dim-item:nth-child(2){animation-delay:var(--loading-cube-dim-item-nth-child-2-animation-delay, .1s)}.ran-loading .cube-dim-item:nth-child(3){animation-delay:var(--loading-cube-dim-item-nth-child-3-animation-delay, .15s)}.ran-loading .cube-dim-item:nth-child(4){animation-delay:var(--loading-cube-dim-item-nth-child-4-animation-delay, .2s)}.ran-loading .cube-dim-item:nth-child(5){animation-delay:var(--loading-cube-dim-item-nth-child-5-animation-delay, .25s)}.ran-loading .cube-dim-item:nth-child(6){animation-delay:var(--loading-cube-dim-item-nth-child-6-animation-delay, .3s)}.ran-loading .cube-dim-item:nth-child(7){animation-delay:var(--loading-cube-dim-item-nth-child-7-animation-delay, .35s)}.ran-loading .cube-dim-item:nth-child(8){animation-delay:var(--loading-cube-dim-item-nth-child-8-animation-delay, .4s)}.ran-loading .cube-dim-item:nth-child(9){animation-delay:var(--loading-cube-dim-item-nth-child-9-animation-delay, .45s)}.ran-loading .cube-dim-item:before{content:var(--loading-cube-dim-item-before-content, "");float:var(--loading-cube-dim-item-before-float, left);height:var(--loading-cube-dim-item-before-height, 3em);position:var(--loading-cube-dim-item-before-position, absolute);width:var(--loading-cube-dim-item-before-width, 3em);background-color:var(--loading-cube-dim-item-before-background-color, #048ca7);transform:var(--loading-cube-dim-item-before-transform, rotateY(90deg) translateX(3em));transform-origin:var(--loading-cube-dim-item-before-transform-origin, 100% 0)}.ran-loading .cube-dim-item:after{content:var(--loading-cube-dim-item-after-content, "");float:var(--loading-cube-dim-item-after-float, left);height:var(--loading-cube-dim-item-after-height, 3em);position:var(--loading-cube-dim-item-after-position, absolute);width:var(--loading-cube-dim-item-after-width, 3em);background-color:var(--loading-cube-dim-item-after-background-color, #049dbc);transform:var(--loading-cube-dim-item-after-transform, rotateX(-90deg) translateY(3em));transform-origin:var(--loading-cube-dim-item-after-transform-origin, 100% 100%)}',e=()=>i.Div().class("cube-dim").part("cube-dim").children(...Array(9).fill(1).map(()=>i.Div().class("cube-dim-item"))).build(),t={css:a,render:e};exports.default=t;
@@ -0,0 +1,9 @@
1
+ import { i as e } from "./factory-Ce9hR27Y.js";
2
+ import "./ssr-vZNJHtYm.js";
3
+ var o = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube-fold{width:var(--loading-cube-fold-width, 4em);height:var(--loading-cube-fold-height, 4em);position:var(--loading-cube-fold-position, relative);margin:var(--loading-cube-fold-margin, auto);transform:var(--loading-cube-fold-transform, rotateZ(45deg))}@keyframes cube-fold{0%,10%{transform:var(--loading-cube-fold-keyframes-0-transform, perspective(140px) rotateX(-180deg));opacity:var(--loading-cube-fold-keyframes-0-opacity, 0)}25%,75%{transform:var(--loading-cube-fold-keyframes-25-transform, perspective(140px) rotateX(0deg));opacity:var(--loading-cube-fold-keyframes-25-opacity, 1)}90%,to{transform:var(--loading-cube-fold-keyframes-90-transform, perspective(140px) rotateY(180deg));opacity:var(--loading-cube-fold-keyframes-90-opacity, 0)}}.ran-loading .cube-fold-item{float:var(--loading-cube-fold-item-float, left);width:var(--loading-cube-fold-item-width, 50%);height:var(--loading-cube-fold-item-height, 50%);position:var(--loading-cube-fold-item-position, relative);transform:var(--loading-cube-fold-item-transform, scale(1.1))}.ran-loading .cube-fold-item:before{content:var(--loading-cube-fold-item-before-content, " ");position:var(--loading-cube-fold-item-before-position, absolute);top:var(--loading-cube-fold-item-before-top, 0);left:var(--loading-cube-fold-item-before-left, 0);width:var(--loading-cube-fold-item-before-width, 100%);height:var(--loading-cube-fold-item-before-height, 100%);background:var(--loading-cube-fold-item-before-background, #337ab7);animation:var(--loading-cube-fold-item-before-animation, cube-fold 2.4s infinite linear both);animation-play-state:var(--loading-cube-fold-item-before-animation-play-state, running);transform-origin:var(--loading-cube-fold-item-before-transform-origin, 100% 100%)}.ran-loading .cube-fold-item-2{transform:var(--loading-cube-fold-item-2-transform, scale(1.1) rotateZ(90deg))}.ran-loading .cube-fold-item-2:before{animation-delay:var(--loading-cube-fold-item-2-before-animation-delay, .3s)}.ran-loading .cube-fold-item-3{transform:var(--loading-cube-fold-item-3-transform, scale(1.1) rotateZ(270deg))}.ran-loading .cube-fold-item-3:before{animation-delay:var(--loading-cube-fold-item-3-before-animation-delay, .9s)}.ran-loading .cube-fold-item-4{transform:var(--loading-cube-fold-item-4-transform, scale(1.1) rotateZ(180deg))}.ran-loading .cube-fold-item-4:before{animation-delay:var(--loading-cube-fold-item-4-before-animation-delay, .6s)}', i = () => e().class("cube-fold").part("cube-fold").children(...Array(4).fill(1).map((t, a) => e().class(`cube-fold-item cube-fold-item-${a + 1}`))).build(), n = {
4
+ css: o,
5
+ render: i
6
+ };
7
+ export {
8
+ n as default
9
+ };
@@ -0,0 +1 @@
1
+ const e=require("./builder-BjRti6oP.cjs");var o='.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube-fold{width:var(--loading-cube-fold-width, 4em);height:var(--loading-cube-fold-height, 4em);position:var(--loading-cube-fold-position, relative);margin:var(--loading-cube-fold-margin, auto);transform:var(--loading-cube-fold-transform, rotateZ(45deg))}@keyframes cube-fold{0%,10%{transform:var(--loading-cube-fold-keyframes-0-transform, perspective(140px) rotateX(-180deg));opacity:var(--loading-cube-fold-keyframes-0-opacity, 0)}25%,75%{transform:var(--loading-cube-fold-keyframes-25-transform, perspective(140px) rotateX(0deg));opacity:var(--loading-cube-fold-keyframes-25-opacity, 1)}90%,to{transform:var(--loading-cube-fold-keyframes-90-transform, perspective(140px) rotateY(180deg));opacity:var(--loading-cube-fold-keyframes-90-opacity, 0)}}.ran-loading .cube-fold-item{float:var(--loading-cube-fold-item-float, left);width:var(--loading-cube-fold-item-width, 50%);height:var(--loading-cube-fold-item-height, 50%);position:var(--loading-cube-fold-item-position, relative);transform:var(--loading-cube-fold-item-transform, scale(1.1))}.ran-loading .cube-fold-item:before{content:var(--loading-cube-fold-item-before-content, " ");position:var(--loading-cube-fold-item-before-position, absolute);top:var(--loading-cube-fold-item-before-top, 0);left:var(--loading-cube-fold-item-before-left, 0);width:var(--loading-cube-fold-item-before-width, 100%);height:var(--loading-cube-fold-item-before-height, 100%);background:var(--loading-cube-fold-item-before-background, #337ab7);animation:var(--loading-cube-fold-item-before-animation, cube-fold 2.4s infinite linear both);animation-play-state:var(--loading-cube-fold-item-before-animation-play-state, running);transform-origin:var(--loading-cube-fold-item-before-transform-origin, 100% 100%)}.ran-loading .cube-fold-item-2{transform:var(--loading-cube-fold-item-2-transform, scale(1.1) rotateZ(90deg))}.ran-loading .cube-fold-item-2:before{animation-delay:var(--loading-cube-fold-item-2-before-animation-delay, .3s)}.ran-loading .cube-fold-item-3{transform:var(--loading-cube-fold-item-3-transform, scale(1.1) rotateZ(270deg))}.ran-loading .cube-fold-item-3:before{animation-delay:var(--loading-cube-fold-item-3-before-animation-delay, .9s)}.ran-loading .cube-fold-item-4{transform:var(--loading-cube-fold-item-4-transform, scale(1.1) rotateZ(180deg))}.ran-loading .cube-fold-item-4:before{animation-delay:var(--loading-cube-fold-item-4-before-animation-delay, .6s)}',i=()=>e.Div().class("cube-fold").part("cube-fold").children(...Array(4).fill(1).map((t,a)=>e.Div().class(`cube-fold-item cube-fold-item-${a+1}`))).build(),r={css:o,render:i};exports.default=r;
@@ -0,0 +1 @@
1
+ const i=require("./builder-BjRti6oP.cjs");var e=".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube-grid{width:var(--loading-cube-grid-width, 4em);height:var(--loading-cube-grid-height, 4em);margin:var(--loading-cube-grid-margin, auto)}@keyframes cube-grid{0%,70%,to{transform:var(--loading-cube-grid-keyframes-0-transform, scale3D(1, 1, 1))}35%{transform:var(--loading-cube-grid-keyframes-35-transform, scale3D(0, 0, 1))}}.ran-loading .cube-grid-item{width:var(--loading-cube-grid-item-width, 33%);height:var(--loading-cube-grid-item-height, 33%);background:var(--loading-cube-grid-item-background, #337ab7);float:var(--loading-cube-grid-item-float, left);animation:var(--loading-cube-grid-item-animation, cube-grid 1.3s infinite ease-in-out);animation-play-state:var(--loading-cube-grid-item-animation-play-state, running)}.ran-loading .cube-grid-item-1{animation-delay:var(--loading-cube-grid-item-1-animation-delay, .2s)}.ran-loading .cube-grid-item-2{animation-delay:var(--loading-cube-grid-item-2-animation-delay, .3s)}.ran-loading .cube-grid-item-3{animation-delay:var(--loading-cube-grid-item-3-animation-delay, .4s)}.ran-loading .cube-grid-item-4{animation-delay:var(--loading-cube-grid-item-4-animation-delay, .1s)}.ran-loading .cube-grid-item-5{animation-delay:var(--loading-cube-grid-item-5-animation-delay, .2s)}.ran-loading .cube-grid-item-6{animation-delay:var(--loading-cube-grid-item-6-animation-delay, .3s)}.ran-loading .cube-grid-item-7{animation-delay:var(--loading-cube-grid-item-7-animation-delay, 0s)}.ran-loading .cube-grid-item-8{animation-delay:var(--loading-cube-grid-item-8-animation-delay, .1s)}.ran-loading .cube-grid-item-9{animation-delay:var(--loading-cube-grid-item-9-animation-delay, .2s)}",r=()=>i.Div().class("cube-grid").part("cube-grid").children(...Array(9).fill(1).map((d,a)=>i.Div().class(`cube-grid-item cube-grid-item-${a+1}`))).build(),n={css:e,render:r};exports.default=n;
@@ -0,0 +1,9 @@
1
+ import { i } from "./factory-Ce9hR27Y.js";
2
+ import "./ssr-vZNJHtYm.js";
3
+ var e = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}.ran-loading .cube-grid{width:var(--loading-cube-grid-width, 4em);height:var(--loading-cube-grid-height, 4em);margin:var(--loading-cube-grid-margin, auto)}@keyframes cube-grid{0%,70%,to{transform:var(--loading-cube-grid-keyframes-0-transform, scale3D(1, 1, 1))}35%{transform:var(--loading-cube-grid-keyframes-35-transform, scale3D(0, 0, 1))}}.ran-loading .cube-grid-item{width:var(--loading-cube-grid-item-width, 33%);height:var(--loading-cube-grid-item-height, 33%);background:var(--loading-cube-grid-item-background, #337ab7);float:var(--loading-cube-grid-item-float, left);animation:var(--loading-cube-grid-item-animation, cube-grid 1.3s infinite ease-in-out);animation-play-state:var(--loading-cube-grid-item-animation-play-state, running)}.ran-loading .cube-grid-item-1{animation-delay:var(--loading-cube-grid-item-1-animation-delay, .2s)}.ran-loading .cube-grid-item-2{animation-delay:var(--loading-cube-grid-item-2-animation-delay, .3s)}.ran-loading .cube-grid-item-3{animation-delay:var(--loading-cube-grid-item-3-animation-delay, .4s)}.ran-loading .cube-grid-item-4{animation-delay:var(--loading-cube-grid-item-4-animation-delay, .1s)}.ran-loading .cube-grid-item-5{animation-delay:var(--loading-cube-grid-item-5-animation-delay, .2s)}.ran-loading .cube-grid-item-6{animation-delay:var(--loading-cube-grid-item-6-animation-delay, .3s)}.ran-loading .cube-grid-item-7{animation-delay:var(--loading-cube-grid-item-7-animation-delay, 0s)}.ran-loading .cube-grid-item-8{animation-delay:var(--loading-cube-grid-item-8-animation-delay, .1s)}.ran-loading .cube-grid-item-9{animation-delay:var(--loading-cube-grid-item-9-animation-delay, .2s)}", r = () => i().class("cube-grid").part("cube-grid").children(...Array(9).fill(1).map((n, a) => i().class(`cube-grid-item cube-grid-item-${a + 1}`))).build(), g = {
4
+ css: e,
5
+ render: r
6
+ };
7
+ export {
8
+ g as default
9
+ };
@@ -0,0 +1 @@
1
+ require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./chunk-OSBZ3O6U-BDLnzsCC.cjs");exports.createCynefinServices=e.createCynefinServices;
@@ -1,9 +1,9 @@
1
1
  import { n as ut } from "./mermaid-parser.core-uIDZYuBu.js";
2
2
  import { n as i } from "./chunk-Y2CYZVJY-0JxdZxki.js";
3
- import { m as X } from "./src-DtRLxcYO.js";
4
- import { D as at, H as ht, K as gt, U as $t, a as bt, b as q, c as wt, f as Ct, v as Dt, w as vt, y as kt } from "./chunk-WYO6CB5R-DDHkKowO.js";
5
- import { i as K } from "./chunk-ICXQ74PX-DR8rL-xF.js";
6
- import { t as At } from "./chunk-VAUOI2AC-izt0o4id.js";
3
+ import { m as X } from "./src-CM-0IT-N.js";
4
+ import { D as at, H as ht, K as gt, U as $t, a as bt, b as q, c as wt, f as Ct, v as Dt, w as vt, y as kt } from "./chunk-WYO6CB5R-DyGmS3I6.js";
5
+ import { i as K } from "./chunk-ICXQ74PX-DPZfA3a8.js";
6
+ import { t as At } from "./chunk-VAUOI2AC-CrgGIUR-.js";
7
7
  import { t as Tt } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
8
8
  var rt = /* @__PURE__ */ i(() => ({
9
9
  domains: /* @__PURE__ */ new Map(),
@@ -1,4 +1,4 @@
1
- const ut=require("./mermaid-parser.core-DYumW1vq.cjs"),i=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),G=require("./src-C9EhKhbk.cjs"),y=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),J=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),gt=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),ht=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");var ot=i.__name(()=>({domains:new Map,transitions:[]}),"createDefaultData"),F=ot(),X={getDomains:i.__name(()=>F.domains,"getDomains"),getTransitions:i.__name(()=>F.transitions,"getTransitions"),setDomains:i.__name(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(s=>({label:s.label}));F.domains.set(n,{name:n,items:a})}},"setDomains"),setTransitions:i.__name(t=>{t&&(F.transitions=t.filter(e=>e.from===e.to?(G.log.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),getConfig:i.__name(()=>J.cleanAndMerge({...y.defaultConfig_default.cynefin,...y.getConfig().cynefin}),"getConfig"),clear:i.__name(()=>{y.clear(),F=ot()},"clear"),setAccTitle:y.setAccTitle,getAccTitle:y.getAccTitle,setDiagramTitle:y.setDiagramTitle,getDiagramTitle:y.getDiagramTitle,getAccDescription:y.getAccDescription,setAccDescription:y.setAccDescription},xt=i.__name(t=>{ht.populateCommonDb(t,X),X.setDomains(t.domains),X.setTransitions(t.transitions)},"populate"),$t={parse:i.__name(async t=>{const e=await ut.parse("cynefin",t);G.log.debug(e),xt(e)},"parse")};function H(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i.__name(H,"seededRandom");function rt(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}i.__name(rt,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:rt(e)}i.__name(it,"resolveSeed");function ct(t,e,n,a){const s=t/2,m=a??t*.015,D=7,P=e/D,d=[];for(let o=0;o<=D;o++){const p=H(n+o*17)*m*2-m;d.push({x:s+p,y:o*P})}let A=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],c=d[o+1],f=(p.y+c.y)/2,_=o%2===0?1:-1,h=m*1.5*_*H(n+o*31+7),W=p.x+h,I=f,N=c.x-h;A+=` C${W},${I} ${N},${f} ${c.x},${c.y}`}return A}i.__name(ct,"generateFoldPath");function st(t,e,n,a){const s=e/2,m=a??e*.015,D=7,P=t/D,d=[];for(let o=0;o<=D;o++){const p=H(n+o*23)*m*2-m;d.push({x:o*P,y:s+p})}let A=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],c=d[o+1],f=(p.x+c.x)/2,_=o%2===0?1:-1,h=m*1.5*_*H(n+o*37+11),W=f,I=p.y+h,N=f,R=c.y-h;A+=` C${W},${I} ${N},${R} ${c.x},${c.y}`}return A}i.__name(st,"generateHorizontalBoundary");function lt(t,e){const n=t/2,a=e*.5,s=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(s-a)*.2}`,`${n-m*1.5},${a+(s-a)*.55}`,`${n+m*.5},${a+(s-a)*.75}`,`C${n-m},${a+(s-a)*.85}`,`${n+m*.3},${a+(s-a)*.95}`,`${n},${s}`].join(" ")}i.__name(lt,"generateCliffPath");function dt(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i.__name(dt,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},bt=i.__name((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=i.__name(()=>J.cleanAndMerge(y.getThemeVariables3(),y.getConfig().themeVariables).cynefin,"getCynefinDomainColors"),U=3,Ct={draw:i.__name((t,e,n,a)=>{const s=a.db,m=s.getDomains(),D=s.getTransitions(),P=s.getDiagramTitle(),d=s.getAccTitle(),A=s.getAccDescription(),o=s.getConfig(),p=_t();G.log.debug("Rendering Cynefin diagram");const c=o.width,f=o.height,_=o.padding,h=o.showDomainDescriptions,W=o.boundaryAmplitude,I=c+_*2,N=f+_*2,R={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=gt.selectSvgElement(e);y.configureSvgSize(k,N,I,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${I} ${N}`),d&&k.append("title").text(d),A&&k.append("desc").text(A);const T=k.append("g").attr("transform",`translate(${_}, ${_})`),Y=bt(c,f),Q=it(o.seed,e),ft=T.append("g").attr("class","cynefin-backgrounds"),V=["complex","complicated","chaotic","clear"];for(const l of V){const r=Y[l];ft.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",R[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(c,f,Q,W)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",st(c,f,Q+100,W)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",lt(c,f)).attr("fill","none");const mt=c*.15,pt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",dt(c/2,f/2,mt,pt)).attr("fill",R.confusion).attr("fill-opacity",.5);const Z=T.append("g").attr("class","cynefin-labels");for(const l of V){const r=Y[l];Z.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(Z.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of V){const g=Y[r],u=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),l.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),E=26,tt=10;for(const l of["complex","complicated","chaotic","clear","confusion"]){const r=m.get(l);if(!r||r.items.length===0)continue;const g=Y[l],u=l==="confusion";let M=r.items,q=0;u&&r.items.length>U&&(q=r.items.length-U,M=r.items.slice(0,U));let v;if(u){const $=h?22:14;v=g.cy+$}else v=g.cy+(h?25:15);if([...M].forEach(($,B)=>{const C=v+B*30,S=K.append("g"),z=S.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",E/2).attr("text-anchor","middle").attr("dominant-baseline","central").text($.label);let b=$.label.length*7;const x=z.node();if(x&&typeof x.getBBox=="function"){const O=x.getBBox();O.width>0&&(b=O.width)}const w=b+tt*2,L=g.cx-w/2;S.attr("transform",`translate(${L}, ${C})`),S.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",w).attr("height",E).attr("rx",4).attr("ry",4).attr("fill",R[l]).attr("fill-opacity",.95),z.attr("x",w/2).attr("y",E/2)}),q>0){const $=v+M.length*30,B=`+${q} more`,C=K.append("g"),S=C.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",E/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(B);let z=B.length*7;const b=S.node();if(b&&typeof b.getBBox=="function"){const L=b.getBBox();L.width>0&&(z=L.width)}const x=z+tt*2,w=g.cx-x/2;C.attr("transform",`translate(${w}, ${$})`),C.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",E).attr("rx",4).attr("ry",4).attr("fill",R[l]).attr("fill-opacity",.6),S.attr("x",x/2).attr("y",E/2)}}if(D.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const g=T.append("g").attr("class","cynefin-arrows");D.forEach(u=>{const M=Y[u.from],q=Y[u.to];if(!M||!q)return;if(u.from===u.to){G.log.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}const v=M.cx,$=M.cy,B=q.cx,C=q.cy,S=(v+B)/2,z=($+C)/2,b=B-v,x=C-$,w=Math.sqrt(b*b+x*x),L=w*.15,O=-x/w,yt=b/w,et=S+O*L,nt=z+yt*L;g.append("path").attr("class","cynefinArrowLine").attr("d",`M${v},${$} Q${et},${nt} ${B},${C}`).attr("fill","none").attr("marker-end",`url(#${r})`),u.label&&g.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}P&&T.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-_/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(P)},"draw")},wt=i.__name(()=>J.cleanAndMerge(y.getThemeVariables3(),y.getConfig().themeVariables).cynefin,"getCynefinTheme"),Dt={parser:$t,db:X,renderer:Ct,styles:i.__name(()=>{const t=wt();return`
1
+ const i=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),G=require("./src-C9EhKhbk.cjs"),y=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),J=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),ut=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),gt=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),ht=require("./mermaid-parser.core-BgDzuhyE.cjs");var ot=i.__name(()=>({domains:new Map,transitions:[]}),"createDefaultData"),F=ot(),X={getDomains:i.__name(()=>F.domains,"getDomains"),getTransitions:i.__name(()=>F.transitions,"getTransitions"),setDomains:i.__name(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(s=>({label:s.label}));F.domains.set(n,{name:n,items:a})}},"setDomains"),setTransitions:i.__name(t=>{t&&(F.transitions=t.filter(e=>e.from===e.to?(G.log.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),getConfig:i.__name(()=>J.cleanAndMerge({...y.defaultConfig_default.cynefin,...y.getConfig().cynefin}),"getConfig"),clear:i.__name(()=>{y.clear(),F=ot()},"clear"),setAccTitle:y.setAccTitle,getAccTitle:y.getAccTitle,setDiagramTitle:y.setDiagramTitle,getDiagramTitle:y.getDiagramTitle,getAccDescription:y.getAccDescription,setAccDescription:y.setAccDescription},xt=i.__name(t=>{gt.populateCommonDb(t,X),X.setDomains(t.domains),X.setTransitions(t.transitions)},"populate"),$t={parse:i.__name(async t=>{const e=await ht.parse("cynefin",t);G.log.debug(e),xt(e)},"parse")};function H(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i.__name(H,"seededRandom");function rt(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}i.__name(rt,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:rt(e)}i.__name(it,"resolveSeed");function ct(t,e,n,a){const s=t/2,m=a??t*.015,D=7,P=e/D,d=[];for(let o=0;o<=D;o++){const p=H(n+o*17)*m*2-m;d.push({x:s+p,y:o*P})}let A=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],c=d[o+1],f=(p.y+c.y)/2,_=o%2===0?1:-1,h=m*1.5*_*H(n+o*31+7),W=p.x+h,I=f,N=c.x-h;A+=` C${W},${I} ${N},${f} ${c.x},${c.y}`}return A}i.__name(ct,"generateFoldPath");function st(t,e,n,a){const s=e/2,m=a??e*.015,D=7,P=t/D,d=[];for(let o=0;o<=D;o++){const p=H(n+o*23)*m*2-m;d.push({x:o*P,y:s+p})}let A=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],c=d[o+1],f=(p.x+c.x)/2,_=o%2===0?1:-1,h=m*1.5*_*H(n+o*37+11),W=f,I=p.y+h,N=f,R=c.y-h;A+=` C${W},${I} ${N},${R} ${c.x},${c.y}`}return A}i.__name(st,"generateHorizontalBoundary");function lt(t,e){const n=t/2,a=e*.5,s=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(s-a)*.2}`,`${n-m*1.5},${a+(s-a)*.55}`,`${n+m*.5},${a+(s-a)*.75}`,`C${n-m},${a+(s-a)*.85}`,`${n+m*.3},${a+(s-a)*.95}`,`${n},${s}`].join(" ")}i.__name(lt,"generateCliffPath");function dt(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i.__name(dt,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},bt=i.__name((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=i.__name(()=>J.cleanAndMerge(y.getThemeVariables3(),y.getConfig().themeVariables).cynefin,"getCynefinDomainColors"),U=3,Ct={draw:i.__name((t,e,n,a)=>{const s=a.db,m=s.getDomains(),D=s.getTransitions(),P=s.getDiagramTitle(),d=s.getAccTitle(),A=s.getAccDescription(),o=s.getConfig(),p=_t();G.log.debug("Rendering Cynefin diagram");const c=o.width,f=o.height,_=o.padding,h=o.showDomainDescriptions,W=o.boundaryAmplitude,I=c+_*2,N=f+_*2,R={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=ut.selectSvgElement(e);y.configureSvgSize(k,N,I,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${I} ${N}`),d&&k.append("title").text(d),A&&k.append("desc").text(A);const T=k.append("g").attr("transform",`translate(${_}, ${_})`),Y=bt(c,f),Q=it(o.seed,e),ft=T.append("g").attr("class","cynefin-backgrounds"),V=["complex","complicated","chaotic","clear"];for(const l of V){const r=Y[l];ft.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",R[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(c,f,Q,W)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",st(c,f,Q+100,W)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",lt(c,f)).attr("fill","none");const mt=c*.15,pt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",dt(c/2,f/2,mt,pt)).attr("fill",R.confusion).attr("fill-opacity",.5);const Z=T.append("g").attr("class","cynefin-labels");for(const l of V){const r=Y[l];Z.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(Z.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of V){const g=Y[r],u=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),l.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),E=26,tt=10;for(const l of["complex","complicated","chaotic","clear","confusion"]){const r=m.get(l);if(!r||r.items.length===0)continue;const g=Y[l],u=l==="confusion";let M=r.items,q=0;u&&r.items.length>U&&(q=r.items.length-U,M=r.items.slice(0,U));let v;if(u){const $=h?22:14;v=g.cy+$}else v=g.cy+(h?25:15);if([...M].forEach(($,B)=>{const C=v+B*30,S=K.append("g"),z=S.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",E/2).attr("text-anchor","middle").attr("dominant-baseline","central").text($.label);let b=$.label.length*7;const x=z.node();if(x&&typeof x.getBBox=="function"){const O=x.getBBox();O.width>0&&(b=O.width)}const w=b+tt*2,L=g.cx-w/2;S.attr("transform",`translate(${L}, ${C})`),S.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",w).attr("height",E).attr("rx",4).attr("ry",4).attr("fill",R[l]).attr("fill-opacity",.95),z.attr("x",w/2).attr("y",E/2)}),q>0){const $=v+M.length*30,B=`+${q} more`,C=K.append("g"),S=C.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",E/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(B);let z=B.length*7;const b=S.node();if(b&&typeof b.getBBox=="function"){const L=b.getBBox();L.width>0&&(z=L.width)}const x=z+tt*2,w=g.cx-x/2;C.attr("transform",`translate(${w}, ${$})`),C.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",E).attr("rx",4).attr("ry",4).attr("fill",R[l]).attr("fill-opacity",.6),S.attr("x",x/2).attr("y",E/2)}}if(D.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const g=T.append("g").attr("class","cynefin-arrows");D.forEach(u=>{const M=Y[u.from],q=Y[u.to];if(!M||!q)return;if(u.from===u.to){G.log.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}const v=M.cx,$=M.cy,B=q.cx,C=q.cy,S=(v+B)/2,z=($+C)/2,b=B-v,x=C-$,w=Math.sqrt(b*b+x*x),L=w*.15,O=-x/w,yt=b/w,et=S+O*L,nt=z+yt*L;g.append("path").attr("class","cynefinArrowLine").attr("d",`M${v},${$} Q${et},${nt} ${B},${C}`).attr("fill","none").attr("marker-end",`url(#${r})`),u.label&&g.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}P&&T.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-_/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(P)},"draw")},wt=i.__name(()=>J.cleanAndMerge(y.getThemeVariables3(),y.getConfig().themeVariables).cynefin,"getCynefinTheme"),Dt={parser:$t,db:X,renderer:Ct,styles:i.__name(()=>{const t=wt();return`
2
2
  .cynefinDomain {
3
3
  stroke: none;
4
4
  }
@@ -1,17 +1,17 @@
1
1
  import { n as w } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
- import { m as c } from "./src-DtRLxcYO.js";
3
- import { x as k } from "./chunk-WYO6CB5R-DDHkKowO.js";
4
- import "./chunk-ICXQ74PX-DR8rL-xF.js";
5
- import "./chunk-HOUHSVGY-DRQcQeMT.js";
6
- import "./chunk-Q4XR5HBZ-3BHjjc9u.js";
2
+ import { m as c } from "./src-CM-0IT-N.js";
3
+ import { x as k } from "./chunk-WYO6CB5R-DyGmS3I6.js";
4
+ import "./chunk-ICXQ74PX-DPZfA3a8.js";
5
+ import "./chunk-HOUHSVGY-DpvP0Kt0.js";
6
+ import "./chunk-Q4XR5HBZ-D_n2NzvL.js";
7
7
  import "./chunk-7BUUIJ7U-9hiBbc7O.js";
8
- import { n as B } from "./chunk-OGEWGWER-BV51ll2w.js";
8
+ import { n as B } from "./chunk-OGEWGWER-CYsD5SNd.js";
9
9
  import { t as O } from "./graphlib-CCKThIKP.js";
10
10
  import { t as J } from "./dagre-D8GLTwuf.js";
11
- import { a as T, i as I, n as A, o as L, r as S, t as v } from "./chunk-RYQCIY6F-BER2T9t0.js";
12
- import "./chunk-C7G6YPKG-CA-DNpvI.js";
13
- import { a as D, c as M, i as H, l as Y, n as _, t as W, u as $ } from "./chunk-ZGVPDNZ5-6uMbTJXy.js";
14
- import { a as j, i as P, o as F, r as q, t as z } from "./chunk-52WLFC77-wpL7en7e.js";
11
+ import { a as T, i as I, n as A, o as L, r as S, t as v } from "./chunk-RYQCIY6F-CIHQ94xS.js";
12
+ import "./chunk-C7G6YPKG-CuJexLt7.js";
13
+ import { a as D, c as M, i as H, l as Y, n as _, t as W, u as $ } from "./chunk-ZGVPDNZ5-DlEsNy2g.js";
14
+ import { a as j, i as P, o as F, r as q, t as z } from "./chunk-52WLFC77-CLS2Long.js";
15
15
  var R = /* @__PURE__ */ w((o, t, g) => Math.max(t, Math.min(g, o)), "clamp"), C = /* @__PURE__ */ w((o = "TB") => {
16
16
  switch (o) {
17
17
  case "BT":
@@ -1,9 +1,9 @@
1
1
  import { T as re } from "./chunk-KEIR6QF5-B2Op7cFH.js";
2
2
  import { n as oe } from "./mermaid-parser.core-uIDZYuBu.js";
3
3
  import { n as o } from "./chunk-Y2CYZVJY-0JxdZxki.js";
4
- import { m as g, p as se } from "./src-DtRLxcYO.js";
5
- import { H as le, K as de, U as ce, Y as me, a as ue, b as F, f as xe, v as fe, w as ge, x as R, y as he, z as w } from "./chunk-WYO6CB5R-DDHkKowO.js";
6
- import { _ as y, i as pe, t as be } from "./chunk-ICXQ74PX-DR8rL-xF.js";
4
+ import { m as g, p as se } from "./src-CM-0IT-N.js";
5
+ import { H as le, K as de, U as ce, Y as me, a as ue, b as F, f as xe, v as fe, w as ge, x as R, y as he, z as w } from "./chunk-WYO6CB5R-DyGmS3I6.js";
6
+ import { _ as y, i as pe, t as be } from "./chunk-ICXQ74PX-DPZfA3a8.js";
7
7
  import { t as ve } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
8
8
  var T = "position frame", $ = "frame positioned", P = "position relation", D = "relation positioned", we = /* @__PURE__ */ o(function(e) {
9
9
  g.debug("options str", e);
@@ -1,3 +1,3 @@
1
- const ie=require("./chunk-KEIR6QF5-C4fcHpY0.cjs"),ae=require("./mermaid-parser.core-DYumW1vq.cjs"),o=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),f=require("./src-C9EhKhbk.cjs"),c=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),w=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),re=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");var E="position frame",A="frame positioned",y="position relation",R="relation positioned",oe=o.__name(function(e){f.log.debug("options str",e)},"setOptions"),se=o.__name(function(){return{}},"getOptions"),le=o.__name(function(){T(),c.clear()},"clear");function T(){M={}}o.__name(T,"reset");var de=c.defaultConfig_default.eventmodeling,ce=o.__name(()=>w.cleanAndMerge({...de,...c.getConfig().eventmodeling}),"getConfig"),M={};function C(){let e=me;const{ast:n}=M,t=F();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=H(i,n.dataEntities,t);e=v(e,{$kind:E,index:a,frame:i,textProps:r});let d;Y(i)?(f.log.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(m=>m.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:y,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:y,index:a,frame:i})}),e={...e,sortedSwimlanesArray:B(e.swimlanes)},e}o.__name(C,"getState");function D(e){M.ast=e}o.__name(D,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function F(){return s}o.__name(F,"getDiagramProps");var me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}o.__name($,"extractNamespace");function W(e){const n=e.split(".");return n.length===2?n[1]:e}o.__name(W,"extractName");function O(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o.__name(O,"findSwimlaneByNamespace");function _(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o.__name(_,"findNextAvailableIndex");function I(e,n){const t=$(e.entityIdentifier),i=O(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:_(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:_(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:_(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o.__name(I,"calculateSwimlaneProps");function N(e){const{themeVariables:n}=c.getConfig();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o.__name(N,"calculateEntityVisualProps");function H(e,n,t){const i=c.getConfig(),a=c.sanitizeText(W(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let l=`<b>${w.wrapLabel(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=c.sanitizeText(r,i),r=w.wrapLabel(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const h=n.find(p=>p.name===e.dataReference?.$refText);h&&(r=h.dataBlockValue,r=r.substring(r.indexOf(`{
2
- `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=c.sanitizeText(r,i),r=w.wrapLabel(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const m=r!==void 0;m&&(l+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=w.calculateTextDimensions(l,x),g=m?u.width/3:u.width,b={content:l,width:g,height:u.height};return f.log.debug(`[${e.name}] ${e.entityIdentifier} text`,b),b}o.__name(H,"calculateTextProps");function q(e,n){const t=n,i=N(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:A,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o.__name(q,"decidePositionFrame");function U(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o.__name(U,"calculateX");function L(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o.__name(L,"calculateMaxRight");function B(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o.__name(B,"sortedSwimlanesArray");function V(e,n){const t=n,i=I(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},m=U(a,d,r),x=m+l.width+s.boxPadding,u=L(Object.values(e.swimlanes),x);a.r=m+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const g={x:m,y:s.swimlanePadding+a.y,r:x,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},b={...e,boxes:[...e.boxes,g],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:u},h=B(b.swimlanes);h.length>0&&(h[0].y=0);for(let p=1;p<h.length;p++){const ne=h[p],S=h[p-1];ne.y=S.y+S.height+s.swimlaneGap}return b}o.__name(V,"evolveFramePositioned");function X(e,n){return e===0&&n.sourceFrames.length===0}o.__name(X,"isFirstFrame");function Y(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o.__name(Y,"hasSourceFrame");function P(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o.__name(P,"findBoxByFrame");function G(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o.__name(G,"findBoxByLineIndex");function j(e,n){const t=n;if(ie.isEmResetFrame(t.frame)||X(t.index,t.frame))return[];const i=P(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=P(e.boxes,t.sourceFrame):a=G(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:R,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o.__name(j,"decidePositionRelation");function z(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o.__name(z,"evolveRelationPositioned");var ue={[E]:q,[y]:j},xe={[A]:V,[R]:z};function K(e,n){const t=ue[n.$kind];if(t==null)return[];const i=t(e,n);return f.log.debug("decided events",i),i}o.__name(K,"decide");function J(e,n){const t=n.reduce((i,a)=>{const r=xe[a.$kind];return r==null?i:r(i,a)},e);return f.log.debug("evolve events",{state:e,newState:t,events:n}),t}o.__name(J,"evolve");function v(e,n){return J(e,K(e,n))}o.__name(v,"dispatch");var k={getConfig:ce,setOptions:oe,getOptions:se,clear:le,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,setAst:D,getDiagramProps:F,getState:C},ge={parse:o.__name(async e=>{const n=await ae.parse("eventmodeling",e);f.log.debug(n),k.setAst(n),re.populateCommonDb(n,k)},"parse")},fe=c.getConfig2()?.eventmodeling;function Q(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o.__name(Q,"renderD3Box");function Z(e,n){return e>n}o.__name(Z,"dirUpwards");function ee(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=Z(r,d),m=a.sourceBox.x+a.sourceBox.dimension.width*2/3,x=a.targetBox.x+a.targetBox.dimension.width/3;let u,g;f.log.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(u=r,g=d+a.targetBox.dimension.height):(u=r+a.sourceBox.dimension.height,g=d);const b=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",b).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${u} L${x} ${g}`)}}o.__name(ee,"renderD3Relation");function te(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o.__name(te,"renderD3Swimlane");var he={parser:ge,db:k,renderer:{draw:o.__name(function(e,n,t,i){if(f.log.debug("in eventmodeling renderer",e+`
1
+ const ie=require("./chunk-KEIR6QF5-C4fcHpY0.cjs"),o=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),f=require("./src-C9EhKhbk.cjs"),c=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),w=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),ae=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),re=require("./mermaid-parser.core-BgDzuhyE.cjs");var E="position frame",A="frame positioned",y="position relation",R="relation positioned",oe=o.__name(function(e){f.log.debug("options str",e)},"setOptions"),se=o.__name(function(){return{}},"getOptions"),le=o.__name(function(){T(),c.clear()},"clear");function T(){M={}}o.__name(T,"reset");var de=c.defaultConfig_default.eventmodeling,ce=o.__name(()=>w.cleanAndMerge({...de,...c.getConfig().eventmodeling}),"getConfig"),M={};function C(){let e=me;const{ast:n}=M,t=F();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=H(i,n.dataEntities,t);e=v(e,{$kind:E,index:a,frame:i,textProps:r});let d;Y(i)?(f.log.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(m=>m.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:y,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:y,index:a,frame:i})}),e={...e,sortedSwimlanesArray:B(e.swimlanes)},e}o.__name(C,"getState");function D(e){M.ast=e}o.__name(D,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function F(){return s}o.__name(F,"getDiagramProps");var me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}o.__name($,"extractNamespace");function W(e){const n=e.split(".");return n.length===2?n[1]:e}o.__name(W,"extractName");function O(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o.__name(O,"findSwimlaneByNamespace");function _(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o.__name(_,"findNextAvailableIndex");function I(e,n){const t=$(e.entityIdentifier),i=O(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:_(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:_(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:_(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o.__name(I,"calculateSwimlaneProps");function N(e){const{themeVariables:n}=c.getConfig();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o.__name(N,"calculateEntityVisualProps");function H(e,n,t){const i=c.getConfig(),a=c.sanitizeText(W(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let l=`<b>${w.wrapLabel(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=c.sanitizeText(r,i),r=w.wrapLabel(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const h=n.find(p=>p.name===e.dataReference?.$refText);h&&(r=h.dataBlockValue,r=r.substring(r.indexOf(`{
2
+ `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=c.sanitizeText(r,i),r=w.wrapLabel(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const m=r!==void 0;m&&(l+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=w.calculateTextDimensions(l,x),g=m?u.width/3:u.width,b={content:l,width:g,height:u.height};return f.log.debug(`[${e.name}] ${e.entityIdentifier} text`,b),b}o.__name(H,"calculateTextProps");function q(e,n){const t=n,i=N(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:A,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o.__name(q,"decidePositionFrame");function U(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o.__name(U,"calculateX");function L(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o.__name(L,"calculateMaxRight");function B(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o.__name(B,"sortedSwimlanesArray");function V(e,n){const t=n,i=I(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},m=U(a,d,r),x=m+l.width+s.boxPadding,u=L(Object.values(e.swimlanes),x);a.r=m+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const g={x:m,y:s.swimlanePadding+a.y,r:x,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},b={...e,boxes:[...e.boxes,g],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:u},h=B(b.swimlanes);h.length>0&&(h[0].y=0);for(let p=1;p<h.length;p++){const ne=h[p],S=h[p-1];ne.y=S.y+S.height+s.swimlaneGap}return b}o.__name(V,"evolveFramePositioned");function X(e,n){return e===0&&n.sourceFrames.length===0}o.__name(X,"isFirstFrame");function Y(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o.__name(Y,"hasSourceFrame");function P(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o.__name(P,"findBoxByFrame");function G(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o.__name(G,"findBoxByLineIndex");function j(e,n){const t=n;if(ie.isEmResetFrame(t.frame)||X(t.index,t.frame))return[];const i=P(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=P(e.boxes,t.sourceFrame):a=G(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:R,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o.__name(j,"decidePositionRelation");function z(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o.__name(z,"evolveRelationPositioned");var ue={[E]:q,[y]:j},xe={[A]:V,[R]:z};function K(e,n){const t=ue[n.$kind];if(t==null)return[];const i=t(e,n);return f.log.debug("decided events",i),i}o.__name(K,"decide");function J(e,n){const t=n.reduce((i,a)=>{const r=xe[a.$kind];return r==null?i:r(i,a)},e);return f.log.debug("evolve events",{state:e,newState:t,events:n}),t}o.__name(J,"evolve");function v(e,n){return J(e,K(e,n))}o.__name(v,"dispatch");var k={getConfig:ce,setOptions:oe,getOptions:se,clear:le,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,setAst:D,getDiagramProps:F,getState:C},ge={parse:o.__name(async e=>{const n=await re.parse("eventmodeling",e);f.log.debug(n),k.setAst(n),ae.populateCommonDb(n,k)},"parse")},fe=c.getConfig2()?.eventmodeling;function Q(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o.__name(Q,"renderD3Box");function Z(e,n){return e>n}o.__name(Z,"dirUpwards");function ee(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=Z(r,d),m=a.sourceBox.x+a.sourceBox.dimension.width*2/3,x=a.targetBox.x+a.targetBox.dimension.width/3;let u,g;f.log.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(u=r,g=d+a.targetBox.dimension.height):(u=r+a.sourceBox.dimension.height,g=d);const b=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",b).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${u} L${x} ${g}`)}}o.__name(ee,"renderD3Relation");function te(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o.__name(te,"renderD3Swimlane");var he={parser:ge,db:k,renderer:{draw:o.__name(function(e,n,t,i){if(f.log.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!fe)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=c.getConfig2(),l=f.select_default(`[id="${n}"]`),m=a.getDiagramProps(),x=a.getState(),u=`em-arrowhead-${n}`,g=r.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(te(l,x.maxR,m,r)),x.boxes.forEach(Q(l,m)),x.relations.forEach(ee(l,m,u,r)),l.append("defs").append("marker").attr("id",u).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",g),c.setupGraphViewbox2(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw")},styles:o.__name(e=>"","getStyles")};exports.diagram=he;
@@ -1,14 +1,14 @@
1
1
  import { n as ce } from "./mermaid-parser.core-uIDZYuBu.js";
2
2
  import { n as $ } from "./chunk-Y2CYZVJY-0JxdZxki.js";
3
- import { m as J, p as j } from "./src-DtRLxcYO.js";
4
- import { D as he, H as pe, K as ue, U as de, a as fe, b as ee, c as me, f as ge, v as ye, w as Se, y as ve } from "./chunk-WYO6CB5R-DDHkKowO.js";
3
+ import { m as J, p as j } from "./src-CM-0IT-N.js";
4
+ import { D as he, H as pe, K as ue, U as de, a as fe, b as ee, c as me, f as ge, v as ye, w as Se, y as ve } from "./chunk-WYO6CB5R-DyGmS3I6.js";
5
5
  import { t as Z } from "./ordinal-BMN81JG2.js";
6
6
  import { t as R } from "./defaultLocale-0M_kMcEH.js";
7
- import { i as Q } from "./chunk-ICXQ74PX-DR8rL-xF.js";
8
- import { t as xe } from "./chunk-VAUOI2AC-izt0o4id.js";
7
+ import { i as Q } from "./chunk-ICXQ74PX-DPZfA3a8.js";
8
+ import { t as xe } from "./chunk-VAUOI2AC-CrgGIUR-.js";
9
9
  import { t as we } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
10
- import { t as be } from "./chunk-VR4S4FIN-CJi5okl4.js";
11
- import { i as V, n as Ce } from "./chunk-C7G6YPKG-CA-DNpvI.js";
10
+ import { t as be } from "./chunk-VR4S4FIN-DQsfbArk.js";
11
+ import { i as V, n as Ce } from "./chunk-C7G6YPKG-CuJexLt7.js";
12
12
  function $e(t) {
13
13
  var a = 0, n = t.children, r = n && n.length;
14
14
  if (!r) a = 1;
@@ -1,4 +1,4 @@
1
- const oe=require("./mermaid-parser.core-DYumW1vq.cjs"),$=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),q=require("./src-C9EhKhbk.cjs"),C=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),K=require("./ordinal-BplLHIij.cjs"),E=require("./defaultLocale-DSqtvhxg.cjs"),Q=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),ce=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),ue=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),he=require("./chunk-VR4S4FIN-KiwnPF31.cjs"),z=require("./chunk-C7G6YPKG-CKEeW9TM.cjs");function de(t){var a=0,n=t.children,r=n&&n.length;if(!r)a=1;else for(;--r>=0;)a+=n[r].value;t.value=a}function pe(){return this.eachAfter(de)}function fe(t,a){let n=-1;for(const r of this)t.call(a,r,++n,this);return this}function ge(t,a){for(var n=this,r=[n],s,i,c=-1;n=r.pop();)if(t.call(a,n,++c,this),s=n.children)for(i=s.length-1;i>=0;--i)r.push(s[i]);return this}function me(t,a){for(var n=this,r=[n],s=[],i,c,h,f=-1;n=r.pop();)if(s.push(n),i=n.children)for(c=0,h=i.length;c<h;++c)r.push(i[c]);for(;n=s.pop();)t.call(a,n,++f,this);return this}function ye(t,a){let n=-1;for(const r of this)if(t.call(a,r,++n,this))return r}function Se(t){return this.eachAfter(function(a){for(var n=+t(a.data)||0,r=a.children,s=r&&r.length;--s>=0;)n+=r[s].value;a.value=n})}function ve(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function xe(t){for(var a=this,n=_e(a,t),r=[a];a!==n;)a=a.parent,r.push(a);for(var s=r.length;t!==n;)r.splice(s,0,t),t=t.parent;return r}function _e(t,a){if(t===a)return t;var n=t.ancestors(),r=a.ancestors(),s=null;for(t=n.pop(),a=r.pop();t===a;)s=t,t=n.pop(),a=r.pop();return s}function Ce(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function we(){return Array.from(this)}function be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function $e(){var t=this,a=[];return t.each(function(n){n!==t&&a.push({source:n.parent,target:n})}),a}function*Te(){var t=this,a,n=[t],r,s,i;do for(a=n.reverse(),n=[];t=a.pop();)if(yield t,r=t.children)for(s=0,i=r.length;s<i;++s)n.push(r[s]);while(n.length)}function ee(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ne)):a===void 0&&(a=ke);for(var n=new X(t),r,s=[n],i,c,h,f;r=s.pop();)if((c=a(r.data))&&(f=(c=Array.from(c)).length))for(r.children=c,h=f-1;h>=0;--h)s.push(i=c[h]=new X(c[h])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(Fe)}function Le(){return ee(this).eachBefore(Me)}function ke(t){return t.children}function Ne(t){return Array.isArray(t)?t[1]:null}function Me(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Fe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function X(t){this.data=t,this.depth=this.height=0,this.parent=null}X.prototype=ee.prototype={constructor:X,count:pe,each:fe,eachAfter:me,eachBefore:ge,find:ye,sum:Se,sort:ve,path:xe,ancestors:Ce,descendants:we,leaves:be,links:$e,copy:Le,[Symbol.iterator]:Te};function Ae(t){if(typeof t!="function")throw new Error;return t}function H(){return 0}function G(t){return function(){return t}}function ze(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function qe(t,a,n,r,s){for(var i=t.children,c,h=-1,f=i.length,o=t.value&&(r-a)/t.value;++h<f;)c=i[h],c.y0=n,c.y1=s,c.x0=a,c.x1=a+=c.value*o}function Ve(t,a,n,r,s){for(var i=t.children,c,h=-1,f=i.length,o=t.value&&(s-n)/t.value;++h<f;)c=i[h],c.x0=a,c.x1=r,c.y0=n,c.y1=n+=c.value*o}var De=(1+Math.sqrt(5))/2;function Pe(t,a,n,r,s,i){for(var c=[],h=a.children,f,o,d=0,x=0,l=h.length,v,y,S=a.value,p,g,A,N,V,W,k;d<l;){v=s-n,y=i-r;do p=h[x++].value;while(!p&&x<l);for(g=A=p,W=Math.max(y/v,v/y)/(S*t),k=p*p*W,V=Math.max(A/k,k/g);x<l;++x){if(p+=o=h[x].value,o<g&&(g=o),o>A&&(A=o),k=p*p*W,N=Math.max(A/k,k/g),N>V){p-=o;break}V=N}c.push(f={value:p,dice:v<y,children:h.slice(d,x)}),f.dice?qe(f,n,r,s,S?r+=y*p/S:i):Ve(f,n,r,S?n+=v*p/S:s,i),S-=p,d=x}return c}var Ie=(function t(a){function n(r,s,i,c,h){Pe(a,r,s,i,c,h)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(De);function We(){var t=Ie,a=!1,n=1,r=1,s=[0],i=H,c=H,h=H,f=H,o=H;function d(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(x),s=[0],a&&l.eachBefore(ze),l}function x(l){var v=s[l.depth],y=l.x0+v,S=l.y0+v,p=l.x1-v,g=l.y1-v;p<y&&(y=p=(y+p)/2),g<S&&(S=g=(S+g)/2),l.x0=y,l.y0=S,l.x1=p,l.y1=g,l.children&&(v=s[l.depth+1]=i(l)/2,y+=o(l)-v,S+=c(l)-v,p-=h(l)-v,g-=f(l)-v,p<y&&(y=p=(y+p)/2),g<S&&(S=g=(S+g)/2),t(l,y,S,p,g))}return d.round=function(l){return arguments.length?(a=!!l,d):a},d.size=function(l){return arguments.length?(n=+l[0],r=+l[1],d):[n,r]},d.tile=function(l){return arguments.length?(t=Ae(l),d):t},d.padding=function(l){return arguments.length?d.paddingInner(l).paddingOuter(l):d.paddingInner()},d.paddingInner=function(l){return arguments.length?(i=typeof l=="function"?l:G(+l),d):i},d.paddingOuter=function(l){return arguments.length?d.paddingTop(l).paddingRight(l).paddingBottom(l).paddingLeft(l):d.paddingTop()},d.paddingTop=function(l){return arguments.length?(c=typeof l=="function"?l:G(+l),d):c},d.paddingRight=function(l){return arguments.length?(h=typeof l=="function"?l:G(+l),d):h},d.paddingBottom=function(l){return arguments.length?(f=typeof l=="function"?l:G(+l),d):f},d.paddingLeft=function(l){return arguments.length?(o=typeof l=="function"?l:G(+l),d):o},d}var ne=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=C.setAccTitle,this.getAccTitle=C.getAccTitle,this.setDiagramTitle=C.setDiagramTitle,this.getDiagramTitle=C.getDiagramTitle,this.getAccDescription=C.getAccDescription,this.setAccDescription=C.setAccDescription}static{$.__name(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const t=C.defaultConfig_default,a=C.getConfig();return Q.cleanAndMerge({...t.treemap,...a.treemap??{}})}addNode(t,a){this.nodes.push(t),this.levels.set(t,a),a===0&&(this.outerNodes.push(t),this.root??=t)}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,a){const n=this.classes.get(t)??{id:t,styles:[],textStyles:[]},r=a.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(s=>{z.isLabelStyle(s)&&(n?.textStyles?n.textStyles.push(s):n.textStyles=[s]),n?.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(t,n)}getClasses(){return this.classes}getStylesForClass(t){return this.classes.get(t)?.styles??[]}clear(){C.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function re(t){if(!t.length)return[];const a=[],n=[];return t.forEach(r=>{const s={name:r.name,children:r.type==="Leaf"?void 0:[]};for(s.classSelector=r?.classSelector,r?.cssCompiledStyles&&(s.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(s.value=r.value);n.length>0&&n[n.length-1].level>=r.level;)n.pop();if(n.length===0)a.push(s);else{const i=n[n.length-1].node;i.children?i.children.push(s):i.children=[s]}r.type!=="Leaf"&&n.push({node:s,level:r.level})}),a}$.__name(re,"buildHierarchy");var Be=$.__name((t,a)=>{ue.populateCommonDb(t,a);const n=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const c=i.item;if(!c)continue;const h=i.indent?parseInt(i.indent):0,f=Re(c),o=c.classSelector?a.getStylesForClass(c.classSelector):[],d=o.length>0?o:void 0,x={level:h,name:f,type:c.$type,value:c.value,classSelector:c.classSelector,cssCompiledStyles:d};n.push(x)}const r=re(n),s=$.__name((i,c)=>{for(const h of i)a.addNode(h,c),h.children&&h.children.length>0&&s(h.children,c+1)},"addNodesRecursively");s(r,0)},"populate"),Re=$.__name(t=>t.name?String(t.name):"","getItemName"),le={parser:{yy:void 0},parse:$.__name(async t=>{try{const a=await oe.parse("treemap",t);q.log.debug("Treemap AST:",a);const n=le.parser?.yy;if(!(n instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Be(a,n)}catch(a){throw q.log.error("Error parsing treemap:",a),a}},"parse")},Ee=10,I=10,O=25,He={draw:$.__name((t,a,n,r)=>{const s=r.db,i=s.getConfig(),c=i.padding??Ee,h=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=C.getConfig();if(!f)return;const d=h?30:0,x=ce.selectSvgElement(a),l=i.nodeWidth?i.nodeWidth*I:960,v=i.nodeHeight?i.nodeHeight*I:500,y=l,S=v+d;x.attr("viewBox",`0 0 ${y} ${S}`),C.configureSvgSize(x,S,y,i.useMaxWidth);let p;try{const e=i.valueFormat||",";if(e==="$0,0")p=$.__name(u=>"$"+E.format(",")(u),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const u=/\.\d+/.exec(e),w=u?u[0]:"";p=$.__name(L=>"$"+E.format(","+w)(L),"valueFormat")}else if(e.startsWith("$")){const u=e.substring(1);p=$.__name(w=>"$"+E.format(u||"")(w),"valueFormat")}else p=E.format(e)}catch(e){q.log.error("Error creating format function:",e),p=E.format(",")}const g=K.ordinal().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),A=K.ordinal().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),N=K.ordinal().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);h&&x.append("text").attr("x",y/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=x.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),W=ee(f).sum(e=>e.value??0).sort((e,u)=>(u.value??0)-(e.value??0)),k=We().size([l,v]).paddingTop(e=>e.children&&e.children.length>0?O+I:0).paddingInner(c).paddingLeft(e=>e.children&&e.children.length>0?I:0).paddingRight(e=>e.children&&e.children.length>0?I:0).paddingBottom(e=>e.children&&e.children.length>0?I:0).round(!0)(W),ie=k.descendants().filter(e=>e.children&&e.children.length>0),B=V.selectAll(".treemapSection").data(ie).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",O).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),B.append("clipPath").attr("id",(e,u)=>`clip-section-${a}-${u}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",O),B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,u)=>`treemapSection section${u}`).attr("fill",e=>g(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>A(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const u=z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return u.nodeStyles+";"+u.borderStyles.join(";")}),B.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",O/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,u)=>`url(#clip-section-${a}-${u})`).attr("style",e=>e.depth===0?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(e.depth===0)return;const u=q.select_default(this),w=e.data.name;u.text(w);const L=e.x1-e.x0,F=6;let T;i.showValues!==!1&&e.value?T=L-10-30-10-F:T=L-F-6;const b=Math.max(15,T),m=u.node();if(m.getComputedTextLength()>b){let _=w;for(;_.length>0;){if(_=w.substring(0,_.length-1),_.length===0){u.text("..."),m.getComputedTextLength()>b&&u.text("");break}if(u.text(_+"..."),m.getComputedTextLength()<=b)break}}}),i.showValues!==!1&&B.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",O/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>e.depth===0?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));const te=k.leaves(),M=te.length>20,se=M?16:38,Y=M?14:28,D=M?4:8,P=M?4:6,J=M?2:4,ae=M?8:10,U=M?1:2,j=V.selectAll(".treemapLeafGroup").data(te).enter().append("g").attr("class",(e,u)=>`treemapNode treemapLeafGroup leaf${u}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("style",e=>z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,u)=>`clip-${a}-${u}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${se}px;fill:`+N(e.data.name)+";"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,u)=>`url(#clip-${a}-${u})`).text(e=>e.data.name).each(function(e){const u=q.select_default(this),w=e.x1-e.x0,L=e.y1-e.y0,F=u.node(),T=w-2*J,b=L-2*J;if(T<ae||b<ae){u.style("display","none");return}let m=parseInt(u.style("font-size"),10);const R=.6;for(;F.getComputedTextLength()>T&&m>D;)m--,u.style("font-size",`${m}px`);let _=Math.max(P,Math.min(Y,Math.round(m*R))),Z=m+U+_;for(;Z>b&&m>D&&(m--,_=Math.max(P,Math.min(Y,Math.round(m*R))),!(_<P&&m===D));)u.style("font-size",`${m}px`),Z=m+U+_,_<=P&&Z>b;u.style("font-size",`${m}px`),M?(m<D||b<D)&&u.style("display","none"):(F.getComputedTextLength()>T||m<D||b<m)&&u.style("display","none")}),i.showValues!==!1&&j.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${Y}px;fill:`+N(e.data.name)+";"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,u)=>`url(#clip-${a}-${u})`).text(e=>e.value?p(e.value):"").each(function(e){const u=q.select_default(this),w=this.parentNode;if(!w){u.style("display","none");return}const L=q.select_default(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){u.style("display","none");return}const F=parseFloat(L.style("font-size")),T=Math.max(P,Math.min(Y,Math.round(F*.6)));u.style("font-size",`${T}px`);const b=(e.y1-e.y0)/2+F/2+U;u.attr("y",b);const m=e.x1-e.x0,R=e.y1-e.y0-4,_=m-2*J;u.node().getComputedTextLength()>_||b+T>R||T<P?u.style("display","none"):u.style("display",null)}),he.setupViewPortForSVG(x,i.diagramPadding??8,"flowchart",i?.useMaxWidth||!1)},"draw"),getClasses:$.__name(function(t,a){return a.db.getClasses()},"getClasses")},Ge={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Oe={parser:le,get db(){return new ne},renderer:He,styles:$.__name(({treemap:t}={})=>{const a=Q.cleanAndMerge(C.getThemeVariables3(),C.getConfig().themeVariables),n=Q.cleanAndMerge(Ge,t),r=n.titleColor??a.titleColor,s=n.labelColor??a.textColor,i=n.valueColor??a.textColor;return`
1
+ const $=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),q=require("./src-C9EhKhbk.cjs"),C=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),K=require("./ordinal-BplLHIij.cjs"),E=require("./defaultLocale-DSqtvhxg.cjs"),Q=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),oe=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),ce=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),ue=require("./mermaid-parser.core-BgDzuhyE.cjs"),he=require("./chunk-VR4S4FIN-KiwnPF31.cjs"),z=require("./chunk-C7G6YPKG-CKEeW9TM.cjs");function de(t){var a=0,n=t.children,r=n&&n.length;if(!r)a=1;else for(;--r>=0;)a+=n[r].value;t.value=a}function pe(){return this.eachAfter(de)}function fe(t,a){let n=-1;for(const r of this)t.call(a,r,++n,this);return this}function ge(t,a){for(var n=this,r=[n],s,i,c=-1;n=r.pop();)if(t.call(a,n,++c,this),s=n.children)for(i=s.length-1;i>=0;--i)r.push(s[i]);return this}function me(t,a){for(var n=this,r=[n],s=[],i,c,h,f=-1;n=r.pop();)if(s.push(n),i=n.children)for(c=0,h=i.length;c<h;++c)r.push(i[c]);for(;n=s.pop();)t.call(a,n,++f,this);return this}function ye(t,a){let n=-1;for(const r of this)if(t.call(a,r,++n,this))return r}function Se(t){return this.eachAfter(function(a){for(var n=+t(a.data)||0,r=a.children,s=r&&r.length;--s>=0;)n+=r[s].value;a.value=n})}function ve(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function xe(t){for(var a=this,n=_e(a,t),r=[a];a!==n;)a=a.parent,r.push(a);for(var s=r.length;t!==n;)r.splice(s,0,t),t=t.parent;return r}function _e(t,a){if(t===a)return t;var n=t.ancestors(),r=a.ancestors(),s=null;for(t=n.pop(),a=r.pop();t===a;)s=t,t=n.pop(),a=r.pop();return s}function Ce(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function we(){return Array.from(this)}function be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function $e(){var t=this,a=[];return t.each(function(n){n!==t&&a.push({source:n.parent,target:n})}),a}function*Te(){var t=this,a,n=[t],r,s,i;do for(a=n.reverse(),n=[];t=a.pop();)if(yield t,r=t.children)for(s=0,i=r.length;s<i;++s)n.push(r[s]);while(n.length)}function ee(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ne)):a===void 0&&(a=ke);for(var n=new X(t),r,s=[n],i,c,h,f;r=s.pop();)if((c=a(r.data))&&(f=(c=Array.from(c)).length))for(r.children=c,h=f-1;h>=0;--h)s.push(i=c[h]=new X(c[h])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(Fe)}function Le(){return ee(this).eachBefore(Me)}function ke(t){return t.children}function Ne(t){return Array.isArray(t)?t[1]:null}function Me(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Fe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function X(t){this.data=t,this.depth=this.height=0,this.parent=null}X.prototype=ee.prototype={constructor:X,count:pe,each:fe,eachAfter:me,eachBefore:ge,find:ye,sum:Se,sort:ve,path:xe,ancestors:Ce,descendants:we,leaves:be,links:$e,copy:Le,[Symbol.iterator]:Te};function Ae(t){if(typeof t!="function")throw new Error;return t}function H(){return 0}function G(t){return function(){return t}}function ze(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function qe(t,a,n,r,s){for(var i=t.children,c,h=-1,f=i.length,o=t.value&&(r-a)/t.value;++h<f;)c=i[h],c.y0=n,c.y1=s,c.x0=a,c.x1=a+=c.value*o}function Ve(t,a,n,r,s){for(var i=t.children,c,h=-1,f=i.length,o=t.value&&(s-n)/t.value;++h<f;)c=i[h],c.x0=a,c.x1=r,c.y0=n,c.y1=n+=c.value*o}var De=(1+Math.sqrt(5))/2;function Pe(t,a,n,r,s,i){for(var c=[],h=a.children,f,o,d=0,x=0,l=h.length,v,y,S=a.value,p,g,A,N,V,W,k;d<l;){v=s-n,y=i-r;do p=h[x++].value;while(!p&&x<l);for(g=A=p,W=Math.max(y/v,v/y)/(S*t),k=p*p*W,V=Math.max(A/k,k/g);x<l;++x){if(p+=o=h[x].value,o<g&&(g=o),o>A&&(A=o),k=p*p*W,N=Math.max(A/k,k/g),N>V){p-=o;break}V=N}c.push(f={value:p,dice:v<y,children:h.slice(d,x)}),f.dice?qe(f,n,r,s,S?r+=y*p/S:i):Ve(f,n,r,S?n+=v*p/S:s,i),S-=p,d=x}return c}var Ie=(function t(a){function n(r,s,i,c,h){Pe(a,r,s,i,c,h)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(De);function We(){var t=Ie,a=!1,n=1,r=1,s=[0],i=H,c=H,h=H,f=H,o=H;function d(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(x),s=[0],a&&l.eachBefore(ze),l}function x(l){var v=s[l.depth],y=l.x0+v,S=l.y0+v,p=l.x1-v,g=l.y1-v;p<y&&(y=p=(y+p)/2),g<S&&(S=g=(S+g)/2),l.x0=y,l.y0=S,l.x1=p,l.y1=g,l.children&&(v=s[l.depth+1]=i(l)/2,y+=o(l)-v,S+=c(l)-v,p-=h(l)-v,g-=f(l)-v,p<y&&(y=p=(y+p)/2),g<S&&(S=g=(S+g)/2),t(l,y,S,p,g))}return d.round=function(l){return arguments.length?(a=!!l,d):a},d.size=function(l){return arguments.length?(n=+l[0],r=+l[1],d):[n,r]},d.tile=function(l){return arguments.length?(t=Ae(l),d):t},d.padding=function(l){return arguments.length?d.paddingInner(l).paddingOuter(l):d.paddingInner()},d.paddingInner=function(l){return arguments.length?(i=typeof l=="function"?l:G(+l),d):i},d.paddingOuter=function(l){return arguments.length?d.paddingTop(l).paddingRight(l).paddingBottom(l).paddingLeft(l):d.paddingTop()},d.paddingTop=function(l){return arguments.length?(c=typeof l=="function"?l:G(+l),d):c},d.paddingRight=function(l){return arguments.length?(h=typeof l=="function"?l:G(+l),d):h},d.paddingBottom=function(l){return arguments.length?(f=typeof l=="function"?l:G(+l),d):f},d.paddingLeft=function(l){return arguments.length?(o=typeof l=="function"?l:G(+l),d):o},d}var ne=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=C.setAccTitle,this.getAccTitle=C.getAccTitle,this.setDiagramTitle=C.setDiagramTitle,this.getDiagramTitle=C.getDiagramTitle,this.getAccDescription=C.getAccDescription,this.setAccDescription=C.setAccDescription}static{$.__name(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const t=C.defaultConfig_default,a=C.getConfig();return Q.cleanAndMerge({...t.treemap,...a.treemap??{}})}addNode(t,a){this.nodes.push(t),this.levels.set(t,a),a===0&&(this.outerNodes.push(t),this.root??=t)}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,a){const n=this.classes.get(t)??{id:t,styles:[],textStyles:[]},r=a.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(s=>{z.isLabelStyle(s)&&(n?.textStyles?n.textStyles.push(s):n.textStyles=[s]),n?.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(t,n)}getClasses(){return this.classes}getStylesForClass(t){return this.classes.get(t)?.styles??[]}clear(){C.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function re(t){if(!t.length)return[];const a=[],n=[];return t.forEach(r=>{const s={name:r.name,children:r.type==="Leaf"?void 0:[]};for(s.classSelector=r?.classSelector,r?.cssCompiledStyles&&(s.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(s.value=r.value);n.length>0&&n[n.length-1].level>=r.level;)n.pop();if(n.length===0)a.push(s);else{const i=n[n.length-1].node;i.children?i.children.push(s):i.children=[s]}r.type!=="Leaf"&&n.push({node:s,level:r.level})}),a}$.__name(re,"buildHierarchy");var Be=$.__name((t,a)=>{ce.populateCommonDb(t,a);const n=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const c=i.item;if(!c)continue;const h=i.indent?parseInt(i.indent):0,f=Re(c),o=c.classSelector?a.getStylesForClass(c.classSelector):[],d=o.length>0?o:void 0,x={level:h,name:f,type:c.$type,value:c.value,classSelector:c.classSelector,cssCompiledStyles:d};n.push(x)}const r=re(n),s=$.__name((i,c)=>{for(const h of i)a.addNode(h,c),h.children&&h.children.length>0&&s(h.children,c+1)},"addNodesRecursively");s(r,0)},"populate"),Re=$.__name(t=>t.name?String(t.name):"","getItemName"),le={parser:{yy:void 0},parse:$.__name(async t=>{try{const a=await ue.parse("treemap",t);q.log.debug("Treemap AST:",a);const n=le.parser?.yy;if(!(n instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Be(a,n)}catch(a){throw q.log.error("Error parsing treemap:",a),a}},"parse")},Ee=10,I=10,O=25,He={draw:$.__name((t,a,n,r)=>{const s=r.db,i=s.getConfig(),c=i.padding??Ee,h=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=C.getConfig();if(!f)return;const d=h?30:0,x=oe.selectSvgElement(a),l=i.nodeWidth?i.nodeWidth*I:960,v=i.nodeHeight?i.nodeHeight*I:500,y=l,S=v+d;x.attr("viewBox",`0 0 ${y} ${S}`),C.configureSvgSize(x,S,y,i.useMaxWidth);let p;try{const e=i.valueFormat||",";if(e==="$0,0")p=$.__name(u=>"$"+E.format(",")(u),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const u=/\.\d+/.exec(e),w=u?u[0]:"";p=$.__name(L=>"$"+E.format(","+w)(L),"valueFormat")}else if(e.startsWith("$")){const u=e.substring(1);p=$.__name(w=>"$"+E.format(u||"")(w),"valueFormat")}else p=E.format(e)}catch(e){q.log.error("Error creating format function:",e),p=E.format(",")}const g=K.ordinal().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),A=K.ordinal().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),N=K.ordinal().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);h&&x.append("text").attr("x",y/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=x.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),W=ee(f).sum(e=>e.value??0).sort((e,u)=>(u.value??0)-(e.value??0)),k=We().size([l,v]).paddingTop(e=>e.children&&e.children.length>0?O+I:0).paddingInner(c).paddingLeft(e=>e.children&&e.children.length>0?I:0).paddingRight(e=>e.children&&e.children.length>0?I:0).paddingBottom(e=>e.children&&e.children.length>0?I:0).round(!0)(W),ie=k.descendants().filter(e=>e.children&&e.children.length>0),B=V.selectAll(".treemapSection").data(ie).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",O).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),B.append("clipPath").attr("id",(e,u)=>`clip-section-${a}-${u}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",O),B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,u)=>`treemapSection section${u}`).attr("fill",e=>g(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>A(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const u=z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return u.nodeStyles+";"+u.borderStyles.join(";")}),B.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",O/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,u)=>`url(#clip-section-${a}-${u})`).attr("style",e=>e.depth===0?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(e.depth===0)return;const u=q.select_default(this),w=e.data.name;u.text(w);const L=e.x1-e.x0,F=6;let T;i.showValues!==!1&&e.value?T=L-10-30-10-F:T=L-F-6;const b=Math.max(15,T),m=u.node();if(m.getComputedTextLength()>b){let _=w;for(;_.length>0;){if(_=w.substring(0,_.length-1),_.length===0){u.text("..."),m.getComputedTextLength()>b&&u.text("");break}if(u.text(_+"..."),m.getComputedTextLength()<=b)break}}}),i.showValues!==!1&&B.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",O/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>e.depth===0?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));const te=k.leaves(),M=te.length>20,se=M?16:38,Y=M?14:28,D=M?4:8,P=M?4:6,J=M?2:4,ae=M?8:10,U=M?1:2,j=V.selectAll(".treemapLeafGroup").data(te).enter().append("g").attr("class",(e,u)=>`treemapNode treemapLeafGroup leaf${u}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("style",e=>z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,u)=>`clip-${a}-${u}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${se}px;fill:`+N(e.data.name)+";"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,u)=>`url(#clip-${a}-${u})`).text(e=>e.data.name).each(function(e){const u=q.select_default(this),w=e.x1-e.x0,L=e.y1-e.y0,F=u.node(),T=w-2*J,b=L-2*J;if(T<ae||b<ae){u.style("display","none");return}let m=parseInt(u.style("font-size"),10);const R=.6;for(;F.getComputedTextLength()>T&&m>D;)m--,u.style("font-size",`${m}px`);let _=Math.max(P,Math.min(Y,Math.round(m*R))),Z=m+U+_;for(;Z>b&&m>D&&(m--,_=Math.max(P,Math.min(Y,Math.round(m*R))),!(_<P&&m===D));)u.style("font-size",`${m}px`),Z=m+U+_,_<=P&&Z>b;u.style("font-size",`${m}px`),M?(m<D||b<D)&&u.style("display","none"):(F.getComputedTextLength()>T||m<D||b<m)&&u.style("display","none")}),i.showValues!==!1&&j.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${Y}px;fill:`+N(e.data.name)+";"+z.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,u)=>`url(#clip-${a}-${u})`).text(e=>e.value?p(e.value):"").each(function(e){const u=q.select_default(this),w=this.parentNode;if(!w){u.style("display","none");return}const L=q.select_default(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){u.style("display","none");return}const F=parseFloat(L.style("font-size")),T=Math.max(P,Math.min(Y,Math.round(F*.6)));u.style("font-size",`${T}px`);const b=(e.y1-e.y0)/2+F/2+U;u.attr("y",b);const m=e.x1-e.x0,R=e.y1-e.y0-4,_=m-2*J;u.node().getComputedTextLength()>_||b+T>R||T<P?u.style("display","none"):u.style("display",null)}),he.setupViewPortForSVG(x,i.diagramPadding??8,"flowchart",i?.useMaxWidth||!1)},"draw"),getClasses:$.__name(function(t,a){return a.db.getClasses()},"getClasses")},Ge={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Oe={parser:le,get db(){return new ne},renderer:He,styles:$.__name(({treemap:t}={})=>{const a=Q.cleanAndMerge(C.getThemeVariables3(),C.getConfig().themeVariables),n=Q.cleanAndMerge(Ge,t),r=n.titleColor??a.titleColor,s=n.labelColor??a.textColor,i=n.valueColor??a.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${n.sectionStrokeColor};
4
4
  stroke-width: ${n.sectionStrokeWidth};