@peasant-labs/fairtrade 0.0.47 → 0.0.49

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 (129) hide show
  1. package/dist/lib/abnfDiagram-WEYOIA3C-D4LMNFIJ.js +89 -0
  2. package/dist/lib/{adapter-Dulh38C2.js → adapter-CVKibszh.js} +209 -186
  3. package/dist/lib/arc-1xTxsoRi.js +80 -0
  4. package/dist/lib/architecture-WOLXFQ4H-c6RsZuzu.js +3 -0
  5. package/dist/lib/architectureDiagram-ZHVYKT53-DTINqD5R.js +4145 -0
  6. package/dist/lib/array-CApNbSU9.js +6 -0
  7. package/dist/lib/blockDiagram-RJAE7QA3-CUYHoR3g.js +1946 -0
  8. package/dist/lib/c4Diagram-XDPPPE54-Cdx6_DsI.js +2990 -0
  9. package/dist/lib/channel-DagAO2vE.js +5 -0
  10. package/dist/lib/chunk-2E7WHVMD-BzhgXW3b.js +490 -0
  11. package/dist/lib/chunk-2Q5K7J3B-DWNwIK5Y.js +15 -0
  12. package/dist/lib/chunk-4EMNKR2T-DhFrQz9k.js +236 -0
  13. package/dist/lib/chunk-55XCU76K-CI0GXDkJ.js +61 -0
  14. package/dist/lib/chunk-5VM5RSS4-BAQ-46g4.js +5 -0
  15. package/dist/lib/chunk-7S6XSTFO-CMt_p-O6.js +1373 -0
  16. package/dist/lib/chunk-AQDTSKZB-DrZccIQa.js +1847 -0
  17. package/dist/lib/chunk-DSNLSHJZ-CpA9d2CJ.js +4044 -0
  18. package/dist/lib/chunk-DUW6YSOI-C-tN4Kiv.js +10 -0
  19. package/dist/lib/chunk-EJLWFMJV-B30MNYvY.js +75 -0
  20. package/dist/lib/chunk-HAGFOTED-DMU2JNZM.js +4487 -0
  21. package/dist/lib/chunk-HNE4Q36P-BIA0n2gA.js +363 -0
  22. package/dist/lib/chunk-J5ZVWO5B-CA_-jk8G.js +12 -0
  23. package/dist/lib/chunk-JWPE2WC7-KRpHbrIX.js +8 -0
  24. package/dist/lib/chunk-LNGE3PJU-CMGaAEAh.js +1513 -0
  25. package/dist/lib/chunk-NGNAAXSQ-D7Dvct7J.js +19774 -0
  26. package/dist/lib/chunk-NQOKRVIF-MK9F46y3.js +4258 -0
  27. package/dist/lib/chunk-OYAV6JZA-B1yICcbU.js +10 -0
  28. package/dist/lib/chunk-UHW7PFBP-CLrOaA0y.js +67 -0
  29. package/dist/lib/chunk-VQ5W62QI-_ZR3gKe4.js +26 -0
  30. package/dist/lib/chunk-WQQL4CDK-DFtyhYZq.js +693 -0
  31. package/dist/lib/chunk-XXDRQBXY-uzyNBbgx.js +9 -0
  32. package/dist/lib/chunk-Y2CYZVJY-BYzrzvCI.js +12 -0
  33. package/dist/lib/chunk-YZO67HFG-D1jKt78p.js +275 -0
  34. package/dist/lib/chunk-ZAUX2LTX-7XO0Yj1z.js +37 -0
  35. package/dist/lib/chunk-ZCHMQSOR-CxoKltfF.js +349 -0
  36. package/dist/lib/classDiagram-v2-4MYWR3UA-BPvwhZqw.js +3397 -0
  37. package/dist/lib/commons.js +729 -729
  38. package/dist/lib/components.css +1 -1
  39. package/dist/lib/cose-bilkent-JH36ORCC-Oj79uOIQ.js +2250 -0
  40. package/dist/lib/cynefin-EF2NZ3EQ-COX3NRum.js +3 -0
  41. package/dist/lib/cynefinDiagram-WF24UDRP-UzTptNAX.js +349 -0
  42. package/dist/lib/cytoscape.esm-0ojxgO9x.js +18161 -0
  43. package/dist/lib/dagre-NK4GIZVX-DWZr-NGm.js +2356 -0
  44. package/dist/lib/defaultLocale-BbgDuMnp.js +201 -0
  45. package/dist/lib/diagram-CBK3MWTC-CsyKuv-w.js +525 -0
  46. package/dist/lib/diagram-I5XIIV2D-DWY2JSPC.js +134 -0
  47. package/dist/lib/diagram-ODIL2UCW-DUptj0JZ.js +301 -0
  48. package/dist/lib/diagram-PFBEJUXE-N5XnIBqM.js +447 -0
  49. package/dist/lib/diagram-RJA3I4VV-B9XgohYo.js +214 -0
  50. package/dist/lib/diagram-TYUNFSNR-XnsJIeAd.js +5084 -0
  51. package/dist/lib/dist-AMlsjiDX.js +59 -0
  52. package/dist/lib/ebnfDiagram-V4P3TTPT-BssHqFox.js +100 -0
  53. package/dist/lib/elk-QONTBCTQ-DwmwqYgP.js +47944 -0
  54. package/dist/lib/erDiagram-KYQIGQAA-BQiXw1Tw.js +1970 -0
  55. package/dist/lib/eventmodeling-K75KTNOO-DDb--yMc.js +3 -0
  56. package/dist/lib/flowDiagram-IUGLLWBU-BEqqF1y2.js +17 -0
  57. package/dist/lib/ganttDiagram-R7GPNTJY-BWtGXxEF.js +3094 -0
  58. package/dist/lib/gitGraph-VSP46ZUC-BSwOaak_.js +3 -0
  59. package/dist/lib/gitGraphDiagram-PDYL7XHY-CHGNuGbk.js +729 -0
  60. package/dist/lib/graphlib-Dndp26xU.js +1267 -0
  61. package/dist/lib/info-OHQRW6UA-Dk06sZRe.js +3 -0
  62. package/dist/lib/infoDiagram-MVDRKAX5-Cdhxnjmi.js +20 -0
  63. package/dist/lib/init-Bwwdo3M6.js +15 -0
  64. package/dist/lib/ishikawaDiagram-HPEHV2GE-Dzhti-GJ.js +719 -0
  65. package/dist/lib/journeyDiagram-BOSHW7O7-C3_vsSjw.js +884 -0
  66. package/dist/lib/kanban-definition-FNSA4HC5-XsfCEsjn.js +976 -0
  67. package/dist/lib/katex-Dw0PnoPU.js +21850 -0
  68. package/dist/lib/line-C9krU3Sv.js +34 -0
  69. package/dist/lib/linear-Cvilv3OA.js +289 -0
  70. package/dist/lib/mermaid-parser.core-I7qQ_fxz.js +638 -0
  71. package/dist/lib/mermaid.core-UNHMAbBP.js +1126 -0
  72. package/dist/lib/mindmap-definition-6OY57UG3-CAua-JvB.js +1011 -0
  73. package/dist/lib/ordinal-C55HfHHp.js +65 -0
  74. package/dist/lib/packet-JDAUHWVQ-DZ-MKx4I.js +3 -0
  75. package/dist/lib/path-DNvJyUE8.js +85 -0
  76. package/dist/lib/pegDiagram-ECIUJNBX-BCxa_IO0.js +94 -0
  77. package/dist/lib/pie-XZMESJXO-DpCa-Nnq.js +3 -0
  78. package/dist/lib/pieDiagram-GNMPY74T-CE_C3dCB.js +205 -0
  79. package/dist/lib/quadrantDiagram-D57K4MC3-CDgzdMoL.js +2001 -0
  80. package/dist/lib/radar-ABXABTNO-BOVK7L9p.js +3 -0
  81. package/dist/lib/railroad-I3PHUGI6-B6spKM0Z.js +3 -0
  82. package/dist/lib/railroad-abnf-LNEFI6M7-DEWqfByZ.js +3 -0
  83. package/dist/lib/railroad-ebnf-DWYD2UWJ-CWRLtxHB.js +3 -0
  84. package/dist/lib/railroad-peg-JR7BVNR7-C-3NHSsk.js +3 -0
  85. package/dist/lib/railroadDiagram-Y72NRBL7-a8YVk8LT.js +76 -0
  86. package/dist/lib/requirementDiagram-EQYSW5RA-B9HolqxU.js +2228 -0
  87. package/dist/lib/rough.esm-a8mysczE.js +1352 -0
  88. package/dist/lib/sankeyDiagram-SY24JHO5-CLFMtMJG.js +970 -0
  89. package/dist/lib/sequenceDiagram-BLEHNHQU-B5wfSV85.js +4253 -0
  90. package/dist/lib/share.js +1 -1
  91. package/dist/lib/sizeCapture-INFHLROL-BWGCc9aa.js +46 -0
  92. package/dist/lib/src-Dcy0zUZH.js +2153 -0
  93. package/dist/lib/stateDiagram-v2-A6IESKWZ-C92vye4N.js +2143 -0
  94. package/dist/lib/swimlanes-B3ENRKFQ-B6-i-tPc.js +4764 -0
  95. package/dist/lib/swimlanesDiagram-AYQRV4AK-CbkBeql-.js +28 -0
  96. package/dist/lib/timeline-definition-JXYKGLGB-D2Ip4r72.js +1073 -0
  97. package/dist/lib/treeView-D4JQ5SDB-CFaKQ_2T.js +3 -0
  98. package/dist/lib/treemap-SAJKECNS-BQ6z7Z3g.js +3 -0
  99. package/dist/lib/types/AppSidebar.d.ts +14 -1
  100. package/dist/lib/types/transcript/Collapsible.d.ts +10 -0
  101. package/dist/lib/types/transcript/FiltersRail.d.ts +1 -0
  102. package/dist/lib/types/transcript/MermaidBlock.d.ts +3 -0
  103. package/dist/lib/types/transcript/Thinking.d.ts +1 -1
  104. package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
  105. package/dist/lib/types/transcript/TranscriptViewer.d.ts +2 -2
  106. package/dist/lib/types/transcript/TurnCard.d.ts +3 -1
  107. package/dist/lib/types/transcript/UnverifiedPullRequests.d.ts +12 -0
  108. package/dist/lib/types/transcript/WorkGroup.d.ts +9 -0
  109. package/dist/lib/types/transcript/action-groups.d.ts +9 -0
  110. package/dist/lib/types/transcript/adapter.d.ts +12 -0
  111. package/dist/lib/types/transcript/filters.d.ts +5 -5
  112. package/dist/lib/types/transcript/index.d.ts +2 -1
  113. package/dist/lib/types/transcript/mermaidSource.d.ts +2 -0
  114. package/dist/lib/types/transcript/mermaidSvg.d.ts +1 -0
  115. package/dist/lib/types/transcript/state-capabilities.d.ts +38 -11
  116. package/dist/lib/types/transcript/tool-state-key.d.ts +2 -0
  117. package/dist/lib/types/transcript/useReaderWidthAnchor.d.ts +20 -0
  118. package/dist/lib/types/transcript/view-model.d.ts +19 -0
  119. package/dist/lib/types/transcript/work-summary.d.ts +8 -0
  120. package/dist/lib/types/ui/transcript/adapter.d.ts +12 -0
  121. package/dist/lib/types/ui/transcript/view-model.d.ts +19 -0
  122. package/dist/lib/{ui-CrH0SVd_.js → ui-Beoq-HpN.js} +5345 -4232
  123. package/dist/lib/ui.js +6 -6
  124. package/dist/lib/usecaseDiagram-WPOLBNNX-BK1Anch1.js +7190 -0
  125. package/dist/lib/vennDiagram-Q3Y3IDCW-B6YTBqTS.js +1880 -0
  126. package/dist/lib/wardley-7MLQ67FV-DChYwu4i.js +3 -0
  127. package/dist/lib/wardleyDiagram-IVAIDKWA-D5I1qLUK.js +645 -0
  128. package/dist/lib/xychartDiagram-4URNHDU4-B6RXyhTO.js +2218 -0
  129. package/package.json +3 -2
