@loopstack/loopstack-studio 0.29.5 → 0.30.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 (113) hide show
  1. package/dist/_virtual/rolldown_runtime.js +3 -1
  2. package/dist/api/config.js +5 -4
  3. package/dist/api/environments.js +5 -1
  4. package/dist/api/processor.js +4 -1
  5. package/dist/app/EnvironmentEmbedRoot.js +22 -30
  6. package/dist/components/ai-elements/code-block.js +4 -4
  7. package/dist/components/dynamic-form/CodeContent.js +1 -1
  8. package/dist/components/dynamic-form/FormBody.js +1 -1
  9. package/dist/components/motion/FadeIn.js +72 -0
  10. package/dist/components/motion/StreamingText.js +49 -0
  11. package/dist/components/ui/accordion.js +2 -2
  12. package/dist/components/ui-widgets/UiWidget.js +11 -10
  13. package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
  14. package/dist/events/sse-client-events.js +7 -1
  15. package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
  16. package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
  17. package/dist/features/documents/DocumentRenderer.js +18 -17
  18. package/dist/features/documents/components/DocumentItem.js +42 -20
  19. package/dist/features/documents/components/DocumentList.js +34 -36
  20. package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
  21. package/dist/features/documents/document-details/DocumentDetails.js +577 -377
  22. package/dist/features/documents/document-details/PromptDetails.js +118 -130
  23. package/dist/features/documents/document-details/document-debug-utils.js +100 -0
  24. package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
  25. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
  26. package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
  27. package/dist/features/documents/renderers/LlmMessage.js +52 -47
  28. package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
  29. package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
  30. package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
  31. package/dist/features/feature-registry/available-features.js +12 -0
  32. package/dist/features/feature-registry/index.js +2 -1
  33. package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
  34. package/dist/features/git/components/GitBranchBadge.js +31 -0
  35. package/dist/features/git/components/GitCommitList.js +46 -0
  36. package/dist/features/git/components/GitRemoteStatus.js +84 -0
  37. package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
  38. package/dist/features/git/git-feature.js +12 -0
  39. package/dist/features/git/hooks/useGit.js +78 -0
  40. package/dist/features/git/index.js +1 -0
  41. package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
  42. package/dist/features/runs/Runs.js +4 -4
  43. package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
  44. package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
  45. package/dist/features/workbench/Workbench.js +25 -33
  46. package/dist/features/workbench/WorkflowItem.js +9 -9
  47. package/dist/features/workbench/WorkflowList.js +61 -62
  48. package/dist/features/workbench/components/NewRunDialog.js +237 -209
  49. package/dist/features/workbench/components/RecentRunItem.js +3 -3
  50. package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
  51. package/dist/features/workbench/components/WorkbenchIconSidebar.js +1 -1
  52. package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
  53. package/dist/features/workbench/components/WorkflowForms.js +11 -10
  54. package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
  55. package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
  56. package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
  57. package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
  58. package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
  59. package/dist/features/workbench/index.js +2 -2
  60. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
  61. package/dist/features/workspaces/Workspaces.js +134 -125
  62. package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
  63. package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
  64. package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
  65. package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
  66. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
  67. package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
  68. package/dist/hooks/index.js +3 -2
  69. package/dist/hooks/query-keys.js +43 -30
  70. package/dist/hooks/useConfig.js +28 -22
  71. package/dist/hooks/useEnvironments.js +27 -2
  72. package/dist/hooks/useProcessor.js +14 -1
  73. package/dist/hooks/useWorkflows.js +4 -4
  74. package/dist/index.d.ts +116 -15
  75. package/dist/index.js +9 -8
  76. package/dist/node_modules/d3/src/index.js +13 -13
  77. package/dist/node_modules/d3-scale/src/continuous.js +16 -16
  78. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
  79. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
  80. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
  81. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
  82. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
  83. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
  84. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
  85. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
  86. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
  87. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
  88. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
  89. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
  90. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
  91. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
  92. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
  93. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
  94. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
  95. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
  96. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
  97. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
  98. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
  99. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
  100. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
  101. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
  102. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
  103. package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
  104. package/dist/node_modules/motion/dist/es/react.js +9 -2
  105. package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
  106. package/dist/pages/DebugWorkflowsPage.js +76 -106
  107. package/dist/pages/EmbedWorkbenchPage.js +1 -1
  108. package/dist/pages/PreviewWorkbenchPage.js +6 -6
  109. package/dist/pages/WorkbenchPage.js +43 -47
  110. package/dist/pages/WorkflowDebugPage.js +6 -12
  111. package/dist/pages/WorkspacePage.js +40 -66
  112. package/dist/pages/WorkspaceRunsPage.js +24 -31
  113. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
+ import select_default from "../../../../d3-selection/src/select.js";
1
2
  import { __name, log } from "./chunk-AGHRB4JF.js";
2
3
  import { purify } from "../../../../dompurify/dist/purify.es.js";
