@nubisco/ui 5.52.1 → 5.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (561) hide show
  1. package/dist/{AiProvider-YQRUV0n0.cjs → AiProvider-DN3DecBN.cjs} +1 -1
  2. package/dist/{AiProvider-CwQByPUa.js → AiProvider-lGUifyvk.js} +13 -13
  3. package/dist/{AiUsage-C2t5uXV-.cjs → AiUsage-XOKmuxyo.cjs} +1 -1
  4. package/dist/{AiUsage-eY9pNKxE.js → AiUsage-v8EdG3EN.js} +2 -2
  5. package/dist/{Banner-FWDVwwVx.js → Banner-DksCkGVd.js} +5 -5
  6. package/dist/{Banner-DTIRkPRb.cjs → Banner-DsiuPzPh.cjs} +1 -1
  7. package/dist/{BarChart-DKpSrGm3.cjs → BarChart-CVoLmSKs.cjs} +1 -1
  8. package/dist/{BarChart-hs_OZZD4.js → BarChart-GO-rGcKL.js} +5 -5
  9. package/dist/Blueprint-BDPb5y1N.cjs +1 -0
  10. package/dist/Blueprint-DEboZ8ul.js +1538 -0
  11. package/dist/{BlueprintCard-Ce48mEtN.js → BlueprintCard-BO2pjY2S.js} +206 -162
  12. package/dist/BlueprintCard-CDxodt3T.cjs +1 -0
  13. package/dist/{BlueprintControls-C0V9FX8S.cjs → BlueprintControls-3Lc3BcAk.cjs} +1 -1
  14. package/dist/{BlueprintControls-DQE_gDOe.js → BlueprintControls-COcm1KWW.js} +4 -4
  15. package/dist/{Board-DyAO3ko2.js → Board-B2v-oPUr.js} +1 -1
  16. package/dist/{Board-Htlm-mra.cjs → Board-C43JjSsH.cjs} +1 -1
  17. package/dist/{Breadcrumbs-DHHPeG-B.js → Breadcrumbs-B2SMDfCA.js} +1 -1
  18. package/dist/{Breadcrumbs-C_dG1eHp.cjs → Breadcrumbs-D1pYElI6.cjs} +1 -1
  19. package/dist/{Briefing-UMUWCsHh.cjs → Briefing-Cqw3zBQO.cjs} +1 -1
  20. package/dist/{Briefing-nJ0LjXnp.js → Briefing-W7gtZwdT.js} +3 -3
  21. package/dist/{ButtonSet-CmM3Tj5N.cjs → ButtonSet-C2Z5sYSv.cjs} +1 -1
  22. package/dist/{ButtonSet-tmTOMWpZ.js → ButtonSet-D7ieqb8C.js} +20 -20
  23. package/dist/ChatMessage-DSeGKAOq.js +66 -0
  24. package/dist/ChatMessage-DYv7Vniv.cjs +1 -0
  25. package/dist/ChatThread-CCtckadF.cjs +1 -0
  26. package/dist/ChatThread-D70zpB0f.js +154 -0
  27. package/dist/{Checkbox-B6qnpOXg.cjs → Checkbox-B2O4tB6x.cjs} +1 -1
  28. package/dist/{Checkbox-Bf3XzGbG.js → Checkbox-U1tS47Qx.js} +1 -1
  29. package/dist/{CheckboxGroup-C3ng8k3R.js → CheckboxGroup-DRQxWsVv.js} +2 -2
  30. package/dist/{CheckboxGroup-BG1efn5_.cjs → CheckboxGroup-md4kjLSp.cjs} +1 -1
  31. package/dist/{ColorStrip-BaLKZV51.js → ColorStrip-CZcIHOg3.js} +14 -14
  32. package/dist/{ColorStrip-D6p71EPQ.cjs → ColorStrip-EDliYkMo.cjs} +1 -1
  33. package/dist/{Confirm-q2m_4sBN.js → Confirm-BLXSK-OZ.js} +3 -3
  34. package/dist/{Confirm-CQMJX0lc.cjs → Confirm-Sl4LWoSK.cjs} +1 -1
  35. package/dist/{DataTable-CA_p6GdD.js → DataTable-7GkgyPz9.js} +10 -10
  36. package/dist/{DataTable-DNAUGxuj.cjs → DataTable-D8y7LUof.cjs} +1 -1
  37. package/dist/{DatePicker-DKNte5ZT.js → DatePicker-BkHd2fJW.js} +17 -17
  38. package/dist/{DatePicker-l-HrmC9V.cjs → DatePicker-CeDO01NZ.cjs} +1 -1
  39. package/dist/{Form-Co-23Ktg.js → Form-BztycGqC.js} +1 -1
  40. package/dist/{Form-Bc4QF6Lk.cjs → Form-DlzhKRWM.cjs} +1 -1
  41. package/dist/{GanttChart-D24__YLV.cjs → GanttChart-BiDTXqR1.cjs} +1 -1
  42. package/dist/{GanttChart-C70BwZZo.js → GanttChart-CFGdp4xL.js} +3 -3
  43. package/dist/{ImageCropper-3omi5zWi.cjs → ImageCropper-CgmDT83u.cjs} +1 -1
  44. package/dist/{ImageCropper-lLgzrsWr.js → ImageCropper-D61PEzb2.js} +2 -2
  45. package/dist/{ImagePicker-DOnGfEc6.js → ImagePicker-BkZVENEg.js} +1 -1
  46. package/dist/{ImagePicker-4LRkWaLL.cjs → ImagePicker-D8qyyjVv.cjs} +1 -1
  47. package/dist/{InlineLoading-BovtIkg7.cjs → InlineLoading-CA0_IT29.cjs} +1 -1
  48. package/dist/{InlineLoading-CNetV7ih.js → InlineLoading-Cknqq0vv.js} +4 -4
  49. package/dist/{InputGroup-BHOJSSQ_.cjs → InputGroup-CjcEkzFL.cjs} +1 -1
  50. package/dist/{InputGroup-OytJ8AMk.js → InputGroup-Dgv9hKmM.js} +5 -5
  51. package/dist/{InterpolationChart-DnHzBcLG.cjs → InterpolationChart-BWFOnJWn.cjs} +1 -1
  52. package/dist/{InterpolationChart-Cohmbfep.js → InterpolationChart-CiY-hBgJ.js} +3 -3
  53. package/dist/{LineChart-BNhJBKO6.cjs → LineChart-BdVIHw3u.cjs} +1 -1
  54. package/dist/{LineChart-lMX9rTr7.js → LineChart-D0h0rBVq.js} +5 -5
  55. package/dist/LogView-JjJVH_NA.cjs +2 -0
  56. package/dist/LogView-u_QhvV__.js +136 -0
  57. package/dist/{Message-BJO4MjiQ.cjs → Message-B1CQ0Bcf.cjs} +1 -1
  58. package/dist/{Message-DCeg8qsC.js → Message-Bi70NgGd.js} +6 -6
  59. package/dist/{Modal-B2gNgKIK.cjs → Modal-CRbvPpfy.cjs} +1 -1
  60. package/dist/{Modal-RgLIB-Gw.js → Modal-DaXgWyZN.js} +9 -9
  61. package/dist/{NotificationCenter-4MBTSGRl.js → NotificationCenter-D0PKt3fk.js} +208 -208
  62. package/dist/{NotificationCenter-BuVz7oP1.cjs → NotificationCenter-fmSEnZDX.cjs} +1 -1
  63. package/dist/{NotificationCenterItem-zIL89umA.cjs → NotificationCenterItem--0XKF1Bf.cjs} +1 -1
  64. package/dist/{NotificationCenterItem-DdH7jvvg.js → NotificationCenterItem-Hf0S6Jls.js} +6 -6
  65. package/dist/{NumberInput-DmKNMQLk.js → NumberInput-B7_EP2yg.js} +4 -4
  66. package/dist/{NumberInput-04v9eS0u.cjs → NumberInput-CHWFFpDv.cjs} +1 -1
  67. package/dist/{Pagination-DLDVJush.js → Pagination-CjOtISav.js} +1 -1
  68. package/dist/{Pagination-dhLORMeq.cjs → Pagination-DTsfPCOs.cjs} +1 -1
  69. package/dist/{PieChart-Be8RVmz0.js → PieChart-BgDtTMZg.js} +4 -4
  70. package/dist/{PieChart-0_n0Ihir.cjs → PieChart-WU4Cxtrp.cjs} +1 -1
  71. package/dist/{ProgressBar-C-mDH8u0.js → ProgressBar-B2ZMiY12.js} +4 -4
  72. package/dist/{ProgressBar-BSPcsJ13.cjs → ProgressBar-BSqwVfaP.cjs} +1 -1
  73. package/dist/{Radio-LlTK1Sug.cjs → Radio-BJ4SLyFW.cjs} +1 -1
  74. package/dist/{Radio-q_unHymB.js → Radio-CfJTD69M.js} +1 -1
  75. package/dist/{Search-BxYPouus.cjs → Search-CKXtAyrU.cjs} +1 -1
  76. package/dist/{Search-CI787J6m.js → Search-xsC4Tm0d.js} +1 -1
  77. package/dist/Select-CPztC5IV.cjs +1 -0
  78. package/dist/Select-CqLa55kO.js +615 -0
  79. package/dist/{Shell-Btxqmkh-.cjs → Shell-BWLjIdD0.cjs} +1 -1
  80. package/dist/{Shell-nNxGdcuI.js → Shell-DZfaTUo3.js} +1 -1
  81. package/dist/SidebarBrand-BPInsf52.cjs +1 -0
  82. package/dist/SidebarBrand-Dp9YZCqy.js +54 -0
  83. package/dist/{SidebarCollapseToggle-DobruD4n.cjs → SidebarCollapseToggle-CABmF-PC.cjs} +1 -1
  84. package/dist/{SidebarCollapseToggle-BLY8EEaD.js → SidebarCollapseToggle-DraqbhwM.js} +2 -2
  85. package/dist/{SidebarHeaderToggle-TwULd9e3.cjs → SidebarHeaderToggle-DB2Q6u5x.cjs} +1 -1
  86. package/dist/{SidebarHeaderToggle-BVfhMhvD.js → SidebarHeaderToggle-DbUS4eEa.js} +1 -1
  87. package/dist/SidebarMenuItem-DQRQtqrp.js +300 -0
  88. package/dist/SidebarMenuItem-Dwk7vKN5.cjs +1 -0
  89. package/dist/{Skeleton-CUUa44lM.cjs → Skeleton-D46kzIzB.cjs} +1 -1
  90. package/dist/{Skeleton-DI7l_96J.js → Skeleton-DFi5DNiP.js} +1 -1
  91. package/dist/{Slider-D7BgYMeu.js → Slider-BLkYlDHi.js} +8 -8
  92. package/dist/{Slider-CtN6andn.cjs → Slider-DGTE-3wW.cjs} +1 -1
  93. package/dist/{Sparkline-0CmemDu3.js → Sparkline-B9547TtT.js} +1 -1
  94. package/dist/{Sparkline-ByPgkuSC.cjs → Sparkline-DfiriQYp.cjs} +1 -1
  95. package/dist/{Spinner-D_6qJT6u.js → Spinner-DYFhiTB1.js} +1 -1
  96. package/dist/{Spinner-BDwIIS4H.cjs → Spinner-j13gRoUF.cjs} +1 -1
  97. package/dist/{Stat-BiuBoOoE.cjs → Stat-BCvXYr-z.cjs} +1 -1
  98. package/dist/{Stat-C_Z2D-TS.js → Stat-No3RhGB3.js} +1 -1
  99. package/dist/{Stepper-CARQL6xx.cjs → Stepper-CoLXwmrJ.cjs} +1 -1
  100. package/dist/{Stepper-BG9PfjPD.js → Stepper-pk0QfMn_.js} +1 -1
  101. package/dist/{StepperStep-C7F_8ErM.js → StepperStep-BGUqRHwQ.js} +1 -1
  102. package/dist/{StepperStep-DHsfAMv0.cjs → StepperStep-Bo8aYLjJ.cjs} +1 -1
  103. package/dist/{SuggestionList-BT-xOJBx.cjs → SuggestionList-Cxy4jjjd.cjs} +1 -1
  104. package/dist/{SuggestionList-Cm0pD7_C.js → SuggestionList-Dv4yQAi-.js} +15 -15
  105. package/dist/{Switch-CqLfdT_m.js → Switch-Bvt-JPWp.js} +4 -4
  106. package/dist/{Switch-CQj6AsQh.cjs → Switch-PBdutuj_.cjs} +1 -1
  107. package/dist/{Tabs-W2hUdYvl.cjs → Tabs-C9bZ5cp1.cjs} +1 -1
  108. package/dist/{Tabs-D_LFyWTX.js → Tabs-CCVuHp4s.js} +1 -1
  109. package/dist/{TextInput-r8ap24-5.cjs → TextInput-CKSRFb0q.cjs} +2 -2
  110. package/dist/{TextInput-DG8aUZeu.js → TextInput-HEjIGR6p.js} +11 -11
  111. package/dist/{Toast-yB4u936W.cjs → Toast-DHjc9WQU.cjs} +1 -1
  112. package/dist/{Toast-CpdX-63Q.js → Toast-DxZ2xjeq.js} +7 -7
  113. package/dist/{Toaster-XMqkamDu.js → Toaster-C227oHXu.js} +1 -1
  114. package/dist/{Toaster-BqCi69_x.cjs → Toaster-IS3DUaZt.cjs} +1 -1
  115. package/dist/{Tree-hitkY9yg.cjs → Tree-BhR3gNlT.cjs} +1 -1
  116. package/dist/{Tree-Nn3HGP-T.js → Tree-CW-735rp.js} +1 -1
  117. package/dist/{TreeNode-giUfunjf.js → TreeNode-BGVvJ76v.js} +1 -1
  118. package/dist/{TreeNode-DHSYezap.cjs → TreeNode-Dx8SKr1Z.cjs} +1 -1
  119. package/dist/UserMenu-BnGiKwDE.cjs +1 -0
  120. package/dist/{UserMenu-C52WN7-m.js → UserMenu-C54sf0xb.js} +55 -47
  121. package/dist/{Walkthrough-QtFJ_YOo.cjs → Walkthrough-DHgb972k.cjs} +1 -1
  122. package/dist/{Walkthrough-CCb4OKc-.js → Walkthrough-JqWDEe00.js} +2 -2
  123. package/dist/all.cjs +1 -1
  124. package/dist/all.mjs +245 -239
  125. package/dist/blueprint-connect-DyenBFX3.cjs +1 -0
  126. package/dist/blueprint-connect-dcuHxtzp.js +6 -0
  127. package/dist/component-styles.json +23 -0
  128. package/dist/components/AiLabel.cjs +1 -1
  129. package/dist/components/AiLabel.mjs +1 -1
  130. package/dist/components/AiProvider.cjs +1 -1
  131. package/dist/components/AiProvider.mjs +1 -1
  132. package/dist/components/AiUsage.cjs +1 -1
  133. package/dist/components/AiUsage.mjs +1 -1
  134. package/dist/components/AiUsage.vue.d.ts +1 -1
  135. package/dist/components/BackToTop.cjs +1 -1
  136. package/dist/components/BackToTop.mjs +1 -1
  137. package/dist/components/Badge.cjs +1 -1
  138. package/dist/components/Badge.mjs +1 -1
  139. package/dist/components/Badge.vue.d.ts +1 -1
  140. package/dist/components/Banner.cjs +1 -1
  141. package/dist/components/Banner.mjs +1 -1
  142. package/dist/components/BatchActions.cjs +1 -1
  143. package/dist/components/BatchActions.mjs +1 -1
  144. package/dist/components/Blueprint.cjs +1 -1
  145. package/dist/components/Blueprint.mjs +1 -1
  146. package/dist/components/Blueprint.types.d.ts +58 -1
  147. package/dist/components/Blueprint.types.d.ts.map +1 -1
  148. package/dist/components/Blueprint.vue.d.ts +1 -0
  149. package/dist/components/Blueprint.vue.d.ts.map +1 -1
  150. package/dist/components/BlueprintBackground.cjs +1 -1
  151. package/dist/components/BlueprintBackground.mjs +1 -1
  152. package/dist/components/BlueprintCard.cjs +1 -1
  153. package/dist/components/BlueprintCard.mjs +1 -1
  154. package/dist/components/BlueprintCard.types.d.ts +35 -5
  155. package/dist/components/BlueprintCard.types.d.ts.map +1 -1
  156. package/dist/components/BlueprintCard.vue.d.ts +1 -0
  157. package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
  158. package/dist/components/BlueprintControls.cjs +1 -1
  159. package/dist/components/BlueprintControls.mjs +1 -1
  160. package/dist/components/BlueprintControls.vue.d.ts.map +1 -1
  161. package/dist/components/BlueprintMinimap.cjs +1 -1
  162. package/dist/components/BlueprintMinimap.mjs +1 -1
  163. package/dist/components/Board.cjs +1 -1
  164. package/dist/components/Board.mjs +1 -1
  165. package/dist/components/BottomPanel.cjs +1 -1
  166. package/dist/components/BottomPanel.mjs +1 -1
  167. package/dist/components/Breadcrumbs.cjs +1 -1
  168. package/dist/components/Breadcrumbs.mjs +1 -1
  169. package/dist/components/Briefing.cjs +1 -1
  170. package/dist/components/Briefing.mjs +1 -1
  171. package/dist/components/BriefingDestination.cjs +1 -1
  172. package/dist/components/BriefingDestination.mjs +1 -1
  173. package/dist/components/ButtonSet.cjs +1 -1
  174. package/dist/components/ButtonSet.mjs +1 -1
  175. package/dist/components/ButtonSet.vue.d.ts.map +1 -1
  176. package/dist/components/Calendar.cjs +1 -1
  177. package/dist/components/Calendar.mjs +1 -1
  178. package/dist/components/Charts/BarChart.cjs +1 -1
  179. package/dist/components/Charts/BarChart.mjs +1 -1
  180. package/dist/components/Charts/GanttChart.cjs +1 -1
  181. package/dist/components/Charts/GanttChart.mjs +1 -1
  182. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  183. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  184. package/dist/components/Charts/LineChart.cjs +1 -1
  185. package/dist/components/Charts/LineChart.mjs +1 -1
  186. package/dist/components/Charts/PieChart.cjs +1 -1
  187. package/dist/components/Charts/PieChart.mjs +1 -1
  188. package/dist/components/Charts/Sparkline.cjs +1 -1
  189. package/dist/components/Charts/Sparkline.mjs +1 -1
  190. package/dist/components/ChatMessage.cjs +1 -0
  191. package/dist/components/ChatMessage.d.ts +49 -0
  192. package/dist/components/ChatMessage.mjs +2 -0
  193. package/dist/components/ChatMessage.vue.d.ts +32 -0
  194. package/dist/components/ChatMessage.vue.d.ts.map +1 -0
  195. package/dist/components/ChatThread.cjs +1 -0
  196. package/dist/components/ChatThread.d.ts +62 -0
  197. package/dist/components/ChatThread.mjs +2 -0
  198. package/dist/components/ChatThread.vue.d.ts +49 -0
  199. package/dist/components/ChatThread.vue.d.ts.map +1 -0
  200. package/dist/components/Checkbox.cjs +1 -1
  201. package/dist/components/Checkbox.mjs +1 -1
  202. package/dist/components/CheckboxGroup.cjs +1 -1
  203. package/dist/components/CheckboxGroup.mjs +1 -1
  204. package/dist/components/ChipGroup.cjs +1 -1
  205. package/dist/components/ChipGroup.mjs +1 -1
  206. package/dist/components/CloseButton.cjs +1 -1
  207. package/dist/components/CloseButton.mjs +1 -1
  208. package/dist/components/ColorStrip.cjs +1 -1
  209. package/dist/components/ColorStrip.mjs +1 -1
  210. package/dist/components/CommandPalette.cjs +1 -1
  211. package/dist/components/CommandPalette.mjs +1 -1
  212. package/dist/components/Confirm.cjs +1 -1
  213. package/dist/components/Confirm.mjs +1 -1
  214. package/dist/components/Confirm.vue.d.ts +1 -1
  215. package/dist/components/ContainedList.cjs +1 -1
  216. package/dist/components/ContainedList.mjs +1 -1
  217. package/dist/components/ContainedListItem.cjs +1 -1
  218. package/dist/components/ContainedListItem.mjs +1 -1
  219. package/dist/components/ContentSwitcher.cjs +1 -1
  220. package/dist/components/ContentSwitcher.mjs +1 -1
  221. package/dist/components/DataTable.cjs +1 -1
  222. package/dist/components/DataTable.mjs +1 -1
  223. package/dist/components/DatePicker.cjs +1 -1
  224. package/dist/components/DatePicker.mjs +1 -1
  225. package/dist/components/DatePicker.vue.d.ts +1 -1
  226. package/dist/components/DefinitionList.cjs +1 -1
  227. package/dist/components/DefinitionList.mjs +1 -1
  228. package/dist/components/DefinitionListItem.cjs +1 -1
  229. package/dist/components/DefinitionListItem.mjs +1 -1
  230. package/dist/components/DragHandle.cjs +1 -1
  231. package/dist/components/DragHandle.mjs +1 -1
  232. package/dist/components/EmptyState.cjs +1 -1
  233. package/dist/components/EmptyState.mjs +1 -1
  234. package/dist/components/Field.cjs +1 -1
  235. package/dist/components/Field.mjs +1 -1
  236. package/dist/components/FileUploader.cjs +1 -1
  237. package/dist/components/FileUploader.mjs +1 -1
  238. package/dist/components/Flag.cjs +1 -1
  239. package/dist/components/Flag.mjs +1 -1
  240. package/dist/components/FloatingToolbar.cjs +1 -1
  241. package/dist/components/FloatingToolbar.mjs +1 -1
  242. package/dist/components/Form.cjs +1 -1
  243. package/dist/components/Form.mjs +1 -1
  244. package/dist/components/Grid.cjs +1 -1
  245. package/dist/components/Grid.mjs +1 -1
  246. package/dist/components/ImageCropper.cjs +1 -1
  247. package/dist/components/ImageCropper.mjs +1 -1
  248. package/dist/components/ImagePicker.cjs +1 -1
  249. package/dist/components/ImagePicker.mjs +1 -1
  250. package/dist/components/InlineEdit.cjs +1 -1
  251. package/dist/components/InlineEdit.mjs +1 -1
  252. package/dist/components/InlineLoading.cjs +1 -1
  253. package/dist/components/InlineLoading.mjs +1 -1
  254. package/dist/components/InlineLoading.vue.d.ts +1 -1
  255. package/dist/components/InputGroup.cjs +1 -1
  256. package/dist/components/InputGroup.mjs +1 -1
  257. package/dist/components/JsonTree.cjs +1 -1
  258. package/dist/components/JsonTree.mjs +1 -1
  259. package/dist/components/Layer.cjs +1 -1
  260. package/dist/components/Layer.mjs +1 -1
  261. package/dist/components/LogView.cjs +1 -0
  262. package/dist/components/LogView.d.ts +75 -0
  263. package/dist/components/LogView.mjs +2 -0
  264. package/dist/components/LogView.vue.d.ts +27 -0
  265. package/dist/components/LogView.vue.d.ts.map +1 -0
  266. package/dist/components/MenuBar.cjs +1 -1
  267. package/dist/components/MenuBar.mjs +1 -1
  268. package/dist/components/MenuBarItem.cjs +1 -1
  269. package/dist/components/MenuBarItem.mjs +1 -1
  270. package/dist/components/MenuDivider.cjs +1 -1
  271. package/dist/components/MenuDivider.mjs +1 -1
  272. package/dist/components/Message.cjs +1 -1
  273. package/dist/components/Message.mjs +1 -1
  274. package/dist/components/Modal.cjs +1 -1
  275. package/dist/components/Modal.mjs +1 -1
  276. package/dist/components/NotificationCenter.cjs +1 -1
  277. package/dist/components/NotificationCenter.mjs +1 -1
  278. package/dist/components/NotificationCenterItem.cjs +1 -1
  279. package/dist/components/NotificationCenterItem.mjs +1 -1
  280. package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
  281. package/dist/components/NubiscoMark.cjs +1 -1
  282. package/dist/components/NubiscoMark.mjs +1 -1
  283. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  284. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  285. package/dist/components/NumberInput.cjs +1 -1
  286. package/dist/components/NumberInput.mjs +1 -1
  287. package/dist/components/NumberInput.vue.d.ts +1 -1
  288. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  289. package/dist/components/PageHeader.cjs +1 -1
  290. package/dist/components/PageHeader.mjs +1 -1
  291. package/dist/components/PageLayout.cjs +1 -1
  292. package/dist/components/PageLayout.mjs +1 -1
  293. package/dist/components/Pagination.cjs +1 -1
  294. package/dist/components/Pagination.mjs +1 -1
  295. package/dist/components/Panel.cjs +1 -1
  296. package/dist/components/Panel.mjs +1 -1
  297. package/dist/components/ProgressBar.cjs +1 -1
  298. package/dist/components/ProgressBar.mjs +1 -1
  299. package/dist/components/Radio.cjs +1 -1
  300. package/dist/components/Radio.mjs +1 -1
  301. package/dist/components/ReorderList.cjs +1 -1
  302. package/dist/components/ReorderList.mjs +1 -1
  303. package/dist/components/Search.cjs +1 -1
  304. package/dist/components/Search.mjs +1 -1
  305. package/dist/components/Select.cjs +1 -1
  306. package/dist/components/Select.mjs +1 -1
  307. package/dist/components/Select.vue.d.ts +2 -2
  308. package/dist/components/Select.vue.d.ts.map +1 -1
  309. package/dist/components/Shell.cjs +1 -1
  310. package/dist/components/Shell.mjs +1 -1
  311. package/dist/components/ShellPanel.cjs +1 -1
  312. package/dist/components/ShellPanel.mjs +1 -1
  313. package/dist/components/SidebarBrand.cjs +1 -1
  314. package/dist/components/SidebarBrand.d.ts +11 -0
  315. package/dist/components/SidebarBrand.mjs +1 -1
  316. package/dist/components/SidebarBrand.vue.d.ts +1 -0
  317. package/dist/components/SidebarBrand.vue.d.ts.map +1 -1
  318. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  319. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  320. package/dist/components/SidebarHeaderToggle.cjs +1 -1
  321. package/dist/components/SidebarHeaderToggle.mjs +1 -1
  322. package/dist/components/SidebarLink.cjs +1 -1
  323. package/dist/components/SidebarLink.mjs +1 -1
  324. package/dist/components/SidebarMenu.cjs +1 -1
  325. package/dist/components/SidebarMenu.mjs +1 -1
  326. package/dist/components/SidebarMenuGroup.cjs +1 -1
  327. package/dist/components/SidebarMenuGroup.mjs +1 -1
  328. package/dist/components/SidebarMenuItem.cjs +1 -1
  329. package/dist/components/SidebarMenuItem.d.ts +16 -0
  330. package/dist/components/SidebarMenuItem.mjs +1 -1
  331. package/dist/components/SidebarMenuItem.vue.d.ts +2 -0
  332. package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
  333. package/dist/components/SidebarStatus.cjs +1 -1
  334. package/dist/components/SidebarStatus.mjs +1 -1
  335. package/dist/components/Skeleton.cjs +1 -1
  336. package/dist/components/Skeleton.mjs +1 -1
  337. package/dist/components/Skeleton.vue.d.ts +1 -1
  338. package/dist/components/Slider.cjs +1 -1
  339. package/dist/components/Slider.mjs +1 -1
  340. package/dist/components/Slider.vue.d.ts +1 -1
  341. package/dist/components/Spinner.cjs +1 -1
  342. package/dist/components/Spinner.mjs +1 -1
  343. package/dist/components/Spinner.vue.d.ts +1 -1
  344. package/dist/components/Stat.cjs +1 -1
  345. package/dist/components/Stat.mjs +1 -1
  346. package/dist/components/Stepper.cjs +1 -1
  347. package/dist/components/Stepper.mjs +1 -1
  348. package/dist/components/Stepper.vue.d.ts +1 -1
  349. package/dist/components/StepperStep.cjs +1 -1
  350. package/dist/components/StepperStep.mjs +1 -1
  351. package/dist/components/StructuredList.cjs +1 -1
  352. package/dist/components/StructuredList.mjs +1 -1
  353. package/dist/components/Submenu.cjs +1 -1
  354. package/dist/components/Submenu.mjs +1 -1
  355. package/dist/components/SuggestionList.cjs +1 -1
  356. package/dist/components/SuggestionList.mjs +1 -1
  357. package/dist/components/Switch.cjs +1 -1
  358. package/dist/components/Switch.mjs +1 -1
  359. package/dist/components/TableOfContents.cjs +1 -1
  360. package/dist/components/TableOfContents.mjs +1 -1
  361. package/dist/components/TableOfContents.vue.d.ts +1 -1
  362. package/dist/components/Tabs.cjs +1 -1
  363. package/dist/components/Tabs.mjs +1 -1
  364. package/dist/components/TextInput.cjs +1 -1
  365. package/dist/components/TextInput.mjs +1 -1
  366. package/dist/components/TextInput.vue.d.ts +2 -2
  367. package/dist/components/TextInput.vue.d.ts.map +1 -1
  368. package/dist/components/Toast.cjs +1 -1
  369. package/dist/components/Toast.mjs +1 -1
  370. package/dist/components/Toaster.cjs +1 -1
  371. package/dist/components/Toaster.mjs +1 -1
  372. package/dist/components/Toolbar.cjs +1 -1
  373. package/dist/components/Toolbar.mjs +1 -1
  374. package/dist/components/Tree.cjs +1 -1
  375. package/dist/components/Tree.mjs +1 -1
  376. package/dist/components/TreeNode.cjs +1 -1
  377. package/dist/components/TreeNode.mjs +1 -1
  378. package/dist/components/UserMenu.cjs +1 -1
  379. package/dist/components/UserMenu.mjs +1 -1
  380. package/dist/components/UserMenu.vue.d.ts.map +1 -1
  381. package/dist/components/Video.cjs +1 -1
  382. package/dist/components/Video.mjs +1 -1
  383. package/dist/components/Walkthrough.cjs +1 -1
  384. package/dist/components/Walkthrough.mjs +1 -1
  385. package/dist/components/Walkthrough.vue.d.ts.map +1 -1
  386. package/dist/components/Wireframe.cjs +1 -1
  387. package/dist/components/Wireframe.mjs +1 -1
  388. package/dist/components/blueprint-connect.d.ts +16 -0
  389. package/dist/components/blueprint-connect.d.ts.map +1 -0
  390. package/dist/components/index.d.ts.map +1 -1
  391. package/dist/components/manifest.d.ts +3 -0
  392. package/dist/components/manifest.d.ts.map +1 -1
  393. package/dist/components/manifest.js +3 -0
  394. package/dist/composables/useBlueprint.composable.cjs +1 -1
  395. package/dist/composables/useBlueprint.composable.mjs +1 -1
  396. package/dist/composables/useConfirm.composable.cjs +1 -1
  397. package/dist/composables/useConfirm.composable.mjs +3 -3
  398. package/dist/composables/useFollowNewest.composable.cjs +1 -0
  399. package/dist/composables/useFollowNewest.composable.d.ts +21 -0
  400. package/dist/composables/useFollowNewest.composable.d.ts.map +1 -0
  401. package/dist/composables/useFollowNewest.composable.mjs +47 -0
  402. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  403. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  404. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  405. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  406. package/dist/composables/useNbStrings.composable.cjs +1 -1
  407. package/dist/composables/useNbStrings.composable.d.ts +26 -0
  408. package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
  409. package/dist/composables/useNbStrings.composable.mjs +19 -0
  410. package/dist/global.d.ts +6 -0
  411. package/dist/index.cjs +1 -1
  412. package/dist/index.mjs +131 -128
  413. package/dist/main.d.ts +8 -2
  414. package/dist/main.d.ts.map +1 -1
  415. package/dist/plugins/vite/index.d.ts +28 -0
  416. package/dist/plugins/vite/index.d.ts.map +1 -1
  417. package/dist/plugins/vite/index.js +68 -3
  418. package/dist/styles/Blueprint.css +1 -1
  419. package/dist/styles/BlueprintCard.css +1 -1
  420. package/dist/styles/BlueprintControls.css +1 -1
  421. package/dist/styles/ButtonSet.css +1 -1
  422. package/dist/styles/ChatMessage.css +1 -0
  423. package/dist/styles/ChatThread.css +1 -0
  424. package/dist/styles/LogView.css +1 -0
  425. package/dist/styles/SidebarBrand.css +1 -1
  426. package/dist/styles/SidebarMenuItem.css +1 -1
  427. package/dist/styles/Walkthrough.css +1 -1
  428. package/dist/ui.css +12 -9
  429. package/package.json +1 -1
  430. package/src/plugins/vite/index.ts +83 -3
  431. package/src/styles/_theme.scss +5 -0
  432. package/dist/Blueprint-ePiyl5dw.js +0 -1501
  433. package/dist/Blueprint-kNZLEHJz.cjs +0 -1
  434. package/dist/BlueprintCard-L5FqZKvJ.cjs +0 -1
  435. package/dist/Select-C77tReXr.cjs +0 -1
  436. package/dist/Select-CAXyp4ou.js +0 -613
  437. package/dist/SidebarBrand-DmWBakJG.cjs +0 -1
  438. package/dist/SidebarBrand-Dz8O0JHj.js +0 -31
  439. package/dist/SidebarMenuItem-D7rkGP2L.js +0 -268
  440. package/dist/SidebarMenuItem-DYREDfqx.cjs +0 -1
  441. package/dist/UserMenu-DFxqVHMM.cjs +0 -1
  442. /package/dist/{AiLabel-oV9j_9bX.cjs → AiLabel-BwGuSf92.cjs} +0 -0
  443. /package/dist/{AiLabel-DKhHwWNt.js → AiLabel-CT7tpXv4.js} +0 -0
  444. /package/dist/{BackToTop-DumUwoJ1.js → BackToTop-BWj2PURK.js} +0 -0
  445. /package/dist/{BackToTop-DQ6vCoQu.cjs → BackToTop-CbGWaDiv.cjs} +0 -0
  446. /package/dist/{Badge-BYfdJcdD.cjs → Badge-Bf0l95o1.cjs} +0 -0
  447. /package/dist/{Badge-scjsdx_V.js → Badge-TXLmvfLG.js} +0 -0
  448. /package/dist/{BatchActions-B5hv7U0E.js → BatchActions-iHu14Sfz.js} +0 -0
  449. /package/dist/{BatchActions-DmMLy_y-.cjs → BatchActions-xnTXMU6B.cjs} +0 -0
  450. /package/dist/{Blueprint.context-KUd38ozw.cjs → Blueprint.context-CKxT98w8.cjs} +0 -0
  451. /package/dist/{Blueprint.context-CWzHXNtU.js → Blueprint.context-Cr8R0YY2.js} +0 -0
  452. /package/dist/{BlueprintBackground-CfII_po9.cjs → BlueprintBackground-BSrAsA2t.cjs} +0 -0
  453. /package/dist/{BlueprintBackground-CBU9iwAA.js → BlueprintBackground-XyU-rJ20.js} +0 -0
  454. /package/dist/{BlueprintMinimap-5mdeNCgk.cjs → BlueprintMinimap-DIjmvRAm.cjs} +0 -0
  455. /package/dist/{BlueprintMinimap-CP2-gY4i.js → BlueprintMinimap-DWx_bkp3.js} +0 -0
  456. /package/dist/{BottomPanel-BsfMrQaS.js → BottomPanel-C6r_9aLy.js} +0 -0
  457. /package/dist/{BottomPanel-Dad7czGY.cjs → BottomPanel-cNzWs1-8.cjs} +0 -0
  458. /package/dist/{BriefingDestination-BMsPXWd6.js → BriefingDestination-CeClIu61.js} +0 -0
  459. /package/dist/{BriefingDestination-B2_e90ZN.cjs → BriefingDestination-CtsWFs9U.cjs} +0 -0
  460. /package/dist/{Calendar-C_UWF6F5.js → Calendar-BmC3wBlS.js} +0 -0
  461. /package/dist/{Calendar-BKJoim3w.cjs → Calendar-EO2vU4ls.cjs} +0 -0
  462. /package/dist/{ChartLegend-LDNukufA.js → ChartLegend-CQQwcGvz.js} +0 -0
  463. /package/dist/{ChartLegend-COJeG-2B.cjs → ChartLegend-DMxlEhT6.cjs} +0 -0
  464. /package/dist/{CheckboxGroup.context-B21mAPv4.js → CheckboxGroup.context-B2xhGoXC.js} +0 -0
  465. /package/dist/{CheckboxGroup.context-DRWqTj9S.cjs → CheckboxGroup.context-RLOznZPB.cjs} +0 -0
  466. /package/dist/{ChipGroup-BplLSI81.cjs → ChipGroup-C8ar8YCb.cjs} +0 -0
  467. /package/dist/{ChipGroup-BNp7OB2t.js → ChipGroup-E8l7aJxx.js} +0 -0
  468. /package/dist/{CloseButton-BeaS7MQc.js → CloseButton-BMJBwHvG.js} +0 -0
  469. /package/dist/{CloseButton-D0Aj3uQK.cjs → CloseButton-F7W1E8oX.cjs} +0 -0
  470. /package/dist/{CommandPalette-CI31tVG0.cjs → CommandPalette-DSE40a5L.cjs} +0 -0
  471. /package/dist/{CommandPalette-Co6sxIQz.js → CommandPalette-DjkNy4l7.js} +0 -0
  472. /package/dist/{ContainedList-PUA2OJ08.js → ContainedList-DPGBeeeX.js} +0 -0
  473. /package/dist/{ContainedList-CBWwEmoK.cjs → ContainedList-Dky4V9Ob.cjs} +0 -0
  474. /package/dist/{ContainedListItem-BKvHedZO.cjs → ContainedListItem-3p-iC-eG.cjs} +0 -0
  475. /package/dist/{ContainedListItem-8z2bmoRG.js → ContainedListItem-BLn6xfWd.js} +0 -0
  476. /package/dist/{ContentSwitcher-B96jZqzZ.cjs → ContentSwitcher-CQvxg6RC.cjs} +0 -0
  477. /package/dist/{ContentSwitcher-DCB9W7wd.js → ContentSwitcher-DuHRX4Y6.js} +0 -0
  478. /package/dist/{DefinitionList-BOVcW-V7.js → DefinitionList--Q2HEB_R.js} +0 -0
  479. /package/dist/{DefinitionList-CndoLDLs.cjs → DefinitionList-CGIDl914.cjs} +0 -0
  480. /package/dist/{DefinitionListItem-C3VrLhWY.js → DefinitionListItem-B4iWsaSC.js} +0 -0
  481. /package/dist/{DefinitionListItem-CLztc8mQ.cjs → DefinitionListItem-CR5vx_kx.cjs} +0 -0
  482. /package/dist/{DragHandle-IJoaUK75.cjs → DragHandle-BiYccTJN.cjs} +0 -0
  483. /package/dist/{DragHandle-CuEBPvz8.js → DragHandle-qTw3v4uw.js} +0 -0
  484. /package/dist/{EmptyState-Db0Zrrk2.cjs → EmptyState-1ZLgFpJO.cjs} +0 -0
  485. /package/dist/{EmptyState-DhlJV0C6.js → EmptyState-DE1pPuw-.js} +0 -0
  486. /package/dist/{Field-COMPegVv.cjs → Field-AXSzk3l3.cjs} +0 -0
  487. /package/dist/{Field-D12Dja-u.js → Field-B8wNroAI.js} +0 -0
  488. /package/dist/{FileUploader-DCTMJY5p.cjs → FileUploader-CPTj5s_M.cjs} +0 -0
  489. /package/dist/{FileUploader-CYa_FX-W.js → FileUploader-VBJtI2xh.js} +0 -0
  490. /package/dist/{Flag-CKhucUhD.js → Flag-DxtJyiq7.js} +0 -0
  491. /package/dist/{Flag-D5hPnq37.cjs → Flag-sm9H7OLB.cjs} +0 -0
  492. /package/dist/{FloatingToolbar-Clz7tlQQ.js → FloatingToolbar-BikX_AsP.js} +0 -0
  493. /package/dist/{FloatingToolbar-By_-ubVi.cjs → FloatingToolbar-DWVY8Fxo.cjs} +0 -0
  494. /package/dist/{Grid-B7d8x0tA.js → Grid-BVIhOyQ1.js} +0 -0
  495. /package/dist/{Grid-BOtE_jXr.cjs → Grid-tn5_R2fP.cjs} +0 -0
  496. /package/dist/{InlineEdit-hVNTw3FL.cjs → InlineEdit-DNYN-OKH.cjs} +0 -0
  497. /package/dist/{InlineEdit-Ccm5eW9r.js → InlineEdit-vsfyBgw7.js} +0 -0
  498. /package/dist/{JsonTree-E9Z-ELBN.js → JsonTree-6CdJ-Gzr.js} +0 -0
  499. /package/dist/{JsonTree-D2auUavc.cjs → JsonTree-Da24d7DW.cjs} +0 -0
  500. /package/dist/{Layer--aoEMtI2.js → Layer-CSuwMbCG.js} +0 -0
  501. /package/dist/{Layer-C8RYJ-6a.cjs → Layer-DgvW9hHn.cjs} +0 -0
  502. /package/dist/{MenuBar-3tuFXaKq.cjs → MenuBar-C9DS_hIo.cjs} +0 -0
  503. /package/dist/{MenuBar-T-R82ARB.js → MenuBar-DVv2g_rC.js} +0 -0
  504. /package/dist/{MenuBarItem-GgXvNoo-.cjs → MenuBarItem-DlnIAhRw.cjs} +0 -0
  505. /package/dist/{MenuBarItem-DWx9J8-L.js → MenuBarItem-yr5aizl3.js} +0 -0
  506. /package/dist/{MenuDivider-9wQ-fCik.cjs → MenuDivider-CN0P3E6g.cjs} +0 -0
  507. /package/dist/{MenuDivider-ksA6NvMu.js → MenuDivider-DdwhPon9.js} +0 -0
  508. /package/dist/{NubiscoMark-BmzCQO-3.js → NubiscoMark-0ZIaMys6.js} +0 -0
  509. /package/dist/{NubiscoMark-xthZ972G.cjs → NubiscoMark-BM7WFUNi.cjs} +0 -0
  510. /package/dist/{NubiscoPlatformMark-DCr77bqN.js → NubiscoPlatformMark-D09gaMWr.js} +0 -0
  511. /package/dist/{NubiscoPlatformMark-DA2jJFJN.cjs → NubiscoPlatformMark-DoU7dFxt.cjs} +0 -0
  512. /package/dist/{PageHeader-ChUje7zF.js → PageHeader-Bypc30sW.js} +0 -0
  513. /package/dist/{PageHeader-8n0wHC1J.cjs → PageHeader-KKxiyfqh.cjs} +0 -0
  514. /package/dist/{PageLayout-DHi1w1PD.cjs → PageLayout-BkkrJvOm.cjs} +0 -0
  515. /package/dist/{PageLayout-BMcT2mzU.js → PageLayout-Czzxu6ua.js} +0 -0
  516. /package/dist/{Panel-7LIVYu68.js → Panel-4itscCsS.js} +0 -0
  517. /package/dist/{Panel-BRPE3B-O.cjs → Panel-BKASZF-B.cjs} +0 -0
  518. /package/dist/{ReorderList-qScXc3-v.cjs → ReorderList-DJSXspkB.cjs} +0 -0
  519. /package/dist/{ReorderList-DmjW30Mw.js → ReorderList-DRFcrUfl.js} +0 -0
  520. /package/dist/{ShellPanel-BeTojwfU.cjs → ShellPanel-ColJQNUK.cjs} +0 -0
  521. /package/dist/{ShellPanel-D1-l6JRg.js → ShellPanel-K4vyQYQM.js} +0 -0
  522. /package/dist/{SidebarLink-D1rsmzP_.cjs → SidebarLink-C-tnZtCU.cjs} +0 -0
  523. /package/dist/{SidebarLink-qbDy2Jip.js → SidebarLink-D9w9PHz_.js} +0 -0
  524. /package/dist/{SidebarMenu-CEff0kWr.cjs → SidebarMenu-BVqk_jY1.cjs} +0 -0
  525. /package/dist/{SidebarMenu-Cz7k20qd.js → SidebarMenu-CxFS4i9J.js} +0 -0
  526. /package/dist/{SidebarMenuGroup-BvrYrQQi.js → SidebarMenuGroup-BxMynLi3.js} +0 -0
  527. /package/dist/{SidebarMenuGroup-vc3SM277.cjs → SidebarMenuGroup-CPhxz_bV.cjs} +0 -0
  528. /package/dist/{SidebarStatus-COgGJjkA.js → SidebarStatus-Bw8CU-vJ.js} +0 -0
  529. /package/dist/{SidebarStatus-Coh-cSGj.cjs → SidebarStatus-Cv95lDM4.cjs} +0 -0
  530. /package/dist/{Stepper.context-CIIC0ucN.cjs → Stepper.context--rpq0sA4.cjs} +0 -0
  531. /package/dist/{Stepper.context-BBwBAwSJ.js → Stepper.context-BI40m7my.js} +0 -0
  532. /package/dist/{StructuredList-BexC0c1Z.cjs → StructuredList-C7A2hCt7.cjs} +0 -0
  533. /package/dist/{StructuredList-DuBBP01p.js → StructuredList-DuHjSiZQ.js} +0 -0
  534. /package/dist/{Submenu-M1q8mdSB.js → Submenu-BDs-yAqv.js} +0 -0
  535. /package/dist/{Submenu-DK6C5mjc.cjs → Submenu-BLjx2kWl.cjs} +0 -0
  536. /package/dist/{TableOfContents-IQordoiY.cjs → TableOfContents-BzG-BsKk.cjs} +0 -0
  537. /package/dist/{TableOfContents-B7Qmz4t9.js → TableOfContents-WDCjtpK6.js} +0 -0
  538. /package/dist/{TextInput.context-B-mipPOo.js → TextInput.context-CIHw4T0Y.js} +0 -0
  539. /package/dist/{TextInput.context-ChkcqMNM.cjs → TextInput.context-pJ99Jqwr.cjs} +0 -0
  540. /package/dist/{Toolbar-DN0gMuyj.cjs → Toolbar-0yonvSaQ.cjs} +0 -0
  541. /package/dist/{Toolbar-Cc_31FMW.js → Toolbar-DX2l8FUL.js} +0 -0
  542. /package/dist/{TreeContext-JbeO4_mW.cjs → TreeContext-CA4uqhBq.cjs} +0 -0
  543. /package/dist/{TreeContext-BSNQGIEd.js → TreeContext-CwTEdedz.js} +0 -0
  544. /package/dist/{Video-B0FTFBYF.js → Video-BFik9HZq.js} +0 -0
  545. /package/dist/{Video-DxTpvMsS.cjs → Video-Cnqsjo4n.cjs} +0 -0
  546. /package/dist/{Wireframe-B-Dnmefu.js → Wireframe-DJRZl5rd.js} +0 -0
  547. /package/dist/{Wireframe-DBqyeEzE.cjs → Wireframe-Dhxj8wYJ.cjs} +0 -0
  548. /package/dist/{palette-BPqd521m.js → palette-4rzDlIAy.js} +0 -0
  549. /package/dist/{palette-MlQ_k4iu.cjs → palette-DxWvvteq.cjs} +0 -0
  550. /package/dist/{pixi-scene-RJljCo62.cjs → pixi-scene-ZtVQmHpg.cjs} +0 -0
  551. /package/dist/{pixi-scene-CdHSFEve.js → pixi-scene-hlXJlAf5.js} +0 -0
  552. /package/dist/{scales-BRSHTjbp.cjs → scales-Dbh3TYrl.cjs} +0 -0
  553. /package/dist/{scales-BGzTviac.js → scales-TfA6Pl4e.js} +0 -0
  554. /package/dist/{useChartEntrance-D8vJ7eWq.cjs → useChartEntrance-BSMpWsax.cjs} +0 -0
  555. /package/dist/{useChartEntrance-heEx5_ZG.js → useChartEntrance-BqG_st9U.js} +0 -0
  556. /package/dist/{useChartSize-05CLdiR0.js → useChartSize-B-Rv6Q7a.js} +0 -0
  557. /package/dist/{useChartSize-CUZ7BuGD.cjs → useChartSize-c75YO_2m.cjs} +0 -0
  558. /package/dist/{useLoadingAnnouncer.composable-CZT2zf7e.js → useLoadingAnnouncer.composable-Cihu0ZHU.js} +0 -0
  559. /package/dist/{useLoadingAnnouncer.composable-BXyCMUDe.cjs → useLoadingAnnouncer.composable-vqmtAsfY.cjs} +0 -0
  560. /package/dist/{vue-i18n-D8JKgg8C.cjs → vue-i18n-BaeznwnA.cjs} +0 -0
  561. /package/dist/{vue-i18n-B8N89VAx.js → vue-i18n-DgCNp5tk.js} +0 -0
