@agendize/vue-calendar
Version:
Agendize Vue Calendar Component
988 lines • 974 kB
JavaScript
import { defineComponent as An, h as Yn, Fragment as Qn, Teleport as Qm, getCurrentInstance as Yo, inject as Xm, ref as Lu, shallowRef as Km, computed as yr, watch as Ai, onMounted as Jm, onUnmounted as ep, createVNode as Ks, Text as tp, resolveDirective as Hu, createElementBlock as ke, openBlock as Ee, renderList as np, withDirectives as Js, createElementVNode as ue, normalizeClass as yi, unref as zt, withCtx as Bt, createCommentVNode as St, normalizeStyle as bs, toDisplayString as Ie, createBlock as Jr, createTextVNode as Es } from "vue";
import { useLogger as rp, getDomain as hl } from "@agendize/vue-tools";
import { Tag as ip } from "@agendize/design-system";
import { getStandardLocale as Ss } from "@agendize/az-i18n";
var qi, G, Uu, Wu, Xn, pn, ml, Fu, zu, Ri = {}, Bu = [], sp = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
function Zt(t, e) {
for (var n in e) t[n] = e[n];
return t;
}
function Yu(t) {
var e = t.parentNode;
e && e.removeChild(t);
}
function g(t, e, n) {
var r, i, s, o = {};
for (s in e) s == "key" ? r = e[s] : s == "ref" ? i = e[s] : o[s] = e[s];
if (arguments.length > 2 && (o.children = arguments.length > 3 ? qi.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (s in t.defaultProps) o[s] === void 0 && (o[s] = t.defaultProps[s]);
return bi(t, o, r, i, null);
}
function bi(t, e, n, r, i) {
var s = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: i ?? ++Uu };
return i == null && G.vnode != null && G.vnode(s), s;
}
function ie() {
return { current: null };
}
function Q(t) {
return t.children;
}
function op(t, e, n, r, i) {
var s;
for (s in n) s === "children" || s === "key" || s in e || Ii(t, s, null, n[s], r);
for (s in e) i && typeof e[s] != "function" || s === "children" || s === "key" || s === "value" || s === "checked" || n[s] === e[s] || Ii(t, s, e[s], n[s], r);
}
function pl(t, e, n) {
e[0] === "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || sp.test(e) ? n : n + "px";
}
function Ii(t, e, n, r, i) {
var s;
e: if (e === "style") if (typeof n == "string") t.style.cssText = n;
else {
if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || pl(t.style, e, "");
if (n) for (e in n) r && n[e] === r[e] || pl(t.style, e, n[e]);
}
else if (e[0] === "o" && e[1] === "n") s = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = n, n ? r || t.addEventListener(e, s ? vl : gl, s) : t.removeEventListener(e, s ? vl : gl, s);
else if (e !== "dangerouslySetInnerHTML") {
if (i) e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e in t) try {
t[e] = n ?? "";
break e;
} catch {
}
typeof n == "function" || (n == null || n === !1 && e.indexOf("-") == -1 ? t.removeAttribute(e) : t.setAttribute(e, n));
}
}
function gl(t) {
Xn = !0;
try {
return this.l[t.type + !1](G.event ? G.event(t) : t);
} finally {
Xn = !1;
}
}
function vl(t) {
Xn = !0;
try {
return this.l[t.type + !0](G.event ? G.event(t) : t);
} finally {
Xn = !1;
}
}
function rt(t, e) {
this.props = t, this.context = e;
}
function Ir(t, e) {
if (e == null) return t.__ ? Ir(t.__, t.__.__k.indexOf(t) + 1) : null;
for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
return typeof t.type == "function" ? Ir(t) : null;
}
function Vu(t) {
var e, n;
if ((t = t.__) != null && t.__c != null) {
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) {
t.__e = t.__c.base = n.__e;
break;
}
return Vu(t);
}
}
function ap(t) {
Xn ? setTimeout(t) : Fu(t);
}
function eo(t) {
(!t.__d && (t.__d = !0) && pn.push(t) && !Oi.__r++ || ml !== G.debounceRendering) && ((ml = G.debounceRendering) || ap)(Oi);
}
function Oi() {
var t, e, n, r, i, s, o, a;
for (pn.sort(function(l, c) {
return l.__v.__b - c.__v.__b;
}); t = pn.shift(); ) t.__d && (e = pn.length, r = void 0, i = void 0, o = (s = (n = t).__v).__e, (a = n.__P) && (r = [], (i = Zt({}, s)).__v = s.__v + 1, Vo(a, s, i, n.__n, a.ownerSVGElement !== void 0, s.__h != null ? [o] : null, r, o ?? Ir(s), s.__h), Zu(r, s), s.__e != o && Vu(s)), pn.length > e && pn.sort(function(l, c) {
return l.__v.__b - c.__v.__b;
}));
Oi.__r = 0;
}
function ju(t, e, n, r, i, s, o, a, l, c) {
var u, d, h, f, m, v, y, p = r && r.__k || Bu, b = p.length;
for (n.__k = [], u = 0; u < e.length; u++) if ((f = n.__k[u] = (f = e[u]) == null || typeof f == "boolean" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? bi(null, f, null, null, f) : Array.isArray(f) ? bi(Q, { children: f }, null, null, null) : f.__b > 0 ? bi(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null) {
if (f.__ = n, f.__b = n.__b + 1, (h = p[u]) === null || h && f.key == h.key && f.type === h.type) p[u] = void 0;
else for (d = 0; d < b; d++) {
if ((h = p[d]) && f.key == h.key && f.type === h.type) {
p[d] = void 0;
break;
}
h = null;
}
Vo(t, f, h = h || Ri, i, s, o, a, l, c), m = f.__e, (d = f.ref) && h.ref != d && (y || (y = []), h.ref && y.push(h.ref, null, f), y.push(d, f.__c || m, f)), m != null ? (v == null && (v = m), typeof f.type == "function" && f.__k === h.__k ? f.__d = l = Gu(f, l, t) : l = $u(t, f, h, p, m, l), typeof n.type == "function" && (n.__d = l)) : l && h.__e == l && l.parentNode != t && (l = Ir(h));
}
for (n.__e = v, u = b; u--; ) p[u] != null && (typeof n.type == "function" && p[u].__e != null && p[u].__e == n.__d && (n.__d = qu(r).nextSibling), Xu(p[u], p[u]));
if (y) for (u = 0; u < y.length; u++) Qu(y[u], y[++u], y[++u]);
}
function Gu(t, e, n) {
for (var r, i = t.__k, s = 0; i && s < i.length; s++) (r = i[s]) && (r.__ = t, e = typeof r.type == "function" ? Gu(r, e, n) : $u(n, r, r, i, r.__e, e));
return e;
}
function Ni(t, e) {
return e = e || [], t == null || typeof t == "boolean" || (Array.isArray(t) ? t.some(function(n) {
Ni(n, e);
}) : e.push(t)), e;
}
function $u(t, e, n, r, i, s) {
var o, a, l;
if (e.__d !== void 0) o = e.__d, e.__d = void 0;
else if (n == null || i != s || i.parentNode == null) e: if (s == null || s.parentNode !== t) t.appendChild(i), o = null;
else {
for (a = s, l = 0; (a = a.nextSibling) && l < r.length; l += 1) if (a == i) break e;
t.insertBefore(i, s), o = s;
}
return o !== void 0 ? o : i.nextSibling;
}
function qu(t) {
var e, n, r;
if (t.type == null || typeof t.type == "string") return t.__e;
if (t.__k) {
for (e = t.__k.length - 1; e >= 0; e--) if ((n = t.__k[e]) && (r = qu(n))) return r;
}
return null;
}
function Vo(t, e, n, r, i, s, o, a, l) {
var c, u, d, h, f, m, v, y, p, b, S, E, I, R, O, k = e.type;
if (e.constructor !== void 0) return null;
n.__h != null && (l = n.__h, a = e.__e = n.__e, e.__h = null, s = [a]), (c = G.__b) && c(e);
try {
e: if (typeof k == "function") {
if (y = e.props, p = (c = k.contextType) && r[c.__c], b = c ? p ? p.props.value : c.__ : r, n.__c ? v = (u = e.__c = n.__c).__ = u.__E : ("prototype" in k && k.prototype.render ? e.__c = u = new k(y, b) : (e.__c = u = new rt(y, b), u.constructor = k, u.render = cp), p && p.sub(u), u.props = y, u.state || (u.state = {}), u.context = b, u.__n = r, d = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), k.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Zt({}, u.__s)), Zt(u.__s, k.getDerivedStateFromProps(y, u.__s))), h = u.props, f = u.state, u.__v = e, d) k.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), u.componentDidMount != null && u.__h.push(u.componentDidMount);
else {
if (k.getDerivedStateFromProps == null && y !== h && u.componentWillReceiveProps != null && u.componentWillReceiveProps(y, b), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(y, u.__s, b) === !1 || e.__v === n.__v) {
for (e.__v !== n.__v && (u.props = y, u.state = u.__s, u.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(P) {
P && (P.__ = e);
}), S = 0; S < u._sb.length; S++) u.__h.push(u._sb[S]);
u._sb = [], u.__h.length && o.push(u);
break e;
}
u.componentWillUpdate != null && u.componentWillUpdate(y, u.__s, b), u.componentDidUpdate != null && u.__h.push(function() {
u.componentDidUpdate(h, f, m);
});
}
if (u.context = b, u.props = y, u.__P = t, E = G.__r, I = 0, "prototype" in k && k.prototype.render) {
for (u.state = u.__s, u.__d = !1, E && E(e), c = u.render(u.props, u.state, u.context), R = 0; R < u._sb.length; R++) u.__h.push(u._sb[R]);
u._sb = [];
} else do
u.__d = !1, E && E(e), c = u.render(u.props, u.state, u.context), u.state = u.__s;
while (u.__d && ++I < 25);
u.state = u.__s, u.getChildContext != null && (r = Zt(Zt({}, r), u.getChildContext())), d || u.getSnapshotBeforeUpdate == null || (m = u.getSnapshotBeforeUpdate(h, f)), O = c != null && c.type === Q && c.key == null ? c.props.children : c, ju(t, Array.isArray(O) ? O : [O], e, n, r, i, s, o, a, l), u.base = e.__e, e.__h = null, u.__h.length && o.push(u), v && (u.__E = u.__ = null), u.__e = !1;
} else s == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = lp(n.__e, e, n, r, i, s, o, l);
(c = G.diffed) && c(e);
} catch (P) {
e.__v = null, (l || s != null) && (e.__e = a, e.__h = !!l, s[s.indexOf(a)] = null), G.__e(P, e, n);
}
}
function Zu(t, e) {
G.__c && G.__c(e, t), t.some(function(n) {
try {
t = n.__h, n.__h = [], t.some(function(r) {
r.call(n);
});
} catch (r) {
G.__e(r, n.__v);
}
});
}
function lp(t, e, n, r, i, s, o, a) {
var l, c, u, d = n.props, h = e.props, f = e.type, m = 0;
if (f === "svg" && (i = !0), s != null) {
for (; m < s.length; m++) if ((l = s[m]) && "setAttribute" in l == !!f && (f ? l.localName === f : l.nodeType === 3)) {
t = l, s[m] = null;
break;
}
}
if (t == null) {
if (f === null) return document.createTextNode(h);
t = i ? document.createElementNS("http://www.w3.org/2000/svg", f) : document.createElement(f, h.is && h), s = null, a = !1;
}
if (f === null) d === h || a && t.data === h || (t.data = h);
else {
if (s = s && qi.call(t.childNodes), c = (d = n.props || Ri).dangerouslySetInnerHTML, u = h.dangerouslySetInnerHTML, !a) {
if (s != null) for (d = {}, m = 0; m < t.attributes.length; m++) d[t.attributes[m].name] = t.attributes[m].value;
(u || c) && (u && (c && u.__html == c.__html || u.__html === t.innerHTML) || (t.innerHTML = u && u.__html || ""));
}
if (op(t, h, d, i, a), u) e.__k = [];
else if (m = e.props.children, ju(t, Array.isArray(m) ? m : [m], e, n, r, i && f !== "foreignObject", s, o, s ? s[0] : n.__k && Ir(n, 0), a), s != null) for (m = s.length; m--; ) s[m] != null && Yu(s[m]);
a || ("value" in h && (m = h.value) !== void 0 && (m !== t.value || f === "progress" && !m || f === "option" && m !== d.value) && Ii(t, "value", m, d.value, !1), "checked" in h && (m = h.checked) !== void 0 && m !== t.checked && Ii(t, "checked", m, d.checked, !1));
}
return t;
}
function Qu(t, e, n) {
try {
typeof t == "function" ? t(e) : t.current = e;
} catch (r) {
G.__e(r, n);
}
}
function Xu(t, e, n) {
var r, i;
if (G.unmount && G.unmount(t), (r = t.ref) && (r.current && r.current !== t.__e || Qu(r, null, e)), (r = t.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (s) {
G.__e(s, e);
}
r.base = r.__P = null, t.__c = void 0;
}
if (r = t.__k) for (i = 0; i < r.length; i++) r[i] && Xu(r[i], e, n || typeof t.type != "function");
n || t.__e == null || Yu(t.__e), t.__ = t.__e = t.__d = void 0;
}
function cp(t, e, n) {
return this.constructor(t, n);
}
function Or(t, e, n) {
var r, i, s;
G.__ && G.__(t, e), i = (r = !1) ? null : e.__k, s = [], Vo(e, t = e.__k = g(Q, null, [t]), i || Ri, Ri, e.ownerSVGElement !== void 0, i ? null : e.firstChild ? qi.call(e.childNodes) : null, s, i ? i.__e : e.firstChild, r), Zu(s, t);
}
function up(t, e) {
var n = { __c: e = "__cC" + zu++, __: t, Consumer: function(r, i) {
return r.children(i);
}, Provider: function(r) {
var i, s;
return this.getChildContext || (i = [], (s = {})[e] = this, this.getChildContext = function() {
return s;
}, this.shouldComponentUpdate = function(o) {
this.props.value !== o.value && i.some(function(a) {
a.__e = !0, eo(a);
});
}, this.sub = function(o) {
i.push(o);
var a = o.componentWillUnmount;
o.componentWillUnmount = function() {
i.splice(i.indexOf(o), 1), a && a.call(o);
};
}), r.children;
} };
return n.Provider.__ = n.Consumer.contextType = n;
}
qi = Bu.slice, G = { __e: function(t, e, n, r) {
for (var i, s, o; e = e.__; ) if ((i = e.__c) && !i.__) try {
if ((s = i.constructor) && s.getDerivedStateFromError != null && (i.setState(s.getDerivedStateFromError(t)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(t, r || {}), o = i.__d), o) return i.__E = i;
} catch (a) {
t = a;
}
throw t;
} }, Uu = 0, Wu = function(t) {
return t != null && t.constructor === void 0;
}, Xn = !1, rt.prototype.setState = function(t, e) {
var n;
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Zt({}, this.state), typeof t == "function" && (t = t(Zt({}, n), this.props)), t && Zt(n, t), t != null && this.__v && (e && this._sb.push(e), eo(this));
}, rt.prototype.forceUpdate = function(t) {
this.__v && (this.__e = !0, t && this.__h.push(t), eo(this));
}, rt.prototype.render = Q, pn = [], Fu = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Oi.__r = 0, zu = 0;
var Tt, _s, yl, Ku = [], Ts = [], bl = G.__b, El = G.__r, Sl = G.diffed, _l = G.__c, Tl = G.unmount;
function dp() {
for (var t; t = Ku.shift(); ) if (t.__P && t.__H) try {
t.__H.__h.forEach(Ei), t.__H.__h.forEach(to), t.__H.__h = [];
} catch (e) {
t.__H.__h = [], G.__e(e, t.__v);
}
}
G.__b = function(t) {
Tt = null, bl && bl(t);
}, G.__r = function(t) {
El && El(t);
var e = (Tt = t.__c).__H;
e && (_s === Tt ? (e.__h = [], Tt.__h = [], e.__.forEach(function(n) {
n.__N && (n.__ = n.__N), n.__V = Ts, n.__N = n.i = void 0;
})) : (e.__h.forEach(Ei), e.__h.forEach(to), e.__h = [])), _s = Tt;
}, G.diffed = function(t) {
Sl && Sl(t);
var e = t.__c;
e && e.__H && (e.__H.__h.length && (Ku.push(e) !== 1 && yl === G.requestAnimationFrame || ((yl = G.requestAnimationFrame) || fp)(dp)), e.__H.__.forEach(function(n) {
n.i && (n.__H = n.i), n.__V !== Ts && (n.__ = n.__V), n.i = void 0, n.__V = Ts;
})), _s = Tt = null;
}, G.__c = function(t, e) {
e.some(function(n) {
try {
n.__h.forEach(Ei), n.__h = n.__h.filter(function(r) {
return !r.__ || to(r);
});
} catch (r) {
e.some(function(i) {
i.__h && (i.__h = []);
}), e = [], G.__e(r, n.__v);
}
}), _l && _l(t, e);
}, G.unmount = function(t) {
Tl && Tl(t);
var e, n = t.__c;
n && n.__H && (n.__H.__.forEach(function(r) {
try {
Ei(r);
} catch (i) {
e = i;
}
}), n.__H = void 0, e && G.__e(e, n.__v));
};
var Dl = typeof requestAnimationFrame == "function";
function fp(t) {
var e, n = function() {
clearTimeout(r), Dl && cancelAnimationFrame(e), setTimeout(t);
}, r = setTimeout(n, 100);
Dl && (e = requestAnimationFrame(n));
}
function Ei(t) {
var e = Tt, n = t.__c;
typeof n == "function" && (t.__c = void 0, n()), Tt = e;
}
function to(t) {
var e = Tt;
t.__c = t.__(), Tt = e;
}
function hp(t, e) {
for (var n in e) t[n] = e[n];
return t;
}
function wl(t, e) {
for (var n in t) if (n !== "__source" && !(n in e)) return !0;
for (var r in e) if (r !== "__source" && t[r] !== e[r]) return !0;
return !1;
}
function Cl(t) {
this.props = t;
}
(Cl.prototype = new rt()).isPureReactComponent = !0, Cl.prototype.shouldComponentUpdate = function(t, e) {
return wl(this.props, t) || wl(this.state, e);
};
var Al = G.__b;
G.__b = function(t) {
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), Al && Al(t);
};
var mp = G.__e;
G.__e = function(t, e, n, r) {
if (t.then) {
for (var i, s = e; s = s.__; ) if ((i = s.__c) && i.__c) return e.__e == null && (e.__e = n.__e, e.__k = n.__k), i.__c(t, e);
}
mp(t, e, n, r);
};
var Rl = G.unmount;
function Ju(t, e, n) {
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(r) {
typeof r.__c == "function" && r.__c();
}), t.__c.__H = null), (t = hp({}, t)).__c != null && (t.__c.__P === n && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(r) {
return Ju(r, e, n);
})), t;
}
function ed(t, e, n) {
return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(r) {
return ed(r, e, n);
}), t.__c && t.__c.__P === e && (t.__e && n.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = n)), t;
}
function Ds() {
this.__u = 0, this.t = null, this.__b = null;
}
function td(t) {
var e = t.__.__c;
return e && e.__a && e.__a(t);
}
function ei() {
this.u = null, this.o = null;
}
G.unmount = function(t) {
var e = t.__c;
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), Rl && Rl(t);
}, (Ds.prototype = new rt()).__c = function(t, e) {
var n = e.__c, r = this;
r.t == null && (r.t = []), r.t.push(n);
var i = td(r.__v), s = !1, o = function() {
s || (s = !0, n.__R = null, i ? i(a) : a());
};
n.__R = o;
var a = function() {
if (!--r.__u) {
if (r.state.__a) {
var c = r.state.__a;
r.__v.__k[0] = ed(c, c.__c.__P, c.__c.__O);
}
var u;
for (r.setState({ __a: r.__b = null }); u = r.t.pop(); ) u.forceUpdate();
}
}, l = e.__h === !0;
r.__u++ || l || r.setState({ __a: r.__b = r.__v.__k[0] }), t.then(o, o);
}, Ds.prototype.componentWillUnmount = function() {
this.t = [];
}, Ds.prototype.render = function(t, e) {
if (this.__b) {
if (this.__v.__k) {
var n = document.createElement("div"), r = this.__v.__k[0].__c;
this.__v.__k[0] = Ju(this.__b, n, r.__O = r.__P);
}
this.__b = null;
}
var i = e.__a && g(Q, null, t.fallback);
return i && (i.__h = null), [g(Q, null, e.__a ? null : t.children), i];
};
var Il = function(t, e, n) {
if (++n[1] === n[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size)) for (n = t.u; n; ) {
for (; n.length > 3; ) n.pop()();
if (n[1] < n[0]) break;
t.u = n = n[2];
}
};
function pp(t) {
return this.getChildContext = function() {
return t.context;
}, t.children;
}
function gp(t) {
var e = this, n = t.i;
e.componentWillUnmount = function() {
Or(null, e.l), e.l = null, e.i = null;
}, e.i && e.i !== n && e.componentWillUnmount(), t.__v ? (e.l || (e.i = n, e.l = { nodeType: 1, parentNode: n, childNodes: [], appendChild: function(r) {
this.childNodes.push(r), e.i.appendChild(r);
}, insertBefore: function(r, i) {
this.childNodes.push(r), e.i.appendChild(r);
}, removeChild: function(r) {
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), e.i.removeChild(r);
} }), Or(g(pp, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
}
function vp(t, e) {
var n = g(gp, { __v: t, i: e });
return n.containerInfo = e, n;
}
(ei.prototype = new rt()).__a = function(t) {
var e = this, n = td(e.__v), r = e.o.get(t);
return r[0]++, function(i) {
var s = function() {
e.props.revealOrder ? (r.push(i), Il(e, t, r)) : i();
};
n ? n(s) : s();
};
}, ei.prototype.render = function(t) {
this.u = null, this.o = /* @__PURE__ */ new Map();
var e = Ni(t.children);
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
for (var n = e.length; n--; ) this.o.set(e[n], this.u = [1, 0, this.u]);
return t.children;
}, ei.prototype.componentDidUpdate = ei.prototype.componentDidMount = function() {
var t = this;
this.o.forEach(function(e, n) {
Il(t, n, e);
});
};
var yp = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, bp = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ep = typeof document < "u", Sp = function(t) {
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(t);
};
rt.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
Object.defineProperty(rt.prototype, t, { configurable: !0, get: function() {
return this["UNSAFE_" + t];
}, set: function(e) {
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
} });
});
var Ol = G.event;
function _p() {
}
function Tp() {
return this.cancelBubble;
}
function Dp() {
return this.defaultPrevented;
}
G.event = function(t) {
return Ol && (t = Ol(t)), t.persist = _p, t.isPropagationStopped = Tp, t.isDefaultPrevented = Dp, t.nativeEvent = t;
};
var Nl = { configurable: !0, get: function() {
return this.class;
} }, xl = G.vnode;
G.vnode = function(t) {
var e = t.type, n = t.props, r = n;
if (typeof e == "string") {
var i = e.indexOf("-") === -1;
for (var s in r = {}, n) {
var o = n[s];
Ep && s === "children" && e === "noscript" || s === "value" && "defaultValue" in n && o == null || (s === "defaultValue" && "value" in n && n.value == null ? s = "value" : s === "download" && o === !0 ? o = "" : /ondoubleclick/i.test(s) ? s = "ondblclick" : /^onchange(textarea|input)/i.test(s + e) && !Sp(n.type) ? s = "oninput" : /^onfocus$/i.test(s) ? s = "onfocusin" : /^onblur$/i.test(s) ? s = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s) ? s = s.toLowerCase() : i && bp.test(s) ? s = s.replace(/[A-Z0-9]/g, "-$&").toLowerCase() : o === null && (o = void 0), /^oninput$/i.test(s) && (s = s.toLowerCase(), r[s] && (s = "oninputCapture")), r[s] = o);
}
e == "select" && r.multiple && Array.isArray(r.value) && (r.value = Ni(n.children).forEach(function(a) {
a.props.selected = r.value.indexOf(a.props.value) != -1;
})), e == "select" && r.defaultValue != null && (r.value = Ni(n.children).forEach(function(a) {
a.props.selected = r.multiple ? r.defaultValue.indexOf(a.props.value) != -1 : r.defaultValue == a.props.value;
})), t.props = r, n.class != n.className && (Nl.enumerable = "className" in n, n.className != null && (r.class = n.className), Object.defineProperty(r, "className", Nl));
}
t.$$typeof = yp, xl && xl(t);
};
var kl = G.__r;
G.__r = function(t) {
kl && kl(t), t.__c;
};
const nd = [], no = /* @__PURE__ */ new Map();
function Rn(t) {
nd.push(t), no.forEach((e) => {
id(e, t);
});
}
function wp(t) {
t.isConnected && // sometimes true if SSR system simulates DOM
t.getRootNode && rd(t.getRootNode());
}
function rd(t) {
let e = no.get(t);
if (!e || !e.isConnected) {
if (e = t.querySelector("style[data-fullcalendar]"), !e) {
e = document.createElement("style"), e.setAttribute("data-fullcalendar", "");
const n = Ap();
n && (e.nonce = n);
const r = t === document ? document.head : t, i = t === document ? r.querySelector("script,link[rel=stylesheet],link[as=style],style") : r.firstChild;
r.insertBefore(e, i);
}
no.set(t, e), Cp(e);
}
}
function Cp(t) {
for (const e of nd)
id(t, e);
}
function id(t, e) {
const { sheet: n } = t, r = n.cssRules.length;
e.split("}").forEach((i, s) => {
i = i.trim(), i && n.insertRule(i + "}", r + s);
});
}
let ws;
function Ap() {
return ws === void 0 && (ws = Rp()), ws;
}
function Rp() {
const t = document.querySelector('meta[name="csp-nonce"]');
if (t && t.hasAttribute("content"))
return t.getAttribute("content");
const e = document.querySelector("script[nonce]");
return e && e.nonce || "";
}
typeof document < "u" && rd(document);
var Ip = ':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,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") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';
Rn(Ip);
class Nr {
constructor(e) {
this.drainedOption = e, this.isRunning = !1, this.isDirty = !1, this.pauseDepths = {}, this.timeoutId = 0;
}
request(e) {
this.isDirty = !0, this.isPaused() || (this.clearTimeout(), e == null ? this.tryDrain() : this.timeoutId = setTimeout(
// NOT OPTIMAL! TODO: look at debounce
this.tryDrain.bind(this),
e
));
}
pause(e = "") {
let { pauseDepths: n } = this;
n[e] = (n[e] || 0) + 1, this.clearTimeout();
}
resume(e = "", n) {
let { pauseDepths: r } = this;
e in r && (n ? delete r[e] : (r[e] -= 1, r[e] <= 0 && delete r[e]), this.tryDrain());
}
isPaused() {
return Object.keys(this.pauseDepths).length;
}
tryDrain() {
if (!this.isRunning && !this.isPaused()) {
for (this.isRunning = !0; this.isDirty; )
this.isDirty = !1, this.drained();
this.isRunning = !1;
}
}
clear() {
this.clearTimeout(), this.isDirty = !1, this.pauseDepths = {};
}
clearTimeout() {
this.timeoutId && (clearTimeout(this.timeoutId), this.timeoutId = 0);
}
drained() {
this.drainedOption && this.drainedOption();
}
}
function Zi(t) {
t.parentNode && t.parentNode.removeChild(t);
}
function Me(t, e) {
if (t.closest)
return t.closest(e);
if (!document.documentElement.contains(t))
return null;
do {
if (sd(t, e))
return t;
t = t.parentElement || t.parentNode;
} while (t !== null && t.nodeType === 1);
return null;
}
function sd(t, e) {
return (t.matches || t.matchesSelector || t.msMatchesSelector).call(t, e);
}
function In(t, e) {
let n = t instanceof HTMLElement ? [t] : t, r = [];
for (let i = 0; i < n.length; i += 1) {
let s = n[i].querySelectorAll(e);
for (let o = 0; o < s.length; o += 1)
r.push(s[o]);
}
return r;
}
function Op(t, e) {
let n = t instanceof HTMLElement ? [t] : t, r = [];
for (let i = 0; i < n.length; i += 1) {
let s = n[i].children;
for (let o = 0; o < s.length; o += 1) {
let a = s[o];
sd(a, e) && r.push(a);
}
}
return r;
}
const Np = /(top|left|right|bottom|width|height)$/i;
function Vn(t, e) {
for (let n in e)
od(t, n, e[n]);
}
function od(t, e, n) {
n == null ? t.style[e] = "" : typeof n == "number" && Np.test(e) ? t.style[e] = `${n}px` : t.style[e] = n;
}
function ad(t) {
var e, n;
return (n = (e = t.composedPath) === null || e === void 0 ? void 0 : e.call(t)[0]) !== null && n !== void 0 ? n : t.target;
}
let Ml = 0;
function Kt() {
return Ml += 1, "fc-dom-" + Ml;
}
function Qi(t) {
t.preventDefault();
}
function xp(t, e) {
return (n) => {
let r = Me(n.target, t);
r && e.call(r, n, r);
};
}
function ld(t, e, n, r) {
let i = xp(n, r);
return t.addEventListener(e, i), () => {
t.removeEventListener(e, i);
};
}
function kp(t, e, n, r) {
let i;
return ld(t, "mouseover", e, (s, o) => {
if (o !== i) {
i = o, n(s, o);
let a = (l) => {
i = null, r(l, o), o.removeEventListener("mouseleave", a);
};
o.addEventListener("mouseleave", a);
}
});
}
const Pl = [
"webkitTransitionEnd",
"otransitionend",
"oTransitionEnd",
"msTransitionEnd",
"transitionend"
];
function Mp(t, e) {
let n = (r) => {
e(r), Pl.forEach((i) => {
t.removeEventListener(i, n);
});
};
Pl.forEach((r) => {
t.addEventListener(r, n);
});
}
function cd(t) {
return Object.assign({ onClick: t }, ud(t));
}
function ud(t) {
return {
tabIndex: 0,
onKeyDown(e) {
(e.key === "Enter" || e.key === " ") && (t(e), e.preventDefault());
}
};
}
let Ll = 0;
function wt() {
return Ll += 1, String(Ll);
}
function jo() {
document.body.classList.add("fc-not-allowed");
}
function Go() {
document.body.classList.remove("fc-not-allowed");
}
function Pp(t) {
t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.addEventListener("selectstart", Qi);
}
function Lp(t) {
t.style.userSelect = "", t.style.webkitUserSelect = "", t.removeEventListener("selectstart", Qi);
}
function Hp(t) {
t.addEventListener("contextmenu", Qi);
}
function Up(t) {
t.removeEventListener("contextmenu", Qi);
}
function $o(t) {
let e = [], n = [], r, i;
for (typeof t == "string" ? n = t.split(/\s*,\s*/) : typeof t == "function" ? n = [t] : Array.isArray(t) && (n = t), r = 0; r < n.length; r += 1)
i = n[r], typeof i == "string" ? e.push(i.charAt(0) === "-" ? { field: i.substring(1), order: -1 } : { field: i, order: 1 }) : typeof i == "function" && e.push({ func: i });
return e;
}
function dd(t, e, n) {
let r, i;
for (r = 0; r < n.length; r += 1)
if (i = Wp(t, e, n[r]), i)
return i;
return 0;
}
function Wp(t, e, n) {
return n.func ? n.func(t, e) : fd(t[n.field], e[n.field]) * (n.order || 1);
}
function fd(t, e) {
return !t && !e ? 0 : e == null ? -1 : t == null ? 1 : typeof t == "string" || typeof e == "string" ? String(t).localeCompare(String(e)) : t - e;
}
function It(t, e) {
let n = String(t);
return "000".substr(0, e - n.length) + n;
}
function wr(t, e, n) {
return typeof t == "function" ? t(...e) : typeof t == "string" ? e.reduce((r, i, s) => r.replace("$" + s, i || ""), t) : n;
}
function Fp(t, e) {
return t - e;
}
function yn(t) {
return t % 1 === 0;
}
function zp(t) {
let e = t.querySelector(".fc-scrollgrid-shrink-frame"), n = t.querySelector(".fc-scrollgrid-shrink-cushion");
if (!e)
throw new Error("needs fc-scrollgrid-shrink-frame className");
if (!n)
throw new Error("needs fc-scrollgrid-shrink-cushion className");
return t.getBoundingClientRect().width - e.getBoundingClientRect().width + // the cell padding+border
n.getBoundingClientRect().width;
}
const Hl = ["years", "months", "days", "milliseconds"], Bp = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
function K(t, e) {
return typeof t == "string" ? Yp(t) : typeof t == "object" && t ? Ul(t) : typeof t == "number" ? Ul({ [e || "milliseconds"]: t }) : null;
}
function Yp(t) {
let e = Bp.exec(t);
if (e) {
let n = e[1] ? -1 : 1;
return {
years: 0,
months: 0,
days: n * (e[2] ? parseInt(e[2], 10) : 0),
milliseconds: n * ((e[3] ? parseInt(e[3], 10) : 0) * 60 * 60 * 1e3 + // hours
(e[4] ? parseInt(e[4], 10) : 0) * 60 * 1e3 + // minutes
(e[5] ? parseInt(e[5], 10) : 0) * 1e3 + // seconds
(e[6] ? parseInt(e[6], 10) : 0))
};
}
return null;
}
function Ul(t) {
let e = {
years: t.years || t.year || 0,
months: t.months || t.month || 0,
days: t.days || t.day || 0,
milliseconds: (t.hours || t.hour || 0) * 60 * 60 * 1e3 + // hours
(t.minutes || t.minute || 0) * 60 * 1e3 + // minutes
(t.seconds || t.second || 0) * 1e3 + // seconds
(t.milliseconds || t.millisecond || t.ms || 0)
// ms
}, n = t.weeks || t.week;
return n && (e.days += n * 7, e.specifiedWeeks = !0), e;
}
function Vp(t, e) {
return t.years === e.years && t.months === e.months && t.days === e.days && t.milliseconds === e.milliseconds;
}
function hd(t) {
return !t.years && !t.months && !t.milliseconds ? t.days : 0;
}
function ro(t, e) {
return {
years: t.years + e.years,
months: t.months + e.months,
days: t.days + e.days,
milliseconds: t.milliseconds + e.milliseconds
};
}
function jp(t, e) {
return {
years: t.years - e.years,
months: t.months - e.months,
days: t.days - e.days,
milliseconds: t.milliseconds - e.milliseconds
};
}
function md(t, e) {
return {
years: t.years * e,
months: t.months * e,
days: t.days * e,
milliseconds: t.milliseconds * e
};
}
function Gp(t) {
return jn(t) / 365;
}
function $p(t) {
return jn(t) / 30;
}
function jn(t) {
return je(t) / 864e5;
}
function qp(t) {
return je(t) / (1e3 * 60);
}
function Zp(t) {
return je(t) / 1e3;
}
function je(t) {
return t.years * (365 * 864e5) + t.months * (30 * 864e5) + t.days * 864e5 + t.milliseconds;
}
function tn(t, e) {
let n = null;
for (let r = 0; r < Hl.length; r += 1) {
let i = Hl[r];
if (e[i]) {
let s = t[i] / e[i];
if (!yn(s) || n !== null && n !== s)
return null;
n = s;
} else if (t[i])
return null;
}
return n;
}
function nn(t) {
let e = t.milliseconds;
if (e) {
if (e % 1e3 !== 0)
return { unit: "millisecond", value: e };
if (e % (1e3 * 60) !== 0)
return { unit: "second", value: e / 1e3 };
if (e % (1e3 * 60 * 60) !== 0)
return { unit: "minute", value: e / (1e3 * 60) };
if (e)
return { unit: "hour", value: e / (1e3 * 60 * 60) };
}
return t.days ? t.specifiedWeeks && t.days % 7 === 0 ? { unit: "week", value: t.days / 7 } : { unit: "day", value: t.days } : t.months ? { unit: "month", value: t.months } : t.years ? { unit: "year", value: t.years } : { unit: "millisecond", value: 0 };
}
function Qp(t, e) {
let n = 0, r = 0;
for (; r < t.length; )
t[r] === e ? (t.splice(r, 1), n += 1) : r += 1;
return n;
}
function ot(t, e, n) {
if (t === e)
return !0;
let r = t.length, i;
if (r !== e.length)
return !1;
for (i = 0; i < r; i += 1)
if (!(n ? n(t[i], e[i]) : t[i] === e[i]))
return !1;
return !0;
}
const pd = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
function Wl(t, e) {
let n = Qt(t);
return n[2] += e * 7, et(n);
}
function ge(t, e) {
let n = Qt(t);
return n[2] += e, et(n);
}
function Ot(t, e) {
let n = Qt(t);
return n[6] += e, et(n);
}
function Xp(t, e) {
return rn(t, e) / 7;
}
function rn(t, e) {
return (e.valueOf() - t.valueOf()) / (1e3 * 60 * 60 * 24);
}
function Kp(t, e) {
return (e.valueOf() - t.valueOf()) / (1e3 * 60 * 60);
}
function Jp(t, e) {
return (e.valueOf() - t.valueOf()) / (1e3 * 60);
}
function eg(t, e) {
return (e.valueOf() - t.valueOf()) / 1e3;
}
function tg(t, e) {
let n = oe(t), r = oe(e);
return {
years: 0,
months: 0,
days: Math.round(rn(n, r)),
milliseconds: e.valueOf() - r.valueOf() - (t.valueOf() - n.valueOf())
};
}
function ng(t, e) {
let n = xr(t, e);
return n !== null && n % 7 === 0 ? n / 7 : null;
}
function xr(t, e) {
return Xt(t) === Xt(e) ? Math.round(rn(t, e)) : null;
}
function oe(t) {
return et([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate()
]);
}
function rg(t) {
return et([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours()
]);
}
function ig(t) {
return et([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours(),
t.getUTCMinutes()
]);
}
function sg(t) {
return et([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours(),
t.getUTCMinutes(),
t.getUTCSeconds()
]);
}
function og(t, e, n) {
let r = t.getUTCFullYear(), i = Cs(t, r, e, n);
if (i < 1)
return Cs(t, r - 1, e, n);
let s = Cs(t, r + 1, e, n);
return s >= 1 ? Math.min(i, s) : i;
}
function Cs(t, e, n, r) {
let i = et([e, 0, 1 + ag(e, n, r)]), s = oe(t), o = Math.round(rn(i, s));
return Math.floor(o / 7) + 1;
}
function ag(t, e, n) {
let r