@@ -0,0 +1,1373 @@
1
+ import { m as e, p as t } from "./src-Dcy0zUZH.js";
2
+ import { n } from "./chunk-Y2CYZVJY-BYzrzvCI.js";
3
+ import { R as r, h as i, p as a, r as o, s } from "./chunk-DSNLSHJZ-CpA9d2CJ.js";
4
+ import { t as c } from "./dist-AMlsjiDX.js";
5
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
6
+ function l(e) {
7
+ this._context = e;
8
+ }
9
+ l.prototype = {
10
+ areaStart: function() {
11
+ this._line = 0;
12
+ },
13
+ areaEnd: function() {
14
+ this._line = NaN;
15
+ },
16
+ lineStart: function() {
17
+ this._point = 0;
18
+ },
19
+ lineEnd: function() {
20
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
21
+ },
22
+ point: function(e, t) {
23
+ switch (e = +e, t = +t, this._point) {
24
+ case 0:
25
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
26
+ break;
27
+ case 1: this._point = 2;
28
+ default:
29
+ this._context.lineTo(e, t);
30
+ break;
31
+ }
32
+ }
33
+ };
34
+ function u(e) {
35
+ return new l(e);
36
+ }
37
+ //#endregion
38
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
39
+ var d = class {
40
+ constructor(e, t) {
41
+ this._context = e, this._x = t;
42
+ }
43
+ areaStart() {
44
+ this._line = 0;
45
+ }
46
+ areaEnd() {
47
+ this._line = NaN;
48
+ }
49
+ lineStart() {
50
+ this._point = 0;
51
+ }
52
+ lineEnd() {
53
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
54
+ }
55
+ point(e, t) {
56
+ switch (e = +e, t = +t, this._point) {
57
+ case 0:
58
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
59
+ break;
60
+ case 1: this._point = 2;
61
+ default:
62
+ this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
63
+ break;
64
+ }
65
+ this._x0 = e, this._y0 = t;
66
+ }
67
+ };
68
+ function f(e) {
69
+ return new d(e, !0);
70
+ }
71
+ function p(e) {
72
+ return new d(e, !1);
73
+ }
74
+ //#endregion
75
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
76
+ function m() {}
77
+ //#endregion
78
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
79
+ function h(e, t, n) {
80
+ e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
81
+ }
82
+ function g(e) {
83
+ this._context = e;
84
+ }
85
+ g.prototype = {
86
+ areaStart: function() {
87
+ this._line = 0;
88
+ },
89
+ areaEnd: function() {
90
+ this._line = NaN;
91
+ },
92
+ lineStart: function() {
93
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
94
+ },
95
+ lineEnd: function() {
96
+ switch (this._point) {
97
+ case 3: h(this, this._x1, this._y1);
98
+ case 2:
99
+ this._context.lineTo(this._x1, this._y1);
100
+ break;
101
+ }
102
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
103
+ },
104
+ point: function(e, t) {
105
+ switch (e = +e, t = +t, this._point) {
106
+ case 0:
107
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
108
+ break;
109
+ case 1:
110
+ this._point = 2;
111
+ break;
112
+ case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
113
+ default:
114
+ h(this, e, t);
115
+ break;
116
+ }
117
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
118
+ }
119
+ };
120
+ function ee(e) {
121
+ return new g(e);
122
+ }
123
+ //#endregion
124
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
125
+ function te(e) {
126
+ this._context = e;
127
+ }
128
+ te.prototype = {
129
+ areaStart: m,
130
+ areaEnd: m,
131
+ lineStart: function() {
132
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
133
+ },
134
+ lineEnd: function() {
135
+ switch (this._point) {
136
+ case 1:
137
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
138
+ break;
139
+ case 2:
140
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
141
+ break;
142
+ case 3:
143
+ this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
144
+ break;
145
+ }
146
+ },
147
+ point: function(e, t) {
148
+ switch (e = +e, t = +t, this._point) {
149
+ case 0:
150
+ this._point = 1, this._x2 = e, this._y2 = t;
151
+ break;
152
+ case 1:
153
+ this._point = 2, this._x3 = e, this._y3 = t;
154
+ break;
155
+ case 2:
156
+ this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
157
+ break;
158
+ default:
159
+ h(this, e, t);
160
+ break;
161
+ }
162
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
163
+ }
164
+ };
165
+ function ne(e) {
166
+ return new te(e);
167
+ }
168
+ //#endregion
169
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
170
+ function re(e) {
171
+ this._context = e;
172
+ }
173
+ re.prototype = {
174
+ areaStart: function() {
175
+ this._line = 0;
176
+ },
177
+ areaEnd: function() {
178
+ this._line = NaN;
179
+ },
180
+ lineStart: function() {
181
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
182
+ },
183
+ lineEnd: function() {
184
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
185
+ },
186
+ point: function(e, t) {
187
+ switch (e = +e, t = +t, this._point) {
188
+ case 0:
189
+ this._point = 1;
190
+ break;
191
+ case 1:
192
+ this._point = 2;
193
+ break;
194
+ case 2:
195
+ this._point = 3;
196
+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
197
+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
198
+ break;
199
+ case 3: this._point = 4;
200
+ default:
201
+ h(this, e, t);
202
+ break;
203
+ }
204
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
205
+ }
206
+ };
207
+ function ie(e) {
208
+ return new re(e);
209
+ }
210
+ //#endregion
211
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.js
212
+ function ae(e, t) {
213
+ this._basis = new g(e), this._beta = t;
214
+ }
215
+ ae.prototype = {
216
+ lineStart: function() {
217
+ this._x = [], this._y = [], this._basis.lineStart();
218
+ },
219
+ lineEnd: function() {
220
+ var e = this._x, t = this._y, n = e.length - 1;
221
+ if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
222
+ this._x = this._y = null, this._basis.lineEnd();
223
+ },
224
+ point: function(e, t) {
225
+ this._x.push(+e), this._y.push(+t);
226
+ }
227
+ };
228
+ var oe = (function e(t) {
229
+ function n(e) {
230
+ return t === 1 ? new g(e) : new ae(e, t);
231
+ }
232
+ return n.beta = function(t) {
233
+ return e(+t);
234
+ }, n;
235
+ })(.85);
236
+ //#endregion
237
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.js
238
+ function _(e, t, n) {
239
+ e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
240
+ }
241
+ function v(e, t) {
242
+ this._context = e, this._k = (1 - t) / 6;
243
+ }
244
+ v.prototype = {
245
+ areaStart: function() {
246
+ this._line = 0;
247
+ },
248
+ areaEnd: function() {
249
+ this._line = NaN;
250
+ },
251
+ lineStart: function() {
252
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
253
+ },
254
+ lineEnd: function() {
255
+ switch (this._point) {
256
+ case 2:
257
+ this._context.lineTo(this._x2, this._y2);
258
+ break;
259
+ case 3:
260
+ _(this, this._x1, this._y1);
261
+ break;
262
+ }
263
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
264
+ },
265
+ point: function(e, t) {
266
+ switch (e = +e, t = +t, this._point) {
267
+ case 0:
268
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
269
+ break;
270
+ case 1:
271
+ this._point = 2, this._x1 = e, this._y1 = t;
272
+ break;
273
+ case 2: this._point = 3;
274
+ default:
275
+ _(this, e, t);
276
+ break;
277
+ }
278
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
279
+ }
280
+ };
281
+ var se = (function e(t) {
282
+ function n(e) {
283
+ return new v(e, t);
284
+ }
285
+ return n.tension = function(t) {
286
+ return e(+t);
287
+ }, n;
288
+ })(0);
289
+ //#endregion
290
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.js
291
+ function y(e, t) {
292
+ this._context = e, this._k = (1 - t) / 6;
293
+ }
294
+ y.prototype = {
295
+ areaStart: m,
296
+ areaEnd: m,
297
+ lineStart: function() {
298
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
299
+ },
300
+ lineEnd: function() {
301
+ switch (this._point) {
302
+ case 1:
303
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
304
+ break;
305
+ case 2:
306
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
307
+ break;
308
+ case 3:
309
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
310
+ break;
311
+ }
312
+ },
313
+ point: function(e, t) {
314
+ switch (e = +e, t = +t, this._point) {
315
+ case 0:
316
+ this._point = 1, this._x3 = e, this._y3 = t;
317
+ break;
318
+ case 1:
319
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
320
+ break;
321
+ case 2:
322
+ this._point = 3, this._x5 = e, this._y5 = t;
323
+ break;
324
+ default:
325
+ _(this, e, t);
326
+ break;
327
+ }
328
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
329
+ }
330
+ };
331
+ var ce = (function e(t) {
332
+ function n(e) {
333
+ return new y(e, t);
334
+ }
335
+ return n.tension = function(t) {
336
+ return e(+t);
337
+ }, n;
338
+ })(0);
339
+ //#endregion
340
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.js
341
+ function b(e, t) {
342
+ this._context = e, this._k = (1 - t) / 6;
343
+ }
344
+ b.prototype = {
345
+ areaStart: function() {
346
+ this._line = 0;
347
+ },
348
+ areaEnd: function() {
349
+ this._line = NaN;
350
+ },
351
+ lineStart: function() {
352
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
353
+ },
354
+ lineEnd: function() {
355
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
356
+ },
357
+ point: function(e, t) {
358
+ switch (e = +e, t = +t, this._point) {
359
+ case 0:
360
+ this._point = 1;
361
+ break;
362
+ case 1:
363
+ this._point = 2;
364
+ break;
365
+ case 2:
366
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
367
+ break;
368
+ case 3: this._point = 4;
369
+ default:
370
+ _(this, e, t);
371
+ break;
372
+ }
373
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
374
+ }
375
+ };
376
+ var le = (function e(t) {
377
+ function n(e) {
378
+ return new b(e, t);
379
+ }
380
+ return n.tension = function(t) {
381
+ return e(+t);
382
+ }, n;
383
+ })(0);
384
+ //#endregion
385
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.js
386
+ function x(e, t, n) {
387
+ var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
388
+ if (e._l01_a > 1e-12) {
389
+ var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
390
+ r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
391
+ }
392
+ if (e._l23_a > 1e-12) {
393
+ var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
394
+ a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
395
+ }
396
+ e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
397
+ }
398
+ function ue(e, t) {
399
+ this._context = e, this._alpha = t;
400
+ }
401
+ ue.prototype = {
402
+ areaStart: function() {
403
+ this._line = 0;
404
+ },
405
+ areaEnd: function() {
406
+ this._line = NaN;
407
+ },
408
+ lineStart: function() {
409
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
410
+ },
411
+ lineEnd: function() {
412
+ switch (this._point) {
413
+ case 2:
414
+ this._context.lineTo(this._x2, this._y2);
415
+ break;
416
+ case 3:
417
+ this.point(this._x2, this._y2);
418
+ break;
419
+ }
420
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
421
+ },
422
+ point: function(e, t) {
423
+ if (e = +e, t = +t, this._point) {
424
+ var n = this._x2 - e, r = this._y2 - t;
425
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
426
+ }
427
+ switch (this._point) {
428
+ case 0:
429
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
430
+ break;
431
+ case 1:
432
+ this._point = 2;
433
+ break;
434
+ case 2: this._point = 3;
435
+ default:
436
+ x(this, e, t);
437
+ break;
438
+ }
439
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
440
+ }
441
+ };
442
+ var de = (function e(t) {
443
+ function n(e) {
444
+ return t ? new ue(e, t) : new v(e, 0);
445
+ }
446
+ return n.alpha = function(t) {
447
+ return e(+t);
448
+ }, n;
449
+ })(.5);
450
+ //#endregion
451
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.js
452
+ function fe(e, t) {
453
+ this._context = e, this._alpha = t;
454
+ }
455
+ fe.prototype = {
456
+ areaStart: m,
457
+ areaEnd: m,
458
+ lineStart: function() {
459
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
460
+ },
461
+ lineEnd: function() {
462
+ switch (this._point) {
463
+ case 1:
464
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
465
+ break;
466
+ case 2:
467
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
468
+ break;
469
+ case 3:
470
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
471
+ break;
472
+ }
473
+ },
474
+ point: function(e, t) {
475
+ if (e = +e, t = +t, this._point) {
476
+ var n = this._x2 - e, r = this._y2 - t;
477
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
478
+ }
479
+ switch (this._point) {
480
+ case 0:
481
+ this._point = 1, this._x3 = e, this._y3 = t;
482
+ break;
483
+ case 1:
484
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
485
+ break;
486
+ case 2:
487
+ this._point = 3, this._x5 = e, this._y5 = t;
488
+ break;
489
+ default:
490
+ x(this, e, t);
491
+ break;
492
+ }
493
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
494
+ }
495
+ };
496
+ var pe = (function e(t) {
497
+ function n(e) {
498
+ return t ? new fe(e, t) : new y(e, 0);
499
+ }
500
+ return n.alpha = function(t) {
501
+ return e(+t);
502
+ }, n;
503
+ })(.5);
504
+ //#endregion
505
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.js
506
+ function me(e, t) {
507
+ this._context = e, this._alpha = t;
508
+ }
509
+ me.prototype = {
510
+ areaStart: function() {
511
+ this._line = 0;
512
+ },
513
+ areaEnd: function() {
514
+ this._line = NaN;
515
+ },
516
+ lineStart: function() {
517
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
518
+ },
519
+ lineEnd: function() {
520
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
521
+ },
522
+ point: function(e, t) {
523
+ if (e = +e, t = +t, this._point) {
524
+ var n = this._x2 - e, r = this._y2 - t;
525
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
526
+ }
527
+ switch (this._point) {
528
+ case 0:
529
+ this._point = 1;
530
+ break;
531
+ case 1:
532
+ this._point = 2;
533
+ break;
534
+ case 2:
535
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
536
+ break;
537
+ case 3: this._point = 4;
538
+ default:
539
+ x(this, e, t);
540
+ break;
541
+ }
542
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
543
+ }
544
+ };
545
+ var he = (function e(t) {
546
+ function n(e) {
547
+ return t ? new me(e, t) : new b(e, 0);
548
+ }
549
+ return n.alpha = function(t) {
550
+ return e(+t);
551
+ }, n;
552
+ })(.5);
553
+ //#endregion
554
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
555
+ function ge(e) {
556
+ this._context = e;
557
+ }
558
+ ge.prototype = {
559
+ areaStart: m,
560
+ areaEnd: m,
561
+ lineStart: function() {
562
+ this._point = 0;
563
+ },
564
+ lineEnd: function() {
565
+ this._point && this._context.closePath();
566
+ },
567
+ point: function(e, t) {
568
+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
569
+ }
570
+ };
571
+ function _e(e) {
572
+ return new ge(e);
573
+ }
574
+ //#endregion
575
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
576
+ function ve(e) {
577
+ return e < 0 ? -1 : 1;
578
+ }
579
+ function ye(e, t, n) {
580
+ var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
581
+ return (ve(a) + ve(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
582
+ }
583
+ function be(e, t) {
584
+ var n = e._x1 - e._x0;
585
+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
586
+ }
587
+ function S(e, t, n) {
588
+ var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
589
+ e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
590
+ }
591
+ function C(e) {
592
+ this._context = e;
593
+ }
594
+ C.prototype = {
595
+ areaStart: function() {
596
+ this._line = 0;
597
+ },
598
+ areaEnd: function() {
599
+ this._line = NaN;
600
+ },
601
+ lineStart: function() {
602
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
603
+ },
604
+ lineEnd: function() {
605
+ switch (this._point) {
606
+ case 2:
607
+ this._context.lineTo(this._x1, this._y1);
608
+ break;
609
+ case 3:
610
+ S(this, this._t0, be(this, this._t0));
611
+ break;
612
+ }
613
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
614
+ },
615
+ point: function(e, t) {
616
+ var n = NaN;
617
+ if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
618
+ switch (this._point) {
619
+ case 0:
620
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
621
+ break;
622
+ case 1:
623
+ this._point = 2;
624
+ break;
625
+ case 2:
626
+ this._point = 3, S(this, be(this, n = ye(this, e, t)), n);
627
+ break;
628
+ default:
629
+ S(this, this._t0, n = ye(this, e, t));
630
+ break;
631
+ }
632
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
633
+ }
634
+ }
635
+ };
636
+ function xe(e) {
637
+ this._context = new Se(e);
638
+ }
639
+ (xe.prototype = Object.create(C.prototype)).point = function(e, t) {
640
+ C.prototype.point.call(this, t, e);
641
+ };
642
+ function Se(e) {
643
+ this._context = e;
644
+ }
645
+ Se.prototype = {
646
+ moveTo: function(e, t) {
647
+ this._context.moveTo(t, e);
648
+ },
649
+ closePath: function() {
650
+ this._context.closePath();
651
+ },
652
+ lineTo: function(e, t) {
653
+ this._context.lineTo(t, e);
654
+ },
655
+ bezierCurveTo: function(e, t, n, r, i, a) {
656
+ this._context.bezierCurveTo(t, e, r, n, a, i);
657
+ }
658
+ };
659
+ function Ce(e) {
660
+ return new C(e);
661
+ }
662
+ function we(e) {
663
+ return new xe(e);
664
+ }
665
+ //#endregion
666
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
667
+ function Te(e) {
668
+ this._context = e;
669
+ }
670
+ Te.prototype = {
671
+ areaStart: function() {
672
+ this._line = 0;
673
+ },
674
+ areaEnd: function() {
675
+ this._line = NaN;
676
+ },
677
+ lineStart: function() {
678
+ this._x = [], this._y = [];
679
+ },
680
+ lineEnd: function() {
681
+ var e = this._x, t = this._y, n = e.length;
682
+ if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
683
+ else for (var r = Ee(e), i = Ee(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
684
+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
685
+ },
686
+ point: function(e, t) {
687
+ this._x.push(+e), this._y.push(+t);
688
+ }
689
+ };
690
+ function Ee(e) {
691
+ var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
692
+ for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
693
+ for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
694
+ for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
695
+ for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
696
+ return [i, a];
697
+ }
698
+ function De(e) {
699
+ return new Te(e);
700
+ }
701
+ //#endregion
702
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
703
+ function w(e, t) {
704
+ this._context = e, this._t = t;
705
+ }
706
+ w.prototype = {
707
+ areaStart: function() {
708
+ this._line = 0;
709
+ },
710
+ areaEnd: function() {
711
+ this._line = NaN;
712
+ },
713
+ lineStart: function() {
714
+ this._x = this._y = NaN, this._point = 0;
715
+ },
716
+ lineEnd: function() {
717
+ 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
718
+ },
719
+ point: function(e, t) {
720
+ switch (e = +e, t = +t, this._point) {
721
+ case 0:
722
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
723
+ break;
724
+ case 1: this._point = 2;
725
+ default:
726
+ if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
727
+ else {
728
+ var n = this._x * (1 - this._t) + e * this._t;
729
+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);
730
+ }
731
+ break;
732
+ }
733
+ this._x = e, this._y = t;
734
+ }
735
+ };
736
+ function T(e) {
737
+ return new w(e, .5);
738
+ }
739
+ function E(e) {
740
+ return new w(e, 0);
741
+ }
742
+ function D(e) {
743
+ return new w(e, 1);
744
+ }
745
+ //#endregion
746
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/function/memoize.mjs
747
+ function O(e, t) {
748
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
749
+ let n = function(...r) {
750
+ let i = t ? t.apply(this, r) : r[0], a = n.cache;
751
+ if (a.has(i)) return a.get(i);
752
+ let o = e.apply(this, r);
753
+ return n.cache = a.set(i, o) || a, o;
754
+ };
755
+ return n.cache = new (O.Cache || Map)(), n;
756
+ }
757
+ O.Cache = Map;
758
+ //#endregion
759
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
760
+ function k(e) {
761
+ return e == null || typeof e != "object" && typeof e != "function";
762
+ }
763
+ //#endregion
764
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
765
+ function A(e) {
766
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
767
+ }
768
+ //#endregion
769
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
770
+ var Oe = "[object RegExp]", j = "[object String]", M = "[object Number]", N = "[object Boolean]", P = "[object Arguments]", ke = "[object Symbol]", Ae = "[object Date]", je = "[object Map]", Me = "[object Set]", Ne = "[object Array]", Pe = "[object ArrayBuffer]", Fe = "[object Object]", Ie = "[object DataView]", Le = "[object Uint8Array]", Re = "[object Uint8ClampedArray]", ze = "[object Uint16Array]", Be = "[object Uint32Array]", Ve = "[object Int8Array]", He = "[object Int16Array]", Ue = "[object Int32Array]", We = "[object Float32Array]", Ge = "[object Float64Array]";
771
+ //#endregion
772
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
773
+ function F(e) {
774
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
775
+ }
776
+ //#endregion
777
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
778
+ function I(e) {
779
+ return F(e);
780
+ }
781
+ //#endregion
782
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/function/noop.mjs
783
+ function Ke() {}
784
+ //#endregion
785
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/object/clone.mjs
786
+ function qe(e) {
787
+ if (k(e)) return e;
788
+ if (Array.isArray(e) || F(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
789
+ let t = Object.getPrototypeOf(e);
790
+ if (t == null) return Object.assign(Object.create(t), e);
791
+ let n = t.constructor;
792
+ if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
793
+ if (e instanceof RegExp) {
794
+ let t = new n(e);
795
+ return t.lastIndex = e.lastIndex, t;
796
+ }
797
+ if (e instanceof DataView) return new n(e.buffer.slice(0));
798
+ if (e instanceof Error) {
799
+ let t;
800
+ return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
801
+ }
802
+ return typeof File < "u" && e instanceof File ? new n([e], e.name, {
803
+ type: e.type,
804
+ lastModified: e.lastModified
805
+ }) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
806
+ }
807
+ //#endregion
808
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
809
+ function Je(e) {
810
+ return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
811
+ }
812
+ //#endregion
813
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/_internal/globalThis.mjs
814
+ var Ye = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
815
+ return this;
816
+ })();
817
+ //#endregion
818
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/predicate/isBuffer.mjs
819
+ function L(e) {
820
+ return Ye.Buffer !== void 0 && Ye.Buffer.isBuffer(e);
821
+ }
822
+ //#endregion
823
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
824
+ function Xe(e) {
825
+ return e === "__proto__";
826
+ }
827
+ //#endregion
828
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
829
+ function R(e) {
830
+ if (typeof e != "object" || !e) return !1;
831
+ if (Object.getPrototypeOf(e) === null) return !0;
832
+ if (Object.prototype.toString.call(e) !== "[object Object]") {
833
+ let t = e[Symbol.toStringTag];
834
+ return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
835
+ }
836
+ let t = e;
837
+ for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
838
+ return Object.getPrototypeOf(e) === t;
839
+ }
840
+ //#endregion
841
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
842
+ function Ze(e, t) {
843
+ return z(e, void 0, e, /* @__PURE__ */ new Map(), t);
844
+ }
845
+ function z(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
846
+ let a = i?.(e, t, n, r);
847
+ if (a !== void 0) return a;
848
+ if (k(e)) return e;
849
+ if (r.has(e)) return r.get(e);
850
+ if (Array.isArray(e)) {
851
+ let t = Array(e.length);
852
+ r.set(e, t);
853
+ for (let a = 0; a < e.length; a++) t[a] = z(e[a], a, n, r, i);
854
+ return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
855
+ }
856
+ if (e instanceof Date) return new Date(e.getTime());
857
+ if (e instanceof RegExp) {
858
+ let t = new RegExp(e.source, e.flags);
859
+ return t.lastIndex = e.lastIndex, t;
860
+ }
861
+ if (e instanceof Map) {
862
+ let t = /* @__PURE__ */ new Map();
863
+ r.set(e, t);
864
+ for (let [a, o] of e) t.set(a, z(o, a, n, r, i));
865
+ return t;
866
+ }
867
+ if (e instanceof Set) {
868
+ let t = /* @__PURE__ */ new Set();
869
+ r.set(e, t);
870
+ for (let a of e) t.add(z(a, void 0, n, r, i));
871
+ return t;
872
+ }
873
+ if (L(e)) return e.subarray();
874
+ if (F(e)) {
875
+ let t = new (Object.getPrototypeOf(e)).constructor(e.length);
876
+ r.set(e, t);
877
+ for (let a = 0; a < e.length; a++) t[a] = z(e[a], a, n, r, i);
878
+ return t;
879
+ }
880
+ if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
881
+ if (e instanceof DataView) {
882
+ let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
883
+ return r.set(e, t), B(t, e, n, r, i), t;
884
+ }
885
+ if (typeof File < "u" && e instanceof File) {
886
+ let t = new File([e], e.name, { type: e.type });
887
+ return r.set(e, t), B(t, e, n, r, i), t;
888
+ }
889
+ if (typeof Blob < "u" && e instanceof Blob) {
890
+ let t = new Blob([e], { type: e.type });
891
+ return r.set(e, t), B(t, e, n, r, i), t;
892
+ }
893
+ if (e instanceof Error) {
894
+ let t = structuredClone(e);
895
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, B(t, e, n, r, i), t;
896
+ }
897
+ if (e instanceof Boolean) {
898
+ let t = new Boolean(e.valueOf());
899
+ return r.set(e, t), B(t, e, n, r, i), t;
900
+ }
901
+ if (e instanceof Number) {
902
+ let t = new Number(e.valueOf());
903
+ return r.set(e, t), B(t, e, n, r, i), t;
904
+ }
905
+ if (e instanceof String) {
906
+ let t = new String(e.valueOf());
907
+ return r.set(e, t), B(t, e, n, r, i), t;
908
+ }
909
+ if (typeof e == "object" && Qe(e)) {
910
+ let t = Object.create(Object.getPrototypeOf(e));
911
+ return r.set(e, t), B(t, e, n, r, i), t;
912
+ }
913
+ return e;
914
+ }
915
+ function B(e, t, n = e, r, i) {
916
+ let a = [...Object.keys(t), ...Je(t)];
917
+ for (let o = 0; o < a.length; o++) {
918
+ let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
919
+ (c == null || c.writable) && (e[s] = z(t[s], s, n, r, i));
920
+ }
921
+ }
922
+ function Qe(e) {
923
+ switch (A(e)) {
924
+ case P:
925
+ case Ne:
926
+ case Pe:
927
+ case Ie:
928
+ case N:
929
+ case Ae:
930
+ case We:
931
+ case Ge:
932
+ case Ve:
933
+ case He:
934
+ case Ue:
935
+ case je:
936
+ case M:
937
+ case Fe:
938
+ case Oe:
939
+ case Me:
940
+ case j:
941
+ case ke:
942
+ case Le:
943
+ case Re:
944
+ case ze:
945
+ case Be: return !0;
946
+ default: return !1;
947
+ }
948
+ }
949
+ //#endregion
950
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
951
+ function $e(e, t) {
952
+ return Ze(e, (n, r, i, a) => {
953
+ let o = t?.(n, r, i, a);
954
+ if (o !== void 0) return o;
955
+ if (typeof e == "object") {
956
+ if (A(e) === "[object Object]" && typeof e.constructor != "function") {
957
+ let t = {};
958
+ return a.set(e, t), B(t, e, i, a), t;
959
+ }
960
+ switch (Object.prototype.toString.call(e)) {
961
+ case M:
962
+ case j:
963
+ case N: {
964
+ let t = new e.constructor(e?.valueOf());
965
+ return B(t, e), t;
966
+ }
967
+ case P: {
968
+ let t = {};
969
+ return B(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
970
+ }
971
+ default: return;
972
+ }
973
+ }
974
+ });
975
+ }
976
+ //#endregion
977
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
978
+ function et(e) {
979
+ return $e(e);
980
+ }
981
+ //#endregion
982
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
983
+ function V(e) {
984
+ return typeof e == "object" && !!e && A(e) === "[object Arguments]";
985
+ }
986
+ //#endregion
987
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
988
+ function H(e) {
989
+ return typeof e == "object" && !!e;
990
+ }
991
+ //#endregion
992
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/predicate/isLength.mjs
993
+ function tt(e) {
994
+ return Number.isSafeInteger(e) && e >= 0;
995
+ }
996
+ //#endregion
997
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
998
+ function nt(e) {
999
+ return e != null && typeof e != "function" && tt(e.length);
1000
+ }
1001
+ //#endregion
1002
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
1003
+ function rt(e) {
1004
+ return H(e) && nt(e);
1005
+ }
1006
+ //#endregion
1007
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
1008
+ function it(e, ...t) {
1009
+ let n = t.slice(0, -1), r = t[t.length - 1], i = e;
1010
+ for (let e = 0; e < n.length; e++) {
1011
+ let t = n[e];
1012
+ i = U(i, t, r, /* @__PURE__ */ new Map());
1013
+ }
1014
+ return i;
1015
+ }
1016
+ function U(e, t, n, r) {
1017
+ if (k(e) && (e = Object(e)), typeof t != "object" || !t) return e;
1018
+ if (r.has(t)) return qe(r.get(t));
1019
+ if (r.set(t, e), Array.isArray(t)) {
1020
+ t = t.slice();
1021
+ for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
1022
+ }
1023
+ let i = [...Object.keys(t), ...Je(t)];
1024
+ for (let a = 0; a < i.length; a++) {
1025
+ let o = i[a];
1026
+ if (Xe(o)) continue;
1027
+ let s = t[o], c = e[o];
1028
+ if (V(s) && (s = { ...s }), V(c) && (c = { ...c }), L(s) && (s = et(s)), Array.isArray(s)) if (Array.isArray(c)) {
1029
+ let e = [], t = Reflect.ownKeys(c);
1030
+ for (let n = 0; n < t.length; n++) {
1031
+ let r = t[n];
1032
+ e[r] = c[r];
1033
+ }
1034
+ c = e;
1035
+ } else if (rt(c)) {
1036
+ let e = [];
1037
+ for (let t = 0; t < c.length; t++) e[t] = c[t];
1038
+ c = e;
1039
+ } else c = [];
1040
+ let l = n(c, s, o, e, t, r);
1041
+ l === void 0 ? Array.isArray(s) || H(c) && H(s) && (R(c) || R(s) || I(c) || I(s)) ? e[o] = U(c, s, n, r) : c == null && R(s) ? e[o] = U({}, s, n, r) : c == null && I(s) ? e[o] = et(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
1042
+ }
1043
+ return e;
1044
+ }
1045
+ //#endregion
1046
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/object/merge.mjs
1047
+ function at(e, ...t) {
1048
+ return it(e, ...t, Ke);
1049
+ }
1050
+ //#endregion
1051
+ //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7S6XSTFO.mjs
1052
+ var ot = c(), st = {
1053
+ curveBasis: ee,
1054
+ curveBasisClosed: ne,
1055
+ curveBasisOpen: ie,
1056
+ curveBumpX: f,
1057
+ curveBumpY: p,
1058
+ curveBundle: oe,
1059
+ curveCardinalClosed: ce,
1060
+ curveCardinalOpen: le,
1061
+ curveCardinal: se,
1062
+ curveCatmullRomClosed: pe,
1063
+ curveCatmullRomOpen: he,
1064
+ curveCatmullRom: de,
1065
+ curveLinear: u,
1066
+ curveLinearClosed: _e,
1067
+ curveMonotoneX: Ce,
1068
+ curveMonotoneY: we,
1069
+ curveNatural: De,
1070
+ curveStep: T,
1071
+ curveStepAfter: D,
1072
+ curveStepBefore: E
1073
+ }, ct = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, lt = /* @__PURE__ */ n(function(e, t) {
1074
+ let n = ut(e, /(?:init\b)|(?:initialize\b)/), i = {};
1075
+ if (Array.isArray(n)) {
1076
+ let e = n.map((e) => e.args);
1077
+ r(e), i = o(i, [...e]);
1078
+ } else i = n.args;
1079
+ if (!i) return;
1080
+ let s = a(e, t), c = "config";
1081
+ return i[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[c], delete i[c]), i;
1082
+ }, "detectInit"), ut = /* @__PURE__ */ n(function(t, n = null) {
1083
+ try {
1084
+ let r = RegExp(`[%]{2}(?![{]${ct.source})(?=[}][%]{2}).*
1085
+ `, "ig");
1086
+ t = t.trim().replace(r, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
1087
+ let a, o = [];
1088
+ for (; (a = i.exec(t)) !== null;) if (a.index === i.lastIndex && i.lastIndex++, a && !n || n && a[1]?.match(n) || n && a[2]?.match(n)) {
1089
+ let e = a[1] ? a[1] : a[2], t = a[3] ? a[3].trim() : a[4] ? JSON.parse(a[4].trim()) : null;
1090
+ o.push({
1091
+ type: e,
1092
+ args: t
1093
+ });
1094
+ }
1095
+ return o.length === 0 ? {
1096
+ type: t,
1097
+ args: null
1098
+ } : o.length === 1 ? o[0] : o;
1099
+ } catch (r) {
1100
+ return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
1101
+ type: void 0,
1102
+ args: null
1103
+ };
1104
+ }
1105
+ }, "detectDirective"), dt = /* @__PURE__ */ n(function(e) {
1106
+ return e.replace(i, "");
1107
+ }, "removeDirectives"), ft = /* @__PURE__ */ n(function(e, t) {
1108
+ for (let [n, r] of t.entries()) if (r.match(e)) return n;
1109
+ return -1;
1110
+ }, "isSubstringInArray");
1111
+ function W(e, t) {
1112
+ return e ? st[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
1113
+ }
1114
+ n(W, "interpolateToCurve");
1115
+ function pt(e, t) {
1116
+ let n = e.trim();
1117
+ if (n) return t.securityLevel === "loose" ? n : (0, ot.sanitizeUrl)(n);
1118
+ }
1119
+ n(pt, "formatUrl");
1120
+ var mt = /* @__PURE__ */ n((t, ...n) => {
1121
+ let r = t.split("."), i = r.length - 1, a = r[i], o = window;
1122
+ for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
1123
+ e.error(`Function name: ${t} not found in window`);
1124
+ return;
1125
+ }
1126
+ o[a](...n);
1127
+ }, "runFunc");
1128
+ function G(e, t) {
1129
+ return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
1130
+ }
1131
+ n(G, "distance");
1132
+ function ht(e) {
1133
+ let t, n = 0;
1134
+ return e.forEach((e) => {
1135
+ n += G(e, t), t = e;
1136
+ }), K(e, n / 2);
1137
+ }
1138
+ n(ht, "traverseEdge");
1139
+ function gt(e) {
1140
+ return e.length === 1 ? e[0] : ht(e);
1141
+ }
1142
+ n(gt, "calcLabelPosition");
1143
+ var _t = /* @__PURE__ */ n((e, t = 2) => {
1144
+ let n = 10 ** t;
1145
+ return Math.round(e * n) / n;
1146
+ }, "roundNumber"), K = /* @__PURE__ */ n((e, t) => {
1147
+ let n, r = t;
1148
+ for (let t of e) {
1149
+ if (n) {
1150
+ let e = G(t, n);
1151
+ if (e === 0) return n;
1152
+ if (e < r) r -= e;
1153
+ else {
1154
+ let i = r / e;
1155
+ if (i <= 0) return n;
1156
+ if (i >= 1) return {
1157
+ x: t.x,
1158
+ y: t.y
1159
+ };
1160
+ if (i > 0 && i < 1) return {
1161
+ x: _t((1 - i) * n.x + i * t.x, 5),
1162
+ y: _t((1 - i) * n.y + i * t.y, 5)
1163
+ };
1164
+ }
1165
+ }
1166
+ n = t;
1167
+ }
1168
+ throw Error("Could not find a suitable point for the given distance");
1169
+ }, "calculatePoint"), vt = /* @__PURE__ */ n((t, n, r) => {
1170
+ e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
1171
+ let i = K(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
1172
+ x: 0,
1173
+ y: 0
1174
+ };
1175
+ return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
1176
+ }, "calcCardinalityPosition");
1177
+ function yt(t, n, r) {
1178
+ let i = structuredClone(r);
1179
+ e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
1180
+ let a = K(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
1181
+ x: 0,
1182
+ y: 0
1183
+ };
1184
+ return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
1185
+ }
1186
+ n(yt, "calcTerminalLabelPosition");
1187
+ function q(e) {
1188
+ let t = "", n = "";
1189
+ for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
1190
+ return {
1191
+ style: t,
1192
+ labelStyle: n
1193
+ };
1194
+ }
1195
+ n(q, "getStylesFromArray");
1196
+ var bt = 0, xt = /* @__PURE__ */ n(() => (bt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + bt), "generateId");
1197
+ function St(e) {
1198
+ let t = "";
1199
+ for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
1200
+ return t;
1201
+ }
1202
+ n(St, "makeRandomHex");
1203
+ var Ct = /* @__PURE__ */ n((e) => St(e.length), "random"), wt = /* @__PURE__ */ n(function() {
1204
+ return {
1205
+ x: 0,
1206
+ y: 0,
1207
+ fill: void 0,
1208
+ anchor: "start",
1209
+ style: "#666",
1210
+ width: 100,
1211
+ height: 100,
1212
+ textMargin: 0,
1213
+ rx: 0,
1214
+ ry: 0,
1215
+ valign: void 0,
1216
+ text: ""
1217
+ };
1218
+ }, "getTextObj"), Tt = /* @__PURE__ */ n(function(e, t) {
1219
+ let n = t.text.replace(s.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
1220
+ i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
1221
+ let a = i.append("tspan");
1222
+ return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
1223
+ }, "drawSimpleText"), Et = O((e, t, n) => {
1224
+ if (!e || (n = Object.assign({
1225
+ fontSize: 12,
1226
+ fontWeight: 400,
1227
+ fontFamily: "Arial",
1228
+ joinWith: "<br/>"
1229
+ }, n), s.hasBreaks(e))) return e;
1230
+ let r = e.split(" ").filter(Boolean), i = [], a = "";
1231
+ return r.forEach((e, o) => {
1232
+ let s = Y(`${e} `, n), c = Y(a, n);
1233
+ if (s > t) {
1234
+ let { hyphenatedStrings: r, remainingWord: o } = Dt(e, t, "-", n);
1235
+ i.push(a, ...r), a = o;
1236
+ } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
1237
+ o + 1 === r.length && i.push(a);
1238
+ }), i.filter((e) => e !== "").join(n.joinWith);
1239
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Dt = O((e, t, n = "-", r) => {
1240
+ r = Object.assign({
1241
+ fontSize: 12,
1242
+ fontWeight: 400,
1243
+ fontFamily: "Arial",
1244
+ margin: 0
1245
+ }, r);
1246
+ let i = [...e], a = [], o = "";
1247
+ return i.forEach((e, s) => {
1248
+ let c = `${o}${e}`;
1249
+ if (Y(c, r) >= t) {
1250
+ let e = s + 1, t = i.length === e, r = `${c}${n}`;
1251
+ a.push(t ? c : r), o = "";
1252
+ } else o = c;
1253
+ }), {
1254
+ hyphenatedStrings: a,
1255
+ remainingWord: o
1256
+ };
1257
+ }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1258
+ function J(e, t) {
1259
+ return X(e, t).height;
1260
+ }
1261
+ n(J, "calculateTextHeight");
1262
+ function Y(e, t) {
1263
+ return X(e, t).width;
1264
+ }
1265
+ n(Y, "calculateTextWidth");
1266
+ var X = O((e, n) => {
1267
+ let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = n;
1268
+ if (!e) return {
1269
+ width: 0,
1270
+ height: 0
1271
+ };
1272
+ let [, o] = Q(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = t("body");
1273
+ if (!d.remove) return {
1274
+ width: 0,
1275
+ height: 0,
1276
+ lineHeight: 0
1277
+ };
1278
+ let f = d.append("svg");
1279
+ for (let e of c) {
1280
+ let t = 0, n = {
1281
+ width: 0,
1282
+ height: 0,
1283
+ lineHeight: 0
1284
+ };
1285
+ for (let r of l) {
1286
+ let i = wt();
1287
+ i.text = r || "​";
1288
+ let s = Tt(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1289
+ if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1290
+ n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1291
+ }
1292
+ u.push(n);
1293
+ }
1294
+ return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
1295
+ }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), Ot = class {
1296
+ constructor(e = !1, t) {
1297
+ this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1298
+ }
1299
+ static {
1300
+ n(this, "InitIDGenerator");
1301
+ }
1302
+ }, Z, kt = /* @__PURE__ */ n(function(e) {
1303
+ return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
1304
+ }, "entityDecode");
1305
+ function At(e) {
1306
+ return "str" in e;
1307
+ }
1308
+ n(At, "isDetailedError");
1309
+ function jt(e) {
1310
+ return e instanceof Error ? e.message : String(e);
1311
+ }
1312
+ n(jt, "getErrorMessage");
1313
+ var Mt = /* @__PURE__ */ n((e, t, n, r) => {
1314
+ if (!r) return;
1315
+ let i = e.node()?.getBBox();
1316
+ i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1317
+ }, "insertTitle"), Q = /* @__PURE__ */ n((e) => {
1318
+ if (typeof e == "number") return [e, e + "px"];
1319
+ let t = parseInt(e ?? "", 10);
1320
+ return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1321
+ }, "parseFontSize");
1322
+ function $(e, t) {
1323
+ return at({}, e, t);
1324
+ }
1325
+ n($, "cleanAndMerge");
1326
+ var Nt = {
1327
+ assignWithDepth: o,
1328
+ wrapLabel: Et,
1329
+ calculateTextHeight: J,
1330
+ calculateTextWidth: Y,
1331
+ calculateTextDimensions: X,
1332
+ cleanAndMerge: $,
1333
+ detectInit: lt,
1334
+ detectDirective: ut,
1335
+ isSubstringInArray: ft,
1336
+ interpolateToCurve: W,
1337
+ calcLabelPosition: gt,
1338
+ calcCardinalityPosition: vt,
1339
+ calcTerminalLabelPosition: yt,
1340
+ formatUrl: pt,
1341
+ getStylesFromArray: q,
1342
+ generateId: xt,
1343
+ random: Ct,
1344
+ runFunc: mt,
1345
+ entityDecode: kt,
1346
+ insertTitle: Mt,
1347
+ isLabelCoordinateInPath: Rt,
1348
+ parseFontSize: Q,
1349
+ InitIDGenerator: Ot
1350
+ }, Pt = /* @__PURE__ */ n(function(e) {
1351
+ let t = e;
1352
+ return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1353
+ return e.substring(0, e.length - 1);
1354
+ }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1355
+ return e.substring(0, e.length - 1);
1356
+ }), t = t.replace(/#\w+;/g, function(e) {
1357
+ let t = e.substring(1, e.length - 1);
1358
+ return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1359
+ }), t;
1360
+ }, "encodeEntities"), Ft = /* @__PURE__ */ n(function(e) {
1361
+ return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1362
+ }, "decodeEntities"), It = /* @__PURE__ */ n((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1363
+ function Lt(e) {
1364
+ return e ?? null;
1365
+ }
1366
+ n(Lt, "handleUndefinedAttr");
1367
+ function Rt(e, t) {
1368
+ let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1369
+ return i.includes(n.toString()) || i.includes(r.toString());
1370
+ }
1371
+ n(Rt, "isLabelCoordinateInPath");
1372
+ //#endregion
1373
+ export { de as $, Ge as A, ke as B, P as C, Ie as D, N as E, M as F, A as G, Be as H, Fe as I, E as J, k as K, Oe as L, Ue as M, Ve as N, Ae as O, je as P, we as Q, Me as R, I as S, Ne as T, Le as U, ze as V, Re as W, De as X, T as Y, Ce as Z, Nt as _, Ft as a, V as b, It as c, Lt as d, se as et, W as f, dt as g, Ct as h, $ as i, u as it, He as j, We as k, jt as l, Q as m, J as n, f as nt, Pt as o, At as p, D as q, Y as r, p as rt, xt as s, X as t, ee as tt, q as u, Et as v, Pe as w, L as x, nt as y, j as z };