import { computed as S, ref as j, watch as Oe, onMounted as We, openBlock as r, createElementBlock as i, normalizeClass as be, normalizeStyle as B, createBlock as H, createCommentVNode as y, unref as c, createSlots as Ge, withCtx as I, renderSlot as z, normalizeProps as Y, guardReactiveProps as J, createVNode as Ve, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as P, createTextVNode as Ae, nextTick as Ue, pushScopeId as Ee, popScopeId as He } from "vue";
import { u as Ze, c as we, t as qe, a as Xe, p as K, b as Re, d as Ye, o as Je, e as Q, g as ne, l as A, m as Ce, f as T, X as Ke, s as g, h as ee, i as te, j as Fe, k as L, n as le, q as Qe, r as et } from "./index-DK7qqHGP.js";
import { _ as tt } from "./Title-Cxlu3Etv.js";
import { u as lt, U as ot } from "./usePrinter-Cza87yNE.js";
import st from "./vue-ui-skeleton-CQnYuosp.js";
import { D as at } from "./DataTable-B9SSwFM2.js";
import nt from "./vue-ui-accordion-5C4CP3gA.js";
import { u as Me } from "./useNestedProp-0nRX_rTi.js";
import { _ as rt } from "./PackageVersion-I1_4jcn_.js";
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
  key: 0,
  style: "width:100%;background:transparent"
}, ct = ["xmlns", "viewBox"], ht = ["id"], vt = ["stop-color"], ft = ["stop-color"], pt = ["id"], yt = ["stop-color"], kt = ["stop-color"], gt = ["id"], $t = ["stop-color"], _t = ["stop-color"], mt = ["id"], xt = ["stop-color"], bt = ["stop-color"], wt = ["stop-color"], Ct = { key: 0 }, Ft = ["id"], Mt = ["stop-color"], Pt = ["stop-color"], St = ["id"], jt = ["stop-color"], Tt = ["stop-color"], zt = ["id"], Dt = ["stop-color"], Nt = ["stop-color"], Bt = ["id"], It = /* @__PURE__ */ oe(() => /* @__PURE__ */ u("stop", {
  offset: "0%",
  "stop-color": "#FFFFFF"
}, null, -1)), Lt = /* @__PURE__ */ oe(() => /* @__PURE__ */ u("stop", {
  offset: "100%",
  "stop-color": "#FFFFFF33"
}, null, -1)), Ot = [
  It,
  Lt
], Wt = ["x", "y", "font-size", "font-weight", "fill"], Gt = ["x", "y"], Vt = ["d", "stroke"], At = ["d", "stroke"], Ut = { key: 3 }, Et = { key: 0 }, Ht = ["stroke-dasharray", "d", "stroke", "stroke-width"], Zt = ["stroke-dasharray", "d", "stroke", "stroke-width"], qt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Xt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Rt = { key: 1 }, Yt = ["d", "stroke", "stroke-width", "fill"], Jt = ["d", "stroke", "stroke-width", "fill"], Kt = ["d", "stroke", "stroke-width", "fill"], Qt = { key: 2 }, el = ["d", "fill", "onMouseenter", "onClick"], tl = ["d", "fill", "onMouseenter", "onClick"], ll = ["d", "fill", "onMouseenter", "onClick"], ol = ["d", "onMouseenter", "onClick"], sl = ["d"], al = ["d", "stroke"], nl = ["onClick"], rl = ["stroke", "d"], ul = ["cx", "cy", "fill", "stroke"], il = ["x", "y", "width", "height"], dl = { key: 1 }, cl = ["d", "stroke"], hl = ["d", "fill", "stroke"], vl = ["id"], fl = ["stop-color"], pl = /* @__PURE__ */ oe(() => /* @__PURE__ */ u("stop", {
  offset: "77%",
  "stop-color": "#FFFFFF20"
}, null, -1)), yl = ["stop-color"], kl = ["cx", "cy", "fill"], gl = ["cx", "cy", "fill"], $l = { key: 0 }, _l = ["text-anchor", "x", "y", "fill", "font-size"], ml = ["text-anchor", "x", "y", "fill", "font-size"], xl = { key: 2 }, bl = ["d", "fill", "stroke"], wl = { key: 4 }, Cl = { key: 0 }, Fl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ml = ["stroke-dasharray", "d", "stroke", "stroke-width"], Pl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Sl = ["stroke-dasharray", "d", "stroke", "stroke-width"], jl = ["d", "stroke", "stroke-width", "fill"], Tl = ["d", "stroke", "stroke-width", "fill"], zl = { key: 1 }, Dl = ["onClick"], Nl = ["id"], Bl = ["stop-color"], Il = ["stop-color"], Ll = ["id"], Ol = ["stop-color"], Wl = ["stop-color"], Gl = ["stop-color"], Vl = ["stop-color"], Al = ["stop-color"], Ul = ["onMouseenter", "onClick", "d", "fill"], El = ["onMouseenter", "onClick", "d"], Hl = ["onMouseenter", "onClick", "d", "fill"], Zl = ["onClick"], ql = ["stroke", "d"], Xl = ["cx", "cy", "fill", "stroke"], Rl = ["x", "y", "width", "height"], Yl = { key: 1 }, Jl = ["d", "stroke"], Kl = ["d", "fill", "stroke"], Ql = ["id"], eo = ["stop-color"], to = /* @__PURE__ */ oe(() => /* @__PURE__ */ u("stop", {
  offset: "77%",
  "stop-color": "#FFFFFF20"
}, null, -1)), lo = ["stop-color"], oo = ["cx", "cy", "fill"], so = ["cx", "cy", "fill"], ao = { key: 0 }, no = ["text-anchor", "x", "y", "fill", "font-size"], ro = ["text-anchor", "x", "y", "fill", "font-size"], uo = { key: 2 }, io = ["d", "fill", "stroke"], co = {
  key: 3,
  class: "vue-data-ui-watermark"
}, ho = ["innerHTML"], vo = {
  __name: "vue-ui-3d-bar",
  props: {
    config: {
      type: Object,
      default() {
        return {};
      }
    },
    dataset: {
      type: Object,
      default() {
        return {};
      }
    }
  },
  emits: ["selectDatapoint"],
  setup(U, { expose: Pe, emit: Z }) {
    const $ = U, { vue_ui_3d_bar: Se } = Ze(), q = S(() => !!$.dataset && Object.keys($.dataset).length), x = j(we()), je = j(null), re = j(null), O = j(!1), ue = j(0), ie = j(0), t = S({
      get: () => de(),
      set: (a) => a
    });
    function de() {
      const a = Me({
        userConfig: $.config,
        defaultConfig: Se
      });
      return a.theme ? {
        ...Me({
          userConfig: qe.vue_ui_3d_bar[a.theme] || $.config,
          defaultConfig: a
        }),
        customPalette: Xe[a.theme] || K
      } : a;
    }
    Oe(() => $.config, (a) => {
      t.value = de(), pe(), ue.value += 1, ie.value += 1;
    }, { deep: !0 });
    const { isPrinting: ce, isImaging: he, generatePdf: ve, generateImage: fe } = lt({
      elementId: `3d_bar_${x.value}`,
      fileName: t.value.style.chart.title.text || "vue-ui-3d-bar"
    }), Te = S(() => Re(t.value.customPalette)), X = j({
      showTable: t.value.table.show
    }), F = S(() => $.dataset.series && $.dataset.series.length), o = S(() => ({
      height: t.value.style.chart.box.dimensions.height,
      width: t.value.style.chart.box.dimensions.width,
      absoluteWidth: t.value.style.chart.box.dimensions.width * (F.value ? 2 : 1),
      top: t.value.style.chart.box.dimensions.top,
      bottom: t.value.style.chart.box.dimensions.bottom,
      left: t.value.style.chart.box.dimensions.left,
      right: t.value.style.chart.box.dimensions.right,
      perspective: t.value.style.chart.box.dimensions.perspective
    })), C = S(() => {
      if (F.value) {
        const a = $.dataset.series.map((l) => l.value || 0).reduce((l, n) => l + n, 0), s = $.dataset.series.map((l, n) => ({
          ...l,
          id: we(),
          proportion: (l.value || 0) / a,
          color: Ye(l.color) || Te.value[n] || K[n] || K[n % K.length],
          breakdown: l.breakdown ? l.breakdown.sort((d, k) => k.value - d.value) : null
        })).sort((l, n) => n.value - l.value), e = [];
        let h = 0;
        for (let l = 0; l < s.length; l += 1)
          e.push({
            ...s[l],
            fill: ze(h, s[l].proportion, s[l].breakdown, s[l].color)
          }), h += s[l].proportion;
        return e;
      }
      return null;
    }), D = S(() => ({
      right: `M${o.value.width / 2},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
      left: `M${o.value.width / 2},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
      side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
      topSides: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.width / 2},${o.value.top + o.value.perspective * 2} ${o.value.width - o.value.right},${o.value.top + o.value.perspective}`,
      tubeTop: `M${o.value.left},${o.value.top + o.value.perspective} C ${o.value.left},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top - o.value.perspective / 3} ${o.value.width - o.value.right},${o.value.top + o.value.perspective} C ${o.value.width - o.value.right},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective * 2.3} ${o.value.left},${o.value.top + o.value.perspective}`,
      tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
      tubeRight: `M${o.value.width - o.value.right},${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective}`,
      tubeBottom: `M${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} C ${o.value.width - o.value.right},${o.value.height} ${o.value.left},${o.value.height} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`
    })), G = j(t.value.style.chart.animation.use ? 0 : $.dataset.percentage);
    We(() => {
      pe();
      let a = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
      function h() {
        G.value += s + a, a += e, G.value < $.dataset.percentage ? requestAnimationFrame(h) : G.value = $.dataset.percentage;
      }
      t.value.style.chart.animation.use && (G.value = 0, h());
    });
    function pe() {
      Je($.dataset) ? Q({
        componentName: "VueUi3dBar",
        type: "dataset"
      }) : $.dataset.series ? $.dataset.series.forEach((a, s) => {
        ne({
          datasetObject: a,
          requiredAttributes: ["name", "value"]
        }).forEach((e) => {
          Q({
            componentName: "VueUi3dBar",
            type: "datasetSerieAttribute",
            property: e,
            index: s
          });
        }), a.breakdown && a.breakdown.forEach((e, h) => {
          ne({
            datasetObject: e,
            requiredAttributes: ["name", "value"]
          }).forEach((l) => {
            Q({
              componentName: "VueUi3dBar",
              type: "datasetSerieAttribute",
              property: l,
              index: `${s} - ${h}`
            });
          });
        });
      }) : ne({
        datasetObject: $.dataset,
        requiredAttributes: ["percentage"]
      }).forEach((a) => {
        Q({
          componentName: "VueUi3dBar",
          type: "datasetAttribute",
          property: a
        });
      });
    }
    function ze(a, s, e, h) {
      const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: n, height: d, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a, ae = d - v - p - l * s / 2, Be = ae > o.value.height / 2 ? "top" : "bottom", $e = 64, Ie = !!e;
      let _e = null, me = null;
      return Ie && (e = e.map((xe, Le) => ({
        ...xe,
        value: xe.value || 0,
        color: A(h, Le / e.length)
      })), _e = Ce(
        { series: e },
        n + o.value.absoluteWidth / 4 - 14,
        Be === "top" ? ae - $e : ae + $e,
        28,
        28,
        1.99999,
        2,
        1,
        360,
        105.25,
        14
      ), me = Ce(
        { series: e },
        n - w + 20,
        d - v - p - l * s / 2,
        6,
        6,
        1.99999,
        2,
        1,
        360,
        105.25,
        6
      )), {
        donut: _e,
        miniDonut: me,
        sidePointer: {
          x: n - w,
          y: d - v - p - l * s / 2,
          topY: d - v - p - l * s,
          height: l * s
        },
        apexBottom: { y: d - v, x: n / 2 },
        apexTop: { y: d - v - l * s, x: n / 2 },
        right: `M${n / 2},${d - v} ${n / 2},${d - v - l * s} ${n - w},${d - v - p - l * s} ${n - w},${d - v - p}Z`,
        left: `M${n / 2},${d - v} ${n / 2},${d - v - l * s} ${f}, ${d - v - p - l * s} ${f},${d - v - p}Z`,
        liningTop: `M${f},${d - v - p - l * s} ${n / 2},${d - v - l * s} ${n - w},${d - v - p - l * s}`,
        liningTopShade: `M${f},${d - v - p - l * s - 0.5} ${n / 2},${d - v - l * s - 0.5} ${n - w},${d - v - p - l * s - 0.5}`,
        top: `M${n / 2},${d - v - l * s} ${f},${d - v - p - l * s} ${n / 2},${d - v - p * 2 - l * s} ${n - w},${d - v - p - l * s} Z`,
        tubeTop: `M${f},${d - v - l * s - p} C ${f},${d - v - l * s - p * 2.5} ${n - w},${d - v - l * s - p * 2.5} ${n - w},${d - v - l * s - p} C ${n - w},${d - v - l * s + p / 2} ${f},${d - v - l * s + p / 2} ${f},${d - v - l * s - p}`,
        bottomTubeTop: `M ${n - w - 0.5},${d - v - p} C ${n - w - 0.5},${d - v + p / 2} ${f},${d - v + p / 2} ${f + 0.5},${d - v - p}`,
        tubeBody: `M
        ${f},${d - v - l * s - p} 
        C ${f},${d - v - l * s + p / 2} 
        ${n - w},${d - v - l * s + p / 2} 
        ${n - w},${d - v - l * s - p} 
        L${n - w},${d - v - p}
        C 
        ${n - w},${d - v + p / 2}
        ${f},${d - v + p / 2}
        ${f},${d - v - p}Z`
      };
    }
    const E = S(() => {
      const a = G.value / 100, s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: h, bottom: l, right: n, left: d, perspective: k } = o.value, f = l + s * 0;
      return {
        right: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${e - n},${h - f - k - s * a} ${e - n},${h - f - k}Z`,
        left: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${d}, ${h - f - k - s * a} ${d},${h - f - k}Z`,
        top: `M${e / 2},${h - f - s * a} ${d},${h - f - k - s * a} ${e / 2},${h - f - k * 2 - s * a} ${e - n},${h - f - k - s * a} Z`,
        tubeTop: `M${d},${h - f - s * a - k} C ${d},${h - f - s * a - k * 2.5} ${e - n},${h - f - s * a - k * 2.5} ${e - n},${h - f - s * a - k} C ${e - n},${h - f - s * a + k / 2} ${d},${h - f - s * a + k / 2} ${d},${h - f - s * a - k}`,
        tubeBody: `M
        ${d},${h - f - s * a - k} 
        C ${d},${h - f - s * a + k / 2} 
        ${e - n},${h - f - s * a + k / 2} 
        ${e - n},${h - f - s * a - k} 
        L${e - n},${h - k * 1.5}
        C 
        ${e - n},${h}
        ${d},${h}
        ${d},${h - f - k}Z`
      };
    }), b = j(null);
    function M(a, s = !1) {
      Z("selectDatapoint", a), s || (b.value = a.id), s && O.value && (O.value = !1), s && !O.value && (O.value = !0);
    }
    function W() {
      O.value || (b.value = null);
    }
    function V(a, s, e = !1) {
      const h = $.dataset.series.map((d) => d.value || 0).reduce((d, k) => d + k, 0), l = isNaN(a.value / h) ? 0 : a.value / h * 100, n = isNaN(a.value / ye(s)) ? 0 : a.value / ye(s) * 100;
      return e ? n : l.toFixed(0) + "%";
    }
    function ye(a) {
      return [...a].map((s) => s.value).reduce((s, e) => s + e, 0);
    }
    const se = j(!1);
    function De(a) {
      se.value = a;
    }
    function Ne() {
      return F.value ? C.value : $.dataset.percentage;
    }
    const N = S(() => {
      if (F.value) {
        const a = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((h, l) => ({
          name: h.name,
          color: A(e.color, l / e.breakdown.length)
        }))] : {
          name: e.name,
          color: e.color
        }), s = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((h) => h.value)] : e.value);
        return { head: a, body: s };
      } else
        return null;
    });
    function ke() {
      if (!F.value) {
        console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
        return;
      }
      Ue(() => {
        const a = C.value.map((l) => l.value).reduce((l, n) => l + n, 0), s = N.value.head.map((l, n) => [[
          l.name
        ], [N.value.body[n]], [isNaN(N.value.body[n] / a) ? "-" : N.value.body[n] / a * 100]]), e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), h = Qe(e);
        et({ csvContent: h, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
      });
    }
    const R = S(() => {
      const a = C.value.map((n) => n.value).reduce((n, d) => n + d, 0), s = [
        ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
        T({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
        "100%"
      ], e = N.value.head.map((n, d) => {
        const k = T({ p: t.value.style.chart.legend.prefix, v: N.value.body[d], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
        return [
          {
            color: n.color,
            name: n.name
          },
          k,
          isNaN(N.value.body[d] / a) ? "-" : T({
            v: N.value.body[d] / a * 100,
            s: "%",
            r: t.value.table.td.roundingPercentage
          })
        ];
      }), h = {
        th: {
          backgroundColor: t.value.table.th.backgroundColor,
          color: t.value.table.th.color,
          outline: t.value.table.th.outline
        },
        td: {
          backgroundColor: t.value.table.td.backgroundColor,
          color: t.value.table.td.color,
          outline: t.value.table.td.outline
        },
        breakpoint: t.value.table.responsiveBreakpoint,
        shape: t.value.style.shape === "tube" ? "circle" : "square"
      };
      return {
        colNames: [
          t.value.table.columnNames.series,
          t.value.table.columnNames.value,
          t.value.table.columnNames.percentage
        ],
        head: s,
        body: e,
        config: h
      };
    });
    function ge() {
      X.value.showTable = !X.value.showTable;
    }
    return Pe({
      generateCsv: ke,
      generatePdf: ve,
      generateImage: fe,
      getData: Ne,
      toggleTable: ge
    }), (a, s) => (r(), i("div", {
      ref_key: "bar3dChart",
      ref: re,
      class: be("vue-ui-3d-bar"),
      style: B(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
      id: `3d_bar_${x.value}`
    }, [
      t.value.style.chart.title.text ? (r(), i("div", dt, [
        (r(), H(tt, {
          key: `title_${ue.value}`,
          config: {
            title: {
              cy: "3dBar-div-title",
              ...t.value.style.chart.title
            },
            subtitle: {
              cy: "3dBar-div-subtitle",
              ...t.value.style.chart.title.subtitle
            }
          }
        }, null, 8, ["config"]))
      ])) : y("", !0),
      t.value.userOptions.show && q.value ? (r(), H(ot, {
        key: 1,
        ref_key: "details",
        ref: je,
        backgroundColor: t.value.style.chart.backgroundColor,
        color: t.value.style.chart.color,
        isPrinting: c(ce),
        isImaging: c(he),
        uid: x.value,
        hasPdf: t.value.userOptions.buttons.pdf,
        hasTable: !!F.value && t.value.userOptions.buttons.table,
        hasXls: !!F.value && t.value.userOptions.buttons.csv,
        hasImg: t.value.userOptions.buttons.img,
        hasFullscreen: t.value.userOptions.buttons.fullscreen,
        titles: { ...t.value.userOptions.buttonTitles },
        chartElement: re.value,
        position: t.value.userOptions.position,
        onToggleFullscreen: De,
        onGeneratePdf: c(ve),
        onGenerateCsv: ke,
        onGenerateImage: c(fe),
        onToggleTable: ge
      }, Ge({ _: 2 }, [
        a.$slots.optionPdf ? {
          name: "optionPdf",
          fn: I(() => [
            z(a.$slots, "optionPdf", {}, void 0, !0)
          ]),
          key: "0"
        } : void 0,
        a.$slots.optionCsv ? {
          name: "optionCsv",
          fn: I(() => [
            z(a.$slots, "optionCsv", {}, void 0, !0)
          ]),
          key: "1"
        } : void 0,
        a.$slots.optionImg ? {
          name: "optionImg",
          fn: I(() => [
            z(a.$slots, "optionImg", {}, void 0, !0)
          ]),
          key: "2"
        } : void 0,
        a.$slots.optionTable ? {
          name: "optionTable",
          fn: I(() => [
            z(a.$slots, "optionTable", {}, void 0, !0)
          ]),
          key: "3"
        } : void 0,
        a.$slots.optionFullscreen ? {
          name: "optionFullscreen",
          fn: I(({ toggleFullscreen: e, isFullscreen: h }) => [
            z(a.$slots, "optionFullscreen", Y(J({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
          ]),
          key: "4"
        } : void 0
      ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
      q.value ? (r(), i("svg", {
        key: 2,
        xmlns: c(Ke),
        class: be({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value }),
        viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
        style: B(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
      }, [
        Ve(rt),
        u("defs", null, [
          u("radialGradient", {
            id: `gradient_top${x.value}`
          }, [
            u("stop", {
              offset: "0%",
              "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
            }, null, 8, vt),
            u("stop", {
              offset: "100%",
              "stop-color": t.value.style.chart.bar.color
            }, null, 8, ft)
          ], 8, ht),
          u("radialGradient", {
            id: `gradient_left${x.value}`
          }, [
            u("stop", {
              offset: "0%",
              "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
            }, null, 8, yt),
            u("stop", {
              offset: "100%",
              "stop-color": c(g)(t.value.style.chart.bar.color, 20)
            }, null, 8, kt)
          ], 8, pt),
          u("radialGradient", {
            id: `gradient_right${x.value}`
          }, [
            u("stop", {
              offset: "0%",
              "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
            }, null, 8, $t),
            u("stop", {
              offset: "100%",
              "stop-color": c(g)(t.value.style.chart.bar.color, 20)
            }, null, 8, _t)
          ], 8, gt),
          u("linearGradient", {
            id: `gradient_tube_body${x.value}`,
            x1: "0%",
            y1: "0%",
            x2: "100%",
            y2: "0%"
          }, [
            u("stop", {
              offset: "0%",
              "stop-color": `${t.value.style.chart.bar.color}`
            }, null, 8, xt),
            u("stop", {
              offset: "75%",
              "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
            }, null, 8, bt),
            u("stop", {
              offset: "100%",
              "stop-color": c(g)(t.value.style.chart.bar.color, 40)
            }, null, 8, wt)
          ], 8, mt)
        ]),
        F.value ? (r(), i("defs", Ct, [
          (r(!0), i(_, null, m(C.value, (e) => (r(), i("radialGradient", {
            id: `grad_top_${e.id}`
          }, [
            u("stop", {
              offset: "0%",
              "stop-color": c(g)(c(A)(e.color, 0.5), 80)
            }, null, 8, Mt),
            u("stop", {
              offset: "100%",
              "stop-color": e.color
            }, null, 8, Pt)
          ], 8, Ft))), 256)),
          (r(!0), i(_, null, m(C.value, (e) => (r(), i("linearGradient", {
            id: `grad_left_${e.id}`
          }, [
            u("stop", {
              offset: "0%",
              "stop-color": c(g)(e.color, 80)
            }, null, 8, jt),
            u("stop", {
              offset: "100%",
              "stop-color": c(g)(c(ee)(e.color, 0.5), 100)
            }, null, 8, Tt)
          ], 8, St))), 256)),
          (r(!0), i(_, null, m(C.value, (e) => (r(), i("linearGradient", {
            id: `grad_right_${e.id}`
          }, [
            u("stop", {
              offset: "2%",
              "stop-color": c(g)(c(A)(e.color, 0.5), 100)
            }, null, 8, Dt),
            u("stop", {
              offset: "100%",
              "stop-color": c(g)(e.color, 80)
            }, null, 8, Nt)
          ], 8, zt))), 256)),
          u("linearGradient", {
            x1: "0%",
            y1: "0%",
            x2: "0%",
            y2: "100%",
            id: `vertical_line_${x.value}`
          }, Ot, 8, Bt)
        ])) : y("", !0),
        t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (r(), i("text", {
          key: 1,
          x: o.value.width / 2,
          y: o.value.top - t.value.style.chart.dataLabel.fontSize / 2,
          "font-size": t.value.style.chart.dataLabel.fontSize,
          "font-weight": t.value.style.chart.dataLabel.bold ? "bold" : "normal",
          fill: t.value.style.chart.dataLabel.color,
          "text-anchor": "middle"
        }, P(c(T)({
          v: G.value,
          s: "%",
          r: t.value.style.chart.dataLabel.rounding
        })), 9, Wt)) : y("", !0),
        O.value ? (r(), i("g", {
          key: 2,
          onClick: s[0] || (s[0] = (e) => {
            O.value = !1, b.value = null;
          }),
          "data-html2canvas-ignore": "",
          style: { cursor: "pointer" }
        }, [
          u("rect", {
            x: o.value.width / 2 - 6,
            y: o.value.top - 20,
            height: 12,
            width: 12,
            fill: "transparent"
          }, null, 8, Gt),
          u("path", {
            d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
            stroke: t.value.style.chart.color,
            "stroke-linecap": "round",
            "stroke-width": "1"
          }, null, 8, Vt),
          u("path", {
            d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
            stroke: t.value.style.chart.color,
            "stroke-linecap": "round",
            "stroke-width": "1"
          }, null, 8, At)
        ])) : y("", !0),
        !t.value.style.shape || t.value.style.shape === "bar" ? (r(), i("g", Ut, [
          F.value ? y("", !0) : (r(), i("g", Et, [
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.right,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Ht),
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.left,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Zt),
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.side,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, qt),
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.topSides,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Xt)
          ])),
          F.value ? y("", !0) : (r(), i("g", Rt, [
            u("path", {
              d: E.value.right,
              stroke: t.value.style.chart.bar.stroke,
              "stroke-width": t.value.style.chart.bar.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: `url(#gradient_right${x.value})`
            }, null, 8, Yt),
            u("path", {
              d: E.value.left,
              stroke: t.value.style.chart.bar.stroke,
              "stroke-width": t.value.style.chart.bar.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: `url(#gradient_left${x.value})`
            }, null, 8, Jt),
            u("path", {
              d: E.value.top,
              stroke: t.value.style.chart.bar.stroke,
              "stroke-width": t.value.style.chart.bar.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: `url(#gradient_top${x.value})`
            }, null, 8, Kt)
          ])),
          F.value ? (r(), i("g", Qt, [
            (r(!0), i(_, null, m(C.value, (e, h) => (r(), i("g", {
              style: B(`opacity:${b.value ? b.value === e.id ? 1 : 0.3 : 1}`),
              class: "vue-ui-3d-bar-stack"
            }, [
              u("path", {
                d: e.fill.right,
                fill: `url(#grad_right_${e.id})`,
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W
              }, null, 40, el),
              u("path", {
                d: e.fill.left,
                fill: `url(#grad_left_${e.id})`,
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W
              }, null, 40, tl),
              u("path", {
                d: e.fill.top,
                fill: `url(#grad_top_${e.id})`,
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W
              }, null, 40, ll),
              u("path", {
                d: e.fill.liningTop,
                stroke: "#FFFFFF",
                "stroke-width": "0.5",
                "stroke-linecap": "round",
                fill: "none",
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W
              }, null, 40, ol),
              u("path", {
                d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
                stroke: "#FFFFFF",
                "stroke-width": "0.5",
                "stroke-linecap": "round"
              }, null, 8, sl)
            ], 4))), 256)),
            (r(!0), i(_, null, m(C.value, (e, h) => (r(), i("g", null, [
              h !== C.value.length - 1 ? (r(), i("path", {
                key: 0,
                d: e.fill.liningTopShade,
                stroke: t.value.style.chart.bar.shadeColor,
                "stroke-width": "0.5",
                "stroke-linecap": "round",
                fill: "none",
                style: { "pointer-events": "none" }
              }, null, 8, al)) : y("", !0)
            ]))), 256)),
            (r(!0), i(_, null, m(C.value, (e, h) => (r(), i("g", {
              style: B(`opacity:${b.value ? b.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
              onClick: (l) => Z("selectDatapoint", e)
            }, [
              u("path", {
                stroke: t.value.style.chart.color,
                "stroke-dasharray": "1",
                "stroke-width": "0.5",
                "stroke-linecap": "round",
                d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
              }, null, 8, rl),
              !e.fill.miniDonut || b.value ? (r(), i("circle", {
                key: 0,
                cx: e.fill.sidePointer.x + 20,
                cy: e.fill.sidePointer.y,
                r: 2,
                fill: e.color,
                stroke: t.value.style.chart.backgroundColor
              }, null, 8, ul)) : y("", !0),
              (r(), i("foreignObject", {
                x: e.fill.sidePointer.x + 30,
                y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
                width: o.value.absoluteWidth / 2 - 12,
                height: t.value.style.chart.legend.fontSize * 2,
                style: { overflow: "visible", position: "relative" }
              }, [
                t.value.style.chart.legend.showDefault ? (r(), i("div", {
                  key: 0,
                  style: B(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
                }, P(e.name) + ": " + P(c(T)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })) + " (" + P(c(te)(
                  t.value.style.chart.dataLabel.formatter,
                  e.value,
                  c(T)({
                    p: t.value.style.chart.legend.prefix,
                    v: e.value,
                    s: t.value.style.chart.legend.suffix,
                    r: t.value.style.chart.legend.roundingValue
                  }),
                  { datapoint: e, seriesIndex: h }
                )) + ") ", 5)) : y("", !0),
                z(a.$slots, "legend", Y(J({ datapoint: e, config: t.value, dataset: C.value })), void 0, !0)
              ], 8, il)),
              e.fill.donut && b.value === e.id ? (r(), i("g", dl, [
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("g", null, [
                  V(l, e.fill.donut, !0) > 6 ? (r(), i("path", {
                    key: 0,
                    d: c(Fe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
                    stroke: l.color,
                    class: "vue-ui-donut-arc-path",
                    "stroke-width": "0.5",
                    "stroke-linecap": "round",
                    "stroke-linejoin": "round",
                    fill: "none"
                  }, null, 8, cl)) : y("", !0)
                ]))), 256)),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("path", {
                  class: "vue-ui-donut-arc-path",
                  d: l.arcSlice,
                  fill: `${l.color}`,
                  stroke: t.value.style.chart.backgroundColor,
                  "stroke-width": 1
                }, null, 8, hl))), 256)),
                u("defs", null, [
                  u("radialGradient", {
                    id: `hollow_gradient_${x.value}`
                  }, [
                    u("stop", {
                      offset: "0%",
                      "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
                    }, null, 8, fl),
                    pl,
                    u("stop", {
                      offset: "100%",
                      "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
                    }, null, 8, yl)
                  ], 8, vl)
                ]),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("circle", {
                  class: "vue-ui-donut-arc-path",
                  cx: l.cx,
                  cy: l.cy,
                  r: 28,
                  fill: `url(#hollow_gradient_${x.value})`
                }, null, 8, kl))), 256)),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("circle", {
                  class: "vue-ui-donut-arc-path",
                  cx: l.cx,
                  cy: l.cy,
                  r: 14,
                  fill: t.value.style.chart.backgroundColor
                }, null, 8, gl))), 256)),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("g", null, [
                  V(l, e.fill.donut, !0) > 6 ? (r(), i("g", $l, [
                    u("text", {
                      "text-anchor": c(L)(l, !0, 0).anchor,
                      x: c(L)(l, !0, 2).x,
                      y: c(le)(l, 12, 12),
                      fill: t.value.style.chart.legend.color,
                      "font-size": t.value.style.chart.legend.fontSize / 1.5
                    }, P(V(l, e.fill.donut)) + " (" + P(c(te)(
                      t.value.style.chart.dataLabel.formatter,
                      l.value,
                      c(T)({
                        p: t.value.style.chart.legend.prefix,
                        v: l.value,
                        s: t.value.style.chart.legend.suffix,
                        r: t.value.style.chart.legend.roundingValue
                      }),
                      { datapoint: l, seriesIndex: n }
                    )) + ") ", 9, _l),
                    u("text", {
                      "text-anchor": c(L)(l).anchor,
                      x: c(L)(l, !0, 2).x,
                      y: c(le)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
                      fill: t.value.style.chart.legend.color,
                      "font-size": t.value.style.chart.legend.fontSize / 1.5
                    }, P(l.name), 9, ml)
                  ])) : y("", !0)
                ]))), 256))
              ])) : y("", !0),
              e.fill.miniDonut && !b.value ? (r(), i("g", xl, [
                (r(!0), i(_, null, m(e.fill.miniDonut, (l, n) => (r(), i("path", {
                  class: "vue-ui-donut-arc-path",
                  d: l.arcSlice,
                  fill: `${l.color}`,
                  stroke: t.value.style.chart.backgroundColor,
                  "stroke-width": 0.5
                }, null, 8, bl))), 256))
              ])) : y("", !0)
            ], 12, nl))), 256))
          ])) : y("", !0)
        ])) : y("", !0),
        t.value.style.shape === "tube" ? (r(), i("g", wl, [
          F.value ? y("", !0) : (r(), i("g", Cl, [
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.tubeTop,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Fl),
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.tubeLeft,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Ml),
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.tubeRight,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Pl),
            u("path", {
              "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
              d: D.value.tubeBottom,
              stroke: t.value.style.chart.box.stroke,
              "stroke-width": t.value.style.chart.box.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: "none"
            }, null, 8, Sl),
            u("path", {
              d: E.value.tubeTop,
              stroke: t.value.style.chart.bar.stroke,
              "stroke-width": t.value.style.chart.bar.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: `url(#gradient_top${x.value})`
            }, null, 8, jl),
            u("path", {
              d: E.value.tubeBody,
              stroke: t.value.style.chart.bar.stroke,
              "stroke-width": t.value.style.chart.bar.strokeWidth,
              "stroke-linejoin": "round",
              "stroke-linecap": "round",
              fill: `url(#gradient_tube_body${x.value})`
            }, null, 8, Tl)
          ])),
          F.value ? (r(), i("g", zl, [
            (r(!0), i(_, null, m(C.value, (e, h) => (r(), i("g", {
              style: B(`opacity:${b.value ? b.value === e.id ? 1 : 0.3 : 1}`),
              class: "vue-ui-3d-bar-stack",
              onClick: (l) => Z("selectDatapoint", e)
            }, [
              u("defs", null, [
                u("radialGradient", {
                  id: `gradient_tube_top_${e.id}`,
                  fx: "10%",
                  cy: "55%"
                }, [
                  u("stop", {
                    offset: "0%",
                    "stop-color": c(g)(c(A)(e.color, 0.5), 80)
                  }, null, 8, Bl),
                  u("stop", {
                    offset: "100%",
                    "stop-color": c(g)(c(ee)(e.color, 0.1), 80)
                  }, null, 8, Il)
                ], 8, Nl),
                u("linearGradient", {
                  id: `gradient_tube_body_${e.id}`,
                  x1: "0%",
                  y1: "0%",
                  x2: "100%",
                  y2: "0%"
                }, [
                  u("stop", {
                    offset: "0%",
                    "stop-color": `${e.color}`
                  }, null, 8, Ol),
                  u("stop", {
                    offset: "10%",
                    "stop-color": c(g)(c(ee)(e.color, 0.7), 100)
                  }, null, 8, Wl),
                  u("stop", {
                    offset: "25%",
                    "stop-color": c(g)(c(ee)(e.color, 0.5), 100)
                  }, null, 8, Gl),
                  u("stop", {
                    offset: "75%",
                    "stop-color": c(g)(e.color, 80)
                  }, null, 8, Vl),
                  u("stop", {
                    offset: "100%",
                    "stop-color": c(g)(c(A)(e.color, 0.7), 100)
                  }, null, 8, Al)
                ], 8, Ll)
              ]),
              u("path", {
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W,
                d: e.fill.tubeBody,
                stroke: "#FFFFFF",
                "stroke-width": 0.5,
                "stroke-linejoin": "round",
                "stroke-linecap": "round",
                fill: `url(#gradient_tube_body_${e.id})`
              }, null, 40, Ul),
              h > 0 ? (r(), i("path", {
                key: 0,
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W,
                d: e.fill.bottomTubeTop,
                stroke: "#000000",
                "stroke-width": 0.5,
                "stroke-linejoin": "round",
                "stroke-linecap": "round",
                fill: "none"
              }, null, 40, El)) : y("", !0),
              u("path", {
                onMouseenter: (l) => M(e),
                onClick: (l) => M(e, !0),
                onMouseout: W,
                d: e.fill.tubeTop,
                stroke: "#FFFFFF",
                "stroke-width": 0.5,
                "stroke-linejoin": "round",
                "stroke-linecap": "round",
                fill: `url(#gradient_tube_top_${e.id})`
              }, null, 40, Hl)
            ], 12, Dl))), 256)),
            (r(!0), i(_, null, m(C.value, (e, h) => (r(), i("g", {
              style: B(`opacity:${b.value ? b.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
              onClick: (l) => Z("selectDatapoint", e)
            }, [
              u("path", {
                stroke: t.value.style.chart.color,
                "stroke-dasharray": "1",
                "stroke-width": "0.5",
                "stroke-linecap": "round",
                d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
              }, null, 8, ql),
              !e.fill.miniDonut || b.value ? (r(), i("circle", {
                key: 0,
                cx: e.fill.sidePointer.x + 20,
                cy: e.fill.sidePointer.y,
                r: 2,
                fill: e.color,
                stroke: t.value.style.chart.backgroundColor
              }, null, 8, Xl)) : y("", !0),
              (r(), i("foreignObject", {
                x: e.fill.sidePointer.x + 30,
                y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
                width: o.value.absoluteWidth / 2 - 12,
                height: t.value.style.chart.legend.fontSize * 2,
                style: { overflow: "visible", position: "relative" }
              }, [
                t.value.style.chart.legend.showDefault ? (r(), i("div", {
                  key: 0,
                  style: B(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
                }, P(e.name) + ": " + P(c(T)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })) + " (" + P(c(te)(
                  t.value.style.chart.dataLabel.formatter,
                  e.value,
                  c(T)({
                    p: t.value.style.chart.legend.prefix,
                    v: e.value,
                    s: t.value.style.chart.legend.suffix,
                    r: t.value.style.chart.legend.roundingValue
                  }),
                  { datapoint: e, seriesIndex: h }
                )) + ") ", 5)) : y("", !0),
                z(a.$slots, "legend", Y(J({ datapoint: e, config: t.value, dataset: C.value })), void 0, !0)
              ], 8, Rl)),
              e.fill.donut && b.value === e.id ? (r(), i("g", Yl, [
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("g", null, [
                  V(l, e.fill.donut, !0) > 6 ? (r(), i("path", {
                    key: 0,
                    d: c(Fe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
                    stroke: l.color,
                    class: "vue-ui-donut-arc-path",
                    "stroke-width": "0.5",
                    "stroke-linecap": "round",
                    "stroke-linejoin": "round",
                    fill: "none"
                  }, null, 8, Jl)) : y("", !0)
                ]))), 256)),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("path", {
                  class: "vue-ui-donut-arc-path",
                  d: l.arcSlice,
                  fill: `${l.color}`,
                  stroke: t.value.style.chart.backgroundColor,
                  "stroke-width": 1
                }, null, 8, Kl))), 256)),
                u("defs", null, [
                  u("radialGradient", {
                    id: `hollow_gradient_${x.value}`
                  }, [
                    u("stop", {
                      offset: "0%",
                      "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
                    }, null, 8, eo),
                    to,
                    u("stop", {
                      offset: "100%",
                      "stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
                    }, null, 8, lo)
                  ], 8, Ql)
                ]),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("circle", {
                  class: "vue-ui-donut-arc-path",
                  cx: l.cx,
                  cy: l.cy,
                  r: 28,
                  fill: `url(#hollow_gradient_${x.value})`
                }, null, 8, oo))), 256)),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("circle", {
                  class: "vue-ui-donut-arc-path",
                  cx: l.cx,
                  cy: l.cy,
                  r: 14,
                  fill: t.value.style.chart.backgroundColor
                }, null, 8, so))), 256)),
                (r(!0), i(_, null, m(e.fill.donut, (l, n) => (r(), i("g", null, [
                  V(l, e.fill.donut, !0) > 6 ? (r(), i("g", ao, [
                    u("text", {
                      "text-anchor": c(L)(l, !0, 0).anchor,
                      x: c(L)(l, !0, 2).x,
                      y: c(le)(l, 12, 12),
                      fill: t.value.style.chart.legend.color,
                      "font-size": t.value.style.chart.legend.fontSize / 1.5
                    }, P(V(l, e.fill.donut)) + " (" + P(c(te)(
                      t.value.style.chart.dataLabel.formatter,
                      l.value,
                      c(T)({
                        p: t.value.style.chart.legend.prefix,
                        v: l.value,
                        s: t.value.style.chart.legend.suffix,
                        r: t.value.style.chart.legend.roundingValue
                      }),
                      { datapoint: l, seriesIndex: n }
                    )) + ") ", 9, no),
                    u("text", {
                      "text-anchor": c(L)(l).anchor,
                      x: c(L)(l, !0, 2).x,
                      y: c(le)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
                      fill: t.value.style.chart.legend.color,
                      "font-size": t.value.style.chart.legend.fontSize / 1.5
                    }, P(l.name), 9, ro)
                  ])) : y("", !0)
                ]))), 256))
              ])) : y("", !0),
              e.fill.miniDonut && !b.value ? (r(), i("g", uo, [
                (r(!0), i(_, null, m(e.fill.miniDonut, (l, n) => (r(), i("path", {
                  class: "vue-ui-donut-arc-path",
                  d: l.arcSlice,
                  fill: `${l.color}`,
                  stroke: t.value.style.chart.backgroundColor,
                  "stroke-width": 0.5
                }, null, 8, io))), 256))
              ])) : y("", !0)
            ], 12, Zl))), 256))
          ])) : y("", !0)
        ])) : y("", !0),
        z(a.$slots, "svg", { svg: o.value }, void 0, !0)
      ], 14, ct)) : y("", !0),
      a.$slots.watermark ? (r(), i("div", co, [
        z(a.$slots, "watermark", Y(J({ isPrinting: c(ce) || c(he) })), void 0, !0)
      ])) : y("", !0),
      q.value ? y("", !0) : (r(), H(st, {
        key: 4,
        config: {
          type: "bar3d",
          style: {
            backgroundColor: t.value.style.chart.backgroundColor,
            bar3d: {
              color: "#CCCCCC"
            }
          }
        }
      }, null, 8, ["config"])),
      q.value && F.value ? (r(), H(nt, {
        key: 5,
        hideDetails: "",
        config: {
          open: X.value.showTable,
          maxHeight: 1e4,
          body: {
            backgroundColor: t.value.style.chart.backgroundColor,
            color: t.value.style.chart.color
          },
          head: {
            backgroundColor: t.value.style.chart.backgroundColor,
            color: t.value.style.chart.color
          }
        }
      }, {
        content: I(() => [
          (r(), H(at, {
            key: `table_${ie.value}`,
            colNames: R.value.colNames,
            head: R.value.head,
            body: R.value.body,
            config: R.value.config,
            title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
            onClose: s[1] || (s[1] = (e) => X.value.showTable = !1)
          }, {
            th: I(({ th: e }) => [
              u("div", {
                innerHTML: e,
                style: { display: "flex", "align-items": "center" }
              }, null, 8, ho)
            ]),
            td: I(({ td: e }) => [
              Ae(P(e.name || e), 1)
            ]),
            _: 1
          }, 8, ["colNames", "head", "body", "config", "title"]))
        ]),
        _: 1
      }, 8, ["config"])) : y("", !0)
    ], 12, it));
  }
}, wo = /* @__PURE__ */ ut(vo, [["__scopeId", "data-v-8a60c7c5"]]);
export {
  wo as default
};
