k-view-vue
Version:
Wei Design - A Vue.js 3 UI library, web3-vue-demo
1,585 lines (1,583 loc) • 742 kB
JavaScript
import { defineComponent as on, openBlock as Gf, createElementBlock as Jg, shallowRef as nu, inject as Pi, toRefs as j1, computed as Gr, unref as Ge, watch as Ii, watchEffect as Sc, onMounted as q1, onUnmounted as Z1, h as K1, nextTick as ty, getCurrentInstance as Q1, createBlock as J1, normalizeProps as tw, guardReactiveProps as ew, ref as rw, Fragment as nw, createVNode as iw, normalizeClass as aw, createTextVNode as ow } from "vue";
const Hf = "K", sw = on({
name: "Box"
}), xo = /* @__PURE__ */ on({
...sw,
setup(e) {
return (t, r) => (Gf(), Jg("div", null, "\u6211\u662FKBox\u7EC4\u4EF6"));
}
});
xo.install = function(e) {
return e.component(`${Hf}${xo.name}`, xo), e;
};
/*! *****************************************************************************
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 Ml = function(e, t) {
return Ml = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
r.__proto__ = n;
} || function(r, n) {
for (var i in n)
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
}, Ml(e, t);
};
function N(e, t) {
if (typeof t != "function" && t !== null)
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
Ml(e, t);
function r() {
this.constructor = e;
}
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
}
var uw = function() {
function e() {
this.firefox = !1, this.ie = !1, this.edge = !1, this.newEdge = !1, this.weChat = !1;
}
return e;
}(), lw = function() {
function e() {
this.browser = new uw(), 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 e;
}(), Hr = new lw();
typeof wx == "object" && typeof wx.getSystemInfoSync == "function" ? (Hr.wxa = !0, Hr.touchEventsSupported = !0) : typeof document > "u" && typeof self < "u" ? Hr.worker = !0 : typeof navigator > "u" ? (Hr.node = !0, Hr.svgSupported = !0) : fw(navigator.userAgent, Hr);
function fw(e, t) {
var r = t.browser, n = e.match(/Firefox\/([\d.]+)/), i = e.match(/MSIE\s([\d.]+)/) || e.match(/Trident\/.+?rv:(([\d.]+))/), a = e.match(/Edge?\/([\d.]+)/), o = /micromessenger/i.test(e);
n && (r.firefox = !0, r.version = n[1]), i && (r.ie = !0, r.version = i[1]), a && (r.edge = !0, r.version = a[1], r.newEdge = +a[1].split(".")[0] > 18), o && (r.weChat = !0), t.svgSupported = typeof SVGRect < "u", t.touchEventsSupported = "ontouchstart" in window && !r.ie && !r.edge, t.pointerEventsSupported = "onpointerdown" in window && (r.edge || r.ie && +r.version >= 11), t.domSupported = typeof document < "u";
var s = document.documentElement.style;
t.transform3dSupported = (r.ie && "transition" in s || r.edge || "WebKitCSSMatrix" in window && "m11" in new WebKitCSSMatrix() || "MozPerspective" in s) && !("OTransition" in s), t.transformSupported = t.transform3dSupported || r.ie && +r.version >= 9;
}
const q = Hr;
var Wf = 12, ey = "sans-serif", vr = Wf + "px " + ey, hw = 20, cw = 100, vw = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";
function dw(e) {
var t = {};
if (typeof JSON > "u")
return t;
for (var r = 0; r < e.length; r++) {
var n = String.fromCharCode(r + 32), i = (e.charCodeAt(r) - hw) / cw;
t[n] = i;
}
return t;
}
var pw = dw(vw), sn = {
createCanvas: function() {
return typeof document < "u" && document.createElement("canvas");
},
measureText: function() {
var e, t;
return function(r, n) {
if (!e) {
var i = sn.createCanvas();
e = i && i.getContext("2d");
}
if (e)
return t !== n && (t = e.font = n || vr), e.measureText(r);
r = r || "", n = n || vr;
var a = /^([0-9]*?)px$/.exec(n), o = +(a && a[1]) || Wf, s = 0;
if (n.indexOf("mono") >= 0)
s = o * r.length;
else
for (var u = 0; u < r.length; u++) {
var l = pw[r[u]];
s += l == null ? o : l * o;
}
return { width: s };
};
}(),
loadImage: function(e, t, r) {
var n = new Image();
return n.onload = t, n.onerror = r, n.src = e, n;
}
}, ry = Zn([
"Function",
"RegExp",
"Date",
"Error",
"CanvasGradient",
"CanvasPattern",
"Image",
"Canvas"
], function(e, t) {
return e["[object " + t + "]"] = !0, e;
}, {}), ny = Zn([
"Int8",
"Uint8",
"Uint8Clamped",
"Int16",
"Uint16",
"Int32",
"Uint32",
"Float32",
"Float64"
], function(e, t) {
return e["[object " + t + "Array]"] = !0, e;
}, {}), qn = Object.prototype.toString, _s = Array.prototype, gw = _s.forEach, yw = _s.filter, Uf = _s.slice, _w = _s.map, bc = function() {
}.constructor, Na = bc ? bc.prototype : null, Yf = "__proto__", mw = 2311;
function iy() {
return mw++;
}
function We() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
typeof console < "u" && console.error.apply(console, e);
}
function K(e) {
if (e == null || typeof e != "object")
return e;
var t = e, r = qn.call(e);
if (r === "[object Array]") {
if (!zi(e)) {
t = [];
for (var n = 0, i = e.length; n < i; n++)
t[n] = K(e[n]);
}
} else if (ny[r]) {
if (!zi(e)) {
var a = e.constructor;
if (a.from)
t = a.from(e);
else {
t = new a(e.length);
for (var n = 0, i = e.length; n < i; n++)
t[n] = e[n];
}
}
} else if (!ry[r] && !zi(e) && !ra(e)) {
t = {};
for (var o in e)
e.hasOwnProperty(o) && o !== Yf && (t[o] = K(e[o]));
}
return t;
}
function et(e, t, r) {
if (!V(t) || !V(e))
return r ? K(t) : e;
for (var n in t)
if (t.hasOwnProperty(n) && n !== Yf) {
var i = e[n], a = t[n];
V(a) && V(i) && !k(a) && !k(i) && !ra(a) && !ra(i) && !xc(a) && !xc(i) && !zi(a) && !zi(i) ? et(i, a, r) : (r || !(n in e)) && (e[n] = K(t[n]));
}
return e;
}
function R(e, t) {
if (Object.assign)
Object.assign(e, t);
else
for (var r in t)
t.hasOwnProperty(r) && r !== Yf && (e[r] = t[r]);
return e;
}
function st(e, t, r) {
for (var n = Q(t), i = 0; i < n.length; i++) {
var a = n[i];
(r ? t[a] != null : e[a] == null) && (e[a] = t[a]);
}
return e;
}
sn.createCanvas;
function nt(e, t) {
if (e) {
if (e.indexOf)
return e.indexOf(t);
for (var r = 0, n = e.length; r < n; r++)
if (e[r] === t)
return r;
}
return -1;
}
function ww(e, t) {
var r = e.prototype;
function n() {
}
n.prototype = t.prototype, e.prototype = new n();
for (var i in r)
r.hasOwnProperty(i) && (e.prototype[i] = r[i]);
e.prototype.constructor = e, e.superClass = t;
}
function Le(e, t, r) {
if (e = "prototype" in e ? e.prototype : e, t = "prototype" in t ? t.prototype : t, Object.getOwnPropertyNames)
for (var n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++) {
var a = n[i];
a !== "constructor" && (r ? t[a] != null : e[a] == null) && (e[a] = t[a]);
}
else
st(e, t, r);
}
function Ht(e) {
return !e || typeof e == "string" ? !1 : typeof e.length == "number";
}
function T(e, t, r) {
if (!!(e && t))
if (e.forEach && e.forEach === gw)
e.forEach(t, r);
else if (e.length === +e.length)
for (var n = 0, i = e.length; n < i; n++)
t.call(r, e[n], n, e);
else
for (var a in e)
e.hasOwnProperty(a) && t.call(r, e[a], a, e);
}
function F(e, t, r) {
if (!e)
return [];
if (!t)
return Xf(e);
if (e.map && e.map === _w)
return e.map(t, r);
for (var n = [], i = 0, a = e.length; i < a; i++)
n.push(t.call(r, e[i], i, e));
return n;
}
function Zn(e, t, r, n) {
if (!!(e && t)) {
for (var i = 0, a = e.length; i < a; i++)
r = t.call(n, r, e[i], i, e);
return r;
}
}
function Nt(e, t, r) {
if (!e)
return [];
if (!t)
return Xf(e);
if (e.filter && e.filter === yw)
return e.filter(t, r);
for (var n = [], i = 0, a = e.length; i < a; i++)
t.call(r, e[i], i, e) && n.push(e[i]);
return n;
}
function Q(e) {
if (!e)
return [];
if (Object.keys)
return Object.keys(e);
var t = [];
for (var r in e)
e.hasOwnProperty(r) && t.push(r);
return t;
}
function Sw(e, t) {
for (var r = [], n = 2; n < arguments.length; n++)
r[n - 2] = arguments[n];
return function() {
return e.apply(t, r.concat(Uf.call(arguments)));
};
}
var ht = Na && W(Na.bind) ? Na.call.bind(Na.bind) : Sw;
function _t(e) {
for (var t = [], r = 1; r < arguments.length; r++)
t[r - 1] = arguments[r];
return function() {
return e.apply(this, t.concat(Uf.call(arguments)));
};
}
function k(e) {
return Array.isArray ? Array.isArray(e) : qn.call(e) === "[object Array]";
}
function W(e) {
return typeof e == "function";
}
function $(e) {
return typeof e == "string";
}
function zo(e) {
return qn.call(e) === "[object String]";
}
function vt(e) {
return typeof e == "number";
}
function V(e) {
var t = typeof e;
return t === "function" || !!e && t === "object";
}
function xc(e) {
return !!ry[qn.call(e)];
}
function Wt(e) {
return !!ny[qn.call(e)];
}
function ra(e) {
return typeof e == "object" && typeof e.nodeType == "number" && typeof e.ownerDocument == "object";
}
function ms(e) {
return e.colorStops != null;
}
function bw(e) {
return e.image != null;
}
function xw(e) {
return qn.call(e) === "[object RegExp]";
}
function na(e) {
return e !== e;
}
function Jr() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var r = 0, n = e.length; r < n; r++)
if (e[r] != null)
return e[r];
}
function Z(e, t) {
return e != null ? e : t;
}
function Rn(e, t, r) {
return e != null ? e : t != null ? t : r;
}
function Xf(e) {
for (var t = [], r = 1; r < arguments.length; r++)
t[r - 1] = arguments[r];
return Uf.apply(e, t);
}
function ay(e) {
if (typeof e == "number")
return [e, e, e, e];
var t = e.length;
return t === 2 ? [e[0], e[1], e[0], e[1]] : t === 3 ? [e[0], e[1], e[2], e[1]] : e;
}
function Y(e, t) {
if (!e)
throw new Error(t);
}
function Ae(e) {
return e == null ? null : typeof e.trim == "function" ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
}
var oy = "__ec_primitive__";
function Go(e) {
e[oy] = !0;
}
function zi(e) {
return e[oy];
}
var Tw = function() {
function e(t) {
this.data = {};
var r = k(t);
this.data = {};
var n = this;
t instanceof e ? t.each(i) : t && T(t, i);
function i(a, o) {
r ? n.set(a, o) : n.set(o, a);
}
}
return e.prototype.get = function(t) {
return this.data.hasOwnProperty(t) ? this.data[t] : null;
}, e.prototype.set = function(t, r) {
return this.data[t] = r;
}, e.prototype.each = function(t, r) {
for (var n in this.data)
this.data.hasOwnProperty(n) && t.call(r, this.data[n], n);
}, e.prototype.keys = function() {
return Q(this.data);
}, e.prototype.removeKey = function(t) {
delete this.data[t];
}, e;
}();
function X(e) {
return new Tw(e);
}
function Cw(e, t) {
for (var r = new e.constructor(e.length + t.length), n = 0; n < e.length; n++)
r[n] = e[n];
for (var i = e.length, n = 0; n < t.length; n++)
r[n + i] = t[n];
return r;
}
function ws(e, t) {
var r;
if (Object.create)
r = Object.create(e);
else {
var n = function() {
};
n.prototype = e, r = new n();
}
return t && R(r, t), r;
}
function sy(e) {
var t = e.style;
t.webkitUserSelect = "none", t.userSelect = "none", t.webkitTapHighlightColor = "rgba(0,0,0,0)", t["-webkit-touch-callout"] = "none";
}
function zn(e, t) {
return e.hasOwnProperty(t);
}
function Gt() {
}
var To = 180 / Math.PI;
function Kn(e, t) {
return e == null && (e = 0), t == null && (t = 0), [e, t];
}
function Dw(e) {
return [e[0], e[1]];
}
function Tc(e, t, r) {
return e[0] = t[0] + r[0], e[1] = t[1] + r[1], e;
}
function Aw(e, t, r) {
return e[0] = t[0] - r[0], e[1] = t[1] - r[1], e;
}
function Mw(e) {
return Math.sqrt(Ew(e));
}
function Ew(e) {
return e[0] * e[0] + e[1] * e[1];
}
function iu(e, t, r) {
return e[0] = t[0] * r, e[1] = t[1] * r, e;
}
function Pw(e, t) {
var r = Mw(t);
return r === 0 ? (e[0] = 0, e[1] = 0) : (e[0] = t[0] / r, e[1] = t[1] / r), e;
}
function El(e, t) {
return Math.sqrt((e[0] - t[0]) * (e[0] - t[0]) + (e[1] - t[1]) * (e[1] - t[1]));
}
var Iw = El;
function Lw(e, t) {
return (e[0] - t[0]) * (e[0] - t[0]) + (e[1] - t[1]) * (e[1] - t[1]);
}
var Nn = Lw;
function le(e, t, r) {
var n = t[0], i = t[1];
return e[0] = r[0] * n + r[2] * i + r[4], e[1] = r[1] * n + r[3] * i + r[5], e;
}
function En(e, t, r) {
return e[0] = Math.min(t[0], r[0]), e[1] = Math.min(t[1], r[1]), e;
}
function Pn(e, t, r) {
return e[0] = Math.max(t[0], r[0]), e[1] = Math.max(t[1], r[1]), e;
}
var hn = function() {
function e(t, r) {
this.target = t, this.topTarget = r && r.topTarget;
}
return e;
}(), Ow = function() {
function e(t) {
this.handler = t, t.on("mousedown", this._dragStart, this), t.on("mousemove", this._drag, this), t.on("mouseup", this._dragEnd, this);
}
return e.prototype._dragStart = function(t) {
for (var r = t.target; r && !r.draggable; )
r = r.parent || r.__hostTarget;
r && (this._draggingTarget = r, r.dragging = !0, this._x = t.offsetX, this._y = t.offsetY, this.handler.dispatchToElement(new hn(r, t), "dragstart", t.event));
}, e.prototype._drag = function(t) {
var r = this._draggingTarget;
if (r) {
var n = t.offsetX, i = t.offsetY, a = n - this._x, o = i - this._y;
this._x = n, this._y = i, r.drift(a, o, t), this.handler.dispatchToElement(new hn(r, t), "drag", t.event);
var s = this.handler.findHover(n, i, r).target, u = this._dropTarget;
this._dropTarget = s, r !== s && (u && s !== u && this.handler.dispatchToElement(new hn(u, t), "dragleave", t.event), s && s !== u && this.handler.dispatchToElement(new hn(s, t), "dragenter", t.event));
}
}, e.prototype._dragEnd = function(t) {
var r = this._draggingTarget;
r && (r.dragging = !1), this.handler.dispatchToElement(new hn(r, t), "dragend", t.event), this._dropTarget && this.handler.dispatchToElement(new hn(this._dropTarget, t), "drop", t.event), this._draggingTarget = null, this._dropTarget = null;
}, e;
}();
const Rw = Ow;
var Nw = function() {
function e(t) {
t && (this._$eventProcessor = t);
}
return e.prototype.on = function(t, r, n, i) {
this._$handlers || (this._$handlers = {});
var a = this._$handlers;
if (typeof r == "function" && (i = n, n = r, r = null), !n || !t)
return this;
var o = this._$eventProcessor;
r != null && o && o.normalizeQuery && (r = o.normalizeQuery(r)), a[t] || (a[t] = []);
for (var s = 0; s < a[t].length; s++)
if (a[t][s].h === n)
return this;
var u = {
h: n,
query: r,
ctx: i || this,
callAtLast: n.zrEventfulCallAtLast
}, l = a[t].length - 1, f = a[t][l];
return f && f.callAtLast ? a[t].splice(l, 0, u) : a[t].push(u), this;
}, e.prototype.isSilent = function(t) {
var r = this._$handlers;
return !r || !r[t] || !r[t].length;
}, e.prototype.off = function(t, r) {
var n = this._$handlers;
if (!n)
return this;
if (!t)
return this._$handlers = {}, this;
if (r) {
if (n[t]) {
for (var i = [], a = 0, o = n[t].length; a < o; a++)
n[t][a].h !== r && i.push(n[t][a]);
n[t] = i;
}
n[t] && n[t].length === 0 && delete n[t];
} else
delete n[t];
return this;
}, e.prototype.trigger = function(t) {
for (var r = [], n = 1; n < arguments.length; n++)
r[n - 1] = arguments[n];
if (!this._$handlers)
return this;
var i = this._$handlers[t], a = this._$eventProcessor;
if (i)
for (var o = r.length, s = i.length, u = 0; u < s; u++) {
var l = i[u];
if (!(a && a.filter && l.query != null && !a.filter(t, l.query)))
switch (o) {
case 0:
l.h.call(l.ctx);
break;
case 1:
l.h.call(l.ctx, r[0]);
break;
case 2:
l.h.call(l.ctx, r[0], r[1]);
break;
default:
l.h.apply(l.ctx, r);
break;
}
}
return a && a.afterTrigger && a.afterTrigger(t), this;
}, e.prototype.triggerWithContext = function(t) {
for (var r = [], n = 1; n < arguments.length; n++)
r[n - 1] = arguments[n];
if (!this._$handlers)
return this;
var i = this._$handlers[t], a = this._$eventProcessor;
if (i)
for (var o = r.length, s = r[o - 1], u = i.length, l = 0; l < u; l++) {
var f = i[l];
if (!(a && a.filter && f.query != null && !a.filter(t, f.query)))
switch (o) {
case 0:
f.h.call(s);
break;
case 1:
f.h.call(s, r[0]);
break;
case 2:
f.h.call(s, r[0], r[1]);
break;
default:
f.h.apply(s, r.slice(1, o - 1));
break;
}
}
return a && a.afterTrigger && a.afterTrigger(t), this;
}, e;
}();
const Oe = Nw;
var kw = Math.log(2);
function Pl(e, t, r, n, i, a) {
var o = n + "-" + i, s = e.length;
if (a.hasOwnProperty(o))
return a[o];
if (t === 1) {
var u = Math.round(Math.log((1 << s) - 1 & ~i) / kw);
return e[r][u];
}
for (var l = n | 1 << r, f = r + 1; n & 1 << f; )
f++;
for (var h = 0, v = 0, c = 0; v < s; v++) {
var d = 1 << v;
d & i || (h += (c % 2 ? -1 : 1) * e[r][v] * Pl(e, t - 1, f, l, i | d, a), c++);
}
return a[o] = h, h;
}
function Cc(e, t) {
var r = [
[e[0], e[1], 1, 0, 0, 0, -t[0] * e[0], -t[0] * e[1]],
[0, 0, 0, e[0], e[1], 1, -t[1] * e[0], -t[1] * e[1]],
[e[2], e[3], 1, 0, 0, 0, -t[2] * e[2], -t[2] * e[3]],
[0, 0, 0, e[2], e[3], 1, -t[3] * e[2], -t[3] * e[3]],
[e[4], e[5], 1, 0, 0, 0, -t[4] * e[4], -t[4] * e[5]],
[0, 0, 0, e[4], e[5], 1, -t[5] * e[4], -t[5] * e[5]],
[e[6], e[7], 1, 0, 0, 0, -t[6] * e[6], -t[6] * e[7]],
[0, 0, 0, e[6], e[7], 1, -t[7] * e[6], -t[7] * e[7]]
], n = {}, i = Pl(r, 8, 0, 0, 0, n);
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) * Pl(r, 7, o === 0 ? 1 : 0, 1 << o, 1 << s, n) / i * t[o];
return function(u, l, f) {
var h = l * a[6] + f * a[7] + 1;
u[0] = (l * a[0] + f * a[1] + a[2]) / h, u[1] = (l * a[3] + f * a[4] + a[5]) / h;
};
}
}
var Dc = "___zrEVENTSAVED", au = [];
function Bw(e, t, r, n, i) {
return Il(au, t, n, i, !0) && Il(e, r, au[0], au[1]);
}
function Il(e, t, r, n, i) {
if (t.getBoundingClientRect && q.domSupported && !uy(t)) {
var a = t[Dc] || (t[Dc] = {}), o = $w(t, a), s = Fw(o, a, i);
if (s)
return s(e, r, n), !0;
}
return !1;
}
function $w(e, t) {
var r = t.markers;
if (r)
return r;
r = t.markers = [];
for (var n = ["left", "right"], i = ["top", "bottom"], a = 0; a < 4; a++) {
var o = document.createElement("div"), s = o.style, u = a % 2, l = (a >> 1) % 2;
s.cssText = [
"position: absolute",
"visibility: hidden",
"padding: 0",
"margin: 0",
"border-width: 0",
"user-select: none",
"width:0",
"height:0",
n[u] + ":0",
i[l] + ":0",
n[1 - u] + ":auto",
i[1 - l] + ":auto",
""
].join("!important;"), e.appendChild(o), r.push(o);
}
return r;
}
function Fw(e, t, r) {
for (var n = r ? "invTrans" : "trans", i = t[n], a = t.srcCoords, o = [], s = [], u = !0, l = 0; l < 4; l++) {
var f = e[l].getBoundingClientRect(), h = 2 * l, v = f.left, c = f.top;
o.push(v, c), u = u && a && v === a[h] && c === a[h + 1], s.push(e[l].offsetLeft, e[l].offsetTop);
}
return u && i ? i : (t.srcCoords = o, t[n] = r ? Cc(s, o) : Cc(o, s));
}
function uy(e) {
return e.nodeName.toUpperCase() === "CANVAS";
}
var Vw = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, ou = [], zw = q.browser.firefox && +q.browser.version.split(".")[0] < 39;
function Ll(e, t, r, n) {
return r = r || {}, n ? Ac(e, t, r) : zw && t.layerX != null && t.layerX !== t.offsetX ? (r.zrX = t.layerX, r.zrY = t.layerY) : t.offsetX != null ? (r.zrX = t.offsetX, r.zrY = t.offsetY) : Ac(e, t, r), r;
}
function Ac(e, t, r) {
if (q.domSupported && e.getBoundingClientRect) {
var n = t.clientX, i = t.clientY;
if (uy(e)) {
var a = e.getBoundingClientRect();
r.zrX = n - a.left, r.zrY = i - a.top;
return;
} else if (Il(ou, e, n, i)) {
r.zrX = ou[0], r.zrY = ou[1];
return;
}
}
r.zrX = r.zrY = 0;
}
function jf(e) {
return e || window.event;
}
function ee(e, t, r) {
if (t = jf(t), t.zrX != null)
return t;
var n = t.type, i = n && n.indexOf("touch") >= 0;
if (i) {
var o = n !== "touchend" ? t.targetTouches[0] : t.changedTouches[0];
o && Ll(e, o, t, r);
} else {
Ll(e, t, t, r);
var a = Gw(t);
t.zrDelta = a ? a / 120 : -(t.detail || 0) / 3;
}
var s = t.button;
return t.which == null && s !== void 0 && Vw.test(t.type) && (t.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0), t;
}
function Gw(e) {
var t = e.wheelDelta;
if (t)
return t;
var r = e.deltaX, n = e.deltaY;
if (r == null || n == null)
return t;
var i = Math.abs(n !== 0 ? n : r), a = n > 0 ? -1 : n < 0 ? 1 : r > 0 ? -1 : 1;
return 3 * i * a;
}
function Hw(e, t, r, n) {
e.addEventListener(t, r, n);
}
function Ww(e, t, r, n) {
e.removeEventListener(t, r, n);
}
var ly = function(e) {
e.preventDefault(), e.stopPropagation(), e.cancelBubble = !0;
}, Uw = function() {
function e() {
this._track = [];
}
return e.prototype.recognize = function(t, r, n) {
return this._doTrack(t, r, n), this._recognize(t);
}, e.prototype.clear = function() {
return this._track.length = 0, this;
}, e.prototype._doTrack = function(t, r, n) {
var i = t.touches;
if (!!i) {
for (var a = {
points: [],
touches: [],
target: r,
event: t
}, o = 0, s = i.length; o < s; o++) {
var u = i[o], l = Ll(n, u, {});
a.points.push([l.zrX, l.zrY]), a.touches.push(u);
}
this._track.push(a);
}
}, e.prototype._recognize = function(t) {
for (var r in su)
if (su.hasOwnProperty(r)) {
var n = su[r](this._track, t);
if (n)
return n;
}
}, e;
}();
function Mc(e) {
var t = e[1][0] - e[0][0], r = e[1][1] - e[0][1];
return Math.sqrt(t * t + r * r);
}
function Yw(e) {
return [
(e[0][0] + e[1][0]) / 2,
(e[0][1] + e[1][1]) / 2
];
}
var su = {
pinch: function(e, t) {
var r = e.length;
if (!!r) {
var n = (e[r - 1] || {}).points, i = (e[r - 2] || {}).points || n;
if (i && i.length > 1 && n && n.length > 1) {
var a = Mc(n) / Mc(i);
!isFinite(a) && (a = 1), t.pinchScale = a;
var o = Yw(n);
return t.pinchX = o[0], t.pinchY = o[1], {
type: "pinch",
target: e[0].target,
event: t
};
}
}
}
}, fy = "silent";
function Xw(e, t, r) {
return {
type: e,
event: r,
target: t.target,
topTarget: t.topTarget,
cancelBubble: !1,
offsetX: r.zrX,
offsetY: r.zrY,
gestureEvent: r.gestureEvent,
pinchX: r.pinchX,
pinchY: r.pinchY,
pinchScale: r.pinchScale,
wheelDelta: r.zrDelta,
zrByTouch: r.zrByTouch,
which: r.which,
stop: jw
};
}
function jw() {
ly(this.event);
}
var qw = function(e) {
N(t, e);
function t() {
var r = e !== null && e.apply(this, arguments) || this;
return r.handler = null, r;
}
return t.prototype.dispose = function() {
}, t.prototype.setCursor = function() {
}, t;
}(Oe), ui = function() {
function e(t, r) {
this.x = t, this.y = r;
}
return e;
}(), Zw = [
"click",
"dblclick",
"mousewheel",
"mouseout",
"mouseup",
"mousedown",
"mousemove",
"contextmenu"
], hy = function(e) {
N(t, e);
function t(r, n, i, a) {
var o = e.call(this) || this;
return o._hovered = new ui(0, 0), o.storage = r, o.painter = n, o.painterRoot = a, i = i || new qw(), o.proxy = null, o.setHandlerProxy(i), o._draggingMgr = new Rw(o), o;
}
return t.prototype.setHandlerProxy = function(r) {
this.proxy && this.proxy.dispose(), r && (T(Zw, function(n) {
r.on && r.on(n, this[n], this);
}, this), r.handler = this), this.proxy = r;
}, t.prototype.mousemove = function(r) {
var n = r.zrX, i = r.zrY, a = cy(this, n, i), o = this._hovered, s = o.target;
s && !s.__zr && (o = this.findHover(o.x, o.y), s = o.target);
var u = this._hovered = a ? new ui(n, i) : this.findHover(n, i), l = u.target, f = this.proxy;
f.setCursor && f.setCursor(l ? l.cursor : "default"), s && l !== s && this.dispatchToElement(o, "mouseout", r), this.dispatchToElement(u, "mousemove", r), l && l !== s && this.dispatchToElement(u, "mouseover", r);
}, t.prototype.mouseout = function(r) {
var n = r.zrEventControl;
n !== "only_globalout" && this.dispatchToElement(this._hovered, "mouseout", r), n !== "no_globalout" && this.trigger("globalout", { type: "globalout", event: r });
}, t.prototype.resize = function() {
this._hovered = new ui(0, 0);
}, t.prototype.dispatch = function(r, n) {
var i = this[r];
i && i.call(this, n);
}, t.prototype.dispose = function() {
this.proxy.dispose(), this.storage = null, this.proxy = null, this.painter = null;
}, t.prototype.setCursorStyle = function(r) {
var n = this.proxy;
n.setCursor && n.setCursor(r);
}, t.prototype.dispatchToElement = function(r, n, i) {
r = r || {};
var a = r.target;
if (!(a && a.silent)) {
for (var o = "on" + n, s = Xw(n, r, i); a && (a[o] && (s.cancelBubble = !!a[o].call(a, s)), a.trigger(n, s), a = a.__hostTarget ? a.__hostTarget : a.parent, !s.cancelBubble); )
;
s.cancelBubble || (this.trigger(n, s), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(u) {
typeof u[o] == "function" && u[o].call(u, s), u.trigger && u.trigger(n, s);
}));
}
}, t.prototype.findHover = function(r, n, i) {
for (var a = this.storage.getDisplayList(), o = new ui(r, n), s = a.length - 1; s >= 0; s--) {
var u = void 0;
if (a[s] !== i && !a[s].ignore && (u = Kw(a[s], r, n)) && (!o.topTarget && (o.topTarget = a[s]), u !== fy)) {
o.target = a[s];
break;
}
}
return o;
}, t.prototype.processGesture = function(r, n) {
this._gestureMgr || (this._gestureMgr = new Uw());
var i = this._gestureMgr;
n === "start" && i.clear();
var a = i.recognize(r, this.findHover(r.zrX, r.zrY, null).target, this.proxy.dom);
if (n === "end" && i.clear(), a) {
var o = a.type;
r.gestureEvent = o;
var s = new ui();
s.target = a.target, this.dispatchToElement(s, o, a.event);
}
}, t;
}(Oe);
T(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], function(e) {
hy.prototype[e] = function(t) {
var r = t.zrX, n = t.zrY, i = cy(this, r, n), a, o;
if ((e !== "mouseup" || !i) && (a = this.findHover(r, n), o = a.target), e === "mousedown")
this._downEl = o, this._downPoint = [t.zrX, t.zrY], this._upEl = o;
else if (e === "mouseup")
this._upEl = o;
else if (e === "click") {
if (this._downEl !== this._upEl || !this._downPoint || Iw(this._downPoint, [t.zrX, t.zrY]) > 4)
return;
this._downPoint = null;
}
this.dispatchToElement(a, e, t);
};
});
function Kw(e, t, r) {
if (e[e.rectHover ? "rectContain" : "contain"](t, r)) {
for (var n = e, i = void 0, a = !1; n; ) {
if (n.ignoreClip && (a = !0), !a) {
var o = n.getClipPath();
if (o && !o.contain(t, r))
return !1;
n.silent && (i = !0);
}
var s = n.__hostTarget;
n = s || n.parent;
}
return i ? fy : !0;
}
return !1;
}
function cy(e, t, r) {
var n = e.painter;
return t < 0 || t > n.getWidth() || r < 0 || r > n.getHeight();
}
const Qw = hy;
var vy = 32, li = 7;
function Jw(e) {
for (var t = 0; e >= vy; )
t |= e & 1, e >>= 1;
return e + t;
}
function Ec(e, t, r, n) {
var i = t + 1;
if (i === r)
return 1;
if (n(e[i++], e[t]) < 0) {
for (; i < r && n(e[i], e[i - 1]) < 0; )
i++;
tS(e, t, i);
} else
for (; i < r && n(e[i], e[i - 1]) >= 0; )
i++;
return i - t;
}
function tS(e, t, r) {
for (r--; t < r; ) {
var n = e[t];
e[t++] = e[r], e[r--] = n;
}
}
function Pc(e, t, r, n, i) {
for (n === t && n++; n < r; n++) {
for (var a = e[n], o = t, s = n, u; o < s; )
u = o + s >>> 1, i(a, e[u]) < 0 ? s = u : o = u + 1;
var l = n - o;
switch (l) {
case 3:
e[o + 3] = e[o + 2];
case 2:
e[o + 2] = e[o + 1];
case 1:
e[o + 1] = e[o];
break;
default:
for (; l > 0; )
e[o + l] = e[o + l - 1], l--;
}
e[o] = a;
}
}
function uu(e, t, r, n, i, a) {
var o = 0, s = 0, u = 1;
if (a(e, t[r + i]) > 0) {
for (s = n - i; u < s && a(e, t[r + i + u]) > 0; )
o = u, u = (u << 1) + 1, u <= 0 && (u = s);
u > s && (u = s), o += i, u += i;
} else {
for (s = i + 1; u < s && a(e, t[r + i - u]) <= 0; )
o = u, u = (u << 1) + 1, u <= 0 && (u = s);
u > s && (u = s);
var l = o;
o = i - u, u = i - l;
}
for (o++; o < u; ) {
var f = o + (u - o >>> 1);
a(e, t[r + f]) > 0 ? o = f + 1 : u = f;
}
return u;
}
function lu(e, t, r, n, i, a) {
var o = 0, s = 0, u = 1;
if (a(e, t[r + i]) < 0) {
for (s = i + 1; u < s && a(e, t[r + i - u]) < 0; )
o = u, u = (u << 1) + 1, u <= 0 && (u = s);
u > s && (u = s);
var l = o;
o = i - u, u = i - l;
} else {
for (s = n - i; u < s && a(e, t[r + i + u]) >= 0; )
o = u, u = (u << 1) + 1, u <= 0 && (u = s);
u > s && (u = s), o += i, u += i;
}
for (o++; o < u; ) {
var f = o + (u - o >>> 1);
a(e, t[r + f]) < 0 ? u = f : o = f + 1;
}
return u;
}
function eS(e, t) {
var r = li, n, i, a = 0;
e.length;
var o = [];
n = [], i = [];
function s(c, d) {
n[a] = c, i[a] = d, a += 1;
}
function u() {
for (; a > 1; ) {
var c = a - 2;
if (c >= 1 && i[c - 1] <= i[c] + i[c + 1] || c >= 2 && i[c - 2] <= i[c] + i[c - 1])
i[c - 1] < i[c + 1] && c--;
else if (i[c] > i[c + 1])
break;
f(c);
}
}
function l() {
for (; a > 1; ) {
var c = a - 2;
c > 0 && i[c - 1] < i[c + 1] && c--, f(c);
}
}
function f(c) {
var d = n[c], g = i[c], p = n[c + 1], y = i[c + 1];
i[c] = g + y, c === a - 3 && (n[c + 1] = n[c + 2], i[c + 1] = i[c + 2]), a--;
var _ = lu(e[p], e, d, g, 0, t);
d += _, g -= _, g !== 0 && (y = uu(e[d + g - 1], e, p, y, y - 1, t), y !== 0 && (g <= y ? h(d, g, p, y) : v(d, g, p, y)));
}
function h(c, d, g, p) {
var y = 0;
for (y = 0; y < d; y++)
o[y] = e[c + y];
var _ = 0, m = g, w = c;
if (e[w++] = e[m++], --p === 0) {
for (y = 0; y < d; y++)
e[w + y] = o[_ + y];
return;
}
if (d === 1) {
for (y = 0; y < p; y++)
e[w + y] = e[m + y];
e[w + p] = o[_];
return;
}
for (var b = r, S, x, C; ; ) {
S = 0, x = 0, C = !1;
do
if (t(e[m], o[_]) < 0) {
if (e[w++] = e[m++], x++, S = 0, --p === 0) {
C = !0;
break;
}
} else if (e[w++] = o[_++], S++, x = 0, --d === 1) {
C = !0;
break;
}
while ((S | x) < b);
if (C)
break;
do {
if (S = lu(e[m], o, _, d, 0, t), S !== 0) {
for (y = 0; y < S; y++)
e[w + y] = o[_ + y];
if (w += S, _ += S, d -= S, d <= 1) {
C = !0;
break;
}
}
if (e[w++] = e[m++], --p === 0) {
C = !0;
break;
}
if (x = uu(o[_], e, m, p, 0, t), x !== 0) {
for (y = 0; y < x; y++)
e[w + y] = e[m + y];
if (w += x, m += x, p -= x, p === 0) {
C = !0;
break;
}
}
if (e[w++] = o[_++], --d === 1) {
C = !0;
break;
}
b--;
} while (S >= li || x >= li);
if (C)
break;
b < 0 && (b = 0), b += 2;
}
if (r = b, r < 1 && (r = 1), d === 1) {
for (y = 0; y < p; y++)
e[w + y] = e[m + y];
e[w + p] = o[_];
} else {
if (d === 0)
throw new Error();
for (y = 0; y < d; y++)
e[w + y] = o[_ + y];
}
}
function v(c, d, g, p) {
var y = 0;
for (y = 0; y < p; y++)
o[y] = e[g + y];
var _ = c + d - 1, m = p - 1, w = g + p - 1, b = 0, S = 0;
if (e[w--] = e[_--], --d === 0) {
for (b = w - (p - 1), y = 0; y < p; y++)
e[b + y] = o[y];
return;
}
if (p === 1) {
for (w -= d, _ -= d, S = w + 1, b = _ + 1, y = d - 1; y >= 0; y--)
e[S + y] = e[b + y];
e[w] = o[m];
return;
}
for (var x = r; ; ) {
var C = 0, A = 0, M = !1;
do
if (t(o[m], e[_]) < 0) {
if (e[w--] = e[_--], C++, A = 0, --d === 0) {
M = !0;
break;
}
} else if (e[w--] = o[m--], A++, C = 0, --p === 1) {
M = !0;
break;
}
while ((C | A) < x);
if (M)
break;
do {
if (C = d - lu(o[m], e, c, d, d - 1, t), C !== 0) {
for (w -= C, _ -= C, d -= C, S = w + 1, b = _ + 1, y = C - 1; y >= 0; y--)
e[S + y] = e[b + y];
if (d === 0) {
M = !0;
break;
}
}
if (e[w--] = o[m--], --p === 1) {
M = !0;
break;
}
if (A = p - uu(e[_], o, 0, p, p - 1, t), A !== 0) {
for (w -= A, m -= A, p -= A, S = w + 1, b = m + 1, y = 0; y < A; y++)
e[S + y] = o[b + y];
if (p <= 1) {
M = !0;
break;
}
}
if (e[w--] = e[_--], --d === 0) {
M = !0;
break;
}
x--;
} while (C >= li || A >= li);
if (M)
break;
x < 0 && (x = 0), x += 2;
}
if (r = x, r < 1 && (r = 1), p === 1) {
for (w -= d, _ -= d, S = w + 1, b = _ + 1, y = d - 1; y >= 0; y--)
e[S + y] = e[b + y];
e[w] = o[m];
} else {
if (p === 0)
throw new Error();
for (b = w - (p - 1), y = 0; y < p; y++)
e[b + y] = o[y];
}
}
return {
mergeRuns: u,
forceMergeRuns: l,
pushRun: s
};
}
function Co(e, t, r, n) {
r || (r = 0), n || (n = e.length);
var i = n - r;
if (!(i < 2)) {
var a = 0;
if (i < vy) {
a = Ec(e, r, n, t), Pc(e, r, n, r + a, t);
return;
}
var o = eS(e, t), s = Jw(i);
do {
if (a = Ec(e, r, n, t), a < s) {
var u = i;
u > s && (u = s), Pc(e, r, r + u, r + a, t), a = u;
}
o.pushRun(r, a), o.mergeRuns(), i -= a, r += a;
} while (i !== 0);
o.forceMergeRuns();
}
}
var jt = 1, Li = 2, Dn = 4, Ic = !1;
function fu() {
Ic || (Ic = !0, console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"));
}
function Lc(e, t) {
return e.zlevel === t.zlevel ? e.z === t.z ? e.z2 - t.z2 : e.z - t.z : e.zlevel - t.zlevel;
}
var rS = function() {
function e() {
this._roots = [], this._displayList = [], this._displayListLen = 0, this.displayableSortFunc = Lc;
}
return e.prototype.traverse = function(t, r) {
for (var n = 0; n < this._roots.length; n++)
this._roots[n].traverse(t, r);
}, e.prototype.getDisplayList = function(t, r) {
r = r || !1;
var n = this._displayList;
return (t || !n.length) && this.updateDisplayList(r), n;
}, e.prototype.updateDisplayList = function(t) {
this._displayListLen = 0;
for (var r = this._roots, n = this._displayList, i = 0, a = r.length; i < a; i++)
this._updateAndAddDisplayable(r[i], null, t);
n.length = this._displayListLen, Co(n, Lc);
}, e.prototype._updateAndAddDisplayable = function(t, r, n) {
if (!(t.ignore && !n)) {
t.beforeUpdate(), t.update(), t.afterUpdate();
var i = t.getClipPath();
if (t.ignoreClip)
r = null;
else if (i) {
r ? r = r.slice() : r = [];
for (var a = i, o = t; a; )
a.parent = o, a.updateTransform(), r.push(a), o = a, a = a.getClipPath();
}
if (t.childrenRef) {
for (var s = t.childrenRef(), u = 0; u < s.length; u++) {
var l = s[u];
t.__dirty && (l.__dirty |= jt), this._updateAndAddDisplayable(l, r, n);
}
t.__dirty = 0;
} else {
var f = t;
r && r.length ? f.__clipPaths = r : f.__clipPaths && f.__clipPaths.length > 0 && (f.__clipPaths = []), isNaN(f.z) && (fu(), f.z = 0), isNaN(f.z2) && (fu(), f.z2 = 0), isNaN(f.zlevel) && (fu(), f.zlevel = 0), this._displayList[this._displayListLen++] = f;
}
var h = t.getDecalElement && t.getDecalElement();
h && this._updateAndAddDisplayable(h, r, n);
var v = t.getTextGuideLine();
v && this._updateAndAddDisplayable(v, r, n);
var c = t.getTextContent();
c && this._updateAndAddDisplayable(c, r, n);
}
}, e.prototype.addRoot = function(t) {
t.__zr && t.__zr.storage === this || this._roots.push(t);
}, e.prototype.delRoot = function(t) {
if (t instanceof Array) {
for (var r = 0, n = t.length; r < n; r++)
this.delRoot(t[r]);
return;
}
var i = nt(this._roots, t);
i >= 0 && this._roots.splice(i, 1);
}, e.prototype.delAllRoots = function() {
this._roots = [], this._displayList = [], this._displayListLen = 0;
}, e.prototype.getRoots = function() {
return this._roots;
}, e.prototype.dispose = function() {
this._displayList = null, this._roots = null;
}, e;
}();
const nS = rS;
var dy;
dy = q.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(e) {
return setTimeout(e, 16);
};
const Ol = dy;
var Do = {
linear: function(e) {
return e;
},
quadraticIn: function(e) {
return e * e;
},
quadraticOut: function(e) {
return e * (2 - e);
},
quadraticInOut: function(e) {
return (e *= 2) < 1 ? 0.5 * e * e : -0.5 * (--e * (e - 2) - 1);
},
cubicIn: function(e) {
return e * e * e;
},
cubicOut: function(e) {
return --e * e * e + 1;
},
cubicInOut: function(e) {
return (e *= 2) < 1 ? 0.5 * e * e * e : 0.5 * ((e -= 2) * e * e + 2);
},
quarticIn: function(e) {
return e * e * e * e;
},
quarticOut: function(e) {
return 1 - --e * e * e * e;
},
quarticInOut: function(e) {
return (e *= 2) < 1 ? 0.5 * e * e * e * e : -0.5 * ((e -= 2) * e * e * e - 2);
},
quinticIn: function(e) {
return e * e * e * e * e;
},
quinticOut: function(e) {
return --e * e * e * e * e + 1;
},
quinticInOut: function(e) {
return (e *= 2) < 1 ? 0.5 * e * e * e * e * e : 0.5 * ((e -= 2) * e * e * e * e + 2);
},
sinusoidalIn: function(e) {
return 1 - Math.cos(e * Math.PI / 2);
},
sinusoidalOut: function(e) {
return Math.sin(e * Math.PI / 2);
},
sinusoidalInOut: function(e) {
return 0.5 * (1 - Math.cos(Math.PI * e));
},
exponentialIn: function(e) {
return e === 0 ? 0 : Math.pow(1024, e - 1);
},
exponentialOut: function(e) {
return e === 1 ? 1 : 1 - Math.pow(2, -10 * e);
},
exponentialInOut: function(e) {
return e === 0 ? 0 : e === 1 ? 1 : (e *= 2) < 1 ? 0.5 * Math.pow(1024, e - 1) : 0.5 * (-Math.pow(2, -10 * (e - 1)) + 2);
},
circularIn: function(e) {
return 1 - Math.sqrt(1 - e * e);
},
circularOut: function(e) {
return Math.sqrt(1 - --e * e);
},
circularInOut: function(e) {
return (e *= 2) < 1 ? -0.5 * (Math.sqrt(1 - e * e) - 1) : 0.5 * (Math.sqrt(1 - (e -= 2) * e) + 1);
},
elasticIn: function(e) {
var t, r = 0.1, n = 0.4;
return e === 0 ? 0 : e === 1 ? 1 : (!r || r < 1 ? (r = 1, t = n / 4) : t = n * Math.asin(1 / r) / (2 * Math.PI), -(r * Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * (2 * Math.PI) / n)));
},
elasticOut: function(e) {
var t, r = 0.1, n = 0.4;
return e === 0 ? 0 : e === 1 ? 1 : (!r || r < 1 ? (r = 1, t = n / 4) : t = n * Math.asin(1 / r) / (2 * Math.PI), r * Math.pow(2, -10 * e) * Math.sin((e - t) * (2 * Math.PI) / n) + 1);
},
elasticInOut: function(e) {
var t, r = 0.1, n = 0.4;
return e === 0 ? 0 : e === 1 ? 1 : (!r || r < 1 ? (r = 1, t = n / 4) : t = n * Math.asin(1 / r) / (2 * Math.PI), (e *= 2) < 1 ? -0.5 * (r * Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * (2 * Math.PI) / n)) : r * Math.pow(2, -10 * (e -= 1)) * Math.sin((e - t) * (2 * Math.PI) / n) * 0.5 + 1);
},
backIn: function(e) {
var t = 1.70158;
return e * e * ((t + 1) * e - t);
},
backOut: function(e) {
var t = 1.70158;
return --e * e * ((t + 1) * e + t) + 1;
},
backInOut: function(e) {
var t = 2.5949095;
return (e *= 2) < 1 ? 0.5 * (e * e * ((t + 1) * e - t)) : 0.5 * ((e -= 2) * e * ((t + 1) * e + t) + 2);
},
bounceIn: function(e) {
return 1 - Do.bounceOut(1 - e);
},
bounceOut: function(e) {
return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375;
},
bounceInOut: function(e) {
return e < 0.5 ? Do.bounceIn(e * 2) * 0.5 : Do.bounceOut(e * 2 - 1) * 0.5 + 0.5;
}
};
const py = Do;
var ka = Math.pow, hr = Math.sqrt, Ho = 1e-8, gy = 1e-4, Oc = hr(3), Ba = 1 / 3, De = Kn(), ie = Kn(), kn = Kn();
function ur(e) {
return e > -Ho && e < Ho;
}
function yy(e) {
return e > Ho || e < -Ho;
}
function Ct(e, t, r, n, i) {
var a = 1 - i;
return a * a * (a * e + 3 * i * t) + i * i * (i * n + 3 * a * r);
}
function Rc(e, t, r, n, i) {
var a = 1 - i;
return 3 * (((t - e) * a + 2 * (r - t) * i) * a + (n - r) * i * i);
}
function _y(e, t, r, n, i, a) {
var o = n + 3 * (t - r) - e, s = 3 * (r - t * 2 + e), u = 3 * (t - e), l = e - i, f = s * s - 3 * o * u, h = s * u - 9 * o * l, v = u * u - 3 * s * l, c = 0;
if (ur(f) && ur(h))
if (ur(s))
a[0] = 0;
else {
var d = -u / s;
d >= 0 && d <= 1 && (a[c++] = d);
}
else {
var g = h * h - 4 * f * v;
if (ur(g)) {
var p = h / f, d = -s / o + p, y = -p / 2;
d >= 0 && d <= 1 && (a[c++] = d), y >= 0 && y <= 1 && (a[c++] = y);
} else if (g > 0) {
var _ = hr(g), m = f * s + 1.5 * o * (-h + _), w = f * s + 1.5 * o * (-h - _);
m < 0 ? m = -ka(-m, Ba) : m = ka(m, Ba), w < 0 ? w = -ka(-w, Ba) : w = ka(w, Ba);
var d = (-s - (m + w)) / (3 * o);
d >= 0 && d <= 1 && (a[c++] = d);
} else {
var b = (2 * f * s - 3 * o * h) / (2 * hr(f * f * f)), S = Math.acos(b) / 3, x = hr(f), C = Math.cos(S), d = (-s - 2 * x * C) / (3 * o), y = (-s + x * (C + Oc * Math.sin(S))) / (3 * o), A = (-s + x * (C - Oc * Math.sin(S))) / (3 * o);
d >= 0 && d <= 1 && (a[c++] = d), y >= 0 && y <= 1 && (a[c++] = y), A >= 0 && A <= 1 && (a[c++] = A);
}
}
return c;
}
function my(e, t, r, n, i) {
var a = 6 * r - 12 * t + 6 * e, o = 9 * t + 3 * n - 3 * e - 9 * r, s = 3 * t - 3 * e, u = 0;
if (ur(o)) {
if (yy(a)) {
var l = -s / a;
l >= 0 && l <= 1 && (i[u++] = l);
}
} else {
var f = a * a - 4 * o * s;
if (ur(f))
i[0] = -a / (2 * o);
else if (f > 0) {
var h = hr(f), l = (-a + h) / (2 * o), v = (-a - h) / (2 * o);
l >= 0 && l <= 1 && (i[u++] = l), v >= 0 && v <= 1 && (i[u++] = v);
}
}
return u;
}
function Wo(e, t, r, n, i, a) {
var o = (t - e) * i + e, s = (r - t) * i + t, u = (n - r) * i + r, l = (s - o) * i + o, f = (u - s) * i + s, h = (f - l) * i + l;
a[0] = e, a[1] = o, a[2] = l, a[3] = h, a[4] = h, a[5] = f, a[6] = u, a[7] = n;
}
function iS(e, t, r, n, i, a, o, s, u, l, f) {
var h, v = 5e-3, c = 1 / 0, d, g, p, y;
De[0] = u, De[1] = l;
for (var _ = 0; _ < 1; _ += 0.05)
ie[0] = Ct(e, r, i, o, _), ie[1] = Ct(t, n, a, s, _), p = Nn(De, ie), p < c && (h = _, c = p);
c = 1 / 0;
for (var m = 0; m < 32 && !(v < gy); m++)
d = h - v, g = h + v, ie[0] = Ct(e, r, i, o, d), ie[1] = Ct(t, n, a, s, d), p = Nn(ie, De), d >= 0 && p < c ? (h = d, c = p) : (kn[0] = Ct(e, r, i, o, g), kn[1] = Ct(t, n, a, s, g), y = Nn(kn, De), g <= 1 && y < c ? (h = g, c = y) : v *= 0.5);
return f && (f[0] = Ct(e, r, i, o, h), f[1] = Ct(t, n, a, s, h)), hr(c);
}
function aS(e, t, r, n, i, a, o, s, u) {
for (var l = e, f = t, h = 0, v = 1 / u, c = 1; c <= u; c++) {
var d = c * v, g = Ct(e, r, i, o, d), p = Ct(t, n, a, s, d), y = g - l, _ = p - f;
h += Math.sqrt(y * y + _ * _), l = g, f = p;
}
return h;
}
function Et(e, t, r, n) {
var i = 1 - n;
return i * (i * e + 2 * n * t) + n * n * r;
}
function Nc(e, t, r, n) {
return 2 * ((1 - n) * (t - e) + n * (r - t));
}
function oS(e, t, r, n, i) {
var a = e - 2 * t + r, o = 2 * (t - e), s = e - n, u = 0;
if (ur(a)) {
if (yy(o)) {
var l = -s / o;
l >= 0 && l <= 1 && (i[u++] = l);
}
} else {
var f = o * o - 4 * a * s;
if (ur(f)) {
var l = -o / (2 * a);
l >= 0 && l <= 1 && (i[u++] = l);
} else if (f > 0) {
var h = hr(f), l = (-o + h) / (2 * a), v = (-o - h) / (2 * a);
l >= 0 && l <= 1 && (i[u++] = l), v >= 0 && v <= 1 && (i[u++] = v);
}
}
return u;
}
function wy(e, t, r) {
var n = e + r - 2 * t;
return n === 0 ? 0.5 : (e - t) / n;
}
function Uo(e, t, r, n, i) {
var a = (t - e) * n + e, o = (r - t) * n + t, s = (o - a) * n + a;
i[0] = e, i[1] = a, i[2] = s, i[3] = s, i[4] = o, i[5] = r;
}
function sS(e, t, r, n, i, a, o, s, u) {
var l, f = 5e-3, h = 1 / 0;
De[0] = o, De[1] = s;
for (var v = 0; v < 1; v += 0.05) {
ie[0] = Et(e, r, i, v), ie[1] = Et(t, n, a, v);
var c = Nn(De, ie);
c < h && (l = v, h = c);
}
h = 1 / 0;
for (var d = 0; d < 32 && !(f < gy); d++) {
var g = l - f, p = l + f;
ie[0] = Et(e, r, i, g), ie[1] = Et(t, n, a, g);
var c = Nn(ie, De);
if (g >= 0 && c < h)
l = g, h = c;
else {
kn[0] = Et(e, r, i, p), kn[1] = Et(t, n, a, p);
var y = Nn(kn, De);
p <= 1 && y < h ? (l = p, h = y) : f *= 0.5;
}
}
return u && (u[0] = Et(e, r, i, l), u[1] = Et(t, n, a, l)), hr(h);
}
function uS(e, t, r, n, i, a, o) {
for (var s = e, u = t, l = 0, f = 1 / o, h = 1; h <= o; h++) {
var v = h * f, c = Et(e, r, i, v), d = Et(t, n, a, v), g = c - s, p = d - u;
l += Math.sqrt(g * g + p * p), s = c, u = d;
}
return l;
}
var lS = /cubic-bezier\(([0-9,\.e ]+)\)/;
function qf(e) {
var t = e && lS.exec(e);
if (t) {
var r = t[1].split(","), n = +Ae(r[0]), i = +Ae(r[1]), a = +Ae(r[2]), o = +Ae(r[3]);
if (isNaN(n + i + a + o))
return;
var s = [];
return function(u) {
return u <= 0 ? 0 : u >= 1 ? 1 : _y(0, n, a, 1, u, s) && Ct(0, i, o, 1, s[0]);
};
}
}
var fS = function() {
function e(t) {
this._inited = !1, this._startTime = 0, this._pausedTime = 0, this._paused = !1, this._life = t.life || 1e3, this._delay = t.delay || 0, this.loop = t.loop || !1, this.onframe = t.onframe || Gt, this.ondestroy = t.ondestroy || Gt, this.onrestart = t.onrestart || Gt, t.easing && this.setEasing(t.easing);
}
return e.prototype.step = function(t, r) {
if (this._inited || (this._startTime = t + this._delay, this._inited = !0), this._paused) {
this._pausedTime += r;
return;
}
var n = this._life, i = t - this._startTime - this._pausedTime, a = i / n;
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 u = i % n;
this._startTime = t - u, this._pausedTime = 0, this.onrestart();
} else
return !0;
return !1;
}, e.prototype.pause = function() {
this._paused = !0;
}, e.prototype.resume = function() {
this._paused = !1;
}, e.prototype.setEasing = function(t) {
this.easing = t, this.easingFunc = W(t) ? t : py[t] || qf(t);
}, e;
}();
const hS = fS;
var Sy = function() {
function e(t) {
this.value = t;
}
return e;
}(), cS = function() {
function e() {
this._len = 0;
}
return e.prototype.insert = function(t) {
var r = new Sy(t);
return this.insertEntry(r), r;
}, e.prototype.insertEntry = function(t) {
this.head ? (this.tail.next = t, t.prev = this.tail, t.next = null, this.tail = t) : this.head = this.tail = t, this._len++;
}, e.prototype.remove = function(t) {
var r =