@vue-js-cron/light
Version:
lightweight vue.js cron editor
1,806 lines (1,805 loc) • 84 kB
JavaScript
import * as e from "vue";
import { Fragment as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, ref as p, renderList as m, resolveComponent as h, toDisplayString as g, watch as _, withCtx as v, withModifiers as y } from "vue";
//#region \0rolldown/runtime.js
var b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, C = Object.prototype.hasOwnProperty, w = (e, t) => {
let n = {};
for (var r in e) b(n, r, {
get: e[r],
enumerable: !0
});
return t || b(n, Symbol.toStringTag, { value: "Module" }), n;
}, T = (e, t, n, r) => {
if (t && typeof t == "object" || typeof t == "function") for (var i = S(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !C.call(e, s) && s !== n && b(e, s, {
get: ((e) => t[e]).bind(null, s),
enumerable: !(r = x(t, s)) || r.enumerable
});
return e;
}, ee = (e, t, n) => (T(e, t, "default"), n && T(n, t, "default")), te = (e, t) => {
let n = e.__vccOpts || e;
for (let [e, r] of t) n[e] = r;
return n;
}, ne = {}, re = {
xmlns: "http://www.w3.org/2000/svg",
width: "1024",
height: "1024",
viewBox: "0 0 1024 1024"
};
function ie(e, t) {
return f(), o("svg", re, [...t[0] ||= [s("path", {
fill: "currentColor",
"fill-rule": "evenodd",
d: "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.1.1 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.12.12 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.1.1 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.12.12 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.1.1 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.12.12 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.1.1 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.12.12 0 0 1 .07 0Z"
}, null, -1)]]);
}
var ae = /*#__PURE__*/ te(ne, [["render", ie]]), oe = {}, se = {
xmlns: "http://www.w3.org/2000/svg",
width: "1024",
height: "1024",
viewBox: "0 0 1024 1024"
};
function ce(e, t) {
return f(), o("svg", se, [...t[0] ||= [s("path", {
fill: "currentColor",
d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2L227.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.7"
}, null, -1)]]);
}
var le = /*#__PURE__*/ te(oe, [["render", ce]]), ue = Math.min, E = Math.max, de = Math.round, fe = Math.floor, D = (e) => ({
x: e,
y: e
}), pe = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
function me(e, t, n) {
return E(e, ue(t, n));
}
function he(e, t) {
return typeof e == "function" ? e(t) : e;
}
function O(e) {
return e.split("-")[0];
}
function ge(e) {
return e.split("-")[1];
}
function _e(e) {
return e === "x" ? "y" : "x";
}
function ve(e) {
return e === "y" ? "height" : "width";
}
function k(e) {
let t = e[0];
return t === "t" || t === "b" ? "y" : "x";
}
function ye(e) {
return _e(k(e));
}
function be(e, t, n) {
n === void 0 && (n = !1);
let r = ge(e), i = ye(e), a = ve(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
return t.reference[a] > t.floating[a] && (o = ke(o)), [o, ke(o)];
}
function xe(e) {
let t = ke(e);
return [
Se(e),
t,
Se(t)
];
}
function Se(e) {
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
}
var Ce = ["left", "right"], we = ["right", "left"], Te = ["top", "bottom"], Ee = ["bottom", "top"];
function De(e, t, n) {
switch (e) {
case "top":
case "bottom": return n ? t ? we : Ce : t ? Ce : we;
case "left":
case "right": return t ? Te : Ee;
default: return [];
}
}
function Oe(e, t, n, r) {
let i = ge(e), a = De(O(e), n === "start", r);
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Se)))), a;
}
function ke(e) {
let t = O(e);
return pe[t] + e.slice(t.length);
}
function Ae(e) {
return {
top: e.top ?? 0,
right: e.right ?? 0,
bottom: e.bottom ?? 0,
left: e.left ?? 0
};
}
function je(e) {
return typeof e == "number" ? {
top: e,
right: e,
bottom: e,
left: e
} : Ae(e);
}
function Me(e) {
let { x: t, y: n, width: r, height: i } = e;
return {
width: r,
height: i,
top: n,
left: t,
right: t + r,
bottom: n + i,
x: t,
y: n
};
}
//#endregion
//#region ../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
function Ne(e, t, n) {
let { reference: r, floating: i } = e, a = k(t), o = ye(t), s = ve(o), c = O(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
switch (c) {
case "top":
p = {
x: u,
y: r.y - i.height
};
break;
case "bottom":
p = {
x: u,
y: r.y + r.height
};
break;
case "right":
p = {
x: r.x + r.width,
y: d
};
break;
case "left":
p = {
x: r.x - i.width,
y: d
};
break;
default: p = {
x: r.x,
y: r.y
};
}
let m = ge(t);
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
}
async function Pe(e, t) {
t === void 0 && (t = {});
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = he(t, e), p = je(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Me(await i.getClippingRect({
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
boundary: c,
rootBoundary: l,
strategy: s
})), g = u === "floating" ? {
x: n,
y: r,
width: a.floating.width,
height: a.floating.height
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
x: 1,
y: 1
}, y = Me(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
elements: o,
rect: g,
offsetParent: _,
strategy: s
}) : g);
return {
top: (h.top - y.top + p.top) / v.y,
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
left: (h.left - y.left + p.left) / v.x,
right: (y.right - h.right + p.right) / v.x
};
}
var Fe = 50, Ie = async (e, t, n) => {
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
...o,
detectOverflow: Pe
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
reference: e,
floating: t,
strategy: i
}), { x: u, y: d } = Ne(l, r, c), f = r, p = 0, m = {};
for (let n = 0; n < a.length; n++) {
let h = a[n];
if (!h) continue;
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
x: u,
y: d,
initialPlacement: r,
placement: f,
strategy: i,
middlewareData: m,
rects: l,
platform: s,
elements: {
reference: e,
floating: t
}
});
u = v ?? u, d = y ?? d, m[g] = {
...m[g],
...b
}, x && p < Fe && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
reference: e,
floating: t,
strategy: i
}) : x.rects), {x: u, y: d} = Ne(l, f, c)), n = -1);
}
return {
x: u,
y: d,
placement: f,
strategy: i,
middlewareData: m
};
}, Le = function(e) {
return e === void 0 && (e = {}), {
name: "flip",
options: e,
async fn(t) {
var n;
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = he(e, t);
if ((n = i.arrow) != null && n.alignmentOffset) return {};
let g = O(r), _ = k(o), v = O(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ke(o)] : xe(o)), x = p !== "none";
!d && x && b.push(...Oe(o, m, p, y));
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
if (l && w.push(C[g]), u) {
let e = be(r, a, y);
w.push(C[e[0]], C[e[1]]);
}
if (T = [...T, {
placement: r,
overflows: w
}], !w.every((e) => e <= 0)) {
let e = (i.flip?.index || 0) + 1, t = S[e];
if (t && (!(u === "alignment" && _ !== k(t)) || T.every((e) => k(e.placement) !== _ || e.overflows[0] > 0))) return {
data: {
index: e,
overflows: T
},
reset: { placement: t }
};
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
if (!n) switch (f) {
case "bestFit": {
let e = T.filter((e) => {
if (x) {
let t = k(e.placement);
return t === _ || t === "y";
}
return !0;
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
e && (n = e);
break;
}
case "initialPlacement":
n = o;
break;
}
if (r !== n) return { reset: { placement: n } };
}
return {};
}
};
}, Re = /*#__PURE__*/ new Set(["left", "top"]);
async function ze(e, t) {
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = O(n), s = ge(n), c = k(n) === "y", l = Re.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = he(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
mainAxis: d,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: d.mainAxis || 0,
crossAxis: d.crossAxis || 0,
alignmentAxis: d.alignmentAxis
};
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
x: p * u,
y: f * l
} : {
x: f * l,
y: p * u
};
}
var Be = function(e) {
return e === void 0 && (e = 0), {
name: "offset",
options: e,
async fn(t) {
var n;
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ze(t, e);
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
x: r + s.x,
y: i + s.y,
data: {
...s,
placement: a
}
};
}
};
}, Ve = function(e) {
return e === void 0 && (e = {}), {
name: "shift",
options: e,
async fn(t) {
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
let { x: t, y: n } = e;
return {
x: t,
y: n
};
} }, ...l } = he(e, t), u = {
x: n,
y: r
}, d = await a.detectOverflow(t, l), f = k(i), p = _e(f), m = u[p], h = u[f], g = (e, t) => me(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
o && (m = g(p, m)), s && (h = g(f, h));
let _ = c.fn({
...t,
[p]: m,
[f]: h
});
return {
..._,
data: {
x: _.x - n,
y: _.y - r,
enabled: {
[p]: o,
[f]: s
}
}
};
}
};
};
//#endregion
//#region ../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
function He() {
return typeof window < "u";
}
function A(e) {
return Ue(e) ? (e.nodeName || "").toLowerCase() : "#document";
}
function j(e) {
var t;
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
}
function M(e) {
return ((Ue(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
}
function Ue(e) {
return He() ? e instanceof Node || e instanceof j(e).Node : !1;
}
function N(e) {
return He() ? e instanceof Element || e instanceof j(e).Element : !1;
}
function P(e) {
return He() ? e instanceof HTMLElement || e instanceof j(e).HTMLElement : !1;
}
function We(e) {
return !He() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof j(e).ShadowRoot;
}
function Ge(e) {
let { overflow: t, overflowX: n, overflowY: r, display: i } = L(e);
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
}
function Ke(e) {
return /^(table|td|th)$/.test(A(e));
}
function qe(e) {
try {
if (e.matches(":popover-open")) return !0;
} catch {}
try {
return e.matches(":modal");
} catch {
return !1;
}
}
var Je = /transform|translate|scale|rotate|perspective|filter/, Ye = /paint|layout|strict|content/, F = (e) => !!e && e !== "none", Xe;
function Ze(e) {
let t = N(e) ? L(e) : e;
return F(t.transform) || F(t.translate) || F(t.scale) || F(t.rotate) || F(t.perspective) || !$e() && (F(t.backdropFilter) || F(t.filter)) || Je.test(t.willChange || "") || Ye.test(t.contain || "");
}
function Qe(e) {
let t = R(e);
for (; P(t) && !I(t);) {
if (Ze(t)) return t;
if (qe(t)) return null;
t = R(t);
}
return null;
}
function $e() {
return Xe ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Xe;
}
function I(e) {
return /^(html|body|#document)$/.test(A(e));
}
function L(e) {
return j(e).getComputedStyle(e);
}
function et(e) {
return N(e) ? {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
} : {
scrollLeft: e.scrollX,
scrollTop: e.scrollY
};
}
function R(e) {
if (A(e) === "html") return e;
let t = e.assignedSlot || e.parentNode || We(e) && e.host || M(e);
return We(t) ? t.host : t;
}
function tt(e) {
let t = R(e);
return I(t) ? (e.ownerDocument || e).body : P(t) && Ge(t) ? t : tt(t);
}
function z(e, t, n) {
t === void 0 && (t = []), n === void 0 && (n = !0);
let r = tt(e), i = r === e.ownerDocument?.body, a = j(r);
if (i) {
let e = nt(a);
return t.concat(a, a.visualViewport || [], Ge(r) ? r : [], e && n ? z(e) : []);
} else return t.concat(r, z(r, [], n));
}
function nt(e) {
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
}
//#endregion
//#region ../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
function rt(e) {
let t = L(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = P(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = de(n) !== a || de(r) !== o;
return s && (n = a, r = o), {
width: n,
height: r,
$: s
};
}
function it(e) {
return N(e) ? e : e.contextElement;
}
function B(e) {
let t = it(e);
if (!P(t)) return D(1);
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = rt(t), o = (a ? de(n.width) : n.width) / r, s = (a ? de(n.height) : n.height) / i;
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
x: o,
y: s
};
}
var at = /*#__PURE__*/ D(0);
function ot(e) {
let t = j(e);
return !$e() || !t.visualViewport ? at : {
x: t.visualViewport.offsetLeft,
y: t.visualViewport.offsetTop
};
}
function st(e, t, n) {
return t === void 0 && (t = !1), !!n && t && n === j(e);
}
function V(e, t, n, r) {
t === void 0 && (t = !1), n === void 0 && (n = !1);
let i = e.getBoundingClientRect(), a = it(e), o = D(1);
t && (r ? N(r) && (o = B(r)) : o = B(e));
let s = st(a, n, r) ? ot(a) : D(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
if (a && r) {
let e = j(a), t = N(r) ? j(r) : r, n = e, i = nt(n);
for (; i && t !== n;) {
let e = B(i), t = i.getBoundingClientRect(), r = L(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = j(i), i = nt(n);
}
}
return Me({
width: u,
height: d,
x: c,
y: l
});
}
function ct(e, t) {
let n = et(e).scrollLeft;
return t ? t.left + n : V(M(e)).left + n;
}
function lt(e, t) {
let n = e.getBoundingClientRect();
return {
x: n.left + t.scrollLeft - ct(e, n),
y: n.top + t.scrollTop
};
}
function ut(e) {
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = M(r), s = t ? qe(t.floating) : !1;
if (r === o || s && a) return n;
let c = {
scrollLeft: 0,
scrollTop: 0
}, l = D(1), u = D(0), d = P(r);
if ((d || !a) && ((A(r) !== "body" || Ge(o)) && (c = et(r)), d)) {
let e = V(r);
l = B(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
}
let f = o && !d && !a ? lt(o, c) : D(0);
return {
width: n.width * l.x,
height: n.height * l.y,
x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
};
}
function dt(e) {
return e.getClientRects ? Array.from(e.getClientRects()) : [];
}
function ft(e) {
let t = et(e), n = e.ownerDocument.body, r = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + ct(e), o = -t.scrollTop;
return L(n).direction === "rtl" && (a += E(e.clientWidth, n.clientWidth) - r), {
width: r,
height: i,
x: a,
y: o
};
}
var pt = 25;
function mt(e, t, n) {
n === void 0 && (n = "viewport");
let r = n === "layoutViewport", i = j(e), a = M(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
if (o) {
let e = !$e() || t === "fixed";
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
}
if (ct(a) <= 0) {
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
o <= pt && (s -= o);
}
return {
width: s,
height: c,
x: l,
y: u
};
}
function ht(e, t) {
let n = V(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e);
return {
width: e.clientWidth * a.x,
height: e.clientHeight * a.y,
x: i * a.x,
y: r * a.y
};
}
function gt(e, t, n) {
let r;
if (t === "viewport" || t === "layoutViewport") r = mt(e, n, t);
else if (t === "document") r = ft(M(e));
else if (N(t)) r = ht(t, n);
else {
let n = ot(e);
r = {
x: t.x - n.x,
y: t.y - n.y,
width: t.width,
height: t.height
};
}
return Me(r);
}
function _t(e, t) {
let n = t.get(e);
if (n) return n;
let r = z(e, [], !1).filter((e) => N(e) && A(e) !== "body"), i = null, a = L(e).position === "fixed", o = a ? R(e) : e;
for (; N(o) && !I(o);) {
let e = L(o), t = Ze(o), n = i ? i.position : a ? "fixed" : "";
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = R(o);
}
return t.set(e, r), r;
}
function vt(e) {
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? qe(t) ? [] : _t(t, this._c) : [].concat(n), r], o = gt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
for (let e = 1; e < a.length; e++) {
let n = gt(t, a[e], i);
s = E(n.top, s), c = ue(n.right, c), l = ue(n.bottom, l), u = E(n.left, u);
}
return {
width: c - u,
height: l - s,
x: u,
y: s
};
}
function yt(e) {
let { width: t, height: n } = rt(e);
return {
width: t,
height: n
};
}
function bt(e, t, n) {
let r = P(t), i = M(t), a = n === "fixed", o = V(e, !0, a, t), s = {
scrollLeft: 0,
scrollTop: 0
}, c = D(0);
if ((r || !a) && ((A(t) !== "body" || Ge(i)) && (s = et(t)), r)) {
let e = V(t, !0, a, t);
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
}
!r && i && (c.x = ct(i));
let l = i && !r && !a ? lt(i, s) : D(0);
return {
x: o.left + s.scrollLeft - c.x - l.x,
y: o.top + s.scrollTop - c.y - l.y,
width: o.width,
height: o.height
};
}
function xt(e) {
return L(e).position === "static";
}
function St(e, t) {
if (!P(e) || L(e).position === "fixed") return null;
if (t) return t(e);
let n = e.offsetParent;
return M(e) === n && (n = n.ownerDocument.body), n;
}
function Ct(e, t) {
let n = j(e);
if (qe(e)) return n;
if (!P(e)) {
let t = R(e);
for (; t && !I(t);) {
if (N(t) && !xt(t)) return t;
t = R(t);
}
return n;
}
let r = St(e, t);
for (; r && Ke(r) && xt(r);) r = St(r, t);
return r && I(r) && xt(r) && !Ze(r) ? n : r || Qe(e) || n;
}
var wt = async function(e) {
let t = this.getOffsetParent || Ct, n = this.getDimensions, r = await n(e.floating);
return {
reference: bt(e.reference, await t(e.floating), e.strategy),
floating: {
x: 0,
y: 0,
width: r.width,
height: r.height
}
};
};
function Tt(e) {
return L(e).direction === "rtl";
}
var Et = {
convertOffsetParentRelativeRectToViewportRelativeRect: ut,
getDocumentElement: M,
getClippingRect: vt,
getOffsetParent: Ct,
getElementRects: wt,
getClientRects: dt,
getDimensions: yt,
getScale: B,
isElement: N,
isRTL: Tt
};
function Dt(e, t) {
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
}
function Ot(e, t, n) {
let r = null, i, a = M(e);
function o() {
var e;
clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
}
function s(n, c) {
n === void 0 && (n = !1), c === void 0 && (c = 1), o();
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
if (n || t(), !f || !p) return;
let m = fe(d), h = fe(a.clientWidth - (u + f)), g = fe(a.clientHeight - (d + p)), _ = fe(u), v = {
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
threshold: E(0, ue(1, c)) || 1
}, y = !0;
function b(t) {
let n = t[0].intersectionRatio;
if (!Dt(l, e.getBoundingClientRect())) return s();
if (n !== c) {
if (!y) return s();
n ? s(!1, n) : i = setTimeout(() => {
s(!1, 1e-7);
}, 1e3);
}
y = !1;
}
try {
r = new IntersectionObserver(b, {
...v,
root: a.ownerDocument
});
} catch {
r = new IntersectionObserver(b, v);
}
r.observe(e);
}
let c = j(e), l = () => s(n);
return c.addEventListener("resize", l), s(!0), () => {
c.removeEventListener("resize", l), o();
};
}
function kt(e, t, n, r) {
r === void 0 && (r = {});
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = it(e), u = i || a ? [...l ? z(l) : [], ...t ? z(t) : []] : [];
u.forEach((e) => {
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
});
let d = l && s ? Ot(l, n, a) : null, f = -1, p = null;
o && (p = new ResizeObserver((e) => {
let [r] = e;
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
var e;
(e = p) == null || e.observe(t);
})), n();
}), l && !c && p.observe(l), t && p.observe(t));
let m, h = c ? V(e) : null;
c && g();
function g() {
let t = V(e);
h && !Dt(h, t) && n(), h = t, m = requestAnimationFrame(g);
}
return n(), () => {
var e;
u.forEach((e) => {
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
};
}
var At = Be, jt = Ve, Mt = Le, Nt = (e, t, n) => {
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
...Et,
...i.platform,
_c: r
};
return Ie(e, t, {
...i,
platform: a
});
}, H = /* @__PURE__ */ w({
Vue: () => e,
Vue2: () => void 0,
del: () => Lt,
install: () => Ft,
isVue2: () => !1,
isVue3: () => !0,
set: () => It
});
import * as Pt from "vue";
ee(H, Pt);
function Ft() {}
function It(e, t, n) {
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
}
function Lt(e, t) {
if (Array.isArray(e)) {
e.splice(t, 1);
return;
}
delete e[t];
}
//#endregion
//#region ../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
function Rt(e) {
return typeof e == "object" && !!e && "$el" in e;
}
function zt(e) {
if (Rt(e)) {
let t = e.$el;
return Ue(t) && A(t) === "#comment" ? null : t;
}
return e;
}
function U(e) {
return typeof e == "function" ? e() : (0, H.unref)(e);
}
function Bt(e) {
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function Vt(e, t) {
let n = Bt(e);
return Math.round(t * n) / n;
}
function Ht(e, t, n) {
n === void 0 && (n = {});
let r = n.whileElementsMounted, i = (0, H.computed)(() => U(n.open) ?? !0), a = (0, H.computed)(() => U(n.middleware)), o = (0, H.computed)(() => U(n.placement) ?? "bottom"), s = (0, H.computed)(() => U(n.strategy) ?? "absolute"), c = (0, H.computed)(() => U(n.transform) ?? !0), l = (0, H.computed)(() => zt(e.value)), u = (0, H.computed)(() => zt(t.value)), d = (0, H.ref)(0), f = (0, H.ref)(0), p = (0, H.ref)(s.value), m = (0, H.ref)(o.value), h = (0, H.shallowRef)({}), g = (0, H.ref)(!1), _ = (0, H.computed)(() => {
let e = {
position: p.value,
left: "0",
top: "0"
};
if (!u.value) return e;
let t = Vt(u.value, d.value), n = Vt(u.value, f.value);
return c.value ? {
...e,
transform: "translate(" + t + "px, " + n + "px)",
...Bt(u.value) >= 1.5 && { willChange: "transform" }
} : {
position: p.value,
left: t + "px",
top: n + "px"
};
}), v;
function y() {
if (l.value == null || u.value == null) return;
let e = i.value;
Nt(l.value, u.value, {
middleware: a.value,
placement: o.value,
strategy: s.value
}).then((t) => {
d.value = t.x, f.value = t.y, p.value = t.strategy, m.value = t.placement, h.value = t.middlewareData, g.value = e !== !1;
});
}
function b() {
typeof v == "function" && (v(), v = void 0);
}
function x() {
if (b(), r === void 0) {
y();
return;
}
if (l.value != null && u.value != null) {
v = r(l.value, u.value, y);
return;
}
}
function S() {
i.value || (g.value = !1);
}
return (0, H.watch)([
a,
o,
s,
i
], y, { flush: "sync" }), (0, H.watch)([l, u], x, { flush: "sync" }), (0, H.watch)(i, S, { flush: "sync" }), (0, H.getCurrentScope)() && (0, H.onScopeDispose)(b), {
x: (0, H.shallowReadonly)(d),
y: (0, H.shallowReadonly)(f),
strategy: (0, H.shallowReadonly)(p),
placement: (0, H.shallowReadonly)(m),
middlewareData: (0, H.shallowReadonly)(h),
isPositioned: (0, H.shallowReadonly)(g),
floatingStyles: _,
update: y
};
}
//#endregion
//#region ../core/dist/core.js
var W = /* @__PURE__ */ function(e) {
return e.Any = "any", e.Value = "value", e.Range = "range", e.Step = "step", e.StepFrom = "stepFrom", e.RangeStep = "rangeStep", e.Combined = "combined", e.NoSpecific = "noSpecific", e;
}({}), G = /* @__PURE__ */ function(e) {
return e.Prefix = "prefix", e.Suffix = "suffix", e.Text = "text", e;
}({}), Ut = class {
field;
itemMap;
ctx;
constructor(e, t) {
this.field = e, this.ctx = t, this.itemMap = this.field.items.reduce((e, t) => (e[t.value] = t, e), {});
}
get id() {
return this.field.id;
}
get items() {
return this.field.items;
}
get onChange() {
return this.field.onChange;
}
get segmentFactories() {
return this.field.segmentFactories;
}
get min() {
return this.items[0].value;
}
get max() {
return this.items[this.items.length - 1].value;
}
getItem(e) {
return this.itemMap[e];
}
};
function Wt(e, t, n = 1) {
let r = [];
for (let i = e; i <= t; i += n) r.push(i);
return r;
}
var Gt = class {
start;
end;
step;
constructor(e, t, n = 1) {
return this.start = e, this.end = t, this.step = n, new Proxy(this, { get: function(e, t) {
let n = typeof t == "string" ? parseInt(t) : t;
return typeof n == "number" && n >= 0 && n <= e.length ? e.start + e.step * n : Reflect.get(e, t);
} });
}
get length() {
return (this.end - this.start) / this.step + 1;
}
[Symbol.iterator]() {
let e = -1;
return { next: () => ({
value: this[++e],
done: this[e + 1] === void 0
}) };
}
};
function K(e, t, n = (e) => e + "", r = (e) => e + "") {
let i = [];
for (let a of new Gt(e, t)) i.push({
text: n(a),
alt: r(a),
value: a
});
return i;
}
function Kt(e, t = "crontab") {
let n = (t, n = !1) => new Date(2021, t - 1, 1).toLocaleDateString(e, { month: n ? "short" : "long" }), r = (t, n = !1) => new Date(2021, 0, 3 + t).toLocaleDateString(e, { weekday: n ? "short" : "long" });
return {
secondItems: K(0, 59, (e) => qt(e, 2)),
minuteItems: K(0, 59, (e) => qt(e, 2)),
hourItems: K(0, 23, (e) => qt(e, 2)),
dayItems: K(1, 31),
monthItems: K(1, 12, n, (e) => n(e, !0)),
dayOfWeekItems: t === "quartz" ? K(1, 7, (e) => r(e - 1), (e) => r(e - 1, !0)) : K(0, 6, r, (e) => r(e, !0))
};
}
function qt(e, t) {
let n = e + "";
return n.length < t ? Array(t - n.length).fill("0").join("") + e : n;
}
function Jt(e) {
return e && typeof e == "object" && !Array.isArray(e);
}
function Yt(e, ...t) {
if (!Jt(e) || t.length === 0) return;
let n = t.shift();
if (Jt(n)) for (let [t, r] of Object.entries(n)) Jt(r) ? (Jt(e[t]) || (e[t] = {}), Yt(e[t], n[t])) : e[t] = n[t];
return t.length > 0 && Yt(e, ...t), e;
}
function Xt(e, ...t) {
if (t.length === 0) return e;
for (let n of t[0]) if (n in e) {
let r = Xt(e[n], ...t.slice(1));
if (r !== void 0) return r;
}
}
function Zt(e) {
for (let t = 1; t < e.length; t++) if (e[t - 1] + 1 !== e[t]) return !1;
return !0;
}
function Qt() {
throw Error("not implemented");
}
function $t(e, t, n = !0) {
let r = [];
for (let i = 0; i < e.length; i += t) {
let a = e.slice(i, i + t);
for (; n && a.length < t;) a.push(null);
r.push(a);
}
return r;
}
var en = class e {
field;
type = W.NoSpecific;
constructor(e) {
this.field = e;
}
toCron() {
return "?";
}
toArray() {
return [];
}
get items() {
return {};
}
static fromString(t, n) {
return t === "?" ? new e(n) : null;
}
}, q = class e {
field;
type = W.Any;
constructor(e) {
this.field = e;
}
toCron() {
return "*";
}
toArray() {
return [];
}
get items() {
return {};
}
static fromString(t, n) {
return t === "*" ? new e(n) : null;
}
static fromArray(t, n) {
let { items: r } = n;
if (t.length === 0) return new e(n);
if (t.length !== r.length) return null;
for (let e of r) if (!t.includes(e.value)) return null;
return Zt(r.map((e) => e.value)) ? new e(n) : null;
}
}, tn = class e {
static re = /^\d+-\d+$/;
field;
type = W.Range;
start;
end;
constructor(e, t, n) {
this.field = e, this.start = t, this.end = n;
}
toCron() {
return `${this.start}-${this.end}`;
}
toArray() {
let e = this.start, t = this.end;
return Wt(e, t);
}
get items() {
return {
start: this.field.itemMap[this.start],
end: this.field.itemMap[this.end]
};
}
static fromString(t, n) {
if (!e.re.test(t)) return null;
let { min: r, max: i } = n, a = t.split("-"), o = parseInt(a[0]), s = parseInt(a[1]);
return o > s || o < r || s > i ? null : new e(n, o, s);
}
};
function nn(e, t, n) {
let r = [];
for (let i = t; i <= n; i += e) r.push(i);
return r;
}
function rn(e, t) {
if (e === "*") return [t.min, t.max];
let n = e.split("-").map((e) => parseInt(e));
return n.length === 1 && t.ctx.format !== "crontab" ? [n[0], t.max] : [n[0], n[1]];
}
var an = class e {
static re = /^(\*|\d+(-\d+)?)\/\d+$/;
field;
step;
start;
end;
constructor(e, t, n, r) {
this.field = e, this.step = t, this.start = n ?? e.min, this.end = r ?? e.max;
}
get type() {
let { min: e, max: t } = this.field;
return this.field.ctx.format !== "crontab" && this.start !== e && t - this.end < this.step ? W.StepFrom : this.start !== e || t - this.end >= this.step ? W.RangeStep : W.Step;
}
toCron() {
return this.type === W.StepFrom ? `${this.start}/${this.step}` : this.type === W.RangeStep ? `${this.start}-${this.end}/${this.step}` : `*/${this.step}`;
}
toArray() {
return nn(this.step, this.start, this.end);
}
get items() {
return {
step: this.field.itemMap[this.step],
start: this.field.itemMap[this.start],
end: this.field.itemMap[this.end]
};
}
static fromString(t, n) {
if (!e.re.test(t)) return null;
let [r, i] = t.split("/"), a = parseInt(i);
if (a > n.items.length) return null;
let [o, s] = rn(r, n);
return nn(a, o, s).length == 0 ? null : new e(n, a, o, s);
}
static fromArray(t, n) {
if (t.length < 3) return null;
let r = t[1] - t[0];
if (r <= 1) return null;
for (let e = 2; e < t.length; e++) if (t[e] - t[e - 1] != r) return null;
return new e(n, r, t[0], t[t.length - 1]);
}
}, on = class e {
field;
type = W.Value;
value;
constructor(e, t) {
this.field = e, this.value = t;
}
toCron() {
return `${this.value}`;
}
toArray() {
return [this.value];
}
get items() {
return { value: this.field.itemMap[this.value] };
}
static fromString(t, n) {
let { min: r, max: i } = n, a = parseInt(t);
return String(a) === t && a >= r && a <= i ? new e(n, a) : null;
}
static fromArray(e, t) {
let { min: n, max: r } = t;
if (e.length != 1) return null;
let i = e[0];
return i < n || i > r ? null : i;
}
}, sn = class e {
static segmentFactories = [
q.fromString,
an.fromString,
tn.fromString,
on.fromString
];
field;
segments;
constructor(e, t = []) {
this.field = e, this.segments = t;
}
get type() {
return this.segments.length == 1 ? this.segments[0].type : W.Range;
}
addSegment(e) {
this.segments.push(e);
}
toCron() {
return this.segments.map((e) => e.toCron()).join(",");
}
toArray() {
let e = /* @__PURE__ */ new Set();
for (let t of this.segments) t.toArray().forEach((t) => e.add(t));
return Array.from(e);
}
get items() {
return Qt();
}
static fromString(t, n) {
let r = n.segmentFactories ?? e.segmentFactories, i = [];
for (let e of t.split(",")) {
if (e === "*") {
i = [new q(n)];
break;
}
let t = null;
for (let i of r) if (t = i(e, n), t !== null) break;
if (t === null) return null;
i.push(t);
}
return new e(n, i);
}
static fromArray(t, n) {
let { min: r, max: i } = n, a = t[0], o = t[t.length - 1];
if (a < r || o > i) return null;
let s = [], c = 0;
for (let e = 0; e < t.length; e++) (t[e + 1] === void 0 || t[e + 1] - t[e] > 1) && (e === c ? s.push(new on(n, t[c])) : s.push(new tn(n, t[c], t[e])), c = e + 1);
return new e(n, s);
}
};
function cn(e, t) {
return sn.fromString(e, t);
}
function ln(e, t) {
for (let n of [
q.fromArray,
an.fromArray,
sn.fromArray
]) {
let r = n(e, t);
if (r != null) return r;
}
return null;
}
var un = Object.prototype.toString, J = Array.isArray || function(e) {
return un.call(e) === "[object Array]";
};
function dn(e) {
return typeof e == "function";
}
function fn(e) {
return J(e) ? "array" : typeof e;
}
function pn(e) {
return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
}
function mn(e, t) {
return typeof e == "object" && !!e && t in e;
}
function hn(e, t) {
return e != null && typeof e != "object" && e.hasOwnProperty && e.hasOwnProperty(t);
}
var gn = RegExp.prototype.test;
function _n(e, t) {
return gn.call(e, t);
}
var vn = /\S/;
function yn(e) {
return !_n(vn, e);
}
var bn = {
"&": "&",
"<": "<",
">": ">",
"\"": """,
"'": "'",
"/": "/",
"`": "`",
"=": "="
};
function xn(e) {
return String(e).replace(/[&<>"'`=\/]/g, function(e) {
return bn[e];
});
}
var Sn = /\s*/, Cn = /\s+/, wn = /\s*=/, Tn = /\s*\}/, En = /#|\^|\/|>|\{|&|=|!/;
function Dn(e, t) {
if (!e) return [];
var n = !1, r = [], i = [], a = [], o = !1, s = !1, c = "", l = 0;
function u() {
if (o && !s) for (; a.length;) delete i[a.pop()];
else a = [];
o = !1, s = !1;
}
var d, f, p;
function m(e) {
if (typeof e == "string" && (e = e.split(Cn, 2)), !J(e) || e.length !== 2) throw Error("Invalid tags: " + e);
d = RegExp(pn(e[0]) + "\\s*"), f = RegExp("\\s*" + pn(e[1])), p = RegExp("\\s*" + pn("}" + e[1]));
}
m(t || Q.tags);
for (var h = new Y(e), g, _, v, y, b, x; !h.eos();) {
if (g = h.pos, v = h.scanUntil(d), v) for (var S = 0, C = v.length; S < C; ++S) y = v.charAt(S), yn(y) ? (a.push(i.length), c += y) : (s = !0, n = !0, c += " "), i.push([
"text",
y,
g,
g + 1
]), g += 1, y === "\n" && (u(), c = "", l = 0, n = !1);
if (!h.scan(d)) break;
if (o = !0, _ = h.scan(En) || "name", h.scan(Sn), _ === "=" ? (v = h.scanUntil(wn), h.scan(wn), h.scanUntil(f)) : _ === "{" ? (v = h.scanUntil(p), h.scan(Tn), h.scanUntil(f), _ = "&") : v = h.scanUntil(f), !h.scan(f)) throw Error("Unclosed tag at " + h.pos);
if (b = _ == ">" ? [
_,
v,
g,
h.pos,
c,
l,
n
] : [
_,
v,
g,
h.pos
], l++, i.push(b), _ === "#" || _ === "^") r.push(b);
else if (_ === "/") {
if (x = r.pop(), !x) throw Error("Unopened section \"" + v + "\" at " + g);
if (x[1] !== v) throw Error("Unclosed section \"" + x[1] + "\" at " + g);
} else _ === "name" || _ === "{" || _ === "&" ? s = !0 : _ === "=" && m(v);
}
if (u(), x = r.pop(), x) throw Error("Unclosed section \"" + x[1] + "\" at " + h.pos);
return kn(On(i));
}
function On(e) {
for (var t = [], n, r, i = 0, a = e.length; i < a; ++i) n = e[i], n && (n[0] === "text" && r && r[0] === "text" ? (r[1] += n[1], r[3] = n[3]) : (t.push(n), r = n));
return t;
}
function kn(e) {
for (var t = [], n = t, r = [], i, a, o = 0, s = e.length; o < s; ++o) switch (i = e[o], i[0]) {
case "#":
case "^":
n.push(i), r.push(i), n = i[4] = [];
break;
case "/":
a = r.pop(), a[5] = i[2], n = r.length > 0 ? r[r.length - 1][4] : t;
break;
default: n.push(i);
}
return t;
}
function Y(e) {
this.string = e, this.tail = e, this.pos = 0;
}
Y.prototype.eos = function() {
return this.tail === "";
}, Y.prototype.scan = function(e) {
var t = this.tail.match(e);
if (!t || t.index !== 0) return "";
var n = t[0];
return this.tail = this.tail.substring(n.length), this.pos += n.length, n;
}, Y.prototype.scanUntil = function(e) {
var t = this.tail.search(e), n;
switch (t) {
case -1:
n = this.tail, this.tail = "";
break;
case 0:
n = "";
break;
default: n = this.tail.substring(0, t), this.tail = this.tail.substring(t);
}
return this.pos += n.length, n;
};
function X(e, t) {
this.view = e, this.cache = { ".": this.view }, this.parent = t;
}
X.prototype.push = function(e) {
return new X(e, this);
}, X.prototype.lookup = function(e) {
var t = this.cache, n;
if (t.hasOwnProperty(e)) n = t[e];
else {
for (var r = this, i, a, o, s = !1; r;) {
if (e.indexOf(".") > 0) for (i = r.view, a = e.split("."), o = 0; i != null && o < a.length;) o === a.length - 1 && (s = mn(i, a[o]) || hn(i, a[o])), i = i[a[o++]];
else i = r.view[e], s = mn(r.view, e);
if (s) {
n = i;
break;
}
r = r.parent;
}
t[e] = n;
}
return dn(n) && (n = n.call(this.view)), n;
};
function Z() {
this.templateCache = {
_cache: {},
set: function(e, t) {
this._cache[e] = t;
},
get: function(e) {
return this._cache[e];
},
clear: function() {
this._cache = {};
}
};
}
Z.prototype.clearCache = function() {
this.templateCache !== void 0 && this.templateCache.clear();
}, Z.prototype.parse = function(e, t) {
var n = this.templateCache, r = e + ":" + (t || Q.tags).join(":"), i = n !== void 0, a = i ? n.get(r) : void 0;
return a ?? (a = Dn(e, t), i && n.set(r, a)), a;
}, Z.prototype.render = function(e, t, n, r) {
var i = this.getConfigTags(r), a = this.parse(e, i), o = t instanceof X ? t : new X(t, void 0);
return this.renderTokens(a, o, n, e, r);
}, Z.prototype.renderTokens = function(e, t, n, r, i) {
for (var a = "", o, s, c, l = 0, u = e.length; l < u; ++l) c = void 0, o = e[l], s = o[0], s === "#" ? c = this.renderSection(o, t, n, r, i) : s === "^" ? c = this.renderInverted(o, t, n, r, i) : s === ">" ? c = this.renderPartial(o, t, n, i) : s === "&" ? c = this.unescapedValue(o, t) : s === "name" ? c = this.escapedValue(o, t, i) : s === "text" && (c = this.rawValue(o)), c !== void 0 && (a += c);
return a;
}, Z.prototype.renderSection = function(e, t, n, r, i) {
var a = this, o = "", s = t.lookup(e[1]);
function c(e) {
return a.render(e, t, n, i);
}
if (s) {
if (J(s)) for (var l = 0, u = s.length; l < u; ++l) o += this.renderTokens(e[4], t.push(s[l]), n, r, i);
else if (typeof s == "object" || typeof s == "string" || typeof s == "number") o += this.renderTokens(e[4], t.push(s), n, r, i);
else if (dn(s)) {
if (typeof r != "string") throw Error("Cannot use higher-order sections without the original template");
s = s.call(t.view, r.slice(e[3], e[5]), c), s != null && (o += s);
} else o += this.renderTokens(e[4], t, n, r, i);
return o;
}
}, Z.prototype.renderInverted = function(e, t, n, r, i) {
var a = t.lookup(e[1]);
if (!a || J(a) && a.length === 0) return this.renderTokens(e[4], t, n, r, i);
}, Z.prototype.indentPartial = function(e, t, n) {
for (var r = t.replace(/[^ \t]/g, ""), i = e.split("\n"), a = 0; a < i.length; a++) i[a].length && (a > 0 || !n) && (i[a] = r + i[a]);
return i.join("\n");
}, Z.prototype.renderPartial = function(e, t, n, r) {
if (n) {
var i = this.getConfigTags(r), a = dn(n) ? n(e[1]) : n[e[1]];
if (a != null) {
var o = e[6], s = e[5], c = e[4], l = a;
s == 0 && c && (l = this.indentPartial(a, c, o));
var u = this.parse(l, i);
return this.renderTokens(u, t, n, l, r);
}
}
}, Z.prototype.unescapedValue = function(e, t) {
var n = t.lookup(e[1]);
if (n != null) return n;
}, Z.prototype.escapedValue = function(e, t, n) {
var r = this.getConfigEscape(n) || Q.escape, i = t.lookup(e[1]);
if (i != null) return typeof i == "number" && r === Q.escape ? String(i) : r(i);
}, Z.prototype.rawValue = function(e) {
return e[1];
}, Z.prototype.getConfigTags = function(e) {
if (J(e)) return e;
if (e && typeof e == "object") return e.tags;
}, Z.prototype.getConfigEscape = function(e) {
if (e && typeof e == "object" && !J(e)) return e.escape;
};
var Q = {
name: "mustache.js",
version: "4.2.0",
tags: ["{{", "}}"],
clearCache: void 0,
escape: void 0,
parse: void 0,
render: void 0,
Scanner: void 0,
Context: void 0,
Writer: void 0,
set templateCache(e) {
$.templateCache = e;
},
get templateCache() {
return $.templateCache;
}
}, $ = new Z();
Q.clearCache = function() {
return $.clearCache();
}, Q.parse = function(e, t) {
return $.parse(e, t);
}, Q.render = function(e, t, n, r) {
if (typeof e != "string") throw TypeError("Invalid template! Template should be a \"string\" but \"" + fn(e) + "\" was given as the first argument for mustache#render(template, view, partials)");
return $.render(e, t, n, r);
}, Q.escape = xn, Q.Scanner = Y, Q.Context = X, Q.Writer = Z;
var An = {
empty: {},
en: {
"*": {
prefix: "Every",
suffix: "",
text: "Unknown",
"*": {
value: { text: "{{value.text}}" },
range: { text: "{{start.text}}-{{end.text}}" },
step: { text: "every {{step.value}}" },
rangeStep: { text: "{{start.text}}-{{end.text}}/{{step.value}}" },
stepFrom: { text: "{{start.text}}/{{step.value}}" }
},
month: {
"*": { prefix: "in" },
any: { text: "every month" },
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" },
rangeStep: { text: "{{start.alt}}-{{end.alt}}/{{step.value}}" },
stepFrom: { text: "{{start.alt}}/{{step.value}}" }
},
day: {
"*": { prefix: "on" },
any: { text: "every day" },
noSpecific: { text: "no specific day" }
},
dayOfWeek: {
"*": { prefix: "on" },
any: { text: "every day of the week" },
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" },
rangeStep: { text: "{{start.alt}}-{{end.alt}}/{{step.value}}" },
stepFrom: { text: "{{start.alt}}/{{step.value}}" },
noSpecific: { text: "no specific day of the week" }
},
hour: {
"*": { prefix: "at" },
any: { text: "every hour" }
},
minute: {
"*": { prefix: ":" },
any: { text: "every minute" }
},
second: {
"*": { prefix: ":" },
any: { text: "every second" }
}
},
minute: { text: "Minute" },
hour: {
text: "Hour",
minute: {
"*": {
prefix: "at",
suffix: "minute(s)"
},
any: { text: "every" }
}
},
day: { text: "Day" },
week: { text: "Week" },
month: {
text: "Month",
dayOfWeek: { "*": { prefix: "and" } }
},
year: {
text: "Year",
dayOfWeek: { "*": { prefix: "and" } }
},
"q-second": { text: "Second" },
"q-minute": {
text: "Minute",
second: {
"*": {
prefix: "at",
suffix: "second(s)"
},
any: { text: "every" }
}
},
"q-hour": {
text: "Hour",
minute: { "*": { prefix: "at" } }
}
},
de: {
"*": {
prefix: "Jede",
suffix: "",
text: "Unknown",
"*": {
value: { text: "{{value.text}}" },
range: { text: "{{start.text}}-{{end.text}}" },
step: { text: "alle {{step.value}}" }
},
month: {
"*": { prefix: "im" },
any: {
prefix: "in",
text: "jedem Monat"
},
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" }
},
day: {
"*": { prefix: "den" },
any: {
prefix: "an",
text: "jedem Tag"
},
step: {
prefix: "",
text: "alle {{step.value}} Tage"
},
noSpecific: {
prefix: "an",
text: "keinem bestimmten Tag"
}
},
dayOfWeek: {
"*": { prefix: "am" },
any: {
prefix: "an",
text: "jedem Wochentag"
},
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" },
noSpecific: {
prefix: "und",
text: "keinem bestimmten Wochentag"
}
},
hour: {
"*": { prefix: "um" },
any: {
prefix: "zu",
text: "jeder Stunde"
},
step: {
prefix: "",
text: "alle {{step.value}} Stunden"
}
},
minute: {
"*": { prefix: ":" },
any: { text: "jede Minute" },
step: {
prefix: "",
text: "alle {{step.value}} Minuten"
}
},
second: {
"*": { prefix: ":" },
any: { text: "jede Sekunde" },
step: {
prefix: "",
text: "alle {{step.value}} Sekunden"
}
}
},
minute: { text: "Minute" },
hour: {
text: "Stunde",
minute: {
"*": {
prefix: "zu",
suffix: "Minute(n)"
},
any: { text: "jeder" }
}
},
day: {
prefix: "Jeden",
text: "Tag"
},
week: { text: "Woche" },
month: {
prefix: "Jedes",
text: "Monat"
},
year: {
prefix: "Jedes",
text: "Jahr"
},
"q-second": { text: "Sekunde" },
"q-minute": {
text: "Minute",
second: { "*": { prefix: "und" } }
},
"q-hour": {
text: "Stunde",
minute: { "*": { prefix: "und" } },
second: { "*": { prefix: "und" } }
}
},
pt: {
"*": {
prefix: "Todo(a)",
suffix: "",
text: "Desconhecido",
"*": {
any: { text: "todo {{field.id}}" },
value: { text: "{{value.text}}" },
range: { text: "{{start.text}}-{{end.text}}" },
step: { text: "todo {{step.value}}" }
},
month: {
"*": { prefix: "de" },
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" },
any: { text: "todo mês" }
},
day: {
"*": { prefix: "no(s) dia(s)" },
any: { text: "todos" }
},
dayOfWeek: {
"*": { prefix: "de" },
any: { text: "todos dias da semana" },
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" }
},
hour: {
"*": { prefix: "às" },
any: { text: "cada hora" }
},
minute: {
"*": { prefix: ":" },
any: { text: "cada minuto" }
}
},
minute: { text: "Minuto" },
hour: {
text: "Hora",
minute: {
"*": {
prefix: "e",
suffix: "minuto(s)"
},
any: { text: "cada" }
}
},
day: { text: "Dia" },
week: { text: "Semana" },
month: {
text: "Mês",
dayOfWeek: { "*": { prefix: "e de" } }
},
year: {
text: "Ano",
dayOfWeek: { "*": { prefix: "e de" } }
}
},
es: {
"*": {
prefix: "todos los",
suffix: "",
text: "Desconocido",
"*": {
any: { text: "todos los {{ field.id }}" },
value: { text: "{{ value.text }}" },
range: { text: "{{ start.text }}-{{ end.text }}" },
step: { text: "todos/as {{ step.value }}" }
},
month: {
"*": { prefix: "en" },
any: { text: "todos los meses" },
value: { text: "{{ value.alt }}" },
range: { text: "{{ start.alt }}-{{ end.alt }}" }
},
day: {
"*": { prefix: "en" },
any: { text: "todos los días" },
value: { text: "los días {{ value.alt }}" }
},
dayOfWeek: {
"*": { prefix: "de" },
any: { text: "todos los días de la semana" },
value: { text: "los {{ value.alt }}" },
range: { text: "{{ start.alt }}-{{ end.alt }}" }
},
hour: {
"*": { prefix: "a" },
any: { text: "todas las horas" },
value: { text: "las {{ value.text }}" }
},
minute: {
"*": { prefix: ":" },
any: { text: "todos los minutos" }
}
},
minute: {
prefix: "todos los",
text: "minutos"
},
hour: {
prefix: "todas las",
text: "horas",
minute: {
"*": {
prefix: "a los",
suffix: "minutos"
},
any: {
text: "todos",
prefix: "a",
suffix: "los minutos"
}
}
},
day: { text: "Días" },
week: { text: "Semanas" },
month: {
text: "Meses",
dayOfWeek: { "*": { prefix: "y" } }
},
year: {
text: "años",
dayOfWeek: { "*": { prefix: "y" } }
}
},
da: {
"*": {
prefix: "Hver",
suffix: "",
text: "Ukendt",
"*": {
value: { text: "{{value.text}}" },
range: { text: "{{start.text}}-{{end.text}}" },
step: { text: "hver {{step.value}}" }
},
month: {
"*": { prefix: "i" },
any: { text: "hver måned" },
value: { text: "{{value.alt}}" },
range: { text: "{{start.alt}}-{{end.alt}}" }
},
day: {
"*": { prefix: "og" },
any: { text: "hver dag i måneden" },
value: { text: "{{value.alt}}." },
range: { text: "{{start.alt}}.-{{end.alt}}." },