@runfusion/fusion 0.51.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/dist/bin.js +9816 -4572
  2. package/dist/client/.vite/manifest.json +326 -326
  3. package/dist/client/assets/AgentDetailView-CHSaiBNh.js +18 -0
  4. package/dist/client/assets/AgentPermissionPolicyEditor-Bfy55DIO.js +6 -0
  5. package/dist/client/assets/AgentPermissionPolicyEditor-TpdlOWZW.css +1 -0
  6. package/dist/client/assets/{AgentsView-CTjNaKu-.js → AgentsView-CMB_7xly.js} +6 -11
  7. package/dist/client/assets/ChatView-D_2wBIIx.css +1 -0
  8. package/dist/client/assets/ChatView-IwWaNSeS.js +6 -0
  9. package/dist/client/assets/CommandCenter-B84TXfg6.js +71 -0
  10. package/dist/client/assets/{DevServerView-BE_o7v9j.js → DevServerView-B9QEJETp.js} +1 -1
  11. package/dist/client/assets/{DirectoryPicker-BpcPo65A.js → DirectoryPicker-BnaH1pb_.js} +1 -1
  12. package/dist/client/assets/DocumentsView-Cvm4OBRl.js +1 -0
  13. package/dist/client/assets/EvalsView-BpgA1nvW.js +1 -0
  14. package/dist/client/assets/ExperimentalAgentOnboardingModal-D4Z1IAW2.js +1 -0
  15. package/dist/client/assets/GoalsView-ui2CM549.js +2 -0
  16. package/dist/client/assets/InsightsView-qdJ5GhE_.js +11 -0
  17. package/dist/client/assets/MemoryView-Csc-90G0.js +2 -0
  18. package/dist/client/assets/PiExtensionsManager-Dbm3IpQW.js +11 -0
  19. package/dist/client/assets/PluginManager-B_zgRoI8.js +1 -0
  20. package/dist/client/assets/{PullRequestView-B7k8ogy4.js → PullRequestView-CB6L4vJw.js} +1 -1
  21. package/dist/client/assets/ResearchView-CRtoNtCn.js +1 -0
  22. package/dist/client/assets/SecretsView-JB0lfuzZ.js +1 -0
  23. package/dist/client/assets/SessionTerminal-CnxWsHxS.js +2 -0
  24. package/dist/client/assets/{SettingsModal-DAH7LuLw.js → SettingsModal-CS1-kUSO.js} +1 -1
  25. package/dist/client/assets/SettingsModal-CaE4JYxi.css +1 -0
  26. package/dist/client/assets/SettingsModal-D7ArHi7z.js +21 -0
  27. package/dist/client/assets/{SetupWizardModal-Bm6bG31V.js → SetupWizardModal-PYaS5VB9.js} +2 -2
  28. package/dist/client/assets/ShadcnColorPicker-3OgfenMo.css +1 -0
  29. package/dist/client/assets/ShadcnColorPicker-Tl1Xu-G4.js +11 -0
  30. package/dist/client/assets/{SkillsView-D_UEJY_f.js → SkillsView-CWVVQ3y_.js} +1 -1
  31. package/dist/client/assets/TodoView-CCloQhKG.js +6 -0
  32. package/dist/client/assets/WorkflowNodeEditor-Df-_206_.css +1 -0
  33. package/dist/client/assets/WorkflowNodeEditor-Dz8TU3is.js +8 -0
  34. package/dist/client/assets/{agentSkills-BiipFw1z.js → agentSkills-CFiw3LtX.js} +1 -1
  35. package/dist/client/assets/app-5S4z84u5.js +13 -0
  36. package/dist/client/assets/app-B1VYocx2.js +13 -0
  37. package/dist/client/assets/app-BhtYYxin.js +13 -0
  38. package/dist/client/assets/app-Cts0__Vx.js +13 -0
  39. package/dist/client/assets/app-DczBmsP4.js +13 -0
  40. package/dist/client/assets/app-_GFUqcMK.js +13 -0
  41. package/dist/client/assets/{architectureDiagram-3BPJPVTR-glwWkaDt.js → architectureDiagram-3BPJPVTR-DGp4hfr1.js} +1 -1
  42. package/dist/client/assets/blockDiagram-GPEHLZMM-CRyxRdCJ.js +132 -0
  43. package/dist/client/assets/{c4Diagram-AAUBKEIU-CQXf6PzI.js → c4Diagram-AAUBKEIU-CFjMzS7o.js} +1 -1
  44. package/dist/client/assets/channel-C9LQN4ee.js +1 -0
  45. package/dist/client/assets/{chunk-2J33WTMH-kak65s83.js → chunk-2J33WTMH-BMvR_yYt.js} +1 -1
  46. package/dist/client/assets/{chunk-4BX2VUAB-B_yEpoxU.js → chunk-4BX2VUAB-BUPHOpQy.js} +1 -1
  47. package/dist/client/assets/chunk-55IACEB6-C1paNu5q.js +1 -0
  48. package/dist/client/assets/chunk-727SXJPM-CG4hnjZD.js +206 -0
  49. package/dist/client/assets/{chunk-AQP2D5EJ-DBHuj4BH.js → chunk-AQP2D5EJ-Dm2nZ5Sz.js} +1 -1
  50. package/dist/client/assets/{chunk-FMBD7UC4-BJ3ghjau.js → chunk-FMBD7UC4-CY6d36wo.js} +1 -1
  51. package/dist/client/assets/chunk-ND2GUHAM-cbKdnrGz.js +1 -0
  52. package/dist/client/assets/{chunk-QZHKN3VN-DmVw_cEu.js → chunk-QZHKN3VN-BPenWytO.js} +1 -1
  53. package/dist/client/assets/classDiagram-4FO5ZUOK-C5TeEr7c.js +1 -0
  54. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-C5TeEr7c.js +1 -0
  55. package/dist/client/assets/cose-bilkent-S5V4N54A-BCFGTolm.js +1 -0
  56. package/dist/client/assets/dagre-BM42HDAG-yVhB-t2h.js +4 -0
  57. package/dist/client/assets/dashboard-view-C9dPtr0u.js +1 -0
  58. package/dist/client/assets/{dashboard-view-r4NTTh_X.js → dashboard-view-DHb5D1Hc.js} +218 -218
  59. package/dist/client/assets/diagram-2AECGRRQ-DtV2x39G.js +43 -0
  60. package/dist/client/assets/diagram-5GNKFQAL-DwwRRghJ.js +10 -0
  61. package/dist/client/assets/{diagram-KO2AKTUF-D7zY4Nlm.js → diagram-KO2AKTUF-JLrDx8k8.js} +1 -1
  62. package/dist/client/assets/diagram-LMA3HP47-C_AszN6R.js +24 -0
  63. package/dist/client/assets/diagram-OG6HWLK6-C-n05SOC.js +24 -0
  64. package/dist/client/assets/{erDiagram-TEJ5UH35-DfHtnaNg.js → erDiagram-TEJ5UH35-B-9edACX.js} +1 -1
  65. package/dist/client/assets/{flowDiagram-I6XJVG4X-Brbb_Jlh.js → flowDiagram-I6XJVG4X-D5ThlzTR.js} +1 -1
  66. package/dist/client/assets/{folder-open-BLwukrE0.js → folder-open-DLACu19m.js} +1 -1
  67. package/dist/client/assets/ganttDiagram-6RSMTGT7-DaqvxM8Q.js +292 -0
  68. package/dist/client/assets/gitGraphDiagram-PVQCEYII-CfWhxq7Y.js +106 -0
  69. package/dist/client/assets/index-D1IHwGhg.css +1 -0
  70. package/dist/client/assets/index-JlBzf2ck.js +1336 -0
  71. package/dist/client/assets/infoDiagram-5YYISTIA-BjDZFy9D.js +2 -0
  72. package/dist/client/assets/ishikawaDiagram-YF4QCWOH-BoMTizU1.js +70 -0
  73. package/dist/client/assets/journeyDiagram-JHISSGLW-BozwtvCa.js +139 -0
  74. package/dist/client/assets/kanban-definition-UN3LZRKU-CvrpmIXn.js +89 -0
  75. package/dist/client/assets/linear-CwI45w2t.js +1 -0
  76. package/dist/client/assets/{mermaid.core-0hUjZF5S.js → mermaid.core-KeGuTimD.js} +4 -4
  77. package/dist/client/assets/mindmap-definition-RKZ34NQL-DMjY04EF.js +96 -0
  78. package/dist/client/assets/pieDiagram-4H26LBE5-r_9L-pQr.js +30 -0
  79. package/dist/client/assets/quadrantDiagram-W4KKPZXB-CcZKANsw.js +7 -0
  80. package/dist/client/assets/requirementDiagram-4Y6WPE33-kqu_zuS5.js +84 -0
  81. package/dist/client/assets/{sankeyDiagram-5OEKKPKP-Btl4NRo-.js → sankeyDiagram-5OEKKPKP-BLbamdKk.js} +1 -1
  82. package/dist/client/assets/sequenceDiagram-3UESZ5HK-DAKxqBlR.js +162 -0
  83. package/dist/client/assets/{shield-alert-yWvC7t2v.js → shield-alert-BdoEg9Yo.js} +1 -1
  84. package/dist/client/assets/stateDiagram-AJRCARHV-RJ2xY2-p.js +1 -0
  85. package/dist/client/assets/{stateDiagram-v2-BHNVJYJU-DYJRRNh-.js → stateDiagram-v2-BHNVJYJU-BzhgwjfG.js} +1 -1
  86. package/dist/client/assets/time-Ckmi30gH.js +1 -0
  87. package/dist/client/assets/{timeline-definition-PNZ67QCA-DZga7lqO.js → timeline-definition-PNZ67QCA-CT9ZQc6n.js} +1 -1
  88. package/dist/client/assets/{upload-BsYRkl_8.js → upload-B4v89B2G.js} +1 -1
  89. package/dist/client/assets/{users-dyoJEvrM.js → users-vuVXnTg0.js} +1 -1
  90. package/dist/client/assets/vendor-reactflow-CnI7NMXG.js +15 -0
  91. package/dist/client/assets/{vennDiagram-CIIHVFJN-C2P26V71.js → vennDiagram-CIIHVFJN-DCcEEtaE.js} +1 -1
  92. package/dist/client/assets/{wardley-L42UT6IY-ckctH9bL.js → wardley-L42UT6IY-_KOTjC_D.js} +1 -1
  93. package/dist/client/assets/wardleyDiagram-YWT4CUSO-D16g9VQZ.js +78 -0
  94. package/dist/client/assets/xychartDiagram-2RQKCTM6-CMIdike8.js +7 -0
  95. package/dist/client/index.html +8 -8
  96. package/dist/client/theme-data.css +296 -0
  97. package/dist/client/version.json +1 -1
  98. package/dist/desktop/client/.vite/manifest.json +1650 -0
  99. package/dist/{client/assets/AgentDetailView-CjwOlcMI.js → desktop/client/assets/AgentDetailView-CVv4BoTE.js} +5 -5
  100. package/dist/desktop/client/assets/AgentDetailView-CgbB51Iw.css +1 -0
  101. package/dist/{client/assets/AgentPermissionPolicyEditor-CD8znNHS.js → desktop/client/assets/AgentPermissionPolicyEditor-CQLNC_-O.js} +1 -1
  102. package/dist/desktop/client/assets/AgentsView-CzMa5Olf.css +1 -0
  103. package/dist/desktop/client/assets/AgentsView-DybRxzuI.js +29 -0
  104. package/dist/desktop/client/assets/ChatView-BtjkE0V7.css +1 -0
  105. package/dist/desktop/client/assets/ChatView-D_byETJX.js +19 -0
  106. package/dist/desktop/client/assets/CommandCenter-DDjpYkPe.css +1 -0
  107. package/dist/desktop/client/assets/CommandCenter-DEXoC2F7.js +71 -0
  108. package/dist/desktop/client/assets/DevServerView-CnEZI8Ax.js +1 -0
  109. package/dist/desktop/client/assets/DevServerView-iBondC7z.css +1 -0
  110. package/dist/desktop/client/assets/DirectoryPicker-0rspvcMz.css +1 -0
  111. package/dist/desktop/client/assets/DirectoryPicker-BUIZKLgl.js +1 -0
  112. package/dist/{client/assets/DocumentsView-Cpma23hu.js → desktop/client/assets/DocumentsView-BFq47DE7.js} +1 -1
  113. package/dist/{client/assets/EvalsView-DYSobhb7.js → desktop/client/assets/EvalsView-BEiGrFFa.js} +1 -1
  114. package/dist/desktop/client/assets/EvalsView-CTbgPUne.css +1 -0
  115. package/dist/desktop/client/assets/ExperimentalAgentOnboardingModal-3ZEFv8sr.css +1 -0
  116. package/dist/{client/assets/ExperimentalAgentOnboardingModal-D_iQqD-n.js → desktop/client/assets/ExperimentalAgentOnboardingModal-WzGxsxku.js} +1 -1
  117. package/dist/{client/assets/GoalsView-B6Wfxk59.js → desktop/client/assets/GoalsView-C6Qsc-VS.js} +1 -1
  118. package/dist/desktop/client/assets/GoalsView-CUh8JBnJ.css +1 -0
  119. package/dist/{client/assets/InsightsView-DZyMvYQ8.js → desktop/client/assets/InsightsView-C14VGuty.js} +1 -1
  120. package/dist/desktop/client/assets/InsightsView-C7yRTMPn.css +1 -0
  121. package/dist/{client/assets/MemoryView-B9Z6cRma.js → desktop/client/assets/MemoryView--XlaBNzQ.js} +1 -1
  122. package/dist/desktop/client/assets/MemoryView-CBDUr2Jy.css +1 -0
  123. package/dist/{client/assets/PiExtensionsManager-BQt3JU60.js → desktop/client/assets/PiExtensionsManager-BaQnu6IY.js} +1 -1
  124. package/dist/desktop/client/assets/PiExtensionsManager-kgTOHPE9.css +1 -0
  125. package/dist/desktop/client/assets/PluginManager-DSiHizRD.css +1 -0
  126. package/dist/{client/assets/PluginManager-DEsUstVo.js → desktop/client/assets/PluginManager-DqnMI_Zm.js} +1 -1
  127. package/dist/desktop/client/assets/PullRequestView-C8kBQljB.js +6 -0
  128. package/dist/desktop/client/assets/PullRequestView-CpdE3Yo_.css +1 -0
  129. package/dist/desktop/client/assets/ResearchView-DIVNQF4_.css +1 -0
  130. package/dist/{client/assets/ResearchView-BseF58_R.js → desktop/client/assets/ResearchView-OlGNDmqI.js} +1 -1
  131. package/dist/desktop/client/assets/SecretsView-CvFioX7R.css +1 -0
  132. package/dist/{client/assets/SecretsView-bkNS5VBC.js → desktop/client/assets/SecretsView-vHezddkt.js} +1 -1
  133. package/dist/desktop/client/assets/SessionTerminal-CPbzm5Oi.css +1 -0
  134. package/dist/{client/assets/SessionTerminal-BSllyqgF.js → desktop/client/assets/SessionTerminal-ClbvT_Fb.js} +2 -2
  135. package/dist/desktop/client/assets/SettingsModal-CL4GS1q-.js +21 -0
  136. package/dist/desktop/client/assets/SettingsModal-CvbiSIHS.css +1 -0
  137. package/dist/desktop/client/assets/SettingsModal-EWTm15Fk.js +1 -0
  138. package/dist/desktop/client/assets/SettingsModal-ino68pI2.css +1 -0
  139. package/dist/desktop/client/assets/SetupWizardModal-DsBTXY7k.js +2 -0
  140. package/dist/{client/assets/ShadcnColorPicker-CLiOvo7W.js → desktop/client/assets/ShadcnColorPicker-BciIe8Ls.js} +1 -1
  141. package/dist/{client/assets/ShadcnColorPicker-CzZo9UOD.css → desktop/client/assets/ShadcnColorPicker-pqVWCC5-.css} +1 -1
  142. package/dist/desktop/client/assets/SkillsView-CJ8snrma.css +1 -0
  143. package/dist/desktop/client/assets/SkillsView-UyhBA4_r.js +1 -0
  144. package/dist/desktop/client/assets/TodoView-CIsL_uvQ.css +1 -0
  145. package/dist/{client/assets/TodoView-CMCoPep1.js → desktop/client/assets/TodoView-CV7ma8AL.js} +1 -1
  146. package/dist/desktop/client/assets/WorkflowNodeEditor-BOouksjw.css +1 -0
  147. package/dist/desktop/client/assets/WorkflowNodeEditor-ThUL4msx.js +8 -0
  148. package/dist/desktop/client/assets/addon-fit-C1WQXRvu.js +1 -0
  149. package/dist/desktop/client/assets/addon-unicode11-BVmNDUBM.js +1 -0
  150. package/dist/desktop/client/assets/addon-web-links-CkVew5xs.js +1 -0
  151. package/dist/desktop/client/assets/addon-webgl-uLc0RKcC.js +58 -0
  152. package/dist/desktop/client/assets/agentSkills-BQzMaofj.js +1 -0
  153. package/dist/desktop/client/assets/agentSkills-bQJ4X1gH.css +1 -0
  154. package/dist/desktop/client/assets/agentsOrgChartLayout-BMvyuaLA.js +1 -0
  155. package/dist/desktop/client/assets/app-BJGkp7Tt.js +13 -0
  156. package/dist/desktop/client/assets/app-BKLUvvm8.js +13 -0
  157. package/dist/desktop/client/assets/app-BaoNC9zg.js +13 -0
  158. package/dist/desktop/client/assets/app-CZQ_fFNf.js +13 -0
  159. package/dist/desktop/client/assets/app-DAu3AzsS.js +13 -0
  160. package/dist/desktop/client/assets/app-DgezOJub.js +13 -0
  161. package/dist/desktop/client/assets/arc-cxkkNsnK.js +1 -0
  162. package/dist/desktop/client/assets/architectureDiagram-3BPJPVTR-MtAzQYUn.js +36 -0
  163. package/dist/desktop/client/assets/band-CquvqAHh.js +1 -0
  164. package/dist/{client/assets/blockDiagram-GPEHLZMM-C8DhxwG4.js → desktop/client/assets/blockDiagram-GPEHLZMM-zelYfqn3.js} +1 -1
  165. package/dist/desktop/client/assets/c4Diagram-AAUBKEIU-D3hNx0Hv.js +10 -0
  166. package/dist/desktop/client/assets/channel-Dj1-27Yg.js +1 -0
  167. package/dist/desktop/client/assets/chunk-2J33WTMH-B9IKEZ0p.js +1 -0
  168. package/dist/desktop/client/assets/chunk-4BX2VUAB-Dd7FeAwm.js +1 -0
  169. package/dist/{client/assets/chunk-55IACEB6-C9lQVeH5.js → desktop/client/assets/chunk-55IACEB6-DbzB46sJ.js} +1 -1
  170. package/dist/{client/assets/chunk-727SXJPM-D4SVzqNs.js → desktop/client/assets/chunk-727SXJPM-CDmlBZKV.js} +1 -1
  171. package/dist/desktop/client/assets/chunk-AQP2D5EJ-whMl1uk-.js +231 -0
  172. package/dist/desktop/client/assets/chunk-FMBD7UC4-E1WzORFR.js +15 -0
  173. package/dist/{client/assets/chunk-ND2GUHAM-CE4tkh6e.js → desktop/client/assets/chunk-ND2GUHAM-e0FuVXk6.js} +1 -1
  174. package/dist/desktop/client/assets/chunk-QZHKN3VN-B6q2GrbB.js +1 -0
  175. package/dist/desktop/client/assets/classDiagram-4FO5ZUOK-36LCOV5F.js +1 -0
  176. package/dist/desktop/client/assets/classDiagram-v2-Q7XG4LA2-36LCOV5F.js +1 -0
  177. package/dist/desktop/client/assets/common-BDp2y6CF.js +1 -0
  178. package/dist/desktop/client/assets/common-BnEo5fLN.js +1 -0
  179. package/dist/desktop/client/assets/common-Bzr_Y8h4.js +1 -0
  180. package/dist/desktop/client/assets/common-CvwyFzfv.js +1 -0
  181. package/dist/desktop/client/assets/common-CztCXRkz.js +1 -0
  182. package/dist/desktop/client/assets/common-DPe2mbb7.js +1 -0
  183. package/dist/{client/assets/cose-bilkent-S5V4N54A-DI_-BOYE.js → desktop/client/assets/cose-bilkent-S5V4N54A-BjSZ5UKD.js} +1 -1
  184. package/dist/desktop/client/assets/cytoscape.esm-OyMbaexL.js +331 -0
  185. package/dist/{client/assets/dagre-BM42HDAG-ywUbHZxt.js → desktop/client/assets/dagre-BM42HDAG-DxMH6moD.js} +1 -1
  186. package/dist/{client/assets/dashboard-view-DJvdban3.js → desktop/client/assets/dashboard-view-BW8tRppT.js} +1 -1
  187. package/dist/desktop/client/assets/dashboard-view-CuUPQZzi.css +1 -0
  188. package/dist/desktop/client/assets/dashboard-view-D_zsA-kz.css +1 -0
  189. package/dist/desktop/client/assets/dashboard-view-L_H47lEp.js +8161 -0
  190. package/dist/desktop/client/assets/defaultLocale-DX6XiGOO.js +1 -0
  191. package/dist/{client/assets/diagram-2AECGRRQ-CAGucHCe.js → desktop/client/assets/diagram-2AECGRRQ-DDUjym9F.js} +1 -1
  192. package/dist/{client/assets/diagram-5GNKFQAL-D_1uzVtW.js → desktop/client/assets/diagram-5GNKFQAL-nEqF7CSb.js} +1 -1
  193. package/dist/desktop/client/assets/diagram-KO2AKTUF-CFABtl0k.js +3 -0
  194. package/dist/{client/assets/diagram-LMA3HP47-C1T9eOzA.js → desktop/client/assets/diagram-LMA3HP47-ButXw1gy.js} +1 -1
  195. package/dist/{client/assets/diagram-OG6HWLK6-sWxhPvzU.js → desktop/client/assets/diagram-OG6HWLK6-CA17ZRZI.js} +1 -1
  196. package/dist/desktop/client/assets/erDiagram-TEJ5UH35-DmROZaa0.js +85 -0
  197. package/dist/desktop/client/assets/errors-07IrmOYM.js +1 -0
  198. package/dist/desktop/client/assets/errors-BPsCufin.js +1 -0
  199. package/dist/desktop/client/assets/errors-CcVDgqlA.js +1 -0
  200. package/dist/desktop/client/assets/errors-D-i_Bxc6.js +1 -0
  201. package/dist/desktop/client/assets/errors-DDdWAK-U.js +1 -0
  202. package/dist/desktop/client/assets/errors-DOF5Td3F.js +1 -0
  203. package/dist/desktop/client/assets/flowDiagram-I6XJVG4X-BCa7HuJ3.js +162 -0
  204. package/dist/desktop/client/assets/folder-open-G_6UGFyI.js +6 -0
  205. package/dist/{client/assets/ganttDiagram-6RSMTGT7-CLvZ7891.js → desktop/client/assets/ganttDiagram-6RSMTGT7-BeAYpPxh.js} +1 -1
  206. package/dist/{client/assets/gitGraphDiagram-PVQCEYII-DD56Jsa3.js → desktop/client/assets/gitGraphDiagram-PVQCEYII-BLwp2lCj.js} +1 -1
  207. package/dist/desktop/client/assets/graph--OzhPTMs.js +1 -0
  208. package/dist/desktop/client/assets/index-CSVe-MIA.css +1 -0
  209. package/dist/desktop/client/assets/index-DIURDjTF.js +1301 -0
  210. package/dist/{client/assets/infoDiagram-5YYISTIA-uXai801q.js → desktop/client/assets/infoDiagram-5YYISTIA-DF-q3NMx.js} +1 -1
  211. package/dist/desktop/client/assets/init-Dmth1JHB.js +1 -0
  212. package/dist/{client/assets/ishikawaDiagram-YF4QCWOH-C_bWlUP_.js → desktop/client/assets/ishikawaDiagram-YF4QCWOH-CKYDbUiH.js} +1 -1
  213. package/dist/{client/assets/journeyDiagram-JHISSGLW-B2kB9niE.js → desktop/client/assets/journeyDiagram-JHISSGLW-BgkdCr6Q.js} +1 -1
  214. package/dist/{client/assets/kanban-definition-UN3LZRKU-BJwlpR9z.js → desktop/client/assets/kanban-definition-UN3LZRKU-B9V97j0D.js} +1 -1
  215. package/dist/desktop/client/assets/katex-HP8lGamR.js +257 -0
  216. package/dist/desktop/client/assets/layout-SsrduOYp.js +1 -0
  217. package/dist/desktop/client/assets/mermaid.core-BBN7poU5.js +309 -0
  218. package/dist/{client/assets/mindmap-definition-RKZ34NQL-DsTgTpX-.js → desktop/client/assets/mindmap-definition-RKZ34NQL-C2_Jhjnr.js} +1 -1
  219. package/dist/desktop/client/assets/ordinal-DILIJJjt.js +1 -0
  220. package/dist/{client/assets/pieDiagram-4H26LBE5-BUQsNWHN.js → desktop/client/assets/pieDiagram-4H26LBE5-DOrO8u2b.js} +1 -1
  221. package/dist/desktop/client/assets/projectDetection-G3XuxD2X.js +1 -0
  222. package/dist/{client/assets/quadrantDiagram-W4KKPZXB-DOYWgfAz.js → desktop/client/assets/quadrantDiagram-W4KKPZXB-D4xxkMPR.js} +1 -1
  223. package/dist/{client/assets/requirementDiagram-4Y6WPE33-DUnPKaMd.js → desktop/client/assets/requirementDiagram-4Y6WPE33-BuyUaAlW.js} +1 -1
  224. package/dist/desktop/client/assets/sankeyDiagram-5OEKKPKP-DLGaZ5Gy.js +40 -0
  225. package/dist/{client/assets/sequenceDiagram-3UESZ5HK-b0hyJ_Wr.js → desktop/client/assets/sequenceDiagram-3UESZ5HK-B3xhIZnf.js} +1 -1
  226. package/dist/desktop/client/assets/shield-alert-D-Fxd0Va.js +6 -0
  227. package/dist/{client/assets/stateDiagram-AJRCARHV-orREjkd9.js → desktop/client/assets/stateDiagram-AJRCARHV-3C2cVTwx.js} +1 -1
  228. package/dist/desktop/client/assets/stateDiagram-v2-BHNVJYJU-uyCHbCJn.js +1 -0
  229. package/dist/desktop/client/assets/step-yuy0qJer.js +1 -0
  230. package/dist/desktop/client/assets/timeline-definition-PNZ67QCA-DHzoutyf.js +120 -0
  231. package/dist/desktop/client/assets/upload-Cv9kGgTr.js +6 -0
  232. package/dist/desktop/client/assets/users-DuxdQK9U.js +6 -0
  233. package/dist/desktop/client/assets/vendor-codemirror-jBKmHyH0.js +27 -0
  234. package/dist/desktop/client/assets/vendor-i18n-GF3RlKbq.js +9 -0
  235. package/dist/desktop/client/assets/vendor-react-SZ_qB27O.js +49 -0
  236. package/dist/desktop/client/assets/vendor-reactflow-C5ap-Sga.css +1 -0
  237. package/dist/desktop/client/assets/vendor-xterm-BNq00GSj.js +9 -0
  238. package/dist/desktop/client/assets/vendor-xterm-LZoznX6r.css +32 -0
  239. package/dist/desktop/client/assets/vennDiagram-CIIHVFJN-CKB5IBNU.js +34 -0
  240. package/dist/desktop/client/assets/wardley-L42UT6IY-DUw_nnW7.js +173 -0
  241. package/dist/{client/assets/wardleyDiagram-YWT4CUSO-9It3QAYs.js → desktop/client/assets/wardleyDiagram-YWT4CUSO-CgWLugtp.js} +1 -1
  242. package/dist/{client/assets/xychartDiagram-2RQKCTM6-Dj3sSBqg.js → desktop/client/assets/xychartDiagram-2RQKCTM6-BWpeCtlX.js} +1 -1
  243. package/dist/desktop/client/assets/zoom-out-NWbVkreR.js +41 -0
  244. package/dist/desktop/client/brands/hermes-logo.svg +1 -0
  245. package/dist/desktop/client/fonts/SymbolsNerdFontMono-Regular.ttf +0 -0
  246. package/dist/desktop/client/icons/icon-192.png +0 -0
  247. package/dist/desktop/client/icons/icon-512.png +0 -0
  248. package/dist/desktop/client/index.html +244 -0
  249. package/dist/desktop/client/logo.svg +6 -0
  250. package/dist/desktop/client/manifest.json +23 -0
  251. package/dist/desktop/client/sw.js +175 -0
  252. package/dist/desktop/client/theme-data.css +6858 -0
  253. package/dist/desktop/client/version.json +1 -0
  254. package/dist/desktop/main.js +17159 -0
  255. package/dist/desktop/main.js.map +7 -0
  256. package/dist/desktop/preload.js +110 -0
  257. package/dist/desktop/preload.js.map +7 -0
  258. package/dist/droid-cli/package.json +1 -1
  259. package/dist/extension.js +7200 -3247
  260. package/dist/pi-claude-cli/index.ts +51 -6
  261. package/dist/pi-claude-cli/package.json +5 -3
  262. package/dist/pi-claude-cli/src/__tests__/process-manager.test.ts +1 -1
  263. package/dist/pi-claude-cli/src/__tests__/provider.test.ts +48 -9
  264. package/dist/plugin-sdk/index.d.ts +40 -2
  265. package/dist/plugins/fusion-plugin-acp-runtime/package.json +1 -1
  266. package/dist/plugins/fusion-plugin-cli-printing-press/package.json +1 -1
  267. package/dist/plugins/fusion-plugin-compound-engineering/bundled.js +15 -3
  268. package/dist/plugins/fusion-plugin-compound-engineering/package.json +1 -1
  269. package/dist/plugins/fusion-plugin-cursor-runtime/package.json +1 -1
  270. package/dist/plugins/fusion-plugin-dependency-graph/package.json +1 -1
  271. package/dist/plugins/fusion-plugin-droid-runtime/package.json +1 -1
  272. package/dist/plugins/fusion-plugin-hermes-runtime/package.json +1 -1
  273. package/dist/plugins/fusion-plugin-openclaw-runtime/package.json +1 -1
  274. package/dist/plugins/fusion-plugin-paperclip-runtime/package.json +1 -1
  275. package/dist/plugins/fusion-plugin-reports/package.json +1 -1
  276. package/dist/plugins/fusion-plugin-roadmap/package.json +1 -1
  277. package/dist/plugins/fusion-plugin-whatsapp-chat/package.json +1 -1
  278. package/package.json +4 -3
  279. package/skill/fusion/SKILL.md +1 -0
  280. package/skill/fusion/references/engine-tools.md +3 -3
  281. package/skill/fusion/references/extension-tools.md +81 -4
  282. package/skill/fusion/references/fusion-capabilities.md +8 -0
  283. package/dist/client/assets/ChatView-DCWypaw3.js +0 -19
  284. package/dist/client/assets/ChatView-DwIIrJxb.css +0 -1
  285. package/dist/client/assets/CommandCenter-C4v0FMxx.js +0 -71
  286. package/dist/client/assets/SettingsModal-Dso0K76J.js +0 -21
  287. package/dist/client/assets/SettingsModal-tUDR6nJ9.css +0 -1
  288. package/dist/client/assets/WorkflowNodeEditor-BeQcn0Wa.js +0 -8
  289. package/dist/client/assets/WorkflowNodeEditor-WYIxHTxY.css +0 -1
  290. package/dist/client/assets/app-A1yCJR4Q.js +0 -13
  291. package/dist/client/assets/app-Bfiafek7.js +0 -13
  292. package/dist/client/assets/app-Bh-Xj32t.js +0 -13
  293. package/dist/client/assets/app-DxJHfzxz.js +0 -13
  294. package/dist/client/assets/app-T5iMjZpX.js +0 -13
  295. package/dist/client/assets/app-zR_n4GL2.js +0 -13
  296. package/dist/client/assets/channel-BY6zFSV1.js +0 -1
  297. package/dist/client/assets/classDiagram-4FO5ZUOK-CeX_WCiC.js +0 -1
  298. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CeX_WCiC.js +0 -1
  299. package/dist/client/assets/index-DAv17W73.js +0 -1317
  300. package/dist/client/assets/index-DhBnj8YN.css +0 -1
  301. /package/dist/{client → desktop/client}/assets/AgentPermissionPolicyEditor-CGxjOr6G.css +0 -0
  302. /package/dist/{client → desktop/client}/assets/linear-dXivciGL.js +0 -0
  303. /package/dist/{client → desktop/client}/assets/time-DoDTxsna.js +0 -0
  304. /package/dist/{client → desktop/client}/assets/vendor-reactflow-Bg-Qjzh8.js +0 -0
