@nodefony/studio 10.0.0-beta.3 → 10.0.0-beta.4

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 (326) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/decorate.js +1 -2
  2. package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/decorateParam.js +1 -2
  3. package/dist/frontend/assets/Accordion-DPLwcjdo.js +1 -0
  4. package/dist/frontend/assets/{ActionsLiveGraph-Db8vFIBI.js → ActionsLiveGraph-Bgmlddil.js} +1 -1
  5. package/dist/frontend/assets/AgentsPreview-Cp3oKlQh.js +12 -0
  6. package/dist/frontend/assets/ApiKeys-Dlm_QgbE.js +2 -0
  7. package/dist/frontend/assets/{ArchitectureLiveGraph-BBzQo5p0.js → ArchitectureLiveGraph-6B27wQFi.js} +1 -1
  8. package/dist/frontend/assets/Audit-l60asEjU.js +1 -0
  9. package/dist/frontend/assets/{BackplaneLiveGraph-B-UseY3-.js → BackplaneLiveGraph-DFbKM68H.js} +1 -1
  10. package/dist/frontend/assets/Breadcrumbs-CInUn91P.js +1 -0
  11. package/dist/frontend/assets/BrickStoreChip-LPzFtCle.js +1 -0
  12. package/dist/frontend/assets/Chat-xbAsLtf7.js +1 -0
  13. package/dist/frontend/assets/Chip-63u3nm6a.js +1 -0
  14. package/dist/frontend/assets/{Cluster-F6QKde5O.js → Cluster-BnzcBsK2.js} +1 -1
  15. package/dist/frontend/assets/Collapse-D-ll8NHt.js +1 -0
  16. package/dist/frontend/assets/ConfigPage-D5ppGWC2.js +1 -0
  17. package/dist/frontend/assets/ConnectorCard-nuZmjP-K.js +11 -0
  18. package/dist/frontend/assets/Create--I7q2Y8w.js +2 -0
  19. package/dist/frontend/assets/DashboardSupervision-D7iTvKNf.js +1 -0
  20. package/dist/frontend/assets/Database-7pHzPOh2.js +1 -0
  21. package/dist/frontend/assets/{DbLogo-CEC3HXhx.js → DbLogo-CPVaIo-1.js} +1 -1
  22. package/dist/frontend/assets/Documentation-tjr0i1rN.js +1 -0
  23. package/dist/frontend/assets/{FanOutLiveGraph-BEwXGSyY.js → FanOutLiveGraph-CA025u8m.js} +1 -1
  24. package/dist/frontend/assets/Firewall-C6l1OCox.js +1 -0
  25. package/dist/frontend/assets/{IconAdjustments-Cx9BqUKJ.js → IconAdjustments-e-MmJIEd.js} +1 -1
  26. package/dist/frontend/assets/{IconAdjustmentsAlt-C_e3xO2n.js → IconAdjustmentsAlt-Dh7-w67A.js} +1 -1
  27. package/dist/frontend/assets/{IconAdjustmentsHorizontal-Cr9Hi4Sw.js → IconAdjustmentsHorizontal-Bze9w1KM.js} +1 -1
  28. package/dist/frontend/assets/{IconAffiliate-CMxKdA5h.js → IconAffiliate-CM-xujb3.js} +1 -1
  29. package/dist/frontend/assets/{IconApps-CQ7rfMms.js → IconApps-99oikTTs.js} +1 -1
  30. package/dist/frontend/assets/{IconArchive-B6Gf2MlA.js → IconArchive-Be62Qpuc.js} +1 -1
  31. package/dist/frontend/assets/{IconArrowDown-Cd0tP10o.js → IconArrowDown-CVg6dTJG.js} +1 -1
  32. package/dist/frontend/assets/{IconArrowLeft-mMa4UHbq.js → IconArrowLeft-BjXaYGFL.js} +1 -1
  33. package/dist/frontend/assets/{IconArrowUp-USkh6ZTB.js → IconArrowUp-BI5oNIYX.js} +1 -1
  34. package/dist/frontend/assets/IconArrowsExchange-Dosh8wE8.js +1 -0
  35. package/dist/frontend/assets/{IconArrowsSplit2-ClfMBg39.js → IconArrowsSplit2-2czCcKl1.js} +1 -1
  36. package/dist/frontend/assets/IconBan-tceVLRjs.js +1 -0
  37. package/dist/frontend/assets/{IconBook-joXgYZEc.js → IconBook-3zpOeyw5.js} +1 -1
  38. package/dist/frontend/assets/{IconBooks-WdtP2Zt_.js → IconBooks-BsR3SerW.js} +1 -1
  39. package/dist/frontend/assets/{IconBox-Frwg5iw3.js → IconBox-CyPTTK_h.js} +1 -1
  40. package/dist/frontend/assets/{IconBrain-DQzY9Gpz.js → IconBrain-CtK-z0Qs.js} +1 -1
  41. package/dist/frontend/assets/{IconCircleCheck-MB4FJ1_h.js → IconCircleCheck-4L5q2AOa.js} +1 -1
  42. package/dist/frontend/assets/{IconCircleDot-BKOYp_Is.js → IconCircleDot-UeVVj0Hw.js} +1 -1
  43. package/dist/frontend/assets/IconCircuitResistor-Dv8iGOzw.js +1 -0
  44. package/dist/frontend/assets/{IconCode-B8JM_bt9.js → IconCode-CZBF6Fre.js} +1 -1
  45. package/dist/frontend/assets/{IconDeviceDesktop-DYl9lKie.js → IconDeviceDesktop-CmA2QS1y.js} +1 -1
  46. package/dist/frontend/assets/{IconDots-DRqq0NNo.js → IconDots-CGp_6hGw.js} +1 -1
  47. package/dist/frontend/assets/{IconDownload-BV5rJWEp.js → IconDownload-BHadX_X7.js} +1 -1
  48. package/dist/frontend/assets/{IconEye-j-FebnYB.js → IconEye-DtO-67sS.js} +1 -1
  49. package/dist/frontend/assets/{IconFile-B0IMjRZj.js → IconFile-CawVe9xy.js} +1 -1
  50. package/dist/frontend/assets/{IconFolder-DUxCxo4c.js → IconFolder-DtN07M63.js} +1 -1
  51. package/dist/frontend/assets/{IconGitBranch-CrpiMAop.js → IconGitBranch-B0jrHkO3.js} +1 -1
  52. package/dist/frontend/assets/{IconHandStop-BF45amPx.js → IconHandStop-ysGACXTj.js} +1 -1
  53. package/dist/frontend/assets/{IconHeartRateMonitor-75r-UEl1.js → IconHeartRateMonitor-Bvl8jHTd.js} +1 -1
  54. package/dist/frontend/assets/{IconHelpCircle-CN-lD8Ss.js → IconHelpCircle-BCItd8VT.js} +1 -1
  55. package/dist/frontend/assets/{IconLayoutGrid-DQcIqzdP.js → IconLayoutGrid-CfSdAIlD.js} +1 -1
  56. package/dist/frontend/assets/{IconNetwork-DCGaMTf6.js → IconNetwork-BCMPgpvp.js} +1 -1
  57. package/dist/frontend/assets/{IconPackages-CTHNpDYs.js → IconPackages-CBNINLGq.js} +1 -1
  58. package/dist/frontend/assets/{IconPencil-CDf9M7Ek.js → IconPencil-BpxtlIcN.js} +1 -1
  59. package/dist/frontend/assets/{IconPlayerPause-CwV_hAKg.js → IconPlayerPause-CbRWQ0OJ.js} +1 -1
  60. package/dist/frontend/assets/IconPlayerPlay-CeEI-a5d.js +1 -0
  61. package/dist/frontend/assets/{IconPlayerStop-CJGgoqT9.js → IconPlayerStop-CJYvZ1j2.js} +1 -1
  62. package/dist/frontend/assets/IconPlus-B4Sx19oD.js +1 -0
  63. package/dist/frontend/assets/{IconPuzzle-D3wNw5-5.js → IconPuzzle-D3bEL-Kr.js} +1 -1
  64. package/dist/frontend/assets/{IconRecycle-Cmbzj5Pa.js → IconRecycle-BtnT8ZXv.js} +1 -1
  65. package/dist/frontend/assets/{IconSend-CMCcJabf.js → IconSend-zQNYJbkq.js} +1 -1
  66. package/dist/frontend/assets/{IconServer2-CyRRD8W3.js → IconServer2-D61W-eXq.js} +1 -1
  67. package/dist/frontend/assets/{IconShieldOff-CLmzQfAY.js → IconShieldOff-C2WA-gmj.js} +1 -1
  68. package/dist/frontend/assets/{IconSitemap-CotK9eKk.js → IconSitemap-BJzupAxl.js} +1 -1
  69. package/dist/frontend/assets/{IconStack2-BNWxydht.js → IconStack2-B9YJBVEL.js} +1 -1
  70. package/dist/frontend/assets/{IconTerminal2-CDWH5fh8.js → IconTerminal2-ZtXcXVK9.js} +1 -1
  71. package/dist/frontend/assets/{IconTool-DIF6bUfG.js → IconTool-BhLKKx-z.js} +1 -1
  72. package/dist/frontend/assets/{IconUserOff-xlFmF6tU.js → IconUserOff-FIAY4a-C.js} +1 -1
  73. package/dist/frontend/assets/{IconWorld-BDGj37TE.js → IconWorld-DoL6V4LE.js} +1 -1
  74. package/dist/frontend/assets/KnowledgePreview-COznqEer.js +1 -0
  75. package/dist/frontend/assets/List-Bj6cz52O.js +1 -0
  76. package/dist/frontend/assets/LlmProvidersPreview-UMxVNx56.js +1 -0
  77. package/dist/frontend/assets/LogVisuals-CXlOPxZ6.js +1 -0
  78. package/dist/frontend/assets/Logs-Df5U_3dr.js +1 -0
  79. package/dist/frontend/assets/McpPreview-CHu7On2q.js +1 -0
  80. package/dist/frontend/assets/MemoryPreview-BXeS4rSe.js +1 -0
  81. package/dist/frontend/assets/Migrations-CuHMt_YR.js +3 -0
  82. package/dist/frontend/assets/ModuleDetail-9YIWV_UR.js +1 -0
  83. package/dist/frontend/assets/Modules-ICjDZ1Yo.js +1 -0
  84. package/dist/frontend/assets/OrmConnector-CEarnKy7.js +1 -0
  85. package/dist/frontend/assets/{OrmEntity-CwurXNiH.js → OrmEntity-CnaPZLRa.js} +1 -1
  86. package/dist/frontend/assets/OrmOverview-Chuz9Nje.js +1 -0
  87. package/dist/frontend/assets/OrmWorker-DHtNzOdb.js +1 -0
  88. package/dist/frontend/assets/Playground-CPNuVkEh.js +1 -0
  89. package/dist/frontend/assets/{ProbesLiveGraph-C4Y6LysP.js → ProbesLiveGraph-36Y6b2-W.js} +1 -1
  90. package/dist/frontend/assets/Profile-DbK_K53D.js +2 -0
  91. package/dist/frontend/assets/{ProfileFields-CcV1j54y.js → ProfileFields-CY-cyHpl.js} +1 -1
  92. package/dist/frontend/assets/Progress-CPoEshia.js +1 -0
  93. package/dist/frontend/assets/{ProtocoleLiveGraph-CJfcdhft.js → ProtocoleLiveGraph-CzsBhPwX.js} +1 -1
  94. package/dist/frontend/assets/RealtimeConsole-Cr9YdudM.js +1 -0
  95. package/dist/frontend/assets/{RingProgress-7-hsePob.js → RingProgress-CvPWmY4T.js} +1 -1
  96. package/dist/frontend/assets/Roadmap-BiASdXjA.js +1 -0
  97. package/dist/frontend/assets/RoleSwitch-v6onvCmL.js +1 -0
  98. package/dist/frontend/assets/{Roles-wWuyMU5L.js → Roles-CUb-FE31.js} +1 -1
  99. package/dist/frontend/assets/{RoutesView-CZaqPahk.js → RoutesView-CGimbB-9.js} +1 -1
  100. package/dist/frontend/assets/Runtime-CztgXN5v.js +1 -0
  101. package/dist/frontend/assets/Sessions-BW_6RCRC.js +1 -0
  102. package/dist/frontend/assets/Skeleton-BqubVkfg.js +1 -0
  103. package/dist/frontend/assets/{Slider-D6czEObT.js → Slider-BO4JNkw0.js} +1 -1
  104. package/dist/frontend/assets/StoresView-CGJXEbaQ.js +1 -0
  105. package/dist/frontend/assets/System-0WArSNzm.js +1 -0
  106. package/dist/frontend/assets/TagsInput-B3frWkGT.js +1 -0
  107. package/dist/frontend/assets/{Textarea-BRWt_RfY.js → Textarea-BWkcGO8Z.js} +1 -1
  108. package/dist/frontend/assets/Timeline-BS9j6buj.js +1 -0
  109. package/dist/frontend/assets/TraceView-C3_Vw0sJ.js +1 -0
  110. package/dist/frontend/assets/Twin-Cjb5ugDT.js +19 -0
  111. package/dist/frontend/assets/UserProfile-Dc-MHueA.js +1 -0
  112. package/dist/frontend/assets/Users-BcoVqTuA.js +1 -0
  113. package/dist/frontend/assets/VectorStoresPreview-tksJNhKy.js +1 -0
  114. package/dist/frontend/assets/Webhooks-vDwD2cQK.js +1 -0
  115. package/dist/frontend/assets/Workspace-DO9hKEhR.js +1 -0
  116. package/dist/frontend/assets/{abnfDiagram-WEYOIA3C-BddKud0N.js → abnfDiagram-WEYOIA3C-o6kZb03b.js} +1 -1
  117. package/dist/frontend/assets/{aiPreviewModel-_yWo3ikG.js → aiPreviewModel-gSgeWhaX.js} +1 -1
  118. package/dist/frontend/assets/aiPreviewParts-B25TmKBV.js +1 -0
  119. package/dist/frontend/assets/{apiKeysModel-CkfaC54b.js → apiKeysModel-Pn7Cxpaa.js} +1 -1
  120. package/dist/frontend/assets/{arc-BR0NMMOy.js → arc-Dkr_NqJg.js} +1 -1
  121. package/dist/frontend/assets/architecture-WOLXFQ4H-D0WVDySu.js +1 -0
  122. package/dist/frontend/assets/architectureDiagram-ZHVYKT53-D9lWKg5J.js +36 -0
  123. package/dist/frontend/assets/auditFormat-D14fq0tI.js +1 -0
  124. package/dist/frontend/assets/{auditModel-QGh4rQFY.js → auditModel-VtcG7xbJ.js} +1 -1
  125. package/dist/frontend/assets/{blockDiagram-RJAE7QA3-gmYdFm8g.js → blockDiagram-RJAE7QA3-WjPcOKRW.js} +1 -1
  126. package/dist/frontend/assets/{c4Diagram-XDPPPE54-BNpNcs1x.js → c4Diagram-XDPPPE54-B4jELhYh.js} +1 -1
  127. package/dist/frontend/assets/channel-bBINEAVx.js +1 -0
  128. package/dist/frontend/assets/{chunk-2E7WHVMD-DqdZuCve.js → chunk-2E7WHVMD-CnHjZi31.js} +1 -1
  129. package/dist/frontend/assets/{chunk-4EMNKR2T-BM4zSeoX.js → chunk-4EMNKR2T-DkjFLyKa.js} +1 -1
  130. package/dist/frontend/assets/{chunk-55XCU76K-BirEpKT4.js → chunk-55XCU76K-DX-SqoL7.js} +1 -1
  131. package/dist/frontend/assets/{chunk-7S6XSTFO-C0z6C5kr.js → chunk-7S6XSTFO-DClaWD3h.js} +1 -1
  132. package/dist/frontend/assets/{chunk-AQDTSKZB-CEXUqO8l.js → chunk-AQDTSKZB-BCzT2csB.js} +1 -1
  133. package/dist/frontend/assets/{chunk-DSNLSHJZ-xaB0FqgC.js → chunk-DSNLSHJZ-BHcejTug.js} +9 -9
  134. package/dist/frontend/assets/{chunk-HAGFOTED-BtD9jDRm.js → chunk-HAGFOTED-BEnakj0Q.js} +2 -2
  135. package/dist/frontend/assets/{chunk-HNE4Q36P-CVYtnriQ.js → chunk-HNE4Q36P-u3A7JPIz.js} +1 -1
  136. package/dist/frontend/assets/{chunk-NGNAAXSQ-C2Wy9Xmz.js → chunk-NGNAAXSQ-Bw6tHVuc.js} +1 -1
  137. package/dist/frontend/assets/{chunk-NQOKRVIF-Y0vdgjmo.js → chunk-NQOKRVIF-C4CpPbjZ.js} +1 -1
  138. package/dist/frontend/assets/{chunk-UHW7PFBP-Ux5cdYhl.js → chunk-UHW7PFBP-C4qGS7N6.js} +1 -1
  139. package/dist/frontend/assets/{chunk-VQ5W62QI-BWPeCYDw.js → chunk-VQ5W62QI-CD4iG1Ju.js} +1 -1
  140. package/dist/frontend/assets/{chunk-WQQL4CDK-CWwG245U.js → chunk-WQQL4CDK-BRd_O9U1.js} +1 -1
  141. package/dist/frontend/assets/chunk-XXDRQBXY-r_aMXwAb.js +1 -0
  142. package/dist/frontend/assets/{chunk-YZO67HFG-Bpfb98Aa.js → chunk-YZO67HFG-DYi_O4tF.js} +1 -1
  143. package/dist/frontend/assets/{chunk-ZAUX2LTX-BWk-36Ul.js → chunk-ZAUX2LTX-F2xkI2IG.js} +1 -1
  144. package/dist/frontend/assets/{chunk-ZCHMQSOR-B96ikawN.js → chunk-ZCHMQSOR-BLHSEC1D.js} +1 -1
  145. package/dist/frontend/assets/{classDiagram-v2-4MYWR3UA-CVt_ExMU.js → classDiagram-v2-4MYWR3UA-BYwKN_JS.js} +1 -1
  146. package/dist/frontend/assets/{configModel-BmFPcRHR.js → configModel-mJGNa2Qn.js} +1 -1
  147. package/dist/frontend/assets/cose-bilkent-JH36ORCC-p6hKc9FM.js +1 -0
  148. package/dist/frontend/assets/cynefin-EF2NZ3EQ-3fMGJqpS.js +1 -0
  149. package/dist/frontend/assets/{cynefinDiagram-WF24UDRP-C0JU8UF4.js → cynefinDiagram-WF24UDRP-BlblpBJN.js} +1 -1
  150. package/dist/frontend/assets/cytoscape.esm-CCmQRb78.js +321 -0
  151. package/dist/frontend/assets/{dagre-NK4GIZVX-B7cDFQP4.js → dagre-NK4GIZVX-CHbXyXoH.js} +1 -1
  152. package/dist/frontend/assets/dayjs.min-BnY7wTsz.js +1 -0
  153. package/dist/frontend/assets/{diagram-CBK3MWTC-CkJeCY51.js → diagram-CBK3MWTC-COexS5yt.js} +1 -1
  154. package/dist/frontend/assets/{diagram-I5XIIV2D-DiU62gAB.js → diagram-I5XIIV2D-CzqjaT_Z.js} +1 -1
  155. package/dist/frontend/assets/{diagram-ODIL2UCW-JwbC_iSY.js → diagram-ODIL2UCW-DYG1ZHG2.js} +1 -1
  156. package/dist/frontend/assets/{diagram-PFBEJUXE-ChIRH0s0.js → diagram-PFBEJUXE-DHiPTpVh.js} +1 -1
  157. package/dist/frontend/assets/{diagram-RJA3I4VV-90iUMtzu.js → diagram-RJA3I4VV-awutgug0.js} +1 -1
  158. package/dist/frontend/assets/{diagram-TYUNFSNR-D42XOt0B.js → diagram-TYUNFSNR-CHlQchf6.js} +1 -1
  159. package/dist/frontend/assets/{dist-DG5Sci9i.js → dist-CNARAVwn.js} +1 -1
  160. package/dist/frontend/assets/{ebnfDiagram-V4P3TTPT-w252D5zZ.js → ebnfDiagram-V4P3TTPT-DDRnrPjS.js} +1 -1
  161. package/dist/frontend/assets/{elk-QONTBCTQ-CVDdqpfG.js → elk-QONTBCTQ-DjqguIGM.js} +4 -4
  162. package/dist/frontend/assets/{erDiagram-KYQIGQAA-AZx8rbGc.js → erDiagram-KYQIGQAA-0Rq0qAP2.js} +1 -1
  163. package/dist/frontend/assets/eventFlow-By4EcYar.js +1 -0
  164. package/dist/frontend/assets/eventmodeling-K75KTNOO-Ci5ZysGc.js +1 -0
  165. package/dist/frontend/assets/flowDiagram-IUGLLWBU-Bd7ui4lC.js +1 -0
  166. package/dist/frontend/assets/{ganttDiagram-R7GPNTJY-BH-Nkoi8.js → ganttDiagram-R7GPNTJY-QmeRcBvv.js} +1 -1
  167. package/dist/frontend/assets/gitGraph-VSP46ZUC-BNjGbs2Q.js +1 -0
  168. package/dist/frontend/assets/{gitGraphDiagram-PDYL7XHY-CQKnBUH5.js → gitGraphDiagram-PDYL7XHY-wE75QFTm.js} +1 -1
  169. package/dist/frontend/assets/health-COCuwYbZ.js +1 -0
  170. package/dist/frontend/assets/hooks-DneHygq8.js +1 -0
  171. package/dist/frontend/assets/index-BrRxCdie.css +1 -0
  172. package/dist/frontend/assets/index-D7ndDYxA.js +28 -0
  173. package/dist/frontend/assets/info-OHQRW6UA-AwuZMzCF.js +1 -0
  174. package/dist/frontend/assets/{infoDiagram-MVDRKAX5-BVYpZ5Jw.js → infoDiagram-MVDRKAX5-C0bjwO5A.js} +1 -1
  175. package/dist/frontend/assets/{ishikawaDiagram-HPEHV2GE-C1PVFysz.js → ishikawaDiagram-HPEHV2GE-XUL4r_qi.js} +1 -1
  176. package/dist/frontend/assets/{journeyDiagram-BOSHW7O7-Bgg-Dcoy.js → journeyDiagram-BOSHW7O7-DOB7DGOm.js} +1 -1
  177. package/dist/frontend/assets/{kanban-definition-FNSA4HC5-BgdLrLna.js → kanban-definition-FNSA4HC5-B4MXIgE0.js} +1 -1
  178. package/dist/frontend/assets/{line-BCoMMvoc.js → line-GyWcPEv4.js} +1 -1
  179. package/dist/frontend/assets/{linear-DuuHlxuC.js → linear-DuXPlWP5.js} +1 -1
  180. package/dist/frontend/assets/{mermaid-parser.core-FP6ypgZ7.js → mermaid-parser.core-DuBc40Fk.js} +3 -3
  181. package/dist/frontend/assets/{mermaid.core-pkzqhn0h.js → mermaid.core-lhcUO7it.js} +5 -5
  182. package/dist/frontend/assets/{mindmap-definition-6OY57UG3-OXYLxxPM.js → mindmap-definition-6OY57UG3-DzXLun_0.js} +1 -1
  183. package/dist/frontend/assets/mobx-BS2cOtno.js +1 -0
  184. package/dist/frontend/assets/{ormConnectorInsights-lwMi22Zo.js → ormConnectorInsights-CKmNqZef.js} +1 -1
  185. package/dist/frontend/assets/packet-JDAUHWVQ-BO5uQF22.js +1 -0
  186. package/dist/frontend/assets/{pegDiagram-ECIUJNBX-BzLIoRKe.js → pegDiagram-ECIUJNBX-ZvDgYb9i.js} +1 -1
  187. package/dist/frontend/assets/pie-XZMESJXO-BZrK7zKX.js +1 -0
  188. package/dist/frontend/assets/{pieDiagram-GNMPY74T-DzHxTo_G.js → pieDiagram-GNMPY74T-CHFaZNK-.js} +1 -1
  189. package/dist/frontend/assets/{profileVisuals-BfDXvpIY.js → profileVisuals-B9NxSpR3.js} +1 -1
  190. package/dist/frontend/assets/{quadrantDiagram-D57K4MC3-B0oEi3v6.js → quadrantDiagram-D57K4MC3-C1LjpFf-.js} +1 -1
  191. package/dist/frontend/assets/radar-ABXABTNO-DecCvP8c.js +1 -0
  192. package/dist/frontend/assets/railroad-I3PHUGI6-_iEZazdU.js +1 -0
  193. package/dist/frontend/assets/railroad-abnf-LNEFI6M7-CDs9xz8A.js +1 -0
  194. package/dist/frontend/assets/railroad-ebnf-DWYD2UWJ-OMA8rXBg.js +1 -0
  195. package/dist/frontend/assets/railroad-peg-JR7BVNR7-CahBRdoM.js +1 -0
  196. package/dist/frontend/assets/{railroadDiagram-Y72NRBL7-lSpCVxnQ.js → railroadDiagram-Y72NRBL7-Dffo1i5y.js} +1 -1
  197. package/dist/frontend/assets/{requirementDiagram-EQYSW5RA-JPl2seFv.js → requirementDiagram-EQYSW5RA-C1QpRX4G.js} +1 -1
  198. package/dist/frontend/assets/{sankeyDiagram-SY24JHO5-BFbM6HAv.js → sankeyDiagram-SY24JHO5-e-LII4V6.js} +1 -1
  199. package/dist/frontend/assets/{sequenceDiagram-BLEHNHQU-BkymuFrh.js → sequenceDiagram-BLEHNHQU-NnPkqGF3.js} +2 -2
  200. package/dist/frontend/assets/src-3uYsZQ6M.js +1 -0
  201. package/dist/frontend/assets/{src-D0OMG7Pu.js → src-99e5ryd8.js} +1 -1
  202. package/dist/frontend/assets/{stateDiagram-v2-A6IESKWZ-DU34WGAs.js → stateDiagram-v2-A6IESKWZ-Cnz1jfoK.js} +1 -1
  203. package/dist/frontend/assets/stores-D6_Y8E6i.js +1 -0
  204. package/dist/frontend/assets/swimlanes-B3ENRKFQ-Bk54DtP4.js +1 -0
  205. package/dist/frontend/assets/swimlanesDiagram-AYQRV4AK-DVvOf_w1.js +8 -0
  206. package/dist/frontend/assets/{timeline-definition-JXYKGLGB-DvEB_q9R.js → timeline-definition-JXYKGLGB-sa8408Jf.js} +1 -1
  207. package/dist/frontend/assets/treeView-D4JQ5SDB-DVhp_E4d.js +1 -0
  208. package/dist/frontend/assets/treemap-SAJKECNS-Bxhpvb2A.js +1 -0
  209. package/dist/frontend/assets/ui-CQg7PBQQ.js +321 -0
  210. package/dist/frontend/assets/useBlockSource-DhXmelWN.js +1 -0
  211. package/dist/frontend/assets/{useSocketLiveData-B28-FmS5.js → useSocketLiveData-DC2osqZB.js} +1 -1
  212. package/dist/frontend/assets/{usecaseDiagram-WPOLBNNX-CvXHk5vt.js → usecaseDiagram-WPOLBNNX-D1qB4ycj.js} +1 -1
  213. package/dist/frontend/assets/{usersFormat-BEacItcO.js → usersFormat-D6muig0U.js} +1 -1
  214. package/dist/frontend/assets/value-Ds4WqiGU.js +1 -0
  215. package/dist/frontend/assets/{vennDiagram-Q3Y3IDCW-ODILFR8g.js → vennDiagram-Q3Y3IDCW-0Yok6bqQ.js} +1 -1
  216. package/dist/frontend/assets/wardley-7MLQ67FV-kuj23NGq.js +1 -0
  217. package/dist/frontend/assets/{wardleyDiagram-IVAIDKWA-CqfnyXwU.js → wardleyDiagram-IVAIDKWA-CdkJzHfw.js} +1 -1
  218. package/dist/frontend/assets/{xychartDiagram-4URNHDU4-DgMp7Ftb.js → xychartDiagram-4URNHDU4-DU68Uiwb.js} +1 -1
  219. package/dist/frontend/index.html +19 -19
  220. package/dist/index.js +8 -14
  221. package/dist/nodefony/config/config.js +0 -1
  222. package/dist/nodefony/config/defineModuleConfig.js +1 -2
  223. package/dist/nodefony/controller/StudioController.js +15 -81
  224. package/dist/nodefony/controller/StudioCreateController.js +8 -26
  225. package/dist/nodefony/controller/StudioRealtimeController.js +7 -15
  226. package/dist/nodefony/realtime/clusterOrm.js +1 -2
  227. package/dist/nodefony/realtime/clusterSupervision.js +1 -2
  228. package/dist/nodefony/realtime/providers.js +10 -7
  229. package/dist/nodefony/service/ScaffoldService.js +3 -4
  230. package/dist/nodefony/src/adminFetch.js +1 -2
  231. package/dist/nodefony/src/createSpec.js +1 -2
  232. package/docs/index.md +12 -12
  233. package/docs/workspace.md +64 -53
  234. package/package.json +25 -25
  235. package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js +0 -6
  236. package/dist/frontend/assets/Accordion-D_bYgkDp.js +0 -1
  237. package/dist/frontend/assets/AgentsPreview-CzLvK_77.js +0 -12
  238. package/dist/frontend/assets/ApiKeys-B2COVtKo.js +0 -2
  239. package/dist/frontend/assets/Audit-DDa0D4XH.js +0 -1
  240. package/dist/frontend/assets/Breadcrumbs-DQPeC8Iv.js +0 -1
  241. package/dist/frontend/assets/BrickStoreChip-CjClvb38.js +0 -1
  242. package/dist/frontend/assets/Chat-CxKY5hiQ.js +0 -1
  243. package/dist/frontend/assets/Chip-BNC6QTlY.js +0 -1
  244. package/dist/frontend/assets/Collapse-CqBf4B3K.js +0 -1
  245. package/dist/frontend/assets/ConfigPage-DIqlLQKN.js +0 -1
  246. package/dist/frontend/assets/ConnectorCard-ByMalSpR.js +0 -11
  247. package/dist/frontend/assets/Create-DK7y3FZR.js +0 -2
  248. package/dist/frontend/assets/DashboardSupervision-CKoAybiZ.js +0 -1
  249. package/dist/frontend/assets/Database-BiFhONn6.js +0 -1
  250. package/dist/frontend/assets/Documentation-ezOFwLda.js +0 -1
  251. package/dist/frontend/assets/Firewall-CsRr2YRj.js +0 -1
  252. package/dist/frontend/assets/IconArrowsExchange-DtawqCQi.js +0 -1
  253. package/dist/frontend/assets/IconBan-txUxcOY1.js +0 -1
  254. package/dist/frontend/assets/IconCircuitResistor-s3mSiITK.js +0 -1
  255. package/dist/frontend/assets/IconPlayerPlay-BiAtshgw.js +0 -1
  256. package/dist/frontend/assets/IconPlus-CTl7d2WD.js +0 -1
  257. package/dist/frontend/assets/KnowledgePreview-B-xFtUes.js +0 -1
  258. package/dist/frontend/assets/List-C1gRGrDQ.js +0 -1
  259. package/dist/frontend/assets/LlmProvidersPreview-BW6qhcbi.js +0 -1
  260. package/dist/frontend/assets/LogVisuals-D75ETbot.js +0 -1
  261. package/dist/frontend/assets/Logs-BJVy4lRk.js +0 -1
  262. package/dist/frontend/assets/McpPreview-BMaRdW0-.js +0 -1
  263. package/dist/frontend/assets/MemoryPreview-Dvyq9oQI.js +0 -1
  264. package/dist/frontend/assets/Migrations-IzPAfqLt.js +0 -3
  265. package/dist/frontend/assets/ModuleDetail-CB7IQOgD.js +0 -1
  266. package/dist/frontend/assets/Modules-Dai1ylPu.js +0 -1
  267. package/dist/frontend/assets/OrmConnector-BPzwHvud.js +0 -1
  268. package/dist/frontend/assets/OrmOverview-BQEGwSQE.js +0 -1
  269. package/dist/frontend/assets/OrmWorker-D60Wparb.js +0 -1
  270. package/dist/frontend/assets/Playground-Dsza94gx.js +0 -1
  271. package/dist/frontend/assets/Profile-CjbWvGwV.js +0 -2
  272. package/dist/frontend/assets/Progress-BjMnQsnL.js +0 -1
  273. package/dist/frontend/assets/RealtimeConsole-Dkn9VqoH.js +0 -1
  274. package/dist/frontend/assets/Roadmap-Bf_OQzCd.js +0 -1
  275. package/dist/frontend/assets/RoleSwitch-0QHmznTd.js +0 -1
  276. package/dist/frontend/assets/Runtime-0vjihYx8.js +0 -1
  277. package/dist/frontend/assets/Sessions-Er6WxhNR.js +0 -1
  278. package/dist/frontend/assets/Skeleton-B5LjIL2k.js +0 -1
  279. package/dist/frontend/assets/StoresView-Biomj7Nv.js +0 -1
  280. package/dist/frontend/assets/System-BNGjsSnn.js +0 -1
  281. package/dist/frontend/assets/TagsInput-DfC60rtI.js +0 -1
  282. package/dist/frontend/assets/Timeline-BXPR1-f2.js +0 -1
  283. package/dist/frontend/assets/TraceView-CXi8XHjP.js +0 -1
  284. package/dist/frontend/assets/Twin-CHwfMz4u.js +0 -19
  285. package/dist/frontend/assets/UserProfile-CRGX5f2s.js +0 -1
  286. package/dist/frontend/assets/Users-C14-Dpzo.js +0 -1
  287. package/dist/frontend/assets/VectorStoresPreview-fj7hwv8d.js +0 -1
  288. package/dist/frontend/assets/Webhooks-D8WjaEn_.js +0 -1
  289. package/dist/frontend/assets/Workspace-C82PDRSl.js +0 -1
  290. package/dist/frontend/assets/aiPreviewParts-CUyfKp4e.js +0 -1
  291. package/dist/frontend/assets/architecture-WOLXFQ4H-D79tVjjI.js +0 -1
  292. package/dist/frontend/assets/architectureDiagram-ZHVYKT53-CJJhrz5I.js +0 -36
  293. package/dist/frontend/assets/auditFormat-CqVEWPY1.js +0 -1
  294. package/dist/frontend/assets/channel-BupEmewi.js +0 -1
  295. package/dist/frontend/assets/chunk-XXDRQBXY-CabUdsWl.js +0 -1
  296. package/dist/frontend/assets/cose-bilkent-JH36ORCC-DNaX_yIE.js +0 -1
  297. package/dist/frontend/assets/cynefin-EF2NZ3EQ-ChITYxwz.js +0 -1
  298. package/dist/frontend/assets/cytoscape.esm-BqcnQL-a.js +0 -321
  299. package/dist/frontend/assets/dayjs.min-zjJiDcZM.js +0 -1
  300. package/dist/frontend/assets/eventFlow-B9WD_Fbr.js +0 -1
  301. package/dist/frontend/assets/eventmodeling-K75KTNOO-DM-JH_YS.js +0 -1
  302. package/dist/frontend/assets/flowDiagram-IUGLLWBU-BWLAf_Fq.js +0 -1
  303. package/dist/frontend/assets/gitGraph-VSP46ZUC-Cr1Xwiqq.js +0 -1
  304. package/dist/frontend/assets/health-Cd4yOjnT.js +0 -1
  305. package/dist/frontend/assets/hooks-YOOKx1TE.js +0 -1
  306. package/dist/frontend/assets/index-BG9UCYcN.js +0 -28
  307. package/dist/frontend/assets/index-gVPgmEjS.css +0 -1
  308. package/dist/frontend/assets/info-OHQRW6UA-CFhWe0Bx.js +0 -1
  309. package/dist/frontend/assets/mobx-CJZjTYng.js +0 -1
  310. package/dist/frontend/assets/packet-JDAUHWVQ-CdO8rr49.js +0 -1
  311. package/dist/frontend/assets/pie-XZMESJXO-DPhfQa8n.js +0 -1
  312. package/dist/frontend/assets/radar-ABXABTNO-BADtC6Ac.js +0 -1
  313. package/dist/frontend/assets/railroad-I3PHUGI6-BJ9-YgAU.js +0 -1
  314. package/dist/frontend/assets/railroad-abnf-LNEFI6M7-BWgGyDto.js +0 -1
  315. package/dist/frontend/assets/railroad-ebnf-DWYD2UWJ-CI9lHrmm.js +0 -1
  316. package/dist/frontend/assets/railroad-peg-JR7BVNR7-B6_1_Ue2.js +0 -1
  317. package/dist/frontend/assets/src-CNFWdraO.js +0 -1
  318. package/dist/frontend/assets/stores--GfLduRT.js +0 -1
  319. package/dist/frontend/assets/swimlanes-B3ENRKFQ-CuMZA09e.js +0 -1
  320. package/dist/frontend/assets/swimlanesDiagram-AYQRV4AK-DOgXldkr.js +0 -8
  321. package/dist/frontend/assets/treeView-D4JQ5SDB-DqhyFDRU.js +0 -1
  322. package/dist/frontend/assets/treemap-SAJKECNS-CTNQMDym.js +0 -1
  323. package/dist/frontend/assets/ui-C9Xb3MyM.js +0 -321
  324. package/dist/frontend/assets/useBlockSource-BzkGD4gU.js +0 -1
  325. package/dist/frontend/assets/value-DyVgJrRk.js +0 -1
  326. package/dist/frontend/assets/wardley-7MLQ67FV-Domi_8Hu.js +0 -1
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{w as createInfoServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- function e(e,...t){throw Error(`[MobX] minified error nr: ${e}${t.length?` `+t.map(String).join(`,`):``}. See mobx.js.org/errors`)}var t=Object.assign,n=Object.getOwnPropertyDescriptor,r=Object.defineProperty,i=Object.prototype,a=[];Object.freeze(a);var o={};Object.freeze(o);var s=Object.toString(),c=()=>{};function l(e){return typeof e==`function`}function u(e){switch(typeof e){case`string`:case`symbol`:case`number`:return!0}return!1}function d(e){return typeof e==`object`&&!!e}function f(e){if(!d(e))return!1;let t=Object.getPrototypeOf(e);if(t==null)return!0;let n=g(t,`constructor`)&&t.constructor;return typeof n==`function`&&n.toString()===s}function p(e){let t=e?.constructor;return t?t.name===`GeneratorFunction`||t.displayName===`GeneratorFunction`:!1}function ee(e,t,n){r(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function te(e,t,n){r(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function m(e,t){let n=`isMobX`+e;return t.prototype[n]=!0,function(e){return d(e)&&e[n]===!0}}function ne(e){return e!=null&&Object.prototype.toString.call(e)===`[object Map]`}function re(e){let t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===null}function ie(e){return e!=null&&Object.prototype.toString.call(e)===`[object Set]`}function ae(e){let t=Object.keys(e),n=Object.getOwnPropertySymbols(e);return n.length?[...t,...n.filter(t=>i.propertyIsEnumerable.call(e,t))]:t}var h=Reflect.ownKeys;function oe(e){return e===null?null:typeof e==`object`?``+e:e}function g(e,t){return i.hasOwnProperty.call(e,t)}var se=Object.getOwnPropertyDescriptors;function _(e,t){return!!(e&t)}function v(e,t,n){return n?e|=t:e&=~t,e}var y=Symbol(`mobx administration`),b=class{constructor(e=`Atom`){this.name_=void 0,this.flags_=0,this.observers_=null,this.lastAccessedBy_=0,this.lowestObserverState_=-1,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}get isBeingObserved(){return _(this.flags_,1)}set isBeingObserved(e){this.flags_=v(this.flags_,1,e)}get isPendingUnobservation(){return _(this.flags_,2)}set isPendingUnobservation(e){this.flags_=v(this.flags_,2,e)}get diffValue(){return+!!_(this.flags_,4)}set diffValue(e){this.flags_=v(this.flags_,4,e===1)}onBO(){this.onBOL&&this.onBOL.forEach(e=>e())}onBUO(){this.onBUOL&&this.onBUOL.forEach(e=>e())}reportObserved(){return At(this)}reportChanged(){M(),jt(this),N()}toString(){return this.name_}},ce=m(`Atom`,b);function le(e,t=c,n=c){let r=new b(e);return t!==c&&(r.onBOL=new Set([t])),n!==c&&(r.onBUOL=new Set([n])),r}var ue=Object.is;function x(e,t,n){return e===null||typeof e!=`object`&&typeof e!=`function`||pn(e)?e:Array.isArray(e)?T.array(e,{name:n}):f(e)?T.object(e,void 0,{name:n}):ne(e)?T.map(e,{name:n}):ie(e)?T.set(e,{name:n}):typeof e==`function`&&!I(e)&&!R(e)?p(e)?L(e):Jt(n,e):e}function de(e){return e}function fe(e,t){return{annotationType_:e,options_:t,make_:pe,extend_:me}}function pe(e,t,n,i){var a;return(a=this.options_)!=null&&a.bound?this.extend_(e,t,n,!1)===null?0:1:i===e.target_?this.extend_(e,t,n,!1)===null?0:2:I(n.value)?1:(r(i,t,_e(e,this,t,n,!1)),2)}function me(e,t,n,r){let i=_e(e,this,t,n);return e.defineProperty_(t,i,r)}function he(t,n,r){let{kind:i,name:a,addInitializer:o}=r,s=t,c=e=>E(s.options_?.name??a.toString(),e,s.options_?.autoAction??!1);if(i==`field`)return function(e){var t;let n=e;return I(n)||(n=c(n)),(t=s.options_)!=null&&t.bound&&(n=n.bind(this),n.isMobxAction=!0),n};if(i==`method`){var l;return I(n)||(n=c(n)),(l=s.options_)!=null&&l.bound&&o(function(){let e=this,t=e[a].bind(e);t.isMobxAction=!0,e[a]=t}),n}e(43,s.annotationType_,String(a),i)}function ge(e,{annotationType_:t},n,{value:r}){}function _e(e,t,n,r,i=j.safeDescriptors){var a,o;ge(e,t,n,r);let{value:s}=r;return(a=t.options_)!=null&&a.bound&&(s=s.bind(e.proxy_??e.target_)),{value:E(t.options_?.name??n.toString(),s,t.options_?.autoAction??!1,(o=t.options_)!=null&&o.bound?e.proxy_??e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ve(e,t){return{annotationType_:e,options_:t,make_:ye,extend_:be}}function ye(e,t,n,i){var a;return i===e.target_?this.extend_(e,t,n,!1)===null?0:2:(a=this.options_)!=null&&a.bound&&(!g(e.target_,t)||!R(e.target_[t]))&&this.extend_(e,t,n,!1)===null?0:R(n.value)?1:(r(i,t,Ce(e,this,t,n,!1,!1)),2)}function be(e,t,n,r){let i=Ce(e,this,t,n,this.options_?.bound);return e.defineProperty_(t,i,r)}function xe(e,t,n){var r;let{name:i,addInitializer:a}=n;return R(t)||(t=L(t)),(r=e.options_)!=null&&r.bound&&a(function(){let e=this,t=e[i].bind(e);t.isMobXFlow=!0,e[i]=t}),t}function Se(e,{annotationType_:t},n,{value:r}){}function Ce(e,t,n,r,i,a=j.safeDescriptors){Se(e,t,n,r);let{value:o}=r;return R(o)||(o=L(o)),i&&(o=o.bind(e.proxy_??e.target_),o.isMobXFlow=!0),{value:o,configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function we(e,t){return{annotationType_:e,options_:t,make_:Te,extend_:Ee}}function Te(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Ee(e,n,r,i){return Oe(e,this,n,r),e.defineComputedProperty_(n,t({},this.options_,{get:r.get,set:r.set}),i)}function De(e,n,r){let i=e,{name:a,addInitializer:o}=r,s;function c(e,r){let o=t({},i.options_,{get:n,context:e});return o.name||=`ObservableObject.${a.toString()}`,new O(o)}return o(function(){let e=Q(this)[y],t=this,r=e.values_.get(a);r instanceof O&&r.derivation!==n&&e.values_.delete(a),(e.lazyComputedKeys_??=new Map).set(a,()=>c(t,e))}),function(){let e=this[y],t=e.values_.get(a);if(t instanceof O&&t.derivation!==n){let t=s?.get(this);return t||(t=c(this,e),(s??=new WeakMap).set(this,t)),t.get()}return e.getObservablePropValue_(a)}}function Oe(e,{annotationType_:t},n,{get:r}){}function ke(e,t){return{annotationType_:e,options_:t,make_:Ae,extend_:je}}function Ae(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function je(e,t,n,r){return Ne(e,this,t,n),e.defineObservableProperty_(t,n.value,this.options_?.enhancer_??x,r)}function Me(e,t,n){let r=e,{kind:i,name:a}=n;if(i!==`accessor`)return;function o(e,t){let n=Q(e)[y];return(n.lazyObservableKeys_??=new Map).set(a,()=>new D(t,r.options_?.enhancer_??x,`ObservableObject.${a.toString()}`,!1)),n}return{get(){return(this[y]??o(this,t.get.call(this))).getObservablePropValue_(a)},set(e){return(this[y]??o(this,e)).setObservablePropValue_(a,e)},init(e){return o(this,e),e}}}function Ne(e,{annotationType_:t},n,r){}var Pe=`true`,Fe=Ie();function Ie(e){return{annotationType_:Pe,options_:e,make_:ze,extend_:Be}}var Le=[Fe];function Re(e){let t=e.deep!==!1,n=!!e.autoBind,r=!t|(n?2:0);return Le[r]??(Le[r]=Ie({deep:t,autoBind:n}))}function ze(e,t,n,i){var a;if(n.get)return tt.make_(e,t,n,i);if(n.set){let a=I(n.set)?n.set:E(t.toString(),n.set);return i===e.target_?e.defineProperty_(t,{configurable:!j.safeDescriptors||e.isPlainObject_,set:a})===null?0:2:(r(i,t,{configurable:!0,set:a}),2)}if(i!==e.target_&&typeof n.value==`function`){var o;if(p(n.value)){var s;return((s=this.options_)!=null&&s.autoBind?un:L).make_(e,t,n,i)}return((o=this.options_)!=null&&o.autoBind?Yt:Jt).make_(e,t,n,i)}let c=this.options_?.deep===!1?Ze:T;return typeof n.value==`function`&&(a=this.options_)!=null&&a.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),c.make_(e,t,n,i)}function Be(e,t,n,r){var i;return n.get?tt.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!j.safeDescriptors||e.isPlainObject_,set:E(t.toString(),n.set)},r):(typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),(this.options_?.deep===!1?Ze:T).extend_(e,t,n,r))}function S(e,n){return t(function(t,r){if(r&&typeof r.kind==`string`)return n(e,t,r)},e)}var Ve=`observable`,He=`observable.ref`,Ue={deep:!0,name:void 0,defaultDecorator:void 0};Object.freeze(Ue);function C(e){return e||Ue}var We=ke(Ve),Ge=ke(He,{enhancer_:de});function Ke(e){return S(e,Me)}function w(e){return e.deep===!0?x:e.deep===!1?de:Je(e.defaultDecorator)}function qe(e){return e?e.defaultDecorator??Re(e):void 0}function Je(e){return e?e.options_?.enhancer_??x:x}function Ye(e,t,n){return t&&typeof t.kind==`string`?Me(We,e,t):pn(e)?e:f(e)?T.object(e,t,n):Array.isArray(e)?T.array(e,t):ne(e)?T.map(e,t):ie(e)?T.set(e,t):typeof e==`object`&&e?e:T.box(e,t)}var Xe={box(e,t){let n=C(t);return new D(e,w(n),n.name,!0,n.equals)},array(e,t){let n=C(t);return Cn(e,w(n),n.name)},map(e,t){let n=C(t);return new kn(e,w(n),n.name)},set(e,t){let n=C(t);return new Nn(e,w(n),n.name)},object(e,t,n){return $(()=>tn(hn({},n),e,t))}},Ze=Ke(Ge),T=t(Ye,We,Xe),Qe=`computed`;function $e(e){return S(e,De)}var et=we(Qe),tt=function(e,t){if(t&&typeof t.kind==`string`)return De(et,e,t);if(f(e))return $e(we(Qe,e));let n=f(t)?t:{};return n.get=e,n.name||=e.name||``,new O(n)};t(tt,et);var nt=0,rt=1,it=n(()=>{},`name`)?.configurable??!1,at={value:`action`,configurable:!0,writable:!1,enumerable:!1};function E(e,t,n=!1,i){function a(){return ot(e,n,t,i||this,arguments)}return a.isMobxAction=!0,a.toString=()=>t.toString(),it&&(at.value=e,r(a,`name`,at)),a}function ot(e,t,n,r,i){let a=st(e,t,r,i);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{ct(a)}}function st(e,t,n,r){let i=j.trackingDerivation,a=!t||!i;M();let o=j.allowStateChanges;a&&k();let s={runAsAction_:a,prevDerivation_:i,prevAllowStateChanges_:o,prevAllowStateReads_:j.allowStateReads,notifySpy_:!1,startTime_:0,actionId_:rt++,parentActionId_:nt};return nt=s.actionId_,s}function ct(t){nt!==t.actionId_&&e(30),nt=t.parentActionId_,t.error_!==void 0&&(j.suppressReactionErrors=!0),N(),t.runAsAction_&&A(t.prevDerivation_),j.suppressReactionErrors=!1}function lt(e,t){let n=ut(e);try{return t()}finally{dt(n)}}function ut(e){let t=j.allowStateChanges;return j.allowStateChanges=e,t}function dt(e){j.allowStateChanges=e}var D=class extends b{constructor(e,t,n=`ObservableValue`,r=!0,i=ue){super(n),this.enhancer_=void 0,this.name_=void 0,this.equals_=void 0,this.hasUnreportedChange_=!1,this.interceptors_=void 0,this.changeListeners_=void 0,this.value_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,this.equals_=i,this.value_=t(e,void 0,n)}dehanceValue(e){return this.dehancer===void 0?e:this.dehancer(e)}set(e){this.value_,e=this.prepareNewValue_(e),e!==j.UNCHANGED&&this.setNewValue_(e)}prepareNewValue_(e){if(V(this)){let t=H(this,{object:this,type:G,newValue:e});if(!t)return j.UNCHANGED;e=t.newValue}return e=this.enhancer_(e,this.value_,this.name_),this.equals_(this.value_,e)?j.UNCHANGED:e}setNewValue_(e){let t=this.value_;this.value_=e,this.reportChanged(),U(this)&&W(this,{type:G,object:this,newValue:e,oldValue:t})}get(){return this.reportObserved(),this.dehanceValue(this.value_)}raw(){return this.value_}toJSON(){return this.get()}toString(){return`${this.name_}[${this.value_}]`}valueOf(){return oe(this.get())}[Symbol.toPrimitive](){return this.valueOf()}},O=class{constructor(t){this.dependenciesState_=-1,this.observing_=[],this.newObserving_=null,this.observers_=null,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=0,this.unboundDepsCount_=0,this.value_=new pt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||e(31),this.derivation=t.get,this.name_=t.name||`ComputedValue`,t.set&&(this.setter_=E(`ComputedValue-setter`,t.set)),this.equals_=t.equals||ue,this.scope_=t.context,this.requiresReaction_=t.requiresReaction,this.keepAlive_=!!t.keepAlive}onBecomeStale_(){Nt(this)}onBO(){this.onBOL&&this.onBOL.forEach(e=>e())}onBUO(){this.onBUOL&&this.onBUOL.forEach(e=>e())}get isComputing(){return _(this.flags_,1)}set isComputing(e){this.flags_=v(this.flags_,1,e)}get isRunningSetter(){return _(this.flags_,2)}set isRunningSetter(e){this.flags_=v(this.flags_,2,e)}get isBeingObserved(){return _(this.flags_,4)}set isBeingObserved(e){this.flags_=v(this.flags_,4,e)}get isPendingUnobservation(){return _(this.flags_,8)}set isPendingUnobservation(e){this.flags_=v(this.flags_,8,e)}get diffValue(){return+!!_(this.flags_,16)}set diffValue(e){this.flags_=v(this.flags_,16,e===1)}get(){if(this.isComputing&&e(32,this.name_,this.derivation),j.inBatch===0&&(!this.observers_||this.observers_.size===0)&&!this.keepAlive_)ht(this)&&(this.warnAboutUntrackedRead_(),M(),this.value_=this.computeValue_(!1),N());else{let e=this.isBeingObserved;if(At(this),ht(this)){let e=j.trackingContext;!e&&(this.keepAlive_||this.isBeingObserved)&&(j.trackingContext=this),this.trackAndCompute()&&Mt(this),j.trackingContext=e}else!e&&this.isBeingObserved&&this.observing_.forEach(kt)}let t=this.value_;if(mt(t))throw t.cause;return t}set(t){if(this.setter_){this.isRunningSetter&&e(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,t)}finally{this.isRunningSetter=!1}}else e(34,this.name_)}trackAndCompute(){let e=this.value_,t=this.dependenciesState_===-1,n=this.computeValue_(!0),r=t||mt(e)||mt(n)||!this.equals_(e,n);return r&&(this.value_=n),r}computeValue_(e){this.isComputing=!0;let t;if(e)t=gt(this,this.derivation,this.scope_);else if(j.disableErrorBoundaries===!0)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new pt(e)}return this.isComputing=!1,t}suspend_(){this.keepAlive_||(vt(this),this.value_=void 0)}warnAboutUntrackedRead_(){}toString(){return`${this.name_}[${this.derivation.toString()}]`}valueOf(){return oe(this.get())}[Symbol.toPrimitive](){return this.valueOf()}},ft=m(`ComputedValue`,O),pt=class{constructor(e){this.cause=void 0,this.cause=e}};function mt(e){return e instanceof pt}function ht(e){switch(e.dependenciesState_){case 0:return!1;case-1:case 2:return!0;case 1:{let t=k(),n=e.observing_,r=n.length;for(let i=0;i<r;i++){let r=n[i];if(ft(r)){if(j.disableErrorBoundaries)r.get();else try{r.get()}catch{return A(t),!0}if(e.dependenciesState_===2)return A(t),!0}}return bt(e),A(t),!1}}}function gt(e,t,n){bt(e),e.newObserving_=Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++j.runId;let r=j.trackingDerivation;j.trackingDerivation=e,j.inBatch++;let i;if(j.disableErrorBoundaries===!0)i=t.call(n);else try{i=t.call(n)}catch(e){i=new pt(e)}return j.inBatch--,j.trackingDerivation=r,_t(e),i}function _t(e){let t=e.observing_,n=e.observing_=e.newObserving_,r=0,i=0,a=e.unboundDepsCount_;for(let e=0;e<a;e++){let t=n[e];t.diffValue===0&&(t.diffValue=1,i!==e&&(n[i]=t),i++),t.dependenciesState_>r&&(r=t.dependenciesState_)}for(n.length=i,e.newObserving_=null,a=t.length;a--;){let n=t[a];n.diffValue===0&&Et(n,e),n.diffValue=0}for(;i--;){let t=n[i];t.diffValue===1&&(t.diffValue=0,Tt(t,e))}r!==0&&(e.dependenciesState_=r,e.onBecomeStale_())}function vt(e){let t=e.observing_;e.observing_=[];let n=t.length;for(;n--;)Et(t[n],e);e.dependenciesState_=-1}function yt(e){let t=k();try{return e()}finally{A(t)}}function k(){let e=j.trackingDerivation;return j.trackingDerivation=null,e}function A(e){j.trackingDerivation=e}function bt(e){if(e.dependenciesState_===0)return;e.dependenciesState_=0;let t=e.observing_,n=t.length;for(;n--;)t[n].lowestObserverState_=0}var xt=7,St=class{constructor(){this.version=xt,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.isRunningUnobservations=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.safeDescriptors=!0}},Ct=!0,j=function(){let t=globalThis;return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ct=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==xt&&(Ct=!1),Ct?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new St):(setTimeout(()=>{e(35)},1),new St)}();function wt(){return j}function Tt(e,t){(e.observers_??=new Set).add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Et(e,t){let n=e.observers_;n&&(n.delete(t),n.size===0&&Dt(e))}function Dt(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,j.pendingUnobservations.push(e))}function M(){j.inBatch++}function N(){--j.inBatch===0&&(Lt(),!j.isRunningUnobservations&&j.pendingUnobservations.length>0&&Ot())}function Ot(){j.isRunningUnobservations=!0;try{let e=j.pendingUnobservations;for(let t=0;t<e.length;t++){let n=e[t];n.isPendingUnobservation=!1,(!n.observers_||n.observers_.size===0)&&(n.observers_=null,n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof O&&n.suspend_())}j.pendingUnobservations=[]}finally{j.isRunningUnobservations=!1}}function kt(e){var t;e.isBeingObserved||(e.isBeingObserved=!0,e.onBO(),(t=e.observing_)==null||t.forEach(kt))}function At(e){let t=j.trackingDerivation;return t===null?((!e.observers_||e.observers_.size===0)&&j.inBatch>0&&Dt(e),!1):(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&j.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved)}function jt(e){var t;e.lowestObserverState_!==2&&(e.lowestObserverState_=2,(t=e.observers_)==null||t.forEach(e=>{e.dependenciesState_===0&&e.onBecomeStale_(),e.dependenciesState_=2}))}function Mt(e){var t;e.lowestObserverState_!==2&&(e.lowestObserverState_=2,(t=e.observers_)==null||t.forEach(t=>{t.dependenciesState_===1?t.dependenciesState_=2:t.dependenciesState_===0&&(e.lowestObserverState_=0)}))}function Nt(e){var t;e.lowestObserverState_===0&&(e.lowestObserverState_=1,(t=e.observers_)==null||t.forEach(e=>{e.dependenciesState_===0&&(e.dependenciesState_=1,e.onBecomeStale_())}))}var Pt=class{constructor(e=`Reaction`,t,n,r){this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=-1,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.removeAbortListener_=void 0,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}get isDisposed(){return _(this.flags_,1)}set isDisposed(e){this.flags_=v(this.flags_,1,e)}get isScheduled(){return _(this.flags_,2)}set isScheduled(e){this.flags_=v(this.flags_,2,e)}get isTrackPending(){return _(this.flags_,4)}set isTrackPending(e){this.flags_=v(this.flags_,4,e)}get isRunning(){return _(this.flags_,8)}set isRunning(e){this.flags_=v(this.flags_,8,e)}get diffValue(){return+!!_(this.flags_,16)}set diffValue(e){this.flags_=v(this.flags_,16,e===1)}onBecomeStale_(){this.schedule_()}schedule_(){this.isScheduled||(this.isScheduled=!0,j.pendingReactions.push(this),Lt())}runReaction_(){if(!this.isDisposed){M(),this.isScheduled=!1;let e=j.trackingContext;if(j.trackingContext=this,ht(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}j.trackingContext=e,N()}}track(e){if(this.isDisposed)return;M(),this.isRunning=!0;let t=j.trackingContext;j.trackingContext=this;let n=gt(this,e,void 0);j.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&vt(this),mt(n)&&this.reportExceptionInDerivation_(n.cause),N()}reportExceptionInDerivation_(e){if(this.errorHandler_){this.errorHandler_(e,this);return}if(j.disableErrorBoundaries)throw e;let t=`[mobx] uncaught error in '${this}'`;j.suppressReactionErrors||console.error(t,e),j.globalReactionErrorHandlers.forEach(t=>t(e,this))}dispose(){if(!this.isDisposed){var e;this.isDisposed=!0,(e=this.removeAbortListener_)==null||e.call(this),this.isRunning||(M(),vt(this),N())}}getDisposer_(e){let t=()=>this.dispose();return e!=null&&e.addEventListener&&!this.isDisposed&&(e.addEventListener(`abort`,t),this.removeAbortListener_=()=>e.removeEventListener==null?void 0:e.removeEventListener(`abort`,t)),t[y]=this,`dispose`in Symbol&&typeof Symbol.dispose==`symbol`&&(t[Symbol.dispose]=t),t}toString(){return`Reaction[${this.name_}]`}},Ft=100,It=e=>e();function Lt(){j.inBatch>0||j.isRunningReactions||It(Rt)}function Rt(){j.isRunningReactions=!0;let e=j.pendingReactions,t=0;for(;e.length>0;){++t===Ft&&(console.error(`[mobx] cycle in reaction: ${e[0]}`),e.splice(0));let n=e.splice(0);for(let e=0,t=n.length;e<t;e++)n[e].runReaction_()}j.isRunningReactions=!1}var P=m(`Reaction`,Pt),zt=`action`,Bt=`autoAction`,Vt=`autoAction.bound`,Ht=`<unnamed action>`,Ut=fe(zt),Wt=fe(Bt,{autoAction:!0}),Gt=fe(Vt,{autoAction:!0,bound:!0});function Kt(e){return S(e,he)}function qt(e){return function(t,n){if(n&&typeof n.kind==`string`)return he(e?Wt:Ut,t,n);if(l(t))return E(t.name||Ht,t,e);if(l(n))return E(t,n,e);if(u(t))return Kt(fe(e?Bt:zt,{name:t,autoAction:e}))}}var F=qt(!1);t(F,Ut);var Jt=qt(!0);t(Jt,Wt);var Yt=Kt(Gt);function Xt(e){return ot(e.name||Ht,!1,e,this,void 0)}function I(e){return l(e)&&e.isMobxAction===!0}var Zt=e=>e();function Qt(e){return e.scheduler?e.scheduler:e.delay?t=>setTimeout(t,e.delay):Zt}function $t(e,t,n=o){var r;let i=n.name??`Reaction`,a=F(i,n.onError?en(n.onError,t):t),s=!n.scheduler&&!n.delay,c=Qt(n),l=!0,u=!1,d,f=n.equals||ue,p=new Pt(i,()=>{l||s?ee():u||(u=!0,c(ee))},n.onError,n.requiresObservable);function ee(){if(u=!1,p.isDisposed)return;let t=!1,r=d;p.track(()=>{let n=lt(!1,()=>e(p));t=l||!f(d,n),d=n}),(l&&n.fireImmediately||!l&&t)&&a(d,r,p),l=!1}return n!=null&&(r=n.signal)!=null&&r.aborted||p.schedule_(),p.getDisposer_(n?.signal)}function en(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}function tn(e,t,n,r){let i=se(t);return $(()=>{let t=Q(e,r)[y];h(i).forEach(e=>{t.extend_(e,i[e],n&&e in n?n[e]:!0)})}),e}function nn(e,t){return rn(Hn(e,t))}function rn(e){let t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=an(e.observing_).map(rn)),t}function an(e){return Array.from(new Set(e))}var on=class extends Error{constructor(){super(`FLOW_CANCELLED`),Object.setPrototypeOf(this,new.target.prototype),this.name=`FlowCancellationError`}toString(){return`Error: ${this.message}`}};function sn(e){return S(e,xe)}var cn=ve(`flow`),ln=ve(`flow.bound`,{bound:!0}),L=t(function(e,t){if(t&&typeof t.kind==`string`)return xe(cn,e,t);let n=e,r=n.name||`flow`,i=function(){let e=this,t=arguments,i=F(r,n).apply(e,t),a,o,s=new Promise(function(e,t){a=t;function n(e){o=void 0;let n;try{n=F(r,i.next).call(i,e)}catch(e){return t(e)}c(n)}function s(e){o=void 0;let n;try{n=F(r,i.throw).call(i,e)}catch(e){return t(e)}c(n)}function c(r){if(l(r?.then))r.then(c,t);else return r.done?e(r.value):(o=Promise.resolve(r.value),o.then(n,s))}n(void 0)});return s.cancel=F(r,function(){try{o&&dn(o);let e=i.return(void 0),t=Promise.resolve(e.value);t.then(c,c),dn(t),a(new on)}catch(e){a(e)}}),s};return i.isMobXFlow=!0,i},cn),un=sn(ln);function dn(e){l(e.cancel)&&e.cancel()}function R(e){return e?.isMobXFlow===!0}function fn(e,t){if(!e)return!1;if(t!==void 0){if(Vn(e)){var n,r;let i=e[y];return i.values_.has(t)||!!((n=i.lazyComputedKeys_)!=null&&n.has(t))||!!((r=i.lazyObservableKeys_)!=null&&r.has(t))}return!1}return Vn(e)||!!e[y]||ce(e)||P(e)||ft(e)}function pn(e){return fn(e)}function z(e,t=void 0){M();try{return e.apply(t)}finally{N()}}function B(e){return e[y]}var mn={has(e,t){return B(e).has_(t)},get(e,t){return B(e).get_(t)},set(e,t,n){return u(t)?B(e).set_(t,n,!0)??!0:!1},deleteProperty(e,t){return u(t)?B(e).delete_(t,!0)??!0:!1},defineProperty(e,t,n){return B(e).defineProperty_(t,n)??!0},ownKeys(e){return B(e).ownKeys_()},preventExtensions(t){e(13)}};function hn(e,t){var n;return e=Q(e,t),(n=e[y]).proxy_??(n.proxy_=new Proxy(e,mn))}function V(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function H(t,n){let r=k();try{let r=[...t.interceptors_||[]];for(let t=0,i=r.length;t<i&&(n=r[t](n),n&&!n.type&&e(14),n);t++);return n}finally{A(r)}}function U(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function W(e,t){let n=k(),r=e.changeListeners_;if(r){r=r.slice();for(let e=0,n=r.length;e<n;e++)r[e](t);A(n)}}var gn=Symbol(`mobx-keys`);function _n(e,t,n){return f(e)?tn(e,e,t,n):($(()=>{let r=Q(e,n)[y];if(!e[gn]){let t=Object.getPrototypeOf(e),n=new Set([...h(e),...h(t)]);n.delete(`constructor`),n.delete(y),ee(t,gn,n)}e[gn].forEach(e=>vn(r,e,t&&e in t?t[e]:!0))}),e)}function vn(t,r,a){if(a===!0&&(a=t.defaultAnnotation_),a===!1)return;r in t.target_||e(1,a.annotationType_,`${t.name_}.${r.toString()}`);let o=t.target_;for(;o&&o!==i;){let e=n(o,r);if(e){let n=a.make_(t,r,e,o);if(n===0)return;if(n===1)break}o=Object.getPrototypeOf(o)}}var yn=`splice`,G=`update`,bn=1e4,xn={get(e,t){let n=e[y];return t===y?n:t===`length`?n.getArrayLength_():typeof t==`string`&&!isNaN(t)?n.get_(parseInt(t)):g(wn,t)?wn[t]:e[t]},set(e,t,n){let r=e[y];return t===`length`?r.setArrayLength_(n):typeof t==`symbol`||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions(){e(15)}},Sn=class{constructor(e=`ObservableArray`,t,n){this.owned_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.atom_=new b(e),this.enhancer_=(e,n)=>t(e,n,`ObservableArray[..]`)}dehanceValue_(e){return this.dehancer===void 0?e:this.dehancer(e)}dehanceValues_(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e}getArrayLength_(){return this.atom_.reportObserved(),this.values_.length}setArrayLength_(t){(!Number.isInteger(t)||t<0)&&e(40,t);let n=this.values_.length;if(t!==n){if(t>n){let e=Array.from({length:t-n});this.spliceWithArray_(n,0,e)}else this.spliceWithArray_(t,n-t)}}updateArrayLength_(t,n){t!==this.lastKnownLength_&&e(16),this.lastKnownLength_+=n}spliceWithArray_(e,t,n){this.atom_;let r=this.values_.length;if(e===void 0?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=arguments.length===1?r-e:t==null?0:Math.max(0,Math.min(t,r-e)),n===void 0&&(n=a),V(this)){let r=H(this,{object:this.proxy_,type:yn,index:e,removedCount:t,added:n});if(!r)return a;t=r.removedCount,n=r.added}n=n.length===0?n:n.map(e=>this.enhancer_(e,void 0));let i=this.spliceItemsIntoValues_(e,t,n);return(t!==0||n.length!==0)&&this.notifyArraySplice_(e,n,i),this.dehanceValues_(i)}spliceItemsIntoValues_(e,t,n){if(n.length<bn)return this.values_.splice(e,t,...n);{let r=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(let t=0;t<n.length;t++)this.values_[e+t]=n[t];for(let t=0;t<i.length;t++)this.values_[e+n.length+t]=i[t];return r}}notifyArrayChildUpdate_(e,t,n){let r=U(this),i=r?{observableKind:`array`,object:this.proxy_,type:G,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),r&&W(this,i)}notifyArraySplice_(e,t,n){let r=U(this),i=r?{observableKind:`array`,object:this.proxy_,debugObjectName:this.atom_.name_,type:yn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),r&&W(this,i)}get_(e){return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e])}set_(e,t){let n=this.values_;if(e<n.length){this.atom_;let r=n[e];if(V(this)){let n=H(this,{type:G,object:this.proxy_,index:e,newValue:t});if(!n)return;t=n.newValue}t=this.enhancer_(t,r),t!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{let r=Array.from({length:e+1-n.length});r[r.length-1]=t,this.spliceWithArray_(n.length,0,r)}}};function Cn(e,t,n=`ObservableArray`,r=!1){return $(()=>{let i=new Sn(n,t,r);te(i.values_,y,i);let a=new Proxy(i.values_,xn);return i.proxy_=a,e&&e.length&&i.spliceWithArray_(0,0,e),a})}var wn={clear(){return this.splice(0)},replace(e){let t=this[y];return t.spliceWithArray_(0,t.values_.length,e)},toJSON(){return this.slice()},splice(e,t,...n){let r=this[y];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray_(e);case 2:return r.spliceWithArray_(e,t)}return r.spliceWithArray_(e,t,n)},spliceWithArray(e,t,n){return this[y].spliceWithArray_(e,t,n)},push(...e){let t=this[y];return t.spliceWithArray_(t.values_.length,0,e),t.values_.length},pop(){return this.splice(Math.max(this[y].values_.length-1,0),1)[0]},shift(){return this.splice(0,1)[0]},unshift(...e){let t=this[y];return t.spliceWithArray_(0,0,e),t.values_.length},reverse(){return j.trackingDerivation&&e(37,`reverse`),this.replace(this.slice().reverse()),this},sort(){j.trackingDerivation&&e(37,`sort`);let t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove(e){let t=this[y],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};K(`at`,q),K(`concat`,q),K(`flat`,q),K(`includes`,q),K(`indexOf`,q),K(`join`,q),K(`lastIndexOf`,q),K(`slice`,q),K(`toString`,q),K(`toLocaleString`,q),K(`toSorted`,q),K(`toSpliced`,q),K(`with`,q),K(`every`,J),K(`filter`,J),K(`find`,J),K(`findIndex`,J),K(`findLast`,J),K(`findLastIndex`,J),K(`flatMap`,J),K(`forEach`,J),K(`map`,J),K(`some`,J),K(`toReversed`,J),K(`reduce`,Tn),K(`reduceRight`,Tn);function K(e,t){typeof Array.prototype[e]==`function`&&(wn[e]=t(e))}function q(e){return function(){let t=this[y];t.atom_.reportObserved();let n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function J(e){return function(t,n){let r=this[y];return r.atom_.reportObserved(),r.dehanceValues_(r.values_)[e]((e,r)=>t.call(n,e,r,this))}}function Tn(e){return function(){let t=this[y];t.atom_.reportObserved();let n=t.dehanceValues_(t.values_),r=arguments[0];return arguments[0]=(e,t,n)=>r(e,t,n,this),n[e].apply(n,arguments)}}var En=m(`ObservableArrayAdministration`,Sn);function Dn(e){return d(e)&&En(e[y])}var On={},Y=`add`,X=`delete`,kn=class{constructor(e,t=x,n=`ObservableMap`){this.enhancer_=void 0,this.name_=void 0,this[y]=On,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,$(()=>{this.keysAtom_=le(`ObservableMap.keys()`),this.data_=new Map,this.hasMap_=new Map,e&&this.merge(e)})}has_(e){return this.data_.has(e)}has(e){if(!j.trackingDerivation)return this.has_(e);let t=this.hasMap_.get(e);if(!t){let n=t=new D(this.has_(e),de,`ObservableMap.key?`,!1);this.hasMap_.set(e,n),n.onBUOL=new Set([()=>this.hasMap_.delete(e)])}return t.get()}set(e,t){let n=this.has_(e);if(V(this)){let r=H(this,{type:n?G:Y,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this}delete(e){if(this.keysAtom_,V(this)&&!H(this,{type:X,object:this,name:e}))return!1;if(this.has_(e)){let t=U(this),n=t?{observableKind:`map`,debugObjectName:this.name_,type:X,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return z(()=>{var t;this.keysAtom_.reportChanged(),(t=this.hasMap_.get(e))==null||t.setNewValue_(!1),this.data_.get(e).setNewValue_(void 0),this.data_.delete(e)}),t&&W(this,n),!0}return!1}updateValue_(e,t){let n=this.data_.get(e);if(t=n.prepareNewValue_(t),t!==j.UNCHANGED){let r=U(this),i=r?{observableKind:`map`,debugObjectName:this.name_,type:G,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&W(this,i)}}addValue_(e,t){this.keysAtom_,z(()=>{var n;let r=new D(t,this.enhancer_,`ObservableMap.key`,!1);this.data_.set(e,r),t=r.value_,(n=this.hasMap_.get(e))==null||n.setNewValue_(!0),this.keysAtom_.reportChanged()});let n=U(this),r=n?{observableKind:`map`,debugObjectName:this.name_,type:Y,object:this,name:e,newValue:t}:null;n&&W(this,r)}get(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)}getOrInsert(e,t){return this.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return this.has(e)||this.set(e,t(e)),this.get(e)}dehanceValue_(e){return this.dehancer===void 0?e:this.dehancer(e)}keys(){return this.keysAtom_.reportObserved(),this.data_.keys()}values(){let e=this,t=this.keys();return An({next(){let{done:n,value:r}=t.next();return{done:n,value:n?void 0:e.get(r)}}})}entries(){let e=this,t=this.keys();return An({next(){let{done:n,value:r}=t.next();return{done:n,value:n?void 0:[r,e.get(r)]}}})}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}merge(t){return Z(t)&&(t=new Map(t)),z(()=>{f(t)?ae(t).forEach(e=>this.set(e,t[e])):Array.isArray(t)?t.forEach(([e,t])=>this.set(e,t)):ne(t)?(re(t)||e(19,t),t.forEach((e,t)=>this.set(t,e))):t!=null&&e(20,t)}),this}clear(){z(()=>{yt(()=>{for(let e of this.keys())this.delete(e)})})}replace(e){return z(()=>{let t=jn(e),n=new Map,r=!1;for(let e of this.data_.keys())if(!t.has(e)){if(this.delete(e))r=!0;else{let t=this.data_.get(e);n.set(e,t)}}for(let[e,i]of t.entries()){let t=this.data_.has(e);if(this.set(e,i),this.data_.has(e)){let i=this.data_.get(e);n.set(e,i),t||(r=!0)}}if(!r){if(this.data_.size!==n.size)this.keysAtom_.reportChanged();else{let e=this.data_.keys(),t=n.keys(),r=e.next(),i=t.next();for(;!r.done;){if(r.value!==i.value){this.keysAtom_.reportChanged();break}r=e.next(),i=t.next()}}}this.data_=n}),this}get size(){return this.keysAtom_.reportObserved(),this.data_.size}toString(){return`[object ObservableMap]`}toJSON(){return Array.from(this)}get[Symbol.toStringTag](){return`Map`}},Z=m(`ObservableMap`,kn);function An(e){return e[Symbol.toStringTag]=`MapIterator`,Kn(e)}function jn(t){if(ne(t)||Z(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){let e=new Map;for(let n in t)e.set(n,t[n]);return e}return e(21,t)}var Mn={},Nn=class{constructor(e,t=x,n=`ObservableSet`){this.name_=void 0,this[y]=Mn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,this.enhancer_=(e,r)=>t(e,r,n),$(()=>{this.atom_=le(this.name_),e&&this.replace(e)})}dehanceValue_(e){return this.dehancer===void 0?e:this.dehancer(e)}clear(){z(()=>{yt(()=>{for(let e of this.data_.values())this.delete(e)})})}forEach(e,t){for(let n of this)e.call(t,n,n,this)}get size(){return this.atom_.reportObserved(),this.data_.size}add(e){if(this.atom_,V(this)){let t=H(this,{type:Y,object:this,newValue:e});if(!t)return this;e=t.newValue}if(!this.has(e)){z(()=>{e=this.enhancer_(e,void 0),this.data_.add(e),this.atom_.reportChanged()});let t=U(this),n=t?{observableKind:`set`,debugObjectName:this.name_,type:Y,object:this,newValue:e}:null;t&&W(this,n)}return this}delete(e){if(V(this)&&!H(this,{type:X,object:this,oldValue:e}))return!1;if(this.has(e)){let t=U(this),n=t?{observableKind:`set`,debugObjectName:this.name_,type:X,object:this,oldValue:e}:null;return z(()=>{this.atom_.reportChanged(),this.data_.delete(e)}),t&&W(this,n),!0}return!1}has(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))}entries(){let e=this.values();return Fn({next(){let{value:t,done:n}=e.next();return n?{value:void 0,done:n}:{value:[t,t],done:n}}})}keys(){return this.values()}values(){this.atom_.reportObserved();let e=this,t=this.data_.values();return Fn({next(){let{value:n,done:r}=t.next();return r?{value:void 0,done:r}:{value:e.dehanceValue_(n),done:r}}})}intersection(e){return new Set(this).intersection(e)}union(e){return new Set(this).union(e)}difference(e){return new Set(this).difference(e)}symmetricDifference(e){return new Set(this).symmetricDifference(e)}isSubsetOf(e){return new Set(this).isSubsetOf(e)}isSupersetOf(e){return new Set(this).isSupersetOf(e)}isDisjointFrom(e){return new Set(this).isDisjointFrom(e)}replace(t){return Pn(t)&&(t=new Set(t)),Array.isArray(t)||ie(t)?z(()=>{let e=ie(t)?t:new Set(t);if(e.size===0)this.clear();else if(this.data_.size===0)e.forEach(e=>this.add(e));else{for(let t of this.data_.values())e.has(this.dehanceValue_(t))||this.delete(t);e.forEach(e=>this.add(e))}}):t!=null&&e(41,t),this}toJSON(){return Array.from(this)}toString(){return`[object ObservableSet]`}[Symbol.iterator](){return this.values()}get[Symbol.toStringTag](){return`Set`}},Pn=m(`ObservableSet`,Nn);function Fn(e){return e[Symbol.toStringTag]=`SetIterator`,Kn(e)}var In=Object.create(null),Ln=`remove`,Rn=class{constructor(e,t=new Map,n,r=Fe){this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new b(`ObservableObject.keys`),this.isPlainObject_=f(this.target_)}getObservablePropValue_(e){return(this.values_.get(e)??this.materializeLazyComputed_(e)??this.materializeLazyObservable_(e)).get()}materializeLazyComputed_(e){let t=this.lazyComputedKeys_?.get(e);if(!t)return;this.lazyComputedKeys_.delete(e),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);let n=t();return this.values_.set(e,n),n}materializeLazyObservable_(e){let t=this.lazyObservableKeys_?.get(e);if(!t)return;this.lazyObservableKeys_.delete(e),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);let n=t();return this.values_.set(e,n),n}setObservablePropValue_(e,t){let n=this.values_.get(e)??this.materializeLazyComputed_(e)??this.materializeLazyObservable_(e);if(n instanceof O)return n.set(t),!0;if(V(this)){let n=H(this,{type:G,object:this.proxy_||this.target_,name:e,newValue:t});if(!n)return null;t=n.newValue}if(t=n.prepareNewValue_(t),t!==j.UNCHANGED){let r=U(this),i=r?{type:G,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&W(this,i)}return!0}get_(e){return j.trackingDerivation&&!g(this.target_,e)&&this.has_(e),this.target_[e]}set_(e,t,n=!1){return g(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)}has_(e){if(!j.trackingDerivation)return e in this.target_;this.pendingKeys_||=new Map;let t=this.pendingKeys_.get(e);return t||(t=new D(e in this.target_,de,`ObservableObject.key?`,!1),this.pendingKeys_.set(e,t)),t.get()}extend_(e,t,n,r=!1){return n===!0&&(n=this.defaultAnnotation_),n===!1?this.defineProperty_(e,t,r):n.extend_(this,e,t,r)}defineProperty_(e,n,i=!1){this.keysAtom_;try{M();let a=this.delete_(e);if(!a)return a;if(V(this)){let r=H(this,{object:this.proxy_||this.target_,name:e,type:Y,newValue:n.value});if(!r)return null;let{newValue:i}=r;n.value!==i&&(n=t({},n,{value:i}))}if(i){if(!Reflect.defineProperty(this.target_,e,n))return!1}else r(this.target_,e,n);this.notifyPropertyAddition_(e,n.value)}finally{N()}return!0}defineObservableProperty_(e,t,n,i=!1){this.keysAtom_;try{M();let a=this.delete_(e);if(!a)return a;if(V(this)){let n=H(this,{object:this.proxy_||this.target_,name:e,type:Y,newValue:t});if(!n)return null;t=n.newValue}let o=Bn(e),s={configurable:!j.safeDescriptors||this.isPlainObject_,enumerable:!0,get:o.get,set:o.set};if(i){if(!Reflect.defineProperty(this.target_,e,s))return!1}else r(this.target_,e,s);let c=new D(t,n,`ObservableObject.key`,!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{N()}return!0}defineComputedProperty_(e,t,n=!1){this.keysAtom_;try{M();let i=this.delete_(e);if(!i)return i;if(V(this)&&!H(this,{object:this.proxy_||this.target_,name:e,type:Y,newValue:void 0}))return null;t.name||=`ObservableObject.key`,t.context=this.proxy_||this.target_;let a=Bn(e),o={configurable:!j.safeDescriptors||this.isPlainObject_,enumerable:!1,get:a.get,set:a.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else r(this.target_,e,o);this.values_.set(e,new O(t)),this.notifyPropertyAddition_(e,void 0)}finally{N()}return!0}delete_(e,t=!1){if(this.keysAtom_,!g(this.target_,e))return!0;if(V(this)&&!H(this,{object:this.proxy_||this.target_,name:e,type:Ln}))return null;try{var r;M();let i=U(this),a=this.values_.get(e),o;if(!a&&i&&(o=n(this.target_,e)?.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof D&&(o=a.value_),jt(a)),this.keysAtom_.reportChanged(),(r=this.pendingKeys_)==null||(r=r.get(e))==null||r.set(e in this.target_),i){let t={type:Ln,observableKind:`object`,object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:o,name:e};i&&W(this,t)}}finally{N()}return!0}notifyPropertyAddition_(e,t){var n;let r=U(this);if(r){let n=r?{type:Y,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&W(this,n)}(n=this.pendingKeys_)==null||(n=n.get(e))==null||n.set(!0),this.keysAtom_.reportChanged()}ownKeys_(){return this.keysAtom_.reportObserved(),h(this.target_)}keys_(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)}};function Q(e,t){if(g(e,y))return e;let n=t?.name??`ObservableObject`;return ee(e,y,new Rn(e,new Map,String(n),qe(t))),e}var zn=m(`ObservableObjectAdministration`,Rn);function Bn(e){return In[e]||(In[e]={get(){return this[y].getObservablePropValue_(e)},set(t){return this[y].setObservablePropValue_(e,t)}})}function Vn(e){return d(e)?zn(e[y]):!1}function Hn(t,n){if(typeof t==`object`&&t){if(Dn(t))return n!==void 0&&e(23),t[y].atom_;if(Pn(t))return t.atom_;if(Z(t)){if(n===void 0)return t.keysAtom_;let r=t.data_.get(n)||t.hasMap_.get(n);return r||e(25,n,Wn(t)),r}if(Vn(t)){if(!n)return e(26);let r=t[y],i=r.values_.get(n)??r.materializeLazyComputed_(n)??r.materializeLazyObservable_(n);return i||e(27,n,Wn(t)),i}if(ce(t)||ft(t)||P(t))return t}else if(l(t)&&P(t[y]))return t[y];e(28)}function Un(t,n){if(t||e(29),n!==void 0)return Un(Hn(t,n));if(ce(t)||ft(t)||P(t)||Z(t)||Pn(t))return t;if(t[y])return t[y];e(24,t)}function Wn(e,t){let n;if(t!==void 0)n=Hn(e,t);else if(I(e))return e.name;else n=Vn(e)||Z(e)||Pn(e)?Un(e):Hn(e);return n.name_}function $(e){let t=k();M();try{return e()}finally{N(),A(t)}}i.toString;var Gn=globalThis.Iterator?.prototype||{};function Kn(e){return e[Symbol.iterator]=qn,t(Object.create(Gn),e)}function qn(){return this}export{Ze as a,_n as i,nn as n,$t as o,wt as r,Xt as s,Pt as t};
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{S as createPacketServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{b as createPieServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{v as createRadarServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{g as createRailroadServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{m as createRailroadAbnfServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{f as createRailroadEbnfServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{u as createRailroadPegServices}from"./mermaid-parser.core-FP6ypgZ7.js";
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),d={value:()=>{}};function f(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new p(n)}function p(e){this._=e}function m(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}p.prototype=f.prototype={constructor:p,on:function(e,t){var n=this._,r=m(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=h(n[i],e.name)))return i}else{if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=g(n[i],e.name,t);else if(t==null)for(i in n)n[i]=g(n[i],e.name,null);return this}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new p(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function h(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function g(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=d,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var _={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function v(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),_.hasOwnProperty(t)?{space:_[t],local:e}:e}function y(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function b(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function x(e){var t=v(e);return(t.local?b:y)(t)}function ee(){}function S(e){return e==null?ee:function(){return this.querySelector(e)}}function te(e){typeof e!=`function`&&(e=S(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new w(r,this._parents)}function ne(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function re(){return[]}function ie(e){return e==null?re:function(){return this.querySelectorAll(e)}}function ae(e){return function(){return ne(e.apply(this,arguments))}}function oe(e){e=typeof e==`function`?ae(e):ie(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new w(r,i)}function se(e){return function(){return this.matches(e)}}function ce(e){return function(t){return t.matches(e)}}var le=Array.prototype.find;function ue(e){return function(){return le.call(this.children,e)}}function de(){return this.firstElementChild}function fe(e){return this.select(e==null?de:ue(typeof e==`function`?e:ce(e)))}var pe=Array.prototype.filter;function me(){return Array.from(this.children)}function he(e){return function(){return pe.call(this.children,e)}}function ge(e){return this.selectAll(e==null?me:he(typeof e==`function`?e:ce(e)))}function _e(e){typeof e!=`function`&&(e=se(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new w(r,this._parents)}function ve(e){return Array(e.length)}function ye(){return new w(this._enter||this._groups.map(ve),this._parents)}function be(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}be.prototype={constructor:be,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function xe(e){return function(){return e}}function Se(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new be(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Ce(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new be(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function we(e){return e.__data__}function Te(e,t){if(!arguments.length)return Array.from(this,we);var n=t?Ce:Se,r=this._parents,i=this._groups;typeof e!=`function`&&(e=xe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Ee(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new w(o,r),o._enter=s,o._exit=c,o}function Ee(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function De(){return new w(this._exit||this._groups.map(ve),this._parents)}function Oe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function ke(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new w(s,this._parents)}function Ae(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function je(e){e||=Me;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new w(i,this._parents).order()}function Me(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ne(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Pe(){return Array.from(this)}function Fe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Ie(){let e=0;for(let t of this)++e;return e}function Le(){return!this.node()}function Re(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function ze(e){return function(){this.removeAttribute(e)}}function Be(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ve(e,t){return function(){this.setAttribute(e,t)}}function He(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ue(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function We(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ge(e,t){var n=v(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Be:ze:typeof t==`function`?n.local?We:Ue:n.local?He:Ve)(n,t))}function Ke(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qe(e){return function(){this.style.removeProperty(e)}}function Je(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ye(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Xe(e,t,n){return arguments.length>1?this.each((t==null?qe:typeof t==`function`?Ye:Je)(e,t,n??``)):C(this.node(),e)}function C(e,t){return e.style.getPropertyValue(t)||Ke(e).getComputedStyle(e,null).getPropertyValue(t)}function Ze(e){return function(){delete this[e]}}function Qe(e,t){return function(){this[e]=t}}function $e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function et(e,t){return arguments.length>1?this.each((t==null?Ze:typeof t==`function`?$e:Qe)(e,t)):this.node()[e]}function tt(e){return e.trim().split(/^|\s+/)}function nt(e){return e.classList||new rt(e)}function rt(e){this._node=e,this._names=tt(e.getAttribute(`class`)||``)}rt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function it(e,t){for(var n=nt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function at(e,t){for(var n=nt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function ot(e){return function(){it(this,e)}}function st(e){return function(){at(this,e)}}function ct(e,t){return function(){(t.apply(this,arguments)?it:at)(this,e)}}function lt(e,t){var n=tt(e+``);if(arguments.length<2){for(var r=nt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?ct:t?ot:st)(n,t))}function ut(){this.textContent=``}function dt(e){return function(){this.textContent=e}}function ft(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function pt(e){return arguments.length?this.each(e==null?ut:(typeof e==`function`?ft:dt)(e)):this.node().textContent}function mt(){this.innerHTML=``}function ht(e){return function(){this.innerHTML=e}}function gt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function _t(e){return arguments.length?this.each(e==null?mt:(typeof e==`function`?gt:ht)(e)):this.node().innerHTML}function vt(){this.nextSibling&&this.parentNode.appendChild(this)}function yt(){return this.each(vt)}function bt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xt(){return this.each(bt)}function St(e){var t=typeof e==`function`?e:x(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Ct(){return null}function wt(e,t){var n=typeof e==`function`?e:x(e),r=t==null?Ct:typeof t==`function`?t:S(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Tt(){var e=this.parentNode;e&&e.removeChild(this)}function Et(){return this.each(Tt)}function Dt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ot(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kt(e){return this.select(e?Ot:Dt)}function At(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function jt(e){return function(t){e.call(this,t,this.__data__)}}function Mt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Nt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Pt(e,t,n){return function(){var r=this.__on,i,a=jt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Ft(e,t,n){var r=Mt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}}else{for(s=t?Pt:Nt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}}function It(e,t,n){var r=Ke(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Lt(e,t){return function(){return It(this,e,t)}}function Rt(e,t){return function(){return It(this,e,t.apply(this,arguments))}}function zt(e,t){return this.each((typeof t==`function`?Rt:Lt)(e,t))}function*Bt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Vt=[null];function w(e,t){this._groups=e,this._parents=t}function T(){return new w([[document.documentElement]],Vt)}function Ht(){return this}w.prototype=T.prototype={constructor:w,select:te,selectAll:oe,selectChild:fe,selectChildren:ge,filter:_e,data:Te,enter:ye,exit:De,join:Oe,merge:ke,selection:Ht,order:Ae,sort:je,call:Ne,nodes:Pe,node:Fe,size:Ie,empty:Le,each:Re,attr:Ge,style:Xe,property:et,classed:lt,text:pt,html:_t,raise:yt,lower:xt,append:St,insert:wt,remove:Et,clone:kt,datum:At,on:Ft,dispatch:zt,[Symbol.iterator]:Bt};function E(e){return typeof e==`string`?new w([[document.querySelector(e)]],[document.documentElement]):new w([[e]],Vt)}function Ut(e){let t;for(;t=e.sourceEvent;)e=t;return e}function D(e,t){if(e=Ut(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Wt={passive:!1},Gt={capture:!0,passive:!1};function Kt(e){e.stopImmediatePropagation()}function O(e){e.preventDefault(),e.stopImmediatePropagation()}function qt(e){var t=e.document.documentElement,n=E(e).on(`dragstart.drag`,O,Gt);`onselectstart`in t?n.on(`selectstart.drag`,O,Gt):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Jt(e,t){var n=e.document.documentElement,r=E(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,O,Gt),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Yt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function k(){}var A=.7,j=1/A,M=`\\s*([+-]?\\d+)\\s*`,N=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zt=/^#([0-9a-f]{3,8})$/,Qt=RegExp(`^rgb\\(${M},${M},${M}\\)$`),$t=RegExp(`^rgb\\(${P},${P},${P}\\)$`),en=RegExp(`^rgba\\(${M},${M},${M},${N}\\)$`),tn=RegExp(`^rgba\\(${P},${P},${P},${N}\\)$`),nn=RegExp(`^hsl\\(${N},${P},${P}\\)$`),rn=RegExp(`^hsla\\(${N},${P},${P},${N}\\)$`),an={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};Yt(k,F,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:on,formatHex:on,formatHex8:sn,formatHsl:cn,formatRgb:ln,toString:ln});function on(){return this.rgb().formatHex()}function sn(){return this.rgb().formatHex8()}function cn(){return vn(this).formatHsl()}function ln(){return this.rgb().formatRgb()}function F(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?un(t):n===3?new L(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?I(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?I(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qt.exec(e))?new L(t[1],t[2],t[3],1):(t=$t.exec(e))?new L(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=en.exec(e))?I(t[1],t[2],t[3],t[4]):(t=tn.exec(e))?I(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nn.exec(e))?_n(t[1],t[2]/100,t[3]/100,1):(t=rn.exec(e))?_n(t[1],t[2]/100,t[3]/100,t[4]):an.hasOwnProperty(e)?un(an[e]):e===`transparent`?new L(NaN,NaN,NaN,0):null}function un(e){return new L(e>>16&255,e>>8&255,e&255,1)}function I(e,t,n,r){return r<=0&&(e=t=n=NaN),new L(e,t,n,r)}function dn(e){return e instanceof k||(e=F(e)),e?(e=e.rgb(),new L(e.r,e.g,e.b,e.opacity)):new L}function fn(e,t,n,r){return arguments.length===1?dn(e):new L(e,t,n,r??1)}function L(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yt(L,fn,Xt(k,{brighter(e){return e=e==null?j:j**+e,new L(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?A:A**+e,new L(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new L(R(this.r),R(this.g),R(this.b),gn(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:pn,formatHex:pn,formatHex8:mn,formatRgb:hn,toString:hn}));function pn(){return`#${z(this.r)}${z(this.g)}${z(this.b)}`}function mn(){return`#${z(this.r)}${z(this.g)}${z(this.b)}${z((isNaN(this.opacity)?1:this.opacity)*255)}`}function hn(){let e=gn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${R(this.r)}, ${R(this.g)}, ${R(this.b)}${e===1?`)`:`, ${e})`}`}function gn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function R(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function z(e){return e=R(e),(e<16?`0`:``)+e.toString(16)}function _n(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new B(e,t,n,r)}function vn(e){if(e instanceof B)return new B(e.h,e.s,e.l,e.opacity);if(e instanceof k||(e=F(e)),!e)return new B;if(e instanceof B)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new B(o,s,c,e.opacity)}function yn(e,t,n,r){return arguments.length===1?vn(e):new B(e,t,n,r??1)}function B(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yt(B,yn,Xt(k,{brighter(e){return e=e==null?j:j**+e,new B(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?A:A**+e,new B(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new L(Sn(e>=240?e-240:e+120,i,r),Sn(e,i,r),Sn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new B(bn(this.h),xn(this.s),xn(this.l),gn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=gn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${bn(this.h)}, ${xn(this.s)*100}%, ${xn(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function bn(e){return e=(e||0)%360,e<0?e+360:e}function xn(e){return Math.max(0,Math.min(1,e||0))}function Sn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Cn=e=>()=>e;function wn(e,t){return function(n){return e+n*t}}function Tn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function En(e,t){var n=t-e;return n?wn(e,n>180||n<-180?n-360*Math.round(n/360):n):Cn(isNaN(e)?t:e)}function Dn(e){return(e=+e)==1?On:function(t,n){return n-t?Tn(t,n,e):Cn(isNaN(t)?n:t)}}function On(e,t){var n=t-e;return n?wn(e,n):Cn(isNaN(e)?t:e)}var kn=(function e(t){var n=Dn(t);function r(e,t){var r=n((e=fn(e)).r,(t=fn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=On(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function V(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var An=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jn=new RegExp(An.source,`g`);function Mn(e){return function(){return e}}function Nn(e){return function(t){return e(t)+``}}function Pn(e,t){var n=An.lastIndex=jn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=An.exec(e))&&(i=jn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:V(r,i)})),n=jn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nn(c[0].x):Mn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fn=180/Math.PI,In={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ln(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fn,skewX:Math.atan(c)*Fn,scaleX:o,scaleY:s}}var Rn;function zn(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?In:Ln(t.a,t.b,t.c,t.d,t.e,t.f)}function Bn(e){return e==null||(Rn||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rn.setAttribute(`transform`,e),!(e=Rn.transform.baseVal.consolidate()))?In:(e=e.matrix,Ln(e.a,e.b,e.c,e.d,e.e,e.f))}function Vn(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:V(e,i)},{i:c-2,x:V(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:V(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:V(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:V(e,n)},{i:s-2,x:V(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hn=Vn(zn,`px, `,`px)`,`deg)`),Un=Vn(Bn,`, `,`)`,`)`),Wn=1e-12;function Gn(e){return((e=Math.exp(e))+1/e)/2}function Kn(e){return((e=Math.exp(e))-1/e)/2}function qn(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jn=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wn)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gn(y),c=s/(n*g)*(i*qn(t*r+y)-Kn(y));return[a+c*d,o+c*f,s*i/Gn(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),H=0,Yn=0,Xn=0,Zn=1e3,Qn,U,W=0,G=0,$n=0,K=typeof performance==`object`&&performance.now?performance:Date,er=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function tr(){return G||=(er(nr),K.now()+$n)}function nr(){G=0}function q(){this._call=this._time=this._next=null}q.prototype=rr.prototype={constructor:q,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?tr():+n)+(t==null?0:+t),!this._next&&U!==this&&(U?U._next=this:Qn=this,U=this),this._call=e,this._time=n,cr()},stop:function(){this._call&&(this._call=null,this._time=1/0,cr())}};function rr(e,t,n){var r=new q;return r.restart(e,t,n),r}function ir(){tr(),++H;for(var e=Qn,t;e;)(t=G-e._time)>=0&&e._call.call(void 0,t),e=e._next;--H}function ar(){G=(W=K.now())+$n,H=Yn=0;try{ir()}finally{H=0,sr(),G=0}}function or(){var e=K.now(),t=e-W;t>Zn&&($n-=t,W=e)}function sr(){for(var e,t=Qn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Qn=n);U=e,cr(r)}function cr(e){H||(Yn&&=clearTimeout(Yn),e-G>24?(e<1/0&&(Yn=setTimeout(ar,e-K.now()-$n)),Xn&&=clearInterval(Xn)):(Xn||=(W=K.now(),setInterval(or,Zn)),H=1,er(ar)))}function lr(e,t,n){var r=new q;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ur=f(`start`,`end`,`cancel`,`interrupt`),dr=[];function fr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;mr(e,n,{name:t,index:r,group:i,on:ur,tween:dr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function pr(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function mr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=rr(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return lr(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(lr(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function hr(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n)(r=n[o]).name===t?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]):a=!1;a&&delete e.__transition}}function gr(e){return this.each(function(){hr(this,e)})}function _r(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function vr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function yr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?_r:vr)(n,e,t))}function br(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function xr(e,t){var n;return(typeof t==`number`?V:t instanceof F?kn:(n=F(t))?(t=n,kn):Pn)(e,t)}function Sr(e){return function(){this.removeAttribute(e)}}function Cr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Tr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Er(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Dr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Or(e,t){var n=v(e),r=n===`transform`?Un:xr;return this.attrTween(e,typeof t==`function`?(n.local?Dr:Er)(n,r,br(this,`attr.`+e,t)):t==null?(n.local?Cr:Sr)(n):(n.local?Tr:wr)(n,r,t))}function kr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ar(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function jr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ar(e,i)),n}return i._value=t,i}function Mr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&kr(e,i)),n}return i._value=t,i}function Nr(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=v(e);return this.tween(n,(r.local?jr:Mr)(r,t))}function Pr(e,t){return function(){pr(this,e).delay=+t.apply(this,arguments)}}function Fr(e,t){return t=+t,function(){pr(this,e).delay=t}}function Ir(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Pr:Fr)(t,e)):Y(this.node(),t).delay}function Lr(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Rr(e,t){return t=+t,function(){J(this,e).duration=t}}function zr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Lr:Rr)(t,e)):Y(this.node(),t).duration}function Br(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function Vr(e){var t=this._id;return arguments.length?this.each(Br(t,e)):Y(this.node(),t).ease}function Hr(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Ur(e){if(typeof e!=`function`)throw Error();return this.each(Hr(this._id,e))}function Wr(e){typeof e!=`function`&&(e=se(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Gr(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Kr(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function qr(e,t,n){var r,i,a=Kr(t)?pr:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Jr(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each(qr(n,e,t))}function Yr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Xr(){return this.on(`end.remove`,Yr(this._id))}function Zr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=S(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,fr(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function Qr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ie(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&fr(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var $r=T.prototype.constructor;function ei(){return new $r(this._groups,this._parents)}function ti(e,t){var n,r,i;return function(){var a=C(this,e),o=(this.style.removeProperty(e),C(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ni(e){return function(){this.style.removeProperty(e)}}function ri(e,t,n){var r,i=n+``,a;return function(){var o=C(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ii(e,t,n){var r,i,a;return function(){var o=C(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),C(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function ai(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ni(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function oi(e,t,n){var r=(e+=``)==`transform`?Hn:xr;return t==null?this.styleTween(e,ti(e,r)).on(`end.style.`+e,ni(e)):typeof t==`function`?this.styleTween(e,ii(e,r,br(this,`style.`+e,t))).each(ai(this._id,e)):this.styleTween(e,ri(e,r,t),n).on(`end.style.`+e,null)}function si(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ci(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&si(e,a,n)),r}return a._value=t,a}function li(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ci(e,t,n??``))}function ui(e){return function(){this.textContent=e}}function di(e){return function(){var t=e(this);this.textContent=t??``}}function fi(e){return this.tween(`text`,typeof e==`function`?di(br(this,`text`,e)):ui(e==null?``:e+``))}function pi(e){return function(t){this.textContent=e.call(this,t)}}function mi(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&pi(r)),t}return r._value=e,r}function hi(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,mi(e))}function gi(){for(var e=this._name,t=this._id,n=yi(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);fr(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function _i(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var vi=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function yi(){return++vi}var Z=T.prototype;X.prototype={constructor:X,select:Zr,selectAll:Qr,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Wr,merge:Gr,selection:ei,transition:gi,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:Jr,attr:Or,attrTween:Nr,style:oi,styleTween:li,text:fi,textTween:hi,remove:Xr,tween:yr,delay:Ir,duration:zr,ease:Vr,easeVarying:Ur,end:_i,[Symbol.iterator]:Z[Symbol.iterator]};function bi(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xi={time:null,delay:0,duration:250,ease:bi};function Si(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Ci(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=yi(),(n=xi).time=tr(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&fr(c,e,t,l,o,n||Si(c,t));return new X(r,this._parents,e,t)}T.prototype.interrupt=gr,T.prototype.transition=Ci;var wi=e=>()=>e;function Ti(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ei=new Q(1,0,0);Di.prototype=Q.prototype;function Di(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ei;return e.__zoom}function Oi(e){e.stopImmediatePropagation()}function $(e){e.preventDefault(),e.stopImmediatePropagation()}function ki(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function Ai(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ji(){return this.__zoom||Ei}function Mi(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ni(){return navigator.maxTouchPoints||`ontouchstart`in this}function Pi(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Fi(){var e=ki,t=Ai,n=Pi,r=Mi,i=Ni,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jn,l=f(`start`,`zoom`,`end`),u,d,p,m=500,h=150,g=0,_=10;function v(e){e.property(`__zoom`,ji).on(`wheel.zoom`,ne,{passive:!1}).on(`mousedown.zoom`,re).on(`dblclick.zoom`,ie).filter(i).on(`touchstart.zoom`,ae).on(`touchmove.zoom`,oe).on(`touchend.zoom touchcancel.zoom`,se).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,ji),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):ee(e,t,n,r)},v.scaleBy=function(e,t,n,r){v.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},v.scaleTo=function(e,r,i,a){v.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?x(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(b(y(a,l),s,c),e,o)},i,a)},v.translateBy=function(e,r,i,a){v.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},v.translateTo=function(e,r,i,a,s){v.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?x(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ei.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function y(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function ee(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?x(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new te(e,t)}function te(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}te.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=E(this.that).datum();l.call(e,this.that,new Ti(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function ne(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=D(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],hr(this),s.start();$(t),s.wheel=setTimeout(d,h),s.zoom(`mouse`,n(b(y(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function re(t,...r){if(p||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=E(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,f,!0),c=D(t,i),l=t.clientX,u=t.clientY;qt(t.view),Oi(t),a.mouse=[c,this.__zoom.invert(c)],hr(this),a.start();function d(e){if($(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>g}a.event(e).zoom(`mouse`,n(b(a.that.__zoom,a.mouse[0]=D(e,i),a.mouse[1]),a.extent,o))}function f(e){s.on(`mousemove.zoom mouseup.zoom`,null),Jt(e.view,a.moved),$(e),a.event(e).end()}}function ie(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=D(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(b(y(a,u),c,l),t.apply(this,i),o);$(r),s>0?E(this).transition().duration(s).call(ee,d,c,r):E(this).call(v.transform,d,c,r)}}function ae(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Oi(t),s=0;s<i;++s)c=r[s],l=D(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},m)),hr(this),a.start())}}function oe(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for($(e),s=0;s<a;++s)c=i[s],l=D(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=y(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(b(c,l,u),r.extent,o))}}function se(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Oi(e),p&&clearTimeout(p),p=setTimeout(function(){p=null},m),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=D(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<_)){var s=E(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return v.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:wi(+e),v):r},v.filter=function(t){return arguments.length?(e=typeof t==`function`?t:wi(!!t),v):e},v.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:wi(!!e),v):i},v.extent=function(e){return arguments.length?(t=typeof e==`function`?e:wi([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):t},v.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],v):[a[0],a[1]]},v.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],v):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},v.constrain=function(e){return arguments.length?(n=e,v):n},v.duration=function(e){return arguments.length?(s=+e,v):s},v.interpolate=function(e){return arguments.length?(c=e,v):c},v.on=function(){var e=l.on.apply(l,arguments);return e===l?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(_=+e,v):_},v}export{D as C,s as D,o as E,u as O,Kt as S,f as T,qt as _,Pn as a,Wt as b,En as c,k as d,L as f,Xt as g,Yt as h,Jn as i,l as k,On as l,dn as m,Ei as n,V as o,F as p,Di as r,kn as s,Fi as t,Cn as u,Jt as v,E as w,Gt as x,O as y};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-CNFWdraO.js";import{At as t,Dt as n,Kr as r,Ot as i,Pt as a,Rt as o,jt as s,kt as c,mi as l}from"./ui-C9Xb3MyM.js";import{a as u,i as d,o as f,s as p}from"./mobx-CJZjTYng.js";import{t as m,y as ee}from"./aiPreviewModel-_yWo3ikG.js";var h=e(l(),1);function te(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function ne(e){return(0,h.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var re=0;function ie(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{t<n?i.push(e):r.push(e)});return{notifications:i,queue:r}}var g=te({notifications:[],queue:[],defaultPosition:`bottom-right`,limit:5}),ae=(e=g)=>ne(e);function _(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=re,re+=1);let i=ie(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function v(e,t=g){let n=e.id||r();return _(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function y(e,t=g){return _(t,t=>t.filter(t=>t.id!==e||(t.onClose?.(t),!1))),e}function b(e,t=g){return _(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function oe(e,t){return typeof e==`function`?e(t):e}function se(e,t){let n=t.getState();return[...n.notifications,...n.queue].some(t=>t.id===e.id)?b(e,t):v(e,t)}var ce=new WeakMap;function le(e,t,n=g){let i=t.id||r(),a=ce.get(n)||new Map,o={};ce.set(n,a),a.set(i,o),se({loading:!0,autoClose:!1,...t.loading,id:i},n);let s=e=>{a.get(i)===o&&(a.delete(i),se({...t.loading,loading:!1,autoClose:void 0,...e,id:i},n))};return e.then(e=>s({color:`teal`,...oe(t.success,e)}),e=>s({color:`red`,...oe(t.error,e)})),e}function ue(e=g){_(e,()=>[])}function de(e=g){let{defaultPosition:t,limit:n}=e.getState();_(e,e=>ie(e,t,n).notifications)}var fe={show:v,hide:y,update:b,promise:le,clean:ue,cleanQueue:de,updateState:_},pe=`BROWSER_ERROR`,me=`BROWSER_REJECTION`;function he(e){if(typeof window>`u`)return()=>{};let{syslog:t,msgid:n=pe,dedupeMs:r=1e3}=e,i=null,a=0,o=e=>{if(r<=0)return!1;let t=Date.now();return e===i&&t-a<r||(i=e,a=t,!1)},s=e=>{let r=e.filename===``?void 0:`${e.filename}:${e.lineno}:${e.colno}`,i=`error|${e.message}|${r??``}`;o(i)||t.log(e.error??e.message,`ERROR`,n,r??``)},c=e=>{let n=e.reason,r=`rejection|${n instanceof Error?n.message:String(n)}`;o(r)||t.log(n,`ERROR`,me,``)};return window.addEventListener(`error`,s),window.addEventListener(`unhandledrejection`,c),()=>{window.removeEventListener(`error`,s),window.removeEventListener(`unhandledrejection`,c)}}var x=class extends Error{status;body;constructor(e,t,n){super(n),this.status=e,this.body=t,this.name=`ApiError`}};function ge(e,t){if(e&&typeof e==`object`){let t=e,n=t.error??t;if(typeof n.message==`string`&&n.message)return n.message}return t}function _e(e){return e&&typeof e==`object`&&`result`in e?e.result:e}function ve(e){let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)}function ye(e,t){return`${e} ${ve(t)}`}function be(){let e=globalThis.crypto;return e&&typeof e.randomUUID==`function`?e.randomUUID():`idem-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}var xe=class{baseUrl;onUnauthorized;onError;socket;socketEnabled;socketBridgeDown=!1;httpOnlyRoutes=new Set;constructor(e={}){this.baseUrl=e.baseUrl??`/nodefony/studio/api`,this.onUnauthorized=e.onUnauthorized,this.onError=e.onError,this.socket=e.socket,this.socketEnabled=e.socketEnabled}async get(e,t){return this.request(`GET`,e,void 0,t)}async post(e,t,n){return this.request(`POST`,e,t,n)}async put(e,t,n){return this.request(`PUT`,e,t,n)}async delete(e,t){return this.request(`DELETE`,e,void 0,t)}async getAbsolute(e,t){return this.send(`GET`,e,void 0,t)}async postAbsolute(e,t,n){return this.send(`POST`,e,t,n)}async patchAbsolute(e,t,n){return this.send(`PATCH`,e,t,n)}async deleteAbsolute(e,t){return this.send(`DELETE`,e,void 0,t)}async request(e,t,n,r){let i=`${this.baseUrl}${t.startsWith(`/`)?t:`/`+t}`;return this.send(e,i,n,r)}canUseSocket(e,t,n){return(e===`GET`||e===`POST`||e===`PUT`||e===`PATCH`||e===`DELETE`)&&this.socket!==void 0&&!this.socketBridgeDown&&(this.socketEnabled?.()??!0)&&this.socket.state===`connected`&&t.startsWith(`/`)&&!n?.signal&&!n?.headers&&!this.httpOnlyRoutes.has(ye(e,t))}learnFromSocketError(e,t,n){let r=n;n&&typeof n==`object`&&r.name===`RpcError`&&(r.code===o.METHOD_NOT_FOUND?this.socketBridgeDown=!0:r.data?.status===405&&this.httpOnlyRoutes.add(ye(e,t)))}async send(e,t,n,r){let i=e!==`GET`&&e!==`HEAD`?be():void 0,a=this.canUseSocket(e,t,r)?this.socket:void 0;if(a)try{return _e(i===void 0?await a.request(t):await a.mutate(t,{method:e,body:n,idempotencyKey:i}))}catch(n){this.learnFromSocketError(e,t,n)}let o=new Headers(r?.headers);o.set(`Accept`,`application/json`),n!==void 0&&o.set(`Content-Type`,`application/json`),i&&o.set(`Idempotency-Key`,i);let s=await fetch(t,{...r,method:e,headers:o,body:n===void 0?null:JSON.stringify(n),credentials:`same-origin`}),c=t.includes(`/api/auth/`);s.status===401&&!c&&this.onUnauthorized?.();let l=(s.headers.get(`Content-Type`)??``).includes(`application/json`),u=l?await s.json():await s.text();if(!s.ok){let n=ge(u,`HTTP ${s.status}`);throw this.onError?.({method:e,status:s.status,message:n,body:u}),new x(s.status,u,`${e} ${t} → HTTP ${s.status}`)}return l?_e(u):u}};function S(e){let t=new Uint8Array(e),n=``;for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function C(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,`=`),i=atob(r),a=new ArrayBuffer(i.length),o=new Uint8Array(a);for(let e=0;e<i.length;e++)o[e]=i.charCodeAt(e);return a}function w(){return Se.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential==`function`)}var Se={stubThis:e=>e};function T(e){let{id:t}=e;return{...e,id:C(t),transports:e.transports,type:e.type}}function E(e){return e===`localhost`||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}var D=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=t}};function Ce({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new D({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){if(n.authenticatorSelection?.requireResidentKey===!0)return new D({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&n.authenticatorSelection?.userVerification===`required`)return new D({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(n.authenticatorSelection?.userVerification===`required`)return new D({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new D({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new D({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new D({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new D({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!E(t))return new D({message:`${globalThis.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new D({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new D({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new D({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}var O=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}},we=[`cross-platform`,`platform`];function k(e){if(e&&!(we.indexOf(e)<0))return e}async function Te(e){!e.optionsJSON&&e.challenge&&(console.warn(`startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:t,useAutoRegister:n=!1}=e;if(!w())throw Error(`WebAuthn is not supported in this browser`);let r={...t,challenge:C(t.challenge),user:{...t.user,id:C(t.user.id)},excludeCredentials:t.excludeCredentials?.map(T)},i={};n&&(i.mediation=`conditional`),i.publicKey=r,i.signal=O.createNewAbortSignal();let a;try{a=await navigator.credentials.create(i)}catch(e){throw Ce({error:e,options:i})}if(!a)throw Error(`Registration was not completed`);let{id:o,rawId:s,response:c,type:l}=a,u;typeof c.getTransports==`function`&&(u=c.getTransports());let d;if(typeof c.getPublicKeyAlgorithm==`function`)try{d=c.getPublicKeyAlgorithm()}catch(e){A(`getPublicKeyAlgorithm()`,e)}let f;if(typeof c.getPublicKey==`function`)try{let e=c.getPublicKey();e!==null&&(f=S(e))}catch(e){A(`getPublicKey()`,e)}let p;if(typeof c.getAuthenticatorData==`function`)try{p=S(c.getAuthenticatorData())}catch(e){A(`getAuthenticatorData()`,e)}return{id:o,rawId:S(s),response:{attestationObject:S(c.attestationObject),clientDataJSON:S(c.clientDataJSON),transports:u,publicKeyAlgorithm:d,publicKey:f,authenticatorData:p},type:l,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:k(a.authenticatorAttachment)}}function A(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.\n`,t)}function Ee(){if(!w())return j.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?j.stubThis(new Promise(e=>e(!1))):j.stubThis(e.isConditionalMediationAvailable())}var j={stubThis:e=>e};function De({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new D({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new D({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!E(t))return new D({message:`${globalThis.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new D({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new D({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}async function Oe(e){!e.optionsJSON&&e.challenge&&(console.warn(`startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:t,useBrowserAutofill:n=!1,verifyBrowserAutofillInput:r=!0}=e;if(!w())throw Error(`WebAuthn is not supported in this browser`);let i;t.allowCredentials?.length!==0&&(i=t.allowCredentials?.map(T));let a={...t,challenge:C(t.challenge),allowCredentials:i},o={};if(n){if(!await Ee())throw Error(`Browser does not support WebAuthn autofill`);if(document.querySelectorAll(`input[autocomplete$='webauthn']`).length<1&&r)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');o.mediation=`conditional`,a.allowCredentials=[]}o.publicKey=a,o.signal=O.createNewAbortSignal();let s;try{s=await navigator.credentials.get(o)}catch(e){throw De({error:e,options:o})}if(!s)throw Error(`Authentication was not completed`);let{id:c,rawId:l,response:u,type:d}=s,f;return u.userHandle&&(f=S(u.userHandle)),{id:c,rawId:S(l),response:{authenticatorData:S(u.authenticatorData),clientDataJSON:S(u.clientDataJSON),signature:S(u.signature),userHandle:f},type:d,clientExtensionResults:s.getClientExtensionResults(),authenticatorAttachment:k(s.authenticatorAttachment)}}var M=`/nodefony/security/api/webauthn`,ke=class{api;constructor(e){this.api=e}async registerPasskey(){let e=await Te({optionsJSON:await this.api.postAbsolute(`${M}/register/options`,{})}),{credentialId:t}=await this.api.postAbsolute(`${M}/register/verify`,{response:e});return t}async ping(){return this.api.get(`/health`)}};function N(e,t){return e?.includes(t)??!1}function P(e,t){if(e==null||t.length===0)return!1;for(let n of t)if(e.includes(n))return!0;return!1}var F=n(`outline`,`activity-heartbeat`,`ActivityHeartbeat`,[[`path`,{d:`M3 12h4.5l1.5 -6l4 12l2 -9l1.5 3h4.5`,key:`svg-0`}]]),I=`ROLE_DEV`,L=`ROLE_SUPERVISOR`,Ae=`ROLE_NODEFONY_ADMIN`;function R(e,t){return N(t,`ROLE_NODEFONY_ADMIN`)||!e||e.length===0?!0:P(t,e)}var z={devops:[I,L],dev:[I],ops:[L],admin:[Ae]},je=[{role:L,path:`/nodefony/supervision`,label:`Supervision`,description:`Santé applicative, charge, erreurs, alertes.`,icon:F}],Me=`nf.studio.lastUser`,Ne=`nf.studio.lastMethod`,B=`nf.studio.pendingMethod`;function V(e){try{localStorage.setItem(Me,e)}catch{}}function Pe(e){try{localStorage.setItem(Ne,e),localStorage.removeItem(B)}catch{}}function Fe(){try{return localStorage.getItem(`nf.studio.lastUser`)??``}catch{return``}}var Ie=`Passkey indisponible sur cette adresse. Ouvre Studio via https://localhost:5152 — les passkeys n'acceptent pas une IP comme 127.0.0.1.`;function Le(e){return typeof e==`object`&&!!e&&`challenge`in e&&typeof e.challenge==`string`}var Re={async sign(e){if(!Le(e))throw TypeError(`défi WebAuthn illisible`);try{return await Oe({optionsJSON:e})}catch(e){throw e instanceof Error&&e.name===`SecurityError`?Error(Ie,{cause:e}):e}}};function ze(e){let t=document.documentElement.getAttribute(`data-mantine-color-scheme`),n=t===`light`||t===`dark`?`${e.includes(`?`)?`&`:`?`}theme=${t}`:``;window.location.assign(`${e}${n}`)}function Be(e){let t=e.currentRole;return{id:e.id,identifier:e.identifier,roles:[...e.roles],...typeof e.email==`string`?{email:e.email}:{},...typeof t==`string`?{currentRole:t}:{}}}var Ve=class{auth;user=null;status=`idle`;flowState;formStep;flow;#e=null;constructor(e,t){this.auth=e,this.flow=t??new a({identifier:Fe(),passkey:Re,navigate:ze}),this.flowState=this.flow.getState(),this.formStep=this.flowState.step===`authenticated`?`identifier`:this.flowState.step,d(this,{flow:!1,flowState:u}),this.flow.subscribe(e=>this.applyFlow(e))}get isAuthenticated(){return this.status===`authenticated`&&!!this.user}get displayName(){return this.user?.identifier??`guest`}get roles(){return this.user?.roles??[]}get dashboards(){let e=this.roles;return je.filter(t=>N(e,t.role))}get mfaPending(){return this.flowState.step===`mfa`}get homePath(){return`/nodefony/workspace`}applyFlow(e){this.flowState=e,e.step===`authenticated`?e.user!==null&&(this.user=Be(e.user),this.status=`authenticated`):this.formStep=e.step}checkSession(){return this.#e===null&&(this.status=`loading`,this.#e=this.#t().finally(()=>{this.#e=null})),this.#e}async#t(){let e=await this.flow.me();if(e===null)p(()=>{this.user=null,this.status=`unauthenticated`});else{V(e.identifier);try{let e=localStorage.getItem(B);e&&Pe(e)}catch{}}}submitIdentifier(e){let t=e.trim();t!==``&&(V(t),this.flow.submitIdentifier(t))}changeAccount(){this.flow.back()}async submitPassword(e){let t=await this.flow.submitPassword(e);return this.rememberLogin(t,`password`),t}async completeMfa(e){let t=await this.flow.submitMfaCode(e);return this.rememberLogin(t,`password`),t}cancelMfa(){this.resumeForm()}async loginWithPasskey(){let e=await this.flow.loginWithPasskey();return this.rememberLogin(e,`passkey`),e}loadProviders(){this.flow.loadProviders()}startProvider(e){try{localStorage.setItem(B,e)}catch{}this.flow.startProvider(e,void 0,`/nodefony/login`)}registerPasskey(){return this.auth.registerPasskey()}async logout(){let e=await this.flow.logout();p(()=>{this.user=null,this.status=`unauthenticated`}),this.resumeForm(),e!==null&&/^https?:\/\//i.test(e)&&window.location.assign(e)}clearLocalSession(){p(()=>{this.user=null,this.status=`unauthenticated`}),this.resumeForm()}rememberLogin(e,t){e.step===`authenticated`&&e.user!==null&&(V(e.user.identifier),Pe(t))}resumeForm(){this.flow.back();let e=Fe();e!==``&&this.flow.submitIdentifier(e)}},He=class{client;state=`disconnected`;lastError=null;latencyMs=null;activeSubscriptions=new Map;connectedAt=null;everConnected=!1;reconnectAttempt=0;nextRetryAt=null;endpointUrl=``;framesReceived=0;lastFrameAt=null;lastFrameMethod=null;clientHandlers=new Map;constructor(e,t=``){this.client=e,this.endpointUrl=t,d(this,{},{autoBind:!0}),this.client.onState(e=>{p(()=>{this.state=e,e===`connected`?(this.lastError=null,this.connectedAt=Date.now(),this.everConnected=!0,this.reconnectAttempt=0,this.nextRetryAt=null):(e===`disconnected`||e===`error`)&&(this.connectedAt=null)})}),this.client.onStats(()=>this.syncStats()),this.client.onReconnect(e=>{p(()=>{this.reconnectAttempt=e.attempt,this.nextRetryAt=e.nextRetryAt})}),p(()=>{this.state=this.client.state,this.client.state===`connected`&&(this.connectedAt=Date.now(),this.everConnected=!0)}),this.syncStats()}get isDown(){return this.state===`reconnecting`||this.state===`error`||this.state===`disconnected`&&this.everConnected}retryNow(){this.client.retryNow()}syncStats(){p(()=>{this.framesReceived=this.client.framesReceived,this.lastFrameAt=this.client.lastFrameAt,this.lastFrameMethod=this.client.lastFrameMethod;let e=new Set(this.client.subscribedChannels);for(let t of e)this.activeSubscriptions.has(t)||this.activeSubscriptions.set(t,{channel:t,msgCount:0,lastMessage:null,subscribedAt:Date.now(),rate:0,series:[],protocol:`json-rpc-2.0`,transport:`ws`,kind:`channel`});for(let t of this.activeSubscriptions.keys())e.has(t)||this.activeSubscriptions.delete(t);for(let e of this.activeSubscriptions.values()){let t=this.client.getChannelStats(e.channel);t&&(e.msgCount=t.msgCount,e.lastMessage=t.lastMessage,e.rate=t.rate,e.series=t.series)}})}get isConnected(){return this.state===`connected`}get subscriptionCount(){return this.activeSubscriptions.size}get totalMessages(){let e=0;for(let t of this.activeSubscriptions.values())e+=t.msgCount;return e}reconnect(){this.client.connect().catch(()=>{})}async connect(e){if(this.state===`connected`||this.state===`connecting`)return;let t=performance.now();try{await Promise.race([this.client.connect(),new Promise((e,t)=>setTimeout(()=>t(Error(`Backend WS pas prêt (P13.4 RealtimeService)`)),3e3))]),p(()=>{this.latencyMs=Math.round(performance.now()-t)})}catch(e){p(()=>{this.lastError=e instanceof Error?e.message:String(e),this.latencyMs=null})}}disconnect(){this.client.disconnect(),p(()=>{this.activeSubscriptions.clear()}),this.clientHandlers.clear()}subscribe(e,t,n={}){if(this.clientHandlers.has(e))return console.warn(`[Connection] already subscribed to ${e}`),()=>this.unsubscribe(e);let r={channel:e,msgCount:0,lastMessage:null,subscribedAt:Date.now(),rate:0,series:[],protocol:n.protocol??`json-rpc-2.0`,transport:n.transport??`ws`,kind:n.kind??`channel`,peer:n.peer},i=(...e)=>{t(...e)},a=this.client.on(e,i);return p(()=>{this.activeSubscriptions.set(e,r)}),this.clientHandlers.set(e,{dispose:a,wrapped:i}),this.client.subscribe(e),()=>this.unsubscribe(e)}unsubscribe(e){this.clientHandlers.get(e)?.dispose(),this.clientHandlers.delete(e),p(()=>{this.activeSubscriptions.delete(e)}),this.client.unsubscribe(e)}simulateMessage(e,t){this.clientHandlers.get(e)?.wrapped(t)}},Ue=`nodefony.studio.theme`,We=`nodefony.studio.sidebar.rail`,Ge=`nodefony.studio.sidebar.groups.v3`,Ke=`nodefony.studio.sidebar.pinned`,qe=`nf.debugbar.visible`,Je=`nf.realtime.adaptive`,Ye=`nf.realtime.live`,Xe=`nf.api.socket`,Ze=class{theme=`dark`;rail=!1;collapsedGroups={};pinned=[];navQuery=``;debugBar=!0;adaptiveCadence=!1;realtimeLive=!1;apiViaSocket=!0;constructor(){d(this),this.loadPrefs()}setRealtimeLive(e){this.realtimeLive=e;try{localStorage.setItem(Ye,e?`1`:`0`)}catch{}}toggleRealtimeLive(){this.setRealtimeLive(!this.realtimeLive)}setDebugBar(e){this.debugBar=e,this.applyDebugBar()}toggleDebugBar(){this.setDebugBar(!this.debugBar)}applyDebugBar(){try{localStorage.setItem(qe,this.debugBar?`1`:`0`)}catch{}window.__NODEFONY_DEBUGBAR__?.setVisible(this.debugBar)}setTheme(e){this.theme=e,this.persist()}toggleTheme(){this.theme=this.theme===`dark`?`light`:`dark`,this.persist()}toggleRail(){this.rail=!this.rail,this.persist()}isGroupCollapsed(e,t=!1){let n=this.collapsedGroups[e];return typeof n==`boolean`?n:t}toggleGroup(e,t=!1){this.collapsedGroups[e]=!this.isGroupCollapsed(e,t),this.persist()}isPinned(e){return this.pinned.includes(e)}togglePin(e){this.pinned=this.isPinned(e)?this.pinned.filter(t=>t!==e):[...this.pinned,e],this.persist()}setNavQuery(e){this.navQuery=e}setAdaptiveCadence(e){this.adaptiveCadence=e,this.persist()}toggleAdaptiveCadence(){this.setAdaptiveCadence(!this.adaptiveCadence)}setApiViaSocket(e){this.apiViaSocket=e;try{localStorage.setItem(Xe,e?`1`:`0`)}catch{}}toggleApiViaSocket(){this.setApiViaSocket(!this.apiViaSocket)}loadPrefs(){try{if(typeof localStorage>`u`)return;let e=localStorage.getItem(Ue);(e===`light`||e===`dark`||e===`auto`)&&(this.theme=e),this.rail=localStorage.getItem(We)===`1`,this.debugBar=localStorage.getItem(qe)!==`0`,this.adaptiveCadence=localStorage.getItem(Je)===`1`,this.realtimeLive=localStorage.getItem(Ye)===`1`,this.apiViaSocket=localStorage.getItem(Xe)!==`0`;let t=localStorage.getItem(Ge);if(t){let e=JSON.parse(t);e&&typeof e==`object`&&(this.collapsedGroups=e)}let n=localStorage.getItem(Ke);if(n){let e=JSON.parse(n);Array.isArray(e)&&(this.pinned=e.filter(e=>typeof e==`string`))}}catch{}}persist(){try{if(typeof localStorage>`u`)return;localStorage.setItem(Ue,this.theme),localStorage.setItem(We,this.rail?`1`:`0`),localStorage.setItem(Je,this.adaptiveCadence?`1`:`0`),localStorage.setItem(Ge,JSON.stringify(this.collapsedGroups)),localStorage.setItem(Ke,JSON.stringify(this.pinned))}catch{}}},Qe=450,$e=28,et=class{client;messages=[];currentResponse=``;currentSteps=[];isStreaming=!1;error=null;agentName=m[0].name;abortRequested=!1;constructor(e){this.client=e,d(this,{client:!1,abortRequested:!1})}clear(){this.isStreaming||(this.messages=[],this.currentResponse=``,this.currentSteps=[],this.error=null)}get agent(){return m.find(e=>e.name===this.agentName)??m[0]}setAgent(e){this.isStreaming||(this.agentName=e)}abort(){this.isStreaming&&(this.abortRequested=!0)}async send(e){if(e.trim()&&!this.isStreaming){p(()=>{this.messages.push({id:`u-${Date.now()}`,role:`user`,content:e,ts:Date.now()}),this.isStreaming=!0,this.currentResponse=``,this.currentSteps=[],this.error=null,this.abortRequested=!1});try{let t=this.agent,n=ee(e,t);for(let e of n.steps){if(this.abortRequested)break;await tt(Qe),p(()=>this.currentSteps.push(e))}let r=n.answer.split(` `);for(let e=0;e<r.length&&!this.abortRequested;e++)await tt($e),p(()=>{this.currentResponse+=(e===0?``:` `)+r[e]});p(()=>{let e=this.abortRequested;this.messages.push({id:`a-${Date.now()}`,role:`assistant`,content:this.currentResponse,ts:Date.now(),steps:[...this.currentSteps],agent:t.name,...e?{aborted:!0}:{citations:n.citations,usage:n.usage}}),this.currentResponse=``,this.currentSteps=[],this.isStreaming=!1,this.abortRequested=!1})}catch(e){p(()=>{this.error=e instanceof Error?e.message:String(e),this.isStreaming=!1})}}}};function tt(e){return new Promise(t=>setTimeout(t,e))}var nt=`/nodefony/framework/api/admin`,rt=class{api;producers=[];loading=!1;error=null;env=null;invocations=new Map;constructor(e){this.api=e,d(this,{},{autoBind:!0})}frameworkRepository=null;get isProd(){return this.env===`production`}async loadInfo(){try{let e=await this.api.get(`/info`);p(()=>{this.env=typeof e.env==`string`?e.env:null,this.frameworkRepository=e.frameworkRepository===!0})}catch{p(()=>{this.frameworkRepository=!1})}}async loadCatalog(){this.loading=!0,this.error=null;try{let e=await this.api.getAbsolute(nt);p(()=>{this.producers=e.producers??[],this.loading=!1})}catch(e){p(()=>{this.error=e instanceof Error?e.message:String(e),this.loading=!1})}}async invoke(e){this.invocations.set(e,{loading:!0});try{let t=await this.api.getAbsolute(e);p(()=>{this.invocations.set(e,{loading:!1,data:t,at:Date.now()})})}catch(t){p(()=>{this.invocations.set(e,{loading:!1,error:t instanceof Error?t.message:String(t),at:Date.now()})})}}reset(){this.producers=[],this.invocations.clear(),this.error=null,this.loading=!1}get endpointCount(){return this.producers.reduce((e,t)=>e+t.endpoints.length,0)}pageCapabilities(e,t=`GET`){for(let n of this.producers)for(let r of n.endpoints)if(r.path===e&&r.method===t)return r.page??null;return null}},H=`/nodefony/profiler/api`,it=class{api;recent=[];count=0;loading=!1;error=null;unavailable=!1;selectedId=null;detail=null;detailLoading=!1;detailError=null;autoRefresh=!1;timer=null;constructor(e){this.api=e,d(this,{},{autoBind:!0})}async loadRecent(){this.loading=!0,this.error=null,this.unavailable=!1;try{let e=await this.api.getAbsolute(`${H}/recent`);p(()=>{this.recent=e.entries??[],this.count=e.count??this.recent.length,this.loading=!1})}catch(e){p(()=>{e instanceof x&&e.status===404?this.unavailable=!0:this.error=e instanceof Error?e.message:String(e),this.loading=!1})}}async select(e){this.selectedId=e,this.detail=null,this.detailLoading=!0,this.detailError=null;try{let t=await this.api.getAbsolute(`${H}/${encodeURIComponent(e)}`);p(()=>{this.selectedId===e&&(this.detail=t,this.detailLoading=!1)})}catch(t){p(()=>{this.selectedId===e&&(this.detailError=t instanceof Error?t.message:String(t),this.detailLoading=!1)})}}async clear(){try{await this.api.deleteAbsolute(`${H}/recent`)}catch{}p(()=>{this.recent=[],this.count=0,this.selectedId=null,this.detail=null})}setAutoRefresh(e){this.autoRefresh=e,this.timer&&=(clearInterval(this.timer),null),e&&(this.timer=setInterval(()=>void this.loadRecent(),3e3))}dispose(){this.timer&&clearInterval(this.timer),this.timer=null,this.autoRefresh=!1}},at=50,ot={success:`teal`,info:`blue`,warning:`yellow`,error:`red`},st={success:3e3,info:4e3,warning:6e3,error:1e4},ct=class{recent=[];constructor(e){d(this,{},{autoBind:!0}),e.onNotice(e=>this.push(e))}push(e){this.recent.push(e),this.recent.length>at&&this.recent.splice(0,this.recent.length-at),e.source!==`realtime`&&fe.show({color:ot[e.level],title:e.title,message:e.message,autoClose:st[e.level],withBorder:!0})}notify(e,t,n={}){this.push({level:e,message:t,title:n.title,source:n.source??`api`,code:n.code,ts:Date.now()})}get realtimeIncidents(){return this.recent.filter(e=>e.source===`realtime`||e.source===`server`).slice().reverse()}clear(){this.recent=[]}},lt=1/48,ut=1/6,dt=.008,ft={runtime:`Runtime & lancement`,system:`Système & santé`,logs:`Logs`,orm:`Données / ORM`,realtime:`Temps réel`,cluster:`Cluster`,security:`Sécurité`,account:`Mon compte`,ai:`IA`},U=[{id:`account`,label:`Mon compte`,items:[{widgetId:`account.profile`,span:6,h:4},{widgetId:`account.apikeys`,span:6,h:3},{widgetId:`account.sessions`,span:6,h:3}]},{id:`dev`,label:`Développeur`,roles:z.dev,items:[{widgetId:`runtime.mode`,span:6,h:4},{widgetId:`system.info`,span:6,h:4},{widgetId:`system.git`,span:4,h:3},{widgetId:`system.uptime`,span:4,h:3},{widgetId:`system.cpu`,span:4,h:4},{widgetId:`system.heap`,span:4,h:4},{widgetId:`system.eventloop`,span:4,h:4},{widgetId:`orm.health`,span:6,h:4},{widgetId:`logs.live`,span:6,h:5}]},{id:`admin`,label:`Admin`,roles:z.admin,items:[{widgetId:`runtime.mode`,span:6,h:4},{widgetId:`runtime.modes`,span:6,h:4},{widgetId:`system.health`,span:6,h:3},{widgetId:`orm.health`,span:6,h:4},{widgetId:`realtime.hub`,span:6,h:4},{widgetId:`realtime.channels`,span:6,h:4}]},{id:`supervision`,label:`Supervision`,roles:z.ops,items:[],layout:[{widgetId:`supervision.health`,x:0,y:0,w:1,h:216,z:10},{widgetId:`runtime.mode`,x:0,y:228,w:.2917,h:208,z:2},{widgetId:`system.eventloop`,x:.2997,y:228,w:.2083,h:208,z:3},{widgetId:`system.cpu`,x:.516,y:228,w:.2292,h:208,z:4},{widgetId:`system.heap`,x:.7532,y:228,w:.2292,h:208,z:5},{widgetId:`supervision.correlation`,x:0,y:448,w:1,h:312,z:9},{widgetId:`orm.flow`,x:0,y:772,w:1,h:320,z:7},{widgetId:`supervision.gc`,x:0,y:1104,w:1,h:384,z:8}]},{id:`systeme`,label:`Système`,roles:z.devops,items:[{widgetId:`supervision.health`,span:12,h:6},{widgetId:`system.cpu`,span:4,h:4},{widgetId:`system.heap`,span:4,h:4},{widgetId:`system.eventloop`,span:4,h:4},{widgetId:`supervision.correlation`,span:6,h:5},{widgetId:`supervision.gc`,span:6,h:6},{widgetId:`system.info`,span:6,h:4},{widgetId:`runtime.mode`,span:6,h:4}]},{id:`config`,label:`Configuration`,roles:z.dev,items:[{widgetId:`runtime.mode`,span:6,h:4},{widgetId:`runtime.modes`,span:6,h:4},{widgetId:`runtime.vite`,span:4,h:4},{widgetId:`system.info`,span:8,h:4},{widgetId:`system.git`,span:6,h:3},{widgetId:`system.uptime`,span:6,h:3}]},{id:`logs`,label:`Logs`,roles:z.devops,items:[{widgetId:`logs.live`,span:12,h:7},{widgetId:`logs.backplane`,span:12,h:5},{widgetId:`supervision.alerts`,span:6,h:4},{widgetId:`realtime.channels`,span:6,h:4}]},{id:`memoire`,label:`Mémoire`,roles:z.devops,items:[{widgetId:`supervision.memory`,span:8,h:6},{widgetId:`supervision.handles`,span:4,h:6},{widgetId:`supervision.gc`,span:12,h:6},{widgetId:`system.heap`,span:6,h:4},{widgetId:`supervision.correlation`,span:6,h:5}]},{id:`erreurs`,label:`Erreurs`,roles:z.devops,items:[{widgetId:`supervision.errors`,span:6,h:5},{widgetId:`supervision.alerts`,span:6,h:5},{widgetId:`logs.live`,span:12,h:7}]},{id:`blank`,label:`Vierge`,items:[]}];function pt(e){return U.find(t=>t.id===e)?.roles}function mt(e,t){return R(pt(e),t)}var ht=`account`,W=new Map,gt={runtime:z.devops,system:z.devops,realtime:z.devops,logs:z.devops,cluster:z.ops,orm:z.dev,ai:z.dev,security:z.admin};function _t(e){W.set(e.id,e)}function vt(e){return W.get(e)}function yt(e=[]){let t=[];for(let n of W.values())R(n.roles??gt[n.category],e)&&t.push(n);return t.sort((e,t)=>e.title.localeCompare(t.title))}function G(e,t){return t<=0?e:Math.round(e/t)*t}function K(e,t,n){return Math.max(t,Math.min(n,e))}function bt(e){let t=[],n=0,r=0,i=0;for(let a of e){let e=K(a.w,.05,1);n>0&&n+e>1+1e-6&&(n=0,r+=i+12,i=0),t.push({id:a.id,x:n,y:r,w:e,h:a.h}),n+=e+dt,i=Math.max(i,a.h)}return t}var q=`nf.workspace.layouts.v3`,J=`nf.workspace.active.v3`;function Y(e){return K(Number.isFinite(e)?e:.33,ut,1)}function X(e){return Math.max(96,Number.isFinite(e)?Math.round(e):192)}function Z(e){if(e.layout?.length)return{id:e.id,label:e.label,items:e.layout.map(xt)};let t=bt(e.items.map(e=>({id:e.widgetId,w:Y((e.span??4)/12),h:X((e.h??3)*64)})));return{id:e.id,label:e.label,items:t.map((e,t)=>({widgetId:e.id,x:e.x,y:e.y,w:e.w,h:e.h,z:t+1}))}}function xt(e){return{widgetId:e.widgetId,x:K(e.x,0,1),y:Math.max(0,Math.round(e.y)),w:Y(e.w),h:X(e.h),z:e.z}}function St(e){let t=e;return!!t&&typeof t.widgetId==`string`&&typeof t.x==`number`&&typeof t.y==`number`&&typeof t.w==`number`&&typeof t.h==`number`&&typeof t.z==`number`}var Ct=class{layouts={};activeId=ht;constructor(){d(this),this.load()}get active(){return this.layouts[this.activeId]??this.layouts.blank??{id:`blank`,label:`Vierge`,items:[]}}get layoutList(){return Object.values(this.layouts).filter(e=>e!==void 0)}setActive(e){this.layouts[e]&&(this.activeId=e,this.persist())}hasWidget(e){return this.active.items.some(t=>t.widgetId===e)}topZ(e){return e.reduce((e,t)=>Math.max(e,t.z),0)}addWidget(e){let t=vt(e),n=this.layouts[this.activeId];if(!t||!n||n.items.some(t=>t.widgetId===e))return;let r=Y(t.defaultSpan/12),i=X((t.defaultH??3)*64),a=n.items.reduce((e,t)=>Math.max(e,t.y+t.h),0);n.items.push({widgetId:e,x:0,y:n.items.length?a+8:0,w:r,h:i,z:this.topZ(n.items)+1}),this.persist()}removeWidget(e){let t=this.layouts[this.activeId];t&&(t.items=t.items.filter(t=>t.widgetId!==e),this.persist())}moveTo(e,t,n){let r=this.layouts[this.activeId]?.items.find(t=>t.widgetId===e);r&&(r.x=K(G(t,lt),0,1-r.w),r.y=Math.max(0,G(n,8)),this.persist())}setSize(e,t,n){let r=this.layouts[this.activeId]?.items.find(t=>t.widgetId===e);r&&(r.w=Y(G(t,lt)),r.h=X(G(n,8)),r.x=Math.min(r.x,1-r.w),this.persist())}bringToFront(e){let t=this.layouts[this.activeId]?.items,n=t?.find(t=>t.widgetId===e);if(!t||!n)return;let r=this.topZ(t);n.z!==r&&(n.z=r+1,this.persist())}tidy(){let e=this.layouts[this.activeId];if(!e?.items.length)return;let t=[...e.items].sort((e,t)=>e.y-t.y||e.x-t.x),n=t.map(e=>({id:e.widgetId,w:e.w,h:e.h})),r=new Map(bt(n).map(e=>[e.id,e]));t.forEach((e,t)=>{let n=r.get(e.widgetId);n&&(e.x=n.x,e.y=n.y,e.z=t+1)}),this.persist()}resetToPreset(){let e=U.find(e=>e.id===this.activeId);e&&(this.layouts[this.activeId]=Z(e),this.persist())}get templates(){return U.map(e=>({id:e.id,label:e.label}))}uniqueId(){let e=`ws_${Date.now().toString(36)}`;for(;this.layouts[e];)e+=`x`;return e}uniqueLabel(e){let t=new Set(this.layoutList.map(e=>e.label));if(!t.has(e))return e;let n=2;for(;t.has(`${e} ${n}`);)n++;return`${e} ${n}`}createWorkspace(e){let t=e?U.find(t=>t.id===e):null,n=this.uniqueId(),r=this.uniqueLabel(t?.label??`Bureau`),i=t?Z(t).items:[];return this.layouts[n]={id:n,label:r,items:i},this.activeId=n,this.persist(),n}renameWorkspace(e,t){let n=this.layouts[e],r=t.trim();n&&r&&(n.label=r,this.persist())}deleteWorkspace(e){if(Object.keys(this.layouts).length<=1||!this.layouts[e])return;delete this.layouts[e];let[t]=Object.keys(this.layouts);this.activeId===e&&t!==void 0&&(this.activeId=t),this.persist()}moveWorkspace(e,t){if(!this.layouts[e]||e===t)return;let n=Object.keys(this.layouts).filter(t=>t!==e),r=t?n.indexOf(t):-1;if(t&&r<0)return;n.splice(r<0?n.length:r,0,e);let i={};for(let e of n)i[e]=this.layouts[e];this.layouts=i,this.persist()}duplicateWorkspace(e){let t=this.layouts[e];if(!t)return;let n=this.uniqueId();this.layouts[n]={id:n,label:this.uniqueLabel(`${t.label} (copie)`),items:t.items.map(e=>({...e}))},this.activeId=n,this.persist()}resetForIdentity(){try{typeof localStorage<`u`&&(localStorage.removeItem(q),localStorage.removeItem(J))}catch{}this.activeId=ht,this.load()}load(){try{if(typeof localStorage<`u`){let e=localStorage.getItem(q);if(e){let t=JSON.parse(e);if(t&&typeof t==`object`){let e={};for(let[n,r]of Object.entries(t))r&&Array.isArray(r.items)&&(e[n]={id:n,label:r.label??n,items:r.items.filter(St).map(xt)});let[n]=Object.keys(e);if(n!==void 0){this.layouts=e;let t=localStorage.getItem(J);this.activeId=t&&e[t]?t:n;return}}}}}catch{}let e={};for(let t of U)e[t.id]=Z(t);this.layouts=e,e[this.activeId]||(this.activeId=Object.keys(e)[0]??`account`)}persist(){try{if(typeof localStorage>`u`)return;localStorage.setItem(q,JSON.stringify(this.layouts)),localStorage.setItem(J,this.activeId)}catch{}}};function wt(){return typeof window>`u`?`ws://127.0.0.1/nodefony/studio/api/realtime`:`${window.location.protocol===`https:`?`wss`:`ws`}://${window.location.host}/nodefony/studio/api/realtime`}var Tt=class{ui;auth;connection;chat;admin;profiler;notifications;workspace;api;kernel;realtime;browserLog;constructor(){this.ui=new Ze,this.workspace=new Ct,this.kernel=new t({name:`STUDIO`,connectOnBoot:!1,realtime:{url:wt(),autoReconnect:!0,reconnectDelay:800,reconnectDelayMax:4e3}});let e=this.kernel.get(`realtime`);if(!e)throw Error(`RootStore : le noyau client n'a pas composé de socket temps réel.`);this.realtime=e,this.browserLog=new s({moduleName:`studio`}),c(),he({syslog:this.browserLog}),i({syslog:this.browserLog,publisher:this.realtime}),this.notifications=new ct(this.realtime),this.api=new xe({socket:this.realtime,socketEnabled:()=>this.ui.apiViaSocket,onUnauthorized:()=>{this.auth.clearLocalSession()},onError:({method:e,status:t,message:n})=>{t!==401&&e!==`GET`&&this.notifications.notify(`error`,n,{title:`Erreur ${t}`,source:`api`,code:t})}});let n=new ke(this.api);this.auth=new Ve(n),this.connection=new He(this.realtime,wt()),this.chat=new et(this.realtime),this.admin=new rt(this.api),this.profiler=new it(this.api),f(()=>this.auth.user?.id??null,e=>{this.kernel.setIdentity(e===null?null:{key:String(e)})}),this.kernel.on(`onIdentityChange`,(...e)=>{let[,t]=e;if(this.admin.reset(),t!==null){this.workspace.resetForIdentity();try{if(typeof localStorage<`u`){let e=[];for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n&&(n.startsWith(`studio.`)||n.startsWith(`nf.datagrid:`))&&e.push(n)}for(let t of e)localStorage.removeItem(t)}}catch{}}}),this.kernel.boot()}},Et=`__nfStudioStoreContext__`,Dt=globalThis,Q=Dt[Et]??(Dt[Et]=(0,h.createContext)(null)),Ot=Q.Provider;function $(){let e=(0,h.useContext)(Q);if(!e)throw Error(`useStore() called outside <StoreProvider>. Wrap your tree with StoreProvider.`);return e}var kt=()=>$().auth,At=()=>$().ui,jt=()=>$().connection,Mt=()=>$().chat,Nt=()=>$().admin,Pt=()=>$().profiler,Ft=()=>$().notifications,It=()=>$().workspace;export{fe as A,z as C,N as D,P as E,ae as M,x as O,L as S,F as T,ut as _,jt as a,I as b,$ as c,Tt as d,K as f,mt as g,_t as h,Mt as i,g as j,y as k,At as l,yt as m,Nt as n,Ft as o,vt as p,kt as r,Pt as s,Ot as t,It as u,ft as v,R as w,Ae as x,Ne as y};