import { g as De } from "./index-KdycyCO9.js";
function He($, J) {
  for (var W = 0; W < J.length; W++) {
    const m = J[W];
    if (typeof m != "string" && !Array.isArray(m)) {
      for (const _ in m)
        if (_ !== "default" && !(_ in $)) {
          const E = Object.getOwnPropertyDescriptor(m, _);
          E && Object.defineProperty($, _, E.get ? E : {
            enumerable: !0,
            get: () => m[_]
          });
        }
    }
  }
  return Object.freeze(Object.defineProperty($, Symbol.toStringTag, { value: "Module" }));
}
var G = { exports: {} }, Te = G.exports, se;
function Ie() {
  return se || (se = 1, function($, J) {
    /**
    * Highcharts JS v12.3.0 (2025-06-21)
    * @module highcharts/modules/funnel
    * @requires highcharts
    *
    * Highcharts funnel module
    *
    * (c) 2010-2025 Torstein Honsi
    *
    * License: www.highcharts.com/license
    */
    (function(W, m) {
      $.exports = m(W._Highcharts, W._Highcharts.SeriesRegistry);
    })(typeof window > "u" ? Te : window, (W, m) => (() => {
      var _ = { 512: (i) => {
        i.exports = m;
      }, 944: (i) => {
        i.exports = W;
      } }, E = {};
      function x(i) {
        var t = E[i];
        if (t !== void 0) return t.exports;
        var o = E[i] = { exports: {} };
        return _[i](o, o.exports, x), o.exports;
      }
      x.n = (i) => {
        var t = i && i.__esModule ? () => i.default : () => i;
        return x.d(t, { a: t }), t;
      }, x.d = (i, t) => {
        for (var o in t) x.o(t, o) && !x.o(i, o) && Object.defineProperty(i, o, { enumerable: !0, get: t[o] });
      }, x.o = (i, t) => Object.prototype.hasOwnProperty.call(i, t);
      var te = {};
      x.d(te, { default: () => je });
      var le = x(944), O = x.n(le);
      let { defaultOptions: Ye } = O(), { noop: Be } = O(), { addEvent: Xe, extend: Ee, isObject: pe, merge: he, relativeLength: Fe } = O(), ce = { radius: 0, scope: "stack", where: void 0 };
      function ue(i, t) {
        return pe(i) || (i = { radius: i || 0 }), he(ce, t, i);
      }
      let fe = { optionsToObject: ue };
      var ge = x(512), U = x.n(ge);
      let { composed: xe, noop: ae } = O(), { column: ye, pie: K } = U().seriesTypes, { addEvent: be, correctFloat: Le, extend: ve, fireEvent: me, isArray: Me, merge: Ae, pick: We, pushUnique: Oe, relativeLength: ie, splat: Pe } = O(), ke = U().series.prototype.alignDataLabel;
      function F(i, t) {
        return /%$/.test(i) ? t * parseInt(i, 10) / 100 : parseInt(i, 10);
      }
      class N extends K {
        alignDataLabel(t, o, r, M, D) {
          let P = t.series, k = P.options.reversed, h = t.dlBox || t.shapeArgs, { align: q, padding: u = 0, verticalAlign: c } = r, H = ((P.options || {}).dataLabels || {}).inside, b = P.center[1], C = t.plotY || 0, T = o.height ?? o.getBBox().height, I = P.getWidthAt((k ? 2 * b - C : C) - h.height / 2 + T), S = c === "middle" ? (h.topWidth - h.bottomWidth) / 4 : (I - h.bottomWidth) / 2, Y = h.y, w = h.x;
          c === "middle" ? Y = h.y - h.height / 2 + T / 2 : c === "top" && (Y = h.y - h.height + T + u), (c === "top" && !k || c === "bottom" && k || c === "middle") && (q === "right" ? w = h.x - u + S : q === "left" && (w = h.x + u - S)), M = { x: w, y: k ? Y - h.height : Y, width: h.bottomWidth, height: h.height }, r.verticalAlign = "bottom", H && (r.distance = void 0), H && t.visible && ke.call(P, t, o, r, M, D), H && (!t.visible && t.dataLabel && (t.dataLabel.placed = !1), t.contrastColor && o.css({ color: t.contrastColor }));
        }
        drawDataLabels() {
          (Pe(this.options.dataLabels || {})[0].inside ? ye : K).prototype.drawDataLabels.call(this);
        }
        getDataLabelPosition(t, o) {
          let r = t.plotY || 0, M = t.half ? 1 : -1, D = this.getX(r, !!t.half, t);
          return { distance: o, natural: { x: 0, y: r }, computed: {}, alignment: t.half ? "right" : "left", connectorPosition: { breakAt: { x: D + (o - 5) * M, y: r }, touchingSliceAt: { x: D + o * M, y: r } } };
        }
        translate() {
          let t = this, o = t.chart, r = t.options, M = r.reversed, D = r.ignoreHiddenPoint, P = fe.optionsToObject(r.borderRadius), k = o.plotWidth, h = o.plotHeight, q = r.center, u = F(q[0], k), c = F(q[1], h), H = F(r.width, k), b = F(r.height, h), C = F(r.neckWidth, k), T = F(r.neckHeight, h), I = c - b / 2 + b - T, S = t.points, Y = ie(P.radius, H), w = P.scope, _e = +(r.dataLabels.position === "left"), z = (s) => {
            let y = Math.tan(s / 2), L = Math.cos(B), j = Math.sin(B), V = Y, e = V / y, g = Math.tan((Math.PI - s) / 3.2104);
            return e > X && (V = (e = X) * y), { dx: [e * L, (e - (g *= V)) * L, e - g, e], dy: [e * j, (e - g) * j, e - g, e].map((ne) => M ? -ne : ne) };
          }, ee = 0, re = 0, R, f, Z, B, X, A, p, v, n, a, l, d;
          for (let s of (t.getWidthAt = function(y) {
            let L = c - b / 2;
            return y > I || b === T ? C : C + (H - C) * (1 - (y - L) / (b - T));
          }, t.getX = function(y, L, j) {
            return u + (L ? -1 : 1) * (t.getWidthAt(M ? 2 * c - y : y) / 2 + (j.dataLabel?.dataLabelPosition?.distance ?? ie(this.options.dataLabels?.distance || 0, H)));
          }, t.center = [u, c, b], t.centerX = u, S)) s.y && s.isValid() && (!D || s.visible !== !1) && (ee += s.y);
          for (let s of S) {
            if (d = null, Z = ee ? s.y / ee : 0, a = (p = c - b / 2 + re * b) + Z * b, v = (A = u - (R = t.getWidthAt(p)) / 2) + R, l = (n = u - (R = t.getWidthAt(a)) / 2) + R, Le(p) >= I ? (A = n = u - C / 2, v = l = u + C / 2) : a > I && (d = a, l = (n = u - (R = t.getWidthAt(I)) / 2) + R, a = I), M && (p = 2 * c - p, a = 2 * c - a, d !== null && (d = 2 * c - d)), Y && (w === "point" || s.index === 0 || s.index === S.length - 1 || d !== null)) {
              let y = Math.abs(a - p), L = v - l, j = l - n, V = Math.sqrt(L * L + y * y);
              B = Math.atan(L !== 0 ? y / L : 1 / 0), X = V / 2, d !== null && (X = Math.min(X, Math.abs(d - a) / 2)), j >= 1 && (X = Math.min(X, j / 2));
              let e = z(B);
              if (f = w === "stack" && s.index !== 0 ? [["M", A, p], ["L", v, p]] : [["M", A + e.dx[0], p + e.dy[0]], ["C", A + e.dx[1], p + e.dy[1], A + e.dx[2], p, A + e.dx[3], p], ["L", v - e.dx[3], p], ["C", v - e.dx[2], p, v - e.dx[1], p + e.dy[1], v - e.dx[0], p + e.dy[0]]], d !== null) {
                let g = z(Math.PI / 2);
                e = z(Math.PI / 2 + B), f.push(["L", l + e.dx[0], a - e.dy[0]], ["C", l + e.dx[1], a - e.dy[1], l, a + e.dy[2], l, a + e.dy[3]]), w === "stack" && s.index !== S.length - 1 ? f.push(["L", l, d], ["L", n, d]) : f.push(["L", l, d - g.dy[3]], ["C", l, d - g.dy[2], l - g.dx[2], d, l - g.dx[3], d], ["L", n + g.dx[3], d], ["C", n + g.dx[2], d, n, d - g.dy[2], n, d - g.dy[3]]), f.push(["L", n, a + e.dy[3]], ["C", n, a + e.dy[2], n - e.dx[1], a - e.dy[1], n - e.dx[0], a - e.dy[0]]);
              } else j >= 1 ? (e = z(Math.PI - B), w === "stack" && s.index === 0 ? f.push(["L", l, a], ["L", n, a]) : f.push(["L", l + e.dx[0], a - e.dy[0]], ["C", l + e.dx[1], a - e.dy[1], l - e.dx[2], a, l - e.dx[3], a], ["L", n + e.dx[3], a], ["C", n + e.dx[2], a, n - e.dx[1], a - e.dy[1], n - e.dx[0], a - e.dy[0]])) : (e = z(Math.PI - 2 * B), f.push(["L", n + e.dx[0], a - e.dy[0]], ["C", n + e.dx[1], a - e.dy[1], n - e.dx[1], a - e.dy[1], n - e.dx[0], a - e.dy[0]]));
            } else f = [["M", A, p], ["L", v, p], ["L", l, a]], d !== null && f.push(["L", l, d], ["L", n, d]), f.push(["L", n, a]);
            f.push(["Z"]), s.shapeType = "path", s.shapeArgs = { d: f }, s.percentage = 100 * Z, s.plotX = u, s.plotY = (p + (d || a)) / 2, s.tooltipPos = [u, s.plotY], s.dlBox = { x: n, y: p, topWidth: v - A, bottomWidth: l - n, height: Math.abs(We(d, a) - p), width: NaN }, s.slice = ae, s.half = _e, s.isValid() && (!D || s.visible !== !1) && (re += Z);
          }
          me(t, "afterTranslate");
        }
        sortByAngle(t) {
          t.sort((o, r) => o.plotY - r.plotY);
        }
      }
      N.defaultOptions = Ae(K.defaultOptions, { animation: !1, borderRadius: 0, center: ["50%", "50%"], width: "90%", neckWidth: "30%", height: "100%", neckHeight: "25%", reversed: !1, size: !0, dataLabels: { connectorWidth: 1, verticalAlign: "middle" }, states: { select: { color: "#cccccc", borderColor: "#000000" } } }), ve(N.prototype, { animate: ae }), function(i) {
        function t() {
          for (let o of this.series) {
            let r = o.options && o.options.dataLabels;
            Me(r) && (r = r[0]), o.is("pie") && o.placeDataLabels && r && !r.inside && o.placeDataLabels();
          }
        }
        i.compose = function(o) {
          Oe(xe, "FunnelSeries") && be(o, "afterHideAllOverlappingLabels", t);
        };
      }(N || (N = {})), U().registerSeriesType("funnel", N);
      let Q = N, { merge: Ce } = O();
      class oe extends Q {
      }
      oe.defaultOptions = Ce(Q.defaultOptions, { neckHeight: "0%", neckWidth: "0%", reversed: !0 }), U().registerSeriesType("pyramid", oe);
      let we = O();
      Q.compose(we.Chart);
      let je = O();
      return te.default;
    })());
  }(G)), G.exports;
}
var de = Ie();
const Se = /* @__PURE__ */ De(de), Re = /* @__PURE__ */ He({
  __proto__: null,
  default: Se
}, [de]);
export {
  Re as f
};
