ranui 0.3.1-alpha.1 → 0.4.2-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-BTq35m9x.js +9 -0
  10. package/dist/arc-BjIU7MOi.cjs +1 -0
  11. package/dist/{arc-DRPGof21.js → arc-DJJx8BhF.js} +1 -1
  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-2HD21I6K.cjs +1 -0
  22. package/dist/builder.js +40 -40
  23. package/dist/{button-Dw6YKyNd.js → button-BgWXCj7-.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-DzVv3ADA.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-KOXDiwRr.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-By7YwAJj.cjs +1 -0
  70. package/dist/circle-fold-BJWGLDa6.cjs +1 -0
  71. package/dist/circle-fold-DrwUHB-m.js +9 -0
  72. package/dist/circle-line-BsXpw2HA.cjs +1 -0
  73. package/dist/circle-line-DCUX3o9u.js +9 -0
  74. package/dist/circle-rotate-BK1tW3Jv.cjs +1 -0
  75. package/dist/circle-rotate-DeBqoVVp.js +9 -0
  76. package/dist/circle-spin-Crycoffl.js +9 -0
  77. package/dist/circle-spin-Ctoq0Wil.cjs +1 -0
  78. package/dist/circle-turn-DytKZEgU.js +9 -0
  79. package/dist/circle-turn-J9aToB75.cjs +1 -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-7adjGSuz.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-BmwgR8WP.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-BB32JJuI.cjs +1 -0
  131. package/dist/cube-dim-DTcZAlcE.cjs +1 -0
  132. package/dist/cube-dim-DgfzlG3p.js +9 -0
  133. package/dist/cube-fold-CKVQ1IDZ.cjs +1 -0
  134. package/dist/cube-fold-Dp4-pf7P.js +9 -0
  135. package/dist/cube-grid-BrxyqSNh.cjs +1 -0
  136. package/dist/cube-grid-DprxkSoT.js +9 -0
  137. package/dist/cube-iOzgFQbc.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-bar-C2PcL7wc.cjs +1 -0
  154. package/dist/dot-bar-vHWpqnhw.js +9 -0
  155. package/dist/dot-circle-DQqpkRr_.js +9 -0
  156. package/dist/dot-circle-EInrpGOw.cjs +1 -0
  157. package/dist/dot-do6V9GYP.cjs +1 -0
  158. package/dist/dot-line-BEFriL91.cjs +1 -0
  159. package/dist/dot-line-CorWP6p2.js +9 -0
  160. package/dist/dot-pulse-BGidqqxA.cjs +1 -0
  161. package/dist/dot-pulse-OtjDlpwG.js +9 -0
  162. package/dist/double-bounce-CWAE4F5S.js +9 -0
  163. package/dist/double-bounce-DOehLE4X.cjs +1 -0
  164. package/dist/download-DiDwbZL3.cjs +1 -0
  165. package/dist/drop-BkBi0TEt.cjs +1 -0
  166. package/dist/drop-CTSvqyOb.js +9 -0
  167. package/dist/drop-DU-RgWR1.js +16 -0
  168. package/dist/drop-_Iz47Fmh.cjs +7 -0
  169. package/dist/{dropdown-CzGAVWYC.js → dropdown-DQy4YvVn.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-Bbul5tOL.js +653 -0
  180. package/dist/flowDiagram-23GEKE2U-BxyRR3qT.js +19 -0
  181. package/dist/{form-B8afuJlF.js → form-DwjKUNz4.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-DKQAEAmc.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-DSIyi1nQ.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-Bn0VuwO0.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-2Zz1gLzy.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-BFm46PmI.cjs +1 -0
  255. package/dist/{line-BIPmUVxO.js → line-CteEpfCu.js} +1 -1
  256. package/dist/line-Dt7YMxyn.js +9 -0
  257. package/dist/line-scale-BNCCcLKl.js +9 -0
  258. package/dist/line-scale-Mzdq1fTx.cjs +1 -0
  259. package/dist/{linear-B2AM4ZBe.js → linear-C8AjwHWi.js} +1 -1
  260. package/dist/{link-BCrmHvXP.js → link-DcRMinJ9.js} +9 -9
  261. package/dist/link.js +1 -1
  262. package/dist/loading-BXZBOAbH.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-C6oaCrk-.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-Cmxzclzv.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-DHzOpb1d.cjs +1 -0
  281. package/dist/{message-CNdmbeLf.js → message-E92Vu7SO.js} +24 -21
  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-BQUM-5G3.cjs +2 -0
  285. package/dist/{modal-gRagDkTb.js → modal-TayIRDMV.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-DqDqKzL4.js +9 -0
  291. package/dist/pacman-hB0Vx_ut.cjs +1 -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-BZVIOmdS.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-Bimxdeql.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-CNUdc_VD.js} +13 -12
  309. package/dist/progress.js +1 -1
  310. package/dist/pulse-CPV8p0Lr.cjs +1 -0
  311. package/dist/pulse-IOuRzRUm.js +9 -0
  312. package/dist/{quadrantDiagram-ABIIQ3AL-TJ8FmqES.js → quadrantDiagram-ABIIQ3AL-rDltxRrQ.js} +3 -3
  313. package/dist/{radar-Bg0cexzU.js → radar-Dse0Dgma.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-O1KJozW0.cjs +1 -0
  326. package/dist/rotate-uZhtaw8R.js +9 -0
  327. package/dist/{route-CGwS0cd_.js → route-Dh5S2dSW.js} +10 -11
  328. package/dist/route.js +1 -1
  329. package/dist/{router-BK6DEkcN.js → router-DUxBSvIi.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-CEERARri.cjs +1 -0
  333. package/dist/scale-out-mSsKNtie.js +9 -0
  334. package/dist/{scratch-ClF1awGi.js → scratch-4TCqNbat.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-CMN7tQ-S.js} +10 -10
  339. package/dist/section.js +1 -1
  340. package/dist/{select-DRKYa3W2.js → select-D48kcwEy.js} +53 -47
  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-DbgMcQQ0.js} +9 -9
  346. package/dist/skeleton.js +1 -1
  347. package/dist/solar-CdvkRr5X.cjs +1 -0
  348. package/dist/solar-Ck7RIK09.js +9 -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-exSvykCu.cjs +1 -0
  354. package/dist/square-xGODzCyr.js +9 -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-DSGwPtEd.js → ssr-BzHZ2bCe.js} +5 -5
  358. package/dist/ssr-stream.js +1 -1
  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-Bv60MZD_.js +9 -0
  363. package/dist/stretch-CTFwefaK.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-ADuziXeq.js} +12 -12
  367. package/dist/tab.js +1 -1
  368. package/dist/{tabpane-C3qZGN-D.js → tabpane-Bisq-qpc.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-BniFEEB5.cjs +1 -0
  377. package/dist/text-CX8UkbzB.js +17 -0
  378. package/dist/theme-DL6q_FZu.js +52 -0
  379. package/dist/{theme-switch-BXNH5uPD.js → theme-switch-GbuiPclm.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-BwxTDpKz.js +9 -0
  386. package/dist/triple-bounce-BzAtF-TA.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-X5_TIQTQ.js +48 -0
  399. package/dist/utils-xccQZnoa.js +650 -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,17 +1,17 @@
1
1
  import { n as d } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
- import { m as I } from "./src-DtRLxcYO.js";
3
- import { b as ae, et as ce, f as F, k as le, rt as he, tt as de, x as $, z as V } 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 I } from "./src-CM-0IT-N.js";
3
+ import { b as ae, et as ce, f as F, k as le, rt as he, tt as de, x as $, z as V } 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 "./chunk-OGEWGWER-BV51ll2w.js";
9
- import { t as ge } from "./chunk-XXDRQBXY-BB1i_53q.js";
10
- import { t as ue } from "./chunk-VR4S4FIN-CJi5okl4.js";
11
- import "./chunk-C7G6YPKG-CA-DNpvI.js";
12
- import "./chunk-ZGVPDNZ5-6uMbTJXy.js";
13
- import "./chunk-52WLFC77-wpL7en7e.js";
14
- import { r as pe, t as me } from "./chunk-FWX5IMBZ-DZ5VYvm5.js";
8
+ import "./chunk-OGEWGWER-CYsD5SNd.js";
9
+ import { t as ge } from "./chunk-XXDRQBXY-BeVLa_G2.js";
10
+ import { t as ue } from "./chunk-VR4S4FIN-DQsfbArk.js";
11
+ import "./chunk-C7G6YPKG-CuJexLt7.js";
12
+ import "./chunk-ZGVPDNZ5-DlEsNy2g.js";
13
+ import "./chunk-52WLFC77-CLS2Long.js";
14
+ import { r as pe, t as me } from "./chunk-FWX5IMBZ-Cpx1Lg-4.js";
15
15
  var _ = [];
16
16
  for (let e = 0; e < 256; ++e) _.push((e + 256).toString(16).slice(1));
17
17
  function fe(e, n = 0) {
@@ -0,0 +1,2 @@
1
+ const V=require("./rolldown-runtime-CAnuVJ4g.cjs"),i=require("./builder-2HD21I6K.cjs");var h="ran-theme",Y="(prefers-color-scheme: dark)",v=null,f=r=>{if(r&&"style"in r)return r;if(r&&"documentElement"in r)return r.documentElement;if(!(typeof document>"u"))return document.documentElement},G=(r,e)=>{r.setAttribute("data-ran-theme",e?"dark":"light"),r.setAttribute("theme",e?"dark":"light")},Q=()=>{v?.(),v=null},E=(r,e)=>{const t=f(e);if(t){if(Q(),r==="system"){if(typeof window>"u")return;v=i.f$1(Y,o=>G(t,o)),i.T(h,"system");return}t.setAttribute("data-ran-theme",r),t.setAttribute("theme",r),i.T(h,r)}},X=r=>{const e=f(r);if(!e)return"";const t=e.getAttribute("data-ran-theme")||e.getAttribute("theme")||"";return t==="light"||t==="dark"?i.U(h)==="system"?"system":t:""},w=(r,e,t)=>{const o=f(t);o&&o.style.setProperty(r,String(e))},C=(r,e)=>{const t=f(e);t&&t.style.removeProperty(r)},J=(r,e)=>{Object.entries(r).forEach(([t,o])=>{if(o==null){C(t,e);return}w(t,o,e)})},Z=r=>{const e=i.U(h);(e==="light"||e==="dark"||e==="system")&&E(e,r)},T=class{ac;constructor(){this.ac=new AbortController}get signal(){return this.ac.signal}on(r,e,t,o){return r.addEventListener(e,t,{...o,signal:this.ac.signal}),this}delegate(r,e,t,o,n){return r.addEventListener(t,l=>{const d=l.target?.closest(e);d&&r.contains(d)&&o(l,d)},{...n,signal:this.ac.signal}),this}abort(){this.ac.abort(),this.ac=new AbortController}},y=[!1,"false",null,void 0],ee=r=>{const e=r.hasAttribute("disabled"),t=r.getAttribute("disabled");return!!(e&&!y.includes(t))},x=new Map;function O(r,e){i.isSSR?(x.set(r,e),e.prototype._ssrTag=r):customElements.get(r)||customElements.define(r,e)}function te(){return x}var P=()=>typeof document<"u"?HTMLElement:i.HTMLElementMock,D=P(),re=r=>{if(r.tagName&&r.tagName!=="div")return r.tagName;const e=te();for(const[t,o]of e)if(r instanceof o)return t;return r.constructor.name.toLowerCase()},oe=r=>{if(!r)return"";const e=re(r);return typeof r.serialize=="function"||r instanceof i.HTMLElementMock?r.serialize(e):""},ae="data-ranui",ie="data-ranui-sheet",M=(r,e)=>i.an(r,e,ae),ne=(r,e)=>i.sn(r,e,ie),A=new WeakMap,k="@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}",L=(r,e="",t={mode:"closed"})=>{const o=r.shadowRoot||A.get(r)||r.attachShadow(t);return A.set(r,o),M(o,e?`${e}
2
+ ${k}`:k),o},R=(r,e,t)=>{const o=r.querySelector(e);if(o)return o;const n=t();return r.appendChild(n),n},F=(r,e,t="")=>r.getAttribute(e)??t,j=(r,e,t,o={})=>{if(o.removeEmpty&&!t){r.removeAttribute(e);return}r.setAttribute(e,t??"")},se=(r,e,t,o={})=>{if(t){r.setAttribute(e,""),o.aria&&r.setAttribute(`aria-${o.aria}`,"true");return}r.removeAttribute(e),o.aria&&r.removeAttribute(`aria-${o.aria}`)},B=(r,e,t,o,n)=>{if(t!=="sheet"||o===n)return;const l=r.getAttribute("sheet")||"";l&&ne(e,l)},le=".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{position:var(--ran-modal-host-position, static)}.ran-modal-root{position:var(--ran-modal-root-position, fixed);inset:var(--ran-modal-root-inset, 0);z-index:var(--ran-modal-root-z-index, var(--ran-z-modal, 1000));display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.ran-modal-root[open]{opacity:1;visibility:visible}.ran-modal-mask{position:var(--ran-modal-mask-position, absolute);inset:var(--ran-modal-mask-inset, 0);background:var(--ran-modal-mask-background, rgba(0, 0, 0, .45))}.ran-modal-dialog{position:var(--ran-modal-dialog-position, relative);width:var(--ran-modal-dialog-width, min(560px, calc(100vw - 32px) ));margin:var(--ran-modal-dialog-margin, 0 auto);background:var(--ran-modal-dialog-background, var(--ran-color-bg-elevated, #fff));border-image-source:var(--ran-modal-dialog-border-image-source, none);border-image-slice:var(--ran-modal-dialog-border-image-slice, 8);border-image-width:var(--ran-modal-dialog-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-modal-dialog-border-radius, var(--ran-radius-md, 12px));box-shadow:var(--ran-modal-dialog-box-shadow, var(--ran-shadow-modal, var(--ran-shadow-elevated, 0 10px 32px rgba(0, 0, 0, .2))));outline:var(--ran-modal-dialog-outline, none);max-height:var(--ran-modal-dialog-max-height, 80vh );overflow:var(--ran-modal-dialog-overflow, hidden);transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(.9);transition:transform .3s cubic-bezier(.075,.82,.165,1)}.ran-modal-root[open] .ran-modal-dialog{transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(1)}.ran-modal-header{display:var(--ran-modal-header-display, flex);align-items:var(--ran-modal-header-align-items, center);justify-content:var(--ran-modal-header-justify-content, space-between);padding:var(--ran-modal-header-padding, 16px 18px);border-bottom:var(--ran-modal-header-border-bottom, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.hide-header .ran-modal-header{position:absolute;top:0;right:0;z-index:1;padding:var(--ran-modal-hide-header-padding, 10px);border-bottom:none;background:transparent}.ran-modal-root.hide-header .ran-modal-title{display:none}.ran-modal-title{margin:var(--ran-modal-title-margin, 0);font-size:var(--ran-modal-title-font-size, 16px);line-height:var(--ran-modal-title-line-height, 1.5);color:var(--ran-modal-title-color, var(--ran-color-text, #111827))}.ran-modal-close{border:var(--ran-modal-close-border, none);background:var(--ran-modal-close-background, transparent);color:var(--ran-modal-close-color, var(--ran-color-text-secondary, #667085));font-size:var(--ran-modal-close-font-size, 18px);cursor:var(--ran-modal-close-cursor, pointer);padding:var(--ran-modal-close-padding, 0 4px)}.ran-modal-body{padding:var(--ran-modal-body-padding, 18px);max-height:var(--ran-modal-body-max-height, 68vh );overflow:var(--ran-modal-body-overflow, auto);color:var(--ran-modal-body-color, var(--ran-color-text-secondary, #344054))}.ran-modal-footer{display:none;align-items:var(--ran-modal-footer-align-items, center);justify-content:var(--ran-modal-footer-justify-content, flex-end);gap:var(--ran-modal-footer-gap, 10px);padding:var(--ran-modal-footer-padding, 12px 18px 18px);border-top:var(--ran-modal-footer-border-top, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.has-footer .ran-modal-footer{display:flex}.ran-modal-footer::slotted(.ran-modal-actions){display:inline-flex;align-items:center;justify-content:flex-end;gap:10px}.ran-modal-footer::slotted(.ran-modal-action){border:1px solid var(--ran-color-border, #d0d5dd);background:var(--ran-color-bg-elevated, #fff);border-radius:var(--ran-radius-sm, 6px);height:34px;line-height:32px;padding:0 14px;cursor:pointer;font-size:14px;color:var(--ran-color-text-secondary, #344054)}.ran-modal-footer::slotted(.ran-modal-action-confirm){border-color:var(--ran-color-primary, #155eef);background:var(--ran-color-primary, #155eef);color:#fff}.ran-modal-footer::slotted(.ran-modal-action:disabled){opacity:.6;cursor:not-allowed}",de=V.__exportAll({Modal:()=>m,default:()=>m}),S='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',m=class a extends D{static _openStack=[];static _bodyScrollLockCount=0;static _bodyOverflow="";static _bodyPaddingRight="";static _inertSnapshot=new Map;_events=new T;_shadowDom;_root;_mask;_dialog;_title;_closeBtn;_slot;_footer;_footerSlot;_labelId;_previousActiveElement;_isDialogOpen;_scrollLocked;_afterOpenTimer;_afterCloseTimer;static get observedAttributes(){return["open","title","maskClosable","closeOnEsc","lockScroll","autoFocus","closable","hide-header","sheet"]}constructor(){super(),this._labelId=`ran-modal-title-${Math.random().toString(36).slice(2,9)}`,this._previousActiveElement=null,this._isDialogOpen=!1,this._scrollLocked=!1,this._afterOpenTimer=null,this._afterCloseTimer=null,this._shadowDom=L(this,le);const e=R(this._shadowDom,".ran-modal-root",()=>i.Div().class("ran-modal-root").part("root").children(i.Div().class("ran-modal-mask").part("mask"),i.Div().class("ran-modal-dialog").part("dialog").role("dialog").attr("aria-modal","true").tabIndex(-1).labelledBy(this._labelId).children(i.View("header").class("ran-modal-header").part("header").children(i.View("h3").class("ran-modal-title").part("title").id(this._labelId),i.View("button").class("ran-modal-close").part("close").attr("type","button").label("Close dialog").text("x")),i.Div().class("ran-modal-body").part("body").children(i.Slot()),i.View("footer").class("ran-modal-footer").part("footer").children(i.Slot().attr("name","footer")))).build());this._root=e,this._mask=this._root.querySelector(".ran-modal-mask"),this._dialog=this._root.querySelector(".ran-modal-dialog"),this._title=this._root.querySelector(".ran-modal-title"),this._closeBtn=this._root.querySelector(".ran-modal-close"),this._slot=this._root.querySelector("slot"),this._footer=this._root.querySelector(".ran-modal-footer"),this._footerSlot=this._root.querySelector('slot[name="footer"]'),this.syncTitle(),this.syncClosable(),this.syncFooter(),this.syncHeader()}get open(){return this.hasAttribute("open")&&!y.includes(this.getAttribute("open"))}set open(e){!e||e==="false"?this.removeAttribute("open"):this.setAttribute("open","")}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e||"")}get maskClosable(){const e=this.getAttribute("maskClosable");return!(e==="false"||e==="0")}set maskClosable(e){!e||e==="false"||e==="0"?this.setAttribute("maskClosable","false"):this.setAttribute("maskClosable","true")}get sheet(){return F(this,"sheet")}set sheet(e){j(this,"sheet",e)}get closeOnEsc(){const e=this.getAttribute("closeOnEsc");return!(e==="false"||e==="0")}set closeOnEsc(e){!e||e==="false"||e==="0"?this.setAttribute("closeOnEsc","false"):this.setAttribute("closeOnEsc","true")}get lockScroll(){const e=this.getAttribute("lockScroll");return!(e==="false"||e==="0")}set lockScroll(e){!e||e==="false"||e==="0"?this.setAttribute("lockScroll","false"):this.setAttribute("lockScroll","true")}get autoFocus(){const e=this.getAttribute("autoFocus");return!(e==="false"||e==="0")}set autoFocus(e){!e||e==="false"||e==="0"?this.setAttribute("autoFocus","false"):this.setAttribute("autoFocus","true")}get closable(){const e=this.getAttribute("closable");return!(e==="false"||e==="0")}set closable(e){!e||e==="false"||e==="0"?this.setAttribute("closable","false"):this.setAttribute("closable","true")}get hideHeader(){const e=this.getAttribute("hide-header");return e!==null&&e!=="false"&&e!=="0"}set hideHeader(e){!e||e==="false"||e==="0"?this.removeAttribute("hide-header"):this.setAttribute("hide-header","")}handlerExternalCss=()=>{B(this,this._shadowDom,"sheet",null,this.sheet)};syncTitle=()=>{this._title.textContent=this.title||"Modal",this.hideHeader&&this._dialog.setAttribute("aria-label",this.title||"Modal")};syncClosable=()=>{const e=this.closable;this._closeBtn.hidden=!e,this._closeBtn.setAttribute("aria-hidden",e?"false":"true"),this._closeBtn.tabIndex=e?0:-1};syncHeader=()=>{const e=this.hideHeader;this._root.classList.toggle("hide-header",e),e?(this._dialog.setAttribute("aria-label",this.title||"Modal"),this._dialog.removeAttribute("aria-labelledby")):(this._dialog.setAttribute("aria-labelledby",this._labelId),this._dialog.removeAttribute("aria-label"))};syncFooter=()=>{const e=(this._footerSlot?.assignedNodes({flatten:!0})||[]).some(t=>t.nodeType===Node.ELEMENT_NODE?!0:t.nodeType===Node.TEXT_NODE?(t.textContent||"").trim().length>0:!1);this._root.classList.toggle("has-footer",e)};getFocusableElements=()=>{const e=Array.from(this._dialog.querySelectorAll(S)),t=Array.from(this.querySelectorAll(S));return[...e,...t].filter(o=>{if(o.hasAttribute("disabled"))return!1;const n=o;return n.offsetParent!==null||n.getClientRects().length>0})};static getTopModal=()=>a._openStack.length===0?null:a._openStack[a._openStack.length-1]||null;static pushOpenModal=e=>{a._openStack.includes(e)||a._openStack.push(e)};static removeOpenModal=e=>{a._openStack=a._openStack.filter(t=>t!==e)};static syncBackgroundInert=()=>{if(typeof document>"u")return;const e=document.body;if(!e)return;for(const[o,n]of a._inertSnapshot.entries())o.inert=n.inert,n.ariaHidden===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",n.ariaHidden);if(a._inertSnapshot.clear(),a._openStack.length===0)return;const t=a._openStack.map(o=>o);Array.from(e.children).forEach(o=>{t.some(n=>o===n||o.contains(n))||(a._inertSnapshot.set(o,{inert:o.inert,ariaHidden:o.getAttribute("aria-hidden")}),o.inert=!0,o.setAttribute("aria-hidden","true"))})};static lockBodyScroll=()=>{if(typeof document>"u")return;const e=document.body;if(e){if(a._bodyScrollLockCount===0){a._bodyOverflow=e.style.overflow,a._bodyPaddingRight=e.style.paddingRight;const t=Math.max(0,window.innerWidth-document.documentElement.clientWidth);if(t>0){const o=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${o+t}px`}e.style.overflow="hidden"}a._bodyScrollLockCount+=1}};static unlockBodyScroll=()=>{if(typeof document>"u")return;const e=document.body;!e||a._bodyScrollLockCount===0||(a._bodyScrollLockCount-=1,a._bodyScrollLockCount===0&&(e.style.overflow=a._bodyOverflow,e.style.paddingRight=a._bodyPaddingRight))};clearAfterTimers=()=>{this._afterOpenTimer!==null&&(window.clearTimeout(this._afterOpenTimer),this._afterOpenTimer=null),this._afterCloseTimer!==null&&(window.clearTimeout(this._afterCloseTimer),this._afterCloseTimer=null)};getTransitionTimeout=()=>{const e=window.getComputedStyle(this._dialog),t=l=>{const d=l.split(",")[0]?.trim()||"0s";return d.endsWith("ms")?Number.parseFloat(d):d.endsWith("s")?Number.parseFloat(d)*1e3:Number.parseFloat(d)||0},o=t(e.transitionDelay),n=t(e.transitionDuration);return Math.max(0,o+n)};emitAfterOpen=()=>{const e=this.getTransitionTimeout();this._afterOpenTimer=window.setTimeout(()=>{this._afterOpenTimer=null,this.dispatchEvent(new CustomEvent("afteropen"))},e)};emitAfterClose=e=>{const t=this.getTransitionTimeout();this._afterCloseTimer=window.setTimeout(()=>{this._afterCloseTimer=null,this.dispatchEvent(new CustomEvent("afterclose",{detail:{trigger:e}}))},t)};trapFocus=e=>{if(e.key!=="Tab")return;const t=this.getFocusableElements();if(t.length===0){e.preventDefault(),this._dialog.focus();return}const o=t[0],n=t[t.length-1],l=this._shadowDom.activeElement||document.activeElement;if(e.shiftKey&&l===o){e.preventDefault(),n.focus();return}!e.shiftKey&&l===n&&(e.preventDefault(),o.focus())};close=(e="program")=>{if(!this.open)return;const t=new CustomEvent("beforeclose",{cancelable:!0,detail:{trigger:e}});this.dispatchEvent(t)&&(this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("close",{detail:{trigger:e}})),this.emitAfterClose(e))};openDialog=()=>{if(this._isDialogOpen||this._root.hasAttribute("open"))return;const e=new CustomEvent("beforeopen",{cancelable:!0});if(!this.dispatchEvent(e)){this.removeAttribute("open");return}this._previousActiveElement=document.activeElement,a.pushOpenModal(this),a.syncBackgroundInert(),this.lockScroll&&(a.lockBodyScroll(),this._scrollLocked=!0),this._isDialogOpen=!0,this._root.setAttribute("open",""),this._dialog.setAttribute("aria-hidden","false"),this.dispatchEvent(new CustomEvent("open")),this.clearAfterTimers(),this.emitAfterOpen(),requestAnimationFrame(()=>{this.autoFocus&&(this.getFocusableElements()[0]||this._dialog).focus()})};closeDialog=()=>{if(!this._isDialogOpen){this._root.removeAttribute("open"),this._dialog.setAttribute("aria-hidden","true");return}this._isDialogOpen=!1,a.removeOpenModal(this),a.syncBackgroundInert(),this._scrollLocked&&(a.unlockBodyScroll(),this._scrollLocked=!1),this._root.removeAttribute("open"),this._dialog.setAttribute("aria-hidden","true"),this._previousActiveElement instanceof HTMLElement&&this._previousActiveElement.focus()};onMaskClick=e=>{this.maskClosable&&(e.composedPath().includes(this._dialog)||this.close("mask"))};onCloseButtonClick=()=>{this.close("button")};onKeydown=e=>{if(this.open&&a.getTopModal()===this){if(e.key==="Escape"&&this.closeOnEsc){e.preventDefault(),this.close("escape");return}this.trapFocus(e)}};onDocumentFocusIn=e=>{if(!this.open||a.getTopModal()!==this)return;const t=e.composedPath();t.includes(this)||t.includes(this._dialog)||(this.getFocusableElements()[0]||this._dialog).focus()};connectedCallback(){this.handlerExternalCss(),this._events.on(this._mask,"click",this.onMaskClick).on(this._closeBtn,"click",this.onCloseButtonClick).on(document,"keydown",this.onKeydown).on(document,"focusin",this.onDocumentFocusIn).on(this._footerSlot,"slotchange",this.syncFooter),this.syncTitle(),this.syncClosable(),this.syncFooter(),this.syncHeader(),this.open?this.openDialog():this.closeDialog()}disconnectedCallback(){this._root.hasAttribute("open")&&this.closeDialog(),this._events.abort(),this.clearAfterTimers()}attributeChangedCallback(e,t,o){if(t!==o){if(e==="title"){this.syncTitle();return}if(e==="closable"){this.syncClosable();return}if(e==="hide-header"){this.syncHeader();return}if(e==="open"){this.open?this.openDialog():this.closeDialog();return}e==="sheet"&&this.handlerExternalCss()}}static normalizeProgrammaticOptions=e=>typeof e=="string"?{content:e}:e||{};static open=e=>{if(typeof document>"u")return Promise.resolve({action:"dismiss",trigger:"program"});const{title:t="Confirm",content:o="",okText:n="OK",cancelText:l="Cancel",showCancel:d=!1,maskClosable:H=!1,closeOnEsc:z=!0,lockScroll:I=!0,autoFocus:N=!0,closable:q=!0,onConfirm:K,onCancel:W}=a.normalizeProgrammaticOptions(e);return new Promise(U=>{const s=i.View("r-modal").build();s.title=t,s.maskClosable=H,s.closeOnEsc=z,s.lockScroll=I,s.autoFocus=N,s.closable=q;const b=i.Div().build();typeof o=="string"?b.textContent=o:o instanceof Node&&b.appendChild(o),s.appendChild(b);let p="dismiss";const g=i.Div().attr("slot","footer").class("ran-modal-actions");if(d){const u=i.ButtonBuilder().attr("type","button").class("ran-modal-action ran-modal-action-cancel").text(l).build();u.addEventListener("click",async()=>{await W?.()!==!1&&(p="cancel",s.close("program"))}),g.children(u)}const c=i.ButtonBuilder().attr("type","button").class("ran-modal-action ran-modal-action-confirm").text(n).build();c.addEventListener("click",async()=>{c.disabled=!0;try{if(await K?.()===!1)return;p="confirm",s.close("program")}finally{c.disabled=!1}}),g.children(c),s.appendChild(g.build());const _=u=>{const $=u.detail?.trigger||"program";s.removeEventListener("afterclose",_),s.parentElement&&s.parentElement.removeChild(s),U({action:p,trigger:$})};s.addEventListener("afterclose",_),document.body.appendChild(s),s.open=!0})};static confirm=e=>{const t=a.normalizeProgrammaticOptions(e);return a.open({...t,showCancel:!0})};static info=e=>{const t=a.normalizeProgrammaticOptions(e);return a.open({...t,showCancel:!1,title:t.title||"Info"})};static success=e=>{const t=a.normalizeProgrammaticOptions(e);return a.open({...t,showCancel:!1,title:t.title||"Success"})};static warning=e=>{const t=a.normalizeProgrammaticOptions(e);return a.open({...t,showCancel:!1,title:t.title||"Warning"})};static error=e=>{const t=a.normalizeProgrammaticOptions(e);return a.open({...t,showCancel:!1,title:t.title||"Error"})}};O("r-modal",m);Object.defineProperty(exports,"EventManager",{enumerable:!0,get:function(){return T}});Object.defineProperty(exports,"HTMLElementSSR",{enumerable:!0,get:function(){return P}});Object.defineProperty(exports,"Modal",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"RanElement",{enumerable:!0,get:function(){return D}});Object.defineProperty(exports,"adoptStyles",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"clearThemeToken",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"defineSSR",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"ensureShadowElement",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"ensureShadowRoot",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"falseList",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"getStringAttribute",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"getTheme",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"initTheme",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"isDisabled",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"modal_exports",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"renderToString",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"setBooleanAttribute",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"setStringAttribute",{enumerable:!0,get:function(){return j}});Object.defineProperty(exports,"setTheme",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"setThemeToken",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"setThemeTokens",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"syncSheetAttribute",{enumerable:!0,get:function(){return B}});
@@ -1,14 +1,14 @@
1
- import { a as T, n as O, o as F, r as D, s as B, t as L } from "./utils-D1iZnChu.js";
2
- import { t as M } from "./events-C59wGdni.js";
3
- import { _ as d, i as l, n as b, p as g } from "./factory-ZNhcQ4tf.js";
4
- import { a as z, n as P } from "./ssr-DSGwPtEd.js";
5
- var H = ".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{position:var(--ran-modal-host-position, static)}.ran-modal-root{position:var(--ran-modal-root-position, fixed);inset:var(--ran-modal-root-inset, 0);z-index:var(--ran-modal-root-z-index, var(--ran-z-modal, 1000));display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.ran-modal-root[open]{opacity:1;visibility:visible}.ran-modal-mask{position:var(--ran-modal-mask-position, absolute);inset:var(--ran-modal-mask-inset, 0);background:var(--ran-modal-mask-background, rgba(0, 0, 0, .45))}.ran-modal-dialog{position:var(--ran-modal-dialog-position, relative);width:var(--ran-modal-dialog-width, min(560px, calc(100vw - 32px) ));margin:var(--ran-modal-dialog-margin, 0 auto);background:var(--ran-modal-dialog-background, var(--ran-color-bg-elevated, #fff));border-image-source:var(--ran-modal-dialog-border-image-source, none);border-image-slice:var(--ran-modal-dialog-border-image-slice, 8);border-image-width:var(--ran-modal-dialog-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-modal-dialog-border-radius, var(--ran-radius-md, 12px));box-shadow:var(--ran-modal-dialog-box-shadow, var(--ran-shadow-modal, var(--ran-shadow-elevated, 0 10px 32px rgba(0, 0, 0, .2))));outline:var(--ran-modal-dialog-outline, none);max-height:var(--ran-modal-dialog-max-height, 80vh );overflow:var(--ran-modal-dialog-overflow, hidden);transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(.9);transition:transform .3s cubic-bezier(.075,.82,.165,1)}.ran-modal-root[open] .ran-modal-dialog{transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(1)}.ran-modal-header{display:var(--ran-modal-header-display, flex);align-items:var(--ran-modal-header-align-items, center);justify-content:var(--ran-modal-header-justify-content, space-between);padding:var(--ran-modal-header-padding, 16px 18px);border-bottom:var(--ran-modal-header-border-bottom, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.hide-header .ran-modal-header{position:absolute;top:0;right:0;z-index:1;padding:var(--ran-modal-hide-header-padding, 10px);border-bottom:none;background:transparent}.ran-modal-root.hide-header .ran-modal-title{display:none}.ran-modal-title{margin:var(--ran-modal-title-margin, 0);font-size:var(--ran-modal-title-font-size, 16px);line-height:var(--ran-modal-title-line-height, 1.5);color:var(--ran-modal-title-color, var(--ran-color-text, #111827))}.ran-modal-close{border:var(--ran-modal-close-border, none);background:var(--ran-modal-close-background, transparent);color:var(--ran-modal-close-color, var(--ran-color-text-secondary, #667085));font-size:var(--ran-modal-close-font-size, 18px);cursor:var(--ran-modal-close-cursor, pointer);padding:var(--ran-modal-close-padding, 0 4px)}.ran-modal-body{padding:var(--ran-modal-body-padding, 18px);max-height:var(--ran-modal-body-max-height, 68vh );overflow:var(--ran-modal-body-overflow, auto);color:var(--ran-modal-body-color, var(--ran-color-text-secondary, #344054))}.ran-modal-footer{display:none;align-items:var(--ran-modal-footer-align-items, center);justify-content:var(--ran-modal-footer-justify-content, flex-end);gap:var(--ran-modal-footer-gap, 10px);padding:var(--ran-modal-footer-padding, 12px 18px 18px);border-top:var(--ran-modal-footer-border-top, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.has-footer .ran-modal-footer{display:flex}.ran-modal-footer::slotted(.ran-modal-actions){display:inline-flex;align-items:center;justify-content:flex-end;gap:10px}.ran-modal-footer::slotted(.ran-modal-action){border:1px solid var(--ran-color-border, #d0d5dd);background:var(--ran-color-bg-elevated, #fff);border-radius:var(--ran-radius-sm, 6px);height:34px;line-height:32px;padding:0 14px;cursor:pointer;font-size:14px;color:var(--ran-color-text-secondary, #344054)}.ran-modal-footer::slotted(.ran-modal-action-confirm){border-color:var(--ran-color-primary, #155eef);background:var(--ran-color-primary, #155eef);color:#fff}.ran-modal-footer::slotted(.ran-modal-action:disabled){opacity:.6;cursor:not-allowed}", v = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', I = class o extends P {
1
+ import { _ as d, i as l, n as b, p as g } from "./factory-Bbul5tOL.js";
2
+ import { t as T } from "./events-C59wGdni.js";
3
+ import { a as O, n as F } from "./ssr-BzHZ2bCe.js";
4
+ import { a as D, c as B, n as L, o as M, r as z, t as P } from "./utils-X5_TIQTQ.js";
5
+ var H = ".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{position:var(--ran-modal-host-position, static)}.ran-modal-root{position:var(--ran-modal-root-position, fixed);inset:var(--ran-modal-root-inset, 0);z-index:var(--ran-modal-root-z-index, var(--ran-z-modal, 1000));display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.ran-modal-root[open]{opacity:1;visibility:visible}.ran-modal-mask{position:var(--ran-modal-mask-position, absolute);inset:var(--ran-modal-mask-inset, 0);background:var(--ran-modal-mask-background, rgba(0, 0, 0, .45))}.ran-modal-dialog{position:var(--ran-modal-dialog-position, relative);width:var(--ran-modal-dialog-width, min(560px, calc(100vw - 32px) ));margin:var(--ran-modal-dialog-margin, 0 auto);background:var(--ran-modal-dialog-background, var(--ran-color-bg-elevated, #fff));border-image-source:var(--ran-modal-dialog-border-image-source, none);border-image-slice:var(--ran-modal-dialog-border-image-slice, 8);border-image-width:var(--ran-modal-dialog-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-modal-dialog-border-radius, var(--ran-radius-md, 12px));box-shadow:var(--ran-modal-dialog-box-shadow, var(--ran-shadow-modal, var(--ran-shadow-elevated, 0 10px 32px rgba(0, 0, 0, .2))));outline:var(--ran-modal-dialog-outline, none);max-height:var(--ran-modal-dialog-max-height, 80vh );overflow:var(--ran-modal-dialog-overflow, hidden);transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(.9);transition:transform .3s cubic-bezier(.075,.82,.165,1)}.ran-modal-root[open] .ran-modal-dialog{transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(1)}.ran-modal-header{display:var(--ran-modal-header-display, flex);align-items:var(--ran-modal-header-align-items, center);justify-content:var(--ran-modal-header-justify-content, space-between);padding:var(--ran-modal-header-padding, 16px 18px);border-bottom:var(--ran-modal-header-border-bottom, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.hide-header .ran-modal-header{position:absolute;top:0;right:0;z-index:1;padding:var(--ran-modal-hide-header-padding, 10px);border-bottom:none;background:transparent}.ran-modal-root.hide-header .ran-modal-title{display:none}.ran-modal-title{margin:var(--ran-modal-title-margin, 0);font-size:var(--ran-modal-title-font-size, 16px);line-height:var(--ran-modal-title-line-height, 1.5);color:var(--ran-modal-title-color, var(--ran-color-text, #111827))}.ran-modal-close{border:var(--ran-modal-close-border, none);background:var(--ran-modal-close-background, transparent);color:var(--ran-modal-close-color, var(--ran-color-text-secondary, #667085));font-size:var(--ran-modal-close-font-size, 18px);cursor:var(--ran-modal-close-cursor, pointer);padding:var(--ran-modal-close-padding, 0 4px)}.ran-modal-body{padding:var(--ran-modal-body-padding, 18px);max-height:var(--ran-modal-body-max-height, 68vh );overflow:var(--ran-modal-body-overflow, auto);color:var(--ran-modal-body-color, var(--ran-color-text-secondary, #344054))}.ran-modal-footer{display:none;align-items:var(--ran-modal-footer-align-items, center);justify-content:var(--ran-modal-footer-justify-content, flex-end);gap:var(--ran-modal-footer-gap, 10px);padding:var(--ran-modal-footer-padding, 12px 18px 18px);border-top:var(--ran-modal-footer-border-top, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.has-footer .ran-modal-footer{display:flex}.ran-modal-footer::slotted(.ran-modal-actions){display:inline-flex;align-items:center;justify-content:flex-end;gap:10px}.ran-modal-footer::slotted(.ran-modal-action){border:1px solid var(--ran-color-border, #d0d5dd);background:var(--ran-color-bg-elevated, #fff);border-radius:var(--ran-radius-sm, 6px);height:34px;line-height:32px;padding:0 14px;cursor:pointer;font-size:14px;color:var(--ran-color-text-secondary, #344054)}.ran-modal-footer::slotted(.ran-modal-action-confirm){border-color:var(--ran-color-primary, #155eef);background:var(--ran-color-primary, #155eef);color:#fff}.ran-modal-footer::slotted(.ran-modal-action:disabled){opacity:.6;cursor:not-allowed}", v = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', I = class o extends F {
6
6
  static _openStack = [];
7
7
  static _bodyScrollLockCount = 0;
8
8
  static _bodyOverflow = "";
9
9
  static _bodyPaddingRight = "";
10
10
  static _inertSnapshot = /* @__PURE__ */ new Map();
11
- _events = new M();
11
+ _events = new T();
12
12
  _shadowDom;
13
13
  _root;
14
14
  _mask;
@@ -38,8 +38,8 @@ var H = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
38
38
  ];
39
39
  }
40
40
  constructor() {
41
- super(), this._labelId = `ran-modal-title-${Math.random().toString(36).slice(2, 9)}`, this._previousActiveElement = null, this._isDialogOpen = !1, this._scrollLocked = !1, this._afterOpenTimer = null, this._afterCloseTimer = null, this._shadowDom = O(this, H);
42
- const t = L(this._shadowDom, ".ran-modal-root", () => l().class("ran-modal-root").part("root").children(l().class("ran-modal-mask").part("mask"), l().class("ran-modal-dialog").part("dialog").role("dialog").attr("aria-modal", "true").tabIndex(-1).labelledBy(this._labelId).children(d("header").class("ran-modal-header").part("header").children(d("h3").class("ran-modal-title").part("title").id(this._labelId), d("button").class("ran-modal-close").part("close").attr("type", "button").label("Close dialog").text("x")), l().class("ran-modal-body").part("body").children(g()), d("footer").class("ran-modal-footer").part("footer").children(g().attr("name", "footer")))).build());
41
+ super(), this._labelId = `ran-modal-title-${Math.random().toString(36).slice(2, 9)}`, this._previousActiveElement = null, this._isDialogOpen = !1, this._scrollLocked = !1, this._afterOpenTimer = null, this._afterCloseTimer = null, this._shadowDom = L(this, H);
42
+ const t = P(this._shadowDom, ".ran-modal-root", () => l().class("ran-modal-root").part("root").children(l().class("ran-modal-mask").part("mask"), l().class("ran-modal-dialog").part("dialog").role("dialog").attr("aria-modal", "true").tabIndex(-1).labelledBy(this._labelId).children(d("header").class("ran-modal-header").part("header").children(d("h3").class("ran-modal-title").part("title").id(this._labelId), d("button").class("ran-modal-close").part("close").attr("type", "button").label("Close dialog").text("x")), l().class("ran-modal-body").part("body").children(g()), d("footer").class("ran-modal-footer").part("footer").children(g().attr("name", "footer")))).build());
43
43
  this._root = t, this._mask = this._root.querySelector(".ran-modal-mask"), this._dialog = this._root.querySelector(".ran-modal-dialog"), this._title = this._root.querySelector(".ran-modal-title"), this._closeBtn = this._root.querySelector(".ran-modal-close"), this._slot = this._root.querySelector("slot"), this._footer = this._root.querySelector(".ran-modal-footer"), this._footerSlot = this._root.querySelector('slot[name="footer"]'), this.syncTitle(), this.syncClosable(), this.syncFooter(), this.syncHeader();
44
44
  }
45
45
  get open() {
@@ -62,10 +62,10 @@ var H = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
62
62
  !t || t === "false" || t === "0" ? this.setAttribute("maskClosable", "false") : this.setAttribute("maskClosable", "true");
63
63
  }
64
64
  get sheet() {
65
- return D(this, "sheet");
65
+ return z(this, "sheet");
66
66
  }
67
67
  set sheet(t) {
68
- T(this, "sheet", t);
68
+ D(this, "sheet", t);
69
69
  }
70
70
  get closeOnEsc() {
71
71
  const t = this.getAttribute("closeOnEsc");
@@ -103,7 +103,7 @@ var H = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
103
103
  !t || t === "false" || t === "0" ? this.removeAttribute("hide-header") : this.setAttribute("hide-header", "");
104
104
  }
105
105
  handlerExternalCss = () => {
106
- F(this, this._shadowDom, "sheet", null, this.sheet);
106
+ M(this, this._shadowDom, "sheet", null, this.sheet);
107
107
  };
108
108
  syncTitle = () => {
109
109
  this._title.textContent = this.title || "Modal", this.hideHeader && this._dialog.setAttribute("aria-label", this.title || "Modal");
@@ -360,7 +360,7 @@ var H = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
360
360
  });
361
361
  };
