@runeya/runeya 2.0.37 → 2.0.39

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 (229) hide show
  1. package/package.json +1 -1
  2. package/web/assets/AgentScalarChatInterface.vue-HiYdPZh0.js +13 -0
  3. package/web/assets/AgentTerminalPage-BV1OTr-r.js +1 -0
  4. package/web/assets/AiChatPage-Ct_f2ned.js +1 -0
  5. package/web/assets/AppLayout-BX_Buqtz.js +1 -0
  6. package/web/assets/AuditPage-Bc4NZud3.js +1 -0
  7. package/web/assets/CloudAccountPage-BqnCKZxn.js +1 -0
  8. package/web/assets/CloudAccountPage-kTdYEt2S.js +1 -0
  9. package/web/assets/CloudMessagingPage-CWcahAog.js +2 -0
  10. package/web/assets/DashboardPage-nhKxGmnu.js +1 -0
  11. package/web/assets/{EditorIcon-UXxtMTuH.js → EditorIcon-vSDu502Z.js} +2 -2
  12. package/web/assets/EnvironmentForm-8WEcxUYY.js +108 -0
  13. package/web/assets/EnvironmentFormPage-CpwzzSeB.js +1 -0
  14. package/web/assets/EnvironmentListPage-Dyq7x-l_.js +1 -0
  15. package/web/assets/EnvironmentSelector-BXe42bF9.js +1 -0
  16. package/web/assets/KanbanBoardPage-BvMPl2FW.css +1 -0
  17. package/web/assets/KanbanBoardPage-DHAWtkkJ.js +4 -0
  18. package/web/assets/KanbanListPage-CjQfqoXf.js +1 -0
  19. package/web/assets/LaunchProjectPage-Bfs_AIgu.js +1 -0
  20. package/web/assets/LaunchServicesPage-DYLGFHSm.js +1 -0
  21. package/web/assets/LogViewer-CEQDlzBl.js +3 -0
  22. package/web/assets/{ProcessControls-Co8bII_l.js → ProcessControls-RuqRu4r_.js} +1 -1
  23. package/web/assets/ProcessDetailPage-CnK8kLHx.js +1 -0
  24. package/web/assets/{ProcessMetrics-F2lzYBd0.js → ProcessMetrics-tNC5ggO0.js} +2 -2
  25. package/web/assets/ProjectDetailPage-Cd3-8PAI.js +1 -0
  26. package/web/assets/ProjectListPage-BGihYeDx.js +1 -0
  27. package/web/assets/RandomJobTestPage-BgjN2Lqt.js +2 -0
  28. package/web/assets/ScenarioEditorPage-nU_bK6Wm.js +14 -0
  29. package/web/assets/SendToChatDialog-DG6GidKi.js +1 -0
  30. package/web/assets/ServiceControlsBar-lvV0380I.js +1 -0
  31. package/web/assets/ServiceDetailPage-gG_F4CpK.js +2 -0
  32. package/web/assets/ServiceFormPage-5pLarqaj.js +1 -0
  33. package/web/assets/SettingsPage-DGtNwgNF.js +2062 -0
  34. package/web/assets/SetupPage-zLbZ7HFD.js +1 -0
  35. package/web/assets/UnlockPage-BNUgOO2j.js +1 -0
  36. package/web/assets/VariablesTable-Dh7ySbKc.js +1 -0
  37. package/web/assets/VersionBadge-Bcr43sQb.js +1 -0
  38. package/web/assets/WikiPage-DDx_jeaY.js +1 -0
  39. package/web/assets/WikiView-bePXeeW1.js +1 -0
  40. package/web/assets/add-scalar-classes-BZ33Hgh4.js +387 -0
  41. package/web/assets/auth-errors-BJV46AcQ.js +1 -0
  42. package/web/assets/{autocomplete-Cwxk2-mP.js → autocomplete-Mxh2ZegH.js} +4 -4
  43. package/web/assets/{basic-shape-diamond.svg-xCUU11Sa.js → basic-shape-diamond.svg-C_plmghk.js} +1 -1
  44. package/web/assets/{basic-shape-hexagon.svg-CNtsvsOX.js → basic-shape-hexagon.svg-A1qvevt_.js} +1 -1
  45. package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-CzyAwbzv.js → basic-shape-primary-circle-ellipse-round.svg-Df8UWBuG.js} +1 -1
  46. package/web/assets/{basic-shape-primary-square-rectangle.svg-CNcms16E.js → basic-shape-primary-square-rectangle.svg-hAiISQ_N.js} +1 -1
  47. package/web/assets/{basic-shape-shield.svg-BmnTDii5.js → basic-shape-shield.svg-j04XHSeq.js} +1 -1
  48. package/web/assets/{browser-DZk2qE9M.js → browser-B4MIWpa7.js} +1 -1
  49. package/web/assets/{browser-C330RdhZ.js → browser-_K3D-Q-7.js} +1 -1
  50. package/web/assets/card-DGaeJPst.js +32 -0
  51. package/web/assets/{checkbox-B8MtvTjU.js → checkbox-C5uNb3Rm.js} +3 -3
  52. package/web/assets/{chip-Ec7S7_Pf.js → chip-DDjgi9qj.js} +2 -2
  53. package/web/assets/client-D9DmTFwP.js +24 -0
  54. package/web/assets/cloud-chat.store-BPUP_Hxk.js +1 -0
  55. package/web/assets/cloud-session-B1oqwDJc.js +1 -0
  56. package/web/assets/column-sUzyGFk3.js +763 -0
  57. package/web/assets/{computer-device-desktop-monitor.svg-MH9I-pcG.js → computer-device-desktop-monitor.svg-BBuhFhn-.js} +1 -1
  58. package/web/assets/{computer-device-desktop.svg-DNWFQu6c.js → computer-device-desktop.svg-LL5HezrB.js} +1 -1
  59. package/web/assets/{computer-device-laptop.svg-CAkz5woZ.js → computer-device-laptop.svg-C4xmfwdM.js} +1 -1
  60. package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-VaK-HoWI.js → computer-device-mobile-phone-android-samsung-back.svg-B-uD42mr.js} +1 -1
  61. package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DkBRyknZ.js → computer-device-mobile-phone-android-samsung.svg-qPPbtnL9.js} +1 -1
  62. package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-S7vHYrcX.js → computer-device-mobile-phone-iphone-x-back.svg-B1Xa9B8p.js} +1 -1
  63. package/web/assets/{computer-device-mobile-phone-iphone-x.svg-y7yC61U4.js → computer-device-mobile-phone-iphone-x.svg-B9zWUZbf.js} +1 -1
  64. package/web/assets/{computer-device-mobile-tablet-touch.svg-BNyM4Ds9.js → computer-device-mobile-tablet-touch.svg-CriHRQuM.js} +1 -1
  65. package/web/assets/{computer-device-mobile-tablet.svg-BK4Wr9fz.js → computer-device-mobile-tablet.svg-BOKVzupN.js} +1 -1
  66. package/web/assets/{computer-device-network-ethernet-cat6.svg-B1AT96mg.js → computer-device-network-ethernet-cat6.svg-D0L6yx6b.js} +1 -1
  67. package/web/assets/{computer-device-network-lan-www.svg-D47np7s9.js → computer-device-network-lan-www.svg-n9m6VZVC.js} +1 -1
  68. package/web/assets/{computer-device-network-wifi-connection.svg-BvPE9vjC.js → computer-device-network-wifi-connection.svg-BqJzn-5W.js} +1 -1
  69. package/web/assets/{computer-device-network-wifi-router.svg-DwK8szPZ.js → computer-device-network-wifi-router.svg-DKcOeajJ.js} +1 -1
  70. package/web/assets/{cssMode-CUi5eqOs.js → cssMode-CLuhsa-I.js} +1 -1
  71. package/web/assets/{divider-DycIRq6M.js → divider-UPIM4dQl.js} +2 -2
  72. package/web/assets/{ecology-science-erlenmeyer-flask.svg-DTZn5yfL.js → ecology-science-erlenmeyer-flask.svg-DyL2i1-k.js} +1 -1
  73. package/web/assets/{fieldset-CjvmHyPo.js → fieldset-CIZfn4mb.js} +2 -2
  74. package/web/assets/{freemarker2-PR7qveeq.js → freemarker2-BQV9kA1Y.js} +1 -1
  75. package/web/assets/{handlebars-DgOrMWhS.js → handlebars-ib1US5Pw.js} +1 -1
  76. package/web/assets/{html-BffbNKjI.js → html-D-hYOiBO.js} +1 -1
  77. package/web/assets/{htmlMode-bpq0BIaV.js → htmlMode-WY_1KZ8Q.js} +1 -1
  78. package/web/assets/{image-flash-lightning.svg-Cop4yg7Q.js → image-flash-lightning.svg-wPJhlaEM.js} +1 -1
  79. package/web/assets/{image-picture-flower.svg-gb0tQA9K.js → image-picture-flower.svg-C15wjNsW.js} +1 -1
  80. package/web/assets/{index-CciUxCdN.js → index-CcDpHMIW.js} +299 -299
  81. package/web/assets/{index-CjOpVKok.css → index-D8bYR2Zc.css} +1 -1
  82. package/web/assets/{interface-alert-exclamation-diamond.svg-B9wwcHL7.js → interface-alert-exclamation-diamond.svg-C2MhzWE9.js} +1 -1
  83. package/web/assets/{interface-alert-exclamation-triangle-warning.svg-DdCJ9Ksp.js → interface-alert-exclamation-triangle-warning.svg-D8heEy48.js} +1 -1
  84. package/web/assets/{interface-alert-information-circle.svg-D81xNsxc.js → interface-alert-information-circle.svg-zrf3-9VP.js} +1 -1
  85. package/web/assets/{interface-award-crown.svg-DRa1s_kZ.js → interface-award-crown.svg-CT401HIW.js} +1 -1
  86. package/web/assets/{interface-bookmark.svg-DQ94XtQs.js → interface-bookmark-tag.svg-h5CZEHt8.js} +1 -1
  87. package/web/assets/{interface-bookmark-tag.svg-J-dbF3p-.js → interface-bookmark.svg-CqHV5l4k.js} +1 -1
  88. package/web/assets/{interface-calendar-date-one.svg-jbnWOg92.js → interface-calendar-date-one.svg-DUdLsM_8.js} +1 -1
  89. package/web/assets/{interface-content-book-open-pages.svg-CcKC7vGK.js → interface-content-book-open-pages.svg-DNR8SCd0.js} +1 -1
  90. package/web/assets/{interface-content-book-page.svg-DP2eseCY.js → interface-content-book-page.svg-Da9e-SX6.js} +1 -1
  91. package/web/assets/{interface-content-file.svg-Dst3LYQi.js → interface-content-file.svg-BZM7jMWF.js} +1 -1
  92. package/web/assets/{interface-content-folder.svg-BPwk7EMY.js → interface-content-folder.svg-BisjJGhi.js} +1 -1
  93. package/web/assets/interface-content-folder.svg-p32kmmD9.js +1 -0
  94. package/web/assets/{interface-copy-clipboard.svg-oLTA9HxP.js → interface-copy-clipboard.svg-AIcyJXPF.js} +1 -1
  95. package/web/assets/{interface-edit-attachment.svg-hHSyNC73.js → interface-edit-attachment.svg-XSvdzubS.js} +1 -1
  96. package/web/assets/{interface-edit-binocular.svg-NrOpa-YA.js → interface-edit-binocular.svg-CCB9rIw_.js} +1 -1
  97. package/web/assets/{interface-edit-magic-wand.svg-bNQhj47g.js → interface-edit-magic-wand.svg-Dd4afdpz.js} +1 -1
  98. package/web/assets/{interface-edit-tool-paint-roller.svg-BOELOd7I.js → interface-edit-tool-paint-roller.svg-DpO7rr7P.js} +1 -1
  99. package/web/assets/{interface-edit-tool-pencil.svg-BLUESUVP.js → interface-edit-tool-pencil.svg-DbKruCrP.js} +1 -1
  100. package/web/assets/{interface-favorite-award.svg-DqpswKCV.js → interface-favorite-award.svg-DNIpxtuy.js} +1 -1
  101. package/web/assets/{interface-favorite-flag.svg-B2UCnvBw.js → interface-favorite-flag.svg-CgGWpm8Y.js} +1 -1
  102. package/web/assets/{interface-favorite-heart.svg-mWLcqk95.js → interface-favorite-heart.svg-Bke1OXMv.js} +1 -1
  103. package/web/assets/{interface-favorite-star.svg-DengqRJ8.js → interface-favorite-star.svg-DgwsiTjP.js} +1 -1
  104. package/web/assets/{interface-favorite-stars-sparkles.svg-obs3qQ_C.js → interface-favorite-stars-sparkles.svg-dKGlP2sr.js} +1 -1
  105. package/web/assets/{interface-hierarchy-flowchart.svg-C-AthlOj.js → interface-hierarchy-flowchart.svg-Bved245R.js} +1 -1
  106. package/web/assets/{interface-home-house.svg-DaJ7a9SI.js → interface-home-house.svg-DJIEYhIa.js} +1 -1
  107. package/web/assets/{interface-hyperlink.svg-bWo7atPJ.js → interface-hyperlink.svg-BBh6NFX7.js} +1 -1
  108. package/web/assets/{interface-lighting-brightness.svg-BOb1q30D.js → interface-lighting-brightness.svg-NqCt5nK8.js} +1 -1
  109. package/web/assets/{interface-lock-closed.svg-DvJ-zQxQ.js → interface-lock-closed.svg-CclDxo01.js} +1 -1
  110. package/web/assets/{interface-lock-open-unlock.svg-BavcaTaM.js → interface-lock-open-unlock.svg-CYPJVug8.js} +1 -1
  111. package/web/assets/{interface-login-key.svg-D4NTGun4.js → interface-login-key.svg-DaW7pEY5.js} +1 -1
  112. package/web/assets/{interface-search.svg-DXuSt-Me.js → interface-search.svg-j89Vz_N5.js} +1 -1
  113. package/web/assets/{interface-setting-cog.svg-SQT77sYs.js → interface-setting-cog.svg-CY2WkccU.js} +1 -1
  114. package/web/assets/{interface-share-megaphone-bullhorn.svg-Cd6gQLc3.js → interface-share-megaphone-bullhorn.svg-C927tb6q.js} +1 -1
  115. package/web/assets/{interface-share-rocket.svg-BSZt1d2x.js → interface-share-rocket.svg-B3sZvIoQ.js} +1 -1
  116. package/web/assets/{interface-share-satellite.svg-CGZcSUG8.js → interface-share-satellite.svg-CQ8A4dXG.js} +1 -1
  117. package/web/assets/{interface-share-space-ship.svg-BpCou-ow.js → interface-share-space-ship.svg-BTGyj986.js} +1 -1
  118. package/web/assets/{interface-share.svg-BvGepvTw.js → interface-share.svg-BSQ8cEXV.js} +1 -1
  119. package/web/assets/{interface-signal-square.svg-B7TNQmwJ.js → interface-signal-square.svg-1h2-Znr2.js} +1 -1
  120. package/web/assets/{interface-time-clock-circle.svg-DH80TqI9.js → interface-time-clock-circle.svg-CgUcH4er.js} +1 -1
  121. package/web/assets/{interface-time-hour-glass.svg-3qr33GWl.js → interface-time-hour-glass.svg-Biz9ylcj.js} +1 -1
  122. package/web/assets/{interface-users-multiple.svg-DwNG_-F6.js → interface-users-multiple.svg-B2SNNyd6.js} +1 -1
  123. package/web/assets/{interface-weather-moon.svg-DEQWYqiQ.js → interface-weather-moon.svg-DFIwJsKU.js} +1 -1
  124. package/web/assets/{javascript-w_EWfyj8.js → javascript-w0UZtcmg.js} +1 -1
  125. package/web/assets/{jsonMode-D4r89tdd.js → jsonMode-CJUdXIyV.js} +1 -1
  126. package/web/assets/{liquid-YT-Gbpbn.js → liquid-CjedKIbd.js} +1 -1
  127. package/web/assets/{lspLanguageFeatures-DLts5YLT.js → lspLanguageFeatures-DGvsogF_.js} +3 -3
  128. package/web/assets/{mail-chat-bubble-square.svg-CgweF-ET.js → mail-chat-bubble-square.svg-D16l2agS.js} +1 -1
  129. package/web/assets/{mail-send-email-paper-airplane.svg-eZ7s6iSo.js → mail-send-email-paper-airplane.svg-Bz-my4zw.js} +1 -1
  130. package/web/assets/{mail-send-envelope.svg-PtumK2gN.js → mail-send-envelope.svg-Cgh2a1hO.js} +1 -1
  131. package/web/assets/{mdx-DYOkJQ2T.js → mdx-Y5OqFrRV.js} +1 -1
  132. package/web/assets/{message-C4ssuXMG.js → message-Bh-eAVAb.js} +2 -2
  133. package/web/assets/{minus-BrB-xJXx.js → minus-CxgjeEyu.js} +2 -2
  134. package/web/assets/modal-CIFHhhV7.js +1 -0
  135. package/web/assets/modal-ciXJUOol.js +5 -0
  136. package/web/assets/{money-cashier-receipt.svg-DOZM_LD5.js → money-cashier-receipt.svg-BP5bjawX.js} +1 -1
  137. package/web/assets/{money-currency-dollar-pay.svg-SbynpXQS.js → money-currency-dollar-pay.svg-vKtIhvs8.js} +1 -1
  138. package/web/assets/{money-graph-arrow-increase.svg-DazprYEx.js → money-graph-arrow-increase.svg-CaeoOB93.js} +1 -1
  139. package/web/assets/{money-graph-bar-chart-increase.svg-B4ZHvX63.js → money-graph-bar-chart-increase.svg-CjRjHwbF.js} +1 -1
  140. package/web/assets/multiselect-CsE4Xly1.js +251 -0
  141. package/web/assets/{nature-ecology-leaf.svg-jWCibRCX.js → nature-ecology-leaf.svg-umy4cUUw.js} +1 -1
  142. package/web/assets/{password-BV3bNVp-.js → password-Brra1Twl.js} +4 -4
  143. package/web/assets/{phone-telephone.svg-BD6_Stw0.js → phone-telephone.svg-DQ18gSw7.js} +1 -1
  144. package/web/assets/{plus-D9qYjWY-.js → plus-e_D9UcW9.js} +6 -6
  145. package/web/assets/process.store-BhNwQ2dn.js +1 -0
  146. package/web/assets/{programming-bug.svg-CatWhwdI.js → programming-bug.svg-BL4Hus_Q.js} +1 -1
  147. package/web/assets/{programming-cloud.svg-O8BRsvbT.js → programming-cloud.svg-DrTlrDBe.js} +1 -1
  148. package/web/assets/{programming-computer-database-server.svg-C1bKw4VS.js → programming-computer-database-server.svg-CnwbhD5W.js} +1 -1
  149. package/web/assets/{programming-computer-database.svg-B_Fknp_f.js → programming-computer-database.svg-GymDSTl9.js} +1 -1
  150. package/web/assets/{programming-module-four-layout.svg-C51SabdP.js → programming-module-four-layout.svg-DspyCTiu.js} +1 -1
  151. package/web/assets/{programming-module-three.svg-E0JA4zSn.js → programming-module-three.svg-BuYXTrWu.js} +1 -1
  152. package/web/assets/{programming-module.svg-C6iEdc9a.js → programming-module.svg-DIlRMVbW.js} +1 -1
  153. package/web/assets/{programming-script-code.svg-B5jm3asg.js → programming-script-code.svg-DPXJcL07.js} +1 -1
  154. package/web/assets/{python-D5cJC4LZ.js → python-3fAbpxqq.js} +1 -1
  155. package/web/assets/{radiobutton-CeRXnMmI.js → radiobutton-w7t3rGDJ.js} +2 -2
  156. package/web/assets/{razor-43yBMvFq.js → razor-GDM0jSNH.js} +1 -1
  157. package/web/assets/router-C6yOFC1g.js +1 -0
  158. package/web/assets/settings.store-D0eLKI4A.js +1 -0
  159. package/web/assets/{shopping-cart.svg-BN1at-RL.js → shopping-cart.svg-B1y-4w0M.js} +1 -1
  160. package/web/assets/{shopping-gift-present.svg-y0sDx7uX.js → shopping-gift-present.svg-DJ3mGWql.js} +1 -1
  161. package/web/assets/{shopping-shipping-box-parcel-package.svg-C0czgmky.js → shopping-shipping-box-parcel-package.svg-Bj3iHRT5.js} +1 -1
  162. package/web/assets/src-BotO3dQ7.js +1 -0
  163. package/web/assets/{src-1Ob0013X.js → src-wVYcxep_.js} +33 -33
  164. package/web/assets/{tabpanel-581X6amq.js → tabpanel-DOZdp_HS.js} +3 -3
  165. package/web/assets/{tag-new-circle.svg-Cll7ABEx.js → tag-new-circle.svg-Bb_ByVey.js} +1 -1
  166. package/web/assets/{travel-map-earth-globe.svg-C6J0sGc9.js → travel-map-earth-globe.svg-Mso-K6XY.js} +1 -1
  167. package/web/assets/trpc-BWtKBok1.js +1 -0
  168. package/web/assets/{tsMode-CXlw9duD.js → tsMode-BUHQk9ZI.js} +5 -5
  169. package/web/assets/{typescript-DjutVr6t.js → typescript-Quc5d9qP.js} +1 -1
  170. package/web/assets/useAiChatDrawer-CRJCTTTO.js +1 -0
  171. package/web/assets/useCloudOrg-CBr3kqWH.js +1 -0
  172. package/web/assets/useCloudOrg-Gz6ek71z.css +1 -0
  173. package/web/assets/{xml-BlQcYNl0.js → xml-CkYBw41O.js} +1 -1
  174. package/web/assets/{yaml-BMG2DkYL.js → yaml-CmSvkxzN.js} +1 -1
  175. package/web/index.html +2 -2
  176. package/web/assets/AgentScalarChatInterface.vue-BO93DDRD.js +0 -13
  177. package/web/assets/AgentTerminalPage-BwgEdwaW.js +0 -1
  178. package/web/assets/AiChatPage-DJcGI5TN.js +0 -1
  179. package/web/assets/AppLayout-BgmmG8o1.js +0 -1
  180. package/web/assets/AuditPage-B1w8iqPc.js +0 -1
  181. package/web/assets/CloudAccountPage-B9w3bbVh.js +0 -1
  182. package/web/assets/CloudAccountPage-SHpG51Bp.js +0 -1
  183. package/web/assets/CloudMessagingPage-B6ga19jo.js +0 -2
  184. package/web/assets/DashboardPage-8LUIYyIb.js +0 -1
  185. package/web/assets/EnvironmentForm-5UPW_537.js +0 -108
  186. package/web/assets/EnvironmentFormPage-CuJaxZmI.js +0 -1
  187. package/web/assets/EnvironmentListPage-beI0eWII.js +0 -1
  188. package/web/assets/EnvironmentSelector-CDZOdueF.js +0 -1
  189. package/web/assets/KanbanBoardPage-D4W5PBXq.js +0 -4
  190. package/web/assets/KanbanBoardPage-kpZiPs_o.css +0 -1
  191. package/web/assets/KanbanListPage-ChXyP3i3.js +0 -1
  192. package/web/assets/LaunchProjectPage-CGQrrI9i.js +0 -1
  193. package/web/assets/LaunchServicesPage-D0jGjtby.js +0 -1
  194. package/web/assets/LogViewer-bWKyHOnG.js +0 -3
  195. package/web/assets/ProcessDetailPage-di2Vl56Q.js +0 -1
  196. package/web/assets/ProjectDetailPage-BDBtgUlb.js +0 -1
  197. package/web/assets/ProjectListPage-DBcIclXM.js +0 -1
  198. package/web/assets/RandomJobTestPage-CUng06qc.js +0 -2
  199. package/web/assets/ScenarioEditorPage-bqK07Hbq.js +0 -14
  200. package/web/assets/SendToChatDialog-C9bsUhRU.js +0 -1
  201. package/web/assets/ServiceControlsBar-DOlr6ohl.js +0 -1
  202. package/web/assets/ServiceDetailPage-iKf8GWE6.js +0 -2
  203. package/web/assets/ServiceFormPage-CmpUv2nY.js +0 -1
  204. package/web/assets/SettingsPage-CTHzhCA7.js +0 -2062
  205. package/web/assets/SetupPage-DDZZVx2Y.js +0 -1
  206. package/web/assets/UnlockPage-BGQNlVGa.js +0 -1
  207. package/web/assets/VariablesTable-C8kdnHwh.js +0 -1
  208. package/web/assets/VersionBadge-BlaO8yhj.js +0 -1
  209. package/web/assets/WikiPage-NZ70Fg4t.js +0 -1
  210. package/web/assets/WikiView-B_H1-iVA.js +0 -1
  211. package/web/assets/add-scalar-classes-BlZh_Zwc.js +0 -387
  212. package/web/assets/auth-errors-BwSQmvNp.js +0 -1
  213. package/web/assets/card-BdN_XwXX.js +0 -32
  214. package/web/assets/client-De-e9wSa.js +0 -24
  215. package/web/assets/cloud-chat.store-DsWaquiH.js +0 -1
  216. package/web/assets/cloud-client-YZas5WmD.js +0 -1
  217. package/web/assets/column-DibFz9rt.js +0 -763
  218. package/web/assets/interface-content-folder.svg-nQTL5Ydl.js +0 -1
  219. package/web/assets/modal-C05pP-ye.js +0 -5
  220. package/web/assets/modal-CiyV1rS5.js +0 -1
  221. package/web/assets/multiselect-Ci17JVA9.js +0 -251
  222. package/web/assets/process.store-CmZhipX5.js +0 -1
  223. package/web/assets/router-DA5hXFac.js +0 -1
  224. package/web/assets/settings.store-BKmjMfLv.js +0 -1
  225. package/web/assets/src-Bf3aCzoB.js +0 -1
  226. package/web/assets/trpc-BLqVCiT-.js +0 -1
  227. package/web/assets/useAiChatDrawer-CSTuZi3T.js +0 -1
  228. package/web/assets/useCloudOrg-BpNVWhZZ.css +0 -1
  229. package/web/assets/useCloudOrg-Cv89QlXm.js +0 -1
