@loopstack/loopstack-studio 0.29.5 → 0.31.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 (122) 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/layout/StudioSidebar.js +116 -131
  10. package/dist/components/lists/ListView.js +46 -46
  11. package/dist/components/motion/FadeIn.js +72 -0
  12. package/dist/components/motion/StreamingText.js +49 -0
  13. package/dist/components/ui/accordion.js +2 -2
  14. package/dist/components/ui-widgets/UiWidget.js +11 -10
  15. package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
  16. package/dist/events/sse-client-events.js +7 -1
  17. package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
  18. package/dist/features/dashboard/AppLauncher.js +84 -0
  19. package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
  20. package/dist/features/documents/DocumentRenderer.js +18 -17
  21. package/dist/features/documents/components/DocumentItem.js +42 -20
  22. package/dist/features/documents/components/DocumentList.js +34 -36
  23. package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
  24. package/dist/features/documents/document-details/DocumentDetails.js +577 -377
  25. package/dist/features/documents/document-details/PromptDetails.js +118 -130
  26. package/dist/features/documents/document-details/document-debug-utils.js +100 -0
  27. package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
  28. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
  29. package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
  30. package/dist/features/documents/renderers/LlmMessage.js +52 -47
  31. package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
  32. package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
  33. package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
  34. package/dist/features/feature-registry/available-features.js +12 -0
  35. package/dist/features/feature-registry/index.js +2 -1
  36. package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
  37. package/dist/features/git/components/GitBranchBadge.js +31 -0
  38. package/dist/features/git/components/GitCommitList.js +46 -0
  39. package/dist/features/git/components/GitRemoteStatus.js +84 -0
  40. package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
  41. package/dist/features/git/git-feature.js +12 -0
  42. package/dist/features/git/hooks/useGit.js +78 -0
  43. package/dist/features/git/index.js +1 -0
  44. package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
  45. package/dist/features/runs/Runs.js +73 -73
  46. package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
  47. package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
  48. package/dist/features/workbench/Workbench.js +25 -33
  49. package/dist/features/workbench/WorkflowItem.js +9 -9
  50. package/dist/features/workbench/WorkflowList.js +61 -62
  51. package/dist/features/workbench/components/NewRunDialog.js +237 -209
  52. package/dist/features/workbench/components/RecentRunItem.js +3 -3
  53. package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
  54. package/dist/features/workbench/components/WorkbenchIconSidebar.js +74 -109
  55. package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
  56. package/dist/features/workbench/components/WorkflowForms.js +11 -10
  57. package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
  58. package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
  59. package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
  60. package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
  61. package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
  62. package/dist/features/workbench/index.js +2 -2
  63. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
  64. package/dist/features/workspaces/Workspaces.js +166 -136
  65. package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
  66. package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
  67. package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
  68. package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
  69. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
  70. package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
  71. package/dist/hooks/index.js +3 -2
  72. package/dist/hooks/query-keys.js +43 -30
  73. package/dist/hooks/useConfig.js +28 -22
  74. package/dist/hooks/useEnvironments.js +27 -2
  75. package/dist/hooks/useProcessor.js +14 -1
  76. package/dist/hooks/useWorkflows.js +4 -4
  77. package/dist/index.d.ts +119 -18
  78. package/dist/index.js +10 -9
  79. package/dist/node_modules/d3/src/index.js +13 -13
  80. package/dist/node_modules/d3-scale/src/continuous.js +16 -16
  81. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
  82. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
  83. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
  84. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
  85. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
  86. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
  87. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
  88. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
  89. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
  90. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
  91. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
  92. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
  93. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
  94. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
  95. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
  96. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
  97. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
  98. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
  99. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
  100. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
  101. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
  102. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
  103. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
  104. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
  105. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
  106. package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
  107. package/dist/node_modules/motion/dist/es/react.js +9 -2
  108. package/dist/pages/DashboardPage.js +20 -74
  109. package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
  110. package/dist/pages/DebugWorkflowsPage.js +76 -106
  111. package/dist/pages/EmbedWorkbenchPage.js +1 -1
  112. package/dist/pages/PreviewWorkbenchPage.js +6 -6
  113. package/dist/pages/WorkbenchPage.js +43 -47
  114. package/dist/pages/WorkflowDebugPage.js +6 -12
  115. package/dist/pages/WorkspacePage.js +40 -66
  116. package/dist/pages/WorkspaceRunsPage.js +24 -31
  117. package/dist/routing/LocalRouter.js +1 -1
  118. package/package.json +2 -2
  119. package/dist/features/dashboard/Dashboard.js +0 -125
  120. package/dist/features/dashboard/RunItem.js +0 -78
  121. package/dist/features/dashboard/RunList.js +0 -32
  122. package/dist/hooks/useDashboard.js +0 -16
@@ -1,12 +1,12 @@
1
+ import select_default from "../../../../d3-selection/src/select.js";
1
2
  import { __name } from "./chunk-AGHRB4JF.js";
