@dpuse/dpuse-tool-d3-visualiser 0.0.32 → 0.0.37
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.
- package/README.md +658 -244
- package/dist/{band-DbExrcif.js → band-C1twWuW2.js} +3 -2
- package/dist/{band-DbExrcif.js.map → band-C1twWuW2.js.map} +1 -1
- package/dist/{billboardJs-jmaH9Gag.js → billboardJs-DS82ViEw.js} +1081 -1747
- package/dist/billboardJs-DS82ViEw.js.map +1 -0
- package/dist/chordDiagram-Cz0sVVgD.js +2911 -0
- package/dist/chordDiagram-Cz0sVVgD.js.map +1 -0
- package/dist/{d3BarChart-DEzayAyh.js → d3BarChart-DIN2KQsU.js} +7 -6
- package/dist/{d3BarChart-DEzayAyh.js.map → d3BarChart-DIN2KQsU.js.map} +1 -1
- package/dist/dpuse-tool-d3-visualiser.es.js +17 -7
- package/dist/dpuse-tool-d3-visualiser.es.js.map +1 -1
- package/dist/{drag-DLokvdmv.js → drag-DfL4uwqz.js} +25 -24
- package/dist/{drag-DLokvdmv.js.map → drag-DfL4uwqz.js.map} +1 -1
- package/dist/hierarchy-CDFAetye.js +151 -0
- package/dist/hierarchy-CDFAetye.js.map +1 -0
- package/dist/{linear-D3BD7E1p.js → linear-BnhqTvdX.js} +59 -85
- package/dist/linear-BnhqTvdX.js.map +1 -0
- package/dist/{link-DKK0Q0lG.js → link-D-9z7kEr.js} +16 -39
- package/dist/link-D-9z7kEr.js.map +1 -0
- package/dist/math-C5EhTgJw.js +12 -0
- package/dist/math-C5EhTgJw.js.map +1 -0
- package/dist/max-CPVNm4tn.js +14 -0
- package/dist/max-CPVNm4tn.js.map +1 -0
- package/dist/{networkDiagram-HS-SgOZ0.js → networkDiagram-yraPhqxN.js} +28 -28
- package/dist/{networkDiagram-HS-SgOZ0.js.map → networkDiagram-yraPhqxN.js.map} +1 -1
- package/dist/nodrag-Dq2tlBbe.js +51 -0
- package/dist/nodrag-Dq2tlBbe.js.map +1 -0
- package/dist/{observablePlot-B1CSEvcU.js → observablePlot-C7764aFq.js} +2366 -2417
- package/dist/observablePlot-C7764aFq.js.map +1 -0
- package/dist/ordinal-uZdoVxAx.js +30 -0
- package/dist/ordinal-uZdoVxAx.js.map +1 -0
- package/dist/palette-BuTjISrV.js +64 -0
- package/dist/palette-BuTjISrV.js.map +1 -0
- package/dist/{path-Bt1sPr2f.js → path-6kmCrmEz.js} +7 -4
- package/dist/{path-Bt1sPr2f.js.map → path-6kmCrmEz.js.map} +1 -1
- package/dist/point-6cHftmvM.js +27 -0
- package/dist/point-6cHftmvM.js.map +1 -0
- package/dist/pow-BFDPqS3s.js +86 -0
- package/dist/pow-BFDPqS3s.js.map +1 -0
- package/dist/{sankeyDiagram-BXTYCHPV.js → sankeyDiagram-BT2RCRpi.js} +93 -152
- package/dist/sankeyDiagram-BT2RCRpi.js.map +1 -0
- package/dist/{src-Br_t1-IV.js → src-WDualLFV.js} +40 -39
- package/dist/{src-Br_t1-IV.js.map → src-WDualLFV.js.map} +1 -1
- package/dist/{math-Dc0ICuib.js → src-Xlr4CcSw.js} +70 -75
- package/dist/src-Xlr4CcSw.js.map +1 -0
- package/dist/{src-Du_hPZAX.js → src-yL3ZdoR1.js} +235 -282
- package/dist/src-yL3ZdoR1.js.map +1 -0
- package/dist/step-DgCcZZ3W.js +670 -0
- package/dist/step-DgCcZZ3W.js.map +1 -0
- package/dist/{sum-BAZU479z.js → sum-CNP0Xric.js} +4 -15
- package/dist/sum-CNP0Xric.js.map +1 -0
- package/dist/{tanStackCharts-vvQteV9z.js → tanStackCharts-BJAX22lS.js} +164 -151
- package/dist/tanStackCharts-BJAX22lS.js.map +1 -0
- package/dist/treeDiagram-DsHUD8ou.js +130 -0
- package/dist/treeDiagram-DsHUD8ou.js.map +1 -0
- package/dist/types/src/chordDiagram.d.ts +25 -0
- package/dist/types/src/index.d.ts +3 -0
- package/package.json +6 -4
- package/dist/billboardJs-jmaH9Gag.js.map +0 -1
- package/dist/linear-D3BD7E1p.js.map +0 -1
- package/dist/link-DKK0Q0lG.js.map +0 -1
- package/dist/math-Dc0ICuib.js.map +0 -1
- package/dist/observablePlot-B1CSEvcU.js.map +0 -1
- package/dist/sankeyDiagram-BXTYCHPV.js.map +0 -1
- package/dist/src-Du_hPZAX.js.map +0 -1
- package/dist/sum-BAZU479z.js.map +0 -1
- package/dist/tanStackCharts-vvQteV9z.js.map +0 -1
- package/dist/treeDiagram-DemHfVnX.js +0 -277
- package/dist/treeDiagram-DemHfVnX.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./linear-
|
|
2
|
-
import { t } from "./band-
|
|
1
|
+
import { t as e } from "./linear-BnhqTvdX.js";
|
|
2
|
+
import { t } from "./band-C1twWuW2.js";
|
|
3
3
|
import { r as n, t as r } from "./array-Cv4-2llb.js";
|
|
4
4
|
//#region node_modules/d3-shape/src/offset/none.js
|
|
5
5
|
function i(e, t) {
|
|
@@ -803,7 +803,7 @@ function ze(e, t, n, r) {
|
|
|
803
803
|
chart: m,
|
|
804
804
|
theme: o,
|
|
805
805
|
width: i
|
|
806
|
-
})), e.focusRing !== !1 && v.length && x.push({
|
|
806
|
+
})), e.focus !== !1 && e.focusRing !== !1 && v.length && x.push({
|
|
807
807
|
kind: "group",
|
|
808
808
|
key: "default-focus",
|
|
809
809
|
className: "ts-chart__focus-layer ts-chart__focus-layer--default",
|
|
@@ -1257,11 +1257,16 @@ function ut(e) {
|
|
|
1257
1257
|
function dt() {
|
|
1258
1258
|
return {
|
|
1259
1259
|
render(e, t, n) {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1260
|
+
if (!ft(e)) return Le(e, t, n);
|
|
1261
|
+
let { chart: r, ...i } = e;
|
|
1262
|
+
return Le({
|
|
1263
|
+
...r({
|
|
1264
|
+
width: t.width,
|
|
1265
|
+
height: t.height,
|
|
1266
|
+
theme: Fe
|
|
1267
|
+
}),
|
|
1268
|
+
...i
|
|
1269
|
+
}, t, n);
|
|
1265
1270
|
},
|
|
1266
1271
|
destroy() {}
|
|
1267
1272
|
};
|
|
@@ -1389,8 +1394,15 @@ function St(e, t, n) {
|
|
|
1389
1394
|
return [t, ...[...i.values()].sort((e, t) => e.y - t.y).filter((e) => e !== t)];
|
|
1390
1395
|
}
|
|
1391
1396
|
//#endregion
|
|
1397
|
+
//#region node_modules/@tanstack/charts/dist/focus-disabled.js
|
|
1398
|
+
var Ct = {
|
|
1399
|
+
resolve: () => [],
|
|
1400
|
+
group: () => [],
|
|
1401
|
+
navigation: () => []
|
|
1402
|
+
};
|
|
1403
|
+
//#endregion
|
|
1392
1404
|
//#region node_modules/@tanstack/charts/dist/renderer.js
|
|
1393
|
-
function
|
|
1405
|
+
function wt(e, t, n = dt()) {
|
|
1394
1406
|
let r = t, i, a, o = null, s = "pointer", c = null, l = null, u, d, f = !1, p, m = !1, h = !1, g, _, v, y = !1, b, x = e.style.position, S = e.ownerDocument.defaultView, C = S?.getComputedStyle(e).position, w = !C || C === "static", T = pt(e), E = e.ownerDocument.fonts;
|
|
1395
1407
|
w && (e.style.position = "relative");
|
|
1396
1408
|
let D = (t = !1, n = "update") => {
|
|
@@ -1401,11 +1413,11 @@ function Ct(e, t, n = dt()) {
|
|
|
1401
1413
|
ariaLabel: r.ariaLabel,
|
|
1402
1414
|
ariaDescription: r.ariaDescription,
|
|
1403
1415
|
className: r.className,
|
|
1404
|
-
tabIndex: r.definition.keyboard === !1 ? -1 : r.tabIndex ?? 0,
|
|
1416
|
+
tabIndex: r.definition.keyboard === !1 || r.definition.focus === !1 ? -1 : r.tabIndex ?? 0,
|
|
1405
1417
|
idPrefix: r.idPrefix,
|
|
1406
|
-
animation: h ?
|
|
1407
|
-
}), h = !0, b = r.definition.spatialIndex?.(i.points, i);
|
|
1408
|
-
let u = c ?
|
|
1418
|
+
animation: h ? Mt(r.definition.animate, e, n) : void 0
|
|
1419
|
+
}), h = !0, b = r.definition.focus === !1 ? void 0 : r.definition.spatialIndex?.(i.points, i);
|
|
1420
|
+
let u = r.definition.focus === !1 ? null : c ? Ot(i.points, c) : null;
|
|
1409
1421
|
if (o = u, u || (l = null), c) {
|
|
1410
1422
|
s = "restored";
|
|
1411
1423
|
let e = u ? z(u) : [];
|
|
@@ -1448,7 +1460,7 @@ function Ct(e, t, n = dt()) {
|
|
|
1448
1460
|
m || r.measureText || (T.invalidate(), A(!0));
|
|
1449
1461
|
}, M = (e, t = !1) => {
|
|
1450
1462
|
let n = e[0] ?? null;
|
|
1451
|
-
if (
|
|
1463
|
+
if (Dt(n, o)) {
|
|
1452
1464
|
t && ae(n, e);
|
|
1453
1465
|
return;
|
|
1454
1466
|
}
|
|
@@ -1492,7 +1504,7 @@ function Ct(e, t, n = dt()) {
|
|
|
1492
1504
|
e.preventDefault(), V() && (l = l ? null : o.key, N(o, z(o))), r.onSelect?.(o);
|
|
1493
1505
|
return;
|
|
1494
1506
|
}
|
|
1495
|
-
let t =
|
|
1507
|
+
let t = jt(r.definition.focus), n = t ? Nt(t.navigation(i.points), o, e.key) : Pt(i.points, o, e.key);
|
|
1496
1508
|
n !== void 0 && (e.preventDefault(), c = null, s = "keyboard", M(n ? z(n) : []));
|
|
1497
1509
|
}, te = (e) => {
|
|
1498
1510
|
if (e.target === g?.element && y) {
|
|
@@ -1500,7 +1512,7 @@ function Ct(e, t, n = dt()) {
|
|
|
1500
1512
|
return;
|
|
1501
1513
|
}
|
|
1502
1514
|
if (r.definition.keyboard !== !1 && e.target === g?.element && !o) {
|
|
1503
|
-
let e =
|
|
1515
|
+
let e = jt(r.definition.focus), t = e ? e.navigation(i.points)[0] : Pt(i.points, null, "Home");
|
|
1504
1516
|
c = null, s = "keyboard", M(t ? z(t) : []);
|
|
1505
1517
|
}
|
|
1506
1518
|
};
|
|
@@ -1519,11 +1531,11 @@ function Ct(e, t, n = dt()) {
|
|
|
1519
1531
|
let e = O() ?? r.initialWidth ?? 640;
|
|
1520
1532
|
return n.render(r.definition, {
|
|
1521
1533
|
width: e,
|
|
1522
|
-
height: r.height ?? (
|
|
1534
|
+
height: r.height ?? (At(r.aspectRatio) ? e / r.aspectRatio : 320)
|
|
1523
1535
|
}, { measureText: r.measureText ?? T.measureText });
|
|
1524
1536
|
}
|
|
1525
1537
|
function re(e, t, n) {
|
|
1526
|
-
let o = ie(), s =
|
|
1538
|
+
let o = ie(), s = jt(r.definition.focus);
|
|
1527
1539
|
if (s) return s.resolve(o, e, t, n);
|
|
1528
1540
|
let c = o === a.points ? b && a === i ? b.findNearest(e, t, n) : Be(a, e, t, n) : me(o, e, t, n);
|
|
1529
1541
|
return c ? [c] : [];
|
|
@@ -1532,10 +1544,10 @@ function Ct(e, t, n = dt()) {
|
|
|
1532
1544
|
return g?.getPresentationPoints?.() ?? a.points;
|
|
1533
1545
|
}
|
|
1534
1546
|
function z(e) {
|
|
1535
|
-
return
|
|
1547
|
+
return jt(r.definition.focus)?.group(ie(), e) ?? [e];
|
|
1536
1548
|
}
|
|
1537
1549
|
function ae(t, n) {
|
|
1538
|
-
let a =
|
|
1550
|
+
let a = Et(r.definition.tooltip);
|
|
1539
1551
|
if (!a || !t || !g) {
|
|
1540
1552
|
v?.hide();
|
|
1541
1553
|
return;
|
|
@@ -1562,35 +1574,35 @@ function Ct(e, t, n = dt()) {
|
|
|
1562
1574
|
});
|
|
1563
1575
|
}
|
|
1564
1576
|
function oe() {
|
|
1565
|
-
let e =
|
|
1566
|
-
e ? e.extension === _ ? v?.update(e.options) : B() : (v?.update(
|
|
1577
|
+
let e = Et(r.definition.tooltip);
|
|
1578
|
+
e ? e.extension === _ ? v?.update(e.options) : B() : (v?.update(Tt), v?.hide());
|
|
1567
1579
|
}
|
|
1568
1580
|
function B() {
|
|
1569
1581
|
v?.destroy(), v = void 0, _ = void 0;
|
|
1570
1582
|
}
|
|
1571
1583
|
function V() {
|
|
1572
|
-
let e =
|
|
1584
|
+
let e = Et(r.definition.tooltip);
|
|
1573
1585
|
return !!(e && e.options.sticky !== !1);
|
|
1574
1586
|
}
|
|
1575
1587
|
function se() {
|
|
1576
|
-
let e =
|
|
1588
|
+
let e = Et(r.definition.tooltip)?.options.anchor;
|
|
1577
1589
|
return e === "pointer" || typeof e == "function" || typeof e == "object" && (e.x === "pointer" || e.y === "pointer");
|
|
1578
1590
|
}
|
|
1579
1591
|
}
|
|
1580
|
-
var
|
|
1581
|
-
function
|
|
1592
|
+
var Tt = {};
|
|
1593
|
+
function Et(e) {
|
|
1582
1594
|
return e ? "create" in e ? {
|
|
1583
1595
|
extension: e,
|
|
1584
|
-
options:
|
|
1596
|
+
options: Tt
|
|
1585
1597
|
} : {
|
|
1586
1598
|
extension: e.use,
|
|
1587
1599
|
options: e
|
|
1588
1600
|
} : null;
|
|
1589
1601
|
}
|
|
1590
|
-
function
|
|
1602
|
+
function Dt(e, t) {
|
|
1591
1603
|
return e === t || e !== null && t !== null && e.key === t.key && e.markId === t.markId && e.datumIndex === t.datumIndex;
|
|
1592
1604
|
}
|
|
1593
|
-
function
|
|
1605
|
+
function Ot(e, t) {
|
|
1594
1606
|
let n = e.filter((e) => e.key === t.key);
|
|
1595
1607
|
if (n.length < 2) return n[0] ?? null;
|
|
1596
1608
|
let r = typeof t.datum;
|
|
@@ -1598,15 +1610,16 @@ function Dt(e, t) {
|
|
|
1598
1610
|
let e = n.find((e) => e.datum === t.datum);
|
|
1599
1611
|
if (e) return e;
|
|
1600
1612
|
}
|
|
1601
|
-
return n.find((e) => e.markId === t.markId && Object.is(e.group, t.group) &&
|
|
1613
|
+
return n.find((e) => e.markId === t.markId && Object.is(e.group, t.group) && kt(e.xValue, t.xValue) && kt(e.yValue, t.yValue)) ?? n.find((e) => e.markId === t.markId && e.datumIndex === t.datumIndex) ?? n[0] ?? null;
|
|
1602
1614
|
}
|
|
1603
|
-
function
|
|
1615
|
+
function kt(e, t) {
|
|
1604
1616
|
return e instanceof Date && t instanceof Date ? e.getTime() === t.getTime() : Object.is(e, t);
|
|
1605
1617
|
}
|
|
1606
|
-
function
|
|
1618
|
+
function At(e) {
|
|
1607
1619
|
return typeof e == "number" && Number.isFinite(e) && e > 0;
|
|
1608
1620
|
}
|
|
1609
|
-
function
|
|
1621
|
+
function jt(e) {
|
|
1622
|
+
if (e === !1) return Ct;
|
|
1610
1623
|
if (typeof e != "string") return e;
|
|
1611
1624
|
switch (e) {
|
|
1612
1625
|
case "nearest-x": return bt;
|
|
@@ -1616,14 +1629,14 @@ function At(e) {
|
|
|
1616
1629
|
case "nearest": return;
|
|
1617
1630
|
}
|
|
1618
1631
|
}
|
|
1619
|
-
function
|
|
1632
|
+
function Mt(e, t, n) {
|
|
1620
1633
|
let r = e === !0 ? {} : e || void 0;
|
|
1621
1634
|
if (!r || n === "layout" || n === "resize" && r.resize !== !0 || (r.respectReducedMotion ?? !0) && t.ownerDocument.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
1622
1635
|
let { resize: i, ...a } = r;
|
|
1623
1636
|
return a;
|
|
1624
1637
|
}
|
|
1625
|
-
function
|
|
1626
|
-
let r = t ? e.findIndex((e) =>
|
|
1638
|
+
function Nt(e, t, n) {
|
|
1639
|
+
let r = t ? e.findIndex((e) => Dt(e, t)) : -1, i;
|
|
1627
1640
|
switch (n) {
|
|
1628
1641
|
case "ArrowRight":
|
|
1629
1642
|
case "ArrowDown":
|
|
@@ -1643,37 +1656,37 @@ function Mt(e, t, n) {
|
|
|
1643
1656
|
}
|
|
1644
1657
|
return e[i] ?? null;
|
|
1645
1658
|
}
|
|
1646
|
-
function
|
|
1659
|
+
function Pt(e, t, n) {
|
|
1647
1660
|
let r = n === "ArrowRight" || n === "ArrowDown" ? 1 : n === "ArrowLeft" || n === "ArrowUp" ? -1 : n === "Home" ? 0 : n === "End" ? 2 : void 0;
|
|
1648
1661
|
if (r === void 0) return;
|
|
1649
1662
|
if (!e.length) return null;
|
|
1650
|
-
let i = t ? e.findIndex((e) =>
|
|
1651
|
-
if (!t || i < 0 || r === 0 || r === 2) return
|
|
1663
|
+
let i = t ? e.findIndex((e) => Dt(e, t)) : -1;
|
|
1664
|
+
if (!t || i < 0 || r === 0 || r === 2) return Ft(e, r === 2);
|
|
1652
1665
|
let a = null, o = -1;
|
|
1653
1666
|
for (let n = 0; n < e.length; n += 1) {
|
|
1654
1667
|
let s = e[n];
|
|
1655
1668
|
if (!s) continue;
|
|
1656
|
-
let c =
|
|
1657
|
-
r > 0 && c <= 0 || r < 0 && c >= 0 || (!a || r *
|
|
1669
|
+
let c = It(s, n, t, i);
|
|
1670
|
+
r > 0 && c <= 0 || r < 0 && c >= 0 || (!a || r * It(s, n, a, o) < 0) && (a = s, o = n);
|
|
1658
1671
|
}
|
|
1659
1672
|
return a ?? t;
|
|
1660
1673
|
}
|
|
1661
|
-
function
|
|
1674
|
+
function Ft(e, t) {
|
|
1662
1675
|
let n = e[0] ?? null, r = 0;
|
|
1663
1676
|
for (let i = 1; i < e.length; i += 1) {
|
|
1664
1677
|
let a = e[i];
|
|
1665
1678
|
if (!a || !n) continue;
|
|
1666
|
-
let o =
|
|
1679
|
+
let o = It(a, i, n, r);
|
|
1667
1680
|
(t && o > 0 || !t && o < 0) && (n = a, r = i);
|
|
1668
1681
|
}
|
|
1669
1682
|
return n;
|
|
1670
1683
|
}
|
|
1671
|
-
function
|
|
1684
|
+
function It(e, t, n, r) {
|
|
1672
1685
|
return e.x - n.x || e.y - n.y || t - r;
|
|
1673
1686
|
}
|
|
1674
1687
|
//#endregion
|
|
1675
1688
|
//#region node_modules/@tanstack/charts/dist/reconcile.js
|
|
1676
|
-
var
|
|
1689
|
+
var Lt = /* @__PURE__ */ new Set([
|
|
1677
1690
|
"cx",
|
|
1678
1691
|
"cy",
|
|
1679
1692
|
"d",
|
|
@@ -1693,7 +1706,7 @@ var It = /* @__PURE__ */ new Set([
|
|
|
1693
1706
|
"y1",
|
|
1694
1707
|
"y2"
|
|
1695
1708
|
]);
|
|
1696
|
-
function
|
|
1709
|
+
function Rt(e, t, n) {
|
|
1697
1710
|
let r = e.ownerDocument.createElement("template");
|
|
1698
1711
|
r.innerHTML = t;
|
|
1699
1712
|
let i = r.content.firstElementChild;
|
|
@@ -1701,27 +1714,27 @@ function Lt(e, t, n) {
|
|
|
1701
1714
|
let a = e.firstElementChild;
|
|
1702
1715
|
if (!a || a.namespaceURI !== i.namespaceURI || a.localName !== i.localName) return e.replaceChildren(i), () => {};
|
|
1703
1716
|
let o = [];
|
|
1704
|
-
return
|
|
1717
|
+
return zt(a, i, n ? o : void 0), n ? Ut(e, o, n) : () => {};
|
|
1705
1718
|
}
|
|
1706
|
-
function
|
|
1707
|
-
if (
|
|
1719
|
+
function zt(e, t, n) {
|
|
1720
|
+
if (Bt(e, t, n), !t.firstElementChild) {
|
|
1708
1721
|
e.textContent !== t.textContent && (e.textContent = t.textContent);
|
|
1709
1722
|
return;
|
|
1710
1723
|
}
|
|
1711
|
-
let r = [...e.children], i = [...t.children], a =
|
|
1724
|
+
let r = [...e.children], i = [...t.children], a = qt(r), o = Jt(i), s = /* @__PURE__ */ new Set(), c = e.firstElementChild;
|
|
1712
1725
|
i.forEach((t, r) => {
|
|
1713
1726
|
let i = o[r], l = a.get(i), u;
|
|
1714
|
-
l && l.namespaceURI === t.namespaceURI && l.localName === t.localName ? (u = l, s.add(l), u !== c && e.insertBefore(u, c),
|
|
1727
|
+
l && l.namespaceURI === t.namespaceURI && l.localName === t.localName ? (u = l, s.add(l), u !== c && e.insertBefore(u, c), zt(u, t, n)) : (u = t.cloneNode(!0), e.insertBefore(u, c), Vt(u, t, n)), c = u.nextElementSibling;
|
|
1715
1728
|
});
|
|
1716
|
-
for (let t of r) !s.has(t) && t.parentElement === e && (n ?
|
|
1729
|
+
for (let t of r) !s.has(t) && t.parentElement === e && (n ? Ht(t, n) : t.remove());
|
|
1717
1730
|
}
|
|
1718
|
-
function
|
|
1731
|
+
function Bt(e, t, n) {
|
|
1719
1732
|
let r = new Set(t.getAttributeNames());
|
|
1720
1733
|
for (let t of e.getAttributeNames()) r.has(t) || e.removeAttribute(t);
|
|
1721
1734
|
for (let i of r) {
|
|
1722
1735
|
let r = t.getAttribute(i), a = e.getAttribute(i);
|
|
1723
1736
|
if (r === a) continue;
|
|
1724
|
-
let o = n && a !== null && r !== null &&
|
|
1737
|
+
let o = n && a !== null && r !== null && Lt.has(i) ? Gt(a, r) : void 0;
|
|
1725
1738
|
o && n ? n.push({
|
|
1726
1739
|
element: e,
|
|
1727
1740
|
name: i,
|
|
@@ -1730,7 +1743,7 @@ function zt(e, t, n) {
|
|
|
1730
1743
|
}) : r !== null && e.setAttribute(i, r);
|
|
1731
1744
|
}
|
|
1732
1745
|
}
|
|
1733
|
-
function
|
|
1746
|
+
function Vt(e, t, n) {
|
|
1734
1747
|
if (!n) return;
|
|
1735
1748
|
let r = t.getAttribute("opacity"), i = r ?? "1";
|
|
1736
1749
|
e.setAttribute("opacity", "0"), n.push({
|
|
@@ -1740,7 +1753,7 @@ function Bt(e, t, n) {
|
|
|
1740
1753
|
target: r
|
|
1741
1754
|
});
|
|
1742
1755
|
}
|
|
1743
|
-
function
|
|
1756
|
+
function Ht(e, t) {
|
|
1744
1757
|
let n = Number(e.getAttribute("opacity") ?? 1), r = Number.isFinite(n) ? n : 1;
|
|
1745
1758
|
t.push({
|
|
1746
1759
|
element: e,
|
|
@@ -1750,22 +1763,22 @@ function Vt(e, t) {
|
|
|
1750
1763
|
removeOnFinish: !0
|
|
1751
1764
|
});
|
|
1752
1765
|
}
|
|
1753
|
-
function
|
|
1766
|
+
function Ut(e, t, n) {
|
|
1754
1767
|
if (!t.length) return () => {};
|
|
1755
1768
|
let r = e.ownerDocument.defaultView, i = r?.requestAnimationFrame?.bind(r), a = r?.cancelAnimationFrame?.bind(r), o = Math.max(0, n.duration ?? 240);
|
|
1756
|
-
if (!i || !a || o === 0) return
|
|
1757
|
-
let s = 0, c = !1, l, u =
|
|
1769
|
+
if (!i || !a || o === 0) return Wt(t), () => {};
|
|
1770
|
+
let s = 0, c = !1, l, u = Yt(n.easing ?? "ease-out"), d = (e) => {
|
|
1758
1771
|
if (c) return;
|
|
1759
1772
|
l ??= e;
|
|
1760
1773
|
let n = Math.min(1, (e - l) / o), r = u(n);
|
|
1761
1774
|
for (let e of t) e.element.setAttribute(e.name, e.interpolate(r));
|
|
1762
|
-
n < 1 ? s = i(d) :
|
|
1775
|
+
n < 1 ? s = i(d) : Wt(t);
|
|
1763
1776
|
};
|
|
1764
1777
|
return s = i(d), () => {
|
|
1765
1778
|
c = !0, a(s);
|
|
1766
1779
|
};
|
|
1767
1780
|
}
|
|
1768
|
-
function
|
|
1781
|
+
function Wt(e) {
|
|
1769
1782
|
for (let t of e) {
|
|
1770
1783
|
if (t.removeOnFinish) {
|
|
1771
1784
|
t.element.remove();
|
|
@@ -1774,30 +1787,30 @@ function Ut(e) {
|
|
|
1774
1787
|
t.target === null ? t.element.removeAttribute(t.name) : t.element.setAttribute(t.name, t.target);
|
|
1775
1788
|
}
|
|
1776
1789
|
}
|
|
1777
|
-
function
|
|
1778
|
-
let n =
|
|
1790
|
+
function Gt(e, t) {
|
|
1791
|
+
let n = Kt(e), r = Kt(t);
|
|
1779
1792
|
if (!(n.skeleton !== r.skeleton || n.values.length !== r.values.length || !n.values.length)) return (e) => {
|
|
1780
1793
|
let t = 0;
|
|
1781
1794
|
return r.skeleton.replaceAll("#", () => {
|
|
1782
1795
|
let i = n.values[t], a = r.values[t];
|
|
1783
|
-
return t += 1,
|
|
1796
|
+
return t += 1, Xt(i + (a - i) * e);
|
|
1784
1797
|
});
|
|
1785
1798
|
};
|
|
1786
1799
|
}
|
|
1787
|
-
function
|
|
1800
|
+
function Kt(e) {
|
|
1788
1801
|
let t = [];
|
|
1789
1802
|
return {
|
|
1790
1803
|
skeleton: e.replace(/-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/gi, (e) => (t.push(Number(e)), "#")),
|
|
1791
1804
|
values: t
|
|
1792
1805
|
};
|
|
1793
1806
|
}
|
|
1794
|
-
function
|
|
1807
|
+
function qt(e) {
|
|
1795
1808
|
let t = /* @__PURE__ */ new Map();
|
|
1796
|
-
return
|
|
1809
|
+
return Jt(e).forEach((n, r) => {
|
|
1797
1810
|
t.set(n, e[r]);
|
|
1798
1811
|
}), t;
|
|
1799
1812
|
}
|
|
1800
|
-
function
|
|
1813
|
+
function Jt(e) {
|
|
1801
1814
|
let t = /* @__PURE__ */ new Map();
|
|
1802
1815
|
return e.map((e) => {
|
|
1803
1816
|
let n = e.getAttribute("data-ts-key");
|
|
@@ -1806,7 +1819,7 @@ function qt(e) {
|
|
|
1806
1819
|
return t.set(e.localName, r + 1), `tag:${e.localName}:${r}`;
|
|
1807
1820
|
});
|
|
1808
1821
|
}
|
|
1809
|
-
function
|
|
1822
|
+
function Yt(e) {
|
|
1810
1823
|
if (typeof e == "function") return e;
|
|
1811
1824
|
switch (e) {
|
|
1812
1825
|
case "linear": return (e) => e;
|
|
@@ -1816,13 +1829,13 @@ function Jt(e) {
|
|
|
1816
1829
|
case "ease-out": return (e) => 1 - (1 - e) ** 3;
|
|
1817
1830
|
}
|
|
1818
1831
|
}
|
|
1819
|
-
function
|
|
1832
|
+
function Xt(e) {
|
|
1820
1833
|
return String(Math.round(e * 1e3) / 1e3);
|
|
1821
1834
|
}
|
|
1822
1835
|
//#endregion
|
|
1823
1836
|
//#region node_modules/@tanstack/charts/dist/svg-renderer.js
|
|
1824
|
-
function
|
|
1825
|
-
let r = t.idPrefix ?? "", i = t.className ? `ts-chart ${t.className}` : "ts-chart", a = t.ariaDescription ? `<desc>${
|
|
1837
|
+
function Zt(e, t, n) {
|
|
1838
|
+
let r = t.idPrefix ?? "", i = t.className ? `ts-chart ${t.className}` : "ts-chart", a = t.ariaDescription ? `<desc>${tn(t.ariaDescription)}</desc>` : "", o = n?.renderDefinitions?.(e, r) ?? "", s = e.theme.background === "transparent" ? "" : Qt({
|
|
1826
1839
|
kind: "rect",
|
|
1827
1840
|
key: "background",
|
|
1828
1841
|
x: 0,
|
|
@@ -1831,14 +1844,14 @@ function Xt(e, t, n) {
|
|
|
1831
1844
|
height: e.height,
|
|
1832
1845
|
style: { fill: e.theme.background }
|
|
1833
1846
|
}, n, r);
|
|
1834
|
-
return `<svg class="${Q(i)}" width="100%" height="100%" viewBox="0 0 ${Z(e.width)} ${Z(e.height)}" role="img" aria-roledescription="chart" aria-label="${Q(t.ariaLabel)}" tabindex="${Z(t.tabIndex ?? 0)}" style="display:block;overflow:visible">${a}${o}${s}${e.nodes.map((e) =>
|
|
1847
|
+
return `<svg class="${Q(i)}" width="100%" height="100%" viewBox="0 0 ${Z(e.width)} ${Z(e.height)}" role="img" aria-roledescription="chart" aria-label="${Q(t.ariaLabel)}" tabindex="${Z(t.tabIndex ?? 0)}" style="display:block;overflow:visible">${a}${o}${s}${e.nodes.map((e) => Qt(e, n, r)).join("")}</svg>`;
|
|
1835
1848
|
}
|
|
1836
|
-
function
|
|
1837
|
-
let r =
|
|
1849
|
+
function Qt(e, t, n) {
|
|
1850
|
+
let r = $t(e, t, n);
|
|
1838
1851
|
switch (e.kind) {
|
|
1839
1852
|
case "group": {
|
|
1840
1853
|
let i = e.translateX === void 0 && e.translateY === void 0 ? "" : ` transform="translate(${Z(e.translateX ?? 0)} ${Z(e.translateY ?? 0)})"`, a = t?.renderGroup?.(e, n);
|
|
1841
|
-
return `<g${r}${i}${e.focus ? ` data-ts-focus-layer="${e.focus.placement}" visibility="hidden"` : ""}${a?.attributes ?? ""}>${a?.content ?? ""}${e.children.map((e) =>
|
|
1854
|
+
return `<g${r}${i}${e.focus ? ` data-ts-focus-layer="${e.focus.placement}" visibility="hidden"` : ""}${a?.attributes ?? ""}>${a?.content ?? ""}${e.children.map((e) => Qt(e, t, n)).join("")}</g>`;
|
|
1842
1855
|
}
|
|
1843
1856
|
case "rule": return `<line${r} x1="${Z(e.x1)}" y1="${Z(e.y1)}" x2="${Z(e.x2)}" y2="${Z(e.y2)}"/>`;
|
|
1844
1857
|
case "polyline": return `<path${r} d="${e.path ?? e.points.map(([e, t], n) => `${n === 0 ? "M" : "L"}${Z(e)},${Z(t)}`).join("")}" vector-effect="non-scaling-stroke"/>`;
|
|
@@ -1847,14 +1860,14 @@ function Zt(e, t, n) {
|
|
|
1847
1860
|
case "rect": return `<rect${r} x="${Z(e.x)}" y="${Z(e.y)}" width="${Z(e.width)}" height="${Z(e.height)}"${e.radius === void 0 ? "" : ` rx="${Z(e.radius)}"`}/>`;
|
|
1848
1861
|
case "label": {
|
|
1849
1862
|
let t = e.rotate === void 0 ? "" : ` transform="rotate(${Z(e.rotate)} ${Z(e.x)} ${Z(e.y)})"`, n = e.anchor ? ` text-anchor="${e.anchor}"` : "", i = e.baseline ? ` dominant-baseline="${e.baseline}"` : "", a = e.fontSize === void 0 ? "" : ` font-size="${Z(e.fontSize)}"`, o = e.fontWeight === void 0 ? "" : ` font-weight="${Z(e.fontWeight)}"`;
|
|
1850
|
-
return `<text${r} x="${Z(e.x)}" y="${Z(e.y)}"${n}${i}${t}${a}${o} font-family="inherit">${
|
|
1863
|
+
return `<text${r} x="${Z(e.x)}" y="${Z(e.y)}"${n}${i}${t}${a}${o} font-family="inherit">${tn(e.text)}</text>`;
|
|
1851
1864
|
}
|
|
1852
1865
|
}
|
|
1853
1866
|
}
|
|
1854
|
-
function Qt(e, t, n) {
|
|
1855
|
-
return `${` data-ts-key="${Q(e.key)}"`}${e.className ? ` class="${Q(e.className)}"` : ""}${e.ariaHidden ? " aria-hidden=\"true\"" : ""}${$t(e.style, t, n)}`;
|
|
1856
|
-
}
|
|
1857
1867
|
function $t(e, t, n) {
|
|
1868
|
+
return `${` data-ts-key="${Q(e.key)}"`}${e.className ? ` class="${Q(e.className)}"` : ""}${e.ariaHidden ? " aria-hidden=\"true\"" : ""}${en(e.style, t, n)}`;
|
|
1869
|
+
}
|
|
1870
|
+
function en(e, t, n) {
|
|
1858
1871
|
if (!e) return "";
|
|
1859
1872
|
let r = (e) => e && t?.resolvePaint ? t.resolvePaint(e, n) : e;
|
|
1860
1873
|
return [
|
|
@@ -1872,32 +1885,32 @@ function $t(e, t, n) {
|
|
|
1872
1885
|
function Z(e) {
|
|
1873
1886
|
return String(Math.round(e * 100) / 100);
|
|
1874
1887
|
}
|
|
1875
|
-
function
|
|
1888
|
+
function tn(e) {
|
|
1876
1889
|
return e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1877
1890
|
}
|
|
1878
1891
|
function Q(e) {
|
|
1879
|
-
return
|
|
1892
|
+
return tn(e).replaceAll("\"", """);
|
|
1880
1893
|
}
|
|
1881
1894
|
//#endregion
|
|
1882
1895
|
//#region node_modules/@tanstack/charts/dist/svg.js
|
|
1883
|
-
function
|
|
1884
|
-
return
|
|
1896
|
+
function nn(e, t) {
|
|
1897
|
+
return Zt(e, t);
|
|
1885
1898
|
}
|
|
1886
1899
|
//#endregion
|
|
1887
1900
|
//#region node_modules/@tanstack/charts/dist/focus-layer.js
|
|
1888
|
-
function
|
|
1901
|
+
function rn(e, t) {
|
|
1889
1902
|
if (!e.focus || !t) return /* @__PURE__ */ new Set();
|
|
1890
|
-
let n = e.focus.points.filter((n) =>
|
|
1891
|
-
return
|
|
1903
|
+
let n = e.focus.points.filter((n) => on(n, t, e.focus.match)), r = an(e.children, n), i = /* @__PURE__ */ new Set();
|
|
1904
|
+
return dn(r, (e) => i.add(e.key)), i;
|
|
1892
1905
|
}
|
|
1893
|
-
function
|
|
1906
|
+
function an(e, t) {
|
|
1894
1907
|
let n = [];
|
|
1895
1908
|
for (let r of e) {
|
|
1896
1909
|
if (r.kind !== "group") {
|
|
1897
|
-
t.some((e) =>
|
|
1910
|
+
t.some((e) => ln(r.key, e.key)) && n.push(r);
|
|
1898
1911
|
continue;
|
|
1899
1912
|
}
|
|
1900
|
-
let e =
|
|
1913
|
+
let e = an(r.children, t);
|
|
1901
1914
|
e.length ? n.push({
|
|
1902
1915
|
...r,
|
|
1903
1916
|
children: e
|
|
@@ -1905,31 +1918,31 @@ function rn(e, t) {
|
|
|
1905
1918
|
}
|
|
1906
1919
|
return n;
|
|
1907
1920
|
}
|
|
1908
|
-
function
|
|
1909
|
-
return n === "x" ?
|
|
1910
|
-
}
|
|
1911
|
-
function on(e, t) {
|
|
1912
|
-
return e === t || e.key === t.key || ln(e.datum) && e.datum === t.datum;
|
|
1921
|
+
function on(e, t, n) {
|
|
1922
|
+
return n === "x" ? cn(e.xValue, t.primary.xValue) : n === "y" ? cn(e.yValue, t.primary.yValue) : n === "series" ? cn(e.group, t.primary.group) : n === "key" ? e.key === t.primary.key || e.datum === t.primary.datum : n === "group" ? t.group.some((t) => sn(e, t)) : sn(e, t.primary);
|
|
1913
1923
|
}
|
|
1914
1924
|
function sn(e, t) {
|
|
1915
|
-
return
|
|
1925
|
+
return e === t || e.key === t.key || un(e.datum) && e.datum === t.datum;
|
|
1916
1926
|
}
|
|
1917
1927
|
function cn(e, t) {
|
|
1928
|
+
return O(e) === O(t);
|
|
1929
|
+
}
|
|
1930
|
+
function ln(e, t) {
|
|
1918
1931
|
return e === t || e.startsWith(`${t}:`) || t.startsWith(`${e}:`);
|
|
1919
1932
|
}
|
|
1920
|
-
function
|
|
1933
|
+
function un(e) {
|
|
1921
1934
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
1922
1935
|
}
|
|
1923
|
-
function
|
|
1924
|
-
for (let n of e) t(n), n.kind === "group" &&
|
|
1936
|
+
function dn(e, t) {
|
|
1937
|
+
for (let n of e) t(n), n.kind === "group" && dn(n.children, t);
|
|
1925
1938
|
}
|
|
1926
1939
|
//#endregion
|
|
1927
1940
|
//#region node_modules/@tanstack/charts/dist/mark-state.js
|
|
1928
|
-
function
|
|
1929
|
-
if (!t || !
|
|
1941
|
+
function fn(e, t, n = null) {
|
|
1942
|
+
if (!t || !mn(e.nodes)) return { scene: e };
|
|
1930
1943
|
let r, i = (e, a, o, s, c) => e.map((e) => {
|
|
1931
|
-
let l = e.kind === "group" ? e.states : void 0, u = l?.points ?? a, d = l?.definitions ?? o, f = l?.data ?? s, p = l ?
|
|
1932
|
-
h.transition && (r =
|
|
1944
|
+
let l = e.kind === "group" ? e.states : void 0, u = l?.points ?? a, d = l?.definitions ?? o, f = l?.data ?? s, p = l ? Sn(l.points) : c, m = u ? bn(e.key, u, p) : xn, h = e.kind !== "group" && d && f && m.length ? hn(e, m, f, d, t, n) : { node: e };
|
|
1945
|
+
h.transition && (r = Cn(r, h.transition));
|
|
1933
1946
|
let g = h.node;
|
|
1934
1947
|
return g.kind === "group" ? {
|
|
1935
1948
|
...g,
|
|
@@ -1944,27 +1957,27 @@ function dn(e, t, n = null) {
|
|
|
1944
1957
|
transition: r
|
|
1945
1958
|
};
|
|
1946
1959
|
}
|
|
1947
|
-
function
|
|
1960
|
+
function pn(e, t) {
|
|
1948
1961
|
if (!e || e.type !== "tween" || (e.respectReducedMotion ?? !0) && t.ownerDocument.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
1949
1962
|
let { type: n, ...r } = e;
|
|
1950
1963
|
return r;
|
|
1951
1964
|
}
|
|
1952
|
-
function
|
|
1953
|
-
return e.some((e) => e.kind === "group" && (e.states !== void 0 ||
|
|
1965
|
+
function mn(e) {
|
|
1966
|
+
return e.some((e) => e.kind === "group" && (e.states !== void 0 || mn(e.children)));
|
|
1954
1967
|
}
|
|
1955
|
-
function
|
|
1968
|
+
function hn(e, t, n, r, i, a) {
|
|
1956
1969
|
let o = e, s;
|
|
1957
1970
|
for (let e of r) {
|
|
1958
|
-
let r =
|
|
1959
|
-
r && (o =
|
|
1971
|
+
let r = gn(t, n, e, i, a);
|
|
1972
|
+
r && (o = vn(o, e.style, r), e.transition && (s = Cn(s, e.transition)));
|
|
1960
1973
|
}
|
|
1961
1974
|
return {
|
|
1962
1975
|
node: o,
|
|
1963
1976
|
transition: s
|
|
1964
1977
|
};
|
|
1965
1978
|
}
|
|
1966
|
-
function
|
|
1967
|
-
if (!(typeof n.when != "function" && n.when.focus === "unmatched" && e.some((e) =>
|
|
1979
|
+
function gn(e, t, n, r, i) {
|
|
1980
|
+
if (!(typeof n.when != "function" && n.when.focus === "unmatched" && e.some((e) => on(e, r, "group")))) for (let a of e) {
|
|
1968
1981
|
let e = {
|
|
1969
1982
|
datum: a.datum,
|
|
1970
1983
|
index: a.datumIndex,
|
|
@@ -1972,18 +1985,18 @@ function hn(e, t, n, r, i) {
|
|
|
1972
1985
|
point: a,
|
|
1973
1986
|
focus: r,
|
|
1974
1987
|
pointer: i,
|
|
1975
|
-
matches: (e) =>
|
|
1988
|
+
matches: (e) => on(a, r, e)
|
|
1976
1989
|
};
|
|
1977
|
-
if (typeof n.when == "function" ? n.when(e) :
|
|
1990
|
+
if (typeof n.when == "function" ? n.when(e) : _n(n.when, e)) return e;
|
|
1978
1991
|
}
|
|
1979
1992
|
}
|
|
1980
|
-
function
|
|
1993
|
+
function _n(e, t) {
|
|
1981
1994
|
let n = e.source;
|
|
1982
1995
|
return n !== void 0 && !(Array.isArray(n) ? n.includes(t.focus.source) : n === t.focus.source) || e.pinned !== void 0 && e.pinned !== t.focus.pinned ? !1 : e.focus === "unmatched" ? !t.matches("group") : t.matches(e.focus);
|
|
1983
1996
|
}
|
|
1984
|
-
function
|
|
1997
|
+
function vn(e, t, n) {
|
|
1985
1998
|
let r = { ...e.style };
|
|
1986
|
-
for (let e of
|
|
1999
|
+
for (let e of yn) {
|
|
1987
2000
|
let i = $(t[e], n);
|
|
1988
2001
|
i !== void 0 && (r[e] = i);
|
|
1989
2002
|
}
|
|
@@ -2024,7 +2037,7 @@ function _n(e, t, n) {
|
|
|
2024
2037
|
}
|
|
2025
2038
|
return i;
|
|
2026
2039
|
}
|
|
2027
|
-
var
|
|
2040
|
+
var yn = [
|
|
2028
2041
|
"fill",
|
|
2029
2042
|
"fillOpacity",
|
|
2030
2043
|
"stroke",
|
|
@@ -2036,7 +2049,7 @@ var vn = [
|
|
|
2036
2049
|
function $(e, t) {
|
|
2037
2050
|
return typeof e == "function" ? e(t) : e;
|
|
2038
2051
|
}
|
|
2039
|
-
function
|
|
2052
|
+
function bn(e, t, n) {
|
|
2040
2053
|
if (!n) return t;
|
|
2041
2054
|
let r = e;
|
|
2042
2055
|
for (; r;) {
|
|
@@ -2048,8 +2061,8 @@ function yn(e, t, n) {
|
|
|
2048
2061
|
}
|
|
2049
2062
|
return t;
|
|
2050
2063
|
}
|
|
2051
|
-
var
|
|
2052
|
-
function
|
|
2064
|
+
var xn = [];
|
|
2065
|
+
function Sn(e) {
|
|
2053
2066
|
let t = /* @__PURE__ */ new Map();
|
|
2054
2067
|
for (let n of e) {
|
|
2055
2068
|
let e = -1;
|
|
@@ -2061,7 +2074,7 @@ function xn(e) {
|
|
|
2061
2074
|
}
|
|
2062
2075
|
return t;
|
|
2063
2076
|
}
|
|
2064
|
-
function
|
|
2077
|
+
function Cn(e, t) {
|
|
2065
2078
|
return !e || e.type !== t.type ? t : e.type === "spring" && t.type === "spring" ? {
|
|
2066
2079
|
...e,
|
|
2067
2080
|
...t
|
|
@@ -2073,7 +2086,7 @@ function Sn(e, t) {
|
|
|
2073
2086
|
}
|
|
2074
2087
|
//#endregion
|
|
2075
2088
|
//#region node_modules/@tanstack/charts/dist/svg-surface.js
|
|
2076
|
-
function
|
|
2089
|
+
function wn(e = nn) {
|
|
2077
2090
|
let t = {
|
|
2078
2091
|
id: "svg",
|
|
2079
2092
|
prerender: e,
|
|
@@ -2089,15 +2102,15 @@ function Cn(e = tn) {
|
|
|
2089
2102
|
return s();
|
|
2090
2103
|
},
|
|
2091
2104
|
render(t, s) {
|
|
2092
|
-
r(), r =
|
|
2105
|
+
r(), r = Rt(n, e(t, s), s.animation), i = t, a = s, o = void 0;
|
|
2093
2106
|
},
|
|
2094
2107
|
clientToScene(e, t, n) {
|
|
2095
|
-
return
|
|
2108
|
+
return Tn(s(), e, t, n);
|
|
2096
2109
|
},
|
|
2097
2110
|
paintFocus(t, c) {
|
|
2098
2111
|
if (!i || !a) return;
|
|
2099
|
-
let l =
|
|
2100
|
-
return (l.scene !== i || u) && (r(), r =
|
|
2112
|
+
let l = fn(i, t, c), u = o;
|
|
2113
|
+
return (l.scene !== i || u) && (r(), r = Rt(n, e(l.scene, a), pn(l.transition ?? u, n))), o = t ? l.transition ?? u : void 0, En(s(), l.scene, t), l.scene;
|
|
2101
2114
|
},
|
|
2102
2115
|
destroy() {
|
|
2103
2116
|
r();
|
|
@@ -2107,7 +2120,7 @@ function Cn(e = tn) {
|
|
|
2107
2120
|
};
|
|
2108
2121
|
return t;
|
|
2109
2122
|
}
|
|
2110
|
-
function
|
|
2123
|
+
function Tn(e, t, n, r) {
|
|
2111
2124
|
let i = e.getScreenCTM?.();
|
|
2112
2125
|
if (!i) {
|
|
2113
2126
|
let i = e.getBoundingClientRect();
|
|
@@ -2128,27 +2141,27 @@ function wn(e, t, n, r) {
|
|
|
2128
2141
|
y: s
|
|
2129
2142
|
};
|
|
2130
2143
|
}
|
|
2131
|
-
function
|
|
2132
|
-
let r =
|
|
2144
|
+
function En(e, t, n) {
|
|
2145
|
+
let r = Dn(t.nodes);
|
|
2133
2146
|
e.querySelectorAll("[data-ts-focus-layer]").forEach((e, t) => {
|
|
2134
|
-
let i = r[t], a = i ?
|
|
2147
|
+
let i = r[t], a = i ? rn(i, n) : /* @__PURE__ */ new Set();
|
|
2135
2148
|
e.setAttribute("visibility", n && a.size ? "visible" : "hidden"), e.querySelectorAll("[data-ts-key]").forEach((e) => {
|
|
2136
2149
|
let t = e.dataset.tsKey;
|
|
2137
2150
|
e.setAttribute("visibility", t && a.has(t) ? "visible" : "hidden");
|
|
2138
2151
|
});
|
|
2139
2152
|
});
|
|
2140
2153
|
}
|
|
2141
|
-
function
|
|
2154
|
+
function Dn(e) {
|
|
2142
2155
|
let t = [];
|
|
2143
|
-
for (let n of e) n.kind === "group" && (n.focus ? t.push(n) : t.push(...
|
|
2156
|
+
for (let n of e) n.kind === "group" && (n.focus ? t.push(n) : t.push(...Dn(n.children)));
|
|
2144
2157
|
return t;
|
|
2145
2158
|
}
|
|
2146
2159
|
//#endregion
|
|
2147
2160
|
//#region node_modules/@tanstack/charts/dist/dom.js
|
|
2148
|
-
function
|
|
2149
|
-
let r = t.renderSvg ??
|
|
2150
|
-
let n = t.renderSvg ??
|
|
2151
|
-
n !== r && (r = n, i =
|
|
2161
|
+
function On(e, t, n = dt()) {
|
|
2162
|
+
let r = t.renderSvg ?? nn, i = wn(r), a = (t) => {
|
|
2163
|
+
let n = t.renderSvg ?? nn;
|
|
2164
|
+
n !== r && (r = n, i = wn(r));
|
|
2152
2165
|
let { renderSvg: a, onRender: o, ...s } = t;
|
|
2153
2166
|
return {
|
|
2154
2167
|
...s,
|
|
@@ -2163,7 +2176,7 @@ function Dn(e, t, n = dt()) {
|
|
|
2163
2176
|
});
|
|
2164
2177
|
} : void 0
|
|
2165
2178
|
};
|
|
2166
|
-
}, o =
|
|
2179
|
+
}, o = wt(e, a(t), n);
|
|
2167
2180
|
return {
|
|
2168
2181
|
update(e) {
|
|
2169
2182
|
o.update(a(e));
|
|
@@ -2174,12 +2187,12 @@ function Dn(e, t, n = dt()) {
|
|
|
2174
2187
|
}
|
|
2175
2188
|
//#endregion
|
|
2176
2189
|
//#region node_modules/@tanstack/charts/dist/bar.js
|
|
2177
|
-
function
|
|
2190
|
+
function kn(e, t = {}) {
|
|
2178
2191
|
let n = Array.isArray(e) ? e : Array.from(e);
|
|
2179
2192
|
return M(({ markIndex: e }) => {
|
|
2180
|
-
let r = t.id ?? `bar-y-${e}`, i = P(n, t.x, (e, t) => t), a =
|
|
2193
|
+
let r = t.id ?? `bar-y-${e}`, i = P(n, t.x, (e, t) => t), a = Nn(n, t.y ?? t.y2, (e) => typeof e == "number" ? e : void 0), o = P(n, t.z, () => null), s = t.color === void 0 ? o : P(n, t.color, () => null), c = t.z === void 0 && t.color !== void 0 ? s : o, l = t.y1 !== void 0 || t.y2 !== void 0;
|
|
2181
2194
|
if (l && t.layout?.type === "stack") throw TypeError("A bar with explicit y1 or y2 endpoints cannot also configure a stack layout");
|
|
2182
|
-
let u = t.layout?.type === "group", d = t.layout?.type === "stack" ? t.layout : {}, f = !l && !u ? ne(i, a, c, d, "index") : void 0, p = l ?
|
|
2195
|
+
let u = t.layout?.type === "group", d = t.layout?.type === "stack" ? t.layout : {}, f = !l && !u ? ne(i, a, c, d, "index") : void 0, p = l ? Nn(n, t.y1, () => 0) : f?.starts ?? n.map(() => 0), m = l ? Nn(n, t.y2 ?? t.y, () => void 0) : u ? a : f.ends, h = jn(i), g = u || !l && h ? c : o, _ = F(n, t.key, {
|
|
2183
2196
|
groups: g,
|
|
2184
2197
|
candidates: [i],
|
|
2185
2198
|
markId: r,
|
|
@@ -2205,7 +2218,7 @@ function On(e, t = {}) {
|
|
|
2205
2218
|
}
|
|
2206
2219
|
},
|
|
2207
2220
|
render: ({ scales: e, chart: o, color: c }) => {
|
|
2208
|
-
let l = e.x.bandwidth ||
|
|
2221
|
+
let l = e.x.bandwidth || Mn(e.x, i, o.width, n.length), u = An(t.layout?.type === "group" ? t.layout : void 0, g, l), d = u?.bandwidth ?? l, f = Math.max(0, t.inset ?? 0), h = [];
|
|
2209
2222
|
return n.forEach((o, v) => {
|
|
2210
2223
|
let y = i[v], b = a[v], x = p[v], S = m[v];
|
|
2211
2224
|
if (!A(y) || !j(b) || !j(x) || !j(S)) return;
|
|
@@ -2255,7 +2268,7 @@ function On(e, t = {}) {
|
|
|
2255
2268
|
};
|
|
2256
2269
|
}, t.motion);
|
|
2257
2270
|
}
|
|
2258
|
-
function
|
|
2271
|
+
function An(e, n, r) {
|
|
2259
2272
|
if (!e) return;
|
|
2260
2273
|
let i = m(e.scale ?? (() => t().padding(Number.isFinite(e.padding) ? Math.max(0, e.padding) : .1)), { values: n });
|
|
2261
2274
|
i.range([0, r]);
|
|
@@ -2271,7 +2284,7 @@ function kn(e, n, r) {
|
|
|
2271
2284
|
}
|
|
2272
2285
|
};
|
|
2273
2286
|
}
|
|
2274
|
-
function
|
|
2287
|
+
function jn(e) {
|
|
2275
2288
|
let t = /* @__PURE__ */ new Set();
|
|
2276
2289
|
for (let n of e) {
|
|
2277
2290
|
if (!A(n)) continue;
|
|
@@ -2281,21 +2294,21 @@ function An(e) {
|
|
|
2281
2294
|
}
|
|
2282
2295
|
return !1;
|
|
2283
2296
|
}
|
|
2284
|
-
function
|
|
2297
|
+
function Mn(e, t, n, r) {
|
|
2285
2298
|
let i = [...new Set(t.filter(A).map(e.map).filter((e) => Number.isFinite(e)))].sort((e, t) => e - t), a = Infinity;
|
|
2286
2299
|
for (let e = 1; e < i.length; e += 1) a = Math.min(a, i[e] - i[e - 1]);
|
|
2287
2300
|
return Number.isFinite(a) ? a * .8 : Math.min(48, n / Math.max(2, r + 1) * .8);
|
|
2288
2301
|
}
|
|
2289
|
-
function
|
|
2302
|
+
function Nn(e, t, n) {
|
|
2290
2303
|
return typeof t == "number" ? e.map(() => t) : P(e, t, n);
|
|
2291
2304
|
}
|
|
2292
2305
|
//#endregion
|
|
2293
2306
|
//#region src/tanStackCharts.ts
|
|
2294
|
-
function
|
|
2307
|
+
function Pn(n, r) {
|
|
2295
2308
|
let i = {
|
|
2296
2309
|
ariaLabel: "Bar chart",
|
|
2297
2310
|
definition: Ie({
|
|
2298
|
-
marks: [
|
|
2311
|
+
marks: [kn(Fn(n), {
|
|
2299
2312
|
color: "seriesName",
|
|
2300
2313
|
fill: "seriesName",
|
|
2301
2314
|
layout: p(),
|
|
@@ -2310,7 +2323,7 @@ function Nn(n, r) {
|
|
|
2310
2323
|
scale: e
|
|
2311
2324
|
}
|
|
2312
2325
|
})
|
|
2313
|
-
}, a =
|
|
2326
|
+
}, a = On(r, i);
|
|
2314
2327
|
function o() {
|
|
2315
2328
|
let e = r.querySelector("svg");
|
|
2316
2329
|
if (e == null) throw Error("Failed to create TanStack Charts SVG element.");
|
|
@@ -2328,7 +2341,7 @@ function Nn(n, r) {
|
|
|
2328
2341
|
}
|
|
2329
2342
|
};
|
|
2330
2343
|
}
|
|
2331
|
-
function
|
|
2344
|
+
function Fn(e) {
|
|
2332
2345
|
let t = [];
|
|
2333
2346
|
for (let n of e.series) for (let [r, i] of e.categories.entries()) t.push({
|
|
2334
2347
|
category: i,
|
|
@@ -2338,6 +2351,6 @@ function Pn(e) {
|
|
|
2338
2351
|
return t;
|
|
2339
2352
|
}
|
|
2340
2353
|
//#endregion
|
|
2341
|
-
export {
|
|
2354
|
+
export { Pn as renderTanStackCharts };
|
|
2342
2355
|
|
|
2343
|
-
//# sourceMappingURL=tanStackCharts-
|
|
2356
|
+
//# sourceMappingURL=tanStackCharts-BJAX22lS.js.map
|