vue-data-ui 3.25.2 → 3.25.4
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/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -231,7 +231,7 @@ var v = {
|
|
|
231
231
|
function b(t) {
|
|
232
232
|
let r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, i = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, a = /^rgba?\(\s*([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*(?:,|\/)\s*([+\-]?\d*\.?\d+%?))?\s*\)$/i, o = /^hsla?\(\s*([+\-]?\d*\.?\d+(?:deg)?)(?:\s*,\s*|\s+)([\d.]+)%(?:\s*,\s*|\s+)([\d.]+)%(?:\s*(?:,|\/)\s*([\d.]+%?))?\s*\)$/i, s = /^oklch\(\s*([\d.]+)%?\s*[, ]\s*([\d.]+)%?\s*[, ]\s*([\d.]+)(?:deg)?\s*(?:\/\s*([\d.]+%?)\s*)?\)$/i, c = /^lch\(/i;
|
|
233
233
|
if (t == null || typeof t == "number" && isNaN(t)) return null;
|
|
234
|
-
if (t = e?.(t) ? n(t) : t, t =
|
|
234
|
+
if (t = e?.(t) ? n(t) : t, t = Ke(t), Array.isArray(t)) {
|
|
235
235
|
let [e, n, r, i = 1] = t;
|
|
236
236
|
t = `rgba(${e},${n},${r},${i})`;
|
|
237
237
|
} else if (typeof t == "object") {
|
|
@@ -607,7 +607,7 @@ function _e(e) {
|
|
|
607
607
|
}
|
|
608
608
|
return n.join(" ");
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function ve(e, t = .2) {
|
|
611
611
|
function n(e, t) {
|
|
612
612
|
let n = t.x - e.x, r = t.y - e.y;
|
|
613
613
|
return {
|
|
@@ -628,30 +628,30 @@ function I(e, t = .2) {
|
|
|
628
628
|
}
|
|
629
629
|
return e.filter((e) => !!e).reduce((e, t, n, r) => n === 0 ? `${h(t.x)},${h(t.y)} ` : `${e} ${i(t, n, r)} `, "");
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function ye() {
|
|
632
632
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
633
633
|
let t = Math.random() * 16 | 0;
|
|
634
634
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function I(e, t = !1, n = 16, r = !1) {
|
|
638
638
|
let i = 0, a = t ? n : 0, o = r ? "center" : "middle";
|
|
639
639
|
return e.center.endX > e.cx ? (i = e.center.endX + n + a, o = r ? "left" : "start") : e.center.endX < e.cx ? (i = e.center.endX - n - a, o = r ? "right" : "end") : (i = e.centerX + a, o = r ? "center" : "middle"), {
|
|
640
640
|
x: i,
|
|
641
641
|
anchor: o
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function L(e, t = 16, n = 16) {
|
|
645
645
|
return e.center.endY > e.cy ? e.center.endY + n : e.center.endY < e.cy ? e.center.endY - t : e.center.endY;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function be({ initX: e, initY: t, offset: n, centerX: r, centerY: i }) {
|
|
648
648
|
let a = Math.atan2(t - i, e - r);
|
|
649
649
|
return {
|
|
650
650
|
x: e + n * Math.cos(a),
|
|
651
651
|
y: t + n * Math.sin(a)
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function R(e) {
|
|
655
655
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
656
656
|
t.setAttribute("d", e);
|
|
657
657
|
let n = t.getTotalLength(), r = 0, i = n, a = n / 2, o = .01;
|
|
@@ -669,23 +669,23 @@ function z(e) {
|
|
|
669
669
|
y: c
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
let { x: l } =
|
|
674
|
-
l > e.cx ? (f =
|
|
672
|
+
function xe(e, t = !1, n = 16, r = 16, i = !1, a = !1, o = 0, s = 12, c = !1) {
|
|
673
|
+
let { x: l } = R(e.path), u = `${I(e).x},${L(e, n, r) - 4} `, d = "", f, p;
|
|
674
|
+
l > e.cx ? (f = I(e).x - s, p = L(e, n, r) - 4, d = `${f},${p}`) : (e.cx, f = I(e).x + s, p = L(e, n, r) - 4, d = `${f},${p}`);
|
|
675
675
|
let m = ` ${e.center.endX},${e.center.endY}`;
|
|
676
676
|
return c ? a ? `M${d} Q${d} ${m}` : `M${u} Q${d} ${m}` : `M${a ? "" : u}${d}${m}`;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Se(e) {
|
|
679
679
|
return ![
|
|
680
680
|
null,
|
|
681
681
|
void 0,
|
|
682
682
|
NaN
|
|
683
683
|
].includes(e);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Ce(e, t) {
|
|
686
686
|
return [...e].map((e) => e[t]).reduce((e, t) => e + t, 0);
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function we(e, t = !0, n = !1) {
|
|
689
689
|
if (!e.length) return "M0,0";
|
|
690
690
|
let r = "";
|
|
691
691
|
return e.forEach((e) => {
|
|
@@ -693,33 +693,33 @@ function Ce(e, t = !0, n = !1) {
|
|
|
693
693
|
r += `${e.x},${e.y} `;
|
|
694
694
|
}), n ? r.trim() : `M${r}${t ? "Z" : ""}`;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Te({ csvContent: e, title: t = "vue-data-ui" }) {
|
|
697
697
|
let n = encodeURI(e), r = document.createElement("a");
|
|
698
698
|
r.setAttribute("href", n), r.setAttribute("download", `${t}.csv`), document.body.appendChild(r), r.click(), r.remove(), window.URL.revokeObjectURL(n);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function Ee(e) {
|
|
701
701
|
return `data:text/csv;charset=utf-8,${e.map((e) => e.join(",")).join("\n")}`;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function De(e, t) {
|
|
704
704
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
705
705
|
let n = e.replace("#", "");
|
|
706
706
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
707
707
|
let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = Math.min(255, r + (255 - r) * t), s = Math.min(255, i + (255 - i) * t), c = Math.min(255, a + (255 - a) * t), l = `#${Math.round(o).toString(16).padStart(2, "0")}${Math.round(s).toString(16).padStart(2, "0")}${Math.round(c).toString(16).padStart(2, "0")}`;
|
|
708
708
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Oe(e, t) {
|
|
711
711
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
712
712
|
let n = e.replace("#", "");
|
|
713
713
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
714
714
|
let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = Math.max(0, r - r * t), s = Math.max(0, i - i * t), c = Math.max(0, a - a * t), l = `#${Math.round(o).toString(16).padStart(2, "0")}${Math.round(s).toString(16).padStart(2, "0")}${Math.round(c).toString(16).padStart(2, "0")}`;
|
|
715
715
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function z(e, t) {
|
|
718
718
|
let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
|
|
719
719
|
return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
let i = r ? t - e :
|
|
721
|
+
function ke(e, t, n, r = !1) {
|
|
722
|
+
let i = r ? t - e : z(t - e, !1), a = r ? i / (n - 1) : z(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [];
|
|
723
723
|
for (let e = o; e <= s; e += a) c.push(e);
|
|
724
724
|
return {
|
|
725
725
|
min: o,
|
|
@@ -728,8 +728,8 @@ function Oe(e, t, n, r = !1) {
|
|
|
728
728
|
ticks: c
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
let i = r ? t - e :
|
|
731
|
+
function Ae(e, t, n, r = !1) {
|
|
732
|
+
let i = r ? t - e : z(t - e, !1), a = r ? i / (n - 1) : z(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [], l = o;
|
|
733
733
|
for (; l <= s;) l >= e && l <= t && c.push(l), l += a;
|
|
734
734
|
return c[0] !== e && (c[0] = e), c[c.length - 1] !== t && (c[c.length - 1] = t), {
|
|
735
735
|
min: e,
|
|
@@ -738,7 +738,7 @@ function ke(e, t, n, r = !1) {
|
|
|
738
738
|
ticks: c
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function je(e) {
|
|
742
742
|
if (typeof e != "string") return console.error("hexColor must be a string"), "#000000ff";
|
|
743
743
|
let t = e.trim();
|
|
744
744
|
if (!t.startsWith("#")) return console.error("hexColor must start with #"), "#000000ff";
|
|
@@ -750,40 +750,40 @@ function Ae(e) {
|
|
|
750
750
|
8
|
|
751
751
|
].includes(n.length) ? /^[0-9a-fA-F]+$/.test(n) ? n.length === 3 || n.length === 4 ? `#${n.split("").map((e) => e + e).join("")}` : t : (console.error("hexColor contains invalid characters"), "#000000ff") : (console.error("hexColor must be #RGB, #RGBA, #RRGGBB, or #RRGGBBAA"), "#000000ff");
|
|
752
752
|
}
|
|
753
|
-
var
|
|
754
|
-
let t =
|
|
753
|
+
var B = (e) => {
|
|
754
|
+
let t = je(e);
|
|
755
755
|
return {
|
|
756
756
|
r: parseInt(t.substring(1, 3), 16),
|
|
757
757
|
g: parseInt(t.substring(3, 5), 16),
|
|
758
758
|
b: parseInt(t.substring(5, 7), 16),
|
|
759
759
|
a: t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1
|
|
760
760
|
};
|
|
761
|
-
},
|
|
762
|
-
let i =
|
|
761
|
+
}, Me = ({ r: e, g: t, b: n, a: r = 1 }) => {
|
|
762
|
+
let i = V(r, 0, 1), a = `#${k(e)}${k(t)}${k(n)}`;
|
|
763
763
|
return i < 1 ? `${a}${k(i * 255)}` : a;
|
|
764
764
|
};
|
|
765
|
-
function
|
|
765
|
+
function V(e, t, n) {
|
|
766
766
|
return Math.min(Math.max(e, t), n);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
let a =
|
|
768
|
+
function Ne(e, t, n, r, i) {
|
|
769
|
+
let a = B(e), o = B(t);
|
|
770
770
|
i = Math.min(Math.max(i, n), r);
|
|
771
771
|
let s = (i - n) / (r - n), c = {
|
|
772
772
|
r: Math.round(a.r + (o.r - a.r) * s),
|
|
773
773
|
g: Math.round(a.g + (o.g - a.g) * s),
|
|
774
774
|
b: Math.round(a.b + (o.b - a.b) * s)
|
|
775
775
|
}, l = a.a + (o.a - a.a) * s;
|
|
776
|
-
return
|
|
776
|
+
return Me({
|
|
777
777
|
...c,
|
|
778
778
|
a: l
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Pe({ colors: e, ratio: t }) {
|
|
782
782
|
if (!Array.isArray(e)) throw Error("colors must be an array");
|
|
783
783
|
if (!e.length) throw Error("colors must contain at least 1 hex color");
|
|
784
|
-
let n = (e) => Math.round(
|
|
785
|
-
if (e.length === 1) return r(
|
|
786
|
-
let i =
|
|
784
|
+
let n = (e) => Math.round(V(e, 0, 255)).toString(16).padStart(2, "0"), r = ({ r: e, g: t, b: r, a: i = 1 }) => `#${n(e)}${n(t)}${n(r)}${n(V(i, 0, 1) * 255)}`;
|
|
785
|
+
if (e.length === 1) return r(B(e[0]));
|
|
786
|
+
let i = V(t, 0, 1), a = e.map(B), o = a.length - 1, s = i * o, c = Math.min(Math.floor(s), o - 1), l = s - c, u = a[c], d = a[c + 1];
|
|
787
787
|
return r({
|
|
788
788
|
r: u.r + (d.r - u.r) * l,
|
|
789
789
|
g: u.g + (d.g - u.g) * l,
|
|
@@ -791,11 +791,11 @@ function Ne({ colors: e, ratio: t }) {
|
|
|
791
791
|
a: u.a + (d.a - u.a) * l
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function Fe({ p: e = "", v: t, s: n = "", r = 0, space: i = !1, isAnimating: a = !1, regex: o = /[^%]/g, replacement: s = "-", locale: c = null }) {
|
|
795
795
|
let l = c ? Number(Number(t).toFixed(r)).toLocaleString(c) : Number(Number(t).toFixed(r)).toLocaleString(), u = l === Infinity ? "∞" : l === -Infinity ? "-∞" : l, d = `${e ?? ""}${i ? " " : ""}${[void 0, null].includes(t) ? "-" : u}${i ? " " : ""}${n ?? ""}`;
|
|
796
796
|
return a ? d.replace(o, s) : d;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Ie({ source: e, length: t = 3 }) {
|
|
799
799
|
if (!e && e !== 0) return "";
|
|
800
800
|
e = String(e);
|
|
801
801
|
let n = e.length > 1 ? e.split(" ") : [e];
|
|
@@ -808,22 +808,22 @@ function Fe({ source: e, length: t = 3 }) {
|
|
|
808
808
|
}), e.join().replaceAll(",", "").toUpperCase();
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Le(e) {
|
|
812
812
|
return !!e && typeof e == "function";
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Re(e) {
|
|
815
815
|
return typeof e.apply(null, arguments) == "string";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function ze(e) {
|
|
818
818
|
return Array.isArray(e) ? e.length === 0 : !e || Object.keys(e).length === 0;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Be({ componentName: e, type: t, property: n = "", index: i = "", key: a = "", warn: o = !0, debug: s = !0 }) {
|
|
821
821
|
if (!s) return;
|
|
822
822
|
let c = `\n> ${r[t].replace("#COMP#", e).replace("#ATTR#", n).replace("#INDX#", i).replace("#KEY#", a)}\n`;
|
|
823
823
|
if (o) console.warn(c);
|
|
824
824
|
else throw Error(c);
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Ve({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
827
827
|
let o = [];
|
|
828
828
|
for (let s = 0; s < e; s++) {
|
|
829
829
|
let e = r * s, c = t + n * e, l = c * Math.cos(e) + i, u = c * Math.sin(e) + a;
|
|
@@ -834,7 +834,7 @@ function Be({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
|
834
834
|
}
|
|
835
835
|
return o;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function He(e) {
|
|
838
838
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
839
839
|
for (let a of e) a.x < t && (t = a.x), a.y < n && (n = a.y), a.x > r && (r = a.x), a.y > i && (i = a.y);
|
|
840
840
|
return {
|
|
@@ -846,7 +846,7 @@ function Ve(e) {
|
|
|
846
846
|
height: i - n || 1
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Ue(e) {
|
|
850
850
|
if (!e.length) return "";
|
|
851
851
|
let t = `M${e[0].x} ${e[0].y}`;
|
|
852
852
|
for (let n = 1; n < e.length - 2; n += 2) {
|
|
@@ -855,30 +855,30 @@ function He(e) {
|
|
|
855
855
|
}
|
|
856
856
|
return t;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
let l =
|
|
858
|
+
function We({ maxPoints: e, a: t = 6, b: n = 6, angleStep: r = .07, startX: i, startY: a, boxWidth: o, boxHeight: s, padding: c = 12 }) {
|
|
859
|
+
let l = Ve({
|
|
860
860
|
points: e,
|
|
861
861
|
a: t,
|
|
862
862
|
b: n,
|
|
863
863
|
angleStep: r,
|
|
864
864
|
startX: 0,
|
|
865
865
|
startY: 0
|
|
866
|
-
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } =
|
|
866
|
+
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } = He(l), g = (u + f) / 2, _ = (d + p) / 2, v = Math.max(1, o - 2 * c), y = Math.max(1, s - 2 * c), b = Math.min(v / m, y / h), x = i - g * b, S = a - _ * b;
|
|
867
867
|
return function(e) {
|
|
868
868
|
let t = Math.max(2, Math.min(Math.round(e), l.length));
|
|
869
|
-
return
|
|
869
|
+
return Ue(l.slice(0, t).map((e) => ({
|
|
870
870
|
x: e.x * b + x,
|
|
871
871
|
y: e.y * b + S
|
|
872
872
|
})));
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Ge({ datasetObject: e, requiredAttributes: t }) {
|
|
876
876
|
let n = [];
|
|
877
877
|
return t.forEach((t) => {
|
|
878
878
|
Object.hasOwn(e, t) || n.push(t);
|
|
879
879
|
}), n;
|
|
880
880
|
}
|
|
881
|
-
var
|
|
881
|
+
var H = {
|
|
882
882
|
ALICEBLUE: "#F0F8FF",
|
|
883
883
|
ANTIQUEWHITE: "#FAEBD7",
|
|
884
884
|
AQUA: "#00FFFF",
|
|
@@ -1021,17 +1021,17 @@ var U = {
|
|
|
1021
1021
|
YELLOWGREEN: "#9ACD32",
|
|
1022
1022
|
REBECCAPURPLE: "#663399"
|
|
1023
1023
|
};
|
|
1024
|
-
function
|
|
1024
|
+
function Ke(t) {
|
|
1025
1025
|
let r = e?.(t) ? n(t) : t;
|
|
1026
1026
|
if (typeof r != "string") return r;
|
|
1027
1027
|
let i = r.trim();
|
|
1028
1028
|
if (i === "" || i[0] === "#") return i;
|
|
1029
1029
|
if (i.toLowerCase() === "transparent") return "#FFFFFF00";
|
|
1030
1030
|
let a = i.toUpperCase(), o = a.replace(/GRAY/g, "GREY");
|
|
1031
|
-
return
|
|
1031
|
+
return H[a] || H[o] || i;
|
|
1032
1032
|
}
|
|
1033
|
-
var
|
|
1034
|
-
function
|
|
1033
|
+
var U = "http://www.w3.org/2000/svg";
|
|
1034
|
+
function qe(e) {
|
|
1035
1035
|
if (e.length < 2) return 0;
|
|
1036
1036
|
let t = 0, n = 0;
|
|
1037
1037
|
for (let r = 1; r < e.length; r++) {
|
|
@@ -1048,12 +1048,12 @@ function Ke(e) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
return n === 0 ? 0 : t / n;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function W({ content: e, fontSize: t, fill: n, x: r, y: i, translateY: a = !1, stroke: o = "none" }) {
|
|
1052
1052
|
let s = e.split("\n"), c = s.length * t, l = a ? (c - t) / 2 : 0;
|
|
1053
1053
|
return s.map((e, a) => `<tspan x="${r}" y="${i - l + a * t}" fill="${n}" stroke="${o}" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" paint-order="stroke fill">${e}</tspan>`).join("");
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return f(e) ? (
|
|
1055
|
+
function Je(e) {
|
|
1056
|
+
return f(e) ? (W({
|
|
1057
1057
|
content: e,
|
|
1058
1058
|
fontSize: 1,
|
|
1059
1059
|
fill: "",
|
|
@@ -1061,11 +1061,11 @@ function qe(e) {
|
|
|
1061
1061
|
y: 0
|
|
1062
1062
|
}).match(/<tspan\b/g) || []).length : 1;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Ye({ content: e, fontSize: t, fill: n, x: r, autoOffset: i = !1, stroke: a = "none" }) {
|
|
1065
1065
|
let o = e.split("\n"), s = i ? (o.length - 1) * t / 2 : 0;
|
|
1066
1066
|
return o.map((e, i) => `<tspan x="${r}" dy="${i === 0 ? -s : t}" fill="${n}" stroke="${a}" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" paint-order="stroke fill">${e}</tspan>`).join("");
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Xe({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a, stroke: o = "none" }) {
|
|
1069
1069
|
function s(e, t) {
|
|
1070
1070
|
let n = e.split(" "), r = [];
|
|
1071
1071
|
for (let e = 0; e < n.length; e += t) r.push(n.slice(e, e + t).join(" "));
|
|
@@ -1077,10 +1077,10 @@ function Ye({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a, stroke:
|
|
|
1077
1077
|
c += s;
|
|
1078
1078
|
}), c;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function Ze(e) {
|
|
1081
1081
|
return e.length ? e.map((e) => b(e)) : [];
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Qe(e, t = null) {
|
|
1084
1084
|
let n = e.replace(/[\p{P}\p{S}]+/gu, " ").trim(), r = (/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Tibetan}\p{Script=Myanmar}\p{Script=Devanagari}]/u.test(e) ? [...n] : n.split(/\s+/)).filter((e) => e.trim().length > 0).reduce((e, t) => (e[t] ? e[t] += 1 : e[t] = 1, e), {});
|
|
1085
1085
|
return Object.keys(r).map((e) => {
|
|
1086
1086
|
let n = e;
|
|
@@ -1090,7 +1090,7 @@ function Ze(e, t = null) {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function $e(e) {
|
|
1094
1094
|
let t = e.reduce((e, t) => e + (t.stackRatio || 0), 0), n = e.filter((e) => e.stackRatio === void 0).length, r = 1 - t, i = n > 0 ? r / n : 0, a = e.map((e) => ({
|
|
1095
1095
|
...e,
|
|
1096
1096
|
stackRatio: e.stackRatio === void 0 ? i : e.stackRatio
|
|
@@ -1101,7 +1101,7 @@ function Qe(e) {
|
|
|
1101
1101
|
cumulatedStackRatio: o
|
|
1102
1102
|
})), a;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function et(e) {
|
|
1105
1105
|
function t(e, t, n, r) {
|
|
1106
1106
|
let i = n - e, a = r - t;
|
|
1107
1107
|
return Math.sqrt(i * i + a * a);
|
|
@@ -1149,11 +1149,11 @@ function $e(e) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}), c;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function tt({ relator: e, adjuster: t, source: n, threshold: r = 0, fallback: i, max: a = 24 }) {
|
|
1153
1153
|
let o = e / (t / n);
|
|
1154
1154
|
return o > a ? a : o < r ? i : o;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function nt(e) {
|
|
1157
1157
|
return e.reduce((e, t) => (t.series.forEach((t, n) => {
|
|
1158
1158
|
![
|
|
1159
1159
|
void 0,
|
|
@@ -1163,7 +1163,7 @@ function tt(e) {
|
|
|
1163
1163
|
].includes(t) && !isNaN(t) && (e[n] = (e[n] || 0) + t);
|
|
1164
1164
|
}), e), []);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function rt(e, { value: t, config: n }) {
|
|
1167
1167
|
let r = !1, i = t;
|
|
1168
1168
|
if (typeof e == "function") try {
|
|
1169
1169
|
i = e({
|
|
@@ -1178,17 +1178,17 @@ function nt(e, { value: t, config: n }) {
|
|
|
1178
1178
|
value: i
|
|
1179
1179
|
};
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
let { isValid: i, value: a } =
|
|
1181
|
+
function it(e, t, n, r) {
|
|
1182
|
+
let { isValid: i, value: a } = rt(e, {
|
|
1183
1183
|
value: t,
|
|
1184
1184
|
config: r
|
|
1185
1185
|
});
|
|
1186
1186
|
return i ? a : n;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function at(e, t) {
|
|
1189
1189
|
return t.split(".").every((t) => typeof e == "object" && e && t in e ? (e = e[t], !0) : !1);
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function ot(e, t = [], n = !1) {
|
|
1192
1192
|
function r(e) {
|
|
1193
1193
|
return n && e === null ? null : typeof e == "string" && isNaN(Number(e)) || typeof e == "number" && isFinite(e) ? e : 0;
|
|
1194
1194
|
}
|
|
@@ -1204,10 +1204,10 @@ function at(e, t = [], n = !1) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
return i(e);
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function st(e, t = 100) {
|
|
1208
1208
|
return e.length === 9 ? e.substring(0, 7) + y[t] : e + y[t];
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function ct({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
1211
1211
|
let i = 360 / (e.length - +!!r);
|
|
1212
1212
|
return e.map((e, r) => {
|
|
1213
1213
|
let a = e * n, o = r * i, s = o + i, c = o + i / 2, l = j(o) - j(90), u = j(s) - j(90), d = j(c) - j(90), f = t.x + a * Math.cos(l), p = t.y + a * Math.sin(l), m = t.x + a * Math.cos(u), h = t.y + a * Math.sin(u), g = t.x + a * Math.cos(d), _ = t.y + a * Math.sin(d);
|
|
@@ -1226,7 +1226,7 @@ function st({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function lt({ data: e, threshold: t }) {
|
|
1230
1230
|
if (t >= e.length || t < 3) return e;
|
|
1231
1231
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1232
1232
|
n.push(e[i]);
|
|
@@ -1243,7 +1243,7 @@ function ct({ data: e, threshold: t }) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
return n.push(e[e.length - 1]), n;
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function ut({ data: e, threshold: t }) {
|
|
1247
1247
|
if (t >= e.length || t < 3) return e;
|
|
1248
1248
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1249
1249
|
n.push(e[i]);
|
|
@@ -1257,7 +1257,7 @@ function lt({ data: e, threshold: t }) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
return n.push(e[e.length - 1]), n;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function dt({ data: e, threshold: t, key: n = "value" }) {
|
|
1261
1261
|
if (t >= e.length || t < 3) return e;
|
|
1262
1262
|
let r = [], i = (e.length - 2) / (t - 2), a = 0;
|
|
1263
1263
|
r.push(e[a]);
|
|
@@ -1271,12 +1271,12 @@ function ut({ data: e, threshold: t, key: n = "value" }) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
return r.push(e[e.length - 1]), r;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function ft({ radius: e, centerX: t, centerY: n, percentage: r }) {
|
|
1275
1275
|
r = Math.max(0, Math.min(1, r));
|
|
1276
1276
|
let i = r * Math.PI;
|
|
1277
1277
|
return `M ${t},${n} L ${t - e},${n} A ${e},${e} 0 0 1 ${t - e * Math.cos(i)},${n - e * Math.sin(i)} Z`.trim();
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function pt({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
1280
1280
|
if (!e || !i) return {
|
|
1281
1281
|
top: 0,
|
|
1282
1282
|
left: 0
|
|
@@ -1289,7 +1289,7 @@ function ft({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
|
1289
1289
|
left: o.x + l
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function mt({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
1293
1293
|
if (!e || !r) return {
|
|
1294
1294
|
top: 0,
|
|
1295
1295
|
left: 0
|
|
@@ -1302,31 +1302,31 @@ function pt({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
|
1302
1302
|
left: o.x + l
|
|
1303
1303
|
};
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function G(e) {
|
|
1306
1306
|
if (typeof e != "object" || !e) return e;
|
|
1307
1307
|
if (e instanceof Date) return new Date(e.getTime());
|
|
1308
1308
|
if (e instanceof RegExp) return new RegExp(e.source, e.flags);
|
|
1309
1309
|
if (e instanceof Map) {
|
|
1310
1310
|
let t = /* @__PURE__ */ new Map();
|
|
1311
|
-
for (let [n, r] of e.entries()) t.set(n,
|
|
1311
|
+
for (let [n, r] of e.entries()) t.set(n, G(r));
|
|
1312
1312
|
return t;
|
|
1313
1313
|
}
|
|
1314
1314
|
if (e instanceof Set) {
|
|
1315
1315
|
let t = /* @__PURE__ */ new Set();
|
|
1316
|
-
for (let n of e.values()) t.add(
|
|
1316
|
+
for (let n of e.values()) t.add(G(n));
|
|
1317
1317
|
return t;
|
|
1318
1318
|
}
|
|
1319
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
1319
|
+
if (Array.isArray(e)) return e.map((e) => G(e));
|
|
1320
1320
|
let t = {};
|
|
1321
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
1321
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = G(e[n]));
|
|
1322
1322
|
return t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function ht(e) {
|
|
1325
1325
|
let t = [], n = [];
|
|
1326
1326
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length && t.push(n), n = []) : n.push(r);
|
|
1327
1327
|
return n.length && t.push(n), t;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function gt(e, t) {
|
|
1330
1330
|
let n = e.filter((e) => !!e);
|
|
1331
1331
|
if (!n[0]) return [
|
|
1332
1332
|
-10,
|
|
@@ -1352,7 +1352,7 @@ function ht(e, t) {
|
|
|
1352
1352
|
i.y
|
|
1353
1353
|
].toString();
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function _t(e, t) {
|
|
1356
1356
|
if (!e[0]) return [
|
|
1357
1357
|
-10,
|
|
1358
1358
|
-10,
|
|
@@ -1360,7 +1360,7 @@ function gt(e, t) {
|
|
|
1360
1360
|
-10,
|
|
1361
1361
|
-10
|
|
1362
1362
|
].toString();
|
|
1363
|
-
let n =
|
|
1363
|
+
let n = ht(e);
|
|
1364
1364
|
return n.length ? n.map((e) => {
|
|
1365
1365
|
let n = {
|
|
1366
1366
|
x: e[0].x,
|
|
@@ -1380,37 +1380,37 @@ function gt(e, t) {
|
|
|
1380
1380
|
].toString();
|
|
1381
1381
|
}).join(";") : "";
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function vt(e) {
|
|
1384
1384
|
let t = [], n = [];
|
|
1385
1385
|
for (let r of e) r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
1386
1386
|
return n.length > 1 && t.push(n), t;
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function yt(e) {
|
|
1389
1389
|
let t = "", n = !1;
|
|
1390
1390
|
for (let r = 0; r < e.length; r++) {
|
|
1391
1391
|
let i = e[r];
|
|
1392
|
-
if (!
|
|
1392
|
+
if (!J(i)) continue;
|
|
1393
1393
|
let a = `${h(i.x)},${h(i.y)}`;
|
|
1394
1394
|
if (!n) t += a, n = !0;
|
|
1395
1395
|
else {
|
|
1396
|
-
let n = e[r - 1], i =
|
|
1396
|
+
let n = e[r - 1], i = J(n) ? "L" : "M";
|
|
1397
1397
|
t += `${i}${a}`;
|
|
1398
1398
|
}
|
|
1399
1399
|
t += " ";
|
|
1400
1400
|
}
|
|
1401
1401
|
return t.trim();
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function K(e) {
|
|
1404
1404
|
let t = Number(e);
|
|
1405
1405
|
return Number.isFinite(t) ? Math.trunc(t) : null;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function q(e) {
|
|
1408
1408
|
return `${h(e.x)},${h(e.y)}`;
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function bt(e, t = []) {
|
|
1411
1411
|
let n = Array.isArray(e) ? e : [], r = n.length, i = /* @__PURE__ */ new Set(), a = r - 1;
|
|
1412
1412
|
for (let e of Array.isArray(t) ? t : []) {
|
|
1413
|
-
let t =
|
|
1413
|
+
let t = K(e);
|
|
1414
1414
|
t !== null && (t > 0 && i.add(t - 1), t < a && i.add(t));
|
|
1415
1415
|
}
|
|
1416
1416
|
let o = [], s = [], c = !1, l = !1, u = () => {
|
|
@@ -1421,17 +1421,17 @@ function yt(e, t = []) {
|
|
|
1421
1421
|
};
|
|
1422
1422
|
for (let e = 0; e < r; e += 1) {
|
|
1423
1423
|
let t = n[e];
|
|
1424
|
-
if (!
|
|
1424
|
+
if (!J(t)) {
|
|
1425
1425
|
u();
|
|
1426
1426
|
continue;
|
|
1427
1427
|
}
|
|
1428
|
-
let r =
|
|
1428
|
+
let r = q(t);
|
|
1429
1429
|
if (!l) {
|
|
1430
1430
|
s = [r], l = !0;
|
|
1431
1431
|
continue;
|
|
1432
1432
|
}
|
|
1433
1433
|
let a = n[e - 1];
|
|
1434
|
-
if (!
|
|
1434
|
+
if (!J(a)) {
|
|
1435
1435
|
u(), s = [r], l = !0;
|
|
1436
1436
|
continue;
|
|
1437
1437
|
}
|
|
@@ -1441,14 +1441,14 @@ function yt(e, t = []) {
|
|
|
1441
1441
|
continue;
|
|
1442
1442
|
}
|
|
1443
1443
|
if (o !== c) {
|
|
1444
|
-
let e =
|
|
1444
|
+
let e = q(a);
|
|
1445
1445
|
u(), c = o, s = [e, r], l = !0;
|
|
1446
1446
|
} else s.push(r);
|
|
1447
1447
|
}
|
|
1448
1448
|
return u(), o;
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1451
|
-
let t =
|
|
1450
|
+
function xt(e) {
|
|
1451
|
+
let t = vt(e);
|
|
1452
1452
|
if (!t.length) return "";
|
|
1453
1453
|
let n = "";
|
|
1454
1454
|
for (let [e, r] of t.entries()) {
|
|
@@ -1469,26 +1469,26 @@ function bt(e) {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
return n.trim();
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function J(e) {
|
|
1473
1473
|
return e != null && e.value != null && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function St(e, t) {
|
|
1476
1476
|
let n = e - 1, r = /* @__PURE__ */ new Set(), i = Array.isArray(t) ? t : [];
|
|
1477
1477
|
for (let e of i) {
|
|
1478
|
-
let t =
|
|
1478
|
+
let t = K(e);
|
|
1479
1479
|
t !== null && (t > 0 && r.add(t - 1), t < n && r.add(t));
|
|
1480
1480
|
}
|
|
1481
1481
|
return r;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Ct(e) {
|
|
1484
1484
|
let t = [], n = [];
|
|
1485
1485
|
for (let r = 0; r < e.length; r += 1) {
|
|
1486
1486
|
let i = e[r];
|
|
1487
|
-
|
|
1487
|
+
J(i) ? n.push(r) : (n.length > 1 && t.push(n), n = []);
|
|
1488
1488
|
}
|
|
1489
1489
|
return n.length > 1 && t.push(n), t;
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function wt(e, t) {
|
|
1492
1492
|
let n = t.map((t) => e[t]), r = n.length - 1, i = [], a = [], o = [], s = [];
|
|
1493
1493
|
for (let e = 0; e < r; e += 1) i[e] = n[e + 1].x - n[e].x, a[e] = n[e + 1].y - n[e].y, o[e] = a[e] / i[e];
|
|
1494
1494
|
s[0] = o[0], s[r] = o[r - 1];
|
|
@@ -1499,11 +1499,11 @@ function Ct(e, t) {
|
|
|
1499
1499
|
c[e] = `C${h(u)},${h(d)} ${h(f)},${h(p)} ${h(i)},${h(a)}`;
|
|
1500
1500
|
}
|
|
1501
1501
|
return {
|
|
1502
|
-
startCoord:
|
|
1502
|
+
startCoord: q(n[0]),
|
|
1503
1503
|
commands: c
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function Tt(e) {
|
|
1507
1507
|
let t = [];
|
|
1508
1508
|
if (!e.length) return t;
|
|
1509
1509
|
let n = 0, r = e[0];
|
|
@@ -1518,21 +1518,21 @@ function wt(e) {
|
|
|
1518
1518
|
dashed: r
|
|
1519
1519
|
}), t;
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function Et(e, t = []) {
|
|
1522
1522
|
let n = Array.isArray(e) ? e : [];
|
|
1523
1523
|
if (n.length < 2) return [];
|
|
1524
|
-
let r =
|
|
1524
|
+
let r = St(n.length, t), i = Ct(n);
|
|
1525
1525
|
if (!i.length) return [];
|
|
1526
1526
|
let a = [];
|
|
1527
1527
|
for (let e of i) {
|
|
1528
|
-
let { startCoord: t, commands: i } =
|
|
1528
|
+
let { startCoord: t, commands: i } = wt(n, e), o = Array(i.length);
|
|
1529
1529
|
for (let t = 0; t < i.length; t += 1) {
|
|
1530
1530
|
let n = e[t];
|
|
1531
1531
|
o[t] = r.has(n);
|
|
1532
1532
|
}
|
|
1533
|
-
let s =
|
|
1533
|
+
let s = Tt(o);
|
|
1534
1534
|
for (let r of s) {
|
|
1535
|
-
let o = r.startEdge, s = `${o === 0 ? t :
|
|
1535
|
+
let o = r.startEdge, s = `${o === 0 ? t : q(n[e[o]])} ${i.slice(r.startEdge, r.endEdge + 1).join(" ")}`.trim();
|
|
1536
1536
|
a.push({
|
|
1537
1537
|
path: s,
|
|
1538
1538
|
dashed: r.dashed
|
|
@@ -1541,7 +1541,7 @@ function Tt(e, t = []) {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return a;
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function Dt(e, t, n = !1, r = !0) {
|
|
1545
1545
|
function i(e) {
|
|
1546
1546
|
let t = [], n = [];
|
|
1547
1547
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
@@ -1566,28 +1566,28 @@ function Et(e, t, n = !1, r = !0) {
|
|
|
1566
1566
|
return c += ` L${e[n].x},${t} ${r ? "Z" : ""}`, c;
|
|
1567
1567
|
}).filter(Boolean);
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Ot(e) {
|
|
1570
1570
|
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}_-]+/gu, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function kt(e) {
|
|
1573
1573
|
return e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? null : e;
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1576
|
-
if (Array.isArray(e)) return e.map(
|
|
1575
|
+
function Y(e) {
|
|
1576
|
+
if (Array.isArray(e)) return e.map(Y);
|
|
1577
1577
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1578
1578
|
let t = {};
|
|
1579
|
-
for (let n in e) Object.hasOwn(e, n) && (t[n] =
|
|
1580
|
-
return
|
|
1579
|
+
for (let n in e) Object.hasOwn(e, n) && (t[n] = Y(e[n]));
|
|
1580
|
+
return kt(t);
|
|
1581
1581
|
}
|
|
1582
1582
|
return e;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function At(e) {
|
|
1585
1585
|
return 1 - (1 - e) ** 3;
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function jt(e) {
|
|
1588
1588
|
return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function Mt({ values: e, config: t = {} }) {
|
|
1591
1591
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = 0, o = 0;
|
|
1592
1592
|
function s(e) {
|
|
1593
1593
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1598,7 +1598,7 @@ function jt({ values: e, config: t = {} }) {
|
|
|
1598
1598
|
for (let t of e) s(t) ? r && n ? c(0) : !r && n && i.push(t) : c(t);
|
|
1599
1599
|
return i;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function Nt({ values: e, config: t = {} }) {
|
|
1602
1602
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = [];
|
|
1603
1603
|
function o(e) {
|
|
1604
1604
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1611,7 +1611,7 @@ function Mt({ values: e, config: t = {} }) {
|
|
|
1611
1611
|
for (let t of e) o(t) ? r && n ? s(0) : !r && n && i.push(t) : s(t);
|
|
1612
1612
|
return i;
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Pt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts: i = 200, padding: a = 1 }) {
|
|
1615
1615
|
if (!e || !n) return 0;
|
|
1616
1616
|
let o = n;
|
|
1617
1617
|
e.setAttribute("font-size", o);
|
|
@@ -1621,7 +1621,7 @@ function Nt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts
|
|
|
1621
1621
|
for (; g-- > 0 && o > r && (o--, e.setAttribute("font-size", o), h = e.getBBox(), !(h.x >= d + a && h.y >= f + a && h.x + h.width <= p - a && h.y + h.height <= m - a)););
|
|
1622
1622
|
return o < r && (o = 0, e.setAttribute("font-size", o)), o;
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Ft({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailingZero: r = !0 }) {
|
|
1625
1625
|
if (e === 0) return "0";
|
|
1626
1626
|
let i = Math.abs(e);
|
|
1627
1627
|
if (i >= 1 && typeof n == "function") {
|
|
@@ -1633,26 +1633,26 @@ function Pt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailing
|
|
|
1633
1633
|
let o = e.toFixed(a);
|
|
1634
1634
|
return r && (o = o.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), o;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function It(e) {
|
|
1637
1637
|
let t = [];
|
|
1638
1638
|
for (let n = 0; n < e; n += 1) t.push(n === 0 ? 0 : n === 1 ? 1 : t[n - 1] + t[n - 2]);
|
|
1639
1639
|
return t;
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Lt(e, t = 20) {
|
|
1642
1642
|
e = e.replace(/[\r\n]+/g, " ");
|
|
1643
1643
|
let n = e.split(" "), r = "", i = "";
|
|
1644
1644
|
for (let e of n) (r + (r ? " " : "") + e).length <= t ? r += (r ? " " : "") + e : (r && (i += (i ? "\n" : "") + r), r = e);
|
|
1645
1645
|
return r && (i += (i ? "\n" : "") + r), i;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function Rt(e) {
|
|
1648
1648
|
return e && ![null, void 0].includes(e.value) && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function X(e, t) {
|
|
1651
1651
|
if (!Array.isArray(e) || !e.length) return [];
|
|
1652
1652
|
let n = [], r = [], i = () => {
|
|
1653
1653
|
r.length && (n.push(r), r = []);
|
|
1654
1654
|
};
|
|
1655
|
-
for (let n of e)
|
|
1655
|
+
for (let n of e) Rt(n) ? r.push(n) : t && i();
|
|
1656
1656
|
if (i(), !t) {
|
|
1657
1657
|
let e = n.flat();
|
|
1658
1658
|
n.length = 0, e.length && n.push(e);
|
|
@@ -1682,13 +1682,13 @@ function Z(e, t) {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
}), a;
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function Z(e, t, n) {
|
|
1686
1686
|
return e + (t - e) * n;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function zt(e) {
|
|
1689
1689
|
let { lineA: t, lineB: n, colorLineA: r, colorLineB: i, smoothA: a = !1, smoothB: o = !1, stepperA: s = !1, stepperB: c = !1, sampleStepPx: l = 2, cutNullValues: u = !0, merge: d = !0 } = e || {};
|
|
1690
1690
|
if (!Array.isArray(t) || !Array.isArray(n) || !t.length || !n.length) return [];
|
|
1691
|
-
let f = s ?
|
|
1691
|
+
let f = s ? X(t, u) : t, p = c ? X(n, u) : n, m = (e) => Number.isFinite(e);
|
|
1692
1692
|
function h(e) {
|
|
1693
1693
|
if (!u) return [e.filter((e) => e && m(e.x) && m(e.y))];
|
|
1694
1694
|
let t = [], n = [];
|
|
@@ -1762,7 +1762,7 @@ function Rt(e) {
|
|
|
1762
1762
|
if (n.push(i), r.push(s), i.hole || o.hole || s.hole || c.hole || i.y == null || o.y == null || s.y == null || c.y == null) continue;
|
|
1763
1763
|
let l = i.y - s.y, u = o.y - c.y;
|
|
1764
1764
|
if (l > 0 && u < 0 || l < 0 && u > 0) {
|
|
1765
|
-
let e = l / (l - u), t =
|
|
1765
|
+
let e = l / (l - u), t = Z(i.x, o.x, e), a = Z(i.y, o.y, e), s = {
|
|
1766
1766
|
x: t,
|
|
1767
1767
|
y: a,
|
|
1768
1768
|
hole: !1
|
|
@@ -1830,7 +1830,7 @@ function Rt(e) {
|
|
|
1830
1830
|
let { A: S, B: C } = y(v(f, !s && a), v(p, !c && o));
|
|
1831
1831
|
return d ? x(S, C) : b(S, C);
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Bt(e, t, n = {}) {
|
|
1834
1834
|
let r = {
|
|
1835
1835
|
bubbles: !0,
|
|
1836
1836
|
cancelable: !0,
|
|
@@ -1865,7 +1865,7 @@ function zt(e, t, n = {}) {
|
|
|
1865
1865
|
}) : new Event(t, r);
|
|
1866
1866
|
return e.dispatchEvent(o), o;
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function Vt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {}) {
|
|
1869
1869
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
1870
1870
|
let i = e.style, a = {
|
|
1871
1871
|
width: i.width,
|
|
@@ -1880,14 +1880,56 @@ function Bt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {})
|
|
|
1880
1880
|
});
|
|
1881
1881
|
}, n);
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function Ht(e) {
|
|
1884
1884
|
let t = null, n = null;
|
|
1885
1885
|
return (...r) => {
|
|
1886
1886
|
let i = JSON.stringify(r);
|
|
1887
1887
|
return i === t ? n : (t = i, n = e(...r), n);
|
|
1888
1888
|
};
|
|
1889
1889
|
}
|
|
1890
|
-
|
|
1890
|
+
function Q(e, t, n = 0) {
|
|
1891
|
+
let r = Math.max(1, Math.trunc(Number(t) || 1)), i = /* @__PURE__ */ new Set(), a = 0;
|
|
1892
|
+
for (; a < e.length;) {
|
|
1893
|
+
let t = e[a] ?? "";
|
|
1894
|
+
if (!t) {
|
|
1895
|
+
a += 1;
|
|
1896
|
+
continue;
|
|
1897
|
+
}
|
|
1898
|
+
let o = a, s = a;
|
|
1899
|
+
for (; s + 1 < e.length && (e[s + 1] ?? "") === t;) s += 1;
|
|
1900
|
+
let c = n + o, l = n + s;
|
|
1901
|
+
Math.ceil(c / r) * r <= l && i.add(o), s += 1, a = s;
|
|
1902
|
+
}
|
|
1903
|
+
return i;
|
|
1904
|
+
}
|
|
1905
|
+
function $(e, t, n = 0) {
|
|
1906
|
+
return Q(e, t, n).size;
|
|
1907
|
+
}
|
|
1908
|
+
function Ut({ configuredModulo: e, visibleTexts: t, allTexts: n, startAbs: r = 0, isZoomed: i = !1 }) {
|
|
1909
|
+
let a = Math.max(1, Math.trunc(Number(e) || 1));
|
|
1910
|
+
if (!i || !t.length || !n.length) return a;
|
|
1911
|
+
let o = Math.max(1, $(n, a, 0)), s = Math.max(1, Math.round(t.length / o)), c = Math.max(1, t.length), l = /* @__PURE__ */ new Set([
|
|
1912
|
+
1,
|
|
1913
|
+
a,
|
|
1914
|
+
s
|
|
1915
|
+
]);
|
|
1916
|
+
for (let e = -12; e <= 12; e += 1) l.add(Math.max(1, Math.min(c, s + e)));
|
|
1917
|
+
[
|
|
1918
|
+
.5,
|
|
1919
|
+
.75,
|
|
1920
|
+
1.25,
|
|
1921
|
+
1.5,
|
|
1922
|
+
2
|
|
1923
|
+
].forEach((e) => {
|
|
1924
|
+
l.add(Math.max(1, Math.min(c, Math.round(s * e))));
|
|
1925
|
+
});
|
|
1926
|
+
let u = a, d = Infinity, f = Infinity;
|
|
1927
|
+
return l.forEach((e) => {
|
|
1928
|
+
let n = $(t, e, r), i = Math.abs(n - o), a = Math.abs(e - s);
|
|
1929
|
+
(i < d || i === d && a < f) && (u = e, d = i, f = a);
|
|
1930
|
+
}), u;
|
|
1931
|
+
}
|
|
1932
|
+
var Wt = Ht((e, t, n, r, i, a, o, s) => {
|
|
1891
1933
|
if (e) return r.length <= 2 ? r.map((e, t) => ({
|
|
1892
1934
|
text: e,
|
|
1893
1935
|
absoluteIndex: t
|
|
@@ -1899,31 +1941,23 @@ var Vt = $((e, t, n, r, i, a, o, s) => {
|
|
|
1899
1941
|
text: e,
|
|
1900
1942
|
absoluteIndex: t
|
|
1901
1943
|
}));
|
|
1902
|
-
let c =
|
|
1903
|
-
return r.map((e, t) => {
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
absoluteIndex: t
|
|
1908
|
-
};
|
|
1909
|
-
let r = n > 0 ? i[n - 1] ?? "" : null;
|
|
1910
|
-
return {
|
|
1911
|
-
text: n > 0 && e === r ? "" : e,
|
|
1912
|
-
absoluteIndex: t
|
|
1913
|
-
};
|
|
1914
|
-
});
|
|
1944
|
+
let c = Q(r, n, a);
|
|
1945
|
+
return r.map((e, t) => ({
|
|
1946
|
+
text: e && c.has(t) ? e : "",
|
|
1947
|
+
absoluteIndex: t
|
|
1948
|
+
}));
|
|
1915
1949
|
});
|
|
1916
|
-
function
|
|
1950
|
+
function Gt(e) {
|
|
1917
1951
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1918
1952
|
}
|
|
1919
|
-
function
|
|
1953
|
+
function Kt(e) {
|
|
1920
1954
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
1921
1955
|
}
|
|
1922
|
-
function
|
|
1956
|
+
function qt(e) {
|
|
1923
1957
|
if (!e || typeof e != "string") return null;
|
|
1924
|
-
let t = document.createElementNS(
|
|
1925
|
-
t.setAttribute("xmlns",
|
|
1926
|
-
let n = document.createElementNS(
|
|
1958
|
+
let t = document.createElementNS(U, "svg");
|
|
1959
|
+
t.setAttribute("xmlns", U);
|
|
1960
|
+
let n = document.createElementNS(U, "path");
|
|
1927
1961
|
n.setAttribute("d", e), t.appendChild(n);
|
|
1928
1962
|
let r = n.getTotalLength(), i = n.getPointAtLength(r / 2);
|
|
1929
1963
|
return {
|
|
@@ -1931,13 +1965,13 @@ function Wt(e) {
|
|
|
1931
1965
|
y: i.y
|
|
1932
1966
|
};
|
|
1933
1967
|
}
|
|
1934
|
-
function
|
|
1968
|
+
function Jt(e, t = "(", n = ")") {
|
|
1935
1969
|
return `${t}${e}${n}`;
|
|
1936
1970
|
}
|
|
1937
|
-
function
|
|
1971
|
+
function Yt(e, t) {
|
|
1938
1972
|
return t <= 1 ? "0%" : `${e * 100 / (t - 1)}%`;
|
|
1939
1973
|
}
|
|
1940
|
-
function
|
|
1974
|
+
function Xt(e, t, n) {
|
|
1941
1975
|
if (!n || !Number.isFinite(e) || !Number.isFinite(t)) return null;
|
|
1942
1976
|
if (n.createSVGPoint && n.getScreenCTM) {
|
|
1943
1977
|
let r = n.createSVGPoint();
|
|
@@ -1957,10 +1991,10 @@ function qt(e, t, n) {
|
|
|
1957
1991
|
y: r.top + t
|
|
1958
1992
|
};
|
|
1959
1993
|
}
|
|
1960
|
-
function
|
|
1994
|
+
function Zt(e) {
|
|
1961
1995
|
return e != null && Number.isFinite(Number(e));
|
|
1962
1996
|
}
|
|
1963
|
-
function
|
|
1997
|
+
function Qt(e, t = 1) {
|
|
1964
1998
|
if (!e.length) return "";
|
|
1965
1999
|
if (e.length === 1) return `${e[0].x} ${e[0].y}`;
|
|
1966
2000
|
let n = [`${e[0].x} ${e[0].y}`];
|
|
@@ -1976,7 +2010,7 @@ function Yt(e, t = 1) {
|
|
|
1976
2010
|
}
|
|
1977
2011
|
return n.join(" ");
|
|
1978
2012
|
}
|
|
1979
|
-
function
|
|
2013
|
+
function $t(e, t = 1) {
|
|
1980
2014
|
return !e || typeof window > "u" ? Promise.resolve(null) : new Promise((n) => {
|
|
1981
2015
|
let r = new window.Image();
|
|
1982
2016
|
r.onload = () => {
|
|
@@ -1989,16 +2023,16 @@ function Xt(e, t = 1) {
|
|
|
1989
2023
|
}, r.onerror = () => n(null), r.src = e;
|
|
1990
2024
|
});
|
|
1991
2025
|
}
|
|
1992
|
-
function
|
|
2026
|
+
function en(e, t) {
|
|
1993
2027
|
let n = Math.floor(Number(t));
|
|
1994
2028
|
if (!Number.isFinite(n) || n <= 0) return [];
|
|
1995
2029
|
let r = b(e);
|
|
1996
2030
|
return r ? Array.from({ length: n }, (e, t) => A(r, t / n)) : (console.error(`Vue Data Ui - createColorWheel - Invalid starting color: ${r}`), []);
|
|
1997
2031
|
}
|
|
1998
|
-
function
|
|
2032
|
+
function tn(e, t) {
|
|
1999
2033
|
if (!t || !e) return e;
|
|
2000
2034
|
let n = String(e ?? ""), r = Math.max(0, Number(t) || 0);
|
|
2001
2035
|
return n.length > r ? `${n.slice(0, r)}...` : n;
|
|
2002
2036
|
}
|
|
2003
2037
|
//#endregion
|
|
2004
|
-
export {
|
|
2038
|
+
export { Te as $, Vt as $t, _t as A, Z as At, ge as B, mt as Bt, F as C, Le as Ct, Ee as D, lt as Dt, en as E, f as Et, ve as F, be as Ft, W as G, Ot as Gt, yt as H, Yt as Ht, xt as I, y as It, Qe as J, Xt as Jt, Ye as K, Ce as Kt, Et as L, g as Lt, ie as M, i as Mt, Dt as N, we as Nt, ft as O, ut as Ot, _e as P, ze as Pt, Y as Q, Bt as Qt, We as R, Jt as Rt, b as S, Pe as St, Qt as T, Zt as Tt, bt as U, st as Ut, he as V, ot as Vt, Xe as W, A as Wt, Fe as X, tt as Xt, Oe as Y, v as Yt, G as Z, l as Zt, ke as _, et as _t, tn as a, It as at, h as b, at as bt, Wt as c, Ft as ct, fe as d, Nt as dt, Lt as en, jt as et, I as f, Ut as ft, qe as g, _ as gt, xe as h, Ge as ht, it as i, Kt as it, ct as j, De as jt, gt as k, dt as kt, zt as l, Re as lt, pe as m, Je as mt, Ie as n, Be as nt, $e as o, R as ot, L as p, $t as pt, ye as q, nt as qt, de as r, Gt as rt, Pt as s, m as st, U as t, At as tt, me as u, Mt as ut, Ae as v, qt as vt, Ze as w, p as wt, ce as x, Ne as xt, Se as y, se as yt, oe as z, pt as zt };
|