2
3
  import { clear, configureSvgSize, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
3
- import select_default from "../../../../d3-selection/src/select.js";
4
4
  import arc_default from "../../../../d3-shape/src/arc.js";
5
5
  import "../../../../d3/src/index.js";
6
6
  import { getIconStyles } from "./chunk-FMBD7UC4.js";
7
7
  import { drawBackgroundRect, drawRect, drawText, getNoteRect } from "./chunk-ND2GUHAM.js";
8
8
  var parser = (function() {
9
- var S = /* @__PURE__ */ __name(function(e, S, C, w) {
9
+ var e = /* @__PURE__ */ __name(function(e, S, C, w) {
10
10
  for (C ||= {}, w = e.length; w--; C[e[w]] = S);
11
11
  return C;
12
12
  }, "o"), C = [
@@ -118,7 +118,7 @@ var parser = (function() {
118
118
  4: [1, 2]
119
119
  },
120
120
  { 1: [3] },
121
- S(C, [2, 2], { 5: 3 }),
121
+ e(C, [2, 2], { 5: 3 }),
122
122
  {
123
123
  6: [1, 4],
124
124
  7: 5,
@@ -132,8 +132,8 @@ var parser = (function() {
132
132
  17: O,
133
133
  18: k
134
134
  },
135
- S(C, [2, 7], { 1: [2, 1] }),
136
- S(C, [2, 3]),
135
+ e(C, [2, 7], { 1: [2, 1] }),
136
+ e(C, [2, 3]),
137
137
  {
138
138
  9: 15,
139
139
  11: w,
@@ -143,18 +143,18 @@ var parser = (function() {
143
143
  17: O,
144
144
  18: k
145
145
  },
146
- S(C, [2, 5]),
147
- S(C, [2, 6]),
148
- S(C, [2, 8]),
146
+ e(C, [2, 5]),
147
+ e(C, [2, 6]),
148
+ e(C, [2, 8]),
149
149
  { 13: [1, 16] },
150
150
  { 15: [1, 17] },
151
- S(C, [2, 11]),
152
- S(C, [2, 12]),
151
+ e(C, [2, 11]),
152
+ e(C, [2, 12]),
153
153
  { 19: [1, 18] },
154
- S(C, [2, 4]),
155
- S(C, [2, 9]),
156
- S(C, [2, 10]),
157
- S(C, [2, 13])
154
+ e(C, [2, 4]),
155
+ e(C, [2, 9]),
156
+ e(C, [2, 10]),
157
+ e(C, [2, 13])
158
158
  ],
159
159
  defaultActions: {},
160
160
  parseError: /* @__PURE__ */ __name(function(e, S) {
@@ -164,10 +164,10 @@ var parser = (function() {
164
164
  throw C.hash = S, C;
165
165
  }
166
166
  }, "parseError"),
167
- parse: /* @__PURE__ */ __name(function(S) {
167
+ parse: /* @__PURE__ */ __name(function(e) {
168
168
  var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
169
169
  for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
170
- I.setInput(S, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
170
+ I.setInput(e, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
171
171
  var z = I.yylloc;
172
172
  D.push(z);
173
173
  var B = I.options && I.options.ranges;
@@ -484,10 +484,10 @@ var journey_default = parser, currentSection = "", sections = [], tasks = [], ra
484
484
  };
485
485
  tasks.push(S);
486
486
  }, "addTaskOrg"), compileTasks = /* @__PURE__ */ __name(function() {
487
- let S = /* @__PURE__ */ __name(function(e) {
487
+ let e = /* @__PURE__ */ __name(function(e) {
488
488
  return rawTasks[e].processed;
489
489
  }, "compileTask"), C = !0;
490
- for (let [e, w] of rawTasks.entries()) S(e), C &&= w.processed;
490
+ for (let [S, w] of rawTasks.entries()) e(S), C &&= w.processed;
491
491
  return C;
492
492
  }, "compileTasks"), journeyDb_default = {
493
493
  getConfig: /* @__PURE__ */ __name(() => getConfig2().journey, "getConfig"),
@@ -641,8 +641,8 @@ var journey_default = parser, currentSection = "", sections = [], tasks = [], ra
641
641
  ${getIconStyles()}
642
642
  `, "getStyles"), drawRect2 = /* @__PURE__ */ __name(function(e, S) {
643
643
  return drawRect(e, S);
644
- }, "drawRect"), drawFace = /* @__PURE__ */ __name(function(S, C) {
645
- let w = S.append("circle").attr("cx", C.cx).attr("cy", C.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), T = S.append("g");
644
+ }, "drawRect"), drawFace = /* @__PURE__ */ __name(function(e, C) {
645
+ let w = e.append("circle").attr("cx", C.cx).attr("cy", C.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), T = e.append("g");
646
646
  T.append("circle").attr("cx", C.cx - 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), T.append("circle").attr("cx", C.cx + 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
647
647
  function E(e) {
648
648
  let S = arc_default().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
@@ -663,13 +663,13 @@ var journey_default = parser, currentSection = "", sections = [], tasks = [], ra
663
663
  return C.attr("cx", S.cx), C.attr("cy", S.cy), C.attr("class", "actor-" + S.pos), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("r", S.r), C.class !== void 0 && C.attr("class", C.class), S.title !== void 0 && C.append("title").text(S.title), C;
664
664
  }, "drawCircle"), drawText2 = /* @__PURE__ */ __name(function(e, S) {
665
665
  return drawText(e, S);
666
- }, "drawText"), drawLabel = /* @__PURE__ */ __name(function(S, C) {
666
+ }, "drawText"), drawLabel = /* @__PURE__ */ __name(function(e, C) {
667
667
  function w(e, S, C, w, T) {
668
668
  return e + "," + S + " " + (e + C) + "," + S + " " + (e + C) + "," + (S + w - T) + " " + (e + C - T * 1.2) + "," + (S + w) + " " + e + "," + (S + w);
669
669
  }
670
670
  __name(w, "genPoints");
671
- let T = S.append("polygon");
672
- T.attr("points", w(C.x, C.y, 50, 20, 7)), T.attr("class", "labelBox"), C.y += C.labelMargin, C.x += .5 * C.labelMargin, drawText2(S, C);
671
+ let T = e.append("polygon");
672
+ T.attr("points", w(C.x, C.y, 50, 20, 7)), T.attr("class", "labelBox"), C.y += C.labelMargin, C.x += .5 * C.labelMargin, drawText2(e, C);
673
673
  }, "drawLabel"), drawSection = /* @__PURE__ */ __name(function(e, S, C) {
674
674
  let w = e.append("g"), T = getNoteRect();
675
675
  T.x = S.x, T.y = S.y, T.fill = S.fill, T.width = C.width * S.taskCount + C.diagramMarginX * (S.taskCount - 1), T.height = C.height, T.class = "journey-section section-type-" + S.num, T.rx = 3, T.ry = 3, drawRect2(w, T), _drawTextCandidateFunc(C)(S.text, w, T.x, T.y, T.width, T.height, { class: "journey-section section-type-" + S.num }, C, S.colour);
@@ -698,10 +698,10 @@ var journey_default = parser, currentSection = "", sections = [], tasks = [], ra
698
698
  }, "drawTask"), drawBackgroundRect2 = /* @__PURE__ */ __name(function(e, S) {
699
699
  drawBackgroundRect(e, S);
700
700
  }, "drawBackgroundRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
701
- function S(e, S, C, w, E, D, O, k) {
701
+ function e(e, S, C, w, E, D, O, k) {
702
702
  T(S.append("text").attr("x", C + E / 2).attr("y", w + D / 2 + 5).style("font-color", k).style("text-anchor", "middle").text(e), O);
703
703
  }
704
- __name(S, "byText");
704
+ __name(e, "byText");
705
705
  function C(e, S, C, w, E, D, O, k, A) {
706
706
  let { taskFontSize: j, taskFontFamily: M } = k, N = e.split(/<br\s*\/?>/gi);
707
707
  for (let e = 0; e < N.length; e++) {
@@ -718,8 +718,8 @@ var journey_default = parser, currentSection = "", sections = [], tasks = [], ra
718
718
  function T(e, S) {
719
719
  for (let C in S) C in S && e.attr(C, S[C]);
720
720
  }
721
- return __name(T, "_setTextAttrs"), function(e) {
722
- return e.textPlacement === "fo" ? w : e.textPlacement === "old" ? S : C;
721
+ return __name(T, "_setTextAttrs"), function(S) {
722
+ return S.textPlacement === "fo" ? w : S.textPlacement === "old" ? e : C;
723
723
  };
724
724
  })(), svgDraw_default = {
725
725
  drawRect: drawRect2,
@@ -781,14 +781,14 @@ function drawActorLegend(e) {
781
781
  });
782
782
  }
783
783
  __name(drawActorLegend, "drawActorLegend");
784
- var conf = getConfig2().journey, leftMargin = 0, draw = /* @__PURE__ */ __name(function(e, S, w, T) {
785
- let D = getConfig2(), O = D.journey.titleColor, k = D.journey.titleFontSize, A = D.journey.titleFontFamily, M = D.securityLevel, N;
786
- M === "sandbox" && (N = select_default("#i" + S));
784
+ var conf = getConfig2().journey, leftMargin = 0, draw = /* @__PURE__ */ __name(function(S, C, T, E) {
785
+ let O = getConfig2(), k = O.journey.titleColor, A = O.journey.titleFontSize, j = O.journey.titleFontFamily, M = O.securityLevel, N;
786
+ M === "sandbox" && (N = select_default("#i" + C));
787
787
  let P = select_default(M === "sandbox" ? N.nodes()[0].contentDocument.body : "body");
788
788
  bounds.init();
789
- let F = P.select("#" + S);
790
- svgDraw_default.initGraphics(F, S);
791
- let I = T.db.getTasks(), L = T.db.getDiagramTitle(), R = T.db.getActors();
789
+ let F = P.select("#" + C);
790
+ svgDraw_default.initGraphics(F, C);
791
+ let I = E.db.getTasks(), L = E.db.getDiagramTitle(), R = E.db.getActors();
792
792
  for (let e in actors) delete actors[e];
793
793
  let z = 0;
794
794
  R.forEach((e) => {
@@ -796,11 +796,11 @@ var conf = getConfig2().journey, leftMargin = 0, draw = /* @__PURE__ */ __name(f
796
796
  color: conf.actorColours[z % conf.actorColours.length],
797
797
  position: z
798
798
  }, z++;
799
- }), drawActorLegend(F), leftMargin = conf.leftMargin + maxWidth, bounds.insert(0, 0, leftMargin, Object.keys(actors).length * 50), drawTasks(F, I, 0, S);
799
+ }), drawActorLegend(F), leftMargin = conf.leftMargin + maxWidth, bounds.insert(0, 0, leftMargin, Object.keys(actors).length * 50), drawTasks(F, I, 0, C);
800
800
  let B = bounds.getBounds();
801
- L && F.append("text").text(L).attr("x", leftMargin).attr("font-size", k).attr("font-weight", "bold").attr("y", 25).attr("fill", O).attr("font-family", A);
801
+ L && F.append("text").text(L).attr("x", leftMargin).attr("font-size", A).attr("font-weight", "bold").attr("y", 25).attr("fill", k).attr("font-family", j);
802
802
  let V = B.stopy - B.starty + 2 * conf.diagramMarginY, H = leftMargin + B.stopx + 2 * conf.diagramMarginX;
803
- configureSvgSize(F, V, H, conf.useMaxWidth), F.append("line").attr("x1", leftMargin).attr("y1", conf.height * 4).attr("x2", H - leftMargin - 4).attr("y2", conf.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + S + "-arrowhead)");
803
+ configureSvgSize(F, V, H, conf.useMaxWidth), F.append("line").attr("x1", leftMargin).attr("y1", conf.height * 4).attr("x2", H - leftMargin - 4).attr("y2", conf.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + C + "-arrowhead)");
804
804
  let U = L ? 70 : 0;
805
805
  F.attr("viewBox", `${B.startx} -25 ${H} ${V + U}`), F.attr("preserveAspectRatio", "xMinYMin meet"), F.attr("height", V + U + 25);
806
806
  }, "draw"), bounds = {
@@ -823,13 +823,13 @@ var conf = getConfig2().journey, leftMargin = 0, draw = /* @__PURE__ */ __name(f
823
823
  updateVal: /* @__PURE__ */ __name(function(e, S, C, w) {
824
824
  e[S] === void 0 ? e[S] = C : e[S] = w(C, e[S]);
825
825
  }, "updateVal"),
826
- updateBounds: /* @__PURE__ */ __name(function(S, C, w, T) {
827
- let D = getConfig2().journey, O = this, k = 0;
828
- function A(E) {
829
- return /* @__PURE__ */ __name(function(e) {
826
+ updateBounds: /* @__PURE__ */ __name(function(e, C, w, T) {
827
+ let E = getConfig2().journey, O = this, k = 0;
828
+ function A(D) {
829
+ return /* @__PURE__ */ __name(function(S) {
830
830
  k++;
831
831
  let A = O.sequenceItems.length - k + 1;
832
- O.updateVal(e, "starty", C - A * D.boxMargin, Math.min), O.updateVal(e, "stopy", T + A * D.boxMargin, Math.max), O.updateVal(bounds.data, "startx", S - A * D.boxMargin, Math.min), O.updateVal(bounds.data, "stopx", w + A * D.boxMargin, Math.max), E !== "activation" && (O.updateVal(e, "startx", S - A * D.boxMargin, Math.min), O.updateVal(e, "stopx", w + A * D.boxMargin, Math.max), O.updateVal(bounds.data, "starty", C - A * D.boxMargin, Math.min), O.updateVal(bounds.data, "stopy", T + A * D.boxMargin, Math.max));
832
+ O.updateVal(S, "starty", C - A * E.boxMargin, Math.min), O.updateVal(S, "stopy", T + A * E.boxMargin, Math.max), O.updateVal(bounds.data, "startx", e - A * E.boxMargin, Math.min), O.updateVal(bounds.data, "stopx", w + A * E.boxMargin, Math.max), D !== "activation" && (O.updateVal(S, "startx", e - A * E.boxMargin, Math.min), O.updateVal(S, "stopx", w + A * E.boxMargin, Math.max), O.updateVal(bounds.data, "starty", C - A * E.boxMargin, Math.min), O.updateVal(bounds.data, "stopy", T + A * E.boxMargin, Math.max));
833
833
  }, "updateItemBounds");
834
834
  }
835
835
  __name(A, "updateFn"), this.sequenceItems.forEach(A());
@@ -848,25 +848,25 @@ var conf = getConfig2().journey, leftMargin = 0, draw = /* @__PURE__ */ __name(f
848
848
  return this.data;
849
849
  }, "getBounds")
850
850
  }, fills = conf.sectionFills, textColours = conf.sectionColours, drawTasks = /* @__PURE__ */ __name(function(e, S, C, w) {
851
- let T = getConfig2().journey, D = "", O = C + (T.height * 2 + T.diagramMarginY), k = 0, A = "#CCC", j = "black", M = 0;
852
- for (let [C, E] of S.entries()) {
853
- if (D !== E.section) {
851
+ let T = getConfig2().journey, E = "", O = C + (T.height * 2 + T.diagramMarginY), k = 0, A = "#CCC", j = "black", M = 0;
852
+ for (let [C, D] of S.entries()) {
853
+ if (E !== D.section) {
854
854
  A = fills[k % fills.length], M = k % fills.length, j = textColours[k % textColours.length];
855
- let w = 0, O = E.section;
855
+ let w = 0, O = D.section;
856
856
  for (let e = C; e < S.length && S[e].section == O; e++) w += 1;
857
857
  let N = {
858
858
  x: C * T.taskMargin + C * T.width + leftMargin,
859
859
  y: 50,
860
- text: E.section,
860
+ text: D.section,
861
861
  fill: A,
862
862
  num: M,
863
863
  colour: j,
864
864
  taskCount: w
865
865
  };
866
- svgDraw_default.drawSection(e, N, T), D = E.section, k++;
866
+ svgDraw_default.drawSection(e, N, T), E = D.section, k++;
867
867
  }
868
- let N = E.people.reduce((e, S) => (actors[S] && (e[S] = actors[S]), e), {});
869
- E.x = C * T.taskMargin + C * T.width + leftMargin, E.y = O, E.width = T.diagramMarginX, E.height = T.diagramMarginY, E.colour = j, E.fill = A, E.num = M, E.actors = N, svgDraw_default.drawTask(e, E, T, w), bounds.insert(E.x, E.y, E.x + E.width + T.taskMargin, 450);
868
+ let N = D.people.reduce((e, S) => (actors[S] && (e[S] = actors[S]), e), {});
869
+ D.x = C * T.taskMargin + C * T.width + leftMargin, D.y = O, D.width = T.diagramMarginX, D.height = T.diagramMarginY, D.colour = j, D.fill = A, D.num = M, D.actors = N, svgDraw_default.drawTask(e, D, T, w), bounds.insert(D.x, D.y, D.x + D.width + T.taskMargin, 450);
870
870
  }
871
871
  }, "drawTasks"), journeyRenderer_default = {
872
872
  setConf,
@@ -1,10 +1,10 @@
1
+ import select_default from "../../../../d3-selection/src/select.js";
1
2
  import { __name, log } from "./chunk-AGHRB4JF.js";
2
3
  import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, getThemeVariables3, sanitizeText, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
3
- import select_default from "../../../../d3-selection/src/select.js";
4
4
  import linear from "../../../../d3-scale/src/linear.js";
5
5
  import "../../../../d3/src/index.js";
6
6
  var parser = (function() {
7
- var t = /* @__PURE__ */ __name(function(e, t, n, r) {
7
+ var e = /* @__PURE__ */ __name(function(e, t, n, r) {
8
8
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
9
9
  return n;
10
10
  }, "o"), n = [1, 3], r = [1, 4], i = [1, 5], a = [1, 6], o = [1, 7], s = [
@@ -481,13 +481,13 @@ var parser = (function() {
481
481
  56: a,
482
482
  57: o
483
483
  },
484
- t(s, [2, 33], { 29: 10 }),
485
- t(c, [2, 61]),
486
- t(c, [2, 62]),
487
- t(c, [2, 63]),
484
+ e(s, [2, 33], { 29: 10 }),
485
+ e(c, [2, 61]),
486
+ e(c, [2, 62]),
487
+ e(c, [2, 63]),
488
488
  { 1: [2, 30] },
489
489
  { 1: [2, 31] },
490
- t(l, u, {
490
+ e(l, u, {
491
491
  30: 11,
492
492
  31: 12,
493
493
  24: 13,
@@ -525,15 +525,15 @@ var parser = (function() {
525
525
  66: I,
526
526
  67: L
527
527
  }),
528
- t(s, [2, 34]),
528
+ e(s, [2, 34]),
529
529
  {
530
530
  27: 46,
531
531
  55: i,
532
532
  56: a,
533
533
  57: o
534
534
  },
535
- t(l, [2, 37]),
536
- t(l, u, {
535
+ e(l, [2, 37]),
536
+ e(l, u, {
537
537
  24: 13,
538
538
  32: 15,
539
539
  33: 16,
@@ -569,14 +569,14 @@ var parser = (function() {
569
569
  66: I,
570
570
  67: L
571
571
  }),
572
- t(l, [2, 39]),
573
- t(l, [2, 40]),
574
- t(l, [2, 41]),
572
+ e(l, [2, 39]),
573
+ e(l, [2, 40]),
574
+ e(l, [2, 41]),
575
575
  { 36: [1, 48] },
576
576
  { 38: [1, 49] },
577
577
  { 40: [1, 50] },
578
- t(l, [2, 45]),
579
- t(l, [2, 46]),
578
+ e(l, [2, 45]),
579
+ e(l, [2, 46]),
580
580
  { 18: [1, 51] },
581
581
  {
582
582
  4: d,
@@ -706,26 +706,26 @@ var parser = (function() {
706
706
  66: I,
707
707
  67: L
708
708
  },
709
- t(B, [2, 64]),
710
- t(B, [2, 66]),
711
- t(B, [2, 67]),
712
- t(B, [2, 70]),
713
- t(B, [2, 71]),
714
- t(B, [2, 72]),
715
- t(B, [2, 73]),
716
- t(B, [2, 74]),
717
- t(B, [2, 75]),
718
- t(B, [2, 76]),
719
- t(B, [2, 77]),
720
- t(B, [2, 78]),
721
- t(B, [2, 79]),
722
- t(B, [2, 80]),
723
- t(B, [2, 81]),
724
- t(s, [2, 35]),
725
- t(l, [2, 38]),
726
- t(l, [2, 42]),
727
- t(l, [2, 43]),
728
- t(l, [2, 44]),
709
+ e(B, [2, 64]),
710
+ e(B, [2, 66]),
711
+ e(B, [2, 67]),
712
+ e(B, [2, 70]),
713
+ e(B, [2, 71]),
714
+ e(B, [2, 72]),
715
+ e(B, [2, 73]),
716
+ e(B, [2, 74]),
717
+ e(B, [2, 75]),
718
+ e(B, [2, 76]),
719
+ e(B, [2, 77]),
720
+ e(B, [2, 78]),
721
+ e(B, [2, 79]),
722
+ e(B, [2, 80]),
723
+ e(B, [2, 81]),
724
+ e(s, [2, 35]),
725
+ e(l, [2, 38]),
726
+ e(l, [2, 42]),
727
+ e(l, [2, 43]),
728
+ e(l, [2, 44]),
729
729
  {
730
730
  3: 65,
731
731
  4: ee,
@@ -742,7 +742,7 @@ var parser = (function() {
742
742
  15: de,
743
743
  21: 64
744
744
  },
745
- t(l, [2, 53], {
745
+ e(l, [2, 53], {
746
746
  59: 60,
747
747
  58: 61,
748
748
  4: d,
@@ -761,7 +761,7 @@ var parser = (function() {
761
761
  66: I,
762
762
  67: L
763
763
  }),
764
- t(l, [2, 56], {
764
+ e(l, [2, 56], {
765
765
  59: 60,
766
766
  58: 61,
767
767
  4: d,
@@ -780,7 +780,7 @@ var parser = (function() {
780
780
  66: I,
781
781
  67: L
782
782
  }),
783
- t(l, [2, 57], {
783
+ e(l, [2, 57], {
784
784
  59: 60,
785
785
  58: 61,
786
786
  4: d,
@@ -798,7 +798,7 @@ var parser = (function() {
798
798
  66: I,
799
799
  67: L
800
800
  }),
801
- t(l, [2, 58], {
801
+ e(l, [2, 58], {
802
802
  59: 60,
803
803
  58: 61,
804
804
  4: d,
@@ -816,7 +816,7 @@ var parser = (function() {
816
816
  66: I,
817
817
  67: L
818
818
  }),
819
- t(l, [2, 59], {
819
+ e(l, [2, 59], {
820
820
  59: 60,
821
821
  58: 61,
822
822
  4: d,
@@ -834,7 +834,7 @@ var parser = (function() {
834
834
  66: I,
835
835
  67: L
836
836
  }),
837
- t(l, [2, 60], {
837
+ e(l, [2, 60], {
838
838
  59: 60,
839
839
  58: 61,
840
840
  4: d,
@@ -854,10 +854,10 @@ var parser = (function() {
854
854
  }),
855
855
  { 45: [1, 80] },
856
856
  { 44: [1, 81] },
857
- t(B, [2, 65]),
858
- t(B, [2, 82]),
859
- t(B, [2, 83]),
860
- t(B, [2, 84]),
857
+ e(B, [2, 65]),
858
+ e(B, [2, 82]),
859
+ e(B, [2, 83]),
860
+ e(B, [2, 84]),
861
861
  {
862
862
  3: 83,
863
863
  4: ee,
@@ -874,20 +874,20 @@ var parser = (function() {
874
874
  15: de,
875
875
  18: [1, 82]
876
876
  },
877
- t(V, [2, 23]),
878
- t(V, [2, 1]),
879
- t(V, [2, 2]),
880
- t(V, [2, 3]),
881
- t(V, [2, 4]),
882
- t(V, [2, 5]),
883
- t(V, [2, 6]),
884
- t(V, [2, 7]),
885
- t(V, [2, 8]),
886
- t(V, [2, 9]),
887
- t(V, [2, 10]),
888
- t(V, [2, 11]),
889
- t(V, [2, 12]),
890
- t(l, [2, 52], {
877
+ e(V, [2, 23]),
878
+ e(V, [2, 1]),
879
+ e(V, [2, 2]),
880
+ e(V, [2, 3]),
881
+ e(V, [2, 4]),
882
+ e(V, [2, 5]),
883
+ e(V, [2, 6]),
884
+ e(V, [2, 7]),
885
+ e(V, [2, 8]),
886
+ e(V, [2, 9]),
887
+ e(V, [2, 10]),
888
+ e(V, [2, 11]),
889
+ e(V, [2, 12]),
890
+ e(l, [2, 52], {
891
891
  58: 31,
892
892
  43: 84,
893
893
  4: d,
@@ -905,7 +905,7 @@ var parser = (function() {
905
905
  66: I,
906
906
  67: L
907
907
  }),
908
- t(l, [2, 55], {
908
+ e(l, [2, 55], {
909
909
  58: 31,
910
910
  43: 85,
911
911
  4: d,
@@ -940,8 +940,8 @@ var parser = (function() {
940
940
  22: 89,
941
941
  23: 88
942
942
  },
943
- t(V, [2, 24]),
944
- t(l, [2, 51], {
943
+ e(V, [2, 24]),
944
+ e(l, [2, 51], {
945
945
  59: 60,
946
946
  58: 61,
947
947
  4: d,
@@ -959,7 +959,7 @@ var parser = (function() {
959
959
  66: I,
960
960
  67: L
961
961
  }),
962
- t(l, [2, 54], {
962
+ e(l, [2, 54], {
963
963
  59: 60,
964
964
  58: 61,
965
965
  4: d,
@@ -977,7 +977,7 @@ var parser = (function() {
977
977
  66: I,
978
978
  67: L
979
979
  }),
980
- t(l, [2, 47], {
980
+ e(l, [2, 47], {
981
981
  22: 89,
982
982
  16: 90,
983
983
  23: 101,
@@ -993,8 +993,8 @@ var parser = (function() {
993
993
  20: Z
994
994
  }),
995
995
  { 46: [1, 102] },
996
- t(l, [2, 29], { 10: fe }),
997
- t(pe, [2, 27], {
996
+ e(l, [2, 29], { 10: fe }),
997
+ e(pe, [2, 27], {
998
998
  16: 104,
999
999
  4: H,
1000
1000
  5: U,
@@ -1007,19 +1007,19 @@ var parser = (function() {
1007
1007
  19: X,
1008
1008
  20: Z
1009
1009
  }),
1010
- t(Q, [2, 25]),
1011
- t(Q, [2, 13]),
1012
- t(Q, [2, 14]),
1013
- t(Q, [2, 15]),
1014
- t(Q, [2, 16]),
1015
- t(Q, [2, 17]),
1016
- t(Q, [2, 18]),
1017
- t(Q, [2, 19]),
1018
- t(Q, [2, 20]),
1019
- t(Q, [2, 21]),
1020
- t(Q, [2, 22]),
1021
- t(l, [2, 49], { 10: fe }),
1022
- t(l, [2, 48], {
1010
+ e(Q, [2, 25]),
1011
+ e(Q, [2, 13]),
1012
+ e(Q, [2, 14]),
1013
+ e(Q, [2, 15]),
1014
+ e(Q, [2, 16]),
1015
+ e(Q, [2, 17]),
1016
+ e(Q, [2, 18]),
1017
+ e(Q, [2, 19]),
1018
+ e(Q, [2, 20]),
1019
+ e(Q, [2, 21]),
1020
+ e(Q, [2, 22]),
1021
+ e(l, [2, 49], { 10: fe }),
1022
+ e(l, [2, 48], {
1023
1023
  22: 89,
1024
1024
  16: 90,
1025
1025
  23: 105,
@@ -1048,9 +1048,9 @@ var parser = (function() {
1048
1048
  20: Z,
1049
1049
  22: 106
1050
1050
  },
1051
- t(Q, [2, 26]),
1052
- t(l, [2, 50], { 10: fe }),
1053
- t(pe, [2, 28], {
1051
+ e(Q, [2, 26]),
1052
+ e(l, [2, 50], { 10: fe }),
1053
+ e(pe, [2, 28], {
1054
1054
  16: 104,
1055
1055
  4: H,
1056
1056
  5: U,
@@ -1075,10 +1075,10 @@ var parser = (function() {
1075
1075
  throw n.hash = t, n;
1076
1076
  }
1077
1077
  }, "parseError"),
1078
- parse: /* @__PURE__ */ __name(function(t) {
1078
+ parse: /* @__PURE__ */ __name(function(e) {
1079
1079
  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: {} };
1080
1080
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1081
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1081
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1082
1082
  var v = h.yylloc;
1083
1083
  o.push(v);
1084
1084
  var y = h.options && h.options.ranges;
@@ -1966,31 +1966,31 @@ var diagram = {
1966
1966
  getAccDescription,
1967
1967
  setAccDescription
1968
1968
  },
1969
- renderer: { draw: /* @__PURE__ */ __name((n, i, a, o) => {
1970
- function c(e) {
1969
+ renderer: { draw: /* @__PURE__ */ __name((r, a, o, s) => {
1970
+ function l(e) {
1971
1971
  return e === "top" ? "hanging" : "middle";
1972
1972
  }
1973
- __name(c, "getDominantBaseLine");
1974
- function l(e) {
1973
+ __name(l, "getDominantBaseLine");
1974
+ function u(e) {
1975
1975
  return e === "left" ? "start" : "middle";
1976
1976
  }
1977
- __name(l, "getTextAnchor");
1978
- function u(e) {
1977
+ __name(u, "getTextAnchor");
1978
+ function d(e) {
1979
1979
  return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1980
1980
  }
1981
- __name(u, "getTransformation");
1982
- let d = getConfig2();
1983
- log.debug("Rendering quadrant chart\n" + n);
1984
- let f = d.securityLevel, p;
1985
- f === "sandbox" && (p = select_default("#i" + i));
1986
- let h = select_default(f === "sandbox" ? p.nodes()[0].contentDocument.body : "body").select(`[id="${i}"]`), g = h.append("g").attr("class", "main"), _ = d.quadrantChart?.chartWidth ?? 500, v = d.quadrantChart?.chartHeight ?? 500;
1987
- configureSvgSize(h, v, _, d.quadrantChart?.useMaxWidth ?? !0), h.attr("viewBox", "0 0 " + _ + " " + v), o.db.setHeight(v), o.db.setWidth(_);
1988
- let y = o.db.getQuadrantData(), b = g.append("g").attr("class", "quadrants"), x = g.append("g").attr("class", "border"), S = g.append("g").attr("class", "data-points"), C = g.append("g").attr("class", "labels"), w = g.append("g").attr("class", "title");
1989
- y.title && w.append("text").attr("x", 0).attr("y", 0).attr("fill", y.title.fill).attr("font-size", y.title.fontSize).attr("dominant-baseline", c(y.title.horizontalPos)).attr("text-anchor", l(y.title.verticalPos)).attr("transform", u(y.title)).text(y.title.text), y.borderLines && x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
1981
+ __name(d, "getTransformation");
1982
+ let f = getConfig2();
1983
+ log.debug("Rendering quadrant chart\n" + r);
1984
+ let p = f.securityLevel, m;
1985
+ p === "sandbox" && (m = select_default("#i" + a));
1986
+ let h = select_default(p === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${a}"]`), g = h.append("g").attr("class", "main"), _ = f.quadrantChart?.chartWidth ?? 500, v = f.quadrantChart?.chartHeight ?? 500;
1987
+ configureSvgSize(h, v, _, f.quadrantChart?.useMaxWidth ?? !0), h.attr("viewBox", "0 0 " + _ + " " + v), s.db.setHeight(v), s.db.setWidth(_);
1988
+ let y = s.db.getQuadrantData(), b = g.append("g").attr("class", "quadrants"), x = g.append("g").attr("class", "border"), S = g.append("g").attr("class", "data-points"), C = g.append("g").attr("class", "labels"), w = g.append("g").attr("class", "title");
1989
+ y.title && w.append("text").attr("x", 0).attr("y", 0).attr("fill", y.title.fill).attr("font-size", y.title.fontSize).attr("dominant-baseline", l(y.title.horizontalPos)).attr("text-anchor", u(y.title.verticalPos)).attr("transform", d(y.title)).text(y.title.text), y.borderLines && x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
1990
1990
  let T = b.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class", "quadrant");
1991
- T.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => c(e.text.horizontalPos)).attr("text-anchor", (e) => l(e.text.verticalPos)).attr("transform", (e) => u(e.text)).text((e) => e.text.text), C.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => c(e.horizontalPos)).attr("text-anchor", (e) => l(e.verticalPos)).attr("transform", (e) => u(e));
1991
+ T.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => l(e.text.horizontalPos)).attr("text-anchor", (e) => u(e.text.verticalPos)).attr("transform", (e) => d(e.text)).text((e) => e.text.text), C.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => l(e.horizontalPos)).attr("text-anchor", (e) => u(e.verticalPos)).attr("transform", (e) => d(e));
1992
1992
  let E = S.selectAll("g.data-point").data(y.points).enter().append("g").attr("class", "data-point");
1993
- E.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), E.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => c(e.text.horizontalPos)).attr("text-anchor", (e) => l(e.text.verticalPos)).attr("transform", (e) => u(e.text));
1993
+ E.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), E.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => l(e.text.horizontalPos)).attr("text-anchor", (e) => u(e.text.verticalPos)).attr("transform", (e) => d(e.text));
1994
1994
  }, "draw") },
1995
1995
  styles: /* @__PURE__ */ __name(() => "", "styles")
1996
1996
  };