vue-tailwind-cin-datepicker
Version:
A date range picker component for Vue.js 3 using Tailwind CSS
1,130 lines • 143 kB
JavaScript
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.vtd-datepicker-overlay.open:before{display:block;opacity:.5}.vtd-datepicker:before{--vtd-datepicker: 0px;content:"";position:absolute;top:0;height:1rem;width:1rem;border-width:1px;border-color:#0000001a;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .vtd-datepicker):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vtd-datepicker:before{transform:translate(50%,-50%) rotate(-45deg);-webkit-clip-path:polygon(calc(var(--vtd-datepicker) * -1) calc(var(--vtd-datepicker) * -1),calc(100% + var(--vtd-datepicker)) calc(var(--vtd-datepicker) * -1),calc(100% + var(--vtd-datepicker)) calc(100% + var(--vtd-datepicker)));clip-path:polygon(calc(var(--vtd-datepicker) * -1) calc(var(--vtd-datepicker) * -1),calc(100% + var(--vtd-datepicker)) calc(var(--vtd-datepicker) * -1),calc(100% + var(--vtd-datepicker)) calc(100% + var(--vtd-datepicker)))}.vtd-datepicker.place-left:before{left:.25rem}:is(.dark .vtd-datepicker.place-left):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vtd-datepicker.place-right:before{right:1.25rem}:is(.dark .vtd-datepicker.place-right):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
import { cloneVNode as Xt, h as ye, Fragment as xe, inject as De, provide as se, ref as J, onMounted as ot, watchEffect as $e, computed as ue, defineComponent as de, onUnmounted as et, Teleport as Qt, reactive as yt, shallowRef as eo, openBlock as z, createElementBlock as G, createElementVNode as B, withDirectives as me, createCommentVNode as pe, vShow as ve, toDisplayString as ae, renderList as Ke, withModifiers as _e, unref as le, createVNode as ee, TransitionGroup as to, withCtx as Le, normalizeClass as Ae, Transition as ht, nextTick as He, watch as it, isProxy as oo, createBlock as Ue, renderSlot as ct, mergeProps as ro, vModelText as ao } from "vue";
function Oe(e, r, ...u) {
if (e in r) {
let a = r[e];
return typeof a == "function" ? a(...u) : a;
}
let t = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map((a) => `"${a}"`).join(", ")}.`);
throw Error.captureStackTrace && Error.captureStackTrace(t, Oe), t;
}
var ze = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ze || {}), no = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(no || {});
function Ye({ visible: e = !0, features: r = 0, ourProps: u, theirProps: t, ...a }) {
var n;
let v = gt(t, u), s = Object.assign(a, { props: v });
if (e || r & 2 && v.static)
return st(s);
if (r & 1) {
let y = (n = v.unmount) == null || n ? 0 : 1;
return Oe(y, { 0() {
return null;
}, 1() {
return st({ ...a, props: { ...v, hidden: !0, style: { display: "none" } } });
} });
}
return st(s);
}
function st({ props: e, attrs: r, slots: u, slot: t, name: a }) {
var n, v;
let { as: s, ...y } = so(e, ["unmount", "static"]), f = (n = u.default) == null ? void 0 : n.call(u, t), g = {};
if (t) {
let h = !1, S = [];
for (let [Y, I] of Object.entries(t))
typeof I == "boolean" && (h = !0), I === !0 && S.push(Y);
h && (g["data-headlessui-state"] = S.join(" "));
}
if (s === "template") {
if (f = bt(f ?? []), Object.keys(y).length > 0 || Object.keys(r).length > 0) {
let [h, ...S] = f ?? [];
if (!lo(h) || S.length > 0)
throw new Error(['Passing props on "template"!', "", `The current component <${a} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(y).concat(Object.keys(r)).map((x) => x.trim()).filter((x, D, C) => C.indexOf(x) === D).sort((x, D) => x.localeCompare(D)).map((x) => ` - ${x}`).join(`
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((x) => ` - ${x}`).join(`
`)].join(`
`));
let Y = gt((v = h.props) != null ? v : {}, y), I = Xt(h, Y);
for (let x in Y)
x.startsWith("on") && (I.props || (I.props = {}), I.props[x] = Y[x]);
return I;
}
return Array.isArray(f) && f.length === 1 ? f[0] : f;
}
return ye(s, Object.assign({}, y, g), { default: () => f });
}
function bt(e) {
return e.flatMap((r) => r.type === xe ? bt(r.children) : [r]);
}
function gt(...e) {
if (e.length === 0)
return {};
if (e.length === 1)
return e[0];
let r = {}, u = {};
for (let t of e)
for (let a in t)
a.startsWith("on") && typeof t[a] == "function" ? (u[a] != null || (u[a] = []), u[a].push(t[a])) : r[a] = t[a];
if (r.disabled || r["aria-disabled"])
return Object.assign(r, Object.fromEntries(Object.keys(u).map((t) => [t, void 0])));
for (let t in u)
Object.assign(r, { [t](a, ...n) {
let v = u[t];
for (let s of v) {
if (a instanceof Event && a.defaultPrevented)
return;
s(a, ...n);
}
} });
return r;
}
function so(e, r = []) {
let u = Object.assign({}, e);
for (let t of r)
t in u && delete u[t];
return u;
}
function lo(e) {
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
}
let uo = 0;
function io() {
return ++uo;
}
function Fe() {
return io();
}
var Te = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Te || {});
function H(e) {
var r;
return e == null || e.value == null ? null : (r = e.value.$el) != null ? r : e.value;
}
let xt = Symbol("Context");
var Be = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Be || {});
function wt() {
return De(xt, null);
}
function co(e) {
se(xt, e);
}
function ft(e, r) {
if (e)
return e;
let u = r ?? "button";
if (typeof u == "string" && u.toLowerCase() === "button")
return "button";
}
function fo(e, r) {
let u = J(ft(e.value.type, e.value.as));
return ot(() => {
u.value = ft(e.value.type, e.value.as);
}), $e(() => {
var t;
u.value || H(r) && H(r) instanceof HTMLButtonElement && !((t = H(r)) != null && t.hasAttribute("type")) && (u.value = "button");
}), u;
}
var mo = Object.defineProperty, po = (e, r, u) => r in e ? mo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[r] = u, mt = (e, r, u) => (po(e, typeof r != "symbol" ? r + "" : r, u), u);
class vo {
constructor() {
mt(this, "current", this.detect()), mt(this, "currentId", 0);
}
set(r) {
this.current !== r && (this.currentId = 0, this.current = r);
}
reset() {
this.set(this.detect());
}
nextId() {
return ++this.currentId;
}
get isServer() {
return this.current === "server";
}
get isClient() {
return this.current === "client";
}
detect() {
return typeof window > "u" || typeof document > "u" ? "server" : "client";
}
}
let rt = new vo();
function Ce(e) {
if (rt.isServer)
return null;
if (e instanceof Node)
return e.ownerDocument;
if (e != null && e.hasOwnProperty("value")) {
let r = H(e);
if (r)
return r.ownerDocument;
}
return document;
}
let lt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Me || {}), tt = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(tt || {}), yo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(yo || {});
function at(e = document.body) {
return e == null ? [] : Array.from(e.querySelectorAll(lt)).sort((r, u) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (u.tabIndex || Number.MAX_SAFE_INTEGER)));
}
var dt = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(dt || {});
function kt(e, r = 0) {
var u;
return e === ((u = Ce(e)) == null ? void 0 : u.body) ? !1 : Oe(r, { 0() {
return e.matches(lt);
}, 1() {
let t = e;
for (; t !== null; ) {
if (t.matches(lt))
return !0;
t = t.parentElement;
}
return !1;
} });
}
var ho = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(ho || {});
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
}, !0), document.addEventListener("click", (e) => {
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
}, !0));
let bo = ["textarea", "input"].join(",");
function go(e) {
var r, u;
return (u = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e, bo)) != null ? u : !1;
}
function xo(e, r = (u) => u) {
return e.slice().sort((u, t) => {
let a = r(u), n = r(t);
if (a === null || n === null)
return 0;
let v = a.compareDocumentPosition(n);
return v & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : v & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
});
}
function Ee(e, r, { sorted: u = !0, relativeTo: t = null, skipElements: a = [] } = {}) {
var n;
let v = (n = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? n : document, s = Array.isArray(e) ? u ? xo(e) : e : at(e);
a.length > 0 && s.length > 1 && (s = s.filter((I) => !a.includes(I))), t = t ?? v.activeElement;
let y = (() => {
if (r & 5)
return 1;
if (r & 10)
return -1;
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
})(), f = (() => {
if (r & 1)
return 0;
if (r & 2)
return Math.max(0, s.indexOf(t)) - 1;
if (r & 4)
return Math.max(0, s.indexOf(t)) + 1;
if (r & 8)
return s.length - 1;
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
})(), g = r & 32 ? { preventScroll: !0 } : {}, h = 0, S = s.length, Y;
do {
if (h >= S || h + S <= 0)
return 0;
let I = f + h;
if (r & 16)
I = (I + S) % S;
else {
if (I < 0)
return 3;
if (I >= S)
return 1;
}
Y = s[I], Y == null || Y.focus(g), h += y;
} while (Y !== v.activeElement);
return r & 6 && go(Y) && Y.select(), 2;
}
function Ge(e, r, u) {
rt.isServer || $e((t) => {
document.addEventListener(e, r, u), t(() => document.removeEventListener(e, r, u));
});
}
function jt(e, r, u) {
rt.isServer || $e((t) => {
window.addEventListener(e, r, u), t(() => window.removeEventListener(e, r, u));
});
}
function wo(e, r, u = ue(() => !0)) {
function t(n, v) {
if (!u.value || n.defaultPrevented)
return;
let s = v(n);
if (s === null || !s.getRootNode().contains(s))
return;
let y = function f(g) {
return typeof g == "function" ? f(g()) : Array.isArray(g) || g instanceof Set ? g : [g];
}(e);
for (let f of y) {
if (f === null)
continue;
let g = f instanceof HTMLElement ? f : H(f);
if (g != null && g.contains(s) || n.composed && n.composedPath().includes(g))
return;
}
return !kt(s, dt.Loose) && s.tabIndex !== -1 && n.preventDefault(), r(n, s);
}
let a = J(null);
Ge("pointerdown", (n) => {
var v, s;
u.value && (a.value = ((s = (v = n.composedPath) == null ? void 0 : v.call(n)) == null ? void 0 : s[0]) || n.target);
}, !0), Ge("mousedown", (n) => {
var v, s;
u.value && (a.value = ((s = (v = n.composedPath) == null ? void 0 : v.call(n)) == null ? void 0 : s[0]) || n.target);
}, !0), Ge("click", (n) => {
a.value && (t(n, () => a.value), a.value = null);
}, !0), Ge("touchend", (n) => t(n, () => n.target instanceof HTMLElement ? n.target : null), !0), jt("blur", (n) => t(n, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
}
var Ne = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ne || {});
let We = de({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: r, attrs: u }) {
return () => {
let { features: t, ...a } = e, n = { "aria-hidden": (t & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(t & 4) === 4 && (t & 2) !== 2 && { display: "none" } } };
return Ye({ ourProps: n, theirProps: a, slot: {}, attrs: u, slots: r, name: "Hidden" });
};
} });
var Se = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Se || {});
function $t() {
let e = J(0);
return jt("keydown", (r) => {
r.key === "Tab" && (e.value = r.shiftKey ? 1 : 0);
}), e;
}
function ko(e, r, u, t) {
rt.isServer || $e((a) => {
e = e ?? window, e.addEventListener(r, u, t), a(() => e.removeEventListener(r, u, t));
});
}
let _t = Symbol("ForcePortalRootContext");
function jo() {
return De(_t, !1);
}
de({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: r, attrs: u }) {
return se(_t, e.force), () => {
let { force: t, ...a } = e;
return Ye({ theirProps: a, ourProps: {}, slot: {}, slots: r, attrs: u, name: "ForcePortalRoot" });
};
} });
function $o(e) {
let r = Ce(e);
if (!r) {
if (e === null)
return null;
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
}
let u = r.getElementById("headlessui-portal-root");
if (u)
return u;
let t = r.createElement("div");
return t.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(t);
}
de({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: r, attrs: u }) {
let t = J(null), a = ue(() => Ce(t)), n = jo(), v = De(Mt, null), s = J(n === !0 || v == null ? $o(t.value) : v.resolveTarget());
$e(() => {
n || v != null && (s.value = v.resolveTarget());
});
let y = De(ut, null);
return ot(() => {
let f = H(t);
f && y && et(y.register(f));
}), et(() => {
var f, g;
let h = (f = a.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
h && s.value === h && s.value.children.length <= 0 && ((g = s.value.parentElement) == null || g.removeChild(s.value));
}), () => {
if (s.value === null)
return null;
let f = { ref: t, "data-headlessui-portal": "" };
return ye(Qt, { to: s.value }, Ye({ ourProps: f, theirProps: e, slot: {}, attrs: u, slots: r, name: "Portal" }));
};
} });
let ut = Symbol("PortalParentContext");
function _o() {
let e = De(ut, null), r = J([]);
function u(n) {
return r.value.push(n), e && e.register(n), () => t(n);
}
function t(n) {
let v = r.value.indexOf(n);
v !== -1 && r.value.splice(v, 1), e && e.unregister(n);
}
let a = { register: u, unregister: t, portals: r };
return [r, de({ name: "PortalWrapper", setup(n, { slots: v }) {
return se(ut, a), () => {
var s;
return (s = v.default) == null ? void 0 : s.call(v);
};
} })];
}
let Mt = Symbol("PortalGroupContext");
de({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: r, slots: u }) {
let t = yt({ resolveTarget() {
return e.target;
} });
return se(Mt, t), () => {
let { target: a, ...n } = e;
return Ye({ theirProps: n, ourProps: {}, slot: {}, attrs: r, slots: u, name: "PortalGroup" });
};
} });
function Mo({ defaultContainers: e = [], portals: r, mainTreeNodeRef: u } = {}) {
let t = J(null), a = Ce(t);
function n() {
var v;
let s = [];
for (let y of e)
y !== null && (y instanceof HTMLElement ? s.push(y) : "value" in y && y.value instanceof HTMLElement && s.push(y.value));
if (r != null && r.value)
for (let y of r.value)
s.push(y);
for (let y of (v = a == null ? void 0 : a.querySelectorAll("html > *, body > *")) != null ? v : [])
y !== document.body && y !== document.head && y instanceof HTMLElement && y.id !== "headlessui-portal-root" && (y.contains(H(t)) || s.some((f) => y.contains(f)) || s.push(y));
return s;
}
return { resolveContainers: n, contains(v) {
return n().some((s) => s.contains(v));
}, mainTreeNodeRef: t, MainTreeNode() {
return u != null ? null : ye(We, { features: Ne.Hidden, ref: t });
} };
}
function So() {
let e = J(null);
return { mainTreeNodeRef: e, MainTreeNode() {
return ye(We, { features: Ne.Hidden, ref: e });
} };
}
var Do = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Do || {});
let St = Symbol("PopoverContext");
function nt(e) {
let r = De(St, null);
if (r === null) {
let u = new Error(`<${e} /> is missing a parent <${Pt.name} /> component.`);
throw Error.captureStackTrace && Error.captureStackTrace(u, nt), u;
}
return r;
}
let Dt = Symbol("PopoverGroupContext");
function Ot() {
return De(Dt, null);
}
let Yt = Symbol("PopoverPanelContext");
function Oo() {
return De(Yt, null);
}
let Pt = de({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: r, attrs: u, expose: t }) {
var a;
let n = J(null);
t({ el: n, $el: n });
let v = J(1), s = J(null), y = J(null), f = J(null), g = J(null), h = ue(() => Ce(n)), S = ue(() => {
var V, O;
if (!H(s) || !H(g))
return !1;
for (let q of document.querySelectorAll("body > *"))
if (Number(q == null ? void 0 : q.contains(H(s))) ^ Number(q == null ? void 0 : q.contains(H(g))))
return !0;
let l = at(), o = l.indexOf(H(s)), R = (o + l.length - 1) % l.length, N = (o + 1) % l.length, j = l[R], K = l[N];
return !((V = H(g)) != null && V.contains(j)) && !((O = H(g)) != null && O.contains(K));
}), Y = { popoverState: v, buttonId: J(null), panelId: J(null), panel: g, button: s, isPortalled: S, beforePanelSentinel: y, afterPanelSentinel: f, togglePopover() {
v.value = Oe(v.value, { 0: 1, 1: 0 });
}, closePopover() {
v.value !== 1 && (v.value = 1);
}, close(V) {
Y.closePopover();
let O = (() => V ? V instanceof HTMLElement ? V : V.value instanceof HTMLElement ? H(V) : H(Y.button) : H(Y.button))();
O == null || O.focus();
} };
se(St, Y), co(ue(() => Oe(v.value, { 0: Be.Open, 1: Be.Closed })));
let I = { buttonId: Y.buttonId, panelId: Y.panelId, close() {
Y.closePopover();
} }, x = Ot(), D = x == null ? void 0 : x.registerPopover, [C, k] = _o(), w = Mo({ mainTreeNodeRef: x == null ? void 0 : x.mainTreeNodeRef, portals: C, defaultContainers: [s, g] });
function P() {
var V, O, l, o;
return (o = x == null ? void 0 : x.isFocusWithinPopoverGroup()) != null ? o : ((V = h.value) == null ? void 0 : V.activeElement) && (((O = H(s)) == null ? void 0 : O.contains(h.value.activeElement)) || ((l = H(g)) == null ? void 0 : l.contains(h.value.activeElement)));
}
return $e(() => D == null ? void 0 : D(I)), ko((a = h.value) == null ? void 0 : a.defaultView, "focus", (V) => {
var O, l;
V.target !== window && V.target instanceof HTMLElement && v.value === 0 && (P() || s && g && (w.contains(V.target) || (O = H(Y.beforePanelSentinel)) != null && O.contains(V.target) || (l = H(Y.afterPanelSentinel)) != null && l.contains(V.target) || Y.closePopover()));
}, !0), wo(w.resolveContainers, (V, O) => {
var l;
Y.closePopover(), kt(O, dt.Loose) || (V.preventDefault(), (l = H(s)) == null || l.focus());
}, ue(() => v.value === 0)), () => {
let V = { open: v.value === 0, close: Y.close };
return ye(xe, [ye(k, {}, () => Ye({ theirProps: { ...e, ...u }, ourProps: { ref: n }, slot: V, slots: r, attrs: u, name: "Popover" })), ye(w.MainTreeNode)]);
};
} }), Yo = de({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-popover-button-${Fe()}` } }, inheritAttrs: !1, setup(e, { attrs: r, slots: u, expose: t }) {
let a = nt("PopoverButton"), n = ue(() => Ce(a.button));
t({ el: a.button, $el: a.button }), ot(() => {
a.buttonId.value = e.id;
}), et(() => {
a.buttonId.value = null;
});
let v = Ot(), s = v == null ? void 0 : v.closeOthers, y = Oo(), f = ue(() => y === null ? !1 : y.value === a.panelId.value), g = J(null), h = `headlessui-focus-sentinel-${Fe()}`;
f.value || $e(() => {
a.button.value = g.value;
});
let S = fo(ue(() => ({ as: e.as, type: r.type })), g);
function Y(w) {
var P, V, O, l, o;
if (f.value) {
if (a.popoverState.value === 1)
return;
switch (w.key) {
case Te.Space:
case Te.Enter:
w.preventDefault(), (V = (P = w.target).click) == null || V.call(P), a.closePopover(), (O = H(a.button)) == null || O.focus();
break;
}
} else
switch (w.key) {
case Te.Space:
case Te.Enter:
w.preventDefault(), w.stopPropagation(), a.popoverState.value === 1 && (s == null || s(a.buttonId.value)), a.togglePopover();
break;
case Te.Escape:
if (a.popoverState.value !== 0)
return s == null ? void 0 : s(a.buttonId.value);
if (!H(a.button) || (l = n.value) != null && l.activeElement && !((o = H(a.button)) != null && o.contains(n.value.activeElement)))
return;
w.preventDefault(), w.stopPropagation(), a.closePopover();
break;
}
}
function I(w) {
f.value || w.key === Te.Space && w.preventDefault();
}
function x(w) {
var P, V;
e.disabled || (f.value ? (a.closePopover(), (P = H(a.button)) == null || P.focus()) : (w.preventDefault(), w.stopPropagation(), a.popoverState.value === 1 && (s == null || s(a.buttonId.value)), a.togglePopover(), (V = H(a.button)) == null || V.focus()));
}
function D(w) {
w.preventDefault(), w.stopPropagation();
}
let C = $t();
function k() {
let w = H(a.panel);
if (!w)
return;
function P() {
Oe(C.value, { [Se.Forwards]: () => Ee(w, Me.First), [Se.Backwards]: () => Ee(w, Me.Last) }) === tt.Error && Ee(at().filter((V) => V.dataset.headlessuiFocusGuard !== "true"), Oe(C.value, { [Se.Forwards]: Me.Next, [Se.Backwards]: Me.Previous }), { relativeTo: H(a.button) });
}
P();
}
return () => {
let w = a.popoverState.value === 0, P = { open: w }, { id: V, ...O } = e, l = f.value ? { ref: g, type: S.value, onKeydown: Y, onClick: x } : { ref: g, id: V, type: S.value, "aria-expanded": a.popoverState.value === 0, "aria-controls": H(a.panel) ? a.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: Y, onKeyup: I, onClick: x, onMousedown: D };
return ye(xe, [Ye({ ourProps: l, theirProps: { ...r, ...O }, slot: P, attrs: r, slots: u, name: "PopoverButton" }), w && !f.value && a.isPortalled.value && ye(We, { id: h, features: Ne.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: k })]);
};
} }), Po = de({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(e, { attrs: r, slots: u }) {
let t = nt("PopoverOverlay"), a = `headlessui-popover-overlay-${Fe()}`, n = wt(), v = ue(() => n !== null ? (n.value & Be.Open) === Be.Open : t.popoverState.value === 0);
function s() {
t.closePopover();
}
return () => {
let y = { open: t.popoverState.value === 0 };
return Ye({ ourProps: { id: a, "aria-hidden": !0, onClick: s }, theirProps: e, slot: y, attrs: r, slots: u, features: ze.RenderStrategy | ze.Static, visible: v.value, name: "PopoverOverlay" });
};
} }), Vo = de({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-popover-panel-${Fe()}` } }, inheritAttrs: !1, setup(e, { attrs: r, slots: u, expose: t }) {
let { focus: a } = e, n = nt("PopoverPanel"), v = ue(() => Ce(n.panel)), s = `headlessui-focus-sentinel-before-${Fe()}`, y = `headlessui-focus-sentinel-after-${Fe()}`;
t({ el: n.panel, $el: n.panel }), ot(() => {
n.panelId.value = e.id;
}), et(() => {
n.panelId.value = null;
}), se(Yt, n.panelId), $e(() => {
var D, C;
if (!a || n.popoverState.value !== 0 || !n.panel)
return;
let k = (D = v.value) == null ? void 0 : D.activeElement;
(C = H(n.panel)) != null && C.contains(k) || Ee(H(n.panel), Me.First);
});
let f = wt(), g = ue(() => f !== null ? (f.value & Be.Open) === Be.Open : n.popoverState.value === 0);
function h(D) {
var C, k;
switch (D.key) {
case Te.Escape:
if (n.popoverState.value !== 0 || !H(n.panel) || v.value && !((C = H(n.panel)) != null && C.contains(v.value.activeElement)))
return;
D.preventDefault(), D.stopPropagation(), n.closePopover(), (k = H(n.button)) == null || k.focus();
break;
}
}
function S(D) {
var C, k, w, P, V;
let O = D.relatedTarget;
O && H(n.panel) && ((C = H(n.panel)) != null && C.contains(O) || (n.closePopover(), ((w = (k = H(n.beforePanelSentinel)) == null ? void 0 : k.contains) != null && w.call(k, O) || (V = (P = H(n.afterPanelSentinel)) == null ? void 0 : P.contains) != null && V.call(P, O)) && O.focus({ preventScroll: !0 })));
}
let Y = $t();
function I() {
let D = H(n.panel);
if (!D)
return;
function C() {
Oe(Y.value, { [Se.Forwards]: () => {
var k;
Ee(D, Me.First) === tt.Error && ((k = H(n.afterPanelSentinel)) == null || k.focus());
}, [Se.Backwards]: () => {
var k;
(k = H(n.button)) == null || k.focus({ preventScroll: !0 });
} });
}
C();
}
function x() {
let D = H(n.panel);
if (!D)
return;
function C() {
Oe(Y.value, { [Se.Forwards]: () => {
let k = H(n.button), w = H(n.panel);
if (!k)
return;
let P = at(), V = P.indexOf(k), O = P.slice(0, V + 1), l = [...P.slice(V + 1), ...O];
for (let o of l.slice())
if (o.dataset.headlessuiFocusGuard === "true" || w != null && w.contains(o)) {
let R = l.indexOf(o);
R !== -1 && l.splice(R, 1);
}
Ee(l, Me.First, { sorted: !1 });
}, [Se.Backwards]: () => {
var k;
Ee(D, Me.Previous) === tt.Error && ((k = H(n.button)) == null || k.focus());
} });
}
C();
}
return () => {
let D = { open: n.popoverState.value === 0, close: n.close }, { id: C, focus: k, ...w } = e, P = { ref: n.panel, id: C, onKeydown: h, onFocusout: a && n.popoverState.value === 0 ? S : void 0, tabIndex: -1 };
return Ye({ ourProps: P, theirProps: { ...r, ...w }, attrs: r, slot: D, slots: { ...u, default: (...V) => {
var O;
return [ye(xe, [g.value && n.isPortalled.value && ye(We, { id: s, ref: n.beforePanelSentinel, features: Ne.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: I }), (O = u.default) == null ? void 0 : O.call(u, ...V), g.value && n.isPortalled.value && ye(We, { id: y, ref: n.afterPanelSentinel, features: Ne.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: x })])];
} }, features: ze.RenderStrategy | ze.Static, visible: g.value, name: "PopoverPanel" });
};
} });
de({ name: "PopoverGroup", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: r, slots: u, expose: t }) {
let a = J(null), n = eo([]), v = ue(() => Ce(a)), s = So();
t({ el: a, $el: a });
function y(S) {
let Y = n.value.indexOf(S);
Y !== -1 && n.value.splice(Y, 1);
}
function f(S) {
return n.value.push(S), () => {
y(S);
};
}
function g() {
var S;
let Y = v.value;
if (!Y)
return !1;
let I = Y.activeElement;
return (S = H(a)) != null && S.contains(I) ? !0 : n.value.some((x) => {
var D, C;
return ((D = Y.getElementById(x.buttonId.value)) == null ? void 0 : D.contains(I)) || ((C = Y.getElementById(x.panelId.value)) == null ? void 0 : C.contains(I));
});
}
function h(S) {
for (let Y of n.value)
Y.buttonId.value !== S && Y.close();
}
return se(Dt, { registerPopover: f, unregisterPopover: y, isFocusWithinPopoverGroup: g, closeOthers: h, mainTreeNodeRef: s.mainTreeNodeRef }), () => ye(xe, [Ye({ ourProps: { ref: a }, theirProps: { ...e, ...r }, slot: {}, attrs: r, slots: u, name: "PopoverGroup" }), ye(s.MainTreeNode)]);
} });
var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Ve(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Vt = { exports: {} };
(function(e, r) {
(function(u, t) {
e.exports = t();
})(Pe, function() {
var u = 1e3, t = 6e4, a = 36e5, n = "millisecond", v = "second", s = "minute", y = "hour", f = "day", g = "week", h = "month", S = "quarter", Y = "year", I = "date", x = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
var b = ["th", "st", "nd", "rd"], M = A % 100;
return "[" + A + (b[(M - 20) % 10] || b[M] || b[0]) + "]";
} }, w = function(A, b, M) {
var T = String(A);
return !T || T.length >= b ? A : "" + Array(b + 1 - T.length).join(M) + A;
}, P = { s: w, z: function(A) {
var b = -A.utcOffset(), M = Math.abs(b), T = Math.floor(M / 60), $ = M % 60;
return (b <= 0 ? "+" : "-") + w(T, 2, "0") + ":" + w($, 2, "0");
}, m: function A(b, M) {
if (b.date() < M.date())
return -A(M, b);
var T = 12 * (M.year() - b.year()) + (M.month() - b.month()), $ = b.clone().add(T, h), F = M - $ < 0, L = b.clone().add(T + (F ? -1 : 1), h);
return +(-(T + (M - $) / (F ? $ - L : L - $)) || 0);
}, a: function(A) {
return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
}, p: function(A) {
return { M: h, y: Y, w: g, d: f, D: I, h: y, m: s, s: v, ms: n, Q: S }[A] || String(A || "").toLowerCase().replace(/s$/, "");
}, u: function(A) {
return A === void 0;
} }, V = "en", O = {};
O[V] = k;
var l = "$isDayjsObject", o = function(A) {
return A instanceof K || !(!A || !A[l]);
}, R = function A(b, M, T) {
var $;
if (!b)
return V;
if (typeof b == "string") {
var F = b.toLowerCase();
O[F] && ($ = F), M && (O[F] = M, $ = F);
var L = b.split("-");
if (!$ && L.length > 1)
return A(L[0]);
} else {
var Z = b.name;
O[Z] = b, $ = Z;
}
return !T && $ && (V = $), $ || !T && V;
}, N = function(A, b) {
if (o(A))
return A.clone();
var M = typeof b == "object" ? b : {};
return M.date = A, M.args = arguments, new K(M);
}, j = P;
j.l = R, j.i = o, j.w = function(A, b) {
return N(A, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
};
var K = function() {
function A(M) {
this.$L = R(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[l] = !0;
}
var b = A.prototype;
return b.parse = function(M) {
this.$d = function(T) {
var $ = T.date, F = T.utc;
if ($ === null)
return /* @__PURE__ */ new Date(NaN);
if (j.u($))
return /* @__PURE__ */ new Date();
if ($ instanceof Date)
return new Date($);
if (typeof $ == "string" && !/Z$/i.test($)) {
var L = $.match(D);
if (L) {
var Z = L[2] - 1 || 0, Q = (L[7] || "0").substring(0, 3);
return F ? new Date(Date.UTC(L[1], Z, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, Q)) : new Date(L[1], Z, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, Q);
}
}
return new Date($);
}(M), this.init();
}, b.init = function() {
var M = this.$d;
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
}, b.$utils = function() {
return j;
}, b.isValid = function() {
return this.$d.toString() !== x;
}, b.isSame = function(M, T) {
var $ = N(M);
return this.startOf(T) <= $ && $ <= this.endOf(T);
}, b.isAfter = function(M, T) {
return N(M) < this.startOf(T);
}, b.isBefore = function(M, T) {
return this.endOf(T) < N(M);
}, b.$g = function(M, T, $) {
return j.u(M) ? this[T] : this.set($, M);
}, b.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, b.valueOf = function() {
return this.$d.getTime();
}, b.startOf = function(M, T) {
var $ = this, F = !!j.u(T) || T, L = j.p(M), Z = function(he, re) {
var fe = j.w($.$u ? Date.UTC($.$y, re, he) : new Date($.$y, re, he), $);
return F ? fe : fe.endOf(f);
}, Q = function(he, re) {
return j.w($.toDate()[he].apply($.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), $);
}, te = this.$W, oe = this.$M, ie = this.$D, we = "set" + (this.$u ? "UTC" : "");
switch (L) {
case Y:
return F ? Z(1, 0) : Z(31, 11);
case h:
return F ? Z(1, oe) : Z(0, oe + 1);
case g:
var ne = this.$locale().weekStart || 0, be = (te < ne ? te + 7 : te) - ne;
return Z(F ? ie - be : ie + (6 - be), oe);
case f:
case I:
return Q(we + "Hours", 0);
case y:
return Q(we + "Minutes", 1);
case s:
return Q(we + "Seconds", 2);
case v:
return Q(we + "Milliseconds", 3);
default:
return this.clone();
}
}, b.endOf = function(M) {
return this.startOf(M, !1);
}, b.$set = function(M, T) {
var $, F = j.p(M), L = "set" + (this.$u ? "UTC" : ""), Z = ($ = {}, $[f] = L + "Date", $[I] = L + "Date", $[h] = L + "Month", $[Y] = L + "FullYear", $[y] = L + "Hours", $[s] = L + "Minutes", $[v] = L + "Seconds", $[n] = L + "Milliseconds", $)[F], Q = F === f ? this.$D + (T - this.$W) : T;
if (F === h || F === Y) {
var te = this.clone().set(I, 1);
te.$d[Z](Q), te.init(), this.$d = te.set(I, Math.min(this.$D, te.daysInMonth())).$d;
} else
Z && this.$d[Z](Q);
return this.init(), this;
}, b.set = function(M, T) {
return this.clone().$set(M, T);
}, b.get = function(M) {
return this[j.p(M)]();
}, b.add = function(M, T) {
var $, F = this;
M = Number(M);
var L = j.p(T), Z = function(oe) {
var ie = N(F);
return j.w(ie.date(ie.date() + Math.round(oe * M)), F);
};
if (L === h)
return this.set(h, this.$M + M);
if (L === Y)
return this.set(Y, this.$y + M);
if (L === f)
return Z(1);
if (L === g)
return Z(7);
var Q = ($ = {}, $[s] = t, $[y] = a, $[v] = u, $)[L] || 1, te = this.$d.getTime() + M * Q;
return j.w(te, this);
}, b.subtract = function(M, T) {
return this.add(-1 * M, T);
}, b.format = function(M) {
var T = this, $ = this.$locale();
if (!this.isValid())
return $.invalidDate || x;
var F = M || "YYYY-MM-DDTHH:mm:ssZ", L = j.z(this), Z = this.$H, Q = this.$m, te = this.$M, oe = $.weekdays, ie = $.months, we = $.meridiem, ne = function(re, fe, ge, ke) {
return re && (re[fe] || re(T, F)) || ge[fe].slice(0, ke);
}, be = function(re) {
return j.s(Z % 12 || 12, re, "0");
}, he = we || function(re, fe, ge) {
var ke = re < 12 ? "AM" : "PM";
return ge ? ke.toLowerCase() : ke;
};
return F.replace(C, function(re, fe) {
return fe || function(ge) {
switch (ge) {
case "YY":
return String(T.$y).slice(-2);
case "YYYY":
return j.s(T.$y, 4, "0");
case "M":
return te + 1;
case "MM":
return j.s(te + 1, 2, "0");
case "MMM":
return ne($.monthsShort, te, ie, 3);
case "MMMM":
return ne(ie, te);
case "D":
return T.$D;
case "DD":
return j.s(T.$D, 2, "0");
case "d":
return String(T.$W);
case "dd":
return ne($.weekdaysMin, T.$W, oe, 2);
case "ddd":
return ne($.weekdaysShort, T.$W, oe, 3);
case "dddd":
return oe[T.$W];
case "H":
return String(Z);
case "HH":
return j.s(Z, 2, "0");
case "h":
return be(1);
case "hh":
return be(2);
case "a":
return he(Z, Q, !0);
case "A":
return he(Z, Q, !1);
case "m":
return String(Q);
case "mm":
return j.s(Q, 2, "0");
case "s":
return String(T.$s);
case "ss":
return j.s(T.$s, 2, "0");
case "SSS":
return j.s(T.$ms, 3, "0");
case "Z":
return L;
}
return null;
}(re) || L.replace(":", "");
});
}, b.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, b.diff = function(M, T, $) {
var F, L = this, Z = j.p(T), Q = N(M), te = (Q.utcOffset() - this.utcOffset()) * t, oe = this - Q, ie = function() {
return j.m(L, Q);
};
switch (Z) {
case Y:
F = ie() / 12;
break;
case h:
F = ie();
break;
case S:
F = ie() / 3;
break;
case g:
F = (oe - te) / 6048e5;
break;
case f:
F = (oe - te) / 864e5;
break;
case y:
F = oe / a;
break;
case s:
F = oe / t;
break;
case v:
F = oe / u;
break;
default:
F = oe;
}
return $ ? F : j.a(F);
}, b.daysInMonth = function() {
return this.endOf(h).$D;
}, b.$locale = function() {
return O[this.$L];
}, b.locale = function(M, T) {
if (!M)
return this.$L;
var $ = this.clone(), F = R(M, T, !0);
return F && ($.$L = F), $;
}, b.clone = function() {
return j.w(this.$d, this);
}, b.toDate = function() {
return new Date(this.valueOf());
}, b.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, b.toISOString = function() {
return this.$d.toISOString();
}, b.toString = function() {
return this.$d.toUTCString();
}, A;
}(), q = K.prototype;
return N.prototype = q, [["$ms", n], ["$s", v], ["$m", s], ["$H", y], ["$W", f], ["$M", h], ["$y", Y], ["$D", I]].forEach(function(A) {
q[A[1]] = function(b) {
return this.$g(b, A[0], A[1]);
};
}), N.extend = function(A, b) {
return A.$i || (A(b, K, N), A.$i = !0), N;
}, N.locale = R, N.isDayjs = o, N.unix = function(A) {
return N(1e3 * A);
}, N.en = O[V], N.Ls = O, N.p = {}, N;
});
})(Vt);
var To = Vt.exports;
const i = /* @__PURE__ */ Ve(To);
var Tt = { exports: {} };
(function(e, r) {
(function(u, t) {
e.exports = t();
})(Pe, function() {
return function(u, t, a) {
var n = t.prototype, v = function(h) {
return h && (h.indexOf ? h : h.s);
}, s = function(h, S, Y, I, x) {
var D = h.name ? h : h.$locale(), C = v(D[S]), k = v(D[Y]), w = C || k.map(function(V) {
return V.slice(0, I);
});
if (!x)
return w;
var P = D.weekStart;
return w.map(function(V, O) {
return w[(O + (P || 0)) % 7];
});
}, y = function() {
return a.Ls[a.locale()];
}, f = function(h, S) {
return h.formats[S] || function(Y) {
return Y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(I, x, D) {
return x || D.slice(1);
});
}(h.formats[S.toUpperCase()]);
}, g = function() {
var h = this;
return { months: function(S) {
return S ? S.format("MMMM") : s(h, "months");
}, monthsShort: function(S) {
return S ? S.format("MMM") : s(h, "monthsShort", "months", 3);
}, firstDayOfWeek: function() {
return h.$locale().weekStart || 0;
}, weekdays: function(S) {
return S ? S.format("dddd") : s(h, "weekdays");
}, weekdaysMin: function(S) {
return S ? S.format("dd") : s(h, "weekdaysMin", "weekdays", 2);
}, weekdaysShort: function(S) {
return S ? S.format("ddd") : s(h, "weekdaysShort", "weekdays", 3);
}, longDateFormat: function(S) {
return f(h.$locale(), S);
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
};
n.localeData = function() {
return g.bind(this)();
}, a.localeData = function() {
var h = y();
return { firstDayOfWeek: function() {
return h.weekStart || 0;
}, weekdays: function() {
return a.weekdays();
}, weekdaysShort: function() {
return a.weekdaysShort();
}, weekdaysMin: function() {
return a.weekdaysMin();
}, months: function() {
return a.months();
}, monthsShort: function() {
return a.monthsShort();
}, longDateFormat: function(S) {
return f(h, S);
}, meridiem: h.meridiem, ordinal: h.ordinal };
}, a.months = function() {
return s(y(), "months");
}, a.monthsShort = function() {
return s(y(), "monthsShort", "months", 3);
}, a.weekdays = function(h) {
return s(y(), "weekdays", null, null, h);
}, a.weekdaysShort = function(h) {
return s(y(), "weekdaysShort", "weekdays", 3, h);
}, a.weekdaysMin = function(h) {
return s(y(), "weekdaysMin", "weekdays", 2, h);
};
};
});
})(Tt);
var Ao = Tt.exports;
const Co = /* @__PURE__ */ Ve(Ao);
var At = { exports: {} };
(function(e, r) {
(function(u, t) {
e.exports = t();
})(Pe, function() {
var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
return function(t, a, n) {
var v = a.prototype, s = v.format;
n.en.formats = u, v.format = function(y) {
y === void 0 && (y = "YYYY-MM-DDTHH:mm:ssZ");
var f = this.$locale().formats, g = function(h, S) {
return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Y, I, x) {
var D = x && x.toUpperCase();
return I || S[x] || u[x] || S[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(C, k, w) {
return k || w.slice(1);
});
});
}(y, f === void 0 ? {} : f);
return s.call(this, g);
};
};
});
})(At);
var Eo = At.exports;
const Bo = /* @__PURE__ */ Ve(Eo);
var Ct = { exports: {} };
(function(e, r) {
(function(u, t) {
e.exports = t();
})(Pe, function() {
var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d\d/, n = /\d\d?/, v = /\d*[^-_:/,()\s\d]+/, s = {}, y = function(x) {
return (x = +x) + (x > 68 ? 1900 : 2e3);
}, f = function(x) {
return function(D) {
this[x] = +D;
};
}, g = [/[+-]\d\d:?(\d\d)?|Z/, function(x) {
(this.zone || (this.zone = {})).offset = function(D) {
if (!D || D === "Z")
return 0;
var C = D.match(/([+-]|\d\d)/g), k = 60 * C[1] + (+C[2] || 0);
return k === 0 ? 0 : C[0] === "+" ? -k : k;
}(x);
}], h = function(x) {
var D = s[x];
return D && (D.indexOf ? D : D.s.concat(D.f));
}, S = function(x, D) {
var C, k = s.meridiem;
if (k) {
for (var w = 1; w <= 24; w += 1)
if (x.indexOf(k(w, 0, D)) > -1) {
C = w > 12;
break;
}
} else
C = x === (D ? "pm" : "PM");
return C;
}, Y = { A: [v, function(x) {
this.afternoon = S(x, !1);
}], a: [v, function(x) {
this.afternoon = S(x, !0);
}], S: [/\d/, function(x) {
this.milliseconds = 100 * +x;
}], SS: [a, function(x) {
this.milliseconds = 10 * +x;
}], SSS: [/\d{3}/, function(x) {
this.milliseconds = +x;
}], s: [n, f("seconds")], ss: [n, f("seconds")], m: [n, f("minutes")], mm: [n, f("minutes")], H: [n, f("hours")], h: [n, f("hours")], HH: [n, f("hours")], hh: [n, f("hours")], D: [n, f("day")], DD: [a, f("day")], Do: [v, function(x) {
var D = s.ordinal, C = x.match(/\d+/);
if (this.day = C[0], D)
for (var k = 1; k <= 31; k += 1)
D(k).replace(/\[|\]/g, "") === x && (this.day = k);
}], M: [n, f("month")], MM: [a, f("month")], MMM: [v, function(x) {
var D = h("months"), C = (h("monthsShort") || D.map(function(k) {
return k.slice(0, 3);
})).indexOf(x) + 1;
if (C < 1)
throw new Error();
this.month = C % 12 || C;
}], MMMM: [v, function(x) {
var D = h("months").indexOf(x) + 1;
if (D < 1)
throw new Error();
this.month = D % 12 || D;
}], Y: [/[+-]?\d+/, f("year")], YY: [a, function(x) {
this.year = y(x);
}], YYYY: [/\d{4}/, f("year")], Z: g, ZZ: g };
function I(x) {
var D, C;
D = x, C = s && s.formats;
for (var k = (x = D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(R, N, j) {
var K = j && j.toUpperCase();
return N || C[j] || u[j] || C[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(q, A, b) {
return A || b.slice(1);
});
})).match(t), w = k.length, P = 0; P < w; P += 1) {
var V = k[P], O = Y[V], l = O && O[0], o = O && O[1];
k[P] = o ? { regex: l, parser: o } : V.replace(/^\[|\]$/g, "");
}
return function(R) {
for (var N = {}, j = 0, K = 0; j < w; j += 1) {
var q = k[j];
if (typeof q == "string")
K += q.length;
else {
var A = q.regex, b = q.parser, M = R.slice(K), T = A.exec(M)[0];
b.call(N, T), R = R.replace(T, "");
}
}
return function($) {
var F = $.afternoon;
if (F !== void 0) {
var L = $.hours;
F ? L < 12 && ($.hours += 12) : L === 12 && ($.hours = 0), delete $.afternoon;
}
}(N), N;
};
}
return function(x, D, C) {
C.p.customParseFormat = !0, x && x.parseTwoDigitYear && (y = x.parseTwoDigitYear);
var k = D.prototype, w = k.parse;
k.parse = function(P) {
var V = P.date, O = P.utc, l = P.args;
this.$u = O;
var o = l[1];
if (typeof o == "string") {
var R = l[2] === !0, N = l[3] === !0, j = R || N, K = l[2];
N && (K = l[2]), s = this.$locale(), !R && K && (s = C.Ls[K]), this.$d = function(M, T, $) {
tr