@@ -1,4 +1,4 @@
1
- import{$t as e,Bi as t,En as n,Hr as r,Rr as i,Tn as a,Yr as o,cr as s,dn as c,gi as l,ii as u,j as d,qr as f,sa as p,zi as m,zr as h}from"./index-CciUxCdN.js";var g=n.extend({name:`skeleton`,style:`
1
+ import{Ei as e,Fn as t,In as n,Jr as r,Qr as i,V as a,Xi as o,Yi as s,Yr as c,_a as l,ai as u,ln as d,mi as f,ri as p,vr as m,xn as h}from"./index-CcDpHMIW.js";var g=n.extend({name:`skeleton`,style:`
2
2
  .p-skeleton {
3
3
  display: block;
4
4
  overflow: hidden;
@@ -48,4 +48,4 @@ import{$t as e,Bi as t,En as n,Hr as r,Rr as i,Tn as a,Yr as o,cr as s,dn as c,g
48
48
  transform: translateX(-100%);
49
49
  }
50
50
  }
51
- `,classes:{root:function(e){var t=e.props;return[`p-skeleton p-component`,{"p-skeleton-circle":t.shape===`circle`,"p-skeleton-animation-none":t.animation===`none`}]}},inlineStyles:{root:{position:`relative`}}}),_={name:`BaseSkeleton`,extends:c,props:{shape:{type:String,default:`rectangle`},size:{type:String,default:null},width:{type:String,default:`100%`},height:{type:String,default:`1rem`},borderRadius:{type:String,default:null},animation:{type:String,default:`wave`}},style:g,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function v(e){"@babel/helpers - typeof";return v=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},v(e)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=x(e,`string`);return v(t)==`symbol`?t:t+``}function x(e,t){if(v(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(v(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var S={name:`Skeleton`,extends:_,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return s(y({},this.shape,this.shape))}}},C=[`data-p`];function w(e,t,n,i,a,o){return l(),r(`div`,u({class:e.cx(`root`),style:[e.sx(`root`),o.containerStyle],"aria-hidden":`true`},e.ptmi(`root`),{"data-p":o.dataP}),null,16,C)}S.render=w;var T={class:`process-metrics`},E={class:`metric-card`},D={class:`metric-card__header`},O={class:`metric-card__label`},k={class:`metric-card__value`},A={class:`metric-card`},j={class:`metric-card__header`},M={class:`metric-card__label`},N={class:`metric-card__value`},P={class:`metric-card__sub`},F=e(o({__name:`ProcessMetrics`,props:{cpu:{},memory:{}},setup(e){let n=e,{t:o}=a();function s(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}let c=i(()=>Math.min(Math.round(n.cpu*100)/100,100)),u=i(()=>s(n.memory)),g=i(()=>n.cpu>=80?`#ef4444`:n.cpu>=50?`#f59e0b`:`#22c55e`);return(e,i)=>(l(),r(`div`,T,[h(`div`,E,[h(`div`,D,[i[0]||=h(`i`,{class:`pi pi-microchip`},null,-1),h(`span`,O,t(p(o)(`processMetrics.cpu`)),1)]),h(`div`,k,t(c.value)+`%`,1),f(p(d),{value:c.value,"show-value":!1,class:`metric-card__bar`,style:m({"--p-progressbar-value-background":g.value})},null,8,[`value`,`style`])]),h(`div`,A,[h(`div`,j,[i[1]||=h(`i`,{class:`pi pi-database`},null,-1),h(`span`,M,t(p(o)(`processMetrics.memory`)),1)]),h(`div`,N,t(u.value),1),h(`div`,P,t(p(o)(`processMetrics.bytes`,{count:n.memory.toLocaleString()})),1)])]))}}),[[`__scopeId`,`data-v-28e6b1ac`]]);export{S as n,F as t};
51
+ `,classes:{root:function(e){var t=e.props;return[`p-skeleton p-component`,{"p-skeleton-circle":t.shape===`circle`,"p-skeleton-animation-none":t.animation===`none`}]}},inlineStyles:{root:{position:`relative`}}}),_={name:`BaseSkeleton`,extends:h,props:{shape:{type:String,default:`rectangle`},size:{type:String,default:null},width:{type:String,default:`100%`},height:{type:String,default:`1rem`},borderRadius:{type:String,default:null},animation:{type:String,default:`wave`}},style:g,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function v(e){"@babel/helpers - typeof";return v=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},v(e)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=x(e,`string`);return v(t)==`symbol`?t:t+``}function x(e,t){if(v(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(v(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var S={name:`Skeleton`,extends:_,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return m(y({},this.shape,this.shape))}}},C=[`data-p`];function w(t,n,r,a,o,s){return e(),i(`div`,f({class:t.cx(`root`),style:[t.sx(`root`),s.containerStyle],"aria-hidden":`true`},t.ptmi(`root`),{"data-p":s.dataP}),null,16,C)}S.render=w;var T={class:`process-metrics`},E={class:`metric-card`},D={class:`metric-card__header`},O={class:`metric-card__label`},k={class:`metric-card__value`},A={class:`metric-card`},j={class:`metric-card__header`},M={class:`metric-card__label`},N={class:`metric-card__value`},P={class:`metric-card__sub`},F=d(u({__name:`ProcessMetrics`,props:{cpu:{},memory:{}},setup(n){let u=n,{t:d}=t();function f(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}let m=r(()=>Math.min(Math.round(u.cpu*100)/100,100)),h=r(()=>f(u.memory)),g=r(()=>u.cpu>=80?`#ef4444`:u.cpu>=50?`#f59e0b`:`#22c55e`);return(t,n)=>(e(),i(`div`,T,[c(`div`,E,[c(`div`,D,[n[0]||=c(`i`,{class:`pi pi-microchip`},null,-1),c(`span`,O,o(l(d)(`processMetrics.cpu`)),1)]),c(`div`,k,o(m.value)+`%`,1),p(l(a),{value:m.value,"show-value":!1,class:`metric-card__bar`,style:s({"--p-progressbar-value-background":g.value})},null,8,[`value`,`style`])]),c(`div`,A,[c(`div`,j,[n[1]||=c(`i`,{class:`pi pi-database`},null,-1),c(`span`,M,o(l(d)(`processMetrics.memory`)),1)]),c(`div`,N,o(h.value),1),c(`div`,P,o(l(d)(`processMetrics.bytes`,{count:u.memory.toLocaleString()})),1)])]))}}),[[`__scopeId`,`data-v-28e6b1ac`]]);export{S as n,F as t};
@@ -0,0 +1 @@
1
+ import{$ as e,$t as t,An as n,At as r,Cn as ee,Ei as i,En as te,Fn as ne,Gr as a,Hr as o,J as re,Jr as s,Q as ie,Qr as c,R as ae,Si as oe,Tn as se,Ui as l,Vt as u,Wi as d,Xi as f,Xr as p,Xt as m,Yr as h,Z as ce,Zr as g,_a as _,ai as le,an as v,c as ue,ca as y,dn as b,en as de,et as fe,in as x,ji as pe,jn as me,ln as S,ni as C,p as w,pn as T,ri as E,t as he,x as ge,zi as _e}from"./index-CcDpHMIW.js";import{t as ve}from"./cloud-session-B1oqwDJc.js";import{t as ye}from"./message-Bh-eAVAb.js";import{t as be}from"./auth-errors-BJV46AcQ.js";import{t as xe}from"./EnvironmentSelector-BXe42bF9.js";import{n as Se,t as D}from"./column-sUzyGFk3.js";import{t as Ce}from"./card-DGaeJPst.js";var we={class:`project-detail-page`},Te={key:0,class:`loading-container`},Ee={key:1,class:`error-container`},De={class:`page-header`},Oe={class:`page-title`},ke={class:`env-selector-bar`,"data-testid":`env-selector`},Ae={class:`info-grid`},je={class:`info-field`},Me={class:`info-label`},Ne={key:0,class:`inline-edit`},Pe={class:`info-field`},Fe={class:`info-label`},Ie={key:0,class:`inline-edit`},Le={class:`section`},Re={class:`section-header`},ze={class:`section-actions`},Be={key:1,class:`text-muted`},Ve={class:`table-actions`},He={key:1,class:`empty-section`},Ue={class:`form-group`},We={for:`projdetail-select-service`},Ge={key:0,class:`cloud-dialog`},Ke={key:1,class:`cloud-dialog`},qe={key:0,class:`cloud-empty`},Je={key:1,class:`field`},Ye={for:`cloud-org-select`},O=S(le({__name:`ProjectDetailPage`,props:{projectId:{}},setup(le){let S=le,{t:O}=ne(),k=te();se();let A=me(),j=n(),Xe=ce(),M=ie(),Ze=re(),N=ue(),Qe=r(),$e=fe(),P=y(null),F=y(!0),I=y(!1),{user:L}=ve(),R=ge(w,be()),z=y(!1),B=y(null),V=y(!1),H=y(null);function et(){H.value=null,B.value=P.value?.orgId??null,z.value=!0,L.value&&R.refresh()}async function tt(){if(!(!P.value||!B.value)){V.value=!0,H.value=null;try{let e=await u.project.export.query({id:P.value.id});if((await w.$fetch(`/project/push`,{method:`POST`,body:{organizationId:B.value,projectId:P.value.id,name:P.value.name,snapshot:e}})).error)throw Error(O(`projectDetail.cloud.pushFailed`));P.value=await u.project.update.mutate({id:P.value.id,orgId:B.value}),await u.cloudSync.link.mutate({orgId:B.value,cloudUrl:he()}),A.add({severity:`success`,summary:O(`projectDetail.cloud.storedToast`),life:3e3}),z.value=!1}catch(t){H.value=e(t)}finally{V.value=!1}}}let U=y(!1),W=y(!1),G=y(``),K=y(``),q=y({}),J=y(``),Y=y(!1),X=y(``),Z=y(!1),Q=s(()=>P.value?P.value.serviceIds.map(e=>M.services.find(t=>t.id===e)).filter(e=>!!e):[]),nt=s(()=>{let e=J.value.trim().toLowerCase();return e?Q.value.filter(t=>t.name.toLowerCase().includes(e)||t.runner?.toLowerCase().includes(e)||t.command?.toLowerCase().includes(e)):Q.value}),rt=s(()=>P.value?.activeEnvironmentId??null),it=s(()=>{if(!P.value)return[];let e=new Set(P.value.serviceIds);return M.services.filter(t=>!e.has(t.id))});function $(e){let t=N.getByService(e);return t.length>0?t[0]:null}function at(e){return e===`stopped`||e===`errored`}function ot(e){return e===`running`||e===`starting`}function st(e){return e===`running`}async function ct(t){q.value={...q.value,[t.id]:`start`};try{await N.start(t.agentId,t.id)}catch(t){A.add({severity:`error`,summary:O(`projectDetail.startFailed`),detail:e(t),life:5e3})}finally{let{[t.id]:e,...n}=q.value;q.value=n}}async function lt(t){q.value={...q.value,[t.id]:`stop`};try{await N.stop(t.agentId,t.id)}catch(t){A.add({severity:`error`,summary:O(`projectDetail.stopFailed`),detail:e(t),life:5e3})}finally{let{[t.id]:e,...n}=q.value;q.value=n}}async function ut(t){q.value={...q.value,[t.id]:`restart`};try{await N.restart(t.agentId,t.id)}catch(t){A.add({severity:`error`,summary:O(`projectDetail.restartFailed`),detail:e(t),life:5e3})}finally{let{[t.id]:e,...n}=q.value;q.value=n}}async function dt(){F.value=!0;try{P.value=await u.project.get.query({id:S.projectId}),Qe.setActiveProject(S.projectId),await $e.fetchAll(S.projectId)}catch(t){A.add({severity:`error`,summary:`Error`,detail:e(t)??O(`projectDetail.failedToLoad`),life:5e3}),P.value=null}finally{F.value=!1}}function ft(){G.value=P.value?.name??``,U.value=!0}function pt(){K.value=P.value?.description??``,W.value=!0}async function mt(){if(!(!P.value||!G.value.trim())){I.value=!0;try{P.value=await u.project.update.mutate({id:P.value.id,name:G.value.trim()}),U.value=!1,A.add({severity:`success`,summary:O(`projectDetail.nameUpdated`),life:2e3})}catch(t){A.add({severity:`error`,summary:`Error`,detail:e(t),life:5e3})}finally{I.value=!1}}}async function ht(){if(P.value){I.value=!0;try{P.value=await u.project.update.mutate({id:P.value.id,description:K.value.trim()}),W.value=!1,A.add({severity:`success`,summary:O(`projectDetail.descriptionUpdated`),life:2e3})}catch(t){A.add({severity:`error`,summary:`Error`,detail:e(t),life:5e3})}finally{I.value=!1}}}async function gt(e){P.value&&(Q.value.filter(e=>!!e.id).length>0?j.require({message:O(`projectDetail.switchEnvMsg`),header:O(`projectDetail.switchEnvTitle`),icon:`pi pi-exclamation-triangle`,rejectLabel:O(`projectDetail.switchEnvCancel`),acceptLabel:O(`projectDetail.switchEnvConfirm`),accept:()=>_t(e)}):await _t(e))}async function _t(t){if(P.value){I.value=!0;try{let e=await Xe.setActiveEnvironment(P.value.id,t);e&&(P.value=e),A.add({severity:`success`,summary:O(`projectDetail.envSwitched`),detail:O(`projectDetail.envSwitchedDesc`),life:3e3})}catch(t){console.error(`Failed to switch environment:`,t),A.add({severity:`error`,summary:`Error`,detail:e(t)??`Failed to switch environment`,life:5e3})}finally{I.value=!1}}}async function vt(){if(!(!P.value||!X.value)){Z.value=!0;try{P.value=await u.project.addService.mutate({projectId:P.value.id,serviceId:X.value}),Y.value=!1,X.value=``,A.add({severity:`success`,summary:O(`projectDetail.serviceAdded`),life:2e3})}catch(t){A.add({severity:`error`,summary:`Error`,detail:e(t),life:5e3})}finally{Z.value=!1}}}function yt(e,t){j.require({message:`Remove "${t}" from this project?`,header:O(`projectDetail.removeServiceTitle`),icon:`pi pi-exclamation-triangle`,rejectLabel:O(`projectDetail.removeServiceCancel`),acceptLabel:O(`projectDetail.removeServiceConfirm`),acceptClass:`p-button-danger`,accept:()=>bt(e)})}async function bt(t){if(P.value)try{P.value=await u.project.removeService.mutate({projectId:P.value.id,serviceId:t}),A.add({severity:`success`,summary:O(`projectDetail.serviceRemoved`),life:2e3})}catch(t){A.add({severity:`error`,summary:`Error`,detail:e(t),life:5e3})}}function xt(){P.value&&j.require({message:`Are you sure you want to delete "${P.value.name}"? This action cannot be undone.`,header:O(`projectDetail.deleteProjectTitle`),icon:`pi pi-trash`,rejectLabel:O(`projectDetail.deleteProjectCancel`),acceptLabel:O(`projectDetail.deleteProjectConfirm`),acceptClass:`p-button-danger`,accept:St})}async function St(){if(P.value)try{await u.project.delete.mutate({id:P.value.id}),A.add({severity:`success`,summary:O(`projectDetail.projectDeleted`),life:2e3}),await Xe.fetchAll(),k.push({name:`projects`})}catch(t){A.add({severity:`error`,summary:`Error`,detail:e(t),life:5e3})}}return oe(async()=>{await Promise.all([dt(),M.fetchAll(),Ze.fetchAll(),N.fetchAll()])}),_e(()=>S.projectId,()=>{dt()}),(e,n)=>{let r=pe(`tooltip`);return i(),c(`div`,we,[F.value?(i(),c(`div`,Te,[E(_(ae))])):P.value?(i(),c(a,{key:2},[h(`div`,De,[E(_(T),{icon:`pi pi-arrow-left`,severity:`secondary`,text:``,rounded:``,onClick:n[1]||=e=>_(k).push({name:`projects`})}),h(`h1`,Oe,f(_(O)(`projectDetail.title`)),1),P.value.orgId?(i(),p(_(x),{key:0,severity:`info`,icon:`pi pi-cloud`,value:_(O)(`projectDetail.cloud.stored`)},null,8,[`value`])):g(``,!0),E(_(T),{label:_(O)(`projectDetail.cloud.action`),icon:`pi pi-cloud-upload`,severity:`secondary`,outlined:``,onClick:et},null,8,[`label`]),E(_(T),{label:_(O)(`projectDetail.deleteProjectTitle`),icon:`pi pi-trash`,severity:`danger`,text:``,onClick:xt},null,8,[`label`])]),h(`div`,ke,[E(xe,{"model-value":rt.value,"onUpdate:modelValue":gt},null,8,[`model-value`]),E(_(T),{label:_(O)(`projectDetail.manageEnvironments`),icon:`pi pi-cog`,severity:`secondary`,outlined:``,onClick:n[2]||=e=>_(k).push({name:`environments`,params:{projectId:P.value.id}})},null,8,[`label`])]),E(_(Ce),{class:`info-card`},{content:l(()=>[h(`div`,Ae,[h(`div`,je,[h(`span`,Me,f(_(O)(`common.name`)),1),U.value?(i(),c(`div`,Ne,[E(_(v),{modelValue:G.value,"onUpdate:modelValue":n[3]||=e=>G.value=e,autofocus:``,class:`edit-input`,onKeyup:[o(mt,[`enter`]),n[4]||=o(e=>U.value=!1,[`escape`])]},null,8,[`modelValue`]),E(_(T),{icon:`pi pi-check`,text:``,rounded:``,size:`small`,loading:I.value,onClick:mt},null,8,[`loading`]),E(_(T),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[5]||=e=>U.value=!1})])):(i(),c(`div`,{key:1,class:`info-value clickable`,onClick:ft},[C(f(P.value.name)+` `,1),n[20]||=h(`i`,{class:`pi pi-pencil edit-icon`},null,-1)]))]),h(`div`,Pe,[h(`span`,Fe,f(_(O)(`common.description`)),1),W.value?(i(),c(`div`,Ie,[E(_(v),{modelValue:K.value,"onUpdate:modelValue":n[6]||=e=>K.value=e,autofocus:``,class:`edit-input`,onKeyup:[o(ht,[`enter`]),n[7]||=o(e=>W.value=!1,[`escape`])]},null,8,[`modelValue`]),E(_(T),{icon:`pi pi-check`,text:``,rounded:``,size:`small`,loading:I.value,onClick:ht},null,8,[`loading`]),E(_(T),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[8]||=e=>W.value=!1})])):(i(),c(`div`,{key:1,class:`info-value clickable`,onClick:pt},[C(f(P.value.description||_(O)(`projectDetail.noDescription`))+` `,1),n[21]||=h(`i`,{class:`pi pi-pencil edit-icon`},null,-1)]))])])]),_:1}),h(`div`,Le,[h(`div`,Re,[h(`h2`,null,f(_(O)(`projectDetail.services`)),1),h(`div`,ze,[E(_(de),null,{default:l(()=>[E(_(t),{class:`pi pi-search`}),E(_(v),{modelValue:J.value,"onUpdate:modelValue":n[9]||=e=>J.value=e,placeholder:_(O)(`projectDetail.searchServices`),size:`small`},null,8,[`modelValue`,`placeholder`])]),_:1}),E(_(T),{label:_(O)(`projectDetail.addExisting`),icon:`pi pi-plus`,severity:`secondary`,size:`small`,disabled:it.value.length===0,onClick:n[10]||=e=>Y.value=!0},null,8,[`label`,`disabled`]),E(_(T),{label:_(O)(`projectDetail.createNew`),icon:`pi pi-plus-circle`,size:`small`,onClick:n[11]||=e=>_(k).push({name:`service-create`,query:{projectId:P.value.id}})},null,8,[`label`])])]),Q.value.length>0?(i(),p(_(Se),{key:0,value:nt.value,stripedRows:``,size:`small`,paginator:!0,rows:10,"rows-per-page-options":[5,10,20],class:`services-table`},{default:l(()=>[E(_(D),{field:`name`,header:_(O)(`projectDetail.nameColumn`)},{body:l(({data:e})=>[E(_(ee),{to:{name:`service-detail`,params:{id:e.id}},class:`service-name`,"data-testid":`service-row-link`},{default:l(()=>[C(f(e.name),1)]),_:2},1032,[`to`])]),_:1},8,[`header`]),E(_(D),{field:`runner`,header:_(O)(`projectDetail.runnerColumn`),style:{width:`80px`}},{body:l(({data:e})=>[E(_(x),{value:e.runner,severity:e.runner===`docker`?`warn`:`info`},null,8,[`value`,`severity`])]),_:1},8,[`header`]),E(_(D),{field:`ports`,header:_(O)(`projectDetail.portsColumn`),style:{width:`100px`}},{body:l(({data:e})=>[C(f(e.ports?.length?e.ports.join(`, `):`-`),1)]),_:1},8,[`header`]),E(_(D),{header:_(O)(`common.status`),style:{width:`70px`}},{body:l(({data:e})=>[$(e.id)?(i(),p(_(x),{key:0,value:$(e.id).state,severity:$(e.id).state===`running`?`success`:$(e.id).state===`errored`?`danger`:`secondary`},null,8,[`value`,`severity`])):(i(),c(`span`,Be,`-`))]),_:1},8,[`header`]),E(_(D),{header:_(O)(`projectDetail.actionsColumn`),style:{width:`130px`}},{body:l(({data:e})=>[h(`div`,Ve,[!$(e.id)||at($(e.id).state)?d((i(),p(_(T),{key:0,icon:`pi pi-play`,severity:`success`,text:``,rounded:``,size:`small`,disabled:!!q.value[e.id],loading:q.value[e.id]===`start`,onClick:t=>ct(e)},null,8,[`disabled`,`loading`,`onClick`])),[[r,_(O)(`actions.start`),void 0,{top:!0}]]):g(``,!0),$(e.id)&&ot($(e.id).state)?(i(),c(a,{key:1},[d(E(_(T),{icon:`pi pi-stop`,severity:`danger`,text:``,rounded:``,size:`small`,disabled:!!q.value[e.id],loading:q.value[e.id]===`stop`,onClick:t=>lt(e)},null,8,[`disabled`,`loading`,`onClick`]),[[r,_(O)(`actions.stop`),void 0,{top:!0}]]),st($(e.id).state)?d((i(),p(_(T),{key:0,icon:`pi pi-refresh`,severity:`warn`,text:``,rounded:``,size:`small`,disabled:!!q.value[e.id],loading:q.value[e.id]===`restart`,onClick:t=>ut(e)},null,8,[`disabled`,`loading`,`onClick`])),[[r,_(O)(`actions.restart`),void 0,{top:!0}]]):g(``,!0)],64)):g(``,!0),d(E(_(T),{icon:`pi pi-minus-circle`,severity:`secondary`,text:``,rounded:``,size:`small`,onClick:t=>yt(e.id,e.name)},null,8,[`onClick`]),[[r,_(O)(`projectDetail.removeFromProject`),void 0,{top:!0}]])])]),_:1},8,[`header`])]),_:1},8,[`value`])):(i(),c(`div`,He,[h(`p`,null,f(_(O)(`projectDetail.noServices`)),1)]))]),E(_(b),{visible:Y.value,"onUpdate:visible":n[14]||=e=>Y.value=e,header:_(O)(`projectDetail.addExistingService`),style:{width:`450px`},modal:``,closable:!Z.value},{footer:l(()=>[E(_(T),{label:_(O)(`actions.cancel`),severity:`secondary`,text:``,disabled:Z.value,onClick:n[13]||=e=>Y.value=!1},null,8,[`label`,`disabled`]),E(_(T),{label:_(O)(`actions.add`),icon:`pi pi-plus`,loading:Z.value,disabled:!X.value,onClick:vt},null,8,[`label`,`loading`,`disabled`])]),default:l(()=>[h(`div`,Ue,[h(`label`,We,f(_(O)(`projectDetail.selectService`)),1),E(_(m),{inputId:`projdetail-select-service`,modelValue:X.value,"onUpdate:modelValue":n[12]||=e=>X.value=e,options:it.value,optionLabel:`name`,optionValue:`id`,placeholder:_(O)(`projectDetail.chooseServicePlaceholder`),class:`w-full`},null,8,[`modelValue`,`options`,`placeholder`])])]),_:1},8,[`visible`,`header`,`closable`]),E(_(b),{visible:z.value,"onUpdate:visible":n[18]||=e=>z.value=e,header:_(O)(`projectDetail.cloud.title`),modal:``,style:{width:`30rem`}},{footer:l(()=>[E(_(T),{label:_(O)(`actions.cancel`),severity:`secondary`,text:``,disabled:V.value,onClick:n[17]||=e=>z.value=!1},null,8,[`label`,`disabled`]),_(L)?(i(),p(_(T),{key:0,label:_(O)(`projectDetail.cloud.store`),icon:`pi pi-cloud-upload`,loading:V.value,disabled:!B.value,onClick:tt},null,8,[`label`,`loading`,`disabled`])):g(``,!0)]),default:l(()=>[_(L)?(i(),c(`div`,Ke,[h(`p`,null,f(_(O)(`projectDetail.cloud.description`)),1),_(R).organizations.value.length?(i(),c(`div`,Je,[h(`label`,Ye,f(_(O)(`projectDetail.cloud.orgLabel`)),1),E(_(m),{inputId:`cloud-org-select`,modelValue:B.value,"onUpdate:modelValue":n[16]||=e=>B.value=e,options:_(R).organizations.value,optionLabel:`name`,optionValue:`id`,placeholder:_(O)(`projectDetail.cloud.orgPlaceholder`),class:`w-full`},null,8,[`modelValue`,`options`,`placeholder`])])):(i(),c(`div`,qe,f(_(O)(`projectDetail.cloud.noOrgs`)),1)),H.value?(i(),p(_(ye),{key:2,severity:`error`,closable:!1},{default:l(()=>[C(f(H.value),1)]),_:1})):g(``,!0)])):(i(),c(`div`,Ge,[h(`p`,null,f(_(O)(`projectDetail.cloud.notConnected`)),1),E(_(T),{label:_(O)(`projectDetail.cloud.goToAccount`),icon:`pi pi-user`,onClick:n[15]||=e=>_(k).push({name:`cloud-account`})},null,8,[`label`])]))]),_:1},8,[`visible`,`header`])],64)):(i(),c(`div`,Ee,[n[19]||=h(`i`,{class:`pi pi-exclamation-triangle`,style:{"font-size":`2rem`}},null,-1),h(`p`,null,f(_(O)(`projectDetail.notFound`)),1),E(_(T),{label:_(O)(`projectDetail.backToProjects`),icon:`pi pi-arrow-left`,onClick:n[0]||=e=>_(k).push({name:`projects`})},null,8,[`label`])]))])}}}),[[`__scopeId`,`data-v-5cd746e7`]]);export{O as default};
@@ -0,0 +1 @@
1
+ import{$ as e,At as t,Ei as n,En as r,Fn as i,Gr as a,Hr as o,Jr as ee,Oi as s,Qr as c,R as l,Si as u,Ui as d,Vt as f,Xi as p,Xr as m,Yr as h,Z as g,Zr as _,_a as v,ai as y,an as b,ca as x,dn as S,jn as C,ln as w,mn as T,ni as E,pn as D,ri as O}from"./index-CcDpHMIW.js";import{t as k}from"./card-DGaeJPst.js";var A={class:`card-title-row`},j={class:`card-title`},M={class:`card-description`},N={class:`card-meta`},P={class:`meta-item`},F=w(y({__name:`ProjectCard`,props:{project:{}},emits:[`click`],setup(e,{emit:t}){let r=t;function i(e,t){return!e||e.length<=t?e||``:e.slice(0,t)+`...`}return(t,a)=>(n(),m(v(k),{class:`project-card`,onClick:a[0]||=e=>r(`click`)},{title:d(()=>[h(`div`,A,[h(`span`,j,p(e.project.name),1),O(v(T),{value:e.project.serviceIds.length,severity:`info`},null,8,[`value`])])]),content:d(()=>[h(`p`,M,p(i(e.project.description??``,120)),1),h(`div`,N,[h(`span`,P,[a[1]||=h(`i`,{class:`pi pi-box`},null,-1),E(` `+p(e.project.serviceIds.length)+` service`+p(e.project.serviceIds.length===1?``:`s`),1)])])]),_:1}))}}),[[`__scopeId`,`data-v-8a0b8178`]]),I={class:`project-list-page`},L={class:`page-header`},R={class:`search-bar`},z={class:`p-input-icon-left search-input-wrapper`},B={key:0,class:`loading-container`},V={key:1,class:`error-container`},H={key:2,class:`empty-container`},U={key:0},W={key:1},G={key:3,class:`project-grid`},K={class:`form-group`},q={for:`project-name`},J={class:`form-group`},Y={for:`project-desc`},X=w(y({__name:`ProjectListPage`,setup(y){let{t:w}=i(),T=r(),E=C(),k=g(),A=t(),j=x(``),M=x(!1),N=x(!1),P=x({name:``,description:``}),X=ee(()=>{let e=j.value.toLowerCase().trim();return e?k.projects.filter(t=>t.name.toLowerCase().includes(e)||(t.description??``).toLowerCase().includes(e)):k.projects});u(()=>{k.fetchAll()});function Z(e){A.setActiveProject(e.id),T.push({name:`project-detail`,params:{projectId:e.id}})}function Q(){P.value={name:``,description:``},M.value=!0}async function $(){if(P.value.name.trim()){N.value=!0;try{let e=await f.project.create.mutate({name:P.value.name.trim(),description:P.value.description.trim()||void 0});E.add({severity:`success`,summary:w(`projectList.created`),detail:w(`projectList.createdDetail`,{name:e.name}),life:3e3}),M.value=!1,await k.fetchAll(),T.push({name:`project-detail`,params:{projectId:e.id}})}catch(t){E.add({severity:`error`,summary:w(`projectList.error`),detail:e(t)??w(`projectList.failedToCreate`),life:5e3})}finally{N.value=!1}}}return(e,t)=>(n(),c(`div`,I,[h(`div`,L,[h(`h1`,null,p(v(w)(`projectList.title`)),1),O(v(D),{label:v(w)(`projectList.newProject`),icon:`pi pi-plus`,onClick:Q},null,8,[`label`])]),h(`div`,R,[h(`span`,z,[t[6]||=h(`i`,{class:`pi pi-search`},null,-1),O(v(b),{modelValue:j.value,"onUpdate:modelValue":t[0]||=e=>j.value=e,placeholder:v(w)(`projectList.searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])])]),v(k).loading?(n(),c(`div`,B,[O(v(l))])):v(k).error?(n(),c(`div`,V,[t[7]||=h(`i`,{class:`pi pi-exclamation-triangle`},null,-1),h(`p`,null,p(v(k).error),1),O(v(D),{label:v(w)(`projectList.retry`),icon:`pi pi-refresh`,severity:`secondary`,onClick:t[1]||=e=>v(k).fetchAll()},null,8,[`label`])])):X.value.length===0?(n(),c(`div`,H,[t[8]||=h(`i`,{class:`pi pi-folder-open empty-icon`},null,-1),j.value?(n(),c(`p`,U,p(v(w)(`projectList.noMatchProjects`,{query:j.value})),1)):(n(),c(`p`,W,p(v(w)(`projectList.noProjects`)),1)),j.value?_(``,!0):(n(),m(v(D),{key:2,label:v(w)(`projectList.createProject`),icon:`pi pi-plus`,onClick:Q},null,8,[`label`]))])):(n(),c(`div`,G,[(n(!0),c(a,null,s(X.value,e=>(n(),m(F,{key:e.id,project:e,"data-testid":`project-row-link`,onClick:t=>Z(e)},null,8,[`project`,`onClick`]))),128))])),O(v(S),{visible:M.value,"onUpdate:visible":t[5]||=e=>M.value=e,header:v(w)(`projectList.newProject`),style:{width:`480px`},modal:``,closable:!N.value},{footer:d(()=>[O(v(D),{label:v(w)(`projectList.cancel`),severity:`secondary`,text:``,disabled:N.value,onClick:t[4]||=e=>M.value=!1},null,8,[`label`,`disabled`]),O(v(D),{label:v(w)(`projectList.create`),icon:`pi pi-check`,loading:N.value,disabled:!P.value.name.trim(),onClick:$},null,8,[`label`,`loading`,`disabled`])]),default:d(()=>[h(`div`,K,[h(`label`,q,p(v(w)(`projectList.nameLabel`)),1),O(v(b),{id:`project-name`,modelValue:P.value.name,"onUpdate:modelValue":t[2]||=e=>P.value.name=e,placeholder:v(w)(`projectList.namePlaceholder`),class:`w-full`,autofocus:``,onKeyup:o($,[`enter`])},null,8,[`modelValue`,`placeholder`])]),h(`div`,J,[h(`label`,Y,p(v(w)(`projectList.descriptionLabel`)),1),O(v(b),{id:`project-desc`,modelValue:P.value.description,"onUpdate:modelValue":t[3]||=e=>P.value.description=e,placeholder:v(w)(`projectList.descriptionPlaceholder`),class:`w-full`,onKeyup:o($,[`enter`])},null,8,[`modelValue`,`placeholder`])])]),_:1},8,[`visible`,`header`,`closable`])]))}}),[[`__scopeId`,`data-v-0e09c7cb`]]);export{X as default};
@@ -0,0 +1,2 @@
1
+ import{Ei as e,Qr as t,Si as n,Vt as r,Xi as i,Yr as a,_a as o,ai as s,ca as c,hi as l,ln as u,ni as d,pn as f,ri as p,wi as m}from"./index-CcDpHMIW.js";var h={class:`random-job-test`},g={class:`random-job-test__actions`},_={class:`random-job-test__meta`},v={key:0,class:`random-job-test__empty`},y={key:1},b=`runeya:random-job-test:job-id`,x=`runeya:random-job-test:logs`,S=u(s({__name:`RandomJobTestPage`,setup(s){let u=c(null),S=c(!1),C=c([]),w=c(null),T=null;function E(){u.value?sessionStorage.setItem(b,u.value):sessionStorage.removeItem(b),sessionStorage.setItem(x,JSON.stringify(C.value))}function D(e){C.value=[...C.value,e],C.value.length>2e3&&(C.value=C.value.slice(C.value.length-2e3)),E(),l(()=>{w.value&&(w.value.scrollTop=w.value.scrollHeight)})}function O(){T?.unsubscribe(),T=null}function k(e){O(),T=r.debug.streamRandomJob.subscribe({jobId:e},{onData(e){e.type===`tick`?D(`[${new Date(e.at).toLocaleTimeString()}] #${e.index} -> ${e.value.toFixed(8)}`):(D(`[${new Date(e.at).toLocaleTimeString()}] done: ${e.reason}`),S.value=!1,u.value=null,E())},onError(e){D(`[sub] error: ${e.message}`),S.value=!1,E()},onComplete(){D(`[sub] complete`),S.value=!1,E()}}),D(`[sub] started for job ${e}`)}async function A(){if(S.value)return;C.value=[],E();let e=await r.debug.startRandomJob.mutate({intervalMs:300,maxTicks:1e3});u.value=e.jobId,S.value=!0,E(),D(`[job] started id=${e.jobId}, intervalMs=${e.intervalMs}, maxTicks=${e.maxTicks}`),k(e.jobId)}async function j(){if(u.value)try{await r.debug.stopRandomJob.mutate({jobId:u.value}),D(`[job] stop requested id=${u.value}`),S.value=!1,u.value=null,E()}catch(e){D(`[job] stop error: ${e.message}`)}}function M(){C.value=[],E()}return n(async()=>{let e=sessionStorage.getItem(x);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&(C.value=t)}catch{}let t=sessionStorage.getItem(b);if(t){u.value=t;try{let e=await r.debug.randomJobStatus.query({jobId:t});S.value=e.running,E(),e.running?(D(`[job] reconnected id=${t}, tick=${e.tick}`),k(t)):(D(`[job] previous job ended (id=${t})`),u.value=null,E())}catch{S.value=!1,u.value=null,D(`[job] previous job not found`),E()}}}),m(()=>{O()}),(n,r)=>(e(),t(`div`,h,[r[3]||=a(`header`,{class:`random-job-test__header`},[a(`h1`,null,`Random Job Test`),a(`p`,null,`Click start to launch a server job and stream Math.random() values in real time.`)],-1),a(`div`,g,[p(o(f),{label:`Start job`,icon:`pi pi-play`,disabled:S.value,onClick:A},null,8,[`disabled`]),p(o(f),{label:`Stop`,icon:`pi pi-stop`,severity:`danger`,disabled:!S.value,onClick:j},null,8,[`disabled`]),p(o(f),{label:`Clear logs`,icon:`pi pi-trash`,severity:`secondary`,outlined:``,onClick:M})]),a(`div`,_,[a(`span`,null,[r[0]||=a(`strong`,null,`Job ID:`,-1),d(` `+i(u.value??`none`),1)]),a(`span`,null,[r[1]||=a(`strong`,null,`Status:`,-1),d(` `+i(S.value?`running`:`idle`),1)]),a(`span`,null,[r[2]||=a(`strong`,null,`Lines:`,-1),d(` `+i(C.value.length),1)])]),a(`section`,{ref_key:`logsEl`,ref:w,class:`random-job-test__logs`,"aria-live":`polite`},[C.value.length===0?(e(),t(`div`,v,`No logs yet.`)):(e(),t(`pre`,y,i(C.value.join(`
2
+ `)),1))],512)]))}}),[[`__scopeId`,`data-v-96a75827`]]);export{S as default};
@@ -0,0 +1,14 @@
1
+ import{A as e,Bi as t,D as n,Di as r,Dt as i,E as a,Ei as o,En as s,Fn as c,Gr as l,Hr as u,Ji as d,Jr as f,Li as p,M as m,Mi as h,Mr as g,N as _,O as v,Oi as y,P as b,Pi as x,Qr as S,Si as C,T as ee,Tn as w,Ui as T,Ur as te,Vt as ne,Wi as E,X as re,Xi as D,Xr as O,Xt as ie,Y as ae,Yi as oe,Yr as k,Yt as se,Zr as A,_a as j,ai as ce,an as le,at as ue,ca as M,dn as N,hi as de,it as P,j as fe,ji as pe,jn as me,jr as he,k as ge,ki as F,ln as _e,mi as ve,ni as ye,pa as be,pn as I,qi as xe,ri as L,rn as Se,si as Ce,ui as we,ut as Te,vt as Ee,w as De,wi as Oe,xt as ke,zi as Ae}from"./index-CcDpHMIW.js";import{t as je}from"./checkbox-C5uNb3Rm.js";import{t as Me}from"./multiselect-CsE4Xly1.js";import{t as Ne}from"./uuid-B3B8HIK9.js";var Pe={name:`ControlButton`,compatConfig:{MODE:3}},Fe=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},R={type:`button`,class:`vue-flow__controls-button`};function z(e,t,n,r,i,a){return o(),S(`button`,R,[F(e.$slots,`default`)])}var Ie=Fe(Pe,[[`render`,z]]),Le={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},Re=[k(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`},null,-1)];function ze(e,t){return o(),S(`svg`,Le,Re)}var B={render:ze},Be={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`},Ve=[k(`path`,{d:`M0 0h32v4.2H0z`},null,-1)];function He(e,t){return o(),S(`svg`,Be,Ve)}var Ue={render:He},We={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`},Ge=[k(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`},null,-1)];function Ke(e,t){return o(),S(`svg`,We,Ge)}var qe={render:Ke},Je={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},Ye=[k(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`},null,-1)];function Xe(e,t){return o(),S(`svg`,Je,Ye)}var Ze={render:Xe},V={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},H=[k(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z`},null,-1)];function U(e,t){return o(),S(`svg`,V,H)}var W={render:U},Qe=ce({name:`Controls`,compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>a.BottomLeft}},emits:[`zoomIn`,`zoomOut`,`fitView`,`interactionChange`],setup(e,{emit:t}){let{nodesDraggable:r,nodesConnectable:i,elementsSelectable:a,setInteractive:s,zoomIn:c,zoomOut:u,fitView:d,viewport:f,minZoom:p,maxZoom:m}=_(),g=be(()=>r.value||i.value||a.value),v=be(()=>f.value.zoom<=p.value),y=be(()=>f.value.zoom>=m.value);function b(){c(),t(`zoomIn`)}function x(){u(),t(`zoomOut`)}function C(){d(e.fitViewParams),t(`fitView`)}function ee(){s(!g.value),t(`interactionChange`,!g.value)}return(e,t)=>(o(),O(j(n),{class:`vue-flow__controls`,position:e.position},{default:T(()=>[F(e.$slots,`top`),e.showZoom?(o(),S(l,{key:0},[F(e.$slots,`control-zoom-in`,{},()=>[L(Ie,{class:`vue-flow__controls-zoomin`,disabled:y.value,onClick:b},{default:T(()=>[F(e.$slots,`icon-zoom-in`,{},()=>[(o(),O(h(j(B))))])]),_:3},8,[`disabled`])]),F(e.$slots,`control-zoom-out`,{},()=>[L(Ie,{class:`vue-flow__controls-zoomout`,disabled:v.value,onClick:x},{default:T(()=>[F(e.$slots,`icon-zoom-out`,{},()=>[(o(),O(h(j(Ue))))])]),_:3},8,[`disabled`])])],64)):A(``,!0),e.showFitView?F(e.$slots,`control-fit-view`,{key:1},()=>[L(Ie,{class:`vue-flow__controls-fitview`,onClick:C},{default:T(()=>[F(e.$slots,`icon-fit-view`,{},()=>[(o(),O(h(j(qe))))])]),_:3})]):A(``,!0),e.showInteractive?F(e.$slots,`control-interactive`,{key:2},()=>[e.showInteractive?(o(),O(Ie,{key:0,class:`vue-flow__controls-interactive`,onClick:ee},{default:T(()=>[g.value?F(e.$slots,`icon-unlock`,{key:0},()=>[(o(),O(h(j(W))))]):A(``,!0),g.value?A(``,!0):F(e.$slots,`icon-lock`,{key:1},()=>[(o(),O(h(j(Ze))))])]),_:3})):A(``,!0)]):A(``,!0),F(e.$slots,`default`)]),_:3},8,[`position`]))}}),$e={value:()=>{}};function G(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new et(n)}function et(e){this._=e}function tt(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}et.prototype=G.prototype={constructor:et,on:function(e,t){var n=this._,r=tt(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=nt(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=rt(n[i],e.name,t);else if(t==null)for(i in n)n[i]=rt(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new et(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function nt(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function rt(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=$e,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var it=`http://www.w3.org/1999/xhtml`,at={svg:`http://www.w3.org/2000/svg`,xhtml:it,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ot(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),at.hasOwnProperty(t)?{space:at[t],local:e}:e}function st(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===it&&t.documentElement.namespaceURI===it?t.createElement(e):t.createElementNS(n,e)}}function ct(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function lt(e){var t=ot(e);return(t.local?ct:st)(t)}function ut(){}function dt(e){return e==null?ut:function(){return this.querySelector(e)}}function ft(e){typeof e!=`function`&&(e=dt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new Y(r,this._parents)}function pt(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function mt(){return[]}function ht(e){return e==null?mt:function(){return this.querySelectorAll(e)}}function gt(e){return function(){return pt(e.apply(this,arguments))}}function _t(e){e=typeof e==`function`?gt(e):ht(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new Y(r,i)}function vt(e){return function(){return this.matches(e)}}function yt(e){return function(t){return t.matches(e)}}var bt=Array.prototype.find;function xt(e){return function(){return bt.call(this.children,e)}}function K(){return this.firstElementChild}function St(e){return this.select(e==null?K:xt(typeof e==`function`?e:yt(e)))}var Ct=Array.prototype.filter;function q(){return Array.from(this.children)}function wt(e){return function(){return Ct.call(this.children,e)}}function Tt(e){return this.selectAll(e==null?q:wt(typeof e==`function`?e:yt(e)))}function Et(e){typeof e!=`function`&&(e=vt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Y(r,this._parents)}function Dt(e){return Array(e.length)}function Ot(){return new Y(this._enter||this._groups.map(Dt),this._parents)}function kt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}kt.prototype={constructor:kt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function At(e){return function(){return e}}function jt(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new kt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Mt(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new kt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Nt(e){return e.__data__}function Pt(e,t){if(!arguments.length)return Array.from(this,Nt);var n=t?Mt:jt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=At(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Ft(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new Y(o,r),o._enter=s,o._exit=c,o}function Ft(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function It(){return new Y(this._exit||this._groups.map(Dt),this._parents)}function Lt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Rt(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new Y(s,this._parents)}function J(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function zt(e){e||=Bt;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new Y(i,this._parents).order()}function Bt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Vt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ht(){return Array.from(this)}function Ut(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Wt(){let e=0;for(let t of this)++e;return e}function Gt(){return!this.node()}function Kt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function qt(e){return function(){this.removeAttribute(e)}}function Jt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yt(e,t){return function(){this.setAttribute(e,t)}}function Xt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Qt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function $t(e,t){var n=ot(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Jt:qt:typeof t==`function`?n.local?Qt:Zt:n.local?Xt:Yt)(n,t))}function en(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tn(e){return function(){this.style.removeProperty(e)}}function nn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function rn(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function an(e,t,n){return arguments.length>1?this.each((t==null?tn:typeof t==`function`?rn:nn)(e,t,n??``)):on(this.node(),e)}function on(e,t){return e.style.getPropertyValue(t)||en(e).getComputedStyle(e,null).getPropertyValue(t)}function sn(e){return function(){delete this[e]}}function cn(e,t){return function(){this[e]=t}}function ln(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function un(e,t){return arguments.length>1?this.each((t==null?sn:typeof t==`function`?ln:cn)(e,t)):this.node()[e]}function dn(e){return e.trim().split(/^|\s+/)}function fn(e){return e.classList||new pn(e)}function pn(e){this._node=e,this._names=dn(e.getAttribute(`class`)||``)}pn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function mn(e,t){for(var n=fn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function hn(e,t){for(var n=fn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function gn(e){return function(){mn(this,e)}}function _n(e){return function(){hn(this,e)}}function vn(e,t){return function(){(t.apply(this,arguments)?mn:hn)(this,e)}}function yn(e,t){var n=dn(e+``);if(arguments.length<2){for(var r=fn(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?vn:t?gn:_n)(n,t))}function bn(){this.textContent=``}function xn(e){return function(){this.textContent=e}}function Sn(e){return function(){this.textContent=e.apply(this,arguments)??``}}function Cn(e){return arguments.length?this.each(e==null?bn:(typeof e==`function`?Sn:xn)(e)):this.node().textContent}function wn(){this.innerHTML=``}function Tn(e){return function(){this.innerHTML=e}}function En(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function Dn(e){return arguments.length?this.each(e==null?wn:(typeof e==`function`?En:Tn)(e)):this.node().innerHTML}function On(){this.nextSibling&&this.parentNode.appendChild(this)}function kn(){return this.each(On)}function An(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jn(){return this.each(An)}function Mn(e){var t=typeof e==`function`?e:lt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Nn(){return null}function Pn(e,t){var n=typeof e==`function`?e:lt(e),r=t==null?Nn:typeof t==`function`?t:dt(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Fn(){var e=this.parentNode;e&&e.removeChild(this)}function In(){return this.each(Fn)}function Ln(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Rn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zn(e){return this.select(e?Rn:Ln)}function Bn(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Vn(e){return function(t){e.call(this,t,this.__data__)}}function Hn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Un(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Wn(e,t,n){return function(){var r=this.__on,i,a=Vn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Gn(e,t,n){var r=Hn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Wn:Un,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Kn(e,t,n){var r=en(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function qn(e,t){return function(){return Kn(this,e,t)}}function Jn(e,t){return function(){return Kn(this,e,t.apply(this,arguments))}}function Yn(e,t){return this.each((typeof t==`function`?Jn:qn)(e,t))}function*Xn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Zn=[null];function Y(e,t){this._groups=e,this._parents=t}function Qn(){return new Y([[document.documentElement]],Zn)}function $n(){return this}Y.prototype=Qn.prototype={constructor:Y,select:ft,selectAll:_t,selectChild:St,selectChildren:Tt,filter:Et,data:Pt,enter:Ot,exit:It,join:Lt,merge:Rt,selection:$n,order:J,sort:zt,call:Vt,nodes:Ht,node:Ut,size:Wt,empty:Gt,each:Kt,attr:$t,style:an,property:un,classed:yn,text:Cn,html:Dn,raise:kn,lower:jn,append:Mn,insert:Pn,remove:In,clone:zn,datum:Bn,on:Gn,dispatch:Yn,[Symbol.iterator]:Xn};function er(e){return typeof e==`string`?new Y([[document.querySelector(e)]],[document.documentElement]):new Y([[e]],Zn)}function tr(e){let t;for(;t=e.sourceEvent;)e=t;return e}function nr(e,t){if(e=tr(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var rr={capture:!0,passive:!1};function ir(e){e.preventDefault(),e.stopImmediatePropagation()}function ar(e){var t=e.document.documentElement,n=er(e).on(`dragstart.drag`,ir,rr);`onselectstart`in t?n.on(`selectstart.drag`,ir,rr):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function or(e,t){var n=e.document.documentElement,r=er(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,ir,rr),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function sr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lr(){}var ur=.7,dr=1/ur,fr=`\\s*([+-]?\\d+)\\s*`,pr=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,mr=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,hr=/^#([0-9a-f]{3,8})$/,gr=RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),_r=RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),vr=RegExp(`^rgba\\(${fr},${fr},${fr},${pr}\\)$`),yr=RegExp(`^rgba\\(${mr},${mr},${mr},${pr}\\)$`),br=RegExp(`^hsl\\(${pr},${mr},${mr}\\)$`),xr=RegExp(`^hsla\\(${pr},${mr},${mr},${pr}\\)$`),Sr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sr(lr,Dr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cr,formatHex:Cr,formatHex8:wr,formatHsl:Tr,formatRgb:Er,toString:Er});function Cr(){return this.rgb().formatHex()}function wr(){return this.rgb().formatHex8()}function Tr(){return zr(this).formatHsl()}function Er(){return this.rgb().formatRgb()}function Dr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=hr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Or(t):n===3?new X(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gr.exec(e))?new X(t[1],t[2],t[3],1):(t=_r.exec(e))?new X(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vr.exec(e))?kr(t[1],t[2],t[3],t[4]):(t=yr.exec(e))?kr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=br.exec(e))?Rr(t[1],t[2]/100,t[3]/100,1):(t=xr.exec(e))?Rr(t[1],t[2]/100,t[3]/100,t[4]):Sr.hasOwnProperty(e)?Or(Sr[e]):e===`transparent`?new X(NaN,NaN,NaN,0):null}function Or(e){return new X(e>>16&255,e>>8&255,e&255,1)}function kr(e,t,n,r){return r<=0&&(e=t=n=NaN),new X(e,t,n,r)}function Ar(e){return e instanceof lr||(e=Dr(e)),e?(e=e.rgb(),new X(e.r,e.g,e.b,e.opacity)):new X}function jr(e,t,n,r){return arguments.length===1?Ar(e):new X(e,t,n,r??1)}function X(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sr(X,jr,cr(lr,{brighter(e){return e=e==null?dr:dr**+e,new X(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ur:ur**+e,new X(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new X(Ir(this.r),Ir(this.g),Ir(this.b),Fr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mr,formatHex:Mr,formatHex8:Nr,formatRgb:Pr,toString:Pr}));function Mr(){return`#${Lr(this.r)}${Lr(this.g)}${Lr(this.b)}`}function Nr(){return`#${Lr(this.r)}${Lr(this.g)}${Lr(this.b)}${Lr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pr(){let e=Fr(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Ir(this.r)}, ${Ir(this.g)}, ${Ir(this.b)}${e===1?`)`:`, ${e})`}`}function Fr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ir(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lr(e){return e=Ir(e),(e<16?`0`:``)+e.toString(16)}function Rr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function zr(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof lr||(e=Dr(e)),!e)return new Z;if(e instanceof Z)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Z(o,s,c,e.opacity)}function Br(e,t,n,r){return arguments.length===1?zr(e):new Z(e,t,n,r??1)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sr(Z,Br,cr(lr,{brighter(e){return e=e==null?dr:dr**+e,new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ur:ur**+e,new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new X(Ur(e>=240?e-240:e+120,i,r),Ur(e,i,r),Ur(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Z(Vr(this.h),Hr(this.s),Hr(this.l),Fr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Fr(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Vr(this.h)}, ${Hr(this.s)*100}%, ${Hr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Vr(e){return e=(e||0)%360,e<0?e+360:e}function Hr(e){return Math.max(0,Math.min(1,e||0))}function Ur(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Wr=e=>()=>e;function Gr(e,t){return function(n){return e+n*t}}function Kr(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function qr(e){return(e=+e)==1?Jr:function(t,n){return n-t?Kr(t,n,e):Wr(isNaN(t)?n:t)}}function Jr(e,t){var n=t-e;return n?Gr(e,n):Wr(isNaN(e)?t:e)}var Yr=function e(t){var n=qr(t);function r(e,t){var r=n((e=jr(e)).r,(t=jr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Jr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r}(1);function Xr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Zr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qr=new RegExp(Zr.source,`g`);function $r(e){return function(){return e}}function ei(e){return function(t){return e(t)+``}}function ti(e,t){var n=Zr.lastIndex=Qr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Zr.exec(e))&&(i=Qr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Xr(r,i)})),n=Qr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ei(c[0].x):$r(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var ni=180/Math.PI,ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ii(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*ni,skewX:Math.atan(c)*ni,scaleX:o,scaleY:s}}var ai;function oi(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ri:ii(t.a,t.b,t.c,t.d,t.e,t.f)}function si(e){return e==null||(ai||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),ai.setAttribute(`transform`,e),!(e=ai.transform.baseVal.consolidate()))?ri:(e=e.matrix,ii(e.a,e.b,e.c,e.d,e.e,e.f))}function ci(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Xr(e,i)},{i:c-2,x:Xr(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Xr(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Xr(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Xr(e,n)},{i:s-2,x:Xr(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var li=ci(oi,`px, `,`px)`,`deg)`),ui=ci(si,`, `,`)`,`)`),di=1e-12;function fi(e){return((e=Math.exp(e))+1/e)/2}function pi(e){return((e=Math.exp(e))-1/e)/2}function mi(e){return((e=Math.exp(2*e))-1)/(e+1)}var hi=function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<di)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=fi(y),c=s/(n*g)*(i*mi(t*r+y)-pi(y));return[a+c*d,o+c*f,s*i/fi(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),gi=0,_i=0,vi=0,yi=1e3,bi,xi,Si=0,Ci=0,wi=0,Ti=typeof performance==`object`&&performance.now?performance:Date,Ei=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Di(){return Ci||=(Ei(Oi),Ti.now()+wi)}function Oi(){Ci=0}function ki(){this._call=this._time=this._next=null}ki.prototype=Ai.prototype={constructor:ki,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Di():+n)+(t==null?0:+t),!this._next&&xi!==this&&(xi?xi._next=this:bi=this,xi=this),this._call=e,this._time=n,Fi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fi())}};function Ai(e,t,n){var r=new ki;return r.restart(e,t,n),r}function ji(){Di(),++gi;for(var e=bi,t;e;)(t=Ci-e._time)>=0&&e._call.call(void 0,t),e=e._next;--gi}function Mi(){Ci=(Si=Ti.now())+wi,gi=_i=0;try{ji()}finally{gi=0,Pi(),Ci=0}}function Ni(){var e=Ti.now(),t=e-Si;t>yi&&(wi-=t,Si=e)}function Pi(){for(var e,t=bi,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:bi=n);xi=e,Fi(r)}function Fi(e){gi||(_i&&=clearTimeout(_i),e-Ci>24?(e<1/0&&(_i=setTimeout(Mi,e-Ti.now()-wi)),vi&&=clearInterval(vi)):(vi||=(Si=Ti.now(),setInterval(Ni,yi)),gi=1,Ei(Mi)))}function Ii(e,t,n){var r=new ki;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Li=G(`start`,`end`,`cancel`,`interrupt`),Ri=[],zi=0,Bi=1,Vi=2,Hi=3,Ui=4,Wi=5,Gi=6;function Ki(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Yi(e,n,{name:t,index:r,group:i,on:Li,tween:Ri,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:zi})}function qi(e,t){var n=Q(e,t);if(n.state>zi)throw Error(`too late; already scheduled`);return n}function Ji(e,t){var n=Q(e,t);if(n.state>Hi)throw Error(`too late; already running`);return n}function Q(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Yi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Ai(a,0,n.time);function a(e){n.state=Bi,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==Bi)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===Hi)return Ii(o);f.state===Ui?(f.state=Gi,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=Gi,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Ii(function(){n.state===Hi&&(n.state=Ui,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=Vi,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===Vi){for(n.state=Hi,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=Wi,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===Wi&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=Gi,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Vi&&r.state<Wi,r.state=Gi,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Zi(e){return this.each(function(){Xi(this,e)})}function Qi(e,t){var n,r;return function(){var i=Ji(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function $i(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Ji(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function ea(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Q(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Qi:$i)(n,e,t))}function ta(e,t,n){var r=e._id;return e.each(function(){var e=Ji(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Q(e,r).value[t]}}function na(e,t){var n;return(typeof t==`number`?Xr:t instanceof Dr?Yr:(n=Dr(t))?(t=n,Yr):ti)(e,t)}function ra(e){return function(){this.removeAttribute(e)}}function ia(e){return function(){this.removeAttributeNS(e.space,e.local)}}function aa(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function oa(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function sa(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function ca(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function la(e,t){var n=ot(e),r=n===`transform`?ui:na;return this.attrTween(e,typeof t==`function`?(n.local?ca:sa)(n,r,ta(this,`attr.`+e,t)):t==null?(n.local?ia:ra)(n):(n.local?oa:aa)(n,r,t))}function ua(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function da(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function fa(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&da(e,i)),n}return i._value=t,i}function pa(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ua(e,i)),n}return i._value=t,i}function ma(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ot(e);return this.tween(n,(r.local?fa:pa)(r,t))}function ha(e,t){return function(){qi(this,e).delay=+t.apply(this,arguments)}}function ga(e,t){return t=+t,function(){qi(this,e).delay=t}}function _a(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ha:ga)(t,e)):Q(this.node(),t).delay}function va(e,t){return function(){Ji(this,e).duration=+t.apply(this,arguments)}}function ya(e,t){return t=+t,function(){Ji(this,e).duration=t}}function ba(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?va:ya)(t,e)):Q(this.node(),t).duration}function xa(e,t){if(typeof t!=`function`)throw Error();return function(){Ji(this,e).ease=t}}function Sa(e){var t=this._id;return arguments.length?this.each(xa(t,e)):Q(this.node(),t).ease}function Ca(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Ji(this,e).ease=n}}function wa(e){if(typeof e!=`function`)throw Error();return this.each(Ca(this._id,e))}function Ta(e){typeof e!=`function`&&(e=vt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new eo(r,this._parents,this._name,this._id)}function Ea(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new eo(o,this._parents,this._name,this._id)}function Da(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Oa(e,t,n){var r,i,a=Da(t)?qi:Ji;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ka(e,t){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(e):this.each(Oa(n,e,t))}function Aa(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ja(){return this.on(`end.remove`,Aa(this._id))}function Ma(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=dt(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Ki(l[f],t,n,f,l,Q(u,n)));return new eo(a,this._parents,t,n)}function Na(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ht(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Q(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Ki(p,t,n,h,f,m);a.push(f),o.push(u)}return new eo(a,o,t,n)}var Pa=Qn.prototype.constructor;function Fa(){return new Pa(this._groups,this._parents)}function Ia(e,t){var n,r,i;return function(){var a=on(this,e),o=(this.style.removeProperty(e),on(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function La(e){return function(){this.style.removeProperty(e)}}function Ra(e,t,n){var r,i=n+``,a;return function(){var o=on(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function za(e,t,n){var r,i,a;return function(){var o=on(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),on(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ba(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Ji(this,e),l=c.on,u=c.value[a]==null?s||=La(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Va(e,t,n){var r=(e+=``)==`transform`?li:na;return t==null?this.styleTween(e,Ia(e,r)).on(`end.style.`+e,La(e)):typeof t==`function`?this.styleTween(e,za(e,r,ta(this,`style.`+e,t))).each(Ba(this._id,e)):this.styleTween(e,Ra(e,r,t),n).on(`end.style.`+e,null)}function Ha(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ua(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ha(e,a,n)),r}return a._value=t,a}function Wa(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Ua(e,t,n??``))}function Ga(e){return function(){this.textContent=e}}function Ka(e){return function(){this.textContent=e(this)??``}}function qa(e){return this.tween(`text`,typeof e==`function`?Ka(ta(this,`text`,e)):Ga(e==null?``:e+``))}function Ja(e){return function(t){this.textContent=e.call(this,t)}}function Ya(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ja(r)),t}return r._value=e,r}function Xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Ya(e))}function Za(){for(var e=this._name,t=this._id,n=to(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Q(c,t);Ki(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new eo(r,this._parents,e,n)}function Qa(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Ji(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var $a=0;function eo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function to(){return++$a}var no=Qn.prototype;eo.prototype={constructor:eo,select:Ma,selectAll:Na,selectChild:no.selectChild,selectChildren:no.selectChildren,filter:Ta,merge:Ea,selection:Fa,transition:Za,call:no.call,nodes:no.nodes,node:no.node,size:no.size,empty:no.empty,each:no.each,on:ka,attr:la,attrTween:ma,style:Va,styleTween:Wa,text:qa,textTween:Xa,remove:ja,tween:ea,delay:_a,duration:ba,ease:Sa,easeVarying:wa,end:Qa,[Symbol.iterator]:no[Symbol.iterator]};function ro(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var io={time:null,delay:0,duration:250,ease:ro};function ao(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function oo(e){var t,n;e instanceof eo?(t=e._id,e=e._name):(t=to(),(n=io).time=Di(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Ki(c,e,t,l,o,n||ao(c,t));return new eo(r,this._parents,e,t)}Qn.prototype.interrupt=Zi,Qn.prototype.transition=oo;var so=e=>()=>e;function co(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function lo(e,t,n){this.k=e,this.x=t,this.y=n}lo.prototype={constructor:lo,scale:function(e){return e===1?this:new lo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new lo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var uo=new lo(1,0,0);lo.prototype;function fo(e){e.stopImmediatePropagation()}function po(e){e.preventDefault(),e.stopImmediatePropagation()}function mo(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function ho(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function go(){return this.__zoom||uo}function _o(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function vo(){return navigator.maxTouchPoints||`ontouchstart`in this}function yo(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function bo(){var e=mo,t=ho,n=yo,r=_o,i=vo,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=hi,l=G(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,go).on(`wheel.zoom`,ee,{passive:!1}).on(`mousedown.zoom`,w).on(`dblclick.zoom`,T).filter(i).on(`touchstart.zoom`,te).on(`touchmove.zoom`,ne).on(`touchend.zoom touchcancel.zoom`,E).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,go),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(uo.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new lo(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new lo(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new lo(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=er(this.that).datum();l.call(e,this.that,new co(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function ee(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=nr(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Xi(this),s.start();po(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function w(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=er(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=nr(t,i),l=t.clientX,u=t.clientY;ar(t.view),fo(t),a.mouse=[c,this.__zoom.invert(c)],Xi(this),a.start();function d(e){if(po(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=nr(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),or(e.view,a.moved),po(e),a.event(e).end()}}function T(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=nr(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);po(r),s>0?er(this).transition().duration(s).call(x,d,c,r):er(this).call(_.transform,d,c,r)}}function te(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(fo(t),s=0;s<i;++s)c=r[s],l=nr(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Xi(this),a.start())}}function ne(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(po(e),s=0;s<a;++s)c=i[s],l=nr(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function E(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(fo(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=nr(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=er(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:so(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:so(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:so(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:so([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var xo=Symbol(`MiniMapSlots`),So=[`id`,`x`,`y`,`rx`,`ry`,`width`,`height`,`fill`,`stroke`,`stroke-width`,`shape-rendering`],Co=ce({name:`MiniMapNode`,compatConfig:{MODE:3},inheritAttrs:!1,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:[`click`,`dblclick`,`mouseenter`,`mousemove`,`mouseleave`],setup(e,{emit:t}){let n=e,r=we(xo),i=x(),a=be(()=>i.style??{});function s(e){t(`click`,e)}function c(e){t(`dblclick`,e)}function u(e){t(`mouseenter`,e)}function f(e){t(`mousemove`,e)}function p(e){t(`mouseleave`,e)}return(e,t)=>!e.hidden&&e.dimensions.width!==0&&e.dimensions.height!==0?(o(),S(l,{key:0},[j(r)[`node-${n.type}`]?(o(),O(h(j(r)[`node-${n.type}`]),d(ve({key:0},{...n,...e.$attrs})),null,16)):(o(),S(`rect`,ve({key:1,id:e.id},e.$attrs,{class:[`vue-flow__minimap-node`,{selected:e.selected,dragging:e.dragging}],x:e.position.x,y:e.position.y,rx:e.borderRadius,ry:e.borderRadius,width:e.dimensions.width,height:e.dimensions.height,fill:e.color||a.value.background||a.value.backgroundColor,stroke:e.strokeColor,"stroke-width":e.strokeWidth,"shape-rendering":e.shapeRendering,onClick:s,onDblclick:c,onMouseenter:u,onMousemove:f,onMouseleave:p}),null,16,So))],64)):A(``,!0)}}),wo=[`width`,`height`,`viewBox`,`aria-labelledby`],To=[`id`],Eo=[`d`,`fill`,`stroke`,`stroke-width`],Do=ce({name:`MiniMap`,compatConfig:{MODE:3},props:{nodeColor:{type:[String,Function],default:`#e2e2e2`},nodeStrokeColor:{type:[String,Function],default:`transparent`},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:`rgb(240, 240, 240, 0.6)`},maskStrokeColor:{default:`none`},maskStrokeWidth:{default:1},position:{default:`bottom-right`},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:`Vue Flow mini map`},inversePan:{type:Boolean,default:!1},zoomStep:{default:1},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:[`click`,`nodeClick`,`nodeDblclick`,`nodeMouseenter`,`nodeMousemove`,`nodeMouseleave`],setup(i,{emit:a}){let s=p(),c=x(),{id:u,edges:d,viewport:h,translateExtent:g,dimensions:v,emits:C,d3Selection:ee,d3Zoom:w,getNodesInitialized:te}=_(),ne=M();r(xo,s);let E=be(()=>i.width??c.style?.width??200),re=be(()=>i.height??c.style?.height??150),ie=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`,ae=f(()=>typeof i.nodeColor==`string`?()=>i.nodeColor:i.nodeColor),se=f(()=>typeof i.nodeStrokeColor==`string`?()=>i.nodeStrokeColor:i.nodeStrokeColor),ce=f(()=>typeof i.nodeClassName==`string`?()=>i.nodeClassName:typeof i.nodeClassName==`function`?i.nodeClassName:()=>``),le=f(()=>fe(te.value.filter(e=>!e.hidden))),ue=f(()=>({x:-h.value.x/h.value.zoom,y:-h.value.y/h.value.zoom,width:v.value.width/h.value.zoom,height:v.value.height/h.value.zoom})),N=f(()=>te.value&&te.value.length?ge(le.value,ue.value):ue.value),de=f(()=>{let e=N.value.width/E.value,t=N.value.height/re.value;return Math.max(e,t)}),P=f(()=>{let e=de.value*E.value,t=de.value*re.value,n=i.offsetScale*de.value;return{offset:n,x:N.value.x-(e-N.value.width)/2-n,y:N.value.y-(t-N.value.height)/2-n,width:e+n*2,height:t+n*2}}),pe=f(()=>!P.value.x||!P.value.y?``:`
2
+ M${P.value.x-P.value.offset},${P.value.y-P.value.offset}
3
+ h${P.value.width+P.value.offset*2}
4
+ v${P.value.height+P.value.offset*2}
5
+ h${-P.value.width-P.value.offset*2}z
6
+ M${ue.value.x+i.maskBorderRadius},${ue.value.y}
7
+ h${ue.value.width-2*i.maskBorderRadius}
8
+ a${i.maskBorderRadius},${i.maskBorderRadius} 0 0 1 ${i.maskBorderRadius},${i.maskBorderRadius}
9
+ v${ue.value.height-2*i.maskBorderRadius}
10
+ a${i.maskBorderRadius},${i.maskBorderRadius} 0 0 1 -${i.maskBorderRadius},${i.maskBorderRadius}
11
+ h${-(ue.value.width-2*i.maskBorderRadius)}
12
+ a${i.maskBorderRadius},${i.maskBorderRadius} 0 0 1 -${i.maskBorderRadius},-${i.maskBorderRadius}
13
+ v${-(ue.value.height-2*i.maskBorderRadius)}
14
+ a${i.maskBorderRadius},${i.maskBorderRadius} 0 0 1 ${i.maskBorderRadius},-${i.maskBorderRadius}z`);t(e=>{if(ne.value){let t=er(ne.value),n=bo().wheelDelta(e=>b(e)*(i.zoomStep/10)).on(`zoom`,i.pannable?e=>{if(e.sourceEvent.type!==`mousemove`||!ee.value||!w.value)return;let t=de.value*Math.max(1,h.value.zoom)*(i.inversePan?-1:1),n={x:h.value.x-e.sourceEvent.movementX*t,y:h.value.y-e.sourceEvent.movementY*t},r=[[0,0],[v.value.width,v.value.height]],a=uo.translate(n.x,n.y).scale(h.value.zoom),o=w.value.constrain()(a,r,g.value);w.value.transform(ee.value,o)}:()=>{}).on(`zoom.wheel`,i.zoomable?e=>{if(e.sourceEvent.type!==`wheel`||!ee.value||!w.value)return;let t=e.sourceEvent.ctrlKey&&m()?10:1,n=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*i.zoomStep,r=h.value.zoom*2**(n*t);w.value.scaleTo(ee.value,r)}:()=>{});t.call(n),e(()=>{t.on(`zoom`,null)})}},{flush:`post`});function me(e){let[t,n]=nr(e);a(`click`,{event:e,position:{x:t,y:n}})}function he(t,n){let r={event:t,node:n,connectedEdges:e([n],d.value)};C.miniMapNodeClick(r),a(`nodeClick`,r)}function F(t,n){let r={event:t,node:n,connectedEdges:e([n],d.value)};C.miniMapNodeDoubleClick(r),a(`nodeDblclick`,r)}function _e(t,n){let r={event:t,node:n,connectedEdges:e([n],d.value)};C.miniMapNodeMouseEnter(r),a(`nodeMouseenter`,r)}function ve(t,n){let r={event:t,node:n,connectedEdges:e([n],d.value)};C.miniMapNodeMouseMove(r),a(`nodeMousemove`,r)}function ye(t,n){let r={event:t,node:n,connectedEdges:e([n],d.value)};C.miniMapNodeMouseLeave(r),a(`nodeMouseleave`,r)}return(e,t)=>(o(),O(j(n),{position:e.position,class:xe([`vue-flow__minimap`,{pannable:e.pannable,zoomable:e.zoomable}])},{default:T(()=>[(o(),S(`svg`,{ref_key:`el`,ref:ne,width:E.value,height:re.value,viewBox:[P.value.x,P.value.y,P.value.width,P.value.height].join(` `),role:`img`,"aria-labelledby":`vue-flow__minimap-${j(u)}`,onClick:me},[e.ariaLabel?(o(),S(`title`,{key:0,id:`vue-flow__minimap-${j(u)}`},D(e.ariaLabel),9,To)):A(``,!0),(o(!0),S(l,null,y(j(te),t=>(o(),O(Co,{id:t.id,key:t.id,f:``,position:t.computedPosition,dimensions:t.dimensions,selected:t.selected,dragging:t.dragging,style:oe(t.style),class:xe(ce.value(t)),color:ae.value(t),"border-radius":e.nodeBorderRadius,"stroke-color":se.value(t),"stroke-width":e.nodeStrokeWidth,"shape-rendering":j(ie),type:t.type,hidden:t.hidden,onClick:e=>he(e,t),onDblclick:e=>F(e,t),onMouseenter:e=>_e(e,t),onMousemove:e=>ve(e,t),onMouseleave:e=>ye(e,t)},null,8,[`id`,`position`,`dimensions`,`selected`,`dragging`,`style`,`class`,`color`,`border-radius`,`stroke-color`,`stroke-width`,`shape-rendering`,`type`,`hidden`,`onClick`,`onDblclick`,`onMouseenter`,`onMousemove`,`onMouseleave`]))),128)),k(`path`,{class:`vue-flow__minimap-mask`,d:pe.value,fill:e.maskColor,stroke:e.maskStrokeColor,"stroke-width":e.maskStrokeWidth,"fill-rule":`evenodd`},null,8,Eo)],8,wo))]),_:1},8,[`position`,`class`]))}}),Oo={group:`Group`,node:`Node`,role:`Role`,leader:`Leader`};function ko(e){let{locale:t}=c();function n(n){let r=(typeof e==`function`?e():e.value)?.labels?.[n];if(!r)return Oo[n];let i=t.value;return r[i]??r[i.split(`-`)[0]]??Oo[n]}return f(()=>({group:n(`group`),node:n(`node`),role:n(`role`),leader:n(`leader`)}))}var Ao={class:`scenario-node-editor`},jo={class:`form-row`},Mo={class:`form-group`},No={class:`form-label`,for:`scennode-label`},Po={key:0,class:`form-group`},Fo={class:`form-label`,for:`scennode-role`},Io={key:0,class:`role-preview`},Lo={class:`role-preview__label`},Ro={class:`role-preview__text`},zo={class:`form-row`},Bo={class:`form-group`},Vo={class:`form-label`,for:`scennode-group`},Ho={key:0,class:`form-group`},Uo={class:`form-label`,for:`scennode-parent`},Wo={class:`form-row`},Go={class:`form-group`},Ko={class:`form-label`,for:`scennode-aicli`},qo={class:`form-group`},Jo={class:`form-label`,for:`scennode-model`},Yo={key:1,class:`form-note`},Xo={class:`inline-check`},Zo={for:`canAddNode`},Qo={class:`inline-check`},$o={for:`injectParentOutputs`},es={key:0,class:`form-group`},ts={class:`form-label`,for:`scennode-ancestors`},ns={class:`inline-check`},rs={for:`isLeader`},is={class:`form-note`},as={key:2,class:`form-group`},os={class:`form-label`,for:`scennode-question`},ss={key:3,class:`form-group`},cs={class:`form-label`,for:`scennode-prompt`},ls=_e(ce({__name:`ScenarioNodeEditor`,props:{node:{},groups:{},nodes:{},leaderId:{},preset:{},traversalMode:{}},emits:[`update`,`delete`,`set-leader`],setup(e,{emit:t}){let n=e,{t:r}=c(),{claudeCodeAvailable:i,codexAvailable:a}=he(re()),s=t;function u(e){return e===`codex`?``:`sonnet`}let d=M({...n.node,aiCli:n.node.aiCli??`claude-code`,model:n.node.model??u(n.node.aiCli),injectParentOutputs:n.node.injectParentOutputs??!1,injectedAncestorIds:n.node.injectedAncestorIds??[]});function p(e){return{...e,aiCli:e.aiCli??`claude-code`,model:e.model??u(e.aiCli),injectParentOutputs:e.injectParentOutputs??!1,injectedAncestorIds:e.injectedAncestorIds??[]}}let m=p(n.node);Ae(()=>n.node,e=>{m=p(e),d.value=p(e)},{deep:!0}),Ae(d,e=>{let t={};e.label!==m.label&&(t.label=e.label),e.role!==m.role&&(t.role=e.role),e.groupId!==m.groupId&&(t.groupId=e.groupId),JSON.stringify(e.parentIds)!==JSON.stringify(m.parentIds)&&(t.parentIds=e.parentIds),e.prompt!==m.prompt&&(t.prompt=e.prompt),e.question!==m.question&&(t.question=e.question),e.canAddNode!==m.canAddNode&&(t.canAddNode=e.canAddNode),e.aiCli!==m.aiCli&&(t.aiCli=e.aiCli),e.model!==m.model&&(t.model=e.model),e.injectParentOutputs!==m.injectParentOutputs&&(t.injectParentOutputs=e.injectParentOutputs),JSON.stringify(e.injectedAncestorIds)!==JSON.stringify(m.injectedAncestorIds)&&(t.injectedAncestorIds=e.injectedAncestorIds),Object.keys(t).length>0&&s(`update`,t)},{deep:!0});let h=f(()=>n.preset?.roles.length?n.preset.roles.map(e=>({label:e.name,value:e.id})):[]),g=f(()=>[{label:`Claude Code${i.value?``:` — non installé`}`,value:`claude-code`,disabled:!i.value},{label:`Codex (OpenAI)${a.value?``:` — non installé`}`,value:`codex`,disabled:!a.value}]),_=f(()=>d.value.aiCli===`codex`?[]:[{label:r(`scenarioNodeEditor.modelHaiku`),value:`haiku`},{label:r(`scenarioNodeEditor.modelSonnet`),value:`sonnet`},{label:r(`scenarioNodeEditor.modelOpus`),value:`opus`}]);Ae(()=>d.value.aiCli,(e,t)=>{if(e===t)return;let n={"claude-code":`sonnet`,codex:``};d.value.model=n[e]??`sonnet`});let v=f(()=>n.groups.map(e=>({label:e.name,value:e.id}))),y=f(()=>n.nodes.filter(e=>e.id!==n.node.id).map(e=>({label:e.label||e.id,value:e.id}))),b=f(()=>n.traversalMode===`topological`);Ae(()=>d.value.parentIds,()=>{let e=new Map(n.nodes.map(e=>[e.id,e])),t=new Set,r=[...d.value.parentIds];for(;r.length>0;){let n=r.shift();if(!t.has(n)){t.add(n);let i=e.get(n);i&&r.push(...i.parentIds)}}d.value.injectedAncestorIds=(d.value.injectedAncestorIds??[]).filter(e=>t.has(e))});let x=f(()=>{let e=new Map(n.nodes.map(e=>[e.id,e])),t=new Set,r=[...n.node.parentIds??[]];for(;r.length>0;){let n=r.shift();if(!t.has(n)){t.add(n);let i=e.get(n);i&&r.push(...i.parentIds)}}return n.nodes.filter(e=>t.has(e.id)).map(e=>({label:e.label||e.id,value:e.id}))}),C=f(()=>n.node.id===n.leaderId);f(()=>!C.value);let ee=f(()=>!C.value),w=ko(()=>n.preset),T=f(()=>n.preset?.roles.find(e=>e.id===d.value.role));return(e,t)=>(o(),S(`div`,Ao,[k(`div`,jo,[k(`div`,Mo,[k(`label`,No,D(j(r)(`scenarioNodeEditor.label`)),1),L(j(le),{id:`scennode-label`,modelValue:d.value.label,"onUpdate:modelValue":t[0]||=e=>d.value.label=e,class:`w-full`,size:`small`,placeholder:`${j(w).node} name`},null,8,[`modelValue`,`placeholder`])]),h.value.length?(o(),S(`div`,Po,[k(`label`,Fo,D(j(w).role),1),L(j(ie),{"input-id":`scennode-role`,modelValue:d.value.role,"onUpdate:modelValue":t[1]||=e=>d.value.role=e,options:h.value,"option-label":`label`,"option-value":`value`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`])])):A(``,!0)]),T.value?.systemPrompt?(o(),S(`div`,Io,[k(`span`,Lo,D(j(r)(`scenarioNodeEditor.systemPrompt`)),1),k(`p`,Ro,D(T.value.systemPrompt),1)])):A(``,!0),k(`div`,zo,[k(`div`,Bo,[k(`label`,Vo,D(j(w).group),1),L(j(ie),{"input-id":`scennode-group`,modelValue:d.value.groupId,"onUpdate:modelValue":t[2]||=e=>d.value.groupId=e,options:v.value,"option-label":`label`,"option-value":`value`,placeholder:`Select a ${j(w).group.toLowerCase()}`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`,`placeholder`])]),ee.value?(o(),S(`div`,Ho,[k(`label`,Uo,D(j(r)(`scenarioNodeEditor.reportsTo`)),1),L(j(ie),{"input-id":`scennode-parent`,"model-value":d.value.parentIds[0]??null,options:y.value,"option-label":`label`,"option-value":`value`,placeholder:j(r)(`scenarioNodeEditor.noParent`),"show-clear":!0,class:`w-full`,size:`small`,"onUpdate:modelValue":t[3]||=e=>{d.value.parentIds=e?[e,...d.value.parentIds.slice(1)]:d.value.parentIds.slice(1)}},null,8,[`model-value`,`options`,`placeholder`])])):A(``,!0)]),d.value.type===`ask`?A(``,!0):(o(),S(l,{key:1},[k(`div`,Wo,[k(`div`,Go,[k(`label`,Ko,D(j(r)(`scenarioNodeEditor.aiRunner`)),1),L(j(ie),{"input-id":`scennode-aicli`,modelValue:d.value.aiCli,"onUpdate:modelValue":t[4]||=e=>d.value.aiCli=e,options:g.value,"option-label":`label`,"option-value":`value`,"option-disabled":`disabled`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`])]),k(`div`,qo,[k(`label`,Jo,D(j(r)(`scenarioNodeEditor.model`)),1),d.value.aiCli===`codex`?(o(),S(`small`,Yo,D(j(r)(`scenarioNodeEditor.modelAuto`)),1)):(o(),O(j(ie),{key:0,"input-id":`scennode-model`,modelValue:d.value.model,"onUpdate:modelValue":t[5]||=e=>d.value.model=e,options:_.value,"option-label":`label`,"option-value":`value`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`]))])]),k(`div`,Xo,[L(j(je),{modelValue:d.value.canAddNode,"onUpdate:modelValue":t[6]||=e=>d.value.canAddNode=e,binary:``,"input-id":`canAddNode`},null,8,[`modelValue`]),k(`label`,Zo,D(j(r)(`scenarioNodeEditor.canSpawnNodes`)),1)]),b.value&&!C.value?(o(),S(l,{key:0},[k(`div`,Qo,[L(j(je),{modelValue:d.value.injectParentOutputs,"onUpdate:modelValue":t[7]||=e=>d.value.injectParentOutputs=e,binary:``,"input-id":`injectParentOutputs`},null,8,[`modelValue`]),k(`label`,$o,D(j(r)(`scenarioNodeEditor.injectParentOutputs`)),1)]),x.value.length>0?(o(),S(`div`,es,[k(`label`,ts,D(j(r)(`scenarioNodeEditor.injectedAncestorIds`)),1),L(j(Me),{"input-id":`scennode-ancestors`,modelValue:d.value.injectedAncestorIds,"onUpdate:modelValue":t[8]||=e=>d.value.injectedAncestorIds=e,options:x.value,"option-label":`label`,"option-value":`value`,placeholder:j(r)(`scenarioNodeEditor.injectedAncestorIdsPlaceholder`),filter:``,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`,`placeholder`])])):A(``,!0)],64)):A(``,!0)],64)),k(`div`,ns,[L(j(je),{"model-value":C.value,binary:``,"input-id":`isLeader`,disabled:C.value,"onUpdate:modelValue":t[9]||=e=>s(`set-leader`,n.node.id)},null,8,[`model-value`,`disabled`]),k(`label`,rs,[ye(D(j(w).leader)+` `,1),k(`span`,is,D(j(r)(`scenarioNodeEditor.entryPoint`)),1)])]),d.value.type===`ask`?(o(),S(`div`,as,[k(`label`,os,D(j(r)(`scenarioNodeEditor.question`)),1),L(j(Se),{id:`scennode-question`,modelValue:d.value.question,"onUpdate:modelValue":t[10]||=e=>d.value.question=e,rows:`4`,class:`w-full`,style:{resize:`none`},placeholder:j(r)(`scenarioNodeEditor.questionPlaceholder`)},null,8,[`modelValue`,`placeholder`])])):(o(),S(`div`,ss,[k(`label`,cs,D(j(r)(`scenarioNodeEditor.prompt`)),1),L(j(Se),{id:`scennode-prompt`,modelValue:d.value.prompt,"onUpdate:modelValue":t[11]||=e=>d.value.prompt=e,rows:`8`,class:`w-full`,style:{resize:`none`}},null,8,[`modelValue`])]))]))}}),[[`__scopeId`,`data-v-d47fface`]]),us={class:`scenario-editor`},ds={class:`scenario-editor__toolbar`},fs={class:`scenario-editor__toolbar-row scenario-editor__toolbar-row--primary`},ps={class:`scenario-editor__icon-input`},ms={class:`scenario-editor__toolbar-row scenario-editor__toolbar-row--secondary`},hs={class:`pi pi-question-circle scenario-editor__traversal-help`},gs={class:`add-node-popover`},_s={class:`add-node-popover__item-text`},vs={class:`add-node-popover__item-label`},ys={class:`add-node-popover__item-desc`},bs={class:`add-node-popover__item-text`},xs={class:`add-node-popover__item-label`},Ss={class:`add-node-popover__item-desc`},Cs={class:`scenario-editor__content`},ws={key:0,class:`scenario-editor__ai-panel`},Ts={class:`scenario-editor__ai-panel-header`},Es={key:0,class:`scenario-editor__ai-provider`},Ds={for:`scened-ai-provider`,class:`scenario-editor__ai-provider-label`},Os={key:1,class:`scenario-editor__ai-no-provider`},ks=[`innerHTML`],As={class:`scenario-editor__ai-hint`},js={key:2,class:`scenario-editor__ai-stream`},Ms={class:`scenario-editor__ai-stream-label`},Ns={key:0,class:`pi pi-spin pi-spinner`},Ps={key:1,class:`pi pi-check`,style:{color:`var(--p-green-500)`}},Fs={key:2,class:`pi pi-exclamation-triangle`,style:{color:`var(--p-orange-500)`}},Is={class:`scenario-editor__ai-stream-text`},Ls={key:3,class:`scenario-editor__ai-error`},Rs={key:0,class:`scenario-editor__panel scenario-editor__panel--editor`},zs={class:`detail-header`},Bs={class:`detail-header__title`},Vs={class:`detail-body`},Hs={class:`detail-field`},Us={for:`scened-group-name`,class:`detail-label`},Ws={class:`detail-field`},Gs={for:`scened-group-desc`,class:`detail-label`},Ks={class:`detail-field`},qs={for:`scened-group-color`,class:`detail-label`},Js={class:`detail-color-row`},Ys=[`value`],Xs={class:`detail-footer`},Zs={key:0,class:`detail-footer`},Qs={class:`switch-dialog__intro`},$s={class:`inline-check`,style:{"margin-top":`1rem`,gap:`0.6rem`}},ec={for:`dontShowAgain`,style:{"font-size":`0.85rem`,cursor:`pointer`}},tc={class:`switch-dialog__intro`},nc={class:`switch-dialog__intro`},rc={class:`switch-dialog__links`},ic={class:`switch-dialog__node`},ac={class:`switch-dialog__node`},oc={class:`add-node-form`},sc={for:`scened-add-node-group`,class:`add-node-label`},cc={class:`export-json`},lc={key:0,class:`import-error`},uc={style:{margin:`0 0 1rem`}},dc=`runeya:hierarchical-multi-parent-notice-dismissed`,fc=`scenario-flow`,pc=160,mc=48,$=24,hc=32,gc=60,_c=10,vc=_e(ce({__name:`ScenarioEditorPage`,setup(e){let{t}=c(),n=w(),r=s(),a=me(),p=M(!1),m=M([]),h=M(localStorage.getItem(dc)===`true`),b=M(!1),x=M(!1),re=ae(),{setCenter:oe,updateNode:ce,getSelectedNodes:fe,getSelectedEdges:he,removeSelectedElements:ge,fitView:F,viewport:_e}=_(fc);function be(e){if(e.key!==`Delete`&&e.key!==`Backspace`)return;let t=e.target;if(!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)){if(q.value){let e=q.value;for(let t of H.value){let n=t.parentIds.findIndex(n=>`e-${n}-${t.id}`===e);if(n!==-1){_t(t.id,{parentIds:t.parentIds.filter((e,t)=>t!==n)});break}}q.value=void 0;return}for(let e of fe.value)V.value.some(t=>t.id===e.id)?ut(e.id):H.value.some(t=>t.id===e.id)&&gt(e.id)}}let we=f(()=>n.params.id),Ae=f(()=>!we.value),Me=M(`New scenario`),Pe=M(``),Fe=M(``),R=M(``),z=M(`hierarchical`),Ie=M(void 0),Le=M(!1),Re=M([]),ze=f(()=>Re.value.find(e=>e.id===Ie.value)),B=ko(ze),Be=M();function Ve(e){Be.value?.toggle(e)}function He(e){Be.value?.hide(),ft(e)}async function Ue(){try{Re.value=await ne.scenario.listPresets.query()}catch{}}let We=M(!1),Ge=M(void 0),Ke=M(0);function qe(e){Ie.value=e;let t=Re.value.find(t=>t.id===e);t?.defaultTraversalMode&&(z.value=t.defaultTraversalMode),t?.initialData?(V.value=[...t.initialData.groups],H.value=[...t.initialData.nodes],R.value=t.initialData.leaderId,U.value=void 0,W.value=void 0):e||(V.value=[],H.value=[],R.value=``,U.value=void 0,W.value=void 0)}function Je(){return H.value.length>0||V.value.length>0}function Ye(e){let t=e?Re.value.find(t=>t.id===e):void 0;(!e||t?.initialData)&&Je()?(Ge.value=e,We.value=!0):qe(e)}function Xe(){We.value=!1,qe(Ge.value),Ge.value=void 0}function Ze(){We.value=!1,Ge.value=void 0,Ke.value++}let V=M([]),H=M([]),U=M(),W=M(),$e=M(!1),G=M(null),et=M(`ai`),tt=f(()=>{let e=new Map;if(!U.value)return e;let t=U.value,n=H.value.find(e=>e.id===t);if(!n)return e;let r=H.value.filter(e=>(e.parentIds??[]).includes(t)||(n.parentIds??[]).includes(e.id)),i=new Map;for(let e of r){let t=e.groupId??null;i.has(t)||i.set(t,[]),i.get(t).push(e)}for(let t of i.values())t.length<=1||[...t].sort((e,t)=>e.position.x-t.position.x).forEach((t,n)=>e.set(t.id,-n*15));return e}),nt=f(()=>{let e=U.value?(()=>{let e=U.value,t=H.value.find(t=>t.id===e),n=H.value.filter(n=>(n.parentIds??[]).includes(e)||(t?.parentIds??[]).includes(n.id)).map(e=>e.id);return new Set([e,...n])})():null,t=e?new Set(H.value.filter(t=>e.has(t.id)&&t.groupId).map(e=>e.groupId)):null,n=W.value??null,r=n?new Set(H.value.filter(e=>e.groupId===n).map(e=>e.id)):null,i=V.value.map(e=>{let r=t&&!t.has(e.id),i=n&&e.id!==n,a=r||i,o=n===e.id;return{id:e.id,type:`group`,position:e.position,zIndex:o?500:1,style:{width:`${e.width}px`,height:`${e.height}px`,opacity:a?`0.25`:`1`,transition:`opacity 0.15s ease`},data:{label:e.name,color:e.color??void 0},draggable:!0,selectable:!0}}),a=new Map;for(let e of H.value)for(let t of e.parentIds??[]){let n=rt(e.id)<rt(t),r=a.get(t)??{hasUp:!1,hasDown:!1};n?r.hasUp=!0:r.hasDown=!0,a.set(t,r)}let o=H.value.map(t=>{let n=a.get(t.id)??{hasUp:!1,hasDown:!1},i=tt.value.get(t.id)??0,o=e&&!e.has(t.id),s=r&&!r.has(t.id),c=o||s,l=r?.has(t.id);return{id:t.id,position:{x:t.position.x+i,y:t.position.y},zIndex:l?1500:1e3,style:c?{opacity:`0.25`,transition:`opacity 0.15s ease`}:{opacity:`1`,transition:`opacity 0.15s ease`},data:{label:t.label,isLeader:t.id===R.value,type:t.type,roleName:ze.value?.roles.find(e=>e.id===t.role)?.name,showTopHandle:n.hasUp,showBottomHandle:n.hasDown||!n.hasUp},draggable:!0,selectable:!0,parentNode:t.groupId??void 0,extent:t.groupId?`parent`:void 0}});return[...i,...o]});function rt(e){let t=H.value.find(t=>t.id===e);return t?t.groupId?(V.value.find(e=>e.id===t.groupId)?.position.y??0)+t.position.y:t.position.y:0}let it=f(()=>{let e=new Map;for(let t of H.value)e.set(t.id,0);let t=new Map;for(let e of H.value)t.set(e.id,[]);for(let e of H.value)for(let n of e.parentIds??[])t.get(n)?.push(e.id);let n=new Set,r=[];function i(a){e.set(a,1),r.push(a);for(let o of t.get(a)??[])if(e.get(o)===1){let e=r.indexOf(o);for(let t=e;t<r.length-1;t++)n.add(`e-${r[t]}-${r[t+1]}`);n.add(`e-${a}-${o}`)}else e.get(o)===0&&i(o);r.pop(),e.set(a,2)}for(let t of H.value)e.get(t.id)===0&&i(t.id);return n}),at=f(()=>{let e=[],t=z.value===`topological`;for(let n of H.value)for(let r of n.parentIds??[]){let i=`e-${r}-${n.id}`,a=q.value===i,o=!q.value&&!!U.value&&(U.value===r||U.value===n.id),s=a||o,c=it.value.has(i),l=rt(n.id)<rt(r),u=H.value.find(e=>e.id===r)?.groupId??null,d=n.groupId??null,f=!!W.value&&u!==W.value&&d!==W.value||U.value&&!q.value&&!s||q.value&&!a;e.push({id:i,source:r,target:n.id,sourceHandle:l?`source-top`:`source-bottom`,type:`step`,zIndex:c?700:s?600:500,class:c?`edge--cycle`:void 0,animated:t,style:{stroke:c?`rgb(239,68,68)`:s?`rgb(168,85,247)`:`rgba(99,102,241,0.55)`,strokeWidth:c||s?3:2.5,opacity:f?.15:1,...t?{strokeDasharray:`5,3`}:{}}})}return e});f(()=>H.value.map(e=>({id:e.id,label:e.label||e.id})));function ot(){let e={id:`group-${Ne().slice(0,8)}`,name:`Group ${V.value.length+1}`,position:{x:100*V.value.length,y:100*V.value.length},width:300,height:200};V.value=[...V.value,e]}let st=M(!1),ct=M(null),lt=M(0);function ut(e){let t=H.value.filter(t=>t.groupId===e).length;if(t>0){ct.value=e,lt.value=t,st.value=!0;return}dt(e)}function dt(e){let t=H.value.filter(t=>t.groupId===e).map(e=>e.id);H.value=H.value.filter(e=>!t.includes(e.id)).map(e=>({...e,parentIds:e.parentIds.filter(e=>!t.includes(e))})),V.value=V.value.filter(t=>t.id!==e),W.value===e&&(W.value=void 0),U.value&&t.includes(U.value)&&(U.value=void 0)}function ft(e=`ai`){if(!V.value.length){a.add({severity:`warn`,summary:t(`scenarioEditor.toast.noGroupsSummary`),detail:t(`scenarioEditor.toast.noGroupsDetail`),life:3e3});return}et.value=e,G.value=V.value[0]?.id??null,$e.value=!0}function pt(e){if(!e)return{x:100,y:100};let t=H.value.filter(t=>t.groupId===e);if(t.length===0)return{x:$,y:hc+$};let n=t.reduce((e,t)=>e.position.y>t.position.y?e:t);return{x:n.position.x,y:n.position.y+mc+_c}}function mt(e){if(!e)return;let t=V.value.find(t=>t.id===e);if(!t)return;let n=H.value.filter(t=>t.groupId===e);if(n.length===0)return;let r=Math.max(...n.map(e=>e.position.y+mc)),i=Math.max(...n.map(e=>e.position.x+pc)),a=r+$,o=Math.max(t.width??200,i+$),s=(t.position.y??0)+(t.height??0),c=(t.position.y??0)+a-s;if(K(e,{width:o,height:a}),c>0)for(let t of V.value)t.id!==e&&(t.position.y??0)>=s&&K(t.id,{position:{x:t.position.x,y:(t.position.y??0)+c}})}function ht(){if(!G.value){a.add({severity:`warn`,summary:t(`scenarioEditor.toast.groupRequiredSummary`),detail:t(`scenarioEditor.toast.groupRequiredDetail`),life:3e3});return}let e=`node-${Ne().slice(0,8)}`,n={id:e,type:et.value,parentIds:[],groupId:G.value,label:``,role:`other`,prompt:``,question:``,autoGenerated:!0,canAddNode:!1,aiCli:`claude-code`,model:`sonnet`,position:pt(G.value),injectParentOutputs:!1,injectedAncestorIds:[]};H.value=[...H.value,n],H.value.length===1&&(R.value=e),mt(G.value),$e.value=!1,U.value=e,de(()=>updateNodeInternals(H.value.map(e=>e.id)))}function gt(e){if(e===R.value){a.add({severity:`warn`,summary:t(`scenarioEditor.toast.leaderSummary`),detail:t(`scenarioEditor.toast.leaderDetail`),life:3e3});return}let n=new Set(H.value.filter(t=>t.parentIds[0]===e).map(e=>e.id));H.value=H.value.filter(t=>t.id!==e).map(e=>n.has(e.id)?{...e,parentId:R.value}:e),U.value===e&&(U.value=void 0)}function _t(e,t){H.value=H.value.map(n=>n.id===e?{...n,...t}:n);let n=H.value.find(t=>t.id===e);if(n&&(`label`in t&&ce(e,{data:{label:n.label,isLeader:n.id===R.value}}),`groupId`in t)){let n={x:50,y:50};ce(e,{parentNode:t.groupId??void 0,extent:t.groupId?`parent`:void 0,position:n}),H.value=H.value.map(t=>t.id===e?{...t,position:n}:t)}}function vt(e,t){K(e,{name:t}),ce(e,{data:{label:t}})}function yt(e,t,n){}function bt(e){for(let t of e)if(t.type===`remove`){let e=t.id?.split(`-`);if(!e||e.length<3)continue;for(let e of H.value){let n=e.parentIds??[],r=n.findIndex(n=>`e-${n}-${e.id}`===t.id);if(r!==-1){_t(e.id,{parentIds:n.filter((e,t)=>t!==r)});break}}}}function xt(e){for(let t of e)t.type===`dimensions`&&t.dimensions&&V.value.find(e=>e.id===t.id)&&K(t.id,{width:t.dimensions.width,height:t.dimensions.height}),t.type===`position`&&t.position&&!t.dragging&&V.value.find(e=>e.id===t.id)&&K(t.id,{position:t.position}),t.type===`remove`&&H.value.some(e=>e.id===t.id)&&gt(t.id)}function K(e,t){V.value=V.value.map(n=>n.id===e?{...n,...t}:n)}function St(e){let t=e.node.id,n=e.node.position,r=V.value.find(e=>e.id===t),i=H.value.find(e=>e.id===t);r?K(t,{position:n}):i&&(_t(t,{position:n}),Ct(t,n.y)),kt({refit:!1})}function Ct(e,t){let n=H.value.find(t=>t.id===e);if(!n)return;let r=n.parentIds[0]??null,i=new Set(H.value.filter(e=>(e.parentIds[0]??null)===r).map(e=>e.id));if(i.size<=1)return;let a=H.value.filter(e=>i.has(e.id)).sort((n,r)=>(n.id===e?t:n.position.y)-(r.id===e?t:r.position.y)),o=H.value.map((e,t)=>({n:e,i:t})).filter(({n:e})=>i.has(e.id)).map(({i:e})=>e),s=[...H.value];o.forEach((e,t)=>{s[e]=a[t]}),H.value=s}let q=M();function wt(e){let t=e.edge.id;q.value===t?(q.value=void 0,ge({edges:[e.edge]})):q.value=t}function Tt(e){let t=e.node.id;q.value=void 0,V.value.some(e=>e.id===t)?W.value===t?(W.value=void 0,ge({nodes:[e.node]})):(W.value=t,U.value=void 0):H.value.some(e=>e.id===t)&&(U.value===t?(U.value=void 0,ge({nodes:[e.node]})):(U.value=t,W.value=void 0))}function Et(e){let t=e.target,n=e.source;if(n===t)return;let r=H.value.find(e=>e.id===t);if(!r)return;let i=r.parentIds??[];i.includes(n)||(z.value===`hierarchical`?(_t(t,{parentIds:[n]}),i.length>0&&!h.value&&(x.value=!1,b.value=!0)):_t(t,{parentIds:[...i,n]}),de(()=>kt({refit:!1})))}function Dt(){x.value&&(h.value=!0,localStorage.setItem(dc,`true`)),b.value=!1}function Ot(){H.value=H.value.map(e=>({...e,parentIds:e.parentIds.slice(0,1),injectParentOutputs:!1,injectedAncestorIds:[]}))}function kt({refit:e=!0}={}){let t=new Map;for(let e of H.value)t.set(e.id,[]);for(let e of H.value)e.parentIds[0]&&t.has(e.parentIds[0])&&t.get(e.parentIds[0]).push(e.id);let n=new Map,r=0,i;function a(e,o){let s=H.value.find(t=>t.id===e).groupId??null;s!==i&&(i!==void 0&&(r+=$),s!==null&&(r+=hc+$),i=s),n.set(e,{x:o*gc,y:r}),r+=mc+_c;for(let n of t.get(e)??[])a(n,o+1)}let o=H.value.filter(e=>e.parentIds.length===0),s=o.length>0?o.map(e=>e.id):[R.value];for(let e of s)a(e,0),r+=$+_c,i=void 0;for(let e of H.value){let t=n.get(e.id);t&&_t(e.id,{position:t})}for(let e of V.value){let t=H.value.filter(t=>t.groupId===e.id);if(t.length===0)continue;let r=t.map(e=>n.get(e.id)??e.position),i=Math.min(...r.map(e=>e.x))-$,a=Math.min(...r.map(e=>e.y))-$-hc,o=Math.max(...r.map(e=>e.x+pc))+$,s=Math.max(...r.map(e=>e.y+mc))+$;K(e.id,{position:{x:i,y:a},width:o-i,height:s-a});for(let e of t){let t=n.get(e.id);t&&_t(e.id,{position:{x:t.x-i,y:t.y-a}})}}e&&de(()=>F({includeHiddenNodes:!1,padding:.1,maxZoom:_e.value.zoom}))}function At(e){if(e===`hierarchical`){let e=H.value.filter(e=>e.parentIds.length>1).length;if(H.value.reduce((e,t)=>e+Math.max(0,t.parentIds.length-1),0),e>0){let e=new Map(H.value.map(e=>[e.id,e]));m.value=H.value.filter(e=>e.parentIds.length>1).flatMap(t=>t.parentIds.slice(1).map(n=>({from:e.get(n)?.label||n,to:t.label||t.id}))),p.value=!0;return}Ot()}z.value=e}function jt(e){U.value&&_t(U.value,e)}function Mt(e){gt(e)}function Nt(){let e=new Set(H.value.map(e=>e.id));e.has(R.value)||(R.value=H.value[0]?.id??`leader`),H.value=H.value.map(t=>{if(t.id===R.value)return{...t,parentIds:[]};let n=(t.parentIds??[]).filter(t=>e.has(t));return n.length===0&&t.id!==R.value?{...t,parentIds:[R.value]}:n.length===(t.parentIds??[]).length?t:{...t,parentIds:n}})}async function Pt(){if(Ae.value)return;await re.fetchScenarios();let e=re.scenarios.find(e=>e.id===we.value);if(!e){a.add({severity:`error`,summary:t(`scenarioEditor.toast.notFoundSummary`),detail:t(`scenarioEditor.toast.notFoundDetail`),life:3e3}),r.push({name:`settings`,query:{section:`scenario`}});return}Me.value=e.name,Pe.value=e.icon??``,Fe.value=e.description??``,R.value=e.leaderId,z.value=e.traversalMode??`hierarchical`,Ie.value=e.presetId,Le.value=e.isPublished??!1,V.value=[...e.groups],H.value=[...e.nodes]}async function Ft(){if(!Me.value.trim()){a.add({severity:`warn`,summary:t(`scenarioEditor.toast.validationSummary`),detail:t(`scenarioEditor.toast.nameRequired`),life:3e3});return}if(!H.value.length){a.add({severity:`warn`,summary:t(`scenarioEditor.toast.validationSummary`),detail:t(`scenarioEditor.toast.nodeRequired`),life:3e3});return}if(!H.value.some(e=>e.id===R.value)){a.add({severity:`warn`,summary:t(`scenarioEditor.toast.validationSummary`),detail:t(`scenarioEditor.toast.leaderRequired`),life:3e3});return}Nt();let e={name:Me.value.trim(),icon:Pe.value.trim()||void 0,description:Fe.value.trim()||void 0,leaderId:R.value,traversalMode:z.value,presetId:Ie.value,isPublished:Le.value,groups:V.value,nodes:H.value};try{if(Ae.value){let n=await re.createScenario(e);a.add({severity:`success`,summary:t(`scenarioEditor.toast.createdSummary`),detail:t(`scenarioEditor.toast.createdDetail`),life:2500}),r.replace({name:`scenario-edit`,params:{id:n.id}})}else await re.updateScenario(we.value,e),a.add({severity:`success`,summary:t(`scenarioEditor.toast.savedSummary`),detail:t(`scenarioEditor.toast.savedDetail`),life:2500})}catch(e){a.add({severity:`error`,summary:`Error`,detail:e.message,life:3500})}}function It(){r.push({name:`settings`,query:{section:`scenario`}})}let Lt=M(!1),Rt=M(``),J=M(!1),zt=M(``),Bt=M(``),Vt=M(1),Ht=M(null),Ut=M(null),Wt=Ee({leaderId:ke().max(128),groups:Te(P).max(100),nodes:Te(ue).max(500)}),Gt=M(null),Kt=null;function qt(){!Rt.value.trim()||J.value||(Kt?.unsubscribe(),zt.value=``,Gt.value=null,Bt.value=``,J.value=!0,Kt=ne.scenario.streamGenerateWithAI.subscribe({prompt:Rt.value.trim(),providerId:Ht.value??void 0,model:Ut.value??void 0,current:V.value.length>0||H.value.length>0?{leaderId:R.value,groups:V.value,nodes:H.value}:void 0},{onData(e){if(e.type===`delta`)zt.value+=e.text;else if(e.type===`done`){J.value=!1;let e=zt.value.trim(),n=e.match(/```(?:json)?\s*([\s\S]*?)```/);n&&(e=n[1].trim());try{Gt.value=Wt.parse(JSON.parse(e))}catch{Bt.value=t(`scenarioEditor.toast.invalidJson`)}}},onError(e){J.value=!1,Bt.value=e.message??`Unknown error`},onComplete(){J.value=!1}}))}function Jt(){if(!Gt.value)return;let{leaderId:e,groups:n,nodes:r}=Gt.value;R.value=e,V.value=n,H.value=r,Gt.value=null,zt.value=``,Rt.value=``,Lt.value=!1,a.add({severity:`success`,summary:t(`scenarioEditor.toast.appliedSummary`),detail:t(`scenarioEditor.toast.appliedDetail`),life:3e3})}let Yt=M(!1),Xt=M(!1),Zt=M(``),Qt=M(``),$t=f(()=>JSON.stringify({name:Me.value,description:Fe.value||void 0,leaderId:R.value,groups:V.value,nodes:H.value},null,2));async function en(){await navigator.clipboard.writeText($t.value),a.add({severity:`success`,summary:t(`scenarioEditor.toast.copiedSummary`),life:2e3})}let tn=Ee({leaderId:ke().max(128),groups:Te(P).max(100),nodes:Te(ue).max(500),name:ke().max(200).optional(),description:ke().max(2e3).optional()});function nn(){Qt.value=``;try{let e=tn.parse(JSON.parse(Zt.value));e.name&&(Me.value=e.name),e.description&&(Fe.value=e.description),R.value=e.leaderId,V.value=e.groups,H.value=e.nodes,Xt.value=!1,a.add({severity:`success`,summary:t(`scenarioEditor.toast.importedSummary`),life:2e3})}catch(e){Qt.value=e.message}}return Oe(()=>{Kt?.unsubscribe()}),C(async()=>{await Promise.all([Pt(),Ue()])}),(e,n)=>{let r=pe(`tooltip`);return o(),S(l,null,[k(`div`,us,[k(`div`,ds,[k(`div`,fs,[L(j(I),{icon:`pi pi-arrow-left`,text:``,rounded:``,onClick:It}),E((o(),S(`div`,ps,[k(`i`,{class:xe(Pe.value?`pi ${Pe.value}`:`pi pi-image`),style:{opacity:`0.5`}},null,2),L(j(le),{modelValue:Pe.value,"onUpdate:modelValue":n[0]||=e=>Pe.value=e,style:{width:`130px`,"font-size":`0.8rem`},placeholder:`pi-building`},null,8,[`modelValue`])])),[[r,`PrimeIcons class (ex: pi-building, pi-users)`,void 0,{bottom:!0}]]),L(j(le),{modelValue:Me.value,"onUpdate:modelValue":n[1]||=e=>Me.value=e,class:`scenario-editor__name`,placeholder:j(t)(`scenarioEditor.placeholderName`)},null,8,[`modelValue`,`placeholder`]),L(j(le),{modelValue:Fe.value,"onUpdate:modelValue":n[2]||=e=>Fe.value=e,class:`scenario-editor__desc`,placeholder:j(t)(`scenarioEditor.placeholderDescription`)},null,8,[`modelValue`,`placeholder`]),n[40]||=k(`div`,{style:{flex:`1`}},null,-1),E(L(j(I),{icon:Le.value?`pi pi-globe`:`pi pi-lock`,severity:Le.value?`success`:`secondary`,text:``,rounded:``,onClick:n[3]||=e=>Le.value=!Le.value},null,8,[`icon`,`severity`]),[[r,Le.value?j(t)(`scenarioEditor.tooltipUnpublish`):j(t)(`scenarioEditor.tooltipPublish`),void 0,{bottom:!0}]]),E(L(j(I),{icon:`pi pi-save`,onClick:Ft},null,512),[[r,j(t)(`scenarioEditor.tooltipSave`),void 0,{bottom:!0}]])]),k(`div`,ms,[Re.value.length>0?(o(),O(j(ie),{key:Ke.value,"model-value":Ie.value,options:[{label:j(t)(`scenarioEditor.noPreset`),value:void 0},...Re.value.map(e=>({label:e.name,value:e.id}))],"option-label":`label`,"option-value":`value`,size:`small`,placeholder:j(t)(`scenarioEditor.noPreset`),class:`scenario-editor__preset-select`,"onUpdate:modelValue":Ye},null,8,[`model-value`,`options`,`placeholder`])):A(``,!0),L(j(ie),{"model-value":z.value,options:[{label:j(t)(`scenarioEditor.traversalHierarchical`),value:`hierarchical`},{label:j(t)(`scenarioEditor.traversalTopological`),value:`topological`}],"option-label":`label`,"option-value":`value`,size:`small`,disabled:ze.value!=null&&ze.value.canChangeTraversalMode===!1,class:`scenario-editor__traversal-select`,"onUpdate:modelValue":At},null,8,[`model-value`,`options`,`disabled`]),E(k(`i`,hs,null,512),[[r,{value:j(t)(`scenarioEditor.traversalHelp`),escape:!1},void 0,{bottom:!0}]]),n[43]||=k(`div`,{class:`scenario-editor__toolbar-sep`},null,-1),E(L(j(I),{title:j(B).group,icon:`pi pi-plus`,text:``,size:`small`,severity:`secondary`,label:j(B).group,class:`scenario-editor__toolbar-btn`,onClick:ot},null,8,[`title`,`label`]),[[r,`${j(t)(`actions.add`)} ${j(B).group.toLowerCase()}`,void 0,{bottom:!0}]]),E(L(j(I),{title:j(B).node,icon:`pi pi-plus`,text:``,size:`small`,severity:`secondary`,label:j(B).node,class:`scenario-editor__toolbar-btn`,onClick:Ve},null,8,[`title`,`label`]),[[r,`${j(t)(`actions.add`)} ${j(B).node.toLowerCase()}`,void 0,{bottom:!0}]]),L(j(se),{ref_key:`addNodePopover`,ref:Be},{default:T(()=>[k(`div`,gs,[k(`button`,{class:`add-node-popover__item`,onClick:n[4]||=e=>He(`ai`)},[n[41]||=k(`i`,{class:`pi pi-microchip-ai`,style:{"font-size":`1.1rem`}},null,-1),k(`div`,_s,[k(`span`,vs,`AI `+D(j(B).node),1),k(`span`,ys,D(j(t)(`scenarioEditor.aiNodeDesc`)),1)])]),k(`button`,{class:`add-node-popover__item`,onClick:n[5]||=e=>He(`ask`)},[n[42]||=k(`i`,{class:`pi pi-comment`,style:{"font-size":`1.1rem`}},null,-1),k(`div`,bs,[k(`span`,xs,`Ask `+D(j(B).node),1),k(`span`,Ss,D(j(t)(`scenarioEditor.askNodeDesc`)),1)])])])]),_:1},512),n[44]||=k(`div`,{style:{flex:`1`}},null,-1),E(L(j(I),{icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:kt},null,512),[[r,j(t)(`scenarioEditor.tooltipAutoLayout`),void 0,{bottom:!0}]]),E(L(j(I),{icon:`pi pi-upload`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[6]||=e=>{Xt.value=!0,Zt.value=``,Qt.value=``}},null,512),[[r,j(t)(`scenarioEditor.tooltipImport`),void 0,{bottom:!0}]]),E(L(j(I),{icon:`pi pi-download`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[7]||=e=>Yt.value=!0},null,512),[[r,j(t)(`scenarioEditor.tooltipExport`),void 0,{bottom:!0}]]),E(L(j(I),{icon:`pi pi-sparkles`,text:``,rounded:``,size:`small`,severity:Lt.value?`contrast`:`secondary`,onClick:n[8]||=e=>Lt.value=!Lt.value},null,8,[`severity`]),[[r,Lt.value?j(t)(`scenarioEditor.tooltipCloseAI`):j(t)(`scenarioEditor.tooltipGenerateAI`),void 0,{bottom:!0}]])])]),k(`div`,Cs,[Lt.value?(o(),S(`div`,ws,[k(`div`,Ts,[n[45]||=k(`i`,{class:`pi pi-sparkles`},null,-1),k(`span`,null,D(j(t)(`scenarioEditor.aiPanelTitle`)),1)]),Vt.value>0?(o(),S(`div`,Es,[k(`label`,Ds,D(j(t)(`scenarioEditor.aiProvider`)),1),L(i,{"input-id":`scened-ai-provider`,modelValue:Ht.value,"onUpdate:modelValue":n[9]||=e=>Ht.value=e,model:Ut.value,"onUpdate:model":n[10]||=e=>Ut.value=e,"storage-key":`runeya.scenario.generateAi`,"hide-when-single":!1,placeholder:j(t)(`scenarioEditor.aiSelectProvider`),class:`w-full`,disabled:J.value,onLoaded:n[11]||=e=>Vt.value=e},null,8,[`modelValue`,`model`,`placeholder`,`disabled`])])):(o(),S(`div`,Os,[n[46]||=k(`i`,{class:`pi pi-exclamation-triangle`},null,-1),k(`span`,{innerHTML:j(t)(`scenarioEditor.aiNoProvider`)},null,8,ks)])),L(j(Se),{modelValue:Rt.value,"onUpdate:modelValue":n[12]||=e=>Rt.value=e,placeholder:j(t)(`scenarioEditor.aiPromptPlaceholder`),rows:4,class:`scenario-editor__ai-textarea`,disabled:J.value,onKeydown:u(te(qt,[`ctrl`]),[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`,`onKeydown`]),L(j(I),{label:J.value?j(t)(`scenarioEditor.aiGenerating`):H.value.length>0?j(t)(`scenarioEditor.aiModify`):j(t)(`scenarioEditor.aiGenerate`),icon:`pi pi-sparkles`,loading:J.value,disabled:!Rt.value.trim(),class:`scenario-editor__ai-btn`,onClick:qt},null,8,[`label`,`loading`,`disabled`]),k(`p`,As,D(j(t)(`scenarioEditor.aiHint`)),1),zt.value||J.value?(o(),S(`div`,js,[k(`div`,Ms,[J.value?(o(),S(`i`,Ns)):Gt.value?(o(),S(`i`,Ps)):(o(),S(`i`,Fs)),k(`span`,null,D(J.value?j(t)(`scenarioEditor.aiGenerating`):Gt.value?j(t)(`scenarioEditor.aiValidJson`):j(t)(`scenarioEditor.aiRawResponse`)),1)]),k(`pre`,Is,D(zt.value),1)])):A(``,!0),Bt.value?(o(),S(`div`,Ls,[n[47]||=k(`i`,{class:`pi pi-times-circle`},null,-1),ye(` `+D(Bt.value),1)])):A(``,!0),Gt.value?(o(),O(j(I),{key:4,label:j(t)(`scenarioEditor.aiApply`),icon:`pi pi-check`,severity:`success`,class:`scenario-editor__ai-btn`,onClick:Jt},null,8,[`label`])):A(``,!0)])):A(``,!0),k(`div`,{class:`scenario-editor__canvas`,tabindex:`0`,onKeydown:be},[L(j(v),{nodes:nt.value,edges:at.value,"nodes-draggable":!0,"nodes-connectable":!0,"elements-selectable":!0,"delete-key-code":null,"fit-view-on-init":``,id:fc,class:`scenario-flow-canvas`,onNodeDragStop:St,onNodeClick:Tt,onEdgeClick:wt,onPaneClick:n[13]||=e=>{U.value=void 0,W.value=void 0,q.value=void 0},onConnect:Et,onNodesChange:xt,onEdgesChange:bt},{"node-default":T(e=>[L(De,d(Ce(e)),null,16)]),"node-group":T(e=>[L(ee,ve(e,{onUpdateLabel:vt,onResizeEnd:yt,onRemove:ut}),null,16)]),default:T(()=>[L(j(Qe)),L(j(Do))]),_:1},8,[`nodes`,`edges`])],32),L(g,{name:`drawer`},{default:T(()=>[W.value||U.value?(o(),S(`div`,Rs,[k(`div`,zs,[k(`i`,{class:xe([W.value?`pi pi-users`:`pi pi-microchip-ai`,`detail-header__icon`])},null,2),k(`span`,Bs,D(W.value?j(B).group:j(B).node),1),L(j(I),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,class:`detail-header__close`,onClick:n[14]||=e=>{W.value=void 0,U.value=void 0}})]),W.value&&V.value.find(e=>e.id===W.value)?(o(),S(l,{key:0},[k(`div`,Vs,[k(`div`,Hs,[k(`label`,Us,D(j(t)(`scenarioEditor.groupName`)),1),L(j(le),{id:`scened-group-name`,"model-value":V.value.find(e=>e.id===W.value).name,class:`w-full`,size:`small`,"onUpdate:modelValue":n[15]||=e=>K(W.value,{name:e})},null,8,[`model-value`])]),k(`div`,Ws,[k(`label`,Gs,D(j(t)(`scenarioEditor.groupDescription`)),1),L(j(Se),{id:`scened-group-desc`,"model-value":V.value.find(e=>e.id===W.value).description??``,class:`w-full`,placeholder:j(t)(`scenarioEditor.groupDescriptionPlaceholder`),rows:`3`,"auto-resize":``,style:{resize:`none`},"onUpdate:modelValue":n[16]||=e=>K(W.value,{description:e||void 0})},null,8,[`model-value`,`placeholder`])]),k(`div`,Ks,[k(`label`,qs,D(j(t)(`scenarioEditor.groupAccentColor`)),1),k(`div`,Js,[k(`input`,{id:`scened-group-color`,type:`color`,value:V.value.find(e=>e.id===W.value).color??`#6366f1`,class:`detail-color-picker`,onInput:n[17]||=e=>K(W.value,{color:e.target.value})},null,40,Ys),L(j(le),{"model-value":V.value.find(e=>e.id===W.value).color??``,placeholder:`#6366f1`,size:`small`,class:`detail-color-text`,"onUpdate:modelValue":n[18]||=e=>K(W.value,{color:e||void 0})},null,8,[`model-value`]),V.value.find(e=>e.id===W.value).color?E((o(),O(j(I),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[19]||=e=>K(W.value,{color:void 0})},null,512)),[[r,j(t)(`scenarioEditor.groupResetColor`)]]):A(``,!0)])])]),k(`div`,Xs,[L(j(I),{label:`${j(t)(`actions.delete`)} ${j(B).group.toLowerCase()}`,icon:`pi pi-trash`,severity:`danger`,outlined:``,size:`small`,class:`w-full`,onClick:n[20]||=e=>ut(W.value)},null,8,[`label`])])],64)):U.value&&H.value.find(e=>e.id===U.value)?(o(),S(l,{key:1},[(o(),O(ls,{key:U.value,node:H.value.find(e=>e.id===U.value),groups:V.value,nodes:H.value,"leader-id":R.value,preset:ze.value,"traversal-mode":z.value,onUpdate:jt,onDelete:Mt,onSetLeader:n[21]||=e=>R.value=e},null,8,[`node`,`groups`,`nodes`,`leader-id`,`preset`,`traversal-mode`])),U.value===R.value?A(``,!0):(o(),S(`div`,Zs,[L(j(I),{label:`${j(t)(`actions.delete`)} ${j(B).node.toLowerCase()}`,icon:`pi pi-trash`,severity:`danger`,outlined:``,size:`small`,class:`w-full`,onClick:n[22]||=e=>Mt(U.value)},null,8,[`label`])]))],64)):A(``,!0)])):A(``,!0)]),_:1})])]),L(j(N),{visible:b.value,"onUpdate:visible":n[24]||=e=>b.value=e,header:j(t)(`scenarioEditor.multiParentNoticeTitle`),modal:``,style:{width:`420px`}},{footer:T(()=>[L(j(I),{label:j(t)(`actions.ok`),onClick:Dt},null,8,[`label`])]),default:T(()=>[k(`p`,Qs,D(j(t)(`scenarioEditor.multiParentNoticeMessage`)),1),k(`div`,$s,[L(j(je),{modelValue:x.value,"onUpdate:modelValue":n[23]||=e=>x.value=e,binary:``,"input-id":`dontShowAgain`},null,8,[`modelValue`]),k(`label`,ec,D(j(t)(`scenarioEditor.dontShowAgain`)),1)])]),_:1},8,[`visible`,`header`]),L(j(N),{visible:st.value,"onUpdate:visible":n[27]||=e=>st.value=e,header:j(t)(`scenarioEditor.deleteGroupTitle`),modal:``,style:{width:`380px`}},{footer:T(()=>[L(j(I),{label:j(t)(`actions.cancel`),text:``,onClick:n[25]||=e=>st.value=!1},null,8,[`label`]),L(j(I),{label:j(t)(`actions.delete`),severity:`danger`,onClick:n[26]||=()=>{st.value=!1,dt(ct.value)}},null,8,[`label`])]),default:T(()=>[k(`p`,tc,D(j(t)(`scenarioEditor.deleteGroupMessage`,{count:lt.value})),1)]),_:1},8,[`visible`,`header`]),L(j(N),{visible:p.value,"onUpdate:visible":n[30]||=e=>p.value=e,header:j(t)(`scenarioEditor.switchToHierarchicalTitle`),modal:``,style:{width:`400px`}},{footer:T(()=>[L(j(I),{label:j(t)(`actions.cancel`),text:``,onClick:n[28]||=e=>p.value=!1},null,8,[`label`]),L(j(I),{label:j(t)(`actions.confirm`),severity:`danger`,onClick:n[29]||=()=>{p.value=!1,z.value=`hierarchical`,Ot()}},null,8,[`label`])]),default:T(()=>[k(`p`,nc,D(j(t)(`scenarioEditor.switchToHierarchicalMessage`)),1),k(`ul`,rc,[(o(!0),S(l,null,y(m.value,e=>(o(),S(`li`,{key:`${e.from}-${e.to}`},[k(`span`,ic,D(e.from),1),n[48]||=k(`i`,{class:`pi pi-arrow-right switch-dialog__arrow`},null,-1),k(`span`,ac,D(e.to),1)]))),128))])]),_:1},8,[`visible`,`header`]),L(j(N),{visible:$e.value,"onUpdate:visible":n[33]||=e=>$e.value=e,header:et.value===`ask`?`${j(t)(`actions.add`)} Ask ${j(B).node}`:`${j(t)(`actions.add`)} AI ${j(B).node}`,modal:``,style:{width:`360px`}},{footer:T(()=>[L(j(I),{label:j(t)(`actions.cancel`),severity:`secondary`,text:``,onClick:n[32]||=e=>$e.value=!1},null,8,[`label`]),L(j(I),{label:j(t)(`actions.add`),icon:`pi pi-user-plus`,disabled:!G.value,onClick:ht},null,8,[`label`,`disabled`])]),default:T(()=>[k(`div`,oc,[k(`label`,sc,[ye(D(j(B).group)+` `,1),n[49]||=k(`span`,{class:`required`},`*`,-1)]),L(j(ie),{"input-id":`scened-add-node-group`,modelValue:G.value,"onUpdate:modelValue":n[31]||=e=>G.value=e,options:V.value.map(e=>({label:e.name,value:e.id})),"option-label":`label`,"option-value":`value`,placeholder:`${j(t)(`actions.add`)} ${j(B).group.toLowerCase()}`,class:`w-full`},null,8,[`modelValue`,`options`,`placeholder`])])]),_:1},8,[`visible`,`header`]),L(j(N),{visible:Yt.value,"onUpdate:visible":n[35]||=e=>Yt.value=e,header:j(t)(`scenarioEditor.exportHeader`),modal:``,style:{width:`600px`}},{footer:T(()=>[L(j(I),{label:j(t)(`scenarioEditor.copyJson`),icon:`pi pi-copy`,onClick:en},null,8,[`label`]),L(j(I),{label:j(t)(`actions.close`),severity:`secondary`,text:``,onClick:n[34]||=e=>Yt.value=!1},null,8,[`label`])]),default:T(()=>[k(`pre`,cc,D($t.value),1)]),_:1},8,[`visible`,`header`]),L(j(N),{visible:Xt.value,"onUpdate:visible":n[38]||=e=>Xt.value=e,header:j(t)(`scenarioEditor.importHeader`),modal:``,style:{width:`600px`}},{footer:T(()=>[L(j(I),{label:j(t)(`actions.cancel`),severity:`secondary`,text:``,onClick:n[37]||=e=>Xt.value=!1},null,8,[`label`]),L(j(I),{label:j(t)(`actions.apply`),icon:`pi pi-check`,disabled:!Zt.value.trim(),onClick:nn},null,8,[`label`,`disabled`])]),default:T(()=>[L(j(Se),{modelValue:Zt.value,"onUpdate:modelValue":n[36]||=e=>Zt.value=e,rows:`12`,class:`w-full`,placeholder:j(t)(`scenarioEditor.importPlaceholder`)},null,8,[`modelValue`,`placeholder`]),Qt.value?(o(),S(`p`,lc,D(Qt.value),1)):A(``,!0)]),_:1},8,[`visible`,`header`]),L(j(N),{visible:We.value,"onUpdate:visible":n[39]||=e=>We.value=e,header:j(t)(`scenarioEditor.applyPresetHeader`),modal:``,style:{width:`400px`}},{footer:T(()=>[L(j(I),{label:j(t)(`actions.cancel`),severity:`secondary`,text:``,onClick:Ze},null,8,[`label`]),L(j(I),{label:j(t)(`scenarioEditor.applyPresetConfirm`),icon:`pi pi-refresh`,severity:`warn`,onClick:Xe},null,8,[`label`])]),default:T(()=>[k(`p`,uc,D(j(t)(`scenarioEditor.applyPresetMessage`)),1)]),_:1},8,[`visible`,`header`])],64)}}}),[[`__scopeId`,`data-v-bd84df09`]]);export{vc as default};
@@ -0,0 +1 @@
1
+ import{Ei as e,Fn as t,Xr as n,_a as r,ai as i,ca as a,jn as o,p as s,x as c}from"./index-CcDpHMIW.js";import{t as l}from"./cloud-session-B1oqwDJc.js";import{t as u}from"./src-BotO3dQ7.js";import{t as d}from"./auth-errors-BJV46AcQ.js";var f=i({__name:`SendToChatDialog`,setup(i,{expose:f}){let{t:p}=t(),m=o(),{user:h}=l(),g=c(s,d()),_=a(null);function v(e,t){return t?p(`sendToChat.${e}`,t):p(`sendToChat.${e}`)}function y(){m.add({severity:`success`,summary:p(`sendToChat.sent`),life:2500})}async function b(e){h.value&&await g.refresh(),_.value?.open(e)}return f({open:b}),(t,i)=>(e(),n(r(u),{ref_key:`dialogRef`,ref:_,client:r(s),t:v,"current-user-id":r(h)?.id,organizations:r(g).organizations.value,onSent:y},null,8,[`client`,`current-user-id`,`organizations`]))}});export{f as t};
@@ -0,0 +1 @@
1
+ import{Ei as e,Fn as t,J as n,Jr as r,Qr as i,Yr as a,_a as o,ai as s,in as c,ln as l,ri as u}from"./index-CcDpHMIW.js";import{t as d}from"./ProcessControls-RuqRu4r_.js";var f={class:`service-controls-bar`},p={class:`service-controls-bar__left`},m={class:`service-controls-bar__right`},h=l(s({__name:`ServiceControlsBar`,props:{service:{},processes:{}},setup(s){let l=s,h=r(()=>l.processes.find(e=>e.state===`running`||e.state===`starting`)??l.processes[0]??null),g=r(()=>h.value?h.value.state:`stopped`),{t:_}=t(),v=n(),y=r(()=>{let e=l.service.effectiveAgentId;return e?v.getById(e)?.config.name??e:null}),b=r(()=>{switch(g.value){case`running`:return`success`;case`starting`:return`warn`;case`errored`:return`danger`;default:return`secondary`}});return(t,n)=>(e(),i(`div`,f,[a(`div`,p,[u(o(c),{value:g.value,severity:b.value,class:`service-controls-bar__tag`},null,8,[`value`,`severity`]),u(o(c),{value:y.value??o(_)(`serviceHeader.noAgent`),severity:y.value?`secondary`:`warn`,icon:`pi pi-server`,class:`service-controls-bar__tag`},null,8,[`value`,`severity`])]),a(`div`,m,[u(d,{"agent-id":h.value?.agentId??s.service.agentId??``,"process-id":h.value?.id??s.service.id,state:h.value?.state??`stopped`},null,8,[`agent-id`,`process-id`,`state`])])]))}}),[[`__scopeId`,`data-v-541498f0`]]);export{h as t};