shadcn-react
Version:
A simple wrapper for shadcn/ui
1,524 lines • 115 kB
JavaScript
import b, { isValidElement as _n, Children as ht, PureComponent as Ke, forwardRef as Ba, useRef as or, useImperativeHandle as Da, useState as Ra, useCallback as Ia, useEffect as Na, useMemo as La, cloneElement as Fa } from "react";
function $n(e) {
var t, r, n = "";
if (typeof e == "string" || typeof e == "number")
n += e;
else if (typeof e == "object")
if (Array.isArray(e)) {
var a = e.length;
for (t = 0; t < a; t++)
e[t] && (r = $n(e[t])) && (n && (n += " "), n += r);
} else
for (r in e)
e[r] && (n && (n += " "), n += r);
return n;
}
function Q() {
for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++)
(e = arguments[r]) && (t = $n(e)) && (n && (n += " "), n += t);
return n;
}
var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function L(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var ka = Array.isArray, H = ka, Ua = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, wn = Ua, Ha = wn, qa = typeof self == "object" && self && self.Object === Object && self, Ga = Ha || qa || Function("return this")(), z = Ga, Wa = z, za = Wa.Symbol, Pe = za, sr = Pe, On = Object.prototype, Ka = On.hasOwnProperty, Ya = On.toString, ge = sr ? sr.toStringTag : void 0;
function Va(e) {
var t = Ka.call(e, ge), r = e[ge];
try {
e[ge] = void 0;
var n = !0;
} catch {
}
var a = Ya.call(e);
return n && (t ? e[ge] = r : delete e[ge]), a;
}
var Xa = Va, Za = Object.prototype, Ja = Za.toString;
function Qa(e) {
return Ja.call(e);
}
var ei = Qa, ur = Pe, ti = Xa, ri = ei, ni = "[object Null]", ai = "[object Undefined]", lr = ur ? ur.toStringTag : void 0;
function ii(e) {
return e == null ? e === void 0 ? ai : ni : lr && lr in Object(e) ? ti(e) : ri(e);
}
var ee = ii;
function oi(e) {
return e != null && typeof e == "object";
}
var te = oi, si = ee, ui = te, li = "[object Symbol]";
function ci(e) {
return typeof e == "symbol" || ui(e) && si(e) == li;
}
var Te = ci, fi = H, pi = Te, yi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, di = /^\w*$/;
function vi(e, t) {
if (fi(e))
return !1;
var r = typeof e;
return r == "number" || r == "symbol" || r == "boolean" || e == null || pi(e) ? !0 : di.test(e) || !yi.test(e) || t != null && e in Object(t);
}
var Ht = vi;
function hi(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
var Y = hi;
const qt = /* @__PURE__ */ L(Y);
var gi = ee, mi = Y, bi = "[object AsyncFunction]", _i = "[object Function]", $i = "[object GeneratorFunction]", wi = "[object Proxy]";
function Oi(e) {
if (!mi(e))
return !1;
var t = gi(e);
return t == _i || t == $i || t == bi || t == wi;
}
var Gt = Oi;
const Re = /* @__PURE__ */ L(Gt);
var Si = z, Pi = Si["__core-js_shared__"], Ti = Pi, ot = Ti, cr = function() {
var e = /[^.]+$/.exec(ot && ot.keys && ot.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}();
function Ei(e) {
return !!cr && cr in e;
}
var Ci = Ei, Ai = Function.prototype, xi = Ai.toString;
function ji(e) {
if (e != null) {
try {
return xi.call(e);
} catch {
}
try {
return e + "";
} catch {
}
}
return "";
}
var Sn = ji, Mi = Gt, Bi = Ci, Di = Y, Ri = Sn, Ii = /[\\^$.*+?()[\]{}|]/g, Ni = /^\[object .+?Constructor\]$/, Li = Function.prototype, Fi = Object.prototype, ki = Li.toString, Ui = Fi.hasOwnProperty, Hi = RegExp(
"^" + ki.call(Ui).replace(Ii, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function qi(e) {
if (!Di(e) || Bi(e))
return !1;
var t = Mi(e) ? Hi : Ni;
return t.test(Ri(e));
}
var Gi = qi;
function Wi(e, t) {
return e == null ? void 0 : e[t];
}
var zi = Wi, Ki = Gi, Yi = zi;
function Vi(e, t) {
var r = Yi(e, t);
return Ki(r) ? r : void 0;
}
var re = Vi, Xi = re, Zi = Xi(Object, "create"), Ye = Zi, fr = Ye;
function Ji() {
this.__data__ = fr ? fr(null) : {}, this.size = 0;
}
var Qi = Ji;
function eo(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0, t;
}
var to = eo, ro = Ye, no = "__lodash_hash_undefined__", ao = Object.prototype, io = ao.hasOwnProperty;
function oo(e) {
var t = this.__data__;
if (ro) {
var r = t[e];
return r === no ? void 0 : r;
}
return io.call(t, e) ? t[e] : void 0;
}
var so = oo, uo = Ye, lo = Object.prototype, co = lo.hasOwnProperty;
function fo(e) {
var t = this.__data__;
return uo ? t[e] !== void 0 : co.call(t, e);
}
var po = fo, yo = Ye, vo = "__lodash_hash_undefined__";
function ho(e, t) {
var r = this.__data__;
return this.size += this.has(e) ? 0 : 1, r[e] = yo && t === void 0 ? vo : t, this;
}
var go = ho, mo = Qi, bo = to, _o = so, $o = po, wo = go;
function ce(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
ce.prototype.clear = mo;
ce.prototype.delete = bo;
ce.prototype.get = _o;
ce.prototype.has = $o;
ce.prototype.set = wo;
var Oo = ce;
function So() {
this.__data__ = [], this.size = 0;
}
var Po = So;
function To(e, t) {
return e === t || e !== e && t !== t;
}
var Wt = To, Eo = Wt;
function Co(e, t) {
for (var r = e.length; r--; )
if (Eo(e[r][0], t))
return r;
return -1;
}
var Ve = Co, Ao = Ve, xo = Array.prototype, jo = xo.splice;
function Mo(e) {
var t = this.__data__, r = Ao(t, e);
if (r < 0)
return !1;
var n = t.length - 1;
return r == n ? t.pop() : jo.call(t, r, 1), --this.size, !0;
}
var Bo = Mo, Do = Ve;
function Ro(e) {
var t = this.__data__, r = Do(t, e);
return r < 0 ? void 0 : t[r][1];
}
var Io = Ro, No = Ve;
function Lo(e) {
return No(this.__data__, e) > -1;
}
var Fo = Lo, ko = Ve;
function Uo(e, t) {
var r = this.__data__, n = ko(r, e);
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
}
var Ho = Uo, qo = Po, Go = Bo, Wo = Io, zo = Fo, Ko = Ho;
function fe(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
fe.prototype.clear = qo;
fe.prototype.delete = Go;
fe.prototype.get = Wo;
fe.prototype.has = zo;
fe.prototype.set = Ko;
var Xe = fe, Yo = re, Vo = z, Xo = Yo(Vo, "Map"), zt = Xo, pr = Oo, Zo = Xe, Jo = zt;
function Qo() {
this.size = 0, this.__data__ = {
hash: new pr(),
map: new (Jo || Zo)(),
string: new pr()
};
}
var es = Qo;
function ts(e) {
var t = typeof e;
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
var rs = ts, ns = rs;
function as(e, t) {
var r = e.__data__;
return ns(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
}
var Ze = as, is = Ze;
function os(e) {
var t = is(this, e).delete(e);
return this.size -= t ? 1 : 0, t;
}
var ss = os, us = Ze;
function ls(e) {
return us(this, e).get(e);
}
var cs = ls, fs = Ze;
function ps(e) {
return fs(this, e).has(e);
}
var ys = ps, ds = Ze;
function vs(e, t) {
var r = ds(this, e), n = r.size;
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
}
var hs = vs, gs = es, ms = ss, bs = cs, _s = ys, $s = hs;
function pe(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
pe.prototype.clear = gs;
pe.prototype.delete = ms;
pe.prototype.get = bs;
pe.prototype.has = _s;
pe.prototype.set = $s;
var Kt = pe, Pn = Kt, ws = "Expected a function";
function Yt(e, t) {
if (typeof e != "function" || t != null && typeof t != "function")
throw new TypeError(ws);
var r = function() {
var n = arguments, a = t ? t.apply(this, n) : n[0], i = r.cache;
if (i.has(a))
return i.get(a);
var o = e.apply(this, n);
return r.cache = i.set(a, o) || i, o;
};
return r.cache = new (Yt.Cache || Pn)(), r;
}
Yt.Cache = Pn;
var Tn = Yt;
const Fm = /* @__PURE__ */ L(Tn);
var Os = Tn, Ss = 500;
function Ps(e) {
var t = Os(e, function(n) {
return r.size === Ss && r.clear(), n;
}), r = t.cache;
return t;
}
var Ts = Ps, Es = Ts, Cs = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, As = /\\(\\)?/g, xs = Es(function(e) {
var t = [];
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Cs, function(r, n, a, i) {
t.push(a ? i.replace(As, "$1") : n || r);
}), t;
}), js = xs;
function Ms(e, t) {
for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; )
a[r] = t(e[r], r, e);
return a;
}
var En = Ms, yr = Pe, Bs = En, Ds = H, Rs = Te, Is = 1 / 0, dr = yr ? yr.prototype : void 0, vr = dr ? dr.toString : void 0;
function Cn(e) {
if (typeof e == "string")
return e;
if (Ds(e))
return Bs(e, Cn) + "";
if (Rs(e))
return vr ? vr.call(e) : "";
var t = e + "";
return t == "0" && 1 / e == -Is ? "-0" : t;
}
var Ns = Cn, Ls = Ns;
function Fs(e) {
return e == null ? "" : Ls(e);
}
var An = Fs, ks = H, Us = Ht, Hs = js, qs = An;
function Gs(e, t) {
return ks(e) ? e : Us(e, t) ? [e] : Hs(qs(e));
}
var xn = Gs, Ws = Te, zs = 1 / 0;
function Ks(e) {
if (typeof e == "string" || Ws(e))
return e;
var t = e + "";
return t == "0" && 1 / e == -zs ? "-0" : t;
}
var Je = Ks, Ys = xn, Vs = Je;
function Xs(e, t) {
t = Ys(t, e);
for (var r = 0, n = t.length; e != null && r < n; )
e = e[Vs(t[r++])];
return r && r == n ? e : void 0;
}
var Vt = Xs, Zs = Vt;
function Js(e, t, r) {
var n = e == null ? void 0 : Zs(e, t);
return n === void 0 ? r : n;
}
var jn = Js;
const gt = /* @__PURE__ */ L(jn);
function Qs(e) {
return e == null;
}
var eu = Qs;
const ie = /* @__PURE__ */ L(eu);
var tu = ee, ru = H, nu = te, au = "[object String]";
function iu(e) {
return typeof e == "string" || !ru(e) && nu(e) && tu(e) == au;
}
var ou = iu;
const Qe = /* @__PURE__ */ L(ou);
var mt = { exports: {} }, S = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var hr;
function su() {
return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
function w(v) {
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
v === n || v === l || v === i || v === a || v === p || v === y || typeof v == "object" && v !== null && (v.$$typeof === h || v.$$typeof === d || v.$$typeof === o || v.$$typeof === s || v.$$typeof === c || v.$$typeof === O || v.$$typeof === $ || v.$$typeof === T || v.$$typeof === g);
}
function _(v) {
if (typeof v == "object" && v !== null) {
var it = v.$$typeof;
switch (it) {
case t:
var Ee = v.type;
switch (Ee) {
case u:
case l:
case n:
case i:
case a:
case p:
return Ee;
default:
var ir = Ee && Ee.$$typeof;
switch (ir) {
case s:
case c:
case h:
case d:
case o:
return ir;
default:
return it;
}
}
case r:
return it;
}
}
}
var f = u, m = l, C = s, B = o, G = t, ve = c, ne = n, he = h, D = d, j = r, A = i, x = a, F = p, k = !1;
function ae(v) {
return k || (k = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), U(v) || _(v) === u;
}
function U(v) {
return _(v) === l;
}
function W(v) {
return _(v) === s;
}
function K(v) {
return _(v) === o;
}
function V(v) {
return typeof v == "object" && v !== null && v.$$typeof === t;
}
function Pa(v) {
return _(v) === c;
}
function Ta(v) {
return _(v) === n;
}
function Ea(v) {
return _(v) === h;
}
function Ca(v) {
return _(v) === d;
}
function Aa(v) {
return _(v) === r;
}
function xa(v) {
return _(v) === i;
}
function ja(v) {
return _(v) === a;
}
function Ma(v) {
return _(v) === p;
}
S.AsyncMode = f, S.ConcurrentMode = m, S.ContextConsumer = C, S.ContextProvider = B, S.Element = G, S.ForwardRef = ve, S.Fragment = ne, S.Lazy = he, S.Memo = D, S.Portal = j, S.Profiler = A, S.StrictMode = x, S.Suspense = F, S.isAsyncMode = ae, S.isConcurrentMode = U, S.isContextConsumer = W, S.isContextProvider = K, S.isElement = V, S.isForwardRef = Pa, S.isFragment = Ta, S.isLazy = Ea, S.isMemo = Ca, S.isPortal = Aa, S.isProfiler = xa, S.isStrictMode = ja, S.isSuspense = Ma, S.isValidElementType = w, S.typeOf = _;
}()), S;
}
var P = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var gr;
function uu() {
if (gr)
return P;
gr = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
function w(f) {
if (typeof f == "object" && f !== null) {
var m = f.$$typeof;
switch (m) {
case t:
switch (f = f.type, f) {
case u:
case l:
case n:
case i:
case a:
case p:
return f;
default:
switch (f = f && f.$$typeof, f) {
case s:
case c:
case h:
case d:
case o:
return f;
default:
return m;
}
}
case r:
return m;
}
}
}
function _(f) {
return w(f) === l;
}
return P.AsyncMode = u, P.ConcurrentMode = l, P.ContextConsumer = s, P.ContextProvider = o, P.Element = t, P.ForwardRef = c, P.Fragment = n, P.Lazy = h, P.Memo = d, P.Portal = r, P.Profiler = i, P.StrictMode = a, P.Suspense = p, P.isAsyncMode = function(f) {
return _(f) || w(f) === u;
}, P.isConcurrentMode = _, P.isContextConsumer = function(f) {
return w(f) === s;
}, P.isContextProvider = function(f) {
return w(f) === o;
}, P.isElement = function(f) {
return typeof f == "object" && f !== null && f.$$typeof === t;
}, P.isForwardRef = function(f) {
return w(f) === c;
}, P.isFragment = function(f) {
return w(f) === n;
}, P.isLazy = function(f) {
return w(f) === h;
}, P.isMemo = function(f) {
return w(f) === d;
}, P.isPortal = function(f) {
return w(f) === r;
}, P.isProfiler = function(f) {
return w(f) === i;
}, P.isStrictMode = function(f) {
return w(f) === a;
}, P.isSuspense = function(f) {
return w(f) === p;
}, P.isValidElementType = function(f) {
return typeof f == "string" || typeof f == "function" || f === n || f === l || f === i || f === a || f === p || f === y || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === d || f.$$typeof === o || f.$$typeof === s || f.$$typeof === c || f.$$typeof === O || f.$$typeof === $ || f.$$typeof === T || f.$$typeof === g);
}, P.typeOf = w, P;
}
process.env.NODE_ENV === "production" ? mt.exports = uu() : mt.exports = su();
var bt = mt.exports, lu = ee, cu = te, fu = "[object Number]";
function pu(e) {
return typeof e == "number" || cu(e) && lu(e) == fu;
}
var Mn = pu;
const yu = /* @__PURE__ */ L(Mn);
var du = Mn;
function vu(e) {
return du(e) && e != +e;
}
var hu = vu;
const Bn = /* @__PURE__ */ L(hu);
var km = function(t) {
return t === 0 ? 0 : t > 0 ? 1 : -1;
}, be = function(t) {
return Qe(t) && t.indexOf("%") === t.length - 1;
}, M = function(t) {
return yu(t) && !Bn(t);
}, Ie = function(t) {
return M(t) || Qe(t);
}, gu = 0, Um = function(t) {
var r = ++gu;
return "".concat(t || "").concat(r);
}, Hm = function(t, r) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
if (!M(t) && !Qe(t))
return n;
var i;
if (be(t)) {
var o = t.indexOf("%");
i = r * parseFloat(t.slice(0, o)) / 100;
} else
i = +t;
return Bn(i) && (i = n), a && i > r && (i = r), i;
}, qm = function(t) {
if (!t)
return null;
var r = Object.keys(t);
return r && r.length ? t[r[0]] : null;
}, Gm = function(t) {
if (!Array.isArray(t))
return !1;
for (var r = t.length, n = {}, a = 0; a < r; a++)
if (!n[t[a]])
n[t[a]] = !0;
else
return !0;
return !1;
}, Wm = function(t, r) {
return M(t) && M(r) ? function(n) {
return t + n * (r - t);
} : function() {
return r;
};
};
function zm(e, t, r) {
return !e || !e.length ? null : e.find(function(n) {
return n && (typeof t == "function" ? t(n) : gt(n, t)) === r;
});
}
var Km = function(t) {
if (!t || !t.length)
return null;
for (var r = t.length, n = 0, a = 0, i = 0, o = 0, s = 1 / 0, u = -1 / 0, l = 0, c = 0, p = 0; p < r; p++)
l = t[p].cx || 0, c = t[p].cy || 0, n += l, a += c, i += l * c, o += l * l, s = Math.min(s, l), u = Math.max(u, l);
var y = r * o !== n * n ? (r * i - n * a) / (r * o - n * n) : 0;
return {
xmin: s,
xmax: u,
a: y,
b: (a - y * n) / r
};
};
function mr(e, t) {
for (var r in e)
if ({}.hasOwnProperty.call(e, r) && (!{}.hasOwnProperty.call(t, r) || e[r] !== t[r]))
return !1;
for (var n in t)
if ({}.hasOwnProperty.call(t, n) && !{}.hasOwnProperty.call(e, n))
return !1;
return !0;
}
function _t(e) {
"@babel/helpers - typeof";
return _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, _t(e);
}
var mu = ["viewBox", "children"], bu = [
"aria-activedescendant",
"aria-atomic",
"aria-autocomplete",
"aria-busy",
"aria-checked",
"aria-colcount",
"aria-colindex",
"aria-colspan",
"aria-controls",
"aria-current",
"aria-describedby",
"aria-details",
"aria-disabled",
"aria-errormessage",
"aria-expanded",
"aria-flowto",
"aria-haspopup",
"aria-hidden",
"aria-invalid",
"aria-keyshortcuts",
"aria-label",
"aria-labelledby",
"aria-level",
"aria-live",
"aria-modal",
"aria-multiline",
"aria-multiselectable",
"aria-orientation",
"aria-owns",
"aria-placeholder",
"aria-posinset",
"aria-pressed",
"aria-readonly",
"aria-relevant",
"aria-required",
"aria-roledescription",
"aria-rowcount",
"aria-rowindex",
"aria-rowspan",
"aria-selected",
"aria-setsize",
"aria-sort",
"aria-valuemax",
"aria-valuemin",
"aria-valuenow",
"aria-valuetext",
"className",
"color",
"height",
"id",
"lang",
"max",
"media",
"method",
"min",
"name",
"style",
/*
* removed 'type' SVGElementPropKey because we do not currently use any SVG elements
* that can use it and it conflicts with the recharts prop 'type'
* https://github.com/recharts/recharts/pull/3327
* https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/type
*/
// 'type',
"target",
"width",
"role",
"tabIndex",
"accentHeight",
"accumulate",
"additive",
"alignmentBaseline",
"allowReorder",
"alphabetic",
"amplitude",
"arabicForm",
"ascent",
"attributeName",
"attributeType",
"autoReverse",
"azimuth",
"baseFrequency",
"baselineShift",
"baseProfile",
"bbox",
"begin",
"bias",
"by",
"calcMode",
"capHeight",
"clip",
"clipPath",
"clipPathUnits",
"clipRule",
"colorInterpolation",
"colorInterpolationFilters",
"colorProfile",
"colorRendering",
"contentScriptType",
"contentStyleType",
"cursor",
"cx",
"cy",
"d",
"decelerate",
"descent",
"diffuseConstant",
"direction",
"display",
"divisor",
"dominantBaseline",
"dur",
"dx",
"dy",
"edgeMode",
"elevation",
"enableBackground",
"end",
"exponent",
"externalResourcesRequired",
"fill",
"fillOpacity",
"fillRule",
"filter",
"filterRes",
"filterUnits",
"floodColor",
"floodOpacity",
"focusable",
"fontFamily",
"fontSize",
"fontSizeAdjust",
"fontStretch",
"fontStyle",
"fontVariant",
"fontWeight",
"format",
"from",
"fx",
"fy",
"g1",
"g2",
"glyphName",
"glyphOrientationHorizontal",
"glyphOrientationVertical",
"glyphRef",
"gradientTransform",
"gradientUnits",
"hanging",
"horizAdvX",
"horizOriginX",
"href",
"ideographic",
"imageRendering",
"in2",
"in",
"intercept",
"k1",
"k2",
"k3",
"k4",
"k",
"kernelMatrix",
"kernelUnitLength",
"kerning",
"keyPoints",
"keySplines",
"keyTimes",
"lengthAdjust",
"letterSpacing",
"lightingColor",
"limitingConeAngle",
"local",
"markerEnd",
"markerHeight",
"markerMid",
"markerStart",
"markerUnits",
"markerWidth",
"mask",
"maskContentUnits",
"maskUnits",
"mathematical",
"mode",
"numOctaves",
"offset",
"opacity",
"operator",
"order",
"orient",
"orientation",
"origin",
"overflow",
"overlinePosition",
"overlineThickness",
"paintOrder",
"panose1",
"pathLength",
"patternContentUnits",
"patternTransform",
"patternUnits",
"pointerEvents",
"pointsAtX",
"pointsAtY",
"pointsAtZ",
"preserveAlpha",
"preserveAspectRatio",
"primitiveUnits",
"r",
"radius",
"refX",
"refY",
"renderingIntent",
"repeatCount",
"repeatDur",
"requiredExtensions",
"requiredFeatures",
"restart",
"result",
"rotate",
"rx",
"ry",
"seed",
"shapeRendering",
"slope",
"spacing",
"specularConstant",
"specularExponent",
"speed",
"spreadMethod",
"startOffset",
"stdDeviation",
"stemh",
"stemv",
"stitchTiles",
"stopColor",
"stopOpacity",
"strikethroughPosition",
"strikethroughThickness",
"string",
"stroke",
"strokeDasharray",
"strokeDashoffset",
"strokeLinecap",
"strokeLinejoin",
"strokeMiterlimit",
"strokeOpacity",
"strokeWidth",
"surfaceScale",
"systemLanguage",
"tableValues",
"targetX",
"targetY",
"textAnchor",
"textDecoration",
"textLength",
"textRendering",
"to",
"transform",
"u1",
"u2",
"underlinePosition",
"underlineThickness",
"unicode",
"unicodeBidi",
"unicodeRange",
"unitsPerEm",
"vAlphabetic",
"values",
"vectorEffect",
"version",
"vertAdvY",
"vertOriginX",
"vertOriginY",
"vHanging",
"vIdeographic",
"viewTarget",
"visibility",
"vMathematical",
"widths",
"wordSpacing",
"writingMode",
"x1",
"x2",
"x",
"xChannelSelector",
"xHeight",
"xlinkActuate",
"xlinkArcrole",
"xlinkHref",
"xlinkRole",
"xlinkShow",
"xlinkTitle",
"xlinkType",
"xmlBase",
"xmlLang",
"xmlns",
"xmlnsXlink",
"xmlSpace",
"y1",
"y2",
"y",
"yChannelSelector",
"z",
"zoomAndPan",
"ref",
"key",
"angle"
], br = ["points", "pathLength"], st = {
svg: mu,
polygon: br,
polyline: br
}, Xt = ["dangerouslySetInnerHTML", "onCopy", "onCopyCapture", "onCut", "onCutCapture", "onPaste", "onPasteCapture", "onCompositionEnd", "onCompositionEndCapture", "onCompositionStart", "onCompositionStartCapture", "onCompositionUpdate", "onCompositionUpdateCapture", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onChangeCapture", "onBeforeInput", "onBeforeInputCapture", "onInput", "onInputCapture", "onReset", "onResetCapture", "onSubmit", "onSubmitCapture", "onInvalid", "onInvalidCapture", "onLoad", "onLoadCapture", "onError", "onErrorCapture", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyPressCapture", "onKeyUp", "onKeyUpCapture", "onAbort", "onAbortCapture", "onCanPlay", "onCanPlayCapture", "onCanPlayThrough", "onCanPlayThroughCapture", "onDurationChange", "onDurationChangeCapture", "onEmptied", "onEmptiedCapture", "onEncrypted", "onEncryptedCapture", "onEnded", "onEndedCapture", "onLoadedData", "onLoadedDataCapture", "onLoadedMetadata", "onLoadedMetadataCapture", "onLoadStart", "onLoadStartCapture", "onPause", "onPauseCapture", "onPlay", "onPlayCapture", "onPlaying", "onPlayingCapture", "onProgress", "onProgressCapture", "onRateChange", "onRateChangeCapture", "onSeeked", "onSeekedCapture", "onSeeking", "onSeekingCapture", "onStalled", "onStalledCapture", "onSuspend", "onSuspendCapture", "onTimeUpdate", "onTimeUpdateCapture", "onVolumeChange", "onVolumeChangeCapture", "onWaiting", "onWaitingCapture", "onAuxClick", "onAuxClickCapture", "onClick", "onClickCapture", "onContextMenu", "onContextMenuCapture", "onDoubleClick", "onDoubleClickCapture", "onDrag", "onDragCapture", "onDragEnd", "onDragEndCapture", "onDragEnter", "onDragEnterCapture", "onDragExit", "onDragExitCapture", "onDragLeave", "onDragLeaveCapture", "onDragOver", "onDragOverCapture", "onDragStart", "onDragStartCapture", "onDrop", "onDropCapture", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseMoveCapture", "onMouseOut", "onMouseOutCapture", "onMouseOver", "onMouseOverCapture", "onMouseUp", "onMouseUpCapture", "onSelect", "onSelectCapture", "onTouchCancel", "onTouchCancelCapture", "onTouchEnd", "onTouchEndCapture", "onTouchMove", "onTouchMoveCapture", "onTouchStart", "onTouchStartCapture", "onPointerDown", "onPointerDownCapture", "onPointerMove", "onPointerMoveCapture", "onPointerUp", "onPointerUpCapture", "onPointerCancel", "onPointerCancelCapture", "onPointerEnter", "onPointerEnterCapture", "onPointerLeave", "onPointerLeaveCapture", "onPointerOver", "onPointerOverCapture", "onPointerOut", "onPointerOutCapture", "onGotPointerCapture", "onGotPointerCaptureCapture", "onLostPointerCapture", "onLostPointerCaptureCapture", "onScroll", "onScrollCapture", "onWheel", "onWheelCapture", "onAnimationStart", "onAnimationStartCapture", "onAnimationEnd", "onAnimationEndCapture", "onAnimationIteration", "onAnimationIterationCapture", "onTransitionEnd", "onTransitionEndCapture"], Ym = function(t, r) {
if (!t || typeof t == "function" || typeof t == "boolean")
return null;
var n = t;
if (/* @__PURE__ */ _n(t) && (n = t.props), !qt(n))
return null;
var a = {};
return Object.keys(n).forEach(function(i) {
Xt.includes(i) && (a[i] = r || function(o) {
return n[i](n, o);
});
}), a;
}, _u = function(t, r, n) {
return function(a) {
return t(r, n, a), null;
};
}, $u = function(t, r, n) {
if (!qt(t) || _t(t) !== "object")
return null;
var a = null;
return Object.keys(t).forEach(function(i) {
var o = t[i];
Xt.includes(i) && typeof o == "function" && (a || (a = {}), a[i] = _u(o, r, n));
}), a;
}, wu = ["children"], Ou = ["children"];
function _r(e, t) {
if (e == null)
return {};
var r = Su(e, t), n, a;
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (a = 0; a < i.length; a++)
n = i[a], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
}
return r;
}
function Su(e, t) {
if (e == null)
return {};
var r = {}, n = Object.keys(e), a, i;
for (i = 0; i < n.length; i++)
a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
return r;
}
function $t(e) {
"@babel/helpers - typeof";
return $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, $t(e);
}
var $r = {
click: "onClick",
mousedown: "onMouseDown",
mouseup: "onMouseUp",
mouseover: "onMouseOver",
mousemove: "onMouseMove",
mouseout: "onMouseOut",
mouseenter: "onMouseEnter",
mouseleave: "onMouseLeave",
touchcancel: "onTouchCancel",
touchend: "onTouchEnd",
touchmove: "onTouchMove",
touchstart: "onTouchStart"
}, Ne = function(t) {
return typeof t == "string" ? t : t ? t.displayName || t.name || "Component" : "";
}, wr = null, ut = null, et = function e(t) {
if (t === wr && Array.isArray(ut))
return ut;
var r = [];
return ht.forEach(t, function(n) {
ie(n) || (bt.isFragment(n) ? r = r.concat(e(n.props.children)) : r.push(n));
}), ut = r, wr = t, r;
};
function Pu(e, t) {
var r = [], n = [];
return Array.isArray(t) ? n = t.map(function(a) {
return Ne(a);
}) : n = [Ne(t)], et(e).forEach(function(a) {
var i = gt(a, "type.displayName") || gt(a, "type.name");
n.indexOf(i) !== -1 && r.push(a);
}), r;
}
function Vm(e, t) {
var r = Pu(e, t);
return r && r[0];
}
var Xm = function(t) {
if (!t || !t.props)
return !1;
var r = t.props, n = r.width, a = r.height;
return !(!M(n) || n <= 0 || !M(a) || a <= 0);
}, Tu = ["a", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColormatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-url", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "lineGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tref", "tspan", "use", "view", "vkern"], Dn = function(t) {
return t && t.type && Qe(t.type) && Tu.indexOf(t.type) >= 0;
}, Zm = function(t) {
return t && $t(t) === "object" && "cx" in t && "cy" in t && "r" in t;
}, Eu = function(t, r, n, a) {
var i, o = (i = st == null ? void 0 : st[a]) !== null && i !== void 0 ? i : [];
return !Re(t) && (a && o.includes(r) || bu.includes(r)) || n && Xt.includes(r);
}, Jm = function(t) {
var r = [];
return et(t).forEach(function(n) {
Dn(n) && r.push(n);
}), r;
}, Rn = function(t, r, n) {
if (!t || typeof t == "function" || typeof t == "boolean")
return null;
var a = t;
if (/* @__PURE__ */ _n(t) && (a = t.props), !qt(a))
return null;
var i = {};
return Object.keys(a).forEach(function(o) {
var s;
Eu((s = a) === null || s === void 0 ? void 0 : s[o], o, r, n) && (i[o] = a[o]);
}), i;
}, Cu = function e(t, r) {
if (t === r)
return !0;
var n = ht.count(t);
if (n !== ht.count(r))
return !1;
if (n === 0)
return !0;
if (n === 1)
return Or(Array.isArray(t) ? t[0] : t, Array.isArray(r) ? r[0] : r);
for (var a = 0; a < n; a++) {
var i = t[a], o = r[a];
if (Array.isArray(i) || Array.isArray(o)) {
if (!e(i, o))
return !1;
} else if (!Or(i, o))
return !1;
}
return !0;
}, Or = function(t, r) {
if (ie(t) && ie(r))
return !0;
if (!ie(t) && !ie(r)) {
var n = t.props || {}, a = n.children, i = _r(n, wu), o = r.props || {}, s = o.children, u = _r(o, Ou);
return a && s ? mr(i, u) && Cu(a, s) : !a && !s ? mr(i, u) : !1;
}
return !1;
}, Qm = function(t, r) {
var n = [], a = {};
return et(t).forEach(function(i, o) {
if (Dn(i))
n.push(i);
else if (i) {
var s = Ne(i.type), u = r[s] || {}, l = u.handler, c = u.once;
if (l && (!c || !a[s])) {
var p = l(i, s, o);
n.push(p), a[s] = !0;
}
}
}), n;
}, eb = function(t) {
var r = t && t.type;
return r && $r[r] ? $r[r] : null;
}, tb = function(t, r) {
return et(r).indexOf(t);
}, Au = ["children", "width", "height", "viewBox", "className", "style", "title", "desc"];
function wt() {
return wt = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r)
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
}, wt.apply(this, arguments);
}
function xu(e, t) {
if (e == null)
return {};
var r = ju(e, t), n, a;
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (a = 0; a < i.length; a++)
n = i[a], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
}
return r;
}
function ju(e, t) {
if (e == null)
return {};
var r = {}, n = Object.keys(e), a, i;
for (i = 0; i < n.length; i++)
a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
return r;
}
function Mu(e) {
var t = e.children, r = e.width, n = e.height, a = e.viewBox, i = e.className, o = e.style, s = e.title, u = e.desc, l = xu(e, Au), c = a || {
width: r,
height: n,
x: 0,
y: 0
}, p = Q("recharts-surface", i);
return /* @__PURE__ */ b.createElement("svg", wt({}, Rn(l, !0, "svg"), {
className: p,
width: r,
height: n,
style: o,
viewBox: "".concat(c.x, " ").concat(c.y, " ").concat(c.width, " ").concat(c.height)
}), /* @__PURE__ */ b.createElement("title", null, s), /* @__PURE__ */ b.createElement("desc", null, u), t);
}
var Bu = process.env.NODE_ENV !== "production", Be = function(t, r) {
for (var n = arguments.length, a = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
a[i - 2] = arguments[i];
if (Bu && typeof console < "u" && console.warn && (r === void 0 && console.warn("LogUtils requires an error message argument"), !t))
if (r === void 0)
console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else {
var o = 0;
console.warn(r.replace(/%s/g, function() {
return a[o++];
}));
}
};
function Du(e, t, r) {
var n = -1, a = e.length;
t < 0 && (t = -t > a ? 0 : a + t), r = r > a ? a : r, r < 0 && (r += a), a = t > r ? 0 : r - t >>> 0, t >>>= 0;
for (var i = Array(a); ++n < a; )
i[n] = e[n + t];
return i;
}
var Ru = Du, Iu = Ru;
function Nu(e, t, r) {
var n = e.length;
return r = r === void 0 ? n : r, !t && r >= n ? e : Iu(e, t, r);
}
var Lu = Nu, Fu = "\\ud800-\\udfff", ku = "\\u0300-\\u036f", Uu = "\\ufe20-\\ufe2f", Hu = "\\u20d0-\\u20ff", qu = ku + Uu + Hu, Gu = "\\ufe0e\\ufe0f", Wu = "\\u200d", zu = RegExp("[" + Wu + Fu + qu + Gu + "]");
function Ku(e) {
return zu.test(e);
}
var In = Ku;
function Yu(e) {
return e.split("");
}
var Vu = Yu, Nn = "\\ud800-\\udfff", Xu = "\\u0300-\\u036f", Zu = "\\ufe20-\\ufe2f", Ju = "\\u20d0-\\u20ff", Qu = Xu + Zu + Ju, el = "\\ufe0e\\ufe0f", tl = "[" + Nn + "]", Ot = "[" + Qu + "]", St = "\\ud83c[\\udffb-\\udfff]", rl = "(?:" + Ot + "|" + St + ")", Ln = "[^" + Nn + "]", Fn = "(?:\\ud83c[\\udde6-\\uddff]){2}", kn = "[\\ud800-\\udbff][\\udc00-\\udfff]", nl = "\\u200d", Un = rl + "?", Hn = "[" + el + "]?", al = "(?:" + nl + "(?:" + [Ln, Fn, kn].join("|") + ")" + Hn + Un + ")*", il = Hn + Un + al, ol = "(?:" + [Ln + Ot + "?", Ot, Fn, kn, tl].join("|") + ")", sl = RegExp(St + "(?=" + St + ")|" + ol + il, "g");
function ul(e) {
return e.match(sl) || [];
}
var ll = ul, cl = Vu, fl = In, pl = ll;
function yl(e) {
return fl(e) ? pl(e) : cl(e);
}
var dl = yl, vl = Lu, hl = In, gl = dl, ml = An;
function bl(e) {
return function(t) {
t = ml(t);
var r = hl(t) ? gl(t) : void 0, n = r ? r[0] : t.charAt(0), a = r ? vl(r, 1).join("") : t.slice(1);
return n[e]() + a;
};
}
var _l = bl, $l = _l, wl = $l("toUpperCase"), Ol = wl;
const qn = /* @__PURE__ */ L(Ol);
function Ae(e) {
return function() {
return e;
};
}
const Gn = Math.cos, Le = Math.sin, q = Math.sqrt, Fe = Math.PI, tt = 2 * Fe, Pt = Math.PI, Tt = 2 * Pt, Z = 1e-6, Sl = Tt - Z;
function Wn(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t)
this._ += arguments[t] + e[t];
}
function Pl(e) {
let t = Math.floor(e);
if (!(t >= 0))
throw new Error(`invalid digits: ${e}`);
if (t > 15)
return Wn;
const r = 10 ** t;
return function(n) {
this._ += n[0];
for (let a = 1, i = n.length; a < i; ++a)
this._ += Math.round(arguments[a] * r) / r + n[a];
};
}
class Tl {
constructor(t) {
this._x0 = this._y0 = // start of current subpath
this._x1 = this._y1 = null, this._ = "", this._append = t == null ? Wn : Pl(t);
}
moveTo(t, r) {
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +r}`;
}
closePath() {
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
}
lineTo(t, r) {
this._append`L${this._x1 = +t},${this._y1 = +r}`;
}
quadraticCurveTo(t, r, n, a) {
this._append`Q${+t},${+r},${this._x1 = +n},${this._y1 = +a}`;
}
bezierCurveTo(t, r, n, a, i, o) {
this._append`C${+t},${+r},${+n},${+a},${this._x1 = +i},${this._y1 = +o}`;
}
arcTo(t, r, n, a, i) {
if (t = +t, r = +r, n = +n, a = +a, i = +i, i < 0)
throw new Error(`negative radius: ${i}`);
let o = this._x1, s = this._y1, u = n - t, l = a - r, c = o - t, p = s - r, y = c * c + p * p;
if (this._x1 === null)
this._append`M${this._x1 = t},${this._y1 = r}`;
else if (y > Z)
if (!(Math.abs(p * u - l * c) > Z) || !i)
this._append`L${this._x1 = t},${this._y1 = r}`;
else {
let d = n - o, h = a - s, g = u * u + l * l, O = d * d + h * h, $ = Math.sqrt(g), T = Math.sqrt(y), w = i * Math.tan((Pt - Math.acos((g + y - O) / (2 * $ * T))) / 2), _ = w / T, f = w / $;
Math.abs(_ - 1) > Z && this._append`L${t + _ * c},${r + _ * p}`, this._append`A${i},${i},0,0,${+(p * d > c * h)},${this._x1 = t + f * u},${this._y1 = r + f * l}`;
}
}
arc(t, r, n, a, i, o) {
if (t = +t, r = +r, n = +n, o = !!o, n < 0)
throw new Error(`negative radius: ${n}`);
let s = n * Math.cos(a), u = n * Math.sin(a), l = t + s, c = r + u, p = 1 ^ o, y = o ? a - i : i - a;
this._x1 === null ? this._append`M${l},${c}` : (Math.abs(this._x1 - l) > Z || Math.abs(this._y1 - c) > Z) && this._append`L${l},${c}`, n && (y < 0 && (y = y % Tt + Tt), y > Sl ? this._append`A${n},${n},0,1,${p},${t - s},${r - u}A${n},${n},0,1,${p},${this._x1 = l},${this._y1 = c}` : y > Z && this._append`A${n},${n},0,${+(y >= Pt)},${p},${this._x1 = t + n * Math.cos(i)},${this._y1 = r + n * Math.sin(i)}`);
}
rect(t, r, n, a) {
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +r}h${n = +n}v${+a}h${-n}Z`;
}
toString() {
return this._;
}
}
function El(e) {
let t = 3;
return e.digits = function(r) {
if (!arguments.length)
return t;
if (r == null)
t = null;
else {
const n = Math.floor(r);
if (!(n >= 0))
throw new RangeError(`invalid digits: ${r}`);
t = n;
}
return e;
}, () => new Tl(t);
}
const Zt = {
draw(e, t) {
const r = q(t / Fe);
e.moveTo(r, 0), e.arc(0, 0, r, 0, tt);
}
}, Cl = {
draw(e, t) {
const r = q(t / 5) / 2;
e.moveTo(-3 * r, -r), e.lineTo(-r, -r), e.lineTo(-r, -3 * r), e.lineTo(r, -3 * r), e.lineTo(r, -r), e.lineTo(3 * r, -r), e.lineTo(3 * r, r), e.lineTo(r, r), e.lineTo(r, 3 * r), e.lineTo(-r, 3 * r), e.lineTo(-r, r), e.lineTo(-3 * r, r), e.closePath();
}
}, zn = q(1 / 3), Al = zn * 2, xl = {
draw(e, t) {
const r = q(t / Al), n = r * zn;
e.moveTo(0, -r), e.lineTo(n, 0), e.lineTo(0, r), e.lineTo(-n, 0), e.closePath();
}
}, jl = {
draw(e, t) {
const r = q(t), n = -r / 2;
e.rect(n, n, r, r);
}
}, Ml = 0.8908130915292852, Kn = Le(Fe / 10) / Le(7 * Fe / 10), Bl = Le(tt / 10) * Kn, Dl = -Gn(tt / 10) * Kn, Rl = {
draw(e, t) {
const r = q(t * Ml), n = Bl * r, a = Dl * r;
e.moveTo(0, -r), e.lineTo(n, a);
for (let i = 1; i < 5; ++i) {
const o = tt * i / 5, s = Gn(o), u = Le(o);
e.lineTo(u * r, -s * r), e.lineTo(s * n - u * a, u * n + s * a);
}
e.closePath();
}
}, lt = q(3), Il = {
draw(e, t) {
const r = -q(t / (lt * 3));
e.moveTo(0, r * 2), e.lineTo(-lt * r, -r), e.lineTo(lt * r, -r), e.closePath();
}
}, R = -0.5, I = q(3) / 2, Et = 1 / q(12), Nl = (Et / 2 + 1) * 3, Ll = {
draw(e, t) {
const r = q(t / Nl), n = r / 2, a = r * Et, i = n, o = r * Et + r, s = -i, u = o;
e.moveTo(n, a), e.lineTo(i, o), e.lineTo(s, u), e.lineTo(R * n - I * a, I * n + R * a), e.lineTo(R * i - I * o, I * i + R * o), e.lineTo(R * s - I * u, I * s + R * u), e.lineTo(R * n + I * a, R * a - I * n), e.lineTo(R * i + I * o, R * o - I * i), e.lineTo(R * s + I * u, R * u - I * s), e.closePath();
}
};
function Fl(e, t) {
let r = null, n = El(a);
e = typeof e == "function" ? e : Ae(e || Zt), t = typeof t == "function" ? t : Ae(t === void 0 ? 64 : +t);
function a() {
let i;
if (r || (r = i = n()), e.apply(this, arguments).draw(r, +t.apply(this, arguments)), i)
return r = null, i + "" || null;
}
return a.type = function(i) {
return arguments.length ? (e = typeof i == "function" ? i : Ae(i), a) : e;
}, a.size = function(i) {
return arguments.length ? (t = typeof i == "function" ? i : Ae(+i), a) : t;
}, a.context = function(i) {
return arguments.length ? (r = i ?? null, a) : r;
}, a;
}
function _e(e) {
"@babel/helpers - typeof";
return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, _e(e);
}
var kl = ["type", "size", "sizeType"];
function Ct() {
return Ct = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r)
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
}, Ct.apply(this, arguments);
}
function Sr(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter(function(a) {
return Object.getOwnPropertyDescriptor(e, a).enumerable;
})), r.push.apply(r, n);
}
return r;
}
function Pr(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
t % 2 ? Sr(Object(r), !0).forEach(function(n) {
Ul(e, n, r[n]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Sr(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
function Ul(e, t, r) {
return t = Hl(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
}
function Hl(e) {
var t = ql(e, "string");
return _e(t) == "symbol" ? t : String(t);
}
function ql(e, t) {
if (_e(e) != "object" || !e)
return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var n = r.call(e, t || "default");
if (_e(n) != "object")
return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function Gl(e, t) {
if (e == null)
return {};
var r = Wl(e, t), n, a;
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (a = 0; a < i.length; a++)
n = i[a], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
}
return r;
}
function Wl(e, t) {
if (e == null)
return {};
var r = {}, n = Object.keys(e), a, i;
for (i = 0; i < n.length; i++)
a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
return r;
}
var Yn = {
symbolCircle: Zt,
symbolCross: Cl,
symbolDiamond: xl,
symbolSquare: jl,
symbolStar: Rl,
symbolTriangle: Il,
symbolWye: Ll
}, zl = Math.PI / 180, Kl = function(t) {
var r = "symbol".concat(qn(t));
return Yn[r] || Zt;
}, Yl = function(t, r, n) {
if (r === "area")
return t;
switch (n) {
case "cross":
return 5 * t * t / 9;
case "diamond":
return 0.5 * t * t / Math.sqrt(3);
case "square":
return t * t;
case "star": {
var a = 18 * zl;
return 1.25 * t * t * (Math.tan(a) - Math.tan(a * 2) * Math.pow(Math.tan(a), 2));
}
case "triangle":
return Math.sqrt(3) * t * t / 4;
case "wye":
return (21 - 10 * Math.sqrt(3)) * t * t / 8;
default:
return Math.PI * t * t / 4;
}
}, Vl = function(t, r) {
Yn["symbol".concat(qn(t))] = r;
}, Vn = function(t) {
var r = t.type, n = r === void 0 ? "circle" : r, a = t.size, i = a === void 0 ? 64 : a, o = t.sizeType, s = o === void 0 ? "area" : o, u = Gl(t, kl), l = Pr(Pr({}, u), {}, {
type: n,
size: i,
sizeType: s
}), c = function() {
var O = Kl(n), $ = Fl().type(O).size(Yl(i, s, n));
return $();
}, p = l.className, y = l.cx, d = l.cy, h = Rn(l, !0);
return y === +y && d === +d && i === +i ? /* @__PURE__ */ b.createElement("path", Ct({}, h, {
className: Q("recharts-symbols", p),
transform: "translate(".concat(y, ", ").concat(d, ")"),
d: c()
})) : null;
};
Vn.registerSymbol = Vl;
function oe(e) {
"@babel/helpers - typeof";
return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, oe(e);
}
function At() {
return At = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r)
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
}, At.apply(this, arguments);
}
function Tr(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter(function(a) {
return Object.getOwnPropertyDescriptor(e, a).enumerable;
})), r.push.apply(r, n);
}
return r;
}
function Xl(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
t % 2 ? Tr(Object(r), !0).forEach(function(n) {
$e(e, n, r[n]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Tr(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
function Zl(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
function Er(e, t) {
for (var r = 0; r < t.length; r++) {
var n = t[r];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Zn(n.key), n);
}
}
function Jl(e, t, r) {
return t && Er(e.prototype, t), r && Er(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
}
function Ql(e, t, r) {
return t = ke(t), ec(e, Xn() ? Reflect.construct(t, r || [], ke(e).constructor) : t.apply(e, r));
}
function ec(e, t) {
if (t && (oe(t) === "object" || typeof t == "function"))
return t;
if (t !== void 0)
throw new TypeError("Derived constructors may only return object or undefined");
return tc(e);
}
function tc(e) {
if (e === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function Xn() {
try {
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch {
}
return (Xn = function() {
return !!e;
})();
}
function ke(e) {
return ke = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
return r.__proto__ || Object.getPrototypeOf(r);
}, ke(e);
}
function rc(e, t) {
if (typeof t != "function" && t !== null)
throw new TypeError("Super expressio