@easyui/vue-code-editor
Version:
This is a web code editor for CodeMirror
1,475 lines • 1.36 MB
JavaScript
var gA = Object.defineProperty;
var QA = (n, e, t) => e in n ? gA(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
var Gt = (n, e, t) => QA(n, typeof e != "symbol" ? e + "" : e, t);
import { getCurrentInstance as Ia, inject as Bn, ref as Ee, computed as de, unref as W, shallowRef as Ey, watchEffect as Yy, readonly as Vy, getCurrentScope as SA, onScopeDispose as $A, watch as Ze, warn as PA, defineComponent as rt, provide as go, renderSlot as St, onBeforeUnmount as Ur, createElementBlock as sn, openBlock as ze, normalizeStyle as Wy, normalizeClass as Pl, withDirectives as zy, cloneVNode as yA, Fragment as My, Text as bA, Comment as Uy, createVNode as ft, onMounted as hr, createBlock as kn, createCommentVNode as yt, mergeProps as Dp, withCtx as it, nextTick as O0, toRef as $a, Teleport as vA, onBeforeMount as xA, Transition as wA, vShow as TA, onDeactivated as kA, toDisplayString as cs, isVNode as yl, h as RA, createTextVNode as XA, reactive as _A, onUnmounted as CA, createElementVNode as Ip, mergeModels as Bp, useModel as Xc, withModifiers as so, isRef as Ly, createSlots as Gy } from "vue";
const ZA = (n) => ({
install: (e) => {
n.forEach((t) => {
e.component(t.name, t);
});
}
}), Dy = (n) => (n.install = (e) => {
e.component(n.name, n);
}, n), lu = "el", qA = "is-", os = (n, e, t, i, r) => {
let s = `${n}-${e}`;
return t && (s += `-${t}`), i && (s += `__${i}`), r && (s += `--${r}`), s;
}, AA = Symbol("namespaceContextKey"), jp = (n) => {
const e = Ia() ? Bn(AA, Ee(lu)) : Ee(lu);
return de(() => W(e) || lu);
}, Lr = (n, e) => {
const t = jp();
return {
namespace: t,
b: (S = "") => os(t.value, n, S, "", ""),
e: (S) => S ? os(t.value, n, "", S, "") : "",
m: (S) => S ? os(t.value, n, "", "", S) : "",
be: (S, P) => S && P ? os(t.value, n, S, P, "") : "",
em: (S, P) => S && P ? os(t.value, n, "", S, P) : "",
bm: (S, P) => S && P ? os(t.value, n, S, "", P) : "",
bem: (S, P, b) => S && P && b ? os(t.value, n, S, P, b) : "",
is: (S, ...P) => {
const b = P.length >= 1 ? P[0] : !0;
return S && b ? `${qA}${S}` : "";
},
cssVar: (S) => {
const P = {};
for (const b in S)
S[b] && (P[`--${t.value}-${b}`] = S[b]);
return P;
},
cssVarName: (S) => `--${t.value}-${S}`,
cssVarBlock: (S) => {
const P = {};
for (const b in S)
S[b] && (P[`--${t.value}-${n}-${b}`] = S[b]);
return P;
},
cssVarBlockName: (S) => `--${t.value}-${n}-${S}`
};
};
/**
* @vue/shared v3.5.14
* (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 dd = () => {
}, EA = Object.prototype.hasOwnProperty, c0 = (n, e) => EA.call(n, e), oo = Array.isArray, RO = (n) => typeof n == "function", Np = (n) => typeof n == "string", Fp = (n) => n !== null && typeof n == "object";
var YA = typeof global == "object" && global && global.Object === Object && global, VA = typeof self == "object" && self && self.Object === Object && self, Hp = YA || VA || Function("return this")(), Yr = Hp.Symbol, Iy = Object.prototype, WA = Iy.hasOwnProperty, zA = Iy.toString, la = Yr ? Yr.toStringTag : void 0;
function MA(n) {
var e = WA.call(n, la), t = n[la];
try {
n[la] = void 0;
var i = !0;
} catch {
}
var r = zA.call(n);
return i && (e ? n[la] = t : delete n[la]), r;
}
var UA = Object.prototype, LA = UA.toString;
function GA(n) {
return LA.call(n);
}
var DA = "[object Null]", IA = "[object Undefined]", f0 = Yr ? Yr.toStringTag : void 0;
function Kp(n) {
return n == null ? n === void 0 ? IA : DA : f0 && f0 in Object(n) ? MA(n) : GA(n);
}
function Jp(n) {
return n != null && typeof n == "object";
}
var BA = "[object Symbol]";
function em(n) {
return typeof n == "symbol" || Jp(n) && Kp(n) == BA;
}
function jA(n, e) {
for (var t = -1, i = n == null ? 0 : n.length, r = Array(i); ++t < i; )
r[t] = e(n[t], t, n);
return r;
}
var bl = Array.isArray, h0 = Yr ? Yr.prototype : void 0, u0 = h0 ? h0.toString : void 0;
function By(n) {
if (typeof n == "string")
return n;
if (bl(n))
return jA(n, By) + "";
if (em(n))
return u0 ? u0.call(n) : "";
var e = n + "";
return e == "0" && 1 / n == -1 / 0 ? "-0" : e;
}
function _c(n) {
var e = typeof n;
return n != null && (e == "object" || e == "function");
}
function NA(n) {
return n;
}
var FA = "[object AsyncFunction]", HA = "[object Function]", KA = "[object GeneratorFunction]", JA = "[object Proxy]";
function e2(n) {
if (!_c(n))
return !1;
var e = Kp(n);
return e == HA || e == KA || e == FA || e == JA;
}
var Ou = Hp["__core-js_shared__"], d0 = function() {
var n = /[^.]+$/.exec(Ou && Ou.keys && Ou.keys.IE_PROTO || "");
return n ? "Symbol(src)_1." + n : "";
}();
function t2(n) {
return !!d0 && d0 in n;
}
var n2 = Function.prototype, i2 = n2.toString;
function r2(n) {
if (n != null) {
try {
return i2.call(n);
} catch {
}
try {
return n + "";
} catch {
}
}
return "";
}
var s2 = /[\\^$.*+?()[\]{}|]/g, o2 = /^\[object .+?Constructor\]$/, a2 = Function.prototype, l2 = Object.prototype, O2 = a2.toString, c2 = l2.hasOwnProperty, f2 = RegExp(
"^" + O2.call(c2).replace(s2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function h2(n) {
if (!_c(n) || t2(n))
return !1;
var e = e2(n) ? f2 : o2;
return e.test(r2(n));
}
function u2(n, e) {
return n == null ? void 0 : n[e];
}
function tm(n, e) {
var t = u2(n, e);
return h2(t) ? t : void 0;
}
function d2(n, e, t) {
switch (t.length) {
case 0:
return n.call(e);
case 1:
return n.call(e, t[0]);
case 2:
return n.call(e, t[0], t[1]);
case 3:
return n.call(e, t[0], t[1], t[2]);
}
return n.apply(e, t);
}
var p2 = 800, m2 = 16, g2 = Date.now;
function Q2(n) {
var e = 0, t = 0;
return function() {
var i = g2(), r = m2 - (i - t);
if (t = i, r > 0) {
if (++e >= p2)
return arguments[0];
} else
e = 0;
return n.apply(void 0, arguments);
};
}
function S2(n) {
return function() {
return n;
};
}
var Cc = function() {
try {
var n = tm(Object, "defineProperty");
return n({}, "", {}), n;
} catch {
}
}(), $2 = Cc ? function(n, e) {
return Cc(n, "toString", {
configurable: !0,
enumerable: !1,
value: S2(e),
writable: !0
});
} : NA, P2 = Q2($2), y2 = 9007199254740991, b2 = /^(?:0|[1-9]\d*)$/;
function jy(n, e) {
var t = typeof n;
return e = e ?? y2, !!e && (t == "number" || t != "symbol" && b2.test(n)) && n > -1 && n % 1 == 0 && n < e;
}
function v2(n, e, t) {
e == "__proto__" && Cc ? Cc(n, e, {
configurable: !0,
enumerable: !0,
value: t,
writable: !0
}) : n[e] = t;
}
function Ny(n, e) {
return n === e || n !== n && e !== e;
}
var x2 = Object.prototype, w2 = x2.hasOwnProperty;
function T2(n, e, t) {
var i = n[e];
(!(w2.call(n, e) && Ny(i, t)) || t === void 0 && !(e in n)) && v2(n, e, t);
}
var p0 = Math.max;
function k2(n, e, t) {
return e = p0(e === void 0 ? n.length - 1 : e, 0), function() {
for (var i = arguments, r = -1, s = p0(i.length - e, 0), o = Array(s); ++r < s; )
o[r] = i[e + r];
r = -1;
for (var a = Array(e + 1); ++r < e; )
a[r] = i[r];
return a[e] = t(o), d2(n, this, a);
};
}
var R2 = 9007199254740991;
function X2(n) {
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= R2;
}
var _2 = "[object Arguments]";
function m0(n) {
return Jp(n) && Kp(n) == _2;
}
var Fy = Object.prototype, C2 = Fy.hasOwnProperty, Z2 = Fy.propertyIsEnumerable, Hy = m0(/* @__PURE__ */ function() {
return arguments;
}()) ? m0 : function(n) {
return Jp(n) && C2.call(n, "callee") && !Z2.call(n, "callee");
}, q2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, A2 = /^\w*$/;
function E2(n, e) {
if (bl(n))
return !1;
var t = typeof n;
return t == "number" || t == "symbol" || t == "boolean" || n == null || em(n) ? !0 : A2.test(n) || !q2.test(n) || e != null && n in Object(e);
}
var Ba = tm(Object, "create");
function Y2() {
this.__data__ = Ba ? Ba(null) : {}, this.size = 0;
}
function V2(n) {
var e = this.has(n) && delete this.__data__[n];
return this.size -= e ? 1 : 0, e;
}
var W2 = "__lodash_hash_undefined__", z2 = Object.prototype, M2 = z2.hasOwnProperty;
function U2(n) {
var e = this.__data__;
if (Ba) {
var t = e[n];
return t === W2 ? void 0 : t;
}
return M2.call(e, n) ? e[n] : void 0;
}
var L2 = Object.prototype, G2 = L2.hasOwnProperty;
function D2(n) {
var e = this.__data__;
return Ba ? e[n] !== void 0 : G2.call(e, n);
}
var I2 = "__lodash_hash_undefined__";
function B2(n, e) {
var t = this.__data__;
return this.size += this.has(n) ? 0 : 1, t[n] = Ba && e === void 0 ? I2 : e, this;
}
function xs(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var i = n[e];
this.set(i[0], i[1]);
}
}
xs.prototype.clear = Y2;
xs.prototype.delete = V2;
xs.prototype.get = U2;
xs.prototype.has = D2;
xs.prototype.set = B2;
function j2() {
this.__data__ = [], this.size = 0;
}
function Qf(n, e) {
for (var t = n.length; t--; )
if (Ny(n[t][0], e))
return t;
return -1;
}
var N2 = Array.prototype, F2 = N2.splice;
function H2(n) {
var e = this.__data__, t = Qf(e, n);
if (t < 0)
return !1;
var i = e.length - 1;
return t == i ? e.pop() : F2.call(e, t, 1), --this.size, !0;
}
function K2(n) {
var e = this.__data__, t = Qf(e, n);
return t < 0 ? void 0 : e[t][1];
}
function J2(n) {
return Qf(this.__data__, n) > -1;
}
function eE(n, e) {
var t = this.__data__, i = Qf(t, n);
return i < 0 ? (++this.size, t.push([n, e])) : t[i][1] = e, this;
}
function Wo(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var i = n[e];
this.set(i[0], i[1]);
}
}
Wo.prototype.clear = j2;
Wo.prototype.delete = H2;
Wo.prototype.get = K2;
Wo.prototype.has = J2;
Wo.prototype.set = eE;
var tE = tm(Hp, "Map");
function nE() {
this.size = 0, this.__data__ = {
hash: new xs(),
map: new (tE || Wo)(),
string: new xs()
};
}
function iE(n) {
var e = typeof n;
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? n !== "__proto__" : n === null;
}
function Sf(n, e) {
var t = n.__data__;
return iE(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
}
function rE(n) {
var e = Sf(this, n).delete(n);
return this.size -= e ? 1 : 0, e;
}
function sE(n) {
return Sf(this, n).get(n);
}
function oE(n) {
return Sf(this, n).has(n);
}
function aE(n, e) {
var t = Sf(this, n), i = t.size;
return t.set(n, e), this.size += t.size == i ? 0 : 1, this;
}
function Cs(n) {
var e = -1, t = n == null ? 0 : n.length;
for (this.clear(); ++e < t; ) {
var i = n[e];
this.set(i[0], i[1]);
}
}
Cs.prototype.clear = nE;
Cs.prototype.delete = rE;
Cs.prototype.get = sE;
Cs.prototype.has = oE;
Cs.prototype.set = aE;
var lE = "Expected a function";
function nm(n, e) {
if (typeof n != "function" || e != null && typeof e != "function")
throw new TypeError(lE);
var t = function() {
var i = arguments, r = e ? e.apply(this, i) : i[0], s = t.cache;
if (s.has(r))
return s.get(r);
var o = n.apply(this, i);
return t.cache = s.set(r, o) || s, o;
};
return t.cache = new (nm.Cache || Cs)(), t;
}
nm.Cache = Cs;
var OE = 500;
function cE(n) {
var e = nm(n, function(i) {
return t.size === OE && t.clear(), i;
}), t = e.cache;
return e;
}
var fE = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, hE = /\\(\\)?/g, uE = cE(function(n) {
var e = [];
return n.charCodeAt(0) === 46 && e.push(""), n.replace(fE, function(t, i, r, s) {
e.push(r ? s.replace(hE, "$1") : i || t);
}), e;
});
function dE(n) {
return n == null ? "" : By(n);
}
function $f(n, e) {
return bl(n) ? n : E2(n, e) ? [n] : uE(dE(n));
}
function im(n) {
if (typeof n == "string" || em(n))
return n;
var e = n + "";
return e == "0" && 1 / n == -1 / 0 ? "-0" : e;
}
function pE(n, e) {
e = $f(e, n);
for (var t = 0, i = e.length; n != null && t < i; )
n = n[im(e[t++])];
return t && t == i ? n : void 0;
}
function mE(n, e) {
for (var t = -1, i = e.length, r = n.length; ++t < i; )
n[r + t] = e[t];
return n;
}
var g0 = Yr ? Yr.isConcatSpreadable : void 0;
function gE(n) {
return bl(n) || Hy(n) || !!(g0 && n && n[g0]);
}
function QE(n, e, t, i, r) {
var s = -1, o = n.length;
for (t || (t = gE), r || (r = []); ++s < o; ) {
var a = n[s];
t(a) ? mE(r, a) : r[r.length] = a;
}
return r;
}
function SE(n) {
var e = n == null ? 0 : n.length;
return e ? QE(n) : [];
}
function $E(n) {
return P2(k2(n, void 0, SE), n + "");
}
function PE(n, e) {
return n != null && e in Object(n);
}
function yE(n, e, t) {
e = $f(e, n);
for (var i = -1, r = e.length, s = !1; ++i < r; ) {
var o = im(e[i]);
if (!(s = n != null && t(n, o)))
break;
n = n[o];
}
return s || ++i != r ? s : (r = n == null ? 0 : n.length, !!r && X2(r) && jy(o, r) && (bl(n) || Hy(n)));
}
function bE(n, e) {
return n != null && yE(n, e, PE);
}
function pd(n) {
for (var e = -1, t = n == null ? 0 : n.length, i = {}; ++e < t; ) {
var r = n[e];
i[r[0]] = r[1];
}
return i;
}
function rm(n) {
return n == null;
}
function vE(n) {
return n === void 0;
}
function xE(n, e, t, i) {
if (!_c(n))
return n;
e = $f(e, n);
for (var r = -1, s = e.length, o = s - 1, a = n; a != null && ++r < s; ) {
var O = im(e[r]), f = t;
if (O === "__proto__" || O === "constructor" || O === "prototype")
return n;
if (r != o) {
var h = a[O];
f = void 0, f === void 0 && (f = _c(h) ? h : jy(e[r + 1]) ? [] : {});
}
T2(a, O, f), a = a[O];
}
return n;
}
function wE(n, e, t) {
for (var i = -1, r = e.length, s = {}; ++i < r; ) {
var o = e[i], a = pE(n, o);
t(a, o) && xE(s, $f(o, n), a);
}
return s;
}
function TE(n, e) {
return wE(n, e, function(t, i) {
return bE(n, i);
});
}
var kE = $E(function(n, e) {
return n == null ? {} : TE(n, e);
});
const Ky = (n) => typeof n == "boolean", Ar = (n) => typeof n == "number", $s = (n) => typeof Element > "u" ? !1 : n instanceof Element;
var RE = Object.defineProperty, XE = Object.defineProperties, _E = Object.getOwnPropertyDescriptors, Q0 = Object.getOwnPropertySymbols, CE = Object.prototype.hasOwnProperty, ZE = Object.prototype.propertyIsEnumerable, S0 = (n, e, t) => e in n ? RE(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, qE = (n, e) => {
for (var t in e || (e = {}))
CE.call(e, t) && S0(n, t, e[t]);
if (Q0)
for (var t of Q0(e))
ZE.call(e, t) && S0(n, t, e[t]);
return n;
}, AE = (n, e) => XE(n, _E(e));
function Jy(n, e) {
var t;
const i = Ey();
return Yy(() => {
i.value = n();
}, AE(qE({}, e), {
flush: (t = void 0) != null ? t : "sync"
})), Vy(i);
}
var $0;
const oi = typeof window < "u", EE = (n) => typeof n == "string", eb = () => {
}, YE = oi && (($0 = window == null ? void 0 : window.navigator) == null ? void 0 : $0.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
function tb(n) {
return typeof n == "function" ? n() : W(n);
}
function VE(n) {
return n;
}
function nb(n) {
return SA() ? ($A(n), !0) : !1;
}
function ps(n) {
var e;
const t = tb(n);
return (e = t == null ? void 0 : t.$el) != null ? e : t;
}
const ib = oi ? window : void 0;
function cu(...n) {
let e, t, i, r;
if (EE(n[0]) || Array.isArray(n[0]) ? ([t, i, r] = n, e = ib) : [e, t, i, r] = n, !e)
return eb;
Array.isArray(t) || (t = [t]), Array.isArray(i) || (i = [i]);
const s = [], o = () => {
s.forEach((h) => h()), s.length = 0;
}, a = (h, u, p, m) => (h.addEventListener(u, p, m), () => h.removeEventListener(u, p, m)), O = Ze(() => [ps(e), tb(r)], ([h, u]) => {
o(), h && s.push(...t.flatMap((p) => i.map((m) => a(h, p, m, u))));
}, { immediate: !0, flush: "post" }), f = () => {
O(), o();
};
return nb(f), f;
}
let P0 = !1;
function WE(n, e, t = {}) {
const { window: i = ib, ignore: r = [], capture: s = !0, detectIframe: o = !1 } = t;
if (!i)
return;
YE && !P0 && (P0 = !0, Array.from(i.document.body.children).forEach((p) => p.addEventListener("click", eb)));
let a = !0;
const O = (p) => r.some((m) => {
if (typeof m == "string")
return Array.from(i.document.querySelectorAll(m)).some((Q) => Q === p.target || p.composedPath().includes(Q));
{
const Q = ps(m);
return Q && (p.target === Q || p.composedPath().includes(Q));
}
}), h = [
cu(i, "click", (p) => {
const m = ps(n);
if (!(!m || m === p.target || p.composedPath().includes(m))) {
if (p.detail === 0 && (a = !O(p)), !a) {
a = !0;
return;
}
e(p);
}
}, { passive: !0, capture: s }),
cu(i, "pointerdown", (p) => {
const m = ps(n);
m && (a = !p.composedPath().includes(m) && !O(p));
}, { passive: !0 }),
o && cu(i, "blur", (p) => {
var m;
const Q = ps(n);
((m = i.document.activeElement) == null ? void 0 : m.tagName) === "IFRAME" && !(Q != null && Q.contains(i.document.activeElement)) && e(p);
})
].filter(Boolean);
return () => h.forEach((p) => p());
}
const y0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, b0 = "__vueuse_ssr_handlers__";
y0[b0] = y0[b0] || {};
var v0;
(function(n) {
n.UP = "UP", n.RIGHT = "RIGHT", n.DOWN = "DOWN", n.LEFT = "LEFT", n.NONE = "NONE";
})(v0 || (v0 = {}));
var zE = Object.defineProperty, x0 = Object.getOwnPropertySymbols, ME = Object.prototype.hasOwnProperty, UE = Object.prototype.propertyIsEnumerable, w0 = (n, e, t) => e in n ? zE(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, LE = (n, e) => {
for (var t in e || (e = {}))
ME.call(e, t) && w0(n, t, e[t]);
if (x0)
for (var t of x0(e))
UE.call(e, t) && w0(n, t, e[t]);
return n;
};
const GE = {
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]
};
LE({
linear: VE
}, GE);
class DE extends Error {
constructor(e) {
super(e), this.name = "ElementPlusError";
}
}
function Zc(n, e) {
if (process.env.NODE_ENV !== "production") {
const t = Np(n) ? new DE(`[${n}] ${e}`) : n;
console.warn(t);
}
}
const T0 = {
current: 0
}, k0 = Ee(0), IE = 2e3, R0 = Symbol("elZIndexContextKey"), BE = Symbol("zIndexContextKey"), jE = (n) => {
const e = Ia() ? Bn(R0, T0) : T0, t = Ia() ? Bn(BE, void 0) : void 0, i = de(() => {
const o = W(t);
return Ar(o) ? o : IE;
}), r = de(() => i.value + k0.value), s = () => (e.current++, k0.value = e.current, r.value);
return !oi && !Bn(R0) && Zc("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: i,
currentZIndex: r,
nextZIndex: s
};
}, rb = "__epPropKey", Ue = (n) => n, NE = (n) => Fp(n) && !!n[rb], sm = (n, e) => {
if (!Fp(n) || NE(n))
return n;
const { values: t, required: i, default: r, type: s, validator: o } = n, O = {
type: s,
required: !!i,
validator: t || o ? (f) => {
let h = !1, u = [];
if (t && (u = Array.from(t), c0(n, "default") && u.push(r), h || (h = u.includes(f))), o && (h || (h = o(f))), !h && u.length > 0) {
const p = [...new Set(u)].map((m) => JSON.stringify(m)).join(", ");
PA(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${p}], got value ${JSON.stringify(f)}.`);
}
return h;
} : void 0,
[rb]: !0
};
return c0(n, "default") && (O.default = r), O;
}, Rn = (n) => pd(Object.entries(n).map(([e, t]) => [
e,
sm(t, e)
])), FE = ["", "default", "small", "large"];
var ur = (n, e) => {
const t = n.__vccOpts || n;
for (const [i, r] of e)
t[i] = r;
return t;
};
const Pf = (n, e) => (n.install = (t) => {
for (const i of [n, ...Object.values({})])
t.component(i.name, i);
}, n), HE = Rn({
ariaLabel: String,
ariaOrientation: {
type: String,
values: ["horizontal", "vertical", "undefined"]
},
ariaControls: String
}), sb = (n) => kE(HE, n), X0 = Symbol("formItemContextKey"), md = {
prefix: Math.floor(Math.random() * 1e4),
current: 0
}, KE = Symbol("elIdInjection"), ob = () => Ia() ? Bn(KE, md) : md, JE = (n) => {
const e = ob();
!oi && e === md && Zc("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 t = jp();
return Jy(() => W(n) || `${t.value}-id-${e.prefix}-${e.current++}`);
}, om = Symbol("popper"), ab = Symbol("popperContent"), eY = [
"dialog",
"grid",
"group",
"listbox",
"menu",
"navigation",
"tooltip",
"tree"
], lb = Rn({
role: {
type: String,
values: eY,
default: "tooltip"
}
}), tY = rt({
name: "ElPopper",
inheritAttrs: !1
}), nY = /* @__PURE__ */ rt({
...tY,
props: lb,
setup(n, { expose: e }) {
const t = n, i = Ee(), r = Ee(), s = Ee(), o = Ee(), a = de(() => t.role), O = {
triggerRef: i,
popperInstanceRef: r,
contentRef: s,
referenceRef: o,
role: a
};
return e(O), go(om, O), (f, h) => St(f.$slots, "default");
}
});
var iY = /* @__PURE__ */ ur(nY, [["__file", "popper.vue"]]);
const rY = rt({
name: "ElPopperArrow",
inheritAttrs: !1
}), sY = /* @__PURE__ */ rt({
...rY,
setup(n, { expose: e }) {
const t = Lr("popper"), { arrowRef: i, arrowStyle: r } = Bn(ab, void 0);
return Ur(() => {
i.value = void 0;
}), e({
arrowRef: i
}), (s, o) => (ze(), sn("span", {
ref_key: "arrowRef",
ref: i,
class: Pl(W(t).e("arrow")),
style: Wy(W(r)),
"data-popper-arrow": ""
}, null, 6));
}
});
var oY = /* @__PURE__ */ ur(sY, [["__file", "arrow.vue"]]);
const Ob = Rn({
virtualRef: {
type: Ue(Object)
},
virtualTriggering: Boolean,
onMouseenter: {
type: Ue(Function)
},
onMouseleave: {
type: Ue(Function)
},
onClick: {
type: Ue(Function)
},
onKeydown: {
type: Ue(Function)
},
onFocus: {
type: Ue(Function)
},
onBlur: {
type: Ue(Function)
},
onContextmenu: {
type: Ue(Function)
},
id: String,
open: Boolean
}), cb = Symbol("elForwardRef"), aY = (n) => {
go(cb, {
setForwardRef: (t) => {
n.value = t;
}
});
}, lY = (n) => ({
mounted(e) {
n(e);
},
updated(e) {
n(e);
},
unmounted() {
n(null);
}
}), gd = (n) => {
if (n.tabIndex > 0 || n.tabIndex === 0 && n.getAttribute("tabIndex") !== null)
return !0;
if (n.tabIndex < 0 || n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true")
return !1;
switch (n.nodeName) {
case "A":
return !!n.href && n.rel !== "ignore";
case "INPUT":
return !(n.type === "hidden" || n.type === "file");
case "BUTTON":
case "SELECT":
case "TEXTAREA":
return !0;
default:
return !1;
}
}, fu = "ElOnlyChild", OY = rt({
name: fu,
setup(n, {
slots: e,
attrs: t
}) {
var i;
const r = Bn(cb), s = lY((i = r == null ? void 0 : r.setForwardRef) != null ? i : dd);
return () => {
var o;
const a = (o = e.default) == null ? void 0 : o.call(e, t);
if (!a)
return null;
if (a.length > 1)
return Zc(fu, "requires exact only one valid child."), null;
const O = fb(a);
return O ? zy(yA(O, t), [[s]]) : (Zc(fu, "no valid child node found"), null);
};
}
});
function fb(n) {
if (!n)
return null;
const e = n;
for (const t of e) {
if (Fp(t))
switch (t.type) {
case Uy:
continue;
case bA:
case "svg":
return _0(t);
case My:
return fb(t.children);
default:
return t;
}
return _0(t);
}
return null;
}
function _0(n) {
const e = Lr("only-child");
return ft("span", {
class: e.e("content")
}, [n]);
}
const cY = rt({
name: "ElPopperTrigger",
inheritAttrs: !1
}), fY = /* @__PURE__ */ rt({
...cY,
props: Ob,
setup(n, { expose: e }) {
const t = n, { role: i, triggerRef: r } = Bn(om, void 0);
aY(r);
const s = de(() => a.value ? t.id : void 0), o = de(() => {
if (i && i.value === "tooltip")
return t.open && t.id ? t.id : void 0;
}), a = de(() => {
if (i && i.value !== "tooltip")
return i.value;
}), O = de(() => a.value ? `${t.open}` : void 0);
let f;
const h = [
"onMouseenter",
"onMouseleave",
"onClick",
"onKeydown",
"onFocus",
"onBlur",
"onContextmenu"
];
return hr(() => {
Ze(() => t.virtualRef, (u) => {
u && (r.value = ps(u));
}, {
immediate: !0
}), Ze(r, (u, p) => {
f == null || f(), f = void 0, $s(u) && (h.forEach((m) => {
var Q;
const S = t[m];
S && (u.addEventListener(m.slice(2).toLowerCase(), S), (Q = p == null ? void 0 : p.removeEventListener) == null || Q.call(p, m.slice(2).toLowerCase(), S));
}), gd(u) && (f = Ze([s, o, a, O], (m) => {
[
"aria-controls",
"aria-describedby",
"aria-haspopup",
"aria-expanded"
].forEach((Q, S) => {
rm(m[S]) ? u.removeAttribute(Q) : u.setAttribute(Q, m[S]);
});
}, { immediate: !0 }))), $s(p) && gd(p) && [
"aria-controls",
"aria-describedby",
"aria-haspopup",
"aria-expanded"
].forEach((m) => p.removeAttribute(m));
}, {
immediate: !0
});
}), Ur(() => {
if (f == null || f(), f = void 0, r.value && $s(r.value)) {
const u = r.value;
h.forEach((p) => {
const m = t[p];
m && u.removeEventListener(p.slice(2).toLowerCase(), m);
}), r.value = void 0;
}
}), e({
triggerRef: r
}), (u, p) => u.virtualTriggering ? yt("v-if", !0) : (ze(), kn(W(OY), Dp({ key: 0 }, u.$attrs, {
"aria-controls": W(s),
"aria-describedby": W(o),
"aria-expanded": W(O),
"aria-haspopup": W(a)
}), {
default: it(() => [
St(u.$slots, "default")
]),
_: 3
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
}
});
var hY = /* @__PURE__ */ ur(fY, [["__file", "trigger.vue"]]);
const hu = "focus-trap.focus-after-trapped", uu = "focus-trap.focus-after-released", uY = "focus-trap.focusout-prevented", C0 = {
cancelable: !0,
bubbles: !1
}, dY = {
cancelable: !0,
bubbles: !1
}, Z0 = "focusAfterTrapped", q0 = "focusAfterReleased", pY = Symbol("elFocusTrap"), am = Ee(), yf = Ee(0), lm = Ee(0);
let XO = 0;
const hb = (n) => {
const e = [], t = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, {
acceptNode: (i) => {
const r = i.tagName === "INPUT" && i.type === "hidden";
return i.disabled || i.hidden || r ? NodeFilter.FILTER_SKIP : i.tabIndex >= 0 || i === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
}
});
for (; t.nextNode(); )
e.push(t.currentNode);
return e;
}, A0 = (n, e) => {
for (const t of n)
if (!mY(t, e))
return t;
}, mY = (n, e) => {
if (process.env.NODE_ENV === "test")
return !1;
if (getComputedStyle(n).visibility === "hidden")
return !0;
for (; n; ) {
if (e && n === e)
return !1;
if (getComputedStyle(n).display === "none")
return !0;
n = n.parentElement;
}
return !1;
}, gY = (n) => {
const e = hb(n), t = A0(e, n), i = A0(e.reverse(), n);
return [t, i];
}, QY = (n) => n instanceof HTMLInputElement && "select" in n, tr = (n, e) => {
if (n && n.focus) {
const t = document.activeElement;
let i = !1;
$s(n) && !gd(n) && !n.getAttribute("tabindex") && (n.setAttribute("tabindex", "-1"), i = !0), n.focus({ preventScroll: !0 }), lm.value = window.performance.now(), n !== t && QY(n) && e && n.select(), $s(n) && i && n.removeAttribute("tabindex");
}
};
function E0(n, e) {
const t = [...n], i = n.indexOf(e);
return i !== -1 && t.splice(i, 1), t;
}
const SY = () => {
let n = [];
return {
push: (i) => {
const r = n[0];
r && i !== r && r.pause(), n = E0(n, i), n.unshift(i);
},
remove: (i) => {
var r, s;
n = E0(n, i), (s = (r = n[0]) == null ? void 0 : r.resume) == null || s.call(r);
}
};
}, $Y = (n, e = !1) => {
const t = document.activeElement;
for (const i of n)
if (tr(i, e), document.activeElement !== t)
return;
}, Y0 = SY(), PY = () => yf.value > lm.value, _O = () => {
am.value = "pointer", yf.value = window.performance.now();
}, V0 = () => {
am.value = "keyboard", yf.value = window.performance.now();
}, yY = () => (hr(() => {
XO === 0 && (document.addEventListener("mousedown", _O), document.addEventListener("touchstart", _O), document.addEventListener("keydown", V0)), XO++;
}), Ur(() => {
XO--, XO <= 0 && (document.removeEventListener("mousedown", _O), document.removeEventListener("touchstart", _O), document.removeEventListener("keydown", V0));
}), {
focusReason: am,
lastUserFocusTimestamp: yf,
lastAutomatedFocusTimestamp: lm
}), CO = (n) => new CustomEvent(uY, {
...dY,
detail: n
}), _a = {
tab: "Tab",
enter: "Enter",
space: "Space",
esc: "Escape",
numpadEnter: "NumpadEnter"
};
let Ks = [];
const W0 = (n) => {
n.code === _a.esc && Ks.forEach((e) => e(n));
}, bY = (n) => {
hr(() => {
Ks.length === 0 && document.addEventListener("keydown", W0), oi && Ks.push(n);
}), Ur(() => {
Ks = Ks.filter((e) => e !== n), Ks.length === 0 && oi && document.removeEventListener("keydown", W0);
});
}, vY = rt({
name: "ElFocusTrap",
inheritAttrs: !1,
props: {
loop: Boolean,
trapped: Boolean,
focusTrapEl: Object,
focusStartEl: {
type: [Object, String],
default: "first"
}
},
emits: [
Z0,
q0,
"focusin",
"focusout",
"focusout-prevented",
"release-requested"
],
setup(n, { emit: e }) {
const t = Ee();
let i, r;
const { focusReason: s } = yY();
bY((Q) => {
n.trapped && !o.paused && e("release-requested", Q);
});
const o = {
paused: !1,
pause() {
this.paused = !0;
},
resume() {
this.paused = !1;
}
}, a = (Q) => {
if (!n.loop && !n.trapped || o.paused)
return;
const { code: S, altKey: P, ctrlKey: b, metaKey: T, currentTarget: k, shiftKey: _ } = Q, { loop: Z } = n, E = S === _a.tab && !P && !b && !T, q = document.activeElement;
if (E && q) {
const D = k, [H, re] = gY(D);
if (H && re) {
if (!_ && q === re) {
const I = CO({
focusReason: s.value
});
e("focusout-prevented", I), I.defaultPrevented || (Q.preventDefault(), Z && tr(H, !0));
} else if (_ && [H, D].includes(q)) {
const I = CO({
focusReason: s.value
});
e("focusout-prevented", I), I.defaultPrevented || (Q.preventDefault(), Z && tr(re, !0));
}
} else if (q === D) {
const I = CO({
focusReason: s.value
});
e("focusout-prevented", I), I.defaultPrevented || Q.preventDefault();
}
}
};
go(pY, {
focusTrapRef: t,
onKeydown: a
}), Ze(() => n.focusTrapEl, (Q) => {
Q && (t.value = Q);
}, { immediate: !0 }), Ze([t], ([Q], [S]) => {
Q && (Q.addEventListener("keydown", a), Q.addEventListener("focusin", h), Q.addEventListener("focusout", u)), S && (S.removeEventListener("keydown", a), S.removeEventListener("focusin", h), S.removeEventListener("focusout", u));
});
const O = (Q) => {
e(Z0, Q);
}, f = (Q) => e(q0, Q), h = (Q) => {
const S = W(t);
if (!S)
return;
const P = Q.target, b = Q.relatedTarget, T = P && S.contains(P);
n.trapped || b && S.contains(b) || (i = b), T && e("focusin", Q), !o.paused && n.trapped && (T ? r = P : tr(r, !0));
}, u = (Q) => {
const S = W(t);
if (!(o.paused || !S))
if (n.trapped) {
const P = Q.relatedTarget;
!rm(P) && !S.contains(P) && setTimeout(() => {
if (!o.paused && n.trapped) {
const b = CO({
focusReason: s.value
});
e("focusout-prevented", b), b.defaultPrevented || tr(r, !0);
}
}, 0);
} else {
const P = Q.target;
P && S.contains(P) || e("focusout", Q);
}
};
async function p() {
await O0();
const Q = W(t);
if (Q) {
Y0.push(o);
const S = Q.contains(document.activeElement) ? i : document.activeElement;
if (i = S, !Q.contains(S)) {
const b = new Event(hu, C0);
Q.addEventListener(hu, O), Q.dispatchEvent(b), b.defaultPrevented || O0(() => {
let T = n.focusStartEl;
Np(T) || (tr(T), document.activeElement !== T && (T = "first")), T === "first" && $Y(hb(Q), !0), (document.activeElement === S || T === "container") && tr(Q);
});
}
}
}
function m() {
const Q = W(t);
if (Q) {
Q.removeEventListener(hu, O);
const S = new CustomEvent(uu, {
...C0,
detail: {
focusReason: s.value
}
});
Q.addEventListener(uu, f), Q.dispatchEvent(S), !S.defaultPrevented && (s.value == "keyboard" || !PY() || Q.contains(document.activeElement)) && tr(i ?? document.body), Q.removeEventListener(uu, f), Y0.remove(o);
}
}
return hr(() => {
n.trapped && p(), Ze(() => n.trapped, (Q) => {
Q ? p() : m();
});
}), Ur(() => {
n.trapped && m(), t.value && (t.value.removeEventListener("keydown", a), t.value.removeEventListener("focusin", h), t.value.removeEventListener("focusout", u), t.value = void 0);
}), {
onKeydown: a
};
}
});
function xY(n, e, t, i, r, s) {
return St(n.$slots, "default", { handleKeydown: n.onKeydown });
}
var wY = /* @__PURE__ */ ur(vY, [["render", xY], ["__file", "focus-trap.vue"]]), fn = "top", Hn = "bottom", Kn = "right", hn = "left", Om = "auto", vl = [fn, Hn, Kn, hn], Qo = "start", ja = "end", TY = "clippingParents", ub = "viewport", Oa = "popper", kY = "reference", z0 = vl.reduce(function(n, e) {
return n.concat([e + "-" + Qo, e + "-" + ja]);
}, []), cm = [].concat(vl, [Om]).reduce(function(n, e) {
return n.concat([e, e + "-" + Qo, e + "-" + ja]);
}, []), RY = "beforeRead", XY = "read", _Y = "afterRead", CY = "beforeMain", ZY = "main", qY = "afterMain", AY = "beforeWrite", EY = "write", YY = "afterWrite", VY = [RY, XY, _Y, CY, ZY, qY, AY, EY, YY];
function Ei(n) {
return n ? (n.nodeName || "").toLowerCase() : null;
}
function ui(n) {
if (n == null) return window;
if (n.toString() !== "[object Window]") {
var e = n.ownerDocument;
return e && e.defaultView || window;
}
return n;
}
function So(n) {
var e = ui(n).Element;
return n instanceof e || n instanceof Element;
}
function jn(n) {
var e = ui(n).HTMLElement;
return n instanceof e || n instanceof HTMLElement;
}
function fm(n) {
if (typeof ShadowRoot > "u") return !1;
var e = ui(n).ShadowRoot;
return n instanceof e || n instanceof ShadowRoot;
}
function WY(n) {
var e = n.state;
Object.keys(e.elements).forEach(function(t) {
var i = e.styles[t] || {}, r = e.attributes[t] || {}, s = e.elements[t];
!jn(s) || !Ei(s) || (Object.assign(s.style, i), Object.keys(r).forEach(function(o) {
var a = r[o];
a === !1 ? s.removeAttribute(o) : s.setAttribute(o, a === !0 ? "" : a);
}));
});
}
function zY(n) {
var e = n.state, t = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
return Object.assign(e.elements.popper.style, t.popper), e.styles = t, e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), function() {
Object.keys(e.elements).forEach(function(i) {
var r = e.elements[i], s = e.attributes[i] || {}, o = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), a = o.reduce(function(O, f) {
return O[f] = "", O;
}, {});
!jn(r) || !Ei(r) || (Object.assign(r.style, a), Object.keys(s).forEach(function(O) {
r.removeAttribute(O);
}));
});
};
}
var db = { name: "applyStyles", enabled: !0, phase: "write", fn: WY, effect: zY, requires: ["computeStyles"] };
function qi(n) {
return n.split("-")[0];
}
var Ps = Math.max, qc = Math.min, $o = Math.round;
function Po(n, e) {
e === void 0 && (e = !1);
var t = n.getBoundingClientRect(), i = 1, r = 1;
if (jn(n) && e) {
var s = n.offsetHeight, o = n.offsetWidth;
o > 0 && (i = $o(t.width) / o || 1), s > 0 && (r = $o(t.height) / s || 1);
}
return { width: t.width / i, height: t.height / r, top: t.top / r, right: t.right / i, bottom: t.bottom / r, left: t.left / i, x: t.left / i, y: t.top / r };
}
function hm(n) {
var e = Po(n), t = n.offsetWidth, i = n.offsetHeight;
return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - i) <= 1 && (i = e.height), { x: n.offsetLeft, y: n.offsetTop, width: t, height: i };
}
function pb(n, e) {
var t = e.getRootNode && e.getRootNode();
if (n.contains(e)) return !0;
if (t && fm(t)) {
var i = e;
do {
if (i && n.isSameNode(i)) return !0;
i = i.parentNode || i.host;
} while (i);
}
return !1;
}
function ar(n) {
return ui(n).getComputedStyle(n);
}
function MY(n) {
return ["table", "td", "th"].indexOf(Ei(n)) >= 0;
}
function Gr(n) {
return ((So(n) ? n.ownerDocument : n.document) || window.document).documentElement;
}
function bf(n) {
return Ei(n) === "html" ? n : n.assignedSlot || n.parentNode || (fm(n) ? n.host : null) || Gr(n);
}
function M0(n) {
return !jn(n) || ar(n).position === "fixed" ? null : n.offsetParent;
}
function UY(n) {
var e = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, t = navigator.userAgent.indexOf("Trident") !== -1;
if (t && jn(n)) {
var i = ar(n);
if (i.position === "fixed") return null;
}
var r = bf(n);
for (fm(r) && (r = r.host); jn(r) && ["html", "body"].indexOf(Ei(r)) < 0; ) {
var s = ar(r);
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none") return r;
r = r.parentNode;
}
return null;
}
function xl(n) {
for (var e = ui(n), t = M0(n); t && MY(t) && ar(t).position === "static"; ) t = M0(t);
return t && (Ei(t) === "html" || Ei(t) === "body" && ar(t).position === "static") ? e : t || UY(n) || e;
}
function um(n) {
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
}
function Ca(n, e, t) {
return Ps(n, qc(e, t));
}
function LY(n, e, t) {
var i = Ca(n, e, t);
return i > t ? t : i;
}
function mb() {
return { top: 0, right: 0, bottom: 0, left: 0 };
}
function gb(n) {
return Object.assign({}, mb(), n);
}
function Qb(n, e) {
return e.reduce(function(t, i) {
return t[i] = n, t;
}, {});
}
var GY = function(n, e) {
return n = typeof n == "function" ? n(Object.assign({}, e.rects, { placement: e.placement })) : n, gb(typeof n != "number" ? n : Qb(n, vl));
};
function DY(n) {
var e, t = n.state, i = n.name, r = n.options, s = t.elements.arrow, o = t.modifiersData.popperOffsets, a = qi(t.placement), O = um(a), f = [hn, Kn].indexOf(a) >= 0, h = f ? "height" : "width";
if (!(!s || !o)) {
var u = GY(r.padding, t), p = hm(s), m = O === "y" ? fn : hn, Q = O === "y" ? Hn : Kn, S = t.rects.reference[h] + t.rects.reference[O] - o[O] - t.rects.popper[h], P = o[O] - t.rects.reference[O], b = xl(s), T = b ? O === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, k = S / 2 - P / 2, _ = u[m], Z = T - p[h] - u[Q], E = T / 2 - p[h] / 2 + k, q = Ca(_, E, Z), D = O;
t.modifiersData[i] = (e = {}, e[D] = q, e.centerOffset = q - E, e);
}
}
function IY(n) {
var e = n.state, t = n.options, i = t.element, r = i === void 0 ? "[data-popper-arrow]" : i;
r != null && (typeof r == "string" && (r = e.elements.popper.querySelector(r), !r) || !pb(e.elements.popper, r) || (e.elements.arrow = r));
}
var BY = { name: "arrow", enabled: !0, phase: "main", fn: DY, effect: IY, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
function yo(n) {
return n.split("-")[1];
}
var jY = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
function NY(n) {
var e = n.x, t = n.y, i = window, r = i.devicePixelRatio || 1;
return { x: $o(e * r) / r || 0, y: $o(t * r) / r || 0 };
}
function U0(n) {
var e, t = n.popper, i = n.popperRect, r = n.placement, s = n.variation, o = n.offsets, a = n.position, O = n.gpuAcceleration, f = n.adaptive, h = n.roundOffsets, u = n.isFixed, p = o.x, m = p === void 0 ? 0 : p, Q = o.y, S = Q === void 0 ? 0 : Q, P = typeof h == "function" ? h({ x: m, y: S }) : { x: m, y: S };
m = P.x, S = P.y;
var b = o.hasOwnProperty("x"), T = o.hasOwnProperty("y"), k = hn, _ = fn, Z = window;
if (f) {
var E = xl(t), q = "clientHeight", D = "clientWidth";
if (E === ui(t) && (E = Gr(t), ar(E).position !== "static" && a === "absolute" && (q = "scrollHeight", D = "scrollWidth")), E = E, r === fn || (r === hn || r === Kn) && s === ja) {
_ = Hn;
var H = u && E === Z && Z.visualViewport ? Z.visualViewport.height : E[q];
S -= H - i.height, S *= O ? 1 : -1;
}
if (r === hn || (r === fn || r === Hn) && s === ja) {
k = Kn;
var re = u && E === Z && Z.visualViewport ? Z.visualViewport.width : E[D];
m -= re - i.width, m *= O ? 1 : -1;
}
}
var te = Object.assign({ position: a }, f && jY), I = h === !0 ? NY({ x: m, y: S }) : { x: m, y: S };
if (m = I.x, S = I.y, O) {
var le;
return Object.assign({}, te, (le = {}, le[_] = T ? "0" : "", le[k] = b ? "0" : "", le.transform = (Z.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + S + "px)" : "translate3d(" + m + "px, " + S + "px, 0)", le));
}
return Object.assign({}, te, (e = {}, e[_] = T ? S + "px" : "", e[k] = b ? m + "px" : "", e.transform = "", e));
}
function FY(n) {
var e = n.state, t = n.options, i = t.gpuAcceleration, r = i === void 0 ? !0 : i, s = t.adaptive, o = s === void 0 ? !0 : s, a = t.roundOffsets, O = a === void 0 ? !0 : a, f = { placement: qi(e.placement), variation: yo(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: r, isFixed: e.options.strategy === "fixed" };
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, U0(Object.assign({}, f, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: o, roundOffsets: O })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, U0(Object.assign({}, f, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: O })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement });
}
var Sb = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: FY, data: {} }, ZO = { passive: !0 };
function HY(n) {
var e = n.state, t = n.instance, i = n.options, r = i.scroll, s = r === void 0 ? !0 : r, o = i.resize, a = o === void 0 ? !0 : o, O = ui(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
return s && f.forEach(function(h) {
h.addEventListener("scroll", t.update, ZO);
}), a && O.addEventListener("resize", t.update, ZO), function() {
s && f.forEach(function(h) {
h.removeEventListener("scroll", t.update, ZO);
}), a && O.removeEventListener("resize", t.update, ZO);
};
}
var $b = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
}, effect: HY, data: {} }, KY = { left: "right", right: "left", bottom: "top", top: "bottom" };
function fc(n) {
return n.replace(/left|right|bottom|top/g, function(e) {
return KY[e];
});
}
var JY = { start: "end", end: "start" };
function L0(n) {
return n.replace(/start|end/g, function(e) {
return JY[e];
});
}
function dm(n) {
var e = ui(n), t = e.pageXOffset, i = e.pageYOffset;
return { scrollLeft: t, scrollTop: i };
}
function pm(n) {
return Po(Gr(n)).left + dm(n).scrollLeft;
}
function eV(n) {
var e = ui(n), t = Gr(n), i = e.visualViewport, r = t.clientWidth, s = t.clientHeight, o = 0, a = 0;
return i && (r = i.width, s = i.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (o = i.offsetLeft, a = i.offsetTop)), { width: r, height: s, x: o + pm(n), y: a };
}
function tV(n) {
var e, t = Gr(n), i = dm(n), r = (e = n.ownerDocument) == null ? void 0 : e.body, s = Ps(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), o = Ps(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), a = -i.scrollLeft + pm(n), O = -i.scrollTop;
return ar(r || t).direction === "rtl" && (a += Ps(t.clientWidth, r ? r.clientWidth : 0) - s), { width: s, height: o, x: a, y: O };
}
function mm(n) {
var e = ar(n), t = e.overflow, i = e.overflowX, r = e.overflowY;
return /auto|scroll|overlay|hidden/.test(t + r + i);
}
function Pb(n) {
return ["html", "body", "#document"].indexOf(Ei(n)) >= 0 ? n.ownerDocument.body : jn(n) && mm(n) ? n : Pb(bf(n));
}
function Za(n, e) {
var t;
e === void 0 && (e = []);
var i = Pb(n), r = i === ((t = n.ownerDocument) == null ? void 0 : t.body), s = ui(i), o = r ? [s].concat(s.visualViewport || [], mm(i) ? i : []) : i, a = e.concat(o);
return r ? a : a.concat(Za(bf(o)));
}
function Qd(n) {
return Object.assign({}, n, { left: n.x, top: n.y, right: n.x + n.width, bottom: n.y + n.height });
}
function nV(n) {
var e = Po(n);
return e.top = e.top + n.clientTop, e.left = e.left + n.clientLeft, e.bottom = e.top + n.clientHeight, e.right = e.left + n.clientWidth, e.width = n.clientWidth, e.height = n.clientHeight, e.x = e.left, e.y = e.top, e;
}
function G0(n, e) {
return e === ub ? Qd(eV(n)) : So(e) ? nV(e) : Qd(tV(Gr(n)));
}
function iV(n) {
var e = Za(bf(n)), t = ["absolute", "fixed"].indexOf(ar(n).position) >= 0, i = t && jn(n) ? xl(n) : n;
return So(i) ? e.filter(function(r) {
return So(r) && pb(r, i) && Ei(r) !== "body";
}) : [];
}
function rV(n, e, t) {
var i = e === "clippingParents" ? iV(n) : [].concat(e), r = [].concat(i, [t]), s = r[0], o = r.reduce(function(a, O) {
var f = G0(n, O);
return a.top = Ps(f.top, a.top), a.right = qc(f.right, a.right), a.bottom = qc(f.bottom, a.bottom), a.left = Ps(f.left, a.left), a;
}, G0(n, s));
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
}
function yb(n) {
var e = n.reference, t = n.element, i = n.placement, r = i ? qi(i) : null, s = i ? yo(i) : null, o = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, O;
switch (r) {
case fn:
O = { x: o, y: e.y - t.height };
break;
case Hn:
O = { x: o, y: e.y + e.height };
break;
case Kn:
O = { x: e.x + e.width, y: a };
break;
case hn:
O = { x: e.x - t.width, y: a };
break;
default:
O = { x: e.x, y: e.y };
}
var f = r ? um(r) : null;
if (f != null) {
var h = f === "y" ? "height" : "width";
switch (s) {
case Qo:
O[f] = O[f] - (e[h] / 2 - t[h] / 2);
break;
case ja:
O[f] = O[f] + (e[h] / 2 - t[h] / 2);
break;
}
}
return O;
}
function Na(n, e) {
e === void 0 && (e = {});
var t = e, i = t.placement, r = i === void 0 ? n.placement : i, s = t.boundary, o = s === void 0 ? TY : s, a = t.rootBoundary, O = a === void 0 ? ub : a, f = t.elementContext, h = f === void 0 ? Oa : f, u = t.altBoundary, p = u === void 0 ? !1 : u, m = t.padding, Q = m === void 0 ? 0 : m, S = gb(typeof Q != "number" ? Q : Qb(Q, vl)), P = h === Oa ? kY : Oa, b = n.rects.popper, T = n.elements[p ? P : h], k = rV(So(T) ? T : T.contextElement || Gr(n.elements.popper), o, O), _ = Po(n.elements.reference), Z = yb({ reference: _, element: b, placement: r }), E = Qd(Object.assign({}, b, Z)), q = h === Oa ? E : _, D = { top: k.top - q.top + S.top, bottom: q.bottom - k.bottom + S.bottom, left: k.left - q.left + S.left, right: q.right - k.right + S.right }, H = n.modifiersData.offset;
if (h === Oa && H) {
var re = H[r];
Object.keys(D).forEach(function(te) {
var I = [Kn, Hn].indexOf(te) >= 0 ? 1 : -1, le = [fn, Hn].indexOf(te) >= 0 ? "y" : "x";
D[t