vue-data-ui 3.23.9 → 3.23.11
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 +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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-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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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/types/vue-data-ui.d.ts +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -227,11 +227,11 @@ var v = {
|
|
|
227
227
|
concrete: /* @__PURE__ */ "#4A6A75.#6C94A0.#7DA9B5.#8EBFCA.#9FD4E0.#B0E9F5.#C1FFFF.#5C6B5B.#6D7D6D.#7E8F7E.#8FA290.#A1B5A3.#B2C7B5.#C3DAC8.#D4ECDA.#E6FFF0.#8A9CA5.#9AA7B0.#ABB1BC.#BBCBC7.#CCD6D3.#DEE1DE.#EFECEC.#404C4D.#50605F.#617472.#718885.#829C98.#92B0AB.#A3C4BE.#B3D8D2.#C4EDE5.#D4F1E8.#404C5A.#50606C.#61747E.#718890.#829CA2.#92B0B5".split("."),
|
|
228
228
|
hack: /* @__PURE__ */ "#004C00.#006600.#008000.#009900.#00B300.#00CC00.#00E600.#00FF00.#33FF33.#33E633.#33CC33.#33B333.#339933.#338033.#336633.#334C33.#333333.#00AF19.#19E619.#19CC19.#19B319.#199919.#198019.#196619.#194C19.#193319.#191919.#66FF66.#66E666.#66CC66.#66B366.#669966.#668066.#666666.#4CFF4C.#4CE64C.#4CCC4C.#4CB34C".split("."),
|
|
229
229
|
zen: /* @__PURE__ */ "#B9B99D.#E0CFC3.#DFCA99.#DCB482.#C09E85.#8F837A.#858480.#B0B9A8.#606C5A.#5E5E5E.#4F5B75.#647393.#818EA9.#9FA9BE.#BBC4D3.#DCDFE7.#928A98.#8A9892.#B1A7AD.#C5B8A7.#EBD6CC.#D7E0D2.#E0D2D7.#E0DBD2.#D2E0DB.#DBD2E0.#C1B7A5.#A5AFC1.#E0DBD2.#D2D7E0.#F7EDE2.#97ACB7.#C4CBBC.#C3C5C5.#A0AC94".split(".")
|
|
230
|
-
}, y =
|
|
230
|
+
}, y = Array.from({ length: 101 }, (e, t) => Math.round(t / 100 * 255).toString(16).padStart(2, "0").toUpperCase());
|
|
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 = Ge(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") if (Number.isFinite(t.r) && Number.isFinite(t.g) && Number.isFinite(t.b)) {
|
|
@@ -590,7 +590,7 @@ function ge(e, t = null) {
|
|
|
590
590
|
return t != null && (n.unshift(`${h(e[0].x)},${h(t)}`), n.push(`${h(e.at(-1).x)},${h(t)}`)), n.join(" ");
|
|
591
591
|
}).filter(Boolean).join(";");
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function _e(e) {
|
|
594
594
|
if (e.length < 2) return "0,0";
|
|
595
595
|
let t = e.length - 1, n = [`${h(e[0].x)},${h(e[0].y)}`], r = [], i = [], a = [], o = [];
|
|
596
596
|
for (let n = 0; n < t; n += 1) r[n] = e[n + 1].x - e[n].x, i[n] = e[n + 1].y - e[n].y, a[n] = i[n] / r[n];
|
|
@@ -606,7 +606,7 @@ function I(e) {
|
|
|
606
606
|
}
|
|
607
607
|
return n.join(" ");
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function I(e, t = .2) {
|
|
610
610
|
function n(e, t) {
|
|
611
611
|
let n = t.x - e.x, r = t.y - e.y;
|
|
612
612
|
return {
|
|
@@ -627,30 +627,30 @@ function L(e, t = .2) {
|
|
|
627
627
|
}
|
|
628
628
|
return e.filter((e) => !!e).reduce((e, t, n, r) => n === 0 ? `${h(t.x)},${h(t.y)} ` : `${e} ${i(t, n, r)} `, "");
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function ve() {
|
|
631
631
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
632
632
|
let t = Math.random() * 16 | 0;
|
|
633
633
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function L(e, t = !1, n = 16, r = !1) {
|
|
637
637
|
let i = 0, a = t ? n : 0, o = r ? "center" : "middle";
|
|
638
638
|
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"), {
|
|
639
639
|
x: i,
|
|
640
640
|
anchor: o
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function R(e, t = 16, n = 16) {
|
|
644
644
|
return e.center.endY > e.cy ? e.center.endY + n : e.center.endY < e.cy ? e.center.endY - t : e.center.endY;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function ye({ initX: e, initY: t, offset: n, centerX: r, centerY: i }) {
|
|
647
647
|
let a = Math.atan2(t - i, e - r);
|
|
648
648
|
return {
|
|
649
649
|
x: e + n * Math.cos(a),
|
|
650
650
|
y: t + n * Math.sin(a)
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function z(e) {
|
|
654
654
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
655
655
|
t.setAttribute("d", e);
|
|
656
656
|
let n = t.getTotalLength(), r = 0, i = n, a = n / 2, o = .01;
|
|
@@ -668,23 +668,23 @@ function B(e) {
|
|
|
668
668
|
y: c
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
let { x: l } =
|
|
673
|
-
l > e.cx ? (f =
|
|
671
|
+
function be(e, t = !1, n = 16, r = 16, i = !1, a = !1, o = 0, s = 12, c = !1) {
|
|
672
|
+
let { x: l } = z(e.path), u = `${L(e).x},${R(e, n, r) - 4} `, d = "", f, p;
|
|
673
|
+
l > e.cx ? (f = L(e).x - s, p = R(e, n, r) - 4, d = `${f},${p}`) : (e.cx, f = L(e).x + s, p = R(e, n, r) - 4, d = `${f},${p}`);
|
|
674
674
|
let m = ` ${e.center.endX},${e.center.endY}`;
|
|
675
675
|
return c ? a ? `M${d} Q${d} ${m}` : `M${u} Q${d} ${m}` : `M${a ? "" : u}${d}${m}`;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function xe(e) {
|
|
678
678
|
return ![
|
|
679
679
|
null,
|
|
680
680
|
void 0,
|
|
681
681
|
NaN
|
|
682
682
|
].includes(e);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Se(e, t) {
|
|
685
685
|
return [...e].map((e) => e[t]).reduce((e, t) => e + t, 0);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Ce(e, t = !0, n = !1) {
|
|
688
688
|
if (!e.length) return "M0,0";
|
|
689
689
|
let r = "";
|
|
690
690
|
return e.forEach((e) => {
|
|
@@ -692,33 +692,33 @@ function Se(e, t = !0, n = !1) {
|
|
|
692
692
|
r += `${e.x},${e.y} `;
|
|
693
693
|
}), n ? r.trim() : `M${r}${t ? "Z" : ""}`;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function we({ csvContent: e, title: t = "vue-data-ui" }) {
|
|
696
696
|
let n = encodeURI(e), r = document.createElement("a");
|
|
697
697
|
r.setAttribute("href", n), r.setAttribute("download", `${t}.csv`), document.body.appendChild(r), r.click(), r.remove(), window.URL.revokeObjectURL(n);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Te(e) {
|
|
700
700
|
return `data:text/csv;charset=utf-8,${e.map((e) => e.join(",")).join("\n")}`;
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Ee(e, t) {
|
|
703
703
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
704
704
|
let n = e.replace("#", "");
|
|
705
705
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
706
706
|
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")}`;
|
|
707
707
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function De(e, t) {
|
|
710
710
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
711
711
|
let n = e.replace("#", "");
|
|
712
712
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
713
713
|
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")}`;
|
|
714
714
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function B(e, t) {
|
|
717
717
|
let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
|
|
718
718
|
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;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
let i = r ? t - e :
|
|
720
|
+
function Oe(e, t, n, r = !1) {
|
|
721
|
+
let i = r ? t - e : B(t - e, !1), a = r ? i / (n - 1) : B(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [];
|
|
722
722
|
for (let e = o; e <= s; e += a) c.push(e);
|
|
723
723
|
return {
|
|
724
724
|
min: o,
|
|
@@ -727,8 +727,8 @@ function De(e, t, n, r = !1) {
|
|
|
727
727
|
ticks: c
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
let i = r ? t - e :
|
|
730
|
+
function ke(e, t, n, r = !1) {
|
|
731
|
+
let i = r ? t - e : B(t - e, !1), a = r ? i / (n - 1) : B(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [], l = o;
|
|
732
732
|
for (; l <= s;) l >= e && l <= t && c.push(l), l += a;
|
|
733
733
|
return c[0] !== e && (c[0] = e), c[c.length - 1] !== t && (c[c.length - 1] = t), {
|
|
734
734
|
min: e,
|
|
@@ -737,7 +737,7 @@ function Oe(e, t, n, r = !1) {
|
|
|
737
737
|
ticks: c
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Ae(e) {
|
|
741
741
|
if (typeof e != "string") return console.error("hexColor must be a string"), "#000000ff";
|
|
742
742
|
let t = e.trim();
|
|
743
743
|
if (!t.startsWith("#")) return console.error("hexColor must start with #"), "#000000ff";
|
|
@@ -749,40 +749,40 @@ function ke(e) {
|
|
|
749
749
|
8
|
|
750
750
|
].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");
|
|
751
751
|
}
|
|
752
|
-
var
|
|
753
|
-
let t =
|
|
752
|
+
var V = (e) => {
|
|
753
|
+
let t = Ae(e);
|
|
754
754
|
return {
|
|
755
755
|
r: parseInt(t.substring(1, 3), 16),
|
|
756
756
|
g: parseInt(t.substring(3, 5), 16),
|
|
757
757
|
b: parseInt(t.substring(5, 7), 16),
|
|
758
758
|
a: t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1
|
|
759
759
|
};
|
|
760
|
-
},
|
|
761
|
-
let i =
|
|
760
|
+
}, je = ({ r: e, g: t, b: n, a: r = 1 }) => {
|
|
761
|
+
let i = H(r, 0, 1), a = `#${k(e)}${k(t)}${k(n)}`;
|
|
762
762
|
return i < 1 ? `${a}${k(i * 255)}` : a;
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function H(e, t, n) {
|
|
765
765
|
return Math.min(Math.max(e, t), n);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
let a =
|
|
767
|
+
function Me(e, t, n, r, i) {
|
|
768
|
+
let a = V(e), o = V(t);
|
|
769
769
|
i = Math.min(Math.max(i, n), r);
|
|
770
770
|
let s = (i - n) / (r - n), c = {
|
|
771
771
|
r: Math.round(a.r + (o.r - a.r) * s),
|
|
772
772
|
g: Math.round(a.g + (o.g - a.g) * s),
|
|
773
773
|
b: Math.round(a.b + (o.b - a.b) * s)
|
|
774
774
|
}, l = a.a + (o.a - a.a) * s;
|
|
775
|
-
return
|
|
775
|
+
return je({
|
|
776
776
|
...c,
|
|
777
777
|
a: l
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function Ne({ colors: e, ratio: t }) {
|
|
781
781
|
if (!Array.isArray(e)) throw Error("colors must be an array");
|
|
782
782
|
if (!e.length) throw Error("colors must contain at least 1 hex color");
|
|
783
|
-
let n = (e) => Math.round(
|
|
784
|
-
if (e.length === 1) return r(
|
|
785
|
-
let i =
|
|
783
|
+
let n = (e) => Math.round(H(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(H(i, 0, 1) * 255)}`;
|
|
784
|
+
if (e.length === 1) return r(V(e[0]));
|
|
785
|
+
let i = H(t, 0, 1), a = e.map(V), 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];
|
|
786
786
|
return r({
|
|
787
787
|
r: u.r + (d.r - u.r) * l,
|
|
788
788
|
g: u.g + (d.g - u.g) * l,
|
|
@@ -790,11 +790,11 @@ function Me({ colors: e, ratio: t }) {
|
|
|
790
790
|
a: u.a + (d.a - u.a) * l
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Pe({ p: e = "", v: t, s: n = "", r = 0, space: i = !1, isAnimating: a = !1, regex: o = /[^%]/g, replacement: s = "-", locale: c = null }) {
|
|
794
794
|
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 ?? ""}`;
|
|
795
795
|
return a ? d.replace(o, s) : d;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Fe({ source: e, length: t = 3 }) {
|
|
798
798
|
if (!e && e !== 0) return "";
|
|
799
799
|
e = String(e);
|
|
800
800
|
let n = e.length > 1 ? e.split(" ") : [e];
|
|
@@ -807,22 +807,22 @@ function Pe({ source: e, length: t = 3 }) {
|
|
|
807
807
|
}), e.join().replaceAll(",", "").toUpperCase();
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Ie(e) {
|
|
811
811
|
return !!e && typeof e == "function";
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Le(e) {
|
|
814
814
|
return typeof e.apply(null, arguments) == "string";
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Re(e) {
|
|
817
817
|
return Array.isArray(e) ? e.length === 0 : !e || Object.keys(e).length === 0;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function ze({ componentName: e, type: t, property: n = "", index: i = "", key: a = "", warn: o = !0, debug: s = !0 }) {
|
|
820
820
|
if (!s) return;
|
|
821
821
|
let c = `\n> ${r[t].replace("#COMP#", e).replace("#ATTR#", n).replace("#INDX#", i).replace("#KEY#", a)}\n`;
|
|
822
822
|
if (o) console.warn(c);
|
|
823
823
|
else throw Error(c);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Be({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
826
826
|
let o = [];
|
|
827
827
|
for (let s = 0; s < e; s++) {
|
|
828
828
|
let e = r * s, c = t + n * e, l = c * Math.cos(e) + i, u = c * Math.sin(e) + a;
|
|
@@ -833,7 +833,7 @@ function ze({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
|
833
833
|
}
|
|
834
834
|
return o;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function Ve(e) {
|
|
837
837
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
838
838
|
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);
|
|
839
839
|
return {
|
|
@@ -845,7 +845,7 @@ function Be(e) {
|
|
|
845
845
|
height: i - n || 1
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function He(e) {
|
|
849
849
|
if (!e.length) return "";
|
|
850
850
|
let t = `M${e[0].x} ${e[0].y}`;
|
|
851
851
|
for (let n = 1; n < e.length - 2; n += 2) {
|
|
@@ -854,30 +854,30 @@ function Ve(e) {
|
|
|
854
854
|
}
|
|
855
855
|
return t;
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
let l =
|
|
857
|
+
function Ue({ maxPoints: e, a: t = 6, b: n = 6, angleStep: r = .07, startX: i, startY: a, boxWidth: o, boxHeight: s, padding: c = 12 }) {
|
|
858
|
+
let l = Be({
|
|
859
859
|
points: e,
|
|
860
860
|
a: t,
|
|
861
861
|
b: n,
|
|
862
862
|
angleStep: r,
|
|
863
863
|
startX: 0,
|
|
864
864
|
startY: 0
|
|
865
|
-
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } =
|
|
865
|
+
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } = Ve(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;
|
|
866
866
|
return function(e) {
|
|
867
867
|
let t = Math.max(2, Math.min(Math.round(e), l.length));
|
|
868
|
-
return
|
|
868
|
+
return He(l.slice(0, t).map((e) => ({
|
|
869
869
|
x: e.x * b + x,
|
|
870
870
|
y: e.y * b + S
|
|
871
871
|
})));
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function We({ datasetObject: e, requiredAttributes: t }) {
|
|
875
875
|
let n = [];
|
|
876
876
|
return t.forEach((t) => {
|
|
877
877
|
Object.hasOwn(e, t) || n.push(t);
|
|
878
878
|
}), n;
|
|
879
879
|
}
|
|
880
|
-
var
|
|
880
|
+
var U = {
|
|
881
881
|
ALICEBLUE: "#F0F8FF",
|
|
882
882
|
ANTIQUEWHITE: "#FAEBD7",
|
|
883
883
|
AQUA: "#00FFFF",
|
|
@@ -1020,17 +1020,17 @@ var W = {
|
|
|
1020
1020
|
YELLOWGREEN: "#9ACD32",
|
|
1021
1021
|
REBECCAPURPLE: "#663399"
|
|
1022
1022
|
};
|
|
1023
|
-
function
|
|
1023
|
+
function Ge(t) {
|
|
1024
1024
|
let r = e?.(t) ? n(t) : t;
|
|
1025
1025
|
if (typeof r != "string") return r;
|
|
1026
1026
|
let i = r.trim();
|
|
1027
1027
|
if (i === "" || i[0] === "#") return i;
|
|
1028
1028
|
if (i.toLowerCase() === "transparent") return "#FFFFFF00";
|
|
1029
1029
|
let a = i.toUpperCase(), o = a.replace(/GRAY/g, "GREY");
|
|
1030
|
-
return
|
|
1030
|
+
return U[a] || U[o] || i;
|
|
1031
1031
|
}
|
|
1032
|
-
var
|
|
1033
|
-
function
|
|
1032
|
+
var W = "http://www.w3.org/2000/svg";
|
|
1033
|
+
function Ke(e) {
|
|
1034
1034
|
if (e.length < 2) return 0;
|
|
1035
1035
|
let t = 0, n = 0;
|
|
1036
1036
|
for (let r = 1; r < e.length; r++) {
|
|
@@ -1047,12 +1047,12 @@ function Ge(e) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
return n === 0 ? 0 : t / n;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function G({ content: e, fontSize: t, fill: n, x: r, y: i, translateY: a = !1 }) {
|
|
1051
1051
|
let o = e.split("\n"), s = o.length * t, c = a ? (s - t) / 2 : 0;
|
|
1052
1052
|
return o.map((e, a) => `<tspan x="${r}" y="${i - c + a * t}" fill="${n}">${e}</tspan>`).join("");
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return f(e) ? (
|
|
1054
|
+
function qe(e) {
|
|
1055
|
+
return f(e) ? (G({
|
|
1056
1056
|
content: e,
|
|
1057
1057
|
fontSize: 1,
|
|
1058
1058
|
fill: "",
|
|
@@ -1060,11 +1060,11 @@ function Ke(e) {
|
|
|
1060
1060
|
y: 0
|
|
1061
1061
|
}).match(/<tspan\b/g) || []).length : 1;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Je({ content: e, fontSize: t, fill: n, x: r, autoOffset: i = !1 }) {
|
|
1064
1064
|
let a = e.split("\n"), o = i ? (a.length - 1) * t / 2 : 0;
|
|
1065
1065
|
return a.map((e, i) => `<tspan x="${r}" dy="${i === 0 ? -o : t}" fill="${n}">${e}</tspan>`).join("");
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function Ye({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a }) {
|
|
1068
1068
|
function o(e, t) {
|
|
1069
1069
|
let n = e.split(" "), r = [];
|
|
1070
1070
|
for (let e = 0; e < n.length; e += t) r.push(n.slice(e, e + t).join(" "));
|
|
@@ -1076,10 +1076,10 @@ function Je({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a }) {
|
|
|
1076
1076
|
s += o;
|
|
1077
1077
|
}), s;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Xe(e) {
|
|
1080
1080
|
return e.length ? e.map((e) => b(e)) : [];
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Ze(e, t = null) {
|
|
1083
1083
|
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), {});
|
|
1084
1084
|
return Object.keys(r).map((e) => {
|
|
1085
1085
|
let n = e;
|
|
@@ -1089,7 +1089,7 @@ function Xe(e, t = null) {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function Qe(e) {
|
|
1093
1093
|
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) => ({
|
|
1094
1094
|
...e,
|
|
1095
1095
|
stackRatio: e.stackRatio === void 0 ? i : e.stackRatio
|
|
@@ -1100,7 +1100,7 @@ function Ze(e) {
|
|
|
1100
1100
|
cumulatedStackRatio: o
|
|
1101
1101
|
})), a;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function $e(e) {
|
|
1104
1104
|
function t(e, t, n, r) {
|
|
1105
1105
|
let i = n - e, a = r - t;
|
|
1106
1106
|
return Math.sqrt(i * i + a * a);
|
|
@@ -1148,11 +1148,11 @@ function Qe(e) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
}), c;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function et({ relator: e, adjuster: t, source: n, threshold: r = 0, fallback: i, max: a = 24 }) {
|
|
1152
1152
|
let o = e / (t / n);
|
|
1153
1153
|
return o > a ? a : o < r ? i : o;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function tt(e) {
|
|
1156
1156
|
return e.reduce((e, t) => (t.series.forEach((t, n) => {
|
|
1157
1157
|
![
|
|
1158
1158
|
void 0,
|
|
@@ -1162,7 +1162,7 @@ function et(e) {
|
|
|
1162
1162
|
].includes(t) && !isNaN(t) && (e[n] = (e[n] || 0) + t);
|
|
1163
1163
|
}), e), []);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function nt(e, { value: t, config: n }) {
|
|
1166
1166
|
let r = !1, i = t;
|
|
1167
1167
|
if (typeof e == "function") try {
|
|
1168
1168
|
i = e({
|
|
@@ -1177,17 +1177,17 @@ function tt(e, { value: t, config: n }) {
|
|
|
1177
1177
|
value: i
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
let { isValid: i, value: a } =
|
|
1180
|
+
function rt(e, t, n, r) {
|
|
1181
|
+
let { isValid: i, value: a } = nt(e, {
|
|
1182
1182
|
value: t,
|
|
1183
1183
|
config: r
|
|
1184
1184
|
});
|
|
1185
1185
|
return i ? a : n;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function it(e, t) {
|
|
1188
1188
|
return t.split(".").every((t) => typeof e == "object" && e && t in e ? (e = e[t], !0) : !1);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function at(e, t = [], n = !1) {
|
|
1191
1191
|
function r(e) {
|
|
1192
1192
|
return n && e === null ? null : typeof e == "string" && isNaN(Number(e)) || typeof e == "number" && isFinite(e) ? e : 0;
|
|
1193
1193
|
}
|
|
@@ -1203,10 +1203,10 @@ function it(e, t = [], n = !1) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
return i(e);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function ot(e, t = 100) {
|
|
1207
1207
|
return e.length === 9 ? e.substring(0, 7) + y[t] : e + y[t];
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function st({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
1210
1210
|
let i = 360 / (e.length - +!!r);
|
|
1211
1211
|
return e.map((e, r) => {
|
|
1212
1212
|
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);
|
|
@@ -1225,7 +1225,7 @@ function ot({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function ct({ data: e, threshold: t }) {
|
|
1229
1229
|
if (t >= e.length || t < 3) return e;
|
|
1230
1230
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1231
1231
|
n.push(e[i]);
|
|
@@ -1242,7 +1242,7 @@ function st({ data: e, threshold: t }) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
return n.push(e[e.length - 1]), n;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function lt({ data: e, threshold: t }) {
|
|
1246
1246
|
if (t >= e.length || t < 3) return e;
|
|
1247
1247
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1248
1248
|
n.push(e[i]);
|
|
@@ -1256,7 +1256,7 @@ function ct({ data: e, threshold: t }) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
return n.push(e[e.length - 1]), n;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function ut({ data: e, threshold: t, key: n = "value" }) {
|
|
1260
1260
|
if (t >= e.length || t < 3) return e;
|
|
1261
1261
|
let r = [], i = (e.length - 2) / (t - 2), a = 0;
|
|
1262
1262
|
r.push(e[a]);
|
|
@@ -1270,12 +1270,12 @@ function lt({ data: e, threshold: t, key: n = "value" }) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
return r.push(e[e.length - 1]), r;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function dt({ radius: e, centerX: t, centerY: n, percentage: r }) {
|
|
1274
1274
|
r = Math.max(0, Math.min(1, r));
|
|
1275
1275
|
let i = r * Math.PI;
|
|
1276
1276
|
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();
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function ft({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
1279
1279
|
if (!e || !i) return {
|
|
1280
1280
|
top: 0,
|
|
1281
1281
|
left: 0
|
|
@@ -1288,7 +1288,7 @@ function dt({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
|
1288
1288
|
left: o.x + l
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function pt({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
1292
1292
|
if (!e || !r) return {
|
|
1293
1293
|
top: 0,
|
|
1294
1294
|
left: 0
|
|
@@ -1301,31 +1301,31 @@ function ft({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
|
1301
1301
|
left: o.x + l
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function K(e) {
|
|
1305
1305
|
if (typeof e != "object" || !e) return e;
|
|
1306
1306
|
if (e instanceof Date) return new Date(e.getTime());
|
|
1307
1307
|
if (e instanceof RegExp) return new RegExp(e.source, e.flags);
|
|
1308
1308
|
if (e instanceof Map) {
|
|
1309
1309
|
let t = /* @__PURE__ */ new Map();
|
|
1310
|
-
for (let [n, r] of e.entries()) t.set(n,
|
|
1310
|
+
for (let [n, r] of e.entries()) t.set(n, K(r));
|
|
1311
1311
|
return t;
|
|
1312
1312
|
}
|
|
1313
1313
|
if (e instanceof Set) {
|
|
1314
1314
|
let t = /* @__PURE__ */ new Set();
|
|
1315
|
-
for (let n of e.values()) t.add(
|
|
1315
|
+
for (let n of e.values()) t.add(K(n));
|
|
1316
1316
|
return t;
|
|
1317
1317
|
}
|
|
1318
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
1318
|
+
if (Array.isArray(e)) return e.map((e) => K(e));
|
|
1319
1319
|
let t = {};
|
|
1320
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
1320
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = K(e[n]));
|
|
1321
1321
|
return t;
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function mt(e) {
|
|
1324
1324
|
let t = [], n = [];
|
|
1325
1325
|
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);
|
|
1326
1326
|
return n.length && t.push(n), t;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function ht(e, t) {
|
|
1329
1329
|
let n = e.filter((e) => !!e);
|
|
1330
1330
|
if (!n[0]) return [
|
|
1331
1331
|
-10,
|
|
@@ -1351,7 +1351,7 @@ function mt(e, t) {
|
|
|
1351
1351
|
i.y
|
|
1352
1352
|
].toString();
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function gt(e, t) {
|
|
1355
1355
|
if (!e[0]) return [
|
|
1356
1356
|
-10,
|
|
1357
1357
|
-10,
|
|
@@ -1359,7 +1359,7 @@ function ht(e, t) {
|
|
|
1359
1359
|
-10,
|
|
1360
1360
|
-10
|
|
1361
1361
|
].toString();
|
|
1362
|
-
let n =
|
|
1362
|
+
let n = mt(e);
|
|
1363
1363
|
return n.length ? n.map((e) => {
|
|
1364
1364
|
let n = {
|
|
1365
1365
|
x: e[0].x,
|
|
@@ -1379,37 +1379,37 @@ function ht(e, t) {
|
|
|
1379
1379
|
].toString();
|
|
1380
1380
|
}).join(";") : "";
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function _t(e) {
|
|
1383
1383
|
let t = [], n = [];
|
|
1384
1384
|
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);
|
|
1385
1385
|
return n.length > 1 && t.push(n), t;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function vt(e) {
|
|
1388
1388
|
let t = "", n = !1;
|
|
1389
1389
|
for (let r = 0; r < e.length; r++) {
|
|
1390
1390
|
let i = e[r];
|
|
1391
|
-
if (!
|
|
1391
|
+
if (!Y(i)) continue;
|
|
1392
1392
|
let a = `${h(i.x)},${h(i.y)}`;
|
|
1393
1393
|
if (!n) t += a, n = !0;
|
|
1394
1394
|
else {
|
|
1395
|
-
let n = e[r - 1], i =
|
|
1395
|
+
let n = e[r - 1], i = Y(n) ? "L" : "M";
|
|
1396
1396
|
t += `${i}${a}`;
|
|
1397
1397
|
}
|
|
1398
1398
|
t += " ";
|
|
1399
1399
|
}
|
|
1400
1400
|
return t.trim();
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function q(e) {
|
|
1403
1403
|
let t = Number(e);
|
|
1404
1404
|
return Number.isFinite(t) ? Math.trunc(t) : null;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function J(e) {
|
|
1407
1407
|
return `${h(e.x)},${h(e.y)}`;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function yt(e, t = []) {
|
|
1410
1410
|
let n = Array.isArray(e) ? e : [], r = n.length, i = /* @__PURE__ */ new Set(), a = r - 1;
|
|
1411
1411
|
for (let e of Array.isArray(t) ? t : []) {
|
|
1412
|
-
let t =
|
|
1412
|
+
let t = q(e);
|
|
1413
1413
|
t !== null && (t > 0 && i.add(t - 1), t < a && i.add(t));
|
|
1414
1414
|
}
|
|
1415
1415
|
let o = [], s = [], c = !1, l = !1, u = () => {
|
|
@@ -1420,17 +1420,17 @@ function vt(e, t = []) {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
for (let e = 0; e < r; e += 1) {
|
|
1422
1422
|
let t = n[e];
|
|
1423
|
-
if (!
|
|
1423
|
+
if (!Y(t)) {
|
|
1424
1424
|
u();
|
|
1425
1425
|
continue;
|
|
1426
1426
|
}
|
|
1427
|
-
let r =
|
|
1427
|
+
let r = J(t);
|
|
1428
1428
|
if (!l) {
|
|
1429
1429
|
s = [r], l = !0;
|
|
1430
1430
|
continue;
|
|
1431
1431
|
}
|
|
1432
1432
|
let a = n[e - 1];
|
|
1433
|
-
if (!
|
|
1433
|
+
if (!Y(a)) {
|
|
1434
1434
|
u(), s = [r], l = !0;
|
|
1435
1435
|
continue;
|
|
1436
1436
|
}
|
|
@@ -1440,14 +1440,14 @@ function vt(e, t = []) {
|
|
|
1440
1440
|
continue;
|
|
1441
1441
|
}
|
|
1442
1442
|
if (o !== c) {
|
|
1443
|
-
let e =
|
|
1443
|
+
let e = J(a);
|
|
1444
1444
|
u(), c = o, s = [e, r], l = !0;
|
|
1445
1445
|
} else s.push(r);
|
|
1446
1446
|
}
|
|
1447
1447
|
return u(), o;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
let t =
|
|
1449
|
+
function bt(e) {
|
|
1450
|
+
let t = _t(e);
|
|
1451
1451
|
if (!t.length) return "";
|
|
1452
1452
|
let n = "";
|
|
1453
1453
|
for (let [e, r] of t.entries()) {
|
|
@@ -1468,26 +1468,26 @@ function yt(e) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
return n.trim();
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function Y(e) {
|
|
1472
1472
|
return e != null && e.value != null && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function xt(e, t) {
|
|
1475
1475
|
let n = e - 1, r = /* @__PURE__ */ new Set(), i = Array.isArray(t) ? t : [];
|
|
1476
1476
|
for (let e of i) {
|
|
1477
|
-
let t =
|
|
1477
|
+
let t = q(e);
|
|
1478
1478
|
t !== null && (t > 0 && r.add(t - 1), t < n && r.add(t));
|
|
1479
1479
|
}
|
|
1480
1480
|
return r;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function St(e) {
|
|
1483
1483
|
let t = [], n = [];
|
|
1484
1484
|
for (let r = 0; r < e.length; r += 1) {
|
|
1485
1485
|
let i = e[r];
|
|
1486
|
-
|
|
1486
|
+
Y(i) ? n.push(r) : (n.length > 1 && t.push(n), n = []);
|
|
1487
1487
|
}
|
|
1488
1488
|
return n.length > 1 && t.push(n), t;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Ct(e, t) {
|
|
1491
1491
|
let n = t.map((t) => e[t]), r = n.length - 1, i = [], a = [], o = [], s = [];
|
|
1492
1492
|
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];
|
|
1493
1493
|
s[0] = o[0], s[r] = o[r - 1];
|
|
@@ -1498,11 +1498,11 @@ function St(e, t) {
|
|
|
1498
1498
|
c[e] = `C${h(u)},${h(d)} ${h(f)},${h(p)} ${h(i)},${h(a)}`;
|
|
1499
1499
|
}
|
|
1500
1500
|
return {
|
|
1501
|
-
startCoord:
|
|
1501
|
+
startCoord: J(n[0]),
|
|
1502
1502
|
commands: c
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function wt(e) {
|
|
1506
1506
|
let t = [];
|
|
1507
1507
|
if (!e.length) return t;
|
|
1508
1508
|
let n = 0, r = e[0];
|
|
@@ -1517,21 +1517,21 @@ function Ct(e) {
|
|
|
1517
1517
|
dashed: r
|
|
1518
1518
|
}), t;
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Tt(e, t = []) {
|
|
1521
1521
|
let n = Array.isArray(e) ? e : [];
|
|
1522
1522
|
if (n.length < 2) return [];
|
|
1523
|
-
let r =
|
|
1523
|
+
let r = xt(n.length, t), i = St(n);
|
|
1524
1524
|
if (!i.length) return [];
|
|
1525
1525
|
let a = [];
|
|
1526
1526
|
for (let e of i) {
|
|
1527
|
-
let { startCoord: t, commands: i } =
|
|
1527
|
+
let { startCoord: t, commands: i } = Ct(n, e), o = Array(i.length);
|
|
1528
1528
|
for (let t = 0; t < i.length; t += 1) {
|
|
1529
1529
|
let n = e[t];
|
|
1530
1530
|
o[t] = r.has(n);
|
|
1531
1531
|
}
|
|
1532
|
-
let s =
|
|
1532
|
+
let s = wt(o);
|
|
1533
1533
|
for (let r of s) {
|
|
1534
|
-
let o = r.startEdge, s = `${o === 0 ? t :
|
|
1534
|
+
let o = r.startEdge, s = `${o === 0 ? t : J(n[e[o]])} ${i.slice(r.startEdge, r.endEdge + 1).join(" ")}`.trim();
|
|
1535
1535
|
a.push({
|
|
1536
1536
|
path: s,
|
|
1537
1537
|
dashed: r.dashed
|
|
@@ -1540,7 +1540,7 @@ function wt(e, t = []) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
return a;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Et(e, t, n = !1, r = !0) {
|
|
1544
1544
|
function i(e) {
|
|
1545
1545
|
let t = [], n = [];
|
|
1546
1546
|
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);
|
|
@@ -1565,25 +1565,28 @@ function Tt(e, t, n = !1, r = !0) {
|
|
|
1565
1565
|
return c += ` L${e[n].x},${t} ${r ? "Z" : ""}`, c;
|
|
1566
1566
|
}).filter(Boolean);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Dt(e) {
|
|
1569
1569
|
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}_-]+/gu, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function Ot(e) {
|
|
1572
1572
|
return e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? null : e;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1575
|
-
if (Array.isArray(e)) return e.map(
|
|
1574
|
+
function X(e) {
|
|
1575
|
+
if (Array.isArray(e)) return e.map(X);
|
|
1576
1576
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1577
1577
|
let t = {};
|
|
1578
|
-
for (let n in e) Object.hasOwn(e, n) && (t[n] =
|
|
1579
|
-
return
|
|
1578
|
+
for (let n in e) Object.hasOwn(e, n) && (t[n] = X(e[n]));
|
|
1579
|
+
return Ot(t);
|
|
1580
1580
|
}
|
|
1581
1581
|
return e;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function kt(e) {
|
|
1584
1584
|
return 1 - (1 - e) ** 3;
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function At(e) {
|
|
1587
|
+
return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
|
|
1588
|
+
}
|
|
1589
|
+
function jt({ values: e, config: t = {} }) {
|
|
1587
1590
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = 0, o = 0;
|
|
1588
1591
|
function s(e) {
|
|
1589
1592
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1594,7 +1597,7 @@ function kt({ values: e, config: t = {} }) {
|
|
|
1594
1597
|
for (let t of e) s(t) ? r && n ? c(0) : !r && n && i.push(t) : c(t);
|
|
1595
1598
|
return i;
|
|
1596
1599
|
}
|
|
1597
|
-
function
|
|
1600
|
+
function Mt({ values: e, config: t = {} }) {
|
|
1598
1601
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = [];
|
|
1599
1602
|
function o(e) {
|
|
1600
1603
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1607,7 +1610,7 @@ function At({ values: e, config: t = {} }) {
|
|
|
1607
1610
|
for (let t of e) o(t) ? r && n ? s(0) : !r && n && i.push(t) : s(t);
|
|
1608
1611
|
return i;
|
|
1609
1612
|
}
|
|
1610
|
-
function
|
|
1613
|
+
function Nt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts: i = 200, padding: a = 1 }) {
|
|
1611
1614
|
if (!e || !n) return 0;
|
|
1612
1615
|
let o = n;
|
|
1613
1616
|
e.setAttribute("font-size", o);
|
|
@@ -1617,7 +1620,7 @@ function jt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts
|
|
|
1617
1620
|
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)););
|
|
1618
1621
|
return o < r && (o = 0, e.setAttribute("font-size", o)), o;
|
|
1619
1622
|
}
|
|
1620
|
-
function
|
|
1623
|
+
function Pt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailingZero: r = !0 }) {
|
|
1621
1624
|
if (e === 0) return "0";
|
|
1622
1625
|
let i = Math.abs(e);
|
|
1623
1626
|
if (i >= 1 && typeof n == "function") {
|
|
@@ -1629,26 +1632,26 @@ function Mt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailing
|
|
|
1629
1632
|
let o = e.toFixed(a);
|
|
1630
1633
|
return r && (o = o.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), o;
|
|
1631
1634
|
}
|
|
1632
|
-
function
|
|
1635
|
+
function Ft(e) {
|
|
1633
1636
|
let t = [];
|
|
1634
1637
|
for (let n = 0; n < e; n += 1) t.push(n === 0 ? 0 : n === 1 ? 1 : t[n - 1] + t[n - 2]);
|
|
1635
1638
|
return t;
|
|
1636
1639
|
}
|
|
1637
|
-
function
|
|
1640
|
+
function It(e, t = 20) {
|
|
1638
1641
|
e = e.replace(/[\r\n]+/g, " ");
|
|
1639
1642
|
let n = e.split(" "), r = "", i = "";
|
|
1640
1643
|
for (let e of n) (r + (r ? " " : "") + e).length <= t ? r += (r ? " " : "") + e : (r && (i += (i ? "\n" : "") + r), r = e);
|
|
1641
1644
|
return r && (i += (i ? "\n" : "") + r), i;
|
|
1642
1645
|
}
|
|
1643
|
-
function
|
|
1646
|
+
function Lt(e) {
|
|
1644
1647
|
return e && ![null, void 0].includes(e.value) && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1645
1648
|
}
|
|
1646
|
-
function
|
|
1649
|
+
function Z(e, t) {
|
|
1647
1650
|
if (!Array.isArray(e) || !e.length) return [];
|
|
1648
1651
|
let n = [], r = [], i = () => {
|
|
1649
1652
|
r.length && (n.push(r), r = []);
|
|
1650
1653
|
};
|
|
1651
|
-
for (let n of e)
|
|
1654
|
+
for (let n of e) Lt(n) ? r.push(n) : t && i();
|
|
1652
1655
|
if (i(), !t) {
|
|
1653
1656
|
let e = n.flat();
|
|
1654
1657
|
n.length = 0, e.length && n.push(e);
|
|
@@ -1678,10 +1681,13 @@ function Q(e, t) {
|
|
|
1678
1681
|
}
|
|
1679
1682
|
}), a;
|
|
1680
1683
|
}
|
|
1681
|
-
function
|
|
1684
|
+
function Q(e, t, n) {
|
|
1685
|
+
return e + (t - e) * n;
|
|
1686
|
+
}
|
|
1687
|
+
function Rt(e) {
|
|
1682
1688
|
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 || {};
|
|
1683
1689
|
if (!Array.isArray(t) || !Array.isArray(n) || !t.length || !n.length) return [];
|
|
1684
|
-
let f = s ?
|
|
1690
|
+
let f = s ? Z(t, u) : t, p = c ? Z(n, u) : n, m = (e) => Number.isFinite(e);
|
|
1685
1691
|
function h(e) {
|
|
1686
1692
|
if (!u) return [e.filter((e) => e && m(e.x) && m(e.y))];
|
|
1687
1693
|
let t = [], n = [];
|
|
@@ -1748,17 +1754,14 @@ function It(e) {
|
|
|
1748
1754
|
}
|
|
1749
1755
|
return s;
|
|
1750
1756
|
}
|
|
1751
|
-
function y(e, t
|
|
1752
|
-
return e + n * (t - e);
|
|
1753
|
-
}
|
|
1754
|
-
function b(e, t) {
|
|
1757
|
+
function y(e, t) {
|
|
1755
1758
|
let n = [], r = [], i = Math.min(e.length, t.length);
|
|
1756
1759
|
for (let a = 0; a < i - 1; a += 1) {
|
|
1757
1760
|
let i = e[a], o = e[a + 1], s = t[a], c = t[a + 1];
|
|
1758
1761
|
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;
|
|
1759
1762
|
let l = i.y - s.y, u = o.y - c.y;
|
|
1760
1763
|
if (l > 0 && u < 0 || l < 0 && u > 0) {
|
|
1761
|
-
let e = l / (l - u), t =
|
|
1764
|
+
let e = l / (l - u), t = Q(i.x, o.x, e), a = Q(i.y, o.y, e), s = {
|
|
1762
1765
|
x: t,
|
|
1763
1766
|
y: a,
|
|
1764
1767
|
hole: !1
|
|
@@ -1775,7 +1778,7 @@ function It(e) {
|
|
|
1775
1778
|
B: r
|
|
1776
1779
|
};
|
|
1777
1780
|
}
|
|
1778
|
-
function
|
|
1781
|
+
function b(e, t) {
|
|
1779
1782
|
let n = [], a = Math.min(e.length, t.length);
|
|
1780
1783
|
for (let o = 0; o < a - 1; o += 1) {
|
|
1781
1784
|
let a = e[o], s = e[o + 1], c = t[o], l = t[o + 1];
|
|
@@ -1794,7 +1797,7 @@ function It(e) {
|
|
|
1794
1797
|
}
|
|
1795
1798
|
return n;
|
|
1796
1799
|
}
|
|
1797
|
-
function
|
|
1800
|
+
function x(e, t) {
|
|
1798
1801
|
let n = [], a = Math.min(e.length, t.length);
|
|
1799
1802
|
if (a < 2) return n;
|
|
1800
1803
|
let o = 0;
|
|
@@ -1823,10 +1826,10 @@ function It(e) {
|
|
|
1823
1826
|
}
|
|
1824
1827
|
return n;
|
|
1825
1828
|
}
|
|
1826
|
-
let { A:
|
|
1827
|
-
return d ? S
|
|
1829
|
+
let { A: S, B: C } = y(v(f, !s && a), v(p, !c && o));
|
|
1830
|
+
return d ? x(S, C) : b(S, C);
|
|
1828
1831
|
}
|
|
1829
|
-
function
|
|
1832
|
+
function zt(e, t, n = {}) {
|
|
1830
1833
|
let r = {
|
|
1831
1834
|
bubbles: !0,
|
|
1832
1835
|
cancelable: !0,
|
|
@@ -1861,7 +1864,7 @@ function Lt(e, t, n = {}) {
|
|
|
1861
1864
|
}) : new Event(t, r);
|
|
1862
1865
|
return e.dispatchEvent(o), o;
|
|
1863
1866
|
}
|
|
1864
|
-
function
|
|
1867
|
+
function Bt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {}) {
|
|
1865
1868
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
1866
1869
|
let i = e.style, a = {
|
|
1867
1870
|
width: i.width,
|
|
@@ -1876,14 +1879,14 @@ function Rt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {})
|
|
|
1876
1879
|
});
|
|
1877
1880
|
}, n);
|
|
1878
1881
|
}
|
|
1879
|
-
function
|
|
1882
|
+
function $(e) {
|
|
1880
1883
|
let t = null, n = null;
|
|
1881
1884
|
return (...r) => {
|
|
1882
1885
|
let i = JSON.stringify(r);
|
|
1883
1886
|
return i === t ? n : (t = i, n = e(...r), n);
|
|
1884
1887
|
};
|
|
1885
1888
|
}
|
|
1886
|
-
var
|
|
1889
|
+
var Vt = $((e, t, n, r, i, a, o, s) => {
|
|
1887
1890
|
if (e) return r.length <= 2 ? r.map((e, t) => ({
|
|
1888
1891
|
text: e,
|
|
1889
1892
|
absoluteIndex: t
|
|
@@ -1925,17 +1928,17 @@ var $ = zt((e, t, n, r, i, a, o, s) => {
|
|
|
1925
1928
|
absoluteIndex: t
|
|
1926
1929
|
}));
|
|
1927
1930
|
});
|
|
1928
|
-
function
|
|
1931
|
+
function Ht(e) {
|
|
1929
1932
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1930
1933
|
}
|
|
1931
|
-
function
|
|
1934
|
+
function Ut(e) {
|
|
1932
1935
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
1933
1936
|
}
|
|
1934
|
-
function
|
|
1937
|
+
function Wt(e) {
|
|
1935
1938
|
if (!e || typeof e != "string") return null;
|
|
1936
|
-
let t = document.createElementNS(
|
|
1937
|
-
t.setAttribute("xmlns",
|
|
1938
|
-
let n = document.createElementNS(
|
|
1939
|
+
let t = document.createElementNS(W, "svg");
|
|
1940
|
+
t.setAttribute("xmlns", W);
|
|
1941
|
+
let n = document.createElementNS(W, "path");
|
|
1939
1942
|
n.setAttribute("d", e), t.appendChild(n);
|
|
1940
1943
|
let r = n.getTotalLength(), i = n.getPointAtLength(r / 2);
|
|
1941
1944
|
return {
|
|
@@ -1943,13 +1946,13 @@ function Ht(e) {
|
|
|
1943
1946
|
y: i.y
|
|
1944
1947
|
};
|
|
1945
1948
|
}
|
|
1946
|
-
function
|
|
1949
|
+
function Gt(e, t = "(", n = ")") {
|
|
1947
1950
|
return `${t}${e}${n}`;
|
|
1948
1951
|
}
|
|
1949
|
-
function
|
|
1952
|
+
function Kt(e, t) {
|
|
1950
1953
|
return t <= 1 ? "0%" : `${e * 100 / (t - 1)}%`;
|
|
1951
1954
|
}
|
|
1952
|
-
function
|
|
1955
|
+
function qt(e, t, n) {
|
|
1953
1956
|
if (!n || !Number.isFinite(e) || !Number.isFinite(t)) return null;
|
|
1954
1957
|
if (n.createSVGPoint && n.getScreenCTM) {
|
|
1955
1958
|
let r = n.createSVGPoint();
|
|
@@ -1969,10 +1972,10 @@ function Gt(e, t, n) {
|
|
|
1969
1972
|
y: r.top + t
|
|
1970
1973
|
};
|
|
1971
1974
|
}
|
|
1972
|
-
function
|
|
1975
|
+
function Jt(e) {
|
|
1973
1976
|
return e != null && Number.isFinite(Number(e));
|
|
1974
1977
|
}
|
|
1975
|
-
function
|
|
1978
|
+
function Yt(e, t = 1) {
|
|
1976
1979
|
if (!e.length) return "";
|
|
1977
1980
|
if (e.length === 1) return `${e[0].x} ${e[0].y}`;
|
|
1978
1981
|
let n = [`${e[0].x} ${e[0].y}`];
|
|
@@ -1988,7 +1991,7 @@ function qt(e, t = 1) {
|
|
|
1988
1991
|
}
|
|
1989
1992
|
return n.join(" ");
|
|
1990
1993
|
}
|
|
1991
|
-
function
|
|
1994
|
+
function Xt(e, t = 1) {
|
|
1992
1995
|
return !e || typeof window > "u" ? Promise.resolve(null) : new Promise((n) => {
|
|
1993
1996
|
let r = new window.Image();
|
|
1994
1997
|
r.onload = () => {
|
|
@@ -2001,16 +2004,16 @@ function Jt(e, t = 1) {
|
|
|
2001
2004
|
}, r.onerror = () => n(null), r.src = e;
|
|
2002
2005
|
});
|
|
2003
2006
|
}
|
|
2004
|
-
function
|
|
2007
|
+
function Zt(e, t) {
|
|
2005
2008
|
let n = Math.floor(Number(t));
|
|
2006
2009
|
if (!Number.isFinite(n) || n <= 0) return [];
|
|
2007
2010
|
let r = b(e);
|
|
2008
2011
|
return r ? Array.from({ length: n }, (e, t) => A(r, t / n)) : (console.error(`Vue Data Ui - createColorWheel - Invalid starting color: ${r}`), []);
|
|
2009
2012
|
}
|
|
2010
|
-
function
|
|
2013
|
+
function Qt(e, t) {
|
|
2011
2014
|
if (!t || !e) return e;
|
|
2012
2015
|
let n = String(e ?? ""), r = Math.max(0, Number(t) || 0);
|
|
2013
2016
|
return n.length > r ? `${n.slice(0, r)}...` : n;
|
|
2014
2017
|
}
|
|
2015
2018
|
//#endregion
|
|
2016
|
-
export {
|
|
2019
|
+
export { we as $, It as $t, gt as A, Ee as At, ge as B, at as Bt, F as C, p as Ct, Te as D, lt as Dt, Zt as E, ct as Et, I as F, y as Ft, G, Se as Gt, vt as H, ot as Ht, bt as I, g as It, Ze as J, v as Jt, Je as K, tt as Kt, Tt as L, Gt as Lt, ie as M, Ce as Mt, Et as N, Re as Nt, dt as O, ut as Ot, _e as P, ye as Pt, X as Q, Bt as Qt, Ue as R, ft as Rt, b as S, Ie as St, Yt as T, f as Tt, yt as U, A as Ut, he as V, Kt as Vt, Ye as W, Dt as Wt, Pe as X, l as Xt, De as Y, et as Yt, K as Z, zt as Zt, Oe as _, Wt as _t, Qt as a, Ft as at, h as b, Me as bt, Vt as c, Pt as ct, fe as d, Mt as dt, At as et, L as f, Xt as ft, Ke as g, $e as gt, be as h, _ as ht, rt as i, Ut as it, st as j, i as jt, ht as k, Q as kt, Rt as l, Le as lt, pe as m, We as mt, Fe as n, ze as nt, Qe as o, z as ot, R as p, qe as pt, ve as q, qt, de as r, Ht as rt, Nt as s, m as st, W as t, kt as tt, me as u, jt as ut, ke as v, se as vt, Xe as w, Jt as wt, ce as x, Ne as xt, xe as y, it as yt, oe as z, pt as zt };
|