@smarter.sh/ui-chat 0.8.0 → 0.9.1

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 (141) hide show
  1. package/README.md +328 -107
  2. package/dist/embed/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  3. package/dist/embed/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  4. package/dist/embed/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  5. package/dist/embed/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  6. package/dist/embed/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  7. package/dist/embed/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  8. package/dist/embed/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  9. package/dist/embed/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  10. package/dist/embed/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  11. package/dist/embed/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  12. package/dist/embed/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  13. package/dist/embed/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  14. package/dist/embed/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  15. package/dist/embed/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  16. package/dist/embed/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  17. package/dist/embed/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  18. package/dist/embed/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  19. package/dist/embed/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  20. package/dist/embed/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  21. package/dist/embed/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  22. package/dist/embed/mermaid/abnfDiagram-VCTEODGH-CGtrctwA.js +89 -0
  23. package/dist/embed/mermaid/arc-DlzgcAgU.js +82 -0
  24. package/dist/embed/mermaid/architecture-7GRP2DOG-D66ObL4C.js +3 -0
  25. package/dist/embed/mermaid/architectureDiagram-5GKGNRK7-CgMNWdVn.js +4148 -0
  26. package/dist/embed/mermaid/array-CApNbSU9.js +6 -0
  27. package/dist/embed/mermaid/blockDiagram-I7D4REHJ-Q2YOF2Nl.js +1922 -0
  28. package/dist/embed/mermaid/c4Diagram-7LVT6UL2-DI7_cX7n.js +3010 -0
  29. package/dist/embed/mermaid/channel-CxRe6Ync.js +5 -0
  30. package/dist/embed/mermaid/chunk-2E4U76K2-DPc-jkQd.js +348 -0
  31. package/dist/embed/mermaid/chunk-2Q5K7J3B-C1pX24ft.js +15 -0
  32. package/dist/embed/mermaid/chunk-4HAMMTFA-DY_JmJA2.js +4188 -0
  33. package/dist/embed/mermaid/chunk-5VM5RSS4-BFskf6Qk.js +5 -0
  34. package/dist/embed/mermaid/chunk-75Z2AOVW-BugNeXEB.js +1330 -0
  35. package/dist/embed/mermaid/chunk-CLGD4ZFX-BOKCMNQY.js +14 -0
  36. package/dist/embed/mermaid/chunk-DU6HZSFF-C09wkxIu.js +3897 -0
  37. package/dist/embed/mermaid/chunk-F27PBJKO-C69L38at.js +61 -0
  38. package/dist/embed/mermaid/chunk-FOHPRMQF-CLLDWcGe.js +21458 -0
  39. package/dist/embed/mermaid/chunk-GMAD6QVW-NxqJJwNT.js +1863 -0
  40. package/dist/embed/mermaid/chunk-GVQU2GXP-D4WoQcNg.js +37 -0
  41. package/dist/embed/mermaid/chunk-IMKFNOWR-DE94S7XC.js +2042 -0
  42. package/dist/embed/mermaid/chunk-JWPE2WC7-BGVSGRTC.js +8 -0
  43. package/dist/embed/mermaid/chunk-L3NEJ4N5-CqdtyK-9.js +245 -0
  44. package/dist/embed/mermaid/chunk-LNGE3PJU-DqC_0r8u.js +1521 -0
  45. package/dist/embed/mermaid/chunk-OSK3NFVY-B1KjtHOy.js +672 -0
  46. package/dist/embed/mermaid/chunk-P2QGCYS3-CP_jp-eQ.js +67 -0
  47. package/dist/embed/mermaid/chunk-POPQ4Y6H-CSwFrYKY.js +26 -0
  48. package/dist/embed/mermaid/chunk-PWAF6VOD-qhXJD1mO.js +275 -0
  49. package/dist/embed/mermaid/chunk-SHT3W25Y-a5ik03bR.js +4183 -0
  50. package/dist/embed/mermaid/chunk-SVP7TREG-67QXjHHx.js +490 -0
  51. package/dist/embed/mermaid/chunk-TICWLB2K-DHg0COuy.js +3357 -0
  52. package/dist/embed/mermaid/chunk-TLUHSLCS-BwEhuf5d.js +59 -0
  53. package/dist/embed/mermaid/chunk-XXDRQBXY-BJjzBm4h.js +9 -0
  54. package/dist/embed/mermaid/chunk-Y2CYZVJY-BAad7w_K.js +12 -0
  55. package/dist/embed/mermaid/classDiagram-ZZMXUADV-BlIPVBOk.js +30 -0
  56. package/dist/embed/mermaid/classDiagram-v2-VYDZK3BY-BavoJkSK.js +30 -0
  57. package/dist/embed/mermaid/cose-bilkent-JH36ORCC-Cx3-7Rca.js +2248 -0
  58. package/dist/embed/mermaid/cynefin-OW5HDTMX-Cfa1-YuM.js +3 -0
  59. package/dist/embed/mermaid/cynefinDiagram-5FMLGOSQ-CsV1I6A_.js +355 -0
  60. package/dist/embed/mermaid/cytoscape.esm-CLcfvFJ6.js +18145 -0
  61. package/dist/embed/mermaid/dagre-COnXXJRS.js +1934 -0
  62. package/dist/embed/mermaid/dagre-GXQ25YYZ-BzZWpDkI.js +425 -0
  63. package/dist/embed/mermaid/defaultLocale-CQ4Nl88y.js +198 -0
  64. package/dist/embed/mermaid/diagram-S7CK7UJ4-CShsH_ul.js +301 -0
  65. package/dist/embed/mermaid/diagram-UQ7AKVKN-Bb0mFpt2.js +214 -0
  66. package/dist/embed/mermaid/diagram-VSXAHHWV-DUq5PKM1.js +432 -0
  67. package/dist/embed/mermaid/diagram-VX7I27RA-Co2uyrw2.js +527 -0
  68. package/dist/embed/mermaid/diagram-Z3DM3KII-CTdPPkZs.js +134 -0
  69. package/dist/embed/mermaid/dist-CjR2JtV-.js +59 -0
  70. package/dist/embed/mermaid/ebnfDiagram-PWID7BFC-CAQNT7Vt.js +100 -0
  71. package/dist/embed/mermaid/erDiagram-RLTQ6QDP-DluYOFtk.js +1966 -0
  72. package/dist/embed/mermaid/eventmodeling-NTZA5JFV-DFSPvGS4.js +3 -0
  73. package/dist/embed/mermaid/flowDiagram-HODETNUW-BKXSV8xL.js +17 -0
  74. package/dist/embed/mermaid/ganttDiagram-EL5Y4UJY-D2BBzcpY.js +3072 -0
  75. package/dist/embed/mermaid/gitGraph-4MIJSDKK-BTHPY7Tg.js +3 -0
  76. package/dist/embed/mermaid/gitGraphDiagram-WWUBYQGX-BzZ3sE3s.js +733 -0
  77. package/dist/embed/mermaid/graphlib-D8JS7ydf.js +1267 -0
  78. package/dist/embed/mermaid/info-A6RAGUB7-4Mm0OyB8.js +3 -0
  79. package/dist/embed/mermaid/infoDiagram-27XIBGKW-DcbKIVvy.js +20 -0
  80. package/dist/embed/mermaid/init-CFNf60QB.js +13 -0
  81. package/dist/embed/mermaid/ishikawaDiagram-5VMMS53U-B6q3rvke.js +719 -0
  82. package/dist/embed/mermaid/journeyDiagram-3NMN7TZE-CDDY2Xma.js +884 -0
  83. package/dist/embed/mermaid/kanban-definition-UXKFOSKX-w7v22sq3.js +976 -0
  84. package/dist/embed/mermaid/katex-BqirFtOb.js +21977 -0
  85. package/dist/embed/mermaid/line-DoUHpRzu.js +34 -0
  86. package/dist/embed/mermaid/linear-CLS335Sc.js +287 -0
  87. package/dist/embed/mermaid/mermaid-parser.core-BoI6HFCg.js +638 -0
  88. package/dist/embed/mermaid/mermaid.js +1092 -0
  89. package/dist/embed/mermaid/mindmap-definition-YA3MSWOX-1bs_tKMD.js +1006 -0
  90. package/dist/embed/mermaid/ordinal-Da0rnhxr.js +65 -0
  91. package/dist/embed/mermaid/packet-AYTQ26CC-BAodtDR3.js +3 -0
  92. package/dist/embed/mermaid/path-hN9ktzbr.js +84 -0
  93. package/dist/embed/mermaid/pegDiagram-XKGWAZYB-DsrQs7Qo.js +94 -0
  94. package/dist/embed/mermaid/pie-WAS4IAKB-Yw-9-2EN.js +3 -0
  95. package/dist/embed/mermaid/pieDiagram-E7YTZNPT-BvkRs6Xl.js +203 -0
  96. package/dist/embed/mermaid/quadrantDiagram-AXDQQJYC-DDSDkbcq.js +2001 -0
  97. package/dist/embed/mermaid/radar-RG4KPBEZ-BtjjaEPe.js +3 -0
  98. package/dist/embed/mermaid/railroad-74A4TZTK-Du7TjeaO.js +3 -0
  99. package/dist/embed/mermaid/railroad-abnf-HS5TGJTU-D3flpty6.js +3 -0
  100. package/dist/embed/mermaid/railroad-ebnf-LZEXJU2U-DWpeYHWC.js +3 -0
  101. package/dist/embed/mermaid/railroad-peg-WCYAUIDC-DKiyz9fh.js +3 -0
  102. package/dist/embed/mermaid/railroadDiagram-O6MQD6OU-T__Cw3ez.js +76 -0
  103. package/dist/embed/mermaid/requirementDiagram-BXWQKSXE-ADir8pgL.js +2224 -0
  104. package/dist/embed/mermaid/rough.esm-XhrPyaQA.js +1361 -0
  105. package/dist/embed/mermaid/sankeyDiagram-P5KCCOFB-YTgoqhmd.js +972 -0
  106. package/dist/embed/mermaid/sequenceDiagram-WJ2MYXX4-Dpn6ph0n.js +4156 -0
  107. package/dist/embed/mermaid/sizeCapture-INFHLROL-C2wlw8KF.js +46 -0
  108. package/dist/embed/mermaid/src-CH4XuqUv.js +2147 -0
  109. package/dist/embed/mermaid/stateDiagram-D77RDMKH-V_8TbftV.js +220 -0
  110. package/dist/embed/mermaid/stateDiagram-v2-MP3YSRHH-us7SNDcU.js +30 -0
  111. package/dist/embed/mermaid/swimlanes-42K2YHIH-wzihXC1V.js +4979 -0
  112. package/dist/embed/mermaid/swimlanesDiagram-VR7AAH4N-BML-4Vp0.js +31 -0
  113. package/dist/embed/mermaid/timeline-definition-24CTP7MA-C3BzP6RA.js +1069 -0
  114. package/dist/embed/mermaid/treeView-Q6P3EWNA-Ba1dLcIR.js +3 -0
  115. package/dist/embed/mermaid/treemap-WGGIJYW6-D9G3ZsOW.js +3 -0
  116. package/dist/embed/mermaid/vennDiagram-4TSXK5OY-Cq1JumSe.js +1880 -0
  117. package/dist/embed/mermaid/wardley-WFR3VGLG-gAtip5-G.js +3 -0
  118. package/dist/embed/mermaid/wardleyDiagram-VM6X3IG4-HtzestuU.js +645 -0
  119. package/dist/embed/mermaid/xychartDiagram-S5SC5T6Z-BE-W0B_D.js +2210 -0
  120. package/dist/embed.js +903 -0
  121. package/dist/embed.js.map +1 -0
  122. package/dist/smarter-chat-library.es.js +1592 -1583
  123. package/dist/smarter-chat-library.es.js.map +1 -1
  124. package/dist/smarter-chat-library.umd.js +43 -43
  125. package/dist/smarter-chat-library.umd.js.map +1 -1
  126. package/dist/types/src/components/SmarterChat/Component.d.ts +1 -1
  127. package/dist/types/src/contract.gen.d.ts +41 -26
  128. package/dist/types/src/embed/EmbedApp.d.ts +10 -0
  129. package/dist/types/src/embed/assets.d.ts +7 -0
  130. package/dist/types/src/embed/autoMount.d.ts +18 -0
  131. package/dist/types/src/embed/css.d.ts +15 -0
  132. package/dist/types/src/embed/element.d.ts +19 -0
  133. package/dist/types/src/embed/index.d.ts +17 -0
  134. package/dist/types/src/embed/mermaid.d.ts +2 -0
  135. package/dist/types/src/embed/mermaidImport.d.ts +1 -0
  136. package/dist/types/src/embed/options.d.ts +69 -0
  137. package/dist/types/src/lib/cookie.d.ts +4 -3
  138. package/dist/types/src/lib/mermaidImport.d.ts +8 -0
  139. package/dist/types/src/types.d.ts +7 -0
  140. package/dist/ui-chat.css +1 -1
  141. package/package.json +10 -4
