for-humanity 0.11.0 → 0.13.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 (226) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +16 -9
  3. package/dist/browser.js +16 -16
  4. package/dist/cli.css +2 -941
  5. package/dist/cli.js +92 -2290
  6. package/dist/config.js +1 -0
  7. package/dist/constant/copy.d.ts +100 -0
  8. package/dist/constant/site.d.ts +20 -0
  9. package/dist/constant/status.d.ts +19 -0
  10. package/dist/copy-C1uzvEnr.js +103 -0
  11. package/dist/group-path-XAThmzvC.js +10 -0
  12. package/dist/load-site-CbpLEhwu.js +2379 -0
  13. package/dist/logger-Dv1i9xSV.js +9 -0
  14. package/dist/mermaid/THIRD-PARTY-NOTICES.txt +3134 -0
  15. package/dist/mermaid/chunk--TN-qHgG.js +2 -0
  16. package/dist/mermaid/chunk-0kM1Lv4D.js +2 -0
  17. package/dist/mermaid/chunk-3FHei3pH.js +2001 -0
  18. package/dist/mermaid/chunk-3_2p2GqN.js +2 -0
  19. package/dist/mermaid/chunk-6HLei9i0.js +84 -0
  20. package/dist/mermaid/chunk-7Sz3kAwl.js +2214 -0
  21. package/dist/mermaid/chunk-7Tarqbpa.js +18047 -0
  22. package/dist/mermaid/chunk-9kkt8lzL.js +10 -0
  23. package/dist/mermaid/chunk-B--pNBQF.js +884 -0
  24. package/dist/mermaid/chunk-B4F-pysn.js +4241 -0
  25. package/dist/mermaid/chunk-B58sEIY_.js +14 -0
  26. package/dist/mermaid/chunk-B9_UWzSH.js +1517 -0
  27. package/dist/mermaid/chunk-BB8uZHwY.js +75 -0
  28. package/dist/mermaid/chunk-BFfk0LEc.js +717 -0
  29. package/dist/mermaid/chunk-BKri0qr7.js +89 -0
  30. package/dist/mermaid/chunk-BL404pH5.js +26 -0
  31. package/dist/mermaid/chunk-BLeiQSWo.js +354 -0
  32. package/dist/mermaid/chunk-BOmH_UFd.js +2 -0
  33. package/dist/mermaid/chunk-BSej9Nhy.js +1361 -0
  34. package/dist/mermaid/chunk-BYzrzvCI.js +12 -0
  35. package/dist/mermaid/chunk-BariMtWr.js +3020 -0
  36. package/dist/mermaid/chunk-BcrBoMwH.js +2352 -0
  37. package/dist/mermaid/chunk-Bok8z-Yo.js +67 -0
  38. package/dist/mermaid/chunk-BpTHLKQM.js +1970 -0
  39. package/dist/mermaid/chunk-BqjuxRsC.js +733 -0
  40. package/dist/mermaid/chunk-BuvPd-s5.js +1073 -0
  41. package/dist/mermaid/chunk-BvVehae3.js +5069 -0
  42. package/dist/mermaid/chunk-C-JABYpd.js +3075 -0
  43. package/dist/mermaid/chunk-C9XlTm4w.js +2 -0
  44. package/dist/mermaid/chunk-CApNbSU9.js +6 -0
  45. package/dist/mermaid/chunk-CCM2AH-C.js +9 -0
  46. package/dist/mermaid/chunk-CD1E0F_N.js +2 -0
  47. package/dist/mermaid/chunk-CDWvKG7D.js +2 -0
  48. package/dist/mermaid/chunk-CEVPpC1F.js +34 -0
  49. package/dist/mermaid/chunk-CLDr12lf.js +47504 -0
  50. package/dist/mermaid/chunk-CLVYqOBI.js +61 -0
  51. package/dist/mermaid/chunk-CLeOkFb5.js +15 -0
  52. package/dist/mermaid/chunk-CLgRAtOz.js +37 -0
  53. package/dist/mermaid/chunk-CMqFNUBl.js +134 -0
  54. package/dist/mermaid/chunk-CTPaBJXB.js +2 -0
  55. package/dist/mermaid/chunk-CVi6IGBL.js +2 -0
  56. package/dist/mermaid/chunk-CWV_EN-4.js +4745 -0
  57. package/dist/mermaid/chunk-CZ0dAs3g.js +2 -0
  58. package/dist/mermaid/chunk-C_YGy4Fn.js +236 -0
  59. package/dist/mermaid/chunk-CcVH22Yt.js +100 -0
  60. package/dist/mermaid/chunk-CgG6CD9_.js +7175 -0
  61. package/dist/mermaid/chunk-CgOP6IDB.js +3397 -0
  62. package/dist/mermaid/chunk-Cgg2UTSf.js +13 -0
  63. package/dist/mermaid/chunk-ChJfJJ1A.js +214 -0
  64. package/dist/mermaid/chunk-Ck5XRA46.js +447 -0
  65. package/dist/mermaid/chunk-Ckuw16cl.js +203 -0
  66. package/dist/mermaid/chunk-CpAbRCbF.js +1880 -0
  67. package/dist/mermaid/chunk-CuYekbSv.js +2 -0
  68. package/dist/mermaid/chunk-CwS4wZ5a.js +2 -0
  69. package/dist/mermaid/chunk-D-bcrBO3.js +82 -0
  70. package/dist/mermaid/chunk-D3IEAkCW.js +76 -0
  71. package/dist/mermaid/chunk-D8XfBJ_K.js +645 -0
  72. package/dist/mermaid/chunk-D9Ddd9y4.js +2228 -0
  73. package/dist/mermaid/chunk-DBh1mIbK.js +12 -0
  74. package/dist/mermaid/chunk-DD6Df6Ic.js +5 -0
  75. package/dist/mermaid/chunk-DGVDaXjx.js +8 -0
  76. package/dist/mermaid/chunk-DK9KqIXj.js +632 -0
  77. package/dist/mermaid/chunk-DORnIAsy.js +4487 -0
  78. package/dist/mermaid/chunk-DU69_VcF.js +363 -0
  79. package/dist/mermaid/chunk-DVNvSFoz.js +2144 -0
  80. package/dist/mermaid/chunk-DZe-4kde.js +20 -0
  81. package/dist/mermaid/chunk-D_a06Rz4.js +287 -0
  82. package/dist/mermaid/chunk-DfyFJJi2.js +972 -0
  83. package/dist/mermaid/chunk-DhKYPp1Z.js +2 -0
  84. package/dist/mermaid/chunk-DjFqgNTG.js +94 -0
  85. package/dist/mermaid/chunk-DmbDDrr-.js +65 -0
  86. package/dist/mermaid/chunk-DpuxlyL_.js +696 -0
  87. package/dist/mermaid/chunk-DqGhppWe.js +2 -0
  88. package/dist/mermaid/chunk-DqPZxHXa.js +5 -0
  89. package/dist/mermaid/chunk-Dt_1Jyif.js +293 -0
  90. package/dist/mermaid/chunk-DyQBE_NW.js +1935 -0
  91. package/dist/mermaid/chunk-JckyC4mW.js +1009 -0
  92. package/dist/mermaid/chunk-K7Myuj2-.js +1334 -0
  93. package/dist/mermaid/chunk-KuPYb48V.js +275 -0
  94. package/dist/mermaid/chunk-MFVRUoO0.js +4020 -0
  95. package/dist/mermaid/chunk-MbInCS_6.js +28 -0
  96. package/dist/mermaid/chunk-MexOLyKV.js +355 -0
  97. package/dist/mermaid/chunk-NnbDtJzg.js +21856 -0
  98. package/dist/mermaid/chunk-SGpOYZbI.js +2139 -0
  99. package/dist/mermaid/chunk-TbxLDlcU.js +198 -0
  100. package/dist/mermaid/chunk-TftHqGLg.js +490 -0
  101. package/dist/mermaid/chunk-UjQ8vA_Z.js +4138 -0
  102. package/dist/mermaid/chunk-YgmVTKqc.js +16 -0
  103. package/dist/mermaid/chunk-_a9EZE1v.js +1798 -0
  104. package/dist/mermaid/chunk-dTb8jqeP.js +2 -0
  105. package/dist/mermaid/chunk-fFdMfF8S.js +2240 -0
  106. package/dist/mermaid/chunk-feYbMzBj.js +1267 -0
  107. package/dist/mermaid/chunk-g3Pn8DkW.js +46 -0
  108. package/dist/mermaid/chunk-hM77LvCb.js +19832 -0
  109. package/dist/mermaid/chunk-hUDb-eAW.js +527 -0
  110. package/dist/mermaid/chunk-tpABtZ-3.js +4252 -0
  111. package/dist/mermaid/chunk-xIbz3oFK.js +59 -0
  112. package/dist/mermaid/chunk-yBz-vst0.js +976 -0
  113. package/dist/mermaid/mermaid-BhtR3wyB.js +1145 -0
  114. package/dist/run-site-command-C80YoNOe.js +129 -0
  115. package/dist/site-config-bllORGpm.js +90 -0
  116. package/dist/site.js +1 -0
  117. package/dist/start-dev-server-C4_Lu1nZ.js +176 -0
  118. package/dist/to-change-queue-DbEnZGNK.js +34 -0
  119. package/dist/to-error-message-pF6_7wGK.js +16 -0
  120. package/dist/type/group-path.d.ts +7 -0
  121. package/dist/type/site-config.d.ts +57 -0
  122. package/package.json +34 -17
  123. package/src/component/widget/cursor-face/_constant/cursor-face.ts +0 -14
  124. package/src/component/widget/cursor-face/wg-cursor-face.css +0 -15
  125. package/src/component/widget/cursor-face/wg-cursor-face.tsx +0 -153
  126. package/src/component/widget/navigation/_constant/locale.ts +0 -9
  127. package/src/component/widget/navigation/_constant/navigation-data-schema.ts +0 -33
  128. package/src/component/widget/navigation/_constant/navigation.ts +0 -9
  129. package/src/component/widget/navigation/_constant/reading-line.ts +0 -4
  130. package/src/component/widget/navigation/_function/restore-navigation-scroll.ts +0 -59
  131. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-branches.ts +0 -15
  132. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-group-branches.ts +0 -70
  133. package/src/component/widget/navigation/_function/to-doc-groups/to-doc-groups.ts +0 -15
  134. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-document.ts +0 -13
  135. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-group.ts +0 -13
  136. package/src/component/widget/navigation/_function/to-navigation-data/to-navigation-data.ts +0 -18
  137. package/src/component/widget/navigation/_function/to-navigation-json.ts +0 -8
  138. package/src/component/widget/navigation/_function/to-toc-groups.ts +0 -38
  139. package/src/component/widget/navigation/_type/doc-branch.ts +0 -11
  140. package/src/component/widget/navigation/_type/doc-group.ts +0 -24
  141. package/src/component/widget/navigation/_type/navigation-data.ts +0 -75
  142. package/src/component/widget/navigation/_type/navigation-focus-snapshot.ts +0 -17
  143. package/src/component/widget/navigation/_type/toc-group.ts +0 -39
  144. package/src/component/widget/navigation/_wg-navigation-nav-list.css +0 -48
  145. package/src/component/widget/navigation/_wg-navigation-nav-list.tsx +0 -61
  146. package/src/component/widget/navigation/_wg-navigation-nav.css +0 -21
  147. package/src/component/widget/navigation/_wg-navigation-nav.tsx +0 -33
  148. package/src/component/widget/navigation/_wg-navigation-scroll.tsx +0 -117
  149. package/src/component/widget/navigation/_wg-navigation-toc.css +0 -91
  150. package/src/component/widget/navigation/_wg-navigation-toc.tsx +0 -114
  151. package/src/component/widget/navigation/wg-navigation.css +0 -282
  152. package/src/component/widget/navigation/wg-navigation.tsx +0 -420
  153. package/src/component/widget/prose/_constant/heading-highlight.ts +0 -4
  154. package/src/component/widget/prose/_constant/section.ts +0 -7
  155. package/src/component/widget/prose/_constant/status.ts +0 -9
  156. package/src/component/widget/prose/_function/has-block-content.ts +0 -30
  157. package/src/component/widget/prose/_function/rehype-head.ts +0 -31
  158. package/src/component/widget/prose/_function/rehype-sections/_to-section-headings.ts +0 -20
  159. package/src/component/widget/prose/_function/rehype-sections/rehype-sections.ts +0 -21
  160. package/src/component/widget/prose/_function/rehype-tables.ts +0 -22
  161. package/src/component/widget/prose/_function/remark-blocks.ts +0 -112
  162. package/src/component/widget/prose/_function/remark-flow.ts +0 -26
  163. package/src/component/widget/prose/_function/remark-links.ts +0 -33
  164. package/src/component/widget/prose/_function/remark-parts.ts +0 -26
  165. package/src/component/widget/prose/_function/remark-status.ts +0 -59
  166. package/src/component/widget/prose/_function/remark-swatch.ts +0 -16
  167. package/src/component/widget/prose/_function/remark-unknown-directives.ts +0 -25
  168. package/src/component/widget/prose/wg-prose.css +0 -454
  169. package/src/component/widget/prose/wg-prose.tsx +0 -43
  170. package/src/component/widget/shell/wg-shell.css +0 -63
  171. package/src/component/widget/shell/wg-shell.tsx +0 -88
  172. package/src/component/widget/shell-controls/wg-shell-controls.css +0 -4
  173. package/src/component/widget/shell-controls/wg-shell-controls.tsx +0 -170
  174. package/src/constant/asset.ts +0 -63
  175. package/src/constant/copy.ts +0 -133
  176. package/src/constant/doc.ts +0 -13
  177. package/src/constant/font.ts +0 -34
  178. package/src/constant/site.ts +0 -24
  179. package/src/constant/status.ts +0 -15
  180. package/src/entry/browser/browser.tsx +0 -22
  181. package/src/entry/cli/_constant/cli.ts +0 -19
  182. package/src/entry/cli/_constant/crawling.ts +0 -14
  183. package/src/entry/cli/_constant/snippet.ts +0 -21
  184. package/src/entry/cli/_function/create-app.tsx +0 -57
  185. package/src/entry/cli/_function/create-dev-app.ts +0 -87
  186. package/src/entry/cli/_function/create-processor/_rehype-assets.ts +0 -70
  187. package/src/entry/cli/_function/create-processor/_rehype-heading-ids.ts +0 -34
  188. package/src/entry/cli/_function/create-processor/_remark-report.ts +0 -15
  189. package/src/entry/cli/_function/create-processor/_remark-snippets.ts +0 -117
  190. package/src/entry/cli/_function/create-processor/_shiki-transformers.ts +0 -55
  191. package/src/entry/cli/_function/create-processor/create-processor.ts +0 -64
  192. package/src/entry/cli/_function/read-docs.ts +0 -128
  193. package/src/entry/cli/_function/read-home.ts +0 -32
  194. package/src/entry/cli/_function/to-crawling-app.ts +0 -42
  195. package/src/entry/cli/cli.test.ts +0 -782
  196. package/src/entry/cli/cli.ts +0 -206
  197. package/src/env.d.ts +0 -6
  198. package/src/page/doc/pg-doc.tsx +0 -35
  199. package/src/page/home/pg-home.tsx +0 -40
  200. package/src/store/navigation/create-navigation-stores.test.ts +0 -74
  201. package/src/store/navigation/create-navigation-stores.ts +0 -59
  202. package/src/store/navigation/navigation-state.ts +0 -36
  203. package/src/store/navigation/navigation-storage.ts +0 -9
  204. package/src/store/navigation/to-navigation-scroll-state.ts +0 -42
  205. package/src/style/base.css +0 -28
  206. package/src/style/token.css +0 -186
  207. package/src/type/doc-content.ts +0 -15
  208. package/src/type/doc-data.ts +0 -38
  209. package/src/type/doc-file-data.ts +0 -21
  210. package/src/type/doc-heading.ts +0 -17
  211. package/src/type/doc-outline.ts +0 -16
  212. package/src/type/doc-section.ts +0 -9
  213. package/src/type/doc.ts +0 -20
  214. package/src/type/group-path.ts +0 -7
  215. package/src/type/site-assets.ts +0 -25
  216. package/src/type/site-config.ts +0 -73
  217. package/src/type/vfile-data.d.ts +0 -10
  218. package/src/util/async/to-change-queue.test.ts +0 -58
  219. package/src/util/async/to-change-queue.ts +0 -43
  220. package/src/util/dom/find-hash-target.ts +0 -18
  221. package/src/util/dom/reveal-hash-target.ts +0 -15
  222. package/src/util/error/to-error-message.ts +0 -10
  223. package/src/util/file/to-asset-path.ts +0 -26
  224. package/src/util/font/to-font-css.test.ts +0 -41
  225. package/src/util/font/to-font-css.ts +0 -28
  226. package/src/util/mermaid/render-flow.js +0 -321