362
362
  };
363
- z("r-modal", I);
363
+ O("r-modal", I);
364
364
  export {
365
365
  I as t
366
366
  };
package/dist/modal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as o } from "./modal-gRagDkTb.js";
1
+ import { t as o } from "./modal-TayIRDMV.js";
2
2
  export {
3
3
  o as Modal,
4
4
  o as default
@@ -0,0 +1,11 @@
1
+ import { n as t } from "./rolldown-runtime-DkpYurw3.js";
2
+ var a = /* @__PURE__ */ t({ default: () => e }), e = {
3
+ success: !0,
4
+ _identification: !0,
5
+ data: `<svg t="1738503407752" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19504" width="200" height="200"><path d="M298.666667 409.002667l213.333333 213.333333 213.333333-213.333333 60.330667 60.330666L512 742.997333 238.336 469.333333l60.330667-60.330666z" p-id="19505"></path></svg>
6
+ `
7
+ };
8
+ export {
9
+ a as n,
10
+ e as t
11
+ };
@@ -0,0 +1,2 @@
1
+ const t=require("./rolldown-runtime-CAnuVJ4g.cjs");var r=t.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:`<svg t="1738503407752" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19504" width="200" height="200"><path d="M298.666667 409.002667l213.333333 213.333333 213.333333-213.333333 60.330667 60.330666L512 742.997333 238.336 469.333333l60.330667-60.330666z" p-id="19505"></path></svg>
2
+ `};Object.defineProperty(exports,"more_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"more_exports",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1 @@
1
+ require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./chunk-EMLP6XTP-DESFjGc5.cjs");exports.createPacketServices=e.createPacketServices;
@@ -0,0 +1,9 @@
1
+ import { i as a } from "./factory-Bbul5tOL.js";
2
+ import "./ssr-BzHZ2bCe.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 .pacman{position:var(--loading-pacman-position, relative)}@keyframes rotate_pacman_half_up{0%{transform:var(--loading-pacman-keyframes-0-transform, rotate(270deg))}50%{transform:var(--loading-pacman-keyframes-50-transform, rotate(360deg))}to{transform:var(--loading-pacman-keyframes-100-transform, rotate(270deg))}}@keyframes pacman-balls{75%{opacity:var(--loading-pacman-keyframes-balls-75-opacity, .7)}to{transform:var(--loading-pacman-keyframes-balls-100-transform, translate(-100px, -6.25px))}}@keyframes rotate_pacman_half_down{0%{transform:var(--loading-pacman-keyframes-balls-100-transform, rotate(90deg))}50%{transform:var(--loading-pacman-keyframes-balls-100-transform, rotate(0deg))}to{transform:var(--loading-pacman-keyframes-balls-100-transform, rotate(90deg))}}.ran-loading .pacman div:nth-child(2){width:var(--loading-pacman-div-nth-child-2-width, 0px);height:var(--loading-pacman-div-nth-child-2-height, 0px);border-right:var(--loading-pacman-div-nth-child-2-border-right, 25px solid transparent);border-top:var(--loading-pacman-div-nth-child-2-border-top, 25px solid #279fcf);border-left:var(--loading-pacman-div-nth-child-2-border-left, 25px solid #279fcf);border-bottom:var(--loading-pacman-div-nth-child-2-border-bottom, 25px solid #279fcf);border-radius:var(--loading-pacman-div-nth-child-2-border-radius, 25px);margin-top:var(--loading-pacman-div-nth-child-2-margin-top, -50px);animation:var(--loading-pacman-div-nth-child-2-animation, rotate_pacman_half_down .5s 0s infinite);animation-play-state:var(--loading-pacman-div-nth-child-2-animation-play-state, running)}.ran-loading .pacman div:nth-child(3){background-color:var(--loading-pacman-div-nth-child-3-background-color, #279fcf);border-radius:var(--loading-pacman-div-nth-child-3-border-radius, 100%);margin:var(--loading-pacman-div-nth-child-3-margin, 2px);width:var(--loading-pacman-div-nth-child-3-width, 10px);height:var(--loading-pacman-div-nth-child-3-height, 10px);position:var(--loading-pacman-div-nth-child-3-position, absolute);transform:var(--loading-pacman-div-nth-child-3-transform, translate(0, -6.25px));top:var(--loading-pacman-div-nth-child-3-top, 25px);left:var(--loading-pacman-div-nth-child-3-left, 100px);animation:var(--loading-pacman-div-nth-child-3-animation, pacman-balls 1s .33s infinite linear);animation-play-state:var(--loading-pacman-div-nth-child-3-animation-play-state, running)}.ran-loading .pacman div:nth-child(4){background-color:var(--loading-pacman-div-nth-child-4-background-color, #279fcf);border-radius:var(--loading-pacman-div-nth-child-4-border-radius, 100%);margin:var(--loading-pacman-div-nth-child-4-margin, 2px);width:var(--loading-pacman-div-nth-child-4-width, 10px);height:var(--loading-pacman-div-nth-child-4-height, 10px);position:var(--loading-pacman-div-nth-child-4-position, absolute);transform:var(--loading-pacman-div-nth-child-4-transform, translate(0, -6.25px));top:var(--loading-pacman-div-nth-child-4-top, 25px);left:var(--loading-pacman-div-nth-child-4-left, 100px);animation:var(--loading-pacman-div-nth-child-4-animation, pacman-balls 1s .66s infinite linear);animation-play-state:var(--loading-pacman-div-nth-child-4-animation-play-state, running)}.ran-loading .pacman div:nth-child(5){background-color:var(--loading-pacman-div-nth-child-5-background-color, #279fcf);border-radius:var(--loading-pacman-div-nth-child-5-border-radius, 100%);margin:var(--loading-pacman-div-nth-child-5-margin, 2px);width:var(--loading-pacman-div-nth-child-5-width, 10px);height:var(--loading-pacman-div-nth-child-5-height, 10px);position:var(--loading-pacman-div-nth-child-5-position, absolute);transform:var(--loading-pacman-div-nth-child-5-transform, translate(0, -6.25px));top:var(--loading-pacman-div-nth-child-5-top, 25px);left:var(--loading-pacman-div-nth-child-5-left, 100px);animation:var(--loading-pacman-div-nth-child-5-animation, pacman-balls 1s .99s infinite linear);animation-play-state:var(--loading-pacman-div-nth-child-5-animation-play-state, running)}.ran-loading .pacman div:first-of-type{width:var(--loading-pacman-div-first-of-type-width, 0px);height:var(--loading-pacman-div-first-of-type-height, 0px);border-right:var(--loading-pacman-div-first-of-type-border-right, 25px solid transparent);border-top:var(--loading-pacman-div-first-of-type-border-top, 25px solid #279fcf);border-left:var(--loading-pacman-div-first-of-type-border-left, 25px solid #279fcf);border-bottom:var(--loading-pacman-div-first-of-type-border-bottom, 25px solid #279fcf);border-radius:var(--loading-pacman-div-first-of-type-border-radius, 25px);animation:var(--loading-pacman-div-first-of-type-animation, rotate_pacman_half_up .5s 0s infinite);animation-play-state:var(--loading-pacman-div-first-of-type-animation-play-state, running)}", n = () => a().class("pacman").part("pacman").children(...Array(5).fill(1).map(() => a())).build(), d = {
4
+ css: i,
5
+ render: n
6
+ };
7
+ export {
8
+ d as default
9
+ };
@@ -0,0 +1 @@
1
+ const a=require("./builder-2HD21I6K.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 .pacman{position:var(--loading-pacman-position, relative)}@keyframes rotate_pacman_half_up{0%{transform:var(--loading-pacman-keyframes-0-transform, rotate(270deg))}50%{transform:var(--loading-pacman-keyframes-50-transform, rotate(360deg))}to{transform:var(--loading-pacman-keyframes-100-transform, rotate(270deg))}}@keyframes pacman-balls{75%{opacity:var(--loading-pacman-keyframes-balls-75-opacity, .7)}to{transform:var(--loading-pacman-keyframes-balls-100-transform, translate(-100px, -6.25px))}}@keyframes rotate_pacman_half_down{0%{transform:var(--loading-pacman-keyframes-balls-100-transform, rotate(90deg))}50%{transform:var(--loading-pacman-keyframes-balls-100-transform, rotate(0deg))}to{transform:var(--loading-pacman-keyframes-balls-100-transform, rotate(90deg))}}.ran-loading .pacman div:nth-child(2){width:var(--loading-pacman-div-nth-child-2-width, 0px);height:var(--loading-pacman-div-nth-child-2-height, 0px);border-right:var(--loading-pacman-div-nth-child-2-border-right, 25px solid transparent);border-top:var(--loading-pacman-div-nth-child-2-border-top, 25px solid #279fcf);border-left:var(--loading-pacman-div-nth-child-2-border-left, 25px solid #279fcf);border-bottom:var(--loading-pacman-div-nth-child-2-border-bottom, 25px solid #279fcf);border-radius:var(--loading-pacman-div-nth-child-2-border-radius, 25px);margin-top:var(--loading-pacman-div-nth-child-2-margin-top, -50px);animation:var(--loading-pacman-div-nth-child-2-animation, rotate_pacman_half_down .5s 0s infinite);animation-play-state:var(--loading-pacman-div-nth-child-2-animation-play-state, running)}.ran-loading .pacman div:nth-child(3){background-color:var(--loading-pacman-div-nth-child-3-background-color, #279fcf);border-radius:var(--loading-pacman-div-nth-child-3-border-radius, 100%);margin:var(--loading-pacman-div-nth-child-3-margin, 2px);width:var(--loading-pacman-div-nth-child-3-width, 10px);height:var(--loading-pacman-div-nth-child-3-height, 10px);position:var(--loading-pacman-div-nth-child-3-position, absolute);transform:var(--loading-pacman-div-nth-child-3-transform, translate(0, -6.25px));top:var(--loading-pacman-div-nth-child-3-top, 25px);left:var(--loading-pacman-div-nth-child-3-left, 100px);animation:var(--loading-pacman-div-nth-child-3-animation, pacman-balls 1s .33s infinite linear);animation-play-state:var(--loading-pacman-div-nth-child-3-animation-play-state, running)}.ran-loading .pacman div:nth-child(4){background-color:var(--loading-pacman-div-nth-child-4-background-color, #279fcf);border-radius:var(--loading-pacman-div-nth-child-4-border-radius, 100%);margin:var(--loading-pacman-div-nth-child-4-margin, 2px);width:var(--loading-pacman-div-nth-child-4-width, 10px);height:var(--loading-pacman-div-nth-child-4-height, 10px);position:var(--loading-pacman-div-nth-child-4-position, absolute);transform:var(--loading-pacman-div-nth-child-4-transform, translate(0, -6.25px));top:var(--loading-pacman-div-nth-child-4-top, 25px);left:var(--loading-pacman-div-nth-child-4-left, 100px);animation:var(--loading-pacman-div-nth-child-4-animation, pacman-balls 1s .66s infinite linear);animation-play-state:var(--loading-pacman-div-nth-child-4-animation-play-state, running)}.ran-loading .pacman div:nth-child(5){background-color:var(--loading-pacman-div-nth-child-5-background-color, #279fcf);border-radius:var(--loading-pacman-div-nth-child-5-border-radius, 100%);margin:var(--loading-pacman-div-nth-child-5-margin, 2px);width:var(--loading-pacman-div-nth-child-5-width, 10px);height:var(--loading-pacman-div-nth-child-5-height, 10px);position:var(--loading-pacman-div-nth-child-5-position, absolute);transform:var(--loading-pacman-div-nth-child-5-transform, translate(0, -6.25px));top:var(--loading-pacman-div-nth-child-5-top, 25px);left:var(--loading-pacman-div-nth-child-5-left, 100px);animation:var(--loading-pacman-div-nth-child-5-animation, pacman-balls 1s .99s infinite linear);animation-play-state:var(--loading-pacman-div-nth-child-5-animation-play-state, running)}.ran-loading .pacman div:first-of-type{width:var(--loading-pacman-div-first-of-type-width, 0px);height:var(--loading-pacman-div-first-of-type-height, 0px);border-right:var(--loading-pacman-div-first-of-type-border-right, 25px solid transparent);border-top:var(--loading-pacman-div-first-of-type-border-top, 25px solid #279fcf);border-left:var(--loading-pacman-div-first-of-type-border-left, 25px solid #279fcf);border-bottom:var(--loading-pacman-div-first-of-type-border-bottom, 25px solid #279fcf);border-radius:var(--loading-pacman-div-first-of-type-border-radius, 25px);animation:var(--loading-pacman-div-first-of-type-animation, rotate_pacman_half_up .5s 0s infinite);animation-play-state:var(--loading-pacman-div-first-of-type-animation-play-state, running)}",n=()=>a.Div().class("pacman").part("pacman").children(...Array(5).fill(1).map(()=>a.Div())).build(),r={css:i,render:n};exports.default=r;
@@ -0,0 +1 @@
1
+ const u=require("./chunk-JG7HCLWE-DJPVQhqh.cjs"),t=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),a=require("./src-C9EhKhbk.cjs");require("./chunk-WYO6CB5R-u4mJNOcO.cjs");require("./chunk-VAUOI2AC-DfQf5L2_.cjs");const n=require("./chunk-MOJQB5TN-oOeq982_.cjs"),l=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),m=require("./mermaid-parser.core-BgDzuhyE.cjs");var c=u.createRailroadPegServices().RailroadPeg.parser.LangiumParser,i=t.__name(e=>{const r=e.alternatives.map(p);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),p=t.__name(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),d=t.__name(e=>{const r=_(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t.__name(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),_=t.__name(e=>{const r=f(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),f=t.__name(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),g=t.__name(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),P=t.__name(e=>{l.populateCommonDb(e,n.db),e.title&&n.db.setTitle(e.title),e.rules.map(r=>n.db.addRule(g(r)))},"populateDb"),h={parser:{parse:t.__name(e=>{n.db.clear(),a.log.debug("[PEG Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new m.MermaidParseError(r);const o=r.value;a.log.debug("[PEG Parser] Parsed rules:",o.rules.length),P(o),a.log.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:n.db}},db:n.db,renderer:n.renderer,styles:n.getStyles};exports.diagram=h;
@@ -1,9 +1,9 @@
1
1
  import { t as m, u as l } from "./mermaid-parser.core-uIDZYuBu.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-0JxdZxki.js";
3
- import { m as n } from "./src-DtRLxcYO.js";
4
- import "./chunk-WYO6CB5R-DDHkKowO.js";
5
- import "./chunk-VAUOI2AC-izt0o4id.js";
6
- import { n as p, r as u, t as a } from "./chunk-MOJQB5TN-BC46HDyu.js";
3
+ import { m as n } from "./src-CM-0IT-N.js";
4
+ import "./chunk-WYO6CB5R-DyGmS3I6.js";
5
+ import "./chunk-VAUOI2AC-CrgGIUR-.js";
6
+ import { n as p, r as u, t as a } from "./chunk-MOJQB5TN-BWgg4qSh.js";
7
7
  import { t as c } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
8
8
  var f = l().RailroadPeg.parser.LangiumParser, i = /* @__PURE__ */ t((e) => {
9
9
  const r = e.alternatives.map(d);
@@ -0,0 +1 @@
1
+ require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./chunk-YOTPTUD7-BCQ2zMB7.cjs");exports.createPieServices=e.createPieServices;
@@ -1,14 +1,14 @@
1
1
  import { n as rt } from "./mermaid-parser.core-uIDZYuBu.js";
2
2
  import { n as d } from "./chunk-Y2CYZVJY-0JxdZxki.js";
3
- import { m as B } from "./src-DtRLxcYO.js";
4
- import { H as nt, K as it, U as ot, a as st, c as lt, f as ct, v as ut, w as dt, x as gt, y as ft } from "./chunk-WYO6CB5R-DDHkKowO.js";
3
+ import { m as B } from "./src-CM-0IT-N.js";
4
+ import { H as nt, K as it, U as ot, a as st, c as lt, f as ct, v as ut, w as dt, x as gt, y as ft } from "./chunk-WYO6CB5R-DyGmS3I6.js";
5
5
  import { t as pt } from "./ordinal-BMN81JG2.js";
6
6
  import { n as C } from "./path-Bja5PoYn.js";
7
- import { m as G } from "./dist-C0Fwsvsq.js";
8
- import { t as Z } from "./arc-DRPGof21.js";
7
+ import { m as G } from "./dist-9Ly83Lo6.js";
8
+ import { t as Z } from "./arc-DJJx8BhF.js";
9
9
  import { t as ht } from "./array-By5736M5.js";
10
- import { i as mt, p as vt } from "./chunk-ICXQ74PX-DR8rL-xF.js";
11
- import { t as xt } from "./chunk-VAUOI2AC-izt0o4id.js";
10
+ import { i as mt, p as vt } from "./chunk-ICXQ74PX-DPZfA3a8.js";
11
+ import { t as xt } from "./chunk-VAUOI2AC-CrgGIUR-.js";
12
12
  import { t as yt } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
13
13
  function St(t, r) {
14
14
  return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
@@ -1,4 +1,4 @@
1
- const ie=require("./mermaid-parser.core-DYumW1vq.cjs"),d=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),B=require("./src-C9EhKhbk.cjs"),g=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),le=require("./ordinal-BplLHIij.cjs"),C=require("./path-DmfWsuKi.cjs"),G=require("./dist-C20XxSsP.cjs"),Z=require("./arc-D25LhgTs.cjs"),oe=require("./array-C3cbN3GY.cjs"),j=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),se=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),ce=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");function ue(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function de(e){return e}function ge(){var e=de,n=ue,v=null,s=C.constant_default(0),c=C.constant_default(G.tau),D=C.constant_default(0);function a(t){var l,f=(t=oe.array_default(t)).length,A,$,x=0,h=new Array(f),i=new Array(f),w=+s.apply(this,arguments),k=Math.min(G.tau,Math.max(-G.tau,c.apply(this,arguments)-w)),T,M=Math.min(Math.abs(k)/f,D.apply(this,arguments)),p=M*(k<0?-1:1),y;for(l=0;l<f;++l)(y=i[h[l]=l]=+e(t[l],l,t))>0&&(x+=y);for(n!=null?h.sort(function(b,m){return n(i[b],i[m])}):v!=null&&h.sort(function(b,m){return v(t[b],t[m])}),l=0,$=x?(k-f*p)/x:0;l<f;++l,w=T)A=h[l],y=i[A],T=w+(y>0?y*$:0)+p,i[A]={data:t[A],index:l,value:y,startAngle:w,endAngle:T,padAngle:M};return i}return a.value=function(t){return arguments.length?(e=typeof t=="function"?t:C.constant_default(+t),a):e},a.sortValues=function(t){return arguments.length?(n=t,v=null,a):n},a.sort=function(t){return arguments.length?(v=t,n=null,a):v},a.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:C.constant_default(+t),a):s},a.endAngle=function(t){return arguments.length?(c=typeof t=="function"?t:C.constant_default(+t),a):c},a.padAngle=function(t){return arguments.length?(D=typeof t=="function"?t:C.constant_default(+t),a):D},a}var Q=g.defaultConfig_default.pie,V={sections:new Map,showData:!1,config:Q},P=V.sections,I=V.showData,fe=structuredClone(Q),K={getConfig:d.__name(()=>structuredClone(fe),"getConfig"),clear:d.__name(()=>{P=new Map,I=V.showData,g.clear()},"clear"),setDiagramTitle:g.setDiagramTitle,getDiagramTitle:g.getDiagramTitle,setAccTitle:g.setAccTitle,getAccTitle:g.getAccTitle,setAccDescription:g.setAccDescription,getAccDescription:g.getAccDescription,addSection:d.__name(({label:e,value:n})=>{if(n<0)throw new Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);P.has(e)||(P.set(e,n),B.log.debug(`added new section: ${e}, with value: ${n}`))},"addSection"),getSections:d.__name(()=>P,"getSections"),setShowData:d.__name(e=>{I=e},"setShowData"),getShowData:d.__name(()=>I,"getShowData")},he=d.__name((e,n)=>{ce.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),pe={parse:d.__name(async e=>{const n=await ie.parse("pie",e);B.log.debug(n),he(n,K)},"parse")},me=d.__name(e=>`
1
+ const d=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),B=require("./src-C9EhKhbk.cjs"),g=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),ie=require("./ordinal-BplLHIij.cjs"),C=require("./path-DmfWsuKi.cjs"),G=require("./dist-C20XxSsP.cjs"),Z=require("./arc-D25LhgTs.cjs"),le=require("./array-C3cbN3GY.cjs"),j=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),oe=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),se=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),ce=require("./mermaid-parser.core-BgDzuhyE.cjs");function ue(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function de(e){return e}function ge(){var e=de,n=ue,v=null,s=C.constant_default(0),c=C.constant_default(G.tau),D=C.constant_default(0);function a(t){var l,f=(t=le.array_default(t)).length,A,$,x=0,h=new Array(f),i=new Array(f),w=+s.apply(this,arguments),k=Math.min(G.tau,Math.max(-G.tau,c.apply(this,arguments)-w)),T,M=Math.min(Math.abs(k)/f,D.apply(this,arguments)),p=M*(k<0?-1:1),y;for(l=0;l<f;++l)(y=i[h[l]=l]=+e(t[l],l,t))>0&&(x+=y);for(n!=null?h.sort(function(b,m){return n(i[b],i[m])}):v!=null&&h.sort(function(b,m){return v(t[b],t[m])}),l=0,$=x?(k-f*p)/x:0;l<f;++l,w=T)A=h[l],y=i[A],T=w+(y>0?y*$:0)+p,i[A]={data:t[A],index:l,value:y,startAngle:w,endAngle:T,padAngle:M};return i}return a.value=function(t){return arguments.length?(e=typeof t=="function"?t:C.constant_default(+t),a):e},a.sortValues=function(t){return arguments.length?(n=t,v=null,a):n},a.sort=function(t){return arguments.length?(v=t,n=null,a):v},a.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:C.constant_default(+t),a):s},a.endAngle=function(t){return arguments.length?(c=typeof t=="function"?t:C.constant_default(+t),a):c},a.padAngle=function(t){return arguments.length?(D=typeof t=="function"?t:C.constant_default(+t),a):D},a}var Q=g.defaultConfig_default.pie,V={sections:new Map,showData:!1,config:Q},P=V.sections,I=V.showData,fe=structuredClone(Q),K={getConfig:d.__name(()=>structuredClone(fe),"getConfig"),clear:d.__name(()=>{P=new Map,I=V.showData,g.clear()},"clear"),setDiagramTitle:g.setDiagramTitle,getDiagramTitle:g.getDiagramTitle,setAccTitle:g.setAccTitle,getAccTitle:g.getAccTitle,setAccDescription:g.setAccDescription,getAccDescription:g.getAccDescription,addSection:d.__name(({label:e,value:n})=>{if(n<0)throw new Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);P.has(e)||(P.set(e,n),B.log.debug(`added new section: ${e}, with value: ${n}`))},"addSection"),getSections:d.__name(()=>P,"getSections"),setShowData:d.__name(e=>{I=e},"setShowData"),getShowData:d.__name(()=>I,"getShowData")},he=d.__name((e,n)=>{se.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),pe={parse:d.__name(async e=>{const n=await ce.parse("pie",e);B.log.debug(n),he(n,K)},"parse")},me=d.__name(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -36,4 +36,4 @@ const ie=require("./mermaid-parser.core-DYumW1vq.cjs"),d=require("./chunk-Y2CYZV
36
36
  font-size: ${e.pieLegendTextSize};
37
37
  }
38
38
  `,"getStyles"),_e=d.__name(e=>{const n=[...e.values()].reduce((s,c)=>s+c,0),v=[...e.entries()].map(([s,c])=>({label:s,value:c})).filter(s=>s.value/n*100>=1);return ge().value(s=>s.value).sort(null)(v)},"createPieArcs"),ve={parser:pe,db:K,renderer:{draw:d.__name((e,n,v,s)=>{B.log.debug(`rendering pie chart
39
- `+e);const c=s.db,D=g.getConfig2(),a=j.cleanAndMerge(c.getConfig(),D.pie),t=40,l=18,f=4,A=450,$=A,x=se.selectSvgElement(n),h=x.append("g");h.attr("transform","translate(225,225)");const{themeVariables:i}=D;let[w]=j.parseFontSize(i.pieOuterStrokeWidth);w??=2;const k=a.legendPosition,T=a.textPosition,M=a.donutHole>0&&a.donutHole<=.9?a.donutHole:0,p=Math.min($,A)/2-t,y=Z.arc_default().innerRadius(M*p).outerRadius(p),b=Z.arc_default().innerRadius(p*T).outerRadius(p*T),m=h.append("g");m.append("circle").attr("cx",0).attr("cy",0).attr("r",p+w/2).attr("class","pieOuterCircle");const W=c.getSections(),ee=_e(W),te=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12];let z=0;W.forEach(r=>{z+=r});const Y=ee.filter(r=>(r.data.value/z*100).toFixed(0)!=="0"),L=le.ordinal(te).domain([...W.keys()]);m.selectAll("mySlices").data(Y).enter().append("path").attr("d",y).attr("fill",r=>L(r.data.label)).attr("class",r=>{let o="pieCircle";return a.highlightSlice==="hover"?o+=" highlightedOnHover":a.highlightSlice===r.data.label&&(o+=" highlighted"),o}),m.selectAll("mySlices").data(Y).enter().append("text").text(r=>(r.data.value/z*100).toFixed(0)+"%").attr("transform",r=>"translate("+b.centroid(r)+")").style("text-anchor","middle").attr("class","slice");const re=h.append("text").text(c.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),E=[...W.entries()].map(([r,o])=>({label:r,value:o})),S=h.selectAll(".legend").data(E).enter().append("g").attr("class","legend");S.append("rect").attr("width",l).attr("height",l).style("fill",r=>L(r.label)).style("stroke",r=>L(r.label)),S.append("text").attr("x",22).attr("y",l-f).text(r=>c.getShowData()?`${r.label} [${r.value}]`:r.label);const q=Math.max(...S.selectAll("text").nodes().map(r=>r?.getBoundingClientRect().width??0));let O=A,R=490;const u=22,F=E.length*u;switch(k){case"center":S.attr("transform",(r,o)=>{const _=u*E.length/2,H=-q/2-22,N=o*u-_;return"translate("+H+","+N+")"});break;case"top":O+=F,S.attr("transform",(r,o)=>{const _=p;return`translate(${-q/2-22}, ${o*u-_})`}),m.attr("transform",()=>`translate(0, ${F+u})`);break;case"bottom":O+=F,S.attr("transform",(r,o)=>{const _=-185-u,H=-q/2-22,N=o*u-_;return"translate("+H+","+N+")"});break;case"left":R+=22+q,S.attr("transform",(r,o)=>{const _=u*E.length/2;return"translate(-207,"+(o*u-_)+")"}),m.attr("transform",()=>`translate(${q+l+f}, 0)`);break;default:R+=22+q,S.attr("transform",(r,o)=>{const _=u*E.length/2;return"translate(216,"+(o*u-_)+")"});break}const U=re.node()?.getBoundingClientRect().width??0,ne=$/2-U/2,ae=$/2+U/2,X=Math.min(0,ne),J=Math.max(R,ae)-X;x.attr("viewBox",`${X} 0 ${J} ${O}`),g.configureSvgSize(x,O,J,a.useMaxWidth)},"draw")},styles:me};exports.diagram=ve;
39
+ `+e);const c=s.db,D=g.getConfig2(),a=j.cleanAndMerge(c.getConfig(),D.pie),t=40,l=18,f=4,A=450,$=A,x=oe.selectSvgElement(n),h=x.append("g");h.attr("transform","translate(225,225)");const{themeVariables:i}=D;let[w]=j.parseFontSize(i.pieOuterStrokeWidth);w??=2;const k=a.legendPosition,T=a.textPosition,M=a.donutHole>0&&a.donutHole<=.9?a.donutHole:0,p=Math.min($,A)/2-t,y=Z.arc_default().innerRadius(M*p).outerRadius(p),b=Z.arc_default().innerRadius(p*T).outerRadius(p*T),m=h.append("g");m.append("circle").attr("cx",0).attr("cy",0).attr("r",p+w/2).attr("class","pieOuterCircle");const W=c.getSections(),ee=_e(W),te=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12];let z=0;W.forEach(r=>{z+=r});const Y=ee.filter(r=>(r.data.value/z*100).toFixed(0)!=="0"),L=ie.ordinal(te).domain([...W.keys()]);m.selectAll("mySlices").data(Y).enter().append("path").attr("d",y).attr("fill",r=>L(r.data.label)).attr("class",r=>{let o="pieCircle";return a.highlightSlice==="hover"?o+=" highlightedOnHover":a.highlightSlice===r.data.label&&(o+=" highlighted"),o}),m.selectAll("mySlices").data(Y).enter().append("text").text(r=>(r.data.value/z*100).toFixed(0)+"%").attr("transform",r=>"translate("+b.centroid(r)+")").style("text-anchor","middle").attr("class","slice");const re=h.append("text").text(c.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),E=[...W.entries()].map(([r,o])=>({label:r,value:o})),S=h.selectAll(".legend").data(E).enter().append("g").attr("class","legend");S.append("rect").attr("width",l).attr("height",l).style("fill",r=>L(r.label)).style("stroke",r=>L(r.label)),S.append("text").attr("x",22).attr("y",l-f).text(r=>c.getShowData()?`${r.label} [${r.value}]`:r.label);const q=Math.max(...S.selectAll("text").nodes().map(r=>r?.getBoundingClientRect().width??0));let O=A,R=490;const u=22,F=E.length*u;switch(k){case"center":S.attr("transform",(r,o)=>{const _=u*E.length/2,H=-q/2-22,N=o*u-_;return"translate("+H+","+N+")"});break;case"top":O+=F,S.attr("transform",(r,o)=>{const _=p;return`translate(${-q/2-22}, ${o*u-_})`}),m.attr("transform",()=>`translate(0, ${F+u})`);break;case"bottom":O+=F,S.attr("transform",(r,o)=>{const _=-185-u,H=-q/2-22,N=o*u-_;return"translate("+H+","+N+")"});break;case"left":R+=22+q,S.attr("transform",(r,o)=>{const _=u*E.length/2;return"translate(-207,"+(o*u-_)+")"}),m.attr("transform",()=>`translate(${q+l+f}, 0)`);break;default:R+=22+q,S.attr("transform",(r,o)=>{const _=u*E.length/2;return"translate(216,"+(o*u-_)+")"});break}const U=re.node()?.getBoundingClientRect().width??0,ne=$/2-U/2,ae=$/2+U/2,X=Math.min(0,ne),J=Math.max(R,ae)-X;x.attr("viewBox",`${X} 0 ${J} ${O}`),g.configureSvgSize(x,O,J,a.useMaxWidth)},"draw")},styles:me};exports.diagram=ve;