@@ -0,0 +1,2147 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-BAad7w_K.js";
2
+ //#region \0rolldown/runtime.js
3
+ var t = Object.create, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, a = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, t, a, s) => {
4
+ if (t && typeof t == "object" || typeof t == "function") for (var c = i(t), l = 0, u = c.length, d; l < u; l++) d = c[l], !o.call(e, d) && d !== a && n(e, d, {
5
+ get: ((e) => t[e]).bind(null, d),
6
+ enumerable: !(s = r(t, d)) || s.enumerable
7
+ });
8
+ return e;
9
+ }, l = (e, r, i) => (i = e == null ? {} : t(a(e)), c(r || !e || !e.__esModule || !o.call(e, "default") ? n(i, "default", {
10
+ value: e,
11
+ enumerable: !0
12
+ }) : i, e)), u = /* @__PURE__ */ s(((e, t) => {
13
+ (function(n, r) {
14
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
15
+ })(e, (function() {
16
+ var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
17
+ name: "en",
18
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
19
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
20
+ ordinal: function(e) {
21
+ var t = [
22
+ "th",
23
+ "st",
24
+ "nd",
25
+ "rd"
26
+ ], n = e % 100;
27
+ return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
28
+ }
29
+ }, _ = function(e, t, n) {
30
+ var r = String(e);
31
+ return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
32
+ }, v = {
33
+ s: _,
34
+ z: function(e) {
35
+ var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
36
+ return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
37
+ },
38
+ m: function e(t, n) {
39
+ if (t.date() < n.date()) return -e(n, t);
40
+ var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
41
+ return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
42
+ },
43
+ a: function(e) {
44
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
45
+ },
46
+ p: function(e) {
47
+ return {
48
+ M: l,
49
+ y: d,
50
+ w: c,
51
+ d: s,
52
+ D: f,
53
+ h: o,
54
+ m: a,
55
+ s: i,
56
+ ms: r,
57
+ Q: u
58
+ }[e] || String(e || "").toLowerCase().replace(/s$/, "");
59
+ },
60
+ u: function(e) {
61
+ return e === void 0;
62
+ }
63
+ }, y = "en", b = {};
64
+ b[y] = g;
65
+ var ee = "$isDayjsObject", x = function(e) {
66
+ return e instanceof T || !(!e || !e[ee]);
67
+ }, S = function e(t, n, r) {
68
+ var i;
69
+ if (!t) return y;
70
+ if (typeof t == "string") {
71
+ var a = t.toLowerCase();
72
+ b[a] && (i = a), n && (b[a] = n, i = a);
73
+ var o = t.split("-");
74
+ if (!i && o.length > 1) return e(o[0]);
75
+ } else {
76
+ var s = t.name;
77
+ b[s] = t, i = s;
78
+ }
79
+ return !r && i && (y = i), i || !r && y;
80
+ }, C = function(e, t) {
81
+ if (x(e)) return e.clone();
82
+ var n = typeof t == "object" ? t : {};
83
+ return n.date = e, n.args = arguments, new T(n);
84
+ }, w = v;
85
+ w.l = S, w.i = x, w.w = function(e, t) {
86
+ return C(e, {
87
+ locale: t.$L,
88
+ utc: t.$u,
89
+ x: t.$x,
90
+ $offset: t.$offset
91
+ });
92
+ };
93
+ var T = function() {
94
+ function g(e) {
95
+ this.$L = S(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[ee] = !0;
96
+ }
97
+ var _ = g.prototype;
98
+ return _.parse = function(e) {
99
+ this.$d = function(e) {
100
+ var t = e.date, n = e.utc;
101
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
102
+ if (w.u(t)) return /* @__PURE__ */ new Date();
103
+ if (t instanceof Date) return new Date(t);
104
+ if (typeof t == "string" && !/Z$/i.test(t)) {
105
+ var r = t.match(m);
106
+ if (r) {
107
+ var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
108
+ return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
109
+ }
110
+ }
111
+ return new Date(t);
112
+ }(e), this.init();
113
+ }, _.init = function() {
114
+ var e = this.$d;
115
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
116
+ }, _.$utils = function() {
117
+ return w;
118
+ }, _.isValid = function() {
119
+ return this.$d.toString() !== p;
120
+ }, _.isSame = function(e, t) {
121
+ var n = C(e);
122
+ return this.startOf(t) <= n && n <= this.endOf(t);
123
+ }, _.isAfter = function(e, t) {
124
+ return C(e) < this.startOf(t);
125
+ }, _.isBefore = function(e, t) {
126
+ return this.endOf(t) < C(e);
127
+ }, _.$g = function(e, t, n) {
128
+ return w.u(e) ? this[t] : this.set(n, e);
129
+ }, _.unix = function() {
130
+ return Math.floor(this.valueOf() / 1e3);
131
+ }, _.valueOf = function() {
132
+ return this.$d.getTime();
133
+ }, _.startOf = function(e, t) {
134
+ var n = this, r = !!w.u(t) || t, u = w.p(e), p = function(e, t) {
135
+ var i = w.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
136
+ return r ? i : i.endOf(s);
137
+ }, m = function(e, t) {
138
+ return w.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
139
+ 0,
140
+ 0,
141
+ 0,
142
+ 0
143
+ ] : [
144
+ 23,
145
+ 59,
146
+ 59,
147
+ 999
148
+ ]).slice(t)), n);
149
+ }, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
150
+ switch (u) {
151
+ case d: return r ? p(1, 0) : p(31, 11);
152
+ case l: return r ? p(1, g) : p(0, g + 1);
153
+ case c:
154
+ var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
155
+ return p(r ? _ - b : _ + (6 - b), g);
156
+ case s:
157
+ case f: return m(v + "Hours", 0);
158
+ case o: return m(v + "Minutes", 1);
159
+ case a: return m(v + "Seconds", 2);
160
+ case i: return m(v + "Milliseconds", 3);
161
+ default: return this.clone();
162
+ }
163
+ }, _.endOf = function(e) {
164
+ return this.startOf(e, !1);
165
+ }, _.$set = function(e, t) {
166
+ var n, c = w.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
167
+ if (c === l || c === d) {
168
+ var h = this.clone().set(f, 1);
169
+ h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
170
+ } else p && this.$d[p](m);
171
+ return this.init(), this;
172
+ }, _.set = function(e, t) {
173
+ return this.clone().$set(e, t);
174
+ }, _.get = function(e) {
175
+ return this[w.p(e)]();
176
+ }, _.add = function(r, u) {
177
+ var f, p = this;
178
+ r = Number(r);
179
+ var m = w.p(u), h = function(e) {
180
+ var t = C(p);
181
+ return w.w(t.date(t.date() + Math.round(e * r)), p);
182
+ };
183
+ if (m === l) return this.set(l, this.$M + r);
184
+ if (m === d) return this.set(d, this.$y + r);
185
+ if (m === s) return h(1);
186
+ if (m === c) return h(7);
187
+ var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
188
+ return w.w(_, this);
189
+ }, _.subtract = function(e, t) {
190
+ return this.add(-1 * e, t);
191
+ }, _.format = function(e) {
192
+ var t = this, n = this.$locale();
193
+ if (!this.isValid()) return n.invalidDate || p;
194
+ var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = w.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
195
+ return e && (e[n] || e(t, r)) || i[n].slice(0, a);
196
+ }, f = function(e) {
197
+ return w.s(a % 12 || 12, e, "0");
198
+ }, m = u || function(e, t, n) {
199
+ var r = e < 12 ? "AM" : "PM";
200
+ return n ? r.toLowerCase() : r;
201
+ };
202
+ return r.replace(h, (function(e, r) {
203
+ return r || function(e) {
204
+ switch (e) {
205
+ case "YY": return String(t.$y).slice(-2);
206
+ case "YYYY": return w.s(t.$y, 4, "0");
207
+ case "M": return s + 1;
208
+ case "MM": return w.s(s + 1, 2, "0");
209
+ case "MMM": return d(n.monthsShort, s, l, 3);
210
+ case "MMMM": return d(l, s);
211
+ case "D": return t.$D;
212
+ case "DD": return w.s(t.$D, 2, "0");
213
+ case "d": return String(t.$W);
214
+ case "dd": return d(n.weekdaysMin, t.$W, c, 2);
215
+ case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
216
+ case "dddd": return c[t.$W];
217
+ case "H": return String(a);
218
+ case "HH": return w.s(a, 2, "0");
219
+ case "h": return f(1);
220
+ case "hh": return f(2);
221
+ case "a": return m(a, o, !0);
222
+ case "A": return m(a, o, !1);
223
+ case "m": return String(o);
224
+ case "mm": return w.s(o, 2, "0");
225
+ case "s": return String(t.$s);
226
+ case "ss": return w.s(t.$s, 2, "0");
227
+ case "SSS": return w.s(t.$ms, 3, "0");
228
+ case "Z": return i;
229
+ }
230
+ return null;
231
+ }(e) || i.replace(":", "");
232
+ }));
233
+ }, _.utcOffset = function() {
234
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
235
+ }, _.diff = function(r, f, p) {
236
+ var m, h = this, g = w.p(f), _ = C(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
237
+ return w.m(h, _);
238
+ };
239
+ switch (g) {
240
+ case d:
241
+ m = b() / 12;
242
+ break;
243
+ case l:
244
+ m = b();
245
+ break;
246
+ case u:
247
+ m = b() / 3;
248
+ break;
249
+ case c:
250
+ m = (y - v) / 6048e5;
251
+ break;
252
+ case s:
253
+ m = (y - v) / 864e5;
254
+ break;
255
+ case o:
256
+ m = y / n;
257
+ break;
258
+ case a:
259
+ m = y / t;
260
+ break;
261
+ case i:
262
+ m = y / e;
263
+ break;
264
+ default: m = y;
265
+ }
266
+ return p ? m : w.a(m);
267
+ }, _.daysInMonth = function() {
268
+ return this.endOf(l).$D;
269
+ }, _.$locale = function() {
270
+ return b[this.$L];
271
+ }, _.locale = function(e, t) {
272
+ if (!e) return this.$L;
273
+ var n = this.clone(), r = S(e, t, !0);
274
+ return r && (n.$L = r), n;
275
+ }, _.clone = function() {
276
+ return w.w(this.$d, this);
277
+ }, _.toDate = function() {
278
+ return new Date(this.valueOf());
279
+ }, _.toJSON = function() {
280
+ return this.isValid() ? this.toISOString() : null;
281
+ }, _.toISOString = function() {
282
+ return this.$d.toISOString();
283
+ }, _.toString = function() {
284
+ return this.$d.toUTCString();
285
+ }, g;
286
+ }(), te = T.prototype;
287
+ return C.prototype = te, [
288
+ ["$ms", r],
289
+ ["$s", i],
290
+ ["$m", a],
291
+ ["$H", o],
292
+ ["$W", s],
293
+ ["$M", l],
294
+ ["$y", d],
295
+ ["$D", f]
296
+ ].forEach((function(e) {
297
+ te[e[1]] = function(t) {
298
+ return this.$g(t, e[0], e[1]);
299
+ };
300
+ })), C.extend = function(e, t) {
301
+ return e.$i ||= (e(t, T, C), !0), C;
302
+ }, C.locale = S, C.isDayjs = x, C.unix = function(e) {
303
+ return C(1e3 * e);
304
+ }, C.en = b[y], C.Ls = b, C.p = {}, C;
305
+ }));
306
+ })), d = /* @__PURE__ */ l(u(), 1), f = {
307
+ trace: 0,
308
+ debug: 1,
309
+ info: 2,
310
+ warn: 3,
311
+ error: 4,
312
+ fatal: 5
313
+ }, p = {
314
+ trace: /* @__PURE__ */ e((...e) => {}, "trace"),
315
+ debug: /* @__PURE__ */ e((...e) => {}, "debug"),
316
+ info: /* @__PURE__ */ e((...e) => {}, "info"),
317
+ warn: /* @__PURE__ */ e((...e) => {}, "warn"),
318
+ error: /* @__PURE__ */ e((...e) => {}, "error"),
319
+ fatal: /* @__PURE__ */ e((...e) => {}, "fatal")
320
+ }, m = /* @__PURE__ */ e(function(e = "fatal") {
321
+ let t = f.fatal;
322
+ typeof e == "string" ? e.toLowerCase() in f && (t = f[e]) : typeof e == "number" && (t = e), p.trace = () => {}, p.debug = () => {}, p.info = () => {}, p.warn = () => {}, p.error = () => {}, p.fatal = () => {}, t <= f.fatal && (p.fatal = console.error ? console.error.bind(console, h("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", h("FATAL"))), t <= f.error && (p.error = console.error ? console.error.bind(console, h("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", h("ERROR"))), t <= f.warn && (p.warn = console.warn ? console.warn.bind(console, h("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", h("WARN"))), t <= f.info && (p.info = console.info ? console.info.bind(console, h("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", h("INFO"))), t <= f.debug && (p.debug = console.debug ? console.debug.bind(console, h("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", h("DEBUG"))), t <= f.trace && (p.trace = console.debug ? console.debug.bind(console, h("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", h("TRACE")));
323
+ }, "setLogLevel"), h = /* @__PURE__ */ e((e) => `%c${(0, d.default)().format("ss.SSS")} : ${e} : `, "format"), g = { value: () => {} };
324
+ function _() {
325
+ for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
326
+ if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
327
+ n[r] = [];
328
+ }
329
+ return new v(n);
330
+ }
331
+ function v(e) {
332
+ this._ = e;
333
+ }
334
+ function y(e, t) {
335
+ return e.trim().split(/^|\s+/).map(function(e) {
336
+ var n = "", r = e.indexOf(".");
337
+ if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
338
+ return {
339
+ type: e,
340
+ name: n
341
+ };
342
+ });
343
+ }
344
+ v.prototype = _.prototype = {
345
+ constructor: v,
346
+ on: function(e, t) {
347
+ var n = this._, r = y(e + "", n), i, a = -1, o = r.length;
348
+ if (arguments.length < 2) {
349
+ for (; ++a < o;) if ((i = (e = r[a]).type) && (i = b(n[i], e.name))) return i;
350
+ return;
351
+ }
352
+ if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
353
+ for (; ++a < o;) if (i = (e = r[a]).type) n[i] = ee(n[i], e.name, t);
354
+ else if (t == null) for (i in n) n[i] = ee(n[i], e.name, null);
355
+ return this;
356
+ },
357
+ copy: function() {
358
+ var e = {}, t = this._;
359
+ for (var n in t) e[n] = t[n].slice();
360
+ return new v(e);
361
+ },
362
+ call: function(e, t) {
363
+ if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
364
+ if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
365
+ for (a = this._[e], r = 0, i = a.length; r < i; ++r) a[r].value.apply(t, n);
366
+ },
367
+ apply: function(e, t, n) {
368
+ if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
369
+ for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
370
+ }
371
+ };
372
+ function b(e, t) {
373
+ for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
374
+ }
375
+ function ee(e, t, n) {
376
+ for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
377
+ e[r] = g, e = e.slice(0, r).concat(e.slice(r + 1));
378
+ break;
379
+ }
380
+ return n != null && e.push({
381
+ name: t,
382
+ value: n
383
+ }), e;
384
+ }
385
+ var x = {
386
+ svg: "http://www.w3.org/2000/svg",
387
+ xhtml: "http://www.w3.org/1999/xhtml",
388
+ xlink: "http://www.w3.org/1999/xlink",
389
+ xml: "http://www.w3.org/XML/1998/namespace",
390
+ xmlns: "http://www.w3.org/2000/xmlns/"
391
+ };
392
+ //#endregion
393
+ //#region ../../node_modules/d3-selection/src/namespace.js
394
+ function S(e) {
395
+ var t = e += "", n = t.indexOf(":");
396
+ return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), x.hasOwnProperty(t) ? {
397
+ space: x[t],
398
+ local: e
399
+ } : e;
400
+ }
401
+ //#endregion
402
+ //#region ../../node_modules/d3-selection/src/creator.js
403
+ function C(e) {
404
+ return function() {
405
+ var t = this.ownerDocument, n = this.namespaceURI;
406
+ return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
407
+ };
408
+ }
409
+ function w(e) {
410
+ return function() {
411
+ return this.ownerDocument.createElementNS(e.space, e.local);
412
+ };
413
+ }
414
+ function T(e) {
415
+ var t = S(e);
416
+ return (t.local ? w : C)(t);
417
+ }
418
+ //#endregion
419
+ //#region ../../node_modules/d3-selection/src/selector.js
420
+ function te() {}
421
+ function ne(e) {
422
+ return e == null ? te : function() {
423
+ return this.querySelector(e);
424
+ };
425
+ }
426
+ //#endregion
427
+ //#region ../../node_modules/d3-selection/src/selection/select.js
428
+ function re(e) {
429
+ typeof e != "function" && (e = ne(e));
430
+ for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
431
+ return new D(r, this._parents);
432
+ }
433
+ //#endregion
434
+ //#region ../../node_modules/d3-selection/src/array.js
435
+ function ie(e) {
436
+ return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
437
+ }
438
+ //#endregion
439
+ //#region ../../node_modules/d3-selection/src/selectorAll.js
440
+ function ae() {
441
+ return [];
442
+ }
443
+ function oe(e) {
444
+ return e == null ? ae : function() {
445
+ return this.querySelectorAll(e);
446
+ };
447
+ }
448
+ //#endregion
449
+ //#region ../../node_modules/d3-selection/src/selection/selectAll.js
450
+ function se(e) {
451
+ return function() {
452
+ return ie(e.apply(this, arguments));
453
+ };
454
+ }
455
+ function ce(e) {
456
+ e = typeof e == "function" ? se(e) : oe(e);
457
+ for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
458
+ return new D(r, i);
459
+ }
460
+ //#endregion
461
+ //#region ../../node_modules/d3-selection/src/matcher.js
462
+ function le(e) {
463
+ return function() {
464
+ return this.matches(e);
465
+ };
466
+ }
467
+ function ue(e) {
468
+ return function(t) {
469
+ return t.matches(e);
470
+ };
471
+ }
472
+ //#endregion
473
+ //#region ../../node_modules/d3-selection/src/selection/selectChild.js
474
+ var de = Array.prototype.find;
475
+ function fe(e) {
476
+ return function() {
477
+ return de.call(this.children, e);
478
+ };
479
+ }
480
+ function pe() {
481
+ return this.firstElementChild;
482
+ }
483
+ function me(e) {
484
+ return this.select(e == null ? pe : fe(typeof e == "function" ? e : ue(e)));
485
+ }
486
+ //#endregion
487
+ //#region ../../node_modules/d3-selection/src/selection/selectChildren.js
488
+ var he = Array.prototype.filter;
489
+ function ge() {
490
+ return Array.from(this.children);
491
+ }
492
+ function _e(e) {
493
+ return function() {
494
+ return he.call(this.children, e);
495
+ };
496
+ }
497
+ function ve(e) {
498
+ return this.selectAll(e == null ? ge : _e(typeof e == "function" ? e : ue(e)));
499
+ }
500
+ //#endregion
501
+ //#region ../../node_modules/d3-selection/src/selection/filter.js
502
+ function ye(e) {
503
+ typeof e != "function" && (e = le(e));
504
+ for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
505
+ return new D(r, this._parents);
506
+ }
507
+ //#endregion
508
+ //#region ../../node_modules/d3-selection/src/selection/sparse.js
509
+ function be(e) {
510
+ return Array(e.length);
511
+ }
512
+ //#endregion
513
+ //#region ../../node_modules/d3-selection/src/selection/enter.js
514
+ function xe() {
515
+ return new D(this._enter || this._groups.map(be), this._parents);
516
+ }
517
+ function Se(e, t) {
518
+ this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
519
+ }
520
+ Se.prototype = {
521
+ constructor: Se,
522
+ appendChild: function(e) {
523
+ return this._parent.insertBefore(e, this._next);
524
+ },
525
+ insertBefore: function(e, t) {
526
+ return this._parent.insertBefore(e, t);
527
+ },
528
+ querySelector: function(e) {
529
+ return this._parent.querySelector(e);
530
+ },
531
+ querySelectorAll: function(e) {
532
+ return this._parent.querySelectorAll(e);
533
+ }
534
+ };
535
+ //#endregion
536
+ //#region ../../node_modules/d3-selection/src/constant.js
537
+ function Ce(e) {
538
+ return function() {
539
+ return e;
540
+ };
541
+ }
542
+ //#endregion
543
+ //#region ../../node_modules/d3-selection/src/selection/data.js
544
+ function we(e, t, n, r, i, a) {
545
+ for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new Se(e, a[o]);
546
+ for (; o < c; ++o) (s = t[o]) && (i[o] = s);
547
+ }
548
+ function Te(e, t, n, r, i, a, o) {
549
+ var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
550
+ for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
551
+ for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new Se(e, a[s]);
552
+ for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
553
+ }
554
+ function Ee(e) {
555
+ return e.__data__;
556
+ }
557
+ function De(e, t) {
558
+ if (!arguments.length) return Array.from(this, Ee);
559
+ var n = t ? Te : we, r = this._parents, i = this._groups;
560
+ typeof e != "function" && (e = Ce(e));
561
+ for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
562
+ var u = r[l], d = i[l], f = d.length, p = Oe(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
563
+ n(u, d, h, g, c[l] = Array(f), p, t);
564
+ for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
565
+ for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
566
+ y._next = b || null;
567
+ }
568
+ }
569
+ return o = new D(o, r), o._enter = s, o._exit = c, o;
570
+ }
571
+ function Oe(e) {
572
+ return typeof e == "object" && "length" in e ? e : Array.from(e);
573
+ }
574
+ //#endregion
575
+ //#region ../../node_modules/d3-selection/src/selection/exit.js
576
+ function ke() {
577
+ return new D(this._exit || this._groups.map(be), this._parents);
578
+ }
579
+ //#endregion
580
+ //#region ../../node_modules/d3-selection/src/selection/join.js
581
+ function Ae(e, t, n) {
582
+ var r = this.enter(), i = this, a = this.exit();
583
+ return typeof e == "function" ? (r = e(r), r &&= r.selection()) : r = r.append(e + ""), t != null && (i = t(i), i &&= i.selection()), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
584
+ }
585
+ //#endregion
586
+ //#region ../../node_modules/d3-selection/src/selection/merge.js
587
+ function je(e) {
588
+ for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
589
+ for (; c < i; ++c) s[c] = n[c];
590
+ return new D(s, this._parents);
591
+ }
592
+ //#endregion
593
+ //#region ../../node_modules/d3-selection/src/selection/order.js
594
+ function Me() {
595
+ for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
596
+ return this;
597
+ }
598
+ //#endregion
599
+ //#region ../../node_modules/d3-selection/src/selection/sort.js
600
+ function Ne(e) {
601
+ e ||= Pe;
602
+ function t(t, n) {
603
+ return t && n ? e(t.__data__, n.__data__) : !t - !n;
604
+ }
605
+ for (var n = this._groups, r = n.length, i = Array(r), a = 0; a < r; ++a) {
606
+ for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
607
+ c.sort(t);
608
+ }
609
+ return new D(i, this._parents).order();
610
+ }
611
+ function Pe(e, t) {
612
+ return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
613
+ }
614
+ //#endregion
615
+ //#region ../../node_modules/d3-selection/src/selection/call.js
616
+ function Fe() {
617
+ var e = arguments[0];
618
+ return arguments[0] = this, e.apply(null, arguments), this;
619
+ }
620
+ //#endregion
621
+ //#region ../../node_modules/d3-selection/src/selection/nodes.js
622
+ function Ie() {
623
+ return Array.from(this);
624
+ }
625
+ //#endregion
626
+ //#region ../../node_modules/d3-selection/src/selection/node.js
627
+ function Le() {
628
+ for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
629
+ var o = r[i];
630
+ if (o) return o;
631
+ }
632
+ return null;
633
+ }
634
+ //#endregion
635
+ //#region ../../node_modules/d3-selection/src/selection/size.js
636
+ function Re() {
637
+ let e = 0;
638
+ for (let t of this) ++e;
639
+ return e;
640
+ }
641
+ //#endregion
642
+ //#region ../../node_modules/d3-selection/src/selection/empty.js
643
+ function ze() {
644
+ return !this.node();
645
+ }
646
+ //#endregion
647
+ //#region ../../node_modules/d3-selection/src/selection/each.js
648
+ function Be(e) {
649
+ for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
650
+ return this;
651
+ }
652
+ //#endregion
653
+ //#region ../../node_modules/d3-selection/src/selection/attr.js
654
+ function Ve(e) {
655
+ return function() {
656
+ this.removeAttribute(e);
657
+ };
658
+ }
659
+ function He(e) {
660
+ return function() {
661
+ this.removeAttributeNS(e.space, e.local);
662
+ };
663
+ }
664
+ function Ue(e, t) {
665
+ return function() {
666
+ this.setAttribute(e, t);
667
+ };
668
+ }
669
+ function We(e, t) {
670
+ return function() {
671
+ this.setAttributeNS(e.space, e.local, t);
672
+ };
673
+ }
674
+ function Ge(e, t) {
675
+ return function() {
676
+ var n = t.apply(this, arguments);
677
+ n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
678
+ };
679
+ }
680
+ function Ke(e, t) {
681
+ return function() {
682
+ var n = t.apply(this, arguments);
683
+ n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
684
+ };
685
+ }
686
+ function qe(e, t) {
687
+ var n = S(e);
688
+ if (arguments.length < 2) {
689
+ var r = this.node();
690
+ return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
691
+ }
692
+ return this.each((t == null ? n.local ? He : Ve : typeof t == "function" ? n.local ? Ke : Ge : n.local ? We : Ue)(n, t));
693
+ }
694
+ //#endregion
695
+ //#region ../../node_modules/d3-selection/src/window.js
696
+ function Je(e) {
697
+ return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
698
+ }
699
+ //#endregion
700
+ //#region ../../node_modules/d3-selection/src/selection/style.js
701
+ function Ye(e) {
702
+ return function() {
703
+ this.style.removeProperty(e);
704
+ };
705
+ }
706
+ function Xe(e, t, n) {
707
+ return function() {
708
+ this.style.setProperty(e, t, n);
709
+ };
710
+ }
711
+ function Ze(e, t, n) {
712
+ return function() {
713
+ var r = t.apply(this, arguments);
714
+ r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
715
+ };
716
+ }
717
+ function Qe(e, t, n) {
718
+ return arguments.length > 1 ? this.each((t == null ? Ye : typeof t == "function" ? Ze : Xe)(e, t, n ?? "")) : E(this.node(), e);
719
+ }
720
+ function E(e, t) {
721
+ return e.style.getPropertyValue(t) || Je(e).getComputedStyle(e, null).getPropertyValue(t);
722
+ }
723
+ //#endregion
724
+ //#region ../../node_modules/d3-selection/src/selection/property.js
725
+ function $e(e) {
726
+ return function() {
727
+ delete this[e];
728
+ };
729
+ }
730
+ function et(e, t) {
731
+ return function() {
732
+ this[e] = t;
733
+ };
734
+ }
735
+ function tt(e, t) {
736
+ return function() {
737
+ var n = t.apply(this, arguments);
738
+ n == null ? delete this[e] : this[e] = n;
739
+ };
740
+ }
741
+ function nt(e, t) {
742
+ return arguments.length > 1 ? this.each((t == null ? $e : typeof t == "function" ? tt : et)(e, t)) : this.node()[e];
743
+ }
744
+ //#endregion
745
+ //#region ../../node_modules/d3-selection/src/selection/classed.js
746
+ function rt(e) {
747
+ return e.trim().split(/^|\s+/);
748
+ }
749
+ function it(e) {
750
+ return e.classList || new at(e);
751
+ }
752
+ function at(e) {
753
+ this._node = e, this._names = rt(e.getAttribute("class") || "");
754
+ }
755
+ at.prototype = {
756
+ add: function(e) {
757
+ this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
758
+ },
759
+ remove: function(e) {
760
+ var t = this._names.indexOf(e);
761
+ t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
762
+ },
763
+ contains: function(e) {
764
+ return this._names.indexOf(e) >= 0;
765
+ }
766
+ };
767
+ function ot(e, t) {
768
+ for (var n = it(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
769
+ }
770
+ function st(e, t) {
771
+ for (var n = it(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
772
+ }
773
+ function ct(e) {
774
+ return function() {
775
+ ot(this, e);
776
+ };
777
+ }
778
+ function lt(e) {
779
+ return function() {
780
+ st(this, e);
781
+ };
782
+ }
783
+ function ut(e, t) {
784
+ return function() {
785
+ (t.apply(this, arguments) ? ot : st)(this, e);
786
+ };
787
+ }
788
+ function dt(e, t) {
789
+ var n = rt(e + "");
790
+ if (arguments.length < 2) {
791
+ for (var r = it(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
792
+ return !0;
793
+ }
794
+ return this.each((typeof t == "function" ? ut : t ? ct : lt)(n, t));
795
+ }
796
+ //#endregion
797
+ //#region ../../node_modules/d3-selection/src/selection/text.js
798
+ function ft() {
799
+ this.textContent = "";
800
+ }
801
+ function pt(e) {
802
+ return function() {
803
+ this.textContent = e;
804
+ };
805
+ }
806
+ function mt(e) {
807
+ return function() {
808
+ var t = e.apply(this, arguments);
809
+ this.textContent = t ?? "";
810
+ };
811
+ }
812
+ function ht(e) {
813
+ return arguments.length ? this.each(e == null ? ft : (typeof e == "function" ? mt : pt)(e)) : this.node().textContent;
814
+ }
815
+ //#endregion
816
+ //#region ../../node_modules/d3-selection/src/selection/html.js
817
+ function gt() {
818
+ this.innerHTML = "";
819
+ }
820
+ function _t(e) {
821
+ return function() {
822
+ this.innerHTML = e;
823
+ };
824
+ }
825
+ function vt(e) {
826
+ return function() {
827
+ var t = e.apply(this, arguments);
828
+ this.innerHTML = t ?? "";
829
+ };
830
+ }
831
+ function yt(e) {
832
+ return arguments.length ? this.each(e == null ? gt : (typeof e == "function" ? vt : _t)(e)) : this.node().innerHTML;
833
+ }
834
+ //#endregion
835
+ //#region ../../node_modules/d3-selection/src/selection/raise.js
836
+ function bt() {
837
+ this.nextSibling && this.parentNode.appendChild(this);
838
+ }
839
+ function xt() {
840
+ return this.each(bt);
841
+ }
842
+ //#endregion
843
+ //#region ../../node_modules/d3-selection/src/selection/lower.js
844
+ function St() {
845
+ this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
846
+ }
847
+ function Ct() {
848
+ return this.each(St);
849
+ }
850
+ //#endregion
851
+ //#region ../../node_modules/d3-selection/src/selection/append.js
852
+ function wt(e) {
853
+ var t = typeof e == "function" ? e : T(e);
854
+ return this.select(function() {
855
+ return this.appendChild(t.apply(this, arguments));
856
+ });
857
+ }
858
+ //#endregion
859
+ //#region ../../node_modules/d3-selection/src/selection/insert.js
860
+ function Tt() {
861
+ return null;
862
+ }
863
+ function Et(e, t) {
864
+ var n = typeof e == "function" ? e : T(e), r = t == null ? Tt : typeof t == "function" ? t : ne(t);
865
+ return this.select(function() {
866
+ return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
867
+ });
868
+ }
869
+ //#endregion
870
+ //#region ../../node_modules/d3-selection/src/selection/remove.js
871
+ function Dt() {
872
+ var e = this.parentNode;
873
+ e && e.removeChild(this);
874
+ }
875
+ function Ot() {
876
+ return this.each(Dt);
877
+ }
878
+ //#endregion
879
+ //#region ../../node_modules/d3-selection/src/selection/clone.js
880
+ function kt() {
881
+ var e = this.cloneNode(!1), t = this.parentNode;
882
+ return t ? t.insertBefore(e, this.nextSibling) : e;
883
+ }
884
+ function At() {
885
+ var e = this.cloneNode(!0), t = this.parentNode;
886
+ return t ? t.insertBefore(e, this.nextSibling) : e;
887
+ }
888
+ function jt(e) {
889
+ return this.select(e ? At : kt);
890
+ }
891
+ //#endregion
892
+ //#region ../../node_modules/d3-selection/src/selection/datum.js
893
+ function Mt(e) {
894
+ return arguments.length ? this.property("__data__", e) : this.node().__data__;
895
+ }
896
+ //#endregion
897
+ //#region ../../node_modules/d3-selection/src/selection/on.js
898
+ function Nt(e) {
899
+ return function(t) {
900
+ e.call(this, t, this.__data__);
901
+ };
902
+ }
903
+ function Pt(e) {
904
+ return e.trim().split(/^|\s+/).map(function(e) {
905
+ var t = "", n = e.indexOf(".");
906
+ return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
907
+ type: e,
908
+ name: t
909
+ };
910
+ });
911
+ }
912
+ function Ft(e) {
913
+ return function() {
914
+ var t = this.__on;
915
+ if (t) {
916
+ for (var n = 0, r = -1, i = t.length, a; n < i; ++n) a = t[n], (!e.type || a.type === e.type) && a.name === e.name ? this.removeEventListener(a.type, a.listener, a.options) : t[++r] = a;
917
+ ++r ? t.length = r : delete this.__on;
918
+ }
919
+ };
920
+ }
921
+ function It(e, t, n) {
922
+ return function() {
923
+ var r = this.__on, i, a = Nt(t);
924
+ if (r) {
925
+ for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
926
+ this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
927
+ return;
928
+ }
929
+ }
930
+ this.addEventListener(e.type, a, n), i = {
931
+ type: e.type,
932
+ name: e.name,
933
+ value: t,
934
+ listener: a,
935
+ options: n
936
+ }, r ? r.push(i) : this.__on = [i];
937
+ };
938
+ }
939
+ function Lt(e, t, n) {
940
+ var r = Pt(e + ""), i, a = r.length, o;
941
+ if (arguments.length < 2) {
942
+ var s = this.node().__on;
943
+ if (s) {
944
+ for (var c = 0, l = s.length, u; c < l; ++c) for (i = 0, u = s[c]; i < a; ++i) if ((o = r[i]).type === u.type && o.name === u.name) return u.value;
945
+ }
946
+ return;
947
+ }
948
+ for (s = t ? It : Ft, i = 0; i < a; ++i) this.each(s(r[i], t, n));
949
+ return this;
950
+ }
951
+ //#endregion
952
+ //#region ../../node_modules/d3-selection/src/selection/dispatch.js
953
+ function Rt(e, t, n) {
954
+ var r = Je(e), i = r.CustomEvent;
955
+ typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
956
+ }
957
+ function zt(e, t) {
958
+ return function() {
959
+ return Rt(this, e, t);
960
+ };
961
+ }
962
+ function Bt(e, t) {
963
+ return function() {
964
+ return Rt(this, e, t.apply(this, arguments));
965
+ };
966
+ }
967
+ function Vt(e, t) {
968
+ return this.each((typeof t == "function" ? Bt : zt)(e, t));
969
+ }
970
+ //#endregion
971
+ //#region ../../node_modules/d3-selection/src/selection/iterator.js
972
+ function* Ht() {
973
+ for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
974
+ }
975
+ //#endregion
976
+ //#region ../../node_modules/d3-selection/src/selection/index.js
977
+ var Ut = [null];
978
+ function D(e, t) {
979
+ this._groups = e, this._parents = t;
980
+ }
981
+ function O() {
982
+ return new D([[document.documentElement]], Ut);
983
+ }
984
+ function Wt() {
985
+ return this;
986
+ }
987
+ D.prototype = O.prototype = {
988
+ constructor: D,
989
+ select: re,
990
+ selectAll: ce,
991
+ selectChild: me,
992
+ selectChildren: ve,
993
+ filter: ye,
994
+ data: De,
995
+ enter: xe,
996
+ exit: ke,
997
+ join: Ae,
998
+ merge: je,
999
+ selection: Wt,
1000
+ order: Me,
1001
+ sort: Ne,
1002
+ call: Fe,
1003
+ nodes: Ie,
1004
+ node: Le,
1005
+ size: Re,
1006
+ empty: ze,
1007
+ each: Be,
1008
+ attr: qe,
1009
+ style: Qe,
1010
+ property: nt,
1011
+ classed: dt,
1012
+ text: ht,
1013
+ html: yt,
1014
+ raise: xt,
1015
+ lower: Ct,
1016
+ append: wt,
1017
+ insert: Et,
1018
+ remove: Ot,
1019
+ clone: jt,
1020
+ datum: Mt,
1021
+ on: Lt,
1022
+ dispatch: Vt,
1023
+ [Symbol.iterator]: Ht
1024
+ };
1025
+ //#endregion
1026
+ //#region ../../node_modules/d3-selection/src/select.js
1027
+ function Gt(e) {
1028
+ return typeof e == "string" ? new D([[document.querySelector(e)]], [document.documentElement]) : new D([[e]], Ut);
1029
+ }
1030
+ //#endregion
1031
+ //#region ../../node_modules/d3-color/src/define.js
1032
+ function Kt(e, t, n) {
1033
+ e.prototype = t.prototype = n, n.constructor = e;
1034
+ }
1035
+ function qt(e, t) {
1036
+ var n = Object.create(e.prototype);
1037
+ for (var r in t) n[r] = t[r];
1038
+ return n;
1039
+ }
1040
+ //#endregion
1041
+ //#region ../../node_modules/d3-color/src/color.js
1042
+ function k() {}
1043
+ var A = .7, Jt = 1 / A, j = "\\s*([+-]?\\d+)\\s*", M = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", N = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Yt = /^#([0-9a-f]{3,8})$/, Xt = RegExp(`^rgb\\(${j},${j},${j}\\)$`), Zt = RegExp(`^rgb\\(${N},${N},${N}\\)$`), Qt = RegExp(`^rgba\\(${j},${j},${j},${M}\\)$`), $t = RegExp(`^rgba\\(${N},${N},${N},${M}\\)$`), en = RegExp(`^hsl\\(${M},${N},${N}\\)$`), tn = RegExp(`^hsla\\(${M},${N},${N},${M}\\)$`), nn = {
1044
+ aliceblue: 15792383,
1045
+ antiquewhite: 16444375,
1046
+ aqua: 65535,
1047
+ aquamarine: 8388564,
1048
+ azure: 15794175,
1049
+ beige: 16119260,
1050
+ bisque: 16770244,
1051
+ black: 0,
1052
+ blanchedalmond: 16772045,
1053
+ blue: 255,
1054
+ blueviolet: 9055202,
1055
+ brown: 10824234,
1056
+ burlywood: 14596231,
1057
+ cadetblue: 6266528,
1058
+ chartreuse: 8388352,
1059
+ chocolate: 13789470,
1060
+ coral: 16744272,
1061
+ cornflowerblue: 6591981,
1062
+ cornsilk: 16775388,
1063
+ crimson: 14423100,
1064
+ cyan: 65535,
1065
+ darkblue: 139,
1066
+ darkcyan: 35723,
1067
+ darkgoldenrod: 12092939,
1068
+ darkgray: 11119017,
1069
+ darkgreen: 25600,
1070
+ darkgrey: 11119017,
1071
+ darkkhaki: 12433259,
1072
+ darkmagenta: 9109643,
1073
+ darkolivegreen: 5597999,
1074
+ darkorange: 16747520,
1075
+ darkorchid: 10040012,
1076
+ darkred: 9109504,
1077
+ darksalmon: 15308410,
1078
+ darkseagreen: 9419919,
1079
+ darkslateblue: 4734347,
1080
+ darkslategray: 3100495,
1081
+ darkslategrey: 3100495,
1082
+ darkturquoise: 52945,
1083
+ darkviolet: 9699539,
1084
+ deeppink: 16716947,
1085
+ deepskyblue: 49151,
1086
+ dimgray: 6908265,
1087
+ dimgrey: 6908265,
1088
+ dodgerblue: 2003199,
1089
+ firebrick: 11674146,
1090
+ floralwhite: 16775920,
1091
+ forestgreen: 2263842,
1092
+ fuchsia: 16711935,
1093
+ gainsboro: 14474460,
1094
+ ghostwhite: 16316671,
1095
+ gold: 16766720,
1096
+ goldenrod: 14329120,
1097
+ gray: 8421504,
1098
+ green: 32768,
1099
+ greenyellow: 11403055,
1100
+ grey: 8421504,
1101
+ honeydew: 15794160,
1102
+ hotpink: 16738740,
1103
+ indianred: 13458524,
1104
+ indigo: 4915330,
1105
+ ivory: 16777200,
1106
+ khaki: 15787660,
1107
+ lavender: 15132410,
1108
+ lavenderblush: 16773365,
1109
+ lawngreen: 8190976,
1110
+ lemonchiffon: 16775885,
1111
+ lightblue: 11393254,
1112
+ lightcoral: 15761536,
1113
+ lightcyan: 14745599,
1114
+ lightgoldenrodyellow: 16448210,
1115
+ lightgray: 13882323,
1116
+ lightgreen: 9498256,
1117
+ lightgrey: 13882323,
1118
+ lightpink: 16758465,
1119
+ lightsalmon: 16752762,
1120
+ lightseagreen: 2142890,
1121
+ lightskyblue: 8900346,
1122
+ lightslategray: 7833753,
1123
+ lightslategrey: 7833753,
1124
+ lightsteelblue: 11584734,
1125
+ lightyellow: 16777184,
1126
+ lime: 65280,
1127
+ limegreen: 3329330,
1128
+ linen: 16445670,
1129
+ magenta: 16711935,
1130
+ maroon: 8388608,
1131
+ mediumaquamarine: 6737322,
1132
+ mediumblue: 205,
1133
+ mediumorchid: 12211667,
1134
+ mediumpurple: 9662683,
1135
+ mediumseagreen: 3978097,
1136
+ mediumslateblue: 8087790,
1137
+ mediumspringgreen: 64154,
1138
+ mediumturquoise: 4772300,
1139
+ mediumvioletred: 13047173,
1140
+ midnightblue: 1644912,
1141
+ mintcream: 16121850,
1142
+ mistyrose: 16770273,
1143
+ moccasin: 16770229,
1144
+ navajowhite: 16768685,
1145
+ navy: 128,
1146
+ oldlace: 16643558,
1147
+ olive: 8421376,
1148
+ olivedrab: 7048739,
1149
+ orange: 16753920,
1150
+ orangered: 16729344,
1151
+ orchid: 14315734,
1152
+ palegoldenrod: 15657130,
1153
+ palegreen: 10025880,
1154
+ paleturquoise: 11529966,
1155
+ palevioletred: 14381203,
1156
+ papayawhip: 16773077,
1157
+ peachpuff: 16767673,
1158
+ peru: 13468991,
1159
+ pink: 16761035,
1160
+ plum: 14524637,
1161
+ powderblue: 11591910,
1162
+ purple: 8388736,
1163
+ rebeccapurple: 6697881,
1164
+ red: 16711680,
1165
+ rosybrown: 12357519,
1166
+ royalblue: 4286945,
1167
+ saddlebrown: 9127187,
1168
+ salmon: 16416882,
1169
+ sandybrown: 16032864,
1170
+ seagreen: 3050327,
1171
+ seashell: 16774638,
1172
+ sienna: 10506797,
1173
+ silver: 12632256,
1174
+ skyblue: 8900331,
1175
+ slateblue: 6970061,
1176
+ slategray: 7372944,
1177
+ slategrey: 7372944,
1178
+ snow: 16775930,
1179
+ springgreen: 65407,
1180
+ steelblue: 4620980,
1181
+ tan: 13808780,
1182
+ teal: 32896,
1183
+ thistle: 14204888,
1184
+ tomato: 16737095,
1185
+ turquoise: 4251856,
1186
+ violet: 15631086,
1187
+ wheat: 16113331,
1188
+ white: 16777215,
1189
+ whitesmoke: 16119285,
1190
+ yellow: 16776960,
1191
+ yellowgreen: 10145074
1192
+ };
1193
+ Kt(k, P, {
1194
+ copy(e) {
1195
+ return Object.assign(new this.constructor(), this, e);
1196
+ },
1197
+ displayable() {
1198
+ return this.rgb().displayable();
1199
+ },
1200
+ hex: rn,
1201
+ formatHex: rn,
1202
+ formatHex8: an,
1203
+ formatHsl: on,
1204
+ formatRgb: sn,
1205
+ toString: sn
1206
+ });
1207
+ function rn() {
1208
+ return this.rgb().formatHex();
1209
+ }
1210
+ function an() {
1211
+ return this.rgb().formatHex8();
1212
+ }
1213
+ function on() {
1214
+ return gn(this).formatHsl();
1215
+ }
1216
+ function sn() {
1217
+ return this.rgb().formatRgb();
1218
+ }
1219
+ function P(e) {
1220
+ var t, n;
1221
+ return e = (e + "").trim().toLowerCase(), (t = Yt.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? cn(t) : n === 3 ? new F(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ln(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ln(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Xt.exec(e)) ? new F(t[1], t[2], t[3], 1) : (t = Zt.exec(e)) ? new F(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Qt.exec(e)) ? ln(t[1], t[2], t[3], t[4]) : (t = $t.exec(e)) ? ln(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = en.exec(e)) ? hn(t[1], t[2] / 100, t[3] / 100, 1) : (t = tn.exec(e)) ? hn(t[1], t[2] / 100, t[3] / 100, t[4]) : nn.hasOwnProperty(e) ? cn(nn[e]) : e === "transparent" ? new F(NaN, NaN, NaN, 0) : null;
1222
+ }
1223
+ function cn(e) {
1224
+ return new F(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
1225
+ }
1226
+ function ln(e, t, n, r) {
1227
+ return r <= 0 && (e = t = n = NaN), new F(e, t, n, r);
1228
+ }
1229
+ function un(e) {
1230
+ return e instanceof k || (e = P(e)), e ? (e = e.rgb(), new F(e.r, e.g, e.b, e.opacity)) : new F();
1231
+ }
1232
+ function dn(e, t, n, r) {
1233
+ return arguments.length === 1 ? un(e) : new F(e, t, n, r ?? 1);
1234
+ }
1235
+ function F(e, t, n, r) {
1236
+ this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
1237
+ }
1238
+ Kt(F, dn, qt(k, {
1239
+ brighter(e) {
1240
+ return e = e == null ? Jt : Jt ** +e, new F(this.r * e, this.g * e, this.b * e, this.opacity);
1241
+ },
1242
+ darker(e) {
1243
+ return e = e == null ? A : A ** +e, new F(this.r * e, this.g * e, this.b * e, this.opacity);
1244
+ },
1245
+ rgb() {
1246
+ return this;
1247
+ },
1248
+ clamp() {
1249
+ return new F(L(this.r), L(this.g), L(this.b), I(this.opacity));
1250
+ },
1251
+ displayable() {
1252
+ return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
1253
+ },
1254
+ hex: fn,
1255
+ formatHex: fn,
1256
+ formatHex8: pn,
1257
+ formatRgb: mn,
1258
+ toString: mn
1259
+ }));
1260
+ function fn() {
1261
+ return `#${R(this.r)}${R(this.g)}${R(this.b)}`;
1262
+ }
1263
+ function pn() {
1264
+ return `#${R(this.r)}${R(this.g)}${R(this.b)}${R((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1265
+ }
1266
+ function mn() {
1267
+ let e = I(this.opacity);
1268
+ return `${e === 1 ? "rgb(" : "rgba("}${L(this.r)}, ${L(this.g)}, ${L(this.b)}${e === 1 ? ")" : `, ${e})`}`;
1269
+ }
1270
+ function I(e) {
1271
+ return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
1272
+ }
1273
+ function L(e) {
1274
+ return Math.max(0, Math.min(255, Math.round(e) || 0));
1275
+ }
1276
+ function R(e) {
1277
+ return e = L(e), (e < 16 ? "0" : "") + e.toString(16);
1278
+ }
1279
+ function hn(e, t, n, r) {
1280
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new z(e, t, n, r);
1281
+ }
1282
+ function gn(e) {
1283
+ if (e instanceof z) return new z(e.h, e.s, e.l, e.opacity);
1284
+ if (e instanceof k || (e = P(e)), !e) return new z();
1285
+ if (e instanceof z) return e;
1286
+ e = e.rgb();
1287
+ var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
1288
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new z(o, s, c, e.opacity);
1289
+ }
1290
+ function _n(e, t, n, r) {
1291
+ return arguments.length === 1 ? gn(e) : new z(e, t, n, r ?? 1);
1292
+ }
1293
+ function z(e, t, n, r) {
1294
+ this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
1295
+ }
1296
+ Kt(z, _n, qt(k, {
1297
+ brighter(e) {
1298
+ return e = e == null ? Jt : Jt ** +e, new z(this.h, this.s, this.l * e, this.opacity);
1299
+ },
1300
+ darker(e) {
1301
+ return e = e == null ? A : A ** +e, new z(this.h, this.s, this.l * e, this.opacity);
1302
+ },
1303
+ rgb() {
1304
+ var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
1305
+ return new F(bn(e >= 240 ? e - 240 : e + 120, i, r), bn(e, i, r), bn(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
1306
+ },
1307
+ clamp() {
1308
+ return new z(vn(this.h), yn(this.s), yn(this.l), I(this.opacity));
1309
+ },
1310
+ displayable() {
1311
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1312
+ },
1313
+ formatHsl() {
1314
+ let e = I(this.opacity);
1315
+ return `${e === 1 ? "hsl(" : "hsla("}${vn(this.h)}, ${yn(this.s) * 100}%, ${yn(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
1316
+ }
1317
+ }));
1318
+ function vn(e) {
1319
+ return e = (e || 0) % 360, e < 0 ? e + 360 : e;
1320
+ }
1321
+ function yn(e) {
1322
+ return Math.max(0, Math.min(1, e || 0));
1323
+ }
1324
+ function bn(e, t, n) {
1325
+ return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
1326
+ }
1327
+ //#endregion
1328
+ //#region ../../node_modules/d3-interpolate/src/constant.js
1329
+ var xn = (e) => () => e;
1330
+ //#endregion
1331
+ //#region ../../node_modules/d3-interpolate/src/color.js
1332
+ function Sn(e, t) {
1333
+ return function(n) {
1334
+ return e + n * t;
1335
+ };
1336
+ }
1337
+ function Cn(e, t, n) {
1338
+ return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
1339
+ return (e + r * t) ** +n;
1340
+ };
1341
+ }
1342
+ function wn(e, t) {
1343
+ var n = t - e;
1344
+ return n ? Sn(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) : xn(isNaN(e) ? t : e);
1345
+ }
1346
+ function Tn(e) {
1347
+ return (e = +e) == 1 ? En : function(t, n) {
1348
+ return n - t ? Cn(t, n, e) : xn(isNaN(t) ? n : t);
1349
+ };
1350
+ }
1351
+ function En(e, t) {
1352
+ var n = t - e;
1353
+ return n ? Sn(e, n) : xn(isNaN(e) ? t : e);
1354
+ }
1355
+ //#endregion
1356
+ //#region ../../node_modules/d3-interpolate/src/rgb.js
1357
+ var Dn = (function e(t) {
1358
+ var n = Tn(t);
1359
+ function r(e, t) {
1360
+ var r = n((e = dn(e)).r, (t = dn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = En(e.opacity, t.opacity);
1361
+ return function(t) {
1362
+ return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
1363
+ };
1364
+ }
1365
+ return r.gamma = e, r;
1366
+ })(1);
1367
+ //#endregion
1368
+ //#region ../../node_modules/d3-interpolate/src/number.js
1369
+ function B(e, t) {
1370
+ return e = +e, t = +t, function(n) {
1371
+ return e * (1 - n) + t * n;
1372
+ };
1373
+ }
1374
+ //#endregion
1375
+ //#region ../../node_modules/d3-interpolate/src/string.js
1376
+ var On = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, kn = new RegExp(On.source, "g");
1377
+ function An(e) {
1378
+ return function() {
1379
+ return e;
1380
+ };
1381
+ }
1382
+ function jn(e) {
1383
+ return function(t) {
1384
+ return e(t) + "";
1385
+ };
1386
+ }
1387
+ function Mn(e, t) {
1388
+ var n = On.lastIndex = kn.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1389
+ for (e += "", t += ""; (r = On.exec(e)) && (i = kn.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
1390
+ i: o,
1391
+ x: B(r, i)
1392
+ })), n = kn.lastIndex;
1393
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? jn(c[0].x) : An(t) : (t = c.length, function(e) {
1394
+ for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
1395
+ return s.join("");
1396
+ });
1397
+ }
1398
+ //#endregion
1399
+ //#region ../../node_modules/d3-interpolate/src/transform/decompose.js
1400
+ var Nn = 180 / Math.PI, Pn = {
1401
+ translateX: 0,
1402
+ translateY: 0,
1403
+ rotate: 0,
1404
+ skewX: 0,
1405
+ scaleX: 1,
1406
+ scaleY: 1
1407
+ };
1408
+ function Fn(e, t, n, r, i, a) {
1409
+ var o, s, c;
1410
+ return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
1411
+ translateX: i,
1412
+ translateY: a,
1413
+ rotate: Math.atan2(t, e) * Nn,
1414
+ skewX: Math.atan(c) * Nn,
1415
+ scaleX: o,
1416
+ scaleY: s
1417
+ };
1418
+ }
1419
+ //#endregion
1420
+ //#region ../../node_modules/d3-interpolate/src/transform/parse.js
1421
+ var In;
1422
+ function Ln(e) {
1423
+ let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
1424
+ return t.isIdentity ? Pn : Fn(t.a, t.b, t.c, t.d, t.e, t.f);
1425
+ }
1426
+ function Rn(e) {
1427
+ return e == null || (In ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), In.setAttribute("transform", e), !(e = In.transform.baseVal.consolidate())) ? Pn : (e = e.matrix, Fn(e.a, e.b, e.c, e.d, e.e, e.f));
1428
+ }
1429
+ //#endregion
1430
+ //#region ../../node_modules/d3-interpolate/src/transform/index.js
1431
+ function zn(e, t, n, r) {
1432
+ function i(e) {
1433
+ return e.length ? e.pop() + " " : "";
1434
+ }
1435
+ function a(e, r, i, a, o, s) {
1436
+ if (e !== i || r !== a) {
1437
+ var c = o.push("translate(", null, t, null, n);
1438
+ s.push({
1439
+ i: c - 4,
1440
+ x: B(e, i)
1441
+ }, {
1442
+ i: c - 2,
1443
+ x: B(r, a)
1444
+ });
1445
+ } else (i || a) && o.push("translate(" + i + t + a + n);
1446
+ }
1447
+ function o(e, t, n, a) {
1448
+ e === t ? t && n.push(i(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
1449
+ i: n.push(i(n) + "rotate(", null, r) - 2,
1450
+ x: B(e, t)
1451
+ }));
1452
+ }
1453
+ function s(e, t, n, a) {
1454
+ e === t ? t && n.push(i(n) + "skewX(" + t + r) : a.push({
1455
+ i: n.push(i(n) + "skewX(", null, r) - 2,
1456
+ x: B(e, t)
1457
+ });
1458
+ }
1459
+ function c(e, t, n, r, a, o) {
1460
+ if (e !== n || t !== r) {
1461
+ var s = a.push(i(a) + "scale(", null, ",", null, ")");
1462
+ o.push({
1463
+ i: s - 4,
1464
+ x: B(e, n)
1465
+ }, {
1466
+ i: s - 2,
1467
+ x: B(t, r)
1468
+ });
1469
+ } else (n !== 1 || r !== 1) && a.push(i(a) + "scale(" + n + "," + r + ")");
1470
+ }
1471
+ return function(t, n) {
1472
+ var r = [], i = [];
1473
+ return t = e(t), n = e(n), a(t.translateX, t.translateY, n.translateX, n.translateY, r, i), o(t.rotate, n.rotate, r, i), s(t.skewX, n.skewX, r, i), c(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, i), t = n = null, function(e) {
1474
+ for (var t = -1, n = i.length, a; ++t < n;) r[(a = i[t]).i] = a.x(e);
1475
+ return r.join("");
1476
+ };
1477
+ };
1478
+ }
1479
+ var Bn = zn(Ln, "px, ", "px)", "deg)"), Vn = zn(Rn, ", ", ")", ")"), V = 0, H = 0, Hn = 0, Un = 1e3, U, W, G = 0, K = 0, Wn = 0, q = typeof performance == "object" && performance.now ? performance : Date, Gn = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1480
+ setTimeout(e, 17);
1481
+ };
1482
+ function Kn() {
1483
+ return K ||= (Gn(qn), q.now() + Wn);
1484
+ }
1485
+ function qn() {
1486
+ K = 0;
1487
+ }
1488
+ function Jn() {
1489
+ this._call = this._time = this._next = null;
1490
+ }
1491
+ Jn.prototype = Yn.prototype = {
1492
+ constructor: Jn,
1493
+ restart: function(e, t, n) {
1494
+ if (typeof e != "function") throw TypeError("callback is not a function");
1495
+ n = (n == null ? Kn() : +n) + (t == null ? 0 : +t), !this._next && W !== this && (W ? W._next = this : U = this, W = this), this._call = e, this._time = n, er();
1496
+ },
1497
+ stop: function() {
1498
+ this._call && (this._call = null, this._time = Infinity, er());
1499
+ }
1500
+ };
1501
+ function Yn(e, t, n) {
1502
+ var r = new Jn();
1503
+ return r.restart(e, t, n), r;
1504
+ }
1505
+ function Xn() {
1506
+ Kn(), ++V;
1507
+ for (var e = U, t; e;) (t = K - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
1508
+ --V;
1509
+ }
1510
+ function Zn() {
1511
+ K = (G = q.now()) + Wn, V = H = 0;
1512
+ try {
1513
+ Xn();
1514
+ } finally {
1515
+ V = 0, $n(), K = 0;
1516
+ }
1517
+ }
1518
+ function Qn() {
1519
+ var e = q.now(), t = e - G;
1520
+ t > Un && (Wn -= t, G = e);
1521
+ }
1522
+ function $n() {
1523
+ for (var e, t = U, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : U = n);
1524
+ W = e, er(r);
1525
+ }
1526
+ function er(e) {
1527
+ V || (H &&= clearTimeout(H), e - K > 24 ? (e < Infinity && (H = setTimeout(Zn, e - q.now() - Wn)), Hn &&= clearInterval(Hn)) : (Hn ||= (G = q.now(), setInterval(Qn, Un)), V = 1, Gn(Zn)));
1528
+ }
1529
+ //#endregion
1530
+ //#region ../../node_modules/d3-timer/src/timeout.js
1531
+ function tr(e, t, n) {
1532
+ var r = new Jn();
1533
+ return t = t == null ? 0 : +t, r.restart((n) => {
1534
+ r.stop(), e(n + t);
1535
+ }, t, n), r;
1536
+ }
1537
+ //#endregion
1538
+ //#region ../../node_modules/d3-transition/src/transition/schedule.js
1539
+ var nr = _("start", "end", "cancel", "interrupt"), rr = [];
1540
+ function J(e, t, n, r, i, a) {
1541
+ var o = e.__transition;
1542
+ if (!o) e.__transition = {};
1543
+ else if (n in o) return;
1544
+ ar(e, n, {
1545
+ name: t,
1546
+ index: r,
1547
+ group: i,
1548
+ on: nr,
1549
+ tween: rr,
1550
+ time: a.time,
1551
+ delay: a.delay,
1552
+ duration: a.duration,
1553
+ ease: a.ease,
1554
+ timer: null,
1555
+ state: 0
1556
+ });
1557
+ }
1558
+ function ir(e, t) {
1559
+ var n = X(e, t);
1560
+ if (n.state > 0) throw Error("too late; already scheduled");
1561
+ return n;
1562
+ }
1563
+ function Y(e, t) {
1564
+ var n = X(e, t);
1565
+ if (n.state > 3) throw Error("too late; already running");
1566
+ return n;
1567
+ }
1568
+ function X(e, t) {
1569
+ var n = e.__transition;
1570
+ if (!n || !(n = n[t])) throw Error("transition not found");
1571
+ return n;
1572
+ }
1573
+ function ar(e, t, n) {
1574
+ var r = e.__transition, i;
1575
+ r[t] = n, n.timer = Yn(a, 0, n.time);
1576
+ function a(e) {
1577
+ n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
1578
+ }
1579
+ function o(a) {
1580
+ var l, u, d, f;
1581
+ if (n.state !== 1) return c();
1582
+ for (l in r) if (f = r[l], f.name === n.name) {
1583
+ if (f.state === 3) return tr(o);
1584
+ f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
1585
+ }
1586
+ if (tr(function() {
1587
+ n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
1588
+ }), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
1589
+ for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
1590
+ i.length = u + 1;
1591
+ }
1592
+ }
1593
+ function s(t) {
1594
+ for (var r = t < n.duration ? n.ease.call(null, t / n.duration) : (n.timer.restart(c), n.state = 5, 1), a = -1, o = i.length; ++a < o;) i[a].call(e, r);
1595
+ n.state === 5 && (n.on.call("end", e, e.__data__, n.index, n.group), c());
1596
+ }
1597
+ function c() {
1598
+ for (var i in n.state = 6, n.timer.stop(), delete r[t], r) return;
1599
+ delete e.__transition;
1600
+ }
1601
+ }
1602
+ //#endregion
1603
+ //#region ../../node_modules/d3-transition/src/interrupt.js
1604
+ function or(e, t) {
1605
+ var n = e.__transition, r, i, a = !0, o;
1606
+ if (n) {
1607
+ for (o in t = t == null ? null : t + "", n) {
1608
+ if ((r = n[o]).name !== t) {
1609
+ a = !1;
1610
+ continue;
1611
+ }
1612
+ i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o];
1613
+ }
1614
+ a && delete e.__transition;
1615
+ }
1616
+ }
1617
+ //#endregion
1618
+ //#region ../../node_modules/d3-transition/src/selection/interrupt.js
1619
+ function sr(e) {
1620
+ return this.each(function() {
1621
+ or(this, e);
1622
+ });
1623
+ }
1624
+ //#endregion
1625
+ //#region ../../node_modules/d3-transition/src/transition/tween.js
1626
+ function cr(e, t) {
1627
+ var n, r;
1628
+ return function() {
1629
+ var i = Y(this, e), a = i.tween;
1630
+ if (a !== n) {
1631
+ r = n = a;
1632
+ for (var o = 0, s = r.length; o < s; ++o) if (r[o].name === t) {
1633
+ r = r.slice(), r.splice(o, 1);
1634
+ break;
1635
+ }
1636
+ }
1637
+ i.tween = r;
1638
+ };
1639
+ }
1640
+ function lr(e, t, n) {
1641
+ var r, i;
1642
+ if (typeof n != "function") throw Error();
1643
+ return function() {
1644
+ var a = Y(this, e), o = a.tween;
1645
+ if (o !== r) {
1646
+ i = (r = o).slice();
1647
+ for (var s = {
1648
+ name: t,
1649
+ value: n
1650
+ }, c = 0, l = i.length; c < l; ++c) if (i[c].name === t) {
1651
+ i[c] = s;
1652
+ break;
1653
+ }
1654
+ c === l && i.push(s);
1655
+ }
1656
+ a.tween = i;
1657
+ };
1658
+ }
1659
+ function ur(e, t) {
1660
+ var n = this._id;
1661
+ if (e += "", arguments.length < 2) {
1662
+ for (var r = X(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
1663
+ return null;
1664
+ }
1665
+ return this.each((t == null ? cr : lr)(n, e, t));
1666
+ }
1667
+ function dr(e, t, n) {
1668
+ var r = e._id;
1669
+ return e.each(function() {
1670
+ var e = Y(this, r);
1671
+ (e.value ||= {})[t] = n.apply(this, arguments);
1672
+ }), function(e) {
1673
+ return X(e, r).value[t];
1674
+ };
1675
+ }
1676
+ //#endregion
1677
+ //#region ../../node_modules/d3-transition/src/transition/interpolate.js
1678
+ function fr(e, t) {
1679
+ var n;
1680
+ return (typeof t == "number" ? B : t instanceof P ? Dn : (n = P(t)) ? (t = n, Dn) : Mn)(e, t);
1681
+ }
1682
+ //#endregion
1683
+ //#region ../../node_modules/d3-transition/src/transition/attr.js
1684
+ function pr(e) {
1685
+ return function() {
1686
+ this.removeAttribute(e);
1687
+ };
1688
+ }
1689
+ function mr(e) {
1690
+ return function() {
1691
+ this.removeAttributeNS(e.space, e.local);
1692
+ };
1693
+ }
1694
+ function hr(e, t, n) {
1695
+ var r, i = n + "", a;
1696
+ return function() {
1697
+ var o = this.getAttribute(e);
1698
+ return o === i ? null : o === r ? a : a = t(r = o, n);
1699
+ };
1700
+ }
1701
+ function gr(e, t, n) {
1702
+ var r, i = n + "", a;
1703
+ return function() {
1704
+ var o = this.getAttributeNS(e.space, e.local);
1705
+ return o === i ? null : o === r ? a : a = t(r = o, n);
1706
+ };
1707
+ }
1708
+ function _r(e, t, n) {
1709
+ var r, i, a;
1710
+ return function() {
1711
+ var o, s = n(this), c;
1712
+ return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
1713
+ };
1714
+ }
1715
+ function vr(e, t, n) {
1716
+ var r, i, a;
1717
+ return function() {
1718
+ var o, s = n(this), c;
1719
+ return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
1720
+ };
1721
+ }
1722
+ function yr(e, t) {
1723
+ var n = S(e), r = n === "transform" ? Vn : fr;
1724
+ return this.attrTween(e, typeof t == "function" ? (n.local ? vr : _r)(n, r, dr(this, "attr." + e, t)) : t == null ? (n.local ? mr : pr)(n) : (n.local ? gr : hr)(n, r, t));
1725
+ }
1726
+ //#endregion
1727
+ //#region ../../node_modules/d3-transition/src/transition/attrTween.js
1728
+ function br(e, t) {
1729
+ return function(n) {
1730
+ this.setAttribute(e, t.call(this, n));
1731
+ };
1732
+ }
1733
+ function xr(e, t) {
1734
+ return function(n) {
1735
+ this.setAttributeNS(e.space, e.local, t.call(this, n));
1736
+ };
1737
+ }
1738
+ function Sr(e, t) {
1739
+ var n, r;
1740
+ function i() {
1741
+ var i = t.apply(this, arguments);
1742
+ return i !== r && (n = (r = i) && xr(e, i)), n;
1743
+ }
1744
+ return i._value = t, i;
1745
+ }
1746
+ function Cr(e, t) {
1747
+ var n, r;
1748
+ function i() {
1749
+ var i = t.apply(this, arguments);
1750
+ return i !== r && (n = (r = i) && br(e, i)), n;
1751
+ }
1752
+ return i._value = t, i;
1753
+ }
1754
+ function wr(e, t) {
1755
+ var n = "attr." + e;
1756
+ if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1757
+ if (t == null) return this.tween(n, null);
1758
+ if (typeof t != "function") throw Error();
1759
+ var r = S(e);
1760
+ return this.tween(n, (r.local ? Sr : Cr)(r, t));
1761
+ }
1762
+ //#endregion
1763
+ //#region ../../node_modules/d3-transition/src/transition/delay.js
1764
+ function Tr(e, t) {
1765
+ return function() {
1766
+ ir(this, e).delay = +t.apply(this, arguments);
1767
+ };
1768
+ }
1769
+ function Er(e, t) {
1770
+ return t = +t, function() {
1771
+ ir(this, e).delay = t;
1772
+ };
1773
+ }
1774
+ function Dr(e) {
1775
+ var t = this._id;
1776
+ return arguments.length ? this.each((typeof e == "function" ? Tr : Er)(t, e)) : X(this.node(), t).delay;
1777
+ }
1778
+ //#endregion
1779
+ //#region ../../node_modules/d3-transition/src/transition/duration.js
1780
+ function Or(e, t) {
1781
+ return function() {
1782
+ Y(this, e).duration = +t.apply(this, arguments);
1783
+ };
1784
+ }
1785
+ function kr(e, t) {
1786
+ return t = +t, function() {
1787
+ Y(this, e).duration = t;
1788
+ };
1789
+ }
1790
+ function Ar(e) {
1791
+ var t = this._id;
1792
+ return arguments.length ? this.each((typeof e == "function" ? Or : kr)(t, e)) : X(this.node(), t).duration;
1793
+ }
1794
+ //#endregion
1795
+ //#region ../../node_modules/d3-transition/src/transition/ease.js
1796
+ function jr(e, t) {
1797
+ if (typeof t != "function") throw Error();
1798
+ return function() {
1799
+ Y(this, e).ease = t;
1800
+ };
1801
+ }
1802
+ function Mr(e) {
1803
+ var t = this._id;
1804
+ return arguments.length ? this.each(jr(t, e)) : X(this.node(), t).ease;
1805
+ }
1806
+ //#endregion
1807
+ //#region ../../node_modules/d3-transition/src/transition/easeVarying.js
1808
+ function Nr(e, t) {
1809
+ return function() {
1810
+ var n = t.apply(this, arguments);
1811
+ if (typeof n != "function") throw Error();
1812
+ Y(this, e).ease = n;
1813
+ };
1814
+ }
1815
+ function Pr(e) {
1816
+ if (typeof e != "function") throw Error();
1817
+ return this.each(Nr(this._id, e));
1818
+ }
1819
+ //#endregion
1820
+ //#region ../../node_modules/d3-transition/src/transition/filter.js
1821
+ function Fr(e) {
1822
+ typeof e != "function" && (e = le(e));
1823
+ for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
1824
+ return new Z(r, this._parents, this._name, this._id);
1825
+ }
1826
+ //#endregion
1827
+ //#region ../../node_modules/d3-transition/src/transition/merge.js
1828
+ function Ir(e) {
1829
+ if (e._id !== this._id) throw Error();
1830
+ for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
1831
+ for (; s < r; ++s) o[s] = t[s];
1832
+ return new Z(o, this._parents, this._name, this._id);
1833
+ }
1834
+ //#endregion
1835
+ //#region ../../node_modules/d3-transition/src/transition/on.js
1836
+ function Lr(e) {
1837
+ return (e + "").trim().split(/^|\s+/).every(function(e) {
1838
+ var t = e.indexOf(".");
1839
+ return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
1840
+ });
1841
+ }
1842
+ function Rr(e, t, n) {
1843
+ var r, i, a = Lr(t) ? ir : Y;
1844
+ return function() {
1845
+ var o = a(this, e), s = o.on;
1846
+ s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
1847
+ };
1848
+ }
1849
+ function zr(e, t) {
1850
+ var n = this._id;
1851
+ return arguments.length < 2 ? X(this.node(), n).on.on(e) : this.each(Rr(n, e, t));
1852
+ }
1853
+ //#endregion
1854
+ //#region ../../node_modules/d3-transition/src/transition/remove.js
1855
+ function Br(e) {
1856
+ return function() {
1857
+ var t = this.parentNode;
1858
+ for (var n in this.__transition) if (+n !== e) return;
1859
+ t && t.removeChild(this);
1860
+ };
1861
+ }
1862
+ function Vr() {
1863
+ return this.on("end.remove", Br(this._id));
1864
+ }
1865
+ //#endregion
1866
+ //#region ../../node_modules/d3-transition/src/transition/select.js
1867
+ function Hr(e) {
1868
+ var t = this._name, n = this._id;
1869
+ typeof e != "function" && (e = ne(e));
1870
+ for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, J(l[f], t, n, f, l, X(u, n)));
1871
+ return new Z(a, this._parents, t, n);
1872
+ }
1873
+ //#endregion
1874
+ //#region ../../node_modules/d3-transition/src/transition/selectAll.js
1875
+ function Ur(e) {
1876
+ var t = this._name, n = this._id;
1877
+ typeof e != "function" && (e = oe(e));
1878
+ for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
1879
+ for (var f = e.call(u, u.__data__, d, c), p, m = X(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && J(p, t, n, h, f, m);
1880
+ a.push(f), o.push(u);
1881
+ }
1882
+ return new Z(a, o, t, n);
1883
+ }
1884
+ //#endregion
1885
+ //#region ../../node_modules/d3-transition/src/transition/selection.js
1886
+ var Wr = O.prototype.constructor;
1887
+ function Gr() {
1888
+ return new Wr(this._groups, this._parents);
1889
+ }
1890
+ //#endregion
1891
+ //#region ../../node_modules/d3-transition/src/transition/style.js
1892
+ function Kr(e, t) {
1893
+ var n, r, i;
1894
+ return function() {
1895
+ var a = E(this, e), o = (this.style.removeProperty(e), E(this, e));
1896
+ return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
1897
+ };
1898
+ }
1899
+ function qr(e) {
1900
+ return function() {
1901
+ this.style.removeProperty(e);
1902
+ };
1903
+ }
1904
+ function Jr(e, t, n) {
1905
+ var r, i = n + "", a;
1906
+ return function() {
1907
+ var o = E(this, e);
1908
+ return o === i ? null : o === r ? a : a = t(r = o, n);
1909
+ };
1910
+ }
1911
+ function Yr(e, t, n) {
1912
+ var r, i, a;
1913
+ return function() {
1914
+ var o = E(this, e), s = n(this), c = s + "";
1915
+ return s ?? (c = s = (this.style.removeProperty(e), E(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
1916
+ };
1917
+ }
1918
+ function Xr(e, t) {
1919
+ var n, r, i, a = "style." + t, o = "end." + a, s;
1920
+ return function() {
1921
+ var c = Y(this, e), l = c.on, u = c.value[a] == null ? s ||= qr(t) : void 0;
1922
+ (l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
1923
+ };
1924
+ }
1925
+ function Zr(e, t, n) {
1926
+ var r = (e += "") == "transform" ? Bn : fr;
1927
+ return t == null ? this.styleTween(e, Kr(e, r)).on("end.style." + e, qr(e)) : typeof t == "function" ? this.styleTween(e, Yr(e, r, dr(this, "style." + e, t))).each(Xr(this._id, e)) : this.styleTween(e, Jr(e, r, t), n).on("end.style." + e, null);
1928
+ }
1929
+ //#endregion
1930
+ //#region ../../node_modules/d3-transition/src/transition/styleTween.js
1931
+ function Qr(e, t, n) {
1932
+ return function(r) {
1933
+ this.style.setProperty(e, t.call(this, r), n);
1934
+ };
1935
+ }
1936
+ function $r(e, t, n) {
1937
+ var r, i;
1938
+ function a() {
1939
+ var a = t.apply(this, arguments);
1940
+ return a !== i && (r = (i = a) && Qr(e, a, n)), r;
1941
+ }
1942
+ return a._value = t, a;
1943
+ }
1944
+ function ei(e, t, n) {
1945
+ var r = "style." + (e += "");
1946
+ if (arguments.length < 2) return (r = this.tween(r)) && r._value;
1947
+ if (t == null) return this.tween(r, null);
1948
+ if (typeof t != "function") throw Error();
1949
+ return this.tween(r, $r(e, t, n ?? ""));
1950
+ }
1951
+ //#endregion
1952
+ //#region ../../node_modules/d3-transition/src/transition/text.js
1953
+ function ti(e) {
1954
+ return function() {
1955
+ this.textContent = e;
1956
+ };
1957
+ }
1958
+ function ni(e) {
1959
+ return function() {
1960
+ var t = e(this);
1961
+ this.textContent = t ?? "";
1962
+ };
1963
+ }
1964
+ function ri(e) {
1965
+ return this.tween("text", typeof e == "function" ? ni(dr(this, "text", e)) : ti(e == null ? "" : e + ""));
1966
+ }
1967
+ //#endregion
1968
+ //#region ../../node_modules/d3-transition/src/transition/textTween.js
1969
+ function ii(e) {
1970
+ return function(t) {
1971
+ this.textContent = e.call(this, t);
1972
+ };
1973
+ }
1974
+ function ai(e) {
1975
+ var t, n;
1976
+ function r() {
1977
+ var r = e.apply(this, arguments);
1978
+ return r !== n && (t = (n = r) && ii(r)), t;
1979
+ }
1980
+ return r._value = e, r;
1981
+ }
1982
+ function oi(e) {
1983
+ var t = "text";
1984
+ if (arguments.length < 1) return (t = this.tween(t)) && t._value;
1985
+ if (e == null) return this.tween(t, null);
1986
+ if (typeof e != "function") throw Error();
1987
+ return this.tween(t, ai(e));
1988
+ }
1989
+ //#endregion
1990
+ //#region ../../node_modules/d3-transition/src/transition/transition.js
1991
+ function si() {
1992
+ for (var e = this._name, t = this._id, n = ui(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
1993
+ var u = X(c, t);
1994
+ J(c, e, n, l, o, {
1995
+ time: u.time + u.delay + u.duration,
1996
+ delay: 0,
1997
+ duration: u.duration,
1998
+ ease: u.ease
1999
+ });
2000
+ }
2001
+ return new Z(r, this._parents, e, n);
2002
+ }
2003
+ //#endregion
2004
+ //#region ../../node_modules/d3-transition/src/transition/end.js
2005
+ function ci() {
2006
+ var e, t, n = this, r = n._id, i = n.size();
2007
+ return new Promise(function(a, o) {
2008
+ var s = { value: o }, c = { value: function() {
2009
+ --i === 0 && a();
2010
+ } };
2011
+ n.each(function() {
2012
+ var n = Y(this, r), i = n.on;
2013
+ i !== e && (t = (e = i).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), n.on = t;
2014
+ }), i === 0 && a();
2015
+ });
2016
+ }
2017
+ //#endregion
2018
+ //#region ../../node_modules/d3-transition/src/transition/index.js
2019
+ var li = 0;
2020
+ function Z(e, t, n, r) {
2021
+ this._groups = e, this._parents = t, this._name = n, this._id = r;
2022
+ }
2023
+ function ui() {
2024
+ return ++li;
2025
+ }
2026
+ var Q = O.prototype;
2027
+ Z.prototype = {
2028
+ constructor: Z,
2029
+ select: Hr,
2030
+ selectAll: Ur,
2031
+ selectChild: Q.selectChild,
2032
+ selectChildren: Q.selectChildren,
2033
+ filter: Fr,
2034
+ merge: Ir,
2035
+ selection: Gr,
2036
+ transition: si,
2037
+ call: Q.call,
2038
+ nodes: Q.nodes,
2039
+ node: Q.node,
2040
+ size: Q.size,
2041
+ empty: Q.empty,
2042
+ each: Q.each,
2043
+ on: zr,
2044
+ attr: yr,
2045
+ attrTween: wr,
2046
+ style: Zr,
2047
+ styleTween: ei,
2048
+ text: ri,
2049
+ textTween: oi,
2050
+ remove: Vr,
2051
+ tween: ur,
2052
+ delay: Dr,
2053
+ duration: Ar,
2054
+ ease: Mr,
2055
+ easeVarying: Pr,
2056
+ end: ci,
2057
+ [Symbol.iterator]: Q[Symbol.iterator]
2058
+ };
2059
+ //#endregion
2060
+ //#region ../../node_modules/d3-ease/src/cubic.js
2061
+ function di(e) {
2062
+ return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2063
+ }
2064
+ //#endregion
2065
+ //#region ../../node_modules/d3-transition/src/selection/transition.js
2066
+ var fi = {
2067
+ time: null,
2068
+ delay: 0,
2069
+ duration: 250,
2070
+ ease: di
2071
+ };
2072
+ function pi(e, t) {
2073
+ for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
2074
+ return n;
2075
+ }
2076
+ function mi(e) {
2077
+ var t, n;
2078
+ e instanceof Z ? (t = e._id, e = e._name) : (t = ui(), (n = fi).time = Kn(), e = e == null ? null : e + "");
2079
+ for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && J(c, e, t, l, o, n || pi(c, t));
2080
+ return new Z(r, this._parents, e, t);
2081
+ }
2082
+ O.prototype.interrupt = sr, O.prototype.transition = mi;
2083
+ //#endregion
2084
+ //#region ../../node_modules/d3-brush/src/brush.js
2085
+ var { abs: hi, max: gi, min: _i } = Math;
2086
+ ["w", "e"].map(vi), ["n", "s"].map(vi), [
2087
+ "n",
2088
+ "w",
2089
+ "e",
2090
+ "s",
2091
+ "nw",
2092
+ "ne",
2093
+ "sw",
2094
+ "se"
2095
+ ].map(vi);
2096
+ function vi(e) {
2097
+ return { type: e };
2098
+ }
2099
+ //#endregion
2100
+ //#region ../../node_modules/d3-zoom/src/transform.js
2101
+ function $(e, t, n) {
2102
+ this.k = e, this.x = t, this.y = n;
2103
+ }
2104
+ $.prototype = {
2105
+ constructor: $,
2106
+ scale: function(e) {
2107
+ return e === 1 ? this : new $(this.k * e, this.x, this.y);
2108
+ },
2109
+ translate: function(e, t) {
2110
+ return e === 0 & t === 0 ? this : new $(this.k, this.x + this.k * e, this.y + this.k * t);
2111
+ },
2112
+ apply: function(e) {
2113
+ return [e[0] * this.k + this.x, e[1] * this.k + this.y];
2114
+ },
2115
+ applyX: function(e) {
2116
+ return e * this.k + this.x;
2117
+ },
2118
+ applyY: function(e) {
2119
+ return e * this.k + this.y;
2120
+ },
2121
+ invert: function(e) {
2122
+ return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k];
2123
+ },
2124
+ invertX: function(e) {
2125
+ return (e - this.x) / this.k;
2126
+ },
2127
+ invertY: function(e) {
2128
+ return (e - this.y) / this.k;
2129
+ },
2130
+ rescaleX: function(e) {
2131
+ return e.copy().domain(e.range().map(this.invertX, this).map(e.invert, e));
2132
+ },
2133
+ rescaleY: function(e) {
2134
+ return e.copy().domain(e.range().map(this.invertY, this).map(e.invert, e));
2135
+ },
2136
+ toString: function() {
2137
+ return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2138
+ }
2139
+ };
2140
+ var yi = new $(1, 0, 0);
2141
+ bi.prototype = $.prototype;
2142
+ function bi(e) {
2143
+ for (; !e.__zoom;) if (!(e = e.parentNode)) return yi;
2144
+ return e.__zoom;
2145
+ }
2146
+ //#endregion
2147
+ export { s as _, En as a, F as c, Kt as d, qt as f, u as g, m as h, wn as i, P as l, p as m, B as n, xn as o, Gt as p, Dn as r, k as s, Mn as t, un as u, l as v };