3
4
  import { clear, common_default, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, parseGenericTypes, sanitizeText, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
4
- import select_default from "../../../../d3-selection/src/select.js";
5
5
  import "../../../../d3/src/index.js";
6
6
  import { getEdgeId, utils_default } from "./chunk-5ZQYHXKU.js";
7
7
  import { getRegisteredLayoutAlgorithm, render } from "./chunk-LZXEDZCA.js";
@@ -10,19 +10,19 @@ import { createTooltip } from "./chunk-ND2GUHAM.js";
10
10
  import { getDiagramElement } from "./chunk-55IACEB6.js";
11
11
  import { setupViewPortForSVG } from "./chunk-2J33WTMH.js";
12
12
  var parser = (function() {
13
- var t = /* @__PURE__ */ __name(function(e, t, n, r) {
13
+ var e = /* @__PURE__ */ __name(function(e, t, n, r) {
14
14
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
15
15
  return n;
16
16
  }, "o"), n = [1, 18], r = [1, 19], i = [1, 20], a = [1, 41], o = [1, 26], s = [1, 42], c = [1, 24], l = [1, 25], u = [1, 32], d = [1, 33], f = [1, 34], p = [1, 45], m = [1, 35], h = [1, 36], g = [1, 37], _ = [1, 38], v = [1, 27], y = [1, 28], b = [1, 29], x = [1, 30], S = [1, 31], C = [1, 44], w = [1, 46], T = [1, 43], E = [1, 47], D = [1, 9], O = [
17
17
  1,
18
18
  8,
19
19
  9
20
- ], k = [1, 58], A = [1, 59], j = [1, 60], M = [1, 61], N = [1, 62], ee = [1, 63], te = [1, 64], P = [
20
+ ], k = [1, 58], A = [1, 59], j = [1, 60], M = [1, 61], N = [1, 62], P = [1, 63], ee = [1, 64], F = [
21
21
  1,
22
22
  8,
23
23
  9,
24
24
  41
25
- ], ne = [1, 77], F = [
25
+ ], te = [1, 77], I = [
26
26
  1,
27
27
  8,
28
28
  9,
@@ -42,7 +42,7 @@ var parser = (function() {
42
42
  74,
43
43
  79,
44
44
  81
45
- ], I = [
45
+ ], L = [
46
46
  1,
47
47
  8,
48
48
  9,
@@ -70,14 +70,14 @@ var parser = (function() {
70
70
  100,
71
71
  102,
72
72
  103
73
- ], L = [
73
+ ], R = [
74
74
  13,
75
75
  60,
76
76
  86,
77
77
  100,
78
78
  102,
79
79
  103
80
- ], R = [
80
+ ], z = [
81
81
  13,
82
82
  60,
83
83
  73,
@@ -86,7 +86,7 @@ var parser = (function() {
86
86
  100,
87
87
  102,
88
88
  103
89
- ], re = [
89
+ ], ne = [
90
90
  13,
91
91
  60,
92
92
  68,
@@ -98,7 +98,7 @@ var parser = (function() {
98
98
  100,
99
99
  102,
100
100
  103
101
- ], z = [1, 103], B = [1, 121], V = [1, 117], H = [1, 113], U = [1, 119], W = [1, 114], G = [1, 115], K = [1, 116], q = [1, 118], J = [1, 120], ie = [
101
+ ], B = [1, 103], V = [1, 121], H = [1, 117], U = [1, 113], W = [1, 119], G = [1, 114], K = [1, 115], q = [1, 116], J = [1, 118], Y = [1, 120], re = [
102
102
  22,
103
103
  50,
104
104
  60,
@@ -109,7 +109,7 @@ var parser = (function() {
109
109
  88,
110
110
  89,
111
111
  90
112
- ], ae = [1, 128], Y = [12, 39], X = [
112
+ ], ie = [1, 128], X = [12, 39], ae = [
113
113
  1,
114
114
  8,
115
115
  9,
@@ -790,23 +790,23 @@ var parser = (function() {
790
790
  { 1: [2, 1] },
791
791
  { 1: [2, 2] },
792
792
  { 1: [2, 3] },
793
- t(D, [2, 5], { 8: [1, 48] }),
793
+ e(D, [2, 5], { 8: [1, 48] }),
794
794
  { 8: [1, 49] },
795
- t(O, [2, 19], { 22: [1, 50] }),
796
- t(O, [2, 21]),
797
- t(O, [2, 22]),
798
- t(O, [2, 23]),
799
- t(O, [2, 24]),
800
- t(O, [2, 25]),
801
- t(O, [2, 26]),
802
- t(O, [2, 27]),
803
- t(O, [2, 28]),
804
- t(O, [2, 29]),
805
- t(O, [2, 30]),
795
+ e(O, [2, 19], { 22: [1, 50] }),
796
+ e(O, [2, 21]),
797
+ e(O, [2, 22]),
798
+ e(O, [2, 23]),
799
+ e(O, [2, 24]),
800
+ e(O, [2, 25]),
801
+ e(O, [2, 26]),
802
+ e(O, [2, 27]),
803
+ e(O, [2, 28]),
804
+ e(O, [2, 29]),
805
+ e(O, [2, 30]),
806
806
  { 34: [1, 51] },
807
807
  { 36: [1, 52] },
808
- t(O, [2, 33]),
809
- t(O, [2, 63], {
808
+ e(O, [2, 33]),
809
+ e(O, [2, 63], {
810
810
  53: 53,
811
811
  66: 56,
812
812
  67: 57,
@@ -817,17 +817,17 @@ var parser = (function() {
817
817
  70: j,
818
818
  71: M,
819
819
  72: N,
820
- 73: ee,
821
- 74: te
820
+ 73: P,
821
+ 74: ee
822
822
  }),
823
823
  { 39: [1, 65] },
824
- t(P, [2, 47], {
824
+ e(F, [2, 47], {
825
825
  39: [1, 67],
826
826
  44: [1, 66],
827
827
  46: [1, 68]
828
828
  }),
829
- t(O, [2, 65]),
830
- t(O, [2, 66]),
829
+ e(O, [2, 65]),
830
+ e(O, [2, 66]),
831
831
  {
832
832
  16: 69,
833
833
  60: p,
@@ -878,18 +878,18 @@ var parser = (function() {
878
878
  103: E
879
879
  },
880
880
  {
881
- 13: ne,
881
+ 13: te,
882
882
  55: 76
883
883
  },
884
884
  {
885
885
  58: 78,
886
886
  60: [1, 79]
887
887
  },
888
- t(O, [2, 76]),
889
- t(O, [2, 77]),
890
- t(O, [2, 78]),
891
- t(O, [2, 79]),
892
- t(F, [2, 13], {
888
+ e(O, [2, 76]),
889
+ e(O, [2, 77]),
890
+ e(O, [2, 78]),
891
+ e(O, [2, 79]),
892
+ e(I, [2, 13], {
893
893
  16: 39,
894
894
  17: 40,
895
895
  19: 81,
@@ -901,7 +901,7 @@ var parser = (function() {
901
901
  102: T,
902
902
  103: E
903
903
  }),
904
- t(F, [2, 15], { 20: [1, 83] }),
904
+ e(I, [2, 15], { 20: [1, 83] }),
905
905
  {
906
906
  15: 84,
907
907
  16: 85,
@@ -922,11 +922,11 @@ var parser = (function() {
922
922
  102: T,
923
923
  103: E
924
924
  },
925
- t(I, [2, 133]),
926
- t(I, [2, 134]),
927
- t(I, [2, 135]),
928
- t(I, [2, 136]),
929
- t([
925
+ e(L, [2, 133]),
926
+ e(L, [2, 134]),
927
+ e(L, [2, 135]),
928
+ e(L, [2, 136]),
929
+ e([
930
930
  1,
931
931
  8,
932
932
  9,
@@ -948,7 +948,7 @@ var parser = (function() {
948
948
  79,
949
949
  81
950
950
  ], [2, 137]),
951
- t(D, [2, 6], {
951
+ e(D, [2, 6], {
952
952
  10: 5,
953
953
  21: 7,
954
954
  23: 8,
@@ -1038,9 +1038,9 @@ var parser = (function() {
1038
1038
  102: T,
1039
1039
  103: E
1040
1040
  },
1041
- t(O, [2, 20]),
1042
- t(O, [2, 31]),
1043
- t(O, [2, 32]),
1041
+ e(O, [2, 20]),
1042
+ e(O, [2, 31]),
1043
+ e(O, [2, 32]),
1044
1044
  {
1045
1045
  13: [1, 91],
1046
1046
  16: 39,
@@ -1061,16 +1061,16 @@ var parser = (function() {
1061
1061
  70: j,
1062
1062
  71: M,
1063
1063
  72: N,
1064
- 73: ee,
1065
- 74: te
1064
+ 73: P,
1065
+ 74: ee
1066
1066
  },
1067
- t(O, [2, 64]),
1067
+ e(O, [2, 64]),
1068
1068
  {
1069
1069
  67: 93,
1070
- 73: ee,
1071
- 74: te
1070
+ 73: P,
1071
+ 74: ee
1072
1072
  },
1073
- t(L, [2, 83], {
1073
+ e(R, [2, 83], {
1074
1074
  66: 94,
1075
1075
  68: k,
1076
1076
  69: A,
@@ -1078,13 +1078,13 @@ var parser = (function() {
1078
1078
  71: M,
1079
1079
  72: N
1080
1080
  }),
1081
- t(R, [2, 84]),
1082
- t(R, [2, 85]),
1083
- t(R, [2, 86]),
1084
- t(R, [2, 87]),
1085
- t(R, [2, 88]),
1086
- t(re, [2, 89]),
1087
- t(re, [2, 90]),
1081
+ e(z, [2, 84]),
1082
+ e(z, [2, 85]),
1083
+ e(z, [2, 86]),
1084
+ e(z, [2, 87]),
1085
+ e(z, [2, 88]),
1086
+ e(ne, [2, 89]),
1087
+ e(ne, [2, 90]),
1088
1088
  {
1089
1089
  8: [1, 96],
1090
1090
  23: 99,
@@ -1108,7 +1108,7 @@ var parser = (function() {
1108
1108
  {
1109
1109
  41: [1, 102],
1110
1110
  45: 101,
1111
- 51: z
1111
+ 51: B
1112
1112
  },
1113
1113
  {
1114
1114
  16: 104,
@@ -1125,42 +1125,42 @@ var parser = (function() {
1125
1125
  81: [1, 109]
1126
1126
  },
1127
1127
  {
1128
- 22: B,
1129
- 50: V,
1128
+ 22: V,
1129
+ 50: H,
1130
1130
  59: 110,
1131
- 60: H,
1132
- 82: U,
1131
+ 60: U,
1132
+ 82: W,
1133
1133
  84: 111,
1134
1134
  85: 112,
1135
- 86: W,
1136
- 87: G,
1137
- 88: K,
1138
- 89: q,
1139
- 90: J
1135
+ 86: G,
1136
+ 87: K,
1137
+ 88: q,
1138
+ 89: J,
1139
+ 90: Y
1140
1140
  },
1141
1141
  { 60: [1, 122] },
1142
1142
  {
1143
- 13: ne,
1143
+ 13: te,
1144
1144
  55: 123
1145
1145
  },
1146
- t(P, [2, 72]),
1147
- t(P, [2, 138]),
1146
+ e(F, [2, 72]),
1147
+ e(F, [2, 138]),
1148
1148
  {
1149
- 22: B,
1150
- 50: V,
1149
+ 22: V,
1150
+ 50: H,
1151
1151
  59: 124,
1152
- 60: H,
1152
+ 60: U,
1153
1153
  61: [1, 125],
1154
- 82: U,
1154
+ 82: W,
1155
1155
  84: 111,
1156
1156
  85: 112,
1157
- 86: W,
1158
- 87: G,
1159
- 88: K,
1160
- 89: q,
1161
- 90: J
1157
+ 86: G,
1158
+ 87: K,
1159
+ 88: q,
1160
+ 89: J,
1161
+ 90: Y
1162
1162
  },
1163
- t(ie, [2, 74]),
1163
+ e(re, [2, 74]),
1164
1164
  {
1165
1165
  16: 39,
1166
1166
  17: 40,
@@ -1171,15 +1171,15 @@ var parser = (function() {
1171
1171
  102: T,
1172
1172
  103: E
1173
1173
  },
1174
- t(F, [2, 16]),
1175
- t(F, [2, 17]),
1176
- t(F, [2, 18]),
1174
+ e(I, [2, 16]),
1175
+ e(I, [2, 17]),
1176
+ e(I, [2, 18]),
1177
1177
  {
1178
1178
  11: 127,
1179
- 12: ae,
1179
+ 12: ie,
1180
1180
  39: [2, 36]
1181
1181
  },
1182
- t(Y, [2, 9], {
1182
+ e(X, [2, 9], {
1183
1183
  16: 85,
1184
1184
  17: 86,
1185
1185
  15: 130,
@@ -1190,14 +1190,14 @@ var parser = (function() {
1190
1190
  102: T,
1191
1191
  103: E
1192
1192
  }),
1193
- t(Y, [2, 10]),
1194
- t(X, [2, 55], {
1193
+ e(X, [2, 10]),
1194
+ e(ae, [2, 55], {
1195
1195
  11: 131,
1196
- 12: ae
1196
+ 12: ie
1197
1197
  }),
1198
- t(D, [2, 7]),
1198
+ e(D, [2, 7]),
1199
1199
  { 9: [1, 132] },
1200
- t(Z, [2, 67]),
1200
+ e(Z, [2, 67]),
1201
1201
  {
1202
1202
  16: 39,
1203
1203
  17: 40,
@@ -1219,7 +1219,7 @@ var parser = (function() {
1219
1219
  102: T,
1220
1220
  103: E
1221
1221
  },
1222
- t(L, [2, 82], {
1222
+ e(R, [2, 82], {
1223
1223
  66: 136,
1224
1224
  68: k,
1225
1225
  69: A,
@@ -1227,7 +1227,7 @@ var parser = (function() {
1227
1227
  71: M,
1228
1228
  72: N
1229
1229
  }),
1230
- t(L, [2, 81]),
1230
+ e(R, [2, 81]),
1231
1231
  { 41: [1, 137] },
1232
1232
  {
1233
1233
  23: 99,
@@ -1253,13 +1253,13 @@ var parser = (function() {
1253
1253
  8: [1, 141],
1254
1254
  41: [2, 44]
1255
1255
  },
1256
- t(P, [2, 48], { 39: [1, 142] }),
1256
+ e(F, [2, 48], { 39: [1, 142] }),
1257
1257
  { 41: [1, 143] },
1258
- t(P, [2, 50]),
1258
+ e(F, [2, 50]),
1259
1259
  {
1260
1260
  41: [2, 61],
1261
1261
  45: 144,
1262
- 51: z
1262
+ 51: B
1263
1263
  },
1264
1264
  { 47: [1, 145] },
1265
1265
  {
@@ -1272,44 +1272,44 @@ var parser = (function() {
1272
1272
  102: T,
1273
1273
  103: E
1274
1274
  },
1275
- t(O, [2, 91], { 13: [1, 147] }),
1276
- t(O, [2, 93], {
1275
+ e(O, [2, 91], { 13: [1, 147] }),
1276
+ e(O, [2, 93], {
1277
1277
  13: [1, 149],
1278
1278
  77: [1, 148]
1279
1279
  }),
1280
- t(O, [2, 97], {
1280
+ e(O, [2, 97], {
1281
1281
  13: [1, 150],
1282
1282
  80: [1, 151]
1283
1283
  }),
1284
1284
  { 13: [1, 152] },
1285
- t(O, [2, 105], { 61: oe }),
1286
- t(se, [2, 107], {
1285
+ e(O, [2, 105], { 61: oe }),
1286
+ e(se, [2, 107], {
1287
1287
  85: 154,
1288
- 22: B,
1289
- 50: V,
1290
- 60: H,
1291
- 82: U,
1292
- 86: W,
1293
- 87: G,
1294
- 88: K,
1295
- 89: q,
1296
- 90: J
1288
+ 22: V,
1289
+ 50: H,
1290
+ 60: U,
1291
+ 82: W,
1292
+ 86: G,
1293
+ 87: K,
1294
+ 88: q,
1295
+ 89: J,
1296
+ 90: Y
1297
1297
  }),
1298
- t(Q, [2, 109]),
1299
- t(Q, [2, 111]),
1300
- t(Q, [2, 112]),
1301
- t(Q, [2, 113]),
1302
- t(Q, [2, 114]),
1303
- t(Q, [2, 115]),
1304
- t(Q, [2, 116]),
1305
- t(Q, [2, 117]),
1306
- t(Q, [2, 118]),
1307
- t(Q, [2, 119]),
1308
- t(O, [2, 106]),
1309
- t(P, [2, 71]),
1310
- t(O, [2, 73], { 61: oe }),
1298
+ e(Q, [2, 109]),
1299
+ e(Q, [2, 111]),
1300
+ e(Q, [2, 112]),
1301
+ e(Q, [2, 113]),
1302
+ e(Q, [2, 114]),
1303
+ e(Q, [2, 115]),
1304
+ e(Q, [2, 116]),
1305
+ e(Q, [2, 117]),
1306
+ e(Q, [2, 118]),
1307
+ e(Q, [2, 119]),
1308
+ e(O, [2, 106]),
1309
+ e(F, [2, 71]),
1310
+ e(O, [2, 73], { 61: oe }),
1311
1311
  { 60: [1, 155] },
1312
- t(F, [2, 14]),
1312
+ e(I, [2, 14]),
1313
1313
  { 39: [2, 37] },
1314
1314
  { 13: [1, 156] },
1315
1315
  {
@@ -1322,11 +1322,11 @@ var parser = (function() {
1322
1322
  102: T,
1323
1323
  103: E
1324
1324
  },
1325
- t(Y, [2, 12]),
1326
- t(X, [2, 56]),
1325
+ e(X, [2, 12]),
1326
+ e(ae, [2, 56]),
1327
1327
  { 1: [2, 4] },
1328
- t(Z, [2, 69]),
1329
- t(Z, [2, 68]),
1328
+ e(Z, [2, 69]),
1329
+ e(Z, [2, 68]),
1330
1330
  {
1331
1331
  16: 39,
1332
1332
  17: 40,
@@ -1337,8 +1337,8 @@ var parser = (function() {
1337
1337
  102: T,
1338
1338
  103: E
1339
1339
  },
1340
- t(L, [2, 80]),
1341
- t(P, [2, 34]),
1340
+ e(R, [2, 80]),
1341
+ e(F, [2, 34]),
1342
1342
  { 41: [1, 159] },
1343
1343
  {
1344
1344
  23: 99,
@@ -1381,40 +1381,40 @@ var parser = (function() {
1381
1381
  },
1382
1382
  {
1383
1383
  45: 163,
1384
- 51: z
1384
+ 51: B
1385
1385
  },
1386
- t(P, [2, 49]),
1386
+ e(F, [2, 49]),
1387
1387
  { 41: [2, 62] },
1388
- t(P, [2, 52], { 39: [1, 164] }),
1389
- t(O, [2, 60]),
1390
- t(O, [2, 92]),
1391
- t(O, [2, 94]),
1392
- t(O, [2, 95], { 77: [1, 165] }),
1393
- t(O, [2, 98]),
1394
- t(O, [2, 99], { 13: [1, 166] }),
1395
- t(O, [2, 101], {
1388
+ e(F, [2, 52], { 39: [1, 164] }),
1389
+ e(O, [2, 60]),
1390
+ e(O, [2, 92]),
1391
+ e(O, [2, 94]),
1392
+ e(O, [2, 95], { 77: [1, 165] }),
1393
+ e(O, [2, 98]),
1394
+ e(O, [2, 99], { 13: [1, 166] }),
1395
+ e(O, [2, 101], {
1396
1396
  13: [1, 168],
1397
1397
  77: [1, 167]
1398
1398
  }),
1399
1399
  {
1400
- 22: B,
1401
- 50: V,
1402
- 60: H,
1403
- 82: U,
1400
+ 22: V,
1401
+ 50: H,
1402
+ 60: U,
1403
+ 82: W,
1404
1404
  84: 169,
1405
1405
  85: 112,
1406
- 86: W,
1407
- 87: G,
1408
- 88: K,
1409
- 89: q,
1410
- 90: J
1406
+ 86: G,
1407
+ 87: K,
1408
+ 88: q,
1409
+ 89: J,
1410
+ 90: Y
1411
1411
  },
1412
- t(Q, [2, 110]),
1413
- t(ie, [2, 75]),
1412
+ e(Q, [2, 110]),
1413
+ e(re, [2, 75]),
1414
1414
  { 14: [1, 170] },
1415
- t(Y, [2, 11]),
1416
- t(Z, [2, 70]),
1417
- t(P, [2, 35]),
1415
+ e(X, [2, 11]),
1416
+ e(Z, [2, 70]),
1417
+ e(F, [2, 35]),
1418
1418
  { 41: [2, 40] },
1419
1419
  { 41: [2, 43] },
1420
1420
  { 41: [2, 46] },
@@ -1422,30 +1422,30 @@ var parser = (function() {
1422
1422
  {
1423
1423
  41: [1, 173],
1424
1424
  45: 172,
1425
- 51: z
1425
+ 51: B
1426
1426
  },
1427
- t(O, [2, 96]),
1428
- t(O, [2, 100]),
1429
- t(O, [2, 102]),
1430
- t(O, [2, 103], { 77: [1, 174] }),
1431
- t(se, [2, 108], {
1427
+ e(O, [2, 96]),
1428
+ e(O, [2, 100]),
1429
+ e(O, [2, 102]),
1430
+ e(O, [2, 103], { 77: [1, 174] }),
1431
+ e(se, [2, 108], {
1432
1432
  85: 154,
1433
- 22: B,
1434
- 50: V,
1435
- 60: H,
1436
- 82: U,
1437
- 86: W,
1438
- 87: G,
1439
- 88: K,
1440
- 89: q,
1441
- 90: J
1433
+ 22: V,
1434
+ 50: H,
1435
+ 60: U,
1436
+ 82: W,
1437
+ 86: G,
1438
+ 87: K,
1439
+ 88: q,
1440
+ 89: J,
1441
+ 90: Y
1442
1442
  }),
1443
- t(X, [2, 8]),
1444
- t(P, [2, 51]),
1443
+ e(ae, [2, 8]),
1444
+ e(F, [2, 51]),
1445
1445
  { 41: [1, 175] },
1446
- t(P, [2, 54]),
1447
- t(O, [2, 104]),
1448
- t(P, [2, 53])
1446
+ e(F, [2, 54]),
1447
+ e(O, [2, 104]),
1448
+ e(F, [2, 53])
1449
1449
  ],
1450
1450
  defaultActions: {
1451
1451
  2: [2, 1],
@@ -1465,10 +1465,10 @@ var parser = (function() {
1465
1465
  throw n.hash = t, n;
1466
1466
  }
1467
1467
  }, "parseError"),
1468
- parse: /* @__PURE__ */ __name(function(t) {
1468
+ parse: /* @__PURE__ */ __name(function(e) {
1469
1469
  var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1470
1470
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1471
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1471
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1472
1472
  var v = h.yylloc;
1473
1473
  o.push(v);
1474
1474
  var y = h.options && h.options.ranges;
@@ -2693,7 +2693,7 @@ var classDiagram_default = parser, visibilityValues = [
2693
2693
  default: return "";
2694
2694
  }
2695
2695
  }
2696
- }, MERMAID_DOM_ID_PREFIX = "classId-", classCounter = 0, sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, getConfig2()), "sanitizeText"), ClassDB = class l {
2696
+ }, MERMAID_DOM_ID_PREFIX = "classId-", classCounter = 0, sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, getConfig2()), "sanitizeText"), ClassDB = class u {
2697
2697
  constructor() {
2698
2698
  this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.functions = [], this.lineType = {
2699
2699
  LINE: 0,
@@ -2704,17 +2704,17 @@ var classDiagram_default = parser, visibilityValues = [
2704
2704
  COMPOSITION: 2,
2705
2705
  DEPENDENCY: 3,
2706
2706
  LOLLIPOP: 4
2707
- }, this.setupToolTips = /* @__PURE__ */ __name((e) => {
2708
- let t = createTooltip();
2709
- select_default(e).select("svg").selectAll("g").filter(function() {
2707
+ }, this.setupToolTips = /* @__PURE__ */ __name((t) => {
2708
+ let n = createTooltip();
2709
+ select_default(t).select("svg").selectAll("g").filter(function() {
2710
2710
  return select_default(this).attr("title") !== null;
2711
- }).on("mouseover", (e) => {
2712
- let r = select_default(e.currentTarget), i = r.attr("title");
2713
- if (!i) return;
2714
- let a = e.currentTarget.getBoundingClientRect();
2715
- t.transition().duration(200).style("opacity", ".9"), t.html(purify.sanitize(i)).style("left", `${window.scrollX + a.left + a.width / 2}px`).style("top", `${window.scrollY + a.bottom + 4}px`), r.classed("hover", !0);
2716
- }).on("mouseout", (e) => {
2717
- t.transition().duration(500).style("opacity", 0), select_default(e.currentTarget).classed("hover", !1);
2711
+ }).on("mouseover", (t) => {
2712
+ let i = select_default(t.currentTarget), a = i.attr("title");
2713
+ if (!a) return;
2714
+ let o = t.currentTarget.getBoundingClientRect();
2715
+ n.transition().duration(200).style("opacity", ".9"), n.html(purify.sanitize(a)).style("left", `${window.scrollX + o.left + o.width / 2}px`).style("top", `${window.scrollY + o.bottom + 4}px`), i.classed("hover", !0);
2716
+ }).on("mouseout", (t) => {
2717
+ n.transition().duration(500).style("opacity", 0), select_default(t.currentTarget).classed("hover", !1);
2718
2718
  });
2719
2719
  }, "setupToolTips"), this.direction = "TB", this.setAccTitle = setAccTitle, this.getAccTitle = getAccTitle, this.setAccDescription = setAccDescription, this.getAccDescription = getAccDescription, this.setDiagramTitle = setDiagramTitle, this.getDiagramTitle = getDiagramTitle, this.getConfig = /* @__PURE__ */ __name(() => getConfig2().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.popNamespace = this.popNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
2720
2720
  }
@@ -2739,19 +2739,19 @@ var classDiagram_default = parser, visibilityValues = [
2739
2739
  addClass(e) {
2740
2740
  let t = common_default.sanitizeText(e, getConfig2()), { className: n, type: r } = this.splitClassNameAndType(t);
2741
2741
  if (this.classes.has(n)) return;
2742
- let a = common_default.sanitizeText(n, getConfig2());
2743
- this.classes.set(a, {
2744
- id: a,
2742
+ let i = common_default.sanitizeText(n, getConfig2());
2743
+ this.classes.set(i, {
2744
+ id: i,
2745
2745
  type: r,
2746
- label: a,
2747
- text: `${a}${r ? `<${r}>` : ""}`,
2746
+ label: i,
2747
+ text: `${i}${r ? `<${r}>` : ""}`,
2748
2748
  shape: "classBox",
2749
2749
  cssClasses: "default",
2750
2750
  methods: [],
2751
2751
  members: [],
2752
2752
  annotations: [],
2753
2753
  styles: [],
2754
- domId: MERMAID_DOM_ID_PREFIX + a + "-" + classCounter
2754
+ domId: MERMAID_DOM_ID_PREFIX + i + "-" + classCounter
2755
2755
  }), classCounter++;
2756
2756
  }
2757
2757
  addInterface(e, t) {
@@ -2794,14 +2794,14 @@ var classDiagram_default = parser, visibilityValues = [
2794
2794
  }
2795
2795
  addRelation(e) {
2796
2796
  log.debug("Adding relation: " + JSON.stringify(e));
2797
- let n = [
2797
+ let t = [
2798
2798
  this.relationType.LOLLIPOP,
2799
2799
  this.relationType.AGGREGATION,
2800
2800
  this.relationType.COMPOSITION,
2801
2801
  this.relationType.DEPENDENCY,
2802
2802
  this.relationType.EXTENSION
2803
2803
  ];
2804
- e.relation.type1 === this.relationType.LOLLIPOP && !n.includes(e.relation.type2) ? (this.addClass(e.id2), this.addInterface(e.id1, e.id2), e.id1 = `interface${this.interfaces.length - 1}`) : e.relation.type2 === this.relationType.LOLLIPOP && !n.includes(e.relation.type1) ? (this.addClass(e.id1), this.addInterface(e.id2, e.id1), e.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(e.id1), this.addClass(e.id2)), e.id1 = this.splitClassNameAndType(e.id1).className, e.id2 = this.splitClassNameAndType(e.id2).className, e.relationTitle1 = common_default.sanitizeText(e.relationTitle1.trim(), getConfig2()), e.relationTitle2 = common_default.sanitizeText(e.relationTitle2.trim(), getConfig2()), this.relations.push(e);
2804
+ e.relation.type1 === this.relationType.LOLLIPOP && !t.includes(e.relation.type2) ? (this.addClass(e.id2), this.addInterface(e.id1, e.id2), e.id1 = `interface${this.interfaces.length - 1}`) : e.relation.type2 === this.relationType.LOLLIPOP && !t.includes(e.relation.type1) ? (this.addClass(e.id1), this.addInterface(e.id2, e.id1), e.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(e.id1), this.addClass(e.id2)), e.id1 = this.splitClassNameAndType(e.id1).className, e.id2 = this.splitClassNameAndType(e.id2).className, e.relationTitle1 = common_default.sanitizeText(e.relationTitle1.trim(), getConfig2()), e.relationTitle2 = common_default.sanitizeText(e.relationTitle2.trim(), getConfig2()), this.relations.push(e);
2805
2805
  }
2806
2806
  addAnnotation(e, t) {
2807
2807
  let n = this.splitClassNameAndType(e).className;
@@ -2881,8 +2881,8 @@ var classDiagram_default = parser, visibilityValues = [
2881
2881
  setClickFunc(e, t, n) {
2882
2882
  let r = common_default.sanitizeText(e, getConfig2());
2883
2883
  if (getConfig2().securityLevel !== "loose" || t === void 0) return;
2884
- let a = r;
2885
- if (this.classes.has(a)) {
2884
+ let i = r;
2885
+ if (this.classes.has(i)) {
2886
2886
  let e = [];
2887
2887
  if (typeof n == "string") {
2888
2888
  e = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
@@ -2891,8 +2891,8 @@ var classDiagram_default = parser, visibilityValues = [
2891
2891
  n.startsWith("\"") && n.endsWith("\"") && (n = n.substr(1, n.length - 2)), e[t] = n;
2892
2892
  }
2893
2893
  }
2894
- e.length === 0 && e.push(a), this.functions.push(() => {
2895
- let n = this.lookUpDomId(a), r = document.querySelector(`[id="${n}"]`);
2894
+ e.length === 0 && e.push(i), this.functions.push(() => {
2895
+ let n = this.lookUpDomId(i), r = document.querySelector(`[id="${n}"]`);
2896
2896
  r !== null && r.addEventListener("click", () => {
2897
2897
  utils_default.runFunc(t, ...e);
2898
2898
  }, !1);
@@ -2940,12 +2940,12 @@ var classDiagram_default = parser, visibilityValues = [
2940
2940
  !n || !r || (n.children.has(t) || n.children.set(t, r), r.parent ??= e);
2941
2941
  }
2942
2942
  addNamespace(e, t) {
2943
- let n = l.resolveQualifiedId(e, this.namespaceStack);
2943
+ let n = u.resolveQualifiedId(e, this.namespaceStack);
2944
2944
  if (this.namespaceStack.push(n), this.namespaces.has(n)) {
2945
2945
  let e = this.namespaces.get(n);
2946
2946
  return e.explicit = !0, t && (e.label = t), n;
2947
2947
  }
2948
- let r = n.split("."), i = l.getAncestorIds(n);
2948
+ let r = n.split("."), i = u.getAncestorIds(n);
2949
2949
  for (let e = 0; e < i.length; e++) {
2950
2950
  let n = i[e], a = e > 0 ? i[e - 1] : void 0, o = e === i.length - 1, s = o && t ? t : r[e];
2951
2951
  this.namespaces.has(n) ? o && (this.namespaces.get(n).explicit = !0) : this.namespaces.set(n, this.createNamespaceNode(n, s, a, o)), a && this.linkParentChild(a, n);
@@ -3323,18 +3323,18 @@ g.classGroup line {
3323
3323
  getClasses: /* @__PURE__ */ __name(function(e, t) {
3324
3324
  return t.db.getClasses();
3325
3325
  }, "getClasses"),
3326
- draw: /* @__PURE__ */ __name(async function(e, n, r, i) {
3327
- log.info("REF0:"), log.info("Drawing class diagram (v3)", n);
3328
- let { securityLevel: a, state: o, layout: c } = getConfig2();
3329
- i.db.setDiagramId(n);
3330
- let l = i.db.getData(), u = getDiagramElement(n, a);
3331
- l.type = i.type, l.layoutAlgorithm = getRegisteredLayoutAlgorithm(c), l.nodeSpacing = o?.nodeSpacing || 50, l.rankSpacing = o?.rankSpacing || 50, l.markers = [
3326
+ draw: /* @__PURE__ */ __name(async function(e, t, r, i) {
3327
+ log.info("REF0:"), log.info("Drawing class diagram (v3)", t);
3328
+ let { securityLevel: a, state: o, layout: s } = getConfig2();
3329
+ i.db.setDiagramId(t);
3330
+ let l = i.db.getData(), u = getDiagramElement(t, a);
3331
+ l.type = i.type, l.layoutAlgorithm = getRegisteredLayoutAlgorithm(s), l.nodeSpacing = o?.nodeSpacing || 50, l.rankSpacing = o?.rankSpacing || 50, l.markers = [
3332
3332
  "aggregation",
3333
3333
  "extension",
3334
3334
  "composition",
3335
3335
  "dependency",
3336
3336
  "lollipop"
3337
- ], l.diagramId = n, await render(l, u), utils_default.insertTitle(u, "classDiagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), setupViewPortForSVG(u, 8, "classDiagram", o?.useMaxWidth ?? !0);
3337
+ ], l.diagramId = t, await render(l, u), utils_default.insertTitle(u, "classDiagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), setupViewPortForSVG(u, 8, "classDiagram", o?.useMaxWidth ?? !0);
3338
3338
  }, "draw"),
3339
3339
  getDir: /* @__PURE__ */ __name((e, t = "TB") => {
3340
3340
  if (!e.doc) return t;