@@ -0,0 +1,1334 @@
1
+ import { m as e, p as t } from "./chunk-DVNvSFoz.js";
2
+ import { n } from "./chunk-BYzrzvCI.js";
3
+ import { R as r, h as i, p as a, r as o, s } from "./chunk-MFVRUoO0.js";
4
+ import { t as c } from "./chunk-xIbz3oFK.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: this._context.lineTo(e, t);
29
+ }
30
+ }
31
+ };
32
+ function u(e) {
33
+ return new l(e);
34
+ }
35
+ //#endregion
36
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
37
+ var d = class {
38
+ constructor(e, t) {
39
+ this._context = e, this._x = t;
40
+ }
41
+ areaStart() {
42
+ this._line = 0;
43
+ }
44
+ areaEnd() {
45
+ this._line = NaN;
46
+ }
47
+ lineStart() {
48
+ this._point = 0;
49
+ }
50
+ lineEnd() {
51
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
52
+ }
53
+ point(e, t) {
54
+ switch (e = +e, t = +t, this._point) {
55
+ case 0:
56
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
57
+ break;
58
+ case 1: this._point = 2;
59
+ default: 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);
60
+ }
61
+ this._x0 = e, this._y0 = t;
62
+ }
63
+ };
64
+ function f(e) {
65
+ return new d(e, !0);
66
+ }
67
+ function ee(e) {
68
+ return new d(e, !1);
69
+ }
70
+ //#endregion
71
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
72
+ function p() {}
73
+ //#endregion
74
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
75
+ function m(e, t, n) {
76
+ 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);
77
+ }
78
+ function h(e) {
79
+ this._context = e;
80
+ }
81
+ h.prototype = {
82
+ areaStart: function() {
83
+ this._line = 0;
84
+ },
85
+ areaEnd: function() {
86
+ this._line = NaN;
87
+ },
88
+ lineStart: function() {
89
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
90
+ },
91
+ lineEnd: function() {
92
+ switch (this._point) {
93
+ case 3: m(this, this._x1, this._y1);
94
+ case 2: this._context.lineTo(this._x1, this._y1);
95
+ }
96
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
97
+ },
98
+ point: function(e, t) {
99
+ switch (e = +e, t = +t, this._point) {
100
+ case 0:
101
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
102
+ break;
103
+ case 1:
104
+ this._point = 2;
105
+ break;
106
+ case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
107
+ default: m(this, e, t);
108
+ }
109
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
110
+ }
111
+ };
112
+ function te(e) {
113
+ return new h(e);
114
+ }
115
+ //#endregion
116
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
117
+ function ne(e) {
118
+ this._context = e;
119
+ }
120
+ ne.prototype = {
121
+ areaStart: p,
122
+ areaEnd: p,
123
+ lineStart: function() {
124
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
125
+ },
126
+ lineEnd: function() {
127
+ switch (this._point) {
128
+ case 1:
129
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
130
+ break;
131
+ case 2:
132
+ 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();
133
+ break;
134
+ case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
135
+ }
136
+ },
137
+ point: function(e, t) {
138
+ switch (e = +e, t = +t, this._point) {
139
+ case 0:
140
+ this._point = 1, this._x2 = e, this._y2 = t;
141
+ break;
142
+ case 1:
143
+ this._point = 2, this._x3 = e, this._y3 = t;
144
+ break;
145
+ case 2:
146
+ 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);
147
+ break;
148
+ default: m(this, e, t);
149
+ }
150
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
151
+ }
152
+ };
153
+ function re(e) {
154
+ return new ne(e);
155
+ }
156
+ //#endregion
157
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
158
+ function ie(e) {
159
+ this._context = e;
160
+ }
161
+ ie.prototype = {
162
+ areaStart: function() {
163
+ this._line = 0;
164
+ },
165
+ areaEnd: function() {
166
+ this._line = NaN;
167
+ },
168
+ lineStart: function() {
169
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
170
+ },
171
+ lineEnd: function() {
172
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
173
+ },
174
+ point: function(e, t) {
175
+ switch (e = +e, t = +t, this._point) {
176
+ case 0:
177
+ this._point = 1;
178
+ break;
179
+ case 1:
180
+ this._point = 2;
181
+ break;
182
+ case 2:
183
+ this._point = 3;
184
+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
185
+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
186
+ break;
187
+ case 3: this._point = 4;
188
+ default: m(this, e, t);
189
+ }
190
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
191
+ }
192
+ };
193
+ function ae(e) {
194
+ return new ie(e);
195
+ }
196
+ //#endregion
197
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.js
198
+ function oe(e, t) {
199
+ this._basis = new h(e), this._beta = t;
200
+ }
201
+ oe.prototype = {
202
+ lineStart: function() {
203
+ this._x = [], this._y = [], this._basis.lineStart();
204
+ },
205
+ lineEnd: function() {
206
+ var e = this._x, t = this._y, n = e.length - 1;
207
+ 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));
208
+ this._x = this._y = null, this._basis.lineEnd();
209
+ },
210
+ point: function(e, t) {
211
+ this._x.push(+e), this._y.push(+t);
212
+ }
213
+ };
214
+ var se = (function e(t) {
215
+ function n(e) {
216
+ return t === 1 ? new h(e) : new oe(e, t);
217
+ }
218
+ return n.beta = function(t) {
219
+ return e(+t);
220
+ }, n;
221
+ })(.85);
222
+ //#endregion
223
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.js
224
+ function g(e, t, n) {
225
+ 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);
226
+ }
227
+ function _(e, t) {
228
+ this._context = e, this._k = (1 - t) / 6;
229
+ }
230
+ _.prototype = {
231
+ areaStart: function() {
232
+ this._line = 0;
233
+ },
234
+ areaEnd: function() {
235
+ this._line = NaN;
236
+ },
237
+ lineStart: function() {
238
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
239
+ },
240
+ lineEnd: function() {
241
+ switch (this._point) {
242
+ case 2:
243
+ this._context.lineTo(this._x2, this._y2);
244
+ break;
245
+ case 3: g(this, this._x1, this._y1);
246
+ }
247
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
248
+ },
249
+ point: function(e, t) {
250
+ switch (e = +e, t = +t, this._point) {
251
+ case 0:
252
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
253
+ break;
254
+ case 1:
255
+ this._point = 2, this._x1 = e, this._y1 = t;
256
+ break;
257
+ case 2: this._point = 3;
258
+ default: g(this, e, t);
259
+ }
260
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
261
+ }
262
+ };
263
+ var ce = (function e(t) {
264
+ function n(e) {
265
+ return new _(e, t);
266
+ }
267
+ return n.tension = function(t) {
268
+ return e(+t);
269
+ }, n;
270
+ })(0);
271
+ //#endregion
272
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.js
273
+ function v(e, t) {
274
+ this._context = e, this._k = (1 - t) / 6;
275
+ }
276
+ v.prototype = {
277
+ areaStart: p,
278
+ areaEnd: p,
279
+ lineStart: function() {
280
+ 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;
281
+ },
282
+ lineEnd: function() {
283
+ switch (this._point) {
284
+ case 1:
285
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
286
+ break;
287
+ case 2:
288
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
289
+ break;
290
+ case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
291
+ }
292
+ },
293
+ point: function(e, t) {
294
+ switch (e = +e, t = +t, this._point) {
295
+ case 0:
296
+ this._point = 1, this._x3 = e, this._y3 = t;
297
+ break;
298
+ case 1:
299
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
300
+ break;
301
+ case 2:
302
+ this._point = 3, this._x5 = e, this._y5 = t;
303
+ break;
304
+ default: g(this, e, t);
305
+ }
306
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
307
+ }
308
+ };
309
+ var le = (function e(t) {
310
+ function n(e) {
311
+ return new v(e, t);
312
+ }
313
+ return n.tension = function(t) {
314
+ return e(+t);
315
+ }, n;
316
+ })(0);
317
+ //#endregion
318
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.js
319
+ function y(e, t) {
320
+ this._context = e, this._k = (1 - t) / 6;
321
+ }
322
+ y.prototype = {
323
+ areaStart: function() {
324
+ this._line = 0;
325
+ },
326
+ areaEnd: function() {
327
+ this._line = NaN;
328
+ },
329
+ lineStart: function() {
330
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
331
+ },
332
+ lineEnd: function() {
333
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
334
+ },
335
+ point: function(e, t) {
336
+ switch (e = +e, t = +t, this._point) {
337
+ case 0:
338
+ this._point = 1;
339
+ break;
340
+ case 1:
341
+ this._point = 2;
342
+ break;
343
+ case 2:
344
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
345
+ break;
346
+ case 3: this._point = 4;
347
+ default: g(this, e, t);
348
+ }
349
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
350
+ }
351
+ };
352
+ var ue = (function e(t) {
353
+ function n(e) {
354
+ return new y(e, t);
355
+ }
356
+ return n.tension = function(t) {
357
+ return e(+t);
358
+ }, n;
359
+ })(0);
360
+ //#endregion
361
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.js
362
+ function b(e, t, n) {
363
+ var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
364
+ if (e._l01_a > 1e-12) {
365
+ 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);
366
+ 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;
367
+ }
368
+ if (e._l23_a > 1e-12) {
369
+ 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);
370
+ 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;
371
+ }
372
+ e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
373
+ }
374
+ function de(e, t) {
375
+ this._context = e, this._alpha = t;
376
+ }
377
+ de.prototype = {
378
+ areaStart: function() {
379
+ this._line = 0;
380
+ },
381
+ areaEnd: function() {
382
+ this._line = NaN;
383
+ },
384
+ lineStart: function() {
385
+ 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;
386
+ },
387
+ lineEnd: function() {
388
+ switch (this._point) {
389
+ case 2:
390
+ this._context.lineTo(this._x2, this._y2);
391
+ break;
392
+ case 3: this.point(this._x2, this._y2);
393
+ }
394
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
395
+ },
396
+ point: function(e, t) {
397
+ if (e = +e, t = +t, this._point) {
398
+ var n = this._x2 - e, r = this._y2 - t;
399
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
400
+ }
401
+ switch (this._point) {
402
+ case 0:
403
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
404
+ break;
405
+ case 1:
406
+ this._point = 2;
407
+ break;
408
+ case 2: this._point = 3;
409
+ default: b(this, e, t);
410
+ }
411
+ 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;
412
+ }
413
+ };
414
+ var fe = (function e(t) {
415
+ function n(e) {
416
+ return t ? new de(e, t) : new _(e, 0);
417
+ }
418
+ return n.alpha = function(t) {
419
+ return e(+t);
420
+ }, n;
421
+ })(.5);
422
+ //#endregion
423
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.js
424
+ function pe(e, t) {
425
+ this._context = e, this._alpha = t;
426
+ }
427
+ pe.prototype = {
428
+ areaStart: p,
429
+ areaEnd: p,
430
+ lineStart: function() {
431
+ 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;
432
+ },
433
+ lineEnd: function() {
434
+ switch (this._point) {
435
+ case 1:
436
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
437
+ break;
438
+ case 2:
439
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
440
+ break;
441
+ case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
442
+ }
443
+ },
444
+ point: function(e, t) {
445
+ if (e = +e, t = +t, this._point) {
446
+ var n = this._x2 - e, r = this._y2 - t;
447
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
448
+ }
449
+ switch (this._point) {
450
+ case 0:
451
+ this._point = 1, this._x3 = e, this._y3 = t;
452
+ break;
453
+ case 1:
454
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
455
+ break;
456
+ case 2:
457
+ this._point = 3, this._x5 = e, this._y5 = t;
458
+ break;
459
+ default: b(this, e, t);
460
+ }
461
+ 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;
462
+ }
463
+ };
464
+ var me = (function e(t) {
465
+ function n(e) {
466
+ return t ? new pe(e, t) : new v(e, 0);
467
+ }
468
+ return n.alpha = function(t) {
469
+ return e(+t);
470
+ }, n;
471
+ })(.5);
472
+ //#endregion
473
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.js
474
+ function x(e, t) {
475
+ this._context = e, this._alpha = t;
476
+ }
477
+ x.prototype = {
478
+ areaStart: function() {
479
+ this._line = 0;
480
+ },
481
+ areaEnd: function() {
482
+ this._line = NaN;
483
+ },
484
+ lineStart: function() {
485
+ 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;
486
+ },
487
+ lineEnd: function() {
488
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
489
+ },
490
+ point: function(e, t) {
491
+ if (e = +e, t = +t, this._point) {
492
+ var n = this._x2 - e, r = this._y2 - t;
493
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
494
+ }
495
+ switch (this._point) {
496
+ case 0:
497
+ this._point = 1;
498
+ break;
499
+ case 1:
500
+ this._point = 2;
501
+ break;
502
+ case 2:
503
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
504
+ break;
505
+ case 3: this._point = 4;
506
+ default: b(this, e, t);
507
+ }
508
+ 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;
509
+ }
510
+ };
511
+ var he = (function e(t) {
512
+ function n(e) {
513
+ return t ? new x(e, t) : new y(e, 0);
514
+ }
515
+ return n.alpha = function(t) {
516
+ return e(+t);
517
+ }, n;
518
+ })(.5);
519
+ //#endregion
520
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
521
+ function ge(e) {
522
+ this._context = e;
523
+ }
524
+ ge.prototype = {
525
+ areaStart: p,
526
+ areaEnd: p,
527
+ lineStart: function() {
528
+ this._point = 0;
529
+ },
530
+ lineEnd: function() {
531
+ this._point && this._context.closePath();
532
+ },
533
+ point: function(e, t) {
534
+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
535
+ }
536
+ };
537
+ function _e(e) {
538
+ return new ge(e);
539
+ }
540
+ //#endregion
541
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
542
+ function ve(e) {
543
+ return e < 0 ? -1 : 1;
544
+ }
545
+ function ye(e, t, n) {
546
+ 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);
547
+ return (ve(a) + ve(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
548
+ }
549
+ function be(e, t) {
550
+ var n = e._x1 - e._x0;
551
+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
552
+ }
553
+ function S(e, t, n) {
554
+ var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
555
+ e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
556
+ }
557
+ function C(e) {
558
+ this._context = e;
559
+ }
560
+ C.prototype = {
561
+ areaStart: function() {
562
+ this._line = 0;
563
+ },
564
+ areaEnd: function() {
565
+ this._line = NaN;
566
+ },
567
+ lineStart: function() {
568
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
569
+ },
570
+ lineEnd: function() {
571
+ switch (this._point) {
572
+ case 2:
573
+ this._context.lineTo(this._x1, this._y1);
574
+ break;
575
+ case 3: S(this, this._t0, be(this, this._t0));
576
+ }
577
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
578
+ },
579
+ point: function(e, t) {
580
+ var n = NaN;
581
+ if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {
582
+ switch (this._point) {
583
+ case 0:
584
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
585
+ break;
586
+ case 1:
587
+ this._point = 2;
588
+ break;
589
+ case 2:
590
+ this._point = 3, S(this, be(this, n = ye(this, e, t)), n);
591
+ break;
592
+ default: S(this, this._t0, n = ye(this, e, t));
593
+ }
594
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
595
+ }
596
+ }
597
+ };
598
+ function xe(e) {
599
+ this._context = new Se(e);
600
+ }
601
+ (xe.prototype = Object.create(C.prototype)).point = function(e, t) {
602
+ C.prototype.point.call(this, t, e);
603
+ };
604
+ function Se(e) {
605
+ this._context = e;
606
+ }
607
+ Se.prototype = {
608
+ moveTo: function(e, t) {
609
+ this._context.moveTo(t, e);
610
+ },
611
+ closePath: function() {
612
+ this._context.closePath();
613
+ },
614
+ lineTo: function(e, t) {
615
+ this._context.lineTo(t, e);
616
+ },
617
+ bezierCurveTo: function(e, t, n, r, i, a) {
618
+ this._context.bezierCurveTo(t, e, r, n, a, i);
619
+ }
620
+ };
621
+ function Ce(e) {
622
+ return new C(e);
623
+ }
624
+ function we(e) {
625
+ return new xe(e);
626
+ }
627
+ //#endregion
628
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
629
+ function Te(e) {
630
+ this._context = e;
631
+ }
632
+ Te.prototype = {
633
+ areaStart: function() {
634
+ this._line = 0;
635
+ },
636
+ areaEnd: function() {
637
+ this._line = NaN;
638
+ },
639
+ lineStart: function() {
640
+ this._x = [], this._y = [];
641
+ },
642
+ lineEnd: function() {
643
+ var e = this._x, t = this._y, n = e.length;
644
+ if (n) {
645
+ 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]);
646
+ 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]);
647
+ }
648
+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
649
+ },
650
+ point: function(e, t) {
651
+ this._x.push(+e), this._y.push(+t);
652
+ }
653
+ };
654
+ function Ee(e) {
655
+ var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
656
+ 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];
657
+ 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];
658
+ 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];
659
+ 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];
660
+ return [i, a];
661
+ }
662
+ function De(e) {
663
+ return new Te(e);
664
+ }
665
+ //#endregion
666
+ //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
667
+ function w(e, t) {
668
+ this._context = e, this._t = t;
669
+ }
670
+ w.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 = NaN, this._point = 0;
679
+ },
680
+ lineEnd: function() {
681
+ 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);
682
+ },
683
+ point: function(e, t) {
684
+ switch (e = +e, t = +t, this._point) {
685
+ case 0:
686
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
687
+ break;
688
+ case 1: this._point = 2;
689
+ default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
690
+ else {
691
+ var n = this._x * (1 - this._t) + e * this._t;
692
+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);
693
+ }
694
+ }
695
+ this._x = e, this._y = t;
696
+ }
697
+ };
698
+ function T(e) {
699
+ return new w(e, .5);
700
+ }
701
+ function E(e) {
702
+ return new w(e, 0);
703
+ }
704
+ function D(e) {
705
+ return new w(e, 1);
706
+ }
707
+ //#endregion
708
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
709
+ function O(e) {
710
+ if (typeof e != "object" || !e) return !1;
711
+ if (Object.getPrototypeOf(e) === null) return !0;
712
+ if (Object.prototype.toString.call(e) !== "[object Object]") {
713
+ let t = e[Symbol.toStringTag];
714
+ return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
715
+ }
716
+ let t = e;
717
+ for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
718
+ return Object.getPrototypeOf(e) === t;
719
+ }
720
+ //#endregion
721
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/function/noop.mjs
722
+ function Oe() {}
723
+ //#endregion
724
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
725
+ function ke(e) {
726
+ return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
727
+ }
728
+ //#endregion
729
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
730
+ function k(e) {
731
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
732
+ }
733
+ //#endregion
734
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
735
+ var Ae = "[object RegExp]", A = "[object String]", j = "[object Number]", M = "[object Boolean]", N = "[object Arguments]", je = "[object Symbol]", Me = "[object Date]", Ne = "[object Map]", Pe = "[object Set]", Fe = "[object Array]", Ie = "[object ArrayBuffer]", Le = "[object Object]", Re = "[object DataView]", ze = "[object Uint8Array]", Be = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", He = "[object Uint32Array]", Ue = "[object Int8Array]", We = "[object Int16Array]", Ge = "[object Int32Array]", Ke = "[object Float32Array]", qe = "[object Float64Array]", Je = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
736
+ return this;
737
+ })();
738
+ //#endregion
739
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/predicate/isBuffer.mjs
740
+ function P(e) {
741
+ return Je.Buffer !== void 0 && Je.Buffer.isBuffer(e);
742
+ }
743
+ //#endregion
744
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/predicate/isLength.mjs
745
+ function Ye(e) {
746
+ return Number.isSafeInteger(e) && e >= 0;
747
+ }
748
+ //#endregion
749
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
750
+ function Xe(e) {
751
+ return e != null && typeof e != "function" && Ye(e.length);
752
+ }
753
+ //#endregion
754
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
755
+ function Ze(e) {
756
+ return e === "__proto__";
757
+ }
758
+ //#endregion
759
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
760
+ function F(e) {
761
+ return e == null || typeof e != "object" && typeof e != "function";
762
+ }
763
+ //#endregion
764
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
765
+ function I(e) {
766
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
767
+ }
768
+ //#endregion
769
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
770
+ function Qe(e, t) {
771
+ return L(e, void 0, e, /* @__PURE__ */ new Map(), t);
772
+ }
773
+ function L(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
774
+ let a = i?.(e, t, n, r);
775
+ if (a !== void 0) return a;
776
+ if (F(e)) return e;
777
+ if (r.has(e)) return r.get(e);
778
+ if (Array.isArray(e)) {
779
+ let t = Array(e.length);
780
+ r.set(e, t);
781
+ for (let a = 0; a < e.length; a++) t[a] = L(e[a], a, n, r, i);
782
+ return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
783
+ }
784
+ if (e instanceof Date) return new Date(e.getTime());
785
+ if (e instanceof RegExp) {
786
+ let t = new RegExp(e.source, e.flags);
787
+ return t.lastIndex = e.lastIndex, t;
788
+ }
789
+ if (e instanceof Map) {
790
+ let t = /* @__PURE__ */ new Map();
791
+ r.set(e, t);
792
+ for (let [a, o] of e) t.set(a, L(o, a, n, r, i));
793
+ return t;
794
+ }
795
+ if (e instanceof Set) {
796
+ let t = /* @__PURE__ */ new Set();
797
+ r.set(e, t);
798
+ for (let a of e) t.add(L(a, void 0, n, r, i));
799
+ return t;
800
+ }
801
+ if (P(e)) return e.subarray();
802
+ if (I(e)) {
803
+ let t = new (Object.getPrototypeOf(e)).constructor(e.length);
804
+ r.set(e, t);
805
+ for (let a = 0; a < e.length; a++) t[a] = L(e[a], a, n, r, i);
806
+ return t;
807
+ }
808
+ if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
809
+ if (e instanceof DataView) {
810
+ let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
811
+ return r.set(e, t), R(t, e, n, r, i), t;
812
+ }
813
+ if (typeof File < "u" && e instanceof File) {
814
+ let t = new File([e], e.name, { type: e.type });
815
+ return r.set(e, t), R(t, e, n, r, i), t;
816
+ }
817
+ if (typeof Blob < "u" && e instanceof Blob) {
818
+ let t = new Blob([e], { type: e.type });
819
+ return r.set(e, t), R(t, e, n, r, i), t;
820
+ }
821
+ if (e instanceof Error) {
822
+ let t = structuredClone(e);
823
+ 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, R(t, e, n, r, i), t;
824
+ }
825
+ if (e instanceof Boolean) {
826
+ let t = new Boolean(e.valueOf());
827
+ return r.set(e, t), R(t, e, n, r, i), t;
828
+ }
829
+ if (e instanceof Number) {
830
+ let t = new Number(e.valueOf());
831
+ return r.set(e, t), R(t, e, n, r, i), t;
832
+ }
833
+ if (e instanceof String) {
834
+ let t = new String(e.valueOf());
835
+ return r.set(e, t), R(t, e, n, r, i), t;
836
+ }
837
+ if (typeof e == "object" && $e(e)) {
838
+ let t = Object.create(Object.getPrototypeOf(e));
839
+ return r.set(e, t), R(t, e, n, r, i), t;
840
+ }
841
+ return e;
842
+ }
843
+ function R(e, t, n = e, r, i) {
844
+ let a = [...Object.keys(t), ...ke(t)];
845
+ for (let o = 0; o < a.length; o++) {
846
+ let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
847
+ (c == null || c.writable) && (e[s] = L(t[s], s, n, r, i));
848
+ }
849
+ }
850
+ function $e(e) {
851
+ switch (k(e)) {
852
+ case N:
853
+ case Fe:
854
+ case Ie:
855
+ case Re:
856
+ case M:
857
+ case Me:
858
+ case Ke:
859
+ case qe:
860
+ case Ue:
861
+ case We:
862
+ case Ge:
863
+ case Ne:
864
+ case j:
865
+ case Le:
866
+ case Ae:
867
+ case Pe:
868
+ case A:
869
+ case je:
870
+ case ze:
871
+ case Be:
872
+ case Ve:
873
+ case He: return !0;
874
+ default: return !1;
875
+ }
876
+ }
877
+ //#endregion
878
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
879
+ function et(e, t) {
880
+ return Qe(e, (n, r, i, a) => {
881
+ let o = t?.(n, r, i, a);
882
+ if (o !== void 0) return o;
883
+ if (typeof e == "object") {
884
+ if (k(e) === "[object Object]" && typeof e.constructor != "function") {
885
+ let t = {};
886
+ return a.set(e, t), R(t, e, i, a), t;
887
+ }
888
+ switch (Object.prototype.toString.call(e)) {
889
+ case j:
890
+ case A:
891
+ case M: {
892
+ let t = new e.constructor(e?.valueOf());
893
+ return R(t, e), t;
894
+ }
895
+ case N: {
896
+ let t = {};
897
+ return R(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
898
+ }
899
+ default: return;
900
+ }
901
+ }
902
+ });
903
+ }
904
+ //#endregion
905
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
906
+ function tt(e) {
907
+ return et(e);
908
+ }
909
+ //#endregion
910
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
911
+ function z(e) {
912
+ return typeof e == "object" && !!e && k(e) === "[object Arguments]";
913
+ }
914
+ //#endregion
915
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
916
+ function B(e) {
917
+ return typeof e == "object" && !!e;
918
+ }
919
+ //#endregion
920
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
921
+ function nt(e) {
922
+ return B(e) && Xe(e);
923
+ }
924
+ //#endregion
925
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
926
+ function V(e) {
927
+ return I(e);
928
+ }
929
+ //#endregion
930
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/function/memoize.mjs
931
+ function H(e, t) {
932
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
933
+ let n = function(...r) {
934
+ let i = t ? t.apply(this, r) : r[0], a = n.cache;
935
+ if (a.has(i)) return a.get(i);
936
+ let o = e.apply(this, r);
937
+ return n.cache = a.set(i, o) || a, o;
938
+ };
939
+ return n.cache = new (H.Cache || Map)(), n;
940
+ }
941
+ H.Cache = Map;
942
+ //#endregion
943
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/object/clone.mjs
944
+ function rt(e) {
945
+ if (F(e)) return e;
946
+ if (Array.isArray(e) || I(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
947
+ let t = Object.getPrototypeOf(e);
948
+ if (t == null) return Object.assign(Object.create(t), e);
949
+ let n = t.constructor;
950
+ if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
951
+ if (e instanceof RegExp) {
952
+ let t = new n(e);
953
+ return t.lastIndex = e.lastIndex, t;
954
+ }
955
+ if (e instanceof DataView) return new n(e.buffer.slice(0));
956
+ if (e instanceof Error) {
957
+ let t;
958
+ 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;
959
+ }
960
+ return typeof File < "u" && e instanceof File ? new n([e], e.name, {
961
+ type: e.type,
962
+ lastModified: e.lastModified
963
+ }) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
964
+ }
965
+ //#endregion
966
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
967
+ function it(e, ...t) {
968
+ let n = t.slice(0, -1), r = t[t.length - 1], i = e;
969
+ for (let e = 0; e < n.length; e++) {
970
+ let t = n[e];
971
+ i = U(i, t, r, /* @__PURE__ */ new Map());
972
+ }
973
+ return i;
974
+ }
975
+ function U(e, t, n, r) {
976
+ if (F(e) && (e = Object(e)), typeof t != "object" || !t) return e;
977
+ if (r.has(t)) return rt(r.get(t));
978
+ if (r.set(t, e), Array.isArray(t)) {
979
+ t = t.slice();
980
+ for (let e = 0; e < t.length; e++) e in t || (t[e] = void 0);
981
+ }
982
+ let i = [...Object.keys(t), ...ke(t)];
983
+ for (let a = 0; a < i.length; a++) {
984
+ let o = i[a];
985
+ if (Ze(o)) continue;
986
+ let s = t[o], c = e[o];
987
+ if (z(s) && (s = { ...s }), z(c) && (c = { ...c }), P(s) && (s = tt(s)), Array.isArray(s)) {
988
+ if (Array.isArray(c)) {
989
+ let e = [], t = Reflect.ownKeys(c);
990
+ for (let n = 0; n < t.length; n++) {
991
+ let r = t[n];
992
+ e[r] = c[r];
993
+ }
994
+ c = e;
995
+ } else if (nt(c)) {
996
+ let e = [];
997
+ for (let t = 0; t < c.length; t++) e[t] = c[t];
998
+ c = e;
999
+ } else c = [];
1000
+ }
1001
+ let l = n(c, s, o, e, t, r);
1002
+ l === void 0 ? Array.isArray(s) || B(c) && B(s) && (O(c) || O(s) || V(c) || V(s)) ? e[o] = U(c, s, n, r) : c == null && O(s) ? e[o] = U({}, s, n, r) : c == null && V(s) ? e[o] = tt(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
1003
+ }
1004
+ return e;
1005
+ }
1006
+ //#endregion
1007
+ //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/compat/object/merge.mjs
1008
+ function at(e, ...t) {
1009
+ return it(e, ...t, Oe);
1010
+ }
1011
+ //#endregion
1012
+ //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7S6XSTFO.mjs
1013
+ var ot = c(), st = {
1014
+ curveBasis: te,
1015
+ curveBasisClosed: re,
1016
+ curveBasisOpen: ae,
1017
+ curveBumpX: f,
1018
+ curveBumpY: ee,
1019
+ curveBundle: se,
1020
+ curveCardinalClosed: le,
1021
+ curveCardinalOpen: ue,
1022
+ curveCardinal: ce,
1023
+ curveCatmullRomClosed: me,
1024
+ curveCatmullRomOpen: he,
1025
+ curveCatmullRom: fe,
1026
+ curveLinear: u,
1027
+ curveLinearClosed: _e,
1028
+ curveMonotoneX: Ce,
1029
+ curveMonotoneY: we,
1030
+ curveNatural: De,
1031
+ curveStep: T,
1032
+ curveStepAfter: D,
1033
+ curveStepBefore: E
1034
+ }, ct = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, lt = /* @__PURE__ */ n(function(e, t) {
1035
+ let n = ut(e, /(?:init\b)|(?:initialize\b)/), i = {};
1036
+ if (Array.isArray(n)) {
1037
+ let e = n.map((e) => e.args);
1038
+ r(e), i = o(i, [...e]);
1039
+ } else i = n.args;
1040
+ if (!i) return;
1041
+ let s = a(e, t), c = "config";
1042
+ return i[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[c], delete i[c]), i;
1043
+ }, "detectInit"), ut = /* @__PURE__ */ n(function(t, n = null) {
1044
+ try {
1045
+ let r = RegExp(`[%]{2}(?![{]${ct.source})(?=[}][%]{2}).*
1046
+ `, "ig");
1047
+ t = t.trim().replace(r, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
1048
+ let a, o = [];
1049
+ 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)) {
1050
+ let e = a[1] ? a[1] : a[2], t = a[3] ? a[3].trim() : a[4] ? JSON.parse(a[4].trim()) : null;
1051
+ o.push({
1052
+ type: e,
1053
+ args: t
1054
+ });
1055
+ }
1056
+ return o.length === 0 ? {
1057
+ type: t,
1058
+ args: null
1059
+ } : o.length === 1 ? o[0] : o;
1060
+ } catch (r) {
1061
+ return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
1062
+ type: void 0,
1063
+ args: null
1064
+ };
1065
+ }
1066
+ }, "detectDirective"), dt = /* @__PURE__ */ n(function(e) {
1067
+ return e.replace(i, "");
1068
+ }, "removeDirectives"), ft = /* @__PURE__ */ n(function(e, t) {
1069
+ for (let [n, r] of t.entries()) if (r.match(e)) return n;
1070
+ return -1;
1071
+ }, "isSubstringInArray");
1072
+ function W(e, t) {
1073
+ return e ? st[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
1074
+ }
1075
+ n(W, "interpolateToCurve");
1076
+ function pt(e, t) {
1077
+ let n = e.trim();
1078
+ if (n) return t.securityLevel === "loose" ? n : (0, ot.sanitizeUrl)(n);
1079
+ }
1080
+ n(pt, "formatUrl");
1081
+ var mt = /* @__PURE__ */ n((t, ...n) => {
1082
+ let r = t.split("."), i = r.length - 1, a = r[i], o = window;
1083
+ for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
1084
+ e.error(`Function name: ${t} not found in window`);
1085
+ return;
1086
+ }
1087
+ o[a](...n);
1088
+ }, "runFunc");
1089
+ function G(e, t) {
1090
+ return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
1091
+ }
1092
+ n(G, "distance");
1093
+ function ht(e) {
1094
+ let t, n = 0;
1095
+ return e.forEach((e) => {
1096
+ n += G(e, t), t = e;
1097
+ }), K(e, n / 2);
1098
+ }
1099
+ n(ht, "traverseEdge");
1100
+ function gt(e) {
1101
+ return e.length === 1 ? e[0] : ht(e);
1102
+ }
1103
+ n(gt, "calcLabelPosition");
1104
+ var _t = /* @__PURE__ */ n((e, t = 2) => {
1105
+ let n = 10 ** t;
1106
+ return Math.round(e * n) / n;
1107
+ }, "roundNumber"), K = /* @__PURE__ */ n((e, t) => {
1108
+ let n, r = t;
1109
+ for (let t of e) {
1110
+ if (n) {
1111
+ let e = G(t, n);
1112
+ if (e === 0) return n;
1113
+ if (e < r) r -= e;
1114
+ else {
1115
+ let i = r / e;
1116
+ if (i <= 0) return n;
1117
+ if (i >= 1) return {
1118
+ x: t.x,
1119
+ y: t.y
1120
+ };
1121
+ if (i > 0 && i < 1) return {
1122
+ x: _t((1 - i) * n.x + i * t.x, 5),
1123
+ y: _t((1 - i) * n.y + i * t.y, 5)
1124
+ };
1125
+ }
1126
+ }
1127
+ n = t;
1128
+ }
1129
+ throw Error("Could not find a suitable point for the given distance");
1130
+ }, "calculatePoint"), vt = /* @__PURE__ */ n((t, n, r) => {
1131
+ e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
1132
+ let i = K(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
1133
+ x: 0,
1134
+ y: 0
1135
+ };
1136
+ 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;
1137
+ }, "calcCardinalityPosition");
1138
+ function yt(t, n, r) {
1139
+ let i = structuredClone(r);
1140
+ e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
1141
+ let a = K(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
1142
+ x: 0,
1143
+ y: 0
1144
+ };
1145
+ 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;
1146
+ }
1147
+ n(yt, "calcTerminalLabelPosition");
1148
+ function q(e) {
1149
+ let t = "", n = "";
1150
+ for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
1151
+ return {
1152
+ style: t,
1153
+ labelStyle: n
1154
+ };
1155
+ }
1156
+ n(q, "getStylesFromArray");
1157
+ var bt = 0, xt = /* @__PURE__ */ n(() => (bt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + bt), "generateId");
1158
+ function St(e) {
1159
+ let t = "";
1160
+ for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
1161
+ return t;
1162
+ }
1163
+ n(St, "makeRandomHex");
1164
+ var Ct = /* @__PURE__ */ n((e) => St(e.length), "random"), wt = /* @__PURE__ */ n(function() {
1165
+ return {
1166
+ x: 0,
1167
+ y: 0,
1168
+ fill: void 0,
1169
+ anchor: "start",
1170
+ style: "#666",
1171
+ width: 100,
1172
+ height: 100,
1173
+ textMargin: 0,
1174
+ rx: 0,
1175
+ ry: 0,
1176
+ valign: void 0,
1177
+ text: ""
1178
+ };
1179
+ }, "getTextObj"), Tt = /* @__PURE__ */ n(function(e, t) {
1180
+ let n = t.text.replace(s.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
1181
+ 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);
1182
+ let a = i.append("tspan");
1183
+ return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
1184
+ }, "drawSimpleText"), Et = H((e, t, n) => {
1185
+ if (!e || (n = Object.assign({
1186
+ fontSize: 12,
1187
+ fontWeight: 400,
1188
+ fontFamily: "Arial",
1189
+ joinWith: "<br/>"
1190
+ }, n), s.hasBreaks(e))) return e;
1191
+ let r = e.split(" ").filter(Boolean), i = [], a = "";
1192
+ return r.forEach((e, o) => {
1193
+ let s = Y(`${e} `, n), c = Y(a, n);
1194
+ if (s > t) {
1195
+ let { hyphenatedStrings: r, remainingWord: o } = Dt(e, t, "-", n);
1196
+ i.push(a, ...r), a = o;
1197
+ } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
1198
+ o + 1 === r.length && i.push(a);
1199
+ }), i.filter((e) => e !== "").join(n.joinWith);
1200
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Dt = H((e, t, n = "-", r) => {
1201
+ r = Object.assign({
1202
+ fontSize: 12,
1203
+ fontWeight: 400,
1204
+ fontFamily: "Arial",
1205
+ margin: 0
1206
+ }, r);
1207
+ let i = [...e], a = [], o = "";
1208
+ return i.forEach((e, s) => {
1209
+ let c = `${o}${e}`;
1210
+ if (Y(c, r) >= t) {
1211
+ let e = s + 1, t = i.length === e, r = `${c}${n}`;
1212
+ a.push(t ? c : r), o = "";
1213
+ } else o = c;
1214
+ }), {
1215
+ hyphenatedStrings: a,
1216
+ remainingWord: o
1217
+ };
1218
+ }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1219
+ function J(e, t) {
1220
+ return X(e, t).height;
1221
+ }
1222
+ n(J, "calculateTextHeight");
1223
+ function Y(e, t) {
1224
+ return X(e, t).width;
1225
+ }
1226
+ n(Y, "calculateTextWidth");
1227
+ var X = H((e, n) => {
1228
+ let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = n;
1229
+ if (!e) return {
1230
+ width: 0,
1231
+ height: 0
1232
+ };
1233
+ let [, o] = Q(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = t("body");
1234
+ if (!d.remove) return {
1235
+ width: 0,
1236
+ height: 0,
1237
+ lineHeight: 0
1238
+ };
1239
+ let f = d.append("svg");
1240
+ for (let e of c) {
1241
+ let t = 0, n = {
1242
+ width: 0,
1243
+ height: 0,
1244
+ lineHeight: 0
1245
+ };
1246
+ for (let r of l) {
1247
+ let i = wt();
1248
+ i.text = r || "​";
1249
+ let s = Tt(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1250
+ if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1251
+ 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));
1252
+ }
1253
+ u.push(n);
1254
+ }
1255
+ 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];
1256
+ }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), Ot = class {
1257
+ constructor(e = !1, t) {
1258
+ this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1259
+ }
1260
+ static {
1261
+ n(this, "InitIDGenerator");
1262
+ }
1263
+ }, Z, kt = /* @__PURE__ */ n(function(e) {
1264
+ return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
1265
+ }, "entityDecode");
1266
+ function At(e) {
1267
+ return "str" in e;
1268
+ }
1269
+ n(At, "isDetailedError");
1270
+ function jt(e) {
1271
+ return e instanceof Error ? e.message : String(e);
1272
+ }
1273
+ n(jt, "getErrorMessage");
1274
+ var Mt = /* @__PURE__ */ n((e, t, n, r) => {
1275
+ if (!r) return;
1276
+ let i = e.node()?.getBBox();
1277
+ i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1278
+ }, "insertTitle"), Q = /* @__PURE__ */ n((e) => {
1279
+ if (typeof e == "number") return [e, e + "px"];
1280
+ let t = parseInt(e ?? "", 10);
1281
+ return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1282
+ }, "parseFontSize");
1283
+ function $(e, t) {
1284
+ return at({}, e, t);
1285
+ }
1286
+ n($, "cleanAndMerge");
1287
+ var Nt = {
1288
+ assignWithDepth: o,
1289
+ wrapLabel: Et,
1290
+ calculateTextHeight: J,
1291
+ calculateTextWidth: Y,
1292
+ calculateTextDimensions: X,
1293
+ cleanAndMerge: $,
1294
+ detectInit: lt,
1295
+ detectDirective: ut,
1296
+ isSubstringInArray: ft,
1297
+ interpolateToCurve: W,
1298
+ calcLabelPosition: gt,
1299
+ calcCardinalityPosition: vt,
1300
+ calcTerminalLabelPosition: yt,
1301
+ formatUrl: pt,
1302
+ getStylesFromArray: q,
1303
+ generateId: xt,
1304
+ random: Ct,
1305
+ runFunc: mt,
1306
+ entityDecode: kt,
1307
+ insertTitle: Mt,
1308
+ isLabelCoordinateInPath: Rt,
1309
+ parseFontSize: Q,
1310
+ InitIDGenerator: Ot
1311
+ }, Pt = /* @__PURE__ */ n(function(e) {
1312
+ let t = e;
1313
+ return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1314
+ return e.substring(0, e.length - 1);
1315
+ }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1316
+ return e.substring(0, e.length - 1);
1317
+ }), t = t.replace(/#\w+;/g, function(e) {
1318
+ let t = e.substring(1, e.length - 1);
1319
+ return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1320
+ }), t;
1321
+ }, "encodeEntities"), Ft = /* @__PURE__ */ n(function(e) {
1322
+ return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1323
+ }, "decodeEntities"), It = /* @__PURE__ */ n((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1324
+ function Lt(e) {
1325
+ return e ?? null;
1326
+ }
1327
+ n(Lt, "handleUndefinedAttr");
1328
+ function Rt(e, t) {
1329
+ let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1330
+ return i.includes(n.toString()) || i.includes(r.toString());
1331
+ }
1332
+ n(Rt, "isLabelCoordinateInPath");
1333
+ //#endregion
1334
+ export { fe as $, Ke as A, A as B, P as C, M as D, Fe as E, Ne as F, Be as G, Ve as H, j as I, E as J, k as K, Le as L, We as M, Ge as N, Re as O, Ue as P, we as Q, Ae as R, Xe as S, Ie as T, He as U, je as V, ze as W, De as X, T as Y, Ce as Z, Nt as _, Ft as a, z as b, It as c, Lt as d, ce as et, W as f, dt as g, Ct as h, $ as i, u as it, qe as j, Me 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, ee as rt, xt as s, X as t, te as tt, q as u, Et as v, N as w, F as x, V as y, Pe as z };