dorkos 0.119.0 → 0.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/dist/bin/cli.js +3332 -2835
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-DPEGtCwv.js → AboutPage-CtI8gbER.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-ENqFKw2l.js → ActivityErrorState-CHTXfBS7.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-Bh3Fhkkr.js → ActivityPage-B8p4yYJL.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-Mj9YGZo2.js → ActivityRow-CSuSz-92.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-BcejWkC-.js → AdapterIcon-Qnxn0cE5.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-CEnUjD84.js → AdapterSetupWizard-BG8H-Lld.js} +1 -1
  10. package/dist/client/assets/{AgentOptionRow-DcKMOkUs.js → AgentOptionRow-BWFQFynn.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-W6XeKjz9.js → AgentPicker-CL93SET3.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-C8xPf4Ij.js → AgentRequestCard-CamX7Tvr.js} +3 -3
  13. package/dist/client/assets/{AppearancePage-uoWRNL1C.js → AppearancePage-rN70_7ih.js} +1 -1
  14. package/dist/client/assets/{ApplyToOverridesDialog-C5Nf8pjH.js → ApplyToOverridesDialog-DeWaXbgm.js} +1 -1
  15. package/dist/client/assets/{AttentionSignalRow-BI-uQ-ay.js → AttentionSignalRow-CKcSWExi.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Cpi-0c7y.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BwYaLf2P.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-B3vCYvfL.js → BindingDialog-DqPDLYbF.js} +1 -1
  18. package/dist/client/assets/BlintzCanvas-DoAZs5bz.js +1231 -0
  19. package/dist/client/assets/{BlintzCanvas-GgiCXV7C.css → BlintzCanvas-xZ3u3nk7.css} +1 -1
  20. package/dist/client/assets/{CanvasCsvContent-DtZuAo03.js → CanvasCsvContent-ViqRJuhW.js} +1 -1
  21. package/dist/client/assets/CanvasFileContent-ClcHZ_l-.js +2 -0
  22. package/dist/client/assets/{CanvasModel3dContent-BlYcTOLd.js → CanvasModel3dContent-Cm3msNdQ.js} +2 -2
  23. package/dist/client/assets/{ChatAppsOff-B996C06C.js → ChatAppsOff-D0PbHYqF.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorDiff-UfNeO6Wa.js → CodeMirrorDiff-DFNSXeuV.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorEditor-BMSnTJnS.js → CodeMirrorEditor-AgkgsSqN.js} +1 -1
  26. package/dist/client/assets/{CommitmentList-LBnn140g.js → CommitmentList-0V6QivXH.js} +1 -1
  27. package/dist/client/assets/{CommitmentsPage-BNEP939u.js → CommitmentsPage-i3XoHwBj.js} +1 -1
  28. package/dist/client/assets/{ComputerResourceView-C97PoLhs.js → ComputerResourceView-RPoBc-km.js} +1 -1
  29. package/dist/client/assets/{ComputerViewer-DVaP4S-x.js → ComputerViewer-2ugaCd0H.js} +1 -1
  30. package/dist/client/assets/{ConnectionAccessLists-COotkMKW.js → ConnectionAccessLists-DaPP4U96.js} +1 -1
  31. package/dist/client/assets/{ConnectionsPage-DMqldmCl.js → ConnectionsPage-BVqYvfk5.js} +2 -2
  32. package/dist/client/assets/{ConventionPage-DXcAUNjb.js → ConventionPage-BoqncrFd.js} +1 -1
  33. package/dist/client/assets/{ExtensionPageRoute-Cx-zCEnS.js → ExtensionPageRoute-BrOEeNX3.js} +2 -2
  34. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-U9QmMzNM.js → FloatingTanStackRouterDevtools-CqogiFob-DLwix3K7.js} +1 -1
  35. package/dist/client/assets/HandlePage-B_5GLHsp.js +1 -0
  36. package/dist/client/assets/{HeartbeatPage-lS53N7qR.js → HeartbeatPage-DgXhbaBJ.js} +1 -1
  37. package/dist/client/assets/KeyEntry-CRr32Ae5.js +1 -0
  38. package/dist/client/assets/{LexicalField-NpV0yrX5.js → LexicalField-DeAoA6yr.js} +1 -1
  39. package/dist/client/assets/{ManagesPage-Dvjt_Ql0.js → ManagesPage-ZBWYLTZx.js} +1 -1
  40. package/dist/client/assets/{Marketplace-BXrL6XrG.js → Marketplace-iL5p8Omt.js} +4 -4
  41. package/dist/client/assets/{MarketplaceSourcesView-Xm9UboIG.js → MarketplaceSourcesView-CsNLVOdP.js} +1 -1
  42. package/dist/client/assets/{McpAppFrame-BOhSmDHb.js → McpAppFrame-B1WPswgk.js} +1 -1
  43. package/dist/client/assets/McpSigninBody-CJ28yu0o.js +1 -0
  44. package/dist/client/assets/{Model3dViewer-B0efG9VW.js → Model3dViewer-BIZWdK8g.js} +1 -1
  45. package/dist/client/assets/NamePage-0nr288eM.js +1 -0
  46. package/dist/client/assets/{NewDirectMessageMenu-BOwmahin.js → NewDirectMessageMenu-DRx9e9kM.js} +1 -1
  47. package/dist/client/assets/{NotificationsPage-pQg9DtG3.js → NotificationsPage-cfqgSuVy.js} +1 -1
  48. package/dist/client/assets/{OpenMeshSwitch-C5dCRdqs.js → OpenMeshSwitch-BIIuKDku.js} +1 -1
  49. package/dist/client/assets/{OperatorIdentityForm-CgSvpX-s.js → OperatorIdentityForm-BKUSGrs6.js} +1 -1
  50. package/dist/client/assets/{PermissionHistory-ChEe8iYR.js → PermissionHistory-Ctdqhib6.js} +1 -1
  51. package/dist/client/assets/{PermissionsPage-C8gICIw9.js → PermissionsPage-CYA_zdrV.js} +1 -1
  52. package/dist/client/assets/{PersonalityPopover-DcuHjnIT.js → PersonalityPopover-BR4Cpr2C.js} +1 -1
  53. package/dist/client/assets/PhotoPage-C3Ir3wlA.js +1 -0
  54. package/dist/client/assets/{PresetPicker-C-HcfktA.js → PresetPicker-zGvDOqTf.js} +2 -2
  55. package/dist/client/assets/{PreviewRefusedNotice-CgJeWKad.js → PreviewRefusedNotice-D1Tl265t.js} +1 -1
  56. package/dist/client/assets/{ProfileFields-Bpe71duM.js → ProfileFields-T3vVbHRC.js} +1 -1
  57. package/dist/client/assets/{ProfilePanelContainer-r2T2nLuy.js → ProfilePanelContainer-CParzTPA.js} +1 -1
  58. package/dist/client/assets/{ProfileRolePicker-B9as28eL.js → ProfileRolePicker-BU4eiMKn.js} +1 -1
  59. package/dist/client/assets/{PromptSuggestionChips-BjyRYcZH.js → PromptSuggestionChips-CGNQc2Tf.js} +1 -1
  60. package/dist/client/assets/{ReportsToPopover-Bs59IbmP.js → ReportsToPopover-Dj5U_Ppi.js} +1 -1
  61. package/dist/client/assets/{RoomSurface-CcxCucEt.js → RoomSurface-BIyjtxKD.js} +7 -7
  62. package/dist/client/assets/{RoomsPage-gAEppmDN.js → RoomsPage-Cvs3h6f0.js} +1 -1
  63. package/dist/client/assets/{RunsOnPopover-BYqbPh-k.js → RunsOnPopover-BUlYwRW4.js} +1 -1
  64. package/dist/client/assets/{RuntimeConnectFlow-BmMBE_ki.js → RuntimeConnectFlow-ChrvjC84.js} +1 -1
  65. package/dist/client/assets/{RuntimeSetupDialog-DsDi5RBn.js → RuntimeSetupDialog-BK9yo7YF.js} +1 -1
  66. package/dist/client/assets/{SessionsPage-Cid8fhdk.js → SessionsPage-CWUwU3US.js} +1 -1
  67. package/dist/client/assets/SettingsDialog-BApzy0J8.js +12 -0
  68. package/dist/client/assets/{SkillsPage-YiAaBf5n.js → SkillsPage-z3XnApNX.js} +1 -1
  69. package/dist/client/assets/{TaskDialogWrapper-BZ19n03x.js → TaskDialogWrapper-BEWUpAlk.js} +1 -1
  70. package/dist/client/assets/{TasksEmptyState-RqhzTXZs.js → TasksEmptyState-CLwpLnIO.js} +2 -2
  71. package/dist/client/assets/{TasksPage-CkaqOq26.js → TasksPage-CyHjr9OZ.js} +1 -1
  72. package/dist/client/assets/{TeamComputerEntry-BFwHEcxT.js → TeamComputerEntry-BHHIofx3.js} +1 -1
  73. package/dist/client/assets/{ToolsPage-BnCLKQr8.js → ToolsPage-CckCco8x.js} +2 -2
  74. package/dist/client/assets/TopologyGraph-Dox7aWP3.js +30 -0
  75. package/dist/client/assets/{TourHost-D6Lclw6P.js → TourHost-CTBewD-a.js} +1 -1
  76. package/dist/client/assets/{UnlinkDialog-DqKrNRIZ.js → UnlinkDialog-CFRgExId.js} +1 -1
  77. package/dist/client/assets/{WidgetErrorCard-YpoGnbGt.js → WidgetErrorCard-Dx5oPMlF.js} +3 -3
  78. package/dist/client/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  79. package/dist/client/assets/_shell-BHUZq_8C.js +80 -0
  80. package/dist/client/assets/{_shell._home-BcVOIprN.js → _shell._home-DnBkgWs4.js} +1 -1
  81. package/dist/client/assets/{_shell._home.activity-B-5keh6v.js → _shell._home.activity-CVCC-EEI.js} +1 -1
  82. package/dist/client/assets/{_shell._home.index-CeUO_fiS.js → _shell._home.index-Ck6jxwIx.js} +1 -1
  83. package/dist/client/assets/{_shell._home.tasks-DrghkSwu.js → _shell._home.tasks-B7QQAZnA.js} +1 -1
  84. package/dist/client/assets/{_shell._home.workspaces-ClpXSXb7.js → _shell._home.workspaces-DlrRd9tv.js} +1 -1
  85. package/dist/client/assets/_shell.channels-CiWehoyl.js +10 -0
  86. package/dist/client/assets/{_shell.connections-BAyaKCu0.js → _shell.connections-CGP5hZHq.js} +1 -1
  87. package/dist/client/assets/{_shell.feedback-requests-C_0Cb9ew.js → _shell.feedback-requests-BxxNvw6j.js} +1 -1
  88. package/dist/client/assets/_shell.marketplace-BoAmyvPt.js +1 -0
  89. package/dist/client/assets/_shell.marketplace_.sources-BpqWjkGL.js +1 -0
  90. package/dist/client/assets/{_shell.session-DAOicD3_.js → _shell.session-KyPj3OxK.js} +17 -17
  91. package/dist/client/assets/{_shell.team-C9JBEYch.js → _shell.team-CsXH3NkS.js} +6 -6
  92. package/dist/client/assets/_shell.x._extensionId-CfiAgtoq.js +1 -0
  93. package/dist/client/assets/_shell.x._extensionId_._-CfiAgtoq.js +1 -0
  94. package/dist/client/assets/abnfDiagram-WEYOIA3C-CMdkyiQ3.js +1 -0
  95. package/dist/client/assets/{access-copy-DBchOVu9.js → access-copy-CW-z1oMH.js} +1 -1
  96. package/dist/client/assets/arc-Bw7tftQk.js +1 -0
  97. package/dist/client/assets/architectureDiagram-ZHVYKT53-BhpXALtX.js +36 -0
  98. package/dist/client/assets/{banner-DyAc42ob.js → banner-EomQNDOH.js} +1 -1
  99. package/dist/client/assets/blockDiagram-RJAE7QA3-Bxk_BuZv.js +140 -0
  100. package/dist/client/assets/c4Diagram-XDPPPE54-CYN0FwR8.js +38 -0
  101. package/dist/client/assets/{card-B1UFbnvJ.js → card-ww4ebz8h.js} +1 -1
  102. package/dist/client/assets/channel-DZpRF3QJ.js +1 -0
  103. package/dist/client/assets/chunk-2E7WHVMD-IPDvYcPa.js +88 -0
  104. package/dist/client/assets/chunk-2Q5K7J3B-DZ5bU5Ax.js +1 -0
  105. package/dist/client/assets/chunk-4EMNKR2T-DrsWxa6Y.js +1 -0
  106. package/dist/client/assets/chunk-55XCU76K-CiBbKG0b.js +1 -0
  107. package/dist/client/assets/chunk-5VM5RSS4-B3K3MUav.js +15 -0
  108. package/dist/client/assets/chunk-JWPE2WC7-CjV5RcIh.js +1 -0
  109. package/dist/client/assets/chunk-VQ5W62QI-CWoRr0H2.js +1 -0
  110. package/dist/client/assets/chunk-XXDRQBXY-E0nvzXiG.js +1 -0
  111. package/dist/client/assets/chunk-ZCHMQSOR-DFop6Lvt.js +2 -0
  112. package/dist/client/assets/classDiagram-v2-4MYWR3UA-B7JJfc9z.js +217 -0
  113. package/dist/client/assets/{command-EveETx4P.js → command-D4fLpJxA.js} +1 -1
  114. package/dist/client/assets/cose-bilkent-JH36ORCC-BjNppl29.js +1 -0
  115. package/dist/client/assets/{cpu-6HIzSTBv.js → cpu-DCe0Yyml.js} +1 -1
  116. package/dist/client/assets/cynefin-EF2NZ3EQ-PmRntJwW.js +141 -0
  117. package/dist/client/assets/cynefinDiagram-WF24UDRP-Ctdbp_Vg.js +62 -0
  118. package/dist/client/assets/cytoscape.esm-BLAcgzS2.js +331 -0
  119. package/dist/client/assets/dagre-NK4GIZVX-5tvLY2ZW.js +4 -0
  120. package/dist/client/assets/defaultLocale-DX6XiGOO.js +1 -0
  121. package/dist/client/assets/diagram-CBK3MWTC-DZO-XBOO.js +24 -0
  122. package/dist/client/assets/diagram-I5XIIV2D-CWBbA1Pv.js +24 -0
  123. package/dist/client/assets/diagram-ODIL2UCW-hP5A1tGl.js +30 -0
  124. package/dist/client/assets/diagram-PFBEJUXE-EI_-RoN7.js +3 -0
  125. package/dist/client/assets/diagram-RJA3I4VV-TrYq9A4Z.js +41 -0
  126. package/dist/client/assets/diagram-TYUNFSNR-BAQq2OM5.js +200 -0
  127. package/dist/client/assets/ebnfDiagram-V4P3TTPT-cKbeW9dQ.js +1 -0
  128. package/dist/client/assets/elk-QONTBCTQ-wpfNPp0q.js +27 -0
  129. package/dist/client/assets/{empty-state-DK2Wg9m3.js → empty-state-DXWQsHMf.js} +1 -1
  130. package/dist/client/assets/erDiagram-KYQIGQAA-Dk0OrvjE.js +99 -0
  131. package/dist/client/assets/{execution-config-e5c_6oSg.js → execution-config-CAyT2Qoo.js} +1 -1
  132. package/dist/client/assets/{file-CxdN5JO4.js → file-Bf7D_47y.js} +1 -1
  133. package/dist/client/assets/{file-exclamation-point-ID9vXo0l.js → file-exclamation-point-DZXE9_8o.js} +1 -1
  134. package/dist/client/assets/{file-text-DtcloCeg.js → file-text-C1ougnBY.js} +1 -1
  135. package/dist/client/assets/{find-latest-widget-fence-BGZDFnjV.js → find-latest-widget-fence-B1_-pC-Z.js} +1 -1
  136. package/dist/client/assets/flowDiagram-IUGLLWBU-CdlOoRZV.js +213 -0
  137. package/dist/client/assets/{form-Bs1x_gSI.js → form-D7kF-U0d.js} +1 -1
  138. package/dist/client/assets/{format-cron-i_Bh2HP3.js → format-cron-ZtliseYi.js} +1 -1
  139. package/dist/client/assets/ganttDiagram-R7GPNTJY-x0MJLv5d.js +292 -0
  140. package/dist/client/assets/{git-branch-B3IXXOlG.js → git-branch-B2k77X3Q.js} +1 -1
  141. package/dist/client/assets/gitGraphDiagram-PDYL7XHY-CruCvk7w.js +106 -0
  142. package/dist/client/assets/graph-5PBe05F8.js +1 -0
  143. package/dist/client/assets/{heart-BKVGdKg5.js → heart-CmqGJPDc.js} +1 -1
  144. package/dist/client/assets/{highlighted-body-KPVGNVTW-2S9TnGZL.js → highlighted-body-KPVGNVTW-Bqu2cQDj.js} +1 -1
  145. package/dist/client/assets/{image-lightbox-D28E719A.js → image-lightbox-BBbz-ThL.js} +1 -1
  146. package/dist/client/assets/{image-off-BuNZtQ_w.js → image-off-BCtWIY4q.js} +1 -1
  147. package/dist/client/assets/{index-LPr-pCZr.js → index-1ShgR_xt.js} +1 -1
  148. package/dist/client/assets/{index-V5Rn9SxH.js → index-8IAr9b71.js} +1 -1
  149. package/dist/client/assets/{index-rROsmUvj.js → index-8TfzCkKR.js} +1 -1
  150. package/dist/client/assets/{index-CsUyZMaJ.js → index-B5rRtvWx.js} +1 -1
  151. package/dist/client/assets/index-B6dEbNhI.js +1 -0
  152. package/dist/client/assets/{index-7cQQSs20.js → index-BCk4wW-T.js} +1 -1
  153. package/dist/client/assets/{index-CfpVrvtk.js → index-BIIH5CXj.js} +1 -1
  154. package/dist/client/assets/{index-DP_WiQNC.js → index-BXMxoWrk.js} +1 -1
  155. package/dist/client/assets/index-BXZlDqvy.js +74 -0
  156. package/dist/client/assets/{index-5081rTdO.js → index-BfRW2WTx.js} +1 -1
  157. package/dist/client/assets/{index-DVpRV8UX.js → index-BpmmNapD.js} +1 -1
  158. package/dist/client/assets/{index-CQ_s1Luo.js → index-BrQGZ6iF.js} +1 -1
  159. package/dist/client/assets/{index-KONo3kU0.js → index-BuGQxHrf.js} +1 -1
  160. package/dist/client/assets/{index-BM9n-UZ_.js → index-BzPgsdPn.js} +1 -1
  161. package/dist/client/assets/{index-ByUBGmdN.js → index-C11Ssk2u.js} +3 -3
  162. package/dist/client/assets/{index-Ce9sdGIU.js → index-CJ5v2_Cz.js} +1 -1
  163. package/dist/client/assets/{index-CIxwv14l.js → index-CMNc_OrC.js} +1 -1
  164. package/dist/client/assets/{index-ClxqCDE6.js → index-CQ0VLZf-.js} +1 -1
  165. package/dist/client/assets/{index-CHZfO-eM.js → index-ChwNEkM8.js} +1 -1
  166. package/dist/client/assets/index-Cl8trmnL.js +1 -0
  167. package/dist/client/assets/{index-CDBp2azY.js → index-ClBIPuLA.js} +1 -1
  168. package/dist/client/assets/{index-CtRknSis.js → index-Cml5572f.js} +1 -1
  169. package/dist/client/assets/{index-DIpkbx_g.js → index-Cp3yShS8.js} +7 -7
  170. package/dist/client/assets/index-CrflCTqO.css +1 -0
  171. package/dist/client/assets/{index-CJllc1_e.js → index-CtycM8wY.js} +1 -1
  172. package/dist/client/assets/{index-DVUGIueq.js → index-Cv0GsC4n.js} +1 -1
  173. package/dist/client/assets/{index-CqcPXANi.js → index-DAdo_yIq.js} +1 -1
  174. package/dist/client/assets/{index-DwKOsAwH.js → index-DIxzqCwG.js} +1 -1
  175. package/dist/client/assets/index-DKDK-3KH.js +17 -0
  176. package/dist/client/assets/index-DPNBHwcQ.js +1 -0
  177. package/dist/client/assets/{index-B-wVtE7g.js → index-DbDI5BAA.js} +1 -1
  178. package/dist/client/assets/index-DcZPWi_I.js +1023 -0
  179. package/dist/client/assets/{index-Pcm0P4su.js → index-Dmn03xST.js} +1 -1
  180. package/dist/client/assets/{index-BUAYrK-t.js → index-Do6eeFps.js} +2 -2
  181. package/dist/client/assets/{index-CAB4SfyK.js → index-DrA03bMq.js} +1 -1
  182. package/dist/client/assets/{index-5BVp-usS.js → index-DsJWzmWw.js} +1 -1
  183. package/dist/client/assets/{index-Cc5UdmnD.js → index-EdJm7ZN-.js} +1 -1
  184. package/dist/client/assets/{index-CxYD3BRB.js → index-JxeBJIuE.js} +1 -1
  185. package/dist/client/assets/{index-Dr3MaxIU.js → index-mFOJXyAE.js} +3 -3
  186. package/dist/client/assets/{index-uukEE2As.js → index-rWZWP3Wh.js} +1 -1
  187. package/dist/client/assets/{index-CFo8WKHw.js → index-t4Ud6YTX.js} +1 -1
  188. package/dist/client/assets/{index-DaFf8fyv.js → index-xaMF1mrN.js} +1 -1
  189. package/dist/client/assets/{index-DrBU917j.js → index-xmk9Ohv9.js} +1 -1
  190. package/dist/client/assets/{index-OTmqX-Xu.js → index-yI1r4pSP.js} +1 -1
  191. package/dist/client/assets/{index.esm-C1I5Nd91.js → index.esm-CZZtbPRj.js} +1 -1
  192. package/dist/client/assets/infoDiagram-MVDRKAX5-Bj9DD77n.js +2 -0
  193. package/dist/client/assets/init-Gi6I4Gst.js +1 -0
  194. package/dist/client/assets/{inline-code-BxjIkZsu.js → inline-code-g9PVHZI2.js} +1 -1
  195. package/dist/client/assets/ishikawaDiagram-HPEHV2GE-DckI6dhS.js +70 -0
  196. package/dist/client/assets/journeyDiagram-BOSHW7O7-Ce1GAVa0.js +139 -0
  197. package/dist/client/assets/kanban-definition-FNSA4HC5-Kq5O9rZa.js +89 -0
  198. package/dist/client/assets/katex-DLorvT8M.js +257 -0
  199. package/dist/client/assets/{layers-CIuBDynf.js → layers-D3lEdRF0.js} +1 -1
  200. package/dist/client/assets/{lightbulb-C75cqB7d.js → lightbulb-BFE-KkFU.js} +1 -1
  201. package/dist/client/assets/linear-BT-xgETh.js +1 -0
  202. package/dist/client/assets/{link-2-g7crG37S.js → link-2-Dvb6g-2Q.js} +1 -1
  203. package/dist/client/assets/{list-runtime-types-GVPyyQUh.js → list-runtime-types-8YGEK3Al.js} +1 -1
  204. package/dist/client/assets/{markdown-content-siVxwwSU.js → markdown-content-Cqq_QMXA.js} +1 -1
  205. package/dist/client/assets/{mention-pill-CjxBxD6M.js → mention-pill-Bnzt4u2l.js} +1 -1
  206. package/dist/client/assets/mermaid.core-dpp59v7L.js +312 -0
  207. package/dist/client/assets/{message-square-off-BxuvD1QP.js → message-square-off-BX2XnEDx.js} +1 -1
  208. package/dist/client/assets/mindmap-definition-6OY57UG3-CFdfJO6g.js +98 -0
  209. package/dist/client/assets/{more-details-DN_gIeya.js → more-details-B4lBMpKi.js} +1 -1
  210. package/dist/client/assets/ordinal-Cboi1Yqb.js +1 -0
  211. package/dist/client/assets/{owner-notice-DnYrX3mh.js → owner-notice-ByjrIRmX.js} +1 -1
  212. package/dist/client/assets/{package-b8MxCYZr.js → package-6Rbxg35g.js} +1 -1
  213. package/dist/client/assets/{page-container-bbfE5uTV.js → page-container-DoZzad36.js} +1 -1
  214. package/dist/client/assets/{paperclip-BNBU7WUb.js → paperclip-B-jDXtxw.js} +1 -1
  215. package/dist/client/assets/{path-input-BhzVuKWq.js → path-input-DpqUD8hN.js} +1 -1
  216. package/dist/client/assets/pegDiagram-ECIUJNBX-eVnSw2Ma.js +1 -0
  217. package/dist/client/assets/pieDiagram-GNMPY74T-BYG7LY5Q.js +39 -0
  218. package/dist/client/assets/plug-DnaAhcy4.js +11 -0
  219. package/dist/client/assets/{primer-trigger-DHPWwwZl.js → primer-trigger-Da5ECjY8.js} +2 -2
  220. package/dist/client/assets/{profile-errors-DDvyjpcQ.js → profile-errors-GbTNc2-M.js} +1 -1
  221. package/dist/client/assets/{progress-DUKHwOZJ.js → progress-DlIRjXIA.js} +1 -1
  222. package/dist/client/assets/quadrantDiagram-D57K4MC3-CRgNKuHR.js +7 -0
  223. package/dist/client/assets/{query-error-state-DOJRiizQ.js → query-error-state-DB-Jby7_.js} +1 -1
  224. package/dist/client/assets/{radio-kbMW2w1m.js → radio-CaaE60ws.js} +1 -1
  225. package/dist/client/assets/railroadDiagram-Y72NRBL7-DGL-Hqz9.js +1 -0
  226. package/dist/client/assets/registry-DS1Ghdft.js +1 -0
  227. package/dist/client/assets/{relay-trace-schemas-3XV1_WMC.js → relay-trace-schemas-CcCqyOrA.js} +2 -2
  228. package/dist/client/assets/requirementDiagram-EQYSW5RA-DKsFpU3l.js +84 -0
  229. package/dist/client/assets/{room-files-source-CDA5V_Mw.js → room-files-source-CbbVpvSW.js} +1 -1
  230. package/dist/client/assets/{rotate-ccw-clock-BGYqHuYK.js → rotate-ccw-clock-CeY00nlZ.js} +1 -1
  231. package/dist/client/assets/{rotate-cw-BdJrGLyp.js → rotate-cw-Djl5J_x9.js} +1 -1
  232. package/dist/client/assets/sankeyDiagram-SY24JHO5-BFRkDxic.js +40 -0
  233. package/dist/client/assets/{scroll-area-D-CWiQov.js → scroll-area-BOqrziJf.js} +1 -1
  234. package/dist/client/assets/{search-x-DNIPyXe6.js → search-x-B_mHjnlo.js} +1 -1
  235. package/dist/client/assets/sequenceDiagram-BLEHNHQU-fHea3KOI.js +169 -0
  236. package/dist/client/assets/{shield-check-zWzf9nt2.js → shield-check-Csnr5rFy.js} +1 -1
  237. package/dist/client/assets/{shield-x-Bu5-LOse.js → shield-x-Dhl4YvvW.js} +1 -1
  238. package/dist/client/assets/signed-in-BMqAss8c.js +1 -0
  239. package/dist/client/assets/sizeCapture-INFHLROL-CztsD3qF.js +1 -0
  240. package/dist/client/assets/{soul-file-CoSSajv6.js → soul-file-DOfamgB5.js} +1 -1
  241. package/dist/client/assets/stateDiagram-v2-A6IESKWZ-CWyOqZ9S.js +291 -0
  242. package/dist/client/assets/swimlanes-B3ENRKFQ-0EfOxSAX.js +1 -0
  243. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-C7fkUKrq.js +8 -0
  244. package/dist/client/assets/{table-Bt_aJtoi.js → table-L7FvN6Or.js} +1 -1
  245. package/dist/client/assets/{terminal-ub-ExeTA.js → terminal-C9M5a_PS.js} +1 -1
  246. package/dist/client/assets/timeline-definition-JXYKGLGB-sFyYvZ20.js +120 -0
  247. package/dist/client/assets/transform-BqqRT-Iy.js +1 -0
  248. package/dist/client/assets/{trust-posture-CWt3tUjL.js → trust-posture-dl6qwDtI.js} +1 -1
  249. package/dist/client/assets/{unplug-BCqRQfhH.js → unplug-CFUEVRbc.js} +1 -1
  250. package/dist/client/assets/{unverified-catalog-notice-CgvUEO5t.js → unverified-catalog-notice-CdYU3WEJ.js} +1 -1
  251. package/dist/client/assets/{use-adapter-catalog-ClW3m3Yz.js → use-adapter-catalog-YTofdqDJ.js} +1 -1
  252. package/dist/client/assets/{use-bindings-CFiTPDOx.js → use-bindings-CpyT6kNu.js} +1 -1
  253. package/dist/client/assets/{use-composer-prefs-B70wbKdU.js → use-composer-prefs-CK_EK_QJ.js} +1 -1
  254. package/dist/client/assets/{use-connector-management-B_mb2h8I.js → use-connector-management-DwoK8kon.js} +1 -1
  255. package/dist/client/assets/{use-deep-link-scroll-DuJW3UA9.js → use-deep-link-scroll-CgRjt48R.js} +1 -1
  256. package/dist/client/assets/{use-delete-binding-DWXownno.js → use-delete-binding-CfsnMXrL.js} +1 -1
  257. package/dist/client/assets/{use-dev-links-UPIkbIjA.js → use-dev-links-B3I-ZK34.js} +1 -1
  258. package/dist/client/assets/{use-external-adapter-catalog-x7pDUqmo.js → use-external-adapter-catalog-aGlZNRrp.js} +1 -1
  259. package/dist/client/assets/{use-full-activity-feed-l9UhDUNU.js → use-full-activity-feed-B61Olhdw.js} +1 -1
  260. package/dist/client/assets/use-is-below-desktop-Qwyg-mFb.js +1 -0
  261. package/dist/client/assets/use-is-hub-CSz6NDaP.js +1 -0
  262. package/dist/client/assets/{use-jump-back-in-CKA3z2by.js → use-jump-back-in-C39GOTHa.js} +3 -3
  263. package/dist/client/assets/{use-local-browser-DL5b5JIK.js → use-local-browser-DCwzB4D8.js} +1 -1
  264. package/dist/client/assets/{use-mesh-topology-BYGYArKq.js → use-mesh-topology-LRYxFuZp.js} +1 -1
  265. package/dist/client/assets/{use-mounted-ref-D_xUn22L.js → use-mounted-ref-CZaegwTr.js} +1 -1
  266. package/dist/client/assets/{use-notification-prefs-42ajom2z.js → use-notification-prefs-FtOiUS5H.js} +1 -1
  267. package/dist/client/assets/{use-panel-tab-placements-CLIDc7_z.js → use-panel-tab-placements-Dv2OPvKh.js} +1 -1
  268. package/dist/client/assets/use-pending-read-DBOl1ee_.js +1 -0
  269. package/dist/client/assets/{use-personality-commit-D7jyGUrF.js → use-personality-commit-BB5aeh6p.js} +1 -1
  270. package/dist/client/assets/use-promo-activation-BW0u7n7m.js +11 -0
  271. package/dist/client/assets/{use-promo-dismissals-CsJELZ1_.js → use-promo-dismissals-BOXzW4kD.js} +1 -1
  272. package/dist/client/assets/{use-pulse-freshness-TqSBTrFT.js → use-pulse-freshness-ClW-MLMo.js} +1 -1
  273. package/dist/client/assets/{use-relay-config-CLeVWrpV.js → use-relay-config-hItHtkSr.js} +1 -1
  274. package/dist/client/assets/{use-room-follow-claim-C-zlw4nh.js → use-room-follow-claim-wotzxUWc.js} +1 -1
  275. package/dist/client/assets/{use-roving-tab-list-H2EzOl9b.js → use-roving-tab-list-DkbO6xSs.js} +1 -1
  276. package/dist/client/assets/use-session-canvas-C_fuAgW_.js +24 -0
  277. package/dist/client/assets/{use-session-diagnostics-CDmiMYHx.js → use-session-diagnostics-DmxvD-wy.js} +3 -3
  278. package/dist/client/assets/{use-unclaimed-chats-Bd93jy-J.js → use-unclaimed-chats-DKpexDm3.js} +1 -1
  279. package/dist/client/assets/use-update-config-CSYwg557.js +1 -0
  280. package/dist/client/assets/{useMutationState-BZZ5TO4d.js → useMutationState-Btf2Hp1a.js} +1 -1
  281. package/dist/client/assets/usecaseDiagram-WPOLBNNX-DRngjDUq.js +370 -0
  282. package/dist/client/assets/value-wA6veExk.js +1 -0
  283. package/dist/client/assets/vennDiagram-Q3Y3IDCW-iK-dlS1-.js +34 -0
  284. package/dist/client/assets/wardleyDiagram-IVAIDKWA-sOS67Cks.js +78 -0
  285. package/dist/client/assets/xychartDiagram-4URNHDU4-EgnLiIao.js +7 -0
  286. package/dist/client/index.html +2 -2
  287. package/dist/drizzle/20261017113300_session_public_computer.sql +1 -0
  288. package/dist/drizzle/meta/20261017113300_snapshot.json +14020 -0
  289. package/dist/drizzle/meta/_journal.json +7 -0
  290. package/dist/server/index.js +24307 -20763
  291. package/dist/server/index.js.map +2 -2
  292. package/package.json +7 -7
  293. package/dist/client/assets/BlintzCanvas-D_HlpfZu.js +0 -1141
  294. package/dist/client/assets/CanvasFileContent-g5wQR7yt.js +0 -2
  295. package/dist/client/assets/HandlePage-DUFrvuVy.js +0 -1
  296. package/dist/client/assets/KeyEntry-tKXV9D24.js +0 -6
  297. package/dist/client/assets/McpSigninBody-CRj8tXsh.js +0 -1
  298. package/dist/client/assets/NamePage-fiIXQig_.js +0 -1
  299. package/dist/client/assets/PhotoPage-BnxmY5mq.js +0 -1
  300. package/dist/client/assets/SettingsDialog-BZkPlifY.js +0 -12
  301. package/dist/client/assets/TopologyGraph-CAkARLa1.js +0 -30
  302. package/dist/client/assets/_shell-BQ7hvFsP.js +0 -90
  303. package/dist/client/assets/_shell.channels-DYNK-rbr.js +0 -10
  304. package/dist/client/assets/_shell.marketplace-B1CT9Y3y.js +0 -1
  305. package/dist/client/assets/_shell.marketplace_.sources-DVHJ2s7a.js +0 -1
  306. package/dist/client/assets/_shell.x._extensionId-B6Ccjrvp.js +0 -1
  307. package/dist/client/assets/_shell.x._extensionId_._-B6Ccjrvp.js +0 -1
  308. package/dist/client/assets/index-BONR--d7.css +0 -1
  309. package/dist/client/assets/index-BULRe04c.js +0 -1018
  310. package/dist/client/assets/index-C8NfFfij.js +0 -17
  311. package/dist/client/assets/index-CRMbYKMh.js +0 -1
  312. package/dist/client/assets/index-CidWt_HE.js +0 -1
  313. package/dist/client/assets/index-CoMMwnLj.js +0 -74
  314. package/dist/client/assets/registry-BisJE2TH.js +0 -1
  315. package/dist/client/assets/use-is-below-desktop-ByiGZk3p.js +0 -1
  316. package/dist/client/assets/use-pending-read-Cy9OB3jX.js +0 -1
  317. package/dist/client/assets/use-promo-activation-Dw1KvykA.js +0 -11
  318. package/dist/client/assets/use-session-canvas-Bm_AzSm7.js +0 -24
  319. package/dist/client/assets/use-update-config-DjF61lwf.js +0 -1