@@ -0,0 +1,2 @@
1
+ import{_ as a,l as o,K as i,d as n}from"./mermaid.core-KeGuTimD.js";import{p}from"./wardley-L42UT6IY-_KOTjC_D.js";import"./index-JlBzf2ck.js";import"./vendor-react-SZ_qB27O.js";import"./vendor-i18n-GF3RlKbq.js";import"./vendor-reactflow-CnI7NMXG.js";import"./vendor-xterm-BNq00GSj.js";import"./vendor-codemirror-jBKmHyH0.js";import"./step-yuy0qJer.js";var m={parse:a(async r=>{const t=await p("info",r);o.debug(t)},"parse")},g={version:"11.15.0"},d=a(()=>g.version,"getVersion"),v={getVersion:d},c=a((r,t,s)=>{o.debug(`rendering info diagram
2
+ `+r);const e=i(t);n(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),l={draw:c},E={parser:m,db:v,renderer:l};export{E as diagram};
@@ -0,0 +1,70 @@
1
+ import{_ as l,c as lt,P as ct,K as ut,a4 as dt,z as yt,j as pt,p as et,a as ft,b as gt,g as kt,s as mt,q as wt,d as _t}from"./mermaid.core-KeGuTimD.js";import"./index-JlBzf2ck.js";import"./vendor-react-SZ_qB27O.js";import"./vendor-i18n-GF3RlKbq.js";import"./vendor-reactflow-CnI7NMXG.js";import"./vendor-xterm-BNq00GSj.js";import"./vendor-codemirror-jBKmHyH0.js";import"./step-yuy0qJer.js";var Q=(function(){var t=l(function(T,e,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=e);return s},"o"),d=[1,4],n=[1,14],a=[1,12],o=[1,13],y=[6,7,8],f=[1,20],u=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l(function(e,s,i,h,p,r,v){var w=r.length-1;switch(p){case 6:case 7:return h;case 15:h.addNode(r[w-1].length,r[w].trim());break;case 16:h.addNode(0,r[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:n,7:[1,10],9:9,12:11,13:a,14:o},t(y,[2,3]),{1:[2,2]},t(y,[2,4]),t(y,[2,5]),{1:[2,6],6:n,12:15,13:a,14:o},{6:n,9:16,12:11,13:a,14:o},{6:f,7:u,10:17,11:m},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:f,7:u,10:22,11:m},{1:[2,7],6:n,12:15,13:a,14:o},t(k,[2,14],{7:g,11:_}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(c,[2,15]),t(k,[2,13],{7:g,11:_}),t(x,[2,11]),t(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,s){if(s.recoverable)this.trace(e);else{var i=new Error(e);throw i.hash=s,i}},"parseError"),parse:l(function(e){var s=this,i=[0],h=[],p=[null],r=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=r.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(e,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;r.push(R);var H=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function K(B){i.length=i.length-2*B,p.length=p.length-B,r.length=r.length-B}l(K,"popStack");function J(){var B;return B=h.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(h=B,B=h.pop()),B=s.symbols_[B]||B),B}l(J,"lex");for(var M,W,N,X,j={},G,V,tt,U;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=J()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var Y="";U=[];for(G in v[W])this.terminals_[G]&&G>L&&U.push("'"+this.terminals_[G]+"'");b.showPosition?Y="Parse error on line "+(I+1)+`:
2
+ `+b.showPosition()+`
3
+ Expecting `+U.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Y,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:U})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),r.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],j.$=p[p.length-V],j._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},H&&(j._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(j,[w,$,I,S.yy,N[1],p,r].concat(C)),typeof X<"u")return X;V&&(i=i.slice(0,-1*V*2),p=p.slice(0,-1*V),r=r.slice(0,-1*V)),i.push(this.productions_[N[1]][0]),p.push(j.$),r.push(j._$),tt=v[i[i.length-2]][i[i.length-1]],i.push(tt);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(e,s){return this.yy=s||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var s=e.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:l(function(e){var s=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(e){this.unput(this.match.slice(e))},"less"),pastInput:l(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var e=this.pastInput(),s=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
5
+ `+s+"^"},"showPosition"),test_match:l(function(e,s){var i,h,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),h=e[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var r in p)this[r]=p[r];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,s,i,h;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),r=0;r<p.length;r++)if(i=this._input.match(this.rules[p[r]]),i&&(!s||i[0].length>s[0].length)){if(s=i,h=r,this.options.backtrack_lexer){if(e=this.test_match(i,p[r]),e!==!1)return e;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(e=this.test_match(s,p[h]),e!==!1?e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var s=this.next();return s||this.lex()},"lex"),begin:l(function(s){this.conditionStack.push(s)},"begin"),popState:l(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:l(function(s){this.begin(s)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(s,i,h,p){switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return T})();D.lexer=O;function E(){this.yy={}}return l(E,"Parser"),E.prototype=D,D.Parser=E,new E})();Q.parser=Q;var bt=Q,xt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{l(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,yt()}getRoot(){return this.root}addNode(t,d){const n=pt.sanitizeText(d,lt());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],et(n);return}this.baseLevel??=t;let a=t-this.baseLevel+1;for(a<=0&&(a=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=a;)this.stack.pop();const o=this.stack[this.stack.length-1].node,y={text:n,children:[]};o.children.push(y),this.stack.push({level:a,node:y})}getAccTitle(){return ft()}setAccTitle(t){gt(t)}getAccDescription(){return kt()}setAccDescription(t){mt(t)}getDiagramTitle(){return wt()}setDiagramTitle(t){et(t)}},vt=14,z=250,St=30,$t=60,Et=5,ot=82*Math.PI/180,it=Math.cos(ot),st=Math.sin(ot),nt=l((t,d,n)=>{const a=t.node().getBBox(),o=a.width+d*2,y=a.height+d*2;_t(t,y,o,n),t.attr("viewBox",`${a.x-d} ${a.y-d} ${o} ${y}`)},"applyPaddedViewBox"),At=l((t,d,n,a)=>{const y=a.db.getRoot();if(!y)return;const f=lt(),{look:u,handDrawnSeed:m,themeVariables:c}=f,k=ct(f.fontSize)[0]??vt,g=u==="handDrawn",_=y.children??[],x=f.ishikawa?.diagramPadding??20,D=f.ishikawa?.useMaxWidth??!1,O=ut(d),E=O.append("g").attr("class","ishikawa"),T=g?dt.svg(O.node()):void 0,e=T?{roughSvg:T,seed:m??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,s=`ishikawa-arrow-${d}`;g||E.append("defs").append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let i=0,h=z;const p=g?void 0:F(E,i,h,i,h,"ishikawa-spine");if(It(E,i,h,y.text,k,e),!_.length){g&&F(E,i,h,i,h,"ishikawa-spine",e),nt(O,x,D);return}i-=20;const r=_.filter((S,P)=>P%2===0),v=_.filter((S,P)=>P%2===1),w=at(r),I=at(v),$=w.total+I.total;let L=z,A=z;if($>0){const S=z*2,P=z*.3;L=Math.max(P,S*(w.total/$)),A=Math.max(P,S*(I.total/$))}const C=k*2;L=Math.max(L,w.max*C),A=Math.max(A,I.max*C),h=Math.max(L,z),p&&p.attr("y1",h).attr("y2",h),E.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);const b=Math.ceil(_.length/2);for(let S=0;S<b;S++){const P=E.append("g").attr("class","ishikawa-pair");for(const[R,H,K]of[[_[S*2],-1,L],[_[S*2+1],1,A]])R&&Mt(P,R,i,h,H,K,k,e);i=P.selectAll("text").nodes().reduce((R,H)=>Math.min(R,H.getBBox().x),1/0)}if(g)F(E,i,h,0,h,"ishikawa-spine",e);else{p.attr("x1",i);const S=`url(#${s})`;E.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",S)}nt(O,x,D)},"draw"),at=l(t=>{const d=l(n=>n.children.reduce((a,o)=>a+1+d(o),0),"countDescendants");return t.reduce((n,a)=>{const o=d(a);return n.total+=o,n.max=Math.max(n.max,o),n},{total:0,max:0})},"sideStats"),It=l((t,d,n,a,o,y)=>{const f=Math.max(6,Math.floor(110/(o*.6))),u=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${d},${n})`),m=Z(u,ht(a,f),0,0,"ishikawa-head-label","start",o),c=m.node().getBBox(),k=Math.max(60,c.width+6),g=Math.max(40,c.height*2+40),_=`M 0 ${-g/2} L 0 ${g/2} Q ${k*2.4} 0 0 ${-g/2} Z`;if(y){const x=y.roughSvg.path(_,{roughness:1.5,seed:y.seed,fill:y.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:y.lineColor,strokeWidth:2});u.insert(()=>x,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",_);m.attr("transform",`translate(${(k-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Lt=l((t,d)=>{const n=[],a=[],o=l((y,f,u)=>{const m=d===-1?[...y].reverse():y;for(const c of m){const k=n.length,g=c.children??[];n.push({depth:u,text:ht(c.text,15),parentIndex:f,childCount:g.length}),u%2===0?(a.push(k),g.length&&o(g,k,u+1)):(g.length&&o(g,k,u+1),a.push(k))}},"walk");return o(t,-1,2),{entries:n,yOrder:a}},"flattenTree"),Tt=l((t,d,n,a,o,y,f)=>{const u=t.append("g").attr("class","ishikawa-label-group"),c=Z(u,d,n,a+11*o,"ishikawa-label cause","middle",y).node().getBBox();if(f){const k=f.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});u.insert(()=>k,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),q=l((t,d,n,a,o,y)=>{const f=Math.sqrt(a*a+o*o);if(f===0)return;const u=a/f,m=o/f,c=6,k=-m*c,g=u*c,_=d,x=n,D=`M ${_} ${x} L ${_-u*c*2+k} ${x-m*c*2+g} L ${_-u*c*2-k} ${x-m*c*2-g} Z`,O=y.roughSvg.path(D,{roughness:1,seed:y.seed,fill:y.lineColor,fillStyle:"solid",stroke:y.lineColor,strokeWidth:1});t.append(()=>O)},"drawArrowMarker"),Mt=l((t,d,n,a,o,y,f,u)=>{const m=d.children??[],c=y*(m.length?1:.2),k=-it*c,g=st*c*o,_=n+k,x=a+g;if(F(t,n,a,_,x,"ishikawa-branch",u),u&&q(t,n,a,n-_,a-x,u),Tt(t,d.text,_,x,o,f,u),!m.length)return;const{entries:D,yOrder:O}=Lt(m,o),E=D.length,T=new Array(E);for(const[p,r]of O.entries())T[r]=a+g*((p+1)/(E+1));const e=new Map;e.set(-1,{x0:n,y0:a,x1:_,y1:x,childCount:m.length,childrenDrawn:0});const s=-it,i=st*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(const[p,r]of D.entries()){const v=T[p],w=e.get(r.parentIndex),I=t.append("g").attr("class","ishikawa-sub-group");let $=0,L=0,A=0;if(r.depth%2===0){const C=w.y1-w.y0;$=rt(w.x0,w.x1,C?(v-w.y0)/C:.5),L=v,A=$-(r.childCount>0?$t+r.childCount*Et:St),F(I,$,v,A,v,"ishikawa-sub-branch",u),u&&q(I,$,v,1,0,u),Z(I,r.text,A,v,"ishikawa-label align","end",f)}else{const C=w.childrenDrawn++;$=rt(w.x0,w.x1,(w.childCount-C)/(w.childCount+1)),L=w.y0,A=$+s*((v-L)/i),F(I,$,L,A,v,"ishikawa-sub-branch",u),u&&q(I,$,L,$-A,L-v,u),Z(I,r.text,A,v,h,"end",f)}r.childCount>0&&e.set(p,{x0:$,y0:L,x1:A,y1:v,childCount:r.childCount,childrenDrawn:0})}},"drawBranch"),Pt=l(t=>t.split(/<br\s*\/?>|\n/),"splitLines"),ht=l((t,d)=>{if(t.length<=d)return t;const n=[];for(const a of t.split(/\s+/)){const o=n.length-1;o>=0&&n[o].length+1+a.length<=d?n[o]+=" "+a:n.push(a)}return n.join(`
7
+ `)},"wrapText"),Z=l((t,d,n,a,o,y,f)=>{const u=Pt(d),m=f*1.05,c=t.append("text").attr("class",o).attr("text-anchor",y).attr("x",n).attr("y",a-(u.length-1)*m/2);for(const[k,g]of u.entries())c.append("tspan").attr("x",n).attr("dy",k===0?0:m).text(g);return c},"drawMultilineText"),rt=l((t,d,n)=>t+(d-t)*n,"lerp"),F=l((t,d,n,a,o,y,f)=>{if(f){const u=f.roughSvg.line(d,n,a,o,{roughness:1.5,seed:f.seed,stroke:f.lineColor,strokeWidth:2});t.append(()=>u).attr("class",y);return}return t.append("line").attr("class",y).attr("x1",d).attr("y1",n).attr("x2",a).attr("y2",o)},"drawLine"),Bt={draw:At},Nt=l(t=>`
8
+ .ishikawa .ishikawa-spine,
9
+ .ishikawa .ishikawa-branch,
10
+ .ishikawa .ishikawa-sub-branch {
11
+ stroke: ${t.lineColor};
12
+ stroke-width: 2;
13
+ fill: none;
14
+ }
15
+
16
+ .ishikawa .ishikawa-sub-branch {
17
+ stroke-width: 1;
18
+ }
19
+
20
+ .ishikawa .ishikawa-arrow {
21
+ fill: ${t.lineColor};
22
+ }
23
+
24
+ .ishikawa .ishikawa-head {
25
+ fill: ${t.mainBkg};
26
+ stroke: ${t.lineColor};
27
+ stroke-width: 2;
28
+ }
29
+
30
+ .ishikawa .ishikawa-label-box {
31
+ fill: ${t.mainBkg};
32
+ stroke: ${t.lineColor};
33
+ stroke-width: 2;
34
+ }
35
+
36
+ .ishikawa text {
37
+ font-family: ${t.fontFamily};
38
+ font-size: ${t.fontSize};
39
+ fill: ${t.textColor};
40
+ }
41
+
42
+ .ishikawa .ishikawa-head-label {
43
+ font-weight: 600;
44
+ text-anchor: middle;
45
+ dominant-baseline: middle;
46
+ font-size: 14px;
47
+ }
48
+
49
+ .ishikawa .ishikawa-label {
50
+ text-anchor: end;
51
+ }
52
+
53
+ .ishikawa .ishikawa-label.cause {
54
+ text-anchor: middle;
55
+ dominant-baseline: middle;
56
+ }
57
+
58
+ .ishikawa .ishikawa-label.align {
59
+ text-anchor: end;
60
+ dominant-baseline: middle;
61
+ }
62
+
63
+ .ishikawa .ishikawa-label.up {
64
+ dominant-baseline: baseline;
65
+ }
66
+
67
+ .ishikawa .ishikawa-label.down {
68
+ dominant-baseline: hanging;
69
+ }
70
+ `,"getStyles"),Dt=Nt,Ht={parser:bt,get db(){return new xt},renderer:Bt,styles:Dt};export{Ht as diagram};
@@ -0,0 +1,139 @@
1
+ import{g as gt}from"./chunk-FMBD7UC4-CY6d36wo.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-ND2GUHAM-cbKdnrGz.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as s,c as R,d as $t,z as Mt}from"./mermaid.core-KeGuTimD.js";import{s as X}from"./vendor-reactflow-CnI7NMXG.js";import{d as it}from"./arc-cxkkNsnK.js";import"./index-JlBzf2ck.js";import"./vendor-react-SZ_qB27O.js";import"./vendor-i18n-GF3RlKbq.js";import"./vendor-xterm-BNq00GSj.js";import"./vendor-codemirror-jBKmHyH0.js";import"./step-yuy0qJer.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
+ `+_.showPosition()+`
3
+ Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:s(function(r,n){var l,y,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),y=r[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var c in d)this[c]=d[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,y;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),c=0;c<d.length;c++)if(l=this._input.match(this.rules[d[c]]),l&&(!n||l[0].length>n[0].length)){if(n=l,y=c,this.options.backtrack_lexer){if(r=this.test_match(l,d[c]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,d[y]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,l,y,d){switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();g.lexer=m;function x(){this.yy={}}return s(x,"Parser"),x.prototype=g,g.Parser=x,new x})();U.parser=U;var Et=U,V="",J=[],L=[],B=[],Ct=s(function(){J.length=0,L.length=0,V="",B.length=0,Mt()},"clear"),Pt=s(function(t){V=t,J.push(t)},"addSection"),It=s(function(){return J},"getSections"),At=s(function(){let t=rt();const e=100;let a=0;for(;!t&&a<e;)t=rt(),a++;return L.push(...B),L},"getTasks"),Ft=s(function(){const t=[];return L.forEach(a=>{a.people&&t.push(...a.people)}),[...new Set(t)].sort()},"updateActors"),Vt=s(function(t,e){const a=e.substr(1).split(":");let f=0,i=[];a.length===1?(f=Number(a[0]),i=[]):(f=Number(a[0]),i=a[1].split(","));const u=i.map(o=>o.trim()),p={section:V,type:V,people:u,task:t,score:f};B.push(p)},"addTask"),Rt=s(function(t){const e={section:V,type:V,description:t,task:t,classes:[]};L.push(e)},"addTaskOrg"),rt=s(function(){const t=s(function(a){return B[a].processed},"compileTask");let e=!0;for(const[a,f]of B.entries())t(a),e=e&&f.processed;return e},"compileTasks"),Lt=s(function(){return Ft()},"getActors"),nt={getConfig:s(()=>R().journey,"getConfig"),clear:Ct,setDiagramTitle:St,getDiagramTitle:Tt,setAccTitle:wt,getAccTitle:bt,setAccDescription:vt,getAccDescription:_t,addSection:Pt,getSections:It,getTasks:At,addTask:Vt,addTaskOrg:Rt,getActors:Lt},Bt=s(t=>`.label {
7
+ font-family: ${t.fontFamily};
8
+ color: ${t.textColor};
9
+ }
10
+ .mouth {
11
+ stroke: #666;
12
+ }
13
+
14
+ line {
15
+ stroke: ${t.textColor}
16
+ }
17
+
18
+ .legend {
19
+ fill: ${t.textColor};
20
+ font-family: ${t.fontFamily};
21
+ }
22
+
23
+ .label text {
24
+ fill: #333;
25
+ }
26
+ .label {
27
+ color: ${t.textColor}
28
+ }
29
+
30
+ .face {
31
+ ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
32
+ stroke: #999;
33
+ }
34
+
35
+ .node rect,
36
+ .node circle,
37
+ .node ellipse,
38
+ .node polygon,
39
+ .node path {
40
+ fill: ${t.mainBkg};
41
+ stroke: ${t.nodeBorder};
42
+ stroke-width: 1px;
43
+ }
44
+
45
+ .node .label {
46
+ text-align: center;
47
+ }
48
+ .node.clickable {
49
+ cursor: pointer;
50
+ }
51
+
52
+ .arrowheadPath {
53
+ fill: ${t.arrowheadColor};
54
+ }
55
+
56
+ .edgePath .path {
57
+ stroke: ${t.lineColor};
58
+ stroke-width: 1.5px;
59
+ }
60
+
61
+ .flowchart-link {
62
+ stroke: ${t.lineColor};
63
+ fill: none;
64
+ }
65
+
66
+ .edgeLabel {
67
+ background-color: ${t.edgeLabelBackground};
68
+ rect {
69
+ opacity: 0.5;
70
+ }
71
+ text-align: center;
72
+ }
73
+
74
+ .cluster rect {
75
+ }
76
+
77
+ .cluster text {
78
+ fill: ${t.titleColor};
79
+ }
80
+
81
+ div.mermaidTooltip {
82
+ position: absolute;
83
+ text-align: center;
84
+ max-width: 200px;
85
+ padding: 2px;
86
+ font-family: ${t.fontFamily};
87
+ font-size: 12px;
88
+ background: ${t.tertiaryColor};
89
+ border: 1px solid ${t.border2};
90
+ border-radius: 2px;
91
+ pointer-events: none;
92
+ z-index: 100;
93
+ }
94
+
95
+ .task-type-0, .section-type-0 {
96
+ ${t.fillType0?`fill: ${t.fillType0}`:""};
97
+ }
98
+ .task-type-1, .section-type-1 {
99
+ ${t.fillType0?`fill: ${t.fillType1}`:""};
100
+ }
101
+ .task-type-2, .section-type-2 {
102
+ ${t.fillType0?`fill: ${t.fillType2}`:""};
103
+ }
104
+ .task-type-3, .section-type-3 {
105
+ ${t.fillType0?`fill: ${t.fillType3}`:""};
106
+ }
107
+ .task-type-4, .section-type-4 {
108
+ ${t.fillType0?`fill: ${t.fillType4}`:""};
109
+ }
110
+ .task-type-5, .section-type-5 {
111
+ ${t.fillType0?`fill: ${t.fillType5}`:""};
112
+ }
113
+ .task-type-6, .section-type-6 {
114
+ ${t.fillType0?`fill: ${t.fillType6}`:""};
115
+ }
116
+ .task-type-7, .section-type-7 {
117
+ ${t.fillType0?`fill: ${t.fillType7}`:""};
118
+ }
119
+
120
+ .actor-0 {
121
+ ${t.actor0?`fill: ${t.actor0}`:""};
122
+ }
123
+ .actor-1 {
124
+ ${t.actor1?`fill: ${t.actor1}`:""};
125
+ }
126
+ .actor-2 {
127
+ ${t.actor2?`fill: ${t.actor2}`:""};
128
+ }
129
+ .actor-3 {
130
+ ${t.actor3?`fill: ${t.actor3}`:""};
131
+ }
132
+ .actor-4 {
133
+ ${t.actor4?`fill: ${t.actor4}`:""};
134
+ }
135
+ .actor-5 {
136
+ ${t.actor5?`fill: ${t.actor5}`:""};
137
+ }
138
+ ${gt()}
139
+ `,"getStyles"),jt=Bt,K=s(function(t,e){return kt(t,e)},"drawRect"),Nt=s(function(t,e){const f=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){const m=it().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}s(u,"smile");function p(g){const m=it().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}s(p,"sad");function o(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s(o,"ambivalent"),e.score>3?u(i):e.score<3?p(i):o(i),f},"drawFace"),ot=s(function(t,e){const a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),ct=s(function(t,e){return xt(t,e)},"drawText"),zt=s(function(t,e){function a(i,u,p,o,g){return i+","+u+" "+(i+p)+","+u+" "+(i+p)+","+(u+o-g)+" "+(i+p-g*1.2)+","+(u+o)+" "+i+","+(u+o)}s(a,"genPoints");const f=t.append("polygon");f.attr("points",a(e.x,e.y,50,20,7)),f.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ct(t,e)},"drawLabel"),Wt=s(function(t,e,a){const f=t.append("g"),i=lt();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,K(f,i),ht(a)(e.text,f,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),Z=-1,Ot=s(function(t,e,a,f){const i=e.x+a.width/2,u=t.append("g");Z++,u.append("line").attr("id",f+"-task"+Z).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(u,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=lt();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,K(u,o);let g=e.x+14;e.people.forEach(m=>{const x=e.actors[m].color,h={cx:g,cy:e.y,r:7,fill:x,stroke:"#000",title:m,pos:e.actors[m].position};ot(u,h),g+=10}),ht(a)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,e.colour)},"drawTask"),Yt=s(function(t,e){mt(t,e)},"drawBackgroundRect"),ht=(function(){function t(i,u,p,o,g,m,x,h){const r=u.append("text").attr("x",p+g/2).attr("y",o+m/2+5).style("font-color",h).style("text-anchor","middle").text(i);f(r,x)}s(t,"byText");function e(i,u,p,o,g,m,x,h,r){const{taskFontSize:n,taskFontFamily:l}=h,y=i.split(/<br\s*\/?>/gi);for(let d=0;d<y.length;d++){const c=d*n-n*(y.length-1)/2,v=u.append("text").attr("x",p+g/2).attr("y",o).attr("fill",r).style("text-anchor","middle").style("font-size",n).style("font-family",l);v.append("tspan").attr("x",p+g/2).attr("dy",c).text(y[d]),v.attr("y",o+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(v,x)}}s(e,"byTspan");function a(i,u,p,o,g,m,x,h){const r=u.append("switch"),l=r.append("foreignObject").attr("x",p).attr("y",o).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,r,p,o,g,m,x,h),f(l,x)}s(a,"byFo");function f(i,u){for(const p in u)p in u&&i.attr(p,u[p])}return s(f,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?t:e}})(),qt=s(function(t,e){Z=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),j={drawRect:K,drawCircle:ot,drawSection:Wt,drawText:ct,drawLabel:zt,drawTask:Ot,drawBackgroundRect:Yt,initGraphics:qt},Ht=s(function(t){Object.keys(t).forEach(function(a){$[a]=t[a]})},"setConf"),E={},W=0;function ut(t){const e=R().journey,a=e.maxLabelWidth;W=0;let f=60;Object.keys(E).forEach(i=>{const u=E[i].color,p={cx:20,cy:f,r:7,fill:u,stroke:"#000",pos:E[i].position};j.drawCircle(t,p);let o=t.append("text").attr("visibility","hidden").text(i);const g=o.node().getBoundingClientRect().width;o.remove();let m=[];if(g<=a)m=[i];else{const x=i.split(" ");let h="";o=t.append("text").attr("visibility","hidden"),x.forEach(r=>{const n=h?`${h} ${r}`:r;if(o.text(n),o.node().getBoundingClientRect().width>a){if(h&&m.push(h),h=r,o.text(r),o.node().getBoundingClientRect().width>a){let y="";for(const d of r)y+=d,o.text(y+"-"),o.node().getBoundingClientRect().width>a&&(m.push(y.slice(0,-1)+"-"),y=d);h=y}}else h=n}),h&&m.push(h),o.remove()}m.forEach((x,h)=>{const r={x:40,y:f+7+h*20,fill:"#666",text:x,textMargin:e.boxTextMargin??5},l=j.drawText(t,r).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),f+=Math.max(20,m.length*20)})}s(ut,"drawActorLegend");var $=R().journey,P=0,Xt=s(function(t,e,a,f){const i=R(),u=i.journey.titleColor,p=i.journey.titleFontSize,o=i.journey.titleFontFamily,g=i.securityLevel;let m;g==="sandbox"&&(m=X("#i"+e));const x=g==="sandbox"?X(m.nodes()[0].contentDocument.body):X("body");S.init();const h=x.select("#"+e);j.initGraphics(h,e);const r=f.db.getTasks(),n=f.db.getDiagramTitle(),l=f.db.getActors();for(const C in E)delete E[C];let y=0;l.forEach(C=>{E[C]={color:$.actorColours[y%$.actorColours.length],position:y},y++}),ut(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(E).length*50),Gt(h,r,0,e);const d=S.getBounds();n&&h.append("text").text(n).attr("x",P).attr("font-size",p).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);const c=d.stopy-d.starty+2*$.diagramMarginY,v=P+d.stopx+2*$.diagramMarginX;$t(h,c,v,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",v-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const k=n?70:0;h.attr("viewBox",`${d.startx} -25 ${v} ${c+k}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+k+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,a,f){t[e]===void 0?t[e]=a:t[e]=f(a,t[e])},"updateVal"),updateBounds:s(function(t,e,a,f){const i=R().journey,u=this;let p=0;function o(g){return s(function(x){p++;const h=u.sequenceItems.length-p+1;u.updateVal(x,"starty",e-h*i.boxMargin,Math.min),u.updateVal(x,"stopy",f+h*i.boxMargin,Math.max),u.updateVal(S.data,"startx",t-h*i.boxMargin,Math.min),u.updateVal(S.data,"stopx",a+h*i.boxMargin,Math.max),g!=="activation"&&(u.updateVal(x,"startx",t-h*i.boxMargin,Math.min),u.updateVal(x,"stopx",a+h*i.boxMargin,Math.max),u.updateVal(S.data,"starty",e-h*i.boxMargin,Math.min),u.updateVal(S.data,"stopy",f+h*i.boxMargin,Math.max))},"updateItemBounds")}s(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:s(function(t,e,a,f){const i=Math.min(t,a),u=Math.max(t,a),p=Math.min(e,f),o=Math.max(e,f);this.updateVal(S.data,"startx",i,Math.min),this.updateVal(S.data,"starty",p,Math.min),this.updateVal(S.data,"stopx",u,Math.max),this.updateVal(S.data,"stopy",o,Math.max),this.updateBounds(i,p,u,o)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},G=$.sectionFills,st=$.sectionColours,Gt=s(function(t,e,a,f){const i=R().journey;let u="";const p=i.height*2+i.diagramMarginY,o=a+p;let g=0,m="#CCC",x="black",h=0;for(const[r,n]of e.entries()){if(u!==n.section){m=G[g%G.length],h=g%G.length,x=st[g%st.length];let y=0;const d=n.section;for(let v=r;v<e.length&&e[v].section==d;v++)y=y+1;const c={x:r*i.taskMargin+r*i.width+P,y:50,text:n.section,fill:m,num:h,colour:x,taskCount:y};j.drawSection(t,c,i),u=n.section,g++}const l=n.people.reduce((y,d)=>(E[d]&&(y[d]=E[d]),y),{});n.x=r*i.taskMargin+r*i.width+P,n.y=o,n.width=i.diagramMarginX,n.height=i.diagramMarginY,n.colour=x,n.fill=m,n.num=h,n.actors=l,j.drawTask(t,n,i,f),S.insert(n.x,n.y,n.x+n.width+i.taskMargin,450)}},"drawTasks"),at={setConf:Ht,draw:Xt},se={parser:Et,db:nt,renderer:at,styles:jt,init:s(t=>{at.setConf(t.journey),nt.clear()},"init")};export{se as diagram};
@@ -0,0 +1,89 @@
1
+ import{_ as o,l as te,c as U,K as fe,a0 as ye,a1 as me,a2 as be,Y as _e,H as K,h as F,t as ke,J as Ee,V as Se,W as ce,X as le}from"./mermaid.core-KeGuTimD.js";import{g as Ne}from"./chunk-FMBD7UC4-CY6d36wo.js";import"./index-JlBzf2ck.js";import"./vendor-react-SZ_qB27O.js";import"./vendor-i18n-GF3RlKbq.js";import"./vendor-reactflow-CnI7NMXG.js";import"./vendor-xterm-BNq00GSj.js";import"./vendor-codemirror-jBKmHyH0.js";import"./step-yuy0qJer.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:G}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:G}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);m.setInput(i,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;t.push(q);var de=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=M[P]&&M[P][E]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");m.showPosition?Z="Parse error on line "+(W+1)+`:
2
+ `+m.showPosition()+`
3
+ Expecting `+X.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(x[0]){case 1:r.push(E),u.push(m.yytext),t.push(m.yylloc),r.push(x[1]),E=null,se=m.yyleng,c=m.yytext,W=m.yylineno,q=m.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,se,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,r=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:o(function(i,n){var r,a,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),a=i[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],r=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var t in u)this[t]=u[t];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,r,a;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),t=0;t<u.length;t++)if(r=this._input.match(this.rules[u[t]]),r&&(!n||r[0].length>n[0].length)){if(n=r,a=t,this.options.backtrack_lexer){if(i=this.test_match(r,u[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,u[a]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,r,a,u){switch(a){case 0:return this.pushState("shapeData"),r.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return r.yytext=r.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",r.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",r.yytext),21;case 42:return n.getLogger().trace("Long description:",r.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=Y;function B(){this.yy={}}return o(B,"Parser"),B.prototype=T,T.Parser=B,new B})();$.parser=$;var xe=$,v=[],ne=[],ee=0,ie={},ve=o(()=>{v=[],ne=[],ee=0,ie={}},"clear"),De=o(e=>{if(v.length===0)return null;const h=v[0].level;let p=null;for(let s=v.length-1;s>=0;s--)if(v[s].level===h&&!p&&(p=v[s]),v[s].level<h)throw new Error('Items without section detected, found section ("'+v[s].label+'")');return e===p?.level?null:p},"getSection"),he=o(function(){return ne},"getSections"),Le=o(function(){const e=[],h=[],p=he(),s=U();for(const d of p){const _={id:d.id,label:F(d.label??"",s),labelType:"markdown",isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:s.look};h.push(_);const b=v.filter(l=>l.parentId===d.id);for(const l of b){const D={id:l.id,parentId:d.id,label:F(l.label??"",s),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};h.push(D)}}return{nodes:h,edges:e,other:{},config:U()}},"getData"),Oe=o((e,h,p,s,d)=>{const _=U();let b=_.mindmap?.padding??K.mindmap.padding;switch(s){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:b*=2}const l={id:F(h,_)||"kbn"+ee++,level:e,label:F(p,_),width:_.mindmap?.maxNodeWidth??K.mindmap.maxNodeWidth,padding:b,isGroup:!1};if(d!==void 0){let I;d.includes(`
7
+ `)?I=d+`
8
+ `:I=`{
9
+ `+d+`
10
+ }`;const g=ke(I,{schema:Ee});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}const D=De(e);D?l.parentId=D.id||"kbn"+ee++:ne.push(l),v.push(l)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=o((e,h)=>{switch(te.debug("In get type",e,h),e){case"[":return y.RECT;case"(":return h===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),Ce=o((e,h)=>{ie[e]=h},"setElementForId"),we=o(e=>{if(!e)return;const h=U(),p=v[v.length-1];e.icon&&(p.icon=F(e.icon,h)),e.class&&(p.cssClasses=F(e.class,h))},"decorateNode"),Ae=o(e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=o(()=>te,"getLogger"),Re=o(e=>ie[e],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:y,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Ve=Pe,Be=o(async(e,h,p,s)=>{te.debug(`Rendering kanban diagram
11
+ `+e);const _=s.db.getData(),b=U();b.htmlLabels=!1;const l=fe(h);for(const f of _.nodes)f.domId=`${h}-${f.id}`;const D=l.append("g");D.attr("class","sections");const I=l.append("g");I.attr("class","items");const g=_.nodes.filter(f=>f.isGroup);let w=0;const k=10,G=[];let N=25;for(const f of g){const A=b?.kanban?.sectionWidth||200;w=w+1,f.x=A*w+(w-1)*k/2,f.width=A,f.y=0,f.height=A*3,f.rx=5,f.ry=5,f.cssClasses=f.cssClasses+" section-"+w;const L=await ye(D,f);N=Math.max(N,L?.labelBBox?.height),G.push(L)}let V=0;for(const f of g){const A=G[V];V=V+1;const L=b?.kanban?.sectionWidth||200,H=-L*3/2+N;let T=H;const Y=_.nodes.filter(i=>i.parentId===f.id);for(const i of Y){if(i.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");i.x=f.x,i.width=L-1.5*k;const r=(await me(I,i,{config:b})).node().getBBox();i.y=T+r.height/2,await be(i),T=i.y+r.height/2+k/2}const B=A.cluster.select("rect"),O=Math.max(T-H+3*k,50)+(N-25);B.attr("height",O)}_e(void 0,l,b.mindmap?.padding??K.kanban.padding,b.mindmap?.useMaxWidth??K.kanban.useMaxWidth)},"draw"),je={draw:Be},Fe=o(e=>{let h="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)e["lineColor"+s]=e["lineColor"+s]||e["cScaleInv"+s],Se(e["lineColor"+s])?e["lineColor"+s]=ce(e["lineColor"+s],20):e["lineColor"+s]=le(e["lineColor"+s],20);const p=o((s,d)=>e.darkMode?le(s,d):ce(s,d),"adjuster");for(let s=0;s<e.THEME_COLOR_LIMIT;s++){const d=""+(17-3*s);h+=`
12
+ .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
13
+ fill: ${p(e["cScale"+s],10)};
14
+ stroke: ${p(e["cScale"+s],10)};
15
+
16
+ }
17
+ .section-${s-1} text {
18
+ fill: ${e["cScaleLabel"+s]};
19
+ }
20
+ .node-icon-${s-1} {
21
+ font-size: 40px;
22
+ color: ${e["cScaleLabel"+s]};
23
+ }
24
+ .section-edge-${s-1}{
25
+ stroke: ${e["cScale"+s]};
26
+ }
27
+ .edge-depth-${s-1}{
28
+ stroke-width: ${d};
29
+ }
30
+ .section-${s-1} line {
31
+ stroke: ${e["cScaleInv"+s]} ;
32
+ stroke-width: 3;
33
+ }
34
+
35
+ .disabled, .disabled circle, .disabled text {
36
+ fill: lightgray;
37
+ }
38
+ .disabled text {
39
+ fill: #efefef;
40
+ }
41
+
42
+ .node rect,
43
+ .node circle,
44
+ .node ellipse,
45
+ .node polygon,
46
+ .node path {
47
+ fill: ${e.background};
48
+ stroke: ${e.nodeBorder};
49
+ stroke-width: 1px;
50
+ }
51
+
52
+ .kanban-ticket-link {
53
+ fill: ${e.background};
54
+ stroke: ${e.nodeBorder};
55
+ text-decoration: underline;
56
+ }
57
+ `}return h},"genSections"),Ge=o(e=>`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${Fe(e)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${e.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${e.gitBranchLabel0};
67
+ }
68
+ .icon-container {
69
+ height:100%;
70
+ display: flex;
71
+ justify-content: center;
72
+ align-items: center;
73
+ }
74
+ .edge {
75
+ fill: none;
76
+ }
77
+ .cluster-label, .label {
78
+ color: ${e.textColor};
79
+ fill: ${e.textColor};
80
+ }
81
+ .kanban-label {
82
+ dy: 1em;
83
+ alignment-baseline: middle;
84
+ text-anchor: middle;
85
+ dominant-baseline: middle;
86
+ text-align: center;
87
+ }
88
+ ${Ne()}
89
+ `,"getStyles"),He=Ge,Qe={db:Ve,renderer:je,parser:xe,styles:He};export{Qe as diagram};
@@ -0,0 +1 @@
1
+ import{i as y,a as b,b as A}from"./vendor-reactflow-CnI7NMXG.js";import{i as R}from"./init-Dmth1JHB.js";import{e as M,f as q,a as F,b as S}from"./defaultLocale-DX6XiGOO.js";function g(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function j(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function w(n){let r,i,t;n.length!==2?(r=g,i=(a,f)=>g(n(a),f),t=(a,f)=>n(a)-f):(r=n===g||n===j?n:z,i=n,t=n);function o(a,f,e=0,h=a.length){if(e<h){if(r(f,f)!==0)return h;do{const c=e+h>>>1;i(a[c],f)<0?e=c+1:h=c}while(e<h)}return e}function l(a,f,e=0,h=a.length){if(e<h){if(r(f,f)!==0)return h;do{const c=e+h>>>1;i(a[c],f)<=0?e=c+1:h=c}while(e<h)}return e}function u(a,f,e=0,h=a.length){const c=o(a,f,e,h-1);return c>e&&t(a[c-1],f)>-t(a[c],f)?c-1:c}return{left:o,center:u,right:l}}function z(){return 0}function I(n){return n===null?NaN:+n}function*en(n,r){for(let i of n)i!=null&&(i=+i)>=i&&(yield i)}const P=w(g),$=P.right;w(I).center;const x=Math.sqrt(50),B=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,i){const t=(r-n)/Math.max(0,i),o=Math.floor(Math.log10(t)),l=t/Math.pow(10,o),u=l>=x?10:l>=B?5:l>=C?2:1;let a,f,e;return o<0?(e=Math.pow(10,-o)/u,a=Math.round(n*e),f=Math.round(r*e),a/e<n&&++a,f/e>r&&--f,e=-e):(e=Math.pow(10,o)*u,a=Math.round(n/e),f=Math.round(r/e),a*e<n&&++a,f*e>r&&--f),f<a&&.5<=i&&i<2?v(n,r,i*2):[a,f,e]}function D(n,r,i){if(r=+r,n=+n,i=+i,!(i>0))return[];if(n===r)return[n];const t=r<n,[o,l,u]=t?v(r,n,i):v(n,r,i);if(!(l>=o))return[];const a=l-o+1,f=new Array(a);if(t)if(u<0)for(let e=0;e<a;++e)f[e]=(l-e)/-u;else for(let e=0;e<a;++e)f[e]=(l-e)*u;else if(u<0)for(let e=0;e<a;++e)f[e]=(o+e)/-u;else for(let e=0;e<a;++e)f[e]=(o+e)*u;return f}function d(n,r,i){return r=+r,n=+n,i=+i,v(n,r,i)[2]}function E(n,r,i){r=+r,n=+n,i=+i;const t=r<n,o=t?d(r,n,i):d(n,r,i);return(t?-1:1)*(o<0?1/-o:o)}function G(n){return Math.max(0,-M(Math.abs(n)))}function H(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(M(r)/3)))*3-M(Math.abs(n)))}function J(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,M(r)-M(n))+1}function K(n){return function(){return n}}function L(n){return+n}var N=[0,1];function m(n){return n}function p(n,r){return(r-=n=+n)?function(i){return(i-n)/r}:K(isNaN(r)?NaN:.5)}function O(n,r){var i;return n>r&&(i=n,n=r,r=i),function(t){return Math.max(n,Math.min(r,t))}}function Q(n,r,i){var t=n[0],o=n[1],l=r[0],u=r[1];return o<t?(t=p(o,t),l=i(u,l)):(t=p(t,o),l=i(l,u)),function(a){return l(t(a))}}function T(n,r,i){var t=Math.min(n.length,r.length)-1,o=new Array(t),l=new Array(t),u=-1;for(n[t]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++u<t;)o[u]=p(n[u],n[u+1]),l[u]=i(r[u],r[u+1]);return function(a){var f=$(n,a,1,t)-1;return l[f](o[f](a))}}function U(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function V(){var n=N,r=N,i=b,t,o,l,u=m,a,f,e;function h(){var s=Math.min(n.length,r.length);return u!==m&&(u=O(n[0],n[s-1])),a=s>2?T:Q,f=e=null,c}function c(s){return s==null||isNaN(s=+s)?l:(f||(f=a(n.map(t),r,i)))(t(u(s)))}return c.invert=function(s){return u(o((e||(e=a(r,n.map(t),y)))(s)))},c.domain=function(s){return arguments.length?(n=Array.from(s,L),h()):n.slice()},c.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},c.rangeRound=function(s){return r=Array.from(s),i=A,h()},c.clamp=function(s){return arguments.length?(u=s?!0:m,h()):u!==m},c.interpolate=function(s){return arguments.length?(i=s,h()):i},c.unknown=function(s){return arguments.length?(l=s,c):l},function(s,k){return t=s,o=k,h()}}function W(){return V()(m,m)}function X(n,r,i,t){var o=E(n,r,i),l;switch(t=q(t??",f"),t.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(r));return t.precision==null&&!isNaN(l=H(o,u))&&(t.precision=l),F(t,u)}case"":case"e":case"g":case"p":case"r":{t.precision==null&&!isNaN(l=J(o,Math.max(Math.abs(n),Math.abs(r))))&&(t.precision=l-(t.type==="e"));break}case"f":case"%":{t.precision==null&&!isNaN(l=G(o))&&(t.precision=l-(t.type==="%")*2);break}}return S(t)}function Y(n){var r=n.domain;return n.ticks=function(i){var t=r();return D(t[0],t[t.length-1],i??10)},n.tickFormat=function(i,t){var o=r();return X(o[0],o[o.length-1],i??10,t)},n.nice=function(i){i==null&&(i=10);var t=r(),o=0,l=t.length-1,u=t[o],a=t[l],f,e,h=10;for(a<u&&(e=u,u=a,a=e,e=o,o=l,l=e);h-- >0;){if(e=d(u,a,i),e===f)return t[o]=u,t[l]=a,r(t);if(e>0)u=Math.floor(u/e)*e,a=Math.ceil(a/e)*e;else if(e<0)u=Math.ceil(u*e)/e,a=Math.floor(a*e)/e;else break;f=e}return n},n}function Z(){var n=W();return n.copy=function(){return U(n,Z())},R.apply(n,arguments),Y(n)}export{U as a,w as b,W as c,g as d,I as e,L as f,Y as g,V as h,D as i,m as j,$ as k,Z as l,X as m,en as n,E as t};