@prefecthq/prefect-design
Version:
A collection of low-level Vue components.
1,756 lines • 2.42 MB
JavaScript
var sE = Object.defineProperty;
var lE = (t, n, a) => n in t ? sE(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a;
var Ie = (t, n, a) => lE(t, typeof n != "symbol" ? n + "" : n, a);
import * as uh from "vue";
import { computed as k, ref as z, shallowRef as cv, watch as nt, getCurrentScope as _f, onScopeDispose as ql, shallowReadonly as Rl, unref as y, defineComponent as q, toRefs as Nr, createBlock as G, openBlock as c, withCtx as D, renderSlot as N, withKeys as di, onMounted as Ct, createVNode as re, mergeProps as oe, toHandlers as cE, normalizeProps as ve, guardReactiveProps as Se, resolveDynamicComponent as Gr, nextTick as yt, createCommentVNode as le, getCurrentInstance as _o, toRef as pf, camelize as uv, watchSyncEffect as uE, withModifiers as Ca, createTextVNode as De, withDirectives as ur, vShow as Bl, toDisplayString as we, isRef as mf, normalizeStyle as Yr, toHandlerKey as dE, inject as Vi, provide as Wl, h as $t, readonly as jl, watchEffect as ln, Teleport as Id, useSlots as zr, createElementBlock as p, Fragment as Ke, renderList as ze, markRaw as dv, onUnmounted as ha, Comment as _v, cloneVNode as _E, reactive as Mr, mergeDefaults as pv, watchPostEffect as pE, effectScope as t0, customRef as mE, onBeforeUnmount as mv, onBeforeUpdate as gE, onUpdated as fE, useAttrs as v0, toValue as Vr, createElementVNode as d, resolveComponent as gt, Transition as E0, createStaticVNode as fi, normalizeClass as Oe, createSlots as mn, TransitionGroup as gv, vModelCheckbox as fv, vModelText as vl, vModelSelect as hE, mergeModels as b0, useModel as Di, KeepAlive as vE, onErrorCaptured as EE, vModelRadio as bE, useCssVars as SE, createApp as wE } from "vue";
import { useRouter as hv, useRoute as vv } from "vue-router";
const yE = ["top", "right", "bottom", "left"], so = Math.min, _a = Math.max, n0 = Math.round, Ud = Math.floor, ki = (t) => ({
x: t,
y: t
}), TE = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
}, CE = {
start: "end",
end: "start"
};
function P2(t, n, a) {
return _a(t, so(n, a));
}
function pi(t, n) {
return typeof t == "function" ? t(n) : t;
}
function mi(t) {
return t.split("-")[0];
}
function Kl(t) {
return t.split("-")[1];
}
function gf(t) {
return t === "x" ? "y" : "x";
}
function ff(t) {
return t === "y" ? "height" : "width";
}
function Li(t) {
return ["top", "bottom"].includes(mi(t)) ? "y" : "x";
}
function hf(t) {
return gf(Li(t));
}
function xE(t, n, a) {
a === void 0 && (a = !1);
const i = Kl(t), s = hf(t), u = ff(s);
let _ = s === "x" ? i === (a ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
return n.reference[u] > n.floating[u] && (_ = r0(_)), [_, r0(_)];
}
function AE(t) {
const n = r0(t);
return [B2(t), n, B2(n)];
}
function B2(t) {
return t.replace(/start|end/g, (n) => CE[n]);
}
function RE(t, n, a) {
const i = ["left", "right"], s = ["right", "left"], u = ["top", "bottom"], _ = ["bottom", "top"];
switch (t) {
case "top":
case "bottom":
return a ? n ? s : i : n ? i : s;
case "left":
case "right":
return n ? u : _;
default:
return [];
}
}
function OE(t, n, a, i) {
const s = Kl(t);
let u = RE(mi(t), a === "start", i);
return s && (u = u.map((_) => _ + "-" + s), n && (u = u.concat(u.map(B2)))), u;
}
function r0(t) {
return t.replace(/left|right|bottom|top/g, (n) => TE[n]);
}
function IE(t) {
return {
top: 0,
right: 0,
bottom: 0,
left: 0,
...t
};
}
function Ev(t) {
return typeof t != "number" ? IE(t) : {
top: t,
right: t,
bottom: t,
left: t
};
}
function a0(t) {
const {
x: n,
y: a,
width: i,
height: s
} = t;
return {
width: i,
height: s,
top: a,
left: n,
right: n + i,
bottom: a + s,
x: n,
y: a
};
}
function dh(t, n, a) {
let {
reference: i,
floating: s
} = t;
const u = Li(n), _ = hf(n), g = ff(_), v = mi(n), h = u === "y", f = i.x + i.width / 2 - s.width / 2, b = i.y + i.height / 2 - s.height / 2, w = i[g] / 2 - s[g] / 2;
let x;
switch (v) {
case "top":
x = {
x: f,
y: i.y - s.height
};
break;
case "bottom":
x = {
x: f,
y: i.y + i.height
};
break;
case "right":
x = {
x: i.x + i.width,
y: b
};
break;
case "left":
x = {
x: i.x - s.width,
y: b
};
break;
default:
x = {
x: i.x,
y: i.y
};
}
switch (Kl(n)) {
case "start":
x[_] -= w * (a && h ? -1 : 1);
break;
case "end":
x[_] += w * (a && h ? -1 : 1);
break;
}
return x;
}
const NE = async (t, n, a) => {
const {
placement: i = "bottom",
strategy: s = "absolute",
middleware: u = [],
platform: _
} = a, g = u.filter(Boolean), v = await (_.isRTL == null ? void 0 : _.isRTL(n));
let h = await _.getElementRects({
reference: t,
floating: n,
strategy: s
}), {
x: f,
y: b
} = dh(h, i, v), w = i, x = {}, A = 0;
for (let M = 0; M < g.length; M++) {
const {
name: F,
fn: V
} = g[M], {
x: j,
y: L,
data: I,
reset: U
} = await V({
x: f,
y: b,
initialPlacement: i,
placement: w,
strategy: s,
middlewareData: x,
rects: h,
platform: _,
elements: {
reference: t,
floating: n
}
});
f = j ?? f, b = L ?? b, x = {
...x,
[F]: {
...x[F],
...I
}
}, U && A <= 50 && (A++, typeof U == "object" && (U.placement && (w = U.placement), U.rects && (h = U.rects === !0 ? await _.getElementRects({
reference: t,
floating: n,
strategy: s
}) : U.rects), {
x: f,
y: b
} = dh(h, w, v)), M = -1);
}
return {
x: f,
y: b,
placement: w,
strategy: s,
middlewareData: x
};
};
async function Td(t, n) {
var a;
n === void 0 && (n = {});
const {
x: i,
y: s,
platform: u,
rects: _,
elements: g,
strategy: v
} = t, {
boundary: h = "clippingAncestors",
rootBoundary: f = "viewport",
elementContext: b = "floating",
altBoundary: w = !1,
padding: x = 0
} = pi(n, t), A = Ev(x), F = g[w ? b === "floating" ? "reference" : "floating" : b], V = a0(await u.getClippingRect({
element: (a = await (u.isElement == null ? void 0 : u.isElement(F))) == null || a ? F : F.contextElement || await (u.getDocumentElement == null ? void 0 : u.getDocumentElement(g.floating)),
boundary: h,
rootBoundary: f,
strategy: v
})), j = b === "floating" ? {
x: i,
y: s,
width: _.floating.width,
height: _.floating.height
} : _.reference, L = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(g.floating)), I = await (u.isElement == null ? void 0 : u.isElement(L)) ? await (u.getScale == null ? void 0 : u.getScale(L)) || {
x: 1,
y: 1
} : {
x: 1,
y: 1
}, U = a0(u.convertOffsetParentRelativeRectToViewportRelativeRect ? await u.convertOffsetParentRelativeRectToViewportRelativeRect({
elements: g,
rect: j,
offsetParent: L,
strategy: v
}) : j);
return {
top: (V.top - U.top + A.top) / I.y,
bottom: (U.bottom - V.bottom + A.bottom) / I.y,
left: (V.left - U.left + A.left) / I.x,
right: (U.right - V.right + A.right) / I.x
};
}
const ME = (t) => ({
name: "arrow",
options: t,
async fn(n) {
const {
x: a,
y: i,
placement: s,
rects: u,
platform: _,
elements: g,
middlewareData: v
} = n, {
element: h,
padding: f = 0
} = pi(t, n) || {};
if (h == null)
return {};
const b = Ev(f), w = {
x: a,
y: i
}, x = hf(s), A = ff(x), M = await _.getDimensions(h), F = x === "y", V = F ? "top" : "left", j = F ? "bottom" : "right", L = F ? "clientHeight" : "clientWidth", I = u.reference[A] + u.reference[x] - w[x] - u.floating[A], U = w[x] - u.reference[x], Z = await (_.getOffsetParent == null ? void 0 : _.getOffsetParent(h));
let ee = Z ? Z[L] : 0;
(!ee || !await (_.isElement == null ? void 0 : _.isElement(Z))) && (ee = g.floating[L] || u.floating[A]);
const Q = I / 2 - U / 2, ne = ee / 2 - M[A] / 2 - 1, X = so(b[V], ne), _e = so(b[j], ne), he = X, ye = ee - M[A] - _e, Ne = ee / 2 - M[A] / 2 + Q, Qe = P2(he, Ne, ye), Lt = !v.arrow && Kl(s) != null && Ne !== Qe && u.reference[A] / 2 - (Ne < he ? X : _e) - M[A] / 2 < 0, Pt = Lt ? Ne < he ? Ne - he : Ne - ye : 0;
return {
[x]: w[x] + Pt,
data: {
[x]: Qe,
centerOffset: Ne - Qe - Pt,
...Lt && {
alignmentOffset: Pt
}
},
reset: Lt
};
}
}), DE = function(t) {
return t === void 0 && (t = {}), {
name: "flip",
options: t,
async fn(n) {
var a, i;
const {
placement: s,
middlewareData: u,
rects: _,
initialPlacement: g,
platform: v,
elements: h
} = n, {
mainAxis: f = !0,
crossAxis: b = !0,
fallbackPlacements: w,
fallbackStrategy: x = "bestFit",
fallbackAxisSideDirection: A = "none",
flipAlignment: M = !0,
...F
} = pi(t, n);
if ((a = u.arrow) != null && a.alignmentOffset)
return {};
const V = mi(s), j = Li(g), L = mi(g) === g, I = await (v.isRTL == null ? void 0 : v.isRTL(h.floating)), U = w || (L || !M ? [r0(g)] : AE(g)), Z = A !== "none";
!w && Z && U.push(...OE(g, M, A, I));
const ee = [g, ...U], Q = await Td(n, F), ne = [];
let X = ((i = u.flip) == null ? void 0 : i.overflows) || [];
if (f && ne.push(Q[V]), b) {
const Ne = xE(s, _, I);
ne.push(Q[Ne[0]], Q[Ne[1]]);
}
if (X = [...X, {
placement: s,
overflows: ne
}], !ne.every((Ne) => Ne <= 0)) {
var _e, he;
const Ne = (((_e = u.flip) == null ? void 0 : _e.index) || 0) + 1, Qe = ee[Ne];
if (Qe)
return {
data: {
index: Ne,
overflows: X
},
reset: {
placement: Qe
}
};
let Lt = (he = X.filter((Pt) => Pt.overflows[0] <= 0).sort((Pt, xt) => Pt.overflows[1] - xt.overflows[1])[0]) == null ? void 0 : he.placement;
if (!Lt)
switch (x) {
case "bestFit": {
var ye;
const Pt = (ye = X.filter((xt) => {
if (Z) {
const Le = Li(xt.placement);
return Le === j || // Create a bias to the `y` side axis due to horizontal
// reading directions favoring greater width.
Le === "y";
}
return !0;
}).map((xt) => [xt.placement, xt.overflows.filter((Le) => Le > 0).reduce((Le, Je) => Le + Je, 0)]).sort((xt, Le) => xt[1] - Le[1])[0]) == null ? void 0 : ye[0];
Pt && (Lt = Pt);
break;
}
case "initialPlacement":
Lt = g;
break;
}
if (s !== Lt)
return {
reset: {
placement: Lt
}
};
}
return {};
}
};
};
function _h(t, n) {
return {
top: t.top - n.height,
right: t.right - n.width,
bottom: t.bottom - n.height,
left: t.left - n.width
};
}
function ph(t) {
return yE.some((n) => t[n] >= 0);
}
const kE = function(t) {
return t === void 0 && (t = {}), {
name: "hide",
options: t,
async fn(n) {
const {
rects: a
} = n, {
strategy: i = "referenceHidden",
...s
} = pi(t, n);
switch (i) {
case "referenceHidden": {
const u = await Td(n, {
...s,
elementContext: "reference"
}), _ = _h(u, a.reference);
return {
data: {
referenceHiddenOffsets: _,
referenceHidden: ph(_)
}
};
}
case "escaped": {
const u = await Td(n, {
...s,
altBoundary: !0
}), _ = _h(u, a.floating);
return {
data: {
escapedOffsets: _,
escaped: ph(_)
}
};
}
default:
return {};
}
}
};
};
async function LE(t, n) {
const {
placement: a,
platform: i,
elements: s
} = t, u = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), _ = mi(a), g = Kl(a), v = Li(a) === "y", h = ["left", "top"].includes(_) ? -1 : 1, f = u && v ? -1 : 1, b = pi(n, t);
let {
mainAxis: w,
crossAxis: x,
alignmentAxis: A
} = typeof b == "number" ? {
mainAxis: b,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: 0,
crossAxis: 0,
alignmentAxis: null,
...b
};
return g && typeof A == "number" && (x = g === "end" ? A * -1 : A), v ? {
x: x * f,
y: w * h
} : {
x: w * h,
y: x * f
};
}
const PE = function(t) {
return t === void 0 && (t = 0), {
name: "offset",
options: t,
async fn(n) {
var a, i;
const {
x: s,
y: u,
placement: _,
middlewareData: g
} = n, v = await LE(n, t);
return _ === ((a = g.offset) == null ? void 0 : a.placement) && (i = g.arrow) != null && i.alignmentOffset ? {} : {
x: s + v.x,
y: u + v.y,
data: {
...v,
placement: _
}
};
}
};
}, BE = function(t) {
return t === void 0 && (t = {}), {
name: "shift",
options: t,
async fn(n) {
const {
x: a,
y: i,
placement: s
} = n, {
mainAxis: u = !0,
crossAxis: _ = !1,
limiter: g = {
fn: (F) => {
let {
x: V,
y: j
} = F;
return {
x: V,
y: j
};
}
},
...v
} = pi(t, n), h = {
x: a,
y: i
}, f = await Td(n, v), b = Li(mi(s)), w = gf(b);
let x = h[w], A = h[b];
if (u) {
const F = w === "y" ? "top" : "left", V = w === "y" ? "bottom" : "right", j = x + f[F], L = x - f[V];
x = P2(j, x, L);
}
if (_) {
const F = b === "y" ? "top" : "left", V = b === "y" ? "bottom" : "right", j = A + f[F], L = A - f[V];
A = P2(j, A, L);
}
const M = g.fn({
...n,
[w]: x,
[b]: A
});
return {
...M,
data: {
x: M.x - a,
y: M.y - i
}
};
}
};
}, FE = function(t) {
return t === void 0 && (t = {}), {
options: t,
fn(n) {
const {
x: a,
y: i,
placement: s,
rects: u,
middlewareData: _
} = n, {
offset: g = 0,
mainAxis: v = !0,
crossAxis: h = !0
} = pi(t, n), f = {
x: a,
y: i
}, b = Li(s), w = gf(b);
let x = f[w], A = f[b];
const M = pi(g, n), F = typeof M == "number" ? {
mainAxis: M,
crossAxis: 0
} : {
mainAxis: 0,
crossAxis: 0,
...M
};
if (v) {
const L = w === "y" ? "height" : "width", I = u.reference[w] - u.floating[L] + F.mainAxis, U = u.reference[w] + u.reference[L] - F.mainAxis;
x < I ? x = I : x > U && (x = U);
}
if (h) {
var V, j;
const L = w === "y" ? "width" : "height", I = ["top", "left"].includes(mi(s)), U = u.reference[b] - u.floating[L] + (I && ((V = _.offset) == null ? void 0 : V[b]) || 0) + (I ? 0 : F.crossAxis), Z = u.reference[b] + u.reference[L] + (I ? 0 : ((j = _.offset) == null ? void 0 : j[b]) || 0) - (I ? F.crossAxis : 0);
A < U ? A = U : A > Z && (A = Z);
}
return {
[w]: x,
[b]: A
};
}
};
}, UE = function(t) {
return t === void 0 && (t = {}), {
name: "size",
options: t,
async fn(n) {
const {
placement: a,
rects: i,
platform: s,
elements: u
} = n, {
apply: _ = () => {
},
...g
} = pi(t, n), v = await Td(n, g), h = mi(a), f = Kl(a), b = Li(a) === "y", {
width: w,
height: x
} = i.floating;
let A, M;
h === "top" || h === "bottom" ? (A = h, M = f === (await (s.isRTL == null ? void 0 : s.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (M = h, A = f === "end" ? "top" : "bottom");
const F = x - v.top - v.bottom, V = w - v.left - v.right, j = so(x - v[A], F), L = so(w - v[M], V), I = !n.middlewareData.shift;
let U = j, Z = L;
if (b ? Z = f || I ? so(L, V) : V : U = f || I ? so(j, F) : F, I && !f) {
const Q = _a(v.left, 0), ne = _a(v.right, 0), X = _a(v.top, 0), _e = _a(v.bottom, 0);
b ? Z = w - 2 * (Q !== 0 || ne !== 0 ? Q + ne : _a(v.left, v.right)) : U = x - 2 * (X !== 0 || _e !== 0 ? X + _e : _a(v.top, v.bottom));
}
await _({
...n,
availableWidth: Z,
availableHeight: U
});
const ee = await s.getDimensions(u.floating);
return w !== ee.width || x !== ee.height ? {
reset: {
rects: !0
}
} : {};
}
};
};
function El(t) {
return vf(t) ? (t.nodeName || "").toLowerCase() : "#document";
}
function ga(t) {
var n;
return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
}
function hi(t) {
var n;
return (n = (vf(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
}
function vf(t) {
return t instanceof Node || t instanceof ga(t).Node;
}
function lo(t) {
return t instanceof Element || t instanceof ga(t).Element;
}
function co(t) {
return t instanceof HTMLElement || t instanceof ga(t).HTMLElement;
}
function mh(t) {
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ga(t).ShadowRoot;
}
function Nd(t) {
const {
overflow: n,
overflowX: a,
overflowY: i,
display: s
} = Ka(t);
return /auto|scroll|overlay|hidden|clip/.test(n + i + a) && !["inline", "contents"].includes(s);
}
function $E(t) {
return ["table", "td", "th"].includes(El(t));
}
function S0(t) {
return [":popover-open", ":modal"].some((n) => {
try {
return t.matches(n);
} catch {
return !1;
}
});
}
function Ef(t) {
const n = bf(), a = Ka(t);
return a.transform !== "none" || a.perspective !== "none" || (a.containerType ? a.containerType !== "normal" : !1) || !n && (a.backdropFilter ? a.backdropFilter !== "none" : !1) || !n && (a.filter ? a.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((i) => (a.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (a.contain || "").includes(i));
}
function VE(t) {
let n = Pi(t);
for (; co(n) && !Fl(n); ) {
if (S0(n))
return null;
if (Ef(n))
return n;
n = Pi(n);
}
return null;
}
function bf() {
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function Fl(t) {
return ["html", "body", "#document"].includes(El(t));
}
function Ka(t) {
return ga(t).getComputedStyle(t);
}
function w0(t) {
return lo(t) ? {
scrollLeft: t.scrollLeft,
scrollTop: t.scrollTop
} : {
scrollLeft: t.scrollX,
scrollTop: t.scrollY
};
}
function Pi(t) {
if (El(t) === "html")
return t;
const n = (
// Step into the shadow DOM of the parent of a slotted node.
t.assignedSlot || // DOM Element detected.
t.parentNode || // ShadowRoot detected.
mh(t) && t.host || // Fallback.
hi(t)
);
return mh(n) ? n.host : n;
}
function bv(t) {
const n = Pi(t);
return Fl(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : co(n) && Nd(n) ? n : bv(n);
}
function Cd(t, n, a) {
var i;
n === void 0 && (n = []), a === void 0 && (a = !0);
const s = bv(t), u = s === ((i = t.ownerDocument) == null ? void 0 : i.body), _ = ga(s);
return u ? n.concat(_, _.visualViewport || [], Nd(s) ? s : [], _.frameElement && a ? Cd(_.frameElement) : []) : n.concat(s, Cd(s, [], a));
}
function Sv(t) {
const n = Ka(t);
let a = parseFloat(n.width) || 0, i = parseFloat(n.height) || 0;
const s = co(t), u = s ? t.offsetWidth : a, _ = s ? t.offsetHeight : i, g = n0(a) !== u || n0(i) !== _;
return g && (a = u, i = _), {
width: a,
height: i,
$: g
};
}
function Sf(t) {
return lo(t) ? t : t.contextElement;
}
function Ll(t) {
const n = Sf(t);
if (!co(n))
return ki(1);
const a = n.getBoundingClientRect(), {
width: i,
height: s,
$: u
} = Sv(n);
let _ = (u ? n0(a.width) : a.width) / i, g = (u ? n0(a.height) : a.height) / s;
return (!_ || !Number.isFinite(_)) && (_ = 1), (!g || !Number.isFinite(g)) && (g = 1), {
x: _,
y: g
};
}
const HE = /* @__PURE__ */ ki(0);
function wv(t) {
const n = ga(t);
return !bf() || !n.visualViewport ? HE : {
x: n.visualViewport.offsetLeft,
y: n.visualViewport.offsetTop
};
}
function GE(t, n, a) {
return n === void 0 && (n = !1), !a || n && a !== ga(t) ? !1 : n;
}
function pl(t, n, a, i) {
n === void 0 && (n = !1), a === void 0 && (a = !1);
const s = t.getBoundingClientRect(), u = Sf(t);
let _ = ki(1);
n && (i ? lo(i) && (_ = Ll(i)) : _ = Ll(t));
const g = GE(u, a, i) ? wv(u) : ki(0);
let v = (s.left + g.x) / _.x, h = (s.top + g.y) / _.y, f = s.width / _.x, b = s.height / _.y;
if (u) {
const w = ga(u), x = i && lo(i) ? ga(i) : i;
let A = w, M = A.frameElement;
for (; M && i && x !== A; ) {
const F = Ll(M), V = M.getBoundingClientRect(), j = Ka(M), L = V.left + (M.clientLeft + parseFloat(j.paddingLeft)) * F.x, I = V.top + (M.clientTop + parseFloat(j.paddingTop)) * F.y;
v *= F.x, h *= F.y, f *= F.x, b *= F.y, v += L, h += I, A = ga(M), M = A.frameElement;
}
}
return a0({
width: f,
height: b,
x: v,
y: h
});
}
function YE(t) {
let {
elements: n,
rect: a,
offsetParent: i,
strategy: s
} = t;
const u = s === "fixed", _ = hi(i), g = n ? S0(n.floating) : !1;
if (i === _ || g && u)
return a;
let v = {
scrollLeft: 0,
scrollTop: 0
}, h = ki(1);
const f = ki(0), b = co(i);
if ((b || !b && !u) && ((El(i) !== "body" || Nd(_)) && (v = w0(i)), co(i))) {
const w = pl(i);
h = Ll(i), f.x = w.x + i.clientLeft, f.y = w.y + i.clientTop;
}
return {
width: a.width * h.x,
height: a.height * h.y,
x: a.x * h.x - v.scrollLeft * h.x + f.x,
y: a.y * h.y - v.scrollTop * h.y + f.y
};
}
function zE(t) {
return Array.from(t.getClientRects());
}
function yv(t) {
return pl(hi(t)).left + w0(t).scrollLeft;
}
function ZE(t) {
const n = hi(t), a = w0(t), i = t.ownerDocument.body, s = _a(n.scrollWidth, n.clientWidth, i.scrollWidth, i.clientWidth), u = _a(n.scrollHeight, n.clientHeight, i.scrollHeight, i.clientHeight);
let _ = -a.scrollLeft + yv(t);
const g = -a.scrollTop;
return Ka(i).direction === "rtl" && (_ += _a(n.clientWidth, i.clientWidth) - s), {
width: s,
height: u,
x: _,
y: g
};
}
function qE(t, n) {
const a = ga(t), i = hi(t), s = a.visualViewport;
let u = i.clientWidth, _ = i.clientHeight, g = 0, v = 0;
if (s) {
u = s.width, _ = s.height;
const h = bf();
(!h || h && n === "fixed") && (g = s.offsetLeft, v = s.offsetTop);
}
return {
width: u,
height: _,
x: g,
y: v
};
}
function WE(t, n) {
const a = pl(t, !0, n === "fixed"), i = a.top + t.clientTop, s = a.left + t.clientLeft, u = co(t) ? Ll(t) : ki(1), _ = t.clientWidth * u.x, g = t.clientHeight * u.y, v = s * u.x, h = i * u.y;
return {
width: _,
height: g,
x: v,
y: h
};
}
function gh(t, n, a) {
let i;
if (n === "viewport")
i = qE(t, a);
else if (n === "document")
i = ZE(hi(t));
else if (lo(n))
i = WE(n, a);
else {
const s = wv(t);
i = {
...n,
x: n.x - s.x,
y: n.y - s.y
};
}
return a0(i);
}
function Tv(t, n) {
const a = Pi(t);
return a === n || !lo(a) || Fl(a) ? !1 : Ka(a).position === "fixed" || Tv(a, n);
}
function jE(t, n) {
const a = n.get(t);
if (a)
return a;
let i = Cd(t, [], !1).filter((g) => lo(g) && El(g) !== "body"), s = null;
const u = Ka(t).position === "fixed";
let _ = u ? Pi(t) : t;
for (; lo(_) && !Fl(_); ) {
const g = Ka(_), v = Ef(_);
!v && g.position === "fixed" && (s = null), (u ? !v && !s : !v && g.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || Nd(_) && !v && Tv(t, _)) ? i = i.filter((f) => f !== _) : s = g, _ = Pi(_);
}
return n.set(t, i), i;
}
function KE(t) {
let {
element: n,
boundary: a,
rootBoundary: i,
strategy: s
} = t;
const _ = [...a === "clippingAncestors" ? S0(n) ? [] : jE(n, this._c) : [].concat(a), i], g = _[0], v = _.reduce((h, f) => {
const b = gh(n, f, s);
return h.top = _a(b.top, h.top), h.right = so(b.right, h.right), h.bottom = so(b.bottom, h.bottom), h.left = _a(b.left, h.left), h;
}, gh(n, g, s));
return {
width: v.right - v.left,
height: v.bottom - v.top,
x: v.left,
y: v.top
};
}
function QE(t) {
const {
width: n,
height: a
} = Sv(t);
return {
width: n,
height: a
};
}
function XE(t, n, a) {
const i = co(n), s = hi(n), u = a === "fixed", _ = pl(t, !0, u, n);
let g = {
scrollLeft: 0,
scrollTop: 0
};
const v = ki(0);
if (i || !i && !u)
if ((El(n) !== "body" || Nd(s)) && (g = w0(n)), i) {
const b = pl(n, !0, u, n);
v.x = b.x + n.clientLeft, v.y = b.y + n.clientTop;
} else s && (v.x = yv(s));
const h = _.left + g.scrollLeft - v.x, f = _.top + g.scrollTop - v.y;
return {
x: h,
y: f,
width: _.width,
height: _.height
};
}
function g2(t) {
return Ka(t).position === "static";
}
function fh(t, n) {
return !co(t) || Ka(t).position === "fixed" ? null : n ? n(t) : t.offsetParent;
}
function Cv(t, n) {
const a = ga(t);
if (S0(t))
return a;
if (!co(t)) {
let s = Pi(t);
for (; s && !Fl(s); ) {
if (lo(s) && !g2(s))
return s;
s = Pi(s);
}
return a;
}
let i = fh(t, n);
for (; i && $E(i) && g2(i); )
i = fh(i, n);
return i && Fl(i) && g2(i) && !Ef(i) ? a : i || VE(t) || a;
}
const JE = async function(t) {
const n = this.getOffsetParent || Cv, a = this.getDimensions, i = await a(t.floating);
return {
reference: XE(t.reference, await n(t.floating), t.strategy),
floating: {
x: 0,
y: 0,
width: i.width,
height: i.height
}
};
};
function eb(t) {
return Ka(t).direction === "rtl";
}
const tb = {
convertOffsetParentRelativeRectToViewportRelativeRect: YE,
getDocumentElement: hi,
getClippingRect: KE,
getOffsetParent: Cv,
getElementRects: JE,
getClientRects: zE,
getDimensions: QE,
getScale: Ll,
isElement: lo,
isRTL: eb
};
function nb(t, n) {
let a = null, i;
const s = hi(t);
function u() {
var g;
clearTimeout(i), (g = a) == null || g.disconnect(), a = null;
}
function _(g, v) {
g === void 0 && (g = !1), v === void 0 && (v = 1), u();
const {
left: h,
top: f,
width: b,
height: w
} = t.getBoundingClientRect();
if (g || n(), !b || !w)
return;
const x = Ud(f), A = Ud(s.clientWidth - (h + b)), M = Ud(s.clientHeight - (f + w)), F = Ud(h), j = {
rootMargin: -x + "px " + -A + "px " + -M + "px " + -F + "px",
threshold: _a(0, so(1, v)) || 1
};
let L = !0;
function I(U) {
const Z = U[0].intersectionRatio;
if (Z !== v) {
if (!L)
return _();
Z ? _(!1, Z) : i = setTimeout(() => {
_(!1, 1e-7);
}, 1e3);
}
L = !1;
}
try {
a = new IntersectionObserver(I, {
...j,
// Handle <iframe>s
root: s.ownerDocument
});
} catch {
a = new IntersectionObserver(I, j);
}
a.observe(t);
}
return _(!0), u;
}
function rb(t, n, a, i) {
i === void 0 && (i = {});
const {
ancestorScroll: s = !0,
ancestorResize: u = !0,
elementResize: _ = typeof ResizeObserver == "function",
layoutShift: g = typeof IntersectionObserver == "function",
animationFrame: v = !1
} = i, h = Sf(t), f = s || u ? [...h ? Cd(h) : [], ...Cd(n)] : [];
f.forEach((V) => {
s && V.addEventListener("scroll", a, {
passive: !0
}), u && V.addEventListener("resize", a);
});
const b = h && g ? nb(h, a) : null;
let w = -1, x = null;
_ && (x = new ResizeObserver((V) => {
let [j] = V;
j && j.target === h && x && (x.unobserve(n), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
var L;
(L = x) == null || L.observe(n);
})), a();
}), h && !v && x.observe(h), x.observe(n));
let A, M = v ? pl(t) : null;
v && F();
function F() {
const V = pl(t);
M && (V.x !== M.x || V.y !== M.y || V.width !== M.width || V.height !== M.height) && a(), M = V, A = requestAnimationFrame(F);
}
return a(), () => {
var V;
f.forEach((j) => {
s && j.removeEventListener("scroll", a), u && j.removeEventListener("resize", a);
}), b == null || b(), (V = x) == null || V.disconnect(), x = null, v && cancelAnimationFrame(A);
};
}
const ab = PE, ob = BE, hh = DE, ib = UE, sb = kE, lb = ME, cb = FE, ub = (t, n, a) => {
const i = /* @__PURE__ */ new Map(), s = {
platform: tb,
...a
}, u = {
...s.platform,
_c: i
};
return NE(t, n, {
...s,
platform: u
});
};
function db(t) {
return t != null && typeof t == "object" && "$el" in t;
}
function F2(t) {
if (db(t)) {
const n = t.$el;
return vf(n) && El(n) === "#comment" ? null : n;
}
return t;
}
function Ml(t) {
return typeof t == "function" ? t() : y(t);
}
function _b(t) {
return {
name: "arrow",
options: t,
fn(n) {
const a = F2(Ml(t.element));
return a == null ? {} : lb({
element: a,
padding: t.padding
}).fn(n);
}
};
}
function xv(t) {
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function vh(t, n) {
const a = xv(t);
return Math.round(n * a) / a;
}
function pb(t, n, a) {
a === void 0 && (a = {});
const i = a.whileElementsMounted, s = k(() => {
var ee;
return (ee = Ml(a.open)) != null ? ee : !0;
}), u = k(() => Ml(a.middleware)), _ = k(() => {
var ee;
return (ee = Ml(a.placement)) != null ? ee : "bottom";
}), g = k(() => {
var ee;
return (ee = Ml(a.strategy)) != null ? ee : "absolute";
}), v = k(() => {
var ee;
return (ee = Ml(a.transform)) != null ? ee : !0;
}), h = k(() => F2(t.value)), f = k(() => F2(n.value)), b = z(0), w = z(0), x = z(g.value), A = z(_.value), M = cv({}), F = z(!1), V = k(() => {
const ee = {
position: x.value,
left: "0",
top: "0"
};
if (!f.value)
return ee;
const Q = vh(f.value, b.value), ne = vh(f.value, w.value);
return v.value ? {
...ee,
transform: "translate(" + Q + "px, " + ne + "px)",
...xv(f.value) >= 1.5 && {
willChange: "transform"
}
} : {
position: x.value,
left: Q + "px",
top: ne + "px"
};
});
let j;
function L() {
h.value == null || f.value == null || ub(h.value, f.value, {
middleware: u.value,
placement: _.value,
strategy: g.value
}).then((ee) => {
b.value = ee.x, w.value = ee.y, x.value = ee.strategy, A.value = ee.placement, M.value = ee.middlewareData, F.value = !0;
});
}
function I() {
typeof j == "function" && (j(), j = void 0);
}
function U() {
if (I(), i === void 0) {
L();
return;
}
if (h.value != null && f.value != null) {
j = i(h.value, f.value, L);
return;
}
}
function Z() {
s.value || (F.value = !1);
}
return nt([u, _, g], L, {
flush: "sync"
}), nt([h, f], U, {
flush: "sync"
}), nt(s, Z, {
flush: "sync"
}), _f() && ql(I), {
x: Rl(b),
y: Rl(w),
strategy: Rl(x),
placement: Rl(A),
middlewareData: Rl(M),
isPositioned: Rl(F),
floatingStyles: V,
update: L
};
}
function Dn(t, n) {
const a = typeof t == "string" && !n ? `${t}Context` : n, i = Symbol(a);
return [(s) => {
const u = Vi(i, s);
if (u || u === null)
return u;
throw new Error(
`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(t) ? `one of the following components: ${t.join(
", "
)}` : `\`${t}\``}`
);
}, (s) => (Wl(i, s), s)];
}
function wf(t, n, a) {
const i = a.originalEvent.target, s = new CustomEvent(t, {
bubbles: !1,
cancelable: !0,
detail: a
});
n && i.addEventListener(t, n, { once: !0 }), i.dispatchEvent(s);
}
function mb(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var gb = function t(n, a) {
if (n === a) return !0;
if (n && a && typeof n == "object" && typeof a == "object") {
if (n.constructor !== a.constructor) return !1;
var i, s, u;
if (Array.isArray(n)) {
if (i = n.length, i != a.length) return !1;
for (s = i; s-- !== 0; )
if (!t(n[s], a[s])) return !1;
return !0;
}
if (n.constructor === RegExp) return n.source === a.source && n.flags === a.flags;
if (n.valueOf !== Object.prototype.valueOf) return n.valueOf() === a.valueOf();
if (n.toString !== Object.prototype.toString) return n.toString() === a.toString();
if (u = Object.keys(n), i = u.length, i !== Object.keys(a).length) return !1;
for (s = i; s-- !== 0; )
if (!Object.prototype.hasOwnProperty.call(a, u[s])) return !1;
for (s = i; s-- !== 0; ) {
var _ = u[s];
if (!t(n[_], a[_])) return !1;
}
return !0;
}
return n !== n && a !== a;
};
const ul = /* @__PURE__ */ mb(gb);
function f2(t) {
return t == null;
}
function fb(t, n) {
var a;
const i = cv();
return ln(() => {
i.value = t();
}, {
...n,
flush: (a = void 0) != null ? a : "sync"
}), jl(i);
}
function Ql(t) {
return _f() ? (ql(t), !0) : !1;
}
function hb() {
const t = /* @__PURE__ */ new Set(), n = (a) => {
t.delete(a);
};
return {
on: (a) => {
t.add(a);
const i = () => n(a);
return Ql(i), {
off: i
};
},
off: n,
trigger: (...a) => Promise.all(Array.from(t).map((i) => i(...a)))
};
}
function vb(t) {
let n = !1, a;
const i = t0(!0);
return (...s) => (n || (a = i.run(() => t(...s)), n = !0), a);
}
function Av(t) {
let n = 0, a, i;
const s = () => {
n -= 1, i && n <= 0 && (i.stop(), a = void 0, i = void 0);
};
return (...u) => (n += 1, a || (i = t0(!0), a = i.run(() => t(...u))), Ql(s), a);
}
function _i(t) {
return typeof t == "function" ? t() : y(t);
}
const vi = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const Eb = (t) => typeof t < "u", bb = (t) => t != null, Sb = Object.prototype.toString, wb = (t) => Sb.call(t) === "[object Object]", yb = () => {
}, Eh = /* @__PURE__ */ Tb();
function Tb() {
var t, n;
return vi && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
}
function Cb(t) {
return _o();
}
function Rv(t, n = 1e4) {
return mE((a, i) => {
let s = _i(t), u;
const _ = () => setTimeout(() => {
s = _i(t), i();
}, _i(n));
return Ql(() => {
clearTimeout(u);
}), {
get() {
return a(), s;
},
set(g) {
s = g, i(), clearTimeout(u), u = _();
}
};
});
}
function xb(t, n) {
Cb() && mv(t, n);
}
function Ov(t, n, a = {}) {
const {
immediate: i = !0
} = a, s = z(!1);
let u = null;
function _() {
u && (clearTimeout(u), u = null);
}
function g() {
s.value = !1, _();
}
function v(...h) {
_(), s.value = !0, u = setTimeout(() => {
s.value = !1, u = null, t(...h);
}, _i(n));
}
return i && (s.value = !0, vi && v()), Ql(g), {
isPending: jl(s),
start: v,
stop: g
};
}
function Ei(t) {
var n;
const a = _i(t);
return (n = a == null ? void 0 : a.$el) != null ? n : a;
}
const y0 = vi ? window : void 0;
function Ul(...t) {
let n, a, i, s;
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([a, i, s] = t, n = y0) : [n, a, i, s] = t, !n)
return yb;
Array.isArray(a) || (a = [a]), Array.isArray(i) || (i = [i]);
const u = [], _ = () => {
u.forEach((f) => f()), u.length = 0;
}, g = (f, b, w, x) => (f.addEventListener(b, w, x), () => f.removeEventListener(b, w, x)), v = nt(
() => [Ei(n), _i(s)],
([f, b]) => {
if (_(), !f)
return;
const w = wb(b) ? { ...b } : b;
u.push(
...a.flatMap((x) => i.map((A) => g(f, x, A, w)))
);
},
{ immediate: !0, flush: "post" }
), h = () => {
v(), _();
};
return Ql(h), h;
}
function Ab(t) {
return typeof t == "function" ? t : typeof t == "string" ? (n) => n.key === t : Array.isArray(t) ? (n) => t.includes(n.key) : () => !0;
}
function Rb(...t) {
let n, a, i = {};
t.length === 3 ? (n = t[0], a = t[1], i = t[2]) : t.length === 2 ? typeof t[1] == "object" ? (n = !0, a = t[0], i = t[1]) : (n = t[0], a = t[1]) : (n = !0, a = t[0]);
const {
target: s = y0,
eventName: u = "keydown",
passive: _ = !1,
dedupe: g = !1
} = i, v = Ab(n);
return Ul(s, u, (h) => {
h.repeat && _i(g) || v(h) && a(h);
}, _);
}
function Iv() {
const t = z(!1), n = _o();
return n && Ct(() => {
t.value = !0;
}, n), t;
}
function Ob(t) {
const n = Iv();
return k(() => (n.value, !!t()));
}
function Ib(t, n, a = {}) {
const { window: i = y0, ...s } = a;
let u;
const _ = Ob(() => i && "MutationObserver" in i), g = () => {
u && (u.disconnect(), u = void 0);
}, v = k(() => {
const w = _i(t), x = (Array.isArray(w) ? w : [w]).map(Ei).filter(bb);
return new Set(x);
}), h = nt(
() => v.value,
(w) => {
g(), _.value && w.size && (u = new MutationObserver(n), w.forEach((x) => u.observe(x, s)));
},
{ immediate: !0, flush: "post" }
), f = () => u == null ? void 0 : u.takeRecords(), b = () => {
g(), h();
};
return Ql(b), {
isSupported: _,
stop: b,
takeRecords: f
};
}
function Nb(t) {
return JSON.parse(JSON.stringify(t));
}
function ma(t, n, a, i = {}) {
var s, u, _;
const {
clone: g = !1,
passive: v = !1,
eventName: h,
deep: f = !1,
defaultValue: b,
shouldEmit: w
} = i, x = _o(), A = a || (x == null ? void 0 : x.emit) || ((s = x == null ? void 0 : x.$emit) == null ? void 0 : s.bind(x)) || ((_ = (u = x == null ? void 0 : x.proxy) == null ? void 0 : u.$emit) == null ? void 0 : _.bind(x == null ? void 0 : x.proxy));
let M = h;
n || (n = "modelValue"), M = M || `update:${n.toString()}`;
const F = (L) => g ? typeof g == "function" ? g(L) : Nb(L) : L, V = () => Eb(t[n]) ? F(t[n]) : b, j = (L) => {
w ? w(L) && A(M, L) : A(M, L);
};
if (v) {
const L = V(), I = z(L);
let U = !1;
return nt(
() => t[n],
(Z) => {
U || (U = !0, I.value = F(Z), yt(() => U = !1));
}
), nt(
I,
(Z) => {
!U && (Z !== t[n] || f) && j(Z);
},
{ deep: f }
), I;
} else
return k({
get() {
return V();
},
set(L) {
j(L);
}
});
}
function yf(t) {
return t ? t.flatMap((n) => n.type === Ke ? yf(n.children) : [n]) : [];
}
function Hr() {
let t = document.activeElement;
if (t == null)
return null;
for (; t != null && t.shadowRoot != null && t.shadowRoot.activeElement != null; )
t = t.shadowRoot.activeElement;
return t;
}
const Mb = ["INPUT", "TEXTAREA"];
function Nv(t, n, a, i = {}) {
if (!n || i.enableIgnoredElement && Mb.includes(n.nodeName))
return null;
const {
arrowKeyOptions: s = "both",
attributeName: u = "[data-radix-vue-collection-item]",
itemsArray: _ = [],
loop: g = !0,
dir: v = "ltr",
preventScroll: h = !0,
focus: f = !1
} = i, [b, w, x, A, M, F] = [
t.key === "ArrowRight",
t.key === "ArrowLeft",
t.key === "ArrowUp",
t.key === "ArrowDown",
t.key === "Home",
t.key === "End"
], V = x || A, j = b || w;
if (!M && !F && (!V && !j || s === "vertical" && j || s === "horizontal" && V))
return null;
const L = a ? Array.from(a.querySelectorAll(u)) : _;
if (!L.length)
return null;
h && t.preventDefault();
let I = null;
return j || V ? I = Mv(L, n, {
goForward: V ? A : v === "ltr" ? b : w,
loop: g
}) : M ? I = L.at(0) || null : F && (I = L.at(-1) || null), f && (I == null || I.focus()), I;
}
function Mv(t, n, a, i = t.length) {
if (--i === 0)
return null;
const s = t.indexOf(n), u = a.goForward ? s + 1 : s - 1;
if (!a.loop && (u < 0 || u >= t.length))
return null;
const _ = (u + t.length) % t.length, g = t[_];
return g ? g.hasAttribute("disabled") && g.getAttribute("disabled") !== "false" ? Mv(
t,
g,
a,
i
) : g : null;
}
function h2(t) {
if (t === null || typeof t != "object")
return !1;
const n = Object.getPrototypeOf(t);
return n !== null && n !== Object.prototype && Object.getPrototypeOf(n) !== null || Symbol.iterator in t ? !1 : Symbol.toStringTag in t ? Object.prototype.toString.call(t) === "[object Module]" : !0;
}
function U2(t, n, a = ".", i) {
if (!h2(n))
return U2(t, {}, a);
const s = Object.assign({}, n);
for (const u in t) {
if (u === "__proto__" || u === "constructor")
continue;
const _ = t[u];
_ != null && (Array.isArray(_) && Array.isArray(s[u]) ? s[u] = [..._, ...s[u]] : h2(_) && h2(s[u]) ? s[u] = U2(
_,
s[u],
(a ? `${a}.` : "") + u.toString()
) : s[u] = _);
}
return s;
}
function Db(t) {
return (...n) => (
// eslint-disable-next-line unicorn/no-array-reduce
n.reduce((a, i) => U2(a, i, ""), {})
);
}
const kb = Db(), [Tf, $Q] = Dn("ConfigProvider");
let Lb = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Pb = (t = 21) => {
let n = "", a = t;
for (; a--; )
n += Lb[Math.random() * 64 | 0];
return n;
};
const Bb = Av(() => {
const t = z(/* @__PURE__ */ new Map()), n = z(), a = k(() => {
for (const _ of t.value.values())
if (_)
return !0;
return !1;
}), i = Tf({
scrollBody: z(!0)
});
let s = null;
const u = () => {
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = n.value ?? "", Eh && (s == null || s()), n.value = void 0;
};
return nt(a, (_, g) => {
var v;
if (!vi)
return;
if (!_) {
g && u();
return;
}
n.value === void 0 && (n.value = document.body.style.overflow);
const h = window.innerWidth - document.documentElement.clientWidth, f = { padding: h, margin: 0 }, b = (v = i.scrollBody) != null && v.value ? typeof i.scrollBody.value == "object" ? kb({
padding: i.scrollBody.value.padding === !0 ? h : i.scrollBody.value.padding,
margin: i.scrollBody.value.margin === !0 ? h : i.scrollBody.value.margin
}, f) : f : { padding: 0, margin: 0 };
h > 0 && (document.body.style.paddingRight = typeof b.padding == "number" ? `${b.padding}px` : String(b.padding), document.body.style.marginRight = typeof b.margin == "number" ? `${b.margin}px` : String(b.margin), document.body.style.setProperty("--scrollbar-width", `${h}px`), document.body.style.overflow = "hidden"), Eh && (s = Ul(
document,
"touchmove",
(w) => Fb(w),
{ passive: !1 }
)), yt(() => {
document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
});
}, { immediate: !0, flush: "sync" }), t;
});
function Cf(t) {
const n = Pb(6), a = Bb();
a.value.set(n, t ?? !1);
const i = k({
get: () => a.value.get(n) ?? !1,
set: (s) => a.value.set(n, s)
});
return xb(() => {
a.value.delete(n);
}), i;
}
function Dv(t) {
const n = window.getComputedStyle(t);
if (n.overflowX === "scroll" || n.overflowY === "scroll" || n.overflowX === "auto" && t.clientWidth < t.scrollWidth || n.overflowY === "auto" && t.clientHeight < t.scrollHeight)
return !0;
{
const a = t.parentNode;
return !(a instanceof Element) || a.tagName === "BODY" ? !1 : Dv(a);
}
}
function Fb(t) {
const n = t || window.event, a = n.target;
return a instanceof Element && Dv(a) ? !1 : n.touches.length > 1 ? !0 : (n.preventDefault && n.cancelable && n.preventDefault(), !1);
}
const Ub = "data-radix-vue-collection-item";
function $b(t, n = Ub) {
const a = Symbol();
return { createCollection: (i) => {
const s = z([]);
function u() {
const _ = Ei(i);
return _ ? s.value = Array.from(
_.querySelectorAll(`[${n}]:not([data-disabled])`)
) : s.value = [];
}
return gE(() => {
s.value = [];
}), Ct(u), fE(u), nt(() => i == null ? void 0 : i.value, u, { immediate: !0 }), Wl(a, s), s;
}, injectCollection: () => Vi(a, z([])) };
}
function Xl(t) {
const n = Tf({
dir: z("ltr")
});
return k(() => {
var a;
return (t == null ? void 0 : t.value) || ((a = n.dir) == null ? void 0 : a.value) || "ltr";
});
}
function Md(t) {
const n = _o(), a = n == null ? void 0 : n.type.emits, i = {};
return a != null && a.length || console.warn(
`No emitted event found. Please check component: ${n == null ? void 0 : n.type.__name}`
), a == null || a.forEach((s) => {
i[dE(uv(s))] = (...u) => t(s, ...u);
}), i;
}
let v2 = 0;
function Vb() {
ln((t) => {
if (!vi)
return;
const n = document.querySelectorAll("[data-radix-focus-guard]");
document.body.insertAdjacentElement(
"afterbegin",
n[0] ?? bh()
), document.body.insertAdjacentElement(
"beforeend",
n[1] ?? bh()
), v2++, t(() => {
v2 === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((a) => a.remove()), v2--;
});
});
}
function bh() {
const t = document.createElement("span");
return t.setAttribute("data-radix-focus-guard", ""), t.tabIndex = 0, t.style.outline = "none", t.style.opacity = "0", t.style.position = "fixed", t.style.pointerEvents = "none", t;
}
function Hb(t) {
return k(() => {
var n;
return _i(t) ? !!((n = Ei(t)) != null && n.closest("form")) : !0;
});
}
function bl(t) {
const n = _o(), a = Object.keys((n == null ? void 0 : n.type.props) ?? {}).reduce((s, u) => {
const _ = (n == null ? void 0 : n.type.props[u]).default;
return _ !== void 0 && (s[u] = _), s;
}, {}), i = pf(t);
return k(() => {
const s = {}, u = (n == null ? void 0 : n.vnode.props) ?? {};
return Object.keys(u).forEach((_) => {
s[uv(_)] = u[_];
}), Object.keys({ ...a, ...s }).reduce((_, g) => (i.value[g] !== void 0 && (_[g] = i.value[g]), _), {});
});
}
function Zn(t, n) {
const a = bl(t), i = n ? Md(n) : {};
return k(() => ({
...a.value,
...i
}));
}
function qe() {
const t = _o(), n = z(), a = k(() => {
var _, g;
return ["#text", "#comment"].includes((_ = n.value) == null ? void 0 : _.$el.nodeName) ? (g = n.value) == null ? void 0 : g.$el.nextElementSibling : Ei(n);
}), i = Object.assign({}, t.exposed), s = {};
for (const _ in t.props)
Object.defineProperty(s, _, {
enumerable: !0,
configurable: !0,
get: () => t.props[_]
});
if (Object.keys(i).length > 0)
for (const _ in i)
Object.defineProperty(s, _, {
enumerable: !0,
configurable: !0,
get: () => i[_]
});
Object.defineProperty(s, "$el", {
enumerable: !0,
configurable: !0,
get: () => t.vnode.el
}), t.exposed = s;
function u(_) {
n.value = _, _ && (Object.defineProperty(s, "$el", {
enumerable: !0,
configurable: !0,
get: () => _ instanceof Element ? _ : _.$el
}), t.exposed = s);
}
return { forwardRef: u, currentRef: n, currentElement: a };
}
function Gb(t, n) {
const a = Rv(!1, 300), i = z(null), s = hb();
function u() {
i.value = null, a.value = !1;
}
function _(g, v) {
const h = g.currentTarget, f = { x: g.clientX, y: g.clientY }, b = Yb(f, h.getBoundingClientRect()), w = zb(f, b), x = Zb(v.getBoundingClientRect()), A = Wb([...w, ...x]);
i.value = A, a.value = !0;
}
return ln((g) => {
if (t.value && n.value) {
const v = (f) => _(f, n.value), h = (f) => _(f, t.value);
t.value.addEventListener("pointerleave", v), n.value.addEventListener("pointerleave", h), g(() => {
var f, b;
(f = t.value) == null || f.removeEventListener("pointerleave", v), (b = n.value) == null || b.removeEventListener("pointerleave", h);
});
}
}), ln((g) => {
var v;
if (i.value) {
const h = (f) => {
var b, w;
if (!i.value)
return;
const x = f.target, A = { x: f.clientX, y: f.clientY }, M = ((b = t.value) == null ? void 0 : b.contains(x)) || ((w = n.value) == null ? void 0 : w.contains(x)), F = !qb(A, i.value), V = !!x.closest("[data-grace-area-trigger]");
M ? u() : (F || V) && (u(), s.trigger());
};
(v = t.value) == null || v.ownerDocument.addEventListener("pointermove", h), g(() => {
var f;
return (f = t.value) == null ? void 0 : f.ownerDocument.removeEventListener("pointermove", h);
});
}
}), {
isPointerInTransit: a,
onP