@@ -0,0 +1,1538 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
+ import { n as t, t as n } from "./Blueprint.context-Cr8R0YY2.js";
3
+ import { t as r } from "./blueprint-connect-dcuHxtzp.js";
4
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, onMounted as h, openBlock as g, provide as _, ref as v, renderList as y, renderSlot as b, unref as x, useSlots as S, vShow as C, watch as w, withCtx as T, withDirectives as E, withModifiers as D } from "vue";
5
+ //#region src/components/blueprint-port-cache.ts
6
+ function O(e) {
7
+ let t = /* @__PURE__ */ new Map();
8
+ function n(n, r) {
9
+ let i = `${n}:${r}`, a = t.get(i);
10
+ if (a && a.isConnected) return a;
11
+ a && t.delete(i);
12
+ let o = e();
13
+ if (!o) return null;
14
+ let s = o.querySelector(`[data-port="${n}:${r}"]`);
15
+ return s && t.set(i, s), s;
16
+ }
17
+ function r() {
18
+ for (let [e, n] of t) n.isConnected || t.delete(e);
19
+ }
20
+ function i() {
21
+ t.clear();
22
+ }
23
+ function a() {
24
+ return t.size;
25
+ }
26
+ return {
27
+ get: n,
28
+ prune: r,
29
+ clear: i,
30
+ size: a
31
+ };
32
+ }
33
+ function ee(e) {
34
+ return e instanceof Element ? e.parentElement?.classList.contains("nb-blueprint__canvas") ?? !1 : !1;
35
+ }
36
+ //#endregion
37
+ //#region src/components/BlueprintDomRenderer.vue?vue&type=script&setup=true&lang.ts
38
+ var te = { class: "nb-blueprint__wires" }, k = [
39
+ "d",
40
+ "data-wire-index",
41
+ "onMousedown",
42
+ "onContextmenu",
43
+ "onMousemove",
44
+ "onMouseleave"
45
+ ], ne = ["d", "stroke"], A = ["d", "stroke"], j = ["d"], re = /* @__PURE__ */ e(/* @__PURE__ */ u({
46
+ __name: "BlueprintDomRenderer",
47
+ props: {
48
+ panX: {},
49
+ panY: {},
50
+ zoom: {},
51
+ isTransforming: { type: Boolean },
52
+ wires: {},
53
+ windowed: { type: Boolean },
54
+ visibleCards: {},
55
+ dragWire: {},
56
+ shouldFlow: { type: Function },
57
+ levelColoring: { type: Boolean },
58
+ activityStyle: {},
59
+ animateConnections: {},
60
+ background: {},
61
+ liveData: {}
62
+ },
63
+ emits: [
64
+ "wire-mousedown",
65
+ "wire-contextmenu",
66
+ "wire-mousemove",
67
+ "wire-mouseleave"
68
+ ],
69
+ setup(e, { emit: t }) {
70
+ let n = e, r = t, o = a(() => `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`), u = a(() => n.isTransforming ? "transform" : void 0), d = a(() => ({
71
+ transform: o.value,
72
+ willChange: u.value
73
+ })), m = a(() => ({
74
+ transform: o.value,
75
+ transformOrigin: "0 0",
76
+ willChange: u.value
77
+ }));
78
+ return (t, n) => (g(), c(i, null, [e.background === "none" ? s("", !0) : (g(), c("div", {
79
+ key: 0,
80
+ class: f(["nb-blueprint__grid", `nb-blueprint__grid--${e.background}`]),
81
+ style: p(d.value)
82
+ }, null, 6)), l("div", {
83
+ class: "nb-blueprint__canvas",
84
+ style: p(m.value)
85
+ }, [(g(), c("svg", te, [
86
+ (g(!0), c(i, null, y(e.wires, (e, t) => (g(), c("g", {
87
+ key: t,
88
+ class: "nb-blueprint__wire-group"
89
+ }, [l("path", {
90
+ d: e.path,
91
+ fill: "none",
92
+ stroke: "transparent",
93
+ "stroke-width": "14",
94
+ class: "nb-blueprint__wire-hitregion",
95
+ "data-wire-index": t,
96
+ onMousedown: (t) => r("wire-mousedown", t, e.conn),
97
+ onContextmenu: D((t) => r("wire-contextmenu", t, e.conn), ["prevent"]),
98
+ onMousemove: (t) => r("wire-mousemove", t, e.conn),
99
+ onMouseleave: (t) => r("wire-mouseleave", e.conn)
100
+ }, null, 40, k), l("path", {
101
+ d: e.path,
102
+ fill: "none",
103
+ stroke: e.color,
104
+ "stroke-width": "1.5",
105
+ class: f(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
106
+ "pointer-events": "none"
107
+ }, null, 10, ne)]))), 128)),
108
+ (g(!0), c(i, null, y(e.wires, (t, n) => E((g(), c("path", {
109
+ key: `flow-${n}`,
110
+ d: t.path,
111
+ fill: "none",
112
+ stroke: t.color,
113
+ "stroke-width": "1.5",
114
+ "stroke-dasharray": "4 8",
115
+ class: "nb-blueprint__wire-flow",
116
+ "pointer-events": "none"
117
+ }, null, 8, A)), [[C, e.shouldFlow(t.conn)]])), 128)),
118
+ e.dragWire ? (g(), c("path", {
119
+ key: 0,
120
+ d: e.dragWire,
121
+ fill: "none",
122
+ stroke: "var(--nb-c-primary)",
123
+ "stroke-width": "2",
124
+ "stroke-dasharray": "6 3",
125
+ opacity: "0.6"
126
+ }, null, 8, j)) : s("", !0)
127
+ ])), e.windowed ? (g(!0), c(i, { key: 0 }, y(e.visibleCards, (e) => (g(), c("div", {
128
+ key: e.id,
129
+ class: "nb-blueprint__card-wrapper",
130
+ style: p({
131
+ position: "absolute",
132
+ left: `${e.x}px`,
133
+ top: `${e.y}px`
134
+ })
135
+ }, [b(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : b(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
136
+ }
137
+ }), [["__scopeId", "data-v-387c811f"]]), M = { class: "nb-blueprint__wires" }, N = ["d", "stroke"], P = [
138
+ "d",
139
+ "data-wire-index",
140
+ "onMousedown",
141
+ "onContextmenu",
142
+ "onMousemove",
143
+ "onMouseleave"
144
+ ], F = ["d"], I = /* @__PURE__ */ e(/* @__PURE__ */ u({
145
+ __name: "BlueprintPixiRenderer",
146
+ props: {
147
+ panX: {},
148
+ panY: {},
149
+ zoom: {},
150
+ isTransforming: { type: Boolean },
151
+ wires: {},
152
+ windowed: { type: Boolean },
153
+ visibleCards: {},
154
+ dragWire: {},
155
+ shouldFlow: { type: Function },
156
+ levelColoring: { type: Boolean },
157
+ activityStyle: {},
158
+ animateConnections: {},
159
+ background: {},
160
+ liveData: {}
161
+ },
162
+ emits: [
163
+ "wire-mousedown",
164
+ "wire-contextmenu",
165
+ "wire-mousemove",
166
+ "wire-mouseleave",
167
+ "unavailable"
168
+ ],
169
+ setup(e, { emit: t }) {
170
+ let n = e, r = t, o = v(), u = v(), d = v(!1), _ = null, x, S = a(() => ({
171
+ transform: `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`,
172
+ transformOrigin: "0 0",
173
+ willChange: n.isTransforming ? "transform" : "auto"
174
+ }));
175
+ function C() {
176
+ let e = o.value?.parentElement;
177
+ return {
178
+ width: e?.clientWidth ?? 0,
179
+ height: e?.clientHeight ?? 0
180
+ };
181
+ }
182
+ async function T() {
183
+ let e = o.value, t = u.value;
184
+ if (!(!e || !t)) try {
185
+ let [r, { PixiScene: i }] = await Promise.all([import("pixi.js"), import("./pixi-scene-hlXJlAf5.js")]), { width: a, height: s } = C(), c = await i.create(r, {
186
+ canvas: e,
187
+ el: t,
188
+ width: a,
189
+ height: s,
190
+ resolution: window.devicePixelRatio || 1,
191
+ background: n.background,
192
+ liveData: n.liveData
193
+ });
194
+ if (!o.value) {
195
+ c.destroy();
196
+ return;
197
+ }
198
+ _ = c, E(), d.value = !0, O();
199
+ } catch (e) {
200
+ r("unavailable", e);
201
+ }
202
+ }
203
+ function E() {
204
+ _ && (_.setCamera(n.panX, n.panY, n.zoom), _.setLevelColoring(n.levelColoring ?? !1), _.setActivityStyle(n.activityStyle ?? "flow"), _.setWires(n.wires, n.shouldFlow), _.setMeters(n.visibleCards));
205
+ }
206
+ function O() {
207
+ let e = o.value?.parentElement;
208
+ e && (x = new ResizeObserver(() => {
209
+ if (!_) return;
210
+ let { width: e, height: t } = C();
211
+ _.resize(e, t, window.devicePixelRatio || 1);
212
+ }), x.observe(e));
213
+ }
214
+ return w(() => [
215
+ n.panX,
216
+ n.panY,
217
+ n.zoom
218
+ ], ([e, t, n]) => _?.setCamera(e, t, n)), w(() => n.wires, (e) => _?.setWires(e, n.shouldFlow)), w(() => n.visibleCards, (e) => _?.setMeters(e)), w(() => n.levelColoring, (e) => _?.setLevelColoring(e ?? !1)), w(() => n.activityStyle, (e) => _?.setActivityStyle(e ?? "flow")), w(() => n.animateConnections, () => _?.setWires(n.wires, n.shouldFlow)), w(() => n.background, (e) => _?.setBackground(e)), h(T), m(() => {
219
+ x?.disconnect(), _?.destroy(), _ = null;
220
+ }), (t, n) => (g(), c(i, null, [l("canvas", {
221
+ ref_key: "canvasRef",
222
+ ref: o,
223
+ class: "nb-blueprint-pixi__canvas"
224
+ }, null, 512), l("div", {
225
+ ref_key: "overlayRef",
226
+ ref: u,
227
+ class: "nb-blueprint__canvas nb-blueprint-pixi__overlay",
228
+ style: p(S.value)
229
+ }, [(g(), c("svg", M, [
230
+ d.value ? s("", !0) : (g(!0), c(i, { key: 0 }, y(e.wires, (e, t) => (g(), c("path", {
231
+ key: `w-${t}`,
232
+ d: e.path,
233
+ fill: "none",
234
+ stroke: e.color,
235
+ "stroke-width": "1.5",
236
+ class: f(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
237
+ "pointer-events": "none"
238
+ }, null, 10, N))), 128)),
239
+ (g(!0), c(i, null, y(e.wires, (e, t) => (g(), c("path", {
240
+ key: `h-${t}`,
241
+ d: e.path,
242
+ fill: "none",
243
+ stroke: "transparent",
244
+ "stroke-width": "14",
245
+ class: "nb-blueprint__wire-hitregion",
246
+ "data-wire-index": t,
247
+ onMousedown: (t) => r("wire-mousedown", t, e.conn),
248
+ onContextmenu: D((t) => r("wire-contextmenu", t, e.conn), ["prevent"]),
249
+ onMousemove: (t) => r("wire-mousemove", t, e.conn),
250
+ onMouseleave: (t) => r("wire-mouseleave", e.conn)
251
+ }, null, 40, P))), 128)),
252
+ e.dragWire ? (g(), c("path", {
253
+ key: 1,
254
+ d: e.dragWire,
255
+ fill: "none",
256
+ stroke: "var(--nb-c-primary)",
257
+ "stroke-width": "2",
258
+ "stroke-dasharray": "6 3",
259
+ opacity: "0.6"
260
+ }, null, 8, F)) : s("", !0)
261
+ ])), e.windowed ? (g(!0), c(i, { key: 0 }, y(e.visibleCards, (e) => (g(), c("div", {
262
+ key: e.id,
263
+ class: "nb-blueprint__card-wrapper",
264
+ style: p({
265
+ position: "absolute",
266
+ left: `${e.x}px`,
267
+ top: `${e.y}px`
268
+ })
269
+ }, [b(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : b(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
270
+ }
271
+ }), [["__scopeId", "data-v-6fdf251d"]]), ie = class {
272
+ values = /* @__PURE__ */ new Map();
273
+ epoch = 0;
274
+ onChange = void 0;
275
+ set(e, t) {
276
+ this.values.set(e, t), this.epoch++, this.onChange?.();
277
+ }
278
+ setMany(e) {
279
+ for (let t in e) this.values.set(t, e[t]);
280
+ this.epoch++, this.onChange?.();
281
+ }
282
+ replace(e) {
283
+ this.values.clear(), this.setMany(e);
284
+ }
285
+ get(e) {
286
+ return this.values.get(e) ?? 0;
287
+ }
288
+ clear() {
289
+ this.values.size !== 0 && (this.values.clear(), this.epoch++, this.onChange?.());
290
+ }
291
+ get size() {
292
+ return this.values.size;
293
+ }
294
+ get version() {
295
+ return this.epoch;
296
+ }
297
+ };
298
+ //#endregion
299
+ //#region src/components/blueprint-autolayout.ts
300
+ function ae(e, t, n = {}) {
301
+ let r = n.originX ?? 80, i = n.originY ?? 80, a = n.colGap ?? 420, o = n.rowGap ?? 48, s = n.bandGap ?? 90, c = n.defaultW ?? 220, l = n.defaultH ?? 140, u = /* @__PURE__ */ new Map();
302
+ if (!e.length) return u;
303
+ let d = new Map(e.map((e) => [e.id, e])), f = (e) => Math.max(c, d.get(e)?.w || c), p = (e) => Math.max(l, d.get(e)?.h || l), m = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
304
+ for (let t of e) m.set(t.id, /* @__PURE__ */ new Set()), h.set(t.id, /* @__PURE__ */ new Set());
305
+ let g = [];
306
+ for (let e of t) if (!(!d.has(e.from) || !d.has(e.to)) && e.kind !== "ignore") {
307
+ if (e.kind === "control") {
308
+ g.push({
309
+ from: e.from,
310
+ to: e.to
311
+ });
312
+ continue;
313
+ }
314
+ m.get(e.to).add(e.from), h.get(e.from).add(e.to);
315
+ }
316
+ let _ = (e) => m.get(e).size, v = (e) => h.get(e).size, y = (e) => _(e) >= 2, b = /* @__PURE__ */ new Map(), x = (e, t = /* @__PURE__ */ new Set()) => {
317
+ let n = b.get(e);
318
+ if (n !== void 0) return n;
319
+ if (t.has(e)) return 0;
320
+ t.add(e);
321
+ let r = 0;
322
+ for (let n of m.get(e)) r = Math.max(r, x(n, t) + 1);
323
+ return t.delete(e), b.set(e, r), r;
324
+ };
325
+ for (let t of e) x(t.id);
326
+ let S, C = -1, w = -1;
327
+ for (let t of e) {
328
+ if (!y(t.id) || v(t.id) === 0) continue;
329
+ let e = b.get(t.id), n = _(t.id);
330
+ (e > C || e === C && n > w) && (C = e, w = n, S = t.id);
331
+ }
332
+ let T = /* @__PURE__ */ new Set();
333
+ if (S) {
334
+ let e = [S];
335
+ for (; e.length;) {
336
+ let t = e.pop();
337
+ if (!T.has(t)) {
338
+ T.add(t);
339
+ for (let n of h.get(t)) e.push(n);
340
+ }
341
+ }
342
+ }
343
+ let E = (e) => {
344
+ let t = [...h.get(e)], n = new Set(t);
345
+ for (; t.length;) {
346
+ let e = t.shift();
347
+ if (y(e)) return e;
348
+ for (let r of h.get(e)) n.has(r) || (n.add(r), t.push(r));
349
+ }
350
+ return null;
351
+ }, D = (e) => y(e) ? e : E(e), O = /* @__PURE__ */ new Set();
352
+ for (let t of e) {
353
+ if (_(t.id) !== 0 || v(t.id) < 2) continue;
354
+ let e = /* @__PURE__ */ new Set();
355
+ for (let n of h.get(t.id)) e.add(D(n));
356
+ e.size > 1 && O.add(t.id);
357
+ }
358
+ let ee = "\0shared", te = "\0trunk", k = /* @__PURE__ */ new Map();
359
+ for (let t of e) {
360
+ let e = t.id;
361
+ if (O.has(e)) {
362
+ k.set(e, ee);
363
+ continue;
364
+ }
365
+ if (T.has(e)) {
366
+ k.set(e, te);
367
+ continue;
368
+ }
369
+ let n = y(e) ? e : E(e);
370
+ k.set(e, n && n !== S ? n : `direct:${e}`);
371
+ }
372
+ let ne = e.map((e) => e.id).filter((e) => k.get(e)?.startsWith("direct:")), A = new Map(ne.map((e) => [e, e])), j = (e) => {
373
+ let t = e;
374
+ for (; A.get(t) !== t;) t = A.get(t);
375
+ for (; A.get(e) !== t;) {
376
+ let n = A.get(e);
377
+ A.set(e, t), e = n;
378
+ }
379
+ return t;
380
+ };
381
+ for (let e of t) e.kind === "signal" && k.get(e.from)?.startsWith("direct:") && k.get(e.to)?.startsWith("direct:") && A.set(j(e.from), j(e.to));
382
+ for (let e of ne) k.set(e, `chain:${j(e)}`);
383
+ for (let { from: e, to: t } of g) {
384
+ let n = k.get(t);
385
+ n && k.has(e) && k.set(e, n);
386
+ }
387
+ for (let t of e) k.has(t.id) || k.set(t.id, "\0orphan");
388
+ let re = [...new Set(k.values())].filter((e) => e !== ee && e !== te), M = (t) => e.filter((e) => k.get(e.id) === t);
389
+ re.sort((e, t) => M(t).length - M(e).length);
390
+ let N = /* @__PURE__ */ new Map();
391
+ for (let e of re) N.set(e, Math.max(0, ...M(e).map((e) => b.get(e.id))));
392
+ let P = Math.max(0, ...N.values()), F = /* @__PURE__ */ new Map();
393
+ if (S) {
394
+ F.set(S, 0);
395
+ let e = [S];
396
+ for (; e.length;) {
397
+ let t = e.shift(), n = F.get(t);
398
+ for (let r of h.get(t)) T.has(r) && !F.has(r) && (F.set(r, n + 1), e.push(r));
399
+ }
400
+ }
401
+ let I = (e) => O.has(e) ? -1 : T.has(e) ? P + 1 + (F.get(e) ?? 0) : P - (N.get(k.get(e)) ?? 0) + (b.get(e) ?? 0), ie = [...new Set(e.map((e) => I(e.id)))].sort((e, t) => e - t), ae = /* @__PURE__ */ new Map();
402
+ for (let t of ie) ae.set(t, Math.max(c, ...e.filter((e) => I(e.id) === t).map((e) => f(e.id))));
403
+ let oe = /* @__PURE__ */ new Map(), se = r;
404
+ for (let e of ie) oe.set(e, se), se += ae.get(e) + a;
405
+ let ce = /* @__PURE__ */ new Map(), L = (e) => e.reduce((e, t) => e + p(t) + o, 0) - o, le = (e) => {
406
+ let t = [...m.get(e), ...h.get(e)].map((e) => ce.get(e)).filter((e) => e != null).sort((e, t) => e - t);
407
+ return t.length ? t[Math.floor(t.length / 2)] : 0;
408
+ }, R = (e, t) => {
409
+ let n = t;
410
+ for (let t of e) ce.set(t, n), n += p(t) + o;
411
+ }, ue = (e) => {
412
+ let t = /* @__PURE__ */ new Map();
413
+ for (let n of e) {
414
+ let e = I(n);
415
+ (t.get(e) ?? t.set(e, []).get(e)).push(n);
416
+ }
417
+ return t;
418
+ }, de = i;
419
+ for (let e of re) {
420
+ let t = ue(M(e).map((e) => e.id)), n = l;
421
+ for (let e of t.values()) n = Math.max(n, L(e));
422
+ for (let [, e] of t) e.sort((e, t) => le(e) - le(t)), R(e, de + (n - L(e)) / 2);
423
+ de += n + s;
424
+ }
425
+ let fe = (i + Math.max(i, de - s)) / 2;
426
+ {
427
+ let e = [...O];
428
+ R(e, fe - L(e) / 2);
429
+ }
430
+ for (let [, e] of ue([...T])) R(e, fe - L(e) / 2);
431
+ for (let t of e) u.set(t.id, {
432
+ x: oe.get(I(t.id)),
433
+ y: ce.get(t.id) ?? i
434
+ });
435
+ return u;
436
+ }
437
+ //#endregion
438
+ //#region src/components/Blueprint.vue?vue&type=script&setup=true&lang.ts
439
+ var oe = {
440
+ key: 0,
441
+ class: "nb-blueprint__background-slot",
442
+ "aria-hidden": "true"
443
+ }, se = { class: "nb-blueprint__chrome" }, ce = 100, L = .2, le = 3, R = 4, ue = 240, de = 400, fe = 1.2, pe = 40, z = /* @__PURE__ */ e(/* @__PURE__ */ u({
444
+ __name: "Blueprint",
445
+ props: {
446
+ connections: { default: () => [] },
447
+ density: { default: "default" },
448
+ cards: {},
449
+ cardSizeEstimate: {},
450
+ animateConnections: { default: "never" },
451
+ activityStyle: {},
452
+ wheelMode: { default: "auto" },
453
+ editable: {
454
+ type: Boolean,
455
+ default: !1
456
+ },
457
+ readonly: {
458
+ type: Boolean,
459
+ default: !1
460
+ },
461
+ canConnect: {},
462
+ renderer: { default: "auto" },
463
+ background: { default: "dots" },
464
+ layoutEdgeKind: {}
465
+ },
466
+ emits: [
467
+ "connect",
468
+ "disconnect",
469
+ "move",
470
+ "selection-change",
471
+ "focus",
472
+ "drop-on-wire",
473
+ "wire-hover",
474
+ "wire-mouseover",
475
+ "wire-mouseout"
476
+ ],
477
+ setup(e, { expose: i, emit: u }) {
478
+ let y = e, C = S(), E = a(() => C.background ? "none" : y.background), te = v(!1), k = v(!1), ne = a(() => y.renderer !== "dom" && te.value && !k.value ? "pixi" : "dom");
479
+ function A() {
480
+ try {
481
+ let e = document.createElement("canvas");
482
+ return !!(e.getContext("webgl2") || e.getContext("webgl") || e.getContext("experimental-webgl"));
483
+ } catch {
484
+ return !1;
485
+ }
486
+ }
487
+ function j(e) {
488
+ y.renderer === "pixi" && console.warn(`[NubiscoUI] Blueprint renderer="pixi" unavailable (${e}); using the DOM renderer.`);
489
+ }
490
+ h(async () => {
491
+ if (!(y.renderer === "dom" || typeof window > "u")) {
492
+ if (!A()) {
493
+ j("no WebGL");
494
+ return;
495
+ }
496
+ try {
497
+ await import("pixi.js"), te.value = !0;
498
+ } catch {
499
+ j("pixi.js not installed");
500
+ }
501
+ }
502
+ });
503
+ function M(e) {
504
+ k.value = !0, j(e instanceof Error ? e.message : "init failed");
505
+ }
506
+ let N = u, P = v(), F = v(0), z = v(0), B = v(1), me = v(0), he = new ie(), V = v(!1), ge;
507
+ function _e() {
508
+ V.value = !0, ge && clearTimeout(ge), ge = setTimeout(() => {
509
+ V.value = !1;
510
+ }, 220);
511
+ }
512
+ let ve = v(0), ye = v(0), be = v(1), xe = 0;
513
+ function Se() {
514
+ ve.value = F.value, ye.value = z.value, be.value = B.value, xe = performance.now();
515
+ }
516
+ w([
517
+ F,
518
+ z,
519
+ B
520
+ ], () => {
521
+ if (!V.value) {
522
+ Se();
523
+ return;
524
+ }
525
+ performance.now() - xe >= ce && Se();
526
+ }), w(V, (e) => {
527
+ e || Se();
528
+ });
529
+ let Ce = v({
530
+ w: 0,
531
+ h: 0
532
+ }), we = O(() => P.value), Te = /* @__PURE__ */ new Map();
533
+ function Ee(e) {
534
+ for (let [t, n] of Te) n.cardId === e && Te.delete(t);
535
+ }
536
+ function De() {
537
+ Te.clear();
538
+ }
539
+ function Oe(e, t, n) {
540
+ let r = `${e}:${t}`, i = Te.get(r);
541
+ if (i) return {
542
+ x: i.x,
543
+ y: i.y
544
+ };
545
+ let a = we.get(e, t);
546
+ if (!a) return null;
547
+ let o = a.getBoundingClientRect(), s = (o.left + o.width / 2 - n.left - F.value) / B.value, c = (o.top + o.height / 2 - n.top - z.value) / B.value, l = a.closest("[data-card-id]")?.getAttribute("data-card-id") ?? "";
548
+ return Te.set(r, {
549
+ cardId: l,
550
+ x: s,
551
+ y: c
552
+ }), {
553
+ x: s,
554
+ y: c
555
+ };
556
+ }
557
+ let ke = {
558
+ width: 260,
559
+ height: 200
560
+ }, H = v(/* @__PURE__ */ new Set()), Ae = v(null);
561
+ function je(e) {
562
+ Ae.value = e, N("focus", e);
563
+ }
564
+ function U(e) {
565
+ H.value = new Set(e), N("selection-change", e);
566
+ }
567
+ function Me() {
568
+ if (y.cards) {
569
+ U(y.cards.map((e) => e.id));
570
+ return;
571
+ }
572
+ if (!P.value) return;
573
+ let e = [];
574
+ P.value.querySelectorAll("[data-card-id]").forEach((t) => {
575
+ let n = t.dataset.cardId;
576
+ n && e.push(n);
577
+ }), U(e);
578
+ }
579
+ function Ne() {
580
+ U([]), je(null);
581
+ }
582
+ let Pe = v(!1);
583
+ function Fe() {
584
+ let e = document.activeElement;
585
+ if (!e) return !1;
586
+ let t = e.tagName;
587
+ return t === "INPUT" || t === "TEXTAREA" ? !0 : e.isContentEditable === !0;
588
+ }
589
+ function Ie(e) {
590
+ if (e.code === "Space" && !e.repeat) {
591
+ if (Fe()) return;
592
+ Pe.value = !0, e.preventDefault();
593
+ }
594
+ }
595
+ function Le(e) {
596
+ e.code === "Space" && (Pe.value = !1);
597
+ }
598
+ let Re = !1, ze = 0, Be = 0, Ve = [
599
+ "button",
600
+ "input",
601
+ "select",
602
+ "textarea",
603
+ "label",
604
+ "a[href]",
605
+ "[role=\"button\"]",
606
+ "[role=\"slider\"]",
607
+ "[contenteditable=\"true\"]",
608
+ "[data-no-card-drag]"
609
+ ].join(", ");
610
+ function He(e) {
611
+ return !!(e instanceof Element ? e : null)?.closest(Ve);
612
+ }
613
+ let Ue = [
614
+ "[role=\"slider\"]",
615
+ "[role=\"spinbutton\"]",
616
+ "[role=\"listbox\"]",
617
+ "[data-canvas-wheel-passthrough]",
618
+ "input[type=\"range\"]",
619
+ "input[type=\"number\"]"
620
+ ].join(", ");
621
+ function We(e) {
622
+ let t = e instanceof Element ? e : null;
623
+ if (!t) return !1;
624
+ if (t.closest(Ue)) return !0;
625
+ let n = t;
626
+ for (; n && n !== P.value;) {
627
+ let e = window.getComputedStyle(n), t = e.overflowY, r = e.overflowX, i = (t === "auto" || t === "scroll" || t === "overlay") && n.scrollHeight > n.clientHeight, a = (r === "auto" || r === "scroll" || r === "overlay") && n.scrollWidth > n.clientWidth;
628
+ if (i || a) return !0;
629
+ n = n.parentElement;
630
+ }
631
+ return !1;
632
+ }
633
+ function Ge(e) {
634
+ let t = e.target instanceof HTMLElement ? e.target : null;
635
+ if (t?.closest(".nb-blueprint__chrome") || t?.closest(".nb-blueprint-card__port")) return;
636
+ if (e.button === 1) {
637
+ Ke(e);
638
+ return;
639
+ }
640
+ if (Pe.value) {
641
+ Ke(e);
642
+ return;
643
+ }
644
+ let n = t?.closest(".nb-blueprint-card");
645
+ if (n) {
646
+ st(e, n, !y.readonly && !He(t));
647
+ return;
648
+ }
649
+ gt(e);
650
+ }
651
+ function Ke(e) {
652
+ Re = !0, ze = e.clientX - F.value, Be = e.clientY - z.value, document.addEventListener("mousemove", qe), document.addEventListener("mouseup", Je);
653
+ }
654
+ function qe(e) {
655
+ Re && (_e(), F.value = e.clientX - ze, z.value = e.clientY - Be);
656
+ }
657
+ function Je() {
658
+ Re = !1, document.removeEventListener("mousemove", qe), document.removeEventListener("mouseup", Je);
659
+ }
660
+ function Ye(e, t, n) {
661
+ let r = P.value?.getBoundingClientRect();
662
+ if (!r) return;
663
+ let i = B.value, a = Math.max(L, Math.min(le, i * n));
664
+ if (a === i) return;
665
+ let o = e - r.left, s = t - r.top, c = (o - F.value) / i, l = (s - z.value) / i;
666
+ F.value = o - c * a, z.value = s - l * a, B.value = a;
667
+ }
668
+ function Xe(e) {
669
+ let t = P.value?.getBoundingClientRect();
670
+ t && Ye(t.left + t.width / 2, t.top + t.height / 2, e);
671
+ }
672
+ function Ze() {
673
+ Xe(fe);
674
+ }
675
+ function Qe() {
676
+ Xe(1 / fe);
677
+ }
678
+ function $e(e) {
679
+ if (!P.value?.getBoundingClientRect()) return;
680
+ let t = e.ctrlKey;
681
+ if (!t && We(e.target)) return;
682
+ e.preventDefault(), _e();
683
+ let n;
684
+ if (n = t || y.wheelMode === "zoom" ? "zoom" : (y.wheelMode, "pan"), n === "zoom") {
685
+ let t = 1 - e.deltaY * .01;
686
+ Ye(e.clientX, e.clientY, t);
687
+ } else F.value -= e.deltaX, z.value -= e.deltaY;
688
+ }
689
+ let et = !1, tt = null, nt = 0, rt = 0, W = /* @__PURE__ */ new Map(), it = !1;
690
+ function at(e) {
691
+ let t = e;
692
+ for (; t?.parentElement;) {
693
+ if (t.parentElement.classList.contains("nb-blueprint__canvas")) return t;
694
+ t = t.parentElement;
695
+ }
696
+ return e.parentElement;
697
+ }
698
+ function G(e) {
699
+ let t = at(e);
700
+ if (!t) return {
701
+ x: 0,
702
+ y: 0
703
+ };
704
+ let n = parseFloat(t.style.left), r = parseFloat(t.style.top);
705
+ if (!Number.isNaN(n) && !Number.isNaN(r)) return {
706
+ x: n,
707
+ y: r
708
+ };
709
+ let i = (t.style.transform || "").match(/translate\(([^,]+)px,\s*([^)]+)px\)/);
710
+ return i ? {
711
+ x: parseFloat(i[1]),
712
+ y: parseFloat(i[2])
713
+ } : {
714
+ x: t.offsetLeft,
715
+ y: t.offsetTop
716
+ };
717
+ }
718
+ function ot(e, t, n) {
719
+ let r = at(e);
720
+ r && (r.style.left = `${t}px`, r.style.top = `${n}px`);
721
+ }
722
+ function st(e, t, n = !0) {
723
+ let r = t.dataset.cardId;
724
+ if (r) {
725
+ if (nt = e.clientX, rt = e.clientY, it = !1, W = /* @__PURE__ */ new Map(), e.shiftKey) {
726
+ let e = new Set(H.value);
727
+ e.has(r) ? e.delete(r) : e.add(r), U(Array.from(e));
728
+ } else H.value.has(r) || U([r]), je(r);
729
+ d(() => {
730
+ if (P.value) for (let e of H.value) {
731
+ let t = P.value.querySelector(`[data-card-id="${e}"]`);
732
+ t && W.set(e, G(t));
733
+ }
734
+ }), n && (document.addEventListener("mousemove", lt), document.addEventListener("mouseup", dt));
735
+ }
736
+ }
737
+ function ct() {
738
+ if (!P.value || y.readonly) return;
739
+ let e = [];
740
+ for (let t of W.keys()) {
741
+ let n = P.value.querySelector(`[data-card-id="${t}"]`);
742
+ if (n) {
743
+ let r = G(n);
744
+ e.push({
745
+ id: t,
746
+ x: Math.round(r.x),
747
+ y: Math.round(r.y)
748
+ });
749
+ }
750
+ }
751
+ e.length && N("move", e);
752
+ }
753
+ function lt(e) {
754
+ let t = (e.clientX - nt) / B.value, n = (e.clientY - rt) / B.value;
755
+ if (!(!et && Math.abs(t * B.value) < R && Math.abs(n * B.value) < R) && (et = !0, it = !0, P.value)) {
756
+ for (let [e, r] of W) {
757
+ let i = P.value.querySelector(`[data-card-id="${e}"]`);
758
+ i && ot(i, r.x + t, r.y + n);
759
+ }
760
+ if (ct(), me.value++, W.size === 1) {
761
+ let [t] = W.keys();
762
+ if (t) {
763
+ let n = ut(e.clientX, e.clientY), r = n ? `${n.fromNode}/${n.fromPort}|${n.toNode}/${n.toPort}` : null;
764
+ r !== tt && (tt = r, N("wire-hover", t, n));
765
+ }
766
+ }
767
+ }
768
+ }
769
+ function ut(e, t) {
770
+ if (!P.value) return null;
771
+ let n = P.value.querySelectorAll(".nb-blueprint__wire-hitregion");
772
+ for (let r of n) {
773
+ let n = r.ownerSVGElement;
774
+ if (!n) continue;
775
+ let i = n.getScreenCTM();
776
+ if (!i) continue;
777
+ let a = i.inverse(), o = n.createSVGPoint();
778
+ o.x = e, o.y = t;
779
+ let s = o.matrixTransform(a);
780
+ if (r.isPointInStroke(s)) {
781
+ let e = parseInt(r.getAttribute("data-wire-index") ?? "-1", 10), t = e >= 0 ? Vt.value[e] : void 0;
782
+ if (t) return t.conn;
783
+ }
784
+ }
785
+ return null;
786
+ }
787
+ function dt(e) {
788
+ if (document.removeEventListener("mousemove", lt), document.removeEventListener("mouseup", dt), it && (ct(), e && W.size === 1 && !y.readonly)) {
789
+ let [t] = W.keys();
790
+ if (t) {
791
+ let n = ut(e.clientX, e.clientY);
792
+ n && N("drop-on-wire", t, n);
793
+ }
794
+ }
795
+ if (et = !1, it = !1, W = /* @__PURE__ */ new Map(), tt !== null) {
796
+ let [e] = W.keys();
797
+ e && N("wire-hover", e, null), tt = null;
798
+ }
799
+ }
800
+ let K = v(null), ft = !1, pt = a(() => {
801
+ if (!K.value) return {};
802
+ let { x1: e, y1: t, x2: n, y2: r } = K.value;
803
+ return {
804
+ left: `${Math.min(e, n)}px`,
805
+ top: `${Math.min(t, r)}px`,
806
+ width: `${Math.abs(n - e)}px`,
807
+ height: `${Math.abs(r - t)}px`
808
+ };
809
+ }), mt = v(null);
810
+ function ht() {
811
+ if (H.value.size < 2 || !P.value || K.value) return null;
812
+ let e = P.value.getBoundingClientRect(), t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
813
+ for (let a of H.value) {
814
+ let o = P.value.querySelector(`[data-card-id="${a}"]`);
815
+ if (!o) continue;
816
+ let s = o.getBoundingClientRect(), c = s.left - e.left, l = s.top - e.top;
817
+ t = Math.min(t, c), n = Math.min(n, l), r = Math.max(r, c + s.width), i = Math.max(i, l + s.height);
818
+ }
819
+ return t === Infinity ? null : {
820
+ left: `${t - 8}px`,
821
+ top: `${n - 8}px`,
822
+ width: `${r - t + 16}px`,
823
+ height: `${i - n + 16}px`
824
+ };
825
+ }
826
+ w([
827
+ F,
828
+ z,
829
+ B,
830
+ me,
831
+ H,
832
+ K
833
+ ], () => {
834
+ mt.value = ht();
835
+ }, {
836
+ flush: "post",
837
+ immediate: !0
838
+ });
839
+ function gt(e) {
840
+ if (!P.value) return;
841
+ let t = P.value.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
842
+ ft = e.shiftKey, ft || U([]), K.value = {
843
+ x1: n,
844
+ y1: r,
845
+ x2: n,
846
+ y2: r
847
+ }, document.addEventListener("mousemove", _t), document.addEventListener("mouseup", vt);
848
+ }
849
+ function _t(e) {
850
+ if (!K.value || !P.value) return;
851
+ let t = P.value.getBoundingClientRect();
852
+ K.value.x2 = e.clientX - t.left, K.value.y2 = e.clientY - t.top;
853
+ }
854
+ function vt() {
855
+ if (document.removeEventListener("mousemove", _t), document.removeEventListener("mouseup", vt), !K.value || !P.value) {
856
+ K.value = null;
857
+ return;
858
+ }
859
+ let e = P.value.getBoundingClientRect(), { x1: t, y1: n, x2: r, y2: i } = K.value, a = Math.min(t, r), o = Math.min(n, i), s = Math.max(t, r), c = Math.max(n, i);
860
+ if (Math.abs(r - t) < R && Math.abs(i - n) < R) {
861
+ ft || (U([]), je(null)), K.value = null;
862
+ return;
863
+ }
864
+ let l = ft ? [...H.value] : [];
865
+ P.value.querySelectorAll("[data-card-id]").forEach((t) => {
866
+ let n = t.getBoundingClientRect(), r = n.left - e.left, i = n.top - e.top, u = r + n.width, d = i + n.height;
867
+ if (r < s && u > a && i < c && d > o) {
868
+ let e = t.dataset.cardId;
869
+ e && !l.includes(e) && l.push(e);
870
+ }
871
+ }), U(l), K.value = null;
872
+ }
873
+ let yt = v(null), q = v(null), J = v(null);
874
+ function bt(e) {
875
+ y.readonly || (q.value = e, J.value = null, document.addEventListener("mousemove", Ft), document.addEventListener("mouseup", Z));
876
+ }
877
+ function xt(e, t) {
878
+ if (e.button !== 0 || (e.stopPropagation(), !P.value || y.readonly)) return;
879
+ let n = P.value.getBoundingClientRect(), r = (e.clientX - n.left - F.value) / B.value, i = (e.clientY - n.top - z.value) / B.value, a = jt(t.fromNode, t.fromPort), o = jt(t.toNode, t.toPort);
880
+ if (!a || !o) return;
881
+ let s = a.getBoundingClientRect(), c = o.getBoundingClientRect(), l = (s.left + s.width / 2 - n.left - F.value) / B.value, u = (s.top + s.height / 2 - n.top - z.value) / B.value, d = (c.left + c.width / 2 - n.left - F.value) / B.value, f = (c.top + c.height / 2 - n.top - z.value) / B.value, p = Math.hypot(r - l, i - u), m = Math.hypot(r - d, i - f);
882
+ if (Math.min(p, m) > pe) return;
883
+ e.preventDefault();
884
+ let h = p < m, g = h ? o : a;
885
+ q.value = h ? {
886
+ nodeId: t.toNode,
887
+ portId: t.toPort,
888
+ type: "input",
889
+ dataType: Mt(g)
890
+ } : {
891
+ nodeId: t.fromNode,
892
+ portId: t.fromPort,
893
+ type: "output",
894
+ dataType: Mt(g)
895
+ }, J.value = t, document.addEventListener("mousemove", Ft), document.addEventListener("mouseup", Z);
896
+ }
897
+ _(n, {
898
+ onPortDown: (e) => bt(e),
899
+ onPortUp: (e) => It(e),
900
+ dragOrigin: q,
901
+ density: a(() => y.density),
902
+ nudge: St,
903
+ cancelPortDrag: Z,
904
+ readonly: a(() => y.readonly),
905
+ allowsConnection: Pt
906
+ });
907
+ function St(e, t, n) {
908
+ let r = P.value;
909
+ if (!r || y.readonly) return;
910
+ let i;
911
+ if (H.value.has(e)) i = Q();
912
+ else {
913
+ let t = r.querySelector(`[data-card-id="${e}"]`);
914
+ if (!t) return;
915
+ let n = G(t);
916
+ i = [{
917
+ id: e,
918
+ el: t,
919
+ x: n.x,
920
+ y: n.y,
921
+ w: t.offsetWidth,
922
+ h: t.offsetHeight
923
+ }];
924
+ }
925
+ i.length && $(i.map((e) => ({
926
+ ...e,
927
+ x: e.x + t,
928
+ y: e.y + n
929
+ })));
930
+ }
931
+ function Ct(e, t) {
932
+ let n = P.value?.getBoundingClientRect(), r = n?.left ?? 0, i = n?.top ?? 0;
933
+ return {
934
+ x: (e - r - F.value) / B.value,
935
+ y: (t - i - z.value) / B.value
936
+ };
937
+ }
938
+ function wt(e, t) {
939
+ let n = P.value?.getBoundingClientRect(), r = n?.left ?? 0, i = n?.top ?? 0;
940
+ return {
941
+ clientX: e * B.value + F.value + r,
942
+ clientY: t * B.value + z.value + i
943
+ };
944
+ }
945
+ _(t, {
946
+ panX: F,
947
+ panY: z,
948
+ zoom: B,
949
+ selectedIds: H,
950
+ focusedId: Ae,
951
+ selectAll: Me,
952
+ deselectAll: Ne,
953
+ centerView: Kt,
954
+ fitToView: qt,
955
+ resetView: Jt,
956
+ getCamera: Yt,
957
+ setCamera: Xt,
958
+ zoomIn: Ze,
959
+ zoomOut: Qe,
960
+ alignLeft: Zt,
961
+ alignCenter: Qt,
962
+ alignRight: $t,
963
+ alignTop: en,
964
+ alignMiddle: tn,
965
+ alignBottom: nn,
966
+ distributeHorizontally: rn,
967
+ distributeVertically: an,
968
+ autoLayout: on,
969
+ screenToCanvas: Ct,
970
+ canvasToScreen: wt,
971
+ isEditMode: a(() => y.editable),
972
+ isReadonly: a(() => y.readonly),
973
+ viewportSize: Ce,
974
+ isTransforming: V,
975
+ live: he,
976
+ onPortDown: (e) => bt(e),
977
+ onPortUp: (e) => It(e)
978
+ }), w(() => y.readonly, (e) => {
979
+ e && (dt(), Z(), X());
980
+ });
981
+ let Y = v(null);
982
+ function Tt(e, t) {
983
+ if (!P.value || y.readonly) return;
984
+ let n = P.value.getBoundingClientRect();
985
+ Y.value = {
986
+ x: e.clientX - n.left,
987
+ y: e.clientY - n.top,
988
+ conn: t
989
+ };
990
+ }
991
+ function Et(e, t) {
992
+ N("wire-mouseover", t, e.clientX, e.clientY);
993
+ }
994
+ function Dt(e) {
995
+ N("wire-mouseout", e);
996
+ }
997
+ function X() {
998
+ Y.value = null;
999
+ }
1000
+ function Ot(e) {
1001
+ if (y.readonly) {
1002
+ X();
1003
+ return;
1004
+ }
1005
+ N("disconnect", e), X();
1006
+ }
1007
+ function kt(e) {
1008
+ Y.value && (e.target.closest(".nb-blueprint__wire-menu") || X());
1009
+ }
1010
+ function At(e) {
1011
+ e.key === "Escape" && Y.value && X();
1012
+ }
1013
+ function jt(e, t) {
1014
+ return we.get(e, t);
1015
+ }
1016
+ function Mt(e) {
1017
+ let t = e?.getAttribute("data-port-data-type");
1018
+ return t && t !== "any" ? t : void 0;
1019
+ }
1020
+ function Nt(e) {
1021
+ return {
1022
+ nodeId: e.nodeId,
1023
+ portId: e.portId,
1024
+ type: e.type,
1025
+ dataType: e.dataType && e.dataType !== "any" ? e.dataType : void 0
1026
+ };
1027
+ }
1028
+ function Pt(e, t) {
1029
+ let n = y.canConnect;
1030
+ if (!n || e.type === t.type) return !0;
1031
+ let r = e.type === "output" ? e : t, i = e.type === "output" ? t : e;
1032
+ return n(Nt(r), Nt(i));
1033
+ }
1034
+ function Ft(e) {
1035
+ let t = q.value;
1036
+ if (!t || !P.value) return;
1037
+ let n = P.value.getBoundingClientRect(), r = (e.clientX - n.left - F.value) / B.value, i = (e.clientY - n.top - z.value) / B.value, a = jt(t.nodeId, t.portId);
1038
+ if (!a) return;
1039
+ let o = a.getBoundingClientRect(), s = (o.left + o.width / 2 - n.left - F.value) / B.value, c = (o.top + o.height / 2 - n.top - z.value) / B.value, l = Math.abs(r - s) * .5;
1040
+ yt.value = `M ${s} ${c} C ${s + l} ${c}, ${r - l} ${i}, ${r} ${i}`;
1041
+ }
1042
+ function Z() {
1043
+ q.value = null, J.value = null, yt.value = null, document.removeEventListener("mousemove", Ft), document.removeEventListener("mouseup", Z);
1044
+ }
1045
+ function It(e) {
1046
+ if (y.readonly) return;
1047
+ let t = q.value;
1048
+ if (!t || t.nodeId === e.nodeId || t.type === e.type) return;
1049
+ let n = t.type === "output" ? t : e, i = t.type === "output" ? e : t;
1050
+ if (y.canConnect && (!r(n.dataType, i.dataType) || !Pt(t, e))) {
1051
+ Z();
1052
+ return;
1053
+ }
1054
+ let a = {
1055
+ fromNode: n.nodeId,
1056
+ fromPort: n.portId,
1057
+ toNode: i.nodeId,
1058
+ toPort: i.portId
1059
+ }, o = J.value;
1060
+ o ? o.fromNode === a.fromNode && o.fromPort === a.fromPort && o.toNode === a.toNode && o.toPort === a.toPort || (N("disconnect", o), N("connect", a)) : N("connect", a), q.value = null, J.value = null, yt.value = null;
1061
+ }
1062
+ let Lt = /* @__PURE__ */ new WeakMap();
1063
+ function Rt(e) {
1064
+ let t = Lt.get(e);
1065
+ if (t) return t;
1066
+ let n = e.closest(".nb-blueprint-card"), r = "var(--nb-c-primary)";
1067
+ if (n) {
1068
+ let e = getComputedStyle(n).getPropertyValue("--nb-card-color").trim();
1069
+ e && !e.startsWith("var(") && (r = e);
1070
+ }
1071
+ return Lt.set(e, r), r;
1072
+ }
1073
+ function zt(e) {
1074
+ let t = e.getAttribute("data-port-data-type") ?? "";
1075
+ return t === "midi" || t.startsWith("midi:");
1076
+ }
1077
+ function Bt(e) {
1078
+ let t = Math.max(0, Math.min(1, e)), n = [
1079
+ 34,
1080
+ 197,
1081
+ 94
1082
+ ], r = [
1083
+ 250,
1084
+ 204,
1085
+ 21
1086
+ ], i = [
1087
+ 239,
1088
+ 68,
1089
+ 68
1090
+ ], a, o, s;
1091
+ t <= .5 ? (a = n, o = r, s = t * 2) : (a = r, o = i, s = (t - .5) * 2);
1092
+ let c = (e, t) => Math.round(e + (t - e) * s);
1093
+ return `rgb(${c(a[0], o[0])}, ${c(a[1], o[1])}, ${c(a[2], o[2])})`;
1094
+ }
1095
+ let Vt = a(() => {
1096
+ if (me.value, !P.value) return [];
1097
+ let e = P.value.getBoundingClientRect(), t = be.value, n = ue / t, r = (0 - ve.value) / t - n, i = (e.width - ve.value) / t + n, a = (0 - ye.value) / t - n, o = (e.height - ye.value) / t + n, s = J.value;
1098
+ return y.connections.filter((e) => !s || e.fromNode !== s.fromNode || e.fromPort !== s.fromPort || e.toNode !== s.toNode || e.toPort !== s.toPort).map((t) => {
1099
+ let n = Oe(t.fromNode, t.fromPort, e), s = Oe(t.toNode, t.toPort, e);
1100
+ if (!n || !s) return null;
1101
+ let c = n.x, l = n.y, u = s.x, d = s.y, f = Math.abs(u - c) * .4, p = c + f, m = u - f;
1102
+ if (Math.max(c, p, m, u) < r || Math.min(c, p, m, u) > i || (l < d ? d : l) < a || (l < d ? l : d) > o) return null;
1103
+ let h = jt(t.fromNode, t.fromPort);
1104
+ if (!h) return null;
1105
+ let g = `M ${c} ${l} C ${p} ${l}, ${m} ${d}, ${u} ${d}`, _ = Rt(h), v = zt(h), b = _;
1106
+ return y.animateConnections === "levels" && t.active !== !1 && !v && typeof t.level == "number" && (b = Bt(t.level)), {
1107
+ path: g,
1108
+ conn: t,
1109
+ color: b,
1110
+ isMidi: v
1111
+ };
1112
+ }).filter(Boolean);
1113
+ }), Ht = (e) => {
1114
+ let t = y.cardSizeEstimate ?? ke;
1115
+ return {
1116
+ w: e.width ?? t.width,
1117
+ h: e.height ?? t.height
1118
+ };
1119
+ }, Ut = a(() => {
1120
+ let e = y.cards;
1121
+ if (!e || e.length === 0) return [];
1122
+ let t = be.value, n = de / t, r = (0 - ve.value) / t - n, i = (Ce.value.w - ve.value) / t + n, a = (0 - ye.value) / t - n, o = (Ce.value.h - ye.value) / t + n, s = (e, t, n, s) => n >= r && e <= i && s >= a && t <= o, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
1123
+ for (let t of e) {
1124
+ c.set(t.id, t);
1125
+ let { w: e, h: n } = Ht(t);
1126
+ s(t.x, t.y, t.x + e, t.y + n) && l.add(t.id);
1127
+ }
1128
+ for (let e of y.connections) {
1129
+ let t = c.get(e.fromNode), n = c.get(e.toNode);
1130
+ if (!t || !n || l.has(t.id) && l.has(n.id)) continue;
1131
+ let r = Ht(t), i = Ht(n), a = t.x + r.w, o = t.y + r.h / 2, u = n.x, d = n.y + i.h / 2, f = Math.abs(u - a) * .4, p = Math.min(a, a + f, u - f, u), m = Math.max(a, a + f, u - f, u);
1132
+ s(p, o < d ? o : d, m, o < d ? d : o) && (l.add(t.id), l.add(n.id));
1133
+ }
1134
+ return e.filter((e) => l.has(e.id));
1135
+ });
1136
+ function Wt(e) {
1137
+ return y.animateConnections === "never" ? !1 : y.animateConnections === "always" ? !0 : y.animateConnections === "levels" ? !1 : e.active !== !1;
1138
+ }
1139
+ function Gt(e) {
1140
+ let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity, a = e && e.length ? new Set(e) : null, o = 0;
1141
+ if (y.cards) {
1142
+ if (y.cards.length === 0) return null;
1143
+ for (let e of y.cards) {
1144
+ if (a && !a.has(e.id)) continue;
1145
+ let { w: s, h: c } = Ht(e);
1146
+ t = Math.min(t, e.x), n = Math.min(n, e.y), r = Math.max(r, e.x + s), i = Math.max(i, e.y + c), o++;
1147
+ }
1148
+ return o > 0 ? {
1149
+ minX: t,
1150
+ minY: n,
1151
+ maxX: r,
1152
+ maxY: i
1153
+ } : null;
1154
+ }
1155
+ if (!P.value) return null;
1156
+ let s = P.value.querySelectorAll("[data-card-id]");
1157
+ return s.length === 0 ? null : (s.forEach((e) => {
1158
+ let s = e;
1159
+ if (a && !a.has(s.getAttribute("data-card-id") ?? "")) return;
1160
+ let c = G(s), l = s.offsetWidth, u = s.offsetHeight;
1161
+ t = Math.min(t, c.x), n = Math.min(n, c.y), r = Math.max(r, c.x + l), i = Math.max(i, c.y + u), o++;
1162
+ }), o > 0 ? {
1163
+ minX: t,
1164
+ minY: n,
1165
+ maxX: r,
1166
+ maxY: i
1167
+ } : null);
1168
+ }
1169
+ function Kt() {
1170
+ if (B.value = 1, !P.value) return;
1171
+ let e = Gt();
1172
+ if (!e) {
1173
+ F.value = 0, z.value = 0;
1174
+ return;
1175
+ }
1176
+ let t = P.value.getBoundingClientRect(), n = (e.minX + e.maxX) / 2, r = (e.minY + e.maxY) / 2;
1177
+ F.value = t.width / 2 - n, z.value = t.height / 2 - r;
1178
+ }
1179
+ function qt(e = 40, t) {
1180
+ if (!P.value) return;
1181
+ let n = Gt(t);
1182
+ if (!n) {
1183
+ if (t && t.length) return;
1184
+ Jt();
1185
+ return;
1186
+ }
1187
+ let r = P.value.getBoundingClientRect(), i = n.maxX - n.minX, a = n.maxY - n.minY;
1188
+ if (i <= 0 || a <= 0) {
1189
+ Kt();
1190
+ return;
1191
+ }
1192
+ let o = r.width - e * 2, s = r.height - e * 2, c = o / i, l = s / a, u = Math.max(L, Math.min(le, Math.min(c, l))), d = (n.minX + n.maxX) / 2, f = (n.minY + n.maxY) / 2;
1193
+ B.value = u, F.value = r.width / 2 - d * u, z.value = r.height / 2 - f * u;
1194
+ }
1195
+ function Jt() {
1196
+ F.value = 0, z.value = 0, B.value = 1;
1197
+ }
1198
+ function Yt() {
1199
+ return {
1200
+ panX: F.value,
1201
+ panY: z.value,
1202
+ zoom: B.value
1203
+ };
1204
+ }
1205
+ function Xt(e) {
1206
+ typeof e.panX == "number" && (F.value = e.panX), typeof e.panY == "number" && (z.value = e.panY), typeof e.zoom == "number" && (B.value = e.zoom);
1207
+ }
1208
+ function Q() {
1209
+ if (!P.value) return [];
1210
+ let e = [];
1211
+ for (let t of H.value) {
1212
+ let n = P.value.querySelector(`[data-card-id="${t}"]`);
1213
+ if (!n) continue;
1214
+ let r = G(n);
1215
+ e.push({
1216
+ id: t,
1217
+ el: n,
1218
+ x: r.x,
1219
+ y: r.y,
1220
+ w: n.offsetWidth,
1221
+ h: n.offsetHeight
1222
+ });
1223
+ }
1224
+ return e;
1225
+ }
1226
+ function $(e) {
1227
+ if (y.readonly) return;
1228
+ let t = [];
1229
+ for (let n of e) n.el && ot(n.el, n.x, n.y), t.push({
1230
+ id: n.id,
1231
+ x: Math.round(n.x),
1232
+ y: Math.round(n.y)
1233
+ });
1234
+ t.length && (me.value++, N("move", t));
1235
+ }
1236
+ function Zt() {
1237
+ let e = Q();
1238
+ if (e.length < 2) return;
1239
+ let t = Math.min(...e.map((e) => e.x));
1240
+ e.forEach((e) => e.x = t), $(e);
1241
+ }
1242
+ function Qt() {
1243
+ let e = Q();
1244
+ if (e.length < 2) return;
1245
+ let t = e.map((e) => e.x + e.w / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
1246
+ e.forEach((e) => e.x = n - e.w / 2), $(e);
1247
+ }
1248
+ function $t() {
1249
+ let e = Q();
1250
+ if (e.length < 2) return;
1251
+ let t = Math.max(...e.map((e) => e.x + e.w));
1252
+ e.forEach((e) => e.x = t - e.w), $(e);
1253
+ }
1254
+ function en() {
1255
+ let e = Q();
1256
+ if (e.length < 2) return;
1257
+ let t = Math.min(...e.map((e) => e.y));
1258
+ e.forEach((e) => e.y = t), $(e);
1259
+ }
1260
+ function tn() {
1261
+ let e = Q();
1262
+ if (e.length < 2) return;
1263
+ let t = e.map((e) => e.y + e.h / 2), n = t.reduce((e, t) => e + t, 0) / t.length;
1264
+ e.forEach((e) => e.y = n - e.h / 2), $(e);
1265
+ }
1266
+ function nn() {
1267
+ let e = Q();
1268
+ if (e.length < 2) return;
1269
+ let t = Math.max(...e.map((e) => e.y + e.h));
1270
+ e.forEach((e) => e.y = t - e.h), $(e);
1271
+ }
1272
+ function rn() {
1273
+ let e = Q();
1274
+ if (e.length < 3) return;
1275
+ e.sort((e, t) => e.x - t.x);
1276
+ let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.w, 0), i = (n.x + n.w - t.x - r) / (e.length - 1), a = t.x + t.w + i;
1277
+ for (let t = 1; t < e.length - 1; t++) e[t].x = a, a += e[t].w + i;
1278
+ $(e);
1279
+ }
1280
+ function an() {
1281
+ let e = Q();
1282
+ if (e.length < 3) return;
1283
+ e.sort((e, t) => e.y - t.y);
1284
+ let t = e[0], n = e[e.length - 1], r = e.reduce((e, t) => e + t.h, 0), i = (n.y + n.h - t.y - r) / (e.length - 1), a = t.y + t.h + i;
1285
+ for (let t = 1; t < e.length - 1; t++) e[t].y = a, a += e[t].h + i;
1286
+ $(e);
1287
+ }
1288
+ function on(e) {
1289
+ if (!P.value || y.readonly) return;
1290
+ let t = e?.gapY ?? 40, n = e?.padding ?? 60, r = [];
1291
+ if (y.cards) for (let e of y.cards) {
1292
+ let t = P.value.querySelector(`[data-card-id="${e.id}"]`), { w: n, h: i } = Ht(e);
1293
+ r.push({
1294
+ id: e.id,
1295
+ el: t,
1296
+ x: e.x,
1297
+ y: e.y,
1298
+ w: e.width ?? t?.offsetWidth ?? n,
1299
+ h: e.height ?? t?.offsetHeight ?? i
1300
+ });
1301
+ }
1302
+ else P.value.querySelectorAll("[data-card-id]").forEach((e) => {
1303
+ let t = e, n = t.dataset.cardId;
1304
+ if (!n) return;
1305
+ let i = G(t);
1306
+ r.push({
1307
+ id: n,
1308
+ el: t,
1309
+ x: i.x,
1310
+ y: i.y,
1311
+ w: t.offsetWidth,
1312
+ h: t.offsetHeight
1313
+ });
1314
+ });
1315
+ if (!r.length) return;
1316
+ let i = new Map(r.map((e) => [e.id, e])), a = r.map((e) => ({
1317
+ id: e.id,
1318
+ w: e.w,
1319
+ h: e.h
1320
+ })), o = y.layoutEdgeKind, s = [];
1321
+ for (let e of y.connections) !i.has(e.fromNode) || !i.has(e.toNode) || s.push({
1322
+ from: e.fromNode,
1323
+ to: e.toNode,
1324
+ kind: o ? o(e) : "signal"
1325
+ });
1326
+ let c = ae(a, s, {
1327
+ colGap: e?.gapX,
1328
+ rowGap: t,
1329
+ originX: n,
1330
+ originY: n
1331
+ });
1332
+ for (let e of r) {
1333
+ let t = c.get(e.id);
1334
+ t && (e.x = t.x, e.y = t.y);
1335
+ }
1336
+ $(r);
1337
+ }
1338
+ let sn = new MutationObserver((e) => {
1339
+ we.prune();
1340
+ let t = !1, n = !1;
1341
+ for (let r of e) {
1342
+ if (r.type === "childList") {
1343
+ t = !0;
1344
+ continue;
1345
+ }
1346
+ if (!ee(r.target)) continue;
1347
+ n = !0;
1348
+ let e = r.target.querySelector("[data-card-id]")?.getAttribute("data-card-id");
1349
+ e && Ee(e);
1350
+ }
1351
+ t && De(), (t || n) && me.value++;
1352
+ }), cn = null;
1353
+ return h(() => {
1354
+ if (P.value) {
1355
+ let e = P.value.getBoundingClientRect();
1356
+ Ce.value = {
1357
+ w: e.width,
1358
+ h: e.height
1359
+ }, typeof ResizeObserver < "u" && (cn = new ResizeObserver((e) => {
1360
+ let t = e[0]?.contentRect;
1361
+ t && (Ce.value = {
1362
+ w: t.width,
1363
+ h: t.height
1364
+ });
1365
+ }), cn.observe(P.value)), sn.observe(P.value, {
1366
+ childList: !0,
1367
+ subtree: !0,
1368
+ attributes: !0,
1369
+ attributeFilter: ["style"]
1370
+ });
1371
+ }
1372
+ window.addEventListener("keydown", Ie), window.addEventListener("keyup", Le), document.addEventListener("mousedown", kt), document.addEventListener("keydown", At), d(() => d(qt));
1373
+ }), m(() => {
1374
+ sn.disconnect(), cn?.disconnect(), ge && clearTimeout(ge), window.removeEventListener("keydown", Ie), window.removeEventListener("keyup", Le), document.removeEventListener("mousedown", kt), document.removeEventListener("keydown", At);
1375
+ }), i({
1376
+ centerView: Kt,
1377
+ fitToView: qt,
1378
+ resetView: Jt,
1379
+ getCamera: Yt,
1380
+ setCamera: Xt,
1381
+ zoomIn: Ze,
1382
+ zoomOut: Qe,
1383
+ selectedIds: H,
1384
+ focusedId: Ae,
1385
+ selectAll: Me,
1386
+ deselectAll: Ne,
1387
+ alignLeft: Zt,
1388
+ alignCenter: Qt,
1389
+ alignRight: $t,
1390
+ alignTop: en,
1391
+ alignMiddle: tn,
1392
+ alignBottom: nn,
1393
+ distributeHorizontally: rn,
1394
+ distributeVertically: an,
1395
+ autoLayout: on,
1396
+ onPortMouseDown: bt,
1397
+ onPortMouseUp: It,
1398
+ panX: F,
1399
+ panY: z,
1400
+ zoom: B,
1401
+ isTransforming: V,
1402
+ live: he
1403
+ }), (t, n) => (g(), c("div", {
1404
+ ref_key: "containerRef",
1405
+ ref: P,
1406
+ class: f(["nb-blueprint", {
1407
+ "is-panning": x(Re),
1408
+ "is-space": Pe.value,
1409
+ "nb-blueprint--readonly": e.readonly
1410
+ }]),
1411
+ onMousedown: Ge,
1412
+ onWheel: $e
1413
+ }, [
1414
+ n[4] ||= l("div", { class: "nb-blueprint__ambient" }, null, -1),
1415
+ t.$slots.background ? (g(), c("div", oe, [b(t.$slots, "background", {}, void 0, !0)])) : s("", !0),
1416
+ ne.value === "dom" ? (g(), o(re, {
1417
+ key: 1,
1418
+ "pan-x": F.value,
1419
+ "pan-y": z.value,
1420
+ zoom: B.value,
1421
+ "is-transforming": V.value,
1422
+ wires: Vt.value,
1423
+ windowed: !!y.cards,
1424
+ "visible-cards": Ut.value,
1425
+ "drag-wire": yt.value,
1426
+ "should-flow": Wt,
1427
+ "level-coloring": e.animateConnections === "levels",
1428
+ "activity-style": e.activityStyle ?? "flow",
1429
+ "animate-connections": e.animateConnections,
1430
+ background: E.value,
1431
+ onWireMousedown: xt,
1432
+ onWireContextmenu: Tt,
1433
+ onWireMousemove: Et,
1434
+ onWireMouseleave: Dt
1435
+ }, {
1436
+ card: T(({ card: e }) => [b(t.$slots, "card", { card: e }, void 0, !0)]),
1437
+ default: T(() => [b(t.$slots, "default", {}, void 0, !0)]),
1438
+ _: 3
1439
+ }, 8, [
1440
+ "pan-x",
1441
+ "pan-y",
1442
+ "zoom",
1443
+ "is-transforming",
1444
+ "wires",
1445
+ "windowed",
1446
+ "visible-cards",
1447
+ "drag-wire",
1448
+ "level-coloring",
1449
+ "activity-style",
1450
+ "animate-connections",
1451
+ "background"
1452
+ ])) : (g(), o(I, {
1453
+ key: 2,
1454
+ "pan-x": F.value,
1455
+ "pan-y": z.value,
1456
+ zoom: B.value,
1457
+ "is-transforming": V.value,
1458
+ wires: Vt.value,
1459
+ windowed: !!y.cards,
1460
+ "visible-cards": Ut.value,
1461
+ "drag-wire": yt.value,
1462
+ "should-flow": Wt,
1463
+ "level-coloring": e.animateConnections === "levels",
1464
+ "activity-style": e.activityStyle ?? "flow",
1465
+ "animate-connections": e.animateConnections,
1466
+ background: E.value,
1467
+ "live-data": x(he),
1468
+ onWireMousedown: xt,
1469
+ onWireContextmenu: Tt,
1470
+ onWireMousemove: Et,
1471
+ onWireMouseleave: Dt,
1472
+ onUnavailable: M
1473
+ }, {
1474
+ card: T(({ card: e }) => [b(t.$slots, "card", { card: e }, void 0, !0)]),
1475
+ default: T(() => [b(t.$slots, "default", {}, void 0, !0)]),
1476
+ _: 3
1477
+ }, 8, [
1478
+ "pan-x",
1479
+ "pan-y",
1480
+ "zoom",
1481
+ "is-transforming",
1482
+ "wires",
1483
+ "windowed",
1484
+ "visible-cards",
1485
+ "drag-wire",
1486
+ "level-coloring",
1487
+ "activity-style",
1488
+ "animate-connections",
1489
+ "background",
1490
+ "live-data"
1491
+ ])),
1492
+ K.value ? (g(), c("div", {
1493
+ key: 3,
1494
+ class: "nb-blueprint__marquee nb-blueprint__marquee--dragging",
1495
+ style: p(pt.value)
1496
+ }, null, 4)) : s("", !0),
1497
+ mt.value ? (g(), c("svg", {
1498
+ key: 4,
1499
+ class: "nb-blueprint__selection-box",
1500
+ style: p(mt.value)
1501
+ }, [...n[3] ||= [l("rect", {
1502
+ x: "0.75",
1503
+ y: "0.75",
1504
+ width: "calc(100% - 1.5px)",
1505
+ height: "calc(100% - 1.5px)",
1506
+ rx: "4",
1507
+ ry: "4",
1508
+ fill: "none",
1509
+ stroke: "var(--nb-blueprint-marquee-border, var(--nb-c-primary, #6366f1))",
1510
+ "stroke-width": "1.5",
1511
+ "stroke-dasharray": "6 4",
1512
+ class: "nb-blueprint__selection-ants"
1513
+ }, null, -1)]], 4)) : s("", !0),
1514
+ Y.value ? (g(), c("div", {
1515
+ key: 5,
1516
+ class: "nb-blueprint__wire-menu",
1517
+ style: p({
1518
+ left: `${Y.value.x}px`,
1519
+ top: `${Y.value.y}px`
1520
+ }),
1521
+ role: "menu",
1522
+ onClick: n[1] ||= D(() => {}, ["stop"]),
1523
+ onContextmenu: n[2] ||= D(() => {}, ["prevent"])
1524
+ }, [b(t.$slots, "wire-menu", {
1525
+ connection: Y.value.conn,
1526
+ close: X,
1527
+ disconnect: () => Ot(Y.value.conn)
1528
+ }, () => [l("button", {
1529
+ type: "button",
1530
+ class: "nb-blueprint__wire-menu-item",
1531
+ onClick: n[0] ||= (e) => Ot(Y.value.conn)
1532
+ }, " Disconnect ")], !0)], 36)) : s("", !0),
1533
+ l("div", se, [b(t.$slots, "chrome", {}, void 0, !0)])
1534
+ ], 34));
1535
+ }
1536
+ }), [["__scopeId", "data-v-2ad58242"]]);
1537
+ //#endregion
1538
+ export { ae as n, ie as r, z as t };