@@ -0,0 +1 @@
1
+ var pn={value:()=>{}};function Pt(){for(var t=0,n=arguments.length,e={},r;t<n;++t){if(!(r=arguments[t]+"")||r in e||/[\s.]/.test(r))throw new Error("illegal type: "+r);e[r]=[]}return new K(e)}function K(t){this._=t}function dn(t,n){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");if(i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:r}})}K.prototype=Pt.prototype={constructor:K,on:function(t,n){var e=this._,r=dn(t+"",e),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=_n(e[i],t.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++o<s;)if(i=(t=r[o]).type)e[i]=Nt(e[i],t.name,n);else if(n==null)for(i in e)e[i]=Nt(e[i],t.name,null);return this},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new K(t)},call:function(t,n){if((i=arguments.length-2)>0)for(var e=new Array(i),r=0,i,o;r<i;++r)e[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};function _n(t,n){for(var e=0,r=t.length,i;e<r;++e)if((i=t[e]).name===n)return i.value}function Nt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=pn,t=t.slice(0,r).concat(t.slice(r+1));break}return e!=null&&t.push({name:n,value:e}),t}var at="http://www.w3.org/1999/xhtml";const At={svg:"http://www.w3.org/2000/svg",xhtml:at,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function et(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),At.hasOwnProperty(n)?{space:At[n],local:t}:t}function gn(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===at&&n.documentElement.namespaceURI===at?n.createElement(t):n.createElementNS(e,t)}}function yn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ot(t){var n=et(t);return(n.local?yn:gn)(n)}function wn(){}function dt(t){return t==null?wn:function(){return this.querySelector(t)}}function xn(t){typeof t!="function"&&(t=dt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],s=o.length,a=r[i]=new Array(s),u,f,l=0;l<s;++l)(u=o[l])&&(f=t.call(u,u.__data__,l,o))&&("__data__"in u&&(f.__data__=u.__data__),a[l]=f);return new y(r,this._parents)}function vn(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function mn(){return[]}function Lt(t){return t==null?mn:function(){return this.querySelectorAll(t)}}function bn(t){return function(){return vn(t.apply(this,arguments))}}function Nn(t){typeof t=="function"?t=bn(t):t=Lt(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var s=n[o],a=s.length,u,f=0;f<a;++f)(u=s[f])&&(r.push(t.call(u,u.__data__,f,s)),i.push(u));return new y(r,i)}function Vt(t){return function(){return this.matches(t)}}function Yt(t){return function(n){return n.matches(t)}}var An=Array.prototype.find;function $n(t){return function(){return An.call(this.children,t)}}function kn(){return this.firstElementChild}function En(t){return this.select(t==null?kn:$n(typeof t=="function"?t:Yt(t)))}var Sn=Array.prototype.filter;function Cn(){return Array.from(this.children)}function Tn(t){return function(){return Sn.call(this.children,t)}}function Rn(t){return this.selectAll(t==null?Cn:Tn(typeof t=="function"?t:Yt(t)))}function Mn(t){typeof t!="function"&&(t=Vt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],s=o.length,a=r[i]=[],u,f=0;f<s;++f)(u=o[f])&&t.call(u,u.__data__,f,o)&&a.push(u);return new y(r,this._parents)}function zt(t){return new Array(t.length)}function In(){return new y(this._enter||this._groups.map(zt),this._parents)}function J(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}J.prototype={constructor:J,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Fn(t){return function(){return t}}function Hn(t,n,e,r,i,o){for(var s=0,a,u=n.length,f=o.length;s<f;++s)(a=n[s])?(a.__data__=o[s],r[s]=a):e[s]=new J(t,o[s]);for(;s<u;++s)(a=n[s])&&(i[s]=a)}function qn(t,n,e,r,i,o,s){var a,u,f=new Map,l=n.length,c=o.length,h=new Array(l),p;for(a=0;a<l;++a)(u=n[a])&&(h[a]=p=s.call(u,u.__data__,a,n)+"",f.has(p)?i[a]=u:f.set(p,u));for(a=0;a<c;++a)p=s.call(t,o[a],a,o)+"",(u=f.get(p))?(r[a]=u,u.__data__=o[a],f.delete(p)):e[a]=new J(t,o[a]);for(a=0;a<l;++a)(u=n[a])&&f.get(h[a])===u&&(i[a]=u)}function Xn(t){return t.__data__}function Dn(t,n){if(!arguments.length)return Array.from(this,Xn);var e=n?qn:Hn,r=this._parents,i=this._groups;typeof t!="function"&&(t=Fn(t));for(var o=i.length,s=new Array(o),a=new Array(o),u=new Array(o),f=0;f<o;++f){var l=r[f],c=i[f],h=c.length,p=Pn(t.call(l,l&&l.__data__,f,r)),d=p.length,_=a[f]=new Array(d),$=s[f]=new Array(d),hn=u[f]=new Array(h);e(l,c,_,$,hn,p,n);for(var I=0,Y=0,mt,bt;I<d;++I)if(mt=_[I]){for(I>=Y&&(Y=I+1);!(bt=$[Y])&&++Y<d;);mt._next=bt||null}}return s=new y(s,r),s._enter=a,s._exit=u,s}function Pn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function On(){return new y(this._exit||this._groups.map(zt),this._parents)}function Ln(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function Vn(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,s=Math.min(i,o),a=new Array(i),u=0;u<s;++u)for(var f=e[u],l=r[u],c=f.length,h=a[u]=new Array(c),p,d=0;d<c;++d)(p=f[d]||l[d])&&(h[d]=p);for(;u<i;++u)a[u]=e[u];return new y(a,this._parents)}function Yn(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function zn(t){t||(t=Bn);function n(c,h){return c&&h?t(c.__data__,h.__data__):!c-!h}for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var s=e[o],a=s.length,u=i[o]=new Array(a),f,l=0;l<a;++l)(f=s[l])&&(u[l]=f);u.sort(n)}return new y(i,this._parents).order()}function Bn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Un(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Kn(){return Array.from(this)}function Gn(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function Wn(){let t=0;for(const n of this)++t;return t}function Jn(){return!this.node()}function Qn(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function Zn(t){return function(){this.removeAttribute(t)}}function jn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function te(t,n){return function(){this.setAttribute(t,n)}}function ne(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ee(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function re(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function ie(t,n){var e=et(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?jn:Zn:typeof n=="function"?e.local?re:ee:e.local?ne:te)(e,n))}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function oe(t){return function(){this.style.removeProperty(t)}}function se(t,n,e){return function(){this.style.setProperty(t,n,e)}}function ae(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function ue(t,n,e){return arguments.length>1?this.each((n==null?oe:typeof n=="function"?ae:se)(t,n,e??"")):R(this.node(),t)}function R(t,n){return t.style.getPropertyValue(n)||Bt(t).getComputedStyle(t,null).getPropertyValue(n)}function fe(t){return function(){delete this[t]}}function le(t,n){return function(){this[t]=n}}function ce(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function he(t,n){return arguments.length>1?this.each((n==null?fe:typeof n=="function"?ce:le)(t,n)):this.node()[t]}function Ut(t){return t.trim().split(/^|\s+/)}function _t(t){return t.classList||new Kt(t)}function Kt(t){this._node=t,this._names=Ut(t.getAttribute("class")||"")}Kt.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Gt(t,n){for(var e=_t(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Wt(t,n){for(var e=_t(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function pe(t){return function(){Gt(this,t)}}function de(t){return function(){Wt(this,t)}}function _e(t,n){return function(){(n.apply(this,arguments)?Gt:Wt)(this,t)}}function ge(t,n){var e=Ut(t+"");if(arguments.length<2){for(var r=_t(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?_e:n?pe:de)(e,n))}function ye(){this.textContent=""}function we(t){return function(){this.textContent=t}}function xe(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function ve(t){return arguments.length?this.each(t==null?ye:(typeof t=="function"?xe:we)(t)):this.node().textContent}function me(){this.innerHTML=""}function be(t){return function(){this.innerHTML=t}}function Ne(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Ae(t){return arguments.length?this.each(t==null?me:(typeof t=="function"?Ne:be)(t)):this.node().innerHTML}function $e(){this.nextSibling&&this.parentNode.appendChild(this)}function ke(){return this.each($e)}function Ee(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Se(){return this.each(Ee)}function Ce(t){var n=typeof t=="function"?t:Ot(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Te(){return null}function Re(t,n){var e=typeof t=="function"?t:Ot(t),r=n==null?Te:typeof n=="function"?n:dt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function Me(){var t=this.parentNode;t&&t.removeChild(this)}function Ie(){return this.each(Me)}function Fe(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function He(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function qe(t){return this.select(t?He:Fe)}function Xe(t){return arguments.length?this.property("__data__",t):this.node().__data__}function De(t){return function(n){t.call(this,n,this.__data__)}}function Pe(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function Oe(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function Le(t,n,e){return function(){var r=this.__on,i,o=De(n);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function Ve(t,n,e){var r=Pe(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var u=0,f=a.length,l;u<f;++u)for(i=0,l=a[u];i<o;++i)if((s=r[i]).type===l.type&&s.name===l.name)return l.value}return}for(a=n?Le:Oe,i=0;i<o;++i)this.each(a(r[i],n,e));return this}function Jt(t,n,e){var r=Bt(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Ye(t,n){return function(){return Jt(this,t,n)}}function ze(t,n){return function(){return Jt(this,t,n.apply(this,arguments))}}function Be(t,n){return this.each((typeof n=="function"?ze:Ye)(t,n))}function*Ue(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var Qt=[null];function y(t,n){this._groups=t,this._parents=n}function L(){return new y([[document.documentElement]],Qt)}function Ke(){return this}y.prototype=L.prototype={constructor:y,select:xn,selectAll:Nn,selectChild:En,selectChildren:Rn,filter:Mn,data:Dn,enter:In,exit:On,join:Ln,merge:Vn,selection:Ke,order:Yn,sort:zn,call:Un,nodes:Kn,node:Gn,size:Wn,empty:Jn,each:Qn,attr:ie,style:ue,property:he,classed:ge,text:ve,html:Ae,raise:ke,lower:Se,append:Ce,insert:Re,remove:Ie,clone:qe,datum:Xe,on:Ve,dispatch:Be,[Symbol.iterator]:Ue};function Ci(t){return typeof t=="string"?new y([[document.querySelector(t)]],[document.documentElement]):new y([[t]],Qt)}function gt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Zt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function V(){}var X=.7,Q=1/X,T="\\s*([+-]?\\d+)\\s*",D="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",v="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ge=/^#([0-9a-f]{3,8})$/,We=new RegExp(`^rgb\\(${T},${T},${T}\\)$`),Je=new RegExp(`^rgb\\(${v},${v},${v}\\)$`),Qe=new RegExp(`^rgba\\(${T},${T},${T},${D}\\)$`),Ze=new RegExp(`^rgba\\(${v},${v},${v},${D}\\)$`),je=new RegExp(`^hsl\\(${D},${v},${v}\\)$`),tr=new RegExp(`^hsla\\(${D},${v},${v},${D}\\)$`),$t={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};gt(V,P,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:kt,formatHex:kt,formatHex8:nr,formatHsl:er,formatRgb:Et,toString:Et});function kt(){return this.rgb().formatHex()}function nr(){return this.rgb().formatHex8()}function er(){return jt(this).formatHsl()}function Et(){return this.rgb().formatRgb()}function P(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Ge.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?St(n):e===3?new g(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?z(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?z(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=We.exec(t))?new g(n[1],n[2],n[3],1):(n=Je.exec(t))?new g(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Qe.exec(t))?z(n[1],n[2],n[3],n[4]):(n=Ze.exec(t))?z(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=je.exec(t))?Rt(n[1],n[2]/100,n[3]/100,1):(n=tr.exec(t))?Rt(n[1],n[2]/100,n[3]/100,n[4]):$t.hasOwnProperty(t)?St($t[t]):t==="transparent"?new g(NaN,NaN,NaN,0):null}function St(t){return new g(t>>16&255,t>>8&255,t&255,1)}function z(t,n,e,r){return r<=0&&(t=n=e=NaN),new g(t,n,e,r)}function rr(t){return t instanceof V||(t=P(t)),t?(t=t.rgb(),new g(t.r,t.g,t.b,t.opacity)):new g}function ut(t,n,e,r){return arguments.length===1?rr(t):new g(t,n,e,r??1)}function g(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}gt(g,ut,Zt(V,{brighter(t){return t=t==null?Q:Math.pow(Q,t),new g(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?X:Math.pow(X,t),new g(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new g(E(this.r),E(this.g),E(this.b),Z(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:Ct,formatHex:Ct,formatHex8:ir,formatRgb:Tt,toString:Tt}));function Ct(){return`#${k(this.r)}${k(this.g)}${k(this.b)}`}function ir(){return`#${k(this.r)}${k(this.g)}${k(this.b)}${k((isNaN(this.opacity)?1:this.opacity)*255)}`}function Tt(){const t=Z(this.opacity);return`${t===1?"rgb(":"rgba("}${E(this.r)}, ${E(this.g)}, ${E(this.b)}${t===1?")":`, ${t})`}`}function Z(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function E(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function k(t){return t=E(t),(t<16?"0":"")+t.toString(16)}function Rt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new w(t,n,e,r)}function jt(t){if(t instanceof w)return new w(t.h,t.s,t.l,t.opacity);if(t instanceof V||(t=P(t)),!t)return new w;if(t instanceof w)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),s=NaN,a=o-i,u=(o+i)/2;return a?(n===o?s=(e-r)/a+(e<r)*6:e===o?s=(r-n)/a+2:s=(n-e)/a+4,a/=u<.5?o+i:2-o-i,s*=60):a=u>0&&u<1?0:s,new w(s,a,u,t.opacity)}function or(t,n,e,r){return arguments.length===1?jt(t):new w(t,n,e,r??1)}function w(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}gt(w,or,Zt(V,{brighter(t){return t=t==null?Q:Math.pow(Q,t),new w(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?X:Math.pow(X,t),new w(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new g(ot(t>=240?t-240:t+120,i,r),ot(t,i,r),ot(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new w(Mt(this.h),B(this.s),B(this.l),Z(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(){const t=Z(this.opacity);return`${t===1?"hsl(":"hsla("}${Mt(this.h)}, ${B(this.s)*100}%, ${B(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Mt(t){return t=(t||0)%360,t<0?t+360:t}function B(t){return Math.max(0,Math.min(1,t||0))}function ot(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}const yt=t=>()=>t;function tn(t,n){return function(e){return t+e*n}}function sr(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function Ti(t,n){var e=n-t;return e?tn(t,e>180||e<-180?e-360*Math.round(e/360):e):yt(isNaN(t)?n:t)}function ar(t){return(t=+t)==1?nn:function(n,e){return e-n?sr(n,e,t):yt(isNaN(n)?e:n)}}function nn(t,n){var e=n-t;return e?tn(t,e):yt(isNaN(t)?n:t)}const It=(function t(n){var e=ar(n);function r(i,o){var s=e((i=ut(i)).r,(o=ut(o)).r),a=e(i.g,o.g),u=e(i.b,o.b),f=nn(i.opacity,o.opacity);return function(l){return i.r=s(l),i.g=a(l),i.b=u(l),i.opacity=f(l),i+""}}return r.gamma=t,r})(1);function A(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var ft=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,st=new RegExp(ft.source,"g");function ur(t){return function(){return t}}function fr(t){return function(n){return t(n)+""}}function lr(t,n){var e=ft.lastIndex=st.lastIndex=0,r,i,o,s=-1,a=[],u=[];for(t=t+"",n=n+"";(r=ft.exec(t))&&(i=st.exec(n));)(o=i.index)>e&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,u.push({i:s,x:A(r,i)})),e=st.lastIndex;return e<n.length&&(o=n.slice(e),a[s]?a[s]+=o:a[++s]=o),a.length<2?u[0]?fr(u[0].x):ur(n):(n=u.length,function(f){for(var l=0,c;l<n;++l)a[(c=u[l]).i]=c.x(f);return a.join("")})}var Ft=180/Math.PI,lt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function en(t,n,e,r,i,o){var s,a,u;return(s=Math.sqrt(t*t+n*n))&&(t/=s,n/=s),(u=t*e+n*r)&&(e-=t*u,r-=n*u),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,u/=a),t*r<n*e&&(t=-t,n=-n,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*Ft,skewX:Math.atan(u)*Ft,scaleX:s,scaleY:a}}var U;function cr(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?lt:en(n.a,n.b,n.c,n.d,n.e,n.f)}function hr(t){return t==null||(U||(U=document.createElementNS("http://www.w3.org/2000/svg","g")),U.setAttribute("transform",t),!(t=U.transform.baseVal.consolidate()))?lt:(t=t.matrix,en(t.a,t.b,t.c,t.d,t.e,t.f))}function rn(t,n,e,r){function i(f){return f.length?f.pop()+" ":""}function o(f,l,c,h,p,d){if(f!==c||l!==h){var _=p.push("translate(",null,n,null,e);d.push({i:_-4,x:A(f,c)},{i:_-2,x:A(l,h)})}else(c||h)&&p.push("translate("+c+n+h+e)}function s(f,l,c,h){f!==l?(f-l>180?l+=360:l-f>180&&(f+=360),h.push({i:c.push(i(c)+"rotate(",null,r)-2,x:A(f,l)})):l&&c.push(i(c)+"rotate("+l+r)}function a(f,l,c,h){f!==l?h.push({i:c.push(i(c)+"skewX(",null,r)-2,x:A(f,l)}):l&&c.push(i(c)+"skewX("+l+r)}function u(f,l,c,h,p,d){if(f!==c||l!==h){var _=p.push(i(p)+"scale(",null,",",null,")");d.push({i:_-4,x:A(f,c)},{i:_-2,x:A(l,h)})}else(c!==1||h!==1)&&p.push(i(p)+"scale("+c+","+h+")")}return function(f,l){var c=[],h=[];return f=t(f),l=t(l),o(f.translateX,f.translateY,l.translateX,l.translateY,c,h),s(f.rotate,l.rotate,c,h),a(f.skewX,l.skewX,c,h),u(f.scaleX,f.scaleY,l.scaleX,l.scaleY,c,h),f=l=null,function(p){for(var d=-1,_=h.length,$;++d<_;)c[($=h[d]).i]=$.x(p);return c.join("")}}}var pr=rn(cr,"px, ","px)","deg)"),dr=rn(hr,", ",")",")"),M=0,H=0,F=0,on=1e3,j,q,tt=0,S=0,rt=0,O=typeof performance=="object"&&performance.now?performance:Date,sn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wt(){return S||(sn(_r),S=O.now()+rt)}function _r(){S=0}function nt(){this._call=this._time=this._next=null}nt.prototype=an.prototype={constructor:nt,restart:function(t,n,e){if(typeof t!="function")throw new TypeError("callback is not a function");e=(e==null?wt():+e)+(n==null?0:+n),!this._next&&q!==this&&(q?q._next=this:j=this,q=this),this._call=t,this._time=e,ct()},stop:function(){this._call&&(this._call=null,this._time=1/0,ct())}};function an(t,n,e){var r=new nt;return r.restart(t,n,e),r}function gr(){wt(),++M;for(var t=j,n;t;)(n=S-t._time)>=0&&t._call.call(void 0,n),t=t._next;--M}function Ht(){S=(tt=O.now())+rt,M=H=0;try{gr()}finally{M=0,wr(),S=0}}function yr(){var t=O.now(),n=t-tt;n>on&&(rt-=n,tt=t)}function wr(){for(var t,n=j,e,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:j=e);q=t,ct(r)}function ct(t){if(!M){H&&(H=clearTimeout(H));var n=t-S;n>24?(t<1/0&&(H=setTimeout(Ht,t-O.now()-rt)),F&&(F=clearInterval(F))):(F||(tt=O.now(),F=setInterval(yr,on)),M=1,sn(Ht))}}function qt(t,n,e){var r=new nt;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var xr=Pt("start","end","cancel","interrupt"),vr=[],un=0,Xt=1,ht=2,G=3,Dt=4,pt=5,W=6;function it(t,n,e,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(e in s)return;mr(t,e,{name:n,index:r,group:i,on:xr,tween:vr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:un})}function xt(t,n){var e=x(t,n);if(e.state>un)throw new Error("too late; already scheduled");return e}function m(t,n){var e=x(t,n);if(e.state>G)throw new Error("too late; already running");return e}function x(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function mr(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=an(o,0,e.time);function o(f){e.state=Xt,e.timer.restart(s,e.delay,e.time),e.delay<=f&&s(f-e.delay)}function s(f){var l,c,h,p;if(e.state!==Xt)return u();for(l in r)if(p=r[l],p.name===e.name){if(p.state===G)return qt(s);p.state===Dt?(p.state=W,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[l]):+l<n&&(p.state=W,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[l])}if(qt(function(){e.state===G&&(e.state=Dt,e.timer.restart(a,e.delay,e.time),a(f))}),e.state=ht,e.on.call("start",t,t.__data__,e.index,e.group),e.state===ht){for(e.state=G,i=new Array(h=e.tween.length),l=0,c=-1;l<h;++l)(p=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(i[++c]=p);i.length=c+1}}function a(f){for(var l=f<e.duration?e.ease.call(null,f/e.duration):(e.timer.restart(u),e.state=pt,1),c=-1,h=i.length;++c<h;)i[c].call(t,l);e.state===pt&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){e.state=W,e.timer.stop(),delete r[n];for(var f in r)return;delete t.__transition}}function br(t,n){var e=t.__transition,r,i,o=!0,s;if(e){n=n==null?null:n+"";for(s in e){if((r=e[s]).name!==n){o=!1;continue}i=r.state>ht&&r.state<pt,r.state=W,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[s]}o&&delete t.__transition}}function Nr(t){return this.each(function(){br(this,t)})}function Ar(t,n){var e,r;return function(){var i=m(this,t),o=i.tween;if(o!==e){r=e=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===n){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function $r(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var o=m(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:n,value:e},u=0,f=i.length;u<f;++u)if(i[u].name===n){i[u]=a;break}u===f&&i.push(a)}o.tween=i}}function kr(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=x(this.node(),e).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((n==null?Ar:$r)(e,t,n))}function vt(t,n,e){var r=t._id;return t.each(function(){var i=m(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return x(i,r).value[n]}}function fn(t,n){var e;return(typeof n=="number"?A:n instanceof P?It:(e=P(n))?(n=e,It):lr)(t,n)}function Er(t){return function(){this.removeAttribute(t)}}function Sr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Cr(t,n,e){var r,i=e+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=n(r=s,e)}}function Tr(t,n,e){var r,i=e+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=n(r=s,e)}}function Rr(t,n,e){var r,i,o;return function(){var s,a=e(this),u;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),u=a+"",s===u?null:s===r&&u===i?o:(i=u,o=n(r=s,a)))}}function Mr(t,n,e){var r,i,o;return function(){var s,a=e(this),u;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),u=a+"",s===u?null:s===r&&u===i?o:(i=u,o=n(r=s,a)))}}function Ir(t,n){var e=et(t),r=e==="transform"?dr:fn;return this.attrTween(t,typeof n=="function"?(e.local?Mr:Rr)(e,r,vt(this,"attr."+t,n)):n==null?(e.local?Sr:Er)(e):(e.local?Tr:Cr)(e,r,n))}function Fr(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Hr(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function qr(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Hr(t,o)),e}return i._value=n,i}function Xr(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Fr(t,o)),e}return i._value=n,i}function Dr(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=et(t);return this.tween(e,(r.local?qr:Xr)(r,n))}function Pr(t,n){return function(){xt(this,t).delay=+n.apply(this,arguments)}}function Or(t,n){return n=+n,function(){xt(this,t).delay=n}}function Lr(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Pr:Or)(n,t)):x(this.node(),n).delay}function Vr(t,n){return function(){m(this,t).duration=+n.apply(this,arguments)}}function Yr(t,n){return n=+n,function(){m(this,t).duration=n}}function zr(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Vr:Yr)(n,t)):x(this.node(),n).duration}function Br(t,n){if(typeof n!="function")throw new Error;return function(){m(this,t).ease=n}}function Ur(t){var n=this._id;return arguments.length?this.each(Br(n,t)):x(this.node(),n).ease}function Kr(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw new Error;m(this,t).ease=e}}function Gr(t){if(typeof t!="function")throw new Error;return this.each(Kr(this._id,t))}function Wr(t){typeof t!="function"&&(t=Vt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],s=o.length,a=r[i]=[],u,f=0;f<s;++f)(u=o[f])&&t.call(u,u.__data__,f,o)&&a.push(u);return new N(r,this._parents,this._name,this._id)}function Jr(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var u=n[a],f=e[a],l=u.length,c=s[a]=new Array(l),h,p=0;p<l;++p)(h=u[p]||f[p])&&(c[p]=h);for(;a<r;++a)s[a]=n[a];return new N(s,this._parents,this._name,this._id)}function Qr(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function Zr(t,n,e){var r,i,o=Qr(n)?xt:m;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(n,e),s.on=i}}function jr(t,n){var e=this._id;return arguments.length<2?x(this.node(),e).on.on(t):this.each(Zr(e,t,n))}function ti(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function ni(){return this.on("end.remove",ti(this._id))}function ei(t){var n=this._name,e=this._id;typeof t!="function"&&(t=dt(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],u=a.length,f=o[s]=new Array(u),l,c,h=0;h<u;++h)(l=a[h])&&(c=t.call(l,l.__data__,h,a))&&("__data__"in l&&(c.__data__=l.__data__),f[h]=c,it(f[h],n,e,h,f,x(l,e)));return new N(o,this._parents,n,e)}function ri(t){var n=this._name,e=this._id;typeof t!="function"&&(t=Lt(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var u=r[a],f=u.length,l,c=0;c<f;++c)if(l=u[c]){for(var h=t.call(l,l.__data__,c,u),p,d=x(l,e),_=0,$=h.length;_<$;++_)(p=h[_])&&it(p,n,e,_,h,d);o.push(h),s.push(l)}return new N(o,s,n,e)}var ii=L.prototype.constructor;function oi(){return new ii(this._groups,this._parents)}function si(t,n){var e,r,i;return function(){var o=R(this,t),s=(this.style.removeProperty(t),R(this,t));return o===s?null:o===e&&s===r?i:i=n(e=o,r=s)}}function ln(t){return function(){this.style.removeProperty(t)}}function ai(t,n,e){var r,i=e+"",o;return function(){var s=R(this,t);return s===i?null:s===r?o:o=n(r=s,e)}}function ui(t,n,e){var r,i,o;return function(){var s=R(this,t),a=e(this),u=a+"";return a==null&&(u=a=(this.style.removeProperty(t),R(this,t))),s===u?null:s===r&&u===i?o:(i=u,o=n(r=s,a))}}function fi(t,n){var e,r,i,o="style."+n,s="end."+o,a;return function(){var u=m(this,t),f=u.on,l=u.value[o]==null?a||(a=ln(n)):void 0;(f!==e||i!==l)&&(r=(e=f).copy()).on(s,i=l),u.on=r}}function li(t,n,e){var r=(t+="")=="transform"?pr:fn;return n==null?this.styleTween(t,si(t,r)).on("end.style."+t,ln(t)):typeof n=="function"?this.styleTween(t,ui(t,r,vt(this,"style."+t,n))).each(fi(this._id,t)):this.styleTween(t,ai(t,r,n),e).on("end.style."+t,null)}function ci(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function hi(t,n,e){var r,i;function o(){var s=n.apply(this,arguments);return s!==i&&(r=(i=s)&&ci(t,s,e)),r}return o._value=n,o}function pi(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,hi(t,n,e??""))}function di(t){return function(){this.textContent=t}}function _i(t){return function(){var n=t(this);this.textContent=n??""}}function gi(t){return this.tween("text",typeof t=="function"?_i(vt(this,"text",t)):di(t==null?"":t+""))}function yi(t){return function(n){this.textContent=t.call(this,n)}}function wi(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&yi(i)),n}return r._value=t,r}function xi(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,wi(t))}function vi(){for(var t=this._name,n=this._id,e=cn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,u,f=0;f<a;++f)if(u=s[f]){var l=x(u,n);it(u,t,e,f,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new N(r,this._parents,t,e)}function mi(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,s){var a={value:s},u={value:function(){--i===0&&o()}};e.each(function(){var f=m(this,r),l=f.on;l!==t&&(n=(t=l).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(u)),f.on=n}),i===0&&o()})}var bi=0;function N(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function cn(){return++bi}var b=L.prototype;N.prototype={constructor:N,select:ei,selectAll:ri,selectChild:b.selectChild,selectChildren:b.selectChildren,filter:Wr,merge:Jr,selection:oi,transition:vi,call:b.call,nodes:b.nodes,node:b.node,size:b.size,empty:b.empty,each:b.each,on:jr,attr:Ir,attrTween:Dr,style:li,styleTween:pi,text:gi,textTween:xi,remove:ni,tween:kr,delay:Lr,duration:zr,ease:Ur,easeVarying:Gr,end:mi,[Symbol.iterator]:b[Symbol.iterator]};function Ni(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Ai={time:null,delay:0,duration:250,ease:Ni};function $i(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function ki(t){var n,e;t instanceof N?(n=t._id,t=t._name):(n=cn(),(e=Ai).time=wt(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,u,f=0;f<a;++f)(u=s[f])&&it(u,t,n,f,s,e||$i(u,n));return new N(r,this._parents,t,n)}L.prototype.interrupt=Nr;L.prototype.transition=ki;function C(t,n,e){this.k=t,this.x=n,this.y=e}C.prototype={constructor:C,scale:function(t){return t===1?this:new C(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new C(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ei=new C(1,0,0);Si.prototype=C.prototype;function Si(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Ei;return t.__zoom}export{V as C,g as R,C as T,P as a,It as b,yt as c,lr as d,gt as e,Zt as f,Pt as g,Ti as h,A as i,Ei as j,br as k,nn as n,rr as r,Ci as s,Si as t};
@@ -1 +1 @@
1
- import{j as e,by as i,bz as u,bw as d,G as l,bA as c,bB as f,bC as p}from"./index-BULRe04c.js";function x({label:s,title:t}){const{isDesktop:r}=f();return r?t?e.jsx("p",{className:"text-foreground mb-1.5 font-medium",children:t}):null:e.jsx(p,{children:t??s})}function v({label:s,children:t,title:r,className:n,side:o="top",align:a="start"}){return e.jsxs(i,{autoFocus:!0,children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{type:"button","data-slot":"info-tip","aria-label":s,className:l("text-muted-foreground hover:text-foreground focus-ring relative inline-flex size-4 shrink-0 items-center justify-center rounded-full align-middle transition-colors duration-150","after:absolute after:-inset-2 after:content-['']","data-[state=open]:text-foreground",n),children:e.jsx(d,{"aria-hidden":!0,className:"size-3.5"})})}),e.jsxs(c,{side:o,align:a,"aria-label":r??s,className:"w-72 text-sm",children:[e.jsx(x,{label:s,title:r}),e.jsx("div",{className:"text-muted-foreground space-y-2 leading-relaxed",children:t})]})]})}function j(s){return s==="careful"?"careful":"trusted"}export{v as I,j as t};
1
+ import{j as e,by as i,bz as u,bw as d,G as l,bA as c,bB as f,bC as p}from"./index-DcZPWi_I.js";function x({label:s,title:t}){const{isDesktop:r}=f();return r?t?e.jsx("p",{className:"text-foreground mb-1.5 font-medium",children:t}):null:e.jsx(p,{children:t??s})}function v({label:s,children:t,title:r,className:n,side:o="top",align:a="start"}){return e.jsxs(i,{autoFocus:!0,children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{type:"button","data-slot":"info-tip","aria-label":s,className:l("text-muted-foreground hover:text-foreground focus-ring relative inline-flex size-4 shrink-0 items-center justify-center rounded-full align-middle transition-colors duration-150","after:absolute after:-inset-2 after:content-['']","data-[state=open]:text-foreground",n),children:e.jsx(d,{"aria-hidden":!0,className:"size-3.5"})})}),e.jsxs(c,{side:o,align:a,"aria-label":r??s,className:"w-72 text-sm",children:[e.jsx(x,{label:s,title:r}),e.jsx("div",{className:"text-muted-foreground space-y-2 leading-relaxed",children:t})]})]})}function j(s){return s==="careful"?"careful":"trusted"}export{v as I,j as t};
@@ -1,4 +1,4 @@
1
- import{W as e}from"./index-BULRe04c.js";/**
1
+ import{W as e}from"./index-DcZPWi_I.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as r}from"./index-BULRe04c.js";function o({id:e}){return r.jsx("p",{"data-slot":"unverified-catalog-notice",id:e,className:"text-muted-foreground border-border text-2xs rounded-lg border border-dashed p-2 leading-snug","data-testid":"model-catalog-unverified",children:"A partial list DorkOS can’t confirm. Connect a provider to see yours."})}export{o as U};
1
+ import{j as r}from"./index-DcZPWi_I.js";function o({id:e}){return r.jsx("p",{"data-slot":"unverified-catalog-notice",id:e,className:"text-muted-foreground border-border text-2xs rounded-lg border border-dashed p-2 leading-snug","data-testid":"model-catalog-unverified",children:"A partial list DorkOS can’t confirm. Connect a provider to see yours."})}export{o as U};
@@ -1 +1 @@
1
- import{a1 as a,a2 as l,a3 as i,a4 as s,a7 as n}from"./index-BULRe04c.js";const o=["relay","adapters","catalog"],c=["relay","adapters"];function d(r){return r instanceof Error?r.message:"An unexpected error occurred"}function m(r=!0){const t=a();return l({queryKey:[...o],queryFn:()=>t.getAdapterCatalog(),enabled:r,refetchInterval:3e4})}const y={suppressErrorToast:!0};function f(){const r=a(),t=i();return s({mutationFn:({type:e,id:u,config:p})=>r.addRelayAdapter(e,u,p),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]})},onError:e=>{n.error(d(e))},meta:y})}function C(){const r=a(),t=i();return s({mutationFn:e=>r.removeRelayAdapter(e),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Connection removed")},onError:e=>{n.error(d(e))},meta:y})}function q(){const r=a(),t=i();return s({mutationFn:({id:e,config:u})=>r.updateRelayAdapterConfig(e,u),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Settings saved")},onError:e=>{n.error(d(e))},meta:y})}function v(){const r=a();return s({mutationFn:({type:t,config:e})=>r.testRelayAdapterConnection(t,e)})}export{f as a,q as b,v as c,C as d,m as u};
1
+ import{a1 as a,a2 as l,a3 as i,a4 as s,a7 as n}from"./index-DcZPWi_I.js";const o=["relay","adapters","catalog"],c=["relay","adapters"];function d(r){return r instanceof Error?r.message:"An unexpected error occurred"}function m(r=!0){const t=a();return l({queryKey:[...o],queryFn:()=>t.getAdapterCatalog(),enabled:r,refetchInterval:3e4})}const y={suppressErrorToast:!0};function f(){const r=a(),t=i();return s({mutationFn:({type:e,id:u,config:p})=>r.addRelayAdapter(e,u,p),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]})},onError:e=>{n.error(d(e))},meta:y})}function C(){const r=a(),t=i();return s({mutationFn:e=>r.removeRelayAdapter(e),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Connection removed")},onError:e=>{n.error(d(e))},meta:y})}function q(){const r=a(),t=i();return s({mutationFn:({id:e,config:u})=>r.updateRelayAdapterConfig(e,u),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Settings saved")},onError:e=>{n.error(d(e))},meta:y})}function v(){const r=a();return s({mutationFn:({type:t,config:e})=>r.testRelayAdapterConnection(t,e)})}export{f as a,q as b,v as c,C as d,m as u};
@@ -1 +1 @@
1
- import{a1 as s,a2 as r}from"./index-BULRe04c.js";const e=["relay","bindings"];function a(){const n=s();return r({queryKey:[...e],queryFn:()=>n.getBindings()})}export{e as B,a as u};
1
+ import{a1 as s,a2 as r}from"./index-DcZPWi_I.js";const e=["relay","bindings"];function a(){const n=s();return r({queryKey:[...e],queryFn:()=>n.getBindings()})}export{e as B,a as u};
@@ -1 +1 @@
1
- import{as as i,aU as o,a1 as c,a3 as p,a4 as m,at as y,au as a,r as C}from"./index-BULRe04c.js";function T(r){var t;return((t=r==null?void 0:r.ui)==null?void 0:t.composer)??o}function v(){const{data:r}=i();return T(r).richText}function Q(){const r=c(),t=p(),u=m({mutationKey:y,mutationFn:s=>r.updateConfig({ui:{composer:{richText:s}}}),onMutate:async s=>{await t.cancelQueries({queryKey:a.current()});const n=t.getQueryData(a.current());return t.setQueryData(a.current(),e=>e!=null&&e.ui?{...e,ui:{...e.ui,composer:{richText:s}}}:e),{previous:n}},onError:(s,n,e)=>{e&&e.previous!==void 0&&t.setQueryData(a.current(),e.previous)},onSettled:()=>{t.invalidateQueries({queryKey:a.current()})}});return{setRichText:C.useCallback(s=>u.mutate(s),[u]),isPending:u.isPending}}export{Q as a,v as u};
1
+ import{as as i,aU as o,a1 as c,a3 as p,a4 as m,at as y,au as a,r as C}from"./index-DcZPWi_I.js";function T(r){var t;return((t=r==null?void 0:r.ui)==null?void 0:t.composer)??o}function v(){const{data:r}=i();return T(r).richText}function Q(){const r=c(),t=p(),u=m({mutationKey:y,mutationFn:s=>r.updateConfig({ui:{composer:{richText:s}}}),onMutate:async s=>{await t.cancelQueries({queryKey:a.current()});const n=t.getQueryData(a.current());return t.setQueryData(a.current(),e=>e!=null&&e.ui?{...e,ui:{...e.ui,composer:{richText:s}}}:e),{previous:n}},onError:(s,n,e)=>{e&&e.previous!==void 0&&t.setQueryData(a.current(),e.previous)},onSettled:()=>{t.invalidateQueries({queryKey:a.current()})}});return{setRichText:C.useCallback(s=>u.mutate(s),[u]),isPending:u.isPending}}export{Q as a,v as u};
@@ -1 +1 @@
1
- import{a1 as a,a2 as y,a3 as l,a4 as p,aQ as r,r as g}from"./index-BULRe04c.js";function C(e,t={}){const n=a();return y({queryKey:r.reviewList(e),queryFn:()=>n.getConnectorManagementReviews(e),enabled:t.enabled??!0,refetchInterval:t.refetchInterval,refetchIntervalInBackground:!1})}function d(e){const t=a();return y({queryKey:r.review(e??""),queryFn:()=>t.getConnectorManagementReview(e??""),enabled:e!==null&&e!==""})}function R(e){const t=a();return y({queryKey:r.agentRequestList(e),queryFn:()=>t.getConnectorAgentRequests(e),meta:{suppressErrorToast:!0}})}function f(e){const t=a();return y({queryKey:r.sessionAgentRequests(e??""),queryFn:()=>t.getConnectorAgentRequests(void 0,e??""),enabled:!!e,meta:{suppressErrorToast:!0}})}function m(e){const t=a();return y({queryKey:r.agentRequest(e??""),queryFn:()=>t.getConnectorAgentRequest(e??""),enabled:e!==null&&e!==""})}function A(){const e=a(),t=l();return p({mutationFn:({requestId:n,decision:o})=>e.resolveConnectorAgentRequest(n,o),meta:{suppressErrorToast:!0},onSuccess:(n,{requestId:o})=>{t.setQueryData(r.agentRequest(o),n),t.invalidateQueries({queryKey:r.agentRequests(),predicate:u=>u.queryKey[3]!==o}),t.invalidateQueries({queryKey:r.connections()})}})}function K(e){const t=a();return p({mutationFn:n=>t.startConnectorAgentRequestAuthentication(e??"",n),meta:{suppressErrorToast:!0}})}function h(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.agentRequestAuthentication(e??"",t??""),queryFn:()=>n.pollConnectorAgentRequestAuthentication(e??"",t??""),enabled:!!(e&&t),refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var i;const s=(i=u.data)==null?void 0:i.state;!s||!e||(s==="connected"&&o.invalidateQueries({queryKey:r.connections()}),(s==="connected"||s==="failed"||s==="expired"||s==="start_unknown")&&o.invalidateQueries({queryKey:r.agentRequests(),predicate:c=>c.queryKey[4]!=="authentication-flow"}))},[(v=u.data)==null?void 0:v.state,o,e]),u}function E(){const e=a(),t=l();return p({mutationFn:({reviewRequestId:n,decision:o})=>e.resolveConnectorManagementReview(n,{decision:o}),meta:{suppressErrorToast:!0},onSuccess:(n,{reviewRequestId:o})=>{t.setQueryData(r.review(o),n.review),t.invalidateQueries({queryKey:r.reviewList("pending")}),t.invalidateQueries({queryKey:r.reviewList("resolved")}),t.invalidateQueries({queryKey:r.connections()})}})}function Q(){const e=a();return p({mutationFn:({connectionId:t})=>e.previewConnectorReconciliation({connectionId:t}),meta:{suppressErrorToast:!0}})}function F(){const e=a(),t=l();return p({mutationFn:n=>e.applyConnectorReconciliation(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function T(){const e=a(),t=l();return p({mutationFn:({connectionId:n})=>e.stopSharingConnectorWithEveryAgent(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function w(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.authenticationFlow(e??""),queryFn:()=>n.pollConnectorAuthentication(e??""),enabled:t&&e!==null&&e!=="",refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,gcTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var s;((s=u.data)==null?void 0:s.state)==="connected"&&o.invalidateQueries({queryKey:r.connections()})},[(v=u.data)==null?void 0:v.state,o]),u}export{F as a,T as b,K as c,h as d,A as e,R as f,C as g,m as h,d as i,E as j,w as k,f as l,Q as u};
1
+ import{a1 as a,a2 as y,a3 as l,a4 as p,aQ as r,r as g}from"./index-DcZPWi_I.js";function C(e,t={}){const n=a();return y({queryKey:r.reviewList(e),queryFn:()=>n.getConnectorManagementReviews(e),enabled:t.enabled??!0,refetchInterval:t.refetchInterval,refetchIntervalInBackground:!1})}function d(e){const t=a();return y({queryKey:r.review(e??""),queryFn:()=>t.getConnectorManagementReview(e??""),enabled:e!==null&&e!==""})}function R(e){const t=a();return y({queryKey:r.agentRequestList(e),queryFn:()=>t.getConnectorAgentRequests(e),meta:{suppressErrorToast:!0}})}function f(e){const t=a();return y({queryKey:r.sessionAgentRequests(e??""),queryFn:()=>t.getConnectorAgentRequests(void 0,e??""),enabled:!!e,meta:{suppressErrorToast:!0}})}function m(e){const t=a();return y({queryKey:r.agentRequest(e??""),queryFn:()=>t.getConnectorAgentRequest(e??""),enabled:e!==null&&e!==""})}function A(){const e=a(),t=l();return p({mutationFn:({requestId:n,decision:o})=>e.resolveConnectorAgentRequest(n,o),meta:{suppressErrorToast:!0},onSuccess:(n,{requestId:o})=>{t.setQueryData(r.agentRequest(o),n),t.invalidateQueries({queryKey:r.agentRequests(),predicate:u=>u.queryKey[3]!==o}),t.invalidateQueries({queryKey:r.connections()})}})}function K(e){const t=a();return p({mutationFn:n=>t.startConnectorAgentRequestAuthentication(e??"",n),meta:{suppressErrorToast:!0}})}function h(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.agentRequestAuthentication(e??"",t??""),queryFn:()=>n.pollConnectorAgentRequestAuthentication(e??"",t??""),enabled:!!(e&&t),refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var i;const s=(i=u.data)==null?void 0:i.state;!s||!e||(s==="connected"&&o.invalidateQueries({queryKey:r.connections()}),(s==="connected"||s==="failed"||s==="expired"||s==="start_unknown")&&o.invalidateQueries({queryKey:r.agentRequests(),predicate:c=>c.queryKey[4]!=="authentication-flow"}))},[(v=u.data)==null?void 0:v.state,o,e]),u}function E(){const e=a(),t=l();return p({mutationFn:({reviewRequestId:n,decision:o})=>e.resolveConnectorManagementReview(n,{decision:o}),meta:{suppressErrorToast:!0},onSuccess:(n,{reviewRequestId:o})=>{t.setQueryData(r.review(o),n.review),t.invalidateQueries({queryKey:r.reviewList("pending")}),t.invalidateQueries({queryKey:r.reviewList("resolved")}),t.invalidateQueries({queryKey:r.connections()})}})}function Q(){const e=a();return p({mutationFn:({connectionId:t})=>e.previewConnectorReconciliation({connectionId:t}),meta:{suppressErrorToast:!0}})}function F(){const e=a(),t=l();return p({mutationFn:n=>e.applyConnectorReconciliation(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function T(){const e=a(),t=l();return p({mutationFn:({connectionId:n})=>e.stopSharingConnectorWithEveryAgent(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function w(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.authenticationFlow(e??""),queryFn:()=>n.pollConnectorAuthentication(e??""),enabled:t&&e!==null&&e!=="",refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,gcTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var s;((s=u.data)==null?void 0:s.state)==="connected"&&o.invalidateQueries({queryKey:r.connections()})},[(v=u.data)==null?void 0:v.state,o]),u}export{F as a,T as b,K as c,h as d,A as e,R as f,C as g,m as h,d as i,E as j,w as k,f as l,Q as u};
@@ -1 +1 @@
1
- import{r as a}from"./index-BULRe04c.js";function n(e,o){a.useEffect(()=>{if(!e)return;const r=e.replace(/[^a-zA-Z0-9-]/g,"");r&&requestAnimationFrame(()=>{const t=document.querySelector(`[data-section="${r}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})},[e,o])}export{n as u};
1
+ import{r as a}from"./index-DcZPWi_I.js";function n(e,o){a.useEffect(()=>{if(!e)return;const r=e.replace(/[^a-zA-Z0-9-]/g,"");r&&requestAnimationFrame(()=>{const t=document.querySelector(`[data-section="${r}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})},[e,o])}export{n as u};
@@ -1 +1 @@
1
- import{a1 as r,a3 as o,a4 as a}from"./index-BULRe04c.js";import{B as s}from"./use-bindings-CFiTPDOx.js";function c(){const e=r(),t=o();return a({mutationFn:n=>e.deleteBinding(n),onSuccess:()=>{t.invalidateQueries({queryKey:[...s]})},meta:{errorLabel:"Couldn’t remove that connection"}})}export{c as u};
1
+ import{a1 as r,a3 as o,a4 as a}from"./index-DcZPWi_I.js";import{B as s}from"./use-bindings-CpyT6kNu.js";function c(){const e=r(),t=o();return a({mutationFn:n=>e.deleteBinding(n),onSuccess:()=>{t.invalidateQueries({queryKey:[...s]})},meta:{errorLabel:"Couldn’t remove that connection"}})}export{c as u};
@@ -1 +1 @@
1
- import{a1 as s,a2 as r,a3 as i,r as n,aa as a,ab as t}from"./index-BULRe04c.js";function l(){const e=s();return r({queryKey:a.devLinks(),queryFn:()=>e.listDevLinks()})}function o(){const e=i();return n.useCallback(()=>{e.invalidateQueries({queryKey:[...a.all,"installed"]}),e.invalidateQueries({queryKey:t.all}),e.invalidateQueries({queryKey:["commands"]})},[e])}export{l as a,o as u};
1
+ import{a1 as s,a2 as r,a3 as i,r as n,aa as a,ab as t}from"./index-DcZPWi_I.js";function l(){const e=s();return r({queryKey:a.devLinks(),queryFn:()=>e.listDevLinks()})}function o(){const e=i();return n.useCallback(()=>{e.invalidateQueries({queryKey:[...a.all,"installed"]}),e.invalidateQueries({queryKey:t.all}),e.invalidateQueries({queryKey:["commands"]})},[e])}export{l as a,o as u};
@@ -1 +1 @@
1
- import{r as s}from"./index-BULRe04c.js";import{u as n}from"./use-adapter-catalog-ClW3m3Yz.js";const u="internal";function m(r=!0){const t=n(r),e=s.useMemo(()=>{var a;return((a=t.data)==null?void 0:a.filter(o=>o.manifest.category!==u))??[]},[t.data]);return{...t,data:e}}export{m as u};
1
+ import{r as s}from"./index-DcZPWi_I.js";import{u as n}from"./use-adapter-catalog-YTofdqDJ.js";const u="internal";function m(r=!0){const t=n(r),e=s.useMemo(()=>{var a;return((a=t.data)==null?void 0:a.filter(o=>o.manifest.category!==u))??[]},[t.data]);return{...t,data:e}}export{m as u};
@@ -1 +1 @@
1
- import{a1 as r,av as a}from"./index-BULRe04c.js";const n=["activity"];function o(t={}){const i=r();return a({queryKey:[...n,t],queryFn:({pageParam:e})=>i.listActivityEvents({...t,limit:50,before:e}),initialPageParam:void 0,getNextPageParam:e=>e.nextCursor??void 0,staleTime:3e4,refetchOnWindowFocus:!0})}export{n as A,o as u};
1
+ import{a1 as r,av as a}from"./index-DcZPWi_I.js";const n=["activity"];function o(t={}){const i=r();return a({queryKey:[...n,t],queryFn:({pageParam:e})=>i.listActivityEvents({...t,limit:50,before:e}),initialPageParam:void 0,getNextPageParam:e=>e.nextCursor??void 0,staleTime:3e4,refetchOnWindowFocus:!0})}export{n as A,o as u};
@@ -0,0 +1 @@
1
+ import{aw as e}from"./index-DcZPWi_I.js";const o=1024;function t(){return e(`(max-width: ${o-1}px)`)}export{t as u};
@@ -0,0 +1 @@
1
+ import{as as r}from"./index-DcZPWi_I.js";function u(){var e;return((e=r().data)==null?void 0:e.serverRole)==="hub"}export{u};
@@ -1,11 +1,11 @@
1
- import{r as p,W as v,j as d,fR as N,G as M,fS as x,fT as S,eM as _,fU as L,fV as m,ei as T,eL as C,fW as E,fX as D}from"./index-BULRe04c.js";function J(){const[e,t]=p.useState(()=>y());return p.useEffect(()=>{const n=window.visualViewport;if(!n)return;const s=()=>{const r=y();t(i=>i===r?i:r)};return n.addEventListener("resize",s),n.addEventListener("scroll",s),()=>{n.removeEventListener("resize",s),n.removeEventListener("scroll",s)}},[]),e}function y(){const e=typeof window<"u"?window.visualViewport:void 0;return!e||e.scale>1?0:Math.max(0,Math.round(window.innerHeight-(e.height+e.offsetTop)))}/**
1
+ import{r as p,W as v,j as d,fS as N,G as M,fT as x,fU as S,eN as _,fV as L,fW as m,ei as T,eM as C,fX as E,fY as D}from"./index-DcZPWi_I.js";function J(){const[e,t]=p.useState(()=>y());return p.useEffect(()=>{const n=window.visualViewport;if(!n)return;const s=()=>{const r=y();t(i=>i===r?i:r)};return n.addEventListener("resize",s),n.addEventListener("scroll",s),()=>{n.removeEventListener("resize",s),n.removeEventListener("scroll",s)}},[]),e}function y(){const e=typeof window<"u"?window.visualViewport:void 0;return!e||e.scale>1?0:Math.max(0,Math.round(window.innerHeight-(e.height+e.offsetTop)))}/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const A={name:"at-sign",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]};A.node;const R=v(A);/**
6
+ */const A={name:"at-sign",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]};A.node;const U=v(A);/**
7
7
  * @license lucide-react v1.48.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const g={name:"repeat",size:24,node:[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]};g.node;const U=v(g),O=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function Y({gripStyle:e,onDragging:t,onResizeEnd:n,disabled:s=!1,...r}){const i=a=>{!s&&O.has(a.key)&&(n==null||n())};return d.jsx(N,{...r,disabled:s,tabIndex:s?-1:0,"aria-disabled":s||void 0,onDragging:a=>{t==null||t(a),a||n==null||n()},onKeyDown:i,className:"group relative outline-none",style:{width:0,overflow:"visible"},children:d.jsx("div",{className:"absolute inset-y-0 -left-1 z-10 flex w-2 items-center justify-center",style:e,children:d.jsx("div",{"data-slot":"pane-resize-line",className:M("h-full w-px transition-colors duration-500",!s&&"group-hover:bg-ring/50 group-focus-visible:bg-ring group-focus-visible:transition-none")})})})}const k=8;function I(e){if(e==null)return null;const t=e.replace(/\s+/g," ").trim();return t.length===0?null:t}function W(e){if(L(e)){const n=e.unreadCount??0;return n===1?"1 new message":`${n} new messages`}const t=e.working??0;return t>0?t===1?"1 agent working":`${t} agents working`:I(e.topic)}function w(e){return{kind:"session",id:e.id,name:S(e.title),summary:I(e.lastMessagePreview),lastActivityAt:e.updatedAt,session:e}}function B(e){return{kind:e.kind==="dm"?"dm":"channel",id:e.id,name:_(e),summary:W(e),lastActivityAt:e.lastActivityAt,room:e}}function l(e){if(e===void 0)return null;const t=Date.parse(e);return Number.isNaN(t)?null:t}function H(e){return e.kind==="session"?m("session",e.id):m("room",e.id)}function h(e,t){const n=[l(t[H(e)]),...e.kind==="session"?[l(e.session.lastTouchedByYouAt),l(e.session.userLastMessageAt)]:[]].filter(s=>s!==null);return n.length>0?Math.max(...n):l(e.lastActivityAt)??Number.NEGATIVE_INFINITY}function j(e){return(t,n)=>h(n,e)-h(t,e)||n.id.localeCompare(t.id)}function K(e){const t=new Set;return e.filter(n=>{const s=`${n.kind}:${n.id}`;return t.has(s)?!1:(t.add(s),!0)})}function V(e,t){return!(t.has(e.id)||e.unreadCount===null||e.lastActivityAt===e.createdAt)}function b({sessions:e,rooms:t,mutedRoomIds:n=new Set,interactions:s={},limit:r=k}){const{yours:i,spinOffs:a,automated:o}=x(e),f=j(s),u=[...i.map(w),...t.filter(c=>V(c,n)).map(B)].sort(f);return{items:K(u).slice(0,r),automated:[...a,...o].map(w).sort(f).slice(0,r)}}const P=3,$=D;function G({limit:e=k,mutedRoomIds:t,enabled:n=!0}={}){var u,c;const s=T(Math.max(e*P,$),{enabled:n}),r=C({enabled:n}),i=E(),a=(u=s.data)==null?void 0:u.sessions,o=r.data;return{...p.useMemo(()=>b({sessions:a??[],rooms:o??[],mutedRoomIds:t,interactions:i,limit:e}),[a,o,t,i,e]),isLoading:n&&(s.isLoading||r.isLoading),warnings:((c=s.data)==null?void 0:c.warnings)??[]}}export{R as A,Y as P,U as R,J as a,G as u};
11
+ */const g={name:"repeat",size:24,node:[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]};g.node;const Y=v(g),O=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function R({gripStyle:e,onDragging:t,onResizeEnd:n,disabled:s=!1,...r}){const i=a=>{!s&&O.has(a.key)&&(n==null||n())};return d.jsx(N,{...r,disabled:s,tabIndex:s?-1:0,"aria-disabled":s||void 0,onDragging:a=>{t==null||t(a),a||n==null||n()},onKeyDown:i,className:"group relative outline-none",style:{width:0,overflow:"visible"},children:d.jsx("div",{className:"absolute inset-y-0 -left-1 z-10 flex w-2 items-center justify-center",style:e,children:d.jsx("div",{"data-slot":"pane-resize-line",className:M("h-full w-px transition-colors duration-500",!s&&"group-hover:bg-ring/50 group-focus-visible:bg-ring group-focus-visible:transition-none")})})})}const k=8;function I(e){if(e==null)return null;const t=e.replace(/\s+/g," ").trim();return t.length===0?null:t}function W(e){if(L(e)){const n=e.unreadCount??0;return n===1?"1 new message":`${n} new messages`}const t=e.working??0;return t>0?t===1?"1 agent working":`${t} agents working`:I(e.topic)}function w(e){return{kind:"session",id:e.id,name:S(e.title),summary:I(e.lastMessagePreview),lastActivityAt:e.updatedAt,session:e}}function B(e){return{kind:e.kind==="dm"?"dm":"channel",id:e.id,name:_(e),summary:W(e),lastActivityAt:e.lastActivityAt,room:e}}function l(e){if(e===void 0)return null;const t=Date.parse(e);return Number.isNaN(t)?null:t}function H(e){return e.kind==="session"?m("session",e.id):m("room",e.id)}function h(e,t){const n=[l(t[H(e)]),...e.kind==="session"?[l(e.session.lastTouchedByYouAt),l(e.session.userLastMessageAt)]:[]].filter(s=>s!==null);return n.length>0?Math.max(...n):l(e.lastActivityAt)??Number.NEGATIVE_INFINITY}function j(e){return(t,n)=>h(n,e)-h(t,e)||n.id.localeCompare(t.id)}function K(e){const t=new Set;return e.filter(n=>{const s=`${n.kind}:${n.id}`;return t.has(s)?!1:(t.add(s),!0)})}function V(e,t){return!(t.has(e.id)||e.unreadCount===null||e.lastActivityAt===e.createdAt)}function b({sessions:e,rooms:t,mutedRoomIds:n=new Set,interactions:s={},limit:r=k}){const{yours:i,spinOffs:a,automated:o}=x(e),f=j(s),u=[...i.map(w),...t.filter(c=>V(c,n)).map(B)].sort(f);return{items:K(u).slice(0,r),automated:[...a,...o].map(w).sort(f).slice(0,r)}}const P=3,$=D;function G({limit:e=k,mutedRoomIds:t,enabled:n=!0}={}){var u,c;const s=T(Math.max(e*P,$),{enabled:n}),r=C({enabled:n}),i=E(),a=(u=s.data)==null?void 0:u.sessions,o=r.data;return{...p.useMemo(()=>b({sessions:a??[],rooms:o??[],mutedRoomIds:t,interactions:i,limit:e}),[a,o,t,i,e]),isLoading:n&&(s.isLoading||r.isLoading),warnings:((c=s.data)==null?void 0:c.warnings)??[]}}export{U as A,R as P,Y as R,J as a,G as u};
@@ -1 +1 @@
1
- import{a1 as s,a2 as n}from"./index-BULRe04c.js";const c=["local-browser","state"];function l(e=!0){const r=s();return n({queryKey:c,enabled:e,queryFn:()=>r.getLocalBrowserState(),refetchInterval:t=>{var o;const a=(o=t.state.error)==null?void 0:o.code;return a==="local_only"||a==="owner_only"?!1:1e3},retry:!1})}function i(){const e=s(),r=l(),t=n({queryKey:["local-browser","capabilities"],queryFn:()=>e.getLocalBrowserCapabilities(),retry:!1});return{state:r,capabilities:t}}export{c as L,l as a,i as u};
1
+ import{a1 as s,a2 as n}from"./index-DcZPWi_I.js";const c=["local-browser","state"];function l(e=!0){const r=s();return n({queryKey:c,enabled:e,queryFn:()=>r.getLocalBrowserState(),refetchInterval:t=>{var o;const a=(o=t.state.error)==null?void 0:o.code;return a==="local_only"||a==="owner_only"?!1:1e3},retry:!1})}function i(){const e=s(),r=l(),t=n({queryKey:["local-browser","capabilities"],queryFn:()=>e.getLocalBrowserCapabilities(),retry:!1});return{state:r,capabilities:t}}export{c as L,l as a,i as u};
@@ -1 +1 @@
1
- import{a1 as t,a2 as s,aR as u}from"./index-BULRe04c.js";const a=["mesh","topology"];function n(e,o=!0){const r=t();return s({queryKey:[...a,e],queryFn:()=>r.getMeshTopology(e),enabled:o,staleTime:3e4,refetchInterval:u.EVENT_BACKSTOP_REFETCH_MS})}export{n as u};
1
+ import{a1 as t,a2 as s,aR as u}from"./index-DcZPWi_I.js";const a=["mesh","topology"];function n(e,o=!0){const r=t();return s({queryKey:[...a,e],queryFn:()=>r.getMeshTopology(e),enabled:o,staleTime:3e4,refetchInterval:u.EVENT_BACKSTOP_REFETCH_MS})}export{n as u};
@@ -1 +1 @@
1
- import{r}from"./index-BULRe04c.js";function u(){const e=r.useRef(!0);return r.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}export{u};
1
+ import{r}from"./index-DcZPWi_I.js";function u(){const e=r.useRef(!0);return r.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}export{u};
@@ -1 +1 @@
1
- import{r as d,as as P,a1 as g,a3 as v,dB as N,a4 as S,at as E,au as a}from"./index-BULRe04c.js";function y(){if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";const e=window.Notification.permission;return e==="granted"||e==="denied"||e==="default"?e:"unsupported"}let m=y();const l=new Set;function C(e){return l.add(e),()=>{l.delete(e)}}function b(){return m}function T(){return"unsupported"}function I(){const e=y();if(e!==m){m=e;for(const n of l)n()}}function O(){const e=d.useSyncExternalStore(C,b,T),n=d.useCallback(async()=>{if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";try{await window.Notification.requestPermission()}catch{}return I(),y()},[]);return{permission:e,request:n}}function K(e,n){const[i,o,c]=e.split(".").map(Number),[s,f,t]=n.split(".").map(Number);return i!==s?i>s:o!==f?o>f:c>t}const w="dorkos-enable-notification-sound";let p=!1;function _(){try{const e=localStorage.getItem(w);return e==="true"?!0:e==="false"?!1:void 0}catch{return}}function A(e,n){return{...e,...n.escalation?{escalation:{...e.escalation,...n.escalation}}:{},...n.sounds?{sounds:{...e.sounds,...n.sounds}}:{},...n.notifyOnTurnCompleteWhileAway===void 0?{}:{notifyOnTurnCompleteWhileAway:n.notifyOnTurnCompleteWhileAway},...n.browserPermissionPrimerDismissed===void 0?{}:{browserPermissionPrimerDismissed:n.browserPermissionPrimerDismissed}}}function M(){const{data:e}=P(),n=g(),i=v(),o=(e==null?void 0:e.notifications)??N,c=S({mutationKey:E,mutationFn:t=>n.updateConfig({notifications:t}),onMutate:async t=>{await i.cancelQueries({queryKey:a.current()});const u=i.getQueryData(a.current());return i.setQueryData(a.current(),r=>r!=null&&r.notifications?{...r,notifications:A(r.notifications,t)}:r),{previous:u}},onError:(t,u,r)=>{r&&r.previous!==void 0&&i.setQueryData(a.current(),r.previous)},onSettled:()=>{i.invalidateQueries({queryKey:a.current()})}}),{mutate:s}=c,f=d.useCallback(t=>s(t),[s]);return d.useEffect(()=>{if(p||e===void 0)return;p=!0;const t=_();if(t===void 0)return;const u=()=>{try{localStorage.removeItem(w)}catch{}};if(t===o.sounds.turnEnd){u();return}s({sounds:{turnEnd:t}},{onSuccess:u})},[e,o.sounds.turnEnd,s]),{prefs:o,setPrefs:f,isPending:c.isPending}}export{O as a,K as i,M as u};
1
+ import{r as d,as as P,a1 as g,a3 as v,dB as N,a4 as S,at as E,au as a}from"./index-DcZPWi_I.js";function y(){if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";const e=window.Notification.permission;return e==="granted"||e==="denied"||e==="default"?e:"unsupported"}let m=y();const l=new Set;function C(e){return l.add(e),()=>{l.delete(e)}}function b(){return m}function T(){return"unsupported"}function I(){const e=y();if(e!==m){m=e;for(const n of l)n()}}function O(){const e=d.useSyncExternalStore(C,b,T),n=d.useCallback(async()=>{if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";try{await window.Notification.requestPermission()}catch{}return I(),y()},[]);return{permission:e,request:n}}function K(e,n){const[i,o,c]=e.split(".").map(Number),[s,f,t]=n.split(".").map(Number);return i!==s?i>s:o!==f?o>f:c>t}const w="dorkos-enable-notification-sound";let p=!1;function _(){try{const e=localStorage.getItem(w);return e==="true"?!0:e==="false"?!1:void 0}catch{return}}function A(e,n){return{...e,...n.escalation?{escalation:{...e.escalation,...n.escalation}}:{},...n.sounds?{sounds:{...e.sounds,...n.sounds}}:{},...n.notifyOnTurnCompleteWhileAway===void 0?{}:{notifyOnTurnCompleteWhileAway:n.notifyOnTurnCompleteWhileAway},...n.browserPermissionPrimerDismissed===void 0?{}:{browserPermissionPrimerDismissed:n.browserPermissionPrimerDismissed}}}function M(){const{data:e}=P(),n=g(),i=v(),o=(e==null?void 0:e.notifications)??N,c=S({mutationKey:E,mutationFn:t=>n.updateConfig({notifications:t}),onMutate:async t=>{await i.cancelQueries({queryKey:a.current()});const u=i.getQueryData(a.current());return i.setQueryData(a.current(),r=>r!=null&&r.notifications?{...r,notifications:A(r.notifications,t)}:r),{previous:u}},onError:(t,u,r)=>{r&&r.previous!==void 0&&i.setQueryData(a.current(),r.previous)},onSettled:()=>{i.invalidateQueries({queryKey:a.current()})}}),{mutate:s}=c,f=d.useCallback(t=>s(t),[s]);return d.useEffect(()=>{if(p||e===void 0)return;p=!0;const t=_();if(t===void 0)return;const u=()=>{try{localStorage.removeItem(w)}catch{}};if(t===o.sounds.turnEnd){u();return}s({sounds:{turnEnd:t}},{onSuccess:u})},[e,o.sounds.turnEnd,s]),{prefs:o,setPrefs:f,isPending:c.isPending}}export{O as a,K as i,M as u};
@@ -1 +1 @@
1
- import{as as f,a1 as y,a3 as d,a4 as T,at as P,au as i,r as b}from"./index-BULRe04c.js";const l=Object.freeze([]);function p(){var e;const{data:t}=f();return((e=t==null?void 0:t.ui)==null?void 0:e.panelTabs)??l}function m(t,e,u){const r=t.filter(a=>a.tab!==e);if(!u)return r;const o={tab:e,show:u.show,hide:u.hide},n=t.findIndex(a=>a.tab===e);return n===-1?[...r,o]:[...r.slice(0,n),o,...r.slice(n)]}function C(){const t=y(),e=d(),u=T({mutationKey:P,mutationFn:({next:n})=>t.updateConfig({ui:{panelTabs:n}}),onError:(n,{previous:a})=>{a!==void 0&&e.setQueryData(i.current(),a)},onSettled:()=>{e.invalidateQueries({queryKey:i.current()})}}),{mutate:r}=u;return{setPlacement:b.useCallback((n,a)=>{const s=e.getQueryData(i.current());if(!(s!=null&&s.ui))return;e.cancelQueries({queryKey:i.current()});const c=m(s.ui.panelTabs??l,n,a);e.setQueryData(i.current(),{...s,ui:{...s.ui,panelTabs:c}}),r({next:c,previous:s})},[r,e]),isPending:u.isPending}}export{C as a,p as u};
1
+ import{as as f,a1 as y,a3 as d,a4 as T,at as P,au as i,r as b}from"./index-DcZPWi_I.js";const l=Object.freeze([]);function p(){var e;const{data:t}=f();return((e=t==null?void 0:t.ui)==null?void 0:e.panelTabs)??l}function m(t,e,u){const r=t.filter(a=>a.tab!==e);if(!u)return r;const o={tab:e,show:u.show,hide:u.hide},n=t.findIndex(a=>a.tab===e);return n===-1?[...r,o]:[...r.slice(0,n),o,...r.slice(n)]}function C(){const t=y(),e=d(),u=T({mutationKey:P,mutationFn:({next:n})=>t.updateConfig({ui:{panelTabs:n}}),onError:(n,{previous:a})=>{a!==void 0&&e.setQueryData(i.current(),a)},onSettled:()=>{e.invalidateQueries({queryKey:i.current()})}}),{mutate:r}=u;return{setPlacement:b.useCallback((n,a)=>{const s=e.getQueryData(i.current());if(!(s!=null&&s.ui))return;e.cancelQueries({queryKey:i.current()});const c=m(s.ui.panelTabs??l,n,a);e.setQueryData(i.current(),{...s,ui:{...s.ui,panelTabs:c}}),r({next:c,previous:s})},[r,e]),isPending:u.isPending}}export{C as a,p as u};
@@ -0,0 +1 @@
1
+ import{ac as n}from"./index-DcZPWi_I.js";function r(s){const e=n();return s||e}export{r as u};
@@ -1 +1 @@
1
- import{r as u,gB as Oe,bp as Le,bn as H,dl as Fe,j as t,bm as F,bt as He,bo as U,gC as Ge,bs as ye,gD as Ke,bu as q,bv as ze,gE as Ue,gF as Ye,G as P,V as ve,gG as we,dy as We,gH as Xe,bx as pe,ar as re,gI as qe,d3 as xe,gJ as Je}from"./index-BULRe04c.js";import{g as Qe}from"./dorkbot-templates-8Yu9POWJ.js";import{p as K}from"./sound-D3r8dGFH.js";import{p as Ze}from"./soul-file-CoSSajv6.js";var et=Object.defineProperty,h=(r,e)=>et(r,"name",{value:e,configurable:!0}),je=["PageUp","PageDown"],Ce=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ke={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Y="Slider",[oe,tt,rt]=Oe(Y),[ae,Ot]=Le(Y,[rt]),[nt,W]=ae(Y),st=u.forwardRef(h(function(e,s){const{name:a,min:i=0,max:n=100,step:d=1,orientation:l="horizontal",disabled:p=!1,minStepsBetweenThumbs:c=0,defaultValue:o=[i],value:x,onValueChange:f=h(()=>{},"onValueChange"),onValueCommit:g=h(()=>{},"onValueCommit"),inverted:j=!1,form:w,...S}=e,R=u.useRef(new Set),k=u.useRef(0),T=u.useRef(!1),_=l==="horizontal"?ot:it,[C,O]=u.useState(null),b=H(s,O),[m=[],v]=Fe({prop:x,defaultProp:o,onChange:h(y=>{var $;($=[...R.current][k.current])==null||$.focus({preventScroll:!0,focusVisible:T.current}),T.current=!1,f(y)},"onChange")}),D=u.useRef(m),X=u.useRef(m);u.useEffect(()=>{const y=w?C==null?void 0:C.ownerDocument.getElementById(w):C==null?void 0:C.closest("form");if(y instanceof HTMLFormElement){const N=h(()=>v(X.current),"reset");return y.addEventListener("reset",N),()=>y.removeEventListener("reset",N)}},[C,w,v]);function I(y){const N=_e(m,y);E(y,N)}h(I,"handleSlideStart");function B(y){E(y,k.current)}h(B,"handleSlideMove");function M(){String(m)!==String(D.current)&&g(m)}h(M,"handleSlideEnd");function E(y,N,{commit:$}={commit:!1}){const fe=ce(d),te=z(Math.round((y-i)/d)*d+i,fe),G=ye(te,[i,n]);v((L=[])=>{const V=Te(L,G,N);if($e(V,c*d)){k.current=V.indexOf(G);const me=String(V)!==String(L);return me&&$&&g(V),me?V:L}else return L})}return h(E,"updateValues"),t.jsx(nt,{scope:e.__scopeSlider,name:a,disabled:p,min:i,max:n,valueIndexToChangeRef:k,thumbs:R.current,values:m,orientation:l,form:w,children:t.jsx(oe.Provider,{scope:e.__scopeSlider,children:t.jsx(oe.Slot,{scope:e.__scopeSlider,children:t.jsx(_,{"aria-disabled":p,"data-disabled":p?"":void 0,...S,ref:b,onPointerDown:F(S.onPointerDown,()=>{p||(D.current=m,T.current=!1)}),min:i,max:n,inverted:j,onSlideStart:p?void 0:I,onSlideMove:p?void 0:B,onSlideEnd:p?void 0:M,onHomeKeyDown:()=>{p||(T.current=!0,E(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(T.current=!0,E(n,m.length-1,{commit:!0}))},onStepKeyDown:({event:y,direction:N})=>{if(!p){T.current=!0;const te=je.includes(y.key)||y.shiftKey&&Ce.includes(y.key)?10:1,G=k.current,L=m[G],V=Ie(L,{min:i,step:d,direction:N,multiplier:te});E(V,G,{commit:!0})}}})})})})},"Slider")),[Re,Me]=ae(Y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ot=u.forwardRef(h(function(e,s){const{min:a,max:i,dir:n,inverted:d,onSlideStart:l,onSlideMove:p,onSlideEnd:c,onStepKeyDown:o,...x}=e,[f,g]=u.useState(null),j=H(s,g),w=u.useRef(void 0),S=He(n),R=S==="ltr",k=R&&!d||!R&&d;function T(A){const _=w.current||f.getBoundingClientRect(),C=[0,_.width],b=ee(C,k?[a,i]:[i,a]);return w.current=_,b(A-_.left)}return h(T,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:t.jsx(Ee,{dir:S,"data-orientation":"horizontal",...x,ref:j,style:{...x.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const _=T(A.clientX);l==null||l(_)},onSlideMove:A=>{const _=T(A.clientX);p==null||p(_)},onSlideEnd:()=>{w.current=void 0,c==null||c()},onStepKeyDown:A=>{const C=ke[k?"from-left":"from-right"].includes(A.key);o==null||o({event:A,direction:C?-1:1})}})})},"SliderHorizontal")),it=u.forwardRef(h(function(e,s){const{min:a,max:i,inverted:n,onSlideStart:d,onSlideMove:l,onSlideEnd:p,onStepKeyDown:c,...o}=e,x=u.useRef(null),f=H(s,x),g=u.useRef(void 0),j=!n;function w(S){const R=g.current||x.current.getBoundingClientRect(),k=[0,R.height],A=ee(k,j?[i,a]:[a,i]);return g.current=R,A(S-R.top)}return h(w,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:t.jsx(Ee,{"data-orientation":"vertical",...o,ref:f,style:{...o.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const R=w(S.clientY);d==null||d(R)},onSlideMove:S=>{const R=w(S.clientY);l==null||l(R)},onSlideEnd:()=>{g.current=void 0,p==null||p()},onStepKeyDown:S=>{const k=ke[j?"from-bottom":"from-top"].includes(S.key);c==null||c({event:S,direction:k?-1:1})}})})},"SliderVertical")),Ee=u.forwardRef(h(function(e,s){const{__scopeSlider:a,onSlideStart:i,onSlideMove:n,onSlideEnd:d,onHomeKeyDown:l,onEndKeyDown:p,onStepKeyDown:c,...o}=e,x=W(Y,a);return t.jsx(U.span,{...o,ref:s,onKeyDown:F(e.onKeyDown,f=>{f.key==="Home"?(l(f),f.preventDefault()):f.key==="End"?(p(f),f.preventDefault()):je.concat(Ce).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:F(e.onPointerDown,f=>{const g=f.target;g.setPointerCapture(f.pointerId),f.preventDefault(),x.thumbs.has(g)?g.focus({preventScroll:!0,focusVisible:!1}):i(f)}),onPointerMove:F(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&n(f)}),onPointerUp:F(e.onPointerUp,f=>{const g=f.target;g.hasPointerCapture(f.pointerId)&&(g.releasePointerCapture(f.pointerId),d(f))})})},"SliderImpl")),at="SliderTrack",lt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(at,a);return t.jsx(U.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:s})},"SliderTrack")),he="SliderRange",ct=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(he,a),d=Me(he,a),l=u.useRef(null),p=H(s,l),c=n.values.length,o=n.values.map(g=>le(g,n.min,n.max)),x=c>1?Math.min(...o):0,f=100-Math.max(...o);return t.jsx(U.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:p,style:{...e.style,[d.startEdge]:x+"%",[d.endEdge]:f+"%"}})},"SliderRange")),dt="SliderThumb",[ut,Pe]=ae(dt),ft="SliderThumbProvider";function Ae(r){const{__scopeSlider:e,name:s,children:a,internal_do_not_use_render:i}=r,n=W(ft,e),d=tt(e),[l,p]=u.useState(null),c=u.useMemo(()=>l?d().findIndex(S=>S.ref.current===l):-1,[d,l]),o=Ke(l),x=l?!!n.form||!!l.closest("form"):!0,f=n.values[c],g=s??(n.name?n.name+(n.values.length>1?"[]":""):void 0),j=f===void 0?0:le(f,n.min,n.max);u.useEffect(()=>{if(l)return n.thumbs.add(l),()=>{n.thumbs.delete(l)}},[l,n.thumbs]);const w={value:f,name:g,form:n.form,isFormControl:x,index:c,thumb:l,onThumbChange:p,percent:j,size:o};return t.jsx(ut,{scope:e,...w,children:Ve(i)?i(w):a})}h(Ae,"SliderThumbProvider");var ne="SliderThumbTrigger",mt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(ne,a),d=Me(ne,a),{index:l,value:p,percent:c,size:o,onThumbChange:x}=Pe(ne,a),f=H(s,x),g=Ne(l,n.values.length),j=o==null?void 0:o[d.size],w=j?Be(j,c,d.direction):0;return t.jsx("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${c}% + ${w}px)`},children:t.jsx(oe.ItemSlot,{scope:a,children:t.jsx(U.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":n.min,"aria-valuenow":p,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...i,ref:f,style:p===void 0?{display:"none"}:e.style,onFocus:F(e.onFocus,()=>{n.valueIndexToChangeRef.current=l})})})})},"SliderThumbTrigger")),pt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,name:i,...n}=e;return t.jsx(Ae,{__scopeSlider:a,name:i,internal_do_not_use_render:({index:d,isFormControl:l})=>t.jsxs(t.Fragment,{children:[t.jsx(mt,{...n,ref:s,__scopeSlider:a}),l?t.jsx(ht,{__scopeSlider:a},d):null]})})},"SliderThumb")),xt="SliderBubbleInput",ht=u.forwardRef(h(function({__scopeSlider:e,...s},a){const{value:i,name:n,form:d}=Pe(xt,e),l=u.useRef(null),p=H(l,a),c=Ge(i);return u.useEffect(()=>{const o=l.current;if(!o)return;const x=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(x,"value").set;if(c!==i&&g){const j=new Event("input",{bubbles:!0});g.call(o,i),o.dispatchEvent(j)}},[c,i]),t.jsx(U.input,{style:{display:"none"},name:n,form:d,...s,ref:p,defaultValue:i})},"SliderBubbleInput"));function Te(r=[],e,s){const a=[...r];return a[s]=e,a.sort((i,n)=>i-n)}h(Te,"getNextSortedValues");function le(r,e,s){const n=100/(s-e)*(r-e);return ye(n,[0,100])}h(le,"convertValueToPercentage");function Ne(r,e){return e>2?`Value ${r+1} of ${e}`:e===2?["Minimum","Maximum"][r]:void 0}h(Ne,"getLabel");function _e(r,e){if(r.length===1)return 0;const s=r.map(i=>Math.abs(i-e)),a=Math.min(...s);return s.indexOf(a)}h(_e,"getClosestValueIndex");function Be(r,e,s){const a=r/2,n=ee([0,50],[0,a]);return(a-n(e)*s)*s}h(Be,"getThumbInBoundsOffset");function De(r){return r.slice(0,-1).map((e,s)=>r[s+1]-e)}h(De,"getStepsBetweenValues");function $e(r,e){if(e>0){const s=De(r);return Math.min(...s)>=e}return!0}h($e,"hasMinStepsBetweenValues");function ee(r,e){return s=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const a=(e[1]-e[0])/(r[1]-r[0]);return e[0]+a*(s-r[0])}}h(ee,"linearScale");function ce(r){if(!Number.isFinite(r))return 0;const e=r.toString();if(e.includes("e")){const[a,i]=e.split("e"),n=a.split(".")[1]||"",d=Number(i);return Math.max(0,n.length-d)}const s=e.split(".")[1];return s?s.length:0}h(ce,"getDecimalCount");function z(r,e){const s=Math.pow(10,e);return Math.round(r*s)/s}h(z,"roundValue");function Ie(r,{min:e,step:s,direction:a,multiplier:i}){const n=ce(s),d=(r-e)/s,l=Math.round(d),p=z(l*s+e,n)===z(r,n);let c;return p?c=l+i*a:a>0?c=Math.ceil(d):c=Math.floor(d),z(c*s+e,n)}h(Ie,"getNextStepValue");function Ve(r){return typeof r=="function"}h(Ve,"isFunction");function gt({className:r,defaultValue:e,value:s,min:a=0,max:i=100,...n}){const d=u.useMemo(()=>Array.isArray(s)?s:Array.isArray(e)?e:[a,i],[s,e,a,i]);return t.jsxs(st,{"data-slot":"slider",defaultValue:e,value:s,min:a,max:i,className:q("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...n,children:[t.jsx(lt,{"data-slot":"slider-track",className:q("bg-dui-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:t.jsx(ct,{"data-slot":"slider-range",className:q("bg-dui-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(l,p)=>t.jsx(pt,{"data-slot":"slider-thumb",className:q("border-dui-primary hover:ring-dui-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none!",ze)},p))]})}const ge={light:{heroGlow:"28",heroGlowOuter:"14",pillBgStart:"20",pillBgEnd:"14",pillBorder:"50",pillGlow:"30"},dark:{heroGlow:"18",heroGlowOuter:"08",pillBgStart:"12",pillBgEnd:"08",pillBorder:"40",pillGlow:"33"}};function bt(){return document.documentElement.classList.contains("dark")}function St(){return!1}function yt(r){const e=new MutationObserver(s=>{for(const a of s)if(a.attributeName==="class"){r();return}});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()}function de(){return u.useSyncExternalStore(yt,bt,St)}function vt(){return de()?ge.dark:ge.light}function wt({traits:r,onChange:e,onSliderChange:s}){const a=u.useCallback((i,n)=>{s==null||s(i,n),e({...r,[i]:n})},[r,e,s]);return t.jsx("div",{className:"space-y-4",children:Ue.map(i=>t.jsx(jt,{name:i,level:r[i]??3,onChange:a},i))})}function jt({name:r,level:e,onChange:s}){const a=Ye[r][e];return t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between text-sm",children:[t.jsx("span",{className:"font-medium capitalize",children:r}),t.jsxs("span",{className:"text-muted-foreground",children:[e,"/5 ",a.label]})]}),t.jsx(gt,{value:[e],onValueChange:([i])=>s(r,i),min:1,max:5,step:1,"aria-label":`${r} trait level`})]})}const Ct=ve("inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium transition-[color,background-color,border-color,box-shadow]",{variants:{size:{sm:"text-2xs px-2.5 py-1",md:"px-3 py-1 text-xs"},state:{rest:"bg-accent text-muted-foreground hover:text-foreground border-transparent",active:"text-foreground",glowing:"text-foreground"}},defaultVariants:{size:"md",state:"rest"}}),kt=ve("",{variants:{gradient:{true:"bg-clip-text text-transparent",false:""}},defaultVariants:{gradient:!1}});function Rt({emoji:r,name:e,colors:s,size:a="md",state:i="rest",gradientText:n=!1,className:d,style:l,...p}){const c=de(),o=vt(),x=i==="active"||i==="glowing";return t.jsxs("button",{type:"button",className:P(Ct({size:a,state:i}),d),style:{...x?{borderColor:c?s.stroke+o.pillBorder:s.stroke+"AA",background:`linear-gradient(135deg, ${s.nebula}${o.pillBgStart}, ${s.wisp}${o.pillBgEnd})`,...i==="glowing"?{boxShadow:`0 0 12px ${s.nebula}${o.pillGlow}`}:{}}:{},...l},...p,children:[t.jsx("span",{children:r}),t.jsx("span",{className:kt({gradient:n}),style:n?{backgroundImage:`linear-gradient(135deg, ${s.stroke}, ${s.strokeEnd})`,...c?{}:{filter:"brightness(0.65) saturate(1.3)"}}:void 0,children:e})]})}const Mt=["Verbosity","Autonomy","Chaos","Creativity","Humor","Spice"],J=["verbosity","autonomy","chaos","creativity","humor","spice"],Z=6,ue=5,be=3,Et=800,Pt=600,Se={light:{nebulaCenter:.45,nebulaMid:.25,wispStart:.2,fillStart:.25,fillEnd:.15,haloBase:.25,haloAmplitude:.12,breatheMin:.25,breatheMax:.4,guideBase:.1,guideStep:.04,axis:.12,stardustPeak:1,glowBlur:12,vertexBlur:4},dark:{nebulaCenter:.35,nebulaMid:.15,wispStart:.12,fillStart:.35,fillEnd:.25,haloBase:.15,haloAmplitude:.1,breatheMin:.15,breatheMax:.25,guideBase:.06,guideStep:.02,axis:.08,stardustPeak:.8,glowBlur:10,vertexBlur:4}},At=[{r:1.2,dur:"9s",fade:"4.5s",begin:"0s",path:"M0,0 C30,-40 60,0 40,40 C20,60 -20,40 -30,10 C-40,-20 -10,-50 0,0"},{r:.9,dur:"7s",fade:"3.5s",begin:"0s",path:"M0,0 C-20,30 -40,20 -30,-10 C-20,-30 10,-40 20,-20 C30,0 20,30 0,0"},{r:1,dur:"11s",fade:"5s",begin:"0s",path:"M0,0 C40,10 30,50 0,40 C-30,30 -40,-10 -20,-30 C0,-50 30,-20 0,0"},{r:.7,dur:"8s",fade:"4s",begin:"2s",path:"M0,0 C15,-35 45,-15 35,20 C25,45 -15,40 -25,15 C-35,-10 -5,-40 0,0"},{r:1.1,dur:"12s",fade:"6s",begin:"1s",path:"M0,0 C-25,25 -45,5 -30,-20 C-15,-45 20,-35 30,-10 C40,15 15,35 0,0"}];function Q(r,e,s,a){const i=Math.PI*2*r/Z-Math.PI/2,n=e/ue*a;return{x:s+n*Math.cos(i),y:s+n*Math.sin(i)}}function ie(r){return r.map(e=>`${e.x},${e.y}`).join(" ")}function Tt(r,e,s){return ie(Array.from({length:Z},(a,i)=>Q(i,r*ue,e,s)))}function Nt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function _t({traits:r,colors:e=we,size:s=180,animated:a=!0,className:i}){const n=u.useId().replace(/:/g,""),d=de(),l=d?Se.dark:Se.light,p=u.useRef(l);p.current=l;const c=d?{strokeStart:e.stroke,strokeEnd:e.strokeEnd,fillStart:e.fill,fillEnd:e.fillEnd,dot:e.dot,glow:e.glow}:{strokeStart:e.fill,strokeEnd:e.fillEnd,fillStart:e.stroke,fillEnd:e.strokeEnd,dot:e.fill,glow:e.stroke},o=s/2,x=s*.32,f=x+16,g=s/200,j=u.useRef(null),w=u.useRef(null),S=u.useRef([]),R=u.useRef([]),k=u.useRef({current:{...r},from:null,target:{...r},morphStart:0,breathe:0}),T=u.useRef(r);u.useEffect(()=>{const b=T.current;if(J.some(v=>b[v]!==r[v])){const v=k.current;if(a){v.from={...v.current},v.target={...r},v.morphStart=performance.now();const D=w.current;if(D){const X=performance.now();(function I(){const B=Math.min((performance.now()-X)/Pt,1),M=1-(1-B)*(1-B);D.setAttribute("r",String(x*(.7+.6*M))),D.setAttribute("opacity",String(.4*(1-M))),B<1&&requestAnimationFrame(I)})()}}else Object.assign(v.current,r),Object.assign(v.target,r)}T.current=r},[r,a,x]),u.useEffect(()=>{if(!a)return;let b;const m=k.current;function v(){var B;m.breathe+=.015;const D=1+Math.sin(m.breathe)*.04;if(m.from){const M=Math.min((performance.now()-m.morphStart)/Et,1),E=Nt(M);for(const y of J)m.current[y]=m.from[y]+(m.target[y]-m.from[y])*E;M>=1&&(m.from=null,Object.assign(m.current,m.target))}const I=J.map(M=>m.current[M]).map((M,E)=>Q(E,M*D,o,x));(B=j.current)==null||B.setAttribute("points",ie(I)),I.forEach((M,E)=>{const y=S.current[E],N=R.current[E];if(y){y.setAttribute("cx",String(M.x)),y.setAttribute("cy",String(M.y)),y.setAttribute("r",String(8+Math.sin(m.breathe+E*1.2)*3));const $=p.current;y.setAttribute("opacity",String($.haloBase+Math.sin(m.breathe+E)*$.haloAmplitude))}N&&(N.setAttribute("cx",String(M.x)),N.setAttribute("cy",String(M.y)),N.setAttribute("r",String(3.5+Math.sin(m.breathe+E*.8)*.8)))}),b=requestAnimationFrame(v)}return b=requestAnimationFrame(v),()=>cancelAnimationFrame(b)},[a,o,x]);const A=J.map((b,m)=>Q(m,r[b],o,x)),_=ie(A),C={transition:"stop-color 0.6s ease"},O={transition:"fill 0.6s ease"};return t.jsxs("svg",{viewBox:`0 0 ${s} ${s}`,className:P("aspect-square",i),"aria-label":"Personality radar chart",role:"img",children:[t.jsxs("defs",{children:[d?t.jsxs("filter",{id:`ng-${n}`,x:"-80%",y:"-80%",width:"260%",height:"260%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.glowBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}):t.jsx("filter",{id:`ng-${n}`,x:"-50%",y:"-30%",width:"200%",height:"200%",children:t.jsx("feDropShadow",{dx:"0",dy:"2",stdDeviation:"6",floodColor:c.strokeStart,floodOpacity:"0.18"})}),t.jsxs("filter",{id:`vg-${n}`,x:"-100%",y:"-100%",width:"300%",height:"300%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.vertexBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),t.jsxs("radialGradient",{id:`nc-${n}`,cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.nebula,stopOpacity:l.nebulaCenter,...C}}),t.jsx("stop",{offset:"50%",style:{stopColor:e.nebula,stopOpacity:l.nebulaMid,...C}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("radialGradient",{id:`nw-${n}`,cx:"35%",cy:"35%",r:"60%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.wisp,stopOpacity:l.wispStart,...C}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("linearGradient",{id:`sf-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.fillStart,stopOpacity:l.fillStart,...C}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.fillEnd,stopOpacity:l.fillEnd,...C}})]}),t.jsxs("linearGradient",{id:`ss-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.strokeStart,...C}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.strokeEnd,...C}})]})]}),t.jsx("circle",{cx:o,cy:o,r:s*.44,fill:`url(#nc-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};360 ${o} ${o}`,dur:"90s",repeatCount:"indefinite"})}),t.jsx("ellipse",{cx:o*.94,cy:o*.97,rx:s*.35,ry:s*.25,fill:`url(#nw-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};-360 ${o} ${o}`,dur:"60s",repeatCount:"indefinite"})}),a&&t.jsxs("circle",{cx:o,cy:o,r:x*.92,fill:"none",style:{stroke:c.strokeStart,transition:"stroke 0.6s ease"},strokeWidth:.3,opacity:l.breatheMin,children:[t.jsx("animate",{attributeName:"r",values:`${x*.85};${x*1.08};${x*.85}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"}),t.jsx("animate",{attributeName:"opacity",values:`${l.breatheMin};${l.breatheMax};${l.breatheMin}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"})]}),a&&t.jsx("g",{transform:`translate(${o},${o}) scale(${g})`,children:At.map((b,m)=>t.jsxs("circle",{r:b.r,style:{fill:c.dot,...O},children:[t.jsx("animateMotion",{dur:b.dur,repeatCount:"indefinite",begin:b.begin,path:b.path}),t.jsx("animate",{attributeName:"opacity",values:`0;${l.stardustPeak};0`,dur:b.fade,repeatCount:"indefinite",begin:b.begin})]},`star-${m}`))}),t.jsx("circle",{ref:w,cx:o,cy:o,r:0,fill:e.nebula,opacity:0}),Array.from({length:be},(b,m)=>t.jsx("polygon",{points:Tt((m+1)/be,o,x),fill:"none",stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.guideBase+m*l.guideStep},`ring-${m}`)),Array.from({length:Z},(b,m)=>{const v=Q(m,ue,o,x);return t.jsx("line",{x1:o,y1:o,x2:v.x,y2:v.y,stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.axis},`axis-${m}`)}),t.jsx("polygon",{ref:j,points:_,fill:`url(#sf-${n})`,stroke:`url(#ss-${n})`,strokeWidth:2,strokeLinejoin:"round",filter:`url(#ng-${n})`}),A.map((b,m)=>t.jsx("circle",{ref:v=>{S.current[m]=v},cx:b.x,cy:b.y,r:8,style:{fill:c.glow,...O},opacity:l.haloBase},`halo-${m}`)),A.map((b,m)=>t.jsx("circle",{ref:v=>{R.current[m]=v},cx:b.x,cy:b.y,r:d?4:4.5,style:{fill:c.dot,...O},stroke:d?"none":"white",strokeWidth:d?0:1.5,filter:`url(#vg-${n})`},`dot-${m}`)),Mt.map((b,m)=>{const v=Math.PI*2*m/Z-Math.PI/2;return t.jsx("text",{x:o+f*Math.cos(v),y:o+f*Math.sin(v),textAnchor:"middle",dominantBaseline:"middle",fill:"currentColor",opacity:.5,fontSize:8,className:"select-none",children:b},b)})]})}const se={duration:.2,ease:"easeInOut"};function Lt({traits:r,onTraitsChange:e,compact:s=!1,layout:a="inline",sampleLabel:i="How this agent talks",className:n}){const[d,l]=u.useState("presets"),p=We()??!1,c=a==="stacked",o=Xe(r),x=(o==null?void 0:o.colors)??we,f=c?Qe(r,o==null?void 0:o.id):"",g=u.useCallback(S=>{e(S.traits),l("presets"),K()},[e]),j=u.useCallback(()=>{l("custom"),K()},[]),w=u.useCallback(()=>{l("presets"),K()},[]);return t.jsxs("div",{className:P("@container/picker w-full",n),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-3",!c&&"@[480px]/picker:flex-row @[480px]/picker:items-center @[480px]/picker:gap-6",c&&"gap-4"),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-1",!c&&"@[480px]/picker:w-[200px] @[480px]/picker:shrink-0",c&&"gap-1.5"),children:[t.jsx("div",{"data-testid":"personality-radar",children:t.jsx(_t,{traits:r,colors:x,size:c?240:s?180:200,className:P(c&&"w-full max-w-[240px]",!c&&(s?"w-[90%] max-w-[240px]":"w-full max-w-[200px]"))})}),t.jsxs("div",{className:"text-center",children:[t.jsx("h3",{className:P("bg-clip-text font-bold text-transparent",c?"text-base":"text-sm"),style:{backgroundImage:`linear-gradient(135deg, ${x.stroke}, ${x.strokeEnd})`},children:(o==null?void 0:o.name)??"Custom"}),t.jsx("p",{className:P("text-muted-foreground mt-0.5",c?"text-xs":"text-2xs"),children:(o==null?void 0:o.tagline)??"A custom blend of personality traits."})]})]}),t.jsx("div",{className:P("flex w-full min-w-0 flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:t.jsx(pe,{mode:"wait",initial:!1,children:d==="presets"?t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex max-w-sm flex-wrap justify-center gap-1.5",!c&&"@[480px]/picker:justify-start"),"data-testid":"preset-pills",children:[qe.map(S=>t.jsx(Rt,{emoji:S.emoji,name:S.name,colors:S.colors,size:s?"sm":"md",state:(o==null?void 0:o.id)===S.id?"glowing":"rest",onClick:()=>g(S)},S.id)),t.jsxs("button",{type:"button",onClick:j,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"custom-toggle",children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]},"presets"):t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex w-full flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:[t.jsxs("div",{className:"flex gap-1.5","data-testid":"custom-mode-pills",children:[t.jsxs("button",{type:"button",onClick:w,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"presets-toggle",children:[t.jsx("span",{children:"←"}),t.jsx("span",{children:"Presets"})]}),t.jsxs("span",{className:P("bg-accent text-foreground inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium","border-foreground/15",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]}),t.jsx("div",{className:P("w-full",s?"max-w-sm":"max-w-md"),onPointerDown:()=>K(),children:t.jsx(wt,{traits:r,onChange:e,onSliderChange:()=>K()})})]},"custom")})})]}),t.jsxs("div",{className:P("w-full max-w-sm",c?"mt-4 flex flex-col items-center":"hidden"),children:[t.jsx("span",{className:"text-muted-foreground text-3xs self-start font-medium tracking-wider uppercase",children:i}),t.jsx("div",{className:"border-primary/40 bg-accent/40 mt-1 w-full rounded-md border-l-2 py-2 pr-3 pl-3",children:c?t.jsx(pe,{mode:"wait",initial:!1,children:t.jsxs(re.p,{"data-testid":"personality-sample",initial:p?!1:{opacity:0,y:4},animate:{opacity:1,y:0},exit:p?void 0:{opacity:0,y:-4},transition:se,className:"text-muted-foreground text-xs leading-relaxed italic",children:["“",f,"”"]},f)}):t.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed italic",children:(o==null?void 0:o.sampleResponse)??"Custom blend. Pick a preset to see a sample reply."})})]})]})}const Bt=400;function Ft(r,e){const s=(r==null?void 0:r.traits)??Je,[a,i]=u.useState(null),n=u.useRef(null),d=u.useRef(null),l=u.useRef({agent:r,update:e});u.useEffect(()=>{l.current={agent:r,update:e}});const p=(r==null?void 0:r.id)??null;u.useEffect(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null),d.current=null,i(null)},[p]);const c=u.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null);const x=d.current;if(d.current=null,x===null)return;const{agent:f,update:g}=l.current;f!==null&&g(Ze(f,x))},[]);u.useEffect(()=>()=>c(),[c]);const o=u.useCallback(x=>{i(x),d.current=x,n.current!==null&&clearTimeout(n.current),n.current=setTimeout(c,Bt)},[c]);return{traits:a??s,onTraitsChange:o}}export{Lt as P,Ft as u};
1
+ import{r as u,gG as Oe,bp as Le,bn as H,dl as Fe,j as t,bm as F,bt as He,bo as U,gH as Ge,bs as ye,gI as Ke,bu as q,bv as ze,gJ as Ue,gK as Ye,G as P,V as ve,gL as we,dy as We,gM as Xe,bx as pe,ar as re,gN as qe,d3 as xe,gO as Je}from"./index-DcZPWi_I.js";import{g as Qe}from"./dorkbot-templates-8Yu9POWJ.js";import{p as K}from"./sound-D3r8dGFH.js";import{p as Ze}from"./soul-file-DOfamgB5.js";var et=Object.defineProperty,h=(r,e)=>et(r,"name",{value:e,configurable:!0}),je=["PageUp","PageDown"],ke=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ce={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Y="Slider",[oe,tt,rt]=Oe(Y),[ae,Ot]=Le(Y,[rt]),[nt,W]=ae(Y),st=u.forwardRef(h(function(e,s){const{name:a,min:i=0,max:n=100,step:d=1,orientation:l="horizontal",disabled:p=!1,minStepsBetweenThumbs:c=0,defaultValue:o=[i],value:x,onValueChange:f=h(()=>{},"onValueChange"),onValueCommit:g=h(()=>{},"onValueCommit"),inverted:j=!1,form:w,...S}=e,R=u.useRef(new Set),C=u.useRef(0),T=u.useRef(!1),_=l==="horizontal"?ot:it,[k,O]=u.useState(null),b=H(s,O),[m=[],v]=Fe({prop:x,defaultProp:o,onChange:h(y=>{var D;(D=[...R.current][C.current])==null||D.focus({preventScroll:!0,focusVisible:T.current}),T.current=!1,f(y)},"onChange")}),B=u.useRef(m),X=u.useRef(m);u.useEffect(()=>{const y=w?k==null?void 0:k.ownerDocument.getElementById(w):k==null?void 0:k.closest("form");if(y instanceof HTMLFormElement){const N=h(()=>v(X.current),"reset");return y.addEventListener("reset",N),()=>y.removeEventListener("reset",N)}},[k,w,v]);function I(y){const N=_e(m,y);E(y,N)}h(I,"handleSlideStart");function $(y){E(y,C.current)}h($,"handleSlideMove");function M(){String(m)!==String(B.current)&&g(m)}h(M,"handleSlideEnd");function E(y,N,{commit:D}={commit:!1}){const fe=ce(d),te=z(Math.round((y-i)/d)*d+i,fe),G=ye(te,[i,n]);v((L=[])=>{const V=Te(L,G,N);if(De(V,c*d)){C.current=V.indexOf(G);const me=String(V)!==String(L);return me&&D&&g(V),me?V:L}else return L})}return h(E,"updateValues"),t.jsx(nt,{scope:e.__scopeSlider,name:a,disabled:p,min:i,max:n,valueIndexToChangeRef:C,thumbs:R.current,values:m,orientation:l,form:w,children:t.jsx(oe.Provider,{scope:e.__scopeSlider,children:t.jsx(oe.Slot,{scope:e.__scopeSlider,children:t.jsx(_,{"aria-disabled":p,"data-disabled":p?"":void 0,...S,ref:b,onPointerDown:F(S.onPointerDown,()=>{p||(B.current=m,T.current=!1)}),min:i,max:n,inverted:j,onSlideStart:p?void 0:I,onSlideMove:p?void 0:$,onSlideEnd:p?void 0:M,onHomeKeyDown:()=>{p||(T.current=!0,E(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(T.current=!0,E(n,m.length-1,{commit:!0}))},onStepKeyDown:({event:y,direction:N})=>{if(!p){T.current=!0;const te=je.includes(y.key)||y.shiftKey&&ke.includes(y.key)?10:1,G=C.current,L=m[G],V=Ie(L,{min:i,step:d,direction:N,multiplier:te});E(V,G,{commit:!0})}}})})})})},"Slider")),[Re,Me]=ae(Y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ot=u.forwardRef(h(function(e,s){const{min:a,max:i,dir:n,inverted:d,onSlideStart:l,onSlideMove:p,onSlideEnd:c,onStepKeyDown:o,...x}=e,[f,g]=u.useState(null),j=H(s,g),w=u.useRef(void 0),S=He(n),R=S==="ltr",C=R&&!d||!R&&d;function T(A){const _=w.current||f.getBoundingClientRect(),k=[0,_.width],b=ee(k,C?[a,i]:[i,a]);return w.current=_,b(A-_.left)}return h(T,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:C?"left":"right",endEdge:C?"right":"left",direction:C?1:-1,size:"width",children:t.jsx(Ee,{dir:S,"data-orientation":"horizontal",...x,ref:j,style:{...x.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const _=T(A.clientX);l==null||l(_)},onSlideMove:A=>{const _=T(A.clientX);p==null||p(_)},onSlideEnd:()=>{w.current=void 0,c==null||c()},onStepKeyDown:A=>{const k=Ce[C?"from-left":"from-right"].includes(A.key);o==null||o({event:A,direction:k?-1:1})}})})},"SliderHorizontal")),it=u.forwardRef(h(function(e,s){const{min:a,max:i,inverted:n,onSlideStart:d,onSlideMove:l,onSlideEnd:p,onStepKeyDown:c,...o}=e,x=u.useRef(null),f=H(s,x),g=u.useRef(void 0),j=!n;function w(S){const R=g.current||x.current.getBoundingClientRect(),C=[0,R.height],A=ee(C,j?[i,a]:[a,i]);return g.current=R,A(S-R.top)}return h(w,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:t.jsx(Ee,{"data-orientation":"vertical",...o,ref:f,style:{...o.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const R=w(S.clientY);d==null||d(R)},onSlideMove:S=>{const R=w(S.clientY);l==null||l(R)},onSlideEnd:()=>{g.current=void 0,p==null||p()},onStepKeyDown:S=>{const C=Ce[j?"from-bottom":"from-top"].includes(S.key);c==null||c({event:S,direction:C?-1:1})}})})},"SliderVertical")),Ee=u.forwardRef(h(function(e,s){const{__scopeSlider:a,onSlideStart:i,onSlideMove:n,onSlideEnd:d,onHomeKeyDown:l,onEndKeyDown:p,onStepKeyDown:c,...o}=e,x=W(Y,a);return t.jsx(U.span,{...o,ref:s,onKeyDown:F(e.onKeyDown,f=>{f.key==="Home"?(l(f),f.preventDefault()):f.key==="End"?(p(f),f.preventDefault()):je.concat(ke).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:F(e.onPointerDown,f=>{const g=f.target;g.setPointerCapture(f.pointerId),f.preventDefault(),x.thumbs.has(g)?g.focus({preventScroll:!0,focusVisible:!1}):i(f)}),onPointerMove:F(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&n(f)}),onPointerUp:F(e.onPointerUp,f=>{const g=f.target;g.hasPointerCapture(f.pointerId)&&(g.releasePointerCapture(f.pointerId),d(f))})})},"SliderImpl")),at="SliderTrack",lt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(at,a);return t.jsx(U.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:s})},"SliderTrack")),he="SliderRange",ct=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(he,a),d=Me(he,a),l=u.useRef(null),p=H(s,l),c=n.values.length,o=n.values.map(g=>le(g,n.min,n.max)),x=c>1?Math.min(...o):0,f=100-Math.max(...o);return t.jsx(U.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:p,style:{...e.style,[d.startEdge]:x+"%",[d.endEdge]:f+"%"}})},"SliderRange")),dt="SliderThumb",[ut,Pe]=ae(dt),ft="SliderThumbProvider";function Ae(r){const{__scopeSlider:e,name:s,children:a,internal_do_not_use_render:i}=r,n=W(ft,e),d=tt(e),[l,p]=u.useState(null),c=u.useMemo(()=>l?d().findIndex(S=>S.ref.current===l):-1,[d,l]),o=Ke(l),x=l?!!n.form||!!l.closest("form"):!0,f=n.values[c],g=s??(n.name?n.name+(n.values.length>1?"[]":""):void 0),j=f===void 0?0:le(f,n.min,n.max);u.useEffect(()=>{if(l)return n.thumbs.add(l),()=>{n.thumbs.delete(l)}},[l,n.thumbs]);const w={value:f,name:g,form:n.form,isFormControl:x,index:c,thumb:l,onThumbChange:p,percent:j,size:o};return t.jsx(ut,{scope:e,...w,children:Ve(i)?i(w):a})}h(Ae,"SliderThumbProvider");var ne="SliderThumbTrigger",mt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(ne,a),d=Me(ne,a),{index:l,value:p,percent:c,size:o,onThumbChange:x}=Pe(ne,a),f=H(s,x),g=Ne(l,n.values.length),j=o==null?void 0:o[d.size],w=j?$e(j,c,d.direction):0;return t.jsx("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${c}% + ${w}px)`},children:t.jsx(oe.ItemSlot,{scope:a,children:t.jsx(U.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":n.min,"aria-valuenow":p,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...i,ref:f,style:p===void 0?{display:"none"}:e.style,onFocus:F(e.onFocus,()=>{n.valueIndexToChangeRef.current=l})})})})},"SliderThumbTrigger")),pt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,name:i,...n}=e;return t.jsx(Ae,{__scopeSlider:a,name:i,internal_do_not_use_render:({index:d,isFormControl:l})=>t.jsxs(t.Fragment,{children:[t.jsx(mt,{...n,ref:s,__scopeSlider:a}),l?t.jsx(ht,{__scopeSlider:a},d):null]})})},"SliderThumb")),xt="SliderBubbleInput",ht=u.forwardRef(h(function({__scopeSlider:e,...s},a){const{value:i,name:n,form:d}=Pe(xt,e),l=u.useRef(null),p=H(l,a),c=Ge(i);return u.useEffect(()=>{const o=l.current;if(!o)return;const x=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(x,"value").set;if(c!==i&&g){const j=new Event("input",{bubbles:!0});g.call(o,i),o.dispatchEvent(j)}},[c,i]),t.jsx(U.input,{style:{display:"none"},name:n,form:d,...s,ref:p,defaultValue:i})},"SliderBubbleInput"));function Te(r=[],e,s){const a=[...r];return a[s]=e,a.sort((i,n)=>i-n)}h(Te,"getNextSortedValues");function le(r,e,s){const n=100/(s-e)*(r-e);return ye(n,[0,100])}h(le,"convertValueToPercentage");function Ne(r,e){return e>2?`Value ${r+1} of ${e}`:e===2?["Minimum","Maximum"][r]:void 0}h(Ne,"getLabel");function _e(r,e){if(r.length===1)return 0;const s=r.map(i=>Math.abs(i-e)),a=Math.min(...s);return s.indexOf(a)}h(_e,"getClosestValueIndex");function $e(r,e,s){const a=r/2,n=ee([0,50],[0,a]);return(a-n(e)*s)*s}h($e,"getThumbInBoundsOffset");function Be(r){return r.slice(0,-1).map((e,s)=>r[s+1]-e)}h(Be,"getStepsBetweenValues");function De(r,e){if(e>0){const s=Be(r);return Math.min(...s)>=e}return!0}h(De,"hasMinStepsBetweenValues");function ee(r,e){return s=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const a=(e[1]-e[0])/(r[1]-r[0]);return e[0]+a*(s-r[0])}}h(ee,"linearScale");function ce(r){if(!Number.isFinite(r))return 0;const e=r.toString();if(e.includes("e")){const[a,i]=e.split("e"),n=a.split(".")[1]||"",d=Number(i);return Math.max(0,n.length-d)}const s=e.split(".")[1];return s?s.length:0}h(ce,"getDecimalCount");function z(r,e){const s=Math.pow(10,e);return Math.round(r*s)/s}h(z,"roundValue");function Ie(r,{min:e,step:s,direction:a,multiplier:i}){const n=ce(s),d=(r-e)/s,l=Math.round(d),p=z(l*s+e,n)===z(r,n);let c;return p?c=l+i*a:a>0?c=Math.ceil(d):c=Math.floor(d),z(c*s+e,n)}h(Ie,"getNextStepValue");function Ve(r){return typeof r=="function"}h(Ve,"isFunction");function gt({className:r,defaultValue:e,value:s,min:a=0,max:i=100,...n}){const d=u.useMemo(()=>Array.isArray(s)?s:Array.isArray(e)?e:[a,i],[s,e,a,i]);return t.jsxs(st,{"data-slot":"slider",defaultValue:e,value:s,min:a,max:i,className:q("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...n,children:[t.jsx(lt,{"data-slot":"slider-track",className:q("bg-dui-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:t.jsx(ct,{"data-slot":"slider-range",className:q("bg-dui-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(l,p)=>t.jsx(pt,{"data-slot":"slider-thumb",className:q("border-dui-primary hover:ring-dui-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none!",ze)},p))]})}const ge={light:{heroGlow:"28",heroGlowOuter:"14",pillBgStart:"20",pillBgEnd:"14",pillBorder:"50",pillGlow:"30"},dark:{heroGlow:"18",heroGlowOuter:"08",pillBgStart:"12",pillBgEnd:"08",pillBorder:"40",pillGlow:"33"}};function bt(){return document.documentElement.classList.contains("dark")}function St(){return!1}function yt(r){const e=new MutationObserver(s=>{for(const a of s)if(a.attributeName==="class"){r();return}});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()}function de(){return u.useSyncExternalStore(yt,bt,St)}function vt(){return de()?ge.dark:ge.light}function wt({traits:r,onChange:e,onSliderChange:s}){const a=u.useCallback((i,n)=>{s==null||s(i,n),e({...r,[i]:n})},[r,e,s]);return t.jsx("div",{className:"space-y-4",children:Ue.map(i=>t.jsx(jt,{name:i,level:r[i]??3,onChange:a},i))})}function jt({name:r,level:e,onChange:s}){const a=Ye[r][e];return t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between text-sm",children:[t.jsx("span",{className:"font-medium capitalize",children:r}),t.jsxs("span",{className:"text-muted-foreground",children:[e,"/5 ",a.label]})]}),t.jsx(gt,{value:[e],onValueChange:([i])=>s(r,i),min:1,max:5,step:1,"aria-label":`${r} trait level`})]})}const kt=ve("inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium transition-[color,background-color,border-color,box-shadow]",{variants:{size:{sm:"text-2xs px-2.5 py-1",md:"px-3 py-1 text-xs"},state:{rest:"bg-accent text-muted-foreground hover:text-foreground border-transparent",active:"text-foreground",glowing:"text-foreground"}},defaultVariants:{size:"md",state:"rest"}}),Ct=ve("",{variants:{gradient:{true:"bg-clip-text text-transparent",false:""}},defaultVariants:{gradient:!1}});function Rt({emoji:r,name:e,colors:s,size:a="md",state:i="rest",gradientText:n=!1,className:d,style:l,...p}){const c=de(),o=vt(),x=i==="active"||i==="glowing";return t.jsxs("button",{type:"button",className:P(kt({size:a,state:i}),d),style:{...x?{borderColor:c?s.stroke+o.pillBorder:s.stroke+"AA",background:`linear-gradient(135deg, ${s.nebula}${o.pillBgStart}, ${s.wisp}${o.pillBgEnd})`,...i==="glowing"?{boxShadow:`0 0 12px ${s.nebula}${o.pillGlow}`}:{}}:{},...l},...p,children:[t.jsx("span",{children:r}),t.jsx("span",{className:Ct({gradient:n}),style:n?{backgroundImage:`linear-gradient(135deg, ${s.stroke}, ${s.strokeEnd})`,...c?{}:{filter:"brightness(0.65) saturate(1.3)"}}:void 0,children:e})]})}const Mt=["Verbosity","Autonomy","Chaos","Creativity","Humor","Spice"],J=["verbosity","autonomy","chaos","creativity","humor","spice"],Z=6,ue=5,be=3,Et=800,Pt=600,Se={light:{nebulaCenter:.45,nebulaMid:.25,wispStart:.2,fillStart:.25,fillEnd:.15,haloBase:.25,haloAmplitude:.12,breatheMin:.25,breatheMax:.4,guideBase:.1,guideStep:.04,axis:.12,stardustPeak:1,glowBlur:12,vertexBlur:4},dark:{nebulaCenter:.35,nebulaMid:.15,wispStart:.12,fillStart:.35,fillEnd:.25,haloBase:.15,haloAmplitude:.1,breatheMin:.15,breatheMax:.25,guideBase:.06,guideStep:.02,axis:.08,stardustPeak:.8,glowBlur:10,vertexBlur:4}},At=[{r:1.2,dur:"9s",fade:"4.5s",begin:"0s",path:"M0,0 C30,-40 60,0 40,40 C20,60 -20,40 -30,10 C-40,-20 -10,-50 0,0"},{r:.9,dur:"7s",fade:"3.5s",begin:"0s",path:"M0,0 C-20,30 -40,20 -30,-10 C-20,-30 10,-40 20,-20 C30,0 20,30 0,0"},{r:1,dur:"11s",fade:"5s",begin:"0s",path:"M0,0 C40,10 30,50 0,40 C-30,30 -40,-10 -20,-30 C0,-50 30,-20 0,0"},{r:.7,dur:"8s",fade:"4s",begin:"2s",path:"M0,0 C15,-35 45,-15 35,20 C25,45 -15,40 -25,15 C-35,-10 -5,-40 0,0"},{r:1.1,dur:"12s",fade:"6s",begin:"1s",path:"M0,0 C-25,25 -45,5 -30,-20 C-15,-45 20,-35 30,-10 C40,15 15,35 0,0"}];function Q(r,e,s,a){const i=Math.PI*2*r/Z-Math.PI/2,n=e/ue*a;return{x:s+n*Math.cos(i),y:s+n*Math.sin(i)}}function ie(r){return r.map(e=>`${e.x},${e.y}`).join(" ")}function Tt(r,e,s){return ie(Array.from({length:Z},(a,i)=>Q(i,r*ue,e,s)))}function Nt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function _t({traits:r,colors:e=we,size:s=180,animated:a=!0,className:i}){const n=u.useId().replace(/:/g,""),d=de(),l=d?Se.dark:Se.light,p=u.useRef(l);p.current=l;const c=d?{strokeStart:e.stroke,strokeEnd:e.strokeEnd,fillStart:e.fill,fillEnd:e.fillEnd,dot:e.dot,glow:e.glow}:{strokeStart:e.fill,strokeEnd:e.fillEnd,fillStart:e.stroke,fillEnd:e.strokeEnd,dot:e.fill,glow:e.stroke},o=s/2,x=s*.32,f=x+16,g=s/200,j=u.useRef(null),w=u.useRef(null),S=u.useRef([]),R=u.useRef([]),C=u.useRef({current:{...r},from:null,target:{...r},morphStart:0,breathe:0}),T=u.useRef(r);u.useEffect(()=>{const b=T.current;if(J.some(v=>b[v]!==r[v])){const v=C.current;if(a){v.from={...v.current},v.target={...r},v.morphStart=performance.now();const B=w.current;if(B){const X=performance.now();(function I(){const $=Math.min((performance.now()-X)/Pt,1),M=1-(1-$)*(1-$);B.setAttribute("r",String(x*(.7+.6*M))),B.setAttribute("opacity",String(.4*(1-M))),$<1&&requestAnimationFrame(I)})()}}else Object.assign(v.current,r),Object.assign(v.target,r)}T.current=r},[r,a,x]),u.useEffect(()=>{if(!a)return;let b;const m=C.current;function v(){var $;m.breathe+=.015;const B=1+Math.sin(m.breathe)*.04;if(m.from){const M=Math.min((performance.now()-m.morphStart)/Et,1),E=Nt(M);for(const y of J)m.current[y]=m.from[y]+(m.target[y]-m.from[y])*E;M>=1&&(m.from=null,Object.assign(m.current,m.target))}const I=J.map(M=>m.current[M]).map((M,E)=>Q(E,M*B,o,x));($=j.current)==null||$.setAttribute("points",ie(I)),I.forEach((M,E)=>{const y=S.current[E],N=R.current[E];if(y){y.setAttribute("cx",String(M.x)),y.setAttribute("cy",String(M.y)),y.setAttribute("r",String(8+Math.sin(m.breathe+E*1.2)*3));const D=p.current;y.setAttribute("opacity",String(D.haloBase+Math.sin(m.breathe+E)*D.haloAmplitude))}N&&(N.setAttribute("cx",String(M.x)),N.setAttribute("cy",String(M.y)),N.setAttribute("r",String(3.5+Math.sin(m.breathe+E*.8)*.8)))}),b=requestAnimationFrame(v)}return b=requestAnimationFrame(v),()=>cancelAnimationFrame(b)},[a,o,x]);const A=J.map((b,m)=>Q(m,r[b],o,x)),_=ie(A),k={transition:"stop-color 0.6s ease"},O={transition:"fill 0.6s ease"};return t.jsxs("svg",{viewBox:`0 0 ${s} ${s}`,className:P("aspect-square",i),"aria-label":"Personality radar chart",role:"img",children:[t.jsxs("defs",{children:[d?t.jsxs("filter",{id:`ng-${n}`,x:"-80%",y:"-80%",width:"260%",height:"260%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.glowBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}):t.jsx("filter",{id:`ng-${n}`,x:"-50%",y:"-30%",width:"200%",height:"200%",children:t.jsx("feDropShadow",{dx:"0",dy:"2",stdDeviation:"6",floodColor:c.strokeStart,floodOpacity:"0.18"})}),t.jsxs("filter",{id:`vg-${n}`,x:"-100%",y:"-100%",width:"300%",height:"300%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.vertexBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),t.jsxs("radialGradient",{id:`nc-${n}`,cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.nebula,stopOpacity:l.nebulaCenter,...k}}),t.jsx("stop",{offset:"50%",style:{stopColor:e.nebula,stopOpacity:l.nebulaMid,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("radialGradient",{id:`nw-${n}`,cx:"35%",cy:"35%",r:"60%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.wisp,stopOpacity:l.wispStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("linearGradient",{id:`sf-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.fillStart,stopOpacity:l.fillStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.fillEnd,stopOpacity:l.fillEnd,...k}})]}),t.jsxs("linearGradient",{id:`ss-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.strokeStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.strokeEnd,...k}})]})]}),t.jsx("circle",{cx:o,cy:o,r:s*.44,fill:`url(#nc-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};360 ${o} ${o}`,dur:"90s",repeatCount:"indefinite"})}),t.jsx("ellipse",{cx:o*.94,cy:o*.97,rx:s*.35,ry:s*.25,fill:`url(#nw-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};-360 ${o} ${o}`,dur:"60s",repeatCount:"indefinite"})}),a&&t.jsxs("circle",{cx:o,cy:o,r:x*.92,fill:"none",style:{stroke:c.strokeStart,transition:"stroke 0.6s ease"},strokeWidth:.3,opacity:l.breatheMin,children:[t.jsx("animate",{attributeName:"r",values:`${x*.85};${x*1.08};${x*.85}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"}),t.jsx("animate",{attributeName:"opacity",values:`${l.breatheMin};${l.breatheMax};${l.breatheMin}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"})]}),a&&t.jsx("g",{transform:`translate(${o},${o}) scale(${g})`,children:At.map((b,m)=>t.jsxs("circle",{r:b.r,style:{fill:c.dot,...O},children:[t.jsx("animateMotion",{dur:b.dur,repeatCount:"indefinite",begin:b.begin,path:b.path}),t.jsx("animate",{attributeName:"opacity",values:`0;${l.stardustPeak};0`,dur:b.fade,repeatCount:"indefinite",begin:b.begin})]},`star-${m}`))}),t.jsx("circle",{ref:w,cx:o,cy:o,r:0,fill:e.nebula,opacity:0}),Array.from({length:be},(b,m)=>t.jsx("polygon",{points:Tt((m+1)/be,o,x),fill:"none",stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.guideBase+m*l.guideStep},`ring-${m}`)),Array.from({length:Z},(b,m)=>{const v=Q(m,ue,o,x);return t.jsx("line",{x1:o,y1:o,x2:v.x,y2:v.y,stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.axis},`axis-${m}`)}),t.jsx("polygon",{ref:j,points:_,fill:`url(#sf-${n})`,stroke:`url(#ss-${n})`,strokeWidth:2,strokeLinejoin:"round",filter:`url(#ng-${n})`}),A.map((b,m)=>t.jsx("circle",{ref:v=>{S.current[m]=v},cx:b.x,cy:b.y,r:8,style:{fill:c.glow,...O},opacity:l.haloBase},`halo-${m}`)),A.map((b,m)=>t.jsx("circle",{ref:v=>{R.current[m]=v},cx:b.x,cy:b.y,r:d?4:4.5,style:{fill:c.dot,...O},stroke:d?"none":"white",strokeWidth:d?0:1.5,filter:`url(#vg-${n})`},`dot-${m}`)),Mt.map((b,m)=>{const v=Math.PI*2*m/Z-Math.PI/2;return t.jsx("text",{x:o+f*Math.cos(v),y:o+f*Math.sin(v),textAnchor:"middle",dominantBaseline:"middle",fill:"currentColor",opacity:.5,fontSize:8,className:"select-none",children:b},b)})]})}const se={duration:.2,ease:"easeInOut"};function Lt({traits:r,onTraitsChange:e,compact:s=!1,layout:a="inline",sampleLabel:i="How this agent talks",className:n}){const[d,l]=u.useState("presets"),p=We()??!1,c=a==="stacked",o=Xe(r),x=(o==null?void 0:o.colors)??we,f=c?Qe(r,o==null?void 0:o.id):"",g=u.useCallback(S=>{e(S.traits),l("presets"),K()},[e]),j=u.useCallback(()=>{l("custom"),K()},[]),w=u.useCallback(()=>{l("presets"),K()},[]);return t.jsxs("div",{className:P("@container/picker w-full",n),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-3",!c&&"@[480px]/picker:flex-row @[480px]/picker:items-center @[480px]/picker:gap-6",c&&"gap-4"),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-1",!c&&"@[480px]/picker:w-[200px] @[480px]/picker:shrink-0",c&&"gap-1.5"),children:[t.jsx("div",{"data-testid":"personality-radar",children:t.jsx(_t,{traits:r,colors:x,size:c?240:s?180:200,className:P(c&&"w-full max-w-[240px]",!c&&(s?"w-[90%] max-w-[240px]":"w-full max-w-[200px]"))})}),t.jsxs("div",{className:"text-center",children:[t.jsx("h3",{className:P("bg-clip-text font-bold text-transparent",c?"text-base":"text-sm"),style:{backgroundImage:`linear-gradient(135deg, ${x.stroke}, ${x.strokeEnd})`},children:(o==null?void 0:o.name)??"Custom"}),t.jsx("p",{className:P("text-muted-foreground mt-0.5",c?"text-xs":"text-2xs"),children:(o==null?void 0:o.tagline)??"A custom blend of personality traits."})]})]}),t.jsx("div",{className:P("flex w-full min-w-0 flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:t.jsx(pe,{mode:"wait",initial:!1,children:d==="presets"?t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex max-w-sm flex-wrap justify-center gap-1.5",!c&&"@[480px]/picker:justify-start"),"data-testid":"preset-pills",children:[qe.map(S=>t.jsx(Rt,{emoji:S.emoji,name:S.name,colors:S.colors,size:s?"sm":"md",state:(o==null?void 0:o.id)===S.id?"glowing":"rest",onClick:()=>g(S)},S.id)),t.jsxs("button",{type:"button",onClick:j,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"custom-toggle",children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]},"presets"):t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex w-full flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:[t.jsxs("div",{className:"flex gap-1.5","data-testid":"custom-mode-pills",children:[t.jsxs("button",{type:"button",onClick:w,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"presets-toggle",children:[t.jsx("span",{children:"←"}),t.jsx("span",{children:"Presets"})]}),t.jsxs("span",{className:P("bg-accent text-foreground inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium","border-foreground/15",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]}),t.jsx("div",{className:P("w-full",s?"max-w-sm":"max-w-md"),onPointerDown:()=>K(),children:t.jsx(wt,{traits:r,onChange:e,onSliderChange:()=>K()})})]},"custom")})})]}),t.jsxs("div",{className:P("w-full max-w-sm",c?"mt-4 flex flex-col items-center":"hidden"),children:[t.jsx("span",{className:"text-muted-foreground text-3xs self-start font-medium tracking-wider uppercase",children:i}),t.jsx("div",{className:"border-primary/40 bg-accent/40 mt-1 w-full rounded-md border-l-2 py-2 pr-3 pl-3",children:c?t.jsx(pe,{mode:"wait",initial:!1,children:t.jsxs(re.p,{"data-testid":"personality-sample",initial:p?!1:{opacity:0,y:4},animate:{opacity:1,y:0},exit:p?void 0:{opacity:0,y:-4},transition:se,className:"text-muted-foreground text-xs leading-relaxed italic",children:["“",f,"”"]},f)}):t.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed italic",children:(o==null?void 0:o.sampleResponse)??"Custom blend. Pick a preset to see a sample reply."})})]})]})}const $t=400;function Ft(r,e){const s=(r==null?void 0:r.traits)??Je,[a,i]=u.useState(null),n=u.useRef(null),d=u.useRef(null),l=u.useRef({agent:r,update:e});u.useEffect(()=>{l.current={agent:r,update:e}});const p=(r==null?void 0:r.id)??null;u.useEffect(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null),d.current=null,i(null)},[p]);const c=u.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null);const x=d.current;if(d.current=null,x===null)return;const{agent:f,update:g}=l.current;f!==null&&g(Ze(f,x))},[]);u.useEffect(()=>()=>c(),[c]);const o=u.useCallback(x=>{i(x),d.current=x,n.current!==null&&clearTimeout(n.current),n.current=setTimeout(c,$t)},[c]);return{traits:a??s,onTraitsChange:o}}export{Lt as P,Ft as u};
@@ -0,0 +1,11 @@
1
+ import{W as b,j as t,G as m,B as y,gh as C,hI as v,aO as A,fr as f,aY as N,b7 as R,c4 as T,cc as E,n as k,l as L,hJ as M,aW as U,r as d,bd as z,hK as O,ct as P,hL as _,aZ as I,as as F,d5 as q,cw as B,cx as G,cy as H,cz as W,cA as Y,cB as Z,dw as $,eZ as J}from"./index-DcZPWi_I.js";import{R as K}from"./use-jump-back-in-C39GOTHa.js";import{u as V}from"./use-relay-config-hItHtkSr.js";/**
2
+ * @license lucide-react v1.48.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const w={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};w.node;const S=b(w);/**
7
+ * @license lucide-react v1.48.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const D={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};D.node;const Q=b(D);function X(){return!0}const ee={indigo:{box:"bg-indigo-500/10",icon:"text-indigo-500"},purple:{box:"bg-purple-500/10",icon:"text-purple-500"},emerald:{box:"bg-emerald-500/10",icon:"text-emerald-500"}};function h({icon:e,tint:n,title:s,subtitle:o,highlights:a,primaryAction:r,secondaryAction:c}){const l=ee[n];return t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:m("flex size-10 items-center justify-center rounded-lg",l.box),children:t.jsx(e,{className:m("size-5",l.icon),"aria-hidden":!0})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-sm font-medium",children:s}),t.jsx("p",{className:"text-muted-foreground text-xs",children:o})]})]}),t.jsx("div",{className:"bg-muted/50 space-y-3 rounded-lg p-4",children:a.map(({icon:i,title:u,description:p})=>t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(i,{className:"text-muted-foreground mt-0.5 size-4","aria-hidden":!0}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium",children:u}),t.jsx("p",{className:"text-muted-foreground text-xs",children:p})]})]},u))}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(y,{variant:"ghost",size:"sm",onClick:c.onClick,children:c.label}),t.jsx(y,{size:"sm",onClick:r.onClick,children:r.label})]})]})}function te({onClose:e}){const n=C(),s=()=>{e(),n()};return t.jsx(h,{icon:f,tint:"purple",title:"Get notified where you already are",subtitle:"Slack, Telegram, and more",highlights:[{icon:v,title:"Notifications",description:"Hear when agents finish or need you"},{icon:A,title:"Reply from chat",description:"Answer agents from Telegram or Slack"}],primaryAction:{label:"Connect Telegram & Slack",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}function se({onClose:e}){const{open:n}=N(),s=()=>{e(),n()};return t.jsx(h,{icon:S,tint:"indigo",title:"Agents that work on a schedule",subtitle:"Put any skill on a timer",highlights:[{icon:R,title:"Any schedule",description:"Daily, hourly, or your own timing"},{icon:K,title:"Come back to results",description:"Agents start the work for you"}],primaryAction:{label:"Create a schedule",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}function ne({onClose:e}){const n=T(),s=()=>{e(),n({...L.team()})};return t.jsx(h,{icon:k,tint:"emerald",title:"Let your agents work together",subtitle:"Agents can message each other",highlights:[{icon:E,title:"Shared work",description:"Agents hand tasks to each other"},{icon:Q,title:"Topology view",description:"See which agents talk to each other"}],primaryAction:{label:"Open Team",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}const pe=[{id:"remote-access",placements:["dashboard-sidebar"],priority:90,shouldShow:e=>!e.isDesktopApp&&!e.isHub&&!e.remoteAccessConfigured,content:{icon:M,title:"Use DorkOS on the go",shortDescription:"Access your agents from anywhere",ctaLabel:"Learn more"},action:{type:"action",handler:()=>U.getState().setRemoteAccessOpen(!0)}},{id:"relay-adapters",placements:["dashboard-sidebar"],priority:80,shouldShow:e=>e.isRelayEnabled&&!e.hasAdapter("slack")&&!e.hasAdapter("telegram"),content:{icon:f,title:"Connect to Slack & Telegram",shortDescription:"Get notifications where you already are",ctaLabel:"Learn more"},action:{type:"dialog",component:te}},{id:"schedules",placements:["dashboard-sidebar"],priority:70,shouldShow:e=>e.isTasksEnabled&&e.sessionCount>0&&e.taskCount===0,content:{icon:S,title:"Run agents on a schedule",shortDescription:"Come back to finished work",ctaLabel:"Set up",suggestion:{question:"Want agents working while you’re away?",action:"Set up a schedule"}},action:{type:"dialog",component:se}},{id:"agent-chat",placements:[],priority:60,shouldShow:e=>e.isMeshEnabled&&e.agentCount>=2,content:{icon:k,title:"Agents working together",shortDescription:"Let your agents collaborate",ctaLabel:"Learn more",suggestion:{question:"Want two agents to split a job?",action:"Show me"}},action:{type:"dialog",component:ne}}];function ge(e,n,s,o){return e.filter(a=>!s.includes(a.id)).filter(a=>a.shouldShow(n)).sort((a,r)=>r.priority-a.priority).slice(0,o)}function ae(){return X()}const x="dorkos-first-use-date",oe=1e3*60*60*24;function ie(){try{const e=localStorage.getItem(x);if(e){const s=new Date(e);if(!isNaN(s.getTime()))return s}const n=new Date;return localStorage.setItem(x,n.toISOString()),n}catch{return new Date}}function re(){const e=ie();return Math.floor((Date.now()-e.getTime())/oe)}function ce(){const[e]=d.useState(re);return e}function me(){const e=z(),n=ae(),s=V(),{sessions:o}=O(),{data:a}=P(),r=ce(),{data:c}=_(s),{data:l}=I(e),{data:i}=F(),u=((i==null?void 0:i.tunnel.enabled)??!1)||((i==null?void 0:i.tunnel.tokenConfigured)??!1);return{hasAdapter:d.useCallback(j=>c?c.some(g=>g.config.type===j&&g.status.state==="connected"):!1,[c]),isTasksEnabled:e,isMeshEnabled:n,isRelayEnabled:s,sessionCount:o.length,agentCount:(a==null?void 0:a.agents.length)??0,taskCount:(l==null?void 0:l.length)??0,daysSinceFirstUse:r,isDesktopApp:q(),remoteAccessConfigured:u,isHub:(i==null?void 0:i.serverRole)==="hub"}}function le({promo:e,open:n,onOpenChange:s}){const o=d.useCallback(()=>{s(!1)},[s]);if(e.action.type!=="dialog")return null;const a=e.action.component;return t.jsx(B,{open:n,onOpenChange:s,children:t.jsxs(G,{className:"max-h-[85vh] max-w-lg gap-0 p-0",children:[t.jsx(H,{}),t.jsxs(W,{className:"p-4 pb-0",children:[t.jsx(Y,{className:"text-sm font-medium",children:e.content.title}),t.jsx(Z,{className:"sr-only",children:e.content.shortDescription})]}),t.jsx($,{className:"p-4",children:t.jsx(a,{onClose:o})})]})})}function ye(e){const[n,s]=d.useState(!1),{action:o}=e,a=d.useCallback(()=>{switch(o.type){case"dialog":s(!0);return;case"navigate":J(o.to);return;case"action":o.handler();return;default:{const c=o;throw new Error(`Unhandled promo action: ${JSON.stringify(c)}`)}}},[o]),r=o.type==="dialog"?t.jsx(le,{promo:e,open:n,onOpenChange:s}):null;return{activate:a,dialog:r}}export{S as M,pe as P,ye as a,ge as s,me as u};
@@ -1 +1 @@
1
- import{as as I,a3 as p,r as u,au as m}from"./index-BULRe04c.js";import{u as D}from"./use-update-config-DjF61lwf.js";const l="dorkos-dismissed-promo-ids";let g=!1,r=[];const a=new Set;function E(s){return a.add(s),()=>{a.delete(s)}}function C(){return r}function P(s){if(!r.includes(s)){r=[...r,s];for(const e of a)e()}}function h(s){if(r.includes(s)){r=r.filter(e=>e!==s);for(const e of a)e()}}function v(){try{const s=localStorage.getItem(l);if(s===null)return[];const e=JSON.parse(s);return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}catch{return[]}}function A(){const{data:s}=I(),e=D(),o=p(),f=u.useSyncExternalStore(E,C),n=s==null?void 0:s.dismissedPromoIds,c=u.useMemo(()=>[...new Set([...n??[],...f])],[n,f]);u.useEffect(()=>{if(g||s===void 0)return;g=!0;const t=v();if(t.length===0)return;const i=[...new Set([...s.dismissedPromoIds,...t])];if(i.length===s.dismissedPromoIds.length){try{localStorage.removeItem(l)}catch{}return}e.mutate({ui:{promos:{dismissedIds:i}}},{onSuccess:()=>{try{localStorage.removeItem(l)}catch{}}})},[s,e]);const y=u.useCallback(t=>{if(c.includes(t))return;const i=[...n??[],t];P(t);const S=o.getQueryData(m.current());o.setQueryData(m.current(),d=>d===void 0?d:{...d,dismissedPromoIds:i}),e.mutate({ui:{promos:{dismissedIds:i}}},{onError:()=>{h(t),S!==void 0&&o.setQueryData(m.current(),S)}})},[c,n,o,e]);return{dismissedIds:c,dismissPromo:y}}export{A as u};
1
+ import{as as I,a3 as p,r as u,au as m}from"./index-DcZPWi_I.js";import{u as D}from"./use-update-config-CSYwg557.js";const l="dorkos-dismissed-promo-ids";let g=!1,r=[];const a=new Set;function E(s){return a.add(s),()=>{a.delete(s)}}function C(){return r}function P(s){if(!r.includes(s)){r=[...r,s];for(const e of a)e()}}function h(s){if(r.includes(s)){r=r.filter(e=>e!==s);for(const e of a)e()}}function v(){try{const s=localStorage.getItem(l);if(s===null)return[];const e=JSON.parse(s);return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}catch{return[]}}function A(){const{data:s}=I(),e=D(),o=p(),f=u.useSyncExternalStore(E,C),n=s==null?void 0:s.dismissedPromoIds,c=u.useMemo(()=>[...new Set([...n??[],...f])],[n,f]);u.useEffect(()=>{if(g||s===void 0)return;g=!0;const t=v();if(t.length===0)return;const i=[...new Set([...s.dismissedPromoIds,...t])];if(i.length===s.dismissedPromoIds.length){try{localStorage.removeItem(l)}catch{}return}e.mutate({ui:{promos:{dismissedIds:i}}},{onSuccess:()=>{try{localStorage.removeItem(l)}catch{}}})},[s,e]);const y=u.useCallback(t=>{if(c.includes(t))return;const i=[...n??[],t];P(t);const S=o.getQueryData(m.current());o.setQueryData(m.current(),d=>d===void 0?d:{...d,dismissedPromoIds:i}),e.mutate({ui:{promos:{dismissedIds:i}}},{onError:()=>{h(t),S!==void 0&&o.setQueryData(m.current(),S)}})},[c,n,o,e]);return{dismissedIds:c,dismissPromo:y}}export{A as u};
@@ -1 +1 @@
1
- import{a1 as h,a2 as E,r as T,bG as p,ap as a,bH as y,bI as m,bJ as A}from"./index-BULRe04c.js";import{A as D}from"./use-full-activity-feed-l9UhDUNU.js";const f=15,g=["dashboard-activity"],I=["Today","Yesterday","This week","Earlier"];function w(d){const s=new Date,e=new Date(s);e.setHours(0,0,0,0);const _=new Date(e);_.setDate(_.getDate()-1);const o=new Date(e);o.setDate(o.getDate()-o.getDay());const l=new Map;for(const n of d){const c=new Date(n.occurredAt);let i;c>=e?i="Today":c>=_?i="Yesterday":c>=o?i="This week":i="Earlier";const u=l.get(i)??[];u.push(n),l.set(i,u)}return I.filter(n=>l.has(n)).map(n=>({label:n,items:l.get(n)}))}function k(){const d=h(),{data:s,isLoading:e}=E({queryKey:g,queryFn:()=>d.listActivityEvents({limit:f}),staleTime:3e4,refetchOnWindowFocus:!0});return{groups:T.useMemo(()=>w((s==null?void 0:s.items)??[]),[s==null?void 0:s.items]),hasMore:(s==null?void 0:s.nextCursor)!=null,isLoading:e}}const r=[g,D],t={relay_message:r,relay_flow:r,relay_adapters_changed:r,relay_bindings_changed:r,extension_reloaded:r,task_run_failed:[...r,y],task_run_updated:[y],relay_dead_letter:[m],mesh_liveness_changed:[A],tasks_changed:r},S=1200;function v(d=S){const s=p({coalesceMs:d}),e=_=>s(_.map(o=>({queryKey:o})));a("relay_message",()=>e(t.relay_message)),a("relay_flow",()=>e(t.relay_flow)),a("relay_adapters_changed",()=>e(t.relay_adapters_changed)),a("relay_bindings_changed",()=>e(t.relay_bindings_changed)),a("extension_reloaded",()=>e(t.extension_reloaded)),a("task_run_failed",()=>e(t.task_run_failed)),a("task_run_updated",()=>e(t.task_run_updated)),a("relay_dead_letter",()=>e(t.relay_dead_letter)),a("mesh_liveness_changed",()=>e(t.mesh_liveness_changed)),a("tasks_changed",()=>e(t.tasks_changed))}export{v as a,k as u};
1
+ import{a1 as h,a2 as E,r as T,bG as p,ap as a,bH as y,bI as m,bJ as A}from"./index-DcZPWi_I.js";import{A as D}from"./use-full-activity-feed-B61Olhdw.js";const f=15,g=["dashboard-activity"],I=["Today","Yesterday","This week","Earlier"];function w(d){const s=new Date,e=new Date(s);e.setHours(0,0,0,0);const _=new Date(e);_.setDate(_.getDate()-1);const o=new Date(e);o.setDate(o.getDate()-o.getDay());const l=new Map;for(const n of d){const c=new Date(n.occurredAt);let i;c>=e?i="Today":c>=_?i="Yesterday":c>=o?i="This week":i="Earlier";const u=l.get(i)??[];u.push(n),l.set(i,u)}return I.filter(n=>l.has(n)).map(n=>({label:n,items:l.get(n)}))}function k(){const d=h(),{data:s,isLoading:e}=E({queryKey:g,queryFn:()=>d.listActivityEvents({limit:f}),staleTime:3e4,refetchOnWindowFocus:!0});return{groups:T.useMemo(()=>w((s==null?void 0:s.items)??[]),[s==null?void 0:s.items]),hasMore:(s==null?void 0:s.nextCursor)!=null,isLoading:e}}const r=[g,D],t={relay_message:r,relay_flow:r,relay_adapters_changed:r,relay_bindings_changed:r,extension_reloaded:r,task_run_failed:[...r,y],task_run_updated:[y],relay_dead_letter:[m],mesh_liveness_changed:[A],tasks_changed:r},S=1200;function v(d=S){const s=p({coalesceMs:d}),e=_=>s(_.map(o=>({queryKey:o})));a("relay_message",()=>e(t.relay_message)),a("relay_flow",()=>e(t.relay_flow)),a("relay_adapters_changed",()=>e(t.relay_adapters_changed)),a("relay_bindings_changed",()=>e(t.relay_bindings_changed)),a("extension_reloaded",()=>e(t.extension_reloaded)),a("task_run_failed",()=>e(t.task_run_failed)),a("task_run_updated",()=>e(t.task_run_updated)),a("relay_dead_letter",()=>e(t.relay_dead_letter)),a("mesh_liveness_changed",()=>e(t.mesh_liveness_changed)),a("tasks_changed",()=>e(t.tasks_changed))}export{v as a,k as u};
@@ -1 +1 @@
1
- import{a5 as e,a6 as a}from"./index-BULRe04c.js";function r(){return e("relay")}function u(){return a("relay")}export{u as a,r as u};
1
+ import{a5 as e,a6 as a}from"./index-DcZPWi_I.js";function r(){return e("relay")}function u(){return a("relay")}export{u as a,r as u};
@@ -1 +1 @@
1
- import{aK as a,r,a1 as p,aL as E,aM as F}from"./index-BULRe04c.js";function g(e){const n=a(l=>l.forgetRoom);r.useEffect(()=>{if(e!==null)return()=>n(e)},[e,n])}function L(e){const n=p(),l=a(t=>{var o;return e?((o=t.intent[e])==null?void 0:o.leaderId)??null:null}),u=a(t=>t.startFollowing),s=a(t=>t.stopFollowing),c=a(t=>t.sweep),f=r.useCallback(t=>{e&&u(e,t)},[e,u]),w=r.useCallback(()=>{e&&s(e)},[e,s]);return r.useEffect(()=>{const t=setInterval(()=>c(),E);return()=>clearInterval(t)},[c]),r.useEffect(()=>{if(!e||l===null)return;let t=!0;const o=()=>{n.followRoomMember(e,l).catch(()=>{t&&s(e)})};o();const v=setInterval(o,F),i=()=>s(e);return window.addEventListener("blur",i),window.addEventListener("pagehide",i),()=>{t=!1,clearInterval(v),window.removeEventListener("blur",i),window.removeEventListener("pagehide",i),n.unfollowRoomMember(e).catch(()=>{})}},[n,e,l,s]),{following:l,follow:f,stop:w}}export{g as a,L as u};
1
+ import{aK as a,r,a1 as p,aL as E,aM as F}from"./index-DcZPWi_I.js";function g(e){const n=a(l=>l.forgetRoom);r.useEffect(()=>{if(e!==null)return()=>n(e)},[e,n])}function L(e){const n=p(),l=a(t=>{var o;return e?((o=t.intent[e])==null?void 0:o.leaderId)??null:null}),u=a(t=>t.startFollowing),s=a(t=>t.stopFollowing),c=a(t=>t.sweep),f=r.useCallback(t=>{e&&u(e,t)},[e,u]),w=r.useCallback(()=>{e&&s(e)},[e,s]);return r.useEffect(()=>{const t=setInterval(()=>c(),E);return()=>clearInterval(t)},[c]),r.useEffect(()=>{if(!e||l===null)return;let t=!0;const o=()=>{n.followRoomMember(e,l).catch(()=>{t&&s(e)})};o();const v=setInterval(o,F),i=()=>s(e);return window.addEventListener("blur",i),window.addEventListener("pagehide",i),()=>{t=!1,clearInterval(v),window.removeEventListener("blur",i),window.removeEventListener("pagehide",i),n.unfollowRoomMember(e).catch(()=>{})}},[n,e,l,s]),{following:l,follow:f,stop:w}}export{g as a,L as u};
@@ -1 +1 @@
1
- import{r as p}from"./index-BULRe04c.js";function x({orderedIds:n,activeId:l,onActivate:a,onClose:f,getFallbackFocus:s}){const o=p.useRef(new Map),k=l&&n.includes(l)?l:n[0]??null,c=p.useCallback(e=>{var b;e&&((b=o.current.get(e))==null||b.focus())},[]),u=p.useCallback(e=>{a(e,"keyboard"),c(e)},[a,c]);return{getTabProps:p.useCallback(e=>({ref:t=>{t?o.current.set(e,t):o.current.delete(e)},tabIndex:e===k?0:-1,onClick:()=>a(e,"pointer"),onKeyDown:t=>{var i;const r=n.indexOf(e);if(r===-1)return;const D=n.length-1;switch(t.key){case"ArrowRight":t.preventDefault(),u(n[r===D?0:r+1]);break;case"ArrowLeft":t.preventDefault(),u(n[r===0?D:r-1]);break;case"Home":t.preventDefault(),u(n[0]);break;case"End":t.preventDefault(),u(n[D]);break;case"Delete":{if(!f)return;t.preventDefault();const w=n[r+1]??n[r-1]??null;f(e,"keyboard"),w?c(w):(i=s==null?void 0:s())==null||i.focus();break}}},...f?{"aria-keyshortcuts":"Delete"}:{}}),[n,k,a,f,s,u,c])}}export{x as u};
1
+ import{r as p}from"./index-DcZPWi_I.js";function x({orderedIds:n,activeId:l,onActivate:a,onClose:f,getFallbackFocus:s}){const o=p.useRef(new Map),k=l&&n.includes(l)?l:n[0]??null,c=p.useCallback(e=>{var b;e&&((b=o.current.get(e))==null||b.focus())},[]),u=p.useCallback(e=>{a(e,"keyboard"),c(e)},[a,c]);return{getTabProps:p.useCallback(e=>({ref:t=>{t?o.current.set(e,t):o.current.delete(e)},tabIndex:e===k?0:-1,onClick:()=>a(e,"pointer"),onKeyDown:t=>{var i;const r=n.indexOf(e);if(r===-1)return;const D=n.length-1;switch(t.key){case"ArrowRight":t.preventDefault(),u(n[r===D?0:r+1]);break;case"ArrowLeft":t.preventDefault(),u(n[r===0?D:r-1]);break;case"Home":t.preventDefault(),u(n[0]);break;case"End":t.preventDefault(),u(n[D]);break;case"Delete":{if(!f)return;t.preventDefault();const w=n[r+1]??n[r-1]??null;f(e,"keyboard"),w?c(w):(i=s==null?void 0:s())==null||i.focus();break}}},...f?{"aria-keyshortcuts":"Delete"}:{}}),[n,k,a,f,s,u,c])}}export{x as u};