import { defineComponent as te, computed as L, openBlock as pe, createElementBlock as Qe, normalizeStyle as Sr, toDisplayString as Vi, Fragment as wt, isVNode as nu, Comment as H9, Text as $S, reactive as tn, getCurrentInstance as vn, onMounted as it, onUpdated as ap, onUnmounted as rl, watch as se, inject as Ge, provide as pt, ref as U, unref as z, shallowRef as ae, watchEffect as ht, onBeforeUnmount as yt, triggerRef as Vle, createVNode as M, h as qg, Transition as ho, withDirectives as Oi, resolveDirective as Fle, cloneVNode as Bs, render as lf, nextTick as Tt, toRef as Nn, withModifiers as uf, vShow as zs, onBeforeMount as G9, Teleport as AS, createTextVNode as Kt, isRef as op, toRefs as ES, toRaw as Ko, onBeforeUpdate as j9, TransitionGroup as eI, onActivated as Wle, getCurrentScope as Z9, onScopeDispose as d0, createElementVNode as He, warn as Qle, mergeProps as _n, renderSlot as zn, useAttrs as Hle, useSlots as U9, createCommentVNode as _t, normalizeClass as Ye, createBlock as je, withCtx as we, resolveDynamicComponent as Ec, readonly as Gle, onDeactivated as jle, vModelRadio as X9, renderList as cg, withKeys as q4, pushScopeId as MS, popScopeId as IS, resolveComponent as fi, defineExpose as Zle } from "vue";
var Li = /* @__PURE__ */ ((t) => (t[t.STATIC = 0] = "STATIC", t[t.API = 1] = "API", t))(Li || {});
const tI = {
text: {
type: String,
required: !0
},
width: {
type: Number
},
height: {
type: Number
},
fontSize: {
type: Number
},
fontWeight: {
type: [Number, String]
},
color: {
type: String
},
backgroundColor: {
type: String
},
textAlign: {
type: String
},
direction: {
type: String
}
}, Ule = {
container: {
style: {
background: {
type: "none"
}
},
props: {
width: 300,
height: 80
}
},
props: {
text: "标题内容",
fontSize: 24,
color: "#fff",
fontWeight: "bold",
textAlign: "left",
direction: "horizontal"
}
};
function Xle(t) {
const e = {};
for (const n in t)
if (typeof t[n] == "object")
switch (n) {
case "background":
t[n].type === "none" && (e[n] = "none"), t[n].type === "color" && (e[n] = t[n].color), t[n].type === "image" && (e[n + "-image"] = `url(${t[n].image}) no-repeat center center`, e[n + "-size"] = t[n].fillType);
break;
case "border":
t[n].type === "none" ? e[n] = "none" : e[n] = `${t[n].width}px ${t[n].type} ${t[n].color}`;
break;
case "borderRadius":
t[n].type === "all" ? e[n] = `${t[n].value}${t[n].unit}` : e[n] = `${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`;
break;
case "boxShadow":
t[n].enabled && (e[n] = `${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset ? "inset" : ""}`);
break;
case "backdropFilter":
t[n].enabled && (e[n] = `blur(${t[n].blur}px)`);
break;
}
else typeof t[n] == "number" ? e[n] = t[n] + "px" : typeof t[n] == "string" && (e[n] = t[n]);
return e;
}
const Yle = te({
name: "DTitle",
props: tI,
setup(t) {
return {
style: L(() => {
const n = Xle(t), r = {};
return n.color.length > 9 && (r.backgroundImage = n.color, r.webkitBackgroundClip = "text", r.webkitTextFillColor = "transparent"), {
...r,
...n,
width: "100%",
height: "100%",
lineHeight: t.height + "px"
};
})
};
}
}), $r = (t, e) => {
const n = t.__vccOpts || t;
for (const [r, i] of e)
n[r] = i;
return n;
};
function qle(t, e, n, r, i, a) {
return pe(), Qe("div", {
class: "cus-title",
style: Sr(t.style)
}, Vi(t.text), 5);
}
const Zd = /* @__PURE__ */ $r(Yle, [["render", qle]]);
function Kg(t) {
"@babel/helpers - typeof";
return Kg = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, Kg(t);
}
function Kle(t, e) {
if (Kg(t) != "object" || !t) return t;
var n = t[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(t, e || "default");
if (Kg(r) != "object") return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (e === "string" ? String : Number)(t);
}
function Jle(t) {
var e = Kle(t, "string");
return Kg(e) == "symbol" ? e : e + "";
}
function eue(t, e, n) {
return (e = Jle(e)) in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t;
}
function K4(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(t, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function j(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? K4(Object(n), !0).forEach(function(r) {
eue(t, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(r) {
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return t;
}
function I() {
return I = Object.assign ? Object.assign.bind() : function(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
}
return t;
}, I.apply(null, arguments);
}
const tue = (t) => typeof t == "function", nue = Array.isArray, rue = (t) => typeof t == "string", iue = (t) => t !== null && typeof t == "object", aue = /^on[^a-z]/, oue = (t) => aue.test(t), Y9 = (t) => {
const e = /* @__PURE__ */ Object.create(null);
return (n) => e[n] || (e[n] = t(n));
}, sue = /-(\w)/g, nI = Y9((t) => t.replace(sue, (e, n) => n ? n.toUpperCase() : "")), lue = /\B([A-Z])/g, uue = Y9((t) => t.replace(lue, "-$1").toLowerCase()), cue = Object.prototype.hasOwnProperty, J4 = (t, e) => cue.call(t, e);
function fue(t, e, n, r) {
const i = t[n];
if (i != null) {
const a = J4(i, "default");
if (a && r === void 0) {
const o = i.default;
r = i.type !== Function && tue(o) ? o() : o;
}
i.type === Boolean && (!J4(e, n) && !a ? r = !1 : r === "" && (r = !0));
}
return r;
}
function due(t) {
return Object.keys(t).reduce((e, n) => ((n.startsWith("data-") || n.startsWith("aria-")) && (e[n] = t[n]), e), {});
}
function Zp(t) {
return typeof t == "number" ? `${t}px` : t;
}
function Nd(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
return typeof t == "function" ? t(e) : t ?? n;
}
function hue(t) {
let e;
const n = new Promise((i) => {
e = t(() => {
i(!0);
});
}), r = () => {
e == null || e();
};
return r.then = (i, a) => n.then(i, a), r.promise = n, r;
}
function ye() {
const t = [];
for (let e = 0; e < arguments.length; e++) {
const n = e < 0 || arguments.length <= e ? void 0 : arguments[e];
if (n) {
if (rue(n))
t.push(n);
else if (nue(n))
for (let r = 0; r < n.length; r++) {
const i = ye(n[r]);
i && t.push(i);
}
else if (iue(n))
for (const r in n)
n[r] && t.push(r);
}
}
return t.join(" ");
}
var q9 = function() {
if (typeof Map < "u")
return Map;
function t(e, n) {
var r = -1;
return e.some(function(i, a) {
return i[0] === n ? (r = a, !0) : !1;
}), r;
}
return (
/** @class */
function() {
function e() {
this.__entries__ = [];
}
return Object.defineProperty(e.prototype, "size", {
/**
* @returns {boolean}
*/
get: function() {
return this.__entries__.length;
},
enumerable: !0,
configurable: !0
}), e.prototype.get = function(n) {
var r = t(this.__entries__, n), i = this.__entries__[r];
return i && i[1];
}, e.prototype.set = function(n, r) {
var i = t(this.__entries__, n);
~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
}, e.prototype.delete = function(n) {
var r = this.__entries__, i = t(r, n);
~i && r.splice(i, 1);
}, e.prototype.has = function(n) {
return !!~t(this.__entries__, n);
}, e.prototype.clear = function() {
this.__entries__.splice(0);
}, e.prototype.forEach = function(n, r) {
r === void 0 && (r = null);
for (var i = 0, a = this.__entries__; i < a.length; i++) {
var o = a[i];
n.call(r, o[1], o[0]);
}
}, e;
}()
);
}(), r2 = typeof window < "u" && typeof document < "u" && window.document === document, v1 = function() {
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
}(), pue = function() {
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(v1) : function(t) {
return setTimeout(function() {
return t(Date.now());
}, 1e3 / 60);
};
}(), vue = 2;
function gue(t, e) {
var n = !1, r = !1, i = 0;
function a() {
n && (n = !1, t()), r && s();
}
function o() {
pue(a);
}
function s() {
var l = Date.now();
if (n) {
if (l - i < vue)
return;
r = !0;
} else
n = !0, r = !1, setTimeout(o, e);
i = l;
}
return s;
}
var mue = 20, yue = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], bue = typeof MutationObserver < "u", _ue = (
/** @class */
function() {
function t() {
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = gue(this.refresh.bind(this), mue);
}
return t.prototype.addObserver = function(e) {
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
}, t.prototype.removeObserver = function(e) {
var n = this.observers_, r = n.indexOf(e);
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
}, t.prototype.refresh = function() {
var e = this.updateObservers_();
e && this.refresh();
}, t.prototype.updateObservers_ = function() {
var e = this.observers_.filter(function(n) {
return n.gatherActive(), n.hasActive();
});
return e.forEach(function(n) {
return n.broadcastActive();
}), e.length > 0;
}, t.prototype.connect_ = function() {
!r2 || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), bue ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
}, t.prototype.disconnect_ = function() {
!r2 || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
}, t.prototype.onTransitionEnd_ = function(e) {
var n = e.propertyName, r = n === void 0 ? "" : n, i = yue.some(function(a) {
return !!~r.indexOf(a);
});
i && this.refresh();
}, t.getInstance = function() {
return this.instance_ || (this.instance_ = new t()), this.instance_;
}, t.instance_ = null, t;
}()
), K9 = function(t, e) {
for (var n = 0, r = Object.keys(e); n < r.length; n++) {
var i = r[n];
Object.defineProperty(t, i, {
value: e[i],
enumerable: !1,
writable: !1,
configurable: !0
});
}
return t;
}, yh = function(t) {
var e = t && t.ownerDocument && t.ownerDocument.defaultView;
return e || v1;
}, J9 = DS(0, 0, 0, 0);
function g1(t) {
return parseFloat(t) || 0;
}
function e8(t) {
for (var e = [], n = 1; n < arguments.length; n++)
e[n - 1] = arguments[n];
return e.reduce(function(r, i) {
var a = t["border-" + i + "-width"];
return r + g1(a);
}, 0);
}
function Oue(t) {
for (var e = ["top", "right", "bottom", "left"], n = {}, r = 0, i = e; r < i.length; r++) {
var a = i[r], o = t["padding-" + a];
n[a] = g1(o);
}
return n;
}
function Sue(t) {
var e = t.getBBox();
return DS(0, 0, e.width, e.height);
}
function xue(t) {
var e = t.clientWidth, n = t.clientHeight;
if (!e && !n)
return J9;
var r = yh(t).getComputedStyle(t), i = Oue(r), a = i.left + i.right, o = i.top + i.bottom, s = g1(r.width), l = g1(r.height);
if (r.boxSizing === "border-box" && (Math.round(s + a) !== e && (s -= e8(r, "left", "right") + a), Math.round(l + o) !== n && (l -= e8(r, "top", "bottom") + o)), !Cue(t)) {
var u = Math.round(s + a) - e, c = Math.round(l + o) - n;
Math.abs(u) !== 1 && (s -= u), Math.abs(c) !== 1 && (l -= c);
}
return DS(i.left, i.top, s, l);
}
var wue = /* @__PURE__ */ function() {
return typeof SVGGraphicsElement < "u" ? function(t) {
return t instanceof yh(t).SVGGraphicsElement;
} : function(t) {
return t instanceof yh(t).SVGElement && typeof t.getBBox == "function";
};
}();
function Cue(t) {
return t === yh(t).document.documentElement;
}
function Tue(t) {
return r2 ? wue(t) ? Sue(t) : xue(t) : J9;
}
function Pue(t) {
var e = t.x, n = t.y, r = t.width, i = t.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, o = Object.create(a.prototype);
return K9(o, {
x: e,
y: n,
width: r,
height: i,
top: n,
right: e + r,
bottom: i + n,
left: e
}), o;
}
function DS(t, e, n, r) {
return { x: t, y: e, width: n, height: r };
}
var $ue = (
/** @class */
function() {
function t(e) {
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = DS(0, 0, 0, 0), this.target = e;
}
return t.prototype.isActive = function() {
var e = Tue(this.target);
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
}, t.prototype.broadcastRect = function() {
var e = this.contentRect_;
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
}, t;
}()
), Aue = (
/** @class */
/* @__PURE__ */ function() {
function t(e, n) {
var r = Pue(n);
K9(this, { target: e, contentRect: r });
}
return t;
}()
), Eue = (
/** @class */
function() {
function t(e, n, r) {
if (this.activeObservations_ = [], this.observations_ = new q9(), typeof e != "function")
throw new TypeError("The callback provided as parameter 1 is not a function.");
this.callback_ = e, this.controller_ = n, this.callbackCtx_ = r;
}
return t.prototype.observe = function(e) {
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(e instanceof yh(e).Element))
throw new TypeError('parameter 1 is not of type "Element".');
var n = this.observations_;
n.has(e) || (n.set(e, new $ue(e)), this.controller_.addObserver(this), this.controller_.refresh());
}
}, t.prototype.unobserve = function(e) {
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(e instanceof yh(e).Element))
throw new TypeError('parameter 1 is not of type "Element".');
var n = this.observations_;
n.has(e) && (n.delete(e), n.size || this.controller_.removeObserver(this));
}
}, t.prototype.disconnect = function() {
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
}, t.prototype.gatherActive = function() {
var e = this;
this.clearActive(), this.observations_.forEach(function(n) {
n.isActive() && e.activeObservations_.push(n);
});
}, t.prototype.broadcastActive = function() {
if (this.hasActive()) {
var e = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
return new Aue(r.target, r.broadcastRect());
});
this.callback_.call(e, n, e), this.clearActive();
}
}, t.prototype.clearActive = function() {
this.activeObservations_.splice(0);
}, t.prototype.hasActive = function() {
return this.activeObservations_.length > 0;
}, t;
}()
), ej = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new q9(), tj = (
/** @class */
/* @__PURE__ */ function() {
function t(e) {
if (!(this instanceof t))
throw new TypeError("Cannot call a class as a function.");
if (!arguments.length)
throw new TypeError("1 argument required, but only 0 present.");
var n = _ue.getInstance(), r = new Eue(e, n, this);
ej.set(this, r);
}
return t;
}()
);
[
"observe",
"unobserve",
"disconnect"
].forEach(function(t) {
tj.prototype[t] = function() {
var e;
return (e = ej.get(this))[t].apply(e, arguments);
};
});
var nj = function() {
return typeof v1.ResizeObserver < "u" ? v1.ResizeObserver : tj;
}();
const i2 = (t) => t != null && t !== "", sr = (t, e) => {
const n = I({}, t);
return Object.keys(e).forEach((r) => {
const i = n[r];
if (i)
i.type || i.default ? i.default = e[r] : i.def ? i.def(e[r]) : n[r] = {
type: i,
default: e[r]
};
else
throw new Error(`not have ${r} prop`);
}), n;
}, Mue = (t) => {
const e = Object.keys(t), n = {}, r = {}, i = {};
for (let a = 0, o = e.length; a < o; a++) {
const s = e[a];
oue(s) ? (n[s[2].toLowerCase() + s.slice(3)] = t[s], r[s] = t[s]) : i[s] = t[s];
}
return {
onEvents: r,
events: n,
extraAttrs: i
};
}, Iue = function() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
const n = {}, r = /;(?![^(]*\))/g, i = /:(.+)/;
return typeof t == "object" ? t : (t.split(r).forEach(function(a) {
if (a) {
const o = a.split(i);
if (o.length > 1) {
const s = e ? nI(o[0].trim()) : o[0].trim();
n[s] = o[1].trim();
}
}
}), n);
}, m1 = (t, e) => t[e] !== void 0, rj = Symbol("skipFlatten"), Yn = function() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
const n = Array.isArray(t) ? t : [t], r = [];
return n.forEach((i) => {
Array.isArray(i) ? r.push(...Yn(i, e)) : i && i.type === wt ? i.key === rj ? r.push(i) : r.push(...Yn(i.children, e)) : i && nu(i) ? e && !rI(i) ? r.push(i) : e || r.push(i) : i2(i) && r.push(i);
}), r;
}, ij = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
if (nu(t))
return t.type === wt ? e === "default" ? Yn(t.children) : [] : t.children && t.children[e] ? Yn(t.children[e](n)) : [];
{
const r = t.$slots[e] && t.$slots[e](n);
return Yn(r);
}
}, Ts = (t) => {
var e;
let n = ((e = t == null ? void 0 : t.vnode) === null || e === void 0 ? void 0 : e.el) || t && (t.$el || t);
for (; n && !n.tagName; )
n = n.nextSibling;
return n;
}, Due = (t) => {
const e = {};
if (t.$ && t.$.vnode) {
const n = t.$.vnode.props || {};
Object.keys(t.$props).forEach((r) => {
const i = t.$props[r], a = uue(r);
(i !== void 0 || a in n) && (e[r] = i);
});
} else if (nu(t) && typeof t.type == "object") {
const n = t.props || {}, r = {};
Object.keys(n).forEach((a) => {
r[nI(a)] = n[a];
});
const i = t.type.props || {};
Object.keys(i).forEach((a) => {
const o = fue(i, r, a, r[a]);
(o !== void 0 || a in r) && (e[a] = o);
});
}
return e;
}, Rue = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, i;
if (t.$) {
const a = t[e];
if (a !== void 0)
return typeof a == "function" && r ? a(n) : a;
i = t.$slots[e], i = r && i ? i(n) : i;
} else if (nu(t)) {
const a = t.props && t.props[e];
if (a !== void 0 && t.props !== null)
return typeof a == "function" && r ? a(n) : a;
t.type === wt ? i = t.children : t.children && t.children[e] && (i = t.children[e], i = r && i ? i(n) : i);
}
return Array.isArray(i) && (i = Yn(i), i = i.length === 1 ? i[0] : i, i = i.length === 0 ? void 0 : i), i;
};
function t8() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = {};
return t.$ ? n = I(I({}, n), t.$attrs) : n = I(I({}, n), t.props), Mue(n)[e ? "onEvents" : "events"];
}
function kue(t, e) {
let r = ((nu(t) ? t.props : t.$attrs) || {}).style || {};
return typeof r == "string" && (r = Iue(r, e)), r;
}
function Lue(t) {
return t.length === 1 && t[0].type === wt;
}
function rI(t) {
return t && (t.type === H9 || t.type === wt && t.children.length === 0 || t.type === $S && t.children.trim() === "");
}
function ss() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
const e = [];
return t.forEach((n) => {
Array.isArray(n) ? e.push(...n) : (n == null ? void 0 : n.type) === wt ? e.push(...ss(n.children)) : e.push(n);
}), e.filter((n) => !rI(n));
}
function Yi(t) {
return Array.isArray(t) && t.length === 1 && (t = t[0]), t && t.__v_isVNode && typeof t.type != "symbol";
}
function RS(t, e) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
var r, i;
return (r = e[n]) !== null && r !== void 0 ? r : (i = t[n]) === null || i === void 0 ? void 0 : i.call(t);
}
const bh = te({
compatConfig: {
MODE: 3
},
name: "ResizeObserver",
props: {
disabled: Boolean,
onResize: Function
},
emits: ["resize"],
setup(t, e) {
let {
slots: n
} = e;
const r = tn({
width: 0,
height: 0,
offsetHeight: 0,
offsetWidth: 0
});
let i = null, a = null;
const o = () => {
a && (a.disconnect(), a = null);
}, s = (c) => {
const {
onResize: f
} = t, d = c[0].target, {
width: h,
height: p
} = d.getBoundingClientRect(), {
offsetWidth: v,
offsetHeight: g
} = d, m = Math.floor(h), y = Math.floor(p);
if (r.width !== m || r.height !== y || r.offsetWidth !== v || r.offsetHeight !== g) {
const b = {
width: m,
height: y,
offsetWidth: v,
offsetHeight: g
};
I(r, b), f && Promise.resolve().then(() => {
f(I(I({}, b), {
offsetWidth: v,
offsetHeight: g
}), d);
});
}
}, l = vn(), u = () => {
const {
disabled: c
} = t;
if (c) {
o();
return;
}
const f = Ts(l);
f !== i && (o(), i = f), !a && f && (a = new nj(s), a.observe(f));
};
return it(() => {
u();
}), ap(() => {
u();
}), rl(() => {
o();
}), se(() => t.disabled, () => {
u();
}, {
flush: "post"
}), () => {
var c;
return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0];
};
}
});
let aj = (t) => setTimeout(t, 16), oj = (t) => clearTimeout(t);
typeof window < "u" && "requestAnimationFrame" in window && (aj = (t) => window.requestAnimationFrame(t), oj = (t) => window.cancelAnimationFrame(t));
let n8 = 0;
const iI = /* @__PURE__ */ new Map();
function sj(t) {
iI.delete(t);
}
function xt(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
n8 += 1;
const n = n8;
function r(i) {
if (i === 0)
sj(n), t();
else {
const a = aj(() => {
r(i - 1);
});
iI.set(n, a);
}
}
return r(e), n;
}
xt.cancel = (t) => {
const e = iI.get(t);
return sj(e), oj(e);
};
const ru = function() {
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
e[n] = arguments[n];
return e;
}, sp = (t) => {
const e = t;
return e.install = function(n) {
n.component(e.displayName || e.name, t);
}, t;
};
function y1() {
return {
type: [Function, Array]
};
}
function $t(t) {
return {
type: Object,
default: t
};
}
function nt(t) {
return {
type: Boolean,
default: t
};
}
function tt(t) {
return {
type: Function,
default: t
};
}
function ha(t, e) {
return {
validator: () => !0,
default: t
};
}
function cf(t) {
return {
type: Array,
default: t
};
}
function hn(t) {
return {
type: String,
default: t
};
}
function gn(t, e) {
return t ? {
type: t,
default: e
} : ha(e);
}
let pr = !1;
try {
const t = Object.defineProperty({}, "passive", {
get() {
pr = !0;
}
});
window.addEventListener("testPassive", null, t), window.removeEventListener("testPassive", null, t);
} catch {
}
function vr(t, e, n, r) {
if (t && t.addEventListener) {
let i = r;
i === void 0 && pr && (e === "touchstart" || e === "touchmove" || e === "wheel") && (i = {
passive: !1
}), t.addEventListener(e, n, i);
}
return {
remove: () => {
t && t.removeEventListener && t.removeEventListener(e, n);
}
};
}
const aI = "anticon", lj = Symbol("GlobalFormContextKey"), Nue = (t) => {
pt(lj, t);
}, Bue = () => Ge(lj, {
validateMessages: L(() => {
})
}), zue = () => ({
iconPrefixCls: String,
getTargetContainer: {
type: Function
},
getPopupContainer: {
type: Function
},
prefixCls: String,
getPrefixCls: {
type: Function
},
renderEmpty: {
type: Function
},
transformCellText: {
type: Function
},
csp: $t(),
input: $t(),
autoInsertSpaceInButton: {
type: Boolean,
default: void 0
},
locale: $t(),
pageHeader: $t(),
componentSize: {
type: String
},
componentDisabled: {
type: Boolean,
default: void 0
},
direction: {
type: String,
default: "ltr"
},
space: $t(),
virtual: {
type: Boolean,
default: void 0
},
dropdownMatchSelectWidth: {
type: [Number, Boolean],
default: !0
},
form: $t(),
pagination: $t(),
theme: $t(),
select: $t(),
wave: $t()
}), oI = Symbol("configProvider"), uj = {
getPrefixCls: (t, e) => e || (t ? `ant-${t}` : "ant"),
iconPrefixCls: L(() => aI),
getPopupContainer: L(() => () => document.body),
direction: L(() => "ltr")
}, kS = () => Ge(oI, uj), Vue = (t) => pt(oI, t), cj = Symbol("DisabledContextKey"), Jo = () => Ge(cj, U(void 0)), fj = (t) => {
const e = Jo();
return pt(cj, L(() => {
var n;
return (n = t.value) !== null && n !== void 0 ? n : e.value;
})), t;
}, Fue = {
// Options.jsx
items_per_page: "/ page",
jump_to: "Go to",
jump_to_confirm: "confirm",
page: "",
// Pagination.jsx
prev_page: "Previous Page",
next_page: "Next Page",
prev_5: "Previous 5 Pages",
next_5: "Next 5 Pages",
prev_3: "Previous 3 Pages",
next_3: "Next 3 Pages"
}, Wue = {
locale: "en_US",
today: "Today",
now: "Now",
backToToday: "Back to today",
ok: "Ok",
clear: "Clear",
month: "Month",
year: "Year",
timeSelect: "select time",
dateSelect: "select date",
weekSelect: "Choose a week",
monthSelect: "Choose a month",
yearSelect: "Choose a year",
decadeSelect: "Choose a decade",
yearFormat: "YYYY",
dateFormat: "M/D/YYYY",
dayFormat: "D",
dateTimeFormat: "M/D/YYYY HH:mm:ss",
monthBeforeYear: !0,
previousMonth: "Previous month (PageUp)",
nextMonth: "Next month (PageDown)",
previousYear: "Last year (Control + left)",
nextYear: "Next year (Control + right)",
previousDecade: "Last decade",
nextDecade: "Next decade",
previousCentury: "Last century",
nextCentury: "Next century"
}, dj = {
placeholder: "Select time",
rangePlaceholder: ["Start time", "End time"]
}, r8 = {
lang: I({
placeholder: "Select date",
yearPlaceholder: "Select year",
quarterPlaceholder: "Select quarter",
monthPlaceholder: "Select month",
weekPlaceholder: "Select week",
rangePlaceholder: ["Start date", "End date"],
rangeYearPlaceholder: ["Start year", "End year"],
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
rangeMonthPlaceholder: ["Start month", "End month"],
rangeWeekPlaceholder: ["Start week", "End week"]
}, Wue),
timePickerLocale: I({}, dj)
}, $i = "${label} is not a valid ${type}", Vs = {
locale: "en",
Pagination: Fue,
DatePicker: r8,
TimePicker: dj,
Calendar: r8,
global: {
placeholder: "Please select"
},
Table: {
filterTitle: "Filter menu",
filterConfirm: "OK",
filterReset: "Reset",
filterEmptyText: "No filters",
filterCheckall: "Select all items",
filterSearchPlaceholder: "Search in filters",
emptyText: "No data",
selectAll: "Select current page",
selectInvert: "Invert current page",
selectNone: "Clear all data",
selectionAll: "Select all data",
sortTitle: "Sort",
expand: "Expand row",
collapse: "Collapse row",
triggerDesc: "Click to sort descending",
triggerAsc: "Click to sort ascending",
cancelSort: "Click to cancel sorting"
},
Tour: {
Next: "Next",
Previous: "Previous",
Finish: "Finish"
},
Modal: {
okText: "OK",
cancelText: "Cancel",
justOkText: "OK"
},
Popconfirm: {
okText: "OK",
cancelText: "Cancel"
},
Transfer: {
titles: ["", ""],
searchPlaceholder: "Search here",
itemUnit: "item",
itemsUnit: "items",
remove: "Remove",
selectCurrent: "Select current page",
removeCurrent: "Remove current page",
selectAll: "Select all data",
removeAll: "Remove all data",
selectInvert: "Invert current page"
},
Upload: {
uploading: "Uploading...",
removeFile: "Remove file",
uploadError: "Upload error",
previewFile: "Preview file",
downloadFile: "Download file"
},
Empty: {
description: "No data"
},
Icon: {
icon: "icon"
},
Text: {
edit: "Edit",
copy: "Copy",
copied: "Copied",
expand: "Expand"
},
PageHeader: {
back: "Back"
},
Form: {
optional: "(optional)",
defaultValidateMessages: {
default: "Field validation error for ${label}",
required: "Please enter ${label}",
enum: "${label} must be one of [${enum}]",
whitespace: "${label} cannot be a blank character",
date: {
format: "${label} date format is invalid",
parse: "${label} cannot be converted to a date",
invalid: "${label} is an invalid date"
},
types: {
string: $i,
method: $i,
array: $i,
object: $i,
number: $i,
date: $i,
boolean: $i,
integer: $i,
float: $i,
regexp: $i,
email: $i,
url: $i,
hex: $i
},
string: {
len: "${label} must be ${len} characters",
min: "${label} must be at least ${min} characters",
max: "${label} must be up to ${max} characters",
range: "${label} must be between ${min}-${max} characters"
},
number: {
len: "${label} must be equal to ${len}",
min: "${label} must be minimum ${min}",
max: "${label} must be maximum ${max}",
range: "${label} must be between ${min}-${max}"
},
array: {
len: "Must be ${len} ${label}",
min: "At least ${min} ${label}",
max: "At most ${max} ${label}",
range: "The amount of ${label} must be between ${min}-${max}"
},
pattern: {
mismatch: "${label} does not match the pattern ${pattern}"
}
}
},
Image: {
preview: "Preview"
},
QRCode: {
expired: "QR code expired",
refresh: "Refresh",
scanned: "Scanned"
}
}, hj = te({
compatConfig: {
MODE: 3
},
name: "LocaleReceiver",
props: {
componentName: String,
defaultLocale: {
type: [Object, Function]
},
children: {
type: Function
}
},
setup(t, e) {
let {
slots: n
} = e;
const r = Ge("localeData", {}), i = L(() => {
const {
componentName: o = "global",
defaultLocale: s
} = t, l = s || Vs[o || "global"], {
antLocale: u
} = r, c = o && u ? u[o] : {};
return I(I({}, typeof l == "function" ? l() : l), c || {});
}), a = L(() => {
const {
antLocale: o
} = r, s = o && o.locale;
return o && o.exist && !s ? Vs.locale : s;
});
return () => {
const o = t.children || n.default, {
antLocale: s
} = r;
return o == null ? void 0 : o(i.value, a.value, s);
};
}
});
function LS(t, e, n) {
const r = Ge("localeData", {});
return [L(() => {
const {
antLocale: a
} = r, o = z(e) || Vs[t || "global"], s = t && a ? a[t] : {};
return I(I(I({}, typeof o == "function" ? o() : o), s || {}), z(n) || {});
})];
}
function sI(t) {
for (var e = 0, n, r = 0, i = t.length; i >= 4; ++r, i -= 4)
n = t.charCodeAt(r) & 255 | (t.charCodeAt(++r) & 255) << 8 | (t.charCodeAt(++r) & 255) << 16 | (t.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
n >>> 24, e = /* Math.imul(k, m): */
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
switch (i) {
case 3:
e ^= (t.charCodeAt(r + 2) & 255) << 16;
case 2:
e ^= (t.charCodeAt(r + 1) & 255) << 8;
case 1:
e ^= t.charCodeAt(r) & 255, e = /* Math.imul(h, m): */
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
}
return e ^= e >>> 13, e = /* Math.imul(h, m): */
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
}
const i8 = "%";
class Que {
constructor(e) {
this.cache = /* @__PURE__ */ new Map(), this.instanceId = e;
}
get(e) {
return this.cache.get(Array.isArray(e) ? e.join(i8) : e) || null;
}
update(e, n) {
const r = Array.isArray(e) ? e.join(i8) : e, i = this.cache.get(r), a = n(i);
a === null ? this.cache.delete(r) : this.cache.set(r, a);
}
}
const pj = "data-token-hash", Hc = "data-css-hash", Hue = "data-cache-path", Bd = "__cssinjs_instance__";
function Jg() {
const t = Math.random().toString(12).slice(2);
if (typeof document < "u" && document.head && document.body) {
const e = document.body.querySelectorAll(`style[${Hc}]`) || [], {
firstChild: n
} = document.head;
Array.from(e).forEach((i) => {
i[Bd] = i[Bd] || t, i[Bd] === t && document.head.insertBefore(i, n);
});
const r = {};
Array.from(document.querySelectorAll(`style[${Hc}]`)).forEach((i) => {
var a;
const o = i.getAttribute(Hc);
r[o] ? i[Bd] === t && ((a = i.parentNode) === null || a === void 0 || a.removeChild(i)) : r[o] = !0;
});
}
return new Que(t);
}
const vj = Symbol("StyleContextKey"), Gue = () => {
var t, e, n;
const r = vn();
let i;
if (r && r.appContext) {
const a = (n = (e = (t = r.appContext) === null || t === void 0 ? void 0 : t.config) === null || e === void 0 ? void 0 : e.globalProperties) === null || n === void 0 ? void 0 : n.__ANTDV_CSSINJS_CACHE__;
a ? i = a : (i = Jg(), r.appContext.config.globalProperties && (r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = i));
} else
i = Jg();
return i;
}, gj = {
cache: Jg(),
defaultCache: !0,
hashPriority: "low"
}, NS = () => {
const t = Gue();
return Ge(vj, ae(I(I({}, gj), {
cache: t
})));
}, jue = (t) => {
const e = NS(), n = ae(I(I({}, gj), {
cache: Jg()
}));
return se([() => z(t), e], () => {
const r = I({}, e.value), i = z(t);
Object.keys(i).forEach((o) => {
const s = i[o];
i[o] !== void 0 && (r[o] = s);
});
const {
cache: a
} = i;
r.cache = r.cache || Jg(), r.defaultCache = !a && e.value.defaultCache, n.value = r;
}, {
immediate: !0
}), pt(vj, n), n;
}, Zue = () => ({
autoClear: nt(),
/** @private Test only. Not work in production. */
mock: hn(),
/**
* Only set when you need ssr to extract style on you own.
* If not provided, it will auto create on the end of Provider in server side.
*/
cache: $t(),
/** Tell children that this context is default generated context */
defaultCache: nt(),
/** Use `:where` selector to reduce hashId css selector priority */
hashPriority: hn(),
/** Tell cssinjs where to inject style in */
container: gn(),
/** Component wil render inline `` for fallback in SSR. Not recommend. */
ssrInline: nt(),
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
transformers: cf(),
/**
* Linters to lint css before inject in document.
* Styles will be linted after transforming.
* Please note that `linters` do not support dynamic update.
*/
linters: cf()
});
sp(te({
name: "AStyleProvider",
inheritAttrs: !1,
props: Zue(),
setup(t, e) {
let {
slots: n
} = e;
return jue(t), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
}));
function Uue() {
return !1;
}
let a2 = !1;
function Xue() {
return a2;
}
const Yue = process.env.NODE_ENV === "production" ? Uue : Xue;
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
const t = window;
if (typeof t.webpackHotUpdate == "function") {
const e = t.webpackHotUpdate;
t.webpackHotUpdate = function() {
return a2 = !0, setTimeout(() => {
a2 = !1;
}, 0), e(...arguments);
};
}
}
function mj(t, e, n, r) {
const i = NS(), a = ae(""), o = ae();
ht(() => {
a.value = [t, ...e.value].join("%");
});
const s = Yue(), l = (u) => {
i.value.cache.update(u, (c) => {
const [f = 0, d] = c || [];
return f - 1 === 0 ? (r == null || r(d, !1), null) : [f - 1, d];
});
};
return se(a, (u, c) => {
c && l(c), i.value.cache.update(u, (f) => {
const [d = 0, h] = f || [];
let p = h;
process.env.NODE_ENV !== "production" && h && s && (r == null || r(p, s), p = null);
const v = p || n();
return [d + 1, v];
}), o.value = i.value.cache.get(a.value)[1];
}, {
immediate: !0
}), yt(() => {
l(a.value);
}), o;
}
function Ta() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
function $l(t, e) {
return t && t.contains ? t.contains(e) : !1;
}
const a8 = "data-vc-order", que = "vc-util-key", o2 = /* @__PURE__ */ new Map();
function yj() {
let {
mark: t
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
return t ? t.startsWith("data-") ? t : `data-${t}` : que;
}
function BS(t) {
return t.attachTo ? t.attachTo : document.querySelector("head") || document.body;
}
function Kue(t) {
return t === "queue" ? "prependQueue" : t ? "prepend" : "append";
}
function bj(t) {
return Array.from((o2.get(t) || t).children).filter((e) => e.tagName === "STYLE");
}
function _j(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (!Ta())
return null;
const {
csp: n,
prepend: r
} = e, i = document.createElement("style");
i.setAttribute(a8, Kue(r)), n != null && n.nonce && (i.nonce = n == null ? void 0 : n.nonce), i.innerHTML = t;
const a = BS(e), {
firstChild: o
} = a;
if (r) {
if (r === "queue") {
const s = bj(a).filter((l) => ["prepend", "prependQueue"].includes(l.getAttribute(a8)));
if (s.length)
return a.insertBefore(i, s[s.length - 1].nextSibling), i;
}
a.insertBefore(i, o);
} else
a.appendChild(i);
return i;
}
function Oj(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const n = BS(e);
return bj(n).find((r) => r.getAttribute(yj(e)) === t);
}
function b1(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const n = Oj(t, e);
n && BS(e).removeChild(n);
}
function Jue(t, e) {
const n = o2.get(t);
if (!n || !$l(document, n)) {
const r = _j("", e), {
parentNode: i
} = r;
o2.set(t, i), t.removeChild(r);
}
}
function em(t, e) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
var r, i, a;
const o = BS(n);
Jue(o, n);
const s = Oj(e, n);
if (s)
return !((r = n.csp) === null || r === void 0) && r.nonce && s.nonce !== ((i = n.csp) === null || i === void 0 ? void 0 : i.nonce) && (s.nonce = (a = n.csp) === null || a === void 0 ? void 0 : a.nonce), s.innerHTML !== t && (s.innerHTML = t), s;
const l = _j(t, n);
return l.setAttribute(yj(n), e), l;
}
function ece(t, e) {
if (t.length !== e.length)
return !1;
for (let n = 0; n < t.length; n++)
if (t[n] !== e[n])
return !1;
return !0;
}
class _h {
constructor() {
this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
}
size() {
return this.keys.length;
}
internalGet(e) {
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = {
map: this.cache
};
return e.forEach((i) => {
var a;
r ? r = (a = r == null ? void 0 : r.map) === null || a === void 0 ? void 0 : a.get(i) : r = void 0;
}), r != null && r.value && n && (r.value[1] = this.cacheCallTimes++), r == null ? void 0 : r.value;
}
get(e) {
var n;
return (n = this.internalGet(e, !0)) === null || n === void 0 ? void 0 : n[0];
}
has(e) {
return !!this.internalGet(e);
}
set(e, n) {
if (!this.has(e)) {
if (this.size() + 1 > _h.MAX_CACHE_SIZE + _h.MAX_CACHE_OFFSET) {
const [i] = this.keys.reduce((a, o) => {
const [, s] = a;
return this.internalGet(o)[1] < s ? [o, this.internalGet(o)[1]] : a;
}, [this.keys[0], this.cacheCallTimes]);
this.delete(i);
}
this.keys.push(e);
}
let r = this.cache;
e.forEach((i, a) => {
if (a === e.length - 1)
r.set(i, {
value: [n, this.cacheCallTimes++]
});
else {
const o = r.get(i);
o ? o.map || (o.map = /* @__PURE__ */ new Map()) : r.set(i, {
map: /* @__PURE__ */ new Map()
}), r = r.get(i).map;
}
});
}
deleteByPath(e, n) {
var r;
const i = e.get(n[0]);
if (n.length === 1)
return i.map ? e.set(n[0], {
map: i.map
}) : e.delete(n[0]), (r = i.value) === null || r === void 0 ? void 0 : r[0];
const a = this.deleteByPath(i.map, n.slice(1));
return (!i.map || i.map.size === 0) && !i.value && e.delete(n[0]), a;
}
delete(e) {
if (this.has(e))
return this.keys = this.keys.filter((n) => !ece(n, e)), this.deleteByPath(this.cache, e);
}
}
_h.MAX_CACHE_SIZE = 20;
_h.MAX_CACHE_OFFSET = 5;
let s2 = {};
function ff(t, e) {
process.env.NODE_ENV !== "production" && !t && console !== void 0 && console.error(`Warning: ${e}`);
}
function tce(t, e) {
process.env.NODE_ENV !== "production" && !t && console !== void 0 && console.warn(`Note: ${e}`);
}
function nce() {
s2 = {};
}
function Sj(t, e, n) {
!e && !s2[n] && (t(!1, n), s2[n] = !0);
}
function la(t, e) {
Sj(ff, t, e);
}
function o8(t, e) {
Sj(tce, t, e);
}
function rce() {
}
let Yr = rce;
process.env.NODE_ENV !== "production" && (Yr = (t, e, n) => {
la(t, `[ant-design-vue: ${e}] ${n}`), process.env.NODE_ENV === "test" && nce();
});
let s8 = 0;
class xj {
constructor(e) {
this.derivatives = Array.isArray(e) ? e : [e], this.id = s8, e.length === 0 && Yr(e.length > 0, "[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."), s8 += 1;
}
getDerivativeToken(e) {
return this.derivatives.reduce((n, r) => r(e, n), void 0);
}
}
const Kw = new _h();
function wj(t) {
const e = Array.isArray(t) ? t : [t];
return Kw.has(e) || Kw.set(e, new xj(e)), Kw.get(e);
}
const l8 = /* @__PURE__ */ new WeakMap();
function _1(t) {
let e = l8.get(t) || "";
return e || (Object.keys(t).forEach((n) => {
const r = t[n];
e += n, r instanceof xj ? e += r.id : r && typeof r == "object" ? e += _1(r) : e += r;
}), l8.set(t, e)), e;
}
function ice(t, e) {
return sI(`${e}_${_1(t)}`);
}
const fg = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), Cj = "_bAmBoO_";
function ace(t, e, n) {
var r, i;
if (Ta()) {
em(t, fg);
const a = document.createElement("div");
a.style.position = "fixed", a.style.left = "0", a.style.top = "0", e == null || e(a), document.body.appendChild(a), process.env.NODE_ENV !== "production" && (a.innerHTML = "Test", a.style.zIndex = "9999999");
const o = n ? n(a) : (r = getComputedStyle(a).content) === null || r === void 0 ? void 0 : r.includes(Cj);
return (i = a.parentNode) === null || i === void 0 || i.removeChild(a), b1(fg), o;
}
return !1;
}
let Jw;
function oce() {
return Jw === void 0 && (Jw = ace(`@layer ${fg} { .${fg} { content: "${Cj}"!important; } }`, (t) => {
t.className = fg;
})), Jw;
}
const u8 = {}, sce = process.env.NODE_ENV === "production", lce = process.env.NODE_ENV === "prerender", uce = !sce && !lce ? "css-dev-only-do-not-override" : "css", bc = /* @__PURE__ */ new Map();
function cce(t) {
bc.set(t, (bc.get(t) || 0) + 1);
}
function fce(t, e) {
typeof document < "u" && document.querySelectorAll(`style[${pj}="${t}"]`).forEach((r) => {
var i;
r[Bd] === e && ((i = r.parentNode) === null || i === void 0 || i.removeChild(r));
});
}
const dce = 0;
function hce(t, e) {
bc.set(t, (bc.get(t) || 0) - 1);
const n = Array.from(bc.keys()), r = n.filter((i) => (bc.get(i) || 0) <= 0);
n.length - r.length > dce && r.forEach((i) => {
fce(i, e), bc.delete(i);
});
}
const pce = (t, e, n, r) => {
const i = n.getDerivativeToken(t);
let a = I(I({}, i), e);
return r && (a = r(a)), a;
};
function vce(t, e) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : U({});
const r = NS(), i = L(() => I({}, ...e.value)), a = L(() => _1(i.value)), o = L(() => _1(n.value.override || u8));
return mj("token", L(() => [n.value.salt || "", t.value.id, a.value, o.value]), () => {
const {
salt: l = "",
override: u = u8,
formatToken: c,
getComputedToken: f
} = n.value, d = f ? f(i.value, u, t.value) : pce(i.value, u, t.value, c), h = ice(d, l);
d._tokenKey = h, cce(h);
const p = `${uce}-${sI(h)}`;
return d._hashId = p, [d, p];
}, (l) => {
var u;
hce(l[0]._tokenKey, (u = r.value) === null || u === void 0 ? void 0 : u.cache.instanceId);
});
}
var gce = {
animationIterationCount: 1,
aspectRatio: 1,
borderImageOutset: 1,
borderImageSlice: 1,
borderImageWidth: 1,
boxFlex: 1,
boxFlexGroup: 1,
boxOrdinalGroup: 1,
columnCount: 1,
columns: 1,
flex: 1,
flexGrow: 1,
flexPositive: 1,
flexShrink: 1,
flexNegative: 1,
flexOrder: 1,
gridRow: 1,
gridRowEnd: 1,
gridRowSpan: 1,
gridRowStart: 1,
gridColumn: 1,
gridColumnEnd: 1,
gridColumnSpan: 1,
gridColumnStart: 1,
msGridRow: 1,
msGridRowSpan: 1,
msGridColumn: 1,
msGridColumnSpan: 1,
fontWeight: 1,
lineHeight: 1,
opacity: 1,
order: 1,
orphans: 1,
tabSize: 1,
widows: 1,
zIndex: 1,
zoom: 1,
WebkitLineClamp: 1,
// SVG-related properties
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
}, Tj = "comm", Pj = "rule", $j = "decl", mce = "@import", yce = "@keyframes", bce = "@layer", Aj = Math.abs, lI = String.fromCharCode;
function Ej(t) {
return t.trim();
}
function b_(t, e, n) {
return t.replace(e, n);
}
function _ce(t, e, n) {
return t.indexOf(e, n);
}
function tm(t, e) {
return t.charCodeAt(e) | 0;
}
function nm(t, e, n) {
return t.slice(e, n);
}
function xs(t) {
return t.length;
}
function Oce(t) {
return t.length;
}
function my(t, e) {
return e.push(t), t;
}
var zS = 1, Oh = 1, Mj = 0, Pa = 0, Bn = 0, lp = "";
function uI(t, e, n, r, i, a, o, s) {
return { value: t, root: e, parent: n, type: r, props: i, children: a, line: zS, column: Oh, length: o, return: "", siblings: s };
}
function Sce() {
return Bn;
}
function xce() {
return Bn = Pa > 0 ? tm(lp, --Pa) : 0, Oh--, Bn === 10 && (Oh = 1, zS--), Bn;
}
function Ja() {
return Bn = Pa < Mj ? tm(lp, Pa++) : 0, Oh++, Bn === 10 && (Oh = 1, zS++), Bn;
}
function Gc() {
return tm(lp, Pa);
}
function __() {
return Pa;
}
function VS(t, e) {
return nm(lp, t, e);
}
function l2(t) {
switch (t) {
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
case 59:
case 123:
case 125:
return 4;
case 58:
return 3;
case 34:
case 39:
case 40:
case 91:
return 2;
case 41:
case 93:
return 1;
}
return 0;
}
function wce(t) {
return zS = Oh = 1, Mj = xs(lp = t), Pa = 0, [];
}
function Cce(t) {
return lp = "", t;
}
function eC(t) {
return Ej(VS(Pa - 1, u2(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
}
function Tce(t) {
for (; (Bn = Gc()) && Bn < 33; )
Ja();
return l2(t) > 2 || l2(Bn) > 3 ? "" : " ";
}
function Pce(t, e) {
for (; --e && Ja() && !(Bn < 48 || Bn > 102 || Bn > 57 && Bn < 65 || Bn > 70 && Bn < 97); )
;
return VS(t, __() + (e < 6 && Gc() == 32 && Ja() == 32));
}
function u2(t) {
for (; Ja(); )
switch (Bn) {
case t:
return Pa;
case 34:
case 39:
t !== 34 && t !== 39 && u2(Bn);
break;
case 40:
t === 41 && u2(t);
break;
case 92:
Ja();
break;
}
return Pa;
}
function $ce(t, e) {
for (; Ja() && t + Bn !== 57; )
if (t + Bn === 84 && Gc() === 47)
break;
return "/*" + VS(e, Pa - 1) + "*" + lI(t === 47 ? t : Ja());
}
function Ace(t) {
for (; !l2(Gc()); )
Ja();
return VS(t, Pa);
}
function Ece(t) {
return Cce(O_("", null, null, null, [""], t = wce(t), 0, [0], t));
}
function O_(t, e, n, r, i, a, o, s, l) {
for (var u = 0, c = 0, f = o, d = 0, h = 0, p = 0, v = 1, g = 1, m = 1, y = 0, b = "", _ = i, O = a, S = r, x = b; g; )
switch (p = y, y = Ja()) {
case 40:
if (p != 108 && tm(x, f - 1) == 58) {
_ce(x += b_(eC(y), "&", "&\f"), "&\f", Aj(u ? s[u - 1] : 0)) != -1 && (m = -1);
break;
}
case 34:
case 39:
case 91:
x += eC(y);
break;
case 9:
case 10:
case 13:
case 32:
x += Tce(p);
break;
case 92:
x += Pce(__() - 1, 7);
continue;
case 47:
switch (Gc()) {
case 42:
case 47:
my(Mce($ce(Ja(), __()), e, n, l), l);
break;
default:
x += "/";
}
break;
case 123 * v:
s[u++] = xs(x) * m;
case 125 * v:
case 59:
case 0:
switch (y) {
case 0:
case 125:
g = 0;
case 59 + c:
m == -1 && (x = b_(x, /\f/g, "")), h > 0 && xs(x) - f && my(h > 32 ? f8(x + ";", r, n, f - 1, l) : f8(b_(x, " ", "") + ";", r, n, f - 2, l), l);
break;
case 59:
x += ";";
default:
if (my(S = c8(x, e, n, u, c, i, s, b, _ = [], O = [], f, a), a), y === 123)
if (c === 0)
O_(x, e, S, S, _, a, f, s, O);
else
switch (d === 99 && tm(x, 3) === 110 ? 100 : d) {
case 100:
case 108:
case 109:
case 115:
O_(t, S, S, r && my(c8(t, S, S, 0, 0, i, s, b, i, _ = [], f, O), O), i, O, f, s, r ? _ : O);
break;
default:
O_(x, S, S, S, [""], O, 0, s, O);
}
}
u = c = h = 0, v = m = 1, b = x = "", f = o;
break;
case 58:
f = 1 + xs(x), h = p;
default:
if (v < 1) {
if (y == 123)
--v;
else if (y == 125 && v++ == 0 && xce() == 125)
continue;
}
switch (x += lI(y), y * v) {
case 38:
m = c > 0 ? 1 : (x += "\f", -1);
break;
case 44:
s[u++] = (xs(x) - 1) * m, m = 1;
break;
case 64:
Gc() === 45 && (x += eC(Ja())), d = Gc(), c = f = xs(b = x += Ace(__())), y++;
break;
case 45:
p === 45 && xs(x) == 2 && (v = 0);
}
}
return a;
}
function c8(t, e, n, r, i, a, o, s, l, u, c, f) {
for (var d = i - 1, h = i === 0 ? a : [""], p = Oce(h), v = 0, g = 0, m = 0; v < r; ++v)
for (var y = 0, b = nm(t, d + 1, d = Aj(g = o[v])), _ = t; y < p; ++y)
(_ = Ej(g > 0 ? h[y] + " " + b : b_(b, /&\f/g, h[y]))) && (l[m++] = _);
return uI(t, e, n, i === 0 ? Pj : s, l, u, c, f);
}
function Mce(t, e, n, r) {
return uI(t, e, n, Tj, lI(Sce()), nm(t, 2, -2), 0, r);
}
function f8(t, e, n, r, i) {
return uI(t, e, n, $j, nm(t, 0, r), nm(t, r + 1, -1), r, i);
}
function c2(t, e) {
for (var n = "", r = 0; r < t.length; r++)
n += e(t[r], r, t, e) || "";
return n;
}
function Ice(t, e, n, r) {
switch (t.type) {
case bce:
if (t.children.length) break;
case mce:
case $j:
return t.return = t.return || t.value;
case Tj:
return "";
case yce:
return t.return = t.value + "{" + c2(t.children, r) + "}";
case Pj:
if (!xs(t.value = t.props.join(","))) return "";
}
return xs(n = c2(t.children, r)) ? t.return = t.value + "{" + n + "}" : "";
}
function Ij(t, e) {
const {
path: n,
parentSelectors: r
} = e;
la(!1, `[Ant Design Vue CSS-in-JS] ${n ? `Error in '${n}': ` : ""}${t}${r.length ? ` Selector info: ${r.join(" -> ")}` : ""}`);
}
const Dce = (t, e, n) => {
if (t === "content") {
const r = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
(typeof e != "string" || ["normal", "none", "initial", "inherit", "unset"].indexOf(e) === -1 && !r.test(e) && (e.charAt(0) !== e.charAt(e.length - 1) || e.charAt(0) !== '"' && e.charAt(0) !== "'")) && Ij(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`, n);
}
}, Rce = (t, e, n) => {
t === "animation" && n.hashId && e !== "none" && Ij(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`, n);
}, d8 = "data-ant-cssinjs-cache-path", kce = "_FILE_STYLE__";
let jc, Dj = !0;
function Lce() {
var t;
if (!jc && (jc = {}, Ta())) {
const e = document.createElement("div");
e.className = d8, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
let n = getComputedStyle(e).content || "";
n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((i) => {
const [a, o] = i.split(":");
jc[a] = o;
});
const r = document.querySelector(`style[${d8}]`);
r && (Dj = !1, (t = r.parentNode) === null || t === void 0 || t.removeChild(r)), document.body.removeChild(e);
}
}
function Nce(t) {
return Lce(), !!jc[t];
}
function Bce(t) {
const e = jc[t];
let n = null;
if (e && Ta())
if (Dj)
n = kce;
else {
const r = document.querySelector(`style[${Hc}="${jc[t]}"]`);
r ? n = r.innerHTML : delete jc[t];
}
return [n, e];
}
const h8 = Ta(), Rj = "_skip_check_", kj = "_multi_value_";
function p8(t) {
return c2(Ece(t), Ice).replace(/\{%%%\:[^;];}/g, ";");
}
function zce(t) {
return typeof t == "object" && t && (Rj in t || kj in t);
}
function Vce(t, e, n) {
if (!e)
return t;
const r = `.${e}`, i = n === "low" ? `:where(${r})` : r;
return t.split(",").map((o) => {
var s;
const l = o.trim().split(/\s+/);
let u = l[0] || "";
const c = ((s = u.match(/^\w+/)) === null || s === void 0 ? void 0 : s[0]) || "";
return u = `${c}${i}${u.slice(c.length)}`, [u, ...l.slice(1)].join(" ");
}).join(",");
}
const f2 = /* @__PURE__ */ new Set();
process.env.NODE_ENV;
const d2 = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
root: n,
injectHash: r,
parentSelectors: i
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
root: !0,
parentSelectors: []
};
const {
hashId: a,
layer: o,
path: s,
hashPriority: l,
transformers: u = [],
linters: c = []
} = e;
let f = "", d = {};
function h(g) {
const m = g.getName(a);
if (!d[m]) {
const [y] = d2(g.style, e, {
root: !1,
parentSelectors: i
});
d[m] = `@keyframes ${g.getName(a)}${y}`;
}
}
function p(g) {
let m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
return g.forEach((y) => {
Array.isArray(y) ? p(y, m) : y && m.push(y);
}), m;
}
if (p(Array.isArray(t) ? t : [t]).forEach((g) => {
const m = typeof g == "string" && !n ? {} : g;
if (typeof m == "string")
f += `${m}
`;
else if (m._keyframe)
h(m);
else {
const y = u.reduce((b, _) => {
var O;
return ((O = _ == null ? void 0 : _.visit) === null || O === void 0 ? void 0 : O.call(_, b)) || b;
}, m);
Object.keys(y).forEach((b) => {
var _;
const O = y[b];
if (typeof O == "object" && O && (b !== "animationName" || !O._keyframe) && !zce(O)) {
let S = !1, x = b.trim(), C = !1;
(n || r) && a ? x.startsWith("@") ? S = !0 : x = Vce(b, a, l) : n && !a && (x === "&" || x === "") && (x = "", C = !0);
const [T, w] = d2(O, e, {
root: C,
injectHash: S,
parentSelectors: [...i, x]
});
d = I(I({}, d), w), f += `${x}${T}`;
} else {
let S = function(C, T) {
process.env.NODE_ENV !== "production" && (typeof O != "object" || !(O != null && O[Rj])) && [Dce, Rce, ...c].forEach(($) => $(C, T, {
path: s,
hashId: a,
parentSelectors: i
}));
const w = C.replace(/[A-Z]/g, ($) => `-${$.toLowerCase()}`);
let P = T;
!gce[C] && typeof P == "number" && P !== 0 && (P = `${P}px`), C === "animationName" && (T != null && T._keyframe) && (h(T), P = T.getName(a)), f += `${w}:${P};`;
};
const x = (_ = O == null ? void 0 : O.value) !== null && _ !== void 0 ? _ : O;
typeof O == "object" && (O != null && O[kj]) && Array.isArray(x) ? x.forEach((C) => {
S(b, C);
}) : S(b, x);
}
});
}
}), !n)
f = `{${f}}`;
else if (o && oce()) {
const g = o.split(",");
f = `@layer ${g[g.length - 1].trim()} {${f}}`, g.length > 1 && (f = `@layer ${o}{%%%:%}${f}`);
}
return [f, d];
};
function Fce(t, e) {
return sI(`${t.join("%")}${e}`);
}
function h2(t, e) {
const n = NS(), r = L(() => t.value.token._tokenKey), i = L(() => [r.value, ...t.value.path]);
let a = h8;
return process.env.NODE_ENV !== "production" && n.value.mock !== void 0 && (a = n.value.mock === "client"), mj(
"style",
i,
// Create cache if needed
() => {
const {
path: o,
hashId: s,
layer: l,
nonce: u,
clientOnly: c,
order: f = 0
} = t.value, d = i.value.join("|");
if (Nce(d)) {
const [x, C] = Bce(d);
if (x)
return [x, r.value, C, {}, c, f];
}
const h = e(), {
hashPriority: p,
container: v,
transformers: g,
linters: m,
cache: y
} = n.value, [b, _] = d2(h, {
hashId: s,
hashPriority: p,
layer: l,
path: o.join("-"),
transformers: g,
linters: m
}), O = p8(b), S = Fce(i.value, O);
if (a) {
const x = {
mark: Hc,
prepend: "queue",
attachTo: v,
priority: f
}, C = typeof u == "function" ? u() : u;
C && (x.csp = {
nonce: C
});
const T = em(O, S, x);
T[Bd] = y.instanceId, T.setAttribute(pj, r.value), process.env.NODE_ENV !== "production" && T.setAttribute(Hue, i.value.join("|")), Object.keys(_).forEach((w) => {
f2.has(w) || (f2.add(w), em(p8(_[w]), `_effect-${w}`, {
mark: Hc,
prepend: "queue",
attachTo: v
}));
});
}
return [O, r.value, S, _, c, f];
},
// Remove cache if no need
(o, s) => {
let [, , l] = o;
(s || n.value.autoClear) && h8 && b1(l, {
mark: Hc
});
}
), (o) => o;
}
class Ot {
constructor(e, n) {
this._keyframe = !0, this.name = e, this.style = n;
}
getName() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
return e ? `${e}-${this.name}` : this.name;
}
}
const Wce = "4.2.3", O1 = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
function Or(t, e) {
Qce(t) && (t = "100%");
var n = Hce(t);
return t = e === 360 ? t : Math.min(e, Math.max(0, parseFloat(t))), n && (t = parseInt(String(t * e), 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : (e === 360 ? t = (t < 0 ? t % e + e : t % e) / parseFloat(String(e)) : t = t % e / parseFloat(String(e)), t);
}
function yy(t) {
return Math.min(1, Math.max(0, t));
}
function Qce(t) {
return typeof t == "string" && t.indexOf(".") !== -1 && parseFloat(t) === 1;
}
function Hce(t) {
return typeof t == "string" && t.indexOf("%") !== -1;
}
function Lj(t) {
return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
}
function by(t) {
return t <= 1 ? "".concat(Number(t) * 100, "%") : t;
}
function Mc(t) {
return t.length === 1 ? "0" + t : String(t);
}
function Gce(t, e, n) {
return {
r: Or(t, 255) * 255,
g: Or(e, 255) * 255,
b: Or(n, 255) * 255
};
}
function v8(t, e, n) {
t = Or(t, 255), e = Or(e, 255), n = Or(n, 255);
var r = Math.max(t, e, n), i = Math.min(t, e, n), a = 0, o = 0, s = (r + i) / 2;
if (r === i)
o = 0, a = 0;
else {
var l = r - i;
switch (o = s > 0.5 ? l / (2 - r - i) : l / (r + i), r) {
case t:
a = (e - n) / l + (e < n ? 6 : 0);
break;
case e:
a = (n - t) / l + 2;
break;
case n:
a = (t - e) / l + 4;
break;
}
a /= 6;
}
return { h: a, s: o, l: s };
}
function tC(t, e, n) {
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * (6 * n) : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
}
function jce(t, e, n) {
var r, i, a;
if (t = Or(t, 360), e = Or(e, 100), n = Or(n, 100), e === 0)
i = n, a = n, r = n;
else {
var o = n < 0.5 ? n * (1 + e) : n + e - n * e, s = 2 * n - o;
r = tC(s, o, t + 1 / 3), i = tC(s, o, t), a = tC(s, o, t - 1 / 3);
}
return { r: r * 255, g: i * 255, b: a * 255 };
}
function p2(t, e, n) {
t = Or(t, 255), e = Or(e, 255), n = Or(n, 255);
var r = Math.max(t, e, n), i = Math.min(t, e, n), a = 0, o = r, s = r - i, l = r === 0 ? 0 : s / r;
if (r === i)
a = 0;
else {
switch (r) {
case t:
a = (e - n) / s + (e < n ? 6 : 0);
break;
case e:
a = (n - t) / s + 2;
break;
case n:
a = (t - e) / s + 4;
break;
}
a /= 6;
}
return { h: a, s: l, v: o };
}
function Zce(t, e, n) {
t = Or(t, 360) * 6, e = Or(e, 100), n = Or(n, 100);
var r = Math.floor(t), i = t - r, a = n * (1 - e), o = n * (1 - i * e), s = n * (1 - (1 - i) * e), l = r % 6, u = [n, o, a, a, s, n][l], c = [s, n, n, o, a, a][l], f = [a, a, s, n, n, o][l];
return { r: u * 255, g: c * 255, b: f * 255 };
}
function v2(t, e, n, r) {
var i = [
Mc(Math.round(t).toString(16)),
Mc(Math.round(e).toString(16)),
Mc(Math.round(n).toString(16))
];
return r && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("");
}
function Uce(t, e, n, r, i) {
var a = [
Mc(Math.round(t).toString(16)),
Mc(Math.round(e).toString(16)),
Mc(Math.round(n).toString(16)),
Mc(Xce(r))
];
return i && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
}
function Xce(t) {
return Math.round(parseFloat(t) * 255).toString(16);
}
function g8(t) {
return Di(t) / 255;
}
function Di(t) {
return parseInt(t, 16);
}
function Yce(t) {
return {
r: t >> 16,
g: (t & 65280) >> 8,
b: t & 255
};
}
var g2 = {
aliceblue: "#f0f8ff",
antiquewhite: "#faebd7",
aqua: "#00ffff",
aquamarine: "#7fffd4",
azure: "#f0ffff",
beige: "#f5f5dc",
bisque: "#ffe4c4",
black: "#000000",
blanchedalmond: "#ffebcd",
blue: "#0000ff",
blueviolet: "#8a2be2",
brown: "#a52a2a",
burlywood: "#deb887",
cadetblue: "#5f9ea0",
chartreuse: "#7fff00",
chocolate: "#d2691e",
coral: "#ff7f50",
cornflowerblue: "#6495ed",
cornsilk: "#fff8dc",
crimson: "#dc143c",
cyan: "#00ffff",
darkblue: "#00008b",
darkcyan: "#008b8b",
darkgoldenrod: "#b8860b",
darkgray: "#a9a9a9",
darkgreen: "#006400",
darkgrey: "#a9a9a9",
darkkhaki: "#bdb76b",
darkmagenta: "#8b008b",
darkolivegreen: "#556b2f",
darkorange: "#ff8c00",
darkorchid: "#9932cc",
darkred: "#8b0000",
darksalmon: "#e9967a",
darkseagreen: "#8fbc8f",
darkslateblue: "#483d8b",
darkslategray: "#2f4f4f",
darkslategrey: "#2f4f4f",
darkturquoise: "#00ced1",
darkviolet: "#9400d3",
deeppink: "#ff1493",
deepskyblue: "#00bfff",
dimgray: "#696969",
dimgrey: "#696969",
dodgerblue: "#1e90ff",
firebrick: "#b22222",
floralwhite: "#fffaf0",
forestgreen: "#228b22",
fuchsia: "#ff00ff",
gainsboro: "#dcdcdc",
ghostwhite: "#f8f8ff",
goldenrod: "#daa520",
gold: "#ffd700",
gray: "#808080",
green: "#008000",
greenyellow: "#adff2f",
grey: "#808080",
honeydew: "#f0fff0",
hotpink: "#ff69b4",
indianred: "#cd5c5c",
indigo: "#4b0082",
ivory: "#fffff0",
khaki: "#f0e68c",
lavenderblush: "#fff0f5",
lavender: "#e6e6fa",
lawngreen: "#7cfc00",
lemonchiffon: "#fffacd",
lightblue: "#add8e6",
lightcoral: "#f08080",
lightcyan: "#e0ffff",
lightgoldenrodyellow: "#fafad2",
lightgray: "#d3d3d3",
lightgreen: "#90ee90",
lightgrey: "#d3d3d3",
lightpink: "#ffb6c1",
lightsalmon: "#ffa07a",
lightseagreen: "#20b2aa",
lightskyblue: "#87cefa",
lightslategray: "#778899",
lightslategrey: "#778899",
lightsteelblue: "#b0c4de",
lightyellow: "#ffffe0",
lime: "#00ff00",
limegreen: "#32cd32",
linen: "#faf0e6",
magenta: "#ff00ff",
maroon: "#800000",
mediumaquamarine: "#66cdaa",
mediumblue: "#0000cd",
mediumorchid: "#ba55d3",
mediumpurple: "#9370db",
mediumseagreen: "#3cb371",
mediumslateblue: "#7b68ee",
mediumspringgreen: "#00fa9a",
mediumturquoise: "#48d1cc",
mediumvioletred: "#c71585",
midnightblue: "#191970",
mintcream: "#f5fffa",
mistyrose: "#ffe4e1",
moccasin: "#ffe4b5",
navajowhite: "#ffdead",
navy: "#000080",
oldlace: "#fdf5e6",
olive: "#808000",
olivedrab: "#6b8e23",
orange: "#ffa500",
orangered: "#ff4500",
orchid: "#da70d6",
palegoldenrod: "#eee8aa",
palegreen: "#98fb98",
paleturquoise: "#afeeee",
palevioletred: "#db7093",
papayawhip: "#ffefd5",
peachpuff: "#ffdab9",
peru: "#cd853f",
pink: "#ffc0cb",
plum: "#dda0dd",
powderblue: "#b0e0e6",
purple: "#800080",
rebeccapurple: "#663399",
red: "#ff0000",
rosybrown: "#bc8f8f",
royalblue: "#4169e1",
saddlebrown: "#8b4513",
salmon: "#fa8072",
sandybrown: "#f4a460",
seagreen: "#2e8b57",
seashell: "#fff5ee",
sienna: "#a0522d",
silver: "#c0c0c0",
skyblue: "#87ceeb",
slateblue: "#6a5acd",
slategray: "#708090",
slategrey: "#708090",
snow: "#fffafa",
springgreen: "#00ff7f",
steelblue: "#4682b4",
tan: "#d2b48c",
teal: "#008080",
thistle: "#d8bfd8",
tomato: "#ff6347",
turquoise: "#40e0d0",
violet: "#ee82ee",
wheat: "#f5deb3",
white: "#ffffff",
whitesmoke: "#f5f5f5",
yellow: "#ffff00",
yellowgreen: "#9acd32"
};
function Td(t) {
var e = { r: 0, g: 0, b: 0 }, n = 1, r = null, i = null, a = null, o = !1, s = !1;
return typeof t == "string" && (t = Jce(t)), typeof t == "object" && (vs(t.r) && vs(t.g) && vs(t.b) ? (e = Gce(t.r, t.g, t.b), o = !0, s = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : vs(t.h) && vs(t.s) && vs(t.v) ? (r = by(t.s), i = by(t.v), e = Zce(t.h, r, i), o = !0, s = "hsv") : vs(t.h) && vs(t.s) && vs(t.l) && (r = by(t.s), a = by(t.l), e = jce(t.h, r, a), o = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(t, "a") && (n = t.a)), n = Lj(n), {
ok: o,
format: t.format || s,
r: Math.min(255, Math.max(e.r, 0)),
g: Math.min(255, Math.max(e.g, 0)),
b: Math.min(255, Math.max(e.b, 0)),
a: n
};
}
var qce = "[-\\+]?\\d+%?", Kce = "[-\\+]?\\d*\\.\\d+%?", Il = "(?:".concat(Kce, ")|(?:").concat(qce, ")"), nC = "[\\s|\\(]+(".concat(Il, ")[,|\\s]+(").concat(Il, ")[,|\\s]+(").concat(Il, ")\\s*\\)?"), rC = "[\\s|\\(]+(".concat(Il, ")[,|\\s]+(").concat(Il, ")[,|\\s]+(").concat(Il, ")[,|\\s]+(").concat(Il, ")\\s*\\)?"), Ga = {
CSS_UNIT: new RegExp(Il),
rgb: new RegExp("rgb" + nC),
rgba: new RegExp("rgba" + rC),
hsl: new RegExp("hsl" + nC),
hsla: new RegExp("hsla" + rC),
hsv: new RegExp("hsv" + nC),
hsva: new RegExp("hsva" + rC),
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
function Jce(t) {
if (t = t.trim().toLowerCase(), t.length === 0)
return !1;
var e = !1;
if (g2[t])
t = g2[t], e = !0;
else if (t === "transparent")
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
var n = Ga.rgb.exec(t);
return n ? { r: n[1], g: n[2], b: n[3] } : (n = Ga.rgba.exec(t), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = Ga.hsl.exec(t), n ? { h: n[1], s: n[2], l: n[3] } : (n = Ga.hsla.exec(t), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = Ga.hsv.exec(t), n ? { h: n[1], s: n[2], v: n[3] } : (n = Ga.hsva.exec(t), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = Ga.hex8.exec(t), n ? {
r: Di(n[1]),
g: Di(n[2]),
b: Di(n[3]),
a: g8(n[4]),
format: e ? "name" : "hex8"
} : (n = Ga.hex6.exec(t), n ? {
r: Di(n[1]),
g: Di(n[2]),
b: Di(n[3]),
format: e ? "name" : "hex"
} : (n = Ga.hex4.exec(t), n ? {
r: Di(n[1] + n[1]),
g: Di(n[2] + n[2]),
b: Di(n[3] + n[3]),
a: g8(n[4] + n[4]),
format: e ? "name" : "hex8"
} : (n = Ga.hex3.exec(t), n ? {
r: Di(n[1] + n[1]),
g: Di(n[2] + n[2]),
b: Di(n[3] + n[3]),
format: e ? "name" : "hex"
} : !1)))))))));
}
function vs(t) {
return !!Ga.CSS_UNIT.exec(String(t));
}
var en = (
/** @class */
function() {
function t(e, n) {
e === void 0 && (e = ""), n === void 0 && (n = {});
var r;
if (e instanceof t)
return e;
typeof e == "number" && (e = Yce(e)), this.originalInput = e;
var i = Td(e);
this.originalInput = e, this.r = i.r, this.g = i.g, this.b = i.b, this.a = i.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : i.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = i.ok;
}
return t.prototype.isDark = function() {
return this.getBrightness() < 128;
}, t.prototype.isLight = function() {
return !this.isDark();
}, t.prototype.getBrightness = function() {
var e = this.toRgb();
return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
}, t.prototype.getLuminance = function() {
var e = this.toRgb(), n, r, i, a = e.r / 255, o = e.g / 255, s = e.b / 255;
return a <= 0.03928 ? n = a / 12.92 : n = Math.pow((a + 0.055) / 1.055, 2.4), o <= 0.03928 ? r = o / 12.92 : r = Math.pow((o + 0.055) / 1.055, 2.4), s <= 0.03928 ? i = s / 12.92 : i = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * i;
}, t.prototype.getAlpha = function() {
return this.a;
}, t.prototype.setAlpha = function(e) {
return this.a = Lj(e), this.roundA = Math.round(100 * this.a) / 100, this;
}, t.prototype.isMonochrome = function() {
var e = this.toHsl().s;
return e === 0;
}, t.prototype.toHsv = function() {
var e = p2(this.r, this.g, this.b);
return { h: e.h * 360, s: e.s, v: e.v, a: this.a };
}, t.prototype.toHsvString = function() {
var e = p2(this.r, this.g, this.b), n = Math.round(e.h * 360), r = Math.round(e.s * 100), i = Math.round(e.v * 100);
return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(i, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(i, "%, ").concat(this.roundA, ")");
}, t.prototype.toHsl = function() {
var e = v8(this.r, this.g, this.b);
return { h: e.h * 360, s: e.s, l: e.l, a: this.a };
}, t.prototype.toHslString = function() {
var e = v8(this.r, this.g, this.b), n = Math.round(e.h * 360), r = Math.round(e.s * 100), i = Math.round(e.l * 100);
return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(i, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(i, "%, ").concat(this.roundA, ")");
}, t.prototype.toHex = function(e) {
return e === void 0 && (e = !1), v2(this.r, this.g, this.b, e);
}, t.prototype.toHexString = function(e) {
return e === void 0 && (e = !1), "#" + this.toHex(e);
}, t.prototype.toHex8 = function(e) {
return e === void 0 && (e = !1), Uce(this.r, this.g, this.b, this.a, e);
}, t.prototype.toHex8String = function(e) {
return e === void 0 && (e = !1), "#" + this.toHex8(e);
}, t.prototype.toHexShortString = function(e) {
return e === void 0 && (e = !1), this.a === 1 ? this.toHexString(e) : this.toHex8String(e);
}, t.prototype.toRgb = function() {
return {
r: Math.round(this.r),
g: Math.round(this.g),
b: Math.round(this.b),
a: this.a
};
}, t.prototype.toRgbString = function() {
var e = Math.round(this.r), n = Math.round(this.g), r = Math.round(this.b);
return this.a === 1 ? "rgb(".concat(e, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(e, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
}, t.prototype.toPercentageRgb = function() {
var e = function(n) {
return "".concat(Math.round(Or(n, 255) * 100), "%");
};
return {
r: e(this.r),
g: e(this.g),
b: e(this.b),
a: this.a
};
}, t.prototype.toPercentageRgbString = function() {
var e = function(n) {
return Math.round(Or(n, 255) * 100);
};
return this.a === 1 ? "rgb(".concat(e(this.r), "%, ").concat(e(this.g), "%, ").concat(e(this.b), "%)") : "rgba(".concat(e(this.r), "%, ").concat(e(this.g), "%, ").concat(e(this.b), "%, ").concat(this.roundA, ")");
}, t.prototype.toName = function() {
if (this.a === 0)
return "transparent";
if (this.a < 1)
return !1;
for (var e = "#" + v2(this.r, this.g, this.b, !1), n = 0, r = Object.entries(g2); n < r.length; n++) {
var i = r[n], a = i[0], o = i[1];
if (e === o)
return a;
}
return !1;
}, t.prototype.toString = function(e) {
var n = !!e;
e = e ?? this.format;
var r = !1, i = this.a < 1 && this.a >= 0, a = !n && i && (e.startsWith("hex") || e === "name");
return a ? e === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (r = this.toRgbString()), e === "prgb" && (r = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (r = this.toHexString()), e === "hex3" && (r = this.toHexString(!0)), e === "hex4" && (r = this.toHex8String(!0)), e === "hex8" && (r = this.toHex8String()), e === "name" && (r = this.toName()), e === "hsl" && (r = this.toHslString()), e === "hsv" && (r = this.toHsvString()), r || this.toHexString());
}, t.prototype.toNumber = function() {
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
}, t.prototype.clone = function() {
return new t(this.toString());
}, t.prototype.lighten = function(e) {
e === void 0 && (e = 10);
var n = this.toHsl();
return n.l += e / 100, n.l = yy(n.l), new t(n);
}, t.prototype.brighten = function(e) {
e === void 0 && (e = 10);
var n = this.toRgb();
return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(e / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(e / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(e / 100)))), new t(n);
}, t.prototype.darken = function(e) {
e === void 0 && (e = 10);
var n = this.toHsl();
return n.l -= e / 100, n.l = yy(n.l), new t(n);
}, t.prototype.tint = function(e) {
return e === void 0 && (e = 10), this.mix("white", e);
}, t.prototype.shade = function(e) {
return e === void 0 && (e = 10), this.mix("black", e);
}, t.prototype.desaturate = function(e) {
e === void 0 && (e = 10);
var n = this.toHsl();
return n.s -= e / 100, n.s = yy(n.s), new t(n);
}, t.prototype.saturate = function(e) {
e === void 0 && (e = 10);
var n = this.toHsl();
return n.s += e / 100, n.s = yy(n.s), new t(n);
}, t.prototype.greyscale = function() {
return this.desaturate(100);
}, t.prototype.spin = function(e) {
var n = this.toHsl(), r = (n.h + e) % 360;
return n.h = r < 0 ? 360 + r : r, new t(n);
}, t.prototype.mix = function(e, n) {
n === void 0 && (n = 50);
var r = this.toRgb(), i = new t(e).toRgb(), a = n / 100, o = {
r: (i.r - r.r) * a + r.r,
g: (i.g - r.g) * a + r.g,
b: (i.b - r.b) * a + r.b,
a: (i.a - r.a) * a + r.a
};
return new t(o);
}, t.prototype.analogous = function(e, n) {
e === void 0 && (e = 6), n === void 0 && (n = 30);
var r = this.toHsl(), i = 360 / n, a = [this];
for (r.h = (r.h - (i * e >> 1) + 720) % 360; --e; )
r.h = (r.h + i) % 360, a.push(new t(r));
return a;
}, t.prototype.complement = function() {
var e = this.toHsl();
return e.h = (e.h + 180) % 360, new t(e);
}, t.prototype.monochromatic = function(e) {
e === void 0 && (e = 6);
for (var n = this.toHsv(), r = n.h, i = n.s, a = n.v, o = [], s = 1 / e; e--; )
o.push(new t({ h: r, s: i, v: a })), a = (a + s) % 1;
return o;
}, t.prototype.splitcomplement = function() {
var e = this.toHsl(), n = e.h;
return [
this,
new t({ h: (n + 72) % 360, s: e.s, l: e.l }),
new t({ h: (n + 216) % 360, s: e.s, l: e.l })
];
}, t.prototype.onBackground = function(e) {
var n = this.toRgb(), r = new t(e).toRgb(), i = n.a + r.a * (1 - n.a);
return new t({
r: (n.r * n.a + r.r * r.a * (1 - n.a)) / i,
g: (n.g * n.a + r.g * r.a * (1 - n.a)) / i,
b: (n.b * n.a + r.b * r.a * (1 - n.a)) / i,
a: i
});
}, t.prototype.triad = function() {
return this.polyad(3);
}, t.prototype.tetrad = function() {
return this.polyad(4);
}, t.prototype.polyad = function(e) {
for (var n = this.toHsl(), r = n.h, i = [this], a = 360 / e, o = 1; o < e; o++)
i.push(new t({ h: (r + o * a) % 360, s: n.s, l: n.l }));
return i;
}, t.prototype.equals = function(e) {
return this.toRgbString() === new t(e).toRgbString();
}, t;
}()
), _y = 2, m8 = 0.16, efe = 0.05, tfe = 0.05, nfe = 0.15, Nj = 5, Bj = 4, rfe = [{
index: 7,
opacity: 0.15
}, {
index: 6,
opacity: 0.25
}, {
index: 5,
opacity: 0.3
}, {
index: 5,
opacity: 0.45
}, {
index: 5,
opacity: 0.65
}, {
index: 5,
opacity: 0.85
}, {
index: 4,
opacity: 0.9
}, {
index: 3,
opacity: 0.95
}, {
index: 2,
opacity: 0.97
}, {
index: 1,
opacity: 0.98
}];
function y8(t) {
var e = t.r, n = t.g, r = t.b, i = p2(e, n, r);
return {
h: i.h * 360,
s: i.s,
v: i.v
};
}
function Oy(t) {
var e = t.r, n = t.g, r = t.b;
return "#".concat(v2(e, n, r, !1));
}
function ife(t, e, n) {
var r = n / 100, i = {
r: (e.r - t.r) * r + t.r,
g: (e.g - t.g) * r + t.g,
b: (e.b - t.b) * r + t.b
};
return i;
}
function b8(t, e, n) {
var r;
return Math.round(t.h) >= 60 && Math.round(t.h) <= 240 ? r = n ? Math.round(t.h) - _y * e : Math.round(t.h) + _y * e : r = n ? Math.round(t.h) + _y * e : Math.round(t.h) - _y * e, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
}
function _8(t, e, n) {
if (t.h === 0 && t.s === 0)
return t.s;
var r;
return n ? r = t.s - m8 * e : e === Bj ? r = t.s + m8 : r = t.s + efe * e, r > 1 && (r = 1), n && e === Nj && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
}
function O8(t, e, n) {
var r;
return n ? r = t.v + tfe * e : r = t.v - nfe * e, r > 1 && (r = 1), Number(r.toFixed(2));
}
function df(t) {
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = Td(t), i = Nj; i > 0; i -= 1) {
var a = y8(r), o = Oy(Td({
h: b8(a, i, !0),
s: _8(a, i, !0),
v: O8(a, i, !0)
}));
n.push(o);
}
n.push(Oy(r));
for (var s = 1; s <= Bj; s += 1) {
var l = y8(r), u = Oy(Td({
h: b8(l, s),
s: _8(l, s),
v: O8(l, s)
}));
n.push(u);
}
return e.theme === "dark" ? rfe.map(function(c) {
var f = c.index, d = c.opacity, h = Oy(ife(Td(e.backgroundColor || "#141414"), Td(n[f]), d * 100));
return h;
}) : n;
}
var iC = {
red: "#F5222D",
volcano: "#FA541C",
orange: "#FA8C16",
gold: "#FAAD14",
yellow: "#FADB14",
lime: "#A0D911",
green: "#52C41A",
cyan: "#13C2C2",
blue: "#1890FF",
geekblue: "#2F54EB",
purple: "#722ED1",
magenta: "#EB2F96",
grey: "#666666"
}, S_ = {}, aC = {};
Object.keys(iC).forEach(function(t) {
S_[t] = df(iC[t]), S_[t].primary = S_[t][5], aC[t] = df(iC[t], {
theme: "dark",
backgroundColor: "#141414"
}), aC[t].primary = aC[t][5];
});
var afe = S_.blue;
const ofe = (t) => {
const {
controlHeight: e
} = t;
return {
controlHeightSM: e * 0.75,
controlHeightXS: e * 0.5,
controlHeightLG: e * 1.25
};
};
function sfe(t) {
const {
sizeUnit: e,
sizeStep: n
} = t;
return {
sizeXXL: e * (n + 8),
sizeXL: e * (n + 4),
sizeLG: e * (n + 2),
sizeMD: e * (n + 1),
sizeMS: e * n,
size: e * n,
sizeSM: e * (n - 1),
sizeXS: e * (n - 2),
sizeXXS: e * (n - 3)
// 4
};
}
const zj = {
blue: "#1677ff",
purple: "#722ED1",
cyan: "#13C2C2",
green: "#52C41A",
magenta: "#EB2F96",
pink: "#eb2f96",
red: "#F5222D",
orange: "#FA8C16",
yellow: "#FADB14",
volcano: "#FA541C",
geekblue: "#2F54EB",
gold: "#FAAD14",
lime: "#A0D911"
}, FS = I(I({}, zj), {
// Color
colorPrimary: "#1677ff",
colorSuccess: "#52c41a",
colorWarning: "#faad14",
colorError: "#ff4d4f",
colorInfo: "#1677ff",
colorTextBase: "",
colorBgBase: "",
// Font
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,
fontSize: 14,
// Line
lineWidth: 1,
lineType: "solid",
// Motion
motionUnit: 0.1,
motionBase: 0,
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
// Radius
borderRadius: 6,
// Size
sizeUnit: 4,
sizeStep: 4,
sizePopupArrow: 16,
// Control Base
controlHeight: 32,
// zIndex
zIndexBase: 0,
zIndexPopupBase: 1e3,
// Image
opacityImage: 1,
// Wireframe
wireframe: !1
});
function lfe(t, e) {
let {
generateColorPalettes: n,
generateNeutralColorPalettes: r
} = e;
const {
colorSuccess: i,
colorWarning: a,
colorError: o,
colorInfo: s,
colorPrimary: l,
colorBgBase: u,
colorTextBase: c
} = t, f = n(l), d = n(i), h = n(a), p = n(o), v = n(s), g = r(u, c);
return I(I({}, g), {
colorPrimaryBg: f[1],
colorPrimaryBgHover: f[2],
colorPrimaryBorder: f[3],
colorPrimaryBorderHover: f[4],
colorPrimaryHover: f[5],
colorPrimary: f[6],
colorPrimaryActive: f[7],
colorPrimaryTextHover: f[8],
colorPrimaryText: f[9],
colorPrimaryTextActive: f[10],
colorSuccessBg: d[1],
colorSuccessBgHover: d[2],
colorSuccessBorder: d[3],
colorSuccessBorderHover: d[4],
colorSuccessHover: d[4],
colorSuccess: d[6],
colorSuccessActive: d[7],
colorSuccessTextHover: d[8],
colorSuccessText: d[9],
colorSuccessTextActive: d[10],
colorErrorBg: p[1],
colorErrorBgHover: p[2],
colorErrorBorder: p[3],
colorErrorBorderHover: p[4],
colorErrorHover: p[5],
colorError: p[6],
colorErrorActive: p[7],
colorErrorTextHover: p[8],
colorErrorText: p[9],
colorErrorTextActive: p[10],
colorWarningBg: h[1],
colorWarningBgHover: h[2],
colorWarningBorder: h[3],
colorWarningBorderHover: h[4],
colorWarningHover: h[4],
colorWarning: h[6],
colorWarningActive: h[7],
colorWarningTextHover: h[8],
colorWarningText: h[9],
colorWarningTextActive: h[10],
colorInfoBg: v[1],
colorInfoBgHover: v[2],
colorInfoBorder: v[3],
colorInfoBorderHover: v[4],
colorInfoHover: v[4],
colorInfo: v[6],
colorInfoActive: v[7],
colorInfoTextHover: v[8],
colorInfoText: v[9],
colorInfoTextActive: v[10],
colorBgMask: new en("#000").setAlpha(0.45).toRgbString(),
colorWhite: "#fff"
});
}
const ufe = (t) => {
let e = t, n = t, r = t, i = t;
return t < 6 && t >= 5 ? e = t + 1 : t < 16 && t >= 6 ? e = t + 2 : t >= 16 && (e = 16), t < 7 && t >= 5 ? n = 4 : t < 8 && t >= 7 ? n = 5 : t < 14 && t >= 8 ? n = 6 : t < 16 && t >= 14 ? n = 7 : t >= 16 && (n = 8), t < 6 && t >= 2 ? r = 1 : t >= 6 && (r = 2), t > 4 && t < 8 ? i = 4 : t >= 8 && (i = 6), {
borderRadius: t > 16 ? 16 : t,
borderRadiusXS: r,
borderRadiusSM: n,
borderRadiusLG: e,
borderRadiusOuter: i
};
};
function cfe(t) {
const {
motionUnit: e,
motionBase: n,
borderRadius: r,
lineWidth: i
} = t;
return I({
// motion
motionDurationFast: `${(n + e).toFixed(1)}s`,
motionDurationMid: `${(n + e * 2).toFixed(1)}s`,
motionDurationSlow: `${(n + e * 3).toFixed(1)}s`,
// line
lineWidthBold: i + 1
}, ufe(r));
}
const gs = (t, e) => new en(t).setAlpha(e).toRgbString(), Up = (t, e) => new en(t).darken(e).toHexString(), ffe = (t) => {
const e = df(t);
return {
1: e[0],
2: e[1],
3: e[2],
4: e[3],
5: e[4],
6: e[5],
7: e[6],
8: e[4],
9: e[5],
10: e[6]
// 8: colors[7],
// 9: colors[8],
// 10: colors[9],
};
}, dfe = (t, e) => {
const n = t || "#fff", r = e || "#000";
return {
colorBgBase: n,
colorTextBase: r,
colorText: gs(r, 0.88),
colorTextSecondary: gs(r, 0.65),
colorTextTertiary: gs(r, 0.45),
colorTextQuaternary: gs(r, 0.25),
colorFill: gs(r, 0.15),
colorFillSecondary: gs(r, 0.06),
colorFillTertiary: gs(r, 0.04),
colorFillQuaternary: gs(r, 0.02),
colorBgLayout: Up(n, 4),
colorBgContainer: Up(n, 0),
colorBgElevated: Up(n, 0),
colorBgSpotlight: gs(r, 0.85),
colorBorder: Up(n, 15),
colorBorderSecondary: Up(n, 6)
};
};
function hfe(t) {
const e = new Array(10).fill(null).map((n, r) => {
const i = r - 1, a = t * Math.pow(2.71828, i / 5), o = r > 1 ? Math.floor(a) : Math.ceil(a);
return Math.floor(o / 2) * 2;
});
return e[1] = t, e.map((n) => {
const r = n + 8;
return {
size: n,
lineHeight: r / n
};
});
}
const pfe = (t) => {
const e = hfe(t), n = e.map((i) => i.size), r = e.map((i) => i.lineHeight);
return {
fontSizeSM: n[0],
fontSize: n[1],
fontSizeLG: n[2],
fontSizeXL: n[3],
fontSizeHeading1: n[6],
fontSizeHeading2: n[5],
fontSizeHeading3: n[4],
fontSizeHeading4: n[3],
fontSizeHeading5: n[2],
lineHeight: r[1],
lineHeightLG: r[2],
lineHeightSM: r[0],
lineHeightHeading1: r[6],
lineHeightHeading2: r[5],
lineHeightHeading3: r[4],
lineHeightHeading4: r[3],
lineHeightHeading5: r[2]
};
};
function vfe(t) {
const e = Object.keys(zj).map((n) => {
const r = df(t[n]);
return new Array(10).fill(1).reduce((i, a, o) => (i[`${n}-${o + 1}`] = r[o], i), {});
}).reduce((n, r) => (n = I(I({}, n), r), n), {});
return I(I(I(I(I(I(I({}, t), e), lfe(t, {
generateColorPalettes: ffe,
generateNeutralColorPalettes: dfe
})), pfe(t.fontSize)), sfe(t)), ofe(t)), cfe(t));
}
function oC(t) {
return t >= 0 && t <= 255;
}
function Sy(t, e) {
const {
r: n,
g: r,
b: i,
a
} = new en(t).toRgb();
if (a < 1)
return t;
const {
r: o,
g: s,
b: l
} = new en(e).toRgb();
for (let u = 0.01; u <= 1; u += 0.01) {
const c = Math.round((n - o * (1 - u)) / u), f = Math.round((r - s * (1 - u)) / u), d = Math.round((i - l * (1 - u)) / u);
if (oC(c) && oC(f) && oC(d))
return new en({
r: c,
g: f,
b: d,
a: Math.round(u * 100) / 100
}).toRgbString();
}
return new en({
r: n,
g: r,
b: i,
a: 1
}).toRgbString();
}
var gfe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
function mfe(t) {
const {
override: e
} = t, n = gfe(t, ["override"]), r = I({}, e);
Object.keys(FS).forEach((h) => {
delete r[h];
});
const i = I(I({}, n), r), a = 480, o = 576, s = 768, l = 992, u = 1200, c = 1600, f = 2e3;
return I(I(I({}, i), {
colorLink: i.colorInfoText,
colorLinkHover: i.colorInfoHover,
colorLinkActive: i.colorInfoActive,
// ============== Background ============== //
colorFillContent: i.colorFillSecondary,
colorFillContentHover: i.colorFill,
colorFillAlter: i.colorFillQuaternary,
colorBgContainerDisabled: i.colorFillTertiary,
// ============== Split ============== //
colorBorderBg: i.colorBgContainer,
colorSplit: Sy(i.colorBorderSecondary, i.colorBgContainer),
// ============== Text ============== //
colorTextPlaceholder: i.colorTextQuaternary,
colorTextDisabled: i.colorTextQuaternary,
colorTextHeading: i.colorText,
colorTextLabel: i.colorTextSecondary,
colorTextDescription: i.colorTextTertiary,
colorTextLightSolid: i.colorWhite,
colorHighlight: i.colorError,
colorBgTextHover: i.colorFillSecondary,
colorBgTextActive: i.colorFill,
colorIcon: i.colorTextTertiary,
colorIconHover: i.colorText,
colorErrorOutline: Sy(i.colorErrorBg, i.colorBgContainer),
colorWarningOutline: Sy(i.colorWarningBg, i.colorBgContainer),
// Font
fontSizeIcon: i.fontSizeSM,
// Control
lineWidth: i.lineWidth,
controlOutlineWidth: i.lineWidth * 2,
// Checkbox size and expand icon size
controlInteractiveSize: i.controlHeight / 2,
controlItemBgHover: i.colorFillTertiary,
controlItemBgActive: i.colorPrimaryBg,
controlItemBgActiveHover: i.colorPrimaryBgHover,
controlItemBgActiveDisabled: i.colorFill,
controlTmpOutline: i.colorFillQuaternary,
controlOutline: Sy(i.colorPrimaryBg, i.colorBgContainer),
lineType: i.lineType,
borderRadius: i.borderRadius,
borderRadiusXS: i.borderRadiusXS,
borderRadiusSM: i.borderRadiusSM,
borderRadiusLG: i.borderRadiusLG,
fontWeightStrong: 600,
opacityLoading: 0.65,
linkDecoration: "none",
linkHoverDecoration: "none",
linkFocusDecoration: "none",
controlPaddingHorizontal: 12,
controlPaddingHorizontalSM: 8,
paddingXXS: i.sizeXXS,
paddingXS: i.sizeXS,
paddingSM: i.sizeSM,
padding: i.size,
paddingMD: i.sizeMD,
paddingLG: i.sizeLG,
paddingXL: i.sizeXL,
paddingContentHorizontalLG: i.sizeLG,
paddingContentVerticalLG: i.sizeMS,
paddingContentHorizontal: i.sizeMS,
paddingContentVertical: i.sizeSM,
paddingContentHorizontalSM: i.size,
paddingContentVerticalSM: i.sizeXS,
marginXXS: i.sizeXXS,
marginXS: i.sizeXS,
marginSM: i.sizeSM,
margin: i.size,
marginMD: i.sizeMD,
marginLG: i.sizeLG,
marginXL: i.sizeXL,
marginXXL: i.sizeXXL,
boxShadow: `
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,
boxShadowSecondary: `
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowTertiary: `
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,
screenXS: a,
screenXSMin: a,
screenXSMax: o - 1,
screenSM: o,
screenSMMin: o,
screenSMMax: s - 1,
screenMD: s,
screenMDMin: s,
screenMDMax: l - 1,
screenLG: l,
screenLGMin: l,
screenLGMax: u - 1,
screenXL: u,
screenXLMin: u,
screenXLMax: c - 1,
screenXXL: c,
screenXXLMin: c,
screenXXLMax: f - 1,
screenXXXL: f,
screenXXXLMin: f,
// FIXME: component box-shadow, should be removed
boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
boxShadowCard: `
0 1px 2px -2px ${new en("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new en("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new en("rgba(0, 0, 0, 0.09)").toRgbString()}
`,
boxShadowDrawerRight: `
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowDrawerLeft: `
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowDrawerUp: `
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowDrawerDown: `
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
}), r);
}
const yfe = (t, e, n, r, i) => {
const a = t / 2, o = 0, s = a, l = n * 1 / Math.sqrt(2), u = a - n * (1 - 1 / Math.sqrt(2)), c = a - e * (1 / Math.sqrt(2)), f = n * (Math.sqrt(2) - 1) + e * (1 / Math.sqrt(2)), d = 2 * a - c, h = f, p = 2 * a - l, v = u, g = 2 * a - o, m = s, y = a * Math.sqrt(2) + n * (Math.sqrt(2) - 2), b = n * (Math.sqrt(2) - 1);
return {
pointerEvents: "none",
width: t,
height: t,
overflow: "hidden",
"&::after": {
content: '""',
position: "absolute",
width: y,
height: y,
bottom: 0,
insetInline: 0,
margin: "auto",
borderRadius: {
_skip_check_: !0,
value: `0 0 ${e}px 0`
},
transform: "translateY(50%) rotate(-135deg)",
boxShadow: i,
zIndex: 0,
background: "transparent"
},
"&::before": {
position: "absolute",
bottom: 0,
insetInlineStart: 0,
width: t,
height: t / 2,
background: r,
clipPath: {
_multi_value_: !0,
value: [`polygon(${b}px 100%, 50% ${b}px, ${2 * a - b}px 100%, ${b}px 100%)`, `path('M ${o} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${f} A ${e} ${e} 0 0 1 ${d} ${h} L ${p} ${v} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]
},
content: '""'
}
};
};
function bfe(t, e) {
return O1.reduce((n, r) => {
const i = t[`${r}-1`], a = t[`${r}-3`], o = t[`${r}-6`], s = t[`${r}-7`];
return I(I({}, n), e(r, {
lightColor: i,
lightBorderColor: a,
darkColor: o,
textColor: s
}));
}, {});
}
const Sh = {
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis"
}, nn = (t) => ({
boxSizing: "border-box",
margin: 0,
padding: 0,
color: t.colorText,
fontSize: t.fontSize,
// font-variant: @font-variant-base;
lineHeight: t.lineHeight,
listStyle: "none",
// font-feature-settings: @font-feature-settings-base;
fontFamily: t.fontFamily
}), up = () => ({
display: "inline-flex",
alignItems: "center",
color: "inherit",
fontStyle: "normal",
lineHeight: 0,
textAlign: "center",
textTransform: "none",
// for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
verticalAlign: "-0.125em",
textRendering: "optimizeLegibility",
"-webkit-font-smoothing": "antialiased",
"-moz-osx-font-smoothing": "grayscale",
"> *": {
lineHeight: 1
},
svg: {
display: "inline-block"
}
}), S1 = () => ({
// https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229
"&::before": {
display: "table",
content: '""'
},
"&::after": {
// https://github.com/ant-design/ant-design/issues/21864
display: "table",
clear: "both",
content: '""'
}
}), _fe = (t) => ({
a: {
color: t.colorLink,
textDecoration: t.linkDecoration,
backgroundColor: "transparent",
outline: "none",
cursor: "pointer",
transition: `color ${t.motionDurationSlow}`,
"-webkit-text-decoration-skip": "objects",
"&:hover": {
color: t.colorLinkHover
},
"&:active": {
color: t.colorLinkActive
},
"&:active,\n &:hover": {
textDecoration: t.linkHoverDecoration,
outline: 0
},
// https://github.com/ant-design/ant-design/issues/22503
"&:focus": {
textDecoration: t.linkFocusDecoration,
outline: 0
},
"&[disabled]": {
color: t.colorTextDisabled,
cursor: "not-allowed"
}
}
}), Ofe = (t, e) => {
const {
fontFamily: n,
fontSize: r
} = t, i = `[class^="${e}"], [class*=" ${e}"]`;
return {
[i]: {
fontFamily: n,
fontSize: r,
boxSizing: "border-box",
"&::before, &::after": {
boxSizing: "border-box"
},
[i]: {
boxSizing: "border-box",
"&::before, &::after": {
boxSizing: "border-box"
}
}
}
};
}, h0 = (t) => ({
outline: `${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,
outlineOffset: 1,
transition: "outline-offset 0s, outline 0s"
}), WS = (t) => ({
"&:focus-visible": I({}, h0(t))
});
function Sn(t, e, n) {
return (r) => {
const i = L(() => r == null ? void 0 : r.value), [a, o, s] = cp(), {
getPrefixCls: l,
iconPrefixCls: u
} = kS(), c = L(() => l()), f = L(() => ({
theme: a.value,
token: o.value,
hashId: s.value,
path: ["Shared", c.value]
}));
h2(f, () => [{
// Link
"&": _fe(o.value)
}]);
const d = L(() => ({
theme: a.value,
token: o.value,
hashId: s.value,
path: [t, i.value, u.value]
}));
return [h2(d, () => {
const {
token: h,
flush: p
} = xfe(o.value), v = typeof n == "function" ? n(h) : n, g = I(I({}, v), o.value[t]), m = `.${i.value}`, y = Bt(h, {
componentCls: m,
prefixCls: i.value,
iconCls: `.${u.value}`,
antCls: `.${c.value}`
}, g), b = e(y, {
hashId: s.value,
prefixCls: i.value,
rootPrefixCls: c.value,
iconPrefixCls: u.value,
overrideComponentToken: o.value[t]
});
return p(t, g), [Ofe(o.value, i.value), b];
}), s];
};
}
const Vj = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u";
let m2 = !0;
function Bt() {
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
e[n] = arguments[n];
if (!Vj)
return I({}, ...e);
m2 = !1;
const r = {};
return e.forEach((i) => {
Object.keys(i).forEach((o) => {
Object.defineProperty(r, o, {
configurable: !0,
enumerable: !0,
get: () => i[o]
});
});
}), m2 = !0, r;
}
function Sfe() {
}
function xfe(t) {
let e, n = t, r = Sfe;
return Vj && (e = /* @__PURE__ */ new Set(), n = new Proxy(t, {
get(i, a) {
return m2 && e.add(a), i[a];
}
}), r = (i, a) => {
Array.from(e);
}), {
token: n,
keys: e,
flush: r
};
}
const wfe = wj(vfe), Fj = {
token: FS,
hashed: !0
}, Wj = Symbol("DesignTokenContext"), y2 = ae(), Cfe = (t) => {
pt(Wj, t), se(t, () => {
y2.value = z(t), Vle(y2);
}, {
immediate: !0,
deep: !0
});
}, Tfe = te({
props: {
value: $t()
},
setup(t, e) {
let {
slots: n
} = e;
return Cfe(L(() => t.value)), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
});
function cp() {
const t = Ge(Wj, L(() => y2.value || Fj)), e = L(() => `${Wce}-${t.value.hashed || ""}`), n = L(() => t.value.theme || wfe), r = vce(n, L(() => [FS, t.value.token]), L(() => ({
salt: e.value,
override: I({
override: t.value.token
}, t.value.components),
formatToken: mfe
})));
return [n, L(() => r.value[0]), L(() => t.value.hashed ? r.value[1] : "")];
}
const Qj = te({
compatConfig: {
MODE: 3
},
setup() {
const [, t] = cp(), e = L(() => new en(t.value.colorBgBase).toHsl().l < 0.5 ? {
opacity: 0.65
} : {});
return () => M("svg", {
style: e.value,
width: "184",
height: "152",
viewBox: "0 0 184 152",
xmlns: "http://www.w3.org/2000/svg"
}, [M("g", {
fill: "none",
"fill-rule": "evenodd"
}, [M("g", {
transform: "translate(24 31.67)"
}, [M("ellipse", {
"fill-opacity": ".8",
fill: "#F5F5F7",
cx: "67.797",
cy: "106.89",
rx: "67.797",
ry: "12.668"
}, null), M("path", {
d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
fill: "#AEB8C2"
}, null), M("path", {
d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
fill: "url(#linearGradient-1)",
transform: "translate(13.56)"
}, null), M("path", {
d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
fill: "#F5F5F7"
}, null), M("path", {
d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
fill: "#DCE0E6"
}, null)]), M("path", {
d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
fill: "#DCE0E6"
}, null), M("g", {
transform: "translate(149.65 15.383)",
fill: "#FFF"
}, [M("ellipse", {
cx: "20.654",
cy: "3.167",
rx: "2.849",
ry: "2.815"
}, null), M("path", {
d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
}, null)])])]);
}
});
Qj.PRESENTED_IMAGE_DEFAULT = !0;
const Hj = te({
compatConfig: {
MODE: 3
},
setup() {
const [, t] = cp(), e = L(() => {
const {
colorFill: n,
colorFillTertiary: r,
colorFillQuaternary: i,
colorBgContainer: a
} = t.value;
return {
borderColor: new en(n).onBackground(a).toHexString(),
shadowColor: new en(r).onBackground(a).toHexString(),
contentColor: new en(i).onBackground(a).toHexString()
};
});
return () => M("svg", {
width: "64",
height: "41",
viewBox: "0 0 64 41",
xmlns: "http://www.w3.org/2000/svg"
}, [M("g", {
transform: "translate(0 1)",
fill: "none",
"fill-rule": "evenodd"
}, [M("ellipse", {
fill: e.value.shadowColor,
cx: "32",
cy: "33",
rx: "32",
ry: "7"
}, null), M("g", {
"fill-rule": "nonzero",
stroke: e.value.borderColor
}, [M("path", {
d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
}, null), M("path", {
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
fill: e.value.contentColor
}, null)])])]);
}
});
Hj.PRESENTED_IMAGE_SIMPLE = !0;
const Pfe = (t) => {
const {
componentCls: e,
margin: n,
marginXS: r,
marginXL: i,
fontSize: a,
lineHeight: o
} = t;
return {
[e]: {
marginInline: r,
fontSize: a,
lineHeight: o,
textAlign: "center",
// 原来 &-image 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
[`${e}-image`]: {
height: t.emptyImgHeight,
marginBottom: r,
opacity: t.opacityImage,
img: {
height: "100%"
},
svg: {
height: "100%",
margin: "auto"
}
},
// 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果
[`${e}-footer`]: {
marginTop: n
},
"&-normal": {
marginBlock: i,
color: t.colorTextDisabled,
[`${e}-image`]: {
height: t.emptyImgHeightMD
}
},
"&-small": {
marginBlock: r,
color: t.colorTextDisabled,
[`${e}-image`]: {
height: t.emptyImgHeightSM
}
}
}
};
}, $fe = Sn("Empty", (t) => {
const {
componentCls: e,
controlHeightLG: n
} = t, r = Bt(t, {
emptyImgCls: `${e}-img`,
emptyImgHeight: n * 2.5,
emptyImgHeightMD: n,
emptyImgHeightSM: n * 0.875
});
return [Pfe(r)];
});
var Afe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Gj = M(Qj, null, null), jj = M(Hj, null, null), Efe = () => ({
prefixCls: String,
imageStyle: $t(),
image: ha(),
description: ha()
}), cI = te({
name: "AEmpty",
compatConfig: {
MODE: 3
},
inheritAttrs: !1,
props: Efe(),
setup(t, e) {
let {
slots: n = {},
attrs: r
} = e;
const {
direction: i,
prefixCls: a
} = It("empty", t), [o, s] = $fe(a);
return () => {
var l, u;
const c = a.value, f = I(I({}, t), r), {
image: d = ((l = n.image) === null || l === void 0 ? void 0 : l.call(n)) || Gj,
description: h = ((u = n.description) === null || u === void 0 ? void 0 : u.call(n)) || void 0,
imageStyle: p,
class: v = ""
} = f, g = Afe(f, ["image", "description", "imageStyle", "class"]);
return o(M(hj, {
componentName: "Empty",
children: (m) => {
const y = typeof h < "u" ? h : m.description, b = typeof y == "string" ? y : "empty";
let _ = null;
return typeof d == "string" ? _ = M("img", {
alt: b,
src: d
}, null) : _ = d, M("div", j({
class: ye(c, v, s.value, {
[`${c}-normal`]: d === jj,
[`${c}-rtl`]: i.value === "rtl"
})
}, g), [M("div", {
class: `${c}-image`,
style: p
}, [_]), y && M("p", {
class: `${c}-description`
}, [y]), n.default && M("div", {
class: `${c}-footer`
}, [ss(n.default())])]);
}
}, null));
};
}
});
cI.PRESENTED_IMAGE_DEFAULT = Gj;
cI.PRESENTED_IMAGE_SIMPLE = jj;
const Xp = sp(cI), fI = (t) => {
const {
prefixCls: e
} = It("empty", t);
return ((r) => {
switch (r) {
case "Table":
case "List":
return M(Xp, {
image: Xp.PRESENTED_IMAGE_SIMPLE
}, null);
case "Select":
case "TreeSelect":
case "Cascader":
case "Transfer":
case "Mentions":
return M(Xp, {
image: Xp.PRESENTED_IMAGE_SIMPLE,
class: `${e.value}-small`
}, null);
default:
return M(Xp, null, null);
}
})(t.componentName);
};
function Mfe(t) {
return M(fI, {
componentName: t
}, null);
}
const Zj = Symbol("SizeContextKey"), Uj = () => Ge(Zj, U(void 0)), Xj = (t) => {
const e = Uj();
return pt(Zj, L(() => t.value || e.value)), t;
}, It = (t, e) => {
const n = Uj(), r = Jo(), i = Ge(oI, I(I({}, uj), {
renderEmpty: (x) => qg(fI, {
componentName: x
})
})), a = L(() => i.getPrefixCls(t, e.prefixCls)), o = L(() => {
var x, C;
return (x = e.direction) !== null && x !== void 0 ? x : (C = i.direction) === null || C === void 0 ? void 0 : C.value;
}), s = L(() => {
var x;
return (x = e.iconPrefixCls) !== null && x !== void 0 ? x : i.iconPrefixCls.value;
}), l = L(() => i.getPrefixCls()), u = L(() => {
var x;
return (x = i.autoInsertSpaceInButton) === null || x === void 0 ? void 0 : x.value;
}), c = i.renderEmpty, f = i.space, d = i.pageHeader, h = i.form, p = L(() => {
var x, C;
return (x = e.getTargetContainer) !== null && x !== void 0 ? x : (C = i.getTargetContainer) === null || C === void 0 ? void 0 : C.value;
}), v = L(() => {
var x, C, T;
return (C = (x = e.getContainer) !== null && x !== void 0 ? x : e.getPopupContainer) !== null && C !== void 0 ? C : (T = i.getPopupContainer) === null || T === void 0 ? void 0 : T.value;
}), g = L(() => {
var x, C;
return (x = e.dropdownMatchSelectWidth) !== null && x !== void 0 ? x : (C = i.dropdownMatchSelectWidth) === null || C === void 0 ? void 0 : C.value;
}), m = L(() => {
var x;
return (e.virtual === void 0 ? ((x = i.virtual) === null || x === void 0 ? void 0 : x.value) !== !1 : e.virtual !== !1) && g.value !== !1;
}), y = L(() => e.size || n.value), b = L(() => {
var x, C, T;
return (x = e.autocomplete) !== null && x !== void 0 ? x : (T = (C = i.input) === null || C === void 0 ? void 0 : C.value) === null || T === void 0 ? void 0 : T.autocomplete;
}), _ = L(() => {
var x;
return (x = e.disabled) !== null && x !== void 0 ? x : r.value;
}), O = L(() => {
var x;
return (x = e.csp) !== null && x !== void 0 ? x : i.csp;
}), S = L(() => {
var x, C;
return (x = e.wave) !== null && x !== void 0 ? x : (C = i.wave) === null || C === void 0 ? void 0 : C.value;
});
return {
configProvider: i,
prefixCls: a,
direction: o,
size: y,
getTargetContainer: p,
getPopupContainer: v,
space: f,
pageHeader: d,
form: h,
autoInsertSpaceInButton: u,
renderEmpty: c,
virtual: m,
dropdownMatchSelectWidth: g,
rootPrefixCls: l,
getPrefixCls: i.getPrefixCls,
autocomplete: b,
csp: O,
iconPrefixCls: s,
disabled: _,
select: i.select,
wave: S
};
};
function or(t, e) {
const n = I({}, t);
for (let r = 0; r < e.length; r += 1) {
const i = e[r];
delete n[i];
}
return n;
}
function S8(t) {
return typeof t == "object" && t != null && t.nodeType === 1;
}
function x8(t, e) {
return (!e || t !== "hidden") && t !== "visible" && t !== "clip";
}
function sC(t, e) {
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
var n = getComputedStyle(t, null);
return x8(n.overflowY, e) || x8(n.overflowX, e) || function(r) {
var i = function(a) {
if (!a.ownerDocument || !a.ownerDocument.defaultView) return null;
try {
return a.ownerDocument.defaultView.frameElement;
} catch {
return null;
}
}(r);
return !!i && (i.clientHeight < r.scrollHeight || i.clientWidth < r.scrollWidth);
}(t);
}
return !1;
}
function xy(t, e, n, r, i, a, o, s) {
return a < t && o > e || a > t && o < e ? 0 : a <= t && s <= n || o >= e && s >= n ? a - t - r : o > e && s < n || a < t && s > n ? o - e + i : 0;
}
var w8 = function(t, e) {
var n = window, r = e.scrollMode, i = e.block, a = e.inline, o = e.boundary, s = e.skipOverflowHiddenElements, l = typeof o == "function" ? o : function(de) {
return de !== o;
};
if (!S8(t)) throw new TypeError("Invalid target");
for (var u, c, f = document.scrollingElement || document.documentElement, d = [], h = t; S8(h) && l(h); ) {
if ((h = (c = (u = h).parentElement) == null ? u.getRootNode().host || null : c) === f) {
d.push(h);
break;
}
h != null && h === document.body && sC(h) && !sC(document.documentElement) || h != null && sC(h, s) && d.push(h);
}
for (var p = n.visualViewport ? n.visualViewport.width : innerWidth, v = n.visualViewport ? n.visualViewport.height : innerHeight, g = window.scrollX || pageXOffset, m = window.scrollY || pageYOffset, y = t.getBoundingClientRect(), b = y.height, _ = y.width, O = y.top, S = y.right, x = y.bottom, C = y.left, T = i === "start" || i === "nearest" ? O : i === "end" ? x : O + b / 2, w = a === "center" ? C + _ / 2 : a === "end" ? S : C, P = [], $ = 0; $ < d.length; $++) {
var A = d[$], D = A.getBoundingClientRect(), E = D.height, R = D.width, N = D.top, V = D.right, B = D.bottom, W = D.left;
if (r === "if-needed" && O >= 0 && C >= 0 && x <= v && S <= p && O >= N && x <= B && C >= W && S <= V) return P;
var F = getComputedStyle(A), Q = parseInt(F.borderLeftWidth, 10), Z = parseInt(F.borderTopWidth, 10), ne = parseInt(F.borderRightWidth, 10), ee = parseInt(F.borderBottomWidth, 10), oe = 0, K = 0, ie = "offsetWidth" in A ? A.offsetWidth - A.clientWidth - Q - ne : 0, X = "offsetHeight" in A ? A.offsetHeight - A.clientHeight - Z - ee : 0, H = "offsetWidth" in A ? A.offsetWidth === 0 ? 0 : R / A.offsetWidth : 0, G = "offsetHeight" in A ? A.offsetHeight === 0 ? 0 : E / A.offsetHeight : 0;
if (f === A) oe = i === "start" ? T : i === "end" ? T - v : i === "nearest" ? xy(m, m + v, v, Z, ee, m + T, m + T + b, b) : T - v / 2, K = a === "start" ? w : a === "center" ? w - p / 2 : a === "end" ? w - p : xy(g, g + p, p, Q, ne, g + w, g + w + _, _), oe = Math.max(0, oe + m), K = Math.max(0, K + g);
else {
oe = i === "start" ? T - N - Z : i === "end" ? T - B + ee + X : i === "nearest" ? xy(N, B, E, Z, ee + X, T, T + b, b) : T - (N + E / 2) + X / 2, K = a === "start" ? w - W - Q : a === "center" ? w - (W + R / 2) + ie / 2 : a === "end" ? w - V + ne + ie : xy(W, V, R, Q, ne + ie, w, w + _, _);
var re = A.scrollLeft, fe = A.scrollTop;
T += fe - (oe = Math.max(0, Math.min(fe + oe / G, A.scrollHeight - E / G + X))), w += re - (K = Math.max(0, Math.min(re + K / H, A.scrollWidth - R / H + ie)));
}
P.push({ el: A, top: oe, left: K });
}
return P;
};
function Yj(t) {
return t === Object(t) && Object.keys(t).length !== 0;
}
function Ife(t, e) {
e === void 0 && (e = "auto");
var n = "scrollBehavior" in document.body.style;
t.forEach(function(r) {
var i = r.el, a = r.top, o = r.left;
i.scroll && n ? i.scroll({
top: a,
left: o,
behavior: e
}) : (i.scrollTop = a, i.scrollLeft = o);
});
}
function Dfe(t) {
return t === !1 ? {
block: "end",
inline: "nearest"
} : Yj(t) ? t : {
block: "start",
inline: "nearest"
};
}
function Rfe(t, e) {
var n = t.isConnected || t.ownerDocument.documentElement.contains(t);
if (Yj(e) && typeof e.behavior == "function")
return e.behavior(n ? w8(t, e) : []);
if (n) {
var r = Dfe(e);
return Ife(w8(t, r), r.behavior);
}
}
function kfe(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
}
}
function qj(t, e, n) {
return n && kfe(t, n), t;
}
function x_() {
return (x_ = Object.assign || function(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
}
return t;
}).apply(this, arguments);
}
function Kj(t, e) {
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
}
function Jj(t, e) {
if (t == null) return {};
var n, r, i = {}, a = Object.keys(t);
for (r = 0; r < a.length; r++) e.indexOf(n = a[r]) >= 0 || (i[n] = t[n]);
return i;
}
function C8(t) {
return ((e = t) != null && typeof e == "object" && Array.isArray(e) === !1) == 1 && Object.prototype.toString.call(t) === "[object Object]";
var e;
}
var eZ = Object.prototype, tZ = eZ.toString, Lfe = eZ.hasOwnProperty, nZ = /^\s*function (\w+)/;
function T8(t) {
var e, n = (e = t == null ? void 0 : t.type) !== null && e !== void 0 ? e : t;
if (n) {
var r = n.toString().match(nZ);
return r ? r[1] : "";
}
return "";
}
var hf = function(t) {
var e, n;
return C8(t) !== !1 && typeof (e = t.constructor) == "function" && C8(n = e.prototype) !== !1 && n.hasOwnProperty("isPrototypeOf") !== !1;
}, rZ = function(t) {
return t;
}, kr = rZ;
if (process.env.NODE_ENV !== "production") {
var Nfe = typeof console < "u";
kr = Nfe ? function(t) {
console.warn("[VueTypes warn]: " + t);
} : rZ;
}
var rm = function(t, e) {
return Lfe.call(t, e);
}, Bfe = Number.isInteger || function(t) {
return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
}, xh = Array.isArray || function(t) {
return tZ.call(t) === "[object Array]";
}, wh = function(t) {
return tZ.call(t) === "[object Function]";
}, x1 = function(t) {
return hf(t) && rm(t, "_vueTypes_name");
}, iZ = function(t) {
return hf(t) && (rm(t, "type") || ["_vueTypes_name", "validator", "default", "required"].some(function(e) {
return rm(t, e);
}));
};
function dI(t, e) {
return Object.defineProperty(t.bind(e), "__original", { value: t });
}
function Ef(t, e, n) {
var r;
n === void 0 && (n = !1);
var i = !0, a = "";
r = hf(t) ? t : { type: t };
var o = x1(r) ? r._vueTypes_name + " - " : "";
if (iZ(r) && r.type !== null) {
if (r.type === void 0 || r.type === !0 || !r.required && e === void 0) return i;
xh(r.type) ? (i = r.type.some(function(f) {
return Ef(f, e, !0) === !0;
}), a = r.type.map(function(f) {
return T8(f);
}).join(" or ")) : i = (a = T8(r)) === "Array" ? xh(e) : a === "Object" ? hf(e) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? function(f) {
if (f == null) return "";
var d = f.constructor.toString().match(nZ);
return d ? d[1] : "";
}(e) === a : e instanceof r.type;
}
if (!i) {
var s = o + 'value "' + e + '" should be of type "' + a + '"';
return n === !1 ? (kr(s), !1) : s;
}
if (rm(r, "validator") && wh(r.validator)) {
var l = kr, u = [];
if (kr = function(f) {
u.push(f);
}, i = r.validator(e), kr = l, !i) {
var c = (u.length > 1 ? "* " : "") + u.join(`
* `);
return u.length = 0, n === !1 ? (kr(c), i) : c;
}
}
return i;
}
function qi(t, e) {
var n = Object.defineProperties(e, { _vueTypes_name: { value: t, writable: !0 }, isRequired: { get: function() {
return this.required = !0, this;
} }, def: { value: function(i) {
return i !== void 0 || this.default ? wh(i) || Ef(this, i, !0) === !0 ? (this.default = xh(i) ? function() {
return [].concat(i);
} : hf(i) ? function() {
return Object.assign({}, i);
} : i, this) : (kr(this._vueTypes_name + ' - invalid default value: "' + i + '"'), this) : this;
} } }), r = n.validator;
return wh(r) && (n.validator = dI(r, n)), n;
}
function es(t, e) {
var n = qi(t, e);
return Object.defineProperty(n, "validate", { value: function(r) {
return wh(this.validator) && kr(this._vueTypes_name + ` - calling .validate() will overwrite the current custom validator function. Validator info:
` + JSON.stringify(this)), this.validator = dI(r, this), this;
} });
}
function P8(t, e, n) {
var r, i, a = (r = e, i = {}, Object.getOwnPropertyNames(r).forEach(function(f) {
i[f] = Object.getOwnPropertyDescriptor(r, f);
}), Object.defineProperties({}, i));
if (a._vueTypes_name = t, !hf(n)) return a;
var o, s, l = n.validator, u = Jj(n, ["validator"]);
if (wh(l)) {
var c = a.validator;
c && (c = (s = (o = c).__original) !== null && s !== void 0 ? s : o), a.validator = dI(c ? function(f) {
return c.call(this, f) && l.call(this, f);
} : l, a);
}
return Object.assign(a, u);
}
function QS(t) {
return t.replace(/^(?!\s*$)/gm, " ");
}
var zfe = function() {
return es("any", {});
}, Vfe = function() {
return es("function", { type: Function });
}, Ffe = function() {
return es("boolean", { type: Boolean });
}, Wfe = function() {
return es("string", { type: String });
}, Qfe = function() {
return es("number", { type: Number });
}, Hfe = function() {
return es("array", { type: Array });
}, Gfe = function() {
return es("object", { type: Object });
}, jfe = function() {
return qi("integer", { type: Number, validator: function(t) {
return Bfe(t);
} });
}, Zfe = function() {
return qi("symbol", { validator: function(t) {
return typeof t == "symbol";
} });
};
function Ufe(t, e) {
if (e === void 0 && (e = "custom validation failed"), typeof t != "function") throw new TypeError("[VueTypes error]: You must provide a function as argument");
return qi(t.name || "<>", { validator: function(n) {
var r = t(n);
return r || kr(this._vueTypes_name + " - " + e), r;
} });
}
function Xfe(t) {
if (!xh(t)) throw new TypeError("[VueTypes error]: You must provide an array as argument.");
var e = 'oneOf - value should be one of "' + t.join('", "') + '".', n = t.reduce(function(r, i) {
if (i != null) {
var a = i.constructor;
r.indexOf(a) === -1 && r.push(a);
}
return r;
}, []);
return qi("oneOf", { type: n.length > 0 ? n : void 0, validator: function(r) {
var i = t.indexOf(r) !== -1;
return i || kr(e), i;
} });
}
function Yfe(t) {
if (!xh(t)) throw new TypeError("[VueTypes error]: You must provide an array as argument");
for (var e = !1, n = [], r = 0; r < t.length; r += 1) {
var i = t[r];
if (iZ(i)) {
if (x1(i) && i._vueTypes_name === "oneOf") {
n = n.concat(i.type);
continue;
}
if (wh(i.validator) && (e = !0), i.type !== !0 && i.type) {
n = n.concat(i.type);
continue;
}
}
n.push(i);
}
return n = n.filter(function(a, o) {
return n.indexOf(a) === o;
}), qi("oneOfType", e ? { type: n, validator: function(a) {
var o = [], s = t.some(function(l) {
var u = Ef(x1(l) && l._vueTypes_name === "oneOf" ? l.type || null : l, a, !0);
return typeof u == "string" && o.push(u), u === !0;
});
return s || kr("oneOfType - provided value does not match any of the " + o.length + ` passed-in validators:
` + QS(o.join(`
`))), s;
} } : { type: n });
}
function qfe(t) {
return qi("arrayOf", { type: Array, validator: function(e) {
var n, r = e.every(function(i) {
return (n = Ef(t, i, !0)) === !0;
});
return r || kr(`arrayOf - value validation error:
` + QS(n)), r;
} });
}
function Kfe(t) {
return qi("instanceOf", { type: t });
}
function Jfe(t) {
return qi("objectOf", { type: Object, validator: function(e) {
var n, r = Object.keys(e).every(function(i) {
return (n = Ef(t, e[i], !0)) === !0;
});
return r || kr(`objectOf - value validation error:
` + QS(n)), r;
} });
}
function ede(t) {
var e = Object.keys(t), n = e.filter(function(i) {
var a;
return !!(!((a = t[i]) === null || a === void 0) && a.required);
}), r = qi("shape", { type: Object, validator: function(i) {
var a = this;
if (!hf(i)) return !1;
var o = Object.keys(i);
if (n.length > 0 && n.some(function(l) {
return o.indexOf(l) === -1;
})) {
var s = n.filter(function(l) {
return o.indexOf(l) === -1;
});
return kr(s.length === 1 ? 'shape - required property "' + s[0] + '" is not defined.' : 'shape - required properties "' + s.join('", "') + '" are not defined.'), !1;
}
return o.every(function(l) {
if (e.indexOf(l) === -1) return a._vueTypes_isLoose === !0 || (kr('shape - shape definition does not include a "' + l + '" property. Allowed keys: "' + e.join('", "') + '".'), !1);
var u = Ef(t[l], i[l], !0);
return typeof u == "string" && kr('shape - "' + l + `" property validation error:
` + QS(u)), u === !0;
});
} });
return Object.defineProperty(r, "_vueTypes_isLoose", { writable: !0, value: !1 }), Object.defineProperty(r, "loose", { get: function() {
return this._vueTypes_isLoose = !0, this;
} }), r;
}
var $o = function() {
function t() {
}
return t.extend = function(e) {
var n = this;
if (xh(e)) return e.forEach(function(f) {
return n.extend(f);
}), this;
var r = e.name, i = e.validate, a = i !== void 0 && i, o = e.getter, s = o !== void 0 && o, l = Jj(e, ["name", "validate", "getter"]);
if (rm(this, r)) throw new TypeError('[VueTypes error]: Type "' + r + '" already defined');
var u, c = l.type;
return x1(c) ? (delete l.type, Object.defineProperty(this, r, s ? { get: function() {
return P8(r, c, l);
} } : { value: function() {
var f, d = P8(r, c, l);
return d.validator && (d.validator = (f = d.validator).bind.apply(f, [d].concat([].slice.call(arguments)))), d;
} })) : (u = s ? { get: function() {
var f = Object.assign({}, l);
return a ? es(r, f) : qi(r, f);
}, enumerable: !0 } : { value: function() {
var f, d, h = Object.assign({}, l);
return f = a ? es(r, h) : qi(r, h), h.validator && (f.validator = (d = h.validator).bind.apply(d, [f].concat([].slice.call(arguments)))), f;
}, enumerable: !0 }, Object.defineProperty(this, r, u));
}, qj(t, null, [{ key: "any", get: function() {
return zfe();
} }, { key: "func", get: function() {
return Vfe().def(this.defaults.func);
} }, { key: "bool", get: function() {
return Ffe().def(this.defaults.bool);
} }, { key: "string", get: function() {
return Wfe().def(this.defaults.string);
} }, { key: "number", get: function() {
return Qfe().def(this.defaults.number);
} }, { key: "array", get: function() {
return Hfe().def(this.defaults.array);
} }, { key: "object", get: function() {
return Gfe().def(this.defaults.object);
} }, { key: "integer", get: function() {
return jfe().def(this.defaults.integer);
} }, { key: "symbol", get: function() {
return Zfe();
} }]), t;
}();
function aZ(t) {
var e;
return t === void 0 && (t = { func: function() {
}, bool: !0, string: "", number: 0, array: function() {
return [];
}, object: function() {
return {};
}, integer: 0 }), (e = function(n) {
function r() {
return n.apply(this, arguments) || this;
}
return Kj(r, n), qj(r, null, [{ key: "sensibleDefaults", get: function() {
return x_({}, this.defaults);
}, set: function(i) {
this.defaults = i !== !1 ? x_({}, i !== !0 ? i : t) : {};
} }]), r;
}($o)).defaults = x_({}, t), e;
}
$o.defaults = {}, $o.custom = Ufe, $o.oneOf = Xfe, $o.instanceOf = Kfe, $o.oneOfType = Yfe, $o.arrayOf = qfe, $o.objectOf = Jfe, $o.shape = ede, $o.utils = { validate: function(t, e) {
return Ef(e, t, !0) === !0;
}, toType: function(t, e, n) {
return n === void 0 && (n = !1), n ? es(t, e) : qi(t, e);
} };
(function(t) {
function e() {
return t.apply(this, arguments) || this;
}
return Kj(e, t), e;
})(aZ());
const Y = aZ({
func: void 0,
bool: void 0,
string: void 0,
number: void 0,
array: void 0,
object: void 0,
integer: void 0
});
Y.extend([{
name: "looseBool",
getter: !0,
type: Boolean,
default: void 0
}, {
name: "style",
getter: !0,
type: [String, Object],
default: void 0
}, {
name: "VueNode",
getter: !0,
type: null
}]);
function tde(t) {
return t.default = void 0, t;
}
const Gi = (t, e, n) => {
la(t, `[ant-design-vue: ${e}] ${n}`);
};
function $8(t, e) {
const {
key: n
} = t;
let r;
return "value" in t && ({
value: r
} = t), n ?? (r !== void 0 ? r : `rc-index-key-${e}`);
}
function oZ(t, e) {
const {
label: n,
value: r,
options: i
} = t || {};
return {
label: n || (e ? "children" : "label"),
value: r || "value",
options: i || "options"
};
}
function nde(t) {
let {
fieldNames: e,
childrenAsData: n
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const r = [], {
label: i,
value: a,
options: o
} = oZ(e, !1);
function s(l, u) {
l.forEach((c) => {
const f = c[i];
if (u || !(o in c)) {
const d = c[a];
r.push({
key: $8(c, r.length),
groupOption: u,
data: c,
label: f,
value: d
});
} else {
let d = f;
d === void 0 && n && (d = c.label), r.push({
key: $8(c, r.length),
group: !0,
data: c,
label: d
}), s(c[o], !0);
}
});
}
return s(t, !1), r;
}
function b2(t) {
const e = I({}, t);
return "props" in e || Object.defineProperty(e, "props", {
get() {
return ff(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), e;
}
}), e;
}
function rde(t, e) {
if (!e || !e.length)
return null;
let n = !1;
function r(a, o) {
let [s, ...l] = o;
if (!s)
return [a];
const u = a.split(s);
return n = n || u.length > 1, u.reduce((c, f) => [...c, ...r(f, l)], []).filter((c) => c);
}
const i = r(t, e);
return n ? i : null;
}
function ide() {
return "";
}
function ade(t) {
return t ? t.ownerDocument : window.document;
}
function sZ() {
}
const ode = () => ({
action: Y.oneOfType([Y.string, Y.arrayOf(Y.string)]).def([]),
showAction: Y.any.def([]),
hideAction: Y.any.def([]),
getPopupClassNameFromAlign: Y.any.def(ide),
onPopupVisibleChange: Function,
afterPopupVisibleChange: Y.func.def(sZ),
popup: Y.any,
arrow: Y.bool.def(!0),
popupStyle: {
type: Object,
default: void 0
},
prefixCls: Y.string.def("rc-trigger-popup"),
popupClassName: Y.string.def(""),
popupPlacement: String,
builtinPlacements: Y.object,
popupTransitionName: String,
popupAnimation: Y.any,
mouseEnterDelay: Y.number.def(0),
mouseLeaveDelay: Y.number.def(0.1),
zIndex: Number,
focusDelay: Y.number.def(0),
blurDelay: Y.number.def(0.15),
getPopupContainer: Function,
getDocument: Y.func.def(ade),
forceRender: {
type: Boolean,
default: void 0
},
destroyPopupOnHide: {
type: Boolean,
default: !1
},
mask: {
type: Boolean,
default: !1
},
maskClosable: {
type: Boolean,
default: !0
},
// onPopupAlign: PropTypes.func.def(noop),
popupAlign: Y.object.def(() => ({})),
popupVisible: {
type: Boolean,
default: void 0
},
defaultPopupVisible: {
type: Boolean,
default: !1
},
maskTransitionName: String,
maskAnimation: String,
stretch: String,
alignPoint: {
type: Boolean,
default: void 0
},
autoDestroy: {
type: Boolean,
default: !1
},
mobile: Object,
getTriggerDOMNode: Function
}), hI = {
visible: Boolean,
prefixCls: String,
zIndex: Number,
destroyPopupOnHide: Boolean,
forceRender: Boolean,
arrow: {
type: Boolean,
default: !0
},
// Legacy Motion
animation: [String, Object],
transitionName: String,
// Measure
stretch: {
type: String
},
// Align
align: {
type: Object
},
point: {
type: Object
},
getRootDomNode: {
type: Function
},
getClassNameFromAlign: {
type: Function
},
onAlign: {
type: Function
},
onMouseenter: {
type: Function
},
onMouseleave: {
type: Function
},
onMousedown: {
type: Function
},
onTouchstart: {
type: Function
}
}, sde = I(I({}, hI), {
mobile: {
type: Object
}
}), lde = I(I({}, hI), {
mask: Boolean,
mobile: {
type: Object
},
maskAnimation: String,
maskTransitionName: String
});
function pI(t) {
let {
prefixCls: e,
animation: n,
transitionName: r
} = t;
return n ? {
name: `${e}-${n}`
} : r ? {
name: r
} : {};
}
function lZ(t) {
const {
prefixCls: e,
visible: n,
zIndex: r,
mask: i,
maskAnimation: a,
maskTransitionName: o
} = t;
if (!i)
return null;
let s = {};
return (o || a) && (s = pI({
prefixCls: e,
transitionName: o,
animation: a
})), M(ho, j({
appear: !0
}, s), {
default: () => [Oi(M("div", {
style: {
zIndex: r
},
class: `${e}-mask`
}, null), [[Fle("if"), n]])]
});
}
lZ.displayName = "Mask";
const ude = te({
compatConfig: {
MODE: 3
},
name: "MobilePopupInner",
inheritAttrs: !1,
props: sde,
emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
setup(t, e) {
let {
expose: n,
slots: r
} = e;
const i = U();
return n({
forceAlign: () => {
},
getElement: () => i.value
}), () => {
var a;
const {
zIndex: o,
visible: s,
prefixCls: l,
mobile: {
popupClassName: u,
popupStyle: c,
popupMotion: f = {},
popupRender: d
} = {}
} = t, h = I({
zIndex: o
}, c);
let p = Yn((a = r.default) === null || a === void 0 ? void 0 : a.call(r));
p.length > 1 && (p = M("div", {
class: `${l}-content`
}, [p])), d && (p = d(p));
const v = ye(l, u);
return M(ho, j({
ref: i
}, f), {
default: () => [s ? M("div", {
class: v,
style: h
}, [p]) : null]
});
};
}
});
var cde = function(t, e, n, r) {
function i(a) {
return a instanceof n ? a : new n(function(o) {
o(a);
});
}
return new (n || (n = Promise))(function(a, o) {
function s(c) {
try {
u(r.next(c));
} catch (f) {
o(f);
}
}
function l(c) {
try {
u(r.throw(c));
} catch (f) {
o(f);
}
}
function u(c) {
c.done ? a(c.value) : i(c.value).then(s, l);
}
u((r = r.apply(t, e || [])).next());
});
};
const A8 = ["measure", "align", null, "motion"], fde = (t, e) => {
const n = ae(null), r = ae(), i = ae(!1);
function a(l) {
i.value || (n.value = l);
}
function o() {
xt.cancel(r.value);
}
function s(l) {
o(), r.value = xt(() => {
let u = n.value;
switch (n.value) {
case "align":
u = "motion";
break;
case "motion":
u = "stable";
break;
}
a(u), l == null || l();
});
}
return se(t, () => {
a("measure");
}, {
immediate: !0,
flush: "post"
}), it(() => {
se(n, () => {
switch (n.value) {
case "measure":
e();
break;
}
n.value && (r.value = xt(() => cde(void 0, void 0, void 0, function* () {
const l = A8.indexOf(n.value), u = A8[l + 1];
u && l !== -1 && a(u);
})));
}, {
immediate: !0,
flush: "post"
});
}), yt(() => {
i.value = !0, o();
}), [n, s];
}, dde = (t) => {
const e = ae({
width: 0,
height: 0
});
function n(i) {
e.value = {
width: i.offsetWidth,
height: i.offsetHeight
};
}
return [L(() => {
const i = {};
if (t.value) {
const {
width: a,
height: o
} = e.value;
t.value.indexOf("height") !== -1 && o ? i.height = `${o}px` : t.value.indexOf("minHeight") !== -1 && o && (i.minHeight = `${o}px`), t.value.indexOf("width") !== -1 && a ? i.width = `${a}px` : t.value.indexOf("minWidth") !== -1 && a && (i.minWidth = `${a}px`);
}
return i;
}), n];
};
function E8(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(t, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function M8(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? E8(Object(n), !0).forEach(function(r) {
hde(t, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : E8(Object(n)).forEach(function(r) {
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return t;
}
function _2(t) {
"@babel/helpers - typeof";
return _2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, _2(t);
}
function hde(t, e, n) {
return e in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t;
}
var Yp, pde = {
Webkit: "-webkit-",
Moz: "-moz-",
// IE did it wrong again ...
ms: "-ms-",
O: "-o-"
};
function w1() {
if (Yp !== void 0)
return Yp;
Yp = "";
var t = document.createElement("p").style, e = "Transform";
for (var n in pde)
n + e in t && (Yp = n);
return Yp;
}
function uZ() {
return w1() ? "".concat(w1(), "TransitionProperty") : "transitionProperty";
}
function HS() {
return w1() ? "".concat(w1(), "Transform") : "transform";
}
function I8(t, e) {
var n = uZ();
n && (t.style[n] = e, n !== "transitionProperty" && (t.style.transitionProperty = e));
}
function lC(t, e) {
var n = HS();
n && (t.style[n] = e, n !== "transform" && (t.style.transform = e));
}
function vde(t) {
return t.style.transitionProperty || t.style[uZ()];
}
function gde(t) {
var e = window.getComputedStyle(t, null), n = e.getPropertyValue("transform") || e.getPropertyValue(HS());
if (n && n !== "none") {
var r = n.replace(/[^0-9\-.,]/g, "").split(",");
return {
x: parseFloat(r[12] || r[4], 0),
y: parseFloat(r[13] || r[5], 0)
};
}
return {
x: 0,
y: 0
};
}
var mde = /matrix\((.*)\)/, yde = /matrix3d\((.*)\)/;
function bde(t, e) {
var n = window.getComputedStyle(t, null), r = n.getPropertyValue("transform") || n.getPropertyValue(HS());
if (r && r !== "none") {
var i, a = r.match(mde);
if (a)
a = a[1], i = a.split(",").map(function(s) {
return parseFloat(s, 10);
}), i[4] = e.x, i[5] = e.y, lC(t, "matrix(".concat(i.join(","), ")"));
else {
var o = r.match(yde)[1];
i = o.split(",").map(function(s) {
return parseFloat(s, 10);
}), i[12] = e.x, i[13] = e.y, lC(t, "matrix3d(".concat(i.join(","), ")"));
}
} else
lC(t, "translateX(".concat(e.x, "px) translateY(").concat(e.y, "px) translateZ(0)"));
}
var _de = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, p0;
function D8(t) {
var e = t.style.display;
t.style.display = "none", t.offsetHeight, t.style.display = e;
}
function Ud(t, e, n) {
var r = n;
if (_2(e) === "object") {
for (var i in e)
e.hasOwnProperty(i) && Ud(t, i, e[i]);
return;
}
if (typeof r < "u") {
typeof r == "number" && (r = "".concat(r, "px")), t.style[e] = r;
return;
}
return p0(t, e);
}
function Ode(t) {
var e, n, r, i = t.ownerDocument, a = i.body, o = i && i.documentElement;
return e = t.getBoundingClientRect(), n = Math.floor(e.left), r = Math.floor(e.top), n -= o.clientLeft || a.clientLeft || 0, r -= o.clientTop || a.clientTop || 0, {
left: n,
top: r
};
}
function cZ(t, e) {
var n = t["page".concat(e ? "Y" : "X", "Offset")], r = "scroll".concat(e ? "Top" : "Left");
if (typeof n != "number") {
var i = t.document;
n = i.documentElement[r], typeof n != "number" && (n = i.body[r]);
}
return n;
}
function fZ(t) {
return cZ(t);
}
function dZ(t) {
return cZ(t, !0);
}
function im(t) {
var e = Ode(t), n = t.ownerDocument, r = n.defaultView || n.parentWindow;
return e.left += fZ(r), e.top += dZ(r), e;
}
function vI(t) {
return t != null && t == t.window;
}
function hZ(t) {
return vI(t) ? t.document : t.nodeType === 9 ? t : t.ownerDocument;
}
function Sde(t, e, n) {
var r = n, i = "", a = hZ(t);
return r = r || a.defaultView.getComputedStyle(t, null), r && (i = r.getPropertyValue(e) || r[e]), i;
}
var xde = new RegExp("^(".concat(_de, ")(?!px)[a-z%]+$"), "i"), wde = /^(top|right|bottom|left)$/, uC = "currentStyle", cC = "runtimeStyle", Du = "left", Cde = "px";
function Tde(t, e) {
var n = t[uC] && t[uC][e];
if (xde.test(n) && !wde.test(e)) {
var r = t.style, i = r[Du], a = t[cC][Du];
t[cC][Du] = t[uC][Du], r[Du] = e === "fontSize" ? "1em" : n || 0, n = r.pixelLeft + Cde, r[Du] = i, t[cC][Du] = a;
}
return n === "" ? "auto" : n;
}
typeof window < "u" && (p0 = window.getComputedStyle ? Sde : Tde);
function wy(t, e) {
return t === "left" ? e.useCssRight ? "right" : t : e.useCssBottom ? "bottom" : t;
}
function R8(t) {
if (t === "left")
return "right";
if (t === "right")
return "left";
if (t === "top")
return "bottom";
if (t === "bottom")
return "top";
}
function k8(t, e, n) {
Ud(t, "position") === "static" && (t.style.position = "relative");
var r = -999, i = -999, a = wy("left", n), o = wy("top", n), s = R8(a), l = R8(o);
a !== "left" && (r = 999), o !== "top" && (i = 999);
var u = "", c = im(t);
("left" in e || "top" in e) && (u = vde(t) || "", I8(t, "none")), "left" in e && (t.style[s] = "", t.style[a] = "".concat(r, "px")), "top" in e && (t.style[l] = "", t.style[o] = "".concat(i, "px")), D8(t);
var f = im(t), d = {};
for (var h in e)
if (e.hasOwnProperty(h)) {
var p = wy(h, n), v = h === "left" ? r : i, g = c[h] - f[h];
p === h ? d[p] = v + g : d[p] = v - g;
}
Ud(t, d), D8(t), ("left" in e || "top" in e) && I8(t, u);
var m = {};
for (var y in e)
if (e.hasOwnProperty(y)) {
var b = wy(y, n), _ = e[y] - c[y];
y === b ? m[b] = d[b] + _ : m[b] = d[b] - _;
}
Ud(t, m);
}
function Pde(t, e) {
var n = im(t), r = gde(t), i = {
x: r.x,
y: r.y
};
"left" in e && (i.x = r.x + e.left - n.left), "top" in e && (i.y = r.y + e.top - n.top), bde(t, i);
}
function $de(t, e, n) {
if (n.ignoreShake) {
var r = im(t), i = r.left.toFixed(0), a = r.top.toFixed(0), o = e.left.toFixed(0), s = e.top.toFixed(0);
if (i === o && a === s)
return;
}
n.useCssRight || n.useCssBottom ? k8(t, e, n) : n.useCssTransform && HS() in document.body.style ? Pde(t, e) : k8(t, e, n);
}
function gI(t, e) {
for (var n = 0; n < t.length; n++)
e(t[n]);
}
function pZ(t) {
return p0(t, "boxSizing") === "border-box";
}
var Ade = ["margin", "border", "padding"], O2 = -1, Ede = 2, S2 = 1, Mde = 0;
function Ide(t, e, n) {
var r = {}, i = t.style, a;
for (a in e)
e.hasOwnProperty(a) && (r[a] = i[a], i[a] = e[a]);
n.call(t);
for (a in e)
e.hasOwnProperty(a) && (i[a] = r[a]);
}
function Fv(t, e, n) {
var r = 0, i, a, o;
for (a = 0; a < e.length; a++)
if (i = e[a], i)
for (o = 0; o < n.length; o++) {
var s = void 0;
i === "border" ? s = "".concat(i).concat(n[o], "Width") : s = i + n[o], r += parseFloat(p0(t, s)) || 0;
}
return r;
}
var Vo = {
getParent: function(e) {
var n = e;
do
n.nodeType === 11 && n.host ? n = n.host : n = n.parentNode;
while (n && n.nodeType !== 1 && n.nodeType !== 9);
return n;
}
};
gI(["Width", "Height"], function(t) {
Vo["doc".concat(t)] = function(e) {
var n = e.document;
return Math.max(
// firefox chrome documentElement.scrollHeight< body.scrollHeight
// ie standard mode : documentElement.scrollHeight> body.scrollHeight
n.documentElement["scroll".concat(t)],
// quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
n.body["scroll".concat(t)],
Vo["viewport".concat(t)](n)
);
}, Vo["viewport".concat(t)] = function(e) {
var n = "client".concat(t), r = e.document, i = r.body, a = r.documentElement, o = a[n];
return r.compatMode === "CSS1Compat" && o || i && i[n] || o;
};
});
function L8(t, e, n) {
var r = n;
if (vI(t))
return e === "width" ? Vo.viewportWidth(t) : Vo.viewportHeight(t);
if (t.nodeType === 9)
return e === "width" ? Vo.docWidth(t) : Vo.docHeight(t);
var i = e === "width" ? ["Left", "Right"] : ["Top", "Bottom"], a = Math.floor(e === "width" ? t.getBoundingClientRect().width : t.getBoundingClientRect().height), o = pZ(t), s = 0;
(a == null || a <= 0) && (a = void 0, s = p0(t, e), (s == null || Number(s) < 0) && (s = t.style[e] || 0), s = Math.floor(parseFloat(s)) || 0), r === void 0 && (r = o ? S2 : O2);
var l = a !== void 0 || o, u = a || s;
return r === O2 ? l ? u - Fv(t, ["border", "padding"], i) : s : l ? r === S2 ? u : u + (r === Ede ? -Fv(t, ["border"], i) : Fv(t, ["margin"], i)) : s + Fv(t, Ade.slice(r), i);
}
var Dde = {
position: "absolute",
visibility: "hidden",
display: "block"
};
function N8() {
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
e[n] = arguments[n];
var r, i = e[0];
return i.offsetWidth !== 0 ? r = L8.apply(void 0, e) : Ide(i, Dde, function() {
r = L8.apply(void 0, e);
}), r;
}
gI(["width", "height"], function(t) {
var e = t.charAt(0).toUpperCase() + t.slice(1);
Vo["outer".concat(e)] = function(r, i) {
return r && N8(r, t, i ? Mde : S2);
};
var n = t === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
Vo[t] = function(r, i) {
var a = i;
if (a !== void 0) {
if (r) {
var o = pZ(r);
return o && (a += Fv(r, ["padding", "border"], n)), Ud(r, t, a);
}
return;
}
return r && N8(r, t, O2);
};
});
function vZ(t, e) {
for (var n in e)
e.hasOwnProperty(n) && (t[n] = e[n]);
return t;
}
var ft = {
getWindow: function(e) {
if (e && e.document && e.setTimeout)
return e;
var n = e.ownerDocument || e;
return n.defaultView || n.parentWindow;
},
getDocument: hZ,
offset: function(e, n, r) {
if (typeof n < "u")
$de(e, n, r || {});
else
return im(e);
},
isWindow: vI,
each: gI,
css: Ud,
clone: function(e) {
var n, r = {};
for (n in e)
e.hasOwnProperty(n) && (r[n] = e[n]);
var i = e.overflow;
if (i)
for (n in e)
e.hasOwnProperty(n) && (r.overflow[n] = e.overflow[n]);
return r;
},
mix: vZ,
getWindowScrollLeft: function(e) {
return fZ(e);
},
getWindowScrollTop: function(e) {
return dZ(e);
},
merge: function() {
for (var e = {}, n = 0; n < arguments.length; n++)
ft.mix(e, n < 0 || arguments.length <= n ? void 0 : arguments[n]);
return e;
},
viewportWidth: 0,
viewportHeight: 0
};
vZ(ft, Vo);
var fC = ft.getParent;
function x2(t) {
if (ft.isWindow(t) || t.nodeType === 9)
return null;
var e = ft.getDocument(t), n = e.body, r, i = ft.css(t, "position"), a = i === "fixed" || i === "absolute";
if (!a)
return t.nodeName.toLowerCase() === "html" ? null : fC(t);
for (r = fC(t); r && r !== n && r.nodeType !== 9; r = fC(r))
if (i = ft.css(r, "position"), i !== "static")
return r;
return null;
}
var B8 = ft.getParent;
function Rde(t) {
if (ft.isWindow(t) || t.nodeType === 9)
return !1;
var e = ft.getDocument(t), n = e.body, r = null;
for (
r = B8(t);
// 修复元素位于 document.documentElement 下导致崩溃问题
r && r !== n && r !== e;
r = B8(r)
) {
var i = ft.css(r, "position");
if (i === "fixed")
return !0;
}
return !1;
}
function mI(t, e) {
for (var n = {
left: 0,
right: 1 / 0,
top: 0,
bottom: 1 / 0
}, r = x2(t), i = ft.getDocument(t), a = i.defaultView || i.parentWindow, o = i.body, s = i.documentElement; r; ) {
if ((navigator.userAgent.indexOf("MSIE") === -1 || r.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
// viewport. In some browsers, el.offsetParent may be
// document.documentElement, so check for that too.
r !== o && r !== s && ft.css(r, "overflow") !== "visible") {
var l = ft.offset(r);
l.left += r.clientLeft, l.top += r.clientTop, n.top = Math.max(n.top, l.top), n.right = Math.min(
n.right,
// consider area without scrollBar
l.left + r.clientWidth
), n.bottom = Math.min(n.bottom, l.top + r.clientHeight), n.left = Math.max(n.left, l.left);
} else if (r === o || r === s)
break;
r = x2(r);
}
var u = null;
if (!ft.isWindow(t) && t.nodeType !== 9) {
u = t.style.position;
var c = ft.css(t, "position");
c === "absolute" && (t.style.position = "fixed");
}
var f = ft.getWindowScrollLeft(a), d = ft.getWindowScrollTop(a), h = ft.viewportWidth(a), p = ft.viewportHeight(a), v = s.scrollWidth, g = s.scrollHeight, m = window.getComputedStyle(o);
if (m.overflowX === "hidden" && (v = a.innerWidth), m.overflowY === "hidden" && (g = a.innerHeight), t.style && (t.style.position = u), e || Rde(t))
n.left = Math.max(n.left, f), n.top = Math.max(n.top, d), n.right = Math.min(n.right, f + h), n.bottom = Math.min(n.bottom, d + p);
else {
var y = Math.max(v, f + h);
n.right = Math.min(n.right, y);
var b = Math.max(g, d + p);
n.bottom = Math.min(n.bottom, b);
}
return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left ? n : null;
}
function kde(t, e, n, r) {
var i = ft.clone(t), a = {
width: e.width,
height: e.height
};
return r.adjustX && i.left < n.left && (i.left = n.left), r.resizeWidth && i.left >= n.left && i.left + a.width > n.right && (a.width -= i.left + a.width - n.right), r.adjustX && i.left + a.width > n.right && (i.left = Math.max(n.right - a.width, n.left)), r.adjustY && i.top < n.top && (i.top = n.top), r.resizeHeight && i.top >= n.top && i.top + a.height > n.bottom && (a.height -= i.top + a.height - n.bottom), r.adjustY && i.top + a.height > n.bottom && (i.top = Math.max(n.bottom - a.height, n.top)), ft.mix(i, a);
}
function yI(t) {
var e, n, r;
if (!ft.isWindow(t) && t.nodeType !== 9)
e = ft.offset(t), n = ft.outerWidth(t), r = ft.outerHeight(t);
else {
var i = ft.getWindow(t);
e = {
left: ft.getWindowScrollLeft(i),
top: ft.getWindowScrollTop(i)
}, n = ft.viewportWidth(i), r = ft.viewportHeight(i);
}
return e.width = n, e.height = r, e;
}
function z8(t, e) {
var n = e.charAt(0), r = e.charAt(1), i = t.width, a = t.height, o = t.left, s = t.top;
return n === "c" ? s += a / 2 : n === "b" && (s += a), r === "c" ? o += i / 2 : r === "r" && (o += i), {
left: o,
top: s
};
}
function Cy(t, e, n, r, i) {
var a = z8(e, n[1]), o = z8(t, n[0]), s = [o.left - a.left, o.top - a.top];
return {
left: Math.round(t.left - s[0] + r[0] - i[0]),
top: Math.round(t.top - s[1] + r[1] - i[1])
};
}
function V8(t, e, n) {
return t.left < n.left || t.left + e.width > n.right;
}
function F8(t, e, n) {
return t.top < n.top || t.top + e.height > n.bottom;
}
function Lde(t, e, n) {
return t.left > n.right || t.left + e.width < n.left;
}
function Nde(t, e, n) {
return t.top > n.bottom || t.top + e.height < n.top;
}
function Ty(t, e, n) {
var r = [];
return ft.each(t, function(i) {
r.push(i.replace(e, function(a) {
return n[a];
}));
}), r;
}
function Py(t, e) {
return t[e] = -t[e], t;
}
function W8(t, e) {
var n;
return /%$/.test(t) ? n = parseInt(t.substring(0, t.length - 1), 10) / 100 * e : n = parseInt(t, 10), n || 0;
}
function Q8(t, e) {
t[0] = W8(t[0], e.width), t[1] = W8(t[1], e.height);
}
function gZ(t, e, n, r) {
var i = n.points, a = n.offset || [0, 0], o = n.targetOffset || [0, 0], s = n.overflow, l = n.source || t;
a = [].concat(a), o = [].concat(o), s = s || {};
var u = {}, c = 0, f = !!(s && s.alwaysByViewport), d = mI(l, f), h = yI(l);
Q8(a, h), Q8(o, e);
var p = Cy(h, e, i, a, o), v = ft.merge(h, p);
if (d && (s.adjustX || s.adjustY) && r) {
if (s.adjustX && V8(p, h, d)) {
var g = Ty(i, /[lr]/gi, {
l: "r",
r: "l"
}), m = Py(a, 0), y = Py(o, 0), b = Cy(h, e, g, m, y);
Lde(b, h, d) || (c = 1, i = g, a = m, o = y);
}
if (s.adjustY && F8(p, h, d)) {
var _ = Ty(i, /[tb]/gi, {
t: "b",
b: "t"
}), O = Py(a, 1), S = Py(o, 1), x = Cy(h, e, _, O, S);
Nde(x, h, d) || (c = 1, i = _, a = O, o = S);
}
c && (p = Cy(h, e, i, a, o), ft.mix(v, p));
var C = V8(p, h, d), T = F8(p, h, d);
if (C || T) {
var w = i;
C && (w = Ty(i, /[lr]/gi, {
l: "r",
r: "l"
})), T && (w = Ty(i, /[tb]/gi, {
t: "b",
b: "t"
})), i = w, a = n.offset || [0, 0], o = n.targetOffset || [0, 0];
}
u.adjustX = s.adjustX && C, u.adjustY = s.adjustY && T, (u.adjustX || u.adjustY) && (v = kde(p, h, d, u));
}
return v.width !== h.width && ft.css(l, "width", ft.width(l) + v.width - h.width), v.height !== h.height && ft.css(l, "height", ft.height(l) + v.height - h.height), ft.offset(l, {
left: v.left,
top: v.top
}, {
useCssRight: n.useCssRight,
useCssBottom: n.useCssBottom,
useCssTransform: n.useCssTransform,
ignoreShake: n.ignoreShake
}), {
points: i,
offset: a,
targetOffset: o,
overflow: u
};
}
function Bde(t, e) {
var n = mI(t, e), r = yI(t);
return !n || r.left + r.width <= n.left || r.top + r.height <= n.top || r.left >= n.right || r.top >= n.bottom;
}
function bI(t, e, n) {
var r = n.target || e, i = yI(r), a = !Bde(r, n.overflow && n.overflow.alwaysByViewport);
return gZ(t, i, n, a);
}
bI.__getOffsetParent = x2;
bI.__getVisibleRectForElement = mI;
function zde(t, e, n) {
var r, i, a = ft.getDocument(t), o = a.defaultView || a.parentWindow, s = ft.getWindowScrollLeft(o), l = ft.getWindowScrollTop(o), u = ft.viewportWidth(o), c = ft.viewportHeight(o);
"pageX" in e ? r = e.pageX : r = s + e.clientX, "pageY" in e ? i = e.pageY : i = l + e.clientY;
var f = {
left: r,
top: i,
width: 0,
height: 0
}, d = r >= 0 && r <= s + u && i >= 0 && i <= l + c, h = [n.points[0], "cc"];
return gZ(t, f, M8(M8({}, n), {}, {
points: h
}), d);
}
function Pn(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, i = t;
if (Array.isArray(t) && (i = ss(t)[0]), !i)
return null;
const a = Bs(i, e, r);
return a.props = n ? I(I({}, a.props), e) : a.props, Yr(typeof a.props.class != "object", "class must be string"), a;
}
function Vde(t, e, n) {
lf(Bs(t, I({}, e)), n);
}
const mZ = (t) => {
if (!t)
return !1;
if (t.offsetParent)
return !0;
if (t.getBBox) {
const e = t.getBBox();
if (e.width || e.height)
return !0;
}
if (t.getBoundingClientRect) {
const e = t.getBoundingClientRect();
if (e.width || e.height)
return !0;
}
return !1;
};
function Fde(t, e) {
return t === e ? !0 : !t || !e ? !1 : "pageX" in e && "pageY" in e ? t.pageX === e.pageX && t.pageY === e.pageY : "clientX" in e && "clientY" in e ? t.clientX === e.clientX && t.clientY === e.clientY : !1;
}
function Wde(t, e) {
t !== document.activeElement && $l(e, t) && typeof t.focus == "function" && t.focus();
}
function H8(t, e) {
let n = null, r = null;
function i(o) {
let [{
target: s
}] = o;
if (!document.documentElement.contains(s)) return;
const {
width: l,
height: u
} = s.getBoundingClientRect(), c = Math.floor(l), f = Math.floor(u);
(n !== c || r !== f) && Promise.resolve().then(() => {
e({
width: c,
height: f
});
}), n = c, r = f;
}
const a = new nj(i);
return t && a.observe(t), () => {
a.disconnect();
};
}
const Qde = (t, e) => {
let n = !1, r = null;
function i() {
clearTimeout(r);
}
function a(o) {
if (!n || o === !0) {
if (t() === !1)
return;
n = !0, i(), r = setTimeout(() => {
n = !1;
}, e.value);
} else
i(), r = setTimeout(() => {
n = !1, a();
}, e.value);
}
return [a, () => {
n = !1, i();
}];
};
function Hde() {
this.__data__ = [], this.size = 0;
}
function v0(t, e) {
return t === e || t !== t && e !== e;
}
function GS(t, e) {
for (var n = t.length; n--; )
if (v0(t[n][0], e))
return n;
return -1;
}
var Gde = Array.prototype, jde = Gde.splice;
function Zde(t) {
var e = this.__data__, n = GS(e, t);
if (n < 0)
return !1;
var r = e.length - 1;
return n == r ? e.pop() : jde.call(e, n, 1), --this.size, !0;
}
function Ude(t) {
var e = this.__data__, n = GS(e, t);
return n < 0 ? void 0 : e[n][1];
}
function Xde(t) {
return GS(this.__data__, t) > -1;
}
function Yde(t, e) {
var n = this.__data__, r = GS(n, t);
return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
}
function il(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
il.prototype.clear = Hde;
il.prototype.delete = Zde;
il.prototype.get = Ude;
il.prototype.has = Xde;
il.prototype.set = Yde;
function qde() {
this.__data__ = new il(), this.size = 0;
}
function Kde(t) {
var e = this.__data__, n = e.delete(t);
return this.size = e.size, n;
}
function Jde(t) {
return this.__data__.get(t);
}
function ehe(t) {
return this.__data__.has(t);
}
var yZ = typeof global == "object" && global && global.Object === Object && global, the = typeof self == "object" && self && self.Object === Object && self, po = yZ || the || Function("return this")(), $a = po.Symbol, bZ = Object.prototype, nhe = bZ.hasOwnProperty, rhe = bZ.toString, qp = $a ? $a.toStringTag : void 0;
function ihe(t) {
var e = nhe.call(t, qp), n = t[qp];
try {
t[qp] = void 0;
var r = !0;
} catch {
}
var i = rhe.call(t);
return r && (e ? t[qp] = n : delete t[qp]), i;
}
var ahe = Object.prototype, ohe = ahe.toString;
function she(t) {
return ohe.call(t);
}
var lhe = "[object Null]", uhe = "[object Undefined]", G8 = $a ? $a.toStringTag : void 0;
function bu(t) {
return t == null ? t === void 0 ? uhe : lhe : G8 && G8 in Object(t) ? ihe(t) : she(t);
}
function xr(t) {
var e = typeof t;
return t != null && (e == "object" || e == "function");
}
var che = "[object AsyncFunction]", fhe = "[object Function]", dhe = "[object GeneratorFunction]", hhe = "[object Proxy]";
function _I(t) {
if (!xr(t))
return !1;
var e = bu(t);
return e == fhe || e == dhe || e == che || e == hhe;
}
var dC = po["__core-js_shared__"], j8 = function() {
var t = /[^.]+$/.exec(dC && dC.keys && dC.keys.IE_PROTO || "");
return t ? "Symbol(src)_1." + t : "";
}();
function phe(t) {
return !!j8 && j8 in t;
}
var vhe = Function.prototype, ghe = vhe.toString;
function Mf(t) {
if (t != null) {
try {
return ghe.call(t);
} catch {
}
try {
return t + "";
} catch {
}
}
return "";
}
var mhe = /[\\^$.*+?()[\]{}|]/g, yhe = /^\[object .+?Constructor\]$/, bhe = Function.prototype, _he = Object.prototype, Ohe = bhe.toString, She = _he.hasOwnProperty, xhe = RegExp(
"^" + Ohe.call(She).replace(mhe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function whe(t) {
if (!xr(t) || phe(t))
return !1;
var e = _I(t) ? xhe : yhe;
return e.test(Mf(t));
}
function Che(t, e) {
return t == null ? void 0 : t[e];
}
function If(t, e) {
var n = Che(t, e);
return whe(n) ? n : void 0;
}
var am = If(po, "Map"), om = If(Object, "create");
function The() {
this.__data__ = om ? om(null) : {}, this.size = 0;
}
function Phe(t) {
var e = this.has(t) && delete this.__data__[t];
return this.size -= e ? 1 : 0, e;
}
var $he = "__lodash_hash_undefined__", Ahe = Object.prototype, Ehe = Ahe.hasOwnProperty;
function Mhe(t) {
var e = this.__data__;
if (om) {
var n = e[t];
return n === $he ? void 0 : n;
}
return Ehe.call(e, t) ? e[t] : void 0;
}
var Ihe = Object.prototype, Dhe = Ihe.hasOwnProperty;
function Rhe(t) {
var e = this.__data__;
return om ? e[t] !== void 0 : Dhe.call(e, t);
}
var khe = "__lodash_hash_undefined__";
function Lhe(t, e) {
var n = this.__data__;
return this.size += this.has(t) ? 0 : 1, n[t] = om && e === void 0 ? khe : e, this;
}
function pf(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
pf.prototype.clear = The;
pf.prototype.delete = Phe;
pf.prototype.get = Mhe;
pf.prototype.has = Rhe;
pf.prototype.set = Lhe;
function Nhe() {
this.size = 0, this.__data__ = {
hash: new pf(),
map: new (am || il)(),
string: new pf()
};
}
function Bhe(t) {
var e = typeof t;
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
function jS(t, e) {
var n = t.__data__;
return Bhe(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
}
function zhe(t) {
var e = jS(this, t).delete(t);
return this.size -= e ? 1 : 0, e;
}
function Vhe(t) {
return jS(this, t).get(t);
}
function Fhe(t) {
return jS(this, t).has(t);
}
function Whe(t, e) {
var n = jS(this, t), r = n.size;
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
}
function al(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
al.prototype.clear = Nhe;
al.prototype.delete = zhe;
al.prototype.get = Vhe;
al.prototype.has = Fhe;
al.prototype.set = Whe;
var Qhe = 200;
function Hhe(t, e) {
var n = this.__data__;
if (n instanceof il) {
var r = n.__data__;
if (!am || r.length < Qhe - 1)
return r.push([t, e]), this.size = ++n.size, this;
n = this.__data__ = new al(r);
}
return n.set(t, e), this.size = n.size, this;
}
function eo(t) {
var e = this.__data__ = new il(t);
this.size = e.size;
}
eo.prototype.clear = qde;
eo.prototype.delete = Kde;
eo.prototype.get = Jde;
eo.prototype.has = ehe;
eo.prototype.set = Hhe;
var Ghe = "__lodash_hash_undefined__";
function jhe(t) {
return this.__data__.set(t, Ghe), this;
}
function Zhe(t) {
return this.__data__.has(t);
}
function Ch(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.__data__ = new al(); ++e < n; )
this.add(t[e]);
}
Ch.prototype.add = Ch.prototype.push = jhe;
Ch.prototype.has = Zhe;
function Uhe(t, e) {
for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
if (e(t[n], n, t))
return !0;
return !1;
}
function C1(t, e) {
return t.has(e);
}
var Xhe = 1, Yhe = 2;
function _Z(t, e, n, r, i, a) {
var o = n & Xhe, s = t.length, l = e.length;
if (s != l && !(o && l > s))
return !1;
var u = a.get(t), c = a.get(e);
if (u && c)
return u == e && c == t;
var f = -1, d = !0, h = n & Yhe ? new Ch() : void 0;
for (a.set(t, e), a.set(e, t); ++f < s; ) {
var p = t[f], v = e[f];
if (r)
var g = o ? r(v, p, f, e, t, a) : r(p, v, f, t, e, a);
if (g !== void 0) {
if (g)
continue;
d = !1;
break;
}
if (h) {
if (!Uhe(e, function(m, y) {
if (!C1(h, y) && (p === m || i(p, m, n, r, a)))
return h.push(y);
})) {
d = !1;
break;
}
} else if (!(p === v || i(p, v, n, r, a))) {
d = !1;
break;
}
}
return a.delete(t), a.delete(e), d;
}
var T1 = po.Uint8Array;
function qhe(t) {
var e = -1, n = Array(t.size);
return t.forEach(function(r, i) {
n[++e] = [i, r];
}), n;
}
function OI(t) {
var e = -1, n = Array(t.size);
return t.forEach(function(r) {
n[++e] = r;
}), n;
}
var Khe = 1, Jhe = 2, epe = "[object Boolean]", tpe = "[object Date]", npe = "[object Error]", rpe = "[object Map]", ipe = "[object Number]", ape = "[object RegExp]", ope = "[object Set]", spe = "[object String]", lpe = "[object Symbol]", upe = "[object ArrayBuffer]", cpe = "[object DataView]", Z8 = $a ? $a.prototype : void 0, hC = Z8 ? Z8.valueOf : void 0;
function fpe(t, e, n, r, i, a, o) {
switch (n) {
case cpe:
if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
return !1;
t = t.buffer, e = e.buffer;
case upe:
return !(t.byteLength != e.byteLength || !a(new T1(t), new T1(e)));
case epe:
case tpe:
case ipe:
return v0(+t, +e);
case npe:
return t.name == e.name && t.message == e.message;
case ape:
case spe:
return t == e + "";
case rpe:
var s = qhe;
case ope:
var l = r & Khe;
if (s || (s = OI), t.size != e.size && !l)
return !1;
var u = o.get(t);
if (u)
return u == e;
r |= Jhe, o.set(t, e);
var c = _Z(s(t), s(e), r, i, a, o);
return o.delete(t), c;
case lpe:
if (hC)
return hC.call(t) == hC.call(e);
}
return !1;
}
function SI(t, e) {
for (var n = -1, r = e.length, i = t.length; ++n < r; )
t[i + n] = e[n];
return t;
}
var Ti = Array.isArray;
function OZ(t, e, n) {
var r = e(t);
return Ti(t) ? r : SI(r, n(t));
}
function dpe(t, e) {
for (var n = -1, r = t == null ? 0 : t.length, i = 0, a = []; ++n < r; ) {
var o = t[n];
e(o, n, t) && (a[i++] = o);
}
return a;
}
function SZ() {
return [];
}
var hpe = Object.prototype, ppe = hpe.propertyIsEnumerable, U8 = Object.getOwnPropertySymbols, xI = U8 ? function(t) {
return t == null ? [] : (t = Object(t), dpe(U8(t), function(e) {
return ppe.call(t, e);
}));
} : SZ;
function vpe(t, e) {
for (var n = -1, r = Array(t); ++n < t; )
r[n] = e(n);
return r;
}
function io(t) {
return t != null && typeof t == "object";
}
var gpe = "[object Arguments]";
function X8(t) {
return io(t) && bu(t) == gpe;
}
var xZ = Object.prototype, mpe = xZ.hasOwnProperty, ype = xZ.propertyIsEnumerable, Th = X8(/* @__PURE__ */ function() {
return arguments;
}()) ? X8 : function(t) {
return io(t) && mpe.call(t, "callee") && !ype.call(t, "callee");
};
function bpe() {
return !1;
}
var wZ = typeof exports == "object" && exports && !exports.nodeType && exports, Y8 = wZ && typeof module == "object" && module && !module.nodeType && module, _pe = Y8 && Y8.exports === wZ, q8 = _pe ? po.Buffer : void 0, Ope = q8 ? q8.isBuffer : void 0, Ph = Ope || bpe, Spe = 9007199254740991, xpe = /^(?:0|[1-9]\d*)$/;
function ZS(t, e) {
var n = typeof t;
return e = e ?? Spe, !!e && (n == "number" || n != "symbol" && xpe.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
var wpe = 9007199254740991;
function wI(t) {
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= wpe;
}
var Cpe = "[object Arguments]", Tpe = "[object Array]", Ppe = "[object Boolean]", $pe = "[object Date]", Ape = "[object Error]", Epe = "[object Function]", Mpe = "[object Map]", Ipe = "[object Number]", Dpe = "[object Object]", Rpe = "[object RegExp]", kpe = "[object Set]", Lpe = "[object String]", Npe = "[object WeakMap]", Bpe = "[object ArrayBuffer]", zpe = "[object DataView]", Vpe = "[object Float32Array]", Fpe = "[object Float64Array]", Wpe = "[object Int8Array]", Qpe = "[object Int16Array]", Hpe = "[object Int32Array]", Gpe = "[object Uint8Array]", jpe = "[object Uint8ClampedArray]", Zpe = "[object Uint16Array]", Upe = "[object Uint32Array]", ln = {};
ln[Vpe] = ln[Fpe] = ln[Wpe] = ln[Qpe] = ln[Hpe] = ln[Gpe] = ln[jpe] = ln[Zpe] = ln[Upe] = !0;
ln[Cpe] = ln[Tpe] = ln[Bpe] = ln[Ppe] = ln[zpe] = ln[$pe] = ln[Ape] = ln[Epe] = ln[Mpe] = ln[Ipe] = ln[Dpe] = ln[Rpe] = ln[kpe] = ln[Lpe] = ln[Npe] = !1;
function Xpe(t) {
return io(t) && wI(t.length) && !!ln[bu(t)];
}
function US(t) {
return function(e) {
return t(e);
};
}
var CZ = typeof exports == "object" && exports && !exports.nodeType && exports, dg = CZ && typeof module == "object" && module && !module.nodeType && module, Ype = dg && dg.exports === CZ, pC = Ype && yZ.process, $h = function() {
try {
var t = dg && dg.require && dg.require("util").types;
return t || pC && pC.binding && pC.binding("util");
} catch {
}
}(), K8 = $h && $h.isTypedArray, XS = K8 ? US(K8) : Xpe, qpe = Object.prototype, Kpe = qpe.hasOwnProperty;
function TZ(t, e) {
var n = Ti(t), r = !n && Th(t), i = !n && !r && Ph(t), a = !n && !r && !i && XS(t), o = n || r || i || a, s = o ? vpe(t.length, String) : [], l = s.length;
for (var u in t)
(e || Kpe.call(t, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
i && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
ZS(u, l))) && s.push(u);
return s;
}
var Jpe = Object.prototype;
function YS(t) {
var e = t && t.constructor, n = typeof e == "function" && e.prototype || Jpe;
return t === n;
}
function PZ(t, e) {
return function(n) {
return t(e(n));
};
}
var eve = PZ(Object.keys, Object), tve = Object.prototype, nve = tve.hasOwnProperty;
function $Z(t) {
if (!YS(t))
return eve(t);
var e = [];
for (var n in Object(t))
nve.call(t, n) && n != "constructor" && e.push(n);
return e;
}
function fp(t) {
return t != null && wI(t.length) && !_I(t);
}
function g0(t) {
return fp(t) ? TZ(t) : $Z(t);
}
function w2(t) {
return OZ(t, g0, xI);
}
var rve = 1, ive = Object.prototype, ave = ive.hasOwnProperty;
function ove(t, e, n, r, i, a) {
var o = n & rve, s = w2(t), l = s.length, u = w2(e), c = u.length;
if (l != c && !o)
return !1;
for (var f = l; f--; ) {
var d = s[f];
if (!(o ? d in e : ave.call(e, d)))
return !1;
}
var h = a.get(t), p = a.get(e);
if (h && p)
return h == e && p == t;
var v = !0;
a.set(t, e), a.set(e, t);
for (var g = o; ++f < l; ) {
d = s[f];
var m = t[d], y = e[d];
if (r)
var b = o ? r(y, m, d, e, t, a) : r(m, y, d, t, e, a);
if (!(b === void 0 ? m === y || i(m, y, n, r, a) : b)) {
v = !1;
break;
}
g || (g = d == "constructor");
}
if (v && !g) {
var _ = t.constructor, O = e.constructor;
_ != O && "constructor" in t && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof O == "function" && O instanceof O) && (v = !1);
}
return a.delete(t), a.delete(e), v;
}
var C2 = If(po, "DataView"), T2 = If(po, "Promise"), Xd = If(po, "Set"), P2 = If(po, "WeakMap"), J8 = "[object Map]", sve = "[object Object]", eN = "[object Promise]", tN = "[object Set]", nN = "[object WeakMap]", rN = "[object DataView]", lve = Mf(C2), uve = Mf(am), cve = Mf(T2), fve = Mf(Xd), dve = Mf(P2), pa = bu;
(C2 && pa(new C2(new ArrayBuffer(1))) != rN || am && pa(new am()) != J8 || T2 && pa(T2.resolve()) != eN || Xd && pa(new Xd()) != tN || P2 && pa(new P2()) != nN) && (pa = function(t) {
var e = bu(t), n = e == sve ? t.constructor : void 0, r = n ? Mf(n) : "";
if (r)
switch (r) {
case lve:
return rN;
case uve:
return J8;
case cve:
return eN;
case fve:
return tN;
case dve:
return nN;
}
return e;
});
var hve = 1, iN = "[object Arguments]", aN = "[object Array]", $y = "[object Object]", pve = Object.prototype, oN = pve.hasOwnProperty;
function vve(t, e, n, r, i, a) {
var o = Ti(t), s = Ti(e), l = o ? aN : pa(t), u = s ? aN : pa(e);
l = l == iN ? $y : l, u = u == iN ? $y : u;
var c = l == $y, f = u == $y, d = l == u;
if (d && Ph(t)) {
if (!Ph(e))
return !1;
o = !0, c = !1;
}
if (d && !c)
return a || (a = new eo()), o || XS(t) ? _Z(t, e, n, r, i, a) : fpe(t, e, l, n, r, i, a);
if (!(n & hve)) {
var h = c && oN.call(t, "__wrapped__"), p = f && oN.call(e, "__wrapped__");
if (h || p) {
var v = h ? t.value() : t, g = p ? e.value() : e;
return a || (a = new eo()), i(v, g, n, r, a);
}
}
return d ? (a || (a = new eo()), ove(t, e, n, r, i, a)) : !1;
}
function qS(t, e, n, r, i) {
return t === e ? !0 : t == null || e == null || !io(t) && !io(e) ? t !== t && e !== e : vve(t, e, n, r, qS, i);
}
function KS(t, e) {
return qS(t, e);
}
const gve = {
align: Object,
target: [Object, Function],
onAlign: Function,
monitorBufferTime: Number,
monitorWindowResize: Boolean,
disabled: Boolean
};
function sN(t) {
return typeof t != "function" ? null : t();
}
function lN(t) {
return typeof t != "object" || !t ? null : t;
}
const mve = te({
compatConfig: {
MODE: 3
},
name: "Align",
props: gve,
emits: ["align"],
setup(t, e) {
let {
expose: n,
slots: r
} = e;
const i = U({}), a = U(), [o, s] = Qde(() => {
const {
disabled: d,
target: h,
align: p,
onAlign: v
} = t;
if (!d && h && a.value) {
const g = a.value;
let m;
const y = sN(h), b = lN(h);
i.value.element = y, i.value.point = b, i.value.align = p;
const {
activeElement: _
} = document;
return y && mZ(y) ? m = bI(g, y, p) : b && (m = zde(g, b, p)), Wde(_, g), v && m && v(g, m), !0;
}
return !1;
}, L(() => t.monitorBufferTime)), l = U({
cancel: () => {
}
}), u = U({
cancel: () => {
}
}), c = () => {
const d = t.target, h = sN(d), p = lN(d);
a.value !== u.value.element && (u.value.cancel(), u.value.element = a.value, u.value.cancel = H8(a.value, o)), (i.value.element !== h || !Fde(i.value.point, p) || !KS(i.value.align, t.align)) && (o(), l.value.element !== h && (l.value.cancel(), l.value.element = h, l.value.cancel = H8(h, o)));
};
it(() => {
Tt(() => {
c();
});
}), ap(() => {
Tt(() => {
c();
});
}), se(() => t.disabled, (d) => {
d ? s() : o();
}, {
immediate: !0,
flush: "post"
});
const f = U(null);
return se(() => t.monitorWindowResize, (d) => {
d ? f.value || (f.value = vr(window, "resize", o)) : f.value && (f.value.remove(), f.value = null);
}, {
flush: "post"
}), rl(() => {
l.value.cancel(), u.value.cancel(), f.value && f.value.remove(), s();
}), n({
forceAlign: () => o(!0)
}), () => {
const d = r == null ? void 0 : r.default();
return d ? Pn(d[0], {
ref: a
}, !0, !0) : null;
};
}
});
ru("bottomLeft", "bottomRight", "topLeft", "topRight");
const yve = (t) => t !== void 0 && (t === "topLeft" || t === "topRight") ? "slide-down" : "slide-up", m0 = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return I(t ? {
name: t,
appear: !0,
// type: 'animation',
// appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
// appearActiveClass: `antdv-base-transtion`,
// appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
enterFromClass: `${t}-enter ${t}-enter-prepare ${t}-enter-start`,
enterActiveClass: `${t}-enter ${t}-enter-prepare`,
enterToClass: `${t}-enter ${t}-enter-active`,
leaveFromClass: ` ${t}-leave`,
leaveActiveClass: `${t}-leave ${t}-leave-active`,
leaveToClass: `${t}-leave ${t}-leave-active`
} : {
css: !1
}, e);
}, CI = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return I(t ? {
name: t,
appear: !0,
// appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
appearActiveClass: `${t}`,
appearToClass: `${t}-appear ${t}-appear-active`,
enterFromClass: `${t}-appear ${t}-enter ${t}-appear-prepare ${t}-enter-prepare`,
enterActiveClass: `${t}`,
enterToClass: `${t}-enter ${t}-appear ${t}-appear-active ${t}-enter-active`,
leaveActiveClass: `${t} ${t}-leave`,
leaveToClass: `${t}-leave-active`
} : {
css: !1
}, e);
}, ts = (t, e, n) => n !== void 0 ? n : `${t}-${e}`, bve = te({
compatConfig: {
MODE: 3
},
name: "PopupInner",
inheritAttrs: !1,
props: hI,
emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
setup(t, e) {
let {
expose: n,
attrs: r,
slots: i
} = e;
const a = ae(), o = ae(), s = ae(), [l, u] = dde(Nn(t, "stretch")), c = () => {
t.stretch && u(t.getRootDomNode());
}, f = ae(!1);
let d;
se(() => t.visible, (S) => {
clearTimeout(d), S ? d = setTimeout(() => {
f.value = t.visible;
}) : f.value = !1;
}, {
immediate: !0
});
const [h, p] = fde(f, c), v = ae(), g = () => t.point ? t.point : t.getRootDomNode, m = () => {
var S;
(S = a.value) === null || S === void 0 || S.forceAlign();
}, y = (S, x) => {
var C;
const T = t.getClassNameFromAlign(x), w = s.value;
s.value !== T && (s.value = T), h.value === "align" && (w !== T ? Promise.resolve().then(() => {
m();
}) : p(() => {
var P;
(P = v.value) === null || P === void 0 || P.call(v);
}), (C = t.onAlign) === null || C === void 0 || C.call(t, S, x));
}, b = L(() => {
const S = typeof t.animation == "object" ? t.animation : pI(t);
return ["onAfterEnter", "onAfterLeave"].forEach((x) => {
const C = S[x];
S[x] = (T) => {
p(), h.value = "stable", C == null || C(T);
};
}), S;
}), _ = () => new Promise((S) => {
v.value = S;
});
se([b, h], () => {
!b.value && h.value === "motion" && p();
}, {
immediate: !0
}), n({
forceAlign: m,
getElement: () => o.value.$el || o.value
});
const O = L(() => {
var S;
return !(!((S = t.align) === null || S === void 0) && S.points && (h.value === "align" || h.value === "stable"));
});
return () => {
var S;
const {
zIndex: x,
align: C,
prefixCls: T,
destroyPopupOnHide: w,
onMouseenter: P,
onMouseleave: $,
onTouchstart: A = () => {
},
onMousedown: D
} = t, E = h.value, R = [I(I({}, l.value), {
zIndex: x,
opacity: E === "motion" || E === "stable" || !f.value ? null : 0,
// pointerEvents: statusValue === 'stable' ? null : 'none',
pointerEvents: !f.value && E !== "stable" ? "none" : null
}), r.style];
let N = Yn((S = i.default) === null || S === void 0 ? void 0 : S.call(i, {
visible: t.visible
}));
N.length > 1 && (N = M("div", {
class: `${T}-content`
}, [N]));
const V = ye(T, r.class, s.value, !t.arrow && `${T}-arrow-hidden`), W = f.value || !t.visible ? m0(b.value.name, b.value) : {};
return M(ho, j(j({
ref: o
}, W), {}, {
onBeforeEnter: _
}), {
default: () => !w || t.visible ? Oi(M(mve, {
target: g(),
key: "popup",
ref: a,
monitorWindowResize: !0,
disabled: O.value,
align: C,
onAlign: y
}, {
default: () => M("div", {
class: V,
onMouseenter: P,
onMouseleave: $,
onMousedown: uf(D, ["capture"]),
[pr ? "onTouchstartPassive" : "onTouchstart"]: uf(A, ["capture"]),
style: R
}, [N])
}), [[zs, f.value]]) : null
});
};
}
}), _ve = te({
compatConfig: {
MODE: 3
},
name: "Popup",
inheritAttrs: !1,
props: lde,
setup(t, e) {
let {
attrs: n,
slots: r,
expose: i
} = e;
const a = ae(!1), o = ae(!1), s = ae(), l = ae();
return se([() => t.visible, () => t.mobile], () => {
a.value = t.visible, t.visible && t.mobile && (o.value = !0);
}, {
immediate: !0,
flush: "post"
}), i({
forceAlign: () => {
var u;
(u = s.value) === null || u === void 0 || u.forceAlign();
},
getElement: () => {
var u;
return (u = s.value) === null || u === void 0 ? void 0 : u.getElement();
}
}), () => {
const u = I(I(I({}, t), n), {
visible: a.value
}), c = o.value ? M(ude, j(j({}, u), {}, {
mobile: t.mobile,
ref: s
}), {
default: r.default
}) : M(bve, j(j({}, u), {}, {
ref: s
}), {
default: r.default
});
return M("div", {
ref: l
}, [M(lZ, u, null), c]);
};
}
});
function Ove(t, e, n) {
return n ? t[0] === e[0] : t[0] === e[0] && t[1] === e[1];
}
function uN(t, e, n) {
const r = t[e] || {};
return I(I({}, r), n);
}
function Sve(t, e, n, r) {
const {
points: i
} = n, a = Object.keys(t);
for (let o = 0; o < a.length; o += 1) {
const s = a[o];
if (Ove(t[s].points, i, r))
return `${e}-placement-${s}`;
}
return "";
}
const JS = {
methods: {
setState() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0, n = typeof t == "function" ? t(this.$data, this.$props) : t;
if (this.getDerivedStateFromProps) {
const r = this.getDerivedStateFromProps(Due(this), I(I({}, this.$data), n));
if (r === null)
return;
n = I(I({}, n), r || {});
}
I(this.$data, n), this._.isMounted && this.$forceUpdate(), Tt(() => {
e && e();
});
},
__emit() {
const t = [].slice.call(arguments, 0);
let e = t[0];
e = `on${e[0].toUpperCase()}${e.substring(1)}`;
const n = this.$props[e] || this.$attrs[e];
if (t.length && n)
if (Array.isArray(n))
for (let r = 0, i = n.length; r < i; r++)
n[r](...t.slice(1));
else
n(...t.slice(1));
}
}
}, AZ = Symbol("PortalContextKey"), TI = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
inTriggerContext: !0
};
pt(AZ, {
inTriggerContext: e.inTriggerContext,
shouldRender: L(() => {
const {
sPopupVisible: n,
popupRef: r,
forceRender: i,
autoDestroy: a
} = t || {};
let o = !1;
return (n || r || i) && (o = !0), !n && a && (o = !1), o;
})
});
}, xve = () => {
TI({}, {
inTriggerContext: !1
});
const t = Ge(AZ, {
shouldRender: L(() => !1),
inTriggerContext: !1
});
return {
shouldRender: L(() => t.shouldRender.value || t.inTriggerContext === !1)
};
}, EZ = te({
compatConfig: {
MODE: 3
},
name: "Portal",
inheritAttrs: !1,
props: {
getContainer: Y.func.isRequired,
didUpdate: Function
},
setup(t, e) {
let {
slots: n
} = e, r = !0, i;
const {
shouldRender: a
} = xve();
function o() {
a.value && (i = t.getContainer());
}
G9(() => {
r = !1, o();
}), it(() => {
i || o();
});
const s = se(a, () => {
a.value && !i && (i = t.getContainer()), i && s();
});
return ap(() => {
Tt(() => {
var l;
a.value && ((l = t.didUpdate) === null || l === void 0 || l.call(t, t));
});
}), () => {
var l;
return a.value ? r ? (l = n.default) === null || l === void 0 ? void 0 : l.call(n) : i ? M(AS, {
to: i
}, n) : null : null;
};
}
});
let vC;
function wve(t) {
if (typeof document > "u")
return 0;
if (vC === void 0) {
const e = document.createElement("div");
e.style.width = "100%", e.style.height = "200px";
const n = document.createElement("div"), r = n.style;
r.position = "absolute", r.top = "0", r.left = "0", r.pointerEvents = "none", r.visibility = "hidden", r.width = "200px", r.height = "150px", r.overflow = "hidden", n.appendChild(e), document.body.appendChild(n);
const i = e.offsetWidth;
n.style.overflow = "scroll";
let a = e.offsetWidth;
i === a && (a = n.clientWidth), document.body.removeChild(n), vC = i - a;
}
return vC;
}
const Cve = `vc-util-locker-${Date.now()}`;
let cN = 0;
function Tve() {
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
}
function Pve(t) {
const e = L(() => !!t && !!t.value);
cN += 1;
const n = `${Cve}_${cN}`;
ht((r) => {
if (Ta()) {
if (e.value) {
const i = wve(), a = Tve();
em(`
html body {
overflow-y: hidden;
${a ? `width: calc(100% - ${i}px);` : ""}
}`, n);
} else
b1(n);
r(() => {
b1(n);
});
}
}, {
flush: "post"
});
}
let Ru = 0;
const w_ = Ta(), fN = (t) => {
if (!w_)
return null;
if (t) {
if (typeof t == "string")
return document.querySelectorAll(t)[0];
if (typeof t == "function")
return t();
if (typeof t == "object" && t instanceof window.HTMLElement)
return t;
}
return document.body;
}, MZ = te({
compatConfig: {
MODE: 3
},
name: "PortalWrapper",
inheritAttrs: !1,
props: {
wrapperClassName: String,
forceRender: {
type: Boolean,
default: void 0
},
getContainer: Y.any,
visible: {
type: Boolean,
default: void 0
},
autoLock: nt(),
didUpdate: Function
},
setup(t, e) {
let {
slots: n
} = e;
const r = ae(), i = ae(), a = ae(), o = ae(1), s = Ta() && document.createElement("div"), l = () => {
var h, p;
r.value === s && ((p = (h = r.value) === null || h === void 0 ? void 0 : h.parentNode) === null || p === void 0 || p.removeChild(r.value)), r.value = null;
};
let u = null;
const c = function() {
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) || r.value && !r.value.parentNode ? (u = fN(t.getContainer), u ? (u.appendChild(r.value), !0) : !1) : !0;
}, f = () => w_ ? (r.value || (r.value = s, c(!0)), d(), r.value) : null, d = () => {
const {
wrapperClassName: h
} = t;
r.value && h && h !== r.value.className && (r.value.className = h);
};
return ap(() => {
d(), c();
}), Pve(L(() => t.autoLock && t.visible && Ta() && (r.value === document.body || r.value === s))), it(() => {
let h = !1;
se([() => t.visible, () => t.getContainer], (p, v) => {
let [g, m] = p, [y, b] = v;
w_ && (u = fN(t.getContainer), u === document.body && (g && !y ? Ru += 1 : h && (Ru -= 1))), h && (typeof m == "function" && typeof b == "function" ? m.toString() !== b.toString() : m !== b) && l(), h = !0;
}, {
immediate: !0,
flush: "post"
}), Tt(() => {
c() || (a.value = xt(() => {
o.value += 1;
}));
});
}), yt(() => {
const {
visible: h
} = t;
w_ && u === document.body && (Ru = h && Ru ? Ru - 1 : Ru), l(), xt.cancel(a.value);
}), () => {
const {
forceRender: h,
visible: p
} = t;
let v = null;
const g = {
getOpenCount: () => Ru,
getContainer: f
};
return o.value && (h || p || i.value) && (v = M(EZ, {
getContainer: f,
ref: i,
didUpdate: t.didUpdate
}, {
default: () => {
var m;
return (m = n.default) === null || m === void 0 ? void 0 : m.call(n, g);
}
})), v;
};
}
}), $ve = ["onClick", "onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onFocus", "onBlur", "onContextmenu"], ex = te({
compatConfig: {
MODE: 3
},
name: "Trigger",
mixins: [JS],
inheritAttrs: !1,
props: ode(),
setup(t) {
const e = L(() => {
const {
popupPlacement: i,
popupAlign: a,
builtinPlacements: o
} = t;
return i && o ? uN(o, i, a) : a;
}), n = ae(null), r = (i) => {
n.value = i;
};
return {
vcTriggerContext: Ge("vcTriggerContext", {}),
popupRef: n,
setPopupRef: r,
triggerRef: ae(null),
align: e,
focusTime: null,
clickOutsideHandler: null,
contextmenuOutsideHandler1: null,
contextmenuOutsideHandler2: null,
touchOutsideHandler: null,
attachId: null,
delayTimer: null,
hasPopupMouseDown: !1,
preClickTime: null,
preTouchTime: null,
mouseDownTimeout: null,
childOriginEvents: {}
};
},
data() {
const t = this.$props;
let e;
return this.popupVisible !== void 0 ? e = !!t.popupVisible : e = !!t.defaultPopupVisible, $ve.forEach((n) => {
this[`fire${n}`] = (r) => {
this.fireEvents(n, r);
};
}), {
prevPopupVisible: e,
sPopupVisible: e,
point: null
};
},
watch: {
popupVisible(t) {
t !== void 0 && (this.prevPopupVisible = this.sPopupVisible, this.sPopupVisible = t);
}
},
created() {
pt("vcTriggerContext", {
onPopupMouseDown: this.onPopupMouseDown,
onPopupMouseenter: this.onPopupMouseenter,
onPopupMouseleave: this.onPopupMouseleave
}), TI(this);
},
deactivated() {
this.setPopupVisible(!1);
},
mounted() {
this.$nextTick(() => {
this.updatedCal();
});
},
updated() {
this.$nextTick(() => {
this.updatedCal();
});
},
beforeUnmount() {
this.clearDelayTimer(), this.clearOutsideHandler(), clearTimeout(this.mouseDownTimeout), xt.cancel(this.attachId);
},
methods: {
updatedCal() {
const t = this.$props;
if (this.$data.sPopupVisible) {
let n;
!this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow()) && (n = t.getDocument(this.getRootDomNode()), this.clickOutsideHandler = vr(n, "mousedown", this.onDocumentClick)), this.touchOutsideHandler || (n = n || t.getDocument(this.getRootDomNode()), this.touchOutsideHandler = vr(n, "touchstart", this.onDocumentClick, pr ? {
passive: !1
} : !1)), !this.contextmenuOutsideHandler1 && this.isContextmenuToShow() && (n = n || t.getDocument(this.getRootDomNode()), this.contextmenuOutsideHandler1 = vr(n, "scroll", this.onContextmenuClose)), !this.contextmenuOutsideHandler2 && this.isContextmenuToShow() && (this.contextmenuOutsideHandler2 = vr(window, "blur", this.onContextmenuClose));
} else
this.clearOutsideHandler();
},
onMouseenter(t) {
const {
mouseEnterDelay: e
} = this.$props;
this.fireEvents("onMouseenter", t), this.delaySetPopupVisible(!0, e, e ? null : t);
},
onMouseMove(t) {
this.fireEvents("onMousemove", t), this.setPoint(t);
},
onMouseleave(t) {
this.fireEvents("onMouseleave", t), this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay);
},
onPopupMouseenter() {
const {
vcTriggerContext: t = {}
} = this;
t.onPopupMouseenter && t.onPopupMouseenter(), this.clearDelayTimer();
},
onPopupMouseleave(t) {
var e;
if (t && t.relatedTarget && !t.relatedTarget.setTimeout && $l((e = this.popupRef) === null || e === void 0 ? void 0 : e.getElement(), t.relatedTarget))
return;
this.isMouseLeaveToHide() && this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay);
const {
vcTriggerContext: n = {}
} = this;
n.onPopupMouseleave && n.onPopupMouseleave(t);
},
onFocus(t) {
this.fireEvents("onFocus", t), this.clearDelayTimer(), this.isFocusToShow() && (this.focusTime = Date.now(), this.delaySetPopupVisible(!0, this.$props.focusDelay));
},
onMousedown(t) {
this.fireEvents("onMousedown", t), this.preClickTime = Date.now();
},
onTouchstart(t) {
this.fireEvents("onTouchstart", t), this.preTouchTime = Date.now();
},
onBlur(t) {
$l(t.target, t.relatedTarget || document.activeElement) || (this.fireEvents("onBlur", t), this.clearDelayTimer(), this.isBlurToHide() && this.delaySetPopupVisible(!1, this.$props.blurDelay));
},
onContextmenu(t) {
t.preventDefault(), this.fireEvents("onContextmenu", t), this.setPopupVisible(!0, t);
},
onContextmenuClose() {
this.isContextmenuToShow() && this.close();
},
onClick(t) {
if (this.fireEvents("onClick", t), this.focusTime) {
let n;
if (this.preClickTime && this.preTouchTime ? n = Math.min(this.preClickTime, this.preTouchTime) : this.preClickTime ? n = this.preClickTime : this.preTouchTime && (n = this.preTouchTime), Math.abs(n - this.focusTime) < 20)
return;
this.focusTime = 0;
}
this.preClickTime = 0, this.preTouchTime = 0, this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && t && t.preventDefault && t.preventDefault(), t && t.domEvent && t.domEvent.preventDefault();
const e = !this.$data.sPopupVisible;
(this.isClickToHide() && !e || e && this.isClickToShow()) && this.setPopupVisible(!this.$data.sPopupVisible, t);
},
onPopupMouseDown() {
const {
vcTriggerContext: t = {}
} = this;
this.hasPopupMouseDown = !0, clearTimeout(this.mouseDownTimeout), this.mouseDownTimeout = setTimeout(() => {
this.hasPopupMouseDown = !1;
}, 0), t.onPopupMouseDown && t.onPopupMouseDown(...arguments);
},
onDocumentClick(t) {
if (this.$props.mask && !this.$props.maskClosable)
return;
const e = t.target, n = this.getRootDomNode(), r = this.getPopupDomNode();
// mousedown on the target should also close popup when action is contextMenu.
// https://github.com/ant-design/ant-design/issues/29853
(!$l(n, e) || this.isContextMenuOnly()) && !$l(r, e) && !this.hasPopupMouseDown && this.delaySetPopupVisible(!1, 0.1);
},
getPopupDomNode() {
var t;
return ((t = this.popupRef) === null || t === void 0 ? void 0 : t.getElement()) || null;
},
getRootDomNode() {
var t, e, n, r;
const {
getTriggerDOMNode: i
} = this.$props;
if (i) {
const a = ((e = (t = this.triggerRef) === null || t === void 0 ? void 0 : t.$el) === null || e === void 0 ? void 0 : e.nodeName) === "#comment" ? null : Ts(this.triggerRef);
return Ts(i(a));
}
try {
const a = ((r = (n = this.triggerRef) === null || n === void 0 ? void 0 : n.$el) === null || r === void 0 ? void 0 : r.nodeName) === "#comment" ? null : Ts(this.triggerRef);
if (a)
return a;
} catch {
}
return Ts(this);
},
handleGetPopupClassFromAlign(t) {
const e = [], n = this.$props, {
popupPlacement: r,
builtinPlacements: i,
prefixCls: a,
alignPoint: o,
getPopupClassNameFromAlign: s
} = n;
return r && i && e.push(Sve(i, a, t, o)), s && e.push(s(t)), e.join(" ");
},
getPopupAlign() {
const t = this.$props, {
popupPlacement: e,
popupAlign: n,
builtinPlacements: r
} = t;
return e && r ? uN(r, e, n) : n;
},
getComponent() {
const t = {};
this.isMouseEnterToShow() && (t.onMouseenter = this.onPopupMouseenter), this.isMouseLeaveToHide() && (t.onMouseleave = this.onPopupMouseleave), t.onMousedown = this.onPopupMouseDown, t[pr ? "onTouchstartPassive" : "onTouchstart"] = this.onPopupMouseDown;
const {
handleGetPopupClassFromAlign: e,
getRootDomNode: n,
$attrs: r
} = this, {
prefixCls: i,
destroyPopupOnHide: a,
popupClassName: o,
popupAnimation: s,
popupTransitionName: l,
popupStyle: u,
mask: c,
maskAnimation: f,
maskTransitionName: d,
zIndex: h,
stretch: p,
alignPoint: v,
mobile: g,
arrow: m,
forceRender: y
} = this.$props, {
sPopupVisible: b,
point: _
} = this.$data, O = I(I({
prefixCls: i,
arrow: m,
destroyPopupOnHide: a,
visible: b,
point: v ? _ : null,
align: this.align,
animation: s,
getClassNameFromAlign: e,
stretch: p,
getRootDomNode: n,
mask: c,
zIndex: h,
transitionName: l,
maskAnimation: f,
maskTransitionName: d,
class: o,
style: u,
onAlign: r.onPopupAlign || sZ
}, t), {
ref: this.setPopupRef,
mobile: g,
forceRender: y
});
return M(_ve, O, {
default: this.$slots.popup || (() => Rue(this, "popup"))
});
},
attachParent(t) {
xt.cancel(this.attachId);
const {
getPopupContainer: e,
getDocument: n
} = this.$props, r = this.getRootDomNode();
let i;
e ? (r || e.length === 0) && (i = e(r)) : i = n(this.getRootDomNode()).body, i ? i.appendChild(t) : this.attachId = xt(() => {
this.attachParent(t);
});
},
getContainer() {
const {
$props: t
} = this, {
getDocument: e
} = t, n = e(this.getRootDomNode()).createElement("div");
return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", this.attachParent(n), n;
},
setPopupVisible(t, e) {
const {
alignPoint: n,
sPopupVisible: r,
onPopupVisibleChange: i
} = this;
this.clearDelayTimer(), r !== t && (m1(this, "popupVisible") || this.setState({
sPopupVisible: t,
prevPopupVisible: r
}), i && i(t)), n && e && t && this.setPoint(e);
},
setPoint(t) {
const {
alignPoint: e
} = this.$props;
!e || !t || this.setState({
point: {
pageX: t.pageX,
pageY: t.pageY
}
});
},
handlePortalUpdate() {
this.prevPopupVisible !== this.sPopupVisible && this.afterPopupVisibleChange(this.sPopupVisible);
},
delaySetPopupVisible(t, e, n) {
const r = e * 1e3;
if (this.clearDelayTimer(), r) {
const i = n ? {
pageX: n.pageX,
pageY: n.pageY
} : null;
this.delayTimer = setTimeout(() => {
this.setPopupVisible(t, i), this.clearDelayTimer();
}, r);
} else
this.setPopupVisible(t, n);
},
clearDelayTimer() {
this.delayTimer && (clearTimeout(this.delayTimer), this.delayTimer = null);
},
clearOutsideHandler() {
this.clickOutsideHandler && (this.clickOutsideHandler.remove(), this.clickOutsideHandler = null), this.contextmenuOutsideHandler1 && (this.contextmenuOutsideHandler1.remove(), this.contextmenuOutsideHandler1 = null), this.contextmenuOutsideHandler2 && (this.contextmenuOutsideHandler2.remove(), this.contextmenuOutsideHandler2 = null), this.touchOutsideHandler && (this.touchOutsideHandler.remove(), this.touchOutsideHandler = null);
},
createTwoChains(t) {
let e = () => {
};
const n = t8(this);
return this.childOriginEvents[t] && n[t] ? this[`fire${t}`] : (e = this.childOriginEvents[t] || n[t] || e, e);
},
isClickToShow() {
const {
action: t,
showAction: e
} = this.$props;
return t.indexOf("click") !== -1 || e.indexOf("click") !== -1;
},
isContextMenuOnly() {
const {
action: t
} = this.$props;
return t === "contextmenu" || t.length === 1 && t[0] === "contextmenu";
},
isContextmenuToShow() {
const {
action: t,
showAction: e
} = this.$props;
return t.indexOf("contextmenu") !== -1 || e.indexOf("contextmenu") !== -1;
},
isClickToHide() {
const {
action: t,
hideAction: e
} = this.$props;
return t.indexOf("click") !== -1 || e.indexOf("click") !== -1;
},
isMouseEnterToShow() {
const {
action: t,
showAction: e
} = this.$props;
return t.indexOf("hover") !== -1 || e.indexOf("mouseenter") !== -1;
},
isMouseLeaveToHide() {
const {
action: t,
hideAction: e
} = this.$props;
return t.indexOf("hover") !== -1 || e.indexOf("mouseleave") !== -1;
},
isFocusToShow() {
const {
action: t,
showAction: e
} = this.$props;
return t.indexOf("focus") !== -1 || e.indexOf("focus") !== -1;
},
isBlurToHide() {
const {
action: t,
hideAction: e
} = this.$props;
return t.indexOf("focus") !== -1 || e.indexOf("blur") !== -1;
},
forcePopupAlign() {
var t;
this.$data.sPopupVisible && ((t = this.popupRef) === null || t === void 0 || t.forceAlign());
},
fireEvents(t, e) {
this.childOriginEvents[t] && this.childOriginEvents[t](e);
const n = this.$props[t] || this.$attrs[t];
n && n(e);
},
close() {
this.setPopupVisible(!1);
}
},
render() {
const {
$attrs: t
} = this, e = ss(ij(this)), {
alignPoint: n,
getPopupContainer: r
} = this.$props, i = e[0];
this.childOriginEvents = t8(i);
const a = {
key: "trigger"
};
this.isContextmenuToShow() ? a.onContextmenu = this.onContextmenu : a.onContextmenu = this.createTwoChains("onContextmenu"), this.isClickToHide() || this.isClickToShow() ? (a.onClick = this.onClick, a.onMousedown = this.onMousedown, a[pr ? "onTouchstartPassive" : "onTouchstart"] = this.onTouchstart) : (a.onClick = this.createTwoChains("onClick"), a.onMousedown = this.createTwoChains("onMousedown"), a[pr ? "onTouchstartPassive" : "onTouchstart"] = this.createTwoChains("onTouchstart")), this.isMouseEnterToShow() ? (a.onMouseenter = this.onMouseenter, n && (a.onMousemove = this.onMouseMove)) : a.onMouseenter = this.createTwoChains("onMouseenter"), this.isMouseLeaveToHide() ? a.onMouseleave = this.onMouseleave : a.onMouseleave = this.createTwoChains("onMouseleave"), this.isFocusToShow() || this.isBlurToHide() ? (a.onFocus = this.onFocus, a.onBlur = this.onBlur) : (a.onFocus = this.createTwoChains("onFocus"), a.onBlur = (u) => {
u && (!u.relatedTarget || !$l(u.target, u.relatedTarget)) && this.createTwoChains("onBlur")(u);
});
const o = ye(i && i.props && i.props.class, t.class);
o && (a.class = o);
const s = Pn(i, I(I({}, a), {
ref: "triggerRef"
}), !0, !0), l = M(MZ, {
key: "portal",
getContainer: r && (() => r(this.getRootDomNode())),
didUpdate: this.handlePortalUpdate,
visible: this.$data.sPopupVisible
}, {
default: this.getComponent
});
return M(wt, null, [s, l]);
}
});
var Ave = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Eve = (t) => {
const e = t === !0 ? 0 : 1;
return {
bottomLeft: {
points: ["tl", "bl"],
offset: [0, 4],
overflow: {
adjustX: e,
adjustY: 1
}
},
bottomRight: {
points: ["tr", "br"],
offset: [0, 4],
overflow: {
adjustX: e,
adjustY: 1
}
},
topLeft: {
points: ["bl", "tl"],
offset: [0, -4],
overflow: {
adjustX: e,
adjustY: 1
}
},
topRight: {
points: ["br", "tr"],
offset: [0, -4],
overflow: {
adjustX: e,
adjustY: 1
}
}
};
}, Mve = te({
name: "SelectTrigger",
inheritAttrs: !1,
props: {
dropdownAlign: Object,
visible: {
type: Boolean,
default: void 0
},
disabled: {
type: Boolean,
default: void 0
},
dropdownClassName: String,
dropdownStyle: Y.object,
placement: String,
empty: {
type: Boolean,
default: void 0
},
prefixCls: String,
popupClassName: String,
animation: String,
transitionName: String,
getPopupContainer: Function,
dropdownRender: Function,
containerWidth: Number,
dropdownMatchSelectWidth: Y.oneOfType([Number, Boolean]).def(!0),
popupElement: Y.any,
direction: String,
getTriggerDOMNode: Function,
onPopupVisibleChange: Function,
onPopupMouseEnter: Function,
onPopupFocusin: Function,
onPopupFocusout: Function
},
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i
} = e;
const a = L(() => {
const {
dropdownMatchSelectWidth: s
} = t;
return Eve(s);
}), o = U();
return i({
getPopupElement: () => o.value
}), () => {
const s = I(I({}, t), r), {
empty: l = !1
} = s, u = Ave(s, ["empty"]), {
visible: c,
dropdownAlign: f,
prefixCls: d,
popupElement: h,
dropdownClassName: p,
dropdownStyle: v,
direction: g = "ltr",
placement: m,
dropdownMatchSelectWidth: y,
containerWidth: b,
dropdownRender: _,
animation: O,
transitionName: S,
getPopupContainer: x,
getTriggerDOMNode: C,
onPopupVisibleChange: T,
onPopupMouseEnter: w,
onPopupFocusin: P,
onPopupFocusout: $
} = u, A = `${d}-dropdown`;
let D = h;
_ && (D = _({
menuNode: h,
props: t
}));
const E = O ? `${A}-${O}` : S, R = I({
minWidth: `${b}px`
}, v);
return typeof y == "number" ? R.width = `${y}px` : y && (R.width = `${b}px`), M(ex, j(j({}, t), {}, {
showAction: T ? ["click"] : [],
hideAction: T ? ["click"] : [],
popupPlacement: m || (g === "rtl" ? "bottomRight" : "bottomLeft"),
builtinPlacements: a.value,
prefixCls: A,
popupTransitionName: E,
popupAlign: f,
popupVisible: c,
getPopupContainer: x,
popupClassName: ye(p, {
[`${A}-empty`]: l
}),
popupStyle: R,
getTriggerDOMNode: C,
onPopupVisibleChange: T
}), {
default: n.default,
popup: () => M("div", {
ref: o,
onMouseenter: w,
onFocusin: P,
onFocusout: $
}, [D])
});
};
}
}), ge = {
/**
* MAC_ENTER
*/
MAC_ENTER: 3,
/**
* BACKSPACE
*/
BACKSPACE: 8,
/**
* TAB
*/
TAB: 9,
/**
* NUMLOCK on FF/Safari Mac
*/
NUM_CENTER: 12,
/**
* ENTER
*/
ENTER: 13,
/**
* SHIFT
*/
SHIFT: 16,
/**
* CTRL
*/
CTRL: 17,
/**
* ALT
*/
ALT: 18,
/**
* PAUSE
*/
PAUSE: 19,
/**
* CAPS_LOCK
*/
CAPS_LOCK: 20,
/**
* ESC
*/
ESC: 27,
/**
* SPACE
*/
SPACE: 32,
/**
* PAGE_UP
*/
PAGE_UP: 33,
/**
* PAGE_DOWN
*/
PAGE_DOWN: 34,
/**
* END
*/
END: 35,
/**
* HOME
*/
HOME: 36,
/**
* LEFT
*/
LEFT: 37,
/**
* UP
*/
UP: 38,
/**
* RIGHT
*/
RIGHT: 39,
/**
* DOWN
*/
DOWN: 40,
/**
* PRINT_SCREEN
*/
PRINT_SCREEN: 44,
/**
* INSERT
*/
INSERT: 45,
/**
* DELETE
*/
DELETE: 46,
/**
* ZERO
*/
ZERO: 48,
/**
* ONE
*/
ONE: 49,
/**
* TWO
*/
TWO: 50,
/**
* THREE
*/
THREE: 51,
/**
* FOUR
*/
FOUR: 52,
/**
* FIVE
*/
FIVE: 53,
/**
* SIX
*/
SIX: 54,
/**
* SEVEN
*/
SEVEN: 55,
/**
* EIGHT
*/
EIGHT: 56,
/**
* NINE
*/
NINE: 57,
/**
* QUESTION_MARK
*/
QUESTION_MARK: 63,
/**
* A
*/
A: 65,
/**
* B
*/
B: 66,
/**
* C
*/
C: 67,
/**
* D
*/
D: 68,
/**
* E
*/
E: 69,
/**
* F
*/
F: 70,
/**
* G
*/
G: 71,
/**
* H
*/
H: 72,
/**
* I
*/
I: 73,
/**
* J
*/
J: 74,
/**
* K
*/
K: 75,
/**
* L
*/
L: 76,
/**
* M
*/
M: 77,
/**
* N
*/
N: 78,
/**
* O
*/
O: 79,
/**
* P
*/
P: 80,
/**
* Q
*/
Q: 81,
/**
* R
*/
R: 82,
/**
* S
*/
S: 83,
/**
* T
*/
T: 84,
/**
* U
*/
U: 85,
/**
* V
*/
V: 86,
/**
* W
*/
W: 87,
/**
* X
*/
X: 88,
/**
* Y
*/
Y: 89,
/**
* Z
*/
Z: 90,
/**
* META
*/
META: 91,
/**
* WIN_KEY_RIGHT
*/
WIN_KEY_RIGHT: 92,
/**
* CONTEXT_MENU
*/
CONTEXT_MENU: 93,
/**
* NUM_ZERO
*/
NUM_ZERO: 96,
/**
* NUM_ONE
*/
NUM_ONE: 97,
/**
* NUM_TWO
*/
NUM_TWO: 98,
/**
* NUM_THREE
*/
NUM_THREE: 99,
/**
* NUM_FOUR
*/
NUM_FOUR: 100,
/**
* NUM_FIVE
*/
NUM_FIVE: 101,
/**
* NUM_SIX
*/
NUM_SIX: 102,
/**
* NUM_SEVEN
*/
NUM_SEVEN: 103,
/**
* NUM_EIGHT
*/
NUM_EIGHT: 104,
/**
* NUM_NINE
*/
NUM_NINE: 105,
/**
* NUM_MULTIPLY
*/
NUM_MULTIPLY: 106,
/**
* NUM_PLUS
*/
NUM_PLUS: 107,
/**
* NUM_MINUS
*/
NUM_MINUS: 109,
/**
* NUM_PERIOD
*/
NUM_PERIOD: 110,
/**
* NUM_DIVISION
*/
NUM_DIVISION: 111,
/**
* F1
*/
F1: 112,
/**
* F2
*/
F2: 113,
/**
* F3
*/
F3: 114,
/**
* F4
*/
F4: 115,
/**
* F5
*/
F5: 116,
/**
* F6
*/
F6: 117,
/**
* F7
*/
F7: 118,
/**
* F8
*/
F8: 119,
/**
* F9
*/
F9: 120,
/**
* F10
*/
F10: 121,
/**
* F11
*/
F11: 122,
/**
* F12
*/
F12: 123,
/**
* NUMLOCK
*/
NUMLOCK: 144,
/**
* SEMICOLON
*/
SEMICOLON: 186,
/**
* DASH
*/
DASH: 189,
/**
* EQUALS
*/
EQUALS: 187,
/**
* COMMA
*/
COMMA: 188,
/**
* PERIOD
*/
PERIOD: 190,
/**
* SLASH
*/
SLASH: 191,
/**
* APOSTROPHE
*/
APOSTROPHE: 192,
/**
* SINGLE_QUOTE
*/
SINGLE_QUOTE: 222,
/**
* OPEN_SQUARE_BRACKET
*/
OPEN_SQUARE_BRACKET: 219,
/**
* BACKSLASH
*/
BACKSLASH: 220,
/**
* CLOSE_SQUARE_BRACKET
*/
CLOSE_SQUARE_BRACKET: 221,
/**
* WIN_KEY
*/
WIN_KEY: 224,
/**
* MAC_FF_META
*/
MAC_FF_META: 224,
/**
* WIN_IME
*/
WIN_IME: 229,
// ======================== Function ========================
/**
* whether text and modified key is entered at the same time.
*/
isTextModifyingKeyEvent: function(e) {
const {
keyCode: n
} = e;
if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text
n >= ge.F1 && n <= ge.F12)
return !1;
switch (n) {
case ge.ALT:
case ge.CAPS_LOCK:
case ge.CONTEXT_MENU:
case ge.CTRL:
case ge.DOWN:
case ge.END:
case ge.ESC:
case ge.HOME:
case ge.INSERT:
case ge.LEFT:
case ge.MAC_FF_META:
case ge.META:
case ge.NUMLOCK:
case ge.NUM_CENTER:
case ge.PAGE_DOWN:
case ge.PAGE_UP:
case ge.PAUSE:
case ge.PRINT_SCREEN:
case ge.RIGHT:
case ge.SHIFT:
case ge.UP:
case ge.WIN_KEY:
case ge.WIN_KEY_RIGHT:
return !1;
default:
return !0;
}
},
/**
* whether character is entered.
*/
isCharacterKey: function(e) {
if (e >= ge.ZERO && e <= ge.NINE || e >= ge.NUM_ZERO && e <= ge.NUM_MULTIPLY || e >= ge.A && e <= ge.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && e === 0)
return !0;
switch (e) {
case ge.SPACE:
case ge.QUESTION_MARK:
case ge.NUM_PLUS:
case ge.NUM_MINUS:
case ge.NUM_PERIOD:
case ge.NUM_DIVISION:
case ge.SEMICOLON:
case ge.DASH:
case ge.EQUALS:
case ge.COMMA:
case ge.PERIOD:
case ge.SLASH:
case ge.APOSTROPHE:
case ge.SINGLE_QUOTE:
case ge.OPEN_SQUARE_BRACKET:
case ge.BACKSLASH:
case ge.CLOSE_SQUARE_BRACKET:
return !0;
default:
return !1;
}
}
}, vf = (t, e) => {
let {
slots: n
} = e;
var r;
const {
class: i,
customizeIcon: a,
customizeIconProps: o,
onMousedown: s,
onClick: l
} = t;
let u;
return typeof a == "function" ? u = a(o) : u = nu(a) ? Bs(a) : a, M("span", {
class: i,
onMousedown: (c) => {
c.preventDefault(), s && s(c);
},
style: {
userSelect: "none",
WebkitUserSelect: "none"
},
unselectable: "on",
onClick: l,
"aria-hidden": !0
}, [u !== void 0 ? u : M("span", {
class: i.split(/\s+/).map((c) => `${c}-icon`)
}, [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)])]);
};
vf.inheritAttrs = !1;
vf.displayName = "TransBtn";
vf.props = {
class: String,
customizeIcon: Y.any,
customizeIconProps: Y.any,
onMousedown: Function,
onClick: Function
};
var Ive = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Dve = te({
compatConfig: {
MODE: 3
},
// inheritAttrs: false,
props: {
disabled: Y.looseBool,
type: Y.string,
value: Y.any,
tag: {
type: String,
default: "input"
},
size: Y.string,
onChange: Function,
onInput: Function,
onBlur: Function,
onFocus: Function,
onKeydown: Function,
onCompositionstart: Function,
onCompositionend: Function,
onKeyup: Function,
onPaste: Function,
onMousedown: Function
},
emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
setup(t, e) {
let {
expose: n
} = e;
const r = ae(null);
return n({
focus: () => {
r.value && r.value.focus();
},
blur: () => {
r.value && r.value.blur();
},
input: r,
setSelectionRange: (l, u, c) => {
var f;
(f = r.value) === null || f === void 0 || f.setSelectionRange(l, u, c);
},
select: () => {
var l;
(l = r.value) === null || l === void 0 || l.select();
},
getSelectionStart: () => {
var l;
return (l = r.value) === null || l === void 0 ? void 0 : l.selectionStart;
},
getSelectionEnd: () => {
var l;
return (l = r.value) === null || l === void 0 ? void 0 : l.selectionEnd;
},
getScrollTop: () => {
var l;
return (l = r.value) === null || l === void 0 ? void 0 : l.scrollTop;
}
}), () => {
const {
tag: l,
value: u
} = t, c = Ive(t, ["tag", "value"]);
return M(l, j(j({}, c), {}, {
ref: r,
value: u
}), null);
};
}
});
function Rve() {
const t = document.documentElement.clientWidth, e = window.innerHeight || document.documentElement.clientHeight;
return {
width: t,
height: e
};
}
function IZ(t) {
const e = t.getBoundingClientRect(), n = document.documentElement;
return {
left: e.left + (window.scrollX || n.scrollLeft) - (n.clientLeft || document.body.clientLeft || 0),
top: e.top + (window.scrollY || n.scrollTop) - (n.clientTop || document.body.clientTop || 0)
};
}
function kve(t) {
return Object.keys(t).reduce((e, n) => {
const r = t[n];
return typeof r > "u" || r === null || (e += `${n}: ${t[n]};`), e;
}, "");
}
var Lve = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const PI = te({
compatConfig: {
MODE: 3
},
inheritAttrs: !1,
props: {
disabled: Y.looseBool,
type: Y.string,
value: Y.any,
lazy: Y.bool.def(!0),
tag: {
type: String,
default: "input"
},
size: Y.string,
style: Y.oneOfType([String, Object]),
class: Y.string
},
emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
setup(t, e) {
let {
emit: n,
attrs: r,
expose: i
} = e;
const a = ae(null), o = U(), s = U(!1);
se([() => t.value, s], () => {
s.value || (o.value = t.value);
}, {
immediate: !0
});
const l = (x) => {
n("change", x);
}, u = (x) => {
s.value = !0, x.target.composing = !0, n("compositionstart", x);
}, c = (x) => {
s.value = !1, x.target.composing = !1, n("compositionend", x);
const C = document.createEvent("HTMLEvents");
C.initEvent("input", !0, !0), x.target.dispatchEvent(C), l(x);
}, f = (x) => {
if (s.value && t.lazy) {
o.value = x.target.value;
return;
}
n("input", x);
}, d = (x) => {
n("blur", x);
}, h = (x) => {
n("focus", x);
}, p = () => {
a.value && a.value.focus();
}, v = () => {
a.value && a.value.blur();
}, g = (x) => {
n("keydown", x);
}, m = (x) => {
n("keyup", x);
}, y = (x, C, T) => {
var w;
(w = a.value) === null || w === void 0 || w.setSelectionRange(x, C, T);
}, b = () => {
var x;
(x = a.value) === null || x === void 0 || x.select();
};
i({
focus: p,
blur: v,
input: L(() => {
var x;
return (x = a.value) === null || x === void 0 ? void 0 : x.input;
}),
setSelectionRange: y,
select: b,
getSelectionStart: () => {
var x;
return (x = a.value) === null || x === void 0 ? void 0 : x.getSelectionStart();
},
getSelectionEnd: () => {
var x;
return (x = a.value) === null || x === void 0 ? void 0 : x.getSelectionEnd();
},
getScrollTop: () => {
var x;
return (x = a.value) === null || x === void 0 ? void 0 : x.getScrollTop();
}
});
const _ = (x) => {
n("mousedown", x);
}, O = (x) => {
n("paste", x);
}, S = L(() => t.style && typeof t.style != "string" ? kve(t.style) : t.style);
return () => {
const x = Lve(t, ["style", "lazy"]);
return M(Dve, j(j(j({}, x), r), {}, {
style: S.value,
onInput: f,
onChange: l,
onBlur: d,
onFocus: h,
ref: a,
value: o.value,
onCompositionstart: u,
onCompositionend: c,
onKeyup: m,
onKeydown: g,
onPaste: O,
onMousedown: _
}), null);
};
}
}), Nve = {
inputRef: Y.any,
prefixCls: String,
id: String,
inputElement: Y.VueNode,
disabled: {
type: Boolean,
default: void 0
},
autofocus: {
type: Boolean,
default: void 0
},
autocomplete: String,
editable: {
type: Boolean,
default: void 0
},
activeDescendantId: String,
value: String,
open: {
type: Boolean,
default: void 0
},
tabindex: Y.oneOfType([Y.number, Y.string]),
/** Pass accessibility props to input */
attrs: Y.object,
onKeydown: {
type: Function
},
onMousedown: {
type: Function
},
onChange: {
type: Function
},
onPaste: {
type: Function
},
onCompositionstart: {
type: Function
},
onCompositionend: {
type: Function
},
onFocus: {
type: Function
},
onBlur: {
type: Function
}
}, DZ = te({
compatConfig: {
MODE: 3
},
name: "SelectInput",
inheritAttrs: !1,
props: Nve,
setup(t) {
let e = null;
const n = Ge("VCSelectContainerEvent");
return () => {
var r;
const {
prefixCls: i,
id: a,
inputElement: o,
disabled: s,
tabindex: l,
autofocus: u,
autocomplete: c,
editable: f,
activeDescendantId: d,
value: h,
onKeydown: p,
onMousedown: v,
onChange: g,
onPaste: m,
onCompositionstart: y,
onCompositionend: b,
onFocus: _,
onBlur: O,
open: S,
inputRef: x,
attrs: C
} = t;
let T = o || M(PI, null, null);
const w = T.props || {}, {
onKeydown: P,
onInput: $,
onFocus: A,
onBlur: D,
onMousedown: E,
onCompositionstart: R,
onCompositionend: N,
style: V
} = w;
return T = Pn(T, I(I(I(I(I({
type: "search"
}, w), {
id: a,
ref: x,
disabled: s,
tabindex: l,
lazy: !1,
autocomplete: c || "off",
autofocus: u,
class: ye(`${i}-selection-search-input`, (r = T == null ? void 0 : T.props) === null || r === void 0 ? void 0 : r.class),
role: "combobox",
"aria-expanded": S,
"aria-haspopup": "listbox",
"aria-owns": `${a}_list`,
"aria-autocomplete": "list",
"aria-controls": `${a}_list`,
"aria-activedescendant": d
}), C), {
value: f ? h : "",
readonly: !f,
unselectable: f ? null : "on",
style: I(I({}, V), {
opacity: f ? null : 0
}),
onKeydown: (B) => {
p(B), P && P(B);
},
onMousedown: (B) => {
v(B), E && E(B);
},
onInput: (B) => {
g(B), $ && $(B);
},
onCompositionstart(B) {
y(B), R && R(B);
},
onCompositionend(B) {
b(B), N && N(B);
},
onPaste: m,
onFocus: function() {
clearTimeout(e), A && A(arguments.length <= 0 ? void 0 : arguments[0]), _ && _(arguments.length <= 0 ? void 0 : arguments[0]), n == null || n.focus(arguments.length <= 0 ? void 0 : arguments[0]);
},
onBlur: function() {
for (var B = arguments.length, W = new Array(B), F = 0; F < B; F++)
W[F] = arguments[F];
e = setTimeout(() => {
D && D(W[0]), O && O(W[0]), n == null || n.blur(W[0]);
}, 100);
}
}), T.type === "textarea" ? {} : {
type: "search"
}), !0, !0), T;
};
}
}), Bve = `accept acceptcharset accesskey action allowfullscreen allowtransparency
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
charset checked classid classname colspan cols content contenteditable contextmenu
controls coords crossorigin data datetime default defer dir disabled download draggable
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
mediagroup method min minlength multiple muted name novalidate nonce open
optimum pattern placeholder poster preload radiogroup readonly rel required
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellcheck src srcdoc srclang srcset start step style
summary tabindex target title type usemap value width wmode wrap`, zve = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`, dN = `${Bve} ${zve}`.split(/[\s\n]+/), Vve = "aria-", Fve = "data-";
function hN(t, e) {
return t.indexOf(e) === 0;
}
function tx(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n;
e === !1 ? n = {
aria: !0,
data: !0,
attr: !0
} : e === !0 ? n = {
aria: !0
} : n = I({}, e);
const r = {};
return Object.keys(t).forEach((i) => {
// Aria
(n.aria && (i === "role" || hN(i, Vve)) || // Data
n.data && hN(i, Fve) || // Attr
n.attr && (dN.includes(i) || dN.includes(i.toLowerCase()))) && (r[i] = t[i]);
}), r;
}
const RZ = Symbol("OverflowContextProviderKey"), $2 = te({
compatConfig: {
MODE: 3
},
name: "OverflowContextProvider",
inheritAttrs: !1,
props: {
value: {
type: Object
}
},
setup(t, e) {
let {
slots: n
} = e;
return pt(RZ, L(() => t.value)), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
}), Wve = () => Ge(RZ, L(() => null));
var Qve = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Uf = void 0, C_ = te({
compatConfig: {
MODE: 3
},
name: "Item",
props: {
prefixCls: String,
item: Y.any,
renderItem: Function,
responsive: Boolean,
itemKey: {
type: [String, Number]
},
registerSize: Function,
display: Boolean,
order: Number,
component: Y.any,
invalidate: Boolean
},
setup(t, e) {
let {
slots: n,
expose: r
} = e;
const i = L(() => t.responsive && !t.display), a = U();
r({
itemNodeRef: a
});
function o(s) {
t.registerSize(t.itemKey, s);
}
return rl(() => {
o(null);
}), () => {
var s;
const {
prefixCls: l,
invalidate: u,
item: c,
renderItem: f,
responsive: d,
registerSize: h,
itemKey: p,
display: v,
order: g,
component: m = "div"
} = t, y = Qve(t, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]), b = (s = n.default) === null || s === void 0 ? void 0 : s.call(n), _ = f && c !== Uf ? f(c) : b;
let O;
u || (O = {
opacity: i.value ? 0 : 1,
height: i.value ? 0 : Uf,
overflowY: i.value ? "hidden" : Uf,
order: d ? g : Uf,
pointerEvents: i.value ? "none" : Uf,
position: i.value ? "absolute" : Uf
});
const S = {};
return i.value && (S["aria-hidden"] = !0), M(bh, {
disabled: !d,
onResize: (x) => {
let {
offsetWidth: C
} = x;
o(C);
}
}, {
default: () => M(m, j(j(j({
class: ye(!u && l),
style: O
}, S), y), {}, {
ref: a
}), {
default: () => [_]
})
});
};
}
});
var gC = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Hve = te({
compatConfig: {
MODE: 3
},
name: "RawItem",
inheritAttrs: !1,
props: {
component: Y.any,
title: Y.any,
id: String,
onMouseenter: {
type: Function
},
onMouseleave: {
type: Function
},
onClick: {
type: Function
},
onKeydown: {
type: Function
},
onFocus: {
type: Function
},
role: String,
tabindex: Number
},
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const i = Wve();
return () => {
var a;
if (!i.value) {
const {
component: f = "div"
} = t, d = gC(t, ["component"]);
return M(f, j(j({}, d), r), {
default: () => [(a = n.default) === null || a === void 0 ? void 0 : a.call(n)]
});
}
const o = i.value, {
className: s
} = o, l = gC(o, ["className"]), {
class: u
} = r, c = gC(r, ["class"]);
return M($2, {
value: null
}, {
default: () => [M(C_, j(j(j({
class: ye(s, u)
}, l), c), t), n)]
});
};
}
});
var Gve = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const kZ = "responsive", LZ = "invalidate";
function jve(t) {
return `+ ${t.length} ...`;
}
const Zve = () => ({
id: String,
prefixCls: String,
data: Array,
itemKey: [String, Number, Function],
/** Used for `responsive`. It will limit render node to avoid perf issue */
itemWidth: {
type: Number,
default: 10
},
renderItem: Function,
/** @private Do not use in your production. Render raw node that need wrap Item by developer self */
renderRawItem: Function,
maxCount: [Number, String],
renderRest: Function,
/** @private Do not use in your production. Render raw node that need wrap Item by developer self */
renderRawRest: Function,
suffix: Y.any,
component: String,
itemComponent: Y.any,
/** @private This API may be refactor since not well design */
onVisibleChange: Function,
/** When set to `full`, ssr will render full items by default and remove at client side */
ssr: String,
onMousedown: Function
}), Is = te({
name: "Overflow",
inheritAttrs: !1,
props: Zve(),
emits: ["visibleChange"],
setup(t, e) {
let {
attrs: n,
emit: r,
slots: i
} = e;
const a = L(() => t.ssr === "full"), o = ae(null), s = L(() => o.value || 0), l = ae(/* @__PURE__ */ new Map()), u = ae(0), c = ae(0), f = ae(0), d = ae(null), h = ae(null), p = L(() => h.value === null && a.value ? Number.MAX_SAFE_INTEGER : h.value || 0), v = ae(!1), g = L(() => `${t.prefixCls}-item`), m = L(() => Math.max(u.value, c.value)), y = L(() => !!(t.data.length && t.maxCount === kZ)), b = L(() => t.maxCount === LZ), _ = L(() => y.value || typeof t.maxCount == "number" && t.data.length > t.maxCount), O = L(() => {
let E = t.data;
return y.value ? o.value === null && a.value ? E = t.data : E = t.data.slice(0, Math.min(t.data.length, s.value / t.itemWidth)) : typeof t.maxCount == "number" && (E = t.data.slice(0, t.maxCount)), E;
}), S = L(() => y.value ? t.data.slice(p.value + 1) : t.data.slice(O.value.length)), x = (E, R) => {
var N;
return typeof t.itemKey == "function" ? t.itemKey(E) : (N = t.itemKey && (E == null ? void 0 : E[t.itemKey])) !== null && N !== void 0 ? N : R;
}, C = L(() => t.renderItem || ((E) => E)), T = (E, R) => {
h.value = E, R || (v.value = E < t.data.length - 1, r("visibleChange", E));
}, w = (E, R) => {
o.value = R.clientWidth;
}, P = (E, R) => {
const N = new Map(l.value);
R === null ? N.delete(E) : N.set(E, R), l.value = N;
}, $ = (E, R) => {
u.value = c.value, c.value = R;
}, A = (E, R) => {
f.value = R;
}, D = (E) => l.value.get(x(O.value[E], E));
return se([s, l, c, f, () => t.itemKey, O], () => {
if (s.value && m.value && O.value) {
let E = f.value;
const R = O.value.length, N = R - 1;
if (!R) {
T(0), d.value = null;
return;
}
for (let V = 0; V < R; V += 1) {
const B = D(V);
if (B === void 0) {
T(V - 1, !0);
break;
}
if (E += B, // Only one means `totalWidth` is the final width
N === 0 && E <= s.value || // Last two width will be the final width
V === N - 1 && E + D(N) <= s.value) {
T(N), d.value = null;
break;
} else if (E + m.value > s.value) {
T(V - 1), d.value = E - B - f.value + c.value;
break;
}
}
t.suffix && D(0) + f.value > s.value && (d.value = null);
}
}), () => {
const E = v.value && !!S.value.length, {
itemComponent: R,
renderRawItem: N,
renderRawRest: V,
renderRest: B,
prefixCls: W = "rc-overflow",
suffix: F,
component: Q = "div",
id: Z,
onMousedown: ne
} = t, {
class: ee,
style: oe
} = n, K = Gve(n, ["class", "style"]);
let ie = {};
d.value !== null && y.value && (ie = {
position: "absolute",
left: `${d.value}px`,
top: 0
});
const X = {
prefixCls: g.value,
responsive: y.value,
component: R,
invalidate: b.value
}, H = N ? (de, Ee) => {
const $e = x(de, Ee);
return M($2, {
key: $e,
value: I(I({}, X), {
order: Ee,
item: de,
itemKey: $e,
registerSize: P,
display: Ee <= p.value
})
}, {
default: () => [N(de, Ee)]
});
} : (de, Ee) => {
const $e = x(de, Ee);
return M(C_, j(j({}, X), {}, {
order: Ee,
key: $e,
item: de,
renderItem: C.value,
itemKey: $e,
registerSize: P,
display: Ee <= p.value
}), null);
};
let G = () => null;
const re = {
order: E ? p.value : Number.MAX_SAFE_INTEGER,
className: `${g.value} ${g.value}-rest`,
registerSize: $,
display: E
};
if (V)
V && (G = () => M($2, {
value: I(I({}, X), re)
}, {
default: () => [V(S.value)]
}));
else {
const de = B || jve;
G = () => M(C_, j(j({}, X), re), {
default: () => typeof de == "function" ? de(S.value) : de
});
}
const fe = () => {
var de;
return M(Q, j({
id: Z,
class: ye(!b.value && W, ee),
style: oe,
onMousedown: ne
}, K), {
default: () => [O.value.map(H), _.value ? G() : null, F && M(C_, j(j({}, X), {}, {
order: p.value,
class: `${g.value}-suffix`,
registerSize: A,
display: !0,
style: ie
}), {
default: () => F
}), (de = i.default) === null || de === void 0 ? void 0 : de.call(i)]
});
};
return M(bh, {
disabled: !y.value,
onResize: w
}, {
default: fe
});
};
}
});
Is.Item = Hve;
Is.RESPONSIVE = kZ;
Is.INVALIDATE = LZ;
const Uve = Symbol("TreeSelectLegacyContextPropsKey");
function $I() {
return Ge(Uve, {});
}
const Xve = {
id: String,
prefixCls: String,
values: Y.array,
open: {
type: Boolean,
default: void 0
},
searchValue: String,
inputRef: Y.any,
placeholder: Y.any,
disabled: {
type: Boolean,
default: void 0
},
mode: String,
showSearch: {
type: Boolean,
default: void 0
},
autofocus: {
type: Boolean,
default: void 0
},
autocomplete: String,
activeDescendantId: String,
tabindex: Y.oneOfType([Y.number, Y.string]),
compositionStatus: Boolean,
removeIcon: Y.any,
choiceTransitionName: String,
maxTagCount: Y.oneOfType([Y.number, Y.string]),
maxTagTextLength: Number,
maxTagPlaceholder: Y.any.def(() => (t) => `+ ${t.length} ...`),
tagRender: Function,
onToggleOpen: {
type: Function
},
onRemove: Function,
onInputChange: Function,
onInputPaste: Function,
onInputKeyDown: Function,
onInputMouseDown: Function,
onInputCompositionStart: Function,
onInputCompositionEnd: Function
}, pN = (t) => {
t.preventDefault(), t.stopPropagation();
}, Yve = te({
name: "MultipleSelectSelector",
inheritAttrs: !1,
props: Xve,
setup(t) {
const e = ae(), n = ae(0), r = ae(!1), i = $I(), a = L(() => `${t.prefixCls}-selection`), o = L(() => t.open || t.mode === "tags" ? t.searchValue : ""), s = L(() => t.mode === "tags" || t.showSearch && (t.open || r.value)), l = U("");
ht(() => {
l.value = o.value;
}), it(() => {
se(l, () => {
n.value = e.value.scrollWidth;
}, {
flush: "post",
immediate: !0
});
});
function u(p, v, g, m, y) {
return M("span", {
class: ye(`${a.value}-item`, {
[`${a.value}-item-disabled`]: g
}),
title: typeof p == "string" || typeof p == "number" ? p.toString() : void 0
}, [M("span", {
class: `${a.value}-item-content`
}, [v]), m && M(vf, {
class: `${a.value}-item-remove`,
onMousedown: pN,
onClick: y,
customizeIcon: t.removeIcon
}, {
default: () => [Kt("×")]
})]);
}
function c(p, v, g, m, y, b) {
var _;
const O = (x) => {
pN(x), t.onToggleOpen(!open);
};
let S = b;
return i.keyEntities && (S = ((_ = i.keyEntities[p]) === null || _ === void 0 ? void 0 : _.node) || {}), M("span", {
key: p,
onMousedown: O
}, [t.tagRender({
label: v,
value: p,
disabled: g,
closable: m,
onClose: y,
option: S
})]);
}
function f(p) {
const {
disabled: v,
label: g,
value: m,
option: y
} = p, b = !t.disabled && !v;
let _ = g;
if (typeof t.maxTagTextLength == "number" && (typeof g == "string" || typeof g == "number")) {
const S = String(_);
S.length > t.maxTagTextLength && (_ = `${S.slice(0, t.maxTagTextLength)}...`);
}
const O = (S) => {
var x;
S && S.stopPropagation(), (x = t.onRemove) === null || x === void 0 || x.call(t, p);
};
return typeof t.tagRender == "function" ? c(m, _, v, b, O, y) : u(g, _, v, b, O);
}
function d(p) {
const {
maxTagPlaceholder: v = (m) => `+ ${m.length} ...`
} = t, g = typeof v == "function" ? v(p) : v;
return u(g, g, !1);
}
const h = (p) => {
const v = p.target.composing;
l.value = p.target.value, v || t.onInputChange(p);
};
return () => {
const {
id: p,
prefixCls: v,
values: g,
open: m,
inputRef: y,
placeholder: b,
disabled: _,
autofocus: O,
autocomplete: S,
activeDescendantId: x,
tabindex: C,
compositionStatus: T,
onInputPaste: w,
onInputKeyDown: P,
onInputMouseDown: $,
onInputCompositionStart: A,
onInputCompositionEnd: D
} = t, E = M("div", {
class: `${a.value}-search`,
style: {
width: n.value + "px"
},
key: "input"
}, [M(DZ, {
inputRef: y,
open: m,
prefixCls: v,
id: p,
inputElement: null,
disabled: _,
autofocus: O,
autocomplete: S,
editable: s.value,
activeDescendantId: x,
value: l.value,
onKeydown: P,
onMousedown: $,
onChange: h,
onPaste: w,
onCompositionstart: A,
onCompositionend: D,
tabindex: C,
attrs: tx(t, !0),
onFocus: () => r.value = !0,
onBlur: () => r.value = !1
}, null), M("span", {
ref: e,
class: `${a.value}-search-mirror`,
"aria-hidden": !0
}, [l.value, Kt(" ")])]), R = M(Is, {
prefixCls: `${a.value}-overflow`,
data: g,
renderItem: f,
renderRest: d,
suffix: E,
itemKey: "key",
maxCount: t.maxTagCount,
key: "overflow"
}, null);
return M(wt, null, [R, !g.length && !o.value && !T && M("span", {
class: `${a.value}-placeholder`
}, [b])]);
};
}
}), qve = {
inputElement: Y.any,
id: String,
prefixCls: String,
values: Y.array,
open: {
type: Boolean,
default: void 0
},
searchValue: String,
inputRef: Y.any,
placeholder: Y.any,
compositionStatus: {
type: Boolean,
default: void 0
},
disabled: {
type: Boolean,
default: void 0
},
mode: String,
showSearch: {
type: Boolean,
default: void 0
},
autofocus: {
type: Boolean,
default: void 0
},
autocomplete: String,
activeDescendantId: String,
tabindex: Y.oneOfType([Y.number, Y.string]),
activeValue: String,
backfill: {
type: Boolean,
default: void 0
},
optionLabelRender: Function,
onInputChange: Function,
onInputPaste: Function,
onInputKeyDown: Function,
onInputMouseDown: Function,
onInputCompositionStart: Function,
onInputCompositionEnd: Function
}, AI = te({
name: "SingleSelector",
setup(t) {
const e = ae(!1), n = L(() => t.mode === "combobox"), r = L(() => n.value || t.showSearch), i = L(() => {
let c = t.searchValue || "";
return n.value && t.activeValue && !e.value && (c = t.activeValue), c;
}), a = $I();
se([n, () => t.activeValue], () => {
n.value && (e.value = !1);
}, {
immediate: !0
});
const o = L(() => t.mode !== "combobox" && !t.open && !t.showSearch ? !1 : !!i.value || t.compositionStatus), s = L(() => {
const c = t.values[0];
return c && (typeof c.label == "string" || typeof c.label == "number") ? c.label.toString() : void 0;
}), l = () => {
if (t.values[0])
return null;
const c = o.value ? {
visibility: "hidden"
} : void 0;
return M("span", {
class: `${t.prefixCls}-selection-placeholder`,
style: c
}, [t.placeholder]);
}, u = (c) => {
c.target.composing || (e.value = !0, t.onInputChange(c));
};
return () => {
var c, f, d, h;
const {
inputElement: p,
prefixCls: v,
id: g,
values: m,
inputRef: y,
disabled: b,
autofocus: _,
autocomplete: O,
activeDescendantId: S,
open: x,
tabindex: C,
optionLabelRender: T,
onInputKeyDown: w,
onInputMouseDown: P,
onInputPaste: $,
onInputCompositionStart: A,
onInputCompositionEnd: D
} = t, E = m[0];
let R = null;
if (E && a.customSlots) {
const N = (c = E.key) !== null && c !== void 0 ? c : E.value, V = ((f = a.keyEntities[N]) === null || f === void 0 ? void 0 : f.node) || {};
R = a.customSlots[(d = V.slots) === null || d === void 0 ? void 0 : d.title] || a.customSlots.title || E.label, typeof R == "function" && (R = R(V));
} else
R = T && E ? T(E.option) : E == null ? void 0 : E.label;
return M(wt, null, [M("span", {
class: `${v}-selection-search`
}, [M(DZ, {
inputRef: y,
prefixCls: v,
id: g,
open: x,
inputElement: p,
disabled: b,
autofocus: _,
autocomplete: O,
editable: r.value,
activeDescendantId: S,
value: i.value,
onKeydown: w,
onMousedown: P,
onChange: u,
onPaste: $,
onCompositionstart: A,
onCompositionend: D,
tabindex: C,
attrs: tx(t, !0)
}, null)]), !n.value && E && !o.value && M("span", {
class: `${v}-selection-item`,
title: s.value
}, [M(wt, {
key: (h = E.key) !== null && h !== void 0 ? h : E.value
}, [R])]), l()]);
};
}
});
AI.props = qve;
AI.inheritAttrs = !1;
function Kve(t) {
return ![
// System function button
ge.ESC,
ge.SHIFT,
ge.BACKSPACE,
ge.TAB,
ge.WIN_KEY,
ge.ALT,
ge.META,
ge.WIN_KEY_RIGHT,
ge.CTRL,
ge.SEMICOLON,
ge.EQUALS,
ge.CAPS_LOCK,
ge.CONTEXT_MENU,
// F1-F12
ge.F1,
ge.F2,
ge.F3,
ge.F4,
ge.F5,
ge.F6,
ge.F7,
ge.F8,
ge.F9,
ge.F10,
ge.F11,
ge.F12
].includes(t);
}
function NZ() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, e = null, n;
yt(() => {
clearTimeout(n);
});
function r(i) {
(i || e === null) && (e = i), clearTimeout(n), n = setTimeout(() => {
e = null;
}, t);
}
return [() => e, r];
}
function sm() {
const t = (e) => {
t.current = e;
};
return t;
}
const Jve = te({
name: "Selector",
inheritAttrs: !1,
props: {
id: String,
prefixCls: String,
showSearch: {
type: Boolean,
default: void 0
},
open: {
type: Boolean,
default: void 0
},
/** Display in the Selector value, it's not same as `value` prop */
values: Y.array,
multiple: {
type: Boolean,
default: void 0
},
mode: String,
searchValue: String,
activeValue: String,
inputElement: Y.any,
autofocus: {
type: Boolean,
default: void 0
},
activeDescendantId: String,
tabindex: Y.oneOfType([Y.number, Y.string]),
disabled: {
type: Boolean,
default: void 0
},
placeholder: Y.any,
removeIcon: Y.any,
// Tags
maxTagCount: Y.oneOfType([Y.number, Y.string]),
maxTagTextLength: Number,
maxTagPlaceholder: Y.any,
tagRender: Function,
optionLabelRender: Function,
/** Check if `tokenSeparators` contains `\n` or `\r\n` */
tokenWithEnter: {
type: Boolean,
default: void 0
},
// Motion
choiceTransitionName: String,
onToggleOpen: {
type: Function
},
/** `onSearch` returns go next step boolean to check if need do toggle open */
onSearch: Function,
onSearchSubmit: Function,
onRemove: Function,
onInputKeyDown: {
type: Function
},
/**
* @private get real dom for trigger align.
* This may be removed after React provides replacement of `findDOMNode`
*/
domRef: Function
},
setup(t, e) {
let {
expose: n
} = e;
const r = sm(), i = U(!1), [a, o] = NZ(0), s = (m) => {
const {
which: y
} = m;
(y === ge.UP || y === ge.DOWN) && m.preventDefault(), t.onInputKeyDown && t.onInputKeyDown(m), y === ge.ENTER && t.mode === "tags" && !i.value && !t.open && t.onSearchSubmit(m.target.value), Kve(y) && t.onToggleOpen(!0);
}, l = () => {
o(!0);
};
let u = null;
const c = (m) => {
t.onSearch(m, !0, i.value) !== !1 && t.onToggleOpen(!0);
}, f = () => {
i.value = !0;
}, d = (m) => {
i.value = !1, t.mode !== "combobox" && c(m.target.value);
}, h = (m) => {
let {
target: {
value: y
}
} = m;
if (t.tokenWithEnter && u && /[\r\n]/.test(u)) {
const b = u.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
y = y.replace(b, u);
}
u = null, c(y);
}, p = (m) => {
const {
clipboardData: y
} = m;
u = y.getData("text");
}, v = (m) => {
let {
target: y
} = m;
y !== r.current && (document.body.style.msTouchAction !== void 0 ? setTimeout(() => {
r.current.focus();
}) : r.current.focus());
}, g = (m) => {
const y = a();
m.target !== r.current && !y && m.preventDefault(), (t.mode !== "combobox" && (!t.showSearch || !y) || !t.open) && (t.open && t.onSearch("", !0, !1), t.onToggleOpen());
};
return n({
focus: () => {
r.current.focus();
},
blur: () => {
r.current.blur();
}
}), () => {
const {
prefixCls: m,
domRef: y,
mode: b
} = t, _ = {
inputRef: r,
onInputKeyDown: s,
onInputMouseDown: l,
onInputChange: h,
onInputPaste: p,
compositionStatus: i.value,
onInputCompositionStart: f,
onInputCompositionEnd: d
}, O = b === "multiple" || b === "tags" ? M(Yve, j(j({}, t), _), null) : M(AI, j(j({}, t), _), null);
return M("div", {
ref: y,
class: `${m}-selector`,
onClick: v,
onMousedown: g
}, [O]);
};
}
});
function ege(t, e, n) {
function r(i) {
var a, o, s;
let l = i.target;
l.shadowRoot && i.composed && (l = i.composedPath()[0] || l);
const u = [(a = t[0]) === null || a === void 0 ? void 0 : a.value, (s = (o = t[1]) === null || o === void 0 ? void 0 : o.value) === null || s === void 0 ? void 0 : s.getPopupElement()];
e.value && u.every((c) => c && !c.contains(l) && c !== l) && n(!1);
}
it(() => {
window.addEventListener("mousedown", r);
}), yt(() => {
window.removeEventListener("mousedown", r);
});
}
function tge() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
const e = ae(!1);
let n;
const r = () => {
clearTimeout(n);
};
return it(() => {
r();
}), [e, (a, o) => {
r(), n = setTimeout(() => {
e.value = a, o && o();
}, t);
}, r];
}
const BZ = Symbol("BaseSelectContextKey");
function nge(t) {
return pt(BZ, t);
}
function rge() {
return Ge(BZ, {});
}
const EI = () => {
if (typeof navigator > "u" || typeof window > "u")
return !1;
const t = navigator.userAgent || navigator.vendor || window.opera;
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t == null ? void 0 : t.substring(0, 4));
};
function zZ(t) {
if (!op(t)) return tn(t);
const e = new Proxy({}, {
get(n, r, i) {
return Reflect.get(t.value, r, i);
},
set(n, r, i) {
return t.value[r] = i, !0;
},
deleteProperty(n, r) {
return Reflect.deleteProperty(t.value, r);
},
has(n, r) {
return Reflect.has(t.value, r);
},
ownKeys() {
return Object.keys(t.value);
},
getOwnPropertyDescriptor() {
return {
enumerable: !0,
configurable: !0
};
}
});
return tn(e);
}
var ige = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const age = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabindex", "OptionList", "notFoundContent"], oge = () => ({
prefixCls: String,
id: String,
omitDomProps: Array,
// >>> Value
displayValues: Array,
onDisplayValuesChange: Function,
// >>> Active
/** Current dropdown list active item string value */
activeValue: String,
/** Link search input with target element */
activeDescendantId: String,
onActiveValueChange: Function,
// >>> Search
searchValue: String,
/** Trigger onSearch, return false to prevent trigger open event */
onSearch: Function,
/** Trigger when search text match the `tokenSeparators`. Will provide split content */
onSearchSplit: Function,
maxLength: Number,
OptionList: Y.any,
/** Tell if provided `options` is empty */
emptyOptions: Boolean
}), VZ = () => ({
showSearch: {
type: Boolean,
default: void 0
},
tagRender: {
type: Function
},
optionLabelRender: {
type: Function
},
direction: {
type: String
},
// MISC
tabindex: Number,
autofocus: Boolean,
notFoundContent: Y.any,
placeholder: Y.any,
onClear: Function,
choiceTransitionName: String,
// >>> Mode
mode: String,
// >>> Status
disabled: {
type: Boolean,
default: void 0
},
loading: {
type: Boolean,
default: void 0
},
// >>> Open
open: {
type: Boolean,
default: void 0
},
defaultOpen: {
type: Boolean,
default: void 0
},
onDropdownVisibleChange: {
type: Function
},
// >>> Customize Input
/** @private Internal usage. Do not use in your production. */
getInputElement: {
type: Function
},
/** @private Internal usage. Do not use in your production. */
getRawInputElement: {
type: Function
},
// >>> Selector
maxTagTextLength: Number,
maxTagCount: {
type: [String, Number]
},
maxTagPlaceholder: Y.any,
// >>> Search
tokenSeparators: {
type: Array
},
// >>> Icons
allowClear: {
type: Boolean,
default: void 0
},
showArrow: {
type: Boolean,
default: void 0
},
inputIcon: Y.any,
/** Clear all icon */
clearIcon: Y.any,
/** Selector remove icon */
removeIcon: Y.any,
// >>> Dropdown
animation: String,
transitionName: String,
dropdownStyle: {
type: Object
},
dropdownClassName: String,
dropdownMatchSelectWidth: {
type: [Boolean, Number],
default: void 0
},
dropdownRender: {
type: Function
},
dropdownAlign: Object,
placement: {
type: String
},
getPopupContainer: {
type: Function
},
// >>> Focus
showAction: {
type: Array
},
onBlur: {
type: Function
},
onFocus: {
type: Function
},
// >>> Rest Events
onKeyup: Function,
onKeydown: Function,
onMousedown: Function,
onPopupScroll: Function,
onInputKeyDown: Function,
onMouseenter: Function,
onMouseleave: Function,
onClick: Function
}), sge = () => I(I({}, oge()), VZ());
function MI(t) {
return t === "tags" || t === "multiple";
}
const lge = te({
compatConfig: {
MODE: 3
},
name: "BaseSelect",
inheritAttrs: !1,
props: sr(sge(), {
showAction: [],
notFoundContent: "Not Found"
}),
setup(t, e) {
let {
attrs: n,
expose: r,
slots: i
} = e;
const a = L(() => MI(t.mode)), o = L(() => t.showSearch !== void 0 ? t.showSearch : a.value || t.mode === "combobox"), s = ae(!1);
it(() => {
s.value = EI();
});
const l = $I(), u = ae(null), c = sm(), f = ae(null), d = ae(null), h = ae(null), p = U(!1), [v, g, m] = tge();
r({
focus: () => {
var H;
(H = d.value) === null || H === void 0 || H.focus();
},
blur: () => {
var H;
(H = d.value) === null || H === void 0 || H.blur();
},
scrollTo: (H) => {
var G;
return (G = h.value) === null || G === void 0 ? void 0 : G.scrollTo(H);
}
});
const _ = L(() => {
var H;
if (t.mode !== "combobox")
return t.searchValue;
const G = (H = t.displayValues[0]) === null || H === void 0 ? void 0 : H.value;
return typeof G == "string" || typeof G == "number" ? String(G) : "";
}), O = t.open !== void 0 ? t.open : t.defaultOpen, S = ae(O), x = ae(O), C = (H) => {
S.value = t.open !== void 0 ? t.open : H, x.value = S.value;
};
se(() => t.open, () => {
C(t.open);
});
const T = L(() => !t.notFoundContent && t.emptyOptions);
ht(() => {
x.value = S.value, (t.disabled || T.value && x.value && t.mode === "combobox") && (x.value = !1);
});
const w = L(() => T.value ? !1 : x.value), P = (H) => {
const G = H !== void 0 ? H : !x.value;
x.value !== G && !t.disabled && (C(G), t.onDropdownVisibleChange && t.onDropdownVisibleChange(G));
}, $ = L(() => (t.tokenSeparators || []).some((H) => [`
`, `\r
`].includes(H))), A = (H, G, re) => {
var fe, de;
let Ee = !0, $e = H;
(fe = t.onActiveValueChange) === null || fe === void 0 || fe.call(t, null);
const Se = re ? null : rde(H, t.tokenSeparators);
return t.mode !== "combobox" && Se && ($e = "", (de = t.onSearchSplit) === null || de === void 0 || de.call(t, Se), P(!1), Ee = !1), t.onSearch && _.value !== $e && t.onSearch($e, {
source: G ? "typing" : "effect"
}), Ee;
}, D = (H) => {
var G;
!H || !H.trim() || (G = t.onSearch) === null || G === void 0 || G.call(t, H, {
source: "submit"
});
};
se(x, () => {
!x.value && !a.value && t.mode !== "combobox" && A("", !1, !1);
}, {
immediate: !0,
flush: "post"
}), se(() => t.disabled, () => {
S.value && t.disabled && C(!1), t.disabled && !p.value && g(!1);
}, {
immediate: !0
});
const [E, R] = NZ(), N = function(H) {
var G;
const re = E(), {
which: fe
} = H;
if (fe === ge.ENTER && (t.mode !== "combobox" && H.preventDefault(), x.value || P(!0)), R(!!_.value), fe === ge.BACKSPACE && !re && a.value && !_.value && t.displayValues.length) {
const Se = [...t.displayValues];
let be = null;
for (let he = Se.length - 1; he >= 0; he -= 1) {
const Te = Se[he];
if (!Te.disabled) {
Se.splice(he, 1), be = Te;
break;
}
}
be && t.onDisplayValuesChange(Se, {
type: "remove",
values: [be]
});
}
for (var de = arguments.length, Ee = new Array(de > 1 ? de - 1 : 0), $e = 1; $e < de; $e++)
Ee[$e - 1] = arguments[$e];
x.value && h.value && h.value.onKeydown(H, ...Ee), (G = t.onKeydown) === null || G === void 0 || G.call(t, H, ...Ee);
}, V = function(H) {
for (var G = arguments.length, re = new Array(G > 1 ? G - 1 : 0), fe = 1; fe < G; fe++)
re[fe - 1] = arguments[fe];
x.value && h.value && h.value.onKeyup(H, ...re), t.onKeyup && t.onKeyup(H, ...re);
}, B = (H) => {
const G = t.displayValues.filter((re) => re !== H);
t.onDisplayValuesChange(G, {
type: "remove",
values: [H]
});
}, W = ae(!1), F = function() {
g(!0), t.disabled || (t.onFocus && !W.value && t.onFocus(...arguments), t.showAction && t.showAction.includes("focus") && P(!0)), W.value = !0;
}, Q = U(!1), Z = function() {
if (Q.value || (p.value = !0, g(!1, () => {
W.value = !1, p.value = !1, P(!1);
}), t.disabled))
return;
const H = _.value;
H && (t.mode === "tags" ? t.onSearch(H, {
source: "submit"
}) : t.mode === "multiple" && t.onSearch("", {
source: "blur"
})), t.onBlur && t.onBlur(...arguments);
}, ne = () => {
Q.value = !0;
}, ee = () => {
Q.value = !1;
};
pt("VCSelectContainerEvent", {
focus: F,
blur: Z
});
const oe = [];
it(() => {
oe.forEach((H) => clearTimeout(H)), oe.splice(0, oe.length);
}), yt(() => {
oe.forEach((H) => clearTimeout(H)), oe.splice(0, oe.length);
});
const K = function(H) {
var G, re;
const {
target: fe
} = H, de = (G = f.value) === null || G === void 0 ? void 0 : G.getPopupElement();
if (de && de.contains(fe)) {
const be = setTimeout(() => {
var he;
const Te = oe.indexOf(be);
Te !== -1 && oe.splice(Te, 1), m(), !s.value && !de.contains(document.activeElement) && ((he = d.value) === null || he === void 0 || he.focus());
});
oe.push(be);
}
for (var Ee = arguments.length, $e = new Array(Ee > 1 ? Ee - 1 : 0), Se = 1; Se < Ee; Se++)
$e[Se - 1] = arguments[Se];
(re = t.onMousedown) === null || re === void 0 || re.call(t, H, ...$e);
}, ie = ae(null), X = () => {
};
return it(() => {
se(w, () => {
var H;
if (w.value) {
const G = Math.ceil((H = u.value) === null || H === void 0 ? void 0 : H.offsetWidth);
ie.value !== G && !Number.isNaN(G) && (ie.value = G);
}
}, {
immediate: !0,
flush: "post"
});
}), ege([u, f], w, P), nge(zZ(I(I({}, ES(t)), {
open: x,
triggerOpen: w,
showSearch: o,
multiple: a,
toggleOpen: P
}))), () => {
const H = I(I({}, t), n), {
prefixCls: G,
id: re,
open: fe,
defaultOpen: de,
mode: Ee,
// Search related
showSearch: $e,
searchValue: Se,
onSearch: be,
// Icons
allowClear: he,
clearIcon: Te,
showArrow: ze,
inputIcon: ut,
// Others
disabled: ct,
loading: Dt,
getInputElement: ve,
getPopupContainer: Xe,
placement: Rt,
// Dropdown
animation: An,
transitionName: sn,
dropdownStyle: Ar,
dropdownClassName: Wa,
dropdownMatchSelectWidth: Qp,
dropdownRender: Hp,
dropdownAlign: vy,
showAction: Gw,
direction: jf,
// Tags
tokenSeparators: jw,
tagRender: Gp,
optionLabelRender: Zw,
// Events
onPopupScroll: Zf,
onDropdownVisibleChange: W4,
onFocus: xpt,
onBlur: wpt,
onKeyup: Cpt,
onKeydown: Tpt,
onMousedown: Ppt,
onClear: Uw,
omitDomProps: Xw,
getRawInputElement: Q4,
displayValues: gy,
onDisplayValuesChange: Ele,
emptyOptions: Mle,
activeDescendantId: Ile,
activeValue: Dle,
OptionList: Rle
} = H, kle = ige(H, ["prefixCls", "id", "open", "defaultOpen", "mode", "showSearch", "searchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "disabled", "loading", "getInputElement", "getPopupContainer", "placement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "optionLabelRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyup", "onKeydown", "onMousedown", "onClear", "omitDomProps", "getRawInputElement", "displayValues", "onDisplayValuesChange", "emptyOptions", "activeDescendantId", "activeValue", "OptionList"]), H4 = Ee === "combobox" && ve && ve() || null, jp = typeof Q4 == "function" && Q4(), Yw = I({}, kle);
let G4;
jp && (G4 = (Iu) => {
P(Iu);
}), age.forEach((Iu) => {
delete Yw[Iu];
}), Xw == null || Xw.forEach((Iu) => {
delete Yw[Iu];
});
const j4 = ze !== void 0 ? ze : Dt || !a.value && Ee !== "combobox";
let Z4;
j4 && (Z4 = M(vf, {
class: ye(`${G}-arrow`, {
[`${G}-arrow-loading`]: Dt
}),
customizeIcon: ut,
customizeIconProps: {
loading: Dt,
searchValue: _.value,
open: x.value,
focused: v.value,
showSearch: o.value
}
}, null));
let U4;
const Lle = () => {
Uw == null || Uw(), Ele([], {
type: "clear",
values: gy
}), A("", !1, !1);
};
!ct && he && (gy.length || _.value) && (U4 = M(vf, {
class: `${G}-clear`,
onMousedown: Lle,
customizeIcon: Te
}, {
default: () => [Kt("×")]
}));
const Nle = M(Rle, {
ref: h
}, I(I({}, l.customSlots), {
option: i.option
})), Ble = ye(G, n.class, {
[`${G}-focused`]: v.value,
[`${G}-multiple`]: a.value,
[`${G}-single`]: !a.value,
[`${G}-allow-clear`]: he,
[`${G}-show-arrow`]: j4,
[`${G}-disabled`]: ct,
[`${G}-loading`]: Dt,
[`${G}-open`]: x.value,
[`${G}-customize-input`]: H4,
[`${G}-show-search`]: o.value
}), X4 = M(Mve, {
ref: f,
disabled: ct,
prefixCls: G,
visible: w.value,
popupElement: Nle,
containerWidth: ie.value,
animation: An,
transitionName: sn,
dropdownStyle: Ar,
dropdownClassName: Wa,
direction: jf,
dropdownMatchSelectWidth: Qp,
dropdownRender: Hp,
dropdownAlign: vy,
placement: Rt,
getPopupContainer: Xe,
empty: Mle,
getTriggerDOMNode: () => c.current,
onPopupVisibleChange: G4,
onPopupMouseEnter: X,
onPopupFocusin: ne,
onPopupFocusout: ee
}, {
default: () => jp ? Yi(jp) && Pn(jp, {
ref: c
}, !1, !0) : M(Jve, j(j({}, t), {}, {
domRef: c,
prefixCls: G,
inputElement: H4,
ref: d,
id: re,
showSearch: o.value,
mode: Ee,
activeDescendantId: Ile,
tagRender: Gp,
optionLabelRender: Zw,
values: gy,
open: x.value,
onToggleOpen: P,
activeValue: Dle,
searchValue: _.value,
onSearch: A,
onSearchSubmit: D,
onRemove: B,
tokenWithEnter: $.value
}), null)
});
let qw;
return jp ? qw = X4 : qw = M("div", j(j({}, Yw), {}, {
class: Ble,
ref: u,
onMousedown: K,
onKeydown: N,
onKeyup: V
}), [v.value && !x.value && M("span", {
style: {
width: 0,
height: 0,
position: "absolute",
overflow: "hidden",
opacity: 0
},
"aria-live": "polite"
}, [`${gy.map((Iu) => {
let {
label: Y4,
value: zle
} = Iu;
return ["number", "string"].includes(typeof Y4) ? Y4 : zle;
}).join(", ")}`]), X4, Z4, U4]), qw;
};
}
}), nx = (t, e) => {
let {
height: n,
offset: r,
prefixCls: i,
onInnerResize: a
} = t, {
slots: o
} = e;
var s;
let l = {}, u = {
display: "flex",
flexDirection: "column"
};
return r !== void 0 && (l = {
height: `${n}px`,
position: "relative",
overflow: "hidden"
}, u = I(I({}, u), {
transform: `translateY(${r}px)`,
position: "absolute",
left: 0,
right: 0,
top: 0
})), M("div", {
style: l
}, [M(bh, {
onResize: (c) => {
let {
offsetHeight: f
} = c;
f && a && a();
}
}, {
default: () => [M("div", {
style: u,
class: ye({
[`${i}-holder-inner`]: i
})
}, [(s = o.default) === null || s === void 0 ? void 0 : s.call(o)])]
})]);
};
nx.displayName = "Filter";
nx.inheritAttrs = !1;
nx.props = {
prefixCls: String,
/** Virtual filler height. Should be `count * itemMinHeight` */
height: Number,
/** Set offset of visible items. Should be the top of start item position */
offset: Number,
onInnerResize: Function
};
const FZ = (t, e) => {
let {
setRef: n
} = t, {
slots: r
} = e;
var i;
const a = Yn((i = r.default) === null || i === void 0 ? void 0 : i.call(r));
return a && a.length ? Bs(a[0], {
ref: n
}) : a;
};
FZ.props = {
setRef: {
type: Function,
default: () => {
}
}
};
const uge = 20;
function vN(t) {
return "touches" in t ? t.touches[0].pageY : t.pageY;
}
const cge = te({
compatConfig: {
MODE: 3
},
name: "ScrollBar",
inheritAttrs: !1,
props: {
prefixCls: String,
scrollTop: Number,
scrollHeight: Number,
height: Number,
count: Number,
onScroll: {
type: Function
},
onStartMove: {
type: Function
},
onStopMove: {
type: Function
}
},
setup() {
return {
moveRaf: null,
scrollbarRef: sm(),
thumbRef: sm(),
visibleTimeout: null,
state: tn({
dragging: !1,
pageY: null,
startTop: null,
visible: !1
})
};
},
watch: {
scrollTop: {
handler() {
this.delayHidden();
},
flush: "post"
}
},
mounted() {
var t, e;
(t = this.scrollbarRef.current) === null || t === void 0 || t.addEventListener("touchstart", this.onScrollbarTouchStart, pr ? {
passive: !1
} : !1), (e = this.thumbRef.current) === null || e === void 0 || e.addEventListener("touchstart", this.onMouseDown, pr ? {
passive: !1
} : !1);
},
beforeUnmount() {
this.removeEvents(), clearTimeout(this.visibleTimeout);
},
methods: {
delayHidden() {
clearTimeout(this.visibleTimeout), this.state.visible = !0, this.visibleTimeout = setTimeout(() => {
this.state.visible = !1;
}, 2e3);
},
onScrollbarTouchStart(t) {
t.preventDefault();
},
onContainerMouseDown(t) {
t.stopPropagation(), t.preventDefault();
},
// ======================= Clean =======================
patchEvents() {
window.addEventListener("mousemove", this.onMouseMove), window.addEventListener("mouseup", this.onMouseUp), this.thumbRef.current.addEventListener("touchmove", this.onMouseMove, pr ? {
passive: !1
} : !1), this.thumbRef.current.addEventListener("touchend", this.onMouseUp);
},
removeEvents() {
window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp), this.scrollbarRef.current.removeEventListener("touchstart", this.onScrollbarTouchStart, pr ? {
passive: !1
} : !1), this.thumbRef.current && (this.thumbRef.current.removeEventListener("touchstart", this.onMouseDown, pr ? {
passive: !1
} : !1), this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, pr ? {
passive: !1
} : !1), this.thumbRef.current.removeEventListener("touchend", this.onMouseUp)), xt.cancel(this.moveRaf);
},
// ======================= Thumb =======================
onMouseDown(t) {
const {
onStartMove: e
} = this.$props;
I(this.state, {
dragging: !0,
pageY: vN(t),
startTop: this.getTop()
}), e(), this.patchEvents(), t.stopPropagation(), t.preventDefault();
},
onMouseMove(t) {
const {
dragging: e,
pageY: n,
startTop: r
} = this.state, {
onScroll: i
} = this.$props;
if (xt.cancel(this.moveRaf), e) {
const a = vN(t) - n, o = r + a, s = this.getEnableScrollRange(), l = this.getEnableHeightRange(), u = l ? o / l : 0, c = Math.ceil(u * s);
this.moveRaf = xt(() => {
i(c);
});
}
},
onMouseUp() {
const {
onStopMove: t
} = this.$props;
this.state.dragging = !1, t(), this.removeEvents();
},
// ===================== Calculate =====================
getSpinHeight() {
const {
height: t,
scrollHeight: e
} = this.$props;
let n = t / e * 100;
return n = Math.max(n, uge), n = Math.min(n, t / 2), Math.floor(n);
},
getEnableScrollRange() {
const {
scrollHeight: t,
height: e
} = this.$props;
return t - e || 0;
},
getEnableHeightRange() {
const {
height: t
} = this.$props, e = this.getSpinHeight();
return t - e || 0;
},
getTop() {
const {
scrollTop: t
} = this.$props, e = this.getEnableScrollRange(), n = this.getEnableHeightRange();
return t === 0 || e === 0 ? 0 : t / e * n;
},
// Not show scrollbar when height is large than scrollHeight
showScroll() {
const {
height: t,
scrollHeight: e
} = this.$props;
return e > t;
}
},
render() {
const {
dragging: t,
visible: e
} = this.state, {
prefixCls: n
} = this.$props, r = this.getSpinHeight() + "px", i = this.getTop() + "px", a = this.showScroll(), o = a && e;
return M("div", {
ref: this.scrollbarRef,
class: ye(`${n}-scrollbar`, {
[`${n}-scrollbar-show`]: a
}),
style: {
width: "8px",
top: 0,
bottom: 0,
right: 0,
position: "absolute",
display: o ? void 0 : "none"
},
onMousedown: this.onContainerMouseDown,
onMousemove: this.delayHidden
}, [M("div", {
ref: this.thumbRef,
class: ye(`${n}-scrollbar-thumb`, {
[`${n}-scrollbar-thumb-moving`]: t
}),
style: {
width: "100%",
height: r,
top: i,
left: 0,
position: "absolute",
background: "rgba(0, 0, 0, 0.5)",
borderRadius: "99px",
cursor: "pointer",
userSelect: "none"
},
onMousedown: this.onMouseDown
}, null)]);
}
});
function fge(t, e, n, r) {
const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = U(Symbol("update"));
se(t, () => {
o.value = Symbol("update");
});
let s;
function l() {
xt.cancel(s);
}
function u() {
l(), s = xt(() => {
i.forEach((f, d) => {
if (f && f.offsetParent) {
const {
offsetHeight: h
} = f;
a.get(d) !== h && (o.value = Symbol("update"), a.set(d, f.offsetHeight));
}
});
});
}
function c(f, d) {
const h = e(f);
i.get(h), d ? (i.set(h, d.$el || d), u()) : i.delete(h);
}
return rl(() => {
l();
}), [c, u, a, o];
}
function dge(t, e, n, r, i, a, o, s) {
let l;
return (u) => {
if (u == null) {
s();
return;
}
xt.cancel(l);
const c = e.value, f = r.itemHeight;
if (typeof u == "number")
o(u);
else if (u && typeof u == "object") {
let d;
const {
align: h
} = u;
"index" in u ? {
index: d
} = u : d = c.findIndex((g) => i(g) === u.key);
const {
offset: p = 0
} = u, v = (g, m) => {
if (g < 0 || !t.value) return;
const y = t.value.clientHeight;
let b = !1, _ = m;
if (y) {
const O = m || h;
let S = 0, x = 0, C = 0;
const T = Math.min(c.length, d);
for (let $ = 0; $ <= T; $ += 1) {
const A = i(c[$]);
x = S;
const D = n.get(A);
C = x + (D === void 0 ? f : D), S = C, $ === d && D === void 0 && (b = !0);
}
const w = t.value.scrollTop;
let P = null;
switch (O) {
case "top":
P = x - p;
break;
case "bottom":
P = C - y + p;
break;
default: {
const $ = w + y;
x < w ? _ = "top" : C > $ && (_ = "bottom");
}
}
P !== null && P !== w && o(P);
}
l = xt(() => {
b && a(), v(g - 1, _);
}, 2);
};
v(5);
}
};
}
const hge = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent), WZ = (t, e) => {
let n = !1, r = null;
function i() {
clearTimeout(r), n = !0, r = setTimeout(() => {
n = !1;
}, 50);
}
return function(a) {
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
const s = (
// Pass origin wheel when on the top
a < 0 && t.value || // Pass origin wheel when on the bottom
a > 0 && e.value
);
return o && s ? (clearTimeout(r), n = !1) : (!s || n) && i(), !n && s;
};
};
function pge(t, e, n, r) {
let i = 0, a = null, o = null, s = !1;
const l = WZ(e, n);
function u(f) {
if (!t.value) return;
xt.cancel(a);
const {
deltaY: d
} = f;
i += d, o = d, !l(d) && (hge || f.preventDefault(), a = xt(() => {
r(i * (s ? 10 : 1)), i = 0;
}));
}
function c(f) {
t.value && (s = f.detail === o);
}
return [u, c];
}
const vge = 14 / 15;
function gge(t, e, n) {
let r = !1, i = 0, a = null, o = null;
const s = () => {
a && (a.removeEventListener("touchmove", l), a.removeEventListener("touchend", u));
}, l = (d) => {
if (r) {
const h = Math.ceil(d.touches[0].pageY);
let p = i - h;
i = h, n(p) && d.preventDefault(), clearInterval(o), o = setInterval(() => {
p *= vge, (!n(p, !0) || Math.abs(p) <= 0.1) && clearInterval(o);
}, 16);
}
}, u = () => {
r = !1, s();
}, c = (d) => {
s(), d.touches.length === 1 && !r && (r = !0, i = Math.ceil(d.touches[0].pageY), a = d.target, a.addEventListener("touchmove", l, {
passive: !1
}), a.addEventListener("touchend", u));
}, f = () => {
};
it(() => {
document.addEventListener("touchmove", f, {
passive: !1
}), se(t, (d) => {
e.value.removeEventListener("touchstart", c), s(), clearInterval(o), d && e.value.addEventListener("touchstart", c, {
passive: !1
});
}, {
immediate: !0
});
}), yt(() => {
document.removeEventListener("touchmove", f);
});
}
var mge = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const yge = [], bge = {
overflowY: "auto",
overflowAnchor: "none"
};
function _ge(t, e, n, r, i, a) {
let {
getKey: o
} = a;
return t.slice(e, n + 1).map((s, l) => {
const u = e + l, c = i(s, u, {
// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
}), f = o(s);
return M(FZ, {
key: f,
setRef: (d) => r(s, d)
}, {
default: () => [c]
});
});
}
const Oge = te({
compatConfig: {
MODE: 3
},
name: "List",
inheritAttrs: !1,
props: {
prefixCls: String,
data: Y.array,
height: Number,
itemHeight: Number,
/** If not match virtual scroll condition, Set List still use height of container. */
fullHeight: {
type: Boolean,
default: void 0
},
itemKey: {
type: [String, Number, Function],
required: !0
},
component: {
type: [String, Object]
},
/** Set `false` will always use real scroll instead of virtual one */
virtual: {
type: Boolean,
default: void 0
},
children: Function,
onScroll: Function,
onMousedown: Function,
onMouseenter: Function,
onVisibleChange: Function
},
setup(t, e) {
let {
expose: n
} = e;
const r = L(() => {
const {
height: B,
itemHeight: W,
virtual: F
} = t;
return !!(F !== !1 && B && W);
}), i = L(() => {
const {
height: B,
itemHeight: W,
data: F
} = t;
return r.value && F && W * F.length > B;
}), a = tn({
scrollTop: 0,
scrollMoving: !1
}), o = L(() => t.data || yge), s = ae([]);
se(o, () => {
s.value = Ko(o.value).slice();
}, {
immediate: !0
});
const l = ae((B) => {
});
se(() => t.itemKey, (B) => {
typeof B == "function" ? l.value = B : l.value = (W) => W == null ? void 0 : W[B];
}, {
immediate: !0
});
const u = ae(), c = ae(), f = ae(), d = (B) => l.value(B), h = {
getKey: d
};
function p(B) {
let W;
typeof B == "function" ? W = B(a.scrollTop) : W = B;
const F = S(W);
u.value && (u.value.scrollTop = F), a.scrollTop = F;
}
const [v, g, m, y] = fge(s, d), b = tn({
scrollHeight: void 0,
start: 0,
end: 0,
offset: void 0
}), _ = ae(0);
it(() => {
Tt(() => {
var B;
_.value = ((B = c.value) === null || B === void 0 ? void 0 : B.offsetHeight) || 0;
});
}), ap(() => {
Tt(() => {
var B;
_.value = ((B = c.value) === null || B === void 0 ? void 0 : B.offsetHeight) || 0;
});
}), se([r, s], () => {
r.value || I(b, {
scrollHeight: void 0,
start: 0,
end: s.value.length - 1,
offset: void 0
});
}, {
immediate: !0
}), se([r, s, _, i], () => {
r.value && !i.value && I(b, {
scrollHeight: _.value,
start: 0,
end: s.value.length - 1,
offset: void 0
}), u.value && (a.scrollTop = u.value.scrollTop);
}, {
immediate: !0
}), se([i, r, () => a.scrollTop, s, y, () => t.height, _], () => {
if (!r.value || !i.value)
return;
let B = 0, W, F, Q;
const Z = s.value.length, ne = s.value, ee = a.scrollTop, {
itemHeight: oe,
height: K
} = t, ie = ee + K;
for (let X = 0; X < Z; X += 1) {
const H = ne[X], G = d(H);
let re = m.get(G);
re === void 0 && (re = oe);
const fe = B + re;
W === void 0 && fe >= ee && (W = X, F = B), Q === void 0 && fe > ie && (Q = X), B = fe;
}
W === void 0 && (W = 0, F = 0, Q = Math.ceil(K / oe)), Q === void 0 && (Q = Z - 1), Q = Math.min(Q + 1, Z), I(b, {
scrollHeight: B,
start: W,
end: Q,
offset: F
});
}, {
immediate: !0
});
const O = L(() => b.scrollHeight - t.height);
function S(B) {
let W = B;
return Number.isNaN(O.value) || (W = Math.min(W, O.value)), W = Math.max(W, 0), W;
}
const x = L(() => a.scrollTop <= 0), C = L(() => a.scrollTop >= O.value), T = WZ(x, C);
function w(B) {
p(B);
}
function P(B) {
var W;
const {
scrollTop: F
} = B.currentTarget;
F !== a.scrollTop && p(F), (W = t.onScroll) === null || W === void 0 || W.call(t, B);
}
const [$, A] = pge(r, x, C, (B) => {
p((W) => W + B);
});
gge(r, u, (B, W) => T(B, W) ? !1 : ($({
preventDefault() {
},
deltaY: B
}), !0));
function D(B) {
r.value && B.preventDefault();
}
const E = () => {
u.value && (u.value.removeEventListener("wheel", $, pr ? {
passive: !1
} : !1), u.value.removeEventListener("DOMMouseScroll", A), u.value.removeEventListener("MozMousePixelScroll", D));
};
ht(() => {
Tt(() => {
u.value && (E(), u.value.addEventListener("wheel", $, pr ? {
passive: !1
} : !1), u.value.addEventListener("DOMMouseScroll", A), u.value.addEventListener("MozMousePixelScroll", D));
});
}), yt(() => {
E();
});
const R = dge(u, s, m, t, d, g, p, () => {
var B;
(B = f.value) === null || B === void 0 || B.delayHidden();
});
n({
scrollTo: R
});
const N = L(() => {
let B = null;
return t.height && (B = I({
[t.fullHeight ? "height" : "maxHeight"]: t.height + "px"
}, bge), r.value && (B.overflowY = "hidden", a.scrollMoving && (B.pointerEvents = "none"))), B;
});
return se([() => b.start, () => b.end, s], () => {
if (t.onVisibleChange) {
const B = s.value.slice(b.start, b.end + 1);
t.onVisibleChange(B, s.value);
}
}, {
flush: "post"
}), {
state: a,
mergedData: s,
componentStyle: N,
onFallbackScroll: P,
onScrollBar: w,
componentRef: u,
useVirtual: r,
calRes: b,
collectHeight: g,
setInstance: v,
sharedConfig: h,
scrollBarRef: f,
fillerInnerRef: c,
delayHideScrollBar: () => {
var B;
(B = f.value) === null || B === void 0 || B.delayHidden();
}
};
},
render() {
const t = I(I({}, this.$props), this.$attrs), {
prefixCls: e = "rc-virtual-list",
height: n,
itemHeight: r,
// eslint-disable-next-line no-unused-vars
fullHeight: i,
data: a,
itemKey: o,
virtual: s,
component: l = "div",
onScroll: u,
children: c = this.$slots.default,
style: f,
class: d
} = t, h = mge(t, ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"]), p = ye(e, d), {
scrollTop: v
} = this.state, {
scrollHeight: g,
offset: m,
start: y,
end: b
} = this.calRes, {
componentStyle: _,
onFallbackScroll: O,
onScrollBar: S,
useVirtual: x,
collectHeight: C,
sharedConfig: T,
setInstance: w,
mergedData: P,
delayHideScrollBar: $
} = this;
return M("div", j({
style: I(I({}, f), {
position: "relative"
}),
class: p
}, h), [M(l, {
class: `${e}-holder`,
style: _,
ref: "componentRef",
onScroll: O,
onMouseenter: $
}, {
default: () => [M(nx, {
prefixCls: e,
height: g,
offset: m,
onInnerResize: C,
ref: "fillerInnerRef"
}, {
default: () => _ge(P, y, b, w, c, T)
})]
}), x && M(cge, {
ref: "scrollBarRef",
prefixCls: e,
scrollTop: v,
height: n,
scrollHeight: g,
count: P.length,
onScroll: S,
onStartMove: () => {
this.state.scrollMoving = !0;
},
onStopMove: () => {
this.state.scrollMoving = !1;
}
}, null)]);
}
});
function Sge(t, e, n) {
const r = U(t());
return se(e, (i, a) => {
n ? n(i, a) && (r.value = t()) : r.value = t();
}), r;
}
function xge() {
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
}
const QZ = Symbol("SelectContextKey");
function wge(t) {
return pt(QZ, t);
}
function Cge() {
return Ge(QZ, {});
}
var Tge = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
function gN(t) {
return typeof t == "string" || typeof t == "number";
}
const Pge = te({
compatConfig: {
MODE: 3
},
name: "OptionList",
inheritAttrs: !1,
setup(t, e) {
let {
expose: n,
slots: r
} = e;
const i = rge(), a = Cge(), o = L(() => `${i.prefixCls}-item`), s = Sge(() => a.flattenOptions, [() => i.open, () => a.flattenOptions], (O) => O[0]), l = sm(), u = (O) => {
O.preventDefault();
}, c = (O) => {
l.current && l.current.scrollTo(typeof O == "number" ? {
index: O
} : O);
}, f = function(O) {
let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
const x = s.value.length;
for (let C = 0; C < x; C += 1) {
const T = (O + C * S + x) % x, {
group: w,
data: P
} = s.value[T];
if (!w && !P.disabled)
return T;
}
return -1;
}, d = tn({
activeIndex: f(0)
}), h = function(O) {
let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
d.activeIndex = O;
const x = {
source: S ? "keyboard" : "mouse"
}, C = s.value[O];
if (!C) {
a.onActiveValue(null, -1, x);
return;
}
a.onActiveValue(C.value, O, x);
};
se([() => s.value.length, () => i.searchValue], () => {
h(a.defaultActiveFirstOption !== !1 ? f(0) : -1);
}, {
immediate: !0
});
const p = (O) => a.rawValues.has(O) && i.mode !== "combobox";
se([() => i.open, () => i.searchValue], () => {
if (!i.multiple && i.open && a.rawValues.size === 1) {
const O = Array.from(a.rawValues)[0], S = Ko(s.value).findIndex((x) => {
let {
data: C
} = x;
return C[a.fieldNames.value] === O;
});
S !== -1 && (h(S), Tt(() => {
c(S);
}));
}
i.open && Tt(() => {
var O;
(O = l.current) === null || O === void 0 || O.scrollTo(void 0);
});
}, {
immediate: !0,
flush: "post"
});
const v = (O) => {
O !== void 0 && a.onSelect(O, {
selected: !a.rawValues.has(O)
}), i.multiple || i.toggleOpen(!1);
}, g = (O) => typeof O.label == "function" ? O.label() : O.label;
function m(O) {
const S = s.value[O];
if (!S) return null;
const x = S.data || {}, {
value: C
} = x, {
group: T
} = S, w = tx(x, !0), P = g(S);
return S ? M("div", j(j({
"aria-label": typeof P == "string" && !T ? P : null
}, w), {}, {
key: O,
role: T ? "presentation" : "option",
id: `${i.id}_list_${O}`,
"aria-selected": p(C)
}), [C]) : null;
}
return n({
onKeydown: (O) => {
const {
which: S,
ctrlKey: x
} = O;
switch (S) {
case ge.N:
case ge.P:
case ge.UP:
case ge.DOWN: {
let C = 0;
if (S === ge.UP ? C = -1 : S === ge.DOWN ? C = 1 : xge() && x && (S === ge.N ? C = 1 : S === ge.P && (C = -1)), C !== 0) {
const T = f(d.activeIndex + C, C);
c(T), h(T, !0);
}
break;
}
case ge.ENTER: {
const C = s.value[d.activeIndex];
C && !C.data.disabled ? v(C.value) : v(void 0), i.open && O.preventDefault();
break;
}
case ge.ESC:
i.toggleOpen(!1), i.open && O.stopPropagation();
}
},
onKeyup: () => {
},
scrollTo: (O) => {
c(O);
}
}), () => {
const {
id: O,
notFoundContent: S,
onPopupScroll: x
} = i, {
menuItemSelectedIcon: C,
fieldNames: T,
virtual: w,
listHeight: P,
listItemHeight: $
} = a, A = r.option, {
activeIndex: D
} = d, E = Object.keys(T).map((R) => T[R]);
return s.value.length === 0 ? M("div", {
role: "listbox",
id: `${O}_list`,
class: `${o.value}-empty`,
onMousedown: u
}, [S]) : M(wt, null, [M("div", {
role: "listbox",
id: `${O}_list`,
style: {
height: 0,
width: 0,
overflow: "hidden"
}
}, [m(D - 1), m(D), m(D + 1)]), M(Oge, {
itemKey: "key",
ref: l,
data: s.value,
height: P,
itemHeight: $,
fullHeight: !1,
onMousedown: u,
onScroll: x,
virtual: w
}, {
default: (R, N) => {
var V;
const {
group: B,
groupOption: W,
data: F,
value: Q
} = R, {
key: Z
} = F, ne = typeof R.label == "function" ? R.label() : R.label;
if (B) {
const Te = (V = F.title) !== null && V !== void 0 ? V : gN(ne) && ne;
return M("div", {
class: ye(o.value, `${o.value}-group`),
title: Te
}, [A ? A(F) : ne !== void 0 ? ne : Z]);
}
const {
disabled: ee,
title: oe,
children: K,
style: ie,
class: X,
className: H
} = F, G = Tge(F, ["disabled", "title", "children", "style", "class", "className"]), re = or(G, E), fe = p(Q), de = `${o.value}-option`, Ee = ye(o.value, de, X, H, {
[`${de}-grouped`]: W,
[`${de}-active`]: D === N && !ee,
[`${de}-disabled`]: ee,
[`${de}-selected`]: fe
}), $e = g(R), Se = !C || typeof C == "function" || fe, be = typeof $e == "number" ? $e : $e || Q;
let he = gN(be) ? be.toString() : void 0;
return oe !== void 0 && (he = oe), M("div", j(j({}, re), {}, {
"aria-selected": fe,
class: Ee,
title: he,
onMousemove: (Te) => {
G.onMousemove && G.onMousemove(Te), !(D === N || ee) && h(N);
},
onClick: (Te) => {
ee || v(Q), G.onClick && G.onClick(Te);
},
style: ie
}), [M("div", {
class: `${de}-content`
}, [A ? A(F) : be]), Yi(C) || fe, Se && M(vf, {
class: `${o.value}-option-state`,
customizeIcon: C,
customizeIconProps: {
isSelected: fe
}
}, {
default: () => [fe ? "✓" : null]
})]);
}
})]);
};
}
});
var $ge = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
function Age(t) {
const e = t, {
key: n,
children: r
} = e, i = e.props, {
value: a,
disabled: o
} = i, s = $ge(i, ["value", "disabled"]), l = r == null ? void 0 : r.default;
return I({
key: n,
value: a !== void 0 ? a : n,
children: l,
disabled: o || o === ""
}, s);
}
function II(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
return Yn(t).map((r, i) => {
var a;
if (!Yi(r) || !r.type)
return null;
const {
type: {
isSelectOptGroup: o
},
key: s,
children: l,
props: u
} = r;
if (e || !o)
return Age(r);
const c = l && l.default ? l.default() : void 0, f = (u == null ? void 0 : u.label) || ((a = l.label) === null || a === void 0 ? void 0 : a.call(l)) || s;
return I(I({
key: `__RC_SELECT_GRP__${s === null ? i : String(s)}__`
}, u), {
label: f,
options: II(c || [])
});
}).filter((r) => r);
}
function Ege(t, e, n) {
const r = ae(), i = ae(), a = ae(), o = ae([]);
return se([t, e], () => {
t.value ? o.value = Ko(t.value).slice() : o.value = II(e.value);
}, {
immediate: !0,
deep: !0
}), ht(() => {
const s = o.value, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), c = n.value;
function f(d) {
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
for (let p = 0; p < d.length; p += 1) {
const v = d[p];
!v[c.options] || h ? (l.set(v[c.value], v), u.set(v[c.label], v)) : f(v[c.options], !0);
}
}
f(s), r.value = s, i.value = l, a.value = u;
}), {
options: r,
valueOptions: i,
labelOptions: a
};
}
let mN = 0;
const Mge = process.env.NODE_ENV !== "test" && Ta();
function Ige() {
let t;
return Mge ? (t = mN, mN += 1) : t = "TEST_OR_SSR", t;
}
function Dge() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : U("");
const e = `rc_select_${Ige()}`;
return t.value || e;
}
function DI(t) {
return Array.isArray(t) ? t : t !== void 0 ? [t] : [];
}
const Rge = typeof window < "u" && window.document && window.document.documentElement;
process.env.NODE_ENV;
function kge(t) {
const {
mode: e,
options: n,
children: r,
backfill: i,
allowClear: a,
placeholder: o,
getInputElement: s,
showSearch: l,
onSearch: u,
defaultOpen: c,
autofocus: f,
labelInValue: d,
value: h,
inputValue: p,
optionLabelProp: v
} = t, g = MI(e), m = l !== void 0 ? l : g || e === "combobox", y = n || II(r);
if (la(e !== "tags" || y.every((b) => !b.disabled), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), la(e !== "combobox" || !v, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), la(e === "combobox" || !i, "`backfill` only works with `combobox` mode."), la(e === "combobox" || !s, "`getInputElement` only work with `combobox` mode."), o8(e !== "combobox" || !s || !a || !o, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), u && !m && e !== "combobox" && e !== "tags" && la(!1, "`onSearch` should work with `showSearch` instead of use alone."), o8(!c || f, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."), h != null) {
const b = DI(h);
la(!d || b.every((_) => typeof _ == "object" && ("key" in _ || "value" in _)), "`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"), la(!g || Array.isArray(h), "`value` should be array when `mode` is `multiple` or `tags`");
}
if (r) {
let b = null;
r.some((_) => {
var O;
if (!Yi(_) || !_.type)
return !1;
const {
type: S
} = _;
return S.isSelectOption ? !1 : S.isSelectOptGroup ? !(((O = _.children) === null || O === void 0 ? void 0 : O.default()) || []).every((T) => !Yi(T) || !_.type || T.type.isSelectOption ? !0 : (b = T.type, !1)) : (b = S, !0);
}), b && la(!1, `\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${b.displayName || b.name || b}\`.`), la(p === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
}
}
function mC(t, e) {
return DI(t).join("").toUpperCase().includes(e);
}
const Lge = (t, e, n, r, i) => L(() => {
const a = n.value, o = i == null ? void 0 : i.value, s = r == null ? void 0 : r.value;
if (!a || s === !1)
return t.value;
const {
options: l,
label: u,
value: c
} = e.value, f = [], d = typeof s == "function", h = a.toUpperCase(), p = d ? s : (g, m) => o ? mC(m[o], h) : m[l] ? mC(m[u !== "children" ? u : "label"], h) : mC(m[c], h), v = d ? (g) => b2(g) : (g) => g;
return t.value.forEach((g) => {
if (g[l]) {
if (p(a, v(g)))
f.push(g);
else {
const y = g[l].filter((b) => p(a, v(b)));
y.length && f.push(I(I({}, g), {
[l]: y
}));
}
return;
}
p(a, v(g)) && f.push(g);
}), f;
}), Nge = (t, e) => {
const n = ae({
values: /* @__PURE__ */ new Map(),
options: /* @__PURE__ */ new Map()
});
return [L(() => {
const {
values: a,
options: o
} = n.value, s = t.value.map((c) => {
var f;
return c.label === void 0 ? I(I({}, c), {
label: (f = a.get(c.value)) === null || f === void 0 ? void 0 : f.label
}) : c;
}), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
return s.forEach((c) => {
l.set(c.value, c), u.set(c.value, e.value.get(c.value) || o.get(c.value));
}), n.value.values = l, n.value.options = u, s;
}), (a) => e.value.get(a) || n.value.options.get(a)];
};
function Ah(t, e) {
const {
defaultValue: n,
value: r = U()
} = e || {};
let i = typeof t == "function" ? t() : t;
r.value !== void 0 && (i = z(r)), n !== void 0 && (i = typeof n == "function" ? n() : n);
const a = U(i), o = U(i);
ht(() => {
let l = r.value !== void 0 ? r.value : a.value;
e.postState && (l = e.postState(l)), o.value = l;
});
function s(l) {
const u = o.value;
a.value = l, Ko(o.value) !== l && e.onChange && e.onChange(l, u);
}
return se(r, () => {
a.value = r.value;
}), [o, s];
}
function fn(t) {
const e = typeof t == "function" ? t() : t, n = U(e);
function r(i) {
n.value = i;
}
return [n, r];
}
const Bge = ["inputValue"];
function HZ() {
return I(I({}, VZ()), {
prefixCls: String,
id: String,
backfill: {
type: Boolean,
default: void 0
},
// >>> Field Names
fieldNames: Object,
// >>> Search
/** @deprecated Use `searchValue` instead */
inputValue: String,
searchValue: String,
onSearch: Function,
autoClearSearchValue: {
type: Boolean,
default: void 0
},
// >>> Select
onSelect: Function,
onDeselect: Function,
// >>> Options
/**
* In Select, `false` means do nothing.
* In TreeSelect, `false` will highlight match item.
* It's by design.
*/
filterOption: {
type: [Boolean, Function],
default: void 0
},
filterSort: Function,
optionFilterProp: String,
optionLabelProp: String,
options: Array,
defaultActiveFirstOption: {
type: Boolean,
default: void 0
},
virtual: {
type: Boolean,
default: void 0
},
listHeight: Number,
listItemHeight: Number,
// >>> Icon
menuItemSelectedIcon: Y.any,
mode: String,
labelInValue: {
type: Boolean,
default: void 0
},
value: Y.any,
defaultValue: Y.any,
onChange: Function,
children: Array
});
}
function zge(t) {
return !t || typeof t != "object";
}
const Vge = te({
compatConfig: {
MODE: 3
},
name: "VcSelect",
inheritAttrs: !1,
props: sr(HZ(), {
prefixCls: "vc-select",
autoClearSearchValue: !0,
listHeight: 200,
listItemHeight: 20,
dropdownMatchSelectWidth: !0
}),
setup(t, e) {
let {
expose: n,
attrs: r,
slots: i
} = e;
const a = Dge(Nn(t, "id")), o = L(() => MI(t.mode)), s = L(() => !!(!t.options && t.children)), l = L(() => t.filterOption === void 0 && t.mode === "combobox" ? !1 : t.filterOption), u = L(() => oZ(t.fieldNames, s.value)), [c, f] = Ah("", {
value: L(() => t.searchValue !== void 0 ? t.searchValue : t.inputValue),
postState: (X) => X || ""
}), d = Ege(Nn(t, "options"), Nn(t, "children"), u), {
valueOptions: h,
labelOptions: p,
options: v
} = d, g = (X) => DI(X).map((G) => {
var re, fe;
let de, Ee, $e, Se;
zge(G) ? de = G : ($e = G.key, Ee = G.label, de = (re = G.value) !== null && re !== void 0 ? re : $e);
const be = h.value.get(de);
return be && (Ee === void 0 && (Ee = be == null ? void 0 : be[t.optionLabelProp || u.value.label]), $e === void 0 && ($e = (fe = be == null ? void 0 : be.key) !== null && fe !== void 0 ? fe : de), Se = be == null ? void 0 : be.disabled), {
label: Ee,
value: de,
key: $e,
disabled: Se,
option: be
};
}), [m, y] = Ah(t.defaultValue, {
value: Nn(t, "value")
}), b = L(() => {
var X;
const H = g(m.value);
return t.mode === "combobox" && !(!((X = H[0]) === null || X === void 0) && X.value) ? [] : H;
}), [_, O] = Nge(b, h), S = L(() => {
if (!t.mode && _.value.length === 1) {
const X = _.value[0];
if (X.value === null && (X.label === null || X.label === void 0))
return [];
}
return _.value.map((X) => {
var H;
return I(I({}, X), {
label: (H = typeof X.label == "function" ? X.label() : X.label) !== null && H !== void 0 ? H : X.value
});
});
}), x = L(() => new Set(_.value.map((X) => X.value)));
ht(() => {
var X;
if (t.mode === "combobox") {
const H = (X = _.value[0]) === null || X === void 0 ? void 0 : X.value;
H != null && f(String(H));
}
}, {
flush: "post"
});
const C = (X, H) => {
const G = H ?? X;
return {
[u.value.value]: X,
[u.value.label]: G
};
}, T = ae();
ht(() => {
if (t.mode !== "tags") {
T.value = v.value;
return;
}
const X = v.value.slice(), H = (G) => h.value.has(G);
[..._.value].sort((G, re) => G.value < re.value ? -1 : 1).forEach((G) => {
const re = G.value;
H(re) || X.push(C(re, G.label));
}), T.value = X;
});
const w = Lge(T, u, c, l, Nn(t, "optionFilterProp")), P = L(() => t.mode !== "tags" || !c.value || w.value.some((X) => X[t.optionFilterProp || "value"] === c.value) ? w.value : [C(c.value), ...w.value]), $ = L(() => t.filterSort ? [...P.value].sort((X, H) => t.filterSort(X, H)) : P.value), A = L(() => nde($.value, {
fieldNames: u.value,
childrenAsData: s.value
})), D = (X) => {
const H = g(X);
if (y(H), t.onChange && // Trigger event only when value changed
(H.length !== _.value.length || H.some((G, re) => {
var fe;
return ((fe = _.value[re]) === null || fe === void 0 ? void 0 : fe.value) !== (G == null ? void 0 : G.value);
}))) {
const G = t.labelInValue ? H.map((fe) => I(I({}, fe), {
originLabel: fe.label,
label: typeof fe.label == "function" ? fe.label() : fe.label
})) : H.map((fe) => fe.value), re = H.map((fe) => b2(O(fe.value)));
t.onChange(
// Value
o.value ? G : G[0],
// Option
o.value ? re : re[0]
);
}
}, [E, R] = fn(null), [N, V] = fn(0), B = L(() => t.defaultActiveFirstOption !== void 0 ? t.defaultActiveFirstOption : t.mode !== "combobox"), W = function(X, H) {
let {
source: G = "keyboard"
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
V(H), t.backfill && t.mode === "combobox" && X !== null && G === "keyboard" && R(String(X));
}, F = (X, H) => {
const G = () => {
var re;
const fe = O(X), de = fe == null ? void 0 : fe[u.value.label];
return [t.labelInValue ? {
label: typeof de == "function" ? de() : de,
originLabel: de,
value: X,
key: (re = fe == null ? void 0 : fe.key) !== null && re !== void 0 ? re : X
} : X, b2(fe)];
};
if (H && t.onSelect) {
const [re, fe] = G();
t.onSelect(re, fe);
} else if (!H && t.onDeselect) {
const [re, fe] = G();
t.onDeselect(re, fe);
}
}, Q = (X, H) => {
let G;
const re = o.value ? H.selected : !0;
re ? G = o.value ? [..._.value, X] : [X] : G = _.value.filter((fe) => fe.value !== X), D(G), F(X, re), t.mode === "combobox" ? R("") : (!o.value || t.autoClearSearchValue) && (f(""), R(""));
}, Z = (X, H) => {
D(X), (H.type === "remove" || H.type === "clear") && H.values.forEach((G) => {
F(G.value, !1);
});
}, ne = (X, H) => {
var G;
if (f(X), R(null), H.source === "submit") {
const re = (X || "").trim();
if (re) {
const fe = Array.from(/* @__PURE__ */ new Set([...x.value, re]));
D(fe), F(re, !0), f("");
}
return;
}
H.source !== "blur" && (t.mode === "combobox" && D(X), (G = t.onSearch) === null || G === void 0 || G.call(t, X));
}, ee = (X) => {
let H = X;
t.mode !== "tags" && (H = X.map((re) => {
const fe = p.value.get(re);
return fe == null ? void 0 : fe.value;
}).filter((re) => re !== void 0));
const G = Array.from(/* @__PURE__ */ new Set([...x.value, ...H]));
D(G), G.forEach((re) => {
F(re, !0);
});
}, oe = L(() => t.virtual !== !1 && t.dropdownMatchSelectWidth !== !1);
wge(zZ(I(I({}, d), {
flattenOptions: A,
onActiveValue: W,
defaultActiveFirstOption: B,
onSelect: Q,
menuItemSelectedIcon: Nn(t, "menuItemSelectedIcon"),
rawValues: x,
fieldNames: u,
virtual: oe,
listHeight: Nn(t, "listHeight"),
listItemHeight: Nn(t, "listItemHeight"),
childrenAsData: s
}))), process.env.NODE_ENV !== "production" && ht(() => {
kge(t);
}, {
flush: "post"
});
const K = U();
n({
focus() {
var X;
(X = K.value) === null || X === void 0 || X.focus();
},
blur() {
var X;
(X = K.value) === null || X === void 0 || X.blur();
},
scrollTo(X) {
var H;
(H = K.value) === null || H === void 0 || H.scrollTo(X);
}
});
const ie = L(() => or(t, [
"id",
"mode",
"prefixCls",
"backfill",
"fieldNames",
// Search
"inputValue",
"searchValue",
"onSearch",
"autoClearSearchValue",
// Select
"onSelect",
"onDeselect",
"dropdownMatchSelectWidth",
// Options
"filterOption",
"filterSort",
"optionFilterProp",
"optionLabelProp",
"options",
"children",
"defaultActiveFirstOption",
"menuItemSelectedIcon",
"virtual",
"listHeight",
"listItemHeight",
// Value
"value",
"defaultValue",
"labelInValue",
"onChange"
]));
return () => M(lge, j(j(j({}, ie.value), r), {}, {
id: a,
prefixCls: t.prefixCls,
ref: K,
omitDomProps: Bge,
mode: t.mode,
displayValues: S.value,
onDisplayValuesChange: Z,
searchValue: c.value,
onSearch: ne,
onSearchSplit: ee,
dropdownMatchSelectWidth: t.dropdownMatchSelectWidth,
OptionList: Pge,
emptyOptions: !A.value.length,
activeValue: E.value,
activeDescendantId: `${a}_list_${N.value}`
}), i);
}
}), RI = () => null;
RI.isSelectOption = !0;
RI.displayName = "ASelectOption";
const kI = () => null;
kI.isSelectOptGroup = !0;
kI.displayName = "ASelectOptGroup";
var Fge = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, Wge = Symbol("iconContext"), GZ = function() {
return Ge(Wge, {
prefixCls: U("anticon"),
rootClassName: U(""),
csp: U()
});
};
function LI() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
function Qge(t, e) {
return t && t.contains ? t.contains(e) : !1;
}
var yN = "data-vc-order", Hge = "vc-icon-key", A2 = /* @__PURE__ */ new Map();
function jZ() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.mark;
return e ? e.startsWith("data-") ? e : "data-".concat(e) : Hge;
}
function NI(t) {
if (t.attachTo)
return t.attachTo;
var e = document.querySelector("head");
return e || document.body;
}
function Gge(t) {
return t === "queue" ? "prependQueue" : t ? "prepend" : "append";
}
function ZZ(t) {
return Array.from((A2.get(t) || t).children).filter(function(e) {
return e.tagName === "STYLE";
});
}
function UZ(t) {
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (!LI())
return null;
var n = e.csp, r = e.prepend, i = document.createElement("style");
i.setAttribute(yN, Gge(r)), n && n.nonce && (i.nonce = n.nonce), i.innerHTML = t;
var a = NI(e), o = a.firstChild;
if (r) {
if (r === "queue") {
var s = ZZ(a).filter(function(l) {
return ["prepend", "prependQueue"].includes(l.getAttribute(yN));
});
if (s.length)
return a.insertBefore(i, s[s.length - 1].nextSibling), i;
}
a.insertBefore(i, o);
} else
a.appendChild(i);
return i;
}
function jge(t) {
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = NI(e);
return ZZ(n).find(function(r) {
return r.getAttribute(jZ(e)) === t;
});
}
function Zge(t, e) {
var n = A2.get(t);
if (!n || !Qge(document, n)) {
var r = UZ("", e), i = r.parentNode;
A2.set(t, i), t.removeChild(r);
}
}
function Uge(t, e) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = NI(n);
Zge(r, n);
var i = jge(e, n);
if (i)
return n.csp && n.csp.nonce && i.nonce !== n.csp.nonce && (i.nonce = n.csp.nonce), i.innerHTML !== t && (i.innerHTML = t), i;
var a = UZ(t, n);
return a.setAttribute(jZ(n), e), a;
}
function bN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Xge(t, i, n[i]);
});
}
return t;
}
function Xge(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
function Yge(t, e) {
process.env.NODE_ENV !== "production" && !t && console !== void 0 && console.error("Warning: ".concat(e));
}
function qge(t, e) {
Yge(t, "[@ant-design/icons-vue] ".concat(e));
}
function _N(t) {
return typeof t == "object" && typeof t.name == "string" && typeof t.theme == "string" && (typeof t.icon == "object" || typeof t.icon == "function");
}
function E2(t, e, n) {
return n ? qg(t.tag, bN({
key: e
}, n, t.attrs), (t.children || []).map(function(r, i) {
return E2(r, "".concat(e, "-").concat(t.tag, "-").concat(i));
})) : qg(t.tag, bN({
key: e
}, t.attrs), (t.children || []).map(function(r, i) {
return E2(r, "".concat(e, "-").concat(t.tag, "-").concat(i));
}));
}
function XZ(t) {
return df(t)[0];
}
function YZ(t) {
return t ? Array.isArray(t) ? t : [t] : [];
}
var Kge = `
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`;
function qZ(t) {
return t && t.getRootNode && t.getRootNode();
}
function Jge(t) {
return LI() ? qZ(t) instanceof ShadowRoot : !1;
}
function eme(t) {
return Jge(t) ? qZ(t) : null;
}
var tme = function() {
var e = GZ(), n = e.prefixCls, r = e.csp, i = vn(), a = Kge;
n && (a = a.replace(/anticon/g, n.value)), Tt(function() {
if (LI()) {
var o = i.vnode.el, s = eme(o);
Uge(a, "@ant-design-vue-icons", {
prepend: !0,
csp: r.value,
attachTo: s
});
}
});
}, nme = ["icon", "primaryColor", "secondaryColor"];
function rme(t, e) {
if (t == null) return {};
var n = ime(t, e), r, i;
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(t);
for (i = 0; i < a.length; i++)
r = a[i], !(e.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
}
return n;
}
function ime(t, e) {
if (t == null) return {};
var n = {}, r = Object.keys(t), i, a;
for (a = 0; a < r.length; a++)
i = r[a], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
return n;
}
function T_(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
ame(t, i, n[i]);
});
}
return t;
}
function ame(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var hg = tn({
primaryColor: "#333",
secondaryColor: "#E6E6E6",
calculated: !1
});
function ome(t) {
var e = t.primaryColor, n = t.secondaryColor;
hg.primaryColor = e, hg.secondaryColor = n || XZ(e), hg.calculated = !!n;
}
function sme() {
return T_({}, hg);
}
var _u = function(e, n) {
var r = T_({}, e, n.attrs), i = r.icon, a = r.primaryColor, o = r.secondaryColor, s = rme(r, nme), l = hg;
if (a && (l = {
primaryColor: a,
secondaryColor: o || XZ(a)
}), qge(_N(i), "icon should be icon definiton, but got ".concat(i)), !_N(i))
return null;
var u = i;
return u && typeof u.icon == "function" && (u = T_({}, u, {
icon: u.icon(l.primaryColor, l.secondaryColor)
})), E2(u.icon, "svg-".concat(u.name), T_({}, s, {
"data-icon": u.name,
width: "1em",
height: "1em",
fill: "currentColor",
"aria-hidden": "true"
}));
};
_u.props = {
icon: Object,
primaryColor: String,
secondaryColor: String,
focusable: String
};
_u.inheritAttrs = !1;
_u.displayName = "IconBase";
_u.getTwoToneColors = sme;
_u.setTwoToneColors = ome;
function lme(t, e) {
return dme(t) || fme(t, e) || cme(t, e) || ume();
}
function ume() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function cme(t, e) {
if (t) {
if (typeof t == "string") return ON(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ON(t, e);
}
}
function ON(t, e) {
(e == null || e > t.length) && (e = t.length);
for (var n = 0, r = new Array(e); n < e; n++)
r[n] = t[n];
return r;
}
function fme(t, e) {
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
if (n != null) {
var r = [], i = !0, a = !1, o, s;
try {
for (n = n.call(t); !(i = (o = n.next()).done) && (r.push(o.value), !(e && r.length === e)); i = !0)
;
} catch (l) {
a = !0, s = l;
} finally {
try {
!i && n.return != null && n.return();
} finally {
if (a) throw s;
}
}
return r;
}
}
function dme(t) {
if (Array.isArray(t)) return t;
}
function KZ(t) {
var e = YZ(t), n = lme(e, 2), r = n[0], i = n[1];
return _u.setTwoToneColors({
primaryColor: r,
secondaryColor: i
});
}
function hme() {
var t = _u.getTwoToneColors();
return t.calculated ? [t.primaryColor, t.secondaryColor] : t.primaryColor;
}
var pme = te({
name: "InsertStyles",
setup: function() {
return tme(), function() {
return null;
};
}
}), vme = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
function gme(t, e) {
return _me(t) || bme(t, e) || yme(t, e) || mme();
}
function mme() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function yme(t, e) {
if (t) {
if (typeof t == "string") return SN(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return SN(t, e);
}
}
function SN(t, e) {
(e == null || e > t.length) && (e = t.length);
for (var n = 0, r = new Array(e); n < e; n++)
r[n] = t[n];
return r;
}
function bme(t, e) {
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
if (n != null) {
var r = [], i = !0, a = !1, o, s;
try {
for (n = n.call(t); !(i = (o = n.next()).done) && (r.push(o.value), !(e && r.length === e)); i = !0)
;
} catch (l) {
a = !0, s = l;
} finally {
try {
!i && n.return != null && n.return();
} finally {
if (a) throw s;
}
}
return r;
}
}
function _me(t) {
if (Array.isArray(t)) return t;
}
function xN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Wv(t, i, n[i]);
});
}
return t;
}
function Wv(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
function Ome(t, e) {
if (t == null) return {};
var n = Sme(t, e), r, i;
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(t);
for (i = 0; i < a.length; i++)
r = a[i], !(e.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
}
return n;
}
function Sme(t, e) {
if (t == null) return {};
var n = {}, r = Object.keys(t), i, a;
for (a = 0; a < r.length; a++)
i = r[a], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
return n;
}
KZ(afe.primary);
var lt = function(e, n) {
var r, i = xN({}, e, n.attrs), a = i.class, o = i.icon, s = i.spin, l = i.rotate, u = i.tabindex, c = i.twoToneColor, f = i.onClick, d = Ome(i, vme), h = GZ(), p = h.prefixCls, v = h.rootClassName, g = (r = {}, Wv(r, v.value, !!v.value), Wv(r, p.value, !0), Wv(r, "".concat(p.value, "-").concat(o.name), !!o.name), Wv(r, "".concat(p.value, "-spin"), !!s || o.name === "loading"), r), m = u;
m === void 0 && f && (m = -1);
var y = l ? {
msTransform: "rotate(".concat(l, "deg)"),
transform: "rotate(".concat(l, "deg)")
} : void 0, b = YZ(c), _ = gme(b, 2), O = _[0], S = _[1];
return M("span", xN({
role: "img",
"aria-label": o.name
}, d, {
onClick: f,
class: [g, a],
tabindex: m
}), [M(_u, {
icon: o,
primaryColor: O,
secondaryColor: S,
style: y
}, null), M(pme, null, null)]);
};
lt.props = {
spin: Boolean,
rotate: Number,
icon: Object,
twoToneColor: [String, Array]
};
lt.displayName = "AntdIcon";
lt.inheritAttrs = !1;
lt.getTwoToneColor = hme;
lt.setTwoToneColor = KZ;
function wN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
xme(t, i, n[i]);
});
}
return t;
}
function xme(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var rx = function(e, n) {
var r = wN({}, e, n.attrs);
return M(lt, wN({}, r, {
icon: Fge
}), null);
};
rx.displayName = "DownOutlined";
rx.inheritAttrs = !1;
var wme = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
function CN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Cme(t, i, n[i]);
});
}
return t;
}
function Cme(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var ns = function(e, n) {
var r = CN({}, e, n.attrs);
return M(lt, CN({}, r, {
icon: wme
}), null);
};
ns.displayName = "LoadingOutlined";
ns.inheritAttrs = !1;
var Tme = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" };
function TN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Pme(t, i, n[i]);
});
}
return t;
}
function Pme(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var BI = function(e, n) {
var r = TN({}, e, n.attrs);
return M(lt, TN({}, r, {
icon: Tme
}), null);
};
BI.displayName = "CheckOutlined";
BI.inheritAttrs = !1;
var $me = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" };
function PN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Ame(t, i, n[i]);
});
}
return t;
}
function Ame(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var ol = function(e, n) {
var r = PN({}, e, n.attrs);
return M(lt, PN({}, r, {
icon: $me
}), null);
};
ol.displayName = "CloseOutlined";
ol.inheritAttrs = !1;
var Eme = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
function $N(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Mme(t, i, n[i]);
});
}
return t;
}
function Mme(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var ka = function(e, n) {
var r = $N({}, e, n.attrs);
return M(lt, $N({}, r, {
icon: Eme
}), null);
};
ka.displayName = "CloseCircleFilled";
ka.inheritAttrs = !1;
var Ime = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" };
function AN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Dme(t, i, n[i]);
});
}
return t;
}
function Dme(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var ix = function(e, n) {
var r = AN({}, e, n.attrs);
return M(lt, AN({}, r, {
icon: Ime
}), null);
};
ix.displayName = "SearchOutlined";
ix.inheritAttrs = !1;
function Rme(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const {
loading: n,
multiple: r,
prefixCls: i,
hasFeedback: a,
feedbackIcon: o,
showArrow: s
} = t, l = t.suffixIcon || e.suffixIcon && e.suffixIcon(), u = t.clearIcon || e.clearIcon && e.clearIcon(), c = t.menuItemSelectedIcon || e.menuItemSelectedIcon && e.menuItemSelectedIcon(), f = t.removeIcon || e.removeIcon && e.removeIcon(), d = u ?? M(ka, null, null), h = (m) => M(wt, null, [s !== !1 && m, a && o]);
let p = null;
if (l !== void 0)
p = h(l);
else if (n)
p = h(M(ns, {
spin: !0
}, null));
else {
const m = `${i}-suffix`;
p = (y) => {
let {
open: b,
showSearch: _
} = y;
return h(b && _ ? M(ix, {
class: m
}, null) : M(rx, {
class: m
}, null));
};
}
let v = null;
c !== void 0 ? v = c : r ? v = M(BI, null, null) : v = null;
let g = null;
return f !== void 0 ? g = f : g = M(ol, null, null), {
clearIcon: d,
suffixIcon: p,
itemIcon: v,
removeIcon: g
};
}
function zI(t) {
const e = Symbol("contextKey");
return {
useProvide: (i, a) => {
const o = tn({});
return pt(e, o), ht(() => {
I(o, i, a || {});
}), o;
},
useInject: () => Ge(e, t) || {}
};
}
const P1 = Symbol("ContextProps"), $1 = Symbol("InternalContextProps"), kme = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L(() => !0);
const n = U(/* @__PURE__ */ new Map()), r = (o, s) => {
n.value.set(o, s), n.value = new Map(n.value);
}, i = (o) => {
n.value.delete(o), n.value = new Map(n.value);
}, a = vn();
se([e, n], () => {
if (process.env.NODE_ENV !== "production" && e.value && n.value.size > 1) {
Gi(!1, "Form.Item", `FormItem can only collect one field item, you haved set ${[...n.value.values()].map((s) => `\`${s.name}\``).join(", ")} ${n.value.size} field items.
You can set not need to be collected fields into \`a-form-item-rest\``);
let o = a;
for (; o.parent; )
console.warn("at", o.type), o = o.parent;
}
}), pt(P1, t), pt($1, {
addFormItemField: r,
removeFormItemField: i
});
}, M2 = {
id: L(() => {
}),
onFieldBlur: () => {
},
onFieldChange: () => {
},
clearValidate: () => {
}
}, I2 = {
addFormItemField: () => {
},
removeFormItemField: () => {
}
}, ls = () => {
const t = Ge($1, I2), e = Symbol("FormItemFieldKey"), n = vn();
return t.addFormItemField(e, n.type), yt(() => {
t.removeFormItemField(e);
}), pt($1, I2), pt(P1, M2), Ge(P1, M2);
}, lm = te({
compatConfig: {
MODE: 3
},
name: "AFormItemRest",
setup(t, e) {
let {
slots: n
} = e;
return pt($1, I2), pt(P1, M2), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
}), ao = zI({}), A1 = te({
name: "NoFormStatus",
setup(t, e) {
let {
slots: n
} = e;
return ao.useProvide({}), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
});
function Ds(t, e, n) {
return ye({
[`${t}-status-success`]: e === "success",
[`${t}-status-warning`]: e === "warning",
[`${t}-status-error`]: e === "error",
[`${t}-status-validating`]: e === "validating",
[`${t}-has-feedback`]: n
});
}
const y0 = (t, e) => e || t, Lme = (t) => {
const {
componentCls: e
} = t;
return {
[e]: {
display: "inline-flex",
"&-block": {
display: "flex",
width: "100%"
},
"&-vertical": {
flexDirection: "column"
}
}
};
}, Nme = (t) => {
const {
componentCls: e
} = t;
return {
[e]: {
display: "inline-flex",
"&-rtl": {
direction: "rtl"
},
"&-vertical": {
flexDirection: "column"
},
"&-align": {
flexDirection: "column",
"&-center": {
alignItems: "center"
},
"&-start": {
alignItems: "flex-start"
},
"&-end": {
alignItems: "flex-end"
},
"&-baseline": {
alignItems: "baseline"
}
},
[`${e}-item`]: {
"&:empty": {
display: "none"
}
}
}
};
}, Bme = Sn("Space", (t) => [Nme(t), Lme(t)]);
var zme = "[object Symbol]";
function ax(t) {
return typeof t == "symbol" || io(t) && bu(t) == zme;
}
function ox(t, e) {
for (var n = -1, r = t == null ? 0 : t.length, i = Array(r); ++n < r; )
i[n] = e(t[n], n, t);
return i;
}
var Vme = 1 / 0, EN = $a ? $a.prototype : void 0, MN = EN ? EN.toString : void 0;
function JZ(t) {
if (typeof t == "string")
return t;
if (Ti(t))
return ox(t, JZ) + "";
if (ax(t))
return MN ? MN.call(t) : "";
var e = t + "";
return e == "0" && 1 / t == -Vme ? "-0" : e;
}
var Fme = /\s/;
function Wme(t) {
for (var e = t.length; e-- && Fme.test(t.charAt(e)); )
;
return e;
}
var Qme = /^\s+/;
function Hme(t) {
return t && t.slice(0, Wme(t) + 1).replace(Qme, "");
}
var IN = NaN, Gme = /^[-+]0x[0-9a-f]+$/i, jme = /^0b[01]+$/i, Zme = /^0o[0-7]+$/i, Ume = parseInt;
function D2(t) {
if (typeof t == "number")
return t;
if (ax(t))
return IN;
if (xr(t)) {
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
t = xr(e) ? e + "" : e;
}
if (typeof t != "string")
return t === 0 ? t : +t;
t = Hme(t);
var n = jme.test(t);
return n || Zme.test(t) ? Ume(t.slice(2), n ? 2 : 8) : Gme.test(t) ? IN : +t;
}
var DN = 1 / 0, Xme = 17976931348623157e292;
function Yme(t) {
if (!t)
return t === 0 ? t : 0;
if (t = D2(t), t === DN || t === -DN) {
var e = t < 0 ? -1 : 1;
return e * Xme;
}
return t === t ? t : 0;
}
function qme(t) {
var e = Yme(t), n = e % 1;
return e === e ? n ? e - n : e : 0;
}
function VI(t) {
return t;
}
var RN = Object.create, Kme = /* @__PURE__ */ function() {
function t() {
}
return function(e) {
if (!xr(e))
return {};
if (RN)
return RN(e);
t.prototype = e;
var n = new t();
return t.prototype = void 0, n;
};
}();
function eU(t, e, n) {
switch (n.length) {
case 0:
return t.call(e);
case 1:
return t.call(e, n[0]);
case 2:
return t.call(e, n[0], n[1]);
case 3:
return t.call(e, n[0], n[1], n[2]);
}
return t.apply(e, n);
}
function Jme() {
}
function tU(t, e) {
var n = -1, r = t.length;
for (e || (e = Array(r)); ++n < r; )
e[n] = t[n];
return e;
}
var e0e = 800, t0e = 16, n0e = Date.now;
function r0e(t) {
var e = 0, n = 0;
return function() {
var r = n0e(), i = t0e - (r - n);
if (n = r, i > 0) {
if (++e >= e0e)
return arguments[0];
} else
e = 0;
return t.apply(void 0, arguments);
};
}
function i0e(t) {
return function() {
return t;
};
}
var E1 = function() {
try {
var t = If(Object, "defineProperty");
return t({}, "", {}), t;
} catch {
}
}(), a0e = E1 ? function(t, e) {
return E1(t, "toString", {
configurable: !0,
enumerable: !1,
value: i0e(e),
writable: !0
});
} : VI, nU = r0e(a0e);
function o0e(t, e) {
for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
;
return t;
}
function rU(t, e, n, r) {
for (var i = t.length, a = n + -1; ++a < i; )
if (e(t[a], a, t))
return a;
return -1;
}
function s0e(t) {
return t !== t;
}
function l0e(t, e, n) {
for (var r = n - 1, i = t.length; ++r < i; )
if (t[r] === e)
return r;
return -1;
}
function u0e(t, e, n) {
return e === e ? l0e(t, e, n) : rU(t, s0e, n);
}
function iU(t, e) {
var n = t == null ? 0 : t.length;
return !!n && u0e(t, e, 0) > -1;
}
function FI(t, e, n) {
e == "__proto__" && E1 ? E1(t, e, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : t[e] = n;
}
var c0e = Object.prototype, f0e = c0e.hasOwnProperty;
function WI(t, e, n) {
var r = t[e];
(!(f0e.call(t, e) && v0(r, n)) || n === void 0 && !(e in t)) && FI(t, e, n);
}
function dp(t, e, n, r) {
var i = !n;
n || (n = {});
for (var a = -1, o = e.length; ++a < o; ) {
var s = e[a], l = void 0;
l === void 0 && (l = t[s]), i ? FI(n, s, l) : WI(n, s, l);
}
return n;
}
var kN = Math.max;
function aU(t, e, n) {
return e = kN(e === void 0 ? t.length - 1 : e, 0), function() {
for (var r = arguments, i = -1, a = kN(r.length - e, 0), o = Array(a); ++i < a; )
o[i] = r[e + i];
i = -1;
for (var s = Array(e + 1); ++i < e; )
s[i] = r[i];
return s[e] = n(o), eU(t, this, s);
};
}
function QI(t, e) {
return nU(aU(t, e, VI), t + "");
}
function d0e(t, e, n) {
if (!xr(n))
return !1;
var r = typeof e;
return (r == "number" ? fp(n) && ZS(e, n.length) : r == "string" && e in n) ? v0(n[e], t) : !1;
}
function h0e(t) {
return QI(function(e, n) {
var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
for (a = t.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && d0e(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), e = Object(e); ++r < i; ) {
var s = n[r];
s && t(e, s, r, a);
}
return e;
});
}
function p0e(t) {
var e = [];
if (t != null)
for (var n in Object(t))
e.push(n);
return e;
}
var v0e = Object.prototype, g0e = v0e.hasOwnProperty;
function m0e(t) {
if (!xr(t))
return p0e(t);
var e = YS(t), n = [];
for (var r in t)
r == "constructor" && (e || !g0e.call(t, r)) || n.push(r);
return n;
}
function b0(t) {
return fp(t) ? TZ(t, !0) : m0e(t);
}
var y0e = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, b0e = /^\w*$/;
function HI(t, e) {
if (Ti(t))
return !1;
var n = typeof t;
return n == "number" || n == "symbol" || n == "boolean" || t == null || ax(t) ? !0 : b0e.test(t) || !y0e.test(t) || e != null && t in Object(e);
}
var _0e = "Expected a function";
function GI(t, e) {
if (typeof t != "function" || e != null && typeof e != "function")
throw new TypeError(_0e);
var n = function() {
var r = arguments, i = e ? e.apply(this, r) : r[0], a = n.cache;
if (a.has(i))
return a.get(i);
var o = t.apply(this, r);
return n.cache = a.set(i, o) || a, o;
};
return n.cache = new (GI.Cache || al)(), n;
}
GI.Cache = al;
var O0e = 500;
function S0e(t) {
var e = GI(t, function(r) {
return n.size === O0e && n.clear(), r;
}), n = e.cache;
return e;
}
var x0e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, w0e = /\\(\\)?/g, C0e = S0e(function(t) {
var e = [];
return t.charCodeAt(0) === 46 && e.push(""), t.replace(x0e, function(n, r, i, a) {
e.push(i ? a.replace(w0e, "$1") : r || n);
}), e;
});
function T0e(t) {
return t == null ? "" : JZ(t);
}
function hp(t, e) {
return Ti(t) ? t : HI(t, e) ? [t] : C0e(T0e(t));
}
var P0e = 1 / 0;
function pp(t) {
if (typeof t == "string" || ax(t))
return t;
var e = t + "";
return e == "0" && 1 / t == -P0e ? "-0" : e;
}
function sx(t, e) {
e = hp(e, t);
for (var n = 0, r = e.length; t != null && n < r; )
t = t[pp(e[n++])];
return n && n == r ? t : void 0;
}
function kt(t, e, n) {
var r = t == null ? void 0 : sx(t, e);
return r === void 0 ? n : r;
}
var LN = $a ? $a.isConcatSpreadable : void 0;
function $0e(t) {
return Ti(t) || Th(t) || !!(LN && t && t[LN]);
}
function A0e(t, e, n, r, i) {
var a = -1, o = t.length;
for (n || (n = $0e), i || (i = []); ++a < o; ) {
var s = t[a];
n(s) ? SI(i, s) : i[i.length] = s;
}
return i;
}
function E0e(t) {
var e = t == null ? 0 : t.length;
return e ? A0e(t) : [];
}
function oU(t) {
return nU(aU(t, void 0, E0e), t + "");
}
var jI = PZ(Object.getPrototypeOf, Object), M0e = "[object Object]", I0e = Function.prototype, D0e = Object.prototype, sU = I0e.toString, R0e = D0e.hasOwnProperty, k0e = sU.call(Object);
function ZI(t) {
if (!io(t) || bu(t) != M0e)
return !1;
var e = jI(t);
if (e === null)
return !0;
var n = R0e.call(e, "constructor") && e.constructor;
return typeof n == "function" && n instanceof n && sU.call(n) == k0e;
}
function L0e(t, e, n) {
var r = -1, i = t.length;
e < 0 && (e = -e > i ? 0 : i + e), n = n > i ? i : n, n < 0 && (n += i), i = e > n ? 0 : n - e >>> 0, e >>>= 0;
for (var a = Array(i); ++r < i; )
a[r] = t[r + e];
return a;
}
function N0e(t, e) {
return t && dp(e, g0(e), t);
}
function B0e(t, e) {
return t && dp(e, b0(e), t);
}
var lU = typeof exports == "object" && exports && !exports.nodeType && exports, NN = lU && typeof module == "object" && module && !module.nodeType && module, z0e = NN && NN.exports === lU, BN = z0e ? po.Buffer : void 0, zN = BN ? BN.allocUnsafe : void 0;
function uU(t, e) {
if (e)
return t.slice();
var n = t.length, r = zN ? zN(n) : new t.constructor(n);
return t.copy(r), r;
}
function V0e(t, e) {
return dp(t, xI(t), e);
}
var F0e = Object.getOwnPropertySymbols, cU = F0e ? function(t) {
for (var e = []; t; )
SI(e, xI(t)), t = jI(t);
return e;
} : SZ;
function W0e(t, e) {
return dp(t, cU(t), e);
}
function fU(t) {
return OZ(t, b0, cU);
}
var Q0e = Object.prototype, H0e = Q0e.hasOwnProperty;
function G0e(t) {
var e = t.length, n = new t.constructor(e);
return e && typeof t[0] == "string" && H0e.call(t, "index") && (n.index = t.index, n.input = t.input), n;
}
function UI(t) {
var e = new t.constructor(t.byteLength);
return new T1(e).set(new T1(t)), e;
}
function j0e(t, e) {
var n = e ? UI(t.buffer) : t.buffer;
return new t.constructor(n, t.byteOffset, t.byteLength);
}
var Z0e = /\w*$/;
function U0e(t) {
var e = new t.constructor(t.source, Z0e.exec(t));
return e.lastIndex = t.lastIndex, e;
}
var VN = $a ? $a.prototype : void 0, FN = VN ? VN.valueOf : void 0;
function X0e(t) {
return FN ? Object(FN.call(t)) : {};
}
function dU(t, e) {
var n = e ? UI(t.buffer) : t.buffer;
return new t.constructor(n, t.byteOffset, t.length);
}
var Y0e = "[object Boolean]", q0e = "[object Date]", K0e = "[object Map]", J0e = "[object Number]", eye = "[object RegExp]", tye = "[object Set]", nye = "[object String]", rye = "[object Symbol]", iye = "[object ArrayBuffer]", aye = "[object DataView]", oye = "[object Float32Array]", sye = "[object Float64Array]", lye = "[object Int8Array]", uye = "[object Int16Array]", cye = "[object Int32Array]", fye = "[object Uint8Array]", dye = "[object Uint8ClampedArray]", hye = "[object Uint16Array]", pye = "[object Uint32Array]";
function vye(t, e, n) {
var r = t.constructor;
switch (e) {
case iye:
return UI(t);
case Y0e:
case q0e:
return new r(+t);
case aye:
return j0e(t, n);
case oye:
case sye:
case lye:
case uye:
case cye:
case fye:
case dye:
case hye:
case pye:
return dU(t, n);
case K0e:
return new r();
case J0e:
case nye:
return new r(t);
case eye:
return U0e(t);
case tye:
return new r();
case rye:
return X0e(t);
}
}
function hU(t) {
return typeof t.constructor == "function" && !YS(t) ? Kme(jI(t)) : {};
}
var gye = "[object Map]";
function mye(t) {
return io(t) && pa(t) == gye;
}
var WN = $h && $h.isMap, yye = WN ? US(WN) : mye, bye = "[object Set]";
function _ye(t) {
return io(t) && pa(t) == bye;
}
var QN = $h && $h.isSet, Oye = QN ? US(QN) : _ye, Sye = 1, xye = 2, wye = 4, pU = "[object Arguments]", Cye = "[object Array]", Tye = "[object Boolean]", Pye = "[object Date]", $ye = "[object Error]", vU = "[object Function]", Aye = "[object GeneratorFunction]", Eye = "[object Map]", Mye = "[object Number]", gU = "[object Object]", Iye = "[object RegExp]", Dye = "[object Set]", Rye = "[object String]", kye = "[object Symbol]", Lye = "[object WeakMap]", Nye = "[object ArrayBuffer]", Bye = "[object DataView]", zye = "[object Float32Array]", Vye = "[object Float64Array]", Fye = "[object Int8Array]", Wye = "[object Int16Array]", Qye = "[object Int32Array]", Hye = "[object Uint8Array]", Gye = "[object Uint8ClampedArray]", jye = "[object Uint16Array]", Zye = "[object Uint32Array]", rn = {};
rn[pU] = rn[Cye] = rn[Nye] = rn[Bye] = rn[Tye] = rn[Pye] = rn[zye] = rn[Vye] = rn[Fye] = rn[Wye] = rn[Qye] = rn[Eye] = rn[Mye] = rn[gU] = rn[Iye] = rn[Dye] = rn[Rye] = rn[kye] = rn[Hye] = rn[Gye] = rn[jye] = rn[Zye] = !0;
rn[$ye] = rn[vU] = rn[Lye] = !1;
function pg(t, e, n, r, i, a) {
var o, s = e & Sye, l = e & xye, u = e & wye;
if (n && (o = i ? n(t, r, i, a) : n(t)), o !== void 0)
return o;
if (!xr(t))
return t;
var c = Ti(t);
if (c) {
if (o = G0e(t), !s)
return tU(t, o);
} else {
var f = pa(t), d = f == vU || f == Aye;
if (Ph(t))
return uU(t, s);
if (f == gU || f == pU || d && !i) {
if (o = l || d ? {} : hU(t), !s)
return l ? W0e(t, B0e(o, t)) : V0e(t, N0e(o, t));
} else {
if (!rn[f])
return i ? t : {};
o = vye(t, f, s);
}
}
a || (a = new eo());
var h = a.get(t);
if (h)
return h;
a.set(t, o), Oye(t) ? t.forEach(function(g) {
o.add(pg(g, e, n, g, t, a));
}) : yye(t) && t.forEach(function(g, m) {
o.set(m, pg(g, e, n, m, t, a));
});
var p = u ? l ? fU : w2 : l ? b0 : g0, v = c ? void 0 : p(t);
return o0e(v || t, function(g, m) {
v && (m = g, g = t[m]), WI(o, m, pg(g, e, n, m, t, a));
}), o;
}
var Uye = 1, Xye = 4;
function Zc(t) {
return pg(t, Uye | Xye);
}
var Yye = 1, qye = 2;
function Kye(t, e, n, r) {
var i = n.length, a = i;
if (t == null)
return !a;
for (t = Object(t); i--; ) {
var o = n[i];
if (o[2] ? o[1] !== t[o[0]] : !(o[0] in t))
return !1;
}
for (; ++i < a; ) {
o = n[i];
var s = o[0], l = t[s], u = o[1];
if (o[2]) {
if (l === void 0 && !(s in t))
return !1;
} else {
var c = new eo(), f;
if (!(f === void 0 ? qS(u, l, Yye | qye, r, c) : f))
return !1;
}
}
return !0;
}
function mU(t) {
return t === t && !xr(t);
}
function Jye(t) {
for (var e = g0(t), n = e.length; n--; ) {
var r = e[n], i = t[r];
e[n] = [r, i, mU(i)];
}
return e;
}
function yU(t, e) {
return function(n) {
return n == null ? !1 : n[t] === e && (e !== void 0 || t in Object(n));
};
}
function ebe(t) {
var e = Jye(t);
return e.length == 1 && e[0][2] ? yU(e[0][0], e[0][1]) : function(n) {
return n === t || Kye(n, t, e);
};
}
function tbe(t, e) {
return t != null && e in Object(t);
}
function nbe(t, e, n) {
e = hp(e, t);
for (var r = -1, i = e.length, a = !1; ++r < i; ) {
var o = pp(e[r]);
if (!(a = t != null && n(t, o)))
break;
t = t[o];
}
return a || ++r != i ? a : (i = t == null ? 0 : t.length, !!i && wI(i) && ZS(o, i) && (Ti(t) || Th(t)));
}
function bU(t, e) {
return t != null && nbe(t, e, tbe);
}
var rbe = 1, ibe = 2;
function abe(t, e) {
return HI(t) && mU(e) ? yU(pp(t), e) : function(n) {
var r = kt(n, t);
return r === void 0 && r === e ? bU(n, t) : qS(e, r, rbe | ibe);
};
}
function obe(t) {
return function(e) {
return e == null ? void 0 : e[t];
};
}
function sbe(t) {
return function(e) {
return sx(e, t);
};
}
function lbe(t) {
return HI(t) ? obe(pp(t)) : sbe(t);
}
function _U(t) {
return typeof t == "function" ? t : t == null ? VI : typeof t == "object" ? Ti(t) ? abe(t[0], t[1]) : ebe(t) : lbe(t);
}
function ube(t) {
return function(e, n, r) {
for (var i = -1, a = Object(e), o = r(e), s = o.length; s--; ) {
var l = o[++i];
if (n(a[l], l, a) === !1)
break;
}
return e;
};
}
var cbe = ube(), yC = function() {
return po.Date.now();
}, fbe = "Expected a function", dbe = Math.max, hbe = Math.min;
function XI(t, e, n) {
var r, i, a, o, s, l, u = 0, c = !1, f = !1, d = !0;
if (typeof t != "function")
throw new TypeError(fbe);
e = D2(e) || 0, xr(n) && (c = !!n.leading, f = "maxWait" in n, a = f ? dbe(D2(n.maxWait) || 0, e) : a, d = "trailing" in n ? !!n.trailing : d);
function h(S) {
var x = r, C = i;
return r = i = void 0, u = S, o = t.apply(C, x), o;
}
function p(S) {
return u = S, s = setTimeout(m, e), c ? h(S) : o;
}
function v(S) {
var x = S - l, C = S - u, T = e - x;
return f ? hbe(T, a - C) : T;
}
function g(S) {
var x = S - l, C = S - u;
return l === void 0 || x >= e || x < 0 || f && C >= a;
}
function m() {
var S = yC();
if (g(S))
return y(S);
s = setTimeout(m, v(S));
}
function y(S) {
return s = void 0, d && r ? h(S) : (r = i = void 0, o);
}
function b() {
s !== void 0 && clearTimeout(s), u = 0, r = l = i = s = void 0;
}
function _() {
return s === void 0 ? o : y(yC());
}
function O() {
var S = yC(), x = g(S);
if (r = arguments, i = this, l = S, x) {
if (s === void 0)
return p(l);
if (f)
return clearTimeout(s), s = setTimeout(m, e), h(l);
}
return s === void 0 && (s = setTimeout(m, e)), o;
}
return O.cancel = b, O.flush = _, O;
}
function R2(t, e, n) {
(n !== void 0 && !v0(t[e], n) || n === void 0 && !(e in t)) && FI(t, e, n);
}
function OU(t) {
return io(t) && fp(t);
}
function k2(t, e) {
if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
return t[e];
}
function pbe(t) {
return dp(t, b0(t));
}
function vbe(t, e, n, r, i, a, o) {
var s = k2(t, n), l = k2(e, n), u = o.get(l);
if (u) {
R2(t, n, u);
return;
}
var c = a ? a(s, l, n + "", t, e, o) : void 0, f = c === void 0;
if (f) {
var d = Ti(l), h = !d && Ph(l), p = !d && !h && XS(l);
c = l, d || h || p ? Ti(s) ? c = s : OU(s) ? c = tU(s) : h ? (f = !1, c = uU(l, !0)) : p ? (f = !1, c = dU(l, !0)) : c = [] : ZI(l) || Th(l) ? (c = s, Th(s) ? c = pbe(s) : (!xr(s) || _I(s)) && (c = hU(l))) : f = !1;
}
f && (o.set(l, c), i(c, l, r, a, o), o.delete(l)), R2(t, n, c);
}
function YI(t, e, n, r, i) {
t !== e && cbe(e, function(a, o) {
if (i || (i = new eo()), xr(a))
vbe(t, e, o, n, YI, r, i);
else {
var s = r ? r(k2(t, o), a, o + "", t, e, i) : void 0;
s === void 0 && (s = a), R2(t, o, s);
}
}, b0);
}
function SU(t, e, n, r, i, a) {
return xr(t) && xr(e) && (a.set(e, t), YI(t, e, void 0, SU, a), a.delete(e)), t;
}
var gbe = h0e(function(t, e, n, r) {
YI(t, e, n, r);
}), xU = QI(function(t) {
return t.push(void 0, SU), eU(gbe, void 0, t);
});
function mbe(t) {
var e = t == null ? 0 : t.length;
return e ? t[e - 1] : void 0;
}
function ybe(t) {
return function(e, n, r) {
var i = Object(e);
if (!fp(e)) {
var a = _U(n);
e = g0(e), n = function(s) {
return a(i[s], s, i);
};
}
var o = t(e, n, r);
return o > -1 ? i[a ? e[o] : o] : void 0;
};
}
var bbe = Math.max;
function _be(t, e, n) {
var r = t == null ? 0 : t.length;
if (!r)
return -1;
var i = n == null ? 0 : qme(n);
return i < 0 && (i = bbe(r + i, 0)), rU(t, _U(e), i);
}
var Obe = ybe(_be);
function M1(t) {
for (var e = -1, n = t == null ? 0 : t.length, r = {}; ++e < n; ) {
var i = t[e];
r[i[0]] = i[1];
}
return r;
}
var Sbe = Math.min;
function xbe(t, e, n) {
for (var r = iU, i = t[0].length, a = t.length, o = a, s = Array(a), l = 1 / 0, u = []; o--; ) {
var c = t[o];
o && e && (c = ox(c, US(e))), l = Sbe(c.length, l), s[o] = i >= 120 && c.length >= 120 ? new Ch(o && c) : void 0;
}
c = t[0];
var f = -1, d = s[0];
e:
for (; ++f < i && u.length < l; ) {
var h = c[f], p = h;
if (h = h !== 0 ? h : 0, !(d ? C1(d, p) : r(u, p))) {
for (o = a; --o; ) {
var v = s[o];
if (!(v ? C1(v, p) : r(t[o], p)))
continue e;
}
d && d.push(p), u.push(h);
}
}
return u;
}
function wbe(t) {
return OU(t) ? t : [];
}
var Cbe = QI(function(t) {
var e = ox(t, wbe);
return e.length && e[0] === t[0] ? xbe(e) : [];
});
function Tbe(t, e) {
return e.length < 2 ? t : sx(t, L0e(e, 0, -1));
}
var Pbe = "[object Map]", $be = "[object Set]", Abe = Object.prototype, Ebe = Abe.hasOwnProperty;
function wU(t) {
if (t == null)
return !0;
if (fp(t) && (Ti(t) || typeof t == "string" || typeof t.splice == "function" || Ph(t) || XS(t) || Th(t)))
return !t.length;
var e = pa(t);
if (e == Pbe || e == $be)
return !t.size;
if (YS(t))
return !$Z(t).length;
for (var n in t)
if (Ebe.call(t, n))
return !1;
return !0;
}
var Mbe = "[object Number]";
function Ibe(t) {
return typeof t == "number" || io(t) && bu(t) == Mbe;
}
function Gl(t) {
return t == null;
}
function Dbe(t) {
return t === void 0;
}
function Rbe(t, e) {
return e = hp(e, t), t = Tbe(t, e), t == null || delete t[pp(mbe(e))];
}
function kbe(t) {
return ZI(t) ? void 0 : t;
}
var Lbe = 1, Nbe = 2, Bbe = 4, CU = oU(function(t, e) {
var n = {};
if (t == null)
return n;
var r = !1;
e = ox(e, function(a) {
return a = hp(a, t), r || (r = a.length > 1), a;
}), dp(t, fU(t), n), r && (n = pg(n, Lbe | Nbe | Bbe, kbe));
for (var i = e.length; i--; )
Rbe(n, e[i]);
return n;
});
function TU(t, e, n, r) {
if (!xr(t))
return t;
e = hp(e, t);
for (var i = -1, a = e.length, o = a - 1, s = t; s != null && ++i < a; ) {
var l = pp(e[i]), u = n;
if (l === "__proto__" || l === "constructor" || l === "prototype")
return t;
if (i != o) {
var c = s[l];
u = void 0, u === void 0 && (u = xr(c) ? c : ZS(e[i + 1]) ? [] : {});
}
WI(s, l, u), s = s[l];
}
return t;
}
function zbe(t, e, n) {
for (var r = -1, i = e.length, a = {}; ++r < i; ) {
var o = e[r], s = sx(t, o);
n(s, o) && TU(a, hp(o, t), s);
}
return a;
}
function Vbe(t, e) {
return zbe(t, e, function(n, r) {
return bU(t, r);
});
}
var um = oU(function(t, e) {
return t == null ? {} : Vbe(t, e);
});
function qI(t, e, n) {
return t == null ? t : TU(t, e, n);
}
var Fbe = "Expected a function";
function Wbe(t, e, n) {
var r = !0, i = !0;
if (typeof t != "function")
throw new TypeError(Fbe);
return xr(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), XI(t, e, {
leading: r,
maxWait: e,
trailing: i
});
}
var Qbe = 1 / 0, Hbe = Xd && 1 / OI(new Xd([, -0]))[1] == Qbe ? function(t) {
return new Xd(t);
} : Jme, Gbe = 200;
function jbe(t, e, n) {
var r = -1, i = iU, a = t.length, o = !0, s = [], l = s;
if (a >= Gbe) {
var u = Hbe(t);
if (u)
return OI(u);
o = !1, i = C1, l = new Ch();
} else
l = s;
e:
for (; ++r < a; ) {
var c = t[r], f = c;
if (c = c !== 0 ? c : 0, o && f === f) {
for (var d = l.length; d--; )
if (l[d] === f)
continue e;
s.push(c);
} else i(l, f, n) || (l !== s && l.push(f), s.push(c));
}
return s;
}
function bC(t) {
return t && t.length ? jbe(t) : [];
}
const Zbe = () => ({
compactSize: String,
compactDirection: Y.oneOf(ru("horizontal", "vertical")).def("horizontal"),
isFirstItem: nt(),
isLastItem: nt()
}), lx = zI(null), ux = (t, e) => {
const n = lx.useInject(), r = L(() => {
if (!n || wU(n)) return "";
const {
compactDirection: i,
isFirstItem: a,
isLastItem: o
} = n, s = i === "vertical" ? "-vertical-" : "-";
return ye({
[`${t.value}-compact${s}item`]: !0,
[`${t.value}-compact${s}first-item`]: a,
[`${t.value}-compact${s}last-item`]: o,
[`${t.value}-compact${s}item-rtl`]: e.value === "rtl"
});
});
return {
compactSize: L(() => n == null ? void 0 : n.compactSize),
compactDirection: L(() => n == null ? void 0 : n.compactDirection),
compactItemClassnames: r
};
}, I1 = te({
name: "NoCompactStyle",
setup(t, e) {
let {
slots: n
} = e;
return lx.useProvide(null), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
}), Ube = () => ({
prefixCls: String,
size: {
type: String
},
direction: Y.oneOf(ru("horizontal", "vertical")).def("horizontal"),
align: Y.oneOf(ru("start", "end", "center", "baseline")),
block: {
type: Boolean,
default: void 0
}
}), Xbe = te({
name: "CompactItem",
props: Zbe(),
setup(t, e) {
let {
slots: n
} = e;
return lx.useProvide(t), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
});
te({
name: "ASpaceCompact",
inheritAttrs: !1,
props: Ube(),
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const {
prefixCls: i,
direction: a
} = It("space-compact", t), o = lx.useInject(), [s, l] = Bme(i), u = L(() => ye(i.value, l.value, {
[`${i.value}-rtl`]: a.value === "rtl",
[`${i.value}-block`]: t.block,
[`${i.value}-vertical`]: t.direction === "vertical"
}));
return () => {
var c;
const f = Yn(((c = r.default) === null || c === void 0 ? void 0 : c.call(r)) || []);
return f.length === 0 ? null : s(M("div", j(j({}, n), {}, {
class: [u.value, n.class]
}), [f.map((d, h) => {
var p;
const v = d && d.key || `${i.value}-item-${h}`, g = !o || wU(o);
return M(Xbe, {
key: v,
compactSize: (p = t.size) !== null && p !== void 0 ? p : "middle",
compactDirection: t.direction,
isFirstItem: h === 0 && (g || (o == null ? void 0 : o.isFirstItem)),
isLastItem: h === f.length - 1 && (g || (o == null ? void 0 : o.isLastItem))
}, {
default: () => [d]
});
})]));
};
}
});
const Ybe = (t) => ({
animationDuration: t,
animationFillMode: "both"
}), qbe = (t) => ({
animationDuration: t,
animationFillMode: "both"
}), cx = function(t, e, n, r) {
const a = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
return {
[`
${a}${t}-enter,
${a}${t}-appear
`]: I(I({}, Ybe(r)), {
animationPlayState: "paused"
}),
[`${a}${t}-leave`]: I(I({}, qbe(r)), {
animationPlayState: "paused"
}),
[`
${a}${t}-enter${t}-enter-active,
${a}${t}-appear${t}-appear-active
`]: {
animationName: e,
animationPlayState: "running"
},
[`${a}${t}-leave${t}-leave-active`]: {
animationName: n,
animationPlayState: "running",
pointerEvents: "none"
}
};
}, Kbe = new Ot("antFadeIn", {
"0%": {
opacity: 0
},
"100%": {
opacity: 1
}
}), Jbe = new Ot("antFadeOut", {
"0%": {
opacity: 1
},
"100%": {
opacity: 0
}
}), PU = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
const {
antCls: n
} = t, r = `${n}-fade`, i = e ? "&" : "";
return [cx(r, Kbe, Jbe, t.motionDurationMid, e), {
[`
${i}${r}-enter,
${i}${r}-appear
`]: {
opacity: 0,
animationTimingFunction: "linear"
},
[`${i}${r}-leave`]: {
animationTimingFunction: "linear"
}
}];
}, e_e = new Ot("antMoveDownIn", {
"0%": {
transform: "translate3d(0, 100%, 0)",
transformOrigin: "0 0",
opacity: 0
},
"100%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
}
}), t_e = new Ot("antMoveDownOut", {
"0%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
},
"100%": {
transform: "translate3d(0, 100%, 0)",
transformOrigin: "0 0",
opacity: 0
}
}), n_e = new Ot("antMoveLeftIn", {
"0%": {
transform: "translate3d(-100%, 0, 0)",
transformOrigin: "0 0",
opacity: 0
},
"100%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
}
}), r_e = new Ot("antMoveLeftOut", {
"0%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
},
"100%": {
transform: "translate3d(-100%, 0, 0)",
transformOrigin: "0 0",
opacity: 0
}
}), i_e = new Ot("antMoveRightIn", {
"0%": {
transform: "translate3d(100%, 0, 0)",
transformOrigin: "0 0",
opacity: 0
},
"100%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
}
}), a_e = new Ot("antMoveRightOut", {
"0%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
},
"100%": {
transform: "translate3d(100%, 0, 0)",
transformOrigin: "0 0",
opacity: 0
}
}), o_e = new Ot("antMoveUpIn", {
"0%": {
transform: "translate3d(0, -100%, 0)",
transformOrigin: "0 0",
opacity: 0
},
"100%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
}
}), s_e = new Ot("antMoveUpOut", {
"0%": {
transform: "translate3d(0, 0, 0)",
transformOrigin: "0 0",
opacity: 1
},
"100%": {
transform: "translate3d(0, -100%, 0)",
transformOrigin: "0 0",
opacity: 0
}
}), l_e = {
"move-up": {
inKeyframes: o_e,
outKeyframes: s_e
},
"move-down": {
inKeyframes: e_e,
outKeyframes: t_e
},
"move-left": {
inKeyframes: n_e,
outKeyframes: r_e
},
"move-right": {
inKeyframes: i_e,
outKeyframes: a_e
}
}, HN = (t, e) => {
const {
antCls: n
} = t, r = `${n}-${e}`, {
inKeyframes: i,
outKeyframes: a
} = l_e[e];
return [cx(r, i, a, t.motionDurationMid), {
[`
${r}-enter,
${r}-appear
`]: {
opacity: 0,
animationTimingFunction: t.motionEaseOutCirc
},
[`${r}-leave`]: {
animationTimingFunction: t.motionEaseInOutCirc
}
}];
}, $U = new Ot("antSlideUpIn", {
"0%": {
transform: "scaleY(0.8)",
transformOrigin: "0% 0%",
opacity: 0
},
"100%": {
transform: "scaleY(1)",
transformOrigin: "0% 0%",
opacity: 1
}
}), AU = new Ot("antSlideUpOut", {
"0%": {
transform: "scaleY(1)",
transformOrigin: "0% 0%",
opacity: 1
},
"100%": {
transform: "scaleY(0.8)",
transformOrigin: "0% 0%",
opacity: 0
}
}), EU = new Ot("antSlideDownIn", {
"0%": {
transform: "scaleY(0.8)",
transformOrigin: "100% 100%",
opacity: 0
},
"100%": {
transform: "scaleY(1)",
transformOrigin: "100% 100%",
opacity: 1
}
}), MU = new Ot("antSlideDownOut", {
"0%": {
transform: "scaleY(1)",
transformOrigin: "100% 100%",
opacity: 1
},
"100%": {
transform: "scaleY(0.8)",
transformOrigin: "100% 100%",
opacity: 0
}
}), u_e = new Ot("antSlideLeftIn", {
"0%": {
transform: "scaleX(0.8)",
transformOrigin: "0% 0%",
opacity: 0
},
"100%": {
transform: "scaleX(1)",
transformOrigin: "0% 0%",
opacity: 1
}
}), c_e = new Ot("antSlideLeftOut", {
"0%": {
transform: "scaleX(1)",
transformOrigin: "0% 0%",
opacity: 1
},
"100%": {
transform: "scaleX(0.8)",
transformOrigin: "0% 0%",
opacity: 0
}
}), f_e = new Ot("antSlideRightIn", {
"0%": {
transform: "scaleX(0.8)",
transformOrigin: "100% 0%",
opacity: 0
},
"100%": {
transform: "scaleX(1)",
transformOrigin: "100% 0%",
opacity: 1
}
}), d_e = new Ot("antSlideRightOut", {
"0%": {
transform: "scaleX(1)",
transformOrigin: "100% 0%",
opacity: 1
},
"100%": {
transform: "scaleX(0.8)",
transformOrigin: "100% 0%",
opacity: 0
}
}), h_e = {
"slide-up": {
inKeyframes: $U,
outKeyframes: AU
},
"slide-down": {
inKeyframes: EU,
outKeyframes: MU
},
"slide-left": {
inKeyframes: u_e,
outKeyframes: c_e
},
"slide-right": {
inKeyframes: f_e,
outKeyframes: d_e
}
}, Eh = (t, e) => {
const {
antCls: n
} = t, r = `${n}-${e}`, {
inKeyframes: i,
outKeyframes: a
} = h_e[e];
return [cx(r, i, a, t.motionDurationMid), {
[`
${r}-enter,
${r}-appear
`]: {
transform: "scale(0)",
transformOrigin: "0% 0%",
opacity: 0,
animationTimingFunction: t.motionEaseOutQuint
},
[`${r}-leave`]: {
animationTimingFunction: t.motionEaseInQuint
}
}];
}, KI = new Ot("antZoomIn", {
"0%": {
transform: "scale(0.2)",
opacity: 0
},
"100%": {
transform: "scale(1)",
opacity: 1
}
}), p_e = new Ot("antZoomOut", {
"0%": {
transform: "scale(1)"
},
"100%": {
transform: "scale(0.2)",
opacity: 0
}
}), GN = new Ot("antZoomBigIn", {
"0%": {
transform: "scale(0.8)",
opacity: 0
},
"100%": {
transform: "scale(1)",
opacity: 1
}
}), jN = new Ot("antZoomBigOut", {
"0%": {
transform: "scale(1)"
},
"100%": {
transform: "scale(0.8)",
opacity: 0
}
}), v_e = new Ot("antZoomUpIn", {
"0%": {
transform: "scale(0.8)",
transformOrigin: "50% 0%",
opacity: 0
},
"100%": {
transform: "scale(1)",
transformOrigin: "50% 0%"
}
}), g_e = new Ot("antZoomUpOut", {
"0%": {
transform: "scale(1)",
transformOrigin: "50% 0%"
},
"100%": {
transform: "scale(0.8)",
transformOrigin: "50% 0%",
opacity: 0
}
}), m_e = new Ot("antZoomLeftIn", {
"0%": {
transform: "scale(0.8)",
transformOrigin: "0% 50%",
opacity: 0
},
"100%": {
transform: "scale(1)",
transformOrigin: "0% 50%"
}
}), y_e = new Ot("antZoomLeftOut", {
"0%": {
transform: "scale(1)",
transformOrigin: "0% 50%"
},
"100%": {
transform: "scale(0.8)",
transformOrigin: "0% 50%",
opacity: 0
}
}), b_e = new Ot("antZoomRightIn", {
"0%": {
transform: "scale(0.8)",
transformOrigin: "100% 50%",
opacity: 0
},
"100%": {
transform: "scale(1)",
transformOrigin: "100% 50%"
}
}), __e = new Ot("antZoomRightOut", {
"0%": {
transform: "scale(1)",
transformOrigin: "100% 50%"
},
"100%": {
transform: "scale(0.8)",
transformOrigin: "100% 50%",
opacity: 0
}
}), O_e = new Ot("antZoomDownIn", {
"0%": {
transform: "scale(0.8)",
transformOrigin: "50% 100%",
opacity: 0
},
"100%": {
transform: "scale(1)",
transformOrigin: "50% 100%"
}
}), S_e = new Ot("antZoomDownOut", {
"0%": {
transform: "scale(1)",
transformOrigin: "50% 100%"
},
"100%": {
transform: "scale(0.8)",
transformOrigin: "50% 100%",
opacity: 0
}
}), x_e = {
zoom: {
inKeyframes: KI,
outKeyframes: p_e
},
"zoom-big": {
inKeyframes: GN,
outKeyframes: jN
},
"zoom-big-fast": {
inKeyframes: GN,
outKeyframes: jN
},
"zoom-left": {
inKeyframes: m_e,
outKeyframes: y_e
},
"zoom-right": {
inKeyframes: b_e,
outKeyframes: __e
},
"zoom-up": {
inKeyframes: v_e,
outKeyframes: g_e
},
"zoom-down": {
inKeyframes: O_e,
outKeyframes: S_e
}
}, fx = (t, e) => {
const {
antCls: n
} = t, r = `${n}-${e}`, {
inKeyframes: i,
outKeyframes: a
} = x_e[e];
return [cx(r, i, a, e === "zoom-big-fast" ? t.motionDurationFast : t.motionDurationMid), {
[`
${r}-enter,
${r}-appear
`]: {
transform: "scale(0)",
opacity: 0,
animationTimingFunction: t.motionEaseOutCirc,
"&-prepare": {
transform: "none"
}
},
[`${r}-leave`]: {
animationTimingFunction: t.motionEaseInOutCirc
}
}];
}, JI = (t) => ({
[t.componentCls]: {
// For common/openAnimation
[`${t.antCls}-motion-collapse-legacy`]: {
overflow: "hidden",
"&-active": {
transition: `height ${t.motionDurationMid} ${t.motionEaseInOut},
opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`
}
},
[`${t.antCls}-motion-collapse`]: {
overflow: "hidden",
transition: `height ${t.motionDurationMid} ${t.motionEaseInOut},
opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`
}
}
}), ZN = (t) => {
const {
controlPaddingHorizontal: e
} = t;
return {
position: "relative",
display: "block",
minHeight: t.controlHeight,
padding: `${(t.controlHeight - t.fontSize * t.lineHeight) / 2}px ${e}px`,
color: t.colorText,
fontWeight: "normal",
fontSize: t.fontSize,
lineHeight: t.lineHeight,
boxSizing: "border-box"
};
}, w_e = (t) => {
const {
antCls: e,
componentCls: n
} = t, r = `${n}-item`;
return [
{
[`${n}-dropdown`]: I(I({}, nn(t)), {
position: "absolute",
top: -9999,
zIndex: t.zIndexPopup,
boxSizing: "border-box",
padding: t.paddingXXS,
overflow: "hidden",
fontSize: t.fontSize,
// Fix select render lag of long text in chrome
// https://github.com/ant-design/ant-design/issues/11456
// https://github.com/ant-design/ant-design/issues/11843
fontVariant: "initial",
backgroundColor: t.colorBgElevated,
borderRadius: t.borderRadiusLG,
outline: "none",
boxShadow: t.boxShadowSecondary,
[`
&${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
&${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
`]: {
animationName: $U
},
[`
&${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft
`]: {
animationName: EU
},
[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]: {
animationName: AU
},
[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]: {
animationName: MU
},
"&-hidden": {
display: "none"
},
"&-empty": {
color: t.colorTextDisabled
},
// ========================= Options =========================
[`${r}-empty`]: I(I({}, ZN(t)), {
color: t.colorTextDisabled
}),
[`${r}`]: I(I({}, ZN(t)), {
cursor: "pointer",
transition: `background ${t.motionDurationSlow} ease`,
borderRadius: t.borderRadiusSM,
// =========== Group ============
"&-group": {
color: t.colorTextDescription,
fontSize: t.fontSizeSM,
cursor: "default"
},
// =========== Option ===========
"&-option": {
display: "flex",
"&-content": I({
flex: "auto"
}, Sh),
"&-state": {
flex: "none"
},
[`&-active:not(${r}-option-disabled)`]: {
backgroundColor: t.controlItemBgHover
},
[`&-selected:not(${r}-option-disabled)`]: {
color: t.colorText,
fontWeight: t.fontWeightStrong,
backgroundColor: t.controlItemBgActive,
[`${r}-option-state`]: {
color: t.colorPrimary
}
},
"&-disabled": {
[`&${r}-option-selected`]: {
backgroundColor: t.colorBgContainerDisabled
},
color: t.colorTextDisabled,
cursor: "not-allowed"
},
"&-grouped": {
paddingInlineStart: t.controlPaddingHorizontal * 2
}
}
}),
// =========================== RTL ===========================
"&-rtl": {
direction: "rtl"
}
})
},
// Follow code may reuse in other components
Eh(t, "slide-up"),
Eh(t, "slide-down"),
HN(t, "move-up"),
HN(t, "move-down")
];
}, Xf = 2;
function IU(t) {
let {
controlHeightSM: e,
controlHeight: n,
lineWidth: r
} = t;
const i = (n - e) / 2 - r, a = Math.ceil(i / 2);
return [i, a];
}
function _C(t, e) {
const {
componentCls: n,
iconCls: r
} = t, i = `${n}-selection-overflow`, a = t.controlHeightSM, [o] = IU(t), s = e ? `${n}-${e}` : "";
return {
[`${n}-multiple${s}`]: {
fontSize: t.fontSize,
/**
* Do not merge `height` & `line-height` under style with `selection` & `search`, since chrome
* may update to redesign with its align logic.
*/
// =========================== Overflow ===========================
[i]: {
position: "relative",
display: "flex",
flex: "auto",
flexWrap: "wrap",
maxWidth: "100%",
"&-item": {
flex: "none",
alignSelf: "center",
maxWidth: "100%",
display: "inline-flex"
}
},
// ========================= Selector =========================
[`${n}-selector`]: {
display: "flex",
flexWrap: "wrap",
alignItems: "center",
// Multiple is little different that horizontal is follow the vertical
padding: `${o - Xf}px ${Xf * 2}px`,
borderRadius: t.borderRadius,
[`${n}-show-search&`]: {
cursor: "text"
},
[`${n}-disabled&`]: {
background: t.colorBgContainerDisabled,
cursor: "not-allowed"
},
"&:after": {
display: "inline-block",
width: 0,
margin: `${Xf}px 0`,
lineHeight: `${a}px`,
content: '"\\a0"'
}
},
[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]: {
paddingInlineEnd: t.fontSizeIcon + t.controlPaddingHorizontal
},
// ======================== Selections ========================
[`${n}-selection-item`]: {
position: "relative",
display: "flex",
flex: "none",
boxSizing: "border-box",
maxWidth: "100%",
height: a,
marginTop: Xf,
marginBottom: Xf,
lineHeight: `${a - t.lineWidth * 2}px`,
background: t.colorFillSecondary,
border: `${t.lineWidth}px solid ${t.colorSplit}`,
borderRadius: t.borderRadiusSM,
cursor: "default",
transition: `font-size ${t.motionDurationSlow}, line-height ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,
userSelect: "none",
marginInlineEnd: Xf * 2,
paddingInlineStart: t.paddingXS,
paddingInlineEnd: t.paddingXS / 2,
[`${n}-disabled&`]: {
color: t.colorTextDisabled,
borderColor: t.colorBorder,
cursor: "not-allowed"
},
// It's ok not to do this, but 24px makes bottom narrow in view should adjust
"&-content": {
display: "inline-block",
marginInlineEnd: t.paddingXS / 2,
overflow: "hidden",
whiteSpace: "pre",
textOverflow: "ellipsis"
},
"&-remove": I(I({}, up()), {
display: "inline-block",
color: t.colorIcon,
fontWeight: "bold",
fontSize: 10,
lineHeight: "inherit",
cursor: "pointer",
[`> ${r}`]: {
verticalAlign: "-0.2em"
},
"&:hover": {
color: t.colorIconHover
}
})
},
// ========================== Input ==========================
[`${i}-item + ${i}-item`]: {
[`${n}-selection-search`]: {
marginInlineStart: 0
}
},
[`${n}-selection-search`]: {
display: "inline-flex",
position: "relative",
maxWidth: "100%",
marginInlineStart: t.inputPaddingHorizontalBase - o,
"\n &-input,\n &-mirror\n ": {
height: a,
fontFamily: t.fontFamily,
lineHeight: `${a}px`,
transition: `all ${t.motionDurationSlow}`
},
"&-input": {
width: "100%",
minWidth: 4.1
// fix search cursor missing
},
"&-mirror": {
position: "absolute",
top: 0,
insetInlineStart: 0,
insetInlineEnd: "auto",
zIndex: 999,
whiteSpace: "pre",
visibility: "hidden"
}
},
// ======================= Placeholder =======================
[`${n}-selection-placeholder `]: {
position: "absolute",
top: "50%",
insetInlineStart: t.inputPaddingHorizontalBase,
insetInlineEnd: t.inputPaddingHorizontalBase,
transform: "translateY(-50%)",
transition: `all ${t.motionDurationSlow}`
}
}
};
}
function C_e(t) {
const {
componentCls: e
} = t, n = Bt(t, {
controlHeight: t.controlHeightSM,
controlHeightSM: t.controlHeightXS,
borderRadius: t.borderRadiusSM,
borderRadiusSM: t.borderRadiusXS
}), [, r] = IU(t);
return [
_C(t),
// ======================== Small ========================
// Shared
_C(n, "sm"),
// Padding
{
[`${e}-multiple${e}-sm`]: {
[`${e}-selection-placeholder`]: {
insetInlineStart: t.controlPaddingHorizontalSM - t.lineWidth,
insetInlineEnd: "auto"
},
// https://github.com/ant-design/ant-design/issues/29559
[`${e}-selection-search`]: {
marginInlineStart: r
}
}
},
// ======================== Large ========================
// Shared
_C(Bt(t, {
fontSize: t.fontSizeLG,
controlHeight: t.controlHeightLG,
controlHeightSM: t.controlHeight,
borderRadius: t.borderRadiusLG,
borderRadiusSM: t.borderRadius
}), "lg")
];
}
function OC(t, e) {
const {
componentCls: n,
inputPaddingHorizontalBase: r,
borderRadius: i
} = t, a = t.controlHeight - t.lineWidth * 2, o = Math.ceil(t.fontSize * 1.25), s = e ? `${n}-${e}` : "";
return {
[`${n}-single${s}`]: {
fontSize: t.fontSize,
// ========================= Selector =========================
[`${n}-selector`]: I(I({}, nn(t)), {
display: "flex",
borderRadius: i,
[`${n}-selection-search`]: {
position: "absolute",
top: 0,
insetInlineStart: r,
insetInlineEnd: r,
bottom: 0,
"&-input": {
width: "100%"
}
},
[`
${n}-selection-item,
${n}-selection-placeholder
`]: {
padding: 0,
lineHeight: `${a}px`,
transition: `all ${t.motionDurationSlow}`,
// Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:
"@supports (-moz-appearance: meterbar)": {
lineHeight: `${a}px`
}
},
[`${n}-selection-item`]: {
position: "relative",
userSelect: "none"
},
[`${n}-selection-placeholder`]: {
transition: "none",
pointerEvents: "none"
},
// For common baseline align
[[
"&:after",
/* For '' value baseline align */
`${n}-selection-item:after`,
/* For undefined value baseline align */
`${n}-selection-placeholder:after`
].join(",")]: {
display: "inline-block",
width: 0,
visibility: "hidden",
content: '"\\a0"'
}
}),
[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]: {
paddingInlineEnd: o
},
// Opacity selection if open
[`&${n}-open ${n}-selection-item`]: {
color: t.colorTextPlaceholder
},
// ========================== Input ==========================
// We only change the style of non-customize input which is only support by `combobox` mode.
// Not customize
[`&:not(${n}-customize-input)`]: {
[`${n}-selector`]: {
width: "100%",
height: t.controlHeight,
padding: `0 ${r}px`,
[`${n}-selection-search-input`]: {
height: a
},
"&:after": {
lineHeight: `${a}px`
}
}
},
[`&${n}-customize-input`]: {
[`${n}-selector`]: {
"&:after": {
display: "none"
},
[`${n}-selection-search`]: {
position: "static",
width: "100%"
},
[`${n}-selection-placeholder`]: {
position: "absolute",
insetInlineStart: 0,
insetInlineEnd: 0,
padding: `0 ${r}px`,
"&:after": {
display: "none"
}
}
}
}
}
};
}
function T_e(t) {
const {
componentCls: e
} = t, n = t.controlPaddingHorizontalSM - t.lineWidth;
return [
OC(t),
// ======================== Small ========================
// Shared
OC(Bt(t, {
controlHeight: t.controlHeightSM,
borderRadius: t.borderRadiusSM
}), "sm"),
// padding
{
[`${e}-single${e}-sm`]: {
[`&:not(${e}-customize-input)`]: {
[`${e}-selection-search`]: {
insetInlineStart: n,
insetInlineEnd: n
},
[`${e}-selector`]: {
padding: `0 ${n}px`
},
// With arrow should provides `padding-right` to show the arrow
[`&${e}-show-arrow ${e}-selection-search`]: {
insetInlineEnd: n + t.fontSize * 1.5
},
[`
&${e}-show-arrow ${e}-selection-item,
&${e}-show-arrow ${e}-selection-placeholder
`]: {
paddingInlineEnd: t.fontSize * 1.5
}
}
}
},
// ======================== Large ========================
// Shared
OC(Bt(t, {
controlHeight: t.controlHeightLG,
fontSize: t.fontSizeLG,
borderRadius: t.borderRadiusLG
}), "lg")
];
}
function P_e(t, e, n) {
const {
focusElCls: r,
focus: i,
borderElCls: a
} = n, o = a ? "> *" : "", s = ["hover", i ? "focus" : null, "active"].filter(Boolean).map((l) => `&:${l} ${o}`).join(",");
return {
[`&-item:not(${e}-last-item)`]: {
marginInlineEnd: -t.lineWidth
},
"&-item": I(I({
[s]: {
zIndex: 2
}
}, r ? {
[`&${r}`]: {
zIndex: 2
}
} : {}), {
[`&[disabled] ${o}`]: {
zIndex: 0
}
})
};
}
function $_e(t, e, n) {
const {
borderElCls: r
} = n, i = r ? `> ${r}` : "";
return {
[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]: {
borderRadius: 0
},
[`&-item:not(${e}-last-item)${e}-first-item`]: {
[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]: {
borderStartEndRadius: 0,
borderEndEndRadius: 0
}
},
[`&-item:not(${e}-first-item)${e}-last-item`]: {
[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]: {
borderStartStartRadius: 0,
borderEndStartRadius: 0
}
}
};
}
function dx(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
focus: !0
};
const {
componentCls: n
} = t, r = `${n}-compact`;
return {
[r]: I(I({}, P_e(t, r, e)), $_e(n, r, e))
};
}
const A_e = (t) => {
const {
componentCls: e
} = t;
return {
position: "relative",
backgroundColor: t.colorBgContainer,
border: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,
transition: `all ${t.motionDurationMid} ${t.motionEaseInOut}`,
input: {
cursor: "pointer"
},
[`${e}-show-search&`]: {
cursor: "text",
input: {
cursor: "auto",
color: "inherit"
}
},
[`${e}-disabled&`]: {
color: t.colorTextDisabled,
background: t.colorBgContainerDisabled,
cursor: "not-allowed",
[`${e}-multiple&`]: {
background: t.colorBgContainerDisabled
},
input: {
cursor: "not-allowed"
}
}
};
}, SC = function(t, e) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
const {
componentCls: r,
borderHoverColor: i,
outlineColor: a,
antCls: o
} = e, s = n ? {
[`${r}-selector`]: {
borderColor: i
}
} : {};
return {
[t]: {
[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]: I(I({}, s), {
[`${r}-focused& ${r}-selector`]: {
borderColor: i,
boxShadow: `0 0 0 ${e.controlOutlineWidth}px ${a}`,
borderInlineEndWidth: `${e.controlLineWidth}px !important`,
outline: 0
},
[`&:hover ${r}-selector`]: {
borderColor: i,
borderInlineEndWidth: `${e.controlLineWidth}px !important`
}
})
}
};
}, E_e = (t) => {
const {
componentCls: e
} = t;
return {
[`${e}-selection-search-input`]: {
margin: 0,
padding: 0,
background: "transparent",
border: "none",
outline: "none",
appearance: "none",
"&::-webkit-search-cancel-button": {
display: "none",
"-webkit-appearance": "none"
}
}
};
}, M_e = (t) => {
const {
componentCls: e,
inputPaddingHorizontalBase: n,
iconCls: r
} = t;
return {
[e]: I(I({}, nn(t)), {
position: "relative",
display: "inline-block",
cursor: "pointer",
[`&:not(${e}-customize-input) ${e}-selector`]: I(I({}, A_e(t)), E_e(t)),
// [`&:not(&-disabled):hover ${selectCls}-selector`]: {
// ...genHoverStyle(token),
// },
// ======================== Selection ========================
[`${e}-selection-item`]: I({
flex: 1,
fontWeight: "normal"
}, Sh),
// ======================= Placeholder =======================
[`${e}-selection-placeholder`]: I(I({}, Sh), {
flex: 1,
color: t.colorTextPlaceholder,
pointerEvents: "none"
}),
// ========================== Arrow ==========================
[`${e}-arrow`]: I(I({}, up()), {
position: "absolute",
top: "50%",
insetInlineStart: "auto",
insetInlineEnd: n,
height: t.fontSizeIcon,
marginTop: -t.fontSizeIcon / 2,
color: t.colorTextQuaternary,
fontSize: t.fontSizeIcon,
lineHeight: 1,
textAlign: "center",
pointerEvents: "none",
display: "flex",
alignItems: "center",
[r]: {
verticalAlign: "top",
transition: `transform ${t.motionDurationSlow}`,
"> svg": {
verticalAlign: "top"
},
[`&:not(${e}-suffix)`]: {
pointerEvents: "auto"
}
},
[`${e}-disabled &`]: {
cursor: "not-allowed"
},
"> *:not(:last-child)": {
marginInlineEnd: 8
// FIXME: magic
}
}),
// ========================== Clear ==========================
[`${e}-clear`]: {
position: "absolute",
top: "50%",
insetInlineStart: "auto",
insetInlineEnd: n,
zIndex: 1,
display: "inline-block",
width: t.fontSizeIcon,
height: t.fontSizeIcon,
marginTop: -t.fontSizeIcon / 2,
color: t.colorTextQuaternary,
fontSize: t.fontSizeIcon,
fontStyle: "normal",
lineHeight: 1,
textAlign: "center",
textTransform: "none",
background: t.colorBgContainer,
cursor: "pointer",
opacity: 0,
transition: `color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,
textRendering: "auto",
"&:before": {
display: "block"
},
"&:hover": {
color: t.colorTextTertiary
}
},
"&:hover": {
[`${e}-clear`]: {
opacity: 1
}
}
}),
// ========================= Feedback ==========================
[`${e}-has-feedback`]: {
[`${e}-clear`]: {
insetInlineEnd: n + t.fontSize + t.paddingXXS
}
}
};
}, I_e = (t) => {
const {
componentCls: e
} = t;
return [
{
[e]: {
// ==================== BorderLess ====================
[`&-borderless ${e}-selector`]: {
backgroundColor: "transparent !important",
borderColor: "transparent !important",
boxShadow: "none !important"
},
// ==================== In Form ====================
[`&${e}-in-form-item`]: {
width: "100%"
}
}
},
// =====================================================
// == LTR ==
// =====================================================
// Base
M_e(t),
// Single
T_e(t),
// Multiple
C_e(t),
// Dropdown
w_e(t),
// =====================================================
// == RTL ==
// =====================================================
{
[`${e}-rtl`]: {
direction: "rtl"
}
},
// =====================================================
// == Status ==
// =====================================================
SC(e, Bt(t, {
borderHoverColor: t.colorPrimaryHover,
outlineColor: t.controlOutline
})),
SC(`${e}-status-error`, Bt(t, {
borderHoverColor: t.colorErrorHover,
outlineColor: t.colorErrorOutline
}), !0),
SC(`${e}-status-warning`, Bt(t, {
borderHoverColor: t.colorWarningHover,
outlineColor: t.colorWarningOutline
}), !0),
// =====================================================
// == Space Compact ==
// =====================================================
dx(t, {
borderElCls: `${e}-selector`,
focusElCls: `${e}-focused`
})
];
}, D_e = Sn("Select", (t, e) => {
let {
rootPrefixCls: n
} = e;
const r = Bt(t, {
rootPrefixCls: n,
inputPaddingHorizontalBase: t.paddingSM - 1
});
return [I_e(r)];
}, (t) => ({
zIndexPopup: t.zIndexPopupBase + 50
})), R_e = () => I(I({}, or(HZ(), ["inputIcon", "mode", "getInputElement", "getRawInputElement", "backfill"])), {
value: gn([Array, Object, String, Number]),
defaultValue: gn([Array, Object, String, Number]),
notFoundContent: Y.any,
suffixIcon: Y.any,
itemIcon: Y.any,
size: hn(),
mode: hn(),
bordered: nt(!0),
transitionName: String,
choiceTransitionName: hn(""),
popupClassName: String,
/** @deprecated Please use `popupClassName` instead */
dropdownClassName: String,
placement: hn(),
status: hn(),
"onUpdate:value": tt()
}), UN = "SECRET_COMBOBOX_MODE_DO_NOT_USE", di = te({
compatConfig: {
MODE: 3
},
name: "ASelect",
Option: RI,
OptGroup: kI,
inheritAttrs: !1,
props: sr(R_e(), {
listHeight: 256,
listItemHeight: 24
}),
SECRET_COMBOBOX_MODE_DO_NOT_USE: UN,
slots: Object,
setup(t, e) {
let {
attrs: n,
emit: r,
slots: i,
expose: a
} = e;
const o = U(), s = ls(), l = ao.useInject(), u = L(() => y0(l.status, t.status)), c = () => {
var Q;
(Q = o.value) === null || Q === void 0 || Q.focus();
}, f = () => {
var Q;
(Q = o.value) === null || Q === void 0 || Q.blur();
}, d = (Q) => {
var Z;
(Z = o.value) === null || Z === void 0 || Z.scrollTo(Q);
}, h = L(() => {
const {
mode: Q
} = t;
if (Q !== "combobox")
return Q === UN ? "combobox" : Q;
});
process.env.NODE_ENV !== "production" && Gi(!t.dropdownClassName, "Select", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
const {
prefixCls: p,
direction: v,
configProvider: g,
renderEmpty: m,
size: y,
getPrefixCls: b,
getPopupContainer: _,
disabled: O,
select: S
} = It("select", t), {
compactSize: x,
compactItemClassnames: C
} = ux(p, v), T = L(() => x.value || y.value), w = Jo(), P = L(() => {
var Q;
return (Q = O.value) !== null && Q !== void 0 ? Q : w.value;
}), [$, A] = D_e(p), D = L(() => b()), E = L(() => t.placement !== void 0 ? t.placement : v.value === "rtl" ? "bottomRight" : "bottomLeft"), R = L(() => ts(D.value, yve(E.value), t.transitionName)), N = L(() => ye({
[`${p.value}-lg`]: T.value === "large",
[`${p.value}-sm`]: T.value === "small",
[`${p.value}-rtl`]: v.value === "rtl",
[`${p.value}-borderless`]: !t.bordered,
[`${p.value}-in-form-item`]: l.isFormItemInput
}, Ds(p.value, u.value, l.hasFeedback), C.value, A.value)), V = function() {
for (var Q = arguments.length, Z = new Array(Q), ne = 0; ne < Q; ne++)
Z[ne] = arguments[ne];
r("update:value", Z[0]), r("change", ...Z), s.onFieldChange();
}, B = (Q) => {
r("blur", Q), s.onFieldBlur();
};
a({
blur: f,
focus: c,
scrollTo: d
});
const W = L(() => h.value === "multiple" || h.value === "tags"), F = L(() => t.showArrow !== void 0 ? t.showArrow : t.loading || !(W.value || h.value === "combobox"));
return () => {
var Q, Z, ne, ee;
const {
notFoundContent: oe,
listHeight: K = 256,
listItemHeight: ie = 24,
popupClassName: X,
dropdownClassName: H,
virtual: G,
dropdownMatchSelectWidth: re,
id: fe = s.id.value,
placeholder: de = (Q = i.placeholder) === null || Q === void 0 ? void 0 : Q.call(i),
showArrow: Ee
} = t, {
hasFeedback: $e,
feedbackIcon: Se
} = l;
let be;
oe !== void 0 ? be = oe : i.notFoundContent ? be = i.notFoundContent() : h.value === "combobox" ? be = null : be = (m == null ? void 0 : m("Select")) || M(fI, {
componentName: "Select"
}, null);
const {
suffixIcon: he,
itemIcon: Te,
removeIcon: ze,
clearIcon: ut
} = Rme(I(I({}, t), {
multiple: W.value,
prefixCls: p.value,
hasFeedback: $e,
feedbackIcon: Se,
showArrow: F.value
}), i), ct = or(t, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered", "status"]), Dt = ye(X || H, {
[`${p.value}-dropdown-${v.value}`]: v.value === "rtl"
}, A.value);
return $(M(Vge, j(j(j({
ref: o,
virtual: G,
dropdownMatchSelectWidth: re
}, ct), n), {}, {
showSearch: (Z = t.showSearch) !== null && Z !== void 0 ? Z : (ne = S == null ? void 0 : S.value) === null || ne === void 0 ? void 0 : ne.showSearch,
placeholder: de,
listHeight: K,
listItemHeight: ie,
mode: h.value,
prefixCls: p.value,
direction: v.value,
inputIcon: he,
menuItemSelectedIcon: Te,
removeIcon: ze,
clearIcon: ut,
notFoundContent: be,
class: [N.value, n.class],
getPopupContainer: _ == null ? void 0 : _.value,
dropdownClassName: Dt,
onChange: V,
onBlur: B,
id: fe,
dropdownRender: ct.dropdownRender || i.dropdownRender,
transitionName: R.value,
children: (ee = i.default) === null || ee === void 0 ? void 0 : ee.call(i),
tagRender: t.tagRender || i.tagRender,
optionLabelRender: i.optionLabel,
maxTagPlaceholder: t.maxTagPlaceholder || i.maxTagPlaceholder,
showArrow: $e || Ee,
disabled: P.value
}), {
option: i.option
}));
};
}
});
di.install = function(t) {
return t.component(di.name, di), t.component(di.Option.displayName, di.Option), t.component(di.OptGroup.displayName, di.OptGroup), t;
};
const D1 = di.Option;
di.OptGroup;
var k_e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "check-circle", theme: "outlined" };
function XN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
L_e(t, i, n[i]);
});
}
return t;
}
function L_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var eD = function(e, n) {
var r = XN({}, e, n.attrs);
return M(lt, XN({}, r, {
icon: k_e
}), null);
};
eD.displayName = "CheckCircleOutlined";
eD.inheritAttrs = !1;
var N_e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
function YN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
B_e(t, i, n[i]);
});
}
return t;
}
function B_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var tD = function(e, n) {
var r = YN({}, e, n.attrs);
return M(lt, YN({}, r, {
icon: N_e
}), null);
};
tD.displayName = "ExclamationCircleOutlined";
tD.inheritAttrs = !1;
var z_e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, name: "info-circle", theme: "outlined" };
function qN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
V_e(t, i, n[i]);
});
}
return t;
}
function V_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var hx = function(e, n) {
var r = qN({}, e, n.attrs);
return M(lt, qN({}, r, {
icon: z_e
}), null);
};
hx.displayName = "InfoCircleOutlined";
hx.inheritAttrs = !1;
var F_e = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, name: "close-circle", theme: "outlined" };
function KN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
W_e(t, i, n[i]);
});
}
return t;
}
function W_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var nD = function(e, n) {
var r = KN({}, e, n.attrs);
return M(lt, KN({}, r, {
icon: F_e
}), null);
};
nD.displayName = "CloseCircleOutlined";
nD.inheritAttrs = !1;
var Q_e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" };
function JN(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
H_e(t, i, n[i]);
});
}
return t;
}
function H_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var Ou = function(e, n) {
var r = JN({}, e, n.attrs);
return M(lt, JN({}, r, {
icon: Q_e
}), null);
};
Ou.displayName = "CheckCircleFilled";
Ou.inheritAttrs = !1;
var G_e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" };
function e5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
j_e(t, i, n[i]);
});
}
return t;
}
function j_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var Su = function(e, n) {
var r = e5({}, e, n.attrs);
return M(lt, e5({}, r, {
icon: G_e
}), null);
};
Su.displayName = "ExclamationCircleFilled";
Su.inheritAttrs = !1;
var Z_e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" };
function t5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
U_e(t, i, n[i]);
});
}
return t;
}
function U_e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var Df = function(e, n) {
var r = t5({}, e, n.attrs);
return M(lt, t5({}, r, {
icon: Z_e
}), null);
};
Df.displayName = "InfoCircleFilled";
Df.inheritAttrs = !1;
const Ay = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], X_e = (t) => ({
xs: `(max-width: ${t.screenXSMax}px)`,
sm: `(min-width: ${t.screenSM}px)`,
md: `(min-width: ${t.screenMD}px)`,
lg: `(min-width: ${t.screenLG}px)`,
xl: `(min-width: ${t.screenXL}px)`,
xxl: `(min-width: ${t.screenXXL}px)`,
xxxl: `{min-width: ${t.screenXXXL}px}`
});
function Y_e() {
const [, t] = cp();
return L(() => {
const e = X_e(t.value), n = /* @__PURE__ */ new Map();
let r = -1, i = {};
return {
matchHandlers: {},
dispatch(a) {
return i = a, n.forEach((o) => o(i)), n.size >= 1;
},
subscribe(a) {
return n.size || this.register(), r += 1, n.set(r, a), a(i), r;
},
unsubscribe(a) {
n.delete(a), n.size || this.unregister();
},
unregister() {
Object.keys(e).forEach((a) => {
const o = e[a], s = this.matchHandlers[o];
s == null || s.mql.removeListener(s == null ? void 0 : s.listener);
}), n.clear();
},
register() {
Object.keys(e).forEach((a) => {
const o = e[a], s = (u) => {
let {
matches: c
} = u;
this.dispatch(I(I({}, i), {
[a]: c
}));
}, l = window.matchMedia(o);
l.addListener(s), this.matchHandlers[o] = {
mql: l,
listener: s
}, s(l);
});
},
responsiveMap: e
};
});
}
const Ji = {
adjustX: 1,
adjustY: 1
}, ea = [0, 0], DU = {
left: {
points: ["cr", "cl"],
overflow: Ji,
offset: [-4, 0],
targetOffset: ea
},
right: {
points: ["cl", "cr"],
overflow: Ji,
offset: [4, 0],
targetOffset: ea
},
top: {
points: ["bc", "tc"],
overflow: Ji,
offset: [0, -4],
targetOffset: ea
},
bottom: {
points: ["tc", "bc"],
overflow: Ji,
offset: [0, 4],
targetOffset: ea
},
topLeft: {
points: ["bl", "tl"],
overflow: Ji,
offset: [0, -4],
targetOffset: ea
},
leftTop: {
points: ["tr", "tl"],
overflow: Ji,
offset: [-4, 0],
targetOffset: ea
},
topRight: {
points: ["br", "tr"],
overflow: Ji,
offset: [0, -4],
targetOffset: ea
},
rightTop: {
points: ["tl", "tr"],
overflow: Ji,
offset: [4, 0],
targetOffset: ea
},
bottomRight: {
points: ["tr", "br"],
overflow: Ji,
offset: [0, 4],
targetOffset: ea
},
rightBottom: {
points: ["bl", "br"],
overflow: Ji,
offset: [4, 0],
targetOffset: ea
},
bottomLeft: {
points: ["tl", "bl"],
overflow: Ji,
offset: [0, 4],
targetOffset: ea
},
leftBottom: {
points: ["br", "bl"],
overflow: Ji,
offset: [-4, 0],
targetOffset: ea
}
}, q_e = {
prefixCls: String,
id: String,
overlayInnerStyle: Y.any
}, K_e = te({
compatConfig: {
MODE: 3
},
name: "TooltipContent",
props: q_e,
setup(t, e) {
let {
slots: n
} = e;
return () => {
var r;
return M("div", {
class: `${t.prefixCls}-inner`,
id: t.id,
role: "tooltip",
style: t.overlayInnerStyle
}, [(r = n.overlay) === null || r === void 0 ? void 0 : r.call(n)]);
};
}
});
var J_e = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
function n5() {
}
const e1e = te({
compatConfig: {
MODE: 3
},
name: "Tooltip",
inheritAttrs: !1,
props: {
trigger: Y.any.def(["hover"]),
defaultVisible: {
type: Boolean,
default: void 0
},
visible: {
type: Boolean,
default: void 0
},
placement: Y.string.def("right"),
transitionName: String,
animation: Y.any,
afterVisibleChange: Y.func.def(() => {
}),
overlayStyle: {
type: Object,
default: void 0
},
overlayClassName: String,
prefixCls: Y.string.def("rc-tooltip"),
mouseEnterDelay: Y.number.def(0.1),
mouseLeaveDelay: Y.number.def(0.1),
getPopupContainer: Function,
destroyTooltipOnHide: {
type: Boolean,
default: !1
},
align: Y.object.def(() => ({})),
arrowContent: Y.any.def(null),
tipId: String,
builtinPlacements: Y.object,
overlayInnerStyle: {
type: Object,
default: void 0
},
popupVisible: {
type: Boolean,
default: void 0
},
onVisibleChange: Function,
onPopupAlign: Function,
arrow: {
type: Boolean,
default: !0
}
},
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i
} = e;
const a = ae(), o = () => {
const {
prefixCls: c,
tipId: f,
overlayInnerStyle: d
} = t;
return [t.arrow ? M("div", {
class: `${c}-arrow`,
key: "arrow"
}, [RS(n, t, "arrowContent")]) : null, M(K_e, {
key: "content",
prefixCls: c,
id: f,
overlayInnerStyle: d
}, {
overlay: n.overlay
})];
};
i({
getPopupDomNode: () => a.value.getPopupDomNode(),
triggerDOM: a,
forcePopupAlign: () => {
var c;
return (c = a.value) === null || c === void 0 ? void 0 : c.forcePopupAlign();
}
});
const l = ae(!1), u = ae(!1);
return ht(() => {
const {
destroyTooltipOnHide: c
} = t;
if (typeof c == "boolean")
l.value = c;
else if (c && typeof c == "object") {
const {
keepParent: f
} = c;
l.value = f === !0, u.value = f === !1;
}
}), () => {
const {
overlayClassName: c,
trigger: f,
mouseEnterDelay: d,
mouseLeaveDelay: h,
overlayStyle: p,
prefixCls: v,
afterVisibleChange: g,
transitionName: m,
animation: y,
placement: b,
align: _,
destroyTooltipOnHide: O,
defaultVisible: S
} = t, x = J_e(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible"]), C = I({}, x);
t.visible !== void 0 && (C.popupVisible = t.visible);
const T = I(I(I({
popupClassName: c,
prefixCls: v,
action: f,
builtinPlacements: DU,
popupPlacement: b,
popupAlign: _,
afterPopupVisibleChange: g,
popupTransitionName: m,
popupAnimation: y,
defaultPopupVisible: S,
destroyPopupOnHide: l.value,
autoDestroy: u.value,
mouseLeaveDelay: h,
popupStyle: p,
mouseEnterDelay: d
}, C), r), {
onPopupVisibleChange: t.onVisibleChange || n5,
onPopupAlign: t.onPopupAlign || n5,
ref: a,
arrow: !!t.arrow,
popup: o()
});
return M(ex, T, {
default: n.default
});
};
}
}), t1e = () => ({
trigger: [String, Array],
open: {
type: Boolean,
default: void 0
},
/** @deprecated Please use `open` instead. */
visible: {
type: Boolean,
default: void 0
},
placement: String,
color: String,
transitionName: String,
overlayStyle: $t(),
overlayInnerStyle: $t(),
overlayClassName: String,
openClassName: String,
prefixCls: String,
mouseEnterDelay: Number,
mouseLeaveDelay: Number,
getPopupContainer: Function,
/**@deprecated Please use `arrow={{ pointAtCenter: true }}` instead. */
arrowPointAtCenter: {
type: Boolean,
default: void 0
},
arrow: {
type: [Boolean, Object],
default: !0
},
autoAdjustOverflow: {
type: [Boolean, Object],
default: void 0
},
destroyTooltipOnHide: {
type: Boolean,
default: void 0
},
align: $t(),
builtinPlacements: $t(),
children: Array,
/** @deprecated Please use `onOpenChange` instead. */
onVisibleChange: Function,
/** @deprecated Please use `onUpdate:open` instead. */
"onUpdate:visible": Function,
onOpenChange: Function,
"onUpdate:open": Function
}), n1e = {
adjustX: 1,
adjustY: 1
}, r5 = {
adjustX: 0,
adjustY: 0
}, r1e = [0, 0];
function i5(t) {
return typeof t == "boolean" ? t ? n1e : r5 : I(I({}, r5), t);
}
function i1e(t) {
const {
arrowWidth: e = 4,
horizontalArrowShift: n = 16,
verticalArrowShift: r = 8,
autoAdjustOverflow: i,
arrowPointAtCenter: a
} = t, o = {
left: {
points: ["cr", "cl"],
offset: [-4, 0]
},
right: {
points: ["cl", "cr"],
offset: [4, 0]
},
top: {
points: ["bc", "tc"],
offset: [0, -4]
},
bottom: {
points: ["tc", "bc"],
offset: [0, 4]
},
topLeft: {
points: ["bl", "tc"],
offset: [-(n + e), -4]
},
leftTop: {
points: ["tr", "cl"],
offset: [-4, -(r + e)]
},
topRight: {
points: ["br", "tc"],
offset: [n + e, -4]
},
rightTop: {
points: ["tl", "cr"],
offset: [4, -(r + e)]
},
bottomRight: {
points: ["tr", "bc"],
offset: [n + e, 4]
},
rightBottom: {
points: ["bl", "cr"],
offset: [4, r + e]
},
bottomLeft: {
points: ["tl", "bc"],
offset: [-(n + e), 4]
},
leftBottom: {
points: ["br", "cl"],
offset: [-4, r + e]
}
};
return Object.keys(o).forEach((s) => {
o[s] = a ? I(I({}, o[s]), {
overflow: i5(i),
targetOffset: r1e
}) : I(I({}, DU[s]), {
overflow: i5(i)
}), o[s].ignoreShake = !0;
}), o;
}
function RU() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
for (let e = 0, n = t.length; e < n; e++)
if (t[e] !== void 0)
return t[e];
}
const a1e = O1.map((t) => `${t}-inverse`);
function o1e(t) {
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [...a1e, ...O1].includes(t) : O1.includes(t);
}
function s1e(t, e) {
const n = o1e(e), r = ye({
[`${t}-${e}`]: e && n
}), i = {}, a = {};
return e && !n && (i.background = e, a["--antd-arrow-background-color"] = e), {
className: r,
overlayStyle: i,
arrowStyle: a
};
}
function Ey(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
return t.map((n) => `${e}${n}`).join(",");
}
const kU = 8;
function l1e(t) {
const e = kU, {
sizePopupArrow: n,
contentRadius: r,
borderRadiusOuter: i,
limitVerticalRadius: a
} = t, o = n / 2 - Math.ceil(i * (Math.sqrt(2) - 1)), s = (r > 12 ? r + 2 : 12) - o, l = a ? e - o : s;
return {
dropdownArrowOffset: s,
dropdownArrowOffsetVertical: l
};
}
function u1e(t, e) {
const {
componentCls: n,
sizePopupArrow: r,
marginXXS: i,
borderRadiusXS: a,
borderRadiusOuter: o,
boxShadowPopoverArrow: s
} = t, {
colorBg: l,
showArrowCls: u,
contentRadius: c = t.borderRadiusLG,
limitVerticalRadius: f
} = e, {
dropdownArrowOffsetVertical: d,
dropdownArrowOffset: h
} = l1e({
sizePopupArrow: r,
contentRadius: c,
borderRadiusOuter: o,
limitVerticalRadius: f
}), p = r / 2 + i;
return {
[n]: {
// ============================ Basic ============================
[`${n}-arrow`]: [I(I({
position: "absolute",
zIndex: 1,
display: "block"
}, yfe(r, a, o, l, s)), {
"&:before": {
background: l
}
})],
// ========================== Placement ==========================
// Here handle the arrow position and rotate stuff
// >>>>> Top
[[`&-placement-top ${n}-arrow`, `&-placement-topLeft ${n}-arrow`, `&-placement-topRight ${n}-arrow`].join(",")]: {
bottom: 0,
transform: "translateY(100%) rotate(180deg)"
},
[`&-placement-top ${n}-arrow`]: {
left: {
_skip_check_: !0,
value: "50%"
},
transform: "translateX(-50%) translateY(100%) rotate(180deg)"
},
[`&-placement-topLeft ${n}-arrow`]: {
left: {
_skip_check_: !0,
value: h
}
},
[`&-placement-topRight ${n}-arrow`]: {
right: {
_skip_check_: !0,
value: h
}
},
// >>>>> Bottom
[[`&-placement-bottom ${n}-arrow`, `&-placement-bottomLeft ${n}-arrow`, `&-placement-bottomRight ${n}-arrow`].join(",")]: {
top: 0,
transform: "translateY(-100%)"
},
[`&-placement-bottom ${n}-arrow`]: {
left: {
_skip_check_: !0,
value: "50%"
},
transform: "translateX(-50%) translateY(-100%)"
},
[`&-placement-bottomLeft ${n}-arrow`]: {
left: {
_skip_check_: !0,
value: h
}
},
[`&-placement-bottomRight ${n}-arrow`]: {
right: {
_skip_check_: !0,
value: h
}
},
// >>>>> Left
[[`&-placement-left ${n}-arrow`, `&-placement-leftTop ${n}-arrow`, `&-placement-leftBottom ${n}-arrow`].join(",")]: {
right: {
_skip_check_: !0,
value: 0
},
transform: "translateX(100%) rotate(90deg)"
},
[`&-placement-left ${n}-arrow`]: {
top: {
_skip_check_: !0,
value: "50%"
},
transform: "translateY(-50%) translateX(100%) rotate(90deg)"
},
[`&-placement-leftTop ${n}-arrow`]: {
top: d
},
[`&-placement-leftBottom ${n}-arrow`]: {
bottom: d
},
// >>>>> Right
[[`&-placement-right ${n}-arrow`, `&-placement-rightTop ${n}-arrow`, `&-placement-rightBottom ${n}-arrow`].join(",")]: {
left: {
_skip_check_: !0,
value: 0
},
transform: "translateX(-100%) rotate(-90deg)"
},
[`&-placement-right ${n}-arrow`]: {
top: {
_skip_check_: !0,
value: "50%"
},
transform: "translateY(-50%) translateX(-100%) rotate(-90deg)"
},
[`&-placement-rightTop ${n}-arrow`]: {
top: d
},
[`&-placement-rightBottom ${n}-arrow`]: {
bottom: d
},
// =========================== Offset ============================
// Offset the popover to account for the dropdown arrow
// >>>>> Top
[Ey(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
paddingBottom: p
},
// >>>>> Bottom
[Ey(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
paddingTop: p
},
// >>>>> Left
[Ey(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
paddingRight: {
_skip_check_: !0,
value: p
}
},
// >>>>> Right
[Ey(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"].map((v) => v += ":not(&-arrow-hidden)"), u)]: {
paddingLeft: {
_skip_check_: !0,
value: p
}
}
}
};
}
const c1e = (t) => {
const {
componentCls: e,
// ant-tooltip
tooltipMaxWidth: n,
tooltipColor: r,
tooltipBg: i,
tooltipBorderRadius: a,
zIndexPopup: o,
controlHeight: s,
boxShadowSecondary: l,
paddingSM: u,
paddingXS: c,
tooltipRadiusOuter: f
} = t;
return [
{
[e]: I(I(I(I({}, nn(t)), {
position: "absolute",
zIndex: o,
display: "block",
"&": [{
width: "max-content"
}, {
width: "intrinsic"
}],
maxWidth: n,
visibility: "visible",
"&-hidden": {
display: "none"
},
"--antd-arrow-background-color": i,
// Wrapper for the tooltip content
[`${e}-inner`]: {
minWidth: s,
minHeight: s,
padding: `${u / 2}px ${c}px`,
color: r,
textAlign: "start",
textDecoration: "none",
wordWrap: "break-word",
backgroundColor: i,
borderRadius: a,
boxShadow: l
},
// Limit left and right placement radius
[["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
[`${e}-inner`]: {
borderRadius: Math.min(a, kU)
}
},
[`${e}-content`]: {
position: "relative"
}
}), bfe(t, (d, h) => {
let {
darkColor: p
} = h;
return {
[`&${e}-${d}`]: {
[`${e}-inner`]: {
backgroundColor: p
},
[`${e}-arrow`]: {
"--antd-arrow-background-color": p
}
}
};
})), {
// RTL
"&-rtl": {
direction: "rtl"
}
})
},
// Arrow Style
u1e(Bt(t, {
borderRadiusOuter: f
}), {
colorBg: "var(--antd-arrow-background-color)",
showArrowCls: "",
contentRadius: a,
limitVerticalRadius: !0
}),
// Pure Render
{
[`${e}-pure`]: {
position: "relative",
maxWidth: "none"
}
}
];
}, f1e = (t, e) => Sn("Tooltip", (r) => {
if ((e == null ? void 0 : e.value) === !1)
return [];
const {
borderRadius: i,
colorTextLightSolid: a,
colorBgDefault: o,
borderRadiusOuter: s
} = r, l = Bt(r, {
// default variables
tooltipMaxWidth: 250,
tooltipColor: a,
tooltipBorderRadius: i,
tooltipBg: o,
tooltipRadiusOuter: s > 4 ? 4 : s
});
return [c1e(l), fx(r, "zoom-big-fast")];
}, (r) => {
let {
zIndexPopupBase: i,
colorBgSpotlight: a
} = r;
return {
zIndexPopup: i + 70,
colorBgDefault: a
};
})(t), d1e = (t, e) => {
const n = {}, r = I({}, t);
return e.forEach((i) => {
t && i in t && (n[i] = t[i], delete r[i]);
}), {
picked: n,
omitted: r
};
}, LU = () => I(I({}, t1e()), {
title: Y.any
}), h1e = te({
compatConfig: {
MODE: 3
},
name: "ATooltip",
inheritAttrs: !1,
props: sr(LU(), {
trigger: "hover",
align: {},
placement: "top",
mouseEnterDelay: 0.1,
mouseLeaveDelay: 0.1,
arrowPointAtCenter: !1,
autoAdjustOverflow: !0
}),
slots: Object,
// emits: ['update:visible', 'visibleChange'],
setup(t, e) {
let {
slots: n,
emit: r,
attrs: i,
expose: a
} = e;
process.env.NODE_ENV !== "production" && [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((w) => {
let [P, $] = w;
Yr(t[P] === void 0, "Tooltip", `\`${P}\` is deprecated, please use \`${$}\` instead.`);
});
const {
prefixCls: o,
getPopupContainer: s,
direction: l,
rootPrefixCls: u
} = It("tooltip", t), c = L(() => {
var w;
return (w = t.open) !== null && w !== void 0 ? w : t.visible;
}), f = U(RU([t.open, t.visible])), d = U();
let h;
se(c, (w) => {
xt.cancel(h), h = xt(() => {
f.value = !!w;
});
});
const p = () => {
var w;
const P = (w = t.title) !== null && w !== void 0 ? w : n.title;
return !P && P !== 0;
}, v = (w) => {
const P = p();
c.value === void 0 && (f.value = P ? !1 : w), P || (r("update:visible", w), r("visibleChange", w), r("update:open", w), r("openChange", w));
};
a({
getPopupDomNode: () => d.value.getPopupDomNode(),
open: f,
forcePopupAlign: () => {
var w;
return (w = d.value) === null || w === void 0 ? void 0 : w.forcePopupAlign();
}
});
const m = L(() => {
var w;
const {
builtinPlacements: P,
autoAdjustOverflow: $,
arrow: A,
arrowPointAtCenter: D
} = t;
let E = D;
return typeof A == "object" && (E = (w = A.pointAtCenter) !== null && w !== void 0 ? w : D), P || i1e({
arrowPointAtCenter: E,
autoAdjustOverflow: $
});
}), y = (w) => w || w === "", b = (w) => {
const P = w.type;
if (typeof P == "object" && w.props && ((P.__ANT_BUTTON === !0 || P === "button") && y(w.props.disabled) || P.__ANT_SWITCH === !0 && (y(w.props.disabled) || y(w.props.loading)) || P.__ANT_RADIO === !0 && y(w.props.disabled))) {
const {
picked: $,
omitted: A
} = d1e(kue(w), ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), D = I(I({
display: "inline-block"
}, $), {
cursor: "not-allowed",
lineHeight: 1,
width: w.props && w.props.block ? "100%" : void 0
}), E = I(I({}, A), {
pointerEvents: "none"
}), R = Pn(w, {
style: E
}, !0);
return M("span", {
style: D,
class: `${o.value}-disabled-compatible-wrapper`
}, [R]);
}
return w;
}, _ = () => {
var w, P;
return (w = t.title) !== null && w !== void 0 ? w : (P = n.title) === null || P === void 0 ? void 0 : P.call(n);
}, O = (w, P) => {
const $ = m.value, A = Object.keys($).find((D) => {
var E, R;
return $[D].points[0] === ((E = P.points) === null || E === void 0 ? void 0 : E[0]) && $[D].points[1] === ((R = P.points) === null || R === void 0 ? void 0 : R[1]);
});
if (A) {
const D = w.getBoundingClientRect(), E = {
top: "50%",
left: "50%"
};
A.indexOf("top") >= 0 || A.indexOf("Bottom") >= 0 ? E.top = `${D.height - P.offset[1]}px` : (A.indexOf("Top") >= 0 || A.indexOf("bottom") >= 0) && (E.top = `${-P.offset[1]}px`), A.indexOf("left") >= 0 || A.indexOf("Right") >= 0 ? E.left = `${D.width - P.offset[0]}px` : (A.indexOf("right") >= 0 || A.indexOf("Left") >= 0) && (E.left = `${-P.offset[0]}px`), w.style.transformOrigin = `${E.left} ${E.top}`;
}
}, S = L(() => s1e(o.value, t.color)), x = L(() => i["data-popover-inject"]), [C, T] = f1e(o, L(() => !x.value));
return () => {
var w, P;
const {
openClassName: $,
overlayClassName: A,
overlayStyle: D,
overlayInnerStyle: E
} = t;
let R = (P = ss((w = n.default) === null || w === void 0 ? void 0 : w.call(n))) !== null && P !== void 0 ? P : null;
R = R.length === 1 ? R[0] : R;
let N = f.value;
if (c.value === void 0 && p() && (N = !1), !R)
return null;
const V = b(Yi(R) && !Lue(R) ? R : M("span", null, [R])), B = ye({
[$ || `${o.value}-open`]: !0,
[V.props && V.props.class]: V.props && V.props.class
}), W = ye(A, {
[`${o.value}-rtl`]: l.value === "rtl"
}, S.value.className, T.value), F = I(I({}, S.value.overlayStyle), E), Q = S.value.arrowStyle, Z = I(I(I({}, i), t), {
prefixCls: o.value,
arrow: !!t.arrow,
getPopupContainer: s == null ? void 0 : s.value,
builtinPlacements: m.value,
visible: N,
ref: d,
overlayClassName: W,
overlayStyle: I(I({}, Q), D),
overlayInnerStyle: F,
onVisibleChange: v,
onPopupAlign: O,
transitionName: ts(u.value, "zoom-big-fast", t.transitionName)
});
return C(M(e1e, Z, {
default: () => [f.value ? Pn(V, {
class: B
}) : V],
arrowContent: () => M("span", {
class: `${o.value}-arrow-content`
}, null),
overlay: _
}));
};
}
}), px = sp(h1e), Yf = {
adjustX: 1,
adjustY: 1
}, qf = [0, 0], p1e = {
topLeft: {
points: ["bl", "tl"],
overflow: Yf,
offset: [0, -4],
targetOffset: qf
},
topCenter: {
points: ["bc", "tc"],
overflow: Yf,
offset: [0, -4],
targetOffset: qf
},
topRight: {
points: ["br", "tr"],
overflow: Yf,
offset: [0, -4],
targetOffset: qf
},
bottomLeft: {
points: ["tl", "bl"],
overflow: Yf,
offset: [0, 4],
targetOffset: qf
},
bottomCenter: {
points: ["tc", "bc"],
overflow: Yf,
offset: [0, 4],
targetOffset: qf
},
bottomRight: {
points: ["tr", "br"],
overflow: Yf,
offset: [0, 4],
targetOffset: qf
}
};
var v1e = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const g1e = te({
compatConfig: {
MODE: 3
},
props: {
minOverlayWidthMatchTrigger: {
type: Boolean,
default: void 0
},
arrow: {
type: Boolean,
default: !1
},
prefixCls: Y.string.def("rc-dropdown"),
transitionName: String,
overlayClassName: Y.string.def(""),
openClassName: String,
animation: Y.any,
align: Y.object,
overlayStyle: {
type: Object,
default: void 0
},
placement: Y.string.def("bottomLeft"),
overlay: Y.any,
trigger: Y.oneOfType([Y.string, Y.arrayOf(Y.string)]).def("hover"),
alignPoint: {
type: Boolean,
default: void 0
},
showAction: Y.array,
hideAction: Y.array,
getPopupContainer: Function,
visible: {
type: Boolean,
default: void 0
},
defaultVisible: {
type: Boolean,
default: !1
},
mouseEnterDelay: Y.number.def(0.15),
mouseLeaveDelay: Y.number.def(0.1)
},
emits: ["visibleChange", "overlayClick"],
setup(t, e) {
let {
slots: n,
emit: r,
expose: i
} = e;
const a = U(!!t.visible);
se(() => t.visible, (h) => {
h !== void 0 && (a.value = h);
});
const o = U();
i({
triggerRef: o
});
const s = (h) => {
t.visible === void 0 && (a.value = !1), r("overlayClick", h);
}, l = (h) => {
t.visible === void 0 && (a.value = h), r("visibleChange", h);
}, u = () => {
var h;
const p = (h = n.overlay) === null || h === void 0 ? void 0 : h.call(n), v = {
prefixCls: `${t.prefixCls}-menu`,
onClick: s
};
return M(wt, {
key: rj
}, [t.arrow && M("div", {
class: `${t.prefixCls}-arrow`
}, null), Pn(p, v, !1)]);
}, c = L(() => {
const {
minOverlayWidthMatchTrigger: h = !t.alignPoint
} = t;
return h;
}), f = () => {
var h;
const p = (h = n.default) === null || h === void 0 ? void 0 : h.call(n);
return a.value && p ? Pn(p[0], {
class: t.openClassName || `${t.prefixCls}-open`
}, !1) : p;
}, d = L(() => !t.hideAction && t.trigger.indexOf("contextmenu") !== -1 ? ["click"] : t.hideAction);
return () => {
const {
prefixCls: h,
arrow: p,
showAction: v,
overlayStyle: g,
trigger: m,
placement: y,
align: b,
getPopupContainer: _,
transitionName: O,
animation: S,
overlayClassName: x
} = t, C = v1e(t, ["prefixCls", "arrow", "showAction", "overlayStyle", "trigger", "placement", "align", "getPopupContainer", "transitionName", "animation", "overlayClassName"]);
return M(ex, j(j({}, C), {}, {
prefixCls: h,
ref: o,
popupClassName: ye(x, {
[`${h}-show-arrow`]: p
}),
popupStyle: g,
builtinPlacements: p1e,
action: m,
showAction: v,
hideAction: d.value || [],
popupPlacement: y,
popupAlign: b,
popupTransitionName: O,
popupAnimation: S,
popupVisible: a.value,
stretch: c.value ? "minWidth" : "",
onPopupVisibleChange: l,
getPopupContainer: _
}), {
popup: u,
default: f
});
};
}
}), m1e = (t) => {
const {
componentCls: e,
colorPrimary: n
} = t;
return {
[e]: {
position: "absolute",
background: "transparent",
pointerEvents: "none",
boxSizing: "border-box",
color: `var(--wave-color, ${n})`,
boxShadow: "0 0 0 0 currentcolor",
opacity: 0.2,
// =================== Motion ===================
"&.wave-motion-appear": {
transition: [`box-shadow 0.4s ${t.motionEaseOutCirc}`, `opacity 2s ${t.motionEaseOutCirc}`].join(","),
"&-active": {
boxShadow: "0 0 0 6px currentcolor",
opacity: 0
}
}
}
};
}, y1e = Sn("Wave", (t) => [m1e(t)]);
function b1e(t) {
const e = (t || "").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
return e && e[1] && e[2] && e[3] ? !(e[1] === e[2] && e[2] === e[3]) : !0;
}
function xC(t) {
return t && t !== "#fff" && t !== "#ffffff" && t !== "rgb(255, 255, 255)" && t !== "rgba(255, 255, 255, 1)" && b1e(t) && !/rgba\((?:\d*, ){3}0\)/.test(t) && // any transparent rgba color
t !== "transparent";
}
function _1e(t) {
const {
borderTopColor: e,
borderColor: n,
backgroundColor: r
} = getComputedStyle(t);
return xC(e) ? e : xC(n) ? n : xC(r) ? r : null;
}
function wC(t) {
return Number.isNaN(t) ? 0 : t;
}
const O1e = te({
props: {
target: $t(),
className: String
},
setup(t) {
const e = ae(null), [n, r] = fn(null), [i, a] = fn([]), [o, s] = fn(0), [l, u] = fn(0), [c, f] = fn(0), [d, h] = fn(0), [p, v] = fn(!1);
function g() {
const {
target: x
} = t, C = getComputedStyle(x);
r(_1e(x));
const T = C.position === "static", {
borderLeftWidth: w,
borderTopWidth: P
} = C;
s(T ? x.offsetLeft : wC(-parseFloat(w))), u(T ? x.offsetTop : wC(-parseFloat(P))), f(x.offsetWidth), h(x.offsetHeight);
const {
borderTopLeftRadius: $,
borderTopRightRadius: A,
borderBottomLeftRadius: D,
borderBottomRightRadius: E
} = C;
a([$, A, E, D].map((R) => wC(parseFloat(R))));
}
let m, y, b;
const _ = () => {
clearTimeout(b), xt.cancel(y), m == null || m.disconnect();
}, O = () => {
var x;
const C = (x = e.value) === null || x === void 0 ? void 0 : x.parentElement;
C && (lf(null, C), C.parentElement && C.parentElement.removeChild(C));
};
it(() => {
_(), b = setTimeout(() => {
O();
}, 5e3);
const {
target: x
} = t;
x && (y = xt(() => {
g(), v(!0);
}), typeof ResizeObserver < "u" && (m = new ResizeObserver(g), m.observe(x)));
}), yt(() => {
_();
});
const S = (x) => {
x.propertyName === "opacity" && O();
};
return () => {
if (!p.value)
return null;
const x = {
left: `${o.value}px`,
top: `${l.value}px`,
width: `${c.value}px`,
height: `${d.value}px`,
borderRadius: i.value.map((C) => `${C}px`).join(" ")
};
return n && (x["--wave-color"] = n.value), M(ho, {
appear: !0,
name: "wave-motion",
appearFromClass: "wave-motion-appear",
appearActiveClass: "wave-motion-appear",
appearToClass: "wave-motion-appear wave-motion-appear-active"
}, {
default: () => [M("div", {
ref: e,
class: t.className,
style: x,
onTransitionend: S
}, null)]
});
};
}
});
function S1e(t, e) {
const n = document.createElement("div");
n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", t == null || t.insertBefore(n, t == null ? void 0 : t.firstChild), lf(M(O1e, {
target: t,
className: e
}, null), n);
}
function x1e(t, e, n) {
function r() {
var i;
const a = Ts(t);
!((i = n == null ? void 0 : n.value) === null || i === void 0) && i.disabled || !a || S1e(a, e.value);
}
return r;
}
const w1e = te({
compatConfig: {
MODE: 3
},
name: "Wave",
props: {
disabled: Boolean
},
setup(t, e) {
let {
slots: n
} = e;
const r = vn(), {
prefixCls: i,
wave: a
} = It("wave", t), [, o] = y1e(i), s = x1e(r, L(() => ye(i.value, o.value)), a);
let l;
const u = () => {
Ts(r).removeEventListener("click", l, !0);
};
return it(() => {
se(() => t.disabled, () => {
u(), Tt(() => {
const c = Ts(r);
c == null || c.removeEventListener("click", l, !0), !(!c || c.nodeType !== 1 || t.disabled) && (l = (f) => {
f.target.tagName === "INPUT" || !mZ(f.target) || // No need wave
!c.getAttribute || c.getAttribute("disabled") || c.disabled || c.className.includes("disabled") || c.className.includes("-leave") || s();
}, c.addEventListener("click", l, !0));
});
}, {
immediate: !0,
flush: "post"
});
}), yt(() => {
u();
}), () => {
var c;
return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0];
};
}
});
function NU(t) {
return t === "danger" ? {
danger: !0
} : {
type: t
};
}
const C1e = () => ({
prefixCls: String,
type: String,
htmlType: {
type: String,
default: "button"
},
shape: {
type: String
},
size: {
type: String
},
loading: {
type: [Boolean, Object],
default: () => !1
},
disabled: {
type: Boolean,
default: void 0
},
ghost: {
type: Boolean,
default: void 0
},
block: {
type: Boolean,
default: void 0
},
danger: {
type: Boolean,
default: void 0
},
icon: Y.any,
href: String,
target: String,
title: String,
onClick: y1(),
onMousedown: y1()
}), a5 = (t) => {
t && (t.style.width = "0px", t.style.opacity = "0", t.style.transform = "scale(0)");
}, o5 = (t) => {
Tt(() => {
t && (t.style.width = `${t.scrollWidth}px`, t.style.opacity = "1", t.style.transform = "scale(1)");
});
}, s5 = (t) => {
t && t.style && (t.style.width = null, t.style.opacity = null, t.style.transform = null);
}, T1e = te({
compatConfig: {
MODE: 3
},
name: "LoadingIcon",
props: {
prefixCls: String,
loading: [Boolean, Object],
existIcon: Boolean
},
setup(t) {
return () => {
const {
existIcon: e,
prefixCls: n,
loading: r
} = t;
if (e)
return M("span", {
class: `${n}-loading-icon`
}, [M(ns, null, null)]);
const i = !!r;
return M(ho, {
name: `${n}-loading-icon-motion`,
onBeforeEnter: a5,
onEnter: o5,
onAfterEnter: s5,
onBeforeLeave: o5,
onLeave: (a) => {
setTimeout(() => {
a5(a);
});
},
onAfterLeave: s5
}, {
default: () => [i ? M("span", {
class: `${n}-loading-icon`
}, [M(ns, null, null)]) : null]
});
};
}
}), l5 = (t, e) => ({
// Border
[`> span, > ${t}`]: {
"&:not(:last-child)": {
[`&, & > ${t}`]: {
"&:not(:disabled)": {
borderInlineEndColor: e
}
}
},
"&:not(:first-child)": {
[`&, & > ${t}`]: {
"&:not(:disabled)": {
borderInlineStartColor: e
}
}
}
}
}), P1e = (t) => {
const {
componentCls: e,
fontSize: n,
lineWidth: r,
colorPrimaryHover: i,
colorErrorHover: a
} = t;
return {
[`${e}-group`]: [
{
position: "relative",
display: "inline-flex",
// Border
[`> span, > ${e}`]: {
"&:not(:last-child)": {
[`&, & > ${e}`]: {
borderStartEndRadius: 0,
borderEndEndRadius: 0
}
},
"&:not(:first-child)": {
marginInlineStart: -r,
[`&, & > ${e}`]: {
borderStartStartRadius: 0,
borderEndStartRadius: 0
}
}
},
[e]: {
position: "relative",
zIndex: 1,
"&:hover,\n &:focus,\n &:active": {
zIndex: 2
},
"&[disabled]": {
zIndex: 0
}
},
[`${e}-icon-only`]: {
fontSize: n
}
},
// Border Color
l5(`${e}-primary`, i),
l5(`${e}-danger`, a)
]
};
};
function $1e(t, e) {
return {
// border collapse
[`&-item:not(${e}-last-item)`]: {
marginBottom: -t.lineWidth
},
"&-item": {
"&:hover,&:focus,&:active": {
zIndex: 2
},
"&[disabled]": {
zIndex: 0
}
}
};
}
function A1e(t, e) {
return {
[`&-item:not(${e}-first-item):not(${e}-last-item)`]: {
borderRadius: 0
},
[`&-item${e}-first-item:not(${e}-last-item)`]: {
[`&, &${t}-sm, &${t}-lg`]: {
borderEndEndRadius: 0,
borderEndStartRadius: 0
}
},
[`&-item${e}-last-item:not(${e}-first-item)`]: {
[`&, &${t}-sm, &${t}-lg`]: {
borderStartStartRadius: 0,
borderStartEndRadius: 0
}
}
};
}
function E1e(t) {
const e = `${t.componentCls}-compact-vertical`;
return {
[e]: I(I({}, $1e(t, e)), A1e(t.componentCls, e))
};
}
const M1e = (t) => {
const {
componentCls: e,
iconCls: n
} = t;
return {
[e]: {
outline: "none",
position: "relative",
display: "inline-block",
fontWeight: 400,
whiteSpace: "nowrap",
textAlign: "center",
backgroundImage: "none",
backgroundColor: "transparent",
border: `${t.lineWidth}px ${t.lineType} transparent`,
cursor: "pointer",
transition: `all ${t.motionDurationMid} ${t.motionEaseInOut}`,
userSelect: "none",
touchAction: "manipulation",
lineHeight: t.lineHeight,
color: t.colorText,
"> span": {
display: "inline-block"
},
// Leave a space between icon and text.
[`> ${n} + span, > span + ${n}`]: {
marginInlineStart: t.marginXS
},
"> a": {
color: "currentColor"
},
"&:not(:disabled)": I({}, WS(t)),
// make `btn-icon-only` not too narrow
[`&-icon-only${e}-compact-item`]: {
flex: "none"
},
// Special styles for Primary Button
[`&-compact-item${e}-primary`]: {
[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]: {
position: "relative",
"&:before": {
position: "absolute",
top: -t.lineWidth,
insetInlineStart: -t.lineWidth,
display: "inline-block",
width: t.lineWidth,
height: `calc(100% + ${t.lineWidth * 2}px)`,
backgroundColor: t.colorPrimaryHover,
content: '""'
}
}
},
// Special styles for Primary Button
"&-compact-vertical-item": {
[`&${e}-primary`]: {
[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]: {
position: "relative",
"&:before": {
position: "absolute",
top: -t.lineWidth,
insetInlineStart: -t.lineWidth,
display: "inline-block",
width: `calc(100% + ${t.lineWidth * 2}px)`,
height: t.lineWidth,
backgroundColor: t.colorPrimaryHover,
content: '""'
}
}
}
}
}
};
}, Fs = (t, e) => ({
"&:not(:disabled)": {
"&:hover": t,
"&:active": e
}
}), I1e = (t) => ({
minWidth: t.controlHeight,
paddingInlineStart: 0,
paddingInlineEnd: 0,
borderRadius: "50%"
}), D1e = (t) => ({
borderRadius: t.controlHeight,
paddingInlineStart: t.controlHeight / 2,
paddingInlineEnd: t.controlHeight / 2
}), L2 = (t) => ({
cursor: "not-allowed",
borderColor: t.colorBorder,
color: t.colorTextDisabled,
backgroundColor: t.colorBgContainerDisabled,
boxShadow: "none"
}), R1 = (t, e, n, r, i, a, o) => ({
[`&${t}-background-ghost`]: I(I({
color: e || void 0,
backgroundColor: "transparent",
borderColor: n || void 0,
boxShadow: "none"
}, Fs(I({
backgroundColor: "transparent"
}, a), I({
backgroundColor: "transparent"
}, o))), {
"&:disabled": {
cursor: "not-allowed",
color: r || void 0,
borderColor: i || void 0
}
})
}), rD = (t) => ({
"&:disabled": I({}, L2(t))
}), BU = (t) => I({}, rD(t)), k1 = (t) => ({
"&:disabled": {
cursor: "not-allowed",
color: t.colorTextDisabled
}
}), zU = (t) => I(I(I(I(I({}, BU(t)), {
backgroundColor: t.colorBgContainer,
borderColor: t.colorBorder,
boxShadow: `0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`
}), Fs({
color: t.colorPrimaryHover,
borderColor: t.colorPrimaryHover
}, {
color: t.colorPrimaryActive,
borderColor: t.colorPrimaryActive
})), R1(t.componentCls, t.colorBgContainer, t.colorBgContainer, t.colorTextDisabled, t.colorBorder)), {
[`&${t.componentCls}-dangerous`]: I(I(I({
color: t.colorError,
borderColor: t.colorError
}, Fs({
color: t.colorErrorHover,
borderColor: t.colorErrorBorderHover
}, {
color: t.colorErrorActive,
borderColor: t.colorErrorActive
})), R1(t.componentCls, t.colorError, t.colorError, t.colorTextDisabled, t.colorBorder)), rD(t))
}), R1e = (t) => I(I(I(I(I({}, BU(t)), {
color: t.colorTextLightSolid,
backgroundColor: t.colorPrimary,
boxShadow: `0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`
}), Fs({
color: t.colorTextLightSolid,
backgroundColor: t.colorPrimaryHover
}, {
color: t.colorTextLightSolid,
backgroundColor: t.colorPrimaryActive
})), R1(t.componentCls, t.colorPrimary, t.colorPrimary, t.colorTextDisabled, t.colorBorder, {
color: t.colorPrimaryHover,
borderColor: t.colorPrimaryHover
}, {
color: t.colorPrimaryActive,
borderColor: t.colorPrimaryActive
})), {
[`&${t.componentCls}-dangerous`]: I(I(I({
backgroundColor: t.colorError,
boxShadow: `0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`
}, Fs({
backgroundColor: t.colorErrorHover
}, {
backgroundColor: t.colorErrorActive
})), R1(t.componentCls, t.colorError, t.colorError, t.colorTextDisabled, t.colorBorder, {
color: t.colorErrorHover,
borderColor: t.colorErrorHover
}, {
color: t.colorErrorActive,
borderColor: t.colorErrorActive
})), rD(t))
}), k1e = (t) => I(I({}, zU(t)), {
borderStyle: "dashed"
}), L1e = (t) => I(I(I({
color: t.colorLink
}, Fs({
color: t.colorLinkHover
}, {
color: t.colorLinkActive
})), k1(t)), {
[`&${t.componentCls}-dangerous`]: I(I({
color: t.colorError
}, Fs({
color: t.colorErrorHover
}, {
color: t.colorErrorActive
})), k1(t))
}), N1e = (t) => I(I(I({}, Fs({
color: t.colorText,
backgroundColor: t.colorBgTextHover
}, {
color: t.colorText,
backgroundColor: t.colorBgTextActive
})), k1(t)), {
[`&${t.componentCls}-dangerous`]: I(I({
color: t.colorError
}, k1(t)), Fs({
color: t.colorErrorHover,
backgroundColor: t.colorErrorBg
}, {
color: t.colorErrorHover,
backgroundColor: t.colorErrorBg
}))
}), B1e = (t) => I(I({}, L2(t)), {
[`&${t.componentCls}:hover`]: I({}, L2(t))
}), z1e = (t) => {
const {
componentCls: e
} = t;
return {
[`${e}-default`]: zU(t),
[`${e}-primary`]: R1e(t),
[`${e}-dashed`]: k1e(t),
[`${e}-link`]: L1e(t),
[`${e}-text`]: N1e(t),
[`${e}-disabled`]: B1e(t)
};
}, iD = function(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
const {
componentCls: n,
iconCls: r,
controlHeight: i,
fontSize: a,
lineHeight: o,
lineWidth: s,
borderRadius: l,
buttonPaddingHorizontal: u
} = t, c = Math.max(0, (i - a * o) / 2 - s), f = u - s, d = `${n}-icon-only`;
return [
// Size
{
[`${n}${e}`]: {
fontSize: a,
height: i,
padding: `${c}px ${f}px`,
borderRadius: l,
[`&${d}`]: {
width: i,
paddingInlineStart: 0,
paddingInlineEnd: 0,
[`&${n}-round`]: {
width: "auto"
},
"> span": {
transform: "scale(1.143)"
// 14px -> 16px
}
},
// Loading
[`&${n}-loading`]: {
opacity: t.opacityLoading,
cursor: "default"
},
[`${n}-loading-icon`]: {
transition: `width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`
},
[`&:not(${d}) ${n}-loading-icon > ${r}`]: {
marginInlineEnd: t.marginXS
}
}
},
// Shape - patch prefixCls again to override solid border radius style
{
[`${n}${n}-circle${e}`]: I1e(t)
},
{
[`${n}${n}-round${e}`]: D1e(t)
}
];
}, V1e = (t) => iD(t), F1e = (t) => {
const e = Bt(t, {
controlHeight: t.controlHeightSM,
padding: t.paddingXS,
buttonPaddingHorizontal: 8,
borderRadius: t.borderRadiusSM
});
return iD(e, `${t.componentCls}-sm`);
}, W1e = (t) => {
const e = Bt(t, {
controlHeight: t.controlHeightLG,
fontSize: t.fontSizeLG,
borderRadius: t.borderRadiusLG
});
return iD(e, `${t.componentCls}-lg`);
}, Q1e = (t) => {
const {
componentCls: e
} = t;
return {
[e]: {
[`&${e}-block`]: {
width: "100%"
}
}
};
}, H1e = Sn("Button", (t) => {
const {
controlTmpOutline: e,
paddingContentHorizontal: n
} = t, r = Bt(t, {
colorOutlineDefault: e,
buttonPaddingHorizontal: n
});
return [
// Shared
M1e(r),
// Size
F1e(r),
V1e(r),
W1e(r),
// Block
Q1e(r),
// Group (type, ghost, danger, disabled, loading)
z1e(r),
// Button Group
P1e(r),
// Space Compact
dx(t, {
focus: !1
}),
E1e(t)
];
}), G1e = () => ({
prefixCls: String,
size: {
type: String
}
}), VU = zI(), N2 = te({
compatConfig: {
MODE: 3
},
name: "AButtonGroup",
props: G1e(),
setup(t, e) {
let {
slots: n
} = e;
const {
prefixCls: r,
direction: i
} = It("btn-group", t), [, , a] = cp();
VU.useProvide(tn({
size: L(() => t.size)
}));
const o = L(() => {
const {
size: s
} = t;
let l = "";
switch (s) {
case "large":
l = "lg";
break;
case "small":
l = "sm";
break;
case "middle":
case void 0:
break;
default:
Gi(!s, "Button.Group", "Invalid prop `size`.");
}
return {
[`${r.value}`]: !0,
[`${r.value}-${l}`]: l,
[`${r.value}-rtl`]: i.value === "rtl",
[a.value]: !0
};
});
return () => {
var s;
return M("div", {
class: o.value
}, [Yn((s = n.default) === null || s === void 0 ? void 0 : s.call(n))]);
};
}
}), u5 = /^[\u4e00-\u9fa5]{2}$/, c5 = u5.test.bind(u5);
function My(t) {
return t === "text" || t === "link";
}
const Xr = te({
compatConfig: {
MODE: 3
},
name: "AButton",
inheritAttrs: !1,
__ANT_BUTTON: !0,
props: sr(C1e(), {
type: "default"
}),
slots: Object,
// emits: ['click', 'mousedown'],
setup(t, e) {
let {
slots: n,
attrs: r,
emit: i,
expose: a
} = e;
const {
prefixCls: o,
autoInsertSpaceInButton: s,
direction: l,
size: u
} = It("btn", t), [c, f] = H1e(o), d = VU.useInject(), h = Jo(), p = L(() => {
var E;
return (E = t.disabled) !== null && E !== void 0 ? E : h.value;
}), v = ae(null), g = ae(void 0);
let m = !1;
const y = ae(!1), b = ae(!1), _ = L(() => s.value !== !1), {
compactSize: O,
compactItemClassnames: S
} = ux(o, l), x = L(() => typeof t.loading == "object" && t.loading.delay ? t.loading.delay || !0 : !!t.loading);
se(x, (E) => {
clearTimeout(g.value), typeof x.value == "number" ? g.value = setTimeout(() => {
y.value = E;
}, x.value) : y.value = E;
}, {
immediate: !0
});
const C = L(() => {
const {
type: E,
shape: R = "default",
ghost: N,
block: V,
danger: B
} = t, W = o.value, F = {
large: "lg",
small: "sm",
middle: void 0
}, Q = O.value || (d == null ? void 0 : d.size) || u.value, Z = Q && F[Q] || "";
return [S.value, {
[f.value]: !0,
[`${W}`]: !0,
[`${W}-${R}`]: R !== "default" && R,
[`${W}-${E}`]: E,
[`${W}-${Z}`]: Z,
[`${W}-loading`]: y.value,
[`${W}-background-ghost`]: N && !My(E),
[`${W}-two-chinese-chars`]: b.value && _.value,
[`${W}-block`]: V,
[`${W}-dangerous`]: !!B,
[`${W}-rtl`]: l.value === "rtl"
}];
}), T = () => {
const E = v.value;
if (!E || s.value === !1)
return;
const R = E.textContent;
m && c5(R) ? b.value || (b.value = !0) : b.value && (b.value = !1);
}, w = (E) => {
if (y.value || p.value) {
E.preventDefault();
return;
}
i("click", E);
}, P = (E) => {
i("mousedown", E);
}, $ = (E, R) => {
const N = R ? " " : "";
if (E.type === $S) {
let V = E.children.trim();
return c5(V) && (V = V.split("").join(N)), M("span", null, [V]);
}
return E;
};
return ht(() => {
Gi(!(t.ghost && My(t.type)), "Button", "`link` or `text` button can't be a `ghost` button.");
}), it(T), ap(T), yt(() => {
g.value && clearTimeout(g.value);
}), a({
focus: () => {
var E;
(E = v.value) === null || E === void 0 || E.focus();
},
blur: () => {
var E;
(E = v.value) === null || E === void 0 || E.blur();
}
}), () => {
var E, R;
const {
icon: N = (E = n.icon) === null || E === void 0 ? void 0 : E.call(n)
} = t, V = Yn((R = n.default) === null || R === void 0 ? void 0 : R.call(n));
m = V.length === 1 && !N && !My(t.type);
const {
type: B,
htmlType: W,
href: F,
title: Q,
target: Z
} = t, ne = y.value ? "loading" : N, ee = I(I({}, r), {
title: Q,
disabled: p.value,
class: [C.value, r.class, {
[`${o.value}-icon-only`]: V.length === 0 && !!ne
}],
onClick: w,
onMousedown: P
});
p.value || delete ee.disabled;
const oe = N && !y.value ? N : M(T1e, {
existIcon: !!N,
prefixCls: o.value,
loading: !!y.value
}, null), K = V.map((X) => $(X, m && _.value));
if (F !== void 0)
return c(M("a", j(j({}, ee), {}, {
href: F,
target: Z,
ref: v
}), [oe, K]));
let ie = M("button", j(j({}, ee), {}, {
ref: v,
type: W
}), [oe, K]);
if (!My(B)) {
const X = /* @__PURE__ */ function() {
return ie;
}();
ie = M(w1e, {
ref: "wave",
disabled: !!y.value
}, {
default: () => [X]
});
}
return c(ie);
};
}
});
Xr.Group = N2;
Xr.install = function(t) {
return t.component(Xr.name, Xr), t.component(N2.name, N2), t;
};
var j1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" };
function f5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Z1e(t, i, n[i]);
});
}
return t;
}
function Z1e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var vx = function(e, n) {
var r = f5({}, e, n.attrs);
return M(lt, f5({}, r, {
icon: j1e
}), null);
};
vx.displayName = "EllipsisOutlined";
vx.inheritAttrs = !1;
var U1e = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
function d5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
X1e(t, i, n[i]);
});
}
return t;
}
function X1e(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var gx = function(e, n) {
var r = d5({}, e, n.attrs);
return M(lt, d5({}, r, {
icon: U1e
}), null);
};
gx.displayName = "RightOutlined";
gx.inheritAttrs = !1;
const FU = Symbol("OverrideContextKey"), WU = () => Ge(FU, void 0), Y1e = (t) => {
var e, n, r;
const {
prefixCls: i,
mode: a,
selectable: o,
validator: s,
onClick: l,
expandIcon: u
} = WU() || {};
pt(FU, {
prefixCls: L(() => {
var c, f;
return (f = (c = t.prefixCls) === null || c === void 0 ? void 0 : c.value) !== null && f !== void 0 ? f : i == null ? void 0 : i.value;
}),
mode: L(() => {
var c, f;
return (f = (c = t.mode) === null || c === void 0 ? void 0 : c.value) !== null && f !== void 0 ? f : a == null ? void 0 : a.value;
}),
selectable: L(() => {
var c, f;
return (f = (c = t.selectable) === null || c === void 0 ? void 0 : c.value) !== null && f !== void 0 ? f : o == null ? void 0 : o.value;
}),
validator: (e = t.validator) !== null && e !== void 0 ? e : s,
onClick: (n = t.onClick) !== null && n !== void 0 ? n : l,
expandIcon: (r = t.expandIcon) !== null && r !== void 0 ? r : u == null ? void 0 : u.value
});
};
function q1e(t, e, n, r) {
let i;
if (i !== void 0)
return !!i;
if (t === e)
return !0;
if (typeof t != "object" || !t || typeof e != "object" || !e)
return !1;
const a = Object.keys(t), o = Object.keys(e);
if (a.length !== o.length)
return !1;
const s = Object.prototype.hasOwnProperty.bind(e);
for (let l = 0; l < a.length; l++) {
const u = a[l];
if (!s(u))
return !1;
const c = t[u], f = e[u];
if (i = void 0, i === !1 || i === void 0 && c !== f)
return !1;
}
return !0;
}
function Kp(t, e) {
return q1e(Ko(t), Ko(e));
}
const QU = Symbol("menuContextKey"), HU = (t) => {
pt(QU, t);
}, sl = () => Ge(QU), GU = Symbol("ForceRenderKey"), K1e = (t) => {
pt(GU, t);
}, jU = () => Ge(GU, !1), ZU = Symbol("menuFirstLevelContextKey"), UU = (t) => {
pt(ZU, t);
}, J1e = () => Ge(ZU, !0), L1 = te({
compatConfig: {
MODE: 3
},
name: "MenuContextProvider",
inheritAttrs: !1,
props: {
mode: {
type: String,
default: void 0
},
overflowDisabled: {
type: Boolean,
default: void 0
}
},
setup(t, e) {
let {
slots: n
} = e;
const r = sl(), i = I({}, r);
return t.mode !== void 0 && (i.mode = Nn(t, "mode")), t.overflowDisabled !== void 0 && (i.overflowDisabled = Nn(t, "overflowDisabled")), HU(i), () => {
var a;
return (a = n.default) === null || a === void 0 ? void 0 : a.call(n);
};
}
}), eOe = HU, tOe = Symbol("siderCollapsed"), Iy = "$$__vc-menu-more__key", XU = Symbol("KeyPathContext"), aD = () => Ge(XU, {
parentEventKeys: L(() => []),
parentKeys: L(() => []),
parentInfo: {}
}), nOe = (t, e, n) => {
const {
parentEventKeys: r,
parentKeys: i
} = aD(), a = L(() => [...r.value, t]), o = L(() => [...i.value, e]);
return pt(XU, {
parentEventKeys: a,
parentKeys: o,
parentInfo: n
}), o;
}, YU = Symbol("measure"), h5 = te({
compatConfig: {
MODE: 3
},
setup(t, e) {
let {
slots: n
} = e;
return pt(YU, !0), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
}), oD = () => Ge(YU, !1), rOe = nOe;
function qU(t) {
const {
mode: e,
rtl: n,
inlineIndent: r
} = sl();
return L(() => e.value !== "inline" ? null : n.value ? {
paddingRight: `${t.value * r.value}px`
} : {
paddingLeft: `${t.value * r.value}px`
});
}
let iOe = 0;
const aOe = () => ({
id: String,
role: String,
disabled: Boolean,
danger: Boolean,
title: {
type: [String, Boolean],
default: void 0
},
icon: Y.any,
onMouseenter: Function,
onMouseleave: Function,
onClick: Function,
onKeydown: Function,
onFocus: Function,
// Internal user prop
originItemValue: $t()
}), Mh = te({
compatConfig: {
MODE: 3
},
name: "AMenuItem",
inheritAttrs: !1,
props: aOe(),
slots: Object,
setup(t, e) {
let {
slots: n,
emit: r,
attrs: i
} = e;
const a = vn(), o = oD(), s = typeof a.vnode.key == "symbol" ? String(a.vnode.key) : a.vnode.key;
Gi(typeof a.vnode.key != "symbol", "MenuItem", `MenuItem \`:key="${String(s)}"\` not support Symbol type`);
const l = `menu_item_${++iOe}_$$_${s}`, {
parentEventKeys: u,
parentKeys: c
} = aD(), {
prefixCls: f,
activeKeys: d,
disabled: h,
changeActiveKeys: p,
rtl: v,
inlineCollapsed: g,
siderCollapsed: m,
onItemClick: y,
selectedKeys: b,
registerMenuInfo: _,
unRegisterMenuInfo: O
} = sl(), S = J1e(), x = ae(!1), C = L(() => [...c.value, s]);
_(l, {
eventKey: l,
key: s,
parentEventKeys: u,
parentKeys: c,
isLeaf: !0
}), yt(() => {
O(l);
}), se(d, () => {
x.value = !!d.value.find((F) => F === s);
}, {
immediate: !0
});
const w = L(() => h.value || t.disabled), P = L(() => b.value.includes(s)), $ = L(() => {
const F = `${f.value}-item`;
return {
[`${F}`]: !0,
[`${F}-danger`]: t.danger,
[`${F}-active`]: x.value,
[`${F}-selected`]: P.value,
[`${F}-disabled`]: w.value
};
}), A = (F) => ({
key: s,
eventKey: l,
keyPath: C.value,
eventKeyPath: [...u.value, l],
domEvent: F,
item: I(I({}, t), i)
}), D = (F) => {
if (w.value)
return;
const Q = A(F);
r("click", F), y(Q);
}, E = (F) => {
w.value || (p(C.value), r("mouseenter", F));
}, R = (F) => {
w.value || (p([]), r("mouseleave", F));
}, N = (F) => {
if (r("keydown", F), F.which === ge.ENTER) {
const Q = A(F);
r("click", F), y(Q);
}
}, V = (F) => {
p(C.value), r("focus", F);
}, B = (F, Q) => {
const Z = M("span", {
class: `${f.value}-title-content`
}, [Q]);
return (!F || Yi(Q) && Q.type === "span") && Q && g.value && S && typeof Q == "string" ? M("div", {
class: `${f.value}-inline-collapsed-noicon`
}, [Q.charAt(0)]) : Z;
}, W = qU(L(() => C.value.length));
return () => {
var F, Q, Z, ne, ee;
if (o) return null;
const oe = (F = t.title) !== null && F !== void 0 ? F : (Q = n.title) === null || Q === void 0 ? void 0 : Q.call(n), K = Yn((Z = n.default) === null || Z === void 0 ? void 0 : Z.call(n)), ie = K.length;
let X = oe;
typeof oe > "u" ? X = S && ie ? K : "" : oe === !1 && (X = "");
const H = {
title: X
};
!m.value && !g.value && (H.title = null, H.open = !1);
const G = {};
t.role === "option" && (G["aria-selected"] = P.value);
const re = (ne = t.icon) !== null && ne !== void 0 ? ne : (ee = n.icon) === null || ee === void 0 ? void 0 : ee.call(n, t);
return M(px, j(j({}, H), {}, {
placement: v.value ? "left" : "right",
overlayClassName: `${f.value}-inline-collapsed-tooltip`
}), {
default: () => [M(Is.Item, j(j(j({
component: "li"
}, i), {}, {
id: t.id,
style: I(I({}, i.style || {}), W.value),
class: [$.value, {
[`${i.class}`]: !!i.class,
[`${f.value}-item-only-child`]: (re ? ie + 1 : ie) === 1
}],
role: t.role || "menuitem",
tabindex: t.disabled ? null : -1,
"data-menu-id": s,
"aria-disabled": t.disabled
}, G), {}, {
onMouseenter: E,
onMouseleave: R,
onClick: D,
onKeydown: N,
onFocus: V,
title: typeof oe == "string" ? oe : void 0
}), {
default: () => [Pn(typeof re == "function" ? re(t.originItemValue) : re, {
class: `${f.value}-item-icon`
}, !1), B(re, K)]
})]
});
};
}
}), Dl = {
adjustX: 1,
adjustY: 1
}, oOe = {
topLeft: {
points: ["bl", "tl"],
overflow: Dl,
offset: [0, -7]
},
bottomLeft: {
points: ["tl", "bl"],
overflow: Dl,
offset: [0, 7]
},
leftTop: {
points: ["tr", "tl"],
overflow: Dl,
offset: [-4, 0]
},
rightTop: {
points: ["tl", "tr"],
overflow: Dl,
offset: [4, 0]
}
}, sOe = {
topLeft: {
points: ["bl", "tl"],
overflow: Dl,
offset: [0, -7]
},
bottomLeft: {
points: ["tl", "bl"],
overflow: Dl,
offset: [0, 7]
},
rightTop: {
points: ["tr", "tl"],
overflow: Dl,
offset: [-4, 0]
},
leftTop: {
points: ["tl", "tr"],
overflow: Dl,
offset: [4, 0]
}
}, lOe = {
horizontal: "bottomLeft",
vertical: "rightTop",
"vertical-left": "rightTop",
"vertical-right": "leftTop"
}, p5 = te({
compatConfig: {
MODE: 3
},
name: "PopupTrigger",
inheritAttrs: !1,
props: {
prefixCls: String,
mode: String,
visible: Boolean,
// popup: React.ReactNode;
popupClassName: String,
popupOffset: Array,
disabled: Boolean,
onVisibleChange: Function
},
slots: Object,
emits: ["visibleChange"],
setup(t, e) {
let {
slots: n,
emit: r
} = e;
const i = ae(!1), {
getPopupContainer: a,
rtl: o,
subMenuOpenDelay: s,
subMenuCloseDelay: l,
builtinPlacements: u,
triggerSubMenuAction: c,
forceSubMenuRender: f,
motion: d,
defaultMotions: h,
rootClassName: p
} = sl(), v = jU(), g = L(() => o.value ? I(I({}, sOe), u.value) : I(I({}, oOe), u.value)), m = L(() => lOe[t.mode]), y = ae();
se(() => t.visible, (O) => {
xt.cancel(y.value), y.value = xt(() => {
i.value = O;
});
}, {
immediate: !0
}), yt(() => {
xt.cancel(y.value);
});
const b = (O) => {
r("visibleChange", O);
}, _ = L(() => {
var O, S;
const x = d.value || ((O = h.value) === null || O === void 0 ? void 0 : O[t.mode]) || ((S = h.value) === null || S === void 0 ? void 0 : S.other), C = typeof x == "function" ? x() : x;
return C ? m0(C.name, {
css: !0
}) : void 0;
});
return () => {
const {
prefixCls: O,
popupClassName: S,
mode: x,
popupOffset: C,
disabled: T
} = t;
return M(ex, {
prefixCls: O,
popupClassName: ye(`${O}-popup`, {
[`${O}-rtl`]: o.value
}, S, p.value),
stretch: x === "horizontal" ? "minWidth" : null,
getPopupContainer: a.value,
builtinPlacements: g.value,
popupPlacement: m.value,
popupVisible: i.value,
popupAlign: C && {
offset: C
},
action: T ? [] : [c.value],
mouseEnterDelay: s.value,
mouseLeaveDelay: l.value,
onPopupVisibleChange: b,
forceRender: v || f.value,
popupAnimation: _.value
}, {
popup: n.popup,
default: n.default
});
};
}
}), sD = (t, e) => {
let {
slots: n,
attrs: r
} = e;
var i;
const {
prefixCls: a,
mode: o
} = sl();
return M("ul", j(j({}, r), {}, {
class: ye(a.value, `${a.value}-sub`, `${a.value}-${o.value === "inline" ? "inline" : "vertical"}`),
"data-menu-list": !0
}), [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)]);
};
sD.displayName = "SubMenuList";
const uOe = te({
compatConfig: {
MODE: 3
},
name: "InlineSubMenuList",
inheritAttrs: !1,
props: {
id: String,
open: Boolean,
keyPath: Array
},
setup(t, e) {
let {
slots: n
} = e;
const r = L(() => "inline"), {
motion: i,
mode: a,
defaultMotions: o
} = sl(), s = L(() => a.value === r.value), l = U(!s.value), u = L(() => s.value ? t.open : !1);
se(a, () => {
s.value && (l.value = !1);
}, {
flush: "post"
});
const c = L(() => {
var f, d;
const h = i.value || ((f = o.value) === null || f === void 0 ? void 0 : f[r.value]) || ((d = o.value) === null || d === void 0 ? void 0 : d.other), p = typeof h == "function" ? h() : h;
return I(I({}, p), {
appear: t.keyPath.length <= 1
});
});
return () => {
var f;
return l.value ? null : M(L1, {
mode: r.value
}, {
default: () => [M(ho, c.value, {
default: () => [Oi(M(sD, {
id: t.id
}, {
default: () => [(f = n.default) === null || f === void 0 ? void 0 : f.call(n)]
}), [[zs, u.value]])]
})]
});
};
}
});
let v5 = 0;
const cOe = () => ({
icon: Y.any,
title: Y.any,
disabled: Boolean,
level: Number,
popupClassName: String,
popupOffset: Array,
internalPopupClose: Boolean,
eventKey: String,
expandIcon: Function,
theme: String,
onMouseenter: Function,
onMouseleave: Function,
onTitleClick: Function,
// Internal user prop
originItemValue: $t()
}), Ih = te({
compatConfig: {
MODE: 3
},
name: "ASubMenu",
inheritAttrs: !1,
props: cOe(),
slots: Object,
setup(t, e) {
let {
slots: n,
attrs: r,
emit: i
} = e;
var a, o;
UU(!1);
const s = oD(), l = vn(), u = typeof l.vnode.key == "symbol" ? String(l.vnode.key) : l.vnode.key;
Gi(typeof l.vnode.key != "symbol", "SubMenu", `SubMenu \`:key="${String(u)}"\` not support Symbol type`);
const c = i2(u) ? u : `sub_menu_${++v5}_$$_not_set_key`, f = (a = t.eventKey) !== null && a !== void 0 ? a : i2(u) ? `sub_menu_${++v5}_$$_${u}` : c, {
parentEventKeys: d,
parentInfo: h,
parentKeys: p
} = aD(), v = L(() => [...p.value, c]), g = ae([]), m = {
eventKey: f,
key: c,
parentEventKeys: d,
childrenEventKeys: g,
parentKeys: p
};
(o = h.childrenEventKeys) === null || o === void 0 || o.value.push(f), yt(() => {
var he;
h.childrenEventKeys && (h.childrenEventKeys.value = (he = h.childrenEventKeys) === null || he === void 0 ? void 0 : he.value.filter((Te) => Te != f));
}), rOe(f, c, m);
const {
prefixCls: y,
activeKeys: b,
disabled: _,
changeActiveKeys: O,
mode: S,
inlineCollapsed: x,
openKeys: C,
overflowDisabled: T,
onOpenChange: w,
registerMenuInfo: P,
unRegisterMenuInfo: $,
selectedSubMenuKeys: A,
expandIcon: D,
theme: E
} = sl(), R = u != null, N = !s && (jU() || !R);
K1e(N), (s && R || !s && !R || N) && (P(f, m), yt(() => {
$(f);
}));
const V = L(() => `${y.value}-submenu`), B = L(() => _.value || t.disabled), W = ae(), F = ae(), Q = L(() => C.value.includes(c)), Z = L(() => !T.value && Q.value), ne = L(() => A.value.includes(c)), ee = ae(!1);
se(b, () => {
ee.value = !!b.value.find((he) => he === c);
}, {
immediate: !0
});
const oe = (he) => {
B.value || (i("titleClick", he, c), S.value === "inline" && w(c, !Q.value));
}, K = (he) => {
B.value || (O(v.value), i("mouseenter", he));
}, ie = (he) => {
B.value || (O([]), i("mouseleave", he));
}, X = qU(L(() => v.value.length)), H = (he) => {
S.value !== "inline" && w(c, he);
}, G = () => {
O(v.value);
}, re = f && `${f}-popup`, fe = L(() => ye(y.value, `${y.value}-${t.theme || E.value}`, t.popupClassName)), de = (he, Te) => {
if (!Te)
return x.value && !p.value.length && he && typeof he == "string" ? M("div", {
class: `${y.value}-inline-collapsed-noicon`
}, [he.charAt(0)]) : M("span", {
class: `${y.value}-title-content`
}, [he]);
const ze = Yi(he) && he.type === "span";
return M(wt, null, [Pn(typeof Te == "function" ? Te(t.originItemValue) : Te, {
class: `${y.value}-item-icon`
}, !1), ze ? he : M("span", {
class: `${y.value}-title-content`
}, [he])]);
}, Ee = L(() => S.value !== "inline" && v.value.length > 1 ? "vertical" : S.value), $e = L(() => S.value === "horizontal" ? "vertical" : S.value), Se = L(() => Ee.value === "horizontal" ? "vertical" : Ee.value), be = () => {
var he, Te;
const ze = V.value, ut = (he = t.icon) !== null && he !== void 0 ? he : (Te = n.icon) === null || Te === void 0 ? void 0 : Te.call(n, t), ct = t.expandIcon || n.expandIcon || D.value, Dt = de(RS(n, t, "title"), ut);
return M("div", {
style: X.value,
class: `${ze}-title`,
tabindex: B.value ? null : -1,
ref: W,
title: typeof Dt == "string" ? Dt : null,
"data-menu-id": c,
"aria-expanded": Z.value,
"aria-haspopup": !0,
"aria-controls": re,
"aria-disabled": B.value,
onClick: oe,
onFocus: G
}, [Dt, S.value !== "horizontal" && ct ? ct(I(I({}, t), {
isOpen: Z.value
})) : M("i", {
class: `${ze}-arrow`
}, null)]);
};
return () => {
var he;
if (s)
return R ? (he = n.default) === null || he === void 0 ? void 0 : he.call(n) : null;
const Te = V.value;
let ze = () => null;
if (!T.value && S.value !== "inline") {
const ut = S.value === "horizontal" ? [0, 8] : [10, 0];
ze = () => M(p5, {
mode: Ee.value,
prefixCls: Te,
visible: !t.internalPopupClose && Z.value,
popupClassName: fe.value,
popupOffset: t.popupOffset || ut,
disabled: B.value,
onVisibleChange: H
}, {
default: () => [be()],
popup: () => M(L1, {
mode: Se.value
}, {
default: () => [M(sD, {
id: re,
ref: F
}, {
default: n.default
})]
})
});
} else
ze = () => M(p5, null, {
default: be
});
return M(L1, {
mode: $e.value
}, {
default: () => [M(Is.Item, j(j({
component: "li"
}, r), {}, {
role: "none",
class: ye(Te, `${Te}-${S.value}`, r.class, {
[`${Te}-open`]: Z.value,
[`${Te}-active`]: ee.value,
[`${Te}-selected`]: ne.value,
[`${Te}-disabled`]: B.value
}),
onMouseenter: K,
onMouseleave: ie,
"data-submenu-id": c
}), {
default: () => M(wt, null, [ze(), !T.value && M(uOe, {
id: re,
open: Z.value,
keyPath: v.value
}, {
default: n.default
})])
})]
});
};
}
});
function KU(t, e) {
return t.classList ? t.classList.contains(e) : ` ${t.className} `.indexOf(` ${e} `) > -1;
}
function g5(t, e) {
t.classList ? t.classList.add(e) : KU(t, e) || (t.className = `${t.className} ${e}`);
}
function m5(t, e) {
if (t.classList)
t.classList.remove(e);
else if (KU(t, e)) {
const n = t.className;
t.className = ` ${n} `.replace(` ${e} `, " ");
}
}
const lD = function() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
return {
name: t,
appear: e,
css: !0,
onBeforeEnter: (n) => {
n.style.height = "0px", n.style.opacity = "0", g5(n, t);
},
onEnter: (n) => {
Tt(() => {
n.style.height = `${n.scrollHeight}px`, n.style.opacity = "1";
});
},
onAfterEnter: (n) => {
n && (m5(n, t), n.style.height = null, n.style.opacity = null);
},
onBeforeLeave: (n) => {
g5(n, t), n.style.height = `${n.offsetHeight}px`, n.style.opacity = null;
},
onLeave: (n) => {
setTimeout(() => {
n.style.height = "0px", n.style.opacity = "0";
});
},
onAfterLeave: (n) => {
n && (m5(n, t), n.style && (n.style.height = null, n.style.opacity = null));
}
};
}, fOe = () => ({
title: Y.any,
// Internal user prop
originItemValue: $t()
}), N1 = te({
compatConfig: {
MODE: 3
},
name: "AMenuItemGroup",
inheritAttrs: !1,
props: fOe(),
slots: Object,
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
prefixCls: i
} = sl(), a = L(() => `${i.value}-item-group`), o = oD();
return () => {
var s, l;
return o ? (s = n.default) === null || s === void 0 ? void 0 : s.call(n) : M("li", j(j({}, r), {}, {
onClick: (u) => u.stopPropagation(),
class: a.value
}), [M("div", {
title: typeof t.title == "string" ? t.title : void 0,
class: `${a.value}-title`
}, [RS(n, t, "title")]), M("ul", {
class: `${a.value}-list`
}, [(l = n.default) === null || l === void 0 ? void 0 : l.call(n)])]);
};
}
}), dOe = () => ({
prefixCls: String,
dashed: Boolean
}), B1 = te({
compatConfig: {
MODE: 3
},
name: "AMenuDivider",
props: dOe(),
setup(t) {
const {
prefixCls: e
} = sl(), n = L(() => ({
[`${e.value}-item-divider`]: !0,
[`${e.value}-item-divider-dashed`]: !!t.dashed
}));
return () => M("li", {
class: n.value
}, null);
}
});
var hOe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
function B2(t, e, n) {
return (t || []).map((r, i) => {
if (r && typeof r == "object") {
const a = r, {
label: o,
children: s,
key: l,
type: u
} = a, c = hOe(a, ["label", "children", "key", "type"]), f = l ?? `tmp-${i}`, d = n ? n.parentKeys.slice() : [], h = [], p = {
eventKey: f,
key: f,
parentEventKeys: U(d),
parentKeys: U(d),
childrenEventKeys: U(h),
isLeaf: !1
};
if (s || u === "group") {
if (u === "group") {
const g = B2(s, e, n);
return M(N1, j(j({
key: f
}, c), {}, {
title: o,
originItemValue: r
}), {
default: () => [g]
});
}
e.set(f, p), n && n.childrenEventKeys.push(f);
const v = B2(s, e, {
childrenEventKeys: h,
parentKeys: [].concat(d, f)
});
return M(Ih, j(j({
key: f
}, c), {}, {
title: o,
originItemValue: r
}), {
default: () => [v]
});
}
return u === "divider" ? M(B1, j({
key: f
}, c), null) : (p.isLeaf = !0, e.set(f, p), M(Mh, j(j({
key: f
}, c), {}, {
originItemValue: r
}), {
default: () => [o]
}));
}
return null;
}).filter((r) => r);
}
function pOe(t) {
const e = ae([]), n = ae(!1), r = ae(/* @__PURE__ */ new Map());
return se(() => t.items, () => {
const i = /* @__PURE__ */ new Map();
n.value = !1, t.items ? (n.value = !0, e.value = B2(t.items, i)) : e.value = void 0, r.value = i;
}, {
immediate: !0,
deep: !0
}), {
itemsNodes: e,
store: r,
hasItmes: n
};
}
const vOe = (t) => {
const {
componentCls: e,
motionDurationSlow: n,
menuHorizontalHeight: r,
colorSplit: i,
lineWidth: a,
lineType: o,
menuItemPaddingInline: s
} = t;
return {
[`${e}-horizontal`]: {
lineHeight: `${r}px`,
border: 0,
borderBottom: `${a}px ${o} ${i}`,
boxShadow: "none",
"&::after": {
display: "block",
clear: "both",
height: 0,
content: '"\\20"'
},
// ======================= Item =======================
[`${e}-item, ${e}-submenu`]: {
position: "relative",
display: "inline-block",
verticalAlign: "bottom",
paddingInline: s
},
[`> ${e}-item:hover,
> ${e}-item-active,
> ${e}-submenu ${e}-submenu-title:hover`]: {
backgroundColor: "transparent"
},
[`${e}-item, ${e}-submenu-title`]: {
transition: [`border-color ${n}`, `background ${n}`].join(",")
},
// ===================== Sub Menu =====================
[`${e}-submenu-arrow`]: {
display: "none"
}
}
};
}, gOe = (t) => {
let {
componentCls: e,
menuArrowOffset: n
} = t;
return {
[`${e}-rtl`]: {
direction: "rtl"
},
[`${e}-submenu-rtl`]: {
transformOrigin: "100% 0"
},
// Vertical Arrow
[`${e}-rtl${e}-vertical,
${e}-submenu-rtl ${e}-vertical`]: {
[`${e}-submenu-arrow`]: {
"&::before": {
transform: `rotate(-45deg) translateY(-${n})`
},
"&::after": {
transform: `rotate(45deg) translateY(${n})`
}
}
}
};
}, y5 = (t) => I({}, h0(t)), b5 = (t, e) => {
const {
componentCls: n,
colorItemText: r,
colorItemTextSelected: i,
colorGroupTitle: a,
colorItemBg: o,
colorSubItemBg: s,
colorItemBgSelected: l,
colorActiveBarHeight: u,
colorActiveBarWidth: c,
colorActiveBarBorderSize: f,
motionDurationSlow: d,
motionEaseInOut: h,
motionEaseOut: p,
menuItemPaddingInline: v,
motionDurationMid: g,
colorItemTextHover: m,
lineType: y,
colorSplit: b,
// Disabled
colorItemTextDisabled: _,
// Danger
colorDangerItemText: O,
colorDangerItemTextHover: S,
colorDangerItemTextSelected: x,
colorDangerItemBgActive: C,
colorDangerItemBgSelected: T,
colorItemBgHover: w,
menuSubMenuBg: P,
// Horizontal
colorItemTextSelectedHorizontal: $,
colorItemBgSelectedHorizontal: A
} = t;
return {
[`${n}-${e}`]: {
color: r,
background: o,
[`&${n}-root:focus-visible`]: I({}, y5(t)),
// ======================== Item ========================
[`${n}-item-group-title`]: {
color: a
},
[`${n}-submenu-selected`]: {
[`> ${n}-submenu-title`]: {
color: i
}
},
// Disabled
[`${n}-item-disabled, ${n}-submenu-disabled`]: {
color: `${_} !important`
},
// Hover
[`${n}-item:hover, ${n}-submenu-title:hover`]: {
[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
color: m
}
},
[`&:not(${n}-horizontal)`]: {
[`${n}-item:not(${n}-item-selected)`]: {
"&:hover": {
backgroundColor: w
},
"&:active": {
backgroundColor: l
}
},
[`${n}-submenu-title`]: {
"&:hover": {
backgroundColor: w
},
"&:active": {
backgroundColor: l
}
}
},
// Danger - only Item has
[`${n}-item-danger`]: {
color: O,
[`&${n}-item:hover`]: {
[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]: {
color: S
}
},
[`&${n}-item:active`]: {
background: C
}
},
[`${n}-item a`]: {
"&, &:hover": {
color: "inherit"
}
},
[`${n}-item-selected`]: {
color: i,
// Danger
[`&${n}-item-danger`]: {
color: x
},
"a, a:hover": {
color: "inherit"
}
},
[`& ${n}-item-selected`]: {
backgroundColor: l,
// Danger
[`&${n}-item-danger`]: {
backgroundColor: T
}
},
[`${n}-item, ${n}-submenu-title`]: {
[`&:not(${n}-item-disabled):focus-visible`]: I({}, y5(t))
},
[`&${n}-submenu > ${n}`]: {
backgroundColor: P
},
[`&${n}-popup > ${n}`]: {
backgroundColor: o
},
// ====================== Horizontal ======================
[`&${n}-horizontal`]: I(I({}, e === "dark" ? {
borderBottom: 0
} : {}), {
[`> ${n}-item, > ${n}-submenu`]: {
top: f,
marginTop: -f,
marginBottom: 0,
borderRadius: 0,
"&::after": {
position: "absolute",
insetInline: v,
bottom: 0,
borderBottom: `${u}px solid transparent`,
transition: `border-color ${d} ${h}`,
content: '""'
},
"&:hover, &-active, &-open": {
"&::after": {
borderBottomWidth: u,
borderBottomColor: $
}
},
"&-selected": {
color: $,
backgroundColor: A,
"&::after": {
borderBottomWidth: u,
borderBottomColor: $
}
}
}
}),
// ================== Inline & Vertical ===================
//
[`&${n}-root`]: {
[`&${n}-inline, &${n}-vertical`]: {
borderInlineEnd: `${f}px ${y} ${b}`
}
},
// ======================== Inline ========================
[`&${n}-inline`]: {
// Sub
[`${n}-sub${n}-inline`]: {
background: s
},
// Item
[`${n}-item, ${n}-submenu-title`]: f && c ? {
width: `calc(100% + ${f}px)`
} : {},
[`${n}-item`]: {
position: "relative",
"&::after": {
position: "absolute",
insetBlock: 0,
insetInlineEnd: 0,
borderInlineEnd: `${c}px solid ${i}`,
transform: "scaleY(0.0001)",
opacity: 0,
transition: [`transform ${g} ${p}`, `opacity ${g} ${p}`].join(","),
content: '""'
},
// Danger
[`&${n}-item-danger`]: {
"&::after": {
borderInlineEndColor: x
}
}
},
[`${n}-selected, ${n}-item-selected`]: {
"&::after": {
transform: "scaleY(1)",
opacity: 1,
transition: [`transform ${g} ${h}`, `opacity ${g} ${h}`].join(",")
}
}
}
}
};
}, _5 = (t) => {
const {
componentCls: e,
menuItemHeight: n,
itemMarginInline: r,
padding: i,
menuArrowSize: a,
marginXS: o,
marginXXS: s
} = t, l = i + a + o;
return {
[`${e}-item`]: {
position: "relative"
},
[`${e}-item, ${e}-submenu-title`]: {
height: n,
lineHeight: `${n}px`,
paddingInline: i,
overflow: "hidden",
textOverflow: "ellipsis",
marginInline: r,
marginBlock: s,
width: `calc(100% - ${r * 2}px)`
},
// disable margin collapsed
[`${e}-submenu`]: {
paddingBottom: 0.02
},
[`> ${e}-item,
> ${e}-submenu > ${e}-submenu-title`]: {
height: n,
lineHeight: `${n}px`
},
[`${e}-item-group-list ${e}-submenu-title,
${e}-submenu-title`]: {
paddingInlineEnd: l
}
};
}, mOe = (t) => {
const {
componentCls: e,
iconCls: n,
menuItemHeight: r,
colorTextLightSolid: i,
dropdownWidth: a,
controlHeightLG: o,
motionDurationMid: s,
motionEaseOut: l,
paddingXL: u,
fontSizeSM: c,
fontSizeLG: f,
motionDurationSlow: d,
paddingXS: h,
boxShadowSecondary: p
} = t, v = {
height: r,
lineHeight: `${r}px`,
listStylePosition: "inside",
listStyleType: "disc"
};
return [
{
[e]: {
"&-inline, &-vertical": I({
[`&${e}-root`]: {
boxShadow: "none"
}
}, _5(t))
},
[`${e}-submenu-popup`]: {
[`${e}-vertical`]: I(I({}, _5(t)), {
boxShadow: p
})
}
},
// Vertical only
{
[`${e}-submenu-popup ${e}-vertical${e}-sub`]: {
minWidth: a,
maxHeight: `calc(100vh - ${o * 2.5}px)`,
padding: "0",
overflow: "hidden",
borderInlineEnd: 0,
// https://github.com/ant-design/ant-design/issues/22244
// https://github.com/ant-design/ant-design/issues/26812
"&:not([class*='-active'])": {
overflowX: "hidden",
overflowY: "auto"
}
}
},
// Inline Only
{
[`${e}-inline`]: {
width: "100%",
// Motion enhance for first level
[`&${e}-root`]: {
[`${e}-item, ${e}-submenu-title`]: {
display: "flex",
alignItems: "center",
transition: [`border-color ${d}`, `background ${d}`, `padding ${s} ${l}`].join(","),
[`> ${e}-title-content`]: {
flex: "auto",
minWidth: 0,
overflow: "hidden",
textOverflow: "ellipsis"
},
"> *": {
flex: "none"
}
}
},
// >>>>> Sub
[`${e}-sub${e}-inline`]: {
padding: 0,
border: 0,
borderRadius: 0,
boxShadow: "none",
[`& > ${e}-submenu > ${e}-submenu-title`]: v,
[`& ${e}-item-group-title`]: {
paddingInlineStart: u
}
},
// >>>>> Item
[`${e}-item`]: v
}
},
// Inline Collapse Only
{
[`${e}-inline-collapsed`]: {
width: r * 2,
[`&${e}-root`]: {
[`${e}-item, ${e}-submenu ${e}-submenu-title`]: {
[`> ${e}-inline-collapsed-noicon`]: {
fontSize: f,
textAlign: "center"
}
}
},
[`> ${e}-item,
> ${e}-item-group > ${e}-item-group-list > ${e}-item,
> ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,
> ${e}-submenu > ${e}-submenu-title`]: {
insetInlineStart: 0,
paddingInline: `calc(50% - ${c}px)`,
textOverflow: "clip",
[`
${e}-submenu-arrow,
${e}-submenu-expand-icon
`]: {
opacity: 0
},
[`${e}-item-icon, ${n}`]: {
margin: 0,
fontSize: f,
lineHeight: `${r}px`,
"+ span": {
display: "inline-block",
opacity: 0
}
}
},
[`${e}-item-icon, ${n}`]: {
display: "inline-block"
},
"&-tooltip": {
pointerEvents: "none",
[`${e}-item-icon, ${n}`]: {
display: "none"
},
"a, a:hover": {
color: i
}
},
[`${e}-item-group-title`]: I(I({}, Sh), {
paddingInline: h
})
}
}
];
}, O5 = (t) => {
const {
componentCls: e,
fontSize: n,
motionDurationSlow: r,
motionDurationMid: i,
motionEaseInOut: a,
motionEaseOut: o,
iconCls: s,
controlHeightSM: l
} = t;
return {
// >>>>> Item
[`${e}-item, ${e}-submenu-title`]: {
position: "relative",
display: "block",
margin: 0,
whiteSpace: "nowrap",
cursor: "pointer",
transition: [`border-color ${r}`, `background ${r}`, `padding ${r} ${a}`].join(","),
[`${e}-item-icon, ${s}`]: {
minWidth: n,
fontSize: n,
transition: [`font-size ${i} ${o}`, `margin ${r} ${a}`, `color ${r}`].join(","),
"+ span": {
marginInlineStart: l - n,
opacity: 1,
transition: [`opacity ${r} ${a}`, `margin ${r}`, `color ${r}`].join(",")
}
},
[`${e}-item-icon`]: I({}, up()),
[`&${e}-item-only-child`]: {
[`> ${s}, > ${e}-item-icon`]: {
marginInlineEnd: 0
}
}
},
// Disabled state sets text to gray and nukes hover/tab effects
[`${e}-item-disabled, ${e}-submenu-disabled`]: {
background: "none !important",
cursor: "not-allowed",
"&::after": {
borderColor: "transparent !important"
},
a: {
color: "inherit !important"
},
[`> ${e}-submenu-title`]: {
color: "inherit !important",
cursor: "not-allowed"
}
}
};
}, S5 = (t) => {
const {
componentCls: e,
motionDurationSlow: n,
motionEaseInOut: r,
borderRadius: i,
menuArrowSize: a,
menuArrowOffset: o
} = t;
return {
[`${e}-submenu`]: {
"&-expand-icon, &-arrow": {
position: "absolute",
top: "50%",
insetInlineEnd: t.margin,
width: a,
color: "currentcolor",
transform: "translateY(-50%)",
transition: `transform ${n} ${r}, opacity ${n}`
},
"&-arrow": {
// →
"&::before, &::after": {
position: "absolute",
width: a * 0.6,
height: a * 0.15,
backgroundColor: "currentcolor",
borderRadius: i,
transition: [`background ${n} ${r}`, `transform ${n} ${r}`, `top ${n} ${r}`, `color ${n} ${r}`].join(","),
content: '""'
},
"&::before": {
transform: `rotate(45deg) translateY(-${o})`
},
"&::after": {
transform: `rotate(-45deg) translateY(${o})`
}
}
}
};
}, yOe = (t) => {
const {
antCls: e,
componentCls: n,
fontSize: r,
motionDurationSlow: i,
motionDurationMid: a,
motionEaseInOut: o,
lineHeight: s,
paddingXS: l,
padding: u,
colorSplit: c,
lineWidth: f,
zIndexPopup: d,
borderRadiusLG: h,
radiusSubMenuItem: p,
menuArrowSize: v,
menuArrowOffset: g,
lineType: m,
menuPanelMaskInset: y
} = t;
return [
// Misc
{
"": {
[`${n}`]: I(I({}, S1()), {
// Hidden
"&-hidden": {
display: "none"
}
})
},
[`${n}-submenu-hidden`]: {
display: "none"
}
},
{
[n]: I(I(I(I(I(I(I({}, nn(t)), S1()), {
marginBottom: 0,
paddingInlineStart: 0,
// Override default ul/ol
fontSize: r,
lineHeight: 0,
listStyle: "none",
outline: "none",
transition: `width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,
"ul, ol": {
margin: 0,
padding: 0,
listStyle: "none"
},
// Overflow ellipsis
"&-overflow": {
display: "flex",
[`${n}-item`]: {
flex: "none"
}
},
[`${n}-item, ${n}-submenu, ${n}-submenu-title`]: {
borderRadius: t.radiusItem
},
[`${n}-item-group-title`]: {
padding: `${l}px ${u}px`,
fontSize: r,
lineHeight: s,
transition: `all ${i}`
},
[`&-horizontal ${n}-submenu`]: {
transition: [`border-color ${i} ${o}`, `background ${i} ${o}`].join(",")
},
[`${n}-submenu, ${n}-submenu-inline`]: {
transition: [`border-color ${i} ${o}`, `background ${i} ${o}`, `padding ${a} ${o}`].join(",")
},
[`${n}-submenu ${n}-sub`]: {
cursor: "initial",
transition: [`background ${i} ${o}`, `padding ${i} ${o}`].join(",")
},
[`${n}-title-content`]: {
transition: `color ${i}`
},
[`${n}-item a`]: {
"&::before": {
position: "absolute",
inset: 0,
backgroundColor: "transparent",
content: '""'
}
},
// Removed a Badge related style seems it's safe
// https://github.com/ant-design/ant-design/issues/19809
// >>>>> Divider
[`${n}-item-divider`]: {
overflow: "hidden",
lineHeight: 0,
borderColor: c,
borderStyle: m,
borderWidth: 0,
borderTopWidth: f,
marginBlock: f,
padding: 0,
"&-dashed": {
borderStyle: "dashed"
}
}
}), O5(t)), {
[`${n}-item-group`]: {
[`${n}-item-group-list`]: {
margin: 0,
padding: 0,
[`${n}-item, ${n}-submenu-title`]: {
paddingInline: `${r * 2}px ${u}px`
}
}
},
// ======================= Sub Menu =======================
"&-submenu": {
"&-popup": {
position: "absolute",
zIndex: d,
background: "transparent",
borderRadius: h,
boxShadow: "none",
transformOrigin: "0 0",
// https://github.com/ant-design/ant-design/issues/13955
"&::before": {
position: "absolute",
inset: `${y}px 0 0`,
zIndex: -1,
width: "100%",
height: "100%",
opacity: 0,
content: '""'
}
},
// https://github.com/ant-design/ant-design/issues/13955
"&-placement-rightTop::before": {
top: 0,
insetInlineStart: y
},
[`> ${n}`]: I(I(I({
borderRadius: h
}, O5(t)), S5(t)), {
[`${n}-item, ${n}-submenu > ${n}-submenu-title`]: {
borderRadius: p
},
[`${n}-submenu-title::after`]: {
transition: `transform ${i} ${o}`
}
})
}
}), S5(t)), {
[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]: {
// ↓
"&::before": {
transform: `rotate(-45deg) translateX(${g})`
},
"&::after": {
transform: `rotate(45deg) translateX(-${g})`
}
},
[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]: {
// ↑
transform: `translateY(-${v * 0.2}px)`,
"&::after": {
transform: `rotate(-45deg) translateX(-${g})`
},
"&::before": {
transform: `rotate(45deg) translateX(${g})`
}
}
})
},
// Integration with header element so menu items have the same height
{
[`${e}-layout-header`]: {
[n]: {
lineHeight: "inherit"
}
}
}
];
}, bOe = (t, e) => Sn("Menu", (r, i) => {
let {
overrideComponentToken: a
} = i;
if ((e == null ? void 0 : e.value) === !1)
return [];
const {
colorBgElevated: o,
colorPrimary: s,
colorError: l,
colorErrorHover: u,
colorTextLightSolid: c
} = r, {
controlHeightLG: f,
fontSize: d
} = r, h = d / 7 * 5, p = Bt(r, {
menuItemHeight: f,
menuItemPaddingInline: r.margin,
menuArrowSize: h,
menuHorizontalHeight: f * 1.15,
menuArrowOffset: `${h * 0.25}px`,
menuPanelMaskInset: -7,
menuSubMenuBg: o
}), v = new en(c).setAlpha(0.65).toRgbString(), g = Bt(p, {
colorItemText: v,
colorItemTextHover: c,
colorGroupTitle: v,
colorItemTextSelected: c,
colorItemBg: "#001529",
colorSubItemBg: "#000c17",
colorItemBgActive: "transparent",
colorItemBgSelected: s,
colorActiveBarWidth: 0,
colorActiveBarHeight: 0,
colorActiveBarBorderSize: 0,
// Disabled
colorItemTextDisabled: new en(c).setAlpha(0.25).toRgbString(),
// Danger
colorDangerItemText: l,
colorDangerItemTextHover: u,
colorDangerItemTextSelected: c,
colorDangerItemBgActive: l,
colorDangerItemBgSelected: l,
menuSubMenuBg: "#001529",
// Horizontal
colorItemTextSelectedHorizontal: c,
colorItemBgSelectedHorizontal: s
}, I({}, a));
return [
// Basic
yOe(p),
// Horizontal
vOe(p),
// Vertical
mOe(p),
// Theme
b5(p, "light"),
b5(g, "dark"),
// RTL
gOe(p),
// Motion
JI(p),
Eh(p, "slide-up"),
Eh(p, "slide-down"),
fx(p, "zoom-big")
];
}, (r) => {
const {
colorPrimary: i,
colorError: a,
colorTextDisabled: o,
colorErrorBg: s,
colorText: l,
colorTextDescription: u,
colorBgContainer: c,
colorFillAlter: f,
colorFillContent: d,
lineWidth: h,
lineWidthBold: p,
controlItemBgActive: v,
colorBgTextHover: g
} = r;
return {
dropdownWidth: 160,
zIndexPopup: r.zIndexPopupBase + 50,
radiusItem: r.borderRadiusLG,
radiusSubMenuItem: r.borderRadiusSM,
colorItemText: l,
colorItemTextHover: l,
colorItemTextHoverHorizontal: i,
colorGroupTitle: u,
colorItemTextSelected: i,
colorItemTextSelectedHorizontal: i,
colorItemBg: c,
colorItemBgHover: g,
colorItemBgActive: d,
colorSubItemBg: f,
colorItemBgSelected: v,
colorItemBgSelectedHorizontal: "transparent",
colorActiveBarWidth: 0,
colorActiveBarHeight: p,
colorActiveBarBorderSize: h,
// Disabled
colorItemTextDisabled: o,
// Danger
colorDangerItemText: a,
colorDangerItemTextHover: a,
colorDangerItemTextSelected: a,
colorDangerItemBgActive: s,
colorDangerItemBgSelected: s,
itemMarginInline: r.marginXXS
};
})(t), _Oe = () => ({
id: String,
prefixCls: String,
// donot use items, now only support inner use
items: Array,
disabled: Boolean,
inlineCollapsed: Boolean,
disabledOverflow: Boolean,
forceSubMenuRender: Boolean,
openKeys: Array,
selectedKeys: Array,
activeKey: String,
selectable: {
type: Boolean,
default: !0
},
multiple: {
type: Boolean,
default: !1
},
tabindex: {
type: [Number, String]
},
motion: Object,
role: String,
theme: {
type: String,
default: "light"
},
mode: {
type: String,
default: "vertical"
},
inlineIndent: {
type: Number,
default: 24
},
subMenuOpenDelay: {
type: Number,
default: 0
},
subMenuCloseDelay: {
type: Number,
default: 0.1
},
builtinPlacements: {
type: Object
},
triggerSubMenuAction: {
type: String,
default: "hover"
},
getPopupContainer: Function,
expandIcon: Function,
onOpenChange: Function,
onSelect: Function,
onDeselect: Function,
onClick: [Function, Array],
onFocus: Function,
onBlur: Function,
onMousedown: Function,
"onUpdate:openKeys": Function,
"onUpdate:selectedKeys": Function,
"onUpdate:activeKey": Function
}), x5 = [], jl = te({
compatConfig: {
MODE: 3
},
name: "AMenu",
inheritAttrs: !1,
props: _Oe(),
slots: Object,
setup(t, e) {
let {
slots: n,
emit: r,
attrs: i
} = e;
const {
direction: a,
getPrefixCls: o
} = It("menu", t), s = WU(), l = L(() => {
var K;
return o("menu", t.prefixCls || ((K = s == null ? void 0 : s.prefixCls) === null || K === void 0 ? void 0 : K.value));
}), [u, c] = bOe(l, L(() => !s)), f = ae(/* @__PURE__ */ new Map()), d = Ge(tOe, U(void 0)), h = L(() => d.value !== void 0 ? d.value : t.inlineCollapsed), {
itemsNodes: p
} = pOe(t), v = ae(!1);
it(() => {
v.value = !0;
}), ht(() => {
Gi(!(t.inlineCollapsed === !0 && t.mode !== "inline"), "Menu", "`inlineCollapsed` should only be used when `mode` is inline."), Gi(!(d.value !== void 0 && t.inlineCollapsed === !0), "Menu", "`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.");
});
const g = U([]), m = U([]), y = U({});
se(f, () => {
const K = {};
for (const ie of f.value.values())
K[ie.key] = ie;
y.value = K;
}, {
flush: "post"
}), ht(() => {
if (t.activeKey !== void 0) {
let K = [];
const ie = t.activeKey ? y.value[t.activeKey] : void 0;
ie && t.activeKey !== void 0 ? K = bC([].concat(z(ie.parentKeys), t.activeKey)) : K = [], Kp(g.value, K) || (g.value = K);
}
}), se(() => t.selectedKeys, (K) => {
K && (m.value = K.slice());
}, {
immediate: !0,
deep: !0
});
const b = U([]);
se([y, m], () => {
let K = [];
m.value.forEach((ie) => {
const X = y.value[ie];
X && (K = K.concat(z(X.parentKeys)));
}), K = bC(K), Kp(b.value, K) || (b.value = K);
}, {
immediate: !0
});
const _ = (K) => {
if (t.selectable) {
const {
key: ie
} = K, X = m.value.includes(ie);
let H;
t.multiple ? X ? H = m.value.filter((re) => re !== ie) : H = [...m.value, ie] : H = [ie];
const G = I(I({}, K), {
selectedKeys: H
});
Kp(H, m.value) || (t.selectedKeys === void 0 && (m.value = H), r("update:selectedKeys", H), X && t.multiple ? r("deselect", G) : r("select", G));
}
w.value !== "inline" && !t.multiple && O.value.length && A(x5);
}, O = U([]);
se(() => t.openKeys, function() {
let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : O.value;
Kp(O.value, K) || (O.value = K.slice());
}, {
immediate: !0,
deep: !0
});
let S;
const x = (K) => {
clearTimeout(S), S = setTimeout(() => {
t.activeKey === void 0 && (g.value = K), r("update:activeKey", K[K.length - 1]);
});
}, C = L(() => !!t.disabled), T = L(() => a.value === "rtl"), w = U("vertical"), P = ae(!1);
ht(() => {
var K;
(t.mode === "inline" || t.mode === "vertical") && h.value ? (w.value = "vertical", P.value = h.value) : (w.value = t.mode, P.value = !1), !((K = s == null ? void 0 : s.mode) === null || K === void 0) && K.value && (w.value = s.mode.value);
});
const $ = L(() => w.value === "inline"), A = (K) => {
O.value = K, r("update:openKeys", K), r("openChange", K);
}, D = U(O.value), E = ae(!1);
se(O, () => {
$.value && (D.value = O.value);
}, {
immediate: !0
}), se($, () => {
if (!E.value) {
E.value = !0;
return;
}
$.value ? O.value = D.value : A(x5);
}, {
immediate: !0
});
const R = L(() => ({
[`${l.value}`]: !0,
[`${l.value}-root`]: !0,
[`${l.value}-${w.value}`]: !0,
[`${l.value}-inline-collapsed`]: P.value,
[`${l.value}-rtl`]: T.value,
[`${l.value}-${t.theme}`]: !0
})), N = L(() => o()), V = L(() => ({
horizontal: {
name: `${N.value}-slide-up`
},
inline: lD(`${N.value}-motion-collapse`),
other: {
name: `${N.value}-zoom-big`
}
}));
UU(!0);
const B = function() {
let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
const ie = [], X = f.value;
return K.forEach((H) => {
const {
key: G,
childrenEventKeys: re
} = X.get(H);
ie.push(G, ...B(z(re)));
}), ie;
}, W = (K) => {
var ie;
r("click", K), _(K), (ie = s == null ? void 0 : s.onClick) === null || ie === void 0 || ie.call(s);
}, F = (K, ie) => {
var X;
const H = ((X = y.value[K]) === null || X === void 0 ? void 0 : X.childrenEventKeys) || [];
let G = O.value.filter((re) => re !== K);
if (ie)
G.push(K);
else if (w.value !== "inline") {
const re = B(z(H));
G = bC(G.filter((fe) => !re.includes(fe)));
}
Kp(O, G) || A(G);
}, Q = (K, ie) => {
f.value.set(K, ie), f.value = new Map(f.value);
}, Z = (K) => {
f.value.delete(K), f.value = new Map(f.value);
}, ne = U(0), ee = L(() => {
var K;
return t.expandIcon || n.expandIcon || !((K = s == null ? void 0 : s.expandIcon) === null || K === void 0) && K.value ? (ie) => {
let X = t.expandIcon || n.expandIcon;
return X = typeof X == "function" ? X(ie) : X, Pn(X, {
class: `${l.value}-submenu-expand-icon`
}, !1);
} : null;
});
eOe({
prefixCls: l,
activeKeys: g,
openKeys: O,
selectedKeys: m,
changeActiveKeys: x,
disabled: C,
rtl: T,
mode: w,
inlineIndent: L(() => t.inlineIndent),
subMenuCloseDelay: L(() => t.subMenuCloseDelay),
subMenuOpenDelay: L(() => t.subMenuOpenDelay),
builtinPlacements: L(() => t.builtinPlacements),
triggerSubMenuAction: L(() => t.triggerSubMenuAction),
getPopupContainer: L(() => t.getPopupContainer),
inlineCollapsed: P,
theme: L(() => t.theme),
siderCollapsed: d,
defaultMotions: L(() => v.value ? V.value : null),
motion: L(() => v.value ? t.motion : null),
overflowDisabled: ae(void 0),
onOpenChange: F,
onItemClick: W,
registerMenuInfo: Q,
unRegisterMenuInfo: Z,
selectedSubMenuKeys: b,
expandIcon: ee,
forceSubMenuRender: L(() => t.forceSubMenuRender),
rootClassName: c
});
const oe = () => {
var K;
return p.value || Yn((K = n.default) === null || K === void 0 ? void 0 : K.call(n));
};
return () => {
var K;
const ie = oe(), X = ne.value >= ie.length - 1 || w.value !== "horizontal" || t.disabledOverflow, H = (re) => w.value !== "horizontal" || t.disabledOverflow ? re : (
// Need wrap for overflow dropdown that do not response for open
re.map((fe, de) => (
// Always wrap provider to avoid sub node re-mount
M(L1, {
key: fe.key,
overflowDisabled: de > ne.value
}, {
default: () => fe
})
))
), G = ((K = n.overflowedIndicator) === null || K === void 0 ? void 0 : K.call(n)) || M(vx, null, null);
return u(M(Is, j(j({}, i), {}, {
onMousedown: t.onMousedown,
prefixCls: `${l.value}-overflow`,
component: "ul",
itemComponent: Mh,
class: [R.value, i.class, c.value],
role: "menu",
id: t.id,
data: H(ie),
renderRawItem: (re) => re,
renderRawRest: (re) => {
const fe = re.length, de = fe ? ie.slice(-fe) : null;
return M(wt, null, [M(Ih, {
eventKey: Iy,
key: Iy,
title: G,
disabled: X,
internalPopupClose: fe === 0
}, {
default: () => de
}), M(h5, null, {
default: () => [M(Ih, {
eventKey: Iy,
key: Iy,
title: G,
disabled: X,
internalPopupClose: fe === 0
}, {
default: () => de
})]
})]);
},
maxCount: w.value !== "horizontal" || t.disabledOverflow ? Is.INVALIDATE : Is.RESPONSIVE,
ssr: "full",
"data-menu-list": !0,
onVisibleChange: (re) => {
ne.value = re;
}
}), {
default: () => [M(AS, {
to: "body"
}, {
default: () => [M("div", {
style: {
display: "none"
},
"aria-hidden": !0
}, [M(h5, null, {
default: () => [H(oe())]
})])]
})]
}));
};
}
});
jl.install = function(t) {
return t.component(jl.name, jl), t.component(Mh.name, Mh), t.component(Ih.name, Ih), t.component(B1.name, B1), t.component(N1.name, N1), t;
};
jl.Item = Mh;
jl.Divider = B1;
jl.SubMenu = Ih;
jl.ItemGroup = N1;
var Dy = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function mx(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var OOe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const SOe = {
prefixCls: String,
name: String,
id: String,
type: String,
defaultChecked: {
type: [Boolean, Number],
default: void 0
},
checked: {
type: [Boolean, Number],
default: void 0
},
disabled: Boolean,
tabindex: {
type: [Number, String]
},
readonly: Boolean,
autofocus: Boolean,
value: Y.any,
required: Boolean
}, JU = te({
compatConfig: {
MODE: 3
},
name: "Checkbox",
inheritAttrs: !1,
props: sr(SOe, {
prefixCls: "rc-checkbox",
type: "checkbox",
defaultChecked: !1
}),
emits: ["click", "change"],
setup(t, e) {
let {
attrs: n,
emit: r,
expose: i
} = e;
const a = U(t.checked === void 0 ? t.defaultChecked : t.checked), o = U();
se(() => t.checked, () => {
a.value = t.checked;
}), i({
focus() {
var c;
(c = o.value) === null || c === void 0 || c.focus();
},
blur() {
var c;
(c = o.value) === null || c === void 0 || c.blur();
}
});
const s = U(), l = (c) => {
if (t.disabled)
return;
t.checked === void 0 && (a.value = c.target.checked), c.shiftKey = s.value;
const f = {
target: I(I({}, t), {
checked: c.target.checked
}),
stopPropagation() {
c.stopPropagation();
},
preventDefault() {
c.preventDefault();
},
nativeEvent: c
};
t.checked !== void 0 && (o.value.checked = !!t.checked), r("change", f), s.value = !1;
}, u = (c) => {
r("click", c), s.value = c.shiftKey;
};
return () => {
const {
prefixCls: c,
name: f,
id: d,
type: h,
disabled: p,
readonly: v,
tabindex: g,
autofocus: m,
value: y,
required: b
} = t, _ = OOe(t, ["prefixCls", "name", "id", "type", "disabled", "readonly", "tabindex", "autofocus", "value", "required"]), {
class: O,
onFocus: S,
onBlur: x,
onKeydown: C,
onKeypress: T,
onKeyup: w
} = n, P = I(I({}, _), n), $ = Object.keys(P).reduce((E, R) => ((R.startsWith("data-") || R.startsWith("aria-") || R === "role") && (E[R] = P[R]), E), {}), A = ye(c, O, {
[`${c}-checked`]: a.value,
[`${c}-disabled`]: p
}), D = I(I({
name: f,
id: d,
type: h,
readonly: v,
disabled: p,
tabindex: g,
class: `${c}-input`,
checked: !!a.value,
autofocus: m,
value: y
}, $), {
onChange: l,
onClick: u,
onFocus: S,
onBlur: x,
onKeydown: C,
onKeypress: T,
onKeyup: w,
required: b
});
return M("span", {
class: A
}, [M("input", j({
ref: o
}, D), null), M("span", {
class: `${c}-inner`
}, null)]);
};
}
}), eX = Symbol("radioGroupContextKey"), xOe = (t) => {
pt(eX, t);
}, wOe = () => Ge(eX, void 0), tX = Symbol("radioOptionTypeContextKey"), COe = (t) => {
pt(tX, t);
}, TOe = () => Ge(tX, void 0), POe = new Ot("antRadioEffect", {
"0%": {
transform: "scale(1)",
opacity: 0.5
},
"100%": {
transform: "scale(1.6)",
opacity: 0
}
}), $Oe = (t) => {
const {
componentCls: e,
antCls: n
} = t, r = `${e}-group`;
return {
[r]: I(I({}, nn(t)), {
display: "inline-block",
fontSize: 0,
// RTL
[`&${r}-rtl`]: {
direction: "rtl"
},
[`${n}-badge ${n}-badge-count`]: {
zIndex: 1
},
[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]: {
borderInlineStart: "none"
}
})
};
}, AOe = (t) => {
const {
componentCls: e,
radioWrapperMarginRight: n,
radioCheckedColor: r,
radioSize: i,
motionDurationSlow: a,
motionDurationMid: o,
motionEaseInOut: s,
motionEaseInOutCirc: l,
radioButtonBg: u,
colorBorder: c,
lineWidth: f,
radioDotSize: d,
colorBgContainerDisabled: h,
colorTextDisabled: p,
paddingXS: v,
radioDotDisabledColor: g,
lineType: m,
radioDotDisabledSize: y,
wireframe: b,
colorWhite: _
} = t, O = `${e}-inner`;
return {
[`${e}-wrapper`]: I(I({}, nn(t)), {
position: "relative",
display: "inline-flex",
alignItems: "baseline",
marginInlineStart: 0,
marginInlineEnd: n,
cursor: "pointer",
// RTL
[`&${e}-wrapper-rtl`]: {
direction: "rtl"
},
"&-disabled": {
cursor: "not-allowed",
color: t.colorTextDisabled
},
"&::after": {
display: "inline-block",
width: 0,
overflow: "hidden",
content: '"\\a0"'
},
// hashId 在 wrapper 上,只能铺平
[`${e}-checked::after`]: {
position: "absolute",
insetBlockStart: 0,
insetInlineStart: 0,
width: "100%",
height: "100%",
border: `${f}px ${m} ${r}`,
borderRadius: "50%",
visibility: "hidden",
animationName: POe,
animationDuration: a,
animationTimingFunction: s,
animationFillMode: "both",
content: '""'
},
[e]: I(I({}, nn(t)), {
position: "relative",
display: "inline-block",
outline: "none",
cursor: "pointer",
alignSelf: "center"
}),
[`${e}-wrapper:hover &,
&:hover ${O}`]: {
borderColor: r
},
[`${e}-input:focus-visible + ${O}`]: I({}, h0(t)),
[`${e}:hover::after, ${e}-wrapper:hover &::after`]: {
visibility: "visible"
},
[`${e}-inner`]: {
"&::after": {
boxSizing: "border-box",
position: "absolute",
insetBlockStart: "50%",
insetInlineStart: "50%",
display: "block",
width: i,
height: i,
marginBlockStart: i / -2,
marginInlineStart: i / -2,
backgroundColor: b ? r : _,
borderBlockStart: 0,
borderInlineStart: 0,
borderRadius: i,
transform: "scale(0)",
opacity: 0,
transition: `all ${a} ${l}`,
content: '""'
},
boxSizing: "border-box",
position: "relative",
insetBlockStart: 0,
insetInlineStart: 0,
display: "block",
width: i,
height: i,
backgroundColor: u,
borderColor: c,
borderStyle: "solid",
borderWidth: f,
borderRadius: "50%",
transition: `all ${o}`
},
[`${e}-input`]: {
position: "absolute",
insetBlockStart: 0,
insetInlineEnd: 0,
insetBlockEnd: 0,
insetInlineStart: 0,
zIndex: 1,
cursor: "pointer",
opacity: 0
},
// 选中状态
[`${e}-checked`]: {
[O]: {
borderColor: r,
backgroundColor: b ? u : r,
"&::after": {
transform: `scale(${d / i})`,
opacity: 1,
transition: `all ${a} ${l}`
}
}
},
[`${e}-disabled`]: {
cursor: "not-allowed",
[O]: {
backgroundColor: h,
borderColor: c,
cursor: "not-allowed",
"&::after": {
backgroundColor: g
}
},
[`${e}-input`]: {
cursor: "not-allowed"
},
[`${e}-disabled + span`]: {
color: p,
cursor: "not-allowed"
},
[`&${e}-checked`]: {
[O]: {
"&::after": {
transform: `scale(${y / i})`
}
}
}
},
[`span${e} + *`]: {
paddingInlineStart: v,
paddingInlineEnd: v
}
})
};
}, EOe = (t) => {
const {
radioButtonColor: e,
controlHeight: n,
componentCls: r,
lineWidth: i,
lineType: a,
colorBorder: o,
motionDurationSlow: s,
motionDurationMid: l,
radioButtonPaddingHorizontal: u,
fontSize: c,
radioButtonBg: f,
fontSizeLG: d,
controlHeightLG: h,
controlHeightSM: p,
paddingXS: v,
borderRadius: g,
borderRadiusSM: m,
borderRadiusLG: y,
radioCheckedColor: b,
radioButtonCheckedBg: _,
radioButtonHoverColor: O,
radioButtonActiveColor: S,
radioSolidCheckedColor: x,
colorTextDisabled: C,
colorBgContainerDisabled: T,
radioDisabledButtonCheckedColor: w,
radioDisabledButtonCheckedBg: P
} = t;
return {
[`${r}-button-wrapper`]: {
position: "relative",
display: "inline-block",
height: n,
margin: 0,
paddingInline: u,
paddingBlock: 0,
color: e,
fontSize: c,
lineHeight: `${n - i * 2}px`,
background: f,
border: `${i}px ${a} ${o}`,
// strange align fix for chrome but works
// https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
borderBlockStartWidth: i + 0.02,
borderInlineStartWidth: 0,
borderInlineEndWidth: i,
cursor: "pointer",
transition: [`color ${l}`, `background ${l}`, `border-color ${l}`, `box-shadow ${l}`].join(","),
a: {
color: e
},
[`> ${r}-button`]: {
position: "absolute",
insetBlockStart: 0,
insetInlineStart: 0,
zIndex: -1,
width: "100%",
height: "100%"
},
"&:not(:first-child)": {
"&::before": {
position: "absolute",
insetBlockStart: -i,
insetInlineStart: -i,
display: "block",
boxSizing: "content-box",
width: 1,
height: "100%",
paddingBlock: i,
paddingInline: 0,
backgroundColor: o,
transition: `background-color ${s}`,
content: '""'
}
},
"&:first-child": {
borderInlineStart: `${i}px ${a} ${o}`,
borderStartStartRadius: g,
borderEndStartRadius: g
},
"&:last-child": {
borderStartEndRadius: g,
borderEndEndRadius: g
},
"&:first-child:last-child": {
borderRadius: g
},
[`${r}-group-large &`]: {
height: h,
fontSize: d,
lineHeight: `${h - i * 2}px`,
"&:first-child": {
borderStartStartRadius: y,
borderEndStartRadius: y
},
"&:last-child": {
borderStartEndRadius: y,
borderEndEndRadius: y
}
},
[`${r}-group-small &`]: {
height: p,
paddingInline: v - i,
paddingBlock: 0,
lineHeight: `${p - i * 2}px`,
"&:first-child": {
borderStartStartRadius: m,
borderEndStartRadius: m
},
"&:last-child": {
borderStartEndRadius: m,
borderEndEndRadius: m
}
},
"&:hover": {
position: "relative",
color: b
},
"&:has(:focus-visible)": I({}, h0(t)),
[`${r}-inner, input[type='checkbox'], input[type='radio']`]: {
width: 0,
height: 0,
opacity: 0,
pointerEvents: "none"
},
[`&-checked:not(${r}-button-wrapper-disabled)`]: {
zIndex: 1,
color: b,
background: _,
borderColor: b,
"&::before": {
backgroundColor: b
},
"&:first-child": {
borderColor: b
},
"&:hover": {
color: O,
borderColor: O,
"&::before": {
backgroundColor: O
}
},
"&:active": {
color: S,
borderColor: S,
"&::before": {
backgroundColor: S
}
}
},
[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]: {
color: x,
background: b,
borderColor: b,
"&:hover": {
color: x,
background: O,
borderColor: O
},
"&:active": {
color: x,
background: S,
borderColor: S
}
},
"&-disabled": {
color: C,
backgroundColor: T,
borderColor: o,
cursor: "not-allowed",
"&:first-child, &:hover": {
color: C,
backgroundColor: T,
borderColor: o
}
},
[`&-disabled${r}-button-wrapper-checked`]: {
color: w,
backgroundColor: P,
borderColor: o,
boxShadow: "none"
}
}
};
}, nX = Sn("Radio", (t) => {
const {
padding: e,
lineWidth: n,
controlItemBgActiveDisabled: r,
colorTextDisabled: i,
colorBgContainer: a,
fontSizeLG: o,
controlOutline: s,
colorPrimaryHover: l,
colorPrimaryActive: u,
colorText: c,
colorPrimary: f,
marginXS: d,
controlOutlineWidth: h,
colorTextLightSolid: p,
wireframe: v
} = t, g = `0 0 0 ${h}px ${s}`, m = g, y = o, b = 4, _ = y - b * 2, O = v ? _ : y - (b + n) * 2, S = f, x = c, C = l, T = u, w = e - n, A = Bt(t, {
radioFocusShadow: g,
radioButtonFocusShadow: m,
radioSize: y,
radioDotSize: O,
radioDotDisabledSize: _,
radioCheckedColor: S,
radioDotDisabledColor: i,
radioSolidCheckedColor: p,
radioButtonBg: a,
radioButtonCheckedBg: a,
radioButtonColor: x,
radioButtonHoverColor: C,
radioButtonActiveColor: T,
radioButtonPaddingHorizontal: w,
radioDisabledButtonCheckedBg: r,
radioDisabledButtonCheckedColor: i,
radioWrapperMarginRight: d
});
return [$Oe(A), AOe(A), EOe(A)];
});
var MOe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const rX = () => ({
prefixCls: String,
checked: nt(),
disabled: nt(),
isGroup: nt(),
value: Y.any,
name: String,
id: String,
autofocus: nt(),
onChange: tt(),
onFocus: tt(),
onBlur: tt(),
onClick: tt(),
"onUpdate:checked": tt(),
"onUpdate:value": tt()
}), hi = te({
compatConfig: {
MODE: 3
},
name: "ARadio",
inheritAttrs: !1,
props: rX(),
setup(t, e) {
let {
emit: n,
expose: r,
slots: i,
attrs: a
} = e;
const o = ls(), s = ao.useInject(), l = TOe(), u = wOe(), c = Jo(), f = L(() => {
var C;
return (C = v.value) !== null && C !== void 0 ? C : c.value;
}), d = U(), {
prefixCls: h,
direction: p,
disabled: v
} = It("radio", t), g = L(() => (u == null ? void 0 : u.optionType.value) === "button" || l === "button" ? `${h.value}-button` : h.value), m = Jo(), [y, b] = nX(h);
r({
focus: () => {
d.value.focus();
},
blur: () => {
d.value.blur();
}
});
const S = (C) => {
const T = C.target.checked;
n("update:checked", T), n("update:value", T), n("change", C), o.onFieldChange();
}, x = (C) => {
n("change", C), u && u.onChange && u.onChange(C);
};
return () => {
var C;
const T = u, {
prefixCls: w,
id: P = o.id.value
} = t, $ = MOe(t, ["prefixCls", "id"]), A = I(I({
prefixCls: g.value,
id: P
}, or($, ["onUpdate:checked", "onUpdate:value"])), {
disabled: (C = v.value) !== null && C !== void 0 ? C : m.value
});
T ? (A.name = T.name.value, A.onChange = x, A.checked = t.value === T.value.value, A.disabled = f.value || T.disabled.value) : A.onChange = S;
const D = ye({
[`${g.value}-wrapper`]: !0,
[`${g.value}-wrapper-checked`]: A.checked,
[`${g.value}-wrapper-disabled`]: A.disabled,
[`${g.value}-wrapper-rtl`]: p.value === "rtl",
[`${g.value}-wrapper-in-form-item`]: s.isFormItemInput
}, a.class, b.value);
return y(M("label", j(j({}, a), {}, {
class: D
}), [M(JU, j(j({}, A), {}, {
type: "radio",
ref: d
}), null), i.default && M("span", null, [i.default()])]));
};
}
}), IOe = () => ({
prefixCls: String,
value: Y.any,
size: hn(),
options: cf(),
disabled: nt(),
name: String,
buttonStyle: hn("outline"),
id: String,
optionType: hn("default"),
onChange: tt(),
"onUpdate:value": tt()
}), gf = te({
compatConfig: {
MODE: 3
},
name: "ARadioGroup",
inheritAttrs: !1,
props: IOe(),
// emits: ['update:value', 'change'],
setup(t, e) {
let {
slots: n,
emit: r,
attrs: i
} = e;
const a = ls(), {
prefixCls: o,
direction: s,
size: l
} = It("radio", t), [u, c] = nX(o), f = U(t.value), d = U(!1);
return se(() => t.value, (p) => {
f.value = p, d.value = !1;
}), xOe({
onChange: (p) => {
const v = f.value, {
value: g
} = p.target;
"value" in t || (f.value = g), !d.value && g !== v && (d.value = !0, r("update:value", g), r("change", p), a.onFieldChange()), Tt(() => {
d.value = !1;
});
},
value: f,
disabled: L(() => t.disabled),
name: L(() => t.name),
optionType: L(() => t.optionType)
}), () => {
var p;
const {
options: v,
buttonStyle: g,
id: m = a.id.value
} = t, y = `${o.value}-group`, b = ye(y, `${y}-${g}`, {
[`${y}-${l.value}`]: l.value,
[`${y}-rtl`]: s.value === "rtl"
}, i.class, c.value);
let _ = null;
return v && v.length > 0 ? _ = v.map((O) => {
if (typeof O == "string" || typeof O == "number")
return M(hi, {
key: O,
prefixCls: o.value,
disabled: t.disabled,
value: O,
checked: f.value === O
}, {
default: () => [O]
});
const {
value: S,
disabled: x,
label: C
} = O;
return M(hi, {
key: `radio-group-value-options-${S}`,
prefixCls: o.value,
disabled: x || t.disabled,
value: S,
checked: f.value === S
}, {
default: () => [C]
});
}) : _ = (p = n.default) === null || p === void 0 ? void 0 : p.call(n), u(M("div", j(j({}, i), {}, {
class: b,
id: m
}), [_]));
};
}
}), Do = te({
compatConfig: {
MODE: 3
},
name: "ARadioButton",
inheritAttrs: !1,
props: rX(),
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
prefixCls: i
} = It("radio", t);
return COe("button"), () => {
var a;
return M(hi, j(j(j({}, r), t), {}, {
prefixCls: i.value
}), {
default: () => [(a = n.default) === null || a === void 0 ? void 0 : a.call(n)]
});
};
}
});
hi.Group = gf;
hi.Button = Do;
hi.install = function(t) {
return t.component(hi.name, hi), t.component(hi.Group.name, hi.Group), t.component(hi.Button.name, hi.Button), t;
};
const iX = (t) => ({
// Firefox
"&::-moz-placeholder": {
opacity: 1
},
"&::placeholder": {
color: t,
userSelect: "none"
// https://github.com/ant-design/ant-design/pull/32639
},
"&:placeholder-shown": {
textOverflow: "ellipsis"
}
}), _0 = (t) => ({
borderColor: t.inputBorderHoverColor,
borderInlineEndWidth: t.lineWidth
}), z1 = (t) => ({
borderColor: t.inputBorderHoverColor,
boxShadow: `0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,
borderInlineEndWidth: t.lineWidth,
outline: 0
}), aX = (t) => ({
color: t.colorTextDisabled,
backgroundColor: t.colorBgContainerDisabled,
borderColor: t.colorBorder,
boxShadow: "none",
cursor: "not-allowed",
opacity: 1,
"&:hover": I({}, _0(Bt(t, {
inputBorderHoverColor: t.colorBorder
})))
}), oX = (t) => {
const {
inputPaddingVerticalLG: e,
fontSizeLG: n,
lineHeightLG: r,
borderRadiusLG: i,
inputPaddingHorizontalLG: a
} = t;
return {
padding: `${e}px ${a}px`,
fontSize: n,
lineHeight: r,
borderRadius: i
};
}, sX = (t) => ({
padding: `${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM - 1}px`,
borderRadius: t.borderRadiusSM
}), yx = (t, e) => {
const {
componentCls: n,
colorError: r,
colorWarning: i,
colorErrorOutline: a,
colorWarningOutline: o,
colorErrorBorderHover: s,
colorWarningBorderHover: l
} = t;
return {
[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]: {
borderColor: r,
"&:hover": {
borderColor: s
},
"&:focus, &-focused": I({}, z1(Bt(t, {
inputBorderActiveColor: r,
inputBorderHoverColor: r,
controlOutline: a
}))),
[`${n}-prefix`]: {
color: r
}
},
[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]: {
borderColor: i,
"&:hover": {
borderColor: l
},
"&:focus, &-focused": I({}, z1(Bt(t, {
inputBorderActiveColor: i,
inputBorderHoverColor: i,
controlOutline: o
}))),
[`${n}-prefix`]: {
color: i
}
}
};
}, bx = (t) => I(I({
position: "relative",
display: "inline-block",
width: "100%",
minWidth: 0,
padding: `${t.inputPaddingVertical}px ${t.inputPaddingHorizontal}px`,
color: t.colorText,
fontSize: t.fontSize,
lineHeight: t.lineHeight,
backgroundColor: t.colorBgContainer,
backgroundImage: "none",
borderWidth: t.lineWidth,
borderStyle: t.lineType,
borderColor: t.colorBorder,
borderRadius: t.borderRadius,
transition: `all ${t.motionDurationMid}`
}, iX(t.colorTextPlaceholder)), {
"&:hover": I({}, _0(t)),
"&:focus, &-focused": I({}, z1(t)),
"&-disabled, &[disabled]": I({}, aX(t)),
"&-borderless": {
"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]": {
backgroundColor: "transparent",
border: "none",
boxShadow: "none"
}
},
// Reset height for `textarea`s
"textarea&": {
maxWidth: "100%",
height: "auto",
minHeight: t.controlHeight,
lineHeight: t.lineHeight,
verticalAlign: "bottom",
transition: `all ${t.motionDurationSlow}, height 0s`,
resize: "vertical"
},
// Size
"&-lg": I({}, oX(t)),
"&-sm": I({}, sX(t)),
// RTL
"&-rtl": {
direction: "rtl"
},
"&-textarea-rtl": {
direction: "rtl"
}
}), lX = (t) => {
const {
componentCls: e,
antCls: n
} = t;
return {
position: "relative",
display: "table",
width: "100%",
borderCollapse: "separate",
borderSpacing: 0,
// Undo padding and float of grid classes
"&[class*='col-']": {
paddingInlineEnd: t.paddingXS,
"&:last-child": {
paddingInlineEnd: 0
}
},
// Sizing options
[`&-lg ${e}, &-lg > ${e}-group-addon`]: I({}, oX(t)),
[`&-sm ${e}, &-sm > ${e}-group-addon`]: I({}, sX(t)),
[`> ${e}`]: {
display: "table-cell",
"&:not(:first-child):not(:last-child)": {
borderRadius: 0
}
},
[`${e}-group`]: {
"&-addon, &-wrap": {
display: "table-cell",
width: 1,
whiteSpace: "nowrap",
verticalAlign: "middle",
"&:not(:first-child):not(:last-child)": {
borderRadius: 0
}
},
"&-wrap > *": {
display: "block !important"
},
"&-addon": {
position: "relative",
padding: `0 ${t.inputPaddingHorizontal}px`,
color: t.colorText,
fontWeight: "normal",
fontSize: t.fontSize,
textAlign: "center",
backgroundColor: t.colorFillAlter,
border: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,
borderRadius: t.borderRadius,
transition: `all ${t.motionDurationSlow}`,
lineHeight: 1,
// Reset Select's style in addon
[`${n}-select`]: {
margin: `-${t.inputPaddingVertical + 1}px -${t.inputPaddingHorizontal}px`,
[`&${n}-select-single:not(${n}-select-customize-input)`]: {
[`${n}-select-selector`]: {
backgroundColor: "inherit",
border: `${t.lineWidth}px ${t.lineType} transparent`,
boxShadow: "none"
}
},
"&-open, &-focused": {
[`${n}-select-selector`]: {
color: t.colorPrimary
}
}
},
// https://github.com/ant-design/ant-design/issues/31333
[`${n}-cascader-picker`]: {
margin: `-9px -${t.inputPaddingHorizontal}px`,
backgroundColor: "transparent",
[`${n}-cascader-input`]: {
textAlign: "start",
border: 0,
boxShadow: "none"
}
}
},
"&-addon:first-child": {
borderInlineEnd: 0
},
"&-addon:last-child": {
borderInlineStart: 0
}
},
[`${e}`]: {
float: "inline-start",
width: "100%",
marginBottom: 0,
textAlign: "inherit",
"&:focus": {
zIndex: 1,
borderInlineEndWidth: 1
},
"&:hover": {
zIndex: 1,
borderInlineEndWidth: 1,
[`${e}-search-with-button &`]: {
zIndex: 0
}
}
},
// Reset rounded corners
[`> ${e}:first-child, ${e}-group-addon:first-child`]: {
borderStartEndRadius: 0,
borderEndEndRadius: 0,
// Reset Select's style in addon
[`${n}-select ${n}-select-selector`]: {
borderStartEndRadius: 0,
borderEndEndRadius: 0
}
},
[`> ${e}-affix-wrapper`]: {
[`&:not(:first-child) ${e}`]: {
borderStartStartRadius: 0,
borderEndStartRadius: 0
},
[`&:not(:last-child) ${e}`]: {
borderStartEndRadius: 0,
borderEndEndRadius: 0
}
},
[`> ${e}:last-child, ${e}-group-addon:last-child`]: {
borderStartStartRadius: 0,
borderEndStartRadius: 0,
// Reset Select's style in addon
[`${n}-select ${n}-select-selector`]: {
borderStartStartRadius: 0,
borderEndStartRadius: 0
}
},
[`${e}-affix-wrapper`]: {
"&:not(:last-child)": {
borderStartEndRadius: 0,
borderEndEndRadius: 0,
[`${e}-search &`]: {
borderStartStartRadius: t.borderRadius,
borderEndStartRadius: t.borderRadius
}
},
[`&:not(:first-child), ${e}-search &:not(:first-child)`]: {
borderStartStartRadius: 0,
borderEndStartRadius: 0
}
},
[`&${e}-group-compact`]: I(I({
display: "block"
}, S1()), {
[`${e}-group-addon, ${e}-group-wrap, > ${e}`]: {
"&:not(:first-child):not(:last-child)": {
borderInlineEndWidth: t.lineWidth,
"&:hover": {
zIndex: 1
},
"&:focus": {
zIndex: 1
}
}
},
"& > *": {
display: "inline-block",
float: "none",
verticalAlign: "top",
borderRadius: 0
},
[`& > ${e}-affix-wrapper`]: {
display: "inline-flex"
},
[`& > ${n}-picker-range`]: {
display: "inline-flex"
},
"& > *:not(:last-child)": {
marginInlineEnd: -t.lineWidth,
borderInlineEndWidth: t.lineWidth
},
// Undo float for .ant-input-group .ant-input
[`${e}`]: {
float: "none"
},
// reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
[`& > ${n}-select > ${n}-select-selector,
& > ${n}-select-auto-complete ${e},
& > ${n}-cascader-picker ${e},
& > ${e}-group-wrapper ${e}`]: {
borderInlineEndWidth: t.lineWidth,
borderRadius: 0,
"&:hover": {
zIndex: 1
},
"&:focus": {
zIndex: 1
}
},
[`& > ${n}-select-focused`]: {
zIndex: 1
},
// update z-index for arrow icon
[`& > ${n}-select > ${n}-select-arrow`]: {
zIndex: 1
// https://github.com/ant-design/ant-design/issues/20371
},
[`& > *:first-child,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${e},
& > ${n}-cascader-picker:first-child ${e}`]: {
borderStartStartRadius: t.borderRadius,
borderEndStartRadius: t.borderRadius
},
[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${e},
& > ${n}-cascader-picker-focused:last-child ${e}`]: {
borderInlineEndWidth: t.lineWidth,
borderStartEndRadius: t.borderRadius,
borderEndEndRadius: t.borderRadius
},
// https://github.com/ant-design/ant-design/issues/12493
[`& > ${n}-select-auto-complete ${e}`]: {
verticalAlign: "top"
},
[`${e}-group-wrapper + ${e}-group-wrapper`]: {
marginInlineStart: -t.lineWidth,
[`${e}-affix-wrapper`]: {
borderRadius: 0
}
},
[`${e}-group-wrapper:not(:last-child)`]: {
[`&${e}-search > ${e}-group`]: {
[`& > ${e}-group-addon > ${e}-search-button`]: {
borderRadius: 0
},
[`& > ${e}`]: {
borderStartStartRadius: t.borderRadius,
borderStartEndRadius: 0,
borderEndEndRadius: 0,
borderEndStartRadius: t.borderRadius
}
}
}
}),
[`&&-sm ${n}-btn`]: {
fontSize: t.fontSizeSM,
height: t.controlHeightSM,
lineHeight: "normal"
},
[`&&-lg ${n}-btn`]: {
fontSize: t.fontSizeLG,
height: t.controlHeightLG,
lineHeight: "normal"
},
// Fix https://github.com/ant-design/ant-design/issues/5754
[`&&-lg ${n}-select-single ${n}-select-selector`]: {
height: `${t.controlHeightLG}px`,
[`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
// -2 is for the border size & override default
lineHeight: `${t.controlHeightLG - 2}px`
},
[`${n}-select-selection-search-input`]: {
height: `${t.controlHeightLG}px`
}
},
[`&&-sm ${n}-select-single ${n}-select-selector`]: {
height: `${t.controlHeightSM}px`,
[`${n}-select-selection-item, ${n}-select-selection-placeholder`]: {
// -2 is for the border size & override default
lineHeight: `${t.controlHeightSM - 2}px`
},
[`${n}-select-selection-search-input`]: {
height: `${t.controlHeightSM}px`
}
}
};
}, DOe = (t) => {
const {
componentCls: e,
controlHeightSM: n,
lineWidth: r
} = t, a = (n - r * 2 - 16) / 2;
return {
[e]: I(I(I(I({}, nn(t)), bx(t)), yx(t, e)), {
'&[type="color"]': {
height: t.controlHeight,
[`&${e}-lg`]: {
height: t.controlHeightLG
},
[`&${e}-sm`]: {
height: n,
paddingTop: a,
paddingBottom: a
}
}
})
};
}, ROe = (t) => {
const {
componentCls: e
} = t;
return {
// ========================= Input =========================
[`${e}-clear-icon`]: {
margin: 0,
color: t.colorTextQuaternary,
fontSize: t.fontSizeIcon,
verticalAlign: -1,
// https://github.com/ant-design/ant-design/pull/18151
// https://codesandbox.io/s/wizardly-sun-u10br
cursor: "pointer",
transition: `color ${t.motionDurationSlow}`,
"&:hover": {
color: t.colorTextTertiary
},
"&:active": {
color: t.colorText
},
"&-hidden": {
visibility: "hidden"
},
"&-has-suffix": {
margin: `0 ${t.inputAffixPadding}px`
}
},
// ======================= TextArea ========================
"&-textarea-with-clear-btn": {
padding: "0 !important",
border: "0 !important",
[`${e}-clear-icon`]: {
position: "absolute",
insetBlockStart: t.paddingXS,
insetInlineEnd: t.paddingXS,
zIndex: 1
}
}
};
}, kOe = (t) => {
const {
componentCls: e,
inputAffixPadding: n,
colorTextDescription: r,
motionDurationSlow: i,
colorIcon: a,
colorIconHover: o,
iconCls: s
} = t;
return {
[`${e}-affix-wrapper`]: I(I(I(I(I({}, bx(t)), {
display: "inline-flex",
[`&:not(${e}-affix-wrapper-disabled):hover`]: I(I({}, _0(t)), {
zIndex: 1,
[`${e}-search-with-button &`]: {
zIndex: 0
}
}),
"&-focused, &:focus": {
zIndex: 1
},
"&-disabled": {
[`${e}[disabled]`]: {
background: "transparent"
}
},
[`> input${e}`]: {
padding: 0,
fontSize: "inherit",
border: "none",
borderRadius: 0,
outline: "none",
"&:focus": {
boxShadow: "none !important"
}
},
"&::before": {
width: 0,
visibility: "hidden",
content: '"\\a0"'
},
[`${e}`]: {
"&-prefix, &-suffix": {
display: "flex",
flex: "none",
alignItems: "center",
"> *:not(:last-child)": {
marginInlineEnd: t.paddingXS
}
},
"&-show-count-suffix": {
color: r
},
"&-show-count-has-suffix": {
marginInlineEnd: t.paddingXXS
},
"&-prefix": {
marginInlineEnd: n
},
"&-suffix": {
marginInlineStart: n
}
}
}), ROe(t)), {
// password
[`${s}${e}-password-icon`]: {
color: a,
cursor: "pointer",
transition: `all ${i}`,
"&:hover": {
color: o
}
}
}), yx(t, `${e}-affix-wrapper`))
};
}, LOe = (t) => {
const {
componentCls: e,
colorError: n,
colorSuccess: r,
borderRadiusLG: i,
borderRadiusSM: a
} = t;
return {
[`${e}-group`]: I(I(I({}, nn(t)), lX(t)), {
"&-rtl": {
direction: "rtl"
},
"&-wrapper": {
display: "inline-block",
width: "100%",
textAlign: "start",
verticalAlign: "top",
"&-rtl": {
direction: "rtl"
},
// Size
"&-lg": {
[`${e}-group-addon`]: {
borderRadius: i
}
},
"&-sm": {
[`${e}-group-addon`]: {
borderRadius: a
}
},
// Status
"&-status-error": {
[`${e}-group-addon`]: {
color: n,
borderColor: n
}
},
"&-status-warning": {
[`${e}-group-addon:last-child`]: {
color: r,
borderColor: r
}
}
}
})
};
}, NOe = (t) => {
const {
componentCls: e,
antCls: n
} = t, r = `${e}-search`;
return {
[r]: {
[`${e}`]: {
"&:hover, &:focus": {
borderColor: t.colorPrimaryHover,
[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]: {
borderInlineStartColor: t.colorPrimaryHover
}
}
},
[`${e}-affix-wrapper`]: {
borderRadius: 0
},
// fix slight height diff in Firefox:
// https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-certain-category
[`${e}-lg`]: {
lineHeight: t.lineHeightLG - 2e-4
},
[`> ${e}-group`]: {
[`> ${e}-group-addon:last-child`]: {
insetInlineStart: -1,
padding: 0,
border: 0,
[`${r}-button`]: {
paddingTop: 0,
paddingBottom: 0,
borderStartStartRadius: 0,
borderStartEndRadius: t.borderRadius,
borderEndEndRadius: t.borderRadius,
borderEndStartRadius: 0
},
[`${r}-button:not(${n}-btn-primary)`]: {
color: t.colorTextDescription,
"&:hover": {
color: t.colorPrimaryHover
},
"&:active": {
color: t.colorPrimaryActive
},
[`&${n}-btn-loading::before`]: {
insetInlineStart: 0,
insetInlineEnd: 0,
insetBlockStart: 0,
insetBlockEnd: 0
}
}
}
},
[`${r}-button`]: {
height: t.controlHeight,
"&:hover, &:focus": {
zIndex: 1
}
},
[`&-large ${r}-button`]: {
height: t.controlHeightLG
},
[`&-small ${r}-button`]: {
height: t.controlHeightSM
},
"&-rtl": {
direction: "rtl"
},
// ===================== Compact Item Customized Styles =====================
[`&${e}-compact-item`]: {
[`&:not(${e}-compact-last-item)`]: {
[`${e}-group-addon`]: {
[`${e}-search-button`]: {
marginInlineEnd: -t.lineWidth,
borderRadius: 0
}
}
},
[`&:not(${e}-compact-first-item)`]: {
[`${e},${e}-affix-wrapper`]: {
borderRadius: 0
}
},
[`> ${e}-group-addon ${e}-search-button,
> ${e},
${e}-affix-wrapper`]: {
"&:hover,&:focus,&:active": {
zIndex: 2
}
},
[`> ${e}-affix-wrapper-focused`]: {
zIndex: 2
}
}
}
};
};
function uX(t) {
return Bt(t, {
inputAffixPadding: t.paddingXXS,
inputPaddingVertical: Math.max(Math.round((t.controlHeight - t.fontSize * t.lineHeight) / 2 * 10) / 10 - t.lineWidth, 3),
inputPaddingVerticalLG: Math.ceil((t.controlHeightLG - t.fontSizeLG * t.lineHeightLG) / 2 * 10) / 10 - t.lineWidth,
inputPaddingVerticalSM: Math.max(Math.round((t.controlHeightSM - t.fontSize * t.lineHeight) / 2 * 10) / 10 - t.lineWidth, 0),
inputPaddingHorizontal: t.paddingSM - t.lineWidth,
inputPaddingHorizontalSM: t.paddingXS - t.lineWidth,
inputPaddingHorizontalLG: t.controlPaddingHorizontal - t.lineWidth,
inputBorderHoverColor: t.colorPrimaryHover,
inputBorderActiveColor: t.colorPrimaryHover
});
}
const BOe = (t) => {
const {
componentCls: e,
inputPaddingHorizontal: n,
paddingLG: r
} = t, i = `${e}-textarea`;
return {
[i]: {
position: "relative",
[`${i}-suffix`]: {
position: "absolute",
top: 0,
insetInlineEnd: n,
bottom: 0,
zIndex: 1,
display: "inline-flex",
alignItems: "center",
margin: "auto"
},
"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating": {
[`&${i}-has-feedback`]: {
[`${e}`]: {
paddingInlineEnd: r
}
}
},
"&-show-count": {
// https://github.com/ant-design/ant-design/issues/33049
[`> ${e}`]: {
height: "100%"
},
"&::after": {
color: t.colorTextDescription,
whiteSpace: "nowrap",
content: "attr(data-count)",
pointerEvents: "none",
float: "right"
}
},
"&-rtl": {
"&::after": {
float: "left"
}
}
}
};
}, uD = Sn("Input", (t) => {
const e = uX(t);
return [
DOe(e),
BOe(e),
kOe(e),
LOe(e),
NOe(e),
// =====================================================
// == Space Compact ==
// =====================================================
dx(e)
];
});
function zOe(t) {
const e = ae(), n = ae(!1);
function r() {
for (var i = arguments.length, a = new Array(i), o = 0; o < i; o++)
a[o] = arguments[o];
n.value || (xt.cancel(e.value), e.value = xt(() => {
t(...a);
}));
}
return yt(() => {
n.value = !0, xt.cancel(e.value);
}), r;
}
function VOe(t) {
const e = ae([]), n = ae(typeof t == "function" ? t() : t), r = zOe(() => {
let a = n.value;
e.value.forEach((o) => {
a = o(a);
}), e.value = [], n.value = a;
});
function i(a) {
e.value.push(a), r();
}
return [n, i];
}
const FOe = te({
compatConfig: {
MODE: 3
},
name: "TabNode",
props: {
id: {
type: String
},
prefixCls: {
type: String
},
tab: {
type: Object
},
active: {
type: Boolean
},
closable: {
type: Boolean
},
editable: {
type: Object
},
onClick: {
type: Function
},
onResize: {
type: Function
},
renderWrapper: {
type: Function
},
removeAriaLabel: {
type: String
},
// onRemove: { type: Function as PropType<() => void> },
onFocus: {
type: Function
}
},
emits: ["click", "resize", "remove", "focus"],
setup(t, e) {
let {
expose: n,
attrs: r
} = e;
const i = U();
function a(l) {
var u;
!((u = t.tab) === null || u === void 0) && u.disabled || t.onClick(l);
}
n({
domRef: i
});
function o(l) {
var u;
l.preventDefault(), l.stopPropagation(), t.editable.onEdit("remove", {
key: (u = t.tab) === null || u === void 0 ? void 0 : u.key,
event: l
});
}
const s = L(() => {
var l;
return t.editable && t.closable !== !1 && !(!((l = t.tab) === null || l === void 0) && l.disabled);
});
return () => {
var l;
const {
prefixCls: u,
id: c,
active: f,
tab: {
key: d,
tab: h,
disabled: p,
closeIcon: v
},
renderWrapper: g,
removeAriaLabel: m,
editable: y,
onFocus: b
} = t, _ = `${u}-tab`, O = M("div", {
key: d,
ref: i,
class: ye(_, {
[`${_}-with-remove`]: s.value,
[`${_}-active`]: f,
[`${_}-disabled`]: p
}),
style: r.style,
onClick: a
}, [M("div", {
role: "tab",
"aria-selected": f,
id: c && `${c}-tab-${d}`,
class: `${_}-btn`,
"aria-controls": c && `${c}-panel-${d}`,
"aria-disabled": p,
tabindex: p ? null : 0,
onClick: (S) => {
S.stopPropagation(), a(S);
},
onKeydown: (S) => {
[ge.SPACE, ge.ENTER].includes(S.which) && (S.preventDefault(), a(S));
},
onFocus: b
}, [typeof h == "function" ? h() : h]), s.value && M("button", {
type: "button",
"aria-label": m || "remove",
tabindex: 0,
class: `${_}-remove`,
onClick: (S) => {
S.stopPropagation(), o(S);
}
}, [(v == null ? void 0 : v()) || ((l = y.removeIcon) === null || l === void 0 ? void 0 : l.call(y)) || "×"])]);
return g ? g(O) : O;
};
}
}), w5 = {
width: 0,
height: 0,
left: 0,
top: 0
};
function WOe(t, e) {
const n = U(/* @__PURE__ */ new Map());
return ht(() => {
var r, i;
const a = /* @__PURE__ */ new Map(), o = t.value, s = e.value.get((r = o[0]) === null || r === void 0 ? void 0 : r.key) || w5, l = s.left + s.width;
for (let u = 0; u < o.length; u += 1) {
const {
key: c
} = o[u];
let f = e.value.get(c);
f || (f = e.value.get((i = o[u - 1]) === null || i === void 0 ? void 0 : i.key) || w5);
const d = a.get(c) || I({}, f);
d.right = l - d.left - d.width, a.set(c, d);
}
n.value = new Map(a);
}), n;
}
const cX = te({
compatConfig: {
MODE: 3
},
name: "AddButton",
inheritAttrs: !1,
props: {
prefixCls: String,
editable: {
type: Object
},
locale: {
type: Object,
default: void 0
}
},
setup(t, e) {
let {
expose: n,
attrs: r
} = e;
const i = U();
return n({
domRef: i
}), () => {
const {
prefixCls: a,
editable: o,
locale: s
} = t;
return !o || o.showAdd === !1 ? null : M("button", {
ref: i,
type: "button",
class: `${a}-nav-add`,
style: r.style,
"aria-label": (s == null ? void 0 : s.addAriaLabel) || "Add tab",
onClick: (l) => {
o.onEdit("add", {
event: l
});
}
}, [o.addIcon ? o.addIcon() : "+"]);
};
}
}), QOe = {
prefixCls: {
type: String
},
id: {
type: String
},
tabs: {
type: Object
},
rtl: {
type: Boolean
},
tabBarGutter: {
type: Number
},
activeKey: {
type: [String, Number]
},
mobile: {
type: Boolean
},
moreIcon: Y.any,
moreTransitionName: {
type: String
},
editable: {
type: Object
},
locale: {
type: Object,
default: void 0
},
removeAriaLabel: String,
onTabClick: {
type: Function
},
popupClassName: String,
getPopupContainer: tt()
}, HOe = te({
compatConfig: {
MODE: 3
},
name: "OperationNode",
inheritAttrs: !1,
props: QOe,
emits: ["tabClick"],
slots: Object,
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const [i, a] = fn(!1), [o, s] = fn(null), l = (h) => {
const p = t.tabs.filter((m) => !m.disabled);
let v = p.findIndex((m) => m.key === o.value) || 0;
const g = p.length;
for (let m = 0; m < g; m += 1) {
v = (v + h + g) % g;
const y = p[v];
if (!y.disabled) {
s(y.key);
return;
}
}
}, u = (h) => {
const {
which: p
} = h;
if (!i.value) {
[ge.DOWN, ge.SPACE, ge.ENTER].includes(p) && (a(!0), h.preventDefault());
return;
}
switch (p) {
case ge.UP:
l(-1), h.preventDefault();
break;
case ge.DOWN:
l(1), h.preventDefault();
break;
case ge.ESC:
a(!1);
break;
case ge.SPACE:
case ge.ENTER:
o.value !== null && t.onTabClick(o.value, h);
break;
}
}, c = L(() => `${t.id}-more-popup`), f = L(() => o.value !== null ? `${c.value}-${o.value}` : null), d = (h, p) => {
h.preventDefault(), h.stopPropagation(), t.editable.onEdit("remove", {
key: p,
event: h
});
};
return it(() => {
se(o, () => {
const h = document.getElementById(f.value);
h && h.scrollIntoView && h.scrollIntoView(!1);
}, {
flush: "post",
immediate: !0
});
}), se(i, () => {
i.value || s(null);
}), Y1e({}), () => {
var h;
const {
prefixCls: p,
id: v,
tabs: g,
locale: m,
mobile: y,
moreIcon: b = ((h = r.moreIcon) === null || h === void 0 ? void 0 : h.call(r)) || M(vx, null, null),
moreTransitionName: _,
editable: O,
tabBarGutter: S,
rtl: x,
onTabClick: C,
popupClassName: T
} = t;
if (!g.length) return null;
const w = `${p}-dropdown`, P = m == null ? void 0 : m.dropdownAriaLabel, $ = {
[x ? "marginRight" : "marginLeft"]: S
};
g.length || ($.visibility = "hidden", $.order = 1);
const A = ye({
[`${w}-rtl`]: x,
[`${T}`]: !0
}), D = y ? null : M(g1e, {
prefixCls: w,
trigger: ["hover"],
visible: i.value,
transitionName: _,
onVisibleChange: a,
overlayClassName: A,
mouseEnterDelay: 0.1,
mouseLeaveDelay: 0.1,
getPopupContainer: t.getPopupContainer
}, {
overlay: () => M(jl, {
onClick: (E) => {
let {
key: R,
domEvent: N
} = E;
C(R, N), a(!1);
},
id: c.value,
tabindex: -1,
role: "listbox",
"aria-activedescendant": f.value,
selectedKeys: [o.value],
"aria-label": P !== void 0 ? P : "expanded dropdown"
}, {
default: () => [g.map((E) => {
var R, N;
const V = O && E.closable !== !1 && !E.disabled;
return M(Mh, {
key: E.key,
id: `${c.value}-${E.key}`,
role: "option",
"aria-controls": v && `${v}-panel-${E.key}`,
disabled: E.disabled
}, {
default: () => [M("span", null, [typeof E.tab == "function" ? E.tab() : E.tab]), V && M("button", {
type: "button",
"aria-label": t.removeAriaLabel || "remove",
tabindex: 0,
class: `${w}-menu-item-remove`,
onClick: (B) => {
B.stopPropagation(), d(B, E.key);
}
}, [((R = E.closeIcon) === null || R === void 0 ? void 0 : R.call(E)) || ((N = O.removeIcon) === null || N === void 0 ? void 0 : N.call(O)) || "×"])]
});
})]
}),
default: () => M("button", {
type: "button",
class: `${p}-nav-more`,
style: $,
tabindex: -1,
"aria-hidden": "true",
"aria-haspopup": "listbox",
"aria-controls": c.value,
id: `${v}-more`,
"aria-expanded": i.value,
onKeydown: u
}, [b])
});
return M("div", {
class: ye(`${p}-nav-operations`, n.class),
style: n.style
}, [D, M(cX, {
prefixCls: p,
locale: m,
editable: O
}, null)]);
};
}
}), fX = Symbol("tabsContextKey"), dX = (t) => {
pt(fX, t);
}, hX = () => Ge(fX, {
tabs: U([]),
prefixCls: U()
});
te({
compatConfig: {
MODE: 3
},
name: "TabsContextProvider",
inheritAttrs: !1,
props: {
tabs: {
type: Object,
default: void 0
},
prefixCls: {
type: String,
default: void 0
}
},
setup(t, e) {
let {
slots: n
} = e;
return dX(ES(t)), () => {
var r;
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
};
}
});
const GOe = 0.1, C5 = 0.01, P_ = 20, T5 = Math.pow(0.995, P_);
function jOe(t, e) {
const [n, r] = fn(), [i, a] = fn(0), [o, s] = fn(0), [l, u] = fn(), c = U();
function f(O) {
const {
screenX: S,
screenY: x
} = O.touches[0];
r({
x: S,
y: x
}), clearInterval(c.value);
}
function d(O) {
if (!n.value) return;
O.preventDefault();
const {
screenX: S,
screenY: x
} = O.touches[0], C = S - n.value.x, T = x - n.value.y;
e(C, T), r({
x: S,
y: x
});
const w = Date.now();
s(w - i.value), a(w), u({
x: C,
y: T
});
}
function h() {
if (!n.value) return;
const O = l.value;
if (r(null), u(null), O) {
const S = O.x / o.value, x = O.y / o.value, C = Math.abs(S), T = Math.abs(x);
if (Math.max(C, T) < GOe) return;
let w = S, P = x;
c.value = setInterval(() => {
if (Math.abs(w) < C5 && Math.abs(P) < C5) {
clearInterval(c.value);
return;
}
w *= T5, P *= T5, e(w * P_, P * P_);
}, P_);
}
}
const p = U();
function v(O) {
const {
deltaX: S,
deltaY: x
} = O;
let C = 0;
const T = Math.abs(S), w = Math.abs(x);
T === w ? C = p.value === "x" ? S : x : T > w ? (C = S, p.value = "x") : (C = x, p.value = "y"), e(-C, -C) && O.preventDefault();
}
const g = U({
onTouchStart: f,
onTouchMove: d,
onTouchEnd: h,
onWheel: v
});
function m(O) {
g.value.onTouchStart(O);
}
function y(O) {
g.value.onTouchMove(O);
}
function b(O) {
g.value.onTouchEnd(O);
}
function _(O) {
g.value.onWheel(O);
}
it(() => {
var O, S;
document.addEventListener("touchmove", y, {
passive: !1
}), document.addEventListener("touchend", b, {
passive: !1
}), (O = t.value) === null || O === void 0 || O.addEventListener("touchstart", m, {
passive: !1
}), (S = t.value) === null || S === void 0 || S.addEventListener("wheel", _, {
passive: !1
});
}), yt(() => {
document.removeEventListener("touchmove", y), document.removeEventListener("touchend", b);
});
}
function P5(t, e) {
const n = U(t);
function r(i) {
const a = typeof i == "function" ? i(n.value) : i;
a !== n.value && e(a, n.value), n.value = a;
}
return [n, r];
}
const ZOe = () => {
const t = U(/* @__PURE__ */ new Map()), e = (n) => (r) => {
t.value.set(n, r);
};
return j9(() => {
t.value = /* @__PURE__ */ new Map();
}), [e, t];
}, $5 = {
width: 0,
height: 0,
left: 0,
top: 0,
right: 0
}, UOe = () => ({
id: {
type: String
},
tabPosition: {
type: String
},
activeKey: {
type: [String, Number]
},
rtl: {
type: Boolean
},
animated: $t(),
editable: $t(),
moreIcon: Y.any,
moreTransitionName: {
type: String
},
mobile: {
type: Boolean
},
tabBarGutter: {
type: Number
},
renderTabBar: {
type: Function
},
locale: $t(),
popupClassName: String,
getPopupContainer: tt(),
onTabClick: {
type: Function
},
onTabScroll: {
type: Function
}
}), XOe = (t, e) => {
const {
offsetWidth: n,
offsetHeight: r,
offsetTop: i,
offsetLeft: a
} = t, {
width: o,
height: s,
x: l,
y: u
} = t.getBoundingClientRect();
return Math.abs(o - n) < 1 ? [o, s, l - e.x, u - e.y] : [n, r, a, i];
}, A5 = te({
compatConfig: {
MODE: 3
},
name: "TabNavList",
inheritAttrs: !1,
props: UOe(),
slots: Object,
emits: ["tabClick", "tabScroll"],
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const {
tabs: i,
prefixCls: a
} = hX(), o = ae(), s = ae(), l = ae(), u = ae(), [c, f] = ZOe(), d = L(() => t.tabPosition === "top" || t.tabPosition === "bottom"), [h, p] = P5(0, (be, he) => {
d.value && t.onTabScroll && t.onTabScroll({
direction: be > he ? "left" : "right"
});
}), [v, g] = P5(0, (be, he) => {
!d.value && t.onTabScroll && t.onTabScroll({
direction: be > he ? "top" : "bottom"
});
}), [m, y] = fn(0), [b, _] = fn(0), [O, S] = fn(null), [x, C] = fn(null), [T, w] = fn(0), [P, $] = fn(0), [A, D] = VOe(/* @__PURE__ */ new Map()), E = WOe(i, A), R = L(() => `${a.value}-nav-operations-hidden`), N = ae(0), V = ae(0);
ht(() => {
d.value ? t.rtl ? (N.value = 0, V.value = Math.max(0, m.value - O.value)) : (N.value = Math.min(0, O.value - m.value), V.value = 0) : (N.value = Math.min(0, x.value - b.value), V.value = 0);
});
const B = (be) => be < N.value ? N.value : be > V.value ? V.value : be, W = ae(), [F, Q] = fn(), Z = () => {
Q(Date.now());
}, ne = () => {
clearTimeout(W.value);
}, ee = (be, he) => {
be((Te) => B(Te + he));
};
jOe(o, (be, he) => {
if (d.value) {
if (O.value >= m.value)
return !1;
ee(p, be);
} else {
if (x.value >= b.value)
return !1;
ee(g, he);
}
return ne(), Z(), !0;
}), se(F, () => {
ne(), F.value && (W.value = setTimeout(() => {
Q(0);
}, 100));
});
const oe = function() {
let be = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : t.activeKey;
const he = E.value.get(be) || {
width: 0,
height: 0,
left: 0,
right: 0,
top: 0
};
if (d.value) {
let Te = h.value;
t.rtl ? he.right < h.value ? Te = he.right : he.right + he.width > h.value + O.value && (Te = he.right + he.width - O.value) : he.left < -h.value ? Te = -he.left : he.left + he.width > -h.value + O.value && (Te = -(he.left + he.width - O.value)), g(0), p(B(Te));
} else {
let Te = v.value;
he.top < -v.value ? Te = -he.top : he.top + he.height > -v.value + x.value && (Te = -(he.top + he.height - x.value)), p(0), g(B(Te));
}
}, K = ae(0), ie = ae(0);
ht(() => {
let be, he, Te, ze, ut, ct;
const Dt = E.value;
["top", "bottom"].includes(t.tabPosition) ? (be = "width", ze = O.value, ut = m.value, ct = T.value, he = t.rtl ? "right" : "left", Te = Math.abs(h.value)) : (be = "height", ze = x.value, ut = m.value, ct = P.value, he = "top", Te = -v.value);
let ve = ze;
ut + ct > ze && ut < ze && (ve = ze - ct);
const Xe = i.value;
if (!Xe.length)
return [K.value, ie.value] = [0, 0];
const Rt = Xe.length;
let An = Rt;
for (let Ar = 0; Ar < Rt; Ar += 1) {
const Wa = Dt.get(Xe[Ar].key) || $5;
if (Wa[he] + Wa[be] > Te + ve) {
An = Ar - 1;
break;
}
}
let sn = 0;
for (let Ar = Rt - 1; Ar >= 0; Ar -= 1)
if ((Dt.get(Xe[Ar].key) || $5)[he] < Te) {
sn = Ar + 1;
break;
}
return [K.value, ie.value] = [sn, An];
});
const X = () => {
D(() => {
var be;
const he = /* @__PURE__ */ new Map(), Te = (be = s.value) === null || be === void 0 ? void 0 : be.getBoundingClientRect();
return i.value.forEach((ze) => {
let {
key: ut
} = ze;
const ct = f.value.get(ut), Dt = (ct == null ? void 0 : ct.$el) || ct;
if (Dt) {
const [ve, Xe, Rt, An] = XOe(Dt, Te);
he.set(ut, {
width: ve,
height: Xe,
left: Rt,
top: An
});
}
}), he;
});
};
se(() => i.value.map((be) => be.key).join("%%"), () => {
X();
}, {
flush: "post"
});
const H = () => {
var be, he, Te, ze, ut;
const ct = ((be = o.value) === null || be === void 0 ? void 0 : be.offsetWidth) || 0, Dt = ((he = o.value) === null || he === void 0 ? void 0 : he.offsetHeight) || 0, ve = ((Te = u.value) === null || Te === void 0 ? void 0 : Te.$el) || {}, Xe = ve.offsetWidth || 0, Rt = ve.offsetHeight || 0;
S(ct), C(Dt), w(Xe), $(Rt);
const An = (((ze = s.value) === null || ze === void 0 ? void 0 : ze.offsetWidth) || 0) - Xe, sn = (((ut = s.value) === null || ut === void 0 ? void 0 : ut.offsetHeight) || 0) - Rt;
y(An), _(sn), X();
}, G = L(() => [...i.value.slice(0, K.value), ...i.value.slice(ie.value + 1)]), [re, fe] = fn(), de = L(() => E.value.get(t.activeKey)), Ee = ae(), $e = () => {
xt.cancel(Ee.value);
};
se([de, d, () => t.rtl], () => {
const be = {};
de.value && (d.value ? (t.rtl ? be.right = Zp(de.value.right) : be.left = Zp(de.value.left), be.width = Zp(de.value.width)) : (be.top = Zp(de.value.top), be.height = Zp(de.value.height))), $e(), Ee.value = xt(() => {
fe(be);
});
}), se([() => t.activeKey, de, E, d], () => {
oe();
}, {
flush: "post"
}), se([() => t.rtl, () => t.tabBarGutter, () => t.activeKey, () => i.value], () => {
H();
}, {
flush: "post"
});
const Se = (be) => {
let {
position: he,
prefixCls: Te,
extra: ze
} = be;
if (!ze) return null;
const ut = ze == null ? void 0 : ze({
position: he
});
return ut ? M("div", {
class: `${Te}-extra-content`
}, [ut]) : null;
};
return yt(() => {
ne(), $e();
}), () => {
const {
id: be,
animated: he,
activeKey: Te,
rtl: ze,
editable: ut,
locale: ct,
tabPosition: Dt,
tabBarGutter: ve,
onTabClick: Xe
} = t, {
class: Rt,
style: An
} = n, sn = a.value, Ar = !!G.value.length, Wa = `${sn}-nav-wrap`;
let Qp, Hp, vy, Gw;
d.value ? ze ? (Hp = h.value > 0, Qp = h.value + O.value < m.value) : (Qp = h.value < 0, Hp = -h.value + O.value < m.value) : (vy = v.value < 0, Gw = -v.value + x.value < b.value);
const jf = {};
Dt === "top" || Dt === "bottom" ? jf[ze ? "marginRight" : "marginLeft"] = typeof ve == "number" ? `${ve}px` : ve : jf.marginTop = typeof ve == "number" ? `${ve}px` : ve;
const jw = i.value.map((Gp, Zw) => {
const {
key: Zf
} = Gp;
return M(FOe, {
id: be,
prefixCls: sn,
key: Zf,
tab: Gp,
style: Zw === 0 ? void 0 : jf,
closable: Gp.closable,
editable: ut,
active: Zf === Te,
removeAriaLabel: ct == null ? void 0 : ct.removeAriaLabel,
ref: c(Zf),
onClick: (W4) => {
Xe(Zf, W4);
},
onFocus: () => {
oe(Zf), Z(), o.value && (ze || (o.value.scrollLeft = 0), o.value.scrollTop = 0);
}
}, r);
});
return M("div", {
role: "tablist",
class: ye(`${sn}-nav`, Rt),
style: An,
onKeydown: () => {
Z();
}
}, [M(Se, {
position: "left",
prefixCls: sn,
extra: r.leftExtra
}, null), M(bh, {
onResize: H
}, {
default: () => [M("div", {
class: ye(Wa, {
[`${Wa}-ping-left`]: Qp,
[`${Wa}-ping-right`]: Hp,
[`${Wa}-ping-top`]: vy,
[`${Wa}-ping-bottom`]: Gw
}),
ref: o
}, [M(bh, {
onResize: H
}, {
default: () => [M("div", {
ref: s,
class: `${sn}-nav-list`,
style: {
transform: `translate(${h.value}px, ${v.value}px)`,
transition: F.value ? "none" : void 0
}
}, [jw, M(cX, {
ref: u,
prefixCls: sn,
locale: ct,
editable: ut,
style: I(I({}, jw.length === 0 ? void 0 : jf), {
visibility: Ar ? "hidden" : null
})
}, null), M("div", {
class: ye(`${sn}-ink-bar`, {
[`${sn}-ink-bar-animated`]: he.inkBar
}),
style: re.value
}, null)])]
})])]
}), M(HOe, j(j({}, t), {}, {
removeAriaLabel: ct == null ? void 0 : ct.removeAriaLabel,
ref: l,
prefixCls: sn,
tabs: G.value,
class: !Ar && R.value
}), um(r, ["moreIcon"])), M(Se, {
position: "right",
prefixCls: sn,
extra: r.rightExtra
}, null), M(Se, {
position: "right",
prefixCls: sn,
extra: r.tabBarExtraContent
}, null)]);
};
}
}), YOe = te({
compatConfig: {
MODE: 3
},
name: "TabPanelList",
inheritAttrs: !1,
props: {
activeKey: {
type: [String, Number]
},
id: {
type: String
},
rtl: {
type: Boolean
},
animated: {
type: Object,
default: void 0
},
tabPosition: {
type: String
},
destroyInactiveTabPane: {
type: Boolean
}
},
setup(t) {
const {
tabs: e,
prefixCls: n
} = hX();
return () => {
const {
id: r,
activeKey: i,
animated: a,
tabPosition: o,
rtl: s,
destroyInactiveTabPane: l
} = t, u = a.tabPane, c = n.value, f = e.value.findIndex((d) => d.key === i);
return M("div", {
class: `${c}-content-holder`
}, [M("div", {
class: [`${c}-content`, `${c}-content-${o}`, {
[`${c}-content-animated`]: u
}],
style: f && u ? {
[s ? "marginRight" : "marginLeft"]: `-${f}00%`
} : null
}, [e.value.map((d) => Pn(d.node, {
key: d.key,
prefixCls: c,
tabKey: d.key,
id: r,
animated: u,
active: d.key === i,
destroyInactiveTabPane: l
}))])]);
};
}
});
var qOe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
function E5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
KOe(t, i, n[i]);
});
}
return t;
}
function KOe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var _x = function(e, n) {
var r = E5({}, e, n.attrs);
return M(lt, E5({}, r, {
icon: qOe
}), null);
};
_x.displayName = "PlusOutlined";
_x.inheritAttrs = !1;
const JOe = (t) => {
const {
componentCls: e,
motionDurationSlow: n
} = t;
return [
{
[e]: {
[`${e}-switch`]: {
"&-appear, &-enter": {
transition: "none",
"&-start": {
opacity: 0
},
"&-active": {
opacity: 1,
transition: `opacity ${n}`
}
},
"&-leave": {
position: "absolute",
transition: "none",
inset: 0,
"&-start": {
opacity: 1
},
"&-active": {
opacity: 0,
transition: `opacity ${n}`
}
}
}
}
},
// Follow code may reuse in other components
[Eh(t, "slide-up"), Eh(t, "slide-down")]
];
}, eSe = (t) => {
const {
componentCls: e,
tabsCardHorizontalPadding: n,
tabsCardHeadBackground: r,
tabsCardGutter: i,
colorSplit: a
} = t;
return {
[`${e}-card`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab`]: {
margin: 0,
padding: n,
background: r,
border: `${t.lineWidth}px ${t.lineType} ${a}`,
transition: `all ${t.motionDurationSlow} ${t.motionEaseInOut}`
},
[`${e}-tab-active`]: {
color: t.colorPrimary,
background: t.colorBgContainer
},
[`${e}-ink-bar`]: {
visibility: "hidden"
}
},
// ========================== Top & Bottom ==========================
[`&${e}-top, &${e}-bottom`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab + ${e}-tab`]: {
marginLeft: {
_skip_check_: !0,
value: `${i}px`
}
}
}
},
[`&${e}-top`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab`]: {
borderRadius: `${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`
},
[`${e}-tab-active`]: {
borderBottomColor: t.colorBgContainer
}
}
},
[`&${e}-bottom`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab`]: {
borderRadius: `0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`
},
[`${e}-tab-active`]: {
borderTopColor: t.colorBgContainer
}
}
},
// ========================== Left & Right ==========================
[`&${e}-left, &${e}-right`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab + ${e}-tab`]: {
marginTop: `${i}px`
}
}
},
[`&${e}-left`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab`]: {
borderRadius: {
_skip_check_: !0,
value: `${t.borderRadiusLG}px 0 0 ${t.borderRadiusLG}px`
}
},
[`${e}-tab-active`]: {
borderRightColor: {
_skip_check_: !0,
value: t.colorBgContainer
}
}
}
},
[`&${e}-right`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab`]: {
borderRadius: {
_skip_check_: !0,
value: `0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px 0`
}
},
[`${e}-tab-active`]: {
borderLeftColor: {
_skip_check_: !0,
value: t.colorBgContainer
}
}
}
}
}
};
}, tSe = (t) => {
const {
componentCls: e,
tabsHoverColor: n,
dropdownEdgeChildVerticalPadding: r
} = t;
return {
[`${e}-dropdown`]: I(I({}, nn(t)), {
position: "absolute",
top: -9999,
left: {
_skip_check_: !0,
value: -9999
},
zIndex: t.zIndexPopup,
display: "block",
"&-hidden": {
display: "none"
},
[`${e}-dropdown-menu`]: {
maxHeight: t.tabsDropdownHeight,
margin: 0,
padding: `${r}px 0`,
overflowX: "hidden",
overflowY: "auto",
textAlign: {
_skip_check_: !0,
value: "left"
},
listStyleType: "none",
backgroundColor: t.colorBgContainer,
backgroundClip: "padding-box",
borderRadius: t.borderRadiusLG,
outline: "none",
boxShadow: t.boxShadowSecondary,
"&-item": I(I({}, Sh), {
display: "flex",
alignItems: "center",
minWidth: t.tabsDropdownWidth,
margin: 0,
padding: `${t.paddingXXS}px ${t.paddingSM}px`,
color: t.colorText,
fontWeight: "normal",
fontSize: t.fontSize,
lineHeight: t.lineHeight,
cursor: "pointer",
transition: `all ${t.motionDurationSlow}`,
"> span": {
flex: 1,
whiteSpace: "nowrap"
},
"&-remove": {
flex: "none",
marginLeft: {
_skip_check_: !0,
value: t.marginSM
},
color: t.colorTextDescription,
fontSize: t.fontSizeSM,
background: "transparent",
border: 0,
cursor: "pointer",
"&:hover": {
color: n
}
},
"&:hover": {
background: t.controlItemBgHover
},
"&-disabled": {
"&, &:hover": {
color: t.colorTextDisabled,
background: "transparent",
cursor: "not-allowed"
}
}
})
}
})
};
}, nSe = (t) => {
const {
componentCls: e,
margin: n,
colorSplit: r
} = t;
return {
// ========================== Top & Bottom ==========================
[`${e}-top, ${e}-bottom`]: {
flexDirection: "column",
[`> ${e}-nav, > div > ${e}-nav`]: {
margin: `0 0 ${n}px 0`,
"&::before": {
position: "absolute",
right: {
_skip_check_: !0,
value: 0
},
left: {
_skip_check_: !0,
value: 0
},
borderBottom: `${t.lineWidth}px ${t.lineType} ${r}`,
content: "''"
},
[`${e}-ink-bar`]: {
height: t.lineWidthBold,
"&-animated": {
transition: `width ${t.motionDurationSlow}, left ${t.motionDurationSlow},
right ${t.motionDurationSlow}`
}
},
[`${e}-nav-wrap`]: {
"&::before, &::after": {
top: 0,
bottom: 0,
width: t.controlHeight
},
"&::before": {
left: {
_skip_check_: !0,
value: 0
},
boxShadow: t.boxShadowTabsOverflowLeft
},
"&::after": {
right: {
_skip_check_: !0,
value: 0
},
boxShadow: t.boxShadowTabsOverflowRight
},
[`&${e}-nav-wrap-ping-left::before`]: {
opacity: 1
},
[`&${e}-nav-wrap-ping-right::after`]: {
opacity: 1
}
}
}
},
[`${e}-top`]: {
[`> ${e}-nav,
> div > ${e}-nav`]: {
"&::before": {
bottom: 0
},
[`${e}-ink-bar`]: {
bottom: 0
}
}
},
[`${e}-bottom`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
order: 1,
marginTop: `${n}px`,
marginBottom: 0,
"&::before": {
top: 0
},
[`${e}-ink-bar`]: {
top: 0
}
},
[`> ${e}-content-holder, > div > ${e}-content-holder`]: {
order: 0
}
},
// ========================== Left & Right ==========================
[`${e}-left, ${e}-right`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
flexDirection: "column",
minWidth: t.controlHeight * 1.25,
// >>>>>>>>>>> Tab
[`${e}-tab`]: {
padding: `${t.paddingXS}px ${t.paddingLG}px`,
textAlign: "center"
},
[`${e}-tab + ${e}-tab`]: {
margin: `${t.margin}px 0 0 0`
},
// >>>>>>>>>>> Nav
[`${e}-nav-wrap`]: {
flexDirection: "column",
"&::before, &::after": {
right: {
_skip_check_: !0,
value: 0
},
left: {
_skip_check_: !0,
value: 0
},
height: t.controlHeight
},
"&::before": {
top: 0,
boxShadow: t.boxShadowTabsOverflowTop
},
"&::after": {
bottom: 0,
boxShadow: t.boxShadowTabsOverflowBottom
},
[`&${e}-nav-wrap-ping-top::before`]: {
opacity: 1
},
[`&${e}-nav-wrap-ping-bottom::after`]: {
opacity: 1
}
},
// >>>>>>>>>>> Ink Bar
[`${e}-ink-bar`]: {
width: t.lineWidthBold,
"&-animated": {
transition: `height ${t.motionDurationSlow}, top ${t.motionDurationSlow}`
}
},
[`${e}-nav-list, ${e}-nav-operations`]: {
flex: "1 0 auto",
flexDirection: "column"
}
}
},
[`${e}-left`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-ink-bar`]: {
right: {
_skip_check_: !0,
value: 0
}
}
},
[`> ${e}-content-holder, > div > ${e}-content-holder`]: {
marginLeft: {
_skip_check_: !0,
value: `-${t.lineWidth}px`
},
borderLeft: {
_skip_check_: !0,
value: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`
},
[`> ${e}-content > ${e}-tabpane`]: {
paddingLeft: {
_skip_check_: !0,
value: t.paddingLG
}
}
}
},
[`${e}-right`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
order: 1,
[`${e}-ink-bar`]: {
left: {
_skip_check_: !0,
value: 0
}
}
},
[`> ${e}-content-holder, > div > ${e}-content-holder`]: {
order: 0,
marginRight: {
_skip_check_: !0,
value: -t.lineWidth
},
borderRight: {
_skip_check_: !0,
value: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`
},
[`> ${e}-content > ${e}-tabpane`]: {
paddingRight: {
_skip_check_: !0,
value: t.paddingLG
}
}
}
}
};
}, rSe = (t) => {
const {
componentCls: e,
padding: n
} = t;
return {
[e]: {
"&-small": {
[`> ${e}-nav`]: {
[`${e}-tab`]: {
padding: `${t.paddingXS}px 0`,
fontSize: t.fontSize
}
}
},
"&-large": {
[`> ${e}-nav`]: {
[`${e}-tab`]: {
padding: `${n}px 0`,
fontSize: t.fontSizeLG
}
}
}
},
[`${e}-card`]: {
[`&${e}-small`]: {
[`> ${e}-nav`]: {
[`${e}-tab`]: {
padding: `${t.paddingXXS * 1.5}px ${n}px`
}
},
[`&${e}-bottom`]: {
[`> ${e}-nav ${e}-tab`]: {
borderRadius: `0 0 ${t.borderRadius}px ${t.borderRadius}px`
}
},
[`&${e}-top`]: {
[`> ${e}-nav ${e}-tab`]: {
borderRadius: `${t.borderRadius}px ${t.borderRadius}px 0 0`
}
},
[`&${e}-right`]: {
[`> ${e}-nav ${e}-tab`]: {
borderRadius: {
_skip_check_: !0,
value: `0 ${t.borderRadius}px ${t.borderRadius}px 0`
}
}
},
[`&${e}-left`]: {
[`> ${e}-nav ${e}-tab`]: {
borderRadius: {
_skip_check_: !0,
value: `${t.borderRadius}px 0 0 ${t.borderRadius}px`
}
}
}
},
[`&${e}-large`]: {
[`> ${e}-nav`]: {
[`${e}-tab`]: {
padding: `${t.paddingXS}px ${n}px ${t.paddingXXS * 1.5}px`
}
}
}
}
};
}, iSe = (t) => {
const {
componentCls: e,
tabsActiveColor: n,
tabsHoverColor: r,
iconCls: i,
tabsHorizontalGutter: a
} = t, o = `${e}-tab`;
return {
[o]: {
position: "relative",
display: "inline-flex",
alignItems: "center",
padding: `${t.paddingSM}px 0`,
fontSize: `${t.fontSize}px`,
background: "transparent",
border: 0,
outline: "none",
cursor: "pointer",
"&-btn, &-remove": I({
"&:focus:not(:focus-visible), &:active": {
color: n
}
}, WS(t)),
"&-btn": {
outline: "none",
transition: "all 0.3s"
},
"&-remove": {
flex: "none",
marginRight: {
_skip_check_: !0,
value: -t.marginXXS
},
marginLeft: {
_skip_check_: !0,
value: t.marginXS
},
color: t.colorTextDescription,
fontSize: t.fontSizeSM,
background: "transparent",
border: "none",
outline: "none",
cursor: "pointer",
transition: `all ${t.motionDurationSlow}`,
"&:hover": {
color: t.colorTextHeading
}
},
"&:hover": {
color: r
},
[`&${o}-active ${o}-btn`]: {
color: t.colorPrimary,
textShadow: t.tabsActiveTextShadow
},
[`&${o}-disabled`]: {
color: t.colorTextDisabled,
cursor: "not-allowed"
},
[`&${o}-disabled ${o}-btn, &${o}-disabled ${e}-remove`]: {
"&:focus, &:active": {
color: t.colorTextDisabled
}
},
[`& ${o}-remove ${i}`]: {
margin: 0
},
[i]: {
marginRight: {
_skip_check_: !0,
value: t.marginSM
}
}
},
[`${o} + ${o}`]: {
margin: {
_skip_check_: !0,
value: `0 0 0 ${a}px`
}
}
};
}, aSe = (t) => {
const {
componentCls: e,
tabsHorizontalGutter: n,
iconCls: r,
tabsCardGutter: i
} = t;
return {
[`${e}-rtl`]: {
direction: "rtl",
[`${e}-nav`]: {
[`${e}-tab`]: {
margin: {
_skip_check_: !0,
value: `0 0 0 ${n}px`
},
[`${e}-tab:last-of-type`]: {
marginLeft: {
_skip_check_: !0,
value: 0
}
},
[r]: {
marginRight: {
_skip_check_: !0,
value: 0
},
marginLeft: {
_skip_check_: !0,
value: `${t.marginSM}px`
}
},
[`${e}-tab-remove`]: {
marginRight: {
_skip_check_: !0,
value: `${t.marginXS}px`
},
marginLeft: {
_skip_check_: !0,
value: `-${t.marginXXS}px`
},
[r]: {
margin: 0
}
}
}
},
[`&${e}-left`]: {
[`> ${e}-nav`]: {
order: 1
},
[`> ${e}-content-holder`]: {
order: 0
}
},
[`&${e}-right`]: {
[`> ${e}-nav`]: {
order: 0
},
[`> ${e}-content-holder`]: {
order: 1
}
},
// ====================== Card ======================
[`&${e}-card${e}-top, &${e}-card${e}-bottom`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-tab + ${e}-tab`]: {
marginRight: {
_skip_check_: !0,
value: `${i}px`
},
marginLeft: {
_skip_check_: !0,
value: 0
}
}
}
}
},
[`${e}-dropdown-rtl`]: {
direction: "rtl"
},
[`${e}-menu-item`]: {
[`${e}-dropdown-rtl`]: {
textAlign: {
_skip_check_: !0,
value: "right"
}
}
}
};
}, oSe = (t) => {
const {
componentCls: e,
tabsCardHorizontalPadding: n,
tabsCardHeight: r,
tabsCardGutter: i,
tabsHoverColor: a,
tabsActiveColor: o,
colorSplit: s
} = t;
return {
[e]: I(I(I(I({}, nn(t)), {
display: "flex",
// ========================== Navigation ==========================
[`> ${e}-nav, > div > ${e}-nav`]: {
position: "relative",
display: "flex",
flex: "none",
alignItems: "center",
[`${e}-nav-wrap`]: {
position: "relative",
display: "flex",
flex: "auto",
alignSelf: "stretch",
overflow: "hidden",
whiteSpace: "nowrap",
transform: "translate(0)",
// >>>>> Ping shadow
"&::before, &::after": {
position: "absolute",
zIndex: 1,
opacity: 0,
transition: `opacity ${t.motionDurationSlow}`,
content: "''",
pointerEvents: "none"
}
},
[`${e}-nav-list`]: {
position: "relative",
display: "flex",
transition: `opacity ${t.motionDurationSlow}`
},
// >>>>>>>> Operations
[`${e}-nav-operations`]: {
display: "flex",
alignSelf: "stretch"
},
[`${e}-nav-operations-hidden`]: {
position: "absolute",
visibility: "hidden",
pointerEvents: "none"
},
[`${e}-nav-more`]: {
position: "relative",
padding: n,
background: "transparent",
border: 0,
"&::after": {
position: "absolute",
right: {
_skip_check_: !0,
value: 0
},
bottom: 0,
left: {
_skip_check_: !0,
value: 0
},
height: t.controlHeightLG / 8,
transform: "translateY(100%)",
content: "''"
}
},
[`${e}-nav-add`]: I({
minWidth: `${r}px`,
marginLeft: {
_skip_check_: !0,
value: `${i}px`
},
padding: `0 ${t.paddingXS}px`,
background: "transparent",
border: `${t.lineWidth}px ${t.lineType} ${s}`,
borderRadius: `${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,
outline: "none",
cursor: "pointer",
color: t.colorText,
transition: `all ${t.motionDurationSlow} ${t.motionEaseInOut}`,
"&:hover": {
color: a
},
"&:active, &:focus:not(:focus-visible)": {
color: o
}
}, WS(t))
},
[`${e}-extra-content`]: {
flex: "none"
},
// ============================ InkBar ============================
[`${e}-ink-bar`]: {
position: "absolute",
background: t.colorPrimary,
pointerEvents: "none"
}
}), iSe(t)), {
// =========================== TabPanes ===========================
[`${e}-content`]: {
position: "relative",
display: "flex",
width: "100%",
"&-animated": {
transition: "margin 0.3s"
}
},
[`${e}-content-holder`]: {
flex: "auto",
minWidth: 0,
minHeight: 0
},
[`${e}-tabpane`]: {
outline: "none",
flex: "none",
width: "100%"
}
}),
[`${e}-centered`]: {
[`> ${e}-nav, > div > ${e}-nav`]: {
[`${e}-nav-wrap`]: {
[`&:not([class*='${e}-nav-wrap-ping'])`]: {
justifyContent: "center"
}
}
}
}
};
}, sSe = Sn("Tabs", (t) => {
const e = t.controlHeightLG, n = Bt(t, {
tabsHoverColor: t.colorPrimaryHover,
tabsActiveColor: t.colorPrimaryActive,
tabsCardHorizontalPadding: `${(e - Math.round(t.fontSize * t.lineHeight)) / 2 - t.lineWidth}px ${t.padding}px`,
tabsCardHeight: e,
tabsCardGutter: t.marginXXS / 2,
tabsHorizontalGutter: 32,
tabsCardHeadBackground: t.colorFillAlter,
dropdownEdgeChildVerticalPadding: t.paddingXXS,
tabsActiveTextShadow: "0 0 0.25px currentcolor",
tabsDropdownHeight: 200,
tabsDropdownWidth: 120
});
return [rSe(n), aSe(n), nSe(n), tSe(n), eSe(n), oSe(n), JOe(n)];
}, (t) => ({
zIndexPopup: t.zIndexPopupBase + 50
}));
let M5 = 0;
const pX = () => ({
prefixCls: {
type: String
},
id: {
type: String
},
popupClassName: String,
getPopupContainer: tt(),
activeKey: {
type: [String, Number]
},
defaultActiveKey: {
type: [String, Number]
},
direction: hn(),
animated: gn([Boolean, Object]),
renderTabBar: tt(),
tabBarGutter: {
type: Number
},
tabBarStyle: $t(),
tabPosition: hn(),
destroyInactiveTabPane: nt(),
hideAdd: Boolean,
type: hn(),
size: hn(),
centered: Boolean,
onEdit: tt(),
onChange: tt(),
onTabClick: tt(),
onTabScroll: tt(),
"onUpdate:activeKey": tt(),
// Accessibility
locale: $t(),
onPrevClick: tt(),
onNextClick: tt(),
tabBarExtraContent: Y.any
});
function lSe(t) {
return t.map((e) => {
if (Yi(e)) {
const n = I({}, e.props || {});
for (const [d, h] of Object.entries(n))
delete n[d], n[nI(d)] = h;
const r = e.children || {}, i = e.key !== void 0 ? e.key : void 0, {
tab: a = r.tab,
disabled: o,
forceRender: s,
closable: l,
animated: u,
active: c,
destroyInactiveTabPane: f
} = n;
return I(I({
key: i
}, n), {
node: e,
closeIcon: r.closeIcon,
tab: a,
disabled: o === "" || o,
forceRender: s === "" || s,
closable: l === "" || l,
animated: u === "" || u,
active: c === "" || c,
destroyInactiveTabPane: f === "" || f
});
}
return null;
}).filter((e) => e);
}
const uSe = te({
compatConfig: {
MODE: 3
},
name: "InternalTabs",
inheritAttrs: !1,
props: I(I({}, sr(pX(), {
tabPosition: "top",
animated: {
inkBar: !0,
tabPane: !1
}
})), {
tabs: cf()
}),
slots: Object,
// emits: ['tabClick', 'tabScroll', 'change', 'update:activeKey'],
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
Gi(t.onPrevClick === void 0 && t.onNextClick === void 0, "Tabs", "`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."), Gi(t.tabBarExtraContent === void 0, "Tabs", "`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."), Gi(r.tabBarExtraContent === void 0, "Tabs", "`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");
const {
prefixCls: i,
direction: a,
size: o,
rootPrefixCls: s,
getPopupContainer: l
} = It("tabs", t), [u, c] = sSe(i), f = L(() => a.value === "rtl"), d = L(() => {
const {
animated: x,
tabPosition: C
} = t;
return x === !1 || ["left", "right"].includes(C) ? {
inkBar: !1,
tabPane: !1
} : x === !0 ? {
inkBar: !0,
tabPane: !0
} : I({
inkBar: !0,
tabPane: !1
}, typeof x == "object" ? x : {});
}), [h, p] = fn(!1);
it(() => {
p(EI());
});
const [v, g] = Ah(() => {
var x;
return (x = t.tabs[0]) === null || x === void 0 ? void 0 : x.key;
}, {
value: L(() => t.activeKey),
defaultValue: t.defaultActiveKey
}), [m, y] = fn(() => t.tabs.findIndex((x) => x.key === v.value));
ht(() => {
var x;
let C = t.tabs.findIndex((T) => T.key === v.value);
C === -1 && (C = Math.max(0, Math.min(m.value, t.tabs.length - 1)), g((x = t.tabs[C]) === null || x === void 0 ? void 0 : x.key)), y(C);
});
const [b, _] = Ah(null, {
value: L(() => t.id)
}), O = L(() => h.value && !["left", "right"].includes(t.tabPosition) ? "top" : t.tabPosition);
it(() => {
t.id || (_(`rc-tabs-${process.env.NODE_ENV === "test" ? "test" : M5}`), M5 += 1);
});
const S = (x, C) => {
var T, w;
(T = t.onTabClick) === null || T === void 0 || T.call(t, x, C);
const P = x !== v.value;
g(x), P && ((w = t.onChange) === null || w === void 0 || w.call(t, x));
};
return dX({
tabs: L(() => t.tabs),
prefixCls: i
}), () => {
const {
id: x,
type: C,
tabBarGutter: T,
tabBarStyle: w,
locale: P,
destroyInactiveTabPane: $,
renderTabBar: A = r.renderTabBar,
onTabScroll: D,
hideAdd: E,
centered: R
} = t, N = {
id: b.value,
activeKey: v.value,
animated: d.value,
tabPosition: O.value,
rtl: f.value,
mobile: h.value
};
let V;
C === "editable-card" && (V = {
onEdit: (Q, Z) => {
let {
key: ne,
event: ee
} = Z;
var oe;
(oe = t.onEdit) === null || oe === void 0 || oe.call(t, Q === "add" ? ee : ne, Q);
},
removeIcon: () => M(ol, null, null),
addIcon: r.addIcon ? r.addIcon : () => M(_x, null, null),
showAdd: E !== !0
});
let B;
const W = I(I({}, N), {
moreTransitionName: `${s.value}-slide-up`,
editable: V,
locale: P,
tabBarGutter: T,
onTabClick: S,
onTabScroll: D,
style: w,
getPopupContainer: l.value,
popupClassName: ye(t.popupClassName, c.value)
});
A ? B = A(I(I({}, W), {
DefaultTabBar: A5
})) : B = M(A5, W, um(r, ["moreIcon", "leftExtra", "rightExtra", "tabBarExtraContent"]));
const F = i.value;
return u(M("div", j(j({}, n), {}, {
id: x,
class: ye(F, `${F}-${O.value}`, {
[c.value]: !0,
[`${F}-${o.value}`]: o.value,
[`${F}-card`]: ["card", "editable-card"].includes(C),
[`${F}-editable-card`]: C === "editable-card",
[`${F}-centered`]: R,
[`${F}-mobile`]: h.value,
[`${F}-editable`]: C === "editable-card",
[`${F}-rtl`]: f.value
}, n.class)
}), [B, M(YOe, j(j({
destroyInactiveTabPane: $
}, N), {}, {
animated: d.value
}), null)]));
};
}
}), Uc = te({
compatConfig: {
MODE: 3
},
name: "ATabs",
inheritAttrs: !1,
props: sr(pX(), {
tabPosition: "top",
animated: {
inkBar: !0,
tabPane: !1
}
}),
slots: Object,
// emits: ['tabClick', 'tabScroll', 'change', 'update:activeKey'],
setup(t, e) {
let {
attrs: n,
slots: r,
emit: i
} = e;
const a = (o) => {
i("update:activeKey", o), i("change", o);
};
return () => {
var o;
const s = lSe(Yn((o = r.default) === null || o === void 0 ? void 0 : o.call(r)));
return M(uSe, j(j(j({}, or(t, ["onUpdate:activeKey"])), n), {}, {
onChange: a,
tabs: s
}), r);
};
}
}), cSe = () => ({
tab: Y.any,
disabled: {
type: Boolean
},
forceRender: {
type: Boolean
},
closable: {
type: Boolean
},
animated: {
type: Boolean
},
active: {
type: Boolean
},
destroyInactiveTabPane: {
type: Boolean
},
// Pass by TabPaneList
prefixCls: {
type: String
},
tabKey: {
type: [String, Number]
},
id: {
type: String
}
// closeIcon: PropTypes.any,
}), Ws = te({
compatConfig: {
MODE: 3
},
name: "ATabPane",
inheritAttrs: !1,
__ANT_TAB_PANE: !0,
props: cSe(),
slots: Object,
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const i = U(t.forceRender);
se([() => t.active, () => t.destroyInactiveTabPane], () => {
t.active ? i.value = !0 : t.destroyInactiveTabPane && (i.value = !1);
}, {
immediate: !0
});
const a = L(() => t.active ? {} : t.animated ? {
visibility: "hidden",
height: 0,
overflowY: "hidden"
} : {
display: "none"
});
return () => {
var o;
const {
prefixCls: s,
forceRender: l,
id: u,
active: c,
tabKey: f
} = t;
return M("div", {
id: u && `${u}-panel-${f}`,
role: "tabpanel",
tabindex: c ? 0 : -1,
"aria-labelledby": u && `${u}-tab-${f}`,
"aria-hidden": !c,
style: [a.value, n.style],
class: [`${s}-tabpane`, c && `${s}-tabpane-active`, n.class]
}, [(c || i.value || l) && ((o = r.default) === null || o === void 0 ? void 0 : o.call(r))]);
};
}
});
Uc.TabPane = Ws;
Uc.install = function(t) {
return t.component(Uc.name, Uc), t.component(Ws.name, Ws), t;
};
const fSe = () => ({
prefixCls: String,
activeKey: gn([Array, Number, String]),
defaultActiveKey: gn([Array, Number, String]),
accordion: nt(),
destroyInactivePanel: nt(),
bordered: nt(),
expandIcon: tt(),
openAnimation: Y.object,
expandIconPosition: hn(),
collapsible: hn(),
ghost: nt(),
onChange: tt(),
"onUpdate:activeKey": tt()
}), vX = () => ({
openAnimation: Y.object,
prefixCls: String,
header: Y.any,
headerClass: String,
showArrow: nt(),
isActive: nt(),
destroyInactivePanel: nt(),
/** @deprecated Use `collapsible="disabled"` instead */
disabled: nt(),
accordion: nt(),
forceRender: nt(),
expandIcon: tt(),
extra: Y.any,
panelKey: gn(),
collapsible: hn(),
role: String,
onItemClick: tt()
}), dSe = (t) => {
const {
componentCls: e,
collapseContentBg: n,
padding: r,
collapseContentPaddingHorizontal: i,
collapseHeaderBg: a,
collapseHeaderPadding: o,
collapsePanelBorderRadius: s,
lineWidth: l,
lineType: u,
colorBorder: c,
colorText: f,
colorTextHeading: d,
colorTextDisabled: h,
fontSize: p,
lineHeight: v,
marginSM: g,
paddingSM: m,
motionDurationSlow: y,
fontSizeIcon: b
} = t, _ = `${l}px ${u} ${c}`;
return {
[e]: I(I({}, nn(t)), {
backgroundColor: a,
border: _,
borderBottom: 0,
borderRadius: `${s}px`,
"&-rtl": {
direction: "rtl"
},
[`& > ${e}-item`]: {
borderBottom: _,
"&:last-child": {
[`
&,
& > ${e}-header`]: {
borderRadius: `0 0 ${s}px ${s}px`
}
},
[`> ${e}-header`]: {
position: "relative",
display: "flex",
flexWrap: "nowrap",
alignItems: "flex-start",
padding: o,
color: d,
lineHeight: v,
cursor: "pointer",
transition: `all ${y}, visibility 0s`,
[`> ${e}-header-text`]: {
flex: "auto"
},
"&:focus": {
outline: "none"
},
// >>>>> Arrow
[`${e}-expand-icon`]: {
height: p * v,
display: "flex",
alignItems: "center",
paddingInlineEnd: g
},
[`${e}-arrow`]: I(I({}, up()), {
fontSize: b,
svg: {
transition: `transform ${y}`
}
}),
// >>>>> Text
[`${e}-header-text`]: {
marginInlineEnd: "auto"
}
},
[`${e}-header-collapsible-only`]: {
cursor: "default",
[`${e}-header-text`]: {
flex: "none",
cursor: "pointer"
},
[`${e}-expand-icon`]: {
cursor: "pointer"
}
},
[`${e}-icon-collapsible-only`]: {
cursor: "default",
[`${e}-expand-icon`]: {
cursor: "pointer"
}
},
[`&${e}-no-arrow`]: {
[`> ${e}-header`]: {
paddingInlineStart: m
}
}
},
[`${e}-content`]: {
color: f,
backgroundColor: n,
borderTop: _,
[`& > ${e}-content-box`]: {
padding: `${r}px ${i}px`
},
"&-hidden": {
display: "none"
}
},
[`${e}-item:last-child`]: {
[`> ${e}-content`]: {
borderRadius: `0 0 ${s}px ${s}px`
}
},
[`& ${e}-item-disabled > ${e}-header`]: {
"\n &,\n & > .arrow\n ": {
color: h,
cursor: "not-allowed"
}
},
// ========================== Icon Position ==========================
[`&${e}-icon-position-end`]: {
[`& > ${e}-item`]: {
[`> ${e}-header`]: {
[`${e}-expand-icon`]: {
order: 1,
paddingInlineEnd: 0,
paddingInlineStart: g
}
}
}
}
})
};
}, hSe = (t) => {
const {
componentCls: e
} = t, n = `> ${e}-item > ${e}-header ${e}-arrow svg`;
return {
[`${e}-rtl`]: {
[n]: {
transform: "rotate(180deg)"
}
}
};
}, pSe = (t) => {
const {
componentCls: e,
collapseHeaderBg: n,
paddingXXS: r,
colorBorder: i
} = t;
return {
[`${e}-borderless`]: {
backgroundColor: n,
border: 0,
[`> ${e}-item`]: {
borderBottom: `1px solid ${i}`
},
[`
> ${e}-item:last-child,
> ${e}-item:last-child ${e}-header
`]: {
borderRadius: 0
},
[`> ${e}-item:last-child`]: {
borderBottom: 0
},
[`> ${e}-item > ${e}-content`]: {
backgroundColor: "transparent",
borderTop: 0
},
[`> ${e}-item > ${e}-content > ${e}-content-box`]: {
paddingTop: r
}
}
};
}, vSe = (t) => {
const {
componentCls: e,
paddingSM: n
} = t;
return {
[`${e}-ghost`]: {
backgroundColor: "transparent",
border: 0,
[`> ${e}-item`]: {
borderBottom: 0,
[`> ${e}-content`]: {
backgroundColor: "transparent",
border: 0,
[`> ${e}-content-box`]: {
paddingBlock: n
}
}
}
}
};
}, gSe = Sn("Collapse", (t) => {
const e = Bt(t, {
collapseContentBg: t.colorBgContainer,
collapseHeaderBg: t.colorFillAlter,
collapseHeaderPadding: `${t.paddingSM}px ${t.padding}px`,
collapsePanelBorderRadius: t.borderRadiusLG,
collapseContentPaddingHorizontal: 16
// Fixed value
});
return [dSe(e), pSe(e), vSe(e), hSe(e), JI(e)];
});
function I5(t) {
let e = t;
if (!Array.isArray(e)) {
const n = typeof e;
e = n === "number" || n === "string" ? [e] : [];
}
return e.map((n) => String(n));
}
const vg = te({
compatConfig: {
MODE: 3
},
name: "ACollapse",
inheritAttrs: !1,
props: sr(fSe(), {
accordion: !1,
destroyInactivePanel: !1,
bordered: !0,
expandIconPosition: "start"
}),
slots: Object,
setup(t, e) {
let {
attrs: n,
slots: r,
emit: i
} = e;
const a = U(I5(RU([t.activeKey, t.defaultActiveKey])));
se(() => t.activeKey, () => {
a.value = I5(t.activeKey);
}, {
deep: !0
});
const {
prefixCls: o,
direction: s,
rootPrefixCls: l
} = It("collapse", t), [u, c] = gSe(o), f = L(() => {
const {
expandIconPosition: m
} = t;
return m !== void 0 ? m : s.value === "rtl" ? "end" : "start";
}), d = (m) => {
const {
expandIcon: y = r.expandIcon
} = t, b = y ? y(m) : M(gx, {
rotate: m.isActive ? 90 : void 0
}, null);
return M("div", {
class: [`${o.value}-expand-icon`, c.value],
onClick: () => ["header", "icon"].includes(t.collapsible) && p(m.panelKey)
}, [Yi(Array.isArray(y) ? b[0] : b) ? Pn(b, {
class: `${o.value}-arrow`
}, !1) : b]);
}, h = (m) => {
t.activeKey === void 0 && (a.value = m);
const y = t.accordion ? m[0] : m;
i("update:activeKey", y), i("change", y);
}, p = (m) => {
let y = a.value;
if (t.accordion)
y = y[0] === m ? [] : [m];
else {
y = [...y];
const b = y.indexOf(m);
b > -1 ? y.splice(b, 1) : y.push(m);
}
h(y);
}, v = (m, y) => {
var b, _, O;
if (rI(m)) return;
const S = a.value, {
accordion: x,
destroyInactivePanel: C,
collapsible: T,
openAnimation: w
} = t, P = w || lD(`${l.value}-motion-collapse`), $ = String((b = m.key) !== null && b !== void 0 ? b : y), {
header: A = (O = (_ = m.children) === null || _ === void 0 ? void 0 : _.header) === null || O === void 0 ? void 0 : O.call(_),
headerClass: D,
collapsible: E,
disabled: R
} = m.props || {};
let N = !1;
x ? N = S[0] === $ : N = S.indexOf($) > -1;
let V = E ?? T;
(R || R === "") && (V = "disabled");
const B = {
key: $,
panelKey: $,
header: A,
headerClass: D,
isActive: N,
prefixCls: o.value,
destroyInactivePanel: C,
openAnimation: P,
accordion: x,
onItemClick: V === "disabled" ? null : p,
expandIcon: d,
collapsible: V
};
return Pn(m, B);
}, g = () => {
var m;
return Yn((m = r.default) === null || m === void 0 ? void 0 : m.call(r)).map(v);
};
return () => {
const {
accordion: m,
bordered: y,
ghost: b
} = t, _ = ye(o.value, {
[`${o.value}-borderless`]: !y,
[`${o.value}-icon-position-${f.value}`]: !0,
[`${o.value}-rtl`]: s.value === "rtl",
[`${o.value}-ghost`]: !!b,
[n.class]: !!n.class
}, c.value);
return u(M("div", j(j({
class: _
}, due(n)), {}, {
style: n.style,
role: m ? "tablist" : null
}), [g()]));
};
}
}), mSe = te({
compatConfig: {
MODE: 3
},
name: "PanelContent",
props: vX(),
setup(t, e) {
let {
slots: n
} = e;
const r = ae(!1);
return ht(() => {
(t.isActive || t.forceRender) && (r.value = !0);
}), () => {
var i;
if (!r.value) return null;
const {
prefixCls: a,
isActive: o,
role: s
} = t;
return M("div", {
class: ye(`${a}-content`, {
[`${a}-content-active`]: o,
[`${a}-content-inactive`]: !o
}),
role: s
}, [M("div", {
class: `${a}-content-box`
}, [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)])]);
};
}
}), V1 = te({
compatConfig: {
MODE: 3
},
name: "ACollapsePanel",
inheritAttrs: !1,
props: sr(vX(), {
showArrow: !0,
isActive: !1,
onItemClick() {
},
headerClass: "",
forceRender: !1
}),
slots: Object,
// emits: ['itemClick'],
setup(t, e) {
let {
slots: n,
emit: r,
attrs: i
} = e;
Gi(t.disabled === void 0, "Collapse.Panel", '`disabled` is deprecated. Please use `collapsible="disabled"` instead.');
const {
prefixCls: a
} = It("collapse", t), o = () => {
r("itemClick", t.panelKey);
}, s = (l) => {
(l.key === "Enter" || l.keyCode === 13 || l.which === 13) && o();
};
return () => {
var l, u;
const {
header: c = (l = n.header) === null || l === void 0 ? void 0 : l.call(n),
headerClass: f,
isActive: d,
showArrow: h,
destroyInactivePanel: p,
accordion: v,
forceRender: g,
openAnimation: m,
expandIcon: y = n.expandIcon,
extra: b = (u = n.extra) === null || u === void 0 ? void 0 : u.call(n),
collapsible: _
} = t, O = _ === "disabled", S = a.value, x = ye(`${S}-header`, {
[f]: f,
[`${S}-header-collapsible-only`]: _ === "header",
[`${S}-icon-collapsible-only`]: _ === "icon"
}), C = ye({
[`${S}-item`]: !0,
[`${S}-item-active`]: d,
[`${S}-item-disabled`]: O,
[`${S}-no-arrow`]: !h,
[`${i.class}`]: !!i.class
});
let T = M("i", {
class: "arrow"
}, null);
h && typeof y == "function" && (T = y(t));
const w = Oi(M(mSe, {
prefixCls: S,
isActive: d,
forceRender: g,
role: v ? "tabpanel" : null
}, {
default: n.default
}), [[zs, d]]), P = I({
appear: !1,
css: !1
}, m);
return M("div", j(j({}, i), {}, {
class: C
}), [M("div", {
class: x,
onClick: () => !["header", "icon"].includes(_) && o(),
role: v ? "tab" : "button",
tabindex: O ? -1 : 0,
"aria-expanded": d,
onKeypress: s
}, [h && T, M("span", {
onClick: () => _ === "header" && o(),
class: `${S}-header-text`
}, [c]), b && M("div", {
class: `${S}-extra`
}, [b])]), M(ho, P, {
default: () => [!p || d ? w : null]
})]);
};
}
});
vg.Panel = V1;
vg.install = function(t) {
return t.component(vg.name, vg), t.component(V1.name, V1), t;
};
var ySe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
function D5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
bSe(t, i, n[i]);
});
}
return t;
}
function bSe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var cD = function(e, n) {
var r = D5({}, e, n.attrs);
return M(lt, D5({}, r, {
icon: ySe
}), null);
};
cD.displayName = "LeftOutlined";
cD.inheritAttrs = !1;
const gX = () => Ta() && window.document.documentElement;
let Ry;
const _Se = () => {
if (!gX())
return !1;
if (Ry !== void 0)
return Ry;
const t = document.createElement("div");
return t.style.display = "flex", t.style.flexDirection = "column", t.style.rowGap = "1px", t.appendChild(document.createElement("div")), t.appendChild(document.createElement("div")), document.body.appendChild(t), Ry = t.scrollHeight === 1, document.body.removeChild(t), Ry;
}, OSe = () => {
const t = ae(!1);
return it(() => {
t.value = _Se();
}), t;
}, mX = Symbol("rowContextKey"), SSe = (t) => {
pt(mX, t);
}, xSe = () => Ge(mX, {
gutter: L(() => {
}),
wrap: L(() => {
}),
supportFlexGap: L(() => {
})
}), wSe = (t) => {
const {
componentCls: e
} = t;
return {
// Grid system
[e]: {
display: "flex",
flexFlow: "row wrap",
minWidth: 0,
"&::before, &::after": {
display: "flex"
},
"&-no-wrap": {
flexWrap: "nowrap"
},
// The origin of the X-axis
"&-start": {
justifyContent: "flex-start"
},
// The center of the X-axis
"&-center": {
justifyContent: "center"
},
// The opposite of the X-axis
"&-end": {
justifyContent: "flex-end"
},
"&-space-between": {
justifyContent: "space-between"
},
"&-space-around ": {
justifyContent: "space-around"
},
"&-space-evenly ": {
justifyContent: "space-evenly"
},
// Align at the top
"&-top": {
alignItems: "flex-start"
},
// Align at the center
"&-middle": {
alignItems: "center"
},
"&-bottom": {
alignItems: "flex-end"
}
}
};
}, CSe = (t) => {
const {
componentCls: e
} = t;
return {
// Grid system
[e]: {
position: "relative",
maxWidth: "100%",
// Prevent columns from collapsing when empty
minHeight: 1
}
};
}, TSe = (t, e) => {
const {
componentCls: n,
gridColumns: r
} = t, i = {};
for (let a = r; a >= 0; a--)
a === 0 ? (i[`${n}${e}-${a}`] = {
display: "none"
}, i[`${n}-push-${a}`] = {
insetInlineStart: "auto"
}, i[`${n}-pull-${a}`] = {
insetInlineEnd: "auto"
}, i[`${n}${e}-push-${a}`] = {
insetInlineStart: "auto"
}, i[`${n}${e}-pull-${a}`] = {
insetInlineEnd: "auto"
}, i[`${n}${e}-offset-${a}`] = {
marginInlineEnd: 0
}, i[`${n}${e}-order-${a}`] = {
order: 0
}) : (i[`${n}${e}-${a}`] = {
display: "block",
flex: `0 0 ${a / r * 100}%`,
maxWidth: `${a / r * 100}%`
}, i[`${n}${e}-push-${a}`] = {
insetInlineStart: `${a / r * 100}%`
}, i[`${n}${e}-pull-${a}`] = {
insetInlineEnd: `${a / r * 100}%`
}, i[`${n}${e}-offset-${a}`] = {
marginInlineStart: `${a / r * 100}%`
}, i[`${n}${e}-order-${a}`] = {
order: a
});
return i;
}, z2 = (t, e) => TSe(t, e), PSe = (t, e, n) => ({
[`@media (min-width: ${e}px)`]: I({}, z2(t, n))
}), $Se = Sn("Grid", (t) => [wSe(t)]), ASe = Sn("Grid", (t) => {
const e = Bt(t, {
gridColumns: 24
// Row is divided into 24 parts in Grid
}), n = {
"-sm": e.screenSMMin,
"-md": e.screenMDMin,
"-lg": e.screenLGMin,
"-xl": e.screenXLMin,
"-xxl": e.screenXXLMin
};
return [CSe(e), z2(e, ""), z2(e, "-xs"), Object.keys(n).map((r) => PSe(e, n[r], r)).reduce((r, i) => I(I({}, r), i), {})];
}), ESe = () => ({
align: gn([String, Object]),
justify: gn([String, Object]),
prefixCls: String,
gutter: gn([Number, Array, Object], 0),
wrap: {
type: Boolean,
default: void 0
}
}), MSe = te({
compatConfig: {
MODE: 3
},
name: "ARow",
inheritAttrs: !1,
props: ESe(),
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
prefixCls: i,
direction: a
} = It("row", t), [o, s] = $Se(i);
let l;
const u = Y_e(), c = U({
xs: !0,
sm: !0,
md: !0,
lg: !0,
xl: !0,
xxl: !0
}), f = U({
xs: !1,
sm: !1,
md: !1,
lg: !1,
xl: !1,
xxl: !1
}), d = (b) => L(() => {
if (typeof t[b] == "string")
return t[b];
if (typeof t[b] != "object")
return "";
for (let _ = 0; _ < Ay.length; _++) {
const O = Ay[_];
if (!f.value[O]) continue;
const S = t[b][O];
if (S !== void 0)
return S;
}
return "";
}), h = d("align"), p = d("justify"), v = OSe();
it(() => {
l = u.value.subscribe((b) => {
f.value = b;
const _ = t.gutter || 0;
(!Array.isArray(_) && typeof _ == "object" || Array.isArray(_) && (typeof _[0] == "object" || typeof _[1] == "object")) && (c.value = b);
});
}), yt(() => {
u.value.unsubscribe(l);
});
const g = L(() => {
const b = [void 0, void 0], {
gutter: _ = 0
} = t;
return (Array.isArray(_) ? _ : [_, void 0]).forEach((S, x) => {
if (typeof S == "object")
for (let C = 0; C < Ay.length; C++) {
const T = Ay[C];
if (c.value[T] && S[T] !== void 0) {
b[x] = S[T];
break;
}
}
else
b[x] = S;
}), b;
});
SSe({
gutter: g,
supportFlexGap: v,
wrap: L(() => t.wrap)
});
const m = L(() => ye(i.value, {
[`${i.value}-no-wrap`]: t.wrap === !1,
[`${i.value}-${p.value}`]: p.value,
[`${i.value}-${h.value}`]: h.value,
[`${i.value}-rtl`]: a.value === "rtl"
}, r.class, s.value)), y = L(() => {
const b = g.value, _ = {}, O = b[0] != null && b[0] > 0 ? `${b[0] / -2}px` : void 0, S = b[1] != null && b[1] > 0 ? `${b[1] / -2}px` : void 0;
return O && (_.marginLeft = O, _.marginRight = O), v.value ? _.rowGap = `${b[1]}px` : S && (_.marginTop = S, _.marginBottom = S), _;
});
return () => {
var b;
return o(M("div", j(j({}, r), {}, {
class: m.value,
style: I(I({}, y.value), r.style)
}), [(b = n.default) === null || b === void 0 ? void 0 : b.call(n)]));
};
}
});
function Ic() {
return Ic = Object.assign ? Object.assign.bind() : function(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
}
return t;
}, Ic.apply(this, arguments);
}
function ISe(t, e) {
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, cm(t, e);
}
function V2(t) {
return V2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
return n.__proto__ || Object.getPrototypeOf(n);
}, V2(t);
}
function cm(t, e) {
return cm = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
return r.__proto__ = i, r;
}, cm(t, e);
}
function DSe() {
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
if (typeof Proxy == "function") return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
})), !0;
} catch {
return !1;
}
}
function $_(t, e, n) {
return DSe() ? $_ = Reflect.construct.bind() : $_ = function(i, a, o) {
var s = [null];
s.push.apply(s, a);
var l = Function.bind.apply(i, s), u = new l();
return o && cm(u, o.prototype), u;
}, $_.apply(null, arguments);
}
function RSe(t) {
return Function.toString.call(t).indexOf("[native code]") !== -1;
}
function F2(t) {
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return F2 = function(r) {
if (r === null || !RSe(r)) return r;
if (typeof r != "function")
throw new TypeError("Super expression must either be null or a function");
if (typeof e < "u") {
if (e.has(r)) return e.get(r);
e.set(r, i);
}
function i() {
return $_(r, arguments, V2(this).constructor);
}
return i.prototype = Object.create(r.prototype, {
constructor: {
value: i,
enumerable: !1,
writable: !0,
configurable: !0
}
}), cm(i, r);
}, F2(t);
}
var kSe = /%[sdj%]/g, yX = function() {
};
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (yX = function(e, n) {
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(r) {
return typeof r == "string";
}) && console.warn(e, n);
});
function W2(t) {
if (!t || !t.length) return null;
var e = {};
return t.forEach(function(n) {
var r = n.field;
e[r] = e[r] || [], e[r].push(n);
}), e;
}
function Fi(t) {
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
n[r - 1] = arguments[r];
var i = 0, a = n.length;
if (typeof t == "function")
return t.apply(null, n);
if (typeof t == "string") {
var o = t.replace(kSe, function(s) {
if (s === "%%")
return "%";
if (i >= a)
return s;
switch (s) {
case "%s":
return String(n[i++]);
case "%d":
return Number(n[i++]);
case "%j":
try {
return JSON.stringify(n[i++]);
} catch {
return "[Circular]";
}
break;
default:
return s;
}
});
return o;
}
return t;
}
function LSe(t) {
return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern";
}
function Kn(t, e) {
return !!(t == null || e === "array" && Array.isArray(t) && !t.length || LSe(e) && typeof t == "string" && !t);
}
function NSe(t, e, n) {
var r = [], i = 0, a = t.length;
function o(s) {
r.push.apply(r, s || []), i++, i === a && n(r);
}
t.forEach(function(s) {
e(s, o);
});
}
function R5(t, e, n) {
var r = 0, i = t.length;
function a(o) {
if (o && o.length) {
n(o);
return;
}
var s = r;
r = r + 1, s < i ? e(t[s], a) : n([]);
}
a([]);
}
function BSe(t) {
var e = [];
return Object.keys(t).forEach(function(n) {
e.push.apply(e, t[n] || []);
}), e;
}
var k5 = /* @__PURE__ */ function(t) {
ISe(e, t);
function e(n, r) {
var i;
return i = t.call(this, "Async Validation Error") || this, i.errors = n, i.fields = r, i;
}
return e;
}(/* @__PURE__ */ F2(Error));
function zSe(t, e, n, r, i) {
if (e.first) {
var a = new Promise(function(d, h) {
var p = function(m) {
return r(m), m.length ? h(new k5(m, W2(m))) : d(i);
}, v = BSe(t);
R5(v, n, p);
});
return a.catch(function(d) {
return d;
}), a;
}
var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], s = Object.keys(t), l = s.length, u = 0, c = [], f = new Promise(function(d, h) {
var p = function(g) {
if (c.push.apply(c, g), u++, u === l)
return r(c), c.length ? h(new k5(c, W2(c))) : d(i);
};
s.length || (r(c), d(i)), s.forEach(function(v) {
var g = t[v];
o.indexOf(v) !== -1 ? R5(g, n, p) : NSe(g, n, p);
});
});
return f.catch(function(d) {
return d;
}), f;
}
function VSe(t) {
return !!(t && t.message !== void 0);
}
function FSe(t, e) {
for (var n = t, r = 0; r < e.length; r++) {
if (n == null)
return n;
n = n[e[r]];
}
return n;
}
function L5(t, e) {
return function(n) {
var r;
return t.fullFields ? r = FSe(e, t.fullFields) : r = e[n.field || t.fullField], VSe(n) ? (n.field = n.field || t.fullField, n.fieldValue = r, n) : {
message: typeof n == "function" ? n() : n,
fieldValue: r,
field: n.field || t.fullField
};
};
}
function N5(t, e) {
if (e) {
for (var n in e)
if (e.hasOwnProperty(n)) {
var r = e[n];
typeof r == "object" && typeof t[n] == "object" ? t[n] = Ic({}, t[n], r) : t[n] = r;
}
}
return t;
}
var bX = function(e, n, r, i, a, o) {
e.required && (!r.hasOwnProperty(e.field) || Kn(n, o || e.type)) && i.push(Fi(a.messages.required, e.fullField));
}, WSe = function(e, n, r, i, a) {
(/^\s+$/.test(n) || n === "") && i.push(Fi(a.messages.whitespace, e.fullField));
}, ky, QSe = function() {
if (ky)
return ky;
var t = "[a-fA-F\\d:]", e = function(_) {
return _ && _.includeBoundaries ? "(?:(?<=\\s|^)(?=" + t + ")|(?<=" + t + ")(?=\\s|$))" : "";
}, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", i = (`
(?:
(?:` + r + ":){7}(?:" + r + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:` + r + ":){6}(?:" + n + "|:" + r + `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:` + r + ":){5}(?::" + n + "|(?::" + r + `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:` + r + ":){4}(?:(?::" + r + "){0,1}:" + n + "|(?::" + r + `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:` + r + ":){3}(?:(?::" + r + "){0,2}:" + n + "|(?::" + r + `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:` + r + ":){2}(?:(?::" + r + "){0,3}:" + n + "|(?::" + r + `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + n + "|(?::" + r + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + r + "){0,5}:" + n + "|(?::" + r + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), a = new RegExp("(?:^" + n + "$)|(?:^" + i + "$)"), o = new RegExp("^" + n + "$"), s = new RegExp("^" + i + "$"), l = function(_) {
return _ && _.exact ? a : new RegExp("(?:" + e(_) + n + e(_) + ")|(?:" + e(_) + i + e(_) + ")", "g");
};
l.v4 = function(b) {
return b && b.exact ? o : new RegExp("" + e(b) + n + e(b), "g");
}, l.v6 = function(b) {
return b && b.exact ? s : new RegExp("" + e(b) + i + e(b), "g");
};
var u = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", f = l.v4().source, d = l.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", p = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", v = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", m = '(?:[/?#][^\\s"]*)?', y = "(?:" + u + "|www\\.)" + c + "(?:localhost|" + f + "|" + d + "|" + h + p + v + ")" + g + m;
return ky = new RegExp("(?:^" + y + "$)", "i"), ky;
}, B5 = {
// http://emailregex.com/
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
// url: new RegExp(
// '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
// 'i',
// ),
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
}, Qv = {
integer: function(e) {
return Qv.number(e) && parseInt(e, 10) === e;
},
float: function(e) {
return Qv.number(e) && !Qv.integer(e);
},
array: function(e) {
return Array.isArray(e);
},
regexp: function(e) {
if (e instanceof RegExp)
return !0;
try {
return !!new RegExp(e);
} catch {
return !1;
}
},
date: function(e) {
return typeof e.getTime == "function" && typeof e.getMonth == "function" && typeof e.getYear == "function" && !isNaN(e.getTime());
},
number: function(e) {
return isNaN(e) ? !1 : typeof e == "number";
},
object: function(e) {
return typeof e == "object" && !Qv.array(e);
},
method: function(e) {
return typeof e == "function";
},
email: function(e) {
return typeof e == "string" && e.length <= 320 && !!e.match(B5.email);
},
url: function(e) {
return typeof e == "string" && e.length <= 2048 && !!e.match(QSe());
},
hex: function(e) {
return typeof e == "string" && !!e.match(B5.hex);
}
}, HSe = function(e, n, r, i, a) {
if (e.required && n === void 0) {
bX(e, n, r, i, a);
return;
}
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = e.type;
o.indexOf(s) > -1 ? Qv[s](n) || i.push(Fi(a.messages.types[s], e.fullField, e.type)) : s && typeof n !== e.type && i.push(Fi(a.messages.types[s], e.fullField, e.type));
}, GSe = function(e, n, r, i, a) {
var o = typeof e.len == "number", s = typeof e.min == "number", l = typeof e.max == "number", u = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, f = null, d = typeof n == "number", h = typeof n == "string", p = Array.isArray(n);
if (d ? f = "number" : h ? f = "string" : p && (f = "array"), !f)
return !1;
p && (c = n.length), h && (c = n.replace(u, "_").length), o ? c !== e.len && i.push(Fi(a.messages[f].len, e.fullField, e.len)) : s && !l && c < e.min ? i.push(Fi(a.messages[f].min, e.fullField, e.min)) : l && !s && c > e.max ? i.push(Fi(a.messages[f].max, e.fullField, e.max)) : s && l && (c < e.min || c > e.max) && i.push(Fi(a.messages[f].range, e.fullField, e.min, e.max));
}, Kf = "enum", jSe = function(e, n, r, i, a) {
e[Kf] = Array.isArray(e[Kf]) ? e[Kf] : [], e[Kf].indexOf(n) === -1 && i.push(Fi(a.messages[Kf], e.fullField, e[Kf].join(", ")));
}, ZSe = function(e, n, r, i, a) {
if (e.pattern) {
if (e.pattern instanceof RegExp)
e.pattern.lastIndex = 0, e.pattern.test(n) || i.push(Fi(a.messages.pattern.mismatch, e.fullField, n, e.pattern));
else if (typeof e.pattern == "string") {
var o = new RegExp(e.pattern);
o.test(n) || i.push(Fi(a.messages.pattern.mismatch, e.fullField, n, e.pattern));
}
}
}, Mt = {
required: bX,
whitespace: WSe,
type: HSe,
range: GSe,
enum: jSe,
pattern: ZSe
}, USe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n, "string") && !e.required)
return r();
Mt.required(e, n, i, o, a, "string"), Kn(n, "string") || (Mt.type(e, n, i, o, a), Mt.range(e, n, i, o, a), Mt.pattern(e, n, i, o, a), e.whitespace === !0 && Mt.whitespace(e, n, i, o, a));
}
r(o);
}, XSe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && Mt.type(e, n, i, o, a);
}
r(o);
}, YSe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (n === "" && (n = void 0), Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && (Mt.type(e, n, i, o, a), Mt.range(e, n, i, o, a));
}
r(o);
}, qSe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && Mt.type(e, n, i, o, a);
}
r(o);
}, KSe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), Kn(n) || Mt.type(e, n, i, o, a);
}
r(o);
}, JSe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && (Mt.type(e, n, i, o, a), Mt.range(e, n, i, o, a));
}
r(o);
}, exe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && (Mt.type(e, n, i, o, a), Mt.range(e, n, i, o, a));
}
r(o);
}, txe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (n == null && !e.required)
return r();
Mt.required(e, n, i, o, a, "array"), n != null && (Mt.type(e, n, i, o, a), Mt.range(e, n, i, o, a));
}
r(o);
}, nxe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && Mt.type(e, n, i, o, a);
}
r(o);
}, rxe = "enum", ixe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a), n !== void 0 && Mt[rxe](e, n, i, o, a);
}
r(o);
}, axe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n, "string") && !e.required)
return r();
Mt.required(e, n, i, o, a), Kn(n, "string") || Mt.pattern(e, n, i, o, a);
}
r(o);
}, oxe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n, "date") && !e.required)
return r();
if (Mt.required(e, n, i, o, a), !Kn(n, "date")) {
var l;
n instanceof Date ? l = n : l = new Date(n), Mt.type(e, l, i, o, a), l && Mt.range(e, l.getTime(), i, o, a);
}
}
r(o);
}, sxe = function(e, n, r, i, a) {
var o = [], s = Array.isArray(n) ? "array" : typeof n;
Mt.required(e, n, i, o, a, s), r(o);
}, CC = function(e, n, r, i, a) {
var o = e.type, s = [], l = e.required || !e.required && i.hasOwnProperty(e.field);
if (l) {
if (Kn(n, o) && !e.required)
return r();
Mt.required(e, n, i, s, a, o), Kn(n, o) || Mt.type(e, n, i, s, a);
}
r(s);
}, lxe = function(e, n, r, i, a) {
var o = [], s = e.required || !e.required && i.hasOwnProperty(e.field);
if (s) {
if (Kn(n) && !e.required)
return r();
Mt.required(e, n, i, o, a);
}
r(o);
}, gg = {
string: USe,
method: XSe,
number: YSe,
boolean: qSe,
regexp: KSe,
integer: JSe,
float: exe,
array: txe,
object: nxe,
enum: ixe,
pattern: axe,
date: oxe,
url: CC,
hex: CC,
email: CC,
required: sxe,
any: lxe
};
function Q2() {
return {
default: "Validation error on field %s",
required: "%s is required",
enum: "%s must be one of %s",
whitespace: "%s cannot be empty",
date: {
format: "%s date %s is invalid for format %s",
parse: "%s date could not be parsed, %s is invalid ",
invalid: "%s date %s is invalid"
},
types: {
string: "%s is not a %s",
method: "%s is not a %s (function)",
array: "%s is not an %s",
object: "%s is not an %s",
number: "%s is not a %s",
date: "%s is not a %s",
boolean: "%s is not a %s",
integer: "%s is not an %s",
float: "%s is not a %s",
regexp: "%s is not a valid %s",
email: "%s is not a valid %s",
url: "%s is not a valid %s",
hex: "%s is not a valid %s"
},
string: {
len: "%s must be exactly %s characters",
min: "%s must be at least %s characters",
max: "%s cannot be longer than %s characters",
range: "%s must be between %s and %s characters"
},
number: {
len: "%s must equal %s",
min: "%s cannot be less than %s",
max: "%s cannot be greater than %s",
range: "%s must be between %s and %s"
},
array: {
len: "%s must be exactly %s in length",
min: "%s cannot be less than %s in length",
max: "%s cannot be greater than %s in length",
range: "%s must be between %s and %s in length"
},
pattern: {
mismatch: "%s value %s does not match pattern %s"
},
clone: function() {
var e = JSON.parse(JSON.stringify(this));
return e.clone = this.clone, e;
}
};
}
var H2 = Q2(), O0 = /* @__PURE__ */ function() {
function t(n) {
this.rules = null, this._messages = H2, this.define(n);
}
var e = t.prototype;
return e.define = function(r) {
var i = this;
if (!r)
throw new Error("Cannot configure a schema with no rules");
if (typeof r != "object" || Array.isArray(r))
throw new Error("Rules must be an object");
this.rules = {}, Object.keys(r).forEach(function(a) {
var o = r[a];
i.rules[a] = Array.isArray(o) ? o : [o];
});
}, e.messages = function(r) {
return r && (this._messages = N5(Q2(), r)), this._messages;
}, e.validate = function(r, i, a) {
var o = this;
i === void 0 && (i = {}), a === void 0 && (a = function() {
});
var s = r, l = i, u = a;
if (typeof l == "function" && (u = l, l = {}), !this.rules || Object.keys(this.rules).length === 0)
return u && u(null, s), Promise.resolve(s);
function c(v) {
var g = [], m = {};
function y(_) {
if (Array.isArray(_)) {
var O;
g = (O = g).concat.apply(O, _);
} else
g.push(_);
}
for (var b = 0; b < v.length; b++)
y(v[b]);
g.length ? (m = W2(g), u(g, m)) : u(null, s);
}
if (l.messages) {
var f = this.messages();
f === H2 && (f = Q2()), N5(f, l.messages), l.messages = f;
} else
l.messages = this.messages();
var d = {}, h = l.keys || Object.keys(this.rules);
h.forEach(function(v) {
var g = o.rules[v], m = s[v];
g.forEach(function(y) {
var b = y;
typeof b.transform == "function" && (s === r && (s = Ic({}, s)), m = s[v] = b.transform(m)), typeof b == "function" ? b = {
validator: b
} : b = Ic({}, b), b.validator = o.getValidationMethod(b), b.validator && (b.field = v, b.fullField = b.fullField || v, b.type = o.getType(b), d[v] = d[v] || [], d[v].push({
rule: b,
value: m,
source: s,
field: v
}));
});
});
var p = {};
return zSe(d, l, function(v, g) {
var m = v.rule, y = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
y = y && (m.required || !m.required && v.value), m.field = v.field;
function b(S, x) {
return Ic({}, x, {
fullField: m.fullField + "." + S,
fullFields: m.fullFields ? [].concat(m.fullFields, [S]) : [S]
});
}
function _(S) {
S === void 0 && (S = []);
var x = Array.isArray(S) ? S : [S];
!l.suppressWarning && x.length && t.warning("async-validator:", x), x.length && m.message !== void 0 && (x = [].concat(m.message));
var C = x.map(L5(m, s));
if (l.first && C.length)
return p[m.field] = 1, g(C);
if (!y)
g(C);
else {
if (m.required && !v.value)
return m.message !== void 0 ? C = [].concat(m.message).map(L5(m, s)) : l.error && (C = [l.error(m, Fi(l.messages.required, m.field))]), g(C);
var T = {};
m.defaultField && Object.keys(v.value).map(function($) {
T[$] = m.defaultField;
}), T = Ic({}, T, v.rule.fields);
var w = {};
Object.keys(T).forEach(function($) {
var A = T[$], D = Array.isArray(A) ? A : [A];
w[$] = D.map(b.bind(null, $));
});
var P = new t(w);
P.messages(l.messages), v.rule.options && (v.rule.options.messages = l.messages, v.rule.options.error = l.error), P.validate(v.value, v.rule.options || l, function($) {
var A = [];
C && C.length && A.push.apply(A, C), $ && $.length && A.push.apply(A, $), g(A.length ? A : null);
});
}
}
var O;
if (m.asyncValidator)
O = m.asyncValidator(m, v.value, _, v.source, l);
else if (m.validator) {
try {
O = m.validator(m, v.value, _, v.source, l);
} catch (S) {
console.error == null || console.error(S), l.suppressValidatorError || setTimeout(function() {
throw S;
}, 0), _(S.message);
}
O === !0 ? _() : O === !1 ? _(typeof m.message == "function" ? m.message(m.fullField || m.field) : m.message || (m.fullField || m.field) + " fails") : O instanceof Array ? _(O) : O instanceof Error && _(O.message);
}
O && O.then && O.then(function() {
return _();
}, function(S) {
return _(S);
});
}, function(v) {
c(v);
}, s);
}, e.getType = function(r) {
if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !gg.hasOwnProperty(r.type))
throw new Error(Fi("Unknown rule type %s", r.type));
return r.type || "string";
}, e.getValidationMethod = function(r) {
if (typeof r.validator == "function")
return r.validator;
var i = Object.keys(r), a = i.indexOf("message");
return a !== -1 && i.splice(a, 1), i.length === 1 && i[0] === "required" ? gg.required : gg[this.getType(r)] || void 0;
}, t;
}();
O0.register = function(e, n) {
if (typeof n != "function")
throw new Error("Cannot register a validator by type, validator is not a function");
gg[e] = n;
};
O0.warning = yX;
O0.messages = H2;
O0.validators = gg;
function Zl(t) {
return t == null ? [] : Array.isArray(t) ? t : [t];
}
function _X(t, e) {
let n = t;
for (let r = 0; r < e.length; r += 1) {
if (n == null)
return;
n = n[e[r]];
}
return n;
}
function OX(t, e, n, r) {
if (!e.length)
return n;
const [i, ...a] = e;
let o;
return !t && typeof i == "number" ? o = [] : Array.isArray(t) ? o = [...t] : o = I({}, t), r && n === void 0 && a.length === 1 ? delete o[i][a[0]] : o[i] = OX(o[i], a, n, r), o;
}
function uxe(t, e, n) {
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
return e.length && r && n === void 0 && !_X(t, e.slice(0, -1)) ? t : OX(t, e, n, r);
}
function G2(t) {
return Zl(t);
}
function cxe(t, e) {
return _X(t, e);
}
function fxe(t, e, n) {
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
return uxe(t, e, n, r);
}
function dxe(t, e) {
return t && t.some((n) => pxe(n, e));
}
function z5(t) {
return typeof t == "object" && t !== null && Object.getPrototypeOf(t) === Object.prototype;
}
function SX(t, e) {
const n = Array.isArray(t) ? [...t] : I({}, t);
return e && Object.keys(e).forEach((r) => {
const i = n[r], a = e[r], o = z5(i) && z5(a);
n[r] = o ? SX(i, a || {}) : a;
}), n;
}
function hxe(t) {
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
n[r - 1] = arguments[r];
return n.reduce((i, a) => SX(i, a), t);
}
function V5(t, e) {
let n = {};
return e.forEach((r) => {
const i = cxe(t, r);
n = fxe(n, r, i);
}), n;
}
function pxe(t, e) {
return !t || !e || t.length !== e.length ? !1 : t.every((n, r) => e[r] === n);
}
const Ai = "'${name}' is not a valid ${type}", Ox = {
default: "Validation error on field '${name}'",
required: "'${name}' is required",
enum: "'${name}' must be one of [${enum}]",
whitespace: "'${name}' cannot be empty",
date: {
format: "'${name}' is invalid for format date",
parse: "'${name}' could not be parsed as date",
invalid: "'${name}' is invalid date"
},
types: {
string: Ai,
method: Ai,
array: Ai,
object: Ai,
number: Ai,
date: Ai,
boolean: Ai,
integer: Ai,
float: Ai,
regexp: Ai,
email: Ai,
url: Ai,
hex: Ai
},
string: {
len: "'${name}' must be exactly ${len} characters",
min: "'${name}' must be at least ${min} characters",
max: "'${name}' cannot be longer than ${max} characters",
range: "'${name}' must be between ${min} and ${max} characters"
},
number: {
len: "'${name}' must equal ${len}",
min: "'${name}' cannot be less than ${min}",
max: "'${name}' cannot be greater than ${max}",
range: "'${name}' must be between ${min} and ${max}"
},
array: {
len: "'${name}' must be exactly ${len} in length",
min: "'${name}' cannot be less than ${min} in length",
max: "'${name}' cannot be greater than ${max} in length",
range: "'${name}' must be between ${min} and ${max} in length"
},
pattern: {
mismatch: "'${name}' does not match pattern ${pattern}"
}
};
var Sx = function(t, e, n, r) {
function i(a) {
return a instanceof n ? a : new n(function(o) {
o(a);
});
}
return new (n || (n = Promise))(function(a, o) {
function s(c) {
try {
u(r.next(c));
} catch (f) {
o(f);
}
}
function l(c) {
try {
u(r.throw(c));
} catch (f) {
o(f);
}
}
function u(c) {
c.done ? a(c.value) : i(c.value).then(s, l);
}
u((r = r.apply(t, e || [])).next());
});
};
const vxe = O0;
function gxe(t, e) {
return t.replace(/\$\{\w+\}/g, (n) => {
const r = n.slice(2, -1);
return e[r];
});
}
function j2(t, e, n, r, i) {
return Sx(this, void 0, void 0, function* () {
const a = I({}, n);
delete a.ruleIndex, delete a.trigger;
let o = null;
a && a.type === "array" && a.defaultField && (o = a.defaultField, delete a.defaultField);
const s = new vxe({
[t]: [a]
}), l = hxe({}, Ox, r.validateMessages);
s.messages(l);
let u = [];
try {
yield Promise.resolve(s.validate({
[t]: e
}, I({}, r)));
} catch (d) {
d.errors ? u = d.errors.map((h, p) => {
let {
message: v
} = h;
return (
// Wrap VueNode with `key`
Yi(v) ? Bs(v, {
key: `error_${p}`
}) : v
);
}) : (console.error(d), u = [l.default()]);
}
if (!u.length && o)
return (yield Promise.all(e.map((h, p) => j2(`${t}.${p}`, h, o, r, i)))).reduce((h, p) => [...h, ...p], []);
const c = I(I(I({}, n), {
name: t,
enum: (n.enum || []).join(", ")
}), i);
return u.map((d) => typeof d == "string" ? gxe(d, c) : d);
});
}
function xX(t, e, n, r, i, a) {
const o = t.join("."), s = n.map((u, c) => {
const f = u.validator, d = I(I({}, u), {
ruleIndex: c
});
return f && (d.validator = (h, p, v) => {
let g = !1;
const y = f(h, p, function() {
for (var b = arguments.length, _ = new Array(b), O = 0; O < b; O++)
_[O] = arguments[O];
Promise.resolve().then(() => {
ff(!g, "Your validator function has already return a promise. `callback` will be ignored."), g || v(..._);
});
});
g = y && typeof y.then == "function" && typeof y.catch == "function", ff(g, "`callback` is deprecated. Please return a promise instead."), g && y.then(() => {
v();
}).catch((b) => {
v(b || " ");
});
}), d;
}).sort((u, c) => {
let {
warningOnly: f,
ruleIndex: d
} = u, {
warningOnly: h,
ruleIndex: p
} = c;
return !!f == !!h ? d - p : f ? 1 : -1;
});
let l;
if (i === !0)
l = new Promise((u, c) => Sx(this, void 0, void 0, function* () {
for (let f = 0; f < s.length; f += 1) {
const d = s[f], h = yield j2(o, e, d, r, a);
if (h.length) {
c([{
errors: h,
rule: d
}]);
return;
}
}
u([]);
}));
else {
const u = s.map((c) => j2(o, e, c, r, a).then((f) => ({
errors: f,
rule: c
})));
l = (i ? yxe(u) : mxe(u)).then((c) => Promise.reject(c));
}
return l.catch((u) => u), l;
}
function mxe(t) {
return Sx(this, void 0, void 0, function* () {
return Promise.all(t).then((e) => [].concat(...e));
});
}
function yxe(t) {
return Sx(this, void 0, void 0, function* () {
let e = 0;
return new Promise((n) => {
t.forEach((r) => {
r.then((i) => {
i.errors.length && n([i]), e += 1, e === t.length && n([]);
});
});
});
});
}
const wX = Symbol("formContextKey"), CX = (t) => {
pt(wX, t);
}, fD = () => Ge(wX, {
name: L(() => {
}),
labelAlign: L(() => "right"),
vertical: L(() => !1),
// eslint-disable-next-line @typescript-eslint/no-unused-vars
addField: (t, e) => {
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
removeField: (t) => {
},
model: L(() => {
}),
rules: L(() => {
}),
colon: L(() => {
}),
labelWrap: L(() => {
}),
labelCol: L(() => {
}),
requiredMark: L(() => !1),
validateTrigger: L(() => {
}),
onValidate: () => {
},
validateMessages: L(() => Ox)
}), TX = Symbol("formItemPrefixContextKey"), bxe = (t) => {
pt(TX, t);
}, _xe = () => Ge(TX, {
prefixCls: L(() => "")
});
function Oxe(t) {
return typeof t == "number" ? `${t} ${t} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(t) ? `0 0 ${t}` : t;
}
const Sxe = () => ({
span: [String, Number],
order: [String, Number],
offset: [String, Number],
push: [String, Number],
pull: [String, Number],
xs: {
type: [String, Number, Object],
default: void 0
},
sm: {
type: [String, Number, Object],
default: void 0
},
md: {
type: [String, Number, Object],
default: void 0
},
lg: {
type: [String, Number, Object],
default: void 0
},
xl: {
type: [String, Number, Object],
default: void 0
},
xxl: {
type: [String, Number, Object],
default: void 0
},
prefixCls: String,
flex: [String, Number]
}), xxe = ["xs", "sm", "md", "lg", "xl", "xxl"], PX = te({
compatConfig: {
MODE: 3
},
name: "ACol",
inheritAttrs: !1,
props: Sxe(),
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
gutter: i,
supportFlexGap: a,
wrap: o
} = xSe(), {
prefixCls: s,
direction: l
} = It("col", t), [u, c] = ASe(s), f = L(() => {
const {
span: h,
order: p,
offset: v,
push: g,
pull: m
} = t, y = s.value;
let b = {};
return xxe.forEach((_) => {
let O = {};
const S = t[_];
typeof S == "number" ? O.span = S : typeof S == "object" && (O = S || {}), b = I(I({}, b), {
[`${y}-${_}-${O.span}`]: O.span !== void 0,
[`${y}-${_}-order-${O.order}`]: O.order || O.order === 0,
[`${y}-${_}-offset-${O.offset}`]: O.offset || O.offset === 0,
[`${y}-${_}-push-${O.push}`]: O.push || O.push === 0,
[`${y}-${_}-pull-${O.pull}`]: O.pull || O.pull === 0,
[`${y}-rtl`]: l.value === "rtl"
});
}), ye(y, {
[`${y}-${h}`]: h !== void 0,
[`${y}-order-${p}`]: p,
[`${y}-offset-${v}`]: v,
[`${y}-push-${g}`]: g,
[`${y}-pull-${m}`]: m
}, b, r.class, c.value);
}), d = L(() => {
const {
flex: h
} = t, p = i.value, v = {};
if (p && p[0] > 0) {
const g = `${p[0] / 2}px`;
v.paddingLeft = g, v.paddingRight = g;
}
if (p && p[1] > 0 && !a.value) {
const g = `${p[1] / 2}px`;
v.paddingTop = g, v.paddingBottom = g;
}
return h && (v.flex = Oxe(h), o.value === !1 && !v.minWidth && (v.minWidth = 0)), v;
});
return () => {
var h;
return u(M("div", j(j({}, r), {}, {
class: f.value,
style: [d.value, r.style]
}), [(h = n.default) === null || h === void 0 ? void 0 : h.call(n)]));
};
}
});
var wxe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" };
function F5(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
Cxe(t, i, n[i]);
});
}
return t;
}
function Cxe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var dD = function(e, n) {
var r = F5({}, e, n.attrs);
return M(lt, F5({}, r, {
icon: wxe
}), null);
};
dD.displayName = "QuestionCircleOutlined";
dD.inheritAttrs = !1;
const hD = (t, e) => {
let {
slots: n,
emit: r,
attrs: i
} = e;
var a, o, s, l, u;
const {
prefixCls: c,
htmlFor: f,
labelCol: d,
labelAlign: h,
colon: p,
required: v,
requiredMark: g
} = I(I({}, t), i), [m] = LS("Form"), y = (a = t.label) !== null && a !== void 0 ? a : (o = n.label) === null || o === void 0 ? void 0 : o.call(n);
if (!y) return null;
const {
vertical: b,
labelAlign: _,
labelCol: O,
labelWrap: S,
colon: x
} = fD(), C = d || (O == null ? void 0 : O.value) || {}, T = h || (_ == null ? void 0 : _.value), w = `${c}-item-label`, P = ye(w, T === "left" && `${w}-left`, C.class, {
[`${w}-wrap`]: !!S.value
});
let $ = y;
const A = p === !0 || (x == null ? void 0 : x.value) !== !1 && p !== !1;
if (A && !b.value && typeof y == "string" && y.trim() !== "" && ($ = y.replace(/[:|:]\s*$/, "")), t.tooltip || n.tooltip) {
const R = M("span", {
class: `${c}-item-tooltip`
}, [M(px, {
title: t.tooltip
}, {
default: () => [M(dD, null, null)]
})]);
$ = M(wt, null, [$, n.tooltip ? (s = n.tooltip) === null || s === void 0 ? void 0 : s.call(n, {
class: `${c}-item-tooltip`
}) : R]);
}
g === "optional" && !v && ($ = M(wt, null, [$, M("span", {
class: `${c}-item-optional`
}, [((l = m.value) === null || l === void 0 ? void 0 : l.optional) || ((u = Vs.Form) === null || u === void 0 ? void 0 : u.optional)])]));
const E = ye({
[`${c}-item-required`]: v,
[`${c}-item-required-mark-optional`]: g === "optional",
[`${c}-item-no-colon`]: !A
});
return M(PX, j(j({}, C), {}, {
class: P
}), {
default: () => [M("label", {
for: f,
class: E,
title: typeof y == "string" ? y : "",
onClick: (R) => r("click", R)
}, [$])]
});
};
hD.displayName = "FormItemLabel";
hD.inheritAttrs = !1;
const Txe = (t) => {
const {
componentCls: e
} = t, n = `${e}-show-help`, r = `${e}-show-help-item`;
return {
[n]: {
// Explain holder
transition: `opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`,
"&-appear, &-enter": {
opacity: 0,
"&-active": {
opacity: 1
}
},
"&-leave": {
opacity: 1,
"&-active": {
opacity: 0
}
},
// Explain
[r]: {
overflow: "hidden",
transition: `height ${t.motionDurationSlow} ${t.motionEaseInOut},
opacity ${t.motionDurationSlow} ${t.motionEaseInOut},
transform ${t.motionDurationSlow} ${t.motionEaseInOut} !important`,
[`&${r}-appear, &${r}-enter`]: {
transform: "translateY(-5px)",
opacity: 0,
"&-active": {
transform: "translateY(0)",
opacity: 1
}
},
[`&${r}-leave-active`]: {
transform: "translateY(-5px)"
}
}
}
};
}, Pxe = (t) => ({
legend: {
display: "block",
width: "100%",
marginBottom: t.marginLG,
padding: 0,
color: t.colorTextDescription,
fontSize: t.fontSizeLG,
lineHeight: "inherit",
border: 0,
borderBottom: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`
},
label: {
fontSize: t.fontSize
},
'input[type="search"]': {
boxSizing: "border-box"
},
// Position radios and checkboxes better
'input[type="radio"], input[type="checkbox"]': {
lineHeight: "normal"
},
'input[type="file"]': {
display: "block"
},
// Make range inputs behave like textual form controls
'input[type="range"]': {
display: "block",
width: "100%"
},
// Make multiple select elements height not fixed
"select[multiple], select[size]": {
height: "auto"
},
// Focus for file, radio, and checkbox
"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus": {
outline: 0,
boxShadow: `0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`
},
// Adjust output element
output: {
display: "block",
paddingTop: 15,
color: t.colorText,
fontSize: t.fontSize,
lineHeight: t.lineHeight
}
}), W5 = (t, e) => {
const {
formItemCls: n
} = t;
return {
[n]: {
[`${n}-label > label`]: {
height: e
},
[`${n}-control-input`]: {
minHeight: e
}
}
};
}, $xe = (t) => {
const {
componentCls: e
} = t;
return {
[t.componentCls]: I(I(I({}, nn(t)), Pxe(t)), {
[`${e}-text`]: {
display: "inline-block",
paddingInlineEnd: t.paddingSM
},
// ================================================================
// = Size =
// ================================================================
"&-small": I({}, W5(t, t.controlHeightSM)),
"&-large": I({}, W5(t, t.controlHeightLG))
})
};
}, Axe = (t) => {
const {
formItemCls: e,
iconCls: n,
componentCls: r,
rootPrefixCls: i
} = t;
return {
[e]: I(I({}, nn(t)), {
marginBottom: t.marginLG,
verticalAlign: "top",
"&-with-help": {
transition: "none"
},
[`&-hidden,
&-hidden.${i}-row`]: {
// https://github.com/ant-design/ant-design/issues/26141
display: "none"
},
"&-has-warning": {
[`${e}-split`]: {
color: t.colorError
}
},
"&-has-error": {
[`${e}-split`]: {
color: t.colorWarning
}
},
// ==============================================================
// = Label =
// ==============================================================
[`${e}-label`]: {
display: "inline-block",
flexGrow: 0,
overflow: "hidden",
whiteSpace: "nowrap",
textAlign: "end",
verticalAlign: "middle",
"&-left": {
textAlign: "start"
},
"&-wrap": {
overflow: "unset",
lineHeight: `${t.lineHeight} - 0.25em`,
whiteSpace: "unset"
},
"> label": {
position: "relative",
display: "inline-flex",
alignItems: "center",
maxWidth: "100%",
height: t.controlHeight,
color: t.colorTextHeading,
fontSize: t.fontSize,
[`> ${n}`]: {
fontSize: t.fontSize,
verticalAlign: "top"
},
// Required mark
[`&${e}-required:not(${e}-required-mark-optional)::before`]: {
display: "inline-block",
marginInlineEnd: t.marginXXS,
color: t.colorError,
fontSize: t.fontSize,
fontFamily: "SimSun, sans-serif",
lineHeight: 1,
content: '"*"',
[`${r}-hide-required-mark &`]: {
display: "none"
}
},
// Optional mark
[`${e}-optional`]: {
display: "inline-block",
marginInlineStart: t.marginXXS,
color: t.colorTextDescription,
[`${r}-hide-required-mark &`]: {
display: "none"
}
},
// Optional mark
[`${e}-tooltip`]: {
color: t.colorTextDescription,
cursor: "help",
writingMode: "horizontal-tb",
marginInlineStart: t.marginXXS
},
"&::after": {
content: '":"',
position: "relative",
marginBlock: 0,
marginInlineStart: t.marginXXS / 2,
marginInlineEnd: t.marginXS
},
[`&${e}-no-colon::after`]: {
content: '" "'
}
}
},
// ==============================================================
// = Input =
// ==============================================================
[`${e}-control`]: {
display: "flex",
flexDirection: "column",
flexGrow: 1,
[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]: {
width: "100%"
},
"&-input": {
position: "relative",
display: "flex",
alignItems: "center",
minHeight: t.controlHeight,
"&-content": {
flex: "auto",
maxWidth: "100%"
}
}
},
// ==============================================================
// = Explain =
// ==============================================================
[e]: {
"&-explain, &-extra": {
clear: "both",
color: t.colorTextDescription,
fontSize: t.fontSize,
lineHeight: t.lineHeight
},
"&-explain-connected": {
width: "100%"
},
"&-extra": {
minHeight: t.controlHeightSM,
transition: `color ${t.motionDurationMid} ${t.motionEaseOut}`
// sync input color transition
},
"&-explain": {
"&-error": {
color: t.colorError
},
"&-warning": {
color: t.colorWarning
}
}
},
[`&-with-help ${e}-explain`]: {
height: "auto",
opacity: 1
},
// ==============================================================
// = Feedback Icon =
// ==============================================================
[`${e}-feedback-icon`]: {
fontSize: t.fontSize,
textAlign: "center",
visibility: "visible",
animationName: KI,
animationDuration: t.motionDurationMid,
animationTimingFunction: t.motionEaseOutBack,
pointerEvents: "none",
"&-success": {
color: t.colorSuccess
},
"&-error": {
color: t.colorError
},
"&-warning": {
color: t.colorWarning
},
"&-validating": {
color: t.colorPrimary
}
}
})
};
}, Exe = (t) => {
const {
componentCls: e,
formItemCls: n,
rootPrefixCls: r
} = t;
return {
[`${e}-horizontal`]: {
[`${n}-label`]: {
flexGrow: 0
},
[`${n}-control`]: {
flex: "1 1 0",
// https://github.com/ant-design/ant-design/issues/32777
// https://github.com/ant-design/ant-design/issues/33773
minWidth: 0
},
// https://github.com/ant-design/ant-design/issues/32980
[`${n}-label.${r}-col-24 + ${n}-control`]: {
minWidth: "unset"
}
}
};
}, Mxe = (t) => {
const {
componentCls: e,
formItemCls: n
} = t;
return {
[`${e}-inline`]: {
display: "flex",
flexWrap: "wrap",
[n]: {
flex: "none",
flexWrap: "nowrap",
marginInlineEnd: t.margin,
marginBottom: 0,
"&-with-help": {
marginBottom: t.marginLG
},
[`> ${n}-label,
> ${n}-control`]: {
display: "inline-block",
verticalAlign: "top"
},
[`> ${n}-label`]: {
flex: "none"
},
[`${e}-text`]: {
display: "inline-block"
},
[`${n}-has-feedback`]: {
display: "inline-block"
}
}
}
};
}, Pd = (t) => ({
margin: 0,
padding: `0 0 ${t.paddingXS}px`,
whiteSpace: "initial",
textAlign: "start",
"> label": {
margin: 0,
"&::after": {
display: "none"
}
}
}), Ixe = (t) => {
const {
componentCls: e,
formItemCls: n
} = t;
return {
[`${n} ${n}-label`]: Pd(t),
[e]: {
[n]: {
flexWrap: "wrap",
[`${n}-label,
${n}-control`]: {
flex: "0 0 100%",
maxWidth: "100%"
}
}
}
};
}, Dxe = (t) => {
const {
componentCls: e,
formItemCls: n,
rootPrefixCls: r
} = t;
return {
[`${e}-vertical`]: {
[n]: {
"&-row": {
flexDirection: "column"
},
"&-label > label": {
height: "auto"
},
[`${e}-item-control`]: {
width: "100%"
}
}
},
[`${e}-vertical ${n}-label,
.${r}-col-24${n}-label,
.${r}-col-xl-24${n}-label`]: Pd(t),
[`@media (max-width: ${t.screenXSMax}px)`]: [Ixe(t), {
[e]: {
[`.${r}-col-xs-24${n}-label`]: Pd(t)
}
}],
[`@media (max-width: ${t.screenSMMax}px)`]: {
[e]: {
[`.${r}-col-sm-24${n}-label`]: Pd(t)
}
},
[`@media (max-width: ${t.screenMDMax}px)`]: {
[e]: {
[`.${r}-col-md-24${n}-label`]: Pd(t)
}
},
[`@media (max-width: ${t.screenLGMax}px)`]: {
[e]: {
[`.${r}-col-lg-24${n}-label`]: Pd(t)
}
}
};
}, pD = Sn("Form", (t, e) => {
let {
rootPrefixCls: n
} = e;
const r = Bt(t, {
formItemCls: `${t.componentCls}-item`,
rootPrefixCls: n
});
return [$xe(r), Axe(r), Txe(r), Exe(r), Mxe(r), Dxe(r), JI(r), KI];
}), Rxe = te({
compatConfig: {
MODE: 3
},
name: "ErrorList",
inheritAttrs: !1,
props: ["errors", "help", "onErrorVisibleChanged", "helpStatus", "warnings"],
setup(t, e) {
let {
attrs: n
} = e;
const {
prefixCls: r,
status: i
} = _xe(), a = L(() => `${r.value}-item-explain`), o = L(() => !!(t.errors && t.errors.length)), s = U(i.value), [, l] = pD(r);
return se([o, i], () => {
o.value && (s.value = i.value);
}), () => {
var u, c;
const f = lD(`${r.value}-show-help-item`), d = CI(`${r.value}-show-help-item`, f);
return d.role = "alert", d.class = [l.value, a.value, n.class, `${r.value}-show-help`], M(ho, j(j({}, m0(`${r.value}-show-help`)), {}, {
onAfterEnter: () => t.onErrorVisibleChanged(!0),
onAfterLeave: () => t.onErrorVisibleChanged(!1)
}), {
default: () => [Oi(M(eI, j(j({}, d), {}, {
tag: "div"
}), {
default: () => [(c = t.errors) === null || c === void 0 ? void 0 : c.map((h, p) => M("div", {
key: p,
class: s.value ? `${a.value}-${s.value}` : ""
}, [h]))]
}), [[zs, !!(!((u = t.errors) === null || u === void 0) && u.length)]])]
});
};
}
}), kxe = te({
compatConfig: {
MODE: 3
},
slots: Object,
inheritAttrs: !1,
props: ["prefixCls", "errors", "hasFeedback", "onDomErrorVisibleChange", "wrapperCol", "help", "extra", "status", "marginBottom", "onErrorVisibleChanged"],
setup(t, e) {
let {
slots: n
} = e;
const r = fD(), {
wrapperCol: i
} = r, a = I({}, r);
return delete a.labelCol, delete a.wrapperCol, CX(a), bxe({
prefixCls: L(() => t.prefixCls),
status: L(() => t.status)
}), () => {
var o, s, l;
const {
prefixCls: u,
wrapperCol: c,
marginBottom: f,
onErrorVisibleChanged: d,
help: h = (o = n.help) === null || o === void 0 ? void 0 : o.call(n),
errors: p = ss((s = n.errors) === null || s === void 0 ? void 0 : s.call(n)),
// hasFeedback,
// status,
extra: v = (l = n.extra) === null || l === void 0 ? void 0 : l.call(n)
} = t, g = `${u}-item`, m = c || (i == null ? void 0 : i.value) || {}, y = ye(`${g}-control`, m.class);
return M(PX, j(j({}, m), {}, {
class: y
}), {
default: () => {
var b;
return M(wt, null, [M("div", {
class: `${g}-control-input`
}, [M("div", {
class: `${g}-control-input-content`
}, [(b = n.default) === null || b === void 0 ? void 0 : b.call(n)])]), f !== null || p.length ? M("div", {
style: {
display: "flex",
flexWrap: "nowrap"
}
}, [M(Rxe, {
errors: p,
help: h,
class: `${g}-explain-connected`,
onErrorVisibleChanged: d
}, null), !!f && M("div", {
style: {
width: 0,
height: `${f}px`
}
}, null)]) : null, v ? M("div", {
class: `${g}-extra`
}, [v]) : null]);
}
});
};
}
});
function Lxe(t) {
const e = ae(t.value.slice());
let n = null;
return ht(() => {
clearTimeout(n), n = setTimeout(() => {
e.value = t.value;
}, t.value.length ? 0 : 10);
}), e;
}
ru("success", "warning", "error", "validating", "");
const Nxe = {
success: Ou,
warning: Su,
error: ka,
validating: ns
};
function TC(t, e, n) {
let r = t;
const i = e;
let a = 0;
try {
for (let o = i.length; a < o - 1 && !(!r && !n); ++a) {
const s = i[a];
if (s in r)
r = r[s];
else {
if (n)
throw Error("please transfer a valid name path to form item!");
break;
}
}
if (n && !r)
throw Error("please transfer a valid name path to form item!");
} catch {
console.error("please transfer a valid name path to form item!");
}
return {
o: r,
k: i[a],
v: r ? r[i[a]] : void 0
};
}
const Bxe = () => ({
htmlFor: String,
prefixCls: String,
label: Y.any,
help: Y.any,
extra: Y.any,
labelCol: {
type: Object
},
wrapperCol: {
type: Object
},
hasFeedback: {
type: Boolean,
default: !1
},
colon: {
type: Boolean,
default: void 0
},
labelAlign: String,
prop: {
type: [String, Number, Array]
},
name: {
type: [String, Number, Array]
},
rules: [Array, Object],
autoLink: {
type: Boolean,
default: !0
},
required: {
type: Boolean,
default: void 0
},
validateFirst: {
type: Boolean,
default: void 0
},
validateStatus: Y.oneOf(ru("", "success", "warning", "error", "validating")),
validateTrigger: {
type: [String, Array]
},
messageVariables: {
type: Object
},
hidden: Boolean,
noStyle: Boolean,
tooltip: String
});
let zxe = 0;
const Vxe = "form_item", $X = te({
compatConfig: {
MODE: 3
},
name: "AFormItem",
inheritAttrs: !1,
__ANT_NEW_FORM_ITEM: !0,
props: Bxe(),
slots: Object,
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i
} = e;
ff(t.prop === void 0, "`prop` is deprecated. Please use `name` instead.");
const a = `form-item-${++zxe}`, {
prefixCls: o
} = It("form", t), [s, l] = pD(o), u = ae(), c = fD(), f = L(() => t.name || t.prop), d = ae([]), h = ae(!1), p = ae(), v = L(() => {
const ee = f.value;
return G2(ee);
}), g = L(() => {
if (v.value.length) {
const ee = c.name.value, oe = v.value.join("_");
return ee ? `${ee}_${oe}` : `${Vxe}_${oe}`;
} else
return;
}), m = () => {
const ee = c.model.value;
if (!(!ee || !f.value))
return TC(ee, v.value, !0).v;
}, y = L(() => m()), b = ae(Zc(y.value)), _ = L(() => {
let ee = t.validateTrigger !== void 0 ? t.validateTrigger : c.validateTrigger.value;
return ee = ee === void 0 ? "change" : ee, Zl(ee);
}), O = L(() => {
let ee = c.rules.value;
const oe = t.rules, K = t.required !== void 0 ? {
required: !!t.required,
trigger: _.value
} : [], ie = TC(ee, v.value);
ee = ee ? ie.o[ie.k] || ie.v : [];
const X = [].concat(oe || ee || []);
return Obe(X, (H) => H.required) ? X : X.concat(K);
}), S = L(() => {
const ee = O.value;
let oe = !1;
return ee && ee.length && ee.every((K) => K.required ? (oe = !0, !1) : !0), oe || t.required;
}), x = ae();
ht(() => {
x.value = t.validateStatus;
});
const C = L(() => {
let ee = {};
return typeof t.label == "string" ? ee.label = t.label : t.name && (ee.label = String(t.name)), t.messageVariables && (ee = I(I({}, ee), t.messageVariables)), ee;
}), T = (ee) => {
if (v.value.length === 0)
return;
const {
validateFirst: oe = !1
} = t, {
triggerName: K
} = ee || {};
let ie = O.value;
if (K && (ie = ie.filter((H) => {
const {
trigger: G
} = H;
return !G && !_.value.length ? !0 : Zl(G || _.value).includes(K);
})), !ie.length)
return Promise.resolve();
const X = xX(v.value, y.value, ie, I({
validateMessages: c.validateMessages.value
}, ee), oe, C.value);
return x.value = "validating", d.value = [], X.catch((H) => H).then(function() {
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
if (x.value === "validating") {
const G = H.filter((re) => re && re.errors.length);
x.value = G.length ? "error" : "success", d.value = G.map((re) => re.errors), c.onValidate(f.value, !d.value.length, d.value.length ? Ko(d.value[0]) : null);
}
}), X;
}, w = () => {
T({
triggerName: "blur"
});
}, P = () => {
if (h.value) {
h.value = !1;
return;
}
T({
triggerName: "change"
});
}, $ = () => {
x.value = t.validateStatus, h.value = !1, d.value = [];
}, A = () => {
var ee;
x.value = t.validateStatus, h.value = !0, d.value = [];
const oe = c.model.value || {}, K = y.value, ie = TC(oe, v.value, !0);
Array.isArray(K) ? ie.o[ie.k] = [].concat((ee = b.value) !== null && ee !== void 0 ? ee : []) : ie.o[ie.k] = b.value, Tt(() => {
h.value = !1;
});
}, D = L(() => t.htmlFor === void 0 ? g.value : t.htmlFor), E = () => {
const ee = D.value;
if (!ee || !p.value)
return;
const oe = p.value.$el.querySelector(`[id="${ee}"]`);
oe && oe.focus && oe.focus();
};
i({
onFieldBlur: w,
onFieldChange: P,
clearValidate: $,
resetField: A
}), kme({
id: g,
onFieldBlur: () => {
t.autoLink && w();
},
onFieldChange: () => {
t.autoLink && P();
},
clearValidate: $
}, L(() => !!(t.autoLink && c.model.value && f.value)));
let R = !1;
se(f, (ee) => {
ee ? R || (R = !0, c.addField(a, {
fieldValue: y,
fieldId: g,
fieldName: f,
resetField: A,
clearValidate: $,
namePath: v,
validateRules: T,
rules: O
})) : (R = !1, c.removeField(a));
}, {
immediate: !0
}), yt(() => {
c.removeField(a);
});
const N = Lxe(d), V = L(() => t.validateStatus !== void 0 ? t.validateStatus : N.value.length ? "error" : x.value), B = L(() => ({
[`${o.value}-item`]: !0,
[l.value]: !0,
// Status
[`${o.value}-item-has-feedback`]: V.value && t.hasFeedback,
[`${o.value}-item-has-success`]: V.value === "success",
[`${o.value}-item-has-warning`]: V.value === "warning",
[`${o.value}-item-has-error`]: V.value === "error",
[`${o.value}-item-is-validating`]: V.value === "validating",
[`${o.value}-item-hidden`]: t.hidden
})), W = tn({});
ao.useProvide(W), ht(() => {
let ee;
if (t.hasFeedback) {
const oe = V.value && Nxe[V.value];
ee = oe ? M("span", {
class: ye(`${o.value}-item-feedback-icon`, `${o.value}-item-feedback-icon-${V.value}`)
}, [M(oe, null, null)]) : null;
}
I(W, {
status: V.value,
hasFeedback: t.hasFeedback,
feedbackIcon: ee,
isFormItemInput: !0
});
});
const F = ae(null), Q = ae(!1), Z = () => {
if (u.value) {
const ee = getComputedStyle(u.value);
F.value = parseInt(ee.marginBottom, 10);
}
};
it(() => {
se(Q, () => {
Q.value && Z();
}, {
flush: "post",
immediate: !0
});
});
const ne = (ee) => {
ee || (F.value = null);
};
return () => {
var ee, oe;
if (t.noStyle) return (ee = n.default) === null || ee === void 0 ? void 0 : ee.call(n);
const K = (oe = t.help) !== null && oe !== void 0 ? oe : n.help ? ss(n.help()) : null, ie = !!(K != null && Array.isArray(K) && K.length || N.value.length);
return Q.value = ie, s(M("div", {
class: [B.value, ie ? `${o.value}-item-with-help` : "", r.class],
ref: u
}, [M(MSe, j(j({}, r), {}, {
class: `${o.value}-item-row`,
key: "row"
}), {
default: () => {
var X, H;
return M(wt, null, [M(hD, j(j({}, t), {}, {
htmlFor: D.value,
required: S.value,
requiredMark: c.requiredMark.value,
prefixCls: o.value,
onClick: E,
label: t.label
}), {
label: n.label,
tooltip: n.tooltip
}), M(kxe, j(j({}, t), {}, {
errors: K != null ? Zl(K) : N.value,
marginBottom: F.value,
prefixCls: o.value,
status: V.value,
ref: p,
help: K,
extra: (X = t.extra) !== null && X !== void 0 ? X : (H = n.extra) === null || H === void 0 ? void 0 : H.call(n),
onErrorVisibleChanged: ne
}), {
default: n.default
})]);
}
}), !!F.value && M("div", {
class: `${o.value}-margin-offset`,
style: {
marginBottom: `-${F.value}px`
}
}, null)]));
};
}
});
function AX(t) {
let e = !1, n = t.length;
const r = [];
return t.length ? new Promise((i, a) => {
t.forEach((o, s) => {
o.catch((l) => (e = !0, l)).then((l) => {
n -= 1, r[s] = l, !(n > 0) && (e && a(r), i(r));
});
});
}) : Promise.resolve([]);
}
function Q5(t) {
let e = !1;
return t && t.length && t.every((n) => n.required ? (e = !0, !1) : !0), e;
}
function H5(t) {
return t == null ? [] : Array.isArray(t) ? t : [t];
}
function PC(t, e, n) {
let r = t;
e = e.replace(/\[(\w+)\]/g, ".$1"), e = e.replace(/^\./, "");
const i = e.split(".");
let a = 0;
for (let o = i.length; a < o - 1 && !(!r && !n); ++a) {
const s = i[a];
if (s in r)
r = r[s];
else {
if (n)
throw new Error("please transfer a valid name path to validate!");
break;
}
}
return {
o: r,
k: i[a],
v: r ? r[i[a]] : null,
isValid: r && i[a] in r
};
}
function Fxe(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : U({}), n = arguments.length > 2 ? arguments[2] : void 0;
const r = Zc(z(t)), i = tn({}), a = ae([]), o = (b) => {
I(z(t), I(I({}, Zc(r)), b)), Tt(() => {
Object.keys(i).forEach((_) => {
i[_] = {
autoLink: !1,
required: Q5(z(e)[_])
};
});
});
}, s = function() {
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], _ = arguments.length > 1 ? arguments[1] : void 0;
return _.length ? b.filter((O) => {
const S = H5(O.trigger || "change");
return Cbe(S, _).length;
}) : b;
};
let l = null;
const u = function(b) {
let _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, O = arguments.length > 2 ? arguments[2] : void 0;
const S = [], x = {};
for (let w = 0; w < b.length; w++) {
const P = b[w], $ = PC(z(t), P, O);
if (!$.isValid) continue;
x[P] = $.v;
const A = s(z(e)[P], H5(_ && _.trigger));
A.length && S.push(c(P, $.v, A, _ || {}).then(() => ({
name: P,
errors: [],
warnings: []
})).catch((D) => {
const E = [], R = [];
return D.forEach((N) => {
let {
rule: {
warningOnly: V
},
errors: B
} = N;
V ? R.push(...B) : E.push(...B);
}), E.length ? Promise.reject({
name: P,
errors: E,
warnings: R
}) : {
name: P,
errors: E,
warnings: R
};
}));
}
const C = AX(S);
l = C;
const T = C.then(() => l === C ? Promise.resolve(x) : Promise.reject([])).catch((w) => {
const P = w.filter(($) => $ && $.errors.length);
return P.length ? Promise.reject({
values: x,
errorFields: P,
outOfDate: l !== C
}) : Promise.resolve(x);
});
return T.catch((w) => w), T;
}, c = function(b, _, O) {
let S = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
const x = xX([b], _, O, I({
validateMessages: Ox
}, S), !!S.validateFirst);
return i[b] ? (i[b].validateStatus = "validating", x.catch((C) => C).then(function() {
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
var T;
if (i[b].validateStatus === "validating") {
const w = C.filter((P) => P && P.errors.length);
i[b].validateStatus = w.length ? "error" : "success", i[b].help = w.length ? w.map((P) => P.errors) : null, (T = n == null ? void 0 : n.onValidate) === null || T === void 0 || T.call(n, b, !w.length, w.length ? Ko(i[b].help[0]) : null);
}
}), x) : x.catch((C) => C);
}, f = (b, _) => {
let O = [], S = !0;
b ? Array.isArray(b) ? O = b : O = [b] : (S = !1, O = a.value);
const x = u(O, _ || {}, S);
return x.catch((C) => C), x;
}, d = (b) => {
let _ = [];
b ? Array.isArray(b) ? _ = b : _ = [b] : _ = a.value, _.forEach((O) => {
i[O] && I(i[O], {
validateStatus: "",
help: null
});
});
}, h = (b) => {
const _ = {
autoLink: !1
}, O = [], S = Array.isArray(b) ? b : [b];
for (let x = 0; x < S.length; x++) {
const C = S[x];
(C == null ? void 0 : C.validateStatus) === "error" && (_.validateStatus = "error", C.help && O.push(C.help)), _.required = _.required || (C == null ? void 0 : C.required);
}
return _.help = O, _;
};
let p = r, v = !0;
const g = (b) => {
const _ = [];
a.value.forEach((O) => {
const S = PC(b, O, !1), x = PC(p, O, !1);
(v && (n == null ? void 0 : n.immediate) && S.isValid || !KS(S.v, x.v)) && _.push(O);
}), f(_, {
trigger: "change"
}), v = !1, p = Zc(Ko(b));
}, m = n == null ? void 0 : n.debounce;
let y = !0;
return se(e, () => {
a.value = e ? Object.keys(z(e)) : [], !y && n && n.validateOnRuleChange && f(), y = !1;
}, {
deep: !0,
immediate: !0
}), se(a, () => {
const b = {};
a.value.forEach((_) => {
b[_] = I({}, i[_], {
autoLink: !1,
required: Q5(z(e)[_])
}), delete i[_];
});
for (const _ in i)
Object.prototype.hasOwnProperty.call(i, _) && delete i[_];
I(i, b);
}, {
immediate: !0
}), se(t, m && m.wait ? XI(g, m.wait, CU(m, ["wait"])) : g, {
immediate: n && !!n.immediate,
deep: !0
}), {
modelRef: t,
rulesRef: e,
initialModel: r,
validateInfos: i,
resetFields: o,
validate: f,
validateField: c,
mergeValidateInfo: h,
clearValidate: d
};
}
const Wxe = () => ({
layout: Y.oneOf(ru("horizontal", "inline", "vertical")),
labelCol: $t(),
wrapperCol: $t(),
colon: nt(),
labelAlign: hn(),
labelWrap: nt(),
prefixCls: String,
requiredMark: gn([String, Boolean]),
/** @deprecated Will warning in future branch. Pls use `requiredMark` instead. */
hideRequiredMark: nt(),
model: Y.object,
rules: $t(),
validateMessages: $t(),
validateOnRuleChange: nt(),
// 提交失败自动滚动到第一个错误字段
scrollToFirstError: ha(),
onSubmit: tt(),
name: String,
validateTrigger: gn([String, Array]),
size: hn(),
disabled: nt(),
onValuesChange: tt(),
onFieldsChange: tt(),
onFinish: tt(),
onFinishFailed: tt(),
onValidate: tt()
});
function Qxe(t, e) {
return KS(Zl(t), Zl(e));
}
const dr = te({
compatConfig: {
MODE: 3
},
name: "AForm",
inheritAttrs: !1,
props: sr(Wxe(), {
layout: "horizontal",
hideRequiredMark: !1,
colon: !0
}),
Item: $X,
useForm: Fxe,
// emits: ['finishFailed', 'submit', 'finish', 'validate'],
setup(t, e) {
let {
emit: n,
slots: r,
expose: i,
attrs: a
} = e;
const {
prefixCls: o,
direction: s,
form: l,
size: u,
disabled: c
} = It("form", t), f = L(() => t.requiredMark === "" || t.requiredMark), d = L(() => {
var N;
return f.value !== void 0 ? f.value : l && ((N = l.value) === null || N === void 0 ? void 0 : N.requiredMark) !== void 0 ? l.value.requiredMark : !t.hideRequiredMark;
});
Xj(u), fj(c);
const h = L(() => {
var N, V;
return (N = t.colon) !== null && N !== void 0 ? N : (V = l.value) === null || V === void 0 ? void 0 : V.colon;
}), {
validateMessages: p
} = Bue(), v = L(() => I(I(I({}, Ox), p.value), t.validateMessages)), [g, m] = pD(o), y = L(() => ye(o.value, {
[`${o.value}-${t.layout}`]: !0,
[`${o.value}-hide-required-mark`]: d.value === !1,
[`${o.value}-rtl`]: s.value === "rtl",
[`${o.value}-${u.value}`]: u.value
}, m.value)), b = U(), _ = {}, O = (N, V) => {
_[N] = V;
}, S = (N) => {
delete _[N];
}, x = (N) => {
const V = !!N, B = V ? Zl(N).map(G2) : [];
return V ? Object.values(_).filter((W) => B.findIndex((F) => Qxe(F, W.fieldName.value)) > -1) : Object.values(_);
}, C = (N) => {
if (!t.model) {
Yr(!1, "Form", "model is required for resetFields to work.");
return;
}
x(N).forEach((V) => {
V.resetField();
});
}, T = (N) => {
x(N).forEach((V) => {
V.clearValidate();
});
}, w = (N) => {
const {
scrollToFirstError: V
} = t;
if (n("finishFailed", N), V && N.errorFields.length) {
let B = {};
typeof V == "object" && (B = V), $(N.errorFields[0].name, B);
}
}, P = function() {
return E(...arguments);
}, $ = function(N) {
let V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const B = x(N ? [N] : void 0);
if (B.length) {
const W = B[0].fieldId.value, F = W ? document.getElementById(W) : null;
F && Rfe(F, I({
scrollMode: "if-needed",
block: "nearest"
}, V));
}
}, A = function() {
let N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
if (N === !0) {
const V = [];
return Object.values(_).forEach((B) => {
let {
namePath: W
} = B;
V.push(W.value);
}), V5(t.model, V);
} else
return V5(t.model, N);
}, D = (N, V) => {
if (Yr(!(N instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead"), !t.model)
return Yr(!1, "Form", "model is required for validateFields to work."), Promise.reject("Form `model` is required for validateFields to work.");
const B = !!N, W = B ? Zl(N).map(G2) : [], F = [];
Object.values(_).forEach((ne) => {
var ee;
if (B || W.push(ne.namePath.value), !(!((ee = ne.rules) === null || ee === void 0) && ee.value.length))
return;
const oe = ne.namePath.value;
if (!B || dxe(W, oe)) {
const K = ne.validateRules(I({
validateMessages: v.value
}, V));
F.push(K.then(() => ({
name: oe,
errors: [],
warnings: []
})).catch((ie) => {
const X = [], H = [];
return ie.forEach((G) => {
let {
rule: {
warningOnly: re
},
errors: fe
} = G;
re ? H.push(...fe) : X.push(...fe);
}), X.length ? Promise.reject({
name: oe,
errors: X,
warnings: H
}) : {
name: oe,
errors: X,
warnings: H
};
}));
}
});
const Q = AX(F);
b.value = Q;
const Z = Q.then(() => b.value === Q ? Promise.resolve(A(W)) : Promise.reject([])).catch((ne) => {
const ee = ne.filter((oe) => oe && oe.errors.length);
return Promise.reject({
values: A(W),
errorFields: ee,
outOfDate: b.value !== Q
});
});
return Z.catch((ne) => ne), Z;
}, E = function() {
return D(...arguments);
}, R = (N) => {
N.preventDefault(), N.stopPropagation(), n("submit", N), t.model && D().then((B) => {
n("finish", B);
}).catch((B) => {
w(B);
});
};
return i({
resetFields: C,
clearValidate: T,
validateFields: D,
getFieldsValue: A,
validate: P,
scrollToField: $
}), CX({
model: L(() => t.model),
name: L(() => t.name),
labelAlign: L(() => t.labelAlign),
labelCol: L(() => t.labelCol),
labelWrap: L(() => t.labelWrap),
wrapperCol: L(() => t.wrapperCol),
vertical: L(() => t.layout === "vertical"),
colon: h,
requiredMark: d,
validateTrigger: L(() => t.validateTrigger),
rules: L(() => t.rules),
addField: O,
removeField: S,
onValidate: (N, V, B) => {
n("validate", N, V, B);
},
validateMessages: v
}), se(() => t.rules, () => {
t.validateOnRuleChange && D();
}), () => {
var N;
return g(M("form", j(j({}, a), {}, {
onSubmit: R,
class: [y.value, a.class]
}), [(N = r.default) === null || N === void 0 ? void 0 : N.call(r)]));
};
}
});
dr.useInjectFormItemContext = ls;
dr.ItemRest = lm;
dr.install = function(t) {
return t.component(dr.name, dr), t.component(dr.Item.name, dr.Item), t.component(lm.name, lm), t;
};
const Hxe = new Ot("antCheckboxEffect", {
"0%": {
transform: "scale(1)",
opacity: 0.5
},
"100%": {
transform: "scale(1.6)",
opacity: 0
}
}), Gxe = (t) => {
const {
checkboxCls: e
} = t, n = `${e}-wrapper`;
return [
// ===================== Basic =====================
{
// Group
[`${e}-group`]: I(I({}, nn(t)), {
display: "inline-flex",
flexWrap: "wrap",
columnGap: t.marginXS,
// Group > Grid
[`> ${t.antCls}-row`]: {
flex: 1
}
}),
// Wrapper
[n]: I(I({}, nn(t)), {
display: "inline-flex",
alignItems: "baseline",
cursor: "pointer",
// Fix checkbox & radio in flex align #30260
"&:after": {
display: "inline-block",
width: 0,
overflow: "hidden",
content: "'\\a0'"
},
// Checkbox near checkbox
[`& + ${n}`]: {
marginInlineStart: 0
},
[`&${n}-in-form-item`]: {
'input[type="checkbox"]': {
width: 14,
height: 14
// FIXME: magic
}
}
}),
// Wrapper > Checkbox
[e]: I(I({}, nn(t)), {
position: "relative",
whiteSpace: "nowrap",
lineHeight: 1,
cursor: "pointer",
// To make alignment right when `controlHeight` is changed
// Ref: https://github.com/ant-design/ant-design/issues/41564
alignSelf: "center",
// Wrapper > Checkbox > input
[`${e}-input`]: {
position: "absolute",
// Since baseline align will get additional space offset,
// we need to move input to top to make it align with text.
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
inset: 0,
zIndex: 1,
cursor: "pointer",
opacity: 0,
margin: 0,
[`&:focus-visible + ${e}-inner`]: I({}, h0(t))
},
// Wrapper > Checkbox > inner
[`${e}-inner`]: {
boxSizing: "border-box",
position: "relative",
top: 0,
insetInlineStart: 0,
display: "block",
width: t.checkboxSize,
height: t.checkboxSize,
direction: "ltr",
backgroundColor: t.colorBgContainer,
border: `${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,
borderRadius: t.borderRadiusSM,
borderCollapse: "separate",
transition: `all ${t.motionDurationSlow}`,
"&:after": {
boxSizing: "border-box",
position: "absolute",
top: "50%",
insetInlineStart: "21.5%",
display: "table",
width: t.checkboxSize / 14 * 5,
height: t.checkboxSize / 14 * 8,
border: `${t.lineWidthBold}px solid ${t.colorWhite}`,
borderTop: 0,
borderInlineStart: 0,
transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
opacity: 0,
content: '""',
transition: `all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`
}
},
// Wrapper > Checkbox + Text
"& + span": {
paddingInlineStart: t.paddingXS,
paddingInlineEnd: t.paddingXS
}
})
},
// ================= Indeterminate =================
{
[e]: {
"&-indeterminate": {
// Wrapper > Checkbox > inner
[`${e}-inner`]: {
"&:after": {
top: "50%",
insetInlineStart: "50%",
width: t.fontSizeLG / 2,
height: t.fontSizeLG / 2,
backgroundColor: t.colorPrimary,
border: 0,
transform: "translate(-50%, -50%) scale(1)",
opacity: 1,
content: '""'
}
}
}
}
},
// ===================== Hover =====================
{
// Wrapper
[`${n}:hover ${e}:after`]: {
visibility: "visible"
},
// Wrapper & Wrapper > Checkbox
[`
${n}:not(${n}-disabled),
${e}:not(${e}-disabled)
`]: {
[`&:hover ${e}-inner`]: {
borderColor: t.colorPrimary
}
},
[`${n}:not(${n}-disabled)`]: {
[`&:hover ${e}-checked:not(${e}-disabled) ${e}-inner`]: {
backgroundColor: t.colorPrimaryHover,
borderColor: "transparent"
},
[`&:hover ${e}-checked:not(${e}-disabled):after`]: {
borderColor: t.colorPrimaryHover
}
}
},
// ==================== Checked ====================
{
// Wrapper > Checkbox
[`${e}-checked`]: {
[`${e}-inner`]: {
backgroundColor: t.colorPrimary,
borderColor: t.colorPrimary,
"&:after": {
opacity: 1,
transform: "rotate(45deg) scale(1) translate(-50%,-50%)",
transition: `all ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`
}
},
// Checked Effect
"&:after": {
position: "absolute",
top: 0,
insetInlineStart: 0,
width: "100%",
height: "100%",
borderRadius: t.borderRadiusSM,
visibility: "hidden",
border: `${t.lineWidthBold}px solid ${t.colorPrimary}`,
animationName: Hxe,
animationDuration: t.motionDurationSlow,
animationTimingFunction: "ease-in-out",
animationFillMode: "backwards",
content: '""',
transition: `all ${t.motionDurationSlow}`
}
},
[`
${n}-checked:not(${n}-disabled),
${e}-checked:not(${e}-disabled)
`]: {
[`&:hover ${e}-inner`]: {
backgroundColor: t.colorPrimaryHover,
borderColor: "transparent"
},
[`&:hover ${e}:after`]: {
borderColor: t.colorPrimaryHover
}
}
},
// ==================== Disable ====================
{
// Wrapper
[`${n}-disabled`]: {
cursor: "not-allowed"
},
// Wrapper > Checkbox
[`${e}-disabled`]: {
// Wrapper > Checkbox > input
[`&, ${e}-input`]: {
cursor: "not-allowed",
// Disabled for native input to enable Tooltip event handler
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
pointerEvents: "none"
},
// Wrapper > Checkbox > inner
[`${e}-inner`]: {
background: t.colorBgContainerDisabled,
borderColor: t.colorBorder,
"&:after": {
borderColor: t.colorTextDisabled
}
},
"&:after": {
display: "none"
},
"& + span": {
color: t.colorTextDisabled
},
[`&${e}-indeterminate ${e}-inner::after`]: {
background: t.colorTextDisabled
}
}
}
];
};
function jxe(t, e) {
const n = Bt(e, {
checkboxCls: `.${t}`,
checkboxSize: e.controlInteractiveSize
});
return [Gxe(n)];
}
const EX = Sn("Checkbox", (t, e) => {
let {
prefixCls: n
} = e;
return [jxe(n, t)];
}), Zxe = () => ({
name: String,
prefixCls: String,
options: cf([]),
disabled: Boolean,
id: String
}), Uxe = () => I(I({}, Zxe()), {
defaultValue: cf(),
value: cf(),
onChange: tt(),
"onUpdate:value": tt()
}), Xxe = () => ({
prefixCls: String,
defaultChecked: nt(),
checked: nt(),
disabled: nt(),
isGroup: nt(),
value: Y.any,
name: String,
id: String,
indeterminate: nt(),
type: hn("checkbox"),
autofocus: nt(),
onChange: tt(),
"onUpdate:checked": tt(),
onClick: tt(),
skipGroup: nt(!1)
}), Yxe = () => I(I({}, Xxe()), {
indeterminate: nt(!1)
}), MX = Symbol("CheckboxGroupContext");
var G5 = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const mg = te({
compatConfig: {
MODE: 3
},
name: "ACheckbox",
inheritAttrs: !1,
__ANT_CHECKBOX: !0,
props: Yxe(),
// emits: ['change', 'update:checked'],
setup(t, e) {
let {
emit: n,
attrs: r,
slots: i,
expose: a
} = e;
const o = ls(), s = ao.useInject(), {
prefixCls: l,
direction: u,
disabled: c
} = It("checkbox", t), f = Jo(), [d, h] = EX(l), p = Ge(MX, void 0), v = Symbol("checkboxUniId"), g = L(() => (p == null ? void 0 : p.disabled.value) || c.value);
ht(() => {
!t.skipGroup && p && p.registerValue(v, t.value);
}), yt(() => {
p && p.cancelValue(v);
}), it(() => {
Yr(!!(t.checked !== void 0 || p || t.value === void 0), "Checkbox", "`value` is not validate prop, do you mean `checked`?");
});
const m = (O) => {
const S = O.target.checked;
n("update:checked", S), n("change", O), o.onFieldChange();
}, y = U();
return a({
focus: () => {
var O;
(O = y.value) === null || O === void 0 || O.focus();
},
blur: () => {
var O;
(O = y.value) === null || O === void 0 || O.blur();
}
}), () => {
var O;
const S = Yn((O = i.default) === null || O === void 0 ? void 0 : O.call(i)), {
indeterminate: x,
skipGroup: C,
id: T = o.id.value
} = t, w = G5(t, ["indeterminate", "skipGroup", "id"]), {
onMouseenter: P,
onMouseleave: $,
onInput: A,
class: D,
style: E
} = r, R = G5(r, ["onMouseenter", "onMouseleave", "onInput", "class", "style"]), N = I(I(I(I({}, w), {
id: T,
prefixCls: l.value
}), R), {
disabled: g.value
});
p && !C ? (N.onChange = function() {
for (var F = arguments.length, Q = new Array(F), Z = 0; Z < F; Z++)
Q[Z] = arguments[Z];
n("change", ...Q), p.toggleOption({
label: S,
value: t.value
});
}, N.name = p.name.value, N.checked = p.mergedValue.value.includes(t.value), N.disabled = g.value || f.value, N.indeterminate = x) : N.onChange = m;
const V = ye({
[`${l.value}-wrapper`]: !0,
[`${l.value}-rtl`]: u.value === "rtl",
[`${l.value}-wrapper-checked`]: N.checked,
[`${l.value}-wrapper-disabled`]: N.disabled,
[`${l.value}-wrapper-in-form-item`]: s.isFormItemInput
}, D, h.value), B = ye({
[`${l.value}-indeterminate`]: x
}, h.value);
return d(M("label", {
class: V,
style: E,
onMouseenter: P,
onMouseleave: $
}, [M(JU, j(j({
"aria-checked": x ? "mixed" : void 0
}, N), {}, {
class: B,
ref: y
}), null), S.length ? M("span", null, [S]) : null]));
};
}
}), F1 = te({
compatConfig: {
MODE: 3
},
name: "ACheckboxGroup",
inheritAttrs: !1,
props: Uxe(),
// emits: ['change', 'update:value'],
setup(t, e) {
let {
slots: n,
attrs: r,
emit: i,
expose: a
} = e;
const o = ls(), {
prefixCls: s,
direction: l
} = It("checkbox", t), u = L(() => `${s.value}-group`), [c, f] = EX(u), d = U((t.value === void 0 ? t.defaultValue : t.value) || []);
se(() => t.value, () => {
d.value = t.value || [];
});
const h = L(() => t.options.map((_) => typeof _ == "string" || typeof _ == "number" ? {
label: _,
value: _
} : _)), p = U(Symbol()), v = U(/* @__PURE__ */ new Map()), g = (_) => {
v.value.delete(_), p.value = Symbol();
}, m = (_, O) => {
v.value.set(_, O), p.value = Symbol();
}, y = U(/* @__PURE__ */ new Map());
return se(p, () => {
const _ = /* @__PURE__ */ new Map();
for (const O of v.value.values())
_.set(O, !0);
y.value = _;
}), pt(MX, {
cancelValue: g,
registerValue: m,
toggleOption: (_) => {
const O = d.value.indexOf(_.value), S = [...d.value];
O === -1 ? S.push(_.value) : S.splice(O, 1), t.value === void 0 && (d.value = S);
const x = S.filter((C) => y.value.has(C)).sort((C, T) => {
const w = h.value.findIndex(($) => $.value === C), P = h.value.findIndex(($) => $.value === T);
return w - P;
});
i("update:value", x), i("change", x), o.onFieldChange();
},
mergedValue: d,
name: L(() => t.name),
disabled: L(() => t.disabled)
}), a({
mergedValue: d
}), () => {
var _;
const {
id: O = o.id.value
} = t;
let S = null;
return h.value && h.value.length > 0 && (S = h.value.map((x) => {
var C;
return M(mg, {
prefixCls: s.value,
key: x.value.toString(),
disabled: "disabled" in x ? x.disabled : t.disabled,
indeterminate: x.indeterminate,
value: x.value,
checked: d.value.indexOf(x.value) !== -1,
onChange: x.onChange,
class: `${u.value}-item`
}, {
default: () => [n.label !== void 0 ? (C = n.label) === null || C === void 0 ? void 0 : C.call(n, x) : x.label]
});
})), c(M("div", j(j({}, r), {}, {
class: [u.value, {
[`${u.value}-rtl`]: l.value === "rtl"
}, r.class, f.value],
id: O
}), [S || ((_ = n.default) === null || _ === void 0 ? void 0 : _.call(n))]));
};
}
});
mg.Group = F1;
mg.install = function(t) {
return t.component(mg.name, mg), t.component(F1.name, F1), t;
};
let A_ = I({}, Vs.Modal);
function qxe(t) {
t ? A_ = I(I({}, A_), t) : A_ = I({}, Vs.Modal);
}
function Kxe() {
return A_;
}
const Z2 = "internalMark", E_ = te({
compatConfig: {
MODE: 3
},
name: "ALocaleProvider",
props: {
locale: {
type: Object
},
ANT_MARK__: String
},
setup(t, e) {
let {
slots: n
} = e;
Yr(t.ANT_MARK__ === Z2, "LocaleProvider", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");
const r = tn({
antLocale: I(I({}, t.locale), {
exist: !0
}),
ANT_MARK__: Z2
});
return pt("localeData", r), se(() => t.locale, (i) => {
qxe(i && i.Modal), r.antLocale = I(I({}, i), {
exist: !0
});
}, {
immediate: !0
}), () => {
var i;
return (i = n.default) === null || i === void 0 ? void 0 : i.call(n);
};
}
});
E_.install = function(t) {
return t.component(E_.name, E_), t;
};
const Jxe = sp(E_), xx = te({
name: "Notice",
inheritAttrs: !1,
props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
setup(t, e) {
let {
attrs: n,
slots: r
} = e, i, a = !1;
const o = L(() => t.duration === void 0 ? 4.5 : t.duration), s = () => {
o.value && !a && (i = setTimeout(() => {
u();
}, o.value * 1e3));
}, l = () => {
i && (clearTimeout(i), i = null);
}, u = (f) => {
f && f.stopPropagation(), l();
const {
onClose: d,
noticeKey: h
} = t;
d && d(h);
}, c = () => {
l(), s();
};
return it(() => {
s();
}), rl(() => {
a = !0, l();
}), se([o, () => t.updateMark, () => t.visible], (f, d) => {
let [h, p, v] = f, [g, m, y] = d;
(h !== g || p !== m || v !== y && y) && c();
}, {
flush: "post"
}), () => {
var f, d;
const {
prefixCls: h,
closable: p,
closeIcon: v = (f = r.closeIcon) === null || f === void 0 ? void 0 : f.call(r),
onClick: g,
holder: m
} = t, {
class: y,
style: b
} = n, _ = `${h}-notice`, O = Object.keys(n).reduce((x, C) => ((C.startsWith("data-") || C.startsWith("aria-") || C === "role") && (x[C] = n[C]), x), {}), S = M("div", j({
class: ye(_, y, {
[`${_}-closable`]: p
}),
style: b,
onMouseenter: l,
onMouseleave: s,
onClick: g
}, O), [M("div", {
class: `${_}-content`
}, [(d = r.default) === null || d === void 0 ? void 0 : d.call(r)]), p ? M("a", {
tabindex: 0,
onClick: u,
class: `${_}-close`
}, [v || M("span", {
class: `${_}-close-x`
}, null)]) : null]);
return m ? M(AS, {
to: m
}, {
default: () => S
}) : S;
};
}
});
var ewe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
let j5 = 0;
const twe = Date.now();
function Z5() {
const t = j5;
return j5 += 1, `rcNotification_${twe}_${t}`;
}
const W1 = te({
name: "Notification",
inheritAttrs: !1,
props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId"],
setup(t, e) {
let {
attrs: n,
expose: r,
slots: i
} = e;
const a = /* @__PURE__ */ new Map(), o = U([]), s = L(() => {
const {
prefixCls: c,
animation: f = "fade"
} = t;
let d = t.transitionName;
return !d && f && (d = `${c}-${f}`), CI(d);
}), l = (c, f) => {
const d = c.key || Z5(), h = I(I({}, c), {
key: d
}), {
maxCount: p
} = t, v = o.value.map((m) => m.notice.key).indexOf(d), g = o.value.concat();
v !== -1 ? g.splice(v, 1, {
notice: h,
holderCallback: f
}) : (p && o.value.length >= p && (h.key = g[0].notice.key, h.updateMark = Z5(), h.userPassKey = d, g.shift()), g.push({
notice: h,
holderCallback: f
})), o.value = g;
}, u = (c) => {
o.value = o.value.filter((f) => {
let {
notice: {
key: d,
userPassKey: h
}
} = f;
return (h || d) !== c;
});
};
return r({
add: l,
remove: u,
notices: o
}), () => {
var c;
const {
prefixCls: f,
closeIcon: d = (c = i.closeIcon) === null || c === void 0 ? void 0 : c.call(i, {
prefixCls: f
})
} = t, h = o.value.map((v, g) => {
let {
notice: m,
holderCallback: y
} = v;
const b = g === o.value.length - 1 ? m.updateMark : void 0, {
key: _,
userPassKey: O
} = m, {
content: S
} = m, x = I(I(I({
prefixCls: f,
closeIcon: typeof d == "function" ? d({
prefixCls: f
}) : d
}, m), m.props), {
key: _,
noticeKey: O || _,
updateMark: b,
onClose: (C) => {
var T;
u(C), (T = m.onClose) === null || T === void 0 || T.call(m);
},
onClick: m.onClick
});
return y ? M("div", {
key: _,
class: `${f}-hook-holder`,
ref: (C) => {
typeof _ > "u" || (C ? (a.set(_, C), y(C, x)) : a.delete(_));
}
}, null) : M(xx, j(j({}, x), {}, {
class: ye(x.class, t.hashId)
}), {
default: () => [typeof S == "function" ? S({
prefixCls: f
}) : S]
});
}), p = {
[f]: 1,
[n.class]: !!n.class,
[t.hashId]: !0
};
return M("div", {
class: p,
style: n.style || {
top: "65px",
left: "50%"
}
}, [M(eI, j({
tag: "div"
}, s.value), {
default: () => [h]
})]);
};
}
});
W1.newInstance = function(e, n) {
const r = e || {}, {
name: i = "notification",
getContainer: a,
appContext: o,
prefixCls: s,
rootPrefixCls: l,
transitionName: u,
hasTransitionName: c,
useStyle: f
} = r, d = ewe(r, ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName", "useStyle"]), h = document.createElement("div");
a ? a().appendChild(h) : document.body.appendChild(h);
const p = te({
compatConfig: {
MODE: 3
},
name: "NotificationWrapper",
setup(g, m) {
let {
attrs: y
} = m;
const b = ae(), _ = L(() => hr.getPrefixCls(i, s)), [, O] = f(_);
return it(() => {
n({
notice(S) {
var x;
(x = b.value) === null || x === void 0 || x.add(S);
},
removeNotice(S) {
var x;
(x = b.value) === null || x === void 0 || x.remove(S);
},
destroy() {
lf(null, h), h.parentNode && h.parentNode.removeChild(h);
},
component: b
});
}), () => {
const S = hr, x = S.getRootPrefixCls(l, _.value), C = c ? u : `${_.value}-${u}`;
return M(qd, j(j({}, S), {}, {
prefixCls: x
}), {
default: () => [M(W1, j(j({
ref: b
}, y), {}, {
prefixCls: _.value,
transitionName: C,
hashId: O.value
}), null)]
});
};
}
}), v = M(p, d);
v.appContext = o || v.appContext, lf(v, h);
};
let U5 = 0;
const nwe = Date.now();
function X5() {
const t = U5;
return U5 += 1, `rcNotification_${nwe}_${t}`;
}
const rwe = te({
name: "HookNotification",
inheritAttrs: !1,
props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId", "remove", "notices", "getStyles", "getClassName", "onAllRemoved", "getContainer"],
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const i = /* @__PURE__ */ new Map(), a = L(() => t.notices), o = L(() => {
let c = t.transitionName;
if (!c && t.animation)
switch (typeof t.animation) {
case "string":
c = t.animation;
break;
case "function":
c = t.animation().name;
break;
case "object":
c = t.animation.name;
break;
default:
c = `${t.prefixCls}-fade`;
break;
}
return CI(c);
}), s = (c) => t.remove(c), l = U({});
se(a, () => {
const c = {};
Object.keys(l.value).forEach((f) => {
c[f] = [];
}), t.notices.forEach((f) => {
const {
placement: d = "topRight"
} = f.notice;
d && (c[d] = c[d] || [], c[d].push(f));
}), l.value = c;
});
const u = L(() => Object.keys(l.value));
return () => {
var c;
const {
prefixCls: f,
closeIcon: d = (c = r.closeIcon) === null || c === void 0 ? void 0 : c.call(r, {
prefixCls: f
})
} = t, h = u.value.map((p) => {
var v, g;
const m = l.value[p], y = (v = t.getClassName) === null || v === void 0 ? void 0 : v.call(t, p), b = (g = t.getStyles) === null || g === void 0 ? void 0 : g.call(t, p), _ = m.map((x, C) => {
let {
notice: T,
holderCallback: w
} = x;
const P = C === a.value.length - 1 ? T.updateMark : void 0, {
key: $,
userPassKey: A
} = T, {
content: D
} = T, E = I(I(I({
prefixCls: f,
closeIcon: typeof d == "function" ? d({
prefixCls: f
}) : d
}, T), T.props), {
key: $,
noticeKey: A || $,
updateMark: P,
onClose: (R) => {
var N;
s(R), (N = T.onClose) === null || N === void 0 || N.call(T);
},
onClick: T.onClick
});
return w ? M("div", {
key: $,
class: `${f}-hook-holder`,
ref: (R) => {
typeof $ > "u" || (R ? (i.set($, R), w(R, E)) : i.delete($));
}
}, null) : M(xx, j(j({}, E), {}, {
class: ye(E.class, t.hashId)
}), {
default: () => [typeof D == "function" ? D({
prefixCls: f
}) : D]
});
}), O = {
[f]: 1,
[`${f}-${p}`]: 1,
[n.class]: !!n.class,
[t.hashId]: !0,
[y]: !!y
};
function S() {
var x;
m.length > 0 || (Reflect.deleteProperty(l.value, p), (x = t.onAllRemoved) === null || x === void 0 || x.call(t));
}
return M("div", {
key: p,
class: O,
style: n.style || b || {
top: "65px",
left: "50%"
}
}, [M(eI, j(j({
tag: "div"
}, o.value), {}, {
onAfterLeave: S
}), {
default: () => [_]
})]);
});
return M(EZ, {
getContainer: t.getContainer
}, {
default: () => [h]
});
};
}
}), iwe = rwe;
var awe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const owe = () => document.body;
let Y5 = 0;
function swe() {
const t = {};
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
n[r] = arguments[r];
return n.forEach((i) => {
i && Object.keys(i).forEach((a) => {
const o = i[a];
o !== void 0 && (t[a] = o);
});
}), t;
}
function IX() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
const {
getContainer: e = owe,
motion: n,
prefixCls: r,
maxCount: i,
getClassName: a,
getStyles: o,
onAllRemoved: s
} = t, l = awe(t, ["getContainer", "motion", "prefixCls", "maxCount", "getClassName", "getStyles", "onAllRemoved"]), u = ae([]), c = ae(), f = (m, y) => {
const b = m.key || X5(), _ = I(I({}, m), {
key: b
}), O = u.value.map((x) => x.notice.key).indexOf(b), S = u.value.concat();
O !== -1 ? S.splice(O, 1, {
notice: _,
holderCallback: y
}) : (i && u.value.length >= i && (_.key = S[0].notice.key, _.updateMark = X5(), _.userPassKey = b, S.shift()), S.push({
notice: _,
holderCallback: y
})), u.value = S;
}, d = (m) => {
u.value = u.value.filter((y) => {
let {
notice: {
key: b,
userPassKey: _
}
} = y;
return (_ || b) !== m;
});
}, h = () => {
u.value = [];
}, p = () => M(iwe, {
ref: c,
prefixCls: r,
maxCount: i,
notices: u.value,
remove: d,
getClassName: a,
getStyles: o,
animation: n,
hashId: t.hashId,
onAllRemoved: s,
getContainer: e
}, null), v = ae([]), g = {
open: (m) => {
const y = swe(l, m);
(y.key === null || y.key === void 0) && (y.key = `vc-notification-${Y5}`, Y5 += 1), v.value = [...v.value, {
type: "open",
config: y
}];
},
close: (m) => {
v.value = [...v.value, {
type: "close",
key: m
}];
},
destroy: () => {
v.value = [...v.value, {
type: "destroy"
}];
}
};
return se(v, () => {
v.value.length && (v.value.forEach((m) => {
switch (m.type) {
case "open":
f(m.config);
break;
case "close":
d(m.key);
break;
case "destroy":
h();
break;
}
}), v.value = []);
}), [g, p];
}
const lwe = (t) => {
const {
componentCls: e,
iconCls: n,
boxShadowSecondary: r,
colorBgElevated: i,
colorSuccess: a,
colorError: o,
colorWarning: s,
colorInfo: l,
fontSizeLG: u,
motionEaseInOutCirc: c,
motionDurationSlow: f,
marginXS: d,
paddingXS: h,
borderRadiusLG: p,
zIndexPopup: v,
// Custom token
messageNoticeContentPadding: g
} = t, m = new Ot("MessageMoveIn", {
"0%": {
padding: 0,
transform: "translateY(-100%)",
opacity: 0
},
"100%": {
padding: h,
transform: "translateY(0)",
opacity: 1
}
}), y = new Ot("MessageMoveOut", {
"0%": {
maxHeight: t.height,
padding: h,
opacity: 1
},
"100%": {
maxHeight: 0,
padding: 0,
opacity: 0
}
});
return [
// ============================ Holder ============================
{
[e]: I(I({}, nn(t)), {
position: "fixed",
top: d,
left: "50%",
transform: "translateX(-50%)",
width: "100%",
pointerEvents: "none",
zIndex: v,
[`${e}-move-up`]: {
animationFillMode: "forwards"
},
[`
${e}-move-up-appear,
${e}-move-up-enter
`]: {
animationName: m,
animationDuration: f,
animationPlayState: "paused",
animationTimingFunction: c
},
[`
${e}-move-up-appear${e}-move-up-appear-active,
${e}-move-up-enter${e}-move-up-enter-active
`]: {
animationPlayState: "running"
},
[`${e}-move-up-leave`]: {
animationName: y,
animationDuration: f,
animationPlayState: "paused",
animationTimingFunction: c
},
[`${e}-move-up-leave${e}-move-up-leave-active`]: {
animationPlayState: "running"
},
"&-rtl": {
direction: "rtl",
span: {
direction: "rtl"
}
}
})
},
// ============================ Notice ============================
{
[`${e}-notice`]: {
padding: h,
textAlign: "center",
[n]: {
verticalAlign: "text-bottom",
marginInlineEnd: d,
fontSize: u
},
[`${e}-notice-content`]: {
display: "inline-block",
padding: g,
background: i,
borderRadius: p,
boxShadow: r,
pointerEvents: "all"
},
[`${e}-success ${n}`]: {
color: a
},
[`${e}-error ${n}`]: {
color: o
},
[`${e}-warning ${n}`]: {
color: s
},
[`
${e}-info ${n},
${e}-loading ${n}`]: {
color: l
}
}
},
// ============================= Pure =============================
{
[`${e}-notice-pure-panel`]: {
padding: 0,
textAlign: "start"
}
}
];
}, vD = Sn("Message", (t) => {
const e = Bt(t, {
messageNoticeContentPadding: `${(t.controlHeightLG - t.fontSize * t.lineHeight) / 2}px ${t.paddingSM}px`
});
return [lwe(e)];
}, (t) => ({
height: 150,
zIndexPopup: t.zIndexPopupBase + 10
})), uwe = {
info: M(Df, null, null),
success: M(Ou, null, null),
error: M(ka, null, null),
warning: M(Su, null, null),
loading: M(ns, null, null)
}, DX = te({
name: "PureContent",
inheritAttrs: !1,
props: ["prefixCls", "type", "icon"],
setup(t, e) {
let {
slots: n
} = e;
return () => {
var r;
return M("div", {
class: ye(`${t.prefixCls}-custom-content`, `${t.prefixCls}-${t.type}`)
}, [t.icon || uwe[t.type], M("span", null, [(r = n.default) === null || r === void 0 ? void 0 : r.call(n)])]);
};
}
});
te({
name: "PurePanel",
inheritAttrs: !1,
props: ["prefixCls", "class", "type", "icon", "content"],
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
var i;
const {
getPrefixCls: a
} = kS(), o = L(() => t.prefixCls || a("message")), [, s] = vD(o);
return M(xx, j(j({}, r), {}, {
prefixCls: o.value,
class: ye(s.value, `${o.value}-notice-pure-panel`),
noticeKey: "pure",
duration: null
}), {
default: () => [M(DX, {
prefixCls: o.value,
type: t.type,
icon: t.icon
}, {
default: () => [(i = n.default) === null || i === void 0 ? void 0 : i.call(n)]
})]
});
}
});
var cwe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const fwe = 8, dwe = 3, hwe = te({
name: "Holder",
inheritAttrs: !1,
props: ["top", "prefixCls", "getContainer", "maxCount", "duration", "rtl", "transitionName", "onAllRemoved"],
setup(t, e) {
let {
expose: n
} = e;
var r, i;
const {
getPrefixCls: a,
getPopupContainer: o
} = It("message", t), s = L(() => a("message", t.prefixCls)), [, l] = vD(s), u = () => {
var v;
const g = (v = t.top) !== null && v !== void 0 ? v : fwe;
return {
left: "50%",
transform: "translateX(-50%)",
top: typeof g == "number" ? `${g}px` : g
};
}, c = () => ye(l.value, t.rtl ? `${s.value}-rtl` : ""), f = () => {
var v;
return pI({
prefixCls: s.value,
animation: (v = t.animation) !== null && v !== void 0 ? v : "move-up",
transitionName: t.transitionName
});
}, d = M("span", {
class: `${s.value}-close-x`
}, [M(ol, {
class: `${s.value}-close-icon`
}, null)]), [h, p] = IX({
//@ts-ignore
getStyles: u,
prefixCls: s.value,
getClassName: c,
motion: f,
closable: !1,
closeIcon: d,
duration: (r = t.duration) !== null && r !== void 0 ? r : dwe,
getContainer: (i = t.staticGetContainer) !== null && i !== void 0 ? i : o.value,
maxCount: t.maxCount,
onAllRemoved: t.onAllRemoved
});
return n(I(I({}, h), {
prefixCls: s,
hashId: l
})), p;
}
});
let q5 = 0;
function pwe(t) {
const e = ae(null), n = Symbol("messageHolderKey"), r = (l) => {
var u;
(u = e.value) === null || u === void 0 || u.close(l);
}, i = (l) => {
if (!e.value) {
const O = () => {
};
return O.then = () => {
}, O;
}
const {
open: u,
prefixCls: c,
hashId: f
} = e.value, d = `${c}-notice`, {
content: h,
icon: p,
type: v,
key: g,
class: m,
onClose: y
} = l, b = cwe(l, ["content", "icon", "type", "key", "class", "onClose"]);
let _ = g;
return _ == null && (q5 += 1, _ = `antd-message-${q5}`), hue((O) => (u(I(I({}, b), {
key: _,
content: () => M(DX, {
prefixCls: c,
type: v,
icon: typeof p == "function" ? p() : p
}, {
default: () => [typeof h == "function" ? h() : h]
}),
placement: "top",
// @ts-ignore
class: ye(v && `${d}-${v}`, f, m),
onClose: () => {
y == null || y(), O();
}
})), () => {
r(_);
}));
}, o = {
open: i,
destroy: (l) => {
var u;
l !== void 0 ? r(l) : (u = e.value) === null || u === void 0 || u.destroy();
}
};
return ["info", "success", "warning", "error", "loading"].forEach((l) => {
const u = (c, f, d) => {
let h;
c && typeof c == "object" && "content" in c ? h = c : h = {
content: c
};
let p, v;
typeof f == "function" ? v = f : (p = f, v = d);
const g = I(I({
onClose: v,
duration: p
}, h), {
type: l
});
return i(g);
};
o[l] = u;
}), [o, () => M(hwe, j(j({
key: n
}, t), {}, {
ref: e
}), null)];
}
function vwe(t) {
return pwe(t);
}
let RX = 3, kX, Ur, gwe = 1, LX = "", NX = "move-up", BX = !1, zX = () => document.body, VX, FX = !1;
function mwe() {
return gwe++;
}
function ywe(t) {
t.top !== void 0 && (kX = t.top, Ur = null), t.duration !== void 0 && (RX = t.duration), t.prefixCls !== void 0 && (LX = t.prefixCls), t.getContainer !== void 0 && (zX = t.getContainer, Ur = null), t.transitionName !== void 0 && (NX = t.transitionName, Ur = null, BX = !0), t.maxCount !== void 0 && (VX = t.maxCount, Ur = null), t.rtl !== void 0 && (FX = t.rtl);
}
function bwe(t, e) {
if (Ur) {
e(Ur);
return;
}
W1.newInstance({
appContext: t.appContext,
prefixCls: t.prefixCls || LX,
rootPrefixCls: t.rootPrefixCls,
transitionName: NX,
hasTransitionName: BX,
style: {
top: kX
},
getContainer: zX || t.getPopupContainer,
maxCount: VX,
name: "message",
useStyle: vD
}, (n) => {
if (Ur) {
e(Ur);
return;
}
Ur = n, e(n);
});
}
const WX = {
info: Df,
success: Ou,
error: ka,
warning: Su,
loading: ns
}, _we = Object.keys(WX);
function Owe(t) {
const e = t.duration !== void 0 ? t.duration : RX, n = t.key || mwe(), r = new Promise((a) => {
const o = () => (typeof t.onClose == "function" && t.onClose(), a(!0));
bwe(t, (s) => {
s.notice({
key: n,
duration: e,
style: t.style || {},
class: t.class,
content: (l) => {
let {
prefixCls: u
} = l;
const c = WX[t.type], f = c ? M(c, null, null) : "", d = ye(`${u}-custom-content`, {
[`${u}-${t.type}`]: t.type,
[`${u}-rtl`]: FX === !0
});
return M("div", {
class: d
}, [typeof t.icon == "function" ? t.icon() : t.icon || f, M("span", null, [typeof t.content == "function" ? t.content() : t.content])]);
},
onClose: o,
onClick: t.onClick
});
});
}), i = () => {
Ur && Ur.removeNotice(n);
};
return i.then = (a, o) => r.then(a, o), i.promise = r, i;
}
function Swe(t) {
return Object.prototype.toString.call(t) === "[object Object]" && !!t.content;
}
const Dh = {
open: Owe,
config: ywe,
destroy(t) {
if (Ur)
if (t) {
const {
removeNotice: e
} = Ur;
e(t);
} else {
const {
destroy: e
} = Ur;
e(), Ur = null;
}
}
};
function xwe(t, e) {
t[e] = (n, r, i) => Swe(n) ? t.open(I(I({}, n), {
type: e
})) : (typeof r == "function" && (i = r, r = void 0), t.open({
content: n,
duration: r,
type: e,
onClose: i
}));
}
_we.forEach((t) => xwe(Dh, t));
Dh.warn = Dh.warning;
Dh.useMessage = vwe;
const wwe = (t) => {
const {
componentCls: e,
width: n,
notificationMarginEdge: r
} = t, i = new Ot("antNotificationTopFadeIn", {
"0%": {
marginTop: "-100%",
opacity: 0
},
"100%": {
marginTop: 0,
opacity: 1
}
}), a = new Ot("antNotificationBottomFadeIn", {
"0%": {
marginBottom: "-100%",
opacity: 0
},
"100%": {
marginBottom: 0,
opacity: 1
}
}), o = new Ot("antNotificationLeftFadeIn", {
"0%": {
right: {
_skip_check_: !0,
value: n
},
opacity: 0
},
"100%": {
right: {
_skip_check_: !0,
value: 0
},
opacity: 1
}
});
return {
[`&${e}-top, &${e}-bottom`]: {
marginInline: 0
},
[`&${e}-top`]: {
[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]: {
animationName: i
}
},
[`&${e}-bottom`]: {
[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]: {
animationName: a
}
},
[`&${e}-topLeft, &${e}-bottomLeft`]: {
marginInlineEnd: 0,
marginInlineStart: r,
[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]: {
animationName: o
}
}
};
}, Cwe = (t) => {
const {
iconCls: e,
componentCls: n,
// .ant-notification
boxShadowSecondary: r,
fontSizeLG: i,
notificationMarginBottom: a,
borderRadiusLG: o,
colorSuccess: s,
colorInfo: l,
colorWarning: u,
colorError: c,
colorTextHeading: f,
notificationBg: d,
notificationPadding: h,
notificationMarginEdge: p,
motionDurationMid: v,
motionEaseInOut: g,
fontSize: m,
lineHeight: y,
width: b,
notificationIconSize: _
} = t, O = `${n}-notice`, S = new Ot("antNotificationFadeIn", {
"0%": {
left: {
_skip_check_: !0,
value: b
},
opacity: 0
},
"100%": {
left: {
_skip_check_: !0,
value: 0
},
opacity: 1
}
}), x = new Ot("antNotificationFadeOut", {
"0%": {
maxHeight: t.animationMaxHeight,
marginBottom: a,
opacity: 1
},
"100%": {
maxHeight: 0,
marginBottom: 0,
paddingTop: 0,
paddingBottom: 0,
opacity: 0
}
});
return [
// ============================ Holder ============================
{
[n]: I(I(I(I({}, nn(t)), {
position: "fixed",
zIndex: t.zIndexPopup,
marginInlineEnd: p,
[`${n}-hook-holder`]: {
position: "relative"
},
[`&${n}-top, &${n}-bottom`]: {
[`${n}-notice`]: {
marginInline: "auto auto"
}
},
[`&${n}-topLeft, &${n}-bottomLeft`]: {
[`${n}-notice`]: {
marginInlineEnd: "auto",
marginInlineStart: 0
}
},
// animation
[`${n}-fade-enter, ${n}-fade-appear`]: {
animationDuration: t.motionDurationMid,
animationTimingFunction: g,
animationFillMode: "both",
opacity: 0,
animationPlayState: "paused"
},
[`${n}-fade-leave`]: {
animationTimingFunction: g,
animationFillMode: "both",
animationDuration: v,
animationPlayState: "paused"
},
[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]: {
animationName: S,
animationPlayState: "running"
},
[`${n}-fade-leave${n}-fade-leave-active`]: {
animationName: x,
animationPlayState: "running"
}
}), wwe(t)), {
// RTL
"&-rtl": {
direction: "rtl",
[`${n}-notice-btn`]: {
float: "left"
}
}
})
},
// ============================ Notice ============================
{
[O]: {
position: "relative",
width: b,
maxWidth: `calc(100vw - ${p * 2}px)`,
marginBottom: a,
marginInlineStart: "auto",
padding: h,
overflow: "hidden",
lineHeight: y,
wordWrap: "break-word",
background: d,
borderRadius: o,
boxShadow: r,
[`${n}-close-icon`]: {
fontSize: m,
cursor: "pointer"
},
[`${O}-message`]: {
marginBottom: t.marginXS,
color: f,
fontSize: i,
lineHeight: t.lineHeightLG
},
[`${O}-description`]: {
fontSize: m
},
[`&${O}-closable ${O}-message`]: {
paddingInlineEnd: t.paddingLG
},
[`${O}-with-icon ${O}-message`]: {
marginBottom: t.marginXS,
marginInlineStart: t.marginSM + _,
fontSize: i
},
[`${O}-with-icon ${O}-description`]: {
marginInlineStart: t.marginSM + _,
fontSize: m
},
// Icon & color style in different selector level
// https://github.com/ant-design/ant-design/issues/16503
// https://github.com/ant-design/ant-design/issues/15512
[`${O}-icon`]: {
position: "absolute",
fontSize: _,
lineHeight: 0,
// icon-font
[`&-success${e}`]: {
color: s
},
[`&-info${e}`]: {
color: l
},
[`&-warning${e}`]: {
color: u
},
[`&-error${e}`]: {
color: c
}
},
[`${O}-close`]: {
position: "absolute",
top: t.notificationPaddingVertical,
insetInlineEnd: t.notificationPaddingHorizontal,
color: t.colorIcon,
outline: "none",
width: t.notificationCloseButtonSize,
height: t.notificationCloseButtonSize,
borderRadius: t.borderRadiusSM,
transition: `background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,
display: "flex",
alignItems: "center",
justifyContent: "center",
"&:hover": {
color: t.colorIconHover,
backgroundColor: t.wireframe ? "transparent" : t.colorFillContent
}
},
[`${O}-btn`]: {
float: "right",
marginTop: t.marginSM
}
}
},
// ============================= Pure =============================
{
[`${O}-pure-panel`]: {
margin: 0
}
}
];
}, gD = Sn("Notification", (t) => {
const e = t.paddingMD, n = t.paddingLG, r = Bt(t, {
// default.less variables
notificationBg: t.colorBgElevated,
notificationPaddingVertical: e,
notificationPaddingHorizontal: n,
// index.less variables
notificationPadding: `${t.paddingMD}px ${t.paddingContentHorizontalLG}px`,
notificationMarginBottom: t.margin,
notificationMarginEdge: t.marginLG,
animationMaxHeight: 150,
notificationIconSize: t.fontSizeLG * t.lineHeightLG,
notificationCloseButtonSize: t.controlHeightLG * 0.55
});
return [Cwe(r)];
}, (t) => ({
zIndexPopup: t.zIndexPopupBase + 50,
width: 384
}));
function QX(t, e) {
return e || M("span", {
class: `${t}-close-x`
}, [M(ol, {
class: `${t}-close-icon`
}, null)]);
}
M(Df, null, null), M(Ou, null, null), M(ka, null, null), M(Su, null, null), M(ns, null, null);
const Twe = {
success: Ou,
info: Df,
error: ka,
warning: Su
};
function HX(t) {
let {
prefixCls: e,
icon: n,
type: r,
message: i,
description: a,
btn: o
} = t, s = null;
if (n)
s = M("span", {
class: `${e}-icon`
}, [Nd(n)]);
else if (r) {
const l = Twe[r];
s = M(l, {
class: `${e}-icon ${e}-icon-${r}`
}, null);
}
return M("div", {
class: ye({
[`${e}-with-icon`]: s
}),
role: "alert"
}, [s, M("div", {
class: `${e}-message`
}, [i]), M("div", {
class: `${e}-description`
}, [a]), o && M("div", {
class: `${e}-btn`
}, [o])]);
}
te({
name: "PurePanel",
inheritAttrs: !1,
props: ["prefixCls", "icon", "type", "message", "description", "btn", "closeIcon"],
setup(t) {
const {
getPrefixCls: e
} = It("notification", t), n = L(() => t.prefixCls || e("notification")), r = L(() => `${n.value}-notice`), [, i] = gD(n);
return () => M(xx, j(j({}, t), {}, {
prefixCls: n.value,
class: ye(i.value, `${r.value}-pure-panel`),
noticeKey: "pure",
duration: null,
closable: t.closable,
closeIcon: QX(n.value, t.closeIcon)
}), {
default: () => [M(HX, {
prefixCls: r.value,
icon: t.icon,
type: t.type,
message: t.message,
description: t.description,
btn: t.btn
}, null)]
});
}
});
function GX(t, e, n) {
let r;
switch (e = typeof e == "number" ? `${e}px` : e, n = typeof n == "number" ? `${n}px` : n, t) {
case "top":
r = {
left: "50%",
transform: "translateX(-50%)",
right: "auto",
top: e,
bottom: "auto"
};
break;
case "topLeft":
r = {
left: 0,
top: e,
bottom: "auto"
};
break;
case "topRight":
r = {
right: 0,
top: e,
bottom: "auto"
};
break;
case "bottom":
r = {
left: "50%",
transform: "translateX(-50%)",
right: "auto",
top: "auto",
bottom: n
};
break;
case "bottomLeft":
r = {
left: 0,
top: "auto",
bottom: n
};
break;
default:
r = {
right: 0,
top: "auto",
bottom: n
};
break;
}
return r;
}
function Pwe(t) {
return {
name: `${t}-fade`
};
}
var $we = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const K5 = 24, Awe = 4.5, Ewe = te({
name: "Holder",
inheritAttrs: !1,
props: ["prefixCls", "class", "type", "icon", "content", "onAllRemoved"],
setup(t, e) {
let {
expose: n
} = e;
const {
getPrefixCls: r,
getPopupContainer: i
} = It("notification", t), a = L(() => t.prefixCls || r("notification")), o = (d) => {
var h, p;
return GX(d, (h = t.top) !== null && h !== void 0 ? h : K5, (p = t.bottom) !== null && p !== void 0 ? p : K5);
}, [, s] = gD(a), l = () => ye(s.value, {
[`${a.value}-rtl`]: t.rtl
}), u = () => Pwe(a.value), [c, f] = IX({
prefixCls: a.value,
getStyles: o,
getClassName: l,
motion: u,
closable: !0,
closeIcon: QX(a.value),
duration: Awe,
getContainer: () => {
var d, h;
return ((d = t.getPopupContainer) === null || d === void 0 ? void 0 : d.call(t)) || ((h = i.value) === null || h === void 0 ? void 0 : h.call(i)) || document.body;
},
maxCount: t.maxCount,
hashId: s.value,
onAllRemoved: t.onAllRemoved
});
return n(I(I({}, c), {
prefixCls: a.value,
hashId: s
})), f;
}
});
function Mwe(t) {
const e = ae(null), n = Symbol("notificationHolderKey"), r = (s) => {
if (!e.value)
return;
const {
open: l,
prefixCls: u,
hashId: c
} = e.value, f = `${u}-notice`, {
message: d,
description: h,
icon: p,
type: v,
btn: g,
class: m
} = s, y = $we(s, ["message", "description", "icon", "type", "btn", "class"]);
return l(I(I({
placement: "topRight"
}, y), {
content: () => M(HX, {
prefixCls: f,
icon: typeof p == "function" ? p() : p,
type: v,
message: typeof d == "function" ? d() : d,
description: typeof h == "function" ? h() : h,
btn: typeof g == "function" ? g() : g
}, null),
// @ts-ignore
class: ye(v && `${f}-${v}`, c, m)
}));
}, a = {
open: r,
destroy: (s) => {
var l, u;
s !== void 0 ? (l = e.value) === null || l === void 0 || l.close(s) : (u = e.value) === null || u === void 0 || u.destroy();
}
};
return ["success", "info", "warning", "error"].forEach((s) => {
a[s] = (l) => r(I(I({}, l), {
type: s
}));
}), [a, () => M(Ewe, j(j({
key: n
}, t), {}, {
ref: e
}), null)];
}
function Iwe(t) {
return Mwe(t);
}
const _c = {};
let jX = 4.5, ZX = "24px", UX = "24px", U2 = "", XX = "topRight", YX = () => document.body, qX = null, X2 = !1, KX;
function Dwe(t) {
const {
duration: e,
placement: n,
bottom: r,
top: i,
getContainer: a,
closeIcon: o,
prefixCls: s
} = t;
s !== void 0 && (U2 = s), e !== void 0 && (jX = e), n !== void 0 && (XX = n), r !== void 0 && (UX = typeof r == "number" ? `${r}px` : r), i !== void 0 && (ZX = typeof i == "number" ? `${i}px` : i), a !== void 0 && (YX = a), o !== void 0 && (qX = o), t.rtl !== void 0 && (X2 = t.rtl), t.maxCount !== void 0 && (KX = t.maxCount);
}
function Rwe(t, e) {
let {
prefixCls: n,
placement: r = XX,
getContainer: i = YX,
top: a,
bottom: o,
closeIcon: s = qX,
appContext: l
} = t;
const {
getPrefixCls: u
} = jwe(), c = u("notification", n || U2), f = `${c}-${r}-${X2}`, d = _c[f];
if (d) {
Promise.resolve(d).then((p) => {
e(p);
});
return;
}
const h = ye(`${c}-${r}`, {
[`${c}-rtl`]: X2 === !0
});
W1.newInstance({
name: "notification",
prefixCls: n || U2,
useStyle: gD,
class: h,
style: GX(r, a ?? ZX, o ?? UX),
appContext: l,
getContainer: i,
closeIcon: (p) => {
let {
prefixCls: v
} = p;
return M("span", {
class: `${v}-close-x`
}, [Nd(s, {}, M(ol, {
class: `${v}-close-icon`
}, null))]);
},
maxCount: KX,
hasTransitionName: !0
}, (p) => {
_c[f] = p, e(p);
});
}
const kwe = {
success: eD,
info: hx,
error: nD,
warning: tD
};
function Lwe(t) {
const {
icon: e,
type: n,
description: r,
message: i,
btn: a
} = t, o = t.duration === void 0 ? jX : t.duration;
Rwe(t, (s) => {
s.notice({
content: (l) => {
let {
prefixCls: u
} = l;
const c = `${u}-notice`;
let f = null;
if (e)
f = () => M("span", {
class: `${c}-icon`
}, [Nd(e)]);
else if (n) {
const d = kwe[n];
f = () => M(d, {
class: `${c}-icon ${c}-icon-${n}`
}, null);
}
return M("div", {
class: f ? `${c}-with-icon` : ""
}, [f && f(), M("div", {
class: `${c}-message`
}, [!r && f ? M("span", {
class: `${c}-message-single-line-auto-margin`
}, null) : null, Nd(i)]), M("div", {
class: `${c}-description`
}, [Nd(r)]), a ? M("span", {
class: `${c}-btn`
}, [Nd(a)]) : null]);
},
duration: o,
closable: !0,
onClose: t.onClose,
onClick: t.onClick,
key: t.key,
style: t.style || {},
class: t.class
});
});
}
const Rh = {
open: Lwe,
close(t) {
Object.keys(_c).forEach((e) => Promise.resolve(_c[e]).then((n) => {
n.removeNotice(t);
}));
},
config: Dwe,
destroy() {
Object.keys(_c).forEach((t) => {
Promise.resolve(_c[t]).then((e) => {
e.destroy();
}), delete _c[t];
});
}
}, Nwe = ["success", "info", "warning", "error"];
Nwe.forEach((t) => {
Rh[t] = (e) => Rh.open(I(I({}, e), {
type: t
}));
});
Rh.warn = Rh.warning;
Rh.useNotification = Iwe;
const Bwe = `-ant-${Date.now()}-${Math.random()}`;
function zwe(t, e) {
const n = {}, r = (o, s) => {
let l = o.clone();
return l = (s == null ? void 0 : s(l)) || l, l.toRgbString();
}, i = (o, s) => {
const l = new en(o), u = df(l.toRgbString());
n[`${s}-color`] = r(l), n[`${s}-color-disabled`] = u[1], n[`${s}-color-hover`] = u[4], n[`${s}-color-active`] = u[6], n[`${s}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), n[`${s}-color-deprecated-bg`] = u[0], n[`${s}-color-deprecated-border`] = u[2];
};
if (e.primaryColor) {
i(e.primaryColor, "primary");
const o = new en(e.primaryColor), s = df(o.toRgbString());
s.forEach((u, c) => {
n[`primary-${c + 1}`] = u;
}), n["primary-color-deprecated-l-35"] = r(o, (u) => u.lighten(35)), n["primary-color-deprecated-l-20"] = r(o, (u) => u.lighten(20)), n["primary-color-deprecated-t-20"] = r(o, (u) => u.tint(20)), n["primary-color-deprecated-t-50"] = r(o, (u) => u.tint(50)), n["primary-color-deprecated-f-12"] = r(o, (u) => u.setAlpha(u.getAlpha() * 0.12));
const l = new en(s[0]);
n["primary-color-active-deprecated-f-30"] = r(l, (u) => u.setAlpha(u.getAlpha() * 0.3)), n["primary-color-active-deprecated-d-02"] = r(l, (u) => u.darken(2));
}
return e.successColor && i(e.successColor, "success"), e.warningColor && i(e.warningColor, "warning"), e.errorColor && i(e.errorColor, "error"), e.infoColor && i(e.infoColor, "info"), `
:root {
${Object.keys(n).map((o) => `--${t}-${o}: ${n[o]};`).join(`
`)}
}
`.trim();
}
function Vwe(t, e) {
const n = zwe(t, e);
Ta() ? em(n, `${Bwe}-dynamic-theme`) : Yr(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
}
const Fwe = (t) => {
const [e, n] = cp();
return h2(L(() => ({
theme: e.value,
token: n.value,
hashId: "",
path: ["ant-design-icons", t.value]
})), () => [{
[`.${t.value}`]: I(I({}, up()), {
[`.${t.value} .${t.value}-icon`]: {
display: "block"
}
})
}]);
};
function Wwe(t, e) {
const n = L(() => (t == null ? void 0 : t.value) || {}), r = L(() => n.value.inherit === !1 || !(e != null && e.value) ? Fj : e.value);
return L(() => {
if (!(t != null && t.value))
return e == null ? void 0 : e.value;
const a = I({}, r.value.components);
return Object.keys(t.value.components || {}).forEach((o) => {
a[o] = I(I({}, a[o]), t.value.components[o]);
}), I(I(I({}, r.value), n.value), {
token: I(I({}, r.value.token), n.value.token),
components: a
});
});
}
var Qwe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Hwe = "ant";
function Yd() {
return hr.prefixCls || Hwe;
}
function JX() {
return hr.iconPrefixCls || aI;
}
const mD = tn({}), hr = tn({});
ht(() => {
I(hr, mD), hr.prefixCls = Yd(), hr.iconPrefixCls = JX(), hr.getPrefixCls = (t, e) => e || (t ? `${hr.prefixCls}-${t}` : hr.prefixCls), hr.getRootPrefixCls = () => hr.prefixCls ? hr.prefixCls : Yd();
});
let $C;
const Gwe = (t) => {
$C && $C(), $C = ht(() => {
I(mD, tn(t)), I(hr, tn(t));
}), t.theme && Vwe(Yd(), t.theme);
}, jwe = () => ({
getPrefixCls: (t, e) => e || (t ? `${Yd()}-${t}` : Yd()),
getIconPrefixCls: JX,
getRootPrefixCls: () => hr.prefixCls ? hr.prefixCls : Yd()
}), qd = te({
compatConfig: {
MODE: 3
},
name: "AConfigProvider",
inheritAttrs: !1,
props: zue(),
setup(t, e) {
let {
slots: n
} = e;
const r = kS(), i = (E, R) => {
const {
prefixCls: N = "ant"
} = t;
if (R) return R;
const V = N || r.getPrefixCls("");
return E ? `${V}-${E}` : V;
}, a = L(() => t.iconPrefixCls || r.iconPrefixCls.value || aI), o = L(() => a.value !== r.iconPrefixCls.value), s = L(() => {
var E;
return t.csp || ((E = r.csp) === null || E === void 0 ? void 0 : E.value);
}), l = Fwe(a), u = Wwe(L(() => t.theme), L(() => {
var E;
return (E = r.theme) === null || E === void 0 ? void 0 : E.value;
})), c = (E) => (t.renderEmpty || n.renderEmpty || r.renderEmpty || Mfe)(E), f = L(() => {
var E, R;
return (E = t.autoInsertSpaceInButton) !== null && E !== void 0 ? E : (R = r.autoInsertSpaceInButton) === null || R === void 0 ? void 0 : R.value;
}), d = L(() => {
var E;
return t.locale || ((E = r.locale) === null || E === void 0 ? void 0 : E.value);
});
se(d, () => {
mD.locale = d.value;
}, {
immediate: !0
});
const h = L(() => {
var E;
return t.direction || ((E = r.direction) === null || E === void 0 ? void 0 : E.value);
}), p = L(() => {
var E, R;
return (E = t.space) !== null && E !== void 0 ? E : (R = r.space) === null || R === void 0 ? void 0 : R.value;
}), v = L(() => {
var E, R;
return (E = t.virtual) !== null && E !== void 0 ? E : (R = r.virtual) === null || R === void 0 ? void 0 : R.value;
}), g = L(() => {
var E, R;
return (E = t.dropdownMatchSelectWidth) !== null && E !== void 0 ? E : (R = r.dropdownMatchSelectWidth) === null || R === void 0 ? void 0 : R.value;
}), m = L(() => {
var E;
return t.getTargetContainer !== void 0 ? t.getTargetContainer : (E = r.getTargetContainer) === null || E === void 0 ? void 0 : E.value;
}), y = L(() => {
var E;
return t.getPopupContainer !== void 0 ? t.getPopupContainer : (E = r.getPopupContainer) === null || E === void 0 ? void 0 : E.value;
}), b = L(() => {
var E;
return t.pageHeader !== void 0 ? t.pageHeader : (E = r.pageHeader) === null || E === void 0 ? void 0 : E.value;
}), _ = L(() => {
var E;
return t.input !== void 0 ? t.input : (E = r.input) === null || E === void 0 ? void 0 : E.value;
}), O = L(() => {
var E;
return t.pagination !== void 0 ? t.pagination : (E = r.pagination) === null || E === void 0 ? void 0 : E.value;
}), S = L(() => {
var E;
return t.form !== void 0 ? t.form : (E = r.form) === null || E === void 0 ? void 0 : E.value;
}), x = L(() => {
var E;
return t.select !== void 0 ? t.select : (E = r.select) === null || E === void 0 ? void 0 : E.value;
}), C = L(() => t.componentSize), T = L(() => t.componentDisabled), w = L(() => {
var E, R;
return (E = t.wave) !== null && E !== void 0 ? E : (R = r.wave) === null || R === void 0 ? void 0 : R.value;
}), P = {
csp: s,
autoInsertSpaceInButton: f,
locale: d,
direction: h,
space: p,
virtual: v,
dropdownMatchSelectWidth: g,
getPrefixCls: i,
iconPrefixCls: a,
theme: L(() => {
var E, R;
return (E = u.value) !== null && E !== void 0 ? E : (R = r.theme) === null || R === void 0 ? void 0 : R.value;
}),
renderEmpty: c,
getTargetContainer: m,
getPopupContainer: y,
pageHeader: b,
input: _,
pagination: O,
form: S,
select: x,
componentSize: C,
componentDisabled: T,
transformCellText: L(() => t.transformCellText),
wave: w
}, $ = L(() => {
const E = u.value || {}, {
algorithm: R,
token: N
} = E, V = Qwe(E, ["algorithm", "token"]), B = R && (!Array.isArray(R) || R.length > 0) ? wj(R) : void 0;
return I(I({}, V), {
theme: B,
token: I(I({}, FS), N)
});
}), A = L(() => {
var E, R;
let N = {};
return d.value && (N = ((E = d.value.Form) === null || E === void 0 ? void 0 : E.defaultValidateMessages) || ((R = Vs.Form) === null || R === void 0 ? void 0 : R.defaultValidateMessages) || {}), t.form && t.form.validateMessages && (N = I(I({}, N), t.form.validateMessages)), N;
});
Vue(P), Nue({
validateMessages: A
}), Xj(C), fj(T);
const D = (E) => {
var R, N;
let V = o.value ? l((R = n.default) === null || R === void 0 ? void 0 : R.call(n)) : (N = n.default) === null || N === void 0 ? void 0 : N.call(n);
if (t.theme) {
const B = /* @__PURE__ */ function() {
return V;
}();
V = M(Tfe, {
value: $.value
}, {
default: () => [B]
});
}
return M(Jxe, {
locale: d.value || E,
ANT_MARK__: Z2
}, {
default: () => [V]
});
};
return ht(() => {
h.value && (Dh.config({
rtl: h.value === "rtl"
}), Rh.config({
rtl: h.value === "rtl"
}));
}), () => M(hj, {
children: (E, R, N) => D(N)
}, null);
}
});
qd.config = Gwe;
qd.install = function(t) {
t.component(qd.name, qd);
};
const Zwe = (t) => {
const {
componentCls: e,
sizePaddingEdgeHorizontal: n,
colorSplit: r,
lineWidth: i
} = t;
return {
[e]: I(I({}, nn(t)), {
borderBlockStart: `${i}px solid ${r}`,
// vertical
"&-vertical": {
position: "relative",
top: "-0.06em",
display: "inline-block",
height: "0.9em",
margin: `0 ${t.dividerVerticalGutterMargin}px`,
verticalAlign: "middle",
borderTop: 0,
borderInlineStart: `${i}px solid ${r}`
},
"&-horizontal": {
display: "flex",
clear: "both",
width: "100%",
minWidth: "100%",
margin: `${t.dividerHorizontalGutterMargin}px 0`
},
[`&-horizontal${e}-with-text`]: {
display: "flex",
alignItems: "center",
margin: `${t.dividerHorizontalWithTextGutterMargin}px 0`,
color: t.colorTextHeading,
fontWeight: 500,
fontSize: t.fontSizeLG,
whiteSpace: "nowrap",
textAlign: "center",
borderBlockStart: `0 ${r}`,
"&::before, &::after": {
position: "relative",
width: "50%",
borderBlockStart: `${i}px solid transparent`,
// Chrome not accept `inherit` in `border-top`
borderBlockStartColor: "inherit",
borderBlockEnd: 0,
transform: "translateY(50%)",
content: "''"
}
},
[`&-horizontal${e}-with-text-left`]: {
"&::before": {
width: "5%"
},
"&::after": {
width: "95%"
}
},
[`&-horizontal${e}-with-text-right`]: {
"&::before": {
width: "95%"
},
"&::after": {
width: "5%"
}
},
[`${e}-inner-text`]: {
display: "inline-block",
padding: "0 1em"
},
"&-dashed": {
background: "none",
borderColor: r,
borderStyle: "dashed",
borderWidth: `${i}px 0 0`
},
[`&-horizontal${e}-with-text${e}-dashed`]: {
"&::before, &::after": {
borderStyle: "dashed none none"
}
},
[`&-vertical${e}-dashed`]: {
borderInlineStartWidth: i,
borderInlineEnd: 0,
borderBlockStart: 0,
borderBlockEnd: 0
},
[`&-plain${e}-with-text`]: {
color: t.colorText,
fontWeight: "normal",
fontSize: t.fontSize
},
[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]: {
"&::before": {
width: 0
},
"&::after": {
width: "100%"
},
[`${e}-inner-text`]: {
paddingInlineStart: n
}
},
[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]: {
"&::before": {
width: "100%"
},
"&::after": {
width: 0
},
[`${e}-inner-text`]: {
paddingInlineEnd: n
}
}
})
};
}, Uwe = Sn("Divider", (t) => {
const e = Bt(t, {
dividerVerticalGutterMargin: t.marginXS,
dividerHorizontalWithTextGutterMargin: t.margin,
dividerHorizontalGutterMargin: t.marginLG
});
return [Zwe(e)];
}, {
sizePaddingEdgeHorizontal: 0
}), Xwe = () => ({
prefixCls: String,
type: {
type: String,
default: "horizontal"
},
dashed: {
type: Boolean,
default: !1
},
orientation: {
type: String,
default: "center"
},
plain: {
type: Boolean,
default: !1
},
orientationMargin: [String, Number]
}), Ywe = te({
name: "ADivider",
inheritAttrs: !1,
compatConfig: {
MODE: 3
},
props: Xwe(),
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
prefixCls: i,
direction: a
} = It("divider", t), [o, s] = Uwe(i), l = L(() => t.orientation === "left" && t.orientationMargin != null), u = L(() => t.orientation === "right" && t.orientationMargin != null), c = L(() => {
const {
type: h,
dashed: p,
plain: v
} = t, g = i.value;
return {
[g]: !0,
[s.value]: !!s.value,
[`${g}-${h}`]: !0,
[`${g}-dashed`]: !!p,
[`${g}-plain`]: !!v,
[`${g}-rtl`]: a.value === "rtl",
[`${g}-no-default-orientation-margin-left`]: l.value,
[`${g}-no-default-orientation-margin-right`]: u.value
};
}), f = L(() => {
const h = typeof t.orientationMargin == "number" ? `${t.orientationMargin}px` : t.orientationMargin;
return I(I({}, l.value && {
marginLeft: h
}), u.value && {
marginRight: h
});
}), d = L(() => t.orientation.length > 0 ? "-" + t.orientation : t.orientation);
return () => {
var h;
const p = Yn((h = n.default) === null || h === void 0 ? void 0 : h.call(n));
return o(M("div", j(j({}, r), {}, {
class: [c.value, p.length ? `${i.value}-with-text ${i.value}-with-text${d.value}` : "", r.class],
role: "separator"
}), [p.length ? M("span", {
class: `${i.value}-inner-text`,
style: f.value
}, [p]) : null]));
};
}
}), qwe = sp(Ywe), yg = (t) => t != null && (Array.isArray(t) ? ss(t).length : !0);
function yD(t) {
return yg(t.prefix) || yg(t.suffix) || yg(t.allowClear);
}
function M_(t) {
return yg(t.addonBefore) || yg(t.addonAfter);
}
function Y2(t) {
return typeof t > "u" || t === null ? "" : String(t);
}
function bg(t, e, n, r) {
if (!n)
return;
const i = e;
if (e.type === "click") {
Object.defineProperty(i, "target", {
writable: !0
}), Object.defineProperty(i, "currentTarget", {
writable: !0
});
const a = t.cloneNode(!0);
i.target = a, i.currentTarget = a, a.value = "", n(i);
return;
}
if (r !== void 0) {
Object.defineProperty(i, "target", {
writable: !0
}), Object.defineProperty(i, "currentTarget", {
writable: !0
}), i.target = t, i.currentTarget = t, t.value = r, n(i);
return;
}
n(i);
}
function eY(t, e) {
if (!t) return;
t.focus(e);
const {
cursor: n
} = e || {};
if (n) {
const r = t.value.length;
switch (n) {
case "start":
t.setSelectionRange(0, 0);
break;
case "end":
t.setSelectionRange(r, r);
break;
default:
t.setSelectionRange(0, r);
}
}
}
const Kwe = () => ({
addonBefore: Y.any,
addonAfter: Y.any,
prefix: Y.any,
suffix: Y.any,
clearIcon: Y.any,
affixWrapperClassName: String,
groupClassName: String,
wrapperClassName: String,
inputClassName: String,
allowClear: {
type: Boolean,
default: void 0
}
}), tY = () => I(I({}, Kwe()), {
value: {
type: [String, Number, Symbol],
default: void 0
},
defaultValue: {
type: [String, Number, Symbol],
default: void 0
},
inputElement: Y.any,
prefixCls: String,
disabled: {
type: Boolean,
default: void 0
},
focused: {
type: Boolean,
default: void 0
},
triggerFocus: Function,
readonly: {
type: Boolean,
default: void 0
},
handleReset: Function,
hidden: {
type: Boolean,
default: void 0
}
}), nY = () => I(I({}, tY()), {
id: String,
placeholder: {
type: [String, Number]
},
autocomplete: String,
type: hn("text"),
name: String,
size: {
type: String
},
autofocus: {
type: Boolean,
default: void 0
},
lazy: {
type: Boolean,
default: !0
},
maxlength: Number,
loading: {
type: Boolean,
default: void 0
},
bordered: {
type: Boolean,
default: void 0
},
showCount: {
type: [Boolean, Object]
},
htmlSize: Number,
onPressEnter: Function,
onKeydown: Function,
onKeyup: Function,
onFocus: Function,
onBlur: Function,
onChange: Function,
onInput: Function,
"onUpdate:value": Function,
onCompositionstart: Function,
onCompositionend: Function,
valueModifiers: Object,
hidden: {
type: Boolean,
default: void 0
},
status: String
}), Jwe = te({
name: "BaseInput",
inheritAttrs: !1,
props: tY(),
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const i = U(), a = (s) => {
var l;
if (!((l = i.value) === null || l === void 0) && l.contains(s.target)) {
const {
triggerFocus: u
} = t;
u == null || u();
}
}, o = () => {
var s;
const {
allowClear: l,
value: u,
disabled: c,
readonly: f,
handleReset: d,
suffix: h = n.suffix,
prefixCls: p
} = t;
if (!l)
return null;
const v = !c && !f && u, g = `${p}-clear-icon`, m = ((s = n.clearIcon) === null || s === void 0 ? void 0 : s.call(n)) || "*";
return M("span", {
onClick: d,
onMousedown: (y) => y.preventDefault(),
class: ye({
[`${g}-hidden`]: !v,
[`${g}-has-suffix`]: !!h
}, g),
role: "button",
tabindex: -1
}, [m]);
};
return () => {
var s, l;
const {
focused: u,
value: c,
disabled: f,
allowClear: d,
readonly: h,
hidden: p,
prefixCls: v,
prefix: g = (s = n.prefix) === null || s === void 0 ? void 0 : s.call(n),
suffix: m = (l = n.suffix) === null || l === void 0 ? void 0 : l.call(n),
addonAfter: y = n.addonAfter,
addonBefore: b = n.addonBefore,
inputElement: _,
affixWrapperClassName: O,
wrapperClassName: S,
groupClassName: x
} = t;
let C = Pn(_, {
value: c,
hidden: p
});
if (yD({
prefix: g,
suffix: m,
allowClear: d
})) {
const T = `${v}-affix-wrapper`, w = ye(T, {
[`${T}-disabled`]: f,
[`${T}-focused`]: u,
[`${T}-readonly`]: h,
[`${T}-input-with-clear-btn`]: m && d && c
}, !M_({
addonAfter: y,
addonBefore: b
}) && r.class, O), P = (m || d) && M("span", {
class: `${v}-suffix`
}, [o(), m]);
C = M("span", {
class: w,
style: r.style,
hidden: !M_({
addonAfter: y,
addonBefore: b
}) && p,
onMousedown: a,
ref: i
}, [g && M("span", {
class: `${v}-prefix`
}, [g]), Pn(_, {
style: null,
value: c,
hidden: null
}), P]);
}
if (M_({
addonAfter: y,
addonBefore: b
})) {
const T = `${v}-group`, w = `${T}-addon`, P = ye(`${v}-wrapper`, T, S), $ = ye(`${v}-group-wrapper`, r.class, x);
return M("span", {
class: $,
style: r.style,
hidden: p
}, [M("span", {
class: P
}, [b && M("span", {
class: w
}, [b]), Pn(C, {
style: null,
hidden: null
}), y && M("span", {
class: w
}, [y])])]);
}
return C;
};
}
});
var eCe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const tCe = te({
name: "VCInput",
inheritAttrs: !1,
props: nY(),
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i,
emit: a
} = e;
const o = ae(t.value === void 0 ? t.defaultValue : t.value), s = ae(!1), l = ae(), u = ae();
se(() => t.value, () => {
o.value = t.value;
}), se(() => t.disabled, () => {
t.disabled && (s.value = !1);
});
const c = (x) => {
l.value && eY(l.value.input, x);
}, f = () => {
var x;
(x = l.value.input) === null || x === void 0 || x.blur();
}, d = (x, C, T) => {
var w;
(w = l.value.input) === null || w === void 0 || w.setSelectionRange(x, C, T);
}, h = () => {
var x;
(x = l.value.input) === null || x === void 0 || x.select();
};
i({
focus: c,
blur: f,
input: L(() => {
var x;
return (x = l.value.input) === null || x === void 0 ? void 0 : x.input;
}),
stateValue: o,
setSelectionRange: d,
select: h
});
const p = (x) => {
a("change", x);
}, v = (x, C) => {
o.value !== x && (t.value === void 0 ? o.value = x : Tt(() => {
var T;
l.value.input.value !== o.value && ((T = u.value) === null || T === void 0 || T.$forceUpdate());
}), Tt(() => {
C && C();
}));
}, g = (x) => {
const {
value: C
} = x.target;
if (o.value === C) return;
const T = x.target.value;
bg(l.value.input, x, p), v(T);
}, m = (x) => {
x.keyCode === 13 && a("pressEnter", x), a("keydown", x);
}, y = (x) => {
s.value = !0, a("focus", x);
}, b = (x) => {
s.value = !1, a("blur", x);
}, _ = (x) => {
bg(l.value.input, x, p), v("", () => {
c();
});
}, O = () => {
var x, C;
const {
addonBefore: T = n.addonBefore,
addonAfter: w = n.addonAfter,
disabled: P,
valueModifiers: $ = {},
htmlSize: A,
autocomplete: D,
prefixCls: E,
inputClassName: R,
prefix: N = (x = n.prefix) === null || x === void 0 ? void 0 : x.call(n),
suffix: V = (C = n.suffix) === null || C === void 0 ? void 0 : C.call(n),
allowClear: B,
type: W = "text"
} = t, F = or(t, [
"prefixCls",
"onPressEnter",
"addonBefore",
"addonAfter",
"prefix",
"suffix",
"allowClear",
// Input elements must be either controlled or uncontrolled,
// specify either the value prop, or the defaultValue prop, but not both.
"defaultValue",
"size",
"bordered",
"htmlSize",
"lazy",
"showCount",
"valueModifiers",
"showCount",
"affixWrapperClassName",
"groupClassName",
"inputClassName",
"wrapperClassName"
]), Q = I(I(I({}, F), r), {
autocomplete: D,
onChange: g,
onInput: g,
onFocus: y,
onBlur: b,
onKeydown: m,
class: ye(E, {
[`${E}-disabled`]: P
}, R, !M_({
addonAfter: w,
addonBefore: T
}) && !yD({
prefix: N,
suffix: V,
allowClear: B
}) && r.class),
ref: l,
key: "ant-input",
size: A,
type: W,
lazy: t.lazy
});
return $.lazy && delete Q.onInput, Q.autofocus || delete Q.autofocus, M(PI, or(Q, ["size"]), null);
}, S = () => {
var x;
const {
maxlength: C,
suffix: T = (x = n.suffix) === null || x === void 0 ? void 0 : x.call(n),
showCount: w,
prefixCls: P
} = t, $ = Number(C) > 0;
if (T || w) {
const A = [...Y2(o.value)].length, D = typeof w == "object" ? w.formatter({
count: A,
maxlength: C
}) : `${A}${$ ? ` / ${C}` : ""}`;
return M(wt, null, [!!w && M("span", {
class: ye(`${P}-show-count-suffix`, {
[`${P}-show-count-has-suffix`]: !!T
})
}, [D]), T]);
}
return null;
};
return it(() => {
process.env.NODE_ENV === "test" && t.autofocus && c();
}), () => {
const {
prefixCls: x,
disabled: C
} = t, T = eCe(t, ["prefixCls", "disabled"]);
return M(Jwe, j(j(j({}, T), r), {}, {
ref: u,
prefixCls: x,
inputElement: O(),
handleReset: _,
value: Y2(o.value),
focused: s.value,
triggerFocus: c,
suffix: S(),
disabled: C
}), n);
};
}
}), Cx = () => or(nY(), ["wrapperClassName", "groupClassName", "inputClassName", "affixWrapperClassName"]), rY = () => I(I({}, or(Cx(), ["prefix", "addonBefore", "addonAfter", "suffix"])), {
rows: Number,
autosize: {
type: [Boolean, Object],
default: void 0
},
autoSize: {
type: [Boolean, Object],
default: void 0
},
onResize: {
type: Function
},
onCompositionstart: y1(),
onCompositionend: y1(),
valueModifiers: Object
});
var nCe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const Hn = te({
compatConfig: {
MODE: 3
},
name: "AInput",
inheritAttrs: !1,
props: Cx(),
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i,
emit: a
} = e;
const o = U(), s = ls(), l = ao.useInject(), u = L(() => y0(l.status, t.status)), {
direction: c,
prefixCls: f,
size: d,
autocomplete: h
} = It("input", t), {
compactSize: p,
compactItemClassnames: v
} = ux(f, c), g = L(() => p.value || d.value), [m, y] = uD(f), b = Jo();
i({
focus: (A) => {
var D;
(D = o.value) === null || D === void 0 || D.focus(A);
},
blur: () => {
var A;
(A = o.value) === null || A === void 0 || A.blur();
},
input: o,
setSelectionRange: (A, D, E) => {
var R;
(R = o.value) === null || R === void 0 || R.setSelectionRange(A, D, E);
},
select: () => {
var A;
(A = o.value) === null || A === void 0 || A.select();
}
});
const C = U([]), T = () => {
C.value.push(setTimeout(() => {
var A, D, E, R;
!((A = o.value) === null || A === void 0) && A.input && ((D = o.value) === null || D === void 0 ? void 0 : D.input.getAttribute("type")) === "password" && (!((E = o.value) === null || E === void 0) && E.input.hasAttribute("value")) && ((R = o.value) === null || R === void 0 || R.input.removeAttribute("value"));
}));
};
it(() => {
T();
}), j9(() => {
C.value.forEach((A) => clearTimeout(A));
}), yt(() => {
C.value.forEach((A) => clearTimeout(A));
});
const w = (A) => {
T(), a("blur", A), s.onFieldBlur();
}, P = (A) => {
T(), a("focus", A);
}, $ = (A) => {
a("update:value", A.target.value), a("change", A), a("input", A), s.onFieldChange();
};
return () => {
var A, D, E, R, N, V;
const {
hasFeedback: B,
feedbackIcon: W
} = l, {
allowClear: F,
bordered: Q = !0,
prefix: Z = (A = n.prefix) === null || A === void 0 ? void 0 : A.call(n),
suffix: ne = (D = n.suffix) === null || D === void 0 ? void 0 : D.call(n),
addonAfter: ee = (E = n.addonAfter) === null || E === void 0 ? void 0 : E.call(n),
addonBefore: oe = (R = n.addonBefore) === null || R === void 0 ? void 0 : R.call(n),
id: K = (N = s.id) === null || N === void 0 ? void 0 : N.value
} = t, ie = nCe(t, ["allowClear", "bordered", "prefix", "suffix", "addonAfter", "addonBefore", "id"]), X = (B || ne) && M(wt, null, [ne, B && W]), H = f.value, G = yD({
prefix: Z,
suffix: ne
}) || !!B, re = n.clearIcon || (() => M(ka, null, null));
return m(M(tCe, j(j(j({}, r), or(ie, ["onUpdate:value", "onChange", "onInput"])), {}, {
onChange: $,
id: K,
disabled: (V = t.disabled) !== null && V !== void 0 ? V : b.value,
ref: o,
prefixCls: H,
autocomplete: h.value,
onBlur: w,
onFocus: P,
prefix: Z,
suffix: X,
allowClear: F,
addonAfter: ee && M(I1, null, {
default: () => [M(A1, null, {
default: () => [ee]
})]
}),
addonBefore: oe && M(I1, null, {
default: () => [M(A1, null, {
default: () => [oe]
})]
}),
class: [r.class, v.value],
inputClassName: ye({
[`${H}-sm`]: g.value === "small",
[`${H}-lg`]: g.value === "large",
[`${H}-rtl`]: c.value === "rtl",
[`${H}-borderless`]: !Q
}, !G && Ds(H, u.value), y.value),
affixWrapperClassName: ye({
[`${H}-affix-wrapper-sm`]: g.value === "small",
[`${H}-affix-wrapper-lg`]: g.value === "large",
[`${H}-affix-wrapper-rtl`]: c.value === "rtl",
[`${H}-affix-wrapper-borderless`]: !Q
}, Ds(`${H}-affix-wrapper`, u.value, B), y.value),
wrapperClassName: ye({
[`${H}-group-rtl`]: c.value === "rtl"
}, y.value),
groupClassName: ye({
[`${H}-group-wrapper-sm`]: g.value === "small",
[`${H}-group-wrapper-lg`]: g.value === "large",
[`${H}-group-wrapper-rtl`]: c.value === "rtl"
}, Ds(`${H}-group-wrapper`, u.value, B), y.value)
}), I(I({}, n), {
clearIcon: re
})));
};
}
}), rCe = te({
compatConfig: {
MODE: 3
},
name: "AInputGroup",
inheritAttrs: !1,
props: {
prefixCls: String,
size: {
type: String
},
compact: {
type: Boolean,
default: void 0
}
},
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
prefixCls: i,
direction: a,
getPrefixCls: o
} = It("input-group", t), s = ao.useInject();
ao.useProvide(s, {
isFormItemInput: !1
});
const l = L(() => o("input")), [u, c] = uD(l), f = L(() => {
const d = i.value;
return {
[`${d}`]: !0,
[c.value]: !0,
[`${d}-lg`]: t.size === "large",
[`${d}-sm`]: t.size === "small",
[`${d}-compact`]: t.compact,
[`${d}-rtl`]: a.value === "rtl"
};
});
return () => {
var d;
return u(M("span", j(j({}, r), {}, {
class: ye(f.value, r.class)
}), [(d = n.default) === null || d === void 0 ? void 0 : d.call(n)]));
};
}
});
var iCe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const aCe = te({
compatConfig: {
MODE: 3
},
name: "AInputSearch",
inheritAttrs: !1,
props: I(I({}, Cx()), {
inputPrefixCls: String,
// 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
enterButton: Y.any,
onSearch: {
type: Function
}
}),
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i,
emit: a
} = e;
const o = ae(), s = ae(!1);
i({
focus: () => {
var O;
(O = o.value) === null || O === void 0 || O.focus();
},
blur: () => {
var O;
(O = o.value) === null || O === void 0 || O.blur();
}
});
const c = (O) => {
a("update:value", O.target.value), O && O.target && O.type === "click" && a("search", O.target.value, O), a("change", O);
}, f = (O) => {
var S;
document.activeElement === ((S = o.value) === null || S === void 0 ? void 0 : S.input) && O.preventDefault();
}, d = (O) => {
var S, x;
a("search", (x = (S = o.value) === null || S === void 0 ? void 0 : S.input) === null || x === void 0 ? void 0 : x.stateValue, O);
}, h = (O) => {
s.value || t.loading || d(O);
}, p = (O) => {
s.value = !0, a("compositionstart", O);
}, v = (O) => {
s.value = !1, a("compositionend", O);
}, {
prefixCls: g,
getPrefixCls: m,
direction: y,
size: b
} = It("input-search", t), _ = L(() => m("input", t.inputPrefixCls));
return () => {
var O, S, x, C;
const {
disabled: T,
loading: w,
addonAfter: P = (O = n.addonAfter) === null || O === void 0 ? void 0 : O.call(n),
suffix: $ = (S = n.suffix) === null || S === void 0 ? void 0 : S.call(n)
} = t, A = iCe(t, ["disabled", "loading", "addonAfter", "suffix"]);
let {
enterButton: D = (C = (x = n.enterButton) === null || x === void 0 ? void 0 : x.call(n)) !== null && C !== void 0 ? C : !1
} = t;
D = D || D === "";
const E = typeof D == "boolean" ? M(ix, null, null) : null, R = `${g.value}-button`, N = Array.isArray(D) ? D[0] : D;
let V;
const B = N.type && ZI(N.type) && N.type.__ANT_BUTTON;
if (B || N.tagName === "button")
V = Pn(N, I({
onMousedown: f,
onClick: d,
key: "enterButton"
}, B ? {
class: R,
size: b.value
} : {}), !1);
else {
const F = E && !D;
V = M(Xr, {
class: R,
type: D ? "primary" : void 0,
size: b.value,
disabled: T,
key: "enterButton",
onMousedown: f,
onClick: d,
loading: w,
icon: F ? E : null
}, {
default: () => [F ? null : E || D]
});
}
P && (V = [V, P]);
const W = ye(g.value, {
[`${g.value}-rtl`]: y.value === "rtl",
[`${g.value}-${b.value}`]: !!b.value,
[`${g.value}-with-button`]: !!D
}, r.class);
return M(Hn, j(j(j({
ref: o
}, or(A, ["onUpdate:value", "onSearch", "enterButton"])), r), {}, {
onPressEnter: h,
onCompositionstart: p,
onCompositionend: v,
size: b.value,
prefixCls: _.value,
addonAfter: V,
suffix: $,
onChange: c,
class: W,
disabled: T
}), n);
};
}
}), J5 = (t) => t != null && (Array.isArray(t) ? ss(t).length : !0);
function oCe(t) {
return J5(t.addonBefore) || J5(t.addonAfter);
}
const sCe = ["text", "input"], lCe = te({
compatConfig: {
MODE: 3
},
name: "ClearableLabeledInput",
inheritAttrs: !1,
props: {
prefixCls: String,
inputType: Y.oneOf(ru("text", "input")),
value: ha(),
defaultValue: ha(),
allowClear: {
type: Boolean,
default: void 0
},
element: ha(),
handleReset: Function,
disabled: {
type: Boolean,
default: void 0
},
direction: {
type: String
},
size: {
type: String
},
suffix: ha(),
prefix: ha(),
addonBefore: ha(),
addonAfter: ha(),
readonly: {
type: Boolean,
default: void 0
},
focused: {
type: Boolean,
default: void 0
},
bordered: {
type: Boolean,
default: !0
},
triggerFocus: {
type: Function
},
hidden: Boolean,
status: String,
hashId: String
},
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const i = ao.useInject(), a = (s) => {
const {
value: l,
disabled: u,
readonly: c,
handleReset: f,
suffix: d = n.suffix
} = t, h = !u && !c && l, p = `${s}-clear-icon`;
return M(ka, {
onClick: f,
onMousedown: (v) => v.preventDefault(),
class: ye({
[`${p}-hidden`]: !h,
[`${p}-has-suffix`]: !!d
}, p),
role: "button"
}, null);
}, o = (s, l) => {
const {
value: u,
allowClear: c,
direction: f,
bordered: d,
hidden: h,
status: p,
addonAfter: v = n.addonAfter,
addonBefore: g = n.addonBefore,
hashId: m
} = t, {
status: y,
hasFeedback: b
} = i;
if (!c)
return Pn(l, {
value: u,
disabled: t.disabled
});
const _ = ye(`${s}-affix-wrapper`, `${s}-affix-wrapper-textarea-with-clear-btn`, Ds(`${s}-affix-wrapper`, y0(y, p), b), {
[`${s}-affix-wrapper-rtl`]: f === "rtl",
[`${s}-affix-wrapper-borderless`]: !d,
// className will go to addon wrapper
[`${r.class}`]: !oCe({
addonAfter: v,
addonBefore: g
}) && r.class
}, m);
return M("span", {
class: _,
style: r.style,
hidden: h
}, [Pn(l, {
style: null,
value: u,
disabled: t.disabled
}), a(s)]);
};
return () => {
var s;
const {
prefixCls: l,
inputType: u,
element: c = (s = n.element) === null || s === void 0 ? void 0 : s.call(n)
} = t;
return u === sCe[0] ? o(l, c) : null;
};
}
}), uCe = `
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`, cCe = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], AC = {};
let ta;
function fCe(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
const n = t.getAttribute("id") || t.getAttribute("data-reactid") || t.getAttribute("name");
if (e && AC[n])
return AC[n];
const r = window.getComputedStyle(t), i = r.getPropertyValue("box-sizing") || r.getPropertyValue("-moz-box-sizing") || r.getPropertyValue("-webkit-box-sizing"), a = parseFloat(r.getPropertyValue("padding-bottom")) + parseFloat(r.getPropertyValue("padding-top")), o = parseFloat(r.getPropertyValue("border-bottom-width")) + parseFloat(r.getPropertyValue("border-top-width")), l = {
sizingStyle: cCe.map((u) => `${u}:${r.getPropertyValue(u)}`).join(";"),
paddingSize: a,
borderSize: o,
boxSizing: i
};
return e && n && (AC[n] = l), l;
}
function dCe(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
ta || (ta = document.createElement("textarea"), ta.setAttribute("tab-index", "-1"), ta.setAttribute("aria-hidden", "true"), document.body.appendChild(ta)), t.getAttribute("wrap") ? ta.setAttribute("wrap", t.getAttribute("wrap")) : ta.removeAttribute("wrap");
const {
paddingSize: i,
borderSize: a,
boxSizing: o,
sizingStyle: s
} = fCe(t, e);
ta.setAttribute("style", `${s};${uCe}`), ta.value = t.value || t.placeholder || "";
let l, u, c, f = ta.scrollHeight;
if (o === "border-box" ? f += a : o === "content-box" && (f -= i), n !== null || r !== null) {
ta.value = " ";
const h = ta.scrollHeight - i;
n !== null && (l = h * n, o === "border-box" && (l = l + i + a), f = Math.max(l, f)), r !== null && (u = h * r, o === "border-box" && (u = u + i + a), c = f > u ? "" : "hidden", f = Math.min(u, f));
}
const d = {
height: `${f}px`,
overflowY: c,
resize: "none"
};
return l && (d.minHeight = `${l}px`), u && (d.maxHeight = `${u}px`), d;
}
const EC = 0, MC = 1, IC = 2, hCe = te({
compatConfig: {
MODE: 3
},
name: "ResizableTextArea",
inheritAttrs: !1,
props: rY(),
setup(t, e) {
let {
attrs: n,
emit: r,
expose: i
} = e, a, o;
const s = U(), l = U({}), u = U(IC);
yt(() => {
xt.cancel(a), xt.cancel(o);
});
const c = () => {
try {
if (s.value && document.activeElement === s.value.input) {
const S = s.value.getSelectionStart(), x = s.value.getSelectionEnd(), C = s.value.getScrollTop();
s.value.setSelectionRange(S, x), s.value.setScrollTop(C);
}
} catch {
}
}, f = U(), d = U();
ht(() => {
const S = t.autoSize || t.autosize;
S ? (f.value = S.minRows, d.value = S.maxRows) : (f.value = void 0, d.value = void 0);
});
const h = L(() => !!(t.autoSize || t.autosize)), p = () => {
u.value = EC;
};
se([() => t.value, f, d, h], () => {
h.value && p();
}, {
immediate: !0
});
const v = U();
se([u, s], () => {
if (s.value)
if (u.value === EC)
u.value = MC;
else if (u.value === MC) {
const S = dCe(s.value.input, !1, f.value, d.value);
u.value = IC, v.value = S;
} else
c();
}, {
immediate: !0,
flush: "post"
});
const g = vn(), m = U(), y = () => {
xt.cancel(m.value);
}, b = (S) => {
u.value === IC && (r("resize", S), h.value && (y(), m.value = xt(() => {
p();
})));
};
yt(() => {
y();
}), i({
resizeTextarea: () => {
p();
},
textArea: L(() => {
var S;
return (S = s.value) === null || S === void 0 ? void 0 : S.input;
}),
instance: g
}), Yr(t.autosize === void 0, "Input.TextArea", "autosize is deprecated, please use autoSize instead.");
const O = () => {
const {
prefixCls: S,
disabled: x
} = t, C = or(t, ["prefixCls", "onPressEnter", "autoSize", "autosize", "defaultValue", "allowClear", "type", "maxlength", "valueModifiers"]), T = ye(S, n.class, {
[`${S}-disabled`]: x
}), w = h.value ? v.value : null, P = [n.style, l.value, w], $ = I(I(I({}, C), n), {
style: P,
class: T
});
return (u.value === EC || u.value === MC) && P.push({
overflowX: "hidden",
overflowY: "hidden"
}), $.autofocus || delete $.autofocus, $.rows === 0 && delete $.rows, M(bh, {
onResize: b,
disabled: !h.value
}, {
default: () => [M(PI, j(j({}, $), {}, {
ref: s,
tag: "textarea"
}), null)]
});
};
return () => O();
}
});
function iY(t, e) {
return [...t || ""].slice(0, e).join("");
}
function e3(t, e, n, r) {
let i = n;
return t ? i = iY(n, r) : [...e || ""].length < n.length && [...n || ""].length > r && (i = e), i;
}
const pCe = te({
compatConfig: {
MODE: 3
},
name: "ATextarea",
inheritAttrs: !1,
props: rY(),
setup(t, e) {
let {
attrs: n,
expose: r,
emit: i
} = e;
var a;
const o = ls(), s = ao.useInject(), l = L(() => y0(s.status, t.status)), u = ae((a = t.value) !== null && a !== void 0 ? a : t.defaultValue), c = ae(), f = ae(""), {
prefixCls: d,
size: h,
direction: p
} = It("input", t), [v, g] = uD(d), m = Jo(), y = L(() => t.showCount === "" || t.showCount || !1), b = L(() => Number(t.maxlength) > 0), _ = ae(!1), O = ae(), S = ae(0), x = (B) => {
_.value = !0, O.value = f.value, S.value = B.currentTarget.selectionStart, i("compositionstart", B);
}, C = (B) => {
var W;
_.value = !1;
let F = B.currentTarget.value;
if (b.value) {
const Q = S.value >= t.maxlength + 1 || S.value === ((W = O.value) === null || W === void 0 ? void 0 : W.length);
F = e3(Q, O.value, F, t.maxlength);
}
F !== f.value && ($(F), bg(B.currentTarget, B, E, F)), i("compositionend", B);
}, T = vn();
se(() => t.value, () => {
var B;
"value" in T.vnode.props, u.value = (B = t.value) !== null && B !== void 0 ? B : "";
});
const w = (B) => {
var W;
eY((W = c.value) === null || W === void 0 ? void 0 : W.textArea, B);
}, P = () => {
var B, W;
(W = (B = c.value) === null || B === void 0 ? void 0 : B.textArea) === null || W === void 0 || W.blur();
}, $ = (B, W) => {
u.value !== B && (t.value === void 0 ? u.value = B : Tt(() => {
var F, Q, Z;
c.value.textArea.value !== f.value && ((Z = (F = c.value) === null || F === void 0 ? void 0 : (Q = F.instance).update) === null || Z === void 0 || Z.call(Q));
}), Tt(() => {
W && W();
}));
}, A = (B) => {
B.keyCode === 13 && i("pressEnter", B), i("keydown", B);
}, D = (B) => {
const {
onBlur: W
} = t;
W == null || W(B), o.onFieldBlur();
}, E = (B) => {
i("update:value", B.target.value), i("change", B), i("input", B), o.onFieldChange();
}, R = (B) => {
bg(c.value.textArea, B, E), $("", () => {
w();
});
}, N = (B) => {
let W = B.target.value;
if (u.value !== W) {
if (b.value) {
const F = B.target, Q = F.selectionStart >= t.maxlength + 1 || F.selectionStart === W.length || !F.selectionStart;
W = e3(Q, f.value, W, t.maxlength);
}
bg(B.currentTarget, B, E, W), $(W);
}
}, V = () => {
var B, W;
const {
class: F
} = n, {
bordered: Q = !0
} = t, Z = I(I(I({}, or(t, ["allowClear"])), n), {
class: [{
[`${d.value}-borderless`]: !Q,
[`${F}`]: F && !y.value,
[`${d.value}-sm`]: h.value === "small",
[`${d.value}-lg`]: h.value === "large"
}, Ds(d.value, l.value), g.value],
disabled: m.value,
showCount: null,
prefixCls: d.value,
onInput: N,
onChange: N,
onBlur: D,
onKeydown: A,
onCompositionstart: x,
onCompositionend: C
});
return !((B = t.valueModifiers) === null || B === void 0) && B.lazy && delete Z.onInput, M(hCe, j(j({}, Z), {}, {
id: (W = Z == null ? void 0 : Z.id) !== null && W !== void 0 ? W : o.id.value,
ref: c,
maxlength: t.maxlength,
lazy: t.lazy
}), null);
};
return r({
focus: w,
blur: P,
resizableTextArea: c
}), ht(() => {
let B = Y2(u.value);
!_.value && b.value && (t.value === null || t.value === void 0) && (B = iY(B, t.maxlength)), f.value = B;
}), () => {
var B;
const {
maxlength: W,
bordered: F = !0,
hidden: Q
} = t, {
style: Z,
class: ne
} = n, ee = I(I(I({}, t), n), {
prefixCls: d.value,
inputType: "text",
handleReset: R,
direction: p.value,
bordered: F,
style: y.value ? void 0 : Z,
hashId: g.value,
disabled: (B = t.disabled) !== null && B !== void 0 ? B : m.value
});
let oe = M(lCe, j(j({}, ee), {}, {
value: f.value,
status: t.status
}), {
element: V
});
if (y.value || s.hasFeedback) {
const K = [...f.value].length;
let ie = "";
typeof y.value == "object" ? ie = y.value.formatter({
value: f.value,
count: K,
maxlength: W
}) : ie = `${K}${b.value ? ` / ${W}` : ""}`, oe = M("div", {
hidden: Q,
class: ye(`${d.value}-textarea`, {
[`${d.value}-textarea-rtl`]: p.value === "rtl",
[`${d.value}-textarea-show-count`]: y.value,
[`${d.value}-textarea-in-form-item`]: s.isFormItemInput
}, `${d.value}-textarea-show-count`, ne, g.value),
style: Z,
"data-count": typeof ie != "object" ? ie : void 0
}, [oe, s.hasFeedback && M("span", {
class: `${d.value}-textarea-suffix`
}, [s.feedbackIcon])]);
}
return v(oe);
};
}
});
var vCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" };
function t3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
gCe(t, i, n[i]);
});
}
return t;
}
function gCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var Tx = function(e, n) {
var r = t3({}, e, n.attrs);
return M(lt, t3({}, r, {
icon: vCe
}), null);
};
Tx.displayName = "EyeOutlined";
Tx.inheritAttrs = !1;
var mCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" };
function n3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
yCe(t, i, n[i]);
});
}
return t;
}
function yCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var bD = function(e, n) {
var r = n3({}, e, n.attrs);
return M(lt, n3({}, r, {
icon: mCe
}), null);
};
bD.displayName = "EyeInvisibleOutlined";
bD.inheritAttrs = !1;
var bCe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const _Ce = {
click: "onClick",
hover: "onMouseover"
}, OCe = (t) => t ? M(Tx, null, null) : M(bD, null, null), SCe = te({
compatConfig: {
MODE: 3
},
name: "AInputPassword",
inheritAttrs: !1,
props: I(I({}, Cx()), {
prefixCls: String,
inputPrefixCls: String,
action: {
type: String,
default: "click"
},
visibilityToggle: {
type: Boolean,
default: !0
},
visible: {
type: Boolean,
default: void 0
},
"onUpdate:visible": Function,
iconRender: Function
}),
setup(t, e) {
let {
slots: n,
attrs: r,
expose: i,
emit: a
} = e;
const o = ae(!1), s = () => {
const {
disabled: g
} = t;
g || (o.value = !o.value, a("update:visible", o.value));
};
ht(() => {
t.visible !== void 0 && (o.value = !!t.visible);
});
const l = ae();
i({
focus: () => {
var g;
(g = l.value) === null || g === void 0 || g.focus();
},
blur: () => {
var g;
(g = l.value) === null || g === void 0 || g.blur();
}
});
const f = (g) => {
const {
action: m,
iconRender: y = n.iconRender || OCe
} = t, b = _Ce[m] || "", _ = y(o.value), O = {
[b]: s,
class: `${g}-icon`,
key: "passwordIcon",
onMousedown: (S) => {
S.preventDefault();
},
onMouseup: (S) => {
S.preventDefault();
}
};
return Pn(Yi(_) ? _ : M("span", null, [_]), O);
}, {
prefixCls: d,
getPrefixCls: h
} = It("input-password", t), p = L(() => h("input", t.inputPrefixCls)), v = () => {
const {
size: g,
visibilityToggle: m
} = t, y = bCe(t, ["size", "visibilityToggle"]), b = m && f(d.value), _ = ye(d.value, r.class, {
[`${d.value}-${g}`]: !!g
}), O = I(I(I({}, or(y, ["suffix", "iconRender", "action"])), r), {
type: o.value ? "text" : "password",
class: _,
prefixCls: p.value,
suffix: b
});
return g && (O.size = g), M(Hn, j({
ref: l
}, O), n);
};
return () => v();
}
});
Hn.Group = rCe;
Hn.Search = aCe;
Hn.TextArea = pCe;
Hn.Password = SCe;
Hn.install = function(t) {
return t.component(Hn.name, Hn), t.component(Hn.Group.name, Hn.Group), t.component(Hn.Search.name, Hn.Search), t.component(Hn.TextArea.name, Hn.TextArea), t.component(Hn.Password.name, Hn.Password), t;
};
function Px() {
return {
keyboard: {
type: Boolean,
default: void 0
},
mask: {
type: Boolean,
default: void 0
},
afterClose: Function,
closable: {
type: Boolean,
default: void 0
},
maskClosable: {
type: Boolean,
default: void 0
},
visible: {
type: Boolean,
default: void 0
},
destroyOnClose: {
type: Boolean,
default: void 0
},
mousePosition: Y.shape({
x: Number,
y: Number
}).loose,
title: Y.any,
footer: Y.any,
transitionName: String,
maskTransitionName: String,
animation: Y.any,
maskAnimation: Y.any,
wrapStyle: {
type: Object,
default: void 0
},
bodyStyle: {
type: Object,
default: void 0
},
maskStyle: {
type: Object,
default: void 0
},
prefixCls: String,
wrapClassName: String,
rootClassName: String,
width: [String, Number],
height: [String, Number],
zIndex: Number,
bodyProps: Y.any,
maskProps: Y.any,
wrapProps: Y.any,
getContainer: Y.any,
dialogStyle: {
type: Object,
default: void 0
},
dialogClass: String,
closeIcon: Y.any,
forceRender: {
type: Boolean,
default: void 0
},
getOpenCount: Function,
// https://github.com/ant-design/ant-design/issues/19771
// https://github.com/react-component/dialog/issues/95
focusTriggerAfterClose: {
type: Boolean,
default: void 0
},
onClose: Function,
modalRender: Function
};
}
function r3(t, e, n) {
let r = e;
return !r && n && (r = `${t}-${n}`), r;
}
let i3 = -1;
function xCe() {
return i3 += 1, i3;
}
function a3(t, e) {
let n = t[`page${e ? "Y" : "X"}Offset`];
const r = `scroll${e ? "Top" : "Left"}`;
if (typeof n != "number") {
const i = t.document;
n = i.documentElement[r], typeof n != "number" && (n = i.body[r]);
}
return n;
}
function wCe(t) {
const e = t.getBoundingClientRect(), n = {
left: e.left,
top: e.top
}, r = t.ownerDocument, i = r.defaultView || r.parentWindow;
return n.left += a3(i), n.top += a3(i, !0), n;
}
const o3 = {
width: 0,
height: 0,
overflow: "hidden",
outline: "none"
}, CCe = te({
compatConfig: {
MODE: 3
},
name: "DialogContent",
inheritAttrs: !1,
props: I(I({}, Px()), {
motionName: String,
ariaId: String,
onVisibleChanged: Function,
onMousedown: Function,
onMouseup: Function
}),
setup(t, e) {
let {
expose: n,
slots: r,
attrs: i
} = e;
const a = U(), o = U(), s = U();
n({
focus: () => {
var d;
(d = a.value) === null || d === void 0 || d.focus();
},
changeActive: (d) => {
const {
activeElement: h
} = document;
d && h === o.value ? a.value.focus() : !d && h === a.value && o.value.focus();
}
});
const l = U(), u = L(() => {
const {
width: d,
height: h
} = t, p = {};
return d !== void 0 && (p.width = typeof d == "number" ? `${d}px` : d), h !== void 0 && (p.height = typeof h == "number" ? `${h}px` : h), l.value && (p.transformOrigin = l.value), p;
}), c = () => {
Tt(() => {
if (s.value) {
const d = wCe(s.value);
l.value = t.mousePosition ? `${t.mousePosition.x - d.left}px ${t.mousePosition.y - d.top}px` : "";
}
});
}, f = (d) => {
t.onVisibleChanged(d);
};
return () => {
var d, h, p, v;
const {
prefixCls: g,
footer: m = (d = r.footer) === null || d === void 0 ? void 0 : d.call(r),
title: y = (h = r.title) === null || h === void 0 ? void 0 : h.call(r),
ariaId: b,
closable: _,
closeIcon: O = (p = r.closeIcon) === null || p === void 0 ? void 0 : p.call(r),
onClose: S,
bodyStyle: x,
bodyProps: C,
onMousedown: T,
onMouseup: w,
visible: P,
modalRender: $ = r.modalRender,
destroyOnClose: A,
motionName: D
} = t;
let E;
m && (E = M("div", {
class: `${g}-footer`
}, [m]));
let R;
y && (R = M("div", {
class: `${g}-header`
}, [M("div", {
class: `${g}-title`,
id: b
}, [y])]));
let N;
_ && (N = M("button", {
type: "button",
onClick: S,
"aria-label": "Close",
class: `${g}-close`
}, [O || M("span", {
class: `${g}-close-x`
}, null)]));
const V = M("div", {
class: `${g}-content`
}, [N, R, M("div", j({
class: `${g}-body`,
style: x
}, C), [(v = r.default) === null || v === void 0 ? void 0 : v.call(r)]), E]), B = m0(D);
return M(ho, j(j({}, B), {}, {
onBeforeEnter: c,
onAfterEnter: () => f(!0),
onAfterLeave: () => f(!1)
}), {
default: () => [P || !A ? Oi(M("div", j(j({}, i), {}, {
ref: s,
key: "dialog-element",
role: "document",
style: [u.value, i.style],
class: [g, i.class],
onMousedown: T,
onMouseup: w
}), [M("div", {
tabindex: 0,
ref: a,
style: o3,
"aria-hidden": "true"
}, null), $ ? $({
originVNode: V
}) : V, M("div", {
tabindex: 0,
ref: o,
style: o3,
"aria-hidden": "true"
}, null)]), [[zs, P]]) : null]
});
};
}
}), TCe = te({
compatConfig: {
MODE: 3
},
name: "DialogMask",
props: {
prefixCls: String,
visible: Boolean,
motionName: String,
maskProps: Object
},
setup(t, e) {
return () => {
const {
prefixCls: n,
visible: r,
maskProps: i,
motionName: a
} = t, o = m0(a);
return M(ho, o, {
default: () => [Oi(M("div", j({
class: `${n}-mask`
}, i), null), [[zs, r]])]
});
};
}
}), s3 = te({
compatConfig: {
MODE: 3
},
name: "VcDialog",
inheritAttrs: !1,
props: sr(I(I({}, Px()), {
getOpenCount: Function,
scrollLocker: Object
}), {
mask: !0,
visible: !1,
keyboard: !0,
closable: !0,
maskClosable: !0,
destroyOnClose: !1,
prefixCls: "rc-dialog",
getOpenCount: () => null,
focusTriggerAfterClose: !0
}),
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const i = ae(), a = ae(), o = ae(), s = ae(t.visible), l = ae(`vcDialogTitle${xCe()}`), u = (m) => {
var y, b;
if (m)
$l(a.value, document.activeElement) || (i.value = document.activeElement, (y = o.value) === null || y === void 0 || y.focus());
else {
const _ = s.value;
if (s.value = !1, t.mask && i.value && t.focusTriggerAfterClose) {
try {
i.value.focus({
preventScroll: !0
});
} catch {
}
i.value = null;
}
_ && ((b = t.afterClose) === null || b === void 0 || b.call(t));
}
}, c = (m) => {
var y;
(y = t.onClose) === null || y === void 0 || y.call(t, m);
}, f = ae(!1), d = ae(), h = () => {
clearTimeout(d.value), f.value = !0;
}, p = () => {
d.value = setTimeout(() => {
f.value = !1;
});
}, v = (m) => {
if (!t.maskClosable) return null;
f.value ? f.value = !1 : a.value === m.target && c(m);
}, g = (m) => {
if (t.keyboard && m.keyCode === ge.ESC) {
m.stopPropagation(), c(m);
return;
}
t.visible && m.keyCode === ge.TAB && o.value.changeActive(!m.shiftKey);
};
return se(() => t.visible, () => {
t.visible && (s.value = !0);
}, {
flush: "post"
}), yt(() => {
var m;
clearTimeout(d.value), (m = t.scrollLocker) === null || m === void 0 || m.unLock();
}), ht(() => {
var m, y;
(m = t.scrollLocker) === null || m === void 0 || m.unLock(), s.value && ((y = t.scrollLocker) === null || y === void 0 || y.lock());
}), () => {
const {
prefixCls: m,
mask: y,
visible: b,
maskTransitionName: _,
maskAnimation: O,
zIndex: S,
wrapClassName: x,
rootClassName: C,
wrapStyle: T,
closable: w,
maskProps: P,
maskStyle: $,
transitionName: A,
animation: D,
wrapProps: E,
title: R = r.title
} = t, {
style: N,
class: V
} = n;
return M("div", j({
class: [`${m}-root`, C]
}, tx(t, {
data: !0
})), [M(TCe, {
prefixCls: m,
visible: y && b,
motionName: r3(m, _, O),
style: I({
zIndex: S
}, $),
maskProps: P
}, null), M("div", j({
tabIndex: -1,
onKeydown: g,
class: ye(`${m}-wrap`, x),
ref: a,
onClick: v,
role: "dialog",
"aria-labelledby": R ? l.value : null,
style: I(I({
zIndex: S
}, T), {
display: s.value ? null : "none"
})
}, E), [M(CCe, j(j({}, or(t, ["scrollLocker"])), {}, {
style: N,
class: V,
onMousedown: h,
onMouseup: p,
ref: o,
closable: w,
ariaId: l.value,
prefixCls: m,
visible: b,
onClose: c,
onVisibleChanged: u,
motionName: r3(m, A, D)
}), r)])]);
};
}
}), PCe = Px(), aY = te({
compatConfig: {
MODE: 3
},
name: "DialogWrap",
inheritAttrs: !1,
props: sr(PCe, {
visible: !1
}),
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const i = U(t.visible);
return TI({}, {
inTriggerContext: !1
}), se(() => t.visible, () => {
t.visible && (i.value = !0);
}, {
flush: "post"
}), () => {
const {
visible: a,
getContainer: o,
forceRender: s,
destroyOnClose: l = !1,
afterClose: u
} = t;
let c = I(I(I({}, t), n), {
ref: "_component",
key: "dialog"
});
return o === !1 ? M(s3, j(j({}, c), {}, {
getOpenCount: () => 2
}), r) : !s && l && !i.value ? null : M(MZ, {
autoLock: !0,
visible: a,
forceRender: s,
getContainer: o
}, {
default: (f) => (c = I(I(I({}, c), f), {
afterClose: () => {
u == null || u(), i.value = !1;
}
}), M(s3, c, r))
});
};
}
});
function $Ce(t) {
const e = U(null), n = tn(I({}, t)), r = U([]), i = (a) => {
e.value === null && (r.value = [], e.value = xt(() => {
let o;
r.value.forEach((s) => {
o = I(I({}, o), s);
}), I(n, o), e.value = null;
})), r.value.push(a);
};
return it(() => {
e.value && xt.cancel(e.value);
}), [n, i];
}
function l3(t, e, n, r) {
const i = e + n, a = (n - r) / 2;
if (n > r) {
if (e > 0)
return {
[t]: a
};
if (e < 0 && i < r)
return {
[t]: -a
};
} else if (e < 0 || i > r)
return {
[t]: e < 0 ? a : -a
};
return {};
}
function ACe(t, e, n, r) {
const {
width: i,
height: a
} = Rve();
let o = null;
return t <= i && e <= a ? o = {
x: 0,
y: 0
} : (t > i || e > a) && (o = I(I({}, l3("x", n, t, i)), l3("y", r, e, a))), o;
}
var ECe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const u3 = Symbol("previewGroupContext"), _D = {
provide: (t) => {
pt(u3, t);
},
inject: () => Ge(u3, {
isPreviewGroup: ae(!1),
previewUrls: L(() => /* @__PURE__ */ new Map()),
setPreviewUrls: () => {
},
current: U(null),
setCurrent: () => {
},
setShowPreview: () => {
},
setMousePosition: () => {
},
registerImage: null,
rootClassName: ""
})
}, MCe = () => ({
previewPrefixCls: String,
preview: {
type: [Boolean, Object],
default: !0
},
icons: {
type: Object,
default: () => ({})
}
}), ICe = te({
compatConfig: {
MODE: 3
},
name: "PreviewGroup",
inheritAttrs: !1,
props: MCe(),
setup(t, e) {
let {
slots: n
} = e;
const r = L(() => {
const O = {
visible: void 0,
onVisibleChange: () => {
},
getContainer: void 0,
current: 0
};
return typeof t.preview == "object" ? uY(t.preview, O) : O;
}), i = tn(/* @__PURE__ */ new Map()), a = U(), o = L(() => r.value.visible), s = L(() => r.value.getContainer), l = (O, S) => {
var x, C;
(C = (x = r.value).onVisibleChange) === null || C === void 0 || C.call(x, O, S);
}, [u, c] = Ah(!!o.value, {
value: o,
onChange: l
}), f = U(null), d = L(() => o.value !== void 0), h = L(() => Array.from(i.keys())), p = L(() => h.value[r.value.current]), v = L(() => new Map(Array.from(i).filter((O) => {
let [, {
canPreview: S
}] = O;
return !!S;
}).map((O) => {
let [S, {
url: x
}] = O;
return [S, x];
}))), g = function(O, S) {
let x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
i.set(O, {
url: S,
canPreview: x
});
}, m = (O) => {
a.value = O;
}, y = (O) => {
f.value = O;
}, b = function(O, S) {
let x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
const C = () => {
i.delete(O);
};
return i.set(O, {
url: S,
canPreview: x
}), C;
}, _ = (O) => {
O == null || O.stopPropagation(), c(!1), y(null);
};
return se(p, (O) => {
m(O);
}, {
immediate: !0,
flush: "post"
}), ht(() => {
u.value && d.value && m(p.value);
}, {
flush: "post"
}), _D.provide({
isPreviewGroup: ae(!0),
previewUrls: v,
setPreviewUrls: g,
current: a,
setCurrent: m,
setShowPreview: c,
setMousePosition: y,
registerImage: b
}), () => {
const O = ECe(r.value, []);
return M(wt, null, [n.default && n.default(), M(sY, j(j({}, O), {}, {
"ria-hidden": !u.value,
visible: u.value,
prefixCls: t.previewPrefixCls,
onClose: _,
mousePosition: f.value,
src: v.value.get(a.value),
icons: t.icons,
getContainer: s.value
}), null)]);
};
}
}), oY = ICe, ku = {
x: 0,
y: 0
}, DCe = I(I({}, Px()), {
src: String,
alt: String,
rootClassName: String,
icons: {
type: Object,
default: () => ({})
}
}), sY = te({
compatConfig: {
MODE: 3
},
name: "Preview",
inheritAttrs: !1,
props: DCe,
emits: ["close", "afterClose"],
setup(t, e) {
let {
emit: n,
attrs: r
} = e;
const {
rotateLeft: i,
rotateRight: a,
zoomIn: o,
zoomOut: s,
close: l,
left: u,
right: c,
flipX: f,
flipY: d
} = tn(t.icons), h = ae(1), p = ae(0), v = tn({
x: 1,
y: 1
}), [g, m] = $Ce(ku), y = () => n("close"), b = ae(), _ = tn({
originX: 0,
originY: 0,
deltaX: 0,
deltaY: 0
}), O = ae(!1), S = _D.inject(), {
previewUrls: x,
current: C,
isPreviewGroup: T,
setCurrent: w
} = S, P = L(() => x.value.size), $ = L(() => Array.from(x.value.keys())), A = L(() => $.value.indexOf(C.value)), D = L(() => T.value ? x.value.get(C.value) : t.src), E = L(() => T.value && P.value > 1), R = ae({
wheelDirection: 0
}), N = () => {
h.value = 1, p.value = 0, v.x = 1, v.y = 1, m(ku), n("afterClose");
}, V = (Se) => {
Se ? h.value += 0.5 : h.value++, m(ku);
}, B = (Se) => {
h.value > 1 && (Se ? h.value -= 0.5 : h.value--), m(ku);
}, W = () => {
p.value += 90;
}, F = () => {
p.value -= 90;
}, Q = () => {
v.x = -v.x;
}, Z = () => {
v.y = -v.y;
}, ne = (Se) => {
Se.preventDefault(), Se.stopPropagation(), A.value > 0 && w($.value[A.value - 1]);
}, ee = (Se) => {
Se.preventDefault(), Se.stopPropagation(), A.value < P.value - 1 && w($.value[A.value + 1]);
}, oe = ye({
[`${t.prefixCls}-moving`]: O.value
}), K = `${t.prefixCls}-operations-operation`, ie = `${t.prefixCls}-operations-icon`, X = [{
icon: l,
onClick: y,
type: "close"
}, {
icon: o,
onClick: () => V(),
type: "zoomIn"
}, {
icon: s,
onClick: () => B(),
type: "zoomOut",
disabled: L(() => h.value === 1)
}, {
icon: a,
onClick: W,
type: "rotateRight"
}, {
icon: i,
onClick: F,
type: "rotateLeft"
}, {
icon: f,
onClick: Q,
type: "flipX"
}, {
icon: d,
onClick: Z,
type: "flipY"
}], H = () => {
if (t.visible && O.value) {
const Se = b.value.offsetWidth * h.value, be = b.value.offsetHeight * h.value, {
left: he,
top: Te
} = IZ(b.value), ze = p.value % 180 !== 0;
O.value = !1;
const ut = ACe(ze ? be : Se, ze ? Se : be, he, Te);
ut && m(I({}, ut));
}
}, G = (Se) => {
Se.button === 0 && (Se.preventDefault(), Se.stopPropagation(), _.deltaX = Se.pageX - g.x, _.deltaY = Se.pageY - g.y, _.originX = g.x, _.originY = g.y, O.value = !0);
}, re = (Se) => {
t.visible && O.value && m({
x: Se.pageX - _.deltaX,
y: Se.pageY - _.deltaY
});
}, fe = (Se) => {
if (!t.visible) return;
Se.preventDefault();
const be = Se.deltaY;
R.value = {
wheelDirection: be
};
}, de = (Se) => {
!t.visible || !E.value || (Se.preventDefault(), Se.keyCode === ge.LEFT ? A.value > 0 && w($.value[A.value - 1]) : Se.keyCode === ge.RIGHT && A.value < P.value - 1 && w($.value[A.value + 1]));
}, Ee = () => {
t.visible && (h.value !== 1 && (h.value = 1), (g.x !== ku.x || g.y !== ku.y) && m(ku));
};
let $e = () => {
};
return it(() => {
se([() => t.visible, O], () => {
$e();
let Se, be;
const he = vr(window, "mouseup", H, !1), Te = vr(window, "mousemove", re, !1), ze = vr(window, "wheel", fe, {
passive: !1
}), ut = vr(window, "keydown", de, !1);
try {
window.top !== window.self && (Se = vr(window.top, "mouseup", H, !1), be = vr(window.top, "mousemove", re, !1));
} catch (ct) {
ff(!1, `[vc-image] ${ct}`);
}
$e = () => {
he.remove(), Te.remove(), ze.remove(), ut.remove(), Se && Se.remove(), be && be.remove();
};
}, {
flush: "post",
immediate: !0
}), se([R], () => {
const {
wheelDirection: Se
} = R.value;
Se > 0 ? B(!0) : Se < 0 && V(!0);
});
}), rl(() => {
$e();
}), () => {
const {
visible: Se,
prefixCls: be,
rootClassName: he
} = t;
return M(aY, j(j({}, r), {}, {
transitionName: t.transitionName,
maskTransitionName: t.maskTransitionName,
closable: !1,
keyboard: !0,
prefixCls: be,
onClose: y,
afterClose: N,
visible: Se,
wrapClassName: oe,
rootClassName: he,
getContainer: t.getContainer
}), {
default: () => [M("div", {
class: [`${t.prefixCls}-operations-wrapper`, he]
}, [M("ul", {
class: `${t.prefixCls}-operations`
}, [X.map((Te) => {
let {
icon: ze,
onClick: ut,
type: ct,
disabled: Dt
} = Te;
return M("li", {
class: ye(K, {
[`${t.prefixCls}-operations-operation-disabled`]: Dt && (Dt == null ? void 0 : Dt.value)
}),
onClick: ut,
key: ct
}, [Bs(ze, {
class: ie
})]);
})])]), M("div", {
class: `${t.prefixCls}-img-wrapper`,
style: {
transform: `translate3d(${g.x}px, ${g.y}px, 0)`
}
}, [M("img", {
onMousedown: G,
onDblclick: Ee,
ref: b,
class: `${t.prefixCls}-img`,
src: D.value,
alt: t.alt,
style: {
transform: `scale3d(${v.x * h.value}, ${v.y * h.value}, 1) rotate(${p.value}deg)`
}
}, null)]), E.value && M("div", {
class: ye(`${t.prefixCls}-switch-left`, {
[`${t.prefixCls}-switch-left-disabled`]: A.value <= 0
}),
onClick: ne
}, [u]), E.value && M("div", {
class: ye(`${t.prefixCls}-switch-right`, {
[`${t.prefixCls}-switch-right-disabled`]: A.value >= P.value - 1
}),
onClick: ee
}, [c])]
});
};
}
});
var RCe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const lY = () => ({
src: String,
wrapperClassName: String,
wrapperStyle: {
type: Object,
default: void 0
},
rootClassName: String,
prefixCls: String,
previewPrefixCls: String,
previewMask: {
type: [Boolean, Function],
default: void 0
},
placeholder: Y.any,
fallback: String,
preview: {
type: [Boolean, Object],
default: !0
},
onClick: {
type: Function
},
onError: {
type: Function
}
}), uY = (t, e) => {
const n = I({}, t);
return Object.keys(e).forEach((r) => {
t[r] === void 0 && (n[r] = e[r]);
}), n;
};
let kCe = 0;
const cY = te({
compatConfig: {
MODE: 3
},
name: "VcImage",
inheritAttrs: !1,
props: lY(),
emits: ["click", "error"],
setup(t, e) {
let {
attrs: n,
slots: r,
emit: i
} = e;
const a = L(() => t.prefixCls), o = L(() => `${a.value}-preview`), s = L(() => {
const V = {
visible: void 0,
onVisibleChange: () => {
},
getContainer: void 0
};
return typeof t.preview == "object" ? uY(t.preview, V) : V;
}), l = L(() => {
var V;
return (V = s.value.src) !== null && V !== void 0 ? V : t.src;
}), u = L(() => t.placeholder && t.placeholder !== !0 || r.placeholder), c = L(() => s.value.visible), f = L(() => s.value.getContainer), d = L(() => c.value !== void 0), h = (V, B) => {
var W, F;
(F = (W = s.value).onVisibleChange) === null || F === void 0 || F.call(W, V, B);
}, [p, v] = Ah(!!c.value, {
value: c,
onChange: h
}), g = U(u.value ? "loading" : "normal");
se(() => t.src, () => {
g.value = u.value ? "loading" : "normal";
});
const m = U(null), y = L(() => g.value === "error"), b = _D.inject(), {
isPreviewGroup: _,
setCurrent: O,
setShowPreview: S,
setMousePosition: x,
registerImage: C
} = b, T = U(kCe++), w = L(() => t.preview && !y.value), P = () => {
g.value = "normal";
}, $ = (V) => {
g.value = "error", i("error", V);
}, A = (V) => {
if (!d.value) {
const {
left: B,
top: W
} = IZ(V.target);
_.value ? (O(T.value), x({
x: B,
y: W
})) : m.value = {
x: B,
y: W
};
}
_.value ? S(!0) : v(!0), i("click", V);
}, D = () => {
v(!1), d.value || (m.value = null);
}, E = U(null);
se(() => E, () => {
g.value === "loading" && E.value.complete && (E.value.naturalWidth || E.value.naturalHeight) && P();
});
let R = () => {
};
it(() => {
se([l, w], () => {
if (R(), !_.value)
return () => {
};
R = C(T.value, l.value, w.value), w.value || R();
}, {
flush: "post",
immediate: !0
});
}), rl(() => {
R();
});
const N = (V) => Ibe(V) ? V + "px" : V;
return () => {
const {
prefixCls: V,
wrapperClassName: B,
fallback: W,
src: F,
placeholder: Q,
wrapperStyle: Z,
rootClassName: ne
} = t, {
width: ee,
height: oe,
crossorigin: K,
decoding: ie,
alt: X,
sizes: H,
srcset: G,
usemap: re,
class: fe,
style: de
} = n, Ee = s.value, {
icons: $e,
maskClassName: Se
} = Ee, be = RCe(Ee, ["icons", "maskClassName"]), he = ye(V, B, ne, {
[`${V}-error`]: y.value
}), Te = y.value && W ? W : l.value, ze = {
crossorigin: K,
decoding: ie,
alt: X,
sizes: H,
srcset: G,
usemap: re,
width: ee,
height: oe,
class: ye(`${V}-img`, {
[`${V}-img-placeholder`]: Q === !0
}, fe),
style: I({
height: N(oe)
}, de)
};
return M(wt, null, [M("div", {
class: he,
onClick: w.value ? A : (ut) => {
i("click", ut);
},
style: I({
width: N(ee),
height: N(oe)
}, Z)
}, [M("img", j(j(j({}, ze), y.value && W ? {
src: W
} : {
onLoad: P,
onError: $,
src: F
}), {}, {
ref: E
}), null), g.value === "loading" && M("div", {
"aria-hidden": "true",
class: `${V}-placeholder`
}, [Q || r.placeholder && r.placeholder()]), r.previewMask && w.value && M("div", {
class: [`${V}-mask`, Se]
}, [r.previewMask()])]), !_.value && w.value && M(sY, j(j({}, be), {}, {
"aria-hidden": !p.value,
visible: p.value,
prefixCls: o.value,
onClose: D,
mousePosition: m.value,
src: Te,
alt: X,
getContainer: f.value,
icons: $e,
rootClassName: ne
}), null)]);
};
}
});
cY.PreviewGroup = oY;
const LCe = cY;
var NCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" } }, { tag: "path", attrs: { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" } }] }, name: "rotate-left", theme: "outlined" };
function c3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
BCe(t, i, n[i]);
});
}
return t;
}
function BCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var OD = function(e, n) {
var r = c3({}, e, n.attrs);
return M(lt, c3({}, r, {
icon: NCe
}), null);
};
OD.displayName = "RotateLeftOutlined";
OD.inheritAttrs = !1;
var zCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" } }, { tag: "path", attrs: { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" } }] }, name: "rotate-right", theme: "outlined" };
function f3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
VCe(t, i, n[i]);
});
}
return t;
}
function VCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var SD = function(e, n) {
var r = f3({}, e, n.attrs);
return M(lt, f3({}, r, {
icon: zCe
}), null);
};
SD.displayName = "RotateRightOutlined";
SD.inheritAttrs = !1;
var FCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-in", theme: "outlined" };
function d3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
WCe(t, i, n[i]);
});
}
return t;
}
function WCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var xD = function(e, n) {
var r = d3({}, e, n.attrs);
return M(lt, d3({}, r, {
icon: FCe
}), null);
};
xD.displayName = "ZoomInOutlined";
xD.inheritAttrs = !1;
var QCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" } }] }, name: "zoom-out", theme: "outlined" };
function h3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
HCe(t, i, n[i]);
});
}
return t;
}
function HCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var wD = function(e, n) {
var r = h3({}, e, n.attrs);
return M(lt, h3({}, r, {
icon: QCe
}), null);
};
wD.displayName = "ZoomOutOutlined";
wD.inheritAttrs = !1;
var GCe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "swap", theme: "outlined" };
function p3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
jCe(t, i, n[i]);
});
}
return t;
}
function jCe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var Q1 = function(e, n) {
var r = p3({}, e, n.attrs);
return M(lt, p3({}, r, {
icon: GCe
}), null);
};
Q1.displayName = "SwapOutlined";
Q1.inheritAttrs = !1;
function v3(t) {
return {
position: t,
top: 0,
insetInlineEnd: 0,
bottom: 0,
insetInlineStart: 0
};
}
const fY = (t) => {
const {
componentCls: e
} = t;
return [{
[`${e}-root`]: {
[`${e}${t.antCls}-zoom-enter, ${e}${t.antCls}-zoom-appear`]: {
// reset scale avoid mousePosition bug
transform: "none",
opacity: 0,
animationDuration: t.motionDurationSlow,
// https://github.com/ant-design/ant-design/issues/11777
userSelect: "none"
},
[`${e}${t.antCls}-zoom-leave ${e}-content`]: {
pointerEvents: "none"
},
[`${e}-mask`]: I(I({}, v3("fixed")), {
zIndex: t.zIndexPopupBase,
height: "100%",
backgroundColor: t.colorBgMask,
[`${e}-hidden`]: {
display: "none"
}
}),
[`${e}-wrap`]: I(I({}, v3("fixed")), {
overflow: "auto",
outline: 0,
WebkitOverflowScrolling: "touch"
})
}
}, {
[`${e}-root`]: PU(t)
}];
}, ZCe = (t) => {
const {
componentCls: e
} = t;
return [
// ======================== Root =========================
{
[`${e}-root`]: {
[`${e}-wrap`]: {
zIndex: t.zIndexPopupBase,
position: "fixed",
inset: 0,
overflow: "auto",
outline: 0,
WebkitOverflowScrolling: "touch"
},
[`${e}-wrap-rtl`]: {
direction: "rtl"
},
[`${e}-centered`]: {
textAlign: "center",
"&::before": {
display: "inline-block",
width: 0,
height: "100%",
verticalAlign: "middle",
content: '""'
},
[e]: {
top: 0,
display: "inline-block",
paddingBottom: 0,
textAlign: "start",
verticalAlign: "middle"
}
},
[`@media (max-width: ${t.screenSMMax})`]: {
[e]: {
maxWidth: "calc(100vw - 16px)",
margin: `${t.marginXS} auto`
},
[`${e}-centered`]: {
[e]: {
flex: 1
}
}
}
}
},
// ======================== Modal ========================
{
[e]: I(I({}, nn(t)), {
pointerEvents: "none",
position: "relative",
top: 100,
width: "auto",
maxWidth: `calc(100vw - ${t.margin * 2}px)`,
margin: "0 auto",
paddingBottom: t.paddingLG,
[`${e}-title`]: {
margin: 0,
color: t.modalHeadingColor,
fontWeight: t.fontWeightStrong,
fontSize: t.modalHeaderTitleFontSize,
lineHeight: t.modalHeaderTitleLineHeight,
wordWrap: "break-word"
},
[`${e}-content`]: {
position: "relative",
backgroundColor: t.modalContentBg,
backgroundClip: "padding-box",
border: 0,
borderRadius: t.borderRadiusLG,
boxShadow: t.boxShadowSecondary,
pointerEvents: "auto",
padding: `${t.paddingMD}px ${t.paddingContentHorizontalLG}px`
},
[`${e}-close`]: I({
position: "absolute",
top: (t.modalHeaderCloseSize - t.modalCloseBtnSize) / 2,
insetInlineEnd: (t.modalHeaderCloseSize - t.modalCloseBtnSize) / 2,
zIndex: t.zIndexPopupBase + 10,
padding: 0,
color: t.modalCloseColor,
fontWeight: t.fontWeightStrong,
lineHeight: 1,
textDecoration: "none",
background: "transparent",
borderRadius: t.borderRadiusSM,
width: t.modalConfirmIconSize,
height: t.modalConfirmIconSize,
border: 0,
outline: 0,
cursor: "pointer",
transition: `color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,
"&-x": {
display: "block",
fontSize: t.fontSizeLG,
fontStyle: "normal",
lineHeight: `${t.modalCloseBtnSize}px`,
textAlign: "center",
textTransform: "none",
textRendering: "auto"
},
"&:hover": {
color: t.modalIconHoverColor,
backgroundColor: t.wireframe ? "transparent" : t.colorFillContent,
textDecoration: "none"
},
"&:active": {
backgroundColor: t.wireframe ? "transparent" : t.colorFillContentHover
}
}, WS(t)),
[`${e}-header`]: {
color: t.colorText,
background: t.modalHeaderBg,
borderRadius: `${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,
marginBottom: t.marginXS
},
[`${e}-body`]: {
fontSize: t.fontSize,
lineHeight: t.lineHeight,
wordWrap: "break-word"
},
[`${e}-footer`]: {
textAlign: "end",
background: t.modalFooterBg,
marginTop: t.marginSM,
[`${t.antCls}-btn + ${t.antCls}-btn:not(${t.antCls}-dropdown-trigger)`]: {
marginBottom: 0,
marginInlineStart: t.marginXS
}
},
[`${e}-open`]: {
overflow: "hidden"
}
})
},
// ======================== Pure =========================
{
[`${e}-pure-panel`]: {
top: "auto",
padding: 0,
display: "flex",
flexDirection: "column",
[`${e}-content,
${e}-body,
${e}-confirm-body-wrapper`]: {
display: "flex",
flexDirection: "column",
flex: "auto"
},
[`${e}-confirm-body`]: {
marginBottom: "auto"
}
}
}
];
}, UCe = (t) => {
const {
componentCls: e
} = t, n = `${e}-confirm`;
return {
[n]: {
"&-rtl": {
direction: "rtl"
},
[`${t.antCls}-modal-header`]: {
display: "none"
},
[`${n}-body-wrapper`]: I({}, S1()),
[`${n}-body`]: {
display: "flex",
flexWrap: "wrap",
alignItems: "center",
[`${n}-title`]: {
flex: "0 0 100%",
display: "block",
// create BFC to avoid
// https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
overflow: "hidden",
color: t.colorTextHeading,
fontWeight: t.fontWeightStrong,
fontSize: t.modalHeaderTitleFontSize,
lineHeight: t.modalHeaderTitleLineHeight,
[`+ ${n}-content`]: {
marginBlockStart: t.marginXS,
flexBasis: "100%",
maxWidth: `calc(100% - ${t.modalConfirmIconSize + t.marginSM}px)`
}
},
[`${n}-content`]: {
color: t.colorText,
fontSize: t.fontSize
},
[`> ${t.iconCls}`]: {
flex: "none",
marginInlineEnd: t.marginSM,
fontSize: t.modalConfirmIconSize,
[`+ ${n}-title`]: {
flex: 1
},
// `content` after `icon` should set marginLeft
[`+ ${n}-title + ${n}-content`]: {
marginInlineStart: t.modalConfirmIconSize + t.marginSM
}
}
},
[`${n}-btns`]: {
textAlign: "end",
marginTop: t.marginSM,
[`${t.antCls}-btn + ${t.antCls}-btn`]: {
marginBottom: 0,
marginInlineStart: t.marginXS
}
}
},
[`${n}-error ${n}-body > ${t.iconCls}`]: {
color: t.colorError
},
[`${n}-warning ${n}-body > ${t.iconCls},
${n}-confirm ${n}-body > ${t.iconCls}`]: {
color: t.colorWarning
},
[`${n}-info ${n}-body > ${t.iconCls}`]: {
color: t.colorInfo
},
[`${n}-success ${n}-body > ${t.iconCls}`]: {
color: t.colorSuccess
},
// https://github.com/ant-design/ant-design/issues/37329
[`${e}-zoom-leave ${e}-btns`]: {
pointerEvents: "none"
}
};
}, XCe = (t) => {
const {
componentCls: e
} = t;
return {
[`${e}-root`]: {
[`${e}-wrap-rtl`]: {
direction: "rtl",
[`${e}-confirm-body`]: {
direction: "rtl"
}
}
}
};
}, YCe = (t) => {
const {
componentCls: e,
antCls: n
} = t, r = `${e}-confirm`;
return {
[e]: {
[`${e}-content`]: {
padding: 0
},
[`${e}-header`]: {
padding: t.modalHeaderPadding,
borderBottom: `${t.modalHeaderBorderWidth}px ${t.modalHeaderBorderStyle} ${t.modalHeaderBorderColorSplit}`,
marginBottom: 0
},
[`${e}-body`]: {
padding: t.modalBodyPadding
},
[`${e}-footer`]: {
padding: `${t.modalFooterPaddingVertical}px ${t.modalFooterPaddingHorizontal}px`,
borderTop: `${t.modalFooterBorderWidth}px ${t.modalFooterBorderStyle} ${t.modalFooterBorderColorSplit}`,
borderRadius: `0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`,
marginTop: 0
}
},
[r]: {
[`${n}-modal-body`]: {
padding: `${t.padding * 2}px ${t.padding * 2}px ${t.paddingLG}px`
},
[`${r}-body`]: {
[`> ${t.iconCls}`]: {
marginInlineEnd: t.margin,
// `content` after `icon` should set marginLeft
[`+ ${r}-title + ${r}-content`]: {
marginInlineStart: t.modalConfirmIconSize + t.margin
}
}
},
[`${r}-btns`]: {
marginTop: t.marginLG
}
}
};
}, qCe = Sn("Modal", (t) => {
const e = t.padding, n = t.fontSizeHeading5, r = t.lineHeightHeading5, i = Bt(t, {
modalBodyPadding: t.paddingLG,
modalHeaderBg: t.colorBgElevated,
modalHeaderPadding: `${e}px ${t.paddingLG}px`,
modalHeaderBorderWidth: t.lineWidth,
modalHeaderBorderStyle: t.lineType,
modalHeaderTitleLineHeight: r,
modalHeaderTitleFontSize: n,
modalHeaderBorderColorSplit: t.colorSplit,
modalHeaderCloseSize: r * n + e * 2,
modalContentBg: t.colorBgElevated,
modalHeadingColor: t.colorTextHeading,
modalCloseColor: t.colorTextDescription,
modalFooterBg: "transparent",
modalFooterBorderColorSplit: t.colorSplit,
modalFooterBorderStyle: t.lineType,
modalFooterPaddingVertical: t.paddingXS,
modalFooterPaddingHorizontal: t.padding,
modalFooterBorderWidth: t.lineWidth,
modalConfirmTitleFontSize: t.fontSizeLG,
modalIconHoverColor: t.colorIconHover,
modalConfirmIconSize: t.fontSize * t.lineHeight,
modalCloseBtnSize: t.controlHeightLG * 0.55
});
return [ZCe(i), UCe(i), XCe(i), fY(i), t.wireframe && YCe(i), fx(i, "zoom")];
}), q2 = (t) => ({
position: t || "absolute",
inset: 0
}), KCe = (t) => {
const {
iconCls: e,
motionDurationSlow: n,
paddingXXS: r,
marginXXS: i,
prefixCls: a
} = t;
return {
position: "absolute",
inset: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
color: "#fff",
background: new en("#000").setAlpha(0.5).toRgbString(),
cursor: "pointer",
opacity: 0,
transition: `opacity ${n}`,
[`.${a}-mask-info`]: I(I({}, Sh), {
padding: `0 ${r}px`,
[e]: {
marginInlineEnd: i,
svg: {
verticalAlign: "baseline"
}
}
})
};
}, JCe = (t) => {
const {
previewCls: e,
modalMaskBg: n,
paddingSM: r,
previewOperationColorDisabled: i,
motionDurationSlow: a
} = t, o = new en(n).setAlpha(0.1), s = o.clone().setAlpha(0.2);
return {
[`${e}-operations`]: I(I({}, nn(t)), {
display: "flex",
flexDirection: "row-reverse",
alignItems: "center",
color: t.previewOperationColor,
listStyle: "none",
background: o.toRgbString(),
pointerEvents: "auto",
"&-operation": {
marginInlineStart: r,
padding: r,
cursor: "pointer",
transition: `all ${a}`,
userSelect: "none",
"&:hover": {
background: s.toRgbString()
},
"&-disabled": {
color: i,
pointerEvents: "none"
},
"&:last-of-type": {
marginInlineStart: 0
}
},
"&-progress": {
position: "absolute",
left: {
_skip_check_: !0,
value: "50%"
},
transform: "translateX(-50%)"
},
"&-icon": {
fontSize: t.previewOperationSize
}
})
};
}, eTe = (t) => {
const {
modalMaskBg: e,
iconCls: n,
previewOperationColorDisabled: r,
previewCls: i,
zIndexPopup: a,
motionDurationSlow: o
} = t, s = new en(e).setAlpha(0.1), l = s.clone().setAlpha(0.2);
return {
[`${i}-switch-left, ${i}-switch-right`]: {
position: "fixed",
insetBlockStart: "50%",
zIndex: a + 1,
display: "flex",
alignItems: "center",
justifyContent: "center",
width: t.imagePreviewSwitchSize,
height: t.imagePreviewSwitchSize,
marginTop: -t.imagePreviewSwitchSize / 2,
color: t.previewOperationColor,
background: s.toRgbString(),
borderRadius: "50%",
transform: "translateY(-50%)",
cursor: "pointer",
transition: `all ${o}`,
pointerEvents: "auto",
userSelect: "none",
"&:hover": {
background: l.toRgbString()
},
"&-disabled": {
"&, &:hover": {
color: r,
background: "transparent",
cursor: "not-allowed",
[`> ${n}`]: {
cursor: "not-allowed"
}
}
},
[`> ${n}`]: {
fontSize: t.previewOperationSize
}
},
[`${i}-switch-left`]: {
insetInlineStart: t.marginSM
},
[`${i}-switch-right`]: {
insetInlineEnd: t.marginSM
}
};
}, tTe = (t) => {
const {
motionEaseOut: e,
previewCls: n,
motionDurationSlow: r,
componentCls: i
} = t;
return [
{
[`${i}-preview-root`]: {
[n]: {
height: "100%",
textAlign: "center",
pointerEvents: "none"
},
[`${n}-body`]: I(I({}, q2()), {
overflow: "hidden"
}),
[`${n}-img`]: {
maxWidth: "100%",
maxHeight: "100%",
verticalAlign: "middle",
transform: "scale3d(1, 1, 1)",
cursor: "grab",
transition: `transform ${r} ${e} 0s`,
userSelect: "none",
pointerEvents: "auto",
"&-wrapper": I(I({}, q2()), {
transition: `transform ${r} ${e} 0s`,
// https://github.com/ant-design/ant-design/issues/39913
// TailwindCSS will reset img default style.
// Let's set back.
display: "flex",
justifyContent: "center",
alignItems: "center",
"&::before": {
display: "inline-block",
width: 1,
height: "50%",
marginInlineEnd: -1,
content: '""'
}
})
},
[`${n}-moving`]: {
[`${n}-preview-img`]: {
cursor: "grabbing",
"&-wrapper": {
transitionDuration: "0s"
}
}
}
}
},
// Override
{
[`${i}-preview-root`]: {
[`${n}-wrap`]: {
zIndex: t.zIndexPopup
}
}
},
// Preview operations & switch
{
[`${i}-preview-operations-wrapper`]: {
position: "fixed",
insetBlockStart: 0,
insetInlineEnd: 0,
zIndex: t.zIndexPopup + 1,
width: "100%"
},
"&": [JCe(t), eTe(t)]
}
];
}, nTe = (t) => {
const {
componentCls: e
} = t;
return {
// ============================== image ==============================
[e]: {
position: "relative",
display: "inline-block",
[`${e}-img`]: {
width: "100%",
height: "auto",
verticalAlign: "middle"
},
[`${e}-img-placeholder`]: {
backgroundColor: t.colorBgContainerDisabled,
backgroundImage: "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",
backgroundRepeat: "no-repeat",
backgroundPosition: "center center",
backgroundSize: "30%"
},
[`${e}-mask`]: I({}, KCe(t)),
[`${e}-mask:hover`]: {
opacity: 1
},
[`${e}-placeholder`]: I({}, q2())
}
};
}, rTe = (t) => {
const {
previewCls: e
} = t;
return {
[`${e}-root`]: fx(t, "zoom"),
"&": PU(t, !0)
};
}, dY = Sn("Image", (t) => {
const e = `${t.componentCls}-preview`, n = Bt(t, {
previewCls: e,
modalMaskBg: new en("#000").setAlpha(0.45).toRgbString(),
imagePreviewSwitchSize: t.controlHeightLG
});
return [nTe(n), tTe(n), fY(Bt(n, {
componentCls: e
})), rTe(n)];
}, (t) => ({
zIndexPopup: t.zIndexPopupBase + 80,
previewOperationColor: new en(t.colorTextLightSolid).toRgbString(),
previewOperationColorDisabled: new en(t.colorTextLightSolid).setAlpha(0.25).toRgbString(),
previewOperationSize: t.fontSizeIcon * 1.5
// FIXME: fontSizeIconLG
})), hY = {
rotateLeft: M(OD, null, null),
rotateRight: M(SD, null, null),
zoomIn: M(xD, null, null),
zoomOut: M(wD, null, null),
close: M(ol, null, null),
left: M(cD, null, null),
right: M(gx, null, null),
flipX: M(Q1, null, null),
flipY: M(Q1, {
rotate: 90
}, null)
}, iTe = () => ({
previewPrefixCls: String,
preview: ha()
}), aTe = te({
compatConfig: {
MODE: 3
},
name: "AImagePreviewGroup",
inheritAttrs: !1,
props: iTe(),
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const {
prefixCls: i,
rootPrefixCls: a
} = It("image", t), o = L(() => `${i.value}-preview`), [s, l] = dY(i), u = L(() => {
const {
preview: c
} = t;
if (c === !1)
return c;
const f = typeof c == "object" ? c : {};
return I(I({}, f), {
rootClassName: l.value,
transitionName: ts(a.value, "zoom", f.transitionName),
maskTransitionName: ts(a.value, "fade", f.maskTransitionName)
});
});
return () => s(M(oY, j(j({}, I(I({}, n), t)), {}, {
preview: u.value,
icons: hY,
previewPrefixCls: o.value
}), r));
}
}), oTe = aTe, Al = te({
name: "AImage",
inheritAttrs: !1,
props: lY(),
setup(t, e) {
let {
slots: n,
attrs: r
} = e;
const {
prefixCls: i,
rootPrefixCls: a,
configProvider: o
} = It("image", t), [s, l] = dY(i), u = L(() => {
const {
preview: c
} = t;
if (c === !1)
return c;
const f = typeof c == "object" ? c : {};
return I(I({
icons: hY
}, f), {
transitionName: ts(a.value, "zoom", f.transitionName),
maskTransitionName: ts(a.value, "fade", f.maskTransitionName)
});
});
return () => {
var c, f;
const d = ((f = (c = o.locale) === null || c === void 0 ? void 0 : c.value) === null || f === void 0 ? void 0 : f.Image) || Vs.Image, h = () => M("div", {
class: `${i.value}-mask-info`
}, [M(Tx, null, null), d == null ? void 0 : d.preview]), {
previewMask: p = n.previewMask || h
} = t;
return s(M(LCe, j(j({}, I(I(I({}, r), t), {
prefixCls: i.value
})), {}, {
preview: u.value,
rootClassName: ye(t.rootClassName, l.value)
}), I(I({}, n), {
previewMask: typeof p == "function" ? p : null
})));
};
}
});
Al.PreviewGroup = oTe;
Al.install = function(t) {
return t.component(Al.name, Al), t.component(Al.PreviewGroup.name, Al.PreviewGroup), t;
};
var sTe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" };
function g3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
lTe(t, i, n[i]);
});
}
return t;
}
function lTe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var CD = function(e, n) {
var r = g3({}, e, n.attrs);
return M(lt, g3({}, r, {
icon: sTe
}), null);
};
CD.displayName = "UpOutlined";
CD.inheritAttrs = !1;
function K2() {
return typeof BigInt == "function";
}
function _g(t) {
let e = t.trim(), n = e.startsWith("-");
n && (e = e.slice(1)), e = e.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""), e.startsWith(".") && (e = `0${e}`);
const r = e || "0", i = r.split("."), a = i[0] || "0", o = i[1] || "0";
a === "0" && o === "0" && (n = !1);
const s = n ? "-" : "";
return {
negative: n,
negativeStr: s,
trimStr: r,
integerStr: a,
decimalStr: o,
fullStr: `${s}${r}`
};
}
function TD(t) {
const e = String(t);
return !Number.isNaN(Number(e)) && e.includes("e");
}
function fm(t) {
const e = String(t);
if (TD(t)) {
let n = Number(e.slice(e.indexOf("e-") + 2));
const r = e.match(/\.(\d+)/);
return r != null && r[1] && (n += r[1].length), n;
}
return e.includes(".") && $D(e) ? e.length - e.indexOf(".") - 1 : 0;
}
function PD(t) {
let e = String(t);
if (TD(t)) {
if (t > Number.MAX_SAFE_INTEGER)
return String(K2() ? BigInt(t).toString() : Number.MAX_SAFE_INTEGER);
if (t < Number.MIN_SAFE_INTEGER)
return String(K2() ? BigInt(t).toString() : Number.MIN_SAFE_INTEGER);
e = t.toFixed(fm(e));
}
return _g(e).fullStr;
}
function $D(t) {
return typeof t == "number" ? !Number.isNaN(t) : t ? (
// Normal type: 11.28
/^\s*-?\d+(\.\d+)?\s*$/.test(t) || // Pre-number: 1.
/^\s*-?\d+\.\s*$/.test(t) || // Post-number: .1
/^\s*-?\.\d+\s*$/.test(t)
) : !1;
}
function pY(t) {
return !t && t !== 0 && !Number.isNaN(t) || !String(t).trim();
}
class Oc {
constructor(e) {
if (this.origin = "", pY(e)) {
this.empty = !0;
return;
}
this.origin = String(e), this.number = Number(e);
}
negate() {
return new Oc(-this.toNumber());
}
add(e) {
if (this.isInvalidate())
return new Oc(e);
const n = Number(e);
if (Number.isNaN(n))
return this;
const r = this.number + n;
if (r > Number.MAX_SAFE_INTEGER)
return new Oc(Number.MAX_SAFE_INTEGER);
if (r < Number.MIN_SAFE_INTEGER)
return new Oc(Number.MIN_SAFE_INTEGER);
const i = Math.max(fm(this.number), fm(n));
return new Oc(r.toFixed(i));
}
isEmpty() {
return this.empty;
}
isNaN() {
return Number.isNaN(this.number);
}
isInvalidate() {
return this.isEmpty() || this.isNaN();
}
equals(e) {
return this.toNumber() === (e == null ? void 0 : e.toNumber());
}
lessEquals(e) {
return this.add(e.negate().toString()).toNumber() <= 0;
}
toNumber() {
return this.number;
}
toString() {
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : PD(this.number) : this.origin;
}
}
class zd {
constructor(e) {
if (this.origin = "", pY(e)) {
this.empty = !0;
return;
}
if (this.origin = String(e), e === "-" || Number.isNaN(e)) {
this.nan = !0;
return;
}
let n = e;
if (TD(n) && (n = Number(n)), n = typeof n == "string" ? n : PD(n), $D(n)) {
const r = _g(n);
this.negative = r.negative;
const i = r.trimStr.split(".");
this.integer = BigInt(i[0]);
const a = i[1] || "0";
this.decimal = BigInt(a), this.decimalLen = a.length;
} else
this.nan = !0;
}
getMark() {
return this.negative ? "-" : "";
}
getIntegerStr() {
return this.integer.toString();
}
getDecimalStr() {
return this.decimal.toString().padStart(this.decimalLen, "0");
}
/**
* Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
* This is used for add function only.
*/
alignDecimal(e) {
const n = `${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e, "0")}`;
return BigInt(n);
}
negate() {
const e = new zd(this.toString());
return e.negative = !e.negative, e;
}
add(e) {
if (this.isInvalidate())
return new zd(e);
const n = new zd(e);
if (n.isInvalidate())
return this;
const r = Math.max(this.getDecimalStr().length, n.getDecimalStr().length), i = this.alignDecimal(r), a = n.alignDecimal(r), o = (i + a).toString(), {
negativeStr: s,
trimStr: l
} = _g(o), u = `${s}${l.padStart(r + 1, "0")}`;
return new zd(`${u.slice(0, -r)}.${u.slice(-r)}`);
}
isEmpty() {
return this.empty;
}
isNaN() {
return this.nan;
}
isInvalidate() {
return this.isEmpty() || this.isNaN();
}
equals(e) {
return this.toString() === (e == null ? void 0 : e.toString());
}
lessEquals(e) {
return this.add(e.negate().toString()).toNumber() <= 0;
}
toNumber() {
return this.isNaN() ? NaN : Number(this.toString());
}
toString() {
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) ? this.isInvalidate() ? "" : _g(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr : this.origin;
}
}
function Io(t) {
return K2() ? new zd(t) : new Oc(t);
}
function J2(t, e, n) {
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
if (t === "")
return "";
const {
negativeStr: i,
integerStr: a,
decimalStr: o
} = _g(t), s = `${e}${o}`, l = `${i}${a}`;
if (n >= 0) {
const u = Number(o[n]);
if (u >= 5 && !r) {
const c = Io(t).add(`${i}0.${"0".repeat(n)}${10 - u}`);
return J2(c.toString(), e, n, r);
}
return n === 0 ? l : `${l}${e}${o.padEnd(n, "0").slice(0, n)}`;
}
return s === ".0" ? l : `${l}${s}`;
}
const uTe = 200, cTe = 600, fTe = te({
compatConfig: {
MODE: 3
},
name: "StepHandler",
inheritAttrs: !1,
props: {
prefixCls: String,
upDisabled: Boolean,
downDisabled: Boolean,
onStep: tt()
},
slots: Object,
setup(t, e) {
let {
slots: n,
emit: r
} = e;
const i = U(), a = (s, l) => {
s.preventDefault(), r("step", l);
function u() {
r("step", l), i.value = setTimeout(u, uTe);
}
i.value = setTimeout(u, cTe);
}, o = () => {
clearTimeout(i.value);
};
return yt(() => {
o();
}), () => {
if (EI())
return null;
const {
prefixCls: s,
upDisabled: l,
downDisabled: u
} = t, c = `${s}-handler`, f = ye(c, `${c}-up`, {
[`${c}-up-disabled`]: l
}), d = ye(c, `${c}-down`, {
[`${c}-down-disabled`]: u
}), h = {
unselectable: "on",
role: "button",
onMouseup: o,
onMouseleave: o
}, {
upNode: p,
downNode: v
} = n;
return M("div", {
class: `${c}-wrap`
}, [M("span", j(j({}, h), {}, {
onMousedown: (g) => {
a(g, !0);
},
"aria-label": "Increase Value",
"aria-disabled": l,
class: f
}), [(p == null ? void 0 : p()) || M("span", {
unselectable: "on",
class: `${s}-handler-up-inner`
}, null)]), M("span", j(j({}, h), {}, {
onMousedown: (g) => {
a(g, !1);
},
"aria-label": "Decrease Value",
"aria-disabled": u,
class: d
}), [(v == null ? void 0 : v()) || M("span", {
unselectable: "on",
class: `${s}-handler-down-inner`
}, null)])]);
};
}
});
function dTe(t, e) {
const n = U(null);
function r() {
try {
const {
selectionStart: a,
selectionEnd: o,
value: s
} = t.value, l = s.substring(0, a), u = s.substring(o);
n.value = {
start: a,
end: o,
value: s,
beforeTxt: l,
afterTxt: u
};
} catch {
}
}
function i() {
if (t.value && n.value && e.value)
try {
const {
value: a
} = t.value, {
beforeTxt: o,
afterTxt: s,
start: l
} = n.value;
let u = a.length;
if (a.endsWith(s))
u = a.length - n.value.afterTxt.length;
else if (a.startsWith(o))
u = o.length;
else {
const c = o[l - 1], f = a.indexOf(c, l - 1);
f !== -1 && (u = f + 1);
}
t.value.setSelectionRange(u, u);
} catch (a) {
ff(!1, `Something warning of cursor restore. Please fire issue about this: ${a.message}`);
}
}
return [r, i];
}
const hTe = () => {
const t = ae(0), e = () => {
xt.cancel(t.value);
};
return yt(() => {
e();
}), (n) => {
e(), t.value = xt(() => {
n();
});
};
};
var pTe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const m3 = (t, e) => t || e.isEmpty() ? e.toString() : e.toNumber(), y3 = (t) => {
const e = Io(t);
return e.isInvalidate() ? null : e;
}, vY = () => ({
/** value will show as string */
stringMode: nt(),
defaultValue: gn([String, Number]),
value: gn([String, Number]),
prefixCls: hn(),
min: gn([String, Number]),
max: gn([String, Number]),
step: gn([String, Number], 1),
tabindex: Number,
controls: nt(!0),
readonly: nt(),
disabled: nt(),
autofocus: nt(),
keyboard: nt(!0),
/** Parse display value to validate number */
parser: tt(),
/** Transform `value` to display value show in input */
formatter: tt(),
/** Syntactic sugar of `formatter`. Config precision of display. */
precision: Number,
/** Syntactic sugar of `formatter`. Config decimal separator of display. */
decimalSeparator: String,
onInput: tt(),
onChange: tt(),
onPressEnter: tt(),
onStep: tt(),
onBlur: tt(),
onFocus: tt()
}), vTe = te({
compatConfig: {
MODE: 3
},
name: "InnerInputNumber",
inheritAttrs: !1,
props: I(I({}, vY()), {
lazy: Boolean
}),
slots: Object,
setup(t, e) {
let {
attrs: n,
slots: r,
emit: i,
expose: a
} = e;
const o = ae(), s = ae(!1), l = ae(!1), u = ae(!1), c = ae(Io(t.value));
function f(F) {
t.value === void 0 && (c.value = F);
}
const d = (F, Q) => {
if (!Q)
return t.precision >= 0 ? t.precision : Math.max(fm(F), fm(t.step));
}, h = (F) => {
const Q = String(F);
if (t.parser)
return t.parser(Q);
let Z = Q;
return t.decimalSeparator && (Z = Z.replace(t.decimalSeparator, ".")), Z.replace(/[^\w.-]+/g, "");
}, p = ae(""), v = (F, Q) => {
if (t.formatter)
return t.formatter(F, {
userTyping: Q,
input: String(p.value)
});
let Z = typeof F == "number" ? PD(F) : F;
if (!Q) {
const ne = d(Z, Q);
if ($D(Z) && (t.decimalSeparator || ne >= 0)) {
const ee = t.decimalSeparator || ".";
Z = J2(Z, ee, ne);
}
}
return Z;
}, g = (() => {
const F = t.value;
return c.value.isInvalidate() && ["string", "number"].includes(typeof F) ? Number.isNaN(F) ? "" : F : v(c.value.toString(), !1);
})();
p.value = g;
function m(F, Q) {
p.value = v(
// Invalidate number is sometime passed by external control, we should let it go
// Otherwise is controlled by internal interactive logic which check by userTyping
// You can ref 'show limited value when input is not focused' test for more info.
F.isInvalidate() ? F.toString(!1) : F.toString(!Q),
Q
);
}
const y = L(() => y3(t.max)), b = L(() => y3(t.min)), _ = L(() => !y.value || !c.value || c.value.isInvalidate() ? !1 : y.value.lessEquals(c.value)), O = L(() => !b.value || !c.value || c.value.isInvalidate() ? !1 : c.value.lessEquals(b.value)), [S, x] = dTe(o, s), C = (F) => y.value && !F.lessEquals(y.value) ? y.value : b.value && !b.value.lessEquals(F) ? b.value : null, T = (F) => !C(F), w = (F, Q) => {
var Z;
let ne = F, ee = T(ne) || ne.isEmpty();
if (!ne.isEmpty() && !Q && (ne = C(ne) || ne, ee = !0), !t.readonly && !t.disabled && ee) {
const oe = ne.toString(), K = d(oe, Q);
return K >= 0 && (ne = Io(J2(oe, ".", K))), ne.equals(c.value) || (f(ne), (Z = t.onChange) === null || Z === void 0 || Z.call(t, ne.isEmpty() ? null : m3(t.stringMode, ne)), t.value === void 0 && m(ne, Q)), ne;
}
return c.value;
}, P = hTe(), $ = (F) => {
var Q;
if (S(), p.value = F, !u.value) {
const Z = h(F), ne = Io(Z);
ne.isNaN() || w(ne, !0);
}
(Q = t.onInput) === null || Q === void 0 || Q.call(t, F), P(() => {
let Z = F;
t.parser || (Z = F.replace(/。/g, ".")), Z !== F && $(Z);
});
}, A = () => {
u.value = !0;
}, D = () => {
u.value = !1, $(o.value.value);
}, E = (F) => {
$(F.target.value);
}, R = (F) => {
var Q, Z;
if (F && _.value || !F && O.value)
return;
l.value = !1;
let ne = Io(t.step);
F || (ne = ne.negate());
const ee = (c.value || Io(0)).add(ne.toString()), oe = w(ee, !1);
(Q = t.onStep) === null || Q === void 0 || Q.call(t, m3(t.stringMode, oe), {
offset: t.step,
type: F ? "up" : "down"
}), (Z = o.value) === null || Z === void 0 || Z.focus();
}, N = (F) => {
const Q = Io(h(p.value));
let Z = Q;
Q.isNaN() ? Z = c.value : Z = w(Q, F), t.value !== void 0 ? m(c.value, !1) : Z.isNaN() || m(Z, !1);
}, V = (F) => {
var Q;
const {
which: Z
} = F;
l.value = !0, Z === ge.ENTER && (u.value || (l.value = !1), N(!1), (Q = t.onPressEnter) === null || Q === void 0 || Q.call(t, F)), t.keyboard !== !1 && !u.value && [ge.UP, ge.DOWN].includes(Z) && (R(ge.UP === Z), F.preventDefault());
}, B = () => {
l.value = !1;
}, W = (F) => {
N(!1), s.value = !1, l.value = !1, i("blur", F);
};
return se(() => t.precision, () => {
c.value.isInvalidate() || m(c.value, !1);
}, {
flush: "post"
}), se(() => t.value, () => {
const F = Io(t.value);
c.value = F;
const Q = Io(h(p.value));
(!F.equals(Q) || !l.value || t.formatter) && m(F, l.value);
}, {
flush: "post"
}), se(p, () => {
t.formatter && x();
}, {
flush: "post"
}), se(() => t.disabled, (F) => {
F && (s.value = !1);
}), a({
focus: () => {
var F;
(F = o.value) === null || F === void 0 || F.focus();
},
blur: () => {
var F;
(F = o.value) === null || F === void 0 || F.blur();
}
}), () => {
const F = I(I({}, n), t), {
prefixCls: Q = "rc-input-number",
min: Z,
max: ne,
step: ee = 1,
defaultValue: oe,
value: K,
disabled: ie,
readonly: X,
keyboard: H,
controls: G = !0,
autofocus: re,
stringMode: fe,
parser: de,
formatter: Ee,
precision: $e,
decimalSeparator: Se,
onChange: be,
onInput: he,
onPressEnter: Te,
onStep: ze,
lazy: ut,
class: ct,
style: Dt
} = F, ve = pTe(F, ["prefixCls", "min", "max", "step", "defaultValue", "value", "disabled", "readonly", "keyboard", "controls", "autofocus", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "lazy", "class", "style"]), {
upHandler: Xe,
downHandler: Rt
} = r, An = `${Q}-input`, sn = {};
return ut ? sn.onChange = E : sn.onInput = E, M("div", {
class: ye(Q, ct, {
[`${Q}-focused`]: s.value,
[`${Q}-disabled`]: ie,
[`${Q}-readonly`]: X,
[`${Q}-not-a-number`]: c.value.isNaN(),
[`${Q}-out-of-range`]: !c.value.isInvalidate() && !T(c.value)
}),
style: Dt,
onKeydown: V,
onKeyup: B
}, [G && M(fTe, {
prefixCls: Q,
upDisabled: _.value,
downDisabled: O.value,
onStep: R
}, {
upNode: Xe,
downNode: Rt
}), M("div", {
class: `${An}-wrap`
}, [M("input", j(j(j({
autofocus: re,
autocomplete: "off",
role: "spinbutton",
"aria-valuemin": Z,
"aria-valuemax": ne,
"aria-valuenow": c.value.isInvalidate() ? null : c.value.toString(),
step: ee
}, ve), {}, {
ref: o,
class: An,
value: p.value,
disabled: ie,
readonly: X,
onFocus: (Ar) => {
s.value = !0, i("focus", Ar);
}
}, sn), {}, {
onBlur: W,
onCompositionstart: A,
onCompositionend: D
}), null)])]);
};
}
});
function DC(t) {
return t != null;
}
const gTe = (t) => {
const {
componentCls: e,
lineWidth: n,
lineType: r,
colorBorder: i,
borderRadius: a,
fontSizeLG: o,
controlHeightLG: s,
controlHeightSM: l,
colorError: u,
inputPaddingHorizontalSM: c,
colorTextDescription: f,
motionDurationMid: d,
colorPrimary: h,
controlHeight: p,
inputPaddingHorizontal: v,
colorBgContainer: g,
colorTextDisabled: m,
borderRadiusSM: y,
borderRadiusLG: b,
controlWidth: _,
handleVisible: O
} = t;
return [
{
[e]: I(I(I(I({}, nn(t)), bx(t)), yx(t, e)), {
display: "inline-block",
width: _,
margin: 0,
padding: 0,
border: `${n}px ${r} ${i}`,
borderRadius: a,
"&-rtl": {
direction: "rtl",
[`${e}-input`]: {
direction: "rtl"
}
},
"&-lg": {
padding: 0,
fontSize: o,
borderRadius: b,
[`input${e}-input`]: {
height: s - 2 * n
}
},
"&-sm": {
padding: 0,
borderRadius: y,
[`input${e}-input`]: {
height: l - 2 * n,
padding: `0 ${c}px`
}
},
"&:hover": I({}, _0(t)),
"&-focused": I({}, z1(t)),
"&-disabled": I(I({}, aX(t)), {
[`${e}-input`]: {
cursor: "not-allowed"
}
}),
// ===================== Out Of Range =====================
"&-out-of-range": {
input: {
color: u
}
},
// Style for input-group: input with label, with button or dropdown...
"&-group": I(I(I({}, nn(t)), lX(t)), {
"&-wrapper": {
display: "inline-block",
textAlign: "start",
verticalAlign: "top",
[`${e}-affix-wrapper`]: {
width: "100%"
},
// Size
"&-lg": {
[`${e}-group-addon`]: {
borderRadius: b
}
},
"&-sm": {
[`${e}-group-addon`]: {
borderRadius: y
}
}
}
}),
[e]: {
"&-input": I(I({
width: "100%",
height: p - 2 * n,
padding: `0 ${v}px`,
textAlign: "start",
backgroundColor: "transparent",
border: 0,
borderRadius: a,
outline: 0,
transition: `all ${d} linear`,
appearance: "textfield",
color: t.colorText,
fontSize: "inherit",
verticalAlign: "top"
}, iX(t.colorTextPlaceholder)), {
'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button': {
margin: 0,
/* stylelint-disable-next-line property-no-vendor-prefix */
webkitAppearance: "none",
appearance: "none"
}
})
}
})
},
// Handler
{
[e]: {
[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]: {
opacity: 1
},
[`${e}-handler-wrap`]: {
position: "absolute",
insetBlockStart: 0,
insetInlineEnd: 0,
width: t.handleWidth,
height: "100%",
background: g,
borderStartStartRadius: 0,
borderStartEndRadius: a,
borderEndEndRadius: a,
borderEndStartRadius: 0,
opacity: O === !0 ? 1 : 0,
display: "flex",
flexDirection: "column",
alignItems: "stretch",
transition: `opacity ${d} linear ${d}`,
// Fix input number inside Menu makes icon too large
// We arise the selector priority by nest selector here
// https://github.com/ant-design/ant-design/issues/14367
[`${e}-handler`]: {
display: "flex",
alignItems: "center",
justifyContent: "center",
flex: "auto",
height: "40%",
[`
${e}-handler-up-inner,
${e}-handler-down-inner
`]: {
marginInlineEnd: 0,
fontSize: t.handleFontSize
}
}
},
[`${e}-handler`]: {
height: "50%",
overflow: "hidden",
color: f,
fontWeight: "bold",
lineHeight: 0,
textAlign: "center",
cursor: "pointer",
borderInlineStart: `${n}px ${r} ${i}`,
transition: `all ${d} linear`,
"&:active": {
background: t.colorFillAlter
},
// Hover
"&:hover": {
height: "60%",
[`
${e}-handler-up-inner,
${e}-handler-down-inner
`]: {
color: h
}
},
"&-up-inner, &-down-inner": I(I({}, up()), {
color: f,
transition: `all ${d} linear`,
userSelect: "none"
})
},
[`${e}-handler-up`]: {
borderStartEndRadius: a
},
[`${e}-handler-down`]: {
borderBlockStart: `${n}px ${r} ${i}`,
borderEndEndRadius: a
},
// Disabled
"&-disabled, &-readonly": {
[`${e}-handler-wrap`]: {
display: "none"
}
},
[`
${e}-handler-up-disabled,
${e}-handler-down-disabled
`]: {
cursor: "not-allowed"
},
[`
${e}-handler-up-disabled:hover &-handler-up-inner,
${e}-handler-down-disabled:hover &-handler-down-inner
`]: {
color: m
}
}
},
// Border-less
{
[`${e}-borderless`]: {
borderColor: "transparent",
boxShadow: "none",
[`${e}-handler-down`]: {
borderBlockStartWidth: 0
}
}
}
];
}, mTe = (t) => {
const {
componentCls: e,
inputPaddingHorizontal: n,
inputAffixPadding: r,
controlWidth: i,
borderRadiusLG: a,
borderRadiusSM: o
} = t;
return {
[`${e}-affix-wrapper`]: I(I(I({}, bx(t)), yx(t, `${e}-affix-wrapper`)), {
// or number handler will cover form status
position: "relative",
display: "inline-flex",
width: i,
padding: 0,
paddingInlineStart: n,
"&-lg": {
borderRadius: a
},
"&-sm": {
borderRadius: o
},
[`&:not(${e}-affix-wrapper-disabled):hover`]: I(I({}, _0(t)), {
zIndex: 1
}),
"&-focused, &:focus": {
zIndex: 1
},
"&-disabled": {
[`${e}[disabled]`]: {
background: "transparent"
}
},
[`> div${e}`]: {
width: "100%",
border: "none",
outline: "none",
[`&${e}-focused`]: {
boxShadow: "none !important"
}
},
[`input${e}-input`]: {
padding: 0
},
"&::before": {
width: 0,
visibility: "hidden",
content: '"\\a0"'
},
[`${e}-handler-wrap`]: {
zIndex: 2
},
[e]: {
"&-prefix, &-suffix": {
display: "flex",
flex: "none",
alignItems: "center",
pointerEvents: "none"
},
"&-prefix": {
marginInlineEnd: r
},
"&-suffix": {
position: "absolute",
insetBlockStart: 0,
insetInlineEnd: 0,
zIndex: 1,
height: "100%",
marginInlineEnd: n,
marginInlineStart: r
}
}
})
};
}, yTe = Sn("InputNumber", (t) => {
const e = uX(t);
return [
gTe(e),
mTe(e),
// =====================================================
// == Space Compact ==
// =====================================================
dx(e)
];
}, (t) => ({
controlWidth: 90,
handleWidth: t.controlHeightSM - t.lineWidth * 2,
handleFontSize: t.fontSize / 2,
handleVisible: "auto"
}));
var bTe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const b3 = vY(), _Te = () => I(I({}, b3), {
size: hn(),
bordered: nt(!0),
placeholder: String,
name: String,
id: String,
type: String,
addonBefore: Y.any,
addonAfter: Y.any,
prefix: Y.any,
"onUpdate:value": b3.onChange,
valueModifiers: Object,
status: hn()
}), RC = te({
compatConfig: {
MODE: 3
},
name: "AInputNumber",
inheritAttrs: !1,
props: _Te(),
// emits: ['focus', 'blur', 'change', 'input', 'update:value'],
slots: Object,
setup(t, e) {
let {
emit: n,
expose: r,
attrs: i,
slots: a
} = e;
var o;
const s = ls(), l = ao.useInject(), u = L(() => y0(l.status, t.status)), {
prefixCls: c,
size: f,
direction: d,
disabled: h
} = It("input-number", t), {
compactSize: p,
compactItemClassnames: v
} = ux(c, d), g = Jo(), m = L(() => {
var A;
return (A = h.value) !== null && A !== void 0 ? A : g.value;
}), [y, b] = yTe(c), _ = L(() => p.value || f.value), O = ae((o = t.value) !== null && o !== void 0 ? o : t.defaultValue), S = ae(!1);
se(() => t.value, () => {
O.value = t.value;
});
const x = ae(null), C = () => {
var A;
(A = x.value) === null || A === void 0 || A.focus();
};
r({
focus: C,
blur: () => {
var A;
(A = x.value) === null || A === void 0 || A.blur();
}
});
const w = (A) => {
t.value === void 0 && (O.value = A), n("update:value", A), n("change", A), s.onFieldChange();
}, P = (A) => {
S.value = !1, n("blur", A), s.onFieldBlur();
}, $ = (A) => {
S.value = !0, n("focus", A);
};
return () => {
var A, D, E, R;
const {
hasFeedback: N,
isFormItemInput: V,
feedbackIcon: B
} = l, W = (A = t.id) !== null && A !== void 0 ? A : s.id.value, F = I(I(I({}, i), t), {
id: W,
disabled: m.value
}), {
class: Q,
bordered: Z,
readonly: ne,
style: ee,
addonBefore: oe = (D = a.addonBefore) === null || D === void 0 ? void 0 : D.call(a),
addonAfter: K = (E = a.addonAfter) === null || E === void 0 ? void 0 : E.call(a),
prefix: ie = (R = a.prefix) === null || R === void 0 ? void 0 : R.call(a),
valueModifiers: X = {}
} = F, H = bTe(F, ["class", "bordered", "readonly", "style", "addonBefore", "addonAfter", "prefix", "valueModifiers"]), G = c.value, re = ye({
[`${G}-lg`]: _.value === "large",
[`${G}-sm`]: _.value === "small",
[`${G}-rtl`]: d.value === "rtl",
[`${G}-readonly`]: ne,
[`${G}-borderless`]: !Z,
[`${G}-in-form-item`]: V
}, Ds(G, u.value), Q, v.value, b.value);
let fe = M(vTe, j(j({}, or(H, ["size", "defaultValue"])), {}, {
ref: x,
lazy: !!X.lazy,
value: O.value,
class: re,
prefixCls: G,
readonly: ne,
onChange: w,
onBlur: P,
onFocus: $
}), {
upHandler: a.upIcon ? () => M("span", {
class: `${G}-handler-up-inner`
}, [a.upIcon()]) : () => M(CD, {
class: `${G}-handler-up-inner`
}, null),
downHandler: a.downIcon ? () => M("span", {
class: `${G}-handler-down-inner`
}, [a.downIcon()]) : () => M(rx, {
class: `${G}-handler-down-inner`
}, null)
});
const de = DC(oe) || DC(K), Ee = DC(ie);
if (Ee || N) {
const $e = ye(`${G}-affix-wrapper`, Ds(`${G}-affix-wrapper`, u.value, N), {
[`${G}-affix-wrapper-focused`]: S.value,
[`${G}-affix-wrapper-disabled`]: m.value,
[`${G}-affix-wrapper-sm`]: _.value === "small",
[`${G}-affix-wrapper-lg`]: _.value === "large",
[`${G}-affix-wrapper-rtl`]: d.value === "rtl",
[`${G}-affix-wrapper-readonly`]: ne,
[`${G}-affix-wrapper-borderless`]: !Z,
// className will go to addon wrapper
[`${Q}`]: !de && Q
}, b.value);
fe = M("div", {
class: $e,
style: ee,
onClick: C
}, [Ee && M("span", {
class: `${G}-prefix`
}, [ie]), fe, N && M("span", {
class: `${G}-suffix`
}, [B])]);
}
if (de) {
const $e = `${G}-group`, Se = `${$e}-addon`, be = oe ? M("div", {
class: Se
}, [oe]) : null, he = K ? M("div", {
class: Se
}, [K]) : null, Te = ye(`${G}-wrapper`, $e, {
[`${$e}-rtl`]: d.value === "rtl"
}, b.value), ze = ye(`${G}-group-wrapper`, {
[`${G}-group-wrapper-sm`]: _.value === "small",
[`${G}-group-wrapper-lg`]: _.value === "large",
[`${G}-group-wrapper-rtl`]: d.value === "rtl"
}, Ds(`${c}-group-wrapper`, u.value, N), Q, b.value);
fe = M("div", {
class: ze,
style: ee
}, [M("div", {
class: Te
}, [be && M(I1, null, {
default: () => [M(A1, null, {
default: () => [be]
})]
}), fe, he && M(I1, null, {
default: () => [M(A1, null, {
default: () => [he]
})]
})])]);
}
return y(Pn(fe, {
style: ee
}));
};
}
}), S0 = I(RC, {
install: (t) => (t.component(RC.name, RC), t)
});
function OTe(t, e, n) {
var r = n || {}, i = r.noTrailing, a = i === void 0 ? !1 : i, o = r.noLeading, s = o === void 0 ? !1 : o, l = r.debounceMode, u = l === void 0 ? void 0 : l, c, f = !1, d = 0;
function h() {
c && clearTimeout(c);
}
function p(g) {
var m = g || {}, y = m.upcomingOnly, b = y === void 0 ? !1 : y;
h(), f = !b;
}
function v() {
for (var g = arguments.length, m = new Array(g), y = 0; y < g; y++)
m[y] = arguments[y];
var b = this, _ = Date.now() - d;
if (f)
return;
function O() {
d = Date.now(), e.apply(b, m);
}
function S() {
c = void 0;
}
!s && u && !c && O(), h(), u === void 0 && _ > t ? s ? (d = Date.now(), a || (c = setTimeout(u ? S : O, t))) : O() : a !== !0 && (c = setTimeout(u ? S : O, u === void 0 ? t - _ : t));
}
return v.cancel = p, v;
}
function STe(t, e, n) {
var r = {}, i = r.atBegin, a = i === void 0 ? !1 : i;
return OTe(t, e, {
debounceMode: a !== !1
});
}
const xTe = new Ot("antSpinMove", {
to: {
opacity: 1
}
}), wTe = new Ot("antRotate", {
to: {
transform: "rotate(405deg)"
}
}), CTe = (t) => ({
[`${t.componentCls}`]: I(I({}, nn(t)), {
position: "absolute",
display: "none",
color: t.colorPrimary,
textAlign: "center",
verticalAlign: "middle",
opacity: 0,
transition: `transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,
"&-spinning": {
position: "static",
display: "inline-block",
opacity: 1
},
"&-nested-loading": {
position: "relative",
[`> div > ${t.componentCls}`]: {
position: "absolute",
top: 0,
insetInlineStart: 0,
zIndex: 4,
display: "block",
width: "100%",
height: "100%",
maxHeight: t.contentHeight,
[`${t.componentCls}-dot`]: {
position: "absolute",
top: "50%",
insetInlineStart: "50%",
margin: -t.spinDotSize / 2
},
[`${t.componentCls}-text`]: {
position: "absolute",
top: "50%",
width: "100%",
paddingTop: (t.spinDotSize - t.fontSize) / 2 + 2,
textShadow: `0 1px 2px ${t.colorBgContainer}`
// FIXME: shadow
},
[`&${t.componentCls}-show-text ${t.componentCls}-dot`]: {
marginTop: -(t.spinDotSize / 2) - 10
},
"&-sm": {
[`${t.componentCls}-dot`]: {
margin: -t.spinDotSizeSM / 2
},
[`${t.componentCls}-text`]: {
paddingTop: (t.spinDotSizeSM - t.fontSize) / 2 + 2
},
[`&${t.componentCls}-show-text ${t.componentCls}-dot`]: {
marginTop: -(t.spinDotSizeSM / 2) - 10
}
},
"&-lg": {
[`${t.componentCls}-dot`]: {
margin: -(t.spinDotSizeLG / 2)
},
[`${t.componentCls}-text`]: {
paddingTop: (t.spinDotSizeLG - t.fontSize) / 2 + 2
},
[`&${t.componentCls}-show-text ${t.componentCls}-dot`]: {
marginTop: -(t.spinDotSizeLG / 2) - 10
}
}
},
[`${t.componentCls}-container`]: {
position: "relative",
transition: `opacity ${t.motionDurationSlow}`,
"&::after": {
position: "absolute",
top: 0,
insetInlineEnd: 0,
bottom: 0,
insetInlineStart: 0,
zIndex: 10,
width: "100%",
height: "100%",
background: t.colorBgContainer,
opacity: 0,
transition: `all ${t.motionDurationSlow}`,
content: '""',
pointerEvents: "none"
}
},
[`${t.componentCls}-blur`]: {
clear: "both",
opacity: 0.5,
userSelect: "none",
pointerEvents: "none",
"&::after": {
opacity: 0.4,
pointerEvents: "auto"
}
}
},
// tip
// ------------------------------
"&-tip": {
color: t.spinDotDefault
},
// dots
// ------------------------------
[`${t.componentCls}-dot`]: {
position: "relative",
display: "inline-block",
fontSize: t.spinDotSize,
width: "1em",
height: "1em",
"&-item": {
position: "absolute",
display: "block",
width: (t.spinDotSize - t.marginXXS / 2) / 2,
height: (t.spinDotSize - t.marginXXS / 2) / 2,
backgroundColor: t.colorPrimary,
borderRadius: "100%",
transform: "scale(0.75)",
transformOrigin: "50% 50%",
opacity: 0.3,
animationName: xTe,
animationDuration: "1s",
animationIterationCount: "infinite",
animationTimingFunction: "linear",
animationDirection: "alternate",
"&:nth-child(1)": {
top: 0,
insetInlineStart: 0
},
"&:nth-child(2)": {
top: 0,
insetInlineEnd: 0,
animationDelay: "0.4s"
},
"&:nth-child(3)": {
insetInlineEnd: 0,
bottom: 0,
animationDelay: "0.8s"
},
"&:nth-child(4)": {
bottom: 0,
insetInlineStart: 0,
animationDelay: "1.2s"
}
},
"&-spin": {
transform: "rotate(45deg)",
animationName: wTe,
animationDuration: "1.2s",
animationIterationCount: "infinite",
animationTimingFunction: "linear"
}
},
// Sizes
// ------------------------------
// small
[`&-sm ${t.componentCls}-dot`]: {
fontSize: t.spinDotSizeSM,
i: {
width: (t.spinDotSizeSM - t.marginXXS / 2) / 2,
height: (t.spinDotSizeSM - t.marginXXS / 2) / 2
}
},
// large
[`&-lg ${t.componentCls}-dot`]: {
fontSize: t.spinDotSizeLG,
i: {
width: (t.spinDotSizeLG - t.marginXXS) / 2,
height: (t.spinDotSizeLG - t.marginXXS) / 2
}
},
[`&${t.componentCls}-show-text ${t.componentCls}-text`]: {
display: "block"
}
})
}), TTe = Sn("Spin", (t) => {
const e = Bt(t, {
spinDotDefault: t.colorTextDescription,
spinDotSize: t.controlHeightLG / 2,
spinDotSizeSM: t.controlHeightLG * 0.35,
spinDotSizeLG: t.controlHeight
});
return [CTe(e)];
}, {
contentHeight: 400
});
var PTe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const $Te = () => ({
prefixCls: String,
spinning: {
type: Boolean,
default: void 0
},
size: String,
wrapperClassName: String,
tip: Y.any,
delay: Number,
indicator: Y.any
});
let I_ = null;
function ATe(t, e) {
return !!t && !!e && !isNaN(Number(e));
}
function ETe(t) {
const e = t.indicator;
I_ = typeof e == "function" ? e : () => M(e, null, null);
}
const Og = te({
compatConfig: {
MODE: 3
},
name: "ASpin",
inheritAttrs: !1,
props: sr($Te(), {
size: "default",
spinning: !0,
wrapperClassName: ""
}),
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const {
prefixCls: i,
size: a,
direction: o
} = It("spin", t), [s, l] = TTe(i), u = ae(t.spinning && !ATe(t.spinning, t.delay));
let c;
return se([() => t.spinning, () => t.delay], () => {
c == null || c.cancel(), c = STe(t.delay, () => {
u.value = t.spinning;
}), c == null || c();
}, {
immediate: !0,
flush: "post"
}), yt(() => {
c == null || c.cancel();
}), () => {
var f, d;
const {
class: h
} = n, p = PTe(n, ["class"]), {
tip: v = (f = r.tip) === null || f === void 0 ? void 0 : f.call(r)
} = t, g = (d = r.default) === null || d === void 0 ? void 0 : d.call(r), m = {
[l.value]: !0,
[i.value]: !0,
[`${i.value}-sm`]: a.value === "small",
[`${i.value}-lg`]: a.value === "large",
[`${i.value}-spinning`]: u.value,
[`${i.value}-show-text`]: !!v,
[`${i.value}-rtl`]: o.value === "rtl",
[h]: !!h
};
function y(_) {
const O = `${_}-dot`;
let S = RS(r, t, "indicator");
return S === null ? null : (Array.isArray(S) && (S = S.length === 1 ? S[0] : S), nu(S) ? Bs(S, {
class: O
}) : I_ && nu(I_()) ? Bs(I_(), {
class: O
}) : M("span", {
class: `${O} ${_}-dot-spin`
}, [M("i", {
class: `${_}-dot-item`
}, null), M("i", {
class: `${_}-dot-item`
}, null), M("i", {
class: `${_}-dot-item`
}, null), M("i", {
class: `${_}-dot-item`
}, null)]));
}
const b = M("div", j(j({}, p), {}, {
class: m,
"aria-live": "polite",
"aria-busy": u.value
}), [y(i.value), v ? M("div", {
class: `${i.value}-text`
}, [v]) : null]);
if (g && ss(g).length) {
const _ = {
[`${i.value}-container`]: !0,
[`${i.value}-blur`]: u.value
};
return s(M("div", {
class: [`${i.value}-nested-loading`, t.wrapperClassName, l.value]
}, [u.value && M("div", {
key: "loading"
}, [b]), M("div", {
class: _,
key: "container"
}, [g])]));
}
return s(b);
};
}
});
Og.setDefaultIndicator = ETe;
Og.install = function(t) {
return t.component(Og.name, Og), t;
};
var MTe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
let eA;
const ITe = (t) => {
eA = {
x: t.pageX,
y: t.pageY
}, setTimeout(() => eA = null, 100);
};
gX() && vr(document.documentElement, "click", ITe, !0);
const DTe = () => ({
prefixCls: String,
/** @deprecated Please use `open` instead. */
visible: {
type: Boolean,
default: void 0
},
open: {
type: Boolean,
default: void 0
},
confirmLoading: {
type: Boolean,
default: void 0
},
title: Y.any,
closable: {
type: Boolean,
default: void 0
},
closeIcon: Y.any,
onOk: Function,
onCancel: Function,
"onUpdate:visible": Function,
"onUpdate:open": Function,
onChange: Function,
afterClose: Function,
centered: {
type: Boolean,
default: void 0
},
width: [String, Number],
footer: Y.any,
okText: Y.any,
okType: String,
cancelText: Y.any,
icon: Y.any,
maskClosable: {
type: Boolean,
default: void 0
},
forceRender: {
type: Boolean,
default: void 0
},
okButtonProps: $t(),
cancelButtonProps: $t(),
destroyOnClose: {
type: Boolean,
default: void 0
},
wrapClassName: String,
maskTransitionName: String,
transitionName: String,
getContainer: {
type: [String, Function, Boolean, Object],
default: void 0
},
zIndex: Number,
bodyStyle: $t(),
maskStyle: $t(),
mask: {
type: Boolean,
default: void 0
},
keyboard: {
type: Boolean,
default: void 0
},
wrapProps: Object,
focusTriggerAfterClose: {
type: Boolean,
default: void 0
},
modalRender: Function,
mousePosition: $t()
}), ji = te({
compatConfig: {
MODE: 3
},
name: "AModal",
inheritAttrs: !1,
props: sr(DTe(), {
width: 520,
confirmLoading: !1,
okType: "primary"
}),
setup(t, e) {
let {
emit: n,
slots: r,
attrs: i
} = e;
const [a] = LS("Modal"), {
prefixCls: o,
rootPrefixCls: s,
direction: l,
getPopupContainer: u
} = It("modal", t), [c, f] = qCe(o);
Yr(t.visible === void 0, "Modal", "`visible` will be removed in next major version, please use `open` instead.");
const d = (v) => {
n("update:visible", !1), n("update:open", !1), n("cancel", v), n("change", !1);
}, h = (v) => {
n("ok", v);
}, p = () => {
var v, g;
const {
okText: m = (v = r.okText) === null || v === void 0 ? void 0 : v.call(r),
okType: y,
cancelText: b = (g = r.cancelText) === null || g === void 0 ? void 0 : g.call(r),
confirmLoading: _
} = t;
return M(wt, null, [M(Xr, j({
onClick: d
}, t.cancelButtonProps), {
default: () => [b || a.value.cancelText]
}), M(Xr, j(j({}, NU(y)), {}, {
loading: _,
onClick: h
}, t.okButtonProps), {
default: () => [m || a.value.okText]
})]);
};
return () => {
var v, g;
const {
prefixCls: m,
visible: y,
open: b,
wrapClassName: _,
centered: O,
getContainer: S,
closeIcon: x = (v = r.closeIcon) === null || v === void 0 ? void 0 : v.call(r),
focusTriggerAfterClose: C = !0
} = t, T = MTe(t, ["prefixCls", "visible", "open", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"]), w = ye(_, {
[`${o.value}-centered`]: !!O,
[`${o.value}-wrap-rtl`]: l.value === "rtl"
});
return c(M(aY, j(j(j({}, T), i), {}, {
rootClassName: f.value,
class: ye(f.value, i.class),
getContainer: S || (u == null ? void 0 : u.value),
prefixCls: o.value,
wrapClassName: w,
visible: b ?? y,
onClose: d,
focusTriggerAfterClose: C,
transitionName: ts(s.value, "zoom", t.transitionName),
maskTransitionName: ts(s.value, "fade", t.maskTransitionName),
mousePosition: (g = T.mousePosition) !== null && g !== void 0 ? g : eA
}), I(I({}, r), {
footer: r.footer || p,
closeIcon: () => M("span", {
class: `${o.value}-close-x`
}, [x || M(ol, {
class: `${o.value}-close-icon`
}, null)])
})));
};
}
}), RTe = () => {
const t = ae(!1);
return yt(() => {
t.value = !0;
}), t;
}, kTe = {
type: {
type: String
},
actionFn: Function,
close: Function,
autofocus: Boolean,
prefixCls: String,
buttonProps: $t(),
emitEvent: Boolean,
quitOnNullishReturnValue: Boolean
};
function _3(t) {
return !!(t && t.then);
}
const O3 = te({
compatConfig: {
MODE: 3
},
name: "ActionButton",
props: kTe,
setup(t, e) {
let {
slots: n
} = e;
const r = ae(!1), i = ae(), a = ae(!1);
let o;
const s = RTe();
it(() => {
t.autofocus && (o = setTimeout(() => {
var f, d;
return (d = (f = Ts(i.value)) === null || f === void 0 ? void 0 : f.focus) === null || d === void 0 ? void 0 : d.call(f);
}));
}), yt(() => {
clearTimeout(o);
});
const l = function() {
for (var f, d = arguments.length, h = new Array(d), p = 0; p < d; p++)
h[p] = arguments[p];
(f = t.close) === null || f === void 0 || f.call(t, ...h);
}, u = (f) => {
_3(f) && (a.value = !0, f.then(function() {
s.value || (a.value = !1), l(...arguments), r.value = !1;
}, (d) => (s.value || (a.value = !1), r.value = !1, Promise.reject(d))));
}, c = (f) => {
const {
actionFn: d
} = t;
if (r.value)
return;
if (r.value = !0, !d) {
l();
return;
}
let h;
if (t.emitEvent) {
if (h = d(f), t.quitOnNullishReturnValue && !_3(h)) {
r.value = !1, l(f);
return;
}
} else if (d.length)
h = d(t.close), r.value = !1;
else if (h = d(), !h) {
l();
return;
}
u(h);
};
return () => {
const {
type: f,
prefixCls: d,
buttonProps: h
} = t;
return M(Xr, j(j(j({}, NU(f)), {}, {
onClick: c,
loading: a.value,
prefixCls: d
}, h), {}, {
ref: i
}), n);
};
}
});
function Jf(t) {
return typeof t == "function" ? t() : t;
}
const gY = te({
name: "ConfirmDialog",
inheritAttrs: !1,
props: ["icon", "onCancel", "onOk", "close", "closable", "zIndex", "afterClose", "visible", "open", "keyboard", "centered", "getContainer", "maskStyle", "okButtonProps", "cancelButtonProps", "okType", "prefixCls", "okCancel", "width", "mask", "maskClosable", "okText", "cancelText", "autoFocusButton", "transitionName", "maskTransitionName", "type", "title", "content", "direction", "rootPrefixCls", "bodyStyle", "closeIcon", "modalRender", "focusTriggerAfterClose", "wrapClassName", "confirmPrefixCls", "footer"],
setup(t, e) {
let {
attrs: n
} = e;
const [r] = LS("Modal");
return process.env.NODE_ENV !== "production" && Yr(t.visible === void 0, "Modal", "`visible` is deprecated, please use `open` instead."), () => {
const {
icon: i,
onCancel: a,
onOk: o,
close: s,
okText: l,
closable: u = !1,
zIndex: c,
afterClose: f,
keyboard: d,
centered: h,
getContainer: p,
maskStyle: v,
okButtonProps: g,
cancelButtonProps: m,
okCancel: y,
width: b = 416,
mask: _ = !0,
maskClosable: O = !1,
type: S,
open: x,
title: C,
content: T,
direction: w,
closeIcon: P,
modalRender: $,
focusTriggerAfterClose: A,
rootPrefixCls: D,
bodyStyle: E,
wrapClassName: R,
footer: N
} = t;
let V = i;
if (!i && i !== null)
switch (S) {
case "info":
V = M(Df, null, null);
break;
case "success":
V = M(Ou, null, null);
break;
case "error":
V = M(ka, null, null);
break;
default:
V = M(Su, null, null);
}
const B = t.okType || "primary", W = t.prefixCls || "ant-modal", F = `${W}-confirm`, Q = n.style || {}, Z = y ?? S === "confirm", ne = t.autoFocusButton === null ? !1 : t.autoFocusButton || "ok", ee = `${W}-confirm`, oe = ye(ee, `${ee}-${t.type}`, {
[`${ee}-rtl`]: w === "rtl"
}, n.class), K = r.value, ie = Z && M(O3, {
actionFn: a,
close: s,
autofocus: ne === "cancel",
buttonProps: m,
prefixCls: `${D}-btn`
}, {
default: () => [Jf(t.cancelText) || K.cancelText]
});
return M(ji, {
prefixCls: W,
class: oe,
wrapClassName: ye({
[`${ee}-centered`]: !!h
}, R),
onCancel: (X) => s == null ? void 0 : s({
triggerCancel: !0
}, X),
open: x,
title: "",
footer: "",
transitionName: ts(D, "zoom", t.transitionName),
maskTransitionName: ts(D, "fade", t.maskTransitionName),
mask: _,
maskClosable: O,
maskStyle: v,
style: Q,
bodyStyle: E,
width: b,
zIndex: c,
afterClose: f,
keyboard: d,
centered: h,
getContainer: p,
closable: u,
closeIcon: P,
modalRender: $,
focusTriggerAfterClose: A
}, {
default: () => [M("div", {
class: `${F}-body-wrapper`
}, [M("div", {
class: `${F}-body`
}, [Jf(V), C === void 0 ? null : M("span", {
class: `${F}-title`
}, [Jf(C)]), M("div", {
class: `${F}-content`
}, [Jf(T)])]), N !== void 0 ? Jf(N) : M("div", {
class: `${F}-btns`
}, [ie, M(O3, {
type: B,
actionFn: o,
close: s,
autofocus: ne === "ok",
buttonProps: g,
prefixCls: `${D}-btn`
}, {
default: () => [Jf(l) || (Z ? K.okText : K.justOkText)]
})])])]
});
};
}
}), Dc = [], x0 = (t) => {
const e = document.createDocumentFragment();
let n = I(I({}, or(t, ["parentContext", "appContext"])), {
close: a,
open: !0
}), r = null;
function i() {
r && (lf(null, e), r = null);
for (var u = arguments.length, c = new Array(u), f = 0; f < u; f++)
c[f] = arguments[f];
const d = c.some((h) => h && h.triggerCancel);
t.onCancel && d && t.onCancel(() => {
}, ...c.slice(1));
for (let h = 0; h < Dc.length; h++)
if (Dc[h] === a) {
Dc.splice(h, 1);
break;
}
}
function a() {
for (var u = arguments.length, c = new Array(u), f = 0; f < u; f++)
c[f] = arguments[f];
n = I(I({}, n), {
open: !1,
afterClose: () => {
typeof t.afterClose == "function" && t.afterClose(), i.apply(this, c);
}
}), n.visible && delete n.visible, o(n);
}
function o(u) {
typeof u == "function" ? n = u(n) : n = I(I({}, n), u), r && Vde(r, n, e);
}
const s = (u) => {
const c = hr, f = c.prefixCls, d = u.prefixCls || `${f}-modal`, h = c.iconPrefixCls, p = Kxe();
return M(qd, j(j({}, c), {}, {
prefixCls: f
}), {
default: () => [M(gY, j(j({}, u), {}, {
rootPrefixCls: f,
prefixCls: d,
iconPrefixCls: h,
locale: p,
cancelText: u.cancelText || p.cancelText
}), null)]
});
};
function l(u) {
const c = M(s, I({}, u));
return c.appContext = t.parentContext || t.appContext || c.appContext, lf(c, e), c;
}
return r = l(n), Dc.push(a), {
destroy: a,
update: o
};
};
function mY(t) {
return I(I({}, t), {
type: "warning"
});
}
function yY(t) {
return I(I({}, t), {
type: "info"
});
}
function bY(t) {
return I(I({}, t), {
type: "success"
});
}
function _Y(t) {
return I(I({}, t), {
type: "error"
});
}
function OY(t) {
return I(I({}, t), {
type: "confirm"
});
}
const LTe = () => ({
config: Object,
afterClose: Function,
destroyAction: Function,
open: Boolean
}), NTe = te({
name: "HookModal",
inheritAttrs: !1,
props: sr(LTe(), {
config: {
width: 520,
okType: "primary"
}
}),
setup(t, e) {
let {
expose: n
} = e;
var r;
const i = L(() => t.open), a = L(() => t.config), {
direction: o,
getPrefixCls: s
} = kS(), l = s("modal"), u = s(), c = () => {
var p, v;
t == null || t.afterClose(), (v = (p = a.value).afterClose) === null || v === void 0 || v.call(p);
}, f = function() {
t.destroyAction(...arguments);
};
n({
destroy: f
});
const d = (r = a.value.okCancel) !== null && r !== void 0 ? r : a.value.type === "confirm", [h] = LS("Modal", Vs.Modal);
return () => M(gY, j(j({
prefixCls: l,
rootPrefixCls: u
}, a.value), {}, {
close: f,
open: i.value,
afterClose: c,
okText: a.value.okText || (d ? h == null ? void 0 : h.value.okText : h == null ? void 0 : h.value.justOkText),
direction: a.value.direction || o.value,
cancelText: a.value.cancelText || (h == null ? void 0 : h.value.cancelText)
}), null);
}
});
let S3 = 0;
const BTe = te({
name: "ElementsHolder",
inheritAttrs: !1,
setup(t, e) {
let {
expose: n
} = e;
const r = ae([]);
return n({
addModal: (a) => (r.value.push(a), r.value = r.value.slice(), () => {
r.value = r.value.filter((o) => o !== a);
})
}), () => r.value.map((a) => a());
}
});
function zTe() {
const t = ae(null), e = ae([]);
se(e, () => {
e.value.length && ([...e.value].forEach((o) => {
o();
}), e.value = []);
}, {
immediate: !0
});
const n = (a) => function(s) {
var l;
S3 += 1;
const u = ae(!0), c = ae(null), f = ae(z(s)), d = ae({});
se(() => s, (b) => {
g(I(I({}, op(b) ? b.value : b), d.value));
});
const h = function() {
u.value = !1;
for (var b = arguments.length, _ = new Array(b), O = 0; O < b; O++)
_[O] = arguments[O];
const S = _.some((x) => x && x.triggerCancel);
f.value.onCancel && S && f.value.onCancel(() => {
}, ..._.slice(1));
};
let p;
const v = () => M(NTe, {
key: `modal-${S3}`,
config: a(f.value),
ref: c,
open: u.value,
destroyAction: h,
afterClose: () => {
p == null || p();
}
}, null);
p = (l = t.value) === null || l === void 0 ? void 0 : l.addModal(v), p && Dc.push(p);
const g = (b) => {
f.value = I(I({}, f.value), b);
};
return {
destroy: () => {
c.value ? h() : e.value = [...e.value, h];
},
update: (b) => {
d.value = b, c.value ? g(b) : e.value = [...e.value, () => g(b)];
}
};
}, r = L(() => ({
info: n(yY),
success: n(bY),
error: n(_Y),
warning: n(mY),
confirm: n(OY)
})), i = Symbol("modalHolderKey");
return [r.value, () => M(BTe, {
key: i,
ref: t
}, null)];
}
function SY(t) {
return x0(mY(t));
}
ji.useModal = zTe;
ji.info = function(e) {
return x0(yY(e));
};
ji.success = function(e) {
return x0(bY(e));
};
ji.error = function(e) {
return x0(_Y(e));
};
ji.warning = SY;
ji.warn = SY;
ji.confirm = function(e) {
return x0(OY(e));
};
ji.destroyAll = function() {
for (; Dc.length; ) {
const e = Dc.pop();
e && e();
}
};
ji.install = function(t) {
return t.component(ji.name, ji), t;
};
const AD = (t, e) => {
let {
attrs: n
} = e;
const {
included: r,
vertical: i,
style: a,
class: o
} = n;
let {
length: s,
offset: l,
reverse: u
} = n;
s < 0 && (u = !u, s = Math.abs(s), l = 100 - l);
const c = i ? {
[u ? "top" : "bottom"]: `${l}%`,
[u ? "bottom" : "top"]: "auto",
height: `${s}%`
} : {
[u ? "right" : "left"]: `${l}%`,
[u ? "left" : "right"]: "auto",
width: `${s}%`
}, f = I(I({}, a), c);
return r ? M("div", {
class: o,
style: f
}, null) : null;
};
AD.inheritAttrs = !1;
const VTe = (t, e, n, r, i, a) => {
Yr(n ? r > 0 : !0, "Slider", "`Slider[step]` should be a positive number in order to make Slider[dots] work.");
const o = Object.keys(e).map(parseFloat).sort((s, l) => s - l);
if (n && r)
for (let s = i; s <= a; s += r)
o.indexOf(s) === -1 && o.push(s);
return o;
}, xY = (t, e) => {
let {
attrs: n
} = e;
const {
prefixCls: r,
vertical: i,
reverse: a,
marks: o,
dots: s,
step: l,
included: u,
lowerBound: c,
upperBound: f,
max: d,
min: h,
dotStyle: p,
activeDotStyle: v
} = n, g = d - h, m = VTe(i, o, s, l, h, d).map((y) => {
const b = `${Math.abs(y - h) / g * 100}%`, _ = !u && y === f || u && y <= f && y >= c;
let O = i ? I(I({}, p), {
[a ? "top" : "bottom"]: b
}) : I(I({}, p), {
[a ? "right" : "left"]: b
});
_ && (O = I(I({}, O), v));
const S = ye({
[`${r}-dot`]: !0,
[`${r}-dot-active`]: _,
[`${r}-dot-reverse`]: a
});
return M("span", {
class: S,
style: O,
key: y
}, null);
});
return M("div", {
class: `${r}-step`
}, [m]);
};
xY.inheritAttrs = !1;
const wY = (t, e) => {
let {
attrs: n,
slots: r
} = e;
const {
class: i,
vertical: a,
reverse: o,
marks: s,
included: l,
upperBound: u,
lowerBound: c,
max: f,
min: d,
onClickLabel: h
} = n, p = Object.keys(s), v = r.mark, g = f - d, m = p.map(parseFloat).sort((y, b) => y - b).map((y) => {
const b = typeof s[y] == "function" ? s[y]() : s[y], _ = typeof b == "object" && !Yi(b);
let O = _ ? b.label : b;
if (!O && O !== 0)
return null;
v && (O = v({
point: y,
label: O
}));
const S = !l && y === u || l && y <= u && y >= c, x = ye({
[`${i}-text`]: !0,
[`${i}-text-active`]: S
}), C = {
marginBottom: "-50%",
[o ? "top" : "bottom"]: `${(y - d) / g * 100}%`
}, T = {
transform: `translateX(${o ? "50%" : "-50%"})`,
msTransform: `translateX(${o ? "50%" : "-50%"})`,
[o ? "right" : "left"]: `${(y - d) / g * 100}%`
}, w = a ? C : T, P = _ ? I(I({}, w), b.style) : w, $ = {
[pr ? "onTouchstartPassive" : "onTouchstart"]: (A) => h(A, y)
};
return M("span", j({
class: x,
style: P,
key: y,
onMousedown: (A) => h(A, y)
}, $), [O]);
});
return M("div", {
class: i
}, [m]);
};
wY.inheritAttrs = !1;
const CY = te({
compatConfig: {
MODE: 3
},
name: "Handle",
inheritAttrs: !1,
props: {
prefixCls: String,
vertical: {
type: Boolean,
default: void 0
},
offset: Number,
disabled: {
type: Boolean,
default: void 0
},
min: Number,
max: Number,
value: Number,
tabindex: Y.oneOfType([Y.number, Y.string]),
reverse: {
type: Boolean,
default: void 0
},
ariaLabel: String,
ariaLabelledBy: String,
ariaValueTextFormatter: Function,
onMouseenter: {
type: Function
},
onMouseleave: {
type: Function
},
onMousedown: {
type: Function
}
},
setup(t, e) {
let {
attrs: n,
emit: r,
expose: i
} = e;
const a = ae(!1), o = ae(), s = () => {
document.activeElement === o.value && (a.value = !0);
}, l = (g) => {
a.value = !1, r("blur", g);
}, u = () => {
a.value = !1;
}, c = () => {
var g;
(g = o.value) === null || g === void 0 || g.focus();
}, f = () => {
var g;
(g = o.value) === null || g === void 0 || g.blur();
}, d = () => {
a.value = !0, c();
}, h = (g) => {
g.preventDefault(), c(), r("mousedown", g);
};
i({
focus: c,
blur: f,
clickFocus: d,
ref: o
});
let p = null;
it(() => {
p = vr(document, "mouseup", s);
}), yt(() => {
p == null || p.remove();
});
const v = L(() => {
const {
vertical: g,
offset: m,
reverse: y
} = t;
return g ? {
[y ? "top" : "bottom"]: `${m}%`,
[y ? "bottom" : "top"]: "auto",
transform: y ? null : "translateY(+50%)"
} : {
[y ? "right" : "left"]: `${m}%`,
[y ? "left" : "right"]: "auto",
transform: `translateX(${y ? "+" : "-"}50%)`
};
});
return () => {
const {
prefixCls: g,
disabled: m,
min: y,
max: b,
value: _,
tabindex: O,
ariaLabel: S,
ariaLabelledBy: x,
ariaValueTextFormatter: C,
onMouseenter: T,
onMouseleave: w
} = t, P = ye(n.class, {
[`${g}-handle-click-focused`]: a.value
}), $ = {
"aria-valuemin": y,
"aria-valuemax": b,
"aria-valuenow": _,
"aria-disabled": !!m
}, A = [n.style, v.value];
let D = O || 0;
(m || O === null) && (D = null);
let E;
C && (E = C(_));
const R = I(I(I(I({}, n), {
role: "slider",
tabindex: D
}), $), {
class: P,
onBlur: l,
onKeydown: u,
onMousedown: h,
onMouseenter: T,
onMouseleave: w,
ref: o,
style: A
});
return M("div", j(j({}, R), {}, {
"aria-label": S,
"aria-labelledby": x,
"aria-valuetext": E
}), null);
};
}
});
function kC(t, e) {
try {
return Object.keys(e).some((n) => t.target === e[n].ref);
} catch {
return !1;
}
}
function TY(t, e) {
let {
min: n,
max: r
} = e;
return t < n || t > r;
}
function x3(t) {
return t.touches.length > 1 || t.type.toLowerCase() === "touchend" && t.touches.length > 0;
}
function w3(t, e) {
let {
marks: n,
step: r,
min: i,
max: a
} = e;
const o = Object.keys(n).map(parseFloat);
if (r !== null) {
const l = Math.pow(10, PY(r)), u = Math.floor((a * l - i * l) / (r * l)), c = Math.min((t - i) / r, u), f = Math.round(c) * r + i;
o.push(f);
}
const s = o.map((l) => Math.abs(t - l));
return o[s.indexOf(Math.min(...s))];
}
function PY(t) {
const e = t.toString();
let n = 0;
return e.indexOf(".") >= 0 && (n = e.length - e.indexOf(".") - 1), n;
}
function C3(t, e) {
let n = 1;
return window.visualViewport && (n = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2)), (t ? e.clientY : e.pageX) / n;
}
function T3(t, e) {
let n = 1;
return window.visualViewport && (n = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2)), (t ? e.touches[0].clientY : e.touches[0].pageX) / n;
}
function P3(t, e) {
const n = e.getBoundingClientRect();
return t ? n.top + n.height * 0.5 : window.scrollX + n.left + n.width * 0.5;
}
function ED(t, e) {
let {
max: n,
min: r
} = e;
return t <= r ? r : t >= n ? n : t;
}
function $Y(t, e) {
const {
step: n
} = e, r = isFinite(w3(t, e)) ? w3(t, e) : 0;
return n === null ? r : parseFloat(r.toFixed(PY(n)));
}
function kh(t) {
t.stopPropagation(), t.preventDefault();
}
function FTe(t, e, n) {
const r = {
increase: (o, s) => o + s,
decrease: (o, s) => o - s
}, i = r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)), 1), a = Object.keys(n.marks)[i];
return n.step ? r[t](e, n.step) : Object.keys(n.marks).length && n.marks[a] ? n.marks[a] : e;
}
function AY(t, e, n) {
const r = "increase", i = "decrease";
let a = r;
switch (t.keyCode) {
case ge.UP:
a = e && n ? i : r;
break;
case ge.RIGHT:
a = !e && n ? i : r;
break;
case ge.DOWN:
a = e && n ? r : i;
break;
case ge.LEFT:
a = !e && n ? r : i;
break;
case ge.END:
return (o, s) => s.max;
case ge.HOME:
return (o, s) => s.min;
case ge.PAGE_UP:
return (o, s) => o + s.step * 2;
case ge.PAGE_DOWN:
return (o, s) => o - s.step * 2;
default:
return;
}
return (o, s) => FTe(a, o, s);
}
var WTe = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
function Lu() {
}
function EY(t) {
const e = {
id: String,
min: Number,
max: Number,
step: Number,
marks: Y.object,
included: {
type: Boolean,
default: void 0
},
prefixCls: String,
disabled: {
type: Boolean,
default: void 0
},
handle: Function,
dots: {
type: Boolean,
default: void 0
},
vertical: {
type: Boolean,
default: void 0
},
reverse: {
type: Boolean,
default: void 0
},
minimumTrackStyle: Y.object,
maximumTrackStyle: Y.object,
handleStyle: Y.oneOfType([Y.object, Y.arrayOf(Y.object)]),
trackStyle: Y.oneOfType([Y.object, Y.arrayOf(Y.object)]),
railStyle: Y.object,
dotStyle: Y.object,
activeDotStyle: Y.object,
autofocus: {
type: Boolean,
default: void 0
},
draggableTrack: {
type: Boolean,
default: void 0
}
};
return te({
compatConfig: {
MODE: 3
},
name: "CreateSlider",
mixins: [JS, t],
inheritAttrs: !1,
props: sr(e, {
prefixCls: "rc-slider",
min: 0,
max: 100,
step: 1,
marks: {},
included: !0,
disabled: !1,
dots: !1,
vertical: !1,
reverse: !1,
trackStyle: [{}],
handleStyle: [{}],
railStyle: {},
dotStyle: {},
activeDotStyle: {}
}),
emits: ["change", "blur", "focus"],
data() {
const {
step: n,
max: r,
min: i
} = this, a = isFinite(r - i) ? (r - i) % n === 0 : !0;
return Yr(n && Math.floor(n) === n ? a : !0, `Slider[max] - Slider[min] (${r - i}) should be a multiple of Slider[step] (${n})`), this.handlesRefs = {}, {};
},
mounted() {
this.$nextTick(() => {
this.document = this.sliderRef && this.sliderRef.ownerDocument;
const {
autofocus: n,
disabled: r
} = this;
n && !r && this.focus();
});
},
beforeUnmount() {
this.$nextTick(() => {
this.removeDocumentEvents();
});
},
methods: {
defaultHandle(n) {
var {
index: r,
directives: i,
className: a,
style: o
} = n, s = WTe(n, ["index", "directives", "className", "style"]);
if (delete s.dragging, s.value === null)
return null;
const l = I(I({}, s), {
class: a,
style: o,
key: r
});
return M(CY, l, null);
},
onDown(n, r) {
let i = r;
const {
draggableTrack: a,
vertical: o
} = this.$props, {
bounds: s
} = this.$data, l = a && this.positionGetValue ? this.positionGetValue(i) || [] : [], u = kC(n, this.handlesRefs);
if (this.dragTrack = a && s.length >= 2 && !u && !l.map((c, f) => {
const d = f ? !0 : c >= s[f];
return f === l.length - 1 ? c <= s[f] : d;
}).some((c) => !c), this.dragTrack)
this.dragOffset = i, this.startBounds = [...s];
else {
if (!u)
this.dragOffset = 0;
else {
const c = P3(o, n.target);
this.dragOffset = i - c, i = c;
}
this.onStart(i);
}
},
onMouseDown(n) {
if (n.button !== 0)
return;
this.removeDocumentEvents();
const r = this.$props.vertical, i = C3(r, n);
this.onDown(n, i), this.addDocumentMouseEvents();
},
onTouchStart(n) {
if (x3(n)) return;
const r = this.vertical, i = T3(r, n);
this.onDown(n, i), this.addDocumentTouchEvents(), kh(n);
},
onFocus(n) {
const {
vertical: r
} = this;
if (kC(n, this.handlesRefs) && !this.dragTrack) {
const i = P3(r, n.target);
this.dragOffset = 0, this.onStart(i), kh(n), this.$emit("focus", n);
}
},
onBlur(n) {
this.dragTrack || this.onEnd(), this.$emit("blur", n);
},
onMouseUp() {
this.handlesRefs[this.prevMovedHandleIndex] && this.handlesRefs[this.prevMovedHandleIndex].clickFocus();
},
onMouseMove(n) {
if (!this.sliderRef) {
this.onEnd();
return;
}
const r = C3(this.vertical, n);
this.onMove(n, r - this.dragOffset, this.dragTrack, this.startBounds);
},
onTouchMove(n) {
if (x3(n) || !this.sliderRef) {
this.onEnd();
return;
}
const r = T3(this.vertical, n);
this.onMove(n, r - this.dragOffset, this.dragTrack, this.startBounds);
},
onKeyDown(n) {
this.sliderRef && kC(n, this.handlesRefs) && this.onKeyboard(n);
},
onClickMarkLabel(n, r) {
n.stopPropagation(), this.onChange({
sValue: r
}), this.setState({
sValue: r
}, () => this.onEnd(!0));
},
getSliderStart() {
const n = this.sliderRef, {
vertical: r,
reverse: i
} = this, a = n.getBoundingClientRect();
return r ? i ? a.bottom : a.top : window.scrollX + (i ? a.right : a.left);
},
getSliderLength() {
const n = this.sliderRef;
if (!n)
return 0;
const r = n.getBoundingClientRect();
return this.vertical ? r.height : r.width;
},
addDocumentTouchEvents() {
this.onTouchMoveListener = vr(this.document, "touchmove", this.onTouchMove), this.onTouchUpListener = vr(this.document, "touchend", this.onEnd);
},
addDocumentMouseEvents() {
this.onMouseMoveListener = vr(this.document, "mousemove", this.onMouseMove), this.onMouseUpListener = vr(this.document, "mouseup", this.onEnd);
},
removeDocumentEvents() {
this.onTouchMoveListener && this.onTouchMoveListener.remove(), this.onTouchUpListener && this.onTouchUpListener.remove(), this.onMouseMoveListener && this.onMouseMoveListener.remove(), this.onMouseUpListener && this.onMouseUpListener.remove();
},
focus() {
var n;
this.$props.disabled || (n = this.handlesRefs[0]) === null || n === void 0 || n.focus();
},
blur() {
this.$props.disabled || Object.keys(this.handlesRefs).forEach((n) => {
var r, i;
(i = (r = this.handlesRefs[n]) === null || r === void 0 ? void 0 : r.blur) === null || i === void 0 || i.call(r);
});
},
calcValue(n) {
const {
vertical: r,
min: i,
max: a
} = this, o = Math.abs(Math.max(n, 0) / this.getSliderLength());
return r ? (1 - o) * (a - i) + i : o * (a - i) + i;
},
calcValueByPos(n) {
const i = (this.reverse ? -1 : 1) * (n - this.getSliderStart());
return this.trimAlignValue(this.calcValue(i));
},
calcOffset(n) {
const {
min: r,
max: i
} = this, a = (n - r) / (i - r);
return Math.max(0, a * 100);
},
saveSlider(n) {
this.sliderRef = n;
},
saveHandle(n, r) {
this.handlesRefs[n] = r;
}
},
render() {
const {
prefixCls: n,
marks: r,
dots: i,
step: a,
included: o,
disabled: s,
vertical: l,
reverse: u,
min: c,
max: f,
maximumTrackStyle: d,
railStyle: h,
dotStyle: p,
activeDotStyle: v,
id: g
} = this, {
class: m,
style: y
} = this.$attrs, {
tracks: b,
handles: _
} = this.renderSlider(), O = ye(n, m, {
[`${n}-with-marks`]: Object.keys(r).length,
[`${n}-disabled`]: s,
[`${n}-vertical`]: l,
[`${n}-horizontal`]: !l
}), S = {
vertical: l,
marks: r,
included: o,
lowerBound: this.getLowerBound(),
upperBound: this.getUpperBound(),
max: f,
min: c,
reverse: u,
class: `${n}-mark`,
onClickLabel: s ? Lu : this.onClickMarkLabel
}, x = {
[pr ? "onTouchstartPassive" : "onTouchstart"]: s ? Lu : this.onTouchStart
};
return M("div", j(j({
id: g,
ref: this.saveSlider,
tabindex: "-1",
class: O
}, x), {}, {
onMousedown: s ? Lu : this.onMouseDown,
onMouseup: s ? Lu : this.onMouseUp,
onKeydown: s ? Lu : this.onKeyDown,
onFocus: s ? Lu : this.onFocus,
onBlur: s ? Lu : this.onBlur,
style: y
}), [M("div", {
class: `${n}-rail`,
style: I(I({}, d), h)
}, null), b, M(xY, {
prefixCls: n,
vertical: l,
reverse: u,
marks: r,
dots: i,
step: a,
included: o,
lowerBound: this.getLowerBound(),
upperBound: this.getUpperBound(),
max: f,
min: c,
dotStyle: p,
activeDotStyle: v
}, null), _, M(wY, S, {
mark: this.$slots.mark
}), ij(this)]);
}
});
}
const QTe = te({
compatConfig: {
MODE: 3
},
name: "Slider",
mixins: [JS],
inheritAttrs: !1,
props: {
defaultValue: Number,
value: Number,
disabled: {
type: Boolean,
default: void 0
},
autofocus: {
type: Boolean,
default: void 0
},
tabindex: Y.oneOfType([Y.number, Y.string]),
reverse: {
type: Boolean,
default: void 0
},
min: Number,
max: Number,
ariaLabelForHandle: String,
ariaLabelledByForHandle: String,
ariaValueTextFormatterForHandle: String,
startPoint: Number
},
emits: ["beforeChange", "afterChange", "change"],
data() {
const t = this.defaultValue !== void 0 ? this.defaultValue : this.min, e = this.value !== void 0 ? this.value : t;
return {
sValue: this.trimAlignValue(e),
dragging: !1
};
},
watch: {
value: {
handler(t) {
this.setChangeValue(t);
},
deep: !0
},
min() {
const {
sValue: t
} = this;
this.setChangeValue(t);
},
max() {
const {
sValue: t
} = this;
this.setChangeValue(t);
}
},
methods: {
setChangeValue(t) {
const e = t !== void 0 ? t : this.sValue, n = this.trimAlignValue(e, this.$props);
n !== this.sValue && (this.setState({
sValue: n
}), TY(e, this.$props) && this.$emit("change", n));
},
onChange(t) {
const e = !m1(this, "value"), n = t.sValue > this.max ? I(I({}, t), {
sValue: this.max
}) : t;
e && this.setState(n);
const r = n.sValue;
this.$emit("change", r);
},
onStart(t) {
this.setState({
dragging: !0
});
const {
sValue: e
} = this;
this.$emit("beforeChange", e);
const n = this.calcValueByPos(t);
this.startValue = n, this.startPosition = t, n !== e && (this.prevMovedHandleIndex = 0, this.onChange({
sValue: n
}));
},
onEnd(t) {
const {
dragging: e
} = this;
this.removeDocumentEvents(), (e || t) && this.$emit("afterChange", this.sValue), this.setState({
dragging: !1
});
},
onMove(t, e) {
kh(t);
const {
sValue: n
} = this, r = this.calcValueByPos(e);
r !== n && this.onChange({
sValue: r
});
},
onKeyboard(t) {
const {
reverse: e,
vertical: n
} = this.$props, r = AY(t, n, e);
if (r) {
kh(t);
const {
sValue: i
} = this, a = r(i, this.$props), o = this.trimAlignValue(a);
if (o === i) return;
this.onChange({
sValue: o
}), this.$emit("afterChange", o), this.onEnd();
}
},
getLowerBound() {
const t = this.$props.startPoint || this.$props.min;
return this.$data.sValue > t ? t : this.$data.sValue;
},
getUpperBound() {
return this.$data.sValue < this.$props.startPoint ? this.$props.startPoint : this.$data.sValue;
},
trimAlignValue(t) {
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (t === null)
return null;
const n = I(I({}, this.$props), e), r = ED(t, n);
return $Y(r, n);
},
getTrack(t) {
let {
prefixCls: e,
reverse: n,
vertical: r,
included: i,
minimumTrackStyle: a,
mergedTrackStyle: o,
length: s,
offset: l
} = t;
return M(AD, {
class: `${e}-track`,
vertical: r,
included: i,
offset: l,
reverse: n,
length: s,
style: I(I({}, a), o)
}, null);
},
renderSlider() {
const {
prefixCls: t,
vertical: e,
included: n,
disabled: r,
minimumTrackStyle: i,
trackStyle: a,
handleStyle: o,
tabindex: s,
ariaLabelForHandle: l,
ariaLabelledByForHandle: u,
ariaValueTextFormatterForHandle: c,
min: f,
max: d,
startPoint: h,
reverse: p,
handle: v,
defaultHandle: g
} = this, m = v || g, {
sValue: y,
dragging: b
} = this, _ = this.calcOffset(y), O = m({
class: `${t}-handle`,
prefixCls: t,
vertical: e,
offset: _,
value: y,
dragging: b,
disabled: r,
min: f,
max: d,
reverse: p,
index: 0,
tabindex: s,
ariaLabel: l,
ariaLabelledBy: u,
ariaValueTextFormatter: c,
style: o[0] || o,
ref: (C) => this.saveHandle(0, C),
onFocus: this.onFocus,
onBlur: this.onBlur
}), S = h !== void 0 ? this.calcOffset(h) : 0, x = a[0] || a;
return {
tracks: this.getTrack({
prefixCls: t,
reverse: p,
vertical: e,
included: n,
offset: S,
minimumTrackStyle: i,
mergedTrackStyle: x,
length: _ - S
}),
handles: O
};
}
}
}), HTe = EY(QTe), Jp = (t) => {
let {
value: e,
handle: n,
bounds: r,
props: i
} = t;
const {
allowCross: a,
pushable: o
} = i, s = Number(o), l = ED(e, i);
let u = l;
return !a && n != null && r !== void 0 && (n > 0 && l <= r[n - 1] + s && (u = r[n - 1] + s), n < r.length - 1 && l >= r[n + 1] - s && (u = r[n + 1] - s)), $Y(u, i);
}, GTe = {
defaultValue: Y.arrayOf(Y.number),
value: Y.arrayOf(Y.number),
count: Number,
pushable: tde(Y.oneOfType([Y.looseBool, Y.number])),
allowCross: {
type: Boolean,
default: void 0
},
disabled: {
type: Boolean,
default: void 0
},
reverse: {
type: Boolean,
default: void 0
},
tabindex: Y.arrayOf(Y.number),
prefixCls: String,
min: Number,
max: Number,
autofocus: {
type: Boolean,
default: void 0
},
ariaLabelGroupForHandles: Array,
ariaLabelledByGroupForHandles: Array,
ariaValueTextFormatterGroupForHandles: Array,
draggableTrack: {
type: Boolean,
default: void 0
}
}, jTe = te({
compatConfig: {
MODE: 3
},
name: "Range",
mixins: [JS],
inheritAttrs: !1,
props: sr(GTe, {
count: 1,
allowCross: !0,
pushable: !1,
tabindex: [],
draggableTrack: !1,
ariaLabelGroupForHandles: [],
ariaLabelledByGroupForHandles: [],
ariaValueTextFormatterGroupForHandles: []
}),
emits: ["beforeChange", "afterChange", "change"],
displayName: "Range",
data() {
const {
count: t,
min: e,
max: n
} = this, r = Array(...Array(t + 1)).map(() => e), i = m1(this, "defaultValue") ? this.defaultValue : r;
let {
value: a
} = this;
a === void 0 && (a = i);
const o = a.map((l, u) => Jp({
value: l,
handle: u,
props: this.$props
}));
return {
sHandle: null,
recent: o[0] === n ? 0 : o.length - 1,
bounds: o
};
},
watch: {
value: {
handler(t) {
const {
bounds: e
} = this;
this.setChangeValue(t || e);
},
deep: !0
},
min() {
const {
value: t
} = this;
this.setChangeValue(t || this.bounds);
},
max() {
const {
value: t
} = this;
this.setChangeValue(t || this.bounds);
}
},
methods: {
setChangeValue(t) {
const {
bounds: e
} = this;
let n = t.map((r, i) => Jp({
value: r,
handle: i,
bounds: e,
props: this.$props
}));
if (e.length === n.length) {
if (n.every((r, i) => r === e[i]))
return null;
} else
n = t.map((r, i) => Jp({
value: r,
handle: i,
props: this.$props
}));
if (this.setState({
bounds: n
}), t.some((r) => TY(r, this.$props))) {
const r = t.map((i) => ED(i, this.$props));
this.$emit("change", r);
}
},
onChange(t) {
if (!m1(this, "value"))
this.setState(t);
else {
const i = {};
["sHandle", "recent"].forEach((a) => {
t[a] !== void 0 && (i[a] = t[a]);
}), Object.keys(i).length && this.setState(i);
}
const r = I(I({}, this.$data), t).bounds;
this.$emit("change", r);
},
positionGetValue(t) {
const e = this.getValue(), n = this.calcValueByPos(t), r = this.getClosestBound(n), i = this.getBoundNeedMoving(n, r), a = e[i];
if (n === a) return null;
const o = [...e];
return o[i] = n, o;
},
onStart(t) {
const {
bounds: e
} = this;
this.$emit("beforeChange", e);
const n = this.calcValueByPos(t);
this.startValue = n, this.startPosition = t;
const r = this.getClosestBound(n);
this.prevMovedHandleIndex = this.getBoundNeedMoving(n, r), this.setState({
sHandle: this.prevMovedHandleIndex,
recent: this.prevMovedHandleIndex
});
const i = e[this.prevMovedHandleIndex];
if (n === i) return;
const a = [...e];
a[this.prevMovedHandleIndex] = n, this.onChange({
bounds: a
});
},
onEnd(t) {
const {
sHandle: e
} = this;
this.removeDocumentEvents(), e || (this.dragTrack = !1), (e !== null || t) && this.$emit("afterChange", this.bounds), this.setState({
sHandle: null
});
},
onMove(t, e, n, r) {
kh(t);
const {
$data: i,
$props: a
} = this, o = a.max || 100, s = a.min || 0;
if (n) {
let d = a.vertical ? -e : e;
d = a.reverse ? -d : d;
const h = o - Math.max(...r), p = s - Math.min(...r), v = Math.min(Math.max(d / (this.getSliderLength() / 100), p), h), g = r.map((m) => Math.floor(Math.max(Math.min(m + v, o), s)));
i.bounds.map((m, y) => m === g[y]).some((m) => !m) && this.onChange({
bounds: g
});
return;
}
const {
bounds: l,
sHandle: u
} = this, c = this.calcValueByPos(e), f = l[u];
c !== f && this.moveTo(c);
},
onKeyboard(t) {
const {
reverse: e,
vertical: n
} = this.$props, r = AY(t, n, e);
if (r) {
kh(t);
const {
bounds: i,
sHandle: a
} = this, o = i[a === null ? this.recent : a], s = r(o, this.$props), l = Jp({
value: s,
handle: a,
bounds: i,
props: this.$props
});
if (l === o) return;
this.moveTo(l, !0);
}
},
getClosestBound(t) {
const {
bounds: e
} = this;
let n = 0;
for (let r = 1; r < e.length - 1; r += 1)
t >= e[r] && (n = r);
return Math.abs(e[n + 1] - t) < Math.abs(e[n] - t) && (n += 1), n;
},
getBoundNeedMoving(t, e) {
const {
bounds: n,
recent: r
} = this;
let i = e;
const a = n[e + 1] === n[e];
return a && n[r] === n[e] && (i = r), a && t !== n[e + 1] && (i = t < n[e + 1] ? e : e + 1), i;
},
getLowerBound() {
return this.bounds[0];
},
getUpperBound() {
const {
bounds: t
} = this;
return t[t.length - 1];
},
/**
* Returns an array of possible slider points, taking into account both
* `marks` and `step`. The result is cached.
*/
getPoints() {
const {
marks: t,
step: e,
min: n,
max: r
} = this, i = this.internalPointsCache;
if (!i || i.marks !== t || i.step !== e) {
const a = I({}, t);
if (e !== null)
for (let s = n; s <= r; s += e)
a[s] = s;
const o = Object.keys(a).map(parseFloat);
o.sort((s, l) => s - l), this.internalPointsCache = {
marks: t,
step: e,
points: o
};
}
return this.internalPointsCache.points;
},
moveTo(t, e) {
const n = [...this.bounds], {
sHandle: r,
recent: i
} = this, a = r === null ? i : r;
n[a] = t;
let o = a;
this.$props.pushable !== !1 ? this.pushSurroundingHandles(n, o) : this.$props.allowCross && (n.sort((s, l) => s - l), o = n.indexOf(t)), this.onChange({
recent: o,
sHandle: o,
bounds: n
}), e && (this.$emit("afterChange", n), this.setState({}, () => {
this.handlesRefs[o].focus();
}), this.onEnd());
},
pushSurroundingHandles(t, e) {
const n = t[e], {
pushable: r
} = this, i = Number(r);
let a = 0;
if (t[e + 1] - n < i && (a = 1), n - t[e - 1] < i && (a = -1), a === 0)
return;
const o = e + a, s = a * (t[o] - n);
this.pushHandle(t, o, a, i - s) || (t[e] = t[o] - a * i);
},
pushHandle(t, e, n, r) {
const i = t[e];
let a = t[e];
for (; n * (a - i) < r; ) {
if (!this.pushHandleOnePoint(t, e, n))
return t[e] = i, !1;
a = t[e];
}
return !0;
},
pushHandleOnePoint(t, e, n) {
const r = this.getPoints(), a = r.indexOf(t[e]) + n;
if (a >= r.length || a < 0)
return !1;
const o = e + n, s = r[a], {
pushable: l
} = this, u = Number(l), c = n * (t[o] - s);
return this.pushHandle(t, o, n, u - c) ? (t[e] = s, !0) : !1;
},
trimAlignValue(t) {
const {
sHandle: e,
bounds: n
} = this;
return Jp({
value: t,
handle: e,
bounds: n,
props: this.$props
});
},
ensureValueNotConflict(t, e, n) {
let {
allowCross: r,
pushable: i
} = n;
const a = this.$data || {}, {
bounds: o
} = a;
if (t = t === void 0 ? a.sHandle : t, i = Number(i), !r && t != null && o !== void 0) {
if (t > 0 && e <= o[t - 1] + i)
return o[t - 1] + i;
if (t < o.length - 1 && e >= o[t + 1] - i)
return o[t + 1] - i;
}
return e;
},
getTrack(t) {
let {
bounds: e,
prefixCls: n,
reverse: r,
vertical: i,
included: a,
offsets: o,
trackStyle: s
} = t;
return e.slice(0, -1).map((l, u) => {
const c = u + 1, f = ye({
[`${n}-track`]: !0,
[`${n}-track-${c}`]: !0
});
return M(AD, {
class: f,
vertical: i,
reverse: r,
included: a,
offset: o[c - 1],
length: o[c] - o[c - 1],
style: s[u],
key: c
}, null);
});
},
renderSlider() {
const {
sHandle: t,
bounds: e,
prefixCls: n,
vertical: r,
included: i,
disabled: a,
min: o,
max: s,
reverse: l,
handle: u,
defaultHandle: c,
trackStyle: f,
handleStyle: d,
tabindex: h,
ariaLabelGroupForHandles: p,
ariaLabelledByGroupForHandles: v,
ariaValueTextFormatterGroupForHandles: g
} = this, m = u || c, y = e.map((O) => this.calcOffset(O)), b = `${n}-handle`, _ = e.map((O, S) => {
let x = h[S] || 0;
(a || h[S] === null) && (x = null);
const C = t === S;
return m({
class: ye({
[b]: !0,
[`${b}-${S + 1}`]: !0,
[`${b}-dragging`]: C
}),
prefixCls: n,
vertical: r,
dragging: C,
offset: y[S],
value: O,
index: S,
tabindex: x,
min: o,
max: s,
reverse: l,
disabled: a,
style: d[S],
ref: (T) => this.saveHandle(S, T),
onFocus: this.onFocus,
onBlur: this.onBlur,
ariaLabel: p[S],
ariaLabelledBy: v[S],
ariaValueTextFormatter: g[S]
});
});
return {
tracks: this.getTrack({
bounds: e,
prefixCls: n,
reverse: l,
vertical: r,
included: i,
offsets: y,
trackStyle: f
}),
handles: _
};
}
}
}), ZTe = EY(jTe), UTe = te({
compatConfig: {
MODE: 3
},
name: "SliderTooltip",
inheritAttrs: !1,
props: LU(),
setup(t, e) {
let {
attrs: n,
slots: r
} = e;
const i = U(null), a = U(null);
function o() {
xt.cancel(a.value), a.value = null;
}
function s() {
a.value = xt(() => {
var u;
(u = i.value) === null || u === void 0 || u.forcePopupAlign(), a.value = null;
});
}
const l = () => {
o(), t.open && s();
};
return se([() => t.open, () => t.title], () => {
l();
}, {
flush: "post",
immediate: !0
}), Wle(() => {
l();
}), yt(() => {
o();
}), () => M(px, j(j({
ref: i
}, t), n), r);
}
}), XTe = (t) => {
const {
componentCls: e,
controlSize: n,
dotSize: r,
marginFull: i,
marginPart: a,
colorFillContentHover: o
} = t;
return {
[e]: I(I({}, nn(t)), {
position: "relative",
height: n,
margin: `${a}px ${i}px`,
padding: 0,
cursor: "pointer",
touchAction: "none",
"&-vertical": {
margin: `${i}px ${a}px`
},
[`${e}-rail`]: {
position: "absolute",
backgroundColor: t.colorFillTertiary,
borderRadius: t.borderRadiusXS,
transition: `background-color ${t.motionDurationMid}`
},
[`${e}-track`]: {
position: "absolute",
backgroundColor: t.colorPrimaryBorder,
borderRadius: t.borderRadiusXS,
transition: `background-color ${t.motionDurationMid}`
},
"&:hover": {
[`${e}-rail`]: {
backgroundColor: t.colorFillSecondary
},
[`${e}-track`]: {
backgroundColor: t.colorPrimaryBorderHover
},
[`${e}-dot`]: {
borderColor: o
},
[`${e}-handle::after`]: {
boxShadow: `0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorderHover}`
},
[`${e}-dot-active`]: {
borderColor: t.colorPrimary
}
},
[`${e}-handle`]: {
position: "absolute",
width: t.handleSize,
height: t.handleSize,
outline: "none",
[`${e}-dragging`]: {
zIndex: 1
},
// 扩大选区
"&::before": {
content: '""',
position: "absolute",
insetInlineStart: -t.handleLineWidth,
insetBlockStart: -t.handleLineWidth,
width: t.handleSize + t.handleLineWidth * 2,
height: t.handleSize + t.handleLineWidth * 2,
backgroundColor: "transparent"
},
"&::after": {
content: '""',
position: "absolute",
insetBlockStart: 0,
insetInlineStart: 0,
width: t.handleSize,
height: t.handleSize,
backgroundColor: t.colorBgElevated,
boxShadow: `0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorder}`,
borderRadius: "50%",
cursor: "pointer",
transition: `
inset-inline-start ${t.motionDurationMid},
inset-block-start ${t.motionDurationMid},
width ${t.motionDurationMid},
height ${t.motionDurationMid},
box-shadow ${t.motionDurationMid}
`
},
"&:hover, &:active, &:focus": {
"&::before": {
insetInlineStart: -((t.handleSizeHover - t.handleSize) / 2 + t.handleLineWidthHover),
insetBlockStart: -((t.handleSizeHover - t.handleSize) / 2 + t.handleLineWidthHover),
width: t.handleSizeHover + t.handleLineWidthHover * 2,
height: t.handleSizeHover + t.handleLineWidthHover * 2
},
"&::after": {
boxShadow: `0 0 0 ${t.handleLineWidthHover}px ${t.colorPrimary}`,
width: t.handleSizeHover,
height: t.handleSizeHover,
insetInlineStart: (t.handleSize - t.handleSizeHover) / 2,
insetBlockStart: (t.handleSize - t.handleSizeHover) / 2
}
}
},
[`${e}-mark`]: {
position: "absolute",
fontSize: t.fontSize
},
[`${e}-mark-text`]: {
position: "absolute",
display: "inline-block",
color: t.colorTextDescription,
textAlign: "center",
wordBreak: "keep-all",
cursor: "pointer",
userSelect: "none",
"&-active": {
color: t.colorText
}
},
[`${e}-step`]: {
position: "absolute",
background: "transparent",
pointerEvents: "none"
},
[`${e}-dot`]: {
position: "absolute",
width: r,
height: r,
backgroundColor: t.colorBgElevated,
border: `${t.handleLineWidth}px solid ${t.colorBorderSecondary}`,
borderRadius: "50%",
cursor: "pointer",
transition: `border-color ${t.motionDurationSlow}`,
"&-active": {
borderColor: t.colorPrimaryBorder
}
},
[`&${e}-disabled`]: {
cursor: "not-allowed",
[`${e}-rail`]: {
backgroundColor: `${t.colorFillSecondary} !important`
},
[`${e}-track`]: {
backgroundColor: `${t.colorTextDisabled} !important`
},
[`
${e}-dot
`]: {
backgroundColor: t.colorBgElevated,
borderColor: t.colorTextDisabled,
boxShadow: "none",
cursor: "not-allowed"
},
[`${e}-handle::after`]: {
backgroundColor: t.colorBgElevated,
cursor: "not-allowed",
width: t.handleSize,
height: t.handleSize,
boxShadow: `0 0 0 ${t.handleLineWidth}px ${new en(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,
insetInlineStart: 0,
insetBlockStart: 0
},
[`
${e}-mark-text,
${e}-dot
`]: {
cursor: "not-allowed !important"
}
}
})
};
}, MY = (t, e) => {
const {
componentCls: n,
railSize: r,
handleSize: i,
dotSize: a
} = t, o = e ? "paddingBlock" : "paddingInline", s = e ? "width" : "height", l = e ? "height" : "width", u = e ? "insetBlockStart" : "insetInlineStart", c = e ? "top" : "insetInlineStart";
return {
[o]: r,
[l]: r * 3,
[`${n}-rail`]: {
[s]: "100%",
[l]: r
},
[`${n}-track`]: {
[l]: r
},
[`${n}-handle`]: {
[u]: (r * 3 - i) / 2
},
[`${n}-mark`]: {
// Reset all
insetInlineStart: 0,
top: 0,
[c]: i,
[s]: "100%"
},
[`${n}-step`]: {
// Reset all
insetInlineStart: 0,
top: 0,
[c]: r,
[s]: "100%",
[l]: r
},
[`${n}-dot`]: {
position: "absolute",
[u]: (r - a) / 2
}
};
}, YTe = (t) => {
const {
componentCls: e,
marginPartWithMark: n
} = t;
return {
[`${e}-horizontal`]: I(I({}, MY(t, !0)), {
[`&${e}-with-marks`]: {
marginBottom: n
}
})
};
}, qTe = (t) => {
const {
componentCls: e
} = t;
return {
[`${e}-vertical`]: I(I({}, MY(t, !1)), {
height: "100%"
})
};
}, KTe = Sn("Slider", (t) => {
const e = Bt(t, {
marginPart: (t.controlHeight - t.controlSize) / 2,
marginFull: t.controlSize / 2,
marginPartWithMark: t.controlHeightLG - t.controlSize
});
return [XTe(e), YTe(e), qTe(e)];
}, (t) => {
const n = t.controlHeightLG / 4, r = t.controlHeightSM / 2, i = t.lineWidth + 1, a = t.lineWidth + 1 * 3;
return {
controlSize: n,
railSize: 4,
handleSize: n,
handleSizeHover: r,
dotSize: 8,
handleLineWidth: i,
handleLineWidthHover: a
};
});
var $3 = function(t, e) {
var n = {};
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(t); i < r.length; i++)
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
return n;
};
const JTe = (t) => typeof t == "number" ? t.toString() : "", ePe = () => ({
id: String,
prefixCls: String,
tooltipPrefixCls: String,
range: gn([Boolean, Object]),
reverse: nt(),
min: Number,
max: Number,
step: gn([Object, Number]),
marks: $t(),
dots: nt(),
value: gn([Array, Number]),
defaultValue: gn([Array, Number]),
included: nt(),
disabled: nt(),
vertical: nt(),
tipFormatter: gn([Function, Object], () => JTe),
tooltipOpen: nt(),
/** @deprecated `tooltipVisible` is deprecated. Please use `tooltipOpen` instead. */
tooltipVisible: nt(),
tooltipPlacement: hn(),
getTooltipPopupContainer: tt(),
autofocus: nt(),
handleStyle: gn([Array, Object]),
trackStyle: gn([Array, Object]),
onChange: tt(),
onAfterChange: tt(),
onFocus: tt(),
onBlur: tt(),
"onUpdate:value": tt()
}), tPe = te({
compatConfig: {
MODE: 3
},
name: "ASlider",
inheritAttrs: !1,
props: ePe(),
// emits: ['update:value', 'change', 'afterChange', 'blur'],
slots: Object,
setup(t, e) {
let {
attrs: n,
slots: r,
emit: i,
expose: a
} = e;
process.env.NODE_ENV !== "production" && [["tooltipVisible", "tooltipOpen"]].forEach((x) => {
let [C, T] = x;
Gi(t.tooltipVisible === void 0, "Slider", `\`${C}\` is deprecated, please use \`${T}\` instead.`);
});
const {
prefixCls: o,
rootPrefixCls: s,
direction: l,
getPopupContainer: u,
configProvider: c
} = It("slider", t), [f, d] = KTe(o), h = ls(), p = U(), v = U({}), g = (x, C) => {
v.value[x] = C;
}, m = L(() => t.tooltipPlacement ? t.tooltipPlacement : t.vertical ? l.value === "rtl" ? "left" : "right" : "top"), y = () => {
var x;
(x = p.value) === null || x === void 0 || x.focus();
}, b = () => {
var x;
(x = p.value) === null || x === void 0 || x.blur();
}, _ = (x) => {
i("update:value", x), i("change", x), h.onFieldChange();
}, O = (x) => {
i("blur", x);
};
a({
focus: y,
blur: b
});
const S = (x) => {
var {
tooltipPrefixCls: C
} = x, T = x.info, {
value: w,
dragging: P,
index: $
} = T, A = $3(T, ["value", "dragging", "index"]);
const {
tipFormatter: D,
tooltipOpen: E = t.tooltipVisible,
getTooltipPopupContainer: R
} = t, N = D ? v.value[$] || P : !1, V = E || E === void 0 && N;
return M(UTe, {
prefixCls: C,
title: D ? D(w) : "",
open: V,
placement: m.value,
transitionName: `${s.value}-zoom-down`,
key: $,
overlayClassName: `${o.value}-tooltip`,
getPopupContainer: R || (u == null ? void 0 : u.value)
}, {
default: () => [M(CY, j(j({}, A), {}, {
value: w,
onMouseenter: () => g($, !0),
onMouseleave: () => g($, !1)
}), null)]
});
};
return () => {
const {
tooltipPrefixCls: x,
range: C,
id: T = h.id.value
} = t, w = $3(t, ["tooltipPrefixCls", "range", "id"]), P = c.getPrefixCls("tooltip", x), $ = ye(n.class, {
[`${o.value}-rtl`]: l.value === "rtl"
}, d.value);
l.value === "rtl" && !w.vertical && (w.reverse = !w.reverse);
let A;
return typeof C == "object" && (A = C.draggableTrack), f(C ? M(ZTe, j(j(j({}, n), w), {}, {
step: w.step,
draggableTrack: A,
class: $,
ref: p,
handle: (D) => S({
tooltipPrefixCls: P,
prefixCls: o.value,
info: D
}),
prefixCls: o.value,
onChange: _,
onBlur: O
}), {
mark: r.mark
}) : M(HTe, j(j(j({}, n), w), {}, {
id: T,
step: w.step,
class: $,
ref: p,
handle: (D) => S({
tooltipPrefixCls: P,
prefixCls: o.value,
info: D
}),
prefixCls: o.value,
onChange: _,
onBlur: O
}), {
mark: r.mark
}));
};
}
}), nPe = sp(tPe);
var rPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "align-center", theme: "outlined" };
function A3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
iPe(t, i, n[i]);
});
}
return t;
}
function iPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var MD = function(e, n) {
var r = A3({}, e, n.attrs);
return M(lt, A3({}, r, {
icon: rPe
}), null);
};
MD.displayName = "AlignCenterOutlined";
MD.inheritAttrs = !1;
var aPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "align-left", theme: "outlined" };
function E3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
oPe(t, i, n[i]);
});
}
return t;
}
function oPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var ID = function(e, n) {
var r = E3({}, e, n.attrs);
return M(lt, E3({}, r, {
icon: aPe
}), null);
};
ID.displayName = "AlignLeftOutlined";
ID.inheritAttrs = !1;
var sPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "align-right", theme: "outlined" };
function M3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
lPe(t, i, n[i]);
});
}
return t;
}
function lPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var DD = function(e, n) {
var r = M3({}, e, n.attrs);
return M(lt, M3({}, r, {
icon: sPe
}), null);
};
DD.displayName = "AlignRightOutlined";
DD.inheritAttrs = !1;
var uPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z" } }] }, name: "bold", theme: "outlined" };
function I3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
cPe(t, i, n[i]);
});
}
return t;
}
function cPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var RD = function(e, n) {
var r = I3({}, e, n.attrs);
return M(lt, I3({}, r, {
icon: uPe
}), null);
};
RD.displayName = "BoldOutlined";
RD.inheritAttrs = !1;
var fPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z" } }] }, name: "border-bottom", theme: "outlined" };
function D3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
dPe(t, i, n[i]);
});
}
return t;
}
function dPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var kD = function(e, n) {
var r = D3({}, e, n.attrs);
return M(lt, D3({}, r, {
icon: fPe
}), null);
};
kD.displayName = "BorderBottomOutlined";
kD.inheritAttrs = !1;
var hPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "border-left", theme: "outlined" };
function R3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
pPe(t, i, n[i]);
});
}
return t;
}
function pPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var LD = function(e, n) {
var r = R3({}, e, n.attrs);
return M(lt, R3({}, r, {
icon: hPe
}), null);
};
LD.displayName = "BorderLeftOutlined";
LD.inheritAttrs = !1;
var vPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "border-right", theme: "outlined" };
function k3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
gPe(t, i, n[i]);
});
}
return t;
}
function gPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var ND = function(e, n) {
var r = k3({}, e, n.attrs);
return M(lt, k3({}, r, {
icon: vPe
}), null);
};
ND.displayName = "BorderRightOutlined";
ND.inheritAttrs = !1;
var mPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "border-top", theme: "outlined" };
function L3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
yPe(t, i, n[i]);
});
}
return t;
}
function yPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var BD = function(e, n) {
var r = L3({}, e, n.attrs);
return M(lt, L3({}, r, {
icon: mPe
}), null);
};
BD.displayName = "BorderTopOutlined";
BD.inheritAttrs = !1;
var bPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "database", theme: "outlined" };
function N3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
_Pe(t, i, n[i]);
});
}
return t;
}
function _Pe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var w0 = function(e, n) {
var r = N3({}, e, n.attrs);
return M(lt, N3({}, r, {
icon: bPe
}), null);
};
w0.displayName = "DatabaseOutlined";
w0.inheritAttrs = !1;
var OPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z" } }] }, name: "font-colors", theme: "outlined" };
function B3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
SPe(t, i, n[i]);
});
}
return t;
}
function SPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var zD = function(e, n) {
var r = B3({}, e, n.attrs);
return M(lt, B3({}, r, {
icon: OPe
}), null);
};
zD.displayName = "FontColorsOutlined";
zD.inheritAttrs = !1;
var xPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" } }] }, name: "italic", theme: "outlined" };
function z3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
wPe(t, i, n[i]);
});
}
return t;
}
function wPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var VD = function(e, n) {
var r = z3({}, e, n.attrs);
return M(lt, z3({}, r, {
icon: xPe
}), null);
};
VD.displayName = "ItalicOutlined";
VD.inheritAttrs = !1;
var CPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "radius-bottomleft", theme: "outlined" };
function V3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
TPe(t, i, n[i]);
});
}
return t;
}
function TPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var FD = function(e, n) {
var r = V3({}, e, n.attrs);
return M(lt, V3({}, r, {
icon: CPe
}), null);
};
FD.displayName = "RadiusBottomleftOutlined";
FD.inheritAttrs = !1;
var PPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z" } }] }, name: "radius-bottomright", theme: "outlined" };
function F3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
$Pe(t, i, n[i]);
});
}
return t;
}
function $Pe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var WD = function(e, n) {
var r = F3({}, e, n.attrs);
return M(lt, F3({}, r, {
icon: PPe
}), null);
};
WD.displayName = "RadiusBottomrightOutlined";
WD.inheritAttrs = !1;
var APe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "radius-upleft", theme: "outlined" };
function W3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
EPe(t, i, n[i]);
});
}
return t;
}
function EPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var QD = function(e, n) {
var r = W3({}, e, n.attrs);
return M(lt, W3({}, r, {
icon: APe
}), null);
};
QD.displayName = "RadiusUpleftOutlined";
QD.inheritAttrs = !1;
var MPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z" } }] }, name: "radius-upright", theme: "outlined" };
function Q3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
IPe(t, i, n[i]);
});
}
return t;
}
function IPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var HD = function(e, n) {
var r = Q3({}, e, n.attrs);
return M(lt, Q3({}, r, {
icon: MPe
}), null);
};
HD.displayName = "RadiusUprightOutlined";
HD.inheritAttrs = !1;
var DPe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z" } }] }, name: "skin", theme: "outlined" };
function H3(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? Object(arguments[e]) : {}, r = Object.keys(n);
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
return Object.getOwnPropertyDescriptor(n, i).enumerable;
}))), r.forEach(function(i) {
RPe(t, i, n[i]);
});
}
return t;
}
function RPe(t, e, n) {
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
var C0 = function(e, n) {
var r = H3({}, e, n.attrs);
return M(lt, H3({}, r, {
icon: DPe
}), null);
};
C0.displayName = "SkinOutlined";
C0.inheritAttrs = !1;
const _s = (t, e, { checkForDefaultPrevented: n = !0 } = {}) => (i) => {
const a = t == null ? void 0 : t(i);
if (n === !1 || !a)
return e == null ? void 0 : e(i);
};
var G3;
const qr = typeof window < "u", kPe = (t) => typeof t == "string", IY = () => {
}, LPe = qr && ((G3 = window == null ? void 0 : window.navigator) == null ? void 0 : G3.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
function DY(t) {
return typeof t == "function" ? t() : z(t);
}
function NPe(t) {
return t;
}
function GD(t) {
return Z9() ? (d0(t), !0) : !1;
}
function BPe(t, e = !0) {
vn() ? it(t) : e ? t() : Tt(t);
}
function Rl(t) {
var e;
const n = DY(t);
return (e = n == null ? void 0 : n.$el) != null ? e : n;
}
const jD = qr ? window : void 0;
function D_(...t) {
let e, n, r, i;
if (kPe(t[0]) || Array.isArray(t[0]) ? ([n, r, i] = t, e = jD) : [e, n, r, i] = t, !e)
return IY;
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
const a = [], o = () => {
a.forEach((c) => c()), a.length = 0;
}, s = (c, f, d, h) => (c.addEventListener(f, d, h), () => c.removeEventListener(f, d, h)), l = se(() => [Rl(e), DY(i)], ([c, f]) => {
o(), c && a.push(...n.flatMap((d) => r.map((h) => s(c, d, h, f))));
}, { immediate: !0, flush: "post" }), u = () => {
l(), o();
};
return GD(u), u;
}
let j3 = !1;
function zPe(t, e, n = {}) {
const { window: r = jD, ignore: i = [], capture: a = !0, detectIframe: o = !1 } = n;
if (!r)
return;
LPe && !j3 && (j3 = !0, Array.from(r.document.body.children).forEach((d) => d.addEventListener("click", IY)));
let s = !0;
const l = (d) => i.some((h) => {
if (typeof h == "string")
return Array.from(r.document.querySelectorAll(h)).some((p) => p === d.target || d.composedPath().includes(p));
{
const p = Rl(h);
return p && (d.target === p || d.composedPath().includes(p));
}
}), c = [
D_(r, "click", (d) => {
const h = Rl(t);
if (!(!h || h === d.target || d.composedPath().includes(h))) {
if (d.detail === 0 && (s = !l(d)), !s) {
s = !0;
return;
}
e(d);
}
}, { passive: !0, capture: a }),
D_(r, "pointerdown", (d) => {
const h = Rl(t);
h && (s = !d.composedPath().includes(h) && !l(d));
}, { passive: !0 }),
o && D_(r, "blur", (d) => {
var h;
const p = Rl(t);
((h = r.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(p != null && p.contains(r.document.activeElement)) && e(d);
})
].filter(Boolean);
return () => c.forEach((d) => d());
}
function VPe(t, e = !1) {
const n = U(), r = () => n.value = !!t();
return r(), BPe(r, e), n;
}
const Z3 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, U3 = "__vueuse_ssr_handlers__";
Z3[U3] = Z3[U3] || {};
var X3 = Object.getOwnPropertySymbols, FPe = Object.prototype.hasOwnProperty, WPe = Object.prototype.propertyIsEnumerable, QPe = (t, e) => {
var n = {};
for (var r in t)
FPe.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
if (t != null && X3)
for (var r of X3(t))
e.indexOf(r) < 0 && WPe.call(t, r) && (n[r] = t[r]);
return n;
};
function HPe(t, e, n = {}) {
const r = n, { window: i = jD } = r, a = QPe(r, ["window"]);
let o;
const s = VPe(() => i && "ResizeObserver" in i), l = () => {
o && (o.disconnect(), o = void 0);
}, u = se(() => Rl(t), (f) => {
l(), s.value && i && f && (o = new ResizeObserver(e), o.observe(f, a));
}, { immediate: !0, flush: "post" }), c = () => {
l(), u();
};
return GD(c), {
isSupported: s,
stop: c
};
}
var Y3;
(function(t) {
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
})(Y3 || (Y3 = {}));
var GPe = Object.defineProperty, q3 = Object.getOwnPropertySymbols, jPe = Object.prototype.hasOwnProperty, ZPe = Object.prototype.propertyIsEnumerable, K3 = (t, e, n) => e in t ? GPe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, UPe = (t, e) => {
for (var n in e || (e = {}))
jPe.call(e, n) && K3(t, n, e[n]);
if (q3)
for (var n of q3(e))
ZPe.call(e, n) && K3(t, n, e[n]);
return t;
};
const XPe = {
easeInSine: [0.12, 0, 0.39, 0],
easeOutSine: [0.61, 1, 0.88, 1],
easeInOutSine: [0.37, 0, 0.63, 1],
easeInQuad: [0.11, 0, 0.5, 0],
easeOutQuad: [0.5, 1, 0.89, 1],
easeInOutQuad: [0.45, 0, 0.55, 1],
easeInCubic: [0.32, 0, 0.67, 0],
easeOutCubic: [0.33, 1, 0.68, 1],
easeInOutCubic: [0.65, 0, 0.35, 1],
easeInQuart: [0.5, 0, 0.75, 0],
easeOutQuart: [0.25, 1, 0.5, 1],
easeInOutQuart: [0.76, 0, 0.24, 1],
easeInQuint: [0.64, 0, 0.78, 0],
easeOutQuint: [0.22, 1, 0.36, 1],
easeInOutQuint: [0.83, 0, 0.17, 1],
easeInExpo: [0.7, 0, 0.84, 0],
easeOutExpo: [0.16, 1, 0.3, 1],
easeInOutExpo: [0.87, 0, 0.13, 1],
easeInCirc: [0.55, 0, 1, 0.45],
easeOutCirc: [0, 0.55, 0.45, 1],
easeInOutCirc: [0.85, 0, 0.15, 1],
easeInBack: [0.36, 0, 0.66, -0.56],
easeOutBack: [0.34, 1.56, 0.64, 1],
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
};
UPe({
linear: NPe
}, XPe);
const YPe = () => qr && /firefox/i.test(window.navigator.userAgent), ZD = (t) => {
let e, n;
return t.type === "touchend" ? (n = t.changedTouches[0].clientY, e = t.changedTouches[0].clientX) : t.type.startsWith("touch") ? (n = t.touches[0].clientY, e = t.touches[0].clientX) : (n = t.clientY, e = t.clientX), {
clientX: e,
clientY: n
};
};
/**
* @vue/shared v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
process.env.NODE_ENV !== "production" && Object.freeze({});
process.env.NODE_ENV !== "production" && Object.freeze([]);
const dm = () => {
}, qPe = Object.prototype.hasOwnProperty, H1 = (t, e) => qPe.call(t, e), KPe = Array.isArray, Hv = (t) => typeof t == "function", Oa = (t) => typeof t == "string", hm = (t) => t !== null && typeof t == "object", JPe = (t) => t === void 0, G1 = (t) => typeof t == "boolean", Qs = (t) => typeof t == "number", pm = (t) => typeof Element > "u" ? !1 : t instanceof Element, J3 = (t) => Gl(t), e$e = (t) => Oa(t) ? !Number.isNaN(Number(t)) : !1;
class t$e extends Error {
constructor(e) {
super(e), this.name = "ElementPlusError";
}
}
function Zi(t, e) {
if (process.env.NODE_ENV !== "production") {
const n = Oa(t) ? new t$e(`[${t}] ${e}`) : t;
console.warn(n);
}
}
const n$e = "utils/dom/style";
function tA(t, e = "px") {
if (!t)
return "";
if (Qs(t) || e$e(t))
return `${t}${e}`;
if (Oa(t))
return t;
Zi(n$e, "binding value must be a string or number");
}
/*! Element Plus Icons Vue v2.3.1 */
var r$e = /* @__PURE__ */ te({
name: "ArrowDown",
__name: "arrow-down",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
})
]));
}
}), i$e = r$e, a$e = /* @__PURE__ */ te({
name: "CircleCheck",
__name: "circle-check",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
}),
He("path", {
fill: "currentColor",
d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
})
]));
}
}), o$e = a$e, s$e = /* @__PURE__ */ te({
name: "CircleClose",
__name: "circle-close",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
}),
He("path", {
fill: "currentColor",
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
})
]));
}
}), RY = s$e, l$e = /* @__PURE__ */ te({
name: "Close",
__name: "close",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
})
]));
}
}), u$e = l$e, c$e = /* @__PURE__ */ te({
name: "Hide",
__name: "hide",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
}),
He("path", {
fill: "currentColor",
d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
})
]));
}
}), f$e = c$e, d$e = /* @__PURE__ */ te({
name: "Loading",
__name: "loading",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
})
]));
}
}), kY = d$e, h$e = /* @__PURE__ */ te({
name: "View",
__name: "view",
setup(t) {
return (e, n) => (pe(), Qe("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024"
}, [
He("path", {
fill: "currentColor",
d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
})
]));
}
}), p$e = h$e;
const LY = "__epPropKey", jt = (t) => t, v$e = (t) => hm(t) && !!t[LY], $x = (t, e) => {
if (!hm(t) || v$e(t))
return t;
const { values: n, required: r, default: i, type: a, validator: o } = t, l = {
type: a,
required: !!r,
validator: n || o ? (u) => {
let c = !1, f = [];
if (n && (f = Array.from(n), H1(t, "default") && f.push(i), c || (c = f.includes(u))), o && (c || (c = o(u))), !c && f.length > 0) {
const d = [...new Set(f)].map((h) => JSON.stringify(h)).join(", ");
Qle(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`);
}
return c;
} : void 0,
[LY]: !0
};
return H1(t, "default") && (l.default = i), l;
}, rr = (t) => M1(Object.entries(t).map(([e, n]) => [
e,
$x(n, e)
])), j1 = jt([
String,
Object,
Function
]), g$e = {
validating: kY,
success: o$e,
error: RY
}, Rf = (t, e) => {
if (t.install = (n) => {
for (const r of [t, ...Object.values(e ?? {})])
n.component(r.name, r);
}, e)
for (const [n, r] of Object.entries(e))
t[n] = r;
return t;
}, UD = (t) => (t.install = dm, t), Xc = {
tab: "Tab",
enter: "Enter",
space: "Space",
left: "ArrowLeft",
up: "ArrowUp",
right: "ArrowRight",
down: "ArrowDown",
esc: "Escape",
delete: "Delete",
backspace: "Backspace",
numpadEnter: "NumpadEnter",
pageUp: "PageUp",
pageDown: "PageDown",
home: "Home",
end: "End"
}, Hs = "update:modelValue", NY = "change", m$e = ["", "default", "small", "large"], y$e = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), b$e = (t) => t, _$e = ["class", "style"], O$e = /^on[A-Z]/, S$e = (t = {}) => {
const { excludeListeners: e = !1, excludeKeys: n } = t, r = L(() => ((n == null ? void 0 : n.value) || []).concat(_$e)), i = vn();
return i ? L(() => {
var a;
return M1(Object.entries((a = i.proxy) == null ? void 0 : a.$attrs).filter(([o]) => !r.value.includes(o) && !(e && O$e.test(o))));
}) : (Zi("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), L(() => ({})));
}, T0 = ({ from: t, replacement: e, scope: n, version: r, ref: i, type: a = "API" }, o) => {
se(() => z(o), (s) => {
s && Zi(n, `[${a}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
For more detail, please visit: ${i}
`);
}, {
immediate: !0
});
};
var x$e = {
name: "en",
el: {
breadcrumb: {
label: "Breadcrumb"
},
colorpicker: {
confirm: "OK",
clear: "Clear",
defaultLabel: "color picker",
description: "current color is {color}. press enter to select a new color."
},
datepicker: {
now: "Now",
today: "Today",
cancel: "Cancel",
clear: "Clear",
confirm: "OK",
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
monthTablePrompt: "Use the arrow keys and enter to select the month",
yearTablePrompt: "Use the arrow keys and enter to select the year",
selectedDate: "Selected date",
selectDate: "Select date",
selectTime: "Select time",
startDate: "Start Date",
startTime: "Start Time",
endDate: "End Date",
endTime: "End Time",
prevYear: "Previous Year",
nextYear: "Next Year",
prevMonth: "Previous Month",
nextMonth: "Next Month",
year: "",
month1: "January",
month2: "February",
month3: "March",
month4: "April",
month5: "May",
month6: "June",
month7: "July",
month8: "August",
month9: "September",
month10: "October",
month11: "November",
month12: "December",
week: "week",
weeks: {
sun: "Sun",
mon: "Mon",
tue: "Tue",
wed: "Wed",
thu: "Thu",
fri: "Fri",
sat: "Sat"
},
weeksFull: {
sun: "Sunday",
mon: "Monday",
tue: "Tuesday",
wed: "Wednesday",
thu: "Thursday",
fri: "Friday",
sat: "Saturday"
},
months: {
jan: "Jan",
feb: "Feb",
mar: "Mar",
apr: "Apr",
may: "May",
jun: "Jun",
jul: "Jul",
aug: "Aug",
sep: "Sep",
oct: "Oct",
nov: "Nov",
dec: "Dec"
}
},
inputNumber: {
decrease: "decrease number",
increase: "increase number"
},
select: {
loading: "Loading",
noMatch: "No matching data",
noData: "No data",
placeholder: "Select"
},
dropdown: {
toggleDropdown: "Toggle Dropdown"
},
cascader: {
noMatch: "No matching data",
loading: "Loading",
placeholder: "Select",
noData: "No data"
},
pagination: {
goto: "Go to",
pagesize: "/page",
total: "Total {total}",
pageClassifier: "",
page: "Page",
prev: "Go to previous page",
next: "Go to next page",
currentPage: "page {pager}",
prevPages: "Previous {pager} pages",
nextPages: "Next {pager} pages",
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
},
dialog: {
close: "Close this dialog"
},
drawer: {
close: "Close this dialog"
},
messagebox: {
title: "Message",
confirm: "OK",
cancel: "Cancel",
error: "Illegal input",
close: "Close this dialog"
},
upload: {
deleteTip: "press delete to remove",
delete: "Delete",
preview: "Preview",
continue: "Continue"
},
slider: {
defaultLabel: "slider between {min} and {max}",
defaultRangeStartLabel: "pick start value",
defaultRangeEndLabel: "pick end value"
},
table: {
emptyText: "No Data",
confirmFilter: "Confirm",
resetFilter: "Reset",
clearFilter: "All",
sumText: "Sum"
},
tour: {
next: "Next",
previous: "Previous",
finish: "Finish"
},
tree: {
emptyText: "No Data"
},
transfer: {
noMatch: "No matching data",
noData: "No data",
titles: ["List 1", "List 2"],
filterPlaceholder: "Enter keyword",
noCheckedFormat: "{total} items",
hasCheckedFormat: "{checked}/{total} checked"
},
image: {
error: "FAILED"
},
pageHeader: {
title: "Back"
},
popconfirm: {
confirmButtonText: "Yes",
cancelButtonText: "No"
},
carousel: {
leftArrow: "Carousel arrow left",
rightArrow: "Carousel arrow right",
indicator: "Carousel switch to index {index}"
}
}
};
const w$e = (t) => (e, n) => C$e(e, n, z(t)), C$e = (t, e, n) => kt(n, t, t).replace(/\{(\w+)\}/g, (r, i) => {
var a;
return `${(a = e == null ? void 0 : e[i]) != null ? a : `{${i}}`}`;
}), T$e = (t) => {
const e = L(() => z(t).name), n = op(t) ? t : U(t);
return {
lang: e,
locale: n,
t: w$e(t)
};
}, P$e = Symbol("localeContextKey"), $$e = (t) => {
const e = Ge(P$e, U());
return T$e(L(() => e.value || x$e));
}, LC = "el", A$e = "is-", Nu = (t, e, n, r, i) => {
let a = `${t}-${e}`;
return n && (a += `-${n}`), r && (a += `__${r}`), i && (a += `--${i}`), a;
}, E$e = Symbol("namespaceContextKey"), XD = (t) => {
const e = vn() ? Ge(E$e, U(LC)) : U(LC);
return L(() => z(e) || LC);
}, Jn = (t, e) => {
const n = XD();
return {
namespace: n,
b: (v = "") => Nu(n.value, t, v, "", ""),
e: (v) => v ? Nu(n.value, t, "", v, "") : "",
m: (v) => v ? Nu(n.value, t, "", "", v) : "",
be: (v, g) => v && g ? Nu(n.value, t, v, g, "") : "",
em: (v, g) => v && g ? Nu(n.value, t, "", v, g) : "",
bm: (v, g) => v && g ? Nu(n.value, t, v, "", g) : "",
bem: (v, g, m) => v && g && m ? Nu(n.value, t, v, g, m) : "",
is: (v, ...g) => {
const m = g.length >= 1 ? g[0] : !0;
return v && m ? `${A$e}${v}` : "";
},
cssVar: (v) => {
const g = {};
for (const m in v)
v[m] && (g[`--${n.value}-${m}`] = v[m]);
return g;
},
cssVarName: (v) => `--${n.value}-${v}`,
cssVarBlock: (v) => {
const g = {};
for (const m in v)
v[m] && (g[`--${n.value}-${t}-${m}`] = v[m]);
return g;
},
cssVarBlockName: (v) => `--${n.value}-${t}-${v}`
};
}, M$e = $x({
type: jt(Boolean),
default: null
}), I$e = $x({
type: jt(Function)
}), BY = (t) => {
const e = `update:${t}`, n = `onUpdate:${t}`, r = [e], i = {
[t]: M$e,
[n]: I$e
};
return {
useModelToggle: ({
indicator: o,
toggleReason: s,
shouldHideWhenRouteChanges: l,
shouldProceed: u,
onShow: c,
onHide: f
}) => {
const d = vn(), { emit: h } = d, p = d.props, v = L(() => Hv(p[n])), g = L(() => p[t] === null), m = (x) => {
o.value !== !0 && (o.value = !0, s && (s.value = x), Hv(c) && c(x));
}, y = (x) => {
o.value !== !1 && (o.value = !1, s && (s.value = x), Hv(f) && f(x));
}, b = (x) => {
if (p.disabled === !0 || Hv(u) && !u())
return;
const C = v.value && qr;
C && h(e, !0), (g.value || !C) && m(x);
}, _ = (x) => {
if (p.disabled === !0 || !qr)
return;
const C = v.value && qr;
C && h(e, !1), (g.value || !C) && y(x);
}, O = (x) => {
G1(x) && (p.disabled && x ? v.value && h(e, !1) : o.value !== x && (x ? m() : y()));
}, S = () => {
o.value ? _() : b();
};
return se(() => p[t], O), l && d.appContext.config.globalProperties.$route !== void 0 && se(() => ({
...d.proxy.$route
}), () => {
l.value && o.value && _();
}), it(() => {
O(p[t]);
}), {
hide: _,
show: b,
toggle: S,
hasUpdateHandler: v
};
},
useModelToggleProps: i,
useModelToggleEmits: r
};
};
BY("modelValue");
const zY = (t) => {
const e = vn();
return L(() => {
var n, r;
return (r = (n = e == null ? void 0 : e.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[t];
});
};
var Si = "top", Aa = "bottom", Ea = "right", xi = "left", YD = "auto", P0 = [Si, Aa, Ea, xi], Lh = "start", vm = "end", D$e = "clippingParents", VY = "viewport", ev = "popper", R$e = "reference", e6 = P0.reduce(function(t, e) {
return t.concat([e + "-" + Lh, e + "-" + vm]);
}, []), qD = [].concat(P0, [YD]).reduce(function(t, e) {
return t.concat([e, e + "-" + Lh, e + "-" + vm]);
}, []), k$e = "beforeRead", L$e = "read", N$e = "afterRead", B$e = "beforeMain", z$e = "main", V$e = "afterMain", F$e = "beforeWrite", W$e = "write", Q$e = "afterWrite", H$e = [k$e, L$e, N$e, B$e, z$e, V$e, F$e, W$e, Q$e];
function rs(t) {
return t ? (t.nodeName || "").toLowerCase() : null;
}
function vo(t) {
if (t == null) return window;
if (t.toString() !== "[object Window]") {
var e = t.ownerDocument;
return e && e.defaultView || window;
}
return t;
}
function Nh(t) {
var e = vo(t).Element;
return t instanceof e || t instanceof Element;
}
function Sa(t) {
var e = vo(t).HTMLElement;
return t instanceof e || t instanceof HTMLElement;
}
function KD(t) {
if (typeof ShadowRoot > "u") return !1;
var e = vo(t).ShadowRoot;
return t instanceof e || t instanceof ShadowRoot;
}
function G$e(t) {
var e = t.state;
Object.keys(e.elements).forEach(function(n) {
var r = e.styles[n] || {}, i = e.attributes[n] || {}, a = e.elements[n];
!Sa(a) || !rs(a) || (Object.assign(a.style, r), Object.keys(i).forEach(function(o) {
var s = i[o];
s === !1 ? a.removeAttribute(o) : a.setAttribute(o, s === !0 ? "" : s);
}));
});
}
function j$e(t) {
var e = t.state, n = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
return Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow), function() {
Object.keys(e.elements).forEach(function(r) {
var i = e.elements[r], a = e.attributes[r] || {}, o = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), s = o.reduce(function(l, u) {
return l[u] = "", l;
}, {});
!Sa(i) || !rs(i) || (Object.assign(i.style, s), Object.keys(a).forEach(function(l) {
i.removeAttribute(l);
}));
});
};
}
var FY = { name: "applyStyles", enabled: !0, phase: "write", fn: G$e, effect: j$e, requires: ["computeStyles"] };
function Zo(t) {
return t.split("-")[0];
}
var Yc = Math.max, Z1 = Math.min, Bh = Math.round;
function zh(t, e) {
e === void 0 && (e = !1);
var n = t.getBoundingClientRect(), r = 1, i = 1;
if (Sa(t) && e) {
var a = t.offsetHeight, o = t.offsetWidth;
o > 0 && (r = Bh(n.width) / o || 1), a > 0 && (i = Bh(n.height) / a || 1);
}
return { width: n.width / r, height: n.height / i, top: n.top / i, right: n.right / r, bottom: n.bottom / i, left: n.left / r, x: n.left / r, y: n.top / i };
}
function JD(t) {
var e = zh(t), n = t.offsetWidth, r = t.offsetHeight;
return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), { x: t.offsetLeft, y: t.offsetTop, width: n, height: r };
}
function WY(t, e) {
var n = e.getRootNode && e.getRootNode();
if (t.contains(e)) return !0;
if (n && KD(n)) {
var r = e;
do {
if (r && t.isSameNode(r)) return !0;
r = r.parentNode || r.host;
} while (r);
}
return !1;
}
function Gs(t) {
return vo(t).getComputedStyle(t);
}
function Z$e(t) {
return ["table", "td", "th"].indexOf(rs(t)) >= 0;
}
function xu(t) {
return ((Nh(t) ? t.ownerDocument : t.document) || window.document).documentElement;
}
function Ax(t) {
return rs(t) === "html" ? t : t.assignedSlot || t.parentNode || (KD(t) ? t.host : null) || xu(t);
}
function t6(t) {
return !Sa(t) || Gs(t).position === "fixed" ? null : t.offsetParent;
}
function U$e(t) {
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
if (n && Sa(t)) {
var r = Gs(t);
if (r.position === "fixed") return null;
}
var i = Ax(t);
for (KD(i) && (i = i.host); Sa(i) && ["html", "body"].indexOf(rs(i)) < 0; ) {
var a = Gs(i);
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none") return i;
i = i.parentNode;
}
return null;
}
function $0(t) {
for (var e = vo(t), n = t6(t); n && Z$e(n) && Gs(n).position === "static"; ) n = t6(n);
return n && (rs(n) === "html" || rs(n) === "body" && Gs(n).position === "static") ? e : n || U$e(t) || e;
}
function eR(t) {
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
}
function Sg(t, e, n) {
return Yc(t, Z1(e, n));
}
function X$e(t, e, n) {
var r = Sg(t, e, n);
return r > n ? n : r;
}
function QY() {
return { top: 0, right: 0, bottom: 0, left: 0 };
}
function HY(t) {
return Object.assign({}, QY(), t);
}
function GY(t, e) {
return e.reduce(function(n, r) {
return n[r] = t, n;
}, {});
}
var Y$e = function(t, e) {
return t = typeof t == "function" ? t(Object.assign({}, e.rects, { placement: e.placement })) : t, HY(typeof t != "number" ? t : GY(t, P0));
};
function q$e(t) {
var e, n = t.state, r = t.name, i = t.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = Zo(n.placement), l = eR(s), u = [xi, Ea].indexOf(s) >= 0, c = u ? "height" : "width";
if (!(!a || !o)) {
var f = Y$e(i.padding, n), d = JD(a), h = l === "y" ? Si : xi, p = l === "y" ? Aa : Ea, v = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], g = o[l] - n.rects.reference[l], m = $0(a), y = m ? l === "y" ? m.clientHeight || 0 : m.clientWidth || 0 : 0, b = v / 2 - g / 2, _ = f[h], O = y - d[c] - f[p], S = y / 2 - d[c] / 2 + b, x = Sg(_, S, O), C = l;
n.modifiersData[r] = (e = {}, e[C] = x, e.centerOffset = x - S, e);
}
}
function K$e(t) {
var e = t.state, n = t.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r;
i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || !WY(e.elements.popper, i) || (e.elements.arrow = i));
}
var J$e = { name: "arrow", enabled: !0, phase: "main", fn: q$e, effect: K$e, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
function Vh(t) {
return t.split("-")[1];
}
var e2e = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
function t2e(t) {
var e = t.x, n = t.y, r = window, i = r.devicePixelRatio || 1;
return { x: Bh(e * i) / i || 0, y: Bh(n * i) / i || 0 };
}
function n6(t) {
var e, n = t.popper, r = t.popperRect, i = t.placement, a = t.variation, o = t.offsets, s = t.position, l = t.gpuAcceleration, u = t.adaptive, c = t.roundOffsets, f = t.isFixed, d = o.x, h = d === void 0 ? 0 : d, p = o.y, v = p === void 0 ? 0 : p, g = typeof c == "function" ? c({ x: h, y: v }) : { x: h, y: v };
h = g.x, v = g.y;
var m = o.hasOwnProperty("x"), y = o.hasOwnProperty("y"), b = xi, _ = Si, O = window;
if (u) {
var S = $0(n), x = "clientHeight", C = "clientWidth";
if (S === vo(n) && (S = xu(n), Gs(S).position !== "static" && s === "absolute" && (x = "scrollHeight", C = "scrollWidth")), S = S, i === Si || (i === xi || i === Ea) && a === vm) {
_ = Aa;
var T = f && S === O && O.visualViewport ? O.visualViewport.height : S[x];
v -= T - r.height, v *= l ? 1 : -1;
}
if (i === xi || (i === Si || i === Aa) && a === vm) {
b = Ea;
var w = f && S === O && O.visualViewport ? O.visualViewport.width : S[C];
h -= w - r.width, h *= l ? 1 : -1;
}
}
var P = Object.assign({ position: s }, u && e2e), $ = c === !0 ? t2e({ x: h, y: v }) : { x: h, y: v };
if (h = $.x, v = $.y, l) {
var A;
return Object.assign({}, P, (A = {}, A[_] = y ? "0" : "", A[b] = m ? "0" : "", A.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", A));
}
return Object.assign({}, P, (e = {}, e[_] = y ? v + "px" : "", e[b] = m ? h + "px" : "", e.transform = "", e));
}
function n2e(t) {
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, l = s === void 0 ? !0 : s, u = { placement: Zo(e.placement), variation: Vh(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: i, isFixed: e.options.strategy === "fixed" };
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, n6(Object.assign({}, u, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: o, roundOffsets: l })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, n6(Object.assign({}, u, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: l })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement });
}
var jY = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: n2e, data: {} }, Ly = { passive: !0 };
function r2e(t) {
var e = t.state, n = t.instance, r = t.options, i = r.scroll, a = i === void 0 ? !0 : i, o = r.resize, s = o === void 0 ? !0 : o, l = vo(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
return a && u.forEach(function(c) {
c.addEventListener("scroll", n.update, Ly);
}), s && l.addEventListener("resize", n.update, Ly), function() {
a && u.forEach(function(c) {
c.removeEventListener("scroll", n.update, Ly);
}), s && l.removeEventListener("resize", n.update, Ly);
};
}
var ZY = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
}, effect: r2e, data: {} }, i2e = { left: "right", right: "left", bottom: "top", top: "bottom" };
function R_(t) {
return t.replace(/left|right|bottom|top/g, function(e) {
return i2e[e];
});
}
var a2e = { start: "end", end: "start" };
function r6(t) {
return t.replace(/start|end/g, function(e) {
return a2e[e];
});
}
function tR(t) {
var e = vo(t), n = e.pageXOffset, r = e.pageYOffset;
return { scrollLeft: n, scrollTop: r };
}
function nR(t) {
return zh(xu(t)).left + tR(t).scrollLeft;
}
function o2e(t) {
var e = vo(t), n = xu(t), r = e.visualViewport, i = n.clientWidth, a = n.clientHeight, o = 0, s = 0;
return r && (i = r.width, a = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (o = r.offsetLeft, s = r.offsetTop)), { width: i, height: a, x: o + nR(t), y: s };
}
function s2e(t) {
var e, n = xu(t), r = tR(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = Yc(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Yc(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + nR(t), l = -r.scrollTop;
return Gs(i || n).direction === "rtl" && (s += Yc(n.clientWidth, i ? i.clientWidth : 0) - a), { width: a, height: o, x: s, y: l };
}
function rR(t) {
var e = Gs(t), n = e.overflow, r = e.overflowX, i = e.overflowY;
return /auto|scroll|overlay|hidden/.test(n + i + r);
}
function UY(t) {
return ["html", "body", "#document"].indexOf(rs(t)) >= 0 ? t.ownerDocument.body : Sa(t) && rR(t) ? t : UY(Ax(t));
}
function xg(t, e) {
var n;
e === void 0 && (e = []);
var r = UY(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), a = vo(r), o = i ? [a].concat(a.visualViewport || [], rR(r) ? r : []) : r, s = e.concat(o);
return i ? s : s.concat(xg(Ax(o)));
}
function nA(t) {
return Object.assign({}, t, { left: t.x, top: t.y, right: t.x + t.width, bottom: t.y + t.height });
}
function l2e(t) {
var e = zh(t);
return e.top = e.top + t.clientTop, e.left = e.left + t.clientLeft, e.bottom = e.top + t.clientHeight, e.right = e.left + t.clientWidth, e.width = t.clientWidth, e.height = t.clientHeight, e.x = e.left, e.y = e.top, e;
}
function i6(t, e) {
return e === VY ? nA(o2e(t)) : Nh(e) ? l2e(e) : nA(s2e(xu(t)));
}
function u2e(t) {
var e = xg(Ax(t)), n = ["absolute", "fixed"].indexOf(Gs(t).position) >= 0, r = n && Sa(t) ? $0(t) : t;
return Nh(r) ? e.filter(function(i) {
return Nh(i) && WY(i, r) && rs(i) !== "body";
}) : [];
}
function c2e(t, e, n) {
var r = e === "clippingParents" ? u2e(t) : [].concat(e), i = [].concat(r, [n]), a = i[0], o = i.reduce(function(s, l) {
var u = i6(t, l);
return s.top = Yc(u.top, s.top), s.right = Z1(u.right, s.right), s.bottom = Z1(u.bottom, s.bottom), s.left = Yc(u.left, s.left), s;
}, i6(t, a));
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
}
function XY(t) {
var e = t.reference, n = t.element, r = t.placement, i = r ? Zo(r) : null, a = r ? Vh(r) : null, o = e.x + e.width / 2 - n.width / 2, s = e.y + e.height / 2 - n.height / 2, l;
switch (i) {
case Si:
l = { x: o, y: e.y - n.height };
break;
case Aa:
l = { x: o, y: e.y + e.height };
break;
case Ea:
l = { x: e.x + e.width, y: s };
break;
case xi:
l = { x: e.x - n.width, y: s };
break;
default:
l = { x: e.x, y: e.y };
}
var u = i ? eR(i) : null;
if (u != null) {
var c = u === "y" ? "height" : "width";
switch (a) {
case Lh:
l[u] = l[u] - (e[c] / 2 - n[c] / 2);
break;
case vm:
l[u] = l[u] + (e[c] / 2 - n[c] / 2);
break;
}
}
return l;
}
function gm(t, e) {
e === void 0 && (e = {});
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.boundary, o = a === void 0 ? D$e : a, s = n.rootBoundary, l = s === void 0 ? VY : s, u = n.elementContext, c = u === void 0 ? ev : u, f = n.altBoundary, d = f === void 0 ? !1 : f, h = n.padding, p = h === void 0 ? 0 : h, v = HY(typeof p != "number" ? p : GY(p, P0)), g = c === ev ? R$e : ev, m = t.rects.popper, y = t.elements[d ? g : c], b = c2e(Nh(y) ? y : y.contextElement || xu(t.elements.popper), o, l), _ = zh(t.elements.reference), O = XY({ reference: _, element: m, strategy: "absolute", placement: i }), S = nA(Object.assign({}, m, O)), x = c === ev ? S : _, C = { top: b.top - x.top + v.top, bottom: x.bottom - b.bottom + v.bottom, left: b.left - x.left + v.left, right: x.right - b.right + v.right }, T = t.modifiersData.offset;
if (c === ev && T) {
var w = T[i];
Object.keys(C).forEach(function(P) {
var $ = [Ea, Aa].indexOf(P) >= 0 ? 1 : -1, A = [Si, Aa].indexOf(P) >= 0 ? "y" : "x";
C[P] += w[A] * $;
});
}
return C;
}
function f2e(t, e) {
e === void 0 && (e = {});
var n = e, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? qD : l, c = Vh(r), f = c ? s ? e6 : e6.filter(function(p) {
return Vh(p) === c;
}) : P0, d = f.filter(function(p) {
return u.indexOf(p) >= 0;
});
d.length === 0 && (d = f);
var h = d.reduce(function(p, v) {
return p[v] = gm(t, { placement: v, boundary: i, rootBoundary: a, padding: o })[Zo(v)], p;
}, {});
return Object.keys(h).sort(function(p, v) {
return h[p] - h[v];
});
}
function d2e(t) {
if (Zo(t) === YD) return [];
var e = R_(t);
return [r6(t), e, r6(e)];
}
function h2e(t) {
var e = t.state, n = t.options, r = t.name;
if (!e.modifiersData[r]._skip) {
for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, l = n.fallbackPlacements, u = n.padding, c = n.boundary, f = n.rootBoundary, d = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, g = e.options.placement, m = Zo(g), y = m === g, b = l || (y || !p ? [R_(g)] : d2e(g)), _ = [g].concat(b).reduce(function(ne, ee) {
return ne.concat(Zo(ee) === YD ? f2e(e, { placement: ee, boundary: c, rootBoundary: f, padding: u, flipVariations: p, allowedAutoPlacements: v }) : ee);
}, []), O = e.rects.reference, S = e.rects.popper, x = /* @__PURE__ */ new Map(), C = !0, T = _[0], w = 0; w < _.length; w++) {
var P = _[w], $ = Zo(P), A = Vh(P) === Lh, D = [Si, Aa].indexOf($) >= 0, E = D ? "width" : "height", R = gm(e, { placement: P, boundary: c, rootBoundary: f, altBoundary: d, padding: u }), N = D ? A ? Ea : xi : A ? Aa : Si;
O[E] > S[E] && (N = R_(N));
var V = R_(N), B = [];
if (a && B.push(R[$] <= 0), s && B.push(R[N] <= 0, R[V] <= 0), B.every(function(ne) {
return ne;
})) {
T = P, C = !1;
break;
}
x.set(P, B);
}
if (C) for (var W = p ? 3 : 1, F = function(ne) {
var ee = _.find(function(oe) {
var K = x.get(oe);
if (K) return K.slice(0, ne).every(function(ie) {
return ie;
});
});
if (ee) return T = ee, "break";
}, Q = W; Q > 0; Q--) {
var Z = F(Q);
if (Z === "break") break;
}
e.placement !== T && (e.modifiersData[r]._skip = !0, e.placement = T, e.reset = !0);
}
}
var p2e = { name: "flip", enabled: !0, phase: "main", fn: h2e, requiresIfExists: ["offset"], data: { _skip: !1 } };
function a6(t, e, n) {
return n === void 0 && (n = { x: 0, y: 0 }), { top: t.top - e.height - n.y, right: t.right - e.width + n.x, bottom: t.bottom - e.height + n.y, left: t.left - e.width - n.x };
}
function o6(t) {
return [Si, Ea, Aa, xi].some(function(e) {
return t[e] >= 0;
});
}
function v2e(t) {
var e = t.state, n = t.name, r = e.rects.reference, i = e.rects.popper, a = e.modifiersData.preventOverflow, o = gm(e, { elementContext: "reference" }), s = gm(e, { altBoundary: !0 }), l = a6(o, r), u = a6(s, i, a), c = o6(l), f = o6(u);
e.modifiersData[n] = { referenceClippingOffsets: l, popperEscapeOffsets: u, isReferenceHidden: c, hasPopperEscaped: f }, e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-reference-hidden": c, "data-popper-escaped": f });
}
var g2e = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: v2e };
function m2e(t, e, n) {
var r = Zo(t), i = [xi, Si].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, e, { placement: t })) : n, o = a[0], s = a[1];
return o = o || 0, s = (s || 0) * i, [xi, Ea].indexOf(r) >= 0 ? { x: s, y: o } : { x: o, y: s };
}
function y2e(t) {
var e = t.state, n = t.options, r = t.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = qD.reduce(function(c, f) {
return c[f] = m2e(f, e.rects, a), c;
}, {}), s = o[e.placement], l = s.x, u = s.y;
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += u), e.modifiersData[r] = o;
}
var b2e = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: y2e };
function _2e(t) {
var e = t.state, n = t.name;
e.modifiersData[n] = XY({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement });
}
var YY = { name: "popperOffsets", enabled: !0, phase: "read", fn: _2e, data: {} };
function O2e(t) {
return t === "x" ? "y" : "x";
}
function S2e(t) {
var e = t.state, n = t.options, r = t.name, i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !1 : o, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, f = n.padding, d = n.tether, h = d === void 0 ? !0 : d, p = n.tetherOffset, v = p === void 0 ? 0 : p, g = gm(e, { boundary: l, rootBoundary: u, padding: f, altBoundary: c }), m = Zo(e.placement), y = Vh(e.placement), b = !y, _ = eR(m), O = O2e(_), S = e.modifiersData.popperOffsets, x = e.rects.reference, C = e.rects.popper, T = typeof v == "function" ? v(Object.assign({}, e.rects, { placement: e.placement })) : v, w = typeof T == "number" ? { mainAxis: T, altAxis: T } : Object.assign({ mainAxis: 0, altAxis: 0 }, T), P = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, $ = { x: 0, y: 0 };
if (S) {
if (a) {
var A, D = _ === "y" ? Si : xi, E = _ === "y" ? Aa : Ea, R = _ === "y" ? "height" : "width", N = S[_], V = N + g[D], B = N - g[E], W = h ? -C[R] / 2 : 0, F = y === Lh ? x[R] : C[R], Q = y === Lh ? -C[R] : -x[R], Z = e.elements.arrow, ne = h && Z ? JD(Z) : { width: 0, height: 0 }, ee = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : QY(), oe = ee[D], K = ee[E], ie = Sg(0, x[R], ne[R]), X = b ? x[R] / 2 - W - ie - oe - w.mainAxis : F - ie - oe - w.mainAxis, H = b ? -x[R] / 2 + W + ie + K + w.mainAxis : Q + ie + K + w.mainAxis, G = e.elements.arrow && $0(e.elements.arrow), re = G ? _ === "y" ? G.clientTop || 0 : G.clientLeft || 0 : 0, fe = (A = P == null ? void 0 : P[_]) != null ? A : 0, de = N + X - fe - re, Ee = N + H - fe, $e = Sg(h ? Z1(V, de) : V, N, h ? Yc(B, Ee) : B);
S[_] = $e, $[_] = $e - N;
}
if (s) {
var Se, be = _ === "x" ? Si : xi, he = _ === "x" ? Aa : Ea, Te = S[O], ze = O === "y" ? "height" : "width", ut = Te + g[be], ct = Te - g[he], Dt = [Si, xi].indexOf(m) !== -1, ve = (Se = P == null ? void 0 : P[O]) != null ? Se : 0, Xe = Dt ? ut : Te - x[ze] - C[ze] - ve + w.altAxis, Rt = Dt ? Te + x[ze] + C[ze] - ve - w.altAxis : ct, An = h && Dt ? X$e(Xe, Te, Rt) : Sg(h ? Xe : ut, Te, h ? Rt : ct);
S[O] = An, $[O] = An - Te;
}
e.modifiersData[r] = $;
}
}
var x2e = { name: "preventOverflow", enabled: !0, phase: "main", fn: S2e, requiresIfExists: ["offset"] };
function w2e(t) {
return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop };
}
function C2e(t) {
return t === vo(t) || !Sa(t) ? tR(t) : w2e(t);
}
function T2e(t) {
var e = t.getBoundingClientRect(), n = Bh(e.width) / t.offsetWidth || 1, r = Bh(e.height) / t.offsetHeight || 1;
return n !== 1 || r !== 1;
}
function P2e(t, e, n) {
n === void 0 && (n = !1);
var r = Sa(e), i = Sa(e) && T2e(e), a = xu(e), o = zh(t, i), s = { scrollLeft: 0, scrollTop: 0 }, l = { x: 0, y: 0 };
return (r || !r && !n) && ((rs(e) !== "body" || rR(a)) && (s = C2e(e)), Sa(e) ? (l = zh(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : a && (l.x = nR(a))), { x: o.left + s.scrollLeft - l.x, y: o.top + s.scrollTop - l.y, width: o.width, height: o.height };
}
function $2e(t) {
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
t.forEach(function(a) {
e.set(a.name, a);
});
function i(a) {
n.add(a.name);
var o = [].concat(a.requires || [], a.requiresIfExists || []);
o.forEach(function(s) {
if (!n.has(s)) {
var l = e.get(s);
l && i(l);
}
}), r.push(a);
}
return t.forEach(function(a) {
n.has(a.name) || i(a);
}), r;
}
function A2e(t) {
var e = $2e(t);
return H$e.reduce(function(n, r) {
return n.concat(e.filter(function(i) {
return i.phase === r;
}));
}, []);
}
function E2e(t) {
var e;
return function() {
return e || (e = new Promise(function(n) {
Promise.resolve().then(function() {
e = void 0, n(t());
});
})), e;
};
}
function M2e(t) {
var e = t.reduce(function(n, r) {
var i = n[r.name];
return n[r.name] = i ? Object.assign({}, i, r, { options: Object.assign({}, i.options, r.options), data: Object.assign({}, i.data, r.data) }) : r, n;
}, {});
return Object.keys(e).map(function(n) {
return e[n];
});
}
var s6 = { placement: "bottom", modifiers: [], strategy: "absolute" };
function l6() {
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n];
return !e.some(function(r) {
return !(r && typeof r.getBoundingClientRect == "function");
});
}
function iR(t) {
t === void 0 && (t = {});
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, i = e.defaultOptions, a = i === void 0 ? s6 : i;
return function(o, s, l) {
l === void 0 && (l = a);
var u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, s6, a), modifiersData: {}, elements: { reference: o, popper: s }, attributes: {}, styles: {} }, c = [], f = !1, d = { state: u, setOptions: function(v) {
var g = typeof v == "function" ? v(u.options) : v;
p(), u.options = Object.assign({}, a, u.options, g), u.scrollParents = { reference: Nh(o) ? xg(o) : o.contextElement ? xg(o.contextElement) : [], popper: xg(s) };
var m = A2e(M2e([].concat(r, u.options.modifiers)));
return u.orderedModifiers = m.filter(function(y) {
return y.enabled;
}), h(), d.update();
}, forceUpdate: function() {
if (!f) {
var v = u.elements, g = v.reference, m = v.popper;
if (l6(g, m)) {
u.rects = { reference: P2e(g, $0(m), u.options.strategy === "fixed"), popper: JD(m) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(C) {
return u.modifiersData[C.name] = Object.assign({}, C.data);
});
for (var y = 0; y < u.orderedModifiers.length; y++) {
if (u.reset === !0) {
u.reset = !1, y = -1;
continue;
}
var b = u.orderedModifiers[y], _ = b.fn, O = b.options, S = O === void 0 ? {} : O, x = b.name;
typeof _ == "function" && (u = _({ state: u, options: S, name: x, instance: d }) || u);
}
}
}
}, update: E2e(function() {
return new Promise(function(v) {
d.forceUpdate(), v(u);
});
}), destroy: function() {
p(), f = !0;
} };
if (!l6(o, s)) return d;
d.setOptions(l).then(function(v) {
!f && l.onFirstUpdate && l.onFirstUpdate(v);
});
function h() {
u.orderedModifiers.forEach(function(v) {
var g = v.name, m = v.options, y = m === void 0 ? {} : m, b = v.effect;
if (typeof b == "function") {
var _ = b({ state: u, name: g, instance: d, options: y }), O = function() {
};
c.push(_ || O);
}
});
}
function p() {
c.forEach(function(v) {
return v();
}), c = [];
}
return d;
};
}
iR();
var I2e = [ZY, YY, jY, FY];
iR({ defaultModifiers: I2e });
var D2e = [ZY, YY, jY, FY, b2e, p2e, x2e, J$e, g2e], R2e = iR({ defaultModifiers: D2e });
const k2e = (t, e, n = {}) => {
const r = {
name: "updateState",
enabled: !0,
phase: "write",
fn: ({ state: l }) => {
const u = L2e(l);
Object.assign(o.value, u);
},
requires: ["computeStyles"]
}, i = L(() => {
const { onFirstUpdate: l, placement: u, strategy: c, modifiers: f } = z(n);
return {
onFirstUpdate: l,
placement: u || "bottom",
strategy: c || "absolute",
modifiers: [
...f || [],
r,
{ name: "applyStyles", enabled: !1 }
]
};
}), a = ae(), o = U({
styles: {
popper: {
position: z(i).strategy,
left: "0",
top: "0"
},
arrow: {
position: "absolute"
}
},
attributes: {}
}), s = () => {
a.value && (a.value.destroy(), a.value = void 0);
};
return se(i, (l) => {
const u = z(a);
u && u.setOptions(l);
}, {
deep: !0
}), se([t, e], ([l, u]) => {
s(), !(!l || !u) && (a.value = R2e(l, u, z(i)));
}), yt(() => {
s();
}), {
state: L(() => {
var l;
return { ...((l = z(a)) == null ? void 0 : l.state) || {} };
}),
styles: L(() => z(o).styles),
attributes: L(() => z(o).attributes),
update: () => {
var l;
return (l = z(a)) == null ? void 0 : l.update();
},
forceUpdate: () => {
var l;
return (l = z(a)) == null ? void 0 : l.forceUpdate();
},
instanceRef: L(() => z(a))
};
};
function L2e(t) {
const e = Object.keys(t.elements), n = M1(e.map((i) => [i, t.styles[i] || {}])), r = M1(e.map((i) => [i, t.attributes[i]]));
return {
styles: n,
attributes: r
};
}
function u6() {
let t;
const e = (r, i) => {
n(), t = window.setTimeout(r, i);
}, n = () => window.clearTimeout(t);
return GD(() => n()), {
registerTimeout: e,
cancelTimeout: n
};
}
const rA = {
prefix: Math.floor(Math.random() * 1e4),
current: 0
}, N2e = Symbol("elIdInjection"), qY = () => vn() ? Ge(N2e, rA) : rA, aR = (t) => {
const e = qY();
!qr && e === rA && Zi("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})`);
const n = XD();
return L(() => z(t) || `${n.value}-id-${e.prefix}-${e.current++}`);
};
let $d = [];
const c6 = (t) => {
const e = t;
e.key === Xc.esc && $d.forEach((n) => n(e));
}, B2e = (t) => {
it(() => {
$d.length === 0 && document.addEventListener("keydown", c6), qr && $d.push(t);
}), yt(() => {
$d = $d.filter((e) => e !== t), $d.length === 0 && qr && document.removeEventListener("keydown", c6);
});
};
let f6;
const KY = () => {
const t = XD(), e = qY(), n = L(() => `${t.value}-popper-container-${e.prefix}`), r = L(() => `#${n.value}`);
return {
id: n,
selector: r
};
}, z2e = (t) => {
const e = document.createElement("div");
return e.id = t, document.body.appendChild(e), e;
}, V2e = () => {
const { id: t, selector: e } = KY();
return G9(() => {
qr && (process.env.NODE_ENV === "test" || !f6 && !document.body.querySelector(e.value)) && (f6 = z2e(t.value));
}), {
id: t,
selector: e
};
}, F2e = rr({
showAfter: {
type: Number,
default: 0
},
hideAfter: {
type: Number,
default: 200
},
autoClose: {
type: Number,
default: 0
}
}), W2e = ({
showAfter: t,
hideAfter: e,
autoClose: n,
open: r,
close: i
}) => {
const { registerTimeout: a } = u6(), {
registerTimeout: o,
cancelTimeout: s
} = u6();
return {
onOpen: (c) => {
a(() => {
r(c);
const f = z(n);
Qs(f) && f > 0 && o(() => {
i(c);
}, f);
}, z(t));
},
onClose: (c) => {
s(), a(() => {
i(c);
}, z(e));
}
};
}, JY = Symbol("elForwardRef"), Q2e = (t) => {
pt(JY, {
setForwardRef: (n) => {
t.value = n;
}
});
}, H2e = (t) => ({
mounted(e) {
t(e);
},
updated(e) {
t(e);
},
unmounted() {
t(null);
}
}), d6 = {
current: 0
}, h6 = U(0), G2e = 2e3, p6 = Symbol("elZIndexContextKey"), j2e = Symbol("zIndexContextKey"), Z2e = (t) => {
const e = vn() ? Ge(p6, d6) : d6, n = vn() ? Ge(j2e, void 0) : void 0, r = L(() => {
const o = z(n);
return Qs(o) ? o : G2e;
}), i = L(() => r.value + h6.value), a = () => (e.current++, h6.value = e.current, i.value);
return !qr && !Ge(p6) && Zi("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
initialZIndex: r,
currentZIndex: i,
nextZIndex: a
};
};
function U2e(t) {
const e = U();
function n() {
if (t.value == null)
return;
const { selectionStart: i, selectionEnd: a, value: o } = t.value;
if (i == null || a == null)
return;
const s = o.slice(0, Math.max(0, i)), l = o.slice(Math.max(0, a));
e.value = {
selectionStart: i,
selectionEnd: a,
value: o,
beforeTxt: s,
afterTxt: l
};
}
function r() {
if (t.value == null || e.value == null)
return;
const { value: i } = t.value, { beforeTxt: a, afterTxt: o, selectionStart: s } = e.value;
if (a == null || o == null || s == null)
return;
let l = i.length;
if (i.endsWith(o))
l = i.length - o.length;
else if (i.startsWith(a))
l = a.length;
else {
const u = a[s - 1], c = i.indexOf(u, s - 1);
c !== -1 && (l = c + 1);
}
t.value.setSelectionRange(l, l);
}
return [n, r];
}
const A0 = $x({
type: String,
values: m$e,
required: !1
}), X2e = Symbol("size"), Y2e = () => {
const t = Ge(X2e, {});
return L(() => z(t.size) || "");
};
function eq(t, { afterFocus: e, beforeBlur: n, afterBlur: r } = {}) {
const i = vn(), { emit: a } = i, o = ae(), s = U(!1), l = (f) => {
s.value || (s.value = !0, a("focus", f), e == null || e());
}, u = (f) => {
var d;
Hv(n) && n(f) || f.relatedTarget && ((d = o.value) != null && d.contains(f.relatedTarget)) || (s.value = !1, a("blur", f), r == null || r());
}, c = () => {
var f;
(f = t.value) == null || f.focus();
};
return se(o, (f) => {
f && f.setAttribute("tabindex", "-1");
}), D_(o, "click", c), {
wrapperRef: o,
isFocused: s,
handleFocus: l,
handleBlur: u
};
}
const q2e = rr({
ariaLabel: String,
ariaOrientation: {
type: String,
values: ["horizontal", "vertical", "undefined"]
},
ariaControls: String
}), E0 = (t) => um(q2e, t), K2e = Symbol(), v6 = U();
function J2e(t, e = void 0) {
const n = vn() ? Ge(K2e, v6) : v6;
return L(() => {
var r, i;
return (i = (r = n.value) == null ? void 0 : r[t]) != null ? i : e;
});
}
var Qn = (t, e) => {
const n = t.__vccOpts || t;
for (const [r, i] of e)
n[r] = i;
return n;
};
const eAe = rr({
size: {
type: jt([Number, String])
},
color: {
type: String
}
}), tAe = te({
name: "ElIcon",
inheritAttrs: !1
}), nAe = /* @__PURE__ */ te({
...tAe,
props: eAe,
setup(t) {
const e = t, n = Jn("icon"), r = L(() => {
const { size: i, color: a } = e;
return !i && !a ? {} : {
fontSize: JPe(i) ? void 0 : tA(i),
"--color": a
};
});
return (i, a) => (pe(), Qe("i", _n({
class: z(n).b(),
style: z(r)
}, i.$attrs), [
zn(i.$slots, "default")
], 16));
}
});
var rAe = /* @__PURE__ */ Qn(nAe, [["__file", "icon.vue"]]);
const Cs = Rf(rAe), oR = Symbol("formContextKey"), U1 = Symbol("formItemContextKey"), Ex = (t, e = {}) => {
const n = U(void 0), r = e.prop ? n : zY("size"), i = e.global ? n : Y2e(), a = e.form ? { size: void 0 } : Ge(oR, void 0), o = e.formItem ? { size: void 0 } : Ge(U1, void 0);
return L(() => r.value || z(t) || (o == null ? void 0 : o.size) || (a == null ? void 0 : a.size) || i.value || "");
}, M0 = (t) => {
const e = zY("disabled"), n = Ge(oR, void 0);
return L(() => e.value || z(t) || (n == null ? void 0 : n.disabled) || !1);
}, Mx = () => {
const t = Ge(oR, void 0), e = Ge(U1, void 0);
return {
form: t,
formItem: e
};
}, sR = (t, {
formItemContext: e,
disableIdGeneration: n,
disableIdManagement: r
}) => {
n || (n = U(!1)), r || (r = U(!1));
const i = U();
let a;
const o = L(() => {
var s;
return !!(!(t.label || t.ariaLabel) && e && e.inputIds && ((s = e.inputIds) == null ? void 0 : s.length) <= 1);
});
return it(() => {
a = se([Nn(t, "id"), n], ([s, l]) => {
const u = s ?? (l ? void 0 : aR().value);
u !== i.value && (e != null && e.removeInputId && (i.value && e.removeInputId(i.value), !(r != null && r.value) && !l && u && e.addInputId(u)), i.value = u);
}, { immediate: !0 });
}), rl(() => {
a && a(), e != null && e.removeInputId && i.value && e.removeInputId(i.value);
}), {
isLabeledByFormItem: o,
inputId: i
};
};
let Qa;
const iAe = `
height:0 !important;
visibility:hidden !important;
${YPe() ? "" : "overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`, aAe = [
"letter-spacing",
"line-height",
"padding-top",
"padding-bottom",
"font-family",
"font-weight",
"font-size",
"text-rendering",
"text-transform",
"width",
"text-indent",
"padding-left",
"padding-right",
"border-width",
"box-sizing"
];
function oAe(t) {
const e = window.getComputedStyle(t), n = e.getPropertyValue("box-sizing"), r = Number.parseFloat(e.getPropertyValue("padding-bottom")) + Number.parseFloat(e.getPropertyValue("padding-top")), i = Number.parseFloat(e.getPropertyValue("border-bottom-width")) + Number.parseFloat(e.getPropertyValue("border-top-width"));
return { contextStyle: aAe.map((o) => `${o}:${e.getPropertyValue(o)}`).join(";"), paddingSize: r, borderSize: i, boxSizing: n };
}
function g6(t, e = 1, n) {
var r;
Qa || (Qa = document.createElement("textarea"), document.body.appendChild(Qa));
const { paddingSize: i, borderSize: a, boxSizing: o, contextStyle: s } = oAe(t);
Qa.setAttribute("style", `${s};${iAe}`), Qa.value = t.value || t.placeholder || "";
let l = Qa.scrollHeight;
const u = {};
o === "border-box" ? l = l + a : o === "content-box" && (l = l - i), Qa.value = "";
const c = Qa.scrollHeight - i;
if (Qs(e)) {
let f = c * e;
o === "border-box" && (f = f + i + a), l = Math.max(f, l), u.minHeight = `${f}px`;
}
if (Qs(n)) {
let f = c * n;
o === "border-box" && (f = f + i + a), l = Math.min(f, l);
}
return u.height = `${l}px`, (r = Qa.parentNode) == null || r.removeChild(Qa), Qa = void 0, u;
}
const sAe = rr({
id: {
type: String,
default: void 0
},
size: A0,
disabled: Boolean,
modelValue: {
type: jt([
String,
Number,
Object
]),
default: ""
},
maxlength: {
type: [String, Number]
},
minlength: {
type: [String, Number]
},
type: {
type: String,
default: "text"
},
resize: {
type: String,
values: ["none", "both", "horizontal", "vertical"]
},
autosize: {
type: jt([Boolean, Object]),
default: !1
},
autocomplete: {
type: String,
default: "off"
},
formatter: {
type: Function
},
parser: {
type: Function
},
placeholder: {
type: String
},
form: {
type: String
},
readonly: {
type: Boolean,
default: !1
},
clearable: {
type: Boolean,
default: !1
},
showPassword: {
type: Boolean,
default: !1
},
showWordLimit: {
type: Boolean,
default: !1
},
suffixIcon: {
type: j1
},
prefixIcon: {
type: j1
},
containerRole: {
type: String,
default: void 0
},
label: {
type: String,
default: void 0
},
tabindex: {
type: [String, Number],
default: 0
},
validateEvent: {
type: Boolean,
default: !0
},
inputStyle: {
type: jt([Object, Array, String]),
default: () => b$e({})
},
autofocus: {
type: Boolean,
default: !1
},
...E0(["ariaLabel"])
}), lAe = {
[Hs]: (t) => Oa(t),
input: (t) => Oa(t),
change: (t) => Oa(t),
focus: (t) => t instanceof FocusEvent,
blur: (t) => t instanceof FocusEvent,
clear: () => !0,
mouseleave: (t) => t instanceof MouseEvent,
mouseenter: (t) => t instanceof MouseEvent,
keydown: (t) => t instanceof Event,
compositionstart: (t) => t instanceof CompositionEvent,
compositionupdate: (t) => t instanceof CompositionEvent,
compositionend: (t) => t instanceof CompositionEvent
}, uAe = ["role"], cAe = ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus"], fAe = ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus"], dAe = te({
name: "ElInput",
inheritAttrs: !1
}), hAe = /* @__PURE__ */ te({
...dAe,
props: sAe,
emits: lAe,
setup(t, { expose: e, emit: n }) {
const r = t, i = Hle(), a = U9(), o = L(() => {
const ve = {};
return r.containerRole === "combobox" && (ve["aria-haspopup"] = i["aria-haspopup"], ve["aria-owns"] = i["aria-owns"], ve["aria-expanded"] = i["aria-expanded"]), ve;
}), s = L(() => [
r.type === "textarea" ? g.b() : v.b(),
v.m(h.value),
v.is("disabled", p.value),
v.is("exceed", ne.value),
{
[v.b("group")]: a.prepend || a.append,
[v.m("prefix")]: a.prefix || r.prefixIcon,
[v.m("suffix")]: a.suffix || r.suffixIcon || r.clearable || r.showPassword,
[v.bm("suffix", "password-clear")]: W.value && F.value,
[v.b("hidden")]: r.type === "hidden"
},
i.class
]), l = L(() => [
v.e("wrapper"),
v.is("focus", w.value)
]), u = S$e({
excludeKeys: L(() => Object.keys(o.value))
}), { form: c, formItem: f } = Mx(), { inputId: d } = sR(r, {
formItemContext: f
}), h = Ex(), p = M0(), v = Jn("input"), g = Jn("textarea"), m = ae(), y = ae(), b = U(!1), _ = U(!1), O = U(!1), S = U(), x = ae(r.inputStyle), C = L(() => m.value || y.value), { wrapperRef: T, isFocused: w, handleFocus: P, handleBlur: $ } = eq(C, {
afterBlur() {
var ve;
r.validateEvent && ((ve = f == null ? void 0 : f.validate) == null || ve.call(f, "blur").catch((Xe) => Zi(Xe)));
}
}), A = L(() => {
var ve;
return (ve = c == null ? void 0 : c.statusIcon) != null ? ve : !1;
}), D = L(() => (f == null ? void 0 : f.validateState) || ""), E = L(() => D.value && g$e[D.value]), R = L(() => O.value ? p$e : f$e), N = L(() => [
i.style
]), V = L(() => [
r.inputStyle,
x.value,
{ resize: r.resize }
]), B = L(() => Gl(r.modelValue) ? "" : String(r.modelValue)), W = L(() => r.clearable && !p.value && !r.readonly && !!B.value && (w.value || b.value)), F = L(() => r.showPassword && !p.value && !r.readonly && !!B.value && (!!B.value || w.value)), Q = L(() => r.showWordLimit && !!r.maxlength && (r.type === "text" || r.type === "textarea") && !p.value && !r.readonly && !r.showPassword), Z = L(() => B.value.length), ne = L(() => !!Q.value && Z.value > Number(r.maxlength)), ee = L(() => !!a.suffix || !!r.suffixIcon || W.value || r.showPassword || Q.value || !!D.value && A.value), [oe, K] = U2e(m);
HPe(y, (ve) => {
if (H(), !Q.value || r.resize !== "both")
return;
const Xe = ve[0], { width: Rt } = Xe.contentRect;
S.value = {
right: `calc(100% - ${Rt + 15 + 6}px)`
};
});
const ie = () => {
const { type: ve, autosize: Xe } = r;
if (!(!qr || ve !== "textarea" || !y.value))
if (Xe) {
const Rt = hm(Xe) ? Xe.minRows : void 0, An = hm(Xe) ? Xe.maxRows : void 0, sn = g6(y.value, Rt, An);
x.value = {
overflowY: "hidden",
...sn
}, Tt(() => {
y.value.offsetHeight, x.value = sn;
});
} else
x.value = {
minHeight: g6(y.value).minHeight
};
}, H = ((ve) => {
let Xe = !1;
return () => {
var Rt;
if (Xe || !r.autosize)
return;
((Rt = y.value) == null ? void 0 : Rt.offsetParent) === null || (ve(), Xe = !0);
};
})(ie), G = () => {
const ve = C.value, Xe = r.formatter ? r.formatter(B.value) : B.value;
!ve || ve.value === Xe || (ve.value = Xe);
}, re = async (ve) => {
oe();
let { value: Xe } = ve.target;
if (r.formatter && (Xe = r.parser ? r.parser(Xe) : Xe), !_.value) {
if (Xe === B.value) {
G();
return;
}
n(Hs, Xe), n("input", Xe), await Tt(), G(), K();
}
}, fe = (ve) => {
n("change", ve.target.value);
}, de = (ve) => {
n("compositionstart", ve), _.value = !0;
}, Ee = (ve) => {
var Xe;
n("compositionupdate", ve);
const Rt = (Xe = ve.target) == null ? void 0 : Xe.value, An = Rt[Rt.length - 1] || "";
_.value = !y$e(An);
}, $e = (ve) => {
n("compositionend", ve), _.value && (_.value = !1, re(ve));
}, Se = () => {
O.value = !O.value, be();
}, be = async () => {
var ve;
await Tt(), (ve = C.value) == null || ve.focus();
}, he = () => {
var ve;
return (ve = C.value) == null ? void 0 : ve.blur();
}, Te = (ve) => {
b.value = !1, n("mouseleave", ve);
}, ze = (ve) => {
b.value = !0, n("mouseenter", ve);
}, ut = (ve) => {
n("keydown", ve);
}, ct = () => {
var ve;
(ve = C.value) == null || ve.select();
}, Dt = () => {
n(Hs, ""), n("change", ""), n("clear"), n("input", "");
};
return se(() => r.modelValue, () => {
var ve;
Tt(() => ie()), r.validateEvent && ((ve = f == null ? void 0 : f.validate) == null || ve.call(f, "change").catch((Xe) => Zi(Xe)));
}), se(B, () => G()), se(() => r.type, async () => {
await Tt(), G(), ie();
}), it(() => {
!r.formatter && r.parser && Zi("ElInput", "If you set the parser, you also need to set the formatter."), G(), Tt(ie);
}), T0({
from: "label",
replacement: "aria-label",
version: "2.8.0",
scope: "el-input",
ref: "https://element-plus.org/en-US/component/input.html"
}, L(() => !!r.label)), e({
input: m,
textarea: y,
ref: C,
textareaStyle: V,
autosize: Nn(r, "autosize"),
focus: be,
blur: he,
select: ct,
clear: Dt,
resizeTextarea: ie
}), (ve, Xe) => (pe(), Qe("div", _n(z(o), {
class: [
z(s),
{
[z(v).bm("group", "append")]: ve.$slots.append,
[z(v).bm("group", "prepend")]: ve.$slots.prepend
}
],
style: z(N),
role: ve.containerRole,
onMouseenter: ze,
onMouseleave: Te
}), [
_t(" input "),
ve.type !== "textarea" ? (pe(), Qe(wt, { key: 0 }, [
_t(" prepend slot "),
ve.$slots.prepend ? (pe(), Qe("div", {
key: 0,
class: Ye(z(v).be("group", "prepend"))
}, [
zn(ve.$slots, "prepend")
], 2)) : _t("v-if", !0),
He("div", {
ref_key: "wrapperRef",
ref: T,
class: Ye(z(l))
}, [
_t(" prefix slot "),
ve.$slots.prefix || ve.prefixIcon ? (pe(), Qe("span", {
key: 0,
class: Ye(z(v).e("prefix"))
}, [
He("span", {
class: Ye(z(v).e("prefix-inner"))
}, [
zn(ve.$slots, "prefix"),
ve.prefixIcon ? (pe(), je(z(Cs), {
key: 0,
class: Ye(z(v).e("icon"))
}, {
default: we(() => [
(pe(), je(Ec(ve.prefixIcon)))
]),
_: 1
}, 8, ["class"])) : _t("v-if", !0)
], 2)
], 2)) : _t("v-if", !0),
He("input", _n({
id: z(d),
ref_key: "input",
ref: m,
class: z(v).e("inner")
}, z(u), {
minlength: ve.minlength,
maxlength: ve.maxlength,
type: ve.showPassword ? O.value ? "text" : "password" : ve.type,
disabled: z(p),
readonly: ve.readonly,
autocomplete: ve.autocomplete,
tabindex: ve.tabindex,
"aria-label": ve.label || ve.ariaLabel,
placeholder: ve.placeholder,
style: ve.inputStyle,
form: ve.form,
autofocus: ve.autofocus,
onCompositionstart: de,
onCompositionupdate: Ee,
onCompositionend: $e,
onInput: re,
onFocus: Xe[0] || (Xe[0] = (...Rt) => z(P) && z(P)(...Rt)),
onBlur: Xe[1] || (Xe[1] = (...Rt) => z($) && z($)(...Rt)),
onChange: fe,
onKeydown: ut
}), null, 16, cAe),
_t(" suffix slot "),
z(ee) ? (pe(), Qe("span", {
key: 1,
class: Ye(z(v).e("suffix"))
}, [
He("span", {
class: Ye(z(v).e("suffix-inner"))
}, [
!z(W) || !z(F) || !z(Q) ? (pe(), Qe(wt, { key: 0 }, [
zn(ve.$slots, "suffix"),
ve.suffixIcon ? (pe(), je(z(Cs), {
key: 0,
class: Ye(z(v).e("icon"))
}, {
default: we(() => [
(pe(), je(Ec(ve.suffixIcon)))
]),
_: 1
}, 8, ["class"])) : _t("v-if", !0)
], 64)) : _t("v-if", !0),
z(W) ? (pe(), je(z(Cs), {
key: 1,
class: Ye([z(v).e("icon"), z(v).e("clear")]),
onMousedown: uf(z(dm), ["prevent"]),
onClick: Dt
}, {
default: we(() => [
M(z(RY))
]),
_: 1
}, 8, ["class", "onMousedown"])) : _t("v-if", !0),
z(F) ? (pe(), je(z(Cs), {
key: 2,
class: Ye([z(v).e("icon"), z(v).e("password")]),
onClick: Se
}, {
default: we(() => [
(pe(), je(Ec(z(R))))
]),
_: 1
}, 8, ["class"])) : _t("v-if", !0),
z(Q) ? (pe(), Qe("span", {
key: 3,
class: Ye(z(v).e("count"))
}, [
He("span", {
class: Ye(z(v).e("count-inner"))
}, Vi(z(Z)) + " / " + Vi(ve.maxlength), 3)
], 2)) : _t("v-if", !0),
z(D) && z(E) && z(A) ? (pe(), je(z(Cs), {
key: 4,
class: Ye([
z(v).e("icon"),
z(v).e("validateIcon"),
z(v).is("loading", z(D) === "validating")
])
}, {
default: we(() => [
(pe(), je(Ec(z(E))))
]),
_: 1
}, 8, ["class"])) : _t("v-if", !0)
], 2)
], 2)) : _t("v-if", !0)
], 2),
_t(" append slot "),
ve.$slots.append ? (pe(), Qe("div", {
key: 1,
class: Ye(z(v).be("group", "append"))
}, [
zn(ve.$slots, "append")
], 2)) : _t("v-if", !0)
], 64)) : (pe(), Qe(wt, { key: 1 }, [
_t(" textarea "),
He("textarea", _n({
id: z(d),
ref_key: "textarea",
ref: y,
class: [z(g).e("inner"), z(v).is("focus", z(w))]
}, z(u), {
minlength: ve.minlength,
maxlength: ve.maxlength,
tabindex: ve.tabindex,
disabled: z(p),
readonly: ve.readonly,
autocomplete: ve.autocomplete,
style: z(V),
"aria-label": ve.label || ve.ariaLabel,
placeholder: ve.placeholder,
form: ve.form,
autofocus: ve.autofocus,
onCompositionstart: de,
onCompositionupdate: Ee,
onCompositionend: $e,
onInput: re,
onFocus: Xe[2] || (Xe[2] = (...Rt) => z(P) && z(P)(...Rt)),
onBlur: Xe[3] || (Xe[3] = (...Rt) => z($) && z($)(...Rt)),
onChange: fe,
onKeydown: ut
}), null, 16, fAe),
z(Q) ? (pe(), Qe("span", {
key: 0,
style: Sr(S.value),
class: Ye(z(v).e("count"))
}, Vi(z(Z)) + " / " + Vi(ve.maxlength), 7)) : _t("v-if", !0)
], 64))
], 16, uAe));
}
});
var pAe = /* @__PURE__ */ Qn(hAe, [["__file", "input.vue"]]);
const lR = Rf(pAe), uR = Symbol("popper"), tq = Symbol("popperContent"), vAe = [
"dialog",
"grid",
"group",
"listbox",
"menu",
"navigation",
"tooltip",
"tree"
], nq = rr({
role: {
type: String,
values: vAe,
default: "tooltip"
}
}), gAe = te({
name: "ElPopper",
inheritAttrs: !1
}), mAe = /* @__PURE__ */ te({
...gAe,
props: nq,
setup(t, { expose: e }) {
const n = t, r = U(), i = U(), a = U(), o = U(), s = L(() => n.role), l = {
triggerRef: r,
popperInstanceRef: i,
contentRef: a,
referenceRef: o,
role: s
};
return e(l), pt(uR, l), (u, c) => zn(u.$slots, "default");
}
});
var yAe = /* @__PURE__ */ Qn(mAe, [["__file", "popper.vue"]]);
const rq = rr({
arrowOffset: {
type: Number,
default: 5
}
}), bAe = te({
name: "ElPopperArrow",
inheritAttrs: !1
}), _Ae = /* @__PURE__ */ te({
...bAe,
props: rq,
setup(t, { expose: e }) {
const n = t, r = Jn("popper"), { arrowOffset: i, arrowRef: a, arrowStyle: o } = Ge(tq, void 0);
return se(() => n.arrowOffset, (s) => {
i.value = s;
}), yt(() => {
a.value = void 0;
}), e({
arrowRef: a
}), (s, l) => (pe(), Qe("span", {
ref_key: "arrowRef",
ref: a,
class: Ye(z(r).e("arrow")),
style: Sr(z(o)),
"data-popper-arrow": ""
}, null, 6));
}
});
var OAe = /* @__PURE__ */ Qn(_Ae, [["__file", "arrow.vue"]]);
const NC = "ElOnlyChild", SAe = te({
name: NC,
setup(t, {
slots: e,
attrs: n
}) {
var r;
const i = Ge(JY), a = H2e((r = i == null ? void 0 : i.setForwardRef) != null ? r : dm);
return () => {
var o;
const s = (o = e.default) == null ? void 0 : o.call(e, n);
if (!s)
return null;
if (s.length > 1)
return Zi(NC, "requires exact only one valid child."), null;
const l = iq(s);
return l ? Oi(Bs(l, n), [[a]]) : (Zi(NC, "no valid child node found"), null);
};
}
});
function iq(t) {
if (!t)
return null;
const e = t;
for (const n of e) {
if (hm(n))
switch (n.type) {
case H9:
continue;
case $S:
case "svg":
return m6(n);
case wt:
return iq(n.children);
default:
return n;
}
return m6(n);
}
return null;
}
function m6(t) {
const e = Jn("only-child");
return M("span", {
class: e.e("content")
}, [t]);
}
const aq = rr({
virtualRef: {
type: jt(Object)
},
virtualTriggering: Boolean,
onMouseenter: {
type: jt(Function)
},
onMouseleave: {
type: jt(Function)
},
onClick: {
type: jt(Function)
},
onKeydown: {
type: jt(Function)
},
onFocus: {
type: jt(Function)
},
onBlur: {
type: jt(Function)
},
onContextmenu: {
type: jt(Function)
},
id: String,
open: Boolean
}), xAe = te({
name: "ElPopperTrigger",
inheritAttrs: !1
}), wAe = /* @__PURE__ */ te({
...xAe,
props: aq,
setup(t, { expose: e }) {
const n = t, { role: r, triggerRef: i } = Ge(uR, void 0);
Q2e(i);
const a = L(() => s.value ? n.id : void 0), o = L(() => {
if (r && r.value === "tooltip")
return n.open && n.id ? n.id : void 0;
}), s = L(() => {
if (r && r.value !== "tooltip")
return r.value;
}), l = L(() => s.value ? `${n.open}` : void 0);
let u;
return it(() => {
se(() => n.virtualRef, (c) => {
c && (i.value = Rl(c));
}, {
immediate: !0
}), se(i, (c, f) => {
u == null || u(), u = void 0, pm(c) && ([
"onMouseenter",
"onMouseleave",
"onClick",
"onKeydown",
"onFocus",
"onBlur",
"onContextmenu"
].forEach((d) => {
var h;
const p = n[d];
p && (c.addEventListener(d.slice(2).toLowerCase(), p), (h = f == null ? void 0 : f.removeEventListener) == null || h.call(f, d.slice(2).toLowerCase(), p));
}), u = se([a, o, s, l], (d) => {
[
"aria-controls",
"aria-describedby",
"aria-haspopup",
"aria-expanded"
].forEach((h, p) => {
Gl(d[p]) ? c.removeAttribute(h) : c.setAttribute(h, d[p]);
});
}, { immediate: !0 })), pm(f) && [
"aria-controls",
"aria-describedby",
"aria-haspopup",
"aria-expanded"
].forEach((d) => f.removeAttribute(d));
}, {
immediate: !0
});
}), yt(() => {
u == null || u(), u = void 0;
}), e({
triggerRef: i
}), (c, f) => c.virtualTriggering ? _t("v-if", !0) : (pe(), je(z(SAe), _n({ key: 0 }, c.$attrs, {
"aria-controls": z(a),
"aria-describedby": z(o),
"aria-expanded": z(l),
"aria-haspopup": z(s)
}), {
default: we(() => [
zn(c.$slots, "default")
]),
_: 3
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
}
});
var CAe = /* @__PURE__ */ Qn(wAe, [["__file", "trigger.vue"]]);
const BC = "focus-trap.focus-after-trapped", zC = "focus-trap.focus-after-released", TAe = "focus-trap.focusout-prevented", y6 = {
cancelable: !0,
bubbles: !1
}, PAe = {
cancelable: !0,
bubbles: !1
}, b6 = "focusAfterTrapped", _6 = "focusAfterReleased", $Ae = Symbol("elFocusTrap"), cR = U(), Ix = U(0), fR = U(0);
let Ny = 0;
const oq = (t) => {
const e = [], n = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
acceptNode: (r) => {
const i = r.tagName === "INPUT" && r.type === "hidden";
return r.disabled || r.hidden || i ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 || r === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
}
});
for (; n.nextNode(); )
e.push(n.currentNode);
return e;
}, O6 = (t, e) => {
for (const n of t)
if (!AAe(n, e))
return n;
}, AAe = (t, e) => {
if (process.env.NODE_ENV === "test")
return !1;
if (getComputedStyle(t).visibility === "hidden")
return !0;
for (; t; ) {
if (e && t === e)
return !1;
if (getComputedStyle(t).display === "none")
return !0;
t = t.parentElement;
}
return !1;
}, EAe = (t) => {
const e = oq(t), n = O6(e, t), r = O6(e.reverse(), t);
return [n, r];
}, MAe = (t) => t instanceof HTMLInputElement && "select" in t, _l = (t, e) => {
if (t && t.focus) {
const n = document.activeElement;
t.focus({ preventScroll: !0 }), fR.value = window.performance.now(), t !== n && MAe(t) && e && t.select();
}
};
function S6(t, e) {
const n = [...t], r = t.indexOf(e);
return r !== -1 && n.splice(r, 1), n;
}
const IAe = () => {
let t = [];
return {
push: (r) => {
const i = t[0];
i && r !== i && i.pause(), t = S6(t, r), t.unshift(r);
},
remove: (r) => {
var i, a;
t = S6(t, r), (a = (i = t[0]) == null ? void 0 : i.resume) == null || a.call(i);
}
};
}, DAe = (t, e = !1) => {
const n = document.activeElement;
for (const r of t)
if (_l(r, e), document.activeElement !== n)
return;
}, x6 = IAe(), RAe = () => Ix.value > fR.value, By = () => {
cR.value = "pointer", Ix.value = window.performance.now();
}, w6 = () => {
cR.value = "keyboard", Ix.value = window.performance.now();
}, kAe = () => (it(() => {
Ny === 0 && (document.addEventListener("mousedown", By), document.addEventListener("touchstart", By), document.addEventListener("keydown", w6)), Ny++;
}), yt(() => {
Ny--, Ny <= 0 && (document.removeEventListener("mousedown", By), document.removeEventListener("touchstart", By), document.removeEventListener("keydown", w6));
}), {
focusReason: cR,
lastUserFocusTimestamp: Ix,
lastAutomatedFocusTimestamp: fR
}), zy = (t) => new CustomEvent(TAe, {
...PAe,
detail: t
}), LAe = te({
name: "ElFocusTrap",
inheritAttrs: !1,
props: {
loop: Boolean,
trapped: Boolean,
focusTrapEl: Object,
focusStartEl: {
type: [Object, String],
default: "first"
}
},
emits: [
b6,
_6,
"focusin",
"focusout",
"focusout-prevented",
"release-requested"
],
setup(t, { emit: e }) {
const n = U();
let r, i;
const { focusReason: a } = kAe();
B2e((p) => {
t.trapped && !o.paused && e("release-requested", p);
});
const o = {
paused: !1,
pause() {
this.paused = !0;
},
resume() {
this.paused = !1;
}
}, s = (p) => {
if (!t.loop && !t.trapped || o.paused)
return;
const { key: v, altKey: g, ctrlKey: m, metaKey: y, currentTarget: b, shiftKey: _ } = p, { loop: O } = t, S = v === Xc.tab && !g && !m && !y, x = document.activeElement;
if (S && x) {
const C = b, [T, w] = EAe(C);
if (T && w) {
if (!_ && x === w) {
const $ = zy({
focusReason: a.value
});
e("focusout-prevented", $), $.defaultPrevented || (p.preventDefault(), O && _l(T, !0));
} else if (_ && [T, C].includes(x)) {
const $ = zy({
focusReason: a.value
});
e("focusout-prevented", $), $.defaultPrevented || (p.preventDefault(), O && _l(w, !0));
}
} else if (x === C) {
const $ = zy({
focusReason: a.value
});
e("focusout-prevented", $), $.defaultPrevented || p.preventDefault();
}
}
};
pt($Ae, {
focusTrapRef: n,
onKeydown: s
}), se(() => t.focusTrapEl, (p) => {
p && (n.value = p);
}, { immediate: !0 }), se([n], ([p], [v]) => {
p && (p.addEventListener("keydown", s), p.addEventListener("focusin", c), p.addEventListener("focusout", f)), v && (v.removeEventListener("keydown", s), v.removeEventListener("focusin", c), v.removeEventListener("focusout", f));
});
const l = (p) => {
e(b6, p);
}, u = (p) => e(_6, p), c = (p) => {
const v = z(n);
if (!v)
return;
const g = p.target, m = p.relatedTarget, y = g && v.contains(g);
t.trapped || m && v.contains(m) || (r = m), y && e("focusin", p), !o.paused && t.trapped && (y ? i = g : _l(i, !0));
}, f = (p) => {
const v = z(n);
if (!(o.paused || !v))
if (t.trapped) {
const g = p.relatedTarget;
!Gl(g) && !v.contains(g) && setTimeout(() => {
if (!o.paused && t.trapped) {
const m = zy({
focusReason: a.value
});
e("focusout-prevented", m), m.defaultPrevented || _l(i, !0);
}
}, 0);
} else {
const g = p.target;
g && v.contains(g) || e("focusout", p);
}
};
async function d() {
await Tt();
const p = z(n);
if (p) {
x6.push(o);
const v = p.contains(document.activeElement) ? r : document.activeElement;
if (r = v, !p.contains(v)) {
const m = new Event(BC, y6);
p.addEventListener(BC, l), p.dispatchEvent(m), m.defaultPrevented || Tt(() => {
let y = t.focusStartEl;
Oa(y) || (_l(y), document.activeElement !== y && (y = "first")), y === "first" && DAe(oq(p), !0), (document.activeElement === v || y === "container") && _l(p);
});
}
}
}
function h() {
const p = z(n);
if (p) {
p.removeEventListener(BC, l);
const v = new CustomEvent(zC, {
...y6,
detail: {
focusReason: a.value
}
});
p.addEventListener(zC, u), p.dispatchEvent(v), !v.defaultPrevented && (a.value == "keyboard" || !RAe() || p.contains(document.activeElement)) && _l(r ?? document.body), p.removeEventListener(zC, u), x6.remove(o);
}
}
return it(() => {
t.trapped && d(), se(() => t.trapped, (p) => {
p ? d() : h();
});
}), yt(() => {
t.trapped && h();
}), {
onKeydown: s
};
}
});
function NAe(t, e, n, r, i, a) {
return zn(t.$slots, "default", { handleKeydown: t.onKeydown });
}
var BAe = /* @__PURE__ */ Qn(LAe, [["render", NAe], ["__file", "focus-trap.vue"]]);
const zAe = ["fixed", "absolute"], VAe = rr({
boundariesPadding: {
type: Number,
default: 0
},
fallbackPlacements: {
type: jt(Array),
default: void 0
},
gpuAcceleration: {
type: Boolean,
default: !0
},
offset: {
type: Number,
default: 12
},
placement: {
type: String,
values: qD,
default: "bottom"
},
popperOptions: {
type: jt(Object),
default: () => ({})
},
strategy: {
type: String,
values: zAe,
default: "absolute"
}
}), sq = rr({
...VAe,
id: String,
style: {
type: jt([String, Array, Object])
},
className: {
type: jt([String, Array, Object])
},
effect: {
type: String,
default: "dark"
},
visible: Boolean,
enterable: {
type: Boolean,
default: !0
},
pure: Boolean,
focusOnShow: {
type: Boolean,
default: !1
},
trapping: {
type: Boolean,
default: !1
},
popperClass: {
type: jt([String, Array, Object])
},
popperStyle: {
type: jt([String, Array, Object])
},
referenceEl: {
type: jt(Object)
},
triggerTargetEl: {
type: jt(Object)
},
stopPopperMouseEvent: {
type: Boolean,
default: !0
},
virtualTriggering: Boolean,
zIndex: Number,
...E0(["ariaLabel"])
}), FAe = {
mouseenter: (t) => t instanceof MouseEvent,
mouseleave: (t) => t instanceof MouseEvent,
focus: () => !0,
blur: () => !0,
close: () => !0
}, WAe = (t, e = []) => {
const { placement: n, strategy: r, popperOptions: i } = t, a = {
placement: n,
strategy: r,
...i,
modifiers: [...HAe(t), ...e]
};
return GAe(a, i == null ? void 0 : i.modifiers), a;
}, QAe = (t) => {
if (qr)
return Rl(t);
};
function HAe(t) {
const { offset: e, gpuAcceleration: n, fallbackPlacements: r } = t;
return [
{
name: "offset",
options: {
offset: [0, e ?? 12]
}
},
{
name: "preventOverflow",
options: {
padding: {
top: 2,
bottom: 2,
left: 5,
right: 5
}
}
},
{
name: "flip",
options: {
padding: 5,
fallbackPlacements: r
}
},
{
name: "computeStyles",
options: {
gpuAcceleration: n
}
}
];
}
function GAe(t, e) {
e && (t.modifiers = [...t.modifiers, ...e ?? []]);
}
const jAe = 0, ZAe = (t) => {
const { popperInstanceRef: e, contentRef: n, triggerRef: r, role: i } = Ge(uR, void 0), a = U(), o = U(), s = L(() => ({
name: "eventListeners",
enabled: !!t.visible
})), l = L(() => {
var m;
const y = z(a), b = (m = z(o)) != null ? m : jAe;
return {
name: "arrow",
enabled: !Dbe(y),
options: {
element: y,
padding: b
}
};
}), u = L(() => ({
onFirstUpdate: () => {
p();
},
...WAe(t, [
z(l),
z(s)
])
})), c = L(() => QAe(t.referenceEl) || z(r)), { attributes: f, state: d, styles: h, update: p, forceUpdate: v, instanceRef: g } = k2e(c, n, u);
return se(g, (m) => e.value = m), it(() => {
se(() => {
var m;
return (m = z(c)) == null ? void 0 : m.getBoundingClientRect();
}, () => {
p();
});
}), {
attributes: f,
arrowRef: a,
contentRef: n,
instanceRef: g,
state: d,
styles: h,
role: i,
forceUpdate: v,
update: p
};
}, UAe = (t, {
attributes: e,
styles: n,
role: r
}) => {
const { nextZIndex: i } = Z2e(), a = Jn("popper"), o = L(() => z(e).popper), s = U(Qs(t.zIndex) ? t.zIndex : i()), l = L(() => [
a.b(),
a.is("pure", t.pure),
a.is(t.effect),
t.popperClass
]), u = L(() => [
{ zIndex: z(s) },
z(n).popper,
t.popperStyle || {}
]), c = L(() => r.value === "dialog" ? "false" : void 0), f = L(() => z(n).arrow || {});
return {
ariaModal: c,
arrowStyle: f,
contentAttrs: o,
contentClass: l,
contentStyle: u,
contentZIndex: s,
updateZIndex: () => {
s.value = Qs(t.zIndex) ? t.zIndex : i();
}
};
}, XAe = (t, e) => {
const n = U(!1), r = U();
return {
focusStartRef: r,
trapped: n,
onFocusAfterReleased: (u) => {
var c;
((c = u.detail) == null ? void 0 : c.focusReason) !== "pointer" && (r.value = "first", e("blur"));
},
onFocusAfterTrapped: () => {
e("focus");
},
onFocusInTrap: (u) => {
t.visible && !n.value && (u.target && (r.value = u.target), n.value = !0);
},
onFocusoutPrevented: (u) => {
t.trapping || (u.detail.focusReason === "pointer" && u.preventDefault(), n.value = !1);
},
onReleaseRequested: () => {
n.value = !1, e("close");
}
};
}, YAe = te({
name: "ElPopperContent"
}), qAe = /* @__PURE__ */ te({
...YAe,
props: sq,
emits: FAe,
setup(t, { expose: e, emit: n }) {
const r = t, {
focusStartRef: i,
trapped: a,
onFocusAfterReleased: o,
onFocusAfterTrapped: s,
onFocusInTrap: l,
onFocusoutPrevented: u,
onReleaseRequested: c
} = XAe(r, n), { attributes: f, arrowRef: d, contentRef: h, styles: p, instanceRef: v, role: g, update: m } = ZAe(r), {
ariaModal: y,
arrowStyle: b,
contentAttrs: _,
contentClass: O,
contentStyle: S,
updateZIndex: x
} = UAe(r, {
styles: p,
attributes: f,
role: g
}), C = Ge(U1, void 0), T = U();
pt(tq, {
arrowStyle: b,
arrowRef: d,
arrowOffset: T
}), C && pt(U1, {
...C,
addInputId: dm,
removeInputId: dm
});
let w;
const P = (A = !0) => {
m(), A && x();
}, $ = () => {
P(!1), r.visible && r.focusOnShow ? a.value = !0 : r.visible === !1 && (a.value = !1);
};
return it(() => {
se(() => r.triggerTargetEl, (A, D) => {
w == null || w(), w = void 0;
const E = z(A || h.value), R = z(D || h.value);
pm(E) && (w = se([g, () => r.ariaLabel, y, () => r.id], (N) => {
["role", "aria-label", "aria-modal", "id"].forEach((V, B) => {
Gl(N[B]) ? E.removeAttribute(V) : E.setAttribute(V, N[B]);
});
}, { immediate: !0 })), R !== E && pm(R) && ["role", "aria-label", "aria-modal", "id"].forEach((N) => {
R.removeAttribute(N);
});
}, { immediate: !0 }), se(() => r.visible, $, { immediate: !0 });
}), yt(() => {
w == null || w(), w = void 0;
}), e({
popperContentRef: h,
popperInstanceRef: v,
updatePopper: P,
contentStyle: S
}), (A, D) => (pe(), Qe("div", _n({
ref_key: "contentRef",
ref: h
}, z(_), {
style: z(S),
class: z(O),
tabindex: "-1",
onMouseenter: D[0] || (D[0] = (E) => A.$emit("mouseenter", E)),
onMouseleave: D[1] || (D[1] = (E) => A.$emit("mouseleave", E))
}), [
M(z(BAe), {
trapped: z(a),
"trap-on-focus-in": !0,
"focus-trap-el": z(h),
"focus-start-el": z(i),
onFocusAfterTrapped: z(s),
onFocusAfterReleased: z(o),
onFocusin: z(l),
onFocusoutPrevented: z(u),
onReleaseRequested: z(c)
}, {
default: we(() => [
zn(A.$slots, "default")
]),
_: 3
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
], 16));
}
});
var KAe = /* @__PURE__ */ Qn(qAe, [["__file", "content.vue"]]);
const JAe = Rf(yAe), dR = Symbol("elTooltip"), hR = rr({
...F2e,
...sq,
appendTo: {
type: jt([String, Object])
},
content: {
type: String,
default: ""
},
rawContent: {
type: Boolean,
default: !1
},
persistent: Boolean,
visible: {
type: jt(Boolean),
default: null
},
transition: String,
teleported: {
type: Boolean,
default: !0
},
disabled: Boolean,
...E0(["ariaLabel"])
}), lq = rr({
...aq,
disabled: Boolean,
trigger: {
type: jt([String, Array]),
default: "hover"
},
triggerKeys: {
type: jt(Array),
default: () => [Xc.enter, Xc.space]
}
}), {
useModelToggleProps: eEe,
useModelToggleEmits: tEe,
useModelToggle: nEe
} = BY("visible"), rEe = rr({
...nq,
...eEe,
...hR,
...lq,
...rq,
showArrow: {
type: Boolean,
default: !0
}
}), iEe = [
...tEe,
"before-show",
"before-hide",
"show",
"hide",
"open",
"close"
], aEe = (t, e) => KPe(t) ? t.includes(e) : t === e, ed = (t, e, n) => (r) => {
aEe(z(t), e) && n(r);
}, oEe = te({
name: "ElTooltipTrigger"
}), sEe = /* @__PURE__ */ te({
...oEe,
props: lq,
setup(t, { expose: e }) {
const n = t, r = Jn("tooltip"), { controlled: i, id: a, open: o, onOpen: s, onClose: l, onToggle: u } = Ge(dR, void 0), c = U(null), f = () => {
if (z(i) || n.disabled)
return !0;
}, d = Nn(n, "trigger"), h = _s(f, ed(d, "hover", s)), p = _s(f, ed(d, "hover", l)), v = _s(f, ed(d, "click", (_) => {
_.button === 0 && u(_);
})), g = _s(f, ed(d, "focus", s)), m = _s(f, ed(d, "focus", l)), y = _s(f, ed(d, "contextmenu", (_) => {
_.preventDefault(), u(_);
})), b = _s(f, (_) => {
const { code: O } = _;
n.triggerKeys.includes(O) && (_.preventDefault(), u(_));
});
return e({
triggerRef: c
}), (_, O) => (pe(), je(z(CAe), {
id: z(a),
"virtual-ref": _.virtualRef,
open: z(o),
"virtual-triggering": _.virtualTriggering,
class: Ye(z(r).e("trigger")),
onBlur: z(m),
onClick: z(v),
onContextmenu: z(y),
onFocus: z(g),
onMouseenter: z(h),
onMouseleave: z(p),
onKeydown: z(b)
}, {
default: we(() => [
zn(_.$slots, "default")
]),
_: 3
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
}
});
var lEe = /* @__PURE__ */ Qn(sEe, [["__file", "trigger.vue"]]);
const uEe = te({
name: "ElTooltipContent",
inheritAttrs: !1
}), cEe = /* @__PURE__ */ te({
...uEe,
props: hR,
setup(t, { expose: e }) {
const n = t, { selector: r } = KY(), i = Jn("tooltip"), a = U(null), o = U(!1), {
controlled: s,
id: l,
open: u,
trigger: c,
onClose: f,
onOpen: d,
onShow: h,
onHide: p,
onBeforeShow: v,
onBeforeHide: g
} = Ge(dR, void 0), m = L(() => n.transition || `${i.namespace.value}-fade-in-linear`), y = L(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
yt(() => {
o.value = !0;
});
const b = L(() => z(y) ? !0 : z(u)), _ = L(() => n.disabled ? !1 : z(u)), O = L(() => n.appendTo || r.value), S = L(() => {
var N;
return (N = n.style) != null ? N : {};
}), x = L(() => !z(u)), C = () => {
p();
}, T = () => {
if (z(s))
return !0;
}, w = _s(T, () => {
n.enterable && z(c) === "hover" && d();
}), P = _s(T, () => {
z(c) === "hover" && f();
}), $ = () => {
var N, V;
(V = (N = a.value) == null ? void 0 : N.updatePopper) == null || V.call(N), v == null || v();
}, A = () => {
g == null || g();
}, D = () => {
h(), R = zPe(L(() => {
var N;
return (N = a.value) == null ? void 0 : N.popperContentRef;
}), () => {
if (z(s))
return;
z(c) !== "hover" && f();
});
}, E = () => {
n.virtualTriggering || f();
};
let R;
return se(() => z(u), (N) => {
N || R == null || R();
}, {
flush: "post"
}), se(() => n.content, () => {
var N, V;
(V = (N = a.value) == null ? void 0 : N.updatePopper) == null || V.call(N);
}), e({
contentRef: a
}), (N, V) => (pe(), je(AS, {
disabled: !N.teleported,
to: z(O)
}, [
M(ho, {
name: z(m),
onAfterLeave: C,
onBeforeEnter: $,
onAfterEnter: D,
onBeforeLeave: A
}, {
default: we(() => [
z(b) ? Oi((pe(), je(z(KAe), _n({
key: 0,
id: z(l),
ref_key: "contentRef",
ref: a
}, N.$attrs, {
"aria-label": N.ariaLabel,
"aria-hidden": z(x),
"boundaries-padding": N.boundariesPadding,
"fallback-placements": N.fallbackPlacements,
"gpu-acceleration": N.gpuAcceleration,
offset: N.offset,
placement: N.placement,
"popper-options": N.popperOptions,
strategy: N.strategy,
effect: N.effect,
enterable: N.enterable,
pure: N.pure,
"popper-class": N.popperClass,
"popper-style": [N.popperStyle, z(S)],
"reference-el": N.referenceEl,
"trigger-target-el": N.triggerTargetEl,
visible: z(_),
"z-index": N.zIndex,
onMouseenter: z(w),
onMouseleave: z(P),
onBlur: E,
onClose: z(f)
}), {
default: we(() => [
o.value ? _t("v-if", !0) : zn(N.$slots, "default", { key: 0 })
]),
_: 3
}, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
[zs, z(_)]
]) : _t("v-if", !0)
]),
_: 3
}, 8, ["name"])
], 8, ["disabled", "to"]));
}
});
var fEe = /* @__PURE__ */ Qn(cEe, [["__file", "content.vue"]]);
const dEe = ["innerHTML"], hEe = { key: 1 }, pEe = te({
name: "ElTooltip"
}), vEe = /* @__PURE__ */ te({
...pEe,
props: rEe,
emits: iEe,
setup(t, { expose: e, emit: n }) {
const r = t;
V2e();
const i = aR(), a = U(), o = U(), s = () => {
var m;
const y = z(a);
y && ((m = y.popperInstanceRef) == null || m.update());
}, l = U(!1), u = U(), { show: c, hide: f, hasUpdateHandler: d } = nEe({
indicator: l,
toggleReason: u
}), { onOpen: h, onClose: p } = W2e({
showAfter: Nn(r, "showAfter"),
hideAfter: Nn(r, "hideAfter"),
autoClose: Nn(r, "autoClose"),
open: c,
close: f
}), v = L(() => G1(r.visible) && !d.value);
pt(dR, {
controlled: v,
id: i,
open: Gle(l),
trigger: Nn(r, "trigger"),
onOpen: (m) => {
h(m);
},
onClose: (m) => {
p(m);
},
onToggle: (m) => {
z(l) ? p(m) : h(m);
},
onShow: () => {
n("show", u.value);
},
onHide: () => {
n("hide", u.value);
},
onBeforeShow: () => {
n("before-show", u.value);
},
onBeforeHide: () => {
n("before-hide", u.value);
},
updatePopper: s
}), se(() => r.disabled, (m) => {
m && l.value && (l.value = !1);
});
const g = (m) => {
var y, b;
const _ = (b = (y = o.value) == null ? void 0 : y.contentRef) == null ? void 0 : b.popperContentRef, O = (m == null ? void 0 : m.relatedTarget) || document.activeElement;
return _ && _.contains(O);
};
return jle(() => l.value && f()), e({
popperRef: a,
contentRef: o,
isFocusInsideContent: g,
updatePopper: s,
onOpen: h,
onClose: p,
hide: f
}), (m, y) => (pe(), je(z(JAe), {
ref_key: "popperRef",
ref: a,
role: m.role
}, {
default: we(() => [
M(lEe, {
disabled: m.disabled,
trigger: m.trigger,
"trigger-keys": m.triggerKeys,
"virtual-ref": m.virtualRef,
"virtual-triggering": m.virtualTriggering
}, {
default: we(() => [
m.$slots.default ? zn(m.$slots, "default", { key: 0 }) : _t("v-if", !0)
]),
_: 3
}, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
M(fEe, {
ref_key: "contentRef",
ref: o,
"aria-label": m.ariaLabel,
"boundaries-padding": m.boundariesPadding,
content: m.content,
disabled: m.disabled,
effect: m.effect,
enterable: m.enterable,
"fallback-placements": m.fallbackPlacements,
"hide-after": m.hideAfter,
"gpu-acceleration": m.gpuAcceleration,
offset: m.offset,
persistent: m.persistent,
"popper-class": m.popperClass,
"popper-style": m.popperStyle,
placement: m.placement,
"popper-options": m.popperOptions,
pure: m.pure,
"raw-content": m.rawContent,
"reference-el": m.referenceEl,
"trigger-target-el": m.triggerTargetEl,
"show-after": m.showAfter,
strategy: m.strategy,
teleported: m.teleported,
transition: m.transition,
"virtual-triggering": m.virtualTriggering,
"z-index": m.zIndex,
"append-to": m.appendTo
}, {
default: we(() => [
zn(m.$slots, "content", {}, () => [
m.rawContent ? (pe(), Qe("span", {
key: 0,
innerHTML: m.content
}, null, 8, dEe)) : (pe(), Qe("span", hEe, Vi(m.content), 1))
]),
m.showArrow ? (pe(), je(z(OAe), {
key: 0,
"arrow-offset": m.arrowOffset
}, null, 8, ["arrow-offset"])) : _t("v-if", !0)
]),
_: 3
}, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
]),
_: 3
}, 8, ["role"]));
}
});
var gEe = /* @__PURE__ */ Qn(vEe, [["__file", "tooltip.vue"]]);
const mEe = Rf(gEe), uq = Symbol("buttonGroupContextKey"), yEe = (t, e) => {
T0({
from: "type.text",
replacement: "link",
version: "3.0.0",
scope: "props",
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
}, L(() => t.type === "text"));
const n = Ge(uq, void 0), r = J2e("button"), { form: i } = Mx(), a = Ex(L(() => n == null ? void 0 : n.size)), o = M0(), s = U(), l = U9(), u = L(() => t.type || (n == null ? void 0 : n.type) || ""), c = L(() => {
var p, v, g;
return (g = (v = t.autoInsertSpace) != null ? v : (p = r.value) == null ? void 0 : p.autoInsertSpace) != null ? g : !1;
}), f = L(() => t.tag === "button" ? {
ariaDisabled: o.value || t.loading,
disabled: o.value || t.loading,
autofocus: t.autofocus,
type: t.nativeType
} : {}), d = L(() => {
var p;
const v = (p = l.default) == null ? void 0 : p.call(l);
if (c.value && (v == null ? void 0 : v.length) === 1) {
const g = v[0];
if ((g == null ? void 0 : g.type) === $S) {
const m = g.children;
return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(m.trim());
}
}
return !1;
});
return {
_disabled: o,
_size: a,
_type: u,
_ref: s,
_props: f,
shouldAddSpace: d,
handleClick: (p) => {
t.nativeType === "reset" && (i == null || i.resetFields()), e("click", p);
}
};
}, bEe = [
"default",
"primary",
"success",
"warning",
"info",
"danger",
"text",
""
], _Ee = ["button", "submit", "reset"], iA = rr({
size: A0,
disabled: Boolean,
type: {
type: String,
values: bEe,
default: ""
},
icon: {
type: j1
},
nativeType: {
type: String,
values: _Ee,
default: "button"
},
loading: Boolean,
loadingIcon: {
type: j1,
default: () => kY
},
plain: Boolean,
text: Boolean,
link: Boolean,
bg: Boolean,
autofocus: Boolean,
round: Boolean,
circle: Boolean,
color: String,
dark: Boolean,
autoInsertSpace: {
type: Boolean,
default: void 0
},
tag: {
type: jt([String, Object]),
default: "button"
}
}), OEe = {
click: (t) => t instanceof MouseEvent
};
function fl(t, e = 20) {
return t.mix("#141414", e).toString();
}
function SEe(t) {
const e = M0(), n = Jn("button");
return L(() => {
let r = {}, i = t.color;
if (i) {
const a = i.match(/var\((.*?)\)/);
a && (i = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
const o = new en(i), s = t.dark ? o.tint(20).toString() : fl(o, 20);
if (t.plain)
r = n.cssVarBlock({
"bg-color": t.dark ? fl(o, 90) : o.tint(90).toString(),
"text-color": i,
"border-color": t.dark ? fl(o, 50) : o.tint(50).toString(),
"hover-text-color": `var(${n.cssVarName("color-white")})`,
"hover-bg-color": i,
"hover-border-color": i,
"active-bg-color": s,
"active-text-color": `var(${n.cssVarName("color-white")})`,
"active-border-color": s
}), e.value && (r[n.cssVarBlockName("disabled-bg-color")] = t.dark ? fl(o, 90) : o.tint(90).toString(), r[n.cssVarBlockName("disabled-text-color")] = t.dark ? fl(o, 50) : o.tint(50).toString(), r[n.cssVarBlockName("disabled-border-color")] = t.dark ? fl(o, 80) : o.tint(80).toString());
else {
const l = t.dark ? fl(o, 30) : o.tint(30).toString(), u = o.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`;
if (r = n.cssVarBlock({
"bg-color": i,
"text-color": u,
"border-color": i,
"hover-bg-color": l,
"hover-text-color": u,
"hover-border-color": l,
"active-bg-color": s,
"active-border-color": s
}), e.value) {
const c = t.dark ? fl(o, 50) : o.tint(50).toString();
r[n.cssVarBlockName("disabled-bg-color")] = c, r[n.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, r[n.cssVarBlockName("disabled-border-color")] = c;
}
}
}
return r;
});
}
const xEe = te({
name: "ElButton"
}), wEe = /* @__PURE__ */ te({
...xEe,
props: iA,
emits: OEe,
setup(t, { expose: e, emit: n }) {
const r = t, i = SEe(r), a = Jn("button"), { _ref: o, _size: s, _type: l, _disabled: u, _props: c, shouldAddSpace: f, handleClick: d } = yEe(r, n), h = L(() => [
a.b(),
a.m(l.value),
a.m(s.value),
a.is("disabled", u.value),
a.is("loading", r.loading),
a.is("plain", r.plain),
a.is("round", r.round),
a.is("circle", r.circle),
a.is("text", r.text),
a.is("link", r.link),
a.is("has-bg", r.bg)
]);
return e({
ref: o,
size: s,
type: l,
disabled: u,
shouldAddSpace: f
}), (p, v) => (pe(), je(Ec(p.tag), _n({
ref_key: "_ref",
ref: o
}, z(c), {
class: z(h),
style: z(i),
onClick: z(d)
}), {
default: we(() => [
p.loading ? (pe(), Qe(wt, { key: 0 }, [
p.$slots.loading ? zn(p.$slots, "loading", { key: 0 }) : (pe(), je(z(Cs), {
key: 1,
class: Ye(z(a).is("loading"))
}, {
default: we(() => [
(pe(), je(Ec(p.loadingIcon)))
]),
_: 1
}, 8, ["class"]))
], 64)) : p.icon || p.$slots.icon ? (pe(), je(z(Cs), { key: 1 }, {
default: we(() => [
p.icon ? (pe(), je(Ec(p.icon), { key: 0 })) : zn(p.$slots, "icon", { key: 1 })
]),
_: 3
})) : _t("v-if", !0),
p.$slots.default ? (pe(), Qe("span", {
key: 2,
class: Ye({ [z(a).em("text", "expand")]: z(f) })
}, [
zn(p.$slots, "default")
], 2)) : _t("v-if", !0)
]),
_: 3
}, 16, ["class", "style", "onClick"]));
}
});
var CEe = /* @__PURE__ */ Qn(wEe, [["__file", "button.vue"]]);
const TEe = {
size: iA.size,
type: iA.type
}, PEe = te({
name: "ElButtonGroup"
}), $Ee = /* @__PURE__ */ te({
...PEe,
props: TEe,
setup(t) {
const e = t;
pt(uq, tn({
size: Nn(e, "size"),
type: Nn(e, "type")
}));
const n = Jn("button");
return (r, i) => (pe(), Qe("div", {
class: Ye(`${z(n).b("group")}`)
}, [
zn(r.$slots, "default")
], 2));
}
});
var cq = /* @__PURE__ */ Qn($Ee, [["__file", "button-group.vue"]]);
const C6 = Rf(CEe, {
ButtonGroup: cq
});
UD(cq);
const Ol = /* @__PURE__ */ new Map();
let T6;
qr && (document.addEventListener("mousedown", (t) => T6 = t), document.addEventListener("mouseup", (t) => {
for (const e of Ol.values())
for (const { documentHandler: n } of e)
n(t, T6);
}));
function P6(t, e) {
let n = [];
return Array.isArray(e.arg) ? n = e.arg : pm(e.arg) && n.push(e.arg), function(r, i) {
const a = e.instance.popperRef, o = r.target, s = i == null ? void 0 : i.target, l = !e || !e.instance, u = !o || !s, c = t.contains(o) || t.contains(s), f = t === o, d = n.length && n.some((p) => p == null ? void 0 : p.contains(o)) || n.length && n.includes(s), h = a && (a.contains(o) || a.contains(s));
l || u || c || f || d || h || e.value(r, i);
};
}
const AEe = {
beforeMount(t, e) {
Ol.has(t) || Ol.set(t, []), Ol.get(t).push({
documentHandler: P6(t, e),
bindingFn: e.value
});
},
updated(t, e) {
Ol.has(t) || Ol.set(t, []);
const n = Ol.get(t), r = n.findIndex((a) => a.bindingFn === e.oldValue), i = {
documentHandler: P6(t, e),
bindingFn: e.value
};
r >= 0 ? n.splice(r, 1, i) : n.push(i);
},
unmounted(t) {
Ol.delete(t);
}
}, fq = rr({
modelValue: {
type: [String, Number, Boolean],
default: void 0
},
size: A0,
disabled: Boolean,
label: {
type: [String, Number, Boolean],
default: void 0
},
value: {
type: [String, Number, Boolean],
default: void 0
},
name: {
type: String,
default: void 0
}
}), EEe = rr({
...fq,
border: Boolean
}), dq = {
[Hs]: (t) => Oa(t) || Qs(t) || G1(t),
[NY]: (t) => Oa(t) || Qs(t) || G1(t)
}, hq = Symbol("radioGroupKey"), pq = (t, e) => {
const n = U(), r = Ge(hq, void 0), i = L(() => !!r), a = L(() => J3(t.value) ? t.label : t.value), o = L({
get() {
return i.value ? r.modelValue : t.modelValue;
},
set(f) {
i.value ? r.changeEvent(f) : e && e(Hs, f), n.value.checked = t.modelValue === a.value;
}
}), s = Ex(L(() => r == null ? void 0 : r.size)), l = M0(L(() => r == null ? void 0 : r.disabled)), u = U(!1), c = L(() => l.value || i.value && o.value !== a.value ? -1 : 0);
return T0({
from: "label act as value",
replacement: "value",
version: "3.0.0",
scope: "el-radio",
ref: "https://element-plus.org/en-US/component/radio.html"
}, L(() => i.value && J3(t.value))), {
radioRef: n,
isGroup: i,
radioGroup: r,
focus: u,
size: s,
disabled: l,
tabIndex: c,
modelValue: o,
actualValue: a
};
}, MEe = ["value", "name", "disabled"], IEe = te({
name: "ElRadio"
}), DEe = /* @__PURE__ */ te({
...IEe,
props: EEe,
emits: dq,
setup(t, { emit: e }) {
const n = t, r = Jn("radio"), { radioRef: i, radioGroup: a, focus: o, size: s, disabled: l, modelValue: u, actualValue: c } = pq(n, e);
function f() {
Tt(() => e("change", u.value));
}
return (d, h) => {
var p;
return pe(), Qe("label", {
class: Ye([
z(r).b(),
z(r).is("disabled", z(l)),
z(r).is("focus", z(o)),
z(r).is("bordered", d.border),
z(r).is("checked", z(u) === z(c)),
z(r).m(z(s))
])
}, [
He("span", {
class: Ye([
z(r).e("input"),
z(r).is("disabled", z(l)),
z(r).is("checked", z(u) === z(c))
])
}, [
Oi(He("input", {
ref_key: "radioRef",
ref: i,
"onUpdate:modelValue": h[0] || (h[0] = (v) => op(u) ? u.value = v : null),
class: Ye(z(r).e("original")),
value: z(c),
name: d.name || ((p = z(a)) == null ? void 0 : p.name),
disabled: z(l),
type: "radio",
onFocus: h[1] || (h[1] = (v) => o.value = !0),
onBlur: h[2] || (h[2] = (v) => o.value = !1),
onChange: f,
onClick: h[3] || (h[3] = uf(() => {
}, ["stop"]))
}, null, 42, MEe), [
[X9, z(u)]
]),
He("span", {
class: Ye(z(r).e("inner"))
}, null, 2)
], 2),
He("span", {
class: Ye(z(r).e("label")),
onKeydown: h[4] || (h[4] = uf(() => {
}, ["stop"]))
}, [
zn(d.$slots, "default", {}, () => [
Kt(Vi(d.label), 1)
])
], 34)
], 2);
};
}
});
var REe = /* @__PURE__ */ Qn(DEe, [["__file", "radio.vue"]]);
const kEe = rr({
...fq
}), LEe = ["value", "name", "disabled"], NEe = te({
name: "ElRadioButton"
}), BEe = /* @__PURE__ */ te({
...NEe,
props: kEe,
setup(t) {
const e = t, n = Jn("radio"), { radioRef: r, focus: i, size: a, disabled: o, modelValue: s, radioGroup: l, actualValue: u } = pq(e), c = L(() => ({
backgroundColor: (l == null ? void 0 : l.fill) || "",
borderColor: (l == null ? void 0 : l.fill) || "",
boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
color: (l == null ? void 0 : l.textColor) || ""
}));
return (f, d) => {
var h;
return pe(), Qe("label", {
class: Ye([
z(n).b("button"),
z(n).is("active", z(s) === z(u)),
z(n).is("disabled", z(o)),
z(n).is("focus", z(i)),
z(n).bm("button", z(a))
])
}, [
Oi(He("input", {
ref_key: "radioRef",
ref: r,
"onUpdate:modelValue": d[0] || (d[0] = (p) => op(s) ? s.value = p : null),
class: Ye(z(n).be("button", "original-radio")),
value: z(u),
type: "radio",
name: f.name || ((h = z(l)) == null ? void 0 : h.name),
disabled: z(o),
onFocus: d[1] || (d[1] = (p) => i.value = !0),
onBlur: d[2] || (d[2] = (p) => i.value = !1),
onClick: d[3] || (d[3] = uf(() => {
}, ["stop"]))
}, null, 42, LEe), [
[X9, z(s)]
]),
He("span", {
class: Ye(z(n).be("button", "inner")),
style: Sr(z(s) === z(u) ? z(c) : {}),
onKeydown: d[4] || (d[4] = uf(() => {
}, ["stop"]))
}, [
zn(f.$slots, "default", {}, () => [
Kt(Vi(f.label), 1)
])
], 38)
], 2);
};
}
});
var vq = /* @__PURE__ */ Qn(BEe, [["__file", "radio-button.vue"]]);
const zEe = rr({
id: {
type: String,
default: void 0
},
size: A0,
disabled: Boolean,
modelValue: {
type: [String, Number, Boolean],
default: void 0
},
fill: {
type: String,
default: ""
},
label: {
type: String,
default: void 0
},
textColor: {
type: String,
default: ""
},
name: {
type: String,
default: void 0
},
validateEvent: {
type: Boolean,
default: !0
},
...E0(["ariaLabel"])
}), VEe = dq, FEe = ["id", "aria-label", "aria-labelledby"], WEe = te({
name: "ElRadioGroup"
}), QEe = /* @__PURE__ */ te({
...WEe,
props: zEe,
emits: VEe,
setup(t, { emit: e }) {
const n = t, r = Jn("radio"), i = aR(), a = U(), { formItem: o } = Mx(), { inputId: s, isLabeledByFormItem: l } = sR(n, {
formItemContext: o
}), u = (f) => {
e(Hs, f), Tt(() => e("change", f));
};
it(() => {
const f = a.value.querySelectorAll("[type=radio]"), d = f[0];
!Array.from(f).some((h) => h.checked) && d && (d.tabIndex = 0);
});
const c = L(() => n.name || i.value);
return pt(hq, tn({
...ES(n),
changeEvent: u,
name: c
})), se(() => n.modelValue, () => {
n.validateEvent && (o == null || o.validate("change").catch((f) => Zi(f)));
}), T0({
from: "label",
replacement: "aria-label",
version: "2.8.0",
scope: "el-radio-group",
ref: "https://element-plus.org/en-US/component/radio.html"
}, L(() => !!n.label)), (f, d) => (pe(), Qe("div", {
id: z(s),
ref_key: "radioGroupRef",
ref: a,
class: Ye(z(r).b("group")),
role: "radiogroup",
"aria-label": z(l) ? void 0 : f.label || f.ariaLabel || "radio-group",
"aria-labelledby": z(l) ? z(o).labelId : void 0
}, [
zn(f.$slots, "default")
], 10, FEe));
}
});
var gq = /* @__PURE__ */ Qn(QEe, [["__file", "radio-group.vue"]]);
Rf(REe, {
RadioButton: vq,
RadioGroup: gq
});
const mq = UD(gq), wg = UD(vq), HEe = rr({
color: {
type: jt(Object),
required: !0
},
vertical: {
type: Boolean,
default: !1
}
});
let VC = !1;
function mm(t, e) {
if (!qr)
return;
const n = function(a) {
var o;
(o = e.drag) == null || o.call(e, a);
}, r = function(a) {
var o;
document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", r), document.removeEventListener("touchmove", n), document.removeEventListener("touchend", r), document.onselectstart = null, document.ondragstart = null, VC = !1, (o = e.end) == null || o.call(e, a);
}, i = function(a) {
var o;
VC || (a.preventDefault(), document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", n), document.addEventListener("mouseup", r), document.addEventListener("touchmove", n), document.addEventListener("touchend", r), VC = !0, (o = e.start) == null || o.call(e, a));
};
t.addEventListener("mousedown", i), t.addEventListener("touchstart", i);
}
const GEe = (t) => {
const e = vn(), n = ae(), r = ae();
function i(o) {
o.target !== n.value && a(o);
}
function a(o) {
if (!r.value || !n.value)
return;
const l = e.vnode.el.getBoundingClientRect(), { clientX: u, clientY: c } = ZD(o);
if (t.vertical) {
let f = c - l.top;
f = Math.max(n.value.offsetHeight / 2, f), f = Math.min(f, l.height - n.value.offsetHeight / 2), t.color.set("alpha", Math.round((f - n.value.offsetHeight / 2) / (l.height - n.value.offsetHeight) * 100));
} else {
let f = u - l.left;
f = Math.max(n.value.offsetWidth / 2, f), f = Math.min(f, l.width - n.value.offsetWidth / 2), t.color.set("alpha", Math.round((f - n.value.offsetWidth / 2) / (l.width - n.value.offsetWidth) * 100));
}
}
return {
thumb: n,
bar: r,
handleDrag: a,
handleClick: i
};
}, jEe = (t, {
bar: e,
thumb: n,
handleDrag: r
}) => {
const i = vn(), a = Jn("color-alpha-slider"), o = U(0), s = U(0), l = U();
function u() {
if (!n.value || t.vertical)
return 0;
const y = i.vnode.el, b = t.color.get("alpha");
return y ? Math.round(b * (y.offsetWidth - n.value.offsetWidth / 2) / 100) : 0;
}
function c() {
if (!n.value)
return 0;
const y = i.vnode.el;
if (!t.vertical)
return 0;
const b = t.color.get("alpha");
return y ? Math.round(b * (y.offsetHeight - n.value.offsetHeight / 2) / 100) : 0;
}
function f() {
if (t.color && t.color.value) {
const { r: y, g: b, b: _ } = t.color.toRgb();
return `linear-gradient(to right, rgba(${y}, ${b}, ${_}, 0) 0%, rgba(${y}, ${b}, ${_}, 1) 100%)`;
}
return "";
}
function d() {
o.value = u(), s.value = c(), l.value = f();
}
it(() => {
if (!e.value || !n.value)
return;
const y = {
drag: (b) => {
r(b);
},
end: (b) => {
r(b);
}
};
mm(e.value, y), mm(n.value, y), d();
}), se(() => t.color.get("alpha"), () => d()), se(() => t.color.value, () => d());
const h = L(() => [a.b(), a.is("vertical", t.vertical)]), p = L(() => a.e("bar")), v = L(() => a.e("thumb")), g = L(() => ({ background: l.value })), m = L(() => ({
left: tA(o.value),
top: tA(s.value)
}));
return { rootKls: h, barKls: p, barStyle: g, thumbKls: v, thumbStyle: m, update: d };
}, ZEe = "ElColorAlphaSlider", UEe = te({
name: ZEe
}), XEe = /* @__PURE__ */ te({
...UEe,
props: HEe,
setup(t, { expose: e }) {
const n = t, { bar: r, thumb: i, handleDrag: a, handleClick: o } = GEe(n), { rootKls: s, barKls: l, barStyle: u, thumbKls: c, thumbStyle: f, update: d } = jEe(n, {
bar: r,
thumb: i,
handleDrag: a
});
return e({
update: d,
bar: r,
thumb: i
}), (h, p) => (pe(), Qe("div", {
class: Ye(z(s))
}, [
He("div", {
ref_key: "bar",
ref: r,
class: Ye(z(l)),
style: Sr(z(u)),
onClick: p[0] || (p[0] = (...v) => z(o) && z(o)(...v))
}, null, 6),
He("div", {
ref_key: "thumb",
ref: i,
class: Ye(z(c)),
style: Sr(z(f))
}, null, 6)
], 2));
}
});
var YEe = /* @__PURE__ */ Qn(XEe, [["__file", "alpha-slider.vue"]]);
const qEe = te({
name: "ElColorHueSlider",
props: {
color: {
type: Object,
required: !0
},
vertical: Boolean
},
setup(t) {
const e = Jn("color-hue-slider"), n = vn(), r = U(), i = U(), a = U(0), o = U(0), s = L(() => t.color.get("hue"));
se(() => s.value, () => {
d();
});
function l(h) {
h.target !== r.value && u(h);
}
function u(h) {
if (!i.value || !r.value)
return;
const v = n.vnode.el.getBoundingClientRect(), { clientX: g, clientY: m } = ZD(h);
let y;
if (t.vertical) {
let b = m - v.top;
b = Math.min(b, v.height - r.value.offsetHeight / 2), b = Math.max(r.value.offsetHeight / 2, b), y = Math.round((b - r.value.offsetHeight / 2) / (v.height - r.value.offsetHeight) * 360);
} else {
let b = g - v.left;
b = Math.min(b, v.width - r.value.offsetWidth / 2), b = Math.max(r.value.offsetWidth / 2, b), y = Math.round((b - r.value.offsetWidth / 2) / (v.width - r.value.offsetWidth) * 360);
}
t.color.set("hue", y);
}
function c() {
if (!r.value)
return 0;
const h = n.vnode.el;
if (t.vertical)
return 0;
const p = t.color.get("hue");
return h ? Math.round(p * (h.offsetWidth - r.value.offsetWidth / 2) / 360) : 0;
}
function f() {
if (!r.value)
return 0;
const h = n.vnode.el;
if (!t.vertical)
return 0;
const p = t.color.get("hue");
return h ? Math.round(p * (h.offsetHeight - r.value.offsetHeight / 2) / 360) : 0;
}
function d() {
a.value = c(), o.value = f();
}
return it(() => {
if (!i.value || !r.value)
return;
const h = {
drag: (p) => {
u(p);
},
end: (p) => {
u(p);
}
};
mm(i.value, h), mm(r.value, h), d();
}), {
bar: i,
thumb: r,
thumbLeft: a,
thumbTop: o,
hueValue: s,
handleClick: l,
update: d,
ns: e
};
}
});
function KEe(t, e, n, r, i, a) {
return pe(), Qe("div", {
class: Ye([t.ns.b(), t.ns.is("vertical", t.vertical)])
}, [
He("div", {
ref: "bar",
class: Ye(t.ns.e("bar")),
onClick: e[0] || (e[0] = (...o) => t.handleClick && t.handleClick(...o))
}, null, 2),
He("div", {
ref: "thumb",
class: Ye(t.ns.e("thumb")),
style: Sr({
left: t.thumbLeft + "px",
top: t.thumbTop + "px"
})
}, null, 6)
], 2);
}
var JEe = /* @__PURE__ */ Qn(qEe, [["render", KEe], ["__file", "hue-slider.vue"]]);
const eMe = rr({
modelValue: String,
id: String,
showAlpha: Boolean,
colorFormat: String,
disabled: Boolean,
size: A0,
popperClass: {
type: String,
default: ""
},
label: {
type: String,
default: void 0
},
tabindex: {
type: [String, Number],
default: 0
},
teleported: hR.teleported,
predefine: {
type: jt(Array)
},
validateEvent: {
type: Boolean,
default: !0
},
...E0(["ariaLabel"])
}), tMe = {
[Hs]: (t) => Oa(t) || Gl(t),
[NY]: (t) => Oa(t) || Gl(t),
activeChange: (t) => Oa(t) || Gl(t),
focus: (t) => t instanceof FocusEvent,
blur: (t) => t instanceof FocusEvent
}, yq = Symbol("colorPickerContextKey"), $6 = function(t, e, n) {
return [
t,
e * n / ((t = (2 - e) * n) < 1 ? t : 2 - t) || 0,
t / 2
];
}, nMe = function(t) {
return typeof t == "string" && t.includes(".") && Number.parseFloat(t) === 1;
}, rMe = function(t) {
return typeof t == "string" && t.includes("%");
}, Kd = function(t, e) {
nMe(t) && (t = "100%");
const n = rMe(t);
return t = Math.min(e, Math.max(0, Number.parseFloat(`${t}`))), n && (t = Number.parseInt(`${t * e}`, 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : t % e / Number.parseFloat(e);
}, A6 = {
10: "A",
11: "B",
12: "C",
13: "D",
14: "E",
15: "F"
}, k_ = (t) => {
t = Math.min(Math.round(t), 255);
const e = Math.floor(t / 16), n = t % 16;
return `${A6[e] || e}${A6[n] || n}`;
}, E6 = function({ r: t, g: e, b: n }) {
return Number.isNaN(+t) || Number.isNaN(+e) || Number.isNaN(+n) ? "" : `#${k_(t)}${k_(e)}${k_(n)}`;
}, FC = {
A: 10,
B: 11,
C: 12,
D: 13,
E: 14,
F: 15
}, Bu = function(t) {
return t.length === 2 ? (FC[t[0].toUpperCase()] || +t[0]) * 16 + (FC[t[1].toUpperCase()] || +t[1]) : FC[t[1].toUpperCase()] || +t[1];
}, iMe = function(t, e, n) {
e = e / 100, n = n / 100;
let r = e;
const i = Math.max(n, 0.01);
n *= 2, e *= n <= 1 ? n : 2 - n, r *= i <= 1 ? i : 2 - i;
const a = (n + e) / 2, o = n === 0 ? 2 * r / (i + r) : 2 * e / (n + e);
return {
h: t,
s: o * 100,
v: a * 100
};
}, M6 = (t, e, n) => {
t = Kd(t, 255), e = Kd(e, 255), n = Kd(n, 255);
const r = Math.max(t, e, n), i = Math.min(t, e, n);
let a;
const o = r, s = r - i, l = r === 0 ? 0 : s / r;
if (r === i)
a = 0;
else {
switch (r) {
case t: {
a = (e - n) / s + (e < n ? 6 : 0);
break;
}
case e: {
a = (n - t) / s + 2;
break;
}
case n: {
a = (t - e) / s + 4;
break;
}
}
a /= 6;
}
return { h: a * 360, s: l * 100, v: o * 100 };
}, tv = function(t, e, n) {
t = Kd(t, 360) * 6, e = Kd(e, 100), n = Kd(n, 100);
const r = Math.floor(t), i = t - r, a = n * (1 - e), o = n * (1 - i * e), s = n * (1 - (1 - i) * e), l = r % 6, u = [n, o, a, a, s, n][l], c = [s, n, n, o, a, a][l], f = [a, a, s, n, n, o][l];
return {
r: Math.round(u * 255),
g: Math.round(c * 255),
b: Math.round(f * 255)
};
};
class Cg {
constructor(e = {}) {
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100, this.enableAlpha = !1, this.format = "hex", this.value = "";
for (const n in e)
H1(e, n) && (this[n] = e[n]);
e.value ? this.fromString(e.value) : this.doOnChange();
}
set(e, n) {
if (arguments.length === 1 && typeof e == "object") {
for (const r in e)
H1(e, r) && this.set(r, e[r]);
return;
}
this[`_${e}`] = n, this.doOnChange();
}
get(e) {
return e === "alpha" ? Math.floor(this[`_${e}`]) : this[`_${e}`];
}
toRgb() {
return tv(this._hue, this._saturation, this._value);
}
fromString(e) {
if (!e) {
this._hue = 0, this._saturation = 100, this._value = 100, this.doOnChange();
return;
}
const n = (r, i, a) => {
this._hue = Math.max(0, Math.min(360, r)), this._saturation = Math.max(0, Math.min(100, i)), this._value = Math.max(0, Math.min(100, a)), this.doOnChange();
};
if (e.includes("hsl")) {
const r = e.replace(/hsla|hsl|\(|\)/gm, "").split(/\s|,/g).filter((i) => i !== "").map((i, a) => a > 2 ? Number.parseFloat(i) : Number.parseInt(i, 10));
if (r.length === 4 ? this._alpha = Number.parseFloat(r[3]) * 100 : r.length === 3 && (this._alpha = 100), r.length >= 3) {
const { h: i, s: a, v: o } = iMe(r[0], r[1], r[2]);
n(i, a, o);
}
} else if (e.includes("hsv")) {
const r = e.replace(/hsva|hsv|\(|\)/gm, "").split(/\s|,/g).filter((i) => i !== "").map((i, a) => a > 2 ? Number.parseFloat(i) : Number.parseInt(i, 10));
r.length === 4 ? this._alpha = Number.parseFloat(r[3]) * 100 : r.length === 3 && (this._alpha = 100), r.length >= 3 && n(r[0], r[1], r[2]);
} else if (e.includes("rgb")) {
const r = e.replace(/rgba|rgb|\(|\)/gm, "").split(/\s|,/g).filter((i) => i !== "").map((i, a) => a > 2 ? Number.parseFloat(i) : Number.parseInt(i, 10));
if (r.length === 4 ? this._alpha = Number.parseFloat(r[3]) * 100 : r.length === 3 && (this._alpha = 100), r.length >= 3) {
const { h: i, s: a, v: o } = M6(r[0], r[1], r[2]);
n(i, a, o);
}
} else if (e.includes("#")) {
const r = e.replace("#", "").trim();
if (!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))
return;
let i, a, o;
r.length === 3 ? (i = Bu(r[0] + r[0]), a = Bu(r[1] + r[1]), o = Bu(r[2] + r[2])) : (r.length === 6 || r.length === 8) && (i = Bu(r.slice(0, 2)), a = Bu(r.slice(2, 4)), o = Bu(r.slice(4, 6))), r.length === 8 ? this._alpha = Bu(r.slice(6)) / 255 * 100 : (r.length === 3 || r.length === 6) && (this._alpha = 100);
const { h: s, s: l, v: u } = M6(i, a, o);
n(s, l, u);
}
}
compare(e) {
return Math.abs(e._hue - this._hue) < 2 && Math.abs(e._saturation - this._saturation) < 1 && Math.abs(e._value - this._value) < 1 && Math.abs(e._alpha - this._alpha) < 1;
}
doOnChange() {
const { _hue: e, _saturation: n, _value: r, _alpha: i, format: a } = this;
if (this.enableAlpha)
switch (a) {
case "hsl": {
const o = $6(e, n / 100, r / 100);
this.value = `hsla(${e}, ${Math.round(o[1] * 100)}%, ${Math.round(o[2] * 100)}%, ${this.get("alpha") / 100})`;
break;
}
case "hsv": {
this.value = `hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha") / 100})`;
break;
}
case "hex": {
this.value = `${E6(tv(e, n, r))}${k_(i * 255 / 100)}`;
break;
}
default: {
const { r: o, g: s, b: l } = tv(e, n, r);
this.value = `rgba(${o}, ${s}, ${l}, ${this.get("alpha") / 100})`;
}
}
else
switch (a) {
case "hsl": {
const o = $6(e, n / 100, r / 100);
this.value = `hsl(${e}, ${Math.round(o[1] * 100)}%, ${Math.round(o[2] * 100)}%)`;
break;
}
case "hsv": {
this.value = `hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;
break;
}
case "rgb": {
const { r: o, g: s, b: l } = tv(e, n, r);
this.value = `rgb(${o}, ${s}, ${l})`;
break;
}
default:
this.value = E6(tv(e, n, r));
}
}
}
const aMe = te({
props: {
colors: {
type: Array,
required: !0
},
color: {
type: Object,
required: !0
},
enableAlpha: {
type: Boolean,
required: !0
}
},
setup(t) {
const e = Jn("color-predefine"), { currentColor: n } = Ge(yq), r = U(a(t.colors, t.color));
se(() => n.value, (o) => {
const s = new Cg();
s.fromString(o), r.value.forEach((l) => {
l.selected = s.compare(l);
});
}), ht(() => {
r.value = a(t.colors, t.color);
});
function i(o) {
t.color.fromString(t.colors[o]);
}
function a(o, s) {
return o.map((l) => {
const u = new Cg();
return u.enableAlpha = t.enableAlpha, u.format = "rgba", u.fromString(l), u.selected = u.value === s.value, u;
});
}
return {
rgbaColors: r,
handleSelect: i,
ns: e
};
}
}), oMe = ["onClick"];
function sMe(t, e, n, r, i, a) {
return pe(), Qe("div", {
class: Ye(t.ns.b())
}, [
He("div", {
class: Ye(t.ns.e("colors"))
}, [
(pe(!0), Qe(wt, null, cg(t.rgbaColors, (o, s) => (pe(), Qe("div", {
key: t.colors[s],
class: Ye([
t.ns.e("color-selector"),
t.ns.is("alpha", o._alpha < 100),
{ selected: o.selected }
]),
onClick: (l) => t.handleSelect(s)
}, [
He("div", {
style: Sr({ backgroundColor: o.value })
}, null, 4)
], 10, oMe))), 128))
], 2)
], 2);
}
var lMe = /* @__PURE__ */ Qn(aMe, [["render", sMe], ["__file", "predefine.vue"]]);
const uMe = te({
name: "ElSlPanel",
props: {
color: {
type: Object,
required: !0
}
},
setup(t) {
const e = Jn("color-svpanel"), n = vn(), r = U(0), i = U(0), a = U("hsl(0, 100%, 50%)"), o = L(() => {
const u = t.color.get("hue"), c = t.color.get("value");
return { hue: u, value: c };
});
function s() {
const u = t.color.get("saturation"), c = t.color.get("value"), f = n.vnode.el, { clientWidth: d, clientHeight: h } = f;
i.value = u * d / 100, r.value = (100 - c) * h / 100, a.value = `hsl(${t.color.get("hue")}, 100%, 50%)`;
}
function l(u) {
const f = n.vnode.el.getBoundingClientRect(), { clientX: d, clientY: h } = ZD(u);
let p = d - f.left, v = h - f.top;
p = Math.max(0, p), p = Math.min(p, f.width), v = Math.max(0, v), v = Math.min(v, f.height), i.value = p, r.value = v, t.color.set({
saturation: p / f.width * 100,
value: 100 - v / f.height * 100
});
}
return se(() => o.value, () => {
s();
}), it(() => {
mm(n.vnode.el, {
drag: (u) => {
l(u);
},
end: (u) => {
l(u);
}
}), s();
}), {
cursorTop: r,
cursorLeft: i,
background: a,
colorValue: o,
handleDrag: l,
update: s,
ns: e
};
}
}), cMe = /* @__PURE__ */ He("div", null, null, -1), fMe = [
cMe
];
function dMe(t, e, n, r, i, a) {
return pe(), Qe("div", {
class: Ye(t.ns.b()),
style: Sr({
backgroundColor: t.background
})
}, [
He("div", {
class: Ye(t.ns.e("white"))
}, null, 2),
He("div", {
class: Ye(t.ns.e("black"))
}, null, 2),
He("div", {
class: Ye(t.ns.e("cursor")),
style: Sr({
top: t.cursorTop + "px",
left: t.cursorLeft + "px"
})
}, fMe, 6)
], 6);
}
var hMe = /* @__PURE__ */ Qn(uMe, [["render", dMe], ["__file", "sv-panel.vue"]]);
const pMe = ["onKeydown"], vMe = ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex"], gMe = te({
name: "ElColorPicker"
}), mMe = /* @__PURE__ */ te({
...gMe,
props: eMe,
emits: tMe,
setup(t, { expose: e, emit: n }) {
const r = t, { t: i } = $$e(), a = Jn("color"), { formItem: o } = Mx(), s = Ex(), l = M0(), { inputId: u, isLabeledByFormItem: c } = sR(r, {
formItemContext: o
}), f = U(), d = U(), h = U(), p = U(), v = U(), g = U(), {
isFocused: m,
handleFocus: y,
handleBlur: b
} = eq(v, {
beforeBlur(H) {
var G;
return (G = p.value) == null ? void 0 : G.isFocusInsideContent(H);
},
afterBlur() {
R(!1), W();
}
}), _ = (H) => {
if (l.value)
return X();
y(H);
};
let O = !0;
const S = tn(new Cg({
enableAlpha: r.showAlpha,
format: r.colorFormat || "",
value: r.modelValue
})), x = U(!1), C = U(!1), T = U(""), w = L(() => !r.modelValue && !C.value ? "transparent" : E(S, r.showAlpha)), P = L(() => !r.modelValue && !C.value ? "" : S.value), $ = L(() => c.value ? void 0 : r.label || r.ariaLabel || i("el.colorpicker.defaultLabel"));
T0({
from: "label",
replacement: "aria-label",
version: "2.8.0",
scope: "el-color-picker",
ref: "https://element-plus.org/en-US/component/color-picker.html"
}, L(() => !!r.label));
const A = L(() => c.value ? o == null ? void 0 : o.labelId : void 0), D = L(() => [
a.b("picker"),
a.is("disabled", l.value),
a.bm("picker", s.value),
a.is("focused", m.value)
]);
function E(H, G) {
if (!(H instanceof Cg))
throw new TypeError("color should be instance of _color Class");
const { r: re, g: fe, b: de } = H.toRgb();
return G ? `rgba(${re}, ${fe}, ${de}, ${H.get("alpha") / 100})` : `rgb(${re}, ${fe}, ${de})`;
}
function R(H) {
x.value = H;
}
const N = XI(R, 100, { leading: !0 });
function V() {
l.value || R(!0);
}
function B() {
N(!1), W();
}
function W() {
Tt(() => {
r.modelValue ? S.fromString(r.modelValue) : (S.value = "", Tt(() => {
C.value = !1;
}));
});
}
function F() {
l.value || N(!x.value);
}
function Q() {
S.fromString(T.value);
}
function Z() {
const H = S.value;
n(Hs, H), n("change", H), r.validateEvent && (o == null || o.validate("change").catch((G) => Zi(G))), N(!1), Tt(() => {
const G = new Cg({
enableAlpha: r.showAlpha,
format: r.colorFormat || "",
value: r.modelValue
});
S.compare(G) || W();
});
}
function ne() {
N(!1), n(Hs, null), n("change", null), r.modelValue !== null && r.validateEvent && (o == null || o.validate("change").catch((H) => Zi(H))), W();
}
function ee(H) {
if (x.value && (B(), m.value)) {
const G = new FocusEvent("focus", H);
b(G);
}
}
function oe(H) {
H.preventDefault(), H.stopPropagation(), R(!1), W();
}
function K(H) {
switch (H.code) {
case Xc.enter:
case Xc.space:
H.preventDefault(), H.stopPropagation(), V(), g.value.focus();
break;
case Xc.esc:
oe(H);
break;
}
}
function ie() {
v.value.focus();
}
function X() {
v.value.blur();
}
return it(() => {
r.modelValue && (T.value = P.value);
}), se(() => r.modelValue, (H) => {
H ? H && H !== S.value && (O = !1, S.fromString(H)) : C.value = !1;
}), se(() => P.value, (H) => {
T.value = H, O && n("activeChange", H), O = !0;
}), se(() => S.value, () => {
!r.modelValue && !C.value && (C.value = !0);
}), se(() => x.value, () => {
Tt(() => {
var H, G, re;
(H = f.value) == null || H.update(), (G = d.value) == null || G.update(), (re = h.value) == null || re.update();
});
}), pt(yq, {
currentColor: P
}), e({
color: S,
show: V,
hide: B,
focus: ie,
blur: X
}), (H, G) => (pe(), je(z(mEe), {
ref_key: "popper",
ref: p,
visible: x.value,
"show-arrow": !1,
"fallback-placements": ["bottom", "top", "right", "left"],
offset: 0,
"gpu-acceleration": !1,
"popper-class": [z(a).be("picker", "panel"), z(a).b("dropdown"), H.popperClass],
"stop-popper-mouse-event": !1,
effect: "light",
trigger: "click",
teleported: H.teleported,
transition: `${z(a).namespace.value}-zoom-in-top`,
persistent: "",
onHide: G[2] || (G[2] = (re) => R(!1))
}, {
content: we(() => [
Oi((pe(), Qe("div", {
onKeydown: q4(oe, ["esc"])
}, [
He("div", {
class: Ye(z(a).be("dropdown", "main-wrapper"))
}, [
M(JEe, {
ref_key: "hue",
ref: f,
class: "hue-slider",
color: z(S),
vertical: ""
}, null, 8, ["color"]),
M(hMe, {
ref_key: "sv",
ref: d,
color: z(S)
}, null, 8, ["color"])
], 2),
H.showAlpha ? (pe(), je(YEe, {
key: 0,
ref_key: "alpha",
ref: h,
color: z(S)
}, null, 8, ["color"])) : _t("v-if", !0),
H.predefine ? (pe(), je(lMe, {
key: 1,
ref: "predefine",
"enable-alpha": H.showAlpha,
color: z(S),
colors: H.predefine
}, null, 8, ["enable-alpha", "color", "colors"])) : _t("v-if", !0),
He("div", {
class: Ye(z(a).be("dropdown", "btns"))
}, [
He("span", {
class: Ye(z(a).be("dropdown", "value"))
}, [
M(z(lR), {
ref_key: "inputRef",
ref: g,
modelValue: T.value,
"onUpdate:modelValue": G[0] || (G[0] = (re) => T.value = re),
"validate-event": !1,
size: "small",
onKeyup: q4(Q, ["enter"]),
onBlur: Q
}, null, 8, ["modelValue", "onKeyup"])
], 2),
M(z(C6), {
class: Ye(z(a).be("dropdown", "link-btn")),
text: "",
size: "small",
onClick: ne
}, {
default: we(() => [
Kt(Vi(z(i)("el.colorpicker.clear")), 1)
]),
_: 1
}, 8, ["class"]),
M(z(C6), {
plain: "",
size: "small",
class: Ye(z(a).be("dropdown", "btn")),
onClick: Z
}, {
default: we(() => [
Kt(Vi(z(i)("el.colorpicker.confirm")), 1)
]),
_: 1
}, 8, ["class"])
], 2)
], 40, pMe)), [
[z(AEe), ee]
])
]),
default: we(() => [
He("div", _n({
id: z(u),
ref_key: "triggerRef",
ref: v
}, H.$attrs, {
class: z(D),
role: "button",
"aria-label": z($),
"aria-labelledby": z(A),
"aria-description": z(i)("el.colorpicker.description", { color: H.modelValue || "" }),
"aria-disabled": z(l),
tabindex: z(l) ? -1 : H.tabindex,
onKeydown: K,
onFocus: _,
onBlur: G[1] || (G[1] = (...re) => z(b) && z(b)(...re))
}), [
z(l) ? (pe(), Qe("div", {
key: 0,
class: Ye(z(a).be("picker", "mask"))
}, null, 2)) : _t("v-if", !0),
He("div", {
class: Ye(z(a).be("picker", "trigger")),
onClick: F
}, [
He("span", {
class: Ye([z(a).be("picker", "color"), z(a).is("alpha", H.showAlpha)])
}, [
He("span", {
class: Ye(z(a).be("picker", "color-inner")),
style: Sr({
backgroundColor: z(w)
})
}, [
Oi(M(z(Cs), {
class: Ye([z(a).be("picker", "icon"), z(a).is("icon-arrow-down")])
}, {
default: we(() => [
M(z(i$e))
]),
_: 1
}, 8, ["class"]), [
[zs, H.modelValue || C.value]
]),
Oi(M(z(Cs), {
class: Ye([z(a).be("picker", "empty"), z(a).is("icon-close")])
}, {
default: we(() => [
M(z(u$e))
]),
_: 1
}, 8, ["class"]), [
[zs, !H.modelValue && !C.value]
])
], 6)
], 2)
], 2)
], 16, vMe)
]),
_: 1
}, 8, ["visible", "popper-class", "teleported", "transition"]));
}
});
var yMe = /* @__PURE__ */ Qn(mMe, [["__file", "color-picker.vue"]]);
const Jd = Rf(yMe), bq = (t) => (MS("data-v-70598cf2"), t = t(), IS(), t), bMe = {
key: 0,
class: "color-box"
}, _Me = { class: "img-preview" }, OMe = /* @__PURE__ */ bq(() => /* @__PURE__ */ He("div", { class: "img-empty" }, "未选择", -1)), SMe = /* @__PURE__ */ bq(() => /* @__PURE__ */ He("div", { class: "img-tip" }, "选择素材", -1)), xMe = /* @__PURE__ */ te({
__name: "BackgroundSelect",
props: {
value: { default: () => ({
type: "none",
color: "",
image: "",
fillType: ""
}) },
filterOptions: {}
},
emits: ["update:value"],
setup(t, { emit: e }) {
const n = t, r = e, i = U(n.value), a = [
{ label: "无", value: "none" },
{ label: "颜色", value: "color" },
{ label: "图片", value: "image" }
], o = L(() => n.filterOptions ? a.filter((l) => {
var u;
return !((u = n.filterOptions) != null && u.includes(l.value));
}) : a);
se(
() => i.value,
() => {
r("update:value", i.value);
},
{
deep: !0
}
);
const s = (l) => {
l === "color" && !i.value.color && (i.value.color = "#0B074BFF");
};
return (l, u) => (pe(), Qe(wt, null, [
M(z(di), {
value: i.value.type,
"onUpdate:value": u[0] || (u[0] = (c) => i.value.type = c),
style: { width: "100%" },
options: o.value,
onChange: s
}, null, 8, ["value", "options"]),
i.value.type === "color" ? (pe(), Qe("div", bMe, [
M(z(Jd), {
modelValue: i.value.color,
"onUpdate:modelValue": u[1] || (u[1] = (c) => i.value.color = c),
"color-format": "hex",
"show-alpha": "",
size: "small"
}, null, 8, ["modelValue"]),
M(z(lR), {
modelValue: i.value.color,
"onUpdate:modelValue": u[2] || (u[2] = (c) => i.value.color = c),
size: "small"
}, null, 8, ["modelValue"])
])) : i.value.type === "image" ? (pe(), Qe(wt, { key: 1 }, [
He("div", _Me, [
OMe,
M(z(Al), {
src: i.value.image
}, null, 8, ["src"]),
SMe
]),
M(z(mq), {
modelValue: i.value.fillType,
"onUpdate:modelValue": u[3] || (u[3] = (c) => i.value.fillType = c)
}, {
default: we(() => [
M(z(wg), { value: "cover" }, {
default: we(() => [
Kt("填充")
]),
_: 1
}),
M(z(wg), { value: "contain" }, {
default: we(() => [
Kt("适应")
]),
_: 1
}),
M(z(wg), { value: "stretch" }, {
default: we(() => [
Kt("拉伸")
]),
_: 1
})
]),
_: 1
}, 8, ["modelValue"])
], 64)) : _t("", !0)
], 64));
}
}), wMe = /* @__PURE__ */ $r(xMe, [["__scopeId", "data-v-70598cf2"]]), CMe = /* @__PURE__ */ te({
__name: "ColorSelect",
props: {
value: {},
gradient: { type: Boolean, default: !0 }
},
emits: ["update:value"],
setup(t, { emit: e }) {
var s, l;
const n = e, r = t, i = U(((s = r.value) == null ? void 0 : s.length) <= 9 || !r.value ? "pure" : "gradient"), a = U(r.value), o = U(((l = r.value) == null ? void 0 : l.length) >= 9 ? r.value.slice(22).replace(")", "").split(",") : ["#4ba9ff", "#fff"]);
return se(
() => [i.value, a.value, o.value],
() => {
i.value === "pure" ? a.value = a.value.length > 9 ? "#FFFFFFFF" : a.value : a.value = `linear-gradient(90deg, ${o.value.join(",")})`, n("update:value", a.value);
},
{
deep: !0
}
), se(
() => r.gradient,
(u) => {
u || (i.value = "pure", a.value = a.value.length > 9 ? "#FFFFFFFF" : a.value);
}
), (u, c) => (pe(), Qe(wt, null, [
u.gradient ? (pe(), je(z(mq), {
key: 0,
modelValue: i.value,
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
size: "small",
style: { width: "100%" }
}, {
default: we(() => [
M(z(wg), { value: "pure" }, {
default: we(() => [
Kt("单色")
]),
_: 1
}),
M(z(wg), { value: "gradient" }, {
default: we(() => [
Kt("渐变色")
]),
_: 1
})
]),
_: 1
}, 8, ["modelValue"])) : _t("", !0),
i.value === "pure" ? (pe(), Qe("div", {
key: 1,
class: "color-box",
style: Sr({ marginTop: u.gradient ? "12px" : "0" })
}, [
M(z(Jd), {
modelValue: a.value,
"onUpdate:modelValue": c[1] || (c[1] = (f) => a.value = f),
"color-format": "hex",
"show-alpha": "",
size: "small"
}, null, 8, ["modelValue"]),
M(z(lR), {
modelValue: a.value,
"onUpdate:modelValue": c[2] || (c[2] = (f) => a.value = f),
size: "small"
}, null, 8, ["modelValue"])
], 4)) : i.value === "gradient" ? (pe(), Qe("div", {
key: 2,
class: "gradient-box",
style: Sr({ background: a.value })
}, [
M(z(Jd), {
modelValue: o.value[0],
"onUpdate:modelValue": c[3] || (c[3] = (f) => o.value[0] = f),
"color-format": "hex",
"show-alpha": "",
size: "small"
}, null, 8, ["modelValue"]),
M(z(Jd), {
modelValue: o.value[1],
"onUpdate:modelValue": c[4] || (c[4] = (f) => o.value[1] = f),
"color-format": "hex",
"show-alpha": "",
size: "small"
}, null, 8, ["modelValue"])
], 4)) : _t("", !0)
], 64));
}
}), TMe = /* @__PURE__ */ $r(CMe, [["__scopeId", "data-v-d5768739"]]), X1 = [
{
name: "清新",
color: ["#00a8e1", "#99cc00", "#e30039", "#fcd300", "#800080"]
},
{
name: "复古",
color: ["#FFA69E", "#FAE3D9", "#B8F2E6", "#56E39F", "#3A837D"]
},
{
name: "商务",
color: ["#194f97", "#555555", "#bd6b08", "#00686b", "#c82d31"]
},
{
name: "经典",
color: ["#002c53", "#ffa510", "#0c84c6", "#ffffff", "#f74d4d"]
},
{
name: "怀旧",
color: ["#3b6291", "#943c39", "#779043", "#624c7c", "#388498"]
}
], PMe = {
// 调色盘-预设颜色
color: X1[0].color,
// 标题
title: {
show: !0,
left: "center",
top: 8,
textStyle: {
color: "#FFFFFFFF",
fontSize: 16,
fontWeight: "normal"
}
},
// 图例
legend: {
show: !0,
textStyle: {
color: "#FFFFFFFF"
},
top: 32,
bottom: "auto",
left: "center",
right: "auto"
},
// 布局
grid: {
bottom: 34,
right: 20,
left: 20,
top: 60
},
// x轴
xAxis: {
type: "category",
name: "",
nameLocation: "middle",
nameTruncate: {
ellipsis: "...",
maxWidth: 80
},
nameTextStyle: {
color: "#FFFFFFFF",
fontSize: 12,
fontWeight: "normal",
fontStyle: "normal"
},
axisLabel: {
show: !0,
color: "#9fadbf",
fontSize: 12,
fontWeight: "normal",
fontStyle: "normal"
},
axisLine: {
show: !0,
lineStyle: {
width: 1
}
},
axisTick: {
show: !0,
lineStyle: {
width: 1,
color: "#ccc"
}
}
},
// y轴
yAxis: {
splitLine: {
show: !0,
lineStyle: {
type: "dashed",
color: "#36485f"
}
},
type: "value",
name: "",
nameLocation: "middle",
nameTruncate: {
ellipsis: "...",
maxWidth: 80
},
nameTextStyle: {
color: "#FFFFFFFF",
fontSize: 12,
fontWeight: "normal",
fontStyle: "normal"
},
axisLabel: {
show: !0,
color: "#9fadbf",
fontSize: 12,
fontWeight: "normal",
fontStyle: "normal",
rotate: 0
},
axisLine: {
show: !1,
lineStyle: {
width: 1,
color: "#ccc"
}
},
axisTick: {
show: !1,
lineStyle: {
width: 1,
color: "#ccc"
}
}
},
// 提示
tooltip: {
show: !0,
trigger: "axis",
formatter: "{b} {c}",
// valueFormatter: "(value, dataIndex) => value",
axisPointer: {
type: "line"
},
textStyle: {
color: "#000000FF",
fontSize: 12,
fontWeight: "normal",
fontStyle: "normal"
},
padding: 10,
borderWidth: 1,
borderColor: "#ccc",
borderRadius: 4,
backgroundColor: "#FFFFFFFF",
extraCssText: ""
}
}, $Me = { class: "color-list" }, AMe = { class: "del-btn" }, EMe = /* @__PURE__ */ te({
__name: "ColorScheme",
props: {
value: {
type: Array,
default: () => []
}
},
emits: ["update:value"],
setup(t, { emit: e }) {
const n = t, r = X1.map((d) => d.color.join(",")), i = e, a = U(r.includes(n.value.join(",")) ? n.value.join(",") : "custom"), o = U(n.value), s = U();
function l(d) {
d === "custom" || (o.value = d.split(","), i("update:value", d.split(",")));
}
const u = () => {
var d;
(d = s.value) == null || d.show();
};
function c(d) {
o.value.push(d), a.value = "custom", i("update:value", o.value);
}
const f = (d) => {
o.value.splice(d, 1), a.value = "custom", i("update:value", o.value);
};
return (d, h) => (pe(), Qe("div", null, [
M(z(di), {
value: a.value,
"onUpdate:value": h[0] || (h[0] = (p) => a.value = p),
size: "small",
style: { width: "100%" },
onChange: l
}, {
default: we(() => [
(pe(!0), Qe(wt, null, cg(z(X1), (p) => (pe(), je(z(D1), {
key: p.name,
value: p.color.join(",")
}, {
default: we(() => [
(pe(!0), Qe(wt, null, cg(p.color.slice(0, 5), (v) => (pe(), Qe("span", {
class: "color-block",
key: v,
style: Sr({ background: v })
}, null, 4))), 128)),
Kt(" " + Vi(p.name), 1)
]),
_: 2
}, 1032, ["value"]))), 128)),
M(z(D1), { value: "custom" }, {
default: we(() => [
Kt("自定义组合")
]),
_: 1
})
]),
_: 1
}, 8, ["value"]),
He("div", $Me, [
(pe(!0), Qe(wt, null, cg(o.value, (p, v) => (pe(), Qe("span", {
class: "color-block",
key: v,
style: Sr({ background: p })
}, [
He("span", AMe, [
M(z(ka), {
onClick: (g) => f(v)
}, null, 8, ["onClick"])
])
], 4))), 128)),
He("span", {
class: "color-block cus-btn",
onClick: u
}, [
M(z(_x))
]),
M(z(Jd), {
ref_key: "colorPickerRef",
ref: s,
style: { width: "0", height: "0", opacity: "0" },
onChange: c
}, null, 512)
])
]));
}
}), MMe = /* @__PURE__ */ $r(EMe, [["__scopeId", "data-v-b29b1b78"]]), IMe = { class: "position" }, DMe = /* @__PURE__ */ te({
__name: "Position",
props: {
value: {},
type: { default: "line" }
},
emits: ["update:value"],
setup(t) {
return (e, n) => (pe(), Qe("div", IMe, [
e.type === "line" ? (pe(), je(z(gf), {
key: 0,
value: e.value,
onChange: n[0] || (n[0] = (r) => e.$emit("update:value", r.target.value))
}, {
default: we(() => [
M(z(Do), { value: "left" }, {
default: we(() => [
M(z(ID))
]),
_: 1
}),
M(z(Do), { value: "center" }, {
default: we(() => [
M(z(MD))
]),
_: 1
}),
M(z(Do), { value: "right" }, {
default: we(() => [
M(z(DD))
]),
_: 1
})
]),
_: 1
}, 8, ["value"])) : e.type === "round" ? (pe(), je(z(gf), {
key: 1,
value: e.value,
onChange: n[1] || (n[1] = (r) => e.$emit("update:value", r.target.value))
}, {
default: we(() => [
M(z(Do), { value: "top" }, {
default: we(() => [
M(z(BD))
]),
_: 1
}),
M(z(Do), { value: "bottom" }, {
default: we(() => [
M(z(kD))
]),
_: 1
}),
M(z(Do), { value: "left" }, {
default: we(() => [
M(z(LD))
]),
_: 1
}),
M(z(Do), { value: "right" }, {
default: we(() => [
M(z(ND))
]),
_: 1
})
]),
_: 1
}, 8, ["value"])) : _t("", !0)
]));
}
}), RMe = /* @__PURE__ */ $r(DMe, [["__scopeId", "data-v-a4b8591a"]]), kMe = { class: "font-style" }, LMe = { class: "cus-btn" }, NMe = /* @__PURE__ */ te({
__name: "FontStyle",
props: {
value: {}
},
emits: ["update:value"],
setup(t, { emit: e }) {
var v, g, m, y;
const n = t, r = e, i = U((v = n.value) == null ? void 0 : v.bold), a = U((g = n.value) == null ? void 0 : g.italic), o = U((m = n.value) == null ? void 0 : m.size), s = U((y = n.value) == null ? void 0 : y.color), l = U(), u = () => {
r("update:value", {
size: o.value,
bold: i.value,
italic: a.value,
color: s.value
});
}, c = () => {
i.value = !i.value, u();
}, f = () => {
a.value = !a.value, u();
};
function d(b) {
s.value = b, u();
}
function h(b) {
o.value = b, u();
}
const p = () => {
var b;
(b = l.value) == null || b.show();
};
return (b, _) => (pe(), Qe("div", kMe, [
M(z(Xr), {
size: "small",
onClick: p
}, {
default: we(() => [
He("span", LMe, [
M(z(zD)),
He("div", {
class: "color-block",
style: Sr({ background: s.value })
}, null, 4),
M(z(Jd), {
ref_key: "colorPickerRef",
ref: l,
style: { width: "0", height: "0", opacity: "0" },
value: s.value,
"onUpdate:value": _[0] || (_[0] = (O) => s.value = O),
onChange: d
}, null, 8, ["value"])
])
]),
_: 1
}),
M(z(Xr), {
size: "small",
onClick: c
}, {
default: we(() => [
He("span", {
class: Ye(["cus-btn", { "active-btn": i.value }])
}, [
M(z(RD))
], 2)
]),
_: 1
}),
M(z(Xr), {
size: "small",
onClick: f
}, {
default: we(() => [
He("span", {
class: Ye(["cus-btn", { "active-btn": a.value }])
}, [
M(z(VD))
], 2)
]),
_: 1
}),
M(z(S0), {
size: "small",
value: o.value,
min: 12,
step: 1,
precision: 0,
style: { width: "80px" },
onChange: h
}, {
addonAfter: we(() => [
Kt("px")
]),
_: 1
}, 8, ["value"])
]));
}
}), BMe = /* @__PURE__ */ $r(NMe, [["__scopeId", "data-v-12e62bfe"]]), zMe = { class: "cus-slider" }, VMe = /* @__PURE__ */ te({
__name: "CusSlider",
props: {
value: {}
},
emits: ["update:value"],
setup(t) {
return (e, n) => (pe(), Qe("div", zMe, [
M(z(nPe), {
value: e.value,
onChange: n[0] || (n[0] = (r) => e.$emit("update:value", r)),
"tip-formatter": (r) => `${r}%`
}, null, 8, ["value", "tip-formatter"]),
M(z(S0), {
value: e.value,
onChange: n[1] || (n[1] = (r) => e.$emit("update:value", r)),
"addon-after": "%"
}, null, 8, ["value"])
]));
}
}), FMe = /* @__PURE__ */ $r(VMe, [["__scopeId", "data-v-2fe8fa98"]]), WMe = te({
name: "FmBorderRadius",
components: {
RadioGroup: gf,
RadioButton: Do,
InputNumber: S0,
Select: di,
RadiusUpleftOutlined: QD,
RadiusUprightOutlined: HD,
RadiusBottomleftOutlined: FD,
RadiusBottomrightOutlined: WD
},
props: {
value: {
type: Object,
default: () => ({})
}
},
emits: ["update:value"],
setup(t, { emit: e }) {
var r, i, a, o;
const n = tn({
type: t.value.type || "all",
value: t.value.type === "all" ? t.value.value : 0,
unit: t.value.unit || "px",
topLeft: typeof t.value.value == "object" ? (r = t.value.value) == null ? void 0 : r.topLeft : 0,
topRight: typeof t.value.value == "object" ? (i = t.value.value) == null ? void 0 : i.topRight : 0,
bottomLeft: typeof t.value.value == "object" ? (a = t.value.value) == null ? void 0 : a.bottomLeft : 0,
bottomRight: typeof t.value.value == "object" ? (o = t.value.value) == null ? void 0 : o.bottomRight : 0
});
return se(
() => n,
(s) => {
e("update:value", {
type: s.type,
value: s.type === "all" ? s.value : {
topLeft: s.topLeft,
topRight: s.topRight,
bottomLeft: s.bottomLeft,
bottomRight: s.bottomRight
},
unit: s.unit
});
},
{
deep: !0
}
), {
radius: n,
unitOptions: [
{ label: "px", value: "px" },
{ label: "%", value: "%" }
]
};
}
}), QMe = {
key: 0,
class: "all"
}, HMe = {
key: 1,
class: "custom"
};
function GMe(t, e, n, r, i, a) {
const o = fi("RadioButton"), s = fi("RadioGroup"), l = fi("InputNumber"), u = fi("Select"), c = fi("RadiusUpleftOutlined"), f = fi("RadiusUprightOutlined"), d = fi("RadiusBottomleftOutlined"), h = fi("RadiusBottomrightOutlined");
return pe(), Qe("div", null, [
M(s, {
value: t.radius.type,
"onUpdate:value": e[0] || (e[0] = (p) => t.radius.type = p)
}, {
default: we(() => [
M(o, { value: "all" }, {
default: we(() => [
Kt("整体")
]),
_: 1
}),
M(o, { value: "custom" }, {
default: we(() => [
Kt("单个")
]),
_: 1
})
]),
_: 1
}, 8, ["value"]),
t.radius.type === "all" ? (pe(), Qe("div", QMe, [
M(l, {
value: t.radius.value,
"onUpdate:value": e[1] || (e[1] = (p) => t.radius.value = p)
}, null, 8, ["value"]),
M(u, {
value: t.radius.unit,
"onUpdate:value": e[2] || (e[2] = (p) => t.radius.unit = p),
options: t.unitOptions
}, null, 8, ["value", "options"])
])) : (pe(), Qe("div", HMe, [
M(l, {
value: t.radius.topLeft,
"onUpdate:value": e[3] || (e[3] = (p) => t.radius.topLeft = p)
}, {
addonBefore: we(() => [
M(c)
]),
_: 1
}, 8, ["value"]),
M(l, {
value: t.radius.topRight,
"onUpdate:value": e[4] || (e[4] = (p) => t.radius.topRight = p)
}, {
addonBefore: we(() => [
M(f)
]),
_: 1
}, 8, ["value"]),
M(l, {
value: t.radius.bottomLeft,
"onUpdate:value": e[5] || (e[5] = (p) => t.radius.bottomLeft = p)
}, {
addonBefore: we(() => [
M(d)
]),
_: 1
}, 8, ["value"]),
M(l, {
value: t.radius.bottomRight,
"onUpdate:value": e[6] || (e[6] = (p) => t.radius.bottomRight = p)
}, {
addonBefore: we(() => [
M(h)
]),
_: 1
}, 8, ["value"]),
M(u, {
value: t.radius.unit,
"onUpdate:value": e[7] || (e[7] = (p) => t.radius.unit = p),
options: t.unitOptions
}, null, 8, ["value", "options"])
]))
]);
}
const jMe = /* @__PURE__ */ $r(WMe, [["render", GMe], ["__scopeId", "data-v-da2b5cf6"]]), ZMe = /* @__PURE__ */ te({
__name: "CusFormItem",
props: {
item: {},
modelValue: {}
},
emits: ["update:modelValue"],
setup(t, { emit: e }) {
const n = t, r = e, i = U(n.modelValue);
return se(
() => i.value,
() => {
r("update:modelValue", i.value);
},
{ deep: !0 }
), se(
() => n.modelValue,
(a) => {
KS(a, i.value) || (i.value = a);
}
), (a, o) => (pe(), je(z($X), {
label: a.item.type !== "divider" ? a.item.label : "",
name: a.item.prop,
rules: a.item.rules
}, {
default: we(() => {
var s, l, u, c, f, d, h, p, v, g, m;
return [
a.item.type === "divider" ? (pe(), je(z(qwe), {
key: 0,
style: { margin: "0" }
}, {
default: we(() => [
Kt(Vi(a.item.label), 1)
]),
_: 1
})) : a.item.type === "input" ? (pe(), je(z(Hn), _n({
key: 1,
value: i.value,
"onUpdate:value": o[0] || (o[0] = (y) => i.value = y)
}, (s = a.item) == null ? void 0 : s.fieldProps), null, 16, ["value"])) : a.item.type === "select" ? (pe(), je(z(di), _n({
key: 2,
value: i.value,
"onUpdate:value": o[1] || (o[1] = (y) => i.value = y)
}, (l = a.item) == null ? void 0 : l.fieldProps), null, 16, ["value"])) : a.item.type === "inputNumber" ? (pe(), je(z(S0), _n({
key: 3,
value: i.value,
"onUpdate:value": o[2] || (o[2] = (y) => i.value = y)
}, (u = a.item) == null ? void 0 : u.fieldProps, { style: { width: "100%" } }), null, 16, ["value"])) : a.item.type === "image" ? (pe(), je(z(Al), _n({
key: 4,
value: i.value,
"onUpdate:value": o[3] || (o[3] = (y) => i.value = y)
}, (c = a.item) == null ? void 0 : c.fieldProps), null, 16, ["value"])) : a.item.type === "checkboxGroup" ? (pe(), je(z(F1), _n({
key: 5,
value: i.value,
"onUpdate:value": o[4] || (o[4] = (y) => i.value = y)
}, (f = a.item) == null ? void 0 : f.fieldProps), null, 16, ["value"])) : a.item.type === "backgroundSelect" ? (pe(), je(wMe, _n({
key: 6,
value: i.value,
"onUpdate:value": o[5] || (o[5] = (y) => i.value = y)
}, (d = a.item) == null ? void 0 : d.fieldProps), null, 16, ["value"])) : a.item.type === "colorSelect" ? (pe(), je(TMe, _n({
key: 7,
value: i.value,
"onUpdate:value": o[6] || (o[6] = (y) => i.value = y)
}, (h = a.item) == null ? void 0 : h.fieldProps), null, 16, ["value"])) : a.item.type === "colorScheme" ? (pe(), je(MMe, _n({
key: 8,
value: i.value,
"onUpdate:value": o[7] || (o[7] = (y) => i.value = y)
}, (p = a.item) == null ? void 0 : p.fieldProps), null, 16, ["value"])) : a.item.type === "radioGroup" ? (pe(), je(z(gf), _n({
key: 9,
value: i.value,
"onUpdate:value": o[8] || (o[8] = (y) => i.value = y),
size: "small"
}, (v = a.item) == null ? void 0 : v.fieldProps), null, 16, ["value"])) : a.item.type === "radioGroupButton" ? (pe(), je(z(gf), {
key: 10,
value: i.value,
"onUpdate:value": o[9] || (o[9] = (y) => i.value = y),
size: "small"
}, {
default: we(() => [
(pe(!0), Qe(wt, null, cg(a.item.fieldProps.options, (y) => (pe(), je(z(Do), {
key: y.value,
value: y.value
}, {
default: we(() => [
Kt(Vi(y.label), 1)
]),
_: 2
}, 1032, ["value"]))), 128))
]),
_: 1
}, 8, ["value"])) : a.item.type === "position" ? (pe(), je(RMe, _n({
key: 11,
value: i.value,
"onUpdate:value": o[10] || (o[10] = (y) => i.value = y)
}, (g = a.item) == null ? void 0 : g.fieldProps), null, 16, ["value"])) : a.item.type === "fontStyle" ? (pe(), je(BMe, _n({
key: 12,
value: i.value,
"onUpdate:value": o[11] || (o[11] = (y) => i.value = y)
}, (m = a.item) == null ? void 0 : m.fieldProps), null, 16, ["value"])) : a.item.type === "slider" ? (pe(), je(z(lm), { key: 13 }, {
default: we(() => {
var y;
return [
M(FMe, _n({
value: i.value,
"onUpdate:value": o[12] || (o[12] = (b) => i.value = b)
}, (y = a.item) == null ? void 0 : y.fieldProps), null, 16, ["value"])
];
}),
_: 1
})) : a.item.type === "boderRadiusSelect" ? (pe(), je(z(lm), { key: 14 }, {
default: we(() => {
var y;
return [
M(jMe, _n({
value: i.value,
"onUpdate:value": o[13] || (o[13] = (b) => i.value = b)
}, (y = a.item) == null ? void 0 : y.fieldProps), null, 16, ["value"])
];
}),
_: 1
})) : _t("", !0),
a.item.tip ? (pe(), je(z(px), {
key: 15,
title: a.item.tip
}, {
default: we(() => [
M(z(hx), { style: { color: "#666" } })
]),
_: 1
}, 8, ["title"])) : _t("", !0)
];
}),
_: 1
}, 8, ["label", "name", "rules"]));
}
}), UMe = /* @__PURE__ */ $r(ZMe, [["__scopeId", "data-v-04c55003"]]), qc = te({
name: "DCusForm",
props: {
columns: {
type: Array,
default: () => []
},
formModel: {
type: Object,
default: () => ({})
}
},
emits: ["change"],
setup(t, { emit: e }) {
const n = U({}), r = U(), i = U({}), a = L(() => t.columns.map((f) => ({
...f,
rules: (f == null ? void 0 : f.rules) || []
}))), o = (f) => {
f == null || f.forEach((d) => {
var h;
if (d.type === "group")
o(d.children);
else if (d.type === "dependency") {
const p = (h = d.children) == null ? void 0 : h.call(
d,
um(n.value, d.name || []),
n
);
o(p);
} else {
if (d.type === "divider") return;
const p = kt(t.formModel, d.prop);
n.value[d.prop] = d != null && d.valueToForm ? d.valueToForm(p, t.formModel) : p ?? d.defaultValue, d.format ? d.format(i, n.value[d.prop]) : i.value[d.prop] = p ?? d.defaultValue;
}
});
}, s = (f, d) => {
n.value[d.prop] = f, d.format ? d.format(i, f) : i.value[d.prop] = f, e("change", i.value);
}, l = (f) => {
var d;
switch (f.type) {
case "dependency": {
const h = (d = f.children) == null ? void 0 : d.call(
f,
um(n.value, f.name || []),
n
);
return o(h), c(h);
}
case "group":
return u(f);
default:
return /* @__PURE__ */ React.createElement(
UMe,
{
key: f.prop,
item: f,
modelValue: n.value[f.prop],
"onUpdate:modelValue": (h) => {
s(h, f);
}
}
);
}
}, u = (f) => {
var d;
return /* @__PURE__ */ React.createElement(vg, { style: { borderRadius: 0 } }, /* @__PURE__ */ React.createElement(V1, { style: { borderRadius: 0 }, key: f.prop, header: f.label }, (d = f.children) == null ? void 0 : d.map((h) => l(h))));
}, c = (f) => f.map((d) => {
switch (d.type) {
case "group":
return u(d);
default:
return l(d);
}
});
return se(
() => a.value,
(f) => {
f && o(f);
},
{ immediate: !0 }
), () => /* @__PURE__ */ React.createElement(
dr,
{
model: n,
colon: !1,
"label-col": { span: 8 },
ref: r,
layout: "horizontal",
size: "small"
},
c(a.value)
);
}
});
qc.install = (t) => (t.component(qc.name, qc), t);
const _q = /* @__PURE__ */ te({
__name: "Config",
props: tI,
emits: ["change"],
setup(t, { emit: e }) {
const n = t, r = e, i = L(() => [
{
label: "内容",
prop: "text",
type: "input",
defaultValue: n.text
},
{
label: "字体",
prop: "fontSize",
type: "inputNumber",
defaultValue: n.fontSize
},
{
label: "颜色",
prop: "color",
type: "colorSelect",
defaultValue: n.color
},
{
label: "对齐",
prop: "textAlign",
type: "radioGroup",
defaultValue: n.textAlign,
fieldProps: {
options: [
{ label: "左对齐", value: "left" },
{ label: "居中", value: "center" },
{ label: "右对齐", value: "right" }
]
}
}
]), a = (o) => {
r("change", o);
};
return (o, s) => (pe(), je(z(qc), _n({ columns: i.value }, o.$attrs, { onChange: a }), null, 16, ["columns"]));
}
});
Zd.Config = _q;
Zd.install = (t) => (t.component(Zd.name, Zd), t);
const XMe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
Config: _q,
default: Zd,
defaultPropsValue: Ule,
titleProps: tI
}, Symbol.toStringTag, { value: "Module" }));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var aA = function(t, e) {
return aA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
n.__proto__ = r;
} || function(n, r) {
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
}, aA(t, e);
};
function q(t, e) {
if (typeof e != "function" && e !== null)
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
aA(t, e);
function n() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
}
var YMe = /* @__PURE__ */ function() {
function t() {
this.firefox = !1, this.ie = !1, this.edge = !1, this.newEdge = !1, this.weChat = !1;
}
return t;
}(), qMe = /* @__PURE__ */ function() {
function t() {
this.browser = new YMe(), this.node = !1, this.wxa = !1, this.worker = !1, this.svgSupported = !1, this.touchEventsSupported = !1, this.pointerEventsSupported = !1, this.domSupported = !1, this.transformSupported = !1, this.transform3dSupported = !1, this.hasGlobalWindow = typeof window < "u";
}
return t;
}(), fc = new qMe();
typeof wx == "object" && typeof wx.getSystemInfoSync == "function" ? (fc.wxa = !0, fc.touchEventsSupported = !0) : typeof document > "u" && typeof self < "u" ? fc.worker = !0 : typeof navigator > "u" || navigator.userAgent.indexOf("Node.js") === 0 ? (fc.node = !0, fc.svgSupported = !0) : KMe(navigator.userAgent, fc);
function KMe(t, e) {
var n = e.browser, r = t.match(/Firefox\/([\d.]+)/), i = t.match(/MSIE\s([\d.]+)/) || t.match(/Trident\/.+?rv:(([\d.]+))/), a = t.match(/Edge?\/([\d.]+)/), o = /micromessenger/i.test(t);
r && (n.firefox = !0, n.version = r[1]), i && (n.ie = !0, n.version = i[1]), a && (n.edge = !0, n.version = a[1], n.newEdge = +a[1].split(".")[0] > 18), o && (n.weChat = !0), e.svgSupported = typeof SVGRect < "u", e.touchEventsSupported = "ontouchstart" in window && !n.ie && !n.edge, e.pointerEventsSupported = "onpointerdown" in window && (n.edge || n.ie && +n.version >= 11), e.domSupported = typeof document < "u";
var s = document.documentElement.style;
e.transform3dSupported = (n.ie && "transition" in s || n.edge || "WebKitCSSMatrix" in window && "m11" in new WebKitCSSMatrix() || "MozPerspective" in s) && !("OTransition" in s), e.transformSupported = e.transform3dSupported || n.ie && +n.version >= 9;
}
const vt = fc;
var pR = 12, Oq = "sans-serif", iu = pR + "px " + Oq, JMe = 20, eIe = 100, tIe = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";
function nIe(t) {
var e = {};
if (typeof JSON > "u")
return e;
for (var n = 0; n < t.length; n++) {
var r = String.fromCharCode(n + 32), i = (t.charCodeAt(n) - JMe) / eIe;
e[r] = i;
}
return e;
}
var rIe = nIe(tIe), oo = {
createCanvas: function() {
return typeof document < "u" && document.createElement("canvas");
},
measureText: /* @__PURE__ */ function() {
var t, e;
return function(n, r) {
if (!t) {
var i = oo.createCanvas();
t = i && i.getContext("2d");
}
if (t)
return e !== r && (e = t.font = r || iu), t.measureText(n);
n = n || "", r = r || iu;
var a = /((?:\d+)?\.?\d*)px/.exec(r), o = a && +a[1] || pR, s = 0;
if (r.indexOf("mono") >= 0)
s = o * n.length;
else
for (var l = 0; l < n.length; l++) {
var u = rIe[n[l]];
s += u == null ? o : u * o;
}
return { width: s };
};
}(),
loadImage: function(t, e, n) {
var r = new Image();
return r.onload = e, r.onerror = n, r.src = t, r;
}
};
function Sq(t) {
for (var e in oo)
t[e] && (oo[e] = t[e]);
}
var xq = Ma([
"Function",
"RegExp",
"Date",
"Error",
"CanvasGradient",
"CanvasPattern",
"Image",
"Canvas"
], function(t, e) {
return t["[object " + e + "]"] = !0, t;
}, {}), wq = Ma([
"Int8",
"Uint8",
"Uint8Clamped",
"Int16",
"Uint16",
"Int32",
"Uint32",
"Float32",
"Float64"
], function(t, e) {
return t["[object " + e + "Array]"] = !0, t;
}, {}), vp = Object.prototype.toString, Dx = Array.prototype, iIe = Dx.forEach, aIe = Dx.filter, vR = Dx.slice, oIe = Dx.map, I6 = (function() {
}).constructor, Vy = I6 ? I6.prototype : null, gR = "__proto__", sIe = 2311;
function mR() {
return sIe++;
}
function xa() {
for (var t = [], e = 0; e < arguments.length; e++)
t[e] = arguments[e];
typeof console < "u" && console.error.apply(console, t);
}
function Le(t) {
if (t == null || typeof t != "object")
return t;
var e = t, n = vp.call(t);
if (n === "[object Array]") {
if (!eh(t)) {
e = [];
for (var r = 0, i = t.length; r < i; r++)
e[r] = Le(t[r]);
}
} else if (wq[n]) {
if (!eh(t)) {
var a = t.constructor;
if (a.from)
e = a.from(t);
else {
e = new a(t.length);
for (var r = 0, i = t.length; r < i; r++)
e[r] = t[r];
}
}
} else if (!xq[n] && !eh(t) && !au(t)) {
e = {};
for (var o in t)
t.hasOwnProperty(o) && o !== gR && (e[o] = Le(t[o]));
}
return e;
}
function qe(t, e, n) {
if (!Ie(e) || !Ie(t))
return n ? Le(e) : t;
for (var r in e)
if (e.hasOwnProperty(r) && r !== gR) {
var i = t[r], a = e[r];
Ie(a) && Ie(i) && !ue(a) && !ue(i) && !au(a) && !au(i) && !oA(a) && !oA(i) && !eh(a) && !eh(i) ? qe(i, a, n) : (n || !(r in t)) && (t[r] = Le(e[r]));
}
return t;
}
function Rx(t, e) {
for (var n = t[0], r = 1, i = t.length; r < i; r++)
n = qe(n, t[r], e);
return n;
}
function le(t, e) {
if (Object.assign)
Object.assign(t, e);
else
for (var n in e)
e.hasOwnProperty(n) && n !== gR && (t[n] = e[n]);
return t;
}
function Re(t, e, n) {
for (var r = st(e), i = 0; i < r.length; i++) {
var a = r[i];
(n ? e[a] != null : t[a] == null) && (t[a] = e[a]);
}
return t;
}
var lIe = oo.createCanvas;
function et(t, e) {
if (t) {
if (t.indexOf)
return t.indexOf(e);
for (var n = 0, r = t.length; n < r; n++)
if (t[n] === e)
return n;
}
return -1;
}
function yR(t, e) {
var n = t.prototype;
function r() {
}
r.prototype = e.prototype, t.prototype = new r();
for (var i in n)
n.hasOwnProperty(i) && (t.prototype[i] = n[i]);
t.prototype.constructor = t, t.superClass = e;
}
function xn(t, e, n) {
if (t = "prototype" in t ? t.prototype : t, e = "prototype" in e ? e.prototype : e, Object.getOwnPropertyNames)
for (var r = Object.getOwnPropertyNames(e), i = 0; i < r.length; i++) {
var a = r[i];
a !== "constructor" && (n ? e[a] != null : t[a] == null) && (t[a] = e[a]);
}
else
Re(t, e, n);
}
function wr(t) {
return !t || typeof t == "string" ? !1 : typeof t.length == "number";
}
function k(t, e, n) {
if (t && e)
if (t.forEach && t.forEach === iIe)
t.forEach(e, n);
else if (t.length === +t.length)
for (var r = 0, i = t.length; r < i; r++)
e.call(n, t[r], r, t);
else
for (var a in t)
t.hasOwnProperty(a) && e.call(n, t[a], a, t);
}
function ce(t, e, n) {
if (!t)
return [];
if (!e)
return kx(t);
if (t.map && t.map === oIe)
return t.map(e, n);
for (var r = [], i = 0, a = t.length; i < a; i++)
r.push(e.call(n, t[i], i, t));
return r;
}
function Ma(t, e, n, r) {
if (t && e) {
for (var i = 0, a = t.length; i < a; i++)
n = e.call(r, n, t[i], i, t);
return n;
}
}
function Nt(t, e, n) {
if (!t)
return [];
if (!e)
return kx(t);
if (t.filter && t.filter === aIe)
return t.filter(e, n);
for (var r = [], i = 0, a = t.length; i < a; i++)
e.call(n, t[i], i, t) && r.push(t[i]);
return r;
}
function Cq(t, e, n) {
if (t && e) {
for (var r = 0, i = t.length; r < i; r++)
if (e.call(n, t[r], r, t))
return t[r];
}
}
function st(t) {
if (!t)
return [];
if (Object.keys)
return Object.keys(t);
var e = [];
for (var n in t)
t.hasOwnProperty(n) && e.push(n);
return e;
}
function uIe(t, e) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
return function() {
return t.apply(e, n.concat(vR.call(arguments)));
};
}
var xe = Vy && Me(Vy.bind) ? Vy.call.bind(Vy.bind) : uIe;
function Ue(t) {
for (var e = [], n = 1; n < arguments.length; n++)
e[n - 1] = arguments[n];
return function() {
return t.apply(this, e.concat(vR.call(arguments)));
};
}
function ue(t) {
return Array.isArray ? Array.isArray(t) : vp.call(t) === "[object Array]";
}
function Me(t) {
return typeof t == "function";
}
function Oe(t) {
return typeof t == "string";
}
function ym(t) {
return vp.call(t) === "[object String]";
}
function St(t) {
return typeof t == "number";
}
function Ie(t) {
var e = typeof t;
return e === "function" || !!t && e === "object";
}
function oA(t) {
return !!xq[vp.call(t)];
}
function Br(t) {
return !!wq[vp.call(t)];
}
function au(t) {
return typeof t == "object" && typeof t.nodeType == "number" && typeof t.ownerDocument == "object";
}
function I0(t) {
return t.colorStops != null;
}
function Tq(t) {
return t.image != null;
}
function bR(t) {
return vp.call(t) === "[object RegExp]";
}
function ou(t) {
return t !== t;
}
function Tn() {
for (var t = [], e = 0; e < arguments.length; e++)
t[e] = arguments[e];
for (var n = 0, r = t.length; n < r; n++)
if (t[n] != null)
return t[n];
}
function We(t, e) {
return t ?? e;
}
function Ui(t, e, n) {
return t ?? e ?? n;
}
function kx(t) {
for (var e = [], n = 1; n < arguments.length; n++)
e[n - 1] = arguments[n];
return vR.apply(t, e);
}
function Lx(t) {
if (typeof t == "number")
return [t, t, t, t];
var e = t.length;
return e === 2 ? [t[0], t[1], t[0], t[1]] : e === 3 ? [t[0], t[1], t[2], t[1]] : t;
}
function ke(t, e) {
if (!t)
throw new Error(e);
}
function ba(t) {
return t == null ? null : typeof t.trim == "function" ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
}
var Pq = "__ec_primitive__";
function bm(t) {
t[Pq] = !0;
}
function eh(t) {
return t[Pq];
}
var cIe = function() {
function t() {
this.data = {};
}
return t.prototype.delete = function(e) {
var n = this.has(e);
return n && delete this.data[e], n;
}, t.prototype.has = function(e) {
return this.data.hasOwnProperty(e);
}, t.prototype.get = function(e) {
return this.data[e];
}, t.prototype.set = function(e, n) {
return this.data[e] = n, this;
}, t.prototype.keys = function() {
return st(this.data);
}, t.prototype.forEach = function(e) {
var n = this.data;
for (var r in n)
n.hasOwnProperty(r) && e(n[r], r);
}, t;
}(), $q = typeof Map == "function";
function fIe() {
return $q ? /* @__PURE__ */ new Map() : new cIe();
}
var Aq = function() {
function t(e) {
var n = ue(e);
this.data = fIe();
var r = this;
e instanceof t ? e.each(i) : e && k(e, i);
function i(a, o) {
n ? r.set(a, o) : r.set(o, a);
}
}
return t.prototype.hasKey = function(e) {
return this.data.has(e);
}, t.prototype.get = function(e) {
return this.data.get(e);
}, t.prototype.set = function(e, n) {
return this.data.set(e, n), n;
}, t.prototype.each = function(e, n) {
this.data.forEach(function(r, i) {
e.call(n, r, i);
});
}, t.prototype.keys = function() {
var e = this.data.keys();
return $q ? Array.from(e) : e;
}, t.prototype.removeKey = function(e) {
this.data.delete(e);
}, t;
}();
function Pe(t) {
return new Aq(t);
}
function _m(t, e) {
for (var n = new t.constructor(t.length + e.length), r = 0; r < t.length; r++)
n[r] = t[r];
for (var i = t.length, r = 0; r < e.length; r++)
n[r + i] = e[r];
return n;
}
function D0(t, e) {
var n;
if (Object.create)
n = Object.create(t);
else {
var r = function() {
};
r.prototype = t, n = new r();
}
return e && le(n, e), n;
}
function _R(t) {
var e = t.style;
e.webkitUserSelect = "none", e.userSelect = "none", e.webkitTapHighlightColor = "rgba(0,0,0,0)", e["-webkit-touch-callout"] = "none";
}
function Ce(t, e) {
return t.hasOwnProperty(e);
}
function On() {
}
var Tg = 180 / Math.PI;
const dIe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
HashMap: Aq,
RADIAN_TO_DEGREE: Tg,
assert: ke,
bind: xe,
clone: Le,
concatArray: _m,
createCanvas: lIe,
createHashMap: Pe,
createObject: D0,
curry: Ue,
defaults: Re,
disableUserSelect: _R,
each: k,
eqNaN: ou,
extend: le,
filter: Nt,
find: Cq,
guid: mR,
hasOwn: Ce,
indexOf: et,
inherits: yR,
isArray: ue,
isArrayLike: wr,
isBuiltInObject: oA,
isDom: au,
isFunction: Me,
isGradientObject: I0,
isImagePatternObject: Tq,
isNumber: St,
isObject: Ie,
isPrimitive: eh,
isRegExp: bR,
isString: Oe,
isStringSafe: ym,
isTypedArray: Br,
keys: st,
logError: xa,
map: ce,
merge: qe,
mergeAll: Rx,
mixin: xn,
noop: On,
normalizeCssArray: Lx,
reduce: Ma,
retrieve: Tn,
retrieve2: We,
retrieve3: Ui,
setAsPrimitive: bm,
slice: kx,
trim: ba
}, Symbol.toStringTag, { value: "Module" }));
function wu(t, e) {
return t == null && (t = 0), e == null && (e = 0), [t, e];
}
function Ir(t, e) {
return t[0] = e[0], t[1] = e[1], t;
}
function Uo(t) {
return [t[0], t[1]];
}
function Eq(t, e, n) {
return t[0] = e, t[1] = n, t;
}
function sA(t, e, n) {
return t[0] = e[0] + n[0], t[1] = e[1] + n[1], t;
}
function Y1(t, e, n, r) {
return t[0] = e[0] + n[0] * r, t[1] = e[1] + n[1] * r, t;
}
function kl(t, e, n) {
return t[0] = e[0] - n[0], t[1] = e[1] - n[1], t;
}
function Om(t) {
return Math.sqrt(OR(t));
}
var hIe = Om;
function OR(t) {
return t[0] * t[0] + t[1] * t[1];
}
var pIe = OR;
function vIe(t, e, n) {
return t[0] = e[0] * n[0], t[1] = e[1] * n[1], t;
}
function gIe(t, e, n) {
return t[0] = e[0] / n[0], t[1] = e[1] / n[1], t;
}
function mIe(t, e) {
return t[0] * e[0] + t[1] * e[1];
}
function Pg(t, e, n) {
return t[0] = e[0] * n, t[1] = e[1] * n, t;
}
function kf(t, e) {
var n = Om(e);
return n === 0 ? (t[0] = 0, t[1] = 0) : (t[0] = e[0] / n, t[1] = e[1] / n), t;
}
function q1(t, e) {
return Math.sqrt((t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1]));
}
var Ps = q1;
function Mq(t, e) {
return (t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1]);
}
var Ul = Mq;
function yIe(t, e) {
return t[0] = -e[0], t[1] = -e[1], t;
}
function $g(t, e, n, r) {
return t[0] = e[0] + r * (n[0] - e[0]), t[1] = e[1] + r * (n[1] - e[1]), t;
}
function ar(t, e, n) {
var r = e[0], i = e[1];
return t[0] = n[0] * r + n[2] * i + n[4], t[1] = n[1] * r + n[3] * i + n[5], t;
}
function $s(t, e, n) {
return t[0] = Math.min(e[0], n[0]), t[1] = Math.min(e[1], n[1]), t;
}
function As(t, e, n) {
return t[0] = Math.max(e[0], n[0]), t[1] = Math.max(e[1], n[1]), t;
}
const bIe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
add: sA,
applyTransform: ar,
clone: Uo,
copy: Ir,
create: wu,
dist: Ps,
distSquare: Ul,
distance: q1,
distanceSquare: Mq,
div: gIe,
dot: mIe,
len: Om,
lenSquare: OR,
length: hIe,
lengthSquare: pIe,
lerp: $g,
max: As,
min: $s,
mul: vIe,
negate: yIe,
normalize: kf,
scale: Pg,
scaleAndAdd: Y1,
set: Eq,
sub: kl
}, Symbol.toStringTag, { value: "Module" }));
var td = /* @__PURE__ */ function() {
function t(e, n) {
this.target = e, this.topTarget = n && n.topTarget;
}
return t;
}(), _Ie = function() {
function t(e) {
this.handler = e, e.on("mousedown", this._dragStart, this), e.on("mousemove", this._drag, this), e.on("mouseup", this._dragEnd, this);
}
return t.prototype._dragStart = function(e) {
for (var n = e.target; n && !n.draggable; )
n = n.parent || n.__hostTarget;
n && (this._draggingTarget = n, n.dragging = !0, this._x = e.offsetX, this._y = e.offsetY, this.handler.dispatchToElement(new td(n, e), "dragstart", e.event));
}, t.prototype._drag = function(e) {
var n = this._draggingTarget;
if (n) {
var r = e.offsetX, i = e.offsetY, a = r - this._x, o = i - this._y;
this._x = r, this._y = i, n.drift(a, o, e), this.handler.dispatchToElement(new td(n, e), "drag", e.event);
var s = this.handler.findHover(r, i, n).target, l = this._dropTarget;
this._dropTarget = s, n !== s && (l && s !== l && this.handler.dispatchToElement(new td(l, e), "dragleave", e.event), s && s !== l && this.handler.dispatchToElement(new td(s, e), "dragenter", e.event));
}
}, t.prototype._dragEnd = function(e) {
var n = this._draggingTarget;
n && (n.dragging = !1), this.handler.dispatchToElement(new td(n, e), "dragend", e.event), this._dropTarget && this.handler.dispatchToElement(new td(this._dropTarget, e), "drop", e.event), this._draggingTarget = null, this._dropTarget = null;
}, t;
}(), La = function() {
function t(e) {
e && (this._$eventProcessor = e);
}
return t.prototype.on = function(e, n, r, i) {
this._$handlers || (this._$handlers = {});
var a = this._$handlers;
if (typeof n == "function" && (i = r, r = n, n = null), !r || !e)
return this;
var o = this._$eventProcessor;
n != null && o && o.normalizeQuery && (n = o.normalizeQuery(n)), a[e] || (a[e] = []);
for (var s = 0; s < a[e].length; s++)
if (a[e][s].h === r)
return this;
var l = {
h: r,
query: n,
ctx: i || this,
callAtLast: r.zrEventfulCallAtLast
}, u = a[e].length - 1, c = a[e][u];
return c && c.callAtLast ? a[e].splice(u, 0, l) : a[e].push(l), this;
}, t.prototype.isSilent = function(e) {
var n = this._$handlers;
return !n || !n[e] || !n[e].length;
}, t.prototype.off = function(e, n) {
var r = this._$handlers;
if (!r)
return this;
if (!e)
return this._$handlers = {}, this;
if (n) {
if (r[e]) {
for (var i = [], a = 0, o = r[e].length; a < o; a++)
r[e][a].h !== n && i.push(r[e][a]);
r[e] = i;
}
r[e] && r[e].length === 0 && delete r[e];
} else
delete r[e];
return this;
}, t.prototype.trigger = function(e) {
for (var n = [], r = 1; r < arguments.length; r++)
n[r - 1] = arguments[r];
if (!this._$handlers)
return this;
var i = this._$handlers[e], a = this._$eventProcessor;
if (i)
for (var o = n.length, s = i.length, l = 0; l < s; l++) {
var u = i[l];
if (!(a && a.filter && u.query != null && !a.filter(e, u.query)))
switch (o) {
case 0:
u.h.call(u.ctx);
break;
case 1:
u.h.call(u.ctx, n[0]);
break;
case 2:
u.h.call(u.ctx, n[0], n[1]);
break;
default:
u.h.apply(u.ctx, n);
break;
}
}
return a && a.afterTrigger && a.afterTrigger(e), this;
}, t.prototype.triggerWithContext = function(e) {
for (var n = [], r = 1; r < arguments.length; r++)
n[r - 1] = arguments[r];
if (!this._$handlers)
return this;
var i = this._$handlers[e], a = this._$eventProcessor;
if (i)
for (var o = n.length, s = n[o - 1], l = i.length, u = 0; u < l; u++) {
var c = i[u];
if (!(a && a.filter && c.query != null && !a.filter(e, c.query)))
switch (o) {
case 0:
c.h.call(s);
break;
case 1:
c.h.call(s, n[0]);
break;
case 2:
c.h.call(s, n[0], n[1]);
break;
default:
c.h.apply(s, n.slice(1, o - 1));
break;
}
}
return a && a.afterTrigger && a.afterTrigger(e), this;
}, t;
}(), OIe = Math.log(2);
function lA(t, e, n, r, i, a) {
var o = r + "-" + i, s = t.length;
if (a.hasOwnProperty(o))
return a[o];
if (e === 1) {
var l = Math.round(Math.log((1 << s) - 1 & ~i) / OIe);
return t[n][l];
}
for (var u = r | 1 << n, c = n + 1; r & 1 << c; )
c++;
for (var f = 0, d = 0, h = 0; d < s; d++) {
var p = 1 << d;
p & i || (f += (h % 2 ? -1 : 1) * t[n][d] * lA(t, e - 1, c, u, i | p, a), h++);
}
return a[o] = f, f;
}
function D6(t, e) {
var n = [
[t[0], t[1], 1, 0, 0, 0, -e[0] * t[0], -e[0] * t[1]],
[0, 0, 0, t[0], t[1], 1, -e[1] * t[0], -e[1] * t[1]],
[t[2], t[3], 1, 0, 0, 0, -e[2] * t[2], -e[2] * t[3]],
[0, 0, 0, t[2], t[3], 1, -e[3] * t[2], -e[3] * t[3]],
[t[4], t[5], 1, 0, 0, 0, -e[4] * t[4], -e[4] * t[5]],
[0, 0, 0, t[4], t[5], 1, -e[5] * t[4], -e[5] * t[5]],
[t[6], t[7], 1, 0, 0, 0, -e[6] * t[6], -e[6] * t[7]],
[0, 0, 0, t[6], t[7], 1, -e[7] * t[6], -e[7] * t[7]]
], r = {}, i = lA(n, 8, 0, 0, 0, r);
if (i !== 0) {
for (var a = [], o = 0; o < 8; o++)
for (var s = 0; s < 8; s++)
a[s] == null && (a[s] = 0), a[s] += ((o + s) % 2 ? -1 : 1) * lA(n, 7, o === 0 ? 1 : 0, 1 << o, 1 << s, r) / i * e[o];
return function(l, u, c) {
var f = u * a[6] + c * a[7] + 1;
l[0] = (u * a[0] + c * a[1] + a[2]) / f, l[1] = (u * a[3] + c * a[4] + a[5]) / f;
};
}
}
var R6 = "___zrEVENTSAVED", WC = [];
function SIe(t, e, n, r, i) {
return uA(WC, e, r, i, !0) && uA(t, n, WC[0], WC[1]);
}
function uA(t, e, n, r, i) {
if (e.getBoundingClientRect && vt.domSupported && !Iq(e)) {
var a = e[R6] || (e[R6] = {}), o = xIe(e, a), s = wIe(o, a, i);
if (s)
return s(t, n, r), !0;
}
return !1;
}
function xIe(t, e) {
var n = e.markers;
if (n)
return n;
n = e.markers = [];
for (var r = ["left", "right"], i = ["top", "bottom"], a = 0; a < 4; a++) {
var o = document.createElement("div"), s = o.style, l = a % 2, u = (a >> 1) % 2;
s.cssText = [
"position: absolute",
"visibility: hidden",
"padding: 0",
"margin: 0",
"border-width: 0",
"user-select: none",
"width:0",
"height:0",
r[l] + ":0",
i[u] + ":0",
r[1 - l] + ":auto",
i[1 - u] + ":auto",
""
].join("!important;"), t.appendChild(o), n.push(o);
}
return n;
}
function wIe(t, e, n) {
for (var r = n ? "invTrans" : "trans", i = e[r], a = e.srcCoords, o = [], s = [], l = !0, u = 0; u < 4; u++) {
var c = t[u].getBoundingClientRect(), f = 2 * u, d = c.left, h = c.top;
o.push(d, h), l = l && a && d === a[f] && h === a[f + 1], s.push(t[u].offsetLeft, t[u].offsetTop);
}
return l && i ? i : (e.srcCoords = o, e[r] = n ? D6(s, o) : D6(o, s));
}
function Iq(t) {
return t.nodeName.toUpperCase() === "CANVAS";
}
var CIe = /([&<>"'])/g, TIe = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
};
function jr(t) {
return t == null ? "" : (t + "").replace(CIe, function(e, n) {
return TIe[n];
});
}
var PIe = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, QC = [], $Ie = vt.browser.firefox && +vt.browser.version.split(".")[0] < 39;
function cA(t, e, n, r) {
return n = n || {}, r ? k6(t, e, n) : $Ie && e.layerX != null && e.layerX !== e.offsetX ? (n.zrX = e.layerX, n.zrY = e.layerY) : e.offsetX != null ? (n.zrX = e.offsetX, n.zrY = e.offsetY) : k6(t, e, n), n;
}
function k6(t, e, n) {
if (vt.domSupported && t.getBoundingClientRect) {
var r = e.clientX, i = e.clientY;
if (Iq(t)) {
var a = t.getBoundingClientRect();
n.zrX = r - a.left, n.zrY = i - a.top;
return;
} else if (uA(QC, t, r, i)) {
n.zrX = QC[0], n.zrY = QC[1];
return;
}
}
n.zrX = n.zrY = 0;
}
function SR(t) {
return t || window.event;
}
function ua(t, e, n) {
if (e = SR(e), e.zrX != null)
return e;
var r = e.type, i = r && r.indexOf("touch") >= 0;
if (i) {
var o = r !== "touchend" ? e.targetTouches[0] : e.changedTouches[0];
o && cA(t, o, e, n);
} else {
cA(t, e, e, n);
var a = AIe(e);
e.zrDelta = a ? a / 120 : -(e.detail || 0) / 3;
}
var s = e.button;
return e.which == null && s !== void 0 && PIe.test(e.type) && (e.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0), e;
}
function AIe(t) {
var e = t.wheelDelta;
if (e)
return e;
var n = t.deltaX, r = t.deltaY;
if (n == null || r == null)
return e;
var i = Math.abs(r !== 0 ? r : n), a = r > 0 ? -1 : r < 0 ? 1 : n > 0 ? -1 : 1;
return 3 * i * a;
}
function fA(t, e, n, r) {
t.addEventListener(e, n, r);
}
function EIe(t, e, n, r) {
t.removeEventListener(e, n, r);
}
var js = function(t) {
t.preventDefault(), t.stopPropagation(), t.cancelBubble = !0;
};
function L6(t) {
return t.which === 2 || t.which === 3;
}
var MIe = function() {
function t() {
this._track = [];
}
return t.prototype.recognize = function(e, n, r) {
return this._doTrack(e, n, r), this._recognize(e);
}, t.prototype.clear = function() {
return this._track.length = 0, this;
}, t.prototype._doTrack = function(e, n, r) {
var i = e.touches;
if (i) {
for (var a = {
points: [],
touches: [],
target: n,
event: e
}, o = 0, s = i.length; o < s; o++) {
var l = i[o], u = cA(r, l, {});
a.points.push([u.zrX, u.zrY]), a.touches.push(l);
}
this._track.push(a);
}
}, t.prototype._recognize = function(e) {
for (var n in HC)
if (HC.hasOwnProperty(n)) {
var r = HC[n](this._track, e);
if (r)
return r;
}
}, t;
}();
function N6(t) {
var e = t[1][0] - t[0][0], n = t[1][1] - t[0][1];
return Math.sqrt(e * e + n * n);
}
function IIe(t) {
return [
(t[0][0] + t[1][0]) / 2,
(t[0][1] + t[1][1]) / 2
];
}
var HC = {
pinch: function(t, e) {
var n = t.length;
if (n) {
var r = (t[n - 1] || {}).points, i = (t[n - 2] || {}).points || r;
if (i && i.length > 1 && r && r.length > 1) {
var a = N6(r) / N6(i);
!isFinite(a) && (a = 1), e.pinchScale = a;
var o = IIe(r);
return e.pinchX = o[0], e.pinchY = o[1], {
type: "pinch",
target: t[0].target,
event: e
};
}
}
}
};
function wi() {
return [1, 0, 0, 1, 0, 0];
}
function R0(t) {
return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 1, t[4] = 0, t[5] = 0, t;
}
function Nx(t, e) {
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4], t[5] = e[5], t;
}
function Xo(t, e, n) {
var r = e[0] * n[0] + e[2] * n[1], i = e[1] * n[0] + e[3] * n[1], a = e[0] * n[2] + e[2] * n[3], o = e[1] * n[2] + e[3] * n[3], s = e[0] * n[4] + e[2] * n[5] + e[4], l = e[1] * n[4] + e[3] * n[5] + e[5];
return t[0] = r, t[1] = i, t[2] = a, t[3] = o, t[4] = s, t[5] = l, t;
}
function so(t, e, n) {
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t[4] = e[4] + n[0], t[5] = e[5] + n[1], t;
}
function Cu(t, e, n, r) {
r === void 0 && (r = [0, 0]);
var i = e[0], a = e[2], o = e[4], s = e[1], l = e[3], u = e[5], c = Math.sin(n), f = Math.cos(n);
return t[0] = i * f + s * c, t[1] = -i * c + s * f, t[2] = a * f + l * c, t[3] = -a * c + f * l, t[4] = f * (o - r[0]) + c * (u - r[1]) + r[0], t[5] = f * (u - r[1]) - c * (o - r[0]) + r[1], t;
}
function Bx(t, e, n) {
var r = n[0], i = n[1];
return t[0] = e[0] * r, t[1] = e[1] * i, t[2] = e[2] * r, t[3] = e[3] * i, t[4] = e[4] * r, t[5] = e[5] * i, t;
}
function Lf(t, e) {
var n = e[0], r = e[2], i = e[4], a = e[1], o = e[3], s = e[5], l = n * o - a * r;
return l ? (l = 1 / l, t[0] = o * l, t[1] = -a * l, t[2] = -r * l, t[3] = n * l, t[4] = (r * s - o * i) * l, t[5] = (a * i - n * s) * l, t) : null;
}
function Dq(t) {
var e = wi();
return Nx(e, t), e;
}
const DIe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
clone: Dq,
copy: Nx,
create: wi,
identity: R0,
invert: Lf,
mul: Xo,
rotate: Cu,
scale: Bx,
translate: so
}, Symbol.toStringTag, { value: "Module" }));
var Ke = function() {
function t(e, n) {
this.x = e || 0, this.y = n || 0;
}
return t.prototype.copy = function(e) {
return this.x = e.x, this.y = e.y, this;
}, t.prototype.clone = function() {
return new t(this.x, this.y);
}, t.prototype.set = function(e, n) {
return this.x = e, this.y = n, this;
}, t.prototype.equal = function(e) {
return e.x === this.x && e.y === this.y;
}, t.prototype.add = function(e) {
return this.x += e.x, this.y += e.y, this;
}, t.prototype.scale = function(e) {
this.x *= e, this.y *= e;
}, t.prototype.scaleAndAdd = function(e, n) {
this.x += e.x * n, this.y += e.y * n;
}, t.prototype.sub = function(e) {
return this.x -= e.x, this.y -= e.y, this;
}, t.prototype.dot = function(e) {
return this.x * e.x + this.y * e.y;
}, t.prototype.len = function() {
return Math.sqrt(this.x * this.x + this.y * this.y);
}, t.prototype.lenSquare = function() {
return this.x * this.x + this.y * this.y;
}, t.prototype.normalize = function() {
var e = this.len();
return this.x /= e, this.y /= e, this;
}, t.prototype.distance = function(e) {
var n = this.x - e.x, r = this.y - e.y;
return Math.sqrt(n * n + r * r);
}, t.prototype.distanceSquare = function(e) {
var n = this.x - e.x, r = this.y - e.y;
return n * n + r * r;
}, t.prototype.negate = function() {
return this.x = -this.x, this.y = -this.y, this;
}, t.prototype.transform = function(e) {
if (e) {
var n = this.x, r = this.y;
return this.x = e[0] * n + e[2] * r + e[4], this.y = e[1] * n + e[3] * r + e[5], this;
}
}, t.prototype.toArray = function(e) {
return e[0] = this.x, e[1] = this.y, e;
}, t.prototype.fromArray = function(e) {
this.x = e[0], this.y = e[1];
}, t.set = function(e, n, r) {
e.x = n, e.y = r;
}, t.copy = function(e, n) {
e.x = n.x, e.y = n.y;
}, t.len = function(e) {
return Math.sqrt(e.x * e.x + e.y * e.y);
}, t.lenSquare = function(e) {
return e.x * e.x + e.y * e.y;
}, t.dot = function(e, n) {
return e.x * n.x + e.y * n.y;
}, t.add = function(e, n, r) {
e.x = n.x + r.x, e.y = n.y + r.y;
}, t.sub = function(e, n, r) {
e.x = n.x - r.x, e.y = n.y - r.y;
}, t.scale = function(e, n, r) {
e.x = n.x * r, e.y = n.y * r;
}, t.scaleAndAdd = function(e, n, r, i) {
e.x = n.x + r.x * i, e.y = n.y + r.y * i;
}, t.lerp = function(e, n, r, i) {
var a = 1 - i;
e.x = a * n.x + i * r.x, e.y = a * n.y + i * r.y;
}, t;
}(), Fy = Math.min, Wy = Math.max, zu = new Ke(), Vu = new Ke(), Fu = new Ke(), Wu = new Ke(), nv = new Ke(), rv = new Ke(), RIe = function() {
function t(e, n, r, i) {
r < 0 && (e = e + r, r = -r), i < 0 && (n = n + i, i = -i), this.x = e, this.y = n, this.width = r, this.height = i;
}
return t.prototype.union = function(e) {
var n = Fy(e.x, this.x), r = Fy(e.y, this.y);
isFinite(this.x) && isFinite(this.width) ? this.width = Wy(e.x + e.width, this.x + this.width) - n : this.width = e.width, isFinite(this.y) && isFinite(this.height) ? this.height = Wy(e.y + e.height, this.y + this.height) - r : this.height = e.height, this.x = n, this.y = r;
}, t.prototype.applyTransform = function(e) {
t.applyTransform(this, this, e);
}, t.prototype.calculateTransform = function(e) {
var n = this, r = e.width / n.width, i = e.height / n.height, a = wi();
return so(a, a, [-n.x, -n.y]), Bx(a, a, [r, i]), so(a, a, [e.x, e.y]), a;
}, t.prototype.intersect = function(e, n) {
if (!e)
return !1;
e instanceof t || (e = t.create(e));
var r = this, i = r.x, a = r.x + r.width, o = r.y, s = r.y + r.height, l = e.x, u = e.x + e.width, c = e.y, f = e.y + e.height, d = !(a < l || u < i || s < c || f < o);
if (n) {
var h = 1 / 0, p = 0, v = Math.abs(a - l), g = Math.abs(u - i), m = Math.abs(s - c), y = Math.abs(f - o), b = Math.min(v, g), _ = Math.min(m, y);
a < l || u < i ? b > p && (p = b, v < g ? Ke.set(rv, -v, 0) : Ke.set(rv, g, 0)) : b < h && (h = b, v < g ? Ke.set(nv, v, 0) : Ke.set(nv, -g, 0)), s < c || f < o ? _ > p && (p = _, m < y ? Ke.set(rv, 0, -m) : Ke.set(rv, 0, y)) : b < h && (h = b, m < y ? Ke.set(nv, 0, m) : Ke.set(nv, 0, -y));
}
return n && Ke.copy(n, d ? nv : rv), d;
}, t.prototype.contain = function(e, n) {
var r = this;
return e >= r.x && e <= r.x + r.width && n >= r.y && n <= r.y + r.height;
}, t.prototype.clone = function() {
return new t(this.x, this.y, this.width, this.height);
}, t.prototype.copy = function(e) {
t.copy(this, e);
}, t.prototype.plain = function() {
return {
x: this.x,
y: this.y,
width: this.width,
height: this.height
};
}, t.prototype.isFinite = function() {
return isFinite(this.x) && isFinite(this.y) && isFinite(this.width) && isFinite(this.height);
}, t.prototype.isZero = function() {
return this.width === 0 || this.height === 0;
}, t.create = function(e) {
return new t(e.x, e.y, e.width, e.height);
}, t.copy = function(e, n) {
e.x = n.x, e.y = n.y, e.width = n.width, e.height = n.height;
}, t.applyTransform = function(e, n, r) {
if (!r) {
e !== n && t.copy(e, n);
return;
}
if (r[1] < 1e-5 && r[1] > -1e-5 && r[2] < 1e-5 && r[2] > -1e-5) {
var i = r[0], a = r[3], o = r[4], s = r[5];
e.x = n.x * i + o, e.y = n.y * a + s, e.width = n.width * i, e.height = n.height * a, e.width < 0 && (e.x += e.width, e.width = -e.width), e.height < 0 && (e.y += e.height, e.height = -e.height);
return;
}
zu.x = Fu.x = n.x, zu.y = Wu.y = n.y, Vu.x = Wu.x = n.x + n.width, Vu.y = Fu.y = n.y + n.height, zu.transform(r), Wu.transform(r), Vu.transform(r), Fu.transform(r), e.x = Fy(zu.x, Vu.x, Fu.x, Wu.x), e.y = Fy(zu.y, Vu.y, Fu.y, Wu.y);
var l = Wy(zu.x, Vu.x, Fu.x, Wu.x), u = Wy(zu.y, Vu.y, Fu.y, Wu.y);
e.width = l - e.x, e.height = u - e.y;
}, t;
}();
const Je = RIe;
var Rq = "silent";
function kIe(t, e, n) {
return {
type: t,
event: n,
target: e.target,
topTarget: e.topTarget,
cancelBubble: !1,
offsetX: n.zrX,
offsetY: n.zrY,
gestureEvent: n.gestureEvent,
pinchX: n.pinchX,
pinchY: n.pinchY,
pinchScale: n.pinchScale,
wheelDelta: n.zrDelta,
zrByTouch: n.zrByTouch,
which: n.which,
stop: LIe
};
}
function LIe() {
js(this.event);
}
var NIe = function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.handler = null, n;
}
return e.prototype.dispose = function() {
}, e.prototype.setCursor = function() {
}, e;
}(La), iv = /* @__PURE__ */ function() {
function t(e, n) {
this.x = e, this.y = n;
}
return t;
}(), BIe = [
"click",
"dblclick",
"mousewheel",
"mouseout",
"mouseup",
"mousedown",
"mousemove",
"contextmenu"
], GC = new Je(0, 0, 0, 0), kq = function(t) {
q(e, t);
function e(n, r, i, a, o) {
var s = t.call(this) || this;
return s._hovered = new iv(0, 0), s.storage = n, s.painter = r, s.painterRoot = a, s._pointerSize = o, i = i || new NIe(), s.proxy = null, s.setHandlerProxy(i), s._draggingMgr = new _Ie(s), s;
}
return e.prototype.setHandlerProxy = function(n) {
this.proxy && this.proxy.dispose(), n && (k(BIe, function(r) {
n.on && n.on(r, this[r], this);
}, this), n.handler = this), this.proxy = n;
}, e.prototype.mousemove = function(n) {
var r = n.zrX, i = n.zrY, a = Lq(this, r, i), o = this._hovered, s = o.target;
s && !s.__zr && (o = this.findHover(o.x, o.y), s = o.target);
var l = this._hovered = a ? new iv(r, i) : this.findHover(r, i), u = l.target, c = this.proxy;
c.setCursor && c.setCursor(u ? u.cursor : "default"), s && u !== s && this.dispatchToElement(o, "mouseout", n), this.dispatchToElement(l, "mousemove", n), u && u !== s && this.dispatchToElement(l, "mouseover", n);
}, e.prototype.mouseout = function(n) {
var r = n.zrEventControl;
r !== "only_globalout" && this.dispatchToElement(this._hovered, "mouseout", n), r !== "no_globalout" && this.trigger("globalout", { type: "globalout", event: n });
}, e.prototype.resize = function() {
this._hovered = new iv(0, 0);
}, e.prototype.dispatch = function(n, r) {
var i = this[n];
i && i.call(this, r);
}, e.prototype.dispose = function() {
this.proxy.dispose(), this.storage = null, this.proxy = null, this.painter = null;
}, e.prototype.setCursorStyle = function(n) {
var r = this.proxy;
r.setCursor && r.setCursor(n);
}, e.prototype.dispatchToElement = function(n, r, i) {
n = n || {};
var a = n.target;
if (!(a && a.silent)) {
for (var o = "on" + r, s = kIe(r, n, i); a && (a[o] && (s.cancelBubble = !!a[o].call(a, s)), a.trigger(r, s), a = a.__hostTarget ? a.__hostTarget : a.parent, !s.cancelBubble); )
;
s.cancelBubble || (this.trigger(r, s), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(l) {
typeof l[o] == "function" && l[o].call(l, s), l.trigger && l.trigger(r, s);
}));
}
}, e.prototype.findHover = function(n, r, i) {
var a = this.storage.getDisplayList(), o = new iv(n, r);
if (B6(a, o, n, r, i), this._pointerSize && !o.target) {
for (var s = [], l = this._pointerSize, u = l / 2, c = new Je(n - u, r - u, l, l), f = a.length - 1; f >= 0; f--) {
var d = a[f];
d !== i && !d.ignore && !d.ignoreCoarsePointer && (!d.parent || !d.parent.ignoreCoarsePointer) && (GC.copy(d.getBoundingRect()), d.transform && GC.applyTransform(d.transform), GC.intersect(c) && s.push(d));
}
if (s.length)
for (var h = 4, p = Math.PI / 12, v = Math.PI * 2, g = 0; g < u; g += h)
for (var m = 0; m < v; m += p) {
var y = n + g * Math.cos(m), b = r + g * Math.sin(m);
if (B6(s, o, y, b, i), o.target)
return o;
}
}
return o;
}, e.prototype.processGesture = function(n, r) {
this._gestureMgr || (this._gestureMgr = new MIe());
var i = this._gestureMgr;
r === "start" && i.clear();
var a = i.recognize(n, this.findHover(n.zrX, n.zrY, null).target, this.proxy.dom);
if (r === "end" && i.clear(), a) {
var o = a.type;
n.gestureEvent = o;
var s = new iv();
s.target = a.target, this.dispatchToElement(s, o, a.event);
}
}, e;
}(La);
k(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], function(t) {
kq.prototype[t] = function(e) {
var n = e.zrX, r = e.zrY, i = Lq(this, n, r), a, o;
if ((t !== "mouseup" || !i) && (a = this.findHover(n, r), o = a.target), t === "mousedown")
this._downEl = o, this._downPoint = [e.zrX, e.zrY], this._upEl = o;
else if (t === "mouseup")
this._upEl = o;
else if (t === "click") {
if (this._downEl !== this._upEl || !this._downPoint || Ps(this._downPoint, [e.zrX, e.zrY]) > 4)
return;
this._downPoint = null;
}
this.dispatchToElement(a, t, e);
};
});
function zIe(t, e, n) {
if (t[t.rectHover ? "rectContain" : "contain"](e, n)) {
for (var r = t, i = void 0, a = !1; r; ) {
if (r.ignoreClip && (a = !0), !a) {
var o = r.getClipPath();
if (o && !o.contain(e, n))
return !1;
}
r.silent && (i = !0);
var s = r.__hostTarget;
r = s || r.parent;
}
return i ? Rq : !0;
}
return !1;
}
function B6(t, e, n, r, i) {
for (var a = t.length - 1; a >= 0; a--) {
var o = t[a], s = void 0;
if (o !== i && !o.ignore && (s = zIe(o, n, r)) && (!e.topTarget && (e.topTarget = o), s !== Rq)) {
e.target = o;
break;
}
}
}
function Lq(t, e, n) {
var r = t.painter;
return e < 0 || e > r.getWidth() || n < 0 || n > r.getHeight();
}
var Nq = 32, av = 7;
function VIe(t) {
for (var e = 0; t >= Nq; )
e |= t & 1, t >>= 1;
return t + e;
}
function z6(t, e, n, r) {
var i = e + 1;
if (i === n)
return 1;
if (r(t[i++], t[e]) < 0) {
for (; i < n && r(t[i], t[i - 1]) < 0; )
i++;
FIe(t, e, i);
} else
for (; i < n && r(t[i], t[i - 1]) >= 0; )
i++;
return i - e;
}
function FIe(t, e, n) {
for (n--; e < n; ) {
var r = t[e];
t[e++] = t[n], t[n--] = r;
}
}
function V6(t, e, n, r, i) {
for (r === e && r++; r < n; r++) {
for (var a = t[r], o = e, s = r, l; o < s; )
l = o + s >>> 1, i(a, t[l]) < 0 ? s = l : o = l + 1;
var u = r - o;
switch (u) {
case 3:
t[o + 3] = t[o + 2];
case 2:
t[o + 2] = t[o + 1];
case 1:
t[o + 1] = t[o];
break;
default:
for (; u > 0; )
t[o + u] = t[o + u - 1], u--;
}
t[o] = a;
}
}
function jC(t, e, n, r, i, a) {
var o = 0, s = 0, l = 1;
if (a(t, e[n + i]) > 0) {
for (s = r - i; l < s && a(t, e[n + i + l]) > 0; )
o = l, l = (l << 1) + 1, l <= 0 && (l = s);
l > s && (l = s), o += i, l += i;
} else {
for (s = i + 1; l < s && a(t, e[n + i - l]) <= 0; )
o = l, l = (l << 1) + 1, l <= 0 && (l = s);
l > s && (l = s);
var u = o;
o = i - l, l = i - u;
}
for (o++; o < l; ) {
var c = o + (l - o >>> 1);
a(t, e[n + c]) > 0 ? o = c + 1 : l = c;
}
return l;
}
function ZC(t, e, n, r, i, a) {
var o = 0, s = 0, l = 1;
if (a(t, e[n + i]) < 0) {
for (s = i + 1; l < s && a(t, e[n + i - l]) < 0; )
o = l, l = (l << 1) + 1, l <= 0 && (l = s);
l > s && (l = s);
var u = o;
o = i - l, l = i - u;
} else {
for (s = r - i; l < s && a(t, e[n + i + l]) >= 0; )
o = l, l = (l << 1) + 1, l <= 0 && (l = s);
l > s && (l = s), o += i, l += i;
}
for (o++; o < l; ) {
var c = o + (l - o >>> 1);
a(t, e[n + c]) < 0 ? l = c : o = c + 1;
}
return l;
}
function WIe(t, e) {
var n = av, r, i, a = 0, o = [];
r = [], i = [];
function s(h, p) {
r[a] = h, i[a] = p, a += 1;
}
function l() {
for (; a > 1; ) {
var h = a - 2;
if (h >= 1 && i[h - 1] <= i[h] + i[h + 1] || h >= 2 && i[h - 2] <= i[h] + i[h - 1])
i[h - 1] < i[h + 1] && h--;
else if (i[h] > i[h + 1])
break;
c(h);
}
}
function u() {
for (; a > 1; ) {
var h = a - 2;
h > 0 && i[h - 1] < i[h + 1] && h--, c(h);
}
}
function c(h) {
var p = r[h], v = i[h], g = r[h + 1], m = i[h + 1];
i[h] = v + m, h === a - 3 && (r[h + 1] = r[h + 2], i[h + 1] = i[h + 2]), a--;
var y = ZC(t[g], t, p, v, 0, e);
p += y, v -= y, v !== 0 && (m = jC(t[p + v - 1], t, g, m, m - 1, e), m !== 0 && (v <= m ? f(p, v, g, m) : d(p, v, g, m)));
}
function f(h, p, v, g) {
var m = 0;
for (m = 0; m < p; m++)
o[m] = t[h + m];
var y = 0, b = v, _ = h;
if (t[_++] = t[b++], --g === 0) {
for (m = 0; m < p; m++)
t[_ + m] = o[y + m];
return;
}
if (p === 1) {
for (m = 0; m < g; m++)
t[_ + m] = t[b + m];
t[_ + g] = o[y];
return;
}
for (var O = n, S, x, C; ; ) {
S = 0, x = 0, C = !1;
do
if (e(t[b], o[y]) < 0) {
if (t[_++] = t[b++], x++, S = 0, --g === 0) {
C = !0;
break;
}
} else if (t[_++] = o[y++], S++, x = 0, --p === 1) {
C = !0;
break;
}
while ((S | x) < O);
if (C)
break;
do {
if (S = ZC(t[b], o, y, p, 0, e), S !== 0) {
for (m = 0; m < S; m++)
t[_ + m] = o[y + m];
if (_ += S, y += S, p -= S, p <= 1) {
C = !0;
break;
}
}
if (t[_++] = t[b++], --g === 0) {
C = !0;
break;
}
if (x = jC(o[y], t, b, g, 0, e), x !== 0) {
for (m = 0; m < x; m++)
t[_ + m] = t[b + m];
if (_ += x, b += x, g -= x, g === 0) {
C = !0;
break;
}
}
if (t[_++] = o[y++], --p === 1) {
C = !0;
break;
}
O--;
} while (S >= av || x >= av);
if (C)
break;
O < 0 && (O = 0), O += 2;
}
if (n = O, n < 1 && (n = 1), p === 1) {
for (m = 0; m < g; m++)
t[_ + m] = t[b + m];
t[_ + g] = o[y];
} else {
if (p === 0)
throw new Error();
for (m = 0; m < p; m++)
t[_ + m] = o[y + m];
}
}
function d(h, p, v, g) {
var m = 0;
for (m = 0; m < g; m++)
o[m] = t[v + m];
var y = h + p - 1, b = g - 1, _ = v + g - 1, O = 0, S = 0;
if (t[_--] = t[y--], --p === 0) {
for (O = _ - (g - 1), m = 0; m < g; m++)
t[O + m] = o[m];
return;
}
if (g === 1) {
for (_ -= p, y -= p, S = _ + 1, O = y + 1, m = p - 1; m >= 0; m--)
t[S + m] = t[O + m];
t[_] = o[b];
return;
}
for (var x = n; ; ) {
var C = 0, T = 0, w = !1;
do
if (e(o[b], t[y]) < 0) {
if (t[_--] = t[y--], C++, T = 0, --p === 0) {
w = !0;
break;
}
} else if (t[_--] = o[b--], T++, C = 0, --g === 1) {
w = !0;
break;
}
while ((C | T) < x);
if (w)
break;
do {
if (C = p - ZC(o[b], t, h, p, p - 1, e), C !== 0) {
for (_ -= C, y -= C, p -= C, S = _ + 1, O = y + 1, m = C - 1; m >= 0; m--)
t[S + m] = t[O + m];
if (p === 0) {
w = !0;
break;
}
}
if (t[_--] = o[b--], --g === 1) {
w = !0;
break;
}
if (T = g - jC(t[y], o, 0, g, g - 1, e), T !== 0) {
for (_ -= T, b -= T, g -= T, S = _ + 1, O = b + 1, m = 0; m < T; m++)
t[S + m] = o[O + m];
if (g <= 1) {
w = !0;
break;
}
}
if (t[_--] = t[y--], --p === 0) {
w = !0;
break;
}
x--;
} while (C >= av || T >= av);
if (w)
break;
x < 0 && (x = 0), x += 2;
}
if (n = x, n < 1 && (n = 1), g === 1) {
for (_ -= p, y -= p, S = _ + 1, O = y + 1, m = p - 1; m >= 0; m--)
t[S + m] = t[O + m];
t[_] = o[b];
} else {
if (g === 0)
throw new Error();
for (O = _ - (g - 1), m = 0; m < g; m++)
t[O + m] = o[m];
}
}
return {
mergeRuns: l,
forceMergeRuns: u,
pushRun: s
};
}
function L_(t, e, n, r) {
n || (n = 0), r || (r = t.length);
var i = r - n;
if (!(i < 2)) {
var a = 0;
if (i < Nq) {
a = z6(t, n, r, e), V6(t, n, r, n + a, e);
return;
}
var o = WIe(t, e), s = VIe(i);
do {
if (a = z6(t, n, r, e), a < s) {
var l = i;
l > s && (l = s), V6(t, n, n + l, n + a, e), a = l;
}
o.pushRun(n, a), o.mergeRuns(), i -= a, n += a;
} while (i !== 0);
o.forceMergeRuns();
}
}
var Ni = 1, Gv = 2, Ad = 4, F6 = !1;
function UC() {
F6 || (F6 = !0, console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"));
}
function W6(t, e) {
return t.zlevel === e.zlevel ? t.z === e.z ? t.z2 - e.z2 : t.z - e.z : t.zlevel - e.zlevel;
}
var QIe = function() {
function t() {
this._roots = [], this._displayList = [], this._displayListLen = 0, this.displayableSortFunc = W6;
}
return t.prototype.traverse = function(e, n) {
for (var r = 0; r < this._roots.length; r++)
this._roots[r].traverse(e, n);
}, t.prototype.getDisplayList = function(e, n) {
n = n || !1;
var r = this._displayList;
return (e || !r.length) && this.updateDisplayList(n), r;
}, t.prototype.updateDisplayList = function(e) {
this._displayListLen = 0;
for (var n = this._roots, r = this._displayList, i = 0, a = n.length; i < a; i++)
this._updateAndAddDisplayable(n[i], null, e);
r.length = this._displayListLen, L_(r, W6);
}, t.prototype._updateAndAddDisplayable = function(e, n, r) {
if (!(e.ignore && !r)) {
e.beforeUpdate(), e.update(), e.afterUpdate();
var i = e.getClipPath();
if (e.ignoreClip)
n = null;
else if (i) {
n ? n = n.slice() : n = [];
for (var a = i, o = e; a; )
a.parent = o, a.updateTransform(), n.push(a), o = a, a = a.getClipPath();
}
if (e.childrenRef) {
for (var s = e.childrenRef(), l = 0; l < s.length; l++) {
var u = s[l];
e.__dirty && (u.__dirty |= Ni), this._updateAndAddDisplayable(u, n, r);
}
e.__dirty = 0;
} else {
var c = e;
n && n.length ? c.__clipPaths = n : c.__clipPaths && c.__clipPaths.length > 0 && (c.__clipPaths = []), isNaN(c.z) && (UC(), c.z = 0), isNaN(c.z2) && (UC(), c.z2 = 0), isNaN(c.zlevel) && (UC(), c.zlevel = 0), this._displayList[this._displayListLen++] = c;
}
var f = e.getDecalElement && e.getDecalElement();
f && this._updateAndAddDisplayable(f, n, r);
var d = e.getTextGuideLine();
d && this._updateAndAddDisplayable(d, n, r);
var h = e.getTextContent();
h && this._updateAndAddDisplayable(h, n, r);
}
}, t.prototype.addRoot = function(e) {
e.__zr && e.__zr.storage === this || this._roots.push(e);
}, t.prototype.delRoot = function(e) {
if (e instanceof Array) {
for (var n = 0, r = e.length; n < r; n++)
this.delRoot(e[n]);
return;
}
var i = et(this._roots, e);
i >= 0 && this._roots.splice(i, 1);
}, t.prototype.delAllRoots = function() {
this._roots = [], this._displayList = [], this._displayListLen = 0;
}, t.prototype.getRoots = function() {
return this._roots;
}, t.prototype.dispose = function() {
this._displayList = null, this._roots = null;
}, t;
}(), K1;
K1 = vt.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(t) {
return setTimeout(t, 16);
};
var Ag = {
linear: function(t) {
return t;
},
quadraticIn: function(t) {
return t * t;
},
quadraticOut: function(t) {
return t * (2 - t);
},
quadraticInOut: function(t) {
return (t *= 2) < 1 ? 0.5 * t * t : -0.5 * (--t * (t - 2) - 1);
},
cubicIn: function(t) {
return t * t * t;
},
cubicOut: function(t) {
return --t * t * t + 1;
},
cubicInOut: function(t) {
return (t *= 2) < 1 ? 0.5 * t * t * t : 0.5 * ((t -= 2) * t * t + 2);
},
quarticIn: function(t) {
return t * t * t * t;
},
quarticOut: function(t) {
return 1 - --t * t * t * t;
},
quarticInOut: function(t) {
return (t *= 2) < 1 ? 0.5 * t * t * t * t : -0.5 * ((t -= 2) * t * t * t - 2);
},
quinticIn: function(t) {
return t * t * t * t * t;
},
quinticOut: function(t) {
return --t * t * t * t * t + 1;
},
quinticInOut: function(t) {
return (t *= 2) < 1 ? 0.5 * t * t * t * t * t : 0.5 * ((t -= 2) * t * t * t * t + 2);
},
sinusoidalIn: function(t) {
return 1 - Math.cos(t * Math.PI / 2);
},
sinusoidalOut: function(t) {
return Math.sin(t * Math.PI / 2);
},
sinusoidalInOut: function(t) {
return 0.5 * (1 - Math.cos(Math.PI * t));
},
exponentialIn: function(t) {
return t === 0 ? 0 : Math.pow(1024, t - 1);
},
exponentialOut: function(t) {
return t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
},
exponentialInOut: function(t) {
return t === 0 ? 0 : t === 1 ? 1 : (t *= 2) < 1 ? 0.5 * Math.pow(1024, t - 1) : 0.5 * (-Math.pow(2, -10 * (t - 1)) + 2);
},
circularIn: function(t) {
return 1 - Math.sqrt(1 - t * t);
},
circularOut: function(t) {
return Math.sqrt(1 - --t * t);
},
circularInOut: function(t) {
return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
},
elasticIn: function(t) {
var e, n = 0.1, r = 0.4;
return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1, e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI), -(n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r)));
},
elasticOut: function(t) {
var e, n = 0.1, r = 0.4;
return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1, e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI), n * Math.pow(2, -10 * t) * Math.sin((t - e) * (2 * Math.PI) / r) + 1);
},
elasticInOut: function(t) {
var e, n = 0.1, r = 0.4;
return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1, e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI), (t *= 2) < 1 ? -0.5 * (n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r)) : n * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r) * 0.5 + 1);
},
backIn: function(t) {
var e = 1.70158;
return t * t * ((e + 1) * t - e);
},
backOut: function(t) {
var e = 1.70158;
return --t * t * ((e + 1) * t + e) + 1;
},
backInOut: function(t) {
var e = 2.5949095;
return (t *= 2) < 1 ? 0.5 * (t * t * ((e + 1) * t - e)) : 0.5 * ((t -= 2) * t * ((e + 1) * t + e) + 2);
},
bounceIn: function(t) {
return 1 - Ag.bounceOut(1 - t);
},
bounceOut: function(t) {
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + 0.75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375 : 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;
},
bounceInOut: function(t) {
return t < 0.5 ? Ag.bounceIn(t * 2) * 0.5 : Ag.bounceOut(t * 2 - 1) * 0.5 + 0.5;
}
}, Qy = Math.pow, Xl = Math.sqrt, J1 = 1e-8, Bq = 1e-4, Q6 = Xl(3), Hy = 1 / 3, Lo = wu(), va = wu(), th = wu();
function Ll(t) {
return t > -J1 && t < J1;
}
function zq(t) {
return t > J1 || t < -J1;
}
function Gn(t, e, n, r, i) {
var a = 1 - i;
return a * a * (a * t + 3 * i * e) + i * i * (i * r + 3 * a * n);
}
function H6(t, e, n, r, i) {
var a = 1 - i;
return 3 * (((e - t) * a + 2 * (n - e) * i) * a + (r - n) * i * i);
}
function eO(t, e, n, r, i, a) {
var o = r + 3 * (e - n) - t, s = 3 * (n - e * 2 + t), l = 3 * (e - t), u = t - i, c = s * s - 3 * o * l, f = s * l - 9 * o * u, d = l * l - 3 * s * u, h = 0;
if (Ll(c) && Ll(f))
if (Ll(s))
a[0] = 0;
else {
var p = -l / s;
p >= 0 && p <= 1 && (a[h++] = p);
}
else {
var v = f * f - 4 * c * d;
if (Ll(v)) {
var g = f / c, p = -s / o + g, m = -g / 2;
p >= 0 && p <= 1 && (a[h++] = p), m >= 0 && m <= 1 && (a[h++] = m);
} else if (v > 0) {
var y = Xl(v), b = c * s + 1.5 * o * (-f + y), _ = c * s + 1.5 * o * (-f - y);
b < 0 ? b = -Qy(-b, Hy) : b = Qy(b, Hy), _ < 0 ? _ = -Qy(-_, Hy) : _ = Qy(_, Hy);
var p = (-s - (b + _)) / (3 * o);
p >= 0 && p <= 1 && (a[h++] = p);
} else {
var O = (2 * c * s - 3 * o * f) / (2 * Xl(c * c * c)), S = Math.acos(O) / 3, x = Xl(c), C = Math.cos(S), p = (-s - 2 * x * C) / (3 * o), m = (-s + x * (C + Q6 * Math.sin(S))) / (3 * o), T = (-s + x * (C - Q6 * Math.sin(S))) / (3 * o);
p >= 0 && p <= 1 && (a[h++] = p), m >= 0 && m <= 1 && (a[h++] = m), T >= 0 && T <= 1 && (a[h++] = T);
}
}
return h;
}
function Vq(t, e, n, r, i) {
var a = 6 * n - 12 * e + 6 * t, o = 9 * e + 3 * r - 3 * t - 9 * n, s = 3 * e - 3 * t, l = 0;
if (Ll(o)) {
if (zq(a)) {
var u = -s / a;
u >= 0 && u <= 1 && (i[l++] = u);
}
} else {
var c = a * a - 4 * o * s;
if (Ll(c))
i[0] = -a / (2 * o);
else if (c > 0) {
var f = Xl(c), u = (-a + f) / (2 * o), d = (-a - f) / (2 * o);
u >= 0 && u <= 1 && (i[l++] = u), d >= 0 && d <= 1 && (i[l++] = d);
}
}
return l;
}
function su(t, e, n, r, i, a) {
var o = (e - t) * i + t, s = (n - e) * i + e, l = (r - n) * i + n, u = (s - o) * i + o, c = (l - s) * i + s, f = (c - u) * i + u;
a[0] = t, a[1] = o, a[2] = u, a[3] = f, a[4] = f, a[5] = c, a[6] = l, a[7] = r;
}
function Fq(t, e, n, r, i, a, o, s, l, u, c) {
var f, d = 5e-3, h = 1 / 0, p, v, g, m;
Lo[0] = l, Lo[1] = u;
for (var y = 0; y < 1; y += 0.05)
va[0] = Gn(t, n, i, o, y), va[1] = Gn(e, r, a, s, y), g = Ul(Lo, va), g < h && (f = y, h = g);
h = 1 / 0;
for (var b = 0; b < 32 && !(d < Bq); b++)
p = f - d, v = f + d, va[0] = Gn(t, n, i, o, p), va[1] = Gn(e, r, a, s, p), g = Ul(va, Lo), p >= 0 && g < h ? (f = p, h = g) : (th[0] = Gn(t, n, i, o, v), th[1] = Gn(e, r, a, s, v), m = Ul(th, Lo), v <= 1 && m < h ? (f = v, h = m) : d *= 0.5);
return c && (c[0] = Gn(t, n, i, o, f), c[1] = Gn(e, r, a, s, f)), Xl(h);
}
function HIe(t, e, n, r, i, a, o, s, l) {
for (var u = t, c = e, f = 0, d = 1 / l, h = 1; h <= l; h++) {
var p = h * d, v = Gn(t, n, i, o, p), g = Gn(e, r, a, s, p), m = v - u, y = g - c;
f += Math.sqrt(m * m + y * y), u = v, c = g;
}
return f;
}
function ir(t, e, n, r) {
var i = 1 - r;
return i * (i * t + 2 * r * e) + r * r * n;
}
function dA(t, e, n, r) {
return 2 * ((1 - r) * (e - t) + r * (n - e));
}
function GIe(t, e, n, r, i) {
var a = t - 2 * e + n, o = 2 * (e - t), s = t - r, l = 0;
if (Ll(a)) {
if (zq(o)) {
var u = -s / o;
u >= 0 && u <= 1 && (i[l++] = u);
}
} else {
var c = o * o - 4 * a * s;
if (Ll(c)) {
var u = -o / (2 * a);
u >= 0 && u <= 1 && (i[l++] = u);
} else if (c > 0) {
var f = Xl(c), u = (-o + f) / (2 * a), d = (-o - f) / (2 * a);
u >= 0 && u <= 1 && (i[l++] = u), d >= 0 && d <= 1 && (i[l++] = d);
}
}
return l;
}
function Wq(t, e, n) {
var r = t + n - 2 * e;
return r === 0 ? 0.5 : (t - e) / r;
}
function Sm(t, e, n, r, i) {
var a = (e - t) * r + t, o = (n - e) * r + e, s = (o - a) * r + a;
i[0] = t, i[1] = a, i[2] = s, i[3] = s, i[4] = o, i[5] = n;
}
function Qq(t, e, n, r, i, a, o, s, l) {
var u, c = 5e-3, f = 1 / 0;
Lo[0] = o, Lo[1] = s;
for (var d = 0; d < 1; d += 0.05) {
va[0] = ir(t, n, i, d), va[1] = ir(e, r, a, d);
var h = Ul(Lo, va);
h < f && (u = d, f = h);
}
f = 1 / 0;
for (var p = 0; p < 32 && !(c < Bq); p++) {
var v = u - c, g = u + c;
va[0] = ir(t, n, i, v), va[1] = ir(e, r, a, v);
var h = Ul(va, Lo);
if (v >= 0 && h < f)
u = v, f = h;
else {
th[0] = ir(t, n, i, g), th[1] = ir(e, r, a, g);
var m = Ul(th, Lo);
g <= 1 && m < f ? (u = g, f = m) : c *= 0.5;
}
}
return l && (l[0] = ir(t, n, i, u), l[1] = ir(e, r, a, u)), Xl(f);
}
function jIe(t, e, n, r, i, a, o) {
for (var s = t, l = e, u = 0, c = 1 / o, f = 1; f <= o; f++) {
var d = f * c, h = ir(t, n, i, d), p = ir(e, r, a, d), v = h - s, g = p - l;
u += Math.sqrt(v * v + g * g), s = h, l = p;
}
return u;
}
var ZIe = /cubic-bezier\(([0-9,\.e ]+)\)/;
function xR(t) {
var e = t && ZIe.exec(t);
if (e) {
var n = e[1].split(","), r = +ba(n[0]), i = +ba(n[1]), a = +ba(n[2]), o = +ba(n[3]);
if (isNaN(r + i + a + o))
return;
var s = [];
return function(l) {
return l <= 0 ? 0 : l >= 1 ? 1 : eO(0, r, a, 1, l, s) && Gn(0, i, o, 1, s[0]);
};
}
}
var UIe = function() {
function t(e) {
this._inited = !1, this._startTime = 0, this._pausedTime = 0, this._paused = !1, this._life = e.life || 1e3, this._delay = e.delay || 0, this.loop = e.loop || !1, this.onframe = e.onframe || On, this.ondestroy = e.ondestroy || On, this.onrestart = e.onrestart || On, e.easing && this.setEasing(e.easing);
}
return t.prototype.step = function(e, n) {
if (this._inited || (this._startTime = e + this._delay, this._inited = !0), this._paused) {
this._pausedTime += n;
return;
}
var r = this._life, i = e - this._startTime - this._pausedTime, a = i / r;
a < 0 && (a = 0), a = Math.min(a, 1);
var o = this.easingFunc, s = o ? o(a) : a;
if (this.onframe(s), a === 1)
if (this.loop) {
var l = i % r;
this._startTime = e - l, this._pausedTime = 0, this.onrestart();
} else
return !0;
return !1;
}, t.prototype.pause = function() {
this._paused = !0;
}, t.prototype.resume = function() {
this._paused = !1;
}, t.prototype.setEasing = function(e) {
this.easing = e, this.easingFunc = Me(e) ? e : Ag[e] || xR(e);
}, t;
}(), Hq = /* @__PURE__ */ function() {
function t(e) {
this.value = e;
}
return t;
}(), XIe = function() {
function t() {
this._len = 0;
}
return t.prototype.insert = function(e) {
var n = new Hq(e);
return this.insertEntry(n), n;
}, t.prototype.insertEntry = function(e) {
this.head ? (this.tail.next = e, e.prev = this.tail, e.next = null, this.tail = e) : this.head = this.tail = e, this._len++;
}, t.prototype.remove = function(e) {
var n = e.prev, r = e.next;
n ? n.next = r : this.head = r, r ? r.prev = n : this.tail = n, e.next = e.prev = null, this._len--;
}, t.prototype.len = function() {
return this._len;
}, t.prototype.clear = function() {
this.head = this.tail = null, this._len = 0;
}, t;
}(), k0 = function() {
function t(e) {
this._list = new XIe(), this._maxSize = 10, this._map = {}, this._maxSize = e;
}
return t.prototype.put = function(e, n) {
var r = this._list, i = this._map, a = null;
if (i[e] == null) {
var o = r.len(), s = this._lastRemovedEntry;
if (o >= this._maxSize && o > 0) {
var l = r.head;
r.remove(l), delete i[l.key], a = l.value, this._lastRemovedEntry = l;
}
s ? s.value = n : s = new Hq(n), s.key = e, r.insertEntry(s), i[e] = s;
}
return a;
}, t.prototype.get = function(e) {
var n = this._map[e], r = this._list;
if (n != null)
return n !== r.tail && (r.remove(n), r.insertEntry(n)), n.value;
}, t.prototype.clear = function() {
this._list.clear(), this._map = {};
}, t.prototype.len = function() {
return this._list.len();
}, t;
}(), G6 = {
transparent: [0, 0, 0, 0],
aliceblue: [240, 248, 255, 1],
antiquewhite: [250, 235, 215, 1],
aqua: [0, 255, 255, 1],
aquamarine: [127, 255, 212, 1],
azure: [240, 255, 255, 1],
beige: [245, 245, 220, 1],
bisque: [255, 228, 196, 1],
black: [0, 0, 0, 1],
blanchedalmond: [255, 235, 205, 1],
blue: [0, 0, 255, 1],
blueviolet: [138, 43, 226, 1],
brown: [165, 42, 42, 1],
burlywood: [222, 184, 135, 1],
cadetblue: [95, 158, 160, 1],
chartreuse: [127, 255, 0, 1],
chocolate: [210, 105, 30, 1],
coral: [255, 127, 80, 1],
cornflowerblue: [100, 149, 237, 1],
cornsilk: [255, 248, 220, 1],
crimson: [220, 20, 60, 1],
cyan: [0, 255, 255, 1],
darkblue: [0, 0, 139, 1],
darkcyan: [0, 139, 139, 1],
darkgoldenrod: [184, 134, 11, 1],
darkgray: [169, 169, 169, 1],
darkgreen: [0, 100, 0, 1],
darkgrey: [169, 169, 169, 1],
darkkhaki: [189, 183, 107, 1],
darkmagenta: [139, 0, 139, 1],
darkolivegreen: [85, 107, 47, 1],
darkorange: [255, 140, 0, 1],
darkorchid: [153, 50, 204, 1],
darkred: [139, 0, 0, 1],
darksalmon: [233, 150, 122, 1],
darkseagreen: [143, 188, 143, 1],
darkslateblue: [72, 61, 139, 1],
darkslategray: [47, 79, 79, 1],
darkslategrey: [47, 79, 79, 1],
darkturquoise: [0, 206, 209, 1],
darkviolet: [148, 0, 211, 1],
deeppink: [255, 20, 147, 1],
deepskyblue: [0, 191, 255, 1],
dimgray: [105, 105, 105, 1],
dimgrey: [105, 105, 105, 1],
dodgerblue: [30, 144, 255, 1],
firebrick: [178, 34, 34, 1],
floralwhite: [255, 250, 240, 1],
forestgreen: [34, 139, 34, 1],
fuchsia: [255, 0, 255, 1],
gainsboro: [220, 220, 220, 1],
ghostwhite: [248, 248, 255, 1],
gold: [255, 215, 0, 1],
goldenrod: [218, 165, 32, 1],
gray: [128, 128, 128, 1],
green: [0, 128, 0, 1],
greenyellow: [173, 255, 47, 1],
grey: [128, 128, 128, 1],
honeydew: [240, 255, 240, 1],
hotpink: [255, 105, 180, 1],
indianred: [205, 92, 92, 1],
indigo: [75, 0, 130, 1],
ivory: [255, 255, 240, 1],
khaki: [240, 230, 140, 1],
lavender: [230, 230, 250, 1],
lavenderblush: [255, 240, 245, 1],
lawngreen: [124, 252, 0, 1],
lemonchiffon: [255, 250, 205, 1],
lightblue: [173, 216, 230, 1],
lightcoral: [240, 128, 128, 1],
lightcyan: [224, 255, 255, 1],
lightgoldenrodyellow: [250, 250, 210, 1],
lightgray: [211, 211, 211, 1],
lightgreen: [144, 238, 144, 1],
lightgrey: [211, 211, 211, 1],
lightpink: [255, 182, 193, 1],
lightsalmon: [255, 160, 122, 1],
lightseagreen: [32, 178, 170, 1],
lightskyblue: [135, 206, 250, 1],
lightslategray: [119, 136, 153, 1],
lightslategrey: [119, 136, 153, 1],
lightsteelblue: [176, 196, 222, 1],
lightyellow: [255, 255, 224, 1],
lime: [0, 255, 0, 1],
limegreen: [50, 205, 50, 1],
linen: [250, 240, 230, 1],
magenta: [255, 0, 255, 1],
maroon: [128, 0, 0, 1],
mediumaquamarine: [102, 205, 170, 1],
mediumblue: [0, 0, 205, 1],
mediumorchid: [186, 85, 211, 1],
mediumpurple: [147, 112, 219, 1],
mediumseagreen: [60, 179, 113, 1],
mediumslateblue: [123, 104, 238, 1],
mediumspringgreen: [0, 250, 154, 1],
mediumturquoise: [72, 209, 204, 1],
mediumvioletred: [199, 21, 133, 1],
midnightblue: [25, 25, 112, 1],
mintcream: [245, 255, 250, 1],
mistyrose: [255, 228, 225, 1],
moccasin: [255, 228, 181, 1],
navajowhite: [255, 222, 173, 1],
navy: [0, 0, 128, 1],
oldlace: [253, 245, 230, 1],
olive: [128, 128, 0, 1],
olivedrab: [107, 142, 35, 1],
orange: [255, 165, 0, 1],
orangered: [255, 69, 0, 1],
orchid: [218, 112, 214, 1],
palegoldenrod: [238, 232, 170, 1],
palegreen: [152, 251, 152, 1],
paleturquoise: [175, 238, 238, 1],
palevioletred: [219, 112, 147, 1],
papayawhip: [255, 239, 213, 1],
peachpuff: [255, 218, 185, 1],
peru: [205, 133, 63, 1],
pink: [255, 192, 203, 1],
plum: [221, 160, 221, 1],
powderblue: [176, 224, 230, 1],
purple: [128, 0, 128, 1],
red: [255, 0, 0, 1],
rosybrown: [188, 143, 143, 1],
royalblue: [65, 105, 225, 1],
saddlebrown: [139, 69, 19, 1],
salmon: [250, 128, 114, 1],
sandybrown: [244, 164, 96, 1],
seagreen: [46, 139, 87, 1],
seashell: [255, 245, 238, 1],
sienna: [160, 82, 45, 1],
silver: [192, 192, 192, 1],
skyblue: [135, 206, 235, 1],
slateblue: [106, 90, 205, 1],
slategray: [112, 128, 144, 1],
slategrey: [112, 128, 144, 1],
snow: [255, 250, 250, 1],
springgreen: [0, 255, 127, 1],
steelblue: [70, 130, 180, 1],
tan: [210, 180, 140, 1],
teal: [0, 128, 128, 1],
thistle: [216, 191, 216, 1],
tomato: [255, 99, 71, 1],
turquoise: [64, 224, 208, 1],
violet: [238, 130, 238, 1],
wheat: [245, 222, 179, 1],
white: [255, 255, 255, 1],
whitesmoke: [245, 245, 245, 1],
yellow: [255, 255, 0, 1],
yellowgreen: [154, 205, 50, 1]
};
function to(t) {
return t = Math.round(t), t < 0 ? 0 : t > 255 ? 255 : t;
}
function YIe(t) {
return t = Math.round(t), t < 0 ? 0 : t > 360 ? 360 : t;
}
function xm(t) {
return t < 0 ? 0 : t > 1 ? 1 : t;
}
function XC(t) {
var e = t;
return e.length && e.charAt(e.length - 1) === "%" ? to(parseFloat(e) / 100 * 255) : to(parseInt(e, 10));
}
function Kc(t) {
var e = t;
return e.length && e.charAt(e.length - 1) === "%" ? xm(parseFloat(e) / 100) : xm(parseFloat(e));
}
function YC(t, e, n) {
return n < 0 ? n += 1 : n > 1 && (n -= 1), n * 6 < 1 ? t + (e - t) * n * 6 : n * 2 < 1 ? e : n * 3 < 2 ? t + (e - t) * (2 / 3 - n) * 6 : t;
}
function Nl(t, e, n) {
return t + (e - t) * n;
}
function sa(t, e, n, r, i) {
return t[0] = e, t[1] = n, t[2] = r, t[3] = i, t;
}
function hA(t, e) {
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t;
}
var Gq = new k0(20), Gy = null;
function nd(t, e) {
Gy && hA(Gy, e), Gy = Gq.put(t, Gy || e.slice());
}
function Kr(t, e) {
if (t) {
e = e || [];
var n = Gq.get(t);
if (n)
return hA(e, n);
t = t + "";
var r = t.replace(/ /g, "").toLowerCase();
if (r in G6)
return hA(e, G6[r]), nd(t, e), e;
var i = r.length;
if (r.charAt(0) === "#") {
if (i === 4 || i === 5) {
var a = parseInt(r.slice(1, 4), 16);
if (!(a >= 0 && a <= 4095)) {
sa(e, 0, 0, 0, 1);
return;
}
return sa(e, (a & 3840) >> 4 | (a & 3840) >> 8, a & 240 | (a & 240) >> 4, a & 15 | (a & 15) << 4, i === 5 ? parseInt(r.slice(4), 16) / 15 : 1), nd(t, e), e;
} else if (i === 7 || i === 9) {
var a = parseInt(r.slice(1, 7), 16);
if (!(a >= 0 && a <= 16777215)) {
sa(e, 0, 0, 0, 1);
return;
}
return sa(e, (a & 16711680) >> 16, (a & 65280) >> 8, a & 255, i === 9 ? parseInt(r.slice(7), 16) / 255 : 1), nd(t, e), e;
}
return;
}
var o = r.indexOf("("), s = r.indexOf(")");
if (o !== -1 && s + 1 === i) {
var l = r.substr(0, o), u = r.substr(o + 1, s - (o + 1)).split(","), c = 1;
switch (l) {
case "rgba":
if (u.length !== 4)
return u.length === 3 ? sa(e, +u[0], +u[1], +u[2], 1) : sa(e, 0, 0, 0, 1);
c = Kc(u.pop());
case "rgb":
if (u.length >= 3)
return sa(e, XC(u[0]), XC(u[1]), XC(u[2]), u.length === 3 ? c : Kc(u[3])), nd(t, e), e;
sa(e, 0, 0, 0, 1);
return;
case "hsla":
if (u.length !== 4) {
sa(e, 0, 0, 0, 1);
return;
}
return u[3] = Kc(u[3]), pA(u, e), nd(t, e), e;
case "hsl":
if (u.length !== 3) {
sa(e, 0, 0, 0, 1);
return;
}
return pA(u, e), nd(t, e), e;
default:
return;
}
}
sa(e, 0, 0, 0, 1);
}
}
function pA(t, e) {
var n = (parseFloat(t[0]) % 360 + 360) % 360 / 360, r = Kc(t[1]), i = Kc(t[2]), a = i <= 0.5 ? i * (r + 1) : i + r - i * r, o = i * 2 - a;
return e = e || [], sa(e, to(YC(o, a, n + 1 / 3) * 255), to(YC(o, a, n) * 255), to(YC(o, a, n - 1 / 3) * 255), 1), t.length === 4 && (e[3] = t[3]), e;
}
function qIe(t) {
if (t) {
var e = t[0] / 255, n = t[1] / 255, r = t[2] / 255, i = Math.min(e, n, r), a = Math.max(e, n, r), o = a - i, s = (a + i) / 2, l, u;
if (o === 0)
l = 0, u = 0;
else {
s < 0.5 ? u = o / (a + i) : u = o / (2 - a - i);
var c = ((a - e) / 6 + o / 2) / o, f = ((a - n) / 6 + o / 2) / o, d = ((a - r) / 6 + o / 2) / o;
e === a ? l = d - f : n === a ? l = 1 / 3 + c - d : r === a && (l = 2 / 3 + f - c), l < 0 && (l += 1), l > 1 && (l -= 1);
}
var h = [l * 360, u, s];
return t[3] != null && h.push(t[3]), h;
}
}
function tO(t, e) {
var n = Kr(t);
if (n) {
for (var r = 0; r < 3; r++)
e < 0 ? n[r] = n[r] * (1 - e) | 0 : n[r] = (255 - n[r]) * e + n[r] | 0, n[r] > 255 ? n[r] = 255 : n[r] < 0 && (n[r] = 0);
return no(n, n.length === 4 ? "rgba" : "rgb");
}
}
function KIe(t) {
var e = Kr(t);
if (e)
return ((1 << 24) + (e[0] << 16) + (e[1] << 8) + +e[2]).toString(16).slice(1);
}
function Eg(t, e, n) {
if (!(!(e && e.length) || !(t >= 0 && t <= 1))) {
n = n || [];
var r = t * (e.length - 1), i = Math.floor(r), a = Math.ceil(r), o = e[i], s = e[a], l = r - i;
return n[0] = to(Nl(o[0], s[0], l)), n[1] = to(Nl(o[1], s[1], l)), n[2] = to(Nl(o[2], s[2], l)), n[3] = xm(Nl(o[3], s[3], l)), n;
}
}
var JIe = Eg;
function wR(t, e, n) {
if (!(!(e && e.length) || !(t >= 0 && t <= 1))) {
var r = t * (e.length - 1), i = Math.floor(r), a = Math.ceil(r), o = Kr(e[i]), s = Kr(e[a]), l = r - i, u = no([
to(Nl(o[0], s[0], l)),
to(Nl(o[1], s[1], l)),
to(Nl(o[2], s[2], l)),
xm(Nl(o[3], s[3], l))
], "rgba");
return n ? {
color: u,
leftIndex: i,
rightIndex: a,
value: r
} : u;
}
}
var eDe = wR;
function nh(t, e, n, r) {
var i = Kr(t);
if (t)
return i = qIe(i), e != null && (i[0] = YIe(e)), n != null && (i[1] = Kc(n)), r != null && (i[2] = Kc(r)), no(pA(i), "rgba");
}
function wm(t, e) {
var n = Kr(t);
if (n && e != null)
return n[3] = xm(e), no(n, "rgba");
}
function no(t, e) {
if (!(!t || !t.length)) {
var n = t[0] + "," + t[1] + "," + t[2];
return (e === "rgba" || e === "hsva" || e === "hsla") && (n += "," + t[3]), e + "(" + n + ")";
}
}
function Cm(t, e) {
var n = Kr(t);
return n ? (0.299 * n[0] + 0.587 * n[1] + 0.114 * n[2]) * n[3] / 255 + (1 - n[3]) * e : 0;
}
function tDe() {
return no([
Math.round(Math.random() * 255),
Math.round(Math.random() * 255),
Math.round(Math.random() * 255)
], "rgb");
}
var j6 = new k0(100);
function nO(t) {
if (Oe(t)) {
var e = j6.get(t);
return e || (e = tO(t, -0.1), j6.put(t, e)), e;
} else if (I0(t)) {
var n = le({}, t);
return n.colorStops = ce(t.colorStops, function(r) {
return {
offset: r.offset,
color: tO(r.color, -0.1)
};
}), n;
}
return t;
}
const nDe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
fastLerp: Eg,
fastMapToColor: JIe,
lerp: wR,
lift: tO,
liftColor: nO,
lum: Cm,
mapToColor: eDe,
modifyAlpha: wm,
modifyHSL: nh,
parse: Kr,
random: tDe,
stringify: no,
toHex: KIe
}, Symbol.toStringTag, { value: "Module" }));
var rO = Math.round;
function Tm(t) {
var e;
if (!t || t === "transparent")
t = "none";
else if (typeof t == "string" && t.indexOf("rgba") > -1) {
var n = Kr(t);
n && (t = "rgb(" + n[0] + "," + n[1] + "," + n[2] + ")", e = n[3]);
}
return {
color: t,
opacity: e ?? 1
};
}
var Z6 = 1e-4;
function Bl(t) {
return t < Z6 && t > -Z6;
}
function jy(t) {
return rO(t * 1e3) / 1e3;
}
function vA(t) {
return rO(t * 1e4) / 1e4;
}
function rDe(t) {
return "matrix(" + jy(t[0]) + "," + jy(t[1]) + "," + jy(t[2]) + "," + jy(t[3]) + "," + vA(t[4]) + "," + vA(t[5]) + ")";
}
var iDe = {
left: "start",
right: "end",
center: "middle",
middle: "middle"
};
function aDe(t, e, n) {
return n === "top" ? t += e / 2 : n === "bottom" && (t -= e / 2), t;
}
function oDe(t) {
return t && (t.shadowBlur || t.shadowOffsetX || t.shadowOffsetY);
}
function sDe(t) {
var e = t.style, n = t.getGlobalScale();
return [
e.shadowColor,
(e.shadowBlur || 0).toFixed(2),
(e.shadowOffsetX || 0).toFixed(2),
(e.shadowOffsetY || 0).toFixed(2),
n[0],
n[1]
].join(",");
}
function jq(t) {
return t && !!t.image;
}
function lDe(t) {
return t && !!t.svgElement;
}
function CR(t) {
return jq(t) || lDe(t);
}
function Zq(t) {
return t.type === "linear";
}
function Uq(t) {
return t.type === "radial";
}
function Xq(t) {
return t && (t.type === "linear" || t.type === "radial");
}
function zx(t) {
return "url(#" + t + ")";
}
function Yq(t) {
var e = t.getGlobalScale(), n = Math.max(e[0], e[1]);
return Math.max(Math.ceil(Math.log(n) / Math.log(10)), 1);
}
function qq(t) {
var e = t.x || 0, n = t.y || 0, r = (t.rotation || 0) * Tg, i = We(t.scaleX, 1), a = We(t.scaleY, 1), o = t.skewX || 0, s = t.skewY || 0, l = [];
return (e || n) && l.push("translate(" + e + "px," + n + "px)"), r && l.push("rotate(" + r + ")"), (i !== 1 || a !== 1) && l.push("scale(" + i + "," + a + ")"), (o || s) && l.push("skew(" + rO(o * Tg) + "deg, " + rO(s * Tg) + "deg)"), l.join(" ");
}
var uDe = function() {
return vt.hasGlobalWindow && Me(window.btoa) ? function(t) {
return window.btoa(unescape(encodeURIComponent(t)));
} : typeof Buffer < "u" ? function(t) {
return Buffer.from(t).toString("base64");
} : function(t) {
return process.env.NODE_ENV !== "production" && xa("Base64 isn't natively supported in the current environment."), null;
};
}(), gA = Array.prototype.slice;
function Os(t, e, n) {
return (e - t) * n + t;
}
function qC(t, e, n, r) {
for (var i = e.length, a = 0; a < i; a++)
t[a] = Os(e[a], n[a], r);
return t;
}
function cDe(t, e, n, r) {
for (var i = e.length, a = i && e[0].length, o = 0; o < i; o++) {
t[o] || (t[o] = []);
for (var s = 0; s < a; s++)
t[o][s] = Os(e[o][s], n[o][s], r);
}
return t;
}
function Zy(t, e, n, r) {
for (var i = e.length, a = 0; a < i; a++)
t[a] = e[a] + n[a] * r;
return t;
}
function U6(t, e, n, r) {
for (var i = e.length, a = i && e[0].length, o = 0; o < i; o++) {
t[o] || (t[o] = []);
for (var s = 0; s < a; s++)
t[o][s] = e[o][s] + n[o][s] * r;
}
return t;
}
function fDe(t, e) {
for (var n = t.length, r = e.length, i = n > r ? e : t, a = Math.min(n, r), o = i[a - 1] || { color: [0, 0, 0, 0], offset: 0 }, s = a; s < Math.max(n, r); s++)
i.push({
offset: o.offset,
color: o.color.slice()
});
}
function dDe(t, e, n) {
var r = t, i = e;
if (!(!r.push || !i.push)) {
var a = r.length, o = i.length;
if (a !== o) {
var s = a > o;
if (s)
r.length = o;
else
for (var l = a; l < o; l++)
r.push(n === 1 ? i[l] : gA.call(i[l]));
}
for (var u = r[0] && r[0].length, l = 0; l < r.length; l++)
if (n === 1)
isNaN(r[l]) && (r[l] = i[l]);
else
for (var c = 0; c < u; c++)
isNaN(r[l][c]) && (r[l][c] = i[l][c]);
}
}
function Mg(t) {
if (wr(t)) {
var e = t.length;
if (wr(t[0])) {
for (var n = [], r = 0; r < e; r++)
n.push(gA.call(t[r]));
return n;
}
return gA.call(t);
}
return t;
}
function N_(t) {
return t[0] = Math.floor(t[0]) || 0, t[1] = Math.floor(t[1]) || 0, t[2] = Math.floor(t[2]) || 0, t[3] = t[3] == null ? 1 : t[3], "rgba(" + t.join(",") + ")";
}
function hDe(t) {
return wr(t && t[0]) ? 2 : 1;
}
var Uy = 0, B_ = 1, Kq = 2, jv = 3, mA = 4, yA = 5, X6 = 6;
function Y6(t) {
return t === mA || t === yA;
}
function Xy(t) {
return t === B_ || t === Kq;
}
var ov = [0, 0, 0, 0], pDe = function() {
function t(e) {
this.keyframes = [], this.discrete = !1, this._invalid = !1, this._needsSort = !1, this._lastFr = 0, this._lastFrP = 0, this.propName = e;
}
return t.prototype.isFinished = function() {
return this._finished;
}, t.prototype.setFinished = function() {
this._finished = !0, this._additiveTrack && this._additiveTrack.setFinished();
}, t.prototype.needsAnimate = function() {
return this.keyframes.length >= 1;
}, t.prototype.getAdditiveTrack = function() {
return this._additiveTrack;
}, t.prototype.addKeyframe = function(e, n, r) {
this._needsSort = !0;
var i = this.keyframes, a = i.length, o = !1, s = X6, l = n;
if (wr(n)) {
var u = hDe(n);
s = u, (u === 1 && !St(n[0]) || u === 2 && !St(n[0][0])) && (o = !0);
} else if (St(n) && !ou(n))
s = Uy;
else if (Oe(n))
if (!isNaN(+n))
s = Uy;
else {
var c = Kr(n);
c && (l = c, s = jv);
}
else if (I0(n)) {
var f = le({}, l);
f.colorStops = ce(n.colorStops, function(h) {
return {
offset: h.offset,
color: Kr(h.color)
};
}), Zq(n) ? s = mA : Uq(n) && (s = yA), l = f;
}
a === 0 ? this.valType = s : (s !== this.valType || s === X6) && (o = !0), this.discrete = this.discrete || o;
var d = {
time: e,
value: l,
rawValue: n,
percent: 0
};
return r && (d.easing = r, d.easingFunc = Me(r) ? r : Ag[r] || xR(r)), i.push(d), d;
}, t.prototype.prepare = function(e, n) {
var r = this.keyframes;
this._needsSort && r.sort(function(v, g) {
return v.time - g.time;
});
for (var i = this.valType, a = r.length, o = r[a - 1], s = this.discrete, l = Xy(i), u = Y6(i), c = 0; c < a; c++) {
var f = r[c], d = f.value, h = o.value;
f.percent = f.time / e, s || (l && c !== a - 1 ? dDe(d, h, i) : u && fDe(d.colorStops, h.colorStops));
}
if (!s && i !== yA && n && this.needsAnimate() && n.needsAnimate() && i === n.valType && !n._finished) {
this._additiveTrack = n;
for (var p = r[0].value, c = 0; c < a; c++)
i === Uy ? r[c].additiveValue = r[c].value - p : i === jv ? r[c].additiveValue = Zy([], r[c].value, p, -1) : Xy(i) && (r[c].additiveValue = i === B_ ? Zy([], r[c].value, p, -1) : U6([], r[c].value, p, -1));
}
}, t.prototype.step = function(e, n) {
if (!this._finished) {
this._additiveTrack && this._additiveTrack._finished && (this._additiveTrack = null);
var r = this._additiveTrack != null, i = r ? "additiveValue" : "value", a = this.valType, o = this.keyframes, s = o.length, l = this.propName, u = a === jv, c, f = this._lastFr, d = Math.min, h, p;
if (s === 1)
h = p = o[0];
else {
if (n < 0)
c = 0;
else if (n < this._lastFrP) {
var v = d(f + 1, s - 1);
for (c = v; c >= 0 && !(o[c].percent <= n); c--)
;
c = d(c, s - 2);
} else {
for (c = f; c < s && !(o[c].percent > n); c++)
;
c = d(c - 1, s - 2);
}
p = o[c + 1], h = o[c];
}
if (h && p) {
this._lastFr = c, this._lastFrP = n;
var g = p.percent - h.percent, m = g === 0 ? 1 : d((n - h.percent) / g, 1);
p.easingFunc && (m = p.easingFunc(m));
var y = r ? this._additiveValue : u ? ov : e[l];
if ((Xy(a) || u) && !y && (y = this._additiveValue = []), this.discrete)
e[l] = m < 1 ? h.rawValue : p.rawValue;
else if (Xy(a))
a === B_ ? qC(y, h[i], p[i], m) : cDe(y, h[i], p[i], m);
else if (Y6(a)) {
var b = h[i], _ = p[i], O = a === mA;
e[l] = {
type: O ? "linear" : "radial",
x: Os(b.x, _.x, m),
y: Os(b.y, _.y, m),
colorStops: ce(b.colorStops, function(x, C) {
var T = _.colorStops[C];
return {
offset: Os(x.offset, T.offset, m),
color: N_(qC([], x.color, T.color, m))
};
}),
global: _.global
}, O ? (e[l].x2 = Os(b.x2, _.x2, m), e[l].y2 = Os(b.y2, _.y2, m)) : e[l].r = Os(b.r, _.r, m);
} else if (u)
qC(y, h[i], p[i], m), r || (e[l] = N_(y));
else {
var S = Os(h[i], p[i], m);
r ? this._additiveValue = S : e[l] = S;
}
r && this._addToTarget(e);
}
}
}, t.prototype._addToTarget = function(e) {
var n = this.valType, r = this.propName, i = this._additiveValue;
n === Uy ? e[r] = e[r] + i : n === jv ? (Kr(e[r], ov), Zy(ov, ov, i, 1), e[r] = N_(ov)) : n === B_ ? Zy(e[r], e[r], i, 1) : n === Kq && U6(e[r], e[r], i, 1);
}, t;
}(), TR = function() {
function t(e, n, r, i) {
if (this._tracks = {}, this._trackKeys = [], this._maxTime = 0, this._started = 0, this._clip = null, this._target = e, this._loop = n, n && i) {
xa("Can' use additive animation on looped animation.");
return;
}
this._additiveAnimators = i, this._allowDiscrete = r;
}
return t.prototype.getMaxTime = function() {
return this._maxTime;
}, t.prototype.getDelay = function() {
return this._delay;
}, t.prototype.getLoop = function() {
return this._loop;
}, t.prototype.getTarget = function() {
return this._target;
}, t.prototype.changeTarget = function(e) {
this._target = e;
}, t.prototype.when = function(e, n, r) {
return this.whenWithKeys(e, n, st(n), r);
}, t.prototype.whenWithKeys = function(e, n, r, i) {
for (var a = this._tracks, o = 0; o < r.length; o++) {
var s = r[o], l = a[s];
if (!l) {
l = a[s] = new pDe(s);
var u = void 0, c = this._getAdditiveTrack(s);
if (c) {
var f = c.keyframes, d = f[f.length - 1];
u = d && d.value, c.valType === jv && u && (u = N_(u));
} else
u = this._target[s];
if (u == null)
continue;
e > 0 && l.addKeyframe(0, Mg(u), i), this._trackKeys.push(s);
}
l.addKeyframe(e, Mg(n[s]), i);
}
return this._maxTime = Math.max(this._maxTime, e), this;
}, t.prototype.pause = function() {
this._clip.pause(), this._paused = !0;
}, t.prototype.resume = function() {
this._clip.resume(), this._paused = !1;
}, t.prototype.isPaused = function() {
return !!this._paused;
}, t.prototype.duration = function(e) {
return this._maxTime = e, this._force = !0, this;
}, t.prototype._doneCallback = function() {
this._setTracksFinished(), this._clip = null;
var e = this._doneCbs;
if (e)
for (var n = e.length, r = 0; r < n; r++)
e[r].call(this);
}, t.prototype._abortedCallback = function() {
this._setTracksFinished();
var e = this.animation, n = this._abortedCbs;
if (e && e.removeClip(this._clip), this._clip = null, n)
for (var r = 0; r < n.length; r++)
n[r].call(this);
}, t.prototype._setTracksFinished = function() {
for (var e = this._tracks, n = this._trackKeys, r = 0; r < n.length; r++)
e[n[r]].setFinished();
}, t.prototype._getAdditiveTrack = function(e) {
var n, r = this._additiveAnimators;
if (r)
for (var i = 0; i < r.length; i++) {
var a = r[i].getTrack(e);
a && (n = a);
}
return n;
}, t.prototype.start = function(e) {
if (!(this._started > 0)) {
this._started = 1;
for (var n = this, r = [], i = this._maxTime || 0, a = 0; a < this._trackKeys.length; a++) {
var o = this._trackKeys[a], s = this._tracks[o], l = this._getAdditiveTrack(o), u = s.keyframes, c = u.length;
if (s.prepare(i, l), s.needsAnimate())
if (!this._allowDiscrete && s.discrete) {
var f = u[c - 1];
f && (n._target[s.propName] = f.rawValue), s.setFinished();
} else
r.push(s);
}
if (r.length || this._force) {
var d = new UIe({
life: i,
loop: this._loop,
delay: this._delay || 0,
onframe: function(h) {
n._started = 2;
var p = n._additiveAnimators;
if (p) {
for (var v = !1, g = 0; g < p.length; g++)
if (p[g]._clip) {
v = !0;
break;
}
v || (n._additiveAnimators = null);
}
for (var g = 0; g < r.length; g++)
r[g].step(n._target, h);
var m = n._onframeCbs;
if (m)
for (var g = 0; g < m.length; g++)
m[g](n._target, h);
},
ondestroy: function() {
n._doneCallback();
}
});
this._clip = d, this.animation && this.animation.addClip(d), e && d.setEasing(e);
} else
this._doneCallback();
return this;
}
}, t.prototype.stop = function(e) {
if (this._clip) {
var n = this._clip;
e && n.onframe(1), this._abortedCallback();
}
}, t.prototype.delay = function(e) {
return this._delay = e, this;
}, t.prototype.during = function(e) {
return e && (this._onframeCbs || (this._onframeCbs = []), this._onframeCbs.push(e)), this;
}, t.prototype.done = function(e) {
return e && (this._doneCbs || (this._doneCbs = []), this._doneCbs.push(e)), this;
}, t.prototype.aborted = function(e) {
return e && (this._abortedCbs || (this._abortedCbs = []), this._abortedCbs.push(e)), this;
}, t.prototype.getClip = function() {
return this._clip;
}, t.prototype.getTrack = function(e) {
return this._tracks[e];
}, t.prototype.getTracks = function() {
var e = this;
return ce(this._trackKeys, function(n) {
return e._tracks[n];
});
}, t.prototype.stopTracks = function(e, n) {
if (!e.length || !this._clip)
return !0;
for (var r = this._tracks, i = this._trackKeys, a = 0; a < e.length; a++) {
var o = r[e[a]];
o && !o.isFinished() && (n ? o.step(this._target, 1) : this._started === 1 && o.step(this._target, 0), o.setFinished());
}
for (var s = !0, a = 0; a < i.length; a++)
if (!r[i[a]].isFinished()) {
s = !1;
break;
}
return s && this._abortedCallback(), s;
}, t.prototype.saveTo = function(e, n, r) {
if (e) {
n = n || this._trackKeys;
for (var i = 0; i < n.length; i++) {
var a = n[i], o = this._tracks[a];
if (!(!o || o.isFinished())) {
var s = o.keyframes, l = s[r ? 0 : s.length - 1];
l && (e[a] = Mg(l.rawValue));
}
}
}
}, t.prototype.__changeFinalValue = function(e, n) {
n = n || st(e);
for (var r = 0; r < n.length; r++) {
var i = n[r], a = this._tracks[i];
if (a) {
var o = a.keyframes;
if (o.length > 1) {
var s = o.pop();
a.addKeyframe(s.time, e[i]), a.prepare(this._maxTime, a.getAdditiveTrack());
}
}
}
}, t;
}();
function Vd() {
return (/* @__PURE__ */ new Date()).getTime();
}
var vDe = function(t) {
q(e, t);
function e(n) {
var r = t.call(this) || this;
return r._running = !1, r._time = 0, r._pausedTime = 0, r._pauseStart = 0, r._paused = !1, n = n || {}, r.stage = n.stage || {}, r;
}
return e.prototype.addClip = function(n) {
n.animation && this.removeClip(n), this._head ? (this._tail.next = n, n.prev = this._tail, n.next = null, this._tail = n) : this._head = this._tail = n, n.animation = this;
}, e.prototype.addAnimator = function(n) {
n.animation = this;
var r = n.getClip();
r && this.addClip(r);
}, e.prototype.removeClip = function(n) {
if (n.animation) {
var r = n.prev, i = n.next;
r ? r.next = i : this._head = i, i ? i.prev = r : this._tail = r, n.next = n.prev = n.animation = null;
}
}, e.prototype.removeAnimator = function(n) {
var r = n.getClip();
r && this.removeClip(r), n.animation = null;
}, e.prototype.update = function(n) {
for (var r = Vd() - this._pausedTime, i = r - this._time, a = this._head; a; ) {
var o = a.next, s = a.step(r, i);
s && (a.ondestroy(), this.removeClip(a)), a = o;
}
this._time = r, n || (this.trigger("frame", i), this.stage.update && this.stage.update());
}, e.prototype._startLoop = function() {
var n = this;
this._running = !0;
function r() {
n._running && (K1(r), !n._paused && n.update());
}
K1(r);
}, e.prototype.start = function() {
this._running || (this._time = Vd(), this._pausedTime = 0, this._startLoop());
}, e.prototype.stop = function() {
this._running = !1;
}, e.prototype.pause = function() {
this._paused || (this._pauseStart = Vd(), this._paused = !0);
}, e.prototype.resume = function() {
this._paused && (this._pausedTime += Vd() - this._pauseStart, this._paused = !1);
}, e.prototype.clear = function() {
for (var n = this._head; n; ) {
var r = n.next;
n.prev = n.next = n.animation = null, n = r;
}
this._head = this._tail = null;
}, e.prototype.isFinished = function() {
return this._head == null;
}, e.prototype.animate = function(n, r) {
r = r || {}, this.start();
var i = new TR(n, r.loop);
return this.addAnimator(i), i;
}, e;
}(La), gDe = 300, KC = vt.domSupported, JC = function() {
var t = [
"click",
"dblclick",
"mousewheel",
"wheel",
"mouseout",
"mouseup",
"mousedown",
"mousemove",
"contextmenu"
], e = [
"touchstart",
"touchend",
"touchmove"
], n = {
pointerdown: 1,
pointerup: 1,
pointermove: 1,
pointerout: 1
}, r = ce(t, function(i) {
var a = i.replace("mouse", "pointer");
return n.hasOwnProperty(a) ? a : i;
});
return {
mouse: t,
touch: e,
pointer: r
};
}(), q6 = {
mouse: ["mousemove", "mouseup"],
pointer: ["pointermove", "pointerup"]
}, K6 = !1;
function bA(t) {
var e = t.pointerType;
return e === "pen" || e === "touch";
}
function mDe(t) {
t.touching = !0, t.touchTimer != null && (clearTimeout(t.touchTimer), t.touchTimer = null), t.touchTimer = setTimeout(function() {
t.touching = !1, t.touchTimer = null;
}, 700);
}
function eT(t) {
t && (t.zrByTouch = !0);
}
function yDe(t, e) {
return ua(t.dom, new bDe(t, e), !0);
}
function Jq(t, e) {
for (var n = e, r = !1; n && n.nodeType !== 9 && !(r = n.domBelongToZr || n !== e && n === t.painterRoot); )
n = n.parentNode;
return r;
}
var bDe = /* @__PURE__ */ function() {
function t(e, n) {
this.stopPropagation = On, this.stopImmediatePropagation = On, this.preventDefault = On, this.type = n.type, this.target = this.currentTarget = e.dom, this.pointerType = n.pointerType, this.clientX = n.clientX, this.clientY = n.clientY;
}
return t;
}(), Za = {
mousedown: function(t) {
t = ua(this.dom, t), this.__mayPointerCapture = [t.zrX, t.zrY], this.trigger("mousedown", t);
},
mousemove: function(t) {
t = ua(this.dom, t);
var e = this.__mayPointerCapture;
e && (t.zrX !== e[0] || t.zrY !== e[1]) && this.__togglePointerCapture(!0), this.trigger("mousemove", t);
},
mouseup: function(t) {
t = ua(this.dom, t), this.__togglePointerCapture(!1), this.trigger("mouseup", t);
},
mouseout: function(t) {
t = ua(this.dom, t);
var e = t.toElement || t.relatedTarget;
Jq(this, e) || (this.__pointerCapturing && (t.zrEventControl = "no_globalout"), this.trigger("mouseout", t));
},
wheel: function(t) {
K6 = !0, t = ua(this.dom, t), this.trigger("mousewheel", t);
},
mousewheel: function(t) {
K6 || (t = ua(this.dom, t), this.trigger("mousewheel", t));
},
touchstart: function(t) {
t = ua(this.dom, t), eT(t), this.__lastTouchMoment = /* @__PURE__ */ new Date(), this.handler.processGesture(t, "start"), Za.mousemove.call(this, t), Za.mousedown.call(this, t);
},
touchmove: function(t) {
t = ua(this.dom, t), eT(t), this.handler.processGesture(t, "change"), Za.mousemove.call(this, t);
},
touchend: function(t) {
t = ua(this.dom, t), eT(t), this.handler.processGesture(t, "end"), Za.mouseup.call(this, t), +/* @__PURE__ */ new Date() - +this.__lastTouchMoment < gDe && Za.click.call(this, t);
},
pointerdown: function(t) {
Za.mousedown.call(this, t);
},
pointermove: function(t) {
bA(t) || Za.mousemove.call(this, t);
},
pointerup: function(t) {
Za.mouseup.call(this, t);
},
pointerout: function(t) {
bA(t) || Za.mouseout.call(this, t);
}
};
k(["click", "dblclick", "contextmenu"], function(t) {
Za[t] = function(e) {
e = ua(this.dom, e), this.trigger(t, e);
};
});
var _A = {
pointermove: function(t) {
bA(t) || _A.mousemove.call(this, t);
},
pointerup: function(t) {
_A.mouseup.call(this, t);
},
mousemove: function(t) {
this.trigger("mousemove", t);
},
mouseup: function(t) {
var e = this.__pointerCapturing;
this.__togglePointerCapture(!1), this.trigger("mouseup", t), e && (t.zrEventControl = "only_globalout", this.trigger("mouseout", t));
}
};
function _De(t, e) {
var n = e.domHandlers;
vt.pointerEventsSupported ? k(JC.pointer, function(r) {
z_(e, r, function(i) {
n[r].call(t, i);
});
}) : (vt.touchEventsSupported && k(JC.touch, function(r) {
z_(e, r, function(i) {
n[r].call(t, i), mDe(e);
});
}), k(JC.mouse, function(r) {
z_(e, r, function(i) {
i = SR(i), e.touching || n[r].call(t, i);
});
}));
}
function ODe(t, e) {
vt.pointerEventsSupported ? k(q6.pointer, n) : vt.touchEventsSupported || k(q6.mouse, n);
function n(r) {
function i(a) {
a = SR(a), Jq(t, a.target) || (a = yDe(t, a), e.domHandlers[r].call(t, a));
}
z_(e, r, i, { capture: !0 });
}
}
function z_(t, e, n, r) {
t.mounted[e] = n, t.listenerOpts[e] = r, fA(t.domTarget, e, n, r);
}
function tT(t) {
var e = t.mounted;
for (var n in e)
e.hasOwnProperty(n) && EIe(t.domTarget, n, e[n], t.listenerOpts[n]);
t.mounted = {};
}
var J6 = /* @__PURE__ */ function() {
function t(e, n) {
this.mounted = {}, this.listenerOpts = {}, this.touching = !1, this.domTarget = e, this.domHandlers = n;
}
return t;
}(), SDe = function(t) {
q(e, t);
function e(n, r) {
var i = t.call(this) || this;
return i.__pointerCapturing = !1, i.dom = n, i.painterRoot = r, i._localHandlerScope = new J6(n, Za), KC && (i._globalHandlerScope = new J6(document, _A)), _De(i, i._localHandlerScope), i;
}
return e.prototype.dispose = function() {
tT(this._localHandlerScope), KC && tT(this._globalHandlerScope);
}, e.prototype.setCursor = function(n) {
this.dom.style && (this.dom.style.cursor = n || "default");
}, e.prototype.__togglePointerCapture = function(n) {
if (this.__mayPointerCapture = null, KC && +this.__pointerCapturing ^ +n) {
this.__pointerCapturing = n;
var r = this._globalHandlerScope;
n ? ODe(this, r) : tT(r);
}
}, e;
}(La), eK = 1;
vt.hasGlobalWindow && (eK = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1));
var iO = eK, OA = 0.4, SA = "#333", xA = "#ccc", xDe = "#eee", eB = R0, tB = 5e-5;
function Qu(t) {
return t > tB || t < -tB;
}
var Hu = [], rd = [], nT = wi(), rT = Math.abs, wDe = function() {
function t() {
}
return t.prototype.getLocalTransform = function(e) {
return t.getLocalTransform(this, e);
}, t.prototype.setPosition = function(e) {
this.x = e[0], this.y = e[1];
}, t.prototype.setScale = function(e) {
this.scaleX = e[0], this.scaleY = e[1];
}, t.prototype.setSkew = function(e) {
this.skewX = e[0], this.skewY = e[1];
}, t.prototype.setOrigin = function(e) {
this.originX = e[0], this.originY = e[1];
}, t.prototype.needLocalTransform = function() {
return Qu(this.rotation) || Qu(this.x) || Qu(this.y) || Qu(this.scaleX - 1) || Qu(this.scaleY - 1) || Qu(this.skewX) || Qu(this.skewY);
}, t.prototype.updateTransform = function() {
var e = this.parent && this.parent.transform, n = this.needLocalTransform(), r = this.transform;
if (!(n || e)) {
r && (eB(r), this.invTransform = null);
return;
}
r = r || wi(), n ? this.getLocalTransform(r) : eB(r), e && (n ? Xo(r, e, r) : Nx(r, e)), this.transform = r, this._resolveGlobalScaleRatio(r);
}, t.prototype._resolveGlobalScaleRatio = function(e) {
var n = this.globalScaleRatio;
if (n != null && n !== 1) {
this.getGlobalScale(Hu);
var r = Hu[0] < 0 ? -1 : 1, i = Hu[1] < 0 ? -1 : 1, a = ((Hu[0] - r) * n + r) / Hu[0] || 0, o = ((Hu[1] - i) * n + i) / Hu[1] || 0;
e[0] *= a, e[1] *= a, e[2] *= o, e[3] *= o;
}
this.invTransform = this.invTransform || wi(), Lf(this.invTransform, e);
}, t.prototype.getComputedTransform = function() {
for (var e = this, n = []; e; )
n.push(e), e = e.parent;
for (; e = n.pop(); )
e.updateTransform();
return this.transform;
}, t.prototype.setLocalTransform = function(e) {
if (e) {
var n = e[0] * e[0] + e[1] * e[1], r = e[2] * e[2] + e[3] * e[3], i = Math.atan2(e[1], e[0]), a = Math.PI / 2 + i - Math.atan2(e[3], e[2]);
r = Math.sqrt(r) * Math.cos(a), n = Math.sqrt(n), this.skewX = a, this.skewY = 0, this.rotation = -i, this.x = +e[4], this.y = +e[5], this.scaleX = n, this.scaleY = r, this.originX = 0, this.originY = 0;
}
}, t.prototype.decomposeTransform = function() {
if (this.transform) {
var e = this.parent, n = this.transform;
e && e.transform && (e.invTransform = e.invTransform || wi(), Xo(rd, e.invTransform, n), n = rd);
var r = this.originX, i = this.originY;
(r || i) && (nT[4] = r, nT[5] = i, Xo(rd, n, nT), rd[4] -= r, rd[5] -= i, n = rd), this.setLocalTransform(n);
}
}, t.prototype.getGlobalScale = function(e) {
var n = this.transform;
return e = e || [], n ? (e[0] = Math.sqrt(n[0] * n[0] + n[1] * n[1]), e[1] = Math.sqrt(n[2] * n[2] + n[3] * n[3]), n[0] < 0 && (e[0] = -e[0]), n[3] < 0 && (e[1] = -e[1]), e) : (e[0] = 1, e[1] = 1, e);
}, t.prototype.transformCoordToLocal = function(e, n) {
var r = [e, n], i = this.invTransform;
return i && ar(r, r, i), r;
}, t.prototype.transformCoordToGlobal = function(e, n) {
var r = [e, n], i = this.transform;
return i && ar(r, r, i), r;
}, t.prototype.getLineScale = function() {
var e = this.transform;
return e && rT(e[0] - 1) > 1e-10 && rT(e[3] - 1) > 1e-10 ? Math.sqrt(rT(e[0] * e[3] - e[2] * e[1])) : 1;
}, t.prototype.copyTransform = function(e) {
tK(this, e);
}, t.getLocalTransform = function(e, n) {
n = n || [];
var r = e.originX || 0, i = e.originY || 0, a = e.scaleX, o = e.scaleY, s = e.anchorX, l = e.anchorY, u = e.rotation || 0, c = e.x, f = e.y, d = e.skewX ? Math.tan(e.skewX) : 0, h = e.skewY ? Math.tan(-e.skewY) : 0;
if (r || i || s || l) {
var p = r + s, v = i + l;
n[4] = -p * a - d * v * o, n[5] = -v * o - h * p * a;
} else
n[4] = n[5] = 0;
return n[0] = a, n[3] = o, n[1] = h * a, n[2] = d * o, u && Cu(n, n, u), n[4] += r + c, n[5] += i + f, n;
}, t.initDefaultProps = function() {
var e = t.prototype;
e.scaleX = e.scaleY = e.globalScaleRatio = 1, e.x = e.y = e.originX = e.originY = e.skewX = e.skewY = e.rotation = e.anchorX = e.anchorY = 0;
}(), t;
}(), is = [
"x",
"y",
"originX",
"originY",
"anchorX",
"anchorY",
"rotation",
"scaleX",
"scaleY",
"skewX",
"skewY"
];
function tK(t, e) {
for (var n = 0; n < is.length; n++) {
var r = is[n];
t[r] = e[r];
}
}
const Es = wDe;
var nB = {};
function Xi(t, e) {
e = e || iu;
var n = nB[e];
n || (n = nB[e] = new k0(500));
var r = n.get(t);
return r == null && (r = oo.measureText(t, e).width, n.put(t, r)), r;
}
function rB(t, e, n, r) {
var i = Xi(t, e), a = Vx(e), o = Zv(0, i, n), s = Ed(0, a, r), l = new Je(o, s, i, a);
return l;
}
function L0(t, e, n, r) {
var i = ((t || "") + "").split(`
`), a = i.length;
if (a === 1)
return rB(i[0], e, n, r);
for (var o = new Je(0, 0, 0, 0), s = 0; s < i.length; s++) {
var l = rB(i[s], e, n, r);
s === 0 ? o.copy(l) : o.union(l);
}
return o;
}
function Zv(t, e, n) {
return n === "right" ? t -= e : n === "center" && (t -= e / 2), t;
}
function Ed(t, e, n) {
return n === "middle" ? t -= e / 2 : n === "bottom" && (t -= e), t;
}
function Vx(t) {
return Xi("国", t);
}
function lo(t, e) {
return typeof t == "string" ? t.lastIndexOf("%") >= 0 ? parseFloat(t) / 100 * e : parseFloat(t) : t;
}
function aO(t, e, n) {
var r = e.position || "inside", i = e.distance != null ? e.distance : 5, a = n.height, o = n.width, s = a / 2, l = n.x, u = n.y, c = "left", f = "top";
if (r instanceof Array)
l += lo(r[0], n.width), u += lo(r[1], n.height), c = null, f = null;
else
switch (r) {
case "left":
l -= i, u += s, c = "right", f = "middle";
break;
case "right":
l += i + o, u += s, f = "middle";
break;
case "top":
l += o / 2, u -= i, c = "center", f = "bottom";
break;
case "bottom":
l += o / 2, u += a + i, c = "center";
break;
case "inside":
l += o / 2, u += s, c = "center", f = "middle";
break;
case "insideLeft":
l += i, u += s, f = "middle";
break;
case "insideRight":
l += o - i, u += s, c = "right", f = "middle";
break;
case "insideTop":
l += o / 2, u += i, c = "center";
break;
case "insideBottom":
l += o / 2, u += a - i, c = "center", f = "bottom";
break;
case "insideTopLeft":
l += i, u += i;
break;
case "insideTopRight":
l += o - i, u += i, c = "right";
break;
case "insideBottomLeft":
l += i, u += a - i, f = "bottom";
break;
case "insideBottomRight":
l += o - i, u += a - i, c = "right", f = "bottom";
break;
}
return t = t || {}, t.x = l, t.y = u, t.align = c, t.verticalAlign = f, t;
}
var iT = "__zr_normal__", aT = is.concat(["ignore"]), CDe = Ma(is, function(t, e) {
return t[e] = !0, t;
}, { ignore: !1 }), id = {}, TDe = new Je(0, 0, 0, 0), Fx = function() {
function t(e) {
this.id = mR(), this.animators = [], this.currentStates = [], this.states = {}, this._init(e);
}
return t.prototype._init = function(e) {
this.attr(e);
}, t.prototype.drift = function(e, n, r) {
switch (this.draggable) {
case "horizontal":
n = 0;
break;
case "vertical":
e = 0;
break;
}
var i = this.transform;
i || (i = this.transform = [1, 0, 0, 1, 0, 0]), i[4] += e, i[5] += n, this.decomposeTransform(), this.markRedraw();
}, t.prototype.beforeUpdate = function() {
}, t.prototype.afterUpdate = function() {
}, t.prototype.update = function() {
this.updateTransform(), this.__dirty && this.updateInnerText();
}, t.prototype.updateInnerText = function(e) {
var n = this._textContent;
if (n && (!n.ignore || e)) {
this.textConfig || (this.textConfig = {});
var r = this.textConfig, i = r.local, a = n.innerTransformable, o = void 0, s = void 0, l = !1;
a.parent = i ? this : null;
var u = !1;
if (a.copyTransform(n), r.position != null) {
var c = TDe;
r.layoutRect ? c.copy(r.layoutRect) : c.copy(this.getBoundingRect()), i || c.applyTransform(this.transform), this.calculateTextPosition ? this.calculateTextPosition(id, r, c) : aO(id, r, c), a.x = id.x, a.y = id.y, o = id.align, s = id.verticalAlign;
var f = r.origin;
if (f && r.rotation != null) {
var d = void 0, h = void 0;
f === "center" ? (d = c.width * 0.5, h = c.height * 0.5) : (d = lo(f[0], c.width), h = lo(f[1], c.height)), u = !0, a.originX = -a.x + d + (i ? 0 : c.x), a.originY = -a.y + h + (i ? 0 : c.y);
}
}
r.rotation != null && (a.rotation = r.rotation);
var p = r.offset;
p && (a.x += p[0], a.y += p[1], u || (a.originX = -p[0], a.originY = -p[1]));
var v = r.inside == null ? typeof r.position == "string" && r.position.indexOf("inside") >= 0 : r.inside, g = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {}), m = void 0, y = void 0, b = void 0;
v && this.canBeInsideText() ? (m = r.insideFill, y = r.insideStroke, (m == null || m === "auto") && (m = this.getInsideTextFill()), (y == null || y === "auto") && (y = this.getInsideTextStroke(m), b = !0)) : (m = r.outsideFill, y = r.outsideStroke, (m == null || m === "auto") && (m = this.getOutsideFill()), (y == null || y === "auto") && (y = this.getOutsideStroke(m), b = !0)), m = m || "#000", (m !== g.fill || y !== g.stroke || b !== g.autoStroke || o !== g.align || s !== g.verticalAlign) && (l = !0, g.fill = m, g.stroke = y, g.autoStroke = b, g.align = o, g.verticalAlign = s, n.setDefaultTextStyle(g)), n.__dirty |= Ni, l && n.dirtyStyle(!0);
}
}, t.prototype.canBeInsideText = function() {
return !0;
}, t.prototype.getInsideTextFill = function() {
return "#fff";
}, t.prototype.getInsideTextStroke = function(e) {
return "#000";
}, t.prototype.getOutsideFill = function() {
return this.__zr && this.__zr.isDarkMode() ? xA : SA;
}, t.prototype.getOutsideStroke = function(e) {
var n = this.__zr && this.__zr.getBackgroundColor(), r = typeof n == "string" && Kr(n);
r || (r = [255, 255, 255, 1]);
for (var i = r[3], a = this.__zr.isDarkMode(), o = 0; o < 3; o++)
r[o] = r[o] * i + (a ? 0 : 255) * (1 - i);
return r[3] = 1, no(r, "rgba");
}, t.prototype.traverse = function(e, n) {
}, t.prototype.attrKV = function(e, n) {
e === "textConfig" ? this.setTextConfig(n) : e === "textContent" ? this.setTextContent(n) : e === "clipPath" ? this.setClipPath(n) : e === "extra" ? (this.extra = this.extra || {}, le(this.extra, n)) : this[e] = n;
}, t.prototype.hide = function() {
this.ignore = !0, this.markRedraw();
}, t.prototype.show = function() {
this.ignore = !1, this.markRedraw();
}, t.prototype.attr = function(e, n) {
if (typeof e == "string")
this.attrKV(e, n);
else if (Ie(e))
for (var r = e, i = st(r), a = 0; a < i.length; a++) {
var o = i[a];
this.attrKV(o, e[o]);
}
return this.markRedraw(), this;
}, t.prototype.saveCurrentToNormalState = function(e) {
this._innerSaveToNormal(e);
for (var n = this._normalState, r = 0; r < this.animators.length; r++) {
var i = this.animators[r], a = i.__fromStateTransition;
if (!(i.getLoop() || a && a !== iT)) {
var o = i.targetName, s = o ? n[o] : n;
i.saveTo(s);
}
}
}, t.prototype._innerSaveToNormal = function(e) {
var n = this._normalState;
n || (n = this._normalState = {}), e.textConfig && !n.textConfig && (n.textConfig = this.textConfig), this._savePrimaryToNormal(e, n, aT);
}, t.prototype._savePrimaryToNormal = function(e, n, r) {
for (var i = 0; i < r.length; i++) {
var a = r[i];
e[a] != null && !(a in n) && (n[a] = this[a]);
}
}, t.prototype.hasState = function() {
return this.currentStates.length > 0;
}, t.prototype.getState = function(e) {
return this.states[e];
}, t.prototype.ensureState = function(e) {
var n = this.states;
return n[e] || (n[e] = {}), n[e];
}, t.prototype.clearStates = function(e) {
this.useState(iT, !1, e);
}, t.prototype.useState = function(e, n, r, i) {
var a = e === iT, o = this.hasState();
if (!(!o && a)) {
var s = this.currentStates, l = this.stateTransition;
if (!(et(s, e) >= 0 && (n || s.length === 1))) {
var u;
if (this.stateProxy && !a && (u = this.stateProxy(e)), u || (u = this.states && this.states[e]), !u && !a) {
xa("State " + e + " not exists.");
return;
}
a || this.saveCurrentToNormalState(u);
var c = !!(u && u.hoverLayer || i);
c && this._toggleHoverLayerFlag(!0), this._applyStateObj(e, u, this._normalState, n, !r && !this.__inHover && l && l.duration > 0, l);
var f = this._textContent, d = this._textGuide;
return f && f.useState(e, n, r, c), d && d.useState(e, n, r, c), a ? (this.currentStates = [], this._normalState = {}) : n ? this.currentStates.push(e) : this.currentStates = [e], this._updateAnimationTargets(), this.markRedraw(), !c && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~Ni), u;
}
}
}, t.prototype.useStates = function(e, n, r) {
if (!e.length)
this.clearStates();
else {
var i = [], a = this.currentStates, o = e.length, s = o === a.length;
if (s) {
for (var l = 0; l < o; l++)
if (e[l] !== a[l]) {
s = !1;
break;
}
}
if (s)
return;
for (var l = 0; l < o; l++) {
var u = e[l], c = void 0;
this.stateProxy && (c = this.stateProxy(u, e)), c || (c = this.states[u]), c && i.push(c);
}
var f = i[o - 1], d = !!(f && f.hoverLayer || r);
d && this._toggleHoverLayerFlag(!0);
var h = this._mergeStates(i), p = this.stateTransition;
this.saveCurrentToNormalState(h), this._applyStateObj(e.join(","), h, this._normalState, !1, !n && !this.__inHover && p && p.duration > 0, p);
var v = this._textContent, g = this._textGuide;
v && v.useStates(e, n, d), g && g.useStates(e, n, d), this._updateAnimationTargets(), this.currentStates = e.slice(), this.markRedraw(), !d && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~Ni);
}
}, t.prototype.isSilent = function() {
for (var e = this.silent, n = this.parent; !e && n; ) {
if (n.silent) {
e = !0;
break;
}
n = n.parent;
}
return e;
}, t.prototype._updateAnimationTargets = function() {
for (var e = 0; e < this.animators.length; e++) {
var n = this.animators[e];
n.targetName && n.changeTarget(this[n.targetName]);
}
}, t.prototype.removeState = function(e) {
var n = et(this.currentStates, e);
if (n >= 0) {
var r = this.currentStates.slice();
r.splice(n, 1), this.useStates(r);
}
}, t.prototype.replaceState = function(e, n, r) {
var i = this.currentStates.slice(), a = et(i, e), o = et(i, n) >= 0;
a >= 0 ? o ? i.splice(a, 1) : i[a] = n : r && !o && i.push(n), this.useStates(i);
}, t.prototype.toggleState = function(e, n) {
n ? this.useState(e, !0) : this.removeState(e);
}, t.prototype._mergeStates = function(e) {
for (var n = {}, r, i = 0; i < e.length; i++) {
var a = e[i];
le(n, a), a.textConfig && (r = r || {}, le(r, a.textConfig));
}
return r && (n.textConfig = r), n;
}, t.prototype._applyStateObj = function(e, n, r, i, a, o) {
var s = !(n && i);
n && n.textConfig ? (this.textConfig = le({}, i ? this.textConfig : r.textConfig), le(this.textConfig, n.textConfig)) : s && r.textConfig && (this.textConfig = r.textConfig);
for (var l = {}, u = !1, c = 0; c < aT.length; c++) {
var f = aT[c], d = a && CDe[f];
n && n[f] != null ? d ? (u = !0, l[f] = n[f]) : this[f] = n[f] : s && r[f] != null && (d ? (u = !0, l[f] = r[f]) : this[f] = r[f]);
}
if (!a)
for (var c = 0; c < this.animators.length; c++) {
var h = this.animators[c], p = h.targetName;
h.getLoop() || h.__changeFinalValue(p ? (n || r)[p] : n || r);
}
u && this._transitionState(e, l, o);
}, t.prototype._attachComponent = function(e) {
if (e.__zr && !e.__hostTarget) {
if (process.env.NODE_ENV !== "production")
throw new Error("Text element has been added to zrender.");
return;
}
if (e === this) {
if (process.env.NODE_ENV !== "production")
throw new Error("Recursive component attachment.");
return;
}
var n = this.__zr;
n && e.addSelfToZr(n), e.__zr = n, e.__hostTarget = this;
}, t.prototype._detachComponent = function(e) {
e.__zr && e.removeSelfFromZr(e.__zr), e.__zr = null, e.__hostTarget = null;
}, t.prototype.getClipPath = function() {
return this._clipPath;
}, t.prototype.setClipPath = function(e) {
this._clipPath && this._clipPath !== e && this.removeClipPath(), this._attachComponent(e), this._clipPath = e, this.markRedraw();
}, t.prototype.removeClipPath = function() {
var e = this._clipPath;
e && (this._detachComponent(e), this._clipPath = null, this.markRedraw());
}, t.prototype.getTextContent = function() {
return this._textContent;
}, t.prototype.setTextContent = function(e) {
var n = this._textContent;
if (n !== e) {
if (n && n !== e && this.removeTextContent(), process.env.NODE_ENV !== "production" && e.__zr && !e.__hostTarget)
throw new Error("Text element has been added to zrender.");
e.innerTransformable = new Es(), this._attachComponent(e), this._textContent = e, this.markRedraw();
}
}, t.prototype.setTextConfig = function(e) {
this.textConfig || (this.textConfig = {}), le(this.textConfig, e), this.markRedraw();
}, t.prototype.removeTextConfig = function() {
this.textConfig = null, this.markRedraw();
}, t.prototype.removeTextContent = function() {
var e = this._textContent;
e && (e.innerTransformable = null, this._detachComponent(e), this._textContent = null, this._innerTextDefaultStyle = null, this.markRedraw());
}, t.prototype.getTextGuideLine = function() {
return this._textGuide;
}, t.prototype.setTextGuideLine = function(e) {
this._textGuide && this._textGuide !== e && this.removeTextGuideLine(), this._attachComponent(e), this._textGuide = e, this.markRedraw();
}, t.prototype.removeTextGuideLine = function() {
var e = this._textGuide;
e && (this._detachComponent(e), this._textGuide = null, this.markRedraw());
}, t.prototype.markRedraw = function() {
this.__dirty |= Ni;
var e = this.__zr;
e && (this.__inHover ? e.refreshHover() : e.refresh()), this.__hostTarget && this.__hostTarget.markRedraw();
}, t.prototype.dirty = function() {
this.markRedraw();
}, t.prototype._toggleHoverLayerFlag = function(e) {
this.__inHover = e;
var n = this._textContent, r = this._textGuide;
n && (n.__inHover = e), r && (r.__inHover = e);
}, t.prototype.addSelfToZr = function(e) {
if (this.__zr !== e) {
this.__zr = e;
var n = this.animators;
if (n)
for (var r = 0; r < n.length; r++)
e.animation.addAnimator(n[r]);
this._clipPath && this._clipPath.addSelfToZr(e), this._textContent && this._textContent.addSelfToZr(e), this._textGuide && this._textGuide.addSelfToZr(e);
}
}, t.prototype.removeSelfFromZr = function(e) {
if (this.__zr) {
this.__zr = null;
var n = this.animators;
if (n)
for (var r = 0; r < n.length; r++)
e.animation.removeAnimator(n[r]);
this._clipPath && this._clipPath.removeSelfFromZr(e), this._textContent && this._textContent.removeSelfFromZr(e), this._textGuide && this._textGuide.removeSelfFromZr(e);
}
}, t.prototype.animate = function(e, n, r) {
var i = e ? this[e] : this;
if (process.env.NODE_ENV !== "production" && !i) {
xa('Property "' + e + '" is not existed in element ' + this.id);
return;
}
var a = new TR(i, n, r);
return e && (a.targetName = e), this.addAnimator(a, e), a;
}, t.prototype.addAnimator = function(e, n) {
var r = this.__zr, i = this;
e.during(function() {
i.updateDuringAnimation(n);
}).done(function() {
var a = i.animators, o = et(a, e);
o >= 0 && a.splice(o, 1);
}), this.animators.push(e), r && r.animation.addAnimator(e), r && r.wakeUp();
}, t.prototype.updateDuringAnimation = function(e) {
this.markRedraw();
}, t.prototype.stopAnimation = function(e, n) {
for (var r = this.animators, i = r.length, a = [], o = 0; o < i; o++) {
var s = r[o];
!e || e === s.scope ? s.stop(n) : a.push(s);
}
return this.animators = a, this;
}, t.prototype.animateTo = function(e, n, r) {
oT(this, e, n, r);
}, t.prototype.animateFrom = function(e, n, r) {
oT(this, e, n, r, !0);
}, t.prototype._transitionState = function(e, n, r, i) {
for (var a = oT(this, n, r, i), o = 0; o < a.length; o++)
a[o].__fromStateTransition = e;
}, t.prototype.getBoundingRect = function() {
return null;
}, t.prototype.getPaintRect = function() {
return null;
}, t.initDefaultProps = function() {
var e = t.prototype;
e.type = "element", e.name = "", e.ignore = e.silent = e.isGroup = e.draggable = e.dragging = e.ignoreClip = e.__inHover = !1, e.__dirty = Ni;
var n = {};
function r(a, o, s) {
n[a + o + s] || (console.warn("DEPRECATED: '" + a + "' has been deprecated. use '" + o + "', '" + s + "' instead"), n[a + o + s] = !0);
}
function i(a, o, s, l) {
Object.defineProperty(e, a, {
get: function() {
if (process.env.NODE_ENV !== "production" && r(a, s, l), !this[o]) {
var c = this[o] = [];
u(this, c);
}
return this[o];
},
set: function(c) {
process.env.NODE_ENV !== "production" && r(a, s, l), this[s] = c[0], this[l] = c[1], this[o] = c, u(this, c);
}
});
function u(c, f) {
Object.defineProperty(f, 0, {
get: function() {
return c[s];
},
set: function(d) {
c[s] = d;
}
}), Object.defineProperty(f, 1, {
get: function() {
return c[l];
},
set: function(d) {
c[l] = d;
}
});
}
}
Object.defineProperty && (i("position", "_legacyPos", "x", "y"), i("scale", "_legacyScale", "scaleX", "scaleY"), i("origin", "_legacyOrigin", "originX", "originY"));
}(), t;
}();
xn(Fx, La);
xn(Fx, Es);
function oT(t, e, n, r, i) {
n = n || {};
var a = [];
nK(t, "", t, e, n, r, a, i);
var o = a.length, s = !1, l = n.done, u = n.aborted, c = function() {
s = !0, o--, o <= 0 && (s ? l && l() : u && u());
}, f = function() {
o--, o <= 0 && (s ? l && l() : u && u());
};
o || l && l(), a.length > 0 && n.during && a[0].during(function(p, v) {
n.during(v);
});
for (var d = 0; d < a.length; d++) {
var h = a[d];
c && h.done(c), f && h.aborted(f), n.force && h.duration(n.duration), h.start(n.easing);
}
return a;
}
function sT(t, e, n) {
for (var r = 0; r < n; r++)
t[r] = e[r];
}
function PDe(t) {
return wr(t[0]);
}
function $De(t, e, n) {
if (wr(e[n]))
if (wr(t[n]) || (t[n] = []), Br(e[n])) {
var r = e[n].length;
t[n].length !== r && (t[n] = new e[n].constructor(r), sT(t[n], e[n], r));
} else {
var i = e[n], a = t[n], o = i.length;
if (PDe(i))
for (var s = i[0].length, l = 0; l < o; l++)
a[l] ? sT(a[l], i[l], s) : a[l] = Array.prototype.slice.call(i[l]);
else
sT(a, i, o);
a.length = i.length;
}
else
t[n] = e[n];
}
function ADe(t, e) {
return t === e || wr(t) && wr(e) && EDe(t, e);
}
function EDe(t, e) {
var n = t.length;
if (n !== e.length)
return !1;
for (var r = 0; r < n; r++)
if (t[r] !== e[r])
return !1;
return !0;
}
function nK(t, e, n, r, i, a, o, s) {
for (var l = st(r), u = i.duration, c = i.delay, f = i.additive, d = i.setToFinal, h = !Ie(a), p = t.animators, v = [], g = 0; g < l.length; g++) {
var m = l[g], y = r[m];
if (y != null && n[m] != null && (h || a[m]))
if (Ie(y) && !wr(y) && !I0(y)) {
if (e) {
s || (n[m] = y, t.updateDuringAnimation(e));
continue;
}
nK(t, m, n[m], y, i, a && a[m], o, s);
} else
v.push(m);
else s || (n[m] = y, t.updateDuringAnimation(e), v.push(m));
}
var b = v.length;
if (!f && b)
for (var _ = 0; _ < p.length; _++) {
var O = p[_];
if (O.targetName === e) {
var S = O.stopTracks(v);
if (S) {
var x = et(p, O);
p.splice(x, 1);
}
}
}
if (i.force || (v = Nt(v, function(P) {
return !ADe(r[P], n[P]);
}), b = v.length), b > 0 || i.force && !o.length) {
var C = void 0, T = void 0, w = void 0;
if (s) {
T = {}, d && (C = {});
for (var _ = 0; _ < b; _++) {
var m = v[_];
T[m] = n[m], d ? C[m] = r[m] : n[m] = r[m];
}
} else if (d) {
w = {};
for (var _ = 0; _ < b; _++) {
var m = v[_];
w[m] = Mg(n[m]), $De(n, r, m);
}
}
var O = new TR(n, !1, !1, f ? Nt(p, function($) {
return $.targetName === e;
}) : null);
O.targetName = e, i.scope && (O.scope = i.scope), d && C && O.whenWithKeys(0, C, v), w && O.whenWithKeys(0, w, v), O.whenWithKeys(u ?? 500, s ? T : r, v).delay(c || 0), t.addAnimator(O, e), o.push(O);
}
}
var rK = function(t) {
q(e, t);
function e(n) {
var r = t.call(this) || this;
return r.isGroup = !0, r._children = [], r.attr(n), r;
}
return e.prototype.childrenRef = function() {
return this._children;
}, e.prototype.children = function() {
return this._children.slice();
}, e.prototype.childAt = function(n) {
return this._children[n];
}, e.prototype.childOfName = function(n) {
for (var r = this._children, i = 0; i < r.length; i++)
if (r[i].name === n)
return r[i];
}, e.prototype.childCount = function() {
return this._children.length;
}, e.prototype.add = function(n) {
if (n && (n !== this && n.parent !== this && (this._children.push(n), this._doAdd(n)), process.env.NODE_ENV !== "production" && n.__hostTarget))
throw "This elemenet has been used as an attachment";
return this;
}, e.prototype.addBefore = function(n, r) {
if (n && n !== this && n.parent !== this && r && r.parent === this) {
var i = this._children, a = i.indexOf(r);
a >= 0 && (i.splice(a, 0, n), this._doAdd(n));
}
return this;
}, e.prototype.replace = function(n, r) {
var i = et(this._children, n);
return i >= 0 && this.replaceAt(r, i), this;
}, e.prototype.replaceAt = function(n, r) {
var i = this._children, a = i[r];
if (n && n !== this && n.parent !== this && n !== a) {
i[r] = n, a.parent = null;
var o = this.__zr;
o && a.removeSelfFromZr(o), this._doAdd(n);
}
return this;
}, e.prototype._doAdd = function(n) {
n.parent && n.parent.remove(n), n.parent = this;
var r = this.__zr;
r && r !== n.__zr && n.addSelfToZr(r), r && r.refresh();
}, e.prototype.remove = function(n) {
var r = this.__zr, i = this._children, a = et(i, n);
return a < 0 ? this : (i.splice(a, 1), n.parent = null, r && n.removeSelfFromZr(r), r && r.refresh(), this);
}, e.prototype.removeAll = function() {
for (var n = this._children, r = this.__zr, i = 0; i < n.length; i++) {
var a = n[i];
r && a.removeSelfFromZr(r), a.parent = null;
}
return n.length = 0, this;
}, e.prototype.eachChild = function(n, r) {
for (var i = this._children, a = 0; a < i.length; a++) {
var o = i[a];
n.call(r, o, a);
}
return this;
}, e.prototype.traverse = function(n, r) {
for (var i = 0; i < this._children.length; i++) {
var a = this._children[i], o = n.call(r, a);
a.isGroup && !o && a.traverse(n, r);
}
return this;
}, e.prototype.addSelfToZr = function(n) {
t.prototype.addSelfToZr.call(this, n);
for (var r = 0; r < this._children.length; r++) {
var i = this._children[r];
i.addSelfToZr(n);
}
}, e.prototype.removeSelfFromZr = function(n) {
t.prototype.removeSelfFromZr.call(this, n);
for (var r = 0; r < this._children.length; r++) {
var i = this._children[r];
i.removeSelfFromZr(n);
}
}, e.prototype.getBoundingRect = function(n) {
for (var r = new Je(0, 0, 0, 0), i = n || this._children, a = [], o = null, s = 0; s < i.length; s++) {
var l = i[s];
if (!(l.ignore || l.invisible)) {
var u = l.getBoundingRect(), c = l.getLocalTransform(a);
c ? (Je.applyTransform(r, u, c), o = o || r.clone(), o.union(r)) : (o = o || u.clone(), o.union(u));
}
}
return o || r;
}, e;
}(Fx);
rK.prototype.type = "group";
const Ve = rK;
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/
var Uv = {}, Rc = {};
function MDe(t) {
delete Rc[t];
}
function IDe(t) {
if (!t)
return !1;
if (typeof t == "string")
return Cm(t, 1) < OA;
if (t.colorStops) {
for (var e = t.colorStops, n = 0, r = e.length, i = 0; i < r; i++)
n += Cm(e[i].color, 1);
return n /= r, n < OA;
}
return !1;
}
var DDe = function() {
function t(e, n, r) {
var i = this;
this._sleepAfterStill = 10, this._stillFrameAccum = 0, this._needsRefresh = !0, this._needsRefreshHover = !0, this._darkMode = !1, r = r || {}, this.dom = n, this.id = e;
var a = new QIe(), o = r.renderer || "canvas";
if (Uv[o] || (o = st(Uv)[0]), process.env.NODE_ENV !== "production" && !Uv[o])
throw new Error("Renderer '" + o + "' is not imported. Please import it first.");
r.useDirtyRect = r.useDirtyRect == null ? !1 : r.useDirtyRect;
var s = new Uv[o](n, a, r, e), l = r.ssr || s.ssrOnly;
this.storage = a, this.painter = s;
var u = !vt.node && !vt.worker && !l ? new SDe(s.getViewportRoot(), s.root) : null, c = r.useCoarsePointer, f = c == null || c === "auto" ? vt.touchEventsSupported : !!c, d = 44, h;
f && (h = We(r.pointerSize, d)), this.handler = new kq(a, s, u, s.root, h), this.animation = new vDe({
stage: {
update: l ? null : function() {
return i._flush(!0);
}
}
}), l || this.animation.start();
}
return t.prototype.add = function(e) {
this._disposed || !e || (this.storage.addRoot(e), e.addSelfToZr(this), this.refresh());
}, t.prototype.remove = function(e) {
this._disposed || !e || (this.storage.delRoot(e), e.removeSelfFromZr(this), this.refresh());
}, t.prototype.configLayer = function(e, n) {
this._disposed || (this.painter.configLayer && this.painter.configLayer(e, n), this.refresh());
}, t.prototype.setBackgroundColor = function(e) {
this._disposed || (this.painter.setBackgroundColor && this.painter.setBackgroundColor(e), this.refresh(), this._backgroundColor = e, this._darkMode = IDe(e));
}, t.prototype.getBackgroundColor = function() {
return this._backgroundColor;
}, t.prototype.setDarkMode = function(e) {
this._darkMode = e;
}, t.prototype.isDarkMode = function() {
return this._darkMode;
}, t.prototype.refreshImmediately = function(e) {
this._disposed || (e || this.animation.update(!0), this._needsRefresh = !1, this.painter.refresh(), this._needsRefresh = !1);
}, t.prototype.refresh = function() {
this._disposed || (this._needsRefresh = !0, this.animation.start());
}, t.prototype.flush = function() {
this._disposed || this._flush(!1);
}, t.prototype._flush = function(e) {
var n, r = Vd();
this._needsRefresh && (n = !0, this.refreshImmediately(e)), this._needsRefreshHover && (n = !0, this.refreshHoverImmediately());
var i = Vd();
n ? (this._stillFrameAccum = 0, this.trigger("rendered", {
elapsedTime: i - r
})) : this._sleepAfterStill > 0 && (this._stillFrameAccum++, this._stillFrameAccum > this._sleepAfterStill && this.animation.stop());
}, t.prototype.setSleepAfterStill = function(e) {
this._sleepAfterStill = e;
}, t.prototype.wakeUp = function() {
this._disposed || (this.animation.start(), this._stillFrameAccum = 0);
}, t.prototype.refreshHover = function() {
this._needsRefreshHover = !0;
}, t.prototype.refreshHoverImmediately = function() {
this._disposed || (this._needsRefreshHover = !1, this.painter.refreshHover && this.painter.getType() === "canvas" && this.painter.refreshHover());
}, t.prototype.resize = function(e) {
this._disposed || (e = e || {}, this.painter.resize(e.width, e.height), this.handler.resize());
}, t.prototype.clearAnimation = function() {
this._disposed || this.animation.clear();
}, t.prototype.getWidth = function() {
if (!this._disposed)
return this.painter.getWidth();
}, t.prototype.getHeight = function() {
if (!this._disposed)
return this.painter.getHeight();
}, t.prototype.setCursorStyle = function(e) {
this._disposed || this.handler.setCursorStyle(e);
}, t.prototype.findHover = function(e, n) {
if (!this._disposed)
return this.handler.findHover(e, n);
}, t.prototype.on = function(e, n, r) {
return this._disposed || this.handler.on(e, n, r), this;
}, t.prototype.off = function(e, n) {
this._disposed || this.handler.off(e, n);
}, t.prototype.trigger = function(e, n) {
this._disposed || this.handler.trigger(e, n);
}, t.prototype.clear = function() {
if (!this._disposed) {
for (var e = this.storage.getRoots(), n = 0; n < e.length; n++)
e[n] instanceof Ve && e[n].removeSelfFromZr(this);
this.storage.delAllRoots(), this.painter.clear();
}
}, t.prototype.dispose = function() {
this._disposed || (this.animation.stop(), this.clear(), this.storage.dispose(), this.painter.dispose(), this.handler.dispose(), this.animation = this.storage = this.painter = this.handler = null, this._disposed = !0, MDe(this.id));
}, t;
}();
function wA(t, e) {
var n = new DDe(mR(), t, e);
return Rc[n.id] = n, n;
}
function RDe(t) {
t.dispose();
}
function kDe() {
for (var t in Rc)
Rc.hasOwnProperty(t) && Rc[t].dispose();
Rc = {};
}
function LDe(t) {
return Rc[t];
}
function iK(t, e) {
Uv[t] = e;
}
var CA;
function aK(t) {
if (typeof CA == "function")
return CA(t);
}
function oK(t) {
CA = t;
}
var NDe = "5.6.0";
const BDe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
dispose: RDe,
disposeAll: kDe,
getElementSSRData: aK,
getInstance: LDe,
init: wA,
registerPainter: iK,
registerSSRDataGetter: oK,
version: NDe
}, Symbol.toStringTag, { value: "Module" }));
var iB = 1e-4, sK = 20;
function zDe(t) {
return t.replace(/^\s+|\s+$/g, "");
}
function Lt(t, e, n, r) {
var i = e[0], a = e[1], o = n[0], s = n[1], l = a - i, u = s - o;
if (l === 0)
return u === 0 ? o : (o + s) / 2;
if (r)
if (l > 0) {
if (t <= i)
return o;
if (t >= a)
return s;
} else {
if (t >= i)
return o;
if (t <= a)
return s;
}
else {
if (t === i)
return o;
if (t === a)
return s;
}
return (t - i) / l * u + o;
}
function _e(t, e) {
switch (t) {
case "center":
case "middle":
t = "50%";
break;
case "left":
case "top":
t = "0%";
break;
case "right":
case "bottom":
t = "100%";
break;
}
return Oe(t) ? zDe(t).match(/%$/) ? parseFloat(t) / 100 * e : parseFloat(t) : t == null ? NaN : +t;
}
function mn(t, e, n) {
return e == null && (e = 10), e = Math.min(Math.max(0, e), sK), t = (+t).toFixed(e), n ? t : +t;
}
function Wi(t) {
return t.sort(function(e, n) {
return e - n;
}), t;
}
function Ya(t) {
if (t = +t, isNaN(t))
return 0;
if (t > 1e-14) {
for (var e = 1, n = 0; n < 15; n++, e *= 10)
if (Math.round(t * e) / e === t)
return n;
}
return oO(t);
}
function oO(t) {
var e = t.toString().toLowerCase(), n = e.indexOf("e"), r = n > 0 ? +e.slice(n + 1) : 0, i = n > 0 ? n : e.length, a = e.indexOf("."), o = a < 0 ? 0 : i - 1 - a;
return Math.max(0, o - r);
}
function PR(t, e) {
var n = Math.log, r = Math.LN10, i = Math.floor(n(t[1] - t[0]) / r), a = Math.round(n(Math.abs(e[1] - e[0])) / r), o = Math.min(Math.max(-i + a, 0), 20);
return isFinite(o) ? o : 20;
}
function VDe(t, e, n) {
if (!t[e])
return 0;
var r = lK(t, n);
return r[e] || 0;
}
function lK(t, e) {
var n = Ma(t, function(h, p) {
return h + (isNaN(p) ? 0 : p);
}, 0);
if (n === 0)
return [];
for (var r = Math.pow(10, e), i = ce(t, function(h) {
return (isNaN(h) ? 0 : h) / n * r * 100;
}), a = r * 100, o = ce(i, function(h) {
return Math.floor(h);
}), s = Ma(o, function(h, p) {
return h + p;
}, 0), l = ce(i, function(h, p) {
return h - o[p];
}); s < a; ) {
for (var u = Number.NEGATIVE_INFINITY, c = null, f = 0, d = l.length; f < d; ++f)
l[f] > u && (u = l[f], c = f);
++o[c], l[c] = 0, ++s;
}
return ce(o, function(h) {
return h / r;
});
}
function FDe(t, e) {
var n = Math.max(Ya(t), Ya(e)), r = t + e;
return n > sK ? r : mn(r, n);
}
var TA = 9007199254740991;
function $R(t) {
var e = Math.PI * 2;
return (t % e + e) % e;
}
function Fh(t) {
return t > -iB && t < iB;
}
var WDe = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;
function Ki(t) {
if (t instanceof Date)
return t;
if (Oe(t)) {
var e = WDe.exec(t);
if (!e)
return /* @__PURE__ */ new Date(NaN);
if (e[8]) {
var n = +e[4] || 0;
return e[8].toUpperCase() !== "Z" && (n -= +e[8].slice(0, 3)), new Date(Date.UTC(+e[1], +(e[2] || 1) - 1, +e[3] || 1, n, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0));
} else
return new Date(+e[1], +(e[2] || 1) - 1, +e[3] || 1, +e[4] || 0, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0);
} else if (t == null)
return /* @__PURE__ */ new Date(NaN);
return new Date(Math.round(t));
}
function uK(t) {
return Math.pow(10, N0(t));
}
function N0(t) {
if (t === 0)
return 0;
var e = Math.floor(Math.log(t) / Math.LN10);
return t / Math.pow(10, e) >= 10 && e++, e;
}
function AR(t, e) {
var n = N0(t), r = Math.pow(10, n), i = t / r, a;
return e ? i < 1.5 ? a = 1 : i < 2.5 ? a = 2 : i < 4 ? a = 3 : i < 7 ? a = 5 : a = 10 : i < 1 ? a = 1 : i < 2 ? a = 2 : i < 3 ? a = 3 : i < 5 ? a = 5 : a = 10, t = a * r, n >= -20 ? +t.toFixed(n < 0 ? -n : 0) : t;
}
function V_(t, e) {
var n = (t.length - 1) * e + 1, r = Math.floor(n), i = +t[r - 1], a = n - r;
return a ? i + a * (t[r] - i) : i;
}
function PA(t) {
t.sort(function(l, u) {
return s(l, u, 0) ? -1 : 1;
});
for (var e = -1 / 0, n = 1, r = 0; r < t.length; ) {
for (var i = t[r].interval, a = t[r].close, o = 0; o < 2; o++)
i[o] <= e && (i[o] = e, a[o] = o ? 1 : 1 - n), e = i[o], n = a[o];
i[0] === i[1] && a[0] * a[1] !== 1 ? t.splice(r, 1) : r++;
}
return t;
function s(l, u, c) {
return l.interval[c] < u.interval[c] || l.interval[c] === u.interval[c] && (l.close[c] - u.close[c] === (c ? -1 : 1) || !c && s(l, u, 1));
}
}
function as(t) {
var e = parseFloat(t);
return e == t && (e !== 0 || !Oe(t) || t.indexOf("x") <= 0) ? e : NaN;
}
function Wx(t) {
return !isNaN(as(t));
}
function cK() {
return Math.round(Math.random() * 9);
}
function fK(t, e) {
return e === 0 ? t : fK(e, t % e);
}
function aB(t, e) {
return t == null ? e : e == null ? t : t * e / fK(t, e);
}
var QDe = "[ECharts] ", oB = {}, HDe = typeof console < "u" && console.warn && console.log;
function Qx(t, e, n) {
if (HDe) {
if (n) {
if (oB[e])
return;
oB[e] = !0;
}
console[t](QDe + e);
}
}
function GDe(t, e) {
Qx("log", t, e);
}
function dn(t, e) {
Qx("warn", t, e);
}
function Cr(t, e) {
Qx("error", t, e);
}
function Ia(t) {
process.env.NODE_ENV !== "production" && Qx("warn", "DEPRECATED: " + t, !0);
}
function Cn(t, e, n) {
process.env.NODE_ENV !== "production" && Ia((n ? "[" + n + "]" : "") + (t + " is deprecated, use " + e + " instead."));
}
function ni() {
for (var t = [], e = 0; e < arguments.length; e++)
t[e] = arguments[e];
var n = "";
if (process.env.NODE_ENV !== "production") {
var r = function(i) {
return i === void 0 ? "undefined" : i === 1 / 0 ? "Infinity" : i === -1 / 0 ? "-Infinity" : ou(i) ? "NaN" : i instanceof Date ? "Date(" + i.toISOString() + ")" : Me(i) ? "function () { ... }" : bR(i) ? i + "" : null;
};
n = ce(t, function(i) {
if (Oe(i))
return i;
var a = r(i);
if (a != null)
return a;
if (typeof JSON < "u" && JSON.stringify)
try {
return JSON.stringify(i, function(o, s) {
var l = r(s);
return l ?? s;
});
} catch {
return "?";
}
else
return "?";
}).join(" ");
}
return n;
}
function Et(t) {
throw new Error(t);
}
function sB(t, e, n) {
return (e - t) * n + t;
}
var dK = "series\0", hK = "\0_ec_\0";
function Qt(t) {
return t instanceof Array ? t : t == null ? [] : [t];
}
function mf(t, e, n) {
if (t) {
t[e] = t[e] || {}, t.emphasis = t.emphasis || {}, t.emphasis[e] = t.emphasis[e] || {};
for (var r = 0, i = n.length; r < i; r++) {
var a = n[r];
!t.emphasis[e].hasOwnProperty(a) && t[e].hasOwnProperty(a) && (t.emphasis[e][a] = t[e][a]);
}
}
}
var lB = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "rich", "tag", "color", "textBorderColor", "textBorderWidth", "width", "height", "lineHeight", "align", "verticalAlign", "baseline", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY", "backgroundColor", "borderColor", "borderWidth", "borderRadius", "padding"];
function gp(t) {
return Ie(t) && !ue(t) && !(t instanceof Date) ? t.value : t;
}
function jDe(t) {
return Ie(t) && !(t instanceof Array);
}
function pK(t, e, n) {
var r = n === "normalMerge", i = n === "replaceMerge", a = n === "replaceAll";
t = t || [], e = (e || []).slice();
var o = Pe();
k(e, function(l, u) {
if (!Ie(l)) {
e[u] = null;
return;
}
process.env.NODE_ENV !== "production" && (l.id != null && !cB(l.id) && uB(l.id), l.name != null && !cB(l.name) && uB(l.name));
});
var s = ZDe(t, o, n);
return (r || i) && UDe(s, t, o, e), r && XDe(s, e), r || i ? YDe(s, e, i) : a && qDe(s, e), KDe(s), s;
}
function ZDe(t, e, n) {
var r = [];
if (n === "replaceAll")
return r;
for (var i = 0; i < t.length; i++) {
var a = t[i];
a && a.id != null && e.set(a.id, i), r.push({
existing: n === "replaceMerge" || Wh(a) ? null : a,
newOption: null,
keyInfo: null,
brandNew: null
});
}
return r;
}
function UDe(t, e, n, r) {
k(r, function(i, a) {
if (!(!i || i.id == null)) {
var o = Ig(i.id), s = n.get(o);
if (s != null) {
var l = t[s];
ke(!l.newOption, 'Duplicated option on id "' + o + '".'), l.newOption = i, l.existing = e[s], r[a] = null;
}
}
});
}
function XDe(t, e) {
k(e, function(n, r) {
if (!(!n || n.name == null))
for (var i = 0; i < t.length; i++) {
var a = t[i].existing;
if (!t[i].newOption && a && (a.id == null || n.id == null) && !Wh(n) && !Wh(a) && vK("name", a, n)) {
t[i].newOption = n, e[r] = null;
return;
}
}
});
}
function YDe(t, e, n) {
k(e, function(r) {
if (r) {
for (
var i, a = 0;
// Be `!resultItem` only when `nextIdx >= result.length`.
(i = t[a]) && (i.newOption || Wh(i.existing) || // In mode "replaceMerge", here no not-mapped-non-internal-existing.
i.existing && r.id != null && !vK("id", r, i.existing));
)
a++;
i ? (i.newOption = r, i.brandNew = n) : t.push({
newOption: r,
brandNew: n,
existing: null,
keyInfo: null
}), a++;
}
});
}
function qDe(t, e) {
k(e, function(n) {
t.push({
newOption: n,
brandNew: !0,
existing: null,
keyInfo: null
});
});
}
function KDe(t) {
var e = Pe();
k(t, function(n) {
var r = n.existing;
r && e.set(r.id, n);
}), k(t, function(n) {
var r = n.newOption;
ke(!r || r.id == null || !e.get(r.id) || e.get(r.id) === n, "id duplicates: " + (r && r.id)), r && r.id != null && e.set(r.id, n), !n.keyInfo && (n.keyInfo = {});
}), k(t, function(n, r) {
var i = n.existing, a = n.newOption, o = n.keyInfo;
if (Ie(a)) {
if (o.name = a.name != null ? Ig(a.name) : i ? i.name : dK + r, i)
o.id = Ig(i.id);
else if (a.id != null)
o.id = Ig(a.id);
else {
var s = 0;
do
o.id = "\0" + o.name + "\0" + s++;
while (e.get(o.id));
}
e.set(o.id, n);
}
});
}
function vK(t, e, n) {
var r = Vn(e[t], null), i = Vn(n[t], null);
return r != null && i != null && r === i;
}
function Ig(t) {
if (process.env.NODE_ENV !== "production" && t == null)
throw new Error();
return Vn(t, "");
}
function Vn(t, e) {
return t == null ? e : Oe(t) ? t : St(t) || ym(t) ? t + "" : e;
}
function uB(t) {
process.env.NODE_ENV !== "production" && dn("`" + t + "` is invalid id or name. Must be a string or number.");
}
function cB(t) {
return ym(t) || Wx(t);
}
function ER(t) {
var e = t.name;
return !!(e && e.indexOf(dK));
}
function Wh(t) {
return t && t.id != null && Ig(t.id).indexOf(hK) === 0;
}
function JDe(t) {
return hK + t;
}
function eRe(t, e, n) {
k(t, function(r) {
var i = r.newOption;
Ie(i) && (r.keyInfo.mainType = e, r.keyInfo.subType = tRe(e, i, r.existing, n));
});
}
function tRe(t, e, n, r) {
var i = e.type ? e.type : n ? n.subType : r.determineSubType(t, e);
return i;
}
function nRe(t, e) {
var n = {}, r = {};
return i(t || [], n), i(e || [], r, n), [a(n), a(r)];
function i(o, s, l) {
for (var u = 0, c = o.length; u < c; u++) {
var f = Vn(o[u].seriesId, null);
if (f == null)
return;
for (var d = Qt(o[u].dataIndex), h = l && l[f], p = 0, v = d.length; p < v; p++) {
var g = d[p];
h && h[g] ? h[g] = null : (s[f] || (s[f] = {}))[g] = 1;
}
}
}
function a(o, s) {
var l = [];
for (var u in o)
if (o.hasOwnProperty(u) && o[u] != null)
if (s)
l.push(+u);
else {
var c = a(o[u], !0);
c.length && l.push({
seriesId: u,
dataIndex: c
});
}
return l;
}
}
function yf(t, e) {
if (e.dataIndexInside != null)
return e.dataIndexInside;
if (e.dataIndex != null)
return ue(e.dataIndex) ? ce(e.dataIndex, function(n) {
return t.indexOfRawIndex(n);
}) : t.indexOfRawIndex(e.dataIndex);
if (e.name != null)
return ue(e.name) ? ce(e.name, function(n) {
return t.indexOfName(n);
}) : t.indexOfName(e.name);
}
function bt() {
var t = "__ec_inner_" + rRe++;
return function(e) {
return e[t] || (e[t] = {});
};
}
var rRe = cK();
function Dg(t, e, n) {
var r = MR(e, n), i = r.mainTypeSpecified, a = r.queryOptionMap, o = r.others, s = o, l = n ? n.defaultMainType : null;
return !i && l && a.set(l, {}), a.each(function(u, c) {
var f = B0(t, c, u, {
useDefault: l === c,
enableAll: n && n.enableAll != null ? n.enableAll : !0,
enableNone: n && n.enableNone != null ? n.enableNone : !0
});
s[c + "Models"] = f.models, s[c + "Model"] = f.models[0];
}), s;
}
function MR(t, e) {
var n;
if (Oe(t)) {
var r = {};
r[t + "Index"] = 0, n = r;
} else
n = t;
var i = Pe(), a = {}, o = !1;
return k(n, function(s, l) {
if (l === "dataIndex" || l === "dataIndexInside") {
a[l] = s;
return;
}
var u = l.match(/^(\w+)(Index|Id|Name)$/) || [], c = u[1], f = (u[2] || "").toLowerCase();
if (!(!c || !f || e && e.includeMainTypes && et(e.includeMainTypes, c) < 0)) {
o = o || !!c;
var d = i.get(c) || i.set(c, {});
d[f] = s;
}
}), {
mainTypeSpecified: o,
queryOptionMap: i,
others: a
};
}
var Dn = {
useDefault: !0,
enableAll: !1,
enableNone: !1
}, iRe = {
useDefault: !1,
enableAll: !0,
enableNone: !0
};
function B0(t, e, n, r) {
r = r || Dn;
var i = n.index, a = n.id, o = n.name, s = {
models: null,
specified: i != null || a != null || o != null
};
if (!s.specified) {
var l = void 0;
return s.models = r.useDefault && (l = t.getComponent(e)) ? [l] : [], s;
}
return i === "none" || i === !1 ? (ke(r.enableNone, '`"none"` or `false` is not a valid value on index option.'), s.models = [], s) : (i === "all" && (ke(r.enableAll, '`"all"` is not a valid value on index option.'), i = a = o = null), s.models = t.queryComponents({
mainType: e,
index: i,
id: a,
name: o
}), s);
}
function gK(t, e, n) {
t.setAttribute ? t.setAttribute(e, n) : t[e] = n;
}
function aRe(t, e) {
return t.getAttribute ? t.getAttribute(e) : t[e];
}
function oRe(t) {
return t === "auto" ? vt.domSupported ? "html" : "richText" : t || "html";
}
function $A(t, e) {
var n = Pe(), r = [];
return k(t, function(i) {
var a = e(i);
(n.get(a) || (r.push(a), n.set(a, []))).push(i);
}), {
keys: r,
buckets: n
};
}
function mK(t, e, n, r, i) {
var a = e == null || e === "auto";
if (r == null)
return r;
if (St(r)) {
var o = sB(n || 0, r, i);
return mn(o, a ? Math.max(Ya(n || 0), Ya(r)) : e);
} else {
if (Oe(r))
return i < 1 ? n : r;
for (var s = [], l = n, u = r, c = Math.max(l ? l.length : 0, u.length), f = 0; f < c; ++f) {
var d = t.getDimensionInfo(f);
if (d && d.type === "ordinal")
s[f] = (i < 1 && l ? l : u)[f];
else {
var h = l && l[f] ? l[f] : 0, p = u[f], o = sB(h, p, i);
s[f] = mn(o, a ? Math.max(Ya(h), Ya(p)) : e);
}
}
return s;
}
}
var sRe = ".", Gu = "___EC__COMPONENT__CONTAINER___", yK = "___EC__EXTENDED_CLASS___";
function Fo(t) {
var e = {
main: "",
sub: ""
};
if (t) {
var n = t.split(sRe);
e.main = n[0] || "", e.sub = n[1] || "";
}
return e;
}
function lRe(t) {
ke(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t), 'componentType "' + t + '" illegal');
}
function uRe(t) {
return !!(t && t[yK]);
}
function IR(t, e) {
t.$constructor = t, t.extend = function(n) {
process.env.NODE_ENV !== "production" && k(e, function(a) {
n[a] || console.warn("Method `" + a + "` should be implemented" + (n.type ? " in " + n.type : "") + ".");
});
var r = this, i;
return cRe(r) ? i = /** @class */
function(a) {
q(o, a);
function o() {
return a.apply(this, arguments) || this;
}
return o;
}(r) : (i = function() {
(n.$constructor || r).apply(this, arguments);
}, yR(i, this)), le(i.prototype, n), i[yK] = !0, i.extend = this.extend, i.superCall = hRe, i.superApply = pRe, i.superClass = r, i;
};
}
function cRe(t) {
return Me(t) && /^class\s/.test(Function.prototype.toString.call(t));
}
function bK(t, e) {
t.extend = e.extend;
}
var fRe = Math.round(Math.random() * 10);
function dRe(t) {
var e = ["__\0is_clz", fRe++].join("_");
t.prototype[e] = !0, process.env.NODE_ENV !== "production" && ke(!t.isInstance, 'The method "is" can not be defined.'), t.isInstance = function(n) {
return !!(n && n[e]);
};
}
function hRe(t, e) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
return this.superClass.prototype[e].apply(t, n);
}
function pRe(t, e, n) {
return this.superClass.prototype[e].apply(t, n);
}
function Hx(t) {
var e = {};
t.registerClass = function(r) {
var i = r.type || r.prototype.type;
if (i) {
lRe(i), r.prototype.type = i;
var a = Fo(i);
if (!a.sub)
process.env.NODE_ENV !== "production" && e[a.main] && console.warn(a.main + " exists."), e[a.main] = r;
else if (a.sub !== Gu) {
var o = n(a);
o[a.sub] = r;
}
}
return r;
}, t.getClass = function(r, i, a) {
var o = e[r];
if (o && o[Gu] && (o = i ? o[i] : null), a && !o)
throw new Error(i ? "Component " + r + "." + (i || "") + " is used but not imported." : r + ".type should be specified.");
return o;
}, t.getClassesByMainType = function(r) {
var i = Fo(r), a = [], o = e[i.main];
return o && o[Gu] ? k(o, function(s, l) {
l !== Gu && a.push(s);
}) : a.push(o), a;
}, t.hasClass = function(r) {
var i = Fo(r);
return !!e[i.main];
}, t.getAllClassMainTypes = function() {
var r = [];
return k(e, function(i, a) {
r.push(a);
}), r;
}, t.hasSubTypes = function(r) {
var i = Fo(r), a = e[i.main];
return a && a[Gu];
};
function n(r) {
var i = e[r.main];
return (!i || !i[Gu]) && (i = e[r.main] = {}, i[Gu] = !0), i;
}
}
function bf(t, e) {
for (var n = 0; n < t.length; n++)
t[n][1] || (t[n][1] = t[n][0]);
return e = e || !1, function(r, i, a) {
for (var o = {}, s = 0; s < t.length; s++) {
var l = t[s][1];
if (!(i && et(i, l) >= 0 || a && et(a, l) < 0)) {
var u = r.getShallow(l, e);
u != null && (o[t[s][0]] = u);
}
}
return o;
};
}
var vRe = [
["fill", "color"],
["shadowBlur"],
["shadowOffsetX"],
["shadowOffsetY"],
["opacity"],
["shadowColor"]
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
], gRe = bf(vRe), mRe = (
/** @class */
function() {
function t() {
}
return t.prototype.getAreaStyle = function(e, n) {
return gRe(this, e, n);
}, t;
}()
), AA = new k0(50);
function yRe(t) {
if (typeof t == "string") {
var e = AA.get(t);
return e && e.image;
} else
return t;
}
function DR(t, e, n, r, i) {
if (t)
if (typeof t == "string") {
if (e && e.__zrImageSrc === t || !n)
return e;
var a = AA.get(t), o = { hostEl: n, cb: r, cbPayload: i };
return a ? (e = a.image, !Gx(e) && a.pending.push(o)) : (e = oo.loadImage(t, fB, fB), e.__zrImageSrc = t, AA.put(t, e.__cachedImgObj = {
image: e,
pending: [o]
})), e;
} else
return t;
else return e;
}
function fB() {
var t = this.__cachedImgObj;
this.onload = this.onerror = this.__cachedImgObj = null;
for (var e = 0; e < t.pending.length; e++) {
var n = t.pending[e], r = n.cb;
r && r(this, n.cbPayload), n.hostEl.dirty();
}
t.pending.length = 0;
}
function Gx(t) {
return t && t.width && t.height;
}
var lT = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
function _K(t, e, n, r, i) {
if (!e)
return "";
var a = (t + "").split(`
`);
i = OK(e, n, r, i);
for (var o = 0, s = a.length; o < s; o++)
a[o] = SK(a[o], i);
return a.join(`
`);
}
function OK(t, e, n, r) {
r = r || {};
var i = le({}, r);
i.font = e, n = We(n, "..."), i.maxIterations = We(r.maxIterations, 2);
var a = i.minChar = We(r.minChar, 0);
i.cnCharWidth = Xi("国", e);
var o = i.ascCharWidth = Xi("a", e);
i.placeholder = We(r.placeholder, "");
for (var s = t = Math.max(0, t - 1), l = 0; l < a && s >= o; l++)
s -= o;
var u = Xi(n, e);
return u > s && (n = "", u = 0), s = t - u, i.ellipsis = n, i.ellipsisWidth = u, i.contentWidth = s, i.containerWidth = t, i;
}
function SK(t, e) {
var n = e.containerWidth, r = e.font, i = e.contentWidth;
if (!n)
return "";
var a = Xi(t, r);
if (a <= n)
return t;
for (var o = 0; ; o++) {
if (a <= i || o >= e.maxIterations) {
t += e.ellipsis;
break;
}
var s = o === 0 ? bRe(t, i, e.ascCharWidth, e.cnCharWidth) : a > 0 ? Math.floor(t.length * i / a) : 0;
t = t.substr(0, s), a = Xi(t, r);
}
return t === "" && (t = e.placeholder), t;
}
function bRe(t, e, n, r) {
for (var i = 0, a = 0, o = t.length; a < o && i < e; a++) {
var s = t.charCodeAt(a);
i += 0 <= s && s <= 127 ? n : r;
}
return a;
}
function _Re(t, e) {
t != null && (t += "");
var n = e.overflow, r = e.padding, i = e.font, a = n === "truncate", o = Vx(i), s = We(e.lineHeight, o), l = !!e.backgroundColor, u = e.lineOverflow === "truncate", c = e.width, f;
c != null && (n === "break" || n === "breakAll") ? f = t ? xK(t, e.font, c, n === "breakAll", 0).lines : [] : f = t ? t.split(`
`) : [];
var d = f.length * s, h = We(e.height, d);
if (d > h && u) {
var p = Math.floor(h / s);
f = f.slice(0, p);
}
if (t && a && c != null)
for (var v = OK(c, i, e.ellipsis, {
minChar: e.truncateMinChar,
placeholder: e.placeholder
}), g = 0; g < f.length; g++)
f[g] = SK(f[g], v);
for (var m = h, y = 0, g = 0; g < f.length; g++)
y = Math.max(Xi(f[g], i), y);
c == null && (c = y);
var b = y;
return r && (m += r[0] + r[2], b += r[1] + r[3], c += r[1] + r[3]), l && (b = c), {
lines: f,
height: h,
outerWidth: b,
outerHeight: m,
lineHeight: s,
calculatedLineHeight: o,
contentWidth: y,
contentHeight: d,
width: c
};
}
var ORe = /* @__PURE__ */ function() {
function t() {
}
return t;
}(), dB = /* @__PURE__ */ function() {
function t(e) {
this.tokens = [], e && (this.tokens = e);
}
return t;
}(), SRe = /* @__PURE__ */ function() {
function t() {
this.width = 0, this.height = 0, this.contentWidth = 0, this.contentHeight = 0, this.outerWidth = 0, this.outerHeight = 0, this.lines = [];
}
return t;
}();
function xRe(t, e) {
var n = new SRe();
if (t != null && (t += ""), !t)
return n;
for (var r = e.width, i = e.height, a = e.overflow, o = (a === "break" || a === "breakAll") && r != null ? { width: r, accumWidth: 0, breakAll: a === "breakAll" } : null, s = lT.lastIndex = 0, l; (l = lT.exec(t)) != null; ) {
var u = l.index;
u > s && uT(n, t.substring(s, u), e, o), uT(n, l[2], e, o, l[1]), s = lT.lastIndex;
}
s < t.length && uT(n, t.substring(s, t.length), e, o);
var c = [], f = 0, d = 0, h = e.padding, p = a === "truncate", v = e.lineOverflow === "truncate";
function g(V, B, W) {
V.width = B, V.lineHeight = W, f += W, d = Math.max(d, B);
}
e: for (var m = 0; m < n.lines.length; m++) {
for (var y = n.lines[m], b = 0, _ = 0, O = 0; O < y.tokens.length; O++) {
var S = y.tokens[O], x = S.styleName && e.rich[S.styleName] || {}, C = S.textPadding = x.padding, T = C ? C[1] + C[3] : 0, w = S.font = x.font || e.font;
S.contentHeight = Vx(w);
var P = We(x.height, S.contentHeight);
if (S.innerHeight = P, C && (P += C[0] + C[2]), S.height = P, S.lineHeight = Ui(x.lineHeight, e.lineHeight, P), S.align = x && x.align || e.align, S.verticalAlign = x && x.verticalAlign || "middle", v && i != null && f + S.lineHeight > i) {
O > 0 ? (y.tokens = y.tokens.slice(0, O), g(y, _, b), n.lines = n.lines.slice(0, m + 1)) : n.lines = n.lines.slice(0, m);
break e;
}
var $ = x.width, A = $ == null || $ === "auto";
if (typeof $ == "string" && $.charAt($.length - 1) === "%")
S.percentWidth = $, c.push(S), S.contentWidth = Xi(S.text, w);
else {
if (A) {
var D = x.backgroundColor, E = D && D.image;
E && (E = yRe(E), Gx(E) && (S.width = Math.max(S.width, E.width * P / E.height)));
}
var R = p && r != null ? r - _ : null;
R != null && R < S.width ? !A || R < T ? (S.text = "", S.width = S.contentWidth = 0) : (S.text = _K(S.text, R - T, w, e.ellipsis, { minChar: e.truncateMinChar }), S.width = S.contentWidth = Xi(S.text, w)) : S.contentWidth = Xi(S.text, w);
}
S.width += T, _ += S.width, x && (b = Math.max(b, S.lineHeight));
}
g(y, _, b);
}
n.outerWidth = n.width = We(r, d), n.outerHeight = n.height = We(i, f), n.contentHeight = f, n.contentWidth = d, h && (n.outerWidth += h[1] + h[3], n.outerHeight += h[0] + h[2]);
for (var m = 0; m < c.length; m++) {
var S = c[m], N = S.percentWidth;
S.width = parseInt(N, 10) / 100 * n.width;
}
return n;
}
function uT(t, e, n, r, i) {
var a = e === "", o = i && n.rich[i] || {}, s = t.lines, l = o.font || n.font, u = !1, c, f;
if (r) {
var d = o.padding, h = d ? d[1] + d[3] : 0;
if (o.width != null && o.width !== "auto") {
var p = lo(o.width, r.width) + h;
s.length > 0 && p + r.accumWidth > r.width && (c = e.split(`
`), u = !0), r.accumWidth = p;
} else {
var v = xK(e, l, r.width, r.breakAll, r.accumWidth);
r.accumWidth = v.accumWidth + h, f = v.linesWidths, c = v.lines;
}
} else
c = e.split(`
`);
for (var g = 0; g < c.length; g++) {
var m = c[g], y = new ORe();
if (y.styleName = i, y.text = m, y.isLineHolder = !m && !a, typeof o.width == "number" ? y.width = o.width : y.width = f ? f[g] : Xi(m, l), !g && !u) {
var b = (s[s.length - 1] || (s[0] = new dB())).tokens, _ = b.length;
_ === 1 && b[0].isLineHolder ? b[0] = y : (m || !_ || a) && b.push(y);
} else
s.push(new dB([y]));
}
}
function wRe(t) {
var e = t.charCodeAt(0);
return e >= 32 && e <= 591 || e >= 880 && e <= 4351 || e >= 4608 && e <= 5119 || e >= 7680 && e <= 8303;
}
var CRe = Ma(",&?/;] ".split(""), function(t, e) {
return t[e] = !0, t;
}, {});
function TRe(t) {
return wRe(t) ? !!CRe[t] : !0;
}
function xK(t, e, n, r, i) {
for (var a = [], o = [], s = "", l = "", u = 0, c = 0, f = 0; f < t.length; f++) {
var d = t.charAt(f);
if (d === `
`) {
l && (s += l, c += u), a.push(s), o.push(c), s = "", l = "", u = 0, c = 0;
continue;
}
var h = Xi(d, e), p = r ? !1 : !TRe(d);
if (a.length ? c + h > n : i + c + h > n) {
c ? (s || l) && (p ? (s || (s = l, l = "", u = 0, c = u), a.push(s), o.push(c - u), l += d, u += h, s = "", c = u) : (l && (s += l, l = "", u = 0), a.push(s), o.push(c), s = d, c = h)) : p ? (a.push(l), o.push(u), l = d, u = h) : (a.push(d), o.push(h));
continue;
}
c += h, p ? (l += d, u += h) : (l && (s += l, l = "", u = 0), s += d);
}
return !a.length && !s && (s = t, l = "", u = 0), l && (s += l), s && (a.push(s), o.push(c)), a.length === 1 && (c += i), {
accumWidth: c,
lines: a,
linesWidths: o
};
}
var EA = "__zr_style_" + Math.round(Math.random() * 10), Jc = {
shadowBlur: 0,
shadowOffsetX: 0,
shadowOffsetY: 0,
shadowColor: "#000",
opacity: 1,
blend: "source-over"
}, jx = {
style: {
shadowBlur: !0,
shadowOffsetX: !0,
shadowOffsetY: !0,
shadowColor: !0,
opacity: !0
}
};
Jc[EA] = !0;
var hB = ["z", "z2", "invisible"], PRe = ["invisible"], $Re = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype._init = function(n) {
for (var r = st(n), i = 0; i < r.length; i++) {
var a = r[i];
a === "style" ? this.useStyle(n[a]) : t.prototype.attrKV.call(this, a, n[a]);
}
this.style || this.useStyle({});
}, e.prototype.beforeBrush = function() {
}, e.prototype.afterBrush = function() {
}, e.prototype.innerBeforeBrush = function() {
}, e.prototype.innerAfterBrush = function() {
}, e.prototype.shouldBePainted = function(n, r, i, a) {
var o = this.transform;
if (this.ignore || this.invisible || this.style.opacity === 0 || this.culling && ARe(this, n, r) || o && !o[0] && !o[3])
return !1;
if (i && this.__clipPaths) {
for (var s = 0; s < this.__clipPaths.length; ++s)
if (this.__clipPaths[s].isZeroArea())
return !1;
}
if (a && this.parent)
for (var l = this.parent; l; ) {
if (l.ignore)
return !1;
l = l.parent;
}
return !0;
}, e.prototype.contain = function(n, r) {
return this.rectContain(n, r);
}, e.prototype.traverse = function(n, r) {
n.call(r, this);
}, e.prototype.rectContain = function(n, r) {
var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
return a.contain(i[0], i[1]);
}, e.prototype.getPaintRect = function() {
var n = this._paintRect;
if (!this._paintRect || this.__dirty) {
var r = this.transform, i = this.getBoundingRect(), a = this.style, o = a.shadowBlur || 0, s = a.shadowOffsetX || 0, l = a.shadowOffsetY || 0;
n = this._paintRect || (this._paintRect = new Je(0, 0, 0, 0)), r ? Je.applyTransform(n, i, r) : n.copy(i), (o || s || l) && (n.width += o * 2 + Math.abs(s), n.height += o * 2 + Math.abs(l), n.x = Math.min(n.x, n.x + s - o), n.y = Math.min(n.y, n.y + l - o));
var u = this.dirtyRectTolerance;
n.isZero() || (n.x = Math.floor(n.x - u), n.y = Math.floor(n.y - u), n.width = Math.ceil(n.width + 1 + u * 2), n.height = Math.ceil(n.height + 1 + u * 2));
}
return n;
}, e.prototype.setPrevPaintRect = function(n) {
n ? (this._prevPaintRect = this._prevPaintRect || new Je(0, 0, 0, 0), this._prevPaintRect.copy(n)) : this._prevPaintRect = null;
}, e.prototype.getPrevPaintRect = function() {
return this._prevPaintRect;
}, e.prototype.animateStyle = function(n) {
return this.animate("style", n);
}, e.prototype.updateDuringAnimation = function(n) {
n === "style" ? this.dirtyStyle() : this.markRedraw();
}, e.prototype.attrKV = function(n, r) {
n !== "style" ? t.prototype.attrKV.call(this, n, r) : this.style ? this.setStyle(r) : this.useStyle(r);
}, e.prototype.setStyle = function(n, r) {
return typeof n == "string" ? this.style[n] = r : le(this.style, n), this.dirtyStyle(), this;
}, e.prototype.dirtyStyle = function(n) {
n || this.markRedraw(), this.__dirty |= Gv, this._rect && (this._rect = null);
}, e.prototype.dirty = function() {
this.dirtyStyle();
}, e.prototype.styleChanged = function() {
return !!(this.__dirty & Gv);
}, e.prototype.styleUpdated = function() {
this.__dirty &= ~Gv;
}, e.prototype.createStyle = function(n) {
return D0(Jc, n);
}, e.prototype.useStyle = function(n) {
n[EA] || (n = this.createStyle(n)), this.__inHover ? this.__hoverStyle = n : this.style = n, this.dirtyStyle();
}, e.prototype.isStyleObject = function(n) {
return n[EA];
}, e.prototype._innerSaveToNormal = function(n) {
t.prototype._innerSaveToNormal.call(this, n);
var r = this._normalState;
n.style && !r.style && (r.style = this._mergeStyle(this.createStyle(), this.style)), this._savePrimaryToNormal(n, r, hB);
}, e.prototype._applyStateObj = function(n, r, i, a, o, s) {
t.prototype._applyStateObj.call(this, n, r, i, a, o, s);
var l = !(r && a), u;
if (r && r.style ? o ? a ? u = r.style : (u = this._mergeStyle(this.createStyle(), i.style), this._mergeStyle(u, r.style)) : (u = this._mergeStyle(this.createStyle(), a ? this.style : i.style), this._mergeStyle(u, r.style)) : l && (u = i.style), u)
if (o) {
var c = this.style;
if (this.style = this.createStyle(l ? {} : c), l)
for (var f = st(c), d = 0; d < f.length; d++) {
var h = f[d];
h in u && (u[h] = u[h], this.style[h] = c[h]);
}
for (var p = st(u), d = 0; d < p.length; d++) {
var h = p[d];
this.style[h] = this.style[h];
}
this._transitionState(n, {
style: u
}, s, this.getAnimationStyleProps());
} else
this.useStyle(u);
for (var v = this.__inHover ? PRe : hB, d = 0; d < v.length; d++) {
var h = v[d];
r && r[h] != null ? this[h] = r[h] : l && i[h] != null && (this[h] = i[h]);
}
}, e.prototype._mergeStates = function(n) {
for (var r = t.prototype._mergeStates.call(this, n), i, a = 0; a < n.length; a++) {
var o = n[a];
o.style && (i = i || {}, this._mergeStyle(i, o.style));
}
return i && (r.style = i), r;
}, e.prototype._mergeStyle = function(n, r) {
return le(n, r), n;
}, e.prototype.getAnimationStyleProps = function() {
return jx;
}, e.initDefaultProps = function() {
var n = e.prototype;
n.type = "displayable", n.invisible = !1, n.z = 0, n.z2 = 0, n.zlevel = 0, n.culling = !1, n.cursor = "pointer", n.rectHover = !1, n.incremental = !1, n._rect = null, n.dirtyRectTolerance = 0, n.__dirty = Ni | Gv;
}(), e;
}(Fx), cT = new Je(0, 0, 0, 0), fT = new Je(0, 0, 0, 0);
function ARe(t, e, n) {
return cT.copy(t.getBoundingRect()), t.transform && cT.applyTransform(t.transform), fT.width = e, fT.height = n, !cT.intersect(fT);
}
const Da = $Re;
var pi = Math.min, vi = Math.max, dT = Math.sin, hT = Math.cos, ju = Math.PI * 2, Yy = wu(), qy = wu(), Ky = wu();
function Zx(t, e, n) {
if (t.length !== 0) {
for (var r = t[0], i = r[0], a = r[0], o = r[1], s = r[1], l = 1; l < t.length; l++)
r = t[l], i = pi(i, r[0]), a = vi(a, r[0]), o = pi(o, r[1]), s = vi(s, r[1]);
e[0] = i, e[1] = o, n[0] = a, n[1] = s;
}
}
function pB(t, e, n, r, i, a) {
i[0] = pi(t, n), i[1] = pi(e, r), a[0] = vi(t, n), a[1] = vi(e, r);
}
var vB = [], gB = [];
function ERe(t, e, n, r, i, a, o, s, l, u) {
var c = Vq, f = Gn, d = c(t, n, i, o, vB);
l[0] = 1 / 0, l[1] = 1 / 0, u[0] = -1 / 0, u[1] = -1 / 0;
for (var h = 0; h < d; h++) {
var p = f(t, n, i, o, vB[h]);
l[0] = pi(p, l[0]), u[0] = vi(p, u[0]);
}
d = c(e, r, a, s, gB);
for (var h = 0; h < d; h++) {
var v = f(e, r, a, s, gB[h]);
l[1] = pi(v, l[1]), u[1] = vi(v, u[1]);
}
l[0] = pi(t, l[0]), u[0] = vi(t, u[0]), l[0] = pi(o, l[0]), u[0] = vi(o, u[0]), l[1] = pi(e, l[1]), u[1] = vi(e, u[1]), l[1] = pi(s, l[1]), u[1] = vi(s, u[1]);
}
function MRe(t, e, n, r, i, a, o, s) {
var l = Wq, u = ir, c = vi(pi(l(t, n, i), 1), 0), f = vi(pi(l(e, r, a), 1), 0), d = u(t, n, i, c), h = u(e, r, a, f);
o[0] = pi(t, i, d), o[1] = pi(e, a, h), s[0] = vi(t, i, d), s[1] = vi(e, a, h);
}
function IRe(t, e, n, r, i, a, o, s, l) {
var u = $s, c = As, f = Math.abs(i - a);
if (f % ju < 1e-4 && f > 1e-4) {
s[0] = t - n, s[1] = e - r, l[0] = t + n, l[1] = e + r;
return;
}
if (Yy[0] = hT(i) * n + t, Yy[1] = dT(i) * r + e, qy[0] = hT(a) * n + t, qy[1] = dT(a) * r + e, u(s, Yy, qy), c(l, Yy, qy), i = i % ju, i < 0 && (i = i + ju), a = a % ju, a < 0 && (a = a + ju), i > a && !o ? a += ju : i < a && o && (i += ju), o) {
var d = a;
a = i, i = d;
}
for (var h = 0; h < a; h += Math.PI / 2)
h > i && (Ky[0] = hT(h) * n + t, Ky[1] = dT(h) * r + e, u(s, Ky, s), c(l, Ky, l));
}
var Gt = {
M: 1,
L: 2,
C: 3,
Q: 4,
A: 5,
Z: 6,
R: 7
}, Zu = [], Uu = [], _o = [], dl = [], Oo = [], So = [], pT = Math.min, vT = Math.max, Xu = Math.cos, Yu = Math.sin, ms = Math.abs, MA = Math.PI, Sl = MA * 2, gT = typeof Float32Array < "u", sv = [];
function mT(t) {
var e = Math.round(t / MA * 1e8) / 1e8;
return e % 2 * MA;
}
function RR(t, e) {
var n = mT(t[0]);
n < 0 && (n += Sl);
var r = n - t[0], i = t[1];
i += r, !e && i - n >= Sl ? i = n + Sl : e && n - i >= Sl ? i = n - Sl : !e && n > i ? i = n + (Sl - mT(n - i)) : e && n < i && (i = n - (Sl - mT(i - n))), t[0] = n, t[1] = i;
}
var os = function() {
function t(e) {
this.dpr = 1, this._xi = 0, this._yi = 0, this._x0 = 0, this._y0 = 0, this._len = 0, e && (this._saveData = !1), this._saveData && (this.data = []);
}
return t.prototype.increaseVersion = function() {
this._version++;
}, t.prototype.getVersion = function() {
return this._version;
}, t.prototype.setScale = function(e, n, r) {
r = r || 0, r > 0 && (this._ux = ms(r / iO / e) || 0, this._uy = ms(r / iO / n) || 0);
}, t.prototype.setDPR = function(e) {
this.dpr = e;
}, t.prototype.setContext = function(e) {
this._ctx = e;
}, t.prototype.getContext = function() {
return this._ctx;
}, t.prototype.beginPath = function() {
return this._ctx && this._ctx.beginPath(), this.reset(), this;
}, t.prototype.reset = function() {
this._saveData && (this._len = 0), this._pathSegLen && (this._pathSegLen = null, this._pathLen = 0), this._version++;
}, t.prototype.moveTo = function(e, n) {
return this._drawPendingPt(), this.addData(Gt.M, e, n), this._ctx && this._ctx.moveTo(e, n), this._x0 = e, this._y0 = n, this._xi = e, this._yi = n, this;
}, t.prototype.lineTo = function(e, n) {
var r = ms(e - this._xi), i = ms(n - this._yi), a = r > this._ux || i > this._uy;
if (this.addData(Gt.L, e, n), this._ctx && a && this._ctx.lineTo(e, n), a)
this._xi = e, this._yi = n, this._pendingPtDist = 0;
else {
var o = r * r + i * i;
o > this._pendingPtDist && (this._pendingPtX = e, this._pendingPtY = n, this._pendingPtDist = o);
}
return this;
}, t.prototype.bezierCurveTo = function(e, n, r, i, a, o) {
return this._drawPendingPt(), this.addData(Gt.C, e, n, r, i, a, o), this._ctx && this._ctx.bezierCurveTo(e, n, r, i, a, o), this._xi = a, this._yi = o, this;
}, t.prototype.quadraticCurveTo = function(e, n, r, i) {
return this._drawPendingPt(), this.addData(Gt.Q, e, n, r, i), this._ctx && this._ctx.quadraticCurveTo(e, n, r, i), this._xi = r, this._yi = i, this;
}, t.prototype.arc = function(e, n, r, i, a, o) {
this._drawPendingPt(), sv[0] = i, sv[1] = a, RR(sv, o), i = sv[0], a = sv[1];
var s = a - i;
return this.addData(Gt.A, e, n, r, r, i, s, 0, o ? 0 : 1), this._ctx && this._ctx.arc(e, n, r, i, a, o), this._xi = Xu(a) * r + e, this._yi = Yu(a) * r + n, this;
}, t.prototype.arcTo = function(e, n, r, i, a) {
return this._drawPendingPt(), this._ctx && this._ctx.arcTo(e, n, r, i, a), this;
}, t.prototype.rect = function(e, n, r, i) {
return this._drawPendingPt(), this._ctx && this._ctx.rect(e, n, r, i), this.addData(Gt.R, e, n, r, i), this;
}, t.prototype.closePath = function() {
this._drawPendingPt(), this.addData(Gt.Z);
var e = this._ctx, n = this._x0, r = this._y0;
return e && e.closePath(), this._xi = n, this._yi = r, this;
}, t.prototype.fill = function(e) {
e && e.fill(), this.toStatic();
}, t.prototype.stroke = function(e) {
e && e.stroke(), this.toStatic();
}, t.prototype.len = function() {
return this._len;
}, t.prototype.setData = function(e) {
var n = e.length;
!(this.data && this.data.length === n) && gT && (this.data = new Float32Array(n));
for (var r = 0; r < n; r++)
this.data[r] = e[r];
this._len = n;
}, t.prototype.appendPath = function(e) {
e instanceof Array || (e = [e]);
for (var n = e.length, r = 0, i = this._len, a = 0; a < n; a++)
r += e[a].len();
gT && this.data instanceof Float32Array && (this.data = new Float32Array(i + r));
for (var a = 0; a < n; a++)
for (var o = e[a].data, s = 0; s < o.length; s++)
this.data[i++] = o[s];
this._len = i;
}, t.prototype.addData = function(e, n, r, i, a, o, s, l, u) {
if (this._saveData) {
var c = this.data;
this._len + arguments.length > c.length && (this._expandData(), c = this.data);
for (var f = 0; f < arguments.length; f++)
c[this._len++] = arguments[f];
}
}, t.prototype._drawPendingPt = function() {
this._pendingPtDist > 0 && (this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY), this._pendingPtDist = 0);
}, t.prototype._expandData = function() {
if (!(this.data instanceof Array)) {
for (var e = [], n = 0; n < this._len; n++)
e[n] = this.data[n];
this.data = e;
}
}, t.prototype.toStatic = function() {
if (this._saveData) {
this._drawPendingPt();
var e = this.data;
e instanceof Array && (e.length = this._len, gT && this._len > 11 && (this.data = new Float32Array(e)));
}
}, t.prototype.getBoundingRect = function() {
_o[0] = _o[1] = Oo[0] = Oo[1] = Number.MAX_VALUE, dl[0] = dl[1] = So[0] = So[1] = -Number.MAX_VALUE;
var e = this.data, n = 0, r = 0, i = 0, a = 0, o;
for (o = 0; o < this._len; ) {
var s = e[o++], l = o === 1;
switch (l && (n = e[o], r = e[o + 1], i = n, a = r), s) {
case Gt.M:
n = i = e[o++], r = a = e[o++], Oo[0] = i, Oo[1] = a, So[0] = i, So[1] = a;
break;
case Gt.L:
pB(n, r, e[o], e[o + 1], Oo, So), n = e[o++], r = e[o++];
break;
case Gt.C:
ERe(n, r, e[o++], e[o++], e[o++], e[o++], e[o], e[o + 1], Oo, So), n = e[o++], r = e[o++];
break;
case Gt.Q:
MRe(n, r, e[o++], e[o++], e[o], e[o + 1], Oo, So), n = e[o++], r = e[o++];
break;
case Gt.A:
var u = e[o++], c = e[o++], f = e[o++], d = e[o++], h = e[o++], p = e[o++] + h;
o += 1;
var v = !e[o++];
l && (i = Xu(h) * f + u, a = Yu(h) * d + c), IRe(u, c, f, d, h, p, v, Oo, So), n = Xu(p) * f + u, r = Yu(p) * d + c;
break;
case Gt.R:
i = n = e[o++], a = r = e[o++];
var g = e[o++], m = e[o++];
pB(i, a, i + g, a + m, Oo, So);
break;
case Gt.Z:
n = i, r = a;
break;
}
$s(_o, _o, Oo), As(dl, dl, So);
}
return o === 0 && (_o[0] = _o[1] = dl[0] = dl[1] = 0), new Je(_o[0], _o[1], dl[0] - _o[0], dl[1] - _o[1]);
}, t.prototype._calculateLength = function() {
var e = this.data, n = this._len, r = this._ux, i = this._uy, a = 0, o = 0, s = 0, l = 0;
this._pathSegLen || (this._pathSegLen = []);
for (var u = this._pathSegLen, c = 0, f = 0, d = 0; d < n; ) {
var h = e[d++], p = d === 1;
p && (a = e[d], o = e[d + 1], s = a, l = o);
var v = -1;
switch (h) {
case Gt.M:
a = s = e[d++], o = l = e[d++];
break;
case Gt.L: {
var g = e[d++], m = e[d++], y = g - a, b = m - o;
(ms(y) > r || ms(b) > i || d === n - 1) && (v = Math.sqrt(y * y + b * b), a = g, o = m);
break;
}
case Gt.C: {
var _ = e[d++], O = e[d++], g = e[d++], m = e[d++], S = e[d++], x = e[d++];
v = HIe(a, o, _, O, g, m, S, x, 10), a = S, o = x;
break;
}
case Gt.Q: {
var _ = e[d++], O = e[d++], g = e[d++], m = e[d++];
v = jIe(a, o, _, O, g, m, 10), a = g, o = m;
break;
}
case Gt.A:
var C = e[d++], T = e[d++], w = e[d++], P = e[d++], $ = e[d++], A = e[d++], D = A + $;
d += 1, p && (s = Xu($) * w + C, l = Yu($) * P + T), v = vT(w, P) * pT(Sl, Math.abs(A)), a = Xu(D) * w + C, o = Yu(D) * P + T;
break;
case Gt.R: {
s = a = e[d++], l = o = e[d++];
var E = e[d++], R = e[d++];
v = E * 2 + R * 2;
break;
}
case Gt.Z: {
var y = s - a, b = l - o;
v = Math.sqrt(y * y + b * b), a = s, o = l;
break;
}
}
v >= 0 && (u[f++] = v, c += v);
}
return this._pathLen = c, c;
}, t.prototype.rebuildPath = function(e, n) {
var r = this.data, i = this._ux, a = this._uy, o = this._len, s, l, u, c, f, d, h = n < 1, p, v, g = 0, m = 0, y, b = 0, _, O;
if (!(h && (this._pathSegLen || this._calculateLength(), p = this._pathSegLen, v = this._pathLen, y = n * v, !y)))
e: for (var S = 0; S < o; ) {
var x = r[S++], C = S === 1;
switch (C && (u = r[S], c = r[S + 1], s = u, l = c), x !== Gt.L && b > 0 && (e.lineTo(_, O), b = 0), x) {
case Gt.M:
s = u = r[S++], l = c = r[S++], e.moveTo(u, c);
break;
case Gt.L: {
f = r[S++], d = r[S++];
var T = ms(f - u), w = ms(d - c);
if (T > i || w > a) {
if (h) {
var P = p[m++];
if (g + P > y) {
var $ = (y - g) / P;
e.lineTo(u * (1 - $) + f * $, c * (1 - $) + d * $);
break e;
}
g += P;
}
e.lineTo(f, d), u = f, c = d, b = 0;
} else {
var A = T * T + w * w;
A > b && (_ = f, O = d, b = A);
}
break;
}
case Gt.C: {
var D = r[S++], E = r[S++], R = r[S++], N = r[S++], V = r[S++], B = r[S++];
if (h) {
var P = p[m++];
if (g + P > y) {
var $ = (y - g) / P;
su(u, D, R, V, $, Zu), su(c, E, N, B, $, Uu), e.bezierCurveTo(Zu[1], Uu[1], Zu[2], Uu[2], Zu[3], Uu[3]);
break e;
}
g += P;
}
e.bezierCurveTo(D, E, R, N, V, B), u = V, c = B;
break;
}
case Gt.Q: {
var D = r[S++], E = r[S++], R = r[S++], N = r[S++];
if (h) {
var P = p[m++];
if (g + P > y) {
var $ = (y - g) / P;
Sm(u, D, R, $, Zu), Sm(c, E, N, $, Uu), e.quadraticCurveTo(Zu[1], Uu[1], Zu[2], Uu[2]);
break e;
}
g += P;
}
e.quadraticCurveTo(D, E, R, N), u = R, c = N;
break;
}
case Gt.A:
var W = r[S++], F = r[S++], Q = r[S++], Z = r[S++], ne = r[S++], ee = r[S++], oe = r[S++], K = !r[S++], ie = Q > Z ? Q : Z, X = ms(Q - Z) > 1e-3, H = ne + ee, G = !1;
if (h) {
var P = p[m++];
g + P > y && (H = ne + ee * (y - g) / P, G = !0), g += P;
}
if (X && e.ellipse ? e.ellipse(W, F, Q, Z, oe, ne, H, K) : e.arc(W, F, ie, ne, H, K), G)
break e;
C && (s = Xu(ne) * Q + W, l = Yu(ne) * Z + F), u = Xu(H) * Q + W, c = Yu(H) * Z + F;
break;
case Gt.R:
s = u = r[S], l = c = r[S + 1], f = r[S++], d = r[S++];
var re = r[S++], fe = r[S++];
if (h) {
var P = p[m++];
if (g + P > y) {
var de = y - g;
e.moveTo(f, d), e.lineTo(f + pT(de, re), d), de -= re, de > 0 && e.lineTo(f + re, d + pT(de, fe)), de -= fe, de > 0 && e.lineTo(f + vT(re - de, 0), d + fe), de -= re, de > 0 && e.lineTo(f, d + vT(fe - de, 0));
break e;
}
g += P;
}
e.rect(f, d, re, fe);
break;
case Gt.Z:
if (h) {
var P = p[m++];
if (g + P > y) {
var $ = (y - g) / P;
e.lineTo(u * (1 - $) + s * $, c * (1 - $) + l * $);
break e;
}
g += P;
}
e.closePath(), u = s, c = l;
}
}
}, t.prototype.clone = function() {
var e = new t(), n = this.data;
return e.data = n.slice ? n.slice() : Array.prototype.slice.call(n), e._len = this._len, e;
}, t.CMD = Gt, t.initDefaultProps = function() {
var e = t.prototype;
e._saveData = !0, e._ux = 0, e._uy = 0, e._pendingPtDist = 0, e._version = 0;
}(), t;
}();
function wl(t, e, n, r, i, a, o) {
if (i === 0)
return !1;
var s = i, l = 0, u = t;
if (o > e + s && o > r + s || o < e - s && o < r - s || a > t + s && a > n + s || a < t - s && a < n - s)
return !1;
if (t !== n)
l = (e - r) / (t - n), u = (t * r - n * e) / (t - n);
else
return Math.abs(a - t) <= s / 2;
var c = l * a - o + u, f = c * c / (l * l + 1);
return f <= s / 2 * s / 2;
}
function DRe(t, e, n, r, i, a, o, s, l, u, c) {
if (l === 0)
return !1;
var f = l;
if (c > e + f && c > r + f && c > a + f && c > s + f || c < e - f && c < r - f && c < a - f && c < s - f || u > t + f && u > n + f && u > i + f && u > o + f || u < t - f && u < n - f && u < i - f && u < o - f)
return !1;
var d = Fq(t, e, n, r, i, a, o, s, u, c, null);
return d <= f / 2;
}
function wK(t, e, n, r, i, a, o, s, l) {
if (o === 0)
return !1;
var u = o;
if (l > e + u && l > r + u && l > a + u || l < e - u && l < r - u && l < a - u || s > t + u && s > n + u && s > i + u || s < t - u && s < n - u && s < i - u)
return !1;
var c = Qq(t, e, n, r, i, a, s, l, null);
return c <= u / 2;
}
var mB = Math.PI * 2;
function Qi(t) {
return t %= mB, t < 0 && (t += mB), t;
}
var lv = Math.PI * 2;
function RRe(t, e, n, r, i, a, o, s, l) {
if (o === 0)
return !1;
var u = o;
s -= t, l -= e;
var c = Math.sqrt(s * s + l * l);
if (c - u > n || c + u < n)
return !1;
if (Math.abs(r - i) % lv < 1e-4)
return !0;
if (a) {
var f = r;
r = Qi(i), i = Qi(f);
} else
r = Qi(r), i = Qi(i);
r > i && (i += lv);
var d = Math.atan2(l, s);
return d < 0 && (d += lv), d >= r && d <= i || d + lv >= r && d + lv <= i;
}
function Ss(t, e, n, r, i, a) {
if (a > e && a > r || a < e && a < r || r === e)
return 0;
var o = (a - e) / (r - e), s = r < e ? 1 : -1;
(o === 1 || o === 0) && (s = r < e ? 0.5 : -0.5);
var l = o * (n - t) + t;
return l === i ? 1 / 0 : l > i ? s : 0;
}
var hl = os.CMD, qu = Math.PI * 2, kRe = 1e-4;
function LRe(t, e) {
return Math.abs(t - e) < kRe;
}
var Qr = [-1, -1, -1], fa = [-1, -1];
function NRe() {
var t = fa[0];
fa[0] = fa[1], fa[1] = t;
}
function BRe(t, e, n, r, i, a, o, s, l, u) {
if (u > e && u > r && u > a && u > s || u < e && u < r && u < a && u < s)
return 0;
var c = eO(e, r, a, s, u, Qr);
if (c === 0)
return 0;
for (var f = 0, d = -1, h = void 0, p = void 0, v = 0; v < c; v++) {
var g = Qr[v], m = g === 0 || g === 1 ? 0.5 : 1, y = Gn(t, n, i, o, g);
y < l || (d < 0 && (d = Vq(e, r, a, s, fa), fa[1] < fa[0] && d > 1 && NRe(), h = Gn(e, r, a, s, fa[0]), d > 1 && (p = Gn(e, r, a, s, fa[1]))), d === 2 ? g < fa[0] ? f += h < e ? m : -m : g < fa[1] ? f += p < h ? m : -m : f += s < p ? m : -m : g < fa[0] ? f += h < e ? m : -m : f += s < h ? m : -m);
}
return f;
}
function zRe(t, e, n, r, i, a, o, s) {
if (s > e && s > r && s > a || s < e && s < r && s < a)
return 0;
var l = GIe(e, r, a, s, Qr);
if (l === 0)
return 0;
var u = Wq(e, r, a);
if (u >= 0 && u <= 1) {
for (var c = 0, f = ir(e, r, a, u), d = 0; d < l; d++) {
var h = Qr[d] === 0 || Qr[d] === 1 ? 0.5 : 1, p = ir(t, n, i, Qr[d]);
p < o || (Qr[d] < u ? c += f < e ? h : -h : c += a < f ? h : -h);
}
return c;
} else {
var h = Qr[0] === 0 || Qr[0] === 1 ? 0.5 : 1, p = ir(t, n, i, Qr[0]);
return p < o ? 0 : a < e ? h : -h;
}
}
function VRe(t, e, n, r, i, a, o, s) {
if (s -= e, s > n || s < -n)
return 0;
var l = Math.sqrt(n * n - s * s);
Qr[0] = -l, Qr[1] = l;
var u = Math.abs(r - i);
if (u < 1e-4)
return 0;
if (u >= qu - 1e-4) {
r = 0, i = qu;
var c = a ? 1 : -1;
return o >= Qr[0] + t && o <= Qr[1] + t ? c : 0;
}
if (r > i) {
var f = r;
r = i, i = f;
}
r < 0 && (r += qu, i += qu);
for (var d = 0, h = 0; h < 2; h++) {
var p = Qr[h];
if (p + t > o) {
var v = Math.atan2(s, p), c = a ? 1 : -1;
v < 0 && (v = qu + v), (v >= r && v <= i || v + qu >= r && v + qu <= i) && (v > Math.PI / 2 && v < Math.PI * 1.5 && (c = -c), d += c);
}
}
return d;
}
function CK(t, e, n, r, i) {
for (var a = t.data, o = t.len(), s = 0, l = 0, u = 0, c = 0, f = 0, d, h, p = 0; p < o; ) {
var v = a[p++], g = p === 1;
switch (v === hl.M && p > 1 && (n || (s += Ss(l, u, c, f, r, i))), g && (l = a[p], u = a[p + 1], c = l, f = u), v) {
case hl.M:
c = a[p++], f = a[p++], l = c, u = f;
break;
case hl.L:
if (n) {
if (wl(l, u, a[p], a[p + 1], e, r, i))
return !0;
} else
s += Ss(l, u, a[p], a[p + 1], r, i) || 0;
l = a[p++], u = a[p++];
break;
case hl.C:
if (n) {
if (DRe(l, u, a[p++], a[p++], a[p++], a[p++], a[p], a[p + 1], e, r, i))
return !0;
} else
s += BRe(l, u, a[p++], a[p++], a[p++], a[p++], a[p], a[p + 1], r, i) || 0;
l = a[p++], u = a[p++];
break;
case hl.Q:
if (n) {
if (wK(l, u, a[p++], a[p++], a[p], a[p + 1], e, r, i))
return !0;
} else
s += zRe(l, u, a[p++], a[p++], a[p], a[p + 1], r, i) || 0;
l = a[p++], u = a[p++];
break;
case hl.A:
var m = a[p++], y = a[p++], b = a[p++], _ = a[p++], O = a[p++], S = a[p++];
p += 1;
var x = !!(1 - a[p++]);
d = Math.cos(O) * b + m, h = Math.sin(O) * _ + y, g ? (c = d, f = h) : s += Ss(l, u, d, h, r, i);
var C = (r - m) * _ / b + m;
if (n) {
if (RRe(m, y, _, O, O + S, x, e, C, i))
return !0;
} else
s += VRe(m, y, _, O, O + S, x, C, i);
l = Math.cos(O + S) * b + m, u = Math.sin(O + S) * _ + y;
break;
case hl.R:
c = l = a[p++], f = u = a[p++];
var T = a[p++], w = a[p++];
if (d = c + T, h = f + w, n) {
if (wl(c, f, d, f, e, r, i) || wl(d, f, d, h, e, r, i) || wl(d, h, c, h, e, r, i) || wl(c, h, c, f, e, r, i))
return !0;
} else
s += Ss(d, f, d, h, r, i), s += Ss(c, h, c, f, r, i);
break;
case hl.Z:
if (n) {
if (wl(l, u, c, f, e, r, i))
return !0;
} else
s += Ss(l, u, c, f, r, i);
l = c, u = f;
break;
}
}
return !n && !LRe(u, f) && (s += Ss(l, u, c, f, r, i) || 0), s !== 0;
}
function FRe(t, e, n) {
return CK(t, 0, !1, e, n);
}
function WRe(t, e, n, r) {
return CK(t, e, !0, n, r);
}
var sO = Re({
fill: "#000",
stroke: null,
strokePercent: 1,
fillOpacity: 1,
strokeOpacity: 1,
lineDashOffset: 0,
lineWidth: 1,
lineCap: "butt",
miterLimit: 10,
strokeNoScale: !1,
strokeFirst: !1
}, Jc), QRe = {
style: Re({
fill: !0,
stroke: !0,
strokePercent: !0,
fillOpacity: !0,
strokeOpacity: !0,
lineDashOffset: !0,
lineWidth: !0,
miterLimit: !0
}, jx.style)
}, yT = is.concat([
"invisible",
"culling",
"z",
"z2",
"zlevel",
"parent"
]), ot = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.update = function() {
var n = this;
t.prototype.update.call(this);
var r = this.style;
if (r.decal) {
var i = this._decalEl = this._decalEl || new e();
i.buildPath === e.prototype.buildPath && (i.buildPath = function(l) {
n.buildPath(l, n.shape);
}), i.silent = !0;
var a = i.style;
for (var o in r)
a[o] !== r[o] && (a[o] = r[o]);
a.fill = r.fill ? r.decal : null, a.decal = null, a.shadowColor = null, r.strokeFirst && (a.stroke = null);
for (var s = 0; s < yT.length; ++s)
i[yT[s]] = this[yT[s]];
i.__dirty |= Ni;
} else this._decalEl && (this._decalEl = null);
}, e.prototype.getDecalElement = function() {
return this._decalEl;
}, e.prototype._init = function(n) {
var r = st(n);
this.shape = this.getDefaultShape();
var i = this.getDefaultStyle();
i && this.useStyle(i);
for (var a = 0; a < r.length; a++) {
var o = r[a], s = n[o];
o === "style" ? this.style ? le(this.style, s) : this.useStyle(s) : o === "shape" ? le(this.shape, s) : t.prototype.attrKV.call(this, o, s);
}
this.style || this.useStyle({});
}, e.prototype.getDefaultStyle = function() {
return null;
}, e.prototype.getDefaultShape = function() {
return {};
}, e.prototype.canBeInsideText = function() {
return this.hasFill();
}, e.prototype.getInsideTextFill = function() {
var n = this.style.fill;
if (n !== "none") {
if (Oe(n)) {
var r = Cm(n, 0);
return r > 0.5 ? SA : r > 0.2 ? xDe : xA;
} else if (n)
return xA;
}
return SA;
}, e.prototype.getInsideTextStroke = function(n) {
var r = this.style.fill;
if (Oe(r)) {
var i = this.__zr, a = !!(i && i.isDarkMode()), o = Cm(n, 0) < OA;
if (a === o)
return r;
}
}, e.prototype.buildPath = function(n, r, i) {
}, e.prototype.pathUpdated = function() {
this.__dirty &= ~Ad;
}, e.prototype.getUpdatedPathProxy = function(n) {
return !this.path && this.createPathProxy(), this.path.beginPath(), this.buildPath(this.path, this.shape, n), this.path;
}, e.prototype.createPathProxy = function() {
this.path = new os(!1);
}, e.prototype.hasStroke = function() {
var n = this.style, r = n.stroke;
return !(r == null || r === "none" || !(n.lineWidth > 0));
}, e.prototype.hasFill = function() {
var n = this.style, r = n.fill;
return r != null && r !== "none";
}, e.prototype.getBoundingRect = function() {
var n = this._rect, r = this.style, i = !n;
if (i) {
var a = !1;
this.path || (a = !0, this.createPathProxy());
var o = this.path;
(a || this.__dirty & Ad) && (o.beginPath(), this.buildPath(o, this.shape, !1), this.pathUpdated()), n = o.getBoundingRect();
}
if (this._rect = n, this.hasStroke() && this.path && this.path.len() > 0) {
var s = this._rectStroke || (this._rectStroke = n.clone());
if (this.__dirty || i) {
s.copy(n);
var l = r.strokeNoScale ? this.getLineScale() : 1, u = r.lineWidth;
if (!this.hasFill()) {
var c = this.strokeContainThreshold;
u = Math.max(u, c ?? 4);
}
l > 1e-10 && (s.width += u / l, s.height += u / l, s.x -= u / l / 2, s.y -= u / l / 2);
}
return s;
}
return n;
}, e.prototype.contain = function(n, r) {
var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect(), o = this.style;
if (n = i[0], r = i[1], a.contain(n, r)) {
var s = this.path;
if (this.hasStroke()) {
var l = o.lineWidth, u = o.strokeNoScale ? this.getLineScale() : 1;
if (u > 1e-10 && (this.hasFill() || (l = Math.max(l, this.strokeContainThreshold)), WRe(s, l / u, n, r)))
return !0;
}
if (this.hasFill())
return FRe(s, n, r);
}
return !1;
}, e.prototype.dirtyShape = function() {
this.__dirty |= Ad, this._rect && (this._rect = null), this._decalEl && this._decalEl.dirtyShape(), this.markRedraw();
}, e.prototype.dirty = function() {
this.dirtyStyle(), this.dirtyShape();
}, e.prototype.animateShape = function(n) {
return this.animate("shape", n);
}, e.prototype.updateDuringAnimation = function(n) {
n === "style" ? this.dirtyStyle() : n === "shape" ? this.dirtyShape() : this.markRedraw();
}, e.prototype.attrKV = function(n, r) {
n === "shape" ? this.setShape(r) : t.prototype.attrKV.call(this, n, r);
}, e.prototype.setShape = function(n, r) {
var i = this.shape;
return i || (i = this.shape = {}), typeof n == "string" ? i[n] = r : le(i, n), this.dirtyShape(), this;
}, e.prototype.shapeChanged = function() {
return !!(this.__dirty & Ad);
}, e.prototype.createStyle = function(n) {
return D0(sO, n);
}, e.prototype._innerSaveToNormal = function(n) {
t.prototype._innerSaveToNormal.call(this, n);
var r = this._normalState;
n.shape && !r.shape && (r.shape = le({}, this.shape));
}, e.prototype._applyStateObj = function(n, r, i, a, o, s) {
t.prototype._applyStateObj.call(this, n, r, i, a, o, s);
var l = !(r && a), u;
if (r && r.shape ? o ? a ? u = r.shape : (u = le({}, i.shape), le(u, r.shape)) : (u = le({}, a ? this.shape : i.shape), le(u, r.shape)) : l && (u = i.shape), u)
if (o) {
this.shape = le({}, this.shape);
for (var c = {}, f = st(u), d = 0; d < f.length; d++) {
var h = f[d];
typeof u[h] == "object" ? this.shape[h] = u[h] : c[h] = u[h];
}
this._transitionState(n, {
shape: c
}, s);
} else
this.shape = u, this.dirtyShape();
}, e.prototype._mergeStates = function(n) {
for (var r = t.prototype._mergeStates.call(this, n), i, a = 0; a < n.length; a++) {
var o = n[a];
o.shape && (i = i || {}, this._mergeStyle(i, o.shape));
}
return i && (r.shape = i), r;
}, e.prototype.getAnimationStyleProps = function() {
return QRe;
}, e.prototype.isZeroArea = function() {
return !1;
}, e.extend = function(n) {
var r = function(a) {
q(o, a);
function o(s) {
var l = a.call(this, s) || this;
return n.init && n.init.call(l, s), l;
}
return o.prototype.getDefaultStyle = function() {
return Le(n.style);
}, o.prototype.getDefaultShape = function() {
return Le(n.shape);
}, o;
}(e);
for (var i in n)
typeof n[i] == "function" && (r.prototype[i] = n[i]);
return r;
}, e.initDefaultProps = function() {
var n = e.prototype;
n.type = "path", n.strokeContainThreshold = 5, n.segmentIgnoreThreshold = 0, n.subPixelOptimize = !1, n.autoBatch = !1, n.__dirty = Ni | Gv | Ad;
}(), e;
}(Da), HRe = Re({
strokeFirst: !0,
font: iu,
x: 0,
y: 0,
textAlign: "left",
textBaseline: "top",
miterLimit: 2
}, sO), Qh = function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.hasStroke = function() {
var n = this.style, r = n.stroke;
return r != null && r !== "none" && n.lineWidth > 0;
}, e.prototype.hasFill = function() {
var n = this.style, r = n.fill;
return r != null && r !== "none";
}, e.prototype.createStyle = function(n) {
return D0(HRe, n);
}, e.prototype.setBoundingRect = function(n) {
this._rect = n;
}, e.prototype.getBoundingRect = function() {
var n = this.style;
if (!this._rect) {
var r = n.text;
r != null ? r += "" : r = "";
var i = L0(r, n.font, n.textAlign, n.textBaseline);
if (i.x += n.x || 0, i.y += n.y || 0, this.hasStroke()) {
var a = n.lineWidth;
i.x -= a / 2, i.y -= a / 2, i.width += a, i.height += a;
}
this._rect = i;
}
return this._rect;
}, e.initDefaultProps = function() {
var n = e.prototype;
n.dirtyRectTolerance = 10;
}(), e;
}(Da);
Qh.prototype.type = "tspan";
var GRe = Re({
x: 0,
y: 0
}, Jc), jRe = {
style: Re({
x: !0,
y: !0,
width: !0,
height: !0,
sx: !0,
sy: !0,
sWidth: !0,
sHeight: !0
}, jx.style)
};
function ZRe(t) {
return !!(t && typeof t != "string" && t.width && t.height);
}
var TK = function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.createStyle = function(n) {
return D0(GRe, n);
}, e.prototype._getSize = function(n) {
var r = this.style, i = r[n];
if (i != null)
return i;
var a = ZRe(r.image) ? r.image : this.__image;
if (!a)
return 0;
var o = n === "width" ? "height" : "width", s = r[o];
return s == null ? a[n] : a[n] / a[o] * s;
}, e.prototype.getWidth = function() {
return this._getSize("width");
}, e.prototype.getHeight = function() {
return this._getSize("height");
}, e.prototype.getAnimationStyleProps = function() {
return jRe;
}, e.prototype.getBoundingRect = function() {
var n = this.style;
return this._rect || (this._rect = new Je(n.x || 0, n.y || 0, this.getWidth(), this.getHeight())), this._rect;
}, e;
}(Da);
TK.prototype.type = "image";
const lr = TK;
function URe(t, e) {
var n = e.x, r = e.y, i = e.width, a = e.height, o = e.r, s, l, u, c;
i < 0 && (n = n + i, i = -i), a < 0 && (r = r + a, a = -a), typeof o == "number" ? s = l = u = c = o : o instanceof Array ? o.length === 1 ? s = l = u = c = o[0] : o.length === 2 ? (s = u = o[0], l = c = o[1]) : o.length === 3 ? (s = o[0], l = c = o[1], u = o[2]) : (s = o[0], l = o[1], u = o[2], c = o[3]) : s = l = u = c = 0;
var f;
s + l > i && (f = s + l, s *= i / f, l *= i / f), u + c > i && (f = u + c, u *= i / f, c *= i / f), l + u > a && (f = l + u, l *= a / f, u *= a / f), s + c > a && (f = s + c, s *= a / f, c *= a / f), t.moveTo(n + s, r), t.lineTo(n + i - l, r), l !== 0 && t.arc(n + i - l, r + l, l, -Math.PI / 2, 0), t.lineTo(n + i, r + a - u), u !== 0 && t.arc(n + i - u, r + a - u, u, 0, Math.PI / 2), t.lineTo(n + c, r + a), c !== 0 && t.arc(n + c, r + a - c, c, Math.PI / 2, Math.PI), t.lineTo(n, r + s), s !== 0 && t.arc(n + s, r + s, s, Math.PI, Math.PI * 1.5);
}
var Fd = Math.round;
function PK(t, e, n) {
if (e) {
var r = e.x1, i = e.x2, a = e.y1, o = e.y2;
t.x1 = r, t.x2 = i, t.y1 = a, t.y2 = o;
var s = n && n.lineWidth;
return s && (Fd(r * 2) === Fd(i * 2) && (t.x1 = t.x2 = kc(r, s, !0)), Fd(a * 2) === Fd(o * 2) && (t.y1 = t.y2 = kc(a, s, !0))), t;
}
}
function $K(t, e, n) {
if (e) {
var r = e.x, i = e.y, a = e.width, o = e.height;
t.x = r, t.y = i, t.width = a, t.height = o;
var s = n && n.lineWidth;
return s && (t.x = kc(r, s, !0), t.y = kc(i, s, !0), t.width = Math.max(kc(r + a, s, !1) - t.x, a === 0 ? 0 : 1), t.height = Math.max(kc(i + o, s, !1) - t.y, o === 0 ? 0 : 1)), t;
}
}
function kc(t, e, n) {
if (!e)
return t;
var r = Fd(t * 2);
return (r + Fd(e)) % 2 === 0 ? r / 2 : (r + (n ? 1 : -1)) / 2;
}
var XRe = /* @__PURE__ */ function() {
function t() {
this.x = 0, this.y = 0, this.width = 0, this.height = 0;
}
return t;
}(), YRe = {}, AK = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new XRe();
}, e.prototype.buildPath = function(n, r) {
var i, a, o, s;
if (this.subPixelOptimize) {
var l = $K(YRe, r, this.style);
i = l.x, a = l.y, o = l.width, s = l.height, l.r = r.r, r = l;
} else
i = r.x, a = r.y, o = r.width, s = r.height;
r.r ? URe(n, r) : n.rect(i, a, o, s);
}, e.prototype.isZeroArea = function() {
return !this.shape.width || !this.shape.height;
}, e;
}(ot);
AK.prototype.type = "rect";
const mt = AK;
var yB = {
fill: "#000"
}, bB = 2, qRe = {
style: Re({
fill: !0,
stroke: !0,
fillOpacity: !0,
strokeOpacity: !0,
lineWidth: !0,
fontSize: !0,
lineHeight: !0,
width: !0,
height: !0,
textShadowColor: !0,
textShadowBlur: !0,
textShadowOffsetX: !0,
textShadowOffsetY: !0,
backgroundColor: !0,
padding: !0,
borderColor: !0,
borderWidth: !0,
borderRadius: !0
}, jx.style)
}, EK = function(t) {
q(e, t);
function e(n) {
var r = t.call(this) || this;
return r.type = "text", r._children = [], r._defaultStyle = yB, r.attr(n), r;
}
return e.prototype.childrenRef = function() {
return this._children;
}, e.prototype.update = function() {
t.prototype.update.call(this), this.styleChanged() && this._updateSubTexts();
for (var n = 0; n < this._children.length; n++) {
var r = this._children[n];
r.zlevel = this.zlevel, r.z = this.z, r.z2 = this.z2, r.culling = this.culling, r.cursor = this.cursor, r.invisible = this.invisible;
}
}, e.prototype.updateTransform = function() {
var n = this.innerTransformable;
n ? (n.updateTransform(), n.transform && (this.transform = n.transform)) : t.prototype.updateTransform.call(this);
}, e.prototype.getLocalTransform = function(n) {
var r = this.innerTransformable;
return r ? r.getLocalTransform(n) : t.prototype.getLocalTransform.call(this, n);
}, e.prototype.getComputedTransform = function() {
return this.__hostTarget && (this.__hostTarget.getComputedTransform(), this.__hostTarget.updateInnerText(!0)), t.prototype.getComputedTransform.call(this);
}, e.prototype._updateSubTexts = function() {
this._childCursor = 0, eke(this.style), this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(), this._children.length = this._childCursor, this.styleUpdated();
}, e.prototype.addSelfToZr = function(n) {
t.prototype.addSelfToZr.call(this, n);
for (var r = 0; r < this._children.length; r++)
this._children[r].__zr = n;
}, e.prototype.removeSelfFromZr = function(n) {
t.prototype.removeSelfFromZr.call(this, n);
for (var r = 0; r < this._children.length; r++)
this._children[r].__zr = null;
}, e.prototype.getBoundingRect = function() {
if (this.styleChanged() && this._updateSubTexts(), !this._rect) {
for (var n = new Je(0, 0, 0, 0), r = this._children, i = [], a = null, o = 0; o < r.length; o++) {
var s = r[o], l = s.getBoundingRect(), u = s.getLocalTransform(i);
u ? (n.copy(l), n.applyTransform(u), a = a || n.clone(), a.union(n)) : (a = a || l.clone(), a.union(l));
}
this._rect = a || n;
}
return this._rect;
}, e.prototype.setDefaultTextStyle = function(n) {
this._defaultStyle = n || yB;
}, e.prototype.setTextContent = function(n) {
if (process.env.NODE_ENV !== "production")
throw new Error("Can't attach text on another text");
}, e.prototype._mergeStyle = function(n, r) {
if (!r)
return n;
var i = r.rich, a = n.rich || i && {};
return le(n, r), i && a ? (this._mergeRich(a, i), n.rich = a) : a && (n.rich = a), n;
}, e.prototype._mergeRich = function(n, r) {
for (var i = st(r), a = 0; a < i.length; a++) {
var o = i[a];
n[o] = n[o] || {}, le(n[o], r[o]);
}
}, e.prototype.getAnimationStyleProps = function() {
return qRe;
}, e.prototype._getOrCreateChild = function(n) {
var r = this._children[this._childCursor];
return (!r || !(r instanceof n)) && (r = new n()), this._children[this._childCursor++] = r, r.__zr = this.__zr, r.parent = this, r;
}, e.prototype._updatePlainTexts = function() {
var n = this.style, r = n.font || iu, i = n.padding, a = TB(n), o = _Re(a, n), s = bT(n), l = !!n.backgroundColor, u = o.outerHeight, c = o.outerWidth, f = o.contentWidth, d = o.lines, h = o.lineHeight, p = this._defaultStyle, v = n.x || 0, g = n.y || 0, m = n.align || p.align || "left", y = n.verticalAlign || p.verticalAlign || "top", b = v, _ = Ed(g, o.contentHeight, y);
if (s || i) {
var O = Zv(v, c, m), S = Ed(g, u, y);
s && this._renderBackground(n, n, O, S, c, u);
}
_ += h / 2, i && (b = CB(v, m, i), y === "top" ? _ += i[0] : y === "bottom" && (_ -= i[2]));
for (var x = 0, C = !1, T = wB("fill" in n ? n.fill : (C = !0, p.fill)), w = xB("stroke" in n ? n.stroke : !l && (!p.autoStroke || C) ? (x = bB, p.stroke) : null), P = n.textShadowBlur > 0, $ = n.width != null && (n.overflow === "truncate" || n.overflow === "break" || n.overflow === "breakAll"), A = o.calculatedLineHeight, D = 0; D < d.length; D++) {
var E = this._getOrCreateChild(Qh), R = E.createStyle();
E.useStyle(R), R.text = d[D], R.x = b, R.y = _, m && (R.textAlign = m), R.textBaseline = "middle", R.opacity = n.opacity, R.strokeFirst = !0, P && (R.shadowBlur = n.textShadowBlur || 0, R.shadowColor = n.textShadowColor || "transparent", R.shadowOffsetX = n.textShadowOffsetX || 0, R.shadowOffsetY = n.textShadowOffsetY || 0), R.stroke = w, R.fill = T, w && (R.lineWidth = n.lineWidth || x, R.lineDash = n.lineDash, R.lineDashOffset = n.lineDashOffset || 0), R.font = r, OB(R, n), _ += h, $ && E.setBoundingRect(new Je(Zv(R.x, n.width, R.textAlign), Ed(R.y, A, R.textBaseline), f, A));
}
}, e.prototype._updateRichTexts = function() {
var n = this.style, r = TB(n), i = xRe(r, n), a = i.width, o = i.outerWidth, s = i.outerHeight, l = n.padding, u = n.x || 0, c = n.y || 0, f = this._defaultStyle, d = n.align || f.align, h = n.verticalAlign || f.verticalAlign, p = Zv(u, o, d), v = Ed(c, s, h), g = p, m = v;
l && (g += l[3], m += l[0]);
var y = g + a;
bT(n) && this._renderBackground(n, n, p, v, o, s);
for (var b = !!n.backgroundColor, _ = 0; _ < i.lines.length; _++) {
for (var O = i.lines[_], S = O.tokens, x = S.length, C = O.lineHeight, T = O.width, w = 0, P = g, $ = y, A = x - 1, D = void 0; w < x && (D = S[w], !D.align || D.align === "left"); )
this._placeToken(D, n, C, m, P, "left", b), T -= D.width, P += D.width, w++;
for (; A >= 0 && (D = S[A], D.align === "right"); )
this._placeToken(D, n, C, m, $, "right", b), T -= D.width, $ -= D.width, A--;
for (P += (a - (P - g) - (y - $) - T) / 2; w <= A; )
D = S[w], this._placeToken(D, n, C, m, P + D.width / 2, "center", b), P += D.width, w++;
m += C;
}
}, e.prototype._placeToken = function(n, r, i, a, o, s, l) {
var u = r.rich[n.styleName] || {};
u.text = n.text;
var c = n.verticalAlign, f = a + i / 2;
c === "top" ? f = a + n.height / 2 : c === "bottom" && (f = a + i - n.height / 2);
var d = !n.isLineHolder && bT(u);
d && this._renderBackground(u, r, s === "right" ? o - n.width : s === "center" ? o - n.width / 2 : o, f - n.height / 2, n.width, n.height);
var h = !!u.backgroundColor, p = n.textPadding;
p && (o = CB(o, s, p), f -= n.height / 2 - p[0] - n.innerHeight / 2);
var v = this._getOrCreateChild(Qh), g = v.createStyle();
v.useStyle(g);
var m = this._defaultStyle, y = !1, b = 0, _ = wB("fill" in u ? u.fill : "fill" in r ? r.fill : (y = !0, m.fill)), O = xB("stroke" in u ? u.stroke : "stroke" in r ? r.stroke : !h && !l && (!m.autoStroke || y) ? (b = bB, m.stroke) : null), S = u.textShadowBlur > 0 || r.textShadowBlur > 0;
g.text = n.text, g.x = o, g.y = f, S && (g.shadowBlur = u.textShadowBlur || r.textShadowBlur || 0, g.shadowColor = u.textShadowColor || r.textShadowColor || "transparent", g.shadowOffsetX = u.textShadowOffsetX || r.textShadowOffsetX || 0, g.shadowOffsetY = u.textShadowOffsetY || r.textShadowOffsetY || 0), g.textAlign = s, g.textBaseline = "middle", g.font = n.font || iu, g.opacity = Ui(u.opacity, r.opacity, 1), OB(g, u), O && (g.lineWidth = Ui(u.lineWidth, r.lineWidth, b), g.lineDash = We(u.lineDash, r.lineDash), g.lineDashOffset = r.lineDashOffset || 0, g.stroke = O), _ && (g.fill = _);
var x = n.contentWidth, C = n.contentHeight;
v.setBoundingRect(new Je(Zv(g.x, x, g.textAlign), Ed(g.y, C, g.textBaseline), x, C));
}, e.prototype._renderBackground = function(n, r, i, a, o, s) {
var l = n.backgroundColor, u = n.borderWidth, c = n.borderColor, f = l && l.image, d = l && !f, h = n.borderRadius, p = this, v, g;
if (d || n.lineHeight || u && c) {
v = this._getOrCreateChild(mt), v.useStyle(v.createStyle()), v.style.fill = null;
var m = v.shape;
m.x = i, m.y = a, m.width = o, m.height = s, m.r = h, v.dirtyShape();
}
if (d) {
var y = v.style;
y.fill = l || null, y.fillOpacity = We(n.fillOpacity, 1);
} else if (f) {
g = this._getOrCreateChild(lr), g.onload = function() {
p.dirtyStyle();
};
var b = g.style;
b.image = l.image, b.x = i, b.y = a, b.width = o, b.height = s;
}
if (u && c) {
var y = v.style;
y.lineWidth = u, y.stroke = c, y.strokeOpacity = We(n.strokeOpacity, 1), y.lineDash = n.borderDash, y.lineDashOffset = n.borderDashOffset || 0, v.strokeContainThreshold = 0, v.hasFill() && v.hasStroke() && (y.strokeFirst = !0, y.lineWidth *= 2);
}
var _ = (v || g).style;
_.shadowBlur = n.shadowBlur || 0, _.shadowColor = n.shadowColor || "transparent", _.shadowOffsetX = n.shadowOffsetX || 0, _.shadowOffsetY = n.shadowOffsetY || 0, _.opacity = Ui(n.opacity, r.opacity, 1);
}, e.makeFont = function(n) {
var r = "";
return IK(n) && (r = [
n.fontStyle,
n.fontWeight,
MK(n.fontSize),
n.fontFamily || "sans-serif"
].join(" ")), r && ba(r) || n.textFont || n.font;
}, e;
}(Da), KRe = { left: !0, right: 1, center: 1 }, JRe = { top: 1, bottom: 1, middle: 1 }, _B = ["fontStyle", "fontWeight", "fontSize", "fontFamily"];
function MK(t) {
return typeof t == "string" && (t.indexOf("px") !== -1 || t.indexOf("rem") !== -1 || t.indexOf("em") !== -1) ? t : isNaN(+t) ? pR + "px" : t + "px";
}
function OB(t, e) {
for (var n = 0; n < _B.length; n++) {
var r = _B[n], i = e[r];
i != null && (t[r] = i);
}
}
function IK(t) {
return t.fontSize != null || t.fontFamily || t.fontWeight;
}
function eke(t) {
return SB(t), k(t.rich, SB), t;
}
function SB(t) {
if (t) {
t.font = EK.makeFont(t);
var e = t.align;
e === "middle" && (e = "center"), t.align = e == null || KRe[e] ? e : "left";
var n = t.verticalAlign;
n === "center" && (n = "middle"), t.verticalAlign = n == null || JRe[n] ? n : "top";
var r = t.padding;
r && (t.padding = Lx(t.padding));
}
}
function xB(t, e) {
return t == null || e <= 0 || t === "transparent" || t === "none" ? null : t.image || t.colorStops ? "#000" : t;
}
function wB(t) {
return t == null || t === "none" ? null : t.image || t.colorStops ? "#000" : t;
}
function CB(t, e, n) {
return e === "right" ? t - n[1] : e === "center" ? t + n[3] / 2 - n[1] / 2 : t + n[3];
}
function TB(t) {
var e = t.text;
return e != null && (e += ""), e;
}
function bT(t) {
return !!(t.backgroundColor || t.lineHeight || t.borderWidth && t.borderColor);
}
const gt = EK;
var Fe = bt(), IA = function(t, e, n, r) {
if (r) {
var i = Fe(r);
i.dataIndex = n, i.dataType = e, i.seriesIndex = t, i.ssrType = "chart", r.type === "group" && r.traverse(function(a) {
var o = Fe(a);
o.seriesIndex = t, o.dataIndex = n, o.dataType = e, o.ssrType = "chart";
});
}
}, PB = 1, $B = {}, DK = bt(), kR = bt(), LR = 0, z0 = 1, Ux = 2, ri = ["emphasis", "blur", "select"], Pm = ["normal", "emphasis", "blur", "select"], mp = 10, tke = 9, ef = "highlight", F_ = "downplay", Rg = "select", W_ = "unselect", kg = "toggleSelect";
function ad(t) {
return t != null && t !== "none";
}
function Xx(t, e, n) {
t.onHoverStateChange && (t.hoverState || 0) !== n && t.onHoverStateChange(e), t.hoverState = n;
}
function RK(t) {
Xx(t, "emphasis", Ux);
}
function kK(t) {
t.hoverState === Ux && Xx(t, "normal", LR);
}
function NR(t) {
Xx(t, "blur", z0);
}
function LK(t) {
t.hoverState === z0 && Xx(t, "normal", LR);
}
function nke(t) {
t.selected = !0;
}
function rke(t) {
t.selected = !1;
}
function AB(t, e, n) {
e(t, n);
}
function ll(t, e, n) {
AB(t, e, n), t.isGroup && t.traverse(function(r) {
AB(r, e, n);
});
}
function lO(t, e) {
switch (e) {
case "emphasis":
t.hoverState = Ux;
break;
case "normal":
t.hoverState = LR;
break;
case "blur":
t.hoverState = z0;
break;
case "select":
t.selected = !0;
}
}
function ike(t, e, n, r) {
for (var i = t.style, a = {}, o = 0; o < e.length; o++) {
var s = e[o], l = i[s];
a[s] = l ?? (r && r[s]);
}
for (var o = 0; o < t.animators.length; o++) {
var u = t.animators[o];
u.__fromStateTransition && u.__fromStateTransition.indexOf(n) < 0 && u.targetName === "style" && u.saveTo(a, e);
}
return a;
}
function ake(t, e, n, r) {
var i = n && et(n, "select") >= 0, a = !1;
if (t instanceof ot) {
var o = DK(t), s = i && o.selectFill || o.normalFill, l = i && o.selectStroke || o.normalStroke;
if (ad(s) || ad(l)) {
r = r || {};
var u = r.style || {};
u.fill === "inherit" ? (a = !0, r = le({}, r), u = le({}, u), u.fill = s) : !ad(u.fill) && ad(s) ? (a = !0, r = le({}, r), u = le({}, u), u.fill = nO(s)) : !ad(u.stroke) && ad(l) && (a || (r = le({}, r), u = le({}, u)), u.stroke = nO(l)), r.style = u;
}
}
if (r && r.z2 == null) {
a || (r = le({}, r));
var c = t.z2EmphasisLift;
r.z2 = t.z2 + (c ?? mp);
}
return r;
}
function oke(t, e, n) {
if (n && n.z2 == null) {
n = le({}, n);
var r = t.z2SelectLift;
n.z2 = t.z2 + (r ?? tke);
}
return n;
}
function ske(t, e, n) {
var r = et(t.currentStates, e) >= 0, i = t.style.opacity, a = r ? null : ike(t, ["opacity"], e, {
opacity: 1
});
n = n || {};
var o = n.style || {};
return o.opacity == null && (n = le({}, n), o = le({
// Already being applied 'emphasis'. DON'T mul opacity multiple times.
opacity: r ? i : a.opacity * 0.1
}, o), n.style = o), n;
}
function _T(t, e) {
var n = this.states[t];
if (this.style) {
if (t === "emphasis")
return ake(this, t, e, n);
if (t === "blur")
return ske(this, t, n);
if (t === "select")
return oke(this, t, n);
}
return n;
}
function _f(t) {
t.stateProxy = _T;
var e = t.getTextContent(), n = t.getTextGuideLine();
e && (e.stateProxy = _T), n && (n.stateProxy = _T);
}
function EB(t, e) {
!VK(t, e) && !t.__highByOuter && ll(t, RK);
}
function MB(t, e) {
!VK(t, e) && !t.__highByOuter && ll(t, kK);
}
function Zs(t, e) {
t.__highByOuter |= 1 << (e || 0), ll(t, RK);
}
function Us(t, e) {
!(t.__highByOuter &= ~(1 << (e || 0))) && ll(t, kK);
}
function NK(t) {
ll(t, NR);
}
function BR(t) {
ll(t, LK);
}
function BK(t) {
ll(t, nke);
}
function zK(t) {
ll(t, rke);
}
function VK(t, e) {
return t.__highDownSilentOnTouch && e.zrByTouch;
}
function FK(t) {
var e = t.getModel(), n = [], r = [];
e.eachComponent(function(i, a) {
var o = kR(a), s = i === "series", l = s ? t.getViewOfSeriesModel(a) : t.getViewOfComponentModel(a);
!s && r.push(l), o.isBlured && (l.group.traverse(function(u) {
LK(u);
}), s && n.push(a)), o.isBlured = !1;
}), k(r, function(i) {
i && i.toggleBlurSeries && i.toggleBlurSeries(n, !1, e);
});
}
function DA(t, e, n, r) {
var i = r.getModel();
n = n || "coordinateSystem";
function a(u, c) {
for (var f = 0; f < c.length; f++) {
var d = u.getItemGraphicEl(c[f]);
d && BR(d);
}
}
if (t != null && !(!e || e === "none")) {
var o = i.getSeriesByIndex(t), s = o.coordinateSystem;
s && s.master && (s = s.master);
var l = [];
i.eachSeries(function(u) {
var c = o === u, f = u.coordinateSystem;
f && f.master && (f = f.master);
var d = f && s ? f === s : c;
if (!// Not blur other series if blurScope series
(n === "series" && !c || n === "coordinateSystem" && !d || e === "series" && c)) {
var h = r.getViewOfSeriesModel(u);
if (h.group.traverse(function(g) {
g.__highByOuter && c && e === "self" || NR(g);
}), wr(e))
a(u.getData(), e);
else if (Ie(e))
for (var p = st(e), v = 0; v < p.length; v++)
a(u.getData(p[v]), e[p[v]]);
l.push(u), kR(u).isBlured = !0;
}
}), i.eachComponent(function(u, c) {
if (u !== "series") {
var f = r.getViewOfComponentModel(c);
f && f.toggleBlurSeries && f.toggleBlurSeries(l, !0, i);
}
});
}
}
function RA(t, e, n) {
if (!(t == null || e == null)) {
var r = n.getModel().getComponent(t, e);
if (r) {
kR(r).isBlured = !0;
var i = n.getViewOfComponentModel(r);
!i || !i.focusBlurEnabled || i.group.traverse(function(a) {
NR(a);
});
}
}
}
function lke(t, e, n) {
var r = t.seriesIndex, i = t.getData(e.dataType);
if (!i) {
process.env.NODE_ENV !== "production" && Cr("Unknown dataType " + e.dataType);
return;
}
var a = yf(i, e);
a = (ue(a) ? a[0] : a) || 0;
var o = i.getItemGraphicEl(a);
if (!o)
for (var s = i.count(), l = 0; !o && l < s; )
o = i.getItemGraphicEl(l++);
if (o) {
var u = Fe(o);
DA(r, u.focus, u.blurScope, n);
} else {
var c = t.get(["emphasis", "focus"]), f = t.get(["emphasis", "blurScope"]);
c != null && DA(r, c, f, n);
}
}
function zR(t, e, n, r) {
var i = {
focusSelf: !1,
dispatchers: null
};
if (t == null || t === "series" || e == null || n == null)
return i;
var a = r.getModel().getComponent(t, e);
if (!a)
return i;
var o = r.getViewOfComponentModel(a);
if (!o || !o.findHighDownDispatchers)
return i;
for (var s = o.findHighDownDispatchers(n), l, u = 0; u < s.length; u++)
if (process.env.NODE_ENV !== "production" && !lu(s[u]) && Cr("param should be highDownDispatcher"), Fe(s[u]).focus === "self") {
l = !0;
break;
}
return {
focusSelf: l,
dispatchers: s
};
}
function uke(t, e, n) {
process.env.NODE_ENV !== "production" && !lu(t) && Cr("param should be highDownDispatcher");
var r = Fe(t), i = zR(r.componentMainType, r.componentIndex, r.componentHighDownName, n), a = i.dispatchers, o = i.focusSelf;
a ? (o && RA(r.componentMainType, r.componentIndex, n), k(a, function(s) {
return EB(s, e);
})) : (DA(r.seriesIndex, r.focus, r.blurScope, n), r.focus === "self" && RA(r.componentMainType, r.componentIndex, n), EB(t, e));
}
function cke(t, e, n) {
process.env.NODE_ENV !== "production" && !lu(t) && Cr("param should be highDownDispatcher"), FK(n);
var r = Fe(t), i = zR(r.componentMainType, r.componentIndex, r.componentHighDownName, n).dispatchers;
i ? k(i, function(a) {
return MB(a, e);
}) : MB(t, e);
}
function fke(t, e, n) {
if (LA(e)) {
var r = e.dataType, i = t.getData(r), a = yf(i, e);
ue(a) || (a = [a]), t[e.type === kg ? "toggleSelect" : e.type === Rg ? "select" : "unselect"](a, r);
}
}
function IB(t) {
var e = t.getAllData();
k(e, function(n) {
var r = n.data, i = n.type;
r.eachItemGraphicEl(function(a, o) {
t.isSelected(o, i) ? BK(a) : zK(a);
});
});
}
function dke(t) {
var e = [];
return t.eachSeries(function(n) {
var r = n.getAllData();
k(r, function(i) {
i.data;
var a = i.type, o = n.getSelectedDataIndices();
if (o.length > 0) {
var s = {
dataIndex: o,
seriesIndex: n.seriesIndex
};
a != null && (s.dataType = a), e.push(s);
}
});
}), e;
}
function Yl(t, e, n) {
Lc(t, !0), ll(t, _f), kA(t, e, n);
}
function hke(t) {
Lc(t, !1);
}
function bn(t, e, n, r) {
r ? hke(t) : Yl(t, e, n);
}
function kA(t, e, n) {
var r = Fe(t);
e != null ? (r.focus = e, r.blurScope = n) : r.focus && (r.focus = null);
}
var DB = ["emphasis", "blur", "select"], pke = {
itemStyle: "getItemStyle",
lineStyle: "getLineStyle",
areaStyle: "getAreaStyle"
};
function Tr(t, e, n, r) {
n = n || "itemStyle";
for (var i = 0; i < DB.length; i++) {
var a = DB[i], o = e.getModel([a, n]), s = t.ensureState(a);
s.style = r ? r(o) : o[pke[n]]();
}
}
function Lc(t, e) {
var n = e === !1, r = t;
t.highDownSilentOnTouch && (r.__highDownSilentOnTouch = t.highDownSilentOnTouch), (!n || r.__highDownDispatcher) && (r.__highByOuter = r.__highByOuter || 0, r.__highDownDispatcher = !n);
}
function lu(t) {
return !!(t && t.__highDownDispatcher);
}
function vke(t, e, n) {
var r = Fe(t);
r.componentMainType = e.mainType, r.componentIndex = e.componentIndex, r.componentHighDownName = n;
}
function gke(t) {
var e = $B[t];
return e == null && PB <= 32 && (e = $B[t] = PB++), e;
}
function LA(t) {
var e = t.type;
return e === Rg || e === W_ || e === kg;
}
function RB(t) {
var e = t.type;
return e === ef || e === F_;
}
function mke(t) {
var e = DK(t);
e.normalFill = t.style.fill, e.normalStroke = t.style.stroke;
var n = t.states.select || {};
e.selectFill = n.style && n.style.fill || null, e.selectStroke = n.style && n.style.stroke || null;
}
var od = os.CMD, yke = [[], [], []], kB = Math.sqrt, bke = Math.atan2;
function WK(t, e) {
if (e) {
var n = t.data, r = t.len(), i, a, o, s, l, u, c = od.M, f = od.C, d = od.L, h = od.R, p = od.A, v = od.Q;
for (o = 0, s = 0; o < r; ) {
switch (i = n[o++], s = o, a = 0, i) {
case c:
a = 1;
break;
case d:
a = 1;
break;
case f:
a = 3;
break;
case v:
a = 2;
break;
case p:
var g = e[4], m = e[5], y = kB(e[0] * e[0] + e[1] * e[1]), b = kB(e[2] * e[2] + e[3] * e[3]), _ = bke(-e[1] / b, e[0] / y);
n[o] *= y, n[o++] += g, n[o] *= b, n[o++] += m, n[o++] *= y, n[o++] *= b, n[o++] += _, n[o++] += _, o += 2, s = o;
break;
case h:
u[0] = n[o++], u[1] = n[o++], ar(u, u, e), n[s++] = u[0], n[s++] = u[1], u[0] += n[o++], u[1] += n[o++], ar(u, u, e), n[s++] = u[0], n[s++] = u[1];
}
for (l = 0; l < a; l++) {
var O = yke[l];
O[0] = n[o++], O[1] = n[o++], ar(O, O, e), n[s++] = O[0], n[s++] = O[1];
}
}
t.increaseVersion();
}
}
var OT = Math.sqrt, Jy = Math.sin, eb = Math.cos, uv = Math.PI;
function LB(t) {
return Math.sqrt(t[0] * t[0] + t[1] * t[1]);
}
function NA(t, e) {
return (t[0] * e[0] + t[1] * e[1]) / (LB(t) * LB(e));
}
function NB(t, e) {
return (t[0] * e[1] < t[1] * e[0] ? -1 : 1) * Math.acos(NA(t, e));
}
function BB(t, e, n, r, i, a, o, s, l, u, c) {
var f = l * (uv / 180), d = eb(f) * (t - n) / 2 + Jy(f) * (e - r) / 2, h = -1 * Jy(f) * (t - n) / 2 + eb(f) * (e - r) / 2, p = d * d / (o * o) + h * h / (s * s);
p > 1 && (o *= OT(p), s *= OT(p));
var v = (i === a ? -1 : 1) * OT((o * o * (s * s) - o * o * (h * h) - s * s * (d * d)) / (o * o * (h * h) + s * s * (d * d))) || 0, g = v * o * h / s, m = v * -s * d / o, y = (t + n) / 2 + eb(f) * g - Jy(f) * m, b = (e + r) / 2 + Jy(f) * g + eb(f) * m, _ = NB([1, 0], [(d - g) / o, (h - m) / s]), O = [(d - g) / o, (h - m) / s], S = [(-1 * d - g) / o, (-1 * h - m) / s], x = NB(O, S);
if (NA(O, S) <= -1 && (x = uv), NA(O, S) >= 1 && (x = 0), x < 0) {
var C = Math.round(x / uv * 1e6) / 1e6;
x = uv * 2 + C % 2 * uv;
}
c.addData(u, y, b, o, s, _, x, f, a);
}
var _ke = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig, Oke = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
function Ske(t) {
var e = new os();
if (!t)
return e;
var n = 0, r = 0, i = n, a = r, o, s = os.CMD, l = t.match(_ke);
if (!l)
return e;
for (var u = 0; u < l.length; u++) {
for (var c = l[u], f = c.charAt(0), d = void 0, h = c.match(Oke) || [], p = h.length, v = 0; v < p; v++)
h[v] = parseFloat(h[v]);
for (var g = 0; g < p; ) {
var m = void 0, y = void 0, b = void 0, _ = void 0, O = void 0, S = void 0, x = void 0, C = n, T = r, w = void 0, P = void 0;
switch (f) {
case "l":
n += h[g++], r += h[g++], d = s.L, e.addData(d, n, r);
break;
case "L":
n = h[g++], r = h[g++], d = s.L, e.addData(d, n, r);
break;
case "m":
n += h[g++], r += h[g++], d = s.M, e.addData(d, n, r), i = n, a = r, f = "l";
break;
case "M":
n = h[g++], r = h[g++], d = s.M, e.addData(d, n, r), i = n, a = r, f = "L";
break;
case "h":
n += h[g++], d = s.L, e.addData(d, n, r);
break;
case "H":
n = h[g++], d = s.L, e.addData(d, n, r);
break;
case "v":
r += h[g++], d = s.L, e.addData(d, n, r);
break;
case "V":
r = h[g++], d = s.L, e.addData(d, n, r);
break;
case "C":
d = s.C, e.addData(d, h[g++], h[g++], h[g++], h[g++], h[g++], h[g++]), n = h[g - 2], r = h[g - 1];
break;
case "c":
d = s.C, e.addData(d, h[g++] + n, h[g++] + r, h[g++] + n, h[g++] + r, h[g++] + n, h[g++] + r), n += h[g - 2], r += h[g - 1];
break;
case "S":
m = n, y = r, w = e.len(), P = e.data, o === s.C && (m += n - P[w - 4], y += r - P[w - 3]), d = s.C, C = h[g++], T = h[g++], n = h[g++], r = h[g++], e.addData(d, m, y, C, T, n, r);
break;
case "s":
m = n, y = r, w = e.len(), P = e.data, o === s.C && (m += n - P[w - 4], y += r - P[w - 3]), d = s.C, C = n + h[g++], T = r + h[g++], n += h[g++], r += h[g++], e.addData(d, m, y, C, T, n, r);
break;
case "Q":
C = h[g++], T = h[g++], n = h[g++], r = h[g++], d = s.Q, e.addData(d, C, T, n, r);
break;
case "q":
C = h[g++] + n, T = h[g++] + r, n += h[g++], r += h[g++], d = s.Q, e.addData(d, C, T, n, r);
break;
case "T":
m = n, y = r, w = e.len(), P = e.data, o === s.Q && (m += n - P[w - 4], y += r - P[w - 3]), n = h[g++], r = h[g++], d = s.Q, e.addData(d, m, y, n, r);
break;
case "t":
m = n, y = r, w = e.len(), P = e.data, o === s.Q && (m += n - P[w - 4], y += r - P[w - 3]), n += h[g++], r += h[g++], d = s.Q, e.addData(d, m, y, n, r);
break;
case "A":
b = h[g++], _ = h[g++], O = h[g++], S = h[g++], x = h[g++], C = n, T = r, n = h[g++], r = h[g++], d = s.A, BB(C, T, n, r, S, x, b, _, O, d, e);
break;
case "a":
b = h[g++], _ = h[g++], O = h[g++], S = h[g++], x = h[g++], C = n, T = r, n += h[g++], r += h[g++], d = s.A, BB(C, T, n, r, S, x, b, _, O, d, e);
break;
}
}
(f === "z" || f === "Z") && (d = s.Z, e.addData(d), n = i, r = a), o = d;
}
return e.toStatic(), e;
}
var QK = function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.applyTransform = function(n) {
}, e;
}(ot);
function HK(t) {
return t.setData != null;
}
function GK(t, e) {
var n = Ske(t), r = le({}, e);
return r.buildPath = function(i) {
if (HK(i)) {
i.setData(n.data);
var a = i.getContext();
a && i.rebuildPath(a, 1);
} else {
var a = i;
n.rebuildPath(a, 1);
}
}, r.applyTransform = function(i) {
WK(n, i), this.dirtyShape();
}, r;
}
function jK(t, e) {
return new QK(GK(t, e));
}
function xke(t, e) {
var n = GK(t, e), r = function(i) {
q(a, i);
function a(o) {
var s = i.call(this, o) || this;
return s.applyTransform = n.applyTransform, s.buildPath = n.buildPath, s;
}
return a;
}(QK);
return r;
}
function wke(t, e) {
for (var n = [], r = t.length, i = 0; i < r; i++) {
var a = t[i];
n.push(a.getUpdatedPathProxy(!0));
}
var o = new ot(e);
return o.createPathProxy(), o.buildPath = function(s) {
if (HK(s)) {
s.appendPath(n);
var l = s.getContext();
l && s.rebuildPath(l, 1);
}
}, o;
}
function VR(t, e) {
e = e || {};
var n = new ot();
return t.shape && n.setShape(t.shape), n.setStyle(t.style), e.bakeTransform ? WK(n.path, t.getComputedTransform()) : e.toLocal ? n.setLocalTransform(t.getComputedTransform()) : n.copyTransform(t), n.buildPath = t.buildPath, n.applyTransform = n.applyTransform, n.z = t.z, n.z2 = t.z2, n.zlevel = t.zlevel, n;
}
var Cke = /* @__PURE__ */ function() {
function t() {
this.cx = 0, this.cy = 0, this.r = 0;
}
return t;
}(), ZK = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new Cke();
}, e.prototype.buildPath = function(n, r) {
n.moveTo(r.cx + r.r, r.cy), n.arc(r.cx, r.cy, r.r, 0, Math.PI * 2);
}, e;
}(ot);
ZK.prototype.type = "circle";
const ul = ZK;
var Tke = /* @__PURE__ */ function() {
function t() {
this.cx = 0, this.cy = 0, this.rx = 0, this.ry = 0;
}
return t;
}(), UK = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new Tke();
}, e.prototype.buildPath = function(n, r) {
var i = 0.5522848, a = r.cx, o = r.cy, s = r.rx, l = r.ry, u = s * i, c = l * i;
n.moveTo(a - s, o), n.bezierCurveTo(a - s, o - c, a - u, o - l, a, o - l), n.bezierCurveTo(a + u, o - l, a + s, o - c, a + s, o), n.bezierCurveTo(a + s, o + c, a + u, o + l, a, o + l), n.bezierCurveTo(a - u, o + l, a - s, o + c, a - s, o), n.closePath();
}, e;
}(ot);
UK.prototype.type = "ellipse";
const Yx = UK;
var XK = Math.PI, ST = XK * 2, Ku = Math.sin, sd = Math.cos, Pke = Math.acos, Er = Math.atan2, zB = Math.abs, Lg = Math.sqrt, Xv = Math.max, xo = Math.min, ja = 1e-4;
function $ke(t, e, n, r, i, a, o, s) {
var l = n - t, u = r - e, c = o - i, f = s - a, d = f * l - c * u;
if (!(d * d < ja))
return d = (c * (e - a) - f * (t - i)) / d, [t + d * l, e + d * u];
}
function tb(t, e, n, r, i, a, o) {
var s = t - n, l = e - r, u = (o ? a : -a) / Lg(s * s + l * l), c = u * l, f = -u * s, d = t + c, h = e + f, p = n + c, v = r + f, g = (d + p) / 2, m = (h + v) / 2, y = p - d, b = v - h, _ = y * y + b * b, O = i - a, S = d * v - p * h, x = (b < 0 ? -1 : 1) * Lg(Xv(0, O * O * _ - S * S)), C = (S * b - y * x) / _, T = (-S * y - b * x) / _, w = (S * b + y * x) / _, P = (-S * y + b * x) / _, $ = C - g, A = T - m, D = w - g, E = P - m;
return $ * $ + A * A > D * D + E * E && (C = w, T = P), {
cx: C,
cy: T,
x0: -c,
y0: -f,
x1: C * (i / O - 1),
y1: T * (i / O - 1)
};
}
function Ake(t) {
var e;
if (ue(t)) {
var n = t.length;
if (!n)
return t;
n === 1 ? e = [t[0], t[0], 0, 0] : n === 2 ? e = [t[0], t[0], t[1], t[1]] : n === 3 ? e = t.concat(t[2]) : e = t;
} else
e = [t, t, t, t];
return e;
}
function Eke(t, e) {
var n, r = Xv(e.r, 0), i = Xv(e.r0 || 0, 0), a = r > 0, o = i > 0;
if (!(!a && !o)) {
if (a || (r = i, i = 0), i > r) {
var s = r;
r = i, i = s;
}
var l = e.startAngle, u = e.endAngle;
if (!(isNaN(l) || isNaN(u))) {
var c = e.cx, f = e.cy, d = !!e.clockwise, h = zB(u - l), p = h > ST && h % ST;
if (p > ja && (h = p), !(r > ja))
t.moveTo(c, f);
else if (h > ST - ja)
t.moveTo(c + r * sd(l), f + r * Ku(l)), t.arc(c, f, r, l, u, !d), i > ja && (t.moveTo(c + i * sd(u), f + i * Ku(u)), t.arc(c, f, i, u, l, d));
else {
var v = void 0, g = void 0, m = void 0, y = void 0, b = void 0, _ = void 0, O = void 0, S = void 0, x = void 0, C = void 0, T = void 0, w = void 0, P = void 0, $ = void 0, A = void 0, D = void 0, E = r * sd(l), R = r * Ku(l), N = i * sd(u), V = i * Ku(u), B = h > ja;
if (B) {
var W = e.cornerRadius;
W && (n = Ake(W), v = n[0], g = n[1], m = n[2], y = n[3]);
var F = zB(r - i) / 2;
if (b = xo(F, m), _ = xo(F, y), O = xo(F, v), S = xo(F, g), T = x = Xv(b, _), w = C = Xv(O, S), (x > ja || C > ja) && (P = r * sd(u), $ = r * Ku(u), A = i * sd(l), D = i * Ku(l), h < XK)) {
var Q = $ke(E, R, A, D, P, $, N, V);
if (Q) {
var Z = E - Q[0], ne = R - Q[1], ee = P - Q[0], oe = $ - Q[1], K = 1 / Ku(Pke((Z * ee + ne * oe) / (Lg(Z * Z + ne * ne) * Lg(ee * ee + oe * oe))) / 2), ie = Lg(Q[0] * Q[0] + Q[1] * Q[1]);
T = xo(x, (r - ie) / (K + 1)), w = xo(C, (i - ie) / (K - 1));
}
}
}
if (!B)
t.moveTo(c + E, f + R);
else if (T > ja) {
var X = xo(m, T), H = xo(y, T), G = tb(A, D, E, R, r, X, d), re = tb(P, $, N, V, r, H, d);
t.moveTo(c + G.cx + G.x0, f + G.cy + G.y0), T < x && X === H ? t.arc(c + G.cx, f + G.cy, T, Er(G.y0, G.x0), Er(re.y0, re.x0), !d) : (X > 0 && t.arc(c + G.cx, f + G.cy, X, Er(G.y0, G.x0), Er(G.y1, G.x1), !d), t.arc(c, f, r, Er(G.cy + G.y1, G.cx + G.x1), Er(re.cy + re.y1, re.cx + re.x1), !d), H > 0 && t.arc(c + re.cx, f + re.cy, H, Er(re.y1, re.x1), Er(re.y0, re.x0), !d));
} else
t.moveTo(c + E, f + R), t.arc(c, f, r, l, u, !d);
if (!(i > ja) || !B)
t.lineTo(c + N, f + V);
else if (w > ja) {
var X = xo(v, w), H = xo(g, w), G = tb(N, V, P, $, i, -H, d), re = tb(E, R, A, D, i, -X, d);
t.lineTo(c + G.cx + G.x0, f + G.cy + G.y0), w < C && X === H ? t.arc(c + G.cx, f + G.cy, w, Er(G.y0, G.x0), Er(re.y0, re.x0), !d) : (H > 0 && t.arc(c + G.cx, f + G.cy, H, Er(G.y0, G.x0), Er(G.y1, G.x1), !d), t.arc(c, f, i, Er(G.cy + G.y1, G.cx + G.x1), Er(re.cy + re.y1, re.cx + re.x1), d), X > 0 && t.arc(c + re.cx, f + re.cy, X, Er(re.y1, re.x1), Er(re.y0, re.x0), !d));
} else
t.lineTo(c + N, f + V), t.arc(c, f, i, u, l, d);
}
t.closePath();
}
}
}
var Mke = /* @__PURE__ */ function() {
function t() {
this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0, this.cornerRadius = 0;
}
return t;
}(), YK = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new Mke();
}, e.prototype.buildPath = function(n, r) {
Eke(n, r);
}, e.prototype.isZeroArea = function() {
return this.shape.startAngle === this.shape.endAngle || this.shape.r === this.shape.r0;
}, e;
}(ot);
YK.prototype.type = "sector";
const ii = YK;
var Ike = /* @__PURE__ */ function() {
function t() {
this.cx = 0, this.cy = 0, this.r = 0, this.r0 = 0;
}
return t;
}(), qK = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new Ike();
}, e.prototype.buildPath = function(n, r) {
var i = r.cx, a = r.cy, o = Math.PI * 2;
n.moveTo(i + r.r, a), n.arc(i, a, r.r, 0, o, !1), n.moveTo(i + r.r0, a), n.arc(i, a, r.r0, 0, o, !0);
}, e;
}(ot);
qK.prototype.type = "ring";
const V0 = qK;
function Dke(t, e, n, r) {
var i = [], a = [], o = [], s = [], l, u, c, f;
if (r) {
c = [1 / 0, 1 / 0], f = [-1 / 0, -1 / 0];
for (var d = 0, h = t.length; d < h; d++)
$s(c, c, t[d]), As(f, f, t[d]);
$s(c, c, r[0]), As(f, f, r[1]);
}
for (var d = 0, h = t.length; d < h; d++) {
var p = t[d];
if (n)
l = t[d ? d - 1 : h - 1], u = t[(d + 1) % h];
else if (d === 0 || d === h - 1) {
i.push(Uo(t[d]));
continue;
} else
l = t[d - 1], u = t[d + 1];
kl(a, u, l), Pg(a, a, e);
var v = q1(p, l), g = q1(p, u), m = v + g;
m !== 0 && (v /= m, g /= m), Pg(o, a, -v), Pg(s, a, g);
var y = sA([], p, o), b = sA([], p, s);
r && (As(y, y, c), $s(y, y, f), As(b, b, c), $s(b, b, f)), i.push(y), i.push(b);
}
return n && i.push(i.shift()), i;
}
function KK(t, e, n) {
var r = e.smooth, i = e.points;
if (i && i.length >= 2) {
if (r) {
var a = Dke(i, r, n, e.smoothConstraint);
t.moveTo(i[0][0], i[0][1]);
for (var o = i.length, s = 0; s < (n ? o : o - 1); s++) {
var l = a[s * 2], u = a[s * 2 + 1], c = i[(s + 1) % o];
t.bezierCurveTo(l[0], l[1], u[0], u[1], c[0], c[1]);
}
} else {
t.moveTo(i[0][0], i[0][1]);
for (var s = 1, f = i.length; s < f; s++)
t.lineTo(i[s][0], i[s][1]);
}
n && t.closePath();
}
}
var Rke = /* @__PURE__ */ function() {
function t() {
this.points = null, this.smooth = 0, this.smoothConstraint = null;
}
return t;
}(), JK = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new Rke();
}, e.prototype.buildPath = function(n, r) {
KK(n, r, !0);
}, e;
}(ot);
JK.prototype.type = "polygon";
const ai = JK;
var kke = /* @__PURE__ */ function() {
function t() {
this.points = null, this.percent = 1, this.smooth = 0, this.smoothConstraint = null;
}
return t;
}(), eJ = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new kke();
}, e.prototype.buildPath = function(n, r) {
KK(n, r, !1);
}, e;
}(ot);
eJ.prototype.type = "polyline";
const oi = eJ;
var Lke = {}, Nke = /* @__PURE__ */ function() {
function t() {
this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
}
return t;
}(), tJ = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new Nke();
}, e.prototype.buildPath = function(n, r) {
var i, a, o, s;
if (this.subPixelOptimize) {
var l = PK(Lke, r, this.style);
i = l.x1, a = l.y1, o = l.x2, s = l.y2;
} else
i = r.x1, a = r.y1, o = r.x2, s = r.y2;
var u = r.percent;
u !== 0 && (n.moveTo(i, a), u < 1 && (o = i * (1 - u) + o * u, s = a * (1 - u) + s * u), n.lineTo(o, s));
}, e.prototype.pointAt = function(n) {
var r = this.shape;
return [
r.x1 * (1 - n) + r.x2 * n,
r.y1 * (1 - n) + r.y2 * n
];
}, e;
}(ot);
tJ.prototype.type = "line";
const Un = tJ;
var si = [], Bke = /* @__PURE__ */ function() {
function t() {
this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.percent = 1;
}
return t;
}();
function VB(t, e, n) {
var r = t.cpx2, i = t.cpy2;
return r != null || i != null ? [
(n ? H6 : Gn)(t.x1, t.cpx1, t.cpx2, t.x2, e),
(n ? H6 : Gn)(t.y1, t.cpy1, t.cpy2, t.y2, e)
] : [
(n ? dA : ir)(t.x1, t.cpx1, t.x2, e),
(n ? dA : ir)(t.y1, t.cpy1, t.y2, e)
];
}
var nJ = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new Bke();
}, e.prototype.buildPath = function(n, r) {
var i = r.x1, a = r.y1, o = r.x2, s = r.y2, l = r.cpx1, u = r.cpy1, c = r.cpx2, f = r.cpy2, d = r.percent;
d !== 0 && (n.moveTo(i, a), c == null || f == null ? (d < 1 && (Sm(i, l, o, d, si), l = si[1], o = si[2], Sm(a, u, s, d, si), u = si[1], s = si[2]), n.quadraticCurveTo(l, u, o, s)) : (d < 1 && (su(i, l, c, o, d, si), l = si[1], c = si[2], o = si[3], su(a, u, f, s, d, si), u = si[1], f = si[2], s = si[3]), n.bezierCurveTo(l, u, c, f, o, s)));
}, e.prototype.pointAt = function(n) {
return VB(this.shape, n, !1);
}, e.prototype.tangentAt = function(n) {
var r = VB(this.shape, n, !0);
return kf(r, r);
}, e;
}(ot);
nJ.prototype.type = "bezier-curve";
const F0 = nJ;
var zke = /* @__PURE__ */ function() {
function t() {
this.cx = 0, this.cy = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0;
}
return t;
}(), rJ = function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new zke();
}, e.prototype.buildPath = function(n, r) {
var i = r.cx, a = r.cy, o = Math.max(r.r, 0), s = r.startAngle, l = r.endAngle, u = r.clockwise, c = Math.cos(s), f = Math.sin(s);
n.moveTo(c * o + i, f * o + a), n.arc(i, a, o, s, l, !u);
}, e;
}(ot);
rJ.prototype.type = "arc";
const qx = rJ;
var Vke = function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "compound", n;
}
return e.prototype._updatePathDirty = function() {
for (var n = this.shape.paths, r = this.shapeChanged(), i = 0; i < n.length; i++)
r = r || n[i].shapeChanged();
r && this.dirtyShape();
}, e.prototype.beforeBrush = function() {
this._updatePathDirty();
for (var n = this.shape.paths || [], r = this.getGlobalScale(), i = 0; i < n.length; i++)
n[i].path || n[i].createPathProxy(), n[i].path.setScale(r[0], r[1], n[i].segmentIgnoreThreshold);
}, e.prototype.buildPath = function(n, r) {
for (var i = r.paths || [], a = 0; a < i.length; a++)
i[a].buildPath(n, i[a].shape, !0);
}, e.prototype.afterBrush = function() {
for (var n = this.shape.paths || [], r = 0; r < n.length; r++)
n[r].pathUpdated();
}, e.prototype.getBoundingRect = function() {
return this._updatePathDirty.call(this), ot.prototype.getBoundingRect.call(this);
}, e;
}(ot);
const Kx = Vke;
var iJ = function() {
function t(e) {
this.colorStops = e || [];
}
return t.prototype.addColorStop = function(e, n) {
this.colorStops.push({
offset: e,
color: n
});
}, t;
}(), Fke = function(t) {
q(e, t);
function e(n, r, i, a, o, s) {
var l = t.call(this, o) || this;
return l.x = n ?? 0, l.y = r ?? 0, l.x2 = i ?? 1, l.y2 = a ?? 0, l.type = "linear", l.global = s || !1, l;
}
return e;
}(iJ);
const yp = Fke;
var Wke = function(t) {
q(e, t);
function e(n, r, i, a, o) {
var s = t.call(this, a) || this;
return s.x = n ?? 0.5, s.y = r ?? 0.5, s.r = i ?? 0.5, s.type = "radial", s.global = o || !1, s;
}
return e;
}(iJ);
const FR = Wke;
var Ju = [0, 0], ec = [0, 0], nb = new Ke(), rb = new Ke(), Qke = function() {
function t(e, n) {
this._corners = [], this._axes = [], this._origin = [0, 0];
for (var r = 0; r < 4; r++)
this._corners[r] = new Ke();
for (var r = 0; r < 2; r++)
this._axes[r] = new Ke();
e && this.fromBoundingRect(e, n);
}
return t.prototype.fromBoundingRect = function(e, n) {
var r = this._corners, i = this._axes, a = e.x, o = e.y, s = a + e.width, l = o + e.height;
if (r[0].set(a, o), r[1].set(s, o), r[2].set(s, l), r[3].set(a, l), n)
for (var u = 0; u < 4; u++)
r[u].transform(n);
Ke.sub(i[0], r[1], r[0]), Ke.sub(i[1], r[3], r[0]), i[0].normalize(), i[1].normalize();
for (var u = 0; u < 2; u++)
this._origin[u] = i[u].dot(r[0]);
}, t.prototype.intersect = function(e, n) {
var r = !0, i = !n;
return nb.set(1 / 0, 1 / 0), rb.set(0, 0), !this._intersectCheckOneSide(this, e, nb, rb, i, 1) && (r = !1, i) || !this._intersectCheckOneSide(e, this, nb, rb, i, -1) && (r = !1, i) || i || Ke.copy(n, r ? nb : rb), r;
}, t.prototype._intersectCheckOneSide = function(e, n, r, i, a, o) {
for (var s = !0, l = 0; l < 2; l++) {
var u = this._axes[l];
if (this._getProjMinMaxOnAxis(l, e._corners, Ju), this._getProjMinMaxOnAxis(l, n._corners, ec), Ju[1] < ec[0] || Ju[0] > ec[1]) {
if (s = !1, a)
return s;
var c = Math.abs(ec[0] - Ju[1]), f = Math.abs(Ju[0] - ec[1]);
Math.min(c, f) > i.len() && (c < f ? Ke.scale(i, u, -c * o) : Ke.scale(i, u, f * o));
} else if (r) {
var c = Math.abs(ec[0] - Ju[1]), f = Math.abs(Ju[0] - ec[1]);
Math.min(c, f) < r.len() && (c < f ? Ke.scale(r, u, c * o) : Ke.scale(r, u, -f * o));
}
}
return s;
}, t.prototype._getProjMinMaxOnAxis = function(e, n, r) {
for (var i = this._axes[e], a = this._origin, o = n[0].dot(i) + a[e], s = o, l = o, u = 1; u < n.length; u++) {
var c = n[u].dot(i) + a[e];
s = Math.min(c, s), l = Math.max(c, l);
}
r[0] = s, r[1] = l;
}, t;
}();
const uO = Qke;
var Hke = [], Gke = function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.notClear = !0, n.incremental = !0, n._displayables = [], n._temporaryDisplayables = [], n._cursor = 0, n;
}
return e.prototype.traverse = function(n, r) {
n.call(r, this);
}, e.prototype.useStyle = function() {
this.style = {};
}, e.prototype.getCursor = function() {
return this._cursor;
}, e.prototype.innerAfterBrush = function() {
this._cursor = this._displayables.length;
}, e.prototype.clearDisplaybles = function() {
this._displayables = [], this._temporaryDisplayables = [], this._cursor = 0, this.markRedraw(), this.notClear = !1;
}, e.prototype.clearTemporalDisplayables = function() {
this._temporaryDisplayables = [];
}, e.prototype.addDisplayable = function(n, r) {
r ? this._temporaryDisplayables.push(n) : this._displayables.push(n), this.markRedraw();
}, e.prototype.addDisplayables = function(n, r) {
r = r || !1;
for (var i = 0; i < n.length; i++)
this.addDisplayable(n[i], r);
}, e.prototype.getDisplayables = function() {
return this._displayables;
}, e.prototype.getTemporalDisplayables = function() {
return this._temporaryDisplayables;
}, e.prototype.eachPendingDisplayable = function(n) {
for (var r = this._cursor; r < this._displayables.length; r++)
n && n(this._displayables[r]);
for (var r = 0; r < this._temporaryDisplayables.length; r++)
n && n(this._temporaryDisplayables[r]);
}, e.prototype.update = function() {
this.updateTransform();
for (var n = this._cursor; n < this._displayables.length; n++) {
var r = this._displayables[n];
r.parent = this, r.update(), r.parent = null;
}
for (var n = 0; n < this._temporaryDisplayables.length; n++) {
var r = this._temporaryDisplayables[n];
r.parent = this, r.update(), r.parent = null;
}
}, e.prototype.getBoundingRect = function() {
if (!this._rect) {
for (var n = new Je(1 / 0, 1 / 0, -1 / 0, -1 / 0), r = 0; r < this._displayables.length; r++) {
var i = this._displayables[r], a = i.getBoundingRect().clone();
i.needLocalTransform() && a.applyTransform(i.getLocalTransform(Hke)), n.union(a);
}
this._rect = n;
}
return this._rect;
}, e.prototype.contain = function(n, r) {
var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
if (a.contain(i[0], i[1]))
for (var o = 0; o < this._displayables.length; o++) {
var s = this._displayables[o];
if (s.contain(n, r))
return !0;
}
return !1;
}, e;
}(Da);
const aJ = Gke;
var oJ = bt();
function bp(t, e, n, r, i) {
var a;
if (e && e.ecModel) {
var o = e.ecModel.getUpdatePayload();
a = o && o.animation;
}
var s = e && e.isAnimationEnabled(), l = t === "update";
if (s) {
var u = void 0, c = void 0, f = void 0;
r ? (u = We(r.duration, 200), c = We(r.easing, "cubicOut"), f = 0) : (u = e.getShallow(l ? "animationDurationUpdate" : "animationDuration"), c = e.getShallow(l ? "animationEasingUpdate" : "animationEasing"), f = e.getShallow(l ? "animationDelayUpdate" : "animationDelay")), a && (a.duration != null && (u = a.duration), a.easing != null && (c = a.easing), a.delay != null && (f = a.delay)), Me(f) && (f = f(n, i)), Me(u) && (u = u(n));
var d = {
duration: u || 0,
delay: f,
easing: c
};
return d;
} else
return null;
}
function WR(t, e, n, r, i, a, o) {
var s = !1, l;
Me(i) ? (o = a, a = i, i = null) : Ie(i) && (a = i.cb, o = i.during, s = i.isFrom, l = i.removeOpt, i = i.dataIndex);
var u = t === "leave";
u || e.stopAnimation("leave");
var c = bp(t, r, i, u ? l || {} : null, r && r.getAnimationDelayParams ? r.getAnimationDelayParams(e, i) : null);
if (c && c.duration > 0) {
var f = c.duration, d = c.delay, h = c.easing, p = {
duration: f,
delay: d || 0,
easing: h,
done: a,
force: !!a || !!o,
// Set to final state in update/init animation.
// So the post processing based on the path shape can be done correctly.
setToFinal: !u,
scope: t,
during: o
};
s ? e.animateFrom(n, p) : e.animateTo(n, p);
} else
e.stopAnimation(), !s && e.attr(n), o && o(1), a && a();
}
function Ct(t, e, n, r, i, a) {
WR("update", t, e, n, r, i, a);
}
function Yt(t, e, n, r, i, a) {
WR("enter", t, e, n, r, i, a);
}
function rh(t) {
if (!t.__zr)
return !0;
for (var e = 0; e < t.animators.length; e++) {
var n = t.animators[e];
if (n.scope === "leave")
return !0;
}
return !1;
}
function uu(t, e, n, r, i, a) {
rh(t) || WR("leave", t, e, n, r, i, a);
}
function FB(t, e, n, r) {
t.removeTextContent(), t.removeTextGuideLine(), uu(t, {
style: {
opacity: 0
}
}, e, n, r);
}
function $m(t, e, n) {
function r() {
t.parent && t.parent.remove(t);
}
t.isGroup ? t.traverse(function(i) {
i.isGroup || FB(i, e, n, r);
}) : FB(t, e, n, r);
}
function uo(t) {
oJ(t).oldStyle = t.style;
}
function jke(t) {
return oJ(t).oldStyle;
}
var cO = Math.max, fO = Math.min, BA = {};
function sJ(t) {
return ot.extend(t);
}
var Zke = xke;
function lJ(t, e) {
return Zke(t, e);
}
function Na(t, e) {
BA[t] = e;
}
function Jx(t) {
if (BA.hasOwnProperty(t))
return BA[t];
}
function W0(t, e, n, r) {
var i = jK(t, e);
return n && (r === "center" && (n = uJ(n, i.getBoundingRect())), HR(i, n)), i;
}
function QR(t, e, n) {
var r = new lr({
style: {
image: t,
x: e.x,
y: e.y,
width: e.width,
height: e.height
},
onload: function(i) {
if (n === "center") {
var a = {
width: i.width,
height: i.height
};
r.setStyle(uJ(e, a));
}
}
});
return r;
}
function uJ(t, e) {
var n = e.width / e.height, r = t.height * n, i;
r <= t.width ? i = t.height : (r = t.width, i = r / n);
var a = t.x + t.width / 2, o = t.y + t.height / 2;
return {
x: a - r / 2,
y: o - i / 2,
width: r,
height: i
};
}
var Bi = wke;
function HR(t, e) {
if (t.applyTransform) {
var n = t.getBoundingRect(), r = n.calculateTransform(e);
t.applyTransform(r);
}
}
function Hh(t, e) {
return PK(t, t, {
lineWidth: e
}), t;
}
function Uke(t) {
return $K(t.shape, t.shape, t.style), t;
}
var Q_ = kc;
function ql(t, e) {
for (var n = R0([]); t && t !== e; )
Xo(n, t.getLocalTransform(), n), t = t.parent;
return n;
}
function ro(t, e, n) {
return e && !wr(e) && (e = Es.getLocalTransform(e)), n && (e = Lf([], e)), ar([], t, e);
}
function ew(t, e, n) {
var r = e[4] === 0 || e[5] === 0 || e[0] === 0 ? 1 : Math.abs(2 * e[4] / e[0]), i = e[4] === 0 || e[5] === 0 || e[2] === 0 ? 1 : Math.abs(2 * e[4] / e[2]), a = [t === "left" ? -r : t === "right" ? r : 0, t === "top" ? -i : t === "bottom" ? i : 0];
return a = ro(a, e, n), Math.abs(a[0]) > Math.abs(a[1]) ? a[0] > 0 ? "right" : "left" : a[1] > 0 ? "bottom" : "top";
}
function WB(t) {
return !t.isGroup;
}
function Xke(t) {
return t.shape != null;
}
function Q0(t, e, n) {
if (!t || !e)
return;
function r(o) {
var s = {};
return o.traverse(function(l) {
WB(l) && l.anid && (s[l.anid] = l);
}), s;
}
function i(o) {
var s = {
x: o.x,
y: o.y,
rotation: o.rotation
};
return Xke(o) && (s.shape = le({}, o.shape)), s;
}
var a = r(t);
e.traverse(function(o) {
if (WB(o) && o.anid) {
var s = a[o.anid];
if (s) {
var l = i(o);
o.attr(i(s)), Ct(o, l, n, Fe(o).dataIndex);
}
}
});
}
function GR(t, e) {
return ce(t, function(n) {
var r = n[0];
r = cO(r, e.x), r = fO(r, e.x + e.width);
var i = n[1];
return i = cO(i, e.y), i = fO(i, e.y + e.height), [r, i];
});
}
function cJ(t, e) {
var n = cO(t.x, e.x), r = fO(t.x + t.width, e.x + e.width), i = cO(t.y, e.y), a = fO(t.y + t.height, e.y + e.height);
if (r >= n && a >= i)
return {
x: n,
y: i,
width: r - n,
height: a - i
};
}
function _p(t, e, n) {
var r = le({
rectHover: !0
}, e), i = r.style = {
strokeNoScale: !0
};
if (n = n || {
x: -1,
y: -1,
width: 2,
height: 2
}, t)
return t.indexOf("image://") === 0 ? (i.image = t.slice(8), Re(i, n), new lr(r)) : W0(t.replace("path://", ""), r, n, "center");
}
function Yv(t, e, n, r, i) {
for (var a = 0, o = i[i.length - 1]; a < i.length; a++) {
var s = i[a];
if (fJ(t, e, n, r, s[0], s[1], o[0], o[1]))
return !0;
o = s;
}
}
function fJ(t, e, n, r, i, a, o, s) {
var l = n - t, u = r - e, c = o - i, f = s - a, d = xT(c, f, l, u);
if (Yke(d))
return !1;
var h = t - i, p = e - a, v = xT(h, p, l, u) / d;
if (v < 0 || v > 1)
return !1;
var g = xT(h, p, c, f) / d;
return !(g < 0 || g > 1);
}
function xT(t, e, n, r) {
return t * r - n * e;
}
function Yke(t) {
return t <= 1e-6 && t >= -1e-6;
}
function Op(t) {
var e = t.itemTooltipOption, n = t.componentModel, r = t.itemName, i = Oe(e) ? {
formatter: e
} : e, a = n.mainType, o = n.componentIndex, s = {
componentType: a,
name: r,
$vars: ["name"]
};
s[a + "Index"] = o;
var l = t.formatterParamsExtra;
l && k(st(l), function(c) {
Ce(s, c) || (s[c] = l[c], s.$vars.push(c));
});
var u = Fe(t.el);
u.componentMainType = a, u.componentIndex = o, u.tooltipConfig = {
name: r,
option: Re({
content: r,
encodeHTMLContent: !0,
formatterParams: s
}, i)
};
}
function QB(t, e) {
var n;
t.isGroup && (n = e(t)), n || t.traverse(e);
}
function Tu(t, e) {
if (t)
if (ue(t))
for (var n = 0; n < t.length; n++)
QB(t[n], e);
else
QB(t, e);
}
Na("circle", ul);
Na("ellipse", Yx);
Na("sector", ii);
Na("ring", V0);
Na("polygon", ai);
Na("polyline", oi);
Na("rect", mt);
Na("line", Un);
Na("bezierCurve", F0);
Na("arc", qx);
const Nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
Arc: qx,
BezierCurve: F0,
BoundingRect: Je,
Circle: ul,
CompoundPath: Kx,
Ellipse: Yx,
Group: Ve,
Image: lr,
IncrementalDisplayable: aJ,
Line: Un,
LinearGradient: yp,
OrientedBoundingRect: uO,
Path: ot,
Point: Ke,
Polygon: ai,
Polyline: oi,
RadialGradient: FR,
Rect: mt,
Ring: V0,
Sector: ii,
Text: gt,
applyTransform: ro,
clipPointsByRect: GR,
clipRectByRect: cJ,
createIcon: _p,
extendPath: lJ,
extendShape: sJ,
getShapeClass: Jx,
getTransform: ql,
groupTransition: Q0,
initProps: Yt,
isElementRemoved: rh,
lineLineIntersect: fJ,
linePolygonIntersect: Yv,
makeImage: QR,
makePath: W0,
mergePath: Bi,
registerShape: Na,
removeElement: uu,
removeElementWithFadeOut: $m,
resizePath: HR,
setTooltipConfig: Op,
subPixelOptimize: Q_,
subPixelOptimizeLine: Hh,
subPixelOptimizeRect: Uke,
transformDirection: ew,
traverseElements: Tu,
updateProps: Ct
}, Symbol.toStringTag, { value: "Module" }));
var tw = {};
function dJ(t, e) {
for (var n = 0; n < ri.length; n++) {
var r = ri[n], i = e[r], a = t.ensureState(r);
a.style = a.style || {}, a.style.text = i;
}
var o = t.currentStates.slice();
t.clearStates(!0), t.setStyle({
text: e.normal
}), t.useStates(o, !0);
}
function zA(t, e, n) {
var r = t.labelFetcher, i = t.labelDataIndex, a = t.labelDimIndex, o = e.normal, s;
r && (s = r.getFormattedLabel(i, "normal", null, a, o && o.get("formatter"), n != null ? {
interpolatedValue: n
} : null)), s == null && (s = Me(t.defaultText) ? t.defaultText(i, t, n) : t.defaultText);
for (var l = {
normal: s
}, u = 0; u < ri.length; u++) {
var c = ri[u], f = e[c];
l[c] = We(r ? r.getFormattedLabel(i, c, null, a, f && f.get("formatter")) : null, s);
}
return l;
}
function Pr(t, e, n, r) {
n = n || tw;
for (var i = t instanceof gt, a = !1, o = 0; o < Pm.length; o++) {
var s = e[Pm[o]];
if (s && s.getShallow("show")) {
a = !0;
break;
}
}
var l = i ? t : t.getTextContent();
if (a) {
i || (l || (l = new gt(), t.setTextContent(l)), t.stateProxy && (l.stateProxy = t.stateProxy));
var u = zA(n, e), c = e.normal, f = !!c.getShallow("show"), d = Zt(c, r && r.normal, n, !1, !i);
d.text = u.normal, i || t.setTextConfig(dO(c, n, !1));
for (var o = 0; o < ri.length; o++) {
var h = ri[o], s = e[h];
if (s) {
var p = l.ensureState(h), v = !!We(s.getShallow("show"), f);
if (v !== f && (p.ignore = !v), p.style = Zt(s, r && r[h], n, !0, !i), p.style.text = u[h], !i) {
var g = t.ensureState(h);
g.textConfig = dO(s, n, !0);
}
}
}
l.silent = !!c.getShallow("silent"), l.style.x != null && (d.x = l.style.x), l.style.y != null && (d.y = l.style.y), l.ignore = !f, l.useStyle(d), l.dirty(), n.enableTextSetter && (Sp(l).setLabelText = function(m) {
var y = zA(n, e, m);
dJ(l, y);
});
} else l && (l.ignore = !0);
t.dirty();
}
function er(t, e) {
e = e || "label";
for (var n = {
normal: t.getModel(e)
}, r = 0; r < ri.length; r++) {
var i = ri[r];
n[i] = t.getModel([i, e]);
}
return n;
}
function Zt(t, e, n, r, i) {
var a = {};
return qke(a, t, n, r, i), e && le(a, e), a;
}
function dO(t, e, n) {
e = e || {};
var r = {}, i, a = t.getShallow("rotate"), o = We(t.getShallow("distance"), n ? null : 5), s = t.getShallow("offset");
return i = t.getShallow("position") || (n ? null : "inside"), i === "outside" && (i = e.defaultOutsidePosition || "top"), i != null && (r.position = i), s != null && (r.offset = s), a != null && (a *= Math.PI / 180, r.rotation = a), o != null && (r.distance = o), r.outsideFill = t.get("color") === "inherit" ? e.inheritColor || null : "auto", r;
}
function qke(t, e, n, r, i) {
n = n || tw;
var a = e.ecModel, o = a && a.option.textStyle, s = Kke(e), l;
if (s) {
l = {};
for (var u in s)
if (s.hasOwnProperty(u)) {
var c = e.getModel(["rich", u]);
ZB(l[u] = {}, c, o, n, r, i, !1, !0);
}
}
l && (t.rich = l);
var f = e.get("overflow");
f && (t.overflow = f);
var d = e.get("minMargin");
d != null && (t.margin = d), ZB(t, e, o, n, r, i, !0, !1);
}
function Kke(t) {
for (var e; t && t !== t.ecModel; ) {
var n = (t.option || tw).rich;
if (n) {
e = e || {};
for (var r = st(n), i = 0; i < r.length; i++) {
var a = r[i];
e[a] = 1;
}
}
t = t.parentModel;
}
return e;
}
var HB = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], GB = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"], jB = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"];
function ZB(t, e, n, r, i, a, o, s) {
n = !i && n || tw;
var l = r && r.inheritColor, u = e.getShallow("color"), c = e.getShallow("textBorderColor"), f = We(e.getShallow("opacity"), n.opacity);
(u === "inherit" || u === "auto") && (process.env.NODE_ENV !== "production" && u === "auto" && Cn("color: 'auto'", "color: 'inherit'"), l ? u = l : u = null), (c === "inherit" || c === "auto") && (process.env.NODE_ENV !== "production" && c === "auto" && Cn("color: 'auto'", "color: 'inherit'"), l ? c = l : c = null), a || (u = u || n.color, c = c || n.textBorderColor), u != null && (t.fill = u), c != null && (t.stroke = c);
var d = We(e.getShallow("textBorderWidth"), n.textBorderWidth);
d != null && (t.lineWidth = d);
var h = We(e.getShallow("textBorderType"), n.textBorderType);
h != null && (t.lineDash = h);
var p = We(e.getShallow("textBorderDashOffset"), n.textBorderDashOffset);
p != null && (t.lineDashOffset = p), !i && f == null && !s && (f = r && r.defaultOpacity), f != null && (t.opacity = f), !i && !a && t.fill == null && r.inheritColor && (t.fill = r.inheritColor);
for (var v = 0; v < HB.length; v++) {
var g = HB[v], m = We(e.getShallow(g), n[g]);
m != null && (t[g] = m);
}
for (var v = 0; v < GB.length; v++) {
var g = GB[v], m = e.getShallow(g);
m != null && (t[g] = m);
}
if (t.verticalAlign == null) {
var y = e.getShallow("baseline");
y != null && (t.verticalAlign = y);
}
if (!o || !r.disableBox) {
for (var v = 0; v < jB.length; v++) {
var g = jB[v], m = e.getShallow(g);
m != null && (t[g] = m);
}
var b = e.getShallow("borderType");
b != null && (t.borderDash = b), (t.backgroundColor === "auto" || t.backgroundColor === "inherit") && l && (process.env.NODE_ENV !== "production" && t.backgroundColor === "auto" && Cn("backgroundColor: 'auto'", "backgroundColor: 'inherit'"), t.backgroundColor = l), (t.borderColor === "auto" || t.borderColor === "inherit") && l && (process.env.NODE_ENV !== "production" && t.borderColor === "auto" && Cn("borderColor: 'auto'", "borderColor: 'inherit'"), t.borderColor = l);
}
}
function jR(t, e) {
var n = e && e.getModel("textStyle");
return ba([
// FIXME in node-canvas fontWeight is before fontStyle
t.fontStyle || n && n.getShallow("fontStyle") || "",
t.fontWeight || n && n.getShallow("fontWeight") || "",
(t.fontSize || n && n.getShallow("fontSize") || 12) + "px",
t.fontFamily || n && n.getShallow("fontFamily") || "sans-serif"
].join(" "));
}
var Sp = bt();
function hJ(t, e, n, r) {
if (t) {
var i = Sp(t);
i.prevValue = i.value, i.value = n;
var a = e.normal;
i.valueAnimation = a.get("valueAnimation"), i.valueAnimation && (i.precision = a.get("precision"), i.defaultInterpolatedText = r, i.statesModels = e);
}
}
function pJ(t, e, n, r, i) {
var a = Sp(t);
if (!a.valueAnimation || a.prevValue === a.value)
return;
var o = a.defaultInterpolatedText, s = We(a.interpolatedValue, a.prevValue), l = a.value;
function u(c) {
var f = mK(n, a.precision, s, l, c);
a.interpolatedValue = c === 1 ? null : f;
var d = zA({
labelDataIndex: e,
labelFetcher: i,
defaultText: o ? o(f) : f + ""
}, a.statesModels, f);
dJ(t, d);
}
t.percent = 0, (a.prevValue == null ? Yt : Ct)(t, {
// percent is used to prevent animation from being aborted #15916
percent: 1
}, r, e, null, u);
}
var Jke = ["textStyle", "color"], wT = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "padding", "lineHeight", "rich", "width", "height", "overflow"], CT = new gt(), eLe = (
/** @class */
function() {
function t() {
}
return t.prototype.getTextColor = function(e) {
var n = this.ecModel;
return this.getShallow("color") || (!e && n ? n.get(Jke) : null);
}, t.prototype.getFont = function() {
return jR({
fontStyle: this.getShallow("fontStyle"),
fontWeight: this.getShallow("fontWeight"),
fontSize: this.getShallow("fontSize"),
fontFamily: this.getShallow("fontFamily")
}, this.ecModel);
}, t.prototype.getTextRect = function(e) {
for (var n = {
text: e,
verticalAlign: this.getShallow("verticalAlign") || this.getShallow("baseline")
}, r = 0; r < wT.length; r++)
n[wT[r]] = this.getShallow(wT[r]);
return CT.useStyle(n), CT.update(), CT.getBoundingRect();
}, t;
}()
), vJ = [
["lineWidth", "width"],
["stroke", "color"],
["opacity"],
["shadowBlur"],
["shadowOffsetX"],
["shadowOffsetY"],
["shadowColor"],
["lineDash", "type"],
["lineDashOffset", "dashOffset"],
["lineCap", "cap"],
["lineJoin", "join"],
["miterLimit"]
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
], tLe = bf(vJ), nLe = (
/** @class */
function() {
function t() {
}
return t.prototype.getLineStyle = function(e) {
return tLe(this, e);
}, t;
}()
), gJ = [
["fill", "color"],
["stroke", "borderColor"],
["lineWidth", "borderWidth"],
["opacity"],
["shadowBlur"],
["shadowOffsetX"],
["shadowOffsetY"],
["shadowColor"],
["lineDash", "borderType"],
["lineDashOffset", "borderDashOffset"],
["lineCap", "borderCap"],
["lineJoin", "borderJoin"],
["miterLimit", "borderMiterLimit"]
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
], rLe = bf(gJ), iLe = (
/** @class */
function() {
function t() {
}
return t.prototype.getItemStyle = function(e, n) {
return rLe(this, e, n);
}, t;
}()
), Bf = (
/** @class */
function() {
function t(e, n, r) {
this.parentModel = n, this.ecModel = r, this.option = e;
}
return t.prototype.init = function(e, n, r) {
}, t.prototype.mergeOption = function(e, n) {
qe(this.option, e, !0);
}, t.prototype.get = function(e, n) {
return e == null ? this.option : this._doGet(this.parsePath(e), !n && this.parentModel);
}, t.prototype.getShallow = function(e, n) {
var r = this.option, i = r == null ? r : r[e];
if (i == null && !n) {
var a = this.parentModel;
a && (i = a.getShallow(e));
}
return i;
}, t.prototype.getModel = function(e, n) {
var r = e != null, i = r ? this.parsePath(e) : null, a = r ? this._doGet(i) : this.option;
return n = n || this.parentModel && this.parentModel.getModel(this.resolveParentPath(i)), new t(a, n, this.ecModel);
}, t.prototype.isEmpty = function() {
return this.option == null;
}, t.prototype.restoreData = function() {
}, t.prototype.clone = function() {
var e = this.constructor;
return new e(Le(this.option));
}, t.prototype.parsePath = function(e) {
return typeof e == "string" ? e.split(".") : e;
}, t.prototype.resolveParentPath = function(e) {
return e;
}, t.prototype.isAnimationEnabled = function() {
if (!vt.node && this.option) {
if (this.option.animation != null)
return !!this.option.animation;
if (this.parentModel)
return this.parentModel.isAnimationEnabled();
}
}, t.prototype._doGet = function(e, n) {
var r = this.option;
if (!e)
return r;
for (var i = 0; i < e.length && !(e[i] && (r = r && typeof r == "object" ? r[e[i]] : null, r == null)); i++)
;
return r == null && n && (r = n._doGet(this.resolveParentPath(e), n.parentModel)), r;
}, t;
}()
);
IR(Bf);
dRe(Bf);
xn(Bf, nLe);
xn(Bf, iLe);
xn(Bf, mRe);
xn(Bf, eLe);
const Wt = Bf;
var aLe = Math.round(Math.random() * 10);
function xp(t) {
return [t || "", aLe++].join("_");
}
function oLe(t) {
var e = {};
t.registerSubTypeDefaulter = function(n, r) {
var i = Fo(n);
e[i.main] = r;
}, t.determineSubType = function(n, r) {
var i = r.type;
if (!i) {
var a = Fo(n).main;
t.hasSubTypes(n) && e[a] && (i = e[a](r));
}
return i;
};
}
function sLe(t, e) {
t.topologicalTravel = function(a, o, s, l) {
if (!a.length)
return;
var u = n(o), c = u.graph, f = u.noEntryList, d = {};
for (k(a, function(y) {
d[y] = !0;
}); f.length; ) {
var h = f.pop(), p = c[h], v = !!d[h];
v && (s.call(l, h, p.originalDeps.slice()), delete d[h]), k(p.successor, v ? m : g);
}
k(d, function() {
var y = "";
throw process.env.NODE_ENV !== "production" && (y = ni("Circular dependency may exists: ", d, a, o)), new Error(y);
});
function g(y) {
c[y].entryCount--, c[y].entryCount === 0 && f.push(y);
}
function m(y) {
d[y] = !0, g(y);
}
};
function n(a) {
var o = {}, s = [];
return k(a, function(l) {
var u = r(o, l), c = u.originalDeps = e(l), f = i(c, a);
u.entryCount = f.length, u.entryCount === 0 && s.push(l), k(f, function(d) {
et(u.predecessor, d) < 0 && u.predecessor.push(d);
var h = r(o, d);
et(h.successor, d) < 0 && h.successor.push(l);
});
}), {
graph: o,
noEntryList: s
};
}
function r(a, o) {
return a[o] || (a[o] = {
predecessor: [],
successor: []
}), a[o];
}
function i(a, o) {
var s = [];
return k(a, function(l) {
et(o, l) >= 0 && s.push(l);
}), s;
}
}
function Pu(t, e) {
return qe(qe({}, t, !0), e, !0);
}
const lLe = {
time: {
month: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
monthAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
dayOfWeekAbbr: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
},
legend: {
selector: {
all: "All",
inverse: "Inv"
}
},
toolbox: {
brush: {
title: {
rect: "Box Select",
polygon: "Lasso Select",
lineX: "Horizontally Select",
lineY: "Vertically Select",
keep: "Keep Selections",
clear: "Clear Selections"
}
},
dataView: {
title: "Data View",
lang: ["Data View", "Close", "Refresh"]
},
dataZoom: {
title: {
zoom: "Zoom",
back: "Zoom Reset"
}
},
magicType: {
title: {
line: "Switch to Line Chart",
bar: "Switch to Bar Chart",
stack: "Stack",
tiled: "Tile"
}
},
restore: {
title: "Restore"
},
saveAsImage: {
title: "Save as Image",
lang: ["Right Click to Save Image"]
}
},
series: {
typeNames: {
pie: "Pie chart",
bar: "Bar chart",
line: "Line chart",
scatter: "Scatter plot",
effectScatter: "Ripple scatter plot",
radar: "Radar chart",
tree: "Tree",
treemap: "Treemap",
boxplot: "Boxplot",
candlestick: "Candlestick",
k: "K line chart",
heatmap: "Heat map",
map: "Map",
parallel: "Parallel coordinate map",
lines: "Line graph",
graph: "Relationship graph",
sankey: "Sankey diagram",
funnel: "Funnel chart",
gauge: "Gauge",
pictorialBar: "Pictorial bar",
themeRiver: "Theme River Map",
sunburst: "Sunburst",
custom: "Custom chart",
chart: "Chart"
}
},
aria: {
general: {
withTitle: 'This is a chart about "{title}"',
withoutTitle: "This is a chart"
},
series: {
single: {
prefix: "",
withName: " with type {seriesType} named {seriesName}.",
withoutName: " with type {seriesType}."
},
multiple: {
prefix: ". It consists of {seriesCount} series count.",
withName: " The {seriesId} series is a {seriesType} representing {seriesName}.",
withoutName: " The {seriesId} series is a {seriesType}.",
separator: {
middle: "",
end: ""
}
}
},
data: {
allData: "The data is as follows: ",
partialData: "The first {displayCnt} items are: ",
withName: "the data for {name} is {value}",
withoutName: "{value}",
separator: {
middle: ", ",
end: ". "
}
}
}
}, uLe = {
time: {
month: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
monthAbbr: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
dayOfWeekAbbr: ["日", "一", "二", "三", "四", "五", "六"]
},
legend: {
selector: {
all: "全选",
inverse: "反选"
}
},
toolbox: {
brush: {
title: {
rect: "矩形选择",
polygon: "圈选",
lineX: "横向选择",
lineY: "纵向选择",
keep: "保持选择",
clear: "清除选择"
}
},
dataView: {
title: "数据视图",
lang: ["数据视图", "关闭", "刷新"]
},
dataZoom: {
title: {
zoom: "区域缩放",
back: "区域缩放还原"
}
},
magicType: {
title: {
line: "切换为折线图",
bar: "切换为柱状图",
stack: "切换为堆叠",
tiled: "切换为平铺"
}
},
restore: {
title: "还原"
},
saveAsImage: {
title: "保存为图片",
lang: ["右键另存为图片"]
}
},
series: {
typeNames: {
pie: "饼图",
bar: "柱状图",
line: "折线图",
scatter: "散点图",
effectScatter: "涟漪散点图",
radar: "雷达图",
tree: "树图",
treemap: "矩形树图",
boxplot: "箱型图",
candlestick: "K线图",
k: "K线图",
heatmap: "热力图",
map: "地图",
parallel: "平行坐标图",
lines: "线图",
graph: "关系图",
sankey: "桑基图",
funnel: "漏斗图",
gauge: "仪表盘图",
pictorialBar: "象形柱图",
themeRiver: "主题河流图",
sunburst: "旭日图",
custom: "自定义图表",
chart: "图表"
}
},
aria: {
general: {
withTitle: "这是一个关于“{title}”的图表。",
withoutTitle: "这是一个图表,"
},
series: {
single: {
prefix: "",
withName: "图表类型是{seriesType},表示{seriesName}。",
withoutName: "图表类型是{seriesType}。"
},
multiple: {
prefix: "它由{seriesCount}个图表系列组成。",
withName: "第{seriesId}个系列是一个表示{seriesName}的{seriesType},",
withoutName: "第{seriesId}个系列是一个{seriesType},",
separator: {
middle: ";",
end: "。"
}
}
},
data: {
allData: "其数据是——",
partialData: "其中,前{displayCnt}项是——",
withName: "{name}的数据是{value}",
withoutName: "{value}",
separator: {
middle: ",",
end: ""
}
}
}
};
var hO = "ZH", ZR = "EN", ih = ZR, H_ = {}, UR = {}, mJ = vt.domSupported ? function() {
var t = (
/* eslint-disable-next-line */
(document.documentElement.lang || navigator.language || navigator.browserLanguage || ih).toUpperCase()
);
return t.indexOf(hO) > -1 ? hO : ih;
}() : ih;
function XR(t, e) {
t = t.toUpperCase(), UR[t] = new Wt(e), H_[t] = e;
}
function cLe(t) {
if (Oe(t)) {
var e = H_[t.toUpperCase()] || {};
return t === hO || t === ZR ? Le(e) : qe(Le(e), Le(H_[ih]), !1);
} else
return qe(Le(t), Le(H_[ih]), !1);
}
function VA(t) {
return UR[t];
}
function fLe() {
return UR[ih];
}
XR(ZR, lLe);
XR(hO, uLe);
var YR = 1e3, qR = YR * 60, Ng = qR * 60, ma = Ng * 24, UB = ma * 365, qv = {
year: "{yyyy}",
month: "{MMM}",
day: "{d}",
hour: "{HH}:{mm}",
minute: "{HH}:{mm}",
second: "{HH}:{mm}:{ss}",
millisecond: "{HH}:{mm}:{ss} {SSS}",
none: "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"
}, ib = "{yyyy}-{MM}-{dd}", XB = {
year: "{yyyy}",
month: "{yyyy}-{MM}",
day: ib,
hour: ib + " " + qv.hour,
minute: ib + " " + qv.minute,
second: ib + " " + qv.second,
millisecond: qv.none
}, TT = ["year", "month", "day", "hour", "minute", "second", "millisecond"], yJ = ["year", "half-year", "quarter", "month", "week", "half-week", "day", "half-day", "quarter-day", "hour", "minute", "second", "millisecond"];
function Hr(t, e) {
return t += "", "0000".substr(0, e - t.length) + t;
}
function ah(t) {
switch (t) {
case "half-year":
case "quarter":
return "month";
case "week":
case "half-week":
return "day";
case "half-day":
case "quarter-day":
return "hour";
default:
return t;
}
}
function dLe(t) {
return t === ah(t);
}
function hLe(t) {
switch (t) {
case "year":
case "month":
return "day";
case "millisecond":
return "millisecond";
default:
return "second";
}
}
function H0(t, e, n, r) {
var i = Ki(t), a = i[KR(n)](), o = i[oh(n)]() + 1, s = Math.floor((o - 1) / 3) + 1, l = i[nw(n)](), u = i["get" + (n ? "UTC" : "") + "Day"](), c = i[Am(n)](), f = (c - 1) % 12 + 1, d = i[rw(n)](), h = i[iw(n)](), p = i[aw(n)](), v = c >= 12 ? "pm" : "am", g = v.toUpperCase(), m = r instanceof Wt ? r : VA(r || mJ) || fLe(), y = m.getModel("time"), b = y.get("month"), _ = y.get("monthAbbr"), O = y.get("dayOfWeek"), S = y.get("dayOfWeekAbbr");
return (e || "").replace(/{a}/g, v + "").replace(/{A}/g, g + "").replace(/{yyyy}/g, a + "").replace(/{yy}/g, Hr(a % 100 + "", 2)).replace(/{Q}/g, s + "").replace(/{MMMM}/g, b[o - 1]).replace(/{MMM}/g, _[o - 1]).replace(/{MM}/g, Hr(o, 2)).replace(/{M}/g, o + "").replace(/{dd}/g, Hr(l, 2)).replace(/{d}/g, l + "").replace(/{eeee}/g, O[u]).replace(/{ee}/g, S[u]).replace(/{e}/g, u + "").replace(/{HH}/g, Hr(c, 2)).replace(/{H}/g, c + "").replace(/{hh}/g, Hr(f + "", 2)).replace(/{h}/g, f + "").replace(/{mm}/g, Hr(d, 2)).replace(/{m}/g, d + "").replace(/{ss}/g, Hr(h, 2)).replace(/{s}/g, h + "").replace(/{SSS}/g, Hr(p, 3)).replace(/{S}/g, p + "");
}
function pLe(t, e, n, r, i) {
var a = null;
if (Oe(n))
a = n;
else if (Me(n))
a = n(t.value, e, {
level: t.level
});
else {
var o = le({}, qv);
if (t.level > 0)
for (var s = 0; s < TT.length; ++s)
o[TT[s]] = "{primary|" + o[TT[s]] + "}";
var l = n ? n.inherit === !1 ? n : Re(n, o) : o, u = bJ(t.value, i);
if (l[u])
a = l[u];
else if (l.inherit) {
for (var c = yJ.indexOf(u), s = c - 1; s >= 0; --s)
if (l[u]) {
a = l[u];
break;
}
a = a || o.none;
}
if (ue(a)) {
var f = t.level == null ? 0 : t.level >= 0 ? t.level : a.length + t.level;
f = Math.min(f, a.length - 1), a = a[f];
}
}
return H0(new Date(t.value), a, i, r);
}
function bJ(t, e) {
var n = Ki(t), r = n[oh(e)]() + 1, i = n[nw(e)](), a = n[Am(e)](), o = n[rw(e)](), s = n[iw(e)](), l = n[aw(e)](), u = l === 0, c = u && s === 0, f = c && o === 0, d = f && a === 0, h = d && i === 1, p = h && r === 1;
return p ? "year" : h ? "month" : d ? "day" : f ? "hour" : c ? "minute" : u ? "second" : "millisecond";
}
function YB(t, e, n) {
var r = St(t) ? Ki(t) : t;
switch (e = e || bJ(t, n), e) {
case "year":
return r[KR(n)]();
case "half-year":
return r[oh(n)]() >= 6 ? 1 : 0;
case "quarter":
return Math.floor((r[oh(n)]() + 1) / 4);
case "month":
return r[oh(n)]();
case "day":
return r[nw(n)]();
case "half-day":
return r[Am(n)]() / 24;
case "hour":
return r[Am(n)]();
case "minute":
return r[rw(n)]();
case "second":
return r[iw(n)]();
case "millisecond":
return r[aw(n)]();
}
}
function KR(t) {
return t ? "getUTCFullYear" : "getFullYear";
}
function oh(t) {
return t ? "getUTCMonth" : "getMonth";
}
function nw(t) {
return t ? "getUTCDate" : "getDate";
}
function Am(t) {
return t ? "getUTCHours" : "getHours";
}
function rw(t) {
return t ? "getUTCMinutes" : "getMinutes";
}
function iw(t) {
return t ? "getUTCSeconds" : "getSeconds";
}
function aw(t) {
return t ? "getUTCMilliseconds" : "getMilliseconds";
}
function vLe(t) {
return t ? "setUTCFullYear" : "setFullYear";
}
function _J(t) {
return t ? "setUTCMonth" : "setMonth";
}
function OJ(t) {
return t ? "setUTCDate" : "setDate";
}
function SJ(t) {
return t ? "setUTCHours" : "setHours";
}
function xJ(t) {
return t ? "setUTCMinutes" : "setMinutes";
}
function wJ(t) {
return t ? "setUTCSeconds" : "setSeconds";
}
function CJ(t) {
return t ? "setUTCMilliseconds" : "setMilliseconds";
}
function gLe(t, e, n, r, i, a, o, s) {
var l = new gt({
style: {
text: t,
font: e,
align: n,
verticalAlign: r,
padding: i,
rich: a,
overflow: o ? "truncate" : null,
lineHeight: s
}
});
return l.getBoundingRect();
}
function JR(t) {
if (!Wx(t))
return Oe(t) ? t : "-";
var e = (t + "").split(".");
return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, "$1,") + (e.length > 1 ? "." + e[1] : "");
}
function ek(t, e) {
return t = (t || "").toLowerCase().replace(/-(.)/g, function(n, r) {
return r.toUpperCase();
}), e && t && (t = t.charAt(0).toUpperCase() + t.slice(1)), t;
}
var zf = Lx;
function FA(t, e, n) {
var r = "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";
function i(c) {
return c && ba(c) ? c : "-";
}
function a(c) {
return !!(c != null && !isNaN(c) && isFinite(c));
}
var o = e === "time", s = t instanceof Date;
if (o || s) {
var l = o ? Ki(t) : t;
if (isNaN(+l)) {
if (s)
return "-";
} else return H0(l, r, n);
}
if (e === "ordinal")
return ym(t) ? i(t) : St(t) && a(t) ? t + "" : "-";
var u = as(t);
return a(u) ? JR(u) : ym(t) ? i(t) : typeof t == "boolean" ? t + "" : "-";
}
var qB = ["a", "b", "c", "d", "e", "f", "g"], PT = function(t, e) {
return "{" + t + (e ?? "") + "}";
};
function tk(t, e, n) {
ue(e) || (e = [e]);
var r = e.length;
if (!r)
return "";
for (var i = e[0].$vars || [], a = 0; a < i.length; a++) {
var o = qB[a];
t = t.replace(PT(o), PT(o, 0));
}
for (var s = 0; s < r; s++)
for (var l = 0; l < i.length; l++) {
var u = e[s][i[l]];
t = t.replace(PT(qB[l], s), n ? jr(u) : u);
}
return t;
}
function mLe(t, e, n) {
return k(e, function(r, i) {
t = t.replace("{" + i + "}", r);
}), t;
}
function TJ(t, e) {
var n = Oe(t) ? {
color: t,
extraCssText: e
} : t || {}, r = n.color, i = n.type;
e = n.extraCssText;
var a = n.renderMode || "html";
if (!r)
return "";
if (a === "html")
return i === "subItem" ? '' : '';
var o = n.markerId || "markerX";
return {
renderMode: a,
content: "{" + o + "|} ",
style: i === "subItem" ? {
width: 4,
height: 4,
borderRadius: 2,
backgroundColor: r
} : {
width: 10,
height: 10,
borderRadius: 5,
backgroundColor: r
}
};
}
function yLe(t, e, n) {
process.env.NODE_ENV !== "production" && Cn("echarts.format.formatTime", "echarts.time.format"), (t === "week" || t === "month" || t === "quarter" || t === "half-year" || t === "year") && (t = `MM-dd
yyyy`);
var r = Ki(e), i = n ? "getUTC" : "get", a = r[i + "FullYear"](), o = r[i + "Month"]() + 1, s = r[i + "Date"](), l = r[i + "Hours"](), u = r[i + "Minutes"](), c = r[i + "Seconds"](), f = r[i + "Milliseconds"]();
return t = t.replace("MM", Hr(o, 2)).replace("M", o).replace("yyyy", a).replace("yy", Hr(a % 100 + "", 2)).replace("dd", Hr(s, 2)).replace("d", s).replace("hh", Hr(l, 2)).replace("h", l).replace("mm", Hr(u, 2)).replace("m", u).replace("ss", Hr(c, 2)).replace("s", c).replace("SSS", Hr(f, 3)), t;
}
function bLe(t) {
return t && t.charAt(0).toUpperCase() + t.substr(1);
}
function Of(t, e) {
return e = e || "transparent", Oe(t) ? t : Ie(t) && t.colorStops && (t.colorStops[0] || {}).color || e;
}
function pO(t, e) {
if (e === "_blank" || e === "blank") {
var n = window.open();
n.opener = null, n.location.href = t;
} else
window.open(t, e);
}
var G_ = k, PJ = ["left", "right", "top", "bottom", "width", "height"], Nc = [["width", "left", "right"], ["height", "top", "bottom"]];
function nk(t, e, n, r, i) {
var a = 0, o = 0;
r == null && (r = 1 / 0), i == null && (i = 1 / 0);
var s = 0;
e.eachChild(function(l, u) {
var c = l.getBoundingRect(), f = e.childAt(u + 1), d = f && f.getBoundingRect(), h, p;
if (t === "horizontal") {
var v = c.width + (d ? -d.x + c.x : 0);
h = a + v, h > r || l.newline ? (a = 0, h = v, o += s + n, s = c.height) : s = Math.max(s, c.height);
} else {
var g = c.height + (d ? -d.y + c.y : 0);
p = o + g, p > i || l.newline ? (a += s + n, o = 0, p = g, s = c.width) : s = Math.max(s, c.width);
}
l.newline || (l.x = a, l.y = o, l.markRedraw(), t === "horizontal" ? a = h + n : o = p + n);
});
}
var tf = nk;
Ue(nk, "vertical");
Ue(nk, "horizontal");
function _Le(t, e, n) {
var r = e.width, i = e.height, a = _e(t.left, r), o = _e(t.top, i), s = _e(t.right, r), l = _e(t.bottom, i);
return (isNaN(a) || isNaN(parseFloat(t.left))) && (a = 0), (isNaN(s) || isNaN(parseFloat(t.right))) && (s = r), (isNaN(o) || isNaN(parseFloat(t.top))) && (o = 0), (isNaN(l) || isNaN(parseFloat(t.bottom))) && (l = i), n = zf(n || 0), {
width: Math.max(s - a - n[1] - n[3], 0),
height: Math.max(l - o - n[0] - n[2], 0)
};
}
function Rn(t, e, n) {
n = zf(n || 0);
var r = e.width, i = e.height, a = _e(t.left, r), o = _e(t.top, i), s = _e(t.right, r), l = _e(t.bottom, i), u = _e(t.width, r), c = _e(t.height, i), f = n[2] + n[0], d = n[1] + n[3], h = t.aspect;
switch (isNaN(u) && (u = r - s - d - a), isNaN(c) && (c = i - l - f - o), h != null && (isNaN(u) && isNaN(c) && (h > r / i ? u = r * 0.8 : c = i * 0.8), isNaN(u) && (u = h * c), isNaN(c) && (c = u / h)), isNaN(a) && (a = r - s - u - d), isNaN(o) && (o = i - l - c - f), t.left || t.right) {
case "center":
a = r / 2 - u / 2 - n[3];
break;
case "right":
a = r - u - d;
break;
}
switch (t.top || t.bottom) {
case "middle":
case "center":
o = i / 2 - c / 2 - n[0];
break;
case "bottom":
o = i - c - f;
break;
}
a = a || 0, o = o || 0, isNaN(u) && (u = r - d - a - (s || 0)), isNaN(c) && (c = i - f - o - (l || 0));
var p = new Je(a + n[3], o + n[0], u, c);
return p.margin = n, p;
}
function ow(t, e, n, r, i, a) {
var o = !i || !i.hv || i.hv[0], s = !i || !i.hv || i.hv[1], l = i && i.boundingMode || "all";
if (a = a || t, a.x = t.x, a.y = t.y, !o && !s)
return !1;
var u;
if (l === "raw")
u = t.type === "group" ? new Je(0, 0, +e.width || 0, +e.height || 0) : t.getBoundingRect();
else if (u = t.getBoundingRect(), t.needLocalTransform()) {
var c = t.getLocalTransform();
u = u.clone(), u.applyTransform(c);
}
var f = Rn(Re({
width: u.width,
height: u.height
}, e), n, r), d = o ? f.x - u.x : 0, h = s ? f.y - u.y : 0;
return l === "raw" ? (a.x = d, a.y = h) : (a.x += d, a.y += h), a === t && t.markRedraw(), !0;
}
function OLe(t, e) {
return t[Nc[e][0]] != null || t[Nc[e][1]] != null && t[Nc[e][2]] != null;
}
function Em(t) {
var e = t.layoutMode || t.constructor.layoutMode;
return Ie(e) ? e : e ? {
type: e
} : null;
}
function cu(t, e, n) {
var r = n && n.ignoreSize;
!ue(r) && (r = [r, r]);
var i = o(Nc[0], 0), a = o(Nc[1], 1);
u(Nc[0], t, i), u(Nc[1], t, a);
function o(c, f) {
var d = {}, h = 0, p = {}, v = 0, g = 2;
if (G_(c, function(b) {
p[b] = t[b];
}), G_(c, function(b) {
s(e, b) && (d[b] = p[b] = e[b]), l(d, b) && h++, l(p, b) && v++;
}), r[f])
return l(e, c[1]) ? p[c[2]] = null : l(e, c[2]) && (p[c[1]] = null), p;
if (v === g || !h)
return p;
if (h >= g)
return d;
for (var m = 0; m < c.length; m++) {
var y = c[m];
if (!s(d, y) && s(t, y)) {
d[y] = t[y];
break;
}
}
return d;
}
function s(c, f) {
return c.hasOwnProperty(f);
}
function l(c, f) {
return c[f] != null && c[f] !== "auto";
}
function u(c, f, d) {
G_(c, function(h) {
f[h] = d[h];
});
}
}
function wp(t) {
return $J({}, t);
}
function $J(t, e) {
return e && t && G_(PJ, function(n) {
e.hasOwnProperty(n) && (t[n] = e[n]);
}), t;
}
var SLe = bt(), rt = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this, n, r, i) || this;
return a.uid = xp("ec_cpt_model"), a;
}
return e.prototype.init = function(n, r, i) {
this.mergeDefaultAndTheme(n, i);
}, e.prototype.mergeDefaultAndTheme = function(n, r) {
var i = Em(this), a = i ? wp(n) : {}, o = r.getTheme();
qe(n, o.get(this.mainType)), qe(n, this.getDefaultOption()), i && cu(n, a, i);
}, e.prototype.mergeOption = function(n, r) {
qe(this.option, n, !0);
var i = Em(this);
i && cu(this.option, n, i);
}, e.prototype.optionUpdated = function(n, r) {
}, e.prototype.getDefaultOption = function() {
var n = this.constructor;
if (!uRe(n))
return n.defaultOption;
var r = SLe(this);
if (!r.defaultOption) {
for (var i = [], a = n; a; ) {
var o = a.prototype.defaultOption;
o && i.push(o), a = a.superClass;
}
for (var s = {}, l = i.length - 1; l >= 0; l--)
s = qe(s, i[l], !0);
r.defaultOption = s;
}
return r.defaultOption;
}, e.prototype.getReferringComponents = function(n, r) {
var i = n + "Index", a = n + "Id";
return B0(this.ecModel, n, {
index: this.get(i, !0),
id: this.get(a, !0)
}, r);
}, e.prototype.getBoxLayoutParams = function() {
var n = this;
return {
left: n.get("left"),
top: n.get("top"),
right: n.get("right"),
bottom: n.get("bottom"),
width: n.get("width"),
height: n.get("height")
};
}, e.prototype.getZLevelKey = function() {
return "";
}, e.prototype.setZLevel = function(n) {
this.option.zlevel = n;
}, e.protoInitialize = function() {
var n = e.prototype;
n.type = "component", n.id = "", n.name = "", n.mainType = "", n.subType = "", n.componentIndex = 0;
}(), e;
}(Wt)
);
bK(rt, Wt);
Hx(rt);
oLe(rt);
sLe(rt, xLe);
function xLe(t) {
var e = [];
return k(rt.getClassesByMainType(t), function(n) {
e = e.concat(n.dependencies || n.prototype.dependencies || []);
}), e = ce(e, function(n) {
return Fo(n).main;
}), t !== "dataset" && et(e, "dataset") <= 0 && e.unshift("dataset"), e;
}
var AJ = "";
typeof navigator < "u" && (AJ = navigator.platform || "");
var ld = "rgba(0, 0, 0, 0.2)";
const wLe = {
darkMode: "auto",
// backgroundColor: 'rgba(0,0,0,0)',
colorBy: "series",
color: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
gradientColor: ["#f6efa6", "#d88273", "#bf444c"],
aria: {
decal: {
decals: [{
color: ld,
dashArrayX: [1, 0],
dashArrayY: [2, 5],
symbolSize: 1,
rotation: Math.PI / 6
}, {
color: ld,
symbol: "circle",
dashArrayX: [[8, 8], [0, 8, 8, 0]],
dashArrayY: [6, 0],
symbolSize: 0.8
}, {
color: ld,
dashArrayX: [1, 0],
dashArrayY: [4, 3],
rotation: -Math.PI / 4
}, {
color: ld,
dashArrayX: [[6, 6], [0, 6, 6, 0]],
dashArrayY: [6, 0]
}, {
color: ld,
dashArrayX: [[1, 0], [1, 6]],
dashArrayY: [1, 0, 6, 0],
rotation: Math.PI / 4
}, {
color: ld,
symbol: "triangle",
dashArrayX: [[9, 9], [0, 9, 9, 0]],
dashArrayY: [7, 2],
symbolSize: 0.75
}]
}
},
// If xAxis and yAxis declared, grid is created by default.
// grid: {},
textStyle: {
// color: '#000',
// decoration: 'none',
// PENDING
fontFamily: AJ.match(/^Win/) ? "Microsoft YaHei" : "sans-serif",
// fontFamily: 'Arial, Verdana, sans-serif',
fontSize: 12,
fontStyle: "normal",
fontWeight: "normal"
},
// http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
// Default is source-over
blendMode: null,
stateAnimation: {
duration: 300,
easing: "cubicOut"
},
animation: "auto",
animationDuration: 1e3,
animationDurationUpdate: 500,
animationEasing: "cubicInOut",
animationEasingUpdate: "cubicInOut",
animationThreshold: 2e3,
// Configuration for progressive/incremental rendering
progressiveThreshold: 3e3,
progressive: 400,
// Threshold of if use single hover layer to optimize.
// It is recommended that `hoverLayerThreshold` is equivalent to or less than
// `progressiveThreshold`, otherwise hover will cause restart of progressive,
// which is unexpected.
// see example .
hoverLayerThreshold: 3e3,
// See: module:echarts/scale/Time
useUTC: !1
};
var WA = Pe(["tooltip", "label", "itemName", "itemId", "itemGroupId", "itemChildGroupId", "seriesName"]), Ba = "original", zr = "arrayRows", za = "objectRows", us = "keyedColumns", Rs = "typedArray", EJ = "unknown", Yo = "column", Cp = "row", cr = {
Must: 1,
Might: 2,
Not: 3
// Other cases
}, MJ = bt();
function CLe(t) {
MJ(t).datasetMap = Pe();
}
function IJ(t, e, n) {
var r = {}, i = ik(e);
if (!i || !t)
return r;
var a = [], o = [], s = e.ecModel, l = MJ(s).datasetMap, u = i.uid + "_" + n.seriesLayoutBy, c, f;
t = t.slice(), k(t, function(v, g) {
var m = Ie(v) ? v : t[g] = {
name: v
};
m.type === "ordinal" && c == null && (c = g, f = p(m)), r[m.name] = [];
});
var d = l.get(u) || l.set(u, {
categoryWayDim: f,
valueWayDim: 0
});
k(t, function(v, g) {
var m = v.name, y = p(v);
if (c == null) {
var b = d.valueWayDim;
h(r[m], b, y), h(o, b, y), d.valueWayDim += y;
} else if (c === g)
h(r[m], 0, y), h(a, 0, y);
else {
var b = d.categoryWayDim;
h(r[m], b, y), h(o, b, y), d.categoryWayDim += y;
}
});
function h(v, g, m) {
for (var y = 0; y < m; y++)
v.push(g + y);
}
function p(v) {
var g = v.dimsDef;
return g ? g.length : 1;
}
return a.length && (r.itemName = a), o.length && (r.seriesName = o), r;
}
function rk(t, e, n) {
var r = {}, i = ik(t);
if (!i)
return r;
var a = e.sourceFormat, o = e.dimensionsDefine, s;
(a === za || a === us) && k(o, function(c, f) {
(Ie(c) ? c.name : c) === "name" && (s = f);
});
var l = function() {
for (var c = {}, f = {}, d = [], h = 0, p = Math.min(5, n); h < p; h++) {
var v = RJ(e.data, a, e.seriesLayoutBy, o, e.startIndex, h);
d.push(v);
var g = v === cr.Not;
if (g && c.v == null && h !== s && (c.v = h), (c.n == null || c.n === c.v || !g && d[c.n] === cr.Not) && (c.n = h), m(c) && d[c.n] !== cr.Not)
return c;
g || (v === cr.Might && f.v == null && h !== s && (f.v = h), (f.n == null || f.n === f.v) && (f.n = h));
}
function m(y) {
return y.v != null && y.n != null;
}
return m(c) ? c : m(f) ? f : null;
}();
if (l) {
r.value = [l.v];
var u = s ?? l.n;
r.itemName = [u], r.seriesName = [u];
}
return r;
}
function ik(t) {
var e = t.get("data", !0);
if (!e)
return B0(t.ecModel, "dataset", {
index: t.get("datasetIndex", !0),
id: t.get("datasetId", !0)
}, Dn).models[0];
}
function TLe(t) {
return !t.get("transform", !0) && !t.get("fromTransformResult", !0) ? [] : B0(t.ecModel, "dataset", {
index: t.get("fromDatasetIndex", !0),
id: t.get("fromDatasetId", !0)
}, Dn).models;
}
function DJ(t, e) {
return RJ(t.data, t.sourceFormat, t.seriesLayoutBy, t.dimensionsDefine, t.startIndex, e);
}
function RJ(t, e, n, r, i, a) {
var o, s = 5;
if (Br(t))
return cr.Not;
var l, u;
if (r) {
var c = r[a];
Ie(c) ? (l = c.name, u = c.type) : Oe(c) && (l = c);
}
if (u != null)
return u === "ordinal" ? cr.Must : cr.Not;
if (e === zr) {
var f = t;
if (n === Cp) {
for (var d = f[a], h = 0; h < (d || []).length && h < s; h++)
if ((o = _(d[i + h])) != null)
return o;
} else
for (var h = 0; h < f.length && h < s; h++) {
var p = f[i + h];
if (p && (o = _(p[a])) != null)
return o;
}
} else if (e === za) {
var v = t;
if (!l)
return cr.Not;
for (var h = 0; h < v.length && h < s; h++) {
var g = v[h];
if (g && (o = _(g[l])) != null)
return o;
}
} else if (e === us) {
var m = t;
if (!l)
return cr.Not;
var d = m[l];
if (!d || Br(d))
return cr.Not;
for (var h = 0; h < d.length && h < s; h++)
if ((o = _(d[h])) != null)
return o;
} else if (e === Ba)
for (var y = t, h = 0; h < y.length && h < s; h++) {
var g = y[h], b = gp(g);
if (!ue(b))
return cr.Not;
if ((o = _(b[a])) != null)
return o;
}
function _(O) {
var S = Oe(O);
if (O != null && Number.isFinite(Number(O)) && O !== "")
return S ? cr.Might : cr.Not;
if (S && O !== "-")
return cr.Must;
}
return cr.Not;
}
var QA = Pe();
function PLe(t, e) {
ke(QA.get(t) == null && e), QA.set(t, e);
}
function $Le(t, e, n) {
var r = QA.get(e);
if (!r)
return n;
var i = r(t);
if (!i)
return n;
if (process.env.NODE_ENV !== "production")
for (var a = 0; a < i.length; a++)
ke(Wh(i[a]));
return n.concat(i);
}
var KB = bt(), ALe = bt(), ak = (
/** @class */
function() {
function t() {
}
return t.prototype.getColorFromPalette = function(e, n, r) {
var i = Qt(this.get("color", !0)), a = this.get("colorLayer", !0);
return kJ(this, KB, i, a, e, n, r);
}, t.prototype.clearColorPalette = function() {
MLe(this, KB);
}, t;
}()
);
function HA(t, e, n, r) {
var i = Qt(t.get(["aria", "decal", "decals"]));
return kJ(t, ALe, i, null, e, n, r);
}
function ELe(t, e) {
for (var n = t.length, r = 0; r < n; r++)
if (t[r].length > e)
return t[r];
return t[n - 1];
}
function kJ(t, e, n, r, i, a, o) {
a = a || t;
var s = e(a), l = s.paletteIdx || 0, u = s.paletteNameMap = s.paletteNameMap || {};
if (u.hasOwnProperty(i))
return u[i];
var c = o == null || !r ? n : ELe(r, o);
if (c = c || n, !(!c || !c.length)) {
var f = c[l];
return i && (u[i] = f), s.paletteIdx = (l + 1) % c.length, f;
}
}
function MLe(t, e) {
e(t).paletteIdx = 0, e(t).paletteNameMap = {};
}
var ab, cv, JB, $T = "\0_ec_inner", ez = 1, ILe = {
grid: "GridComponent",
polar: "PolarComponent",
geo: "GeoComponent",
singleAxis: "SingleAxisComponent",
parallel: "ParallelComponent",
calendar: "CalendarComponent",
graphic: "GraphicComponent",
toolbox: "ToolboxComponent",
tooltip: "TooltipComponent",
axisPointer: "AxisPointerComponent",
brush: "BrushComponent",
title: "TitleComponent",
timeline: "TimelineComponent",
markPoint: "MarkPointComponent",
markLine: "MarkLineComponent",
markArea: "MarkAreaComponent",
legend: "LegendComponent",
dataZoom: "DataZoomComponent",
visualMap: "VisualMapComponent",
// aria: 'AriaComponent',
// dataset: 'DatasetComponent',
// Dependencies
xAxis: "GridComponent",
yAxis: "GridComponent",
angleAxis: "PolarComponent",
radiusAxis: "PolarComponent"
}, DLe = {
line: "LineChart",
bar: "BarChart",
pie: "PieChart",
scatter: "ScatterChart",
radar: "RadarChart",
map: "MapChart",
tree: "TreeChart",
treemap: "TreemapChart",
graph: "GraphChart",
gauge: "GaugeChart",
funnel: "FunnelChart",
parallel: "ParallelChart",
sankey: "SankeyChart",
boxplot: "BoxplotChart",
candlestick: "CandlestickChart",
effectScatter: "EffectScatterChart",
lines: "LinesChart",
heatmap: "HeatmapChart",
pictorialBar: "PictorialBarChart",
themeRiver: "ThemeRiverChart",
sunburst: "SunburstChart",
custom: "CustomChart"
}, vO = {};
function RLe(t) {
k(t, function(e, n) {
if (!rt.hasClass(n)) {
var r = ILe[n];
r && !vO[r] && (Cr("Component " + n + ` is used but not imported.
import { ` + r + ` } from 'echarts/components';
echarts.use([` + r + "]);"), vO[r] = !0);
}
});
}
var ok = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.init = function(n, r, i, a, o, s) {
a = a || {}, this.option = null, this._theme = new Wt(a), this._locale = new Wt(o), this._optionManager = s;
}, e.prototype.setOption = function(n, r, i) {
process.env.NODE_ENV !== "production" && (ke(n != null, "option is null/undefined"), ke(n[$T] !== ez, "please use chart.getOption()"));
var a = rz(r);
this._optionManager.setOption(n, i, a), this._resetOption(null, a);
}, e.prototype.resetOption = function(n, r) {
return this._resetOption(n, rz(r));
}, e.prototype._resetOption = function(n, r) {
var i = !1, a = this._optionManager;
if (!n || n === "recreate") {
var o = a.mountOption(n === "recreate");
process.env.NODE_ENV !== "production" && RLe(o), !this.option || n === "recreate" ? JB(this, o) : (this.restoreData(), this._mergeOption(o, r)), i = !0;
}
if ((n === "timeline" || n === "media") && this.restoreData(), !n || n === "recreate" || n === "timeline") {
var s = a.getTimelineOption(this);
s && (i = !0, this._mergeOption(s, r));
}
if (!n || n === "recreate" || n === "media") {
var l = a.getMediaOption(this);
l.length && k(l, function(u) {
i = !0, this._mergeOption(u, r);
}, this);
}
return i;
}, e.prototype.mergeOption = function(n) {
this._mergeOption(n, null);
}, e.prototype._mergeOption = function(n, r) {
var i = this.option, a = this._componentsMap, o = this._componentsCount, s = [], l = Pe(), u = r && r.replaceMergeMainTypeMap;
CLe(this), k(n, function(f, d) {
f != null && (rt.hasClass(d) ? d && (s.push(d), l.set(d, !0)) : i[d] = i[d] == null ? Le(f) : qe(i[d], f, !0));
}), u && u.each(function(f, d) {
rt.hasClass(d) && !l.get(d) && (s.push(d), l.set(d, !0));
}), rt.topologicalTravel(s, rt.getAllClassMainTypes(), c, this);
function c(f) {
var d = $Le(this, f, Qt(n[f])), h = a.get(f), p = (
// `!oldCmptList` means init. See the comment in `mappingToExists`
h ? u && u.get(f) ? "replaceMerge" : "normalMerge" : "replaceAll"
), v = pK(h, d, p);
eRe(v, f, rt), i[f] = null, a.set(f, null), o.set(f, 0);
var g = [], m = [], y = 0, b, _;
k(v, function(O, S) {
var x = O.existing, C = O.newOption;
if (!C)
x && (x.mergeOption({}, this), x.optionUpdated({}, !1));
else {
var T = f === "series", w = rt.getClass(
f,
O.keyInfo.subType,
!T
// Give a more detailed warn later if series don't exists
);
if (!w) {
if (process.env.NODE_ENV !== "production") {
var P = O.keyInfo.subType, $ = DLe[P];
vO[P] || (vO[P] = !0, Cr($ ? "Series " + P + ` is used but not imported.
import { ` + $ + ` } from 'echarts/charts';
echarts.use([` + $ + "]);" : "Unknown series " + P));
}
return;
}
if (f === "tooltip") {
if (b) {
process.env.NODE_ENV !== "production" && (_ || (dn("Currently only one tooltip component is allowed."), _ = !0));
return;
}
b = !0;
}
if (x && x.constructor === w)
x.name = O.keyInfo.name, x.mergeOption(C, this), x.optionUpdated(C, !1);
else {
var A = le({
componentIndex: S
}, O.keyInfo);
x = new w(C, this, this, A), le(x, A), O.brandNew && (x.__requireNewView = !0), x.init(C, this, this), x.optionUpdated(null, !0);
}
}
x ? (g.push(x.option), m.push(x), y++) : (g.push(void 0), m.push(void 0));
}, this), i[f] = g, a.set(f, m), o.set(f, y), f === "series" && ab(this);
}
this._seriesIndices || ab(this);
}, e.prototype.getOption = function() {
var n = Le(this.option);
return k(n, function(r, i) {
if (rt.hasClass(i)) {
for (var a = Qt(r), o = a.length, s = !1, l = o - 1; l >= 0; l--)
a[l] && !Wh(a[l]) ? s = !0 : (a[l] = null, !s && o--);
a.length = o, n[i] = a;
}
}), delete n[$T], n;
}, e.prototype.getTheme = function() {
return this._theme;
}, e.prototype.getLocaleModel = function() {
return this._locale;
}, e.prototype.setUpdatePayload = function(n) {
this._payload = n;
}, e.prototype.getUpdatePayload = function() {
return this._payload;
}, e.prototype.getComponent = function(n, r) {
var i = this._componentsMap.get(n);
if (i) {
var a = i[r || 0];
if (a)
return a;
if (r == null) {
for (var o = 0; o < i.length; o++)
if (i[o])
return i[o];
}
}
}, e.prototype.queryComponents = function(n) {
var r = n.mainType;
if (!r)
return [];
var i = n.index, a = n.id, o = n.name, s = this._componentsMap.get(r);
if (!s || !s.length)
return [];
var l;
return i != null ? (l = [], k(Qt(i), function(u) {
s[u] && l.push(s[u]);
})) : a != null ? l = tz("id", a, s) : o != null ? l = tz("name", o, s) : l = Nt(s, function(u) {
return !!u;
}), nz(l, n);
}, e.prototype.findComponents = function(n) {
var r = n.query, i = n.mainType, a = s(r), o = a ? this.queryComponents(a) : Nt(this._componentsMap.get(i), function(u) {
return !!u;
});
return l(nz(o, n));
function s(u) {
var c = i + "Index", f = i + "Id", d = i + "Name";
return u && (u[c] != null || u[f] != null || u[d] != null) ? {
mainType: i,
// subType will be filtered finally.
index: u[c],
id: u[f],
name: u[d]
} : null;
}
function l(u) {
return n.filter ? Nt(u, n.filter) : u;
}
}, e.prototype.eachComponent = function(n, r, i) {
var a = this._componentsMap;
if (Me(n)) {
var o = r, s = n;
a.each(function(f, d) {
for (var h = 0; f && h < f.length; h++) {
var p = f[h];
p && s.call(o, d, p, p.componentIndex);
}
});
} else
for (var l = Oe(n) ? a.get(n) : Ie(n) ? this.findComponents(n) : null, u = 0; l && u < l.length; u++) {
var c = l[u];
c && r.call(i, c, c.componentIndex);
}
}, e.prototype.getSeriesByName = function(n) {
var r = Vn(n, null);
return Nt(this._componentsMap.get("series"), function(i) {
return !!i && r != null && i.name === r;
});
}, e.prototype.getSeriesByIndex = function(n) {
return this._componentsMap.get("series")[n];
}, e.prototype.getSeriesByType = function(n) {
return Nt(this._componentsMap.get("series"), function(r) {
return !!r && r.subType === n;
});
}, e.prototype.getSeries = function() {
return Nt(this._componentsMap.get("series"), function(n) {
return !!n;
});
}, e.prototype.getSeriesCount = function() {
return this._componentsCount.get("series");
}, e.prototype.eachSeries = function(n, r) {
cv(this), k(this._seriesIndices, function(i) {
var a = this._componentsMap.get("series")[i];
n.call(r, a, i);
}, this);
}, e.prototype.eachRawSeries = function(n, r) {
k(this._componentsMap.get("series"), function(i) {
i && n.call(r, i, i.componentIndex);
});
}, e.prototype.eachSeriesByType = function(n, r, i) {
cv(this), k(this._seriesIndices, function(a) {
var o = this._componentsMap.get("series")[a];
o.subType === n && r.call(i, o, a);
}, this);
}, e.prototype.eachRawSeriesByType = function(n, r, i) {
return k(this.getSeriesByType(n), r, i);
}, e.prototype.isSeriesFiltered = function(n) {
return cv(this), this._seriesIndicesMap.get(n.componentIndex) == null;
}, e.prototype.getCurrentSeriesIndices = function() {
return (this._seriesIndices || []).slice();
}, e.prototype.filterSeries = function(n, r) {
cv(this);
var i = [];
k(this._seriesIndices, function(a) {
var o = this._componentsMap.get("series")[a];
n.call(r, o, a) && i.push(a);
}, this), this._seriesIndices = i, this._seriesIndicesMap = Pe(i);
}, e.prototype.restoreData = function(n) {
ab(this);
var r = this._componentsMap, i = [];
r.each(function(a, o) {
rt.hasClass(o) && i.push(o);
}), rt.topologicalTravel(i, rt.getAllClassMainTypes(), function(a) {
k(r.get(a), function(o) {
o && (a !== "series" || !kLe(o, n)) && o.restoreData();
});
});
}, e.internalField = function() {
ab = function(n) {
var r = n._seriesIndices = [];
k(n._componentsMap.get("series"), function(i) {
i && r.push(i.componentIndex);
}), n._seriesIndicesMap = Pe(r);
}, cv = function(n) {
if (process.env.NODE_ENV !== "production" && !n._seriesIndices)
throw new Error("Option should contains series.");
}, JB = function(n, r) {
n.option = {}, n.option[$T] = ez, n._componentsMap = Pe({
series: []
}), n._componentsCount = Pe();
var i = r.aria;
Ie(i) && i.enabled == null && (i.enabled = !0), LLe(r, n._theme.option), qe(r, wLe, !1), n._mergeOption(r, null);
};
}(), e;
}(Wt)
);
function kLe(t, e) {
if (e) {
var n = e.seriesIndex, r = e.seriesId, i = e.seriesName;
return n != null && t.componentIndex !== n || r != null && t.id !== r || i != null && t.name !== i;
}
}
function LLe(t, e) {
var n = t.color && !t.colorLayer;
k(e, function(r, i) {
i === "colorLayer" && n || rt.hasClass(i) || (typeof r == "object" ? t[i] = t[i] ? qe(t[i], r, !1) : Le(r) : t[i] == null && (t[i] = r));
});
}
function tz(t, e, n) {
if (ue(e)) {
var r = Pe();
return k(e, function(a) {
if (a != null) {
var o = Vn(a, null);
o != null && r.set(a, !0);
}
}), Nt(n, function(a) {
return a && r.get(a[t]);
});
} else {
var i = Vn(e, null);
return Nt(n, function(a) {
return a && i != null && a[t] === i;
});
}
}
function nz(t, e) {
return e.hasOwnProperty("subType") ? Nt(t, function(n) {
return n && n.subType === e.subType;
}) : t;
}
function rz(t) {
var e = Pe();
return t && k(Qt(t.replaceMerge), function(n) {
process.env.NODE_ENV !== "production" && ke(rt.hasClass(n), '"' + n + '" is not valid component main type in "replaceMerge"'), e.set(n, !0);
}), {
replaceMergeMainTypeMap: e
};
}
xn(ok, ak);
var NLe = [
"getDom",
"getZr",
"getWidth",
"getHeight",
"getDevicePixelRatio",
"dispatchAction",
"isSSR",
"isDisposed",
"on",
"off",
"getDataURL",
"getConnectedDataURL",
// 'getModel',
"getOption",
// 'getViewOfComponentModel',
// 'getViewOfSeriesModel',
"getId",
"updateLabelLayout"
], LJ = (
/** @class */
/* @__PURE__ */ function() {
function t(e) {
k(NLe, function(n) {
this[n] = xe(e[n], e);
}, this);
}
return t;
}()
), AT = {}, Vf = (
/** @class */
function() {
function t() {
this._coordinateSystems = [];
}
return t.prototype.create = function(e, n) {
var r = [];
k(AT, function(i, a) {
var o = i.create(e, n);
r = r.concat(o || []);
}), this._coordinateSystems = r;
}, t.prototype.update = function(e, n) {
k(this._coordinateSystems, function(r) {
r.update && r.update(e, n);
});
}, t.prototype.getCoordinateSystems = function() {
return this._coordinateSystems.slice();
}, t.register = function(e, n) {
AT[e] = n;
}, t.get = function(e) {
return AT[e];
}, t;
}()
), BLe = /^(min|max)?(.+)$/, zLe = (
/** @class */
function() {
function t(e) {
this._timelineOptions = [], this._mediaList = [], this._currentMediaIndices = [], this._api = e;
}
return t.prototype.setOption = function(e, n, r) {
e && (k(Qt(e.series), function(o) {
o && o.data && Br(o.data) && bm(o.data);
}), k(Qt(e.dataset), function(o) {
o && o.source && Br(o.source) && bm(o.source);
})), e = Le(e);
var i = this._optionBackup, a = VLe(e, n, !i);
this._newBaseOption = a.baseOption, i ? (a.timelineOptions.length && (i.timelineOptions = a.timelineOptions), a.mediaList.length && (i.mediaList = a.mediaList), a.mediaDefault && (i.mediaDefault = a.mediaDefault)) : this._optionBackup = a;
}, t.prototype.mountOption = function(e) {
var n = this._optionBackup;
return this._timelineOptions = n.timelineOptions, this._mediaList = n.mediaList, this._mediaDefault = n.mediaDefault, this._currentMediaIndices = [], Le(e ? n.baseOption : this._newBaseOption);
}, t.prototype.getTimelineOption = function(e) {
var n, r = this._timelineOptions;
if (r.length) {
var i = e.getComponent("timeline");
i && (n = Le(
// FIXME:TS as TimelineModel or quivlant interface
r[i.getCurrentIndex()]
));
}
return n;
}, t.prototype.getMediaOption = function(e) {
var n = this._api.getWidth(), r = this._api.getHeight(), i = this._mediaList, a = this._mediaDefault, o = [], s = [];
if (!i.length && !a)
return s;
for (var l = 0, u = i.length; l < u; l++)
FLe(i[l].query, n, r) && o.push(l);
return !o.length && a && (o = [-1]), o.length && !QLe(o, this._currentMediaIndices) && (s = ce(o, function(c) {
return Le(c === -1 ? a.option : i[c].option);
})), this._currentMediaIndices = o, s;
}, t;
}()
);
function VLe(t, e, n) {
var r = [], i, a, o = t.baseOption, s = t.timeline, l = t.options, u = t.media, c = !!t.media, f = !!(l || s || o && o.timeline);
o ? (a = o, a.timeline || (a.timeline = s)) : ((f || c) && (t.options = t.media = null), a = t), c && (ue(u) ? k(u, function(h) {
process.env.NODE_ENV !== "production" && h && !h.option && Ie(h.query) && Ie(h.query.option) && Cr("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"), h && h.option && (h.query ? r.push(h) : i || (i = h));
}) : process.env.NODE_ENV !== "production" && Cr("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")), d(a), k(l, function(h) {
return d(h);
}), k(r, function(h) {
return d(h.option);
});
function d(h) {
k(e, function(p) {
p(h, n);
});
}
return {
baseOption: a,
timelineOptions: l || [],
mediaDefault: i,
mediaList: r
};
}
function FLe(t, e, n) {
var r = {
width: e,
height: n,
aspectratio: e / n
// lower case for convenience.
}, i = !0;
return k(t, function(a, o) {
var s = o.match(BLe);
if (!(!s || !s[1] || !s[2])) {
var l = s[1], u = s[2].toLowerCase();
WLe(r[u], a, l) || (i = !1);
}
}), i;
}
function WLe(t, e, n) {
return n === "min" ? t >= e : n === "max" ? t <= e : t === e;
}
function QLe(t, e) {
return t.join(",") === e.join(",");
}
var na = k, Mm = Ie, iz = ["areaStyle", "lineStyle", "nodeStyle", "linkStyle", "chordStyle", "label", "labelLine"];
function ET(t) {
var e = t && t.itemStyle;
if (e)
for (var n = 0, r = iz.length; n < r; n++) {
var i = iz[n], a = e.normal, o = e.emphasis;
a && a[i] && (process.env.NODE_ENV !== "production" && Cn("itemStyle.normal." + i, i), t[i] = t[i] || {}, t[i].normal ? qe(t[i].normal, a[i]) : t[i].normal = a[i], a[i] = null), o && o[i] && (process.env.NODE_ENV !== "production" && Cn("itemStyle.emphasis." + i, "emphasis." + i), t[i] = t[i] || {}, t[i].emphasis ? qe(t[i].emphasis, o[i]) : t[i].emphasis = o[i], o[i] = null);
}
}
function Dr(t, e, n) {
if (t && t[e] && (t[e].normal || t[e].emphasis)) {
var r = t[e].normal, i = t[e].emphasis;
r && (process.env.NODE_ENV !== "production" && Ia("'normal' hierarchy in " + e + " has been removed since 4.0. All style properties are configured in " + e + " directly now."), n ? (t[e].normal = t[e].emphasis = null, Re(t[e], r)) : t[e] = r), i && (process.env.NODE_ENV !== "production" && Ia(e + ".emphasis has been changed to emphasis." + e + " since 4.0"), t.emphasis = t.emphasis || {}, t.emphasis[e] = i, i.focus && (t.emphasis.focus = i.focus), i.blurScope && (t.emphasis.blurScope = i.blurScope));
}
}
function Kv(t) {
Dr(t, "itemStyle"), Dr(t, "lineStyle"), Dr(t, "areaStyle"), Dr(t, "label"), Dr(t, "labelLine"), Dr(t, "upperLabel"), Dr(t, "edgeLabel");
}
function En(t, e) {
var n = Mm(t) && t[e], r = Mm(n) && n.textStyle;
if (r) {
process.env.NODE_ENV !== "production" && Ia("textStyle hierarchy in " + e + " has been removed since 4.0. All textStyle properties are configured in " + e + " directly now.");
for (var i = 0, a = lB.length; i < a; i++) {
var o = lB[i];
r.hasOwnProperty(o) && (n[o] = r[o]);
}
}
}
function ca(t) {
t && (Kv(t), En(t, "label"), t.emphasis && En(t.emphasis, "label"));
}
function HLe(t) {
if (Mm(t)) {
ET(t), Kv(t), En(t, "label"), En(t, "upperLabel"), En(t, "edgeLabel"), t.emphasis && (En(t.emphasis, "label"), En(t.emphasis, "upperLabel"), En(t.emphasis, "edgeLabel"));
var e = t.markPoint;
e && (ET(e), ca(e));
var n = t.markLine;
n && (ET(n), ca(n));
var r = t.markArea;
r && ca(r);
var i = t.data;
if (t.type === "graph") {
i = i || t.nodes;
var a = t.links || t.edges;
if (a && !Br(a))
for (var o = 0; o < a.length; o++)
ca(a[o]);
k(t.categories, function(u) {
Kv(u);
});
}
if (i && !Br(i))
for (var o = 0; o < i.length; o++)
ca(i[o]);
if (e = t.markPoint, e && e.data)
for (var s = e.data, o = 0; o < s.length; o++)
ca(s[o]);
if (n = t.markLine, n && n.data)
for (var l = n.data, o = 0; o < l.length; o++)
ue(l[o]) ? (ca(l[o][0]), ca(l[o][1])) : ca(l[o]);
t.type === "gauge" ? (En(t, "axisLabel"), En(t, "title"), En(t, "detail")) : t.type === "treemap" ? (Dr(t.breadcrumb, "itemStyle"), k(t.levels, function(u) {
Kv(u);
})) : t.type === "tree" && Kv(t.leaves);
}
}
function ys(t) {
return ue(t) ? t : t ? [t] : [];
}
function az(t) {
return (ue(t) ? t[0] : t) || {};
}
function GLe(t, e) {
na(ys(t.series), function(r) {
Mm(r) && HLe(r);
});
var n = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "parallelAxis", "radar"];
e && n.push("valueAxis", "categoryAxis", "logAxis", "timeAxis"), na(n, function(r) {
na(ys(t[r]), function(i) {
i && (En(i, "axisLabel"), En(i.axisPointer, "label"));
});
}), na(ys(t.parallel), function(r) {
var i = r && r.parallelAxisDefault;
En(i, "axisLabel"), En(i && i.axisPointer, "label");
}), na(ys(t.calendar), function(r) {
Dr(r, "itemStyle"), En(r, "dayLabel"), En(r, "monthLabel"), En(r, "yearLabel");
}), na(ys(t.radar), function(r) {
En(r, "name"), r.name && r.axisName == null && (r.axisName = r.name, delete r.name, process.env.NODE_ENV !== "production" && Ia("name property in radar component has been changed to axisName")), r.nameGap != null && r.axisNameGap == null && (r.axisNameGap = r.nameGap, delete r.nameGap, process.env.NODE_ENV !== "production" && Ia("nameGap property in radar component has been changed to axisNameGap")), process.env.NODE_ENV !== "production" && na(r.indicator, function(i) {
i.text && Cn("text", "name", "radar.indicator");
});
}), na(ys(t.geo), function(r) {
Mm(r) && (ca(r), na(ys(r.regions), function(i) {
ca(i);
}));
}), na(ys(t.timeline), function(r) {
ca(r), Dr(r, "label"), Dr(r, "itemStyle"), Dr(r, "controlStyle", !0);
var i = r.data;
ue(i) && k(i, function(a) {
Ie(a) && (Dr(a, "label"), Dr(a, "itemStyle"));
});
}), na(ys(t.toolbox), function(r) {
Dr(r, "iconStyle"), na(r.feature, function(i) {
Dr(i, "iconStyle");
});
}), En(az(t.axisPointer), "label"), En(az(t.tooltip).axisPointer, "label");
}
function jLe(t, e) {
for (var n = e.split(","), r = t, i = 0; i < n.length && (r = r && r[n[i]], r != null); i++)
;
return r;
}
function ZLe(t, e, n, r) {
for (var i = e.split(","), a = t, o, s = 0; s < i.length - 1; s++)
o = i[s], a[o] == null && (a[o] = {}), a = a[o];
a[i[s]] == null && (a[i[s]] = n);
}
function oz(t) {
t && k(ULe, function(e) {
e[0] in t && !(e[1] in t) && (t[e[1]] = t[e[0]]);
});
}
var ULe = [["x", "left"], ["y", "top"], ["x2", "right"], ["y2", "bottom"]], XLe = ["grid", "geo", "parallel", "legend", "toolbox", "title", "visualMap", "dataZoom", "timeline"], MT = [["borderRadius", "barBorderRadius"], ["borderColor", "barBorderColor"], ["borderWidth", "barBorderWidth"]];
function fv(t) {
var e = t && t.itemStyle;
if (e)
for (var n = 0; n < MT.length; n++) {
var r = MT[n][1], i = MT[n][0];
e[r] != null && (e[i] = e[r], process.env.NODE_ENV !== "production" && Cn(r, i));
}
}
function sz(t) {
t && t.alignTo === "edge" && t.margin != null && t.edgeDistance == null && (process.env.NODE_ENV !== "production" && Cn("label.margin", "label.edgeDistance", "pie"), t.edgeDistance = t.margin);
}
function lz(t) {
t && t.downplay && !t.blur && (t.blur = t.downplay, process.env.NODE_ENV !== "production" && Cn("downplay", "blur", "sunburst"));
}
function YLe(t) {
t && t.focusNodeAdjacency != null && (t.emphasis = t.emphasis || {}, t.emphasis.focus == null && (process.env.NODE_ENV !== "production" && Cn("focusNodeAdjacency", "emphasis: { focus: 'adjacency'}", "graph/sankey"), t.emphasis.focus = "adjacency"));
}
function NJ(t, e) {
if (t)
for (var n = 0; n < t.length; n++)
e(t[n]), t[n] && NJ(t[n].children, e);
}
function BJ(t, e) {
GLe(t, e), t.series = Qt(t.series), k(t.series, function(n) {
if (Ie(n)) {
var r = n.type;
if (r === "line")
n.clipOverflow != null && (n.clip = n.clipOverflow, process.env.NODE_ENV !== "production" && Cn("clipOverflow", "clip", "line"));
else if (r === "pie" || r === "gauge") {
n.clockWise != null && (n.clockwise = n.clockWise, process.env.NODE_ENV !== "production" && Cn("clockWise", "clockwise")), sz(n.label);
var i = n.data;
if (i && !Br(i))
for (var a = 0; a < i.length; a++)
sz(i[a]);
n.hoverOffset != null && (n.emphasis = n.emphasis || {}, (n.emphasis.scaleSize = null) && (process.env.NODE_ENV !== "production" && Cn("hoverOffset", "emphasis.scaleSize"), n.emphasis.scaleSize = n.hoverOffset));
} else if (r === "gauge") {
var o = jLe(n, "pointer.color");
o != null && ZLe(n, "itemStyle.color", o);
} else if (r === "bar") {
fv(n), fv(n.backgroundStyle), fv(n.emphasis);
var i = n.data;
if (i && !Br(i))
for (var a = 0; a < i.length; a++)
typeof i[a] == "object" && (fv(i[a]), fv(i[a] && i[a].emphasis));
} else if (r === "sunburst") {
var s = n.highlightPolicy;
s && (n.emphasis = n.emphasis || {}, n.emphasis.focus || (n.emphasis.focus = s, process.env.NODE_ENV !== "production" && Cn("highlightPolicy", "emphasis.focus", "sunburst"))), lz(n), NJ(n.data, lz);
} else r === "graph" || r === "sankey" ? YLe(n) : r === "map" && (n.mapType && !n.map && (process.env.NODE_ENV !== "production" && Cn("mapType", "map", "map"), n.map = n.mapType), n.mapLocation && (process.env.NODE_ENV !== "production" && Ia("`mapLocation` is not used anymore."), Re(n, n.mapLocation)));
n.hoverAnimation != null && (n.emphasis = n.emphasis || {}, n.emphasis && n.emphasis.scale == null && (process.env.NODE_ENV !== "production" && Cn("hoverAnimation", "emphasis.scale"), n.emphasis.scale = n.hoverAnimation)), oz(n);
}
}), t.dataRange && (t.visualMap = t.dataRange), k(XLe, function(n) {
var r = t[n];
r && (ue(r) || (r = [r]), k(r, function(i) {
oz(i);
}));
});
}
function qLe(t) {
var e = Pe();
t.eachSeries(function(n) {
var r = n.get("stack");
if (r) {
var i = e.get(r) || e.set(r, []), a = n.getData(), o = {
// Used for calculate axis extent automatically.
// TODO: Type getCalculationInfo return more specific type?
stackResultDimension: a.getCalculationInfo("stackResultDimension"),
stackedOverDimension: a.getCalculationInfo("stackedOverDimension"),
stackedDimension: a.getCalculationInfo("stackedDimension"),
stackedByDimension: a.getCalculationInfo("stackedByDimension"),
isStackedByIndex: a.getCalculationInfo("isStackedByIndex"),
data: a,
seriesModel: n
};
if (!o.stackedDimension || !(o.isStackedByIndex || o.stackedByDimension))
return;
i.length && a.setCalculationInfo("stackedOnSeries", i[i.length - 1].seriesModel), i.push(o);
}
}), e.each(KLe);
}
function KLe(t) {
k(t, function(e, n) {
var r = [], i = [NaN, NaN], a = [e.stackResultDimension, e.stackedOverDimension], o = e.data, s = e.isStackedByIndex, l = e.seriesModel.get("stackStrategy") || "samesign";
o.modify(a, function(u, c, f) {
var d = o.get(e.stackedDimension, f);
if (isNaN(d))
return i;
var h, p;
s ? p = o.getRawIndex(f) : h = o.get(e.stackedByDimension, f);
for (var v = NaN, g = n - 1; g >= 0; g--) {
var m = t[g];
if (s || (p = m.data.rawIndexOf(m.stackedByDimension, h)), p >= 0) {
var y = m.data.getByRawIndex(m.stackResultDimension, p);
if (l === "all" || l === "positive" && y > 0 || l === "negative" && y < 0 || l === "samesign" && d >= 0 && y > 0 || l === "samesign" && d <= 0 && y < 0) {
d = FDe(d, y), v = y;
break;
}
}
}
return r[0] = d, r[1] = v, r;
});
});
}
var sw = (
/** @class */
/* @__PURE__ */ function() {
function t(e) {
this.data = e.data || (e.sourceFormat === us ? {} : []), this.sourceFormat = e.sourceFormat || EJ, this.seriesLayoutBy = e.seriesLayoutBy || Yo, this.startIndex = e.startIndex || 0, this.dimensionsDetectedCount = e.dimensionsDetectedCount, this.metaRawOption = e.metaRawOption;
var n = this.dimensionsDefine = e.dimensionsDefine;
if (n)
for (var r = 0; r < n.length; r++) {
var i = n[r];
i.type == null && DJ(this, r) === cr.Must && (i.type = "ordinal");
}
}
return t;
}()
);
function sk(t) {
return t instanceof sw;
}
function GA(t, e, n) {
n = n || zJ(t);
var r = e.seriesLayoutBy, i = e4e(t, n, r, e.sourceHeader, e.dimensions), a = new sw({
data: t,
sourceFormat: n,
seriesLayoutBy: r,
dimensionsDefine: i.dimensionsDefine,
startIndex: i.startIndex,
dimensionsDetectedCount: i.dimensionsDetectedCount,
metaRawOption: Le(e)
});
return a;
}
function lk(t) {
return new sw({
data: t,
sourceFormat: Br(t) ? Rs : Ba
});
}
function JLe(t) {
return new sw({
data: t.data,
sourceFormat: t.sourceFormat,
seriesLayoutBy: t.seriesLayoutBy,
dimensionsDefine: Le(t.dimensionsDefine),
startIndex: t.startIndex,
dimensionsDetectedCount: t.dimensionsDetectedCount
});
}
function zJ(t) {
var e = EJ;
if (Br(t))
e = Rs;
else if (ue(t)) {
t.length === 0 && (e = zr);
for (var n = 0, r = t.length; n < r; n++) {
var i = t[n];
if (i != null) {
if (ue(i) || Br(i)) {
e = zr;
break;
} else if (Ie(i)) {
e = za;
break;
}
}
}
} else if (Ie(t)) {
for (var a in t)
if (Ce(t, a) && wr(t[a])) {
e = us;
break;
}
}
return e;
}
function e4e(t, e, n, r, i) {
var a, o;
if (!t)
return {
dimensionsDefine: uz(i),
startIndex: o,
dimensionsDetectedCount: a
};
if (e === zr) {
var s = t;
r === "auto" || r == null ? cz(function(u) {
u != null && u !== "-" && (Oe(u) ? o == null && (o = 1) : o = 0);
}, n, s, 10) : o = St(r) ? r : r ? 1 : 0, !i && o === 1 && (i = [], cz(function(u, c) {
i[c] = u != null ? u + "" : "";
}, n, s, 1 / 0)), a = i ? i.length : n === Cp ? s.length : s[0] ? s[0].length : null;
} else if (e === za)
i || (i = t4e(t));
else if (e === us)
i || (i = [], k(t, function(u, c) {
i.push(c);
}));
else if (e === Ba) {
var l = gp(t[0]);
a = ue(l) && l.length || 1;
} else e === Rs && process.env.NODE_ENV !== "production" && ke(!!i, "dimensions must be given if data is TypedArray.");
return {
startIndex: o,
dimensionsDefine: uz(i),
dimensionsDetectedCount: a
};
}
function t4e(t) {
for (var e = 0, n; e < t.length && !(n = t[e++]); )
;
if (n)
return st(n);
}
function uz(t) {
if (t) {
var e = Pe();
return ce(t, function(n, r) {
n = Ie(n) ? n : {
name: n
};
var i = {
name: n.name,
displayName: n.displayName,
type: n.type
};
if (i.name == null)
return i;
i.name += "", i.displayName == null && (i.displayName = i.name);
var a = e.get(i.name);
return a ? i.name += "-" + a.count++ : e.set(i.name, {
count: 1
}), i;
});
}
}
function cz(t, e, n, r) {
if (e === Cp)
for (var i = 0; i < n.length && i < r; i++)
t(n[i] ? n[i][0] : null, i);
else
for (var a = n[0] || [], i = 0; i < a.length && i < r; i++)
t(a[i], i);
}
function VJ(t) {
var e = t.sourceFormat;
return e === za || e === us;
}
var tc, nc, rc, fz, dz, FJ = (
/** @class */
function() {
function t(e, n) {
var r = sk(e) ? e : lk(e);
this._source = r;
var i = this._data = r.data;
if (r.sourceFormat === Rs) {
if (process.env.NODE_ENV !== "production" && n == null)
throw new Error("Typed array data must specify dimension size");
this._offset = 0, this._dimSize = n, this._data = i;
}
dz(this, i, r);
}
return t.prototype.getSource = function() {
return this._source;
}, t.prototype.count = function() {
return 0;
}, t.prototype.getItem = function(e, n) {
}, t.prototype.appendData = function(e) {
}, t.prototype.clean = function() {
}, t.protoInitialize = function() {
var e = t.prototype;
e.pure = !1, e.persistent = !0;
}(), t.internalField = function() {
var e;
dz = function(o, s, l) {
var u = l.sourceFormat, c = l.seriesLayoutBy, f = l.startIndex, d = l.dimensionsDefine, h = fz[uk(u, c)];
if (process.env.NODE_ENV !== "production" && ke(h, "Invalide sourceFormat: " + u), le(o, h), u === Rs)
o.getItem = n, o.count = i, o.fillStorage = r;
else {
var p = WJ(u, c);
o.getItem = xe(p, null, s, f, d);
var v = QJ(u, c);
o.count = xe(v, null, s, f, d);
}
};
var n = function(o, s) {
o = o - this._offset, s = s || [];
for (var l = this._data, u = this._dimSize, c = u * o, f = 0; f < u; f++)
s[f] = l[c + f];
return s;
}, r = function(o, s, l, u) {
for (var c = this._data, f = this._dimSize, d = 0; d < f; d++) {
for (var h = u[d], p = h[0] == null ? 1 / 0 : h[0], v = h[1] == null ? -1 / 0 : h[1], g = s - o, m = l[d], y = 0; y < g; y++) {
var b = c[y * f + d];
m[o + y] = b, b < p && (p = b), b > v && (v = b);
}
h[0] = p, h[1] = v;
}
}, i = function() {
return this._data ? this._data.length / this._dimSize : 0;
};
fz = (e = {}, e[zr + "_" + Yo] = {
pure: !0,
appendData: a
}, e[zr + "_" + Cp] = {
pure: !0,
appendData: function() {
throw new Error('Do not support appendData when set seriesLayoutBy: "row".');
}
}, e[za] = {
pure: !0,
appendData: a
}, e[us] = {
pure: !0,
appendData: function(o) {
var s = this._data;
k(o, function(l, u) {
for (var c = s[u] || (s[u] = []), f = 0; f < (l || []).length; f++)
c.push(l[f]);
});
}
}, e[Ba] = {
appendData: a
}, e[Rs] = {
persistent: !1,
pure: !0,
appendData: function(o) {
process.env.NODE_ENV !== "production" && ke(Br(o), "Added data must be TypedArray if data in initialization is TypedArray"), this._data = o;
},
// Clean self if data is already used.
clean: function() {
this._offset += this.count(), this._data = null;
}
}, e);
function a(o) {
for (var s = 0; s < o.length; s++)
this._data.push(o[s]);
}
}(), t;
}()
), hz = function(t, e, n, r) {
return t[r];
}, n4e = (tc = {}, tc[zr + "_" + Yo] = function(t, e, n, r) {
return t[r + e];
}, tc[zr + "_" + Cp] = function(t, e, n, r, i) {
r += e;
for (var a = i || [], o = t, s = 0; s < o.length; s++) {
var l = o[s];
a[s] = l ? l[r] : null;
}
return a;
}, tc[za] = hz, tc[us] = function(t, e, n, r, i) {
for (var a = i || [], o = 0; o < n.length; o++) {
var s = n[o].name;
if (process.env.NODE_ENV !== "production" && s == null)
throw new Error();
var l = t[s];
a[o] = l ? l[r] : null;
}
return a;
}, tc[Ba] = hz, tc);
function WJ(t, e) {
var n = n4e[uk(t, e)];
return process.env.NODE_ENV !== "production" && ke(n, 'Do not support get item on "' + t + '", "' + e + '".'), n;
}
var pz = function(t, e, n) {
return t.length;
}, r4e = (nc = {}, nc[zr + "_" + Yo] = function(t, e, n) {
return Math.max(0, t.length - e);
}, nc[zr + "_" + Cp] = function(t, e, n) {
var r = t[0];
return r ? Math.max(0, r.length - e) : 0;
}, nc[za] = pz, nc[us] = function(t, e, n) {
var r = n[0].name;
if (process.env.NODE_ENV !== "production" && r == null)
throw new Error();
var i = t[r];
return i ? i.length : 0;
}, nc[Ba] = pz, nc);
function QJ(t, e) {
var n = r4e[uk(t, e)];
return process.env.NODE_ENV !== "production" && ke(n, 'Do not support count on "' + t + '", "' + e + '".'), n;
}
var IT = function(t, e, n) {
return t[e];
}, i4e = (rc = {}, rc[zr] = IT, rc[za] = function(t, e, n) {
return t[n];
}, rc[us] = IT, rc[Ba] = function(t, e, n) {
var r = gp(t);
return r instanceof Array ? r[e] : r;
}, rc[Rs] = IT, rc);
function HJ(t) {
var e = i4e[t];
return process.env.NODE_ENV !== "production" && ke(e, 'Do not support get value on "' + t + '".'), e;
}
function uk(t, e) {
return t === zr ? t + "_" + e : t;
}
function Gh(t, e, n) {
if (t) {
var r = t.getRawDataItem(e);
if (r != null) {
var i = t.getStore(), a = i.getSource().sourceFormat;
if (n != null) {
var o = t.getDimensionIndex(n), s = i.getDimensionProperty(o);
return HJ(a)(r, o, s);
} else {
var l = r;
return a === Ba && (l = gp(r)), l;
}
}
}
}
var a4e = /\{@(.+?)\}/g, lw = (
/** @class */
function() {
function t() {
}
return t.prototype.getDataParams = function(e, n) {
var r = this.getData(n), i = this.getRawValue(e, n), a = r.getRawIndex(e), o = r.getName(e), s = r.getRawDataItem(e), l = r.getItemVisual(e, "style"), u = l && l[r.getItemVisual(e, "drawType") || "fill"], c = l && l.stroke, f = this.mainType, d = f === "series", h = r.userOutput && r.userOutput.get();
return {
componentType: f,
componentSubType: this.subType,
componentIndex: this.componentIndex,
seriesType: d ? this.subType : null,
seriesIndex: this.seriesIndex,
seriesId: d ? this.id : null,
seriesName: d ? this.name : null,
name: o,
dataIndex: a,
data: s,
dataType: n,
value: i,
color: u,
borderColor: c,
dimensionNames: h ? h.fullDimensions : null,
encode: h ? h.encode : null,
// Param name list for mapping `a`, `b`, `c`, `d`, `e`
$vars: ["seriesName", "name", "value"]
};
}, t.prototype.getFormattedLabel = function(e, n, r, i, a, o) {
n = n || "normal";
var s = this.getData(r), l = this.getDataParams(e, r);
if (o && (l.value = o.interpolatedValue), i != null && ue(l.value) && (l.value = l.value[i]), !a) {
var u = s.getItemModel(e);
a = u.get(n === "normal" ? ["label", "formatter"] : [n, "label", "formatter"]);
}
if (Me(a))
return l.status = n, l.dimensionIndex = i, a(l);
if (Oe(a)) {
var c = tk(a, l);
return c.replace(a4e, function(f, d) {
var h = d.length, p = d;
p.charAt(0) === "[" && p.charAt(h - 1) === "]" && (p = +p.slice(1, h - 1), process.env.NODE_ENV !== "production" && isNaN(p) && Cr("Invalide label formatter: @" + d + ", only support @[0], @[1], @[2], ..."));
var v = Gh(s, e, p);
if (o && ue(o.interpolatedValue)) {
var g = s.getDimensionIndex(p);
g >= 0 && (v = o.interpolatedValue[g]);
}
return v != null ? v + "" : "";
});
}
}, t.prototype.getRawValue = function(e, n) {
return Gh(this.getData(n), e);
}, t.prototype.formatTooltip = function(e, n, r) {
}, t;
}()
);
function vz(t) {
var e, n;
return Ie(t) ? t.type ? n = t : process.env.NODE_ENV !== "production" && console.warn("The return type of `formatTooltip` is not supported: " + ni(t)) : e = t, {
text: e,
// markers: markers || markersExisting,
frag: n
};
}
function Bg(t) {
return new o4e(t);
}
var o4e = (
/** @class */
function() {
function t(e) {
e = e || {}, this._reset = e.reset, this._plan = e.plan, this._count = e.count, this._onDirty = e.onDirty, this._dirty = !0;
}
return t.prototype.perform = function(e) {
var n = this._upstream, r = e && e.skip;
if (this._dirty && n) {
var i = this.context;
i.data = i.outputData = n.context.outputData;
}
this.__pipeline && (this.__pipeline.currentTask = this);
var a;
this._plan && !r && (a = this._plan(this.context));
var o = c(this._modBy), s = this._modDataCount || 0, l = c(e && e.modBy), u = e && e.modDataCount || 0;
(o !== l || s !== u) && (a = "reset");
function c(y) {
return !(y >= 1) && (y = 1), y;
}
var f;
(this._dirty || a === "reset") && (this._dirty = !1, f = this._doReset(r)), this._modBy = l, this._modDataCount = u;
var d = e && e.step;
if (n ? (process.env.NODE_ENV !== "production" && ke(n._outputDueEnd != null), this._dueEnd = n._outputDueEnd) : (process.env.NODE_ENV !== "production" && ke(!this._progress || this._count), this._dueEnd = this._count ? this._count(this.context) : 1 / 0), this._progress) {
var h = this._dueIndex, p = Math.min(d != null ? this._dueIndex + d : 1 / 0, this._dueEnd);
if (!r && (f || h < p)) {
var v = this._progress;
if (ue(v))
for (var g = 0; g < v.length; g++)
this._doProgress(v[g], h, p, l, u);
else
this._doProgress(v, h, p, l, u);
}
this._dueIndex = p;
var m = this._settedOutputEnd != null ? this._settedOutputEnd : p;
process.env.NODE_ENV !== "production" && ke(m >= this._outputDueEnd), this._outputDueEnd = m;
} else
this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;
return this.unfinished();
}, t.prototype.dirty = function() {
this._dirty = !0, this._onDirty && this._onDirty(this.context);
}, t.prototype._doProgress = function(e, n, r, i, a) {
gz.reset(n, r, i, a), this._callingProgress = e, this._callingProgress({
start: n,
end: r,
count: r - n,
next: gz.next
}, this.context);
}, t.prototype._doReset = function(e) {
this._dueIndex = this._outputDueEnd = this._dueEnd = 0, this._settedOutputEnd = null;
var n, r;
!e && this._reset && (n = this._reset(this.context), n && n.progress && (r = n.forceFirstProgress, n = n.progress), ue(n) && !n.length && (n = null)), this._progress = n, this._modBy = this._modDataCount = null;
var i = this._downstream;
return i && i.dirty(), r;
}, t.prototype.unfinished = function() {
return this._progress && this._dueIndex < this._dueEnd;
}, t.prototype.pipe = function(e) {
process.env.NODE_ENV !== "production" && ke(e && !e._disposed && e !== this), (this._downstream !== e || this._dirty) && (this._downstream = e, e._upstream = this, e.dirty());
}, t.prototype.dispose = function() {
this._disposed || (this._upstream && (this._upstream._downstream = null), this._downstream && (this._downstream._upstream = null), this._dirty = !1, this._disposed = !0);
}, t.prototype.getUpstream = function() {
return this._upstream;
}, t.prototype.getDownstream = function() {
return this._downstream;
}, t.prototype.setOutputEnd = function(e) {
this._outputDueEnd = this._settedOutputEnd = e;
}, t;
}()
), gz = /* @__PURE__ */ function() {
var t, e, n, r, i, a = {
reset: function(l, u, c, f) {
e = l, t = u, n = c, r = f, i = Math.ceil(r / n), a.next = n > 1 && r > 0 ? s : o;
}
};
return a;
function o() {
return e < t ? e++ : null;
}
function s() {
var l = e % i * n + Math.ceil(e / i), u = e >= t ? null : l < r ? l : e;
return e++, u;
}
}();
function Kl(t, e) {
var n = e && e.type;
return n === "ordinal" ? t : (n === "time" && !St(t) && t != null && t !== "-" && (t = +Ki(t)), t == null || t === "" ? NaN : Number(t));
}
var s4e = Pe({
number: function(t) {
return parseFloat(t);
},
time: function(t) {
return +Ki(t);
},
trim: function(t) {
return Oe(t) ? ba(t) : t;
}
});
function GJ(t) {
return s4e.get(t);
}
var jJ = {
lt: function(t, e) {
return t < e;
},
lte: function(t, e) {
return t <= e;
},
gt: function(t, e) {
return t > e;
},
gte: function(t, e) {
return t >= e;
}
}, l4e = (
/** @class */
function() {
function t(e, n) {
if (!St(n)) {
var r = "";
process.env.NODE_ENV !== "production" && (r = 'rvalue of "<", ">", "<=", ">=" can only be number in filter.'), Et(r);
}
this._opFn = jJ[e], this._rvalFloat = as(n);
}
return t.prototype.evaluate = function(e) {
return St(e) ? this._opFn(e, this._rvalFloat) : this._opFn(as(e), this._rvalFloat);
}, t;
}()
), ZJ = (
/** @class */
function() {
function t(e, n) {
var r = e === "desc";
this._resultLT = r ? 1 : -1, n == null && (n = r ? "min" : "max"), this._incomparable = n === "min" ? -1 / 0 : 1 / 0;
}
return t.prototype.evaluate = function(e, n) {
var r = St(e) ? e : as(e), i = St(n) ? n : as(n), a = isNaN(r), o = isNaN(i);
if (a && (r = this._incomparable), o && (i = this._incomparable), a && o) {
var s = Oe(e), l = Oe(n);
s && (r = l ? e : 0), l && (i = s ? n : 0);
}
return r < i ? this._resultLT : r > i ? -this._resultLT : 0;
}, t;
}()
), u4e = (
/** @class */
function() {
function t(e, n) {
this._rval = n, this._isEQ = e, this._rvalTypeof = typeof n, this._rvalFloat = as(n);
}
return t.prototype.evaluate = function(e) {
var n = e === this._rval;
if (!n) {
var r = typeof e;
r !== this._rvalTypeof && (r === "number" || this._rvalTypeof === "number") && (n = as(e) === this._rvalFloat);
}
return this._isEQ ? n : !n;
}, t;
}()
);
function c4e(t, e) {
return t === "eq" || t === "ne" ? new u4e(t === "eq", e) : Ce(jJ, t) ? new l4e(t, e) : null;
}
var f4e = (
/** @class */
function() {
function t() {
}
return t.prototype.getRawData = function() {
throw new Error("not supported");
}, t.prototype.getRawDataItem = function(e) {
throw new Error("not supported");
}, t.prototype.cloneRawData = function() {
}, t.prototype.getDimensionInfo = function(e) {
}, t.prototype.cloneAllDimensionInfo = function() {
}, t.prototype.count = function() {
}, t.prototype.retrieveValue = function(e, n) {
}, t.prototype.retrieveValueFromItem = function(e, n) {
}, t.prototype.convertValue = function(e, n) {
return Kl(e, n);
}, t;
}()
);
function d4e(t, e) {
var n = new f4e(), r = t.data, i = n.sourceFormat = t.sourceFormat, a = t.startIndex, o = "";
t.seriesLayoutBy !== Yo && (process.env.NODE_ENV !== "production" && (o = '`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'), Et(o));
var s = [], l = {}, u = t.dimensionsDefine;
if (u)
k(u, function(v, g) {
var m = v.name, y = {
index: g,
name: m,
displayName: v.displayName
};
if (s.push(y), m != null) {
var b = "";
Ce(l, m) && (process.env.NODE_ENV !== "production" && (b = 'dimension name "' + m + '" duplicated.'), Et(b)), l[m] = y;
}
});
else
for (var c = 0; c < t.dimensionsDetectedCount; c++)
s.push({
index: c
});
var f = WJ(i, Yo);
e.__isBuiltIn && (n.getRawDataItem = function(v) {
return f(r, a, s, v);
}, n.getRawData = xe(h4e, null, t)), n.cloneRawData = xe(p4e, null, t);
var d = QJ(i, Yo);
n.count = xe(d, null, r, a, s);
var h = HJ(i);
n.retrieveValue = function(v, g) {
var m = f(r, a, s, v);
return p(m, g);
};
var p = n.retrieveValueFromItem = function(v, g) {
if (v != null) {
var m = s[g];
if (m)
return h(v, g, m.name);
}
};
return n.getDimensionInfo = xe(v4e, null, s, l), n.cloneAllDimensionInfo = xe(g4e, null, s), n;
}
function h4e(t) {
var e = t.sourceFormat;
if (!ck(e)) {
var n = "";
process.env.NODE_ENV !== "production" && (n = "`getRawData` is not supported in source format " + e), Et(n);
}
return t.data;
}
function p4e(t) {
var e = t.sourceFormat, n = t.data;
if (!ck(e)) {
var r = "";
process.env.NODE_ENV !== "production" && (r = "`cloneRawData` is not supported in source format " + e), Et(r);
}
if (e === zr) {
for (var i = [], a = 0, o = n.length; a < o; a++)
i.push(n[a].slice());
return i;
} else if (e === za) {
for (var i = [], a = 0, o = n.length; a < o; a++)
i.push(le({}, n[a]));
return i;
}
}
function v4e(t, e, n) {
if (n != null) {
if (St(n) || !isNaN(n) && !Ce(e, n))
return t[n];
if (Ce(e, n))
return e[n];
}
}
function g4e(t) {
return Le(t);
}
var UJ = Pe();
function m4e(t) {
t = Le(t);
var e = t.type, n = "";
e || (process.env.NODE_ENV !== "production" && (n = "Must have a `type` when `registerTransform`."), Et(n));
var r = e.split(":");
r.length !== 2 && (process.env.NODE_ENV !== "production" && (n = 'Name must include namespace like "ns:regression".'), Et(n));
var i = !1;
r[0] === "echarts" && (e = r[1], i = !0), t.__isBuiltIn = i, UJ.set(e, t);
}
function y4e(t, e, n) {
var r = Qt(t), i = r.length, a = "";
i || (process.env.NODE_ENV !== "production" && (a = "If `transform` declared, it should at least contain one transform."), Et(a));
for (var o = 0, s = i; o < s; o++) {
var l = r[o];
e = b4e(l, e, n, i === 1 ? null : o), o !== s - 1 && (e.length = Math.max(e.length, 1));
}
return e;
}
function b4e(t, e, n, r) {
var i = "";
e.length || (process.env.NODE_ENV !== "production" && (i = "Must have at least one upstream dataset."), Et(i)), Ie(t) || (process.env.NODE_ENV !== "production" && (i = "transform declaration must be an object rather than " + typeof t + "."), Et(i));
var a = t.type, o = UJ.get(a);
o || (process.env.NODE_ENV !== "production" && (i = 'Can not find transform on type "' + a + '".'), Et(i));
var s = ce(e, function(c) {
return d4e(c, o);
}), l = Qt(o.transform({
upstream: s[0],
upstreamList: s,
config: Le(t.config)
}));
if (process.env.NODE_ENV !== "production" && t.print) {
var u = ce(l, function(c) {
var f = r != null ? " === pipe index: " + r : "";
return ["=== dataset index: " + n.datasetIndex + f + " ===", "- transform result data:", ni(c.data), "- transform result dimensions:", ni(c.dimensions)].join(`
`);
}).join(`
`);
GDe(u);
}
return ce(l, function(c, f) {
var d = "";
Ie(c) || (process.env.NODE_ENV !== "production" && (d = "A transform should not return some empty results."), Et(d)), c.data || (process.env.NODE_ENV !== "production" && (d = "Transform result data should be not be null or undefined"), Et(d));
var h = zJ(c.data);
ck(h) || (process.env.NODE_ENV !== "production" && (d = "Transform result data should be array rows or object rows."), Et(d));
var p, v = e[0];
if (v && f === 0 && !c.dimensions) {
var g = v.startIndex;
g && (c.data = v.data.slice(0, g).concat(c.data)), p = {
seriesLayoutBy: Yo,
sourceHeader: g,
dimensions: v.metaRawOption.dimensions
};
} else
p = {
seriesLayoutBy: Yo,
sourceHeader: 0,
dimensions: c.dimensions
};
return GA(c.data, p, null);
});
}
function ck(t) {
return t === zr || t === za;
}
var uw = "undefined", _4e = typeof Uint32Array === uw ? Array : Uint32Array, O4e = typeof Uint16Array === uw ? Array : Uint16Array, XJ = typeof Int32Array === uw ? Array : Int32Array, mz = typeof Float64Array === uw ? Array : Float64Array, YJ = {
float: mz,
int: XJ,
// Ordinal data type can be string or int
ordinal: Array,
number: Array,
time: mz
}, DT;
function dv(t) {
return t > 65535 ? _4e : O4e;
}
function ud() {
return [1 / 0, -1 / 0];
}
function S4e(t) {
var e = t.constructor;
return e === Array ? t.slice() : new e(t);
}
function yz(t, e, n, r, i) {
var a = YJ[n || "float"];
if (i) {
var o = t[e], s = o && o.length;
if (s !== r) {
for (var l = new a(r), u = 0; u < s; u++)
l[u] = o[u];
t[e] = l;
}
} else
t[e] = new a(r);
}
var jA = (
/** @class */
function() {
function t() {
this._chunks = [], this._rawExtent = [], this._extent = [], this._count = 0, this._rawCount = 0, this._calcDimNameToIdx = Pe();
}
return t.prototype.initData = function(e, n, r) {
process.env.NODE_ENV !== "production" && ke(Me(e.getItem) && Me(e.count), "Invalid data provider."), this._provider = e, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity;
var i = e.getSource(), a = this.defaultDimValueGetter = DT[i.sourceFormat];
this._dimValueGetter = r || a, this._rawExtent = [];
var o = VJ(i);
this._dimensions = ce(n, function(s) {
return process.env.NODE_ENV !== "production" && o && ke(s.property != null), {
// Only pick these two props. Not leak other properties like orderMeta.
type: s.type,
property: s.property
};
}), this._initDataFromProvider(0, e.count());
}, t.prototype.getProvider = function() {
return this._provider;
}, t.prototype.getSource = function() {
return this._provider.getSource();
}, t.prototype.ensureCalculationDimension = function(e, n) {
var r = this._calcDimNameToIdx, i = this._dimensions, a = r.get(e);
if (a != null) {
if (i[a].type === n)
return a;
} else
a = i.length;
return i[a] = {
type: n
}, r.set(e, a), this._chunks[a] = new YJ[n || "float"](this._rawCount), this._rawExtent[a] = ud(), a;
}, t.prototype.collectOrdinalMeta = function(e, n) {
var r = this._chunks[e], i = this._dimensions[e], a = this._rawExtent, o = i.ordinalOffset || 0, s = r.length;
o === 0 && (a[e] = ud());
for (var l = a[e], u = o; u < s; u++) {
var c = r[u] = n.parseAndCollect(r[u]);
isNaN(c) || (l[0] = Math.min(c, l[0]), l[1] = Math.max(c, l[1]));
}
i.ordinalMeta = n, i.ordinalOffset = s, i.type = "ordinal";
}, t.prototype.getOrdinalMeta = function(e) {
var n = this._dimensions[e], r = n.ordinalMeta;
return r;
}, t.prototype.getDimensionProperty = function(e) {
var n = this._dimensions[e];
return n && n.property;
}, t.prototype.appendData = function(e) {
process.env.NODE_ENV !== "production" && ke(!this._indices, "appendData can only be called on raw data.");
var n = this._provider, r = this.count();
n.appendData(e);
var i = n.count();
return n.persistent || (i += r), r < i && this._initDataFromProvider(r, i, !0), [r, i];
}, t.prototype.appendValues = function(e, n) {
for (var r = this._chunks, i = this._dimensions, a = i.length, o = this._rawExtent, s = this.count(), l = s + Math.max(e.length, n || 0), u = 0; u < a; u++) {
var c = i[u];
yz(r, u, c.type, l, !0);
}
for (var f = [], d = s; d < l; d++)
for (var h = d - s, p = 0; p < a; p++) {
var c = i[p], v = DT.arrayRows.call(this, e[h] || f, c.property, h, p);
r[p][d] = v;
var g = o[p];
v < g[0] && (g[0] = v), v > g[1] && (g[1] = v);
}
return this._rawCount = this._count = l, {
start: s,
end: l
};
}, t.prototype._initDataFromProvider = function(e, n, r) {
for (var i = this._provider, a = this._chunks, o = this._dimensions, s = o.length, l = this._rawExtent, u = ce(o, function(y) {
return y.property;
}), c = 0; c < s; c++) {
var f = o[c];
l[c] || (l[c] = ud()), yz(a, c, f.type, n, r);
}
if (i.fillStorage)
i.fillStorage(e, n, a, l);
else
for (var d = [], h = e; h < n; h++) {
d = i.getItem(h, d);
for (var p = 0; p < s; p++) {
var v = a[p], g = this._dimValueGetter(d, u[p], h, p);
v[h] = g;
var m = l[p];
g < m[0] && (m[0] = g), g > m[1] && (m[1] = g);
}
}
!i.persistent && i.clean && i.clean(), this._rawCount = this._count = n, this._extent = [];
}, t.prototype.count = function() {
return this._count;
}, t.prototype.get = function(e, n) {
if (!(n >= 0 && n < this._count))
return NaN;
var r = this._chunks[e];
return r ? r[this.getRawIndex(n)] : NaN;
}, t.prototype.getValues = function(e, n) {
var r = [], i = [];
if (n == null) {
n = e, e = [];
for (var a = 0; a < this._dimensions.length; a++)
i.push(a);
} else
i = e;
for (var a = 0, o = i.length; a < o; a++)
r.push(this.get(i[a], n));
return r;
}, t.prototype.getByRawIndex = function(e, n) {
if (!(n >= 0 && n < this._rawCount))
return NaN;
var r = this._chunks[e];
return r ? r[n] : NaN;
}, t.prototype.getSum = function(e) {
var n = this._chunks[e], r = 0;
if (n)
for (var i = 0, a = this.count(); i < a; i++) {
var o = this.get(e, i);
isNaN(o) || (r += o);
}
return r;
}, t.prototype.getMedian = function(e) {
var n = [];
this.each([e], function(a) {
isNaN(a) || n.push(a);
});
var r = n.sort(function(a, o) {
return a - o;
}), i = this.count();
return i === 0 ? 0 : i % 2 === 1 ? r[(i - 1) / 2] : (r[i / 2] + r[i / 2 - 1]) / 2;
}, t.prototype.indexOfRawIndex = function(e) {
if (e >= this._rawCount || e < 0)
return -1;
if (!this._indices)
return e;
var n = this._indices, r = n[e];
if (r != null && r < this._count && r === e)
return e;
for (var i = 0, a = this._count - 1; i <= a; ) {
var o = (i + a) / 2 | 0;
if (n[o] < e)
i = o + 1;
else if (n[o] > e)
a = o - 1;
else
return o;
}
return -1;
}, t.prototype.indicesOfNearest = function(e, n, r) {
var i = this._chunks, a = i[e], o = [];
if (!a)
return o;
r == null && (r = 1 / 0);
for (var s = 1 / 0, l = -1, u = 0, c = 0, f = this.count(); c < f; c++) {
var d = this.getRawIndex(c), h = n - a[d], p = Math.abs(h);
p <= r && ((p < s || p === s && h >= 0 && l < 0) && (s = p, l = h, u = 0), h === l && (o[u++] = c));
}
return o.length = u, o;
}, t.prototype.getIndices = function() {
var e, n = this._indices;
if (n) {
var r = n.constructor, i = this._count;
if (r === Array) {
e = new r(i);
for (var a = 0; a < i; a++)
e[a] = n[a];
} else
e = new r(n.buffer, 0, i);
} else {
var r = dv(this._rawCount);
e = new r(this.count());
for (var a = 0; a < e.length; a++)
e[a] = a;
}
return e;
}, t.prototype.filter = function(e, n) {
if (!this._count)
return this;
for (var r = this.clone(), i = r.count(), a = dv(r._rawCount), o = new a(i), s = [], l = e.length, u = 0, c = e[0], f = r._chunks, d = 0; d < i; d++) {
var h = void 0, p = r.getRawIndex(d);
if (l === 0)
h = n(d);
else if (l === 1) {
var v = f[c][p];
h = n(v, d);
} else {
for (var g = 0; g < l; g++)
s[g] = f[e[g]][p];
s[g] = d, h = n.apply(null, s);
}
h && (o[u++] = p);
}
return u < i && (r._indices = o), r._count = u, r._extent = [], r._updateGetRawIdx(), r;
}, t.prototype.selectRange = function(e) {
var n = this.clone(), r = n._count;
if (!r)
return this;
var i = st(e), a = i.length;
if (!a)
return this;
var o = n.count(), s = dv(n._rawCount), l = new s(o), u = 0, c = i[0], f = e[c][0], d = e[c][1], h = n._chunks, p = !1;
if (!n._indices) {
var v = 0;
if (a === 1) {
for (var g = h[i[0]], m = 0; m < r; m++) {
var y = g[m];
(y >= f && y <= d || isNaN(y)) && (l[u++] = v), v++;
}
p = !0;
} else if (a === 2) {
for (var g = h[i[0]], b = h[i[1]], _ = e[i[1]][0], O = e[i[1]][1], m = 0; m < r; m++) {
var y = g[m], S = b[m];
(y >= f && y <= d || isNaN(y)) && (S >= _ && S <= O || isNaN(S)) && (l[u++] = v), v++;
}
p = !0;
}
}
if (!p)
if (a === 1)
for (var m = 0; m < o; m++) {
var x = n.getRawIndex(m), y = h[i[0]][x];
(y >= f && y <= d || isNaN(y)) && (l[u++] = x);
}
else
for (var m = 0; m < o; m++) {
for (var C = !0, x = n.getRawIndex(m), T = 0; T < a; T++) {
var w = i[T], y = h[w][x];
(y < e[w][0] || y > e[w][1]) && (C = !1);
}
C && (l[u++] = n.getRawIndex(m));
}
return u < o && (n._indices = l), n._count = u, n._extent = [], n._updateGetRawIdx(), n;
}, t.prototype.map = function(e, n) {
var r = this.clone(e);
return this._updateDims(r, e, n), r;
}, t.prototype.modify = function(e, n) {
this._updateDims(this, e, n);
}, t.prototype._updateDims = function(e, n, r) {
for (var i = e._chunks, a = [], o = n.length, s = e.count(), l = [], u = e._rawExtent, c = 0; c < n.length; c++)
u[n[c]] = ud();
for (var f = 0; f < s; f++) {
for (var d = e.getRawIndex(f), h = 0; h < o; h++)
l[h] = i[n[h]][d];
l[o] = f;
var p = r && r.apply(null, l);
if (p != null) {
typeof p != "object" && (a[0] = p, p = a);
for (var c = 0; c < p.length; c++) {
var v = n[c], g = p[c], m = u[v], y = i[v];
y && (y[d] = g), g < m[0] && (m[0] = g), g > m[1] && (m[1] = g);
}
}
}
}, t.prototype.lttbDownSample = function(e, n) {
var r = this.clone([e], !0), i = r._chunks, a = i[e], o = this.count(), s = 0, l = Math.floor(1 / n), u = this.getRawIndex(0), c, f, d, h = new (dv(this._rawCount))(Math.min((Math.ceil(o / l) + 2) * 2, o));
h[s++] = u;
for (var p = 1; p < o - 1; p += l) {
for (var v = Math.min(p + l, o - 1), g = Math.min(p + l * 2, o), m = (g + v) / 2, y = 0, b = v; b < g; b++) {
var _ = this.getRawIndex(b), O = a[_];
isNaN(O) || (y += O);
}
y /= g - v;
var S = p, x = Math.min(p + l, o), C = p - 1, T = a[u];
c = -1, d = S;
for (var w = -1, P = 0, b = S; b < x; b++) {
var _ = this.getRawIndex(b), O = a[_];
if (isNaN(O)) {
P++, w < 0 && (w = _);
continue;
}
f = Math.abs((C - m) * (O - T) - (C - b) * (y - T)), f > c && (c = f, d = _);
}
P > 0 && P < x - S && (h[s++] = Math.min(w, d), d = Math.max(w, d)), h[s++] = d, u = d;
}
return h[s++] = this.getRawIndex(o - 1), r._count = s, r._indices = h, r.getRawIndex = this._getRawIdx, r;
}, t.prototype.downSample = function(e, n, r, i) {
for (var a = this.clone([e], !0), o = a._chunks, s = [], l = Math.floor(1 / n), u = o[e], c = this.count(), f = a._rawExtent[e] = ud(), d = new (dv(this._rawCount))(Math.ceil(c / l)), h = 0, p = 0; p < c; p += l) {
l > c - p && (l = c - p, s.length = l);
for (var v = 0; v < l; v++) {
var g = this.getRawIndex(p + v);
s[v] = u[g];
}
var m = r(s), y = this.getRawIndex(Math.min(p + i(s, m) || 0, c - 1));
u[y] = m, m < f[0] && (f[0] = m), m > f[1] && (f[1] = m), d[h++] = y;
}
return a._count = h, a._indices = d, a._updateGetRawIdx(), a;
}, t.prototype.each = function(e, n) {
if (this._count)
for (var r = e.length, i = this._chunks, a = 0, o = this.count(); a < o; a++) {
var s = this.getRawIndex(a);
switch (r) {
case 0:
n(a);
break;
case 1:
n(i[e[0]][s], a);
break;
case 2:
n(i[e[0]][s], i[e[1]][s], a);
break;
default:
for (var l = 0, u = []; l < r; l++)
u[l] = i[e[l]][s];
u[l] = a, n.apply(null, u);
}
}
}, t.prototype.getDataExtent = function(e) {
var n = this._chunks[e], r = ud();
if (!n)
return r;
var i = this.count(), a = !this._indices, o;
if (a)
return this._rawExtent[e].slice();
if (o = this._extent[e], o)
return o.slice();
o = r;
for (var s = o[0], l = o[1], u = 0; u < i; u++) {
var c = this.getRawIndex(u), f = n[c];
f < s && (s = f), f > l && (l = f);
}
return o = [s, l], this._extent[e] = o, o;
}, t.prototype.getRawDataItem = function(e) {
var n = this.getRawIndex(e);
if (this._provider.persistent)
return this._provider.getItem(n);
for (var r = [], i = this._chunks, a = 0; a < i.length; a++)
r.push(i[a][n]);
return r;
}, t.prototype.clone = function(e, n) {
var r = new t(), i = this._chunks, a = e && Ma(e, function(s, l) {
return s[l] = !0, s;
}, {});
if (a)
for (var o = 0; o < i.length; o++)
r._chunks[o] = a[o] ? S4e(i[o]) : i[o];
else
r._chunks = i;
return this._copyCommonProps(r), n || (r._indices = this._cloneIndices()), r._updateGetRawIdx(), r;
}, t.prototype._copyCommonProps = function(e) {
e._count = this._count, e._rawCount = this._rawCount, e._provider = this._provider, e._dimensions = this._dimensions, e._extent = Le(this._extent), e._rawExtent = Le(this._rawExtent);
}, t.prototype._cloneIndices = function() {
if (this._indices) {
var e = this._indices.constructor, n = void 0;
if (e === Array) {
var r = this._indices.length;
n = new e(r);
for (var i = 0; i < r; i++)
n[i] = this._indices[i];
} else
n = new e(this._indices);
return n;
}
return null;
}, t.prototype._getRawIdxIdentity = function(e) {
return e;
}, t.prototype._getRawIdx = function(e) {
return e < this._count && e >= 0 ? this._indices[e] : -1;
}, t.prototype._updateGetRawIdx = function() {
this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity;
}, t.internalField = function() {
function e(n, r, i, a) {
return Kl(n[a], this._dimensions[a]);
}
DT = {
arrayRows: e,
objectRows: function(n, r, i, a) {
return Kl(n[r], this._dimensions[a]);
},
keyedColumns: e,
original: function(n, r, i, a) {
var o = n && (n.value == null ? n : n.value);
return Kl(o instanceof Array ? o[a] : o, this._dimensions[a]);
},
typedArray: function(n, r, i, a) {
return n[a];
}
};
}(), t;
}()
), qJ = (
/** @class */
function() {
function t(e) {
this._sourceList = [], this._storeList = [], this._upstreamSignList = [], this._versionSignBase = 0, this._dirty = !0, this._sourceHost = e;
}
return t.prototype.dirty = function() {
this._setLocalSource([], []), this._storeList = [], this._dirty = !0;
}, t.prototype._setLocalSource = function(e, n) {
this._sourceList = e, this._upstreamSignList = n, this._versionSignBase++, this._versionSignBase > 9e10 && (this._versionSignBase = 0);
}, t.prototype._getVersionSign = function() {
return this._sourceHost.uid + "_" + this._versionSignBase;
}, t.prototype.prepareSource = function() {
this._isDirty() && (this._createSource(), this._dirty = !1);
}, t.prototype._createSource = function() {
this._setLocalSource([], []);
var e = this._sourceHost, n = this._getUpstreamSourceManagers(), r = !!n.length, i, a;
if (hv(e)) {
var o = e, s = void 0, l = void 0, u = void 0;
if (r) {
var c = n[0];
c.prepareSource(), u = c.getSource(), s = u.data, l = u.sourceFormat, a = [c._getVersionSign()];
} else
s = o.get("data", !0), l = Br(s) ? Rs : Ba, a = [];
var f = this._getSourceMetaRawOption() || {}, d = u && u.metaRawOption || {}, h = We(f.seriesLayoutBy, d.seriesLayoutBy) || null, p = We(f.sourceHeader, d.sourceHeader), v = We(f.dimensions, d.dimensions), g = h !== d.seriesLayoutBy || !!p != !!d.sourceHeader || v;
i = g ? [GA(s, {
seriesLayoutBy: h,
sourceHeader: p,
dimensions: v
}, l)] : [];
} else {
var m = e;
if (r) {
var y = this._applyTransform(n);
i = y.sourceList, a = y.upstreamSignList;
} else {
var b = m.get("source", !0);
i = [GA(b, this._getSourceMetaRawOption(), null)], a = [];
}
}
process.env.NODE_ENV !== "production" && ke(i && a), this._setLocalSource(i, a);
}, t.prototype._applyTransform = function(e) {
var n = this._sourceHost, r = n.get("transform", !0), i = n.get("fromTransformResult", !0);
if (process.env.NODE_ENV !== "production" && ke(i != null || r != null), i != null) {
var a = "";
e.length !== 1 && (process.env.NODE_ENV !== "production" && (a = "When using `fromTransformResult`, there should be only one upstream dataset"), _z(a));
}
var o, s = [], l = [];
return k(e, function(u) {
u.prepareSource();
var c = u.getSource(i || 0), f = "";
i != null && !c && (process.env.NODE_ENV !== "production" && (f = "Can not retrieve result by `fromTransformResult`: " + i), _z(f)), s.push(c), l.push(u._getVersionSign());
}), r ? o = y4e(r, s, {
datasetIndex: n.componentIndex
}) : i != null && (o = [JLe(s[0])]), {
sourceList: o,
upstreamSignList: l
};
}, t.prototype._isDirty = function() {
if (this._dirty)
return !0;
for (var e = this._getUpstreamSourceManagers(), n = 0; n < e.length; n++) {
var r = e[n];
if (
// Consider the case that there is ancestor diry, call it recursively.
// The performance is probably not an issue because usually the chain is not long.
r._isDirty() || this._upstreamSignList[n] !== r._getVersionSign()
)
return !0;
}
}, t.prototype.getSource = function(e) {
e = e || 0;
var n = this._sourceList[e];
if (!n) {
var r = this._getUpstreamSourceManagers();
return r[0] && r[0].getSource(e);
}
return n;
}, t.prototype.getSharedDataStore = function(e) {
process.env.NODE_ENV !== "production" && ke(hv(this._sourceHost), "Can only call getDataStore on series source manager.");
var n = e.makeStoreSchema();
return this._innerGetDataStore(n.dimensions, e.source, n.hash);
}, t.prototype._innerGetDataStore = function(e, n, r) {
var i = 0, a = this._storeList, o = a[i];
o || (o = a[i] = {});
var s = o[r];
if (!s) {
var l = this._getUpstreamSourceManagers()[0];
hv(this._sourceHost) && l ? s = l._innerGetDataStore(e, n, r) : (s = new jA(), s.initData(new FJ(n, e.length), e)), o[r] = s;
}
return s;
}, t.prototype._getUpstreamSourceManagers = function() {
var e = this._sourceHost;
if (hv(e)) {
var n = ik(e);
return n ? [n.getSourceManager()] : [];
} else
return ce(TLe(e), function(r) {
return r.getSourceManager();
});
}, t.prototype._getSourceMetaRawOption = function() {
var e = this._sourceHost, n, r, i;
if (hv(e))
n = e.get("seriesLayoutBy", !0), r = e.get("sourceHeader", !0), i = e.get("dimensions", !0);
else if (!this._getUpstreamSourceManagers().length) {
var a = e;
n = a.get("seriesLayoutBy", !0), r = a.get("sourceHeader", !0), i = a.get("dimensions", !0);
}
return {
seriesLayoutBy: n,
sourceHeader: r,
dimensions: i
};
}, t;
}()
);
function bz(t) {
var e = t.option.transform;
e && bm(t.option.transform);
}
function hv(t) {
return t.mainType === "series";
}
function _z(t) {
throw new Error(t);
}
var KJ = "line-height:1";
function JJ(t, e) {
var n = t.color || "#6e7079", r = t.fontSize || 12, i = t.fontWeight || "400", a = t.color || "#464646", o = t.fontSize || 14, s = t.fontWeight || "900";
return e === "html" ? {
// eslint-disable-next-line max-len
nameStyle: "font-size:" + jr(r + "") + "px;color:" + jr(n) + ";font-weight:" + jr(i + ""),
// eslint-disable-next-line max-len
valueStyle: "font-size:" + jr(o + "") + "px;color:" + jr(a) + ";font-weight:" + jr(s + "")
} : {
nameStyle: {
fontSize: r,
fill: n,
fontWeight: i
},
valueStyle: {
fontSize: o,
fill: a,
fontWeight: s
}
};
}
var x4e = [0, 10, 20, 30], w4e = ["", `
`, `
`, `
`];
function tr(t, e) {
return e.type = t, e;
}
function ZA(t) {
return t.type === "section";
}
function eee(t) {
return ZA(t) ? C4e : T4e;
}
function tee(t) {
if (ZA(t)) {
var e = 0, n = t.blocks.length, r = n > 1 || n > 0 && !t.noHeader;
return k(t.blocks, function(i) {
var a = tee(i);
a >= e && (e = a + +(r && // 0 always can not be readable gap level.
(!a || ZA(i) && !i.noHeader)));
}), e;
}
return 0;
}
function C4e(t, e, n, r) {
var i = e.noHeader, a = P4e(tee(e)), o = [], s = e.blocks || [];
ke(!s || ue(s)), s = s || [];
var l = t.orderMode;
if (e.sortBlocks && l) {
s = s.slice();
var u = {
valueAsc: "asc",
valueDesc: "desc"
};
if (Ce(u, l)) {
var c = new ZJ(u[l], null);
s.sort(function(p, v) {
return c.evaluate(p.sortParam, v.sortParam);
});
} else l === "seriesDesc" && s.reverse();
}
k(s, function(p, v) {
var g = e.valueFormatter, m = eee(p)(
// Inherit valueFormatter
g ? le(le({}, t), {
valueFormatter: g
}) : t,
p,
v > 0 ? a.html : 0,
r
);
m != null && o.push(m);
});
var f = t.renderMode === "richText" ? o.join(a.richText) : UA(o.join(""), i ? n : a.html);
if (i)
return f;
var d = FA(e.header, "ordinal", t.useUTC), h = JJ(r, t.renderMode).nameStyle;
return t.renderMode === "richText" ? nee(t, d, h) + a.richText + f : UA('' + jr(d) + "
" + f, n);
}
function T4e(t, e, n, r) {
var i = t.renderMode, a = e.noName, o = e.noValue, s = !e.markerType, l = e.name, u = t.useUTC, c = e.valueFormatter || t.valueFormatter || function(_) {
return _ = ue(_) ? _ : [_], ce(_, function(O, S) {
return FA(O, ue(h) ? h[S] : h, u);
});
};
if (!(a && o)) {
var f = s ? "" : t.markupStyleCreator.makeTooltipMarker(e.markerType, e.markerColor || "#333", i), d = a ? "" : FA(l, "ordinal", u), h = e.valueType, p = o ? [] : c(e.value, e.dataIndex), v = !s || !a, g = !s && a, m = JJ(r, i), y = m.nameStyle, b = m.valueStyle;
return i === "richText" ? (s ? "" : f) + (a ? "" : nee(t, d, y)) + (o ? "" : E4e(t, p, v, g, b)) : UA((s ? "" : f) + (a ? "" : $4e(d, !s, y)) + (o ? "" : A4e(p, v, g, b)), n);
}
}
function Oz(t, e, n, r, i, a) {
if (t) {
var o = eee(t), s = {
useUTC: i,
renderMode: n,
orderMode: r,
markupStyleCreator: e,
valueFormatter: t.valueFormatter
};
return o(s, t, 0, a);
}
}
function P4e(t) {
return {
html: x4e[t],
richText: w4e[t]
};
}
function UA(t, e) {
var n = '', r = "margin: " + e + "px 0 0";
return '' + t + n + "
";
}
function $4e(t, e, n) {
var r = e ? "margin-left:2px" : "";
return '' + jr(t) + "";
}
function A4e(t, e, n, r) {
var i = n ? "10px" : "20px", a = e ? "float:right;margin-left:" + i : "";
return t = ue(t) ? t : [t], '' + ce(t, function(o) {
return jr(o);
}).join(" ") + "";
}
function nee(t, e, n) {
return t.markupStyleCreator.wrapRichTextStyle(e, n);
}
function E4e(t, e, n, r, i) {
var a = [i], o = r ? 10 : 20;
return n && a.push({
padding: [0, 0, 0, o],
align: "right"
}), t.markupStyleCreator.wrapRichTextStyle(ue(e) ? e.join(" ") : e, a);
}
function ree(t, e) {
var n = t.getData().getItemVisual(e, "style"), r = n[t.visualDrawType];
return Of(r);
}
function iee(t, e) {
var n = t.get("padding");
return n ?? (e === "richText" ? [8, 10] : 10);
}
var RT = (
/** @class */
function() {
function t() {
this.richTextStyles = {}, this._nextStyleNameId = cK();
}
return t.prototype._generateStyleName = function() {
return "__EC_aUTo_" + this._nextStyleNameId++;
}, t.prototype.makeTooltipMarker = function(e, n, r) {
var i = r === "richText" ? this._generateStyleName() : null, a = TJ({
color: n,
type: e,
renderMode: r,
markerId: i
});
return Oe(a) ? a : (process.env.NODE_ENV !== "production" && ke(i), this.richTextStyles[i] = a.style, a.content);
}, t.prototype.wrapRichTextStyle = function(e, n) {
var r = {};
ue(n) ? k(n, function(a) {
return le(r, a);
}) : le(r, n);
var i = this._generateStyleName();
return this.richTextStyles[i] = r, "{" + i + "|" + e + "}";
}, t;
}()
);
function aee(t) {
var e = t.series, n = t.dataIndex, r = t.multipleSeries, i = e.getData(), a = i.mapDimensionsAll("defaultedTooltip"), o = a.length, s = e.getRawValue(n), l = ue(s), u = ree(e, n), c, f, d, h;
if (o > 1 || l && !o) {
var p = M4e(s, e, n, a, u);
c = p.inlineValues, f = p.inlineValueTypes, d = p.blocks, h = p.inlineValues[0];
} else if (o) {
var v = i.getDimensionInfo(a[0]);
h = c = Gh(i, n, a[0]), f = v.type;
} else
h = c = l ? s[0] : s;
var g = ER(e), m = g && e.name || "", y = i.getName(n), b = r ? m : y;
return tr("section", {
header: m,
// When series name is not specified, do not show a header line with only '-'.
// This case always happens in tooltip.trigger: 'item'.
noHeader: r || !g,
sortParam: h,
blocks: [tr("nameValue", {
markerType: "item",
markerColor: u,
// Do not mix display seriesName and itemName in one tooltip,
// which might confuses users.
name: b,
// name dimension might be auto assigned, where the name might
// be not readable. So we check trim here.
noName: !ba(b),
value: c,
valueType: f,
dataIndex: n
})].concat(d || [])
});
}
function M4e(t, e, n, r, i) {
var a = e.getData(), o = Ma(t, function(f, d, h) {
var p = a.getDimensionInfo(h);
return f = f || p && p.tooltip !== !1 && p.displayName != null;
}, !1), s = [], l = [], u = [];
r.length ? k(r, function(f) {
c(Gh(a, n, f), f);
}) : k(t, c);
function c(f, d) {
var h = a.getDimensionInfo(d);
!h || h.otherDims.tooltip === !1 || (o ? u.push(tr("nameValue", {
markerType: "subItem",
markerColor: i,
name: h.displayName,
value: f,
valueType: h.type
})) : (s.push(f), l.push(h.type)));
}
return {
inlineValues: s,
inlineValueTypes: l,
blocks: u
};
}
var pl = bt();
function ob(t, e) {
return t.getName(e) || t.getId(e);
}
var j_ = "__universalTransitionEnabled", Ht = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n._selectedDataIndicesMap = {}, n;
}
return e.prototype.init = function(n, r, i) {
this.seriesIndex = this.componentIndex, this.dataTask = Bg({
count: D4e,
reset: R4e
}), this.dataTask.context = {
model: this
}, this.mergeDefaultAndTheme(n, i);
var a = pl(this).sourceManager = new qJ(this);
a.prepareSource();
var o = this.getInitialData(n, i);
xz(o, this), this.dataTask.context.data = o, process.env.NODE_ENV !== "production" && ke(o, "getInitialData returned invalid data."), pl(this).dataBeforeProcessed = o, Sz(this), this._initSelectedMapFromData(o);
}, e.prototype.mergeDefaultAndTheme = function(n, r) {
var i = Em(this), a = i ? wp(n) : {}, o = this.subType;
rt.hasClass(o) && (o += "Series"), qe(n, r.getTheme().get(this.subType)), qe(n, this.getDefaultOption()), mf(n, "label", ["show"]), this.fillDataTextStyle(n.data), i && cu(n, a, i);
}, e.prototype.mergeOption = function(n, r) {
n = qe(this.option, n, !0), this.fillDataTextStyle(n.data);
var i = Em(this);
i && cu(this.option, n, i);
var a = pl(this).sourceManager;
a.dirty(), a.prepareSource();
var o = this.getInitialData(n, r);
xz(o, this), this.dataTask.dirty(), this.dataTask.context.data = o, pl(this).dataBeforeProcessed = o, Sz(this), this._initSelectedMapFromData(o);
}, e.prototype.fillDataTextStyle = function(n) {
if (n && !Br(n))
for (var r = ["show"], i = 0; i < n.length; i++)
n[i] && n[i].label && mf(n[i], "label", r);
}, e.prototype.getInitialData = function(n, r) {
}, e.prototype.appendData = function(n) {
var r = this.getRawData();
r.appendData(n.data);
}, e.prototype.getData = function(n) {
var r = XA(this);
if (r) {
var i = r.context.data;
return n == null || !i.getLinkedData ? i : i.getLinkedData(n);
} else
return pl(this).data;
}, e.prototype.getAllData = function() {
var n = this.getData();
return n && n.getLinkedDataAll ? n.getLinkedDataAll() : [{
data: n
}];
}, e.prototype.setData = function(n) {
var r = XA(this);
if (r) {
var i = r.context;
i.outputData = n, r !== this.dataTask && (i.data = n);
}
pl(this).data = n;
}, e.prototype.getEncode = function() {
var n = this.get("encode", !0);
if (n)
return Pe(n);
}, e.prototype.getSourceManager = function() {
return pl(this).sourceManager;
}, e.prototype.getSource = function() {
return this.getSourceManager().getSource();
}, e.prototype.getRawData = function() {
return pl(this).dataBeforeProcessed;
}, e.prototype.getColorBy = function() {
var n = this.get("colorBy");
return n || "series";
}, e.prototype.isColorBySeries = function() {
return this.getColorBy() === "series";
}, e.prototype.getBaseAxis = function() {
var n = this.coordinateSystem;
return n && n.getBaseAxis && n.getBaseAxis();
}, e.prototype.formatTooltip = function(n, r, i) {
return aee({
series: this,
dataIndex: n,
multipleSeries: r
});
}, e.prototype.isAnimationEnabled = function() {
var n = this.ecModel;
if (vt.node && !(n && n.ssr))
return !1;
var r = this.getShallow("animation");
return r && this.getData().count() > this.getShallow("animationThreshold") && (r = !1), !!r;
}, e.prototype.restoreData = function() {
this.dataTask.dirty();
}, e.prototype.getColorFromPalette = function(n, r, i) {
var a = this.ecModel, o = ak.prototype.getColorFromPalette.call(this, n, r, i);
return o || (o = a.getColorFromPalette(n, r, i)), o;
}, e.prototype.coordDimToDataDim = function(n) {
return this.getRawData().mapDimensionsAll(n);
}, e.prototype.getProgressive = function() {
return this.get("progressive");
}, e.prototype.getProgressiveThreshold = function() {
return this.get("progressiveThreshold");
}, e.prototype.select = function(n, r) {
this._innerSelect(this.getData(r), n);
}, e.prototype.unselect = function(n, r) {
var i = this.option.selectedMap;
if (i) {
var a = this.option.selectedMode, o = this.getData(r);
if (a === "series" || i === "all") {
this.option.selectedMap = {}, this._selectedDataIndicesMap = {};
return;
}
for (var s = 0; s < n.length; s++) {
var l = n[s], u = ob(o, l);
i[u] = !1, this._selectedDataIndicesMap[u] = -1;
}
}
}, e.prototype.toggleSelect = function(n, r) {
for (var i = [], a = 0; a < n.length; a++)
i[0] = n[a], this.isSelected(n[a], r) ? this.unselect(i, r) : this.select(i, r);
}, e.prototype.getSelectedDataIndices = function() {
if (this.option.selectedMap === "all")
return [].slice.call(this.getData().getIndices());
for (var n = this._selectedDataIndicesMap, r = st(n), i = [], a = 0; a < r.length; a++) {
var o = n[r[a]];
o >= 0 && i.push(o);
}
return i;
}, e.prototype.isSelected = function(n, r) {
var i = this.option.selectedMap;
if (!i)
return !1;
var a = this.getData(r);
return (i === "all" || i[ob(a, n)]) && !a.getItemModel(n).get(["select", "disabled"]);
}, e.prototype.isUniversalTransitionEnabled = function() {
if (this[j_])
return !0;
var n = this.option.universalTransition;
return n ? n === !0 ? !0 : n && n.enabled : !1;
}, e.prototype._innerSelect = function(n, r) {
var i, a, o = this.option, s = o.selectedMode, l = r.length;
if (!(!s || !l)) {
if (s === "series")
o.selectedMap = "all";
else if (s === "multiple") {
Ie(o.selectedMap) || (o.selectedMap = {});
for (var u = o.selectedMap, c = 0; c < l; c++) {
var f = r[c], d = ob(n, f);
u[d] = !0, this._selectedDataIndicesMap[d] = n.getRawIndex(f);
}
} else if (s === "single" || s === !0) {
var h = r[l - 1], d = ob(n, h);
o.selectedMap = (i = {}, i[d] = !0, i), this._selectedDataIndicesMap = (a = {}, a[d] = n.getRawIndex(h), a);
}
}
}, e.prototype._initSelectedMapFromData = function(n) {
if (!this.option.selectedMap) {
var r = [];
n.hasItemOption && n.each(function(i) {
var a = n.getRawDataItem(i);
a && a.selected && r.push(i);
}), r.length > 0 && this._innerSelect(n, r);
}
}, e.registerClass = function(n) {
return rt.registerClass(n);
}, e.protoInitialize = function() {
var n = e.prototype;
n.type = "series.__base__", n.seriesIndex = 0, n.ignoreStyleOnData = !1, n.hasSymbolVisual = !1, n.defaultSymbol = "circle", n.visualStyleAccessPath = "itemStyle", n.visualDrawType = "fill";
}(), e;
}(rt)
);
xn(Ht, lw);
xn(Ht, ak);
bK(Ht, rt);
function Sz(t) {
var e = t.name;
ER(t) || (t.name = I4e(t) || e);
}
function I4e(t) {
var e = t.getRawData(), n = e.mapDimensionsAll("seriesName"), r = [];
return k(n, function(i) {
var a = e.getDimensionInfo(i);
a.displayName && r.push(a.displayName);
}), r.join(" ");
}
function D4e(t) {
return t.model.getRawData().count();
}
function R4e(t) {
var e = t.model;
return e.setData(e.getRawData().cloneShallow()), k4e;
}
function k4e(t, e) {
e.outputData && t.end > e.outputData.count() && e.model.getRawData().cloneShallow(e.outputData);
}
function xz(t, e) {
k(_m(t.CHANGABLE_METHODS, t.DOWNSAMPLE_METHODS), function(n) {
t.wrapMethod(n, Ue(L4e, e));
});
}
function L4e(t, e) {
var n = XA(t);
return n && n.setOutputEnd((e || this).count()), e;
}
function XA(t) {
var e = (t.ecModel || {}).scheduler, n = e && e.getPipeline(t.uid);
if (n) {
var r = n.currentTask;
if (r) {
var i = r.agentStubMap;
i && (r = i.get(t.uid));
}
return r;
}
}
var Xt = (
/** @class */
function() {
function t() {
this.group = new Ve(), this.uid = xp("viewComponent");
}
return t.prototype.init = function(e, n) {
}, t.prototype.render = function(e, n, r, i) {
}, t.prototype.dispose = function(e, n) {
}, t.prototype.updateView = function(e, n, r, i) {
}, t.prototype.updateLayout = function(e, n, r, i) {
}, t.prototype.updateVisual = function(e, n, r, i) {
}, t.prototype.toggleBlurSeries = function(e, n, r) {
}, t.prototype.eachRendered = function(e) {
var n = this.group;
n && n.traverse(e);
}, t;
}()
);
IR(Xt);
Hx(Xt);
function Tp() {
var t = bt();
return function(e) {
var n = t(e), r = e.pipelineContext, i = !!n.large, a = !!n.progressiveRender, o = n.large = !!(r && r.large), s = n.progressiveRender = !!(r && r.progressiveRender);
return (i !== o || a !== s) && "reset";
};
}
var oee = bt(), N4e = Tp(), zt = (
/** @class */
function() {
function t() {
this.group = new Ve(), this.uid = xp("viewChart"), this.renderTask = Bg({
plan: B4e,
reset: z4e
}), this.renderTask.context = {
view: this
};
}
return t.prototype.init = function(e, n) {
}, t.prototype.render = function(e, n, r, i) {
if (process.env.NODE_ENV !== "production")
throw new Error("render method must been implemented");
}, t.prototype.highlight = function(e, n, r, i) {
var a = e.getData(i && i.dataType);
if (!a) {
process.env.NODE_ENV !== "production" && Cr("Unknown dataType " + i.dataType);
return;
}
Cz(a, i, "emphasis");
}, t.prototype.downplay = function(e, n, r, i) {
var a = e.getData(i && i.dataType);
if (!a) {
process.env.NODE_ENV !== "production" && Cr("Unknown dataType " + i.dataType);
return;
}
Cz(a, i, "normal");
}, t.prototype.remove = function(e, n) {
this.group.removeAll();
}, t.prototype.dispose = function(e, n) {
}, t.prototype.updateView = function(e, n, r, i) {
this.render(e, n, r, i);
}, t.prototype.updateLayout = function(e, n, r, i) {
this.render(e, n, r, i);
}, t.prototype.updateVisual = function(e, n, r, i) {
this.render(e, n, r, i);
}, t.prototype.eachRendered = function(e) {
Tu(this.group, e);
}, t.markUpdateMethod = function(e, n) {
oee(e).updateMethod = n;
}, t.protoInitialize = function() {
var e = t.prototype;
e.type = "chart";
}(), t;
}()
);
function wz(t, e, n) {
t && lu(t) && (e === "emphasis" ? Zs : Us)(t, n);
}
function Cz(t, e, n) {
var r = yf(t, e), i = e && e.highlightKey != null ? gke(e.highlightKey) : null;
r != null ? k(Qt(r), function(a) {
wz(t.getItemGraphicEl(a), n, i);
}) : t.eachItemGraphicEl(function(a) {
wz(a, n, i);
});
}
IR(zt, ["dispose"]);
Hx(zt);
function B4e(t) {
return N4e(t.model);
}
function z4e(t) {
var e = t.model, n = t.ecModel, r = t.api, i = t.payload, a = e.pipelineContext.progressiveRender, o = t.view, s = i && oee(i).updateMethod, l = a ? "incrementalPrepareRender" : s && o[s] ? s : "render";
return l !== "render" && o[l](e, n, r, i), V4e[l];
}
var V4e = {
incrementalPrepareRender: {
progress: function(t, e) {
e.view.incrementalRender(t, e.model, e.ecModel, e.api, e.payload);
}
},
render: {
// Put view.render in `progress` to support appendData. But in this case
// view.render should not be called in reset, otherwise it will be called
// twise. Use `forceFirstProgress` to make sure that view.render is called
// in any cases.
forceFirstProgress: !0,
progress: function(t, e) {
e.view.render(e.model, e.ecModel, e.api, e.payload);
}
}
}, gO = "\0__throttleOriginMethod", Tz = "\0__throttleRate", Pz = "\0__throttleType";
function cw(t, e, n) {
var r, i = 0, a = 0, o = null, s, l, u, c;
e = e || 0;
function f() {
a = (/* @__PURE__ */ new Date()).getTime(), o = null, t.apply(l, u || []);
}
var d = function() {
for (var h = [], p = 0; p < arguments.length; p++)
h[p] = arguments[p];
r = (/* @__PURE__ */ new Date()).getTime(), l = this, u = h;
var v = c || e, g = c || n;
c = null, s = r - (g ? i : a) - v, clearTimeout(o), g ? o = setTimeout(f, v) : s >= 0 ? f() : o = setTimeout(f, -s), i = r;
};
return d.clear = function() {
o && (clearTimeout(o), o = null);
}, d.debounceNextCall = function(h) {
c = h;
}, d;
}
function Pp(t, e, n, r) {
var i = t[e];
if (i) {
var a = i[gO] || i, o = i[Pz], s = i[Tz];
if (s !== n || o !== r) {
if (n == null || !r)
return t[e] = a;
i = t[e] = cw(a, n, r === "debounce"), i[gO] = a, i[Pz] = r, i[Tz] = n;
}
return i;
}
}
function Im(t, e) {
var n = t[e];
n && n[gO] && (n.clear && n.clear(), t[e] = n[gO]);
}
var $z = bt(), Az = {
itemStyle: bf(gJ, !0),
lineStyle: bf(vJ, !0)
}, F4e = {
lineStyle: "stroke",
itemStyle: "fill"
};
function see(t, e) {
var n = t.visualStyleMapper || Az[e];
return n || (console.warn("Unknown style type '" + e + "'."), Az.itemStyle);
}
function lee(t, e) {
var n = t.visualDrawType || F4e[e];
return n || (console.warn("Unknown style type '" + e + "'."), "fill");
}
var W4e = {
createOnAllSeries: !0,
performRawSeries: !0,
reset: function(t, e) {
var n = t.getData(), r = t.visualStyleAccessPath || "itemStyle", i = t.getModel(r), a = see(t, r), o = a(i), s = i.getShallow("decal");
s && (n.setVisual("decal", s), s.dirty = !0);
var l = lee(t, r), u = o[l], c = Me(u) ? u : null, f = o.fill === "auto" || o.stroke === "auto";
if (!o[l] || c || f) {
var d = t.getColorFromPalette(
// TODO series count changed.
t.name,
null,
e.getSeriesCount()
);
o[l] || (o[l] = d, n.setVisual("colorFromPalette", !0)), o.fill = o.fill === "auto" || Me(o.fill) ? d : o.fill, o.stroke = o.stroke === "auto" || Me(o.stroke) ? d : o.stroke;
}
if (n.setVisual("style", o), n.setVisual("drawType", l), !e.isSeriesFiltered(t) && c)
return n.setVisual("colorFromPalette", !1), {
dataEach: function(h, p) {
var v = t.getDataParams(p), g = le({}, o);
g[l] = c(v), h.setItemVisual(p, "style", g);
}
};
}
}, pv = new Wt(), Q4e = {
createOnAllSeries: !0,
performRawSeries: !0,
reset: function(t, e) {
if (!(t.ignoreStyleOnData || e.isSeriesFiltered(t))) {
var n = t.getData(), r = t.visualStyleAccessPath || "itemStyle", i = see(t, r), a = n.getVisual("drawType");
return {
dataEach: n.hasItemOption ? function(o, s) {
var l = o.getRawDataItem(s);
if (l && l[r]) {
pv.option = l[r];
var u = i(pv), c = o.ensureUniqueItemVisual(s, "style");
le(c, u), pv.option.decal && (o.setItemVisual(s, "decal", pv.option.decal), pv.option.decal.dirty = !0), a in u && o.setItemVisual(s, "colorFromPalette", !1);
}
} : null
};
}
}
}, H4e = {
performRawSeries: !0,
overallReset: function(t) {
var e = Pe();
t.eachSeries(function(n) {
var r = n.getColorBy();
if (!n.isColorBySeries()) {
var i = n.type + "-" + r, a = e.get(i);
a || (a = {}, e.set(i, a)), $z(n).scope = a;
}
}), t.eachSeries(function(n) {
if (!(n.isColorBySeries() || t.isSeriesFiltered(n))) {
var r = n.getRawData(), i = {}, a = n.getData(), o = $z(n).scope, s = n.visualStyleAccessPath || "itemStyle", l = lee(n, s);
a.each(function(u) {
var c = a.getRawIndex(u);
i[c] = u;
}), r.each(function(u) {
var c = i[u], f = a.getItemVisual(c, "colorFromPalette");
if (f) {
var d = a.ensureUniqueItemVisual(c, "style"), h = r.getName(u) || u + "", p = r.count();
d[l] = n.getColorFromPalette(h, o, p);
}
});
}
});
}
}, sb = Math.PI;
function G4e(t, e) {
e = e || {}, Re(e, {
text: "loading",
textColor: "#000",
fontSize: 12,
fontWeight: "normal",
fontStyle: "normal",
fontFamily: "sans-serif",
maskColor: "rgba(255, 255, 255, 0.8)",
showSpinner: !0,
color: "#5470c6",
spinnerRadius: 10,
lineWidth: 5,
zlevel: 0
});
var n = new Ve(), r = new mt({
style: {
fill: e.maskColor
},
zlevel: e.zlevel,
z: 1e4
});
n.add(r);
var i = new gt({
style: {
text: e.text,
fill: e.textColor,
fontSize: e.fontSize,
fontWeight: e.fontWeight,
fontStyle: e.fontStyle,
fontFamily: e.fontFamily
},
zlevel: e.zlevel,
z: 10001
}), a = new mt({
style: {
fill: "none"
},
textContent: i,
textConfig: {
position: "right",
distance: 10
},
zlevel: e.zlevel,
z: 10001
});
n.add(a);
var o;
return e.showSpinner && (o = new qx({
shape: {
startAngle: -sb / 2,
endAngle: -sb / 2 + 0.1,
r: e.spinnerRadius
},
style: {
stroke: e.color,
lineCap: "round",
lineWidth: e.lineWidth
},
zlevel: e.zlevel,
z: 10001
}), o.animateShape(!0).when(1e3, {
endAngle: sb * 3 / 2
}).start("circularInOut"), o.animateShape(!0).when(1e3, {
startAngle: sb * 3 / 2
}).delay(300).start("circularInOut"), n.add(o)), n.resize = function() {
var s = i.getBoundingRect().width, l = e.showSpinner ? e.spinnerRadius : 0, u = (t.getWidth() - l * 2 - (e.showSpinner && s ? 10 : 0) - s) / 2 - (e.showSpinner && s ? 0 : 5 + s / 2) + (e.showSpinner ? 0 : s / 2) + (s ? 0 : l), c = t.getHeight() / 2;
e.showSpinner && o.setShape({
cx: u,
cy: c
}), a.setShape({
x: u - l,
y: c - l,
width: l * 2,
height: l * 2
}), r.setShape({
x: 0,
y: 0,
width: t.getWidth(),
height: t.getHeight()
});
}, n.resize(), n;
}
var uee = (
/** @class */
function() {
function t(e, n, r, i) {
this._stageTaskMap = Pe(), this.ecInstance = e, this.api = n, r = this._dataProcessorHandlers = r.slice(), i = this._visualHandlers = i.slice(), this._allHandlers = r.concat(i);
}
return t.prototype.restoreData = function(e, n) {
e.restoreData(n), this._stageTaskMap.each(function(r) {
var i = r.overallTask;
i && i.dirty();
});
}, t.prototype.getPerformArgs = function(e, n) {
if (e.__pipeline) {
var r = this._pipelineMap.get(e.__pipeline.id), i = r.context, a = !n && r.progressiveEnabled && (!i || i.progressiveRender) && e.__idxInPipeline > r.blockIndex, o = a ? r.step : null, s = i && i.modDataCount, l = s != null ? Math.ceil(s / o) : null;
return {
step: o,
modBy: l,
modDataCount: s
};
}
}, t.prototype.getPipeline = function(e) {
return this._pipelineMap.get(e);
}, t.prototype.updateStreamModes = function(e, n) {
var r = this._pipelineMap.get(e.uid), i = e.getData(), a = i.count(), o = r.progressiveEnabled && n.incrementalPrepareRender && a >= r.threshold, s = e.get("large") && a >= e.get("largeThreshold"), l = e.get("progressiveChunkMode") === "mod" ? a : null;
e.pipelineContext = r.context = {
progressiveRender: o,
modDataCount: l,
large: s
};
}, t.prototype.restorePipelines = function(e) {
var n = this, r = n._pipelineMap = Pe();
e.eachSeries(function(i) {
var a = i.getProgressive(), o = i.uid;
r.set(o, {
id: o,
head: null,
tail: null,
threshold: i.getProgressiveThreshold(),
progressiveEnabled: a && !(i.preventIncremental && i.preventIncremental()),
blockIndex: -1,
step: Math.round(a || 700),
count: 0
}), n._pipe(i, i.dataTask);
});
}, t.prototype.prepareStageTasks = function() {
var e = this._stageTaskMap, n = this.api.getModel(), r = this.api;
k(this._allHandlers, function(i) {
var a = e.get(i.uid) || e.set(i.uid, {}), o = "";
process.env.NODE_ENV !== "production" && (o = '"reset" and "overallReset" must not be both specified.'), ke(!(i.reset && i.overallReset), o), i.reset && this._createSeriesStageTask(i, a, n, r), i.overallReset && this._createOverallStageTask(i, a, n, r);
}, this);
}, t.prototype.prepareView = function(e, n, r, i) {
var a = e.renderTask, o = a.context;
o.model = n, o.ecModel = r, o.api = i, a.__block = !e.incrementalPrepareRender, this._pipe(n, a);
}, t.prototype.performDataProcessorTasks = function(e, n) {
this._performStageTasks(this._dataProcessorHandlers, e, n, {
block: !0
});
}, t.prototype.performVisualTasks = function(e, n, r) {
this._performStageTasks(this._visualHandlers, e, n, r);
}, t.prototype._performStageTasks = function(e, n, r, i) {
i = i || {};
var a = !1, o = this;
k(e, function(l, u) {
if (!(i.visualType && i.visualType !== l.visualType)) {
var c = o._stageTaskMap.get(l.uid), f = c.seriesTaskMap, d = c.overallTask;
if (d) {
var h, p = d.agentStubMap;
p.each(function(g) {
s(i, g) && (g.dirty(), h = !0);
}), h && d.dirty(), o.updatePayload(d, r);
var v = o.getPerformArgs(d, i.block);
p.each(function(g) {
g.perform(v);
}), d.perform(v) && (a = !0);
} else f && f.each(function(g, m) {
s(i, g) && g.dirty();
var y = o.getPerformArgs(g, i.block);
y.skip = !l.performRawSeries && n.isSeriesFiltered(g.context.model), o.updatePayload(g, r), g.perform(y) && (a = !0);
});
}
});
function s(l, u) {
return l.setDirty && (!l.dirtyMap || l.dirtyMap.get(u.__pipeline.id));
}
this.unfinished = a || this.unfinished;
}, t.prototype.performSeriesTasks = function(e) {
var n;
e.eachSeries(function(r) {
n = r.dataTask.perform() || n;
}), this.unfinished = n || this.unfinished;
}, t.prototype.plan = function() {
this._pipelineMap.each(function(e) {
var n = e.tail;
do {
if (n.__block) {
e.blockIndex = n.__idxInPipeline;
break;
}
n = n.getUpstream();
} while (n);
});
}, t.prototype.updatePayload = function(e, n) {
n !== "remain" && (e.context.payload = n);
}, t.prototype._createSeriesStageTask = function(e, n, r, i) {
var a = this, o = n.seriesTaskMap, s = n.seriesTaskMap = Pe(), l = e.seriesType, u = e.getTargetSeries;
e.createOnAllSeries ? r.eachRawSeries(c) : l ? r.eachRawSeriesByType(l, c) : u && u(r, i).each(c);
function c(f) {
var d = f.uid, h = s.set(d, o && o.get(d) || Bg({
plan: Y4e,
reset: q4e,
count: J4e
}));
h.context = {
model: f,
ecModel: r,
api: i,
// PENDING: `useClearVisual` not used?
useClearVisual: e.isVisual && !e.isLayout,
plan: e.plan,
reset: e.reset,
scheduler: a
}, a._pipe(f, h);
}
}, t.prototype._createOverallStageTask = function(e, n, r, i) {
var a = this, o = n.overallTask = n.overallTask || Bg({
reset: j4e
});
o.context = {
ecModel: r,
api: i,
overallReset: e.overallReset,
scheduler: a
};
var s = o.agentStubMap, l = o.agentStubMap = Pe(), u = e.seriesType, c = e.getTargetSeries, f = !0, d = !1, h = "";
process.env.NODE_ENV !== "production" && (h = '"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'), ke(!e.createOnAllSeries, h), u ? r.eachRawSeriesByType(u, p) : c ? c(r, i).each(p) : (f = !1, k(r.getSeries(), p));
function p(v) {
var g = v.uid, m = l.set(g, s && s.get(g) || // When the result of `getTargetSeries` changed, the overallTask
// should be set as dirty and re-performed.
(d = !0, Bg({
reset: Z4e,
onDirty: X4e
})));
m.context = {
model: v,
overallProgress: f
// FIXME:TS never used, so comment it
// modifyOutputEnd: modifyOutputEnd
}, m.agent = o, m.__block = f, a._pipe(v, m);
}
d && o.dirty();
}, t.prototype._pipe = function(e, n) {
var r = e.uid, i = this._pipelineMap.get(r);
!i.head && (i.head = n), i.tail && i.tail.pipe(n), i.tail = n, n.__idxInPipeline = i.count++, n.__pipeline = i;
}, t.wrapStageHandler = function(e, n) {
return Me(e) && (e = {
overallReset: e,
seriesType: e8e(e)
}), e.uid = xp("stageHandler"), n && (e.visualType = n), e;
}, t;
}()
);
function j4e(t) {
t.overallReset(t.ecModel, t.api, t.payload);
}
function Z4e(t) {
return t.overallProgress && U4e;
}
function U4e() {
this.agent.dirty(), this.getDownstream().dirty();
}
function X4e() {
this.agent && this.agent.dirty();
}
function Y4e(t) {
return t.plan ? t.plan(t.model, t.ecModel, t.api, t.payload) : null;
}
function q4e(t) {
t.useClearVisual && t.data.clearAllVisual();
var e = t.resetDefines = Qt(t.reset(t.model, t.ecModel, t.api, t.payload));
return e.length > 1 ? ce(e, function(n, r) {
return cee(r);
}) : K4e;
}
var K4e = cee(0);
function cee(t) {
return function(e, n) {
var r = n.data, i = n.resetDefines[t];
if (i && i.dataEach)
for (var a = e.start; a < e.end; a++)
i.dataEach(r, a);
else i && i.progress && i.progress(e, r);
};
}
function J4e(t) {
return t.data.count();
}
function e8e(t) {
mO = null;
try {
t(Dm, fee);
} catch {
}
return mO;
}
var Dm = {}, fee = {}, mO;
dee(Dm, ok);
dee(fee, LJ);
Dm.eachSeriesByType = Dm.eachRawSeriesByType = function(t) {
mO = t;
};
Dm.eachComponent = function(t) {
t.mainType === "series" && t.subType && (mO = t.subType);
};
function dee(t, e) {
for (var n in e.prototype)
t[n] = On;
}
var Ez = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"];
const t8e = {
color: Ez,
colorLayer: [["#37A2DA", "#ffd85c", "#fd7b5f"], ["#37A2DA", "#67E0E3", "#FFDB5C", "#ff9f7f", "#E062AE", "#9d96f5"], ["#37A2DA", "#32C5E9", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#e7bcf3", "#8378EA", "#96BFFF"], Ez]
};
var Wr = "#B9B8CE", Mz = "#100C2A", lb = function() {
return {
axisLine: {
lineStyle: {
color: Wr
}
},
splitLine: {
lineStyle: {
color: "#484753"
}
},
splitArea: {
areaStyle: {
color: ["rgba(255,255,255,0.02)", "rgba(255,255,255,0.05)"]
}
},
minorSplitLine: {
lineStyle: {
color: "#20203B"
}
}
};
}, Iz = ["#4992ff", "#7cffb2", "#fddd60", "#ff6e76", "#58d9f9", "#05c091", "#ff8a45", "#8d48e3", "#dd79ff"], hee = {
darkMode: !0,
color: Iz,
backgroundColor: Mz,
axisPointer: {
lineStyle: {
color: "#817f91"
},
crossStyle: {
color: "#817f91"
},
label: {
// TODO Contrast of label backgorundColor
color: "#fff"
}
},
legend: {
textStyle: {
color: Wr
}
},
textStyle: {
color: Wr
},
title: {
textStyle: {
color: "#EEF1FA"
},
subtextStyle: {
color: "#B9B8CE"
}
},
toolbox: {
iconStyle: {
borderColor: Wr
}
},
dataZoom: {
borderColor: "#71708A",
textStyle: {
color: Wr
},
brushStyle: {
color: "rgba(135,163,206,0.3)"
},
handleStyle: {
color: "#353450",
borderColor: "#C5CBE3"
},
moveHandleStyle: {
color: "#B0B6C3",
opacity: 0.3
},
fillerColor: "rgba(135,163,206,0.2)",
emphasis: {
handleStyle: {
borderColor: "#91B7F2",
color: "#4D587D"
},
moveHandleStyle: {
color: "#636D9A",
opacity: 0.7
}
},
dataBackground: {
lineStyle: {
color: "#71708A",
width: 1
},
areaStyle: {
color: "#71708A"
}
},
selectedDataBackground: {
lineStyle: {
color: "#87A3CE"
},
areaStyle: {
color: "#87A3CE"
}
}
},
visualMap: {
textStyle: {
color: Wr
}
},
timeline: {
lineStyle: {
color: Wr
},
label: {
color: Wr
},
controlStyle: {
color: Wr,
borderColor: Wr
}
},
calendar: {
itemStyle: {
color: Mz
},
dayLabel: {
color: Wr
},
monthLabel: {
color: Wr
},
yearLabel: {
color: Wr
}
},
timeAxis: lb(),
logAxis: lb(),
valueAxis: lb(),
categoryAxis: lb(),
line: {
symbol: "circle"
},
graph: {
color: Iz
},
gauge: {
title: {
color: Wr
},
axisLine: {
lineStyle: {
color: [[1, "rgba(207,212,219,0.2)"]]
}
},
axisLabel: {
color: Wr
},
detail: {
color: "#EEF1FA"
}
},
candlestick: {
itemStyle: {
color: "#f64e56",
color0: "#54ea92",
borderColor: "#f64e56",
borderColor0: "#54ea92"
// borderColor: '#ca2824',
// borderColor0: '#09a443'
}
}
};
hee.categoryAxis.splitLine.show = !1;
var n8e = (
/** @class */
function() {
function t() {
}
return t.prototype.normalizeQuery = function(e) {
var n = {}, r = {}, i = {};
if (Oe(e)) {
var a = Fo(e);
n.mainType = a.main || null, n.subType = a.sub || null;
} else {
var o = ["Index", "Name", "Id"], s = {
name: 1,
dataIndex: 1,
dataType: 1
};
k(e, function(l, u) {
for (var c = !1, f = 0; f < o.length; f++) {
var d = o[f], h = u.lastIndexOf(d);
if (h > 0 && h === u.length - d.length) {
var p = u.slice(0, h);
p !== "data" && (n.mainType = p, n[d.toLowerCase()] = l, c = !0);
}
}
s.hasOwnProperty(u) && (r[u] = l, c = !0), c || (i[u] = l);
});
}
return {
cptQuery: n,
dataQuery: r,
otherQuery: i
};
}, t.prototype.filter = function(e, n) {
var r = this.eventInfo;
if (!r)
return !0;
var i = r.targetEl, a = r.packedEvent, o = r.model, s = r.view;
if (!o || !s)
return !0;
var l = n.cptQuery, u = n.dataQuery;
return c(l, o, "mainType") && c(l, o, "subType") && c(l, o, "index", "componentIndex") && c(l, o, "name") && c(l, o, "id") && c(u, a, "name") && c(u, a, "dataIndex") && c(u, a, "dataType") && (!s.filterForExposedEvent || s.filterForExposedEvent(e, n.otherQuery, i, a));
function c(f, d, h, p) {
return f[h] == null || d[p || h] === f[h];
}
}, t.prototype.afterTrigger = function() {
this.eventInfo = null;
}, t;
}()
), YA = ["symbol", "symbolSize", "symbolRotate", "symbolOffset"], Dz = YA.concat(["symbolKeepAspect"]), r8e = {
createOnAllSeries: !0,
// For legend.
performRawSeries: !0,
reset: function(t, e) {
var n = t.getData();
if (t.legendIcon && n.setVisual("legendIcon", t.legendIcon), !t.hasSymbolVisual)
return;
for (var r = {}, i = {}, a = !1, o = 0; o < YA.length; o++) {
var s = YA[o], l = t.get(s);
Me(l) ? (a = !0, i[s] = l) : r[s] = l;
}
if (r.symbol = r.symbol || t.defaultSymbol, n.setVisual(le({
legendIcon: t.legendIcon || r.symbol,
symbolKeepAspect: t.get("symbolKeepAspect")
}, r)), e.isSeriesFiltered(t))
return;
var u = st(i);
function c(f, d) {
for (var h = t.getRawValue(d), p = t.getDataParams(d), v = 0; v < u.length; v++) {
var g = u[v];
f.setItemVisual(d, g, i[g](h, p));
}
}
return {
dataEach: a ? c : null
};
}
}, i8e = {
createOnAllSeries: !0,
// For legend.
performRawSeries: !0,
reset: function(t, e) {
if (!t.hasSymbolVisual || e.isSeriesFiltered(t))
return;
var n = t.getData();
function r(i, a) {
for (var o = i.getItemModel(a), s = 0; s < Dz.length; s++) {
var l = Dz[s], u = o.getShallow(l, !0);
u != null && i.setItemVisual(a, l, u);
}
}
return {
dataEach: n.hasItemOption ? r : null
};
}
};
function fk(t, e, n) {
switch (n) {
case "color":
var r = t.getItemVisual(e, "style");
return r[t.getVisual("drawType")];
case "opacity":
return t.getItemVisual(e, "style").opacity;
case "symbol":
case "symbolSize":
case "liftZ":
return t.getItemVisual(e, n);
default:
process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + n);
}
}
function G0(t, e) {
switch (e) {
case "color":
var n = t.getVisual("style");
return n[t.getVisual("drawType")];
case "opacity":
return t.getVisual("style").opacity;
case "symbol":
case "symbolSize":
case "liftZ":
return t.getVisual(e);
default:
process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + e);
}
}
function pee(t, e, n, r) {
switch (n) {
case "color":
var i = t.ensureUniqueItemVisual(e, "style");
i[t.getVisual("drawType")] = r, t.setItemVisual(e, "colorFromPalette", !1);
break;
case "opacity":
t.ensureUniqueItemVisual(e, "style").opacity = r;
break;
case "symbol":
case "symbolSize":
case "liftZ":
t.setItemVisual(e, n, r);
break;
default:
process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + n);
}
}
function vee(t, e) {
function n(r, i) {
var a = [];
return r.eachComponent({
mainType: "series",
subType: t,
query: i
}, function(o) {
a.push(o.seriesIndex);
}), a;
}
k([[t + "ToggleSelect", "toggleSelect"], [t + "Select", "select"], [t + "UnSelect", "unselect"]], function(r) {
e(r[0], function(i, a, o) {
i = le({}, i), process.env.NODE_ENV !== "production" && Cn(i.type, r[1]), o.dispatchAction(le(i, {
type: r[1],
seriesIndex: n(a, i)
}));
});
});
}
function cd(t, e, n, r, i) {
var a = t + e;
n.isSilent(a) || (process.env.NODE_ENV !== "production" && Ia("event " + a + " is deprecated."), r.eachComponent({
mainType: "series",
subType: "pie"
}, function(o) {
for (var s = o.seriesIndex, l = o.option.selectedMap, u = i.selected, c = 0; c < u.length; c++)
if (u[c].seriesIndex === s) {
var f = o.getData(), d = yf(f, i.fromActionPayload);
n.trigger(a, {
type: a,
seriesId: o.id,
name: ue(d) ? f.getName(d[0]) : f.getName(d),
selected: Oe(l) ? l : le({}, l)
});
}
}));
}
function a8e(t, e, n) {
t.on("selectchanged", function(r) {
var i = n.getModel();
r.isFromClick ? (cd("map", "selectchanged", e, i, r), cd("pie", "selectchanged", e, i, r)) : r.fromAction === "select" ? (cd("map", "selected", e, i, r), cd("pie", "selected", e, i, r)) : r.fromAction === "unselect" && (cd("map", "unselected", e, i, r), cd("pie", "unselected", e, i, r));
});
}
function Bc(t, e, n) {
for (var r; t && !(e(t) && (r = t, n)); )
t = t.__hostTarget || t.parent;
return r;
}
var o8e = Math.round(Math.random() * 9), s8e = typeof Object.defineProperty == "function", l8e = function() {
function t() {
this._id = "__ec_inner_" + o8e++;
}
return t.prototype.get = function(e) {
return this._guard(e)[this._id];
}, t.prototype.set = function(e, n) {
var r = this._guard(e);
return s8e ? Object.defineProperty(r, this._id, {
value: n,
enumerable: !1,
configurable: !0
}) : r[this._id] = n, this;
}, t.prototype.delete = function(e) {
return this.has(e) ? (delete this._guard(e)[this._id], !0) : !1;
}, t.prototype.has = function(e) {
return !!this._guard(e)[this._id];
}, t.prototype._guard = function(e) {
if (e !== Object(e))
throw TypeError("Value of WeakMap is not a non-null object.");
return e;
}, t;
}(), u8e = ot.extend({
type: "triangle",
shape: {
cx: 0,
cy: 0,
width: 0,
height: 0
},
buildPath: function(t, e) {
var n = e.cx, r = e.cy, i = e.width / 2, a = e.height / 2;
t.moveTo(n, r - a), t.lineTo(n + i, r + a), t.lineTo(n - i, r + a), t.closePath();
}
}), c8e = ot.extend({
type: "diamond",
shape: {
cx: 0,
cy: 0,
width: 0,
height: 0
},
buildPath: function(t, e) {
var n = e.cx, r = e.cy, i = e.width / 2, a = e.height / 2;
t.moveTo(n, r - a), t.lineTo(n + i, r), t.lineTo(n, r + a), t.lineTo(n - i, r), t.closePath();
}
}), f8e = ot.extend({
type: "pin",
shape: {
// x, y on the cusp
x: 0,
y: 0,
width: 0,
height: 0
},
buildPath: function(t, e) {
var n = e.x, r = e.y, i = e.width / 5 * 3, a = Math.max(i, e.height), o = i / 2, s = o * o / (a - o), l = r - a + o + s, u = Math.asin(s / o), c = Math.cos(u) * o, f = Math.sin(u), d = Math.cos(u), h = o * 0.6, p = o * 0.7;
t.moveTo(n - c, l + s), t.arc(n, l, o, Math.PI - u, Math.PI * 2 + u), t.bezierCurveTo(n + c - f * h, l + s + d * h, n, r - p, n, r), t.bezierCurveTo(n, r - p, n - c + f * h, l + s + d * h, n - c, l + s), t.closePath();
}
}), d8e = ot.extend({
type: "arrow",
shape: {
x: 0,
y: 0,
width: 0,
height: 0
},
buildPath: function(t, e) {
var n = e.height, r = e.width, i = e.x, a = e.y, o = r / 3 * 2;
t.moveTo(i, a), t.lineTo(i + o, a + n), t.lineTo(i, a + n / 4 * 3), t.lineTo(i - o, a + n), t.lineTo(i, a), t.closePath();
}
}), h8e = {
line: Un,
rect: mt,
roundRect: mt,
square: mt,
circle: ul,
diamond: c8e,
pin: f8e,
arrow: d8e,
triangle: u8e
}, p8e = {
line: function(t, e, n, r, i) {
i.x1 = t, i.y1 = e + r / 2, i.x2 = t + n, i.y2 = e + r / 2;
},
rect: function(t, e, n, r, i) {
i.x = t, i.y = e, i.width = n, i.height = r;
},
roundRect: function(t, e, n, r, i) {
i.x = t, i.y = e, i.width = n, i.height = r, i.r = Math.min(n, r) / 4;
},
square: function(t, e, n, r, i) {
var a = Math.min(n, r);
i.x = t, i.y = e, i.width = a, i.height = a;
},
circle: function(t, e, n, r, i) {
i.cx = t + n / 2, i.cy = e + r / 2, i.r = Math.min(n, r) / 2;
},
diamond: function(t, e, n, r, i) {
i.cx = t + n / 2, i.cy = e + r / 2, i.width = n, i.height = r;
},
pin: function(t, e, n, r, i) {
i.x = t + n / 2, i.y = e + r / 2, i.width = n, i.height = r;
},
arrow: function(t, e, n, r, i) {
i.x = t + n / 2, i.y = e + r / 2, i.width = n, i.height = r;
},
triangle: function(t, e, n, r, i) {
i.cx = t + n / 2, i.cy = e + r / 2, i.width = n, i.height = r;
}
}, yO = {};
k(h8e, function(t, e) {
yO[e] = new t();
});
var v8e = ot.extend({
type: "symbol",
shape: {
symbolType: "",
x: 0,
y: 0,
width: 0,
height: 0
},
calculateTextPosition: function(t, e, n) {
var r = aO(t, e, n), i = this.shape;
return i && i.symbolType === "pin" && e.position === "inside" && (r.y = n.y + n.height * 0.4), r;
},
buildPath: function(t, e, n) {
var r = e.symbolType;
if (r !== "none") {
var i = yO[r];
i || (r = "rect", i = yO[r]), p8e[r](e.x, e.y, e.width, e.height, i.shape), i.buildPath(t, i.shape, n);
}
}
});
function g8e(t, e) {
if (this.type !== "image") {
var n = this.style;
this.__isEmptyBrush ? (n.stroke = t, n.fill = e || "#fff", n.lineWidth = 2) : this.shape.symbolType === "line" ? n.stroke = t : n.fill = t, this.markRedraw();
}
}
function $n(t, e, n, r, i, a, o) {
var s = t.indexOf("empty") === 0;
s && (t = t.substr(5, 1).toLowerCase() + t.substr(6));
var l;
return t.indexOf("image://") === 0 ? l = QR(t.slice(8), new Je(e, n, r, i), o ? "center" : "cover") : t.indexOf("path://") === 0 ? l = W0(t.slice(7), {}, new Je(e, n, r, i), o ? "center" : "cover") : l = new v8e({
shape: {
symbolType: t,
x: e,
y: n,
width: r,
height: i
}
}), l.__isEmptyBrush = s, l.setColor = g8e, a && l.setColor(a), l;
}
function $p(t) {
return ue(t) || (t = [+t, +t]), [t[0] || 0, t[1] || 0];
}
function Ff(t, e) {
if (t != null)
return ue(t) || (t = [t, t]), [_e(t[0], e[0]) || 0, _e(We(t[1], t[0]), e[1]) || 0];
}
function zc(t) {
return isFinite(t);
}
function m8e(t, e, n) {
var r = e.x == null ? 0 : e.x, i = e.x2 == null ? 1 : e.x2, a = e.y == null ? 0 : e.y, o = e.y2 == null ? 0 : e.y2;
e.global || (r = r * n.width + n.x, i = i * n.width + n.x, a = a * n.height + n.y, o = o * n.height + n.y), r = zc(r) ? r : 0, i = zc(i) ? i : 1, a = zc(a) ? a : 0, o = zc(o) ? o : 0;
var s = t.createLinearGradient(r, a, i, o);
return s;
}
function y8e(t, e, n) {
var r = n.width, i = n.height, a = Math.min(r, i), o = e.x == null ? 0.5 : e.x, s = e.y == null ? 0.5 : e.y, l = e.r == null ? 0.5 : e.r;
e.global || (o = o * r + n.x, s = s * i + n.y, l = l * a), o = zc(o) ? o : 0.5, s = zc(s) ? s : 0.5, l = l >= 0 && zc(l) ? l : 0.5;
var u = t.createRadialGradient(o, s, 0, o, s, l);
return u;
}
function qA(t, e, n) {
for (var r = e.type === "radial" ? y8e(t, e, n) : m8e(t, e, n), i = e.colorStops, a = 0; a < i.length; a++)
r.addColorStop(i[a].offset, i[a].color);
return r;
}
function b8e(t, e) {
if (t === e || !t && !e)
return !1;
if (!t || !e || t.length !== e.length)
return !0;
for (var n = 0; n < t.length; n++)
if (t[n] !== e[n])
return !0;
return !1;
}
function ub(t) {
return parseInt(t, 10);
}
function Wd(t, e, n) {
var r = ["width", "height"][e], i = ["clientWidth", "clientHeight"][e], a = ["paddingLeft", "paddingTop"][e], o = ["paddingRight", "paddingBottom"][e];
if (n[r] != null && n[r] !== "auto")
return parseFloat(n[r]);
var s = document.defaultView.getComputedStyle(t);
return (t[i] || ub(s[r]) || ub(t.style[r])) - (ub(s[a]) || 0) - (ub(s[o]) || 0) | 0;
}
function _8e(t, e) {
return !t || t === "solid" || !(e > 0) ? null : t === "dashed" ? [4 * e, 2 * e] : t === "dotted" ? [e] : St(t) ? [t] : ue(t) ? t : null;
}
function dk(t) {
var e = t.style, n = e.lineDash && e.lineWidth > 0 && _8e(e.lineDash, e.lineWidth), r = e.lineDashOffset;
if (n) {
var i = e.strokeNoScale && t.getLineScale ? t.getLineScale() : 1;
i && i !== 1 && (n = ce(n, function(a) {
return a / i;
}), r /= i);
}
return [n, r];
}
var O8e = new os(!0);
function bO(t) {
var e = t.stroke;
return !(e == null || e === "none" || !(t.lineWidth > 0));
}
function Rz(t) {
return typeof t == "string" && t !== "none";
}
function _O(t) {
var e = t.fill;
return e != null && e !== "none";
}
function kz(t, e) {
if (e.fillOpacity != null && e.fillOpacity !== 1) {
var n = t.globalAlpha;
t.globalAlpha = e.fillOpacity * e.opacity, t.fill(), t.globalAlpha = n;
} else
t.fill();
}
function Lz(t, e) {
if (e.strokeOpacity != null && e.strokeOpacity !== 1) {
var n = t.globalAlpha;
t.globalAlpha = e.strokeOpacity * e.opacity, t.stroke(), t.globalAlpha = n;
} else
t.stroke();
}
function KA(t, e, n) {
var r = DR(e.image, e.__image, n);
if (Gx(r)) {
var i = t.createPattern(r, e.repeat || "repeat");
if (typeof DOMMatrix == "function" && i && i.setTransform) {
var a = new DOMMatrix();
a.translateSelf(e.x || 0, e.y || 0), a.rotateSelf(0, 0, (e.rotation || 0) * Tg), a.scaleSelf(e.scaleX || 1, e.scaleY || 1), i.setTransform(a);
}
return i;
}
}
function S8e(t, e, n, r) {
var i, a = bO(n), o = _O(n), s = n.strokePercent, l = s < 1, u = !e.path;
(!e.silent || l) && u && e.createPathProxy();
var c = e.path || O8e, f = e.__dirty;
if (!r) {
var d = n.fill, h = n.stroke, p = o && !!d.colorStops, v = a && !!h.colorStops, g = o && !!d.image, m = a && !!h.image, y = void 0, b = void 0, _ = void 0, O = void 0, S = void 0;
(p || v) && (S = e.getBoundingRect()), p && (y = f ? qA(t, d, S) : e.__canvasFillGradient, e.__canvasFillGradient = y), v && (b = f ? qA(t, h, S) : e.__canvasStrokeGradient, e.__canvasStrokeGradient = b), g && (_ = f || !e.__canvasFillPattern ? KA(t, d, e) : e.__canvasFillPattern, e.__canvasFillPattern = _), m && (O = f || !e.__canvasStrokePattern ? KA(t, h, e) : e.__canvasStrokePattern, e.__canvasStrokePattern = _), p ? t.fillStyle = y : g && (_ ? t.fillStyle = _ : o = !1), v ? t.strokeStyle = b : m && (O ? t.strokeStyle = O : a = !1);
}
var x = e.getGlobalScale();
c.setScale(x[0], x[1], e.segmentIgnoreThreshold);
var C, T;
t.setLineDash && n.lineDash && (i = dk(e), C = i[0], T = i[1]);
var w = !0;
(u || f & Ad) && (c.setDPR(t.dpr), l ? c.setContext(null) : (c.setContext(t), w = !1), c.reset(), e.buildPath(c, e.shape, r), c.toStatic(), e.pathUpdated()), w && c.rebuildPath(t, l ? s : 1), C && (t.setLineDash(C), t.lineDashOffset = T), r || (n.strokeFirst ? (a && Lz(t, n), o && kz(t, n)) : (o && kz(t, n), a && Lz(t, n))), C && t.setLineDash([]);
}
function x8e(t, e, n) {
var r = e.__image = DR(n.image, e.__image, e, e.onload);
if (!(!r || !Gx(r))) {
var i = n.x || 0, a = n.y || 0, o = e.getWidth(), s = e.getHeight(), l = r.width / r.height;
if (o == null && s != null ? o = s * l : s == null && o != null ? s = o / l : o == null && s == null && (o = r.width, s = r.height), n.sWidth && n.sHeight) {
var u = n.sx || 0, c = n.sy || 0;
t.drawImage(r, u, c, n.sWidth, n.sHeight, i, a, o, s);
} else if (n.sx && n.sy) {
var u = n.sx, c = n.sy, f = o - u, d = s - c;
t.drawImage(r, u, c, f, d, i, a, o, s);
} else
t.drawImage(r, i, a, o, s);
}
}
function w8e(t, e, n) {
var r, i = n.text;
if (i != null && (i += ""), i) {
t.font = n.font || iu, t.textAlign = n.textAlign, t.textBaseline = n.textBaseline;
var a = void 0, o = void 0;
t.setLineDash && n.lineDash && (r = dk(e), a = r[0], o = r[1]), a && (t.setLineDash(a), t.lineDashOffset = o), n.strokeFirst ? (bO(n) && t.strokeText(i, n.x, n.y), _O(n) && t.fillText(i, n.x, n.y)) : (_O(n) && t.fillText(i, n.x, n.y), bO(n) && t.strokeText(i, n.x, n.y)), a && t.setLineDash([]);
}
}
var Nz = ["shadowBlur", "shadowOffsetX", "shadowOffsetY"], Bz = [
["lineCap", "butt"],
["lineJoin", "miter"],
["miterLimit", 10]
];
function gee(t, e, n, r, i) {
var a = !1;
if (!r && (n = n || {}, e === n))
return !1;
if (r || e.opacity !== n.opacity) {
yi(t, i), a = !0;
var o = Math.max(Math.min(e.opacity, 1), 0);
t.globalAlpha = isNaN(o) ? Jc.opacity : o;
}
(r || e.blend !== n.blend) && (a || (yi(t, i), a = !0), t.globalCompositeOperation = e.blend || Jc.blend);
for (var s = 0; s < Nz.length; s++) {
var l = Nz[s];
(r || e[l] !== n[l]) && (a || (yi(t, i), a = !0), t[l] = t.dpr * (e[l] || 0));
}
return (r || e.shadowColor !== n.shadowColor) && (a || (yi(t, i), a = !0), t.shadowColor = e.shadowColor || Jc.shadowColor), a;
}
function zz(t, e, n, r, i) {
var a = Rm(e, i.inHover), o = r ? null : n && Rm(n, i.inHover) || {};
if (a === o)
return !1;
var s = gee(t, a, o, r, i);
if ((r || a.fill !== o.fill) && (s || (yi(t, i), s = !0), Rz(a.fill) && (t.fillStyle = a.fill)), (r || a.stroke !== o.stroke) && (s || (yi(t, i), s = !0), Rz(a.stroke) && (t.strokeStyle = a.stroke)), (r || a.opacity !== o.opacity) && (s || (yi(t, i), s = !0), t.globalAlpha = a.opacity == null ? 1 : a.opacity), e.hasStroke()) {
var l = a.lineWidth, u = l / (a.strokeNoScale && e.getLineScale ? e.getLineScale() : 1);
t.lineWidth !== u && (s || (yi(t, i), s = !0), t.lineWidth = u);
}
for (var c = 0; c < Bz.length; c++) {
var f = Bz[c], d = f[0];
(r || a[d] !== o[d]) && (s || (yi(t, i), s = !0), t[d] = a[d] || f[1]);
}
return s;
}
function C8e(t, e, n, r, i) {
return gee(t, Rm(e, i.inHover), n && Rm(n, i.inHover), r, i);
}
function mee(t, e) {
var n = e.transform, r = t.dpr || 1;
n ? t.setTransform(r * n[0], r * n[1], r * n[2], r * n[3], r * n[4], r * n[5]) : t.setTransform(r, 0, 0, r, 0, 0);
}
function T8e(t, e, n) {
for (var r = !1, i = 0; i < t.length; i++) {
var a = t[i];
r = r || a.isZeroArea(), mee(e, a), e.beginPath(), a.buildPath(e, a.shape), e.clip();
}
n.allClipped = r;
}
function P8e(t, e) {
return t && e ? t[0] !== e[0] || t[1] !== e[1] || t[2] !== e[2] || t[3] !== e[3] || t[4] !== e[4] || t[5] !== e[5] : !(!t && !e);
}
var Vz = 1, Fz = 2, Wz = 3, Qz = 4;
function $8e(t) {
var e = _O(t), n = bO(t);
return !(t.lineDash || !(+e ^ +n) || e && typeof t.fill != "string" || n && typeof t.stroke != "string" || t.strokePercent < 1 || t.strokeOpacity < 1 || t.fillOpacity < 1);
}
function yi(t, e) {
e.batchFill && t.fill(), e.batchStroke && t.stroke(), e.batchFill = "", e.batchStroke = "";
}
function Rm(t, e) {
return e && t.__hoverStyle || t.style;
}
function hk(t, e) {
Vc(t, e, { inHover: !1, viewWidth: 0, viewHeight: 0 }, !0);
}
function Vc(t, e, n, r) {
var i = e.transform;
if (!e.shouldBePainted(n.viewWidth, n.viewHeight, !1, !1)) {
e.__dirty &= ~Ni, e.__isRendered = !1;
return;
}
var a = e.__clipPaths, o = n.prevElClipPaths, s = !1, l = !1;
if ((!o || b8e(a, o)) && (o && o.length && (yi(t, n), t.restore(), l = s = !0, n.prevElClipPaths = null, n.allClipped = !1, n.prevEl = null), a && a.length && (yi(t, n), t.save(), T8e(a, t, n), s = !0), n.prevElClipPaths = a), n.allClipped) {
e.__isRendered = !1;
return;
}
e.beforeBrush && e.beforeBrush(), e.innerBeforeBrush();
var u = n.prevEl;
u || (l = s = !0);
var c = e instanceof ot && e.autoBatch && $8e(e.style);
s || P8e(i, u.transform) ? (yi(t, n), mee(t, e)) : c || yi(t, n);
var f = Rm(e, n.inHover);
e instanceof ot ? (n.lastDrawType !== Vz && (l = !0, n.lastDrawType = Vz), zz(t, e, u, l, n), (!c || !n.batchFill && !n.batchStroke) && t.beginPath(), S8e(t, e, f, c), c && (n.batchFill = f.fill || "", n.batchStroke = f.stroke || "")) : e instanceof Qh ? (n.lastDrawType !== Wz && (l = !0, n.lastDrawType = Wz), zz(t, e, u, l, n), w8e(t, e, f)) : e instanceof lr ? (n.lastDrawType !== Fz && (l = !0, n.lastDrawType = Fz), C8e(t, e, u, l, n), x8e(t, e, f)) : e.getTemporalDisplayables && (n.lastDrawType !== Qz && (l = !0, n.lastDrawType = Qz), A8e(t, e, n)), c && r && yi(t, n), e.innerAfterBrush(), e.afterBrush && e.afterBrush(), n.prevEl = e, e.__dirty = 0, e.__isRendered = !0;
}
function A8e(t, e, n) {
var r = e.getDisplayables(), i = e.getTemporalDisplayables();
t.save();
var a = {
prevElClipPaths: null,
prevEl: null,
allClipped: !1,
viewWidth: n.viewWidth,
viewHeight: n.viewHeight,
inHover: n.inHover
}, o, s;
for (o = e.getCursor(), s = r.length; o < s; o++) {
var l = r[o];
l.beforeBrush && l.beforeBrush(), l.innerBeforeBrush(), Vc(t, l, a, o === s - 1), l.innerAfterBrush(), l.afterBrush && l.afterBrush(), a.prevEl = l;
}
for (var u = 0, c = i.length; u < c; u++) {
var l = i[u];
l.beforeBrush && l.beforeBrush(), l.innerBeforeBrush(), Vc(t, l, a, u === c - 1), l.innerAfterBrush(), l.afterBrush && l.afterBrush(), a.prevEl = l;
}
e.clearTemporalDisplayables(), e.notClear = !0, t.restore();
}
var kT = new l8e(), Hz = new k0(100), Gz = ["symbol", "symbolSize", "symbolKeepAspect", "color", "backgroundColor", "dashArrayX", "dashArrayY", "maxTileWidth", "maxTileHeight"];
function jh(t, e) {
if (t === "none")
return null;
var n = e.getDevicePixelRatio(), r = e.getZr(), i = r.painter.type === "svg";
t.dirty && kT.delete(t);
var a = kT.get(t);
if (a)
return a;
var o = Re(t, {
symbol: "rect",
symbolSize: 1,
symbolKeepAspect: !0,
color: "rgba(0, 0, 0, 0.2)",
backgroundColor: null,
dashArrayX: 5,
dashArrayY: 5,
rotation: 0,
maxTileWidth: 512,
maxTileHeight: 512
});
o.backgroundColor === "none" && (o.backgroundColor = null);
var s = {
repeat: "repeat"
};
return l(s), s.rotation = o.rotation, s.scaleX = s.scaleY = i ? 1 : 1 / n, kT.set(t, s), t.dirty = !1, s;
function l(u) {
for (var c = [n], f = !0, d = 0; d < Gz.length; ++d) {
var h = o[Gz[d]];
if (h != null && !ue(h) && !Oe(h) && !St(h) && typeof h != "boolean") {
f = !1;
break;
}
c.push(h);
}
var p;
if (f) {
p = c.join(",") + (i ? "-svg" : "");
var v = Hz.get(p);
v && (i ? u.svgElement = v : u.image = v);
}
var g = bee(o.dashArrayX), m = E8e(o.dashArrayY), y = yee(o.symbol), b = M8e(g), _ = _ee(m), O = !i && oo.createCanvas(), S = i && {
tag: "g",
attrs: {},
key: "dcl",
children: []
}, x = T(), C;
O && (O.width = x.width * n, O.height = x.height * n, C = O.getContext("2d")), w(), f && Hz.put(p, O || S), u.image = O, u.svgElement = S, u.svgWidth = x.width, u.svgHeight = x.height;
function T() {
for (var P = 1, $ = 0, A = b.length; $ < A; ++$)
P = aB(P, b[$]);
for (var D = 1, $ = 0, A = y.length; $ < A; ++$)
D = aB(D, y[$].length);
P *= D;
var E = _ * b.length * y.length;
if (process.env.NODE_ENV !== "production") {
var R = function(N) {
console.warn("Calculated decal size is greater than " + N + " due to decal option settings so " + N + " is used for the decal size. Please consider changing the decal option to make a smaller decal or set " + N + " to be larger to avoid incontinuity.");
};
P > o.maxTileWidth && R("maxTileWidth"), E > o.maxTileHeight && R("maxTileHeight");
}
return {
width: Math.max(1, Math.min(P, o.maxTileWidth)),
height: Math.max(1, Math.min(E, o.maxTileHeight))
};
}
function w() {
C && (C.clearRect(0, 0, O.width, O.height), o.backgroundColor && (C.fillStyle = o.backgroundColor, C.fillRect(0, 0, O.width, O.height)));
for (var P = 0, $ = 0; $ < m.length; ++$)
P += m[$];
if (P <= 0)
return;
for (var A = -_, D = 0, E = 0, R = 0; A < x.height; ) {
if (D % 2 === 0) {
for (var N = E / 2 % y.length, V = 0, B = 0, W = 0; V < x.width * 2; ) {
for (var F = 0, $ = 0; $ < g[R].length; ++$)
F += g[R][$];
if (F <= 0)
break;
if (B % 2 === 0) {
var Q = (1 - o.symbolSize) * 0.5, Z = V + g[R][B] * Q, ne = A + m[D] * Q, ee = g[R][B] * o.symbolSize, oe = m[D] * o.symbolSize, K = W / 2 % y[N].length;
ie(Z, ne, ee, oe, y[N][K]);
}
V += g[R][B], ++W, ++B, B === g[R].length && (B = 0);
}
++R, R === g.length && (R = 0);
}
A += m[D], ++E, ++D, D === m.length && (D = 0);
}
function ie(X, H, G, re, fe) {
var de = i ? 1 : n, Ee = $n(fe, X * de, H * de, G * de, re * de, o.color, o.symbolKeepAspect);
if (i) {
var $e = r.painter.renderOneToVNode(Ee);
$e && S.children.push($e);
} else
hk(C, Ee);
}
}
}
}
function yee(t) {
if (!t || t.length === 0)
return [["rect"]];
if (Oe(t))
return [[t]];
for (var e = !0, n = 0; n < t.length; ++n)
if (!Oe(t[n])) {
e = !1;
break;
}
if (e)
return yee([t]);
for (var r = [], n = 0; n < t.length; ++n)
Oe(t[n]) ? r.push([t[n]]) : r.push(t[n]);
return r;
}
function bee(t) {
if (!t || t.length === 0)
return [[0, 0]];
if (St(t)) {
var e = Math.ceil(t);
return [[e, e]];
}
for (var n = !0, r = 0; r < t.length; ++r)
if (!St(t[r])) {
n = !1;
break;
}
if (n)
return bee([t]);
for (var i = [], r = 0; r < t.length; ++r)
if (St(t[r])) {
var e = Math.ceil(t[r]);
i.push([e, e]);
} else {
var e = ce(t[r], function(s) {
return Math.ceil(s);
});
e.length % 2 === 1 ? i.push(e.concat(e)) : i.push(e);
}
return i;
}
function E8e(t) {
if (!t || typeof t == "object" && t.length === 0)
return [0, 0];
if (St(t)) {
var e = Math.ceil(t);
return [e, e];
}
var n = ce(t, function(r) {
return Math.ceil(r);
});
return t.length % 2 ? n.concat(n) : n;
}
function M8e(t) {
return ce(t, function(e) {
return _ee(e);
});
}
function _ee(t) {
for (var e = 0, n = 0; n < t.length; ++n)
e += t[n];
return t.length % 2 === 1 ? e * 2 : e;
}
function I8e(t, e) {
t.eachRawSeries(function(n) {
if (!t.isSeriesFiltered(n)) {
var r = n.getData();
r.hasItemVisual() && r.each(function(o) {
var s = r.getItemVisual(o, "decal");
if (s) {
var l = r.ensureUniqueItemVisual(o, "style");
l.decal = jh(s, e);
}
});
var i = r.getVisual("decal");
if (i) {
var a = r.getVisual("style");
a.decal = jh(i, e);
}
}
});
}
var Ua = new La(), OO = {};
function D8e(t, e) {
process.env.NODE_ENV !== "production" && OO[t] && Cr("Already has an implementation of " + t + "."), OO[t] = e;
}
function Oee(t) {
return process.env.NODE_ENV !== "production" && (OO[t] || Cr("Implementation of " + t + " doesn't exists.")), OO[t];
}
var R8e = "5.5.1", k8e = {
zrender: "5.6.0"
}, L8e = 1, N8e = 800, B8e = 900, z8e = 1e3, V8e = 2e3, F8e = 5e3, See = 1e3, W8e = 1100, pk = 2e3, xee = 3e3, Q8e = 4e3, fw = 4500, H8e = 4600, G8e = 5e3, j8e = 6e3, wee = 7e3, Cee = {
PROCESSOR: {
FILTER: z8e,
SERIES_FILTER: N8e,
STATISTIC: F8e
},
VISUAL: {
LAYOUT: See,
PROGRESSIVE_LAYOUT: W8e,
GLOBAL: pk,
CHART: xee,
POST_CHART_LAYOUT: H8e,
COMPONENT: Q8e,
BRUSH: G8e,
CHART_ITEM: fw,
ARIA: j8e,
DECAL: wee
}
}, Mr = "__flagInMainProcess", li = "__pendingUpdate", LT = "__needsUpdateStatus", jz = /^[a-zA-Z0-9_]+$/, NT = "__connectUpdateStatus", Zz = 0, Z8e = 1, U8e = 2;
function Tee(t) {
return function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
if (this.isDisposed()) {
Ri(this.id);
return;
}
return $ee(this, t, e);
};
}
function Pee(t) {
return function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
return $ee(this, t, e);
};
}
function $ee(t, e, n) {
return n[0] = n[0] && n[0].toLowerCase(), La.prototype[e].apply(t, n);
}
var Aee = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e;
}(La)
), Eee = Aee.prototype;
Eee.on = Pee("on");
Eee.off = Pee("off");
var fd, BT, cb, vl, zT, VT, FT, vv, gv, Uz, Xz, WT, Yz, fb, qz, Mee, ra, Kz, SO = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this, new n8e()) || this;
a._chartsViews = [], a._chartsMap = {}, a._componentsViews = [], a._componentsMap = {}, a._pendingActions = [], i = i || {}, Oe(r) && (r = Iee[r]), a._dom = n;
var o = "canvas", s = "auto", l = !1;
if (process.env.NODE_ENV !== "production") {
var u = (
/* eslint-disable-next-line */
vt.hasGlobalWindow ? window : global
);
u && (o = We(u.__ECHARTS__DEFAULT__RENDERER__, o), s = We(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), l = We(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, l));
}
i.ssr && oK(function(h) {
var p = Fe(h), v = p.dataIndex;
if (v != null) {
var g = Pe();
return g.set("series_index", p.seriesIndex), g.set("data_index", v), p.ssrType && g.set("ssr_type", p.ssrType), g;
}
});
var c = a._zr = wA(n, {
renderer: i.renderer || o,
devicePixelRatio: i.devicePixelRatio,
width: i.width,
height: i.height,
ssr: i.ssr,
useDirtyRect: We(i.useDirtyRect, l),
useCoarsePointer: We(i.useCoarsePointer, s),
pointerSize: i.pointerSize
});
a._ssr = i.ssr, a._throttledZrFlush = cw(xe(c.flush, c), 17), r = Le(r), r && BJ(r, !0), a._theme = r, a._locale = cLe(i.locale || mJ), a._coordSysMgr = new Vf();
var f = a._api = qz(a);
function d(h, p) {
return h.__prio - p.__prio;
}
return L_(wO, d), L_(JA, d), a._scheduler = new uee(a, f, JA, wO), a._messageCenter = new Aee(), a._initEvents(), a.resize = xe(a.resize, a), c.animation.on("frame", a._onframe, a), Uz(c, a), Xz(c, a), bm(a), a;
}
return e.prototype._onframe = function() {
if (!this._disposed) {
Kz(this);
var n = this._scheduler;
if (this[li]) {
var r = this[li].silent;
this[Mr] = !0;
try {
fd(this), vl.update.call(this, null, this[li].updateParams);
} catch (l) {
throw this[Mr] = !1, this[li] = null, l;
}
this._zr.flush(), this[Mr] = !1, this[li] = null, vv.call(this, r), gv.call(this, r);
} else if (n.unfinished) {
var i = L8e, a = this._model, o = this._api;
n.unfinished = !1;
do {
var s = +/* @__PURE__ */ new Date();
n.performSeriesTasks(a), n.performDataProcessorTasks(a), VT(this, a), n.performVisualTasks(a), fb(this, this._model, o, "remain", {}), i -= +/* @__PURE__ */ new Date() - s;
} while (i > 0 && n.unfinished);
n.unfinished || this._zr.flush();
}
}
}, e.prototype.getDom = function() {
return this._dom;
}, e.prototype.getId = function() {
return this.id;
}, e.prototype.getZr = function() {
return this._zr;
}, e.prototype.isSSR = function() {
return this._ssr;
}, e.prototype.setOption = function(n, r, i) {
if (this[Mr]) {
process.env.NODE_ENV !== "production" && Cr("`setOption` should not be called during main process.");
return;
}
if (this._disposed) {
Ri(this.id);
return;
}
var a, o, s;
if (Ie(r) && (i = r.lazyUpdate, a = r.silent, o = r.replaceMerge, s = r.transition, r = r.notMerge), this[Mr] = !0, !this._model || r) {
var l = new zLe(this._api), u = this._theme, c = this._model = new ok();
c.scheduler = this._scheduler, c.ssr = this._ssr, c.init(null, null, null, u, this._locale, l);
}
this._model.setOption(n, {
replaceMerge: o
}, eE);
var f = {
seriesTransition: s,
optionChanged: !0
};
if (i)
this[li] = {
silent: a,
updateParams: f
}, this[Mr] = !1, this.getZr().wakeUp();
else {
try {
fd(this), vl.update.call(this, null, f);
} catch (d) {
throw this[li] = null, this[Mr] = !1, d;
}
this._ssr || this._zr.flush(), this[li] = null, this[Mr] = !1, vv.call(this, a), gv.call(this, a);
}
}, e.prototype.setTheme = function() {
Ia("ECharts#setTheme() is DEPRECATED in ECharts 3.0");
}, e.prototype.getModel = function() {
return this._model;
}, e.prototype.getOption = function() {
return this._model && this._model.getOption();
}, e.prototype.getWidth = function() {
return this._zr.getWidth();
}, e.prototype.getHeight = function() {
return this._zr.getHeight();
}, e.prototype.getDevicePixelRatio = function() {
return this._zr.painter.dpr || vt.hasGlobalWindow && window.devicePixelRatio || 1;
}, e.prototype.getRenderedCanvas = function(n) {
return process.env.NODE_ENV !== "production" && Cn("getRenderedCanvas", "renderToCanvas"), this.renderToCanvas(n);
}, e.prototype.renderToCanvas = function(n) {
n = n || {};
var r = this._zr.painter;
if (process.env.NODE_ENV !== "production" && r.type !== "canvas")
throw new Error("renderToCanvas can only be used in the canvas renderer.");
return r.getRenderedCanvas({
backgroundColor: n.backgroundColor || this._model.get("backgroundColor"),
pixelRatio: n.pixelRatio || this.getDevicePixelRatio()
});
}, e.prototype.renderToSVGString = function(n) {
n = n || {};
var r = this._zr.painter;
if (process.env.NODE_ENV !== "production" && r.type !== "svg")
throw new Error("renderToSVGString can only be used in the svg renderer.");
return r.renderToString({
useViewBox: n.useViewBox
});
}, e.prototype.getSvgDataURL = function() {
if (vt.svgSupported) {
var n = this._zr, r = n.storage.getDisplayList();
return k(r, function(i) {
i.stopAnimation(null, !0);
}), n.painter.toDataURL();
}
}, e.prototype.getDataURL = function(n) {
if (this._disposed) {
Ri(this.id);
return;
}
n = n || {};
var r = n.excludeComponents, i = this._model, a = [], o = this;
k(r, function(l) {
i.eachComponent({
mainType: l
}, function(u) {
var c = o._componentsMap[u.__viewId];
c.group.ignore || (a.push(c), c.group.ignore = !0);
});
});
var s = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(n).toDataURL("image/" + (n && n.type || "png"));
return k(a, function(l) {
l.group.ignore = !1;
}), s;
}, e.prototype.getConnectedDataURL = function(n) {
if (this._disposed) {
Ri(this.id);
return;
}
var r = n.type === "svg", i = this.group, a = Math.min, o = Math.max, s = 1 / 0;
if (CO[i]) {
var l = s, u = s, c = -s, f = -s, d = [], h = n && n.pixelRatio || this.getDevicePixelRatio();
k(nf, function(b, _) {
if (b.group === i) {
var O = r ? b.getZr().painter.getSvgDom().innerHTML : b.renderToCanvas(Le(n)), S = b.getDom().getBoundingClientRect();
l = a(S.left, l), u = a(S.top, u), c = o(S.right, c), f = o(S.bottom, f), d.push({
dom: O,
left: S.left,
top: S.top
});
}
}), l *= h, u *= h, c *= h, f *= h;
var p = c - l, v = f - u, g = oo.createCanvas(), m = wA(g, {
renderer: r ? "svg" : "canvas"
});
if (m.resize({
width: p,
height: v
}), r) {
var y = "";
return k(d, function(b) {
var _ = b.left - l, O = b.top - u;
y += '' + b.dom + "";
}), m.painter.getSvgRoot().innerHTML = y, n.connectedBackgroundColor && m.painter.setBackgroundColor(n.connectedBackgroundColor), m.refreshImmediately(), m.painter.toDataURL();
} else
return n.connectedBackgroundColor && m.add(new mt({
shape: {
x: 0,
y: 0,
width: p,
height: v
},
style: {
fill: n.connectedBackgroundColor
}
})), k(d, function(b) {
var _ = new lr({
style: {
x: b.left * h - l,
y: b.top * h - u,
image: b.dom
}
});
m.add(_);
}), m.refreshImmediately(), g.toDataURL("image/" + (n && n.type || "png"));
} else
return this.getDataURL(n);
}, e.prototype.convertToPixel = function(n, r) {
return zT(this, "convertToPixel", n, r);
}, e.prototype.convertFromPixel = function(n, r) {
return zT(this, "convertFromPixel", n, r);
}, e.prototype.containPixel = function(n, r) {
if (this._disposed) {
Ri(this.id);
return;
}
var i = this._model, a, o = Dg(i, n);
return k(o, function(s, l) {
l.indexOf("Models") >= 0 && k(s, function(u) {
var c = u.coordinateSystem;
if (c && c.containPoint)
a = a || !!c.containPoint(r);
else if (l === "seriesModels") {
var f = this._chartsMap[u.__viewId];
f && f.containPoint ? a = a || f.containPoint(r, u) : process.env.NODE_ENV !== "production" && dn(l + ": " + (f ? "The found component do not support containPoint." : "No view mapping to the found component."));
} else
process.env.NODE_ENV !== "production" && dn(l + ": containPoint is not supported");
}, this);
}, this), !!a;
}, e.prototype.getVisual = function(n, r) {
var i = this._model, a = Dg(i, n, {
defaultMainType: "series"
}), o = a.seriesModel;
process.env.NODE_ENV !== "production" && (o || dn("There is no specified series model"));
var s = o.getData(), l = a.hasOwnProperty("dataIndexInside") ? a.dataIndexInside : a.hasOwnProperty("dataIndex") ? s.indexOfRawIndex(a.dataIndex) : null;
return l != null ? fk(s, l, r) : G0(s, r);
}, e.prototype.getViewOfComponentModel = function(n) {
return this._componentsMap[n.__viewId];
}, e.prototype.getViewOfSeriesModel = function(n) {
return this._chartsMap[n.__viewId];
}, e.prototype._initEvents = function() {
var n = this;
k(X8e, function(r) {
var i = function(a) {
var o = n.getModel(), s = a.target, l, u = r === "globalout";
if (u ? l = {} : s && Bc(s, function(p) {
var v = Fe(p);
if (v && v.dataIndex != null) {
var g = v.dataModel || o.getSeriesByIndex(v.seriesIndex);
return l = g && g.getDataParams(v.dataIndex, v.dataType, s) || {}, !0;
} else if (v.eventData)
return l = le({}, v.eventData), !0;
}, !0), l) {
var c = l.componentType, f = l.componentIndex;
(c === "markLine" || c === "markPoint" || c === "markArea") && (c = "series", f = l.seriesIndex);
var d = c && f != null && o.getComponent(c, f), h = d && n[d.mainType === "series" ? "_chartsMap" : "_componentsMap"][d.__viewId];
process.env.NODE_ENV !== "production" && !u && !(d && h) && dn("model or view can not be found by params"), l.event = a, l.type = r, n._$eventProcessor.eventInfo = {
targetEl: s,
packedEvent: l,
model: d,
view: h
}, n.trigger(r, l);
}
};
i.zrEventfulCallAtLast = !0, n._zr.on(r, i, n);
}), k(zg, function(r, i) {
n._messageCenter.on(i, function(a) {
this.trigger(i, a);
}, n);
}), k(["selectchanged"], function(r) {
n._messageCenter.on(r, function(i) {
this.trigger(r, i);
}, n);
}), a8e(this._messageCenter, this, this._api);
}, e.prototype.isDisposed = function() {
return this._disposed;
}, e.prototype.clear = function() {
if (this._disposed) {
Ri(this.id);
return;
}
this.setOption({
series: []
}, !0);
}, e.prototype.dispose = function() {
if (this._disposed) {
Ri(this.id);
return;
}
this._disposed = !0;
var n = this.getDom();
n && gK(this.getDom(), gk, "");
var r = this, i = r._api, a = r._model;
k(r._componentsViews, function(o) {
o.dispose(a, i);
}), k(r._chartsViews, function(o) {
o.dispose(a, i);
}), r._zr.dispose(), r._dom = r._model = r._chartsMap = r._componentsMap = r._chartsViews = r._componentsViews = r._scheduler = r._api = r._zr = r._throttledZrFlush = r._theme = r._coordSysMgr = r._messageCenter = null, delete nf[r.id];
}, e.prototype.resize = function(n) {
if (this[Mr]) {
process.env.NODE_ENV !== "production" && Cr("`resize` should not be called during main process.");
return;
}
if (this._disposed) {
Ri(this.id);
return;
}
this._zr.resize(n);
var r = this._model;
if (this._loadingFX && this._loadingFX.resize(), !!r) {
var i = r.resetOption("media"), a = n && n.silent;
this[li] && (a == null && (a = this[li].silent), i = !0, this[li] = null), this[Mr] = !0;
try {
i && fd(this), vl.update.call(this, {
type: "resize",
animation: le({
// Disable animation
duration: 0
}, n && n.animation)
});
} catch (o) {
throw this[Mr] = !1, o;
}
this[Mr] = !1, vv.call(this, a), gv.call(this, a);
}
}, e.prototype.showLoading = function(n, r) {
if (this._disposed) {
Ri(this.id);
return;
}
if (Ie(n) && (r = n, n = ""), n = n || "default", this.hideLoading(), !tE[n]) {
process.env.NODE_ENV !== "production" && dn("Loading effects " + n + " not exists.");
return;
}
var i = tE[n](this._api, r), a = this._zr;
this._loadingFX = i, a.add(i);
}, e.prototype.hideLoading = function() {
if (this._disposed) {
Ri(this.id);
return;
}
this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null;
}, e.prototype.makeActionFromEvent = function(n) {
var r = le({}, n);
return r.type = zg[n.type], r;
}, e.prototype.dispatchAction = function(n, r) {
if (this._disposed) {
Ri(this.id);
return;
}
if (Ie(r) || (r = {
silent: !!r
}), !!xO[n.type] && this._model) {
if (this[Mr]) {
this._pendingActions.push(n);
return;
}
var i = r.silent;
FT.call(this, n, i);
var a = r.flush;
a ? this._zr.flush() : a !== !1 && vt.browser.weChat && this._throttledZrFlush(), vv.call(this, i), gv.call(this, i);
}
}, e.prototype.updateLabelLayout = function() {
Ua.trigger("series:layoutlabels", this._model, this._api, {
// Not adding series labels.
// TODO
updatedSeries: []
});
}, e.prototype.appendData = function(n) {
if (this._disposed) {
Ri(this.id);
return;
}
var r = n.seriesIndex, i = this.getModel(), a = i.getSeriesByIndex(r);
process.env.NODE_ENV !== "production" && ke(n.data && a), a.appendData(n), this._scheduler.unfinished = !0, this.getZr().wakeUp();
}, e.internalField = function() {
fd = function(f) {
var d = f._scheduler;
d.restorePipelines(f._model), d.prepareStageTasks(), BT(f, !0), BT(f, !1), d.plan();
}, BT = function(f, d) {
for (var h = f._model, p = f._scheduler, v = d ? f._componentsViews : f._chartsViews, g = d ? f._componentsMap : f._chartsMap, m = f._zr, y = f._api, b = 0; b < v.length; b++)
v[b].__alive = !1;
d ? h.eachComponent(function(S, x) {
S !== "series" && _(x);
}) : h.eachSeries(_);
function _(S) {
var x = S.__requireNewView;
S.__requireNewView = !1;
var C = "_ec_" + S.id + "_" + S.type, T = !x && g[C];
if (!T) {
var w = Fo(S.type), P = d ? Xt.getClass(w.main, w.sub) : (
// FIXME:TS
// (ChartView as ChartViewConstructor).getClass('series', classType.sub)
// For backward compat, still support a chart type declared as only subType
// like "liquidfill", but recommend "series.liquidfill"
// But need a base class to make a type series.
zt.getClass(w.sub)
);
process.env.NODE_ENV !== "production" && ke(P, w.sub + " does not exist."), T = new P(), T.init(h, y), g[C] = T, v.push(T), m.add(T.group);
}
S.__viewId = T.__id = C, T.__alive = !0, T.__model = S, T.group.__ecComponentInfo = {
mainType: S.mainType,
index: S.componentIndex
}, !d && p.prepareView(T, S, h, y);
}
for (var b = 0; b < v.length; ) {
var O = v[b];
O.__alive ? b++ : (!d && O.renderTask.dispose(), m.remove(O.group), O.dispose(h, y), v.splice(b, 1), g[O.__id] === O && delete g[O.__id], O.__id = O.group.__ecComponentInfo = null);
}
}, cb = function(f, d, h, p, v) {
var g = f._model;
if (g.setUpdatePayload(h), !p) {
k([].concat(f._componentsViews).concat(f._chartsViews), O);
return;
}
var m = {};
m[p + "Id"] = h[p + "Id"], m[p + "Index"] = h[p + "Index"], m[p + "Name"] = h[p + "Name"];
var y = {
mainType: p,
query: m
};
v && (y.subType = v);
var b = h.excludeSeriesId, _;
b != null && (_ = Pe(), k(Qt(b), function(S) {
var x = Vn(S, null);
x != null && _.set(x, !0);
})), g && g.eachComponent(y, function(S) {
var x = _ && _.get(S.id) != null;
if (!x)
if (RB(h))
if (S instanceof Ht)
h.type === ef && !h.notBlur && !S.get(["emphasis", "disabled"]) && lke(S, h, f._api);
else {
var C = zR(S.mainType, S.componentIndex, h.name, f._api), T = C.focusSelf, w = C.dispatchers;
h.type === ef && T && !h.notBlur && RA(S.mainType, S.componentIndex, f._api), w && k(w, function(P) {
h.type === ef ? Zs(P) : Us(P);
});
}
else LA(h) && S instanceof Ht && (fke(S, h, f._api), IB(S), ra(f));
}, f), g && g.eachComponent(y, function(S) {
var x = _ && _.get(S.id) != null;
x || O(f[p === "series" ? "_chartsMap" : "_componentsMap"][S.__viewId]);
}, f);
function O(S) {
S && S.__alive && S[d] && S[d](S.__model, g, f._api, h);
}
}, vl = {
prepareAndUpdate: function(f) {
fd(this), vl.update.call(this, f, {
// Needs to mark option changed if newOption is given.
// It's from MagicType.
// TODO If use a separate flag optionChanged in payload?
optionChanged: f.newOption != null
});
},
update: function(f, d) {
var h = this._model, p = this._api, v = this._zr, g = this._coordSysMgr, m = this._scheduler;
if (h) {
h.setUpdatePayload(f), m.restoreData(h, f), m.performSeriesTasks(h), g.create(h, p), m.performDataProcessorTasks(h, f), VT(this, h), g.update(h, p), n(h), m.performVisualTasks(h, f), WT(this, h, p, f, d);
var y = h.get("backgroundColor") || "transparent", b = h.get("darkMode");
v.setBackgroundColor(y), b != null && b !== "auto" && v.setDarkMode(b), Ua.trigger("afterupdate", h, p);
}
},
updateTransform: function(f) {
var d = this, h = this._model, p = this._api;
if (h) {
h.setUpdatePayload(f);
var v = [];
h.eachComponent(function(m, y) {
if (m !== "series") {
var b = d.getViewOfComponentModel(y);
if (b && b.__alive)
if (b.updateTransform) {
var _ = b.updateTransform(y, h, p, f);
_ && _.update && v.push(b);
} else
v.push(b);
}
});
var g = Pe();
h.eachSeries(function(m) {
var y = d._chartsMap[m.__viewId];
if (y.updateTransform) {
var b = y.updateTransform(m, h, p, f);
b && b.update && g.set(m.uid, 1);
} else
g.set(m.uid, 1);
}), n(h), this._scheduler.performVisualTasks(h, f, {
setDirty: !0,
dirtyMap: g
}), fb(this, h, p, f, {}, g), Ua.trigger("afterupdate", h, p);
}
},
updateView: function(f) {
var d = this._model;
d && (d.setUpdatePayload(f), zt.markUpdateMethod(f, "updateView"), n(d), this._scheduler.performVisualTasks(d, f, {
setDirty: !0
}), WT(this, d, this._api, f, {}), Ua.trigger("afterupdate", d, this._api));
},
updateVisual: function(f) {
var d = this, h = this._model;
h && (h.setUpdatePayload(f), h.eachSeries(function(p) {
p.getData().clearAllVisual();
}), zt.markUpdateMethod(f, "updateVisual"), n(h), this._scheduler.performVisualTasks(h, f, {
visualType: "visual",
setDirty: !0
}), h.eachComponent(function(p, v) {
if (p !== "series") {
var g = d.getViewOfComponentModel(v);
g && g.__alive && g.updateVisual(v, h, d._api, f);
}
}), h.eachSeries(function(p) {
var v = d._chartsMap[p.__viewId];
v.updateVisual(p, h, d._api, f);
}), Ua.trigger("afterupdate", h, this._api));
},
updateLayout: function(f) {
vl.update.call(this, f);
}
}, zT = function(f, d, h, p) {
if (f._disposed) {
Ri(f.id);
return;
}
for (var v = f._model, g = f._coordSysMgr.getCoordinateSystems(), m, y = Dg(v, h), b = 0; b < g.length; b++) {
var _ = g[b];
if (_[d] && (m = _[d](v, y, p)) != null)
return m;
}
process.env.NODE_ENV !== "production" && dn("No coordinate system that supports " + d + " found by the given finder.");
}, VT = function(f, d) {
var h = f._chartsMap, p = f._scheduler;
d.eachSeries(function(v) {
p.updateStreamModes(v, h[v.__viewId]);
});
}, FT = function(f, d) {
var h = this, p = this.getModel(), v = f.type, g = f.escapeConnect, m = xO[v], y = m.actionInfo, b = (y.update || "update").split(":"), _ = b.pop(), O = b[0] != null && Fo(b[0]);
this[Mr] = !0;
var S = [f], x = !1;
f.batch && (x = !0, S = ce(f.batch, function(D) {
return D = Re(le({}, D), f), D.batch = null, D;
}));
var C = [], T, w = LA(f), P = RB(f);
if (P && FK(this._api), k(S, function(D) {
if (T = m.action(D, h._model, h._api), T = T || le({}, D), T.type = y.event || T.type, C.push(T), P) {
var E = MR(f), R = E.queryOptionMap, N = E.mainTypeSpecified, V = N ? R.keys()[0] : "series";
cb(h, _, D, V), ra(h);
} else w ? (cb(h, _, D, "series"), ra(h)) : O && cb(h, _, D, O.main, O.sub);
}), _ !== "none" && !P && !w && !O)
try {
this[li] ? (fd(this), vl.update.call(this, f), this[li] = null) : vl[_].call(this, f);
} catch (D) {
throw this[Mr] = !1, D;
}
if (x ? T = {
type: y.event || v,
escapeConnect: g,
batch: C
} : T = C[0], this[Mr] = !1, !d) {
var $ = this._messageCenter;
if ($.trigger(T.type, T), w) {
var A = {
type: "selectchanged",
escapeConnect: g,
selected: dke(p),
isFromClick: f.isFromClick || !1,
fromAction: f.type,
fromActionPayload: f
};
$.trigger(A.type, A);
}
}
}, vv = function(f) {
for (var d = this._pendingActions; d.length; ) {
var h = d.shift();
FT.call(this, h, f);
}
}, gv = function(f) {
!f && this.trigger("updated");
}, Uz = function(f, d) {
f.on("rendered", function(h) {
d.trigger("rendered", h), // Although zr is dirty if initial animation is not finished
// and this checking is called on frame, we also check
// animation finished for robustness.
f.animation.isFinished() && !d[li] && !d._scheduler.unfinished && !d._pendingActions.length && d.trigger("finished");
});
}, Xz = function(f, d) {
f.on("mouseover", function(h) {
var p = h.target, v = Bc(p, lu);
v && (uke(v, h, d._api), ra(d));
}).on("mouseout", function(h) {
var p = h.target, v = Bc(p, lu);
v && (cke(v, h, d._api), ra(d));
}).on("click", function(h) {
var p = h.target, v = Bc(p, function(y) {
return Fe(y).dataIndex != null;
}, !0);
if (v) {
var g = v.selected ? "unselect" : "select", m = Fe(v);
d._api.dispatchAction({
type: g,
dataType: m.dataType,
dataIndexInside: m.dataIndex,
seriesIndex: m.seriesIndex,
isFromClick: !0
});
}
});
};
function n(f) {
f.clearColorPalette(), f.eachSeries(function(d) {
d.clearColorPalette();
});
}
function r(f) {
var d = [], h = [], p = !1;
if (f.eachComponent(function(y, b) {
var _ = b.get("zlevel") || 0, O = b.get("z") || 0, S = b.getZLevelKey();
p = p || !!S, (y === "series" ? h : d).push({
zlevel: _,
z: O,
idx: b.componentIndex,
type: y,
key: S
});
}), p) {
var v = d.concat(h), g, m;
L_(v, function(y, b) {
return y.zlevel === b.zlevel ? y.z - b.z : y.zlevel - b.zlevel;
}), k(v, function(y) {
var b = f.getComponent(y.type, y.idx), _ = y.zlevel, O = y.key;
g != null && (_ = Math.max(g, _)), O ? (_ === g && O !== m && _++, m = O) : m && (_ === g && _++, m = ""), g = _, b.setZLevel(_);
});
}
}
WT = function(f, d, h, p, v) {
r(d), Yz(f, d, h, p, v), k(f._chartsViews, function(g) {
g.__alive = !1;
}), fb(f, d, h, p, v), k(f._chartsViews, function(g) {
g.__alive || g.remove(d, h);
});
}, Yz = function(f, d, h, p, v, g) {
k(g || f._componentsViews, function(m) {
var y = m.__model;
u(y, m), m.render(y, d, h, p), s(y, m), c(y, m);
});
}, fb = function(f, d, h, p, v, g) {
var m = f._scheduler;
v = le(v || {}, {
updatedSeries: d.getSeries()
}), Ua.trigger("series:beforeupdate", d, h, v);
var y = !1;
d.eachSeries(function(b) {
var _ = f._chartsMap[b.__viewId];
_.__alive = !0;
var O = _.renderTask;
m.updatePayload(O, p), u(b, _), g && g.get(b.uid) && O.dirty(), O.perform(m.getPerformArgs(O)) && (y = !0), _.group.silent = !!b.get("silent"), o(b, _), IB(b);
}), m.unfinished = y || m.unfinished, Ua.trigger("series:layoutlabels", d, h, v), Ua.trigger("series:transition", d, h, v), d.eachSeries(function(b) {
var _ = f._chartsMap[b.__viewId];
s(b, _), c(b, _);
}), a(f, d), Ua.trigger("series:afterupdate", d, h, v);
}, ra = function(f) {
f[LT] = !0, f.getZr().wakeUp();
}, Kz = function(f) {
f[LT] && (f.getZr().storage.traverse(function(d) {
rh(d) || i(d);
}), f[LT] = !1);
};
function i(f) {
for (var d = [], h = f.currentStates, p = 0; p < h.length; p++) {
var v = h[p];
v === "emphasis" || v === "blur" || v === "select" || d.push(v);
}
f.selected && f.states.select && d.push("select"), f.hoverState === Ux && f.states.emphasis ? d.push("emphasis") : f.hoverState === z0 && f.states.blur && d.push("blur"), f.useStates(d);
}
function a(f, d) {
var h = f._zr, p = h.storage, v = 0;
p.traverse(function(g) {
g.isGroup || v++;
}), v > d.get("hoverLayerThreshold") && !vt.node && !vt.worker && d.eachSeries(function(g) {
if (!g.preventUsingHoverLayer) {
var m = f._chartsMap[g.__viewId];
m.__alive && m.eachRendered(function(y) {
y.states.emphasis && (y.states.emphasis.hoverLayer = !0);
});
}
});
}
function o(f, d) {
var h = f.get("blendMode") || null;
d.eachRendered(function(p) {
p.isGroup || (p.style.blend = h);
});
}
function s(f, d) {
if (!f.preventAutoZ) {
var h = f.get("z") || 0, p = f.get("zlevel") || 0;
d.eachRendered(function(v) {
return l(v, h, p, -1 / 0), !0;
});
}
}
function l(f, d, h, p) {
var v = f.getTextContent(), g = f.getTextGuideLine(), m = f.isGroup;
if (m)
for (var y = f.childrenRef(), b = 0; b < y.length; b++)
p = Math.max(l(y[b], d, h, p), p);
else
f.z = d, f.zlevel = h, p = Math.max(f.z2, p);
if (v && (v.z = d, v.zlevel = h, isFinite(p) && (v.z2 = p + 2)), g) {
var _ = f.textGuideLineConfig;
g.z = d, g.zlevel = h, isFinite(p) && (g.z2 = p + (_ && _.showAbove ? 1 : -1));
}
return p;
}
function u(f, d) {
d.eachRendered(function(h) {
if (!rh(h)) {
var p = h.getTextContent(), v = h.getTextGuideLine();
h.stateTransition && (h.stateTransition = null), p && p.stateTransition && (p.stateTransition = null), v && v.stateTransition && (v.stateTransition = null), h.hasState() ? (h.prevStates = h.currentStates, h.clearStates()) : h.prevStates && (h.prevStates = null);
}
});
}
function c(f, d) {
var h = f.getModel("stateAnimation"), p = f.isAnimationEnabled(), v = h.get("duration"), g = v > 0 ? {
duration: v,
delay: h.get("delay"),
easing: h.get("easing")
// additive: stateAnimationModel.get('additive')
} : null;
d.eachRendered(function(m) {
if (m.states && m.states.emphasis) {
if (rh(m))
return;
if (m instanceof ot && mke(m), m.__dirty) {
var y = m.prevStates;
y && m.useStates(y);
}
if (p) {
m.stateTransition = g;
var b = m.getTextContent(), _ = m.getTextGuideLine();
b && (b.stateTransition = g), _ && (_.stateTransition = g);
}
m.__dirty && i(m);
}
});
}
qz = function(f) {
return new /** @class */
(function(d) {
q(h, d);
function h() {
return d !== null && d.apply(this, arguments) || this;
}
return h.prototype.getCoordinateSystems = function() {
return f._coordSysMgr.getCoordinateSystems();
}, h.prototype.getComponentByElement = function(p) {
for (; p; ) {
var v = p.__ecComponentInfo;
if (v != null)
return f._model.getComponent(v.mainType, v.index);
p = p.parent;
}
}, h.prototype.enterEmphasis = function(p, v) {
Zs(p, v), ra(f);
}, h.prototype.leaveEmphasis = function(p, v) {
Us(p, v), ra(f);
}, h.prototype.enterBlur = function(p) {
NK(p), ra(f);
}, h.prototype.leaveBlur = function(p) {
BR(p), ra(f);
}, h.prototype.enterSelect = function(p) {
BK(p), ra(f);
}, h.prototype.leaveSelect = function(p) {
zK(p), ra(f);
}, h.prototype.getModel = function() {
return f.getModel();
}, h.prototype.getViewOfComponentModel = function(p) {
return f.getViewOfComponentModel(p);
}, h.prototype.getViewOfSeriesModel = function(p) {
return f.getViewOfSeriesModel(p);
}, h;
}(LJ))(f);
}, Mee = function(f) {
function d(h, p) {
for (var v = 0; v < h.length; v++) {
var g = h[v];
g[NT] = p;
}
}
k(zg, function(h, p) {
f._messageCenter.on(p, function(v) {
if (CO[f.group] && f[NT] !== Zz) {
if (v && v.escapeConnect)
return;
var g = f.makeActionFromEvent(v), m = [];
k(nf, function(y) {
y !== f && y.group === f.group && m.push(y);
}), d(m, Zz), k(m, function(y) {
y[NT] !== Z8e && y.dispatchAction(g);
}), d(m, U8e);
}
});
});
};
}(), e;
}(La)
), vk = SO.prototype;
vk.on = Tee("on");
vk.off = Tee("off");
vk.one = function(t, e, n) {
var r = this;
Ia("ECharts#one is deprecated.");
function i() {
for (var a = [], o = 0; o < arguments.length; o++)
a[o] = arguments[o];
e && e.apply && e.apply(this, a), r.off(t, i);
}
this.on.call(this, t, i, n);
};
var X8e = ["click", "dblclick", "mouseover", "mouseout", "mousemove", "mousedown", "mouseup", "globalout", "contextmenu"];
function Ri(t) {
process.env.NODE_ENV !== "production" && dn("Instance " + t + " has been disposed");
}
var xO = {}, zg = {}, JA = [], eE = [], wO = [], Iee = {}, tE = {}, nf = {}, CO = {}, Y8e = +/* @__PURE__ */ new Date() - 0, q8e = +/* @__PURE__ */ new Date() - 0, gk = "_echarts_instance_";
function Dee(t, e, n) {
var r = !(n && n.ssr);
if (r) {
if (process.env.NODE_ENV !== "production" && !t)
throw new Error("Initialize failed: invalid dom.");
var i = mk(t);
if (i)
return process.env.NODE_ENV !== "production" && dn("There is a chart instance already initialized on the dom."), i;
process.env.NODE_ENV !== "production" && au(t) && t.nodeName.toUpperCase() !== "CANVAS" && (!t.clientWidth && (!n || n.width == null) || !t.clientHeight && (!n || n.height == null)) && dn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");
}
var a = new SO(t, e, n);
return a.id = "ec_" + Y8e++, nf[a.id] = a, r && gK(t, gk, a.id), Mee(a), Ua.trigger("afterinit", a), a;
}
function K8e(t) {
if (ue(t)) {
var e = t;
t = null, k(e, function(n) {
n.group != null && (t = n.group);
}), t = t || "g_" + q8e++, k(e, function(n) {
n.group = t;
});
}
return CO[t] = !0, t;
}
function Ree(t) {
CO[t] = !1;
}
var J8e = Ree;
function eNe(t) {
Oe(t) ? t = nf[t] : t instanceof SO || (t = mk(t)), t instanceof SO && !t.isDisposed() && t.dispose();
}
function mk(t) {
return nf[aRe(t, gk)];
}
function tNe(t) {
return nf[t];
}
function yk(t, e) {
Iee[t] = e;
}
function bk(t) {
et(eE, t) < 0 && eE.push(t);
}
function _k(t, e) {
Ok(JA, t, e, V8e);
}
function kee(t) {
dw("afterinit", t);
}
function Lee(t) {
dw("afterupdate", t);
}
function dw(t, e) {
Ua.on(t, e);
}
function go(t, e, n) {
Me(e) && (n = e, e = "");
var r = Ie(t) ? t.type : [t, t = {
event: e
}][0];
t.event = (t.event || r).toLowerCase(), e = t.event, !zg[e] && (ke(jz.test(r) && jz.test(e)), xO[r] || (xO[r] = {
action: n,
actionInfo: t
}), zg[e] = r);
}
function Nee(t, e) {
Vf.register(t, e);
}
function nNe(t) {
var e = Vf.get(t);
if (e)
return e.getDimensionsInfo ? e.getDimensionsInfo() : e.dimensions.slice();
}
function Bee(t, e) {
Ok(wO, t, e, See, "layout");
}
function $u(t, e) {
Ok(wO, t, e, xee, "visual");
}
var Jz = [];
function Ok(t, e, n, r, i) {
if ((Me(e) || Ie(e)) && (n = e, e = r), process.env.NODE_ENV !== "production") {
if (isNaN(e) || e == null)
throw new Error("Illegal priority");
k(t, function(o) {
ke(o.__raw !== n);
});
}
if (!(et(Jz, n) >= 0)) {
Jz.push(n);
var a = uee.wrapStageHandler(n, i);
a.__prio = e, a.__raw = n, t.push(a);
}
}
function Sk(t, e) {
tE[t] = e;
}
function rNe(t) {
process.env.NODE_ENV !== "production" && Ia("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."), Sq({
createCanvas: t
});
}
function zee(t, e, n) {
var r = Oee("registerMap");
r && r(t, e, n);
}
function iNe(t) {
var e = Oee("getMap");
return e && e(t);
}
var Vee = m4e;
$u(pk, W4e);
$u(fw, Q4e);
$u(fw, H4e);
$u(pk, r8e);
$u(fw, i8e);
$u(wee, I8e);
bk(BJ);
_k(B8e, qLe);
Sk("default", G4e);
go({
type: ef,
event: ef,
update: ef
}, On);
go({
type: F_,
event: F_,
update: F_
}, On);
go({
type: Rg,
event: Rg,
update: Rg
}, On);
go({
type: W_,
event: W_,
update: W_
}, On);
go({
type: kg,
event: kg,
update: kg
}, On);
yk("light", t8e);
yk("dark", hee);
var aNe = {}, eV = [], oNe = {
registerPreprocessor: bk,
registerProcessor: _k,
registerPostInit: kee,
registerPostUpdate: Lee,
registerUpdateLifecycle: dw,
registerAction: go,
registerCoordinateSystem: Nee,
registerLayout: Bee,
registerVisual: $u,
registerTransform: Vee,
registerLoading: Sk,
registerMap: zee,
registerImpl: D8e,
PRIORITY: Cee,
ComponentModel: rt,
ComponentView: Xt,
SeriesModel: Ht,
ChartView: zt,
// TODO Use ComponentModel and SeriesModel instead of Constructor
registerComponentModel: function(t) {
rt.registerClass(t);
},
registerComponentView: function(t) {
Xt.registerClass(t);
},
registerSeriesModel: function(t) {
Ht.registerClass(t);
},
registerChartView: function(t) {
zt.registerClass(t);
},
registerSubTypeDefaulter: function(t, e) {
rt.registerSubTypeDefaulter(t, e);
},
registerPainter: function(t, e) {
iK(t, e);
}
};
function at(t) {
if (ue(t)) {
k(t, function(e) {
at(e);
});
return;
}
et(eV, t) >= 0 || (eV.push(t), Me(t) && (t = {
install: t
}), t.install(oNe));
}
function mv(t) {
return t == null ? 0 : t.length || 1;
}
function tV(t) {
return t;
}
var Xs = (
/** @class */
function() {
function t(e, n, r, i, a, o) {
this._old = e, this._new = n, this._oldKeyGetter = r || tV, this._newKeyGetter = i || tV, this.context = a, this._diffModeMultiple = o === "multiple";
}
return t.prototype.add = function(e) {
return this._add = e, this;
}, t.prototype.update = function(e) {
return this._update = e, this;
}, t.prototype.updateManyToOne = function(e) {
return this._updateManyToOne = e, this;
}, t.prototype.updateOneToMany = function(e) {
return this._updateOneToMany = e, this;
}, t.prototype.updateManyToMany = function(e) {
return this._updateManyToMany = e, this;
}, t.prototype.remove = function(e) {
return this._remove = e, this;
}, t.prototype.execute = function() {
this[this._diffModeMultiple ? "_executeMultiple" : "_executeOneToOne"]();
}, t.prototype._executeOneToOne = function() {
var e = this._old, n = this._new, r = {}, i = new Array(e.length), a = new Array(n.length);
this._initIndexMap(e, null, i, "_oldKeyGetter"), this._initIndexMap(n, r, a, "_newKeyGetter");
for (var o = 0; o < e.length; o++) {
var s = i[o], l = r[s], u = mv(l);
if (u > 1) {
var c = l.shift();
l.length === 1 && (r[s] = l[0]), this._update && this._update(c, o);
} else u === 1 ? (r[s] = null, this._update && this._update(l, o)) : this._remove && this._remove(o);
}
this._performRestAdd(a, r);
}, t.prototype._executeMultiple = function() {
var e = this._old, n = this._new, r = {}, i = {}, a = [], o = [];
this._initIndexMap(e, r, a, "_oldKeyGetter"), this._initIndexMap(n, i, o, "_newKeyGetter");
for (var s = 0; s < a.length; s++) {
var l = a[s], u = r[l], c = i[l], f = mv(u), d = mv(c);
if (f > 1 && d === 1)
this._updateManyToOne && this._updateManyToOne(c, u), i[l] = null;
else if (f === 1 && d > 1)
this._updateOneToMany && this._updateOneToMany(c, u), i[l] = null;
else if (f === 1 && d === 1)
this._update && this._update(c, u), i[l] = null;
else if (f > 1 && d > 1)
this._updateManyToMany && this._updateManyToMany(c, u), i[l] = null;
else if (f > 1)
for (var h = 0; h < f; h++)
this._remove && this._remove(u[h]);
else
this._remove && this._remove(u);
}
this._performRestAdd(o, i);
}, t.prototype._performRestAdd = function(e, n) {
for (var r = 0; r < e.length; r++) {
var i = e[r], a = n[i], o = mv(a);
if (o > 1)
for (var s = 0; s < o; s++)
this._add && this._add(a[s]);
else o === 1 && this._add && this._add(a);
n[i] = null;
}
}, t.prototype._initIndexMap = function(e, n, r, i) {
for (var a = this._diffModeMultiple, o = 0; o < e.length; o++) {
var s = "_ec_" + this[i](e[o], o);
if (a || (r[o] = s), !!n) {
var l = n[s], u = mv(l);
u === 0 ? (n[s] = o, a && r.push(s)) : u === 1 ? n[s] = [l, o] : l.push(o);
}
}
}, t;
}()
), sNe = (
/** @class */
function() {
function t(e, n) {
this._encode = e, this._schema = n;
}
return t.prototype.get = function() {
return {
// Do not generate full dimension name until fist used.
fullDimensions: this._getFullDimensionNames(),
encode: this._encode
};
}, t.prototype._getFullDimensionNames = function() {
return this._cachedDimNames || (this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : []), this._cachedDimNames;
}, t;
}()
);
function lNe(t, e) {
var n = {}, r = n.encode = {}, i = Pe(), a = [], o = [], s = {};
k(t.dimensions, function(d) {
var h = t.getDimensionInfo(d), p = h.coordDim;
if (p) {
process.env.NODE_ENV !== "production" && ke(WA.get(p) == null);
var v = h.coordDimIndex;
QT(r, p)[v] = d, h.isExtraCoord || (i.set(p, 1), uNe(h.type) && (a[0] = d), QT(s, p)[v] = t.getDimensionIndex(h.name)), h.defaultTooltip && o.push(d);
}
WA.each(function(g, m) {
var y = QT(r, m), b = h.otherDims[m];
b != null && b !== !1 && (y[b] = h.name);
});
});
var l = [], u = {};
i.each(function(d, h) {
var p = r[h];
u[h] = p[0], l = l.concat(p);
}), n.dataDimsOnCoord = l, n.dataDimIndicesOnCoord = ce(l, function(d) {
return t.getDimensionInfo(d).storeDimIndex;
}), n.encodeFirstDimNotExtra = u;
var c = r.label;
c && c.length && (a = c.slice());
var f = r.tooltip;
return f && f.length ? o = f.slice() : o.length || (o = a.slice()), r.defaultedLabel = a, r.defaultedTooltip = o, n.userOutput = new sNe(s, e), n;
}
function QT(t, e) {
return t.hasOwnProperty(e) || (t[e] = []), t[e];
}
function TO(t) {
return t === "category" ? "ordinal" : t === "time" ? "time" : "float";
}
function uNe(t) {
return !(t === "ordinal" || t === "time");
}
var Z_ = (
/** @class */
/* @__PURE__ */ function() {
function t(e) {
this.otherDims = {}, e != null && le(this, e);
}
return t;
}()
), cNe = bt(), fNe = {
float: "f",
int: "i",
ordinal: "o",
number: "n",
time: "t"
}, Fee = (
/** @class */
function() {
function t(e) {
this.dimensions = e.dimensions, this._dimOmitted = e.dimensionOmitted, this.source = e.source, this._fullDimCount = e.fullDimensionCount, this._updateDimOmitted(e.dimensionOmitted);
}
return t.prototype.isDimensionOmitted = function() {
return this._dimOmitted;
}, t.prototype._updateDimOmitted = function(e) {
this._dimOmitted = e, e && (this._dimNameMap || (this._dimNameMap = Hee(this.source)));
}, t.prototype.getSourceDimensionIndex = function(e) {
return We(this._dimNameMap.get(e), -1);
}, t.prototype.getSourceDimension = function(e) {
var n = this.source.dimensionsDefine;
if (n)
return n[e];
}, t.prototype.makeStoreSchema = function() {
for (var e = this._fullDimCount, n = VJ(this.source), r = !Gee(e), i = "", a = [], o = 0, s = 0; o < e; o++) {
var l = void 0, u = void 0, c = void 0, f = this.dimensions[s];
if (f && f.storeDimIndex === o)
l = n ? f.name : null, u = f.type, c = f.ordinalMeta, s++;
else {
var d = this.getSourceDimension(o);
d && (l = n ? d.name : null, u = d.type);
}
a.push({
property: l,
type: u,
ordinalMeta: c
}), n && l != null && (!f || !f.isCalculationCoord) && (i += r ? l.replace(/\`/g, "`1").replace(/\$/g, "`2") : l), i += "$", i += fNe[u] || "f", c && (i += c.uid), i += "$";
}
var h = this.source, p = [h.seriesLayoutBy, h.startIndex, i].join("$$");
return {
dimensions: a,
hash: p
};
}, t.prototype.makeOutputDimensionNames = function() {
for (var e = [], n = 0, r = 0; n < this._fullDimCount; n++) {
var i = void 0, a = this.dimensions[r];
if (a && a.storeDimIndex === n)
a.isCalculationCoord || (i = a.name), r++;
else {
var o = this.getSourceDimension(n);
o && (i = o.name);
}
e.push(i);
}
return e;
}, t.prototype.appendCalculationDimension = function(e) {
this.dimensions.push(e), e.isCalculationCoord = !0, this._fullDimCount++, this._updateDimOmitted(!0);
}, t;
}()
);
function Wee(t) {
return t instanceof Fee;
}
function Qee(t) {
for (var e = Pe(), n = 0; n < (t || []).length; n++) {
var r = t[n], i = Ie(r) ? r.name : r;
i != null && e.get(i) == null && e.set(i, n);
}
return e;
}
function Hee(t) {
var e = cNe(t);
return e.dimNameMap || (e.dimNameMap = Qee(t.dimensionsDefine));
}
function Gee(t) {
return t > 30;
}
var yv = Ie, gl = ce, dNe = typeof Int32Array > "u" ? Array : Int32Array, hNe = "e\0\0", nV = -1, pNe = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"], vNe = ["_approximateExtent"], rV, db, bv, dd, HT, hb, GT, gNe = (
/** @class */
function() {
function t(e, n) {
this.type = "list", this._dimOmitted = !1, this._nameList = [], this._idList = [], this._visual = {}, this._layout = {}, this._itemVisuals = [], this._itemLayouts = [], this._graphicEls = [], this._approximateExtent = {}, this._calculationInfo = {}, this.hasItemOption = !1, this.TRANSFERABLE_METHODS = ["cloneShallow", "downSample", "lttbDownSample", "map"], this.CHANGABLE_METHODS = ["filterSelf", "selectRange"], this.DOWNSAMPLE_METHODS = ["downSample", "lttbDownSample"];
var r, i = !1;
Wee(e) ? (r = e.dimensions, this._dimOmitted = e.isDimensionOmitted(), this._schema = e) : (i = !0, r = e), r = r || ["x", "y"];
for (var a = {}, o = [], s = {}, l = !1, u = {}, c = 0; c < r.length; c++) {
var f = r[c], d = Oe(f) ? new Z_({
name: f
}) : f instanceof Z_ ? f : new Z_(f), h = d.name;
d.type = d.type || "float", d.coordDim || (d.coordDim = h, d.coordDimIndex = 0);
var p = d.otherDims = d.otherDims || {};
o.push(h), a[h] = d, u[h] != null && (l = !0), d.createInvertedIndices && (s[h] = []), p.itemName === 0 && (this._nameDimIdx = c), p.itemId === 0 && (this._idDimIdx = c), process.env.NODE_ENV !== "production" && ke(i || d.storeDimIndex >= 0), i && (d.storeDimIndex = c);
}
if (this.dimensions = o, this._dimInfos = a, this._initGetDimensionInfo(l), this.hostModel = n, this._invertedIndicesMap = s, this._dimOmitted) {
var v = this._dimIdxToName = Pe();
k(o, function(g) {
v.set(a[g].storeDimIndex, g);
});
}
}
return t.prototype.getDimension = function(e) {
var n = this._recognizeDimIndex(e);
if (n == null)
return e;
if (n = e, !this._dimOmitted)
return this.dimensions[n];
var r = this._dimIdxToName.get(n);
if (r != null)
return r;
var i = this._schema.getSourceDimension(n);
if (i)
return i.name;
}, t.prototype.getDimensionIndex = function(e) {
var n = this._recognizeDimIndex(e);
if (n != null)
return n;
if (e == null)
return -1;
var r = this._getDimInfo(e);
return r ? r.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(e) : -1;
}, t.prototype._recognizeDimIndex = function(e) {
if (St(e) || e != null && !isNaN(e) && !this._getDimInfo(e) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(e) < 0))
return +e;
}, t.prototype._getStoreDimIndex = function(e) {
var n = this.getDimensionIndex(e);
if (process.env.NODE_ENV !== "production" && n == null)
throw new Error("Unknown dimension " + e);
return n;
}, t.prototype.getDimensionInfo = function(e) {
return this._getDimInfo(this.getDimension(e));
}, t.prototype._initGetDimensionInfo = function(e) {
var n = this._dimInfos;
this._getDimInfo = e ? function(r) {
return n.hasOwnProperty(r) ? n[r] : void 0;
} : function(r) {
return n[r];
};
}, t.prototype.getDimensionsOnCoord = function() {
return this._dimSummary.dataDimsOnCoord.slice();
}, t.prototype.mapDimension = function(e, n) {
var r = this._dimSummary;
if (n == null)
return r.encodeFirstDimNotExtra[e];
var i = r.encode[e];
return i ? i[n] : null;
}, t.prototype.mapDimensionsAll = function(e) {
var n = this._dimSummary, r = n.encode[e];
return (r || []).slice();
}, t.prototype.getStore = function() {
return this._store;
}, t.prototype.initData = function(e, n, r) {
var i = this, a;
if (e instanceof jA && (a = e), !a) {
var o = this.dimensions, s = sk(e) || wr(e) ? new FJ(e, o.length) : e;
a = new jA();
var l = gl(o, function(u) {
return {
type: i._dimInfos[u].type,
property: u
};
});
a.initData(s, l, r);
}
this._store = a, this._nameList = (n || []).slice(), this._idList = [], this._nameRepeatCount = {}, this._doInit(0, a.count()), this._dimSummary = lNe(this, this._schema), this.userOutput = this._dimSummary.userOutput;
}, t.prototype.appendData = function(e) {
var n = this._store.appendData(e);
this._doInit(n[0], n[1]);
}, t.prototype.appendValues = function(e, n) {
var r = this._store.appendValues(e, n.length), i = r.start, a = r.end, o = this._shouldMakeIdFromName();
if (this._updateOrdinalMeta(), n)
for (var s = i; s < a; s++) {
var l = s - i;
this._nameList[s] = n[l], o && GT(this, s);
}
}, t.prototype._updateOrdinalMeta = function() {
for (var e = this._store, n = this.dimensions, r = 0; r < n.length; r++) {
var i = this._dimInfos[n[r]];
i.ordinalMeta && e.collectOrdinalMeta(i.storeDimIndex, i.ordinalMeta);
}
}, t.prototype._shouldMakeIdFromName = function() {
var e = this._store.getProvider();
return this._idDimIdx == null && e.getSource().sourceFormat !== Rs && !e.fillStorage;
}, t.prototype._doInit = function(e, n) {
if (!(e >= n)) {
var r = this._store, i = r.getProvider();
this._updateOrdinalMeta();
var a = this._nameList, o = this._idList, s = i.getSource().sourceFormat, l = s === Ba;
if (l && !i.pure)
for (var u = [], c = e; c < n; c++) {
var f = i.getItem(c, u);
if (!this.hasItemOption && jDe(f) && (this.hasItemOption = !0), f) {
var d = f.name;
a[c] == null && d != null && (a[c] = Vn(d, null));
var h = f.id;
o[c] == null && h != null && (o[c] = Vn(h, null));
}
}
if (this._shouldMakeIdFromName())
for (var c = e; c < n; c++)
GT(this, c);
rV(this);
}
}, t.prototype.getApproximateExtent = function(e) {
return this._approximateExtent[e] || this._store.getDataExtent(this._getStoreDimIndex(e));
}, t.prototype.setApproximateExtent = function(e, n) {
n = this.getDimension(n), this._approximateExtent[n] = e.slice();
}, t.prototype.getCalculationInfo = function(e) {
return this._calculationInfo[e];
}, t.prototype.setCalculationInfo = function(e, n) {
yv(e) ? le(this._calculationInfo, e) : this._calculationInfo[e] = n;
}, t.prototype.getName = function(e) {
var n = this.getRawIndex(e), r = this._nameList[n];
return r == null && this._nameDimIdx != null && (r = bv(this, this._nameDimIdx, n)), r == null && (r = ""), r;
}, t.prototype._getCategory = function(e, n) {
var r = this._store.get(e, n), i = this._store.getOrdinalMeta(e);
return i ? i.categories[r] : r;
}, t.prototype.getId = function(e) {
return db(this, this.getRawIndex(e));
}, t.prototype.count = function() {
return this._store.count();
}, t.prototype.get = function(e, n) {
var r = this._store, i = this._dimInfos[e];
if (i)
return r.get(i.storeDimIndex, n);
}, t.prototype.getByRawIndex = function(e, n) {
var r = this._store, i = this._dimInfos[e];
if (i)
return r.getByRawIndex(i.storeDimIndex, n);
}, t.prototype.getIndices = function() {
return this._store.getIndices();
}, t.prototype.getDataExtent = function(e) {
return this._store.getDataExtent(this._getStoreDimIndex(e));
}, t.prototype.getSum = function(e) {
return this._store.getSum(this._getStoreDimIndex(e));
}, t.prototype.getMedian = function(e) {
return this._store.getMedian(this._getStoreDimIndex(e));
}, t.prototype.getValues = function(e, n) {
var r = this, i = this._store;
return ue(e) ? i.getValues(gl(e, function(a) {
return r._getStoreDimIndex(a);
}), n) : i.getValues(e);
}, t.prototype.hasValue = function(e) {
for (var n = this._dimSummary.dataDimIndicesOnCoord, r = 0, i = n.length; r < i; r++)
if (isNaN(this._store.get(n[r], e)))
return !1;
return !0;
}, t.prototype.indexOfName = function(e) {
for (var n = 0, r = this._store.count(); n < r; n++)
if (this.getName(n) === e)
return n;
return -1;
}, t.prototype.getRawIndex = function(e) {
return this._store.getRawIndex(e);
}, t.prototype.indexOfRawIndex = function(e) {
return this._store.indexOfRawIndex(e);
}, t.prototype.rawIndexOf = function(e, n) {
var r = e && this._invertedIndicesMap[e];
if (process.env.NODE_ENV !== "production" && !r)
throw new Error("Do not supported yet");
var i = r[n];
return i == null || isNaN(i) ? nV : i;
}, t.prototype.indicesOfNearest = function(e, n, r) {
return this._store.indicesOfNearest(this._getStoreDimIndex(e), n, r);
}, t.prototype.each = function(e, n, r) {
Me(e) && (r = n, n = e, e = []);
var i = r || this, a = gl(dd(e), this._getStoreDimIndex, this);
this._store.each(a, i ? xe(n, i) : n);
}, t.prototype.filterSelf = function(e, n, r) {
Me(e) && (r = n, n = e, e = []);
var i = r || this, a = gl(dd(e), this._getStoreDimIndex, this);
return this._store = this._store.filter(a, i ? xe(n, i) : n), this;
}, t.prototype.selectRange = function(e) {
var n = this, r = {}, i = st(e);
return k(i, function(a) {
var o = n._getStoreDimIndex(a);
r[o] = e[a];
}), this._store = this._store.selectRange(r), this;
}, t.prototype.mapArray = function(e, n, r) {
Me(e) && (r = n, n = e, e = []), r = r || this;
var i = [];
return this.each(e, function() {
i.push(n && n.apply(this, arguments));
}, r), i;
}, t.prototype.map = function(e, n, r, i) {
var a = r || i || this, o = gl(dd(e), this._getStoreDimIndex, this), s = hb(this);
return s._store = this._store.map(o, a ? xe(n, a) : n), s;
}, t.prototype.modify = function(e, n, r, i) {
var a = this, o = r || i || this;
process.env.NODE_ENV !== "production" && k(dd(e), function(l) {
var u = a.getDimensionInfo(l);
u.isCalculationCoord || console.error("Danger: only stack dimension can be modified");
});
var s = gl(dd(e), this._getStoreDimIndex, this);
this._store.modify(s, o ? xe(n, o) : n);
}, t.prototype.downSample = function(e, n, r, i) {
var a = hb(this);
return a._store = this._store.downSample(this._getStoreDimIndex(e), n, r, i), a;
}, t.prototype.lttbDownSample = function(e, n) {
var r = hb(this);
return r._store = this._store.lttbDownSample(this._getStoreDimIndex(e), n), r;
}, t.prototype.getRawDataItem = function(e) {
return this._store.getRawDataItem(e);
}, t.prototype.getItemModel = function(e) {
var n = this.hostModel, r = this.getRawDataItem(e);
return new Wt(r, n, n && n.ecModel);
}, t.prototype.diff = function(e) {
var n = this;
return new Xs(e ? e.getStore().getIndices() : [], this.getStore().getIndices(), function(r) {
return db(e, r);
}, function(r) {
return db(n, r);
});
}, t.prototype.getVisual = function(e) {
var n = this._visual;
return n && n[e];
}, t.prototype.setVisual = function(e, n) {
this._visual = this._visual || {}, yv(e) ? le(this._visual, e) : this._visual[e] = n;
}, t.prototype.getItemVisual = function(e, n) {
var r = this._itemVisuals[e], i = r && r[n];
return i ?? this.getVisual(n);
}, t.prototype.hasItemVisual = function() {
return this._itemVisuals.length > 0;
}, t.prototype.ensureUniqueItemVisual = function(e, n) {
var r = this._itemVisuals, i = r[e];
i || (i = r[e] = {});
var a = i[n];
return a == null && (a = this.getVisual(n), ue(a) ? a = a.slice() : yv(a) && (a = le({}, a)), i[n] = a), a;
}, t.prototype.setItemVisual = function(e, n, r) {
var i = this._itemVisuals[e] || {};
this._itemVisuals[e] = i, yv(n) ? le(i, n) : i[n] = r;
}, t.prototype.clearAllVisual = function() {
this._visual = {}, this._itemVisuals = [];
}, t.prototype.setLayout = function(e, n) {
yv(e) ? le(this._layout, e) : this._layout[e] = n;
}, t.prototype.getLayout = function(e) {
return this._layout[e];
}, t.prototype.getItemLayout = function(e) {
return this._itemLayouts[e];
}, t.prototype.setItemLayout = function(e, n, r) {
this._itemLayouts[e] = r ? le(this._itemLayouts[e] || {}, n) : n;
}, t.prototype.clearItemLayouts = function() {
this._itemLayouts.length = 0;
}, t.prototype.setItemGraphicEl = function(e, n) {
var r = this.hostModel && this.hostModel.seriesIndex;
IA(r, this.dataType, e, n), this._graphicEls[e] = n;
}, t.prototype.getItemGraphicEl = function(e) {
return this._graphicEls[e];
}, t.prototype.eachItemGraphicEl = function(e, n) {
k(this._graphicEls, function(r, i) {
r && e && e.call(n, r, i);
});
}, t.prototype.cloneShallow = function(e) {
return e || (e = new t(this._schema ? this._schema : gl(this.dimensions, this._getDimInfo, this), this.hostModel)), HT(e, this), e._store = this._store, e;
}, t.prototype.wrapMethod = function(e, n) {
var r = this[e];
Me(r) && (this.__wrappedMethods = this.__wrappedMethods || [], this.__wrappedMethods.push(e), this[e] = function() {
var i = r.apply(this, arguments);
return n.apply(this, [i].concat(kx(arguments)));
});
}, t.internalField = function() {
rV = function(e) {
var n = e._invertedIndicesMap;
k(n, function(r, i) {
var a = e._dimInfos[i], o = a.ordinalMeta, s = e._store;
if (o) {
r = n[i] = new dNe(o.categories.length);
for (var l = 0; l < r.length; l++)
r[l] = nV;
for (var l = 0; l < s.count(); l++)
r[s.get(a.storeDimIndex, l)] = l;
}
});
}, bv = function(e, n, r) {
return Vn(e._getCategory(n, r), null);
}, db = function(e, n) {
var r = e._idList[n];
return r == null && e._idDimIdx != null && (r = bv(e, e._idDimIdx, n)), r == null && (r = hNe + n), r;
}, dd = function(e) {
return ue(e) || (e = e != null ? [e] : []), e;
}, hb = function(e) {
var n = new t(e._schema ? e._schema : gl(e.dimensions, e._getDimInfo, e), e.hostModel);
return HT(n, e), n;
}, HT = function(e, n) {
k(pNe.concat(n.__wrappedMethods || []), function(r) {
n.hasOwnProperty(r) && (e[r] = n[r]);
}), e.__wrappedMethods = n.__wrappedMethods, k(vNe, function(r) {
e[r] = Le(n[r]);
}), e._calculationInfo = le({}, n._calculationInfo);
}, GT = function(e, n) {
var r = e._nameList, i = e._idList, a = e._nameDimIdx, o = e._idDimIdx, s = r[n], l = i[n];
if (s == null && a != null && (r[n] = s = bv(e, a, n)), l == null && o != null && (i[n] = l = bv(e, o, n)), l == null && s != null) {
var u = e._nameRepeatCount, c = u[s] = (u[s] || 0) + 1;
l = s, c > 1 && (l += "__ec__" + c), i[n] = l;
}
};
}(), t;
}()
);
const Nr = gNe;
function mNe(t, e) {
return Ap(t, e).dimensions;
}
function Ap(t, e) {
sk(t) || (t = lk(t)), e = e || {};
var n = e.coordDimensions || [], r = e.dimensionsDefine || t.dimensionsDefine || [], i = Pe(), a = [], o = bNe(t, n, r, e.dimensionsCount), s = e.canOmitUnusedDimensions && Gee(o), l = r === t.dimensionsDefine, u = l ? Hee(t) : Qee(r), c = e.encodeDefine;
!c && e.encodeDefaulter && (c = e.encodeDefaulter(t, o));
for (var f = Pe(c), d = new XJ(o), h = 0; h < d.length; h++)
d[h] = -1;
function p(T) {
var w = d[T];
if (w < 0) {
var P = r[T], $ = Ie(P) ? P : {
name: P
}, A = new Z_(), D = $.name;
D != null && u.get(D) != null && (A.name = A.displayName = D), $.type != null && (A.type = $.type), $.displayName != null && (A.displayName = $.displayName);
var E = a.length;
return d[T] = E, A.storeDimIndex = T, a.push(A), A;
}
return a[w];
}
if (!s)
for (var h = 0; h < o; h++)
p(h);
f.each(function(T, w) {
var P = Qt(T).slice();
if (P.length === 1 && !Oe(P[0]) && P[0] < 0) {
f.set(w, !1);
return;
}
var $ = f.set(w, []);
k(P, function(A, D) {
var E = Oe(A) ? u.get(A) : A;
E != null && E < o && ($[D] = E, g(p(E), w, D));
});
});
var v = 0;
k(n, function(T) {
var w, P, $, A;
if (Oe(T))
w = T, A = {};
else {
A = T, w = A.name;
var D = A.ordinalMeta;
A.ordinalMeta = null, A = le({}, A), A.ordinalMeta = D, P = A.dimsDef, $ = A.otherDims, A.name = A.coordDim = A.coordDimIndex = A.dimsDef = A.otherDims = null;
}
var E = f.get(w);
if (E !== !1) {
if (E = Qt(E), !E.length)
for (var R = 0; R < (P && P.length || 1); R++) {
for (; v < o && p(v).coordDim != null; )
v++;
v < o && E.push(v++);
}
k(E, function(N, V) {
var B = p(N);
if (l && A.type != null && (B.type = A.type), g(Re(B, A), w, V), B.name == null && P) {
var W = P[V];
!Ie(W) && (W = {
name: W
}), B.name = B.displayName = W.name, B.defaultTooltip = W.defaultTooltip;
}
$ && Re(B.otherDims, $);
});
}
});
function g(T, w, P) {
WA.get(w) != null ? T.otherDims[w] = P : (T.coordDim = w, T.coordDimIndex = P, i.set(w, !0));
}
var m = e.generateCoord, y = e.generateCoordCount, b = y != null;
y = m ? y || 1 : 0;
var _ = m || "value";
function O(T) {
T.name == null && (T.name = T.coordDim);
}
if (s)
k(a, function(T) {
O(T);
}), a.sort(function(T, w) {
return T.storeDimIndex - w.storeDimIndex;
});
else
for (var S = 0; S < o; S++) {
var x = p(S), C = x.coordDim;
C == null && (x.coordDim = _Ne(_, i, b), x.coordDimIndex = 0, (!m || y <= 0) && (x.isExtraCoord = !0), y--), O(x), x.type == null && (DJ(t, S) === cr.Must || x.isExtraCoord && (x.otherDims.itemName != null || x.otherDims.seriesName != null)) && (x.type = "ordinal");
}
return yNe(a), new Fee({
source: t,
dimensions: a,
fullDimensionCount: o,
dimensionOmitted: s
});
}
function yNe(t) {
for (var e = Pe(), n = 0; n < t.length; n++) {
var r = t[n], i = r.name, a = e.get(i) || 0;
a > 0 && (r.name = i + (a - 1)), a++, e.set(i, a);
}
}
function bNe(t, e, n, r) {
var i = Math.max(t.dimensionsDetectedCount || 1, e.length, n.length, r || 0);
return k(e, function(a) {
var o;
Ie(a) && (o = a.dimsDef) && (i = Math.max(i, o.length));
}), i;
}
function _Ne(t, e, n) {
if (n || e.hasKey(t)) {
for (var r = 0; e.hasKey(t + r); )
r++;
t += r;
}
return e.set(t, !0), t;
}
var ONe = (
/** @class */
/* @__PURE__ */ function() {
function t(e) {
this.coordSysDims = [], this.axisMap = Pe(), this.categoryAxisMap = Pe(), this.coordSysName = e;
}
return t;
}()
);
function SNe(t) {
var e = t.get("coordinateSystem"), n = new ONe(e), r = xNe[e];
if (r)
return r(t, n, n.axisMap, n.categoryAxisMap), n;
}
var xNe = {
cartesian2d: function(t, e, n, r) {
var i = t.getReferringComponents("xAxis", Dn).models[0], a = t.getReferringComponents("yAxis", Dn).models[0];
if (process.env.NODE_ENV !== "production") {
if (!i)
throw new Error('xAxis "' + Tn(t.get("xAxisIndex"), t.get("xAxisId"), 0) + '" not found');
if (!a)
throw new Error('yAxis "' + Tn(t.get("xAxisIndex"), t.get("yAxisId"), 0) + '" not found');
}
e.coordSysDims = ["x", "y"], n.set("x", i), n.set("y", a), hd(i) && (r.set("x", i), e.firstCategoryDimIndex = 0), hd(a) && (r.set("y", a), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1));
},
singleAxis: function(t, e, n, r) {
var i = t.getReferringComponents("singleAxis", Dn).models[0];
if (process.env.NODE_ENV !== "production" && !i)
throw new Error("singleAxis should be specified.");
e.coordSysDims = ["single"], n.set("single", i), hd(i) && (r.set("single", i), e.firstCategoryDimIndex = 0);
},
polar: function(t, e, n, r) {
var i = t.getReferringComponents("polar", Dn).models[0], a = i.findAxisModel("radiusAxis"), o = i.findAxisModel("angleAxis");
if (process.env.NODE_ENV !== "production") {
if (!o)
throw new Error("angleAxis option not found");
if (!a)
throw new Error("radiusAxis option not found");
}
e.coordSysDims = ["radius", "angle"], n.set("radius", a), n.set("angle", o), hd(a) && (r.set("radius", a), e.firstCategoryDimIndex = 0), hd(o) && (r.set("angle", o), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1));
},
geo: function(t, e, n, r) {
e.coordSysDims = ["lng", "lat"];
},
parallel: function(t, e, n, r) {
var i = t.ecModel, a = i.getComponent("parallel", t.get("parallelIndex")), o = e.coordSysDims = a.dimensions.slice();
k(a.parallelAxisIndex, function(s, l) {
var u = i.getComponent("parallelAxis", s), c = o[l];
n.set(c, u), hd(u) && (r.set(c, u), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = l));
});
}
};
function hd(t) {
return t.get("type") === "category";
}
function jee(t, e, n) {
n = n || {};
var r = n.byIndex, i = n.stackedCoordDimension, a, o, s;
wNe(e) ? a = e : (o = e.schema, a = o.dimensions, s = e.store);
var l = !!(t && t.get("stack")), u, c, f, d;
if (k(a, function(y, b) {
Oe(y) && (a[b] = y = {
name: y
}), l && !y.isExtraCoord && (!r && !u && y.ordinalMeta && (u = y), !c && y.type !== "ordinal" && y.type !== "time" && (!i || i === y.coordDim) && (c = y));
}), c && !r && !u && (r = !0), c) {
f = "__\0ecstackresult_" + t.id, d = "__\0ecstackedover_" + t.id, u && (u.createInvertedIndices = !0);
var h = c.coordDim, p = c.type, v = 0;
k(a, function(y) {
y.coordDim === h && v++;
});
var g = {
name: f,
coordDim: h,
coordDimIndex: v,
type: p,
isExtraCoord: !0,
isCalculationCoord: !0,
storeDimIndex: a.length
}, m = {
name: d,
// This dimension contains stack base (generally, 0), so do not set it as
// `stackedDimCoordDim` to avoid extent calculation, consider log scale.
coordDim: d,
coordDimIndex: v + 1,
type: p,
isExtraCoord: !0,
isCalculationCoord: !0,
storeDimIndex: a.length + 1
};
o ? (s && (g.storeDimIndex = s.ensureCalculationDimension(d, p), m.storeDimIndex = s.ensureCalculationDimension(f, p)), o.appendCalculationDimension(g), o.appendCalculationDimension(m)) : (a.push(g), a.push(m));
}
return {
stackedDimension: c && c.name,
stackedByDimension: u && u.name,
isStackedByIndex: r,
stackedOverDimension: d,
stackResultDimension: f
};
}
function wNe(t) {
return !Wee(t.schema);
}
function Ys(t, e) {
return !!e && e === t.getCalculationInfo("stackedDimension");
}
function xk(t, e) {
return Ys(t, e) ? t.getCalculationInfo("stackResultDimension") : e;
}
function CNe(t, e) {
var n = t.get("coordinateSystem"), r = Vf.get(n), i;
return e && e.coordSysDims && (i = ce(e.coordSysDims, function(a) {
var o = {
name: a
}, s = e.axisMap.get(a);
if (s) {
var l = s.get("type");
o.type = TO(l);
}
return o;
})), i || (i = r && (r.getDimensionsInfo ? r.getDimensionsInfo() : r.dimensions.slice()) || ["x", "y"]), i;
}
function TNe(t, e, n) {
var r, i;
return n && k(t, function(a, o) {
var s = a.coordDim, l = n.categoryAxisMap.get(s);
l && (r == null && (r = o), a.ordinalMeta = l.getOrdinalMeta(), e && (a.createInvertedIndices = !0)), a.otherDims.itemName != null && (i = !0);
}), !i && r != null && (t[r].otherDims.itemName = 0), r;
}
function cs(t, e, n) {
n = n || {};
var r = e.getSourceManager(), i, a = !1;
t ? (a = !0, i = lk(t)) : (i = r.getSource(), a = i.sourceFormat === Ba);
var o = SNe(e), s = CNe(e, o), l = n.useEncodeDefaulter, u = Me(l) ? l : l ? Ue(IJ, s, e) : null, c = {
coordDimensions: s,
generateCoord: n.generateCoord,
encodeDefine: e.getEncode(),
encodeDefaulter: u,
canOmitUnusedDimensions: !a
}, f = Ap(i, c), d = TNe(f.dimensions, n.createInvertedIndices, o), h = a ? null : r.getSharedDataStore(f), p = jee(e, {
schema: f,
store: h
}), v = new Nr(f, e);
v.setCalculationInfo(p);
var g = d != null && PNe(i) ? function(m, y, b, _) {
return _ === d ? b : this.defaultDimValueGetter(m, y, b, _);
} : null;
return v.hasItemOption = !1, v.initData(
// Try to reuse the data store in sourceManager if using dataset.
a ? i : h,
null,
g
), v;
}
function PNe(t) {
if (t.sourceFormat === Ba) {
var e = $Ne(t.data || []);
return !ue(gp(e));
}
}
function $Ne(t) {
for (var e = 0; e < t.length && t[e] == null; )
e++;
return t[e];
}
var fs = (
/** @class */
function() {
function t(e) {
this._setting = e || {}, this._extent = [1 / 0, -1 / 0];
}
return t.prototype.getSetting = function(e) {
return this._setting[e];
}, t.prototype.unionExtent = function(e) {
var n = this._extent;
e[0] < n[0] && (n[0] = e[0]), e[1] > n[1] && (n[1] = e[1]);
}, t.prototype.unionExtentFromData = function(e, n) {
this.unionExtent(e.getApproximateExtent(n));
}, t.prototype.getExtent = function() {
return this._extent.slice();
}, t.prototype.setExtent = function(e, n) {
var r = this._extent;
isNaN(e) || (r[0] = e), isNaN(n) || (r[1] = n);
}, t.prototype.isInExtentRange = function(e) {
return this._extent[0] <= e && this._extent[1] >= e;
}, t.prototype.isBlank = function() {
return this._isBlank;
}, t.prototype.setBlank = function(e) {
this._isBlank = e;
}, t;
}()
);
Hx(fs);
var ANe = 0, nE = (
/** @class */
function() {
function t(e) {
this.categories = e.categories || [], this._needCollect = e.needCollect, this._deduplication = e.deduplication, this.uid = ++ANe;
}
return t.createByAxisModel = function(e) {
var n = e.option, r = n.data, i = r && ce(r, ENe);
return new t({
categories: i,
needCollect: !i,
// deduplication is default in axis.
deduplication: n.dedplication !== !1
});
}, t.prototype.getOrdinal = function(e) {
return this._getOrCreateMap().get(e);
}, t.prototype.parseAndCollect = function(e) {
var n, r = this._needCollect;
if (!Oe(e) && !r)
return e;
if (r && !this._deduplication)
return n = this.categories.length, this.categories[n] = e, n;
var i = this._getOrCreateMap();
return n = i.get(e), n == null && (r ? (n = this.categories.length, this.categories[n] = e, i.set(e, n)) : n = NaN), n;
}, t.prototype._getOrCreateMap = function() {
return this._map || (this._map = Pe(this.categories));
}, t;
}()
);
function ENe(t) {
return Ie(t) && t.value != null ? t.value : t + "";
}
function MNe(t) {
var e = Math.pow(10, N0(Math.abs(t))), n = Math.abs(t / e);
return n === 0 || n === 1 || n === 2 || n === 3 || n === 5;
}
function rE(t) {
return t.type === "interval" || t.type === "log";
}
function INe(t, e, n, r) {
var i = {}, a = t[1] - t[0], o = i.interval = AR(a / e, !0);
n != null && o < n && (o = i.interval = n), r != null && o > r && (o = i.interval = r);
var s = i.intervalPrecision = Zee(o), l = i.niceTickExtent = [mn(Math.ceil(t[0] / o) * o, s), mn(Math.floor(t[1] / o) * o, s)];
return DNe(l, t), i;
}
function jT(t) {
var e = Math.pow(10, N0(t)), n = t / e;
return n ? n === 2 ? n = 3 : n === 3 ? n = 5 : n *= 2 : n = 1, mn(n * e);
}
function Zee(t) {
return Ya(t) + 2;
}
function iV(t, e, n) {
t[e] = Math.max(Math.min(t[e], n[1]), n[0]);
}
function DNe(t, e) {
!isFinite(t[0]) && (t[0] = e[0]), !isFinite(t[1]) && (t[1] = e[1]), iV(t, 0, e), iV(t, 1, e), t[0] > t[1] && (t[0] = t[1]);
}
function hw(t, e) {
return t >= e[0] && t <= e[1];
}
function pw(t, e) {
return e[1] === e[0] ? 0.5 : (t - e[0]) / (e[1] - e[0]);
}
function vw(t, e) {
return t * (e[1] - e[0]) + e[0];
}
var gw = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
r.type = "ordinal";
var i = r.getSetting("ordinalMeta");
return i || (i = new nE({})), ue(i) && (i = new nE({
categories: ce(i, function(a) {
return Ie(a) ? a.value : a;
})
})), r._ordinalMeta = i, r._extent = r.getSetting("extent") || [0, i.categories.length - 1], r;
}
return e.prototype.parse = function(n) {
return n == null ? NaN : Oe(n) ? this._ordinalMeta.getOrdinal(n) : Math.round(n);
}, e.prototype.contain = function(n) {
return n = this.parse(n), hw(n, this._extent) && this._ordinalMeta.categories[n] != null;
}, e.prototype.normalize = function(n) {
return n = this._getTickNumber(this.parse(n)), pw(n, this._extent);
}, e.prototype.scale = function(n) {
return n = Math.round(vw(n, this._extent)), this.getRawOrdinalNumber(n);
}, e.prototype.getTicks = function() {
for (var n = [], r = this._extent, i = r[0]; i <= r[1]; )
n.push({
value: i
}), i++;
return n;
}, e.prototype.getMinorTicks = function(n) {
}, e.prototype.setSortInfo = function(n) {
if (n == null) {
this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;
return;
}
for (var r = n.ordinalNumbers, i = this._ordinalNumbersByTick = [], a = this._ticksByOrdinalNumber = [], o = 0, s = this._ordinalMeta.categories.length, l = Math.min(s, r.length); o < l; ++o) {
var u = r[o];
i[o] = u, a[u] = o;
}
for (var c = 0; o < s; ++o) {
for (; a[c] != null; )
c++;
i.push(c), a[c] = o;
}
}, e.prototype._getTickNumber = function(n) {
var r = this._ticksByOrdinalNumber;
return r && n >= 0 && n < r.length ? r[n] : n;
}, e.prototype.getRawOrdinalNumber = function(n) {
var r = this._ordinalNumbersByTick;
return r && n >= 0 && n < r.length ? r[n] : n;
}, e.prototype.getLabel = function(n) {
if (!this.isBlank()) {
var r = this.getRawOrdinalNumber(n.value), i = this._ordinalMeta.categories[r];
return i == null ? "" : i + "";
}
}, e.prototype.count = function() {
return this._extent[1] - this._extent[0] + 1;
}, e.prototype.unionExtentFromData = function(n, r) {
this.unionExtent(n.getApproximateExtent(r));
}, e.prototype.isInExtentRange = function(n) {
return n = this._getTickNumber(n), this._extent[0] <= n && this._extent[1] >= n;
}, e.prototype.getOrdinalMeta = function() {
return this._ordinalMeta;
}, e.prototype.calcNiceTicks = function() {
}, e.prototype.calcNiceExtent = function() {
}, e.type = "ordinal", e;
}(fs)
);
fs.registerClass(gw);
var ic = mn, qs = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "interval", n._interval = 0, n._intervalPrecision = 2, n;
}
return e.prototype.parse = function(n) {
return n;
}, e.prototype.contain = function(n) {
return hw(n, this._extent);
}, e.prototype.normalize = function(n) {
return pw(n, this._extent);
}, e.prototype.scale = function(n) {
return vw(n, this._extent);
}, e.prototype.setExtent = function(n, r) {
var i = this._extent;
isNaN(n) || (i[0] = parseFloat(n)), isNaN(r) || (i[1] = parseFloat(r));
}, e.prototype.unionExtent = function(n) {
var r = this._extent;
n[0] < r[0] && (r[0] = n[0]), n[1] > r[1] && (r[1] = n[1]), this.setExtent(r[0], r[1]);
}, e.prototype.getInterval = function() {
return this._interval;
}, e.prototype.setInterval = function(n) {
this._interval = n, this._niceExtent = this._extent.slice(), this._intervalPrecision = Zee(n);
}, e.prototype.getTicks = function(n) {
var r = this._interval, i = this._extent, a = this._niceExtent, o = this._intervalPrecision, s = [];
if (!r)
return s;
var l = 1e4;
i[0] < a[0] && (n ? s.push({
value: ic(a[0] - r, o)
}) : s.push({
value: i[0]
}));
for (var u = a[0]; u <= a[1] && (s.push({
value: u
}), u = ic(u + r, o), u !== s[s.length - 1].value); )
if (s.length > l)
return [];
var c = s.length ? s[s.length - 1].value : a[1];
return i[1] > c && (n ? s.push({
value: ic(c + r, o)
}) : s.push({
value: i[1]
})), s;
}, e.prototype.getMinorTicks = function(n) {
for (var r = this.getTicks(!0), i = [], a = this.getExtent(), o = 1; o < r.length; o++) {
for (var s = r[o], l = r[o - 1], u = 0, c = [], f = s.value - l.value, d = f / n; u < n - 1; ) {
var h = ic(l.value + (u + 1) * d);
h > a[0] && h < a[1] && c.push(h), u++;
}
i.push(c);
}
return i;
}, e.prototype.getLabel = function(n, r) {
if (n == null)
return "";
var i = r && r.precision;
i == null ? i = Ya(n.value) || 0 : i === "auto" && (i = this._intervalPrecision);
var a = ic(n.value, i, !0);
return JR(a);
}, e.prototype.calcNiceTicks = function(n, r, i) {
n = n || 5;
var a = this._extent, o = a[1] - a[0];
if (isFinite(o)) {
o < 0 && (o = -o, a.reverse());
var s = INe(a, n, r, i);
this._intervalPrecision = s.intervalPrecision, this._interval = s.interval, this._niceExtent = s.niceTickExtent;
}
}, e.prototype.calcNiceExtent = function(n) {
var r = this._extent;
if (r[0] === r[1])
if (r[0] !== 0) {
var i = Math.abs(r[0]);
n.fixMax || (r[1] += i / 2), r[0] -= i / 2;
} else
r[1] = 1;
var a = r[1] - r[0];
isFinite(a) || (r[0] = 0, r[1] = 1), this.calcNiceTicks(n.splitNumber, n.minInterval, n.maxInterval);
var o = this._interval;
n.fixMin || (r[0] = ic(Math.floor(r[0] / o) * o)), n.fixMax || (r[1] = ic(Math.ceil(r[1] / o) * o));
}, e.prototype.setNiceExtent = function(n, r) {
this._niceExtent = [n, r];
}, e.type = "interval", e;
}(fs)
);
fs.registerClass(qs);
var Uee = typeof Float32Array < "u", RNe = Uee ? Float32Array : Array;
function Wo(t) {
return ue(t) ? Uee ? new Float32Array(t) : t : new RNe(t);
}
var iE = "__ec_stack_";
function wk(t) {
return t.get("stack") || iE + t.seriesIndex;
}
function Ck(t) {
return t.dim + t.index;
}
function kNe(t) {
var e = [], n = t.axis, r = "axis0";
if (n.type === "category") {
for (var i = n.getBandWidth(), a = 0; a < t.count; a++)
e.push(Re({
bandWidth: i,
axisKey: r,
stackId: iE + a
}, t));
for (var o = qee(e), s = [], a = 0; a < t.count; a++) {
var l = o[r][iE + a];
l.offsetCenter = l.offset + l.width / 2, s.push(l);
}
return s;
}
}
function Xee(t, e) {
var n = [];
return e.eachSeriesByType(t, function(r) {
ete(r) && n.push(r);
}), n;
}
function LNe(t) {
var e = {};
k(t, function(l) {
var u = l.coordinateSystem, c = u.getBaseAxis();
if (!(c.type !== "time" && c.type !== "value"))
for (var f = l.getData(), d = c.dim + "_" + c.index, h = f.getDimensionIndex(f.mapDimension(c.dim)), p = f.getStore(), v = 0, g = p.count(); v < g; ++v) {
var m = p.get(h, v);
e[d] ? e[d].push(m) : e[d] = [m];
}
});
var n = {};
for (var r in e)
if (e.hasOwnProperty(r)) {
var i = e[r];
if (i) {
i.sort(function(l, u) {
return l - u;
});
for (var a = null, o = 1; o < i.length; ++o) {
var s = i[o] - i[o - 1];
s > 0 && (a = a === null ? s : Math.min(a, s));
}
n[r] = a;
}
}
return n;
}
function Yee(t) {
var e = LNe(t), n = [];
return k(t, function(r) {
var i = r.coordinateSystem, a = i.getBaseAxis(), o = a.getExtent(), s;
if (a.type === "category")
s = a.getBandWidth();
else if (a.type === "value" || a.type === "time") {
var l = a.dim + "_" + a.index, u = e[l], c = Math.abs(o[1] - o[0]), f = a.scale.getExtent(), d = Math.abs(f[1] - f[0]);
s = u ? c / d * u : c;
} else {
var h = r.getData();
s = Math.abs(o[1] - o[0]) / h.count();
}
var p = _e(r.get("barWidth"), s), v = _e(r.get("barMaxWidth"), s), g = _e(
// barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis,
// the auto-calculated bar width might be less than 0.5 / 1.
r.get("barMinWidth") || (tte(r) ? 0.5 : 1),
s
), m = r.get("barGap"), y = r.get("barCategoryGap");
n.push({
bandWidth: s,
barWidth: p,
barMaxWidth: v,
barMinWidth: g,
barGap: m,
barCategoryGap: y,
axisKey: Ck(a),
stackId: wk(r)
});
}), qee(n);
}
function qee(t) {
var e = {};
k(t, function(r, i) {
var a = r.axisKey, o = r.bandWidth, s = e[a] || {
bandWidth: o,
remainedWidth: o,
autoWidthCount: 0,
categoryGap: null,
gap: "20%",
stacks: {}
}, l = s.stacks;
e[a] = s;
var u = r.stackId;
l[u] || s.autoWidthCount++, l[u] = l[u] || {
width: 0,
maxWidth: 0
};
var c = r.barWidth;
c && !l[u].width && (l[u].width = c, c = Math.min(s.remainedWidth, c), s.remainedWidth -= c);
var f = r.barMaxWidth;
f && (l[u].maxWidth = f);
var d = r.barMinWidth;
d && (l[u].minWidth = d);
var h = r.barGap;
h != null && (s.gap = h);
var p = r.barCategoryGap;
p != null && (s.categoryGap = p);
});
var n = {};
return k(e, function(r, i) {
n[i] = {};
var a = r.stacks, o = r.bandWidth, s = r.categoryGap;
if (s == null) {
var l = st(a).length;
s = Math.max(35 - l * 4, 15) + "%";
}
var u = _e(s, o), c = _e(r.gap, 1), f = r.remainedWidth, d = r.autoWidthCount, h = (f - u) / (d + (d - 1) * c);
h = Math.max(h, 0), k(a, function(m) {
var y = m.maxWidth, b = m.minWidth;
if (m.width) {
var _ = m.width;
y && (_ = Math.min(_, y)), b && (_ = Math.max(_, b)), m.width = _, f -= _ + c * _, d--;
} else {
var _ = h;
y && y < _ && (_ = Math.min(y, f)), b && b > _ && (_ = b), _ !== h && (m.width = _, f -= _ + c * _, d--);
}
}), h = (f - u) / (d + (d - 1) * c), h = Math.max(h, 0);
var p = 0, v;
k(a, function(m, y) {
m.width || (m.width = h), v = m, p += m.width * (1 + c);
}), v && (p -= v.width * c);
var g = -p / 2;
k(a, function(m, y) {
n[i][y] = n[i][y] || {
bandWidth: o,
offset: g,
width: m.width
}, g += m.width * (1 + c);
});
}), n;
}
function NNe(t, e, n) {
if (t && e) {
var r = t[Ck(e)];
return r != null && n != null ? r[wk(n)] : r;
}
}
function Kee(t, e) {
var n = Xee(t, e), r = Yee(n);
k(n, function(i) {
var a = i.getData(), o = i.coordinateSystem, s = o.getBaseAxis(), l = wk(i), u = r[Ck(s)][l], c = u.offset, f = u.width;
a.setLayout({
bandWidth: u.bandWidth,
offset: c,
size: f
});
});
}
function Jee(t) {
return {
seriesType: t,
plan: Tp(),
reset: function(e) {
if (ete(e)) {
var n = e.getData(), r = e.coordinateSystem, i = r.getBaseAxis(), a = r.getOtherAxis(i), o = n.getDimensionIndex(n.mapDimension(a.dim)), s = n.getDimensionIndex(n.mapDimension(i.dim)), l = e.get("showBackground", !0), u = n.mapDimension(a.dim), c = n.getCalculationInfo("stackResultDimension"), f = Ys(n, u) && !!n.getCalculationInfo("stackedOnSeries"), d = a.isHorizontal(), h = BNe(i, a), p = tte(e), v = e.get("barMinHeight") || 0, g = c && n.getDimensionIndex(c), m = n.getLayout("size"), y = n.getLayout("offset");
return {
progress: function(b, _) {
for (var O = b.count, S = p && Wo(O * 3), x = p && l && Wo(O * 3), C = p && Wo(O), T = r.master.getRect(), w = d ? T.width : T.height, P, $ = _.getStore(), A = 0; (P = b.next()) != null; ) {
var D = $.get(f ? g : o, P), E = $.get(s, P), R = h, N = void 0;
f && (N = +D - $.get(o, P));
var V = void 0, B = void 0, W = void 0, F = void 0;
if (d) {
var Q = r.dataToPoint([D, E]);
if (f) {
var Z = r.dataToPoint([N, E]);
R = Z[0];
}
V = R, B = Q[1] + y, W = Q[0] - R, F = m, Math.abs(W) < v && (W = (W < 0 ? -1 : 1) * v);
} else {
var Q = r.dataToPoint([E, D]);
if (f) {
var Z = r.dataToPoint([E, N]);
R = Z[1];
}
V = Q[0] + y, B = R, W = m, F = Q[1] - R, Math.abs(F) < v && (F = (F <= 0 ? -1 : 1) * v);
}
p ? (S[A] = V, S[A + 1] = B, S[A + 2] = d ? W : F, x && (x[A] = d ? T.x : V, x[A + 1] = d ? B : T.y, x[A + 2] = w), C[P] = P) : _.setItemLayout(P, {
x: V,
y: B,
width: W,
height: F
}), A += 3;
}
p && _.setLayout({
largePoints: S,
largeDataIndices: C,
largeBackgroundPoints: x,
valueAxisHorizontal: d
});
}
};
}
}
};
}
function ete(t) {
return t.coordinateSystem && t.coordinateSystem.type === "cartesian2d";
}
function tte(t) {
return t.pipelineContext && t.pipelineContext.large;
}
function BNe(t, e) {
var n = e.model.get("startValue");
return n || (n = 0), e.toGlobalCoord(e.dataToCoord(e.type === "log" ? n > 0 ? n : 1 : n));
}
var zNe = function(t, e, n, r) {
for (; n < r; ) {
var i = n + r >>> 1;
t[i][1] < e ? n = i + 1 : r = i;
}
return n;
}, Tk = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "time", r;
}
return e.prototype.getLabel = function(n) {
var r = this.getSetting("useUTC");
return H0(n.value, XB[hLe(ah(this._minLevelUnit))] || XB.second, r, this.getSetting("locale"));
}, e.prototype.getFormattedLabel = function(n, r, i) {
var a = this.getSetting("useUTC"), o = this.getSetting("locale");
return pLe(n, r, i, o, a);
}, e.prototype.getTicks = function() {
var n = this._interval, r = this._extent, i = [];
if (!n)
return i;
i.push({
value: r[0],
level: 0
});
var a = this.getSetting("useUTC"), o = jNe(this._minLevelUnit, this._approxInterval, a, r);
return i = i.concat(o), i.push({
value: r[1],
level: 0
}), i;
}, e.prototype.calcNiceExtent = function(n) {
var r = this._extent;
if (r[0] === r[1] && (r[0] -= ma, r[1] += ma), r[1] === -1 / 0 && r[0] === 1 / 0) {
var i = /* @__PURE__ */ new Date();
r[1] = +new Date(i.getFullYear(), i.getMonth(), i.getDate()), r[0] = r[1] - ma;
}
this.calcNiceTicks(n.splitNumber, n.minInterval, n.maxInterval);
}, e.prototype.calcNiceTicks = function(n, r, i) {
n = n || 10;
var a = this._extent, o = a[1] - a[0];
this._approxInterval = o / n, r != null && this._approxInterval < r && (this._approxInterval = r), i != null && this._approxInterval > i && (this._approxInterval = i);
var s = pb.length, l = Math.min(zNe(pb, this._approxInterval, 0, s), s - 1);
this._interval = pb[l][1], this._minLevelUnit = pb[Math.max(l - 1, 0)][0];
}, e.prototype.parse = function(n) {
return St(n) ? n : +Ki(n);
}, e.prototype.contain = function(n) {
return hw(this.parse(n), this._extent);
}, e.prototype.normalize = function(n) {
return pw(this.parse(n), this._extent);
}, e.prototype.scale = function(n) {
return vw(n, this._extent);
}, e.type = "time", e;
}(qs)
), pb = [
// Format interval
["second", YR],
["minute", qR],
["hour", Ng],
["quarter-day", Ng * 6],
["half-day", Ng * 12],
["day", ma * 1.2],
["half-week", ma * 3.5],
["week", ma * 7],
["month", ma * 31],
["quarter", ma * 95],
["half-year", UB / 2],
["year", UB]
// 1Y
];
function VNe(t, e, n, r) {
var i = Ki(e), a = Ki(n), o = function(p) {
return YB(i, p, r) === YB(a, p, r);
}, s = function() {
return o("year");
}, l = function() {
return s() && o("month");
}, u = function() {
return l() && o("day");
}, c = function() {
return u() && o("hour");
}, f = function() {
return c() && o("minute");
}, d = function() {
return f() && o("second");
}, h = function() {
return d() && o("millisecond");
};
switch (t) {
case "year":
return s();
case "month":
return l();
case "day":
return u();
case "hour":
return c();
case "minute":
return f();
case "second":
return d();
case "millisecond":
return h();
}
}
function FNe(t, e) {
return t /= ma, t > 16 ? 16 : t > 7.5 ? 7 : t > 3.5 ? 4 : t > 1.5 ? 2 : 1;
}
function WNe(t) {
var e = 30 * ma;
return t /= e, t > 6 ? 6 : t > 3 ? 3 : t > 2 ? 2 : 1;
}
function QNe(t) {
return t /= Ng, t > 12 ? 12 : t > 6 ? 6 : t > 3.5 ? 4 : t > 2 ? 2 : 1;
}
function aV(t, e) {
return t /= e ? qR : YR, t > 30 ? 30 : t > 20 ? 20 : t > 15 ? 15 : t > 10 ? 10 : t > 5 ? 5 : t > 2 ? 2 : 1;
}
function HNe(t) {
return AR(t, !0);
}
function GNe(t, e, n) {
var r = new Date(t);
switch (ah(e)) {
case "year":
case "month":
r[_J(n)](0);
case "day":
r[OJ(n)](1);
case "hour":
r[SJ(n)](0);
case "minute":
r[xJ(n)](0);
case "second":
r[wJ(n)](0), r[CJ(n)](0);
}
return r.getTime();
}
function jNe(t, e, n, r) {
var i = 1e4, a = yJ, o = 0;
function s(w, P, $, A, D, E, R) {
for (var N = new Date(P), V = P, B = N[A](); V < $ && V <= r[1]; )
R.push({
value: V
}), B += w, N[D](B), V = N.getTime();
R.push({
value: V,
notAdd: !0
});
}
function l(w, P, $) {
var A = [], D = !P.length;
if (!VNe(ah(w), r[0], r[1], n)) {
D && (P = [{
// TODO Optimize. Not include so may ticks.
value: GNe(new Date(r[0]), w, n)
}, {
value: r[1]
}]);
for (var E = 0; E < P.length - 1; E++) {
var R = P[E].value, N = P[E + 1].value;
if (R !== N) {
var V = void 0, B = void 0, W = void 0, F = !1;
switch (w) {
case "year":
V = Math.max(1, Math.round(e / ma / 365)), B = KR(n), W = vLe(n);
break;
case "half-year":
case "quarter":
case "month":
V = WNe(e), B = oh(n), W = _J(n);
break;
case "week":
case "half-week":
case "day":
V = FNe(e), B = nw(n), W = OJ(n), F = !0;
break;
case "half-day":
case "quarter-day":
case "hour":
V = QNe(e), B = Am(n), W = SJ(n);
break;
case "minute":
V = aV(e, !0), B = rw(n), W = xJ(n);
break;
case "second":
V = aV(e, !1), B = iw(n), W = wJ(n);
break;
case "millisecond":
V = HNe(e), B = aw(n), W = CJ(n);
break;
}
s(V, R, N, B, W, F, A), w === "year" && $.length > 1 && E === 0 && $.unshift({
value: $[0].value - V
});
}
}
for (var E = 0; E < A.length; E++)
$.push(A[E]);
return A;
}
}
for (var u = [], c = [], f = 0, d = 0, h = 0; h < a.length && o++ < i; ++h) {
var p = ah(a[h]);
if (dLe(a[h])) {
l(a[h], u[u.length - 1] || [], c);
var v = a[h + 1] ? ah(a[h + 1]) : null;
if (p !== v) {
if (c.length) {
d = f, c.sort(function(w, P) {
return w.value - P.value;
});
for (var g = [], m = 0; m < c.length; ++m) {
var y = c[m].value;
(m === 0 || c[m - 1].value !== y) && (g.push(c[m]), y >= r[0] && y <= r[1] && f++);
}
var b = (r[1] - r[0]) / e;
if (f > b * 1.5 && d > b / 1.5 || (u.push(g), f > b || t === a[h]))
break;
}
c = [];
}
}
}
process.env.NODE_ENV !== "production" && o >= i && dn("Exceed safe limit.");
for (var _ = Nt(ce(u, function(w) {
return Nt(w, function(P) {
return P.value >= r[0] && P.value <= r[1] && !P.notAdd;
});
}), function(w) {
return w.length > 0;
}), O = [], S = _.length - 1, h = 0; h < _.length; ++h)
for (var x = _[h], C = 0; C < x.length; ++C)
O.push({
value: x[C].value,
level: S - h
});
O.sort(function(w, P) {
return w.value - P.value;
});
for (var T = [], h = 0; h < O.length; ++h)
(h === 0 || O[h].value !== O[h - 1].value) && T.push(O[h]);
return T;
}
fs.registerClass(Tk);
var oV = fs.prototype, Vg = qs.prototype, ZNe = mn, UNe = Math.floor, XNe = Math.ceil, vb = Math.pow, Ha = Math.log, Pk = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "log", n.base = 10, n._originalScale = new qs(), n._interval = 0, n;
}
return e.prototype.getTicks = function(n) {
var r = this._originalScale, i = this._extent, a = r.getExtent(), o = Vg.getTicks.call(this, n);
return ce(o, function(s) {
var l = s.value, u = mn(vb(this.base, l));
return u = l === i[0] && this._fixMin ? gb(u, a[0]) : u, u = l === i[1] && this._fixMax ? gb(u, a[1]) : u, {
value: u
};
}, this);
}, e.prototype.setExtent = function(n, r) {
var i = Ha(this.base);
n = Ha(Math.max(0, n)) / i, r = Ha(Math.max(0, r)) / i, Vg.setExtent.call(this, n, r);
}, e.prototype.getExtent = function() {
var n = this.base, r = oV.getExtent.call(this);
r[0] = vb(n, r[0]), r[1] = vb(n, r[1]);
var i = this._originalScale, a = i.getExtent();
return this._fixMin && (r[0] = gb(r[0], a[0])), this._fixMax && (r[1] = gb(r[1], a[1])), r;
}, e.prototype.unionExtent = function(n) {
this._originalScale.unionExtent(n);
var r = this.base;
n[0] = Ha(n[0]) / Ha(r), n[1] = Ha(n[1]) / Ha(r), oV.unionExtent.call(this, n);
}, e.prototype.unionExtentFromData = function(n, r) {
this.unionExtent(n.getApproximateExtent(r));
}, e.prototype.calcNiceTicks = function(n) {
n = n || 10;
var r = this._extent, i = r[1] - r[0];
if (!(i === 1 / 0 || i <= 0)) {
var a = uK(i), o = n / i * a;
for (o <= 0.5 && (a *= 10); !isNaN(a) && Math.abs(a) < 1 && Math.abs(a) > 0; )
a *= 10;
var s = [mn(XNe(r[0] / a) * a), mn(UNe(r[1] / a) * a)];
this._interval = a, this._niceExtent = s;
}
}, e.prototype.calcNiceExtent = function(n) {
Vg.calcNiceExtent.call(this, n), this._fixMin = n.fixMin, this._fixMax = n.fixMax;
}, e.prototype.parse = function(n) {
return n;
}, e.prototype.contain = function(n) {
return n = Ha(n) / Ha(this.base), hw(n, this._extent);
}, e.prototype.normalize = function(n) {
return n = Ha(n) / Ha(this.base), pw(n, this._extent);
}, e.prototype.scale = function(n) {
return n = vw(n, this._extent), vb(this.base, n);
}, e.type = "log", e;
}(fs)
), nte = Pk.prototype;
nte.getMinorTicks = Vg.getMinorTicks;
nte.getLabel = Vg.getLabel;
function gb(t, e) {
return ZNe(t, Ya(e));
}
fs.registerClass(Pk);
var YNe = (
/** @class */
function() {
function t(e, n, r) {
this._prepareParams(e, n, r);
}
return t.prototype._prepareParams = function(e, n, r) {
r[1] < r[0] && (r = [NaN, NaN]), this._dataMin = r[0], this._dataMax = r[1];
var i = this._isOrdinal = e.type === "ordinal";
this._needCrossZero = e.type === "interval" && n.getNeedCrossZero && n.getNeedCrossZero();
var a = n.get("min", !0);
a == null && (a = n.get("startValue", !0));
var o = this._modelMinRaw = a;
Me(o) ? this._modelMinNum = mb(e, o({
min: r[0],
max: r[1]
})) : o !== "dataMin" && (this._modelMinNum = mb(e, o));
var s = this._modelMaxRaw = n.get("max", !0);
if (Me(s) ? this._modelMaxNum = mb(e, s({
min: r[0],
max: r[1]
})) : s !== "dataMax" && (this._modelMaxNum = mb(e, s)), i)
this._axisDataLen = n.getCategories().length;
else {
var l = n.get("boundaryGap"), u = ue(l) ? l : [l || 0, l || 0];
typeof u[0] == "boolean" || typeof u[1] == "boolean" ? (process.env.NODE_ENV !== "production" && console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'), this._boundaryGapInner = [0, 0]) : this._boundaryGapInner = [lo(u[0], 1), lo(u[1], 1)];
}
}, t.prototype.calculate = function() {
var e = this._isOrdinal, n = this._dataMin, r = this._dataMax, i = this._axisDataLen, a = this._boundaryGapInner, o = e ? null : r - n || Math.abs(n), s = this._modelMinRaw === "dataMin" ? n : this._modelMinNum, l = this._modelMaxRaw === "dataMax" ? r : this._modelMaxNum, u = s != null, c = l != null;
s == null && (s = e ? i ? 0 : NaN : n - a[0] * o), l == null && (l = e ? i ? i - 1 : NaN : r + a[1] * o), (s == null || !isFinite(s)) && (s = NaN), (l == null || !isFinite(l)) && (l = NaN);
var f = ou(s) || ou(l) || e && !i;
this._needCrossZero && (s > 0 && l > 0 && !u && (s = 0), s < 0 && l < 0 && !c && (l = 0));
var d = this._determinedMin, h = this._determinedMax;
return d != null && (s = d, u = !0), h != null && (l = h, c = !0), {
min: s,
max: l,
minFixed: u,
maxFixed: c,
isBlank: f
};
}, t.prototype.modifyDataMinMax = function(e, n) {
process.env.NODE_ENV !== "production" && ke(!this.frozen), this[KNe[e]] = n;
}, t.prototype.setDeterminedMinMax = function(e, n) {
var r = qNe[e];
process.env.NODE_ENV !== "production" && ke(!this.frozen && this[r] == null), this[r] = n;
}, t.prototype.freeze = function() {
this.frozen = !0;
}, t;
}()
), qNe = {
min: "_determinedMin",
max: "_determinedMax"
}, KNe = {
min: "_dataMin",
max: "_dataMax"
};
function rte(t, e, n) {
var r = t.rawExtentInfo;
return r || (r = new YNe(t, e, n), t.rawExtentInfo = r, r);
}
function mb(t, e) {
return e == null ? null : ou(e) ? NaN : t.parse(e);
}
function ite(t, e) {
var n = t.type, r = rte(t, e, t.getExtent()).calculate();
t.setBlank(r.isBlank);
var i = r.min, a = r.max, o = e.ecModel;
if (o && n === "time") {
var s = Xee("bar", o), l = !1;
if (k(s, function(f) {
l = l || f.getBaseAxis() === e.axis;
}), l) {
var u = Yee(s), c = JNe(i, a, e, u);
i = c.min, a = c.max;
}
}
return {
extent: [i, a],
// "fix" means "fixed", the value should not be
// changed in the subsequent steps.
fixMin: r.minFixed,
fixMax: r.maxFixed
};
}
function JNe(t, e, n, r) {
var i = n.axis.getExtent(), a = i[1] - i[0], o = NNe(r, n.axis);
if (o === void 0)
return {
min: t,
max: e
};
var s = 1 / 0;
k(o, function(h) {
s = Math.min(h.offset, s);
});
var l = -1 / 0;
k(o, function(h) {
l = Math.max(h.offset + h.width, l);
}), s = Math.abs(s), l = Math.abs(l);
var u = s + l, c = e - t, f = 1 - (s + l) / a, d = c / f - c;
return e += d * (l / u), t -= d * (s / u), {
min: t,
max: e
};
}
function Sf(t, e) {
var n = e, r = ite(t, n), i = r.extent, a = n.get("splitNumber");
t instanceof Pk && (t.base = n.get("logBase"));
var o = t.type, s = n.get("interval"), l = o === "interval" || o === "time";
t.setExtent(i[0], i[1]), t.calcNiceExtent({
splitNumber: a,
fixMin: r.fixMin,
fixMax: r.fixMax,
minInterval: l ? n.get("minInterval") : null,
maxInterval: l ? n.get("maxInterval") : null
}), s != null && t.setInterval && t.setInterval(s);
}
function j0(t, e) {
if (e = e || t.get("type"), e)
switch (e) {
case "category":
return new gw({
ordinalMeta: t.getOrdinalMeta ? t.getOrdinalMeta() : t.getCategories(),
extent: [1 / 0, -1 / 0]
});
case "time":
return new Tk({
locale: t.ecModel.getLocaleModel(),
useUTC: t.ecModel.get("useUTC")
});
default:
return new (fs.getClass(e) || qs)();
}
}
function e5e(t) {
var e = t.scale.getExtent(), n = e[0], r = e[1];
return !(n > 0 && r > 0 || n < 0 && r < 0);
}
function Ep(t) {
var e = t.getLabelModel().get("formatter"), n = t.type === "category" ? t.scale.getExtent()[0] : null;
return t.scale.type === "time" ? /* @__PURE__ */ function(r) {
return function(i, a) {
return t.scale.getFormattedLabel(i, a, r);
};
}(e) : Oe(e) ? /* @__PURE__ */ function(r) {
return function(i) {
var a = t.scale.getLabel(i), o = r.replace("{value}", a ?? "");
return o;
};
}(e) : Me(e) ? /* @__PURE__ */ function(r) {
return function(i, a) {
return n != null && (a = i.value - n), r($k(t, i), a, i.level != null ? {
level: i.level
} : null);
};
}(e) : function(r) {
return t.scale.getLabel(r);
};
}
function $k(t, e) {
return t.type === "category" ? t.scale.getLabel(e) : e.value;
}
function t5e(t) {
var e = t.model, n = t.scale;
if (!(!e.get(["axisLabel", "show"]) || n.isBlank())) {
var r, i, a = n.getExtent();
n instanceof gw ? i = n.count() : (r = n.getTicks(), i = r.length);
var o = t.getLabelModel(), s = Ep(t), l, u = 1;
i > 40 && (u = Math.ceil(i / 40));
for (var c = 0; c < i; c += u) {
var f = r ? r[c] : {
value: a[0] + c
}, d = s(f, c), h = o.getTextRect(d), p = n5e(h, o.get("rotate") || 0);
l ? l.union(p) : l = p;
}
return l;
}
}
function n5e(t, e) {
var n = e * Math.PI / 180, r = t.width, i = t.height, a = r * Math.abs(Math.cos(n)) + Math.abs(i * Math.sin(n)), o = r * Math.abs(Math.sin(n)) + Math.abs(i * Math.cos(n)), s = new Je(t.x, t.y, a, o);
return s;
}
function Ak(t) {
var e = t.get("interval");
return e ?? "auto";
}
function ate(t) {
return t.type === "category" && Ak(t.getLabelModel()) === 0;
}
function PO(t, e) {
var n = {};
return k(t.mapDimensionsAll(e), function(r) {
n[xk(t, r)] = !0;
}), st(n);
}
function r5e(t, e, n) {
e && k(PO(e, n), function(r) {
var i = e.getApproximateExtent(r);
i[0] < t[0] && (t[0] = i[0]), i[1] > t[1] && (t[1] = i[1]);
});
}
var Mp = (
/** @class */
function() {
function t() {
}
return t.prototype.getNeedCrossZero = function() {
var e = this.option;
return !e.scale;
}, t.prototype.getCoordSysModel = function() {
}, t;
}()
);
function i5e(t) {
return cs(null, t);
}
var a5e = {
isDimensionStacked: Ys,
enableDataStack: jee,
getStackedDimension: xk
};
function o5e(t, e) {
var n = e;
e instanceof Wt || (n = new Wt(e));
var r = j0(n);
return r.setExtent(t[0], t[1]), Sf(r, n), r;
}
function s5e(t) {
xn(t, Mp);
}
function l5e(t, e) {
return e = e || {}, Zt(t, null, null, e.state !== "normal");
}
const u5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
createDimensions: mNe,
createList: i5e,
createScale: o5e,
createSymbol: $n,
createTextStyle: l5e,
dataStack: a5e,
enableHoverEmphasis: Yl,
getECData: Fe,
getLayoutRect: Rn,
mixinAxisModelCommonMethods: s5e
}, Symbol.toStringTag, { value: "Module" }));
var c5e = 1e-8;
function sV(t, e) {
return Math.abs(t - e) < c5e;
}
function Sc(t, e, n) {
var r = 0, i = t[0];
if (!i)
return !1;
for (var a = 1; a < t.length; a++) {
var o = t[a];
r += Ss(i[0], i[1], o[0], o[1], e, n), i = o;
}
var s = t[0];
return (!sV(i[0], s[0]) || !sV(i[1], s[1])) && (r += Ss(i[0], i[1], s[0], s[1], e, n)), r !== 0;
}
var f5e = [];
function ZT(t, e) {
for (var n = 0; n < t.length; n++)
ar(t[n], t[n], e);
}
function lV(t, e, n, r) {
for (var i = 0; i < t.length; i++) {
var a = t[i];
r && (a = r.project(a)), a && isFinite(a[0]) && isFinite(a[1]) && ($s(e, e, a), As(n, n, a));
}
}
function d5e(t) {
for (var e = 0, n = 0, r = 0, i = t.length, a = t[i - 1][0], o = t[i - 1][1], s = 0; s < i; s++) {
var l = t[s][0], u = t[s][1], c = a * u - l * o;
e += c, n += (a + l) * c, r += (o + u) * c, a = l, o = u;
}
return e ? [n / e / 3, r / e / 3, e] : [t[0][0] || 0, t[0][1] || 0];
}
var ote = (
/** @class */
function() {
function t(e) {
this.name = e;
}
return t.prototype.setCenter = function(e) {
this._center = e;
}, t.prototype.getCenter = function() {
var e = this._center;
return e || (e = this._center = this.calcCenter()), e;
}, t;
}()
), uV = (
/** @class */
/* @__PURE__ */ function() {
function t(e, n) {
this.type = "polygon", this.exterior = e, this.interiors = n;
}
return t;
}()
), cV = (
/** @class */
/* @__PURE__ */ function() {
function t(e) {
this.type = "linestring", this.points = e;
}
return t;
}()
), ste = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this, n) || this;
return a.type = "geoJSON", a.geometries = r, a._center = i && [i[0], i[1]], a;
}
return e.prototype.calcCenter = function() {
for (var n = this.geometries, r, i = 0, a = 0; a < n.length; a++) {
var o = n[a], s = o.exterior, l = s && s.length;
l > i && (r = o, i = l);
}
if (r)
return d5e(r.exterior);
var u = this.getBoundingRect();
return [u.x + u.width / 2, u.y + u.height / 2];
}, e.prototype.getBoundingRect = function(n) {
var r = this._rect;
if (r && !n)
return r;
var i = [1 / 0, 1 / 0], a = [-1 / 0, -1 / 0], o = this.geometries;
return k(o, function(s) {
s.type === "polygon" ? lV(s.exterior, i, a, n) : k(s.points, function(l) {
lV(l, i, a, n);
});
}), isFinite(i[0]) && isFinite(i[1]) && isFinite(a[0]) && isFinite(a[1]) || (i[0] = i[1] = a[0] = a[1] = 0), r = new Je(i[0], i[1], a[0] - i[0], a[1] - i[1]), n || (this._rect = r), r;
}, e.prototype.contain = function(n) {
var r = this.getBoundingRect(), i = this.geometries;
if (!r.contain(n[0], n[1]))
return !1;
e: for (var a = 0, o = i.length; a < o; a++) {
var s = i[a];
if (s.type === "polygon") {
var l = s.exterior, u = s.interiors;
if (Sc(l, n[0], n[1])) {
for (var c = 0; c < (u ? u.length : 0); c++)
if (Sc(u[c], n[0], n[1]))
continue e;
return !0;
}
}
}
return !1;
}, e.prototype.transformTo = function(n, r, i, a) {
var o = this.getBoundingRect(), s = o.width / o.height;
i ? a || (a = i / s) : i = s * a;
for (var l = new Je(n, r, i, a), u = o.calculateTransform(l), c = this.geometries, f = 0; f < c.length; f++) {
var d = c[f];
d.type === "polygon" ? (ZT(d.exterior, u), k(d.interiors, function(h) {
ZT(h, u);
})) : k(d.points, function(h) {
ZT(h, u);
});
}
o = this._rect, o.copy(l), this._center = [o.x + o.width / 2, o.y + o.height / 2];
}, e.prototype.cloneShallow = function(n) {
n == null && (n = this.name);
var r = new e(n, this.geometries, this._center);
return r._rect = this._rect, r.transformTo = null, r;
}, e;
}(ote)
), h5e = (
/** @class */
function(t) {
q(e, t);
function e(n, r) {
var i = t.call(this, n) || this;
return i.type = "geoSVG", i._elOnlyForCalculate = r, i;
}
return e.prototype.calcCenter = function() {
for (var n = this._elOnlyForCalculate, r = n.getBoundingRect(), i = [r.x + r.width / 2, r.y + r.height / 2], a = R0(f5e), o = n; o && !o.isGeoSVGGraphicRoot; )
Xo(a, o.getLocalTransform(), a), o = o.parent;
return Lf(a, a), ar(i, i, a), i;
}, e;
}(ote)
);
function p5e(t) {
if (!t.UTF8Encoding)
return t;
var e = t, n = e.UTF8Scale;
n == null && (n = 1024);
var r = e.features;
return k(r, function(i) {
var a = i.geometry, o = a.encodeOffsets, s = a.coordinates;
if (o)
switch (a.type) {
case "LineString":
a.coordinates = lte(s, o, n);
break;
case "Polygon":
UT(s, o, n);
break;
case "MultiLineString":
UT(s, o, n);
break;
case "MultiPolygon":
k(s, function(l, u) {
return UT(l, o[u], n);
});
}
}), e.UTF8Encoding = !1, e;
}
function UT(t, e, n) {
for (var r = 0; r < t.length; r++)
t[r] = lte(t[r], e[r], n);
}
function lte(t, e, n) {
for (var r = [], i = e[0], a = e[1], o = 0; o < t.length; o += 2) {
var s = t.charCodeAt(o) - 64, l = t.charCodeAt(o + 1) - 64;
s = s >> 1 ^ -(s & 1), l = l >> 1 ^ -(l & 1), s += i, l += a, i = s, a = l, r.push([s / n, l / n]);
}
return r;
}
function aE(t, e) {
return t = p5e(t), ce(Nt(t.features, function(n) {
return n.geometry && n.properties && n.geometry.coordinates.length > 0;
}), function(n) {
var r = n.properties, i = n.geometry, a = [];
switch (i.type) {
case "Polygon":
var o = i.coordinates;
a.push(new uV(o[0], o.slice(1)));
break;
case "MultiPolygon":
k(i.coordinates, function(l) {
l[0] && a.push(new uV(l[0], l.slice(1)));
});
break;
case "LineString":
a.push(new cV([i.coordinates]));
break;
case "MultiLineString":
a.push(new cV(i.coordinates));
}
var s = new ste(r[e || "name"], a, r.cp);
return s.properties = r, s;
});
}
const v5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
MAX_SAFE_INTEGER: TA,
asc: Wi,
getPercentWithPrecision: VDe,
getPixelPrecision: PR,
getPrecision: Ya,
getPrecisionSafe: oO,
isNumeric: Wx,
isRadianAroundZero: Fh,
linearMap: Lt,
nice: AR,
numericToNumber: as,
parseDate: Ki,
quantile: V_,
quantity: uK,
quantityExponent: N0,
reformIntervals: PA,
remRadian: $R,
round: mn
}, Symbol.toStringTag, { value: "Module" })), g5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
format: H0,
parse: Ki
}, Symbol.toStringTag, { value: "Module" })), m5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
Arc: qx,
BezierCurve: F0,
BoundingRect: Je,
Circle: ul,
CompoundPath: Kx,
Ellipse: Yx,
Group: Ve,
Image: lr,
IncrementalDisplayable: aJ,
Line: Un,
LinearGradient: yp,
Polygon: ai,
Polyline: oi,
RadialGradient: FR,
Rect: mt,
Ring: V0,
Sector: ii,
Text: gt,
clipPointsByRect: GR,
clipRectByRect: cJ,
createIcon: _p,
extendPath: lJ,
extendShape: sJ,
getShapeClass: Jx,
getTransform: ql,
initProps: Yt,
makeImage: QR,
makePath: W0,
mergePath: Bi,
registerShape: Na,
resizePath: HR,
updateProps: Ct
}, Symbol.toStringTag, { value: "Module" })), y5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
addCommas: JR,
capitalFirst: bLe,
encodeHTML: jr,
formatTime: yLe,
formatTpl: tk,
getTextRect: gLe,
getTooltipMarker: TJ,
normalizeCssArray: zf,
toCamelCase: ek,
truncateText: _K
}, Symbol.toStringTag, { value: "Module" })), b5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
bind: xe,
clone: Le,
curry: Ue,
defaults: Re,
each: k,
extend: le,
filter: Nt,
indexOf: et,
inherits: yR,
isArray: ue,
isFunction: Me,
isObject: Ie,
isString: Oe,
map: ce,
merge: qe,
reduce: Ma
}, Symbol.toStringTag, { value: "Module" }));
var km = bt();
function ute(t, e) {
var n = ce(e, function(r) {
return t.scale.parse(r);
});
return t.type === "time" && n.length > 0 && (n.sort(), n.unshift(n[0]), n.push(n[n.length - 1])), n;
}
function _5e(t) {
var e = t.getLabelModel().get("customValues");
if (e) {
var n = Ep(t);
return {
labels: ute(t, e).map(function(r) {
var i = {
value: r
};
return {
formattedLabel: n(i),
rawLabel: t.scale.getLabel(i),
tickValue: r
};
})
};
}
return t.type === "category" ? S5e(t) : w5e(t);
}
function O5e(t, e) {
var n = t.getTickModel().get("customValues");
return n ? {
ticks: ute(t, n)
} : t.type === "category" ? x5e(t, e) : {
ticks: ce(t.scale.getTicks(), function(r) {
return r.value;
})
};
}
function S5e(t) {
var e = t.getLabelModel(), n = cte(t, e);
return !e.get("show") || t.scale.isBlank() ? {
labels: [],
labelCategoryInterval: n.labelCategoryInterval
} : n;
}
function cte(t, e) {
var n = fte(t, "labels"), r = Ak(e), i = dte(n, r);
if (i)
return i;
var a, o;
return Me(r) ? a = vte(t, r) : (o = r === "auto" ? C5e(t) : r, a = pte(t, o)), hte(n, r, {
labels: a,
labelCategoryInterval: o
});
}
function x5e(t, e) {
var n = fte(t, "ticks"), r = Ak(e), i = dte(n, r);
if (i)
return i;
var a, o;
if ((!e.get("show") || t.scale.isBlank()) && (a = []), Me(r))
a = vte(t, r, !0);
else if (r === "auto") {
var s = cte(t, t.getLabelModel());
o = s.labelCategoryInterval, a = ce(s.labels, function(l) {
return l.tickValue;
});
} else
o = r, a = pte(t, o, !0);
return hte(n, r, {
ticks: a,
tickCategoryInterval: o
});
}
function w5e(t) {
var e = t.scale.getTicks(), n = Ep(t);
return {
labels: ce(e, function(r, i) {
return {
level: r.level,
formattedLabel: n(r, i),
rawLabel: t.scale.getLabel(r),
tickValue: r.value
};
})
};
}
function fte(t, e) {
return km(t)[e] || (km(t)[e] = []);
}
function dte(t, e) {
for (var n = 0; n < t.length; n++)
if (t[n].key === e)
return t[n].value;
}
function hte(t, e, n) {
return t.push({
key: e,
value: n
}), n;
}
function C5e(t) {
var e = km(t).autoInterval;
return e ?? (km(t).autoInterval = t.calculateCategoryInterval());
}
function T5e(t) {
var e = P5e(t), n = Ep(t), r = (e.axisRotate - e.labelRotate) / 180 * Math.PI, i = t.scale, a = i.getExtent(), o = i.count();
if (a[1] - a[0] < 1)
return 0;
var s = 1;
o > 40 && (s = Math.max(1, Math.floor(o / 40)));
for (var l = a[0], u = t.dataToCoord(l + 1) - t.dataToCoord(l), c = Math.abs(u * Math.cos(r)), f = Math.abs(u * Math.sin(r)), d = 0, h = 0; l <= a[1]; l += s) {
var p = 0, v = 0, g = L0(n({
value: l
}), e.font, "center", "top");
p = g.width * 1.3, v = g.height * 1.3, d = Math.max(d, p, 7), h = Math.max(h, v, 7);
}
var m = d / c, y = h / f;
isNaN(m) && (m = 1 / 0), isNaN(y) && (y = 1 / 0);
var b = Math.max(0, Math.floor(Math.min(m, y))), _ = km(t.model), O = t.getExtent(), S = _.lastAutoInterval, x = _.lastTickCount;
return S != null && x != null && Math.abs(S - b) <= 1 && Math.abs(x - o) <= 1 && S > b && _.axisExtent0 === O[0] && _.axisExtent1 === O[1] ? b = S : (_.lastTickCount = o, _.lastAutoInterval = b, _.axisExtent0 = O[0], _.axisExtent1 = O[1]), b;
}
function P5e(t) {
var e = t.getLabelModel();
return {
axisRotate: t.getRotate ? t.getRotate() : t.isHorizontal && !t.isHorizontal() ? 90 : 0,
labelRotate: e.get("rotate") || 0,
font: e.getFont()
};
}
function pte(t, e, n) {
var r = Ep(t), i = t.scale, a = i.getExtent(), o = t.getLabelModel(), s = [], l = Math.max((e || 0) + 1, 1), u = a[0], c = i.count();
u !== 0 && l > 1 && c / l > 2 && (u = Math.round(Math.ceil(u / l) * l));
var f = ate(t), d = o.get("showMinLabel") || f, h = o.get("showMaxLabel") || f;
d && u !== a[0] && v(a[0]);
for (var p = u; p <= a[1]; p += l)
v(p);
h && p - l !== a[1] && v(a[1]);
function v(g) {
var m = {
value: g
};
s.push(n ? g : {
formattedLabel: r(m),
rawLabel: i.getLabel(m),
tickValue: g
});
}
return s;
}
function vte(t, e, n) {
var r = t.scale, i = Ep(t), a = [];
return k(r.getTicks(), function(o) {
var s = r.getLabel(o), l = o.value;
e(o.value, s) && a.push(n ? l : {
formattedLabel: i(o),
rawLabel: s,
tickValue: l
});
}), a;
}
var fV = [0, 1], $5e = (
/** @class */
function() {
function t(e, n, r) {
this.onBand = !1, this.inverse = !1, this.dim = e, this.scale = n, this._extent = r || [0, 0];
}
return t.prototype.contain = function(e) {
var n = this._extent, r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return e >= r && e <= i;
}, t.prototype.containData = function(e) {
return this.scale.contain(e);
}, t.prototype.getExtent = function() {
return this._extent.slice();
}, t.prototype.getPixelPrecision = function(e) {
return PR(e || this.scale.getExtent(), this._extent);
}, t.prototype.setExtent = function(e, n) {
var r = this._extent;
r[0] = e, r[1] = n;
}, t.prototype.dataToCoord = function(e, n) {
var r = this._extent, i = this.scale;
return e = i.normalize(e), this.onBand && i.type === "ordinal" && (r = r.slice(), dV(r, i.count())), Lt(e, fV, r, n);
}, t.prototype.coordToData = function(e, n) {
var r = this._extent, i = this.scale;
this.onBand && i.type === "ordinal" && (r = r.slice(), dV(r, i.count()));
var a = Lt(e, r, fV, n);
return this.scale.scale(a);
}, t.prototype.pointToData = function(e, n) {
}, t.prototype.getTicksCoords = function(e) {
e = e || {};
var n = e.tickModel || this.getTickModel(), r = O5e(this, n), i = r.ticks, a = ce(i, function(s) {
return {
coord: this.dataToCoord(this.scale.type === "ordinal" ? this.scale.getRawOrdinalNumber(s) : s),
tickValue: s
};
}, this), o = n.get("alignWithLabel");
return A5e(this, a, o, e.clamp), a;
}, t.prototype.getMinorTicksCoords = function() {
if (this.scale.type === "ordinal")
return [];
var e = this.model.getModel("minorTick"), n = e.get("splitNumber");
n > 0 && n < 100 || (n = 5);
var r = this.scale.getMinorTicks(n), i = ce(r, function(a) {
return ce(a, function(o) {
return {
coord: this.dataToCoord(o),
tickValue: o
};
}, this);
}, this);
return i;
}, t.prototype.getViewLabels = function() {
return _5e(this).labels;
}, t.prototype.getLabelModel = function() {
return this.model.getModel("axisLabel");
}, t.prototype.getTickModel = function() {
return this.model.getModel("axisTick");
}, t.prototype.getBandWidth = function() {
var e = this._extent, n = this.scale.getExtent(), r = n[1] - n[0] + (this.onBand ? 1 : 0);
r === 0 && (r = 1);
var i = Math.abs(e[1] - e[0]);
return Math.abs(i) / r;
}, t.prototype.calculateCategoryInterval = function() {
return T5e(this);
}, t;
}()
);
function dV(t, e) {
var n = t[1] - t[0], r = e, i = n / r / 2;
t[0] += i, t[1] -= i;
}
function A5e(t, e, n, r) {
var i = e.length;
if (!t.onBand || n || !i)
return;
var a = t.getExtent(), o, s;
if (i === 1)
e[0].coord = a[0], o = e[1] = {
coord: a[1]
};
else {
var l = e[i - 1].tickValue - e[0].tickValue, u = (e[i - 1].coord - e[0].coord) / l;
k(e, function(h) {
h.coord -= u / 2;
});
var c = t.scale.getExtent();
s = 1 + c[1] - e[i - 1].tickValue, o = {
coord: e[i - 1].coord + u * s
}, e.push(o);
}
var f = a[0] > a[1];
d(e[0].coord, a[0]) && (r ? e[0].coord = a[0] : e.shift()), r && d(a[0], e[0].coord) && e.unshift({
coord: a[0]
}), d(a[1], o.coord) && (r ? o.coord = a[1] : e.pop()), r && d(o.coord, a[1]) && e.push({
coord: a[1]
});
function d(h, p) {
return h = mn(h), p = mn(p), f ? h > p : h < p;
}
}
const Va = $5e;
function E5e(t) {
var e = rt.extend(t);
return rt.registerClass(e), e;
}
function M5e(t) {
var e = Xt.extend(t);
return Xt.registerClass(e), e;
}
function I5e(t) {
var e = Ht.extend(t);
return Ht.registerClass(e), e;
}
function D5e(t) {
var e = zt.extend(t);
return zt.registerClass(e), e;
}
var _v = Math.PI * 2, ac = os.CMD, R5e = ["top", "right", "bottom", "left"];
function k5e(t, e, n, r, i) {
var a = n.width, o = n.height;
switch (t) {
case "top":
r.set(n.x + a / 2, n.y - e), i.set(0, -1);
break;
case "bottom":
r.set(n.x + a / 2, n.y + o + e), i.set(0, 1);
break;
case "left":
r.set(n.x - e, n.y + o / 2), i.set(-1, 0);
break;
case "right":
r.set(n.x + a + e, n.y + o / 2), i.set(1, 0);
break;
}
}
function L5e(t, e, n, r, i, a, o, s, l) {
o -= t, s -= e;
var u = Math.sqrt(o * o + s * s);
o /= u, s /= u;
var c = o * n + t, f = s * n + e;
if (Math.abs(r - i) % _v < 1e-4)
return l[0] = c, l[1] = f, u - n;
if (a) {
var d = r;
r = Qi(i), i = Qi(d);
} else
r = Qi(r), i = Qi(i);
r > i && (i += _v);
var h = Math.atan2(s, o);
if (h < 0 && (h += _v), h >= r && h <= i || h + _v >= r && h + _v <= i)
return l[0] = c, l[1] = f, u - n;
var p = n * Math.cos(r) + t, v = n * Math.sin(r) + e, g = n * Math.cos(i) + t, m = n * Math.sin(i) + e, y = (p - o) * (p - o) + (v - s) * (v - s), b = (g - o) * (g - o) + (m - s) * (m - s);
return y < b ? (l[0] = p, l[1] = v, Math.sqrt(y)) : (l[0] = g, l[1] = m, Math.sqrt(b));
}
function $O(t, e, n, r, i, a, o, s) {
var l = i - t, u = a - e, c = n - t, f = r - e, d = Math.sqrt(c * c + f * f);
c /= d, f /= d;
var h = l * c + u * f, p = h / d;
s && (p = Math.min(Math.max(p, 0), 1)), p *= d;
var v = o[0] = t + p * c, g = o[1] = e + p * f;
return Math.sqrt((v - i) * (v - i) + (g - a) * (g - a));
}
function gte(t, e, n, r, i, a, o) {
n < 0 && (t = t + n, n = -n), r < 0 && (e = e + r, r = -r);
var s = t + n, l = e + r, u = o[0] = Math.min(Math.max(i, t), s), c = o[1] = Math.min(Math.max(a, e), l);
return Math.sqrt((u - i) * (u - i) + (c - a) * (c - a));
}
var Xa = [];
function N5e(t, e, n) {
var r = gte(e.x, e.y, e.width, e.height, t.x, t.y, Xa);
return n.set(Xa[0], Xa[1]), r;
}
function B5e(t, e, n) {
for (var r = 0, i = 0, a = 0, o = 0, s, l, u = 1 / 0, c = e.data, f = t.x, d = t.y, h = 0; h < c.length; ) {
var p = c[h++];
h === 1 && (r = c[h], i = c[h + 1], a = r, o = i);
var v = u;
switch (p) {
case ac.M:
a = c[h++], o = c[h++], r = a, i = o;
break;
case ac.L:
v = $O(r, i, c[h], c[h + 1], f, d, Xa, !0), r = c[h++], i = c[h++];
break;
case ac.C:
v = Fq(r, i, c[h++], c[h++], c[h++], c[h++], c[h], c[h + 1], f, d, Xa), r = c[h++], i = c[h++];
break;
case ac.Q:
v = Qq(r, i, c[h++], c[h++], c[h], c[h + 1], f, d, Xa), r = c[h++], i = c[h++];
break;
case ac.A:
var g = c[h++], m = c[h++], y = c[h++], b = c[h++], _ = c[h++], O = c[h++];
h += 1;
var S = !!(1 - c[h++]);
s = Math.cos(_) * y + g, l = Math.sin(_) * b + m, h <= 1 && (a = s, o = l);
var x = (f - g) * b / y + g;
v = L5e(g, m, b, _, _ + O, S, x, d, Xa), r = Math.cos(_ + O) * y + g, i = Math.sin(_ + O) * b + m;
break;
case ac.R:
a = r = c[h++], o = i = c[h++];
var C = c[h++], T = c[h++];
v = gte(a, o, C, T, f, d, Xa);
break;
case ac.Z:
v = $O(r, i, a, o, f, d, Xa, !0), r = a, i = o;
break;
}
v < u && (u = v, n.set(Xa[0], Xa[1]));
}
return u;
}
var qa = new Ke(), Ut = new Ke(), wn = new Ke(), Qo = new Ke(), No = new Ke();
function hV(t, e) {
if (t) {
var n = t.getTextGuideLine(), r = t.getTextContent();
if (r && n) {
var i = t.textGuideLineConfig || {}, a = [[0, 0], [0, 0], [0, 0]], o = i.candidates || R5e, s = r.getBoundingRect().clone();
s.applyTransform(r.getComputedTransform());
var l = 1 / 0, u = i.anchor, c = t.getComputedTransform(), f = c && Lf([], c), d = e.get("length2") || 0;
u && wn.copy(u);
for (var h = 0; h < o.length; h++) {
var p = o[h];
k5e(p, 0, s, qa, Qo), Ke.scaleAndAdd(Ut, qa, Qo, d), Ut.transform(f);
var v = t.getBoundingRect(), g = u ? u.distance(Ut) : t instanceof ot ? B5e(Ut, t.path, wn) : N5e(Ut, v, wn);
g < l && (l = g, Ut.transform(c), wn.transform(c), wn.toArray(a[0]), Ut.toArray(a[1]), qa.toArray(a[2]));
}
mte(a, e.get("minTurnAngle")), n.setShape({
points: a
});
}
}
}
var AO = [], Gr = new Ke();
function mte(t, e) {
if (e <= 180 && e > 0) {
e = e / 180 * Math.PI, qa.fromArray(t[0]), Ut.fromArray(t[1]), wn.fromArray(t[2]), Ke.sub(Qo, qa, Ut), Ke.sub(No, wn, Ut);
var n = Qo.len(), r = No.len();
if (!(n < 1e-3 || r < 1e-3)) {
Qo.scale(1 / n), No.scale(1 / r);
var i = Qo.dot(No), a = Math.cos(e);
if (a < i) {
var o = $O(Ut.x, Ut.y, wn.x, wn.y, qa.x, qa.y, AO, !1);
Gr.fromArray(AO), Gr.scaleAndAdd(No, o / Math.tan(Math.PI - e));
var s = wn.x !== Ut.x ? (Gr.x - Ut.x) / (wn.x - Ut.x) : (Gr.y - Ut.y) / (wn.y - Ut.y);
if (isNaN(s))
return;
s < 0 ? Ke.copy(Gr, Ut) : s > 1 && Ke.copy(Gr, wn), Gr.toArray(t[1]);
}
}
}
}
function z5e(t, e, n) {
if (n <= 180 && n > 0) {
n = n / 180 * Math.PI, qa.fromArray(t[0]), Ut.fromArray(t[1]), wn.fromArray(t[2]), Ke.sub(Qo, Ut, qa), Ke.sub(No, wn, Ut);
var r = Qo.len(), i = No.len();
if (!(r < 1e-3 || i < 1e-3)) {
Qo.scale(1 / r), No.scale(1 / i);
var a = Qo.dot(e), o = Math.cos(n);
if (a < o) {
var s = $O(Ut.x, Ut.y, wn.x, wn.y, qa.x, qa.y, AO, !1);
Gr.fromArray(AO);
var l = Math.PI / 2, u = Math.acos(No.dot(e)), c = l + u - n;
if (c >= l)
Ke.copy(Gr, wn);
else {
Gr.scaleAndAdd(No, s / Math.tan(Math.PI / 2 - c));
var f = wn.x !== Ut.x ? (Gr.x - Ut.x) / (wn.x - Ut.x) : (Gr.y - Ut.y) / (wn.y - Ut.y);
if (isNaN(f))
return;
f < 0 ? Ke.copy(Gr, Ut) : f > 1 && Ke.copy(Gr, wn);
}
Gr.toArray(t[1]);
}
}
}
}
function XT(t, e, n, r) {
var i = n === "normal", a = i ? t : t.ensureState(n);
a.ignore = e;
var o = r.get("smooth");
o && o === !0 && (o = 0.3), a.shape = a.shape || {}, o > 0 && (a.shape.smooth = o);
var s = r.getModel("lineStyle").getLineStyle();
i ? t.useStyle(s) : a.style = s;
}
function V5e(t, e) {
var n = e.smooth, r = e.points;
if (r)
if (t.moveTo(r[0][0], r[0][1]), n > 0 && r.length >= 3) {
var i = Ps(r[0], r[1]), a = Ps(r[1], r[2]);
if (!i || !a) {
t.lineTo(r[1][0], r[1][1]), t.lineTo(r[2][0], r[2][1]);
return;
}
var o = Math.min(i, a) * n, s = $g([], r[1], r[0], o / i), l = $g([], r[1], r[2], o / a), u = $g([], s, l, 0.5);
t.bezierCurveTo(s[0], s[1], s[0], s[1], u[0], u[1]), t.bezierCurveTo(l[0], l[1], l[0], l[1], r[2][0], r[2][1]);
} else
for (var c = 1; c < r.length; c++)
t.lineTo(r[c][0], r[c][1]);
}
function Ek(t, e, n) {
var r = t.getTextGuideLine(), i = t.getTextContent();
if (!i) {
r && t.removeTextGuideLine();
return;
}
for (var a = e.normal, o = a.get("show"), s = i.ignore, l = 0; l < Pm.length; l++) {
var u = Pm[l], c = e[u], f = u === "normal";
if (c) {
var d = c.get("show"), h = f ? s : We(i.states[u] && i.states[u].ignore, s);
if (h || !We(d, o)) {
var p = f ? r : r && r.states[u];
p && (p.ignore = !0), r && XT(r, !0, u, c);
continue;
}
r || (r = new oi(), t.setTextGuideLine(r), !f && (s || !o) && XT(r, !0, "normal", e.normal), t.stateProxy && (r.stateProxy = t.stateProxy)), XT(r, !1, u, c);
}
}
if (r) {
Re(r.style, n), r.style.fill = null;
var v = a.get("showAbove"), g = t.textGuideLineConfig = t.textGuideLineConfig || {};
g.showAbove = v || !1, r.buildPath = V5e;
}
}
function Mk(t, e) {
e = e || "labelLine";
for (var n = {
normal: t.getModel(e)
}, r = 0; r < ri.length; r++) {
var i = ri[r];
n[i] = t.getModel([i, e]);
}
return n;
}
function yte(t) {
for (var e = [], n = 0; n < t.length; n++) {
var r = t[n];
if (!r.defaultAttr.ignore) {
var i = r.label, a = i.getComputedTransform(), o = i.getBoundingRect(), s = !a || a[1] < 1e-5 && a[2] < 1e-5, l = i.style.margin || 0, u = o.clone();
u.applyTransform(a), u.x -= l / 2, u.y -= l / 2, u.width += l, u.height += l;
var c = s ? new uO(o, a) : null;
e.push({
label: i,
labelLine: r.labelLine,
rect: u,
localRect: o,
obb: c,
priority: r.priority,
defaultAttr: r.defaultAttr,
layoutOption: r.computedLayoutOption,
axisAligned: s,
transform: a
});
}
}
return e;
}
function bte(t, e, n, r, i, a) {
var o = t.length;
if (o < 2)
return;
t.sort(function(C, T) {
return C.rect[e] - T.rect[e];
});
for (var s = 0, l, u = !1, c = 0, f = 0; f < o; f++) {
var d = t[f], h = d.rect;
l = h[e] - s, l < 0 && (h[e] -= l, d.label[e] -= l, u = !0);
var p = Math.max(-l, 0);
c += p, s = h[e] + h[n];
}
c > 0 && a && O(-c / o, 0, o);
var v = t[0], g = t[o - 1], m, y;
b(), m < 0 && S(-m, 0.8), y < 0 && S(y, 0.8), b(), _(m, y, 1), _(y, m, -1), b(), m < 0 && x(-m), y < 0 && x(y);
function b() {
m = v.rect[e] - r, y = i - g.rect[e] - g.rect[n];
}
function _(C, T, w) {
if (C < 0) {
var P = Math.min(T, -C);
if (P > 0) {
O(P * w, 0, o);
var $ = P + C;
$ < 0 && S(-$ * w, 1);
} else
S(-C * w, 1);
}
}
function O(C, T, w) {
C !== 0 && (u = !0);
for (var P = T; P < w; P++) {
var $ = t[P], A = $.rect;
A[e] += C, $.label[e] += C;
}
}
function S(C, T) {
for (var w = [], P = 0, $ = 1; $ < o; $++) {
var A = t[$ - 1].rect, D = Math.max(t[$].rect[e] - A[e] - A[n], 0);
w.push(D), P += D;
}
if (P) {
var E = Math.min(Math.abs(C) / P, T);
if (C > 0)
for (var $ = 0; $ < o - 1; $++) {
var R = w[$] * E;
O(R, 0, $ + 1);
}
else
for (var $ = o - 1; $ > 0; $--) {
var R = w[$ - 1] * E;
O(-R, $, o);
}
}
}
function x(C) {
var T = C < 0 ? -1 : 1;
C = Math.abs(C);
for (var w = Math.ceil(C / (o - 1)), P = 0; P < o - 1; P++)
if (T > 0 ? O(w, 0, P + 1) : O(-w, o - P - 1, o), C -= w, C <= 0)
return;
}
return u;
}
function F5e(t, e, n, r) {
return bte(t, "x", "width", e, n, r);
}
function _te(t, e, n, r) {
return bte(t, "y", "height", e, n, r);
}
function Ote(t) {
var e = [];
t.sort(function(v, g) {
return g.priority - v.priority;
});
var n = new Je(0, 0, 0, 0);
function r(v) {
if (!v.ignore) {
var g = v.ensureState("emphasis");
g.ignore == null && (g.ignore = !1);
}
v.ignore = !0;
}
for (var i = 0; i < t.length; i++) {
var a = t[i], o = a.axisAligned, s = a.localRect, l = a.transform, u = a.label, c = a.labelLine;
n.copy(a.rect), n.width -= 0.1, n.height -= 0.1, n.x += 0.05, n.y += 0.05;
for (var f = a.obb, d = !1, h = 0; h < e.length; h++) {
var p = e[h];
if (n.intersect(p.rect)) {
if (o && p.axisAligned) {
d = !0;
break;
}
if (p.obb || (p.obb = new uO(p.localRect, p.transform)), f || (f = new uO(s, l)), f.intersect(p.obb)) {
d = !0;
break;
}
}
}
d ? (r(u), c && r(c)) : (u.attr("ignore", a.defaultAttr.ignore), c && c.attr("ignore", a.defaultAttr.labelGuideIgnore), e.push(a));
}
}
function W5e(t) {
if (t) {
for (var e = [], n = 0; n < t.length; n++)
e.push(t[n].slice());
return e;
}
}
function Q5e(t, e) {
var n = t.label, r = e && e.getTextGuideLine();
return {
dataIndex: t.dataIndex,
dataType: t.dataType,
seriesIndex: t.seriesModel.seriesIndex,
text: t.label.style.text,
rect: t.hostRect,
labelRect: t.rect,
// x: labelAttr.x,
// y: labelAttr.y,
align: n.style.align,
verticalAlign: n.style.verticalAlign,
labelLinePoints: W5e(r && r.shape.points)
};
}
var pV = ["align", "verticalAlign", "width", "height", "fontSize"], Fr = new Es(), YT = bt(), H5e = bt();
function yb(t, e, n) {
for (var r = 0; r < n.length; r++) {
var i = n[r];
e[i] != null && (t[i] = e[i]);
}
}
var bb = ["x", "y", "rotation"], G5e = (
/** @class */
function() {
function t() {
this._labelList = [], this._chartViewList = [];
}
return t.prototype.clearLabels = function() {
this._labelList = [], this._chartViewList = [];
}, t.prototype._addLabel = function(e, n, r, i, a) {
var o = i.style, s = i.__hostTarget, l = s.textConfig || {}, u = i.getComputedTransform(), c = i.getBoundingRect().plain();
Je.applyTransform(c, c, u), u ? Fr.setLocalTransform(u) : (Fr.x = Fr.y = Fr.rotation = Fr.originX = Fr.originY = 0, Fr.scaleX = Fr.scaleY = 1), Fr.rotation = Qi(Fr.rotation);
var f = i.__hostTarget, d;
if (f) {
d = f.getBoundingRect().plain();
var h = f.getComputedTransform();
Je.applyTransform(d, d, h);
}
var p = d && f.getTextGuideLine();
this._labelList.push({
label: i,
labelLine: p,
seriesModel: r,
dataIndex: e,
dataType: n,
layoutOption: a,
computedLayoutOption: null,
rect: c,
hostRect: d,
// Label with lower priority will be hidden when overlapped
// Use rect size as default priority
priority: d ? d.width * d.height : 0,
// Save default label attributes.
// For restore if developers want get back to default value in callback.
defaultAttr: {
ignore: i.ignore,
labelGuideIgnore: p && p.ignore,
x: Fr.x,
y: Fr.y,
scaleX: Fr.scaleX,
scaleY: Fr.scaleY,
rotation: Fr.rotation,
style: {
x: o.x,
y: o.y,
align: o.align,
verticalAlign: o.verticalAlign,
width: o.width,
height: o.height,
fontSize: o.fontSize
},
cursor: i.cursor,
attachedPos: l.position,
attachedRot: l.rotation
}
});
}, t.prototype.addLabelsOfSeries = function(e) {
var n = this;
this._chartViewList.push(e);
var r = e.__model, i = r.get("labelLayout");
(Me(i) || st(i).length) && e.group.traverse(function(a) {
if (a.ignore)
return !0;
var o = a.getTextContent(), s = Fe(a);
o && !o.disableLabelLayout && n._addLabel(s.dataIndex, s.dataType, r, o, i);
});
}, t.prototype.updateLayoutConfig = function(e) {
var n = e.getWidth(), r = e.getHeight();
function i(b, _) {
return function() {
hV(b, _);
};
}
for (var a = 0; a < this._labelList.length; a++) {
var o = this._labelList[a], s = o.label, l = s.__hostTarget, u = o.defaultAttr, c = void 0;
Me(o.layoutOption) ? c = o.layoutOption(Q5e(o, l)) : c = o.layoutOption, c = c || {}, o.computedLayoutOption = c;
var f = Math.PI / 180;
l && l.setTextConfig({
// Force to set local false.
local: !1,
// Ignore position and rotation config on the host el if x or y is changed.
position: c.x != null || c.y != null ? null : u.attachedPos,
// Ignore rotation config on the host el if rotation is changed.
rotation: c.rotate != null ? c.rotate * f : u.attachedRot,
offset: [c.dx || 0, c.dy || 0]
});
var d = !1;
if (c.x != null ? (s.x = _e(c.x, n), s.setStyle("x", 0), d = !0) : (s.x = u.x, s.setStyle("x", u.style.x)), c.y != null ? (s.y = _e(c.y, r), s.setStyle("y", 0), d = !0) : (s.y = u.y, s.setStyle("y", u.style.y)), c.labelLinePoints) {
var h = l.getTextGuideLine();
h && (h.setShape({
points: c.labelLinePoints
}), d = !1);
}
var p = YT(s);
p.needsUpdateLabelLine = d, s.rotation = c.rotate != null ? c.rotate * f : u.rotation, s.scaleX = u.scaleX, s.scaleY = u.scaleY;
for (var v = 0; v < pV.length; v++) {
var g = pV[v];
s.setStyle(g, c[g] != null ? c[g] : u.style[g]);
}
if (c.draggable) {
if (s.draggable = !0, s.cursor = "move", l) {
var m = o.seriesModel;
if (o.dataIndex != null) {
var y = o.seriesModel.getData(o.dataType);
m = y.getItemModel(o.dataIndex);
}
s.on("drag", i(l, m.getModel("labelLine")));
}
} else
s.off("drag"), s.cursor = u.cursor;
}
}, t.prototype.layout = function(e) {
var n = e.getWidth(), r = e.getHeight(), i = yte(this._labelList), a = Nt(i, function(l) {
return l.layoutOption.moveOverlap === "shiftX";
}), o = Nt(i, function(l) {
return l.layoutOption.moveOverlap === "shiftY";
});
F5e(a, 0, n), _te(o, 0, r);
var s = Nt(i, function(l) {
return l.layoutOption.hideOverlap;
});
Ote(s);
}, t.prototype.processLabelsOverall = function() {
var e = this;
k(this._chartViewList, function(n) {
var r = n.__model, i = n.ignoreLabelLineUpdate, a = r.isAnimationEnabled();
n.group.traverse(function(o) {
if (o.ignore && !o.forceLabelAnimation)
return !0;
var s = !i, l = o.getTextContent();
!s && l && (s = YT(l).needsUpdateLabelLine), s && e._updateLabelLine(o, r), a && e._animateLabels(o, r);
});
});
}, t.prototype._updateLabelLine = function(e, n) {
var r = e.getTextContent(), i = Fe(e), a = i.dataIndex;
if (r && a != null) {
var o = n.getData(i.dataType), s = o.getItemModel(a), l = {}, u = o.getItemVisual(a, "style");
if (u) {
var c = o.getVisual("drawType");
l.stroke = u[c];
}
var f = s.getModel("labelLine");
Ek(e, Mk(s), l), hV(e, f);
}
}, t.prototype._animateLabels = function(e, n) {
var r = e.getTextContent(), i = e.getTextGuideLine();
if (r && (e.forceLabelAnimation || !r.ignore && !r.invisible && !e.disableLabelAnimation && !rh(e))) {
var a = YT(r), o = a.oldLayout, s = Fe(e), l = s.dataIndex, u = {
x: r.x,
y: r.y,
rotation: r.rotation
}, c = n.getData(s.dataType);
if (o) {
r.attr(o);
var d = e.prevStates;
d && (et(d, "select") >= 0 && r.attr(a.oldLayoutSelect), et(d, "emphasis") >= 0 && r.attr(a.oldLayoutEmphasis)), Ct(r, u, n, l);
} else if (r.attr(u), !Sp(r).valueAnimation) {
var f = We(r.style.opacity, 1);
r.style.opacity = 0, Yt(r, {
style: {
opacity: f
}
}, n, l);
}
if (a.oldLayout = u, r.states.select) {
var h = a.oldLayoutSelect = {};
yb(h, u, bb), yb(h, r.states.select, bb);
}
if (r.states.emphasis) {
var p = a.oldLayoutEmphasis = {};
yb(p, u, bb), yb(p, r.states.emphasis, bb);
}
pJ(r, l, c, n, n);
}
if (i && !i.ignore && !i.invisible) {
var a = H5e(i), o = a.oldLayout, v = {
points: i.shape.points
};
o ? (i.attr({
shape: o
}), Ct(i, {
shape: v
}, n)) : (i.setShape(v), i.style.strokePercent = 0, Yt(i, {
style: {
strokePercent: 1
}
}, n)), a.oldLayout = v;
}
}, t;
}()
), qT = bt();
function j5e(t) {
t.registerUpdateLifecycle("series:beforeupdate", function(e, n, r) {
var i = qT(n).labelManager;
i || (i = qT(n).labelManager = new G5e()), i.clearLabels();
}), t.registerUpdateLifecycle("series:layoutlabels", function(e, n, r) {
var i = qT(n).labelManager;
r.updatedSeries.forEach(function(a) {
i.addLabelsOfSeries(n.getViewOfSeriesModel(a));
}), i.updateLayoutConfig(n), i.layout(n), i.processLabelsOverall();
});
}
var KT = Math.sin, JT = Math.cos, Ste = Math.PI, oc = Math.PI * 2, Z5e = 180 / Ste, xte = function() {
function t() {
}
return t.prototype.reset = function(e) {
this._start = !0, this._d = [], this._str = "", this._p = Math.pow(10, e || 4);
}, t.prototype.moveTo = function(e, n) {
this._add("M", e, n);
}, t.prototype.lineTo = function(e, n) {
this._add("L", e, n);
}, t.prototype.bezierCurveTo = function(e, n, r, i, a, o) {
this._add("C", e, n, r, i, a, o);
}, t.prototype.quadraticCurveTo = function(e, n, r, i) {
this._add("Q", e, n, r, i);
}, t.prototype.arc = function(e, n, r, i, a, o) {
this.ellipse(e, n, r, r, 0, i, a, o);
}, t.prototype.ellipse = function(e, n, r, i, a, o, s, l) {
var u = s - o, c = !l, f = Math.abs(u), d = Bl(f - oc) || (c ? u >= oc : -u >= oc), h = u > 0 ? u % oc : u % oc + oc, p = !1;
d ? p = !0 : Bl(f) ? p = !1 : p = h >= Ste == !!c;
var v = e + r * JT(o), g = n + i * KT(o);
this._start && this._add("M", v, g);
var m = Math.round(a * Z5e);
if (d) {
var y = 1 / this._p, b = (c ? 1 : -1) * (oc - y);
this._add("A", r, i, m, 1, +c, e + r * JT(o + b), n + i * KT(o + b)), y > 0.01 && this._add("A", r, i, m, 0, +c, v, g);
} else {
var _ = e + r * JT(s), O = n + i * KT(s);
this._add("A", r, i, m, +p, +c, _, O);
}
}, t.prototype.rect = function(e, n, r, i) {
this._add("M", e, n), this._add("l", r, 0), this._add("l", 0, i), this._add("l", -r, 0), this._add("Z");
}, t.prototype.closePath = function() {
this._d.length > 0 && this._add("Z");
}, t.prototype._add = function(e, n, r, i, a, o, s, l, u) {
for (var c = [], f = this._p, d = 1; d < arguments.length; d++) {
var h = arguments[d];
if (isNaN(h)) {
this._invalid = !0;
return;
}
c.push(Math.round(h * f) / f);
}
this._d.push(e + c.join(" ")), this._start = e === "Z";
}, t.prototype.generateStr = function() {
this._str = this._invalid ? "" : this._d.join(""), this._d = [];
}, t.prototype.getStr = function() {
return this._str;
}, t;
}(), Ik = "none", U5e = Math.round;
function X5e(t) {
var e = t.fill;
return e != null && e !== Ik;
}
function Y5e(t) {
var e = t.stroke;
return e != null && e !== Ik;
}
var oE = ["lineCap", "miterLimit", "lineJoin"], q5e = ce(oE, function(t) {
return "stroke-" + t.toLowerCase();
});
function K5e(t, e, n, r) {
var i = e.opacity == null ? 1 : e.opacity;
if (n instanceof lr) {
t("opacity", i);
return;
}
if (X5e(e)) {
var a = Tm(e.fill);
t("fill", a.color);
var o = e.fillOpacity != null ? e.fillOpacity * a.opacity * i : a.opacity * i;
o < 1 && t("fill-opacity", o);
} else
t("fill", Ik);
if (Y5e(e)) {
var s = Tm(e.stroke);
t("stroke", s.color);
var l = e.strokeNoScale ? n.getLineScale() : 1, u = l ? (e.lineWidth || 0) / l : 0, c = e.strokeOpacity != null ? e.strokeOpacity * s.opacity * i : s.opacity * i, f = e.strokeFirst;
if (u !== 1 && t("stroke-width", u), f && t("paint-order", f ? "stroke" : "fill"), c < 1 && t("stroke-opacity", c), e.lineDash) {
var d = dk(n), h = d[0], p = d[1];
h && (p = U5e(p || 0), t("stroke-dasharray", h.join(",")), (p || r) && t("stroke-dashoffset", p));
}
for (var v = 0; v < oE.length; v++) {
var g = oE[v];
if (e[g] !== sO[g]) {
var m = e[g] || sO[g];
m && t(q5e[v], m);
}
}
}
}
var wte = "http://www.w3.org/2000/svg", Cte = "http://www.w3.org/1999/xlink", J5e = "http://www.w3.org/2000/xmlns/", e3e = "http://www.w3.org/XML/1998/namespace", vV = "ecmeta_";
function Tte(t) {
return document.createElementNS(wte, t);
}
function Xn(t, e, n, r, i) {
return {
tag: t,
attrs: n || {},
children: r,
text: i,
key: e
};
}
function t3e(t, e) {
var n = [];
if (e)
for (var r in e) {
var i = e[r], a = r;
i !== !1 && (i !== !0 && i != null && (a += '="' + i + '"'), n.push(a));
}
return "<" + t + " " + n.join(" ") + ">";
}
function n3e(t) {
return "" + t + ">";
}
function Dk(t, e) {
e = e || {};
var n = e.newline ? `
` : "";
function r(i) {
var a = i.children, o = i.tag, s = i.attrs, l = i.text;
return t3e(o, s) + (o !== "style" ? jr(l) : l || "") + (a ? "" + n + ce(a, function(u) {
return r(u);
}).join(n) + n : "") + n3e(o);
}
return r(t);
}
function r3e(t, e, n) {
n = n || {};
var r = n.newline ? `
` : "", i = " {" + r, a = r + "}", o = ce(st(t), function(l) {
return l + i + ce(st(t[l]), function(u) {
return u + ":" + t[l][u] + ";";
}).join(r) + a;
}).join(r), s = ce(st(e), function(l) {
return "@keyframes " + l + i + ce(st(e[l]), function(u) {
return u + i + ce(st(e[l][u]), function(c) {
var f = e[l][u][c];
return c === "d" && (f = 'path("' + f + '")'), c + ":" + f + ";";
}).join(r) + a;
}).join(r) + a;
}).join(r);
return !o && !s ? "" : [""].join(r);
}
function sE(t) {
return {
zrId: t,
shadowCache: {},
patternCache: {},
gradientCache: {},
clipPathCache: {},
defs: {},
cssNodes: {},
cssAnims: {},
cssStyleCache: {},
cssAnimIdx: 0,
shadowIdx: 0,
gradientIdx: 0,
patternIdx: 0,
clipPathIdx: 0
};
}
function gV(t, e, n, r) {
return Xn("svg", "root", {
width: t,
height: e,
xmlns: wte,
"xmlns:xlink": Cte,
version: "1.1",
baseProfile: "full",
viewBox: r ? "0 0 " + t + " " + e : !1
}, n);
}
var i3e = 0;
function Pte() {
return i3e++;
}
var mV = {
cubicIn: "0.32,0,0.67,0",
cubicOut: "0.33,1,0.68,1",
cubicInOut: "0.65,0,0.35,1",
quadraticIn: "0.11,0,0.5,0",
quadraticOut: "0.5,1,0.89,1",
quadraticInOut: "0.45,0,0.55,1",
quarticIn: "0.5,0,0.75,0",
quarticOut: "0.25,1,0.5,1",
quarticInOut: "0.76,0,0.24,1",
quinticIn: "0.64,0,0.78,0",
quinticOut: "0.22,1,0.36,1",
quinticInOut: "0.83,0,0.17,1",
sinusoidalIn: "0.12,0,0.39,0",
sinusoidalOut: "0.61,1,0.88,1",
sinusoidalInOut: "0.37,0,0.63,1",
exponentialIn: "0.7,0,0.84,0",
exponentialOut: "0.16,1,0.3,1",
exponentialInOut: "0.87,0,0.13,1",
circularIn: "0.55,0,1,0.45",
circularOut: "0,0.55,0.45,1",
circularInOut: "0.85,0,0.15,1"
}, dc = "transform-origin";
function a3e(t, e, n) {
var r = le({}, t.shape);
le(r, e), t.buildPath(n, r);
var i = new xte();
return i.reset(Yq(t)), n.rebuildPath(i, 1), i.generateStr(), i.getStr();
}
function o3e(t, e) {
var n = e.originX, r = e.originY;
(n || r) && (t[dc] = n + "px " + r + "px");
}
var s3e = {
fill: "fill",
opacity: "opacity",
lineWidth: "stroke-width",
lineDashOffset: "stroke-dashoffset"
};
function $te(t, e) {
var n = e.zrId + "-ani-" + e.cssAnimIdx++;
return e.cssAnims[n] = t, n;
}
function l3e(t, e, n) {
var r = t.shape.paths, i = {}, a, o;
if (k(r, function(l) {
var u = sE(n.zrId);
u.animation = !0, mw(l, {}, u, !0);
var c = u.cssAnims, f = u.cssNodes, d = st(c), h = d.length;
if (h) {
o = d[h - 1];
var p = c[o];
for (var v in p) {
var g = p[v];
i[v] = i[v] || { d: "" }, i[v].d += g.d || "";
}
for (var m in f) {
var y = f[m].animation;
y.indexOf(o) >= 0 && (a = y);
}
}
}), !!a) {
e.d = !1;
var s = $te(i, n);
return a.replace(o, s);
}
}
function yV(t) {
return Oe(t) ? mV[t] ? "cubic-bezier(" + mV[t] + ")" : xR(t) ? t : "" : "";
}
function mw(t, e, n, r) {
var i = t.animators, a = i.length, o = [];
if (t instanceof Kx) {
var s = l3e(t, e, n);
if (s)
o.push(s);
else if (!a)
return;
} else if (!a)
return;
for (var l = {}, u = 0; u < a; u++) {
var c = i[u], f = [c.getMaxTime() / 1e3 + "s"], d = yV(c.getClip().easing), h = c.getDelay();
d ? f.push(d) : f.push("linear"), h && f.push(h / 1e3 + "s"), c.getLoop() && f.push("infinite");
var p = f.join(" ");
l[p] = l[p] || [p, []], l[p][1].push(c);
}
function v(y) {
var b = y[1], _ = b.length, O = {}, S = {}, x = {}, C = "animation-timing-function";
function T(ie, X, H) {
for (var G = ie.getTracks(), re = ie.getMaxTime(), fe = 0; fe < G.length; fe++) {
var de = G[fe];
if (de.needsAnimate()) {
var Ee = de.keyframes, $e = de.propName;
if (H && ($e = H($e)), $e)
for (var Se = 0; Se < Ee.length; Se++) {
var be = Ee[Se], he = Math.round(be.time / re * 100) + "%", Te = yV(be.easing), ze = be.rawValue;
(Oe(ze) || St(ze)) && (X[he] = X[he] || {}, X[he][$e] = be.rawValue, Te && (X[he][C] = Te));
}
}
}
}
for (var w = 0; w < _; w++) {
var P = b[w], $ = P.targetName;
$ ? $ === "shape" && T(P, S) : !r && T(P, O);
}
for (var A in O) {
var D = {};
tK(D, t), le(D, O[A]);
var E = qq(D), R = O[A][C];
x[A] = E ? {
transform: E
} : {}, o3e(x[A], D), R && (x[A][C] = R);
}
var N, V = !0;
for (var A in S) {
x[A] = x[A] || {};
var B = !N, R = S[A][C];
B && (N = new os());
var W = N.len();
N.reset(), x[A].d = a3e(t, S[A], N);
var F = N.len();
if (!B && W !== F) {
V = !1;
break;
}
R && (x[A][C] = R);
}
if (!V)
for (var A in x)
delete x[A].d;
if (!r)
for (var w = 0; w < _; w++) {
var P = b[w], $ = P.targetName;
$ === "style" && T(P, x, function(G) {
return s3e[G];
});
}
for (var Q = st(x), Z = !0, ne, w = 1; w < Q.length; w++) {
var ee = Q[w - 1], oe = Q[w];
if (x[ee][dc] !== x[oe][dc]) {
Z = !1;
break;
}
ne = x[ee][dc];
}
if (Z && ne) {
for (var A in x)
x[A][dc] && delete x[A][dc];
e[dc] = ne;
}
if (Nt(Q, function(ie) {
return st(x[ie]).length > 0;
}).length) {
var K = $te(x, n);
return K + " " + y[0] + " both";
}
}
for (var g in l) {
var s = v(l[g]);
s && o.push(s);
}
if (o.length) {
var m = n.zrId + "-cls-" + Pte();
n.cssNodes["." + m] = {
animation: o.join(",")
}, e.class = m;
}
}
function u3e(t, e, n) {
if (!t.ignore)
if (t.isSilent()) {
var r = {
"pointer-events": "none"
};
bV(r, e, n);
} else {
var i = t.states.emphasis && t.states.emphasis.style ? t.states.emphasis.style : {}, a = i.fill;
if (!a) {
var o = t.style && t.style.fill, s = t.states.select && t.states.select.style && t.states.select.style.fill, l = t.currentStates.indexOf("select") >= 0 && s || o;
l && (a = nO(l));
}
var u = i.lineWidth;
if (u) {
var c = !i.strokeNoScale && t.transform ? t.transform[0] : 1;
u = u / c;
}
var r = {
cursor: "pointer"
};
a && (r.fill = a), i.stroke && (r.stroke = i.stroke), u && (r["stroke-width"] = u), bV(r, e, n);
}
}
function bV(t, e, n, r) {
var i = JSON.stringify(t), a = n.cssStyleCache[i];
a || (a = n.zrId + "-cls-" + Pte(), n.cssStyleCache[i] = a, n.cssNodes["." + a + ":hover"] = t), e.class = e.class ? e.class + " " + a : a;
}
var Lm = Math.round;
function Ate(t) {
return t && Oe(t.src);
}
function Ete(t) {
return t && Me(t.toDataURL);
}
function Rk(t, e, n, r) {
K5e(function(i, a) {
var o = i === "fill" || i === "stroke";
o && Xq(a) ? Ite(e, t, i, r) : o && CR(a) ? Dte(n, t, i, r) : o && a === "none" ? t[i] = "transparent" : t[i] = a;
}, e, n, !1), g3e(n, t, r);
}
function kk(t, e) {
var n = aK(e);
n && (n.each(function(r, i) {
r != null && (t[(vV + i).toLowerCase()] = r + "");
}), e.isSilent() && (t[vV + "silent"] = "true"));
}
function _V(t) {
return Bl(t[0] - 1) && Bl(t[1]) && Bl(t[2]) && Bl(t[3] - 1);
}
function c3e(t) {
return Bl(t[4]) && Bl(t[5]);
}
function Lk(t, e, n) {
if (e && !(c3e(e) && _V(e))) {
var r = 1e4;
t.transform = _V(e) ? "translate(" + Lm(e[4] * r) / r + " " + Lm(e[5] * r) / r + ")" : rDe(e);
}
}
function OV(t, e, n) {
for (var r = t.points, i = [], a = 0; a < r.length; a++)
i.push(Lm(r[a][0] * n) / n), i.push(Lm(r[a][1] * n) / n);
e.points = i.join(" ");
}
function SV(t) {
return !t.smooth;
}
function f3e(t) {
var e = ce(t, function(n) {
return typeof n == "string" ? [n, n] : n;
});
return function(n, r, i) {
for (var a = 0; a < e.length; a++) {
var o = e[a], s = n[o[0]];
s != null && (r[o[1]] = Lm(s * i) / i);
}
};
}
var d3e = {
circle: [f3e(["cx", "cy", "r"])],
polyline: [OV, SV],
polygon: [OV, SV]
};
function h3e(t) {
for (var e = t.animators, n = 0; n < e.length; n++)
if (e[n].targetName === "shape")
return !0;
return !1;
}
function Mte(t, e) {
var n = t.style, r = t.shape, i = d3e[t.type], a = {}, o = e.animation, s = "path", l = t.style.strokePercent, u = e.compress && Yq(t) || 4;
if (i && !e.willUpdate && !(i[1] && !i[1](r)) && !(o && h3e(t)) && !(l < 1)) {
s = t.type;
var c = Math.pow(10, u);
i[0](r, a, c);
} else {
var f = !t.path || t.shapeChanged();
t.path || t.createPathProxy();
var d = t.path;
f && (d.beginPath(), t.buildPath(d, t.shape), t.pathUpdated());
var h = d.getVersion(), p = t, v = p.__svgPathBuilder;
(p.__svgPathVersion !== h || !v || l !== p.__svgPathStrokePercent) && (v || (v = p.__svgPathBuilder = new xte()), v.reset(u), d.rebuildPath(v, l), v.generateStr(), p.__svgPathVersion = h, p.__svgPathStrokePercent = l), a.d = v.getStr();
}
return Lk(a, t.transform), Rk(a, n, t, e), kk(a, t), e.animation && mw(t, a, e), e.emphasis && u3e(t, a, e), Xn(s, t.id + "", a);
}
function p3e(t, e) {
var n = t.style, r = n.image;
if (r && !Oe(r) && (Ate(r) ? r = r.src : Ete(r) && (r = r.toDataURL())), !!r) {
var i = n.x || 0, a = n.y || 0, o = n.width, s = n.height, l = {
href: r,
width: o,
height: s
};
return i && (l.x = i), a && (l.y = a), Lk(l, t.transform), Rk(l, n, t, e), kk(l, t), e.animation && mw(t, l, e), Xn("image", t.id + "", l);
}
}
function v3e(t, e) {
var n = t.style, r = n.text;
if (r != null && (r += ""), !(!r || isNaN(n.x) || isNaN(n.y))) {
var i = n.font || iu, a = n.x || 0, o = aDe(n.y || 0, Vx(i), n.textBaseline), s = iDe[n.textAlign] || n.textAlign, l = {
"dominant-baseline": "central",
"text-anchor": s
};
if (IK(n)) {
var u = "", c = n.fontStyle, f = MK(n.fontSize);
if (!parseFloat(f))
return;
var d = n.fontFamily || Oq, h = n.fontWeight;
u += "font-size:" + f + ";font-family:" + d + ";", c && c !== "normal" && (u += "font-style:" + c + ";"), h && h !== "normal" && (u += "font-weight:" + h + ";"), l.style = u;
} else
l.style = "font: " + i;
return r.match(/\s/) && (l["xml:space"] = "preserve"), a && (l.x = a), o && (l.y = o), Lk(l, t.transform), Rk(l, n, t, e), kk(l, t), e.animation && mw(t, l, e), Xn("text", t.id + "", l, void 0, r);
}
}
function xV(t, e) {
if (t instanceof ot)
return Mte(t, e);
if (t instanceof lr)
return p3e(t, e);
if (t instanceof Qh)
return v3e(t, e);
}
function g3e(t, e, n) {
var r = t.style;
if (oDe(r)) {
var i = sDe(t), a = n.shadowCache, o = a[i];
if (!o) {
var s = t.getGlobalScale(), l = s[0], u = s[1];
if (!l || !u)
return;
var c = r.shadowOffsetX || 0, f = r.shadowOffsetY || 0, d = r.shadowBlur, h = Tm(r.shadowColor), p = h.opacity, v = h.color, g = d / 2 / l, m = d / 2 / u, y = g + " " + m;
o = n.zrId + "-s" + n.shadowIdx++, n.defs[o] = Xn("filter", o, {
id: o,
x: "-100%",
y: "-100%",
width: "300%",
height: "300%"
}, [
Xn("feDropShadow", "", {
dx: c / l,
dy: f / u,
stdDeviation: y,
"flood-color": v,
"flood-opacity": p
})
]), a[i] = o;
}
e.filter = zx(o);
}
}
function Ite(t, e, n, r) {
var i = t[n], a, o = {
gradientUnits: i.global ? "userSpaceOnUse" : "objectBoundingBox"
};
if (Zq(i))
a = "linearGradient", o.x1 = i.x, o.y1 = i.y, o.x2 = i.x2, o.y2 = i.y2;
else if (Uq(i))
a = "radialGradient", o.cx = We(i.x, 0.5), o.cy = We(i.y, 0.5), o.r = We(i.r, 0.5);
else {
process.env.NODE_ENV !== "production" && xa("Illegal gradient type.");
return;
}
for (var s = i.colorStops, l = [], u = 0, c = s.length; u < c; ++u) {
var f = vA(s[u].offset) * 100 + "%", d = s[u].color, h = Tm(d), p = h.color, v = h.opacity, g = {
offset: f
};
g["stop-color"] = p, v < 1 && (g["stop-opacity"] = v), l.push(Xn("stop", u + "", g));
}
var m = Xn(a, "", o, l), y = Dk(m), b = r.gradientCache, _ = b[y];
_ || (_ = r.zrId + "-g" + r.gradientIdx++, b[y] = _, o.id = _, r.defs[_] = Xn(a, _, o, l)), e[n] = zx(_);
}
function Dte(t, e, n, r) {
var i = t.style[n], a = t.getBoundingRect(), o = {}, s = i.repeat, l = s === "no-repeat", u = s === "repeat-x", c = s === "repeat-y", f;
if (jq(i)) {
var d = i.imageWidth, h = i.imageHeight, p = void 0, v = i.image;
if (Oe(v) ? p = v : Ate(v) ? p = v.src : Ete(v) && (p = v.toDataURL()), typeof Image > "u") {
var g = "Image width/height must been given explictly in svg-ssr renderer.";
ke(d, g), ke(h, g);
} else if (d == null || h == null) {
var m = function(w, P) {
if (w) {
var $ = w.elm, A = d || P.width, D = h || P.height;
w.tag === "pattern" && (u ? (D = 1, A /= a.width) : c && (A = 1, D /= a.height)), w.attrs.width = A, w.attrs.height = D, $ && ($.setAttribute("width", A), $.setAttribute("height", D));
}
}, y = DR(p, null, t, function(w) {
l || m(S, w), m(f, w);
});
y && y.width && y.height && (d = d || y.width, h = h || y.height);
}
f = Xn("image", "img", {
href: p,
width: d,
height: h
}), o.width = d, o.height = h;
} else i.svgElement && (f = Le(i.svgElement), o.width = i.svgWidth, o.height = i.svgHeight);
if (f) {
var b, _;
l ? b = _ = 1 : u ? (_ = 1, b = o.width / a.width) : c ? (b = 1, _ = o.height / a.height) : o.patternUnits = "userSpaceOnUse", b != null && !isNaN(b) && (o.width = b), _ != null && !isNaN(_) && (o.height = _);
var O = qq(i);
O && (o.patternTransform = O);
var S = Xn("pattern", "", o, [f]), x = Dk(S), C = r.patternCache, T = C[x];
T || (T = r.zrId + "-p" + r.patternIdx++, C[x] = T, o.id = T, S = r.defs[T] = Xn("pattern", T, o, [f])), e[n] = zx(T);
}
}
function m3e(t, e, n) {
var r = n.clipPathCache, i = n.defs, a = r[t.id];
if (!a) {
a = n.zrId + "-c" + n.clipPathIdx++;
var o = {
id: a
};
r[t.id] = a, i[a] = Xn("clipPath", a, o, [Mte(t, n)]);
}
e["clip-path"] = zx(a);
}
function wV(t) {
return document.createTextNode(t);
}
function xc(t, e, n) {
t.insertBefore(e, n);
}
function CV(t, e) {
t.removeChild(e);
}
function TV(t, e) {
t.appendChild(e);
}
function Rte(t) {
return t.parentNode;
}
function kte(t) {
return t.nextSibling;
}
function eP(t, e) {
t.textContent = e;
}
var PV = 58, y3e = 120, b3e = Xn("", "");
function lE(t) {
return t === void 0;
}
function Ro(t) {
return t !== void 0;
}
function _3e(t, e, n) {
for (var r = {}, i = e; i <= n; ++i) {
var a = t[i].key;
a !== void 0 && (process.env.NODE_ENV !== "production" && r[a] != null && console.error("Duplicate key " + a), r[a] = i);
}
return r;
}
function Jv(t, e) {
var n = t.key === e.key, r = t.tag === e.tag;
return r && n;
}
function Nm(t) {
var e, n = t.children, r = t.tag;
if (Ro(r)) {
var i = t.elm = Tte(r);
if (Nk(b3e, t), ue(n))
for (e = 0; e < n.length; ++e) {
var a = n[e];
a != null && TV(i, Nm(a));
}
else Ro(t.text) && !Ie(t.text) && TV(i, wV(t.text));
} else
t.elm = wV(t.text);
return t.elm;
}
function Lte(t, e, n, r, i) {
for (; r <= i; ++r) {
var a = n[r];
a != null && xc(t, Nm(a), e);
}
}
function EO(t, e, n, r) {
for (; n <= r; ++n) {
var i = e[n];
if (i != null)
if (Ro(i.tag)) {
var a = Rte(i.elm);
CV(a, i.elm);
} else
CV(t, i.elm);
}
}
function Nk(t, e) {
var n, r = e.elm, i = t && t.attrs || {}, a = e.attrs || {};
if (i !== a) {
for (n in a) {
var o = a[n], s = i[n];
s !== o && (o === !0 ? r.setAttribute(n, "") : o === !1 ? r.removeAttribute(n) : n === "style" ? r.style.cssText = o : n.charCodeAt(0) !== y3e ? r.setAttribute(n, o) : n === "xmlns:xlink" || n === "xmlns" ? r.setAttributeNS(J5e, n, o) : n.charCodeAt(3) === PV ? r.setAttributeNS(e3e, n, o) : n.charCodeAt(5) === PV ? r.setAttributeNS(Cte, n, o) : r.setAttribute(n, o));
}
for (n in i)
n in a || r.removeAttribute(n);
}
}
function O3e(t, e, n) {
for (var r = 0, i = 0, a = e.length - 1, o = e[0], s = e[a], l = n.length - 1, u = n[0], c = n[l], f, d, h, p; r <= a && i <= l; )
o == null ? o = e[++r] : s == null ? s = e[--a] : u == null ? u = n[++i] : c == null ? c = n[--l] : Jv(o, u) ? (Md(o, u), o = e[++r], u = n[++i]) : Jv(s, c) ? (Md(s, c), s = e[--a], c = n[--l]) : Jv(o, c) ? (Md(o, c), xc(t, o.elm, kte(s.elm)), o = e[++r], c = n[--l]) : Jv(s, u) ? (Md(s, u), xc(t, s.elm, o.elm), s = e[--a], u = n[++i]) : (lE(f) && (f = _3e(e, r, a)), d = f[u.key], lE(d) ? xc(t, Nm(u), o.elm) : (h = e[d], h.tag !== u.tag ? xc(t, Nm(u), o.elm) : (Md(h, u), e[d] = void 0, xc(t, h.elm, o.elm))), u = n[++i]);
(r <= a || i <= l) && (r > a ? (p = n[l + 1] == null ? null : n[l + 1].elm, Lte(t, p, n, i, l)) : EO(t, e, r, a));
}
function Md(t, e) {
var n = e.elm = t.elm, r = t.children, i = e.children;
t !== e && (Nk(t, e), lE(e.text) ? Ro(r) && Ro(i) ? r !== i && O3e(n, r, i) : Ro(i) ? (Ro(t.text) && eP(n, ""), Lte(n, null, i, 0, i.length - 1)) : Ro(r) ? EO(n, r, 0, r.length - 1) : Ro(t.text) && eP(n, "") : t.text !== e.text && (Ro(r) && EO(n, r, 0, r.length - 1), eP(n, e.text)));
}
function S3e(t, e) {
if (Jv(t, e))
Md(t, e);
else {
var n = t.elm, r = Rte(n);
Nm(e), r !== null && (xc(r, e.elm, kte(n)), EO(r, [t], 0, 0));
}
return e;
}
var x3e = 0, w3e = function() {
function t(e, n, r) {
if (this.type = "svg", this.refreshHover = $V("refreshHover"), this.configLayer = $V("configLayer"), this.storage = n, this._opts = r = le({}, r), this.root = e, this._id = "zr" + x3e++, this._oldVNode = gV(r.width, r.height), e && !r.ssr) {
var i = this._viewport = document.createElement("div");
i.style.cssText = "position:relative;overflow:hidden";
var a = this._svgDom = this._oldVNode.elm = Tte("svg");
Nk(null, this._oldVNode), i.appendChild(a), e.appendChild(i);
}
this.resize(r.width, r.height);
}
return t.prototype.getType = function() {
return this.type;
}, t.prototype.getViewportRoot = function() {
return this._viewport;
}, t.prototype.getViewportRootOffset = function() {
var e = this.getViewportRoot();
if (e)
return {
offsetLeft: e.offsetLeft || 0,
offsetTop: e.offsetTop || 0
};
}, t.prototype.getSvgDom = function() {
return this._svgDom;
}, t.prototype.refresh = function() {
if (this.root) {
var e = this.renderToVNode({
willUpdate: !0
});
e.attrs.style = "position:absolute;left:0;top:0;user-select:none", S3e(this._oldVNode, e), this._oldVNode = e;
}
}, t.prototype.renderOneToVNode = function(e) {
return xV(e, sE(this._id));
}, t.prototype.renderToVNode = function(e) {
e = e || {};
var n = this.storage.getDisplayList(!0), r = this._width, i = this._height, a = sE(this._id);
a.animation = e.animation, a.willUpdate = e.willUpdate, a.compress = e.compress, a.emphasis = e.emphasis;
var o = [], s = this._bgVNode = C3e(r, i, this._backgroundColor, a);
s && o.push(s);
var l = e.compress ? null : this._mainVNode = Xn("g", "main", {}, []);
this._paintList(n, a, l ? l.children : o), l && o.push(l);
var u = ce(st(a.defs), function(d) {
return a.defs[d];
});
if (u.length && o.push(Xn("defs", "defs", {}, u)), e.animation) {
var c = r3e(a.cssNodes, a.cssAnims, { newline: !0 });
if (c) {
var f = Xn("style", "stl", {}, [], c);
o.push(f);
}
}
return gV(r, i, o, e.useViewBox);
}, t.prototype.renderToString = function(e) {
return e = e || {}, Dk(this.renderToVNode({
animation: We(e.cssAnimation, !0),
emphasis: We(e.cssEmphasis, !0),
willUpdate: !1,
compress: !0,
useViewBox: We(e.useViewBox, !0)
}), { newline: !0 });
}, t.prototype.setBackgroundColor = function(e) {
this._backgroundColor = e;
}, t.prototype.getSvgRoot = function() {
return this._mainVNode && this._mainVNode.elm;
}, t.prototype._paintList = function(e, n, r) {
for (var i = e.length, a = [], o = 0, s, l, u = 0, c = 0; c < i; c++) {
var f = e[c];
if (!f.invisible) {
var d = f.__clipPaths, h = d && d.length || 0, p = l && l.length || 0, v = void 0;
for (v = Math.max(h - 1, p - 1); v >= 0 && !(d && l && d[v] === l[v]); v--)
;
for (var g = p - 1; g > v; g--)
o--, s = a[o - 1];
for (var m = v + 1; m < h; m++) {
var y = {};
m3e(d[m], y, n);
var b = Xn("g", "clip-g-" + u++, y, []);
(s ? s.children : r).push(b), a[o++] = b, s = b;
}
l = d;
var _ = xV(f, n);
_ && (s ? s.children : r).push(_);
}
}
}, t.prototype.resize = function(e, n) {
var r = this._opts, i = this.root, a = this._viewport;
if (e != null && (r.width = e), n != null && (r.height = n), i && a && (a.style.display = "none", e = Wd(i, 0, r), n = Wd(i, 1, r), a.style.display = ""), this._width !== e || this._height !== n) {
if (this._width = e, this._height = n, a) {
var o = a.style;
o.width = e + "px", o.height = n + "px";
}
if (CR(this._backgroundColor))
this.refresh();
else {
var s = this._svgDom;
s && (s.setAttribute("width", e), s.setAttribute("height", n));
var l = this._bgVNode && this._bgVNode.elm;
l && (l.setAttribute("width", e), l.setAttribute("height", n));
}
}
}, t.prototype.getWidth = function() {
return this._width;
}, t.prototype.getHeight = function() {
return this._height;
}, t.prototype.dispose = function() {
this.root && (this.root.innerHTML = ""), this._svgDom = this._viewport = this.storage = this._oldVNode = this._bgVNode = this._mainVNode = null;
}, t.prototype.clear = function() {
this._svgDom && (this._svgDom.innerHTML = null), this._oldVNode = null;
}, t.prototype.toDataURL = function(e) {
var n = this.renderToString(), r = "data:image/svg+xml;";
return e ? (n = uDe(n), n && r + "base64," + n) : r + "charset=UTF-8," + encodeURIComponent(n);
}, t;
}();
function $V(t) {
return function() {
process.env.NODE_ENV !== "production" && xa('In SVG mode painter not support method "' + t + '"');
};
}
function C3e(t, e, n, r) {
var i;
if (n && n !== "none")
if (i = Xn("rect", "bg", {
width: t,
height: e,
x: "0",
y: "0"
}), Xq(n))
Ite({ fill: n }, i.attrs, "fill", r);
else if (CR(n))
Dte({
style: {
fill: n
},
dirty: On,
getBoundingRect: function() {
return { width: t, height: e };
}
}, i.attrs, "fill", r);
else {
var a = Tm(n), o = a.color, s = a.opacity;
i.attrs.fill = o, s < 1 && (i.attrs["fill-opacity"] = s);
}
return i;
}
function T3e(t) {
t.registerPainter("svg", w3e);
}
function AV(t, e, n) {
var r = oo.createCanvas(), i = e.getWidth(), a = e.getHeight(), o = r.style;
return o && (o.position = "absolute", o.left = "0", o.top = "0", o.width = i + "px", o.height = a + "px", r.setAttribute("data-zr-dom-id", t)), r.width = i * n, r.height = a * n, r;
}
var tP = function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this) || this;
a.motionBlur = !1, a.lastFrameAlpha = 0.7, a.dpr = 1, a.virtual = !1, a.config = {}, a.incremental = !1, a.zlevel = 0, a.maxRepaintRectCount = 5, a.__dirty = !0, a.__firstTimePaint = !0, a.__used = !1, a.__drawIndex = 0, a.__startIndex = 0, a.__endIndex = 0, a.__prevStartIndex = null, a.__prevEndIndex = null;
var o;
i = i || iO, typeof n == "string" ? o = AV(n, r, i) : Ie(n) && (o = n, n = o.id), a.id = n, a.dom = o;
var s = o.style;
return s && (_R(o), o.onselectstart = function() {
return !1;
}, s.padding = "0", s.margin = "0", s.borderWidth = "0"), a.painter = r, a.dpr = i, a;
}
return e.prototype.getElementCount = function() {
return this.__endIndex - this.__startIndex;
}, e.prototype.afterBrush = function() {
this.__prevStartIndex = this.__startIndex, this.__prevEndIndex = this.__endIndex;
}, e.prototype.initContext = function() {
this.ctx = this.dom.getContext("2d"), this.ctx.dpr = this.dpr;
}, e.prototype.setUnpainted = function() {
this.__firstTimePaint = !0;
}, e.prototype.createBackBuffer = function() {
var n = this.dpr;
this.domBack = AV("back-" + this.id, this.painter, n), this.ctxBack = this.domBack.getContext("2d"), n !== 1 && this.ctxBack.scale(n, n);
}, e.prototype.createRepaintRects = function(n, r, i, a) {
if (this.__firstTimePaint)
return this.__firstTimePaint = !1, null;
var o = [], s = this.maxRepaintRectCount, l = !1, u = new Je(0, 0, 0, 0);
function c(y) {
if (!(!y.isFinite() || y.isZero()))
if (o.length === 0) {
var b = new Je(0, 0, 0, 0);
b.copy(y), o.push(b);
} else {
for (var _ = !1, O = 1 / 0, S = 0, x = 0; x < o.length; ++x) {
var C = o[x];
if (C.intersect(y)) {
var T = new Je(0, 0, 0, 0);
T.copy(C), T.union(y), o[x] = T, _ = !0;
break;
} else if (l) {
u.copy(y), u.union(C);
var w = y.width * y.height, P = C.width * C.height, $ = u.width * u.height, A = $ - w - P;
A < O && (O = A, S = x);
}
}
if (l && (o[S].union(y), _ = !0), !_) {
var b = new Je(0, 0, 0, 0);
b.copy(y), o.push(b);
}
l || (l = o.length >= s);
}
}
for (var f = this.__startIndex; f < this.__endIndex; ++f) {
var d = n[f];
if (d) {
var h = d.shouldBePainted(i, a, !0, !0), p = d.__isRendered && (d.__dirty & Ni || !h) ? d.getPrevPaintRect() : null;
p && c(p);
var v = h && (d.__dirty & Ni || !d.__isRendered) ? d.getPaintRect() : null;
v && c(v);
}
}
for (var f = this.__prevStartIndex; f < this.__prevEndIndex; ++f) {
var d = r[f], h = d && d.shouldBePainted(i, a, !0, !0);
if (d && (!h || !d.__zr) && d.__isRendered) {
var p = d.getPrevPaintRect();
p && c(p);
}
}
var g;
do {
g = !1;
for (var f = 0; f < o.length; ) {
if (o[f].isZero()) {
o.splice(f, 1);
continue;
}
for (var m = f + 1; m < o.length; )
o[f].intersect(o[m]) ? (g = !0, o[f].union(o[m]), o.splice(m, 1)) : m++;
f++;
}
} while (g);
return this._paintRects = o, o;
}, e.prototype.debugGetPaintRects = function() {
return (this._paintRects || []).slice();
}, e.prototype.resize = function(n, r) {
var i = this.dpr, a = this.dom, o = a.style, s = this.domBack;
o && (o.width = n + "px", o.height = r + "px"), a.width = n * i, a.height = r * i, s && (s.width = n * i, s.height = r * i, i !== 1 && this.ctxBack.scale(i, i));
}, e.prototype.clear = function(n, r, i) {
var a = this.dom, o = this.ctx, s = a.width, l = a.height;
r = r || this.clearColor;
var u = this.motionBlur && !n, c = this.lastFrameAlpha, f = this.dpr, d = this;
u && (this.domBack || this.createBackBuffer(), this.ctxBack.globalCompositeOperation = "copy", this.ctxBack.drawImage(a, 0, 0, s / f, l / f));
var h = this.domBack;
function p(v, g, m, y) {
if (o.clearRect(v, g, m, y), r && r !== "transparent") {
var b = void 0;
if (I0(r)) {
var _ = r.global || r.__width === m && r.__height === y;
b = _ && r.__canvasGradient || qA(o, r, {
x: 0,
y: 0,
width: m,
height: y
}), r.__canvasGradient = b, r.__width = m, r.__height = y;
} else Tq(r) && (r.scaleX = r.scaleX || f, r.scaleY = r.scaleY || f, b = KA(o, r, {
dirty: function() {
d.setUnpainted(), d.painter.refresh();
}
}));
o.save(), o.fillStyle = b || r, o.fillRect(v, g, m, y), o.restore();
}
u && (o.save(), o.globalAlpha = c, o.drawImage(h, v, g, m, y), o.restore());
}
!i || u ? p(0, 0, s, l) : i.length && k(i, function(v) {
p(v.x * f, v.y * f, v.width * f, v.height * f);
});
}, e;
}(La), EV = 1e5, sc = 314159, _b = 0.01, P3e = 1e-3;
function $3e(t) {
return t ? t.__builtin__ ? !0 : !(typeof t.resize != "function" || typeof t.refresh != "function") : !1;
}
function A3e(t, e) {
var n = document.createElement("div");
return n.style.cssText = [
"position:relative",
"width:" + t + "px",
"height:" + e + "px",
"padding:0",
"margin:0",
"border-width:0"
].join(";") + ";", n;
}
var E3e = function() {
function t(e, n, r, i) {
this.type = "canvas", this._zlevelList = [], this._prevDisplayList = [], this._layers = {}, this._layerConfig = {}, this._needsManuallyCompositing = !1, this.type = "canvas";
var a = !e.nodeName || e.nodeName.toUpperCase() === "CANVAS";
this._opts = r = le({}, r || {}), this.dpr = r.devicePixelRatio || iO, this._singleCanvas = a, this.root = e;
var o = e.style;
o && (_R(e), e.innerHTML = ""), this.storage = n;
var s = this._zlevelList;
this._prevDisplayList = [];
var l = this._layers;
if (a) {
var c = e, f = c.width, d = c.height;
r.width != null && (f = r.width), r.height != null && (d = r.height), this.dpr = r.devicePixelRatio || 1, c.width = f * this.dpr, c.height = d * this.dpr, this._width = f, this._height = d;
var h = new tP(c, this, this.dpr);
h.__builtin__ = !0, h.initContext(), l[sc] = h, h.zlevel = sc, s.push(sc), this._domRoot = e;
} else {
this._width = Wd(e, 0, r), this._height = Wd(e, 1, r);
var u = this._domRoot = A3e(this._width, this._height);
e.appendChild(u);
}
}
return t.prototype.getType = function() {
return "canvas";
}, t.prototype.isSingleCanvas = function() {
return this._singleCanvas;
}, t.prototype.getViewportRoot = function() {
return this._domRoot;
}, t.prototype.getViewportRootOffset = function() {
var e = this.getViewportRoot();
if (e)
return {
offsetLeft: e.offsetLeft || 0,
offsetTop: e.offsetTop || 0
};
}, t.prototype.refresh = function(e) {
var n = this.storage.getDisplayList(!0), r = this._prevDisplayList, i = this._zlevelList;
this._redrawId = Math.random(), this._paintList(n, r, e, this._redrawId);
for (var a = 0; a < i.length; a++) {
var o = i[a], s = this._layers[o];
if (!s.__builtin__ && s.refresh) {
var l = a === 0 ? this._backgroundColor : null;
s.refresh(l);
}
}
return this._opts.useDirtyRect && (this._prevDisplayList = n.slice()), this;
}, t.prototype.refreshHover = function() {
this._paintHoverList(this.storage.getDisplayList(!1));
}, t.prototype._paintHoverList = function(e) {
var n = e.length, r = this._hoverlayer;
if (r && r.clear(), !!n) {
for (var i = {
inHover: !0,
viewWidth: this._width,
viewHeight: this._height
}, a, o = 0; o < n; o++) {
var s = e[o];
s.__inHover && (r || (r = this._hoverlayer = this.getLayer(EV)), a || (a = r.ctx, a.save()), Vc(a, s, i, o === n - 1));
}
a && a.restore();
}
}, t.prototype.getHoverLayer = function() {
return this.getLayer(EV);
}, t.prototype.paintOne = function(e, n) {
hk(e, n);
}, t.prototype._paintList = function(e, n, r, i) {
if (this._redrawId === i) {
r = r || !1, this._updateLayerStatus(e);
var a = this._doPaintList(e, n, r), o = a.finished, s = a.needsRefreshHover;
if (this._needsManuallyCompositing && this._compositeManually(), s && this._paintHoverList(e), o)
this.eachLayer(function(u) {
u.afterBrush && u.afterBrush();
});
else {
var l = this;
K1(function() {
l._paintList(e, n, r, i);
});
}
}
}, t.prototype._compositeManually = function() {
var e = this.getLayer(sc).ctx, n = this._domRoot.width, r = this._domRoot.height;
e.clearRect(0, 0, n, r), this.eachBuiltinLayer(function(i) {
i.virtual && e.drawImage(i.dom, 0, 0, n, r);
});
}, t.prototype._doPaintList = function(e, n, r) {
for (var i = this, a = [], o = this._opts.useDirtyRect, s = 0; s < this._zlevelList.length; s++) {
var l = this._zlevelList[s], u = this._layers[l];
u.__builtin__ && u !== this._hoverlayer && (u.__dirty || r) && a.push(u);
}
for (var c = !0, f = !1, d = function(v) {
var g = a[v], m = g.ctx, y = o && g.createRepaintRects(e, n, h._width, h._height), b = r ? g.__startIndex : g.__drawIndex, _ = !r && g.incremental && Date.now, O = _ && Date.now(), S = g.zlevel === h._zlevelList[0] ? h._backgroundColor : null;
if (g.__startIndex === g.__endIndex)
g.clear(!1, S, y);
else if (b === g.__startIndex) {
var x = e[b];
(!x.incremental || !x.notClear || r) && g.clear(!1, S, y);
}
b === -1 && (console.error("For some unknown reason. drawIndex is -1"), b = g.__startIndex);
var C, T = function(A) {
var D = {
inHover: !1,
allClipped: !1,
prevEl: null,
viewWidth: i._width,
viewHeight: i._height
};
for (C = b; C < g.__endIndex; C++) {
var E = e[C];
if (E.__inHover && (f = !0), i._doPaintEl(E, g, o, A, D, C === g.__endIndex - 1), _) {
var R = Date.now() - O;
if (R > 15)
break;
}
}
D.prevElClipPaths && m.restore();
};
if (y)
if (y.length === 0)
C = g.__endIndex;
else
for (var w = h.dpr, P = 0; P < y.length; ++P) {
var $ = y[P];
m.save(), m.beginPath(), m.rect($.x * w, $.y * w, $.width * w, $.height * w), m.clip(), T($), m.restore();
}
else
m.save(), T(), m.restore();
g.__drawIndex = C, g.__drawIndex < g.__endIndex && (c = !1);
}, h = this, p = 0; p < a.length; p++)
d(p);
return vt.wxa && k(this._layers, function(v) {
v && v.ctx && v.ctx.draw && v.ctx.draw();
}), {
finished: c,
needsRefreshHover: f
};
}, t.prototype._doPaintEl = function(e, n, r, i, a, o) {
var s = n.ctx;
if (r) {
var l = e.getPaintRect();
(!i || l && l.intersect(i)) && (Vc(s, e, a, o), e.setPrevPaintRect(l));
} else
Vc(s, e, a, o);
}, t.prototype.getLayer = function(e, n) {
this._singleCanvas && !this._needsManuallyCompositing && (e = sc);
var r = this._layers[e];
return r || (r = new tP("zr_" + e, this, this.dpr), r.zlevel = e, r.__builtin__ = !0, this._layerConfig[e] ? qe(r, this._layerConfig[e], !0) : this._layerConfig[e - _b] && qe(r, this._layerConfig[e - _b], !0), n && (r.virtual = n), this.insertLayer(e, r), r.initContext()), r;
}, t.prototype.insertLayer = function(e, n) {
var r = this._layers, i = this._zlevelList, a = i.length, o = this._domRoot, s = null, l = -1;
if (r[e]) {
process.env.NODE_ENV !== "production" && xa("ZLevel " + e + " has been used already");
return;
}
if (!$3e(n)) {
process.env.NODE_ENV !== "production" && xa("Layer of zlevel " + e + " is not valid");
return;
}
if (a > 0 && e > i[0]) {
for (l = 0; l < a - 1 && !(i[l] < e && i[l + 1] > e); l++)
;
s = r[i[l]];
}
if (i.splice(l + 1, 0, e), r[e] = n, !n.virtual)
if (s) {
var u = s.dom;
u.nextSibling ? o.insertBefore(n.dom, u.nextSibling) : o.appendChild(n.dom);
} else
o.firstChild ? o.insertBefore(n.dom, o.firstChild) : o.appendChild(n.dom);
n.painter || (n.painter = this);
}, t.prototype.eachLayer = function(e, n) {
for (var r = this._zlevelList, i = 0; i < r.length; i++) {
var a = r[i];
e.call(n, this._layers[a], a);
}
}, t.prototype.eachBuiltinLayer = function(e, n) {
for (var r = this._zlevelList, i = 0; i < r.length; i++) {
var a = r[i], o = this._layers[a];
o.__builtin__ && e.call(n, o, a);
}
}, t.prototype.eachOtherLayer = function(e, n) {
for (var r = this._zlevelList, i = 0; i < r.length; i++) {
var a = r[i], o = this._layers[a];
o.__builtin__ || e.call(n, o, a);
}
}, t.prototype.getLayers = function() {
return this._layers;
}, t.prototype._updateLayerStatus = function(e) {
this.eachBuiltinLayer(function(f, d) {
f.__dirty = f.__used = !1;
});
function n(f) {
a && (a.__endIndex !== f && (a.__dirty = !0), a.__endIndex = f);
}
if (this._singleCanvas)
for (var r = 1; r < e.length; r++) {
var i = e[r];
if (i.zlevel !== e[r - 1].zlevel || i.incremental) {
this._needsManuallyCompositing = !0;
break;
}
}
var a = null, o = 0, s, l;
for (l = 0; l < e.length; l++) {
var i = e[l], u = i.zlevel, c = void 0;
s !== u && (s = u, o = 0), i.incremental ? (c = this.getLayer(u + P3e, this._needsManuallyCompositing), c.incremental = !0, o = 1) : c = this.getLayer(u + (o > 0 ? _b : 0), this._needsManuallyCompositing), c.__builtin__ || xa("ZLevel " + u + " has been used by unkown layer " + c.id), c !== a && (c.__used = !0, c.__startIndex !== l && (c.__dirty = !0), c.__startIndex = l, c.incremental ? c.__drawIndex = -1 : c.__drawIndex = l, n(l), a = c), i.__dirty & Ni && !i.__inHover && (c.__dirty = !0, c.incremental && c.__drawIndex < 0 && (c.__drawIndex = l));
}
n(l), this.eachBuiltinLayer(function(f, d) {
!f.__used && f.getElementCount() > 0 && (f.__dirty = !0, f.__startIndex = f.__endIndex = f.__drawIndex = 0), f.__dirty && f.__drawIndex < 0 && (f.__drawIndex = f.__startIndex);
});
}, t.prototype.clear = function() {
return this.eachBuiltinLayer(this._clearLayer), this;
}, t.prototype._clearLayer = function(e) {
e.clear();
}, t.prototype.setBackgroundColor = function(e) {
this._backgroundColor = e, k(this._layers, function(n) {
n.setUnpainted();
});
}, t.prototype.configLayer = function(e, n) {
if (n) {
var r = this._layerConfig;
r[e] ? qe(r[e], n, !0) : r[e] = n;
for (var i = 0; i < this._zlevelList.length; i++) {
var a = this._zlevelList[i];
if (a === e || a === e + _b) {
var o = this._layers[a];
qe(o, r[e], !0);
}
}
}
}, t.prototype.delLayer = function(e) {
var n = this._layers, r = this._zlevelList, i = n[e];
i && (i.dom.parentNode.removeChild(i.dom), delete n[e], r.splice(et(r, e), 1));
}, t.prototype.resize = function(e, n) {
if (this._domRoot.style) {
var r = this._domRoot;
r.style.display = "none";
var i = this._opts, a = this.root;
if (e != null && (i.width = e), n != null && (i.height = n), e = Wd(a, 0, i), n = Wd(a, 1, i), r.style.display = "", this._width !== e || n !== this._height) {
r.style.width = e + "px", r.style.height = n + "px";
for (var o in this._layers)
this._layers.hasOwnProperty(o) && this._layers[o].resize(e, n);
this.refresh(!0);
}
this._width = e, this._height = n;
} else {
if (e == null || n == null)
return;
this._width = e, this._height = n, this.getLayer(sc).resize(e, n);
}
return this;
}, t.prototype.clearLayer = function(e) {
var n = this._layers[e];
n && n.clear();
}, t.prototype.dispose = function() {
this.root.innerHTML = "", this.root = this.storage = this._domRoot = this._layers = null;
}, t.prototype.getRenderedCanvas = function(e) {
if (e = e || {}, this._singleCanvas && !this._compositeManually)
return this._layers[sc].dom;
var n = new tP("image", this, e.pixelRatio || this.dpr);
n.initContext(), n.clear(!1, e.backgroundColor || this._backgroundColor);
var r = n.ctx;
if (e.pixelRatio <= this.dpr) {
this.refresh();
var i = n.dom.width, a = n.dom.height;
this.eachLayer(function(f) {
f.__builtin__ ? r.drawImage(f.dom, 0, 0, i, a) : f.renderToCanvas && (r.save(), f.renderToCanvas(r), r.restore());
});
} else
for (var o = {
inHover: !1,
viewWidth: this._width,
viewHeight: this._height
}, s = this.storage.getDisplayList(!0), l = 0, u = s.length; l < u; l++) {
var c = s[l];
Vc(r, c, o, l === u - 1);
}
return n.dom;
}, t.prototype.getWidth = function() {
return this._width;
}, t.prototype.getHeight = function() {
return this._height;
}, t;
}();
function M3e(t) {
t.registerPainter("canvas", E3e);
}
var I3e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.hasSymbolVisual = !0, n;
}
return e.prototype.getInitialData = function(n) {
if (process.env.NODE_ENV !== "production") {
var r = n.coordinateSystem;
if (r !== "polar" && r !== "cartesian2d")
throw new Error("Line not support coordinateSystem besides cartesian and polar");
}
return cs(null, this, {
useEncodeDefaulter: !0
});
}, e.prototype.getLegendIcon = function(n) {
var r = new Ve(), i = $n("line", 0, n.itemHeight / 2, n.itemWidth, 0, n.lineStyle.stroke, !1);
r.add(i), i.setStyle(n.lineStyle);
var a = this.getData().getVisual("symbol"), o = this.getData().getVisual("symbolRotate"), s = a === "none" ? "circle" : a, l = n.itemHeight * 0.8, u = $n(s, (n.itemWidth - l) / 2, (n.itemHeight - l) / 2, l, l, n.itemStyle.fill);
r.add(u), u.setStyle(n.itemStyle);
var c = n.iconRotate === "inherit" ? o : n.iconRotate || 0;
return u.rotation = c * Math.PI / 180, u.setOrigin([n.itemWidth / 2, n.itemHeight / 2]), s.indexOf("empty") > -1 && (u.style.stroke = u.style.fill, u.style.fill = "#fff", u.style.lineWidth = 2), r;
}, e.type = "series.line", e.dependencies = ["grid", "polar"], e.defaultOption = {
// zlevel: 0,
z: 3,
coordinateSystem: "cartesian2d",
legendHoverLink: !0,
clip: !0,
label: {
position: "top"
},
// itemStyle: {
// },
endLabel: {
show: !1,
valueAnimation: !0,
distance: 8
},
lineStyle: {
width: 2,
type: "solid"
},
emphasis: {
scale: !0
},
// areaStyle: {
// origin of areaStyle. Valid values:
// `'auto'/null/undefined`: from axisLine to data
// `'start'`: from min to data
// `'end'`: from data to max
// origin: 'auto'
// },
// false, 'start', 'end', 'middle'
step: !1,
// Disabled if step is true
smooth: !1,
smoothMonotone: null,
symbol: "emptyCircle",
symbolSize: 4,
symbolRotate: null,
showSymbol: !0,
// `false`: follow the label interval strategy.
// `true`: show all symbols.
// `'auto'`: If possible, show all symbols, otherwise
// follow the label interval strategy.
showAllSymbol: "auto",
// Whether to connect break point.
connectNulls: !1,
// Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.
sampling: "none",
animationEasing: "linear",
// Disable progressive
progressive: 0,
hoverLayerThreshold: 1 / 0,
universalTransition: {
divideShape: "clone"
},
triggerLineEvent: !1
}, e;
}(Ht)
);
function Zh(t, e) {
var n = t.mapDimensionsAll("defaultedLabel"), r = n.length;
if (r === 1) {
var i = Gh(t, e, n[0]);
return i != null ? i + "" : null;
} else if (r) {
for (var a = [], o = 0; o < n.length; o++)
a.push(Gh(t, e, n[o]));
return a.join(" ");
}
}
function Nte(t, e) {
var n = t.mapDimensionsAll("defaultedLabel");
if (!ue(e))
return e + "";
for (var r = [], i = 0; i < n.length; i++) {
var a = t.getDimensionIndex(n[i]);
a >= 0 && r.push(e[a]);
}
return r.join(" ");
}
var Z0 = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i, a) {
var o = t.call(this) || this;
return o.updateData(n, r, i, a), o;
}
return e.prototype._createSymbol = function(n, r, i, a, o) {
this.removeAll();
var s = $n(n, -1, -1, 2, 2, null, o);
s.attr({
z2: 100,
culling: !0,
scaleX: a[0] / 2,
scaleY: a[1] / 2
}), s.drift = D3e, this._symbolType = n, this.add(s);
}, e.prototype.stopSymbolAnimation = function(n) {
this.childAt(0).stopAnimation(null, n);
}, e.prototype.getSymbolType = function() {
return this._symbolType;
}, e.prototype.getSymbolPath = function() {
return this.childAt(0);
}, e.prototype.highlight = function() {
Zs(this.childAt(0));
}, e.prototype.downplay = function() {
Us(this.childAt(0));
}, e.prototype.setZ = function(n, r) {
var i = this.childAt(0);
i.zlevel = n, i.z = r;
}, e.prototype.setDraggable = function(n, r) {
var i = this.childAt(0);
i.draggable = n, i.cursor = !r && n ? "move" : i.cursor;
}, e.prototype.updateData = function(n, r, i, a) {
this.silent = !1;
var o = n.getItemVisual(r, "symbol") || "circle", s = n.hostModel, l = e.getSymbolSize(n, r), u = o !== this._symbolType, c = a && a.disableAnimation;
if (u) {
var f = n.getItemVisual(r, "symbolKeepAspect");
this._createSymbol(o, n, r, l, f);
} else {
var d = this.childAt(0);
d.silent = !1;
var h = {
scaleX: l[0] / 2,
scaleY: l[1] / 2
};
c ? d.attr(h) : Ct(d, h, s, r), uo(d);
}
if (this._updateCommon(n, r, l, i, a), u) {
var d = this.childAt(0);
if (!c) {
var h = {
scaleX: this._sizeX,
scaleY: this._sizeY,
style: {
// Always fadeIn. Because it has fadeOut animation when symbol is removed..
opacity: d.style.opacity
}
};
d.scaleX = d.scaleY = 0, d.style.opacity = 0, Yt(d, h, s, r);
}
}
c && this.childAt(0).stopAnimation("leave");
}, e.prototype._updateCommon = function(n, r, i, a, o) {
var s = this.childAt(0), l = n.hostModel, u, c, f, d, h, p, v, g, m;
if (a && (u = a.emphasisItemStyle, c = a.blurItemStyle, f = a.selectItemStyle, d = a.focus, h = a.blurScope, v = a.labelStatesModels, g = a.hoverScale, m = a.cursorStyle, p = a.emphasisDisabled), !a || n.hasItemOption) {
var y = a && a.itemModel ? a.itemModel : n.getItemModel(r), b = y.getModel("emphasis");
u = b.getModel("itemStyle").getItemStyle(), f = y.getModel(["select", "itemStyle"]).getItemStyle(), c = y.getModel(["blur", "itemStyle"]).getItemStyle(), d = b.get("focus"), h = b.get("blurScope"), p = b.get("disabled"), v = er(y), g = b.getShallow("scale"), m = y.getShallow("cursor");
}
var _ = n.getItemVisual(r, "symbolRotate");
s.attr("rotation", (_ || 0) * Math.PI / 180 || 0);
var O = Ff(n.getItemVisual(r, "symbolOffset"), i);
O && (s.x = O[0], s.y = O[1]), m && s.attr("cursor", m);
var S = n.getItemVisual(r, "style"), x = S.fill;
if (s instanceof lr) {
var C = s.style;
s.useStyle(le({
// TODO other properties like x, y ?
image: C.image,
x: C.x,
y: C.y,
width: C.width,
height: C.height
}, S));
} else
s.__isEmptyBrush ? s.useStyle(le({}, S)) : s.useStyle(S), s.style.decal = null, s.setColor(x, o && o.symbolInnerColor), s.style.strokeNoScale = !0;
var T = n.getItemVisual(r, "liftZ"), w = this._z2;
T != null ? w == null && (this._z2 = s.z2, s.z2 += T) : w != null && (s.z2 = w, this._z2 = null);
var P = o && o.useNameLabel;
Pr(s, v, {
labelFetcher: l,
labelDataIndex: r,
defaultText: $,
inheritColor: x,
defaultOpacity: S.opacity
});
function $(E) {
return P ? n.getName(E) : Zh(n, E);
}
this._sizeX = i[0] / 2, this._sizeY = i[1] / 2;
var A = s.ensureState("emphasis");
A.style = u, s.ensureState("select").style = f, s.ensureState("blur").style = c;
var D = g == null || g === !0 ? Math.max(1.1, 3 / this._sizeY) : isFinite(g) && g > 0 ? +g : 1;
A.scaleX = this._sizeX * D, A.scaleY = this._sizeY * D, this.setSymbolScale(1), bn(this, d, h, p);
}, e.prototype.setSymbolScale = function(n) {
this.scaleX = this.scaleY = n;
}, e.prototype.fadeOut = function(n, r, i) {
var a = this.childAt(0), o = Fe(this).dataIndex, s = i && i.animation;
if (this.silent = a.silent = !0, i && i.fadeLabel) {
var l = a.getTextContent();
l && uu(l, {
style: {
opacity: 0
}
}, r, {
dataIndex: o,
removeOpt: s,
cb: function() {
a.removeTextContent();
}
});
} else
a.removeTextContent();
uu(a, {
style: {
opacity: 0
},
scaleX: 0,
scaleY: 0
}, r, {
dataIndex: o,
cb: n,
removeOpt: s
});
}, e.getSymbolSize = function(n, r) {
return $p(n.getItemVisual(r, "symbolSize"));
}, e;
}(Ve)
);
function D3e(t, e) {
this.parent.drift(t, e);
}
function nP(t, e, n, r) {
return e && !isNaN(e[0]) && !isNaN(e[1]) && !(r.isIgnore && r.isIgnore(n)) && !(r.clipShape && !r.clipShape.contain(e[0], e[1])) && t.getItemVisual(n, "symbol") !== "none";
}
function MV(t) {
return t != null && !Ie(t) && (t = {
isIgnore: t
}), t || {};
}
function IV(t) {
var e = t.hostModel, n = e.getModel("emphasis");
return {
emphasisItemStyle: n.getModel("itemStyle").getItemStyle(),
blurItemStyle: e.getModel(["blur", "itemStyle"]).getItemStyle(),
selectItemStyle: e.getModel(["select", "itemStyle"]).getItemStyle(),
focus: n.get("focus"),
blurScope: n.get("blurScope"),
emphasisDisabled: n.get("disabled"),
hoverScale: n.get("scale"),
labelStatesModels: er(e),
cursorStyle: e.get("cursor")
};
}
var U0 = (
/** @class */
function() {
function t(e) {
this.group = new Ve(), this._SymbolCtor = e || Z0;
}
return t.prototype.updateData = function(e, n) {
this._progressiveEls = null, n = MV(n);
var r = this.group, i = e.hostModel, a = this._data, o = this._SymbolCtor, s = n.disableAnimation, l = IV(e), u = {
disableAnimation: s
}, c = n.getSymbolPoint || function(f) {
return e.getItemLayout(f);
};
a || r.removeAll(), e.diff(a).add(function(f) {
var d = c(f);
if (nP(e, d, f, n)) {
var h = new o(e, f, l, u);
h.setPosition(d), e.setItemGraphicEl(f, h), r.add(h);
}
}).update(function(f, d) {
var h = a.getItemGraphicEl(d), p = c(f);
if (!nP(e, p, f, n)) {
r.remove(h);
return;
}
var v = e.getItemVisual(f, "symbol") || "circle", g = h && h.getSymbolType && h.getSymbolType();
if (!h || g && g !== v)
r.remove(h), h = new o(e, f, l, u), h.setPosition(p);
else {
h.updateData(e, f, l, u);
var m = {
x: p[0],
y: p[1]
};
s ? h.attr(m) : Ct(h, m, i);
}
r.add(h), e.setItemGraphicEl(f, h);
}).remove(function(f) {
var d = a.getItemGraphicEl(f);
d && d.fadeOut(function() {
r.remove(d);
}, i);
}).execute(), this._getSymbolPoint = c, this._data = e;
}, t.prototype.updateLayout = function() {
var e = this, n = this._data;
n && n.eachItemGraphicEl(function(r, i) {
var a = e._getSymbolPoint(i);
r.setPosition(a), r.markRedraw();
});
}, t.prototype.incrementalPrepareUpdate = function(e) {
this._seriesScope = IV(e), this._data = null, this.group.removeAll();
}, t.prototype.incrementalUpdate = function(e, n, r) {
this._progressiveEls = [], r = MV(r);
function i(l) {
l.isGroup || (l.incremental = !0, l.ensureState("emphasis").hoverLayer = !0);
}
for (var a = e.start; a < e.end; a++) {
var o = n.getItemLayout(a);
if (nP(n, o, a, r)) {
var s = new this._SymbolCtor(n, a, this._seriesScope);
s.traverse(i), s.setPosition(o), this.group.add(s), n.setItemGraphicEl(a, s), this._progressiveEls.push(s);
}
}
}, t.prototype.eachRendered = function(e) {
Tu(this._progressiveEls || this.group, e);
}, t.prototype.remove = function(e) {
var n = this.group, r = this._data;
r && e ? r.eachItemGraphicEl(function(i) {
i.fadeOut(function() {
n.remove(i);
}, r.hostModel);
}) : n.removeAll();
}, t;
}()
);
function Bte(t, e, n) {
var r = t.getBaseAxis(), i = t.getOtherAxis(r), a = R3e(i, n), o = r.dim, s = i.dim, l = e.mapDimension(s), u = e.mapDimension(o), c = s === "x" || s === "radius" ? 1 : 0, f = ce(t.dimensions, function(p) {
return e.mapDimension(p);
}), d = !1, h = e.getCalculationInfo("stackResultDimension");
return Ys(
e,
f[0]
/* , dims[1] */
) && (d = !0, f[0] = h), Ys(
e,
f[1]
/* , dims[0] */
) && (d = !0, f[1] = h), {
dataDimsForPoint: f,
valueStart: a,
valueAxisDim: s,
baseAxisDim: o,
stacked: !!d,
valueDim: l,
baseDim: u,
baseDataOffset: c,
stackedOverDimension: e.getCalculationInfo("stackedOverDimension")
};
}
function R3e(t, e) {
var n = 0, r = t.scale.getExtent();
return e === "start" ? n = r[0] : e === "end" ? n = r[1] : St(e) && !isNaN(e) ? n = e : r[0] > 0 ? n = r[0] : r[1] < 0 && (n = r[1]), n;
}
function zte(t, e, n, r) {
var i = NaN;
t.stacked && (i = n.get(n.getCalculationInfo("stackedOverDimension"), r)), isNaN(i) && (i = t.valueStart);
var a = t.baseDataOffset, o = [];
return o[a] = n.get(t.baseDim, r), o[1 - a] = i, e.dataToPoint(o);
}
function k3e(t, e) {
var n = [];
return e.diff(t).add(function(r) {
n.push({
cmd: "+",
idx: r
});
}).update(function(r, i) {
n.push({
cmd: "=",
idx: i,
idx1: r
});
}).remove(function(r) {
n.push({
cmd: "-",
idx: r
});
}).execute(), n;
}
function L3e(t, e, n, r, i, a, o, s) {
for (var l = k3e(t, e), u = [], c = [], f = [], d = [], h = [], p = [], v = [], g = Bte(i, e, o), m = t.getLayout("points") || [], y = e.getLayout("points") || [], b = 0; b < l.length; b++) {
var _ = l[b], O = !0, S = void 0, x = void 0;
switch (_.cmd) {
case "=":
S = _.idx * 2, x = _.idx1 * 2;
var C = m[S], T = m[S + 1], w = y[x], P = y[x + 1];
(isNaN(C) || isNaN(T)) && (C = w, T = P), u.push(C, T), c.push(w, P), f.push(n[S], n[S + 1]), d.push(r[x], r[x + 1]), v.push(e.getRawIndex(_.idx1));
break;
case "+":
var $ = _.idx, A = g.dataDimsForPoint, D = i.dataToPoint([e.get(A[0], $), e.get(A[1], $)]);
x = $ * 2, u.push(D[0], D[1]), c.push(y[x], y[x + 1]);
var E = zte(g, i, e, $);
f.push(E[0], E[1]), d.push(r[x], r[x + 1]), v.push(e.getRawIndex($));
break;
case "-":
O = !1;
}
O && (h.push(_), p.push(p.length));
}
p.sort(function(ee, oe) {
return v[ee] - v[oe];
});
for (var R = u.length, N = Wo(R), V = Wo(R), B = Wo(R), W = Wo(R), F = [], b = 0; b < p.length; b++) {
var Q = p[b], Z = b * 2, ne = Q * 2;
N[Z] = u[ne], N[Z + 1] = u[ne + 1], V[Z] = c[ne], V[Z + 1] = c[ne + 1], B[Z] = f[ne], B[Z + 1] = f[ne + 1], W[Z] = d[ne], W[Z + 1] = d[ne + 1], F[b] = h[Q];
}
return {
current: N,
next: V,
stackedOnCurrent: B,
stackedOnNext: W,
status: F
};
}
var ml = Math.min, yl = Math.max;
function rf(t, e) {
return isNaN(t) || isNaN(e);
}
function uE(t, e, n, r, i, a, o, s, l) {
for (var u, c, f, d, h, p, v = n, g = 0; g < r; g++) {
var m = e[v * 2], y = e[v * 2 + 1];
if (v >= i || v < 0)
break;
if (rf(m, y)) {
if (l) {
v += a;
continue;
}
break;
}
if (v === n)
t[a > 0 ? "moveTo" : "lineTo"](m, y), f = m, d = y;
else {
var b = m - u, _ = y - c;
if (b * b + _ * _ < 0.5) {
v += a;
continue;
}
if (o > 0) {
for (var O = v + a, S = e[O * 2], x = e[O * 2 + 1]; S === m && x === y && g < r; )
g++, O += a, v += a, S = e[O * 2], x = e[O * 2 + 1], m = e[v * 2], y = e[v * 2 + 1], b = m - u, _ = y - c;
var C = g + 1;
if (l)
for (; rf(S, x) && C < r; )
C++, O += a, S = e[O * 2], x = e[O * 2 + 1];
var T = 0.5, w = 0, P = 0, $ = void 0, A = void 0;
if (C >= r || rf(S, x))
h = m, p = y;
else {
w = S - u, P = x - c;
var D = m - u, E = S - m, R = y - c, N = x - y, V = void 0, B = void 0;
if (s === "x") {
V = Math.abs(D), B = Math.abs(E);
var W = w > 0 ? 1 : -1;
h = m - W * V * o, p = y, $ = m + W * B * o, A = y;
} else if (s === "y") {
V = Math.abs(R), B = Math.abs(N);
var F = P > 0 ? 1 : -1;
h = m, p = y - F * V * o, $ = m, A = y + F * B * o;
} else
V = Math.sqrt(D * D + R * R), B = Math.sqrt(E * E + N * N), T = B / (B + V), h = m - w * o * (1 - T), p = y - P * o * (1 - T), $ = m + w * o * T, A = y + P * o * T, $ = ml($, yl(S, m)), A = ml(A, yl(x, y)), $ = yl($, ml(S, m)), A = yl(A, ml(x, y)), w = $ - m, P = A - y, h = m - w * V / B, p = y - P * V / B, h = ml(h, yl(u, m)), p = ml(p, yl(c, y)), h = yl(h, ml(u, m)), p = yl(p, ml(c, y)), w = m - h, P = y - p, $ = m + w * B / V, A = y + P * B / V;
}
t.bezierCurveTo(f, d, h, p, m, y), f = $, d = A;
} else
t.lineTo(m, y);
}
u = m, c = y, v += a;
}
return g;
}
var Vte = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.smooth = 0, this.smoothConstraint = !0;
}
return t;
}()
), N3e = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "ec-polyline", r;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new Vte();
}, e.prototype.buildPath = function(n, r) {
var i = r.points, a = 0, o = i.length / 2;
if (r.connectNulls) {
for (; o > 0 && rf(i[o * 2 - 2], i[o * 2 - 1]); o--)
;
for (; a < o && rf(i[a * 2], i[a * 2 + 1]); a++)
;
}
for (; a < o; )
a += uE(n, i, a, o, o, 1, r.smooth, r.smoothMonotone, r.connectNulls) + 1;
}, e.prototype.getPointOn = function(n, r) {
this.path || (this.createPathProxy(), this.buildPath(this.path, this.shape));
for (var i = this.path, a = i.data, o = os.CMD, s, l, u = r === "x", c = [], f = 0; f < a.length; ) {
var d = a[f++], h = void 0, p = void 0, v = void 0, g = void 0, m = void 0, y = void 0, b = void 0;
switch (d) {
case o.M:
s = a[f++], l = a[f++];
break;
case o.L:
if (h = a[f++], p = a[f++], b = u ? (n - s) / (h - s) : (n - l) / (p - l), b <= 1 && b >= 0) {
var _ = u ? (p - l) * b + l : (h - s) * b + s;
return u ? [n, _] : [_, n];
}
s = h, l = p;
break;
case o.C:
h = a[f++], p = a[f++], v = a[f++], g = a[f++], m = a[f++], y = a[f++];
var O = u ? eO(s, h, v, m, n, c) : eO(l, p, g, y, n, c);
if (O > 0)
for (var S = 0; S < O; S++) {
var x = c[S];
if (x <= 1 && x >= 0) {
var _ = u ? Gn(l, p, g, y, x) : Gn(s, h, v, m, x);
return u ? [n, _] : [_, n];
}
}
s = m, l = y;
break;
}
}
}, e;
}(ot)
), B3e = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e;
}(Vte)
), Fte = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "ec-polygon", r;
}
return e.prototype.getDefaultShape = function() {
return new B3e();
}, e.prototype.buildPath = function(n, r) {
var i = r.points, a = r.stackedOnPoints, o = 0, s = i.length / 2, l = r.smoothMonotone;
if (r.connectNulls) {
for (; s > 0 && rf(i[s * 2 - 2], i[s * 2 - 1]); s--)
;
for (; o < s && rf(i[o * 2], i[o * 2 + 1]); o++)
;
}
for (; o < s; ) {
var u = uE(n, i, o, s, s, 1, r.smooth, l, r.connectNulls);
uE(n, a, o + u - 1, u, s, -1, r.stackedOnSmooth, l, r.connectNulls), o += u + 1, n.closePath();
}
}, e;
}(ot)
);
function Wte(t, e, n, r, i) {
var a = t.getArea(), o = a.x, s = a.y, l = a.width, u = a.height, c = n.get(["lineStyle", "width"]) || 2;
o -= c / 2, s -= c / 2, l += c, u += c, l = Math.ceil(l), o !== Math.floor(o) && (o = Math.floor(o), l++);
var f = new mt({
shape: {
x: o,
y: s,
width: l,
height: u
}
});
if (e) {
var d = t.getBaseAxis(), h = d.isHorizontal(), p = d.inverse;
h ? (p && (f.shape.x += l), f.shape.width = 0) : (p || (f.shape.y += u), f.shape.height = 0);
var v = Me(i) ? function(g) {
i(g, f);
} : null;
Yt(f, {
shape: {
width: l,
height: u,
x: o,
y: s
}
}, n, null, r, v);
}
return f;
}
function Qte(t, e, n) {
var r = t.getArea(), i = mn(r.r0, 1), a = mn(r.r, 1), o = new ii({
shape: {
cx: mn(t.cx, 1),
cy: mn(t.cy, 1),
r0: i,
r: a,
startAngle: r.startAngle,
endAngle: r.endAngle,
clockwise: r.clockwise
}
});
if (e) {
var s = t.getBaseAxis().dim === "angle";
s ? o.shape.endAngle = r.startAngle : o.shape.r = i, Yt(o, {
shape: {
endAngle: r.endAngle,
r: a
}
}, n);
}
return o;
}
function X0(t, e, n, r, i) {
if (t) {
if (t.type === "polar")
return Qte(t, e, n);
if (t.type === "cartesian2d")
return Wte(t, e, n, r, i);
} else return null;
return null;
}
function Wf(t, e) {
return t.type === e;
}
function DV(t, e) {
if (t.length === e.length) {
for (var n = 0; n < t.length; n++)
if (t[n] !== e[n])
return;
return !0;
}
}
function RV(t) {
for (var e = 1 / 0, n = 1 / 0, r = -1 / 0, i = -1 / 0, a = 0; a < t.length; ) {
var o = t[a++], s = t[a++];
isNaN(o) || (e = Math.min(o, e), r = Math.max(o, r)), isNaN(s) || (n = Math.min(s, n), i = Math.max(s, i));
}
return [[e, n], [r, i]];
}
function kV(t, e) {
var n = RV(t), r = n[0], i = n[1], a = RV(e), o = a[0], s = a[1];
return Math.max(Math.abs(r[0] - o[0]), Math.abs(r[1] - o[1]), Math.abs(i[0] - s[0]), Math.abs(i[1] - s[1]));
}
function LV(t) {
return St(t) ? t : t ? 0.5 : 0;
}
function z3e(t, e, n) {
if (!n.valueDim)
return [];
for (var r = e.count(), i = Wo(r * 2), a = 0; a < r; a++) {
var o = zte(n, t, e, a);
i[a * 2] = o[0], i[a * 2 + 1] = o[1];
}
return i;
}
function bl(t, e, n, r) {
var i = e.getBaseAxis(), a = i.dim === "x" || i.dim === "radius" ? 0 : 1, o = [], s = 0, l = [], u = [], c = [], f = [];
if (r) {
for (s = 0; s < t.length; s += 2)
!isNaN(t[s]) && !isNaN(t[s + 1]) && f.push(t[s], t[s + 1]);
t = f;
}
for (s = 0; s < t.length - 2; s += 2)
switch (c[0] = t[s + 2], c[1] = t[s + 3], u[0] = t[s], u[1] = t[s + 1], o.push(u[0], u[1]), n) {
case "end":
l[a] = c[a], l[1 - a] = u[1 - a], o.push(l[0], l[1]);
break;
case "middle":
var d = (u[a] + c[a]) / 2, h = [];
l[a] = h[a] = d, l[1 - a] = u[1 - a], h[1 - a] = c[1 - a], o.push(l[0], l[1]), o.push(h[0], h[1]);
break;
default:
l[a] = u[a], l[1 - a] = c[1 - a], o.push(l[0], l[1]);
}
return o.push(t[s++], t[s++]), o;
}
function V3e(t, e) {
var n = [], r = t.length, i, a;
function o(c, f, d) {
var h = c.coord, p = (d - h) / (f.coord - h), v = wR(p, [c.color, f.color]);
return {
coord: d,
color: v
};
}
for (var s = 0; s < r; s++) {
var l = t[s], u = l.coord;
if (u < 0)
i = l;
else if (u > e) {
a ? n.push(o(a, l, e)) : i && n.push(o(i, l, 0), o(i, l, e));
break;
} else
i && (n.push(o(i, l, 0)), i = null), n.push(l), a = l;
}
return n;
}
function F3e(t, e, n) {
var r = t.getVisual("visualMeta");
if (!(!r || !r.length || !t.count())) {
if (e.type !== "cartesian2d") {
process.env.NODE_ENV !== "production" && console.warn("Visual map on line style is only supported on cartesian2d.");
return;
}
for (var i, a, o = r.length - 1; o >= 0; o--) {
var s = t.getDimensionInfo(r[o].dimension);
if (i = s && s.coordDim, i === "x" || i === "y") {
a = r[o];
break;
}
}
if (!a) {
process.env.NODE_ENV !== "production" && console.warn("Visual map on line style only support x or y dimension.");
return;
}
var l = e.getAxis(i), u = ce(a.stops, function(b) {
return {
coord: l.toGlobalCoord(l.dataToCoord(b.value)),
color: b.color
};
}), c = u.length, f = a.outerColors.slice();
c && u[0].coord > u[c - 1].coord && (u.reverse(), f.reverse());
var d = V3e(u, i === "x" ? n.getWidth() : n.getHeight()), h = d.length;
if (!h && c)
return u[0].coord < 0 ? f[1] ? f[1] : u[c - 1].color : f[0] ? f[0] : u[0].color;
var p = 10, v = d[0].coord - p, g = d[h - 1].coord + p, m = g - v;
if (m < 1e-3)
return "transparent";
k(d, function(b) {
b.offset = (b.coord - v) / m;
}), d.push({
// NOTE: inRangeStopLen may still be 0 if stoplen is zero.
offset: h ? d[h - 1].offset : 0.5,
color: f[1] || "transparent"
}), d.unshift({
offset: h ? d[0].offset : 0.5,
color: f[0] || "transparent"
});
var y = new yp(0, 0, 0, 0, d, !0);
return y[i] = v, y[i + "2"] = g, y;
}
}
function W3e(t, e, n) {
var r = t.get("showAllSymbol"), i = r === "auto";
if (!(r && !i)) {
var a = n.getAxesByScale("ordinal")[0];
if (a && !(i && Q3e(a, e))) {
var o = e.mapDimension(a.dim), s = {};
return k(a.getViewLabels(), function(l) {
var u = a.scale.getRawOrdinalNumber(l.tickValue);
s[u] = 1;
}), function(l) {
return !s.hasOwnProperty(e.get(o, l));
};
}
}
}
function Q3e(t, e) {
var n = t.getExtent(), r = Math.abs(n[1] - n[0]) / t.scale.count();
isNaN(r) && (r = 0);
for (var i = e.count(), a = Math.max(1, Math.round(i / 5)), o = 0; o < i; o += a)
if (Z0.getSymbolSize(
e,
o
// Only for cartesian, where `isHorizontal` exists.
)[t.isHorizontal() ? 1 : 0] * 1.5 > r)
return !1;
return !0;
}
function H3e(t, e) {
return isNaN(t) || isNaN(e);
}
function G3e(t) {
for (var e = t.length / 2; e > 0 && H3e(t[e * 2 - 2], t[e * 2 - 1]); e--)
;
return e - 1;
}
function NV(t, e) {
return [t[e * 2], t[e * 2 + 1]];
}
function j3e(t, e, n) {
for (var r = t.length / 2, i = n === "x" ? 0 : 1, a, o, s = 0, l = -1, u = 0; u < r; u++)
if (o = t[u * 2 + i], !(isNaN(o) || isNaN(t[u * 2 + 1 - i]))) {
if (u === 0) {
a = o;
continue;
}
if (a <= e && o >= e || a >= e && o <= e) {
l = u;
break;
}
s = u, a = o;
}
return {
range: [s, l],
t: (e - a) / (o - a)
};
}
function Hte(t) {
if (t.get(["endLabel", "show"]))
return !0;
for (var e = 0; e < ri.length; e++)
if (t.get([ri[e], "endLabel", "show"]))
return !0;
return !1;
}
function rP(t, e, n, r) {
if (Wf(e, "cartesian2d")) {
var i = r.getModel("endLabel"), a = i.get("valueAnimation"), o = r.getData(), s = {
lastFrameIndex: 0
}, l = Hte(r) ? function(h, p) {
t._endLabelOnDuring(h, p, o, s, a, i, e);
} : null, u = e.getBaseAxis().isHorizontal(), c = Wte(e, n, r, function() {
var h = t._endLabel;
h && n && s.originalX != null && h.attr({
x: s.originalX,
y: s.originalY
});
}, l);
if (!r.get("clip", !0)) {
var f = c.shape, d = Math.max(f.width, f.height);
u ? (f.y -= d, f.height += d * 2) : (f.x -= d, f.width += d * 2);
}
return l && l(1, c), c;
} else
return process.env.NODE_ENV !== "production" && r.get(["endLabel", "show"]) && console.warn("endLabel is not supported for lines in polar systems."), Qte(e, n, r);
}
function Z3e(t, e) {
var n = e.getBaseAxis(), r = n.isHorizontal(), i = n.inverse, a = r ? i ? "right" : "left" : "center", o = r ? "middle" : i ? "top" : "bottom";
return {
normal: {
align: t.get("align") || a,
verticalAlign: t.get("verticalAlign") || o
}
};
}
var U3e = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.init = function() {
var n = new Ve(), r = new U0();
this.group.add(r.group), this._symbolDraw = r, this._lineGroup = n;
}, e.prototype.render = function(n, r, i) {
var a = this, o = n.coordinateSystem, s = this.group, l = n.getData(), u = n.getModel("lineStyle"), c = n.getModel("areaStyle"), f = l.getLayout("points") || [], d = o.type === "polar", h = this._coordSys, p = this._symbolDraw, v = this._polyline, g = this._polygon, m = this._lineGroup, y = !r.ssr && n.get("animation"), b = !c.isEmpty(), _ = c.get("origin"), O = Bte(o, l, _), S = b && z3e(o, l, O), x = n.get("showSymbol"), C = n.get("connectNulls"), T = x && !d && W3e(n, l, o), w = this._data;
w && w.eachItemGraphicEl(function(oe, K) {
oe.__temp && (s.remove(oe), w.setItemGraphicEl(K, null));
}), x || p.remove(), s.add(m);
var P = d ? !1 : n.get("step"), $;
o && o.getArea && n.get("clip", !0) && ($ = o.getArea(), $.width != null ? ($.x -= 0.1, $.y -= 0.1, $.width += 0.2, $.height += 0.2) : $.r0 && ($.r0 -= 0.5, $.r += 0.5)), this._clipShapeForSymbol = $;
var A = F3e(l, o, i) || l.getVisual("style")[l.getVisual("drawType")];
if (!(v && h.type === o.type && P === this._step))
x && p.updateData(l, {
isIgnore: T,
clipShape: $,
disableAnimation: !0,
getSymbolPoint: function(oe) {
return [f[oe * 2], f[oe * 2 + 1]];
}
}), y && this._initSymbolLabelAnimation(l, o, $), P && (f = bl(f, o, P, C), S && (S = bl(S, o, P, C))), v = this._newPolyline(f), b ? g = this._newPolygon(f, S) : g && (m.remove(g), g = this._polygon = null), d || this._initOrUpdateEndLabel(n, o, Of(A)), m.setClipPath(rP(this, o, !0, n));
else {
b && !g ? g = this._newPolygon(f, S) : g && !b && (m.remove(g), g = this._polygon = null), d || this._initOrUpdateEndLabel(n, o, Of(A));
var D = m.getClipPath();
if (D) {
var E = rP(this, o, !1, n);
Yt(D, {
shape: E.shape
}, n);
} else
m.setClipPath(rP(this, o, !0, n));
x && p.updateData(l, {
isIgnore: T,
clipShape: $,
disableAnimation: !0,
getSymbolPoint: function(oe) {
return [f[oe * 2], f[oe * 2 + 1]];
}
}), (!DV(this._stackedOnPoints, S) || !DV(this._points, f)) && (y ? this._doUpdateAnimation(l, S, o, i, P, _, C) : (P && (f = bl(f, o, P, C), S && (S = bl(S, o, P, C))), v.setShape({
points: f
}), g && g.setShape({
points: f,
stackedOnPoints: S
})));
}
var R = n.getModel("emphasis"), N = R.get("focus"), V = R.get("blurScope"), B = R.get("disabled");
if (v.useStyle(Re(
// Use color in lineStyle first
u.getLineStyle(),
{
fill: "none",
stroke: A,
lineJoin: "bevel"
}
)), Tr(v, n, "lineStyle"), v.style.lineWidth > 0 && n.get(["emphasis", "lineStyle", "width"]) === "bolder") {
var W = v.getState("emphasis").style;
W.lineWidth = +v.style.lineWidth + 1;
}
Fe(v).seriesIndex = n.seriesIndex, bn(v, N, V, B);
var F = LV(n.get("smooth")), Q = n.get("smoothMonotone");
if (v.setShape({
smooth: F,
smoothMonotone: Q,
connectNulls: C
}), g) {
var Z = l.getCalculationInfo("stackedOnSeries"), ne = 0;
g.useStyle(Re(c.getAreaStyle(), {
fill: A,
opacity: 0.7,
lineJoin: "bevel",
decal: l.getVisual("style").decal
})), Z && (ne = LV(Z.get("smooth"))), g.setShape({
smooth: F,
stackedOnSmooth: ne,
smoothMonotone: Q,
connectNulls: C
}), Tr(g, n, "areaStyle"), Fe(g).seriesIndex = n.seriesIndex, bn(g, N, V, B);
}
var ee = function(oe) {
a._changePolyState(oe);
};
l.eachItemGraphicEl(function(oe) {
oe && (oe.onHoverStateChange = ee);
}), this._polyline.onHoverStateChange = ee, this._data = l, this._coordSys = o, this._stackedOnPoints = S, this._points = f, this._step = P, this._valueOrigin = _, n.get("triggerLineEvent") && (this.packEventData(n, v), g && this.packEventData(n, g));
}, e.prototype.packEventData = function(n, r) {
Fe(r).eventData = {
componentType: "series",
componentSubType: "line",
componentIndex: n.componentIndex,
seriesIndex: n.seriesIndex,
seriesName: n.name,
seriesType: "line"
};
}, e.prototype.highlight = function(n, r, i, a) {
var o = n.getData(), s = yf(o, a);
if (this._changePolyState("emphasis"), !(s instanceof Array) && s != null && s >= 0) {
var l = o.getLayout("points"), u = o.getItemGraphicEl(s);
if (!u) {
var c = l[s * 2], f = l[s * 2 + 1];
if (isNaN(c) || isNaN(f) || this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(c, f))
return;
var d = n.get("zlevel") || 0, h = n.get("z") || 0;
u = new Z0(o, s), u.x = c, u.y = f, u.setZ(d, h);
var p = u.getSymbolPath().getTextContent();
p && (p.zlevel = d, p.z = h, p.z2 = this._polyline.z2 + 1), u.__temp = !0, o.setItemGraphicEl(s, u), u.stopSymbolAnimation(!0), this.group.add(u);
}
u.highlight();
} else
zt.prototype.highlight.call(this, n, r, i, a);
}, e.prototype.downplay = function(n, r, i, a) {
var o = n.getData(), s = yf(o, a);
if (this._changePolyState("normal"), s != null && s >= 0) {
var l = o.getItemGraphicEl(s);
l && (l.__temp ? (o.setItemGraphicEl(s, null), this.group.remove(l)) : l.downplay());
} else
zt.prototype.downplay.call(this, n, r, i, a);
}, e.prototype._changePolyState = function(n) {
var r = this._polygon;
lO(this._polyline, n), r && lO(r, n);
}, e.prototype._newPolyline = function(n) {
var r = this._polyline;
return r && this._lineGroup.remove(r), r = new N3e({
shape: {
points: n
},
segmentIgnoreThreshold: 2,
z2: 10
}), this._lineGroup.add(r), this._polyline = r, r;
}, e.prototype._newPolygon = function(n, r) {
var i = this._polygon;
return i && this._lineGroup.remove(i), i = new Fte({
shape: {
points: n,
stackedOnPoints: r
},
segmentIgnoreThreshold: 2
}), this._lineGroup.add(i), this._polygon = i, i;
}, e.prototype._initSymbolLabelAnimation = function(n, r, i) {
var a, o, s = r.getBaseAxis(), l = s.inverse;
r.type === "cartesian2d" ? (a = s.isHorizontal(), o = !1) : r.type === "polar" && (a = s.dim === "angle", o = !0);
var u = n.hostModel, c = u.get("animationDuration");
Me(c) && (c = c(null));
var f = u.get("animationDelay") || 0, d = Me(f) ? f(null) : f;
n.eachItemGraphicEl(function(h, p) {
var v = h;
if (v) {
var g = [h.x, h.y], m = void 0, y = void 0, b = void 0;
if (i)
if (o) {
var _ = i, O = r.pointToCoord(g);
a ? (m = _.startAngle, y = _.endAngle, b = -O[1] / 180 * Math.PI) : (m = _.r0, y = _.r, b = O[0]);
} else {
var S = i;
a ? (m = S.x, y = S.x + S.width, b = h.x) : (m = S.y + S.height, y = S.y, b = h.y);
}
var x = y === m ? 0 : (b - m) / (y - m);
l && (x = 1 - x);
var C = Me(f) ? f(p) : c * x + d, T = v.getSymbolPath(), w = T.getTextContent();
v.attr({
scaleX: 0,
scaleY: 0
}), v.animateTo({
scaleX: 1,
scaleY: 1
}, {
duration: 200,
setToFinal: !0,
delay: C
}), w && w.animateFrom({
style: {
opacity: 0
}
}, {
duration: 300,
delay: C
}), T.disableLabelAnimation = !0;
}
});
}, e.prototype._initOrUpdateEndLabel = function(n, r, i) {
var a = n.getModel("endLabel");
if (Hte(n)) {
var o = n.getData(), s = this._polyline, l = o.getLayout("points");
if (!l) {
s.removeTextContent(), this._endLabel = null;
return;
}
var u = this._endLabel;
u || (u = this._endLabel = new gt({
z2: 200
// should be higher than item symbol
}), u.ignoreClip = !0, s.setTextContent(this._endLabel), s.disableLabelAnimation = !0);
var c = G3e(l);
c >= 0 && (Pr(s, er(n, "endLabel"), {
inheritColor: i,
labelFetcher: n,
labelDataIndex: c,
defaultText: function(f, d, h) {
return h != null ? Nte(o, h) : Zh(o, f);
},
enableTextSetter: !0
}, Z3e(a, r)), s.textConfig.position = null);
} else this._endLabel && (this._polyline.removeTextContent(), this._endLabel = null);
}, e.prototype._endLabelOnDuring = function(n, r, i, a, o, s, l) {
var u = this._endLabel, c = this._polyline;
if (u) {
n < 1 && a.originalX == null && (a.originalX = u.x, a.originalY = u.y);
var f = i.getLayout("points"), d = i.hostModel, h = d.get("connectNulls"), p = s.get("precision"), v = s.get("distance") || 0, g = l.getBaseAxis(), m = g.isHorizontal(), y = g.inverse, b = r.shape, _ = y ? m ? b.x : b.y + b.height : m ? b.x + b.width : b.y, O = (m ? v : 0) * (y ? -1 : 1), S = (m ? 0 : -v) * (y ? -1 : 1), x = m ? "x" : "y", C = j3e(f, _, x), T = C.range, w = T[1] - T[0], P = void 0;
if (w >= 1) {
if (w > 1 && !h) {
var $ = NV(f, T[0]);
u.attr({
x: $[0] + O,
y: $[1] + S
}), o && (P = d.getRawValue(T[0]));
} else {
var $ = c.getPointOn(_, x);
$ && u.attr({
x: $[0] + O,
y: $[1] + S
});
var A = d.getRawValue(T[0]), D = d.getRawValue(T[1]);
o && (P = mK(i, p, A, D, C.t));
}
a.lastFrameIndex = T[0];
} else {
var E = n === 1 || a.lastFrameIndex > 0 ? T[0] : 0, $ = NV(f, E);
o && (P = d.getRawValue(E)), u.attr({
x: $[0] + O,
y: $[1] + S
});
}
if (o) {
var R = Sp(u);
typeof R.setLabelText == "function" && R.setLabelText(P);
}
}
}, e.prototype._doUpdateAnimation = function(n, r, i, a, o, s, l) {
var u = this._polyline, c = this._polygon, f = n.hostModel, d = L3e(this._data, n, this._stackedOnPoints, r, this._coordSys, i, this._valueOrigin), h = d.current, p = d.stackedOnCurrent, v = d.next, g = d.stackedOnNext;
if (o && (h = bl(d.current, i, o, l), p = bl(d.stackedOnCurrent, i, o, l), v = bl(d.next, i, o, l), g = bl(d.stackedOnNext, i, o, l)), kV(h, v) > 3e3 || c && kV(p, g) > 3e3) {
u.stopAnimation(), u.setShape({
points: v
}), c && (c.stopAnimation(), c.setShape({
points: v,
stackedOnPoints: g
}));
return;
}
u.shape.__points = d.current, u.shape.points = h;
var m = {
shape: {
points: v
}
};
d.current !== h && (m.shape.__points = d.next), u.stopAnimation(), Ct(u, m, f), c && (c.setShape({
// Reuse the points with polyline.
points: h,
stackedOnPoints: p
}), c.stopAnimation(), Ct(c, {
shape: {
stackedOnPoints: g
}
}, f), u.shape.points !== c.shape.points && (c.shape.points = u.shape.points));
for (var y = [], b = d.status, _ = 0; _ < b.length; _++) {
var O = b[_].cmd;
if (O === "=") {
var S = n.getItemGraphicEl(b[_].idx1);
S && y.push({
el: S,
ptIdx: _
// Index of points
});
}
}
u.animators && u.animators.length && u.animators[0].during(function() {
c && c.dirtyShape();
for (var x = u.shape.__points, C = 0; C < y.length; C++) {
var T = y[C].el, w = y[C].ptIdx * 2;
T.x = x[w], T.y = x[w + 1], T.markRedraw();
}
});
}, e.prototype.remove = function(n) {
var r = this.group, i = this._data;
this._lineGroup.removeAll(), this._symbolDraw.remove(!0), i && i.eachItemGraphicEl(function(a, o) {
a.__temp && (r.remove(a), i.setItemGraphicEl(o, null));
}), this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null;
}, e.type = "line", e;
}(zt)
);
function Y0(t, e) {
return {
seriesType: t,
plan: Tp(),
reset: function(n) {
var r = n.getData(), i = n.coordinateSystem, a = n.pipelineContext, o = e || a.large;
if (i) {
var s = ce(i.dimensions, function(h) {
return r.mapDimension(h);
}).slice(0, 2), l = s.length, u = r.getCalculationInfo("stackResultDimension");
Ys(r, s[0]) && (s[0] = u), Ys(r, s[1]) && (s[1] = u);
var c = r.getStore(), f = r.getDimensionIndex(s[0]), d = r.getDimensionIndex(s[1]);
return l && {
progress: function(h, p) {
for (var v = h.end - h.start, g = o && Wo(v * l), m = [], y = [], b = h.start, _ = 0; b < h.end; b++) {
var O = void 0;
if (l === 1) {
var S = c.get(f, b);
O = i.dataToPoint(S, null, y);
} else
m[0] = c.get(f, b), m[1] = c.get(d, b), O = i.dataToPoint(m, null, y);
o ? (g[_++] = O[0], g[_++] = O[1]) : p.setItemLayout(b, O.slice());
}
o && p.setLayout("points", g);
}
};
}
}
};
}
var X3e = {
average: function(t) {
for (var e = 0, n = 0, r = 0; r < t.length; r++)
isNaN(t[r]) || (e += t[r], n++);
return n === 0 ? NaN : e / n;
},
sum: function(t) {
for (var e = 0, n = 0; n < t.length; n++)
e += t[n] || 0;
return e;
},
max: function(t) {
for (var e = -1 / 0, n = 0; n < t.length; n++)
t[n] > e && (e = t[n]);
return isFinite(e) ? e : NaN;
},
min: function(t) {
for (var e = 1 / 0, n = 0; n < t.length; n++)
t[n] < e && (e = t[n]);
return isFinite(e) ? e : NaN;
},
minmax: function(t) {
for (var e = -1 / 0, n = -1 / 0, r = 0; r < t.length; r++) {
var i = t[r], a = Math.abs(i);
a > e && (e = a, n = i);
}
return isFinite(n) ? n : NaN;
},
// TODO
// Median
nearest: function(t) {
return t[0];
}
}, Y3e = function(t) {
return Math.round(t.length / 2);
};
function Gte(t) {
return {
seriesType: t,
// FIXME:TS never used, so comment it
// modifyOutputEnd: true,
reset: function(e, n, r) {
var i = e.getData(), a = e.get("sampling"), o = e.coordinateSystem, s = i.count();
if (s > 10 && o.type === "cartesian2d" && a) {
var l = o.getBaseAxis(), u = o.getOtherAxis(l), c = l.getExtent(), f = r.getDevicePixelRatio(), d = Math.abs(c[1] - c[0]) * (f || 1), h = Math.round(s / d);
if (isFinite(h) && h > 1) {
a === "lttb" && e.setData(i.lttbDownSample(i.mapDimension(u.dim), 1 / h));
var p = void 0;
Oe(a) ? p = X3e[a] : Me(a) && (p = a), p && e.setData(i.downSample(i.mapDimension(u.dim), 1 / h, p, Y3e));
}
}
}
};
}
function q3e(t) {
t.registerChartView(U3e), t.registerSeriesModel(I3e), t.registerLayout(Y0("line", !0)), t.registerVisual({
seriesType: "line",
reset: function(e) {
var n = e.getData(), r = e.getModel("lineStyle").getLineStyle();
r && !r.stroke && (r.stroke = n.getVisual("style").fill), n.setVisual("legendLineStyle", r);
}
}), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, Gte("line"));
}
var Bm = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.getInitialData = function(n, r) {
return cs(null, this, {
useEncodeDefaulter: !0
});
}, e.prototype.getMarkerPosition = function(n, r, i) {
var a = this.coordinateSystem;
if (a && a.clampData) {
var o = a.clampData(n), s = a.dataToPoint(o);
if (i)
k(a.getAxes(), function(d, h) {
if (d.type === "category" && r != null) {
var p = d.getTicksCoords(), v = d.getTickModel().get("alignWithLabel"), g = o[h], m = r[h] === "x1" || r[h] === "y1";
if (m && !v && (g += 1), p.length < 2)
return;
if (p.length === 2) {
s[h] = d.toGlobalCoord(d.getExtent()[m ? 1 : 0]);
return;
}
for (var y = void 0, b = void 0, _ = 1, O = 0; O < p.length; O++) {
var S = p[O].coord, x = O === p.length - 1 ? p[O - 1].tickValue + _ : p[O].tickValue;
if (x === g) {
b = S;
break;
} else if (x < g)
y = S;
else if (y != null && x > g) {
b = (S + y) / 2;
break;
}
O === 1 && (_ = x - p[0].tickValue);
}
b == null && (y ? y && (b = p[p.length - 1].coord) : b = p[0].coord), s[h] = d.toGlobalCoord(b);
}
});
else {
var l = this.getData(), u = l.getLayout("offset"), c = l.getLayout("size"), f = a.getBaseAxis().isHorizontal() ? 0 : 1;
s[f] += u + c / 2;
}
return s;
}
return [NaN, NaN];
}, e.type = "series.__base_bar__", e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "cartesian2d",
legendHoverLink: !0,
// stack: null
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
barMinHeight: 0,
barMinAngle: 0,
// cursor: null,
large: !1,
largeThreshold: 400,
progressive: 3e3,
progressiveChunkMode: "mod"
}, e;
}(Ht)
);
Ht.registerClass(Bm);
var K3e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.getInitialData = function() {
return cs(null, this, {
useEncodeDefaulter: !0,
createInvertedIndices: !!this.get("realtimeSort", !0) || null
});
}, e.prototype.getProgressive = function() {
return this.get("large") ? this.get("progressive") : !1;
}, e.prototype.getProgressiveThreshold = function() {
var n = this.get("progressiveThreshold"), r = this.get("largeThreshold");
return r > n && (n = r), n;
}, e.prototype.brushSelector = function(n, r, i) {
return i.rect(r.getItemLayout(n));
}, e.type = "series.bar", e.dependencies = ["grid", "polar"], e.defaultOption = Pu(Bm.defaultOption, {
// If clipped
// Only available on cartesian2d
clip: !0,
roundCap: !1,
showBackground: !1,
backgroundStyle: {
color: "rgba(180, 180, 180, 0.2)",
borderColor: null,
borderWidth: 0,
borderType: "solid",
borderRadius: 0,
shadowBlur: 0,
shadowColor: null,
shadowOffsetX: 0,
shadowOffsetY: 0,
opacity: 1
},
select: {
itemStyle: {
borderColor: "#212121"
}
},
realtimeSort: !1
}), e;
}(Bm)
), J3e = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.cx = 0, this.cy = 0, this.r0 = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0;
}
return t;
}()
), MO = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "sausage", r;
}
return e.prototype.getDefaultShape = function() {
return new J3e();
}, e.prototype.buildPath = function(n, r) {
var i = r.cx, a = r.cy, o = Math.max(r.r0 || 0, 0), s = Math.max(r.r, 0), l = (s - o) * 0.5, u = o + l, c = r.startAngle, f = r.endAngle, d = r.clockwise, h = Math.PI * 2, p = d ? f - c < h : c - f < h;
p || (c = f - (d ? h : -h));
var v = Math.cos(c), g = Math.sin(c), m = Math.cos(f), y = Math.sin(f);
p ? (n.moveTo(v * o + i, g * o + a), n.arc(v * u + i, g * u + a, l, -Math.PI + c, c, !d)) : n.moveTo(v * s + i, g * s + a), n.arc(i, a, s, c, f, !d), n.arc(m * u + i, y * u + a, l, f - Math.PI * 2, f - Math.PI, !d), o !== 0 && n.arc(i, a, o, f, c, d);
}, e;
}(ot)
);
function e6e(t, e) {
e = e || {};
var n = e.isRoundCap;
return function(r, i, a) {
var o = i.position;
if (!o || o instanceof Array)
return aO(r, i, a);
var s = t(o), l = i.distance != null ? i.distance : 5, u = this.shape, c = u.cx, f = u.cy, d = u.r, h = u.r0, p = (d + h) / 2, v = u.startAngle, g = u.endAngle, m = (v + g) / 2, y = n ? Math.abs(d - h) / 2 : 0, b = Math.cos, _ = Math.sin, O = c + d * b(v), S = f + d * _(v), x = "left", C = "top";
switch (s) {
case "startArc":
O = c + (h - l) * b(m), S = f + (h - l) * _(m), x = "center", C = "top";
break;
case "insideStartArc":
O = c + (h + l) * b(m), S = f + (h + l) * _(m), x = "center", C = "bottom";
break;
case "startAngle":
O = c + p * b(v) + Ob(v, l + y, !1), S = f + p * _(v) + Sb(v, l + y, !1), x = "right", C = "middle";
break;
case "insideStartAngle":
O = c + p * b(v) + Ob(v, -l + y, !1), S = f + p * _(v) + Sb(v, -l + y, !1), x = "left", C = "middle";
break;
case "middle":
O = c + p * b(m), S = f + p * _(m), x = "center", C = "middle";
break;
case "endArc":
O = c + (d + l) * b(m), S = f + (d + l) * _(m), x = "center", C = "bottom";
break;
case "insideEndArc":
O = c + (d - l) * b(m), S = f + (d - l) * _(m), x = "center", C = "top";
break;
case "endAngle":
O = c + p * b(g) + Ob(g, l + y, !0), S = f + p * _(g) + Sb(g, l + y, !0), x = "left", C = "middle";
break;
case "insideEndAngle":
O = c + p * b(g) + Ob(g, -l + y, !0), S = f + p * _(g) + Sb(g, -l + y, !0), x = "right", C = "middle";
break;
default:
return aO(r, i, a);
}
return r = r || {}, r.x = O, r.y = S, r.align = x, r.verticalAlign = C, r;
};
}
function t6e(t, e, n, r) {
if (St(r)) {
t.setTextConfig({
rotation: r
});
return;
} else if (ue(e)) {
t.setTextConfig({
rotation: 0
});
return;
}
var i = t.shape, a = i.clockwise ? i.startAngle : i.endAngle, o = i.clockwise ? i.endAngle : i.startAngle, s = (a + o) / 2, l, u = n(e);
switch (u) {
case "startArc":
case "insideStartArc":
case "middle":
case "insideEndArc":
case "endArc":
l = s;
break;
case "startAngle":
case "insideStartAngle":
l = a;
break;
case "endAngle":
case "insideEndAngle":
l = o;
break;
default:
t.setTextConfig({
rotation: 0
});
return;
}
var c = Math.PI * 1.5 - l;
u === "middle" && c > Math.PI / 2 && c < Math.PI * 1.5 && (c -= Math.PI), t.setTextConfig({
rotation: c
});
}
function Ob(t, e, n) {
return e * Math.sin(t) * (n ? -1 : 1);
}
function Sb(t, e, n) {
return e * Math.cos(t) * (n ? 1 : -1);
}
function Fc(t, e, n) {
var r = t.get("borderRadius");
if (r == null)
return n ? {
cornerRadius: 0
} : null;
ue(r) || (r = [r, r, r, r]);
var i = Math.abs(e.r || 0 - e.r0 || 0);
return {
cornerRadius: ce(r, function(a) {
return lo(a, i);
})
};
}
var iP = Math.max, aP = Math.min;
function n6e(t, e) {
var n = t.getArea && t.getArea();
if (Wf(t, "cartesian2d")) {
var r = t.getBaseAxis();
if (r.type !== "category" || !r.onBand) {
var i = e.getLayout("bandWidth");
r.isHorizontal() ? (n.x -= i, n.width += i * 2) : (n.y -= i, n.height += i * 2);
}
}
return n;
}
var r6e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t.call(this) || this;
return n.type = e.type, n._isFirstFrame = !0, n;
}
return e.prototype.render = function(n, r, i, a) {
this._model = n, this._removeOnRenderedListener(i), this._updateDrawMode(n);
var o = n.get("coordinateSystem");
o === "cartesian2d" || o === "polar" ? (this._progressiveEls = null, this._isLargeDraw ? this._renderLarge(n, r, i) : this._renderNormal(n, r, i, a)) : process.env.NODE_ENV !== "production" && dn("Only cartesian2d and polar supported for bar.");
}, e.prototype.incrementalPrepareRender = function(n) {
this._clear(), this._updateDrawMode(n), this._updateLargeClip(n);
}, e.prototype.incrementalRender = function(n, r) {
this._progressiveEls = [], this._incrementalRenderLarge(n, r);
}, e.prototype.eachRendered = function(n) {
Tu(this._progressiveEls || this.group, n);
}, e.prototype._updateDrawMode = function(n) {
var r = n.pipelineContext.large;
(this._isLargeDraw == null || r !== this._isLargeDraw) && (this._isLargeDraw = r, this._clear());
}, e.prototype._renderNormal = function(n, r, i, a) {
var o = this.group, s = n.getData(), l = this._data, u = n.coordinateSystem, c = u.getBaseAxis(), f;
u.type === "cartesian2d" ? f = c.isHorizontal() : u.type === "polar" && (f = c.dim === "angle");
var d = n.isAnimationEnabled() ? n : null, h = i6e(n, u);
h && this._enableRealtimeSort(h, s, i);
var p = n.get("clip", !0) || h, v = n6e(u, s);
o.removeClipPath();
var g = n.get("roundCap", !0), m = n.get("showBackground", !0), y = n.getModel("backgroundStyle"), b = y.get("borderRadius") || 0, _ = [], O = this._backgroundEls, S = a && a.isInitSort, x = a && a.type === "changeAxisOrder";
function C(P) {
var $ = xb[u.type](s, P), A = f6e(u, f, $);
return A.useStyle(y.getItemStyle()), u.type === "cartesian2d" ? A.setShape("r", b) : A.setShape("cornerRadius", b), _[P] = A, A;
}
s.diff(l).add(function(P) {
var $ = s.getItemModel(P), A = xb[u.type](s, P, $);
if (m && C(P), !(!s.hasValue(P) || !WV[u.type](A))) {
var D = !1;
p && (D = BV[u.type](v, A));
var E = zV[u.type](n, s, P, A, f, d, c.model, !1, g);
h && (E.forceLabelAnimation = !0), QV(E, s, P, $, A, n, f, u.type === "polar"), S ? E.attr({
shape: A
}) : h ? VV(h, d, E, A, P, f, !1, !1) : Yt(E, {
shape: A
}, n, P), s.setItemGraphicEl(P, E), o.add(E), E.ignore = D;
}
}).update(function(P, $) {
var A = s.getItemModel(P), D = xb[u.type](s, P, A);
if (m) {
var E = void 0;
O.length === 0 ? E = C($) : (E = O[$], E.useStyle(y.getItemStyle()), u.type === "cartesian2d" ? E.setShape("r", b) : E.setShape("cornerRadius", b), _[P] = E);
var R = xb[u.type](s, P), N = Zte(f, R, u);
Ct(E, {
shape: N
}, d, P);
}
var V = l.getItemGraphicEl($);
if (!s.hasValue(P) || !WV[u.type](D)) {
o.remove(V);
return;
}
var B = !1;
if (p && (B = BV[u.type](v, D), B && o.remove(V)), V ? uo(V) : V = zV[u.type](n, s, P, D, f, d, c.model, !!V, g), h && (V.forceLabelAnimation = !0), x) {
var W = V.getTextContent();
if (W) {
var F = Sp(W);
F.prevValue != null && (F.prevValue = F.value);
}
} else
QV(V, s, P, A, D, n, f, u.type === "polar");
S ? V.attr({
shape: D
}) : h ? VV(h, d, V, D, P, f, !0, x) : Ct(V, {
shape: D
}, n, P, null), s.setItemGraphicEl(P, V), V.ignore = B, o.add(V);
}).remove(function(P) {
var $ = l.getItemGraphicEl(P);
$ && $m($, n, P);
}).execute();
var T = this._backgroundGroup || (this._backgroundGroup = new Ve());
T.removeAll();
for (var w = 0; w < _.length; ++w)
T.add(_[w]);
o.add(T), this._backgroundEls = _, this._data = s;
}, e.prototype._renderLarge = function(n, r, i) {
this._clear(), GV(n, this.group), this._updateLargeClip(n);
}, e.prototype._incrementalRenderLarge = function(n, r) {
this._removeBackground(), GV(r, this.group, this._progressiveEls, !0);
}, e.prototype._updateLargeClip = function(n) {
var r = n.get("clip", !0) && X0(n.coordinateSystem, !1, n), i = this.group;
r ? i.setClipPath(r) : i.removeClipPath();
}, e.prototype._enableRealtimeSort = function(n, r, i) {
var a = this;
if (r.count()) {
var o = n.baseAxis;
if (this._isFirstFrame)
this._dispatchInitSort(r, n, i), this._isFirstFrame = !1;
else {
var s = function(l) {
var u = r.getItemGraphicEl(l), c = u && u.shape;
return c && // The result should be consistent with the initial sort by data value.
// Do not support the case that both positive and negative exist.
Math.abs(o.isHorizontal() ? c.height : c.width) || 0;
};
this._onRendered = function() {
a._updateSortWithinSameData(r, s, o, i);
}, i.getZr().on("rendered", this._onRendered);
}
}
}, e.prototype._dataSort = function(n, r, i) {
var a = [];
return n.each(n.mapDimension(r.dim), function(o, s) {
var l = i(s);
l = l ?? NaN, a.push({
dataIndex: s,
mappedValue: l,
ordinalNumber: o
});
}), a.sort(function(o, s) {
return s.mappedValue - o.mappedValue;
}), {
ordinalNumbers: ce(a, function(o) {
return o.ordinalNumber;
})
};
}, e.prototype._isOrderChangedWithinSameData = function(n, r, i) {
for (var a = i.scale, o = n.mapDimension(i.dim), s = Number.MAX_VALUE, l = 0, u = a.getOrdinalMeta().categories.length; l < u; ++l) {
var c = n.rawIndexOf(o, a.getRawOrdinalNumber(l)), f = c < 0 ? Number.MIN_VALUE : r(n.indexOfRawIndex(c));
if (f > s)
return !0;
s = f;
}
return !1;
}, e.prototype._isOrderDifferentInView = function(n, r) {
for (var i = r.scale, a = i.getExtent(), o = Math.max(0, a[0]), s = Math.min(a[1], i.getOrdinalMeta().categories.length - 1); o <= s; ++o)
if (n.ordinalNumbers[o] !== i.getRawOrdinalNumber(o))
return !0;
}, e.prototype._updateSortWithinSameData = function(n, r, i, a) {
if (this._isOrderChangedWithinSameData(n, r, i)) {
var o = this._dataSort(n, i, r);
this._isOrderDifferentInView(o, i) && (this._removeOnRenderedListener(a), a.dispatchAction({
type: "changeAxisOrder",
componentType: i.dim + "Axis",
axisId: i.index,
sortInfo: o
}));
}
}, e.prototype._dispatchInitSort = function(n, r, i) {
var a = r.baseAxis, o = this._dataSort(n, a, function(s) {
return n.get(n.mapDimension(r.otherAxis.dim), s);
});
i.dispatchAction({
type: "changeAxisOrder",
componentType: a.dim + "Axis",
isInitSort: !0,
axisId: a.index,
sortInfo: o
});
}, e.prototype.remove = function(n, r) {
this._clear(this._model), this._removeOnRenderedListener(r);
}, e.prototype.dispose = function(n, r) {
this._removeOnRenderedListener(r);
}, e.prototype._removeOnRenderedListener = function(n) {
this._onRendered && (n.getZr().off("rendered", this._onRendered), this._onRendered = null);
}, e.prototype._clear = function(n) {
var r = this.group, i = this._data;
n && n.isAnimationEnabled() && i && !this._isLargeDraw ? (this._removeBackground(), this._backgroundEls = [], i.eachItemGraphicEl(function(a) {
$m(a, n, Fe(a).dataIndex);
})) : r.removeAll(), this._data = null, this._isFirstFrame = !0;
}, e.prototype._removeBackground = function() {
this.group.remove(this._backgroundGroup), this._backgroundGroup = null;
}, e.type = "bar", e;
}(zt)
), BV = {
cartesian2d: function(t, e) {
var n = e.width < 0 ? -1 : 1, r = e.height < 0 ? -1 : 1;
n < 0 && (e.x += e.width, e.width = -e.width), r < 0 && (e.y += e.height, e.height = -e.height);
var i = t.x + t.width, a = t.y + t.height, o = iP(e.x, t.x), s = aP(e.x + e.width, i), l = iP(e.y, t.y), u = aP(e.y + e.height, a), c = s < o, f = u < l;
return e.x = c && o > i ? s : o, e.y = f && l > a ? u : l, e.width = c ? 0 : s - o, e.height = f ? 0 : u - l, n < 0 && (e.x += e.width, e.width = -e.width), r < 0 && (e.y += e.height, e.height = -e.height), c || f;
},
polar: function(t, e) {
var n = e.r0 <= e.r ? 1 : -1;
if (n < 0) {
var r = e.r;
e.r = e.r0, e.r0 = r;
}
var i = aP(e.r, t.r), a = iP(e.r0, t.r0);
e.r = i, e.r0 = a;
var o = i - a < 0;
if (n < 0) {
var r = e.r;
e.r = e.r0, e.r0 = r;
}
return o;
}
}, zV = {
cartesian2d: function(t, e, n, r, i, a, o, s, l) {
var u = new mt({
shape: le({}, r),
z2: 1
});
if (u.__dataIndex = n, u.name = "item", a) {
var c = u.shape, f = i ? "height" : "width";
c[f] = 0;
}
return u;
},
polar: function(t, e, n, r, i, a, o, s, l) {
var u = !i && l ? MO : ii, c = new u({
shape: r,
z2: 1
});
c.name = "item";
var f = jte(i);
if (c.calculateTextPosition = e6e(f, {
isRoundCap: u === MO
}), a) {
var d = c.shape, h = i ? "r" : "endAngle", p = {};
d[h] = i ? r.r0 : r.startAngle, p[h] = r[h], (s ? Ct : Yt)(c, {
shape: p
// __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue
}, a);
}
return c;
}
};
function i6e(t, e) {
var n = t.get("realtimeSort", !0), r = e.getBaseAxis();
if (process.env.NODE_ENV !== "production" && n && (r.type !== "category" && dn("`realtimeSort` will not work because this bar series is not based on a category axis."), e.type !== "cartesian2d" && dn("`realtimeSort` will not work because this bar series is not on cartesian2d.")), n && r.type === "category" && e.type === "cartesian2d")
return {
baseAxis: r,
otherAxis: e.getOtherAxis(r)
};
}
function VV(t, e, n, r, i, a, o, s) {
var l, u;
a ? (u = {
x: r.x,
width: r.width
}, l = {
y: r.y,
height: r.height
}) : (u = {
y: r.y,
height: r.height
}, l = {
x: r.x,
width: r.width
}), s || (o ? Ct : Yt)(n, {
shape: l
}, e, i, null);
var c = e ? t.baseAxis.model : null;
(o ? Ct : Yt)(n, {
shape: u
}, c, i);
}
function FV(t, e) {
for (var n = 0; n < e.length; n++)
if (!isFinite(t[e[n]]))
return !0;
return !1;
}
var a6e = ["x", "y", "width", "height"], o6e = ["cx", "cy", "r", "startAngle", "endAngle"], WV = {
cartesian2d: function(t) {
return !FV(t, a6e);
},
polar: function(t) {
return !FV(t, o6e);
}
}, xb = {
// itemModel is only used to get borderWidth, which is not needed
// when calculating bar background layout.
cartesian2d: function(t, e, n) {
var r = t.getItemLayout(e), i = n ? l6e(n, r) : 0, a = r.width > 0 ? 1 : -1, o = r.height > 0 ? 1 : -1;
return {
x: r.x + a * i / 2,
y: r.y + o * i / 2,
width: r.width - a * i,
height: r.height - o * i
};
},
polar: function(t, e, n) {
var r = t.getItemLayout(e);
return {
cx: r.cx,
cy: r.cy,
r0: r.r0,
r: r.r,
startAngle: r.startAngle,
endAngle: r.endAngle,
clockwise: r.clockwise
};
}
};
function s6e(t) {
return t.startAngle != null && t.endAngle != null && t.startAngle === t.endAngle;
}
function jte(t) {
return /* @__PURE__ */ function(e) {
var n = e ? "Arc" : "Angle";
return function(r) {
switch (r) {
case "start":
case "insideStart":
case "end":
case "insideEnd":
return r + n;
default:
return r;
}
};
}(t);
}
function QV(t, e, n, r, i, a, o, s) {
var l = e.getItemVisual(n, "style");
if (s) {
if (!a.get("roundCap")) {
var c = t.shape, f = Fc(r.getModel("itemStyle"), c, !0);
le(c, f), t.setShape(c);
}
} else {
var u = r.get(["itemStyle", "borderRadius"]) || 0;
t.setShape("r", u);
}
t.useStyle(l);
var d = r.getShallow("cursor");
d && t.attr("cursor", d);
var h = s ? o ? i.r >= i.r0 ? "endArc" : "startArc" : i.endAngle >= i.startAngle ? "endAngle" : "startAngle" : o ? i.height >= 0 ? "bottom" : "top" : i.width >= 0 ? "right" : "left", p = er(r);
Pr(t, p, {
labelFetcher: a,
labelDataIndex: n,
defaultText: Zh(a.getData(), n),
inheritColor: l.fill,
defaultOpacity: l.opacity,
defaultOutsidePosition: h
});
var v = t.getTextContent();
if (s && v) {
var g = r.get(["label", "position"]);
t.textConfig.inside = g === "middle" ? !0 : null, t6e(t, g === "outside" ? h : g, jte(o), r.get(["label", "rotate"]));
}
hJ(v, p, a.getRawValue(n), function(y) {
return Nte(e, y);
});
var m = r.getModel(["emphasis"]);
bn(t, m.get("focus"), m.get("blurScope"), m.get("disabled")), Tr(t, r), s6e(i) && (t.style.fill = "none", t.style.stroke = "none", k(t.states, function(y) {
y.style && (y.style.fill = y.style.stroke = "none");
}));
}
function l6e(t, e) {
var n = t.get(["itemStyle", "borderColor"]);
if (!n || n === "none")
return 0;
var r = t.get(["itemStyle", "borderWidth"]) || 0, i = isNaN(e.width) ? Number.MAX_VALUE : Math.abs(e.width), a = isNaN(e.height) ? Number.MAX_VALUE : Math.abs(e.height);
return Math.min(r, i, a);
}
var u6e = (
/** @class */
/* @__PURE__ */ function() {
function t() {
}
return t;
}()
), HV = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "largeBar", r;
}
return e.prototype.getDefaultShape = function() {
return new u6e();
}, e.prototype.buildPath = function(n, r) {
for (var i = r.points, a = this.baseDimIdx, o = 1 - this.baseDimIdx, s = [], l = [], u = this.barWidth, c = 0; c < i.length; c += 3)
l[a] = u, l[o] = i[c + 2], s[a] = i[c + a], s[o] = i[c + o], n.rect(s[0], s[1], l[0], l[1]);
}, e;
}(ot)
);
function GV(t, e, n, r) {
var i = t.getData(), a = i.getLayout("valueAxisHorizontal") ? 1 : 0, o = i.getLayout("largeDataIndices"), s = i.getLayout("size"), l = t.getModel("backgroundStyle"), u = i.getLayout("largeBackgroundPoints");
if (u) {
var c = new HV({
shape: {
points: u
},
incremental: !!r,
silent: !0,
z2: 0
});
c.baseDimIdx = a, c.largeDataIndices = o, c.barWidth = s, c.useStyle(l.getItemStyle()), e.add(c), n && n.push(c);
}
var f = new HV({
shape: {
points: i.getLayout("largePoints")
},
incremental: !!r,
ignoreCoarsePointer: !0,
z2: 1
});
f.baseDimIdx = a, f.largeDataIndices = o, f.barWidth = s, e.add(f), f.useStyle(i.getVisual("style")), Fe(f).seriesIndex = t.seriesIndex, t.get("silent") || (f.on("mousedown", jV), f.on("mousemove", jV)), n && n.push(f);
}
var jV = cw(function(t) {
var e = this, n = c6e(e, t.offsetX, t.offsetY);
Fe(e).dataIndex = n >= 0 ? n : null;
}, 30, !1);
function c6e(t, e, n) {
for (var r = t.baseDimIdx, i = 1 - r, a = t.shape.points, o = t.largeDataIndices, s = [], l = [], u = t.barWidth, c = 0, f = a.length / 3; c < f; c++) {
var d = c * 3;
if (l[r] = u, l[i] = a[d + 2], s[r] = a[d + r], s[i] = a[d + i], l[i] < 0 && (s[i] += l[i], l[i] = -l[i]), e >= s[0] && e <= s[0] + l[0] && n >= s[1] && n <= s[1] + l[1])
return o[c];
}
return -1;
}
function Zte(t, e, n) {
if (Wf(n, "cartesian2d")) {
var r = e, i = n.getArea();
return {
x: t ? r.x : i.x,
y: t ? i.y : r.y,
width: t ? r.width : i.width,
height: t ? i.height : r.height
};
} else {
var i = n.getArea(), a = e;
return {
cx: i.cx,
cy: i.cy,
r0: t ? i.r0 : a.r0,
r: t ? i.r : a.r,
startAngle: t ? a.startAngle : 0,
endAngle: t ? a.endAngle : Math.PI * 2
};
}
}
function f6e(t, e, n) {
var r = t.type === "polar" ? ii : mt;
return new r({
shape: Zte(e, n, t),
silent: !0,
z2: 0
});
}
function d6e(t) {
t.registerChartView(r6e), t.registerSeriesModel(K3e), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, Ue(Kee, "bar")), t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, Jee("bar")), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, Gte("bar")), t.registerAction({
type: "changeAxisOrder",
event: "changeAxisOrder",
update: "update"
}, function(e, n) {
var r = e.componentType || "series";
n.eachComponent({
mainType: r,
query: e
}, function(i) {
e.sortInfo && i.axis.setCategorySortInfo(e.sortInfo);
});
});
}
var ZV = Math.PI * 2, wb = Math.PI / 180;
function Ute(t, e) {
return Rn(t.getBoxLayoutParams(), {
width: e.getWidth(),
height: e.getHeight()
});
}
function Xte(t, e) {
var n = Ute(t, e), r = t.get("center"), i = t.get("radius");
ue(i) || (i = [0, i]);
var a = _e(n.width, e.getWidth()), o = _e(n.height, e.getHeight()), s = Math.min(a, o), l = _e(i[0], s / 2), u = _e(i[1], s / 2), c, f, d = t.coordinateSystem;
if (d) {
var h = d.dataToPoint(r);
c = h[0] || 0, f = h[1] || 0;
} else
ue(r) || (r = [r, r]), c = _e(r[0], a) + n.x, f = _e(r[1], o) + n.y;
return {
cx: c,
cy: f,
r0: l,
r: u
};
}
function h6e(t, e, n) {
e.eachSeriesByType(t, function(r) {
var i = r.getData(), a = i.mapDimension("value"), o = Ute(r, n), s = Xte(r, n), l = s.cx, u = s.cy, c = s.r, f = s.r0, d = -r.get("startAngle") * wb, h = r.get("endAngle"), p = r.get("padAngle") * wb;
h = h === "auto" ? d - ZV : -h * wb;
var v = r.get("minAngle") * wb, g = v + p, m = 0;
i.each(a, function(N) {
!isNaN(N) && m++;
});
var y = i.getSum(a), b = Math.PI / (y || m) * 2, _ = r.get("clockwise"), O = r.get("roseType"), S = r.get("stillShowZeroSum"), x = i.getDataExtent(a);
x[0] = 0;
var C = _ ? 1 : -1, T = [d, h], w = C * p / 2;
RR(T, !_), d = T[0], h = T[1];
var P = Yte(r);
P.startAngle = d, P.endAngle = h, P.clockwise = _;
var $ = Math.abs(h - d), A = $, D = 0, E = d;
if (i.setLayout({
viewRect: o,
r: c
}), i.each(a, function(N, V) {
var B;
if (isNaN(N)) {
i.setItemLayout(V, {
angle: NaN,
startAngle: NaN,
endAngle: NaN,
clockwise: _,
cx: l,
cy: u,
r0: f,
r: O ? NaN : c
});
return;
}
O !== "area" ? B = y === 0 && S ? b : N * b : B = $ / m, B < g ? (B = g, A -= g) : D += N;
var W = E + C * B, F = 0, Q = 0;
p > B ? (F = E + C * B / 2, Q = F) : (F = E + w, Q = W - w), i.setItemLayout(V, {
angle: B,
startAngle: F,
endAngle: Q,
clockwise: _,
cx: l,
cy: u,
r0: f,
r: O ? Lt(N, x, [f, c]) : c
}), E = W;
}), A < ZV && m)
if (A <= 1e-3) {
var R = $ / m;
i.each(a, function(N, V) {
if (!isNaN(N)) {
var B = i.getItemLayout(V);
B.angle = R;
var W = 0, F = 0;
R < p ? (W = d + C * (V + 1 / 2) * R, F = W) : (W = d + C * V * R + w, F = d + C * (V + 1) * R - w), B.startAngle = W, B.endAngle = F;
}
});
} else
b = A / D, E = d, i.each(a, function(N, V) {
if (!isNaN(N)) {
var B = i.getItemLayout(V), W = B.angle === g ? g : N * b, F = 0, Q = 0;
W < p ? (F = E + C * W / 2, Q = F) : (F = E + w, Q = E + C * W - w), B.startAngle = F, B.endAngle = Q, E += C * W;
}
});
});
}
var Yte = bt();
function q0(t) {
return {
seriesType: t,
reset: function(e, n) {
var r = n.findComponents({
mainType: "legend"
});
if (!(!r || !r.length)) {
var i = e.getData();
i.filterSelf(function(a) {
for (var o = i.getName(a), s = 0; s < r.length; s++)
if (!r[s].isSelected(o))
return !1;
return !0;
});
}
}
};
}
var p6e = Math.PI / 180;
function UV(t, e, n, r, i, a, o, s, l, u) {
if (t.length < 2)
return;
function c(v) {
for (var g = v.rB, m = g * g, y = 0; y < v.list.length; y++) {
var b = v.list[y], _ = Math.abs(b.label.y - n), O = r + b.len, S = O * O, x = Math.sqrt((1 - Math.abs(_ * _ / m)) * S), C = e + (x + b.len2) * i, T = C - b.label.x, w = b.targetTextWidth - T * i;
qte(b, w, !0), b.label.x = C;
}
}
function f(v) {
for (var g = {
list: [],
maxY: 0
}, m = {
list: [],
maxY: 0
}, y = 0; y < v.length; y++)
if (v[y].labelAlignTo === "none") {
var b = v[y], _ = b.label.y > n ? m : g, O = Math.abs(b.label.y - n);
if (O >= _.maxY) {
var S = b.label.x - e - b.len2 * i, x = r + b.len, C = Math.abs(S) < x ? Math.sqrt(O * O / (1 - S * S / x / x)) : x;
_.rB = C, _.maxY = O;
}
_.list.push(b);
}
c(g), c(m);
}
for (var d = t.length, h = 0; h < d; h++)
if (t[h].position === "outer" && t[h].labelAlignTo === "labelLine") {
var p = t[h].label.x - u;
t[h].linePoints[1][0] += p, t[h].label.x = u;
}
_te(t, l, l + o) && f(t);
}
function v6e(t, e, n, r, i, a, o, s) {
for (var l = [], u = [], c = Number.MAX_VALUE, f = -Number.MAX_VALUE, d = 0; d < t.length; d++) {
var h = t[d].label;
oP(t[d]) || (h.x < e ? (c = Math.min(c, h.x), l.push(t[d])) : (f = Math.max(f, h.x), u.push(t[d])));
}
for (var d = 0; d < t.length; d++) {
var p = t[d];
if (!oP(p) && p.linePoints) {
if (p.labelStyleWidth != null)
continue;
var h = p.label, v = p.linePoints, g = void 0;
p.labelAlignTo === "edge" ? h.x < e ? g = v[2][0] - p.labelDistance - o - p.edgeDistance : g = o + i - p.edgeDistance - v[2][0] - p.labelDistance : p.labelAlignTo === "labelLine" ? h.x < e ? g = c - o - p.bleedMargin : g = o + i - f - p.bleedMargin : h.x < e ? g = h.x - o - p.bleedMargin : g = o + i - h.x - p.bleedMargin, p.targetTextWidth = g, qte(p, g);
}
}
UV(u, e, n, r, 1, i, a, o, s, f), UV(l, e, n, r, -1, i, a, o, s, c);
for (var d = 0; d < t.length; d++) {
var p = t[d];
if (!oP(p) && p.linePoints) {
var h = p.label, v = p.linePoints, m = p.labelAlignTo === "edge", y = h.style.padding, b = y ? y[1] + y[3] : 0, _ = h.style.backgroundColor ? 0 : b, O = p.rect.width + _, S = v[1][0] - v[2][0];
m ? h.x < e ? v[2][0] = o + p.edgeDistance + O + p.labelDistance : v[2][0] = o + i - p.edgeDistance - O - p.labelDistance : (h.x < e ? v[2][0] = h.x + p.labelDistance : v[2][0] = h.x - p.labelDistance, v[1][0] = v[2][0] + S), v[1][1] = v[2][1] = h.y;
}
}
}
function qte(t, e, n) {
if (n === void 0 && (n = !1), t.labelStyleWidth == null) {
var r = t.label, i = r.style, a = t.rect, o = i.backgroundColor, s = i.padding, l = s ? s[1] + s[3] : 0, u = i.overflow, c = a.width + (o ? 0 : l);
if (e < c || n) {
var f = a.height;
if (u && u.match("break")) {
r.setStyle("backgroundColor", null), r.setStyle("width", e - l);
var d = r.getBoundingRect();
r.setStyle("width", Math.ceil(d.width)), r.setStyle("backgroundColor", o);
} else {
var h = e - l, p = e < c ? h : (
// Current available width is enough, but the text may have
// already been wrapped with a smaller available width.
n ? h > t.unconstrainedWidth ? null : h : null
);
r.setStyle("width", p);
}
var v = r.getBoundingRect();
a.width = v.width;
var g = (r.style.margin || 0) + 2.1;
a.height = v.height + g, a.y -= (a.height - f) / 2;
}
}
}
function oP(t) {
return t.position === "center";
}
function g6e(t) {
var e = t.getData(), n = [], r, i, a = !1, o = (t.get("minShowLabelAngle") || 0) * p6e, s = e.getLayout("viewRect"), l = e.getLayout("r"), u = s.width, c = s.x, f = s.y, d = s.height;
function h(S) {
S.ignore = !0;
}
function p(S) {
if (!S.ignore)
return !0;
for (var x in S.states)
if (S.states[x].ignore === !1)
return !0;
return !1;
}
e.each(function(S) {
var x = e.getItemGraphicEl(S), C = x.shape, T = x.getTextContent(), w = x.getTextGuideLine(), P = e.getItemModel(S), $ = P.getModel("label"), A = $.get("position") || P.get(["emphasis", "label", "position"]), D = $.get("distanceToLabelLine"), E = $.get("alignTo"), R = _e($.get("edgeDistance"), u), N = $.get("bleedMargin"), V = P.getModel("labelLine"), B = V.get("length");
B = _e(B, u);
var W = V.get("length2");
if (W = _e(W, u), Math.abs(C.endAngle - C.startAngle) < o) {
k(T.states, h), T.ignore = !0, w && (k(w.states, h), w.ignore = !0);
return;
}
if (p(T)) {
var F = (C.startAngle + C.endAngle) / 2, Q = Math.cos(F), Z = Math.sin(F), ne, ee, oe, K;
r = C.cx, i = C.cy;
var ie = A === "inside" || A === "inner";
if (A === "center")
ne = C.cx, ee = C.cy, K = "center";
else {
var X = (ie ? (C.r + C.r0) / 2 * Q : C.r * Q) + r, H = (ie ? (C.r + C.r0) / 2 * Z : C.r * Z) + i;
if (ne = X + Q * 3, ee = H + Z * 3, !ie) {
var G = X + Q * (B + l - C.r), re = H + Z * (B + l - C.r), fe = G + (Q < 0 ? -1 : 1) * W, de = re;
E === "edge" ? ne = Q < 0 ? c + R : c + u - R : ne = fe + (Q < 0 ? -D : D), ee = de, oe = [[X, H], [G, re], [fe, de]];
}
K = ie ? "center" : E === "edge" ? Q > 0 ? "right" : "left" : Q > 0 ? "left" : "right";
}
var Ee = Math.PI, $e = 0, Se = $.get("rotate");
if (St(Se))
$e = Se * (Ee / 180);
else if (A === "center")
$e = 0;
else if (Se === "radial" || Se === !0) {
var be = Q < 0 ? -F + Ee : -F;
$e = be;
} else if (Se === "tangential" && A !== "outside" && A !== "outer") {
var he = Math.atan2(Q, Z);
he < 0 && (he = Ee * 2 + he);
var Te = Z > 0;
Te && (he = Ee + he), $e = he - Ee;
}
if (a = !!$e, T.x = ne, T.y = ee, T.rotation = $e, T.setStyle({
verticalAlign: "middle"
}), ie) {
T.setStyle({
align: K
});
var ct = T.states.select;
ct && (ct.x += T.x, ct.y += T.y);
} else {
var ze = T.getBoundingRect().clone();
ze.applyTransform(T.getComputedTransform());
var ut = (T.style.margin || 0) + 2.1;
ze.y -= ut / 2, ze.height += ut, n.push({
label: T,
labelLine: w,
position: A,
len: B,
len2: W,
minTurnAngle: V.get("minTurnAngle"),
maxSurfaceAngle: V.get("maxSurfaceAngle"),
surfaceNormal: new Ke(Q, Z),
linePoints: oe,
textAlign: K,
labelDistance: D,
labelAlignTo: E,
edgeDistance: R,
bleedMargin: N,
rect: ze,
unconstrainedWidth: ze.width,
labelStyleWidth: T.style.width
});
}
x.setTextConfig({
inside: ie
});
}
}), !a && t.get("avoidLabelOverlap") && v6e(n, r, i, l, u, d, c, f);
for (var v = 0; v < n.length; v++) {
var g = n[v], m = g.label, y = g.labelLine, b = isNaN(m.x) || isNaN(m.y);
if (m) {
m.setStyle({
align: g.textAlign
}), b && (k(m.states, h), m.ignore = !0);
var _ = m.states.select;
_ && (_.x += m.x, _.y += m.y);
}
if (y) {
var O = g.linePoints;
b || !O ? (k(y.states, h), y.ignore = !0) : (mte(O, g.minTurnAngle), z5e(O, g.surfaceNormal, g.maxSurfaceAngle), y.setShape({
points: O
}), m.__hostTarget.textGuideLineConfig = {
anchor: new Ke(O[0][0], O[0][1])
});
}
}
}
var m6e = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this) || this;
a.z2 = 2;
var o = new gt();
return a.setTextContent(o), a.updateData(n, r, i, !0), a;
}
return e.prototype.updateData = function(n, r, i, a) {
var o = this, s = n.hostModel, l = n.getItemModel(r), u = l.getModel("emphasis"), c = n.getItemLayout(r), f = le(Fc(l.getModel("itemStyle"), c, !0), c);
if (isNaN(f.startAngle)) {
o.setShape(f);
return;
}
if (a) {
o.setShape(f);
var d = s.getShallow("animationType");
s.ecModel.ssr ? (Yt(o, {
scaleX: 0,
scaleY: 0
}, s, {
dataIndex: r,
isFrom: !0
}), o.originX = f.cx, o.originY = f.cy) : d === "scale" ? (o.shape.r = c.r0, Yt(o, {
shape: {
r: c.r
}
}, s, r)) : i != null ? (o.setShape({
startAngle: i,
endAngle: i
}), Yt(o, {
shape: {
startAngle: c.startAngle,
endAngle: c.endAngle
}
}, s, r)) : (o.shape.endAngle = c.startAngle, Ct(o, {
shape: {
endAngle: c.endAngle
}
}, s, r));
} else
uo(o), Ct(o, {
shape: f
}, s, r);
o.useStyle(n.getItemVisual(r, "style")), Tr(o, l);
var h = (c.startAngle + c.endAngle) / 2, p = s.get("selectedOffset"), v = Math.cos(h) * p, g = Math.sin(h) * p, m = l.getShallow("cursor");
m && o.attr("cursor", m), this._updateLabel(s, n, r), o.ensureState("emphasis").shape = le({
r: c.r + (u.get("scale") && u.get("scaleSize") || 0)
}, Fc(u.getModel("itemStyle"), c)), le(o.ensureState("select"), {
x: v,
y: g,
shape: Fc(l.getModel(["select", "itemStyle"]), c)
}), le(o.ensureState("blur"), {
shape: Fc(l.getModel(["blur", "itemStyle"]), c)
});
var y = o.getTextGuideLine(), b = o.getTextContent();
y && le(y.ensureState("select"), {
x: v,
y: g
}), le(b.ensureState("select"), {
x: v,
y: g
}), bn(this, u.get("focus"), u.get("blurScope"), u.get("disabled"));
}, e.prototype._updateLabel = function(n, r, i) {
var a = this, o = r.getItemModel(i), s = o.getModel("labelLine"), l = r.getItemVisual(i, "style"), u = l && l.fill, c = l && l.opacity;
Pr(a, er(o), {
labelFetcher: r.hostModel,
labelDataIndex: i,
inheritColor: u,
defaultOpacity: c,
defaultText: n.getFormattedLabel(i, "normal") || r.getName(i)
});
var f = a.getTextContent();
a.setTextConfig({
// reset position, rotation
position: null,
rotation: null
}), f.attr({
z2: 10
});
var d = n.get(["label", "position"]);
if (d !== "outside" && d !== "outer")
a.removeTextGuideLine();
else {
var h = this.getTextGuideLine();
h || (h = new oi(), this.setTextGuideLine(h)), Ek(this, Mk(o), {
stroke: u,
opacity: Ui(s.get(["lineStyle", "opacity"]), c, 1)
});
}
}, e;
}(ii)
), y6e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.ignoreLabelLineUpdate = !0, n;
}
return e.prototype.render = function(n, r, i, a) {
var o = n.getData(), s = this._data, l = this.group, u;
if (!s && o.count() > 0) {
for (var c = o.getItemLayout(0), f = 1; isNaN(c && c.startAngle) && f < o.count(); ++f)
c = o.getItemLayout(f);
c && (u = c.startAngle);
}
if (this._emptyCircleSector && l.remove(this._emptyCircleSector), o.count() === 0 && n.get("showEmptyCircle")) {
var d = Yte(n), h = new ii({
shape: le(Xte(n, i), d)
});
h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()), this._emptyCircleSector = h, l.add(h);
}
o.diff(s).add(function(p) {
var v = new m6e(o, p, u);
o.setItemGraphicEl(p, v), l.add(v);
}).update(function(p, v) {
var g = s.getItemGraphicEl(v);
g.updateData(o, p, u), g.off("click"), l.add(g), o.setItemGraphicEl(p, g);
}).remove(function(p) {
var v = s.getItemGraphicEl(p);
$m(v, n, p);
}).execute(), g6e(n), n.get("animationTypeUpdate") !== "expansion" && (this._data = o);
}, e.prototype.dispose = function() {
}, e.prototype.containPoint = function(n, r) {
var i = r.getData(), a = i.getItemLayout(0);
if (a) {
var o = n[0] - a.cx, s = n[1] - a.cy, l = Math.sqrt(o * o + s * s);
return l <= a.r && l >= a.r0;
}
}, e.type = "pie", e;
}(zt)
);
function Ip(t, e, n) {
e = ue(e) && {
coordDimensions: e
} || le({
encodeDefine: t.getEncode()
}, e);
var r = t.getSource(), i = Ap(r, e).dimensions, a = new Nr(i, t);
return a.initData(r, n), a;
}
var K0 = (
/** @class */
function() {
function t(e, n) {
this._getDataWithEncodedVisual = e, this._getRawData = n;
}
return t.prototype.getAllNames = function() {
var e = this._getRawData();
return e.mapArray(e.getName);
}, t.prototype.containName = function(e) {
var n = this._getRawData();
return n.indexOfName(e) >= 0;
}, t.prototype.indexOfName = function(e) {
var n = this._getDataWithEncodedVisual();
return n.indexOfName(e);
}, t.prototype.getItemVisual = function(e, n) {
var r = this._getDataWithEncodedVisual();
return r.getItemVisual(e, n);
}, t;
}()
), b6e = bt(), _6e = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.init = function(n) {
t.prototype.init.apply(this, arguments), this.legendVisualProvider = new K0(xe(this.getData, this), xe(this.getRawData, this)), this._defaultLabelLine(n);
}, e.prototype.mergeOption = function() {
t.prototype.mergeOption.apply(this, arguments);
}, e.prototype.getInitialData = function() {
return Ip(this, {
coordDimensions: ["value"],
encodeDefaulter: Ue(rk, this)
});
}, e.prototype.getDataParams = function(n) {
var r = this.getData(), i = b6e(r), a = i.seats;
if (!a) {
var o = [];
r.each(r.mapDimension("value"), function(l) {
o.push(l);
}), a = i.seats = lK(o, r.hostModel.get("percentPrecision"));
}
var s = t.prototype.getDataParams.call(this, n);
return s.percent = a[n] || 0, s.$vars.push("percent"), s;
}, e.prototype._defaultLabelLine = function(n) {
mf(n, "labelLine", ["show"]);
var r = n.labelLine, i = n.emphasis.labelLine;
r.show = r.show && n.label.show, i.show = i.show && n.emphasis.label.show;
}, e.type = "series.pie", e.defaultOption = {
// zlevel: 0,
z: 2,
legendHoverLink: !0,
colorBy: "data",
// 默认全局居中
center: ["50%", "50%"],
radius: [0, "75%"],
// 默认顺时针
clockwise: !0,
startAngle: 90,
endAngle: "auto",
padAngle: 0,
// 最小角度改为0
minAngle: 0,
// If the angle of a sector less than `minShowLabelAngle`,
// the label will not be displayed.
minShowLabelAngle: 0,
// 选中时扇区偏移量
selectedOffset: 10,
// 选择模式,默认关闭,可选single,multiple
// selectedMode: false,
// 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)
// roseType: null,
percentPrecision: 2,
// If still show when all data zero.
stillShowZeroSum: !0,
// cursor: null,
left: 0,
top: 0,
right: 0,
bottom: 0,
width: null,
height: null,
label: {
// color: 'inherit',
// If rotate around circle
rotate: 0,
show: !0,
overflow: "truncate",
// 'outer', 'inside', 'center'
position: "outer",
// 'none', 'labelLine', 'edge'. Works only when position is 'outer'
alignTo: "none",
// Closest distance between label and chart edge.
// Works only position is 'outer' and alignTo is 'edge'.
edgeDistance: "25%",
// Works only position is 'outer' and alignTo is not 'edge'.
bleedMargin: 10,
// Distance between text and label line.
distanceToLabelLine: 5
// formatter: 标签文本格式器,同 tooltip.formatter,不支持异步回调
// 默认使用全局文本样式,详见 textStyle
// distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数
},
// Enabled when label.normal.position is 'outer'
labelLine: {
show: !0,
// 引导线两段中的第一段长度
length: 15,
// 引导线两段中的第二段长度
length2: 15,
smooth: !1,
minTurnAngle: 90,
maxSurfaceAngle: 90,
lineStyle: {
// color: 各异,
width: 1,
type: "solid"
}
},
itemStyle: {
borderWidth: 1,
borderJoin: "round"
},
showEmptyCircle: !0,
emptyCircleStyle: {
color: "lightgray",
opacity: 1
},
labelLayout: {
// Hide the overlapped label.
hideOverlap: !0
},
emphasis: {
scale: !0,
scaleSize: 5
},
// If use strategy to avoid label overlapping
avoidLabelOverlap: !0,
// Animation type. Valid values: expansion, scale
animationType: "expansion",
animationDuration: 1e3,
// Animation type when update. Valid values: transition, expansion
animationTypeUpdate: "transition",
animationEasingUpdate: "cubicInOut",
animationDurationUpdate: 500,
animationEasing: "cubicInOut"
}, e;
}(Ht)
);
function O6e(t) {
return {
seriesType: t,
reset: function(e, n) {
var r = e.getData();
r.filterSelf(function(i) {
var a = r.mapDimension("value"), o = r.get(a, i);
return !(St(o) && !isNaN(o) && o < 0);
});
}
};
}
function S6e(t) {
t.registerChartView(y6e), t.registerSeriesModel(_6e), vee("pie", t.registerAction), t.registerLayout(Ue(h6e, "pie")), t.registerProcessor(q0("pie")), t.registerProcessor(O6e("pie"));
}
var x6e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.hasSymbolVisual = !0, n;
}
return e.prototype.getInitialData = function(n, r) {
return cs(null, this, {
useEncodeDefaulter: !0
});
}, e.prototype.getProgressive = function() {
var n = this.option.progressive;
return n ?? (this.option.large ? 5e3 : this.get("progressive"));
}, e.prototype.getProgressiveThreshold = function() {
var n = this.option.progressiveThreshold;
return n ?? (this.option.large ? 1e4 : this.get("progressiveThreshold"));
}, e.prototype.brushSelector = function(n, r, i) {
return i.point(r.getItemLayout(n));
}, e.prototype.getZLevelKey = function() {
return this.getData().count() > this.getProgressiveThreshold() ? this.id : "";
}, e.type = "series.scatter", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
coordinateSystem: "cartesian2d",
// zlevel: 0,
z: 2,
legendHoverLink: !0,
symbolSize: 10,
// symbolRotate: null, // 图形旋转控制
large: !1,
// Available when large is true
largeThreshold: 2e3,
// cursor: null,
itemStyle: {
opacity: 0.8
// color: 各异
},
emphasis: {
scale: !0
},
// If clip the overflow graphics
// Works on cartesian / polar series
clip: !0,
select: {
itemStyle: {
borderColor: "#212121"
}
},
universalTransition: {
divideShape: "clone"
}
// progressive: null
}, e;
}(Ht)
), Kte = 4, w6e = (
/** @class */
/* @__PURE__ */ function() {
function t() {
}
return t;
}()
), C6e = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r._off = 0, r.hoverDataIdx = -1, r;
}
return e.prototype.getDefaultShape = function() {
return new w6e();
}, e.prototype.reset = function() {
this.notClear = !1, this._off = 0;
}, e.prototype.buildPath = function(n, r) {
var i = r.points, a = r.size, o = this.symbolProxy, s = o.shape, l = n.getContext ? n.getContext() : n, u = l && a[0] < Kte, c = this.softClipShape, f;
if (u) {
this._ctx = l;
return;
}
for (this._ctx = null, f = this._off; f < i.length; ) {
var d = i[f++], h = i[f++];
isNaN(d) || isNaN(h) || c && !c.contain(d, h) || (s.x = d - a[0] / 2, s.y = h - a[1] / 2, s.width = a[0], s.height = a[1], o.buildPath(n, s, !0));
}
this.incremental && (this._off = f, this.notClear = !0);
}, e.prototype.afterBrush = function() {
var n = this.shape, r = n.points, i = n.size, a = this._ctx, o = this.softClipShape, s;
if (a) {
for (s = this._off; s < r.length; ) {
var l = r[s++], u = r[s++];
isNaN(l) || isNaN(u) || o && !o.contain(l, u) || a.fillRect(l - i[0] / 2, u - i[1] / 2, i[0], i[1]);
}
this.incremental && (this._off = s, this.notClear = !0);
}
}, e.prototype.findDataIndex = function(n, r) {
for (var i = this.shape, a = i.points, o = i.size, s = Math.max(o[0], 4), l = Math.max(o[1], 4), u = a.length / 2 - 1; u >= 0; u--) {
var c = u * 2, f = a[c] - s / 2, d = a[c + 1] - l / 2;
if (n >= f && r >= d && n <= f + s && r <= d + l)
return u;
}
return -1;
}, e.prototype.contain = function(n, r) {
var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
if (n = i[0], r = i[1], a.contain(n, r)) {
var o = this.hoverDataIdx = this.findDataIndex(n, r);
return o >= 0;
}
return this.hoverDataIdx = -1, !1;
}, e.prototype.getBoundingRect = function() {
var n = this._rect;
if (!n) {
for (var r = this.shape, i = r.points, a = r.size, o = a[0], s = a[1], l = 1 / 0, u = 1 / 0, c = -1 / 0, f = -1 / 0, d = 0; d < i.length; ) {
var h = i[d++], p = i[d++];
l = Math.min(h, l), c = Math.max(h, c), u = Math.min(p, u), f = Math.max(p, f);
}
n = this._rect = new Je(l - o / 2, u - s / 2, c - l + o, f - u + s);
}
return n;
}, e;
}(ot)
), T6e = (
/** @class */
function() {
function t() {
this.group = new Ve();
}
return t.prototype.updateData = function(e, n) {
this._clear();
var r = this._create();
r.setShape({
points: e.getLayout("points")
}), this._setCommon(r, e, n);
}, t.prototype.updateLayout = function(e) {
var n = e.getLayout("points");
this.group.eachChild(function(r) {
if (r.startIndex != null) {
var i = (r.endIndex - r.startIndex) * 2, a = r.startIndex * 4 * 2;
n = new Float32Array(n.buffer, a, i);
}
r.setShape("points", n), r.reset();
});
}, t.prototype.incrementalPrepareUpdate = function(e) {
this._clear();
}, t.prototype.incrementalUpdate = function(e, n, r) {
var i = this._newAdded[0], a = n.getLayout("points"), o = i && i.shape.points;
if (o && o.length < 2e4) {
var s = o.length, l = new Float32Array(s + a.length);
l.set(o), l.set(a, s), i.endIndex = e.end, i.setShape({
points: l
});
} else {
this._newAdded = [];
var u = this._create();
u.startIndex = e.start, u.endIndex = e.end, u.incremental = !0, u.setShape({
points: a
}), this._setCommon(u, n, r);
}
}, t.prototype.eachRendered = function(e) {
this._newAdded[0] && e(this._newAdded[0]);
}, t.prototype._create = function() {
var e = new C6e({
cursor: "default"
});
return e.ignoreCoarsePointer = !0, this.group.add(e), this._newAdded.push(e), e;
}, t.prototype._setCommon = function(e, n, r) {
var i = n.hostModel;
r = r || {};
var a = n.getVisual("symbolSize");
e.setShape("size", a instanceof Array ? a : [a, a]), e.softClipShape = r.clipShape || null, e.symbolProxy = $n(n.getVisual("symbol"), 0, 0, 0, 0), e.setColor = e.symbolProxy.setColor;
var o = e.shape.size[0] < Kte;
e.useStyle(
// Draw shadow when doing fillRect is extremely slow.
i.getModel("itemStyle").getItemStyle(o ? ["color", "shadowBlur", "shadowColor"] : ["color"])
);
var s = n.getVisual("style"), l = s && s.fill;
l && e.setColor(l);
var u = Fe(e);
u.seriesIndex = i.seriesIndex, e.on("mousemove", function(c) {
u.dataIndex = null;
var f = e.hoverDataIdx;
f >= 0 && (u.dataIndex = f + (e.startIndex || 0));
});
}, t.prototype.remove = function() {
this._clear();
}, t.prototype._clear = function() {
this._newAdded = [], this.group.removeAll();
}, t;
}()
), P6e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = n.getData(), o = this._updateSymbolDraw(a, n);
o.updateData(a, {
// TODO
// If this parameter should be a shape or a bounding volume
// shape will be more general.
// But bounding volume like bounding rect will be much faster in the contain calculation
clipShape: this._getClipShape(n)
}), this._finished = !0;
}, e.prototype.incrementalPrepareRender = function(n, r, i) {
var a = n.getData(), o = this._updateSymbolDraw(a, n);
o.incrementalPrepareUpdate(a), this._finished = !1;
}, e.prototype.incrementalRender = function(n, r, i) {
this._symbolDraw.incrementalUpdate(n, r.getData(), {
clipShape: this._getClipShape(r)
}), this._finished = n.end === r.getData().count();
}, e.prototype.updateTransform = function(n, r, i) {
var a = n.getData();
if (this.group.dirty(), !this._finished || a.count() > 1e4)
return {
update: !0
};
var o = Y0("").reset(n, r, i);
o.progress && o.progress({
start: 0,
end: a.count(),
count: a.count()
}, a), this._symbolDraw.updateLayout(a);
}, e.prototype.eachRendered = function(n) {
this._symbolDraw && this._symbolDraw.eachRendered(n);
}, e.prototype._getClipShape = function(n) {
if (n.get("clip", !0)) {
var r = n.coordinateSystem;
return r && r.getArea && r.getArea(0.1);
}
}, e.prototype._updateSymbolDraw = function(n, r) {
var i = this._symbolDraw, a = r.pipelineContext, o = a.large;
return (!i || o !== this._isLargeDraw) && (i && i.remove(), i = this._symbolDraw = o ? new T6e() : new U0(), this._isLargeDraw = o, this.group.removeAll()), this.group.add(i.group), i;
}, e.prototype.remove = function(n, r) {
this._symbolDraw && this._symbolDraw.remove(!0), this._symbolDraw = null;
}, e.prototype.dispose = function() {
}, e.type = "scatter", e;
}(zt)
), $6e = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.type = "grid", e.dependencies = ["xAxis", "yAxis"], e.layoutMode = "box", e.defaultOption = {
show: !1,
// zlevel: 0,
z: 0,
left: "10%",
top: 60,
right: "10%",
bottom: 70,
// If grid size contain label
containLabel: !1,
// width: {totalWidth} - left - right,
// height: {totalHeight} - top - bottom,
backgroundColor: "rgba(0,0,0,0)",
borderWidth: 1,
borderColor: "#ccc"
}, e;
}(rt)
), cE = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.getCoordSysModel = function() {
return this.getReferringComponents("grid", Dn).models[0];
}, e.type = "cartesian2dAxis", e;
}(rt)
);
xn(cE, Mp);
var Jte = {
show: !0,
// zlevel: 0,
z: 0,
// Inverse the axis.
inverse: !1,
// Axis name displayed.
name: "",
// 'start' | 'middle' | 'end'
nameLocation: "end",
// By degree. By default auto rotate by nameLocation.
nameRotate: null,
nameTruncate: {
maxWidth: null,
ellipsis: "...",
placeholder: "."
},
// Use global text style by default.
nameTextStyle: {},
// The gap between axisName and axisLine.
nameGap: 15,
// Default `false` to support tooltip.
silent: !1,
// Default `false` to avoid legacy user event listener fail.
triggerEvent: !1,
tooltip: {
show: !1
},
axisPointer: {},
axisLine: {
show: !0,
onZero: !0,
onZeroAxisIndex: null,
lineStyle: {
color: "#6E7079",
width: 1,
type: "solid"
},
// The arrow at both ends the the axis.
symbol: ["none", "none"],
symbolSize: [10, 15]
},
axisTick: {
show: !0,
// Whether axisTick is inside the grid or outside the grid.
inside: !1,
// The length of axisTick.
length: 5,
lineStyle: {
width: 1
}
},
axisLabel: {
show: !0,
// Whether axisLabel is inside the grid or outside the grid.
inside: !1,
rotate: 0,
// true | false | null/undefined (auto)
showMinLabel: null,
// true | false | null/undefined (auto)
showMaxLabel: null,
margin: 8,
// formatter: null,
fontSize: 12
},
splitLine: {
show: !0,
lineStyle: {
color: ["#E0E6F1"],
width: 1,
type: "solid"
}
},
splitArea: {
show: !1,
areaStyle: {
color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
}
}
}, A6e = qe({
// The gap at both ends of the axis. For categoryAxis, boolean.
boundaryGap: !0,
// Set false to faster category collection.
deduplication: null,
// splitArea: {
// show: false
// },
splitLine: {
show: !1
},
axisTick: {
// If tick is align with label when boundaryGap is true
alignWithLabel: !1,
interval: "auto"
},
axisLabel: {
interval: "auto"
}
}, Jte), Bk = qe({
boundaryGap: [0, 0],
axisLine: {
// Not shown when other axis is categoryAxis in cartesian
show: "auto"
},
axisTick: {
// Not shown when other axis is categoryAxis in cartesian
show: "auto"
},
// TODO
// min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]
splitNumber: 5,
minorTick: {
// Minor tick, not available for cateogry axis.
show: !1,
// Split number of minor ticks. The value should be in range of (0, 100)
splitNumber: 5,
// Length of minor tick
length: 3,
// Line style
lineStyle: {
// Default to be same with axisTick
}
},
minorSplitLine: {
show: !1,
lineStyle: {
color: "#F4F7FD",
width: 1
}
}
}, Jte), E6e = qe({
splitNumber: 6,
axisLabel: {
// To eliminate labels that are not nice
showMinLabel: !1,
showMaxLabel: !1,
rich: {
primary: {
fontWeight: "bold"
}
}
},
splitLine: {
show: !1
}
}, Bk), M6e = Re({
logBase: 10
}, Bk);
const ene = {
category: A6e,
value: Bk,
time: E6e,
log: M6e
};
var I6e = {
value: 1,
category: 1,
time: 1,
log: 1
};
function Uh(t, e, n, r) {
k(I6e, function(i, a) {
var o = qe(qe({}, ene[a], !0), r, !0), s = (
/** @class */
function(l) {
q(u, l);
function u() {
var c = l !== null && l.apply(this, arguments) || this;
return c.type = e + "Axis." + a, c;
}
return u.prototype.mergeDefaultAndTheme = function(c, f) {
var d = Em(this), h = d ? wp(c) : {}, p = f.getTheme();
qe(c, p.get(a + "Axis")), qe(c, this.getDefaultOption()), c.type = XV(c), d && cu(c, h, d);
}, u.prototype.optionUpdated = function() {
var c = this.option;
c.type === "category" && (this.__ordinalMeta = nE.createByAxisModel(this));
}, u.prototype.getCategories = function(c) {
var f = this.option;
if (f.type === "category")
return c ? f.data : this.__ordinalMeta.categories;
}, u.prototype.getOrdinalMeta = function() {
return this.__ordinalMeta;
}, u.type = e + "Axis." + a, u.defaultOption = o, u;
}(n)
);
t.registerComponentModel(s);
}), t.registerSubTypeDefaulter(e + "Axis", XV);
}
function XV(t) {
return t.type || (t.data ? "category" : "value");
}
var D6e = (
/** @class */
function() {
function t(e) {
this.type = "cartesian", this._dimList = [], this._axes = {}, this.name = e || "";
}
return t.prototype.getAxis = function(e) {
return this._axes[e];
}, t.prototype.getAxes = function() {
return ce(this._dimList, function(e) {
return this._axes[e];
}, this);
}, t.prototype.getAxesByScale = function(e) {
return e = e.toLowerCase(), Nt(this.getAxes(), function(n) {
return n.scale.type === e;
});
}, t.prototype.addAxis = function(e) {
var n = e.dim;
this._axes[n] = e, this._dimList.push(n);
}, t;
}()
), fE = ["x", "y"];
function YV(t) {
return t.type === "interval" || t.type === "time";
}
var R6e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "cartesian2d", n.dimensions = fE, n;
}
return e.prototype.calcAffineTransform = function() {
this._transform = this._invTransform = null;
var n = this.getAxis("x").scale, r = this.getAxis("y").scale;
if (!(!YV(n) || !YV(r))) {
var i = n.getExtent(), a = r.getExtent(), o = this.dataToPoint([i[0], a[0]]), s = this.dataToPoint([i[1], a[1]]), l = i[1] - i[0], u = a[1] - a[0];
if (!(!l || !u)) {
var c = (s[0] - o[0]) / l, f = (s[1] - o[1]) / u, d = o[0] - i[0] * c, h = o[1] - a[0] * f, p = this._transform = [c, 0, 0, f, d, h];
this._invTransform = Lf([], p);
}
}
}, e.prototype.getBaseAxis = function() {
return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x");
}, e.prototype.containPoint = function(n) {
var r = this.getAxis("x"), i = this.getAxis("y");
return r.contain(r.toLocalCoord(n[0])) && i.contain(i.toLocalCoord(n[1]));
}, e.prototype.containData = function(n) {
return this.getAxis("x").containData(n[0]) && this.getAxis("y").containData(n[1]);
}, e.prototype.containZone = function(n, r) {
var i = this.dataToPoint(n), a = this.dataToPoint(r), o = this.getArea(), s = new Je(i[0], i[1], a[0] - i[0], a[1] - i[1]);
return o.intersect(s);
}, e.prototype.dataToPoint = function(n, r, i) {
i = i || [];
var a = n[0], o = n[1];
if (this._transform && a != null && isFinite(a) && o != null && isFinite(o))
return ar(i, n, this._transform);
var s = this.getAxis("x"), l = this.getAxis("y");
return i[0] = s.toGlobalCoord(s.dataToCoord(a, r)), i[1] = l.toGlobalCoord(l.dataToCoord(o, r)), i;
}, e.prototype.clampData = function(n, r) {
var i = this.getAxis("x").scale, a = this.getAxis("y").scale, o = i.getExtent(), s = a.getExtent(), l = i.parse(n[0]), u = a.parse(n[1]);
return r = r || [], r[0] = Math.min(Math.max(Math.min(o[0], o[1]), l), Math.max(o[0], o[1])), r[1] = Math.min(Math.max(Math.min(s[0], s[1]), u), Math.max(s[0], s[1])), r;
}, e.prototype.pointToData = function(n, r) {
var i = [];
if (this._invTransform)
return ar(i, n, this._invTransform);
var a = this.getAxis("x"), o = this.getAxis("y");
return i[0] = a.coordToData(a.toLocalCoord(n[0]), r), i[1] = o.coordToData(o.toLocalCoord(n[1]), r), i;
}, e.prototype.getOtherAxis = function(n) {
return this.getAxis(n.dim === "x" ? "y" : "x");
}, e.prototype.getArea = function(n) {
n = n || 0;
var r = this.getAxis("x").getGlobalExtent(), i = this.getAxis("y").getGlobalExtent(), a = Math.min(r[0], r[1]) - n, o = Math.min(i[0], i[1]) - n, s = Math.max(r[0], r[1]) - a + n, l = Math.max(i[0], i[1]) - o + n;
return new Je(a, o, s, l);
}, e;
}(D6e)
), k6e = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i, a, o) {
var s = t.call(this, n, r, i) || this;
return s.index = 0, s.type = a || "value", s.position = o || "bottom", s;
}
return e.prototype.isHorizontal = function() {
var n = this.position;
return n === "top" || n === "bottom";
}, e.prototype.getGlobalExtent = function(n) {
var r = this.getExtent();
return r[0] = this.toGlobalCoord(r[0]), r[1] = this.toGlobalCoord(r[1]), n && r[0] > r[1] && r.reverse(), r;
}, e.prototype.pointToData = function(n, r) {
return this.coordToData(this.toLocalCoord(n[this.dim === "x" ? 0 : 1]), r);
}, e.prototype.setCategorySortInfo = function(n) {
if (this.type !== "category")
return !1;
this.model.option.categorySortInfo = n, this.scale.setSortInfo(n);
}, e;
}(Va)
);
function dE(t, e, n) {
n = n || {};
var r = t.coordinateSystem, i = e.axis, a = {}, o = i.getAxesOnZeroOf()[0], s = i.position, l = o ? "onZero" : s, u = i.dim, c = r.getRect(), f = [c.x, c.x + c.width, c.y, c.y + c.height], d = {
left: 0,
right: 1,
top: 0,
bottom: 1,
onZero: 2
}, h = e.get("offset") || 0, p = u === "x" ? [f[2] - h, f[3] + h] : [f[0] - h, f[1] + h];
if (o) {
var v = o.toGlobalCoord(o.dataToCoord(0));
p[d.onZero] = Math.max(Math.min(v, p[1]), p[0]);
}
a.position = [u === "y" ? p[d[l]] : f[0], u === "x" ? p[d[l]] : f[3]], a.rotation = Math.PI / 2 * (u === "x" ? 0 : 1);
var g = {
top: -1,
bottom: 1,
left: -1,
right: 1
};
a.labelDirection = a.tickDirection = a.nameDirection = g[s], a.labelOffset = o ? p[d[s]] - p[d.onZero] : 0, e.get(["axisTick", "inside"]) && (a.tickDirection = -a.tickDirection), Tn(n.labelInside, e.get(["axisLabel", "inside"])) && (a.labelDirection = -a.labelDirection);
var m = e.get(["axisLabel", "rotate"]);
return a.labelRotate = l === "top" ? -m : m, a.z2 = 1, a;
}
function qV(t) {
return t.get("coordinateSystem") === "cartesian2d";
}
function KV(t) {
var e = {
xAxisModel: null,
yAxisModel: null
};
return k(e, function(n, r) {
var i = r.replace(/Model$/, ""), a = t.getReferringComponents(i, Dn).models[0];
if (process.env.NODE_ENV !== "production" && !a)
throw new Error(i + ' "' + Ui(t.get(i + "Index"), t.get(i + "Id"), 0) + '" not found');
e[r] = a;
}), e;
}
var sP = Math.log;
function tne(t, e, n) {
var r = qs.prototype, i = r.getTicks.call(n), a = r.getTicks.call(n, !0), o = i.length - 1, s = r.getInterval.call(n), l = ite(t, e), u = l.extent, c = l.fixMin, f = l.fixMax;
if (t.type === "log") {
var d = sP(t.base);
u = [sP(u[0]) / d, sP(u[1]) / d];
}
t.setExtent(u[0], u[1]), t.calcNiceExtent({
splitNumber: o,
fixMin: c,
fixMax: f
});
var h = r.getExtent.call(t);
c && (u[0] = h[0]), f && (u[1] = h[1]);
var p = r.getInterval.call(t), v = u[0], g = u[1];
if (c && f)
p = (g - v) / o;
else if (c)
for (g = u[0] + p * o; g < u[1] && isFinite(g) && isFinite(u[1]); )
p = jT(p), g = u[0] + p * o;
else if (f)
for (v = u[1] - p * o; v > u[0] && isFinite(v) && isFinite(u[0]); )
p = jT(p), v = u[1] - p * o;
else {
var m = t.getTicks().length - 1;
m > o && (p = jT(p));
var y = p * o;
g = Math.ceil(u[1] / p) * p, v = mn(g - y), v < 0 && u[0] >= 0 ? (v = 0, g = mn(y)) : g > 0 && u[1] <= 0 && (g = 0, v = -mn(y));
}
var b = (i[0].value - a[0].value) / s, _ = (i[o].value - a[o].value) / s;
if (r.setExtent.call(t, v + p * b, g + p * _), r.setInterval.call(t, p), (b || _) && r.setNiceExtent.call(t, v + p, g - p), process.env.NODE_ENV !== "production") {
var O = r.getTicks.call(t);
O[1] && (!MNe(p) || oO(O[1].value) > oO(p)) && dn(
// eslint-disable-next-line
"The ticks may be not readable when set min: " + e.get("min") + ", max: " + e.get("max") + " and alignTicks: true"
);
}
}
var L6e = (
/** @class */
function() {
function t(e, n, r) {
this.type = "grid", this._coordsMap = {}, this._coordsList = [], this._axesMap = {}, this._axesList = [], this.axisPointerEnabled = !0, this.dimensions = fE, this._initCartesian(e, n, r), this.model = e;
}
return t.prototype.getRect = function() {
return this._rect;
}, t.prototype.update = function(e, n) {
var r = this._axesMap;
this._updateScale(e, this.model);
function i(o) {
var s, l = st(o), u = l.length;
if (u) {
for (var c = [], f = u - 1; f >= 0; f--) {
var d = +l[f], h = o[d], p = h.model, v = h.scale;
// Only value and log axis without interval support alignTicks.
rE(v) && p.get("alignTicks") && p.get("interval") == null ? c.push(h) : (Sf(v, p), rE(v) && (s = h));
}
c.length && (s || (s = c.pop(), Sf(s.scale, s.model)), k(c, function(g) {
tne(g.scale, g.model, s.scale);
}));
}
}
i(r.x), i(r.y);
var a = {};
k(r.x, function(o) {
JV(r, "y", o, a);
}), k(r.y, function(o) {
JV(r, "x", o, a);
}), this.resize(this.model, n);
}, t.prototype.resize = function(e, n, r) {
var i = e.getBoxLayoutParams(), a = !r && e.get("containLabel"), o = Rn(i, {
width: n.getWidth(),
height: n.getHeight()
});
this._rect = o;
var s = this._axesList;
l(), a && (k(s, function(u) {
if (!u.model.get(["axisLabel", "inside"])) {
var c = t5e(u);
if (c) {
var f = u.isHorizontal() ? "height" : "width", d = u.model.get(["axisLabel", "margin"]);
o[f] -= c[f] + d, u.position === "top" ? o.y += c.height + d : u.position === "left" && (o.x += c.width + d);
}
}
}), l()), k(this._coordsList, function(u) {
u.calcAffineTransform();
});
function l() {
k(s, function(u) {
var c = u.isHorizontal(), f = c ? [0, o.width] : [0, o.height], d = u.inverse ? 1 : 0;
u.setExtent(f[d], f[1 - d]), N6e(u, c ? o.x : o.y);
});
}
}, t.prototype.getAxis = function(e, n) {
var r = this._axesMap[e];
if (r != null)
return r[n || 0];
}, t.prototype.getAxes = function() {
return this._axesList.slice();
}, t.prototype.getCartesian = function(e, n) {
if (e != null && n != null) {
var r = "x" + e + "y" + n;
return this._coordsMap[r];
}
Ie(e) && (n = e.yAxisIndex, e = e.xAxisIndex);
for (var i = 0, a = this._coordsList; i < a.length; i++)
if (a[i].getAxis("x").index === e || a[i].getAxis("y").index === n)
return a[i];
}, t.prototype.getCartesians = function() {
return this._coordsList.slice();
}, t.prototype.convertToPixel = function(e, n, r) {
var i = this._findConvertTarget(n);
return i.cartesian ? i.cartesian.dataToPoint(r) : i.axis ? i.axis.toGlobalCoord(i.axis.dataToCoord(r)) : null;
}, t.prototype.convertFromPixel = function(e, n, r) {
var i = this._findConvertTarget(n);
return i.cartesian ? i.cartesian.pointToData(r) : i.axis ? i.axis.coordToData(i.axis.toLocalCoord(r)) : null;
}, t.prototype._findConvertTarget = function(e) {
var n = e.seriesModel, r = e.xAxisModel || n && n.getReferringComponents("xAxis", Dn).models[0], i = e.yAxisModel || n && n.getReferringComponents("yAxis", Dn).models[0], a = e.gridModel, o = this._coordsList, s, l;
if (n)
s = n.coordinateSystem, et(o, s) < 0 && (s = null);
else if (r && i)
s = this.getCartesian(r.componentIndex, i.componentIndex);
else if (r)
l = this.getAxis("x", r.componentIndex);
else if (i)
l = this.getAxis("y", i.componentIndex);
else if (a) {
var u = a.coordinateSystem;
u === this && (s = this._coordsList[0]);
}
return {
cartesian: s,
axis: l
};
}, t.prototype.containPoint = function(e) {
var n = this._coordsList[0];
if (n)
return n.containPoint(e);
}, t.prototype._initCartesian = function(e, n, r) {
var i = this, a = this, o = {
left: !1,
right: !1,
top: !1,
bottom: !1
}, s = {
x: {},
y: {}
}, l = {
x: 0,
y: 0
};
if (n.eachComponent("xAxis", u("x"), this), n.eachComponent("yAxis", u("y"), this), !l.x || !l.y) {
this._axesMap = {}, this._axesList = [];
return;
}
this._axesMap = s, k(s.x, function(c, f) {
k(s.y, function(d, h) {
var p = "x" + f + "y" + h, v = new R6e(p);
v.master = i, v.model = e, i._coordsMap[p] = v, i._coordsList.push(v), v.addAxis(c), v.addAxis(d);
});
});
function u(c) {
return function(f, d) {
if (lP(f, e)) {
var h = f.get("position");
c === "x" ? h !== "top" && h !== "bottom" && (h = o.bottom ? "top" : "bottom") : h !== "left" && h !== "right" && (h = o.left ? "right" : "left"), o[h] = !0;
var p = new k6e(c, j0(f), [0, 0], f.get("type"), h), v = p.type === "category";
p.onBand = v && f.get("boundaryGap"), p.inverse = f.get("inverse"), f.axis = p, p.model = f, p.grid = a, p.index = d, a._axesList.push(p), s[c][d] = p, l[c]++;
}
};
}
}, t.prototype._updateScale = function(e, n) {
k(this._axesList, function(i) {
if (i.scale.setExtent(1 / 0, -1 / 0), i.type === "category") {
var a = i.model.get("categorySortInfo");
i.scale.setSortInfo(a);
}
}), e.eachSeries(function(i) {
if (qV(i)) {
var a = KV(i), o = a.xAxisModel, s = a.yAxisModel;
if (!lP(o, n) || !lP(s, n))
return;
var l = this.getCartesian(o.componentIndex, s.componentIndex), u = i.getData(), c = l.getAxis("x"), f = l.getAxis("y");
r(u, c), r(u, f);
}
}, this);
function r(i, a) {
k(PO(i, a.dim), function(o) {
a.scale.unionExtentFromData(i, o);
});
}
}, t.prototype.getTooltipAxes = function(e) {
var n = [], r = [];
return k(this.getCartesians(), function(i) {
var a = e != null && e !== "auto" ? i.getAxis(e) : i.getBaseAxis(), o = i.getOtherAxis(a);
et(n, a) < 0 && n.push(a), et(r, o) < 0 && r.push(o);
}), {
baseAxes: n,
otherAxes: r
};
}, t.create = function(e, n) {
var r = [];
return e.eachComponent("grid", function(i, a) {
var o = new t(i, e, n);
o.name = "grid_" + a, o.resize(i, n, !0), i.coordinateSystem = o, r.push(o);
}), e.eachSeries(function(i) {
if (qV(i)) {
var a = KV(i), o = a.xAxisModel, s = a.yAxisModel, l = o.getCoordSysModel();
if (process.env.NODE_ENV !== "production") {
if (!l)
throw new Error('Grid "' + Ui(o.get("gridIndex"), o.get("gridId"), 0) + '" not found');
if (o.getCoordSysModel() !== s.getCoordSysModel())
throw new Error("xAxis and yAxis must use the same grid");
}
var u = l.coordinateSystem;
i.coordinateSystem = u.getCartesian(o.componentIndex, s.componentIndex);
}
}), r;
}, t.dimensions = fE, t;
}()
);
function lP(t, e) {
return t.getCoordSysModel() === e;
}
function JV(t, e, n, r) {
n.getAxesOnZeroOf = function() {
return a ? [a] : [];
};
var i = t[e], a, o = n.model, s = o.get(["axisLine", "onZero"]), l = o.get(["axisLine", "onZeroAxisIndex"]);
if (!s)
return;
if (l != null)
eF(i[l]) && (a = i[l]);
else
for (var u in i)
if (i.hasOwnProperty(u) && eF(i[u]) && !r[c(i[u])]) {
a = i[u];
break;
}
a && (r[c(a)] = !0);
function c(f) {
return f.dim + "_" + f.index;
}
}
function eF(t) {
return t && t.type !== "category" && t.type !== "time" && e5e(t);
}
function N6e(t, e) {
var n = t.getExtent(), r = n[0] + n[1];
t.toGlobalCoord = t.dim === "x" ? function(i) {
return i + e;
} : function(i) {
return r - i + e;
}, t.toLocalCoord = t.dim === "x" ? function(i) {
return i - e;
} : function(i) {
return r - i + e;
};
}
var zl = Math.PI, Jr = (
/** @class */
function() {
function t(e, n) {
this.group = new Ve(), this.opt = n, this.axisModel = e, Re(n, {
labelOffset: 0,
nameDirection: 1,
tickDirection: 1,
labelDirection: 1,
silent: !0,
handleAutoShown: function() {
return !0;
}
});
var r = new Ve({
x: n.position[0],
y: n.position[1],
rotation: n.rotation
});
r.updateTransform(), this._transformGroup = r;
}
return t.prototype.hasBuilder = function(e) {
return !!tF[e];
}, t.prototype.add = function(e) {
tF[e](this.opt, this.axisModel, this.group, this._transformGroup);
}, t.prototype.getGroup = function() {
return this.group;
}, t.innerTextLayout = function(e, n, r) {
var i = $R(n - e), a, o;
return Fh(i) ? (o = r > 0 ? "top" : "bottom", a = "center") : Fh(i - zl) ? (o = r > 0 ? "bottom" : "top", a = "center") : (o = "middle", i > 0 && i < zl ? a = r > 0 ? "right" : "left" : a = r > 0 ? "left" : "right"), {
rotation: i,
textAlign: a,
textVerticalAlign: o
};
}, t.makeAxisEventDataBase = function(e) {
var n = {
componentType: e.mainType,
componentIndex: e.componentIndex
};
return n[e.mainType + "Index"] = e.componentIndex, n;
}, t.isLabelSilent = function(e) {
var n = e.get("tooltip");
return e.get("silent") || !(e.get("triggerEvent") || n && n.show);
}, t;
}()
), tF = {
axisLine: function(t, e, n, r) {
var i = e.get(["axisLine", "show"]);
if (i === "auto" && t.handleAutoShown && (i = t.handleAutoShown("axisLine")), !!i) {
var a = e.axis.getExtent(), o = r.transform, s = [a[0], 0], l = [a[1], 0], u = s[0] > l[0];
o && (ar(s, s, o), ar(l, l, o));
var c = le({
lineCap: "round"
}, e.getModel(["axisLine", "lineStyle"]).getLineStyle()), f = new Un({
shape: {
x1: s[0],
y1: s[1],
x2: l[0],
y2: l[1]
},
style: c,
strokeContainThreshold: t.strokeContainThreshold || 5,
silent: !0,
z2: 1
});
Hh(f.shape, f.style.lineWidth), f.anid = "line", n.add(f);
var d = e.get(["axisLine", "symbol"]);
if (d != null) {
var h = e.get(["axisLine", "symbolSize"]);
Oe(d) && (d = [d, d]), (Oe(h) || St(h)) && (h = [h, h]);
var p = Ff(e.get(["axisLine", "symbolOffset"]) || 0, h), v = h[0], g = h[1];
k([{
rotate: t.rotation + Math.PI / 2,
offset: p[0],
r: 0
}, {
rotate: t.rotation - Math.PI / 2,
offset: p[1],
r: Math.sqrt((s[0] - l[0]) * (s[0] - l[0]) + (s[1] - l[1]) * (s[1] - l[1]))
}], function(m, y) {
if (d[y] !== "none" && d[y] != null) {
var b = $n(d[y], -v / 2, -g / 2, v, g, c.stroke, !0), _ = m.r + m.offset, O = u ? l : s;
b.attr({
rotation: m.rotate,
x: O[0] + _ * Math.cos(t.rotation),
y: O[1] - _ * Math.sin(t.rotation),
silent: !0,
z2: 11
}), n.add(b);
}
});
}
}
},
axisTickLabel: function(t, e, n, r) {
var i = V6e(n, r, e, t), a = W6e(n, r, e, t);
if (z6e(e, a, i), F6e(n, r, e, t.tickDirection), e.get(["axisLabel", "hideOverlap"])) {
var o = yte(ce(a, function(s) {
return {
label: s,
priority: s.z2,
defaultAttr: {
ignore: s.ignore
}
};
}));
Ote(o);
}
},
axisName: function(t, e, n, r) {
var i = Tn(t.axisName, e.get("name"));
if (i) {
var a = e.get("nameLocation"), o = t.nameDirection, s = e.getModel("nameTextStyle"), l = e.get("nameGap") || 0, u = e.axis.getExtent(), c = u[0] > u[1] ? -1 : 1, f = [
a === "start" ? u[0] - c * l : a === "end" ? u[1] + c * l : (u[0] + u[1]) / 2,
// Reuse labelOffset.
rF(a) ? t.labelOffset + o * l : 0
], d, h = e.get("nameRotate");
h != null && (h = h * zl / 180);
var p;
rF(a) ? d = Jr.innerTextLayout(
t.rotation,
h ?? t.rotation,
// Adapt to axis.
o
) : (d = B6e(t.rotation, a, h || 0, u), p = t.axisNameAvailableWidth, p != null && (p = Math.abs(p / Math.sin(d.rotation)), !isFinite(p) && (p = null)));
var v = s.getFont(), g = e.get("nameTruncate", !0) || {}, m = g.ellipsis, y = Tn(t.nameTruncateMaxWidth, g.maxWidth, p), b = new gt({
x: f[0],
y: f[1],
rotation: d.rotation,
silent: Jr.isLabelSilent(e),
style: Zt(s, {
text: i,
font: v,
overflow: "truncate",
width: y,
ellipsis: m,
fill: s.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
align: s.get("align") || d.textAlign,
verticalAlign: s.get("verticalAlign") || d.textVerticalAlign
}),
z2: 1
});
if (Op({
el: b,
componentModel: e,
itemName: i
}), b.__fullText = i, b.anid = "name", e.get("triggerEvent")) {
var _ = Jr.makeAxisEventDataBase(e);
_.targetType = "axisName", _.name = i, Fe(b).eventData = _;
}
r.add(b), b.updateTransform(), n.add(b), b.decomposeTransform();
}
}
};
function B6e(t, e, n, r) {
var i = $R(n - t), a, o, s = r[0] > r[1], l = e === "start" && !s || e !== "start" && s;
return Fh(i - zl / 2) ? (o = l ? "bottom" : "top", a = "center") : Fh(i - zl * 1.5) ? (o = l ? "top" : "bottom", a = "center") : (o = "middle", i < zl * 1.5 && i > zl / 2 ? a = l ? "left" : "right" : a = l ? "right" : "left"), {
rotation: i,
textAlign: a,
textVerticalAlign: o
};
}
function z6e(t, e, n) {
if (!ate(t.axis)) {
var r = t.get(["axisLabel", "showMinLabel"]), i = t.get(["axisLabel", "showMaxLabel"]);
e = e || [], n = n || [];
var a = e[0], o = e[1], s = e[e.length - 1], l = e[e.length - 2], u = n[0], c = n[1], f = n[n.length - 1], d = n[n.length - 2];
r === !1 ? (ia(a), ia(u)) : nF(a, o) && (r ? (ia(o), ia(c)) : (ia(a), ia(u))), i === !1 ? (ia(s), ia(f)) : nF(l, s) && (i ? (ia(l), ia(d)) : (ia(s), ia(f)));
}
}
function ia(t) {
t && (t.ignore = !0);
}
function nF(t, e) {
var n = t && t.getBoundingRect().clone(), r = e && e.getBoundingRect().clone();
if (!(!n || !r)) {
var i = R0([]);
return Cu(i, i, -t.rotation), n.applyTransform(Xo([], i, t.getLocalTransform())), r.applyTransform(Xo([], i, e.getLocalTransform())), n.intersect(r);
}
}
function rF(t) {
return t === "middle" || t === "center";
}
function nne(t, e, n, r, i) {
for (var a = [], o = [], s = [], l = 0; l < t.length; l++) {
var u = t[l].coord;
o[0] = u, o[1] = 0, s[0] = u, s[1] = n, e && (ar(o, o, e), ar(s, s, e));
var c = new Un({
shape: {
x1: o[0],
y1: o[1],
x2: s[0],
y2: s[1]
},
style: r,
z2: 2,
autoBatch: !0,
silent: !0
});
Hh(c.shape, c.style.lineWidth), c.anid = i + "_" + t[l].tickValue, a.push(c);
}
return a;
}
function V6e(t, e, n, r) {
var i = n.axis, a = n.getModel("axisTick"), o = a.get("show");
if (o === "auto" && r.handleAutoShown && (o = r.handleAutoShown("axisTick")), !(!o || i.scale.isBlank())) {
for (var s = a.getModel("lineStyle"), l = r.tickDirection * a.get("length"), u = i.getTicksCoords(), c = nne(u, e.transform, l, Re(s.getLineStyle(), {
stroke: n.get(["axisLine", "lineStyle", "color"])
}), "ticks"), f = 0; f < c.length; f++)
t.add(c[f]);
return c;
}
}
function F6e(t, e, n, r) {
var i = n.axis, a = n.getModel("minorTick");
if (!(!a.get("show") || i.scale.isBlank())) {
var o = i.getMinorTicksCoords();
if (o.length)
for (var s = a.getModel("lineStyle"), l = r * a.get("length"), u = Re(s.getLineStyle(), Re(n.getModel("axisTick").getLineStyle(), {
stroke: n.get(["axisLine", "lineStyle", "color"])
})), c = 0; c < o.length; c++)
for (var f = nne(o[c], e.transform, l, u, "minorticks_" + c), d = 0; d < f.length; d++)
t.add(f[d]);
}
}
function W6e(t, e, n, r) {
var i = n.axis, a = Tn(r.axisLabelShow, n.get(["axisLabel", "show"]));
if (!(!a || i.scale.isBlank())) {
var o = n.getModel("axisLabel"), s = o.get("margin"), l = i.getViewLabels(), u = (Tn(r.labelRotate, o.get("rotate")) || 0) * zl / 180, c = Jr.innerTextLayout(r.rotation, u, r.labelDirection), f = n.getCategories && n.getCategories(!0), d = [], h = Jr.isLabelSilent(n), p = n.get("triggerEvent");
return k(l, function(v, g) {
var m = i.scale.type === "ordinal" ? i.scale.getRawOrdinalNumber(v.tickValue) : v.tickValue, y = v.formattedLabel, b = v.rawLabel, _ = o;
if (f && f[m]) {
var O = f[m];
Ie(O) && O.textStyle && (_ = new Wt(O.textStyle, o, n.ecModel));
}
var S = _.getTextColor() || n.get(["axisLine", "lineStyle", "color"]), x = i.dataToCoord(m), C = _.getShallow("align", !0) || c.textAlign, T = We(_.getShallow("alignMinLabel", !0), C), w = We(_.getShallow("alignMaxLabel", !0), C), P = _.getShallow("verticalAlign", !0) || _.getShallow("baseline", !0) || c.textVerticalAlign, $ = We(_.getShallow("verticalAlignMinLabel", !0), P), A = We(_.getShallow("verticalAlignMaxLabel", !0), P), D = new gt({
x,
y: r.labelOffset + r.labelDirection * s,
rotation: c.rotation,
silent: h,
z2: 10 + (v.level || 0),
style: Zt(_, {
text: y,
align: g === 0 ? T : g === l.length - 1 ? w : C,
verticalAlign: g === 0 ? $ : g === l.length - 1 ? A : P,
fill: Me(S) ? S(
// (1) In category axis with data zoom, tick is not the original
// index of axis.data. So tick should not be exposed to user
// in category axis.
// (2) Compatible with previous version, which always use formatted label as
// input. But in interval scale the formatted label is like '223,445', which
// maked user replace ','. So we modify it to return original val but remain
// it as 'string' to avoid error in replacing.
i.type === "category" ? b : i.type === "value" ? m + "" : m,
g
) : S
})
});
if (D.anid = "label_" + m, p) {
var E = Jr.makeAxisEventDataBase(n);
E.targetType = "axisLabel", E.value = b, E.tickIndex = g, i.type === "category" && (E.dataIndex = m), Fe(D).eventData = E;
}
e.add(D), D.updateTransform(), d.push(D), t.add(D), D.decomposeTransform();
}), d;
}
}
function Q6e(t, e) {
var n = {
/**
* key: makeKey(axis.model)
* value: {
* axis,
* coordSys,
* axisPointerModel,
* triggerTooltip,
* triggerEmphasis,
* involveSeries,
* snap,
* seriesModels,
* seriesDataCount
* }
*/
axesInfo: {},
seriesInvolved: !1,
/**
* key: makeKey(coordSys.model)
* value: Object: key makeKey(axis.model), value: axisInfo
*/
coordSysAxesInfo: {},
coordSysMap: {}
};
return H6e(n, t, e), n.seriesInvolved && j6e(n, t), n;
}
function H6e(t, e, n) {
var r = e.getComponent("tooltip"), i = e.getComponent("axisPointer"), a = i.get("link", !0) || [], o = [];
k(n.getCoordinateSystems(), function(s) {
if (!s.axisPointerEnabled)
return;
var l = zm(s.model), u = t.coordSysAxesInfo[l] = {};
t.coordSysMap[l] = s;
var c = s.model, f = c.getModel("tooltip", r);
if (k(s.getAxes(), Ue(v, !1, null)), s.getTooltipAxes && r && f.get("show")) {
var d = f.get("trigger") === "axis", h = f.get(["axisPointer", "type"]) === "cross", p = s.getTooltipAxes(f.get(["axisPointer", "axis"]));
(d || h) && k(p.baseAxes, Ue(v, h ? "cross" : !0, d)), h && k(p.otherAxes, Ue(v, "cross", !1));
}
function v(g, m, y) {
var b = y.model.getModel("axisPointer", i), _ = b.get("show");
if (!(!_ || _ === "auto" && !g && !hE(b))) {
m == null && (m = b.get("triggerTooltip")), b = g ? G6e(y, f, i, e, g, m) : b;
var O = b.get("snap"), S = b.get("triggerEmphasis"), x = zm(y.model), C = m || O || y.type === "category", T = t.axesInfo[x] = {
key: x,
axis: y,
coordSys: s,
axisPointerModel: b,
triggerTooltip: m,
triggerEmphasis: S,
involveSeries: C,
snap: O,
useHandle: hE(b),
seriesModels: [],
linkGroup: null
};
u[x] = T, t.seriesInvolved = t.seriesInvolved || C;
var w = Z6e(a, y);
if (w != null) {
var P = o[w] || (o[w] = {
axesInfo: {}
});
P.axesInfo[x] = T, P.mapper = a[w].mapper, T.linkGroup = P;
}
}
}
});
}
function G6e(t, e, n, r, i, a) {
var o = e.getModel("axisPointer"), s = ["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"], l = {};
k(s, function(d) {
l[d] = Le(o.get(d));
}), l.snap = t.type !== "category" && !!a, o.get("type") === "cross" && (l.type = "line");
var u = l.label || (l.label = {});
if (u.show == null && (u.show = !1), i === "cross") {
var c = o.get(["label", "show"]);
if (u.show = c ?? !0, !a) {
var f = l.lineStyle = o.get("crossStyle");
f && Re(u, f.textStyle);
}
}
return t.model.getModel("axisPointer", new Wt(l, n, r));
}
function j6e(t, e) {
e.eachSeries(function(n) {
var r = n.coordinateSystem, i = n.get(["tooltip", "trigger"], !0), a = n.get(["tooltip", "show"], !0);
!r || i === "none" || i === !1 || i === "item" || a === !1 || n.get(["axisPointer", "show"], !0) === !1 || k(t.coordSysAxesInfo[zm(r.model)], function(o) {
var s = o.axis;
r.getAxis(s.dim) === s && (o.seriesModels.push(n), o.seriesDataCount == null && (o.seriesDataCount = 0), o.seriesDataCount += n.getData().count());
});
});
}
function Z6e(t, e) {
for (var n = e.model, r = e.dim, i = 0; i < t.length; i++) {
var a = t[i] || {};
if (uP(a[r + "AxisId"], n.id) || uP(a[r + "AxisIndex"], n.componentIndex) || uP(a[r + "AxisName"], n.name))
return i;
}
}
function uP(t, e) {
return t === "all" || ue(t) && et(t, e) >= 0 || t === e;
}
function U6e(t) {
var e = zk(t);
if (e) {
var n = e.axisPointerModel, r = e.axis.scale, i = n.option, a = n.get("status"), o = n.get("value");
o != null && (o = r.parse(o));
var s = hE(n);
a == null && (i.status = s ? "show" : "hide");
var l = r.getExtent().slice();
l[0] > l[1] && l.reverse(), // Pick a value on axis when initializing.
(o == null || o > l[1]) && (o = l[1]), o < l[0] && (o = l[0]), i.value = o, s && (i.status = e.axis.scale.isBlank() ? "hide" : "show");
}
}
function zk(t) {
var e = (t.ecModel.getComponent("axisPointer") || {}).coordSysAxesInfo;
return e && e.axesInfo[zm(t)];
}
function X6e(t) {
var e = zk(t);
return e && e.axisPointerModel;
}
function hE(t) {
return !!t.get(["handle", "show"]);
}
function zm(t) {
return t.type + "||" + t.id;
}
var cP = {}, Qf = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i, a) {
this.axisPointerClass && U6e(n), t.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(n, i, !0);
}, e.prototype.updateAxisPointer = function(n, r, i, a) {
this._doUpdateAxisPointerClass(n, i, !1);
}, e.prototype.remove = function(n, r) {
var i = this._axisPointer;
i && i.remove(r);
}, e.prototype.dispose = function(n, r) {
this._disposeAxisPointer(r), t.prototype.dispose.apply(this, arguments);
}, e.prototype._doUpdateAxisPointerClass = function(n, r, i) {
var a = e.getAxisPointerClass(this.axisPointerClass);
if (a) {
var o = X6e(n);
o ? (this._axisPointer || (this._axisPointer = new a())).render(n, o, r, i) : this._disposeAxisPointer(r);
}
}, e.prototype._disposeAxisPointer = function(n) {
this._axisPointer && this._axisPointer.dispose(n), this._axisPointer = null;
}, e.registerAxisPointerClass = function(n, r) {
if (process.env.NODE_ENV !== "production" && cP[n])
throw new Error("axisPointer " + n + " exists");
cP[n] = r;
}, e.getAxisPointerClass = function(n) {
return n && cP[n];
}, e.type = "axis", e;
}(Xt)
), pE = bt();
function rne(t, e, n, r) {
var i = n.axis;
if (!i.scale.isBlank()) {
var a = n.getModel("splitArea"), o = a.getModel("areaStyle"), s = o.get("color"), l = r.coordinateSystem.getRect(), u = i.getTicksCoords({
tickModel: a,
clamp: !0
});
if (u.length) {
var c = s.length, f = pE(t).splitAreaColors, d = Pe(), h = 0;
if (f)
for (var p = 0; p < u.length; p++) {
var v = f.get(u[p].tickValue);
if (v != null) {
h = (v + (c - 1) * p) % c;
break;
}
}
var g = i.toGlobalCoord(u[0].coord), m = o.getAreaStyle();
s = ue(s) ? s : [s];
for (var p = 1; p < u.length; p++) {
var y = i.toGlobalCoord(u[p].coord), b = void 0, _ = void 0, O = void 0, S = void 0;
i.isHorizontal() ? (b = g, _ = l.y, O = y - b, S = l.height, g = b + O) : (b = l.x, _ = g, O = l.width, S = y - _, g = _ + S);
var x = u[p - 1].tickValue;
x != null && d.set(x, h), e.add(new mt({
anid: x != null ? "area_" + x : null,
shape: {
x: b,
y: _,
width: O,
height: S
},
style: Re({
fill: s[h]
}, m),
autoBatch: !0,
silent: !0
})), h = (h + 1) % c;
}
pE(t).splitAreaColors = d;
}
}
}
function ine(t) {
pE(t).splitAreaColors = null;
}
var Y6e = ["axisLine", "axisTickLabel", "axisName"], q6e = ["splitArea", "splitLine", "minorSplitLine"], ane = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.axisPointerClass = "CartesianAxisPointer", n;
}
return e.prototype.render = function(n, r, i, a) {
this.group.removeAll();
var o = this._axisGroup;
if (this._axisGroup = new Ve(), this.group.add(this._axisGroup), !!n.get("show")) {
var s = n.getCoordSysModel(), l = dE(s, n), u = new Jr(n, le({
handleAutoShown: function(f) {
for (var d = s.coordinateSystem.getCartesians(), h = 0; h < d.length; h++)
if (rE(d[h].getOtherAxis(n.axis).scale))
return !0;
return !1;
}
}, l));
k(Y6e, u.add, u), this._axisGroup.add(u.getGroup()), k(q6e, function(f) {
n.get([f, "show"]) && K6e[f](this, this._axisGroup, n, s);
}, this);
var c = a && a.type === "changeAxisOrder" && a.isInitSort;
c || Q0(o, this._axisGroup, n), t.prototype.render.call(this, n, r, i, a);
}
}, e.prototype.remove = function() {
ine(this);
}, e.type = "cartesianAxis", e;
}(Qf)
), K6e = {
splitLine: function(t, e, n, r) {
var i = n.axis;
if (!i.scale.isBlank()) {
var a = n.getModel("splitLine"), o = a.getModel("lineStyle"), s = o.get("color");
s = ue(s) ? s : [s];
for (var l = r.coordinateSystem.getRect(), u = i.isHorizontal(), c = 0, f = i.getTicksCoords({
tickModel: a
}), d = [], h = [], p = o.getLineStyle(), v = 0; v < f.length; v++) {
var g = i.toGlobalCoord(f[v].coord);
u ? (d[0] = g, d[1] = l.y, h[0] = g, h[1] = l.y + l.height) : (d[0] = l.x, d[1] = g, h[0] = l.x + l.width, h[1] = g);
var m = c++ % s.length, y = f[v].tickValue, b = new Un({
anid: y != null ? "line_" + f[v].tickValue : null,
autoBatch: !0,
shape: {
x1: d[0],
y1: d[1],
x2: h[0],
y2: h[1]
},
style: Re({
stroke: s[m]
}, p),
silent: !0
});
Hh(b.shape, p.lineWidth), e.add(b);
}
}
},
minorSplitLine: function(t, e, n, r) {
var i = n.axis, a = n.getModel("minorSplitLine"), o = a.getModel("lineStyle"), s = r.coordinateSystem.getRect(), l = i.isHorizontal(), u = i.getMinorTicksCoords();
if (u.length)
for (var c = [], f = [], d = o.getLineStyle(), h = 0; h < u.length; h++)
for (var p = 0; p < u[h].length; p++) {
var v = i.toGlobalCoord(u[h][p].coord);
l ? (c[0] = v, c[1] = s.y, f[0] = v, f[1] = s.y + s.height) : (c[0] = s.x, c[1] = v, f[0] = s.x + s.width, f[1] = v);
var g = new Un({
anid: "minor_line_" + u[h][p].tickValue,
autoBatch: !0,
shape: {
x1: c[0],
y1: c[1],
x2: f[0],
y2: f[1]
},
style: d,
silent: !0
});
Hh(g.shape, d.lineWidth), e.add(g);
}
},
splitArea: function(t, e, n, r) {
rne(t, e, n, r);
}
}, one = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "xAxis", e;
}(ane)
), J6e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = one.type, n;
}
return e.type = "yAxis", e;
}(ane)
), eBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "grid", n;
}
return e.prototype.render = function(n, r) {
this.group.removeAll(), n.get("show") && this.group.add(new mt({
shape: n.coordinateSystem.getRect(),
style: Re({
fill: n.get("backgroundColor")
}, n.getItemStyle()),
silent: !0,
z2: -1
}));
}, e.type = "grid", e;
}(Xt)
), iF = {
// gridIndex: 0,
// gridId: '',
offset: 0
};
function sne(t) {
t.registerComponentView(eBe), t.registerComponentModel($6e), t.registerCoordinateSystem("cartesian2d", L6e), Uh(t, "x", cE, iF), Uh(t, "y", cE, iF), t.registerComponentView(one), t.registerComponentView(J6e), t.registerPreprocessor(function(e) {
e.xAxis && e.yAxis && !e.grid && (e.grid = {});
});
}
function tBe(t) {
at(sne), t.registerSeriesModel(x6e), t.registerChartView(P6e), t.registerLayout(Y0("scatter"));
}
function nBe(t) {
t.eachSeriesByType("radar", function(e) {
var n = e.getData(), r = [], i = e.coordinateSystem;
if (i) {
var a = i.getIndicatorAxes();
k(a, function(o, s) {
n.each(n.mapDimension(a[s].dim), function(l, u) {
r[u] = r[u] || [];
var c = i.dataToPoint(l, s);
r[u][s] = aF(c) ? c : oF(i);
});
}), n.each(function(o) {
var s = Cq(r[o], function(l) {
return aF(l);
}) || oF(i);
r[o].push(s.slice()), n.setItemLayout(o, r[o]);
});
}
});
}
function aF(t) {
return !isNaN(t[0]) && !isNaN(t[1]);
}
function oF(t) {
return [t.cx, t.cy];
}
function rBe(t) {
var e = t.polar;
if (e) {
ue(e) || (e = [e]);
var n = [];
k(e, function(r, i) {
r.indicator ? (r.type && !r.shape && (r.shape = r.type), t.radar = t.radar || [], ue(t.radar) || (t.radar = [t.radar]), t.radar.push(r)) : n.push(r);
}), t.polar = n;
}
k(t.series, function(r) {
r && r.type === "radar" && r.polarIndex && (r.radarIndex = r.polarIndex);
});
}
var iBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = n.coordinateSystem, o = this.group, s = n.getData(), l = this._data;
function u(d, h) {
var p = d.getItemVisual(h, "symbol") || "circle";
if (p !== "none") {
var v = $p(d.getItemVisual(h, "symbolSize")), g = $n(p, -1, -1, 2, 2), m = d.getItemVisual(h, "symbolRotate") || 0;
return g.attr({
style: {
strokeNoScale: !0
},
z2: 100,
scaleX: v[0] / 2,
scaleY: v[1] / 2,
rotation: m * Math.PI / 180 || 0
}), g;
}
}
function c(d, h, p, v, g, m) {
p.removeAll();
for (var y = 0; y < h.length - 1; y++) {
var b = u(v, g);
b && (b.__dimIdx = y, d[y] ? (b.setPosition(d[y]), Nf[m ? "initProps" : "updateProps"](b, {
x: h[y][0],
y: h[y][1]
}, n, g)) : b.setPosition(h[y]), p.add(b));
}
}
function f(d) {
return ce(d, function(h) {
return [a.cx, a.cy];
});
}
s.diff(l).add(function(d) {
var h = s.getItemLayout(d);
if (h) {
var p = new ai(), v = new oi(), g = {
shape: {
points: h
}
};
p.shape.points = f(h), v.shape.points = f(h), Yt(p, g, n, d), Yt(v, g, n, d);
var m = new Ve(), y = new Ve();
m.add(v), m.add(p), m.add(y), c(v.shape.points, h, y, s, d, !0), s.setItemGraphicEl(d, m);
}
}).update(function(d, h) {
var p = l.getItemGraphicEl(h), v = p.childAt(0), g = p.childAt(1), m = p.childAt(2), y = {
shape: {
points: s.getItemLayout(d)
}
};
y.shape.points && (c(v.shape.points, y.shape.points, m, s, d, !1), uo(g), uo(v), Ct(v, y, n), Ct(g, y, n), s.setItemGraphicEl(d, p));
}).remove(function(d) {
o.remove(l.getItemGraphicEl(d));
}).execute(), s.eachItemGraphicEl(function(d, h) {
var p = s.getItemModel(h), v = d.childAt(0), g = d.childAt(1), m = d.childAt(2), y = s.getItemVisual(h, "style"), b = y.fill;
o.add(d), v.useStyle(Re(p.getModel("lineStyle").getLineStyle(), {
fill: "none",
stroke: b
})), Tr(v, p, "lineStyle"), Tr(g, p, "areaStyle");
var _ = p.getModel("areaStyle"), O = _.isEmpty() && _.parentModel.isEmpty();
g.ignore = O, k(["emphasis", "select", "blur"], function(C) {
var T = p.getModel([C, "areaStyle"]), w = T.isEmpty() && T.parentModel.isEmpty();
g.ensureState(C).ignore = w && O;
}), g.useStyle(Re(_.getAreaStyle(), {
fill: b,
opacity: 0.7,
decal: y.decal
}));
var S = p.getModel("emphasis"), x = S.getModel("itemStyle").getItemStyle();
m.eachChild(function(C) {
if (C instanceof lr) {
var T = C.style;
C.useStyle(le({
// TODO other properties like x, y ?
image: T.image,
x: T.x,
y: T.y,
width: T.width,
height: T.height
}, y));
} else
C.useStyle(y), C.setColor(b), C.style.strokeNoScale = !0;
var w = C.ensureState("emphasis");
w.style = Le(x);
var P = s.getStore().get(s.getDimensionIndex(C.__dimIdx), h);
(P == null || isNaN(P)) && (P = ""), Pr(C, er(p), {
labelFetcher: s.hostModel,
labelDataIndex: h,
labelDimIndex: C.__dimIdx,
defaultText: P,
inheritColor: b,
defaultOpacity: y.opacity
});
}), bn(d, S.get("focus"), S.get("blurScope"), S.get("disabled"));
}), this._data = s;
}, e.prototype.remove = function() {
this.group.removeAll(), this._data = null;
}, e.type = "radar", e;
}(zt)
), aBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.hasSymbolVisual = !0, n;
}
return e.prototype.init = function(n) {
t.prototype.init.apply(this, arguments), this.legendVisualProvider = new K0(xe(this.getData, this), xe(this.getRawData, this));
}, e.prototype.getInitialData = function(n, r) {
return Ip(this, {
generateCoord: "indicator_",
generateCoordCount: 1 / 0
});
}, e.prototype.formatTooltip = function(n, r, i) {
var a = this.getData(), o = this.coordinateSystem, s = o.getIndicatorAxes(), l = this.getData().getName(n), u = l === "" ? this.name : l, c = ree(this, n);
return tr("section", {
header: u,
sortBlocks: !0,
blocks: ce(s, function(f) {
var d = a.get(a.mapDimension(f.dim), n);
return tr("nameValue", {
markerType: "subItem",
markerColor: c,
name: f.name,
value: d,
sortParam: d
});
})
});
}, e.prototype.getTooltipPosition = function(n) {
if (n != null) {
for (var r = this.getData(), i = this.coordinateSystem, a = r.getValues(ce(i.dimensions, function(u) {
return r.mapDimension(u);
}), n), o = 0, s = a.length; o < s; o++)
if (!isNaN(a[o])) {
var l = i.getIndicatorAxes();
return i.coordToPoint(l[o].dataToCoord(a[o]), o);
}
}
}, e.type = "series.radar", e.dependencies = ["radar"], e.defaultOption = {
// zlevel: 0,
z: 2,
colorBy: "data",
coordinateSystem: "radar",
legendHoverLink: !0,
radarIndex: 0,
lineStyle: {
width: 2,
type: "solid",
join: "round"
},
label: {
position: "top"
},
// areaStyle: {
// },
// itemStyle: {}
symbolSize: 8
// symbolRotate: null
}, e;
}(Ht)
), Ov = ene.value;
function Cb(t, e) {
return Re({
show: e
}, t);
}
var oBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.optionUpdated = function() {
var n = this.get("boundaryGap"), r = this.get("splitNumber"), i = this.get("scale"), a = this.get("axisLine"), o = this.get("axisTick"), s = this.get("axisLabel"), l = this.get("axisName"), u = this.get(["axisName", "show"]), c = this.get(["axisName", "formatter"]), f = this.get("axisNameGap"), d = this.get("triggerEvent"), h = ce(this.get("indicator") || [], function(p) {
p.max != null && p.max > 0 && !p.min ? p.min = 0 : p.min != null && p.min < 0 && !p.max && (p.max = 0);
var v = l;
p.color != null && (v = Re({
color: p.color
}, l));
var g = qe(Le(p), {
boundaryGap: n,
splitNumber: r,
scale: i,
axisLine: a,
axisTick: o,
// axisType: axisType,
axisLabel: s,
// Compatible with 2 and use text
name: p.text,
showName: u,
nameLocation: "end",
nameGap: f,
// min: 0,
nameTextStyle: v,
triggerEvent: d
}, !1);
if (Oe(c)) {
var m = g.name;
g.name = c.replace("{value}", m ?? "");
} else Me(c) && (g.name = c(g.name, g));
var y = new Wt(g, null, this.ecModel);
return xn(y, Mp.prototype), y.mainType = "radar", y.componentIndex = this.componentIndex, y;
}, this);
this._indicatorModels = h;
}, e.prototype.getIndicatorModels = function() {
return this._indicatorModels;
}, e.type = "radar", e.defaultOption = {
// zlevel: 0,
z: 0,
center: ["50%", "50%"],
radius: "75%",
startAngle: 90,
axisName: {
show: !0
// formatter: null
// textStyle: {}
},
boundaryGap: [0, 0],
splitNumber: 5,
axisNameGap: 15,
scale: !1,
// Polygon or circle
shape: "polygon",
axisLine: qe({
lineStyle: {
color: "#bbb"
}
}, Ov.axisLine),
axisLabel: Cb(Ov.axisLabel, !1),
axisTick: Cb(Ov.axisTick, !1),
// axisType: 'value',
splitLine: Cb(Ov.splitLine, !0),
splitArea: Cb(Ov.splitArea, !0),
// {text, min, max}
indicator: []
}, e;
}(rt)
), sBe = ["axisLine", "axisTickLabel", "axisName"], lBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = this.group;
a.removeAll(), this._buildAxes(n), this._buildSplitLineAndArea(n);
}, e.prototype._buildAxes = function(n) {
var r = n.coordinateSystem, i = r.getIndicatorAxes(), a = ce(i, function(o) {
var s = o.model.get("showName") ? o.name : "", l = new Jr(o.model, {
axisName: s,
position: [r.cx, r.cy],
rotation: o.angle,
labelDirection: -1,
tickDirection: -1,
nameDirection: 1
});
return l;
});
k(a, function(o) {
k(sBe, o.add, o), this.group.add(o.getGroup());
}, this);
}, e.prototype._buildSplitLineAndArea = function(n) {
var r = n.coordinateSystem, i = r.getIndicatorAxes();
if (!i.length)
return;
var a = n.get("shape"), o = n.getModel("splitLine"), s = n.getModel("splitArea"), l = o.getModel("lineStyle"), u = s.getModel("areaStyle"), c = o.get("show"), f = s.get("show"), d = l.get("color"), h = u.get("color"), p = ue(d) ? d : [d], v = ue(h) ? h : [h], g = [], m = [];
function y(E, R, N) {
var V = N % R.length;
return E[V] = E[V] || [], V;
}
if (a === "circle")
for (var b = i[0].getTicksCoords(), _ = r.cx, O = r.cy, S = 0; S < b.length; S++) {
if (c) {
var x = y(g, p, S);
g[x].push(new ul({
shape: {
cx: _,
cy: O,
r: b[S].coord
}
}));
}
if (f && S < b.length - 1) {
var x = y(m, v, S);
m[x].push(new V0({
shape: {
cx: _,
cy: O,
r0: b[S].coord,
r: b[S + 1].coord
}
}));
}
}
else
for (var C, T = ce(i, function(E, R) {
var N = E.getTicksCoords();
return C = C == null ? N.length - 1 : Math.min(N.length - 1, C), ce(N, function(V) {
return r.coordToPoint(V.coord, R);
});
}), w = [], S = 0; S <= C; S++) {
for (var P = [], $ = 0; $ < i.length; $++)
P.push(T[$][S]);
if (P[0] ? P.push(P[0].slice()) : process.env.NODE_ENV !== "production" && console.error("Can't draw value axis " + S), c) {
var x = y(g, p, S);
g[x].push(new oi({
shape: {
points: P
}
}));
}
if (f && w) {
var x = y(m, v, S - 1);
m[x].push(new ai({
shape: {
points: P.concat(w)
}
}));
}
w = P.slice().reverse();
}
var A = l.getLineStyle(), D = u.getAreaStyle();
k(m, function(E, R) {
this.group.add(Bi(E, {
style: Re({
stroke: "none",
fill: v[R % v.length]
}, D),
silent: !0
}));
}, this), k(g, function(E, R) {
this.group.add(Bi(E, {
style: Re({
fill: "none",
stroke: p[R % p.length]
}, A),
silent: !0
}));
}, this);
}, e.type = "radar", e;
}(Xt)
), uBe = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this, n, r, i) || this;
return a.type = "value", a.angle = 0, a.name = "", a;
}
return e;
}(Va)
), cBe = (
/** @class */
function() {
function t(e, n, r) {
this.dimensions = [], this._model = e, this._indicatorAxes = ce(e.getIndicatorModels(), function(i, a) {
var o = "indicator_" + a, s = new uBe(
o,
new qs()
// (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()
);
return s.name = i.get("name"), s.model = i, i.axis = s, this.dimensions.push(o), s;
}, this), this.resize(e, r);
}
return t.prototype.getIndicatorAxes = function() {
return this._indicatorAxes;
}, t.prototype.dataToPoint = function(e, n) {
var r = this._indicatorAxes[n];
return this.coordToPoint(r.dataToCoord(e), n);
}, t.prototype.coordToPoint = function(e, n) {
var r = this._indicatorAxes[n], i = r.angle, a = this.cx + e * Math.cos(i), o = this.cy - e * Math.sin(i);
return [a, o];
}, t.prototype.pointToData = function(e) {
var n = e[0] - this.cx, r = e[1] - this.cy, i = Math.sqrt(n * n + r * r);
n /= i, r /= i;
for (var a = Math.atan2(-r, n), o = 1 / 0, s, l = -1, u = 0; u < this._indicatorAxes.length; u++) {
var c = this._indicatorAxes[u], f = Math.abs(a - c.angle);
f < o && (s = c, l = u, o = f);
}
return [l, +(s && s.coordToData(i))];
}, t.prototype.resize = function(e, n) {
var r = e.get("center"), i = n.getWidth(), a = n.getHeight(), o = Math.min(i, a) / 2;
this.cx = _e(r[0], i), this.cy = _e(r[1], a), this.startAngle = e.get("startAngle") * Math.PI / 180;
var s = e.get("radius");
(Oe(s) || St(s)) && (s = [0, s]), this.r0 = _e(s[0], o), this.r = _e(s[1], o), k(this._indicatorAxes, function(l, u) {
l.setExtent(this.r0, this.r);
var c = this.startAngle + u * Math.PI * 2 / this._indicatorAxes.length;
c = Math.atan2(Math.sin(c), Math.cos(c)), l.angle = c;
}, this);
}, t.prototype.update = function(e, n) {
var r = this._indicatorAxes, i = this._model;
k(r, function(s) {
s.scale.setExtent(1 / 0, -1 / 0);
}), e.eachSeriesByType("radar", function(s, l) {
if (!(s.get("coordinateSystem") !== "radar" || e.getComponent("radar", s.get("radarIndex")) !== i)) {
var u = s.getData();
k(r, function(c) {
c.scale.unionExtentFromData(u, u.mapDimension(c.dim));
});
}
}, this);
var a = i.get("splitNumber"), o = new qs();
o.setExtent(0, a), o.setInterval(1), k(r, function(s, l) {
tne(s.scale, s.model, o);
});
}, t.prototype.convertToPixel = function(e, n, r) {
return console.warn("Not implemented."), null;
}, t.prototype.convertFromPixel = function(e, n, r) {
return console.warn("Not implemented."), null;
}, t.prototype.containPoint = function(e) {
return console.warn("Not implemented."), !1;
}, t.create = function(e, n) {
var r = [];
return e.eachComponent("radar", function(i) {
var a = new t(i, e, n);
r.push(a), i.coordinateSystem = a;
}), e.eachSeriesByType("radar", function(i) {
i.get("coordinateSystem") === "radar" && (i.coordinateSystem = r[i.get("radarIndex") || 0]);
}), r;
}, t.dimensions = [], t;
}()
);
function fBe(t) {
t.registerCoordinateSystem("radar", cBe), t.registerComponentModel(oBe), t.registerComponentView(lBe), t.registerVisual({
seriesType: "radar",
reset: function(e) {
var n = e.getData();
n.each(function(r) {
n.setItemVisual(r, "legendIcon", "roundRect");
}), n.setVisual("legendIcon", "roundRect");
}
});
}
function dBe(t) {
at(fBe), t.registerChartView(iBe), t.registerSeriesModel(aBe), t.registerLayout(nBe), t.registerProcessor(q0("radar")), t.registerPreprocessor(rBe);
}
var sF = "\0_ec_interaction_mutex";
function hBe(t, e, n) {
var r = Vk(t);
r[e] = n;
}
function pBe(t, e, n) {
var r = Vk(t), i = r[e];
i === n && (r[e] = null);
}
function lF(t, e) {
return !!Vk(t)[e];
}
function Vk(t) {
return t[sF] || (t[sF] = {});
}
go({
type: "takeGlobalCursor",
event: "globalCursorTaken",
update: "update"
}, On);
var J0 = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this) || this;
r._zr = n;
var i = xe(r._mousedownHandler, r), a = xe(r._mousemoveHandler, r), o = xe(r._mouseupHandler, r), s = xe(r._mousewheelHandler, r), l = xe(r._pinchHandler, r);
return r.enable = function(u, c) {
this.disable(), this._opt = Re(Le(c) || {}, {
zoomOnMouseWheel: !0,
moveOnMouseMove: !0,
// By default, wheel do not trigger move.
moveOnMouseWheel: !1,
preventDefaultMouseMove: !0
}), u == null && (u = !0), (u === !0 || u === "move" || u === "pan") && (n.on("mousedown", i), n.on("mousemove", a), n.on("mouseup", o)), (u === !0 || u === "scale" || u === "zoom") && (n.on("mousewheel", s), n.on("pinch", l));
}, r.disable = function() {
n.off("mousedown", i), n.off("mousemove", a), n.off("mouseup", o), n.off("mousewheel", s), n.off("pinch", l);
}, r;
}
return e.prototype.isDragging = function() {
return this._dragging;
}, e.prototype.isPinching = function() {
return this._pinching;
}, e.prototype.setPointerChecker = function(n) {
this.pointerChecker = n;
}, e.prototype.dispose = function() {
this.disable();
}, e.prototype._mousedownHandler = function(n) {
if (!L6(n)) {
for (var r = n.target; r; ) {
if (r.draggable)
return;
r = r.__hostTarget || r.parent;
}
var i = n.offsetX, a = n.offsetY;
this.pointerChecker && this.pointerChecker(n, i, a) && (this._x = i, this._y = a, this._dragging = !0);
}
}, e.prototype._mousemoveHandler = function(n) {
if (!(!this._dragging || !U_("moveOnMouseMove", n, this._opt) || n.gestureEvent === "pinch" || lF(this._zr, "globalPan"))) {
var r = n.offsetX, i = n.offsetY, a = this._x, o = this._y, s = r - a, l = i - o;
this._x = r, this._y = i, this._opt.preventDefaultMouseMove && js(n.event), lne(this, "pan", "moveOnMouseMove", n, {
dx: s,
dy: l,
oldX: a,
oldY: o,
newX: r,
newY: i,
isAvailableBehavior: null
});
}
}, e.prototype._mouseupHandler = function(n) {
L6(n) || (this._dragging = !1);
}, e.prototype._mousewheelHandler = function(n) {
var r = U_("zoomOnMouseWheel", n, this._opt), i = U_("moveOnMouseWheel", n, this._opt), a = n.wheelDelta, o = Math.abs(a), s = n.offsetX, l = n.offsetY;
if (!(a === 0 || !r && !i)) {
if (r) {
var u = o > 3 ? 1.4 : o > 1 ? 1.2 : 1.1, c = a > 0 ? u : 1 / u;
fP(this, "zoom", "zoomOnMouseWheel", n, {
scale: c,
originX: s,
originY: l,
isAvailableBehavior: null
});
}
if (i) {
var f = Math.abs(a), d = (a > 0 ? 1 : -1) * (f > 3 ? 0.4 : f > 1 ? 0.15 : 0.05);
fP(this, "scrollMove", "moveOnMouseWheel", n, {
scrollDelta: d,
originX: s,
originY: l,
isAvailableBehavior: null
});
}
}
}, e.prototype._pinchHandler = function(n) {
if (!lF(this._zr, "globalPan")) {
var r = n.pinchScale > 1 ? 1.1 : 1 / 1.1;
fP(this, "zoom", null, n, {
scale: r,
originX: n.pinchX,
originY: n.pinchY,
isAvailableBehavior: null
});
}
}, e;
}(La)
);
function fP(t, e, n, r, i) {
t.pointerChecker && t.pointerChecker(r, i.originX, i.originY) && (js(r.event), lne(t, e, n, r, i));
}
function lne(t, e, n, r, i) {
i.isAvailableBehavior = xe(U_, null, n, r), t.trigger(e, i);
}
function U_(t, e, n) {
var r = n[t];
return !t || r && (!Oe(r) || e.event[r + "Key"]);
}
function Fk(t, e, n) {
var r = t.target;
r.x += e, r.y += n, r.dirty();
}
function Wk(t, e, n, r) {
var i = t.target, a = t.zoomLimit, o = t.zoom = t.zoom || 1;
if (o *= e, a) {
var s = a.min || 0, l = a.max || 1 / 0;
o = Math.max(Math.min(l, o), s);
}
var u = o / t.zoom;
t.zoom = o, i.x -= (n - i.x) * (u - 1), i.y -= (r - i.y) * (u - 1), i.scaleX *= u, i.scaleY *= u, i.dirty();
}
var vBe = {
axisPointer: 1,
tooltip: 1,
brush: 1
};
function yw(t, e, n) {
var r = e.getComponentByElement(t.topTarget), i = r && r.coordinateSystem;
return r && r !== n && !vBe.hasOwnProperty(r.mainType) && i && i.model !== n;
}
function une(t) {
if (Oe(t)) {
var e = new DOMParser();
t = e.parseFromString(t, "text/xml");
}
var n = t;
for (n.nodeType === 9 && (n = n.firstChild); n.nodeName.toLowerCase() !== "svg" || n.nodeType !== 1; )
n = n.nextSibling;
return n;
}
var dP, IO = {
fill: "fill",
stroke: "stroke",
"stroke-width": "lineWidth",
opacity: "opacity",
"fill-opacity": "fillOpacity",
"stroke-opacity": "strokeOpacity",
"stroke-dasharray": "lineDash",
"stroke-dashoffset": "lineDashOffset",
"stroke-linecap": "lineCap",
"stroke-linejoin": "lineJoin",
"stroke-miterlimit": "miterLimit",
"font-family": "fontFamily",
"font-size": "fontSize",
"font-style": "fontStyle",
"font-weight": "fontWeight",
"text-anchor": "textAlign",
visibility: "visibility",
display: "display"
}, uF = st(IO), DO = {
"alignment-baseline": "textBaseline",
"stop-color": "stopColor"
}, cF = st(DO), gBe = function() {
function t() {
this._defs = {}, this._root = null;
}
return t.prototype.parse = function(e, n) {
n = n || {};
var r = une(e);
if (process.env.NODE_ENV !== "production" && !r)
throw new Error("Illegal svg");
this._defsUsePending = [];
var i = new Ve();
this._root = i;
var a = [], o = r.getAttribute("viewBox") || "", s = parseFloat(r.getAttribute("width") || n.width), l = parseFloat(r.getAttribute("height") || n.height);
isNaN(s) && (s = null), isNaN(l) && (l = null), Ei(r, i, null, !0, !1);
for (var u = r.firstChild; u; )
this._parseNode(u, i, a, null, !1, !1), u = u.nextSibling;
bBe(this._defs, this._defsUsePending), this._defsUsePending = [];
var c, f;
if (o) {
var d = bw(o);
d.length >= 4 && (c = {
x: parseFloat(d[0] || 0),
y: parseFloat(d[1] || 0),
width: parseFloat(d[2]),
height: parseFloat(d[3])
});
}
if (c && s != null && l != null && (f = fne(c, { x: 0, y: 0, width: s, height: l }), !n.ignoreViewBox)) {
var h = i;
i = new Ve(), i.add(h), h.scaleX = h.scaleY = f.scale, h.x = f.x, h.y = f.y;
}
return !n.ignoreRootClip && s != null && l != null && i.setClipPath(new mt({
shape: { x: 0, y: 0, width: s, height: l }
})), {
root: i,
width: s,
height: l,
viewBoxRect: c,
viewBoxTransform: f,
named: a
};
}, t.prototype._parseNode = function(e, n, r, i, a, o) {
var s = e.nodeName.toLowerCase(), l, u = i;
if (s === "defs" && (a = !0), s === "text" && (o = !0), s === "defs" || s === "switch")
l = n;
else {
if (!a) {
var c = dP[s];
if (c && Ce(dP, s)) {
l = c.call(this, e, n);
var f = e.getAttribute("name");
if (f) {
var d = {
name: f,
namedFrom: null,
svgNodeTagLower: s,
el: l
};
r.push(d), s === "g" && (u = d);
} else i && r.push({
name: i.name,
namedFrom: i,
svgNodeTagLower: s,
el: l
});
n.add(l);
}
}
var h = fF[s];
if (h && Ce(fF, s)) {
var p = h.call(this, e), v = e.getAttribute("id");
v && (this._defs[v] = p);
}
}
if (l && l.isGroup)
for (var g = e.firstChild; g; )
g.nodeType === 1 ? this._parseNode(g, l, r, u, a, o) : g.nodeType === 3 && o && this._parseText(g, l), g = g.nextSibling;
}, t.prototype._parseText = function(e, n) {
var r = new Qh({
style: {
text: e.textContent
},
silent: !0,
x: this._textX || 0,
y: this._textY || 0
});
aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), mBe(r, n);
var i = r.style, a = i.fontSize;
a && a < 9 && (i.fontSize = 9, r.scaleX *= a / 9, r.scaleY *= a / 9);
var o = (i.fontSize || i.fontFamily) && [
i.fontStyle,
i.fontWeight,
(i.fontSize || 12) + "px",
i.fontFamily || "sans-serif"
].join(" ");
i.font = o;
var s = r.getBoundingRect();
return this._textX += s.width, n.add(r), r;
}, t.internalField = function() {
dP = {
g: function(e, n) {
var r = new Ve();
return aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), r;
},
rect: function(e, n) {
var r = new mt();
return aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), r.setShape({
x: parseFloat(e.getAttribute("x") || "0"),
y: parseFloat(e.getAttribute("y") || "0"),
width: parseFloat(e.getAttribute("width") || "0"),
height: parseFloat(e.getAttribute("height") || "0")
}), r.silent = !0, r;
},
circle: function(e, n) {
var r = new ul();
return aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), r.setShape({
cx: parseFloat(e.getAttribute("cx") || "0"),
cy: parseFloat(e.getAttribute("cy") || "0"),
r: parseFloat(e.getAttribute("r") || "0")
}), r.silent = !0, r;
},
line: function(e, n) {
var r = new Un();
return aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), r.setShape({
x1: parseFloat(e.getAttribute("x1") || "0"),
y1: parseFloat(e.getAttribute("y1") || "0"),
x2: parseFloat(e.getAttribute("x2") || "0"),
y2: parseFloat(e.getAttribute("y2") || "0")
}), r.silent = !0, r;
},
ellipse: function(e, n) {
var r = new Yx();
return aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), r.setShape({
cx: parseFloat(e.getAttribute("cx") || "0"),
cy: parseFloat(e.getAttribute("cy") || "0"),
rx: parseFloat(e.getAttribute("rx") || "0"),
ry: parseFloat(e.getAttribute("ry") || "0")
}), r.silent = !0, r;
},
polygon: function(e, n) {
var r = e.getAttribute("points"), i;
r && (i = pF(r));
var a = new ai({
shape: {
points: i || []
},
silent: !0
});
return aa(n, a), Ei(e, a, this._defsUsePending, !1, !1), a;
},
polyline: function(e, n) {
var r = e.getAttribute("points"), i;
r && (i = pF(r));
var a = new oi({
shape: {
points: i || []
},
silent: !0
});
return aa(n, a), Ei(e, a, this._defsUsePending, !1, !1), a;
},
image: function(e, n) {
var r = new lr();
return aa(n, r), Ei(e, r, this._defsUsePending, !1, !1), r.setStyle({
image: e.getAttribute("xlink:href") || e.getAttribute("href"),
x: +e.getAttribute("x"),
y: +e.getAttribute("y"),
width: +e.getAttribute("width"),
height: +e.getAttribute("height")
}), r.silent = !0, r;
},
text: function(e, n) {
var r = e.getAttribute("x") || "0", i = e.getAttribute("y") || "0", a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0";
this._textX = parseFloat(r) + parseFloat(a), this._textY = parseFloat(i) + parseFloat(o);
var s = new Ve();
return aa(n, s), Ei(e, s, this._defsUsePending, !1, !0), s;
},
tspan: function(e, n) {
var r = e.getAttribute("x"), i = e.getAttribute("y");
r != null && (this._textX = parseFloat(r)), i != null && (this._textY = parseFloat(i));
var a = e.getAttribute("dx") || "0", o = e.getAttribute("dy") || "0", s = new Ve();
return aa(n, s), Ei(e, s, this._defsUsePending, !1, !0), this._textX += parseFloat(a), this._textY += parseFloat(o), s;
},
path: function(e, n) {
var r = e.getAttribute("d") || "", i = jK(r);
return aa(n, i), Ei(e, i, this._defsUsePending, !1, !1), i.silent = !0, i;
}
};
}(), t;
}(), fF = {
lineargradient: function(t) {
var e = parseInt(t.getAttribute("x1") || "0", 10), n = parseInt(t.getAttribute("y1") || "0", 10), r = parseInt(t.getAttribute("x2") || "10", 10), i = parseInt(t.getAttribute("y2") || "0", 10), a = new yp(e, n, r, i);
return dF(t, a), hF(t, a), a;
},
radialgradient: function(t) {
var e = parseInt(t.getAttribute("cx") || "0", 10), n = parseInt(t.getAttribute("cy") || "0", 10), r = parseInt(t.getAttribute("r") || "0", 10), i = new FR(e, n, r);
return dF(t, i), hF(t, i), i;
}
};
function dF(t, e) {
var n = t.getAttribute("gradientUnits");
n === "userSpaceOnUse" && (e.global = !0);
}
function hF(t, e) {
for (var n = t.firstChild; n; ) {
if (n.nodeType === 1 && n.nodeName.toLocaleLowerCase() === "stop") {
var r = n.getAttribute("offset"), i = void 0;
r && r.indexOf("%") > 0 ? i = parseInt(r, 10) / 100 : r ? i = parseFloat(r) : i = 0;
var a = {};
cne(n, a, a);
var o = a.stopColor || n.getAttribute("stop-color") || "#000000";
e.colorStops.push({
offset: i,
color: o
});
}
n = n.nextSibling;
}
}
function aa(t, e) {
t && t.__inheritedStyle && (e.__inheritedStyle || (e.__inheritedStyle = {}), Re(e.__inheritedStyle, t.__inheritedStyle));
}
function pF(t) {
for (var e = bw(t), n = [], r = 0; r < e.length; r += 2) {
var i = parseFloat(e[r]), a = parseFloat(e[r + 1]);
n.push([i, a]);
}
return n;
}
function Ei(t, e, n, r, i) {
var a = e, o = a.__inheritedStyle = a.__inheritedStyle || {}, s = {};
t.nodeType === 1 && (SBe(t, e), cne(t, o, s), r || xBe(t, o, s)), a.style = a.style || {}, o.fill != null && (a.style.fill = vF(a, "fill", o.fill, n)), o.stroke != null && (a.style.stroke = vF(a, "stroke", o.stroke, n)), k([
"lineWidth",
"opacity",
"fillOpacity",
"strokeOpacity",
"miterLimit",
"fontSize"
], function(l) {
o[l] != null && (a.style[l] = parseFloat(o[l]));
}), k([
"lineDashOffset",
"lineCap",
"lineJoin",
"fontWeight",
"fontFamily",
"fontStyle",
"textAlign"
], function(l) {
o[l] != null && (a.style[l] = o[l]);
}), i && (a.__selfStyle = s), o.lineDash && (a.style.lineDash = ce(bw(o.lineDash), function(l) {
return parseFloat(l);
})), (o.visibility === "hidden" || o.visibility === "collapse") && (a.invisible = !0), o.display === "none" && (a.ignore = !0);
}
function mBe(t, e) {
var n = e.__selfStyle;
if (n) {
var r = n.textBaseline, i = r;
!r || r === "auto" || r === "baseline" ? i = "alphabetic" : r === "before-edge" || r === "text-before-edge" ? i = "top" : r === "after-edge" || r === "text-after-edge" ? i = "bottom" : (r === "central" || r === "mathematical") && (i = "middle"), t.style.textBaseline = i;
}
var a = e.__inheritedStyle;
if (a) {
var o = a.textAlign, s = o;
o && (o === "middle" && (s = "center"), t.style.textAlign = s);
}
}
var yBe = /^url\(\s*#(.*?)\)/;
function vF(t, e, n, r) {
var i = n && n.match(yBe);
if (i) {
var a = ba(i[1]);
r.push([t, e, a]);
return;
}
return n === "none" && (n = null), n;
}
function bBe(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
r[0].style[r[1]] = t[r[2]];
}
}
var _Be = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
function bw(t) {
return t.match(_Be) || [];
}
var OBe = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g, hP = Math.PI / 180;
function SBe(t, e) {
var n = t.getAttribute("transform");
if (n) {
n = n.replace(/,/g, " ");
var r = [], i = null;
n.replace(OBe, function(f, d, h) {
return r.push(d, h), "";
});
for (var a = r.length - 1; a > 0; a -= 2) {
var o = r[a], s = r[a - 1], l = bw(o);
switch (i = i || wi(), s) {
case "translate":
so(i, i, [parseFloat(l[0]), parseFloat(l[1] || "0")]);
break;
case "scale":
Bx(i, i, [parseFloat(l[0]), parseFloat(l[1] || l[0])]);
break;
case "rotate":
Cu(i, i, -parseFloat(l[0]) * hP, [
parseFloat(l[1] || "0"),
parseFloat(l[2] || "0")
]);
break;
case "skewX":
var u = Math.tan(parseFloat(l[0]) * hP);
Xo(i, [1, 0, u, 1, 0, 0], i);
break;
case "skewY":
var c = Math.tan(parseFloat(l[0]) * hP);
Xo(i, [1, c, 0, 1, 0, 0], i);
break;
case "matrix":
i[0] = parseFloat(l[0]), i[1] = parseFloat(l[1]), i[2] = parseFloat(l[2]), i[3] = parseFloat(l[3]), i[4] = parseFloat(l[4]), i[5] = parseFloat(l[5]);
break;
}
}
e.setLocalTransform(i);
}
}
var gF = /([^\s:;]+)\s*:\s*([^:;]+)/g;
function cne(t, e, n) {
var r = t.getAttribute("style");
if (r) {
gF.lastIndex = 0;
for (var i; (i = gF.exec(r)) != null; ) {
var a = i[1], o = Ce(IO, a) ? IO[a] : null;
o && (e[o] = i[2]);
var s = Ce(DO, a) ? DO[a] : null;
s && (n[s] = i[2]);
}
}
}
function xBe(t, e, n) {
for (var r = 0; r < uF.length; r++) {
var i = uF[r], a = t.getAttribute(i);
a != null && (e[IO[i]] = a);
}
for (var r = 0; r < cF.length; r++) {
var i = cF[r], a = t.getAttribute(i);
a != null && (n[DO[i]] = a);
}
}
function fne(t, e) {
var n = e.width / t.width, r = e.height / t.height, i = Math.min(n, r);
return {
scale: i,
x: -(t.x + t.width / 2) * i + (e.x + e.width / 2),
y: -(t.y + t.height / 2) * i + (e.y + e.height / 2)
};
}
function wBe(t, e) {
var n = new gBe();
return n.parse(t, e);
}
var CBe = Pe([
"rect",
"circle",
"line",
"ellipse",
"polygon",
"polyline",
"path",
// are also enabled because some SVG might paint text itself,
// but still need to trigger events or tooltip.
"text",
"tspan",
// is also enabled because this case: if multiple tags share one name
// and need label displayed, every tags will display the name, which is not
// expected. So we can put them into a . Thereby only one label
// displayed and located based on the bounding rect of the .
"g"
]), TBe = (
/** @class */
function() {
function t(e, n) {
this.type = "geoSVG", this._usedGraphicMap = Pe(), this._freedGraphics = [], this._mapName = e, this._parsedXML = une(n);
}
return t.prototype.load = function() {
var e = this._firstGraphic;
if (!e) {
e = this._firstGraphic = this._buildGraphic(this._parsedXML), this._freedGraphics.push(e), this._boundingRect = this._firstGraphic.boundingRect.clone();
var n = $Be(e.named), r = n.regions, i = n.regionsMap;
this._regions = r, this._regionsMap = i;
}
return {
boundingRect: this._boundingRect,
regions: this._regions,
regionsMap: this._regionsMap
};
}, t.prototype._buildGraphic = function(e) {
var n, r;
try {
n = e && wBe(e, {
ignoreViewBox: !0,
ignoreRootClip: !0
}) || {}, r = n.root, ke(r != null);
} catch (g) {
throw new Error(`Invalid svg format
` + g.message);
}
var i = new Ve();
i.add(r), i.isGeoSVGGraphicRoot = !0;
var a = n.width, o = n.height, s = n.viewBoxRect, l = this._boundingRect;
if (!l) {
var u = void 0, c = void 0, f = void 0, d = void 0;
if (a != null ? (u = 0, f = a) : s && (u = s.x, f = s.width), o != null ? (c = 0, d = o) : s && (c = s.y, d = s.height), u == null || c == null) {
var h = r.getBoundingRect();
u == null && (u = h.x, f = h.width), c == null && (c = h.y, d = h.height);
}
l = this._boundingRect = new Je(u, c, f, d);
}
if (s) {
var p = fne(s, l);
r.scaleX = r.scaleY = p.scale, r.x = p.x, r.y = p.y;
}
i.setClipPath(new mt({
shape: l.plain()
}));
var v = [];
return k(n.named, function(g) {
CBe.get(g.svgNodeTagLower) != null && (v.push(g), PBe(g.el));
}), {
root: i,
boundingRect: l,
named: v
};
}, t.prototype.useGraphic = function(e) {
var n = this._usedGraphicMap, r = n.get(e);
return r || (r = this._freedGraphics.pop() || this._buildGraphic(this._parsedXML), n.set(e, r), r);
}, t.prototype.freeGraphic = function(e) {
var n = this._usedGraphicMap, r = n.get(e);
r && (n.removeKey(e), this._freedGraphics.push(r));
}, t;
}()
);
function PBe(t) {
t.silent = !1, t.isGroup && t.traverse(function(e) {
e.silent = !1;
});
}
function $Be(t) {
var e = [], n = Pe();
return k(t, function(r) {
if (r.namedFrom == null) {
var i = new h5e(r.name, r.el);
e.push(i), n.set(r.name, i);
}
}), {
regions: e,
regionsMap: n
};
}
var vE = [126, 25], mF = "南海诸岛", hc = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];
for (var lc = 0; lc < hc.length; lc++)
for (var pd = 0; pd < hc[lc].length; pd++)
hc[lc][pd][0] /= 10.5, hc[lc][pd][1] /= -10.5 / 0.75, hc[lc][pd][0] += vE[0], hc[lc][pd][1] += vE[1];
function ABe(t, e) {
if (t === "china") {
for (var n = 0; n < e.length; n++)
if (e[n].name === mF)
return;
e.push(new ste(mF, ce(hc, function(r) {
return {
type: "polygon",
exterior: r
};
}), vE));
}
}
var EBe = {
南海诸岛: [32, 80],
// 全国
广东: [0, -10],
香港: [10, 5],
澳门: [-10, 10],
// '北京': [-10, 0],
天津: [5, 5]
};
function MBe(t, e) {
if (t === "china") {
var n = EBe[e.name];
if (n) {
var r = e.getCenter();
r[0] += n[0] / 10.5, r[1] += -n[1] / (10.5 / 0.75), e.setCenter(r);
}
}
}
var IBe = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];
function DBe(t, e) {
t === "china" && e.name === "台湾" && e.geometries.push({
type: "polygon",
exterior: IBe[0]
});
}
var RBe = "name", kBe = (
/** @class */
function() {
function t(e, n, r) {
this.type = "geoJSON", this._parsedMap = Pe(), this._mapName = e, this._specialAreas = r, this._geoJSON = NBe(n);
}
return t.prototype.load = function(e, n) {
n = n || RBe;
var r = this._parsedMap.get(n);
if (!r) {
var i = this._parseToRegions(n);
r = this._parsedMap.set(n, {
regions: i,
boundingRect: LBe(i)
});
}
var a = Pe(), o = [];
return k(r.regions, function(s) {
var l = s.name;
e && Ce(e, l) && (s = s.cloneShallow(l = e[l])), o.push(s), a.set(l, s);
}), {
regions: o,
boundingRect: r.boundingRect || new Je(0, 0, 0, 0),
regionsMap: a
};
}, t.prototype._parseToRegions = function(e) {
var n = this._mapName, r = this._geoJSON, i;
try {
i = r ? aE(r, e) : [];
} catch (a) {
throw new Error(`Invalid geoJson format
` + a.message);
}
return ABe(n, i), k(i, function(a) {
var o = a.name;
MBe(n, a), DBe(n, a);
var s = this._specialAreas && this._specialAreas[o];
s && a.transformTo(s.left, s.top, s.width, s.height);
}, this), i;
}, t.prototype.getMapForUser = function() {
return {
// For backward compatibility, use geoJson
// PENDING: it has been returning them without clone.
// do we need to avoid outsite modification?
geoJson: this._geoJSON,
geoJSON: this._geoJSON,
specialAreas: this._specialAreas
};
}, t;
}()
);
function LBe(t) {
for (var e, n = 0; n < t.length; n++) {
var r = t[n].getBoundingRect();
e = e || r.clone(), e.union(r);
}
return e;
}
function NBe(t) {
return Oe(t) ? typeof JSON < "u" && JSON.parse ? JSON.parse(t) : new Function("return (" + t + ");")() : t;
}
var Sv = Pe();
const Ks = {
/**
* Compatible with previous `echarts.registerMap`.
*
* @usage
* ```js
*
* echarts.registerMap('USA', geoJson, specialAreas);
*
* echarts.registerMap('USA', {
* geoJson: geoJson,
* specialAreas: {...}
* });
* echarts.registerMap('USA', {
* geoJSON: geoJson,
* specialAreas: {...}
* });
*
* echarts.registerMap('airport', {
* svg: svg
* }
* ```
*
* Note:
* Do not support that register multiple geoJSON or SVG
* one map name. Because different geoJSON and SVG have
* different unit. It's not easy to make sure how those
* units are mapping/normalize.
* If intending to use multiple geoJSON or SVG, we can
* use multiple geo coordinate system.
*/
registerMap: function(t, e, n) {
if (e.svg) {
var r = new TBe(t, e.svg);
Sv.set(t, r);
} else {
var i = e.geoJson || e.geoJSON;
i && !e.features ? n = e.specialAreas : i = e;
var r = new kBe(t, i, n);
Sv.set(t, r);
}
},
getGeoResource: function(t) {
return Sv.get(t);
},
/**
* Only for exporting to users.
* **MUST NOT** used internally.
*/
getMapForUser: function(t) {
var e = Sv.get(t);
return e && e.type === "geoJSON" && e.getMapForUser();
},
load: function(t, e, n) {
var r = Sv.get(t);
if (!r) {
process.env.NODE_ENV !== "production" && console.error("Map " + t + " not exists. The GeoJSON of the map must be provided.");
return;
}
return r.load(e, n);
}
};
var Qk = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"], BBe = Pe(Qk), zBe = Pe(Qk.concat(["g"])), VBe = Pe(Qk.concat(["g"])), dne = bt();
function Tb(t) {
var e = t.getItemStyle(), n = t.get("areaColor");
return n != null && (e.fill = n), e;
}
function yF(t) {
var e = t.style;
e && (e.stroke = e.stroke || e.fill, e.fill = null);
}
var hne = (
/** @class */
function() {
function t(e) {
var n = new Ve();
this.uid = xp("ec_map_draw"), this._controller = new J0(e.getZr()), this._controllerHost = {
target: n
}, this.group = n, n.add(this._regionsGroup = new Ve()), n.add(this._svgGroup = new Ve());
}
return t.prototype.draw = function(e, n, r, i, a) {
var o = e.mainType === "geo", s = e.getData && e.getData();
o && n.eachComponent({
mainType: "series",
subType: "map"
}, function(m) {
!s && m.getHostGeoModel() === e && (s = m.getData());
});
var l = e.coordinateSystem, u = this._regionsGroup, c = this.group, f = l.getTransformInfo(), d = f.raw, h = f.roam, p = !u.childAt(0) || a;
p ? (c.x = h.x, c.y = h.y, c.scaleX = h.scaleX, c.scaleY = h.scaleY, c.dirty()) : Ct(c, h, e);
var v = s && s.getVisual("visualMeta") && s.getVisual("visualMeta").length > 0, g = {
api: r,
geo: l,
mapOrGeoModel: e,
data: s,
isVisualEncodedByVisualMap: v,
isGeo: o,
transformInfoRaw: d
};
l.resourceType === "geoJSON" ? this._buildGeoJSON(g) : l.resourceType === "geoSVG" && this._buildSVG(g), this._updateController(e, n, r), this._updateMapSelectHandler(e, u, r, i);
}, t.prototype._buildGeoJSON = function(e) {
var n = this._regionsGroupByName = Pe(), r = Pe(), i = this._regionsGroup, a = e.transformInfoRaw, o = e.mapOrGeoModel, s = e.data, l = e.geo.projection, u = l && l.stream;
function c(h, p) {
return p && (h = p(h)), h && [h[0] * a.scaleX + a.x, h[1] * a.scaleY + a.y];
}
function f(h) {
for (var p = [], v = !u && l && l.project, g = 0; g < h.length; ++g) {
var m = c(h[g], v);
m && p.push(m);
}
return p;
}
function d(h) {
return {
shape: {
points: f(h)
}
};
}
i.removeAll(), k(e.geo.regions, function(h) {
var p = h.name, v = n.get(p), g = r.get(p) || {}, m = g.dataIdx, y = g.regionModel;
v || (v = n.set(p, new Ve()), i.add(v), m = s ? s.indexOfName(p) : null, y = e.isGeo ? o.getRegionModel(p) : s ? s.getItemModel(m) : null, r.set(p, {
dataIdx: m,
regionModel: y
}));
var b = [], _ = [];
k(h.geometries, function(x) {
if (x.type === "polygon") {
var C = [x.exterior].concat(x.interiors || []);
u && (C = wF(C, u)), k(C, function(w) {
b.push(new ai(d(w)));
});
} else {
var T = x.points;
u && (T = wF(T, u, !0)), k(T, function(w) {
_.push(new oi(d(w)));
});
}
});
var O = c(h.getCenter(), l && l.project);
function S(x, C) {
if (x.length) {
var T = new Kx({
culling: !0,
segmentIgnoreThreshold: 1,
shape: {
paths: x
}
});
v.add(T), bF(e, T, m, y), _F(e, T, p, y, o, m, O), C && (yF(T), k(T.states, yF));
}
}
S(b), S(_, !0);
}), n.each(function(h, p) {
var v = r.get(p), g = v.dataIdx, m = v.regionModel;
OF(e, h, p, m, o, g), SF(e, h, p, m, o), xF(e, h, p, m, o);
}, this);
}, t.prototype._buildSVG = function(e) {
var n = e.geo.map, r = e.transformInfoRaw;
this._svgGroup.x = r.x, this._svgGroup.y = r.y, this._svgGroup.scaleX = r.scaleX, this._svgGroup.scaleY = r.scaleY, this._svgResourceChanged(n) && (this._freeSVG(), this._useSVG(n));
var i = this._svgDispatcherMap = Pe(), a = !1;
k(this._svgGraphicRecord.named, function(o) {
var s = o.name, l = e.mapOrGeoModel, u = e.data, c = o.svgNodeTagLower, f = o.el, d = u ? u.indexOfName(s) : null, h = l.getRegionModel(s);
if (BBe.get(c) != null && f instanceof Da && bF(e, f, d, h), f instanceof Da && (f.culling = !0), f.z2EmphasisLift = 0, !o.namedFrom && (VBe.get(c) != null && _F(e, f, s, h, l, d, null), OF(e, f, s, h, l, d), SF(e, f, s, h, l), zBe.get(c) != null)) {
var p = xF(e, f, s, h, l);
p === "self" && (a = !0);
var v = i.get(s) || i.set(s, []);
v.push(f);
}
}, this), this._enableBlurEntireSVG(a, e);
}, t.prototype._enableBlurEntireSVG = function(e, n) {
if (e && n.isGeo) {
var r = n.mapOrGeoModel.getModel(["blur", "itemStyle"]).getItemStyle(), i = r.opacity;
this._svgGraphicRecord.root.traverse(function(a) {
if (!a.isGroup) {
_f(a);
var o = a.ensureState("blur").style || {};
o.opacity == null && i != null && (o.opacity = i), a.ensureState("emphasis");
}
});
}
}, t.prototype.remove = function() {
this._regionsGroup.removeAll(), this._regionsGroupByName = null, this._svgGroup.removeAll(), this._freeSVG(), this._controller.dispose(), this._controllerHost = null;
}, t.prototype.findHighDownDispatchers = function(e, n) {
if (e == null)
return [];
var r = n.coordinateSystem;
if (r.resourceType === "geoJSON") {
var i = this._regionsGroupByName;
if (i) {
var a = i.get(e);
return a ? [a] : [];
}
} else if (r.resourceType === "geoSVG")
return this._svgDispatcherMap && this._svgDispatcherMap.get(e) || [];
}, t.prototype._svgResourceChanged = function(e) {
return this._svgMapName !== e;
}, t.prototype._useSVG = function(e) {
var n = Ks.getGeoResource(e);
if (n && n.type === "geoSVG") {
var r = n.useGraphic(this.uid);
this._svgGroup.add(r.root), this._svgGraphicRecord = r, this._svgMapName = e;
}
}, t.prototype._freeSVG = function() {
var e = this._svgMapName;
if (e != null) {
var n = Ks.getGeoResource(e);
n && n.type === "geoSVG" && n.freeGraphic(this.uid), this._svgGraphicRecord = null, this._svgDispatcherMap = null, this._svgGroup.removeAll(), this._svgMapName = null;
}
}, t.prototype._updateController = function(e, n, r) {
var i = e.coordinateSystem, a = this._controller, o = this._controllerHost;
o.zoomLimit = e.get("scaleLimit"), o.zoom = i.getZoom(), a.enable(e.get("roam") || !1);
var s = e.mainType;
function l() {
var u = {
type: "geoRoam",
componentType: s
};
return u[s + "Id"] = e.id, u;
}
a.off("pan").on("pan", function(u) {
this._mouseDownFlag = !1, Fk(o, u.dx, u.dy), r.dispatchAction(le(l(), {
dx: u.dx,
dy: u.dy,
animation: {
duration: 0
}
}));
}, this), a.off("zoom").on("zoom", function(u) {
this._mouseDownFlag = !1, Wk(o, u.scale, u.originX, u.originY), r.dispatchAction(le(l(), {
totalZoom: o.zoom,
zoom: u.scale,
originX: u.originX,
originY: u.originY,
animation: {
duration: 0
}
}));
}, this), a.setPointerChecker(function(u, c, f) {
return i.containPoint([c, f]) && !yw(u, r, e);
});
}, t.prototype.resetForLabelLayout = function() {
this.group.traverse(function(e) {
var n = e.getTextContent();
n && (n.ignore = dne(n).ignore);
});
}, t.prototype._updateMapSelectHandler = function(e, n, r, i) {
var a = this;
n.off("mousedown"), n.off("click"), e.get("selectedMode") && (n.on("mousedown", function() {
a._mouseDownFlag = !0;
}), n.on("click", function(o) {
a._mouseDownFlag && (a._mouseDownFlag = !1);
}));
}, t;
}()
);
function bF(t, e, n, r) {
var i = r.getModel("itemStyle"), a = r.getModel(["emphasis", "itemStyle"]), o = r.getModel(["blur", "itemStyle"]), s = r.getModel(["select", "itemStyle"]), l = Tb(i), u = Tb(a), c = Tb(s), f = Tb(o), d = t.data;
if (d) {
var h = d.getItemVisual(n, "style"), p = d.getItemVisual(n, "decal");
t.isVisualEncodedByVisualMap && h.fill && (l.fill = h.fill), p && (l.decal = jh(p, t.api));
}
e.setStyle(l), e.style.strokeNoScale = !0, e.ensureState("emphasis").style = u, e.ensureState("select").style = c, e.ensureState("blur").style = f, _f(e);
}
function _F(t, e, n, r, i, a, o) {
var s = t.data, l = t.isGeo, u = s && isNaN(s.get(s.mapDimension("value"), a)), c = s && s.getItemLayout(a);
if (l || u || c && c.showLabel) {
var f = l ? n : a, d = void 0;
(!s || a >= 0) && (d = i);
var h = o ? {
normal: {
align: "center",
verticalAlign: "middle"
}
} : null;
Pr(e, er(r), {
labelFetcher: d,
labelDataIndex: f,
defaultText: n
}, h);
var p = e.getTextContent();
if (p && (dne(p).ignore = p.ignore, e.textConfig && o)) {
var v = e.getBoundingRect().clone();
e.textConfig.layoutRect = v, e.textConfig.position = [(o[0] - v.x) / v.width * 100 + "%", (o[1] - v.y) / v.height * 100 + "%"];
}
e.disableLabelAnimation = !0;
} else
e.removeTextContent(), e.removeTextConfig(), e.disableLabelAnimation = null;
}
function OF(t, e, n, r, i, a) {
t.data ? t.data.setItemGraphicEl(a, e) : Fe(e).eventData = {
componentType: "geo",
componentIndex: i.componentIndex,
geoIndex: i.componentIndex,
name: n,
region: r && r.option || {}
};
}
function SF(t, e, n, r, i) {
t.data || Op({
el: e,
componentModel: i,
itemName: n,
// @ts-ignore FIXME:TS fix the "compatible with each other"?
itemTooltipOption: r.get("tooltip")
});
}
function xF(t, e, n, r, i) {
e.highDownSilentOnTouch = !!i.get("selectedMode");
var a = r.getModel("emphasis"), o = a.get("focus");
return bn(e, o, a.get("blurScope"), a.get("disabled")), t.isGeo && vke(e, i, n), o;
}
function wF(t, e, n) {
var r = [], i;
function a() {
i = [];
}
function o() {
i.length && (r.push(i), i = []);
}
var s = e({
polygonStart: a,
polygonEnd: o,
lineStart: a,
lineEnd: o,
point: function(l, u) {
isFinite(l) && isFinite(u) && i.push([l, u]);
},
sphere: function() {
}
});
return !n && s.polygonStart(), k(t, function(l) {
s.lineStart();
for (var u = 0; u < l.length; u++)
s.point(l[u][0], l[u][1]);
s.lineEnd();
}), !n && s.polygonEnd(), r;
}
var FBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i, a) {
if (!(a && a.type === "mapToggleSelect" && a.from === this.uid)) {
var o = this.group;
if (o.removeAll(), !n.getHostGeoModel()) {
if (this._mapDraw && a && a.type === "geoRoam" && this._mapDraw.resetForLabelLayout(), a && a.type === "geoRoam" && a.componentType === "series" && a.seriesId === n.id) {
var s = this._mapDraw;
s && o.add(s.group);
} else if (n.needsDrawMap) {
var s = this._mapDraw || new hne(i);
o.add(s.group), s.draw(n, r, i, this, a), this._mapDraw = s;
} else
this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
n.get("showLegendSymbol") && r.getComponent("legend") && this._renderSymbols(n, r, i);
}
}
}, e.prototype.remove = function() {
this._mapDraw && this._mapDraw.remove(), this._mapDraw = null, this.group.removeAll();
}, e.prototype.dispose = function() {
this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
}, e.prototype._renderSymbols = function(n, r, i) {
var a = n.originalData, o = this.group;
a.each(a.mapDimension("value"), function(s, l) {
if (!isNaN(s)) {
var u = a.getItemLayout(l);
if (!(!u || !u.point)) {
var c = u.point, f = u.offset, d = new ul({
style: {
// Because the special of map draw.
// Which needs statistic of multiple series and draw on one map.
// And each series also need a symbol with legend color
//
// Layout and visual are put one the different data
// TODO
fill: n.getData().getVisual("style").fill
},
shape: {
cx: c[0] + f * 9,
cy: c[1],
r: 3
},
silent: !0,
// Do not overlap the first series, on which labels are displayed.
z2: 8 + (f ? 0 : mp + 1)
});
if (!f) {
var h = n.mainSeries.getData(), p = a.getName(l), v = h.indexOfName(p), g = a.getItemModel(l), m = g.getModel("label"), y = h.getItemGraphicEl(v);
Pr(d, er(g), {
labelFetcher: {
getFormattedLabel: function(b, _) {
return n.getFormattedLabel(v, _);
}
},
defaultText: p
}), d.disableLabelAnimation = !0, m.get("position") || d.setTextConfig({
position: "bottom"
}), y.onHoverStateChange = function(b) {
lO(d, b);
};
}
o.add(d);
}
}
});
}, e.type = "map", e;
}(zt)
), WBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.needsDrawMap = !1, n.seriesGroup = [], n.getTooltipPosition = function(r) {
if (r != null) {
var i = this.getData().getName(r), a = this.coordinateSystem, o = a.getRegion(i);
return o && a.dataToPoint(o.getCenter());
}
}, n;
}
return e.prototype.getInitialData = function(n) {
for (var r = Ip(this, {
coordDimensions: ["value"],
encodeDefaulter: Ue(rk, this)
}), i = Pe(), a = [], o = 0, s = r.count(); o < s; o++) {
var l = r.getName(o);
i.set(l, !0);
}
var u = Ks.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);
return k(u.regions, function(c) {
var f = c.name;
i.get(f) || a.push(f);
}), r.appendValues([], a), r;
}, e.prototype.getHostGeoModel = function() {
var n = this.option.geoIndex;
return n != null ? this.ecModel.getComponent("geo", n) : null;
}, e.prototype.getMapType = function() {
return (this.getHostGeoModel() || this).option.map;
}, e.prototype.getRawValue = function(n) {
var r = this.getData();
return r.get(r.mapDimension("value"), n);
}, e.prototype.getRegionModel = function(n) {
var r = this.getData();
return r.getItemModel(r.indexOfName(n));
}, e.prototype.formatTooltip = function(n, r, i) {
for (var a = this.getData(), o = this.getRawValue(n), s = a.getName(n), l = this.seriesGroup, u = [], c = 0; c < l.length; c++) {
var f = l[c].originalData.indexOfName(s), d = a.mapDimension("value");
isNaN(l[c].originalData.get(d, f)) || u.push(l[c].name);
}
return tr("section", {
header: u.join(", "),
noHeader: !u.length,
blocks: [tr("nameValue", {
name: s,
value: o
})]
});
}, e.prototype.setZoom = function(n) {
this.option.zoom = n;
}, e.prototype.setCenter = function(n) {
this.option.center = n;
}, e.prototype.getLegendIcon = function(n) {
var r = n.icon || "roundRect", i = $n(r, 0, 0, n.itemWidth, n.itemHeight, n.itemStyle.fill);
return i.setStyle(n.itemStyle), i.style.stroke = "none", r.indexOf("empty") > -1 && (i.style.stroke = i.style.fill, i.style.fill = "#fff", i.style.lineWidth = 2), i;
}, e.type = "series.map", e.dependencies = ["geo"], e.layoutMode = "box", e.defaultOption = {
// 一级层叠
// zlevel: 0,
// 二级层叠
z: 2,
coordinateSystem: "geo",
// map should be explicitly specified since ec3.
map: "",
// If `geoIndex` is not specified, a exclusive geo will be
// created. Otherwise use the specified geo component, and
// `map` and `mapType` are ignored.
// geoIndex: 0,
// 'center' | 'left' | 'right' | 'x%' | {number}
left: "center",
// 'center' | 'top' | 'bottom' | 'x%' | {number}
top: "center",
// right
// bottom
// width:
// height
// Aspect is width / height. Inited to be geoJson bbox aspect
// This parameter is used for scale this aspect
// Default value:
// for geoSVG source: 1,
// for geoJSON source: 0.75.
aspectScale: null,
// Layout with center and size
// If you want to put map in a fixed size box with right aspect ratio
// This two properties may be more convenient.
// layoutCenter: [50%, 50%]
// layoutSize: 100
showLegendSymbol: !0,
// Define left-top, right-bottom coords to control view
// For example, [ [180, 90], [-180, -90] ],
// higher priority than center and zoom
boundingCoords: null,
// Default on center of map
center: null,
zoom: 1,
scaleLimit: null,
selectedMode: !0,
label: {
show: !1,
color: "#000"
},
// scaleLimit: null,
itemStyle: {
borderWidth: 0.5,
borderColor: "#444",
areaColor: "#eee"
},
emphasis: {
label: {
show: !0,
color: "rgb(100,0,0)"
},
itemStyle: {
areaColor: "rgba(255,215,0,0.8)"
}
},
select: {
label: {
show: !0,
color: "rgb(100,0,0)"
},
itemStyle: {
color: "rgba(255,215,0,0.8)"
}
},
nameProperty: "name"
}, e;
}(Ht)
);
function QBe(t, e) {
var n = {};
return k(t, function(r) {
r.each(r.mapDimension("value"), function(i, a) {
var o = "ec-" + r.getName(a);
n[o] = n[o] || [], isNaN(i) || n[o].push(i);
});
}), t[0].map(t[0].mapDimension("value"), function(r, i) {
for (var a = "ec-" + t[0].getName(i), o = 0, s = 1 / 0, l = -1 / 0, u = n[a].length, c = 0; c < u; c++)
s = Math.min(s, n[a][c]), l = Math.max(l, n[a][c]), o += n[a][c];
var f;
return e === "min" ? f = s : e === "max" ? f = l : e === "average" ? f = o / u : f = o, u === 0 ? NaN : f;
});
}
function HBe(t) {
var e = {};
t.eachSeriesByType("map", function(n) {
var r = n.getHostGeoModel(), i = r ? "o" + r.id : "i" + n.getMapType();
(e[i] = e[i] || []).push(n);
}), k(e, function(n, r) {
for (var i = QBe(ce(n, function(o) {
return o.getData();
}), n[0].get("mapValueCalculation")), a = 0; a < n.length; a++)
n[a].originalData = n[a].getData();
for (var a = 0; a < n.length; a++)
n[a].seriesGroup = n, n[a].needsDrawMap = a === 0 && !n[a].getHostGeoModel(), n[a].setData(i.cloneShallow()), n[a].mainSeries = n[0];
});
}
function GBe(t) {
var e = {};
t.eachSeriesByType("map", function(n) {
var r = n.getMapType();
if (!(n.getHostGeoModel() || e[r])) {
var i = {};
k(n.seriesGroup, function(o) {
var s = o.coordinateSystem, l = o.originalData;
o.get("showLegendSymbol") && t.getComponent("legend") && l.each(l.mapDimension("value"), function(u, c) {
var f = l.getName(c), d = s.getRegion(f);
if (!(!d || isNaN(u))) {
var h = i[f] || 0, p = s.dataToPoint(d.getCenter());
i[f] = h + 1, l.setItemLayout(c, {
point: p,
offset: h
});
}
});
});
var a = n.getData();
a.each(function(o) {
var s = a.getName(o), l = a.getItemLayout(o) || {};
l.showLabel = !i[s], a.setItemLayout(o, l);
}), e[r] = !0;
}
});
}
var CF = ar, ey = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this) || this;
return r.type = "view", r.dimensions = ["x", "y"], r._roamTransformable = new Es(), r._rawTransformable = new Es(), r.name = n, r;
}
return e.prototype.setBoundingRect = function(n, r, i, a) {
return this._rect = new Je(n, r, i, a), this._rect;
}, e.prototype.getBoundingRect = function() {
return this._rect;
}, e.prototype.setViewRect = function(n, r, i, a) {
this._transformTo(n, r, i, a), this._viewRect = new Je(n, r, i, a);
}, e.prototype._transformTo = function(n, r, i, a) {
var o = this.getBoundingRect(), s = this._rawTransformable;
s.transform = o.calculateTransform(new Je(n, r, i, a));
var l = s.parent;
s.parent = null, s.decomposeTransform(), s.parent = l, this._updateTransform();
}, e.prototype.setCenter = function(n, r) {
n && (this._center = [_e(n[0], r.getWidth()), _e(n[1], r.getHeight())], this._updateCenterAndZoom());
}, e.prototype.setZoom = function(n) {
n = n || 1;
var r = this.zoomLimit;
r && (r.max != null && (n = Math.min(r.max, n)), r.min != null && (n = Math.max(r.min, n))), this._zoom = n, this._updateCenterAndZoom();
}, e.prototype.getDefaultCenter = function() {
var n = this.getBoundingRect(), r = n.x + n.width / 2, i = n.y + n.height / 2;
return [r, i];
}, e.prototype.getCenter = function() {
return this._center || this.getDefaultCenter();
}, e.prototype.getZoom = function() {
return this._zoom || 1;
}, e.prototype.getRoamTransform = function() {
return this._roamTransformable.getLocalTransform();
}, e.prototype._updateCenterAndZoom = function() {
var n = this._rawTransformable.getLocalTransform(), r = this._roamTransformable, i = this.getDefaultCenter(), a = this.getCenter(), o = this.getZoom();
a = ar([], a, n), i = ar([], i, n), r.originX = a[0], r.originY = a[1], r.x = i[0] - a[0], r.y = i[1] - a[1], r.scaleX = r.scaleY = o, this._updateTransform();
}, e.prototype._updateTransform = function() {
var n = this._roamTransformable, r = this._rawTransformable;
r.parent = n, n.updateTransform(), r.updateTransform(), Nx(this.transform || (this.transform = []), r.transform || wi()), this._rawTransform = r.getLocalTransform(), this.invTransform = this.invTransform || [], Lf(this.invTransform, this.transform), this.decomposeTransform();
}, e.prototype.getTransformInfo = function() {
var n = this._rawTransformable, r = this._roamTransformable, i = new Es();
return i.transform = r.transform, i.decomposeTransform(), {
roam: {
x: i.x,
y: i.y,
scaleX: i.scaleX,
scaleY: i.scaleY
},
raw: {
x: n.x,
y: n.y,
scaleX: n.scaleX,
scaleY: n.scaleY
}
};
}, e.prototype.getViewRect = function() {
return this._viewRect;
}, e.prototype.getViewRectAfterRoam = function() {
var n = this.getBoundingRect().clone();
return n.applyTransform(this.transform), n;
}, e.prototype.dataToPoint = function(n, r, i) {
var a = r ? this._rawTransform : this.transform;
return i = i || [], a ? CF(i, n, a) : Ir(i, n);
}, e.prototype.pointToData = function(n) {
var r = this.invTransform;
return r ? CF([], n, r) : [n[0], n[1]];
}, e.prototype.convertToPixel = function(n, r, i) {
var a = TF(r);
return a === this ? a.dataToPoint(i) : null;
}, e.prototype.convertFromPixel = function(n, r, i) {
var a = TF(r);
return a === this ? a.pointToData(i) : null;
}, e.prototype.containPoint = function(n) {
return this.getViewRectAfterRoam().contain(n[0], n[1]);
}, e.dimensions = ["x", "y"], e;
}(Es)
);
function TF(t) {
var e = t.seriesModel;
return e ? e.coordinateSystem : null;
}
var jBe = {
geoJSON: {
aspectScale: 0.75,
invertLongitute: !0
},
geoSVG: {
aspectScale: 1,
invertLongitute: !1
}
}, pne = ["lng", "lat"], vne = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this, n) || this;
a.dimensions = pne, a.type = "geo", a._nameCoordMap = Pe(), a.map = r;
var o = i.projection, s = Ks.load(r, i.nameMap, i.nameProperty), l = Ks.getGeoResource(r), u = a.resourceType = l ? l.type : null, c = a.regions = s.regions, f = jBe[l.type];
a._regionsMap = s.regionsMap, a.regions = s.regions, process.env.NODE_ENV !== "production" && o && (u === "geoSVG" && (process.env.NODE_ENV !== "production" && dn("Map " + r + " with SVG source can't use projection. Only GeoJSON source supports projection."), o = null), o.project && o.unproject || (process.env.NODE_ENV !== "production" && dn("project and unproject must be both provided in the projeciton."), o = null)), a.projection = o;
var d;
if (o)
for (var h = 0; h < c.length; h++) {
var p = c[h].getBoundingRect(o);
d = d || p.clone(), d.union(p);
}
else
d = s.boundingRect;
return a.setBoundingRect(d.x, d.y, d.width, d.height), a.aspectScale = o ? 1 : We(i.aspectScale, f.aspectScale), a._invertLongitute = o ? !1 : f.invertLongitute, a;
}
return e.prototype._transformTo = function(n, r, i, a) {
var o = this.getBoundingRect(), s = this._invertLongitute;
o = o.clone(), s && (o.y = -o.y - o.height);
var l = this._rawTransformable;
l.transform = o.calculateTransform(new Je(n, r, i, a));
var u = l.parent;
l.parent = null, l.decomposeTransform(), l.parent = u, s && (l.scaleY = -l.scaleY), this._updateTransform();
}, e.prototype.getRegion = function(n) {
return this._regionsMap.get(n);
}, e.prototype.getRegionByCoord = function(n) {
for (var r = this.regions, i = 0; i < r.length; i++) {
var a = r[i];
if (a.type === "geoJSON" && a.contain(n))
return r[i];
}
}, e.prototype.addGeoCoord = function(n, r) {
this._nameCoordMap.set(n, r);
}, e.prototype.getGeoCoord = function(n) {
var r = this._regionsMap.get(n);
return this._nameCoordMap.get(n) || r && r.getCenter();
}, e.prototype.dataToPoint = function(n, r, i) {
if (Oe(n) && (n = this.getGeoCoord(n)), n) {
var a = this.projection;
return a && (n = a.project(n)), n && this.projectedToPoint(n, r, i);
}
}, e.prototype.pointToData = function(n) {
var r = this.projection;
return r && (n = r.unproject(n)), n && this.pointToProjected(n);
}, e.prototype.pointToProjected = function(n) {
return t.prototype.pointToData.call(this, n);
}, e.prototype.projectedToPoint = function(n, r, i) {
return t.prototype.dataToPoint.call(this, n, r, i);
}, e.prototype.convertToPixel = function(n, r, i) {
var a = PF(r);
return a === this ? a.dataToPoint(i) : null;
}, e.prototype.convertFromPixel = function(n, r, i) {
var a = PF(r);
return a === this ? a.pointToData(i) : null;
}, e;
}(ey)
);
xn(vne, ey);
function PF(t) {
var e = t.geoModel, n = t.seriesModel;
return e ? e.coordinateSystem : n ? n.coordinateSystem || (n.getReferringComponents("geo", Dn).models[0] || {}).coordinateSystem : null;
}
const $F = vne;
function AF(t, e) {
var n = t.get("boundingCoords");
if (n != null) {
var r = n[0], i = n[1];
if (!(isFinite(r[0]) && isFinite(r[1]) && isFinite(i[0]) && isFinite(i[1])))
process.env.NODE_ENV !== "production" && console.error("Invalid boundingCoords");
else {
var a = this.projection;
if (a) {
var o = r[0], s = r[1], l = i[0], u = i[1];
r = [1 / 0, 1 / 0], i = [-1 / 0, -1 / 0];
var c = function(S, x, C, T) {
for (var w = C - S, P = T - x, $ = 0; $ <= 100; $++) {
var A = $ / 100, D = a.project([S + w * A, x + P * A]);
$s(r, r, D), As(i, i, D);
}
};
c(o, s, l, s), c(l, s, l, u), c(l, u, o, u), c(o, u, l, s);
}
this.setBoundingRect(r[0], r[1], i[0] - r[0], i[1] - r[1]);
}
}
var f = this.getBoundingRect(), d = t.get("layoutCenter"), h = t.get("layoutSize"), p = e.getWidth(), v = e.getHeight(), g = f.width / f.height * this.aspectScale, m = !1, y, b;
d && h && (y = [_e(d[0], p), _e(d[1], v)], b = _e(h, Math.min(p, v)), !isNaN(y[0]) && !isNaN(y[1]) && !isNaN(b) ? m = !0 : process.env.NODE_ENV !== "production" && console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));
var _;
if (m)
_ = {}, g > 1 ? (_.width = b, _.height = b / g) : (_.height = b, _.width = b * g), _.y = y[1] - _.height / 2, _.x = y[0] - _.width / 2;
else {
var O = t.getBoxLayoutParams();
O.aspect = g, _ = Rn(O, {
width: p,
height: v
});
}
this.setViewRect(_.x, _.y, _.width, _.height), this.setCenter(t.get("center"), e), this.setZoom(t.get("zoom"));
}
function ZBe(t, e) {
k(e.get("geoCoord"), function(n, r) {
t.addGeoCoord(r, n);
});
}
var UBe = (
/** @class */
function() {
function t() {
this.dimensions = pne;
}
return t.prototype.create = function(e, n) {
var r = [];
function i(o) {
return {
nameProperty: o.get("nameProperty"),
aspectScale: o.get("aspectScale"),
projection: o.get("projection")
};
}
e.eachComponent("geo", function(o, s) {
var l = o.get("map"), u = new $F(l + s, l, le({
nameMap: o.get("nameMap")
}, i(o)));
u.zoomLimit = o.get("scaleLimit"), r.push(u), o.coordinateSystem = u, u.model = o, u.resize = AF, u.resize(o, n);
}), e.eachSeries(function(o) {
var s = o.get("coordinateSystem");
if (s === "geo") {
var l = o.get("geoIndex") || 0;
o.coordinateSystem = r[l];
}
});
var a = {};
return e.eachSeriesByType("map", function(o) {
if (!o.getHostGeoModel()) {
var s = o.getMapType();
a[s] = a[s] || [], a[s].push(o);
}
}), k(a, function(o, s) {
var l = ce(o, function(c) {
return c.get("nameMap");
}), u = new $F(s, s, le({
nameMap: Rx(l)
}, i(o[0])));
u.zoomLimit = Tn.apply(null, ce(o, function(c) {
return c.get("scaleLimit");
})), r.push(u), u.resize = AF, u.resize(o[0], n), k(o, function(c) {
c.coordinateSystem = u, ZBe(u, c);
});
}), r;
}, t.prototype.getFilledRegions = function(e, n, r, i) {
for (var a = (e || []).slice(), o = Pe(), s = 0; s < a.length; s++)
o.set(a[s].name, a[s]);
var l = Ks.load(n, r, i);
return k(l.regions, function(u) {
var c = u.name;
!o.get(c) && a.push({
name: c
});
}), a;
}, t;
}()
), gne = new UBe(), XBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r, i) {
var a = Ks.getGeoResource(n.map);
if (a && a.type === "geoJSON") {
var o = n.itemStyle = n.itemStyle || {};
"color" in o || (o.color = "#eee");
}
this.mergeDefaultAndTheme(n, i), mf(n, "label", ["show"]);
}, e.prototype.optionUpdated = function() {
var n = this, r = this.option;
r.regions = gne.getFilledRegions(r.regions, r.map, r.nameMap, r.nameProperty);
var i = {};
this._optionModelMap = Ma(r.regions || [], function(a, o) {
var s = o.name;
return s && (a.set(s, new Wt(o, n, n.ecModel)), o.selected && (i[s] = !0)), a;
}, Pe()), r.selectedMap || (r.selectedMap = i);
}, e.prototype.getRegionModel = function(n) {
return this._optionModelMap.get(n) || new Wt(null, this, this.ecModel);
}, e.prototype.getFormattedLabel = function(n, r) {
var i = this.getRegionModel(n), a = r === "normal" ? i.get(["label", "formatter"]) : i.get(["emphasis", "label", "formatter"]), o = {
name: n
};
if (Me(a))
return o.status = r, a(o);
if (Oe(a))
return a.replace("{a}", n ?? "");
}, e.prototype.setZoom = function(n) {
this.option.zoom = n;
}, e.prototype.setCenter = function(n) {
this.option.center = n;
}, e.prototype.select = function(n) {
var r = this.option, i = r.selectedMode;
if (i) {
i !== "multiple" && (r.selectedMap = null);
var a = r.selectedMap || (r.selectedMap = {});
a[n] = !0;
}
}, e.prototype.unSelect = function(n) {
var r = this.option.selectedMap;
r && (r[n] = !1);
}, e.prototype.toggleSelected = function(n) {
this[this.isSelected(n) ? "unSelect" : "select"](n);
}, e.prototype.isSelected = function(n) {
var r = this.option.selectedMap;
return !!(r && r[n]);
}, e.type = "geo", e.layoutMode = "box", e.defaultOption = {
// zlevel: 0,
z: 0,
show: !0,
left: "center",
top: "center",
// Default value:
// for geoSVG source: 1,
// for geoJSON source: 0.75.
aspectScale: null,
// /// Layout with center and size
// If you want to put map in a fixed size box with right aspect ratio
// This two properties may be more convenient
// layoutCenter: [50%, 50%]
// layoutSize: 100
silent: !1,
// Map type
map: "",
// Define left-top, right-bottom coords to control view
// For example, [ [180, 90], [-180, -90] ]
boundingCoords: null,
// Default on center of map
center: null,
zoom: 1,
scaleLimit: null,
// selectedMode: false
label: {
show: !1,
color: "#000"
},
itemStyle: {
borderWidth: 0.5,
borderColor: "#444"
// Default color:
// + geoJSON: #eee
// + geoSVG: null (use SVG original `fill`)
// color: '#eee'
},
emphasis: {
label: {
show: !0,
color: "rgb(100,0,0)"
},
itemStyle: {
color: "rgba(255,215,0,0.8)"
}
},
select: {
label: {
show: !0,
color: "rgb(100,0,0)"
},
itemStyle: {
color: "rgba(255,215,0,0.8)"
}
},
regions: []
// tooltip: {
// show: false
// }
}, e;
}(rt)
);
function EF(t, e) {
return t.pointToProjected ? t.pointToProjected(e) : t.pointToData(e);
}
function Hk(t, e, n, r) {
var i = t.getZoom(), a = t.getCenter(), o = e.zoom, s = t.projectedToPoint ? t.projectedToPoint(a) : t.dataToPoint(a);
if (e.dx != null && e.dy != null && (s[0] -= e.dx, s[1] -= e.dy, t.setCenter(EF(t, s), r)), o != null) {
if (n) {
var l = n.min || 0, u = n.max || 1 / 0;
o = Math.max(Math.min(i * o, u), l) / i;
}
t.scaleX *= o, t.scaleY *= o;
var c = (e.originX - t.x) * (o - 1), f = (e.originY - t.y) * (o - 1);
t.x -= c, t.y -= f, t.updateTransform(), t.setCenter(EF(t, s), r), t.setZoom(o * i);
}
return {
center: t.getCenter(),
zoom: t.getZoom()
};
}
var YBe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.focusBlurEnabled = !0, n;
}
return e.prototype.init = function(n, r) {
this._api = r;
}, e.prototype.render = function(n, r, i, a) {
if (this._model = n, !n.get("show")) {
this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
return;
}
this._mapDraw || (this._mapDraw = new hne(i));
var o = this._mapDraw;
o.draw(n, r, i, this, a), o.group.on("click", this._handleRegionClick, this), o.group.silent = n.get("silent"), this.group.add(o.group), this.updateSelectStatus(n, r, i);
}, e.prototype._handleRegionClick = function(n) {
var r;
Bc(n.target, function(i) {
return (r = Fe(i).eventData) != null;
}, !0), r && this._api.dispatchAction({
type: "geoToggleSelect",
geoId: this._model.id,
name: r.name
});
}, e.prototype.updateSelectStatus = function(n, r, i) {
var a = this;
this._mapDraw.group.traverse(function(o) {
var s = Fe(o).eventData;
if (s)
return a._model.isSelected(s.name) ? i.enterSelect(o) : i.leaveSelect(o), !0;
});
}, e.prototype.findHighDownDispatchers = function(n) {
return this._mapDraw && this._mapDraw.findHighDownDispatchers(n, this._model);
}, e.prototype.dispose = function() {
this._mapDraw && this._mapDraw.remove();
}, e.type = "geo", e;
}(Xt)
);
function qBe(t, e, n) {
Ks.registerMap(t, e, n);
}
function mne(t) {
t.registerCoordinateSystem("geo", gne), t.registerComponentModel(XBe), t.registerComponentView(YBe), t.registerImpl("registerMap", qBe), t.registerImpl("getMap", function(n) {
return Ks.getMapForUser(n);
});
function e(n, r) {
r.update = "geo:updateSelectStatus", t.registerAction(r, function(i, a) {
var o = {}, s = [];
return a.eachComponent({
mainType: "geo",
query: i
}, function(l) {
l[n](i.name);
var u = l.coordinateSystem;
k(u.regions, function(f) {
o[f.name] = l.isSelected(f.name) || !1;
});
var c = [];
k(o, function(f, d) {
o[d] && c.push(d);
}), s.push({
geoIndex: l.componentIndex,
// Use singular, the same naming convention as the event `selectchanged`.
name: c
});
}), {
selected: o,
allSelected: s,
name: i.name
};
});
}
e("toggleSelected", {
type: "geoToggleSelect",
event: "geoselectchanged"
}), e("select", {
type: "geoSelect",
event: "geoselected"
}), e("unSelect", {
type: "geoUnSelect",
event: "geounselected"
}), t.registerAction({
type: "geoRoam",
event: "geoRoam",
update: "updateTransform"
}, function(n, r, i) {
var a = n.componentType || "series";
r.eachComponent({
mainType: a,
query: n
}, function(o) {
var s = o.coordinateSystem;
if (s.type === "geo") {
var l = Hk(s, n, o.get("scaleLimit"), i);
o.setCenter && o.setCenter(l.center), o.setZoom && o.setZoom(l.zoom), a === "series" && k(o.seriesGroup, function(u) {
u.setCenter(l.center), u.setZoom(l.zoom);
});
}
});
});
}
function KBe(t) {
at(mne), t.registerChartView(FBe), t.registerSeriesModel(WBe), t.registerLayout(GBe), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, HBe), vee("map", t.registerAction);
}
function JBe(t) {
var e = t;
e.hierNode = {
defaultAncestor: null,
ancestor: e,
prelim: 0,
modifier: 0,
change: 0,
shift: 0,
i: 0,
thread: null
};
for (var n = [e], r, i; r = n.pop(); )
if (i = r.children, r.isExpand && i.length)
for (var a = i.length, o = a - 1; o >= 0; o--) {
var s = i[o];
s.hierNode = {
defaultAncestor: null,
ancestor: s,
prelim: 0,
modifier: 0,
change: 0,
shift: 0,
i: o,
thread: null
}, n.push(s);
}
}
function eze(t, e) {
var n = t.isExpand ? t.children : [], r = t.parentNode.children, i = t.hierNode.i ? r[t.hierNode.i - 1] : null;
if (n.length) {
rze(t);
var a = (n[0].hierNode.prelim + n[n.length - 1].hierNode.prelim) / 2;
i ? (t.hierNode.prelim = i.hierNode.prelim + e(t, i), t.hierNode.modifier = t.hierNode.prelim - a) : t.hierNode.prelim = a;
} else i && (t.hierNode.prelim = i.hierNode.prelim + e(t, i));
t.parentNode.hierNode.defaultAncestor = ize(t, i, t.parentNode.hierNode.defaultAncestor || r[0], e);
}
function tze(t) {
var e = t.hierNode.prelim + t.parentNode.hierNode.modifier;
t.setLayout({
x: e
}, !0), t.hierNode.modifier += t.parentNode.hierNode.modifier;
}
function MF(t) {
return arguments.length ? t : sze;
}
function eg(t, e) {
return t -= Math.PI / 2, {
x: e * Math.cos(t),
y: e * Math.sin(t)
};
}
function nze(t, e) {
return Rn(t.getBoxLayoutParams(), {
width: e.getWidth(),
height: e.getHeight()
});
}
function rze(t) {
for (var e = t.children, n = e.length, r = 0, i = 0; --n >= 0; ) {
var a = e[n];
a.hierNode.prelim += r, a.hierNode.modifier += r, i += a.hierNode.change, r += a.hierNode.shift + i;
}
}
function ize(t, e, n, r) {
if (e) {
for (var i = t, a = t, o = a.parentNode.children[0], s = e, l = i.hierNode.modifier, u = a.hierNode.modifier, c = o.hierNode.modifier, f = s.hierNode.modifier; s = pP(s), a = vP(a), s && a; ) {
i = pP(i), o = vP(o), i.hierNode.ancestor = t;
var d = s.hierNode.prelim + f - a.hierNode.prelim - u + r(s, a);
d > 0 && (oze(aze(s, t, n), t, d), u += d, l += d), f += s.hierNode.modifier, u += a.hierNode.modifier, l += i.hierNode.modifier, c += o.hierNode.modifier;
}
s && !pP(i) && (i.hierNode.thread = s, i.hierNode.modifier += f - l), a && !vP(o) && (o.hierNode.thread = a, o.hierNode.modifier += u - c, n = t);
}
return n;
}
function pP(t) {
var e = t.children;
return e.length && t.isExpand ? e[e.length - 1] : t.hierNode.thread;
}
function vP(t) {
var e = t.children;
return e.length && t.isExpand ? e[0] : t.hierNode.thread;
}
function aze(t, e, n) {
return t.hierNode.ancestor.parentNode === e.parentNode ? t.hierNode.ancestor : n;
}
function oze(t, e, n) {
var r = n / (e.hierNode.i - t.hierNode.i);
e.hierNode.change -= r, e.hierNode.shift += n, e.hierNode.modifier += n, e.hierNode.prelim += n, t.hierNode.change += r;
}
function sze(t, e) {
return t.parentNode === e.parentNode ? 1 : 2;
}
var lze = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.parentPoint = [], this.childPoints = [];
}
return t;
}()
), uze = (
/** @class */
function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new lze();
}, e.prototype.buildPath = function(n, r) {
var i = r.childPoints, a = i.length, o = r.parentPoint, s = i[0], l = i[a - 1];
if (a === 1) {
n.moveTo(o[0], o[1]), n.lineTo(s[0], s[1]);
return;
}
var u = r.orient, c = u === "TB" || u === "BT" ? 0 : 1, f = 1 - c, d = _e(r.forkPosition, 1), h = [];
h[c] = o[c], h[f] = o[f] + (l[f] - o[f]) * d, n.moveTo(o[0], o[1]), n.lineTo(h[0], h[1]), n.moveTo(s[0], s[1]), h[c] = s[c], n.lineTo(h[0], h[1]), h[c] = l[c], n.lineTo(h[0], h[1]), n.lineTo(l[0], l[1]);
for (var p = 1; p < a - 1; p++) {
var v = i[p];
n.moveTo(v[0], v[1]), h[c] = v[c], n.lineTo(h[0], h[1]);
}
}, e;
}(ot)
), cze = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._mainGroup = new Ve(), n;
}
return e.prototype.init = function(n, r) {
this._controller = new J0(r.getZr()), this._controllerHost = {
target: this.group
}, this.group.add(this._mainGroup);
}, e.prototype.render = function(n, r, i) {
var a = n.getData(), o = n.layoutInfo, s = this._mainGroup, l = n.get("layout");
l === "radial" ? (s.x = o.x + o.width / 2, s.y = o.y + o.height / 2) : (s.x = o.x, s.y = o.y), this._updateViewCoordSys(n, i), this._updateController(n, r, i);
var u = this._data;
a.diff(u).add(function(c) {
IF(a, c) && DF(a, c, null, s, n);
}).update(function(c, f) {
var d = u.getItemGraphicEl(f);
if (!IF(a, c)) {
d && kF(u, f, d, s, n);
return;
}
DF(a, c, d, s, n);
}).remove(function(c) {
var f = u.getItemGraphicEl(c);
f && kF(u, c, f, s, n);
}).execute(), this._nodeScaleRatio = n.get("nodeScaleRatio"), this._updateNodeAndLinkScale(n), n.get("expandAndCollapse") === !0 && a.eachItemGraphicEl(function(c, f) {
c.off("click").on("click", function() {
i.dispatchAction({
type: "treeExpandAndCollapse",
seriesId: n.id,
dataIndex: f
});
});
}), this._data = a;
}, e.prototype._updateViewCoordSys = function(n, r) {
var i = n.getData(), a = [];
i.each(function(f) {
var d = i.getItemLayout(f);
d && !isNaN(d.x) && !isNaN(d.y) && a.push([+d.x, +d.y]);
});
var o = [], s = [];
Zx(a, o, s);
var l = this._min, u = this._max;
s[0] - o[0] === 0 && (o[0] = l ? l[0] : o[0] - 1, s[0] = u ? u[0] : s[0] + 1), s[1] - o[1] === 0 && (o[1] = l ? l[1] : o[1] - 1, s[1] = u ? u[1] : s[1] + 1);
var c = n.coordinateSystem = new ey();
c.zoomLimit = n.get("scaleLimit"), c.setBoundingRect(o[0], o[1], s[0] - o[0], s[1] - o[1]), c.setCenter(n.get("center"), r), c.setZoom(n.get("zoom")), this.group.attr({
x: c.x,
y: c.y,
scaleX: c.scaleX,
scaleY: c.scaleY
}), this._min = o, this._max = s;
}, e.prototype._updateController = function(n, r, i) {
var a = this, o = this._controller, s = this._controllerHost, l = this.group;
o.setPointerChecker(function(u, c, f) {
var d = l.getBoundingRect();
return d.applyTransform(l.transform), d.contain(c, f) && !yw(u, i, n);
}), o.enable(n.get("roam")), s.zoomLimit = n.get("scaleLimit"), s.zoom = n.coordinateSystem.getZoom(), o.off("pan").off("zoom").on("pan", function(u) {
Fk(s, u.dx, u.dy), i.dispatchAction({
seriesId: n.id,
type: "treeRoam",
dx: u.dx,
dy: u.dy
});
}).on("zoom", function(u) {
Wk(s, u.scale, u.originX, u.originY), i.dispatchAction({
seriesId: n.id,
type: "treeRoam",
zoom: u.scale,
originX: u.originX,
originY: u.originY
}), a._updateNodeAndLinkScale(n), i.updateLabelLayout();
});
}, e.prototype._updateNodeAndLinkScale = function(n) {
var r = n.getData(), i = this._getNodeGlobalScale(n);
r.eachItemGraphicEl(function(a, o) {
a.setSymbolScale(i);
});
}, e.prototype._getNodeGlobalScale = function(n) {
var r = n.coordinateSystem;
if (r.type !== "view")
return 1;
var i = this._nodeScaleRatio, a = r.scaleX || 1, o = r.getZoom(), s = (o - 1) * i + 1;
return s / a;
}, e.prototype.dispose = function() {
this._controller && this._controller.dispose(), this._controllerHost = null;
}, e.prototype.remove = function() {
this._mainGroup.removeAll(), this._data = null;
}, e.type = "tree", e;
}(zt)
);
function IF(t, e) {
var n = t.getItemLayout(e);
return n && !isNaN(n.x) && !isNaN(n.y);
}
function DF(t, e, n, r, i) {
var a = !n, o = t.tree.getNodeByDataIndex(e), s = o.getModel(), l = o.getVisual("style").fill, u = o.isExpand === !1 && o.children.length !== 0 ? l : "#fff", c = t.tree.root, f = o.parentNode === c ? o : o.parentNode || o, d = t.getItemGraphicEl(f.dataIndex), h = f.getLayout(), p = d ? {
x: d.__oldX,
y: d.__oldY,
rawX: d.__radialOldRawX,
rawY: d.__radialOldRawY
} : h, v = o.getLayout();
a ? (n = new Z0(t, e, null, {
symbolInnerColor: u,
useNameLabel: !0
}), n.x = p.x, n.y = p.y) : n.updateData(t, e, null, {
symbolInnerColor: u,
useNameLabel: !0
}), n.__radialOldRawX = n.__radialRawX, n.__radialOldRawY = n.__radialRawY, n.__radialRawX = v.rawX, n.__radialRawY = v.rawY, r.add(n), t.setItemGraphicEl(e, n), n.__oldX = n.x, n.__oldY = n.y, Ct(n, {
x: v.x,
y: v.y
}, i);
var g = n.getSymbolPath();
if (i.get("layout") === "radial") {
var m = c.children[0], y = m.getLayout(), b = m.children.length, _ = void 0, O = void 0;
if (v.x === y.x && o.isExpand === !0 && m.children.length) {
var S = {
x: (m.children[0].getLayout().x + m.children[b - 1].getLayout().x) / 2,
y: (m.children[0].getLayout().y + m.children[b - 1].getLayout().y) / 2
};
_ = Math.atan2(S.y - y.y, S.x - y.x), _ < 0 && (_ = Math.PI * 2 + _), O = S.x < y.x, O && (_ = _ - Math.PI);
} else
_ = Math.atan2(v.y - y.y, v.x - y.x), _ < 0 && (_ = Math.PI * 2 + _), o.children.length === 0 || o.children.length !== 0 && o.isExpand === !1 ? (O = v.x < y.x, O && (_ = _ - Math.PI)) : (O = v.x > y.x, O || (_ = _ - Math.PI));
var x = O ? "left" : "right", C = s.getModel("label"), T = C.get("rotate"), w = T * (Math.PI / 180), P = g.getTextContent();
P && (g.setTextConfig({
position: C.get("position") || x,
rotation: T == null ? -_ : w,
origin: "center"
}), P.setStyle("verticalAlign", "middle"));
}
var $ = s.get(["emphasis", "focus"]), A = $ === "relative" ? _m(o.getAncestorsIndices(), o.getDescendantIndices()) : $ === "ancestor" ? o.getAncestorsIndices() : $ === "descendant" ? o.getDescendantIndices() : null;
A && (Fe(n).focus = A), fze(i, o, c, n, p, h, v, r), n.__edge && (n.onHoverStateChange = function(D) {
if (D !== "blur") {
var E = o.parentNode && t.getItemGraphicEl(o.parentNode.dataIndex);
E && E.hoverState === z0 || lO(n.__edge, D);
}
});
}
function fze(t, e, n, r, i, a, o, s) {
var l = e.getModel(), u = t.get("edgeShape"), c = t.get("layout"), f = t.getOrient(), d = t.get(["lineStyle", "curveness"]), h = t.get("edgeForkPosition"), p = l.getModel("lineStyle").getLineStyle(), v = r.__edge;
if (u === "curve")
e.parentNode && e.parentNode !== n && (v || (v = r.__edge = new F0({
shape: gE(c, f, d, i, i)
})), Ct(v, {
shape: gE(c, f, d, a, o)
}, t));
else if (u === "polyline") {
if (c === "orthogonal") {
if (e !== n && e.children && e.children.length !== 0 && e.isExpand === !0) {
for (var g = e.children, m = [], y = 0; y < g.length; y++) {
var b = g[y].getLayout();
m.push([b.x, b.y]);
}
v || (v = r.__edge = new uze({
shape: {
parentPoint: [o.x, o.y],
childPoints: [[o.x, o.y]],
orient: f,
forkPosition: h
}
})), Ct(v, {
shape: {
parentPoint: [o.x, o.y],
childPoints: m
}
}, t);
}
} else if (process.env.NODE_ENV !== "production")
throw new Error("The polyline edgeShape can only be used in orthogonal layout");
}
v && !(u === "polyline" && !e.isExpand) && (v.useStyle(Re({
strokeNoScale: !0,
fill: null
}, p)), Tr(v, l, "lineStyle"), _f(v), s.add(v));
}
function RF(t, e, n, r, i) {
var a = e.tree.root, o = yne(a, t), s = o.source, l = o.sourceLayout, u = e.getItemGraphicEl(t.dataIndex);
if (u) {
var c = e.getItemGraphicEl(s.dataIndex), f = c.__edge, d = u.__edge || (s.isExpand === !1 || s.children.length === 1 ? f : void 0), h = r.get("edgeShape"), p = r.get("layout"), v = r.get("orient"), g = r.get(["lineStyle", "curveness"]);
d && (h === "curve" ? uu(d, {
shape: gE(p, v, g, l, l),
style: {
opacity: 0
}
}, r, {
cb: function() {
n.remove(d);
},
removeOpt: i
}) : h === "polyline" && r.get("layout") === "orthogonal" && uu(d, {
shape: {
parentPoint: [l.x, l.y],
childPoints: [[l.x, l.y]]
},
style: {
opacity: 0
}
}, r, {
cb: function() {
n.remove(d);
},
removeOpt: i
}));
}
}
function yne(t, e) {
for (var n = e.parentNode === t ? e : e.parentNode || e, r; r = n.getLayout(), r == null; )
n = n.parentNode === t ? n : n.parentNode || n;
return {
source: n,
sourceLayout: r
};
}
function kF(t, e, n, r, i) {
var a = t.tree.getNodeByDataIndex(e), o = t.tree.root, s = yne(o, a).sourceLayout, l = {
duration: i.get("animationDurationUpdate"),
easing: i.get("animationEasingUpdate")
};
uu(n, {
x: s.x + 1,
y: s.y + 1
}, i, {
cb: function() {
r.remove(n), t.setItemGraphicEl(e, null);
},
removeOpt: l
}), n.fadeOut(null, t.hostModel, {
fadeLabel: !0,
animation: l
}), a.children.forEach(function(u) {
RF(u, t, r, i, l);
}), RF(a, t, r, i, l);
}
function gE(t, e, n, r, i) {
var a, o, s, l, u, c, f, d;
if (t === "radial") {
u = r.rawX, f = r.rawY, c = i.rawX, d = i.rawY;
var h = eg(u, f), p = eg(u, f + (d - f) * n), v = eg(c, d + (f - d) * n), g = eg(c, d);
return {
x1: h.x || 0,
y1: h.y || 0,
x2: g.x || 0,
y2: g.y || 0,
cpx1: p.x || 0,
cpy1: p.y || 0,
cpx2: v.x || 0,
cpy2: v.y || 0
};
} else
u = r.x, f = r.y, c = i.x, d = i.y, (e === "LR" || e === "RL") && (a = u + (c - u) * n, o = f, s = c + (u - c) * n, l = d), (e === "TB" || e === "BT") && (a = u, o = f + (d - f) * n, s = c, l = d + (f - d) * n);
return {
x1: u,
y1: f,
x2: c,
y2: d,
cpx1: a,
cpy1: o,
cpx2: s,
cpy2: l
};
}
var wa = bt();
function bne(t) {
var e = t.mainData, n = t.datas;
n || (n = {
main: e
}, t.datasAttr = {
main: "data"
}), t.datas = t.mainData = null, _ne(e, n, t), k(n, function(r) {
k(e.TRANSFERABLE_METHODS, function(i) {
r.wrapMethod(i, Ue(dze, t));
});
}), e.wrapMethod("cloneShallow", Ue(pze, t)), k(e.CHANGABLE_METHODS, function(r) {
e.wrapMethod(r, Ue(hze, t));
}), ke(n[e.dataType] === e);
}
function dze(t, e) {
if (mze(this)) {
var n = le({}, wa(this).datas);
n[this.dataType] = e, _ne(e, n, t);
} else
Gk(e, this.dataType, wa(this).mainData, t);
return e;
}
function hze(t, e) {
return t.struct && t.struct.update(), e;
}
function pze(t, e) {
return k(wa(e).datas, function(n, r) {
n !== e && Gk(n.cloneShallow(), r, e, t);
}), e;
}
function vze(t) {
var e = wa(this).mainData;
return t == null || e == null ? e : wa(e).datas[t];
}
function gze() {
var t = wa(this).mainData;
return t == null ? [{
data: t
}] : ce(st(wa(t).datas), function(e) {
return {
type: e,
data: wa(t).datas[e]
};
});
}
function mze(t) {
return wa(t).mainData === t;
}
function _ne(t, e, n) {
wa(t).datas = {}, k(e, function(r, i) {
Gk(r, i, t, n);
});
}
function Gk(t, e, n, r) {
wa(n).datas[e] = t, wa(t).mainData = n, t.dataType = e, r.struct && (t[r.structAttr] = r.struct, r.struct[r.datasAttr[e]] = t), t.getLinkedData = vze, t.getLinkedDataAll = gze;
}
var yze = (
/** @class */
function() {
function t(e, n) {
this.depth = 0, this.height = 0, this.dataIndex = -1, this.children = [], this.viewChildren = [], this.isExpand = !1, this.name = e || "", this.hostTree = n;
}
return t.prototype.isRemoved = function() {
return this.dataIndex < 0;
}, t.prototype.eachNode = function(e, n, r) {
Me(e) && (r = n, n = e, e = null), e = e || {}, Oe(e) && (e = {
order: e
});
var i = e.order || "preorder", a = this[e.attr || "children"], o;
i === "preorder" && (o = n.call(r, this));
for (var s = 0; !o && s < a.length; s++)
a[s].eachNode(e, n, r);
i === "postorder" && n.call(r, this);
}, t.prototype.updateDepthAndHeight = function(e) {
var n = 0;
this.depth = e;
for (var r = 0; r < this.children.length; r++) {
var i = this.children[r];
i.updateDepthAndHeight(e + 1), i.height > n && (n = i.height);
}
this.height = n + 1;
}, t.prototype.getNodeById = function(e) {
if (this.getId() === e)
return this;
for (var n = 0, r = this.children, i = r.length; n < i; n++) {
var a = r[n].getNodeById(e);
if (a)
return a;
}
}, t.prototype.contains = function(e) {
if (e === this)
return !0;
for (var n = 0, r = this.children, i = r.length; n < i; n++) {
var a = r[n].contains(e);
if (a)
return a;
}
}, t.prototype.getAncestors = function(e) {
for (var n = [], r = e ? this : this.parentNode; r; )
n.push(r), r = r.parentNode;
return n.reverse(), n;
}, t.prototype.getAncestorsIndices = function() {
for (var e = [], n = this; n; )
e.push(n.dataIndex), n = n.parentNode;
return e.reverse(), e;
}, t.prototype.getDescendantIndices = function() {
var e = [];
return this.eachNode(function(n) {
e.push(n.dataIndex);
}), e;
}, t.prototype.getValue = function(e) {
var n = this.hostTree.data;
return n.getStore().get(n.getDimensionIndex(e || "value"), this.dataIndex);
}, t.prototype.setLayout = function(e, n) {
this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, e, n);
}, t.prototype.getLayout = function() {
return this.hostTree.data.getItemLayout(this.dataIndex);
}, t.prototype.getModel = function(e) {
if (!(this.dataIndex < 0)) {
var n = this.hostTree, r = n.data.getItemModel(this.dataIndex);
return r.getModel(e);
}
}, t.prototype.getLevelModel = function() {
return (this.hostTree.levelModels || [])[this.depth];
}, t.prototype.setVisual = function(e, n) {
this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, e, n);
}, t.prototype.getVisual = function(e) {
return this.hostTree.data.getItemVisual(this.dataIndex, e);
}, t.prototype.getRawIndex = function() {
return this.hostTree.data.getRawIndex(this.dataIndex);
}, t.prototype.getId = function() {
return this.hostTree.data.getId(this.dataIndex);
}, t.prototype.getChildIndex = function() {
if (this.parentNode) {
for (var e = this.parentNode.children, n = 0; n < e.length; ++n)
if (e[n] === this)
return n;
return -1;
}
return -1;
}, t.prototype.isAncestorOf = function(e) {
for (var n = e.parentNode; n; ) {
if (n === this)
return !0;
n = n.parentNode;
}
return !1;
}, t.prototype.isDescendantOf = function(e) {
return e !== this && e.isAncestorOf(this);
}, t;
}()
), jk = (
/** @class */
function() {
function t(e) {
this.type = "tree", this._nodes = [], this.hostModel = e;
}
return t.prototype.eachNode = function(e, n, r) {
this.root.eachNode(e, n, r);
}, t.prototype.getNodeByDataIndex = function(e) {
var n = this.data.getRawIndex(e);
return this._nodes[n];
}, t.prototype.getNodeById = function(e) {
return this.root.getNodeById(e);
}, t.prototype.update = function() {
for (var e = this.data, n = this._nodes, r = 0, i = n.length; r < i; r++)
n[r].dataIndex = -1;
for (var r = 0, i = e.count(); r < i; r++)
n[e.getRawIndex(r)].dataIndex = r;
}, t.prototype.clearLayouts = function() {
this.data.clearItemLayouts();
}, t.createTree = function(e, n, r) {
var i = new t(n), a = [], o = 1;
s(e);
function s(c, f) {
var d = c.value;
o = Math.max(o, ue(d) ? d.length : 1), a.push(c);
var h = new yze(Vn(c.name, ""), i);
f ? bze(h, f) : i.root = h, i._nodes.push(h);
var p = c.children;
if (p)
for (var v = 0; v < p.length; v++)
s(p[v], h);
}
i.root.updateDepthAndHeight(0);
var l = Ap(a, {
coordDimensions: ["value"],
dimensionsCount: o
}).dimensions, u = new Nr(l, n);
return u.initData(a), r && r(u), bne({
mainData: u,
struct: i,
structAttr: "tree"
}), i.update(), i;
}, t;
}()
);
function bze(t, e) {
var n = e.children;
t.parentNode !== e && (n.push(t), t.parentNode = e);
}
function Vm(t, e, n) {
if (t && et(e, t.type) >= 0) {
var r = n.getData().tree.root, i = t.targetNode;
if (Oe(i) && (i = r.getNodeById(i)), i && r.contains(i))
return {
node: i
};
var a = t.targetNodeId;
if (a != null && (i = r.getNodeById(a)))
return {
node: i
};
}
}
function One(t) {
for (var e = []; t; )
t = t.parentNode, t && e.push(t);
return e.reverse();
}
function Zk(t, e) {
var n = One(t);
return et(n, e) >= 0;
}
function _w(t, e) {
for (var n = []; t; ) {
var r = t.dataIndex;
n.push({
name: t.name,
dataIndex: r,
value: e.getRawValue(r)
}), t = t.parentNode;
}
return n.reverse(), n;
}
var _ze = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.hasSymbolVisual = !0, n.ignoreStyleOnData = !0, n;
}
return e.prototype.getInitialData = function(n) {
var r = {
name: n.name,
children: n.data
}, i = n.leaves || {}, a = new Wt(i, this, this.ecModel), o = jk.createTree(r, this, s);
function s(f) {
f.wrapMethod("getItemModel", function(d, h) {
var p = o.getNodeByDataIndex(h);
return p && p.children.length && p.isExpand || (d.parentModel = a), d;
});
}
var l = 0;
o.eachNode("preorder", function(f) {
f.depth > l && (l = f.depth);
});
var u = n.expandAndCollapse, c = u && n.initialTreeDepth >= 0 ? n.initialTreeDepth : l;
return o.root.eachNode("preorder", function(f) {
var d = f.hostTree.data.getRawDataItem(f.dataIndex);
f.isExpand = d && d.collapsed != null ? !d.collapsed : f.depth <= c;
}), o.data;
}, e.prototype.getOrient = function() {
var n = this.get("orient");
return n === "horizontal" ? n = "LR" : n === "vertical" && (n = "TB"), n;
}, e.prototype.setZoom = function(n) {
this.option.zoom = n;
}, e.prototype.setCenter = function(n) {
this.option.center = n;
}, e.prototype.formatTooltip = function(n, r, i) {
for (var a = this.getData().tree, o = a.root.children[0], s = a.getNodeByDataIndex(n), l = s.getValue(), u = s.name; s && s !== o; )
u = s.parentNode.name + "." + u, s = s.parentNode;
return tr("nameValue", {
name: u,
value: l,
noValue: isNaN(l) || l == null
});
}, e.prototype.getDataParams = function(n) {
var r = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(n);
return r.treeAncestors = _w(i, this), r.collapsed = !i.isExpand, r;
}, e.type = "series.tree", e.layoutMode = "box", e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "view",
// the position of the whole view
left: "12%",
top: "12%",
right: "12%",
bottom: "12%",
// the layout of the tree, two value can be selected, 'orthogonal' or 'radial'
layout: "orthogonal",
// value can be 'polyline'
edgeShape: "curve",
edgeForkPosition: "50%",
// true | false | 'move' | 'scale', see module:component/helper/RoamController.
roam: !1,
// Symbol size scale ratio in roam
nodeScaleRatio: 0.4,
// Default on center of graph
center: null,
zoom: 1,
orient: "LR",
symbol: "emptyCircle",
symbolSize: 7,
expandAndCollapse: !0,
initialTreeDepth: 2,
lineStyle: {
color: "#ccc",
width: 1.5,
curveness: 0.5
},
itemStyle: {
color: "lightsteelblue",
// borderColor: '#c23531',
borderWidth: 1.5
},
label: {
show: !0
},
animationEasing: "linear",
animationDuration: 700,
animationDurationUpdate: 500
}, e;
}(Ht)
);
function Oze(t, e, n) {
for (var r = [t], i = [], a; a = r.pop(); )
if (i.push(a), a.isExpand) {
var o = a.children;
if (o.length)
for (var s = 0; s < o.length; s++)
r.push(o[s]);
}
for (; a = i.pop(); )
e(a, n);
}
function xv(t, e) {
for (var n = [t], r; r = n.pop(); )
if (e(r), r.isExpand) {
var i = r.children;
if (i.length)
for (var a = i.length - 1; a >= 0; a--)
n.push(i[a]);
}
}
function Sze(t, e) {
t.eachSeriesByType("tree", function(n) {
xze(n, e);
});
}
function xze(t, e) {
var n = nze(t, e);
t.layoutInfo = n;
var r = t.get("layout"), i = 0, a = 0, o = null;
r === "radial" ? (i = 2 * Math.PI, a = Math.min(n.height, n.width) / 2, o = MF(function(b, _) {
return (b.parentNode === _.parentNode ? 1 : 2) / b.depth;
})) : (i = n.width, a = n.height, o = MF());
var s = t.getData().tree.root, l = s.children[0];
if (l) {
JBe(s), Oze(l, eze, o), s.hierNode.modifier = -l.hierNode.prelim, xv(l, tze);
var u = l, c = l, f = l;
xv(l, function(b) {
var _ = b.getLayout().x;
_ < u.getLayout().x && (u = b), _ > c.getLayout().x && (c = b), b.depth > f.depth && (f = b);
});
var d = u === c ? 1 : o(u, c) / 2, h = d - u.getLayout().x, p = 0, v = 0, g = 0, m = 0;
if (r === "radial")
p = i / (c.getLayout().x + d + h), v = a / (f.depth - 1 || 1), xv(l, function(b) {
g = (b.getLayout().x + h) * p, m = (b.depth - 1) * v;
var _ = eg(g, m);
b.setLayout({
x: _.x,
y: _.y,
rawX: g,
rawY: m
}, !0);
});
else {
var y = t.getOrient();
y === "RL" || y === "LR" ? (v = a / (c.getLayout().x + d + h), p = i / (f.depth - 1 || 1), xv(l, function(b) {
m = (b.getLayout().x + h) * v, g = y === "LR" ? (b.depth - 1) * p : i - (b.depth - 1) * p, b.setLayout({
x: g,
y: m
}, !0);
})) : (y === "TB" || y === "BT") && (p = i / (c.getLayout().x + d + h), v = a / (f.depth - 1 || 1), xv(l, function(b) {
g = (b.getLayout().x + h) * p, m = y === "TB" ? (b.depth - 1) * v : a - (b.depth - 1) * v, b.setLayout({
x: g,
y: m
}, !0);
}));
}
}
}
function wze(t) {
t.eachSeriesByType("tree", function(e) {
var n = e.getData(), r = n.tree;
r.eachNode(function(i) {
var a = i.getModel(), o = a.getModel("itemStyle").getItemStyle(), s = n.ensureUniqueItemVisual(i.dataIndex, "style");
le(s, o);
});
});
}
function Cze(t) {
t.registerAction({
type: "treeExpandAndCollapse",
event: "treeExpandAndCollapse",
update: "update"
}, function(e, n) {
n.eachComponent({
mainType: "series",
subType: "tree",
query: e
}, function(r) {
var i = e.dataIndex, a = r.getData().tree, o = a.getNodeByDataIndex(i);
o.isExpand = !o.isExpand;
});
}), t.registerAction({
type: "treeRoam",
event: "treeRoam",
// Here we set 'none' instead of 'update', because roam action
// just need to update the transform matrix without having to recalculate
// the layout. So don't need to go through the whole update process, such
// as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.
update: "none"
}, function(e, n, r) {
n.eachComponent({
mainType: "series",
subType: "tree",
query: e
}, function(i) {
var a = i.coordinateSystem, o = Hk(a, e, void 0, r);
i.setCenter && i.setCenter(o.center), i.setZoom && i.setZoom(o.zoom);
});
});
}
function Tze(t) {
t.registerChartView(cze), t.registerSeriesModel(_ze), t.registerLayout(Sze), t.registerVisual(wze), Cze(t);
}
var LF = ["treemapZoomToNode", "treemapRender", "treemapMove"];
function Pze(t) {
for (var e = 0; e < LF.length; e++)
t.registerAction({
type: LF[e],
update: "updateView"
}, On);
t.registerAction({
type: "treemapRootToNode",
update: "updateView"
}, function(n, r) {
r.eachComponent({
mainType: "series",
subType: "treemap",
query: n
}, i);
function i(a, o) {
var s = ["treemapZoomToNode", "treemapRootToNode"], l = Vm(n, s, a);
if (l) {
var u = a.getViewRoot();
u && (n.direction = Zk(u, l.node) ? "rollUp" : "drillDown"), a.resetViewRoot(l.node);
}
}
});
}
function Sne(t) {
var e = t.getData(), n = e.tree, r = {};
n.eachNode(function(i) {
for (var a = i; a && a.depth > 1; )
a = a.parentNode;
var o = HA(t.ecModel, a.name || a.dataIndex + "", r);
i.setVisual("decal", o);
});
}
var $ze = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.preventUsingHoverLayer = !0, n;
}
return e.prototype.getInitialData = function(n, r) {
var i = {
name: n.name,
children: n.data
};
xne(i);
var a = n.levels || [], o = this.designatedVisualItemStyle = {}, s = new Wt({
itemStyle: o
}, this, r);
a = n.levels = Aze(a, r);
var l = ce(a || [], function(f) {
return new Wt(f, s, r);
}, this), u = jk.createTree(i, this, c);
function c(f) {
f.wrapMethod("getItemModel", function(d, h) {
var p = u.getNodeByDataIndex(h), v = p ? l[p.depth] : null;
return d.parentModel = v || s, d;
});
}
return u.data;
}, e.prototype.optionUpdated = function() {
this.resetViewRoot();
}, e.prototype.formatTooltip = function(n, r, i) {
var a = this.getData(), o = this.getRawValue(n), s = a.getName(n);
return tr("nameValue", {
name: s,
value: o
});
}, e.prototype.getDataParams = function(n) {
var r = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(n);
return r.treeAncestors = _w(i, this), r.treePathInfo = r.treeAncestors, r;
}, e.prototype.setLayoutInfo = function(n) {
this.layoutInfo = this.layoutInfo || {}, le(this.layoutInfo, n);
}, e.prototype.mapIdToIndex = function(n) {
var r = this._idIndexMap;
r || (r = this._idIndexMap = Pe(), this._idIndexMapCount = 0);
var i = r.get(n);
return i == null && r.set(n, i = this._idIndexMapCount++), i;
}, e.prototype.getViewRoot = function() {
return this._viewRoot;
}, e.prototype.resetViewRoot = function(n) {
n ? this._viewRoot = n : n = this._viewRoot;
var r = this.getRawData().tree.root;
(!n || n !== r && !r.contains(n)) && (this._viewRoot = r);
}, e.prototype.enableAriaDecal = function() {
Sne(this);
}, e.type = "series.treemap", e.layoutMode = "box", e.defaultOption = {
// Disable progressive rendering
progressive: 0,
// size: ['80%', '80%'], // deprecated, compatible with ec2.
left: "center",
top: "middle",
width: "80%",
height: "80%",
sort: !0,
clipWindow: "origin",
squareRatio: 0.5 * (1 + Math.sqrt(5)),
leafDepth: null,
drillDownIcon: "▶",
// to align specialized icon. ▷▶❒❐▼✚
zoomToNodeRatio: 0.32 * 0.32,
scaleLimit: null,
roam: !0,
nodeClick: "zoomToNode",
animation: !0,
animationDurationUpdate: 900,
animationEasing: "quinticInOut",
breadcrumb: {
show: !0,
height: 22,
left: "center",
top: "bottom",
// right
// bottom
emptyItemWidth: 25,
itemStyle: {
color: "rgba(0,0,0,0.7)",
textStyle: {
color: "#fff"
}
},
emphasis: {
itemStyle: {
color: "rgba(0,0,0,0.9)"
// '#5793f3',
}
}
},
label: {
show: !0,
// Do not use textDistance, for ellipsis rect just the same as treemap node rect.
distance: 0,
padding: 5,
position: "inside",
// formatter: null,
color: "#fff",
overflow: "truncate"
// align
// verticalAlign
},
upperLabel: {
show: !1,
position: [0, "50%"],
height: 20,
// formatter: null,
// color: '#fff',
overflow: "truncate",
// align: null,
verticalAlign: "middle"
},
itemStyle: {
color: null,
colorAlpha: null,
colorSaturation: null,
borderWidth: 0,
gapWidth: 0,
borderColor: "#fff",
borderColorSaturation: null
// If specified, borderColor will be ineffective, and the
// border color is evaluated by color of current node and
// borderColorSaturation.
},
emphasis: {
upperLabel: {
show: !0,
position: [0, "50%"],
overflow: "truncate",
verticalAlign: "middle"
}
},
visualDimension: 0,
visualMin: null,
visualMax: null,
color: [],
// level[n].color (if necessary).
// + Specify color list of each level. level[0].color would be global
// color list if not specified. (see method `setDefault`).
// + But set as a empty array to forbid fetch color from global palette
// when using nodeModel.get('color'), otherwise nodes on deep level
// will always has color palette set and are not able to inherit color
// from parent node.
// + TreemapSeries.color can not be set as 'none', otherwise effect
// legend color fetching (see seriesColor.js).
colorAlpha: null,
colorSaturation: null,
colorMappingBy: "index",
visibleMin: 10,
// be rendered. Only works when sort is 'asc' or 'desc'.
childrenVisibleMin: null,
// grandchildren will not show.
// Why grandchildren? If not grandchildren but children,
// some siblings show children and some not,
// the appearance may be mess and not consistent,
levels: []
// Each item: {
// visibleMin, itemStyle, visualDimension, label
// }
}, e;
}(Ht)
);
function xne(t) {
var e = 0;
k(t.children, function(r) {
xne(r);
var i = r.value;
ue(i) && (i = i[0]), e += i;
});
var n = t.value;
ue(n) && (n = n[0]), (n == null || isNaN(n)) && (n = e), n < 0 && (n = 0), ue(t.value) ? t.value[0] = n : t.value = n;
}
function Aze(t, e) {
var n = Qt(e.get("color")), r = Qt(e.get(["aria", "decal", "decals"]));
if (n) {
t = t || [];
var i, a;
k(t, function(s) {
var l = new Wt(s), u = l.get("color"), c = l.get("decal");
(l.get(["itemStyle", "color"]) || u && u !== "none") && (i = !0), (l.get(["itemStyle", "decal"]) || c && c !== "none") && (a = !0);
});
var o = t[0] || (t[0] = {});
return i || (o.color = n.slice()), !a && r && (o.decal = r.slice()), t;
}
}
var Eze = 8, NF = 8, gP = 5, Mze = (
/** @class */
function() {
function t(e) {
this.group = new Ve(), e.add(this.group);
}
return t.prototype.render = function(e, n, r, i) {
var a = e.getModel("breadcrumb"), o = this.group;
if (o.removeAll(), !(!a.get("show") || !r)) {
var s = a.getModel("itemStyle"), l = a.getModel("emphasis"), u = s.getModel("textStyle"), c = l.getModel(["itemStyle", "textStyle"]), f = {
pos: {
left: a.get("left"),
right: a.get("right"),
top: a.get("top"),
bottom: a.get("bottom")
},
box: {
width: n.getWidth(),
height: n.getHeight()
},
emptyItemWidth: a.get("emptyItemWidth"),
totalWidth: 0,
renderList: []
};
this._prepare(r, f, u), this._renderContent(e, f, s, l, u, c, i), ow(o, f.pos, f.box);
}
}, t.prototype._prepare = function(e, n, r) {
for (var i = e; i; i = i.parentNode) {
var a = Vn(i.getModel().get("name"), ""), o = r.getTextRect(a), s = Math.max(o.width + Eze * 2, n.emptyItemWidth);
n.totalWidth += s + NF, n.renderList.push({
node: i,
text: a,
width: s
});
}
}, t.prototype._renderContent = function(e, n, r, i, a, o, s) {
for (var l = 0, u = n.emptyItemWidth, c = e.get(["breadcrumb", "height"]), f = _Le(n.pos, n.box), d = n.totalWidth, h = n.renderList, p = i.getModel("itemStyle").getItemStyle(), v = h.length - 1; v >= 0; v--) {
var g = h[v], m = g.node, y = g.width, b = g.text;
d > f.width && (d -= y - u, y = u, b = null);
var _ = new ai({
shape: {
points: Ize(l, 0, y, c, v === h.length - 1, v === 0)
},
style: Re(r.getItemStyle(), {
lineJoin: "bevel"
}),
textContent: new gt({
style: Zt(a, {
text: b
})
}),
textConfig: {
position: "inside"
},
z2: mp * 1e4,
onclick: Ue(s, m)
});
_.disableLabelAnimation = !0, _.getTextContent().ensureState("emphasis").style = Zt(o, {
text: b
}), _.ensureState("emphasis").style = p, bn(_, i.get("focus"), i.get("blurScope"), i.get("disabled")), this.group.add(_), Dze(_, e, m), l += y + NF;
}
}, t.prototype.remove = function() {
this.group.removeAll();
}, t;
}()
);
function Ize(t, e, n, r, i, a) {
var o = [[i ? t : t - gP, e], [t + n, e], [t + n, e + r], [i ? t : t - gP, e + r]];
return !a && o.splice(2, 0, [t + n + gP, e + r / 2]), !i && o.push([t, e + r / 2]), o;
}
function Dze(t, e, n) {
Fe(t).eventData = {
componentType: "series",
componentSubType: "treemap",
componentIndex: e.componentIndex,
seriesIndex: e.seriesIndex,
seriesName: e.name,
seriesType: "treemap",
selfType: "breadcrumb",
nodeData: {
dataIndex: n && n.dataIndex,
name: n && n.name
},
treePathInfo: n && _w(n, e)
};
}
var Rze = (
/** @class */
function() {
function t() {
this._storage = [], this._elExistsMap = {};
}
return t.prototype.add = function(e, n, r, i, a) {
return this._elExistsMap[e.id] ? !1 : (this._elExistsMap[e.id] = !0, this._storage.push({
el: e,
target: n,
duration: r,
delay: i,
easing: a
}), !0);
}, t.prototype.finished = function(e) {
return this._finishedCallback = e, this;
}, t.prototype.start = function() {
for (var e = this, n = this._storage.length, r = function() {
n--, n <= 0 && (e._storage.length = 0, e._elExistsMap = {}, e._finishedCallback && e._finishedCallback());
}, i = 0, a = this._storage.length; i < a; i++) {
var o = this._storage[i];
o.el.animateTo(o.target, {
duration: o.duration,
delay: o.delay,
easing: o.easing,
setToFinal: !0,
done: r,
aborted: r
});
}
return this;
}, t;
}()
);
function kze() {
return new Rze();
}
var mE = Ve, BF = mt, zF = 3, VF = "label", FF = "upperLabel", Lze = mp * 10, Nze = mp * 2, Bze = mp * 3, pc = bf([
["fill", "color"],
// `borderColor` and `borderWidth` has been occupied,
// so use `stroke` to indicate the stroke of the rect.
["stroke", "strokeColor"],
["lineWidth", "strokeWidth"],
["shadowBlur"],
["shadowOffsetX"],
["shadowOffsetY"],
["shadowColor"]
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
]), WF = function(t) {
var e = pc(t);
return e.stroke = e.fill = e.lineWidth = null, e;
}, RO = bt(), zze = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._state = "ready", n._storage = wv(), n;
}
return e.prototype.render = function(n, r, i, a) {
var o = r.findComponents({
mainType: "series",
subType: "treemap",
query: a
});
if (!(et(o, n) < 0)) {
this.seriesModel = n, this.api = i, this.ecModel = r;
var s = ["treemapZoomToNode", "treemapRootToNode"], l = Vm(a, s, n), u = a && a.type, c = n.layoutInfo, f = !this._oldTree, d = this._storage, h = u === "treemapRootToNode" && l && d ? {
rootNodeGroup: d.nodeGroup[l.node.getRawIndex()],
direction: a.direction
} : null, p = this._giveContainerGroup(c), v = n.get("animation"), g = this._doRender(p, n, h);
v && !f && (!u || u === "treemapZoomToNode" || u === "treemapRootToNode") ? this._doAnimation(p, g, n, h) : g.renderFinally(), this._resetController(i), this._renderBreadcrumb(n, i, l);
}
}, e.prototype._giveContainerGroup = function(n) {
var r = this._containerGroup;
return r || (r = this._containerGroup = new mE(), this._initEvents(r), this.group.add(r)), r.x = n.x, r.y = n.y, r;
}, e.prototype._doRender = function(n, r, i) {
var a = r.getData().tree, o = this._oldTree, s = wv(), l = wv(), u = this._storage, c = [];
function f(y, b, _, O) {
return Vze(r, l, u, i, s, c, y, b, _, O);
}
v(a.root ? [a.root] : [], o && o.root ? [o.root] : [], n, a === o || !o, 0);
var d = g(u);
if (this._oldTree = a, this._storage = l, this._controllerHost) {
var h = this.seriesModel.layoutInfo, p = a.root.getLayout();
p.width === h.width && p.height === h.height && (this._controllerHost.zoom = 1);
}
return {
lastsForAnimation: s,
willDeleteEls: d,
renderFinally: m
};
function v(y, b, _, O, S) {
O ? (b = y, k(y, function(T, w) {
!T.isRemoved() && C(w, w);
})) : new Xs(b, y, x, x).add(C).update(C).remove(Ue(C, null)).execute();
function x(T) {
return T.getId();
}
function C(T, w) {
var P = T != null ? y[T] : null, $ = w != null ? b[w] : null, A = f(P, $, _, S);
A && v(P && P.viewChildren || [], $ && $.viewChildren || [], A, O, S + 1);
}
}
function g(y) {
var b = wv();
return y && k(y, function(_, O) {
var S = b[O];
k(_, function(x) {
x && (S.push(x), RO(x).willDelete = !0);
});
}), b;
}
function m() {
k(d, function(y) {
k(y, function(b) {
b.parent && b.parent.remove(b);
});
}), k(c, function(y) {
y.invisible = !0, y.dirty();
});
}
}, e.prototype._doAnimation = function(n, r, i, a) {
var o = i.get("animationDurationUpdate"), s = i.get("animationEasing"), l = (Me(o) ? 0 : o) || 0, u = (Me(s) ? null : s) || "cubicOut", c = kze();
k(r.willDeleteEls, function(f, d) {
k(f, function(h, p) {
if (!h.invisible) {
var v = h.parent, g, m = RO(v);
if (a && a.direction === "drillDown")
g = v === a.rootNodeGroup ? {
shape: {
x: 0,
y: 0,
width: m.nodeWidth,
height: m.nodeHeight
},
style: {
opacity: 0
}
} : {
style: {
opacity: 0
}
};
else {
var y = 0, b = 0;
m.willDelete || (y = m.nodeWidth / 2, b = m.nodeHeight / 2), g = d === "nodeGroup" ? {
x: y,
y: b,
style: {
opacity: 0
}
} : {
shape: {
x: y,
y: b,
width: 0,
height: 0
},
style: {
opacity: 0
}
};
}
g && c.add(h, g, l, 0, u);
}
});
}), k(this._storage, function(f, d) {
k(f, function(h, p) {
var v = r.lastsForAnimation[d][p], g = {};
v && (h instanceof Ve ? v.oldX != null && (g.x = h.x, g.y = h.y, h.x = v.oldX, h.y = v.oldY) : (v.oldShape && (g.shape = le({}, h.shape), h.setShape(v.oldShape)), v.fadein ? (h.setStyle("opacity", 0), g.style = {
opacity: 1
}) : h.style.opacity !== 1 && (g.style = {
opacity: 1
})), c.add(h, g, l, 0, u));
});
}, this), this._state = "animating", c.finished(xe(function() {
this._state = "ready", r.renderFinally();
}, this)).start();
}, e.prototype._resetController = function(n) {
var r = this._controller, i = this._controllerHost;
i || (this._controllerHost = {
target: this.group
}, i = this._controllerHost), r || (r = this._controller = new J0(n.getZr()), r.enable(this.seriesModel.get("roam")), i.zoomLimit = this.seriesModel.get("scaleLimit"), i.zoom = this.seriesModel.get("zoom"), r.on("pan", xe(this._onPan, this)), r.on("zoom", xe(this._onZoom, this)));
var a = new Je(0, 0, n.getWidth(), n.getHeight());
r.setPointerChecker(function(o, s, l) {
return a.contain(s, l);
});
}, e.prototype._clearController = function() {
var n = this._controller;
this._controllerHost = null, n && (n.dispose(), n = null);
}, e.prototype._onPan = function(n) {
if (this._state !== "animating" && (Math.abs(n.dx) > zF || Math.abs(n.dy) > zF)) {
var r = this.seriesModel.getData().tree.root;
if (!r)
return;
var i = r.getLayout();
if (!i)
return;
this.api.dispatchAction({
type: "treemapMove",
from: this.uid,
seriesId: this.seriesModel.id,
rootRect: {
x: i.x + n.dx,
y: i.y + n.dy,
width: i.width,
height: i.height
}
});
}
}, e.prototype._onZoom = function(n) {
var r = n.originX, i = n.originY, a = n.scale;
if (this._state !== "animating") {
var o = this.seriesModel.getData().tree.root;
if (!o)
return;
var s = o.getLayout();
if (!s)
return;
var l = new Je(s.x, s.y, s.width, s.height), u = null, c = this._controllerHost;
u = c.zoomLimit;
var f = c.zoom = c.zoom || 1;
if (f *= a, u) {
var d = u.min || 0, h = u.max || 1 / 0;
f = Math.max(Math.min(h, f), d);
}
var p = f / c.zoom;
c.zoom = f;
var v = this.seriesModel.layoutInfo;
r -= v.x, i -= v.y;
var g = wi();
so(g, g, [-r, -i]), Bx(g, g, [p, p]), so(g, g, [r, i]), l.applyTransform(g), this.api.dispatchAction({
type: "treemapRender",
from: this.uid,
seriesId: this.seriesModel.id,
rootRect: {
x: l.x,
y: l.y,
width: l.width,
height: l.height
}
});
}
}, e.prototype._initEvents = function(n) {
var r = this;
n.on("click", function(i) {
if (r._state === "ready") {
var a = r.seriesModel.get("nodeClick", !0);
if (a) {
var o = r.findTarget(i.offsetX, i.offsetY);
if (o) {
var s = o.node;
if (s.getLayout().isLeafRoot)
r._rootToNode(o);
else if (a === "zoomToNode")
r._zoomToNode(o);
else if (a === "link") {
var l = s.hostTree.data.getItemModel(s.dataIndex), u = l.get("link", !0), c = l.get("target", !0) || "blank";
u && pO(u, c);
}
}
}
}
}, this);
}, e.prototype._renderBreadcrumb = function(n, r, i) {
var a = this;
i || (i = n.get("leafDepth", !0) != null ? {
node: n.getViewRoot()
} : this.findTarget(r.getWidth() / 2, r.getHeight() / 2), i || (i = {
node: n.getData().tree.root
})), (this._breadcrumb || (this._breadcrumb = new Mze(this.group))).render(n, r, i.node, function(o) {
a._state !== "animating" && (Zk(n.getViewRoot(), o) ? a._rootToNode({
node: o
}) : a._zoomToNode({
node: o
}));
});
}, e.prototype.remove = function() {
this._clearController(), this._containerGroup && this._containerGroup.removeAll(), this._storage = wv(), this._state = "ready", this._breadcrumb && this._breadcrumb.remove();
}, e.prototype.dispose = function() {
this._clearController();
}, e.prototype._zoomToNode = function(n) {
this.api.dispatchAction({
type: "treemapZoomToNode",
from: this.uid,
seriesId: this.seriesModel.id,
targetNode: n.node
});
}, e.prototype._rootToNode = function(n) {
this.api.dispatchAction({
type: "treemapRootToNode",
from: this.uid,
seriesId: this.seriesModel.id,
targetNode: n.node
});
}, e.prototype.findTarget = function(n, r) {
var i, a = this.seriesModel.getViewRoot();
return a.eachNode({
attr: "viewChildren",
order: "preorder"
}, function(o) {
var s = this._storage.background[o.getRawIndex()];
if (s) {
var l = s.transformCoordToLocal(n, r), u = s.shape;
if (u.x <= l[0] && l[0] <= u.x + u.width && u.y <= l[1] && l[1] <= u.y + u.height)
i = {
node: o,
offsetX: l[0],
offsetY: l[1]
};
else
return !1;
}
}, this), i;
}, e.type = "treemap", e;
}(zt)
);
function wv() {
return {
nodeGroup: [],
background: [],
content: []
};
}
function Vze(t, e, n, r, i, a, o, s, l, u) {
if (!o)
return;
var c = o.getLayout(), f = t.getData(), d = o.getModel();
if (f.setItemGraphicEl(o.dataIndex, null), !c || !c.isInView)
return;
var h = c.width, p = c.height, v = c.borderWidth, g = c.invisible, m = o.getRawIndex(), y = s && s.getRawIndex(), b = o.viewChildren, _ = c.upperHeight, O = b && b.length, S = d.getModel("itemStyle"), x = d.getModel(["emphasis", "itemStyle"]), C = d.getModel(["blur", "itemStyle"]), T = d.getModel(["select", "itemStyle"]), w = S.get("borderRadius") || 0, P = ne("nodeGroup", mE);
if (!P)
return;
if (l.add(P), P.x = c.x || 0, P.y = c.y || 0, P.markRedraw(), RO(P).nodeWidth = h, RO(P).nodeHeight = p, c.isAboveViewRoot)
return P;
var $ = ne("background", BF, u, Nze);
$ && B(P, $, O && c.upperLabelHeight);
var A = d.getModel("emphasis"), D = A.get("focus"), E = A.get("blurScope"), R = A.get("disabled"), N = D === "ancestor" ? o.getAncestorsIndices() : D === "descendant" ? o.getDescendantIndices() : D;
if (O)
lu(P) && Lc(P, !1), $ && (Lc($, !R), f.setItemGraphicEl(o.dataIndex, $), kA($, N, E));
else {
var V = ne("content", BF, u, Bze);
V && W(P, V), $.disableMorphing = !0, $ && lu($) && Lc($, !1), Lc(P, !R), f.setItemGraphicEl(o.dataIndex, P), kA(P, N, E);
}
return P;
function B(K, ie, X) {
var H = Fe(ie);
if (H.dataIndex = o.dataIndex, H.seriesIndex = t.seriesIndex, ie.setShape({
x: 0,
y: 0,
width: h,
height: p,
r: w
}), g)
F(ie);
else {
ie.invisible = !1;
var G = o.getVisual("style"), re = G.stroke, fe = WF(S);
fe.fill = re;
var de = pc(x);
de.fill = x.get("borderColor");
var Ee = pc(C);
Ee.fill = C.get("borderColor");
var $e = pc(T);
if ($e.fill = T.get("borderColor"), X) {
var Se = h - 2 * v;
Q(
// PENDING: convert ZRColor to ColorString for text.
ie,
re,
G.opacity,
{
x: v,
y: 0,
width: Se,
height: _
}
);
} else
ie.removeTextContent();
ie.setStyle(fe), ie.ensureState("emphasis").style = de, ie.ensureState("blur").style = Ee, ie.ensureState("select").style = $e, _f(ie);
}
K.add(ie);
}
function W(K, ie) {
var X = Fe(ie);
X.dataIndex = o.dataIndex, X.seriesIndex = t.seriesIndex;
var H = Math.max(h - 2 * v, 0), G = Math.max(p - 2 * v, 0);
if (ie.culling = !0, ie.setShape({
x: v,
y: v,
width: H,
height: G,
r: w
}), g)
F(ie);
else {
ie.invisible = !1;
var re = o.getVisual("style"), fe = re.fill, de = WF(S);
de.fill = fe, de.decal = re.decal;
var Ee = pc(x), $e = pc(C), Se = pc(T);
Q(ie, fe, re.opacity, null), ie.setStyle(de), ie.ensureState("emphasis").style = Ee, ie.ensureState("blur").style = $e, ie.ensureState("select").style = Se, _f(ie);
}
K.add(ie);
}
function F(K) {
!K.invisible && a.push(K);
}
function Q(K, ie, X, H) {
var G = d.getModel(H ? FF : VF), re = Vn(d.get("name"), null), fe = G.getShallow("show");
Pr(K, er(d, H ? FF : VF), {
defaultText: fe ? re : null,
inheritColor: ie,
defaultOpacity: X,
labelFetcher: t,
labelDataIndex: o.dataIndex
});
var de = K.getTextContent();
if (de) {
var Ee = de.style, $e = Lx(Ee.padding || 0);
H && (K.setTextConfig({
layoutRect: H
}), de.disableLabelLayout = !0), de.beforeUpdate = function() {
var be = Math.max((H ? H.width : K.shape.width) - $e[1] - $e[3], 0), he = Math.max((H ? H.height : K.shape.height) - $e[0] - $e[2], 0);
(Ee.width !== be || Ee.height !== he) && de.setStyle({
width: be,
height: he
});
}, Ee.truncateMinChar = 2, Ee.lineOverflow = "truncate", Z(Ee, H, c);
var Se = de.getState("emphasis");
Z(Se ? Se.style : null, H, c);
}
}
function Z(K, ie, X) {
var H = K ? K.text : null;
if (!ie && X.isLeafRoot && H != null) {
var G = t.get("drillDownIcon", !0);
K.text = G ? G + " " + H : H;
}
}
function ne(K, ie, X, H) {
var G = y != null && n[K][y], re = i[K];
return G ? (n[K][y] = null, ee(re, G)) : g || (G = new ie(), G instanceof Da && (G.z2 = Fze(X, H)), oe(re, G)), e[K][m] = G;
}
function ee(K, ie) {
var X = K[m] = {};
ie instanceof mE ? (X.oldX = ie.x, X.oldY = ie.y) : X.oldShape = le({}, ie.shape);
}
function oe(K, ie) {
var X = K[m] = {}, H = o.parentNode, G = ie instanceof Ve;
if (H && (!r || r.direction === "drillDown")) {
var re = 0, fe = 0, de = i.background[H.getRawIndex()];
!r && de && de.oldShape && (re = de.oldShape.width, fe = de.oldShape.height), G ? (X.oldX = 0, X.oldY = fe) : X.oldShape = {
x: re,
y: fe,
width: 0,
height: 0
};
}
X.fadein = !G;
}
}
function Fze(t, e) {
return t * Lze + e;
}
var Fm = k, Wze = Ie, kO = -1, qn = (
/** @class */
function() {
function t(e) {
var n = e.mappingMethod, r = e.type, i = this.option = Le(e);
this.type = r, this.mappingMethod = n, this._normalizeData = Gze[n];
var a = t.visualHandlers[r];
this.applyVisual = a.applyVisual, this.getColorMapper = a.getColorMapper, this._normalizedToVisual = a._normalizedToVisual[n], n === "piecewise" ? (mP(i), Qze(i)) : n === "category" ? i.categories ? Hze(i) : mP(i, !0) : (ke(n !== "linear" || i.dataExtent), mP(i));
}
return t.prototype.mapValueToVisual = function(e) {
var n = this._normalizeData(e);
return this._normalizedToVisual(n, e);
}, t.prototype.getNormalizer = function() {
return xe(this._normalizeData, this);
}, t.listVisualTypes = function() {
return st(t.visualHandlers);
}, t.isValidType = function(e) {
return t.visualHandlers.hasOwnProperty(e);
}, t.eachVisual = function(e, n, r) {
Ie(e) ? k(e, n, r) : n.call(r, e);
}, t.mapVisual = function(e, n, r) {
var i, a = ue(e) ? [] : Ie(e) ? {} : (i = !0, null);
return t.eachVisual(e, function(o, s) {
var l = n.call(r, o, s);
i ? a = l : a[s] = l;
}), a;
}, t.retrieveVisuals = function(e) {
var n = {}, r;
return e && Fm(t.visualHandlers, function(i, a) {
e.hasOwnProperty(a) && (n[a] = e[a], r = !0);
}), r ? n : null;
}, t.prepareVisualTypes = function(e) {
if (ue(e))
e = e.slice();
else if (Wze(e)) {
var n = [];
Fm(e, function(r, i) {
n.push(i);
}), e = n;
} else
return [];
return e.sort(function(r, i) {
return i === "color" && r !== "color" && r.indexOf("color") === 0 ? 1 : -1;
}), e;
}, t.dependsOn = function(e, n) {
return n === "color" ? !!(e && e.indexOf(n) === 0) : e === n;
}, t.findPieceIndex = function(e, n, r) {
for (var i, a = 1 / 0, o = 0, s = n.length; o < s; o++) {
var l = n[o].value;
if (l != null) {
if (l === e || Oe(l) && l === e + "")
return o;
r && d(l, o);
}
}
for (var o = 0, s = n.length; o < s; o++) {
var u = n[o], c = u.interval, f = u.close;
if (c) {
if (c[0] === -1 / 0) {
if ($b(f[1], e, c[1]))
return o;
} else if (c[1] === 1 / 0) {
if ($b(f[0], c[0], e))
return o;
} else if ($b(f[0], c[0], e) && $b(f[1], e, c[1]))
return o;
r && d(c[0], o), r && d(c[1], o);
}
}
if (r)
return e === 1 / 0 ? n.length - 1 : e === -1 / 0 ? 0 : i;
function d(h, p) {
var v = Math.abs(h - e);
v < a && (a = v, i = p);
}
}, t.visualHandlers = {
color: {
applyVisual: Cv("color"),
getColorMapper: function() {
var e = this.option;
return xe(e.mappingMethod === "category" ? function(n, r) {
return !r && (n = this._normalizeData(n)), tg.call(this, n);
} : function(n, r, i) {
var a = !!i;
return !r && (n = this._normalizeData(n)), i = Eg(n, e.parsedVisual, i), a ? i : no(i, "rgba");
}, this);
},
_normalizedToVisual: {
linear: function(e) {
return no(Eg(e, this.option.parsedVisual), "rgba");
},
category: tg,
piecewise: function(e, n) {
var r = bE.call(this, n);
return r == null && (r = no(Eg(e, this.option.parsedVisual), "rgba")), r;
},
fixed: vc
}
},
colorHue: Pb(function(e, n) {
return nh(e, n);
}),
colorSaturation: Pb(function(e, n) {
return nh(e, null, n);
}),
colorLightness: Pb(function(e, n) {
return nh(e, null, null, n);
}),
colorAlpha: Pb(function(e, n) {
return wm(e, n);
}),
decal: {
applyVisual: Cv("decal"),
_normalizedToVisual: {
linear: null,
category: tg,
piecewise: null,
fixed: null
}
},
opacity: {
applyVisual: Cv("opacity"),
_normalizedToVisual: yE([0, 1])
},
liftZ: {
applyVisual: Cv("liftZ"),
_normalizedToVisual: {
linear: vc,
category: vc,
piecewise: vc,
fixed: vc
}
},
symbol: {
applyVisual: function(e, n, r) {
var i = this.mapValueToVisual(e);
r("symbol", i);
},
_normalizedToVisual: {
linear: QF,
category: tg,
piecewise: function(e, n) {
var r = bE.call(this, n);
return r == null && (r = QF.call(this, e)), r;
},
fixed: vc
}
},
symbolSize: {
applyVisual: Cv("symbolSize"),
_normalizedToVisual: yE([0, 1])
}
}, t;
}()
);
function Qze(t) {
var e = t.pieceList;
t.hasSpecialVisual = !1, k(e, function(n, r) {
n.originIndex = r, n.visual != null && (t.hasSpecialVisual = !0);
});
}
function Hze(t) {
var e = t.categories, n = t.categoryMap = {}, r = t.visual;
if (Fm(e, function(o, s) {
n[o] = s;
}), !ue(r)) {
var i = [];
Ie(r) ? Fm(r, function(o, s) {
var l = n[s];
i[l ?? kO] = o;
}) : i[kO] = r, r = wne(t, i);
}
for (var a = e.length - 1; a >= 0; a--)
r[a] == null && (delete n[e[a]], e.pop());
}
function mP(t, e) {
var n = t.visual, r = [];
Ie(n) ? Fm(n, function(a) {
r.push(a);
}) : n != null && r.push(n);
var i = {
color: 1,
symbol: 1
};
!e && r.length === 1 && !i.hasOwnProperty(t.type) && (r[1] = r[0]), wne(t, r);
}
function Pb(t) {
return {
applyVisual: function(e, n, r) {
var i = this.mapValueToVisual(e);
r("color", t(n("color"), i));
},
_normalizedToVisual: yE([0, 1])
};
}
function QF(t) {
var e = this.option.visual;
return e[Math.round(Lt(t, [0, 1], [0, e.length - 1], !0))] || {};
}
function Cv(t) {
return function(e, n, r) {
r(t, this.mapValueToVisual(e));
};
}
function tg(t) {
var e = this.option.visual;
return e[this.option.loop && t !== kO ? t % e.length : t];
}
function vc() {
return this.option.visual[0];
}
function yE(t) {
return {
linear: function(e) {
return Lt(e, t, this.option.visual, !0);
},
category: tg,
piecewise: function(e, n) {
var r = bE.call(this, n);
return r == null && (r = Lt(e, t, this.option.visual, !0)), r;
},
fixed: vc
};
}
function bE(t) {
var e = this.option, n = e.pieceList;
if (e.hasSpecialVisual) {
var r = qn.findPieceIndex(t, n), i = n[r];
if (i && i.visual)
return i.visual[this.type];
}
}
function wne(t, e) {
return t.visual = e, t.type === "color" && (t.parsedVisual = ce(e, function(n) {
var r = Kr(n);
return !r && process.env.NODE_ENV !== "production" && dn("'" + n + "' is an illegal color, fallback to '#000000'", !0), r || [0, 0, 0, 1];
})), e;
}
var Gze = {
linear: function(t) {
return Lt(t, this.option.dataExtent, [0, 1], !0);
},
piecewise: function(t) {
var e = this.option.pieceList, n = qn.findPieceIndex(t, e, !0);
if (n != null)
return Lt(n, [0, e.length - 1], [0, 1], !0);
},
category: function(t) {
var e = this.option.categories ? this.option.categoryMap[t] : t;
return e ?? kO;
},
fixed: On
};
function $b(t, e, n) {
return t ? e <= n : e < n;
}
var jze = "itemStyle", Cne = bt();
const Zze = {
seriesType: "treemap",
reset: function(t) {
var e = t.getData().tree, n = e.root;
n.isRemoved() || Tne(
n,
// Visual should calculate from tree root but not view root.
{},
t.getViewRoot().getAncestors(),
t
);
}
};
function Tne(t, e, n, r) {
var i = t.getModel(), a = t.getLayout(), o = t.hostTree.data;
if (!(!a || a.invisible || !a.isInView)) {
var s = i.getModel(jze), l = Uze(s, e, r), u = o.ensureUniqueItemVisual(t.dataIndex, "style"), c = s.get("borderColor"), f = s.get("borderColorSaturation"), d;
f != null && (d = HF(l), c = Xze(f, d)), u.stroke = c;
var h = t.viewChildren;
if (!h || !h.length)
d = HF(l), u.fill = d;
else {
var p = Yze(t, i, a, s, l, h);
k(h, function(v, g) {
if (v.depth >= n.length || v === n[v.depth]) {
var m = qze(i, l, v, g, p, r);
Tne(v, m, n, r);
}
});
}
}
}
function Uze(t, e, n) {
var r = le({}, e), i = n.designatedVisualItemStyle;
return k(["color", "colorAlpha", "colorSaturation"], function(a) {
i[a] = e[a];
var o = t.get(a);
i[a] = null, o != null && (r[a] = o);
}), r;
}
function HF(t) {
var e = yP(t, "color");
if (e) {
var n = yP(t, "colorAlpha"), r = yP(t, "colorSaturation");
return r && (e = nh(e, null, null, r)), n && (e = wm(e, n)), e;
}
}
function Xze(t, e) {
return e != null ? nh(e, null, null, t) : null;
}
function yP(t, e) {
var n = t[e];
if (n != null && n !== "none")
return n;
}
function Yze(t, e, n, r, i, a) {
if (!(!a || !a.length)) {
var o = bP(e, "color") || i.color != null && i.color !== "none" && (bP(e, "colorAlpha") || bP(e, "colorSaturation"));
if (o) {
var s = e.get("visualMin"), l = e.get("visualMax"), u = n.dataExtent.slice();
s != null && s < u[0] && (u[0] = s), l != null && l > u[1] && (u[1] = l);
var c = e.get("colorMappingBy"), f = {
type: o.name,
dataExtent: u,
visual: o.range
};
f.type === "color" && (c === "index" || c === "id") ? (f.mappingMethod = "category", f.loop = !0) : f.mappingMethod = "linear";
var d = new qn(f);
return Cne(d).drColorMappingBy = c, d;
}
}
}
function bP(t, e) {
var n = t.get(e);
return ue(n) && n.length ? {
name: e,
range: n
} : null;
}
function qze(t, e, n, r, i, a) {
var o = le({}, e);
if (i) {
var s = i.type, l = s === "color" && Cne(i).drColorMappingBy, u = l === "index" ? r : l === "id" ? a.mapIdToIndex(n.getId()) : n.getValue(t.get("visualDimension"));
o[s] = i.mapValueToVisual(u);
}
return o;
}
var Wm = Math.max, LO = Math.min, GF = Tn, Uk = k, Pne = ["itemStyle", "borderWidth"], Kze = ["itemStyle", "gapWidth"], Jze = ["upperLabel", "show"], eVe = ["upperLabel", "height"];
const tVe = {
seriesType: "treemap",
reset: function(t, e, n, r) {
var i = n.getWidth(), a = n.getHeight(), o = t.option, s = Rn(t.getBoxLayoutParams(), {
width: n.getWidth(),
height: n.getHeight()
}), l = o.size || [], u = _e(GF(s.width, l[0]), i), c = _e(GF(s.height, l[1]), a), f = r && r.type, d = ["treemapZoomToNode", "treemapRootToNode"], h = Vm(r, d, t), p = f === "treemapRender" || f === "treemapMove" ? r.rootRect : null, v = t.getViewRoot(), g = One(v);
if (f !== "treemapMove") {
var m = f === "treemapZoomToNode" ? sVe(t, h, v, u, c) : p ? [p.width, p.height] : [u, c], y = o.sort;
y && y !== "asc" && y !== "desc" && (y = "desc");
var b = {
squareRatio: o.squareRatio,
sort: y,
leafDepth: o.leafDepth
};
v.hostTree.clearLayouts();
var _ = {
x: 0,
y: 0,
width: m[0],
height: m[1],
area: m[0] * m[1]
};
v.setLayout(_), $ne(v, b, !1, 0), _ = v.getLayout(), Uk(g, function(S, x) {
var C = (g[x + 1] || v).getValue();
S.setLayout(le({
dataExtent: [C, C],
borderWidth: 0,
upperHeight: 0
}, _));
});
}
var O = t.getData().tree.root;
O.setLayout(lVe(s, p, h), !0), t.setLayoutInfo(s), Ane(
O,
// Transform to base element coordinate system.
new Je(-s.x, -s.y, i, a),
g,
v,
0
);
}
};
function $ne(t, e, n, r) {
var i, a;
if (!t.isRemoved()) {
var o = t.getLayout();
i = o.width, a = o.height;
var s = t.getModel(), l = s.get(Pne), u = s.get(Kze) / 2, c = Ene(s), f = Math.max(l, c), d = l - u, h = f - u;
t.setLayout({
borderWidth: l,
upperHeight: f,
upperLabelHeight: c
}, !0), i = Wm(i - 2 * d, 0), a = Wm(a - d - h, 0);
var p = i * a, v = nVe(t, s, p, e, n, r);
if (v.length) {
var g = {
x: d,
y: h,
width: i,
height: a
}, m = LO(i, a), y = 1 / 0, b = [];
b.area = 0;
for (var _ = 0, O = v.length; _ < O; ) {
var S = v[_];
b.push(S), b.area += S.getLayout().area;
var x = oVe(b, m, e.squareRatio);
x <= y ? (_++, y = x) : (b.area -= b.pop().getLayout().area, jF(b, m, g, u, !1), m = LO(g.width, g.height), b.length = b.area = 0, y = 1 / 0);
}
if (b.length && jF(b, m, g, u, !0), !n) {
var C = s.get("childrenVisibleMin");
C != null && p < C && (n = !0);
}
for (var _ = 0, O = v.length; _ < O; _++)
$ne(v[_], e, n, r + 1);
}
}
}
function nVe(t, e, n, r, i, a) {
var o = t.children || [], s = r.sort;
s !== "asc" && s !== "desc" && (s = null);
var l = r.leafDepth != null && r.leafDepth <= a;
if (i && !l)
return t.viewChildren = [];
o = Nt(o, function(h) {
return !h.isRemoved();
}), iVe(o, s);
var u = aVe(e, o, s);
if (u.sum === 0)
return t.viewChildren = [];
if (u.sum = rVe(e, n, u.sum, s, o), u.sum === 0)
return t.viewChildren = [];
for (var c = 0, f = o.length; c < f; c++) {
var d = o[c].getValue() / u.sum * n;
o[c].setLayout({
area: d
});
}
return l && (o.length && t.setLayout({
isLeafRoot: !0
}, !0), o.length = 0), t.viewChildren = o, t.setLayout({
dataExtent: u.dataExtent
}, !0), o;
}
function rVe(t, e, n, r, i) {
if (!r)
return n;
for (var a = t.get("visibleMin"), o = i.length, s = o, l = o - 1; l >= 0; l--) {
var u = i[r === "asc" ? o - l - 1 : l].getValue();
u / n * e < a && (s = l, n -= u);
}
return r === "asc" ? i.splice(0, o - s) : i.splice(s, o - s), n;
}
function iVe(t, e) {
return e && t.sort(function(n, r) {
var i = e === "asc" ? n.getValue() - r.getValue() : r.getValue() - n.getValue();
return i === 0 ? e === "asc" ? n.dataIndex - r.dataIndex : r.dataIndex - n.dataIndex : i;
}), t;
}
function aVe(t, e, n) {
for (var r = 0, i = 0, a = e.length; i < a; i++)
r += e[i].getValue();
var o = t.get("visualDimension"), s;
return !e || !e.length ? s = [NaN, NaN] : o === "value" && n ? (s = [e[e.length - 1].getValue(), e[0].getValue()], n === "asc" && s.reverse()) : (s = [1 / 0, -1 / 0], Uk(e, function(l) {
var u = l.getValue(o);
u < s[0] && (s[0] = u), u > s[1] && (s[1] = u);
})), {
sum: r,
dataExtent: s
};
}
function oVe(t, e, n) {
for (var r = 0, i = 1 / 0, a = 0, o = void 0, s = t.length; a < s; a++)
o = t[a].getLayout().area, o && (o < i && (i = o), o > r && (r = o));
var l = t.area * t.area, u = e * e * n;
return l ? Wm(u * r / l, l / (u * i)) : 1 / 0;
}
function jF(t, e, n, r, i) {
var a = e === n.width ? 0 : 1, o = 1 - a, s = ["x", "y"], l = ["width", "height"], u = n[s[a]], c = e ? t.area / e : 0;
(i || c > n[l[o]]) && (c = n[l[o]]);
for (var f = 0, d = t.length; f < d; f++) {
var h = t[f], p = {}, v = c ? h.getLayout().area / c : 0, g = p[l[o]] = Wm(c - 2 * r, 0), m = n[s[a]] + n[l[a]] - u, y = f === d - 1 || m < v ? m : v, b = p[l[a]] = Wm(y - 2 * r, 0);
p[s[o]] = n[s[o]] + LO(r, g / 2), p[s[a]] = u + LO(r, b / 2), u += y, h.setLayout(p, !0);
}
n[s[o]] += c, n[l[o]] -= c;
}
function sVe(t, e, n, r, i) {
var a = (e || {}).node, o = [r, i];
if (!a || a === n)
return o;
for (var s, l = r * i, u = l * t.option.zoomToNodeRatio; s = a.parentNode; ) {
for (var c = 0, f = s.children, d = 0, h = f.length; d < h; d++)
c += f[d].getValue();
var p = a.getValue();
if (p === 0)
return o;
u *= c / p;
var v = s.getModel(), g = v.get(Pne), m = Math.max(g, Ene(v));
u += 4 * g * g + (3 * g + m) * Math.pow(u, 0.5), u > TA && (u = TA), a = s;
}
u < l && (u = l);
var y = Math.pow(u / l, 0.5);
return [r * y, i * y];
}
function lVe(t, e, n) {
if (e)
return {
x: e.x,
y: e.y
};
var r = {
x: 0,
y: 0
};
if (!n)
return r;
var i = n.node, a = i.getLayout();
if (!a)
return r;
for (var o = [a.width / 2, a.height / 2], s = i; s; ) {
var l = s.getLayout();
o[0] += l.x, o[1] += l.y, s = s.parentNode;
}
return {
x: t.width / 2 - o[0],
y: t.height / 2 - o[1]
};
}
function Ane(t, e, n, r, i) {
var a = t.getLayout(), o = n[i], s = o && o === t;
if (!(o && !s || i === n.length && t !== r)) {
t.setLayout({
// isInView means: viewRoot sub tree + viewAbovePath
isInView: !0,
// invisible only means: outside view clip so that the node can not
// see but still layout for animation preparation but not render.
invisible: !s && !e.intersect(a),
isAboveViewRoot: s
}, !0);
var l = new Je(e.x - a.x, e.y - a.y, e.width, e.height);
Uk(t.viewChildren || [], function(u) {
Ane(u, l, n, r, i + 1);
});
}
}
function Ene(t) {
return t.get(Jze) ? t.get(eVe) : 0;
}
function uVe(t) {
t.registerSeriesModel($ze), t.registerChartView(zze), t.registerVisual(Zze), t.registerLayout(tVe), Pze(t);
}
function cVe(t) {
var e = t.findComponents({
mainType: "legend"
});
!e || !e.length || t.eachSeriesByType("graph", function(n) {
var r = n.getCategoriesData(), i = n.getGraph(), a = i.data, o = r.mapArray(r.getName);
a.filterSelf(function(s) {
var l = a.getItemModel(s), u = l.getShallow("category");
if (u != null) {
St(u) && (u = o[u]);
for (var c = 0; c < e.length; c++)
if (!e[c].isSelected(u))
return !1;
}
return !0;
});
});
}
function fVe(t) {
var e = {};
t.eachSeriesByType("graph", function(n) {
var r = n.getCategoriesData(), i = n.getData(), a = {};
r.each(function(o) {
var s = r.getName(o);
a["ec-" + s] = o;
var l = r.getItemModel(o), u = l.getModel("itemStyle").getItemStyle();
u.fill || (u.fill = n.getColorFromPalette(s, e)), r.setItemVisual(o, "style", u);
for (var c = ["symbol", "symbolSize", "symbolKeepAspect"], f = 0; f < c.length; f++) {
var d = l.getShallow(c[f], !0);
d != null && r.setItemVisual(o, c[f], d);
}
}), r.count() && i.each(function(o) {
var s = i.getItemModel(o), l = s.getShallow("category");
if (l != null) {
Oe(l) && (l = a["ec-" + l]);
var u = r.getItemVisual(l, "style"), c = i.ensureUniqueItemVisual(o, "style");
le(c, u);
for (var f = ["symbol", "symbolSize", "symbolKeepAspect"], d = 0; d < f.length; d++)
i.setItemVisual(o, f[d], r.getItemVisual(l, f[d]));
}
});
});
}
function Ab(t) {
return t instanceof Array || (t = [t, t]), t;
}
function dVe(t) {
t.eachSeriesByType("graph", function(e) {
var n = e.getGraph(), r = e.getEdgeData(), i = Ab(e.get("edgeSymbol")), a = Ab(e.get("edgeSymbolSize"));
r.setVisual("fromSymbol", i && i[0]), r.setVisual("toSymbol", i && i[1]), r.setVisual("fromSymbolSize", a && a[0]), r.setVisual("toSymbolSize", a && a[1]), r.setVisual("style", e.getModel("lineStyle").getLineStyle()), r.each(function(o) {
var s = r.getItemModel(o), l = n.getEdgeByIndex(o), u = Ab(s.getShallow("symbol", !0)), c = Ab(s.getShallow("symbolSize", !0)), f = s.getModel("lineStyle").getLineStyle(), d = r.ensureUniqueItemVisual(o, "style");
switch (le(d, f), d.stroke) {
case "source": {
var h = l.node1.getVisual("style");
d.stroke = h && h.fill;
break;
}
case "target": {
var h = l.node2.getVisual("style");
d.stroke = h && h.fill;
break;
}
}
u[0] && l.setVisual("fromSymbol", u[0]), u[1] && l.setVisual("toSymbol", u[1]), c[0] && l.setVisual("fromSymbolSize", c[0]), c[1] && l.setVisual("toSymbolSize", c[1]);
});
});
}
var _E = "-->", Ow = function(t) {
return t.get("autoCurveness") || null;
}, Mne = function(t, e) {
var n = Ow(t), r = 20, i = [];
if (St(n))
r = n;
else if (ue(n)) {
t.__curvenessList = n;
return;
}
e > r && (r = e);
var a = r % 2 ? r + 2 : r + 3;
i = [];
for (var o = 0; o < a; o++)
i.push((o % 2 ? o + 1 : o) / 10 * (o % 2 ? -1 : 1));
t.__curvenessList = i;
}, Qm = function(t, e, n) {
var r = [t.id, t.dataIndex].join("."), i = [e.id, e.dataIndex].join(".");
return [n.uid, r, i].join(_E);
}, Ine = function(t) {
var e = t.split(_E);
return [e[0], e[2], e[1]].join(_E);
}, hVe = function(t, e) {
var n = Qm(t.node1, t.node2, e);
return e.__edgeMap[n];
}, pVe = function(t, e) {
var n = OE(Qm(t.node1, t.node2, e), e), r = OE(Qm(t.node2, t.node1, e), e);
return n + r;
}, OE = function(t, e) {
var n = e.__edgeMap;
return n[t] ? n[t].length : 0;
};
function vVe(t) {
Ow(t) && (t.__curvenessList = [], t.__edgeMap = {}, Mne(t));
}
function gVe(t, e, n, r) {
if (Ow(n)) {
var i = Qm(t, e, n), a = n.__edgeMap, o = a[Ine(i)];
a[i] && !o ? a[i].isForward = !0 : o && a[i] && (o.isForward = !0, a[i].isForward = !1), a[i] = a[i] || [], a[i].push(r);
}
}
function Xk(t, e, n, r) {
var i = Ow(e), a = ue(i);
if (!i)
return null;
var o = hVe(t, e);
if (!o)
return null;
for (var s = -1, l = 0; l < o.length; l++)
if (o[l] === n) {
s = l;
break;
}
var u = pVe(t, e);
Mne(e, u), t.lineStyle = t.lineStyle || {};
var c = Qm(t.node1, t.node2, e), f = e.__curvenessList, d = a || u % 2 ? 0 : 1;
if (o.isForward)
return f[d + s];
var h = Ine(c), p = OE(h, e), v = f[s + p + d];
return r ? a ? i && i[0] === 0 ? (p + d) % 2 ? v : -v : ((p % 2 ? 0 : 1) + d) % 2 ? v : -v : (p + d) % 2 ? v : -v : f[s + p + d];
}
function Dne(t) {
var e = t.coordinateSystem;
if (!(e && e.type !== "view")) {
var n = t.getGraph();
n.eachNode(function(r) {
var i = r.getModel();
r.setLayout([+i.get("x"), +i.get("y")]);
}), Yk(n, t);
}
}
function Yk(t, e) {
t.eachEdge(function(n, r) {
var i = Ui(n.getModel().get(["lineStyle", "curveness"]), -Xk(n, e, r, !0), 0), a = Uo(n.node1.getLayout()), o = Uo(n.node2.getLayout()), s = [a, o];
+i && s.push([(a[0] + o[0]) / 2 - (a[1] - o[1]) * i, (a[1] + o[1]) / 2 - (o[0] - a[0]) * i]), n.setLayout(s);
});
}
function mVe(t, e) {
t.eachSeriesByType("graph", function(n) {
var r = n.get("layout"), i = n.coordinateSystem;
if (i && i.type !== "view") {
var a = n.getData(), o = [];
k(i.dimensions, function(d) {
o = o.concat(a.mapDimensionsAll(d));
});
for (var s = 0; s < a.count(); s++) {
for (var l = [], u = !1, c = 0; c < o.length; c++) {
var f = a.get(o[c], s);
isNaN(f) || (u = !0), l.push(f);
}
u ? a.setItemLayout(s, i.dataToPoint(l)) : a.setItemLayout(s, [NaN, NaN]);
}
Yk(a.graph, n);
} else (!r || r === "none") && Dne(n);
});
}
function ng(t) {
var e = t.coordinateSystem;
if (e.type !== "view")
return 1;
var n = t.option.nodeScaleRatio, r = e.scaleX, i = e.getZoom(), a = (i - 1) * n + 1;
return a / r;
}
function rg(t) {
var e = t.getVisual("symbolSize");
return e instanceof Array && (e = (e[0] + e[1]) / 2), +e;
}
var ZF = Math.PI, _P = [];
function qk(t, e, n, r) {
var i = t.coordinateSystem;
if (!(i && i.type !== "view")) {
var a = i.getBoundingRect(), o = t.getData(), s = o.graph, l = a.width / 2 + a.x, u = a.height / 2 + a.y, c = Math.min(a.width, a.height) / 2, f = o.count();
if (o.setLayout({
cx: l,
cy: u
}), !!f) {
if (n) {
var d = i.pointToData(r), h = d[0], p = d[1], v = [h - l, p - u];
kf(v, v), Pg(v, v, c), n.setLayout([l + v[0], u + v[1]], !0);
var g = t.get(["circular", "rotateLabel"]);
Rne(n, g, l, u);
}
yVe[e](t, s, o, c, l, u, f), s.eachEdge(function(m, y) {
var b = Ui(m.getModel().get(["lineStyle", "curveness"]), Xk(m, t, y), 0), _ = Uo(m.node1.getLayout()), O = Uo(m.node2.getLayout()), S, x = (_[0] + O[0]) / 2, C = (_[1] + O[1]) / 2;
+b && (b *= 3, S = [l * b + x * (1 - b), u * b + C * (1 - b)]), m.setLayout([_, O, S]);
});
}
}
}
var yVe = {
value: function(t, e, n, r, i, a, o) {
var s = 0, l = n.getSum("value"), u = Math.PI * 2 / (l || o);
e.eachNode(function(c) {
var f = c.getValue("value"), d = u * (l ? f : 1) / 2;
s += d, c.setLayout([r * Math.cos(s) + i, r * Math.sin(s) + a]), s += d;
});
},
symbolSize: function(t, e, n, r, i, a, o) {
var s = 0;
_P.length = o;
var l = ng(t);
e.eachNode(function(f) {
var d = rg(f);
isNaN(d) && (d = 2), d < 0 && (d = 0), d *= l;
var h = Math.asin(d / 2 / r);
isNaN(h) && (h = ZF / 2), _P[f.dataIndex] = h, s += h * 2;
});
var u = (2 * ZF - s) / o / 2, c = 0;
e.eachNode(function(f) {
var d = u + _P[f.dataIndex];
c += d, (!f.getLayout() || !f.getLayout().fixed) && f.setLayout([r * Math.cos(c) + i, r * Math.sin(c) + a]), c += d;
});
}
};
function Rne(t, e, n, r) {
var i = t.getGraphicEl();
if (i) {
var a = t.getModel(), o = a.get(["label", "rotate"]) || 0, s = i.getSymbolPath();
if (e) {
var l = t.getLayout(), u = Math.atan2(l[1] - r, l[0] - n);
u < 0 && (u = Math.PI * 2 + u);
var c = l[0] < n;
c && (u = u - Math.PI);
var f = c ? "left" : "right";
s.setTextConfig({
rotation: -u,
position: f,
origin: "center"
});
var d = s.ensureState("emphasis");
le(d.textConfig || (d.textConfig = {}), {
position: f
});
} else
s.setTextConfig({
rotation: o *= Math.PI / 180
});
}
}
function bVe(t) {
t.eachSeriesByType("graph", function(e) {
e.get("layout") === "circular" && qk(e, "symbolSize");
});
}
var vd = Y1;
function _Ve(t, e, n) {
for (var r = t, i = e, a = n.rect, o = a.width, s = a.height, l = [a.x + o / 2, a.y + s / 2], u = n.gravity == null ? 0.1 : n.gravity, c = 0; c < r.length; c++) {
var f = r[c];
f.p || (f.p = wu(o * (Math.random() - 0.5) + l[0], s * (Math.random() - 0.5) + l[1])), f.pp = Uo(f.p), f.edges = null;
}
var d = n.friction == null ? 0.6 : n.friction, h = d, p, v;
return {
warmUp: function() {
h = d * 0.8;
},
setFixed: function(g) {
r[g].fixed = !0;
},
setUnfixed: function(g) {
r[g].fixed = !1;
},
/**
* Before step hook
*/
beforeStep: function(g) {
p = g;
},
/**
* After step hook
*/
afterStep: function(g) {
v = g;
},
/**
* Some formulas were originally copied from "d3.js"
* https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js
* with some modifications made for this project.
* See the license statement at the head of this file.
*/
step: function(g) {
p && p(r, i);
for (var m = [], y = r.length, b = 0; b < i.length; b++) {
var _ = i[b];
if (!_.ignoreForceLayout) {
var O = _.n1, S = _.n2;
kl(m, S.p, O.p);
var x = Om(m) - _.d, C = S.w / (O.w + S.w);
isNaN(C) && (C = 0), kf(m, m), !O.fixed && vd(O.p, O.p, m, C * x * h), !S.fixed && vd(S.p, S.p, m, -(1 - C) * x * h);
}
}
for (var b = 0; b < y; b++) {
var T = r[b];
T.fixed || (kl(m, l, T.p), vd(T.p, T.p, m, u * h));
}
for (var b = 0; b < y; b++)
for (var O = r[b], w = b + 1; w < y; w++) {
var S = r[w];
kl(m, S.p, O.p);
var x = Om(m);
x === 0 && (Eq(m, Math.random() - 0.5, Math.random() - 0.5), x = 1);
var P = (O.rep + S.rep) / x / x;
!O.fixed && vd(O.pp, O.pp, m, P), !S.fixed && vd(S.pp, S.pp, m, -P);
}
for (var $ = [], b = 0; b < y; b++) {
var T = r[b];
T.fixed || (kl($, T.p, T.pp), vd(T.p, T.p, $, h), Ir(T.pp, T.p));
}
h = h * 0.992;
var A = h < 0.01;
v && v(r, i, A), g && g(A);
}
};
}
function OVe(t) {
t.eachSeriesByType("graph", function(e) {
var n = e.coordinateSystem;
if (!(n && n.type !== "view"))
if (e.get("layout") === "force") {
var r = e.preservedPoints || {}, i = e.getGraph(), a = i.data, o = i.edgeData, s = e.getModel("force"), l = s.get("initLayout");
e.preservedPoints ? a.each(function(b) {
var _ = a.getId(b);
a.setItemLayout(b, r[_] || [NaN, NaN]);
}) : !l || l === "none" ? Dne(e) : l === "circular" && qk(e, "value");
var u = a.getDataExtent("value"), c = o.getDataExtent("value"), f = s.get("repulsion"), d = s.get("edgeLength"), h = ue(f) ? f : [f, f], p = ue(d) ? d : [d, d];
p = [p[1], p[0]];
var v = a.mapArray("value", function(b, _) {
var O = a.getItemLayout(_), S = Lt(b, u, h);
return isNaN(S) && (S = (h[0] + h[1]) / 2), {
w: S,
rep: S,
fixed: a.getItemModel(_).get("fixed"),
p: !O || isNaN(O[0]) || isNaN(O[1]) ? null : O
};
}), g = o.mapArray("value", function(b, _) {
var O = i.getEdgeByIndex(_), S = Lt(b, c, p);
isNaN(S) && (S = (p[0] + p[1]) / 2);
var x = O.getModel(), C = Ui(O.getModel().get(["lineStyle", "curveness"]), -Xk(O, e, _, !0), 0);
return {
n1: v[O.node1.dataIndex],
n2: v[O.node2.dataIndex],
d: S,
curveness: C,
ignoreForceLayout: x.get("ignoreForceLayout")
};
}), m = n.getBoundingRect(), y = _Ve(v, g, {
rect: m,
gravity: s.get("gravity"),
friction: s.get("friction")
});
y.beforeStep(function(b, _) {
for (var O = 0, S = b.length; O < S; O++)
b[O].fixed && Ir(b[O].p, i.getNodeByIndex(O).getLayout());
}), y.afterStep(function(b, _, O) {
for (var S = 0, x = b.length; S < x; S++)
b[S].fixed || i.getNodeByIndex(S).setLayout(b[S].p), r[a.getId(S)] = b[S].p;
for (var S = 0, x = _.length; S < x; S++) {
var C = _[S], T = i.getEdgeByIndex(S), w = C.n1.p, P = C.n2.p, $ = T.getLayout();
$ = $ ? $.slice() : [], $[0] = $[0] || [], $[1] = $[1] || [], Ir($[0], w), Ir($[1], P), +C.curveness && ($[2] = [(w[0] + P[0]) / 2 - (w[1] - P[1]) * C.curveness, (w[1] + P[1]) / 2 - (P[0] - w[0]) * C.curveness]), T.setLayout($);
}
}), e.forceLayout = y, e.preservedPoints = r, y.step();
} else
e.forceLayout = null;
});
}
function SVe(t, e, n) {
var r = le(t.getBoxLayoutParams(), {
aspect: n
});
return Rn(r, {
width: e.getWidth(),
height: e.getHeight()
});
}
function xVe(t, e) {
var n = [];
return t.eachSeriesByType("graph", function(r) {
var i = r.get("coordinateSystem");
if (!i || i === "view") {
var a = r.getData(), o = a.mapArray(function(g) {
var m = a.getItemModel(g);
return [+m.get("x"), +m.get("y")];
}), s = [], l = [];
Zx(o, s, l), l[0] - s[0] === 0 && (l[0] += 1, s[0] -= 1), l[1] - s[1] === 0 && (l[1] += 1, s[1] -= 1);
var u = (l[0] - s[0]) / (l[1] - s[1]), c = SVe(r, e, u);
isNaN(u) && (s = [c.x, c.y], l = [c.x + c.width, c.y + c.height]);
var f = l[0] - s[0], d = l[1] - s[1], h = c.width, p = c.height, v = r.coordinateSystem = new ey();
v.zoomLimit = r.get("scaleLimit"), v.setBoundingRect(s[0], s[1], f, d), v.setViewRect(c.x, c.y, h, p), v.setCenter(r.get("center"), e), v.setZoom(r.get("zoom")), n.push(v);
}
}), n;
}
var UF = Un.prototype, OP = F0.prototype, kne = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
}
return t;
}()
);
(function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e;
})(kne);
function SP(t) {
return isNaN(+t.cpx1) || isNaN(+t.cpy1);
}
var wVe = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "ec-line", r;
}
return e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new kne();
}, e.prototype.buildPath = function(n, r) {
SP(r) ? UF.buildPath.call(this, n, r) : OP.buildPath.call(this, n, r);
}, e.prototype.pointAt = function(n) {
return SP(this.shape) ? UF.pointAt.call(this, n) : OP.pointAt.call(this, n);
}, e.prototype.tangentAt = function(n) {
var r = this.shape, i = SP(r) ? [r.x2 - r.x1, r.y2 - r.y1] : OP.tangentAt.call(this, n);
return kf(i, i);
}, e;
}(ot)
), xP = ["fromSymbol", "toSymbol"];
function XF(t) {
return "_" + t + "Type";
}
function YF(t, e, n) {
var r = e.getItemVisual(n, t);
if (!r || r === "none")
return r;
var i = e.getItemVisual(n, t + "Size"), a = e.getItemVisual(n, t + "Rotate"), o = e.getItemVisual(n, t + "Offset"), s = e.getItemVisual(n, t + "KeepAspect"), l = $p(i), u = Ff(o || 0, l);
return r + l + u + (a || "") + (s || "");
}
function qF(t, e, n) {
var r = e.getItemVisual(n, t);
if (!(!r || r === "none")) {
var i = e.getItemVisual(n, t + "Size"), a = e.getItemVisual(n, t + "Rotate"), o = e.getItemVisual(n, t + "Offset"), s = e.getItemVisual(n, t + "KeepAspect"), l = $p(i), u = Ff(o || 0, l), c = $n(r, -l[0] / 2 + u[0], -l[1] / 2 + u[1], l[0], l[1], null, s);
return c.__specifiedRotation = a == null || isNaN(a) ? void 0 : +a * Math.PI / 180 || 0, c.name = t, c;
}
}
function CVe(t) {
var e = new wVe({
name: "line",
subPixelOptimize: !0
});
return SE(e.shape, t), e;
}
function SE(t, e) {
t.x1 = e[0][0], t.y1 = e[0][1], t.x2 = e[1][0], t.y2 = e[1][1], t.percent = 1;
var n = e[2];
n ? (t.cpx1 = n[0], t.cpy1 = n[1]) : (t.cpx1 = NaN, t.cpy1 = NaN);
}
var Kk = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this) || this;
return a._createLine(n, r, i), a;
}
return e.prototype._createLine = function(n, r, i) {
var a = n.hostModel, o = n.getItemLayout(r), s = CVe(o);
s.shape.percent = 0, Yt(s, {
shape: {
percent: 1
}
}, a, r), this.add(s), k(xP, function(l) {
var u = qF(l, n, r);
this.add(u), this[XF(l)] = YF(l, n, r);
}, this), this._updateCommonStl(n, r, i);
}, e.prototype.updateData = function(n, r, i) {
var a = n.hostModel, o = this.childOfName("line"), s = n.getItemLayout(r), l = {
shape: {}
};
SE(l.shape, s), Ct(o, l, a, r), k(xP, function(u) {
var c = YF(u, n, r), f = XF(u);
if (this[f] !== c) {
this.remove(this.childOfName(u));
var d = qF(u, n, r);
this.add(d);
}
this[f] = c;
}, this), this._updateCommonStl(n, r, i);
}, e.prototype.getLinePath = function() {
return this.childAt(0);
}, e.prototype._updateCommonStl = function(n, r, i) {
var a = n.hostModel, o = this.childOfName("line"), s = i && i.emphasisLineStyle, l = i && i.blurLineStyle, u = i && i.selectLineStyle, c = i && i.labelStatesModels, f = i && i.emphasisDisabled, d = i && i.focus, h = i && i.blurScope;
if (!i || n.hasItemOption) {
var p = n.getItemModel(r), v = p.getModel("emphasis");
s = v.getModel("lineStyle").getLineStyle(), l = p.getModel(["blur", "lineStyle"]).getLineStyle(), u = p.getModel(["select", "lineStyle"]).getLineStyle(), f = v.get("disabled"), d = v.get("focus"), h = v.get("blurScope"), c = er(p);
}
var g = n.getItemVisual(r, "style"), m = g.stroke;
o.useStyle(g), o.style.fill = null, o.style.strokeNoScale = !0, o.ensureState("emphasis").style = s, o.ensureState("blur").style = l, o.ensureState("select").style = u, k(xP, function(S) {
var x = this.childOfName(S);
if (x) {
x.setColor(m), x.style.opacity = g.opacity;
for (var C = 0; C < ri.length; C++) {
var T = ri[C], w = o.getState(T);
if (w) {
var P = w.style || {}, $ = x.ensureState(T), A = $.style || ($.style = {});
P.stroke != null && (A[x.__isEmptyBrush ? "stroke" : "fill"] = P.stroke), P.opacity != null && (A.opacity = P.opacity);
}
}
x.markRedraw();
}
}, this);
var y = a.getRawValue(r);
Pr(this, c, {
labelDataIndex: r,
labelFetcher: {
getFormattedLabel: function(S, x) {
return a.getFormattedLabel(S, x, n.dataType);
}
},
inheritColor: m || "#000",
defaultOpacity: g.opacity,
defaultText: (y == null ? n.getName(r) : isFinite(y) ? mn(y) : y) + ""
});
var b = this.getTextContent();
if (b) {
var _ = c.normal;
b.__align = b.style.align, b.__verticalAlign = b.style.verticalAlign, b.__position = _.get("position") || "middle";
var O = _.get("distance");
ue(O) || (O = [O, O]), b.__labelDistance = O;
}
this.setTextConfig({
position: null,
local: !0,
inside: !1
// Can't be inside for stroke element.
}), bn(this, d, h, f);
}, e.prototype.highlight = function() {
Zs(this);
}, e.prototype.downplay = function() {
Us(this);
}, e.prototype.updateLayout = function(n, r) {
this.setLinePoints(n.getItemLayout(r));
}, e.prototype.setLinePoints = function(n) {
var r = this.childOfName("line");
SE(r.shape, n), r.dirty();
}, e.prototype.beforeUpdate = function() {
var n = this, r = n.childOfName("fromSymbol"), i = n.childOfName("toSymbol"), a = n.getTextContent();
if (!r && !i && (!a || a.ignore))
return;
for (var o = 1, s = this.parent; s; )
s.scaleX && (o /= s.scaleX), s = s.parent;
var l = n.childOfName("line");
if (!this.__dirty && !l.__dirty)
return;
var u = l.shape.percent, c = l.pointAt(0), f = l.pointAt(u), d = kl([], f, c);
kf(d, d);
function h(w, P) {
var $ = w.__specifiedRotation;
if ($ == null) {
var A = l.tangentAt(P);
w.attr("rotation", (P === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(A[1], A[0]));
} else
w.attr("rotation", $);
}
if (r && (r.setPosition(c), h(r, 0), r.scaleX = r.scaleY = o * u, r.markRedraw()), i && (i.setPosition(f), h(i, 1), i.scaleX = i.scaleY = o * u, i.markRedraw()), a && !a.ignore) {
a.x = a.y = 0, a.originX = a.originY = 0;
var p = void 0, v = void 0, g = a.__labelDistance, m = g[0] * o, y = g[1] * o, b = u / 2, _ = l.tangentAt(b), O = [_[1], -_[0]], S = l.pointAt(b);
O[1] > 0 && (O[0] = -O[0], O[1] = -O[1]);
var x = _[0] < 0 ? -1 : 1;
if (a.__position !== "start" && a.__position !== "end") {
var C = -Math.atan2(_[1], _[0]);
f[0] < c[0] && (C = Math.PI + C), a.rotation = C;
}
var T = void 0;
switch (a.__position) {
case "insideStartTop":
case "insideMiddleTop":
case "insideEndTop":
case "middle":
T = -y, v = "bottom";
break;
case "insideStartBottom":
case "insideMiddleBottom":
case "insideEndBottom":
T = y, v = "top";
break;
default:
T = 0, v = "middle";
}
switch (a.__position) {
case "end":
a.x = d[0] * m + f[0], a.y = d[1] * y + f[1], p = d[0] > 0.8 ? "left" : d[0] < -0.8 ? "right" : "center", v = d[1] > 0.8 ? "top" : d[1] < -0.8 ? "bottom" : "middle";
break;
case "start":
a.x = -d[0] * m + c[0], a.y = -d[1] * y + c[1], p = d[0] > 0.8 ? "right" : d[0] < -0.8 ? "left" : "center", v = d[1] > 0.8 ? "bottom" : d[1] < -0.8 ? "top" : "middle";
break;
case "insideStartTop":
case "insideStart":
case "insideStartBottom":
a.x = m * x + c[0], a.y = c[1] + T, p = _[0] < 0 ? "right" : "left", a.originX = -m * x, a.originY = -T;
break;
case "insideMiddleTop":
case "insideMiddle":
case "insideMiddleBottom":
case "middle":
a.x = S[0], a.y = S[1] + T, p = "center", a.originY = -T;
break;
case "insideEndTop":
case "insideEnd":
case "insideEndBottom":
a.x = -m * x + f[0], a.y = f[1] + T, p = _[0] >= 0 ? "right" : "left", a.originX = m * x, a.originY = -T;
break;
}
a.scaleX = a.scaleY = o, a.setStyle({
// Use the user specified text align and baseline first
verticalAlign: a.__verticalAlign || v,
align: a.__align || p
});
}
}, e;
}(Ve)
), Jk = (
/** @class */
function() {
function t(e) {
this.group = new Ve(), this._LineCtor = e || Kk;
}
return t.prototype.updateData = function(e) {
var n = this;
this._progressiveEls = null;
var r = this, i = r.group, a = r._lineData;
r._lineData = e, a || i.removeAll();
var o = KF(e);
e.diff(a).add(function(s) {
n._doAdd(e, s, o);
}).update(function(s, l) {
n._doUpdate(a, e, l, s, o);
}).remove(function(s) {
i.remove(a.getItemGraphicEl(s));
}).execute();
}, t.prototype.updateLayout = function() {
var e = this._lineData;
e && e.eachItemGraphicEl(function(n, r) {
n.updateLayout(e, r);
}, this);
}, t.prototype.incrementalPrepareUpdate = function(e) {
this._seriesScope = KF(e), this._lineData = null, this.group.removeAll();
}, t.prototype.incrementalUpdate = function(e, n) {
this._progressiveEls = [];
function r(s) {
!s.isGroup && !TVe(s) && (s.incremental = !0, s.ensureState("emphasis").hoverLayer = !0);
}
for (var i = e.start; i < e.end; i++) {
var a = n.getItemLayout(i);
if (wP(a)) {
var o = new this._LineCtor(n, i, this._seriesScope);
o.traverse(r), this.group.add(o), n.setItemGraphicEl(i, o), this._progressiveEls.push(o);
}
}
}, t.prototype.remove = function() {
this.group.removeAll();
}, t.prototype.eachRendered = function(e) {
Tu(this._progressiveEls || this.group, e);
}, t.prototype._doAdd = function(e, n, r) {
var i = e.getItemLayout(n);
if (wP(i)) {
var a = new this._LineCtor(e, n, r);
e.setItemGraphicEl(n, a), this.group.add(a);
}
}, t.prototype._doUpdate = function(e, n, r, i, a) {
var o = e.getItemGraphicEl(r);
if (!wP(n.getItemLayout(i))) {
this.group.remove(o);
return;
}
o ? o.updateData(n, i, a) : o = new this._LineCtor(n, i, a), n.setItemGraphicEl(i, o), this.group.add(o);
}, t;
}()
);
function TVe(t) {
return t.animators && t.animators.length > 0;
}
function KF(t) {
var e = t.hostModel, n = e.getModel("emphasis");
return {
lineStyle: e.getModel("lineStyle").getLineStyle(),
emphasisLineStyle: n.getModel(["lineStyle"]).getLineStyle(),
blurLineStyle: e.getModel(["blur", "lineStyle"]).getLineStyle(),
selectLineStyle: e.getModel(["select", "lineStyle"]).getLineStyle(),
emphasisDisabled: n.get("disabled"),
blurScope: n.get("blurScope"),
focus: n.get("focus"),
labelStatesModels: er(e)
};
}
function JF(t) {
return isNaN(t[0]) || isNaN(t[1]);
}
function wP(t) {
return t && !JF(t[0]) && !JF(t[1]);
}
var CP = [], TP = [], PP = [], gd = ir, $P = Ul, eW = Math.abs;
function tW(t, e, n) {
for (var r = t[0], i = t[1], a = t[2], o = 1 / 0, s, l = n * n, u = 0.1, c = 0.1; c <= 0.9; c += 0.1) {
CP[0] = gd(r[0], i[0], a[0], c), CP[1] = gd(r[1], i[1], a[1], c);
var f = eW($P(CP, e) - l);
f < o && (o = f, s = c);
}
for (var d = 0; d < 32; d++) {
var h = s + u;
TP[0] = gd(r[0], i[0], a[0], s), TP[1] = gd(r[1], i[1], a[1], s), PP[0] = gd(r[0], i[0], a[0], h), PP[1] = gd(r[1], i[1], a[1], h);
var f = $P(TP, e) - l;
if (eW(f) < 0.01)
break;
var p = $P(PP, e) - l;
u /= 2, f < 0 ? p >= 0 ? s = s + u : s = s - u : p >= 0 ? s = s - u : s = s + u;
}
return s;
}
function AP(t, e) {
var n = [], r = Sm, i = [[], [], []], a = [[], []], o = [];
e /= 2, t.eachEdge(function(s, l) {
var u = s.getLayout(), c = s.getVisual("fromSymbol"), f = s.getVisual("toSymbol");
u.__original || (u.__original = [Uo(u[0]), Uo(u[1])], u[2] && u.__original.push(Uo(u[2])));
var d = u.__original;
if (u[2] != null) {
if (Ir(i[0], d[0]), Ir(i[1], d[2]), Ir(i[2], d[1]), c && c !== "none") {
var h = rg(s.node1), p = tW(i, d[0], h * e);
r(i[0][0], i[1][0], i[2][0], p, n), i[0][0] = n[3], i[1][0] = n[4], r(i[0][1], i[1][1], i[2][1], p, n), i[0][1] = n[3], i[1][1] = n[4];
}
if (f && f !== "none") {
var h = rg(s.node2), p = tW(i, d[1], h * e);
r(i[0][0], i[1][0], i[2][0], p, n), i[1][0] = n[1], i[2][0] = n[2], r(i[0][1], i[1][1], i[2][1], p, n), i[1][1] = n[1], i[2][1] = n[2];
}
Ir(u[0], i[0]), Ir(u[1], i[2]), Ir(u[2], i[1]);
} else {
if (Ir(a[0], d[0]), Ir(a[1], d[1]), kl(o, a[1], a[0]), kf(o, o), c && c !== "none") {
var h = rg(s.node1);
Y1(a[0], a[0], o, h * e);
}
if (f && f !== "none") {
var h = rg(s.node2);
Y1(a[1], a[1], o, -h * e);
}
Ir(u[0], a[0]), Ir(u[1], a[1]);
}
});
}
function nW(t) {
return t.type === "view";
}
var PVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r) {
var i = new U0(), a = new Jk(), o = this.group;
this._controller = new J0(r.getZr()), this._controllerHost = {
target: o
}, o.add(i.group), o.add(a.group), this._symbolDraw = i, this._lineDraw = a, this._firstRender = !0;
}, e.prototype.render = function(n, r, i) {
var a = this, o = n.coordinateSystem;
this._model = n;
var s = this._symbolDraw, l = this._lineDraw, u = this.group;
if (nW(o)) {
var c = {
x: o.x,
y: o.y,
scaleX: o.scaleX,
scaleY: o.scaleY
};
this._firstRender ? u.attr(c) : Ct(u, c, n);
}
AP(n.getGraph(), ng(n));
var f = n.getData();
s.updateData(f);
var d = n.getEdgeData();
l.updateData(d), this._updateNodeAndLinkScale(), this._updateController(n, r, i), clearTimeout(this._layoutTimeout);
var h = n.forceLayout, p = n.get(["force", "layoutAnimation"]);
h && this._startForceLayoutIteration(h, p);
var v = n.get("layout");
f.graph.eachNode(function(b) {
var _ = b.dataIndex, O = b.getGraphicEl(), S = b.getModel();
if (O) {
O.off("drag").off("dragend");
var x = S.get("draggable");
x && O.on("drag", function(T) {
switch (v) {
case "force":
h.warmUp(), !a._layouting && a._startForceLayoutIteration(h, p), h.setFixed(_), f.setItemLayout(_, [O.x, O.y]);
break;
case "circular":
f.setItemLayout(_, [O.x, O.y]), b.setLayout({
fixed: !0
}, !0), qk(n, "symbolSize", b, [T.offsetX, T.offsetY]), a.updateLayout(n);
break;
case "none":
default:
f.setItemLayout(_, [O.x, O.y]), Yk(n.getGraph(), n), a.updateLayout(n);
break;
}
}).on("dragend", function() {
h && h.setUnfixed(_);
}), O.setDraggable(x, !!S.get("cursor"));
var C = S.get(["emphasis", "focus"]);
C === "adjacency" && (Fe(O).focus = b.getAdjacentDataIndices());
}
}), f.graph.eachEdge(function(b) {
var _ = b.getGraphicEl(), O = b.getModel().get(["emphasis", "focus"]);
_ && O === "adjacency" && (Fe(_).focus = {
edge: [b.dataIndex],
node: [b.node1.dataIndex, b.node2.dataIndex]
});
});
var g = n.get("layout") === "circular" && n.get(["circular", "rotateLabel"]), m = f.getLayout("cx"), y = f.getLayout("cy");
f.graph.eachNode(function(b) {
Rne(b, g, m, y);
}), this._firstRender = !1;
}, e.prototype.dispose = function() {
this.remove(), this._controller && this._controller.dispose(), this._controllerHost = null;
}, e.prototype._startForceLayoutIteration = function(n, r) {
var i = this;
(function a() {
n.step(function(o) {
i.updateLayout(i._model), (i._layouting = !o) && (r ? i._layoutTimeout = setTimeout(a, 16) : a());
});
})();
}, e.prototype._updateController = function(n, r, i) {
var a = this, o = this._controller, s = this._controllerHost, l = this.group;
if (o.setPointerChecker(function(u, c, f) {
var d = l.getBoundingRect();
return d.applyTransform(l.transform), d.contain(c, f) && !yw(u, i, n);
}), !nW(n.coordinateSystem)) {
o.disable();
return;
}
o.enable(n.get("roam")), s.zoomLimit = n.get("scaleLimit"), s.zoom = n.coordinateSystem.getZoom(), o.off("pan").off("zoom").on("pan", function(u) {
Fk(s, u.dx, u.dy), i.dispatchAction({
seriesId: n.id,
type: "graphRoam",
dx: u.dx,
dy: u.dy
});
}).on("zoom", function(u) {
Wk(s, u.scale, u.originX, u.originY), i.dispatchAction({
seriesId: n.id,
type: "graphRoam",
zoom: u.scale,
originX: u.originX,
originY: u.originY
}), a._updateNodeAndLinkScale(), AP(n.getGraph(), ng(n)), a._lineDraw.updateLayout(), i.updateLabelLayout();
});
}, e.prototype._updateNodeAndLinkScale = function() {
var n = this._model, r = n.getData(), i = ng(n);
r.eachItemGraphicEl(function(a, o) {
a && a.setSymbolScale(i);
});
}, e.prototype.updateLayout = function(n) {
AP(n.getGraph(), ng(n)), this._symbolDraw.updateLayout(), this._lineDraw.updateLayout();
}, e.prototype.remove = function() {
clearTimeout(this._layoutTimeout), this._layouting = !1, this._layoutTimeout = null, this._symbolDraw && this._symbolDraw.remove(), this._lineDraw && this._lineDraw.remove();
}, e.type = "graph", e;
}(zt)
);
function md(t) {
return "_EC_" + t;
}
var $Ve = (
/** @class */
function() {
function t(e) {
this.type = "graph", this.nodes = [], this.edges = [], this._nodesMap = {}, this._edgesMap = {}, this._directed = e || !1;
}
return t.prototype.isDirected = function() {
return this._directed;
}, t.prototype.addNode = function(e, n) {
e = e == null ? "" + n : "" + e;
var r = this._nodesMap;
if (r[md(e)]) {
process.env.NODE_ENV !== "production" && console.error("Graph nodes have duplicate name or id");
return;
}
var i = new gc(e, n);
return i.hostGraph = this, this.nodes.push(i), r[md(e)] = i, i;
}, t.prototype.getNodeByIndex = function(e) {
var n = this.data.getRawIndex(e);
return this.nodes[n];
}, t.prototype.getNodeById = function(e) {
return this._nodesMap[md(e)];
}, t.prototype.addEdge = function(e, n, r) {
var i = this._nodesMap, a = this._edgesMap;
if (St(e) && (e = this.nodes[e]), St(n) && (n = this.nodes[n]), e instanceof gc || (e = i[md(e)]), n instanceof gc || (n = i[md(n)]), !(!e || !n)) {
var o = e.id + "-" + n.id, s = new Lne(e, n, r);
return s.hostGraph = this, this._directed && (e.outEdges.push(s), n.inEdges.push(s)), e.edges.push(s), e !== n && n.edges.push(s), this.edges.push(s), a[o] = s, s;
}
}, t.prototype.getEdgeByIndex = function(e) {
var n = this.edgeData.getRawIndex(e);
return this.edges[n];
}, t.prototype.getEdge = function(e, n) {
e instanceof gc && (e = e.id), n instanceof gc && (n = n.id);
var r = this._edgesMap;
return this._directed ? r[e + "-" + n] : r[e + "-" + n] || r[n + "-" + e];
}, t.prototype.eachNode = function(e, n) {
for (var r = this.nodes, i = r.length, a = 0; a < i; a++)
r[a].dataIndex >= 0 && e.call(n, r[a], a);
}, t.prototype.eachEdge = function(e, n) {
for (var r = this.edges, i = r.length, a = 0; a < i; a++)
r[a].dataIndex >= 0 && r[a].node1.dataIndex >= 0 && r[a].node2.dataIndex >= 0 && e.call(n, r[a], a);
}, t.prototype.breadthFirstTraverse = function(e, n, r, i) {
if (n instanceof gc || (n = this._nodesMap[md(n)]), !!n) {
for (var a = r === "out" ? "outEdges" : r === "in" ? "inEdges" : "edges", o = 0; o < this.nodes.length; o++)
this.nodes[o].__visited = !1;
if (!e.call(i, n, null))
for (var s = [n]; s.length; )
for (var l = s.shift(), u = l[a], o = 0; o < u.length; o++) {
var c = u[o], f = c.node1 === l ? c.node2 : c.node1;
if (!f.__visited) {
if (e.call(i, f, l))
return;
s.push(f), f.__visited = !0;
}
}
}
}, t.prototype.update = function() {
for (var e = this.data, n = this.edgeData, r = this.nodes, i = this.edges, a = 0, o = r.length; a < o; a++)
r[a].dataIndex = -1;
for (var a = 0, o = e.count(); a < o; a++)
r[e.getRawIndex(a)].dataIndex = a;
n.filterSelf(function(s) {
var l = i[n.getRawIndex(s)];
return l.node1.dataIndex >= 0 && l.node2.dataIndex >= 0;
});
for (var a = 0, o = i.length; a < o; a++)
i[a].dataIndex = -1;
for (var a = 0, o = n.count(); a < o; a++)
i[n.getRawIndex(a)].dataIndex = a;
}, t.prototype.clone = function() {
for (var e = new t(this._directed), n = this.nodes, r = this.edges, i = 0; i < n.length; i++)
e.addNode(n[i].id, n[i].dataIndex);
for (var i = 0; i < r.length; i++) {
var a = r[i];
e.addEdge(a.node1.id, a.node2.id, a.dataIndex);
}
return e;
}, t;
}()
), gc = (
/** @class */
function() {
function t(e, n) {
this.inEdges = [], this.outEdges = [], this.edges = [], this.dataIndex = -1, this.id = e ?? "", this.dataIndex = n ?? -1;
}
return t.prototype.degree = function() {
return this.edges.length;
}, t.prototype.inDegree = function() {
return this.inEdges.length;
}, t.prototype.outDegree = function() {
return this.outEdges.length;
}, t.prototype.getModel = function(e) {
if (!(this.dataIndex < 0)) {
var n = this.hostGraph, r = n.data.getItemModel(this.dataIndex);
return r.getModel(e);
}
}, t.prototype.getAdjacentDataIndices = function() {
for (var e = {
edge: [],
node: []
}, n = 0; n < this.edges.length; n++) {
var r = this.edges[n];
r.dataIndex < 0 || (e.edge.push(r.dataIndex), e.node.push(r.node1.dataIndex, r.node2.dataIndex));
}
return e;
}, t.prototype.getTrajectoryDataIndices = function() {
for (var e = Pe(), n = Pe(), r = 0; r < this.edges.length; r++) {
var i = this.edges[r];
if (!(i.dataIndex < 0)) {
e.set(i.dataIndex, !0);
for (var a = [i.node1], o = [i.node2], s = 0; s < a.length; ) {
var l = a[s];
s++, n.set(l.dataIndex, !0);
for (var u = 0; u < l.inEdges.length; u++)
e.set(l.inEdges[u].dataIndex, !0), a.push(l.inEdges[u].node1);
}
for (s = 0; s < o.length; ) {
var c = o[s];
s++, n.set(c.dataIndex, !0);
for (var u = 0; u < c.outEdges.length; u++)
e.set(c.outEdges[u].dataIndex, !0), o.push(c.outEdges[u].node2);
}
}
}
return {
edge: e.keys(),
node: n.keys()
};
}, t;
}()
), Lne = (
/** @class */
function() {
function t(e, n, r) {
this.dataIndex = -1, this.node1 = e, this.node2 = n, this.dataIndex = r ?? -1;
}
return t.prototype.getModel = function(e) {
if (!(this.dataIndex < 0)) {
var n = this.hostGraph, r = n.edgeData.getItemModel(this.dataIndex);
return r.getModel(e);
}
}, t.prototype.getAdjacentDataIndices = function() {
return {
edge: [this.dataIndex],
node: [this.node1.dataIndex, this.node2.dataIndex]
};
}, t.prototype.getTrajectoryDataIndices = function() {
var e = Pe(), n = Pe();
e.set(this.dataIndex, !0);
for (var r = [this.node1], i = [this.node2], a = 0; a < r.length; ) {
var o = r[a];
a++, n.set(o.dataIndex, !0);
for (var s = 0; s < o.inEdges.length; s++)
e.set(o.inEdges[s].dataIndex, !0), r.push(o.inEdges[s].node1);
}
for (a = 0; a < i.length; ) {
var l = i[a];
a++, n.set(l.dataIndex, !0);
for (var s = 0; s < l.outEdges.length; s++)
e.set(l.outEdges[s].dataIndex, !0), i.push(l.outEdges[s].node2);
}
return {
edge: e.keys(),
node: n.keys()
};
}, t;
}()
);
function Nne(t, e) {
return {
/**
* @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.
*/
getValue: function(n) {
var r = this[t][e];
return r.getStore().get(r.getDimensionIndex(n || "value"), this.dataIndex);
},
// TODO: TYPE stricter type.
setVisual: function(n, r) {
this.dataIndex >= 0 && this[t][e].setItemVisual(this.dataIndex, n, r);
},
getVisual: function(n) {
return this[t][e].getItemVisual(this.dataIndex, n);
},
setLayout: function(n, r) {
this.dataIndex >= 0 && this[t][e].setItemLayout(this.dataIndex, n, r);
},
getLayout: function() {
return this[t][e].getItemLayout(this.dataIndex);
},
getGraphicEl: function() {
return this[t][e].getItemGraphicEl(this.dataIndex);
},
getRawIndex: function() {
return this[t][e].getRawIndex(this.dataIndex);
}
};
}
xn(gc, Nne("hostGraph", "data"));
xn(Lne, Nne("hostGraph", "edgeData"));
function Bne(t, e, n, r, i) {
for (var a = new $Ve(r), o = 0; o < t.length; o++)
a.addNode(Tn(
// Id, name, dataIndex
t[o].id,
t[o].name,
o
), o);
for (var s = [], l = [], u = 0, o = 0; o < e.length; o++) {
var c = e[o], f = c.source, d = c.target;
a.addEdge(f, d, u) && (l.push(c), s.push(Tn(Vn(c.id, null), f + " > " + d)), u++);
}
var h = n.get("coordinateSystem"), p;
if (h === "cartesian2d" || h === "polar")
p = cs(t, n);
else {
var v = Vf.get(h), g = v ? v.dimensions || [] : [];
et(g, "value") < 0 && g.concat(["value"]);
var m = Ap(t, {
coordDimensions: g,
encodeDefine: n.getEncode()
}).dimensions;
p = new Nr(m, n), p.initData(t);
}
var y = new Nr(["value"], n);
return y.initData(l, s), i && i(p, y), bne({
mainData: p,
struct: a,
structAttr: "graph",
datas: {
node: p,
edge: y
},
datasAttr: {
node: "data",
edge: "edgeData"
}
}), a.update(), a;
}
var AVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.hasSymbolVisual = !0, n;
}
return e.prototype.init = function(n) {
t.prototype.init.apply(this, arguments);
var r = this;
function i() {
return r._categoriesData;
}
this.legendVisualProvider = new K0(i, i), this.fillDataTextStyle(n.edges || n.links), this._updateCategoriesData();
}, e.prototype.mergeOption = function(n) {
t.prototype.mergeOption.apply(this, arguments), this.fillDataTextStyle(n.edges || n.links), this._updateCategoriesData();
}, e.prototype.mergeDefaultAndTheme = function(n) {
t.prototype.mergeDefaultAndTheme.apply(this, arguments), mf(n, "edgeLabel", ["show"]);
}, e.prototype.getInitialData = function(n, r) {
var i = n.edges || n.links || [], a = n.data || n.nodes || [], o = this;
if (a && i) {
vVe(this);
var s = Bne(a, i, this, !0, l);
return k(s.edges, function(u) {
gVe(u.node1, u.node2, this, u.dataIndex);
}, this), s.data;
}
function l(u, c) {
u.wrapMethod("getItemModel", function(p) {
var v = o._categoriesModels, g = p.getShallow("category"), m = v[g];
return m && (m.parentModel = p.parentModel, p.parentModel = m), p;
});
var f = Wt.prototype.getModel;
function d(p, v) {
var g = f.call(this, p, v);
return g.resolveParentPath = h, g;
}
c.wrapMethod("getItemModel", function(p) {
return p.resolveParentPath = h, p.getModel = d, p;
});
function h(p) {
if (p && (p[0] === "label" || p[1] === "label")) {
var v = p.slice();
return p[0] === "label" ? v[0] = "edgeLabel" : p[1] === "label" && (v[1] = "edgeLabel"), v;
}
return p;
}
}
}, e.prototype.getGraph = function() {
return this.getData().graph;
}, e.prototype.getEdgeData = function() {
return this.getGraph().edgeData;
}, e.prototype.getCategoriesData = function() {
return this._categoriesData;
}, e.prototype.formatTooltip = function(n, r, i) {
if (i === "edge") {
var a = this.getData(), o = this.getDataParams(n, i), s = a.graph.getEdgeByIndex(n), l = a.getName(s.node1.dataIndex), u = a.getName(s.node2.dataIndex), c = [];
return l != null && c.push(l), u != null && c.push(u), tr("nameValue", {
name: c.join(" > "),
value: o.value,
noValue: o.value == null
});
}
var f = aee({
series: this,
dataIndex: n,
multipleSeries: r
});
return f;
}, e.prototype._updateCategoriesData = function() {
var n = ce(this.option.categories || [], function(i) {
return i.value != null ? i : le({
value: 0
}, i);
}), r = new Nr(["value"], this);
r.initData(n), this._categoriesData = r, this._categoriesModels = r.mapArray(function(i) {
return r.getItemModel(i);
});
}, e.prototype.setZoom = function(n) {
this.option.zoom = n;
}, e.prototype.setCenter = function(n) {
this.option.center = n;
}, e.prototype.isAnimationEnabled = function() {
return t.prototype.isAnimationEnabled.call(this) && !(this.get("layout") === "force" && this.get(["force", "layoutAnimation"]));
}, e.type = "series.graph", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "view",
// Default option for all coordinate systems
// xAxisIndex: 0,
// yAxisIndex: 0,
// polarIndex: 0,
// geoIndex: 0,
legendHoverLink: !0,
layout: null,
// Configuration of circular layout
circular: {
rotateLabel: !1
},
// Configuration of force directed layout
force: {
initLayout: null,
// Node repulsion. Can be an array to represent range.
repulsion: [0, 50],
gravity: 0.1,
// Initial friction
friction: 0.6,
// Edge length. Can be an array to represent range.
edgeLength: 30,
layoutAnimation: !0
},
left: "center",
top: "center",
// right: null,
// bottom: null,
// width: '80%',
// height: '80%',
symbol: "circle",
symbolSize: 10,
edgeSymbol: ["none", "none"],
edgeSymbolSize: 10,
edgeLabel: {
position: "middle",
distance: 5
},
draggable: !1,
roam: !1,
// Default on center of graph
center: null,
zoom: 1,
// Symbol size scale ratio in roam
nodeScaleRatio: 0.6,
// cursor: null,
// categories: [],
// data: []
// Or
// nodes: []
//
// links: []
// Or
// edges: []
label: {
show: !1,
formatter: "{b}"
},
itemStyle: {},
lineStyle: {
color: "#aaa",
width: 1,
opacity: 0.5
},
emphasis: {
scale: !0,
label: {
show: !0
}
},
select: {
itemStyle: {
borderColor: "#212121"
}
}
}, e;
}(Ht)
), EVe = {
type: "graphRoam",
event: "graphRoam",
update: "none"
};
function MVe(t) {
t.registerChartView(PVe), t.registerSeriesModel(AVe), t.registerProcessor(cVe), t.registerVisual(fVe), t.registerVisual(dVe), t.registerLayout(mVe), t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT, bVe), t.registerLayout(OVe), t.registerCoordinateSystem("graphView", {
dimensions: ey.dimensions,
create: xVe
}), t.registerAction({
type: "focusNodeAdjacency",
event: "focusNodeAdjacency",
update: "series:focusNodeAdjacency"
}, On), t.registerAction({
type: "unfocusNodeAdjacency",
event: "unfocusNodeAdjacency",
update: "series:unfocusNodeAdjacency"
}, On), t.registerAction(EVe, function(e, n, r) {
n.eachComponent({
mainType: "series",
query: e
}, function(i) {
var a = i.coordinateSystem, o = Hk(a, e, void 0, r);
i.setCenter && i.setCenter(o.center), i.setZoom && i.setZoom(o.zoom);
});
});
}
var IVe = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.angle = 0, this.width = 10, this.r = 10, this.x = 0, this.y = 0;
}
return t;
}()
), DVe = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "pointer", r;
}
return e.prototype.getDefaultShape = function() {
return new IVe();
}, e.prototype.buildPath = function(n, r) {
var i = Math.cos, a = Math.sin, o = r.r, s = r.width, l = r.angle, u = r.x - i(l) * s * (s >= o / 3 ? 1 : 2), c = r.y - a(l) * s * (s >= o / 3 ? 1 : 2);
l = r.angle - Math.PI / 2, n.moveTo(u, c), n.lineTo(r.x + i(l) * s, r.y + a(l) * s), n.lineTo(r.x + i(r.angle) * o, r.y + a(r.angle) * o), n.lineTo(r.x - i(l) * s, r.y - a(l) * s), n.lineTo(u, c);
}, e;
}(ot)
);
function RVe(t, e) {
var n = t.get("center"), r = e.getWidth(), i = e.getHeight(), a = Math.min(r, i), o = _e(n[0], e.getWidth()), s = _e(n[1], e.getHeight()), l = _e(t.get("radius"), a / 2);
return {
cx: o,
cy: s,
r: l
};
}
function Eb(t, e) {
var n = t == null ? "" : t + "";
return e && (Oe(e) ? n = e.replace("{value}", n) : Me(e) && (n = e(t))), n;
}
var kVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
this.group.removeAll();
var a = n.get(["axisLine", "lineStyle", "color"]), o = RVe(n, i);
this._renderMain(n, r, i, a, o), this._data = n.getData();
}, e.prototype.dispose = function() {
}, e.prototype._renderMain = function(n, r, i, a, o) {
var s = this.group, l = n.get("clockwise"), u = -n.get("startAngle") / 180 * Math.PI, c = -n.get("endAngle") / 180 * Math.PI, f = n.getModel("axisLine"), d = f.get("roundCap"), h = d ? MO : ii, p = f.get("show"), v = f.getModel("lineStyle"), g = v.get("width"), m = [u, c];
RR(m, !l), u = m[0], c = m[1];
for (var y = c - u, b = u, _ = [], O = 0; p && O < a.length; O++) {
var S = Math.min(Math.max(a[O][0], 0), 1);
c = u + y * S;
var x = new h({
shape: {
startAngle: b,
endAngle: c,
cx: o.cx,
cy: o.cy,
clockwise: l,
r0: o.r - g,
r: o.r
},
silent: !0
});
x.setStyle({
fill: a[O][1]
}), x.setStyle(v.getLineStyle(
// Because we use sector to simulate arc
// so the properties for stroking are useless
["color", "width"]
)), _.push(x), b = c;
}
_.reverse(), k(_, function(T) {
return s.add(T);
});
var C = function(T) {
if (T <= 0)
return a[0][1];
var w;
for (w = 0; w < a.length; w++)
if (a[w][0] >= T && (w === 0 ? 0 : a[w - 1][0]) < T)
return a[w][1];
return a[w - 1][1];
};
this._renderTicks(n, r, i, C, o, u, c, l, g), this._renderTitleAndDetail(n, r, i, C, o), this._renderAnchor(n, o), this._renderPointer(n, r, i, C, o, u, c, l, g);
}, e.prototype._renderTicks = function(n, r, i, a, o, s, l, u, c) {
for (var f = this.group, d = o.cx, h = o.cy, p = o.r, v = +n.get("min"), g = +n.get("max"), m = n.getModel("splitLine"), y = n.getModel("axisTick"), b = n.getModel("axisLabel"), _ = n.get("splitNumber"), O = y.get("splitNumber"), S = _e(m.get("length"), p), x = _e(y.get("length"), p), C = s, T = (l - s) / _, w = T / O, P = m.getModel("lineStyle").getLineStyle(), $ = y.getModel("lineStyle").getLineStyle(), A = m.get("distance"), D, E, R = 0; R <= _; R++) {
if (D = Math.cos(C), E = Math.sin(C), m.get("show")) {
var N = A ? A + c : c, V = new Un({
shape: {
x1: D * (p - N) + d,
y1: E * (p - N) + h,
x2: D * (p - S - N) + d,
y2: E * (p - S - N) + h
},
style: P,
silent: !0
});
P.stroke === "auto" && V.setStyle({
stroke: a(R / _)
}), f.add(V);
}
if (b.get("show")) {
var N = b.get("distance") + A, B = Eb(mn(R / _ * (g - v) + v), b.get("formatter")), W = a(R / _), F = D * (p - S - N) + d, Q = E * (p - S - N) + h, Z = b.get("rotate"), ne = 0;
Z === "radial" ? (ne = -C + 2 * Math.PI, ne > Math.PI / 2 && (ne += Math.PI)) : Z === "tangential" ? ne = -C - Math.PI / 2 : St(Z) && (ne = Z * Math.PI / 180), ne === 0 ? f.add(new gt({
style: Zt(b, {
text: B,
x: F,
y: Q,
verticalAlign: E < -0.8 ? "top" : E > 0.8 ? "bottom" : "middle",
align: D < -0.4 ? "left" : D > 0.4 ? "right" : "center"
}, {
inheritColor: W
}),
silent: !0
})) : f.add(new gt({
style: Zt(b, {
text: B,
x: F,
y: Q,
verticalAlign: "middle",
align: "center"
}, {
inheritColor: W
}),
silent: !0,
originX: F,
originY: Q,
rotation: ne
}));
}
if (y.get("show") && R !== _) {
var N = y.get("distance");
N = N ? N + c : c;
for (var ee = 0; ee <= O; ee++) {
D = Math.cos(C), E = Math.sin(C);
var oe = new Un({
shape: {
x1: D * (p - N) + d,
y1: E * (p - N) + h,
x2: D * (p - x - N) + d,
y2: E * (p - x - N) + h
},
silent: !0,
style: $
});
$.stroke === "auto" && oe.setStyle({
stroke: a((R + ee / O) / _)
}), f.add(oe), C += w;
}
C -= w;
} else
C += T;
}
}, e.prototype._renderPointer = function(n, r, i, a, o, s, l, u, c) {
var f = this.group, d = this._data, h = this._progressEls, p = [], v = n.get(["pointer", "show"]), g = n.getModel("progress"), m = g.get("show"), y = n.getData(), b = y.mapDimension("value"), _ = +n.get("min"), O = +n.get("max"), S = [_, O], x = [s, l];
function C(w, P) {
var $ = y.getItemModel(w), A = $.getModel("pointer"), D = _e(A.get("width"), o.r), E = _e(A.get("length"), o.r), R = n.get(["pointer", "icon"]), N = A.get("offsetCenter"), V = _e(N[0], o.r), B = _e(N[1], o.r), W = A.get("keepAspect"), F;
return R ? F = $n(R, V - D / 2, B - E, D, E, null, W) : F = new DVe({
shape: {
angle: -Math.PI / 2,
width: D,
r: E,
x: V,
y: B
}
}), F.rotation = -(P + Math.PI / 2), F.x = o.cx, F.y = o.cy, F;
}
function T(w, P) {
var $ = g.get("roundCap"), A = $ ? MO : ii, D = g.get("overlap"), E = D ? g.get("width") : c / y.count(), R = D ? o.r - E : o.r - (w + 1) * E, N = D ? o.r : o.r - w * E, V = new A({
shape: {
startAngle: s,
endAngle: P,
cx: o.cx,
cy: o.cy,
clockwise: u,
r0: R,
r: N
}
});
return D && (V.z2 = O - y.get(b, w) % O), V;
}
(m || v) && (y.diff(d).add(function(w) {
var P = y.get(b, w);
if (v) {
var $ = C(w, s);
Yt($, {
rotation: -((isNaN(+P) ? x[0] : Lt(P, S, x, !0)) + Math.PI / 2)
}, n), f.add($), y.setItemGraphicEl(w, $);
}
if (m) {
var A = T(w, s), D = g.get("clip");
Yt(A, {
shape: {
endAngle: Lt(P, S, x, D)
}
}, n), f.add(A), IA(n.seriesIndex, y.dataType, w, A), p[w] = A;
}
}).update(function(w, P) {
var $ = y.get(b, w);
if (v) {
var A = d.getItemGraphicEl(P), D = A ? A.rotation : s, E = C(w, D);
E.rotation = D, Ct(E, {
rotation: -((isNaN(+$) ? x[0] : Lt($, S, x, !0)) + Math.PI / 2)
}, n), f.add(E), y.setItemGraphicEl(w, E);
}
if (m) {
var R = h[P], N = R ? R.shape.endAngle : s, V = T(w, N), B = g.get("clip");
Ct(V, {
shape: {
endAngle: Lt($, S, x, B)
}
}, n), f.add(V), IA(n.seriesIndex, y.dataType, w, V), p[w] = V;
}
}).execute(), y.each(function(w) {
var P = y.getItemModel(w), $ = P.getModel("emphasis"), A = $.get("focus"), D = $.get("blurScope"), E = $.get("disabled");
if (v) {
var R = y.getItemGraphicEl(w), N = y.getItemVisual(w, "style"), V = N.fill;
if (R instanceof lr) {
var B = R.style;
R.useStyle(le({
image: B.image,
x: B.x,
y: B.y,
width: B.width,
height: B.height
}, N));
} else
R.useStyle(N), R.type !== "pointer" && R.setColor(V);
R.setStyle(P.getModel(["pointer", "itemStyle"]).getItemStyle()), R.style.fill === "auto" && R.setStyle("fill", a(Lt(y.get(b, w), S, [0, 1], !0))), R.z2EmphasisLift = 0, Tr(R, P), bn(R, A, D, E);
}
if (m) {
var W = p[w];
W.useStyle(y.getItemVisual(w, "style")), W.setStyle(P.getModel(["progress", "itemStyle"]).getItemStyle()), W.z2EmphasisLift = 0, Tr(W, P), bn(W, A, D, E);
}
}), this._progressEls = p);
}, e.prototype._renderAnchor = function(n, r) {
var i = n.getModel("anchor"), a = i.get("show");
if (a) {
var o = i.get("size"), s = i.get("icon"), l = i.get("offsetCenter"), u = i.get("keepAspect"), c = $n(s, r.cx - o / 2 + _e(l[0], r.r), r.cy - o / 2 + _e(l[1], r.r), o, o, null, u);
c.z2 = i.get("showAbove") ? 1 : 0, c.setStyle(i.getModel("itemStyle").getItemStyle()), this.group.add(c);
}
}, e.prototype._renderTitleAndDetail = function(n, r, i, a, o) {
var s = this, l = n.getData(), u = l.mapDimension("value"), c = +n.get("min"), f = +n.get("max"), d = new Ve(), h = [], p = [], v = n.isAnimationEnabled(), g = n.get(["pointer", "showAbove"]);
l.diff(this._data).add(function(m) {
h[m] = new gt({
silent: !0
}), p[m] = new gt({
silent: !0
});
}).update(function(m, y) {
h[m] = s._titleEls[y], p[m] = s._detailEls[y];
}).execute(), l.each(function(m) {
var y = l.getItemModel(m), b = l.get(u, m), _ = new Ve(), O = a(Lt(b, [c, f], [0, 1], !0)), S = y.getModel("title");
if (S.get("show")) {
var x = S.get("offsetCenter"), C = o.cx + _e(x[0], o.r), T = o.cy + _e(x[1], o.r), w = h[m];
w.attr({
z2: g ? 0 : 2,
style: Zt(S, {
x: C,
y: T,
text: l.getName(m),
align: "center",
verticalAlign: "middle"
}, {
inheritColor: O
})
}), _.add(w);
}
var P = y.getModel("detail");
if (P.get("show")) {
var $ = P.get("offsetCenter"), A = o.cx + _e($[0], o.r), D = o.cy + _e($[1], o.r), E = _e(P.get("width"), o.r), R = _e(P.get("height"), o.r), N = n.get(["progress", "show"]) ? l.getItemVisual(m, "style").fill : O, w = p[m], V = P.get("formatter");
w.attr({
z2: g ? 0 : 2,
style: Zt(P, {
x: A,
y: D,
text: Eb(b, V),
width: isNaN(E) ? null : E,
height: isNaN(R) ? null : R,
align: "center",
verticalAlign: "middle"
}, {
inheritColor: N
})
}), hJ(w, {
normal: P
}, b, function(W) {
return Eb(W, V);
}), v && pJ(w, m, l, n, {
getFormattedLabel: function(W, F, Q, Z, ne, ee) {
return Eb(ee ? ee.interpolatedValue : b, V);
}
}), _.add(w);
}
d.add(_);
}), this.group.add(d), this._titleEls = h, this._detailEls = p;
}, e.type = "gauge", e;
}(zt)
), LVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.visualStyleAccessPath = "itemStyle", n;
}
return e.prototype.getInitialData = function(n, r) {
return Ip(this, ["value"]);
}, e.type = "series.gauge", e.defaultOption = {
// zlevel: 0,
z: 2,
colorBy: "data",
// 默认全局居中
center: ["50%", "50%"],
legendHoverLink: !0,
radius: "75%",
startAngle: 225,
endAngle: -45,
clockwise: !0,
// 最小值
min: 0,
// 最大值
max: 100,
// 分割段数,默认为10
splitNumber: 10,
// 坐标轴线
axisLine: {
// 默认显示,属性show控制显示与否
show: !0,
roundCap: !1,
lineStyle: {
color: [[1, "#E6EBF8"]],
width: 10
}
},
// 坐标轴线
progress: {
// 默认显示,属性show控制显示与否
show: !1,
overlap: !0,
width: 10,
roundCap: !1,
clip: !0
},
// 分隔线
splitLine: {
// 默认显示,属性show控制显示与否
show: !0,
// 属性length控制线长
length: 10,
distance: 10,
// 属性lineStyle(详见lineStyle)控制线条样式
lineStyle: {
color: "#63677A",
width: 3,
type: "solid"
}
},
// 坐标轴小标记
axisTick: {
// 属性show控制显示与否,默认不显示
show: !0,
// 每份split细分多少段
splitNumber: 5,
// 属性length控制线长
length: 6,
distance: 10,
// 属性lineStyle控制线条样式
lineStyle: {
color: "#63677A",
width: 1,
type: "solid"
}
},
axisLabel: {
show: !0,
distance: 15,
// formatter: null,
color: "#464646",
fontSize: 12,
rotate: 0
},
pointer: {
icon: null,
offsetCenter: [0, 0],
show: !0,
showAbove: !0,
length: "60%",
width: 6,
keepAspect: !1
},
anchor: {
show: !1,
showAbove: !1,
size: 6,
icon: "circle",
offsetCenter: [0, 0],
keepAspect: !1,
itemStyle: {
color: "#fff",
borderWidth: 0,
borderColor: "#5470c6"
}
},
title: {
show: !0,
// x, y,单位px
offsetCenter: [0, "20%"],
// 其余属性默认使用全局文本样式,详见TEXTSTYLE
color: "#464646",
fontSize: 16,
valueAnimation: !1
},
detail: {
show: !0,
backgroundColor: "rgba(0,0,0,0)",
borderWidth: 0,
borderColor: "#ccc",
width: 100,
height: null,
padding: [5, 10],
// x, y,单位px
offsetCenter: [0, "40%"],
// formatter: null,
// 其余属性默认使用全局文本样式,详见TEXTSTYLE
color: "#464646",
fontSize: 30,
fontWeight: "bold",
lineHeight: 30,
valueAnimation: !1
}
}, e;
}(Ht)
);
function NVe(t) {
t.registerChartView(kVe), t.registerSeriesModel(LVe);
}
var BVe = ["itemStyle", "opacity"], zVe = (
/** @class */
function(t) {
q(e, t);
function e(n, r) {
var i = t.call(this) || this, a = i, o = new oi(), s = new gt();
return a.setTextContent(s), i.setTextGuideLine(o), i.updateData(n, r, !0), i;
}
return e.prototype.updateData = function(n, r, i) {
var a = this, o = n.hostModel, s = n.getItemModel(r), l = n.getItemLayout(r), u = s.getModel("emphasis"), c = s.get(BVe);
c = c ?? 1, i || uo(a), a.useStyle(n.getItemVisual(r, "style")), a.style.lineJoin = "round", i ? (a.setShape({
points: l.points
}), a.style.opacity = 0, Yt(a, {
style: {
opacity: c
}
}, o, r)) : Ct(a, {
style: {
opacity: c
},
shape: {
points: l.points
}
}, o, r), Tr(a, s), this._updateLabel(n, r), bn(this, u.get("focus"), u.get("blurScope"), u.get("disabled"));
}, e.prototype._updateLabel = function(n, r) {
var i = this, a = this.getTextGuideLine(), o = i.getTextContent(), s = n.hostModel, l = n.getItemModel(r), u = n.getItemLayout(r), c = u.label, f = n.getItemVisual(r, "style"), d = f.fill;
Pr(
// position will not be used in setLabelStyle
o,
er(l),
{
labelFetcher: n.hostModel,
labelDataIndex: r,
defaultOpacity: f.opacity,
defaultText: n.getName(r)
},
{
normal: {
align: c.textAlign,
verticalAlign: c.verticalAlign
}
}
), i.setTextConfig({
local: !0,
inside: !!c.inside,
insideStroke: d,
// insideFill: 'auto',
outsideFill: d
});
var h = c.linePoints;
a.setShape({
points: h
}), i.textGuideLineConfig = {
anchor: h ? new Ke(h[0][0], h[0][1]) : null
}, Ct(o, {
style: {
x: c.x,
y: c.y
}
}, s, r), o.attr({
rotation: c.rotation,
originX: c.x,
originY: c.y,
z2: 10
}), Ek(i, Mk(l), {
// Default use item visual color
stroke: d
});
}, e;
}(ai)
), VVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.ignoreLabelLineUpdate = !0, n;
}
return e.prototype.render = function(n, r, i) {
var a = n.getData(), o = this._data, s = this.group;
a.diff(o).add(function(l) {
var u = new zVe(a, l);
a.setItemGraphicEl(l, u), s.add(u);
}).update(function(l, u) {
var c = o.getItemGraphicEl(u);
c.updateData(a, l), s.add(c), a.setItemGraphicEl(l, c);
}).remove(function(l) {
var u = o.getItemGraphicEl(l);
$m(u, n, l);
}).execute(), this._data = a;
}, e.prototype.remove = function() {
this.group.removeAll(), this._data = null;
}, e.prototype.dispose = function() {
}, e.type = "funnel", e;
}(zt)
), FVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n) {
t.prototype.init.apply(this, arguments), this.legendVisualProvider = new K0(xe(this.getData, this), xe(this.getRawData, this)), this._defaultLabelLine(n);
}, e.prototype.getInitialData = function(n, r) {
return Ip(this, {
coordDimensions: ["value"],
encodeDefaulter: Ue(rk, this)
});
}, e.prototype._defaultLabelLine = function(n) {
mf(n, "labelLine", ["show"]);
var r = n.labelLine, i = n.emphasis.labelLine;
r.show = r.show && n.label.show, i.show = i.show && n.emphasis.label.show;
}, e.prototype.getDataParams = function(n) {
var r = this.getData(), i = t.prototype.getDataParams.call(this, n), a = r.mapDimension("value"), o = r.getSum(a);
return i.percent = o ? +(r.get(a, n) / o * 100).toFixed(2) : 0, i.$vars.push("percent"), i;
}, e.type = "series.funnel", e.defaultOption = {
// zlevel: 0, // 一级层叠
z: 2,
legendHoverLink: !0,
colorBy: "data",
left: 80,
top: 60,
right: 80,
bottom: 60,
// width: {totalWidth} - left - right,
// height: {totalHeight} - top - bottom,
// 默认取数据最小最大值
// min: 0,
// max: 100,
minSize: "0%",
maxSize: "100%",
sort: "descending",
orient: "vertical",
gap: 0,
funnelAlign: "center",
label: {
show: !0,
position: "outer"
// formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
},
labelLine: {
show: !0,
length: 20,
lineStyle: {
// color: 各异,
width: 1
}
},
itemStyle: {
// color: 各异,
borderColor: "#fff",
borderWidth: 1
},
emphasis: {
label: {
show: !0
}
},
select: {
itemStyle: {
borderColor: "#212121"
}
}
}, e;
}(Ht)
);
function WVe(t, e) {
return Rn(t.getBoxLayoutParams(), {
width: e.getWidth(),
height: e.getHeight()
});
}
function QVe(t, e) {
for (var n = t.mapDimension("value"), r = t.mapArray(n, function(l) {
return l;
}), i = [], a = e === "ascending", o = 0, s = t.count(); o < s; o++)
i[o] = o;
return Me(e) ? i.sort(e) : e !== "none" && i.sort(function(l, u) {
return a ? r[l] - r[u] : r[u] - r[l];
}), i;
}
function HVe(t) {
var e = t.hostModel, n = e.get("orient");
t.each(function(r) {
var i = t.getItemModel(r), a = i.getModel("label"), o = a.get("position"), s = i.getModel("labelLine"), l = t.getItemLayout(r), u = l.points, c = o === "inner" || o === "inside" || o === "center" || o === "insideLeft" || o === "insideRight", f, d, h, p;
if (c)
o === "insideLeft" ? (d = (u[0][0] + u[3][0]) / 2 + 5, h = (u[0][1] + u[3][1]) / 2, f = "left") : o === "insideRight" ? (d = (u[1][0] + u[2][0]) / 2 - 5, h = (u[1][1] + u[2][1]) / 2, f = "right") : (d = (u[0][0] + u[1][0] + u[2][0] + u[3][0]) / 4, h = (u[0][1] + u[1][1] + u[2][1] + u[3][1]) / 4, f = "center"), p = [[d, h], [d, h]];
else {
var v = void 0, g = void 0, m = void 0, y = void 0, b = s.get("length");
process.env.NODE_ENV !== "production" && (n === "vertical" && ["top", "bottom"].indexOf(o) > -1 && (o = "left", console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")), n === "horizontal" && ["left", "right"].indexOf(o) > -1 && (o = "bottom", console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))), o === "left" ? (v = (u[3][0] + u[0][0]) / 2, g = (u[3][1] + u[0][1]) / 2, m = v - b, d = m - 5, f = "right") : o === "right" ? (v = (u[1][0] + u[2][0]) / 2, g = (u[1][1] + u[2][1]) / 2, m = v + b, d = m + 5, f = "left") : o === "top" ? (v = (u[3][0] + u[0][0]) / 2, g = (u[3][1] + u[0][1]) / 2, y = g - b, h = y - 5, f = "center") : o === "bottom" ? (v = (u[1][0] + u[2][0]) / 2, g = (u[1][1] + u[2][1]) / 2, y = g + b, h = y + 5, f = "center") : o === "rightTop" ? (v = n === "horizontal" ? u[3][0] : u[1][0], g = n === "horizontal" ? u[3][1] : u[1][1], n === "horizontal" ? (y = g - b, h = y - 5, f = "center") : (m = v + b, d = m + 5, f = "top")) : o === "rightBottom" ? (v = u[2][0], g = u[2][1], n === "horizontal" ? (y = g + b, h = y + 5, f = "center") : (m = v + b, d = m + 5, f = "bottom")) : o === "leftTop" ? (v = u[0][0], g = n === "horizontal" ? u[0][1] : u[1][1], n === "horizontal" ? (y = g - b, h = y - 5, f = "center") : (m = v - b, d = m - 5, f = "right")) : o === "leftBottom" ? (v = n === "horizontal" ? u[1][0] : u[3][0], g = n === "horizontal" ? u[1][1] : u[2][1], n === "horizontal" ? (y = g + b, h = y + 5, f = "center") : (m = v - b, d = m - 5, f = "right")) : (v = (u[1][0] + u[2][0]) / 2, g = (u[1][1] + u[2][1]) / 2, n === "horizontal" ? (y = g + b, h = y + 5, f = "center") : (m = v + b, d = m + 5, f = "left")), n === "horizontal" ? (m = v, d = m) : (y = g, h = y), p = [[v, g], [m, y]];
}
l.label = {
linePoints: p,
x: d,
y: h,
verticalAlign: "middle",
textAlign: f,
inside: c
};
});
}
function GVe(t, e) {
t.eachSeriesByType("funnel", function(n) {
var r = n.getData(), i = r.mapDimension("value"), a = n.get("sort"), o = WVe(n, e), s = n.get("orient"), l = o.width, u = o.height, c = QVe(r, a), f = o.x, d = o.y, h = s === "horizontal" ? [_e(n.get("minSize"), u), _e(n.get("maxSize"), u)] : [_e(n.get("minSize"), l), _e(n.get("maxSize"), l)], p = r.getDataExtent(i), v = n.get("min"), g = n.get("max");
v == null && (v = Math.min(p[0], 0)), g == null && (g = p[1]);
var m = n.get("funnelAlign"), y = n.get("gap"), b = s === "horizontal" ? l : u, _ = (b - y * (r.count() - 1)) / r.count(), O = function(D, E) {
if (s === "horizontal") {
var R = r.get(i, D) || 0, N = Lt(R, [v, g], h, !0), V = void 0;
switch (m) {
case "top":
V = d;
break;
case "center":
V = d + (u - N) / 2;
break;
case "bottom":
V = d + (u - N);
break;
}
return [[E, V], [E, V + N]];
}
var B = r.get(i, D) || 0, W = Lt(B, [v, g], h, !0), F;
switch (m) {
case "left":
F = f;
break;
case "center":
F = f + (l - W) / 2;
break;
case "right":
F = f + l - W;
break;
}
return [[F, E], [F + W, E]];
};
a === "ascending" && (_ = -_, y = -y, s === "horizontal" ? f += l : d += u, c = c.reverse());
for (var S = 0; S < c.length; S++) {
var x = c[S], C = c[S + 1], T = r.getItemModel(x);
if (s === "horizontal") {
var w = T.get(["itemStyle", "width"]);
w == null ? w = _ : (w = _e(w, l), a === "ascending" && (w = -w));
var P = O(x, f), $ = O(C, f + w);
f += w + y, r.setItemLayout(x, {
points: P.concat($.slice().reverse())
});
} else {
var A = T.get(["itemStyle", "height"]);
A == null ? A = _ : (A = _e(A, u), a === "ascending" && (A = -A));
var P = O(x, d), $ = O(C, d + A);
d += A + y, r.setItemLayout(x, {
points: P.concat($.slice().reverse())
});
}
}
HVe(r);
});
}
function jVe(t) {
t.registerChartView(VVe), t.registerSeriesModel(FVe), t.registerLayout(GVe), t.registerProcessor(q0("funnel"));
}
var ZVe = 0.3, UVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._dataGroup = new Ve(), n._initialized = !1, n;
}
return e.prototype.init = function() {
this.group.add(this._dataGroup);
}, e.prototype.render = function(n, r, i, a) {
this._progressiveEls = null;
var o = this._dataGroup, s = n.getData(), l = this._data, u = n.coordinateSystem, c = u.dimensions, f = iW(n);
s.diff(l).add(d).update(h).remove(p).execute();
function d(g) {
var m = rW(s, o, g, c, u);
EP(m, s, g, f);
}
function h(g, m) {
var y = l.getItemGraphicEl(m), b = zne(s, g, c, u);
s.setItemGraphicEl(g, y), Ct(y, {
shape: {
points: b
}
}, n, g), uo(y), EP(y, s, g, f);
}
function p(g) {
var m = l.getItemGraphicEl(g);
o.remove(m);
}
if (!this._initialized) {
this._initialized = !0;
var v = XVe(u, n, function() {
setTimeout(function() {
o.removeClipPath();
});
});
o.setClipPath(v);
}
this._data = s;
}, e.prototype.incrementalPrepareRender = function(n, r, i) {
this._initialized = !0, this._data = null, this._dataGroup.removeAll();
}, e.prototype.incrementalRender = function(n, r, i) {
for (var a = r.getData(), o = r.coordinateSystem, s = o.dimensions, l = iW(r), u = this._progressiveEls = [], c = n.start; c < n.end; c++) {
var f = rW(a, this._dataGroup, c, s, o);
f.incremental = !0, EP(f, a, c, l), u.push(f);
}
}, e.prototype.remove = function() {
this._dataGroup && this._dataGroup.removeAll(), this._data = null;
}, e.type = "parallel", e;
}(zt)
);
function XVe(t, e, n) {
var r = t.model, i = t.getRect(), a = new mt({
shape: {
x: i.x,
y: i.y,
width: i.width,
height: i.height
}
}), o = r.get("layout") === "horizontal" ? "width" : "height";
return a.setShape(o, 0), Yt(a, {
shape: {
width: i.width,
height: i.height
}
}, e, n), a;
}
function zne(t, e, n, r) {
for (var i = [], a = 0; a < n.length; a++) {
var o = n[a], s = t.get(t.mapDimension(o), e);
YVe(s, r.getAxis(o).type) || i.push(r.dataToPoint(s, o));
}
return i;
}
function rW(t, e, n, r, i) {
var a = zne(t, n, r, i), o = new oi({
shape: {
points: a
},
// silent: true,
z2: 10
});
return e.add(o), t.setItemGraphicEl(n, o), o;
}
function iW(t) {
var e = t.get("smooth", !0);
return e === !0 && (e = ZVe), e = as(e), ou(e) && (e = 0), {
smooth: e
};
}
function EP(t, e, n, r) {
t.useStyle(e.getItemVisual(n, "style")), t.style.fill = null, t.setShape("smooth", r.smooth);
var i = e.getItemModel(n), a = i.getModel("emphasis");
Tr(t, i, "lineStyle"), bn(t, a.get("focus"), a.get("blurScope"), a.get("disabled"));
}
function YVe(t, e) {
return e === "category" ? t == null : t == null || isNaN(t);
}
var qVe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.visualStyleAccessPath = "lineStyle", n.visualDrawType = "stroke", n;
}
return e.prototype.getInitialData = function(n, r) {
return cs(null, this, {
useEncodeDefaulter: xe(KVe, null, this)
});
}, e.prototype.getRawIndicesByActiveState = function(n) {
var r = this.coordinateSystem, i = this.getData(), a = [];
return r.eachActiveState(i, function(o, s) {
n === o && a.push(i.getRawIndex(s));
}), a;
}, e.type = "series.parallel", e.dependencies = ["parallel"], e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "parallel",
parallelIndex: 0,
label: {
show: !1
},
inactiveOpacity: 0.05,
activeOpacity: 1,
lineStyle: {
width: 1,
opacity: 0.45,
type: "solid"
},
emphasis: {
label: {
show: !1
}
},
progressive: 500,
smooth: !1,
animationEasing: "linear"
}, e;
}(Ht)
);
function KVe(t) {
var e = t.ecModel.getComponent("parallel", t.get("parallelIndex"));
if (e) {
var n = {};
return k(e.dimensions, function(r) {
var i = JVe(r);
n[r] = i;
}), n;
}
}
function JVe(t) {
return +t.replace("dim", "");
}
var eFe = ["lineStyle", "opacity"], tFe = {
seriesType: "parallel",
reset: function(t, e) {
var n = t.coordinateSystem, r = {
normal: t.get(["lineStyle", "opacity"]),
active: t.get("activeOpacity"),
inactive: t.get("inactiveOpacity")
};
return {
progress: function(i, a) {
n.eachActiveState(a, function(o, s) {
var l = r[o];
if (o === "normal" && a.hasItemOption) {
var u = a.getItemModel(s).get(eFe, !0);
u != null && (l = u);
}
var c = a.ensureUniqueItemVisual(s, "style");
c.opacity = l;
}, i.start, i.end);
}
};
}
};
function nFe(t) {
rFe(t), iFe(t);
}
function rFe(t) {
if (!t.parallel) {
var e = !1;
k(t.series, function(n) {
n && n.type === "parallel" && (e = !0);
}), e && (t.parallel = [{}]);
}
}
function iFe(t) {
var e = Qt(t.parallelAxis);
k(e, function(n) {
if (Ie(n)) {
var r = n.parallelIndex || 0, i = Qt(t.parallel)[r];
i && i.parallelAxisDefault && qe(n, i.parallelAxisDefault, !1);
}
});
}
var aFe = 5, oFe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
this._model = n, this._api = i, this._handlers || (this._handlers = {}, k(sFe, function(a, o) {
i.getZr().on(o, this._handlers[o] = xe(a, this));
}, this)), Pp(this, "_throttledDispatchExpand", n.get("axisExpandRate"), "fixRate");
}, e.prototype.dispose = function(n, r) {
Im(this, "_throttledDispatchExpand"), k(this._handlers, function(i, a) {
r.getZr().off(a, i);
}), this._handlers = null;
}, e.prototype._throttledDispatchExpand = function(n) {
this._dispatchExpand(n);
}, e.prototype._dispatchExpand = function(n) {
n && this._api.dispatchAction(le({
type: "parallelAxisExpand"
}, n));
}, e.type = "parallel", e;
}(Xt)
), sFe = {
mousedown: function(t) {
MP(this, "click") && (this._mouseDownPoint = [t.offsetX, t.offsetY]);
},
mouseup: function(t) {
var e = this._mouseDownPoint;
if (MP(this, "click") && e) {
var n = [t.offsetX, t.offsetY], r = Math.pow(e[0] - n[0], 2) + Math.pow(e[1] - n[1], 2);
if (r > aFe)
return;
var i = this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]);
i.behavior !== "none" && this._dispatchExpand({
axisExpandWindow: i.axisExpandWindow
});
}
this._mouseDownPoint = null;
},
mousemove: function(t) {
if (!(this._mouseDownPoint || !MP(this, "mousemove"))) {
var e = this._model, n = e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]), r = n.behavior;
r === "jump" && this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")), this._throttledDispatchExpand(r === "none" ? null : {
axisExpandWindow: n.axisExpandWindow,
// Jumping uses animation, and sliding suppresses animation.
animation: r === "jump" ? null : {
duration: 0
// Disable animation.
}
});
}
}
};
function MP(t, e) {
var n = t._model;
return n.get("axisExpandable") && n.get("axisExpandTriggerOn") === e;
}
var lFe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function() {
t.prototype.init.apply(this, arguments), this.mergeOption({});
}, e.prototype.mergeOption = function(n) {
var r = this.option;
n && qe(r, n, !0), this._initDimensions();
}, e.prototype.contains = function(n, r) {
var i = n.get("parallelIndex");
return i != null && r.getComponent("parallel", i) === this;
}, e.prototype.setAxisExpand = function(n) {
k(["axisExpandable", "axisExpandCenter", "axisExpandCount", "axisExpandWidth", "axisExpandWindow"], function(r) {
n.hasOwnProperty(r) && (this.option[r] = n[r]);
}, this);
}, e.prototype._initDimensions = function() {
var n = this.dimensions = [], r = this.parallelAxisIndex = [], i = Nt(this.ecModel.queryComponents({
mainType: "parallelAxis"
}), function(a) {
return (a.get("parallelIndex") || 0) === this.componentIndex;
}, this);
k(i, function(a) {
n.push("dim" + a.get("dim")), r.push(a.componentIndex);
});
}, e.type = "parallel", e.dependencies = ["parallelAxis"], e.layoutMode = "box", e.defaultOption = {
// zlevel: 0,
z: 0,
left: 80,
top: 60,
right: 80,
bottom: 60,
// width: {totalWidth} - left - right,
// height: {totalHeight} - top - bottom,
layout: "horizontal",
// FIXME
// naming?
axisExpandable: !1,
axisExpandCenter: null,
axisExpandCount: 0,
axisExpandWidth: 50,
axisExpandRate: 17,
axisExpandDebounce: 50,
// [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.
// Do not doc to user until necessary.
axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],
axisExpandTriggerOn: "click",
parallelAxisDefault: null
}, e;
}(rt)
), uFe = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i, a, o) {
var s = t.call(this, n, r, i) || this;
return s.type = a || "value", s.axisIndex = o, s;
}
return e.prototype.isHorizontal = function() {
return this.coordinateSystem.getModel().get("layout") !== "horizontal";
}, e;
}(Va)
);
function Hf(t, e, n, r, i, a) {
t = t || 0;
var o = n[1] - n[0];
if (i != null && (i = yd(i, [0, o])), a != null && (a = Math.max(a, i ?? 0)), r === "all") {
var s = Math.abs(e[1] - e[0]);
s = yd(s, [0, o]), i = a = yd(s, [i, a]), r = 0;
}
e[0] = yd(e[0], n), e[1] = yd(e[1], n);
var l = IP(e, r);
e[r] += t;
var u = i || 0, c = n.slice();
l.sign < 0 ? c[0] += u : c[1] -= u, e[r] = yd(e[r], c);
var f;
return f = IP(e, r), i != null && (f.sign !== l.sign || f.span < i) && (e[1 - r] = e[r] + l.sign * i), f = IP(e, r), a != null && f.span > a && (e[1 - r] = e[r] + f.sign * a), e;
}
function IP(t, e) {
var n = t[e] - t[1 - e];
return {
span: Math.abs(n),
sign: n > 0 ? -1 : n < 0 ? 1 : e ? -1 : 1
};
}
function yd(t, e) {
return Math.min(e[1] != null ? e[1] : 1 / 0, Math.max(e[0] != null ? e[0] : -1 / 0, t));
}
var DP = k, Vne = Math.min, Fne = Math.max, aW = Math.floor, cFe = Math.ceil, oW = mn, fFe = Math.PI, dFe = (
/** @class */
function() {
function t(e, n, r) {
this.type = "parallel", this._axesMap = Pe(), this._axesLayout = {}, this.dimensions = e.dimensions, this._model = e, this._init(e, n, r);
}
return t.prototype._init = function(e, n, r) {
var i = e.dimensions, a = e.parallelAxisIndex;
DP(i, function(o, s) {
var l = a[s], u = n.getComponent("parallelAxis", l), c = this._axesMap.set(o, new uFe(o, j0(u), [0, 0], u.get("type"), l)), f = c.type === "category";
c.onBand = f && u.get("boundaryGap"), c.inverse = u.get("inverse"), u.axis = c, c.model = u, c.coordinateSystem = u.coordinateSystem = this;
}, this);
}, t.prototype.update = function(e, n) {
this._updateAxesFromSeries(this._model, e);
}, t.prototype.containPoint = function(e) {
var n = this._makeLayoutInfo(), r = n.axisBase, i = n.layoutBase, a = n.pixelDimIndex, o = e[1 - a], s = e[a];
return o >= r && o <= r + n.axisLength && s >= i && s <= i + n.layoutLength;
}, t.prototype.getModel = function() {
return this._model;
}, t.prototype._updateAxesFromSeries = function(e, n) {
n.eachSeries(function(r) {
if (e.contains(r, n)) {
var i = r.getData();
DP(this.dimensions, function(a) {
var o = this._axesMap.get(a);
o.scale.unionExtentFromData(i, i.mapDimension(a)), Sf(o.scale, o.model);
}, this);
}
}, this);
}, t.prototype.resize = function(e, n) {
this._rect = Rn(e.getBoxLayoutParams(), {
width: n.getWidth(),
height: n.getHeight()
}), this._layoutAxes();
}, t.prototype.getRect = function() {
return this._rect;
}, t.prototype._makeLayoutInfo = function() {
var e = this._model, n = this._rect, r = ["x", "y"], i = ["width", "height"], a = e.get("layout"), o = a === "horizontal" ? 0 : 1, s = n[i[o]], l = [0, s], u = this.dimensions.length, c = Mb(e.get("axisExpandWidth"), l), f = Mb(e.get("axisExpandCount") || 0, [0, u]), d = e.get("axisExpandable") && u > 3 && u > f && f > 1 && c > 0 && s > 0, h = e.get("axisExpandWindow"), p;
if (h)
p = Mb(h[1] - h[0], l), h[1] = h[0] + p;
else {
p = Mb(c * (f - 1), l);
var v = e.get("axisExpandCenter") || aW(u / 2);
h = [c * v - p / 2], h[1] = h[0] + p;
}
var g = (s - p) / (u - f);
g < 3 && (g = 0);
var m = [aW(oW(h[0] / c, 1)) + 1, cFe(oW(h[1] / c, 1)) - 1], y = g / c * h[0];
return {
layout: a,
pixelDimIndex: o,
layoutBase: n[r[o]],
layoutLength: s,
axisBase: n[r[1 - o]],
axisLength: n[i[1 - o]],
axisExpandable: d,
axisExpandWidth: c,
axisCollapseWidth: g,
axisExpandWindow: h,
axisCount: u,
winInnerIndices: m,
axisExpandWindow0Pos: y
};
}, t.prototype._layoutAxes = function() {
var e = this._rect, n = this._axesMap, r = this.dimensions, i = this._makeLayoutInfo(), a = i.layout;
n.each(function(o) {
var s = [0, i.axisLength], l = o.inverse ? 1 : 0;
o.setExtent(s[l], s[1 - l]);
}), DP(r, function(o, s) {
var l = (i.axisExpandable ? pFe : hFe)(s, i), u = {
horizontal: {
x: l.position,
y: i.axisLength
},
vertical: {
x: 0,
y: l.position
}
}, c = {
horizontal: fFe / 2,
vertical: 0
}, f = [u[a].x + e.x, u[a].y + e.y], d = c[a], h = wi();
Cu(h, h, d), so(h, h, f), this._axesLayout[o] = {
position: f,
rotation: d,
transform: h,
axisNameAvailableWidth: l.axisNameAvailableWidth,
axisLabelShow: l.axisLabelShow,
nameTruncateMaxWidth: l.nameTruncateMaxWidth,
tickDirection: 1,
labelDirection: 1
};
}, this);
}, t.prototype.getAxis = function(e) {
return this._axesMap.get(e);
}, t.prototype.dataToPoint = function(e, n) {
return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e), n);
}, t.prototype.eachActiveState = function(e, n, r, i) {
r == null && (r = 0), i == null && (i = e.count());
var a = this._axesMap, o = this.dimensions, s = [], l = [];
k(o, function(g) {
s.push(e.mapDimension(g)), l.push(a.get(g).model);
});
for (var u = this.hasAxisBrushed(), c = r; c < i; c++) {
var f = void 0;
if (!u)
f = "normal";
else {
f = "active";
for (var d = e.getValues(s, c), h = 0, p = o.length; h < p; h++) {
var v = l[h].getActiveState(d[h]);
if (v === "inactive") {
f = "inactive";
break;
}
}
}
n(f, c);
}
}, t.prototype.hasAxisBrushed = function() {
for (var e = this.dimensions, n = this._axesMap, r = !1, i = 0, a = e.length; i < a; i++)
n.get(e[i]).model.getActiveState() !== "normal" && (r = !0);
return r;
}, t.prototype.axisCoordToPoint = function(e, n) {
var r = this._axesLayout[n];
return ro([e, 0], r.transform);
}, t.prototype.getAxisLayout = function(e) {
return Le(this._axesLayout[e]);
}, t.prototype.getSlidedAxisExpandWindow = function(e) {
var n = this._makeLayoutInfo(), r = n.pixelDimIndex, i = n.axisExpandWindow.slice(), a = i[1] - i[0], o = [0, n.axisExpandWidth * (n.axisCount - 1)];
if (!this.containPoint(e))
return {
behavior: "none",
axisExpandWindow: i
};
var s = e[r] - n.layoutBase - n.axisExpandWindow0Pos, l, u = "slide", c = n.axisCollapseWidth, f = this._model.get("axisExpandSlideTriggerArea"), d = f[0] != null;
if (c)
d && c && s < a * f[0] ? (u = "jump", l = s - a * f[2]) : d && c && s > a * (1 - f[0]) ? (u = "jump", l = s - a * (1 - f[2])) : (l = s - a * f[1]) >= 0 && (l = s - a * (1 - f[1])) <= 0 && (l = 0), l *= n.axisExpandWidth / c, l ? Hf(l, i, o, "all") : u = "none";
else {
var h = i[1] - i[0], p = o[1] * s / h;
i = [Fne(0, p - h / 2)], i[1] = Vne(o[1], i[0] + h), i[0] = i[1] - h;
}
return {
axisExpandWindow: i,
behavior: u
};
}, t;
}()
);
function Mb(t, e) {
return Vne(Fne(t, e[0]), e[1]);
}
function hFe(t, e) {
var n = e.layoutLength / (e.axisCount - 1);
return {
position: n * t,
axisNameAvailableWidth: n,
axisLabelShow: !0
};
}
function pFe(t, e) {
var n = e.layoutLength, r = e.axisExpandWidth, i = e.axisCount, a = e.axisCollapseWidth, o = e.winInnerIndices, s, l = a, u = !1, c;
return t < o[0] ? (s = t * a, c = a) : t <= o[1] ? (s = e.axisExpandWindow0Pos + t * r - e.axisExpandWindow[0], l = r, u = !0) : (s = n - (i - 1 - t) * a, c = a), {
position: s,
axisNameAvailableWidth: l,
axisLabelShow: u,
nameTruncateMaxWidth: c
};
}
function vFe(t, e) {
var n = [];
return t.eachComponent("parallel", function(r, i) {
var a = new dFe(r, t, e);
a.name = "parallel_" + i, a.resize(r, e), r.coordinateSystem = a, a.model = r, n.push(a);
}), t.eachSeries(function(r) {
if (r.get("coordinateSystem") === "parallel") {
var i = r.getReferringComponents("parallel", Dn).models[0];
r.coordinateSystem = i.coordinateSystem;
}
}), n;
}
var gFe = {
create: vFe
}, xE = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.activeIntervals = [], n;
}
return e.prototype.getAreaSelectStyle = function() {
return bf([
["fill", "color"],
["lineWidth", "borderWidth"],
["stroke", "borderColor"],
["width", "width"],
["opacity", "opacity"]
// Option decal is in `DecalObject` but style.decal is in `PatternObject`.
// So do not transfer decal directly.
])(this.getModel("areaSelectStyle"));
}, e.prototype.setActiveIntervals = function(n) {
var r = this.activeIntervals = Le(n);
if (r)
for (var i = r.length - 1; i >= 0; i--)
Wi(r[i]);
}, e.prototype.getActiveState = function(n) {
var r = this.activeIntervals;
if (!r.length)
return "normal";
if (n == null || isNaN(+n))
return "inactive";
if (r.length === 1) {
var i = r[0];
if (i[0] <= n && n <= i[1])
return "active";
} else
for (var a = 0, o = r.length; a < o; a++)
if (r[a][0] <= n && n <= r[a][1])
return "active";
return "inactive";
}, e;
}(rt)
);
xn(xE, Mp);
var xf = !0, Hm = Math.min, Xh = Math.max, mFe = Math.pow, yFe = 1e4, bFe = 6, _Fe = 6, sW = "globalPan", OFe = {
w: [0, 0],
e: [0, 1],
n: [1, 0],
s: [1, 1]
}, SFe = {
w: "ew",
e: "ew",
n: "ns",
s: "ns",
ne: "nesw",
sw: "nesw",
nw: "nwse",
se: "nwse"
}, lW = {
brushStyle: {
lineWidth: 2,
stroke: "rgba(210,219,238,0.3)",
fill: "#D2DBEE"
},
transformable: !0,
brushMode: "single",
removeOnClick: !1
}, xFe = 0, eL = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this) || this;
return r._track = [], r._covers = [], r._handlers = {}, process.env.NODE_ENV !== "production" && ke(n), r._zr = n, r.group = new Ve(), r._uid = "brushController_" + xFe++, k(EFe, function(i, a) {
this._handlers[a] = xe(i, this);
}, r), r;
}
return e.prototype.enableBrush = function(n) {
return process.env.NODE_ENV !== "production" && ke(this._mounted), this._brushType && this._doDisableBrush(), n.brushType && this._doEnableBrush(n), this;
}, e.prototype._doEnableBrush = function(n) {
var r = this._zr;
this._enableGlobalPan || hBe(r, sW, this._uid), k(this._handlers, function(i, a) {
r.on(a, i);
}), this._brushType = n.brushType, this._brushOption = qe(Le(lW), n, !0);
}, e.prototype._doDisableBrush = function() {
var n = this._zr;
pBe(n, sW, this._uid), k(this._handlers, function(r, i) {
n.off(i, r);
}), this._brushType = this._brushOption = null;
}, e.prototype.setPanels = function(n) {
if (n && n.length) {
var r = this._panels = {};
k(n, function(i) {
r[i.panelId] = Le(i);
});
} else
this._panels = null;
return this;
}, e.prototype.mount = function(n) {
n = n || {}, process.env.NODE_ENV !== "production" && (this._mounted = !0), this._enableGlobalPan = n.enableGlobalPan;
var r = this.group;
return this._zr.add(r), r.attr({
x: n.x || 0,
y: n.y || 0,
rotation: n.rotation || 0,
scaleX: n.scaleX || 1,
scaleY: n.scaleY || 1
}), this._transform = r.getLocalTransform(), this;
}, e.prototype.updateCovers = function(n) {
process.env.NODE_ENV !== "production" && ke(this._mounted), n = ce(n, function(d) {
return qe(Le(lW), d, !0);
});
var r = "\0-brush-index-", i = this._covers, a = this._covers = [], o = this, s = this._creatingCover;
return new Xs(i, n, u, l).add(c).update(c).remove(f).execute(), this;
function l(d, h) {
return (d.id != null ? d.id : r + h) + "-" + d.brushType;
}
function u(d, h) {
return l(d.__brushOption, h);
}
function c(d, h) {
var p = n[d];
if (h != null && i[h] === s)
a[d] = i[h];
else {
var v = a[d] = h != null ? (i[h].__brushOption = p, i[h]) : Qne(o, Wne(o, p));
tL(o, v);
}
}
function f(d) {
i[d] !== s && o.group.remove(i[d]);
}
}, e.prototype.unmount = function() {
if (!(process.env.NODE_ENV !== "production" && !this._mounted))
return this.enableBrush(!1), wE(this), this._zr.remove(this.group), process.env.NODE_ENV !== "production" && (this._mounted = !1), this;
}, e.prototype.dispose = function() {
this.unmount(), this.off();
}, e;
}(La)
);
function Wne(t, e) {
var n = Sw[e.brushType].createCover(t, e);
return n.__brushOption = e, Gne(n, e), t.group.add(n), n;
}
function Qne(t, e) {
var n = nL(e);
return n.endCreating && (n.endCreating(t, e), Gne(e, e.__brushOption)), e;
}
function Hne(t, e) {
var n = e.__brushOption;
nL(e).updateCoverShape(t, e, n.range, n);
}
function Gne(t, e) {
var n = e.z;
n == null && (n = yFe), t.traverse(function(r) {
r.z = n, r.z2 = n;
});
}
function tL(t, e) {
nL(e).updateCommon(t, e), Hne(t, e);
}
function nL(t) {
return Sw[t.__brushOption.brushType];
}
function rL(t, e, n) {
var r = t._panels;
if (!r)
return xf;
var i, a = t._transform;
return k(r, function(o) {
o.isTargetByCursor(e, n, a) && (i = o);
}), i;
}
function jne(t, e) {
var n = t._panels;
if (!n)
return xf;
var r = e.__brushOption.panelId;
return r != null ? n[r] : xf;
}
function wE(t) {
var e = t._covers, n = e.length;
return k(e, function(r) {
t.group.remove(r);
}, t), e.length = 0, !!n;
}
function wf(t, e) {
var n = ce(t._covers, function(r) {
var i = r.__brushOption, a = Le(i.range);
return {
brushType: i.brushType,
panelId: i.panelId,
range: a
};
});
t.trigger("brush", {
areas: n,
isEnd: !!e.isEnd,
removeOnClick: !!e.removeOnClick
});
}
function wFe(t) {
var e = t._track;
if (!e.length)
return !1;
var n = e[e.length - 1], r = e[0], i = n[0] - r[0], a = n[1] - r[1], o = mFe(i * i + a * a, 0.5);
return o > bFe;
}
function Zne(t) {
var e = t.length - 1;
return e < 0 && (e = 0), [t[0], t[e]];
}
function Une(t, e, n, r) {
var i = new Ve();
return i.add(new mt({
name: "main",
style: iL(n),
silent: !0,
draggable: !0,
cursor: "move",
drift: Ue(uW, t, e, i, ["n", "s", "w", "e"]),
ondragend: Ue(wf, e, {
isEnd: !0
})
})), k(r, function(a) {
i.add(new mt({
name: a.join(""),
style: {
opacity: 0
},
draggable: !0,
silent: !0,
invisible: !0,
drift: Ue(uW, t, e, i, a),
ondragend: Ue(wf, e, {
isEnd: !0
})
}));
}), i;
}
function Xne(t, e, n, r) {
var i = r.brushStyle.lineWidth || 0, a = Xh(i, _Fe), o = n[0][0], s = n[1][0], l = o - i / 2, u = s - i / 2, c = n[0][1], f = n[1][1], d = c - a + i / 2, h = f - a + i / 2, p = c - o, v = f - s, g = p + i, m = v + i;
bs(t, e, "main", o, s, p, v), r.transformable && (bs(t, e, "w", l, u, a, m), bs(t, e, "e", d, u, a, m), bs(t, e, "n", l, u, g, a), bs(t, e, "s", l, h, g, a), bs(t, e, "nw", l, u, a, a), bs(t, e, "ne", d, u, a, a), bs(t, e, "sw", l, h, a, a), bs(t, e, "se", d, h, a, a));
}
function CE(t, e) {
var n = e.__brushOption, r = n.transformable, i = e.childAt(0);
i.useStyle(iL(n)), i.attr({
silent: !r,
cursor: r ? "move" : "default"
}), k([["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]], function(a) {
var o = e.childOfName(a.join("")), s = a.length === 1 ? TE(t, a[0]) : TFe(t, a);
o && o.attr({
silent: !r,
invisible: !r,
cursor: r ? SFe[s] + "-resize" : null
});
});
}
function bs(t, e, n, r, i, a, o) {
var s = e.childOfName(n);
s && s.setShape($Fe(aL(t, e, [[r, i], [r + a, i + o]])));
}
function iL(t) {
return Re({
strokeNoScale: !0
}, t.brushStyle);
}
function Yne(t, e, n, r) {
var i = [Hm(t, n), Hm(e, r)], a = [Xh(t, n), Xh(e, r)];
return [
[i[0], a[0]],
[i[1], a[1]]
// y range
];
}
function CFe(t) {
return ql(t.group);
}
function TE(t, e) {
var n = {
w: "left",
e: "right",
n: "top",
s: "bottom"
}, r = {
left: "w",
right: "e",
top: "n",
bottom: "s"
}, i = ew(n[e], CFe(t));
return r[i];
}
function TFe(t, e) {
var n = [TE(t, e[0]), TE(t, e[1])];
return (n[0] === "e" || n[0] === "w") && n.reverse(), n.join("");
}
function uW(t, e, n, r, i, a) {
var o = n.__brushOption, s = t.toRectRange(o.range), l = qne(e, i, a);
k(r, function(u) {
var c = OFe[u];
s[c[0]][c[1]] += l[c[0]];
}), o.range = t.fromRectRange(Yne(s[0][0], s[1][0], s[0][1], s[1][1])), tL(e, n), wf(e, {
isEnd: !1
});
}
function PFe(t, e, n, r) {
var i = e.__brushOption.range, a = qne(t, n, r);
k(i, function(o) {
o[0] += a[0], o[1] += a[1];
}), tL(t, e), wf(t, {
isEnd: !1
});
}
function qne(t, e, n) {
var r = t.group, i = r.transformCoordToLocal(e, n), a = r.transformCoordToLocal(0, 0);
return [i[0] - a[0], i[1] - a[1]];
}
function aL(t, e, n) {
var r = jne(t, e);
return r && r !== xf ? r.clipPath(n, t._transform) : Le(n);
}
function $Fe(t) {
var e = Hm(t[0][0], t[1][0]), n = Hm(t[0][1], t[1][1]), r = Xh(t[0][0], t[1][0]), i = Xh(t[0][1], t[1][1]);
return {
x: e,
y: n,
width: r - e,
height: i - n
};
}
function AFe(t, e, n) {
if (
// Check active
!(!t._brushType || MFe(t, e.offsetX, e.offsetY))
) {
var r = t._zr, i = t._covers, a = rL(t, e, n);
if (!t._dragging)
for (var o = 0; o < i.length; o++) {
var s = i[o].__brushOption;
if (a && (a === xf || s.panelId === a.panelId) && Sw[s.brushType].contain(i[o], n[0], n[1]))
return;
}
a && r.setCursorStyle("crosshair");
}
}
function PE(t) {
var e = t.event;
e.preventDefault && e.preventDefault();
}
function $E(t, e, n) {
return t.childOfName("main").contain(e, n);
}
function Kne(t, e, n, r) {
var i = t._creatingCover, a = t._creatingPanel, o = t._brushOption, s;
if (t._track.push(n.slice()), wFe(t) || i) {
if (a && !i) {
o.brushMode === "single" && wE(t);
var l = Le(o);
l.brushType = cW(l.brushType, a), l.panelId = a === xf ? null : a.panelId, i = t._creatingCover = Wne(t, l), t._covers.push(i);
}
if (i) {
var u = Sw[cW(t._brushType, a)], c = i.__brushOption;
c.range = u.getCreatingRange(aL(t, i, t._track)), r && (Qne(t, i), u.updateCommon(t, i)), Hne(t, i), s = {
isEnd: r
};
}
} else r && o.brushMode === "single" && o.removeOnClick && rL(t, e, n) && wE(t) && (s = {
isEnd: r,
removeOnClick: !0
});
return s;
}
function cW(t, e) {
return t === "auto" ? (process.env.NODE_ENV !== "production" && ke(e && e.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"'), e.defaultBrushType) : t;
}
var EFe = {
mousedown: function(t) {
if (this._dragging)
fW(this, t);
else if (!t.target || !t.target.draggable) {
PE(t);
var e = this.group.transformCoordToLocal(t.offsetX, t.offsetY);
this._creatingCover = null;
var n = this._creatingPanel = rL(this, t, e);
n && (this._dragging = !0, this._track = [e.slice()]);
}
},
mousemove: function(t) {
var e = t.offsetX, n = t.offsetY, r = this.group.transformCoordToLocal(e, n);
if (AFe(this, t, r), this._dragging) {
PE(t);
var i = Kne(this, t, r, !1);
i && wf(this, i);
}
},
mouseup: function(t) {
fW(this, t);
}
};
function fW(t, e) {
if (t._dragging) {
PE(e);
var n = e.offsetX, r = e.offsetY, i = t.group.transformCoordToLocal(n, r), a = Kne(t, e, i, !0);
t._dragging = !1, t._track = [], t._creatingCover = null, a && wf(t, a);
}
}
function MFe(t, e, n) {
var r = t._zr;
return e < 0 || e > r.getWidth() || n < 0 || n > r.getHeight();
}
var Sw = {
lineX: dW(0),
lineY: dW(1),
rect: {
createCover: function(t, e) {
function n(r) {
return r;
}
return Une({
toRectRange: n,
fromRectRange: n
}, t, e, [["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]]);
},
getCreatingRange: function(t) {
var e = Zne(t);
return Yne(e[1][0], e[1][1], e[0][0], e[0][1]);
},
updateCoverShape: function(t, e, n, r) {
Xne(t, e, n, r);
},
updateCommon: CE,
contain: $E
},
polygon: {
createCover: function(t, e) {
var n = new Ve();
return n.add(new oi({
name: "main",
style: iL(e),
silent: !0
})), n;
},
getCreatingRange: function(t) {
return t;
},
endCreating: function(t, e) {
e.remove(e.childAt(0)), e.add(new ai({
name: "main",
draggable: !0,
drift: Ue(PFe, t, e),
ondragend: Ue(wf, t, {
isEnd: !0
})
}));
},
updateCoverShape: function(t, e, n, r) {
e.childAt(0).setShape({
points: aL(t, e, n)
});
},
updateCommon: CE,
contain: $E
}
};
function dW(t) {
return {
createCover: function(e, n) {
return Une({
toRectRange: function(r) {
var i = [r, [0, 100]];
return t && i.reverse(), i;
},
fromRectRange: function(r) {
return r[t];
}
}, e, n, [[["w"], ["e"]], [["n"], ["s"]]][t]);
},
getCreatingRange: function(e) {
var n = Zne(e), r = Hm(n[0][t], n[1][t]), i = Xh(n[0][t], n[1][t]);
return [r, i];
},
updateCoverShape: function(e, n, r, i) {
var a, o = jne(e, n);
if (o !== xf && o.getLinearBrushOtherExtent)
a = o.getLinearBrushOtherExtent(t);
else {
var s = e._zr;
a = [0, [s.getWidth(), s.getHeight()][1 - t]];
}
var l = [r, a];
t && l.reverse(), Xne(e, n, l, i);
},
updateCommon: CE,
contain: $E
};
}
function Jne(t) {
return t = oL(t), function(e) {
return GR(e, t);
};
}
function ere(t, e) {
return t = oL(t), function(n) {
var r = e ?? n, i = r ? t.width : t.height, a = r ? t.x : t.y;
return [a, a + (i || 0)];
};
}
function tre(t, e, n) {
var r = oL(t);
return function(i, a) {
return r.contain(a[0], a[1]) && !yw(i, e, n);
};
}
function oL(t) {
return Je.create(t);
}
var IFe = ["axisLine", "axisTickLabel", "axisName"], DFe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r) {
t.prototype.init.apply(this, arguments), (this._brushController = new eL(r.getZr())).on("brush", xe(this._onBrush, this));
}, e.prototype.render = function(n, r, i, a) {
if (!RFe(n, r, a)) {
this.axisModel = n, this.api = i, this.group.removeAll();
var o = this._axisGroup;
if (this._axisGroup = new Ve(), this.group.add(this._axisGroup), !!n.get("show")) {
var s = LFe(n, r), l = s.coordinateSystem, u = n.getAreaSelectStyle(), c = u.width, f = n.axis.dim, d = l.getAxisLayout(f), h = le({
strokeContainThreshold: c
}, d), p = new Jr(n, h);
k(IFe, p.add, p), this._axisGroup.add(p.getGroup()), this._refreshBrushController(h, u, n, s, c, i), Q0(o, this._axisGroup, n);
}
}
}, e.prototype._refreshBrushController = function(n, r, i, a, o, s) {
var l = i.axis.getExtent(), u = l[1] - l[0], c = Math.min(30, Math.abs(u) * 0.1), f = Je.create({
x: l[0],
y: -o / 2,
width: u,
height: o
});
f.x -= c, f.width += 2 * c, this._brushController.mount({
enableGlobalPan: !0,
rotation: n.rotation,
x: n.position[0],
y: n.position[1]
}).setPanels([{
panelId: "pl",
clipPath: Jne(f),
isTargetByCursor: tre(f, s, a),
getLinearBrushOtherExtent: ere(f, 0)
}]).enableBrush({
brushType: "lineX",
brushStyle: r,
removeOnClick: !0
}).updateCovers(kFe(i));
}, e.prototype._onBrush = function(n) {
var r = n.areas, i = this.axisModel, a = i.axis, o = ce(r, function(s) {
return [a.coordToData(s.range[0], !0), a.coordToData(s.range[1], !0)];
});
(!i.option.realtime === n.isEnd || n.removeOnClick) && this.api.dispatchAction({
type: "axisAreaSelect",
parallelAxisId: i.id,
intervals: o
});
}, e.prototype.dispose = function() {
this._brushController.dispose();
}, e.type = "parallelAxis", e;
}(Xt)
);
function RFe(t, e, n) {
return n && n.type === "axisAreaSelect" && e.findComponents({
mainType: "parallelAxis",
query: n
})[0] === t;
}
function kFe(t) {
var e = t.axis;
return ce(t.activeIntervals, function(n) {
return {
brushType: "lineX",
panelId: "pl",
range: [e.dataToCoord(n[0], !0), e.dataToCoord(n[1], !0)]
};
});
}
function LFe(t, e) {
return e.getComponent("parallel", t.get("parallelIndex"));
}
var NFe = {
type: "axisAreaSelect",
event: "axisAreaSelected"
// update: 'updateVisual'
};
function BFe(t) {
t.registerAction(NFe, function(e, n) {
n.eachComponent({
mainType: "parallelAxis",
query: e
}, function(r) {
r.axis.model.setActiveIntervals(e.intervals);
});
}), t.registerAction("parallelAxisExpand", function(e, n) {
n.eachComponent({
mainType: "parallel",
query: e
}, function(r) {
r.setAxisExpand(e);
});
});
}
var zFe = {
type: "value",
areaSelectStyle: {
width: 20,
borderWidth: 1,
borderColor: "rgba(160,197,232)",
color: "rgba(160,197,232)",
opacity: 0.3
},
realtime: !0,
z: 10
};
function nre(t) {
t.registerComponentView(oFe), t.registerComponentModel(lFe), t.registerCoordinateSystem("parallel", gFe), t.registerPreprocessor(nFe), t.registerComponentModel(xE), t.registerComponentView(DFe), Uh(t, "parallel", xE, zFe), BFe(t);
}
function VFe(t) {
at(nre), t.registerChartView(UVe), t.registerSeriesModel(qVe), t.registerVisual(t.PRIORITY.VISUAL.BRUSH, tFe);
}
var FFe = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.cpx2 = 0, this.cpy2 = 0, this.extent = 0;
}
return t;
}()
), WFe = (
/** @class */
function(t) {
q(e, t);
function e(n) {
return t.call(this, n) || this;
}
return e.prototype.getDefaultShape = function() {
return new FFe();
}, e.prototype.buildPath = function(n, r) {
var i = r.extent;
n.moveTo(r.x1, r.y1), n.bezierCurveTo(r.cpx1, r.cpy1, r.cpx2, r.cpy2, r.x2, r.y2), r.orient === "vertical" ? (n.lineTo(r.x2 + i, r.y2), n.bezierCurveTo(r.cpx2 + i, r.cpy2, r.cpx1 + i, r.cpy1, r.x1 + i, r.y1)) : (n.lineTo(r.x2, r.y2 + i), n.bezierCurveTo(r.cpx2, r.cpy2 + i, r.cpx1, r.cpy1 + i, r.x1, r.y1 + i)), n.closePath();
}, e.prototype.highlight = function() {
Zs(this);
}, e.prototype.downplay = function() {
Us(this);
}, e;
}(ot)
), QFe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._focusAdjacencyDisabled = !1, n;
}
return e.prototype.render = function(n, r, i) {
var a = this, o = n.getGraph(), s = this.group, l = n.layoutInfo, u = l.width, c = l.height, f = n.getData(), d = n.getData("edge"), h = n.get("orient");
this._model = n, s.removeAll(), s.x = l.x, s.y = l.y, o.eachEdge(function(p) {
var v = new WFe(), g = Fe(v);
g.dataIndex = p.dataIndex, g.seriesIndex = n.seriesIndex, g.dataType = "edge";
var m = p.getModel(), y = m.getModel("lineStyle"), b = y.get("curveness"), _ = p.node1.getLayout(), O = p.node1.getModel(), S = O.get("localX"), x = O.get("localY"), C = p.node2.getLayout(), T = p.node2.getModel(), w = T.get("localX"), P = T.get("localY"), $ = p.getLayout(), A, D, E, R, N, V, B, W;
v.shape.extent = Math.max(1, $.dy), v.shape.orient = h, h === "vertical" ? (A = (S != null ? S * u : _.x) + $.sy, D = (x != null ? x * c : _.y) + _.dy, E = (w != null ? w * u : C.x) + $.ty, R = P != null ? P * c : C.y, N = A, V = D * (1 - b) + R * b, B = E, W = D * b + R * (1 - b)) : (A = (S != null ? S * u : _.x) + _.dx, D = (x != null ? x * c : _.y) + $.sy, E = w != null ? w * u : C.x, R = (P != null ? P * c : C.y) + $.ty, N = A * (1 - b) + E * b, V = D, B = A * b + E * (1 - b), W = R), v.setShape({
x1: A,
y1: D,
x2: E,
y2: R,
cpx1: N,
cpy1: V,
cpx2: B,
cpy2: W
}), v.useStyle(y.getItemStyle()), hW(v.style, h, p);
var F = "" + m.get("value"), Q = er(m, "edgeLabel");
Pr(v, Q, {
labelFetcher: {
getFormattedLabel: function(ee, oe, K, ie, X, H) {
return n.getFormattedLabel(
ee,
oe,
"edge",
ie,
// ensure edgeLabel formatter is provided
// to prevent the inheritance from `label.formatter` of the series
Ui(X, Q.normal && Q.normal.get("formatter"), F),
H
);
}
},
labelDataIndex: p.dataIndex,
defaultText: F
}), v.setTextConfig({
position: "inside"
});
var Z = m.getModel("emphasis");
Tr(v, m, "lineStyle", function(ee) {
var oe = ee.getItemStyle();
return hW(oe, h, p), oe;
}), s.add(v), d.setItemGraphicEl(p.dataIndex, v);
var ne = Z.get("focus");
bn(v, ne === "adjacency" ? p.getAdjacentDataIndices() : ne === "trajectory" ? p.getTrajectoryDataIndices() : ne, Z.get("blurScope"), Z.get("disabled"));
}), o.eachNode(function(p) {
var v = p.getLayout(), g = p.getModel(), m = g.get("localX"), y = g.get("localY"), b = g.getModel("emphasis"), _ = g.get(["itemStyle", "borderRadius"]) || 0, O = new mt({
shape: {
x: m != null ? m * u : v.x,
y: y != null ? y * c : v.y,
width: v.dx,
height: v.dy,
r: _
},
style: g.getModel("itemStyle").getItemStyle(),
z2: 10
});
Pr(O, er(g), {
labelFetcher: {
getFormattedLabel: function(x, C) {
return n.getFormattedLabel(x, C, "node");
}
},
labelDataIndex: p.dataIndex,
defaultText: p.id
}), O.disableLabelAnimation = !0, O.setStyle("fill", p.getVisual("color")), O.setStyle("decal", p.getVisual("style").decal), Tr(O, g), s.add(O), f.setItemGraphicEl(p.dataIndex, O), Fe(O).dataType = "node";
var S = b.get("focus");
bn(O, S === "adjacency" ? p.getAdjacentDataIndices() : S === "trajectory" ? p.getTrajectoryDataIndices() : S, b.get("blurScope"), b.get("disabled"));
}), f.eachItemGraphicEl(function(p, v) {
var g = f.getItemModel(v);
g.get("draggable") && (p.drift = function(m, y) {
a._focusAdjacencyDisabled = !0, this.shape.x += m, this.shape.y += y, this.dirty(), i.dispatchAction({
type: "dragNode",
seriesId: n.id,
dataIndex: f.getRawIndex(v),
localX: this.shape.x / u,
localY: this.shape.y / c
});
}, p.ondragend = function() {
a._focusAdjacencyDisabled = !1;
}, p.draggable = !0, p.cursor = "move");
}), !this._data && n.isAnimationEnabled() && s.setClipPath(HFe(s.getBoundingRect(), n, function() {
s.removeClipPath();
})), this._data = n.getData();
}, e.prototype.dispose = function() {
}, e.type = "sankey", e;
}(zt)
);
function hW(t, e, n) {
switch (t.fill) {
case "source":
t.fill = n.node1.getVisual("color"), t.decal = n.node1.getVisual("style").decal;
break;
case "target":
t.fill = n.node2.getVisual("color"), t.decal = n.node2.getVisual("style").decal;
break;
case "gradient":
var r = n.node1.getVisual("color"), i = n.node2.getVisual("color");
Oe(r) && Oe(i) && (t.fill = new yp(0, 0, +(e === "horizontal"), +(e === "vertical"), [{
color: r,
offset: 0
}, {
color: i,
offset: 1
}]));
}
}
function HFe(t, e, n) {
var r = new mt({
shape: {
x: t.x - 10,
y: t.y - 10,
width: 0,
height: t.height + 20
}
});
return Yt(r, {
shape: {
width: t.width + 20
}
}, e, n), r;
}
var GFe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.getInitialData = function(n, r) {
var i = n.edges || n.links, a = n.data || n.nodes, o = n.levels;
this.levelModels = [];
for (var s = this.levelModels, l = 0; l < o.length; l++)
if (o[l].depth != null && o[l].depth >= 0)
s[o[l].depth] = new Wt(o[l], this, r);
else if (process.env.NODE_ENV !== "production")
throw new Error("levels[i].depth is mandatory and should be natural number");
if (a && i) {
var u = Bne(a, i, this, !0, c);
return u.data;
}
function c(f, d) {
f.wrapMethod("getItemModel", function(h, p) {
var v = h.parentModel, g = v.getData().getItemLayout(p);
if (g) {
var m = g.depth, y = v.levelModels[m];
y && (h.parentModel = y);
}
return h;
}), d.wrapMethod("getItemModel", function(h, p) {
var v = h.parentModel, g = v.getGraph().getEdgeByIndex(p), m = g.node1.getLayout();
if (m) {
var y = m.depth, b = v.levelModels[y];
b && (h.parentModel = b);
}
return h;
});
}
}, e.prototype.setNodePosition = function(n, r) {
var i = this.option.data || this.option.nodes, a = i[n];
a.localX = r[0], a.localY = r[1];
}, e.prototype.getGraph = function() {
return this.getData().graph;
}, e.prototype.getEdgeData = function() {
return this.getGraph().edgeData;
}, e.prototype.formatTooltip = function(n, r, i) {
function a(h) {
return isNaN(h) || h == null;
}
if (i === "edge") {
var o = this.getDataParams(n, i), s = o.data, l = o.value, u = s.source + " -- " + s.target;
return tr("nameValue", {
name: u,
value: l,
noValue: a(l)
});
} else {
var c = this.getGraph().getNodeByIndex(n), f = c.getLayout().value, d = this.getDataParams(n, i).data.name;
return tr("nameValue", {
name: d != null ? d + "" : null,
value: f,
noValue: a(f)
});
}
}, e.prototype.optionUpdated = function() {
}, e.prototype.getDataParams = function(n, r) {
var i = t.prototype.getDataParams.call(this, n, r);
if (i.value == null && r === "node") {
var a = this.getGraph().getNodeByIndex(n), o = a.getLayout().value;
i.value = o;
}
return i;
}, e.type = "series.sankey", e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "view",
left: "5%",
top: "5%",
right: "20%",
bottom: "5%",
orient: "horizontal",
nodeWidth: 20,
nodeGap: 8,
draggable: !0,
layoutIterations: 32,
label: {
show: !0,
position: "right",
fontSize: 12
},
edgeLabel: {
show: !1,
fontSize: 12
},
levels: [],
nodeAlign: "justify",
lineStyle: {
color: "#314656",
opacity: 0.2,
curveness: 0.5
},
emphasis: {
label: {
show: !0
},
lineStyle: {
opacity: 0.5
}
},
select: {
itemStyle: {
borderColor: "#212121"
}
},
animationEasing: "linear",
animationDuration: 1e3
}, e;
}(Ht)
);
function jFe(t, e) {
t.eachSeriesByType("sankey", function(n) {
var r = n.get("nodeWidth"), i = n.get("nodeGap"), a = ZFe(n, e);
n.layoutInfo = a;
var o = a.width, s = a.height, l = n.getGraph(), u = l.nodes, c = l.edges;
XFe(u);
var f = Nt(u, function(v) {
return v.getLayout().value === 0;
}), d = f.length !== 0 ? 0 : n.get("layoutIterations"), h = n.get("orient"), p = n.get("nodeAlign");
UFe(u, c, r, i, o, s, d, h, p);
});
}
function ZFe(t, e) {
return Rn(t.getBoxLayoutParams(), {
width: e.getWidth(),
height: e.getHeight()
});
}
function UFe(t, e, n, r, i, a, o, s, l) {
YFe(t, e, n, i, a, s, l), eWe(t, e, a, i, r, o, s), uWe(t, s);
}
function XFe(t) {
k(t, function(e) {
var n = Jl(e.outEdges, NO), r = Jl(e.inEdges, NO), i = e.getValue() || 0, a = Math.max(n, r, i);
e.setLayout({
value: a
}, !0);
});
}
function YFe(t, e, n, r, i, a, o) {
for (var s = [], l = [], u = [], c = [], f = 0, d = 0; d < e.length; d++)
s[d] = 1;
for (var d = 0; d < t.length; d++)
l[d] = t[d].inEdges.length, l[d] === 0 && u.push(t[d]);
for (var h = -1; u.length; ) {
for (var p = 0; p < u.length; p++) {
var v = u[p], g = v.hostGraph.data.getRawDataItem(v.dataIndex), m = g.depth != null && g.depth >= 0;
m && g.depth > h && (h = g.depth), v.setLayout({
depth: m ? g.depth : f
}, !0), a === "vertical" ? v.setLayout({
dy: n
}, !0) : v.setLayout({
dx: n
}, !0);
for (var y = 0; y < v.outEdges.length; y++) {
var b = v.outEdges[y], _ = e.indexOf(b);
s[_] = 0;
var O = b.node2, S = t.indexOf(O);
--l[S] === 0 && c.indexOf(O) < 0 && c.push(O);
}
}
++f, u = c, c = [];
}
for (var d = 0; d < s.length; d++)
if (s[d] === 1)
throw new Error("Sankey is a DAG, the original data has cycle!");
var x = h > f - 1 ? h : f - 1;
o && o !== "left" && qFe(t, o, a, x);
var C = a === "vertical" ? (i - n) / x : (r - n) / x;
JFe(t, C, a);
}
function rre(t) {
var e = t.hostGraph.data.getRawDataItem(t.dataIndex);
return e.depth != null && e.depth >= 0;
}
function qFe(t, e, n, r) {
if (e === "right") {
for (var i = [], a = t, o = 0; a.length; ) {
for (var s = 0; s < a.length; s++) {
var l = a[s];
l.setLayout({
skNodeHeight: o
}, !0);
for (var u = 0; u < l.inEdges.length; u++) {
var c = l.inEdges[u];
i.indexOf(c.node1) < 0 && i.push(c.node1);
}
}
a = i, i = [], ++o;
}
k(t, function(f) {
rre(f) || f.setLayout({
depth: Math.max(0, r - f.getLayout().skNodeHeight)
}, !0);
});
} else e === "justify" && KFe(t, r);
}
function KFe(t, e) {
k(t, function(n) {
!rre(n) && !n.outEdges.length && n.setLayout({
depth: e
}, !0);
});
}
function JFe(t, e, n) {
k(t, function(r) {
var i = r.getLayout().depth * e;
n === "vertical" ? r.setLayout({
y: i
}, !0) : r.setLayout({
x: i
}, !0);
});
}
function eWe(t, e, n, r, i, a, o) {
var s = tWe(t, o);
nWe(s, e, n, r, i, o), RP(s, i, n, r, o);
for (var l = 1; a > 0; a--)
l *= 0.99, rWe(s, l, o), RP(s, i, n, r, o), lWe(s, l, o), RP(s, i, n, r, o);
}
function tWe(t, e) {
var n = [], r = e === "vertical" ? "y" : "x", i = $A(t, function(a) {
return a.getLayout()[r];
});
return i.keys.sort(function(a, o) {
return a - o;
}), k(i.keys, function(a) {
n.push(i.buckets.get(a));
}), n;
}
function nWe(t, e, n, r, i, a) {
var o = 1 / 0;
k(t, function(s) {
var l = s.length, u = 0;
k(s, function(f) {
u += f.getLayout().value;
});
var c = a === "vertical" ? (r - (l - 1) * i) / u : (n - (l - 1) * i) / u;
c < o && (o = c);
}), k(t, function(s) {
k(s, function(l, u) {
var c = l.getLayout().value * o;
a === "vertical" ? (l.setLayout({
x: u
}, !0), l.setLayout({
dx: c
}, !0)) : (l.setLayout({
y: u
}, !0), l.setLayout({
dy: c
}, !0));
});
}), k(e, function(s) {
var l = +s.getValue() * o;
s.setLayout({
dy: l
}, !0);
});
}
function RP(t, e, n, r, i) {
var a = i === "vertical" ? "x" : "y";
k(t, function(o) {
o.sort(function(v, g) {
return v.getLayout()[a] - g.getLayout()[a];
});
for (var s, l, u, c = 0, f = o.length, d = i === "vertical" ? "dx" : "dy", h = 0; h < f; h++)
l = o[h], u = c - l.getLayout()[a], u > 0 && (s = l.getLayout()[a] + u, i === "vertical" ? l.setLayout({
x: s
}, !0) : l.setLayout({
y: s
}, !0)), c = l.getLayout()[a] + l.getLayout()[d] + e;
var p = i === "vertical" ? r : n;
if (u = c - e - p, u > 0) {
s = l.getLayout()[a] - u, i === "vertical" ? l.setLayout({
x: s
}, !0) : l.setLayout({
y: s
}, !0), c = s;
for (var h = f - 2; h >= 0; --h)
l = o[h], u = l.getLayout()[a] + l.getLayout()[d] + e - c, u > 0 && (s = l.getLayout()[a] - u, i === "vertical" ? l.setLayout({
x: s
}, !0) : l.setLayout({
y: s
}, !0)), c = l.getLayout()[a];
}
});
}
function rWe(t, e, n) {
k(t.slice().reverse(), function(r) {
k(r, function(i) {
if (i.outEdges.length) {
var a = Jl(i.outEdges, iWe, n) / Jl(i.outEdges, NO);
if (isNaN(a)) {
var o = i.outEdges.length;
a = o ? Jl(i.outEdges, aWe, n) / o : 0;
}
if (n === "vertical") {
var s = i.getLayout().x + (a - fu(i, n)) * e;
i.setLayout({
x: s
}, !0);
} else {
var l = i.getLayout().y + (a - fu(i, n)) * e;
i.setLayout({
y: l
}, !0);
}
}
});
});
}
function iWe(t, e) {
return fu(t.node2, e) * t.getValue();
}
function aWe(t, e) {
return fu(t.node2, e);
}
function oWe(t, e) {
return fu(t.node1, e) * t.getValue();
}
function sWe(t, e) {
return fu(t.node1, e);
}
function fu(t, e) {
return e === "vertical" ? t.getLayout().x + t.getLayout().dx / 2 : t.getLayout().y + t.getLayout().dy / 2;
}
function NO(t) {
return t.getValue();
}
function Jl(t, e, n) {
for (var r = 0, i = t.length, a = -1; ++a < i; ) {
var o = +e(t[a], n);
isNaN(o) || (r += o);
}
return r;
}
function lWe(t, e, n) {
k(t, function(r) {
k(r, function(i) {
if (i.inEdges.length) {
var a = Jl(i.inEdges, oWe, n) / Jl(i.inEdges, NO);
if (isNaN(a)) {
var o = i.inEdges.length;
a = o ? Jl(i.inEdges, sWe, n) / o : 0;
}
if (n === "vertical") {
var s = i.getLayout().x + (a - fu(i, n)) * e;
i.setLayout({
x: s
}, !0);
} else {
var l = i.getLayout().y + (a - fu(i, n)) * e;
i.setLayout({
y: l
}, !0);
}
}
});
});
}
function uWe(t, e) {
var n = e === "vertical" ? "x" : "y";
k(t, function(r) {
r.outEdges.sort(function(i, a) {
return i.node2.getLayout()[n] - a.node2.getLayout()[n];
}), r.inEdges.sort(function(i, a) {
return i.node1.getLayout()[n] - a.node1.getLayout()[n];
});
}), k(t, function(r) {
var i = 0, a = 0;
k(r.outEdges, function(o) {
o.setLayout({
sy: i
}, !0), i += o.getLayout().dy;
}), k(r.inEdges, function(o) {
o.setLayout({
ty: a
}, !0), a += o.getLayout().dy;
});
});
}
function cWe(t) {
t.eachSeriesByType("sankey", function(e) {
var n = e.getGraph(), r = n.nodes, i = n.edges;
if (r.length) {
var a = 1 / 0, o = -1 / 0;
k(r, function(s) {
var l = s.getLayout().value;
l < a && (a = l), l > o && (o = l);
}), k(r, function(s) {
var l = new qn({
type: "color",
mappingMethod: "linear",
dataExtent: [a, o],
visual: e.get("color")
}), u = l.mapValueToVisual(s.getLayout().value), c = s.getModel().get(["itemStyle", "color"]);
c != null ? (s.setVisual("color", c), s.setVisual("style", {
fill: c
})) : (s.setVisual("color", u), s.setVisual("style", {
fill: u
}));
});
}
i.length && k(i, function(s) {
var l = s.getModel().get("lineStyle");
s.setVisual("style", l);
});
});
}
function fWe(t) {
t.registerChartView(QFe), t.registerSeriesModel(GFe), t.registerLayout(jFe), t.registerVisual(cWe), t.registerAction({
type: "dragNode",
event: "dragnode",
// here can only use 'update' now, other value is not support in echarts.
update: "update"
}, function(e, n) {
n.eachComponent({
mainType: "series",
subType: "sankey",
query: e
}, function(r) {
r.setNodePosition(e.dataIndex, [e.localX, e.localY]);
});
});
}
var ire = (
/** @class */
function() {
function t() {
}
return t.prototype.getInitialData = function(e, n) {
var r, i = n.getComponent("xAxis", this.get("xAxisIndex")), a = n.getComponent("yAxis", this.get("yAxisIndex")), o = i.get("type"), s = a.get("type"), l;
o === "category" ? (e.layout = "horizontal", r = i.getOrdinalMeta(), l = !0) : s === "category" ? (e.layout = "vertical", r = a.getOrdinalMeta(), l = !0) : e.layout = e.layout || "horizontal";
var u = ["x", "y"], c = e.layout === "horizontal" ? 0 : 1, f = this._baseAxisDim = u[c], d = u[1 - c], h = [i, a], p = h[c].get("type"), v = h[1 - c].get("type"), g = e.data;
if (g && l) {
var m = [];
k(g, function(_, O) {
var S;
ue(_) ? (S = _.slice(), _.unshift(O)) : ue(_.value) ? (S = le({}, _), S.value = S.value.slice(), _.value.unshift(O)) : S = _, m.push(S);
}), e.data = m;
}
var y = this.defaultValueDimensions, b = [{
name: f,
type: TO(p),
ordinalMeta: r,
otherDims: {
tooltip: !1,
itemName: 0
},
dimsDef: ["base"]
}, {
name: d,
type: TO(v),
dimsDef: y.slice()
}];
return Ip(this, {
coordDimensions: b,
dimensionsCount: y.length + 1,
encodeDefaulter: Ue(IJ, b, this)
});
}, t.prototype.getBaseAxis = function() {
var e = this._baseAxisDim;
return this.ecModel.getComponent(e + "Axis", this.get(e + "AxisIndex")).axis;
}, t;
}()
), are = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.defaultValueDimensions = [{
name: "min",
defaultTooltip: !0
}, {
name: "Q1",
defaultTooltip: !0
}, {
name: "median",
defaultTooltip: !0
}, {
name: "Q3",
defaultTooltip: !0
}, {
name: "max",
defaultTooltip: !0
}], n.visualDrawType = "stroke", n;
}
return e.type = "series.boxplot", e.dependencies = ["xAxis", "yAxis", "grid"], e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "cartesian2d",
legendHoverLink: !0,
layout: null,
boxWidth: [7, 50],
itemStyle: {
color: "#fff",
borderWidth: 1
},
emphasis: {
scale: !0,
itemStyle: {
borderWidth: 2,
shadowBlur: 5,
shadowOffsetX: 1,
shadowOffsetY: 1,
shadowColor: "rgba(0,0,0,0.2)"
}
},
animationDuration: 800
}, e;
}(Ht)
);
xn(are, ire, !0);
var dWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = n.getData(), o = this.group, s = this._data;
this._data || o.removeAll();
var l = n.get("layout") === "horizontal" ? 1 : 0;
a.diff(s).add(function(u) {
if (a.hasValue(u)) {
var c = a.getItemLayout(u), f = pW(c, a, u, l, !0);
a.setItemGraphicEl(u, f), o.add(f);
}
}).update(function(u, c) {
var f = s.getItemGraphicEl(c);
if (!a.hasValue(u)) {
o.remove(f);
return;
}
var d = a.getItemLayout(u);
f ? (uo(f), ore(d, f, a, u)) : f = pW(d, a, u, l), o.add(f), a.setItemGraphicEl(u, f);
}).remove(function(u) {
var c = s.getItemGraphicEl(u);
c && o.remove(c);
}).execute(), this._data = a;
}, e.prototype.remove = function(n) {
var r = this.group, i = this._data;
this._data = null, i && i.eachItemGraphicEl(function(a) {
a && r.remove(a);
});
}, e.type = "boxplot", e;
}(zt)
), hWe = (
/** @class */
/* @__PURE__ */ function() {
function t() {
}
return t;
}()
), pWe = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "boxplotBoxPath", r;
}
return e.prototype.getDefaultShape = function() {
return new hWe();
}, e.prototype.buildPath = function(n, r) {
var i = r.points, a = 0;
for (n.moveTo(i[a][0], i[a][1]), a++; a < 4; a++)
n.lineTo(i[a][0], i[a][1]);
for (n.closePath(); a < i.length; a++)
n.moveTo(i[a][0], i[a][1]), a++, n.lineTo(i[a][0], i[a][1]);
}, e;
}(ot)
);
function pW(t, e, n, r, i) {
var a = t.ends, o = new pWe({
shape: {
points: i ? vWe(a, r, t) : a
}
});
return ore(t, o, e, n, i), o;
}
function ore(t, e, n, r, i) {
var a = n.hostModel, o = Nf[i ? "initProps" : "updateProps"];
o(e, {
shape: {
points: t.ends
}
}, a, r), e.useStyle(n.getItemVisual(r, "style")), e.style.strokeNoScale = !0, e.z2 = 100;
var s = n.getItemModel(r), l = s.getModel("emphasis");
Tr(e, s), bn(e, l.get("focus"), l.get("blurScope"), l.get("disabled"));
}
function vWe(t, e, n) {
return ce(t, function(r) {
return r = r.slice(), r[e] = n.initBaseline, r;
});
}
var Fg = k;
function gWe(t) {
var e = mWe(t);
Fg(e, function(n) {
var r = n.seriesModels;
r.length && (yWe(n), Fg(r, function(i, a) {
bWe(i, n.boxOffsetList[a], n.boxWidthList[a]);
}));
});
}
function mWe(t) {
var e = [], n = [];
return t.eachSeriesByType("boxplot", function(r) {
var i = r.getBaseAxis(), a = et(n, i);
a < 0 && (a = n.length, n[a] = i, e[a] = {
axis: i,
seriesModels: []
}), e[a].seriesModels.push(r);
}), e;
}
function yWe(t) {
var e = t.axis, n = t.seriesModels, r = n.length, i = t.boxWidthList = [], a = t.boxOffsetList = [], o = [], s;
if (e.type === "category")
s = e.getBandWidth();
else {
var l = 0;
Fg(n, function(p) {
l = Math.max(l, p.getData().count());
});
var u = e.getExtent();
s = Math.abs(u[1] - u[0]) / l;
}
Fg(n, function(p) {
var v = p.get("boxWidth");
ue(v) || (v = [v, v]), o.push([_e(v[0], s) || 0, _e(v[1], s) || 0]);
});
var c = s * 0.8 - 2, f = c / r * 0.3, d = (c - f * (r - 1)) / r, h = d / 2 - c / 2;
Fg(n, function(p, v) {
a.push(h), h += f + d, i.push(Math.min(Math.max(d, o[v][0]), o[v][1]));
});
}
function bWe(t, e, n) {
var r = t.coordinateSystem, i = t.getData(), a = n / 2, o = t.get("layout") === "horizontal" ? 0 : 1, s = 1 - o, l = ["x", "y"], u = i.mapDimension(l[o]), c = i.mapDimensionsAll(l[s]);
if (u == null || c.length < 5)
return;
for (var f = 0; f < i.count(); f++) {
var d = i.get(u, f), h = b(d, c[2], f), p = b(d, c[0], f), v = b(d, c[1], f), g = b(d, c[3], f), m = b(d, c[4], f), y = [];
_(y, v, !1), _(y, g, !0), y.push(p, v, m, g), O(y, p), O(y, m), O(y, h), i.setItemLayout(f, {
initBaseline: h[s],
ends: y
});
}
function b(S, x, C) {
var T = i.get(x, C), w = [];
w[o] = S, w[s] = T;
var P;
return isNaN(S) || isNaN(T) ? P = [NaN, NaN] : (P = r.dataToPoint(w), P[o] += e), P;
}
function _(S, x, C) {
var T = x.slice(), w = x.slice();
T[o] += a, w[o] -= a, C ? S.push(T, w) : S.push(w, T);
}
function O(S, x) {
var C = x.slice(), T = x.slice();
C[o] -= a, T[o] += a, S.push(C, T);
}
}
function _We(t, e) {
e = e || {};
for (var n = [], r = [], i = e.boundIQR, a = i === "none" || i === 0, o = 0; o < t.length; o++) {
var s = Wi(t[o].slice()), l = V_(s, 0.25), u = V_(s, 0.5), c = V_(s, 0.75), f = s[0], d = s[s.length - 1], h = (i ?? 1.5) * (c - l), p = a ? f : Math.max(f, l - h), v = a ? d : Math.min(d, c + h), g = e.itemNameFormatter, m = Me(g) ? g({
value: o
}) : Oe(g) ? g.replace("{value}", o + "") : o + "";
n.push([m, p, l, u, c, v]);
for (var y = 0; y < s.length; y++) {
var b = s[y];
if (b < p || b > v) {
var _ = [m, b];
r.push(_);
}
}
}
return {
boxData: n,
outliers: r
};
}
var OWe = {
type: "echarts:boxplot",
transform: function(e) {
var n = e.upstream;
if (n.sourceFormat !== zr) {
var r = "";
process.env.NODE_ENV !== "production" && (r = ni("source data is not applicable for this boxplot transform. Expect number[][].")), Et(r);
}
var i = _We(n.getRawData(), e.config);
return [{
dimensions: ["ItemName", "Low", "Q1", "Q2", "Q3", "High"],
data: i.boxData
}, {
data: i.outliers
}];
}
};
function SWe(t) {
t.registerSeriesModel(are), t.registerChartView(dWe), t.registerLayout(gWe), t.registerTransform(OWe);
}
var xWe = ["color", "borderColor"], wWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
this.group.removeClipPath(), this._progressiveEls = null, this._updateDrawMode(n), this._isLargeDraw ? this._renderLarge(n) : this._renderNormal(n);
}, e.prototype.incrementalPrepareRender = function(n, r, i) {
this._clear(), this._updateDrawMode(n);
}, e.prototype.incrementalRender = function(n, r, i, a) {
this._progressiveEls = [], this._isLargeDraw ? this._incrementalRenderLarge(n, r) : this._incrementalRenderNormal(n, r);
}, e.prototype.eachRendered = function(n) {
Tu(this._progressiveEls || this.group, n);
}, e.prototype._updateDrawMode = function(n) {
var r = n.pipelineContext.large;
(this._isLargeDraw == null || r !== this._isLargeDraw) && (this._isLargeDraw = r, this._clear());
}, e.prototype._renderNormal = function(n) {
var r = n.getData(), i = this._data, a = this.group, o = r.getLayout("isSimpleBox"), s = n.get("clip", !0), l = n.coordinateSystem, u = l.getArea && l.getArea();
this._data || a.removeAll(), r.diff(i).add(function(c) {
if (r.hasValue(c)) {
var f = r.getItemLayout(c);
if (s && vW(u, f))
return;
var d = kP(f, c, !0);
Yt(d, {
shape: {
points: f.ends
}
}, n, c), LP(d, r, c, o), a.add(d), r.setItemGraphicEl(c, d);
}
}).update(function(c, f) {
var d = i.getItemGraphicEl(f);
if (!r.hasValue(c)) {
a.remove(d);
return;
}
var h = r.getItemLayout(c);
if (s && vW(u, h)) {
a.remove(d);
return;
}
d ? (Ct(d, {
shape: {
points: h.ends
}
}, n, c), uo(d)) : d = kP(h), LP(d, r, c, o), a.add(d), r.setItemGraphicEl(c, d);
}).remove(function(c) {
var f = i.getItemGraphicEl(c);
f && a.remove(f);
}).execute(), this._data = r;
}, e.prototype._renderLarge = function(n) {
this._clear(), gW(n, this.group);
var r = n.get("clip", !0) ? X0(n.coordinateSystem, !1, n) : null;
r ? this.group.setClipPath(r) : this.group.removeClipPath();
}, e.prototype._incrementalRenderNormal = function(n, r) {
for (var i = r.getData(), a = i.getLayout("isSimpleBox"), o; (o = n.next()) != null; ) {
var s = i.getItemLayout(o), l = kP(s);
LP(l, i, o, a), l.incremental = !0, this.group.add(l), this._progressiveEls.push(l);
}
}, e.prototype._incrementalRenderLarge = function(n, r) {
gW(r, this.group, this._progressiveEls, !0);
}, e.prototype.remove = function(n) {
this._clear();
}, e.prototype._clear = function() {
this.group.removeAll(), this._data = null;
}, e.type = "candlestick", e;
}(zt)
), CWe = (
/** @class */
/* @__PURE__ */ function() {
function t() {
}
return t;
}()
), TWe = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "normalCandlestickBox", r;
}
return e.prototype.getDefaultShape = function() {
return new CWe();
}, e.prototype.buildPath = function(n, r) {
var i = r.points;
this.__simpleBox ? (n.moveTo(i[4][0], i[4][1]), n.lineTo(i[6][0], i[6][1])) : (n.moveTo(i[0][0], i[0][1]), n.lineTo(i[1][0], i[1][1]), n.lineTo(i[2][0], i[2][1]), n.lineTo(i[3][0], i[3][1]), n.closePath(), n.moveTo(i[4][0], i[4][1]), n.lineTo(i[5][0], i[5][1]), n.moveTo(i[6][0], i[6][1]), n.lineTo(i[7][0], i[7][1]));
}, e;
}(ot)
);
function kP(t, e, n) {
var r = t.ends;
return new TWe({
shape: {
points: n ? PWe(r, t) : r
},
z2: 100
});
}
function vW(t, e) {
for (var n = !0, r = 0; r < e.ends.length; r++)
if (t.contain(e.ends[r][0], e.ends[r][1])) {
n = !1;
break;
}
return n;
}
function LP(t, e, n, r) {
var i = e.getItemModel(n);
t.useStyle(e.getItemVisual(n, "style")), t.style.strokeNoScale = !0, t.__simpleBox = r, Tr(t, i);
}
function PWe(t, e) {
return ce(t, function(n) {
return n = n.slice(), n[1] = e.initBaseline, n;
});
}
var $We = (
/** @class */
/* @__PURE__ */ function() {
function t() {
}
return t;
}()
), NP = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r.type = "largeCandlestickBox", r;
}
return e.prototype.getDefaultShape = function() {
return new $We();
}, e.prototype.buildPath = function(n, r) {
for (var i = r.points, a = 0; a < i.length; )
if (this.__sign === i[a++]) {
var o = i[a++];
n.moveTo(o, i[a++]), n.lineTo(o, i[a++]);
} else
a += 3;
}, e;
}(ot)
);
function gW(t, e, n, r) {
var i = t.getData(), a = i.getLayout("largePoints"), o = new NP({
shape: {
points: a
},
__sign: 1,
ignoreCoarsePointer: !0
});
e.add(o);
var s = new NP({
shape: {
points: a
},
__sign: -1,
ignoreCoarsePointer: !0
});
e.add(s);
var l = new NP({
shape: {
points: a
},
__sign: 0,
ignoreCoarsePointer: !0
});
e.add(l), BP(1, o, t), BP(-1, s, t), BP(0, l, t), r && (o.incremental = !0, s.incremental = !0), n && n.push(o, s);
}
function BP(t, e, n, r) {
var i = n.get(["itemStyle", t > 0 ? "borderColor" : "borderColor0"]) || n.get(["itemStyle", t > 0 ? "color" : "color0"]);
t === 0 && (i = n.get(["itemStyle", "borderColorDoji"]));
var a = n.getModel("itemStyle").getItemStyle(xWe);
e.useStyle(a), e.style.fill = null, e.style.stroke = i;
}
var sre = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.defaultValueDimensions = [{
name: "open",
defaultTooltip: !0
}, {
name: "close",
defaultTooltip: !0
}, {
name: "lowest",
defaultTooltip: !0
}, {
name: "highest",
defaultTooltip: !0
}], n;
}
return e.prototype.getShadowDim = function() {
return "open";
}, e.prototype.brushSelector = function(n, r, i) {
var a = r.getItemLayout(n);
return a && i.rect(a.brushRect);
}, e.type = "series.candlestick", e.dependencies = ["xAxis", "yAxis", "grid"], e.defaultOption = {
// zlevel: 0,
z: 2,
coordinateSystem: "cartesian2d",
legendHoverLink: !0,
// xAxisIndex: 0,
// yAxisIndex: 0,
layout: null,
clip: !0,
itemStyle: {
color: "#eb5454",
color0: "#47b262",
borderColor: "#eb5454",
borderColor0: "#47b262",
borderColorDoji: null,
// borderColor: '#d24040',
// borderColor0: '#398f4f',
borderWidth: 1
},
emphasis: {
scale: !0,
itemStyle: {
borderWidth: 2
}
},
barMaxWidth: null,
barMinWidth: null,
barWidth: null,
large: !0,
largeThreshold: 600,
progressive: 3e3,
progressiveThreshold: 1e4,
progressiveChunkMode: "mod",
animationEasing: "linear",
animationDuration: 300
}, e;
}(Ht)
);
xn(sre, ire, !0);
function AWe(t) {
!t || !ue(t.series) || k(t.series, function(e) {
Ie(e) && e.type === "k" && (e.type = "candlestick");
});
}
var EWe = ["itemStyle", "borderColor"], MWe = ["itemStyle", "borderColor0"], IWe = ["itemStyle", "borderColorDoji"], DWe = ["itemStyle", "color"], RWe = ["itemStyle", "color0"], kWe = {
seriesType: "candlestick",
plan: Tp(),
// For legend.
performRawSeries: !0,
reset: function(t, e) {
function n(a, o) {
return o.get(a > 0 ? DWe : RWe);
}
function r(a, o) {
return o.get(a === 0 ? IWe : a > 0 ? EWe : MWe);
}
if (!e.isSeriesFiltered(t)) {
var i = t.pipelineContext.large;
return !i && {
progress: function(a, o) {
for (var s; (s = a.next()) != null; ) {
var l = o.getItemModel(s), u = o.getItemLayout(s).sign, c = l.getItemStyle();
c.fill = n(u, l), c.stroke = r(u, l) || c.fill;
var f = o.ensureUniqueItemVisual(s, "style");
le(f, c);
}
}
};
}
}
}, LWe = {
seriesType: "candlestick",
plan: Tp(),
reset: function(t) {
var e = t.coordinateSystem, n = t.getData(), r = NWe(t, n), i = 0, a = 1, o = ["x", "y"], s = n.getDimensionIndex(n.mapDimension(o[i])), l = ce(n.mapDimensionsAll(o[a]), n.getDimensionIndex, n), u = l[0], c = l[1], f = l[2], d = l[3];
if (n.setLayout({
candleWidth: r,
// The value is experimented visually.
isSimpleBox: r <= 1.3
}), s < 0 || l.length < 4)
return;
return {
progress: t.pipelineContext.large ? p : h
};
function h(v, g) {
for (var m, y = g.getStore(); (m = v.next()) != null; ) {
var b = y.get(s, m), _ = y.get(u, m), O = y.get(c, m), S = y.get(f, m), x = y.get(d, m), C = Math.min(_, O), T = Math.max(_, O), w = N(C, b), P = N(T, b), $ = N(S, b), A = N(x, b), D = [];
V(D, P, 0), V(D, w, 1), D.push(W(A), W(P), W($), W(w));
var E = g.getItemModel(m), R = !!E.get(["itemStyle", "borderColorDoji"]);
g.setItemLayout(m, {
sign: mW(y, m, _, O, c, R),
initBaseline: _ > O ? P[a] : w[a],
ends: D,
brushRect: B(S, x, b)
});
}
function N(F, Q) {
var Z = [];
return Z[i] = Q, Z[a] = F, isNaN(Q) || isNaN(F) ? [NaN, NaN] : e.dataToPoint(Z);
}
function V(F, Q, Z) {
var ne = Q.slice(), ee = Q.slice();
ne[i] = Q_(ne[i] + r / 2, 1, !1), ee[i] = Q_(ee[i] - r / 2, 1, !0), Z ? F.push(ne, ee) : F.push(ee, ne);
}
function B(F, Q, Z) {
var ne = N(F, Z), ee = N(Q, Z);
return ne[i] -= r / 2, ee[i] -= r / 2, {
x: ne[0],
y: ne[1],
width: r,
height: ee[1] - ne[1]
};
}
function W(F) {
return F[i] = Q_(F[i], 1), F;
}
}
function p(v, g) {
for (var m = Wo(v.count * 4), y = 0, b, _ = [], O = [], S, x = g.getStore(), C = !!t.get(["itemStyle", "borderColorDoji"]); (S = v.next()) != null; ) {
var T = x.get(s, S), w = x.get(u, S), P = x.get(c, S), $ = x.get(f, S), A = x.get(d, S);
if (isNaN(T) || isNaN($) || isNaN(A)) {
m[y++] = NaN, y += 3;
continue;
}
m[y++] = mW(x, S, w, P, c, C), _[i] = T, _[a] = $, b = e.dataToPoint(_, null, O), m[y++] = b ? b[0] : NaN, m[y++] = b ? b[1] : NaN, _[a] = A, b = e.dataToPoint(_, null, O), m[y++] = b ? b[1] : NaN;
}
g.setLayout("largePoints", m);
}
}
};
function mW(t, e, n, r, i, a) {
var o;
return n > r ? o = -1 : n < r ? o = 1 : o = a ? 0 : e > 0 ? t.get(i, e - 1) <= r ? 1 : -1 : 1, o;
}
function NWe(t, e) {
var n = t.getBaseAxis(), r, i = n.type === "category" ? n.getBandWidth() : (r = n.getExtent(), Math.abs(r[1] - r[0]) / e.count()), a = _e(We(t.get("barMaxWidth"), i), i), o = _e(We(t.get("barMinWidth"), 1), i), s = t.get("barWidth");
return s != null ? _e(s, i) : Math.max(Math.min(i / 2, a), o);
}
function BWe(t) {
t.registerChartView(wWe), t.registerSeriesModel(sre), t.registerPreprocessor(AWe), t.registerVisual(kWe), t.registerLayout(LWe);
}
function yW(t, e) {
var n = e.rippleEffectColor || e.color;
t.eachChild(function(r) {
r.attr({
z: e.z,
zlevel: e.zlevel,
style: {
stroke: e.brushType === "stroke" ? n : null,
fill: e.brushType === "fill" ? n : null
}
});
});
}
var zWe = (
/** @class */
function(t) {
q(e, t);
function e(n, r) {
var i = t.call(this) || this, a = new Z0(n, r), o = new Ve();
return i.add(a), i.add(o), i.updateData(n, r), i;
}
return e.prototype.stopEffectAnimation = function() {
this.childAt(1).removeAll();
}, e.prototype.startEffectAnimation = function(n) {
for (var r = n.symbolType, i = n.color, a = n.rippleNumber, o = this.childAt(1), s = 0; s < a; s++) {
var l = $n(r, -1, -1, 2, 2, i);
l.attr({
style: {
strokeNoScale: !0
},
z2: 99,
silent: !0,
scaleX: 0.5,
scaleY: 0.5
});
var u = -s / a * n.period + n.effectOffset;
l.animate("", !0).when(n.period, {
scaleX: n.rippleScale / 2,
scaleY: n.rippleScale / 2
}).delay(u).start(), l.animateStyle(!0).when(n.period, {
opacity: 0
}).delay(u).start(), o.add(l);
}
yW(o, n);
}, e.prototype.updateEffectAnimation = function(n) {
for (var r = this._effectCfg, i = this.childAt(1), a = ["symbolType", "period", "rippleScale", "rippleNumber"], o = 0; o < a.length; o++) {
var s = a[o];
if (r[s] !== n[s]) {
this.stopEffectAnimation(), this.startEffectAnimation(n);
return;
}
}
yW(i, n);
}, e.prototype.highlight = function() {
Zs(this);
}, e.prototype.downplay = function() {
Us(this);
}, e.prototype.getSymbolType = function() {
var n = this.childAt(0);
return n && n.getSymbolType();
}, e.prototype.updateData = function(n, r) {
var i = this, a = n.hostModel;
this.childAt(0).updateData(n, r);
var o = this.childAt(1), s = n.getItemModel(r), l = n.getItemVisual(r, "symbol"), u = $p(n.getItemVisual(r, "symbolSize")), c = n.getItemVisual(r, "style"), f = c && c.fill, d = s.getModel("emphasis");
o.setScale(u), o.traverse(function(g) {
g.setStyle("fill", f);
});
var h = Ff(n.getItemVisual(r, "symbolOffset"), u);
h && (o.x = h[0], o.y = h[1]);
var p = n.getItemVisual(r, "symbolRotate");
o.rotation = (p || 0) * Math.PI / 180 || 0;
var v = {};
v.showEffectOn = a.get("showEffectOn"), v.rippleScale = s.get(["rippleEffect", "scale"]), v.brushType = s.get(["rippleEffect", "brushType"]), v.period = s.get(["rippleEffect", "period"]) * 1e3, v.effectOffset = r / n.count(), v.z = a.getShallow("z") || 0, v.zlevel = a.getShallow("zlevel") || 0, v.symbolType = l, v.color = f, v.rippleEffectColor = s.get(["rippleEffect", "color"]), v.rippleNumber = s.get(["rippleEffect", "number"]), v.showEffectOn === "render" ? (this._effectCfg ? this.updateEffectAnimation(v) : this.startEffectAnimation(v), this._effectCfg = v) : (this._effectCfg = null, this.stopEffectAnimation(), this.onHoverStateChange = function(g) {
g === "emphasis" ? v.showEffectOn !== "render" && i.startEffectAnimation(v) : g === "normal" && v.showEffectOn !== "render" && i.stopEffectAnimation();
}), this._effectCfg = v, bn(this, d.get("focus"), d.get("blurScope"), d.get("disabled"));
}, e.prototype.fadeOut = function(n) {
n && n();
}, e;
}(Ve)
), VWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function() {
this._symbolDraw = new U0(zWe);
}, e.prototype.render = function(n, r, i) {
var a = n.getData(), o = this._symbolDraw;
o.updateData(a, {
clipShape: this._getClipShape(n)
}), this.group.add(o.group);
}, e.prototype._getClipShape = function(n) {
var r = n.coordinateSystem, i = r && r.getArea && r.getArea();
return n.get("clip", !0) ? i : null;
}, e.prototype.updateTransform = function(n, r, i) {
var a = n.getData();
this.group.dirty();
var o = Y0("").reset(n, r, i);
o.progress && o.progress({
start: 0,
end: a.count(),
count: a.count()
}, a), this._symbolDraw.updateLayout();
}, e.prototype._updateGroupTransform = function(n) {
var r = n.coordinateSystem;
r && r.getRoamTransform && (this.group.transform = Dq(r.getRoamTransform()), this.group.decomposeTransform());
}, e.prototype.remove = function(n, r) {
this._symbolDraw && this._symbolDraw.remove(!0);
}, e.type = "effectScatter", e;
}(zt)
), FWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.hasSymbolVisual = !0, n;
}
return e.prototype.getInitialData = function(n, r) {
return cs(null, this, {
useEncodeDefaulter: !0
});
}, e.prototype.brushSelector = function(n, r, i) {
return i.point(r.getItemLayout(n));
}, e.type = "series.effectScatter", e.dependencies = ["grid", "polar"], e.defaultOption = {
coordinateSystem: "cartesian2d",
// zlevel: 0,
z: 2,
legendHoverLink: !0,
effectType: "ripple",
progressive: 0,
// When to show the effect, option: 'render'|'emphasis'
showEffectOn: "render",
clip: !0,
// Ripple effect config
rippleEffect: {
period: 4,
// Scale of ripple
scale: 2.5,
// Brush type can be fill or stroke
brushType: "fill",
// Ripple number
number: 3
},
universalTransition: {
divideShape: "clone"
},
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
// Polar coordinate system
// polarIndex: 0,
// Geo coordinate system
// geoIndex: 0,
// symbol: null, // 图形类型
symbolSize: 10
// 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
// symbolRotate: null, // 图形旋转控制
// itemStyle: {
// opacity: 1
// }
}, e;
}(Ht)
);
function WWe(t) {
t.registerChartView(VWe), t.registerSeriesModel(FWe), t.registerLayout(Y0("effectScatter"));
}
var lre = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this) || this;
return a.add(a.createLine(n, r, i)), a._updateEffectSymbol(n, r), a;
}
return e.prototype.createLine = function(n, r, i) {
return new Kk(n, r, i);
}, e.prototype._updateEffectSymbol = function(n, r) {
var i = n.getItemModel(r), a = i.getModel("effect"), o = a.get("symbolSize"), s = a.get("symbol");
ue(o) || (o = [o, o]);
var l = n.getItemVisual(r, "style"), u = a.get("color") || l && l.stroke, c = this.childAt(1);
this._symbolType !== s && (this.remove(c), c = $n(s, -0.5, -0.5, 1, 1, u), c.z2 = 100, c.culling = !0, this.add(c)), c && (c.setStyle("shadowColor", u), c.setStyle(a.getItemStyle(["color"])), c.scaleX = o[0], c.scaleY = o[1], c.setColor(u), this._symbolType = s, this._symbolScale = o, this._updateEffectAnimation(n, a, r));
}, e.prototype._updateEffectAnimation = function(n, r, i) {
var a = this.childAt(1);
if (a) {
var o = n.getItemLayout(i), s = r.get("period") * 1e3, l = r.get("loop"), u = r.get("roundTrip"), c = r.get("constantSpeed"), f = Tn(r.get("delay"), function(h) {
return h / n.count() * s / 3;
});
if (a.ignore = !0, this._updateAnimationPoints(a, o), c > 0 && (s = this._getLineLength(a) / c * 1e3), s !== this._period || l !== this._loop || u !== this._roundTrip) {
a.stopAnimation();
var d = void 0;
Me(f) ? d = f(i) : d = f, a.__t > 0 && (d = -s * a.__t), this._animateSymbol(a, s, d, l, u);
}
this._period = s, this._loop = l, this._roundTrip = u;
}
}, e.prototype._animateSymbol = function(n, r, i, a, o) {
if (r > 0) {
n.__t = 0;
var s = this, l = n.animate("", a).when(o ? r * 2 : r, {
__t: o ? 2 : 1
}).delay(i).during(function() {
s._updateSymbolPosition(n);
});
a || l.done(function() {
s.remove(n);
}), l.start();
}
}, e.prototype._getLineLength = function(n) {
return Ps(n.__p1, n.__cp1) + Ps(n.__cp1, n.__p2);
}, e.prototype._updateAnimationPoints = function(n, r) {
n.__p1 = r[0], n.__p2 = r[1], n.__cp1 = r[2] || [(r[0][0] + r[1][0]) / 2, (r[0][1] + r[1][1]) / 2];
}, e.prototype.updateData = function(n, r, i) {
this.childAt(0).updateData(n, r, i), this._updateEffectSymbol(n, r);
}, e.prototype._updateSymbolPosition = function(n) {
var r = n.__p1, i = n.__p2, a = n.__cp1, o = n.__t < 1 ? n.__t : 2 - n.__t, s = [n.x, n.y], l = s.slice(), u = ir, c = dA;
s[0] = u(r[0], a[0], i[0], o), s[1] = u(r[1], a[1], i[1], o);
var f = n.__t < 1 ? c(r[0], a[0], i[0], o) : c(i[0], a[0], r[0], 1 - o), d = n.__t < 1 ? c(r[1], a[1], i[1], o) : c(i[1], a[1], r[1], 1 - o);
n.rotation = -Math.atan2(d, f) - Math.PI / 2, (this._symbolType === "line" || this._symbolType === "rect" || this._symbolType === "roundRect") && (n.__lastT !== void 0 && n.__lastT < n.__t ? (n.scaleY = Ps(l, s) * 1.05, o === 1 && (s[0] = l[0] + (s[0] - l[0]) / 2, s[1] = l[1] + (s[1] - l[1]) / 2)) : n.__lastT === 1 ? n.scaleY = 2 * Ps(r, s) : n.scaleY = this._symbolScale[1]), n.__lastT = n.__t, n.ignore = !1, n.x = s[0], n.y = s[1];
}, e.prototype.updateLayout = function(n, r) {
this.childAt(0).updateLayout(n, r);
var i = n.getItemModel(r).getModel("effect");
this._updateEffectAnimation(n, i, r);
}, e;
}(Ve)
), ure = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i) {
var a = t.call(this) || this;
return a._createPolyline(n, r, i), a;
}
return e.prototype._createPolyline = function(n, r, i) {
var a = n.getItemLayout(r), o = new oi({
shape: {
points: a
}
});
this.add(o), this._updateCommonStl(n, r, i);
}, e.prototype.updateData = function(n, r, i) {
var a = n.hostModel, o = this.childAt(0), s = {
shape: {
points: n.getItemLayout(r)
}
};
Ct(o, s, a, r), this._updateCommonStl(n, r, i);
}, e.prototype._updateCommonStl = function(n, r, i) {
var a = this.childAt(0), o = n.getItemModel(r), s = i && i.emphasisLineStyle, l = i && i.focus, u = i && i.blurScope, c = i && i.emphasisDisabled;
if (!i || n.hasItemOption) {
var f = o.getModel("emphasis");
s = f.getModel("lineStyle").getLineStyle(), c = f.get("disabled"), l = f.get("focus"), u = f.get("blurScope");
}
a.useStyle(n.getItemVisual(r, "style")), a.style.fill = null, a.style.strokeNoScale = !0;
var d = a.ensureState("emphasis");
d.style = s, bn(this, l, u, c);
}, e.prototype.updateLayout = function(n, r) {
var i = this.childAt(0);
i.setShape("points", n.getItemLayout(r));
}, e;
}(Ve)
), QWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n._lastFrame = 0, n._lastFramePercent = 0, n;
}
return e.prototype.createLine = function(n, r, i) {
return new ure(n, r, i);
}, e.prototype._updateAnimationPoints = function(n, r) {
this._points = r;
for (var i = [0], a = 0, o = 1; o < r.length; o++) {
var s = r[o - 1], l = r[o];
a += Ps(s, l), i.push(a);
}
if (a === 0) {
this._length = 0;
return;
}
for (var o = 0; o < i.length; o++)
i[o] /= a;
this._offsets = i, this._length = a;
}, e.prototype._getLineLength = function() {
return this._length;
}, e.prototype._updateSymbolPosition = function(n) {
var r = n.__t < 1 ? n.__t : 2 - n.__t, i = this._points, a = this._offsets, o = i.length;
if (a) {
var s = this._lastFrame, l;
if (r < this._lastFramePercent) {
var u = Math.min(s + 1, o - 1);
for (l = u; l >= 0 && !(a[l] <= r); l--)
;
l = Math.min(l, o - 2);
} else {
for (l = s; l < o && !(a[l] > r); l++)
;
l = Math.min(l - 1, o - 2);
}
var c = (r - a[l]) / (a[l + 1] - a[l]), f = i[l], d = i[l + 1];
n.x = f[0] * (1 - c) + c * d[0], n.y = f[1] * (1 - c) + c * d[1];
var h = n.__t < 1 ? d[0] - f[0] : f[0] - d[0], p = n.__t < 1 ? d[1] - f[1] : f[1] - d[1];
n.rotation = -Math.atan2(p, h) - Math.PI / 2, this._lastFrame = l, this._lastFramePercent = r, n.ignore = !1;
}
}, e;
}(lre)
), HWe = (
/** @class */
/* @__PURE__ */ function() {
function t() {
this.polyline = !1, this.curveness = 0, this.segs = [];
}
return t;
}()
), GWe = (
/** @class */
function(t) {
q(e, t);
function e(n) {
var r = t.call(this, n) || this;
return r._off = 0, r.hoverDataIdx = -1, r;
}
return e.prototype.reset = function() {
this.notClear = !1, this._off = 0;
}, e.prototype.getDefaultStyle = function() {
return {
stroke: "#000",
fill: null
};
}, e.prototype.getDefaultShape = function() {
return new HWe();
}, e.prototype.buildPath = function(n, r) {
var i = r.segs, a = r.curveness, o;
if (r.polyline)
for (o = this._off; o < i.length; ) {
var s = i[o++];
if (s > 0) {
n.moveTo(i[o++], i[o++]);
for (var l = 1; l < s; l++)
n.lineTo(i[o++], i[o++]);
}
}
else
for (o = this._off; o < i.length; ) {
var u = i[o++], c = i[o++], f = i[o++], d = i[o++];
if (n.moveTo(u, c), a > 0) {
var h = (u + f) / 2 - (c - d) * a, p = (c + d) / 2 - (f - u) * a;
n.quadraticCurveTo(h, p, f, d);
} else
n.lineTo(f, d);
}
this.incremental && (this._off = o, this.notClear = !0);
}, e.prototype.findDataIndex = function(n, r) {
var i = this.shape, a = i.segs, o = i.curveness, s = this.style.lineWidth;
if (i.polyline)
for (var l = 0, u = 0; u < a.length; ) {
var c = a[u++];
if (c > 0)
for (var f = a[u++], d = a[u++], h = 1; h < c; h++) {
var p = a[u++], v = a[u++];
if (wl(f, d, p, v, s, n, r))
return l;
}
l++;
}
else
for (var l = 0, u = 0; u < a.length; ) {
var f = a[u++], d = a[u++], p = a[u++], v = a[u++];
if (o > 0) {
var g = (f + p) / 2 - (d - v) * o, m = (d + v) / 2 - (p - f) * o;
if (wK(f, d, g, m, p, v, s, n, r))
return l;
} else if (wl(f, d, p, v, s, n, r))
return l;
l++;
}
return -1;
}, e.prototype.contain = function(n, r) {
var i = this.transformCoordToLocal(n, r), a = this.getBoundingRect();
if (n = i[0], r = i[1], a.contain(n, r)) {
var o = this.hoverDataIdx = this.findDataIndex(n, r);
return o >= 0;
}
return this.hoverDataIdx = -1, !1;
}, e.prototype.getBoundingRect = function() {
var n = this._rect;
if (!n) {
for (var r = this.shape, i = r.segs, a = 1 / 0, o = 1 / 0, s = -1 / 0, l = -1 / 0, u = 0; u < i.length; ) {
var c = i[u++], f = i[u++];
a = Math.min(c, a), s = Math.max(c, s), o = Math.min(f, o), l = Math.max(f, l);
}
n = this._rect = new Je(a, o, s, l);
}
return n;
}, e;
}(ot)
), jWe = (
/** @class */
function() {
function t() {
this.group = new Ve();
}
return t.prototype.updateData = function(e) {
this._clear();
var n = this._create();
n.setShape({
segs: e.getLayout("linesPoints")
}), this._setCommon(n, e);
}, t.prototype.incrementalPrepareUpdate = function(e) {
this.group.removeAll(), this._clear();
}, t.prototype.incrementalUpdate = function(e, n) {
var r = this._newAdded[0], i = n.getLayout("linesPoints"), a = r && r.shape.segs;
if (a && a.length < 2e4) {
var o = a.length, s = new Float32Array(o + i.length);
s.set(a), s.set(i, o), r.setShape({
segs: s
});
} else {
this._newAdded = [];
var l = this._create();
l.incremental = !0, l.setShape({
segs: i
}), this._setCommon(l, n), l.__startIndex = e.start;
}
}, t.prototype.remove = function() {
this._clear();
}, t.prototype.eachRendered = function(e) {
this._newAdded[0] && e(this._newAdded[0]);
}, t.prototype._create = function() {
var e = new GWe({
cursor: "default",
ignoreCoarsePointer: !0
});
return this._newAdded.push(e), this.group.add(e), e;
}, t.prototype._setCommon = function(e, n, r) {
var i = n.hostModel;
e.setShape({
polyline: i.get("polyline"),
curveness: i.get(["lineStyle", "curveness"])
}), e.useStyle(i.getModel("lineStyle").getLineStyle()), e.style.strokeNoScale = !0;
var a = n.getVisual("style");
a && a.stroke && e.setStyle("stroke", a.stroke), e.setStyle("fill", null);
var o = Fe(e);
o.seriesIndex = i.seriesIndex, e.on("mousemove", function(s) {
o.dataIndex = null;
var l = e.hoverDataIdx;
l > 0 && (o.dataIndex = l + e.__startIndex);
});
}, t.prototype._clear = function() {
this._newAdded = [], this.group.removeAll();
}, t;
}()
), cre = {
seriesType: "lines",
plan: Tp(),
reset: function(t) {
var e = t.coordinateSystem;
if (!e) {
process.env.NODE_ENV !== "production" && Cr("The lines series must have a coordinate system.");
return;
}
var n = t.get("polyline"), r = t.pipelineContext.large;
return {
progress: function(i, a) {
var o = [];
if (r) {
var s = void 0, l = i.end - i.start;
if (n) {
for (var u = 0, c = i.start; c < i.end; c++)
u += t.getLineCoordsCount(c);
s = new Float32Array(l + u * 2);
} else
s = new Float32Array(l * 4);
for (var f = 0, d = [], c = i.start; c < i.end; c++) {
var h = t.getLineCoords(c, o);
n && (s[f++] = h);
for (var p = 0; p < h; p++)
d = e.dataToPoint(o[p], !1, d), s[f++] = d[0], s[f++] = d[1];
}
a.setLayout("linesPoints", s);
} else
for (var c = i.start; c < i.end; c++) {
var v = a.getItemModel(c), h = t.getLineCoords(c, o), g = [];
if (n)
for (var m = 0; m < h; m++)
g.push(e.dataToPoint(o[m]));
else {
g[0] = e.dataToPoint(o[0]), g[1] = e.dataToPoint(o[1]);
var y = v.get(["lineStyle", "curveness"]);
+y && (g[2] = [(g[0][0] + g[1][0]) / 2 - (g[0][1] - g[1][1]) * y, (g[0][1] + g[1][1]) / 2 - (g[1][0] - g[0][0]) * y]);
}
a.setItemLayout(c, g);
}
}
};
}
}, ZWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = n.getData(), o = this._updateLineDraw(a, n), s = n.get("zlevel"), l = n.get(["effect", "trailLength"]), u = i.getZr(), c = u.painter.getType() === "svg";
c || u.painter.getLayer(s).clear(!0), this._lastZlevel != null && !c && u.configLayer(this._lastZlevel, {
motionBlur: !1
}), this._showEffect(n) && l > 0 && (c ? process.env.NODE_ENV !== "production" && console.warn("SVG render mode doesn't support lines with trail effect") : u.configLayer(s, {
motionBlur: !0,
lastFrameAlpha: Math.max(Math.min(l / 10 + 0.9, 1), 0)
})), o.updateData(a);
var f = n.get("clip", !0) && X0(n.coordinateSystem, !1, n);
f ? this.group.setClipPath(f) : this.group.removeClipPath(), this._lastZlevel = s, this._finished = !0;
}, e.prototype.incrementalPrepareRender = function(n, r, i) {
var a = n.getData(), o = this._updateLineDraw(a, n);
o.incrementalPrepareUpdate(a), this._clearLayer(i), this._finished = !1;
}, e.prototype.incrementalRender = function(n, r, i) {
this._lineDraw.incrementalUpdate(n, r.getData()), this._finished = n.end === r.getData().count();
}, e.prototype.eachRendered = function(n) {
this._lineDraw && this._lineDraw.eachRendered(n);
}, e.prototype.updateTransform = function(n, r, i) {
var a = n.getData(), o = n.pipelineContext;
if (!this._finished || o.large || o.progressiveRender)
return {
update: !0
};
var s = cre.reset(n, r, i);
s.progress && s.progress({
start: 0,
end: a.count(),
count: a.count()
}, a), this._lineDraw.updateLayout(), this._clearLayer(i);
}, e.prototype._updateLineDraw = function(n, r) {
var i = this._lineDraw, a = this._showEffect(r), o = !!r.get("polyline"), s = r.pipelineContext, l = s.large;
return process.env.NODE_ENV !== "production" && a && l && console.warn("Large lines not support effect"), (!i || a !== this._hasEffet || o !== this._isPolyline || l !== this._isLargeDraw) && (i && i.remove(), i = this._lineDraw = l ? new jWe() : new Jk(o ? a ? QWe : ure : a ? lre : Kk), this._hasEffet = a, this._isPolyline = o, this._isLargeDraw = l), this.group.add(i.group), i;
}, e.prototype._showEffect = function(n) {
return !!n.get(["effect", "show"]);
}, e.prototype._clearLayer = function(n) {
var r = n.getZr(), i = r.painter.getType() === "svg";
!i && this._lastZlevel != null && r.painter.getLayer(this._lastZlevel).clear(!0);
}, e.prototype.remove = function(n, r) {
this._lineDraw && this._lineDraw.remove(), this._lineDraw = null, this._clearLayer(r);
}, e.prototype.dispose = function(n, r) {
this.remove(n, r);
}, e.type = "lines", e;
}(zt)
), UWe = typeof Uint32Array > "u" ? Array : Uint32Array, XWe = typeof Float64Array > "u" ? Array : Float64Array;
function bW(t) {
var e = t.data;
e && e[0] && e[0][0] && e[0][0].coord && (process.env.NODE_ENV !== "production" && console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"), t.data = ce(e, function(n) {
var r = [n[0].coord, n[1].coord], i = {
coords: r
};
return n[0].name && (i.fromName = n[0].name), n[1].name && (i.toName = n[1].name), Rx([i, n[0], n[1]]);
}));
}
var YWe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.visualStyleAccessPath = "lineStyle", n.visualDrawType = "stroke", n;
}
return e.prototype.init = function(n) {
n.data = n.data || [], bW(n);
var r = this._processFlatCoordsArray(n.data);
this._flatCoords = r.flatCoords, this._flatCoordsOffset = r.flatCoordsOffset, r.flatCoords && (n.data = new Float32Array(r.count)), t.prototype.init.apply(this, arguments);
}, e.prototype.mergeOption = function(n) {
if (bW(n), n.data) {
var r = this._processFlatCoordsArray(n.data);
this._flatCoords = r.flatCoords, this._flatCoordsOffset = r.flatCoordsOffset, r.flatCoords && (n.data = new Float32Array(r.count));
}
t.prototype.mergeOption.apply(this, arguments);
}, e.prototype.appendData = function(n) {
var r = this._processFlatCoordsArray(n.data);
r.flatCoords && (this._flatCoords ? (this._flatCoords = _m(this._flatCoords, r.flatCoords), this._flatCoordsOffset = _m(this._flatCoordsOffset, r.flatCoordsOffset)) : (this._flatCoords = r.flatCoords, this._flatCoordsOffset = r.flatCoordsOffset), n.data = new Float32Array(r.count)), this.getRawData().appendData(n.data);
}, e.prototype._getCoordsFromItemModel = function(n) {
var r = this.getData().getItemModel(n), i = r.option instanceof Array ? r.option : r.getShallow("coords");
if (process.env.NODE_ENV !== "production" && !(i instanceof Array && i.length > 0 && i[0] instanceof Array))
throw new Error("Invalid coords " + JSON.stringify(i) + ". Lines must have 2d coords array in data item.");
return i;
}, e.prototype.getLineCoordsCount = function(n) {
return this._flatCoordsOffset ? this._flatCoordsOffset[n * 2 + 1] : this._getCoordsFromItemModel(n).length;
}, e.prototype.getLineCoords = function(n, r) {
if (this._flatCoordsOffset) {
for (var i = this._flatCoordsOffset[n * 2], a = this._flatCoordsOffset[n * 2 + 1], o = 0; o < a; o++)
r[o] = r[o] || [], r[o][0] = this._flatCoords[i + o * 2], r[o][1] = this._flatCoords[i + o * 2 + 1];
return a;
} else {
for (var s = this._getCoordsFromItemModel(n), o = 0; o < s.length; o++)
r[o] = r[o] || [], r[o][0] = s[o][0], r[o][1] = s[o][1];
return s.length;
}
}, e.prototype._processFlatCoordsArray = function(n) {
var r = 0;
if (this._flatCoords && (r = this._flatCoords.length), St(n[0])) {
for (var i = n.length, a = new UWe(i), o = new XWe(i), s = 0, l = 0, u = 0, c = 0; c < i; ) {
u++;
var f = n[c++];
a[l++] = s + r, a[l++] = f;
for (var d = 0; d < f; d++) {
var h = n[c++], p = n[c++];
if (o[s++] = h, o[s++] = p, c > i && process.env.NODE_ENV !== "production")
throw new Error("Invalid data format.");
}
}
return {
flatCoordsOffset: new Uint32Array(a.buffer, 0, l),
flatCoords: o,
count: u
};
}
return {
flatCoordsOffset: null,
flatCoords: null,
count: n.length
};
}, e.prototype.getInitialData = function(n, r) {
if (process.env.NODE_ENV !== "production") {
var i = Vf.get(n.coordinateSystem);
if (!i)
throw new Error("Unknown coordinate system " + n.coordinateSystem);
}
var a = new Nr(["value"], this);
return a.hasItemOption = !1, a.initData(n.data, [], function(o, s, l, u) {
if (o instanceof Array)
return NaN;
a.hasItemOption = !0;
var c = o.value;
if (c != null)
return c instanceof Array ? c[u] : c;
}), a;
}, e.prototype.formatTooltip = function(n, r, i) {
var a = this.getData(), o = a.getItemModel(n), s = o.get("name");
if (s)
return s;
var l = o.get("fromName"), u = o.get("toName"), c = [];
return l != null && c.push(l), u != null && c.push(u), tr("nameValue", {
name: c.join(" > ")
});
}, e.prototype.preventIncremental = function() {
return !!this.get(["effect", "show"]);
}, e.prototype.getProgressive = function() {
var n = this.option.progressive;
return n ?? (this.option.large ? 1e4 : this.get("progressive"));
}, e.prototype.getProgressiveThreshold = function() {
var n = this.option.progressiveThreshold;
return n ?? (this.option.large ? 2e4 : this.get("progressiveThreshold"));
}, e.prototype.getZLevelKey = function() {
var n = this.getModel("effect"), r = n.get("trailLength");
return this.getData().count() > this.getProgressiveThreshold() ? this.id : n.get("show") && r > 0 ? r + "" : "";
}, e.type = "series.lines", e.dependencies = ["grid", "polar", "geo", "calendar"], e.defaultOption = {
coordinateSystem: "geo",
// zlevel: 0,
z: 2,
legendHoverLink: !0,
// Cartesian coordinate system
xAxisIndex: 0,
yAxisIndex: 0,
symbol: ["none", "none"],
symbolSize: [10, 10],
// Geo coordinate system
geoIndex: 0,
effect: {
show: !1,
period: 4,
constantSpeed: 0,
symbol: "circle",
symbolSize: 3,
loop: !0,
trailLength: 0.2
},
large: !1,
// Available when large is true
largeThreshold: 2e3,
polyline: !1,
clip: !0,
label: {
show: !1,
position: "end"
// distance: 5,
// formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
},
lineStyle: {
opacity: 0.5
}
}, e;
}(Ht)
);
function Ib(t) {
return t instanceof Array || (t = [t, t]), t;
}
var qWe = {
seriesType: "lines",
reset: function(t) {
var e = Ib(t.get("symbol")), n = Ib(t.get("symbolSize")), r = t.getData();
r.setVisual("fromSymbol", e && e[0]), r.setVisual("toSymbol", e && e[1]), r.setVisual("fromSymbolSize", n && n[0]), r.setVisual("toSymbolSize", n && n[1]);
function i(a, o) {
var s = a.getItemModel(o), l = Ib(s.getShallow("symbol", !0)), u = Ib(s.getShallow("symbolSize", !0));
l[0] && a.setItemVisual(o, "fromSymbol", l[0]), l[1] && a.setItemVisual(o, "toSymbol", l[1]), u[0] && a.setItemVisual(o, "fromSymbolSize", u[0]), u[1] && a.setItemVisual(o, "toSymbolSize", u[1]);
}
return {
dataEach: r.hasItemOption ? i : null
};
}
};
function KWe(t) {
t.registerChartView(ZWe), t.registerSeriesModel(YWe), t.registerLayout(cre), t.registerVisual(qWe);
}
var JWe = 256, e7e = (
/** @class */
function() {
function t() {
this.blurSize = 30, this.pointSize = 20, this.maxOpacity = 1, this.minOpacity = 0, this._gradientPixels = {
inRange: null,
outOfRange: null
};
var e = oo.createCanvas();
this.canvas = e;
}
return t.prototype.update = function(e, n, r, i, a, o) {
var s = this._getBrush(), l = this._getGradient(a, "inRange"), u = this._getGradient(a, "outOfRange"), c = this.pointSize + this.blurSize, f = this.canvas, d = f.getContext("2d"), h = e.length;
f.width = n, f.height = r;
for (var p = 0; p < h; ++p) {
var v = e[p], g = v[0], m = v[1], y = v[2], b = i(y);
d.globalAlpha = b, d.drawImage(s, g - c, m - c);
}
if (!f.width || !f.height)
return f;
for (var _ = d.getImageData(0, 0, f.width, f.height), O = _.data, S = 0, x = O.length, C = this.minOpacity, T = this.maxOpacity, w = T - C; S < x; ) {
var b = O[S + 3] / 256, P = Math.floor(b * (JWe - 1)) * 4;
if (b > 0) {
var $ = o(b) ? l : u;
b > 0 && (b = b * w + C), O[S++] = $[P], O[S++] = $[P + 1], O[S++] = $[P + 2], O[S++] = $[P + 3] * b * 256;
} else
S += 4;
}
return d.putImageData(_, 0, 0), f;
}, t.prototype._getBrush = function() {
var e = this._brushCanvas || (this._brushCanvas = oo.createCanvas()), n = this.pointSize + this.blurSize, r = n * 2;
e.width = r, e.height = r;
var i = e.getContext("2d");
return i.clearRect(0, 0, r, r), i.shadowOffsetX = r, i.shadowBlur = this.blurSize, i.shadowColor = "#000", i.beginPath(), i.arc(-n, n, this.pointSize, 0, Math.PI * 2, !0), i.closePath(), i.fill(), e;
}, t.prototype._getGradient = function(e, n) {
for (var r = this._gradientPixels, i = r[n] || (r[n] = new Uint8ClampedArray(256 * 4)), a = [0, 0, 0, 0], o = 0, s = 0; s < 256; s++)
e[n](s / 255, !0, a), i[o++] = a[0], i[o++] = a[1], i[o++] = a[2], i[o++] = a[3];
return i;
}, t;
}()
);
function t7e(t, e, n) {
var r = t[1] - t[0];
e = ce(e, function(o) {
return {
interval: [(o.interval[0] - t[0]) / r, (o.interval[1] - t[0]) / r]
};
});
var i = e.length, a = 0;
return function(o) {
var s;
for (s = a; s < i; s++) {
var l = e[s].interval;
if (l[0] <= o && o <= l[1]) {
a = s;
break;
}
}
if (s === i)
for (s = a - 1; s >= 0; s--) {
var l = e[s].interval;
if (l[0] <= o && o <= l[1]) {
a = s;
break;
}
}
return s >= 0 && s < i && n[s];
};
}
function n7e(t, e) {
var n = t[1] - t[0];
return e = [(e[0] - t[0]) / n, (e[1] - t[0]) / n], function(r) {
return r >= e[0] && r <= e[1];
};
}
function _W(t) {
var e = t.dimensions;
return e[0] === "lng" && e[1] === "lat";
}
var r7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a;
if (r.eachComponent("visualMap", function(s) {
s.eachTargetSeries(function(l) {
l === n && (a = s);
});
}), process.env.NODE_ENV !== "production" && !a)
throw new Error("Heatmap must use with visualMap");
this._progressiveEls = null, this.group.removeAll();
var o = n.coordinateSystem;
o.type === "cartesian2d" || o.type === "calendar" ? this._renderOnCartesianAndCalendar(n, i, 0, n.getData().count()) : _W(o) && this._renderOnGeo(o, n, a, i);
}, e.prototype.incrementalPrepareRender = function(n, r, i) {
this.group.removeAll();
}, e.prototype.incrementalRender = function(n, r, i, a) {
var o = r.coordinateSystem;
o && (_W(o) ? this.render(r, i, a) : (this._progressiveEls = [], this._renderOnCartesianAndCalendar(r, a, n.start, n.end, !0)));
}, e.prototype.eachRendered = function(n) {
Tu(this._progressiveEls || this.group, n);
}, e.prototype._renderOnCartesianAndCalendar = function(n, r, i, a, o) {
var s = n.coordinateSystem, l = Wf(s, "cartesian2d"), u, c, f, d;
if (l) {
var h = s.getAxis("x"), p = s.getAxis("y");
if (process.env.NODE_ENV !== "production") {
if (!(h.type === "category" && p.type === "category"))
throw new Error("Heatmap on cartesian must have two category axes");
if (!(h.onBand && p.onBand))
throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");
}
u = h.getBandWidth() + 0.5, c = p.getBandWidth() + 0.5, f = h.scale.getExtent(), d = p.scale.getExtent();
}
for (var v = this.group, g = n.getData(), m = n.getModel(["emphasis", "itemStyle"]).getItemStyle(), y = n.getModel(["blur", "itemStyle"]).getItemStyle(), b = n.getModel(["select", "itemStyle"]).getItemStyle(), _ = n.get(["itemStyle", "borderRadius"]), O = er(n), S = n.getModel("emphasis"), x = S.get("focus"), C = S.get("blurScope"), T = S.get("disabled"), w = l ? [g.mapDimension("x"), g.mapDimension("y"), g.mapDimension("value")] : [g.mapDimension("time"), g.mapDimension("value")], P = i; P < a; P++) {
var $ = void 0, A = g.getItemVisual(P, "style");
if (l) {
var D = g.get(w[0], P), E = g.get(w[1], P);
if (isNaN(g.get(w[2], P)) || isNaN(D) || isNaN(E) || D < f[0] || D > f[1] || E < d[0] || E > d[1])
continue;
var R = s.dataToPoint([D, E]);
$ = new mt({
shape: {
x: R[0] - u / 2,
y: R[1] - c / 2,
width: u,
height: c
},
style: A
});
} else {
if (isNaN(g.get(w[1], P)))
continue;
$ = new mt({
z2: 1,
shape: s.dataToRect([g.get(w[0], P)]).contentShape,
style: A
});
}
if (g.hasItemOption) {
var N = g.getItemModel(P), V = N.getModel("emphasis");
m = V.getModel("itemStyle").getItemStyle(), y = N.getModel(["blur", "itemStyle"]).getItemStyle(), b = N.getModel(["select", "itemStyle"]).getItemStyle(), _ = N.get(["itemStyle", "borderRadius"]), x = V.get("focus"), C = V.get("blurScope"), T = V.get("disabled"), O = er(N);
}
$.shape.r = _;
var B = n.getRawValue(P), W = "-";
B && B[2] != null && (W = B[2] + ""), Pr($, O, {
labelFetcher: n,
labelDataIndex: P,
defaultOpacity: A.opacity,
defaultText: W
}), $.ensureState("emphasis").style = m, $.ensureState("blur").style = y, $.ensureState("select").style = b, bn($, x, C, T), $.incremental = o, o && ($.states.emphasis.hoverLayer = !0), v.add($), g.setItemGraphicEl(P, $), this._progressiveEls && this._progressiveEls.push($);
}
}, e.prototype._renderOnGeo = function(n, r, i, a) {
var o = i.targetVisuals.inRange, s = i.targetVisuals.outOfRange, l = r.getData(), u = this._hmLayer || this._hmLayer || new e7e();
u.blurSize = r.get("blurSize"), u.pointSize = r.get("pointSize"), u.minOpacity = r.get("minOpacity"), u.maxOpacity = r.get("maxOpacity");
var c = n.getViewRect().clone(), f = n.getRoamTransform();
c.applyTransform(f);
var d = Math.max(c.x, 0), h = Math.max(c.y, 0), p = Math.min(c.width + c.x, a.getWidth()), v = Math.min(c.height + c.y, a.getHeight()), g = p - d, m = v - h, y = [l.mapDimension("lng"), l.mapDimension("lat"), l.mapDimension("value")], b = l.mapArray(y, function(x, C, T) {
var w = n.dataToPoint([x, C]);
return w[0] -= d, w[1] -= h, w.push(T), w;
}), _ = i.getExtent(), O = i.type === "visualMap.continuous" ? n7e(_, i.option.range) : t7e(_, i.getPieceList(), i.option.selected);
u.update(b, g, m, o.color.getNormalizer(), {
inRange: o.color.getColorMapper(),
outOfRange: s.color.getColorMapper()
}, O);
var S = new lr({
style: {
width: g,
height: m,
x: d,
y: h,
image: u.canvas
},
silent: !0
});
this.group.add(S);
}, e.type = "heatmap", e;
}(zt)
), i7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.getInitialData = function(n, r) {
return cs(null, this, {
generateCoord: "value"
});
}, e.prototype.preventIncremental = function() {
var n = Vf.get(this.get("coordinateSystem"));
if (n && n.dimensions)
return n.dimensions[0] === "lng" && n.dimensions[1] === "lat";
}, e.type = "series.heatmap", e.dependencies = ["grid", "geo", "calendar"], e.defaultOption = {
coordinateSystem: "cartesian2d",
// zlevel: 0,
z: 2,
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
// Geo coordinate system
geoIndex: 0,
blurSize: 30,
pointSize: 20,
maxOpacity: 1,
minOpacity: 0,
select: {
itemStyle: {
borderColor: "#212121"
}
}
}, e;
}(Ht)
);
function a7e(t) {
t.registerChartView(r7e), t.registerSeriesModel(i7e);
}
var o7e = ["itemStyle", "borderWidth"], OW = [{
xy: "x",
wh: "width",
index: 0,
posDesc: ["left", "right"]
}, {
xy: "y",
wh: "height",
index: 1,
posDesc: ["top", "bottom"]
}], zP = new ul(), s7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = this.group, o = n.getData(), s = this._data, l = n.coordinateSystem, u = l.getBaseAxis(), c = u.isHorizontal(), f = l.master.getRect(), d = {
ecSize: {
width: i.getWidth(),
height: i.getHeight()
},
seriesModel: n,
coordSys: l,
coordSysExtent: [[f.x, f.x + f.width], [f.y, f.y + f.height]],
isHorizontal: c,
valueDim: OW[+c],
categoryDim: OW[1 - +c]
};
o.diff(s).add(function(p) {
if (o.hasValue(p)) {
var v = xW(o, p), g = SW(o, p, v, d), m = wW(o, d, g);
o.setItemGraphicEl(p, m), a.add(m), TW(m, d, g);
}
}).update(function(p, v) {
var g = s.getItemGraphicEl(v);
if (!o.hasValue(p)) {
a.remove(g);
return;
}
var m = xW(o, p), y = SW(o, p, m, d), b = gre(o, y);
g && b !== g.__pictorialShapeStr && (a.remove(g), o.setItemGraphicEl(p, null), g = null), g ? p7e(g, d, y) : g = wW(o, d, y, !0), o.setItemGraphicEl(p, g), g.__pictorialSymbolMeta = y, a.add(g), TW(g, d, y);
}).remove(function(p) {
var v = s.getItemGraphicEl(p);
v && CW(s, p, v.__pictorialSymbolMeta.animationModel, v);
}).execute();
var h = n.get("clip", !0) ? X0(n.coordinateSystem, !1, n) : null;
return h ? a.setClipPath(h) : a.removeClipPath(), this._data = o, this.group;
}, e.prototype.remove = function(n, r) {
var i = this.group, a = this._data;
n.get("animation") ? a && a.eachItemGraphicEl(function(o) {
CW(a, Fe(o).dataIndex, n, o);
}) : i.removeAll();
}, e.type = "pictorialBar", e;
}(zt)
);
function SW(t, e, n, r) {
var i = t.getItemLayout(e), a = n.get("symbolRepeat"), o = n.get("symbolClip"), s = n.get("symbolPosition") || "start", l = n.get("symbolRotate"), u = (l || 0) * Math.PI / 180 || 0, c = n.get("symbolPatternSize") || 2, f = n.isAnimationEnabled(), d = {
dataIndex: e,
layout: i,
itemModel: n,
symbolType: t.getItemVisual(e, "symbol") || "circle",
style: t.getItemVisual(e, "style"),
symbolClip: o,
symbolRepeat: a,
symbolRepeatDirection: n.get("symbolRepeatDirection"),
symbolPatternSize: c,
rotation: u,
animationModel: f ? n : null,
hoverScale: f && n.get(["emphasis", "scale"]),
z2: n.getShallow("z", !0) || 0
};
l7e(n, a, i, r, d), u7e(t, e, i, a, o, d.boundingLength, d.pxSign, c, r, d), c7e(n, d.symbolScale, u, r, d);
var h = d.symbolSize, p = Ff(n.get("symbolOffset"), h);
return f7e(n, h, i, a, o, p, s, d.valueLineWidth, d.boundingLength, d.repeatCutLength, r, d), d;
}
function l7e(t, e, n, r, i) {
var a = r.valueDim, o = t.get("symbolBoundingData"), s = r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()), l = s.toGlobalCoord(s.dataToCoord(0)), u = 1 - +(n[a.wh] <= 0), c;
if (ue(o)) {
var f = [VP(s, o[0]) - l, VP(s, o[1]) - l];
f[1] < f[0] && f.reverse(), c = f[u];
} else o != null ? c = VP(s, o) - l : e ? c = r.coordSysExtent[a.index][u] - l : c = n[a.wh];
i.boundingLength = c, e && (i.repeatCutLength = n[a.wh]), i.pxSign = c > 0 ? 1 : -1;
}
function VP(t, e) {
return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)));
}
function u7e(t, e, n, r, i, a, o, s, l, u) {
var c = l.valueDim, f = l.categoryDim, d = Math.abs(n[f.wh]), h = t.getItemVisual(e, "symbolSize"), p;
ue(h) ? p = h.slice() : h == null ? p = ["100%", "100%"] : p = [h, h], p[f.index] = _e(p[f.index], d), p[c.index] = _e(p[c.index], r ? d : Math.abs(a)), u.symbolSize = p;
var v = u.symbolScale = [p[0] / s, p[1] / s];
v[c.index] *= (l.isHorizontal ? -1 : 1) * o;
}
function c7e(t, e, n, r, i) {
var a = t.get(o7e) || 0;
a && (zP.attr({
scaleX: e[0],
scaleY: e[1],
rotation: n
}), zP.updateTransform(), a /= zP.getLineScale(), a *= e[r.valueDim.index]), i.valueLineWidth = a || 0;
}
function f7e(t, e, n, r, i, a, o, s, l, u, c, f) {
var d = c.categoryDim, h = c.valueDim, p = f.pxSign, v = Math.max(e[h.index] + s, 0), g = v;
if (r) {
var m = Math.abs(l), y = Tn(t.get("symbolMargin"), "15%") + "", b = !1;
y.lastIndexOf("!") === y.length - 1 && (b = !0, y = y.slice(0, y.length - 1));
var _ = _e(y, e[h.index]), O = Math.max(v + _ * 2, 0), S = b ? 0 : _ * 2, x = Wx(r), C = x ? r : PW((m + S) / O), T = m - C * v;
_ = T / 2 / (b ? C : Math.max(C - 1, 1)), O = v + _ * 2, S = b ? 0 : _ * 2, !x && r !== "fixed" && (C = u ? PW((Math.abs(u) + S) / O) : 0), g = C * O - S, f.repeatTimes = C, f.symbolMargin = _;
}
var w = p * (g / 2), P = f.pathPosition = [];
P[d.index] = n[d.wh] / 2, P[h.index] = o === "start" ? w : o === "end" ? l - w : l / 2, a && (P[0] += a[0], P[1] += a[1]);
var $ = f.bundlePosition = [];
$[d.index] = n[d.xy], $[h.index] = n[h.xy];
var A = f.barRectShape = le({}, n);
A[h.wh] = p * Math.max(Math.abs(n[h.wh]), Math.abs(P[h.index] + w)), A[d.wh] = n[d.wh];
var D = f.clipShape = {};
D[d.xy] = -n[d.xy], D[d.wh] = c.ecSize[d.wh], D[h.xy] = 0, D[h.wh] = n[h.wh];
}
function fre(t) {
var e = t.symbolPatternSize, n = $n(
// Consider texture img, make a big size.
t.symbolType,
-e / 2,
-e / 2,
e,
e
);
return n.attr({
culling: !0
}), n.type !== "image" && n.setStyle({
strokeNoScale: !0
}), n;
}
function dre(t, e, n, r) {
var i = t.__pictorialBundle, a = n.symbolSize, o = n.valueLineWidth, s = n.pathPosition, l = e.valueDim, u = n.repeatTimes || 0, c = 0, f = a[e.valueDim.index] + o + n.symbolMargin * 2;
for (sL(t, function(v) {
v.__pictorialAnimationIndex = c, v.__pictorialRepeatTimes = u, c < u ? sh(v, null, p(c), n, r) : sh(v, null, {
scaleX: 0,
scaleY: 0
}, n, r, function() {
i.remove(v);
}), c++;
}); c < u; c++) {
var d = fre(n);
d.__pictorialAnimationIndex = c, d.__pictorialRepeatTimes = u, i.add(d);
var h = p(c);
sh(d, {
x: h.x,
y: h.y,
scaleX: 0,
scaleY: 0
}, {
scaleX: h.scaleX,
scaleY: h.scaleY,
rotation: h.rotation
}, n, r);
}
function p(v) {
var g = s.slice(), m = n.pxSign, y = v;
return (n.symbolRepeatDirection === "start" ? m > 0 : m < 0) && (y = u - 1 - v), g[l.index] = f * (y - u / 2 + 0.5) + s[l.index], {
x: g[0],
y: g[1],
scaleX: n.symbolScale[0],
scaleY: n.symbolScale[1],
rotation: n.rotation
};
}
}
function hre(t, e, n, r) {
var i = t.__pictorialBundle, a = t.__pictorialMainPath;
a ? sh(a, null, {
x: n.pathPosition[0],
y: n.pathPosition[1],
scaleX: n.symbolScale[0],
scaleY: n.symbolScale[1],
rotation: n.rotation
}, n, r) : (a = t.__pictorialMainPath = fre(n), i.add(a), sh(a, {
x: n.pathPosition[0],
y: n.pathPosition[1],
scaleX: 0,
scaleY: 0,
rotation: n.rotation
}, {
scaleX: n.symbolScale[0],
scaleY: n.symbolScale[1]
}, n, r));
}
function pre(t, e, n) {
var r = le({}, e.barRectShape), i = t.__pictorialBarRect;
i ? sh(i, null, {
shape: r
}, e, n) : (i = t.__pictorialBarRect = new mt({
z2: 2,
shape: r,
silent: !0,
style: {
stroke: "transparent",
fill: "transparent",
lineWidth: 0
}
}), i.disableMorphing = !0, t.add(i));
}
function vre(t, e, n, r) {
if (n.symbolClip) {
var i = t.__pictorialClipPath, a = le({}, n.clipShape), o = e.valueDim, s = n.animationModel, l = n.dataIndex;
if (i)
Ct(i, {
shape: a
}, s, l);
else {
a[o.wh] = 0, i = new mt({
shape: a
}), t.__pictorialBundle.setClipPath(i), t.__pictorialClipPath = i;
var u = {};
u[o.wh] = n.clipShape[o.wh], Nf[r ? "updateProps" : "initProps"](i, {
shape: u
}, s, l);
}
}
}
function xW(t, e) {
var n = t.getItemModel(e);
return n.getAnimationDelayParams = d7e, n.isAnimationEnabled = h7e, n;
}
function d7e(t) {
return {
index: t.__pictorialAnimationIndex,
count: t.__pictorialRepeatTimes
};
}
function h7e() {
return this.parentModel.isAnimationEnabled() && !!this.getShallow("animation");
}
function wW(t, e, n, r) {
var i = new Ve(), a = new Ve();
return i.add(a), i.__pictorialBundle = a, a.x = n.bundlePosition[0], a.y = n.bundlePosition[1], n.symbolRepeat ? dre(i, e, n) : hre(i, e, n), pre(i, n, r), vre(i, e, n, r), i.__pictorialShapeStr = gre(t, n), i.__pictorialSymbolMeta = n, i;
}
function p7e(t, e, n) {
var r = n.animationModel, i = n.dataIndex, a = t.__pictorialBundle;
Ct(a, {
x: n.bundlePosition[0],
y: n.bundlePosition[1]
}, r, i), n.symbolRepeat ? dre(t, e, n, !0) : hre(t, e, n, !0), pre(t, n, !0), vre(t, e, n, !0);
}
function CW(t, e, n, r) {
var i = r.__pictorialBarRect;
i && i.removeTextContent();
var a = [];
sL(r, function(o) {
a.push(o);
}), r.__pictorialMainPath && a.push(r.__pictorialMainPath), r.__pictorialClipPath && (n = null), k(a, function(o) {
uu(o, {
scaleX: 0,
scaleY: 0
}, n, e, function() {
r.parent && r.parent.remove(r);
});
}), t.setItemGraphicEl(e, null);
}
function gre(t, e) {
return [t.getItemVisual(e.dataIndex, "symbol") || "none", !!e.symbolRepeat, !!e.symbolClip].join(":");
}
function sL(t, e, n) {
k(t.__pictorialBundle.children(), function(r) {
r !== t.__pictorialBarRect && e.call(n, r);
});
}
function sh(t, e, n, r, i, a) {
e && t.attr(e), r.symbolClip && !i ? n && t.attr(n) : n && Nf[i ? "updateProps" : "initProps"](t, n, r.animationModel, r.dataIndex, a);
}
function TW(t, e, n) {
var r = n.dataIndex, i = n.itemModel, a = i.getModel("emphasis"), o = a.getModel("itemStyle").getItemStyle(), s = i.getModel(["blur", "itemStyle"]).getItemStyle(), l = i.getModel(["select", "itemStyle"]).getItemStyle(), u = i.getShallow("cursor"), c = a.get("focus"), f = a.get("blurScope"), d = a.get("scale");
sL(t, function(v) {
if (v instanceof lr) {
var g = v.style;
v.useStyle(le({
// TODO other properties like dx, dy ?
image: g.image,
x: g.x,
y: g.y,
width: g.width,
height: g.height
}, n.style));
} else
v.useStyle(n.style);
var m = v.ensureState("emphasis");
m.style = o, d && (m.scaleX = v.scaleX * 1.1, m.scaleY = v.scaleY * 1.1), v.ensureState("blur").style = s, v.ensureState("select").style = l, u && (v.cursor = u), v.z2 = n.z2;
});
var h = e.valueDim.posDesc[+(n.boundingLength > 0)], p = t.__pictorialBarRect;
p.ignoreClip = !0, Pr(p, er(i), {
labelFetcher: e.seriesModel,
labelDataIndex: r,
defaultText: Zh(e.seriesModel.getData(), r),
inheritColor: n.style.fill,
defaultOpacity: n.style.opacity,
defaultOutsidePosition: h
}), bn(t, c, f, a.get("disabled"));
}
function PW(t) {
var e = Math.round(t);
return Math.abs(t - e) < 1e-4 ? e : Math.ceil(t);
}
var v7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.hasSymbolVisual = !0, n.defaultSymbol = "roundRect", n;
}
return e.prototype.getInitialData = function(n) {
return n.stack = null, t.prototype.getInitialData.apply(this, arguments);
}, e.type = "series.pictorialBar", e.dependencies = ["grid"], e.defaultOption = Pu(Bm.defaultOption, {
symbol: "circle",
symbolSize: null,
symbolRotate: null,
symbolPosition: null,
symbolOffset: null,
symbolMargin: null,
symbolRepeat: !1,
symbolRepeatDirection: "end",
symbolClip: !1,
symbolBoundingData: null,
symbolPatternSize: 400,
barGap: "-100%",
// Pictorial bar do not clip by default because in many cases
// xAxis and yAxis are not displayed and it's expected not to clip
clip: !1,
// z can be set in data item, which is z2 actually.
// Disable progressive
progressive: 0,
emphasis: {
// By default pictorialBar do not hover scale. Hover scale is not suitable
// for the case that both has foreground and background.
scale: !1
},
select: {
itemStyle: {
borderColor: "#212121"
}
}
}), e;
}(Bm)
);
function g7e(t) {
t.registerChartView(s7e), t.registerSeriesModel(v7e), t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, Ue(Kee, "pictorialBar")), t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, Jee("pictorialBar"));
}
var m7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._layers = [], n;
}
return e.prototype.render = function(n, r, i) {
var a = n.getData(), o = this, s = this.group, l = n.getLayerSeries(), u = a.getLayout("layoutInfo"), c = u.rect, f = u.boundaryGap;
s.x = 0, s.y = c.y + f[0];
function d(g) {
return g.name;
}
var h = new Xs(this._layersSeries || [], l, d, d), p = [];
h.add(xe(v, this, "add")).update(xe(v, this, "update")).remove(xe(v, this, "remove")).execute();
function v(g, m, y) {
var b = o._layers;
if (g === "remove") {
s.remove(b[m]);
return;
}
for (var _ = [], O = [], S, x = l[m].indices, C = 0; C < x.length; C++) {
var T = a.getItemLayout(x[C]), w = T.x, P = T.y0, $ = T.y;
_.push(w, P), O.push(w, P + $), S = a.getItemVisual(x[C], "style");
}
var A, D = a.getItemLayout(x[0]), E = n.getModel("label"), R = E.get("margin"), N = n.getModel("emphasis");
if (g === "add") {
var V = p[m] = new Ve();
A = new Fte({
shape: {
points: _,
stackedOnPoints: O,
smooth: 0.4,
stackedOnSmooth: 0.4,
smoothConstraint: !1
},
z2: 0
}), V.add(A), s.add(V), n.isAnimationEnabled() && A.setClipPath(y7e(A.getBoundingRect(), n, function() {
A.removeClipPath();
}));
} else {
var V = b[y];
A = V.childAt(0), s.add(V), p[m] = V, Ct(A, {
shape: {
points: _,
stackedOnPoints: O
}
}, n), uo(A);
}
Pr(A, er(n), {
labelDataIndex: x[C - 1],
defaultText: a.getName(x[C - 1]),
inheritColor: S.fill
}, {
normal: {
verticalAlign: "middle"
// align: 'right'
}
}), A.setTextConfig({
position: null,
local: !0
});
var B = A.getTextContent();
B && (B.x = D.x - R, B.y = D.y0 + D.y / 2), A.useStyle(S), a.setItemGraphicEl(m, A), Tr(A, n), bn(A, N.get("focus"), N.get("blurScope"), N.get("disabled"));
}
this._layersSeries = l, this._layers = p;
}, e.type = "themeRiver", e;
}(zt)
);
function y7e(t, e, n) {
var r = new mt({
shape: {
x: t.x - 10,
y: t.y - 10,
width: 0,
height: t.height + 20
}
});
return Yt(r, {
shape: {
x: t.x - 50,
width: t.width + 100,
height: t.height + 20
}
}, e, n), r;
}
var FP = 2, b7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n) {
t.prototype.init.apply(this, arguments), this.legendVisualProvider = new K0(xe(this.getData, this), xe(this.getRawData, this));
}, e.prototype.fixData = function(n) {
var r = n.length, i = {}, a = $A(n, function(d) {
return i.hasOwnProperty(d[0] + "") || (i[d[0] + ""] = -1), d[2];
}), o = [];
a.buckets.each(function(d, h) {
o.push({
name: h,
dataList: d
});
});
for (var s = o.length, l = 0; l < s; ++l) {
for (var u = o[l].name, c = 0; c < o[l].dataList.length; ++c) {
var f = o[l].dataList[c][0] + "";
i[f] = l;
}
for (var f in i)
i.hasOwnProperty(f) && i[f] !== l && (i[f] = l, n[r] = [f, 0, u], r++);
}
return n;
}, e.prototype.getInitialData = function(n, r) {
for (var i = this.getReferringComponents("singleAxis", Dn).models[0], a = i.get("type"), o = Nt(n.data, function(p) {
return p[2] !== void 0;
}), s = this.fixData(o || []), l = [], u = this.nameMap = Pe(), c = 0, f = 0; f < s.length; ++f)
l.push(s[f][FP]), u.get(s[f][FP]) || (u.set(s[f][FP], c), c++);
var d = Ap(s, {
coordDimensions: ["single"],
dimensionsDefine: [{
name: "time",
type: TO(a)
}, {
name: "value",
type: "float"
}, {
name: "name",
type: "ordinal"
}],
encodeDefine: {
single: 0,
value: 1,
itemName: 2
}
}).dimensions, h = new Nr(d, this);
return h.initData(s), h;
}, e.prototype.getLayerSeries = function() {
for (var n = this.getData(), r = n.count(), i = [], a = 0; a < r; ++a)
i[a] = a;
var o = n.mapDimension("single"), s = $A(i, function(u) {
return n.get("name", u);
}), l = [];
return s.buckets.each(function(u, c) {
u.sort(function(f, d) {
return n.get(o, f) - n.get(o, d);
}), l.push({
name: c,
indices: u
});
}), l;
}, e.prototype.getAxisTooltipData = function(n, r, i) {
ue(n) || (n = n ? [n] : []);
for (var a = this.getData(), o = this.getLayerSeries(), s = [], l = o.length, u, c = 0; c < l; ++c) {
for (var f = Number.MAX_VALUE, d = -1, h = o[c].indices.length, p = 0; p < h; ++p) {
var v = a.get(n[0], o[c].indices[p]), g = Math.abs(v - r);
g <= f && (u = v, f = g, d = o[c].indices[p]);
}
s.push(d);
}
return {
dataIndices: s,
nestestValue: u
};
}, e.prototype.formatTooltip = function(n, r, i) {
var a = this.getData(), o = a.getName(n), s = a.get(a.mapDimension("value"), n);
return tr("nameValue", {
name: o,
value: s
});
}, e.type = "series.themeRiver", e.dependencies = ["singleAxis"], e.defaultOption = {
// zlevel: 0,
z: 2,
colorBy: "data",
coordinateSystem: "singleAxis",
// gap in axis's orthogonal orientation
boundaryGap: ["10%", "10%"],
// legendHoverLink: true,
singleAxisIndex: 0,
animationEasing: "linear",
label: {
margin: 4,
show: !0,
position: "left",
fontSize: 11
},
emphasis: {
label: {
show: !0
}
}
}, e;
}(Ht)
);
function _7e(t, e) {
t.eachSeriesByType("themeRiver", function(n) {
var r = n.getData(), i = n.coordinateSystem, a = {}, o = i.getRect();
a.rect = o;
var s = n.get("boundaryGap"), l = i.getAxis();
if (a.boundaryGap = s, l.orient === "horizontal") {
s[0] = _e(s[0], o.height), s[1] = _e(s[1], o.height);
var u = o.height - s[0] - s[1];
$W(r, n, u);
} else {
s[0] = _e(s[0], o.width), s[1] = _e(s[1], o.width);
var c = o.width - s[0] - s[1];
$W(r, n, c);
}
r.setLayout("layoutInfo", a);
});
}
function $W(t, e, n) {
if (t.count())
for (var r = e.coordinateSystem, i = e.getLayerSeries(), a = t.mapDimension("single"), o = t.mapDimension("value"), s = ce(i, function(g) {
return ce(g.indices, function(m) {
var y = r.dataToPoint(t.get(a, m));
return y[1] = t.get(o, m), y;
});
}), l = O7e(s), u = l.y0, c = n / l.max, f = i.length, d = i[0].indices.length, h, p = 0; p < d; ++p) {
h = u[p] * c, t.setItemLayout(i[0].indices[p], {
layerIndex: 0,
x: s[0][p][0],
y0: h,
y: s[0][p][1] * c
});
for (var v = 1; v < f; ++v)
h += s[v - 1][p][1] * c, t.setItemLayout(i[v].indices[p], {
layerIndex: v,
x: s[v][p][0],
y0: h,
y: s[v][p][1] * c
});
}
}
function O7e(t) {
for (var e = t.length, n = t[0].length, r = [], i = [], a = 0, o = 0; o < n; ++o) {
for (var s = 0, l = 0; l < e; ++l)
s += t[l][o][1];
s > a && (a = s), r.push(s);
}
for (var u = 0; u < n; ++u)
i[u] = (a - r[u]) / 2;
a = 0;
for (var c = 0; c < n; ++c) {
var f = r[c] + i[c];
f > a && (a = f);
}
return {
y0: i,
max: a
};
}
function S7e(t) {
t.registerChartView(m7e), t.registerSeriesModel(b7e), t.registerLayout(_7e), t.registerProcessor(q0("themeRiver"));
}
var x7e = 2, w7e = 4, AW = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i, a) {
var o = t.call(this) || this;
o.z2 = x7e, o.textConfig = {
inside: !0
}, Fe(o).seriesIndex = r.seriesIndex;
var s = new gt({
z2: w7e,
silent: n.getModel().get(["label", "silent"])
});
return o.setTextContent(s), o.updateData(!0, n, r, i, a), o;
}
return e.prototype.updateData = function(n, r, i, a, o) {
this.node = r, r.piece = this, i = i || this._seriesModel, a = a || this._ecModel;
var s = this;
Fe(s).dataIndex = r.dataIndex;
var l = r.getModel(), u = l.getModel("emphasis"), c = r.getLayout(), f = le({}, c);
f.label = null;
var d = r.getVisual("style");
d.lineJoin = "bevel";
var h = r.getVisual("decal");
h && (d.decal = jh(h, o));
var p = Fc(l.getModel("itemStyle"), f, !0);
le(f, p), k(ri, function(y) {
var b = s.ensureState(y), _ = l.getModel([y, "itemStyle"]);
b.style = _.getItemStyle();
var O = Fc(_, f);
O && (b.shape = O);
}), n ? (s.setShape(f), s.shape.r = c.r0, Yt(s, {
shape: {
r: c.r
}
}, i, r.dataIndex)) : (Ct(s, {
shape: f
}, i), uo(s)), s.useStyle(d), this._updateLabel(i);
var v = l.getShallow("cursor");
v && s.attr("cursor", v), this._seriesModel = i || this._seriesModel, this._ecModel = a || this._ecModel;
var g = u.get("focus"), m = g === "ancestor" ? r.getAncestorsIndices() : g === "descendant" ? r.getDescendantIndices() : g;
bn(this, m, u.get("blurScope"), u.get("disabled"));
}, e.prototype._updateLabel = function(n) {
var r = this, i = this.node.getModel(), a = i.getModel("label"), o = this.node.getLayout(), s = o.endAngle - o.startAngle, l = (o.startAngle + o.endAngle) / 2, u = Math.cos(l), c = Math.sin(l), f = this, d = f.getTextContent(), h = this.node.dataIndex, p = a.get("minAngle") / 180 * Math.PI, v = a.get("show") && !(p != null && Math.abs(s) < p);
d.ignore = !v, k(Pm, function(m) {
var y = m === "normal" ? i.getModel("label") : i.getModel([m, "label"]), b = m === "normal", _ = b ? d : d.ensureState(m), O = n.getFormattedLabel(h, m);
b && (O = O || r.node.name), _.style = Zt(y, {}, null, m !== "normal", !0), O && (_.style.text = O);
var S = y.get("show");
S != null && !b && (_.ignore = !S);
var x = g(y, "position"), C = b ? f : f.states[m], T = C.style.fill;
C.textConfig = {
outsideFill: y.get("color") === "inherit" ? T : null,
inside: x !== "outside"
};
var w, P = g(y, "distance") || 0, $ = g(y, "align"), A = g(y, "rotate"), D = Math.PI * 0.5, E = Math.PI * 1.5, R = Qi(A === "tangential" ? Math.PI / 2 - l : l), N = R > D && !Fh(R - D) && R < E;
x === "outside" ? (w = o.r + P, $ = N ? "right" : "left") : !$ || $ === "center" ? (s === 2 * Math.PI && o.r0 === 0 ? w = 0 : w = (o.r + o.r0) / 2, $ = "center") : $ === "left" ? (w = o.r0 + P, $ = N ? "right" : "left") : $ === "right" && (w = o.r - P, $ = N ? "left" : "right"), _.style.align = $, _.style.verticalAlign = g(y, "verticalAlign") || "middle", _.x = w * u + o.cx, _.y = w * c + o.cy;
var V = 0;
A === "radial" ? V = Qi(-l) + (N ? Math.PI : 0) : A === "tangential" ? V = Qi(Math.PI / 2 - l) + (N ? Math.PI : 0) : St(A) && (V = A * Math.PI / 180), _.rotation = Qi(V);
});
function g(m, y) {
var b = m.get(y);
return b ?? a.get(y);
}
d.dirtyStyle();
}, e;
}(ii)
), AE = "sunburstRootToNode", EW = "sunburstHighlight", C7e = "sunburstUnhighlight";
function T7e(t) {
t.registerAction({
type: AE,
update: "updateView"
}, function(e, n) {
n.eachComponent({
mainType: "series",
subType: "sunburst",
query: e
}, r);
function r(i, a) {
var o = Vm(e, [AE], i);
if (o) {
var s = i.getViewRoot();
s && (e.direction = Zk(s, o.node) ? "rollUp" : "drillDown"), i.resetViewRoot(o.node);
}
}
}), t.registerAction({
type: EW,
update: "none"
}, function(e, n, r) {
e = le({}, e), n.eachComponent({
mainType: "series",
subType: "sunburst",
query: e
}, i);
function i(a) {
var o = Vm(e, [EW], a);
o && (e.dataIndex = o.node.dataIndex);
}
process.env.NODE_ENV !== "production" && Cn("sunburstHighlight", "highlight"), r.dispatchAction(le(e, {
type: "highlight"
}));
}), t.registerAction({
type: C7e,
update: "updateView"
}, function(e, n, r) {
e = le({}, e), process.env.NODE_ENV !== "production" && Cn("sunburstUnhighlight", "downplay"), r.dispatchAction(le(e, {
type: "downplay"
}));
});
}
var P7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i, a) {
var o = this;
this.seriesModel = n, this.api = i, this.ecModel = r;
var s = n.getData(), l = s.tree.root, u = n.getViewRoot(), c = this.group, f = n.get("renderLabelForZeroData"), d = [];
u.eachNode(function(y) {
d.push(y);
});
var h = this._oldChildren || [];
p(d, h), m(l, u), this._initEvents(), this._oldChildren = d;
function p(y, b) {
if (y.length === 0 && b.length === 0)
return;
new Xs(b, y, _, _).add(O).update(O).remove(Ue(O, null)).execute();
function _(S) {
return S.getId();
}
function O(S, x) {
var C = S == null ? null : y[S], T = x == null ? null : b[x];
v(C, T);
}
}
function v(y, b) {
if (!f && y && !y.getValue() && (y = null), y !== l && b !== l) {
if (b && b.piece)
y ? (b.piece.updateData(!1, y, n, r, i), s.setItemGraphicEl(y.dataIndex, b.piece)) : g(b);
else if (y) {
var _ = new AW(y, n, r, i);
c.add(_), s.setItemGraphicEl(y.dataIndex, _);
}
}
}
function g(y) {
y && y.piece && (c.remove(y.piece), y.piece = null);
}
function m(y, b) {
b.depth > 0 ? (o.virtualPiece ? o.virtualPiece.updateData(!1, y, n, r, i) : (o.virtualPiece = new AW(y, n, r, i), c.add(o.virtualPiece)), b.piece.off("click"), o.virtualPiece.on("click", function(_) {
o._rootToNode(b.parentNode);
})) : o.virtualPiece && (c.remove(o.virtualPiece), o.virtualPiece = null);
}
}, e.prototype._initEvents = function() {
var n = this;
this.group.off("click"), this.group.on("click", function(r) {
var i = !1, a = n.seriesModel.getViewRoot();
a.eachNode(function(o) {
if (!i && o.piece && o.piece === r.target) {
var s = o.getModel().get("nodeClick");
if (s === "rootToNode")
n._rootToNode(o);
else if (s === "link") {
var l = o.getModel(), u = l.get("link");
if (u) {
var c = l.get("target", !0) || "_blank";
pO(u, c);
}
}
i = !0;
}
});
});
}, e.prototype._rootToNode = function(n) {
n !== this.seriesModel.getViewRoot() && this.api.dispatchAction({
type: AE,
from: this.uid,
seriesId: this.seriesModel.id,
targetNode: n
});
}, e.prototype.containPoint = function(n, r) {
var i = r.getData(), a = i.getItemLayout(0);
if (a) {
var o = n[0] - a.cx, s = n[1] - a.cy, l = Math.sqrt(o * o + s * s);
return l <= a.r && l >= a.r0;
}
}, e.type = "sunburst", e;
}(zt)
), $7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.ignoreStyleOnData = !0, n;
}
return e.prototype.getInitialData = function(n, r) {
var i = {
name: n.name,
children: n.data
};
mre(i);
var a = this._levelModels = ce(n.levels || [], function(l) {
return new Wt(l, this, r);
}, this), o = jk.createTree(i, this, s);
function s(l) {
l.wrapMethod("getItemModel", function(u, c) {
var f = o.getNodeByDataIndex(c), d = a[f.depth];
return d && (u.parentModel = d), u;
});
}
return o.data;
}, e.prototype.optionUpdated = function() {
this.resetViewRoot();
}, e.prototype.getDataParams = function(n) {
var r = t.prototype.getDataParams.apply(this, arguments), i = this.getData().tree.getNodeByDataIndex(n);
return r.treePathInfo = _w(i, this), r;
}, e.prototype.getLevelModel = function(n) {
return this._levelModels && this._levelModels[n.depth];
}, e.prototype.getViewRoot = function() {
return this._viewRoot;
}, e.prototype.resetViewRoot = function(n) {
n ? this._viewRoot = n : n = this._viewRoot;
var r = this.getRawData().tree.root;
(!n || n !== r && !r.contains(n)) && (this._viewRoot = r);
}, e.prototype.enableAriaDecal = function() {
Sne(this);
}, e.type = "series.sunburst", e.defaultOption = {
// zlevel: 0,
z: 2,
// 默认全局居中
center: ["50%", "50%"],
radius: [0, "75%"],
// 默认顺时针
clockwise: !0,
startAngle: 90,
// 最小角度改为0
minAngle: 0,
// If still show when all data zero.
stillShowZeroSum: !0,
// 'rootToNode', 'link', or false
nodeClick: "rootToNode",
renderLabelForZeroData: !1,
label: {
// could be: 'radial', 'tangential', or 'none'
rotate: "radial",
show: !0,
opacity: 1,
// 'left' is for inner side of inside, and 'right' is for outer
// side for inside
align: "center",
position: "inside",
distance: 5,
silent: !0
},
itemStyle: {
borderWidth: 1,
borderColor: "white",
borderType: "solid",
shadowBlur: 0,
shadowColor: "rgba(0, 0, 0, 0.2)",
shadowOffsetX: 0,
shadowOffsetY: 0,
opacity: 1
},
emphasis: {
focus: "descendant"
},
blur: {
itemStyle: {
opacity: 0.2
},
label: {
opacity: 0.1
}
},
// Animation type can be expansion, scale.
animationType: "expansion",
animationDuration: 1e3,
animationDurationUpdate: 500,
data: [],
/**
* Sort order.
*
* Valid values: 'desc', 'asc', null, or callback function.
* 'desc' and 'asc' for descend and ascendant order;
* null for not sorting;
* example of callback function:
* function(nodeA, nodeB) {
* return nodeA.getValue() - nodeB.getValue();
* }
*/
sort: "desc"
}, e;
}(Ht)
);
function mre(t) {
var e = 0;
k(t.children, function(r) {
mre(r);
var i = r.value;
ue(i) && (i = i[0]), e += i;
});
var n = t.value;
ue(n) && (n = n[0]), (n == null || isNaN(n)) && (n = e), n < 0 && (n = 0), ue(t.value) ? t.value[0] = n : t.value = n;
}
var MW = Math.PI / 180;
function A7e(t, e, n) {
e.eachSeriesByType(t, function(r) {
var i = r.get("center"), a = r.get("radius");
ue(a) || (a = [0, a]), ue(i) || (i = [i, i]);
var o = n.getWidth(), s = n.getHeight(), l = Math.min(o, s), u = _e(i[0], o), c = _e(i[1], s), f = _e(a[0], l / 2), d = _e(a[1], l / 2), h = -r.get("startAngle") * MW, p = r.get("minAngle") * MW, v = r.getData().tree.root, g = r.getViewRoot(), m = g.depth, y = r.get("sort");
y != null && yre(g, y);
var b = 0;
k(g.children, function(R) {
!isNaN(R.getValue()) && b++;
});
var _ = g.getValue(), O = Math.PI / (_ || b) * 2, S = g.depth > 0, x = g.height - (S ? -1 : 1), C = (d - f) / (x || 1), T = r.get("clockwise"), w = r.get("stillShowZeroSum"), P = T ? 1 : -1, $ = function(R, N) {
if (R) {
var V = N;
if (R !== v) {
var B = R.getValue(), W = _ === 0 && w ? O : B * O;
W < p && (W = p), V = N + P * W;
var F = R.depth - m - (S ? -1 : 1), Q = f + C * F, Z = f + C * (F + 1), ne = r.getLevelModel(R);
if (ne) {
var ee = ne.get("r0", !0), oe = ne.get("r", !0), K = ne.get("radius", !0);
K != null && (ee = K[0], oe = K[1]), ee != null && (Q = _e(ee, l / 2)), oe != null && (Z = _e(oe, l / 2));
}
R.setLayout({
angle: W,
startAngle: N,
endAngle: V,
clockwise: T,
cx: u,
cy: c,
r0: Q,
r: Z
});
}
if (R.children && R.children.length) {
var ie = 0;
k(R.children, function(X) {
ie += $(X, N + ie);
});
}
return V - N;
}
};
if (S) {
var A = f, D = f + C, E = Math.PI * 2;
v.setLayout({
angle: E,
startAngle: h,
endAngle: h + E,
clockwise: T,
cx: u,
cy: c,
r0: A,
r: D
});
}
$(g, h);
});
}
function yre(t, e) {
var n = t.children || [];
t.children = E7e(n, e), n.length && k(t.children, function(r) {
yre(r, e);
});
}
function E7e(t, e) {
if (Me(e)) {
var n = ce(t, function(i, a) {
var o = i.getValue();
return {
params: {
depth: i.depth,
height: i.height,
dataIndex: i.dataIndex,
getValue: function() {
return o;
}
},
index: a
};
});
return n.sort(function(i, a) {
return e(i.params, a.params);
}), ce(n, function(i) {
return t[i.index];
});
} else {
var r = e === "asc";
return t.sort(function(i, a) {
var o = (i.getValue() - a.getValue()) * (r ? 1 : -1);
return o === 0 ? (i.dataIndex - a.dataIndex) * (r ? -1 : 1) : o;
});
}
}
function M7e(t) {
var e = {};
function n(r, i, a) {
for (var o = r; o && o.depth > 1; )
o = o.parentNode;
var s = i.getColorFromPalette(o.name || o.dataIndex + "", e);
return r.depth > 1 && Oe(s) && (s = tO(s, (r.depth - 1) / (a - 1) * 0.5)), s;
}
t.eachSeriesByType("sunburst", function(r) {
var i = r.getData(), a = i.tree;
a.eachNode(function(o) {
var s = o.getModel(), l = s.getModel("itemStyle").getItemStyle();
l.fill || (l.fill = n(o, r, a.root.height));
var u = i.ensureUniqueItemVisual(o.dataIndex, "style");
le(u, l);
});
});
}
function I7e(t) {
t.registerChartView(P7e), t.registerSeriesModel($7e), t.registerLayout(Ue(A7e, "sunburst")), t.registerProcessor(Ue(q0, "sunburst")), t.registerVisual(M7e), T7e(t);
}
var IW = {
color: "fill",
borderColor: "stroke"
}, D7e = {
symbol: 1,
symbolSize: 1,
symbolKeepAspect: 1,
legendIcon: 1,
visualMeta: 1,
liftZ: 1,
decal: 1
}, ks = bt(), R7e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.optionUpdated = function() {
this.currentZLevel = this.get("zlevel", !0), this.currentZ = this.get("z", !0);
}, e.prototype.getInitialData = function(n, r) {
return cs(null, this);
}, e.prototype.getDataParams = function(n, r, i) {
var a = t.prototype.getDataParams.call(this, n, r);
return i && (a.info = ks(i).info), a;
}, e.type = "series.custom", e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"], e.defaultOption = {
coordinateSystem: "cartesian2d",
// zlevel: 0,
z: 2,
legendHoverLink: !0,
// Custom series will not clip by default.
// Some case will use custom series to draw label
// For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight
clip: !1
// Cartesian coordinate system
// xAxisIndex: 0,
// yAxisIndex: 0,
// Polar coordinate system
// polarIndex: 0,
// Geo coordinate system
// geoIndex: 0,
}, e;
}(Ht)
);
function k7e(t, e) {
return e = e || [0, 0], ce(["x", "y"], function(n, r) {
var i = this.getAxis(n), a = e[r], o = t[r] / 2;
return i.type === "category" ? i.getBandWidth() : Math.abs(i.dataToCoord(a - o) - i.dataToCoord(a + o));
}, this);
}
function L7e(t) {
var e = t.master.getRect();
return {
coordSys: {
// The name exposed to user is always 'cartesian2d' but not 'grid'.
type: "cartesian2d",
x: e.x,
y: e.y,
width: e.width,
height: e.height
},
api: {
coord: function(n) {
return t.dataToPoint(n);
},
size: xe(k7e, t)
}
};
}
function N7e(t, e) {
return e = e || [0, 0], ce([0, 1], function(n) {
var r = e[n], i = t[n] / 2, a = [], o = [];
return a[n] = r - i, o[n] = r + i, a[1 - n] = o[1 - n] = e[1 - n], Math.abs(this.dataToPoint(a)[n] - this.dataToPoint(o)[n]);
}, this);
}
function B7e(t) {
var e = t.getBoundingRect();
return {
coordSys: {
type: "geo",
x: e.x,
y: e.y,
width: e.width,
height: e.height,
zoom: t.getZoom()
},
api: {
coord: function(n) {
return t.dataToPoint(n);
},
size: xe(N7e, t)
}
};
}
function z7e(t, e) {
var n = this.getAxis(), r = e instanceof Array ? e[0] : e, i = (t instanceof Array ? t[0] : t) / 2;
return n.type === "category" ? n.getBandWidth() : Math.abs(n.dataToCoord(r - i) - n.dataToCoord(r + i));
}
function V7e(t) {
var e = t.getRect();
return {
coordSys: {
type: "singleAxis",
x: e.x,
y: e.y,
width: e.width,
height: e.height
},
api: {
coord: function(n) {
return t.dataToPoint(n);
},
size: xe(z7e, t)
}
};
}
function F7e(t, e) {
return e = e || [0, 0], ce(["Radius", "Angle"], function(n, r) {
var i = "get" + n + "Axis", a = this[i](), o = e[r], s = t[r] / 2, l = a.type === "category" ? a.getBandWidth() : Math.abs(a.dataToCoord(o - s) - a.dataToCoord(o + s));
return n === "Angle" && (l = l * Math.PI / 180), l;
}, this);
}
function W7e(t) {
var e = t.getRadiusAxis(), n = t.getAngleAxis(), r = e.getExtent();
return r[0] > r[1] && r.reverse(), {
coordSys: {
type: "polar",
cx: t.cx,
cy: t.cy,
r: r[1],
r0: r[0]
},
api: {
coord: function(i) {
var a = e.dataToRadius(i[0]), o = n.dataToAngle(i[1]), s = t.coordToPoint([a, o]);
return s.push(a, o * Math.PI / 180), s;
},
size: xe(F7e, t)
}
};
}
function Q7e(t) {
var e = t.getRect(), n = t.getRangeInfo();
return {
coordSys: {
type: "calendar",
x: e.x,
y: e.y,
width: e.width,
height: e.height,
cellWidth: t.getCellWidth(),
cellHeight: t.getCellHeight(),
rangeInfo: {
start: n.start,
end: n.end,
weeks: n.weeks,
dayCount: n.allDay
}
},
api: {
coord: function(r, i) {
return t.dataToPoint(r, i);
}
}
};
}
var DW = {};
function bre(t, e, n, r) {
return t && (t.legacy || t.legacy !== !1 && !n && !r && e !== "tspan" && (e === "text" || Ce(t, "text")));
}
function _re(t, e, n) {
var r = t, i, a, o;
if (e === "text")
o = r;
else {
o = {}, Ce(r, "text") && (o.text = r.text), Ce(r, "rich") && (o.rich = r.rich), Ce(r, "textFill") && (o.fill = r.textFill), Ce(r, "textStroke") && (o.stroke = r.textStroke), Ce(r, "fontFamily") && (o.fontFamily = r.fontFamily), Ce(r, "fontSize") && (o.fontSize = r.fontSize), Ce(r, "fontStyle") && (o.fontStyle = r.fontStyle), Ce(r, "fontWeight") && (o.fontWeight = r.fontWeight), a = {
type: "text",
style: o,
// ec4 does not support rectText trigger.
// And when text position is different in normal and emphasis
// => hover text trigger emphasis;
// => text position changed, leave mouse pointer immediately;
// That might cause incorrect state.
silent: !0
}, i = {};
var s = Ce(r, "textPosition");
n ? i.position = s ? r.textPosition : "inside" : s && (i.position = r.textPosition), Ce(r, "textPosition") && (i.position = r.textPosition), Ce(r, "textOffset") && (i.offset = r.textOffset), Ce(r, "textRotation") && (i.rotation = r.textRotation), Ce(r, "textDistance") && (i.distance = r.textDistance);
}
return RW(o, t), k(o.rich, function(l) {
RW(l, l);
}), {
textConfig: i,
textContent: a
};
}
function RW(t, e) {
e && (e.font = e.textFont || e.font, Ce(e, "textStrokeWidth") && (t.lineWidth = e.textStrokeWidth), Ce(e, "textAlign") && (t.align = e.textAlign), Ce(e, "textVerticalAlign") && (t.verticalAlign = e.textVerticalAlign), Ce(e, "textLineHeight") && (t.lineHeight = e.textLineHeight), Ce(e, "textWidth") && (t.width = e.textWidth), Ce(e, "textHeight") && (t.height = e.textHeight), Ce(e, "textBackgroundColor") && (t.backgroundColor = e.textBackgroundColor), Ce(e, "textPadding") && (t.padding = e.textPadding), Ce(e, "textBorderColor") && (t.borderColor = e.textBorderColor), Ce(e, "textBorderWidth") && (t.borderWidth = e.textBorderWidth), Ce(e, "textBorderRadius") && (t.borderRadius = e.textBorderRadius), Ce(e, "textBoxShadowColor") && (t.shadowColor = e.textBoxShadowColor), Ce(e, "textBoxShadowBlur") && (t.shadowBlur = e.textBoxShadowBlur), Ce(e, "textBoxShadowOffsetX") && (t.shadowOffsetX = e.textBoxShadowOffsetX), Ce(e, "textBoxShadowOffsetY") && (t.shadowOffsetY = e.textBoxShadowOffsetY));
}
function kW(t, e, n) {
var r = t;
r.textPosition = r.textPosition || n.position || "inside", n.offset != null && (r.textOffset = n.offset), n.rotation != null && (r.textRotation = n.rotation), n.distance != null && (r.textDistance = n.distance);
var i = r.textPosition.indexOf("inside") >= 0, a = t.fill || "#000";
LW(r, e);
var o = r.textFill == null;
return i ? o && (r.textFill = n.insideFill || "#fff", !r.textStroke && n.insideStroke && (r.textStroke = n.insideStroke), !r.textStroke && (r.textStroke = a), r.textStrokeWidth == null && (r.textStrokeWidth = 2)) : (o && (r.textFill = t.fill || n.outsideFill || "#000"), !r.textStroke && n.outsideStroke && (r.textStroke = n.outsideStroke)), r.text = e.text, r.rich = e.rich, k(e.rich, function(s) {
LW(s, s);
}), r;
}
function LW(t, e) {
e && (Ce(e, "fill") && (t.textFill = e.fill), Ce(e, "stroke") && (t.textStroke = e.fill), Ce(e, "lineWidth") && (t.textStrokeWidth = e.lineWidth), Ce(e, "font") && (t.font = e.font), Ce(e, "fontStyle") && (t.fontStyle = e.fontStyle), Ce(e, "fontWeight") && (t.fontWeight = e.fontWeight), Ce(e, "fontSize") && (t.fontSize = e.fontSize), Ce(e, "fontFamily") && (t.fontFamily = e.fontFamily), Ce(e, "align") && (t.textAlign = e.align), Ce(e, "verticalAlign") && (t.textVerticalAlign = e.verticalAlign), Ce(e, "lineHeight") && (t.textLineHeight = e.lineHeight), Ce(e, "width") && (t.textWidth = e.width), Ce(e, "height") && (t.textHeight = e.height), Ce(e, "backgroundColor") && (t.textBackgroundColor = e.backgroundColor), Ce(e, "padding") && (t.textPadding = e.padding), Ce(e, "borderColor") && (t.textBorderColor = e.borderColor), Ce(e, "borderWidth") && (t.textBorderWidth = e.borderWidth), Ce(e, "borderRadius") && (t.textBorderRadius = e.borderRadius), Ce(e, "shadowColor") && (t.textBoxShadowColor = e.shadowColor), Ce(e, "shadowBlur") && (t.textBoxShadowBlur = e.shadowBlur), Ce(e, "shadowOffsetX") && (t.textBoxShadowOffsetX = e.shadowOffsetX), Ce(e, "shadowOffsetY") && (t.textBoxShadowOffsetY = e.shadowOffsetY), Ce(e, "textShadowColor") && (t.textShadowColor = e.textShadowColor), Ce(e, "textShadowBlur") && (t.textShadowBlur = e.textShadowBlur), Ce(e, "textShadowOffsetX") && (t.textShadowOffsetX = e.textShadowOffsetX), Ce(e, "textShadowOffsetY") && (t.textShadowOffsetY = e.textShadowOffsetY));
}
function NW(t, e) {
if (process.env.NODE_ENV !== "production") {
var n = t + "^_^" + e;
DW[n] || (console.warn('[ECharts] DEPRECATED: "' + t + '" has been deprecated. ' + e), DW[n] = !0);
}
}
var Ore = {
position: ["x", "y"],
scale: ["scaleX", "scaleY"],
origin: ["originX", "originY"]
}, BW = st(Ore), BO = Ma(is, function(t, e) {
return t[e] = 1, t;
}, {}), zW = is.join(", "), zO = ["", "style", "shape", "extra"], Yh = bt();
function lL(t, e, n, r, i) {
var a = t + "Animation", o = bp(t, r, i) || {}, s = Yh(e).userDuring;
return o.duration > 0 && (o.during = s ? xe(U7e, {
el: e,
userDuring: s
}) : null, o.setToFinal = !0, o.scope = t), le(o, n[a]), o;
}
function X_(t, e, n, r) {
r = r || {};
var i = r.dataIndex, a = r.isInit, o = r.clearStyle, s = n.isAnimationEnabled(), l = Yh(t), u = e.style;
l.userDuring = e.during;
var c = {}, f = {};
if (Y7e(t, e, f), FW("shape", e, f), FW("extra", e, f), !a && s && (X7e(t, e, c), VW("shape", t, e, c), VW("extra", t, e, c), q7e(t, e, u, c)), f.style = u, H7e(t, f, o), j7e(t, e), s)
if (a) {
var d = {};
k(zO, function(p) {
var v = p ? e[p] : e;
v && v.enterFrom && (p && (d[p] = d[p] || {}), le(p ? d[p] : d, v.enterFrom));
});
var h = lL("enter", t, e, n, i);
h.duration > 0 && t.animateFrom(d, h);
} else
G7e(t, e, i || 0, n, c);
Sre(t, e), u ? t.dirty() : t.markRedraw();
}
function Sre(t, e) {
for (var n = Yh(t).leaveToProps, r = 0; r < zO.length; r++) {
var i = zO[r], a = i ? e[i] : e;
a && a.leaveTo && (n || (n = Yh(t).leaveToProps = {}), i && (n[i] = n[i] || {}), le(i ? n[i] : n, a.leaveTo));
}
}
function xw(t, e, n, r) {
if (t) {
var i = t.parent, a = Yh(t).leaveToProps;
if (a) {
var o = lL("update", t, e, n, 0);
o.done = function() {
i.remove(t);
}, t.animateTo(a, o);
} else
i.remove(t);
}
}
function af(t) {
return t === "all";
}
function H7e(t, e, n) {
var r = e.style;
if (!t.isGroup && r) {
if (n) {
t.useStyle({});
for (var i = t.animators, a = 0; a < i.length; a++) {
var o = i[a];
o.targetName === "style" && o.changeTarget(t.style);
}
}
t.setStyle(r);
}
e && (e.style = null, e && t.attr(e), e.style = r);
}
function G7e(t, e, n, r, i) {
if (i) {
var a = lL("update", t, e, r, n);
a.duration > 0 && t.animateFrom(i, a);
}
}
function j7e(t, e) {
Ce(e, "silent") && (t.silent = e.silent), Ce(e, "ignore") && (t.ignore = e.ignore), t instanceof Da && Ce(e, "invisible") && (t.invisible = e.invisible), t instanceof ot && Ce(e, "autoBatch") && (t.autoBatch = e.autoBatch);
}
var Ao = {}, Z7e = {
// Usually other props do not need to be changed in animation during.
setTransform: function(t, e) {
return process.env.NODE_ENV !== "production" && ke(Ce(BO, t), "Only " + zW + " available in `setTransform`."), Ao.el[t] = e, this;
},
getTransform: function(t) {
return process.env.NODE_ENV !== "production" && ke(Ce(BO, t), "Only " + zW + " available in `getTransform`."), Ao.el[t];
},
setShape: function(t, e) {
process.env.NODE_ENV !== "production" && bd(t);
var n = Ao.el, r = n.shape || (n.shape = {});
return r[t] = e, n.dirtyShape && n.dirtyShape(), this;
},
getShape: function(t) {
process.env.NODE_ENV !== "production" && bd(t);
var e = Ao.el.shape;
if (e)
return e[t];
},
setStyle: function(t, e) {
process.env.NODE_ENV !== "production" && bd(t);
var n = Ao.el, r = n.style;
return r && (process.env.NODE_ENV !== "production" && ou(e) && dn("style." + t + " must not be assigned with NaN."), r[t] = e, n.dirtyStyle && n.dirtyStyle()), this;
},
getStyle: function(t) {
process.env.NODE_ENV !== "production" && bd(t);
var e = Ao.el.style;
if (e)
return e[t];
},
setExtra: function(t, e) {
process.env.NODE_ENV !== "production" && bd(t);
var n = Ao.el.extra || (Ao.el.extra = {});
return n[t] = e, this;
},
getExtra: function(t) {
process.env.NODE_ENV !== "production" && bd(t);
var e = Ao.el.extra;
if (e)
return e[t];
}
};
function bd(t) {
if (process.env.NODE_ENV !== "production" && (t === "transition" || t === "enterFrom" || t === "leaveTo"))
throw new Error('key must not be "' + t + '"');
}
function U7e() {
var t = this, e = t.el;
if (e) {
var n = Yh(e).userDuring, r = t.userDuring;
if (n !== r) {
t.el = t.userDuring = null;
return;
}
Ao.el = e, r(Z7e);
}
}
function VW(t, e, n, r) {
var i = n[t];
if (i) {
var a = e[t], o;
if (a) {
var s = n.transition, l = i.transition;
if (l)
if (!o && (o = r[t] = {}), af(l))
le(o, a);
else
for (var u = Qt(l), c = 0; c < u.length; c++) {
var f = u[c], d = a[f];
o[f] = d;
}
else if (af(s) || et(s, t) >= 0) {
!o && (o = r[t] = {});
for (var h = st(a), c = 0; c < h.length; c++) {
var f = h[c], d = a[f];
K7e(i[f], d) && (o[f] = d);
}
}
}
}
}
function FW(t, e, n) {
var r = e[t];
if (r)
for (var i = n[t] = {}, a = st(r), o = 0; o < a.length; o++) {
var s = a[o];
i[s] = Mg(r[s]);
}
}
function X7e(t, e, n) {
for (var r = e.transition, i = af(r) ? is : Qt(r || []), a = 0; a < i.length; a++) {
var o = i[a];
if (!(o === "style" || o === "shape" || o === "extra")) {
var s = t[o];
process.env.NODE_ENV !== "production" && xre(o, "el.transition"), n[o] = s;
}
}
}
function Y7e(t, e, n) {
for (var r = 0; r < BW.length; r++) {
var i = BW[r], a = Ore[i], o = e[i];
o && (n[a[0]] = o[0], n[a[1]] = o[1]);
}
for (var r = 0; r < is.length; r++) {
var s = is[r];
e[s] != null && (n[s] = e[s]);
}
}
function q7e(t, e, n, r) {
if (n) {
var i = t.style, a;
if (i) {
var o = n.transition, s = e.transition;
if (o && !af(o)) {
var l = Qt(o);
!a && (a = r.style = {});
for (var u = 0; u < l.length; u++) {
var c = l[u], f = i[c];
a[c] = f;
}
} else if (t.getAnimationStyleProps && (af(s) || af(o) || et(s, "style") >= 0)) {
var d = t.getAnimationStyleProps(), h = d ? d.style : null;
if (h) {
!a && (a = r.style = {});
for (var p = st(n), u = 0; u < p.length; u++) {
var c = p[u];
if (h[c]) {
var f = i[c];
a[c] = f;
}
}
}
}
}
}
}
function K7e(t, e) {
return wr(t) ? t !== e : t != null && isFinite(t);
}
var xre;
process.env.NODE_ENV !== "production" && (xre = function(t, e) {
Ce(BO, t) || dn("Prop `" + t + "` is not a permitted in `" + e + "`. Only `" + st(BO).join("`, `") + "` are permitted.");
});
var wre = bt(), J7e = ["percent", "easing", "shape", "style", "extra"];
function Cre(t) {
t.stopAnimation("keyframe"), t.attr(wre(t));
}
function VO(t, e, n) {
if (!(!n.isAnimationEnabled() || !e)) {
if (ue(e)) {
k(e, function(s) {
VO(t, s, n);
});
return;
}
var r = e.keyframes, i = e.duration;
if (n && i == null) {
var a = bp("enter", n, 0);
i = a && a.duration;
}
if (!(!r || !i)) {
var o = wre(t);
k(zO, function(s) {
if (!(s && !t[s])) {
var l, u = !1;
r.sort(function(c, f) {
return c.percent - f.percent;
}), k(r, function(c) {
var f = t.animators, d = s ? c[s] : c;
if (process.env.NODE_ENV !== "production" && c.percent >= 1 && (u = !0), !!d) {
var h = st(d);
if (s || (h = Nt(h, function(g) {
return et(J7e, g) < 0;
})), !!h.length) {
l || (l = t.animate(s, e.loop, !0), l.scope = "keyframe");
for (var p = 0; p < f.length; p++)
f[p] !== l && f[p].targetName === l.targetName && f[p].stopTracks(h);
s && (o[s] = o[s] || {});
var v = s ? o[s] : o;
k(h, function(g) {
v[g] = ((s ? t[s] : t) || {})[g];
}), l.whenWithKeys(i * c.percent, d, h, c.easing);
}
}
}), l && (process.env.NODE_ENV !== "production" && (u || dn("End frame with percent: 1 is missing in the keyframeAnimation.", !0)), l.delay(e.delay || 0).duration(i).start(e.easing));
}
});
}
}
}
var Ls = "emphasis", Vl = "normal", uL = "blur", cL = "select", du = [Vl, Ls, uL, cL], WP = {
normal: ["itemStyle"],
emphasis: [Ls, "itemStyle"],
blur: [uL, "itemStyle"],
select: [cL, "itemStyle"]
}, QP = {
normal: ["label"],
emphasis: [Ls, "label"],
blur: [uL, "label"],
select: [cL, "label"]
}, eQe = ["x", "y"], tQe = "e\0\0", oa = {
normal: {},
emphasis: {},
blur: {},
select: {}
}, WW = {
cartesian2d: L7e,
geo: B7e,
single: V7e,
polar: W7e,
calendar: Q7e
};
function FO(t) {
return t instanceof ot;
}
function EE(t) {
return t instanceof Da;
}
function nQe(t, e) {
e.copyTransform(t), EE(e) && EE(t) && (e.setStyle(t.style), e.z = t.z, e.z2 = t.z2, e.zlevel = t.zlevel, e.invisible = t.invisible, e.ignore = t.ignore, FO(e) && FO(t) && e.setShape(t.shape));
}
var rQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i, a) {
this._progressiveEls = null;
var o = this._data, s = n.getData(), l = this.group, u = QW(n, s, r, i);
o || l.removeAll(), s.diff(o).add(function(f) {
HP(i, null, f, u(f, a), n, l, s);
}).remove(function(f) {
var d = o.getItemGraphicEl(f);
d && xw(d, ks(d).option, n);
}).update(function(f, d) {
var h = o.getItemGraphicEl(d);
HP(i, h, f, u(f, a), n, l, s);
}).execute();
var c = n.get("clip", !0) ? X0(n.coordinateSystem, !1, n) : null;
c ? l.setClipPath(c) : l.removeClipPath(), this._data = s;
}, e.prototype.incrementalPrepareRender = function(n, r, i) {
this.group.removeAll(), this._data = null;
}, e.prototype.incrementalRender = function(n, r, i, a, o) {
var s = r.getData(), l = QW(r, s, i, a), u = this._progressiveEls = [];
function c(h) {
h.isGroup || (h.incremental = !0, h.ensureState("emphasis").hoverLayer = !0);
}
for (var f = n.start; f < n.end; f++) {
var d = HP(null, null, f, l(f, o), r, this.group, s);
d && (d.traverse(c), u.push(d));
}
}, e.prototype.eachRendered = function(n) {
Tu(this._progressiveEls || this.group, n);
}, e.prototype.filterForExposedEvent = function(n, r, i, a) {
var o = r.element;
if (o == null || i.name === o)
return !0;
for (; (i = i.__hostTarget || i.parent) && i !== this.group; )
if (i.name === o)
return !0;
return !1;
}, e.type = "custom", e;
}(zt)
);
function fL(t) {
var e = t.type, n;
if (e === "path") {
var r = t.shape, i = r.width != null && r.height != null ? {
x: r.x || 0,
y: r.y || 0,
width: r.width,
height: r.height
} : null, a = $re(r);
n = W0(a, null, i, r.layout || "center"), ks(n).customPathData = a;
} else if (e === "image")
n = new lr({}), ks(n).customImagePath = t.style.image;
else if (e === "text")
n = new gt({});
else if (e === "group")
n = new Ve();
else {
if (e === "compoundPath")
throw new Error('"compoundPath" is not supported yet.');
var o = Jx(e);
if (!o) {
var s = "";
process.env.NODE_ENV !== "production" && (s = 'graphic type "' + e + '" can not be found.'), Et(s);
}
n = new o();
}
return ks(n).customGraphicType = e, n.name = t.name, n.z2EmphasisLift = 1, n.z2SelectLift = 1, n;
}
function dL(t, e, n, r, i, a, o) {
Cre(e);
var s = i && i.normal.cfg;
s && e.setTextConfig(s), r && r.transition == null && (r.transition = eQe);
var l = r && r.style;
if (l) {
if (e.type === "text") {
var u = l;
Ce(u, "textFill") && (u.fill = u.textFill), Ce(u, "textStroke") && (u.stroke = u.textStroke);
}
var c = void 0, f = FO(e) ? l.decal : null;
t && f && (f.dirty = !0, c = jh(f, t)), l.__decalPattern = c;
}
if (EE(e) && l) {
var c = l.__decalPattern;
c && (l.decal = c);
}
X_(e, r, a, {
dataIndex: n,
isInit: o,
clearStyle: !0
}), VO(e, r.keyframeAnimation, a);
}
function Tre(t, e, n, r, i) {
var a = e.isGroup ? null : e, o = i && i[t].cfg;
if (a) {
var s = a.ensureState(t);
if (r === !1) {
var l = a.getState(t);
l && (l.style = null);
} else
s.style = r || null;
o && (s.textConfig = o), _f(a);
}
}
function iQe(t, e, n) {
if (!t.isGroup) {
var r = t, i = n.currentZ, a = n.currentZLevel;
r.z = i, r.zlevel = a;
var o = e.z2;
o != null && (r.z2 = o || 0);
for (var s = 0; s < du.length; s++)
aQe(r, e, du[s]);
}
}
function aQe(t, e, n) {
var r = n === Vl, i = r ? e : WO(e, n), a = i ? i.z2 : null, o;
a != null && (o = r ? t : t.ensureState(n), o.z2 = a || 0);
}
function QW(t, e, n, r) {
var i = t.get("renderItem"), a = t.coordinateSystem, o = {};
a && (process.env.NODE_ENV !== "production" && (ke(i, "series.render is required."), ke(a.prepareCustoms || WW[a.type], "This coordSys does not support custom series.")), o = a.prepareCustoms ? a.prepareCustoms(a) : WW[a.type](a));
for (var s = Re({
getWidth: r.getWidth,
getHeight: r.getHeight,
getZr: r.getZr,
getDevicePixelRatio: r.getDevicePixelRatio,
value: _,
style: S,
ordinalRawValue: O,
styleEmphasis: x,
visual: w,
barLayout: P,
currentSeriesIndices: $,
font: A
}, o.api || {}), l = {
// The life cycle of context: current round of rendering.
// The global life cycle is probably not necessary, because
// user can store global status by themselves.
context: {},
seriesId: t.id,
seriesName: t.name,
seriesIndex: t.seriesIndex,
coordSys: o.coordSys,
dataInsideLength: e.count(),
encode: oQe(t.getData())
}, u, c, f = {}, d = {}, h = {}, p = {}, v = 0; v < du.length; v++) {
var g = du[v];
h[g] = t.getModel(WP[g]), p[g] = t.getModel(QP[g]);
}
function m(D) {
return D === u ? c || (c = e.getItemModel(D)) : e.getItemModel(D);
}
function y(D, E) {
return e.hasItemOption ? D === u ? f[E] || (f[E] = m(D).getModel(WP[E])) : m(D).getModel(WP[E]) : h[E];
}
function b(D, E) {
return e.hasItemOption ? D === u ? d[E] || (d[E] = m(D).getModel(QP[E])) : m(D).getModel(QP[E]) : p[E];
}
return function(D, E) {
return u = D, c = null, f = {}, d = {}, i && i(Re({
dataIndexInside: D,
dataIndex: e.getRawIndex(D),
// Can be used for optimization when zoom or roam.
actionType: E ? E.type : null
}, l), s);
};
function _(D, E) {
return E == null && (E = u), e.getStore().get(e.getDimensionIndex(D || 0), E);
}
function O(D, E) {
E == null && (E = u), D = D || 0;
var R = e.getDimensionInfo(D);
if (!R) {
var N = e.getDimensionIndex(D);
return N >= 0 ? e.getStore().get(N, E) : void 0;
}
var V = e.get(R.name, E), B = R && R.ordinalMeta;
return B ? B.categories[V] : V;
}
function S(D, E) {
process.env.NODE_ENV !== "production" && NW("api.style", "Please write literal style directly instead."), E == null && (E = u);
var R = e.getItemVisual(E, "style"), N = R && R.fill, V = R && R.opacity, B = y(E, Vl).getItemStyle();
N != null && (B.fill = N), V != null && (B.opacity = V);
var W = {
inheritColor: Oe(N) ? N : "#000"
}, F = b(E, Vl), Q = Zt(F, null, W, !1, !0);
Q.text = F.getShallow("show") ? We(t.getFormattedLabel(E, Vl), Zh(e, E)) : null;
var Z = dO(F, W, !1);
return T(D, B), B = kW(B, Q, Z), D && C(B, D), B.legacy = !0, B;
}
function x(D, E) {
process.env.NODE_ENV !== "production" && NW("api.styleEmphasis", "Please write literal style directly instead."), E == null && (E = u);
var R = y(E, Ls).getItemStyle(), N = b(E, Ls), V = Zt(N, null, null, !0, !0);
V.text = N.getShallow("show") ? Ui(t.getFormattedLabel(E, Ls), t.getFormattedLabel(E, Vl), Zh(e, E)) : null;
var B = dO(N, null, !0);
return T(D, R), R = kW(R, V, B), D && C(R, D), R.legacy = !0, R;
}
function C(D, E) {
for (var R in E)
Ce(E, R) && (D[R] = E[R]);
}
function T(D, E) {
D && (D.textFill && (E.textFill = D.textFill), D.textPosition && (E.textPosition = D.textPosition));
}
function w(D, E) {
if (E == null && (E = u), Ce(IW, D)) {
var R = e.getItemVisual(E, "style");
return R ? R[IW[D]] : null;
}
if (Ce(D7e, D))
return e.getItemVisual(E, D);
}
function P(D) {
if (a.type === "cartesian2d") {
var E = a.getBaseAxis();
return kNe(Re({
axis: E
}, D));
}
}
function $() {
return n.getCurrentSeriesIndices();
}
function A(D) {
return jR(D, n);
}
}
function oQe(t) {
var e = {};
return k(t.dimensions, function(n) {
var r = t.getDimensionInfo(n);
if (!r.isExtraCoord) {
var i = r.coordDim, a = e[i] = e[i] || [];
a[r.coordDimIndex] = t.getDimensionIndex(n);
}
}), e;
}
function HP(t, e, n, r, i, a, o) {
if (!r) {
a.remove(e);
return;
}
var s = hL(t, e, n, r, i, a);
return s && o.setItemGraphicEl(n, s), s && bn(s, r.focus, r.blurScope, r.emphasisDisabled), s;
}
function hL(t, e, n, r, i, a) {
process.env.NODE_ENV !== "production" && ke(r, "should not have an null/undefined element setting");
var o = -1, s = e;
e && Pre(e, r, i) && (o = et(a.childrenRef(), e), e = null);
var l = !e, u = e;
u ? u.clearStates() : (u = fL(r), s && nQe(s, u)), r.morph === !1 ? u.disableMorphing = !0 : u.disableMorphing && (u.disableMorphing = !1), oa.normal.cfg = oa.normal.conOpt = oa.emphasis.cfg = oa.emphasis.conOpt = oa.blur.cfg = oa.blur.conOpt = oa.select.cfg = oa.select.conOpt = null, oa.isLegacy = !1, lQe(u, n, r, i, l, oa), sQe(u, n, r, i, l), dL(t, u, n, r, oa, i, l), Ce(r, "info") && (ks(u).info = r.info);
for (var c = 0; c < du.length; c++) {
var f = du[c];
if (f !== Vl) {
var d = WO(r, f), h = pL(r, d, f);
Tre(f, u, d, h, oa);
}
}
return iQe(u, r, i), r.type === "group" && uQe(t, u, n, r, i), o >= 0 ? a.replaceAt(u, o) : a.add(u), u;
}
function Pre(t, e, n) {
var r = ks(t), i = e.type, a = e.shape, o = e.style;
return (
// Always create new if universal transition is enabled.
// Because we do transition after render. It needs to know what old element is. Replacement will loose it.
n.isUniversalTransitionEnabled() || i != null && i !== r.customGraphicType || i === "path" && hQe(a) && $re(a) !== r.customPathData || i === "image" && Ce(o, "image") && o.image !== r.customImagePath
);
}
function sQe(t, e, n, r, i) {
var a = n.clipPath;
if (a === !1)
t && t.getClipPath() && t.removeClipPath();
else if (a) {
var o = t.getClipPath();
o && Pre(o, a, r) && (o = null), o || (o = fL(a), process.env.NODE_ENV !== "production" && ke(FO(o), "Only any type of `path` can be used in `clipPath`, rather than " + o.type + "."), t.setClipPath(o)), dL(null, o, e, a, null, r, i);
}
}
function lQe(t, e, n, r, i, a) {
if (!t.isGroup) {
HW(n, null, a), HW(n, Ls, a);
var o = a.normal.conOpt, s = a.emphasis.conOpt, l = a.blur.conOpt, u = a.select.conOpt;
if (o != null || s != null || u != null || l != null) {
var c = t.getTextContent();
if (o === !1)
c && t.removeTextContent();
else {
o = a.normal.conOpt = o || {
type: "text"
}, c ? c.clearStates() : (c = fL(o), t.setTextContent(c)), dL(null, c, e, o, null, r, i);
for (var f = o && o.style, d = 0; d < du.length; d++) {
var h = du[d];
if (h !== Vl) {
var p = a[h].conOpt;
Tre(h, c, p, pL(o, p, h), null);
}
}
f ? c.dirty() : c.markRedraw();
}
}
}
}
function HW(t, e, n) {
var r = e ? WO(t, e) : t, i = e ? pL(t, r, Ls) : t.style, a = t.type, o = r ? r.textConfig : null, s = t.textContent, l = s ? e ? WO(s, e) : s : null;
if (i && // Because emphasis style has little info to detect legacy,
// if normal is legacy, emphasis is trade as legacy.
(n.isLegacy || bre(i, a, !!o, !!l))) {
n.isLegacy = !0;
var u = _re(i, a, !e);
!o && u.textConfig && (o = u.textConfig), !l && u.textContent && (l = u.textContent);
}
if (!e && l) {
var c = l;
!c.type && (c.type = "text"), process.env.NODE_ENV !== "production" && ke(c.type === "text", 'textContent.type must be "text"');
}
var f = e ? n[e] : n.normal;
f.cfg = o, f.conOpt = l;
}
function WO(t, e) {
return e ? t ? t[e] : null : t;
}
function pL(t, e, n) {
var r = e && e.style;
return r == null && n === Ls && t && (r = t.styleEmphasis), r;
}
function uQe(t, e, n, r, i) {
var a = r.children, o = a ? a.length : 0, s = r.$mergeChildren, l = s === "byName" || r.diffChildrenByName, u = s === !1;
if (!(!o && !l && !u)) {
if (l) {
fQe({
api: t,
oldChildren: e.children() || [],
newChildren: a || [],
dataIndex: n,
seriesModel: i,
group: e
});
return;
}
u && e.removeAll();
for (var c = 0; c < o; c++) {
var f = a[c], d = e.childAt(c);
f ? (f.ignore == null && (f.ignore = !1), hL(t, d, n, f, i, e)) : (process.env.NODE_ENV !== "production" && ke(d, "renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."), d.ignore = !0);
}
for (var h = e.childCount() - 1; h >= c; h--) {
var p = e.childAt(h);
cQe(e, p, i);
}
}
}
function cQe(t, e, n) {
e && xw(e, ks(t).option, n);
}
function fQe(t) {
new Xs(t.oldChildren, t.newChildren, GW, GW, t).add(jW).update(jW).remove(dQe).execute();
}
function GW(t, e) {
var n = t && t.name;
return n ?? tQe + e;
}
function jW(t, e) {
var n = this.context, r = t != null ? n.newChildren[t] : null, i = e != null ? n.oldChildren[e] : null;
hL(n.api, i, n.dataIndex, r, n.seriesModel, n.group);
}
function dQe(t) {
var e = this.context, n = e.oldChildren[t];
n && xw(n, ks(n).option, e.seriesModel);
}
function $re(t) {
return t && (t.pathData || t.d);
}
function hQe(t) {
return t && (Ce(t, "pathData") || Ce(t, "d"));
}
function pQe(t) {
t.registerChartView(rQe), t.registerSeriesModel(R7e);
}
var wc = bt(), ZW = Le, GP = xe, vL = (
/** @class */
function() {
function t() {
this._dragging = !1, this.animationThreshold = 15;
}
return t.prototype.render = function(e, n, r, i) {
var a = n.get("value"), o = n.get("status");
if (this._axisModel = e, this._axisPointerModel = n, this._api = r, !(!i && this._lastValue === a && this._lastStatus === o)) {
this._lastValue = a, this._lastStatus = o;
var s = this._group, l = this._handle;
if (!o || o === "hide") {
s && s.hide(), l && l.hide();
return;
}
s && s.show(), l && l.show();
var u = {};
this.makeElOption(u, a, e, n, r);
var c = u.graphicKey;
c !== this._lastGraphicKey && this.clear(r), this._lastGraphicKey = c;
var f = this._moveAnimation = this.determineAnimation(e, n);
if (!s)
s = this._group = new Ve(), this.createPointerEl(s, u, e, n), this.createLabelEl(s, u, e, n), r.getZr().add(s);
else {
var d = Ue(UW, n, f);
this.updatePointerEl(s, u, d), this.updateLabelEl(s, u, d, n);
}
YW(s, n, !0), this._renderHandle(a);
}
}, t.prototype.remove = function(e) {
this.clear(e);
}, t.prototype.dispose = function(e) {
this.clear(e);
}, t.prototype.determineAnimation = function(e, n) {
var r = n.get("animation"), i = e.axis, a = i.type === "category", o = n.get("snap");
if (!o && !a)
return !1;
if (r === "auto" || r == null) {
var s = this.animationThreshold;
if (a && i.getBandWidth() > s)
return !0;
if (o) {
var l = zk(e).seriesDataCount, u = i.getExtent();
return Math.abs(u[0] - u[1]) / l > s;
}
return !1;
}
return r === !0;
}, t.prototype.makeElOption = function(e, n, r, i, a) {
}, t.prototype.createPointerEl = function(e, n, r, i) {
var a = n.pointer;
if (a) {
var o = wc(e).pointerEl = new Nf[a.type](ZW(n.pointer));
e.add(o);
}
}, t.prototype.createLabelEl = function(e, n, r, i) {
if (n.label) {
var a = wc(e).labelEl = new gt(ZW(n.label));
e.add(a), XW(a, i);
}
}, t.prototype.updatePointerEl = function(e, n, r) {
var i = wc(e).pointerEl;
i && n.pointer && (i.setStyle(n.pointer.style), r(i, {
shape: n.pointer.shape
}));
}, t.prototype.updateLabelEl = function(e, n, r, i) {
var a = wc(e).labelEl;
a && (a.setStyle(n.label.style), r(a, {
// Consider text length change in vertical axis, animation should
// be used on shape, otherwise the effect will be weird.
// TODOTODO
// shape: elOption.label.shape,
x: n.label.x,
y: n.label.y
}), XW(a, i));
}, t.prototype._renderHandle = function(e) {
if (!(this._dragging || !this.updateHandleTransform)) {
var n = this._axisPointerModel, r = this._api.getZr(), i = this._handle, a = n.getModel("handle"), o = n.get("status");
if (!a.get("show") || !o || o === "hide") {
i && r.remove(i), this._handle = null;
return;
}
var s;
this._handle || (s = !0, i = this._handle = _p(a.get("icon"), {
cursor: "move",
draggable: !0,
onmousemove: function(u) {
js(u.event);
},
onmousedown: GP(this._onHandleDragMove, this, 0, 0),
drift: GP(this._onHandleDragMove, this),
ondragend: GP(this._onHandleDragEnd, this)
}), r.add(i)), YW(i, n, !1), i.setStyle(a.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]));
var l = a.get("size");
ue(l) || (l = [l, l]), i.scaleX = l[0] / 2, i.scaleY = l[1] / 2, Pp(this, "_doDispatchAxisPointer", a.get("throttle") || 0, "fixRate"), this._moveHandleToValue(e, s);
}
}, t.prototype._moveHandleToValue = function(e, n) {
UW(this._axisPointerModel, !n && this._moveAnimation, this._handle, jP(this.getHandleTransform(e, this._axisModel, this._axisPointerModel)));
}, t.prototype._onHandleDragMove = function(e, n) {
var r = this._handle;
if (r) {
this._dragging = !0;
var i = this.updateHandleTransform(jP(r), [e, n], this._axisModel, this._axisPointerModel);
this._payloadInfo = i, r.stopAnimation(), r.attr(jP(i)), wc(r).lastProp = null, this._doDispatchAxisPointer();
}
}, t.prototype._doDispatchAxisPointer = function() {
var e = this._handle;
if (e) {
var n = this._payloadInfo, r = this._axisModel;
this._api.dispatchAction({
type: "updateAxisPointer",
x: n.cursorPoint[0],
y: n.cursorPoint[1],
tooltipOption: n.tooltipOption,
axesInfo: [{
axisDim: r.axis.dim,
axisIndex: r.componentIndex
}]
});
}
}, t.prototype._onHandleDragEnd = function() {
this._dragging = !1;
var e = this._handle;
if (e) {
var n = this._axisPointerModel.get("value");
this._moveHandleToValue(n), this._api.dispatchAction({
type: "hideTip"
});
}
}, t.prototype.clear = function(e) {
this._lastValue = null, this._lastStatus = null;
var n = e.getZr(), r = this._group, i = this._handle;
n && r && (this._lastGraphicKey = null, r && n.remove(r), i && n.remove(i), this._group = null, this._handle = null, this._payloadInfo = null), Im(this, "_doDispatchAxisPointer");
}, t.prototype.doClear = function() {
}, t.prototype.buildLabel = function(e, n, r) {
return r = r || 0, {
x: e[r],
y: e[1 - r],
width: n[r],
height: n[1 - r]
};
}, t;
}()
);
function UW(t, e, n, r) {
Are(wc(n).lastProp, r) || (wc(n).lastProp = r, e ? Ct(n, r, t) : (n.stopAnimation(), n.attr(r)));
}
function Are(t, e) {
if (Ie(t) && Ie(e)) {
var n = !0;
return k(e, function(r, i) {
n = n && Are(t[i], r);
}), !!n;
} else
return t === e;
}
function XW(t, e) {
t[e.get(["label", "show"]) ? "show" : "hide"]();
}
function jP(t) {
return {
x: t.x || 0,
y: t.y || 0,
rotation: t.rotation || 0
};
}
function YW(t, e, n) {
var r = e.get("z"), i = e.get("zlevel");
t && t.traverse(function(a) {
a.type !== "group" && (r != null && (a.z = r), i != null && (a.zlevel = i), a.silent = n);
});
}
function gL(t) {
var e = t.get("type"), n = t.getModel(e + "Style"), r;
return e === "line" ? (r = n.getLineStyle(), r.fill = null) : e === "shadow" && (r = n.getAreaStyle(), r.stroke = null), r;
}
function Ere(t, e, n, r, i) {
var a = n.get("value"), o = Mre(a, e.axis, e.ecModel, n.get("seriesDataIndices"), {
precision: n.get(["label", "precision"]),
formatter: n.get(["label", "formatter"])
}), s = n.getModel("label"), l = zf(s.get("padding") || 0), u = s.getFont(), c = L0(o, u), f = i.position, d = c.width + l[1] + l[3], h = c.height + l[0] + l[2], p = i.align;
p === "right" && (f[0] -= d), p === "center" && (f[0] -= d / 2);
var v = i.verticalAlign;
v === "bottom" && (f[1] -= h), v === "middle" && (f[1] -= h / 2), vQe(f, d, h, r);
var g = s.get("backgroundColor");
(!g || g === "auto") && (g = e.get(["axisLine", "lineStyle", "color"])), t.label = {
// shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},
x: f[0],
y: f[1],
style: Zt(s, {
text: o,
font: u,
fill: s.getTextColor(),
padding: l,
backgroundColor: g
}),
// Label should be over axisPointer.
z2: 10
};
}
function vQe(t, e, n, r) {
var i = r.getWidth(), a = r.getHeight();
t[0] = Math.min(t[0] + e, i) - e, t[1] = Math.min(t[1] + n, a) - n, t[0] = Math.max(t[0], 0), t[1] = Math.max(t[1], 0);
}
function Mre(t, e, n, r, i) {
t = e.scale.parse(t);
var a = e.scale.getLabel({
value: t
}, {
// If `precision` is set, width can be fixed (like '12.00500'), which
// helps to debounce when when moving label.
precision: i.precision
}), o = i.formatter;
if (o) {
var s = {
value: $k(e, {
value: t
}),
axisDimension: e.dim,
axisIndex: e.index,
seriesData: []
};
k(r, function(l) {
var u = n.getSeriesByIndex(l.seriesIndex), c = l.dataIndexInside, f = u && u.getDataParams(c);
f && s.seriesData.push(f);
}), Oe(o) ? a = o.replace("{value}", a) : Me(o) && (a = o(s));
}
return a;
}
function mL(t, e, n) {
var r = wi();
return Cu(r, r, n.rotation), so(r, r, n.position), ro([t.dataToCoord(e), (n.labelOffset || 0) + (n.labelDirection || 1) * (n.labelMargin || 0)], r);
}
function Ire(t, e, n, r, i, a) {
var o = Jr.innerTextLayout(n.rotation, 0, n.labelDirection);
n.labelMargin = i.get(["label", "margin"]), Ere(e, r, i, a, {
position: mL(r.axis, t, n),
align: o.textAlign,
verticalAlign: o.textVerticalAlign
});
}
function yL(t, e, n) {
return n = n || 0, {
x1: t[n],
y1: t[1 - n],
x2: e[n],
y2: e[1 - n]
};
}
function Dre(t, e, n) {
return n = n || 0, {
x: t[n],
y: t[1 - n],
width: e[n],
height: e[1 - n]
};
}
function qW(t, e, n, r, i, a) {
return {
cx: t,
cy: e,
r0: n,
r,
startAngle: i,
endAngle: a,
clockwise: !0
};
}
var gQe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.makeElOption = function(n, r, i, a, o) {
var s = i.axis, l = s.grid, u = a.get("type"), c = KW(l, s).getOtherAxis(s).getGlobalExtent(), f = s.toGlobalCoord(s.dataToCoord(r, !0));
if (u && u !== "none") {
var d = gL(a), h = mQe[u](s, f, c);
h.style = d, n.graphicKey = h.type, n.pointer = h;
}
var p = dE(l.model, i);
Ire(
// @ts-ignore
r,
n,
p,
i,
a,
o
);
}, e.prototype.getHandleTransform = function(n, r, i) {
var a = dE(r.axis.grid.model, r, {
labelInside: !1
});
a.labelMargin = i.get(["handle", "margin"]);
var o = mL(r.axis, n, a);
return {
x: o[0],
y: o[1],
rotation: a.rotation + (a.labelDirection < 0 ? Math.PI : 0)
};
}, e.prototype.updateHandleTransform = function(n, r, i, a) {
var o = i.axis, s = o.grid, l = o.getGlobalExtent(!0), u = KW(s, o).getOtherAxis(o).getGlobalExtent(), c = o.dim === "x" ? 0 : 1, f = [n.x, n.y];
f[c] += r[c], f[c] = Math.min(l[1], f[c]), f[c] = Math.max(l[0], f[c]);
var d = (u[1] + u[0]) / 2, h = [d, d];
h[c] = f[c];
var p = [{
verticalAlign: "middle"
}, {
align: "center"
}];
return {
x: f[0],
y: f[1],
rotation: n.rotation,
cursorPoint: h,
tooltipOption: p[c]
};
}, e;
}(vL)
);
function KW(t, e) {
var n = {};
return n[e.dim + "AxisIndex"] = e.index, t.getCartesian(n);
}
var mQe = {
line: function(t, e, n) {
var r = yL([e, n[0]], [e, n[1]], JW(t));
return {
type: "Line",
subPixelOptimize: !0,
shape: r
};
},
shadow: function(t, e, n) {
var r = Math.max(1, t.getBandWidth()), i = n[1] - n[0];
return {
type: "Rect",
shape: Dre([e - r / 2, n[0]], [r, i], JW(t))
};
}
};
function JW(t) {
return t.dim === "x" ? 0 : 1;
}
var yQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "axisPointer", e.defaultOption = {
// 'auto' means that show when triggered by tooltip or handle.
show: "auto",
// zlevel: 0,
z: 50,
type: "line",
// axispointer triggered by tootip determine snap automatically,
// see `modelHelper`.
snap: !1,
triggerTooltip: !0,
triggerEmphasis: !0,
value: null,
status: null,
link: [],
// Do not set 'auto' here, otherwise global animation: false
// will not effect at this axispointer.
animation: null,
animationDurationUpdate: 200,
lineStyle: {
color: "#B9BEC9",
width: 1,
type: "dashed"
},
shadowStyle: {
color: "rgba(210,219,238,0.2)"
},
label: {
show: !0,
formatter: null,
precision: "auto",
margin: 3,
color: "#fff",
padding: [5, 7, 5, 7],
backgroundColor: "auto",
borderColor: null,
borderWidth: 0,
borderRadius: 3
},
handle: {
show: !1,
// eslint-disable-next-line
icon: "M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",
size: 45,
// handle margin is from symbol center to axis, which is stable when circular move.
margin: 50,
// color: '#1b8bbd'
// color: '#2f4554'
color: "#333",
shadowBlur: 3,
shadowColor: "#aaa",
shadowOffsetX: 0,
shadowOffsetY: 2,
// For mobile performance
throttle: 40
}
}, e;
}(rt)
), Ms = bt(), bQe = k;
function Rre(t, e, n) {
if (!vt.node) {
var r = e.getZr();
Ms(r).records || (Ms(r).records = {}), _Qe(r, e);
var i = Ms(r).records[t] || (Ms(r).records[t] = {});
i.handler = n;
}
}
function _Qe(t, e) {
if (Ms(t).initialized)
return;
Ms(t).initialized = !0, n("click", Ue(e7, "click")), n("mousemove", Ue(e7, "mousemove")), n("globalout", SQe);
function n(r, i) {
t.on(r, function(a) {
var o = xQe(e);
bQe(Ms(t).records, function(s) {
s && i(s, a, o.dispatchAction);
}), OQe(o.pendings, e);
});
}
}
function OQe(t, e) {
var n = t.showTip.length, r = t.hideTip.length, i;
n ? i = t.showTip[n - 1] : r && (i = t.hideTip[r - 1]), i && (i.dispatchAction = null, e.dispatchAction(i));
}
function SQe(t, e, n) {
t.handler("leave", null, n);
}
function e7(t, e, n, r) {
e.handler(t, n, r);
}
function xQe(t) {
var e = {
showTip: [],
hideTip: []
}, n = function(r) {
var i = e[r.type];
i ? i.push(r) : (r.dispatchAction = n, t.dispatchAction(r));
};
return {
dispatchAction: n,
pendings: e
};
}
function ME(t, e) {
if (!vt.node) {
var n = e.getZr(), r = (Ms(n).records || {})[t];
r && (Ms(n).records[t] = null);
}
}
var wQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = r.getComponent("tooltip"), o = n.get("triggerOn") || a && a.get("triggerOn") || "mousemove|click";
Rre("axisPointer", i, function(s, l, u) {
o !== "none" && (s === "leave" || o.indexOf(s) >= 0) && u({
type: "updateAxisPointer",
currTrigger: s,
x: l && l.offsetX,
y: l && l.offsetY
});
});
}, e.prototype.remove = function(n, r) {
ME("axisPointer", r);
}, e.prototype.dispose = function(n, r) {
ME("axisPointer", r);
}, e.type = "axisPointer", e;
}(Xt)
);
function kre(t, e) {
var n = [], r = t.seriesIndex, i;
if (r == null || !(i = e.getSeriesByIndex(r)))
return {
point: []
};
var a = i.getData(), o = yf(a, t);
if (o == null || o < 0 || ue(o))
return {
point: []
};
var s = a.getItemGraphicEl(o), l = i.coordinateSystem;
if (i.getTooltipPosition)
n = i.getTooltipPosition(o) || [];
else if (l && l.dataToPoint)
if (t.isStacked) {
var u = l.getBaseAxis(), c = l.getOtherAxis(u), f = c.dim, d = u.dim, h = f === "x" || f === "radius" ? 1 : 0, p = a.mapDimension(d), v = [];
v[h] = a.get(p, o), v[1 - h] = a.get(a.getCalculationInfo("stackResultDimension"), o), n = l.dataToPoint(v) || [];
} else
n = l.dataToPoint(a.getValues(ce(l.dimensions, function(m) {
return a.mapDimension(m);
}), o)) || [];
else if (s) {
var g = s.getBoundingRect().clone();
g.applyTransform(s.transform), n = [g.x + g.width / 2, g.y + g.height / 2];
}
return {
point: n,
el: s
};
}
var t7 = bt();
function CQe(t, e, n) {
var r = t.currTrigger, i = [t.x, t.y], a = t, o = t.dispatchAction || xe(n.dispatchAction, n), s = e.getComponent("axisPointer").coordSysAxesInfo;
if (s) {
Y_(i) && (i = kre({
seriesIndex: a.seriesIndex,
// Do not use dataIndexInside from other ec instance.
// FIXME: auto detect it?
dataIndex: a.dataIndex
}, e).point);
var l = Y_(i), u = a.axesInfo, c = s.axesInfo, f = r === "leave" || Y_(i), d = {}, h = {}, p = {
list: [],
map: {}
}, v = {
showPointer: Ue(PQe, h),
showTooltip: Ue($Qe, p)
};
k(s.coordSysMap, function(m, y) {
var b = l || m.containPoint(i);
k(s.coordSysAxesInfo[y], function(_, O) {
var S = _.axis, x = IQe(u, _);
if (!f && b && (!u || x)) {
var C = x && x.value;
C == null && !l && (C = S.pointToData(i)), C != null && n7(_, C, v, !1, d);
}
});
});
var g = {};
return k(c, function(m, y) {
var b = m.linkGroup;
b && !h[y] && k(b.axesInfo, function(_, O) {
var S = h[O];
if (_ !== m && S) {
var x = S.value;
b.mapper && (x = m.axis.scale.parse(b.mapper(x, r7(_), r7(m)))), g[m.key] = x;
}
});
}), k(g, function(m, y) {
n7(c[y], m, v, !0, d);
}), AQe(h, c, d), EQe(p, i, t, o), MQe(c, o, n), d;
}
}
function n7(t, e, n, r, i) {
var a = t.axis;
if (!(a.scale.isBlank() || !a.containData(e))) {
if (!t.involveSeries) {
n.showPointer(t, e);
return;
}
var o = TQe(e, t), s = o.payloadBatch, l = o.snapToValue;
s[0] && i.seriesIndex == null && le(i, s[0]), !r && t.snap && a.containData(l) && l != null && (e = l), n.showPointer(t, e, s), n.showTooltip(t, o, l);
}
}
function TQe(t, e) {
var n = e.axis, r = n.dim, i = t, a = [], o = Number.MAX_VALUE, s = -1;
return k(e.seriesModels, function(l, u) {
var c = l.getData().mapDimensionsAll(r), f, d;
if (l.getAxisTooltipData) {
var h = l.getAxisTooltipData(c, t, n);
d = h.dataIndices, f = h.nestestValue;
} else {
if (d = l.getData().indicesOfNearest(
c[0],
t,
// Add a threshold to avoid find the wrong dataIndex
// when data length is not same.
// false,
n.type === "category" ? 0.5 : null
), !d.length)
return;
f = l.getData().get(c[0], d[0]);
}
if (!(f == null || !isFinite(f))) {
var p = t - f, v = Math.abs(p);
v <= o && ((v < o || p >= 0 && s < 0) && (o = v, s = p, i = f, a.length = 0), k(d, function(g) {
a.push({
seriesIndex: l.seriesIndex,
dataIndexInside: g,
dataIndex: l.getData().getRawIndex(g)
});
}));
}
}), {
payloadBatch: a,
snapToValue: i
};
}
function PQe(t, e, n, r) {
t[e.key] = {
value: n,
payloadBatch: r
};
}
function $Qe(t, e, n, r) {
var i = n.payloadBatch, a = e.axis, o = a.model, s = e.axisPointerModel;
if (!(!e.triggerTooltip || !i.length)) {
var l = e.coordSys.model, u = zm(l), c = t.map[u];
c || (c = t.map[u] = {
coordSysId: l.id,
coordSysIndex: l.componentIndex,
coordSysType: l.type,
coordSysMainType: l.mainType,
dataByAxis: []
}, t.list.push(c)), c.dataByAxis.push({
axisDim: a.dim,
axisIndex: o.componentIndex,
axisType: o.type,
axisId: o.id,
value: r,
// Caustion: viewHelper.getValueLabel is actually on "view stage", which
// depends that all models have been updated. So it should not be performed
// here. Considering axisPointerModel used here is volatile, which is hard
// to be retrieve in TooltipView, we prepare parameters here.
valueLabelOpt: {
precision: s.get(["label", "precision"]),
formatter: s.get(["label", "formatter"])
},
seriesDataIndices: i.slice()
});
}
}
function AQe(t, e, n) {
var r = n.axesInfo = [];
k(e, function(i, a) {
var o = i.axisPointerModel.option, s = t[a];
s ? (!i.useHandle && (o.status = "show"), o.value = s.value, o.seriesDataIndices = (s.payloadBatch || []).slice()) : !i.useHandle && (o.status = "hide"), o.status === "show" && r.push({
axisDim: i.axis.dim,
axisIndex: i.axis.model.componentIndex,
value: o.value
});
});
}
function EQe(t, e, n, r) {
if (Y_(e) || !t.list.length) {
r({
type: "hideTip"
});
return;
}
var i = ((t.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
r({
type: "showTip",
escapeConnect: !0,
x: e[0],
y: e[1],
tooltipOption: n.tooltipOption,
position: n.position,
dataIndexInside: i.dataIndexInside,
dataIndex: i.dataIndex,
seriesIndex: i.seriesIndex,
dataByCoordSys: t.list
});
}
function MQe(t, e, n) {
var r = n.getZr(), i = "axisPointerLastHighlights", a = t7(r)[i] || {}, o = t7(r)[i] = {};
k(t, function(u, c) {
var f = u.axisPointerModel.option;
f.status === "show" && u.triggerEmphasis && k(f.seriesDataIndices, function(d) {
var h = d.seriesIndex + " | " + d.dataIndex;
o[h] = d;
});
});
var s = [], l = [];
k(a, function(u, c) {
!o[c] && l.push(u);
}), k(o, function(u, c) {
!a[c] && s.push(u);
}), l.length && n.dispatchAction({
type: "downplay",
escapeConnect: !0,
// Not blur others when highlight in axisPointer.
notBlur: !0,
batch: l
}), s.length && n.dispatchAction({
type: "highlight",
escapeConnect: !0,
// Not blur others when highlight in axisPointer.
notBlur: !0,
batch: s
});
}
function IQe(t, e) {
for (var n = 0; n < (t || []).length; n++) {
var r = t[n];
if (e.axis.dim === r.axisDim && e.axis.model.componentIndex === r.axisIndex)
return r;
}
}
function r7(t) {
var e = t.axis.model, n = {}, r = n.axisDim = t.axis.dim;
return n.axisIndex = n[r + "AxisIndex"] = e.componentIndex, n.axisName = n[r + "AxisName"] = e.name, n.axisId = n[r + "AxisId"] = e.id, n;
}
function Y_(t) {
return !t || t[0] == null || isNaN(t[0]) || t[1] == null || isNaN(t[1]);
}
function ty(t) {
Qf.registerAxisPointerClass("CartesianAxisPointer", gQe), t.registerComponentModel(yQe), t.registerComponentView(wQe), t.registerPreprocessor(function(e) {
if (e) {
(!e.axisPointer || e.axisPointer.length === 0) && (e.axisPointer = {});
var n = e.axisPointer.link;
n && !ue(n) && (e.axisPointer.link = [n]);
}
}), t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, function(e, n) {
e.getComponent("axisPointer").coordSysAxesInfo = Q6e(e, n);
}), t.registerAction({
type: "updateAxisPointer",
event: "updateAxisPointer",
update: ":updateAxisPointer"
}, CQe);
}
function DQe(t) {
at(sne), at(ty);
}
var RQe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.makeElOption = function(n, r, i, a, o) {
var s = i.axis;
s.dim === "angle" && (this.animationThreshold = Math.PI / 18);
var l = s.polar, u = l.getOtherAxis(s), c = u.getExtent(), f = s.dataToCoord(r), d = a.get("type");
if (d && d !== "none") {
var h = gL(a), p = LQe[d](s, l, f, c);
p.style = h, n.graphicKey = p.type, n.pointer = p;
}
var v = a.get(["label", "margin"]), g = kQe(r, i, a, l, v);
Ere(n, i, a, o, g);
}, e;
}(vL)
);
function kQe(t, e, n, r, i) {
var a = e.axis, o = a.dataToCoord(t), s = r.getAngleAxis().getExtent()[0];
s = s / 180 * Math.PI;
var l = r.getRadiusAxis().getExtent(), u, c, f;
if (a.dim === "radius") {
var d = wi();
Cu(d, d, s), so(d, d, [r.cx, r.cy]), u = ro([o, -i], d);
var h = e.getModel("axisLabel").get("rotate") || 0, p = Jr.innerTextLayout(s, h * Math.PI / 180, -1);
c = p.textAlign, f = p.textVerticalAlign;
} else {
var v = l[1];
u = r.coordToPoint([v + i, o]);
var g = r.cx, m = r.cy;
c = Math.abs(u[0] - g) / v < 0.3 ? "center" : u[0] > g ? "left" : "right", f = Math.abs(u[1] - m) / v < 0.3 ? "middle" : u[1] > m ? "top" : "bottom";
}
return {
position: u,
align: c,
verticalAlign: f
};
}
var LQe = {
line: function(t, e, n, r) {
return t.dim === "angle" ? {
type: "Line",
shape: yL(e.coordToPoint([r[0], n]), e.coordToPoint([r[1], n]))
} : {
type: "Circle",
shape: {
cx: e.cx,
cy: e.cy,
r: n
}
};
},
shadow: function(t, e, n, r) {
var i = Math.max(1, t.getBandWidth()), a = Math.PI / 180;
return t.dim === "angle" ? {
type: "Sector",
shape: qW(
e.cx,
e.cy,
r[0],
r[1],
// In ECharts y is negative if angle is positive
(-n - i / 2) * a,
(-n + i / 2) * a
)
} : {
type: "Sector",
shape: qW(e.cx, e.cy, n - i / 2, n + i / 2, 0, Math.PI * 2)
};
}
}, NQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.findAxisModel = function(n) {
var r, i = this.ecModel;
return i.eachComponent(n, function(a) {
a.getCoordSysModel() === this && (r = a);
}, this), r;
}, e.type = "polar", e.dependencies = ["radiusAxis", "angleAxis"], e.defaultOption = {
// zlevel: 0,
z: 0,
center: ["50%", "50%"],
radius: "80%"
}, e;
}(rt)
), bL = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.getCoordSysModel = function() {
return this.getReferringComponents("polar", Dn).models[0];
}, e.type = "polarAxis", e;
}(rt)
);
xn(bL, Mp);
var BQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "angleAxis", e;
}(bL)
), zQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "radiusAxis", e;
}(bL)
), _L = (
/** @class */
function(t) {
q(e, t);
function e(n, r) {
return t.call(this, "radius", n, r) || this;
}
return e.prototype.pointToData = function(n, r) {
return this.polar.pointToData(n, r)[this.dim === "radius" ? 0 : 1];
}, e;
}(Va)
);
_L.prototype.dataToRadius = Va.prototype.dataToCoord;
_L.prototype.radiusToData = Va.prototype.coordToData;
var VQe = bt(), OL = (
/** @class */
function(t) {
q(e, t);
function e(n, r) {
return t.call(this, "angle", n, r || [0, 360]) || this;
}
return e.prototype.pointToData = function(n, r) {
return this.polar.pointToData(n, r)[this.dim === "radius" ? 0 : 1];
}, e.prototype.calculateCategoryInterval = function() {
var n = this, r = n.getLabelModel(), i = n.scale, a = i.getExtent(), o = i.count();
if (a[1] - a[0] < 1)
return 0;
var s = a[0], l = n.dataToCoord(s + 1) - n.dataToCoord(s), u = Math.abs(l), c = L0(s == null ? "" : s + "", r.getFont(), "center", "top"), f = Math.max(c.height, 7), d = f / u;
isNaN(d) && (d = 1 / 0);
var h = Math.max(0, Math.floor(d)), p = VQe(n.model), v = p.lastAutoInterval, g = p.lastTickCount;
return v != null && g != null && Math.abs(v - h) <= 1 && Math.abs(g - o) <= 1 && v > h ? h = v : (p.lastTickCount = o, p.lastAutoInterval = h), h;
}, e;
}(Va)
);
OL.prototype.dataToAngle = Va.prototype.dataToCoord;
OL.prototype.angleToData = Va.prototype.coordToData;
var Lre = ["radius", "angle"], FQe = (
/** @class */
function() {
function t(e) {
this.dimensions = Lre, this.type = "polar", this.cx = 0, this.cy = 0, this._radiusAxis = new _L(), this._angleAxis = new OL(), this.axisPointerEnabled = !0, this.name = e || "", this._radiusAxis.polar = this._angleAxis.polar = this;
}
return t.prototype.containPoint = function(e) {
var n = this.pointToCoord(e);
return this._radiusAxis.contain(n[0]) && this._angleAxis.contain(n[1]);
}, t.prototype.containData = function(e) {
return this._radiusAxis.containData(e[0]) && this._angleAxis.containData(e[1]);
}, t.prototype.getAxis = function(e) {
var n = "_" + e + "Axis";
return this[n];
}, t.prototype.getAxes = function() {
return [this._radiusAxis, this._angleAxis];
}, t.prototype.getAxesByScale = function(e) {
var n = [], r = this._angleAxis, i = this._radiusAxis;
return r.scale.type === e && n.push(r), i.scale.type === e && n.push(i), n;
}, t.prototype.getAngleAxis = function() {
return this._angleAxis;
}, t.prototype.getRadiusAxis = function() {
return this._radiusAxis;
}, t.prototype.getOtherAxis = function(e) {
var n = this._angleAxis;
return e === n ? this._radiusAxis : n;
}, t.prototype.getBaseAxis = function() {
return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAngleAxis();
}, t.prototype.getTooltipAxes = function(e) {
var n = e != null && e !== "auto" ? this.getAxis(e) : this.getBaseAxis();
return {
baseAxes: [n],
otherAxes: [this.getOtherAxis(n)]
};
}, t.prototype.dataToPoint = function(e, n) {
return this.coordToPoint([this._radiusAxis.dataToRadius(e[0], n), this._angleAxis.dataToAngle(e[1], n)]);
}, t.prototype.pointToData = function(e, n) {
var r = this.pointToCoord(e);
return [this._radiusAxis.radiusToData(r[0], n), this._angleAxis.angleToData(r[1], n)];
}, t.prototype.pointToCoord = function(e) {
var n = e[0] - this.cx, r = e[1] - this.cy, i = this.getAngleAxis(), a = i.getExtent(), o = Math.min(a[0], a[1]), s = Math.max(a[0], a[1]);
i.inverse ? o = s - 360 : s = o + 360;
var l = Math.sqrt(n * n + r * r);
n /= l, r /= l;
for (var u = Math.atan2(-r, n) / Math.PI * 180, c = u < o ? 1 : -1; u < o || u > s; )
u += c * 360;
return [l, u];
}, t.prototype.coordToPoint = function(e) {
var n = e[0], r = e[1] / 180 * Math.PI, i = Math.cos(r) * n + this.cx, a = -Math.sin(r) * n + this.cy;
return [i, a];
}, t.prototype.getArea = function() {
var e = this.getAngleAxis(), n = this.getRadiusAxis(), r = n.getExtent().slice();
r[0] > r[1] && r.reverse();
var i = e.getExtent(), a = Math.PI / 180;
return {
cx: this.cx,
cy: this.cy,
r0: r[0],
r: r[1],
startAngle: -i[0] * a,
endAngle: -i[1] * a,
clockwise: e.inverse,
contain: function(o, s) {
var l = o - this.cx, u = s - this.cy, c = l * l + u * u - 1e-4, f = this.r, d = this.r0;
return c <= f * f && c >= d * d;
}
};
}, t.prototype.convertToPixel = function(e, n, r) {
var i = i7(n);
return i === this ? this.dataToPoint(r) : null;
}, t.prototype.convertFromPixel = function(e, n, r) {
var i = i7(n);
return i === this ? this.pointToData(r) : null;
}, t;
}()
);
function i7(t) {
var e = t.seriesModel, n = t.polarModel;
return n && n.coordinateSystem || e && e.coordinateSystem;
}
const WQe = FQe;
function QQe(t, e, n) {
var r = e.get("center"), i = n.getWidth(), a = n.getHeight();
t.cx = _e(r[0], i), t.cy = _e(r[1], a);
var o = t.getRadiusAxis(), s = Math.min(i, a) / 2, l = e.get("radius");
l == null ? l = [0, "100%"] : ue(l) || (l = [0, l]);
var u = [_e(l[0], s), _e(l[1], s)];
o.inverse ? o.setExtent(u[1], u[0]) : o.setExtent(u[0], u[1]);
}
function HQe(t, e) {
var n = this, r = n.getAngleAxis(), i = n.getRadiusAxis();
if (r.scale.setExtent(1 / 0, -1 / 0), i.scale.setExtent(1 / 0, -1 / 0), t.eachSeries(function(s) {
if (s.coordinateSystem === n) {
var l = s.getData();
k(PO(l, "radius"), function(u) {
i.scale.unionExtentFromData(l, u);
}), k(PO(l, "angle"), function(u) {
r.scale.unionExtentFromData(l, u);
});
}
}), Sf(r.scale, r.model), Sf(i.scale, i.model), r.type === "category" && !r.onBand) {
var a = r.getExtent(), o = 360 / r.scale.count();
r.inverse ? a[1] += o : a[1] -= o, r.setExtent(a[0], a[1]);
}
}
function GQe(t) {
return t.mainType === "angleAxis";
}
function a7(t, e) {
var n;
if (t.type = e.get("type"), t.scale = j0(e), t.onBand = e.get("boundaryGap") && t.type === "category", t.inverse = e.get("inverse"), GQe(e)) {
t.inverse = t.inverse !== e.get("clockwise");
var r = e.get("startAngle"), i = (n = e.get("endAngle")) !== null && n !== void 0 ? n : r + (t.inverse ? -360 : 360);
t.setExtent(r, i);
}
e.axis = t, t.model = e;
}
var jQe = {
dimensions: Lre,
create: function(t, e) {
var n = [];
return t.eachComponent("polar", function(r, i) {
var a = new WQe(i + "");
a.update = HQe;
var o = a.getRadiusAxis(), s = a.getAngleAxis(), l = r.findAxisModel("radiusAxis"), u = r.findAxisModel("angleAxis");
a7(o, l), a7(s, u), QQe(a, r, e), n.push(a), r.coordinateSystem = a, a.model = r;
}), t.eachSeries(function(r) {
if (r.get("coordinateSystem") === "polar") {
var i = r.getReferringComponents("polar", Dn).models[0];
if (process.env.NODE_ENV !== "production" && !i)
throw new Error('Polar "' + Tn(r.get("polarIndex"), r.get("polarId"), 0) + '" not found');
r.coordinateSystem = i.coordinateSystem;
}
}), n;
}
}, ZQe = ["axisLine", "axisLabel", "axisTick", "minorTick", "splitLine", "minorSplitLine", "splitArea"];
function Db(t, e, n) {
e[1] > e[0] && (e = e.slice().reverse());
var r = t.coordToPoint([e[0], n]), i = t.coordToPoint([e[1], n]);
return {
x1: r[0],
y1: r[1],
x2: i[0],
y2: i[1]
};
}
function Rb(t) {
var e = t.getRadiusAxis();
return e.inverse ? 0 : 1;
}
function o7(t) {
var e = t[0], n = t[t.length - 1];
e && n && Math.abs(Math.abs(e.coord - n.coord) - 360) < 1e-4 && t.pop();
}
var UQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.axisPointerClass = "PolarAxisPointer", n;
}
return e.prototype.render = function(n, r) {
if (this.group.removeAll(), !!n.get("show")) {
var i = n.axis, a = i.polar, o = a.getRadiusAxis().getExtent(), s = i.getTicksCoords(), l = i.getMinorTicksCoords(), u = ce(i.getViewLabels(), function(c) {
c = Le(c);
var f = i.scale, d = f.type === "ordinal" ? f.getRawOrdinalNumber(c.tickValue) : c.tickValue;
return c.coord = i.dataToCoord(d), c;
});
o7(u), o7(s), k(ZQe, function(c) {
n.get([c, "show"]) && (!i.scale.isBlank() || c === "axisLine") && XQe[c](this.group, n, a, s, l, o, u);
}, this);
}
}, e.type = "angleAxis", e;
}(Qf)
), XQe = {
axisLine: function(t, e, n, r, i, a) {
var o = e.getModel(["axisLine", "lineStyle"]), s = n.getAngleAxis(), l = Math.PI / 180, u = s.getExtent(), c = Rb(n), f = c ? 0 : 1, d, h = Math.abs(u[1] - u[0]) === 360 ? "Circle" : "Arc";
a[f] === 0 ? d = new Nf[h]({
shape: {
cx: n.cx,
cy: n.cy,
r: a[c],
startAngle: -u[0] * l,
endAngle: -u[1] * l,
clockwise: s.inverse
},
style: o.getLineStyle(),
z2: 1,
silent: !0
}) : d = new V0({
shape: {
cx: n.cx,
cy: n.cy,
r: a[c],
r0: a[f]
},
style: o.getLineStyle(),
z2: 1,
silent: !0
}), d.style.fill = null, t.add(d);
},
axisTick: function(t, e, n, r, i, a) {
var o = e.getModel("axisTick"), s = (o.get("inside") ? -1 : 1) * o.get("length"), l = a[Rb(n)], u = ce(r, function(c) {
return new Un({
shape: Db(n, [l, l + s], c.coord)
});
});
t.add(Bi(u, {
style: Re(o.getModel("lineStyle").getLineStyle(), {
stroke: e.get(["axisLine", "lineStyle", "color"])
})
}));
},
minorTick: function(t, e, n, r, i, a) {
if (i.length) {
for (var o = e.getModel("axisTick"), s = e.getModel("minorTick"), l = (o.get("inside") ? -1 : 1) * s.get("length"), u = a[Rb(n)], c = [], f = 0; f < i.length; f++)
for (var d = 0; d < i[f].length; d++)
c.push(new Un({
shape: Db(n, [u, u + l], i[f][d].coord)
}));
t.add(Bi(c, {
style: Re(s.getModel("lineStyle").getLineStyle(), Re(o.getLineStyle(), {
stroke: e.get(["axisLine", "lineStyle", "color"])
}))
}));
}
},
axisLabel: function(t, e, n, r, i, a, o) {
var s = e.getCategories(!0), l = e.getModel("axisLabel"), u = l.get("margin"), c = e.get("triggerEvent");
k(o, function(f, d) {
var h = l, p = f.tickValue, v = a[Rb(n)], g = n.coordToPoint([v + u, f.coord]), m = n.cx, y = n.cy, b = Math.abs(g[0] - m) / v < 0.3 ? "center" : g[0] > m ? "left" : "right", _ = Math.abs(g[1] - y) / v < 0.3 ? "middle" : g[1] > y ? "top" : "bottom";
if (s && s[p]) {
var O = s[p];
Ie(O) && O.textStyle && (h = new Wt(O.textStyle, l, l.ecModel));
}
var S = new gt({
silent: Jr.isLabelSilent(e),
style: Zt(h, {
x: g[0],
y: g[1],
fill: h.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
text: f.formattedLabel,
align: b,
verticalAlign: _
})
});
if (t.add(S), c) {
var x = Jr.makeAxisEventDataBase(e);
x.targetType = "axisLabel", x.value = f.rawLabel, Fe(S).eventData = x;
}
}, this);
},
splitLine: function(t, e, n, r, i, a) {
var o = e.getModel("splitLine"), s = o.getModel("lineStyle"), l = s.get("color"), u = 0;
l = l instanceof Array ? l : [l];
for (var c = [], f = 0; f < r.length; f++) {
var d = u++ % l.length;
c[d] = c[d] || [], c[d].push(new Un({
shape: Db(n, a, r[f].coord)
}));
}
for (var f = 0; f < c.length; f++)
t.add(Bi(c[f], {
style: Re({
stroke: l[f % l.length]
}, s.getLineStyle()),
silent: !0,
z: e.get("z")
}));
},
minorSplitLine: function(t, e, n, r, i, a) {
if (i.length) {
for (var o = e.getModel("minorSplitLine"), s = o.getModel("lineStyle"), l = [], u = 0; u < i.length; u++)
for (var c = 0; c < i[u].length; c++)
l.push(new Un({
shape: Db(n, a, i[u][c].coord)
}));
t.add(Bi(l, {
style: s.getLineStyle(),
silent: !0,
z: e.get("z")
}));
}
},
splitArea: function(t, e, n, r, i, a) {
if (r.length) {
var o = e.getModel("splitArea"), s = o.getModel("areaStyle"), l = s.get("color"), u = 0;
l = l instanceof Array ? l : [l];
for (var c = [], f = Math.PI / 180, d = -r[0].coord * f, h = Math.min(a[0], a[1]), p = Math.max(a[0], a[1]), v = e.get("clockwise"), g = 1, m = r.length; g <= m; g++) {
var y = g === m ? r[0].coord : r[g].coord, b = u++ % l.length;
c[b] = c[b] || [], c[b].push(new ii({
shape: {
cx: n.cx,
cy: n.cy,
r0: h,
r: p,
startAngle: d,
endAngle: -y * f,
clockwise: v
},
silent: !0
})), d = -y * f;
}
for (var g = 0; g < c.length; g++)
t.add(Bi(c[g], {
style: Re({
fill: l[g % l.length]
}, s.getAreaStyle()),
silent: !0
}));
}
}
}, YQe = ["axisLine", "axisTickLabel", "axisName"], qQe = ["splitLine", "splitArea", "minorSplitLine"], KQe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.axisPointerClass = "PolarAxisPointer", n;
}
return e.prototype.render = function(n, r) {
if (this.group.removeAll(), !!n.get("show")) {
var i = this._axisGroup, a = this._axisGroup = new Ve();
this.group.add(a);
var o = n.axis, s = o.polar, l = s.getAngleAxis(), u = o.getTicksCoords(), c = o.getMinorTicksCoords(), f = l.getExtent()[0], d = o.getExtent(), h = eHe(s, n, f), p = new Jr(n, h);
k(YQe, p.add, p), a.add(p.getGroup()), Q0(i, a, n), k(qQe, function(v) {
n.get([v, "show"]) && !o.scale.isBlank() && JQe[v](this.group, n, s, f, d, u, c);
}, this);
}
}, e.type = "radiusAxis", e;
}(Qf)
), JQe = {
splitLine: function(t, e, n, r, i, a) {
var o = e.getModel("splitLine"), s = o.getModel("lineStyle"), l = s.get("color"), u = 0, c = n.getAngleAxis(), f = Math.PI / 180, d = c.getExtent(), h = Math.abs(d[1] - d[0]) === 360 ? "Circle" : "Arc";
l = l instanceof Array ? l : [l];
for (var p = [], v = 0; v < a.length; v++) {
var g = u++ % l.length;
p[g] = p[g] || [], p[g].push(new Nf[h]({
shape: {
cx: n.cx,
cy: n.cy,
// ensure circle radius >= 0
r: Math.max(a[v].coord, 0),
startAngle: -d[0] * f,
endAngle: -d[1] * f,
clockwise: c.inverse
}
}));
}
for (var v = 0; v < p.length; v++)
t.add(Bi(p[v], {
style: Re({
stroke: l[v % l.length],
fill: null
}, s.getLineStyle()),
silent: !0
}));
},
minorSplitLine: function(t, e, n, r, i, a, o) {
if (o.length) {
for (var s = e.getModel("minorSplitLine"), l = s.getModel("lineStyle"), u = [], c = 0; c < o.length; c++)
for (var f = 0; f < o[c].length; f++)
u.push(new ul({
shape: {
cx: n.cx,
cy: n.cy,
r: o[c][f].coord
}
}));
t.add(Bi(u, {
style: Re({
fill: null
}, l.getLineStyle()),
silent: !0
}));
}
},
splitArea: function(t, e, n, r, i, a) {
if (a.length) {
var o = e.getModel("splitArea"), s = o.getModel("areaStyle"), l = s.get("color"), u = 0;
l = l instanceof Array ? l : [l];
for (var c = [], f = a[0].coord, d = 1; d < a.length; d++) {
var h = u++ % l.length;
c[h] = c[h] || [], c[h].push(new ii({
shape: {
cx: n.cx,
cy: n.cy,
r0: f,
r: a[d].coord,
startAngle: 0,
endAngle: Math.PI * 2
},
silent: !0
})), f = a[d].coord;
}
for (var d = 0; d < c.length; d++)
t.add(Bi(c[d], {
style: Re({
fill: l[d % l.length]
}, s.getAreaStyle()),
silent: !0
}));
}
}
};
function eHe(t, e, n) {
return {
position: [t.cx, t.cy],
rotation: n / 180 * Math.PI,
labelDirection: -1,
tickDirection: -1,
nameDirection: 1,
labelRotate: e.getModel("axisLabel").get("rotate"),
// Over splitLine and splitArea
z2: 1
};
}
function Nre(t) {
return t.get("stack") || "__ec_stack_" + t.seriesIndex;
}
function Bre(t, e) {
return e.dim + t.model.componentIndex;
}
function tHe(t, e, n) {
var r = {}, i = nHe(Nt(e.getSeriesByType(t), function(a) {
return !e.isSeriesFiltered(a) && a.coordinateSystem && a.coordinateSystem.type === "polar";
}));
e.eachSeriesByType(t, function(a) {
if (a.coordinateSystem.type === "polar") {
var o = a.getData(), s = a.coordinateSystem, l = s.getBaseAxis(), u = Bre(s, l), c = Nre(a), f = i[u][c], d = f.offset, h = f.width, p = s.getOtherAxis(l), v = a.coordinateSystem.cx, g = a.coordinateSystem.cy, m = a.get("barMinHeight") || 0, y = a.get("barMinAngle") || 0;
r[c] = r[c] || [];
for (var b = o.mapDimension(p.dim), _ = o.mapDimension(l.dim), O = Ys(
o,
b
/* , baseDim */
), S = l.dim !== "radius" || !a.get("roundCap", !0), x = p.model, C = x.get("startValue"), T = p.dataToCoord(C || 0), w = 0, P = o.count(); w < P; w++) {
var $ = o.get(b, w), A = o.get(_, w), D = $ >= 0 ? "p" : "n", E = T;
O && (r[c][A] || (r[c][A] = {
p: T,
n: T
// Negative stack
}), E = r[c][A][D]);
var R = void 0, N = void 0, V = void 0, B = void 0;
if (p.dim === "radius") {
var W = p.dataToCoord($) - T, F = l.dataToCoord(A);
Math.abs(W) < m && (W = (W < 0 ? -1 : 1) * m), R = E, N = E + W, V = F - d, B = V - h, O && (r[c][A][D] = N);
} else {
var Q = p.dataToCoord($, S) - T, Z = l.dataToCoord(A);
Math.abs(Q) < y && (Q = (Q < 0 ? -1 : 1) * y), R = Z + d, N = R + h, V = E, B = E + Q, O && (r[c][A][D] = B);
}
o.setItemLayout(w, {
cx: v,
cy: g,
r0: R,
r: N,
// Consider that positive angle is anti-clockwise,
// while positive radian of sector is clockwise
startAngle: -V * Math.PI / 180,
endAngle: -B * Math.PI / 180,
/**
* Keep the same logic with bar in catesion: use end value to
* control direction. Notice that if clockwise is true (by
* default), the sector will always draw clockwisely, no matter
* whether endAngle is greater or less than startAngle.
*/
clockwise: V >= B
});
}
}
});
}
function nHe(t) {
var e = {};
k(t, function(r, i) {
var a = r.getData(), o = r.coordinateSystem, s = o.getBaseAxis(), l = Bre(o, s), u = s.getExtent(), c = s.type === "category" ? s.getBandWidth() : Math.abs(u[1] - u[0]) / a.count(), f = e[l] || {
bandWidth: c,
remainedWidth: c,
autoWidthCount: 0,
categoryGap: "20%",
gap: "30%",
stacks: {}
}, d = f.stacks;
e[l] = f;
var h = Nre(r);
d[h] || f.autoWidthCount++, d[h] = d[h] || {
width: 0,
maxWidth: 0
};
var p = _e(r.get("barWidth"), c), v = _e(r.get("barMaxWidth"), c), g = r.get("barGap"), m = r.get("barCategoryGap");
p && !d[h].width && (p = Math.min(f.remainedWidth, p), d[h].width = p, f.remainedWidth -= p), v && (d[h].maxWidth = v), g != null && (f.gap = g), m != null && (f.categoryGap = m);
});
var n = {};
return k(e, function(r, i) {
n[i] = {};
var a = r.stacks, o = r.bandWidth, s = _e(r.categoryGap, o), l = _e(r.gap, 1), u = r.remainedWidth, c = r.autoWidthCount, f = (u - s) / (c + (c - 1) * l);
f = Math.max(f, 0), k(a, function(v, g) {
var m = v.maxWidth;
m && m < f && (m = Math.min(m, u), v.width && (m = Math.min(m, v.width)), u -= m, v.width = m, c--);
}), f = (u - s) / (c + (c - 1) * l), f = Math.max(f, 0);
var d = 0, h;
k(a, function(v, g) {
v.width || (v.width = f), h = v, d += v.width * (1 + l);
}), h && (d -= h.width * l);
var p = -d / 2;
k(a, function(v, g) {
n[i][g] = n[i][g] || {
offset: p,
width: v.width
}, p += v.width * (1 + l);
});
}), n;
}
var rHe = {
startAngle: 90,
clockwise: !0,
splitNumber: 12,
axisLabel: {
rotate: 0
}
}, iHe = {
splitNumber: 5
}, aHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "polar", e;
}(Xt)
);
function oHe(t) {
at(ty), Qf.registerAxisPointerClass("PolarAxisPointer", RQe), t.registerCoordinateSystem("polar", jQe), t.registerComponentModel(NQe), t.registerComponentView(aHe), Uh(t, "angle", BQe, rHe), Uh(t, "radius", zQe, iHe), t.registerComponentView(UQe), t.registerComponentView(KQe), t.registerLayout(Ue(tHe, "bar"));
}
function IE(t, e) {
e = e || {};
var n = t.coordinateSystem, r = t.axis, i = {}, a = r.position, o = r.orient, s = n.getRect(), l = [s.x, s.x + s.width, s.y, s.y + s.height], u = {
horizontal: {
top: l[2],
bottom: l[3]
},
vertical: {
left: l[0],
right: l[1]
}
};
i.position = [o === "vertical" ? u.vertical[a] : l[0], o === "horizontal" ? u.horizontal[a] : l[3]];
var c = {
horizontal: 0,
vertical: 1
};
i.rotation = Math.PI / 2 * c[o];
var f = {
top: -1,
bottom: 1,
right: 1,
left: -1
};
i.labelDirection = i.tickDirection = i.nameDirection = f[a], t.get(["axisTick", "inside"]) && (i.tickDirection = -i.tickDirection), Tn(e.labelInside, t.get(["axisLabel", "inside"])) && (i.labelDirection = -i.labelDirection);
var d = e.rotate;
return d == null && (d = t.get(["axisLabel", "rotate"])), i.labelRotation = a === "top" ? -d : d, i.z2 = 1, i;
}
var sHe = ["axisLine", "axisTickLabel", "axisName"], lHe = ["splitArea", "splitLine"], uHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.axisPointerClass = "SingleAxisPointer", n;
}
return e.prototype.render = function(n, r, i, a) {
var o = this.group;
o.removeAll();
var s = this._axisGroup;
this._axisGroup = new Ve();
var l = IE(n), u = new Jr(n, l);
k(sHe, u.add, u), o.add(this._axisGroup), o.add(u.getGroup()), k(lHe, function(c) {
n.get([c, "show"]) && cHe[c](this, this.group, this._axisGroup, n);
}, this), Q0(s, this._axisGroup, n), t.prototype.render.call(this, n, r, i, a);
}, e.prototype.remove = function() {
ine(this);
}, e.type = "singleAxis", e;
}(Qf)
), cHe = {
splitLine: function(t, e, n, r) {
var i = r.axis;
if (!i.scale.isBlank()) {
var a = r.getModel("splitLine"), o = a.getModel("lineStyle"), s = o.get("color");
s = s instanceof Array ? s : [s];
for (var l = o.get("width"), u = r.coordinateSystem.getRect(), c = i.isHorizontal(), f = [], d = 0, h = i.getTicksCoords({
tickModel: a
}), p = [], v = [], g = 0; g < h.length; ++g) {
var m = i.toGlobalCoord(h[g].coord);
c ? (p[0] = m, p[1] = u.y, v[0] = m, v[1] = u.y + u.height) : (p[0] = u.x, p[1] = m, v[0] = u.x + u.width, v[1] = m);
var y = new Un({
shape: {
x1: p[0],
y1: p[1],
x2: v[0],
y2: v[1]
},
silent: !0
});
Hh(y.shape, l);
var b = d++ % s.length;
f[b] = f[b] || [], f[b].push(y);
}
for (var _ = o.getLineStyle(["color"]), g = 0; g < f.length; ++g)
e.add(Bi(f[g], {
style: Re({
stroke: s[g % s.length]
}, _),
silent: !0
}));
}
},
splitArea: function(t, e, n, r) {
rne(t, n, r, r);
}
}, q_ = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.getCoordSysModel = function() {
return this;
}, e.type = "singleAxis", e.layoutMode = "box", e.defaultOption = {
left: "5%",
top: "5%",
right: "5%",
bottom: "5%",
type: "value",
position: "bottom",
orient: "horizontal",
axisLine: {
show: !0,
lineStyle: {
width: 1,
type: "solid"
}
},
// Single coordinate system and single axis is the,
// which is used as the parent tooltip model.
// same model, so we set default tooltip show as true.
tooltip: {
show: !0
},
axisTick: {
show: !0,
length: 6,
lineStyle: {
width: 1
}
},
axisLabel: {
show: !0,
interval: "auto"
},
splitLine: {
show: !0,
lineStyle: {
type: "dashed",
opacity: 0.2
}
}
}, e;
}(rt)
);
xn(q_, Mp.prototype);
var fHe = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i, a, o) {
var s = t.call(this, n, r, i) || this;
return s.type = a || "value", s.position = o || "bottom", s;
}
return e.prototype.isHorizontal = function() {
var n = this.position;
return n === "top" || n === "bottom";
}, e.prototype.pointToData = function(n, r) {
return this.coordinateSystem.pointToData(n)[0];
}, e;
}(Va)
), zre = ["single"], dHe = (
/** @class */
function() {
function t(e, n, r) {
this.type = "single", this.dimension = "single", this.dimensions = zre, this.axisPointerEnabled = !0, this.model = e, this._init(e, n, r);
}
return t.prototype._init = function(e, n, r) {
var i = this.dimension, a = new fHe(i, j0(e), [0, 0], e.get("type"), e.get("position")), o = a.type === "category";
a.onBand = o && e.get("boundaryGap"), a.inverse = e.get("inverse"), a.orient = e.get("orient"), e.axis = a, a.model = e, a.coordinateSystem = this, this._axis = a;
}, t.prototype.update = function(e, n) {
e.eachSeries(function(r) {
if (r.coordinateSystem === this) {
var i = r.getData();
k(i.mapDimensionsAll(this.dimension), function(a) {
this._axis.scale.unionExtentFromData(i, a);
}, this), Sf(this._axis.scale, this._axis.model);
}
}, this);
}, t.prototype.resize = function(e, n) {
this._rect = Rn({
left: e.get("left"),
top: e.get("top"),
right: e.get("right"),
bottom: e.get("bottom"),
width: e.get("width"),
height: e.get("height")
}, {
width: n.getWidth(),
height: n.getHeight()
}), this._adjustAxis();
}, t.prototype.getRect = function() {
return this._rect;
}, t.prototype._adjustAxis = function() {
var e = this._rect, n = this._axis, r = n.isHorizontal(), i = r ? [0, e.width] : [0, e.height], a = n.inverse ? 1 : 0;
n.setExtent(i[a], i[1 - a]), this._updateAxisTransform(n, r ? e.x : e.y);
}, t.prototype._updateAxisTransform = function(e, n) {
var r = e.getExtent(), i = r[0] + r[1], a = e.isHorizontal();
e.toGlobalCoord = a ? function(o) {
return o + n;
} : function(o) {
return i - o + n;
}, e.toLocalCoord = a ? function(o) {
return o - n;
} : function(o) {
return i - o + n;
};
}, t.prototype.getAxis = function() {
return this._axis;
}, t.prototype.getBaseAxis = function() {
return this._axis;
}, t.prototype.getAxes = function() {
return [this._axis];
}, t.prototype.getTooltipAxes = function() {
return {
baseAxes: [this.getAxis()],
// Empty otherAxes
otherAxes: []
};
}, t.prototype.containPoint = function(e) {
var n = this.getRect(), r = this.getAxis(), i = r.orient;
return i === "horizontal" ? r.contain(r.toLocalCoord(e[0])) && e[1] >= n.y && e[1] <= n.y + n.height : r.contain(r.toLocalCoord(e[1])) && e[0] >= n.y && e[0] <= n.y + n.height;
}, t.prototype.pointToData = function(e) {
var n = this.getAxis();
return [n.coordToData(n.toLocalCoord(e[n.orient === "horizontal" ? 0 : 1]))];
}, t.prototype.dataToPoint = function(e) {
var n = this.getAxis(), r = this.getRect(), i = [], a = n.orient === "horizontal" ? 0 : 1;
return e instanceof Array && (e = e[0]), i[a] = n.toGlobalCoord(n.dataToCoord(+e)), i[1 - a] = a === 0 ? r.y + r.height / 2 : r.x + r.width / 2, i;
}, t.prototype.convertToPixel = function(e, n, r) {
var i = s7(n);
return i === this ? this.dataToPoint(r) : null;
}, t.prototype.convertFromPixel = function(e, n, r) {
var i = s7(n);
return i === this ? this.pointToData(r) : null;
}, t;
}()
);
function s7(t) {
var e = t.seriesModel, n = t.singleAxisModel;
return n && n.coordinateSystem || e && e.coordinateSystem;
}
function hHe(t, e) {
var n = [];
return t.eachComponent("singleAxis", function(r, i) {
var a = new dHe(r, t, e);
a.name = "single_" + i, a.resize(r, e), r.coordinateSystem = a, n.push(a);
}), t.eachSeries(function(r) {
if (r.get("coordinateSystem") === "singleAxis") {
var i = r.getReferringComponents("singleAxis", Dn).models[0];
r.coordinateSystem = i && i.coordinateSystem;
}
}), n;
}
var pHe = {
create: hHe,
dimensions: zre
}, l7 = ["x", "y"], vHe = ["width", "height"], gHe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.makeElOption = function(n, r, i, a, o) {
var s = i.axis, l = s.coordinateSystem, u = ZP(l, 1 - QO(s)), c = l.dataToPoint(r)[0], f = a.get("type");
if (f && f !== "none") {
var d = gL(a), h = mHe[f](s, c, u);
h.style = d, n.graphicKey = h.type, n.pointer = h;
}
var p = IE(i);
Ire(
// @ts-ignore
r,
n,
p,
i,
a,
o
);
}, e.prototype.getHandleTransform = function(n, r, i) {
var a = IE(r, {
labelInside: !1
});
a.labelMargin = i.get(["handle", "margin"]);
var o = mL(r.axis, n, a);
return {
x: o[0],
y: o[1],
rotation: a.rotation + (a.labelDirection < 0 ? Math.PI : 0)
};
}, e.prototype.updateHandleTransform = function(n, r, i, a) {
var o = i.axis, s = o.coordinateSystem, l = QO(o), u = ZP(s, l), c = [n.x, n.y];
c[l] += r[l], c[l] = Math.min(u[1], c[l]), c[l] = Math.max(u[0], c[l]);
var f = ZP(s, 1 - l), d = (f[1] + f[0]) / 2, h = [d, d];
return h[l] = c[l], {
x: c[0],
y: c[1],
rotation: n.rotation,
cursorPoint: h,
tooltipOption: {
verticalAlign: "middle"
}
};
}, e;
}(vL)
), mHe = {
line: function(t, e, n) {
var r = yL([e, n[0]], [e, n[1]], QO(t));
return {
type: "Line",
subPixelOptimize: !0,
shape: r
};
},
shadow: function(t, e, n) {
var r = t.getBandWidth(), i = n[1] - n[0];
return {
type: "Rect",
shape: Dre([e - r / 2, n[0]], [r, i], QO(t))
};
}
};
function QO(t) {
return t.isHorizontal() ? 0 : 1;
}
function ZP(t, e) {
var n = t.getRect();
return [n[l7[e]], n[l7[e]] + n[vHe[e]]];
}
var yHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "single", e;
}(Xt)
);
function bHe(t) {
at(ty), Qf.registerAxisPointerClass("SingleAxisPointer", gHe), t.registerComponentView(yHe), t.registerComponentView(uHe), t.registerComponentModel(q_), Uh(t, "single", q_, q_.defaultOption), t.registerCoordinateSystem("single", pHe);
}
var _He = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r, i) {
var a = wp(n);
t.prototype.init.apply(this, arguments), u7(n, a);
}, e.prototype.mergeOption = function(n) {
t.prototype.mergeOption.apply(this, arguments), u7(this.option, n);
}, e.prototype.getCellSize = function() {
return this.option.cellSize;
}, e.type = "calendar", e.defaultOption = {
// zlevel: 0,
z: 2,
left: 80,
top: 60,
cellSize: 20,
// horizontal vertical
orient: "horizontal",
// month separate line style
splitLine: {
show: !0,
lineStyle: {
color: "#000",
width: 1,
type: "solid"
}
},
// rect style temporarily unused emphasis
itemStyle: {
color: "#fff",
borderWidth: 1,
borderColor: "#ccc"
},
// week text style
dayLabel: {
show: !0,
firstDay: 0,
// start end
position: "start",
margin: "50%",
color: "#000"
},
// month text style
monthLabel: {
show: !0,
// start end
position: "start",
margin: 5,
// center or left
align: "center",
formatter: null,
color: "#000"
},
// year text style
yearLabel: {
show: !0,
// top bottom left right
position: null,
margin: 30,
formatter: null,
color: "#ccc",
fontFamily: "sans-serif",
fontWeight: "bolder",
fontSize: 20
}
}, e;
}(rt)
);
function u7(t, e) {
var n = t.cellSize, r;
ue(n) ? r = n : r = t.cellSize = [n, n], r.length === 1 && (r[1] = r[0]);
var i = ce([0, 1], function(a) {
return OLe(e, a) && (r[a] = "auto"), r[a] != null && r[a] !== "auto";
});
cu(t, e, {
type: "box",
ignoreSize: i
});
}
var OHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
var a = this.group;
a.removeAll();
var o = n.coordinateSystem, s = o.getRangeInfo(), l = o.getOrient(), u = r.getLocaleModel();
this._renderDayRect(n, s, a), this._renderLines(n, s, l, a), this._renderYearText(n, s, l, a), this._renderMonthText(n, u, l, a), this._renderWeekText(n, u, s, l, a);
}, e.prototype._renderDayRect = function(n, r, i) {
for (var a = n.coordinateSystem, o = n.getModel("itemStyle").getItemStyle(), s = a.getCellWidth(), l = a.getCellHeight(), u = r.start.time; u <= r.end.time; u = a.getNextNDay(u, 1).time) {
var c = a.dataToRect([u], !1).tl, f = new mt({
shape: {
x: c[0],
y: c[1],
width: s,
height: l
},
cursor: "default",
style: o
});
i.add(f);
}
}, e.prototype._renderLines = function(n, r, i, a) {
var o = this, s = n.coordinateSystem, l = n.getModel(["splitLine", "lineStyle"]).getLineStyle(), u = n.get(["splitLine", "show"]), c = l.lineWidth;
this._tlpoints = [], this._blpoints = [], this._firstDayOfMonth = [], this._firstDayPoints = [];
for (var f = r.start, d = 0; f.time <= r.end.time; d++) {
p(f.formatedDate), d === 0 && (f = s.getDateInfo(r.start.y + "-" + r.start.m));
var h = f.date;
h.setMonth(h.getMonth() + 1), f = s.getDateInfo(h);
}
p(s.getNextNDay(r.end.time, 1).formatedDate);
function p(v) {
o._firstDayOfMonth.push(s.getDateInfo(v)), o._firstDayPoints.push(s.dataToRect([v], !1).tl);
var g = o._getLinePointsOfOneWeek(n, v, i);
o._tlpoints.push(g[0]), o._blpoints.push(g[g.length - 1]), u && o._drawSplitline(g, l, a);
}
u && this._drawSplitline(o._getEdgesPoints(o._tlpoints, c, i), l, a), u && this._drawSplitline(o._getEdgesPoints(o._blpoints, c, i), l, a);
}, e.prototype._getEdgesPoints = function(n, r, i) {
var a = [n[0].slice(), n[n.length - 1].slice()], o = i === "horizontal" ? 0 : 1;
return a[0][o] = a[0][o] - r / 2, a[1][o] = a[1][o] + r / 2, a;
}, e.prototype._drawSplitline = function(n, r, i) {
var a = new oi({
z2: 20,
shape: {
points: n
},
style: r
});
i.add(a);
}, e.prototype._getLinePointsOfOneWeek = function(n, r, i) {
for (var a = n.coordinateSystem, o = a.getDateInfo(r), s = [], l = 0; l < 7; l++) {
var u = a.getNextNDay(o.time, l), c = a.dataToRect([u.time], !1);
s[2 * u.day] = c.tl, s[2 * u.day + 1] = c[i === "horizontal" ? "bl" : "tr"];
}
return s;
}, e.prototype._formatterLabel = function(n, r) {
return Oe(n) && n ? mLe(n, r) : Me(n) ? n(r) : r.nameMap;
}, e.prototype._yearTextPositionControl = function(n, r, i, a, o) {
var s = r[0], l = r[1], u = ["center", "bottom"];
a === "bottom" ? (l += o, u = ["center", "top"]) : a === "left" ? s -= o : a === "right" ? (s += o, u = ["center", "top"]) : l -= o;
var c = 0;
return (a === "left" || a === "right") && (c = Math.PI / 2), {
rotation: c,
x: s,
y: l,
style: {
align: u[0],
verticalAlign: u[1]
}
};
}, e.prototype._renderYearText = function(n, r, i, a) {
var o = n.getModel("yearLabel");
if (o.get("show")) {
var s = o.get("margin"), l = o.get("position");
l || (l = i !== "horizontal" ? "top" : "left");
var u = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]], c = (u[0][0] + u[1][0]) / 2, f = (u[0][1] + u[1][1]) / 2, d = i === "horizontal" ? 0 : 1, h = {
top: [c, u[d][1]],
bottom: [c, u[1 - d][1]],
left: [u[1 - d][0], f],
right: [u[d][0], f]
}, p = r.start.y;
+r.end.y > +r.start.y && (p = p + "-" + r.end.y);
var v = o.get("formatter"), g = {
start: r.start.y,
end: r.end.y,
nameMap: p
}, m = this._formatterLabel(v, g), y = new gt({
z2: 30,
style: Zt(o, {
text: m
})
});
y.attr(this._yearTextPositionControl(y, h[l], i, l, s)), a.add(y);
}
}, e.prototype._monthTextPositionControl = function(n, r, i, a, o) {
var s = "left", l = "top", u = n[0], c = n[1];
return i === "horizontal" ? (c = c + o, r && (s = "center"), a === "start" && (l = "bottom")) : (u = u + o, r && (l = "middle"), a === "start" && (s = "right")), {
x: u,
y: c,
align: s,
verticalAlign: l
};
}, e.prototype._renderMonthText = function(n, r, i, a) {
var o = n.getModel("monthLabel");
if (o.get("show")) {
var s = o.get("nameMap"), l = o.get("margin"), u = o.get("position"), c = o.get("align"), f = [this._tlpoints, this._blpoints];
(!s || Oe(s)) && (s && (r = VA(s) || r), s = r.get(["time", "monthAbbr"]) || []);
var d = u === "start" ? 0 : 1, h = i === "horizontal" ? 0 : 1;
l = u === "start" ? -l : l;
for (var p = c === "center", v = 0; v < f[d].length - 1; v++) {
var g = f[d][v].slice(), m = this._firstDayOfMonth[v];
if (p) {
var y = this._firstDayPoints[v];
g[h] = (y[h] + f[0][v + 1][h]) / 2;
}
var b = o.get("formatter"), _ = s[+m.m - 1], O = {
yyyy: m.y,
yy: (m.y + "").slice(2),
MM: m.m,
M: +m.m,
nameMap: _
}, S = this._formatterLabel(b, O), x = new gt({
z2: 30,
style: le(Zt(o, {
text: S
}), this._monthTextPositionControl(g, p, i, u, l))
});
a.add(x);
}
}
}, e.prototype._weekTextPositionControl = function(n, r, i, a, o) {
var s = "center", l = "middle", u = n[0], c = n[1], f = i === "start";
return r === "horizontal" ? (u = u + a + (f ? 1 : -1) * o[0] / 2, s = f ? "right" : "left") : (c = c + a + (f ? 1 : -1) * o[1] / 2, l = f ? "bottom" : "top"), {
x: u,
y: c,
align: s,
verticalAlign: l
};
}, e.prototype._renderWeekText = function(n, r, i, a, o) {
var s = n.getModel("dayLabel");
if (s.get("show")) {
var l = n.coordinateSystem, u = s.get("position"), c = s.get("nameMap"), f = s.get("margin"), d = l.getFirstDayOfWeek();
if (!c || Oe(c)) {
c && (r = VA(c) || r);
var h = r.get(["time", "dayOfWeekShort"]);
c = h || ce(r.get(["time", "dayOfWeekAbbr"]), function(O) {
return O[0];
});
}
var p = l.getNextNDay(i.end.time, 7 - i.lweek).time, v = [l.getCellWidth(), l.getCellHeight()];
f = _e(f, Math.min(v[1], v[0])), u === "start" && (p = l.getNextNDay(i.start.time, -(7 + i.fweek)).time, f = -f);
for (var g = 0; g < 7; g++) {
var m = l.getNextNDay(p, g), y = l.dataToRect([m.time], !1).center, b = g;
b = Math.abs((g + d) % 7);
var _ = new gt({
z2: 30,
style: le(Zt(s, {
text: c[b]
}), this._weekTextPositionControl(y, a, u, f, v))
});
o.add(_);
}
}
}, e.type = "calendar", e;
}(Xt)
), UP = 864e5, SHe = (
/** @class */
function() {
function t(e, n, r) {
this.type = "calendar", this.dimensions = t.dimensions, this.getDimensionsInfo = t.getDimensionsInfo, this._model = e;
}
return t.getDimensionsInfo = function() {
return [{
name: "time",
type: "time"
}, "value"];
}, t.prototype.getRangeInfo = function() {
return this._rangeInfo;
}, t.prototype.getModel = function() {
return this._model;
}, t.prototype.getRect = function() {
return this._rect;
}, t.prototype.getCellWidth = function() {
return this._sw;
}, t.prototype.getCellHeight = function() {
return this._sh;
}, t.prototype.getOrient = function() {
return this._orient;
}, t.prototype.getFirstDayOfWeek = function() {
return this._firstDayOfWeek;
}, t.prototype.getDateInfo = function(e) {
e = Ki(e);
var n = e.getFullYear(), r = e.getMonth() + 1, i = r < 10 ? "0" + r : "" + r, a = e.getDate(), o = a < 10 ? "0" + a : "" + a, s = e.getDay();
return s = Math.abs((s + 7 - this.getFirstDayOfWeek()) % 7), {
y: n + "",
m: i,
d: o,
day: s,
time: e.getTime(),
formatedDate: n + "-" + i + "-" + o,
date: e
};
}, t.prototype.getNextNDay = function(e, n) {
return n = n || 0, n === 0 ? this.getDateInfo(e) : (e = new Date(this.getDateInfo(e).time), e.setDate(e.getDate() + n), this.getDateInfo(e));
}, t.prototype.update = function(e, n) {
this._firstDayOfWeek = +this._model.getModel("dayLabel").get("firstDay"), this._orient = this._model.get("orient"), this._lineWidth = this._model.getModel("itemStyle").getItemStyle().lineWidth || 0, this._rangeInfo = this._getRangeInfo(this._initRangeOption());
var r = this._rangeInfo.weeks || 1, i = ["width", "height"], a = this._model.getCellSize().slice(), o = this._model.getBoxLayoutParams(), s = this._orient === "horizontal" ? [r, 7] : [7, r];
k([0, 1], function(f) {
c(a, f) && (o[i[f]] = a[f] * s[f]);
});
var l = {
width: n.getWidth(),
height: n.getHeight()
}, u = this._rect = Rn(o, l);
k([0, 1], function(f) {
c(a, f) || (a[f] = u[i[f]] / s[f]);
});
function c(f, d) {
return f[d] != null && f[d] !== "auto";
}
this._sw = a[0], this._sh = a[1];
}, t.prototype.dataToPoint = function(e, n) {
ue(e) && (e = e[0]), n == null && (n = !0);
var r = this.getDateInfo(e), i = this._rangeInfo, a = r.formatedDate;
if (n && !(r.time >= i.start.time && r.time < i.end.time + UP))
return [NaN, NaN];
var o = r.day, s = this._getRangeInfo([i.start.time, a]).nthWeek;
return this._orient === "vertical" ? [this._rect.x + o * this._sw + this._sw / 2, this._rect.y + s * this._sh + this._sh / 2] : [this._rect.x + s * this._sw + this._sw / 2, this._rect.y + o * this._sh + this._sh / 2];
}, t.prototype.pointToData = function(e) {
var n = this.pointToDate(e);
return n && n.time;
}, t.prototype.dataToRect = function(e, n) {
var r = this.dataToPoint(e, n);
return {
contentShape: {
x: r[0] - (this._sw - this._lineWidth) / 2,
y: r[1] - (this._sh - this._lineWidth) / 2,
width: this._sw - this._lineWidth,
height: this._sh - this._lineWidth
},
center: r,
tl: [r[0] - this._sw / 2, r[1] - this._sh / 2],
tr: [r[0] + this._sw / 2, r[1] - this._sh / 2],
br: [r[0] + this._sw / 2, r[1] + this._sh / 2],
bl: [r[0] - this._sw / 2, r[1] + this._sh / 2]
};
}, t.prototype.pointToDate = function(e) {
var n = Math.floor((e[0] - this._rect.x) / this._sw) + 1, r = Math.floor((e[1] - this._rect.y) / this._sh) + 1, i = this._rangeInfo.range;
return this._orient === "vertical" ? this._getDateByWeeksAndDay(r, n - 1, i) : this._getDateByWeeksAndDay(n, r - 1, i);
}, t.prototype.convertToPixel = function(e, n, r) {
var i = c7(n);
return i === this ? i.dataToPoint(r) : null;
}, t.prototype.convertFromPixel = function(e, n, r) {
var i = c7(n);
return i === this ? i.pointToData(r) : null;
}, t.prototype.containPoint = function(e) {
return console.warn("Not implemented."), !1;
}, t.prototype._initRangeOption = function() {
var e = this._model.get("range"), n;
if (ue(e) && e.length === 1 && (e = e[0]), ue(e))
n = e;
else {
var r = e.toString();
if (/^\d{4}$/.test(r) && (n = [r + "-01-01", r + "-12-31"]), /^\d{4}[\/|-]\d{1,2}$/.test(r)) {
var i = this.getDateInfo(r), a = i.date;
a.setMonth(a.getMonth() + 1);
var o = this.getNextNDay(a, -1);
n = [i.formatedDate, o.formatedDate];
}
/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r) && (n = [r, r]);
}
if (!n)
return process.env.NODE_ENV !== "production" && xa("Invalid date range."), e;
var s = this._getRangeInfo(n);
return s.start.time > s.end.time && n.reverse(), n;
}, t.prototype._getRangeInfo = function(e) {
var n = [this.getDateInfo(e[0]), this.getDateInfo(e[1])], r;
n[0].time > n[1].time && (r = !0, n.reverse());
var i = Math.floor(n[1].time / UP) - Math.floor(n[0].time / UP) + 1, a = new Date(n[0].time), o = a.getDate(), s = n[1].date.getDate();
a.setDate(o + i - 1);
var l = a.getDate();
if (l !== s)
for (var u = a.getTime() - n[1].time > 0 ? 1 : -1; (l = a.getDate()) !== s && (a.getTime() - n[1].time) * u > 0; )
i -= u, a.setDate(l - u);
var c = Math.floor((i + n[0].day + 6) / 7), f = r ? -c + 1 : c - 1;
return r && n.reverse(), {
range: [n[0].formatedDate, n[1].formatedDate],
start: n[0],
end: n[1],
allDay: i,
weeks: c,
// From 0.
nthWeek: f,
fweek: n[0].day,
lweek: n[1].day
};
}, t.prototype._getDateByWeeksAndDay = function(e, n, r) {
var i = this._getRangeInfo(r);
if (e > i.weeks || e === 0 && n < i.fweek || e === i.weeks && n > i.lweek)
return null;
var a = (e - 1) * 7 - i.fweek + n, o = new Date(i.start.time);
return o.setDate(+i.start.d + a), this.getDateInfo(o);
}, t.create = function(e, n) {
var r = [];
return e.eachComponent("calendar", function(i) {
var a = new t(i);
r.push(a), i.coordinateSystem = a;
}), e.eachSeries(function(i) {
i.get("coordinateSystem") === "calendar" && (i.coordinateSystem = r[i.get("calendarIndex") || 0]);
}), r;
}, t.dimensions = ["time", "value"], t;
}()
);
function c7(t) {
var e = t.calendarModel, n = t.seriesModel, r = e ? e.coordinateSystem : n ? n.coordinateSystem : null;
return r;
}
function xHe(t) {
t.registerComponentModel(_He), t.registerComponentView(OHe), t.registerCoordinateSystem("calendar", SHe);
}
function wHe(t, e) {
var n = t.existing;
if (e.id = t.keyInfo.id, !e.type && n && (e.type = n.type), e.parentId == null) {
var r = e.parentOption;
r ? e.parentId = r.id : n && (e.parentId = n.parentId);
}
e.parentOption = null;
}
function f7(t, e) {
var n;
return k(e, function(r) {
t[r] != null && t[r] !== "auto" && (n = !0);
}), n;
}
function CHe(t, e, n) {
var r = le({}, n), i = t[e], a = n.$action || "merge";
if (a === "merge")
if (i) {
if (process.env.NODE_ENV !== "production") {
var o = n.type;
ke(!o || i.type === o, 'Please set $action: "replace" to change `type`');
}
qe(i, r, !0), cu(i, r, {
ignoreSize: !0
}), $J(n, i), kb(n, i), kb(n, i, "shape"), kb(n, i, "style"), kb(n, i, "extra"), n.clipPath = i.clipPath;
} else
t[e] = r;
else a === "replace" ? t[e] = r : a === "remove" && i && (t[e] = null);
}
var Vre = ["transition", "enterFrom", "leaveTo"], THe = Vre.concat(["enterAnimation", "updateAnimation", "leaveAnimation"]);
function kb(t, e, n) {
if (n && (!t[n] && e[n] && (t[n] = {}), t = t[n], e = e[n]), !(!t || !e))
for (var r = n ? Vre : THe, i = 0; i < r.length; i++) {
var a = r[i];
t[a] == null && e[a] != null && (t[a] = e[a]);
}
}
function PHe(t, e) {
if (t && (t.hv = e.hv = [
// Rigid body, don't care about `width`.
f7(e, ["left", "right"]),
// Rigid body, don't care about `height`.
f7(e, ["top", "bottom"])
], t.type === "group")) {
var n = t, r = e;
n.width == null && (n.width = r.width = 0), n.height == null && (n.height = r.height = 0);
}
}
var $He = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.preventAutoZ = !0, n;
}
return e.prototype.mergeOption = function(n, r) {
var i = this.option.elements;
this.option.elements = null, t.prototype.mergeOption.call(this, n, r), this.option.elements = i;
}, e.prototype.optionUpdated = function(n, r) {
var i = this.option, a = (r ? i : n).elements, o = i.elements = r ? [] : i.elements, s = [];
this._flatten(a, s, null);
var l = pK(o, s, "normalMerge"), u = this._elOptionsToUpdate = [];
k(l, function(c, f) {
var d = c.newOption;
process.env.NODE_ENV !== "production" && ke(Ie(d) || c.existing, "Empty graphic option definition"), d && (u.push(d), wHe(c, d), CHe(o, f, d), PHe(o[f], d));
}, this), i.elements = Nt(o, function(c) {
return c && delete c.$action, c != null;
});
}, e.prototype._flatten = function(n, r, i) {
k(n, function(a) {
if (a) {
i && (a.parentOption = i), r.push(a);
var o = a.children;
o && o.length && this._flatten(o, r, a), delete a.children;
}
}, this);
}, e.prototype.useElOptionsToUpdate = function() {
var n = this._elOptionsToUpdate;
return this._elOptionsToUpdate = null, n;
}, e.type = "graphic", e.defaultOption = {
elements: []
// parentId: null
}, e;
}(rt)
), d7 = {
// Reserved but not supported in graphic component.
path: null,
compoundPath: null,
// Supported in graphic component.
group: Ve,
image: lr,
text: gt
}, da = bt(), AHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function() {
this._elMap = Pe();
}, e.prototype.render = function(n, r, i) {
n !== this._lastGraphicModel && this._clear(), this._lastGraphicModel = n, this._updateElements(n), this._relocate(n, i);
}, e.prototype._updateElements = function(n) {
var r = n.useElOptionsToUpdate();
if (r) {
var i = this._elMap, a = this.group, o = n.get("z"), s = n.get("zlevel");
k(r, function(l) {
var u = Vn(l.id, null), c = u != null ? i.get(u) : null, f = Vn(l.parentId, null), d = f != null ? i.get(f) : a, h = l.type, p = l.style;
h === "text" && p && l.hv && l.hv[1] && (p.textVerticalAlign = p.textBaseline = p.verticalAlign = p.align = null);
var v = l.textContent, g = l.textConfig;
if (p && bre(p, h, !!g, !!v)) {
var m = _re(p, h, !0);
!g && m.textConfig && (g = l.textConfig = m.textConfig), !v && m.textContent && (v = m.textContent);
}
var y = EHe(l);
process.env.NODE_ENV !== "production" && c && ke(d === c.parent, "Changing parent is not supported.");
var b = l.$action || "merge", _ = b === "merge", O = b === "replace";
if (_) {
var S = !c, x = c;
S ? x = h7(u, d, l.type, i) : (x && (da(x).isNew = !1), Cre(x)), x && (X_(x, y, n, {
isInit: S
}), p7(x, l, o, s));
} else if (O) {
K_(c, l, i, n);
var C = h7(u, d, l.type, i);
C && (X_(C, y, n, {
isInit: !0
}), p7(C, l, o, s));
} else b === "remove" && (Sre(c, l), K_(c, l, i, n));
var T = i.get(u);
if (T && v)
if (_) {
var w = T.getTextContent();
w ? w.attr(v) : T.setTextContent(new gt(v));
} else O && T.setTextContent(new gt(v));
if (T) {
var P = l.clipPath;
if (P) {
var $ = P.type, A = void 0, S = !1;
if (_) {
var D = T.getClipPath();
S = !D || da(D).type !== $, A = S ? DE($) : D;
} else O && (S = !0, A = DE($));
T.setClipPath(A), X_(A, P, n, {
isInit: S
}), VO(A, P.keyframeAnimation, n);
}
var E = da(T);
T.setTextConfig(g), E.option = l, MHe(T, n, l), Op({
el: T,
componentModel: n,
itemName: T.name,
itemTooltipOption: l.tooltip
}), VO(T, l.keyframeAnimation, n);
}
});
}
}, e.prototype._relocate = function(n, r) {
for (var i = n.option.elements, a = this.group, o = this._elMap, s = r.getWidth(), l = r.getHeight(), u = ["x", "y"], c = 0; c < i.length; c++) {
var f = i[c], d = Vn(f.id, null), h = d != null ? o.get(d) : null;
if (!(!h || !h.isGroup)) {
var p = h.parent, v = p === a, g = da(h), m = da(p);
g.width = _e(g.option.width, v ? s : m.width) || 0, g.height = _e(g.option.height, v ? l : m.height) || 0;
}
}
for (var c = i.length - 1; c >= 0; c--) {
var f = i[c], d = Vn(f.id, null), h = d != null ? o.get(d) : null;
if (h) {
var p = h.parent, m = da(p), y = p === a ? {
width: s,
height: l
} : {
width: m.width,
height: m.height
}, b = {}, _ = ow(h, f, y, null, {
hv: f.hv,
boundingMode: f.bounding
}, b);
if (!da(h).isNew && _) {
for (var O = f.transition, S = {}, x = 0; x < u.length; x++) {
var C = u[x], T = b[C];
O && (af(O) || et(O, C) >= 0) ? S[C] = T : h[C] = T;
}
Ct(h, S, n, 0);
} else
h.attr(b);
}
}
}, e.prototype._clear = function() {
var n = this, r = this._elMap;
r.each(function(i) {
K_(i, da(i).option, r, n._lastGraphicModel);
}), this._elMap = Pe();
}, e.prototype.dispose = function() {
this._clear();
}, e.type = "graphic", e;
}(Xt)
);
function DE(t) {
process.env.NODE_ENV !== "production" && ke(t, "graphic type MUST be set");
var e = Ce(d7, t) ? d7[t] : Jx(t);
process.env.NODE_ENV !== "production" && ke(e, "graphic type " + t + " can not be found");
var n = new e({});
return da(n).type = t, n;
}
function h7(t, e, n, r) {
var i = DE(n);
return e.add(i), r.set(t, i), da(i).id = t, da(i).isNew = !0, i;
}
function K_(t, e, n, r) {
var i = t && t.parent;
i && (t.type === "group" && t.traverse(function(a) {
K_(a, e, n, r);
}), xw(t, e, r), n.removeKey(da(t).id));
}
function p7(t, e, n, r) {
t.isGroup || k([
["cursor", Da.prototype.cursor],
// We should not support configure z and zlevel in the element level.
// But seems we didn't limit it previously. So here still use it to avoid breaking.
["zlevel", r || 0],
["z", n || 0],
// z2 must not be null/undefined, otherwise sort error may occur.
["z2", 0]
], function(i) {
var a = i[0];
Ce(e, a) ? t[a] = We(e[a], i[1]) : t[a] == null && (t[a] = i[1]);
}), k(st(e), function(i) {
if (i.indexOf("on") === 0) {
var a = e[i];
t[i] = Me(a) ? a : null;
}
}), Ce(e, "draggable") && (t.draggable = e.draggable), e.name != null && (t.name = e.name), e.id != null && (t.id = e.id);
}
function EHe(t) {
return t = le({}, t), k(["id", "parentId", "$action", "hv", "bounding", "textContent", "clipPath"].concat(PJ), function(e) {
delete t[e];
}), t;
}
function MHe(t, e, n) {
var r = Fe(t).eventData;
!t.silent && !t.ignore && !r && (r = Fe(t).eventData = {
componentType: "graphic",
componentIndex: e.componentIndex,
name: t.name
}), r && (r.info = n.info);
}
function IHe(t) {
t.registerComponentModel($He), t.registerComponentView(AHe), t.registerPreprocessor(function(e) {
var n = e.graphic;
ue(n) ? !n[0] || !n[0].elements ? e.graphic = [{
elements: n
}] : e.graphic = [e.graphic[0]] : n && !n.elements && (e.graphic = [{
elements: [n]
}]);
});
}
var v7 = ["x", "y", "radius", "angle", "single"], DHe = ["cartesian2d", "polar", "singleAxis"];
function RHe(t) {
var e = t.get("coordinateSystem");
return et(DHe, e) >= 0;
}
function Fl(t) {
return process.env.NODE_ENV !== "production" && ke(t), t + "Axis";
}
function kHe(t, e) {
var n = Pe(), r = [], i = Pe();
t.eachComponent({
mainType: "dataZoom",
query: e
}, function(c) {
i.get(c.uid) || s(c);
});
var a;
do
a = !1, t.eachComponent("dataZoom", o);
while (a);
function o(c) {
!i.get(c.uid) && l(c) && (s(c), a = !0);
}
function s(c) {
i.set(c.uid, !0), r.push(c), u(c);
}
function l(c) {
var f = !1;
return c.eachTargetAxis(function(d, h) {
var p = n.get(d);
p && p[h] && (f = !0);
}), f;
}
function u(c) {
c.eachTargetAxis(function(f, d) {
(n.get(f) || n.set(f, []))[d] = !0;
});
}
return r;
}
function Fre(t) {
var e = t.ecModel, n = {
infoList: [],
infoMap: Pe()
};
return t.eachTargetAxis(function(r, i) {
var a = e.getComponent(Fl(r), i);
if (a) {
var o = a.getCoordSysModel();
if (o) {
var s = o.uid, l = n.infoMap.get(s);
l || (l = {
model: o,
axisModels: []
}, n.infoList.push(l), n.infoMap.set(s, l)), l.axisModels.push(a);
}
}
}), n;
}
var XP = (
/** @class */
function() {
function t() {
this.indexList = [], this.indexMap = [];
}
return t.prototype.add = function(e) {
this.indexMap[e] || (this.indexList.push(e), this.indexMap[e] = !0);
}, t;
}()
), Gm = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._autoThrottle = !0, n._noTarget = !0, n._rangePropMode = ["percent", "percent"], n;
}
return e.prototype.init = function(n, r, i) {
var a = g7(n);
this.settledOption = a, this.mergeDefaultAndTheme(n, i), this._doInit(a);
}, e.prototype.mergeOption = function(n) {
var r = g7(n);
qe(this.option, n, !0), qe(this.settledOption, r, !0), this._doInit(r);
}, e.prototype._doInit = function(n) {
var r = this.option;
this._setDefaultThrottle(n), this._updateRangeUse(n);
var i = this.settledOption;
k([["start", "startValue"], ["end", "endValue"]], function(a, o) {
this._rangePropMode[o] === "value" && (r[a[0]] = i[a[0]] = null);
}, this), this._resetTarget();
}, e.prototype._resetTarget = function() {
var n = this.get("orient", !0), r = this._targetAxisInfoMap = Pe(), i = this._fillSpecifiedTargetAxis(r);
i ? this._orient = n || this._makeAutoOrientByTargetAxis() : (this._orient = n || "horizontal", this._fillAutoTargetAxisByOrient(r, this._orient)), this._noTarget = !0, r.each(function(a) {
a.indexList.length && (this._noTarget = !1);
}, this);
}, e.prototype._fillSpecifiedTargetAxis = function(n) {
var r = !1;
return k(v7, function(i) {
var a = this.getReferringComponents(Fl(i), iRe);
if (a.specified) {
r = !0;
var o = new XP();
k(a.models, function(s) {
o.add(s.componentIndex);
}), n.set(i, o);
}
}, this), r;
}, e.prototype._fillAutoTargetAxisByOrient = function(n, r) {
var i = this.ecModel, a = !0;
if (a) {
var o = r === "vertical" ? "y" : "x", s = i.findComponents({
mainType: o + "Axis"
});
l(s, o);
}
if (a) {
var s = i.findComponents({
mainType: "singleAxis",
filter: function(c) {
return c.get("orient", !0) === r;
}
});
l(s, "single");
}
function l(u, c) {
var f = u[0];
if (f) {
var d = new XP();
if (d.add(f.componentIndex), n.set(c, d), a = !1, c === "x" || c === "y") {
var h = f.getReferringComponents("grid", Dn).models[0];
h && k(u, function(p) {
f.componentIndex !== p.componentIndex && h === p.getReferringComponents("grid", Dn).models[0] && d.add(p.componentIndex);
});
}
}
}
a && k(v7, function(u) {
if (a) {
var c = i.findComponents({
mainType: Fl(u),
filter: function(d) {
return d.get("type", !0) === "category";
}
});
if (c[0]) {
var f = new XP();
f.add(c[0].componentIndex), n.set(u, f), a = !1;
}
}
}, this);
}, e.prototype._makeAutoOrientByTargetAxis = function() {
var n;
return this.eachTargetAxis(function(r) {
!n && (n = r);
}, this), n === "y" ? "vertical" : "horizontal";
}, e.prototype._setDefaultThrottle = function(n) {
if (n.hasOwnProperty("throttle") && (this._autoThrottle = !1), this._autoThrottle) {
var r = this.ecModel.option;
this.option.throttle = r.animation && r.animationDurationUpdate > 0 ? 100 : 20;
}
}, e.prototype._updateRangeUse = function(n) {
var r = this._rangePropMode, i = this.get("rangeMode");
k([["start", "startValue"], ["end", "endValue"]], function(a, o) {
var s = n[a[0]] != null, l = n[a[1]] != null;
s && !l ? r[o] = "percent" : !s && l ? r[o] = "value" : i ? r[o] = i[o] : s && (r[o] = "percent");
});
}, e.prototype.noTarget = function() {
return this._noTarget;
}, e.prototype.getFirstTargetAxisModel = function() {
var n;
return this.eachTargetAxis(function(r, i) {
n == null && (n = this.ecModel.getComponent(Fl(r), i));
}, this), n;
}, e.prototype.eachTargetAxis = function(n, r) {
this._targetAxisInfoMap.each(function(i, a) {
k(i.indexList, function(o) {
n.call(r, a, o);
});
});
}, e.prototype.getAxisProxy = function(n, r) {
var i = this.getAxisModel(n, r);
if (i)
return i.__dzAxisProxy;
}, e.prototype.getAxisModel = function(n, r) {
process.env.NODE_ENV !== "production" && ke(n && r != null);
var i = this._targetAxisInfoMap.get(n);
if (i && i.indexMap[r])
return this.ecModel.getComponent(Fl(n), r);
}, e.prototype.setRawRange = function(n) {
var r = this.option, i = this.settledOption;
k([["start", "startValue"], ["end", "endValue"]], function(a) {
(n[a[0]] != null || n[a[1]] != null) && (r[a[0]] = i[a[0]] = n[a[0]], r[a[1]] = i[a[1]] = n[a[1]]);
}, this), this._updateRangeUse(n);
}, e.prototype.setCalculatedRange = function(n) {
var r = this.option;
k(["start", "startValue", "end", "endValue"], function(i) {
r[i] = n[i];
});
}, e.prototype.getPercentRange = function() {
var n = this.findRepresentativeAxisProxy();
if (n)
return n.getDataPercentWindow();
}, e.prototype.getValueRange = function(n, r) {
if (n == null && r == null) {
var i = this.findRepresentativeAxisProxy();
if (i)
return i.getDataValueWindow();
} else
return this.getAxisProxy(n, r).getDataValueWindow();
}, e.prototype.findRepresentativeAxisProxy = function(n) {
if (n)
return n.__dzAxisProxy;
for (var r, i = this._targetAxisInfoMap.keys(), a = 0; a < i.length; a++)
for (var o = i[a], s = this._targetAxisInfoMap.get(o), l = 0; l < s.indexList.length; l++) {
var u = this.getAxisProxy(o, s.indexList[l]);
if (u.hostedBy(this))
return u;
r || (r = u);
}
return r;
}, e.prototype.getRangePropMode = function() {
return this._rangePropMode.slice();
}, e.prototype.getOrient = function() {
return process.env.NODE_ENV !== "production" && ke(this._orient), this._orient;
}, e.type = "dataZoom", e.dependencies = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "series", "toolbox"], e.defaultOption = {
// zlevel: 0,
z: 4,
filterMode: "filter",
start: 0,
end: 100
}, e;
}(rt)
);
function g7(t) {
var e = {};
return k(["start", "end", "startValue", "endValue", "throttle"], function(n) {
t.hasOwnProperty(n) && (e[n] = t[n]);
}), e;
}
var LHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "dataZoom.select", e;
}(Gm)
), SL = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i, a) {
this.dataZoomModel = n, this.ecModel = r, this.api = i;
}, e.type = "dataZoom", e;
}(Xt)
), NHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "dataZoom.select", e;
}(SL)
), Id = k, m7 = Wi, BHe = (
/** @class */
function() {
function t(e, n, r, i) {
this._dimName = e, this._axisIndex = n, this.ecModel = i, this._dataZoomModel = r;
}
return t.prototype.hostedBy = function(e) {
return this._dataZoomModel === e;
}, t.prototype.getDataValueWindow = function() {
return this._valueWindow.slice();
}, t.prototype.getDataPercentWindow = function() {
return this._percentWindow.slice();
}, t.prototype.getTargetSeriesModels = function() {
var e = [];
return this.ecModel.eachSeries(function(n) {
if (RHe(n)) {
var r = Fl(this._dimName), i = n.getReferringComponents(r, Dn).models[0];
i && this._axisIndex === i.componentIndex && e.push(n);
}
}, this), e;
}, t.prototype.getAxisModel = function() {
return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex);
}, t.prototype.getMinMaxSpan = function() {
return Le(this._minMaxSpan);
}, t.prototype.calculateDataWindow = function(e) {
var n = this._dataExtent, r = this.getAxisModel(), i = r.axis.scale, a = this._dataZoomModel.getRangePropMode(), o = [0, 100], s = [], l = [], u;
Id(["start", "end"], function(d, h) {
var p = e[d], v = e[d + "Value"];
a[h] === "percent" ? (p == null && (p = o[h]), v = i.parse(Lt(p, o, n))) : (u = !0, v = v == null ? n[h] : i.parse(v), p = Lt(v, n, o)), l[h] = v == null || isNaN(v) ? n[h] : v, s[h] = p == null || isNaN(p) ? o[h] : p;
}), m7(l), m7(s);
var c = this._minMaxSpan;
u ? f(l, s, n, o, !1) : f(s, l, o, n, !0);
function f(d, h, p, v, g) {
var m = g ? "Span" : "ValueSpan";
Hf(0, d, p, "all", c["min" + m], c["max" + m]);
for (var y = 0; y < 2; y++)
h[y] = Lt(d[y], p, v, !0), g && (h[y] = i.parse(h[y]));
}
return {
valueWindow: l,
percentWindow: s
};
}, t.prototype.reset = function(e) {
if (e === this._dataZoomModel) {
var n = this.getTargetSeriesModels();
this._dataExtent = zHe(this, this._dimName, n), this._updateMinMaxSpan();
var r = this.calculateDataWindow(e.settledOption);
this._valueWindow = r.valueWindow, this._percentWindow = r.percentWindow, this._setAxisModel();
}
}, t.prototype.filterData = function(e, n) {
if (e !== this._dataZoomModel)
return;
var r = this._dimName, i = this.getTargetSeriesModels(), a = e.get("filterMode"), o = this._valueWindow;
if (a === "none")
return;
Id(i, function(l) {
var u = l.getData(), c = u.mapDimensionsAll(r);
if (c.length) {
if (a === "weakFilter") {
var f = u.getStore(), d = ce(c, function(h) {
return u.getDimensionIndex(h);
}, u);
u.filterSelf(function(h) {
for (var p, v, g, m = 0; m < c.length; m++) {
var y = f.get(d[m], h), b = !isNaN(y), _ = y < o[0], O = y > o[1];
if (b && !_ && !O)
return !0;
b && (g = !0), _ && (p = !0), O && (v = !0);
}
return g && p && v;
});
} else
Id(c, function(h) {
if (a === "empty")
l.setData(u = u.map(h, function(v) {
return s(v) ? v : NaN;
}));
else {
var p = {};
p[h] = o, u.selectRange(p);
}
});
Id(c, function(h) {
u.setApproximateExtent(o, h);
});
}
});
function s(l) {
return l >= o[0] && l <= o[1];
}
}, t.prototype._updateMinMaxSpan = function() {
var e = this._minMaxSpan = {}, n = this._dataZoomModel, r = this._dataExtent;
Id(["min", "max"], function(i) {
var a = n.get(i + "Span"), o = n.get(i + "ValueSpan");
o != null && (o = this.getAxisModel().axis.scale.parse(o)), o != null ? a = Lt(r[0] + o, r, [0, 100], !0) : a != null && (o = Lt(a, [0, 100], r, !0) - r[0]), e[i + "Span"] = a, e[i + "ValueSpan"] = o;
}, this);
}, t.prototype._setAxisModel = function() {
var e = this.getAxisModel(), n = this._percentWindow, r = this._valueWindow;
if (n) {
var i = PR(r, [0, 500]);
i = Math.min(i, 20);
var a = e.axis.scale.rawExtentInfo;
n[0] !== 0 && a.setDeterminedMinMax("min", +r[0].toFixed(i)), n[1] !== 100 && a.setDeterminedMinMax("max", +r[1].toFixed(i)), a.freeze();
}
}, t;
}()
);
function zHe(t, e, n) {
var r = [1 / 0, -1 / 0];
Id(n, function(o) {
r5e(r, o.getData(), e);
});
var i = t.getAxisModel(), a = rte(i.axis.scale, i, r).calculate();
return [a.min, a.max];
}
var VHe = {
// `dataZoomProcessor` will only be performed in needed series. Consider if
// there is a line series and a pie series, it is better not to update the
// line series if only pie series is needed to be updated.
getTargetSeries: function(t) {
function e(i) {
t.eachComponent("dataZoom", function(a) {
a.eachTargetAxis(function(o, s) {
var l = t.getComponent(Fl(o), s);
i(o, s, l, a);
});
});
}
e(function(i, a, o, s) {
o.__dzAxisProxy = null;
});
var n = [];
e(function(i, a, o, s) {
o.__dzAxisProxy || (o.__dzAxisProxy = new BHe(i, a, s, t), n.push(o.__dzAxisProxy));
});
var r = Pe();
return k(n, function(i) {
k(i.getTargetSeriesModels(), function(a) {
r.set(a.uid, a);
});
}), r;
},
// Consider appendData, where filter should be performed. Because data process is
// in block mode currently, it is not need to worry about that the overallProgress
// execute every frame.
overallReset: function(t, e) {
t.eachComponent("dataZoom", function(n) {
n.eachTargetAxis(function(r, i) {
n.getAxisProxy(r, i).reset(n);
}), n.eachTargetAxis(function(r, i) {
n.getAxisProxy(r, i).filterData(n, e);
});
}), t.eachComponent("dataZoom", function(n) {
var r = n.findRepresentativeAxisProxy();
if (r) {
var i = r.getDataPercentWindow(), a = r.getDataValueWindow();
n.setCalculatedRange({
start: i[0],
end: i[1],
startValue: a[0],
endValue: a[1]
});
}
});
}
};
function FHe(t) {
t.registerAction("dataZoom", function(e, n) {
var r = kHe(n, e);
k(r, function(i) {
i.setRawRange({
start: e.start,
end: e.end,
startValue: e.startValue,
endValue: e.endValue
});
});
});
}
var y7 = !1;
function xL(t) {
y7 || (y7 = !0, t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, VHe), FHe(t), t.registerSubTypeDefaulter("dataZoom", function() {
return "slider";
}));
}
function WHe(t) {
t.registerComponentModel(LHe), t.registerComponentView(NHe), xL(t);
}
var ga = (
/** @class */
/* @__PURE__ */ function() {
function t() {
}
return t;
}()
), Wre = {};
function Dd(t, e) {
Wre[t] = e;
}
function Qre(t) {
return Wre[t];
}
var QHe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.optionUpdated = function() {
t.prototype.optionUpdated.apply(this, arguments);
var n = this.ecModel;
k(this.option.feature, function(r, i) {
var a = Qre(i);
a && (a.getDefaultOption && (a.defaultOption = a.getDefaultOption(n)), qe(r, a.defaultOption));
});
}, e.type = "toolbox", e.layoutMode = {
type: "box",
ignoreSize: !0
}, e.defaultOption = {
show: !0,
z: 6,
// zlevel: 0,
orient: "horizontal",
left: "right",
top: "top",
// right
// bottom
backgroundColor: "transparent",
borderColor: "#ccc",
borderRadius: 0,
borderWidth: 0,
padding: 5,
itemSize: 15,
itemGap: 8,
showTitle: !0,
iconStyle: {
borderColor: "#666",
color: "none"
},
emphasis: {
iconStyle: {
borderColor: "#3E98C5"
}
},
// textStyle: {},
// feature
tooltip: {
show: !1,
position: "bottom"
}
}, e;
}(rt)
);
function HHe(t, e, n) {
var r = e.getBoxLayoutParams(), i = e.get("padding"), a = {
width: n.getWidth(),
height: n.getHeight()
}, o = Rn(r, a, i);
tf(e.get("orient"), t, e.get("itemGap"), o.width, o.height), ow(t, r, a, i);
}
function Hre(t, e) {
var n = zf(e.get("padding")), r = e.getItemStyle(["color", "opacity"]);
return r.fill = e.get("backgroundColor"), t = new mt({
shape: {
x: t.x - n[3],
y: t.y - n[0],
width: t.width + n[1] + n[3],
height: t.height + n[0] + n[2],
r: e.get("borderRadius")
},
style: r,
silent: !0,
z2: -1
}), t;
}
var GHe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.render = function(n, r, i, a) {
var o = this.group;
if (o.removeAll(), !n.get("show"))
return;
var s = +n.get("itemSize"), l = n.get("orient") === "vertical", u = n.get("feature") || {}, c = this._features || (this._features = {}), f = [];
k(u, function(p, v) {
f.push(v);
}), new Xs(this._featureNames || [], f).add(d).update(d).remove(Ue(d, null)).execute(), this._featureNames = f;
function d(p, v) {
var g = f[p], m = f[v], y = u[g], b = new Wt(y, n, n.ecModel), _;
if (a && a.newTitle != null && a.featureName === g && (y.title = a.newTitle), g && !m) {
if (jHe(g))
_ = {
onclick: b.option.onclick,
featureName: g
};
else {
var O = Qre(g);
if (!O)
return;
_ = new O();
}
c[g] = _;
} else if (_ = c[m], !_)
return;
_.uid = xp("toolbox-feature"), _.model = b, _.ecModel = r, _.api = i;
var S = _ instanceof ga;
if (!g && m) {
S && _.dispose && _.dispose(r, i);
return;
}
if (!b.get("show") || S && _.unusable) {
S && _.remove && _.remove(r, i);
return;
}
h(b, _, g), b.setIconStatus = function(x, C) {
var T = this.option, w = this.iconPaths;
T.iconStatus = T.iconStatus || {}, T.iconStatus[x] = C, w[x] && (C === "emphasis" ? Zs : Us)(w[x]);
}, _ instanceof ga && _.render && _.render(b, r, i, a);
}
function h(p, v, g) {
var m = p.getModel("iconStyle"), y = p.getModel(["emphasis", "iconStyle"]), b = v instanceof ga && v.getIcons ? v.getIcons() : p.get("icon"), _ = p.get("title") || {}, O, S;
Oe(b) ? (O = {}, O[g] = b) : O = b, Oe(_) ? (S = {}, S[g] = _) : S = _;
var x = p.iconPaths = {};
k(O, function(C, T) {
var w = _p(C, {}, {
x: -s / 2,
y: -s / 2,
width: s,
height: s
});
w.setStyle(m.getItemStyle());
var P = w.ensureState("emphasis");
P.style = y.getItemStyle();
var $ = new gt({
style: {
text: S[T],
align: y.get("textAlign"),
borderRadius: y.get("textBorderRadius"),
padding: y.get("textPadding"),
fill: null,
font: jR({
fontStyle: y.get("textFontStyle"),
fontFamily: y.get("textFontFamily"),
fontSize: y.get("textFontSize"),
fontWeight: y.get("textFontWeight")
}, r)
},
ignore: !0
});
w.setTextContent($), Op({
el: w,
componentModel: n,
itemName: T,
formatterParamsExtra: {
title: S[T]
}
}), w.__title = S[T], w.on("mouseover", function() {
var A = y.getItemStyle(), D = l ? n.get("right") == null && n.get("left") !== "right" ? "right" : "left" : n.get("bottom") == null && n.get("top") !== "bottom" ? "bottom" : "top";
$.setStyle({
fill: y.get("textFill") || A.fill || A.stroke || "#000",
backgroundColor: y.get("textBackgroundColor")
}), w.setTextConfig({
position: y.get("textPosition") || D
}), $.ignore = !n.get("showTitle"), i.enterEmphasis(this);
}).on("mouseout", function() {
p.get(["iconStatus", T]) !== "emphasis" && i.leaveEmphasis(this), $.hide();
}), (p.get(["iconStatus", T]) === "emphasis" ? Zs : Us)(w), o.add(w), w.on("click", xe(v.onclick, v, r, i, T)), x[T] = w;
});
}
HHe(o, n, i), o.add(Hre(o.getBoundingRect(), n)), l || o.eachChild(function(p) {
var v = p.__title, g = p.ensureState("emphasis"), m = g.textConfig || (g.textConfig = {}), y = p.getTextContent(), b = y && y.ensureState("emphasis");
if (b && !Me(b) && v) {
var _ = b.style || (b.style = {}), O = L0(v, gt.makeFont(_)), S = p.x + o.x, x = p.y + o.y + s, C = !1;
x + O.height > i.getHeight() && (m.position = "top", C = !0);
var T = C ? -5 - O.height : s + 10;
S + O.width / 2 > i.getWidth() ? (m.position = ["100%", T], _.align = "right") : S - O.width / 2 < 0 && (m.position = [0, T], _.align = "left");
}
});
}, e.prototype.updateView = function(n, r, i, a) {
k(this._features, function(o) {
o instanceof ga && o.updateView && o.updateView(o.model, r, i, a);
});
}, e.prototype.remove = function(n, r) {
k(this._features, function(i) {
i instanceof ga && i.remove && i.remove(n, r);
}), this.group.removeAll();
}, e.prototype.dispose = function(n, r) {
k(this._features, function(i) {
i instanceof ga && i.dispose && i.dispose(n, r);
});
}, e.type = "toolbox", e;
}(Xt)
);
function jHe(t) {
return t.indexOf("my") === 0;
}
var ZHe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.onclick = function(n, r) {
var i = this.model, a = i.get("name") || n.get("title.0.text") || "echarts", o = r.getZr().painter.getType() === "svg", s = o ? "svg" : i.get("type", !0) || "png", l = r.getConnectedDataURL({
type: s,
backgroundColor: i.get("backgroundColor", !0) || n.get("backgroundColor") || "#fff",
connectedBackgroundColor: i.get("connectedBackgroundColor"),
excludeComponents: i.get("excludeComponents"),
pixelRatio: i.get("pixelRatio")
}), u = vt.browser;
if (typeof MouseEvent == "function" && (u.newEdge || !u.ie && !u.edge)) {
var c = document.createElement("a");
c.download = a + "." + s, c.target = "_blank", c.href = l;
var f = new MouseEvent("click", {
// some micro front-end framework, window maybe is a Proxy
view: document.defaultView,
bubbles: !0,
cancelable: !1
});
c.dispatchEvent(f);
} else if (window.navigator.msSaveOrOpenBlob || o) {
var d = l.split(","), h = d[0].indexOf("base64") > -1, p = o ? decodeURIComponent(d[1]) : d[1];
h && (p = window.atob(p));
var v = a + "." + s;
if (window.navigator.msSaveOrOpenBlob) {
for (var g = p.length, m = new Uint8Array(g); g--; )
m[g] = p.charCodeAt(g);
var y = new Blob([m]);
window.navigator.msSaveOrOpenBlob(y, v);
} else {
var b = document.createElement("iframe");
document.body.appendChild(b);
var _ = b.contentWindow, O = _.document;
O.open("image/svg+xml", "replace"), O.write(p), O.close(), _.focus(), O.execCommand("SaveAs", !0, v), document.body.removeChild(b);
}
} else {
var S = i.get("lang"), x = '
', C = window.open();
C.document.write(x), C.document.title = a;
}
}, e.getDefaultOption = function(n) {
var r = {
show: !0,
icon: "M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",
title: n.getLocaleModel().get(["toolbox", "saveAsImage", "title"]),
type: "png",
// Default use option.backgroundColor
// backgroundColor: '#fff',
connectedBackgroundColor: "#fff",
name: "",
excludeComponents: ["toolbox"],
// use current pixel ratio of device by default
// pixelRatio: 1,
lang: n.getLocaleModel().get(["toolbox", "saveAsImage", "lang"])
};
return r;
}, e;
}(ga)
), b7 = "__ec_magicType_stack__", UHe = [["line", "bar"], ["stack"]], XHe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.getIcons = function() {
var n = this.model, r = n.get("icon"), i = {};
return k(n.get("type"), function(a) {
r[a] && (i[a] = r[a]);
}), i;
}, e.getDefaultOption = function(n) {
var r = {
show: !0,
type: [],
// Icon group
icon: {
line: "M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",
bar: "M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",
// eslint-disable-next-line
stack: "M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"
// jshint ignore:line
},
// `line`, `bar`, `stack`, `tiled`
title: n.getLocaleModel().get(["toolbox", "magicType", "title"]),
option: {},
seriesIndex: {}
};
return r;
}, e.prototype.onclick = function(n, r, i) {
var a = this.model, o = a.get(["seriesIndex", i]);
if (_7[i]) {
var s = {
series: []
}, l = function(f) {
var d = f.subType, h = f.id, p = _7[i](d, h, f, a);
p && (Re(p, f.option), s.series.push(p));
var v = f.coordinateSystem;
if (v && v.type === "cartesian2d" && (i === "line" || i === "bar")) {
var g = v.getAxesByScale("ordinal")[0];
if (g) {
var m = g.dim, y = m + "Axis", b = f.getReferringComponents(y, Dn).models[0], _ = b.componentIndex;
s[y] = s[y] || [];
for (var O = 0; O <= _; O++)
s[y][_] = s[y][_] || {};
s[y][_].boundaryGap = i === "bar";
}
}
};
k(UHe, function(f) {
et(f, i) >= 0 && k(f, function(d) {
a.setIconStatus(d, "normal");
});
}), a.setIconStatus(i, "emphasis"), n.eachComponent({
mainType: "series",
query: o == null ? null : {
seriesIndex: o
}
}, l);
var u, c = i;
i === "stack" && (u = qe({
stack: a.option.title.tiled,
tiled: a.option.title.stack
}, a.option.title), a.get(["iconStatus", i]) !== "emphasis" && (c = "tiled")), r.dispatchAction({
type: "changeMagicType",
currentType: c,
newOption: s,
newTitle: u,
featureName: "magicType"
});
}
}, e;
}(ga)
), _7 = {
line: function(t, e, n, r) {
if (t === "bar")
return qe({
id: e,
type: "line",
// Preserve data related option
data: n.get("data"),
stack: n.get("stack"),
markPoint: n.get("markPoint"),
markLine: n.get("markLine")
}, r.get(["option", "line"]) || {}, !0);
},
bar: function(t, e, n, r) {
if (t === "line")
return qe({
id: e,
type: "bar",
// Preserve data related option
data: n.get("data"),
stack: n.get("stack"),
markPoint: n.get("markPoint"),
markLine: n.get("markLine")
}, r.get(["option", "bar"]) || {}, !0);
},
stack: function(t, e, n, r) {
var i = n.get("stack") === b7;
if (t === "line" || t === "bar")
return r.setIconStatus("stack", i ? "normal" : "emphasis"), qe({
id: e,
stack: i ? "" : b7
}, r.get(["option", "stack"]) || {}, !0);
}
};
go({
type: "changeMagicType",
event: "magicTypeChanged",
update: "prepareAndUpdate"
}, function(t, e) {
e.mergeOption(t.newOption);
});
var ww = new Array(60).join("-"), qh = " ";
function YHe(t) {
var e = {}, n = [], r = [];
return t.eachRawSeries(function(i) {
var a = i.coordinateSystem;
if (a && (a.type === "cartesian2d" || a.type === "polar")) {
var o = a.getBaseAxis();
if (o.type === "category") {
var s = o.dim + "_" + o.index;
e[s] || (e[s] = {
categoryAxis: o,
valueAxis: a.getOtherAxis(o),
series: []
}, r.push({
axisDim: o.dim,
axisIndex: o.index
})), e[s].series.push(i);
} else
n.push(i);
} else
n.push(i);
}), {
seriesGroupByCategoryAxis: e,
other: n,
meta: r
};
}
function qHe(t) {
var e = [];
return k(t, function(n, r) {
var i = n.categoryAxis, a = n.valueAxis, o = a.dim, s = [" "].concat(ce(n.series, function(h) {
return h.name;
})), l = [i.model.getCategories()];
k(n.series, function(h) {
var p = h.getRawData();
l.push(h.getRawData().mapArray(p.mapDimension(o), function(v) {
return v;
}));
});
for (var u = [s.join(qh)], c = 0; c < l[0].length; c++) {
for (var f = [], d = 0; d < l.length; d++)
f.push(l[d][c]);
u.push(f.join(qh));
}
e.push(u.join(`
`));
}), e.join(`
` + ww + `
`);
}
function KHe(t) {
return ce(t, function(e) {
var n = e.getRawData(), r = [e.name], i = [];
return n.each(n.dimensions, function() {
for (var a = arguments.length, o = arguments[a - 1], s = n.getName(o), l = 0; l < a - 1; l++)
i[l] = arguments[l];
r.push((s ? s + qh : "") + i.join(qh));
}), r.join(`
`);
}).join(`
` + ww + `
`);
}
function JHe(t) {
var e = YHe(t);
return {
value: Nt([qHe(e.seriesGroupByCategoryAxis), KHe(e.other)], function(n) {
return !!n.replace(/[\n\t\s]/g, "");
}).join(`
` + ww + `
`),
meta: e.meta
};
}
function HO(t) {
return t.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
}
function eGe(t) {
var e = t.slice(0, t.indexOf(`
`));
if (e.indexOf(qh) >= 0)
return !0;
}
var RE = new RegExp("[" + qh + "]+", "g");
function tGe(t) {
for (var e = t.split(/\n+/g), n = HO(e.shift()).split(RE), r = [], i = ce(n, function(l) {
return {
name: l,
data: []
};
}), a = 0; a < e.length; a++) {
var o = HO(e[a]).split(RE);
r.push(o.shift());
for (var s = 0; s < o.length; s++)
i[s] && (i[s].data[a] = o[s]);
}
return {
series: i,
categories: r
};
}
function nGe(t) {
for (var e = t.split(/\n+/g), n = HO(e.shift()), r = [], i = 0; i < e.length; i++) {
var a = HO(e[i]);
if (a) {
var o = a.split(RE), s = "", l = void 0, u = !1;
isNaN(o[0]) ? (u = !0, s = o[0], o = o.slice(1), r[i] = {
name: s,
value: []
}, l = r[i].value) : l = r[i] = [];
for (var c = 0; c < o.length; c++)
l.push(+o[c]);
l.length === 1 && (u ? r[i].value = l[0] : r[i] = l[0]);
}
}
return {
name: n,
data: r
};
}
function rGe(t, e) {
var n = t.split(new RegExp(`
*` + ww + `
*`, "g")), r = {
series: []
};
return k(n, function(i, a) {
if (eGe(i)) {
var o = tGe(i), s = e[a], l = s.axisDim + "Axis";
s && (r[l] = r[l] || [], r[l][s.axisIndex] = {
data: o.categories
}, r.series = r.series.concat(o.series));
} else {
var o = nGe(i);
r.series.push(o);
}
}), r;
}
var iGe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.onclick = function(n, r) {
setTimeout(function() {
r.dispatchAction({
type: "hideTip"
});
});
var i = r.getDom(), a = this.model;
this._dom && i.removeChild(this._dom);
var o = document.createElement("div");
o.style.cssText = "position:absolute;top:0;bottom:0;left:0;right:0;padding:5px", o.style.backgroundColor = a.get("backgroundColor") || "#fff";
var s = document.createElement("h4"), l = a.get("lang") || [];
s.innerHTML = l[0] || a.get("title"), s.style.cssText = "margin:10px 20px", s.style.color = a.get("textColor");
var u = document.createElement("div"), c = document.createElement("textarea");
u.style.cssText = "overflow:auto";
var f = a.get("optionToContent"), d = a.get("contentToOption"), h = JHe(n);
if (Me(f)) {
var p = f(r.getOption());
Oe(p) ? u.innerHTML = p : au(p) && u.appendChild(p);
} else {
c.readOnly = a.get("readOnly");
var v = c.style;
v.cssText = "display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none", v.color = a.get("textColor"), v.borderColor = a.get("textareaBorderColor"), v.backgroundColor = a.get("textareaColor"), c.value = h.value, u.appendChild(c);
}
var g = h.meta, m = document.createElement("div");
m.style.cssText = "position:absolute;bottom:5px;left:0;right:0";
var y = "float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px", b = document.createElement("div"), _ = document.createElement("div");
y += ";background-color:" + a.get("buttonColor"), y += ";color:" + a.get("buttonTextColor");
var O = this;
function S() {
i.removeChild(o), O._dom = null;
}
fA(b, "click", S), fA(_, "click", function() {
if (d == null && f != null || d != null && f == null) {
process.env.NODE_ENV !== "production" && dn("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."), S();
return;
}
var x;
try {
Me(d) ? x = d(u, r.getOption()) : x = rGe(c.value, g);
} catch (C) {
throw S(), new Error("Data view format error " + C);
}
x && r.dispatchAction({
type: "changeDataView",
newOption: x
}), S();
}), b.innerHTML = l[1], _.innerHTML = l[2], _.style.cssText = b.style.cssText = y, !a.get("readOnly") && m.appendChild(_), m.appendChild(b), o.appendChild(s), o.appendChild(u), o.appendChild(m), u.style.height = i.clientHeight - 80 + "px", i.appendChild(o), this._dom = o;
}, e.prototype.remove = function(n, r) {
this._dom && r.getDom().removeChild(this._dom);
}, e.prototype.dispose = function(n, r) {
this.remove(n, r);
}, e.getDefaultOption = function(n) {
var r = {
show: !0,
readOnly: !1,
optionToContent: null,
contentToOption: null,
// eslint-disable-next-line
icon: "M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",
title: n.getLocaleModel().get(["toolbox", "dataView", "title"]),
lang: n.getLocaleModel().get(["toolbox", "dataView", "lang"]),
backgroundColor: "#fff",
textColor: "#000",
textareaColor: "#fff",
textareaBorderColor: "#333",
buttonColor: "#c23531",
buttonTextColor: "#fff"
};
return r;
}, e;
}(ga)
);
function aGe(t, e) {
return ce(t, function(n, r) {
var i = e && e[r];
if (Ie(i) && !ue(i)) {
var a = Ie(n) && !ue(n);
a || (n = {
value: n
});
var o = i.name != null && n.name == null;
return n = Re(n, i), o && delete n.name, n;
} else
return n;
});
}
go({
type: "changeDataView",
event: "dataViewChanged",
update: "prepareAndUpdate"
}, function(t, e) {
var n = [];
k(t.newOption.series, function(r) {
var i = e.getSeriesByName(r.name)[0];
if (!i)
n.push(le({
// Default is scatter
type: "scatter"
}, r));
else {
var a = i.get("data");
n.push({
name: r.name,
data: aGe(r.data, a)
});
}
}), e.mergeOption(Re({
series: n
}, t.newOption));
});
var Gre = k, jre = bt();
function oGe(t, e) {
var n = wL(t);
Gre(e, function(r, i) {
for (var a = n.length - 1; a >= 0; a--) {
var o = n[a];
if (o[i])
break;
}
if (a < 0) {
var s = t.queryComponents({
mainType: "dataZoom",
subType: "select",
id: i
})[0];
if (s) {
var l = s.getPercentRange();
n[0][i] = {
dataZoomId: i,
start: l[0],
end: l[1]
};
}
}
}), n.push(e);
}
function sGe(t) {
var e = wL(t), n = e[e.length - 1];
e.length > 1 && e.pop();
var r = {};
return Gre(n, function(i, a) {
for (var o = e.length - 1; o >= 0; o--)
if (i = e[o][a], i) {
r[a] = i;
break;
}
}), r;
}
function lGe(t) {
jre(t).snapshots = null;
}
function uGe(t) {
return wL(t).length;
}
function wL(t) {
var e = jre(t);
return e.snapshots || (e.snapshots = [{}]), e.snapshots;
}
var cGe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.onclick = function(n, r) {
lGe(n), r.dispatchAction({
type: "restore",
from: this.uid
});
}, e.getDefaultOption = function(n) {
var r = {
show: !0,
// eslint-disable-next-line
icon: "M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",
title: n.getLocaleModel().get(["toolbox", "restore", "title"])
};
return r;
}, e;
}(ga)
);
go({
type: "restore",
event: "restore",
update: "prepareAndUpdate"
}, function(t, e) {
e.resetOption("recreate");
});
var fGe = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"], CL = (
/** @class */
function() {
function t(e, n, r) {
var i = this;
this._targetInfoList = [];
var a = O7(n, e);
k(dGe, function(o, s) {
(!r || !r.include || et(r.include, s) >= 0) && o(a, i._targetInfoList);
});
}
return t.prototype.setOutputRanges = function(e, n) {
return this.matchOutputRanges(e, n, function(r, i, a) {
if ((r.coordRanges || (r.coordRanges = [])).push(i), !r.coordRange) {
r.coordRange = i;
var o = YP[r.brushType](0, a, i);
r.__rangeOffset = {
offset: C7[r.brushType](o.values, r.range, [1, 1]),
xyMinMax: o.xyMinMax
};
}
}), e;
}, t.prototype.matchOutputRanges = function(e, n, r) {
k(e, function(i) {
var a = this.findTargetInfo(i, n);
a && a !== !0 && k(a.coordSyses, function(o) {
var s = YP[i.brushType](1, o, i.range, !0);
r(i, s.values, o, n);
});
}, this);
}, t.prototype.setInputRanges = function(e, n) {
k(e, function(r) {
var i = this.findTargetInfo(r, n);
if (process.env.NODE_ENV !== "production" && (ke(!i || i === !0 || r.coordRange, "coordRange must be specified when coord index specified."), ke(!i || i !== !0 || r.range, "range must be specified in global brush.")), r.range = r.range || [], i && i !== !0) {
r.panelId = i.panelId;
var a = YP[r.brushType](0, i.coordSys, r.coordRange), o = r.__rangeOffset;
r.range = o ? C7[r.brushType](a.values, o.offset, hGe(a.xyMinMax, o.xyMinMax)) : a.values;
}
}, this);
}, t.prototype.makePanelOpts = function(e, n) {
return ce(this._targetInfoList, function(r) {
var i = r.getPanelRect();
return {
panelId: r.panelId,
defaultBrushType: n ? n(r) : null,
clipPath: Jne(i),
isTargetByCursor: tre(i, e, r.coordSysModel),
getLinearBrushOtherExtent: ere(i)
};
});
}, t.prototype.controlSeries = function(e, n, r) {
var i = this.findTargetInfo(e, r);
return i === !0 || i && et(i.coordSyses, n.coordinateSystem) >= 0;
}, t.prototype.findTargetInfo = function(e, n) {
for (var r = this._targetInfoList, i = O7(n, e), a = 0; a < r.length; a++) {
var o = r[a], s = e.panelId;
if (s) {
if (o.panelId === s)
return o;
} else
for (var l = 0; l < S7.length; l++)
if (S7[l](i, o))
return o;
}
return !0;
}, t;
}()
);
function kE(t) {
return t[0] > t[1] && t.reverse(), t;
}
function O7(t, e) {
return Dg(t, e, {
includeMainTypes: fGe
});
}
var dGe = {
grid: function(t, e) {
var n = t.xAxisModels, r = t.yAxisModels, i = t.gridModels, a = Pe(), o = {}, s = {};
!n && !r && !i || (k(n, function(l) {
var u = l.axis.grid.model;
a.set(u.id, u), o[u.id] = !0;
}), k(r, function(l) {
var u = l.axis.grid.model;
a.set(u.id, u), s[u.id] = !0;
}), k(i, function(l) {
a.set(l.id, l), o[l.id] = !0, s[l.id] = !0;
}), a.each(function(l) {
var u = l.coordinateSystem, c = [];
k(u.getCartesians(), function(f, d) {
(et(n, f.getAxis("x").model) >= 0 || et(r, f.getAxis("y").model) >= 0) && c.push(f);
}), e.push({
panelId: "grid--" + l.id,
gridModel: l,
coordSysModel: l,
// Use the first one as the representitive coordSys.
coordSys: c[0],
coordSyses: c,
getPanelRect: x7.grid,
xAxisDeclared: o[l.id],
yAxisDeclared: s[l.id]
});
}));
},
geo: function(t, e) {
k(t.geoModels, function(n) {
var r = n.coordinateSystem;
e.push({
panelId: "geo--" + n.id,
geoModel: n,
coordSysModel: n,
coordSys: r,
coordSyses: [r],
getPanelRect: x7.geo
});
});
}
}, S7 = [
// grid
function(t, e) {
var n = t.xAxisModel, r = t.yAxisModel, i = t.gridModel;
return !i && n && (i = n.axis.grid.model), !i && r && (i = r.axis.grid.model), i && i === e.gridModel;
},
// geo
function(t, e) {
var n = t.geoModel;
return n && n === e.geoModel;
}
], x7 = {
grid: function() {
return this.coordSys.master.getRect().clone();
},
geo: function() {
var t = this.coordSys, e = t.getBoundingRect().clone();
return e.applyTransform(ql(t)), e;
}
}, YP = {
lineX: Ue(w7, 0),
lineY: Ue(w7, 1),
rect: function(t, e, n, r) {
var i = t ? e.pointToData([n[0][0], n[1][0]], r) : e.dataToPoint([n[0][0], n[1][0]], r), a = t ? e.pointToData([n[0][1], n[1][1]], r) : e.dataToPoint([n[0][1], n[1][1]], r), o = [kE([i[0], a[0]]), kE([i[1], a[1]])];
return {
values: o,
xyMinMax: o
};
},
polygon: function(t, e, n, r) {
var i = [[1 / 0, -1 / 0], [1 / 0, -1 / 0]], a = ce(n, function(o) {
var s = t ? e.pointToData(o, r) : e.dataToPoint(o, r);
return i[0][0] = Math.min(i[0][0], s[0]), i[1][0] = Math.min(i[1][0], s[1]), i[0][1] = Math.max(i[0][1], s[0]), i[1][1] = Math.max(i[1][1], s[1]), s;
});
return {
values: a,
xyMinMax: i
};
}
};
function w7(t, e, n, r) {
process.env.NODE_ENV !== "production" && ke(n.type === "cartesian2d", "lineX/lineY brush is available only in cartesian2d.");
var i = n.getAxis(["x", "y"][t]), a = kE(ce([0, 1], function(s) {
return e ? i.coordToData(i.toLocalCoord(r[s]), !0) : i.toGlobalCoord(i.dataToCoord(r[s]));
})), o = [];
return o[t] = a, o[1 - t] = [NaN, NaN], {
values: a,
xyMinMax: o
};
}
var C7 = {
lineX: Ue(T7, 0),
lineY: Ue(T7, 1),
rect: function(t, e, n) {
return [[t[0][0] - n[0] * e[0][0], t[0][1] - n[0] * e[0][1]], [t[1][0] - n[1] * e[1][0], t[1][1] - n[1] * e[1][1]]];
},
polygon: function(t, e, n) {
return ce(t, function(r, i) {
return [r[0] - n[0] * e[i][0], r[1] - n[1] * e[i][1]];
});
}
};
function T7(t, e, n, r) {
return [e[0] - r[t] * n[0], e[1] - r[t] * n[1]];
}
function hGe(t, e) {
var n = P7(t), r = P7(e), i = [n[0] / r[0], n[1] / r[1]];
return isNaN(i[0]) && (i[0] = 1), isNaN(i[1]) && (i[1] = 1), i;
}
function P7(t) {
return t ? [t[0][1] - t[0][0], t[1][1] - t[1][0]] : [NaN, NaN];
}
var LE = k, pGe = JDe("toolbox-dataZoom_"), vGe = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.render = function(n, r, i, a) {
this._brushController || (this._brushController = new eL(i.getZr()), this._brushController.on("brush", xe(this._onBrush, this)).mount()), yGe(n, r, this, a, i), mGe(n, r);
}, e.prototype.onclick = function(n, r, i) {
gGe[i].call(this);
}, e.prototype.remove = function(n, r) {
this._brushController && this._brushController.unmount();
}, e.prototype.dispose = function(n, r) {
this._brushController && this._brushController.dispose();
}, e.prototype._onBrush = function(n) {
var r = n.areas;
if (!n.isEnd || !r.length)
return;
var i = {}, a = this.ecModel;
this._brushController.updateCovers([]);
var o = new CL(TL(this.model), a, {
include: ["grid"]
});
o.matchOutputRanges(r, a, function(u, c, f) {
if (f.type === "cartesian2d") {
var d = u.brushType;
d === "rect" ? (s("x", f, c[0]), s("y", f, c[1])) : s({
lineX: "x",
lineY: "y"
}[d], f, c);
}
}), oGe(a, i), this._dispatchZoomAction(i);
function s(u, c, f) {
var d = c.getAxis(u), h = d.model, p = l(u, h, a), v = p.findRepresentativeAxisProxy(h).getMinMaxSpan();
(v.minValueSpan != null || v.maxValueSpan != null) && (f = Hf(0, f.slice(), d.scale.getExtent(), 0, v.minValueSpan, v.maxValueSpan)), p && (i[p.id] = {
dataZoomId: p.id,
startValue: f[0],
endValue: f[1]
});
}
function l(u, c, f) {
var d;
return f.eachComponent({
mainType: "dataZoom",
subType: "select"
}, function(h) {
var p = h.getAxisModel(u, c.componentIndex);
p && (d = h);
}), d;
}
}, e.prototype._dispatchZoomAction = function(n) {
var r = [];
LE(n, function(i, a) {
r.push(Le(i));
}), r.length && this.api.dispatchAction({
type: "dataZoom",
from: this.uid,
batch: r
});
}, e.getDefaultOption = function(n) {
var r = {
show: !0,
filterMode: "filter",
// Icon group
icon: {
zoom: "M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",
back: "M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"
},
// `zoom`, `back`
title: n.getLocaleModel().get(["toolbox", "dataZoom", "title"]),
brushStyle: {
borderWidth: 0,
color: "rgba(210,219,238,0.2)"
}
};
return r;
}, e;
}(ga)
), gGe = {
zoom: function() {
var t = !this._isZoomActive;
this.api.dispatchAction({
type: "takeGlobalCursor",
key: "dataZoomSelect",
dataZoomSelectActive: t
});
},
back: function() {
this._dispatchZoomAction(sGe(this.ecModel));
}
};
function TL(t) {
var e = {
xAxisIndex: t.get("xAxisIndex", !0),
yAxisIndex: t.get("yAxisIndex", !0),
xAxisId: t.get("xAxisId", !0),
yAxisId: t.get("yAxisId", !0)
};
return e.xAxisIndex == null && e.xAxisId == null && (e.xAxisIndex = "all"), e.yAxisIndex == null && e.yAxisId == null && (e.yAxisIndex = "all"), e;
}
function mGe(t, e) {
t.setIconStatus("back", uGe(e) > 1 ? "emphasis" : "normal");
}
function yGe(t, e, n, r, i) {
var a = n._isZoomActive;
r && r.type === "takeGlobalCursor" && (a = r.key === "dataZoomSelect" ? r.dataZoomSelectActive : !1), n._isZoomActive = a, t.setIconStatus("zoom", a ? "emphasis" : "normal");
var o = new CL(TL(t), e, {
include: ["grid"]
}), s = o.makePanelOpts(i, function(l) {
return l.xAxisDeclared && !l.yAxisDeclared ? "lineX" : !l.xAxisDeclared && l.yAxisDeclared ? "lineY" : "rect";
});
n._brushController.setPanels(s).enableBrush(a && s.length ? {
brushType: "auto",
brushStyle: t.getModel("brushStyle").getItemStyle()
} : !1);
}
PLe("dataZoom", function(t) {
var e = t.getComponent("toolbox", 0), n = ["feature", "dataZoom"];
if (!e || e.get(n) == null)
return;
var r = e.getModel(n), i = [], a = TL(r), o = Dg(t, a);
LE(o.xAxisModels, function(l) {
return s(l, "xAxis", "xAxisIndex");
}), LE(o.yAxisModels, function(l) {
return s(l, "yAxis", "yAxisIndex");
});
function s(l, u, c) {
var f = l.componentIndex, d = {
type: "select",
$fromToolbox: !0,
// Default to be filter
filterMode: r.get("filterMode", !0) || "filter",
// Id for merge mapping.
id: pGe + u + f
};
d[c] = f, i.push(d);
}
return i;
});
function bGe(t) {
t.registerComponentModel(QHe), t.registerComponentView(GHe), Dd("saveAsImage", ZHe), Dd("magicType", XHe), Dd("dataView", iGe), Dd("dataZoom", vGe), Dd("restore", cGe), at(WHe);
}
var _Ge = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "tooltip", e.dependencies = ["axisPointer"], e.defaultOption = {
// zlevel: 0,
z: 60,
show: !0,
// tooltip main content
showContent: !0,
// 'trigger' only works on coordinate system.
// 'item' | 'axis' | 'none'
trigger: "item",
// 'click' | 'mousemove' | 'none'
triggerOn: "mousemove|click",
alwaysShowContent: !1,
displayMode: "single",
renderMode: "auto",
// whether restraint content inside viewRect.
// If renderMode: 'richText', default true.
// If renderMode: 'html', defaut false (for backward compat).
confine: null,
showDelay: 0,
hideDelay: 100,
// Animation transition time, unit is second
transitionDuration: 0.4,
enterable: !1,
backgroundColor: "#fff",
// box shadow
shadowBlur: 10,
shadowColor: "rgba(0, 0, 0, .2)",
shadowOffsetX: 1,
shadowOffsetY: 2,
// tooltip border radius, unit is px, default is 4
borderRadius: 4,
// tooltip border width, unit is px, default is 0 (no border)
borderWidth: 1,
// Tooltip inside padding, default is 5 for all direction
// Array is allowed to set up, right, bottom, left, same with css
// The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.
padding: null,
// Extra css text
extraCssText: "",
// axis indicator, trigger by axis
axisPointer: {
// default is line
// legal values: 'line' | 'shadow' | 'cross'
type: "line",
// Valid when type is line, appoint tooltip line locate on which line. Optional
// legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'
// default is 'auto', chose the axis which type is category.
// for multiply y axis, cartesian coord chose x axis, polar chose angle axis
axis: "auto",
animation: "auto",
animationDurationUpdate: 200,
animationEasingUpdate: "exponentialOut",
crossStyle: {
color: "#999",
width: 1,
type: "dashed",
// TODO formatter
textStyle: {}
}
// lineStyle and shadowStyle should not be specified here,
// otherwise it will always override those styles on option.axisPointer.
},
textStyle: {
color: "#666",
fontSize: 14
}
}, e;
}(rt)
);
function Zre(t) {
var e = t.get("confine");
return e != null ? !!e : t.get("renderMode") === "richText";
}
function Ure(t) {
if (vt.domSupported) {
for (var e = document.documentElement.style, n = 0, r = t.length; n < r; n++)
if (t[n] in e)
return t[n];
}
}
var Xre = Ure(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]), OGe = Ure(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]);
function Yre(t, e) {
if (!t)
return e;
e = ek(e, !0);
var n = t.indexOf(e);
return t = n === -1 ? e : "-" + t.slice(0, n) + "-" + e, t.toLowerCase();
}
function SGe(t, e) {
var n = t.currentStyle || document.defaultView && document.defaultView.getComputedStyle(t);
return n ? n[e] : null;
}
var xGe = Yre(OGe, "transition"), PL = Yre(Xre, "transform"), wGe = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (vt.transform3dSupported ? "will-change:transform;" : "");
function CGe(t) {
return t = t === "left" ? "right" : t === "right" ? "left" : t === "top" ? "bottom" : "top", t;
}
function TGe(t, e, n) {
if (!Oe(n) || n === "inside")
return "";
var r = t.get("backgroundColor"), i = t.get("borderWidth");
e = Of(e);
var a = CGe(n), o = Math.max(Math.round(i) * 1.5, 6), s = "", l = PL + ":", u;
et(["left", "right"], a) > -1 ? (s += "top:50%", l += "translateY(-50%) rotate(" + (u = a === "left" ? -225 : -45) + "deg)") : (s += "left:50%", l += "translateX(-50%) rotate(" + (u = a === "top" ? 225 : 45) + "deg)");
var c = u * Math.PI / 180, f = o + i, d = f * Math.abs(Math.cos(c)) + f * Math.abs(Math.sin(c)), h = Math.round(((d - Math.SQRT2 * i) / 2 + Math.SQRT2 * i - (d - f) / 2) * 100) / 100;
s += ";" + a + ":-" + h + "px";
var p = e + " solid " + i + "px;", v = ["position:absolute;width:" + o + "px;height:" + o + "px;z-index:-1;", s + ";" + l + ";", "border-bottom:" + p, "border-right:" + p, "background-color:" + r + ";"];
return '';
}
function PGe(t, e) {
var n = "cubic-bezier(0.23,1,0.32,1)", r = " " + t / 2 + "s " + n, i = "opacity" + r + ",visibility" + r;
return e || (r = " " + t + "s " + n, i += vt.transformSupported ? "," + PL + r : ",left" + r + ",top" + r), xGe + ":" + i;
}
function $7(t, e, n) {
var r = t.toFixed(0) + "px", i = e.toFixed(0) + "px";
if (!vt.transformSupported)
return n ? "top:" + i + ";left:" + r + ";" : [["top", i], ["left", r]];
var a = vt.transform3dSupported, o = "translate" + (a ? "3d" : "") + "(" + r + "," + i + (a ? ",0" : "") + ")";
return n ? "top:0;left:0;" + PL + ":" + o + ";" : [["top", 0], ["left", 0], [Xre, o]];
}
function $Ge(t) {
var e = [], n = t.get("fontSize"), r = t.getTextColor();
r && e.push("color:" + r), e.push("font:" + t.getFont()), n && e.push("line-height:" + Math.round(n * 3 / 2) + "px");
var i = t.get("textShadowColor"), a = t.get("textShadowBlur") || 0, o = t.get("textShadowOffsetX") || 0, s = t.get("textShadowOffsetY") || 0;
return i && a && e.push("text-shadow:" + o + "px " + s + "px " + a + "px " + i), k(["decoration", "align"], function(l) {
var u = t.get(l);
u && e.push("text-" + l + ":" + u);
}), e.join(";");
}
function AGe(t, e, n) {
var r = [], i = t.get("transitionDuration"), a = t.get("backgroundColor"), o = t.get("shadowBlur"), s = t.get("shadowColor"), l = t.get("shadowOffsetX"), u = t.get("shadowOffsetY"), c = t.getModel("textStyle"), f = iee(t, "html"), d = l + "px " + u + "px " + o + "px " + s;
return r.push("box-shadow:" + d), e && i && r.push(PGe(i, n)), a && r.push("background-color:" + a), k(["width", "color", "radius"], function(h) {
var p = "border-" + h, v = ek(p), g = t.get(v);
g != null && r.push(p + ":" + g + (h === "color" ? "" : "px"));
}), r.push($Ge(c)), f != null && r.push("padding:" + zf(f).join("px ") + "px"), r.join(";") + ";";
}
function A7(t, e, n, r, i) {
var a = e && e.painter;
if (n) {
var o = a && a.getViewportRoot();
o && SIe(t, o, n, r, i);
} else {
t[0] = r, t[1] = i;
var s = a && a.getViewportRootOffset();
s && (t[0] += s.offsetLeft, t[1] += s.offsetTop);
}
t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight();
}
var EGe = (
/** @class */
function() {
function t(e, n) {
if (this._show = !1, this._styleCoord = [0, 0, 0, 0], this._enterable = !0, this._alwaysShowContent = !1, this._firstShow = !0, this._longHide = !0, vt.wxa)
return null;
var r = document.createElement("div");
r.domBelongToZr = !0, this.el = r;
var i = this._zr = e.getZr(), a = n.appendTo, o = a && (Oe(a) ? document.querySelector(a) : au(a) ? a : Me(a) && a(e.getDom()));
A7(this._styleCoord, i, o, e.getWidth() / 2, e.getHeight() / 2), (o || e.getDom()).appendChild(r), this._api = e, this._container = o;
var s = this;
r.onmouseenter = function() {
s._enterable && (clearTimeout(s._hideTimeout), s._show = !0), s._inContent = !0;
}, r.onmousemove = function(l) {
if (l = l || window.event, !s._enterable) {
var u = i.handler, c = i.painter.getViewportRoot();
ua(c, l, !0), u.dispatch("mousemove", l);
}
}, r.onmouseleave = function() {
s._inContent = !1, s._enterable && s._show && s.hideLater(s._hideDelay);
};
}
return t.prototype.update = function(e) {
if (!this._container) {
var n = this._api.getDom(), r = SGe(n, "position"), i = n.style;
i.position !== "absolute" && r !== "absolute" && (i.position = "relative");
}
var a = e.get("alwaysShowContent");
a && this._moveIfResized(), this._alwaysShowContent = a, this.el.className = e.get("className") || "";
}, t.prototype.show = function(e, n) {
clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
var r = this.el, i = r.style, a = this._styleCoord;
r.innerHTML ? i.cssText = wGe + AGe(e, !this._firstShow, this._longHide) + $7(a[0], a[1], !0) + ("border-color:" + Of(n) + ";") + (e.get("extraCssText") || "") + (";pointer-events:" + (this._enterable ? "auto" : "none")) : i.display = "none", this._show = !0, this._firstShow = !1, this._longHide = !1;
}, t.prototype.setContent = function(e, n, r, i, a) {
var o = this.el;
if (e == null) {
o.innerHTML = "";
return;
}
var s = "";
if (Oe(a) && r.get("trigger") === "item" && !Zre(r) && (s = TGe(r, i, a)), Oe(e))
o.innerHTML = e + s;
else if (e) {
o.innerHTML = "", ue(e) || (e = [e]);
for (var l = 0; l < e.length; l++)
au(e[l]) && e[l].parentNode !== o && o.appendChild(e[l]);
if (s && o.childNodes.length) {
var u = document.createElement("div");
u.innerHTML = s, o.appendChild(u);
}
}
}, t.prototype.setEnterable = function(e) {
this._enterable = e;
}, t.prototype.getSize = function() {
var e = this.el;
return [e.offsetWidth, e.offsetHeight];
}, t.prototype.moveTo = function(e, n) {
var r = this._styleCoord;
if (A7(r, this._zr, this._container, e, n), r[0] != null && r[1] != null) {
var i = this.el.style, a = $7(r[0], r[1]);
k(a, function(o) {
i[o[0]] = o[1];
});
}
}, t.prototype._moveIfResized = function() {
var e = this._styleCoord[2], n = this._styleCoord[3];
this.moveTo(e * this._zr.getWidth(), n * this._zr.getHeight());
}, t.prototype.hide = function() {
var e = this, n = this.el.style;
n.visibility = "hidden", n.opacity = "0", vt.transform3dSupported && (n.willChange = ""), this._show = !1, this._longHideTimeout = setTimeout(function() {
return e._longHide = !0;
}, 500);
}, t.prototype.hideLater = function(e) {
this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (e ? (this._hideDelay = e, this._show = !1, this._hideTimeout = setTimeout(xe(this.hide, this), e)) : this.hide());
}, t.prototype.isShow = function() {
return this._show;
}, t.prototype.dispose = function() {
clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
var e = this.el.parentNode;
e && e.removeChild(this.el), this.el = this._container = null;
}, t;
}()
), MGe = (
/** @class */
function() {
function t(e) {
this._show = !1, this._styleCoord = [0, 0, 0, 0], this._alwaysShowContent = !1, this._enterable = !0, this._zr = e.getZr(), M7(this._styleCoord, this._zr, e.getWidth() / 2, e.getHeight() / 2);
}
return t.prototype.update = function(e) {
var n = e.get("alwaysShowContent");
n && this._moveIfResized(), this._alwaysShowContent = n;
}, t.prototype.show = function() {
this._hideTimeout && clearTimeout(this._hideTimeout), this.el.show(), this._show = !0;
}, t.prototype.setContent = function(e, n, r, i, a) {
var o = this;
Ie(e) && Et(process.env.NODE_ENV !== "production" ? "Passing DOM nodes as content is not supported in richText tooltip!" : ""), this.el && this._zr.remove(this.el);
var s = r.getModel("textStyle");
this.el = new gt({
style: {
rich: n.richTextStyles,
text: e,
lineHeight: 22,
borderWidth: 1,
borderColor: i,
textShadowColor: s.get("textShadowColor"),
fill: r.get(["textStyle", "color"]),
padding: iee(r, "richText"),
verticalAlign: "top",
align: "left"
},
z: r.get("z")
}), k(["backgroundColor", "borderRadius", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"], function(u) {
o.el.style[u] = r.get(u);
}), k(["textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], function(u) {
o.el.style[u] = s.get(u) || 0;
}), this._zr.add(this.el);
var l = this;
this.el.on("mouseover", function() {
l._enterable && (clearTimeout(l._hideTimeout), l._show = !0), l._inContent = !0;
}), this.el.on("mouseout", function() {
l._enterable && l._show && l.hideLater(l._hideDelay), l._inContent = !1;
});
}, t.prototype.setEnterable = function(e) {
this._enterable = e;
}, t.prototype.getSize = function() {
var e = this.el, n = this.el.getBoundingRect(), r = E7(e.style);
return [n.width + r.left + r.right, n.height + r.top + r.bottom];
}, t.prototype.moveTo = function(e, n) {
var r = this.el;
if (r) {
var i = this._styleCoord;
M7(i, this._zr, e, n), e = i[0], n = i[1];
var a = r.style, o = xl(a.borderWidth || 0), s = E7(a);
r.x = e + o + s.left, r.y = n + o + s.top, r.markRedraw();
}
}, t.prototype._moveIfResized = function() {
var e = this._styleCoord[2], n = this._styleCoord[3];
this.moveTo(e * this._zr.getWidth(), n * this._zr.getHeight());
}, t.prototype.hide = function() {
this.el && this.el.hide(), this._show = !1;
}, t.prototype.hideLater = function(e) {
this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (e ? (this._hideDelay = e, this._show = !1, this._hideTimeout = setTimeout(xe(this.hide, this), e)) : this.hide());
}, t.prototype.isShow = function() {
return this._show;
}, t.prototype.dispose = function() {
this._zr.remove(this.el);
}, t;
}()
);
function xl(t) {
return Math.max(0, t);
}
function E7(t) {
var e = xl(t.shadowBlur || 0), n = xl(t.shadowOffsetX || 0), r = xl(t.shadowOffsetY || 0);
return {
left: xl(e - n),
right: xl(e + n),
top: xl(e - r),
bottom: xl(e + r)
};
}
function M7(t, e, n, r) {
t[0] = n, t[1] = r, t[2] = t[0] / e.getWidth(), t[3] = t[1] / e.getHeight();
}
var IGe = new mt({
shape: {
x: -1,
y: -1,
width: 2,
height: 2
}
}), DGe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r) {
if (!(vt.node || !r.getDom())) {
var i = n.getComponent("tooltip"), a = this._renderMode = oRe(i.get("renderMode"));
this._tooltipContent = a === "richText" ? new MGe(r) : new EGe(r, {
appendTo: i.get("appendToBody", !0) ? "body" : i.get("appendTo", !0)
});
}
}, e.prototype.render = function(n, r, i) {
if (!(vt.node || !i.getDom())) {
this.group.removeAll(), this._tooltipModel = n, this._ecModel = r, this._api = i;
var a = this._tooltipContent;
a.update(n), a.setEnterable(n.get("enterable")), this._initGlobalListener(), this._keepShow(), this._renderMode !== "richText" && n.get("transitionDuration") ? Pp(this, "_updatePosition", 50, "fixRate") : Im(this, "_updatePosition");
}
}, e.prototype._initGlobalListener = function() {
var n = this._tooltipModel, r = n.get("triggerOn");
Rre("itemTooltip", this._api, xe(function(i, a, o) {
r !== "none" && (r.indexOf(i) >= 0 ? this._tryShow(a, o) : i === "leave" && this._hide(o));
}, this));
}, e.prototype._keepShow = function() {
var n = this._tooltipModel, r = this._ecModel, i = this._api, a = n.get("triggerOn");
if (this._lastX != null && this._lastY != null && a !== "none" && a !== "click") {
var o = this;
clearTimeout(this._refreshUpdateTimeout), this._refreshUpdateTimeout = setTimeout(function() {
!i.isDisposed() && o.manuallyShowTip(n, r, i, {
x: o._lastX,
y: o._lastY,
dataByCoordSys: o._lastDataByCoordSys
});
});
}
}, e.prototype.manuallyShowTip = function(n, r, i, a) {
if (!(a.from === this.uid || vt.node || !i.getDom())) {
var o = I7(a, i);
this._ticket = "";
var s = a.dataByCoordSys, l = NGe(a, r, i);
if (l) {
var u = l.el.getBoundingRect().clone();
u.applyTransform(l.el.transform), this._tryShow({
offsetX: u.x + u.width / 2,
offsetY: u.y + u.height / 2,
target: l.el,
position: a.position,
// When manully trigger, the mouse is not on the el, so we'd better to
// position tooltip on the bottom of the el and display arrow is possible.
positionDefault: "bottom"
}, o);
} else if (a.tooltip && a.x != null && a.y != null) {
var c = IGe;
c.x = a.x, c.y = a.y, c.update(), Fe(c).tooltipConfig = {
name: null,
option: a.tooltip
}, this._tryShow({
offsetX: a.x,
offsetY: a.y,
target: c
}, o);
} else if (s)
this._tryShow({
offsetX: a.x,
offsetY: a.y,
position: a.position,
dataByCoordSys: s,
tooltipOption: a.tooltipOption
}, o);
else if (a.seriesIndex != null) {
if (this._manuallyAxisShowTip(n, r, i, a))
return;
var f = kre(a, r), d = f.point[0], h = f.point[1];
d != null && h != null && this._tryShow({
offsetX: d,
offsetY: h,
target: f.el,
position: a.position,
// When manully trigger, the mouse is not on the el, so we'd better to
// position tooltip on the bottom of the el and display arrow is possible.
positionDefault: "bottom"
}, o);
} else a.x != null && a.y != null && (i.dispatchAction({
type: "updateAxisPointer",
x: a.x,
y: a.y
}), this._tryShow({
offsetX: a.x,
offsetY: a.y,
position: a.position,
target: i.getZr().findHover(a.x, a.y).target
}, o));
}
}, e.prototype.manuallyHideTip = function(n, r, i, a) {
var o = this._tooltipContent;
this._tooltipModel && o.hideLater(this._tooltipModel.get("hideDelay")), this._lastX = this._lastY = this._lastDataByCoordSys = null, a.from !== this.uid && this._hide(I7(a, i));
}, e.prototype._manuallyAxisShowTip = function(n, r, i, a) {
var o = a.seriesIndex, s = a.dataIndex, l = r.getComponent("axisPointer").coordSysAxesInfo;
if (!(o == null || s == null || l == null)) {
var u = r.getSeriesByIndex(o);
if (u) {
var c = u.getData(), f = Tv([c.getItemModel(s), u, (u.coordinateSystem || {}).model], this._tooltipModel);
if (f.get("trigger") === "axis")
return i.dispatchAction({
type: "updateAxisPointer",
seriesIndex: o,
dataIndex: s,
position: a.position
}), !0;
}
}
}, e.prototype._tryShow = function(n, r) {
var i = n.target, a = this._tooltipModel;
if (a) {
this._lastX = n.offsetX, this._lastY = n.offsetY;
var o = n.dataByCoordSys;
if (o && o.length)
this._showAxisTooltip(o, n);
else if (i) {
var s = Fe(i);
if (s.ssrType === "legend")
return;
this._lastDataByCoordSys = null;
var l, u;
Bc(i, function(c) {
if (Fe(c).dataIndex != null)
return l = c, !0;
if (Fe(c).tooltipConfig != null)
return u = c, !0;
}, !0), l ? this._showSeriesItemTooltip(n, l, r) : u ? this._showComponentItemTooltip(n, u, r) : this._hide(r);
} else
this._lastDataByCoordSys = null, this._hide(r);
}
}, e.prototype._showOrMove = function(n, r) {
var i = n.get("showDelay");
r = xe(r, this), clearTimeout(this._showTimout), i > 0 ? this._showTimout = setTimeout(r, i) : r();
}, e.prototype._showAxisTooltip = function(n, r) {
var i = this._ecModel, a = this._tooltipModel, o = [r.offsetX, r.offsetY], s = Tv([r.tooltipOption], a), l = this._renderMode, u = [], c = tr("section", {
blocks: [],
noHeader: !0
}), f = [], d = new RT();
k(n, function(y) {
k(y.dataByAxis, function(b) {
var _ = i.getComponent(b.axisDim + "Axis", b.axisIndex), O = b.value;
if (!(!_ || O == null)) {
var S = Mre(O, _.axis, i, b.seriesDataIndices, b.valueLabelOpt), x = tr("section", {
header: S,
noHeader: !ba(S),
sortBlocks: !0,
blocks: []
});
c.blocks.push(x), k(b.seriesDataIndices, function(C) {
var T = i.getSeriesByIndex(C.seriesIndex), w = C.dataIndexInside, P = T.getDataParams(w);
if (!(P.dataIndex < 0)) {
P.axisDim = b.axisDim, P.axisIndex = b.axisIndex, P.axisType = b.axisType, P.axisId = b.axisId, P.axisValue = $k(_.axis, {
value: O
}), P.axisValueLabel = S, P.marker = d.makeTooltipMarker("item", Of(P.color), l);
var $ = vz(T.formatTooltip(w, !0, null)), A = $.frag;
if (A) {
var D = Tv([T], a).get("valueFormatter");
x.blocks.push(D ? le({
valueFormatter: D
}, A) : A);
}
$.text && f.push($.text), u.push(P);
}
});
}
});
}), c.blocks.reverse(), f.reverse();
var h = r.position, p = s.get("order"), v = Oz(c, d, l, p, i.get("useUTC"), s.get("textStyle"));
v && f.unshift(v);
var g = l === "richText" ? `
` : "
", m = f.join(g);
this._showOrMove(s, function() {
this._updateContentNotChangedOnAxis(n, u) ? this._updatePosition(s, h, o[0], o[1], this._tooltipContent, u) : this._showTooltipContent(s, m, u, Math.random() + "", o[0], o[1], h, null, d);
});
}, e.prototype._showSeriesItemTooltip = function(n, r, i) {
var a = this._ecModel, o = Fe(r), s = o.seriesIndex, l = a.getSeriesByIndex(s), u = o.dataModel || l, c = o.dataIndex, f = o.dataType, d = u.getData(f), h = this._renderMode, p = n.positionDefault, v = Tv([d.getItemModel(c), u, l && (l.coordinateSystem || {}).model], this._tooltipModel, p ? {
position: p
} : null), g = v.get("trigger");
if (!(g != null && g !== "item")) {
var m = u.getDataParams(c, f), y = new RT();
m.marker = y.makeTooltipMarker("item", Of(m.color), h);
var b = vz(u.formatTooltip(c, !1, f)), _ = v.get("order"), O = v.get("valueFormatter"), S = b.frag, x = S ? Oz(O ? le({
valueFormatter: O
}, S) : S, y, h, _, a.get("useUTC"), v.get("textStyle")) : b.text, C = "item_" + u.name + "_" + c;
this._showOrMove(v, function() {
this._showTooltipContent(v, x, m, C, n.offsetX, n.offsetY, n.position, n.target, y);
}), i({
type: "showTip",
dataIndexInside: c,
dataIndex: d.getRawIndex(c),
seriesIndex: s,
from: this.uid
});
}
}, e.prototype._showComponentItemTooltip = function(n, r, i) {
var a = this._renderMode === "html", o = Fe(r), s = o.tooltipConfig, l = s.option || {}, u = l.encodeHTMLContent;
if (Oe(l)) {
var c = l;
l = {
content: c,
// Fixed formatter
formatter: c
}, u = !0;
}
u && a && l.content && (l = Le(l), l.content = jr(l.content));
var f = [l], d = this._ecModel.getComponent(o.componentMainType, o.componentIndex);
d && f.push(d), f.push({
formatter: l.content
});
var h = n.positionDefault, p = Tv(f, this._tooltipModel, h ? {
position: h
} : null), v = p.get("content"), g = Math.random() + "", m = new RT();
this._showOrMove(p, function() {
var y = Le(p.get("formatterParams") || {});
this._showTooltipContent(p, v, y, g, n.offsetX, n.offsetY, n.position, r, m);
}), i({
type: "showTip",
from: this.uid
});
}, e.prototype._showTooltipContent = function(n, r, i, a, o, s, l, u, c) {
if (this._ticket = "", !(!n.get("showContent") || !n.get("show"))) {
var f = this._tooltipContent;
f.setEnterable(n.get("enterable"));
var d = n.get("formatter");
l = l || n.get("position");
var h = r, p = this._getNearestPoint([o, s], i, n.get("trigger"), n.get("borderColor")), v = p.color;
if (d)
if (Oe(d)) {
var g = n.ecModel.get("useUTC"), m = ue(i) ? i[0] : i, y = m && m.axisType && m.axisType.indexOf("time") >= 0;
h = d, y && (h = H0(m.axisValue, h, g)), h = tk(h, i, !0);
} else if (Me(d)) {
var b = xe(function(_, O) {
_ === this._ticket && (f.setContent(O, c, n, v, l), this._updatePosition(n, l, o, s, f, i, u));
}, this);
this._ticket = a, h = d(i, a, b);
} else
h = d;
f.setContent(h, c, n, v, l), f.show(n, v), this._updatePosition(n, l, o, s, f, i, u);
}
}, e.prototype._getNearestPoint = function(n, r, i, a) {
if (i === "axis" || ue(r))
return {
color: a || (this._renderMode === "html" ? "#fff" : "none")
};
if (!ue(r))
return {
color: a || r.color || r.borderColor
};
}, e.prototype._updatePosition = function(n, r, i, a, o, s, l) {
var u = this._api.getWidth(), c = this._api.getHeight();
r = r || n.get("position");
var f = o.getSize(), d = n.get("align"), h = n.get("verticalAlign"), p = l && l.getBoundingRect().clone();
if (l && p.applyTransform(l.transform), Me(r) && (r = r([i, a], s, o.el, p, {
viewSize: [u, c],
contentSize: f.slice()
})), ue(r))
i = _e(r[0], u), a = _e(r[1], c);
else if (Ie(r)) {
var v = r;
v.width = f[0], v.height = f[1];
var g = Rn(v, {
width: u,
height: c
});
i = g.x, a = g.y, d = null, h = null;
} else if (Oe(r) && l) {
var m = LGe(r, p, f, n.get("borderWidth"));
i = m[0], a = m[1];
} else {
var m = RGe(i, a, o, u, c, d ? null : 20, h ? null : 20);
i = m[0], a = m[1];
}
if (d && (i -= D7(d) ? f[0] / 2 : d === "right" ? f[0] : 0), h && (a -= D7(h) ? f[1] / 2 : h === "bottom" ? f[1] : 0), Zre(n)) {
var m = kGe(i, a, o, u, c);
i = m[0], a = m[1];
}
o.moveTo(i, a);
}, e.prototype._updateContentNotChangedOnAxis = function(n, r) {
var i = this._lastDataByCoordSys, a = this._cbParamsList, o = !!i && i.length === n.length;
return o && k(i, function(s, l) {
var u = s.dataByAxis || [], c = n[l] || {}, f = c.dataByAxis || [];
o = o && u.length === f.length, o && k(u, function(d, h) {
var p = f[h] || {}, v = d.seriesDataIndices || [], g = p.seriesDataIndices || [];
o = o && d.value === p.value && d.axisType === p.axisType && d.axisId === p.axisId && v.length === g.length, o && k(v, function(m, y) {
var b = g[y];
o = o && m.seriesIndex === b.seriesIndex && m.dataIndex === b.dataIndex;
}), a && k(d.seriesDataIndices, function(m) {
var y = m.seriesIndex, b = r[y], _ = a[y];
b && _ && _.data !== b.data && (o = !1);
});
});
}), this._lastDataByCoordSys = n, this._cbParamsList = r, !!o;
}, e.prototype._hide = function(n) {
this._lastDataByCoordSys = null, n({
type: "hideTip",
from: this.uid
});
}, e.prototype.dispose = function(n, r) {
vt.node || !r.getDom() || (Im(this, "_updatePosition"), this._tooltipContent.dispose(), ME("itemTooltip", r));
}, e.type = "tooltip", e;
}(Xt)
);
function Tv(t, e, n) {
var r = e.ecModel, i;
n ? (i = new Wt(n, r, r), i = new Wt(e.option, i, r)) : i = e;
for (var a = t.length - 1; a >= 0; a--) {
var o = t[a];
o && (o instanceof Wt && (o = o.get("tooltip", !0)), Oe(o) && (o = {
formatter: o
}), o && (i = new Wt(o, i, r)));
}
return i;
}
function I7(t, e) {
return t.dispatchAction || xe(e.dispatchAction, e);
}
function RGe(t, e, n, r, i, a, o) {
var s = n.getSize(), l = s[0], u = s[1];
return a != null && (t + l + a + 2 > r ? t -= l + a : t += a), o != null && (e + u + o > i ? e -= u + o : e += o), [t, e];
}
function kGe(t, e, n, r, i) {
var a = n.getSize(), o = a[0], s = a[1];
return t = Math.min(t + o, r) - o, e = Math.min(e + s, i) - s, t = Math.max(t, 0), e = Math.max(e, 0), [t, e];
}
function LGe(t, e, n, r) {
var i = n[0], a = n[1], o = Math.ceil(Math.SQRT2 * r) + 8, s = 0, l = 0, u = e.width, c = e.height;
switch (t) {
case "inside":
s = e.x + u / 2 - i / 2, l = e.y + c / 2 - a / 2;
break;
case "top":
s = e.x + u / 2 - i / 2, l = e.y - a - o;
break;
case "bottom":
s = e.x + u / 2 - i / 2, l = e.y + c + o;
break;
case "left":
s = e.x - i - o, l = e.y + c / 2 - a / 2;
break;
case "right":
s = e.x + u + o, l = e.y + c / 2 - a / 2;
}
return [s, l];
}
function D7(t) {
return t === "center" || t === "middle";
}
function NGe(t, e, n) {
var r = MR(t).queryOptionMap, i = r.keys()[0];
if (!(!i || i === "series")) {
var a = B0(e, i, r.get(i), {
useDefault: !1,
enableAll: !1,
enableNone: !1
}), o = a.models[0];
if (o) {
var s = n.getViewOfComponentModel(o), l;
if (s.group.traverse(function(u) {
var c = Fe(u).tooltipConfig;
if (c && c.name === t.name)
return l = u, !0;
}), l)
return {
componentMainType: i,
componentIndex: o.componentIndex,
el: l
};
}
}
}
function BGe(t) {
at(ty), t.registerComponentModel(_Ge), t.registerComponentView(DGe), t.registerAction({
type: "showTip",
event: "showTip",
update: "tooltip:manuallyShowTip"
}, On), t.registerAction({
type: "hideTip",
event: "hideTip",
update: "tooltip:manuallyHideTip"
}, On);
}
var zGe = ["rect", "polygon", "keep", "clear"];
function VGe(t, e) {
var n = Qt(t ? t.brush : []);
if (n.length) {
var r = [];
k(n, function(l) {
var u = l.hasOwnProperty("toolbox") ? l.toolbox : [];
u instanceof Array && (r = r.concat(u));
});
var i = t && t.toolbox;
ue(i) && (i = i[0]), i || (i = {
feature: {}
}, t.toolbox = [i]);
var a = i.feature || (i.feature = {}), o = a.brush || (a.brush = {}), s = o.type || (o.type = []);
s.push.apply(s, r), FGe(s), e && !s.length && s.push.apply(s, zGe);
}
}
function FGe(t) {
var e = {};
k(t, function(n) {
e[n] = 1;
}), t.length = 0, k(e, function(n, r) {
t.push(r);
});
}
var R7 = k;
function k7(t) {
if (t) {
for (var e in t)
if (t.hasOwnProperty(e))
return !0;
}
}
function NE(t, e, n) {
var r = {};
return R7(e, function(a) {
var o = r[a] = i();
R7(t[a], function(s, l) {
if (qn.isValidType(l)) {
var u = {
type: l,
visual: s
};
n && n(u, a), o[l] = new qn(u), l === "opacity" && (u = Le(u), u.type = "colorAlpha", o.__hidden.__alphaForOpacity = new qn(u));
}
});
}), r;
function i() {
var a = function() {
};
a.prototype.__hidden = a.prototype;
var o = new a();
return o;
}
}
function qre(t, e, n) {
var r;
k(n, function(i) {
e.hasOwnProperty(i) && k7(e[i]) && (r = !0);
}), r && k(n, function(i) {
e.hasOwnProperty(i) && k7(e[i]) ? t[i] = Le(e[i]) : delete t[i];
});
}
function WGe(t, e, n, r, i, a) {
var o = {};
k(t, function(f) {
var d = qn.prepareVisualTypes(e[f]);
o[f] = d;
});
var s;
function l(f) {
return fk(n, s, f);
}
function u(f, d) {
pee(n, s, f, d);
}
n.each(c);
function c(f, d) {
s = f;
var h = n.getRawDataItem(s);
if (!(h && h.visualMap === !1))
for (var p = r.call(i, f), v = e[p], g = o[p], m = 0, y = g.length; m < y; m++) {
var b = g[m];
v[b] && v[b].applyVisual(f, l, u);
}
}
}
function QGe(t, e, n, r) {
var i = {};
return k(t, function(a) {
var o = qn.prepareVisualTypes(e[a]);
i[a] = o;
}), {
progress: function(o, s) {
var l;
r != null && (l = s.getDimensionIndex(r));
function u(O) {
return fk(s, f, O);
}
function c(O, S) {
pee(s, f, O, S);
}
for (var f, d = s.getStore(); (f = o.next()) != null; ) {
var h = s.getRawDataItem(f);
if (!(h && h.visualMap === !1))
for (var p = r != null ? d.get(l, f) : f, v = n(p), g = e[v], m = i[v], y = 0, b = m.length; y < b; y++) {
var _ = m[y];
g[_] && g[_].applyVisual(p, u, c);
}
}
}
};
}
function HGe(t) {
var e = t.brushType, n = {
point: function(r) {
return L7[e].point(r, n, t);
},
rect: function(r) {
return L7[e].rect(r, n, t);
}
};
return n;
}
var L7 = {
lineX: N7(0),
lineY: N7(1),
rect: {
point: function(t, e, n) {
return t && n.boundingRect.contain(t[0], t[1]);
},
rect: function(t, e, n) {
return t && n.boundingRect.intersect(t);
}
},
polygon: {
point: function(t, e, n) {
return t && n.boundingRect.contain(t[0], t[1]) && Sc(n.range, t[0], t[1]);
},
rect: function(t, e, n) {
var r = n.range;
if (!t || r.length <= 1)
return !1;
var i = t.x, a = t.y, o = t.width, s = t.height, l = r[0];
if (Sc(r, i, a) || Sc(r, i + o, a) || Sc(r, i, a + s) || Sc(r, i + o, a + s) || Je.create(t).contain(l[0], l[1]) || Yv(i, a, i + o, a, r) || Yv(i, a, i, a + s, r) || Yv(i + o, a, i + o, a + s, r) || Yv(i, a + s, i + o, a + s, r))
return !0;
}
}
};
function N7(t) {
var e = ["x", "y"], n = ["width", "height"];
return {
point: function(r, i, a) {
if (r) {
var o = a.range, s = r[t];
return Pv(s, o);
}
},
rect: function(r, i, a) {
if (r) {
var o = a.range, s = [r[e[t]], r[e[t]] + r[n[t]]];
return s[1] < s[0] && s.reverse(), Pv(s[0], o) || Pv(s[1], o) || Pv(o[0], s) || Pv(o[1], s);
}
}
};
}
function Pv(t, e) {
return e[0] <= t && t <= e[1];
}
var B7 = ["inBrush", "outOfBrush"], qP = "__ecBrushSelect", BE = "__ecInBrushSelectEvent";
function Kre(t) {
t.eachComponent({
mainType: "brush"
}, function(e) {
var n = e.brushTargetManager = new CL(e.option, t);
n.setInputRanges(e.areas, t);
});
}
function GGe(t, e, n) {
var r = [], i, a;
t.eachComponent({
mainType: "brush"
}, function(o) {
n && n.type === "takeGlobalCursor" && o.setBrushOption(n.key === "brush" ? n.brushOption : {
brushType: !1
});
}), Kre(t), t.eachComponent({
mainType: "brush"
}, function(o, s) {
var l = {
brushId: o.id,
brushIndex: s,
brushName: o.name,
areas: Le(o.areas),
selected: []
};
r.push(l);
var u = o.option, c = u.brushLink, f = [], d = [], h = [], p = !1;
s || (i = u.throttleType, a = u.throttleDelay);
var v = ce(o.areas, function(O) {
var S = XGe[O.brushType], x = Re({
boundingRect: S ? S(O) : void 0
}, O);
return x.selectors = HGe(x), x;
}), g = NE(o.option, B7, function(O) {
O.mappingMethod = "fixed";
});
ue(c) && k(c, function(O) {
f[O] = 1;
});
function m(O) {
return c === "all" || !!f[O];
}
function y(O) {
return !!O.length;
}
t.eachSeries(function(O, S) {
var x = h[S] = [];
O.subType === "parallel" ? b(O, S) : _(O, S, x);
});
function b(O, S) {
var x = O.coordinateSystem;
p = p || x.hasAxisBrushed(), m(S) && x.eachActiveState(O.getData(), function(C, T) {
C === "active" && (d[T] = 1);
});
}
function _(O, S, x) {
if (!(!O.brushSelector || UGe(o, S)) && (k(v, function(T) {
o.brushTargetManager.controlSeries(T, O, t) && x.push(T), p = p || y(x);
}), m(S) && y(x))) {
var C = O.getData();
C.each(function(T) {
z7(O, x, C, T) && (d[T] = 1);
});
}
}
t.eachSeries(function(O, S) {
var x = {
seriesId: O.id,
seriesIndex: S,
seriesName: O.name,
dataIndex: []
};
l.selected.push(x);
var C = h[S], T = O.getData(), w = m(S) ? function(P) {
return d[P] ? (x.dataIndex.push(T.getRawIndex(P)), "inBrush") : "outOfBrush";
} : function(P) {
return z7(O, C, T, P) ? (x.dataIndex.push(T.getRawIndex(P)), "inBrush") : "outOfBrush";
};
(m(S) ? p : y(C)) && WGe(B7, g, T, w);
});
}), jGe(e, i, a, r, n);
}
function jGe(t, e, n, r, i) {
if (i) {
var a = t.getZr();
if (!a[BE]) {
a[qP] || (a[qP] = ZGe);
var o = Pp(a, qP, n, e);
o(t, r);
}
}
}
function ZGe(t, e) {
if (!t.isDisposed()) {
var n = t.getZr();
n[BE] = !0, t.dispatchAction({
type: "brushSelect",
batch: e
}), n[BE] = !1;
}
}
function z7(t, e, n, r) {
for (var i = 0, a = e.length; i < a; i++) {
var o = e[i];
if (t.brushSelector(r, n, o.selectors, o))
return !0;
}
}
function UGe(t, e) {
var n = t.option.seriesIndex;
return n != null && n !== "all" && (ue(n) ? et(n, e) < 0 : e !== n);
}
var XGe = {
rect: function(t) {
return V7(t.range);
},
polygon: function(t) {
for (var e, n = t.range, r = 0, i = n.length; r < i; r++) {
e = e || [[1 / 0, -1 / 0], [1 / 0, -1 / 0]];
var a = n[r];
a[0] < e[0][0] && (e[0][0] = a[0]), a[0] > e[0][1] && (e[0][1] = a[0]), a[1] < e[1][0] && (e[1][0] = a[1]), a[1] > e[1][1] && (e[1][1] = a[1]);
}
return e && V7(e);
}
};
function V7(t) {
return new Je(t[0][0], t[1][0], t[0][1] - t[0][0], t[1][1] - t[1][0]);
}
var YGe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r) {
this.ecModel = n, this.api = r, this.model, (this._brushController = new eL(r.getZr())).on("brush", xe(this._onBrush, this)).mount();
}, e.prototype.render = function(n, r, i, a) {
this.model = n, this._updateController(n, r, i, a);
}, e.prototype.updateTransform = function(n, r, i, a) {
Kre(r), this._updateController(n, r, i, a);
}, e.prototype.updateVisual = function(n, r, i, a) {
this.updateTransform(n, r, i, a);
}, e.prototype.updateView = function(n, r, i, a) {
this._updateController(n, r, i, a);
}, e.prototype._updateController = function(n, r, i, a) {
(!a || a.$from !== n.id) && this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice());
}, e.prototype.dispose = function() {
this._brushController.dispose();
}, e.prototype._onBrush = function(n) {
var r = this.model.id, i = this.model.brushTargetManager.setOutputRanges(n.areas, this.ecModel);
(!n.isEnd || n.removeOnClick) && this.api.dispatchAction({
type: "brush",
brushId: r,
areas: Le(i),
$from: r
}), n.isEnd && this.api.dispatchAction({
type: "brushEnd",
brushId: r,
areas: Le(i),
$from: r
});
}, e.type = "brush", e;
}(Xt)
), qGe = "#ddd", KGe = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.areas = [], n.brushOption = {}, n;
}
return e.prototype.optionUpdated = function(n, r) {
var i = this.option;
!r && qre(i, n, ["inBrush", "outOfBrush"]);
var a = i.inBrush = i.inBrush || {};
i.outOfBrush = i.outOfBrush || {
color: qGe
}, a.hasOwnProperty("liftZ") || (a.liftZ = 5);
}, e.prototype.setAreas = function(n) {
process.env.NODE_ENV !== "production" && (ke(ue(n)), k(n, function(r) {
ke(r.brushType, "Illegal areas");
})), n && (this.areas = ce(n, function(r) {
return F7(this.option, r);
}, this));
}, e.prototype.setBrushOption = function(n) {
this.brushOption = F7(this.option, n), this.brushType = this.brushOption.brushType;
}, e.type = "brush", e.dependencies = ["geo", "grid", "xAxis", "yAxis", "parallel", "series"], e.defaultOption = {
seriesIndex: "all",
brushType: "rect",
brushMode: "single",
transformable: !0,
brushStyle: {
borderWidth: 1,
color: "rgba(210,219,238,0.3)",
borderColor: "#D2DBEE"
},
throttleType: "fixRate",
throttleDelay: 0,
removeOnClick: !0,
z: 1e4
}, e;
}(rt)
);
function F7(t, e) {
return qe({
brushType: t.brushType,
brushMode: t.brushMode,
transformable: t.transformable,
brushStyle: new Wt(t.brushStyle).getItemStyle(),
removeOnClick: t.removeOnClick,
z: t.z
}, e, !0);
}
var JGe = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], e9e = (
/** @class */
function(t) {
q(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.render = function(n, r, i) {
var a, o, s;
r.eachComponent({
mainType: "brush"
}, function(l) {
a = l.brushType, o = l.brushOption.brushMode || "single", s = s || !!l.areas.length;
}), this._brushType = a, this._brushMode = o, k(n.get("type", !0), function(l) {
n.setIconStatus(l, (l === "keep" ? o === "multiple" : l === "clear" ? s : l === a) ? "emphasis" : "normal");
});
}, e.prototype.updateView = function(n, r, i) {
this.render(n, r, i);
}, e.prototype.getIcons = function() {
var n = this.model, r = n.get("icon", !0), i = {};
return k(n.get("type", !0), function(a) {
r[a] && (i[a] = r[a]);
}), i;
}, e.prototype.onclick = function(n, r, i) {
var a = this._brushType, o = this._brushMode;
i === "clear" ? (r.dispatchAction({
type: "axisAreaSelect",
intervals: []
}), r.dispatchAction({
type: "brush",
command: "clear",
// Clear all areas of all brush components.
areas: []
})) : r.dispatchAction({
type: "takeGlobalCursor",
key: "brush",
brushOption: {
brushType: i === "keep" ? a : a === i ? !1 : i,
brushMode: i === "keep" ? o === "multiple" ? "single" : "multiple" : o
}
});
}, e.getDefaultOption = function(n) {
var r = {
show: !0,
type: JGe.slice(),
icon: {
/* eslint-disable */
rect: "M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",
polygon: "M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",
lineX: "M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",
lineY: "M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",
keep: "M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",
clear: "M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"
// jshint ignore:line
/* eslint-enable */
},
// `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`
title: n.getLocaleModel().get(["toolbox", "brush", "title"])
};
return r;
}, e;
}(ga)
);
function t9e(t) {
t.registerComponentView(YGe), t.registerComponentModel(KGe), t.registerPreprocessor(VGe), t.registerVisual(t.PRIORITY.VISUAL.BRUSH, GGe), t.registerAction({
type: "brush",
event: "brush",
update: "updateVisual"
}, function(e, n) {
n.eachComponent({
mainType: "brush",
query: e
}, function(r) {
r.setAreas(e.areas);
});
}), t.registerAction({
type: "brushSelect",
event: "brushSelected",
update: "none"
}, On), t.registerAction({
type: "brushEnd",
event: "brushEnd",
update: "none"
}, On), Dd("brush", e9e);
}
var n9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.layoutMode = {
type: "box",
ignoreSize: !0
}, n;
}
return e.type = "title", e.defaultOption = {
// zlevel: 0,
z: 6,
show: !0,
text: "",
target: "blank",
subtext: "",
subtarget: "blank",
left: 0,
top: 0,
backgroundColor: "rgba(0,0,0,0)",
borderColor: "#ccc",
borderWidth: 0,
padding: 5,
itemGap: 10,
textStyle: {
fontSize: 18,
fontWeight: "bold",
color: "#464646"
},
subtextStyle: {
fontSize: 12,
color: "#6E7079"
}
}, e;
}(rt)
), r9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.render = function(n, r, i) {
if (this.group.removeAll(), !!n.get("show")) {
var a = this.group, o = n.getModel("textStyle"), s = n.getModel("subtextStyle"), l = n.get("textAlign"), u = We(n.get("textBaseline"), n.get("textVerticalAlign")), c = new gt({
style: Zt(o, {
text: n.get("text"),
fill: o.getTextColor()
}, {
disableBox: !0
}),
z2: 10
}), f = c.getBoundingRect(), d = n.get("subtext"), h = new gt({
style: Zt(s, {
text: d,
fill: s.getTextColor(),
y: f.height + n.get("itemGap"),
verticalAlign: "top"
}, {
disableBox: !0
}),
z2: 10
}), p = n.get("link"), v = n.get("sublink"), g = n.get("triggerEvent", !0);
c.silent = !p && !g, h.silent = !v && !g, p && c.on("click", function() {
pO(p, "_" + n.get("target"));
}), v && h.on("click", function() {
pO(v, "_" + n.get("subtarget"));
}), Fe(c).eventData = Fe(h).eventData = g ? {
componentType: "title",
componentIndex: n.componentIndex
} : null, a.add(c), d && a.add(h);
var m = a.getBoundingRect(), y = n.getBoxLayoutParams();
y.width = m.width, y.height = m.height;
var b = Rn(y, {
width: i.getWidth(),
height: i.getHeight()
}, n.get("padding"));
l || (l = n.get("left") || n.get("right"), l === "middle" && (l = "center"), l === "right" ? b.x += b.width : l === "center" && (b.x += b.width / 2)), u || (u = n.get("top") || n.get("bottom"), u === "center" && (u = "middle"), u === "bottom" ? b.y += b.height : u === "middle" && (b.y += b.height / 2), u = u || "top"), a.x = b.x, a.y = b.y, a.markRedraw();
var _ = {
align: l,
verticalAlign: u
};
c.setStyle(_), h.setStyle(_), m = a.getBoundingRect();
var O = b.margin, S = n.getItemStyle(["color", "opacity"]);
S.fill = n.get("backgroundColor");
var x = new mt({
shape: {
x: m.x - O[3],
y: m.y - O[0],
width: m.width + O[1] + O[3],
height: m.height + O[0] + O[2],
r: n.get("borderRadius")
},
style: S,
subPixelOptimize: !0,
silent: !0
});
a.add(x);
}
}, e.type = "title", e;
}(Xt)
);
function i9e(t) {
t.registerComponentModel(n9e), t.registerComponentView(r9e);
}
var W7 = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.layoutMode = "box", n;
}
return e.prototype.init = function(n, r, i) {
this.mergeDefaultAndTheme(n, i), this._initData();
}, e.prototype.mergeOption = function(n) {
t.prototype.mergeOption.apply(this, arguments), this._initData();
}, e.prototype.setCurrentIndex = function(n) {
n == null && (n = this.option.currentIndex);
var r = this._data.count();
this.option.loop ? n = (n % r + r) % r : (n >= r && (n = r - 1), n < 0 && (n = 0)), this.option.currentIndex = n;
}, e.prototype.getCurrentIndex = function() {
return this.option.currentIndex;
}, e.prototype.isIndexMax = function() {
return this.getCurrentIndex() >= this._data.count() - 1;
}, e.prototype.setPlayState = function(n) {
this.option.autoPlay = !!n;
}, e.prototype.getPlayState = function() {
return !!this.option.autoPlay;
}, e.prototype._initData = function() {
var n = this.option, r = n.data || [], i = n.axisType, a = this._names = [], o;
i === "category" ? (o = [], k(r, function(u, c) {
var f = Vn(gp(u), ""), d;
Ie(u) ? (d = Le(u), d.value = c) : d = c, o.push(d), a.push(f);
})) : o = r;
var s = {
category: "ordinal",
time: "time",
value: "number"
}[i] || "number", l = this._data = new Nr([{
name: "value",
type: s
}], this);
l.initData(o, a);
}, e.prototype.getData = function() {
return this._data;
}, e.prototype.getCategories = function() {
if (this.get("axisType") === "category")
return this._names.slice();
}, e.type = "timeline", e.defaultOption = {
// zlevel: 0, // 一级层叠
z: 4,
show: !0,
axisType: "time",
realtime: !0,
left: "20%",
top: null,
right: "20%",
bottom: 0,
width: null,
height: 40,
padding: 5,
controlPosition: "left",
autoPlay: !1,
rewind: !1,
loop: !0,
playInterval: 2e3,
currentIndex: 0,
itemStyle: {},
label: {
color: "#000"
},
data: []
}, e;
}(rt)
), Jre = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "timeline.slider", e.defaultOption = Pu(W7.defaultOption, {
backgroundColor: "rgba(0,0,0,0)",
borderColor: "#ccc",
borderWidth: 0,
orient: "horizontal",
inverse: !1,
tooltip: {
trigger: "item"
// data item may also have tootip attr.
},
symbol: "circle",
symbolSize: 12,
lineStyle: {
show: !0,
width: 2,
color: "#DAE1F5"
},
label: {
position: "auto",
// When using number, label position is not
// restricted by viewRect.
// positive: right/bottom, negative: left/top
show: !0,
interval: "auto",
rotate: 0,
// formatter: null,
// 其余属性默认使用全局文本样式,详见TEXTSTYLE
color: "#A4B1D7"
},
itemStyle: {
color: "#A4B1D7",
borderWidth: 1
},
checkpointStyle: {
symbol: "circle",
symbolSize: 15,
color: "#316bf3",
borderColor: "#fff",
borderWidth: 2,
shadowBlur: 2,
shadowOffsetX: 1,
shadowOffsetY: 1,
shadowColor: "rgba(0, 0, 0, 0.3)",
// borderColor: 'rgba(194,53,49, 0.5)',
animation: !0,
animationDuration: 300,
animationEasing: "quinticInOut"
},
controlStyle: {
show: !0,
showPlayBtn: !0,
showPrevBtn: !0,
showNextBtn: !0,
itemSize: 24,
itemGap: 12,
position: "left",
playIcon: "path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",
stopIcon: "path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",
// eslint-disable-next-line max-len
nextIcon: "M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",
// eslint-disable-next-line max-len
prevIcon: "M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",
prevBtnSize: 18,
nextBtnSize: 18,
color: "#A4B1D7",
borderColor: "#A4B1D7",
borderWidth: 1
},
emphasis: {
label: {
show: !0,
// 其余属性默认使用全局文本样式,详见TEXTSTYLE
color: "#6f778d"
},
itemStyle: {
color: "#316BF3"
},
controlStyle: {
color: "#316BF3",
borderColor: "#316BF3",
borderWidth: 2
}
},
progress: {
lineStyle: {
color: "#316BF3"
},
itemStyle: {
color: "#316BF3"
},
label: {
color: "#6f778d"
}
},
data: []
}), e;
}(W7)
);
xn(Jre, lw.prototype);
var a9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "timeline", e;
}(Xt)
), o9e = (
/** @class */
function(t) {
q(e, t);
function e(n, r, i, a) {
var o = t.call(this, n, r, i) || this;
return o.type = a || "value", o;
}
return e.prototype.getLabelModel = function() {
return this.model.getModel("label");
}, e.prototype.isHorizontal = function() {
return this.model.get("orient") === "horizontal";
}, e;
}(Va)
), KP = Math.PI, Q7 = bt(), s9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function(n, r) {
this.api = r;
}, e.prototype.render = function(n, r, i) {
if (this.model = n, this.api = i, this.ecModel = r, this.group.removeAll(), n.get("show", !0)) {
var a = this._layout(n, i), o = this._createGroup("_mainGroup"), s = this._createGroup("_labelGroup"), l = this._axis = this._createAxis(a, n);
n.formatTooltip = function(u) {
var c = l.scale.getLabel({
value: u
});
return tr("nameValue", {
noName: !0,
value: c
});
}, k(["AxisLine", "AxisTick", "Control", "CurrentPointer"], function(u) {
this["_render" + u](a, o, l, n);
}, this), this._renderAxisLabel(a, s, l, n), this._position(a, n);
}
this._doPlayStop(), this._updateTicksStatus();
}, e.prototype.remove = function() {
this._clearTimer(), this.group.removeAll();
}, e.prototype.dispose = function() {
this._clearTimer();
}, e.prototype._layout = function(n, r) {
var i = n.get(["label", "position"]), a = n.get("orient"), o = u9e(n, r), s;
i == null || i === "auto" ? s = a === "horizontal" ? o.y + o.height / 2 < r.getHeight() / 2 ? "-" : "+" : o.x + o.width / 2 < r.getWidth() / 2 ? "+" : "-" : Oe(i) ? s = {
horizontal: {
top: "-",
bottom: "+"
},
vertical: {
left: "-",
right: "+"
}
}[a][i] : s = i;
var l = {
horizontal: "center",
vertical: s >= 0 || s === "+" ? "left" : "right"
}, u = {
horizontal: s >= 0 || s === "+" ? "top" : "bottom",
vertical: "middle"
}, c = {
horizontal: 0,
vertical: KP / 2
}, f = a === "vertical" ? o.height : o.width, d = n.getModel("controlStyle"), h = d.get("show", !0), p = h ? d.get("itemSize") : 0, v = h ? d.get("itemGap") : 0, g = p + v, m = n.get(["label", "rotate"]) || 0;
m = m * KP / 180;
var y, b, _, O = d.get("position", !0), S = h && d.get("showPlayBtn", !0), x = h && d.get("showPrevBtn", !0), C = h && d.get("showNextBtn", !0), T = 0, w = f;
O === "left" || O === "bottom" ? (S && (y = [0, 0], T += g), x && (b = [T, 0], T += g), C && (_ = [w - p, 0], w -= g)) : (S && (y = [w - p, 0], w -= g), x && (b = [0, 0], T += g), C && (_ = [w - p, 0], w -= g));
var P = [T, w];
return n.get("inverse") && P.reverse(), {
viewRect: o,
mainLength: f,
orient: a,
rotation: c[a],
labelRotation: m,
labelPosOpt: s,
labelAlign: n.get(["label", "align"]) || l[a],
labelBaseline: n.get(["label", "verticalAlign"]) || n.get(["label", "baseline"]) || u[a],
// Based on mainGroup.
playPosition: y,
prevBtnPosition: b,
nextBtnPosition: _,
axisExtent: P,
controlSize: p,
controlGap: v
};
}, e.prototype._position = function(n, r) {
var i = this._mainGroup, a = this._labelGroup, o = n.viewRect;
if (n.orient === "vertical") {
var s = wi(), l = o.x, u = o.y + o.height;
so(s, s, [-l, -u]), Cu(s, s, -KP / 2), so(s, s, [l, u]), o = o.clone(), o.applyTransform(s);
}
var c = y(o), f = y(i.getBoundingRect()), d = y(a.getBoundingRect()), h = [i.x, i.y], p = [a.x, a.y];
p[0] = h[0] = c[0][0];
var v = n.labelPosOpt;
if (v == null || Oe(v)) {
var g = v === "+" ? 0 : 1;
b(h, f, c, 1, g), b(p, d, c, 1, 1 - g);
} else {
var g = v >= 0 ? 0 : 1;
b(h, f, c, 1, g), p[1] = h[1] + v;
}
i.setPosition(h), a.setPosition(p), i.rotation = a.rotation = n.rotation, m(i), m(a);
function m(_) {
_.originX = c[0][0] - _.x, _.originY = c[1][0] - _.y;
}
function y(_) {
return [[_.x, _.x + _.width], [_.y, _.y + _.height]];
}
function b(_, O, S, x, C) {
_[x] += S[x][C] - O[x][C];
}
}, e.prototype._createAxis = function(n, r) {
var i = r.getData(), a = r.get("axisType"), o = l9e(r, a);
o.getTicks = function() {
return i.mapArray(["value"], function(u) {
return {
value: u
};
});
};
var s = i.getDataExtent("value");
o.setExtent(s[0], s[1]), o.calcNiceTicks();
var l = new o9e("value", o, n.axisExtent, a);
return l.model = r, l;
}, e.prototype._createGroup = function(n) {
var r = this[n] = new Ve();
return this.group.add(r), r;
}, e.prototype._renderAxisLine = function(n, r, i, a) {
var o = i.getExtent();
if (a.get(["lineStyle", "show"])) {
var s = new Un({
shape: {
x1: o[0],
y1: 0,
x2: o[1],
y2: 0
},
style: le({
lineCap: "round"
}, a.getModel("lineStyle").getLineStyle()),
silent: !0,
z2: 1
});
r.add(s);
var l = this._progressLine = new Un({
shape: {
x1: o[0],
x2: this._currentPointer ? this._currentPointer.x : o[0],
y1: 0,
y2: 0
},
style: Re({
lineCap: "round",
lineWidth: s.style.lineWidth
}, a.getModel(["progress", "lineStyle"]).getLineStyle()),
silent: !0,
z2: 1
});
r.add(l);
}
}, e.prototype._renderAxisTick = function(n, r, i, a) {
var o = this, s = a.getData(), l = i.scale.getTicks();
this._tickSymbols = [], k(l, function(u) {
var c = i.dataToCoord(u.value), f = s.getItemModel(u.value), d = f.getModel("itemStyle"), h = f.getModel(["emphasis", "itemStyle"]), p = f.getModel(["progress", "itemStyle"]), v = {
x: c,
y: 0,
onclick: xe(o._changeTimeline, o, u.value)
}, g = H7(f, d, r, v);
g.ensureState("emphasis").style = h.getItemStyle(), g.ensureState("progress").style = p.getItemStyle(), Yl(g);
var m = Fe(g);
f.get("tooltip") ? (m.dataIndex = u.value, m.dataModel = a) : m.dataIndex = m.dataModel = null, o._tickSymbols.push(g);
});
}, e.prototype._renderAxisLabel = function(n, r, i, a) {
var o = this, s = i.getLabelModel();
if (s.get("show")) {
var l = a.getData(), u = i.getViewLabels();
this._tickLabels = [], k(u, function(c) {
var f = c.tickValue, d = l.getItemModel(f), h = d.getModel("label"), p = d.getModel(["emphasis", "label"]), v = d.getModel(["progress", "label"]), g = i.dataToCoord(c.tickValue), m = new gt({
x: g,
y: 0,
rotation: n.labelRotation - n.rotation,
onclick: xe(o._changeTimeline, o, f),
silent: !1,
style: Zt(h, {
text: c.formattedLabel,
align: n.labelAlign,
verticalAlign: n.labelBaseline
})
});
m.ensureState("emphasis").style = Zt(p), m.ensureState("progress").style = Zt(v), r.add(m), Yl(m), Q7(m).dataIndex = f, o._tickLabels.push(m);
});
}
}, e.prototype._renderControl = function(n, r, i, a) {
var o = n.controlSize, s = n.rotation, l = a.getModel("controlStyle").getItemStyle(), u = a.getModel(["emphasis", "controlStyle"]).getItemStyle(), c = a.getPlayState(), f = a.get("inverse", !0);
d(n.nextBtnPosition, "next", xe(this._changeTimeline, this, f ? "-" : "+")), d(n.prevBtnPosition, "prev", xe(this._changeTimeline, this, f ? "+" : "-")), d(n.playPosition, c ? "stop" : "play", xe(this._handlePlayClick, this, !c), !0);
function d(h, p, v, g) {
if (h) {
var m = lo(We(a.get(["controlStyle", p + "BtnSize"]), o), o), y = [0, -m / 2, m, m], b = c9e(a, p + "Icon", y, {
x: h[0],
y: h[1],
originX: o / 2,
originY: 0,
rotation: g ? -s : 0,
rectHover: !0,
style: l,
onclick: v
});
b.ensureState("emphasis").style = u, r.add(b), Yl(b);
}
}
}, e.prototype._renderCurrentPointer = function(n, r, i, a) {
var o = a.getData(), s = a.getCurrentIndex(), l = o.getItemModel(s).getModel("checkpointStyle"), u = this, c = {
onCreate: function(f) {
f.draggable = !0, f.drift = xe(u._handlePointerDrag, u), f.ondragend = xe(u._handlePointerDragend, u), G7(f, u._progressLine, s, i, a, !0);
},
onUpdate: function(f) {
G7(f, u._progressLine, s, i, a);
}
};
this._currentPointer = H7(l, l, this._mainGroup, {}, this._currentPointer, c);
}, e.prototype._handlePlayClick = function(n) {
this._clearTimer(), this.api.dispatchAction({
type: "timelinePlayChange",
playState: n,
from: this.uid
});
}, e.prototype._handlePointerDrag = function(n, r, i) {
this._clearTimer(), this._pointerChangeTimeline([i.offsetX, i.offsetY]);
}, e.prototype._handlePointerDragend = function(n) {
this._pointerChangeTimeline([n.offsetX, n.offsetY], !0);
}, e.prototype._pointerChangeTimeline = function(n, r) {
var i = this._toAxisCoord(n)[0], a = this._axis, o = Wi(a.getExtent().slice());
i > o[1] && (i = o[1]), i < o[0] && (i = o[0]), this._currentPointer.x = i, this._currentPointer.markRedraw();
var s = this._progressLine;
s && (s.shape.x2 = i, s.dirty());
var l = this._findNearestTick(i), u = this.model;
(r || l !== u.getCurrentIndex() && u.get("realtime")) && this._changeTimeline(l);
}, e.prototype._doPlayStop = function() {
var n = this;
this._clearTimer(), this.model.getPlayState() && (this._timer = setTimeout(function() {
var r = n.model;
n._changeTimeline(r.getCurrentIndex() + (r.get("rewind", !0) ? -1 : 1));
}, this.model.get("playInterval")));
}, e.prototype._toAxisCoord = function(n) {
var r = this._mainGroup.getLocalTransform();
return ro(n, r, !0);
}, e.prototype._findNearestTick = function(n) {
var r = this.model.getData(), i = 1 / 0, a, o = this._axis;
return r.each(["value"], function(s, l) {
var u = o.dataToCoord(s), c = Math.abs(u - n);
c < i && (i = c, a = l);
}), a;
}, e.prototype._clearTimer = function() {
this._timer && (clearTimeout(this._timer), this._timer = null);
}, e.prototype._changeTimeline = function(n) {
var r = this.model.getCurrentIndex();
n === "+" ? n = r + 1 : n === "-" && (n = r - 1), this.api.dispatchAction({
type: "timelineChange",
currentIndex: n,
from: this.uid
});
}, e.prototype._updateTicksStatus = function() {
var n = this.model.getCurrentIndex(), r = this._tickSymbols, i = this._tickLabels;
if (r)
for (var a = 0; a < r.length; a++)
r && r[a] && r[a].toggleState("progress", a < n);
if (i)
for (var a = 0; a < i.length; a++)
i && i[a] && i[a].toggleState("progress", Q7(i[a]).dataIndex <= n);
}, e.type = "timeline.slider", e;
}(a9e)
);
function l9e(t, e) {
if (e = e || t.get("type"), e)
switch (e) {
case "category":
return new gw({
ordinalMeta: t.getCategories(),
extent: [1 / 0, -1 / 0]
});
case "time":
return new Tk({
locale: t.ecModel.getLocaleModel(),
useUTC: t.ecModel.get("useUTC")
});
default:
return new qs();
}
}
function u9e(t, e) {
return Rn(t.getBoxLayoutParams(), {
width: e.getWidth(),
height: e.getHeight()
}, t.get("padding"));
}
function c9e(t, e, n, r) {
var i = r.style, a = _p(t.get(["controlStyle", e]), r || {}, new Je(n[0], n[1], n[2], n[3]));
return i && a.setStyle(i), a;
}
function H7(t, e, n, r, i, a) {
var o = e.get("color");
if (i)
i.setColor(o), n.add(i), a && a.onUpdate(i);
else {
var s = t.get("symbol");
i = $n(s, -1, -1, 2, 2, o), i.setStyle("strokeNoScale", !0), n.add(i), a && a.onCreate(i);
}
var l = e.getItemStyle(["color"]);
i.setStyle(l), r = qe({
rectHover: !0,
z2: 100
}, r, !0);
var u = $p(t.get("symbolSize"));
r.scaleX = u[0] / 2, r.scaleY = u[1] / 2;
var c = Ff(t.get("symbolOffset"), u);
c && (r.x = (r.x || 0) + c[0], r.y = (r.y || 0) + c[1]);
var f = t.get("symbolRotate");
return r.rotation = (f || 0) * Math.PI / 180 || 0, i.attr(r), i.updateTransform(), i;
}
function G7(t, e, n, r, i, a) {
if (!t.dragging) {
var o = i.getModel("checkpointStyle"), s = r.dataToCoord(i.getData().get("value", n));
if (a || !o.get("animation", !0))
t.attr({
x: s,
y: 0
}), e && e.attr({
shape: {
x2: s
}
});
else {
var l = {
duration: o.get("animationDuration", !0),
easing: o.get("animationEasing", !0)
};
t.stopAnimation(null, !0), t.animateTo({
x: s,
y: 0
}, l), e && e.animateTo({
shape: {
x2: s
}
}, l);
}
}
}
function f9e(t) {
t.registerAction({
type: "timelineChange",
event: "timelineChanged",
update: "prepareAndUpdate"
}, function(e, n, r) {
var i = n.getComponent("timeline");
return i && e.currentIndex != null && (i.setCurrentIndex(e.currentIndex), !i.get("loop", !0) && i.isIndexMax() && i.getPlayState() && (i.setPlayState(!1), r.dispatchAction({
type: "timelinePlayChange",
playState: !1,
from: e.from
}))), n.resetOption("timeline", {
replaceMerge: i.get("replaceMerge", !0)
}), Re({
currentIndex: i.option.currentIndex
}, e);
}), t.registerAction({
type: "timelinePlayChange",
event: "timelinePlayChanged",
update: "update"
}, function(e, n) {
var r = n.getComponent("timeline");
r && e.playState != null && r.setPlayState(e.playState);
});
}
function d9e(t) {
var e = t && t.timeline;
ue(e) || (e = e ? [e] : []), k(e, function(n) {
n && h9e(n);
});
}
function h9e(t) {
var e = t.type, n = {
number: "value",
time: "time"
};
if (n[e] && (t.axisType = n[e], delete t.type), j7(t), Cc(t, "controlPosition")) {
var r = t.controlStyle || (t.controlStyle = {});
Cc(r, "position") || (r.position = t.controlPosition), r.position === "none" && !Cc(r, "show") && (r.show = !1, delete r.position), delete t.controlPosition;
}
k(t.data || [], function(i) {
Ie(i) && !ue(i) && (!Cc(i, "value") && Cc(i, "name") && (i.value = i.name), j7(i));
});
}
function j7(t) {
var e = t.itemStyle || (t.itemStyle = {}), n = e.emphasis || (e.emphasis = {}), r = t.label || t.label || {}, i = r.normal || (r.normal = {}), a = {
normal: 1,
emphasis: 1
};
k(r, function(o, s) {
!a[s] && !Cc(i, s) && (i[s] = o);
}), n.label && !Cc(r, "emphasis") && (r.emphasis = n.label, delete n.label);
}
function Cc(t, e) {
return t.hasOwnProperty(e);
}
function p9e(t) {
t.registerComponentModel(Jre), t.registerComponentView(s9e), t.registerSubTypeDefaulter("timeline", function() {
return "slider";
}), f9e(t), t.registerPreprocessor(d9e);
}
function $L(t, e) {
if (!t)
return !1;
for (var n = ue(t) ? t : [t], r = 0; r < n.length; r++)
if (n[r] && n[r][e])
return !0;
return !1;
}
function Lb(t) {
mf(t, "label", ["show"]);
}
var Nb = bt(), Js = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.createdBySelf = !1, n;
}
return e.prototype.init = function(n, r, i) {
if (process.env.NODE_ENV !== "production" && this.type === "marker")
throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");
this.mergeDefaultAndTheme(n, i), this._mergeOption(n, i, !1, !0);
}, e.prototype.isAnimationEnabled = function() {
if (vt.node)
return !1;
var n = this.__hostSeries;
return this.getShallow("animation") && n && n.isAnimationEnabled();
}, e.prototype.mergeOption = function(n, r) {
this._mergeOption(n, r, !1, !1);
}, e.prototype._mergeOption = function(n, r, i, a) {
var o = this.mainType;
i || r.eachSeries(function(s) {
var l = s.get(this.mainType, !0), u = Nb(s)[o];
if (!l || !l.data) {
Nb(s)[o] = null;
return;
}
u ? u._mergeOption(l, r, !0) : (a && Lb(l), k(l.data, function(c) {
c instanceof Array ? (Lb(c[0]), Lb(c[1])) : Lb(c);
}), u = this.createMarkerModelFromSeries(l, this, r), le(u, {
mainType: this.mainType,
// Use the same series index and name
seriesIndex: s.seriesIndex,
name: s.name,
createdBySelf: !0
}), u.__hostSeries = s), Nb(s)[o] = u;
}, this);
}, e.prototype.formatTooltip = function(n, r, i) {
var a = this.getData(), o = this.getRawValue(n), s = a.getName(n);
return tr("section", {
header: this.name,
blocks: [tr("nameValue", {
name: s,
value: o,
noName: !s,
noValue: o == null
})]
});
}, e.prototype.getData = function() {
return this._data;
}, e.prototype.setData = function(n) {
this._data = n;
}, e.prototype.getDataParams = function(n, r) {
var i = lw.prototype.getDataParams.call(this, n, r), a = this.__hostSeries;
return a && (i.seriesId = a.id, i.seriesName = a.name, i.seriesType = a.subType), i;
}, e.getMarkerModelFromSeries = function(n, r) {
return Nb(n)[r];
}, e.type = "marker", e.dependencies = ["series", "grid", "polar", "geo"], e;
}(rt)
);
xn(Js, lw.prototype);
var v9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.createMarkerModelFromSeries = function(n, r, i) {
return new e(n, r, i);
}, e.type = "markPoint", e.defaultOption = {
// zlevel: 0,
z: 5,
symbol: "pin",
symbolSize: 50,
// symbolRotate: 0,
// symbolOffset: [0, 0]
tooltip: {
trigger: "item"
},
label: {
show: !0,
position: "inside"
},
itemStyle: {
borderWidth: 2
},
emphasis: {
label: {
show: !0
}
}
}, e;
}(Js)
);
function zE(t) {
return !(isNaN(parseFloat(t.x)) && isNaN(parseFloat(t.y)));
}
function g9e(t) {
return !isNaN(parseFloat(t.x)) && !isNaN(parseFloat(t.y));
}
function Bb(t, e, n, r, i, a) {
var o = [], s = Ys(
e,
r
/* , otherDataDim */
), l = s ? e.getCalculationInfo("stackResultDimension") : r, u = AL(e, l, t), c = e.indicesOfNearest(l, u)[0];
o[i] = e.get(n, c), o[a] = e.get(l, c);
var f = e.get(r, c), d = Ya(e.get(r, c));
return d = Math.min(d, 20), d >= 0 && (o[a] = +o[a].toFixed(d)), [o, f];
}
var JP = {
min: Ue(Bb, "min"),
max: Ue(Bb, "max"),
average: Ue(Bb, "average"),
median: Ue(Bb, "median")
};
function jm(t, e) {
if (e) {
var n = t.getData(), r = t.coordinateSystem, i = r && r.dimensions;
if (!g9e(e) && !ue(e.coord) && ue(i)) {
var a = eie(e, n, r, t);
if (e = Le(e), e.type && JP[e.type] && a.baseAxis && a.valueAxis) {
var o = et(i, a.baseAxis.dim), s = et(i, a.valueAxis.dim), l = JP[e.type](n, a.baseDataDim, a.valueDataDim, o, s);
e.coord = l[0], e.value = l[1];
} else
e.coord = [e.xAxis != null ? e.xAxis : e.radiusAxis, e.yAxis != null ? e.yAxis : e.angleAxis];
}
if (e.coord == null || !ue(i))
e.coord = [];
else
for (var u = e.coord, c = 0; c < 2; c++)
JP[u[c]] && (u[c] = AL(n, n.mapDimension(i[c]), u[c]));
return e;
}
}
function eie(t, e, n, r) {
var i = {};
return t.valueIndex != null || t.valueDim != null ? (i.valueDataDim = t.valueIndex != null ? e.getDimension(t.valueIndex) : t.valueDim, i.valueAxis = n.getAxis(m9e(r, i.valueDataDim)), i.baseAxis = n.getOtherAxis(i.valueAxis), i.baseDataDim = e.mapDimension(i.baseAxis.dim)) : (i.baseAxis = r.getBaseAxis(), i.valueAxis = n.getOtherAxis(i.baseAxis), i.baseDataDim = e.mapDimension(i.baseAxis.dim), i.valueDataDim = e.mapDimension(i.valueAxis.dim)), i;
}
function m9e(t, e) {
var n = t.getData().getDimensionInfo(e);
return n && n.coordDim;
}
function Zm(t, e) {
return t && t.containData && e.coord && !zE(e) ? t.containData(e.coord) : !0;
}
function y9e(t, e, n) {
return t && t.containZone && e.coord && n.coord && !zE(e) && !zE(n) ? t.containZone(e.coord, n.coord) : !0;
}
function tie(t, e) {
return t ? function(n, r, i, a) {
var o = a < 2 ? n.coord && n.coord[a] : n.value;
return Kl(o, e[a]);
} : function(n, r, i, a) {
return Kl(n.value, e[a]);
};
}
function AL(t, e, n) {
if (n === "average") {
var r = 0, i = 0;
return t.each(e, function(a, o) {
isNaN(a) || (r += a, i++);
}), r / i;
} else return n === "median" ? t.getMedian(e) : t.getDataExtent(e)[n === "max" ? 1 : 0];
}
var e$ = bt(), EL = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.init = function() {
this.markerGroupMap = Pe();
}, e.prototype.render = function(n, r, i) {
var a = this, o = this.markerGroupMap;
o.each(function(s) {
e$(s).keep = !1;
}), r.eachSeries(function(s) {
var l = Js.getMarkerModelFromSeries(s, a.type);
l && a.renderSeries(s, l, r, i);
}), o.each(function(s) {
!e$(s).keep && a.group.remove(s.group);
});
}, e.prototype.markKeep = function(n) {
e$(n).keep = !0;
}, e.prototype.toggleBlurSeries = function(n, r) {
var i = this;
k(n, function(a) {
var o = Js.getMarkerModelFromSeries(a, i.type);
if (o) {
var s = o.getData();
s.eachItemGraphicEl(function(l) {
l && (r ? NK(l) : BR(l));
});
}
});
}, e.type = "marker", e;
}(Xt)
);
function Z7(t, e, n) {
var r = e.coordinateSystem;
t.each(function(i) {
var a = t.getItemModel(i), o, s = _e(a.get("x"), n.getWidth()), l = _e(a.get("y"), n.getHeight());
if (!isNaN(s) && !isNaN(l))
o = [s, l];
else if (e.getMarkerPosition)
o = e.getMarkerPosition(t.getValues(t.dimensions, i));
else if (r) {
var u = t.get(r.dimensions[0], i), c = t.get(r.dimensions[1], i);
o = r.dataToPoint([u, c]);
}
isNaN(s) || (o[0] = s), isNaN(l) || (o[1] = l), t.setItemLayout(i, o);
});
}
var b9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.updateTransform = function(n, r, i) {
r.eachSeries(function(a) {
var o = Js.getMarkerModelFromSeries(a, "markPoint");
o && (Z7(o.getData(), a, i), this.markerGroupMap.get(a.id).updateLayout());
}, this);
}, e.prototype.renderSeries = function(n, r, i, a) {
var o = n.coordinateSystem, s = n.id, l = n.getData(), u = this.markerGroupMap, c = u.get(s) || u.set(s, new U0()), f = _9e(o, n, r);
r.setData(f), Z7(r.getData(), n, a), f.each(function(d) {
var h = f.getItemModel(d), p = h.getShallow("symbol"), v = h.getShallow("symbolSize"), g = h.getShallow("symbolRotate"), m = h.getShallow("symbolOffset"), y = h.getShallow("symbolKeepAspect");
if (Me(p) || Me(v) || Me(g) || Me(m)) {
var b = r.getRawValue(d), _ = r.getDataParams(d);
Me(p) && (p = p(b, _)), Me(v) && (v = v(b, _)), Me(g) && (g = g(b, _)), Me(m) && (m = m(b, _));
}
var O = h.getModel("itemStyle").getItemStyle(), S = G0(l, "color");
O.fill || (O.fill = S), f.setItemVisual(d, {
symbol: p,
symbolSize: v,
symbolRotate: g,
symbolOffset: m,
symbolKeepAspect: y,
style: O
});
}), c.updateData(f), this.group.add(c.group), f.eachItemGraphicEl(function(d) {
d.traverse(function(h) {
Fe(h).dataModel = r;
});
}), this.markKeep(c), c.group.silent = r.get("silent") || n.get("silent");
}, e.type = "markPoint", e;
}(EL)
);
function _9e(t, e, n) {
var r;
t ? r = ce(t && t.dimensions, function(s) {
var l = e.getData().getDimensionInfo(e.getData().mapDimension(s)) || {};
return le(le({}, l), {
name: s,
// DON'T use ordinalMeta to parse and collect ordinal.
ordinalMeta: null
});
}) : r = [{
name: "value",
type: "float"
}];
var i = new Nr(r, n), a = ce(n.get("data"), Ue(jm, e));
t && (a = Nt(a, Ue(Zm, t)));
var o = tie(!!t, r);
return i.initData(a, null, o), i;
}
function O9e(t) {
t.registerComponentModel(v9e), t.registerComponentView(b9e), t.registerPreprocessor(function(e) {
$L(e.series, "markPoint") && (e.markPoint = e.markPoint || {});
});
}
var S9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.createMarkerModelFromSeries = function(n, r, i) {
return new e(n, r, i);
}, e.type = "markLine", e.defaultOption = {
// zlevel: 0,
z: 5,
symbol: ["circle", "arrow"],
symbolSize: [8, 16],
// symbolRotate: 0,
symbolOffset: 0,
precision: 2,
tooltip: {
trigger: "item"
},
label: {
show: !0,
position: "end",
distance: 5
},
lineStyle: {
type: "dashed"
},
emphasis: {
label: {
show: !0
},
lineStyle: {
width: 3
}
},
animationEasing: "linear"
}, e;
}(Js)
), zb = bt(), x9e = function(t, e, n, r) {
var i = t.getData(), a;
if (ue(r))
a = r;
else {
var o = r.type;
if (o === "min" || o === "max" || o === "average" || o === "median" || r.xAxis != null || r.yAxis != null) {
var s = void 0, l = void 0;
if (r.yAxis != null || r.xAxis != null)
s = e.getAxis(r.yAxis != null ? "y" : "x"), l = Tn(r.yAxis, r.xAxis);
else {
var u = eie(r, i, e, t);
s = u.valueAxis;
var c = xk(i, u.valueDataDim);
l = AL(i, c, o);
}
var f = s.dim === "x" ? 0 : 1, d = 1 - f, h = Le(r), p = {
coord: []
};
h.type = null, h.coord = [], h.coord[d] = -1 / 0, p.coord[d] = 1 / 0;
var v = n.get("precision");
v >= 0 && St(l) && (l = +l.toFixed(Math.min(v, 20))), h.coord[f] = p.coord[f] = l, a = [h, p, {
type: o,
valueIndex: r.valueIndex,
// Force to use the value of calculated value.
value: l
}];
} else
process.env.NODE_ENV !== "production" && xa("Invalid markLine data."), a = [];
}
var g = [jm(t, a[0]), jm(t, a[1]), le({}, a[2])];
return g[2].type = g[2].type || null, qe(g[2], g[0]), qe(g[2], g[1]), g;
};
function GO(t) {
return !isNaN(t) && !isFinite(t);
}
function U7(t, e, n, r) {
var i = 1 - t, a = r.dimensions[t];
return GO(e[i]) && GO(n[i]) && e[t] === n[t] && r.getAxis(a).containData(e[t]);
}
function w9e(t, e) {
if (t.type === "cartesian2d") {
var n = e[0].coord, r = e[1].coord;
if (n && r && (U7(1, n, r, t) || U7(0, n, r, t)))
return !0;
}
return Zm(t, e[0]) && Zm(t, e[1]);
}
function t$(t, e, n, r, i) {
var a = r.coordinateSystem, o = t.getItemModel(e), s, l = _e(o.get("x"), i.getWidth()), u = _e(o.get("y"), i.getHeight());
if (!isNaN(l) && !isNaN(u))
s = [l, u];
else {
if (r.getMarkerPosition)
s = r.getMarkerPosition(t.getValues(t.dimensions, e));
else {
var c = a.dimensions, f = t.get(c[0], e), d = t.get(c[1], e);
s = a.dataToPoint([f, d]);
}
if (Wf(a, "cartesian2d")) {
var h = a.getAxis("x"), p = a.getAxis("y"), c = a.dimensions;
GO(t.get(c[0], e)) ? s[0] = h.toGlobalCoord(h.getExtent()[n ? 0 : 1]) : GO(t.get(c[1], e)) && (s[1] = p.toGlobalCoord(p.getExtent()[n ? 0 : 1]));
}
isNaN(l) || (s[0] = l), isNaN(u) || (s[1] = u);
}
t.setItemLayout(e, s);
}
var C9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.updateTransform = function(n, r, i) {
r.eachSeries(function(a) {
var o = Js.getMarkerModelFromSeries(a, "markLine");
if (o) {
var s = o.getData(), l = zb(o).from, u = zb(o).to;
l.each(function(c) {
t$(l, c, !0, a, i), t$(u, c, !1, a, i);
}), s.each(function(c) {
s.setItemLayout(c, [l.getItemLayout(c), u.getItemLayout(c)]);
}), this.markerGroupMap.get(a.id).updateLayout();
}
}, this);
}, e.prototype.renderSeries = function(n, r, i, a) {
var o = n.coordinateSystem, s = n.id, l = n.getData(), u = this.markerGroupMap, c = u.get(s) || u.set(s, new Jk());
this.group.add(c.group);
var f = T9e(o, n, r), d = f.from, h = f.to, p = f.line;
zb(r).from = d, zb(r).to = h, r.setData(p);
var v = r.get("symbol"), g = r.get("symbolSize"), m = r.get("symbolRotate"), y = r.get("symbolOffset");
ue(v) || (v = [v, v]), ue(g) || (g = [g, g]), ue(m) || (m = [m, m]), ue(y) || (y = [y, y]), f.from.each(function(_) {
b(d, _, !0), b(h, _, !1);
}), p.each(function(_) {
var O = p.getItemModel(_).getModel("lineStyle").getLineStyle();
p.setItemLayout(_, [d.getItemLayout(_), h.getItemLayout(_)]), O.stroke == null && (O.stroke = d.getItemVisual(_, "style").fill), p.setItemVisual(_, {
fromSymbolKeepAspect: d.getItemVisual(_, "symbolKeepAspect"),
fromSymbolOffset: d.getItemVisual(_, "symbolOffset"),
fromSymbolRotate: d.getItemVisual(_, "symbolRotate"),
fromSymbolSize: d.getItemVisual(_, "symbolSize"),
fromSymbol: d.getItemVisual(_, "symbol"),
toSymbolKeepAspect: h.getItemVisual(_, "symbolKeepAspect"),
toSymbolOffset: h.getItemVisual(_, "symbolOffset"),
toSymbolRotate: h.getItemVisual(_, "symbolRotate"),
toSymbolSize: h.getItemVisual(_, "symbolSize"),
toSymbol: h.getItemVisual(_, "symbol"),
style: O
});
}), c.updateData(p), f.line.eachItemGraphicEl(function(_) {
Fe(_).dataModel = r, _.traverse(function(O) {
Fe(O).dataModel = r;
});
});
function b(_, O, S) {
var x = _.getItemModel(O);
t$(_, O, S, n, a);
var C = x.getModel("itemStyle").getItemStyle();
C.fill == null && (C.fill = G0(l, "color")), _.setItemVisual(O, {
symbolKeepAspect: x.get("symbolKeepAspect"),
// `0` should be considered as a valid value, so use `retrieve2` instead of `||`
symbolOffset: We(x.get("symbolOffset", !0), y[S ? 0 : 1]),
symbolRotate: We(x.get("symbolRotate", !0), m[S ? 0 : 1]),
// TODO: when 2d array is supported, it should ignore parent
symbolSize: We(x.get("symbolSize"), g[S ? 0 : 1]),
symbol: We(x.get("symbol", !0), v[S ? 0 : 1]),
style: C
});
}
this.markKeep(c), c.group.silent = r.get("silent") || n.get("silent");
}, e.type = "markLine", e;
}(EL)
);
function T9e(t, e, n) {
var r;
t ? r = ce(t && t.dimensions, function(u) {
var c = e.getData().getDimensionInfo(e.getData().mapDimension(u)) || {};
return le(le({}, c), {
name: u,
// DON'T use ordinalMeta to parse and collect ordinal.
ordinalMeta: null
});
}) : r = [{
name: "value",
type: "float"
}];
var i = new Nr(r, n), a = new Nr(r, n), o = new Nr([], n), s = ce(n.get("data"), Ue(x9e, e, t, n));
t && (s = Nt(s, Ue(w9e, t)));
var l = tie(!!t, r);
return i.initData(ce(s, function(u) {
return u[0];
}), null, l), a.initData(ce(s, function(u) {
return u[1];
}), null, l), o.initData(ce(s, function(u) {
return u[2];
})), o.hasItemOption = !0, {
from: i,
to: a,
line: o
};
}
function P9e(t) {
t.registerComponentModel(S9e), t.registerComponentView(C9e), t.registerPreprocessor(function(e) {
$L(e.series, "markLine") && (e.markLine = e.markLine || {});
});
}
var $9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.createMarkerModelFromSeries = function(n, r, i) {
return new e(n, r, i);
}, e.type = "markArea", e.defaultOption = {
// zlevel: 0,
// PENDING
z: 1,
tooltip: {
trigger: "item"
},
// markArea should fixed on the coordinate system
animation: !1,
label: {
show: !0,
position: "top"
},
itemStyle: {
// color and borderColor default to use color from series
// color: 'auto'
// borderColor: 'auto'
borderWidth: 0
},
emphasis: {
label: {
show: !0,
position: "top"
}
}
}, e;
}(Js)
), Vb = bt(), A9e = function(t, e, n, r) {
var i = r[0], a = r[1];
if (!(!i || !a)) {
var o = jm(t, i), s = jm(t, a), l = o.coord, u = s.coord;
l[0] = Tn(l[0], -1 / 0), l[1] = Tn(l[1], -1 / 0), u[0] = Tn(u[0], 1 / 0), u[1] = Tn(u[1], 1 / 0);
var c = Rx([{}, o, s]);
return c.coord = [o.coord, s.coord], c.x0 = o.x, c.y0 = o.y, c.x1 = s.x, c.y1 = s.y, c;
}
};
function jO(t) {
return !isNaN(t) && !isFinite(t);
}
function X7(t, e, n, r) {
var i = 1 - t;
return jO(e[i]) && jO(n[i]);
}
function E9e(t, e) {
var n = e.coord[0], r = e.coord[1], i = {
coord: n,
x: e.x0,
y: e.y0
}, a = {
coord: r,
x: e.x1,
y: e.y1
};
return Wf(t, "cartesian2d") ? n && r && (X7(1, n, r) || X7(0, n, r)) ? !0 : y9e(t, i, a) : Zm(t, i) || Zm(t, a);
}
function Y7(t, e, n, r, i) {
var a = r.coordinateSystem, o = t.getItemModel(e), s, l = _e(o.get(n[0]), i.getWidth()), u = _e(o.get(n[1]), i.getHeight());
if (!isNaN(l) && !isNaN(u))
s = [l, u];
else {
if (r.getMarkerPosition) {
var c = t.getValues(["x0", "y0"], e), f = t.getValues(["x1", "y1"], e), d = a.clampData(c), h = a.clampData(f), p = [];
n[0] === "x0" ? p[0] = d[0] > h[0] ? f[0] : c[0] : p[0] = d[0] > h[0] ? c[0] : f[0], n[1] === "y0" ? p[1] = d[1] > h[1] ? f[1] : c[1] : p[1] = d[1] > h[1] ? c[1] : f[1], s = r.getMarkerPosition(p, n, !0);
} else {
var v = t.get(n[0], e), g = t.get(n[1], e), m = [v, g];
a.clampData && a.clampData(m, m), s = a.dataToPoint(m, !0);
}
if (Wf(a, "cartesian2d")) {
var y = a.getAxis("x"), b = a.getAxis("y"), v = t.get(n[0], e), g = t.get(n[1], e);
jO(v) ? s[0] = y.toGlobalCoord(y.getExtent()[n[0] === "x0" ? 0 : 1]) : jO(g) && (s[1] = b.toGlobalCoord(b.getExtent()[n[1] === "y0" ? 0 : 1]));
}
isNaN(l) || (s[0] = l), isNaN(u) || (s[1] = u);
}
return s;
}
var q7 = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]], M9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.updateTransform = function(n, r, i) {
r.eachSeries(function(a) {
var o = Js.getMarkerModelFromSeries(a, "markArea");
if (o) {
var s = o.getData();
s.each(function(l) {
var u = ce(q7, function(f) {
return Y7(s, l, f, a, i);
});
s.setItemLayout(l, u);
var c = s.getItemGraphicEl(l);
c.setShape("points", u);
});
}
}, this);
}, e.prototype.renderSeries = function(n, r, i, a) {
var o = n.coordinateSystem, s = n.id, l = n.getData(), u = this.markerGroupMap, c = u.get(s) || u.set(s, {
group: new Ve()
});
this.group.add(c.group), this.markKeep(c);
var f = I9e(o, n, r);
r.setData(f), f.each(function(d) {
var h = ce(q7, function(C) {
return Y7(f, d, C, n, a);
}), p = o.getAxis("x").scale, v = o.getAxis("y").scale, g = p.getExtent(), m = v.getExtent(), y = [p.parse(f.get("x0", d)), p.parse(f.get("x1", d))], b = [v.parse(f.get("y0", d)), v.parse(f.get("y1", d))];
Wi(y), Wi(b);
var _ = !(g[0] > y[1] || g[1] < y[0] || m[0] > b[1] || m[1] < b[0]), O = !_;
f.setItemLayout(d, {
points: h,
allClipped: O
});
var S = f.getItemModel(d).getModel("itemStyle").getItemStyle(), x = G0(l, "color");
S.fill || (S.fill = x, Oe(S.fill) && (S.fill = wm(S.fill, 0.4))), S.stroke || (S.stroke = x), f.setItemVisual(d, "style", S);
}), f.diff(Vb(c).data).add(function(d) {
var h = f.getItemLayout(d);
if (!h.allClipped) {
var p = new ai({
shape: {
points: h.points
}
});
f.setItemGraphicEl(d, p), c.group.add(p);
}
}).update(function(d, h) {
var p = Vb(c).data.getItemGraphicEl(h), v = f.getItemLayout(d);
v.allClipped ? p && c.group.remove(p) : (p ? Ct(p, {
shape: {
points: v.points
}
}, r, d) : p = new ai({
shape: {
points: v.points
}
}), f.setItemGraphicEl(d, p), c.group.add(p));
}).remove(function(d) {
var h = Vb(c).data.getItemGraphicEl(d);
c.group.remove(h);
}).execute(), f.eachItemGraphicEl(function(d, h) {
var p = f.getItemModel(h), v = f.getItemVisual(h, "style");
d.useStyle(f.getItemVisual(h, "style")), Pr(d, er(p), {
labelFetcher: r,
labelDataIndex: h,
defaultText: f.getName(h) || "",
inheritColor: Oe(v.fill) ? wm(v.fill, 1) : "#000"
}), Tr(d, p), bn(d, null, null, p.get(["emphasis", "disabled"])), Fe(d).dataModel = r;
}), Vb(c).data = f, c.group.silent = r.get("silent") || n.get("silent");
}, e.type = "markArea", e;
}(EL)
);
function I9e(t, e, n) {
var r, i, a = ["x0", "y0", "x1", "y1"];
if (t) {
var o = ce(t && t.dimensions, function(u) {
var c = e.getData(), f = c.getDimensionInfo(c.mapDimension(u)) || {};
return le(le({}, f), {
name: u,
// DON'T use ordinalMeta to parse and collect ordinal.
ordinalMeta: null
});
});
i = ce(a, function(u, c) {
return {
name: u,
type: o[c % 2].type
};
}), r = new Nr(i, n);
} else
i = [{
name: "value",
type: "float"
}], r = new Nr(i, n);
var s = ce(n.get("data"), Ue(A9e, e, t, n));
t && (s = Nt(s, Ue(E9e, t)));
var l = t ? function(u, c, f, d) {
var h = u.coord[Math.floor(d / 2)][d % 2];
return Kl(h, i[d]);
} : function(u, c, f, d) {
return Kl(u.value, i[d]);
};
return r.initData(s, null, l), r.hasItemOption = !0, r;
}
function D9e(t) {
t.registerComponentModel($9e), t.registerComponentView(M9e), t.registerPreprocessor(function(e) {
$L(e.series, "markArea") && (e.markArea = e.markArea || {});
});
}
var R9e = function(t, e) {
if (e === "all")
return {
type: "all",
title: t.getLocaleModel().get(["legend", "selector", "all"])
};
if (e === "inverse")
return {
type: "inverse",
title: t.getLocaleModel().get(["legend", "selector", "inverse"])
};
}, VE = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.layoutMode = {
type: "box",
// legend.width/height are maxWidth/maxHeight actually,
// whereas real width/height is calculated by its content.
// (Setting {left: 10, right: 10} does not make sense).
// So consider the case:
// `setOption({legend: {left: 10});`
// then `setOption({legend: {right: 10});`
// The previous `left` should be cleared by setting `ignoreSize`.
ignoreSize: !0
}, n;
}
return e.prototype.init = function(n, r, i) {
this.mergeDefaultAndTheme(n, i), n.selected = n.selected || {}, this._updateSelector(n);
}, e.prototype.mergeOption = function(n, r) {
t.prototype.mergeOption.call(this, n, r), this._updateSelector(n);
}, e.prototype._updateSelector = function(n) {
var r = n.selector, i = this.ecModel;
r === !0 && (r = n.selector = ["all", "inverse"]), ue(r) && k(r, function(a, o) {
Oe(a) && (a = {
type: a
}), r[o] = qe(a, R9e(i, a.type));
});
}, e.prototype.optionUpdated = function() {
this._updateData(this.ecModel);
var n = this._data;
if (n[0] && this.get("selectedMode") === "single") {
for (var r = !1, i = 0; i < n.length; i++) {
var a = n[i].get("name");
if (this.isSelected(a)) {
this.select(a), r = !0;
break;
}
}
!r && this.select(n[0].get("name"));
}
}, e.prototype._updateData = function(n) {
var r = [], i = [];
n.eachRawSeries(function(l) {
var u = l.name;
i.push(u);
var c;
if (l.legendVisualProvider) {
var f = l.legendVisualProvider, d = f.getAllNames();
n.isSeriesFiltered(l) || (i = i.concat(d)), d.length ? r = r.concat(d) : c = !0;
} else
c = !0;
c && ER(l) && r.push(l.name);
}), this._availableNames = i;
var a = this.get("data") || r, o = Pe(), s = ce(a, function(l) {
return (Oe(l) || St(l)) && (l = {
name: l
}), o.get(l.name) ? null : (o.set(l.name, !0), new Wt(l, this, this.ecModel));
}, this);
this._data = Nt(s, function(l) {
return !!l;
});
}, e.prototype.getData = function() {
return this._data;
}, e.prototype.select = function(n) {
var r = this.option.selected, i = this.get("selectedMode");
if (i === "single") {
var a = this._data;
k(a, function(o) {
r[o.get("name")] = !1;
});
}
r[n] = !0;
}, e.prototype.unSelect = function(n) {
this.get("selectedMode") !== "single" && (this.option.selected[n] = !1);
}, e.prototype.toggleSelected = function(n) {
var r = this.option.selected;
r.hasOwnProperty(n) || (r[n] = !0), this[r[n] ? "unSelect" : "select"](n);
}, e.prototype.allSelect = function() {
var n = this._data, r = this.option.selected;
k(n, function(i) {
r[i.get("name", !0)] = !0;
});
}, e.prototype.inverseSelect = function() {
var n = this._data, r = this.option.selected;
k(n, function(i) {
var a = i.get("name", !0);
r.hasOwnProperty(a) || (r[a] = !0), r[a] = !r[a];
});
}, e.prototype.isSelected = function(n) {
var r = this.option.selected;
return !(r.hasOwnProperty(n) && !r[n]) && et(this._availableNames, n) >= 0;
}, e.prototype.getOrient = function() {
return this.get("orient") === "vertical" ? {
index: 1,
name: "vertical"
} : {
index: 0,
name: "horizontal"
};
}, e.type = "legend.plain", e.dependencies = ["series"], e.defaultOption = {
// zlevel: 0,
z: 4,
show: !0,
orient: "horizontal",
left: "center",
// right: 'center',
top: 0,
// bottom: null,
align: "auto",
backgroundColor: "rgba(0,0,0,0)",
borderColor: "#ccc",
borderRadius: 0,
borderWidth: 0,
padding: 5,
itemGap: 10,
itemWidth: 25,
itemHeight: 14,
symbolRotate: "inherit",
symbolKeepAspect: !0,
inactiveColor: "#ccc",
inactiveBorderColor: "#ccc",
inactiveBorderWidth: "auto",
itemStyle: {
color: "inherit",
opacity: "inherit",
borderColor: "inherit",
borderWidth: "auto",
borderCap: "inherit",
borderJoin: "inherit",
borderDashOffset: "inherit",
borderMiterLimit: "inherit"
},
lineStyle: {
width: "auto",
color: "inherit",
inactiveColor: "#ccc",
inactiveWidth: 2,
opacity: "inherit",
type: "inherit",
cap: "inherit",
join: "inherit",
dashOffset: "inherit",
miterLimit: "inherit"
},
textStyle: {
color: "#333"
},
selectedMode: !0,
selector: !1,
selectorLabel: {
show: !0,
borderRadius: 10,
padding: [3, 5, 3, 5],
fontSize: 12,
fontFamily: "sans-serif",
color: "#666",
borderWidth: 1,
borderColor: "#666"
},
emphasis: {
selectorLabel: {
show: !0,
color: "#eee",
backgroundColor: "#666"
}
},
selectorPosition: "auto",
selectorItemGap: 7,
selectorButtonGap: 10,
tooltip: {
show: !1
}
}, e;
}(rt)
), _d = Ue, FE = k, Fb = Ve, nie = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.newlineDisabled = !1, n;
}
return e.prototype.init = function() {
this.group.add(this._contentGroup = new Fb()), this.group.add(this._selectorGroup = new Fb()), this._isFirstRender = !0;
}, e.prototype.getContentGroup = function() {
return this._contentGroup;
}, e.prototype.getSelectorGroup = function() {
return this._selectorGroup;
}, e.prototype.render = function(n, r, i) {
var a = this._isFirstRender;
if (this._isFirstRender = !1, this.resetInner(), !!n.get("show", !0)) {
var o = n.get("align"), s = n.get("orient");
(!o || o === "auto") && (o = n.get("left") === "right" && s === "vertical" ? "right" : "left");
var l = n.get("selector", !0), u = n.get("selectorPosition", !0);
l && (!u || u === "auto") && (u = s === "horizontal" ? "end" : "start"), this.renderInner(o, n, r, i, l, s, u);
var c = n.getBoxLayoutParams(), f = {
width: i.getWidth(),
height: i.getHeight()
}, d = n.get("padding"), h = Rn(c, f, d), p = this.layoutInner(n, o, h, a, l, u), v = Rn(Re({
width: p.width,
height: p.height
}, c), f, d);
this.group.x = v.x - p.x, this.group.y = v.y - p.y, this.group.markRedraw(), this.group.add(this._backgroundEl = Hre(p, n));
}
}, e.prototype.resetInner = function() {
this.getContentGroup().removeAll(), this._backgroundEl && this.group.remove(this._backgroundEl), this.getSelectorGroup().removeAll();
}, e.prototype.renderInner = function(n, r, i, a, o, s, l) {
var u = this.getContentGroup(), c = Pe(), f = r.get("selectedMode"), d = [];
i.eachRawSeries(function(h) {
!h.get("legendHoverLink") && d.push(h.id);
}), FE(r.getData(), function(h, p) {
var v = h.get("name");
if (!this.newlineDisabled && (v === "" || v === `
`)) {
var g = new Fb();
g.newline = !0, u.add(g);
return;
}
var m = i.getSeriesByName(v)[0];
if (!c.get(v)) {
if (m) {
var y = m.getData(), b = y.getVisual("legendLineStyle") || {}, _ = y.getVisual("legendIcon"), O = y.getVisual("style"), S = this._createItem(m, v, p, h, r, n, b, O, _, f, a);
S.on("click", _d(K7, v, null, a, d)).on("mouseover", _d(WE, m.name, null, a, d)).on("mouseout", _d(QE, m.name, null, a, d)), i.ssr && S.eachChild(function(x) {
var C = Fe(x);
C.seriesIndex = m.seriesIndex, C.dataIndex = p, C.ssrType = "legend";
}), c.set(v, !0);
} else
i.eachRawSeries(function(x) {
if (!c.get(v) && x.legendVisualProvider) {
var C = x.legendVisualProvider;
if (!C.containName(v))
return;
var T = C.indexOfName(v), w = C.getItemVisual(T, "style"), P = C.getItemVisual(T, "legendIcon"), $ = Kr(w.fill);
$ && $[3] === 0 && ($[3] = 0.2, w = le(le({}, w), {
fill: no($, "rgba")
}));
var A = this._createItem(x, v, p, h, r, n, {}, w, P, f, a);
A.on("click", _d(K7, null, v, a, d)).on("mouseover", _d(WE, null, v, a, d)).on("mouseout", _d(QE, null, v, a, d)), i.ssr && A.eachChild(function(D) {
var E = Fe(D);
E.seriesIndex = x.seriesIndex, E.dataIndex = p, E.ssrType = "legend";
}), c.set(v, !0);
}
}, this);
process.env.NODE_ENV !== "production" && (c.get(v) || console.warn(v + " series not exists. Legend data should be same with series name or data name."));
}
}, this), o && this._createSelector(o, r, a, s, l);
}, e.prototype._createSelector = function(n, r, i, a, o) {
var s = this.getSelectorGroup();
FE(n, function(u) {
var c = u.type, f = new gt({
style: {
x: 0,
y: 0,
align: "center",
verticalAlign: "middle"
},
onclick: function() {
i.dispatchAction({
type: c === "all" ? "legendAllSelect" : "legendInverseSelect"
});
}
});
s.add(f);
var d = r.getModel("selectorLabel"), h = r.getModel(["emphasis", "selectorLabel"]);
Pr(f, {
normal: d,
emphasis: h
}, {
defaultText: u.title
}), Yl(f);
});
}, e.prototype._createItem = function(n, r, i, a, o, s, l, u, c, f, d) {
var h = n.visualDrawType, p = o.get("itemWidth"), v = o.get("itemHeight"), g = o.isSelected(r), m = a.get("symbolRotate"), y = a.get("symbolKeepAspect"), b = a.get("icon");
c = b || c || "roundRect";
var _ = k9e(c, a, l, u, h, g, d), O = new Fb(), S = a.getModel("textStyle");
if (Me(n.getLegendIcon) && (!b || b === "inherit"))
O.add(n.getLegendIcon({
itemWidth: p,
itemHeight: v,
icon: c,
iconRotate: m,
itemStyle: _.itemStyle,
lineStyle: _.lineStyle,
symbolKeepAspect: y
}));
else {
var x = b === "inherit" && n.getData().getVisual("symbol") ? m === "inherit" ? n.getData().getVisual("symbolRotate") : m : 0;
O.add(L9e({
itemWidth: p,
itemHeight: v,
icon: c,
iconRotate: x,
itemStyle: _.itemStyle,
lineStyle: _.lineStyle,
symbolKeepAspect: y
}));
}
var C = s === "left" ? p + 5 : -5, T = s, w = o.get("formatter"), P = r;
Oe(w) && w ? P = w.replace("{name}", r ?? "") : Me(w) && (P = w(r));
var $ = g ? S.getTextColor() : a.get("inactiveColor");
O.add(new gt({
style: Zt(S, {
text: P,
x: C,
y: v / 2,
fill: $,
align: T,
verticalAlign: "middle"
}, {
inheritColor: $
})
}));
var A = new mt({
shape: O.getBoundingRect(),
style: {
// Cannot use 'invisible' because SVG SSR will miss the node
fill: "transparent"
}
}), D = a.getModel("tooltip");
return D.get("show") && Op({
el: A,
componentModel: o,
itemName: r,
itemTooltipOption: D.option
}), O.add(A), O.eachChild(function(E) {
E.silent = !0;
}), A.silent = !f, this.getContentGroup().add(O), Yl(O), O.__legendDataIndex = i, O;
}, e.prototype.layoutInner = function(n, r, i, a, o, s) {
var l = this.getContentGroup(), u = this.getSelectorGroup();
tf(n.get("orient"), l, n.get("itemGap"), i.width, i.height);
var c = l.getBoundingRect(), f = [-c.x, -c.y];
if (u.markRedraw(), l.markRedraw(), o) {
tf(
// Buttons in selectorGroup always layout horizontally
"horizontal",
u,
n.get("selectorItemGap", !0)
);
var d = u.getBoundingRect(), h = [-d.x, -d.y], p = n.get("selectorButtonGap", !0), v = n.getOrient().index, g = v === 0 ? "width" : "height", m = v === 0 ? "height" : "width", y = v === 0 ? "y" : "x";
s === "end" ? h[v] += c[g] + p : f[v] += d[g] + p, h[1 - v] += c[m] / 2 - d[m] / 2, u.x = h[0], u.y = h[1], l.x = f[0], l.y = f[1];
var b = {
x: 0,
y: 0
};
return b[g] = c[g] + p + d[g], b[m] = Math.max(c[m], d[m]), b[y] = Math.min(0, d[y] + h[1 - v]), b;
} else
return l.x = f[0], l.y = f[1], this.group.getBoundingRect();
}, e.prototype.remove = function() {
this.getContentGroup().removeAll(), this._isFirstRender = !0;
}, e.type = "legend.plain", e;
}(Xt)
);
function k9e(t, e, n, r, i, a, o) {
function s(g, m) {
g.lineWidth === "auto" && (g.lineWidth = m.lineWidth > 0 ? 2 : 0), FE(g, function(y, b) {
g[b] === "inherit" && (g[b] = m[b]);
});
}
var l = e.getModel("itemStyle"), u = l.getItemStyle(), c = t.lastIndexOf("empty", 0) === 0 ? "fill" : "stroke", f = l.getShallow("decal");
u.decal = !f || f === "inherit" ? r.decal : jh(f, o), u.fill === "inherit" && (u.fill = r[i]), u.stroke === "inherit" && (u.stroke = r[c]), u.opacity === "inherit" && (u.opacity = (i === "fill" ? r : n).opacity), s(u, r);
var d = e.getModel("lineStyle"), h = d.getLineStyle();
if (s(h, n), u.fill === "auto" && (u.fill = r.fill), u.stroke === "auto" && (u.stroke = r.fill), h.stroke === "auto" && (h.stroke = r.fill), !a) {
var p = e.get("inactiveBorderWidth"), v = u[c];
u.lineWidth = p === "auto" ? r.lineWidth > 0 && v ? 2 : 0 : u.lineWidth, u.fill = e.get("inactiveColor"), u.stroke = e.get("inactiveBorderColor"), h.stroke = d.get("inactiveColor"), h.lineWidth = d.get("inactiveWidth");
}
return {
itemStyle: u,
lineStyle: h
};
}
function L9e(t) {
var e = t.icon || "roundRect", n = $n(e, 0, 0, t.itemWidth, t.itemHeight, t.itemStyle.fill, t.symbolKeepAspect);
return n.setStyle(t.itemStyle), n.rotation = (t.iconRotate || 0) * Math.PI / 180, n.setOrigin([t.itemWidth / 2, t.itemHeight / 2]), e.indexOf("empty") > -1 && (n.style.stroke = n.style.fill, n.style.fill = "#fff", n.style.lineWidth = 2), n;
}
function K7(t, e, n, r) {
QE(t, e, n, r), n.dispatchAction({
type: "legendToggleSelect",
name: t ?? e
}), WE(t, e, n, r);
}
function rie(t) {
for (var e = t.getZr().storage.getDisplayList(), n, r = 0, i = e.length; r < i && !(n = e[r].states.emphasis); )
r++;
return n && n.hoverLayer;
}
function WE(t, e, n, r) {
rie(n) || n.dispatchAction({
type: "highlight",
seriesName: t,
name: e,
excludeSeriesId: r
});
}
function QE(t, e, n, r) {
rie(n) || n.dispatchAction({
type: "downplay",
seriesName: t,
name: e,
excludeSeriesId: r
});
}
function N9e(t) {
var e = t.findComponents({
mainType: "legend"
});
e && e.length && t.filterSeries(function(n) {
for (var r = 0; r < e.length; r++)
if (!e[r].isSelected(n.name))
return !1;
return !0;
});
}
function $v(t, e, n) {
var r = {}, i = t === "toggleSelected", a;
return n.eachComponent("legend", function(o) {
i && a != null ? o[a ? "select" : "unSelect"](e.name) : t === "allSelect" || t === "inverseSelect" ? o[t]() : (o[t](e.name), a = o.isSelected(e.name));
var s = o.getData();
k(s, function(l) {
var u = l.get("name");
if (!(u === `
` || u === "")) {
var c = o.isSelected(u);
r.hasOwnProperty(u) ? r[u] = r[u] && c : r[u] = c;
}
});
}), t === "allSelect" || t === "inverseSelect" ? {
selected: r
} : {
name: e.name,
selected: r
};
}
function B9e(t) {
t.registerAction("legendToggleSelect", "legendselectchanged", Ue($v, "toggleSelected")), t.registerAction("legendAllSelect", "legendselectall", Ue($v, "allSelect")), t.registerAction("legendInverseSelect", "legendinverseselect", Ue($v, "inverseSelect")), t.registerAction("legendSelect", "legendselected", Ue($v, "select")), t.registerAction("legendUnSelect", "legendunselected", Ue($v, "unSelect"));
}
function iie(t) {
t.registerComponentModel(VE), t.registerComponentView(nie), t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER, N9e), t.registerSubTypeDefaulter("legend", function() {
return "plain";
}), B9e(t);
}
var z9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.setScrollDataIndex = function(n) {
this.option.scrollDataIndex = n;
}, e.prototype.init = function(n, r, i) {
var a = wp(n);
t.prototype.init.call(this, n, r, i), J7(this, n, a);
}, e.prototype.mergeOption = function(n, r) {
t.prototype.mergeOption.call(this, n, r), J7(this, this.option, n);
}, e.type = "legend.scroll", e.defaultOption = Pu(VE.defaultOption, {
scrollDataIndex: 0,
pageButtonItemGap: 5,
pageButtonGap: null,
pageButtonPosition: "end",
pageFormatter: "{current}/{total}",
pageIcons: {
horizontal: ["M0,0L12,-10L12,10z", "M0,0L-12,-10L-12,10z"],
vertical: ["M0,0L20,0L10,-20z", "M0,0L20,0L10,20z"]
},
pageIconColor: "#2f4554",
pageIconInactiveColor: "#aaa",
pageIconSize: 15,
pageTextStyle: {
color: "#333"
},
animationDurationUpdate: 800
}), e;
}(VE)
);
function J7(t, e, n) {
var r = t.getOrient(), i = [1, 1];
i[r.index] = 0, cu(e, n, {
type: "box",
ignoreSize: !!i
});
}
var eQ = Ve, n$ = ["width", "height"], r$ = ["x", "y"], V9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.newlineDisabled = !0, n._currentIndex = 0, n;
}
return e.prototype.init = function() {
t.prototype.init.call(this), this.group.add(this._containerGroup = new eQ()), this._containerGroup.add(this.getContentGroup()), this.group.add(this._controllerGroup = new eQ());
}, e.prototype.resetInner = function() {
t.prototype.resetInner.call(this), this._controllerGroup.removeAll(), this._containerGroup.removeClipPath(), this._containerGroup.__rectSize = null;
}, e.prototype.renderInner = function(n, r, i, a, o, s, l) {
var u = this;
t.prototype.renderInner.call(this, n, r, i, a, o, s, l);
var c = this._controllerGroup, f = r.get("pageIconSize", !0), d = ue(f) ? f : [f, f];
p("pagePrev", 0);
var h = r.getModel("pageTextStyle");
c.add(new gt({
name: "pageText",
style: {
// Placeholder to calculate a proper layout.
text: "xx/xx",
fill: h.getTextColor(),
font: h.getFont(),
verticalAlign: "middle",
align: "center"
},
silent: !0
})), p("pageNext", 1);
function p(v, g) {
var m = v + "DataIndex", y = _p(r.get("pageIcons", !0)[r.getOrient().name][g], {
// Buttons will be created in each render, so we do not need
// to worry about avoiding using legendModel kept in scope.
onclick: xe(u._pageGo, u, m, r, a)
}, {
x: -d[0] / 2,
y: -d[1] / 2,
width: d[0],
height: d[1]
});
y.name = v, c.add(y);
}
}, e.prototype.layoutInner = function(n, r, i, a, o, s) {
var l = this.getSelectorGroup(), u = n.getOrient().index, c = n$[u], f = r$[u], d = n$[1 - u], h = r$[1 - u];
o && tf(
// Buttons in selectorGroup always layout horizontally
"horizontal",
l,
n.get("selectorItemGap", !0)
);
var p = n.get("selectorButtonGap", !0), v = l.getBoundingRect(), g = [-v.x, -v.y], m = Le(i);
o && (m[c] = i[c] - v[c] - p);
var y = this._layoutContentAndController(n, a, m, u, c, d, h, f);
if (o) {
if (s === "end")
g[u] += y[c] + p;
else {
var b = v[c] + p;
g[u] -= b, y[f] -= b;
}
y[c] += v[c] + p, g[1 - u] += y[h] + y[d] / 2 - v[d] / 2, y[d] = Math.max(y[d], v[d]), y[h] = Math.min(y[h], v[h] + g[1 - u]), l.x = g[0], l.y = g[1], l.markRedraw();
}
return y;
}, e.prototype._layoutContentAndController = function(n, r, i, a, o, s, l, u) {
var c = this.getContentGroup(), f = this._containerGroup, d = this._controllerGroup;
tf(n.get("orient"), c, n.get("itemGap"), a ? i.width : null, a ? null : i.height), tf(
// Buttons in controller are layout always horizontally.
"horizontal",
d,
n.get("pageButtonItemGap", !0)
);
var h = c.getBoundingRect(), p = d.getBoundingRect(), v = this._showController = h[o] > i[o], g = [-h.x, -h.y];
r || (g[a] = c[u]);
var m = [0, 0], y = [-p.x, -p.y], b = We(n.get("pageButtonGap", !0), n.get("itemGap", !0));
if (v) {
var _ = n.get("pageButtonPosition", !0);
_ === "end" ? y[a] += i[o] - p[o] : m[a] += p[o] + b;
}
y[1 - a] += h[s] / 2 - p[s] / 2, c.setPosition(g), f.setPosition(m), d.setPosition(y);
var O = {
x: 0,
y: 0
};
if (O[o] = v ? i[o] : h[o], O[s] = Math.max(h[s], p[s]), O[l] = Math.min(0, p[l] + y[1 - a]), f.__rectSize = i[o], v) {
var S = {
x: 0,
y: 0
};
S[o] = Math.max(i[o] - p[o] - b, 0), S[s] = O[s], f.setClipPath(new mt({
shape: S
})), f.__rectSize = S[o];
} else
d.eachChild(function(C) {
C.attr({
invisible: !0,
silent: !0
});
});
var x = this._getPageInfo(n);
return x.pageIndex != null && Ct(
c,
{
x: x.contentPosition[0],
y: x.contentPosition[1]
},
// When switch from "show controller" to "not show controller", view should be
// updated immediately without animation, otherwise causes weird effect.
v ? n : null
), this._updatePageInfoView(n, x), O;
}, e.prototype._pageGo = function(n, r, i) {
var a = this._getPageInfo(r)[n];
a != null && i.dispatchAction({
type: "legendScroll",
scrollDataIndex: a,
legendId: r.id
});
}, e.prototype._updatePageInfoView = function(n, r) {
var i = this._controllerGroup;
k(["pagePrev", "pageNext"], function(c) {
var f = c + "DataIndex", d = r[f] != null, h = i.childOfName(c);
h && (h.setStyle("fill", d ? n.get("pageIconColor", !0) : n.get("pageIconInactiveColor", !0)), h.cursor = d ? "pointer" : "default");
});
var a = i.childOfName("pageText"), o = n.get("pageFormatter"), s = r.pageIndex, l = s != null ? s + 1 : 0, u = r.pageCount;
a && o && a.setStyle("text", Oe(o) ? o.replace("{current}", l == null ? "" : l + "").replace("{total}", u == null ? "" : u + "") : o({
current: l,
total: u
}));
}, e.prototype._getPageInfo = function(n) {
var r = n.get("scrollDataIndex", !0), i = this.getContentGroup(), a = this._containerGroup.__rectSize, o = n.getOrient().index, s = n$[o], l = r$[o], u = this._findTargetItemIndex(r), c = i.children(), f = c[u], d = c.length, h = d ? 1 : 0, p = {
contentPosition: [i.x, i.y],
pageCount: h,
pageIndex: h - 1,
pagePrevDataIndex: null,
pageNextDataIndex: null
};
if (!f)
return p;
var v = _(f);
p.contentPosition[o] = -v.s;
for (var g = u + 1, m = v, y = v, b = null; g <= d; ++g)
b = _(c[g]), // Half of the last item is out of the window.
(!b && y.e > m.s + a || b && !O(b, m.s)) && (y.i > m.i ? m = y : m = b, m && (p.pageNextDataIndex == null && (p.pageNextDataIndex = m.i), ++p.pageCount)), y = b;
for (var g = u - 1, m = v, y = v, b = null; g >= -1; --g)
b = _(c[g]), // If the the end item does not intersect with the window started
// from the current item, a page can be settled.
(!b || !O(y, b.s)) && m.i < y.i && (y = m, p.pagePrevDataIndex == null && (p.pagePrevDataIndex = m.i), ++p.pageCount, ++p.pageIndex), m = b;
return p;
function _(S) {
if (S) {
var x = S.getBoundingRect(), C = x[l] + S[l];
return {
s: C,
e: C + x[s],
i: S.__legendDataIndex
};
}
}
function O(S, x) {
return S.e >= x && S.s <= x + a;
}
}, e.prototype._findTargetItemIndex = function(n) {
if (!this._showController)
return 0;
var r, i = this.getContentGroup(), a;
return i.eachChild(function(o, s) {
var l = o.__legendDataIndex;
a == null && l != null && (a = s), l === n && (r = s);
}), r ?? a;
}, e.type = "legend.scroll", e;
}(nie)
);
function F9e(t) {
t.registerAction("legendScroll", "legendscroll", function(e, n) {
var r = e.scrollDataIndex;
r != null && n.eachComponent({
mainType: "legend",
subType: "scroll",
query: e
}, function(i) {
i.setScrollDataIndex(r);
});
});
}
function W9e(t) {
at(iie), t.registerComponentModel(z9e), t.registerComponentView(V9e), F9e(t);
}
function Q9e(t) {
at(iie), at(W9e);
}
var H9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "dataZoom.inside", e.defaultOption = Pu(Gm.defaultOption, {
disabled: !1,
zoomLock: !1,
zoomOnMouseWheel: !0,
moveOnMouseMove: !0,
moveOnMouseWheel: !1,
preventDefaultMouseMove: !0
}), e;
}(Gm)
), ML = bt();
function G9e(t, e, n) {
ML(t).coordSysRecordMap.each(function(r) {
var i = r.dataZoomInfoMap.get(e.uid);
i && (i.getRange = n);
});
}
function j9e(t, e) {
for (var n = ML(t).coordSysRecordMap, r = n.keys(), i = 0; i < r.length; i++) {
var a = r[i], o = n.get(a), s = o.dataZoomInfoMap;
if (s) {
var l = e.uid, u = s.get(l);
u && (s.removeKey(l), s.keys().length || aie(n, o));
}
}
}
function aie(t, e) {
if (e) {
t.removeKey(e.model.uid);
var n = e.controller;
n && n.dispose();
}
}
function Z9e(t, e) {
var n = {
model: e,
containsPoint: Ue(X9e, e),
dispatchAction: Ue(U9e, t),
dataZoomInfoMap: null,
controller: null
}, r = n.controller = new J0(t.getZr());
return k(["pan", "zoom", "scrollMove"], function(i) {
r.on(i, function(a) {
var o = [];
n.dataZoomInfoMap.each(function(s) {
if (a.isAvailableBehavior(s.model.option)) {
var l = (s.getRange || {})[i], u = l && l(s.dzReferCoordSysInfo, n.model.mainType, n.controller, a);
!s.model.get("disabled", !0) && u && o.push({
dataZoomId: s.model.id,
start: u[0],
end: u[1]
});
}
}), o.length && n.dispatchAction(o);
});
}), n;
}
function U9e(t, e) {
t.isDisposed() || t.dispatchAction({
type: "dataZoom",
animation: {
easing: "cubicOut",
duration: 100
},
batch: e
});
}
function X9e(t, e, n, r) {
return t.coordinateSystem.containPoint([n, r]);
}
function Y9e(t) {
var e, n = "type_", r = {
type_true: 2,
type_move: 1,
type_false: 0,
type_undefined: -1
}, i = !0;
return t.each(function(a) {
var o = a.model, s = o.get("disabled", !0) ? !1 : o.get("zoomLock", !0) ? "move" : !0;
r[n + s] > r[n + e] && (e = s), i = i && o.get("preventDefaultMouseMove", !0);
}), {
controlType: e,
opt: {
// RoamController will enable all of these functionalities,
// and the final behavior is determined by its event listener
// provided by each inside zoom.
zoomOnMouseWheel: !0,
moveOnMouseMove: !0,
moveOnMouseWheel: !0,
preventDefaultMouseMove: !!i
}
};
}
function q9e(t) {
t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, function(e, n) {
var r = ML(n), i = r.coordSysRecordMap || (r.coordSysRecordMap = Pe());
i.each(function(a) {
a.dataZoomInfoMap = null;
}), e.eachComponent({
mainType: "dataZoom",
subType: "inside"
}, function(a) {
var o = Fre(a);
k(o.infoList, function(s) {
var l = s.model.uid, u = i.get(l) || i.set(l, Z9e(n, s.model)), c = u.dataZoomInfoMap || (u.dataZoomInfoMap = Pe());
c.set(a.uid, {
dzReferCoordSysInfo: s,
model: a,
getRange: null
});
});
}), i.each(function(a) {
var o = a.controller, s, l = a.dataZoomInfoMap;
if (l) {
var u = l.keys()[0];
u != null && (s = l.get(u));
}
if (!s) {
aie(i, a);
return;
}
var c = Y9e(l);
o.enable(c.controlType, c.opt), o.setPointerChecker(a.containsPoint), Pp(a, "dispatchAction", s.model.get("throttle", !0), "fixRate");
});
});
}
var K9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "dataZoom.inside", n;
}
return e.prototype.render = function(n, r, i) {
if (t.prototype.render.apply(this, arguments), n.noTarget()) {
this._clear();
return;
}
this.range = n.getPercentRange(), G9e(i, n, {
pan: xe(i$.pan, this),
zoom: xe(i$.zoom, this),
scrollMove: xe(i$.scrollMove, this)
});
}, e.prototype.dispose = function() {
this._clear(), t.prototype.dispose.apply(this, arguments);
}, e.prototype._clear = function() {
j9e(this.api, this.dataZoomModel), this.range = null;
}, e.type = "dataZoom.inside", e;
}(SL)
), i$ = {
zoom: function(t, e, n, r) {
var i = this.range, a = i.slice(), o = t.axisModels[0];
if (o) {
var s = a$[e](null, [r.originX, r.originY], o, n, t), l = (s.signal > 0 ? s.pixelStart + s.pixelLength - s.pixel : s.pixel - s.pixelStart) / s.pixelLength * (a[1] - a[0]) + a[0], u = Math.max(1 / r.scale, 0);
a[0] = (a[0] - l) * u + l, a[1] = (a[1] - l) * u + l;
var c = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
if (Hf(0, a, [0, 100], 0, c.minSpan, c.maxSpan), this.range = a, i[0] !== a[0] || i[1] !== a[1])
return a;
}
},
pan: tQ(function(t, e, n, r, i, a) {
var o = a$[r]([a.oldX, a.oldY], [a.newX, a.newY], e, i, n);
return o.signal * (t[1] - t[0]) * o.pixel / o.pixelLength;
}),
scrollMove: tQ(function(t, e, n, r, i, a) {
var o = a$[r]([0, 0], [a.scrollDelta, a.scrollDelta], e, i, n);
return o.signal * (t[1] - t[0]) * a.scrollDelta;
})
};
function tQ(t) {
return function(e, n, r, i) {
var a = this.range, o = a.slice(), s = e.axisModels[0];
if (s) {
var l = t(o, s, e, n, r, i);
if (Hf(l, o, [0, 100], "all"), this.range = o, a[0] !== o[0] || a[1] !== o[1])
return o;
}
};
}
var a$ = {
grid: function(t, e, n, r, i) {
var a = n.axis, o = {}, s = i.model.coordinateSystem.getRect();
return t = t || [0, 0], a.dim === "x" ? (o.pixel = e[0] - t[0], o.pixelLength = s.width, o.pixelStart = s.x, o.signal = a.inverse ? 1 : -1) : (o.pixel = e[1] - t[1], o.pixelLength = s.height, o.pixelStart = s.y, o.signal = a.inverse ? -1 : 1), o;
},
polar: function(t, e, n, r, i) {
var a = n.axis, o = {}, s = i.model.coordinateSystem, l = s.getRadiusAxis().getExtent(), u = s.getAngleAxis().getExtent();
return t = t ? s.pointToCoord(t) : [0, 0], e = s.pointToCoord(e), n.mainType === "radiusAxis" ? (o.pixel = e[0] - t[0], o.pixelLength = l[1] - l[0], o.pixelStart = l[0], o.signal = a.inverse ? 1 : -1) : (o.pixel = e[1] - t[1], o.pixelLength = u[1] - u[0], o.pixelStart = u[0], o.signal = a.inverse ? -1 : 1), o;
},
singleAxis: function(t, e, n, r, i) {
var a = n.axis, o = i.model.coordinateSystem.getRect(), s = {};
return t = t || [0, 0], a.orient === "horizontal" ? (s.pixel = e[0] - t[0], s.pixelLength = o.width, s.pixelStart = o.x, s.signal = a.inverse ? 1 : -1) : (s.pixel = e[1] - t[1], s.pixelLength = o.height, s.pixelStart = o.y, s.signal = a.inverse ? -1 : 1), s;
}
};
function oie(t) {
xL(t), t.registerComponentModel(H9e), t.registerComponentView(K9e), q9e(t);
}
var J9e = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.type = "dataZoom.slider", e.layoutMode = "box", e.defaultOption = Pu(Gm.defaultOption, {
show: !0,
// deault value can only be drived in view stage.
right: "ph",
top: "ph",
width: "ph",
height: "ph",
left: null,
bottom: null,
borderColor: "#d2dbee",
borderRadius: 3,
backgroundColor: "rgba(47,69,84,0)",
// dataBackgroundColor: '#ddd',
dataBackground: {
lineStyle: {
color: "#d2dbee",
width: 0.5
},
areaStyle: {
color: "#d2dbee",
opacity: 0.2
}
},
selectedDataBackground: {
lineStyle: {
color: "#8fb0f7",
width: 0.5
},
areaStyle: {
color: "#8fb0f7",
opacity: 0.2
}
},
// Color of selected window.
fillerColor: "rgba(135,175,274,0.2)",
handleIcon: "path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
// Percent of the slider height
handleSize: "100%",
handleStyle: {
color: "#fff",
borderColor: "#ACB8D1"
},
moveHandleSize: 7,
moveHandleIcon: "path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",
moveHandleStyle: {
color: "#D2DBEE",
opacity: 0.7
},
showDetail: !0,
showDataShadow: "auto",
realtime: !0,
zoomLock: !1,
textStyle: {
color: "#6E7079"
},
brushSelect: !0,
brushStyle: {
color: "rgba(135,175,274,0.15)"
},
emphasis: {
handleStyle: {
borderColor: "#8FB0F7"
},
moveHandleStyle: {
color: "#8FB0F7"
}
}
}), e;
}(Gm)
), Av = mt, nQ = 7, eje = 1, o$ = 30, tje = 7, Ev = "horizontal", rQ = "vertical", nje = 5, rje = ["line", "bar", "candlestick", "scatter"], ije = {
easing: "cubicOut",
duration: 100,
delay: 0
}, aje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._displayables = {}, n;
}
return e.prototype.init = function(n, r) {
this.api = r, this._onBrush = xe(this._onBrush, this), this._onBrushEnd = xe(this._onBrushEnd, this);
}, e.prototype.render = function(n, r, i, a) {
if (t.prototype.render.apply(this, arguments), Pp(this, "_dispatchZoomAction", n.get("throttle"), "fixRate"), this._orient = n.getOrient(), n.get("show") === !1) {
this.group.removeAll();
return;
}
if (n.noTarget()) {
this._clear(), this.group.removeAll();
return;
}
(!a || a.type !== "dataZoom" || a.from !== this.uid) && this._buildView(), this._updateView();
}, e.prototype.dispose = function() {
this._clear(), t.prototype.dispose.apply(this, arguments);
}, e.prototype._clear = function() {
Im(this, "_dispatchZoomAction");
var n = this.api.getZr();
n.off("mousemove", this._onBrush), n.off("mouseup", this._onBrushEnd);
}, e.prototype._buildView = function() {
var n = this.group;
n.removeAll(), this._brushing = !1, this._displayables.brushRect = null, this._resetLocation(), this._resetInterval();
var r = this._displayables.sliderGroup = new Ve();
this._renderBackground(), this._renderHandle(), this._renderDataShadow(), n.add(r), this._positionGroup();
}, e.prototype._resetLocation = function() {
var n = this.dataZoomModel, r = this.api, i = n.get("brushSelect"), a = i ? tje : 0, o = this._findCoordRect(), s = {
width: r.getWidth(),
height: r.getHeight()
}, l = this._orient === Ev ? {
// Why using 'right', because right should be used in vertical,
// and it is better to be consistent for dealing with position param merge.
right: s.width - o.x - o.width,
top: s.height - o$ - nQ - a,
width: o.width,
height: o$
} : {
right: nQ,
top: o.y,
width: o$,
height: o.height
}, u = wp(n.option);
k(["right", "top", "width", "height"], function(f) {
u[f] === "ph" && (u[f] = l[f]);
});
var c = Rn(u, s);
this._location = {
x: c.x,
y: c.y
}, this._size = [c.width, c.height], this._orient === rQ && this._size.reverse();
}, e.prototype._positionGroup = function() {
var n = this.group, r = this._location, i = this._orient, a = this.dataZoomModel.getFirstTargetAxisModel(), o = a && a.get("inverse"), s = this._displayables.sliderGroup, l = (this._dataShadowInfo || {}).otherAxisInverse;
s.attr(i === Ev && !o ? {
scaleY: l ? 1 : -1,
scaleX: 1
} : i === Ev && o ? {
scaleY: l ? 1 : -1,
scaleX: -1
} : i === rQ && !o ? {
scaleY: l ? -1 : 1,
scaleX: 1,
rotation: Math.PI / 2
} : {
scaleY: l ? -1 : 1,
scaleX: -1,
rotation: Math.PI / 2
});
var u = n.getBoundingRect([s]);
n.x = r.x - u.x, n.y = r.y - u.y, n.markRedraw();
}, e.prototype._getViewExtent = function() {
return [0, this._size[0]];
}, e.prototype._renderBackground = function() {
var n = this.dataZoomModel, r = this._size, i = this._displayables.sliderGroup, a = n.get("brushSelect");
i.add(new Av({
silent: !0,
shape: {
x: 0,
y: 0,
width: r[0],
height: r[1]
},
style: {
fill: n.get("backgroundColor")
},
z2: -40
}));
var o = new Av({
shape: {
x: 0,
y: 0,
width: r[0],
height: r[1]
},
style: {
fill: "transparent"
},
z2: 0,
onclick: xe(this._onClickPanel, this)
}), s = this.api.getZr();
a ? (o.on("mousedown", this._onBrushStart, this), o.cursor = "crosshair", s.on("mousemove", this._onBrush), s.on("mouseup", this._onBrushEnd)) : (s.off("mousemove", this._onBrush), s.off("mouseup", this._onBrushEnd)), i.add(o);
}, e.prototype._renderDataShadow = function() {
var n = this._dataShadowInfo = this._prepareDataShadowInfo();
if (this._displayables.dataShadowSegs = [], !n)
return;
var r = this._size, i = this._shadowSize || [], a = n.series, o = a.getRawData(), s = a.getShadowDim && a.getShadowDim(), l = s && o.getDimensionInfo(s) ? a.getShadowDim() : n.otherDim;
if (l == null)
return;
var u = this._shadowPolygonPts, c = this._shadowPolylinePts;
if (o !== this._shadowData || l !== this._shadowDim || r[0] !== i[0] || r[1] !== i[1]) {
var f = o.getDataExtent(l), d = (f[1] - f[0]) * 0.3;
f = [f[0] - d, f[1] + d];
var h = [0, r[1]], p = [0, r[0]], v = [[r[0], 0], [0, 0]], g = [], m = p[1] / (o.count() - 1), y = 0, b = Math.round(o.count() / r[0]), _;
o.each([l], function(T, w) {
if (b > 0 && w % b) {
y += m;
return;
}
var P = T == null || isNaN(T) || T === "", $ = P ? 0 : Lt(T, f, h, !0);
P && !_ && w ? (v.push([v[v.length - 1][0], 0]), g.push([g[g.length - 1][0], 0])) : !P && _ && (v.push([y, 0]), g.push([y, 0])), v.push([y, $]), g.push([y, $]), y += m, _ = P;
}), u = this._shadowPolygonPts = v, c = this._shadowPolylinePts = g;
}
this._shadowData = o, this._shadowDim = l, this._shadowSize = [r[0], r[1]];
var O = this.dataZoomModel;
function S(T) {
var w = O.getModel(T ? "selectedDataBackground" : "dataBackground"), P = new Ve(), $ = new ai({
shape: {
points: u
},
segmentIgnoreThreshold: 1,
style: w.getModel("areaStyle").getAreaStyle(),
silent: !0,
z2: -20
}), A = new oi({
shape: {
points: c
},
segmentIgnoreThreshold: 1,
style: w.getModel("lineStyle").getLineStyle(),
silent: !0,
z2: -19
});
return P.add($), P.add(A), P;
}
for (var x = 0; x < 3; x++) {
var C = S(x === 1);
this._displayables.sliderGroup.add(C), this._displayables.dataShadowSegs.push(C);
}
}, e.prototype._prepareDataShadowInfo = function() {
var n = this.dataZoomModel, r = n.get("showDataShadow");
if (r !== !1) {
var i, a = this.ecModel;
return n.eachTargetAxis(function(o, s) {
var l = n.getAxisProxy(o, s).getTargetSeriesModels();
k(l, function(u) {
if (!i && !(r !== !0 && et(rje, u.get("type")) < 0)) {
var c = a.getComponent(Fl(o), s).axis, f = oje(o), d, h = u.coordinateSystem;
f != null && h.getOtherAxis && (d = h.getOtherAxis(c).inverse), f = u.getData().mapDimension(f), i = {
thisAxis: c,
series: u,
thisDim: o,
otherDim: f,
otherAxisInverse: d
};
}
}, this);
}, this), i;
}
}, e.prototype._renderHandle = function() {
var n = this.group, r = this._displayables, i = r.handles = [null, null], a = r.handleLabels = [null, null], o = this._displayables.sliderGroup, s = this._size, l = this.dataZoomModel, u = this.api, c = l.get("borderRadius") || 0, f = l.get("brushSelect"), d = r.filler = new Av({
silent: f,
style: {
fill: l.get("fillerColor")
},
textConfig: {
position: "inside"
}
});
o.add(d), o.add(new Av({
silent: !0,
subPixelOptimize: !0,
shape: {
x: 0,
y: 0,
width: s[0],
height: s[1],
r: c
},
style: {
// deprecated option
stroke: l.get("dataBackgroundColor") || l.get("borderColor"),
lineWidth: eje,
fill: "rgba(0,0,0,0)"
}
})), k([0, 1], function(b) {
var _ = l.get("handleIcon");
!yO[_] && _.indexOf("path://") < 0 && _.indexOf("image://") < 0 && (_ = "path://" + _, process.env.NODE_ENV !== "production" && Ia("handleIcon now needs 'path://' prefix when using a path string"));
var O = $n(_, -1, 0, 2, 2, null, !0);
O.attr({
cursor: iQ(this._orient),
draggable: !0,
drift: xe(this._onDragMove, this, b),
ondragend: xe(this._onDragEnd, this),
onmouseover: xe(this._showDataInfo, this, !0),
onmouseout: xe(this._showDataInfo, this, !1),
z2: 5
});
var S = O.getBoundingRect(), x = l.get("handleSize");
this._handleHeight = _e(x, this._size[1]), this._handleWidth = S.width / S.height * this._handleHeight, O.setStyle(l.getModel("handleStyle").getItemStyle()), O.style.strokeNoScale = !0, O.rectHover = !0, O.ensureState("emphasis").style = l.getModel(["emphasis", "handleStyle"]).getItemStyle(), Yl(O);
var C = l.get("handleColor");
C != null && (O.style.fill = C), o.add(i[b] = O);
var T = l.getModel("textStyle");
n.add(a[b] = new gt({
silent: !0,
invisible: !0,
style: Zt(T, {
x: 0,
y: 0,
text: "",
verticalAlign: "middle",
align: "center",
fill: T.getTextColor(),
font: T.getFont()
}),
z2: 10
}));
}, this);
var h = d;
if (f) {
var p = _e(l.get("moveHandleSize"), s[1]), v = r.moveHandle = new mt({
style: l.getModel("moveHandleStyle").getItemStyle(),
silent: !0,
shape: {
r: [0, 0, 2, 2],
y: s[1] - 0.5,
height: p
}
}), g = p * 0.8, m = r.moveHandleIcon = $n(l.get("moveHandleIcon"), -g / 2, -g / 2, g, g, "#fff", !0);
m.silent = !0, m.y = s[1] + p / 2 - 0.5, v.ensureState("emphasis").style = l.getModel(["emphasis", "moveHandleStyle"]).getItemStyle();
var y = Math.min(s[1] / 2, Math.max(p, 10));
h = r.moveZone = new mt({
invisible: !0,
shape: {
y: s[1] - y,
height: p + y
}
}), h.on("mouseover", function() {
u.enterEmphasis(v);
}).on("mouseout", function() {
u.leaveEmphasis(v);
}), o.add(v), o.add(m), o.add(h);
}
h.attr({
draggable: !0,
cursor: iQ(this._orient),
drift: xe(this._onDragMove, this, "all"),
ondragstart: xe(this._showDataInfo, this, !0),
ondragend: xe(this._onDragEnd, this),
onmouseover: xe(this._showDataInfo, this, !0),
onmouseout: xe(this._showDataInfo, this, !1)
});
}, e.prototype._resetInterval = function() {
var n = this._range = this.dataZoomModel.getPercentRange(), r = this._getViewExtent();
this._handleEnds = [Lt(n[0], [0, 100], r, !0), Lt(n[1], [0, 100], r, !0)];
}, e.prototype._updateInterval = function(n, r) {
var i = this.dataZoomModel, a = this._handleEnds, o = this._getViewExtent(), s = i.findRepresentativeAxisProxy().getMinMaxSpan(), l = [0, 100];
Hf(r, a, o, i.get("zoomLock") ? "all" : n, s.minSpan != null ? Lt(s.minSpan, l, o, !0) : null, s.maxSpan != null ? Lt(s.maxSpan, l, o, !0) : null);
var u = this._range, c = this._range = Wi([Lt(a[0], o, l, !0), Lt(a[1], o, l, !0)]);
return !u || u[0] !== c[0] || u[1] !== c[1];
}, e.prototype._updateView = function(n) {
var r = this._displayables, i = this._handleEnds, a = Wi(i.slice()), o = this._size;
k([0, 1], function(h) {
var p = r.handles[h], v = this._handleHeight;
p.attr({
scaleX: v / 2,
scaleY: v / 2,
// This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.
// NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.
x: i[h] + (h ? -1 : 1),
y: o[1] / 2 - v / 2
});
}, this), r.filler.setShape({
x: a[0],
y: 0,
width: a[1] - a[0],
height: o[1]
});
var s = {
x: a[0],
width: a[1] - a[0]
};
r.moveHandle && (r.moveHandle.setShape(s), r.moveZone.setShape(s), r.moveZone.getBoundingRect(), r.moveHandleIcon && r.moveHandleIcon.attr("x", s.x + s.width / 2));
for (var l = r.dataShadowSegs, u = [0, a[0], a[1], o[0]], c = 0; c < l.length; c++) {
var f = l[c], d = f.getClipPath();
d || (d = new mt(), f.setClipPath(d)), d.setShape({
x: u[c],
y: 0,
width: u[c + 1] - u[c],
height: o[1]
});
}
this._updateDataInfo(n);
}, e.prototype._updateDataInfo = function(n) {
var r = this.dataZoomModel, i = this._displayables, a = i.handleLabels, o = this._orient, s = ["", ""];
if (r.get("showDetail")) {
var l = r.findRepresentativeAxisProxy();
if (l) {
var u = l.getAxisModel().axis, c = this._range, f = n ? l.calculateDataWindow({
start: c[0],
end: c[1]
}).valueWindow : l.getDataValueWindow();
s = [this._formatLabel(f[0], u), this._formatLabel(f[1], u)];
}
}
var d = Wi(this._handleEnds.slice());
h.call(this, 0), h.call(this, 1);
function h(p) {
var v = ql(i.handles[p].parent, this.group), g = ew(p === 0 ? "right" : "left", v), m = this._handleWidth / 2 + nje, y = ro([d[p] + (p === 0 ? -m : m), this._size[1] / 2], v);
a[p].setStyle({
x: y[0],
y: y[1],
verticalAlign: o === Ev ? "middle" : g,
align: o === Ev ? g : "center",
text: s[p]
});
}
}, e.prototype._formatLabel = function(n, r) {
var i = this.dataZoomModel, a = i.get("labelFormatter"), o = i.get("labelPrecision");
(o == null || o === "auto") && (o = r.getPixelPrecision());
var s = n == null || isNaN(n) ? "" : r.type === "category" || r.type === "time" ? r.scale.getLabel({
value: Math.round(n)
}) : n.toFixed(Math.min(o, 20));
return Me(a) ? a(n, s) : Oe(a) ? a.replace("{value}", s) : s;
}, e.prototype._showDataInfo = function(n) {
n = this._dragging || n;
var r = this._displayables, i = r.handleLabels;
i[0].attr("invisible", !n), i[1].attr("invisible", !n), r.moveHandle && this.api[n ? "enterEmphasis" : "leaveEmphasis"](r.moveHandle, 1);
}, e.prototype._onDragMove = function(n, r, i, a) {
this._dragging = !0, js(a.event);
var o = this._displayables.sliderGroup.getLocalTransform(), s = ro([r, i], o, !0), l = this._updateInterval(n, s[0]), u = this.dataZoomModel.get("realtime");
this._updateView(!u), l && u && this._dispatchZoomAction(!0);
}, e.prototype._onDragEnd = function() {
this._dragging = !1, this._showDataInfo(!1);
var n = this.dataZoomModel.get("realtime");
!n && this._dispatchZoomAction(!1);
}, e.prototype._onClickPanel = function(n) {
var r = this._size, i = this._displayables.sliderGroup.transformCoordToLocal(n.offsetX, n.offsetY);
if (!(i[0] < 0 || i[0] > r[0] || i[1] < 0 || i[1] > r[1])) {
var a = this._handleEnds, o = (a[0] + a[1]) / 2, s = this._updateInterval("all", i[0] - o);
this._updateView(), s && this._dispatchZoomAction(!1);
}
}, e.prototype._onBrushStart = function(n) {
var r = n.offsetX, i = n.offsetY;
this._brushStart = new Ke(r, i), this._brushing = !0, this._brushStartTime = +/* @__PURE__ */ new Date();
}, e.prototype._onBrushEnd = function(n) {
if (this._brushing) {
var r = this._displayables.brushRect;
if (this._brushing = !1, !!r) {
r.attr("ignore", !0);
var i = r.shape, a = +/* @__PURE__ */ new Date();
if (!(a - this._brushStartTime < 200 && Math.abs(i.width) < 5)) {
var o = this._getViewExtent(), s = [0, 100];
this._range = Wi([Lt(i.x, o, s, !0), Lt(i.x + i.width, o, s, !0)]), this._handleEnds = [i.x, i.x + i.width], this._updateView(), this._dispatchZoomAction(!1);
}
}
}
}, e.prototype._onBrush = function(n) {
this._brushing && (js(n.event), this._updateBrushRect(n.offsetX, n.offsetY));
}, e.prototype._updateBrushRect = function(n, r) {
var i = this._displayables, a = this.dataZoomModel, o = i.brushRect;
o || (o = i.brushRect = new Av({
silent: !0,
style: a.getModel("brushStyle").getItemStyle()
}), i.sliderGroup.add(o)), o.attr("ignore", !1);
var s = this._brushStart, l = this._displayables.sliderGroup, u = l.transformCoordToLocal(n, r), c = l.transformCoordToLocal(s.x, s.y), f = this._size;
u[0] = Math.max(Math.min(f[0], u[0]), 0), o.setShape({
x: c[0],
y: 0,
width: u[0] - c[0],
height: f[1]
});
}, e.prototype._dispatchZoomAction = function(n) {
var r = this._range;
this.api.dispatchAction({
type: "dataZoom",
from: this.uid,
dataZoomId: this.dataZoomModel.id,
animation: n ? ije : null,
start: r[0],
end: r[1]
});
}, e.prototype._findCoordRect = function() {
var n, r = Fre(this.dataZoomModel).infoList;
if (!n && r.length) {
var i = r[0].model.coordinateSystem;
n = i.getRect && i.getRect();
}
if (!n) {
var a = this.api.getWidth(), o = this.api.getHeight();
n = {
x: a * 0.2,
y: o * 0.2,
width: a * 0.6,
height: o * 0.6
};
}
return n;
}, e.type = "dataZoom.slider", e;
}(SL)
);
function oje(t) {
var e = {
x: "y",
y: "x",
radius: "angle",
angle: "radius"
};
return e[t];
}
function iQ(t) {
return t === "vertical" ? "ns-resize" : "ew-resize";
}
function sie(t) {
t.registerComponentModel(J9e), t.registerComponentView(aje), xL(t);
}
function sje(t) {
at(oie), at(sie);
}
var lie = {
/**
* @public
*/
get: function(t, e, n) {
var r = Le((lje[t] || {})[e]);
return n && ue(r) ? r[r.length - 1] : r;
}
}, lje = {
color: {
active: ["#006edd", "#e0ffff"],
inactive: ["rgba(0,0,0,0)"]
},
colorHue: {
active: [0, 360],
inactive: [0, 0]
},
colorSaturation: {
active: [0.3, 1],
inactive: [0, 0]
},
colorLightness: {
active: [0.9, 0.5],
inactive: [0, 0]
},
colorAlpha: {
active: [0.3, 1],
inactive: [0, 0]
},
opacity: {
active: [0.3, 1],
inactive: [0, 0]
},
symbol: {
active: ["circle", "roundRect", "diamond"],
inactive: ["none"]
},
symbolSize: {
active: [10, 50],
inactive: [0, 0]
}
}, aQ = qn.mapVisual, uje = qn.eachVisual, cje = ue, oQ = k, fje = Wi, dje = Lt, ZO = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.stateList = ["inRange", "outOfRange"], n.replacableOptionKeys = ["inRange", "outOfRange", "target", "controller", "color"], n.layoutMode = {
type: "box",
ignoreSize: !0
}, n.dataBound = [-1 / 0, 1 / 0], n.targetVisuals = {}, n.controllerVisuals = {}, n;
}
return e.prototype.init = function(n, r, i) {
this.mergeDefaultAndTheme(n, i);
}, e.prototype.optionUpdated = function(n, r) {
var i = this.option;
!r && qre(i, n, this.replacableOptionKeys), this.textStyleModel = this.getModel("textStyle"), this.resetItemSize(), this.completeVisualOption();
}, e.prototype.resetVisual = function(n) {
var r = this.stateList;
n = xe(n, this), this.controllerVisuals = NE(this.option.controller, r, n), this.targetVisuals = NE(this.option.target, r, n);
}, e.prototype.getItemSymbol = function() {
return null;
}, e.prototype.getTargetSeriesIndices = function() {
var n = this.option.seriesIndex, r = [];
return n == null || n === "all" ? this.ecModel.eachSeries(function(i, a) {
r.push(a);
}) : r = Qt(n), r;
}, e.prototype.eachTargetSeries = function(n, r) {
k(this.getTargetSeriesIndices(), function(i) {
var a = this.ecModel.getSeriesByIndex(i);
a && n.call(r, a);
}, this);
}, e.prototype.isTargetSeries = function(n) {
var r = !1;
return this.eachTargetSeries(function(i) {
i === n && (r = !0);
}), r;
}, e.prototype.formatValueText = function(n, r, i) {
var a = this.option, o = a.precision, s = this.dataBound, l = a.formatter, u;
i = i || ["<", ">"], ue(n) && (n = n.slice(), u = !0);
var c = r ? n : u ? [f(n[0]), f(n[1])] : f(n);
if (Oe(l))
return l.replace("{value}", u ? c[0] : c).replace("{value2}", u ? c[1] : c);
if (Me(l))
return u ? l(n[0], n[1]) : l(n);
if (u)
return n[0] === s[0] ? i[0] + " " + c[1] : n[1] === s[1] ? i[1] + " " + c[0] : c[0] + " - " + c[1];
return c;
function f(d) {
return d === s[0] ? "min" : d === s[1] ? "max" : (+d).toFixed(Math.min(o, 20));
}
}, e.prototype.resetExtent = function() {
var n = this.option, r = fje([n.min, n.max]);
this._dataExtent = r;
}, e.prototype.getDataDimensionIndex = function(n) {
var r = this.option.dimension;
if (r != null)
return n.getDimensionIndex(r);
for (var i = n.dimensions, a = i.length - 1; a >= 0; a--) {
var o = i[a], s = n.getDimensionInfo(o);
if (!s.isCalculationCoord)
return s.storeDimIndex;
}
}, e.prototype.getExtent = function() {
return this._dataExtent.slice();
}, e.prototype.completeVisualOption = function() {
var n = this.ecModel, r = this.option, i = {
inRange: r.inRange,
outOfRange: r.outOfRange
}, a = r.target || (r.target = {}), o = r.controller || (r.controller = {});
qe(a, i), qe(o, i);
var s = this.isCategory();
l.call(this, a), l.call(this, o), u.call(this, a, "inRange", "outOfRange"), c.call(this, o);
function l(f) {
cje(r.color) && !f.inRange && (f.inRange = {
color: r.color.slice().reverse()
}), f.inRange = f.inRange || {
color: n.get("gradientColor")
};
}
function u(f, d, h) {
var p = f[d], v = f[h];
p && !v && (v = f[h] = {}, oQ(p, function(g, m) {
if (qn.isValidType(m)) {
var y = lie.get(m, "inactive", s);
y != null && (v[m] = y, m === "color" && !v.hasOwnProperty("opacity") && !v.hasOwnProperty("colorAlpha") && (v.opacity = [0, 0]));
}
}));
}
function c(f) {
var d = (f.inRange || {}).symbol || (f.outOfRange || {}).symbol, h = (f.inRange || {}).symbolSize || (f.outOfRange || {}).symbolSize, p = this.get("inactiveColor"), v = this.getItemSymbol(), g = v || "roundRect";
oQ(this.stateList, function(m) {
var y = this.itemSize, b = f[m];
b || (b = f[m] = {
color: s ? p : [p]
}), b.symbol == null && (b.symbol = d && Le(d) || (s ? g : [g])), b.symbolSize == null && (b.symbolSize = h && Le(h) || (s ? y[0] : [y[0], y[0]])), b.symbol = aQ(b.symbol, function(S) {
return S === "none" ? g : S;
});
var _ = b.symbolSize;
if (_ != null) {
var O = -1 / 0;
uje(_, function(S) {
S > O && (O = S);
}), b.symbolSize = aQ(_, function(S) {
return dje(S, [0, O], [0, y[0]], !0);
});
}
}, this);
}
}, e.prototype.resetItemSize = function() {
this.itemSize = [parseFloat(this.get("itemWidth")), parseFloat(this.get("itemHeight"))];
}, e.prototype.isCategory = function() {
return !!this.option.categories;
}, e.prototype.setSelected = function(n) {
}, e.prototype.getSelected = function() {
return null;
}, e.prototype.getValueState = function(n) {
return null;
}, e.prototype.getVisualMeta = function(n) {
return null;
}, e.type = "visualMap", e.dependencies = ["series"], e.defaultOption = {
show: !0,
// zlevel: 0,
z: 4,
seriesIndex: "all",
min: 0,
max: 200,
left: 0,
right: null,
top: null,
bottom: 0,
itemWidth: null,
itemHeight: null,
inverse: !1,
orient: "vertical",
backgroundColor: "rgba(0,0,0,0)",
borderColor: "#ccc",
contentColor: "#5793f3",
inactiveColor: "#aaa",
borderWidth: 0,
padding: 5,
// 接受数组分别设定上右下左边距,同css
textGap: 10,
precision: 0,
textStyle: {
color: "#333"
// 值域文字颜色
}
}, e;
}(rt)
), sQ = [20, 140], hje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.optionUpdated = function(n, r) {
t.prototype.optionUpdated.apply(this, arguments), this.resetExtent(), this.resetVisual(function(i) {
i.mappingMethod = "linear", i.dataExtent = this.getExtent();
}), this._resetRange();
}, e.prototype.resetItemSize = function() {
t.prototype.resetItemSize.apply(this, arguments);
var n = this.itemSize;
(n[0] == null || isNaN(n[0])) && (n[0] = sQ[0]), (n[1] == null || isNaN(n[1])) && (n[1] = sQ[1]);
}, e.prototype._resetRange = function() {
var n = this.getExtent(), r = this.option.range;
!r || r.auto ? (n.auto = 1, this.option.range = n) : ue(r) && (r[0] > r[1] && r.reverse(), r[0] = Math.max(r[0], n[0]), r[1] = Math.min(r[1], n[1]));
}, e.prototype.completeVisualOption = function() {
t.prototype.completeVisualOption.apply(this, arguments), k(this.stateList, function(n) {
var r = this.option.controller[n].symbolSize;
r && r[0] !== r[1] && (r[0] = r[1] / 3);
}, this);
}, e.prototype.setSelected = function(n) {
this.option.range = n.slice(), this._resetRange();
}, e.prototype.getSelected = function() {
var n = this.getExtent(), r = Wi((this.get("range") || []).slice());
return r[0] > n[1] && (r[0] = n[1]), r[1] > n[1] && (r[1] = n[1]), r[0] < n[0] && (r[0] = n[0]), r[1] < n[0] && (r[1] = n[0]), r;
}, e.prototype.getValueState = function(n) {
var r = this.option.range, i = this.getExtent();
return (r[0] <= i[0] || r[0] <= n) && (r[1] >= i[1] || n <= r[1]) ? "inRange" : "outOfRange";
}, e.prototype.findTargetDataIndices = function(n) {
var r = [];
return this.eachTargetSeries(function(i) {
var a = [], o = i.getData();
o.each(this.getDataDimensionIndex(o), function(s, l) {
n[0] <= s && s <= n[1] && a.push(l);
}, this), r.push({
seriesId: i.id,
dataIndex: a
});
}, this), r;
}, e.prototype.getVisualMeta = function(n) {
var r = lQ(this, "outOfRange", this.getExtent()), i = lQ(this, "inRange", this.option.range.slice()), a = [];
function o(h, p) {
a.push({
value: h,
color: n(h, p)
});
}
for (var s = 0, l = 0, u = i.length, c = r.length; l < c && (!i.length || r[l] <= i[0]); l++)
r[l] < i[s] && o(r[l], "outOfRange");
for (var f = 1; s < u; s++, f = 0)
f && a.length && o(i[s], "outOfRange"), o(i[s], "inRange");
for (var f = 1; l < c; l++)
(!i.length || i[i.length - 1] < r[l]) && (f && (a.length && o(a[a.length - 1].value, "outOfRange"), f = 0), o(r[l], "outOfRange"));
var d = a.length;
return {
stops: a,
outerColors: [d ? a[0].color : "transparent", d ? a[d - 1].color : "transparent"]
};
}, e.type = "visualMap.continuous", e.defaultOption = Pu(ZO.defaultOption, {
align: "auto",
calculable: !1,
hoverLink: !0,
realtime: !0,
handleIcon: "path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",
handleSize: "120%",
handleStyle: {
borderColor: "#fff",
borderWidth: 1
},
indicatorIcon: "circle",
indicatorSize: "50%",
indicatorStyle: {
borderColor: "#fff",
borderWidth: 2,
shadowBlur: 2,
shadowOffsetX: 1,
shadowOffsetY: 1,
shadowColor: "rgba(0,0,0,0.2)"
}
// emphasis: {
// handleStyle: {
// shadowBlur: 3,
// shadowOffsetX: 1,
// shadowOffsetY: 1,
// shadowColor: 'rgba(0,0,0,0.2)'
// }
// }
}), e;
}(ZO)
);
function lQ(t, e, n) {
if (n[0] === n[1])
return n.slice();
for (var r = 200, i = (n[1] - n[0]) / r, a = n[0], o = [], s = 0; s <= r && a < n[1]; s++)
o.push(a), a += i;
return o.push(n[1]), o;
}
var uie = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n.autoPositionValues = {
left: 1,
right: 1,
top: 1,
bottom: 1
}, n;
}
return e.prototype.init = function(n, r) {
this.ecModel = n, this.api = r;
}, e.prototype.render = function(n, r, i, a) {
if (this.visualMapModel = n, n.get("show") === !1) {
this.group.removeAll();
return;
}
this.doRender(n, r, i, a);
}, e.prototype.renderBackground = function(n) {
var r = this.visualMapModel, i = zf(r.get("padding") || 0), a = n.getBoundingRect();
n.add(new mt({
z2: -1,
silent: !0,
shape: {
x: a.x - i[3],
y: a.y - i[0],
width: a.width + i[3] + i[1],
height: a.height + i[0] + i[2]
},
style: {
fill: r.get("backgroundColor"),
stroke: r.get("borderColor"),
lineWidth: r.get("borderWidth")
}
}));
}, e.prototype.getControllerVisual = function(n, r, i) {
i = i || {};
var a = i.forceState, o = this.visualMapModel, s = {};
if (r === "color") {
var l = o.get("contentColor");
s.color = l;
}
function u(h) {
return s[h];
}
function c(h, p) {
s[h] = p;
}
var f = o.controllerVisuals[a || o.getValueState(n)], d = qn.prepareVisualTypes(f);
return k(d, function(h) {
var p = f[h];
i.convertOpacityToAlpha && h === "opacity" && (h = "colorAlpha", p = f.__alphaForOpacity), qn.dependsOn(h, r) && p && p.applyVisual(n, u, c);
}), s[r];
}, e.prototype.positionGroup = function(n) {
var r = this.visualMapModel, i = this.api;
ow(n, r.getBoxLayoutParams(), {
width: i.getWidth(),
height: i.getHeight()
});
}, e.prototype.doRender = function(n, r, i, a) {
}, e.type = "visualMap", e;
}(Xt)
), uQ = [["left", "right", "width"], ["top", "bottom", "height"]];
function cie(t, e, n) {
var r = t.option, i = r.align;
if (i != null && i !== "auto")
return i;
for (var a = {
width: e.getWidth(),
height: e.getHeight()
}, o = r.orient === "horizontal" ? 1 : 0, s = uQ[o], l = [0, null, 10], u = {}, c = 0; c < 3; c++)
u[uQ[1 - o][c]] = l[c], u[s[c]] = c === 2 ? n[0] : r[s[c]];
var f = [["x", "width", 3], ["y", "height", 0]][o], d = Rn(u, a, r.padding);
return s[(d.margin[f[2]] || 0) + d[f[0]] + d[f[1]] * 0.5 < a[f[1]] * 0.5 ? 0 : 1];
}
function J_(t, e) {
return k(t || [], function(n) {
n.dataIndex != null && (n.dataIndexInside = n.dataIndex, n.dataIndex = null), n.highlightKey = "visualMap" + (e ? e.componentIndex : "");
}), t;
}
var Eo = Lt, pje = k, cQ = Math.min, s$ = Math.max, vje = 12, gje = 6, mje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._shapes = {}, n._dataInterval = [], n._handleEnds = [], n._hoverLinkDataIndices = [], n;
}
return e.prototype.init = function(n, r) {
t.prototype.init.call(this, n, r), this._hoverLinkFromSeriesMouseOver = xe(this._hoverLinkFromSeriesMouseOver, this), this._hideIndicator = xe(this._hideIndicator, this);
}, e.prototype.doRender = function(n, r, i, a) {
(!a || a.type !== "selectDataRange" || a.from !== this.uid) && this._buildView();
}, e.prototype._buildView = function() {
this.group.removeAll();
var n = this.visualMapModel, r = this.group;
this._orient = n.get("orient"), this._useHandle = n.get("calculable"), this._resetInterval(), this._renderBar(r);
var i = n.get("text");
this._renderEndsText(r, i, 0), this._renderEndsText(r, i, 1), this._updateView(!0), this.renderBackground(r), this._updateView(), this._enableHoverLinkToSeries(), this._enableHoverLinkFromSeries(), this.positionGroup(r);
}, e.prototype._renderEndsText = function(n, r, i) {
if (r) {
var a = r[1 - i];
a = a != null ? a + "" : "";
var o = this.visualMapModel, s = o.get("textGap"), l = o.itemSize, u = this._shapes.mainGroup, c = this._applyTransform([l[0] / 2, i === 0 ? -s : l[1] + s], u), f = this._applyTransform(i === 0 ? "bottom" : "top", u), d = this._orient, h = this.visualMapModel.textStyleModel;
this.group.add(new gt({
style: Zt(h, {
x: c[0],
y: c[1],
verticalAlign: d === "horizontal" ? "middle" : f,
align: d === "horizontal" ? f : "center",
text: a
})
}));
}
}, e.prototype._renderBar = function(n) {
var r = this.visualMapModel, i = this._shapes, a = r.itemSize, o = this._orient, s = this._useHandle, l = cie(r, this.api, a), u = i.mainGroup = this._createBarGroup(l), c = new Ve();
u.add(c), c.add(i.outOfRange = fQ()), c.add(i.inRange = fQ(null, s ? hQ(this._orient) : null, xe(this._dragHandle, this, "all", !1), xe(this._dragHandle, this, "all", !0))), c.setClipPath(new mt({
shape: {
x: 0,
y: 0,
width: a[0],
height: a[1],
r: 3
}
}));
var f = r.textStyleModel.getTextRect("国"), d = s$(f.width, f.height);
s && (i.handleThumbs = [], i.handleLabels = [], i.handleLabelPoints = [], this._createHandle(r, u, 0, a, d, o), this._createHandle(r, u, 1, a, d, o)), this._createIndicator(r, u, a, d, o), n.add(u);
}, e.prototype._createHandle = function(n, r, i, a, o, s) {
var l = xe(this._dragHandle, this, i, !1), u = xe(this._dragHandle, this, i, !0), c = lo(n.get("handleSize"), a[0]), f = $n(n.get("handleIcon"), -c / 2, -c / 2, c, c, null, !0), d = hQ(this._orient);
f.attr({
cursor: d,
draggable: !0,
drift: l,
ondragend: u,
onmousemove: function(m) {
js(m.event);
}
}), f.x = a[0] / 2, f.useStyle(n.getModel("handleStyle").getItemStyle()), f.setStyle({
strokeNoScale: !0,
strokeFirst: !0
}), f.style.lineWidth *= 2, f.ensureState("emphasis").style = n.getModel(["emphasis", "handleStyle"]).getItemStyle(), Lc(f, !0), r.add(f);
var h = this.visualMapModel.textStyleModel, p = new gt({
cursor: d,
draggable: !0,
drift: l,
onmousemove: function(m) {
js(m.event);
},
ondragend: u,
style: Zt(h, {
x: 0,
y: 0,
text: ""
})
});
p.ensureState("blur").style = {
opacity: 0.1
}, p.stateTransition = {
duration: 200
}, this.group.add(p);
var v = [c, 0], g = this._shapes;
g.handleThumbs[i] = f, g.handleLabelPoints[i] = v, g.handleLabels[i] = p;
}, e.prototype._createIndicator = function(n, r, i, a, o) {
var s = lo(n.get("indicatorSize"), i[0]), l = $n(n.get("indicatorIcon"), -s / 2, -s / 2, s, s, null, !0);
l.attr({
cursor: "move",
invisible: !0,
silent: !0,
x: i[0] / 2
});
var u = n.getModel("indicatorStyle").getItemStyle();
if (l instanceof lr) {
var c = l.style;
l.useStyle(le({
// TODO other properties like x, y ?
image: c.image,
x: c.x,
y: c.y,
width: c.width,
height: c.height
}, u));
} else
l.useStyle(u);
r.add(l);
var f = this.visualMapModel.textStyleModel, d = new gt({
silent: !0,
invisible: !0,
style: Zt(f, {
x: 0,
y: 0,
text: ""
})
});
this.group.add(d);
var h = [(o === "horizontal" ? a / 2 : gje) + i[0] / 2, 0], p = this._shapes;
p.indicator = l, p.indicatorLabel = d, p.indicatorLabelPoint = h, this._firstShowIndicator = !0;
}, e.prototype._dragHandle = function(n, r, i, a) {
if (this._useHandle) {
if (this._dragging = !r, !r) {
var o = this._applyTransform([i, a], this._shapes.mainGroup, !0);
this._updateInterval(n, o[1]), this._hideIndicator(), this._updateView();
}
r === !this.visualMapModel.get("realtime") && this.api.dispatchAction({
type: "selectDataRange",
from: this.uid,
visualMapId: this.visualMapModel.id,
selected: this._dataInterval.slice()
}), r ? !this._hovering && this._clearHoverLinkToSeries() : dQ(this.visualMapModel) && this._doHoverLinkToSeries(this._handleEnds[n], !1);
}
}, e.prototype._resetInterval = function() {
var n = this.visualMapModel, r = this._dataInterval = n.getSelected(), i = n.getExtent(), a = [0, n.itemSize[1]];
this._handleEnds = [Eo(r[0], i, a, !0), Eo(r[1], i, a, !0)];
}, e.prototype._updateInterval = function(n, r) {
r = r || 0;
var i = this.visualMapModel, a = this._handleEnds, o = [0, i.itemSize[1]];
Hf(
r,
a,
o,
n,
// cross is forbidden
0
);
var s = i.getExtent();
this._dataInterval = [Eo(a[0], o, s, !0), Eo(a[1], o, s, !0)];
}, e.prototype._updateView = function(n) {
var r = this.visualMapModel, i = r.getExtent(), a = this._shapes, o = [0, r.itemSize[1]], s = n ? o : this._handleEnds, l = this._createBarVisual(this._dataInterval, i, s, "inRange"), u = this._createBarVisual(i, i, o, "outOfRange");
a.inRange.setStyle({
fill: l.barColor
// opacity: visualInRange.opacity
}).setShape("points", l.barPoints), a.outOfRange.setStyle({
fill: u.barColor
// opacity: visualOutOfRange.opacity
}).setShape("points", u.barPoints), this._updateHandle(s, l);
}, e.prototype._createBarVisual = function(n, r, i, a) {
var o = {
forceState: a,
convertOpacityToAlpha: !0
}, s = this._makeColorGradient(n, o), l = [this.getControllerVisual(n[0], "symbolSize", o), this.getControllerVisual(n[1], "symbolSize", o)], u = this._createBarPoints(i, l);
return {
barColor: new yp(0, 0, 0, 1, s),
barPoints: u,
handlesColor: [s[0].color, s[s.length - 1].color]
};
}, e.prototype._makeColorGradient = function(n, r) {
var i = 100, a = [], o = (n[1] - n[0]) / i;
a.push({
color: this.getControllerVisual(n[0], "color", r),
offset: 0
});
for (var s = 1; s < i; s++) {
var l = n[0] + o * s;
if (l > n[1])
break;
a.push({
color: this.getControllerVisual(l, "color", r),
offset: s / i
});
}
return a.push({
color: this.getControllerVisual(n[1], "color", r),
offset: 1
}), a;
}, e.prototype._createBarPoints = function(n, r) {
var i = this.visualMapModel.itemSize;
return [[i[0] - r[0], n[0]], [i[0], n[0]], [i[0], n[1]], [i[0] - r[1], n[1]]];
}, e.prototype._createBarGroup = function(n) {
var r = this._orient, i = this.visualMapModel.get("inverse");
return new Ve(r === "horizontal" && !i ? {
scaleX: n === "bottom" ? 1 : -1,
rotation: Math.PI / 2
} : r === "horizontal" && i ? {
scaleX: n === "bottom" ? -1 : 1,
rotation: -Math.PI / 2
} : r === "vertical" && !i ? {
scaleX: n === "left" ? 1 : -1,
scaleY: -1
} : {
scaleX: n === "left" ? 1 : -1
});
}, e.prototype._updateHandle = function(n, r) {
if (this._useHandle) {
var i = this._shapes, a = this.visualMapModel, o = i.handleThumbs, s = i.handleLabels, l = a.itemSize, u = a.getExtent();
pje([0, 1], function(c) {
var f = o[c];
f.setStyle("fill", r.handlesColor[c]), f.y = n[c];
var d = Eo(n[c], [0, l[1]], u, !0), h = this.getControllerVisual(d, "symbolSize");
f.scaleX = f.scaleY = h / l[0], f.x = l[0] - h / 2;
var p = ro(i.handleLabelPoints[c], ql(f, this.group));
s[c].setStyle({
x: p[0],
y: p[1],
text: a.formatValueText(this._dataInterval[c]),
verticalAlign: "middle",
align: this._orient === "vertical" ? this._applyTransform("left", i.mainGroup) : "center"
});
}, this);
}
}, e.prototype._showIndicator = function(n, r, i, a) {
var o = this.visualMapModel, s = o.getExtent(), l = o.itemSize, u = [0, l[1]], c = this._shapes, f = c.indicator;
if (f) {
f.attr("invisible", !1);
var d = {
convertOpacityToAlpha: !0
}, h = this.getControllerVisual(n, "color", d), p = this.getControllerVisual(n, "symbolSize"), v = Eo(n, s, u, !0), g = l[0] - p / 2, m = {
x: f.x,
y: f.y
};
f.y = v, f.x = g;
var y = ro(c.indicatorLabelPoint, ql(f, this.group)), b = c.indicatorLabel;
b.attr("invisible", !1);
var _ = this._applyTransform("left", c.mainGroup), O = this._orient, S = O === "horizontal";
b.setStyle({
text: (i || "") + o.formatValueText(r),
verticalAlign: S ? _ : "middle",
align: S ? "center" : _
});
var x = {
x: g,
y: v,
style: {
fill: h
}
}, C = {
style: {
x: y[0],
y: y[1]
}
};
if (o.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {
var T = {
duration: 100,
easing: "cubicInOut",
additive: !0
};
f.x = m.x, f.y = m.y, f.animateTo(x, T), b.animateTo(C, T);
} else
f.attr(x), b.attr(C);
this._firstShowIndicator = !1;
var w = this._shapes.handleLabels;
if (w)
for (var P = 0; P < w.length; P++)
this.api.enterBlur(w[P]);
}
}, e.prototype._enableHoverLinkToSeries = function() {
var n = this;
this._shapes.mainGroup.on("mousemove", function(r) {
if (n._hovering = !0, !n._dragging) {
var i = n.visualMapModel.itemSize, a = n._applyTransform([r.offsetX, r.offsetY], n._shapes.mainGroup, !0, !0);
a[1] = cQ(s$(0, a[1]), i[1]), n._doHoverLinkToSeries(a[1], 0 <= a[0] && a[0] <= i[0]);
}
}).on("mouseout", function() {
n._hovering = !1, !n._dragging && n._clearHoverLinkToSeries();
});
}, e.prototype._enableHoverLinkFromSeries = function() {
var n = this.api.getZr();
this.visualMapModel.option.hoverLink ? (n.on("mouseover", this._hoverLinkFromSeriesMouseOver, this), n.on("mouseout", this._hideIndicator, this)) : this._clearHoverLinkFromSeries();
}, e.prototype._doHoverLinkToSeries = function(n, r) {
var i = this.visualMapModel, a = i.itemSize;
if (i.option.hoverLink) {
var o = [0, a[1]], s = i.getExtent();
n = cQ(s$(o[0], n), o[1]);
var l = yje(i, s, o), u = [n - l, n + l], c = Eo(n, o, s, !0), f = [Eo(u[0], o, s, !0), Eo(u[1], o, s, !0)];
u[0] < o[0] && (f[0] = -1 / 0), u[1] > o[1] && (f[1] = 1 / 0), r && (f[0] === -1 / 0 ? this._showIndicator(c, f[1], "< ", l) : f[1] === 1 / 0 ? this._showIndicator(c, f[0], "> ", l) : this._showIndicator(c, c, "≈ ", l));
var d = this._hoverLinkDataIndices, h = [];
(r || dQ(i)) && (h = this._hoverLinkDataIndices = i.findTargetDataIndices(f));
var p = nRe(d, h);
this._dispatchHighDown("downplay", J_(p[0], i)), this._dispatchHighDown("highlight", J_(p[1], i));
}
}, e.prototype._hoverLinkFromSeriesMouseOver = function(n) {
var r;
if (Bc(n.target, function(l) {
var u = Fe(l);
if (u.dataIndex != null)
return r = u, !0;
}, !0), !!r) {
var i = this.ecModel.getSeriesByIndex(r.seriesIndex), a = this.visualMapModel;
if (a.isTargetSeries(i)) {
var o = i.getData(r.dataType), s = o.getStore().get(a.getDataDimensionIndex(o), r.dataIndex);
isNaN(s) || this._showIndicator(s, s);
}
}
}, e.prototype._hideIndicator = function() {
var n = this._shapes;
n.indicator && n.indicator.attr("invisible", !0), n.indicatorLabel && n.indicatorLabel.attr("invisible", !0);
var r = this._shapes.handleLabels;
if (r)
for (var i = 0; i < r.length; i++)
this.api.leaveBlur(r[i]);
}, e.prototype._clearHoverLinkToSeries = function() {
this._hideIndicator();
var n = this._hoverLinkDataIndices;
this._dispatchHighDown("downplay", J_(n, this.visualMapModel)), n.length = 0;
}, e.prototype._clearHoverLinkFromSeries = function() {
this._hideIndicator();
var n = this.api.getZr();
n.off("mouseover", this._hoverLinkFromSeriesMouseOver), n.off("mouseout", this._hideIndicator);
}, e.prototype._applyTransform = function(n, r, i, a) {
var o = ql(r, a ? null : this.group);
return ue(n) ? ro(n, o, i) : ew(n, o, i);
}, e.prototype._dispatchHighDown = function(n, r) {
r && r.length && this.api.dispatchAction({
type: n,
batch: r
});
}, e.prototype.dispose = function() {
this._clearHoverLinkFromSeries(), this._clearHoverLinkToSeries();
}, e.type = "visualMap.continuous", e;
}(uie)
);
function fQ(t, e, n, r) {
return new ai({
shape: {
points: t
},
draggable: !!n,
cursor: e,
drift: n,
onmousemove: function(i) {
js(i.event);
},
ondragend: r
});
}
function yje(t, e, n) {
var r = vje / 2, i = t.get("hoverLinkDataSize");
return i && (r = Eo(i, e, n, !0) / 2), r;
}
function dQ(t) {
var e = t.get("hoverLinkOnHandle");
return !!(e ?? t.get("realtime"));
}
function hQ(t) {
return t === "vertical" ? "ns-resize" : "ew-resize";
}
var bje = {
type: "selectDataRange",
event: "dataRangeSelected",
// FIXME use updateView appears wrong
update: "update"
}, _je = function(t, e) {
e.eachComponent({
mainType: "visualMap",
query: t
}, function(n) {
n.setSelected(t.selected);
});
}, Oje = [
{
createOnAllSeries: !0,
reset: function(t, e) {
var n = [];
return e.eachComponent("visualMap", function(r) {
var i = t.pipelineContext;
!r.isTargetSeries(t) || i && i.large || n.push(QGe(r.stateList, r.targetVisuals, xe(r.getValueState, r), r.getDataDimensionIndex(t.getData())));
}), n;
}
},
// Only support color.
{
createOnAllSeries: !0,
reset: function(t, e) {
var n = t.getData(), r = [];
e.eachComponent("visualMap", function(i) {
if (i.isTargetSeries(t)) {
var a = i.getVisualMeta(xe(Sje, null, t, i)) || {
stops: [],
outerColors: []
}, o = i.getDataDimensionIndex(n);
o >= 0 && (a.dimension = o, r.push(a));
}
}), t.getData().setVisual("visualMeta", r);
}
}
];
function Sje(t, e, n, r) {
for (var i = e.targetVisuals[r], a = qn.prepareVisualTypes(i), o = {
color: G0(t.getData(), "color")
// default color.
}, s = 0, l = a.length; s < l; s++) {
var u = a[s], c = i[u === "opacity" ? "__alphaForOpacity" : u];
c && c.applyVisual(n, f, d);
}
return o.color;
function f(h) {
return o[h];
}
function d(h, p) {
o[h] = p;
}
}
var pQ = k;
function xje(t) {
var e = t && t.visualMap;
ue(e) || (e = e ? [e] : []), pQ(e, function(n) {
if (n) {
Od(n, "splitList") && !Od(n, "pieces") && (n.pieces = n.splitList, delete n.splitList);
var r = n.pieces;
r && ue(r) && pQ(r, function(i) {
Ie(i) && (Od(i, "start") && !Od(i, "min") && (i.min = i.start), Od(i, "end") && !Od(i, "max") && (i.max = i.end));
});
}
});
}
function Od(t, e) {
return t && t.hasOwnProperty && t.hasOwnProperty(e);
}
var vQ = !1;
function fie(t) {
vQ || (vQ = !0, t.registerSubTypeDefaulter("visualMap", function(e) {
return !e.categories && (!(e.pieces ? e.pieces.length > 0 : e.splitNumber > 0) || e.calculable) ? "continuous" : "piecewise";
}), t.registerAction(bje, _je), k(Oje, function(e) {
t.registerVisual(t.PRIORITY.VISUAL.COMPONENT, e);
}), t.registerPreprocessor(xje));
}
function die(t) {
t.registerComponentModel(hje), t.registerComponentView(mje), fie(t);
}
var wje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n._pieceList = [], n;
}
return e.prototype.optionUpdated = function(n, r) {
t.prototype.optionUpdated.apply(this, arguments), this.resetExtent();
var i = this._mode = this._determineMode();
this._pieceList = [], Cje[this._mode].call(this, this._pieceList), this._resetSelected(n, r);
var a = this.option.categories;
this.resetVisual(function(o, s) {
i === "categories" ? (o.mappingMethod = "category", o.categories = Le(a)) : (o.dataExtent = this.getExtent(), o.mappingMethod = "piecewise", o.pieceList = ce(this._pieceList, function(l) {
return l = Le(l), s !== "inRange" && (l.visual = null), l;
}));
});
}, e.prototype.completeVisualOption = function() {
var n = this.option, r = {}, i = qn.listVisualTypes(), a = this.isCategory();
k(n.pieces, function(s) {
k(i, function(l) {
s.hasOwnProperty(l) && (r[l] = 1);
});
}), k(r, function(s, l) {
var u = !1;
k(this.stateList, function(c) {
u = u || o(n, c, l) || o(n.target, c, l);
}, this), !u && k(this.stateList, function(c) {
(n[c] || (n[c] = {}))[l] = lie.get(l, c === "inRange" ? "active" : "inactive", a);
});
}, this);
function o(s, l, u) {
return s && s[l] && s[l].hasOwnProperty(u);
}
t.prototype.completeVisualOption.apply(this, arguments);
}, e.prototype._resetSelected = function(n, r) {
var i = this.option, a = this._pieceList, o = (r ? i : n).selected || {};
if (i.selected = o, k(a, function(l, u) {
var c = this.getSelectedMapKey(l);
o.hasOwnProperty(c) || (o[c] = !0);
}, this), i.selectedMode === "single") {
var s = !1;
k(a, function(l, u) {
var c = this.getSelectedMapKey(l);
o[c] && (s ? o[c] = !1 : s = !0);
}, this);
}
}, e.prototype.getItemSymbol = function() {
return this.get("itemSymbol");
}, e.prototype.getSelectedMapKey = function(n) {
return this._mode === "categories" ? n.value + "" : n.index + "";
}, e.prototype.getPieceList = function() {
return this._pieceList;
}, e.prototype._determineMode = function() {
var n = this.option;
return n.pieces && n.pieces.length > 0 ? "pieces" : this.option.categories ? "categories" : "splitNumber";
}, e.prototype.setSelected = function(n) {
this.option.selected = Le(n);
}, e.prototype.getValueState = function(n) {
var r = qn.findPieceIndex(n, this._pieceList);
return r != null && this.option.selected[this.getSelectedMapKey(this._pieceList[r])] ? "inRange" : "outOfRange";
}, e.prototype.findTargetDataIndices = function(n) {
var r = [], i = this._pieceList;
return this.eachTargetSeries(function(a) {
var o = [], s = a.getData();
s.each(this.getDataDimensionIndex(s), function(l, u) {
var c = qn.findPieceIndex(l, i);
c === n && o.push(u);
}, this), r.push({
seriesId: a.id,
dataIndex: o
});
}, this), r;
}, e.prototype.getRepresentValue = function(n) {
var r;
if (this.isCategory())
r = n.value;
else if (n.value != null)
r = n.value;
else {
var i = n.interval || [];
r = i[0] === -1 / 0 && i[1] === 1 / 0 ? 0 : (i[0] + i[1]) / 2;
}
return r;
}, e.prototype.getVisualMeta = function(n) {
if (this.isCategory())
return;
var r = [], i = ["", ""], a = this;
function o(c, f) {
var d = a.getRepresentValue({
interval: c
});
f || (f = a.getValueState(d));
var h = n(d, f);
c[0] === -1 / 0 ? i[0] = h : c[1] === 1 / 0 ? i[1] = h : r.push({
value: c[0],
color: h
}, {
value: c[1],
color: h
});
}
var s = this._pieceList.slice();
if (!s.length)
s.push({
interval: [-1 / 0, 1 / 0]
});
else {
var l = s[0].interval[0];
l !== -1 / 0 && s.unshift({
interval: [-1 / 0, l]
}), l = s[s.length - 1].interval[1], l !== 1 / 0 && s.push({
interval: [l, 1 / 0]
});
}
var u = -1 / 0;
return k(s, function(c) {
var f = c.interval;
f && (f[0] > u && o([u, f[0]], "outOfRange"), o(f.slice()), u = f[1]);
}, this), {
stops: r,
outerColors: i
};
}, e.type = "visualMap.piecewise", e.defaultOption = Pu(ZO.defaultOption, {
selected: null,
minOpen: !1,
maxOpen: !1,
align: "auto",
itemWidth: 20,
itemHeight: 14,
itemSymbol: "roundRect",
pieces: null,
categories: null,
splitNumber: 5,
selectedMode: "multiple",
itemGap: 10,
hoverLink: !0
// Enable hover highlight.
}), e;
}(ZO)
), Cje = {
splitNumber: function(t) {
var e = this.option, n = Math.min(e.precision, 20), r = this.getExtent(), i = e.splitNumber;
i = Math.max(parseInt(i, 10), 1), e.splitNumber = i;
for (var a = (r[1] - r[0]) / i; +a.toFixed(n) !== a && n < 5; )
n++;
e.precision = n, a = +a.toFixed(n), e.minOpen && t.push({
interval: [-1 / 0, r[0]],
close: [0, 0]
});
for (var o = 0, s = r[0]; o < i; s += a, o++) {
var l = o === i - 1 ? r[1] : s + a;
t.push({
interval: [s, l],
close: [1, 1]
});
}
e.maxOpen && t.push({
interval: [r[1], 1 / 0],
close: [0, 0]
}), PA(t), k(t, function(u, c) {
u.index = c, u.text = this.formatValueText(u.interval);
}, this);
},
categories: function(t) {
var e = this.option;
k(e.categories, function(n) {
t.push({
text: this.formatValueText(n, !0),
value: n
});
}, this), gQ(e, t);
},
pieces: function(t) {
var e = this.option;
k(e.pieces, function(n, r) {
Ie(n) || (n = {
value: n
});
var i = {
text: "",
index: r
};
if (n.label != null && (i.text = n.label), n.hasOwnProperty("value")) {
var a = i.value = n.value;
i.interval = [a, a], i.close = [1, 1];
} else {
for (var o = i.interval = [], s = i.close = [0, 0], l = [1, 0, 1], u = [-1 / 0, 1 / 0], c = [], f = 0; f < 2; f++) {
for (var d = [["gte", "gt", "min"], ["lte", "lt", "max"]][f], h = 0; h < 3 && o[f] == null; h++)
o[f] = n[d[h]], s[f] = l[h], c[f] = h === 2;
o[f] == null && (o[f] = u[f]);
}
c[0] && o[1] === 1 / 0 && (s[0] = 0), c[1] && o[0] === -1 / 0 && (s[1] = 0), process.env.NODE_ENV !== "production" && o[0] > o[1] && console.warn("Piece " + r + "is illegal: " + o + " lower bound should not greater then uppper bound."), o[0] === o[1] && s[0] && s[1] && (i.value = o[0]);
}
i.visual = qn.retrieveVisuals(n), t.push(i);
}, this), gQ(e, t), PA(t), k(t, function(n) {
var r = n.close, i = [["<", "≤"][r[1]], [">", "≥"][r[0]]];
n.text = n.text || this.formatValueText(n.value != null ? n.value : n.interval, !1, i);
}, this);
}
};
function gQ(t, e) {
var n = t.inverse;
(t.orient === "vertical" ? !n : n) && e.reverse();
}
var Tje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = e.type, n;
}
return e.prototype.doRender = function() {
var n = this.group;
n.removeAll();
var r = this.visualMapModel, i = r.get("textGap"), a = r.textStyleModel, o = a.getFont(), s = a.getTextColor(), l = this._getItemAlign(), u = r.itemSize, c = this._getViewData(), f = c.endsText, d = Tn(r.get("showLabel", !0), !f);
f && this._renderEndsText(n, f[0], u, d, l), k(c.viewPieceList, function(h) {
var p = h.piece, v = new Ve();
v.onclick = xe(this._onItemClick, this, p), this._enableHoverLink(v, h.indexInModelPieceList);
var g = r.getRepresentValue(p);
if (this._createItemSymbol(v, g, [0, 0, u[0], u[1]]), d) {
var m = this.visualMapModel.getValueState(g);
v.add(new gt({
style: {
x: l === "right" ? -i : u[0] + i,
y: u[1] / 2,
text: p.text,
verticalAlign: "middle",
align: l,
font: o,
fill: s,
opacity: m === "outOfRange" ? 0.5 : 1
}
}));
}
n.add(v);
}, this), f && this._renderEndsText(n, f[1], u, d, l), tf(r.get("orient"), n, r.get("itemGap")), this.renderBackground(n), this.positionGroup(n);
}, e.prototype._enableHoverLink = function(n, r) {
var i = this;
n.on("mouseover", function() {
return a("highlight");
}).on("mouseout", function() {
return a("downplay");
});
var a = function(o) {
var s = i.visualMapModel;
s.option.hoverLink && i.api.dispatchAction({
type: o,
batch: J_(s.findTargetDataIndices(r), s)
});
};
}, e.prototype._getItemAlign = function() {
var n = this.visualMapModel, r = n.option;
if (r.orient === "vertical")
return cie(n, this.api, n.itemSize);
var i = r.align;
return (!i || i === "auto") && (i = "left"), i;
}, e.prototype._renderEndsText = function(n, r, i, a, o) {
if (r) {
var s = new Ve(), l = this.visualMapModel.textStyleModel;
s.add(new gt({
style: Zt(l, {
x: a ? o === "right" ? i[0] : 0 : i[0] / 2,
y: i[1] / 2,
verticalAlign: "middle",
align: a ? o : "center",
text: r
})
})), n.add(s);
}
}, e.prototype._getViewData = function() {
var n = this.visualMapModel, r = ce(n.getPieceList(), function(s, l) {
return {
piece: s,
indexInModelPieceList: l
};
}), i = n.get("text"), a = n.get("orient"), o = n.get("inverse");
return (a === "horizontal" ? o : !o) ? r.reverse() : i && (i = i.slice().reverse()), {
viewPieceList: r,
endsText: i
};
}, e.prototype._createItemSymbol = function(n, r, i) {
n.add($n(
// symbol will be string
this.getControllerVisual(r, "symbol"),
i[0],
i[1],
i[2],
i[3],
// color will be string
this.getControllerVisual(r, "color")
));
}, e.prototype._onItemClick = function(n) {
var r = this.visualMapModel, i = r.option, a = i.selectedMode;
if (a) {
var o = Le(i.selected), s = r.getSelectedMapKey(n);
a === "single" || a === !0 ? (o[s] = !0, k(o, function(l, u) {
o[u] = u === s;
})) : o[s] = !o[s], this.api.dispatchAction({
type: "selectDataRange",
from: this.uid,
visualMapId: this.visualMapModel.id,
selected: o
});
}
}, e.type = "visualMap.piecewise", e;
}(uie)
);
function hie(t) {
t.registerComponentModel(wje), t.registerComponentView(Tje), fie(t);
}
function Pje(t) {
at(die), at(hie);
}
var $je = {
label: {
enabled: !0
},
decal: {
show: !1
}
}, mQ = bt(), Aje = {};
function Eje(t, e) {
var n = t.getModel("aria");
if (!n.get("enabled"))
return;
var r = Le($je);
qe(r.label, t.getLocaleModel().get("aria"), !1), qe(n.option, r, !1), i(), a();
function i() {
var u = n.getModel("decal"), c = u.get("show");
if (c) {
var f = Pe();
t.eachSeries(function(d) {
if (!d.isColorBySeries()) {
var h = f.get(d.type);
h || (h = {}, f.set(d.type, h)), mQ(d).scope = h;
}
}), t.eachRawSeries(function(d) {
if (t.isSeriesFiltered(d))
return;
if (Me(d.enableAriaDecal)) {
d.enableAriaDecal();
return;
}
var h = d.getData();
if (d.isColorBySeries()) {
var y = HA(d.ecModel, d.name, Aje, t.getSeriesCount()), b = h.getVisual("decal");
h.setVisual("decal", _(b, y));
} else {
var p = d.getRawData(), v = {}, g = mQ(d).scope;
h.each(function(O) {
var S = h.getRawIndex(O);
v[S] = O;
});
var m = p.count();
p.each(function(O) {
var S = v[O], x = p.getName(O) || O + "", C = HA(d.ecModel, x, g, m), T = h.getItemVisual(S, "decal");
h.setItemVisual(S, "decal", _(T, C));
});
}
function _(O, S) {
var x = O ? le(le({}, S), O) : S;
return x.dirty = !0, x;
}
});
}
}
function a() {
var u = e.getZr().dom;
if (u) {
var c = t.getLocaleModel().get("aria"), f = n.getModel("label");
if (f.option = Re(f.option, c), !!f.get("enabled")) {
if (f.get("description")) {
u.setAttribute("aria-label", f.get("description"));
return;
}
var d = t.getSeriesCount(), h = f.get(["data", "maxCount"]) || 10, p = f.get(["series", "maxCount"]) || 10, v = Math.min(d, p), g;
if (!(d < 1)) {
var m = s();
if (m) {
var y = f.get(["general", "withTitle"]);
g = o(y, {
title: m
});
} else
g = f.get(["general", "withoutTitle"]);
var b = [], _ = d > 1 ? f.get(["series", "multiple", "prefix"]) : f.get(["series", "single", "prefix"]);
g += o(_, {
seriesCount: d
}), t.eachSeries(function(C, T) {
if (T < v) {
var w = void 0, P = C.get("name"), $ = P ? "withName" : "withoutName";
w = d > 1 ? f.get(["series", "multiple", $]) : f.get(["series", "single", $]), w = o(w, {
seriesId: C.seriesIndex,
seriesName: C.get("name"),
seriesType: l(C.subType)
});
var A = C.getData();
if (A.count() > h) {
var D = f.get(["data", "partialData"]);
w += o(D, {
displayCnt: h
});
} else
w += f.get(["data", "allData"]);
for (var E = f.get(["data", "separator", "middle"]), R = f.get(["data", "separator", "end"]), N = [], V = 0; V < A.count(); V++)
if (V < h) {
var B = A.getName(V), W = A.getValues(V), F = f.get(["data", B ? "withName" : "withoutName"]);
N.push(o(F, {
name: B,
value: W.join(E)
}));
}
w += N.join(E) + R, b.push(w);
}
});
var O = f.getModel(["series", "multiple", "separator"]), S = O.get("middle"), x = O.get("end");
g += b.join(S) + x, u.setAttribute("aria-label", g);
}
}
}
}
function o(u, c) {
if (!Oe(u))
return u;
var f = u;
return k(c, function(d, h) {
f = f.replace(new RegExp("\\{\\s*" + h + "\\s*\\}", "g"), d);
}), f;
}
function s() {
var u = t.get("title");
return u && u.length && (u = u[0]), u && u.text;
}
function l(u) {
var c = t.getLocaleModel().get(["series", "typeNames"]);
return c[u] || c.chart;
}
}
function Mje(t) {
if (!(!t || !t.aria)) {
var e = t.aria;
e.show != null && (e.enabled = e.show), e.label = e.label || {}, k(["description", "general", "series", "data"], function(n) {
e[n] != null && (e.label[n] = e[n]);
});
}
}
function Ije(t) {
t.registerPreprocessor(Mje), t.registerVisual(t.PRIORITY.VISUAL.ARIA, Eje);
}
var yQ = {
value: "eq",
// PENDING: not good for literal semantic?
"<": "lt",
"<=": "lte",
">": "gt",
">=": "gte",
"=": "eq",
"!=": "ne",
"<>": "ne"
// Might be misleading for sake of the difference between '==' and '===',
// so don't support them.
// '==': 'eq',
// '===': 'seq',
// '!==': 'sne'
// PENDING: Whether support some common alias "ge", "le", "neq"?
// ge: 'gte',
// le: 'lte',
// neq: 'ne',
}, Dje = (
/** @class */
function() {
function t(e) {
var n = this._condVal = Oe(e) ? new RegExp(e) : bR(e) ? e : null;
if (n == null) {
var r = "";
process.env.NODE_ENV !== "production" && (r = ni("Illegal regexp", e, "in")), Et(r);
}
}
return t.prototype.evaluate = function(e) {
var n = typeof e;
return Oe(n) ? this._condVal.test(e) : St(n) ? this._condVal.test(e + "") : !1;
}, t;
}()
), Rje = (
/** @class */
function() {
function t() {
}
return t.prototype.evaluate = function() {
return this.value;
}, t;
}()
), kje = (
/** @class */
function() {
function t() {
}
return t.prototype.evaluate = function() {
for (var e = this.children, n = 0; n < e.length; n++)
if (!e[n].evaluate())
return !1;
return !0;
}, t;
}()
), Lje = (
/** @class */
function() {
function t() {
}
return t.prototype.evaluate = function() {
for (var e = this.children, n = 0; n < e.length; n++)
if (e[n].evaluate())
return !0;
return !1;
}, t;
}()
), Nje = (
/** @class */
function() {
function t() {
}
return t.prototype.evaluate = function() {
return !this.child.evaluate();
}, t;
}()
), Bje = (
/** @class */
function() {
function t() {
}
return t.prototype.evaluate = function() {
for (var e = !!this.valueParser, n = this.getValue, r = n(this.valueGetterParam), i = e ? this.valueParser(r) : null, a = 0; a < this.subCondList.length; a++)
if (!this.subCondList[a].evaluate(e ? i : r))
return !1;
return !0;
}, t;
}()
);
function IL(t, e) {
if (t === !0 || t === !1) {
var n = new Rje();
return n.value = t, n;
}
var r = "";
return pie(t) || (process.env.NODE_ENV !== "production" && (r = ni("Illegal config. Expect a plain object but actually", t)), Et(r)), t.and ? bQ("and", t, e) : t.or ? bQ("or", t, e) : t.not ? zje(t, e) : Vje(t, e);
}
function bQ(t, e, n) {
var r = e[t], i = "";
process.env.NODE_ENV !== "production" && (i = ni('"and"/"or" condition should only be `' + t + ": [...]` and must not be empty array.", "Illegal condition:", e)), ue(r) || Et(i), r.length || Et(i);
var a = t === "and" ? new kje() : new Lje();
return a.children = ce(r, function(o) {
return IL(o, n);
}), a.children.length || Et(i), a;
}
function zje(t, e) {
var n = t.not, r = "";
process.env.NODE_ENV !== "production" && (r = ni('"not" condition should only be `not: {}`.', "Illegal condition:", t)), pie(n) || Et(r);
var i = new Nje();
return i.child = IL(n, e), i.child || Et(r), i;
}
function Vje(t, e) {
for (var n = "", r = e.prepareGetValue(t), i = [], a = st(t), o = t.parser, s = o ? GJ(o) : null, l = 0; l < a.length; l++) {
var u = a[l];
if (!(u === "parser" || e.valueGetterAttrMap.get(u))) {
var c = Ce(yQ, u) ? yQ[u] : u, f = t[u], d = s ? s(f) : f, h = c4e(c, d) || c === "reg" && new Dje(d);
h || (process.env.NODE_ENV !== "production" && (n = ni('Illegal relational operation: "' + u + '" in condition:', t)), Et(n)), i.push(h);
}
}
i.length || (process.env.NODE_ENV !== "production" && (n = ni("Relational condition must have at least one operator.", "Illegal condition:", t)), Et(n));
var p = new Bje();
return p.valueGetterParam = r, p.valueParser = s, p.getValue = e.getValue, p.subCondList = i, p;
}
function pie(t) {
return Ie(t) && !wr(t);
}
var Fje = (
/** @class */
function() {
function t(e, n) {
this._cond = IL(e, n);
}
return t.prototype.evaluate = function() {
return this._cond.evaluate();
}, t;
}()
);
function Wje(t, e) {
return new Fje(t, e);
}
var Qje = {
type: "echarts:filter",
// PENDING: enhance to filter by index rather than create new data
transform: function(t) {
for (var e = t.upstream, n, r = Wje(t.config, {
valueGetterAttrMap: Pe({
dimension: !0
}),
prepareGetValue: function(s) {
var l = "", u = s.dimension;
Ce(s, "dimension") || (process.env.NODE_ENV !== "production" && (l = ni('Relation condition must has prop "dimension" specified.', "Illegal condition:", s)), Et(l));
var c = e.getDimensionInfo(u);
return c || (process.env.NODE_ENV !== "production" && (l = ni("Can not find dimension info via: " + u + `.
`, "Existing dimensions: ", e.cloneAllDimensionInfo(), `.
`, "Illegal condition:", s, `.
`)), Et(l)), {
dimIdx: c.index
};
},
getValue: function(s) {
return e.retrieveValueFromItem(n, s.dimIdx);
}
}), i = [], a = 0, o = e.count(); a < o; a++)
n = e.getRawDataItem(a), r.evaluate() && i.push(n);
return {
data: i
};
}
}, HE = "";
process.env.NODE_ENV !== "production" && (HE = ["Valid config is like:", '{ dimension: "age", order: "asc" }', 'or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));
var Hje = {
type: "echarts:sort",
transform: function(t) {
var e = t.upstream, n = t.config, r = "", i = Qt(n);
i.length || (process.env.NODE_ENV !== "production" && (r = "Empty `config` in sort transform."), Et(r));
var a = [];
k(i, function(c) {
var f = c.dimension, d = c.order, h = c.parser, p = c.incomparable;
if (f == null && (process.env.NODE_ENV !== "production" && (r = 'Sort transform config must has "dimension" specified.' + HE), Et(r)), d !== "asc" && d !== "desc" && (process.env.NODE_ENV !== "production" && (r = 'Sort transform config must has "order" specified.' + HE), Et(r)), p && p !== "min" && p !== "max") {
var v = "";
process.env.NODE_ENV !== "production" && (v = 'incomparable must be "min" or "max" rather than "' + p + '".'), Et(v);
}
if (d !== "asc" && d !== "desc") {
var g = "";
process.env.NODE_ENV !== "production" && (g = 'order must be "asc" or "desc" rather than "' + d + '".'), Et(g);
}
var m = e.getDimensionInfo(f);
m || (process.env.NODE_ENV !== "production" && (r = ni("Can not find dimension info via: " + f + `.
`, "Existing dimensions: ", e.cloneAllDimensionInfo(), `.
`, "Illegal config:", c, `.
`)), Et(r));
var y = h ? GJ(h) : null;
h && !y && (process.env.NODE_ENV !== "production" && (r = ni("Invalid parser name " + h + `.
`, "Illegal config:", c, `.
`)), Et(r)), a.push({
dimIdx: m.index,
parser: y,
comparator: new ZJ(d, p)
});
});
var o = e.sourceFormat;
o !== zr && o !== za && (process.env.NODE_ENV !== "production" && (r = 'sourceFormat "' + o + '" is not supported yet'), Et(r));
for (var s = [], l = 0, u = e.count(); l < u; l++)
s.push(e.getRawDataItem(l));
return s.sort(function(c, f) {
for (var d = 0; d < a.length; d++) {
var h = a[d], p = e.retrieveValueFromItem(c, h.dimIdx), v = e.retrieveValueFromItem(f, h.dimIdx);
h.parser && (p = h.parser(p), v = h.parser(v));
var g = h.comparator.evaluate(p, v);
if (g !== 0)
return g;
}
return 0;
}), {
data: s
};
}
};
function Gje(t) {
t.registerTransform(Qje), t.registerTransform(Hje);
}
var jje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "dataset", n;
}
return e.prototype.init = function(n, r, i) {
t.prototype.init.call(this, n, r, i), this._sourceManager = new qJ(this), bz(this);
}, e.prototype.mergeOption = function(n, r) {
t.prototype.mergeOption.call(this, n, r), bz(this);
}, e.prototype.optionUpdated = function() {
this._sourceManager.dirty();
}, e.prototype.getSourceManager = function() {
return this._sourceManager;
}, e.type = "dataset", e.defaultOption = {
seriesLayoutBy: Yo
}, e;
}(rt)
), Zje = (
/** @class */
function(t) {
q(e, t);
function e() {
var n = t !== null && t.apply(this, arguments) || this;
return n.type = "dataset", n;
}
return e.type = "dataset", e;
}(Xt)
);
function Uje(t) {
t.registerComponentModel(jje), t.registerComponentView(Zje);
}
var wo = os.CMD;
function Qd(t, e) {
return Math.abs(t - e) < 1e-5;
}
function GE(t) {
var e = t.data, n = t.len(), r = [], i, a = 0, o = 0, s = 0, l = 0;
function u(A, D) {
i && i.length > 2 && r.push(i), i = [A, D];
}
function c(A, D, E, R) {
Qd(A, E) && Qd(D, R) || i.push(A, D, E, R, E, R);
}
function f(A, D, E, R, N, V) {
var B = Math.abs(D - A), W = Math.tan(B / 4) * 4 / 3, F = D < A ? -1 : 1, Q = Math.cos(A), Z = Math.sin(A), ne = Math.cos(D), ee = Math.sin(D), oe = Q * N + E, K = Z * V + R, ie = ne * N + E, X = ee * V + R, H = N * W * F, G = V * W * F;
i.push(oe - H * Z, K + G * Q, ie + H * ee, X - G * ne, ie, X);
}
for (var d, h, p, v, g = 0; g < n; ) {
var m = e[g++], y = g === 1;
switch (y && (a = e[g], o = e[g + 1], s = a, l = o, (m === wo.L || m === wo.C || m === wo.Q) && (i = [s, l])), m) {
case wo.M:
a = s = e[g++], o = l = e[g++], u(s, l);
break;
case wo.L:
d = e[g++], h = e[g++], c(a, o, d, h), a = d, o = h;
break;
case wo.C:
i.push(e[g++], e[g++], e[g++], e[g++], a = e[g++], o = e[g++]);
break;
case wo.Q:
d = e[g++], h = e[g++], p = e[g++], v = e[g++], i.push(a + 2 / 3 * (d - a), o + 2 / 3 * (h - o), p + 2 / 3 * (d - p), v + 2 / 3 * (h - v), p, v), a = p, o = v;
break;
case wo.A:
var b = e[g++], _ = e[g++], O = e[g++], S = e[g++], x = e[g++], C = e[g++] + x;
g += 1;
var T = !e[g++];
d = Math.cos(x) * O + b, h = Math.sin(x) * S + _, y ? (s = d, l = h, u(s, l)) : c(a, o, d, h), a = Math.cos(C) * O + b, o = Math.sin(C) * S + _;
for (var w = (T ? -1 : 1) * Math.PI / 2, P = x; T ? P > C : P < C; P += w) {
var $ = T ? Math.max(P + w, C) : Math.min(P + w, C);
f(P, $, b, _, O, S);
}
break;
case wo.R:
s = a = e[g++], l = o = e[g++], d = s + e[g++], h = l + e[g++], u(d, l), c(d, l, d, h), c(d, h, s, h), c(s, h, s, l), c(s, l, d, l);
break;
case wo.Z:
i && c(a, o, s, l), a = s, o = l;
break;
}
}
return i && i.length > 2 && r.push(i), r;
}
function jE(t, e, n, r, i, a, o, s, l, u) {
if (Qd(t, n) && Qd(e, r) && Qd(i, o) && Qd(a, s)) {
l.push(o, s);
return;
}
var c = 2 / u, f = c * c, d = o - t, h = s - e, p = Math.sqrt(d * d + h * h);
d /= p, h /= p;
var v = n - t, g = r - e, m = i - o, y = a - s, b = v * v + g * g, _ = m * m + y * y;
if (b < f && _ < f) {
l.push(o, s);
return;
}
var O = d * v + h * g, S = -d * m - h * y, x = b - O * O, C = _ - S * S;
if (x < f && O >= 0 && C < f && S >= 0) {
l.push(o, s);
return;
}
var T = [], w = [];
su(t, n, i, o, 0.5, T), su(e, r, a, s, 0.5, w), jE(T[0], w[0], T[1], w[1], T[2], w[2], T[3], w[3], l, u), jE(T[4], w[4], T[5], w[5], T[6], w[6], T[7], w[7], l, u);
}
function Xje(t, e) {
var n = GE(t), r = [];
e = e || 1;
for (var i = 0; i < n.length; i++) {
var a = n[i], o = [], s = a[0], l = a[1];
o.push(s, l);
for (var u = 2; u < a.length; ) {
var c = a[u++], f = a[u++], d = a[u++], h = a[u++], p = a[u++], v = a[u++];
jE(s, l, c, f, d, h, p, v, o, e), s = p, l = v;
}
r.push(o);
}
return r;
}
function vie(t, e, n) {
var r = t[e], i = t[1 - e], a = Math.abs(r / i), o = Math.ceil(Math.sqrt(a * n)), s = Math.floor(n / o);
s === 0 && (s = 1, o = n);
for (var l = [], u = 0; u < o; u++)
l.push(s);
var c = o * s, f = n - c;
if (f > 0)
for (var u = 0; u < f; u++)
l[u % o] += 1;
return l;
}
function _Q(t, e, n) {
for (var r = t.r0, i = t.r, a = t.startAngle, o = t.endAngle, s = Math.abs(o - a), l = s * i, u = i - r, c = l > Math.abs(u), f = vie([l, u], c ? 0 : 1, e), d = (c ? s : u) / f.length, h = 0; h < f.length; h++)
for (var p = (c ? u : s) / f[h], v = 0; v < f[h]; v++) {
var g = {};
c ? (g.startAngle = a + d * h, g.endAngle = a + d * (h + 1), g.r0 = r + p * v, g.r = r + p * (v + 1)) : (g.startAngle = a + p * v, g.endAngle = a + p * (v + 1), g.r0 = r + d * h, g.r = r + d * (h + 1)), g.clockwise = t.clockwise, g.cx = t.cx, g.cy = t.cy, n.push(g);
}
}
function Yje(t, e, n) {
for (var r = t.width, i = t.height, a = r > i, o = vie([r, i], a ? 0 : 1, e), s = a ? "width" : "height", l = a ? "height" : "width", u = a ? "x" : "y", c = a ? "y" : "x", f = t[s] / o.length, d = 0; d < o.length; d++)
for (var h = t[l] / o[d], p = 0; p < o[d]; p++) {
var v = {};
v[u] = d * f, v[c] = p * h, v[s] = f, v[l] = h, v.x += t.x, v.y += t.y, n.push(v);
}
}
function OQ(t, e, n, r) {
return t * r - n * e;
}
function qje(t, e, n, r, i, a, o, s) {
var l = n - t, u = r - e, c = o - i, f = s - a, d = OQ(c, f, l, u);
if (Math.abs(d) < 1e-6)
return null;
var h = t - i, p = e - a, v = OQ(h, p, c, f) / d;
return v < 0 || v > 1 ? null : new Ke(v * l + t, v * u + e);
}
function Kje(t, e, n) {
var r = new Ke();
Ke.sub(r, n, e), r.normalize();
var i = new Ke();
Ke.sub(i, t, e);
var a = i.dot(r);
return a;
}
function Sd(t, e) {
var n = t[t.length - 1];
n && n[0] === e[0] && n[1] === e[1] || t.push(e);
}
function Jje(t, e, n) {
for (var r = t.length, i = [], a = 0; a < r; a++) {
var o = t[a], s = t[(a + 1) % r], l = qje(o[0], o[1], s[0], s[1], e.x, e.y, n.x, n.y);
l && i.push({
projPt: Kje(l, e, n),
pt: l,
idx: a
});
}
if (i.length < 2)
return [{ points: t }, { points: t }];
i.sort(function(g, m) {
return g.projPt - m.projPt;
});
var u = i[0], c = i[i.length - 1];
if (c.idx < u.idx) {
var f = u;
u = c, c = f;
}
for (var d = [u.pt.x, u.pt.y], h = [c.pt.x, c.pt.y], p = [d], v = [h], a = u.idx + 1; a <= c.idx; a++)
Sd(p, t[a].slice());
Sd(p, h), Sd(p, d);
for (var a = c.idx + 1; a <= u.idx + r; a++)
Sd(v, t[a % r].slice());
return Sd(v, d), Sd(v, h), [{
points: p
}, {
points: v
}];
}
function SQ(t) {
var e = t.points, n = [], r = [];
Zx(e, n, r);
var i = new Je(n[0], n[1], r[0] - n[0], r[1] - n[1]), a = i.width, o = i.height, s = i.x, l = i.y, u = new Ke(), c = new Ke();
return a > o ? (u.x = c.x = s + a / 2, u.y = l, c.y = l + o) : (u.y = c.y = l + o / 2, u.x = s, c.x = s + a), Jje(e, u, c);
}
function UO(t, e, n, r) {
if (n === 1)
r.push(e);
else {
var i = Math.floor(n / 2), a = t(e);
UO(t, a[0], i, r), UO(t, a[1], n - i, r);
}
return r;
}
function eZe(t, e) {
for (var n = [], r = 0; r < e; r++)
n.push(VR(t));
return n;
}
function tZe(t, e) {
e.setStyle(t.style), e.z = t.z, e.z2 = t.z2, e.zlevel = t.zlevel;
}
function nZe(t) {
for (var e = [], n = 0; n < t.length; )
e.push([t[n++], t[n++]]);
return e;
}
function rZe(t, e) {
var n = [], r = t.shape, i;
switch (t.type) {
case "rect":
Yje(r, e, n), i = mt;
break;
case "sector":
_Q(r, e, n), i = ii;
break;
case "circle":
_Q({
r0: 0,
r: r.r,
startAngle: 0,
endAngle: Math.PI * 2,
cx: r.cx,
cy: r.cy
}, e, n), i = ii;
break;
default:
var a = t.getComputedTransform(), o = a ? Math.sqrt(Math.max(a[0] * a[0] + a[1] * a[1], a[2] * a[2] + a[3] * a[3])) : 1, s = ce(Xje(t.getUpdatedPathProxy(), o), function(m) {
return nZe(m);
}), l = s.length;
if (l === 0)
UO(SQ, {
points: s[0]
}, e, n);
else if (l === e)
for (var u = 0; u < l; u++)
n.push({
points: s[u]
});
else {
var c = 0, f = ce(s, function(m) {
var y = [], b = [];
Zx(m, y, b);
var _ = (b[1] - y[1]) * (b[0] - y[0]);
return c += _, { poly: m, area: _ };
});
f.sort(function(m, y) {
return y.area - m.area;
});
for (var d = e, u = 0; u < l; u++) {
var h = f[u];
if (d <= 0)
break;
var p = u === l - 1 ? d : Math.ceil(h.area / c * e);
p < 0 || (UO(SQ, {
points: h.poly
}, p, n), d -= p);
}
}
i = ai;
break;
}
if (!i)
return eZe(t, e);
for (var v = [], u = 0; u < n.length; u++) {
var g = new i();
g.setShape(n[u]), tZe(t, g), v.push(g);
}
return v;
}
function iZe(t, e) {
var n = t.length, r = e.length;
if (n === r)
return [t, e];
for (var i = [], a = [], o = n < r ? t : e, s = Math.min(n, r), l = Math.abs(r - n) / 6, u = (s - 2) / 6, c = Math.ceil(l / u) + 1, f = [o[0], o[1]], d = l, h = 2; h < s; ) {
var p = o[h - 2], v = o[h - 1], g = o[h++], m = o[h++], y = o[h++], b = o[h++], _ = o[h++], O = o[h++];
if (d <= 0) {
f.push(g, m, y, b, _, O);
continue;
}
for (var S = Math.min(d, c - 1) + 1, x = 1; x <= S; x++) {
var C = x / S;
su(p, g, y, _, C, i), su(v, m, b, O, C, a), p = i[3], v = a[3], f.push(i[1], a[1], i[2], a[2], p, v), g = i[5], m = a[5], y = i[6], b = a[6];
}
d -= S - 1;
}
return o === t ? [f, e] : [t, f];
}
function xQ(t, e) {
for (var n = t.length, r = t[n - 2], i = t[n - 1], a = [], o = 0; o < e.length; )
a[o++] = r, a[o++] = i;
return a;
}
function aZe(t, e) {
for (var n, r, i, a = [], o = [], s = 0; s < Math.max(t.length, e.length); s++) {
var l = t[s], u = e[s], c = void 0, f = void 0;
l ? u ? (n = iZe(l, u), c = n[0], f = n[1], r = c, i = f) : (f = xQ(i || l, l), c = l) : (c = xQ(r || u, u), f = u), a.push(c), o.push(f);
}
return [a, o];
}
function wQ(t) {
for (var e = 0, n = 0, r = 0, i = t.length, a = 0, o = i - 2; a < i; o = a, a += 2) {
var s = t[o], l = t[o + 1], u = t[a], c = t[a + 1], f = s * c - u * l;
e += f, n += (s + u) * f, r += (l + c) * f;
}
return e === 0 ? [t[0] || 0, t[1] || 0] : [n / e / 3, r / e / 3, e];
}
function oZe(t, e, n, r) {
for (var i = (t.length - 2) / 6, a = 1 / 0, o = 0, s = t.length, l = s - 2, u = 0; u < i; u++) {
for (var c = u * 6, f = 0, d = 0; d < s; d += 2) {
var h = d === 0 ? c : (c + d - 2) % l + 2, p = t[h] - n[0], v = t[h + 1] - n[1], g = e[d] - r[0], m = e[d + 1] - r[1], y = g - p, b = m - v;
f += y * y + b * b;
}
f < a && (a = f, o = u);
}
return o;
}
function sZe(t) {
for (var e = [], n = t.length, r = 0; r < n; r += 2)
e[r] = t[n - r - 2], e[r + 1] = t[n - r - 1];
return e;
}
function lZe(t, e, n, r) {
for (var i = [], a, o = 0; o < t.length; o++) {
var s = t[o], l = e[o], u = wQ(s), c = wQ(l);
a == null && (a = u[2] < 0 != c[2] < 0);
var f = [], d = [], h = 0, p = 1 / 0, v = [], g = s.length;
a && (s = sZe(s));
for (var m = oZe(s, l, u, c) * 6, y = g - 2, b = 0; b < y; b += 2) {
var _ = (m + b) % y + 2;
f[b + 2] = s[_] - u[0], f[b + 3] = s[_ + 1] - u[1];
}
f[0] = s[m] - u[0], f[1] = s[m + 1] - u[1];
for (var O = r / n, S = -r / 2; S <= r / 2; S += O) {
for (var x = Math.sin(S), C = Math.cos(S), T = 0, b = 0; b < s.length; b += 2) {
var w = f[b], P = f[b + 1], $ = l[b] - c[0], A = l[b + 1] - c[1], D = $ * C - A * x, E = $ * x + A * C;
v[b] = D, v[b + 1] = E;
var R = D - w, N = E - P;
T += R * R + N * N;
}
if (T < p) {
p = T, h = S;
for (var V = 0; V < v.length; V++)
d[V] = v[V];
}
}
i.push({
from: f,
to: d,
fromCp: u,
toCp: c,
rotation: -h
});
}
return i;
}
function XO(t) {
return t.__isCombineMorphing;
}
var gie = "__mOriginal_";
function YO(t, e, n) {
var r = gie + e, i = t[r] || t[e];
t[r] || (t[r] = t[e]);
var a = n.replace, o = n.after, s = n.before;
t[e] = function() {
var l = arguments, u;
return s && s.apply(this, l), a ? u = a.apply(this, l) : u = i.apply(this, l), o && o.apply(this, l), u;
};
}
function Wg(t, e) {
var n = gie + e;
t[n] && (t[e] = t[n], t[n] = null);
}
function CQ(t, e) {
for (var n = 0; n < t.length; n++)
for (var r = t[n], i = 0; i < r.length; ) {
var a = r[i], o = r[i + 1];
r[i++] = e[0] * a + e[2] * o + e[4], r[i++] = e[1] * a + e[3] * o + e[5];
}
}
function mie(t, e) {
var n = t.getUpdatedPathProxy(), r = e.getUpdatedPathProxy(), i = aZe(GE(n), GE(r)), a = i[0], o = i[1], s = t.getComputedTransform(), l = e.getComputedTransform();
function u() {
this.transform = null;
}
s && CQ(a, s), l && CQ(o, l), YO(e, "updateTransform", { replace: u }), e.transform = null;
var c = lZe(a, o, 10, Math.PI), f = [];
YO(e, "buildPath", { replace: function(d) {
for (var h = e.__morphT, p = 1 - h, v = [], g = 0; g < c.length; g++) {
var m = c[g], y = m.from, b = m.to, _ = m.rotation * h, O = m.fromCp, S = m.toCp, x = Math.sin(_), C = Math.cos(_);
$g(v, O, S, h);
for (var T = 0; T < y.length; T += 2) {
var w = y[T], P = y[T + 1], $ = b[T], A = b[T + 1], D = w * p + $ * h, E = P * p + A * h;
f[T] = D * C - E * x + v[0], f[T + 1] = D * x + E * C + v[1];
}
var R = f[0], N = f[1];
d.moveTo(R, N);
for (var T = 2; T < y.length; ) {
var $ = f[T++], A = f[T++], V = f[T++], B = f[T++], W = f[T++], F = f[T++];
R === $ && N === A && V === W && B === F ? d.lineTo(W, F) : d.bezierCurveTo($, A, V, B, W, F), R = W, N = F;
}
}
} });
}
function DL(t, e, n) {
if (!t || !e)
return e;
var r = n.done, i = n.during;
mie(t, e), e.__morphT = 0;
function a() {
Wg(e, "buildPath"), Wg(e, "updateTransform"), e.__morphT = -1, e.createPathProxy(), e.dirtyShape();
}
return e.animateTo({
__morphT: 1
}, Re({
during: function(o) {
e.dirtyShape(), i && i(o);
},
done: function() {
a(), r && r();
}
}, n)), e;
}
function uZe(t, e, n, r, i, a) {
var o = 16;
t = i === n ? 0 : Math.round(32767 * (t - n) / (i - n)), e = a === r ? 0 : Math.round(32767 * (e - r) / (a - r));
for (var s = 0, l, u = (1 << o) / 2; u > 0; u /= 2) {
var c = 0, f = 0;
(t & u) > 0 && (c = 1), (e & u) > 0 && (f = 1), s += u * u * (3 * c ^ f), f === 0 && (c === 1 && (t = u - 1 - t, e = u - 1 - e), l = t, t = e, e = l);
}
return s;
}
function qO(t) {
var e = 1 / 0, n = 1 / 0, r = -1 / 0, i = -1 / 0, a = ce(t, function(s) {
var l = s.getBoundingRect(), u = s.getComputedTransform(), c = l.x + l.width / 2 + (u ? u[4] : 0), f = l.y + l.height / 2 + (u ? u[5] : 0);
return e = Math.min(c, e), n = Math.min(f, n), r = Math.max(c, r), i = Math.max(f, i), [c, f];
}), o = ce(a, function(s, l) {
return {
cp: s,
z: uZe(s[0], s[1], e, n, r, i),
path: t[l]
};
});
return o.sort(function(s, l) {
return s.z - l.z;
}).map(function(s) {
return s.path;
});
}
function yie(t) {
return rZe(t.path, t.count);
}
function ZE() {
return {
fromIndividuals: [],
toIndividuals: [],
count: 0
};
}
function cZe(t, e, n) {
var r = [];
function i(O) {
for (var S = 0; S < O.length; S++) {
var x = O[S];
XO(x) ? i(x.childrenRef()) : x instanceof ot && r.push(x);
}
}
i(t);
var a = r.length;
if (!a)
return ZE();
var o = n.dividePath || yie, s = o({
path: e,
count: a
});
if (s.length !== a)
return console.error("Invalid morphing: unmatched splitted path"), ZE();
r = qO(r), s = qO(s);
for (var l = n.done, u = n.during, c = n.individualDelay, f = new Es(), d = 0; d < a; d++) {
var h = r[d], p = s[d];
p.parent = e, p.copyTransform(f), c || mie(h, p);
}
e.__isCombineMorphing = !0, e.childrenRef = function() {
return s;
};
function v(O) {
for (var S = 0; S < s.length; S++)
s[S].addSelfToZr(O);
}
YO(e, "addSelfToZr", {
after: function(O) {
v(O);
}
}), YO(e, "removeSelfFromZr", {
after: function(O) {
for (var S = 0; S < s.length; S++)
s[S].removeSelfFromZr(O);
}
});
function g() {
e.__isCombineMorphing = !1, e.__morphT = -1, e.childrenRef = null, Wg(e, "addSelfToZr"), Wg(e, "removeSelfFromZr");
}
var m = s.length;
if (c)
for (var y = m, b = function() {
y--, y === 0 && (g(), l && l());
}, d = 0; d < m; d++) {
var _ = c ? Re({
delay: (n.delay || 0) + c(d, m, r[d], s[d]),
done: b
}, n) : n;
DL(r[d], s[d], _);
}
else
e.__morphT = 0, e.animateTo({
__morphT: 1
}, Re({
during: function(O) {
for (var S = 0; S < m; S++) {
var x = s[S];
x.__morphT = e.__morphT, x.dirtyShape();
}
u && u(O);
},
done: function() {
g();
for (var O = 0; O < t.length; O++)
Wg(t[O], "updateTransform");
l && l();
}
}, n));
return e.__zr && v(e.__zr), {
fromIndividuals: r,
toIndividuals: s,
count: m
};
}
function fZe(t, e, n) {
var r = e.length, i = [], a = n.dividePath || yie;
function o(h) {
for (var p = 0; p < h.length; p++) {
var v = h[p];
XO(v) ? o(v.childrenRef()) : v instanceof ot && i.push(v);
}
}
if (XO(t)) {
o(t.childrenRef());
var s = i.length;
if (s < r)
for (var l = 0, u = s; u < r; u++)
i.push(VR(i[l++ % s]));
i.length = r;
} else {
i = a({ path: t, count: r });
for (var c = t.getComputedTransform(), u = 0; u < i.length; u++)
i[u].setLocalTransform(c);
if (i.length !== r)
return console.error("Invalid morphing: unmatched splitted path"), ZE();
}
i = qO(i), e = qO(e);
for (var f = n.individualDelay, u = 0; u < r; u++) {
var d = f ? Re({
delay: (n.delay || 0) + f(u, r, i[u], e[u])
}, n) : n;
DL(i[u], e[u], d);
}
return {
fromIndividuals: i,
toIndividuals: e,
count: e.length
};
}
function TQ(t) {
return ue(t[0]);
}
function PQ(t, e) {
for (var n = [], r = t.length, i = 0; i < r; i++)
n.push({
one: t[i],
many: []
});
for (var i = 0; i < e.length; i++) {
var a = e[i].length, o = void 0;
for (o = 0; o < a; o++)
n[o % r].many.push(e[i][o]);
}
for (var s = 0, i = r - 1; i >= 0; i--)
if (!n[i].many.length) {
var l = n[s].many;
if (l.length <= 1)
if (s)
s = 0;
else
return n;
var a = l.length, u = Math.ceil(a / 2);
n[i].many = l.slice(u, a), n[s].many = l.slice(0, u), s++;
}
return n;
}
var dZe = {
clone: function(t) {
for (var e = [], n = 1 - Math.pow(1 - t.path.style.opacity, 1 / t.count), r = 0; r < t.count; r++) {
var i = VR(t.path);
i.setStyle("opacity", n), e.push(i);
}
return e;
},
// Use the default divider
split: null
};
function l$(t, e, n, r, i, a) {
if (!t.length || !e.length)
return;
var o = bp("update", r, i);
if (!(o && o.duration > 0))
return;
var s = r.getModel("universalTransition").get("delay"), l = Object.assign({
// Need to setToFinal so the further calculation based on the style can be correct.
// Like emphasis color.
setToFinal: !0
}, o), u, c;
TQ(t) && (u = t, c = e), TQ(e) && (u = e, c = t);
function f(m, y, b, _, O) {
var S = m.many, x = m.one;
if (S.length === 1 && !O) {
var C = y ? S[0] : x, T = y ? x : S[0];
if (XO(C))
f({
many: [C],
one: T
}, !0, b, _, !0);
else {
var w = s ? Re({
delay: s(b, _)
}, l) : l;
DL(C, T, w), a(C, T, C, T, w);
}
} else
for (var P = Re({
dividePath: dZe[n],
individualDelay: s && function(N, V, B, W) {
return s(N + b, _);
}
}, l), $ = y ? cZe(S, x, P) : fZe(x, S, P), A = $.fromIndividuals, D = $.toIndividuals, E = A.length, R = 0; R < E; R++) {
var w = s ? Re({
delay: s(R, E)
}, l) : l;
a(A[R], D[R], y ? S[R] : m.one, y ? m.one : S[R], w);
}
}
for (var d = u ? u === t : t.length > e.length, h = u ? PQ(c, u) : PQ(d ? e : t, [d ? t : e]), p = 0, v = 0; v < h.length; v++)
p += h[v].many.length;
for (var g = 0, v = 0; v < h.length; v++)
f(h[v], d, g, p), g += h[v].many.length;
}
function mc(t) {
if (!t)
return [];
if (ue(t)) {
for (var e = [], n = 0; n < t.length; n++)
e.push(mc(t[n]));
return e;
}
var r = [];
return t.traverse(function(i) {
i instanceof ot && !i.disableMorphing && !i.invisible && !i.ignore && r.push(i);
}), r;
}
var bie = 1e4, hZe = 0, $Q = 1, AQ = 2, pZe = bt();
function vZe(t, e) {
for (var n = t.dimensions, r = 0; r < n.length; r++) {
var i = t.getDimensionInfo(n[r]);
if (i && i.otherDims[e] === 0)
return n[r];
}
}
function gZe(t, e, n) {
var r = t.getDimensionInfo(n), i = r && r.ordinalMeta;
if (r) {
var a = t.get(r.name, e);
return i && i.categories[a] || a + "";
}
}
function EQ(t, e, n, r) {
var i = r ? "itemChildGroupId" : "itemGroupId", a = vZe(t, i);
if (a) {
var o = gZe(t, e, a);
return o;
}
var s = t.getRawDataItem(e), l = r ? "childGroupId" : "groupId";
if (s && s[l])
return s[l] + "";
if (!r)
return n || t.getId(e);
}
function MQ(t) {
var e = [];
return k(t, function(n) {
var r = n.data, i = n.dataGroupId;
if (r.count() > bie) {
process.env.NODE_ENV !== "production" && dn("Universal transition is disabled on large data > 10k.");
return;
}
for (var a = r.getIndices(), o = 0; o < a.length; o++)
e.push({
data: r,
groupId: EQ(r, o, i, !1),
childGroupId: EQ(r, o, i, !0),
divide: n.divide,
dataIndex: o
});
}), e;
}
function u$(t, e, n) {
t.traverse(function(r) {
r instanceof ot && Yt(r, {
style: {
opacity: 0
}
}, e, {
dataIndex: n,
isFrom: !0
});
});
}
function c$(t) {
if (t.parent) {
var e = t.getComputedTransform();
t.setLocalTransform(e), t.parent.remove(t);
}
}
function xd(t) {
t.stopAnimation(), t.isGroup && t.traverse(function(e) {
e.stopAnimation();
});
}
function mZe(t, e, n) {
var r = bp("update", n, e);
r && t.traverse(function(i) {
if (i instanceof Da) {
var a = jke(i);
a && i.animateFrom({
style: a
}, r);
}
});
}
function yZe(t, e) {
var n = t.length;
if (n !== e.length)
return !1;
for (var r = 0; r < n; r++) {
var i = t[r], a = e[r];
if (i.data.getId(i.dataIndex) !== a.data.getId(a.dataIndex))
return !1;
}
return !0;
}
function _ie(t, e, n) {
var r = MQ(t), i = MQ(e);
function a(b, _, O, S, x) {
(O || b) && _.animateFrom({
style: O && O !== b ? le(le({}, O.style), b.style) : b.style
}, x);
}
var o = !1, s = hZe, l = Pe(), u = Pe();
r.forEach(function(b) {
b.groupId && l.set(b.groupId, !0), b.childGroupId && u.set(b.childGroupId, !0);
});
for (var c = 0; c < i.length; c++) {
var f = i[c].groupId;
if (u.get(f)) {
s = $Q;
break;
}
var d = i[c].childGroupId;
if (d && l.get(d)) {
s = AQ;
break;
}
}
function h(b, _) {
return function(O) {
var S = O.data, x = O.dataIndex;
return _ ? S.getId(x) : b ? s === $Q ? O.childGroupId : O.groupId : s === AQ ? O.childGroupId : O.groupId;
};
}
var p = yZe(r, i), v = {};
if (!p)
for (var c = 0; c < i.length; c++) {
var g = i[c], m = g.data.getItemGraphicEl(g.dataIndex);
m && (v[m.id] = !0);
}
function y(b, _) {
var O = r[_], S = i[b], x = S.data.hostModel, C = O.data.getItemGraphicEl(O.dataIndex), T = S.data.getItemGraphicEl(S.dataIndex);
if (C === T) {
T && mZe(T, S.dataIndex, x);
return;
}
// We can't use the elements that already being morphed
C && v[C.id] || T && (xd(T), C ? (xd(C), c$(C), o = !0, l$(mc(C), mc(T), S.divide, x, b, a)) : u$(T, x, b));
}
new Xs(r, i, h(!0, p), h(!1, p), null, "multiple").update(y).updateManyToOne(function(b, _) {
var O = i[b], S = O.data, x = S.hostModel, C = S.getItemGraphicEl(O.dataIndex), T = Nt(ce(_, function(w) {
return r[w].data.getItemGraphicEl(r[w].dataIndex);
}), function(w) {
return w && w !== C && !v[w.id];
});
C && (xd(C), T.length ? (k(T, function(w) {
xd(w), c$(w);
}), o = !0, l$(mc(T), mc(C), O.divide, x, b, a)) : u$(C, x, O.dataIndex));
}).updateOneToMany(function(b, _) {
var O = r[_], S = O.data.getItemGraphicEl(O.dataIndex);
if (!(S && v[S.id])) {
var x = Nt(ce(b, function(T) {
return i[T].data.getItemGraphicEl(i[T].dataIndex);
}), function(T) {
return T && T !== S;
}), C = i[b[0]].data.hostModel;
x.length && (k(x, function(T) {
return xd(T);
}), S ? (xd(S), c$(S), o = !0, l$(
mc(S),
mc(x),
O.divide,
// Use divide on old.
C,
b[0],
a
)) : k(x, function(T) {
return u$(T, C, b[0]);
}));
}
}).updateManyToMany(function(b, _) {
new Xs(_, b, function(O) {
return r[O].data.getId(r[O].dataIndex);
}, function(O) {
return i[O].data.getId(i[O].dataIndex);
}).update(function(O, S) {
y(b[O], _[S]);
}).execute();
}).execute(), o && k(e, function(b) {
var _ = b.data, O = _.hostModel, S = O && n.getViewOfSeriesModel(O), x = bp("update", O, 0);
S && O.isAnimationEnabled() && x && x.duration > 0 && S.group.traverse(function(C) {
C instanceof ot && !C.animators.length && C.animateFrom({
style: {
opacity: 0
}
}, x);
});
});
}
function IQ(t) {
var e = t.getModel("universalTransition").get("seriesKey");
return e || t.id;
}
function DQ(t) {
return ue(t) ? t.sort().join(",") : t;
}
function Cl(t) {
if (t.hostModel)
return t.hostModel.getModel("universalTransition").get("divideShape");
}
function bZe(t, e) {
var n = Pe(), r = Pe(), i = Pe();
k(t.oldSeries, function(o, s) {
var l = t.oldDataGroupIds[s], u = t.oldData[s], c = IQ(o), f = DQ(c);
r.set(f, {
dataGroupId: l,
data: u
}), ue(c) && k(c, function(d) {
i.set(d, {
key: f,
dataGroupId: l,
data: u
});
});
});
function a(o) {
n.get(o) && dn("Duplicated seriesKey in universalTransition " + o);
}
return k(e.updatedSeries, function(o) {
if (o.isUniversalTransitionEnabled() && o.isAnimationEnabled()) {
var s = o.get("dataGroupId"), l = o.getData(), u = IQ(o), c = DQ(u), f = r.get(c);
if (f)
process.env.NODE_ENV !== "production" && a(c), n.set(c, {
oldSeries: [{
dataGroupId: f.dataGroupId,
divide: Cl(f.data),
data: f.data
}],
newSeries: [{
dataGroupId: s,
divide: Cl(l),
data: l
}]
});
else if (ue(u)) {
process.env.NODE_ENV !== "production" && a(c);
var d = [];
k(u, function(v) {
var g = r.get(v);
g.data && d.push({
dataGroupId: g.dataGroupId,
divide: Cl(g.data),
data: g.data
});
}), d.length && n.set(c, {
oldSeries: d,
newSeries: [{
dataGroupId: s,
data: l,
divide: Cl(l)
}]
});
} else {
var h = i.get(u);
if (h) {
var p = n.get(h.key);
p || (p = {
oldSeries: [{
dataGroupId: h.dataGroupId,
data: h.data,
divide: Cl(h.data)
}],
newSeries: []
}, n.set(h.key, p)), p.newSeries.push({
dataGroupId: s,
data: l,
divide: Cl(l)
});
}
}
}
}), n;
}
function RQ(t, e) {
for (var n = 0; n < t.length; n++) {
var r = e.seriesIndex != null && e.seriesIndex === t[n].seriesIndex || e.seriesId != null && e.seriesId === t[n].id;
if (r)
return n;
}
}
function _Ze(t, e, n, r) {
var i = [], a = [];
k(Qt(t.from), function(o) {
var s = RQ(e.oldSeries, o);
s >= 0 && i.push({
dataGroupId: e.oldDataGroupIds[s],
data: e.oldData[s],
// TODO can specify divideShape in transition.
divide: Cl(e.oldData[s]),
groupIdDim: o.dimension
});
}), k(Qt(t.to), function(o) {
var s = RQ(n.updatedSeries, o);
if (s >= 0) {
var l = n.updatedSeries[s].getData();
a.push({
dataGroupId: e.oldDataGroupIds[s],
data: l,
divide: Cl(l),
groupIdDim: o.dimension
});
}
}), i.length > 0 && a.length > 0 && _ie(i, a, r);
}
function OZe(t) {
t.registerUpdateLifecycle("series:beforeupdate", function(e, n, r) {
k(Qt(r.seriesTransition), function(i) {
k(Qt(i.to), function(a) {
for (var o = r.updatedSeries, s = 0; s < o.length; s++)
(a.seriesIndex != null && a.seriesIndex === o[s].seriesIndex || a.seriesId != null && a.seriesId === o[s].id) && (o[s][j_] = !0);
});
});
}), t.registerUpdateLifecycle("series:transition", function(e, n, r) {
var i = pZe(n);
if (i.oldSeries && r.updatedSeries && r.optionChanged) {
var a = r.seriesTransition;
if (a)
k(Qt(a), function(h) {
_Ze(h, i, r, n);
});
else {
var o = bZe(i, r);
k(o.keys(), function(h) {
var p = o.get(h);
_ie(p.oldSeries, p.newSeries, n);
});
}
k(r.updatedSeries, function(h) {
h[j_] && (h[j_] = !1);
});
}
for (var s = e.getSeries(), l = i.oldSeries = [], u = i.oldDataGroupIds = [], c = i.oldData = [], f = 0; f < s.length; f++) {
var d = s[f].getData();
d.count() < bie && (l.push(s[f]), u.push(s[f].get("dataGroupId")), c.push(d));
}
});
}
at([M3e]);
at([T3e]);
at([q3e, d6e, S6e, tBe, dBe, KBe, Tze, uVe, MVe, NVe, jVe, VFe, fWe, SWe, BWe, WWe, KWe, a7e, g7e, S7e, I7e, pQe]);
at(DQe);
at(oHe);
at(mne);
at(bHe);
at(nre);
at(xHe);
at(IHe);
at(bGe);
at(BGe);
at(ty);
at(t9e);
at(i9e);
at(p9e);
at(O9e);
at(P9e);
at(D9e);
at(Q9e);
at(sje);
at(oie);
at(sie);
at(Pje);
at(die);
at(hie);
at(Ije);
at(Gje);
at(Uje);
at(OZe);
at(j5e);
const SZe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
Axis: Va,
ChartView: zt,
ComponentModel: rt,
ComponentView: Xt,
List: Nr,
Model: Wt,
PRIORITY: Cee,
SeriesModel: Ht,
color: nDe,
connect: K8e,
dataTool: aNe,
dependencies: k8e,
disConnect: J8e,
disconnect: Ree,
dispose: eNe,
env: vt,
extendChartView: D5e,
extendComponentModel: E5e,
extendComponentView: M5e,
extendSeriesModel: I5e,
format: y5e,
getCoordinateSystemDimensions: nNe,
getInstanceByDom: mk,
getInstanceById: tNe,
getMap: iNe,
graphic: m5e,
helper: u5e,
init: Dee,
innerDrawElementOnCanvas: hk,
matrix: DIe,
number: v5e,
parseGeoJSON: aE,
parseGeoJson: aE,
registerAction: go,
registerCoordinateSystem: Nee,
registerLayout: Bee,
registerLoading: Sk,
registerLocale: XR,
registerMap: zee,
registerPostInit: kee,
registerPostUpdate: Lee,
registerPreprocessor: bk,
registerProcessor: _k,
registerTheme: yk,
registerTransform: Vee,
registerUpdateLifecycle: dw,
registerVisual: $u,
setCanvasCreator: rNe,
setPlatformAPI: Sq,
throttle: cw,
time: g5e,
use: at,
util: b5e,
vector: bIe,
version: R8e,
zrUtil: dIe,
zrender: BDe
}, Symbol.toStringTag, { value: "Module" }));
function xZe(t) {
return Z9() ? (d0(t), !0) : !1;
}
function KO(t) {
return typeof t == "function" ? t() : z(t);
}
const wZe = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const CZe = Object.prototype.toString, TZe = (t) => CZe.call(t) === "[object Object]", UE = () => {
};
function PZe(t, e) {
function n(...r) {
return new Promise((i, a) => {
Promise.resolve(t(() => e.apply(this, r), { fn: e, thisArg: this, args: r })).then(i).catch(a);
});
}
return n;
}
function $Ze(t, e = {}) {
let n, r, i = UE;
const a = (s) => {
clearTimeout(s), i(), i = UE;
};
return (s) => {
const l = KO(t), u = KO(e.maxWait);
return n && a(n), l <= 0 || u !== void 0 && u <= 0 ? (r && (a(r), r = null), Promise.resolve(s())) : new Promise((c, f) => {
i = e.rejectOnCancel ? f : c, u && !r && (r = setTimeout(() => {
n && a(n), r = null, c(s());
}, u)), n = setTimeout(() => {
r && a(r), r = null, c(s());
}, l);
});
};
}
function AZe(t) {
return vn();
}
function EZe(t, e = 200, n = {}) {
return PZe(
$Ze(e, n),
t
);
}
function MZe(t, e) {
AZe() && rl(t, e);
}
function IZe(t) {
var e;
const n = KO(t);
return (e = n == null ? void 0 : n.$el) != null ? e : n;
}
const DZe = wZe ? window : void 0;
function RZe(...t) {
let e, n, r, i;
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, r, i] = t, e = DZe) : [e, n, r, i] = t, !e)
return UE;
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
const a = [], o = () => {
a.forEach((c) => c()), a.length = 0;
}, s = (c, f, d, h) => (c.addEventListener(f, d, h), () => c.removeEventListener(f, d, h)), l = se(
() => [IZe(e), KO(i)],
([c, f]) => {
if (o(), !c)
return;
const d = TZe(f) ? { ...f } : f;
a.push(
...n.flatMap((h) => r.map((p) => s(c, h, p, d)))
);
},
{ immediate: !0, flush: "post" }
), u = () => {
l(), o();
};
return xZe(u), u;
}
function kZe(t, e = "default") {
let n = null, r = s;
const i = U({});
let a;
const o = L(() => i.value);
r = EZe(s, 200);
function s() {
n == null || n.resize({
animation: {
duration: 300,
easing: "quadraticIn"
}
});
}
function l(f = e) {
const d = z(t);
if (!d || !z(d))
return;
n = Dee(d, f), a = RZe(window, "resize", r);
}
function u(f, d = !1) {
return i.value = f, new Promise((h) => {
var p;
((p = z(t)) == null ? void 0 : p.offsetHeight) === 0 && setTimeout(() => {
u(z(o)), h(null);
}, 30), Tt(() => {
setTimeout(() => {
!n && (l("default"), !n) || (d && (n == null || n.clear()), n == null || n.setOption(z(o)), h(null));
}, 30);
});
});
}
se(
() => e,
(f) => {
n && (n.dispose(), l(f), u(i.value));
}
), MZe(() => {
n && (a(), n.dispose(), n = null);
});
function c() {
return n || l("default"), n;
}
return {
setOptions: u,
resize: s,
echarts: SZe,
getInstance: c
};
}
const RL = /* @__PURE__ */ te({
__name: "Charts",
props: {
echartsOptions: {},
width: {},
height: {},
loading: { type: Boolean }
},
setup(t) {
const e = t, n = U(null), { setOptions: r, resize: i } = kZe(n), a = qg(ns, {
style: {
fontSize: "24px"
}
});
return se(
() => [e.width, e.height],
Wbe(async () => {
i();
}, 200)
), se(
() => e,
async () => {
await Tt();
const { echartsOptions: o } = e;
r(o);
},
{
immediate: !0,
deep: !0
}
), (o, s) => (pe(), je(z(Og), {
spinning: o.loading,
indicator: z(a)
}, {
default: we(() => [
He("div", {
ref_key: "chartRef",
ref: n,
style: Sr({ width: o.width + "px", height: o.height + "px" })
}, null, 4)
]),
_: 1
}, 8, ["spinning", "indicator"]));
}
});
function kL(t) {
return xU(t, PMe);
}
const LL = {
type: Object,
default: () => ({
sourceType: Li.STATIC,
data: [],
url: "",
method: "GET",
params: {},
headers: {},
refreshTime: 0,
dataProcess: () => []
})
}, LZe = (t, e) => new Promise((n, r) => {
const i = new Blob([`
self.onmessage = function(e) {
self.postMessage((${t}).call(null, e.data));
}
`], { type: "application/javascript" }), a = new Worker(URL.createObjectURL(i));
a.postMessage(JSON.parse(e)), a.onmessage = (o) => {
a.terminate(), n(o.data);
}, a.onerror = (o) => {
a.terminate(), r(o);
};
}), NL = {
width: {
type: Number,
default: 400
},
height: {
type: Number,
default: 260
},
dataSource: LL,
// 标题
title: {
type: Object
},
// 图例
legend: {
type: Object
},
// 背景
backgroundColor: {
type: String
},
// 边框
grid: {
type: Object
},
// 提示框
tooltip: {
type: Object
},
// x轴数据
xAxis: {
type: Object
},
// y轴数据
yAxis: {
type: Object
},
// 折线
series: {
type: Array
},
// 数据集
dataset: {
type: Object
}
}, Oie = [];
Oie.line = {
lineStyle: {
type: "solid",
width: 1
},
symbol: "rect",
symbolSize: 4,
symbolRotate: 0,
smooth: !1,
step: !1
};
const NZe = kL({
title: {
text: "折线图标题"
},
xAxis: {
data: ["轴标签A", "轴标签B", "轴标签C", "轴标签D"]
},
series: Oie
}), BZe = {
container: {
props: {
width: 400,
height: 260
}
},
props: {
// 数据源
dataSource: {
sourceType: Li.STATIC,
data: {
xData: ["轴标签A", "轴标签B", "轴标签C", "轴标签D"],
series: [
{
type: "line",
name: "系列1",
data: [89.3, 92.1, 94.4, 85.4]
},
{
type: "line",
name: "系列2",
data: [95.8, 89.4, 91.2, 76.9]
}
]
},
url: location.origin + "/mock/api/get/example/line",
method: "POST",
params: {},
headers: {},
refreshTime: 0,
dataProcess: `
(res) => {
// 取出列表
const data = res.data;
// x轴数据
const xData = data.map((item) => item.name);
// 系列数据
const series = [
{ type: 'line', name: '苹果', data: data.map(item => item.apple) },
{ type: 'line', name: 'VIVO', data: data.map(item => item.vivo) },
{ type: 'line', name: '小米', data: data.map(item => item.mi) },
];
// 返回图表数据
return { xData, series };
}
`
},
...NZe
}
}, Sie = (t, { manual: e, ready: n = !0, refreshDeps: r = [], refreshDepsAction: i }) => {
const a = U(!1);
return ht(() => {
!e && t.options.refreshDeps !== !0 && (a.value = z(n));
}), r instanceof Array ? se(
[a, ...r],
([o]) => {
o && !e && o && (i ? i() : t.refresh());
},
{
deep: !0,
immediate: !1
}
) : se(a, (o) => {
!e && o && (i ? i() : t.refresh());
}), {
name: "autoRunPlugin",
onBefore: () => {
if (!z(n))
return {
stopNow: !0
};
}
};
};
Sie.onInit = ({ ready: t = !0, manual: e }) => ({
loading: !e && z(t)
});
const e1 = /* @__PURE__ */ new Map(), zZe = (t, e, n) => {
const r = e1.get(t);
r != null && r.timer && clearTimeout(r.timer);
let i;
e > -1 && (i = setTimeout(() => {
e1.delete(t);
}, e)), e1.set(t, {
...n,
timer: i
});
}, VZe = (t) => e1.get(t), t1 = /* @__PURE__ */ new Map(), FZe = (t) => t1.get(t), WZe = (t, e) => {
t1.set(t, e), e.then((n) => (t1.delete(t), n)).catch((n) => {
throw t1.delete(t), n;
});
}, Tc = {}, QZe = [], HZe = (t, e) => {
Tc[t] && (Tc[t].forEach((n) => n(e)), QZe.forEach((n) => n({
type: t,
data: e
})));
}, f$ = (t, e) => (Tc[t] || (Tc[t] = []), Tc[t].push(e), function() {
const r = Tc[t].indexOf(e);
Tc[t].splice(r, 1);
}), GZe = (t, {
cacheKey: e,
cacheTime: n = 5 * 60 * 1e3,
staleTime: r = 0,
setCache: i,
getCache: a
}) => {
const o = U(), s = U(), l = (c, f) => {
i ? i(f) : zZe(c, n, f), HZe(c, f.data);
}, u = (c, f = []) => a ? a(f) : VZe(c);
return ht(() => {
if (!e)
return;
const c = u(e);
c && Object.hasOwnProperty.call(c, "data") && (t.state.data = c.data, t.state.params = c.params, (r === -1 || (/* @__PURE__ */ new Date()).getTime() - c.time <= r) && (t.state.loading = !1)), o.value = f$(e, (f) => {
t.setState({ data: f });
});
}), d0(() => {
var c;
(c = o.value) == null || c.call(o);
}), e ? {
name: "cachePlugin",
onBefore: (c) => {
const f = u(e, c);
return !f || !Object.hasOwnProperty.call(f, "data") ? {} : r === -1 || (/* @__PURE__ */ new Date()).getTime() - f.time <= r ? {
loading: !1,
data: f == null ? void 0 : f.data,
returnNow: !0
} : {
data: f == null ? void 0 : f.data
};
},
onRequest: (c, f) => {
let d = FZe(e);
return d && d !== s.value ? { servicePromise: d } : (d = c(...f), s.value = d, WZe(e, d), { servicePromise: d });
},
onSuccess: (c, f) => {
var d;
e && ((d = o.value) == null || d.call(o), l(e, {
data: c,
params: f,
time: (/* @__PURE__ */ new Date()).getTime()
}), o.value = f$(e, (h) => {
t.setState({ data: h });
}));
},
onMutate: (c) => {
var f;
e && ((f = o.value) == null || f.call(o), l(e, {
data: c,
params: t.state.params,
time: (/* @__PURE__ */ new Date()).getTime()
}), o.value = f$(e, (d) => {
t.setState({ data: d });
}));
}
} : {};
};
function jZe(t) {
var e = typeof t;
return t != null && (e == "object" || e == "function");
}
var mo = jZe, ZZe = typeof Dy == "object" && Dy && Dy.Object === Object && Dy, xie = ZZe, UZe = xie, XZe = typeof self == "object" && self && self.Object === Object && self, YZe = UZe || XZe || Function("return this")(), yo = YZe, qZe = yo, KZe = function() {
return qZe.Date.now();
}, JZe = KZe, eUe = /\s/;
function tUe(t) {
for (var e = t.length; e-- && eUe.test(t.charAt(e)); )
;
return e;
}
var nUe = tUe, rUe = nUe, iUe = /^\s+/;
function aUe(t) {
return t && t.slice(0, rUe(t) + 1).replace(iUe, "");
}
var oUe = aUe, sUe = yo, lUe = sUe.Symbol, Cw = lUe, kQ = Cw, wie = Object.prototype, uUe = wie.hasOwnProperty, cUe = wie.toString, Mv = kQ ? kQ.toStringTag : void 0;
function fUe(t) {
var e = uUe.call(t, Mv), n = t[Mv];
try {
t[Mv] = void 0;
var r = !0;
} catch {
}
var i = cUe.call(t);
return r && (e ? t[Mv] = n : delete t[Mv]), i;
}
var dUe = fUe, hUe = Object.prototype, pUe = hUe.toString;
function vUe(t) {
return pUe.call(t);
}
var gUe = vUe, LQ = Cw, mUe = dUe, yUe = gUe, bUe = "[object Null]", _Ue = "[object Undefined]", NQ = LQ ? LQ.toStringTag : void 0;
function OUe(t) {
return t == null ? t === void 0 ? _Ue : bUe : NQ && NQ in Object(t) ? mUe(t) : yUe(t);
}
var Dp = OUe;
function SUe(t) {
return t != null && typeof t == "object";
}
var Au = SUe, xUe = Dp, wUe = Au, CUe = "[object Symbol]";
function TUe(t) {
return typeof t == "symbol" || wUe(t) && xUe(t) == CUe;
}
var PUe = TUe, $Ue = oUe, BQ = mo, AUe = PUe, zQ = NaN, EUe = /^[-+]0x[0-9a-f]+$/i, MUe = /^0b[01]+$/i, IUe = /^0o[0-7]+$/i, DUe = parseInt;
function RUe(t) {
if (typeof t == "number")
return t;
if (AUe(t))
return zQ;
if (BQ(t)) {
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
t = BQ(e) ? e + "" : e;
}
if (typeof t != "string")
return t === 0 ? t : +t;
t = $Ue(t);
var n = MUe.test(t);
return n || IUe.test(t) ? DUe(t.slice(2), n ? 2 : 8) : EUe.test(t) ? zQ : +t;
}
var kUe = RUe, LUe = mo, d$ = JZe, VQ = kUe, NUe = "Expected a function", BUe = Math.max, zUe = Math.min;
function VUe(t, e, n) {
var r, i, a, o, s, l, u = 0, c = !1, f = !1, d = !0;
if (typeof t != "function")
throw new TypeError(NUe);
e = VQ(e) || 0, LUe(n) && (c = !!n.leading, f = "maxWait" in n, a = f ? BUe(VQ(n.maxWait) || 0, e) : a, d = "trailing" in n ? !!n.trailing : d);
function h(S) {
var x = r, C = i;
return r = i = void 0, u = S, o = t.apply(C, x), o;
}
function p(S) {
return u = S, s = setTimeout(m, e), c ? h(S) : o;
}
function v(S) {
var x = S - l, C = S - u, T = e - x;
return f ? zUe(T, a - C) : T;
}
function g(S) {
var x = S - l, C = S - u;
return l === void 0 || x >= e || x < 0 || f && C >= a;
}
function m() {
var S = d$();
if (g(S))
return y(S);
s = setTimeout(m, v(S));
}
function y(S) {
return s = void 0, d && r ? h(S) : (r = i = void 0, o);
}
function b() {
s !== void 0 && clearTimeout(s), u = 0, r = l = i = s = void 0;
}
function _() {
return s === void 0 ? o : y(d$());
}
function O() {
var S = d$(), x = g(S);
if (r = arguments, i = this, l = S, x) {
if (s === void 0)
return p(l);
if (f)
return clearTimeout(s), s = setTimeout(m, e), h(l);
}
return s === void 0 && (s = setTimeout(m, e)), o;
}
return O.cancel = b, O.flush = _, O;
}
var Cie = VUe;
const FUe = /* @__PURE__ */ mx(Cie), WUe = (t, { debounceWait: e, debounceLeading: n, debounceTrailing: r, debounceMaxWait: i }) => {
const a = U(), o = L(() => {
const s = {}, l = z(n), u = z(r), c = z(i);
return l !== void 0 && (s.leading = l), u !== void 0 && (s.trailing = u), c !== void 0 && (s.maxWait = c), s;
});
return ht((s) => {
if (z(e)) {
const l = t.runAsync.bind(t);
a.value = FUe(
(u) => {
u();
},
z(e),
o.value
), t.runAsync = (...u) => new Promise((c, f) => {
var d;
(d = a.value) == null || d.call(a, () => {
l(...u).then(c).catch(f);
});
}), s(() => {
var u;
(u = a.value) == null || u.cancel(), t.runAsync = l;
});
}
}), z(e) ? {
name: "debouncePlugin",
onCancel: () => {
var s;
(s = a.value) == null || s.cancel();
}
} : {};
};
var QUe = Object.defineProperty, HUe = (t, e, n) => e in t ? QUe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, FQ = (t, e, n) => (HUe(t, typeof e != "symbol" ? e + "" : e, n), n);
class GUe {
constructor() {
FQ(this, "table", {}), FQ(this, "hashTable", {});
}
insert(e) {
const n = Symbol(e);
return this.table[e] = !0, this.hashTable[n] = e, n;
}
find(e) {
return this.hashTable[e];
}
}
new GUe();
function jUe(t) {
const n = t.toString().match(/^function\s+([^\s(]+)/);
return n ? n[1] : "";
}
function ZUe(t) {
const e = t.toString(), n = /([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/, r = e.match(n);
return r ? r[1].trim() : "";
}
var UUe = Object.defineProperty, XUe = (t, e, n) => e in t ? UUe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, WQ = (t, e, n) => (XUe(t, typeof e != "symbol" ? e + "" : e, n), n);
class YUe {
constructor() {
WQ(this, "requestInstances", /* @__PURE__ */ new Map()), WQ(this, "listeners", []);
}
emit(e) {
this.listeners.forEach((n) => n(e));
}
subscribe(e) {
return this.listeners.push(e), () => {
const n = this.listeners.indexOf(e);
this.listeners.splice(n, 1);
};
}
insert(e, n) {
this.requestInstances.set(e, { ...n }), this.emit({
key: e,
...n
});
}
update(e, n) {
this.has(e) && this.requestInstances.set(e, { ...this.requestInstances.get(e), ...n });
}
has(e) {
return this.requestInstances.has(e);
}
reset(e) {
if (this.requestInstances.has(e)) {
const n = this.requestInstances.get(e);
this.requestInstances.clear(), this.insert(e, n);
} else
this.requestInstances.clear();
}
getAll() {
return this.requestInstances;
}
}
const ui = new YUe(), qUe = (t, { ready: e = !0, debugKey: n, ...r }) => {
const i = () => {
if (n && !ui.has(n)) {
const o = t.serviceRef.value.toString().includes("function") ? jUe(t.serviceRef.value.toString()) : ZUe(t.serviceRef.value.toString());
ui.insert(n, {
instance: t,
requestName: o,
time: Date.now()
});
}
}, a = L(
() => Object.fromEntries(
Object.entries({ ready: e, ...r }).map(([o, s]) => [o, z(s)])
)
);
return ht(() => {
n && ui.has(n) && ui.emit({
...t,
options: { ...t.options, ...a.value }
});
}), {
name: "devtoolsPlugin",
onBefore: (o) => {
i(), n && ui.has(n) && ui.emit({
...t.state,
key: n,
params: o,
loading: !0,
time: Date.now(),
type: "pending"
});
},
onSuccess(o, s) {
i(), n && ui.has(n) && ui.emit({
...t.state,
key: n,
data: o,
params: s,
loading: !1,
time: Date.now(),
type: "done"
});
},
onCancel() {
i(), n && ui.has(n) && ui.emit({
...t.state,
key: n,
loading: !1,
time: Date.now(),
type: "cancel"
});
},
onError(o, s) {
i(), n && ui.has(n) && ui.emit({
...t.state,
key: n,
params: s,
loading: !1,
error: o,
time: Date.now(),
type: "error"
});
},
onMutate(o) {
i(), n && ui.has(n) && ui.emit({
...t.state,
key: n,
data: o,
loading: !1,
time: Date.now(),
type: "mutate"
});
}
};
}, KUe = (t, { loadingDelay: e }) => {
const n = U(), r = () => {
n.value && (clearTimeout(z(n.value)), n.value = void 0);
};
return {
name: "loadingDelayPlugin",
onFinally: () => {
r();
const i = z(e);
i && (t.setState({
loading: !0
}), n.value = setTimeout(() => {
t.setState({
loading: !1
});
}, i));
},
onError: () => {
r();
}
};
};
function BL() {
return !!(typeof window < "u" && window.document && window.document.createElement);
}
const JUe = !!(typeof window < "u" && window.document && window.document.createElement);
function zL() {
return BL() ? document.visibilityState !== "hidden" : !0;
}
const Qg = [];
function eXe(t) {
return Qg.push(t), function() {
const n = Qg.indexOf(t);
Qg.splice(n, 1);
};
}
if (BL()) {
const t = () => {
if (zL())
for (let e = 0; e < Qg.length; e++) {
const n = Qg[e];
n();
}
};
window.addEventListener("visibilitychange", t, !1);
}
const tXe = (t, { pollingInterval: e, pollingWhenHidden: n = !0, pollingErrorRetryCount: r = -1 }) => {
let i;
const a = U(), o = U(0), s = () => {
var l;
i && clearTimeout(i), (l = a.value) == null || l.call(a);
};
return ht(() => {
z(e) || s();
}), z(e) ? {
name: "pollingPlugin",
onBefore: () => {
s();
},
onError: () => {
o.value += 1;
},
onSuccess: () => {
o.value = 0;
},
onFinally: () => {
r === -1 || r !== -1 && o.value <= r ? i = setTimeout(() => {
!n && !zL() ? a.value = eXe(() => {
t.refresh();
}) : t.refresh();
}, z(e)) : o.value = 0;
},
onCancel: () => {
s();
}
} : {};
};
function nXe(t, e) {
let n = !1;
return (...r) => {
n || (n = !0, t(...r), setTimeout(() => {
n = !1;
}, e));
};
}
function rXe() {
return BL() && typeof navigator.onLine < "u" ? navigator.onLine : !0;
}
const Hg = [];
function iXe(t) {
return Hg.push(t), function() {
const n = Hg.indexOf(t);
n > -1 && Hg.splice(n, 1);
};
}
if (JUe) {
const t = () => {
if (!(!zL() || !rXe()))
for (let e = 0; e < Hg.length; e++) {
const n = Hg[e];
n();
}
};
window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1);
}
const aXe = (t, { refreshOnWindowFocus: e, focusTimespan: n = 5e3 }) => {
const r = U(), i = () => {
var a;
(a = r.value) == null || a.call(r);
};
return ht((a) => {
if (z(e)) {
const o = nXe(
t.refresh.bind(t),
z(n)
);
r.value = iXe(() => {
o();
});
}
a(() => {
i();
});
}), d0(() => {
i();
}), {
name: "refreshOnWindowFocusPlugin"
};
}, oXe = (t, { retryInterval: e, retryCount: n }) => {
const r = U(), i = U(0), a = U(!1);
return n ? {
name: "retryPlugin",
onBefore: () => {
a.value || (i.value = 0), a.value = !1, r.value && clearTimeout(r.value);
},
onSuccess: () => {
i.value = 0;
},
onError: () => {
if (i.value += 1, n === -1 || i.value <= n) {
const o = e ?? Math.min(1e3 * 2 ** i.value, 3e4);
r.value = setTimeout(() => {
a.value = !0, t.refresh();
}, o);
} else
i.value = 0;
},
onCancel: () => {
i.value = 0, r.value && clearTimeout(r.value);
}
} : {};
};
var sXe = Cie, lXe = mo, uXe = "Expected a function";
function cXe(t, e, n) {
var r = !0, i = !0;
if (typeof t != "function")
throw new TypeError(uXe);
return lXe(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), sXe(t, e, {
leading: r,
maxWait: e,
trailing: i
});
}
var fXe = cXe;
const dXe = /* @__PURE__ */ mx(fXe), hXe = (t, { throttleWait: e, throttleLeading: n, throttleTrailing: r }) => {
const i = L(() => {
const o = {};
return z(n) !== void 0 && (o.leading = z(n)), z(r) !== void 0 && (o.trailing = z(r)), o;
}), a = L(
() => dXe(
(o) => {
o();
},
z(e),
i.value
)
);
return ht((o) => {
if (z(e)) {
const s = t.runAsync.bind(t);
t.runAsync = (...l) => new Promise((u, c) => {
var f;
(f = a.value) == null || f.call(a, () => {
s(...l).then(u).catch(c);
});
}), o(() => {
var l;
t.runAsync = s, (l = a.value) == null || l.cancel();
});
}
}), z(e) ? {
name: "throttlePlugin",
onCancel: () => {
var o;
(o = a.value) == null || o.cancel();
}
} : {};
}, QQ = (t) => typeof t == "function", pXe = (t) => typeof t == "boolean";
var vXe = Object.defineProperty, gXe = (t, e, n) => e in t ? vXe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Wb = (t, e, n) => (gXe(t, typeof e != "symbol" ? e + "" : e, n), n);
class mXe {
constructor(e, n, r, i = {}) {
Wb(this, "pluginImpls"), Wb(this, "count", 0), Wb(this, "state", {
loading: !1,
params: void 0,
data: void 0,
error: void 0
}), Wb(this, "previousValidData"), this.serviceRef = e, this.options = n, this.setUpdateData = r, this.initState = i, this.state = {
...this.state,
loading: !n.manual,
...i
};
}
setState(e = {}) {
this.state = {
...this.state,
...e
}, this.setUpdateData(this.state);
}
setData(e, n) {
console.warn("Please use 'setFetchState' instead of 'setData'"), n instanceof Array ? n.forEach((r) => {
this.state[r] = e, this.setUpdateData(e, r);
}) : (this.state[n] = e, this.setUpdateData(e, n));
}
setFetchState(e, n) {
n instanceof Array ? n.forEach((r) => {
this.state[r] = e, this.setUpdateData(e, r);
}) : (this.state[n] = e, this.setUpdateData(e, n));
}
runPluginHandler(e, ...n) {
var r, i, a;
const o = (a = (i = (r = this.pluginImpls) == null ? void 0 : r.map((s) => {
var l;
return (l = s[e]) == null ? void 0 : l.call(s, ...n);
})) != null ? i : []) == null ? void 0 : a.filter(Boolean);
return Object.assign({}, ...o);
}
async runAsync(...e) {
var n, r, i, a, o, s, l, u, c, f, d;
this.count += 1;
const h = this.count, { stopNow: p = !1, returnNow: v = !1, ...g } = this.runPluginHandler(
"onBefore",
e
);
if (p)
return new Promise(() => {
});
if (this.setState({
loading: !0,
params: e,
...g
}), v)
return Promise.resolve(g.data);
try {
(r = (n = this.options).onBefore) == null || r.call(n, e);
} catch (m) {
return this.setState({
error: m,
loading: !1
}), (a = (i = this.options).onError) == null || a.call(i, m, e), this.runPluginHandler("onError", m, e), new Promise(() => {
});
}
try {
let { servicePromise: m } = this.runPluginHandler("onRequest", this.serviceRef.value, e);
const y = (_) => {
var O, S, x, C;
if (h !== this.count)
return new Promise(() => {
});
const T = this.options.formatResult ? this.options.formatResult(_) : _;
return this.setState({
data: T,
error: void 0,
loading: !1
}), (S = (O = this.options).onSuccess) == null || S.call(O, T, e), this.runPluginHandler("onSuccess", T, e), this.previousValidData = T, (C = (x = this.options).onFinally) == null || C.call(x, e, T, void 0), h === this.count && this.runPluginHandler("onFinally", e, T, void 0), T;
};
m || (m = this.serviceRef.value(...e));
const b = await m;
return y(b);
} catch (m) {
if (h !== this.count)
return new Promise(() => {
});
throw this.setState({
error: m,
loading: !1
}), (s = (o = this.options).onError) == null || s.call(o, m, e), this.runPluginHandler("onError", m, e), (QQ((l = this.options) == null ? void 0 : l.rollbackOnError) && ((u = this.options) != null && u.rollbackOnError(e)) || pXe((c = this.options) == null ? void 0 : c.rollbackOnError) && this.options.rollbackOnError) && this.setState({
data: this.previousValidData
}), (d = (f = this.options).onFinally) == null || d.call(f, e, void 0, m), h === this.count && this.runPluginHandler("onFinally", e, void 0, m), m;
}
}
run(...e) {
this.runAsync(...e).catch((n) => {
this.options.onError || console.error(n);
});
}
cancel() {
this.count += 1, this.setState({
loading: !1
}), this.runPluginHandler("onCancel");
}
refresh() {
this.run(...this.state.params || []);
}
refreshAsync() {
return this.runAsync(...this.state.params || []);
}
mutate(e) {
const n = QQ(e) ? e(this.state.data) : e;
this.runPluginHandler("onMutate", n), this.setState({
data: n
});
}
}
const yXe = Symbol(
"USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY"
);
function bXe(t) {
return Object.keys(t).filter((n) => ["data", "loading", "params", "error"].includes(n)).length === 4;
}
function _Xe(t, e = {}, n = []) {
const r = Ge(
yXe,
{}
), { initialData: i = void 0, manual: a = !1, ready: o = !0, ...s } = {
...r ?? {},
...e ?? {}
}, l = {
manual: a,
ready: o,
initialData: i,
...s
}, u = U(t), c = tn({
data: i,
loading: !1,
params: void 0,
error: void 0
}), f = (v, g) => {
g ? c[g] = v : bXe(v) && (c.data = v.data, c.loading = v.loading, c.error = v.error, c.params = v.params);
}, d = n.map((v) => {
var g;
return (g = v == null ? void 0 : v.onInit) == null ? void 0 : g.call(v, l);
}).filter(Boolean), h = new mXe(
u,
l,
f,
Object.assign({}, ...d, c)
);
h.options = l, h.pluginImpls = n.map((v) => v(h, l));
const p = L(() => op(o) ? o.value : o);
if (ht(() => {
if (!a) {
const v = h.state.params || e.defaultParams || [];
p.value && h.options.refreshDeps === !0 && u.value && h.run(...v);
}
}), !a && h.options.refreshDeps !== !0) {
const v = h.state.params || e.defaultParams || [];
z(o) && h.run(...v);
}
return d0(() => {
h.cancel();
}), {
...ES(c),
cancel: h.cancel.bind(h),
refresh: h.refresh.bind(h),
refreshAsync: h.refreshAsync.bind(h),
run: h.run.bind(h),
runAsync: h.runAsync.bind(h),
mutate: h.mutate.bind(h)
};
}
const OXe = (t, e) => function(r, i = {}, a = []) {
let o = t;
const s = e || [];
for (let l = s.length; l--; )
o = s[l](o);
return o(r, i, a);
};
function SXe(t, e, n) {
var r;
const i = (r = [
process.env.NODE_ENV === "development" ? qUe : null,
WUe,
KUe,
tXe,
aXe,
hXe,
Sie,
GZe,
oXe
]) == null ? void 0 : r.filter(Boolean);
return OXe(_Xe, e == null ? void 0 : e.use)(t, e, [
...i
]);
}
/*! js-cookie v3.0.5 | MIT */
function Qb(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e];
for (var r in n)
t[r] = n[r];
}
return t;
}
var xXe = {
read: function(t) {
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
},
write: function(t) {
return encodeURIComponent(t).replace(
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
decodeURIComponent
);
}
};
function XE(t, e) {
function n(i, a, o) {
if (!(typeof document > "u")) {
o = Qb({}, e, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
var s = "";
for (var l in o)
o[l] && (s += "; " + l, o[l] !== !0 && (s += "=" + o[l].split(";")[0]));
return document.cookie = i + "=" + t.write(a, i) + s;
}
}
function r(i) {
if (!(typeof document > "u" || arguments.length && !i)) {
for (var a = document.cookie ? document.cookie.split("; ") : [], o = {}, s = 0; s < a.length; s++) {
var l = a[s].split("="), u = l.slice(1).join("=");
try {
var c = decodeURIComponent(l[0]);
if (o[c] = t.read(u, c), i === c)
break;
} catch {
}
}
return i ? o[i] : o;
}
}
return Object.create(
{
set: n,
get: r,
remove: function(i, a) {
n(
i,
"",
Qb({}, a, {
expires: -1
})
);
},
withAttributes: function(i) {
return XE(this.converter, Qb({}, this.attributes, i));
},
withConverter: function(i) {
return XE(Qb({}, this.converter, i), this.attributes);
}
},
{
attributes: { value: Object.freeze(e) },
converter: { value: Object.freeze(t) }
}
);
}
XE(xXe, { path: "/" });
function wXe() {
this.__data__ = [], this.size = 0;
}
var CXe = wXe;
function TXe(t, e) {
return t === e || t !== t && e !== e;
}
var Tw = TXe, PXe = Tw;
function $Xe(t, e) {
for (var n = t.length; n--; )
if (PXe(t[n][0], e))
return n;
return -1;
}
var Pw = $Xe, AXe = Pw, EXe = Array.prototype, MXe = EXe.splice;
function IXe(t) {
var e = this.__data__, n = AXe(e, t);
if (n < 0)
return !1;
var r = e.length - 1;
return n == r ? e.pop() : MXe.call(e, n, 1), --this.size, !0;
}
var DXe = IXe, RXe = Pw;
function kXe(t) {
var e = this.__data__, n = RXe(e, t);
return n < 0 ? void 0 : e[n][1];
}
var LXe = kXe, NXe = Pw;
function BXe(t) {
return NXe(this.__data__, t) > -1;
}
var zXe = BXe, VXe = Pw;
function FXe(t, e) {
var n = this.__data__, r = VXe(n, t);
return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
}
var WXe = FXe, QXe = CXe, HXe = DXe, GXe = LXe, jXe = zXe, ZXe = WXe;
function Rp(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
Rp.prototype.clear = QXe;
Rp.prototype.delete = HXe;
Rp.prototype.get = GXe;
Rp.prototype.has = jXe;
Rp.prototype.set = ZXe;
var $w = Rp, UXe = $w;
function XXe() {
this.__data__ = new UXe(), this.size = 0;
}
var YXe = XXe;
function qXe(t) {
var e = this.__data__, n = e.delete(t);
return this.size = e.size, n;
}
var KXe = qXe;
function JXe(t) {
return this.__data__.get(t);
}
var eYe = JXe;
function tYe(t) {
return this.__data__.has(t);
}
var nYe = tYe, rYe = Dp, iYe = mo, aYe = "[object AsyncFunction]", oYe = "[object Function]", sYe = "[object GeneratorFunction]", lYe = "[object Proxy]";
function uYe(t) {
if (!iYe(t))
return !1;
var e = rYe(t);
return e == oYe || e == sYe || e == aYe || e == lYe;
}
var VL = uYe, cYe = yo, fYe = cYe["__core-js_shared__"], dYe = fYe, h$ = dYe, HQ = function() {
var t = /[^.]+$/.exec(h$ && h$.keys && h$.keys.IE_PROTO || "");
return t ? "Symbol(src)_1." + t : "";
}();
function hYe(t) {
return !!HQ && HQ in t;
}
var pYe = hYe, vYe = Function.prototype, gYe = vYe.toString;
function mYe(t) {
if (t != null) {
try {
return gYe.call(t);
} catch {
}
try {
return t + "";
} catch {
}
}
return "";
}
var Tie = mYe, yYe = VL, bYe = pYe, _Ye = mo, OYe = Tie, SYe = /[\\^$.*+?()[\]{}|]/g, xYe = /^\[object .+?Constructor\]$/, wYe = Function.prototype, CYe = Object.prototype, TYe = wYe.toString, PYe = CYe.hasOwnProperty, $Ye = RegExp(
"^" + TYe.call(PYe).replace(SYe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function AYe(t) {
if (!_Ye(t) || bYe(t))
return !1;
var e = yYe(t) ? $Ye : xYe;
return e.test(OYe(t));
}
var EYe = AYe;
function MYe(t, e) {
return t == null ? void 0 : t[e];
}
var IYe = MYe, DYe = EYe, RYe = IYe;
function kYe(t, e) {
var n = RYe(t, e);
return DYe(n) ? n : void 0;
}
var Gf = kYe, LYe = Gf, NYe = yo, BYe = LYe(NYe, "Map"), FL = BYe, zYe = Gf, VYe = zYe(Object, "create"), Aw = VYe, GQ = Aw;
function FYe() {
this.__data__ = GQ ? GQ(null) : {}, this.size = 0;
}
var WYe = FYe;
function QYe(t) {
var e = this.has(t) && delete this.__data__[t];
return this.size -= e ? 1 : 0, e;
}
var HYe = QYe, GYe = Aw, jYe = "__lodash_hash_undefined__", ZYe = Object.prototype, UYe = ZYe.hasOwnProperty;
function XYe(t) {
var e = this.__data__;
if (GYe) {
var n = e[t];
return n === jYe ? void 0 : n;
}
return UYe.call(e, t) ? e[t] : void 0;
}
var YYe = XYe, qYe = Aw, KYe = Object.prototype, JYe = KYe.hasOwnProperty;
function eqe(t) {
var e = this.__data__;
return qYe ? e[t] !== void 0 : JYe.call(e, t);
}
var tqe = eqe, nqe = Aw, rqe = "__lodash_hash_undefined__";
function iqe(t, e) {
var n = this.__data__;
return this.size += this.has(t) ? 0 : 1, n[t] = nqe && e === void 0 ? rqe : e, this;
}
var aqe = iqe, oqe = WYe, sqe = HYe, lqe = YYe, uqe = tqe, cqe = aqe;
function kp(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
kp.prototype.clear = oqe;
kp.prototype.delete = sqe;
kp.prototype.get = lqe;
kp.prototype.has = uqe;
kp.prototype.set = cqe;
var fqe = kp, jQ = fqe, dqe = $w, hqe = FL;
function pqe() {
this.size = 0, this.__data__ = {
hash: new jQ(),
map: new (hqe || dqe)(),
string: new jQ()
};
}
var vqe = pqe;
function gqe(t) {
var e = typeof t;
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
}
var mqe = gqe, yqe = mqe;
function bqe(t, e) {
var n = t.__data__;
return yqe(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
}
var Ew = bqe, _qe = Ew;
function Oqe(t) {
var e = _qe(this, t).delete(t);
return this.size -= e ? 1 : 0, e;
}
var Sqe = Oqe, xqe = Ew;
function wqe(t) {
return xqe(this, t).get(t);
}
var Cqe = wqe, Tqe = Ew;
function Pqe(t) {
return Tqe(this, t).has(t);
}
var $qe = Pqe, Aqe = Ew;
function Eqe(t, e) {
var n = Aqe(this, t), r = n.size;
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
}
var Mqe = Eqe, Iqe = vqe, Dqe = Sqe, Rqe = Cqe, kqe = $qe, Lqe = Mqe;
function Lp(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.clear(); ++e < n; ) {
var r = t[e];
this.set(r[0], r[1]);
}
}
Lp.prototype.clear = Iqe;
Lp.prototype.delete = Dqe;
Lp.prototype.get = Rqe;
Lp.prototype.has = kqe;
Lp.prototype.set = Lqe;
var Pie = Lp, Nqe = $w, Bqe = FL, zqe = Pie, Vqe = 200;
function Fqe(t, e) {
var n = this.__data__;
if (n instanceof Nqe) {
var r = n.__data__;
if (!Bqe || r.length < Vqe - 1)
return r.push([t, e]), this.size = ++n.size, this;
n = this.__data__ = new zqe(r);
}
return n.set(t, e), this.size = n.size, this;
}
var Wqe = Fqe, Qqe = $w, Hqe = YXe, Gqe = KXe, jqe = eYe, Zqe = nYe, Uqe = Wqe;
function Np(t) {
var e = this.__data__ = new Qqe(t);
this.size = e.size;
}
Np.prototype.clear = Hqe;
Np.prototype.delete = Gqe;
Np.prototype.get = jqe;
Np.prototype.has = Zqe;
Np.prototype.set = Uqe;
var $ie = Np;
function Xqe(t, e) {
for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
;
return t;
}
var Yqe = Xqe, qqe = Gf, Kqe = function() {
try {
var t = qqe(Object, "defineProperty");
return t({}, "", {}), t;
} catch {
}
}(), Aie = Kqe, ZQ = Aie;
function Jqe(t, e, n) {
e == "__proto__" && ZQ ? ZQ(t, e, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : t[e] = n;
}
var WL = Jqe, eKe = WL, tKe = Tw, nKe = Object.prototype, rKe = nKe.hasOwnProperty;
function iKe(t, e, n) {
var r = t[e];
(!(rKe.call(t, e) && tKe(r, n)) || n === void 0 && !(e in t)) && eKe(t, e, n);
}
var Eie = iKe, aKe = Eie, oKe = WL;
function sKe(t, e, n, r) {
var i = !n;
n || (n = {});
for (var a = -1, o = e.length; ++a < o; ) {
var s = e[a], l = r ? r(n[s], t[s], s, n, t) : void 0;
l === void 0 && (l = t[s]), i ? oKe(n, s, l) : aKe(n, s, l);
}
return n;
}
var ny = sKe;
function lKe(t, e) {
for (var n = -1, r = Array(t); ++n < t; )
r[n] = e(n);
return r;
}
var uKe = lKe, cKe = Dp, fKe = Au, dKe = "[object Arguments]";
function hKe(t) {
return fKe(t) && cKe(t) == dKe;
}
var pKe = hKe, UQ = pKe, vKe = Au, Mie = Object.prototype, gKe = Mie.hasOwnProperty, mKe = Mie.propertyIsEnumerable, yKe = UQ(/* @__PURE__ */ function() {
return arguments;
}()) ? UQ : function(t) {
return vKe(t) && gKe.call(t, "callee") && !mKe.call(t, "callee");
}, Iie = yKe, bKe = Array.isArray, Mw = bKe, JO = { exports: {} };
function _Ke() {
return !1;
}
var OKe = _Ke;
JO.exports;
(function(t, e) {
var n = yo, r = OKe, i = e && !e.nodeType && e, a = i && !0 && t && !t.nodeType && t, o = a && a.exports === i, s = o ? n.Buffer : void 0, l = s ? s.isBuffer : void 0, u = l || r;
t.exports = u;
})(JO, JO.exports);
var QL = JO.exports, SKe = 9007199254740991, xKe = /^(?:0|[1-9]\d*)$/;
function wKe(t, e) {
var n = typeof t;
return e = e ?? SKe, !!e && (n == "number" || n != "symbol" && xKe.test(t)) && t > -1 && t % 1 == 0 && t < e;
}
var Die = wKe, CKe = 9007199254740991;
function TKe(t) {
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= CKe;
}
var Rie = TKe, PKe = Dp, $Ke = Rie, AKe = Au, EKe = "[object Arguments]", MKe = "[object Array]", IKe = "[object Boolean]", DKe = "[object Date]", RKe = "[object Error]", kKe = "[object Function]", LKe = "[object Map]", NKe = "[object Number]", BKe = "[object Object]", zKe = "[object RegExp]", VKe = "[object Set]", FKe = "[object String]", WKe = "[object WeakMap]", QKe = "[object ArrayBuffer]", HKe = "[object DataView]", GKe = "[object Float32Array]", jKe = "[object Float64Array]", ZKe = "[object Int8Array]", UKe = "[object Int16Array]", XKe = "[object Int32Array]", YKe = "[object Uint8Array]", qKe = "[object Uint8ClampedArray]", KKe = "[object Uint16Array]", JKe = "[object Uint32Array]", un = {};
un[GKe] = un[jKe] = un[ZKe] = un[UKe] = un[XKe] = un[YKe] = un[qKe] = un[KKe] = un[JKe] = !0;
un[EKe] = un[MKe] = un[QKe] = un[IKe] = un[HKe] = un[DKe] = un[RKe] = un[kKe] = un[LKe] = un[NKe] = un[BKe] = un[zKe] = un[VKe] = un[FKe] = un[WKe] = !1;
function eJe(t) {
return AKe(t) && $Ke(t.length) && !!un[PKe(t)];
}
var tJe = eJe;
function nJe(t) {
return function(e) {
return t(e);
};
}
var HL = nJe, eS = { exports: {} };
eS.exports;
(function(t, e) {
var n = xie, r = e && !e.nodeType && e, i = r && !0 && t && !t.nodeType && t, a = i && i.exports === r, o = a && n.process, s = function() {
try {
var l = i && i.require && i.require("util").types;
return l || o && o.binding && o.binding("util");
} catch {
}
}();
t.exports = s;
})(eS, eS.exports);
var GL = eS.exports, rJe = tJe, iJe = HL, XQ = GL, YQ = XQ && XQ.isTypedArray, aJe = YQ ? iJe(YQ) : rJe, kie = aJe, oJe = uKe, sJe = Iie, lJe = Mw, uJe = QL, cJe = Die, fJe = kie, dJe = Object.prototype, hJe = dJe.hasOwnProperty;
function pJe(t, e) {
var n = lJe(t), r = !n && sJe(t), i = !n && !r && uJe(t), a = !n && !r && !i && fJe(t), o = n || r || i || a, s = o ? oJe(t.length, String) : [], l = s.length;
for (var u in t)
(e || hJe.call(t, u)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
i && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
cJe(u, l))) && s.push(u);
return s;
}
var Lie = pJe, vJe = Object.prototype;
function gJe(t) {
var e = t && t.constructor, n = typeof e == "function" && e.prototype || vJe;
return t === n;
}
var jL = gJe;
function mJe(t, e) {
return function(n) {
return t(e(n));
};
}
var Nie = mJe, yJe = Nie, bJe = yJe(Object.keys, Object), _Je = bJe, OJe = jL, SJe = _Je, xJe = Object.prototype, wJe = xJe.hasOwnProperty;
function CJe(t) {
if (!OJe(t))
return SJe(t);
var e = [];
for (var n in Object(t))
wJe.call(t, n) && n != "constructor" && e.push(n);
return e;
}
var TJe = CJe, PJe = VL, $Je = Rie;
function AJe(t) {
return t != null && $Je(t.length) && !PJe(t);
}
var Iw = AJe, EJe = Lie, MJe = TJe, IJe = Iw;
function DJe(t) {
return IJe(t) ? EJe(t) : MJe(t);
}
var ZL = DJe, RJe = ny, kJe = ZL;
function LJe(t, e) {
return t && RJe(e, kJe(e), t);
}
var NJe = LJe;
function BJe(t) {
var e = [];
if (t != null)
for (var n in Object(t))
e.push(n);
return e;
}
var zJe = BJe, VJe = mo, FJe = jL, WJe = zJe, QJe = Object.prototype, HJe = QJe.hasOwnProperty;
function GJe(t) {
if (!VJe(t))
return WJe(t);
var e = FJe(t), n = [];
for (var r in t)
r == "constructor" && (e || !HJe.call(t, r)) || n.push(r);
return n;
}
var jJe = GJe, ZJe = Lie, UJe = jJe, XJe = Iw;
function YJe(t) {
return XJe(t) ? ZJe(t, !0) : UJe(t);
}
var ry = YJe, qJe = ny, KJe = ry;
function JJe(t, e) {
return t && qJe(e, KJe(e), t);
}
var eet = JJe, tS = { exports: {} };
tS.exports;
(function(t, e) {
var n = yo, r = e && !e.nodeType && e, i = r && !0 && t && !t.nodeType && t, a = i && i.exports === r, o = a ? n.Buffer : void 0, s = o ? o.allocUnsafe : void 0;
function l(u, c) {
if (c)
return u.slice();
var f = u.length, d = s ? s(f) : new u.constructor(f);
return u.copy(d), d;
}
t.exports = l;
})(tS, tS.exports);
var Bie = tS.exports;
function tet(t, e) {
var n = -1, r = t.length;
for (e || (e = Array(r)); ++n < r; )
e[n] = t[n];
return e;
}
var zie = tet;
function net(t, e) {
for (var n = -1, r = t == null ? 0 : t.length, i = 0, a = []; ++n < r; ) {
var o = t[n];
e(o, n, t) && (a[i++] = o);
}
return a;
}
var ret = net;
function iet() {
return [];
}
var Vie = iet, aet = ret, oet = Vie, set = Object.prototype, uet = set.propertyIsEnumerable, qQ = Object.getOwnPropertySymbols, cet = qQ ? function(t) {
return t == null ? [] : (t = Object(t), aet(qQ(t), function(e) {
return uet.call(t, e);
}));
} : oet, UL = cet, fet = ny, det = UL;
function het(t, e) {
return fet(t, det(t), e);
}
var pet = het;
function vet(t, e) {
for (var n = -1, r = e.length, i = t.length; ++n < r; )
t[i + n] = e[n];
return t;
}
var Fie = vet, get = Nie, met = get(Object.getPrototypeOf, Object), XL = met, yet = Fie, bet = XL, _et = UL, Oet = Vie, xet = Object.getOwnPropertySymbols, wet = xet ? function(t) {
for (var e = []; t; )
yet(e, _et(t)), t = bet(t);
return e;
} : Oet, Wie = wet, Cet = ny, Tet = Wie;
function Pet(t, e) {
return Cet(t, Tet(t), e);
}
var $et = Pet, Aet = Fie, Eet = Mw;
function Met(t, e, n) {
var r = e(t);
return Eet(t) ? r : Aet(r, n(t));
}
var Qie = Met, Iet = Qie, Det = UL, Ret = ZL;
function ket(t) {
return Iet(t, Ret, Det);
}
var Let = ket, Net = Qie, Bet = Wie, zet = ry;
function Vet(t) {
return Net(t, zet, Bet);
}
var Fet = Vet, Wet = Gf, Qet = yo, Het = Wet(Qet, "DataView"), Get = Het, jet = Gf, Zet = yo, Uet = jet(Zet, "Promise"), Xet = Uet, Yet = Gf, qet = yo, Ket = Yet(qet, "Set"), Jet = Ket, ett = Gf, ttt = yo, ntt = ett(ttt, "WeakMap"), rtt = ntt, YE = Get, qE = FL, KE = Xet, JE = Jet, eM = rtt, Hie = Dp, Bp = Tie, KQ = "[object Map]", itt = "[object Object]", JQ = "[object Promise]", eH = "[object Set]", tH = "[object WeakMap]", nH = "[object DataView]", att = Bp(YE), ott = Bp(qE), stt = Bp(KE), ltt = Bp(JE), utt = Bp(eM), yc = Hie;
(YE && yc(new YE(new ArrayBuffer(1))) != nH || qE && yc(new qE()) != KQ || KE && yc(KE.resolve()) != JQ || JE && yc(new JE()) != eH || eM && yc(new eM()) != tH) && (yc = function(t) {
var e = Hie(t), n = e == itt ? t.constructor : void 0, r = n ? Bp(n) : "";
if (r)
switch (r) {
case att:
return nH;
case ott:
return KQ;
case stt:
return JQ;
case ltt:
return eH;
case utt:
return tH;
}
return e;
});
var YL = yc, ctt = Object.prototype, ftt = ctt.hasOwnProperty;
function dtt(t) {
var e = t.length, n = new t.constructor(e);
return e && typeof t[0] == "string" && ftt.call(t, "index") && (n.index = t.index, n.input = t.input), n;
}
var htt = dtt, ptt = yo, vtt = ptt.Uint8Array, gtt = vtt, rH = gtt;
function mtt(t) {
var e = new t.constructor(t.byteLength);
return new rH(e).set(new rH(t)), e;
}
var qL = mtt, ytt = qL;
function btt(t, e) {
var n = e ? ytt(t.buffer) : t.buffer;
return new t.constructor(n, t.byteOffset, t.byteLength);
}
var _tt = btt, Ott = /\w*$/;
function Stt(t) {
var e = new t.constructor(t.source, Ott.exec(t));
return e.lastIndex = t.lastIndex, e;
}
var xtt = Stt, iH = Cw, aH = iH ? iH.prototype : void 0, oH = aH ? aH.valueOf : void 0;
function wtt(t) {
return oH ? Object(oH.call(t)) : {};
}
var Ctt = wtt, Ttt = qL;
function Ptt(t, e) {
var n = e ? Ttt(t.buffer) : t.buffer;
return new t.constructor(n, t.byteOffset, t.length);
}
var Gie = Ptt, $tt = qL, Att = _tt, Ett = xtt, Mtt = Ctt, Itt = Gie, Dtt = "[object Boolean]", Rtt = "[object Date]", ktt = "[object Map]", Ltt = "[object Number]", Ntt = "[object RegExp]", Btt = "[object Set]", ztt = "[object String]", Vtt = "[object Symbol]", Ftt = "[object ArrayBuffer]", Wtt = "[object DataView]", Qtt = "[object Float32Array]", Htt = "[object Float64Array]", Gtt = "[object Int8Array]", jtt = "[object Int16Array]", Ztt = "[object Int32Array]", Utt = "[object Uint8Array]", Xtt = "[object Uint8ClampedArray]", Ytt = "[object Uint16Array]", qtt = "[object Uint32Array]";
function Ktt(t, e, n) {
var r = t.constructor;
switch (e) {
case Ftt:
return $tt(t);
case Dtt:
case Rtt:
return new r(+t);
case Wtt:
return Att(t, n);
case Qtt:
case Htt:
case Gtt:
case jtt:
case Ztt:
case Utt:
case Xtt:
case Ytt:
case qtt:
return Itt(t, n);
case ktt:
return new r();
case Ltt:
case ztt:
return new r(t);
case Ntt:
return Ett(t);
case Btt:
return new r();
case Vtt:
return Mtt(t);
}
}
var Jtt = Ktt, ent = mo, sH = Object.create, tnt = /* @__PURE__ */ function() {
function t() {
}
return function(e) {
if (!ent(e))
return {};
if (sH)
return sH(e);
t.prototype = e;
var n = new t();
return t.prototype = void 0, n;
};
}(), nnt = tnt, rnt = nnt, int = XL, ant = jL;
function ont(t) {
return typeof t.constructor == "function" && !ant(t) ? rnt(int(t)) : {};
}
var jie = ont, snt = YL, lnt = Au, unt = "[object Map]";
function cnt(t) {
return lnt(t) && snt(t) == unt;
}
var fnt = cnt, dnt = fnt, hnt = HL, lH = GL, uH = lH && lH.isMap, pnt = uH ? hnt(uH) : dnt, vnt = pnt, gnt = YL, mnt = Au, ynt = "[object Set]";
function bnt(t) {
return mnt(t) && gnt(t) == ynt;
}
var _nt = bnt, Ont = _nt, Snt = HL, cH = GL, fH = cH && cH.isSet, xnt = fH ? Snt(fH) : Ont, wnt = xnt, Cnt = $ie, Tnt = Yqe, Pnt = Eie, $nt = NJe, Ant = eet, Ent = Bie, Mnt = zie, Int = pet, Dnt = $et, Rnt = Let, knt = Fet, Lnt = YL, Nnt = htt, Bnt = Jtt, znt = jie, Vnt = Mw, Fnt = QL, Wnt = vnt, Qnt = mo, Hnt = wnt, Gnt = ZL, jnt = ry, Znt = 1, Unt = 2, Xnt = 4, Zie = "[object Arguments]", Ynt = "[object Array]", qnt = "[object Boolean]", Knt = "[object Date]", Jnt = "[object Error]", Uie = "[object Function]", ert = "[object GeneratorFunction]", trt = "[object Map]", nrt = "[object Number]", Xie = "[object Object]", rrt = "[object RegExp]", irt = "[object Set]", art = "[object String]", ort = "[object Symbol]", srt = "[object WeakMap]", lrt = "[object ArrayBuffer]", urt = "[object DataView]", crt = "[object Float32Array]", frt = "[object Float64Array]", drt = "[object Int8Array]", hrt = "[object Int16Array]", prt = "[object Int32Array]", vrt = "[object Uint8Array]", grt = "[object Uint8ClampedArray]", mrt = "[object Uint16Array]", yrt = "[object Uint32Array]", an = {};
an[Zie] = an[Ynt] = an[lrt] = an[urt] = an[qnt] = an[Knt] = an[crt] = an[frt] = an[drt] = an[hrt] = an[prt] = an[trt] = an[nrt] = an[Xie] = an[rrt] = an[irt] = an[art] = an[ort] = an[vrt] = an[grt] = an[mrt] = an[yrt] = !0;
an[Jnt] = an[Uie] = an[srt] = !1;
function n1(t, e, n, r, i, a) {
var o, s = e & Znt, l = e & Unt, u = e & Xnt;
if (n && (o = i ? n(t, r, i, a) : n(t)), o !== void 0)
return o;
if (!Qnt(t))
return t;
var c = Vnt(t);
if (c) {
if (o = Nnt(t), !s)
return Mnt(t, o);
} else {
var f = Lnt(t), d = f == Uie || f == ert;
if (Fnt(t))
return Ent(t, s);
if (f == Xie || f == Zie || d && !i) {
if (o = l || d ? {} : znt(t), !s)
return l ? Dnt(t, Ant(o, t)) : Int(t, $nt(o, t));
} else {
if (!an[f])
return i ? t : {};
o = Bnt(t, f, s);
}
}
a || (a = new Cnt());
var h = a.get(t);
if (h)
return h;
a.set(t, o), Hnt(t) ? t.forEach(function(g) {
o.add(n1(g, e, n, g, t, a));
}) : Wnt(t) && t.forEach(function(g, m) {
o.set(m, n1(g, e, n, m, t, a));
});
var p = u ? l ? knt : Rnt : l ? jnt : Gnt, v = c ? void 0 : p(t);
return Tnt(v || t, function(g, m) {
v && (m = g, g = t[m]), Pnt(o, m, n1(g, e, n, m, t, a));
}), o;
}
var brt = n1, _rt = brt, Ort = 1, Srt = 4;
function xrt(t) {
return _rt(t, Ort | Srt);
}
var wrt = xrt;
const dH = /* @__PURE__ */ mx(wrt);
var Crt = Object.defineProperty, Trt = (t, e, n) => e in t ? Crt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, uc = (t, e, n) => (Trt(t, typeof e != "symbol" ? e + "" : e, n), n);
class Prt {
constructor() {
uc(this, "subscriptions", /* @__PURE__ */ new Map()), uc(this, "emitEffectCache", /* @__PURE__ */ new Map()), uc(this, "useSubscription", (e, n) => {
const r = U();
ht((i) => {
var a, o;
r.value = n;
function s(u) {
r.value && r.value(u);
}
const l = (o = (a = this.subscriptions) == null ? void 0 : a.get(e)) != null ? o : [];
l.push(s), this.subscriptions.set(e, l), this.emitEffect(e), i(() => {
this.subscriptions.delete(e);
});
});
}), uc(this, "emit", (e, ...n) => {
if (typeof e == "string" || typeof e == "number") {
const r = this.subscriptions.get(e);
r == null || r.forEach((i) => {
i == null || i({
params: dH(n),
event: e
});
}), this.emitEffectCache.set(e, {
params: dH(n),
event: e
});
} else
throw new TypeError("event must be string or number !");
}), uc(this, "emitEffect", (e) => {
const n = this.emitEffectCache.get(e), r = this.subscriptions.get(e);
n && (r == null || r.forEach((i) => {
i == null || i({
...n
});
}));
}), uc(this, "removeListener", (e) => {
this.subscriptions.delete(e);
}), uc(this, "clear", () => {
this.subscriptions.clear();
}), this.clear();
}
}
new Prt();
var $rt = { exports: {} };
/*!
* screenfull
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/
(function(t) {
(function() {
var e = typeof window < "u" && typeof window.document < "u" ? window.document : {}, n = t.exports, r = function() {
for (var o, s = [
[
"requestFullscreen",
"exitFullscreen",
"fullscreenElement",
"fullscreenEnabled",
"fullscreenchange",
"fullscreenerror"
],
// New WebKit
[
"webkitRequestFullscreen",
"webkitExitFullscreen",
"webkitFullscreenElement",
"webkitFullscreenEnabled",
"webkitfullscreenchange",
"webkitfullscreenerror"
],
// Old WebKit
[
"webkitRequestFullScreen",
"webkitCancelFullScreen",
"webkitCurrentFullScreenElement",
"webkitCancelFullScreen",
"webkitfullscreenchange",
"webkitfullscreenerror"
],
[
"mozRequestFullScreen",
"mozCancelFullScreen",
"mozFullScreenElement",
"mozFullScreenEnabled",
"mozfullscreenchange",
"mozfullscreenerror"
],
[
"msRequestFullscreen",
"msExitFullscreen",
"msFullscreenElement",
"msFullscreenEnabled",
"MSFullscreenChange",
"MSFullscreenError"
]
], l = 0, u = s.length, c = {}; l < u; l++)
if (o = s[l], o && o[1] in e) {
for (l = 0; l < o.length; l++)
c[s[0][l]] = o[l];
return c;
}
return !1;
}(), i = {
change: r.fullscreenchange,
error: r.fullscreenerror
}, a = {
request: function(o, s) {
return new Promise((function(l, u) {
var c = (function() {
this.off("change", c), l();
}).bind(this);
this.on("change", c), o = o || e.documentElement;
var f = o[r.requestFullscreen](s);
f instanceof Promise && f.then(c).catch(u);
}).bind(this));
},
exit: function() {
return new Promise((function(o, s) {
if (!this.isFullscreen) {
o();
return;
}
var l = (function() {
this.off("change", l), o();
}).bind(this);
this.on("change", l);
var u = e[r.exitFullscreen]();
u instanceof Promise && u.then(l).catch(s);
}).bind(this));
},
toggle: function(o, s) {
return this.isFullscreen ? this.exit() : this.request(o, s);
},
onchange: function(o) {
this.on("change", o);
},
onerror: function(o) {
this.on("error", o);
},
on: function(o, s) {
var l = i[o];
l && e.addEventListener(l, s, !1);
},
off: function(o, s) {
var l = i[o];
l && e.removeEventListener(l, s, !1);
},
raw: r
};
if (!r) {
n ? t.exports = { isEnabled: !1 } : window.screenfull = { isEnabled: !1 };
return;
}
Object.defineProperties(a, {
isFullscreen: {
get: function() {
return !!e[r.fullscreenElement];
}
},
element: {
enumerable: !0,
get: function() {
return e[r.fullscreenElement];
}
},
isEnabled: {
enumerable: !0,
get: function() {
return !!e[r.fullscreenEnabled];
}
}
}), n ? t.exports = a : window.screenfull = a;
})();
})($rt);
var Art = "__lodash_hash_undefined__";
function Ert(t) {
return this.__data__.set(t, Art), this;
}
var Mrt = Ert;
function Irt(t) {
return this.__data__.has(t);
}
var Drt = Irt, Rrt = Pie, krt = Mrt, Lrt = Drt;
function tM(t) {
var e = -1, n = t == null ? 0 : t.length;
for (this.__data__ = new Rrt(); ++e < n; )
this.add(t[e]);
}
tM.prototype.add = tM.prototype.push = krt;
tM.prototype.has = Lrt;
var hH = Cw, pH = hH ? hH.prototype : void 0;
pH && pH.valueOf;
var Nrt = WL, Brt = Tw;
function zrt(t, e, n) {
(n !== void 0 && !Brt(t[e], n) || n === void 0 && !(e in t)) && Nrt(t, e, n);
}
var Yie = zrt;
function Vrt(t) {
return function(e, n, r) {
for (var i = -1, a = Object(e), o = r(e), s = o.length; s--; ) {
var l = o[t ? s : ++i];
if (n(a[l], l, a) === !1)
break;
}
return e;
};
}
var Frt = Vrt, Wrt = Frt, Qrt = Wrt(), Hrt = Qrt, Grt = Iw, jrt = Au;
function Zrt(t) {
return jrt(t) && Grt(t);
}
var Urt = Zrt, Xrt = Dp, Yrt = XL, qrt = Au, Krt = "[object Object]", Jrt = Function.prototype, eit = Object.prototype, qie = Jrt.toString, tit = eit.hasOwnProperty, nit = qie.call(Object);
function rit(t) {
if (!qrt(t) || Xrt(t) != Krt)
return !1;
var e = Yrt(t);
if (e === null)
return !0;
var n = tit.call(e, "constructor") && e.constructor;
return typeof n == "function" && n instanceof n && qie.call(n) == nit;
}
var iit = rit;
function ait(t, e) {
if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
return t[e];
}
var Kie = ait, oit = ny, sit = ry;
function lit(t) {
return oit(t, sit(t));
}
var uit = lit, vH = Yie, cit = Bie, fit = Gie, dit = zie, hit = jie, gH = Iie, mH = Mw, pit = Urt, vit = QL, git = VL, mit = mo, yit = iit, bit = kie, yH = Kie, _it = uit;
function Oit(t, e, n, r, i, a, o) {
var s = yH(t, n), l = yH(e, n), u = o.get(l);
if (u) {
vH(t, n, u);
return;
}
var c = a ? a(s, l, n + "", t, e, o) : void 0, f = c === void 0;
if (f) {
var d = mH(l), h = !d && vit(l), p = !d && !h && bit(l);
c = l, d || h || p ? mH(s) ? c = s : pit(s) ? c = dit(s) : h ? (f = !1, c = cit(l, !0)) : p ? (f = !1, c = fit(l, !0)) : c = [] : yit(l) || gH(l) ? (c = s, gH(s) ? c = _it(s) : (!mit(s) || git(s)) && (c = hit(l))) : f = !1;
}
f && (o.set(l, c), i(c, l, r, a, o), o.delete(l)), vH(t, n, c);
}
var Sit = Oit, xit = $ie, wit = Yie, Cit = Hrt, Tit = Sit, Pit = mo, $it = ry, Ait = Kie;
function Jie(t, e, n, r, i) {
t !== e && Cit(e, function(a, o) {
if (i || (i = new xit()), Pit(a))
Tit(t, e, o, n, Jie, r, i);
else {
var s = r ? r(Ait(t, o), a, o + "", t, e, i) : void 0;
s === void 0 && (s = a), wit(t, o, s);
}
}, $it);
}
var Eit = Jie;
function Mit(t) {
return t;
}
var eae = Mit;
function Iit(t, e, n) {
switch (n.length) {
case 0:
return t.call(e);
case 1:
return t.call(e, n[0]);
case 2:
return t.call(e, n[0], n[1]);
case 3:
return t.call(e, n[0], n[1], n[2]);
}
return t.apply(e, n);
}
var Dit = Iit, Rit = Dit, bH = Math.max;
function kit(t, e, n) {
return e = bH(e === void 0 ? t.length - 1 : e, 0), function() {
for (var r = arguments, i = -1, a = bH(r.length - e, 0), o = Array(a); ++i < a; )
o[i] = r[e + i];
i = -1;
for (var s = Array(e + 1); ++i < e; )
s[i] = r[i];
return s[e] = n(o), Rit(t, this, s);
};
}
var Lit = kit;
function Nit(t) {
return function() {
return t;
};
}
var Bit = Nit, zit = Bit, _H = Aie, Vit = eae, Fit = _H ? function(t, e) {
return _H(t, "toString", {
configurable: !0,
enumerable: !1,
value: zit(e),
writable: !0
});
} : Vit, Wit = Fit, Qit = 800, Hit = 16, Git = Date.now;
function jit(t) {
var e = 0, n = 0;
return function() {
var r = Git(), i = Hit - (r - n);
if (n = r, i > 0) {
if (++e >= Qit)
return arguments[0];
} else
e = 0;
return t.apply(void 0, arguments);
};
}
var Zit = jit, Uit = Wit, Xit = Zit, Yit = Xit(Uit), qit = Yit, Kit = eae, Jit = Lit, eat = qit;
function tat(t, e) {
return eat(Jit(t, e, Kit), t + "");
}
var nat = tat, rat = Tw, iat = Iw, aat = Die, oat = mo;
function sat(t, e, n) {
if (!oat(n))
return !1;
var r = typeof e;
return (r == "number" ? iat(n) && aat(e, n.length) : r == "string" && e in n) ? rat(n[e], t) : !1;
}
var lat = sat, uat = nat, cat = lat;
function fat(t) {
return uat(function(e, n) {
var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
for (a = t.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && cat(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), e = Object(e); ++r < i; ) {
var s = n[r];
s && t(e, s, r, a);
}
return e;
});
}
var dat = fat, hat = Eit, pat = dat;
pat(function(t, e, n) {
hat(t, e, n);
});
const KL = (t) => {
var h, p, v;
const e = t.dataSource || {}, n = U(), r = U(), i = U((h = e == null ? void 0 : e.data) == null ? void 0 : h.series), a = L(() => async () => await fetch(t.dataSource.url, {
method: t.dataSource.method
}).then((g) => g.json())), { run: o, refresh: s, cancel: l, data: u, loading: c } = SXe(a.value, {
defaultParams: t.dataSource.params,
manual: !0,
cacheKey: t.dataSource.url,
cacheTime: (((p = t.dataSource) == null ? void 0 : p.refreshTime) || 0) * 1e3,
pollingInterval: (((v = t.dataSource) == null ? void 0 : v.refreshTime) || 0) * 1e3,
// 刷新时间
onError: (g) => {
console.error(g), Dh.error(t.dataSource.url + "请求失败");
}
});
t.dataSource.sourceType === Li.API && o(), se(
() => u.value,
async (g) => {
if (g && t.dataSource.sourceType === Li.API) {
let m = g;
t.dataSource.dataProcess && (m = await LZe(t.dataSource.dataProcess, JSON.stringify(g))), n.value = m.xAxis || { data: m.xData }, r.value = m.yAxis || { data: m.yData }, i.value = m.series;
}
},
{
deep: !0
}
), se(
() => [
t.dataSource.sourceType,
t.dataSource.method
],
() => {
if (t.dataSource.sourceType === Li.API)
s();
else {
l();
const g = t.dataSource || {}, { xData: m, yData: y, series: b } = (g == null ? void 0 : g.data) || {};
m && (n.value = { data: m }), y && (r.value = { data: y }), b.value = b;
}
},
{
deep: !0
}
);
const f = (g) => {
var O, S, x, C;
let m = 34, y = 20, b = 30, _ = 20;
return !Array.isArray(g.title) && ((O = g.title) != null && O.show) && (_ += 20), !Array.isArray(g.legend) && ((S = g.legend) != null && S.show) && (g.legend.left === "center" && g.legend.top !== "auto" && (_ += 20), g.legend.left === "center" && g.legend.bottom !== "auto" && (m += 20), g.legend.top === "center" && g.legend.left !== "auto" && (b += 70), g.legend.top === "center" && g.legend.right !== "auto" && (y += 50)), !Array.isArray(g.xAxis) && ((x = g.xAxis) != null && x.name) && (m += 20), !Array.isArray(g.yAxis) && ((C = g.yAxis) != null && C.name) && (b += 20), {
bottom: m,
left: b,
right: y,
top: _
};
};
return {
options: L(() => {
var b, _;
const g = CU(t, [
"width",
"height",
"dataSource"
]);
!Array.isArray(g.title) && !((b = g.title) != null && b.show) && !Array.isArray(g.legend) && g.legend && (g.legend.top = 12);
const m = (g == null ? void 0 : g.label) || {}, y = xU(
{
xAxis: n.value,
yAxis: r.value,
series: (_ = i.value) == null ? void 0 : _.map((O) => {
var x;
const S = ((x = g.series) == null ? void 0 : x[O.type]) || {};
return {
...m,
...O,
...S
};
}),
grid: f(g)
},
g
);
return console.log("option result:", y), y;
}),
loading: c
};
}, vat = te({
name: "DBasicLine",
components: { Charts: RL },
props: NL,
setup(t) {
const { options: e, loading: n } = KL(t);
return {
options: e,
loading: n
};
}
});
function gat(t, e, n, r, i, a) {
const o = fi("Charts");
return pe(), je(o, {
width: t.width,
height: t.height,
"echarts-options": t.options,
loading: t.loading
}, null, 8, ["width", "height", "echarts-options", "loading"]);
}
const lh = /* @__PURE__ */ $r(vat, [["render", gat]]);
class Ft {
/**
Get the line description around the given position.
*/
lineAt(e) {
if (e < 0 || e > this.length)
throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);
return this.lineInner(e, !1, 1, 0);
}
/**
Get the description for the given (1-based) line number.
*/
line(e) {
if (e < 1 || e > this.lines)
throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);
return this.lineInner(e, !0, 1, 0);
}
/**
Replace a range of the text with the given content.
*/
replace(e, n, r) {
[e, n] = Kh(this, e, n);
let i = [];
return this.decompose(
0,
e,
i,
2
/* Open.To */
), r.length && r.decompose(
0,
r.length,
i,
3
/* Open.To */
), this.decompose(
n,
this.length,
i,
1
/* Open.From */
), Bo.from(i, this.length - (n - e) + r.length);
}
/**
Append another document to this one.
*/
append(e) {
return this.replace(this.length, this.length, e);
}
/**
Retrieve the text between the given points.
*/
slice(e, n = this.length) {
[e, n] = Kh(this, e, n);
let r = [];
return this.decompose(e, n, r, 0), Bo.from(r, n - e);
}
/**
Test whether this text is equal to another instance.
*/
eq(e) {
if (e == this)
return !0;
if (e.length != this.length || e.lines != this.lines)
return !1;
let n = this.scanIdentical(e, 1), r = this.length - this.scanIdentical(e, -1), i = new Gg(this), a = new Gg(e);
for (let o = n, s = n; ; ) {
if (i.next(o), a.next(o), o = 0, i.lineBreak != a.lineBreak || i.done != a.done || i.value != a.value)
return !1;
if (s += i.value.length, i.done || s >= r)
return !0;
}
}
/**
Iterate over the text. When `dir` is `-1`, iteration happens
from end to start. This will return lines and the breaks between
them as separate strings.
*/
iter(e = 1) {
return new Gg(this, e);
}
/**
Iterate over a range of the text. When `from` > `to`, the
iterator will run in reverse.
*/
iterRange(e, n = this.length) {
return new tae(this, e, n);
}
/**
Return a cursor that iterates over the given range of lines,
_without_ returning the line breaks between, and yielding empty
strings for empty lines.
When `from` and `to` are given, they should be 1-based line numbers.
*/
iterLines(e, n) {
let r;
if (e == null)
r = this.iter();
else {
n == null && (n = this.lines + 1);
let i = this.line(e).from;
r = this.iterRange(i, Math.max(i, n == this.lines + 1 ? this.length : n <= 1 ? 0 : this.line(n - 1).to));
}
return new nae(r);
}
/**
Return the document as a string, using newline characters to
separate lines.
*/
toString() {
return this.sliceString(0);
}
/**
Convert the document to an array of lines (which can be
deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).
*/
toJSON() {
let e = [];
return this.flatten(e), e;
}
/**
@internal
*/
constructor() {
}
/**
Create a `Text` instance for the given array of lines.
*/
static of(e) {
if (e.length == 0)
throw new RangeError("A document must have at least one line");
return e.length == 1 && !e[0] ? Ft.empty : e.length <= 32 ? new Mn(e) : Bo.from(Mn.split(e, []));
}
}
class Mn extends Ft {
constructor(e, n = mat(e)) {
super(), this.text = e, this.length = n;
}
get lines() {
return this.text.length;
}
get children() {
return null;
}
lineInner(e, n, r, i) {
for (let a = 0; ; a++) {
let o = this.text[a], s = i + o.length;
if ((n ? r : s) >= e)
return new yat(i, s, r, o);
i = s + 1, r++;
}
}
decompose(e, n, r, i) {
let a = e <= 0 && n >= this.length ? this : new Mn(OH(this.text, e, n), Math.min(n, this.length) - Math.max(0, e));
if (i & 1) {
let o = r.pop(), s = r1(a.text, o.text.slice(), 0, a.length);
if (s.length <= 32)
r.push(new Mn(s, o.length + a.length));
else {
let l = s.length >> 1;
r.push(new Mn(s.slice(0, l)), new Mn(s.slice(l)));
}
} else
r.push(a);
}
replace(e, n, r) {
if (!(r instanceof Mn))
return super.replace(e, n, r);
[e, n] = Kh(this, e, n);
let i = r1(this.text, r1(r.text, OH(this.text, 0, e)), n), a = this.length + r.length - (n - e);
return i.length <= 32 ? new Mn(i, a) : Bo.from(Mn.split(i, []), a);
}
sliceString(e, n = this.length, r = `
`) {
[e, n] = Kh(this, e, n);
let i = "";
for (let a = 0, o = 0; a <= n && o < this.text.length; o++) {
let s = this.text[o], l = a + s.length;
a > e && o && (i += r), e < l && n > a && (i += s.slice(Math.max(0, e - a), n - a)), a = l + 1;
}
return i;
}
flatten(e) {
for (let n of this.text)
e.push(n);
}
scanIdentical() {
return 0;
}
static split(e, n) {
let r = [], i = -1;
for (let a of e)
r.push(a), i += a.length + 1, r.length == 32 && (n.push(new Mn(r, i)), r = [], i = -1);
return i > -1 && n.push(new Mn(r, i)), n;
}
}
class Bo extends Ft {
constructor(e, n) {
super(), this.children = e, this.length = n, this.lines = 0;
for (let r of e)
this.lines += r.lines;
}
lineInner(e, n, r, i) {
for (let a = 0; ; a++) {
let o = this.children[a], s = i + o.length, l = r + o.lines - 1;
if ((n ? l : s) >= e)
return o.lineInner(e, n, r, i);
i = s + 1, r = l + 1;
}
}
decompose(e, n, r, i) {
for (let a = 0, o = 0; o <= n && a < this.children.length; a++) {
let s = this.children[a], l = o + s.length;
if (e <= l && n >= o) {
let u = i & ((o <= e ? 1 : 0) | (l >= n ? 2 : 0));
o >= e && l <= n && !u ? r.push(s) : s.decompose(e - o, n - o, r, u);
}
o = l + 1;
}
}
replace(e, n, r) {
if ([e, n] = Kh(this, e, n), r.lines < this.lines)
for (let i = 0, a = 0; i < this.children.length; i++) {
let o = this.children[i], s = a + o.length;
if (e >= a && n <= s) {
let l = o.replace(e - a, n - a, r), u = this.lines - o.lines + l.lines;
if (l.lines < u >> 4 && l.lines > u >> 6) {
let c = this.children.slice();
return c[i] = l, new Bo(c, this.length - (n - e) + r.length);
}
return super.replace(a, s, l);
}
a = s + 1;
}
return super.replace(e, n, r);
}
sliceString(e, n = this.length, r = `
`) {
[e, n] = Kh(this, e, n);
let i = "";
for (let a = 0, o = 0; a < this.children.length && o <= n; a++) {
let s = this.children[a], l = o + s.length;
o > e && a && (i += r), e < l && n > o && (i += s.sliceString(e - o, n - o, r)), o = l + 1;
}
return i;
}
flatten(e) {
for (let n of this.children)
n.flatten(e);
}
scanIdentical(e, n) {
if (!(e instanceof Bo))
return 0;
let r = 0, [i, a, o, s] = n > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1];
for (; ; i += n, a += n) {
if (i == o || a == s)
return r;
let l = this.children[i], u = e.children[a];
if (l != u)
return r + l.scanIdentical(u, n);
r += l.length + 1;
}
}
static from(e, n = e.reduce((r, i) => r + i.length + 1, -1)) {
let r = 0;
for (let h of e)
r += h.lines;
if (r < 32) {
let h = [];
for (let p of e)
p.flatten(h);
return new Mn(h, n);
}
let i = Math.max(
32,
r >> 5
/* Tree.BranchShift */
), a = i << 1, o = i >> 1, s = [], l = 0, u = -1, c = [];
function f(h) {
let p;
if (h.lines > a && h instanceof Bo)
for (let v of h.children)
f(v);
else h.lines > o && (l > o || !l) ? (d(), s.push(h)) : h instanceof Mn && l && (p = c[c.length - 1]) instanceof Mn && h.lines + p.lines <= 32 ? (l += h.lines, u += h.length + 1, c[c.length - 1] = new Mn(p.text.concat(h.text), p.length + 1 + h.length)) : (l + h.lines > i && d(), l += h.lines, u += h.length + 1, c.push(h));
}
function d() {
l != 0 && (s.push(c.length == 1 ? c[0] : Bo.from(c, u)), u = -1, l = c.length = 0);
}
for (let h of e)
f(h);
return d(), s.length == 1 ? s[0] : new Bo(s, n);
}
}
Ft.empty = /* @__PURE__ */ new Mn([""], 0);
function mat(t) {
let e = -1;
for (let n of t)
e += n.length + 1;
return e;
}
function r1(t, e, n = 0, r = 1e9) {
for (let i = 0, a = 0, o = !0; a < t.length && i <= r; a++) {
let s = t[a], l = i + s.length;
l >= n && (l > r && (s = s.slice(0, r - i)), i < n && (s = s.slice(n - i)), o ? (e[e.length - 1] += s, o = !1) : e.push(s)), i = l + 1;
}
return e;
}
function OH(t, e, n) {
return r1(t, [""], e, n);
}
class Gg {
constructor(e, n = 1) {
this.dir = n, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [n > 0 ? 1 : (e instanceof Mn ? e.text.length : e.children.length) << 1];
}
nextInner(e, n) {
for (this.done = this.lineBreak = !1; ; ) {
let r = this.nodes.length - 1, i = this.nodes[r], a = this.offsets[r], o = a >> 1, s = i instanceof Mn ? i.text.length : i.children.length;
if (o == (n > 0 ? s : 0)) {
if (r == 0)
return this.done = !0, this.value = "", this;
n > 0 && this.offsets[r - 1]++, this.nodes.pop(), this.offsets.pop();
} else if ((a & 1) == (n > 0 ? 0 : 1)) {
if (this.offsets[r] += n, e == 0)
return this.lineBreak = !0, this.value = `
`, this;
e--;
} else if (i instanceof Mn) {
let l = i.text[o + (n < 0 ? -1 : 0)];
if (this.offsets[r] += n, l.length > Math.max(0, e))
return this.value = e == 0 ? l : n > 0 ? l.slice(e) : l.slice(0, l.length - e), this;
e -= l.length;
} else {
let l = i.children[o + (n < 0 ? -1 : 0)];
e > l.length ? (e -= l.length, this.offsets[r] += n) : (n < 0 && this.offsets[r]--, this.nodes.push(l), this.offsets.push(n > 0 ? 1 : (l instanceof Mn ? l.text.length : l.children.length) << 1));
}
}
}
next(e = 0) {
return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir);
}
}
class tae {
constructor(e, n, r) {
this.value = "", this.done = !1, this.cursor = new Gg(e, n > r ? -1 : 1), this.pos = n > r ? e.length : 0, this.from = Math.min(n, r), this.to = Math.max(n, r);
}
nextInner(e, n) {
if (n < 0 ? this.pos <= this.from : this.pos >= this.to)
return this.value = "", this.done = !0, this;
e += Math.max(0, n < 0 ? this.pos - this.to : this.from - this.pos);
let r = n < 0 ? this.pos - this.from : this.to - this.pos;
e > r && (e = r), r -= e;
let { value: i } = this.cursor.next(e);
return this.pos += (i.length + e) * n, this.value = i.length <= r ? i : n < 0 ? i.slice(i.length - r) : i.slice(0, r), this.done = !this.value, this;
}
next(e = 0) {
return e < 0 ? e = Math.max(e, this.from - this.pos) : e > 0 && (e = Math.min(e, this.to - this.pos)), this.nextInner(e, this.cursor.dir);
}
get lineBreak() {
return this.cursor.lineBreak && this.value != "";
}
}
class nae {
constructor(e) {
this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1;
}
next(e = 0) {
let { done: n, lineBreak: r, value: i } = this.inner.next(e);
return n && this.afterBreak ? (this.value = "", this.afterBreak = !1) : n ? (this.done = !0, this.value = "") : r ? this.afterBreak ? this.value = "" : (this.afterBreak = !0, this.next()) : (this.value = i, this.afterBreak = !1), this;
}
get lineBreak() {
return !1;
}
}
typeof Symbol < "u" && (Ft.prototype[Symbol.iterator] = function() {
return this.iter();
}, Gg.prototype[Symbol.iterator] = tae.prototype[Symbol.iterator] = nae.prototype[Symbol.iterator] = function() {
return this;
});
class yat {
/**
@internal
*/
constructor(e, n, r, i) {
this.from = e, this.to = n, this.number = r, this.text = i;
}
/**
The length of the line (not including any line break after it).
*/
get length() {
return this.to - this.from;
}
}
function Kh(t, e, n) {
return e = Math.max(0, Math.min(t.length, e)), [e, Math.max(e, Math.min(t.length, n))];
}
let uh = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1);
for (let t = 1; t < uh.length; t++)
uh[t] += uh[t - 1];
function bat(t) {
for (let e = 1; e < uh.length; e += 2)
if (uh[e] > t)
return uh[e - 1] <= t;
return !1;
}
function SH(t) {
return t >= 127462 && t <= 127487;
}
const xH = 8205;
function _r(t, e, n = !0, r = !0) {
return (n ? rae : _at)(t, e, r);
}
function rae(t, e, n) {
if (e == t.length)
return e;
e && iae(t.charCodeAt(e)) && aae(t.charCodeAt(e - 1)) && e--;
let r = gr(t, e);
for (e += ya(r); e < t.length; ) {
let i = gr(t, e);
if (r == xH || i == xH || n && bat(i))
e += ya(i), r = i;
else if (SH(i)) {
let a = 0, o = e - 2;
for (; o >= 0 && SH(gr(t, o)); )
a++, o -= 2;
if (a % 2 == 0)
break;
e += 2;
} else
break;
}
return e;
}
function _at(t, e, n) {
for (; e > 0; ) {
let r = rae(t, e - 2, n);
if (r < e)
return r;
e--;
}
return 0;
}
function iae(t) {
return t >= 56320 && t < 57344;
}
function aae(t) {
return t >= 55296 && t < 56320;
}
function gr(t, e) {
let n = t.charCodeAt(e);
if (!aae(n) || e + 1 == t.length)
return n;
let r = t.charCodeAt(e + 1);
return iae(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n;
}
function JL(t) {
return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
}
function ya(t) {
return t < 65536 ? 1 : 2;
}
const nM = /\r\n?|\n/;
var yr = /* @__PURE__ */ function(t) {
return t[t.Simple = 0] = "Simple", t[t.TrackDel = 1] = "TrackDel", t[t.TrackBefore = 2] = "TrackBefore", t[t.TrackAfter = 3] = "TrackAfter", t;
}(yr || (yr = {}));
class qo {
// Sections are encoded as pairs of integers. The first is the
// length in the current document, and the second is -1 for
// unaffected sections, and the length of the replacement content
// otherwise. So an insertion would be (0, n>0), a deletion (n>0,
// 0), and a replacement two positive numbers.
/**
@internal
*/
constructor(e) {
this.sections = e;
}
/**
The length of the document before the change.
*/
get length() {
let e = 0;
for (let n = 0; n < this.sections.length; n += 2)
e += this.sections[n];
return e;
}
/**
The length of the document after the change.
*/
get newLength() {
let e = 0;
for (let n = 0; n < this.sections.length; n += 2) {
let r = this.sections[n + 1];
e += r < 0 ? this.sections[n] : r;
}
return e;
}
/**
False when there are actual changes in this set.
*/
get empty() {
return this.sections.length == 0 || this.sections.length == 2 && this.sections[1] < 0;
}
/**
Iterate over the unchanged parts left by these changes. `posA`
provides the position of the range in the old document, `posB`
the new position in the changed document.
*/
iterGaps(e) {
for (let n = 0, r = 0, i = 0; n < this.sections.length; ) {
let a = this.sections[n++], o = this.sections[n++];
o < 0 ? (e(r, i, a), i += a) : i += o, r += a;
}
}
/**
Iterate over the ranges changed by these changes. (See
[`ChangeSet.iterChanges`](https://codemirror.net/6/docs/ref/#state.ChangeSet.iterChanges) for a
variant that also provides you with the inserted text.)
`fromA`/`toA` provides the extent of the change in the starting
document, `fromB`/`toB` the extent of the replacement in the
changed document.
When `individual` is true, adjacent changes (which are kept
separate for [position mapping](https://codemirror.net/6/docs/ref/#state.ChangeDesc.mapPos)) are
reported separately.
*/
iterChangedRanges(e, n = !1) {
rM(this, e, n);
}
/**
Get a description of the inverted form of these changes.
*/
get invertedDesc() {
let e = [];
for (let n = 0; n < this.sections.length; ) {
let r = this.sections[n++], i = this.sections[n++];
i < 0 ? e.push(r, i) : e.push(i, r);
}
return new qo(e);
}
/**
Compute the combined effect of applying another set of changes
after this one. The length of the document after this set should
match the length before `other`.
*/
composeDesc(e) {
return this.empty ? e : e.empty ? this : oae(this, e);
}
/**
Map this description, which should start with the same document
as `other`, over another set of changes, so that it can be
applied after it. When `before` is true, map as if the changes
in `other` happened before the ones in `this`.
*/
mapDesc(e, n = !1) {
return e.empty ? this : iM(this, e, n);
}
mapPos(e, n = -1, r = yr.Simple) {
let i = 0, a = 0;
for (let o = 0; o < this.sections.length; ) {
let s = this.sections[o++], l = this.sections[o++], u = i + s;
if (l < 0) {
if (u > e)
return a + (e - i);
a += s;
} else {
if (r != yr.Simple && u >= e && (r == yr.TrackDel && i < e && u > e || r == yr.TrackBefore && i < e || r == yr.TrackAfter && u > e))
return null;
if (u > e || u == e && n < 0 && !s)
return e == i || n < 0 ? a : a + l;
a += l;
}
i = u;
}
if (e > i)
throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);
return a;
}
/**
Check whether these changes touch a given range. When one of the
changes entirely covers the range, the string `"cover"` is
returned.
*/
touchesRange(e, n = e) {
for (let r = 0, i = 0; r < this.sections.length && i <= n; ) {
let a = this.sections[r++], o = this.sections[r++], s = i + a;
if (o >= 0 && i <= n && s >= e)
return i < e && s > n ? "cover" : !0;
i = s;
}
return !1;
}
/**
@internal
*/
toString() {
let e = "";
for (let n = 0; n < this.sections.length; ) {
let r = this.sections[n++], i = this.sections[n++];
e += (e ? " " : "") + r + (i >= 0 ? ":" + i : "");
}
return e;
}
/**
Serialize this change desc to a JSON-representable value.
*/
toJSON() {
return this.sections;
}
/**
Create a change desc from its JSON representation (as produced
by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON).
*/
static fromJSON(e) {
if (!Array.isArray(e) || e.length % 2 || e.some((n) => typeof n != "number"))
throw new RangeError("Invalid JSON representation of ChangeDesc");
return new qo(e);
}
/**
@internal
*/
static create(e) {
return new qo(e);
}
}
class jn extends qo {
constructor(e, n) {
super(e), this.inserted = n;
}
/**
Apply the changes to a document, returning the modified
document.
*/
apply(e) {
if (this.length != e.length)
throw new RangeError("Applying change set to a document with the wrong length");
return rM(this, (n, r, i, a, o) => e = e.replace(i, i + (r - n), o), !1), e;
}
mapDesc(e, n = !1) {
return iM(this, e, n, !0);
}
/**
Given the document as it existed _before_ the changes, return a
change set that represents the inverse of this set, which could
be used to go from the document created by the changes back to
the document as it existed before the changes.
*/
invert(e) {
let n = this.sections.slice(), r = [];
for (let i = 0, a = 0; i < n.length; i += 2) {
let o = n[i], s = n[i + 1];
if (s >= 0) {
n[i] = s, n[i + 1] = o;
let l = i >> 1;
for (; r.length < l; )
r.push(Ft.empty);
r.push(o ? e.slice(a, a + o) : Ft.empty);
}
a += o;
}
return new jn(n, r);
}
/**
Combine two subsequent change sets into a single set. `other`
must start in the document produced by `this`. If `this` goes
`docA` → `docB` and `other` represents `docB` → `docC`, the
returned value will represent the change `docA` → `docC`.
*/
compose(e) {
return this.empty ? e : e.empty ? this : oae(this, e, !0);
}
/**
Given another change set starting in the same document, maps this
change set over the other, producing a new change set that can be
applied to the document produced by applying `other`. When
`before` is `true`, order changes as if `this` comes before
`other`, otherwise (the default) treat `other` as coming first.
Given two changes `A` and `B`, `A.compose(B.map(A))` and
`B.compose(A.map(B, true))` will produce the same document. This
provides a basic form of [operational
transformation](https://en.wikipedia.org/wiki/Operational_transformation),
and can be used for collaborative editing.
*/
map(e, n = !1) {
return e.empty ? this : iM(this, e, n, !0);
}
/**
Iterate over the changed ranges in the document, calling `f` for
each, with the range in the original document (`fromA`-`toA`)
and the range that replaces it in the new document
(`fromB`-`toB`).
When `individual` is true, adjacent changes are reported
separately.
*/
iterChanges(e, n = !1) {
rM(this, e, n);
}
/**
Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
set.
*/
get desc() {
return qo.create(this.sections);
}
/**
@internal
*/
filter(e) {
let n = [], r = [], i = [], a = new Um(this);
e: for (let o = 0, s = 0; ; ) {
let l = o == e.length ? 1e9 : e[o++];
for (; s < l || s == l && a.len == 0; ) {
if (a.done)
break e;
let c = Math.min(a.len, l - s);
Rr(i, c, -1);
let f = a.ins == -1 ? -1 : a.off == 0 ? a.ins : 0;
Rr(n, c, f), f > 0 && Wl(r, n, a.text), a.forward(c), s += c;
}
let u = e[o++];
for (; s < u; ) {
if (a.done)
break e;
let c = Math.min(a.len, u - s);
Rr(n, c, -1), Rr(i, c, a.ins == -1 ? -1 : a.off == 0 ? a.ins : 0), a.forward(c), s += c;
}
}
return {
changes: new jn(n, r),
filtered: qo.create(i)
};
}
/**
Serialize this change set to a JSON-representable value.
*/
toJSON() {
let e = [];
for (let n = 0; n < this.sections.length; n += 2) {
let r = this.sections[n], i = this.sections[n + 1];
i < 0 ? e.push(r) : i == 0 ? e.push([r]) : e.push([r].concat(this.inserted[n >> 1].toJSON()));
}
return e;
}
/**
Create a change set for the given changes, for a document of the
given length, using `lineSep` as line separator.
*/
static of(e, n, r) {
let i = [], a = [], o = 0, s = null;
function l(c = !1) {
if (!c && !i.length)
return;
o < n && Rr(i, n - o, -1);
let f = new jn(i, a);
s = s ? s.compose(f.map(s)) : f, i = [], a = [], o = 0;
}
function u(c) {
if (Array.isArray(c))
for (let f of c)
u(f);
else if (c instanceof jn) {
if (c.length != n)
throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);
l(), s = s ? s.compose(c.map(s)) : c;
} else {
let { from: f, to: d = f, insert: h } = c;
if (f > d || f < 0 || d > n)
throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);
let p = h ? typeof h == "string" ? Ft.of(h.split(r || nM)) : h : Ft.empty, v = p.length;
if (f == d && v == 0)
return;
f < o && l(), f > o && Rr(i, f - o, -1), Rr(i, d - f, v), Wl(a, i, p), o = d;
}
}
return u(e), l(!s), s;
}
/**
Create an empty changeset of the given length.
*/
static empty(e) {
return new jn(e ? [e, -1] : [], []);
}
/**
Create a changeset from its JSON representation (as produced by
[`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeSet.toJSON).
*/
static fromJSON(e) {
if (!Array.isArray(e))
throw new RangeError("Invalid JSON representation of ChangeSet");
let n = [], r = [];
for (let i = 0; i < e.length; i++) {
let a = e[i];
if (typeof a == "number")
n.push(a, -1);
else {
if (!Array.isArray(a) || typeof a[0] != "number" || a.some((o, s) => s && typeof o != "string"))
throw new RangeError("Invalid JSON representation of ChangeSet");
if (a.length == 1)
n.push(a[0], 0);
else {
for (; r.length < i; )
r.push(Ft.empty);
r[i] = Ft.of(a.slice(1)), n.push(a[0], r[i].length);
}
}
}
return new jn(n, r);
}
/**
@internal
*/
static createSet(e, n) {
return new jn(e, n);
}
}
function Rr(t, e, n, r = !1) {
if (e == 0 && n <= 0)
return;
let i = t.length - 2;
i >= 0 && n <= 0 && n == t[i + 1] ? t[i] += e : e == 0 && t[i] == 0 ? t[i + 1] += n : r ? (t[i] += e, t[i + 1] += n) : t.push(e, n);
}
function Wl(t, e, n) {
if (n.length == 0)
return;
let r = e.length - 2 >> 1;
if (r < t.length)
t[t.length - 1] = t[t.length - 1].append(n);
else {
for (; t.length < r; )
t.push(Ft.empty);
t.push(n);
}
}
function rM(t, e, n) {
let r = t.inserted;
for (let i = 0, a = 0, o = 0; o < t.sections.length; ) {
let s = t.sections[o++], l = t.sections[o++];
if (l < 0)
i += s, a += s;
else {
let u = i, c = a, f = Ft.empty;
for (; u += s, c += l, l && r && (f = f.append(r[o - 2 >> 1])), !(n || o == t.sections.length || t.sections[o + 1] < 0); )
s = t.sections[o++], l = t.sections[o++];
e(i, u, a, c, f), i = u, a = c;
}
}
}
function iM(t, e, n, r = !1) {
let i = [], a = r ? [] : null, o = new Um(t), s = new Um(e);
for (let l = -1; ; )
if (o.ins == -1 && s.ins == -1) {
let u = Math.min(o.len, s.len);
Rr(i, u, -1), o.forward(u), s.forward(u);
} else if (s.ins >= 0 && (o.ins < 0 || l == o.i || o.off == 0 && (s.len < o.len || s.len == o.len && !n))) {
let u = s.len;
for (Rr(i, s.ins, -1); u; ) {
let c = Math.min(o.len, u);
o.ins >= 0 && l < o.i && o.len <= c && (Rr(i, 0, o.ins), a && Wl(a, i, o.text), l = o.i), o.forward(c), u -= c;
}
s.next();
} else if (o.ins >= 0) {
let u = 0, c = o.len;
for (; c; )
if (s.ins == -1) {
let f = Math.min(c, s.len);
u += f, c -= f, s.forward(f);
} else if (s.ins == 0 && s.len < c)
c -= s.len, s.next();
else
break;
Rr(i, u, l < o.i ? o.ins : 0), a && l < o.i && Wl(a, i, o.text), l = o.i, o.forward(o.len - c);
} else {
if (o.done && s.done)
return a ? jn.createSet(i, a) : qo.create(i);
throw new Error("Mismatched change set lengths");
}
}
function oae(t, e, n = !1) {
let r = [], i = n ? [] : null, a = new Um(t), o = new Um(e);
for (let s = !1; ; ) {
if (a.done && o.done)
return i ? jn.createSet(r, i) : qo.create(r);
if (a.ins == 0)
Rr(r, a.len, 0, s), a.next();
else if (o.len == 0 && !o.done)
Rr(r, 0, o.ins, s), i && Wl(i, r, o.text), o.next();
else {
if (a.done || o.done)
throw new Error("Mismatched change set lengths");
{
let l = Math.min(a.len2, o.len), u = r.length;
if (a.ins == -1) {
let c = o.ins == -1 ? -1 : o.off ? 0 : o.ins;
Rr(r, l, c, s), i && c && Wl(i, r, o.text);
} else o.ins == -1 ? (Rr(r, a.off ? 0 : a.len, l, s), i && Wl(i, r, a.textBit(l))) : (Rr(r, a.off ? 0 : a.len, o.off ? 0 : o.ins, s), i && !o.off && Wl(i, r, o.text));
s = (a.ins > l || o.ins >= 0 && o.len > l) && (s || r.length > u), a.forward2(l), o.forward(l);
}
}
}
}
class Um {
constructor(e) {
this.set = e, this.i = 0, this.next();
}
next() {
let { sections: e } = this.set;
this.i < e.length ? (this.len = e[this.i++], this.ins = e[this.i++]) : (this.len = 0, this.ins = -2), this.off = 0;
}
get done() {
return this.ins == -2;
}
get len2() {
return this.ins < 0 ? this.len : this.ins;
}
get text() {
let { inserted: e } = this.set, n = this.i - 2 >> 1;
return n >= e.length ? Ft.empty : e[n];
}
textBit(e) {
let { inserted: n } = this.set, r = this.i - 2 >> 1;
return r >= n.length && !e ? Ft.empty : n[r].slice(this.off, e == null ? void 0 : this.off + e);
}
forward(e) {
e == this.len ? this.next() : (this.len -= e, this.off += e);
}
forward2(e) {
this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e);
}
}
class Wc {
constructor(e, n, r) {
this.from = e, this.to = n, this.flags = r;
}
/**
The anchor of the range—the side that doesn't move when you
extend it.
*/
get anchor() {
return this.flags & 32 ? this.to : this.from;
}
/**
The head of the range, which is moved when the range is
[extended](https://codemirror.net/6/docs/ref/#state.SelectionRange.extend).
*/
get head() {
return this.flags & 32 ? this.from : this.to;
}
/**
True when `anchor` and `head` are at the same position.
*/
get empty() {
return this.from == this.to;
}
/**
If this is a cursor that is explicitly associated with the
character on one of its sides, this returns the side. -1 means
the character before its position, 1 the character after, and 0
means no association.
*/
get assoc() {
return this.flags & 8 ? -1 : this.flags & 16 ? 1 : 0;
}
/**
The bidirectional text level associated with this cursor, if
any.
*/
get bidiLevel() {
let e = this.flags & 7;
return e == 7 ? null : e;
}
/**
The goal column (stored vertical offset) associated with a
cursor. This is used to preserve the vertical position when
[moving](https://codemirror.net/6/docs/ref/#view.EditorView.moveVertically) across
lines of different length.
*/
get goalColumn() {
let e = this.flags >> 6;
return e == 16777215 ? void 0 : e;
}
/**
Map this range through a change, producing a valid range in the
updated document.
*/
map(e, n = -1) {
let r, i;
return this.empty ? r = i = e.mapPos(this.from, n) : (r = e.mapPos(this.from, 1), i = e.mapPos(this.to, -1)), r == this.from && i == this.to ? this : new Wc(r, i, this.flags);
}
/**
Extend this range to cover at least `from` to `to`.
*/
extend(e, n = e) {
if (e <= this.anchor && n >= this.anchor)
return me.range(e, n);
let r = Math.abs(e - this.anchor) > Math.abs(n - this.anchor) ? e : n;
return me.range(this.anchor, r);
}
/**
Compare this range to another range.
*/
eq(e, n = !1) {
return this.anchor == e.anchor && this.head == e.head && (!n || !this.empty || this.assoc == e.assoc);
}
/**
Return a JSON-serializable object representing the range.
*/
toJSON() {
return { anchor: this.anchor, head: this.head };
}
/**
Convert a JSON representation of a range to a `SelectionRange`
instance.
*/
static fromJSON(e) {
if (!e || typeof e.anchor != "number" || typeof e.head != "number")
throw new RangeError("Invalid JSON representation for SelectionRange");
return me.range(e.anchor, e.head);
}
/**
@internal
*/
static create(e, n, r) {
return new Wc(e, n, r);
}
}
class me {
constructor(e, n) {
this.ranges = e, this.mainIndex = n;
}
/**
Map a selection through a change. Used to adjust the selection
position for changes.
*/
map(e, n = -1) {
return e.empty ? this : me.create(this.ranges.map((r) => r.map(e, n)), this.mainIndex);
}
/**
Compare this selection to another selection. By default, ranges
are compared only by position. When `includeAssoc` is true,
cursor ranges must also have the same
[`assoc`](https://codemirror.net/6/docs/ref/#state.SelectionRange.assoc) value.
*/
eq(e, n = !1) {
if (this.ranges.length != e.ranges.length || this.mainIndex != e.mainIndex)
return !1;
for (let r = 0; r < this.ranges.length; r++)
if (!this.ranges[r].eq(e.ranges[r], n))
return !1;
return !0;
}
/**
Get the primary selection range. Usually, you should make sure
your code applies to _all_ ranges, by using methods like
[`changeByRange`](https://codemirror.net/6/docs/ref/#state.EditorState.changeByRange).
*/
get main() {
return this.ranges[this.mainIndex];
}
/**
Make sure the selection only has one range. Returns a selection
holding only the main range from this selection.
*/
asSingle() {
return this.ranges.length == 1 ? this : new me([this.main], 0);
}
/**
Extend this selection with an extra range.
*/
addRange(e, n = !0) {
return me.create([e].concat(this.ranges), n ? 0 : this.mainIndex + 1);
}
/**
Replace a given range with another range, and then normalize the
selection to merge and sort ranges if necessary.
*/
replaceRange(e, n = this.mainIndex) {
let r = this.ranges.slice();
return r[n] = e, me.create(r, this.mainIndex);
}
/**
Convert this selection to an object that can be serialized to
JSON.
*/
toJSON() {
return { ranges: this.ranges.map((e) => e.toJSON()), main: this.mainIndex };
}
/**
Create a selection from a JSON representation.
*/
static fromJSON(e) {
if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length)
throw new RangeError("Invalid JSON representation for EditorSelection");
return new me(e.ranges.map((n) => Wc.fromJSON(n)), e.main);
}
/**
Create a selection holding a single range.
*/
static single(e, n = e) {
return new me([me.range(e, n)], 0);
}
/**
Sort and merge the given set of ranges, creating a valid
selection.
*/
static create(e, n = 0) {
if (e.length == 0)
throw new RangeError("A selection needs at least one range");
for (let r = 0, i = 0; i < e.length; i++) {
let a = e[i];
if (a.empty ? a.from <= r : a.from < r)
return me.normalized(e.slice(), n);
r = a.to;
}
return new me(e, n);
}
/**
Create a cursor selection range at the given position. You can
safely ignore the optional arguments in most situations.
*/
static cursor(e, n = 0, r, i) {
return Wc.create(e, e, (n == 0 ? 0 : n < 0 ? 8 : 16) | (r == null ? 7 : Math.min(6, r)) | (i ?? 16777215) << 6);
}
/**
Create a selection range.
*/
static range(e, n, r, i) {
let a = (r ?? 16777215) << 6 | (i == null ? 7 : Math.min(6, i));
return n < e ? Wc.create(n, e, 48 | a) : Wc.create(e, n, (n > e ? 8 : 0) | a);
}
/**
@internal
*/
static normalized(e, n = 0) {
let r = e[n];
e.sort((i, a) => i.from - a.from), n = e.indexOf(r);
for (let i = 1; i < e.length; i++) {
let a = e[i], o = e[i - 1];
if (a.empty ? a.from <= o.to : a.from < o.to) {
let s = o.from, l = Math.max(a.to, o.to);
i <= n && n--, e.splice(--i, 2, a.anchor > a.head ? me.range(l, s) : me.range(s, l));
}
}
return new me(e, n);
}
}
function sae(t, e) {
for (let n of t.ranges)
if (n.to > e)
throw new RangeError("Selection points outside of document");
}
let e4 = 0;
class Be {
constructor(e, n, r, i, a) {
this.combine = e, this.compareInput = n, this.compare = r, this.isStatic = i, this.id = e4++, this.default = e([]), this.extensions = typeof a == "function" ? a(this) : a;
}
/**
Returns a facet reader for this facet, which can be used to
[read](https://codemirror.net/6/docs/ref/#state.EditorState.facet) it but not to define values for it.
*/
get reader() {
return this;
}
/**
Define a new facet.
*/
static define(e = {}) {
return new Be(e.combine || ((n) => n), e.compareInput || ((n, r) => n === r), e.compare || (e.combine ? (n, r) => n === r : t4), !!e.static, e.enables);
}
/**
Returns an extension that adds the given value to this facet.
*/
of(e) {
return new i1([], this, 0, e);
}
/**
Create an extension that computes a value for the facet from a
state. You must take care to declare the parts of the state that
this value depends on, since your function is only called again
for a new state when one of those parts changed.
In cases where your value depends only on a single field, you'll
want to use the [`from`](https://codemirror.net/6/docs/ref/#state.Facet.from) method instead.
*/
compute(e, n) {
if (this.isStatic)
throw new Error("Can't compute a static facet");
return new i1(e, this, 1, n);
}
/**
Create an extension that computes zero or more values for this
facet from a state.
*/
computeN(e, n) {
if (this.isStatic)
throw new Error("Can't compute a static facet");
return new i1(e, this, 2, n);
}
from(e, n) {
return n || (n = (r) => r), this.compute([e], (r) => n(r.field(e)));
}
}
function t4(t, e) {
return t == e || t.length == e.length && t.every((n, r) => n === e[r]);
}
class i1 {
constructor(e, n, r, i) {
this.dependencies = e, this.facet = n, this.type = r, this.value = i, this.id = e4++;
}
dynamicSlot(e) {
var n;
let r = this.value, i = this.facet.compareInput, a = this.id, o = e[a] >> 1, s = this.type == 2, l = !1, u = !1, c = [];
for (let f of this.dependencies)
f == "doc" ? l = !0 : f == "selection" ? u = !0 : ((n = e[f.id]) !== null && n !== void 0 ? n : 1) & 1 || c.push(e[f.id]);
return {
create(f) {
return f.values[o] = r(f), 1;
},
update(f, d) {
if (l && d.docChanged || u && (d.docChanged || d.selection) || aM(f, c)) {
let h = r(f);
if (s ? !wH(h, f.values[o], i) : !i(h, f.values[o]))
return f.values[o] = h, 1;
}
return 0;
},
reconfigure: (f, d) => {
let h, p = d.config.address[a];
if (p != null) {
let v = rS(d, p);
if (this.dependencies.every((g) => g instanceof Be ? d.facet(g) === f.facet(g) : g instanceof ur ? d.field(g, !1) == f.field(g, !1) : !0) || (s ? wH(h = r(f), v, i) : i(h = r(f), v)))
return f.values[o] = v, 0;
} else
h = r(f);
return f.values[o] = h, 1;
}
};
}
}
function wH(t, e, n) {
if (t.length != e.length)
return !1;
for (let r = 0; r < t.length; r++)
if (!n(t[r], e[r]))
return !1;
return !0;
}
function aM(t, e) {
let n = !1;
for (let r of e)
jg(t, r) & 1 && (n = !0);
return n;
}
function Oat(t, e, n) {
let r = n.map((l) => t[l.id]), i = n.map((l) => l.type), a = r.filter((l) => !(l & 1)), o = t[e.id] >> 1;
function s(l) {
let u = [];
for (let c = 0; c < r.length; c++) {
let f = rS(l, r[c]);
if (i[c] == 2)
for (let d of f)
u.push(d);
else
u.push(f);
}
return e.combine(u);
}
return {
create(l) {
for (let u of r)
jg(l, u);
return l.values[o] = s(l), 1;
},
update(l, u) {
if (!aM(l, a))
return 0;
let c = s(l);
return e.compare(c, l.values[o]) ? 0 : (l.values[o] = c, 1);
},
reconfigure(l, u) {
let c = aM(l, r), f = u.config.facets[e.id], d = u.facet(e);
if (f && !c && t4(n, f))
return l.values[o] = d, 0;
let h = s(l);
return e.compare(h, d) ? (l.values[o] = d, 0) : (l.values[o] = h, 1);
}
};
}
const CH = /* @__PURE__ */ Be.define({ static: !0 });
class ur {
constructor(e, n, r, i, a) {
this.id = e, this.createF = n, this.updateF = r, this.compareF = i, this.spec = a, this.provides = void 0;
}
/**
Define a state field.
*/
static define(e) {
let n = new ur(e4++, e.create, e.update, e.compare || ((r, i) => r === i), e);
return e.provide && (n.provides = e.provide(n)), n;
}
create(e) {
let n = e.facet(CH).find((r) => r.field == this);
return ((n == null ? void 0 : n.create) || this.createF)(e);
}
/**
@internal
*/
slot(e) {
let n = e[this.id] >> 1;
return {
create: (r) => (r.values[n] = this.create(r), 1),
update: (r, i) => {
let a = r.values[n], o = this.updateF(a, i);
return this.compareF(a, o) ? 0 : (r.values[n] = o, 1);
},
reconfigure: (r, i) => i.config.address[this.id] != null ? (r.values[n] = i.field(this), 0) : (r.values[n] = this.create(r), 1)
};
}
/**
Returns an extension that enables this field and overrides the
way it is initialized. Can be useful when you need to provide a
non-default starting value for the field.
*/
init(e) {
return [this, CH.of({ field: this, create: e })];
}
/**
State field instances can be used as
[`Extension`](https://codemirror.net/6/docs/ref/#state.Extension) values to enable the field in a
given state.
*/
get extension() {
return this;
}
}
const Pc = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
function Iv(t) {
return (e) => new lae(e, t);
}
const Eu = {
/**
The highest precedence level, for extensions that should end up
near the start of the precedence ordering.
*/
highest: /* @__PURE__ */ Iv(Pc.highest),
/**
A higher-than-default precedence, for extensions that should
come before those with default precedence.
*/
high: /* @__PURE__ */ Iv(Pc.high),
/**
The default precedence, which is also used for extensions
without an explicit precedence.
*/
default: /* @__PURE__ */ Iv(Pc.default),
/**
A lower-than-default precedence.
*/
low: /* @__PURE__ */ Iv(Pc.low),
/**
The lowest precedence level. Meant for things that should end up
near the end of the extension order.
*/
lowest: /* @__PURE__ */ Iv(Pc.lowest)
};
class lae {
constructor(e, n) {
this.inner = e, this.prec = n;
}
}
class iy {
/**
Create an instance of this compartment to add to your [state
configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
*/
of(e) {
return new oM(this, e);
}
/**
Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
reconfigures this compartment.
*/
reconfigure(e) {
return iy.reconfigure.of({ compartment: this, extension: e });
}
/**
Get the current content of the compartment in the state, or
`undefined` if it isn't present.
*/
get(e) {
return e.config.compartments.get(this);
}
}
class oM {
constructor(e, n) {
this.compartment = e, this.inner = n;
}
}
class nS {
constructor(e, n, r, i, a, o) {
for (this.base = e, this.compartments = n, this.dynamicSlots = r, this.address = i, this.staticValues = a, this.facets = o, this.statusTemplate = []; this.statusTemplate.length < r.length; )
this.statusTemplate.push(
0
/* SlotStatus.Unresolved */
);
}
staticFacet(e) {
let n = this.address[e.id];
return n == null ? e.default : this.staticValues[n >> 1];
}
static resolve(e, n, r) {
let i = [], a = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map();
for (let d of Sat(e, n, o))
d instanceof ur ? i.push(d) : (a[d.facet.id] || (a[d.facet.id] = [])).push(d);
let s = /* @__PURE__ */ Object.create(null), l = [], u = [];
for (let d of i)
s[d.id] = u.length << 1, u.push((h) => d.slot(h));
let c = r == null ? void 0 : r.config.facets;
for (let d in a) {
let h = a[d], p = h[0].facet, v = c && c[d] || [];
if (h.every(
(g) => g.type == 0
/* Provider.Static */
))
if (s[p.id] = l.length << 1 | 1, t4(v, h))
l.push(r.facet(p));
else {
let g = p.combine(h.map((m) => m.value));
l.push(r && p.compare(g, r.facet(p)) ? r.facet(p) : g);
}
else {
for (let g of h)
g.type == 0 ? (s[g.id] = l.length << 1 | 1, l.push(g.value)) : (s[g.id] = u.length << 1, u.push((m) => g.dynamicSlot(m)));
s[p.id] = u.length << 1, u.push((g) => Oat(g, p, h));
}
}
let f = u.map((d) => d(s));
return new nS(e, o, f, s, l, a);
}
}
function Sat(t, e, n) {
let r = [[], [], [], [], []], i = /* @__PURE__ */ new Map();
function a(o, s) {
let l = i.get(o);
if (l != null) {
if (l <= s)
return;
let u = r[l].indexOf(o);
u > -1 && r[l].splice(u, 1), o instanceof oM && n.delete(o.compartment);
}
if (i.set(o, s), Array.isArray(o))
for (let u of o)
a(u, s);
else if (o instanceof oM) {
if (n.has(o.compartment))
throw new RangeError("Duplicate use of compartment in extensions");
let u = e.get(o.compartment) || o.inner;
n.set(o.compartment, u), a(u, s);
} else if (o instanceof lae)
a(o.inner, o.prec);
else if (o instanceof ur)
r[s].push(o), o.provides && a(o.provides, s);
else if (o instanceof i1)
r[s].push(o), o.facet.extensions && a(o.facet.extensions, Pc.default);
else {
let u = o.extension;
if (!u)
throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
a(u, s);
}
}
return a(t, Pc.default), r.reduce((o, s) => o.concat(s));
}
function jg(t, e) {
if (e & 1)
return 2;
let n = e >> 1, r = t.status[n];
if (r == 4)
throw new Error("Cyclic dependency between fields and/or facets");
if (r & 2)
return r;
t.status[n] = 4;
let i = t.computeSlot(t, t.config.dynamicSlots[n]);
return t.status[n] = 2 | i;
}
function rS(t, e) {
return e & 1 ? t.config.staticValues[e >> 1] : t.values[e >> 1];
}
const uae = /* @__PURE__ */ Be.define(), sM = /* @__PURE__ */ Be.define({
combine: (t) => t.some((e) => e),
static: !0
}), cae = /* @__PURE__ */ Be.define({
combine: (t) => t.length ? t[0] : void 0,
static: !0
}), fae = /* @__PURE__ */ Be.define(), dae = /* @__PURE__ */ Be.define(), hae = /* @__PURE__ */ Be.define(), pae = /* @__PURE__ */ Be.define({
combine: (t) => t.length ? t[0] : !1
});
class cl {
/**
@internal
*/
constructor(e, n) {
this.type = e, this.value = n;
}
/**
Define a new type of annotation.
*/
static define() {
return new xat();
}
}
class xat {
/**
Create an instance of this annotation.
*/
of(e) {
return new cl(this, e);
}
}
class wat {
/**
@internal
*/
constructor(e) {
this.map = e;
}
/**
Create a [state effect](https://codemirror.net/6/docs/ref/#state.StateEffect) instance of this
type.
*/
of(e) {
return new dt(this, e);
}
}
class dt {
/**
@internal
*/
constructor(e, n) {
this.type = e, this.value = n;
}
/**
Map this effect through a position mapping. Will return
`undefined` when that ends up deleting the effect.
*/
map(e) {
let n = this.type.map(this.value, e);
return n === void 0 ? void 0 : n == this.value ? this : new dt(this.type, n);
}
/**
Tells you whether this effect object is of a given
[type](https://codemirror.net/6/docs/ref/#state.StateEffectType).
*/
is(e) {
return this.type == e;
}
/**
Define a new effect type. The type parameter indicates the type
of values that his effect holds. It should be a type that
doesn't include `undefined`, since that is used in
[mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
removed.
*/
static define(e = {}) {
return new wat(e.map || ((n) => n));
}
/**
Map an array of effects through a change set.
*/
static mapEffects(e, n) {
if (!e.length)
return e;
let r = [];
for (let i of e) {
let a = i.map(n);
a && r.push(a);
}
return r;
}
}
dt.reconfigure = /* @__PURE__ */ dt.define();
dt.appendConfig = /* @__PURE__ */ dt.define();
class Fn {
constructor(e, n, r, i, a, o) {
this.startState = e, this.changes = n, this.selection = r, this.effects = i, this.annotations = a, this.scrollIntoView = o, this._doc = null, this._state = null, r && sae(r, n.newLength), a.some((s) => s.type == Fn.time) || (this.annotations = a.concat(Fn.time.of(Date.now())));
}
/**
@internal
*/
static create(e, n, r, i, a, o) {
return new Fn(e, n, r, i, a, o);
}
/**
The new document produced by the transaction. Contrary to
[`.state`](https://codemirror.net/6/docs/ref/#state.Transaction.state)`.doc`, accessing this won't
force the entire new state to be computed right away, so it is
recommended that [transaction
filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) use this getter
when they need to look at the new document.
*/
get newDoc() {
return this._doc || (this._doc = this.changes.apply(this.startState.doc));
}
/**
The new selection produced by the transaction. If
[`this.selection`](https://codemirror.net/6/docs/ref/#state.Transaction.selection) is undefined,
this will [map](https://codemirror.net/6/docs/ref/#state.EditorSelection.map) the start state's
current selection through the changes made by the transaction.
*/
get newSelection() {
return this.selection || this.startState.selection.map(this.changes);
}
/**
The new state created by the transaction. Computed on demand
(but retained for subsequent access), so it is recommended not to
access it in [transaction
filters](https://codemirror.net/6/docs/ref/#state.EditorState^transactionFilter) when possible.
*/
get state() {
return this._state || this.startState.applyTransaction(this), this._state;
}
/**
Get the value of the given annotation type, if any.
*/
annotation(e) {
for (let n of this.annotations)
if (n.type == e)
return n.value;
}
/**
Indicates whether the transaction changed the document.
*/
get docChanged() {
return !this.changes.empty;
}
/**
Indicates whether this transaction reconfigures the state
(through a [configuration compartment](https://codemirror.net/6/docs/ref/#state.Compartment) or
with a top-level configuration
[effect](https://codemirror.net/6/docs/ref/#state.StateEffect^reconfigure).
*/
get reconfigured() {
return this.startState.config != this.state.config;
}
/**
Returns true if the transaction has a [user
event](https://codemirror.net/6/docs/ref/#state.Transaction^userEvent) annotation that is equal to
or more specific than `event`. For example, if the transaction
has `"select.pointer"` as user event, `"select"` and
`"select.pointer"` will match it.
*/
isUserEvent(e) {
let n = this.annotation(Fn.userEvent);
return !!(n && (n == e || n.length > e.length && n.slice(0, e.length) == e && n[e.length] == "."));
}
}
Fn.time = /* @__PURE__ */ cl.define();
Fn.userEvent = /* @__PURE__ */ cl.define();
Fn.addToHistory = /* @__PURE__ */ cl.define();
Fn.remote = /* @__PURE__ */ cl.define();
function Cat(t, e) {
let n = [];
for (let r = 0, i = 0; ; ) {
let a, o;
if (r < t.length && (i == e.length || e[i] >= t[r]))
a = t[r++], o = t[r++];
else if (i < e.length)
a = e[i++], o = e[i++];
else
return n;
!n.length || n[n.length - 1] < a ? n.push(a, o) : n[n.length - 1] < o && (n[n.length - 1] = o);
}
}
function vae(t, e, n) {
var r;
let i, a, o;
return n ? (i = e.changes, a = jn.empty(e.changes.length), o = t.changes.compose(e.changes)) : (i = e.changes.map(t.changes), a = t.changes.mapDesc(e.changes, !0), o = t.changes.compose(i)), {
changes: o,
selection: e.selection ? e.selection.map(a) : (r = t.selection) === null || r === void 0 ? void 0 : r.map(i),
effects: dt.mapEffects(t.effects, i).concat(dt.mapEffects(e.effects, a)),
annotations: t.annotations.length ? t.annotations.concat(e.annotations) : e.annotations,
scrollIntoView: t.scrollIntoView || e.scrollIntoView
};
}
function lM(t, e, n) {
let r = e.selection, i = ch(e.annotations);
return e.userEvent && (i = i.concat(Fn.userEvent.of(e.userEvent))), {
changes: e.changes instanceof jn ? e.changes : jn.of(e.changes || [], n, t.facet(cae)),
selection: r && (r instanceof me ? r : me.single(r.anchor, r.head)),
effects: ch(e.effects),
annotations: i,
scrollIntoView: !!e.scrollIntoView
};
}
function gae(t, e, n) {
let r = lM(t, e.length ? e[0] : {}, t.doc.length);
e.length && e[0].filter === !1 && (n = !1);
for (let a = 1; a < e.length; a++) {
e[a].filter === !1 && (n = !1);
let o = !!e[a].sequential;
r = vae(r, lM(t, e[a], o ? r.changes.newLength : t.doc.length), o);
}
let i = Fn.create(t, r.changes, r.selection, r.effects, r.annotations, r.scrollIntoView);
return Pat(n ? Tat(i) : i);
}
function Tat(t) {
let e = t.startState, n = !0;
for (let i of e.facet(fae)) {
let a = i(t);
if (a === !1) {
n = !1;
break;
}
Array.isArray(a) && (n = n === !0 ? a : Cat(n, a));
}
if (n !== !0) {
let i, a;
if (n === !1)
a = t.changes.invertedDesc, i = jn.empty(e.doc.length);
else {
let o = t.changes.filter(n);
i = o.changes, a = o.filtered.mapDesc(o.changes).invertedDesc;
}
t = Fn.create(e, i, t.selection && t.selection.map(a), dt.mapEffects(t.effects, a), t.annotations, t.scrollIntoView);
}
let r = e.facet(dae);
for (let i = r.length - 1; i >= 0; i--) {
let a = r[i](t);
a instanceof Fn ? t = a : Array.isArray(a) && a.length == 1 && a[0] instanceof Fn ? t = a[0] : t = gae(e, ch(a), !1);
}
return t;
}
function Pat(t) {
let e = t.startState, n = e.facet(hae), r = t;
for (let i = n.length - 1; i >= 0; i--) {
let a = n[i](t);
a && Object.keys(a).length && (r = vae(r, lM(e, a, t.changes.newLength), !0));
}
return r == t ? t : Fn.create(e, t.changes, t.selection, r.effects, r.annotations, r.scrollIntoView);
}
const $at = [];
function ch(t) {
return t == null ? $at : Array.isArray(t) ? t : [t];
}
var yn = /* @__PURE__ */ function(t) {
return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t;
}(yn || (yn = {}));
const Aat = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
let uM;
try {
uM = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
} catch {
}
function Eat(t) {
if (uM)
return uM.test(t);
for (let e = 0; e < t.length; e++) {
let n = t[e];
if (/\w/.test(n) || n > "" && (n.toUpperCase() != n.toLowerCase() || Aat.test(n)))
return !0;
}
return !1;
}
function Mat(t) {
return (e) => {
if (!/\S/.test(e))
return yn.Space;
if (Eat(e))
return yn.Word;
for (let n = 0; n < t.length; n++)
if (e.indexOf(t[n]) > -1)
return yn.Word;
return yn.Other;
};
}
class At {
constructor(e, n, r, i, a, o) {
this.config = e, this.doc = n, this.selection = r, this.values = i, this.status = e.statusTemplate.slice(), this.computeSlot = a, o && (o._state = this);
for (let s = 0; s < this.config.dynamicSlots.length; s++)
jg(this, s << 1);
this.computeSlot = null;
}
field(e, n = !0) {
let r = this.config.address[e.id];
if (r == null) {
if (n)
throw new RangeError("Field is not present in this state");
return;
}
return jg(this, r), rS(this, r);
}
/**
Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
state. Any number of [transaction specs](https://codemirror.net/6/docs/ref/#state.TransactionSpec)
can be passed. Unless
[`sequential`](https://codemirror.net/6/docs/ref/#state.TransactionSpec.sequential) is set, the
[changes](https://codemirror.net/6/docs/ref/#state.TransactionSpec.changes) (if any) of each spec
are assumed to start in the _current_ document (not the document
produced by previous specs), and its
[selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection) and
[effects](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) are assumed to refer
to the document created by its _own_ changes. The resulting
transaction contains the combined effect of all the different
specs. For [selection](https://codemirror.net/6/docs/ref/#state.TransactionSpec.selection), later
specs take precedence over earlier ones.
*/
update(...e) {
return gae(this, e, !0);
}
/**
@internal
*/
applyTransaction(e) {
let n = this.config, { base: r, compartments: i } = n;
for (let s of e.effects)
s.is(iy.reconfigure) ? (n && (i = /* @__PURE__ */ new Map(), n.compartments.forEach((l, u) => i.set(u, l)), n = null), i.set(s.value.compartment, s.value.extension)) : s.is(dt.reconfigure) ? (n = null, r = s.value) : s.is(dt.appendConfig) && (n = null, r = ch(r).concat(s.value));
let a;
n ? a = e.startState.values.slice() : (n = nS.resolve(r, i, this), a = new At(n, this.doc, this.selection, n.dynamicSlots.map(() => null), (l, u) => u.reconfigure(l, this), null).values);
let o = e.startState.facet(sM) ? e.newSelection : e.newSelection.asSingle();
new At(n, e.newDoc, o, a, (s, l) => l.update(s, e), e);
}
/**
Create a [transaction spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec) that
replaces every selection range with the given content.
*/
replaceSelection(e) {
return typeof e == "string" && (e = this.toText(e)), this.changeByRange((n) => ({
changes: { from: n.from, to: n.to, insert: e },
range: me.cursor(n.from + e.length)
}));
}
/**
Create a set of changes and a new selection by running the given
function for each range in the active selection. The function
can return an optional set of changes (in the coordinate space
of the start document), plus an updated range (in the coordinate
space of the document produced by the call's own changes). This
method will merge all the changes and ranges into a single
changeset and selection, and return it as a [transaction
spec](https://codemirror.net/6/docs/ref/#state.TransactionSpec), which can be passed to
[`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
*/
changeByRange(e) {
let n = this.selection, r = e(n.ranges[0]), i = this.changes(r.changes), a = [r.range], o = ch(r.effects);
for (let s = 1; s < n.ranges.length; s++) {
let l = e(n.ranges[s]), u = this.changes(l.changes), c = u.map(i);
for (let d = 0; d < s; d++)
a[d] = a[d].map(c);
let f = i.mapDesc(u, !0);
a.push(l.range.map(f)), i = i.compose(c), o = dt.mapEffects(o, c).concat(dt.mapEffects(ch(l.effects), f));
}
return {
changes: i,
selection: me.create(a, n.mainIndex),
effects: o
};
}
/**
Create a [change set](https://codemirror.net/6/docs/ref/#state.ChangeSet) from the given change
description, taking the state's document length and line
separator into account.
*/
changes(e = []) {
return e instanceof jn ? e : jn.of(e, this.doc.length, this.facet(At.lineSeparator));
}
/**
Using the state's [line
separator](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator), create a
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
*/
toText(e) {
return Ft.of(e.split(this.facet(At.lineSeparator) || nM));
}
/**
Return the given range of the document as a string.
*/
sliceDoc(e = 0, n = this.doc.length) {
return this.doc.sliceString(e, n, this.lineBreak);
}
/**
Get the value of a state [facet](https://codemirror.net/6/docs/ref/#state.Facet).
*/
facet(e) {
let n = this.config.address[e.id];
return n == null ? e.default : (jg(this, n), rS(this, n));
}
/**
Convert this state to a JSON-serializable object. When custom
fields should be serialized, you can pass them in as an object
mapping property names (in the resulting object, which should
not use `doc` or `selection`) to fields.
*/
toJSON(e) {
let n = {
doc: this.sliceDoc(),
selection: this.selection.toJSON()
};
if (e)
for (let r in e) {
let i = e[r];
i instanceof ur && this.config.address[i.id] != null && (n[r] = i.spec.toJSON(this.field(e[r]), this));
}
return n;
}
/**
Deserialize a state from its JSON representation. When custom
fields should be deserialized, pass the same object you passed
to [`toJSON`](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) when serializing as
third argument.
*/
static fromJSON(e, n = {}, r) {
if (!e || typeof e.doc != "string")
throw new RangeError("Invalid JSON representation for EditorState");
let i = [];
if (r) {
for (let a in r)
if (Object.prototype.hasOwnProperty.call(e, a)) {
let o = r[a], s = e[a];
i.push(o.init((l) => o.spec.fromJSON(s, l)));
}
}
return At.create({
doc: e.doc,
selection: me.fromJSON(e.selection),
extensions: n.extensions ? i.concat([n.extensions]) : i
});
}
/**
Create a new state. You'll usually only need this when
initializing an editor—updated states are created by applying
transactions.
*/
static create(e = {}) {
let n = nS.resolve(e.extensions || [], /* @__PURE__ */ new Map()), r = e.doc instanceof Ft ? e.doc : Ft.of((e.doc || "").split(n.staticFacet(At.lineSeparator) || nM)), i = e.selection ? e.selection instanceof me ? e.selection : me.single(e.selection.anchor, e.selection.head) : me.single(0);
return sae(i, r.length), n.staticFacet(sM) || (i = i.asSingle()), new At(n, r, i, n.dynamicSlots.map(() => null), (a, o) => o.create(a), null);
}
/**
The size (in columns) of a tab in the document, determined by
the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet.
*/
get tabSize() {
return this.facet(At.tabSize);
}
/**
Get the proper [line-break](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)
string for this state.
*/
get lineBreak() {
return this.facet(At.lineSeparator) || `
`;
}
/**
Returns true when the editor is
[configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
*/
get readOnly() {
return this.facet(pae);
}
/**
Look up a translation for the given phrase (via the
[`phrases`](https://codemirror.net/6/docs/ref/#state.EditorState^phrases) facet), or return the
original string if no translation is found.
If additional arguments are passed, they will be inserted in
place of markers like `$1` (for the first value) and `$2`, etc.
A single `$` is equivalent to `$1`, and `$$` will produce a
literal dollar sign.
*/
phrase(e, ...n) {
for (let r of this.facet(At.phrases))
if (Object.prototype.hasOwnProperty.call(r, e)) {
e = r[e];
break;
}
return n.length && (e = e.replace(/\$(\$|\d*)/g, (r, i) => {
if (i == "$")
return "$";
let a = +(i || 1);
return !a || a > n.length ? r : n[a - 1];
})), e;
}
/**
Find the values for a given language data field, provided by the
the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
Examples of language data fields are...
- [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
comment syntax.
- [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
for providing language-specific completion sources.
- [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
characters that should be considered part of words in this
language.
- [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
bracket closing behavior.
*/
languageDataAt(e, n, r = -1) {
let i = [];
for (let a of this.facet(uae))
for (let o of a(this, n, r))
Object.prototype.hasOwnProperty.call(o, e) && i.push(o[e]);
return i;
}
/**
Return a function that can categorize strings (expected to
represent a single [grapheme cluster](https://codemirror.net/6/docs/ref/#state.findClusterBreak))
into one of:
- Word (contains an alphanumeric character or a character
explicitly listed in the local language's `"wordChars"`
language data, which should be a string)
- Space (contains only whitespace)
- Other (anything else)
*/
charCategorizer(e) {
return Mat(this.languageDataAt("wordChars", e).join(""));
}
/**
Find the word at the given position, meaning the range
containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters
around it. If no word characters are adjacent to the position,
this returns null.
*/
wordAt(e) {
let { text: n, from: r, length: i } = this.doc.lineAt(e), a = this.charCategorizer(e), o = e - r, s = e - r;
for (; o > 0; ) {
let l = _r(n, o, !1);
if (a(n.slice(l, o)) != yn.Word)
break;
o = l;
}
for (; s < i; ) {
let l = _r(n, s);
if (a(n.slice(s, l)) != yn.Word)
break;
s = l;
}
return o == s ? null : me.range(o + r, s + r);
}
}
At.allowMultipleSelections = sM;
At.tabSize = /* @__PURE__ */ Be.define({
combine: (t) => t.length ? t[0] : 4
});
At.lineSeparator = cae;
At.readOnly = pae;
At.phrases = /* @__PURE__ */ Be.define({
compare(t, e) {
let n = Object.keys(t), r = Object.keys(e);
return n.length == r.length && n.every((i) => t[i] == e[i]);
}
});
At.languageData = uae;
At.changeFilter = fae;
At.transactionFilter = dae;
At.transactionExtender = hae;
iy.reconfigure = /* @__PURE__ */ dt.define();
function ds(t, e, n = {}) {
let r = {};
for (let i of t)
for (let a of Object.keys(i)) {
let o = i[a], s = r[a];
if (s === void 0)
r[a] = o;
else if (!(s === o || o === void 0)) if (Object.hasOwnProperty.call(n, a))
r[a] = n[a](s, o);
else
throw new Error("Config merge conflict for field " + a);
}
for (let i in e)
r[i] === void 0 && (r[i] = e[i]);
return r;
}
class Cf {
/**
Compare this value with another value. Used when comparing
rangesets. The default implementation compares by identity.
Unless you are only creating a fixed number of unique instances
of your value type, it is a good idea to implement this
properly.
*/
eq(e) {
return this == e;
}
/**
Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
*/
range(e, n = e) {
return cM.create(e, n, this);
}
}
Cf.prototype.startSide = Cf.prototype.endSide = 0;
Cf.prototype.point = !1;
Cf.prototype.mapMode = yr.TrackDel;
let cM = class mae {
constructor(e, n, r) {
this.from = e, this.to = n, this.value = r;
}
/**
@internal
*/
static create(e, n, r) {
return new mae(e, n, r);
}
};
function fM(t, e) {
return t.from - e.from || t.value.startSide - e.value.startSide;
}
class n4 {
constructor(e, n, r, i) {
this.from = e, this.to = n, this.value = r, this.maxPoint = i;
}
get length() {
return this.to[this.to.length - 1];
}
// Find the index of the given position and side. Use the ranges'
// `from` pos when `end == false`, `to` when `end == true`.
findIndex(e, n, r, i = 0) {
let a = r ? this.to : this.from;
for (let o = i, s = a.length; ; ) {
if (o == s)
return o;
let l = o + s >> 1, u = a[l] - e || (r ? this.value[l].endSide : this.value[l].startSide) - n;
if (l == o)
return u >= 0 ? o : s;
u >= 0 ? s = l : o = l + 1;
}
}
between(e, n, r, i) {
for (let a = this.findIndex(n, -1e9, !0), o = this.findIndex(r, 1e9, !1, a); a < o; a++)
if (i(this.from[a] + e, this.to[a] + e, this.value[a]) === !1)
return !1;
}
map(e, n) {
let r = [], i = [], a = [], o = -1, s = -1;
for (let l = 0; l < this.value.length; l++) {
let u = this.value[l], c = this.from[l] + e, f = this.to[l] + e, d, h;
if (c == f) {
let p = n.mapPos(c, u.startSide, u.mapMode);
if (p == null || (d = h = p, u.startSide != u.endSide && (h = n.mapPos(c, u.endSide), h < d)))
continue;
} else if (d = n.mapPos(c, u.startSide), h = n.mapPos(f, u.endSide), d > h || d == h && u.startSide > 0 && u.endSide <= 0)
continue;
(h - d || u.endSide - u.startSide) < 0 || (o < 0 && (o = d), u.point && (s = Math.max(s, h - d)), r.push(u), i.push(d - o), a.push(h - o));
}
return { mapped: r.length ? new n4(i, a, r, s) : null, pos: o };
}
}
class Vt {
constructor(e, n, r, i) {
this.chunkPos = e, this.chunk = n, this.nextLayer = r, this.maxPoint = i;
}
/**
@internal
*/
static create(e, n, r, i) {
return new Vt(e, n, r, i);
}
/**
@internal
*/
get length() {
let e = this.chunk.length - 1;
return e < 0 ? 0 : Math.max(this.chunkEnd(e), this.nextLayer.length);
}
/**
The number of ranges in the set.
*/
get size() {
if (this.isEmpty)
return 0;
let e = this.nextLayer.size;
for (let n of this.chunk)
e += n.value.length;
return e;
}
/**
@internal
*/
chunkEnd(e) {
return this.chunkPos[e] + this.chunk[e].length;
}
/**
Update the range set, optionally adding new ranges or filtering
out existing ones.
(Note: The type parameter is just there as a kludge to work
around TypeScript variance issues that prevented `RangeSet`
from being a subtype of `RangeSet` when `X` is a subtype of
`Y`.)
*/
update(e) {
let { add: n = [], sort: r = !1, filterFrom: i = 0, filterTo: a = this.length } = e, o = e.filter;
if (n.length == 0 && !o)
return this;
if (r && (n = n.slice().sort(fM)), this.isEmpty)
return n.length ? Vt.of(n) : this;
let s = new yae(this, null, -1).goto(0), l = 0, u = [], c = new hu();
for (; s.value || l < n.length; )
if (l < n.length && (s.from - n[l].from || s.startSide - n[l].value.startSide) >= 0) {
let f = n[l++];
c.addInner(f.from, f.to, f.value) || u.push(f);
} else s.rangeIndex == 1 && s.chunkIndex < this.chunk.length && (l == n.length || this.chunkEnd(s.chunkIndex) < n[l].from) && (!o || i > this.chunkEnd(s.chunkIndex) || a < this.chunkPos[s.chunkIndex]) && c.addChunk(this.chunkPos[s.chunkIndex], this.chunk[s.chunkIndex]) ? s.nextChunk() : ((!o || i > s.to || a < s.from || o(s.from, s.to, s.value)) && (c.addInner(s.from, s.to, s.value) || u.push(cM.create(s.from, s.to, s.value))), s.next());
return c.finishInner(this.nextLayer.isEmpty && !u.length ? Vt.empty : this.nextLayer.update({ add: u, filter: o, filterFrom: i, filterTo: a }));
}
/**
Map this range set through a set of changes, return the new set.
*/
map(e) {
if (e.empty || this.isEmpty)
return this;
let n = [], r = [], i = -1;
for (let o = 0; o < this.chunk.length; o++) {
let s = this.chunkPos[o], l = this.chunk[o], u = e.touchesRange(s, s + l.length);
if (u === !1)
i = Math.max(i, l.maxPoint), n.push(l), r.push(e.mapPos(s));
else if (u === !0) {
let { mapped: c, pos: f } = l.map(s, e);
c && (i = Math.max(i, c.maxPoint), n.push(c), r.push(f));
}
}
let a = this.nextLayer.map(e);
return n.length == 0 ? a : new Vt(r, n, a || Vt.empty, i);
}
/**
Iterate over the ranges that touch the region `from` to `to`,
calling `f` for each. There is no guarantee that the ranges will
be reported in any specific order. When the callback returns
`false`, iteration stops.
*/
between(e, n, r) {
if (!this.isEmpty) {
for (let i = 0; i < this.chunk.length; i++) {
let a = this.chunkPos[i], o = this.chunk[i];
if (n >= a && e <= a + o.length && o.between(a, e - a, n - a, r) === !1)
return;
}
this.nextLayer.between(e, n, r);
}
}
/**
Iterate over the ranges in this set, in order, including all
ranges that end at or after `from`.
*/
iter(e = 0) {
return Xm.from([this]).goto(e);
}
/**
@internal
*/
get isEmpty() {
return this.nextLayer == this;
}
/**
Iterate over the ranges in a collection of sets, in order,
starting from `from`.
*/
static iter(e, n = 0) {
return Xm.from(e).goto(n);
}
/**
Iterate over two groups of sets, calling methods on `comparator`
to notify it of possible differences.
*/
static compare(e, n, r, i, a = -1) {
let o = e.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= a), s = n.filter((f) => f.maxPoint > 0 || !f.isEmpty && f.maxPoint >= a), l = TH(o, s, r), u = new Dv(o, l, a), c = new Dv(s, l, a);
r.iterGaps((f, d, h) => PH(u, f, c, d, h, i)), r.empty && r.length == 0 && PH(u, 0, c, 0, 0, i);
}
/**
Compare the contents of two groups of range sets, returning true
if they are equivalent in the given range.
*/
static eq(e, n, r = 0, i) {
i == null && (i = 999999999);
let a = e.filter((c) => !c.isEmpty && n.indexOf(c) < 0), o = n.filter((c) => !c.isEmpty && e.indexOf(c) < 0);
if (a.length != o.length)
return !1;
if (!a.length)
return !0;
let s = TH(a, o), l = new Dv(a, s, 0).goto(r), u = new Dv(o, s, 0).goto(r);
for (; ; ) {
if (l.to != u.to || !dM(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point)))
return !1;
if (l.to > i)
return !0;
l.next(), u.next();
}
}
/**
Iterate over a group of range sets at the same time, notifying
the iterator about the ranges covering every given piece of
content. Returns the open count (see
[`SpanIterator.span`](https://codemirror.net/6/docs/ref/#state.SpanIterator.span)) at the end
of the iteration.
*/
static spans(e, n, r, i, a = -1) {
let o = new Dv(e, null, a).goto(n), s = n, l = o.openStart;
for (; ; ) {
let u = Math.min(o.to, r);
if (o.point) {
let c = o.activeForPoint(o.to), f = o.pointFrom < n ? c.length + 1 : o.point.startSide < 0 ? c.length : Math.min(c.length, l);
i.point(s, u, o.point, c, f, o.pointRank), l = Math.min(o.openEnd(u), c.length);
} else u > s && (i.span(s, u, o.active, l), l = o.openEnd(u));
if (o.to > r)
return l + (o.point && o.to > r ? 1 : 0);
s = o.to, o.next();
}
}
/**
Create a range set for the given range or array of ranges. By
default, this expects the ranges to be _sorted_ (by start
position and, if two start at the same position,
`value.startSide`). You can pass `true` as second argument to
cause the method to sort them.
*/
static of(e, n = !1) {
let r = new hu();
for (let i of e instanceof cM ? [e] : n ? Iat(e) : e)
r.add(i.from, i.to, i.value);
return r.finish();
}
/**
Join an array of range sets into a single set.
*/
static join(e) {
if (!e.length)
return Vt.empty;
let n = e[e.length - 1];
for (let r = e.length - 2; r >= 0; r--)
for (let i = e[r]; i != Vt.empty; i = i.nextLayer)
n = new Vt(i.chunkPos, i.chunk, n, Math.max(i.maxPoint, n.maxPoint));
return n;
}
}
Vt.empty = /* @__PURE__ */ new Vt([], [], null, -1);
function Iat(t) {
if (t.length > 1)
for (let e = t[0], n = 1; n < t.length; n++) {
let r = t[n];
if (fM(e, r) > 0)
return t.slice().sort(fM);
e = r;
}
return t;
}
Vt.empty.nextLayer = Vt.empty;
class hu {
finishChunk(e) {
this.chunks.push(new n4(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
}
/**
Create an empty builder.
*/
constructor() {
this.chunks = [], this.chunkPos = [], this.chunkStart = -1, this.last = null, this.lastFrom = -1e9, this.lastTo = -1e9, this.from = [], this.to = [], this.value = [], this.maxPoint = -1, this.setMaxPoint = -1, this.nextLayer = null;
}
/**
Add a range. Ranges should be added in sorted (by `from` and
`value.startSide`) order.
*/
add(e, n, r) {
this.addInner(e, n, r) || (this.nextLayer || (this.nextLayer = new hu())).add(e, n, r);
}
/**
@internal
*/
addInner(e, n, r) {
let i = e - this.lastTo || r.startSide - this.last.endSide;
if (i <= 0 && (e - this.lastFrom || r.startSide - this.last.startSide) < 0)
throw new Error("Ranges must be added sorted by `from` position and `startSide`");
return i < 0 ? !1 : (this.from.length == 250 && this.finishChunk(!0), this.chunkStart < 0 && (this.chunkStart = e), this.from.push(e - this.chunkStart), this.to.push(n - this.chunkStart), this.last = r, this.lastFrom = e, this.lastTo = n, this.value.push(r), r.point && (this.maxPoint = Math.max(this.maxPoint, n - e)), !0);
}
/**
@internal
*/
addChunk(e, n) {
if ((e - this.lastTo || n.value[0].startSide - this.last.endSide) < 0)
return !1;
this.from.length && this.finishChunk(!0), this.setMaxPoint = Math.max(this.setMaxPoint, n.maxPoint), this.chunks.push(n), this.chunkPos.push(e);
let r = n.value.length - 1;
return this.last = n.value[r], this.lastFrom = n.from[r] + e, this.lastTo = n.to[r] + e, !0;
}
/**
Finish the range set. Returns the new set. The builder can't be
used anymore after this has been called.
*/
finish() {
return this.finishInner(Vt.empty);
}
/**
@internal
*/
finishInner(e) {
if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
return e;
let n = Vt.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
return this.from = null, n;
}
}
function TH(t, e, n) {
let r = /* @__PURE__ */ new Map();
for (let a of t)
for (let o = 0; o < a.chunk.length; o++)
a.chunk[o].maxPoint <= 0 && r.set(a.chunk[o], a.chunkPos[o]);
let i = /* @__PURE__ */ new Set();
for (let a of e)
for (let o = 0; o < a.chunk.length; o++) {
let s = r.get(a.chunk[o]);
s != null && (n ? n.mapPos(s) : s) == a.chunkPos[o] && !(n != null && n.touchesRange(s, s + a.chunk[o].length)) && i.add(a.chunk[o]);
}
return i;
}
class yae {
constructor(e, n, r, i = 0) {
this.layer = e, this.skip = n, this.minPoint = r, this.rank = i;
}
get startSide() {
return this.value ? this.value.startSide : 0;
}
get endSide() {
return this.value ? this.value.endSide : 0;
}
goto(e, n = -1e9) {
return this.chunkIndex = this.rangeIndex = 0, this.gotoInner(e, n, !1), this;
}
gotoInner(e, n, r) {
for (; this.chunkIndex < this.layer.chunk.length; ) {
let i = this.layer.chunk[this.chunkIndex];
if (!(this.skip && this.skip.has(i) || this.layer.chunkEnd(this.chunkIndex) < e || i.maxPoint < this.minPoint))
break;
this.chunkIndex++, r = !1;
}
if (this.chunkIndex < this.layer.chunk.length) {
let i = this.layer.chunk[this.chunkIndex].findIndex(e - this.layer.chunkPos[this.chunkIndex], n, !0);
(!r || this.rangeIndex < i) && this.setRangeIndex(i);
}
this.next();
}
forward(e, n) {
(this.to - e || this.endSide - n) < 0 && this.gotoInner(e, n, !0);
}
next() {
for (; ; )
if (this.chunkIndex == this.layer.chunk.length) {
this.from = this.to = 1e9, this.value = null;
break;
} else {
let e = this.layer.chunkPos[this.chunkIndex], n = this.layer.chunk[this.chunkIndex], r = e + n.from[this.rangeIndex];
if (this.from = r, this.to = e + n.to[this.rangeIndex], this.value = n.value[this.rangeIndex], this.setRangeIndex(this.rangeIndex + 1), this.minPoint < 0 || this.value.point && this.to - this.from >= this.minPoint)
break;
}
}
setRangeIndex(e) {
if (e == this.layer.chunk[this.chunkIndex].value.length) {
if (this.chunkIndex++, this.skip)
for (; this.chunkIndex < this.layer.chunk.length && this.skip.has(this.layer.chunk[this.chunkIndex]); )
this.chunkIndex++;
this.rangeIndex = 0;
} else
this.rangeIndex = e;
}
nextChunk() {
this.chunkIndex++, this.rangeIndex = 0, this.next();
}
compare(e) {
return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide;
}
}
class Xm {
constructor(e) {
this.heap = e;
}
static from(e, n = null, r = -1) {
let i = [];
for (let a = 0; a < e.length; a++)
for (let o = e[a]; !o.isEmpty; o = o.nextLayer)
o.maxPoint >= r && i.push(new yae(o, n, r, a));
return i.length == 1 ? i[0] : new Xm(i);
}
get startSide() {
return this.value ? this.value.startSide : 0;
}
goto(e, n = -1e9) {
for (let r of this.heap)
r.goto(e, n);
for (let r = this.heap.length >> 1; r >= 0; r--)
p$(this.heap, r);
return this.next(), this;
}
forward(e, n) {
for (let r of this.heap)
r.forward(e, n);
for (let r = this.heap.length >> 1; r >= 0; r--)
p$(this.heap, r);
(this.to - e || this.value.endSide - n) < 0 && this.next();
}
next() {
if (this.heap.length == 0)
this.from = this.to = 1e9, this.value = null, this.rank = -1;
else {
let e = this.heap[0];
this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), p$(this.heap, 0);
}
}
}
function p$(t, e) {
for (let n = t[e]; ; ) {
let r = (e << 1) + 1;
if (r >= t.length)
break;
let i = t[r];
if (r + 1 < t.length && i.compare(t[r + 1]) >= 0 && (i = t[r + 1], r++), n.compare(i) < 0)
break;
t[r] = n, t[e] = i, e = r;
}
}
class Dv {
constructor(e, n, r) {
this.minPoint = r, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Xm.from(e, n, r);
}
goto(e, n = -1e9) {
return this.cursor.goto(e, n), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = n, this.openStart = -1, this.next(), this;
}
forward(e, n) {
for (; this.minActive > -1 && (this.activeTo[this.minActive] - e || this.active[this.minActive].endSide - n) < 0; )
this.removeActive(this.minActive);
this.cursor.forward(e, n);
}
removeActive(e) {
Hb(this.active, e), Hb(this.activeTo, e), Hb(this.activeRank, e), this.minActive = $H(this.active, this.activeTo);
}
addActive(e) {
let n = 0, { value: r, to: i, rank: a } = this.cursor;
for (; n < this.activeRank.length && (a - this.activeRank[n] || i - this.activeTo[n]) > 0; )
n++;
Gb(this.active, n, r), Gb(this.activeTo, n, i), Gb(this.activeRank, n, a), e && Gb(e, n, this.cursor.from), this.minActive = $H(this.active, this.activeTo);
}
// After calling this, if `this.point` != null, the next range is a
// point. Otherwise, it's a regular range, covered by `this.active`.
next() {
let e = this.to, n = this.point;
this.point = null;
let r = this.openStart < 0 ? [] : null;
for (; ; ) {
let i = this.minActive;
if (i > -1 && (this.activeTo[i] - this.cursor.from || this.active[i].endSide - this.cursor.startSide) < 0) {
if (this.activeTo[i] > e) {
this.to = this.activeTo[i], this.endSide = this.active[i].endSide;
break;
}
this.removeActive(i), r && Hb(r, i);
} else if (this.cursor.value)
if (this.cursor.from > e) {
this.to = this.cursor.from, this.endSide = this.cursor.startSide;
break;
} else {
let a = this.cursor.value;
if (!a.point)
this.addActive(r), this.cursor.next();
else if (n && this.cursor.to == this.to && this.cursor.from < this.cursor.to)
this.cursor.next();
else {
this.point = a, this.pointFrom = this.cursor.from, this.pointRank = this.cursor.rank, this.to = this.cursor.to, this.endSide = a.endSide, this.cursor.next(), this.forward(this.to, this.endSide);
break;
}
}
else {
this.to = this.endSide = 1e9;
break;
}
}
if (r) {
this.openStart = 0;
for (let i = r.length - 1; i >= 0 && r[i] < e; i--)
this.openStart++;
}
}
activeForPoint(e) {
if (!this.active.length)
return this.active;
let n = [];
for (let r = this.active.length - 1; r >= 0 && !(this.activeRank[r] < this.pointRank); r--)
(this.activeTo[r] > e || this.activeTo[r] == e && this.active[r].endSide >= this.point.endSide) && n.push(this.active[r]);
return n.reverse();
}
openEnd(e) {
let n = 0;
for (let r = this.activeTo.length - 1; r >= 0 && this.activeTo[r] > e; r--)
n++;
return n;
}
}
function PH(t, e, n, r, i, a) {
t.goto(e), n.goto(r);
let o = r + i, s = r, l = r - e;
for (; ; ) {
let u = t.to + l - n.to || t.endSide - n.endSide, c = u < 0 ? t.to + l : n.to, f = Math.min(c, o);
if (t.point || n.point ? t.point && n.point && (t.point == n.point || t.point.eq(n.point)) && dM(t.activeForPoint(t.to), n.activeForPoint(n.to)) || a.comparePoint(s, f, t.point, n.point) : f > s && !dM(t.active, n.active) && a.compareRange(s, f, t.active, n.active), c > o)
break;
s = c, u <= 0 && t.next(), u >= 0 && n.next();
}
}
function dM(t, e) {
if (t.length != e.length)
return !1;
for (let n = 0; n < t.length; n++)
if (t[n] != e[n] && !t[n].eq(e[n]))
return !1;
return !0;
}
function Hb(t, e) {
for (let n = e, r = t.length - 1; n < r; n++)
t[n] = t[n + 1];
t.pop();
}
function Gb(t, e, n) {
for (let r = t.length - 1; r >= e; r--)
t[r + 1] = t[r];
t[e] = n;
}
function $H(t, e) {
let n = -1, r = 1e9;
for (let i = 0; i < e.length; i++)
(e[i] - r || t[i].endSide - t[n].endSide) < 0 && (n = i, r = e[i]);
return n;
}
function zp(t, e, n = t.length) {
let r = 0;
for (let i = 0; i < n; )
t.charCodeAt(i) == 9 ? (r += e - r % e, i++) : (r++, i = _r(t, i));
return r;
}
function hM(t, e, n, r) {
for (let i = 0, a = 0; ; ) {
if (a >= e)
return i;
if (i == t.length)
break;
a += t.charCodeAt(i) == 9 ? n - a % n : 1, i = _r(t, i);
}
return r === !0 ? -1 : t.length;
}
const pM = "ͼ", AH = typeof Symbol > "u" ? "__" + pM : Symbol.for(pM), vM = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), EH = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
class pu {
// :: (Object