Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix(jav): 地址栏写入挪回 React 侧,壳的启动链不再提前载入路由历史

longmeidaoe93abb07b278
diff --git a/frontend/src/react/jav/jav-navigation.ts b/frontend/src/react/jav/jav-navigation.ts
index 0515ad755..cb03e5a3d 100644
--- a/frontend/src/react/jav/jav-navigation.ts
+++ b/frontend/src/react/jav/jav-navigation.ts
@@ -1,5 +1,3 @@
-import { peachHistory, shellNavigate } from '@peach/history';
-
export const JAV_TABS = [['library', '馆藏'], ['releases', '新作'], ['discover', '发现'], ['wants', '想要']] as const;
export const javTab = (value: string | null) => JAV_TABS.some(([key]) => key === value) ? value! : 'library';
export const javPath = (tab: string) => javTab(tab) === 'library' ? '/?jav=1' : `/jav?tab=${tab}`;
@@ -8,10 +6,3 @@ export function javLibraryPath(search: string) {
params.delete('tab'); params.set('jav', '1');
return '/?' + params;
}
-
-/** 分区里的筛选写进地址栏:替换当前记录,不多压一条历史。 */
-export function writeJavQuery(patch: Record<string, string>): void {
- const params = new URLSearchParams(location.search);
- for (const [key, value] of Object.entries(patch)) { if (value) params.set(key, value); else params.delete(key) }
- shellNavigate(location.pathname + (params.size ? `?${params}` : ''), { replace: true, state: peachHistory.navigation.location.state });
-}
diff --git a/frontend/src/react/jav/jav-page.tsx b/frontend/src/react/jav/jav-page.tsx
index 55cf5c22e..23fd5cb45 100644
--- a/frontend/src/react/jav/jav-page.tsx
+++ b/frontend/src/react/jav/jav-page.tsx
@@ -13,8 +13,7 @@ import { EmptyState } from '../components/empty-state';
import { WantList } from '../wants/want-list';
import { addWant, invalidateWants } from '../wants/wants';
import { busyProps, useAction } from '../settings/use-action';
-import { discoveryKey, fetchDiscoveries, type DiscoveryScope } from './jav';
-import { writeJavQuery } from './jav-navigation';
+import { discoveryKey, fetchDiscoveries, writeJavQuery, type DiscoveryScope } from './jav';
import { DiscoveryCard, resourcePrefill } from './discovery-card';
import { Releases } from './jav-releases';
import { JavHeader } from './jav-header';
diff --git a/frontend/src/react/jav/jav-releases.tsx b/frontend/src/react/jav/jav-releases.tsx
index f4257fdd7..efdec52cb 100644
--- a/frontend/src/react/jav/jav-releases.tsx
+++ b/frontend/src/react/jav/jav-releases.tsx
@@ -27,8 +27,7 @@ import { useAction } from '../settings/use-action';
import { useEntityNames } from '../use-entity-names';
import { DiscoveryCard, resourcePrefill } from './discovery-card';
import { fetchReleases, releaseFilters, releaseKey, RELEASE_PAGE_SIZE, type Discovery, type ReleaseFacetPerformer, type ReleaseFacetStudio,
- type ReleaseFilters } from './jav';
-import { writeJavQuery } from './jav-navigation';
+ type ReleaseFilters, writeJavQuery } from './jav';
import { ReleaseTable } from './jav-release-table';
import { CatalogViewToggle } from '../catalog-grid/catalog-view-toggle';
import { useCatalogView } from '../catalog-grid/catalog-view';
diff --git a/frontend/src/react/jav/jav.ts b/frontend/src/react/jav/jav.ts
index 89fe6f2bf..2ea1ba651 100644
--- a/frontend/src/react/jav/jav.ts
+++ b/frontend/src/react/jav/jav.ts
@@ -4,9 +4,18 @@ import { fetchWants, WANTS_KEY } from '../wants/wants';
import type { FaceRef, CoverItem } from '@peach/card-art';
import { coverImage, javArtwork, remoteCoverUrl } from '@peach/card-art';
import { esc } from '@peach/legacy/core';
+import { peachHistory, shellNavigate } from '@peach/history';
import { RELEASE_SORTS, type DiscoveryDirection, type DiscoverySort, type ReleaseSort } from './discovery-sorts';
export { JAV_TABS, javTab, javPath, javLibraryPath } from './jav-navigation';
+
+/** 分区里的筛选写进地址栏:替换当前记录,不多压一条历史。 */
+export function writeJavQuery(patch: Record<string, string>): void {
+ const params = new URLSearchParams(location.search);
+ for (const [key, value] of Object.entries(patch)) { if (value) params.set(key, value); else params.delete(key) }
+ shellNavigate(location.pathname + (params.size ? `?${params}` : ''), { replace: true, state: peachHistory.navigation.location.state });
+}
+
export interface Discovery extends CoverItem {
id: number; code: string; title: string; performers: string; release_date: string;
studio: string; link: string; cover_url: string; has_cover: boolean; wanted: boolean;
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 46715df71..e8458ba37 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "330a9f2b-b1a5-4b2f-aeaf-5af5a5277514", e._sentryDebugIdIdentifier = "sentry-dbid-330a9f2b-b1a5-4b2f-aeaf-5af5a5277514");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b3b86ff3-6517-4da8-98b0-578f179b9494", e._sentryDebugIdIdentifier = "sentry-dbid-b3b86ff3-6517-4da8-98b0-578f179b9494");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -16117,7 +16117,7 @@ function tee(e, t) {
return (n) => Qh(e, t, n);
}
function ag(e) {
- return typeof e == "number" ? tee : typeof e == "string" ? ih(e) ? Zh : kh.test(e) ? rg : iee : Array.isArray(e) ? og : typeof e == "object" ? kh.test(e) ? rg : nee : Zh;
+ return typeof e == "number" ? tee : typeof e == "string" ? ih(e) ? Zh : kh.test(e) ? rg : nee : Array.isArray(e) ? og : typeof e == "object" ? kh.test(e) ? rg : sg : Zh;
}
function og(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => ag(e)(e, t[n]));
@@ -16126,7 +16126,7 @@ function og(e, t) {
return n;
};
}
-function nee(e, t) {
+function sg(e, t) {
let n = {
...e,
...t
@@ -16137,7 +16137,7 @@ function nee(e, t) {
return n;
};
}
-function ree(e, t) {
+function cg(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -16149,28 +16149,28 @@ function ree(e, t) {
}
return n;
}
-var iee = (e, t) => {
+var nee = (e, t) => {
let n = Vh(e), r = Vh(t);
- return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ig.has(e) && !r.values.length || ig.has(t) && !n.values.length ? eee(e, t) : Cm(og(ree(n, r), r.values), Uh(r)) : Zh(e, t);
-}, sg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function aee(e, t) {
- let n = sg.exec(e);
+ return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ig.has(e) && !r.values.length || ig.has(t) && !n.values.length ? eee(e, t) : Cm(og(cg(n, r), r.values), Uh(r)) : Zh(e, t);
+}, lg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function ree(e, t) {
+ let n = lg.exec(e);
if (!n) return;
- let r = sg.exec(t);
+ let r = lg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
return (e) => eh(Qh(a, o, e)) + i;
}
-function cg(e, t, n) {
+function ug(e, t, n) {
if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Qh(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = aee(e, t);
+ let n = ree(e, t);
if (n) return n;
}
return ag(e)(e, t);
}
// node_modules/motion-dom/dist/es/frameloop/order.mjs
-var lg = [
+var dg = [
"setup",
"read",
"resolveKeyframes",
@@ -16181,7 +16181,7 @@ var lg = [
"postRender"
];
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function oee(e) {
+function iee(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a, o = /* @__PURE__ */ new Set(), s = {
delta: 0,
timestamp: 0,
@@ -16211,55 +16211,55 @@ function oee(e) {
return l;
}
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var see = 40;
-function ug(e, t, n = {
+var aee = 40;
+function fg(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = lg.reduce((e, t) => (e[t] = oee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let r = !1, i = !0, a = () => r = !0, o = dg.reduce((e, t) => (e[t] = iee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
let a = _m.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, see), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, aee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: lg.reduce((e, t) => {
+ schedule: dg.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < lg.length; t++) o[lg[t]].cancel(e);
+ for (let t = 0; t < dg.length; t++) o[dg[t]].cancel(e);
},
state: n,
steps: o
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: dg, cancel: fg, steps: pg } = /* @__PURE__ */ ug(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sm, !0, Xm), mg = (e) => {
+var { schedule: pg, cancel: mg, steps: hg } = /* @__PURE__ */ fg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sm, !0, Xm), gg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => dg.update(t, e),
- stop: () => fg(t),
+ start: (e = !0) => pg.update(t, e),
+ stop: () => mg(t),
now: () => Xm.isProcessing ? Xm.timestamp : $m.now()
};
-}, hg = (e, t, n = 10) => {
+}, _g = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, gg = 2e4;
-function _g(e, t = 50, n = gg, r) {
+}, vg = 2e4;
+function yg(e, t = 50, n = vg, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function vg(e, t = 100, n) {
+function bg(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(_g(o), gg);
+ }), s = Math.min(yg(o), vg);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
@@ -16267,61 +16267,61 @@ function vg(e, t = 100, n) {
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var yg = 100, bg = 10, cee = 1, lee = 800, xg = .3, uee = .3, dee = .01, fee = 2, pee = .005, mee = .5, hee = .01, gee = 10, Sg = .05, Cg = (e) => e < 0 ? 1 / Math.max(1 + e, Sg) : Math.max(1 - e, Sg);
-function wg(e, t) {
+var xg = 100, Sg = 10, oee = 1, see = 800, Cg = .3, cee = .3, lee = .01, uee = 2, dee = .005, fee = .5, pee = .01, mee = 10, wg = .05, Tg = (e) => e < 0 ? 1 / Math.max(1 + e, wg) : Math.max(1 - e, wg);
+function Eg(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Eg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return Og((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function Tg(e, t) {
+function Dg(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var _ee = 12;
-function Eg(e, t, n) {
+var hee = 12;
+function Og(e, t, n) {
let r = n;
- for (let n = 1; n < _ee; n++) r -= e(r) / t(r);
+ for (let n = 1; n < hee; n++) r -= e(r) / t(r);
return r;
}
-var Dg = .001;
-function vee({ duration: e = lee, bounce: t = xg }) {
- let n, r, i = Cg(t);
- e = gm(hee, gee, /* @__PURE__ */ Dm(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = Tg(t, i), o = Math.exp(-r);
- return Dg - n / a * o;
+var kg = .001;
+function gee({ duration: e = see, bounce: t = Cg }) {
+ let n, r, i = Tg(t);
+ e = gm(pee, mee, /* @__PURE__ */ Dm(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = Dg(t, i), o = Math.exp(-r);
+ return kg - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Tg(t * t, i);
- return (-n(t) + Dg > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Dg(t * t, i);
+ return (-n(t) + kg > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Eg(n, r, a), s = o * wg(i, o * e), c = s * s;
+ let a = 5 / e, o = Og(n, r, a), s = o * Eg(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
duration: /* @__PURE__ */ Em(e)
};
}
-var Og = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function kg(e, t) {
- if (Og(e, t)) return e;
+var Ag = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function jg(e, t) {
+ if (Ag(e, t)) return e;
}
-function yee(e) {
- let t = kg(e.stiffness), n = kg(e.damping, !0), r = kg(e.mass), i = {
+function _ee(e) {
+ let t = jg(e.stiffness), n = jg(e.damping, !0), r = jg(e.mass), i = {
...e,
- stiffness: t ?? yg,
- damping: n ?? bg,
- mass: r ?? cee,
+ stiffness: t ?? xg,
+ damping: n ?? Sg,
+ mass: r ?? oee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = Cg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * wg(t, 2 * Math.PI / 1.2);
+ let t = Tg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Eg(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, vee(i)), i.isResolvedFromDuration = !0;
- Og(i.stiffness) && Og(i.damping, !0) || (i.stiffness = yg, i.damping = bg);
+ } else Object.assign(i, gee(i)), i.isResolvedFromDuration = !0;
+ Ag(i.stiffness) && Ag(i.damping, !0) || (i.stiffness = xg, i.damping = Sg);
}
return i;
}
-function Ag(e = uee, t = xg) {
+function Mg(e = cee, t = Cg) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16329,7 +16329,7 @@ function Ag(e = uee, t = xg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = yee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Dm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Dm(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = _ee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Dm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Dm(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16337,12 +16337,12 @@ function Ag(e = uee, t = xg) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? dee : fee), g.restDelta = n.restDelta || (e ? pee : mee);
+ g.restSpeed = n.restSpeed || (e ? lee : uee), g.restDelta = n.restDelta || (e ? dee : fee);
};
_();
let v, y, b;
if (p < 1) {
- let e = Tg(m, p), t = {
+ let e = Dg(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16391,19 +16391,19 @@ function Ag(e = uee, t = xg) {
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(_g(S), gg), t = hg((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(yg(S), vg), t = _g((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-var jg = /* @__PURE__ */ Object.assign(Ag, { applyToOptions: (e) => {
- let t = vg(e, 100, Ag);
+var Ng = /* @__PURE__ */ Object.assign(Mg, { applyToOptions: (e) => {
+ let t = bg(e, 100, Mg);
return e.ease = t.ease, e.duration = /* @__PURE__ */ Em(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Mg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -16413,7 +16413,7 @@ function Mg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = jg({
+ p(f.value) && (b = e, x = Ng({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16431,21 +16431,21 @@ function Mg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function bee(e, t, n) {
- let r = [], i = _m.mix || cg, a = e.length - 1;
+function vee(e, t, n) {
+ let r = [], i = _m.mix || ug, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
t && (a = Cm(Array.isArray(t) ? t[o] || Sm : t, a)), r.push(a);
}
return r;
}
-function Ng(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Fg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = bee(t, r, i), c = s.length, l = (n) => {
+ let s = vee(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
@@ -16455,7 +16455,7 @@ function Ng(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
return n ? (t) => l(gm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Pg(e, t) {
+function Ig(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
let i = /* @__PURE__ */ wm(0, t, r);
@@ -16463,32 +16463,32 @@ function Pg(e, t) {
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Fg(e) {
+function Lg(e) {
let t = [0];
- return Pg(t, e.length - 1), t;
+ return Ig(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function xee(e, t) {
+function yee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function See(e, t) {
+function bee(e, t) {
return e.map(() => t || Um).splice(0, e.length - 1);
}
-function Ig({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ Wm(r) ? r.map(Ym) : Ym(r) || Um, s = {
done: !1,
value: t[0]
};
if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, i = n === r ? void 0 : (_m.mix || cg)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (_m.mix || ug)(n, r);
return {
calculatedDuration: e,
next: (t) => (s.value = i ? i(o(e > 0 ? gm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = Ng(xee(n && n.length === t.length ? n : Fg(t), e), t, {
- ease: Array.isArray(o) ? o : See(t, o),
+ let c = Fg(yee(n && n.length === t.length ? n : Lg(t), e), t, {
+ ease: Array.isArray(o) ? o : bee(t, o),
mixer: a
});
return {
@@ -16497,35 +16497,35 @@ function Ig({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Cee = 5;
-function wee(e, t, n) {
- let r = Math.max(t - Cee, 0);
+var xee = 5;
+function See(e, t, n) {
+ let r = Math.max(t - xee, 0);
return /* @__PURE__ */ Om(n - e(r), t - r);
}
-function Lg(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : wee((t) => e.next(t).value, t, e.next(t).value);
+function zg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : See((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Tee = (e) => e !== null;
-function Rg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Tee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Cee = (e) => e !== null;
+function Bg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Cee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Eee = {
- decay: Mg,
- inertia: Mg,
- tween: Ig,
- keyframes: Ig,
- spring: jg
+var wee = {
+ decay: Pg,
+ inertia: Pg,
+ tween: Rg,
+ keyframes: Rg,
+ spring: Ng
};
-function zg(e) {
- typeof e.type == "string" && (e.type = Eee[e.type]);
+function Vg(e) {
+ typeof e.type == "string" && (e.type = wee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var Dee = 40, Bg = (e, t) => t - e > Dee && !_m.useManualTiming ? t : e;
+var Tee = 40, Hg = (e, t) => t - e > Tee && !_m.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function Vg(e, t) {
+function Ug(e, t) {
return {
kind: e,
animation: t,
@@ -16534,11 +16534,11 @@ function Vg(e, t) {
frameIsProcessing: Xm.isProcessing
};
}
-function Hg(e, t, n) {
+function Wg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...Vg("animation-start", e),
+ ...Ug("animation-start", e),
options: n ? {
...t,
...n
@@ -16546,17 +16546,17 @@ function Hg(e, t, n) {
});
} catch {}
}
-function Oee(e, t) {
+function Eee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...Vg("layout-animation-start", e),
+ ...Ug("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Ug = class {
+var Gg = class {
constructor() {
this.isResolved = !1;
}
@@ -16574,7 +16574,7 @@ var Ug = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, kee = (e) => e / 100, Wg = (e) => Math.round(e * 1e4) / 1e4, Gg = class extends Ug {
+}, Dee = (e) => e / 100, Kg = (e) => Math.round(e * 1e4) / 1e4, qg = class extends Gg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
@@ -16582,13 +16582,13 @@ var Ug = class {
}, this.stop = () => {
let { motionValue: e } = this.options;
e && e.updatedAt !== $m.now() && this.tick($m.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Hg(this, this.options);
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Wg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- zg(e);
- let { type: t = Ig, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Ig;
- this.mixKeyframes = void 0, s !== Ig && typeof o[0] != "number" && (this.mixKeyframes = Cm(kee, e.mixer?.(o[0], o[1]) || cg(o[0], o[1])), o = [0, 100]);
+ Vg(e);
+ let { type: t = Rg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Rg;
+ this.mixKeyframes = void 0, s !== Rg && typeof o[0] != "number" && (this.mixKeyframes = Cm(Dee, e.mixer?.(o[0], o[1]) || ug(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16597,7 +16597,7 @@ var Ug = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = _g(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = yg(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -16608,20 +16608,20 @@ var Ug = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Bg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Hg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Mg && (f.value = Rg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Pg && (f.value = Bg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Wg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Kg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Mg ? Rg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Pg ? Bg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
@@ -16645,7 +16645,7 @@ var Ug = class {
e = /* @__PURE__ */ Em(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Lg(this.generator, this.currentTime, this.options.velocity);
+ return zg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
@@ -16656,7 +16656,7 @@ var Ug = class {
}
play() {
if (this.isStopped) return;
- let { driver: e = mg, startTime: t } = this.options;
+ let { driver: e = gg, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -16682,27 +16682,27 @@ var Ug = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Aee = /* @__PURE__ */ new Set([
+}, Oee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function jee(e) {
+function kee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
let [r] = n.match(uh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Aee.has(t);
+ let i = n.replace(r, ""), a = +!!Oee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Mee = /\b([a-z-]*)\(.*?\)/gu, Kg = {
+var Aee = /\b([a-z-]*)\(.*?\)/gu, Jg = {
...Jh,
getAnimatableNone: (e) => {
- let t = e.match(Mee);
- return t ? t.map(jee).join(" ") : e;
+ let t = e.match(Aee);
+ return t ? t.map(kee).join(" ") : e;
}
-}, qg = {
+}, Yg = {
...Jh,
getAnimatableNone: (e) => {
let t = Jh.parse(e);
@@ -16711,10 +16711,10 @@ var Mee = /\b([a-z-]*)\(.*?\)/gu, Kg = {
alpha: 1
} : e));
}
-}, Jg = {
+}, Xg = {
...sh,
transform: Math.round
-}, Yg = {
+}, Zg = {
rotate: Sh,
pathRotation: Sh,
rotateX: Sh,
@@ -16740,7 +16740,7 @@ var Mee = /\b([a-z-]*)\(.*?\)/gu, Kg = {
originX: Dh,
originY: Dh,
originZ: wh
-}, Xg = {
+}, Qg = {
borderWidth: wh,
borderTopWidth: wh,
borderRightWidth: wh,
@@ -16791,13 +16791,13 @@ var Mee = /\b([a-z-]*)\(.*?\)/gu, Kg = {
fontSize: wh,
backgroundPositionX: wh,
backgroundPositionY: wh,
- ...Yg,
- zIndex: Jg,
+ ...Zg,
+ zIndex: Xg,
fillOpacity: ch,
strokeOpacity: ch,
- numOctaves: Jg
-}, Nee = {
- ...Xg,
+ numOctaves: Xg
+}, jee = {
+ ...Qg,
color: kh,
backgroundColor: kh,
outlineColor: kh,
@@ -16808,21 +16808,21 @@ var Mee = /\b([a-z-]*)\(.*?\)/gu, Kg = {
borderRightColor: kh,
borderBottomColor: kh,
borderLeftColor: kh,
- filter: Kg,
- WebkitFilter: Kg,
- mask: qg,
- WebkitMask: qg
-}, Zg = (e) => Nee[e], Pee = /*@__PURE__*/ new Set([Kg, qg]);
-function Qg(e, t) {
- let n = Zg(e);
- return Pee.has(n) || (n = Jh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ filter: Jg,
+ WebkitFilter: Jg,
+ mask: Yg,
+ WebkitMask: Yg
+}, $g = (e) => jee[e], Mee = /*@__PURE__*/ new Set([Jg, Yg]);
+function e_(e, t) {
+ let n = $g(e);
+ return Mee.has(n) || (n = Jh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function $g(e) {
+function t_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var e_ = (e) => e * 180 / Math.PI, t_ = (e) => n_(e_(Math.atan2(e[1], e[0]))), Fee = {
+var n_ = (e) => e * 180 / Math.PI, r_ = (e) => i_(n_(Math.atan2(e[1], e[0]))), Nee = {
x: 4,
y: 5,
translateX: 4,
@@ -16831,44 +16831,44 @@ var e_ = (e) => e * 180 / Math.PI, t_ = (e) => n_(e_(Math.atan2(e[1], e[0]))), F
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: t_,
- rotateZ: t_,
- skewX: (e) => e_(Math.atan(e[1])),
- skewY: (e) => e_(Math.atan(e[2])),
+ rotate: r_,
+ rotateZ: r_,
+ skewX: (e) => n_(Math.atan(e[1])),
+ skewY: (e) => n_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, n_ = (e) => (e %= 360, e < 0 && (e += 360), e), r_ = t_, i_ = (e) => Math.hypot(e[0], e[1]), a_ = (e) => Math.hypot(e[4], e[5]), Iee = {
+}, i_ = (e) => (e %= 360, e < 0 && (e += 360), e), a_ = r_, o_ = (e) => Math.hypot(e[0], e[1]), s_ = (e) => Math.hypot(e[4], e[5]), Pee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: i_,
- scaleY: a_,
+ scaleX: o_,
+ scaleY: s_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (i_(e) + a_(e)) / 2,
- rotateX: (e) => n_(e_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => n_(e_(Math.atan2(-e[2], e[0]))),
- rotateZ: r_,
- rotate: r_,
- skewX: (e) => e_(Math.atan(e[4])),
- skewY: (e) => e_(Math.atan(e[1])),
+ scale: (e) => (o_(e) + s_(e)) / 2,
+ rotateX: (e) => i_(n_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => i_(n_(Math.atan2(-e[2], e[0]))),
+ rotateZ: a_,
+ rotate: a_,
+ skewX: (e) => n_(Math.atan(e[4])),
+ skewY: (e) => n_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function o_(e) {
+function c_(e) {
return +!!e.includes("scale");
}
-function s_(e, t) {
- if (!e || e === "none") return o_(t);
+function l_(e, t) {
+ if (!e || e === "none") return c_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return o_(t);
- let r = (n[1] ? Iee : Fee)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return c_(t);
+ let r = (n[1] ? Pee : Nee)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var c_ = (e, t) => {
+var u_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return s_(n, t);
-}, l_ = [
+ return l_(n, t);
+}, d_ = [
"transformPerspective",
"x",
"y",
@@ -16887,14 +16887,14 @@ var c_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], u_ = /* @__PURE__ */ new Set([...l_, "pathRotation"]), d_ = (e) => e === sh || e === wh, Lee = /* @__PURE__ */ new Set([
+], f_ = /* @__PURE__ */ new Set([...d_, "pathRotation"]), p_ = (e) => e === sh || e === wh, Fee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Ree = /* @__PURE__ */ l_.filter((e) => !Lee.has(e));
-function zee(e) {
+]), Iee = /* @__PURE__ */ d_.filter((e) => !Fee.has(e));
+function Lee(e) {
let t = [];
- return Ree.forEach((n) => {
+ return Iee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16903,16 +16903,16 @@ function zee(e) {
}
}), t;
}
-var Bee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function f_(e, t, n, r, i, a) {
+var Ree = /* @__PURE__ */ new Set(["bottom", "right"]);
+function m_(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var p_ = ({ transform: e }) => s_(e, "x"), m_ = ({ transform: e }) => s_(e, "y"), h_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => f_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => f_(e, i, "y", t, n, r),
+var h_ = ({ transform: e }) => l_(e, "x"), g_ = ({ transform: e }) => l_(e, "y"), __ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => m_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => m_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16923,20 +16923,20 @@ var p_ = ({ transform: e }) => s_(e, "x"), m_ = ({ transform: e }) => s_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: p_,
- y: m_,
- translateX: p_,
- translateY: m_
-}, g_ = /* @__PURE__ */ new Set(), __ = !1, v_ = !1, y_ = !1;
-function b_() {
- if (v_) {
+ x: h_,
+ y: g_,
+ translateX: h_,
+ translateY: g_
+}, v_ = /* @__PURE__ */ new Set(), y_ = !1, b_ = !1, x_ = !1;
+function S_() {
+ if (b_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- g_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Bee.has(r.name) && n.add(r.element));
+ v_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Ree.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = zee(e);
+ let t = Lee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -16948,29 +16948,29 @@ function b_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- v_ = !1, __ = !1, g_.forEach((e) => e.complete(y_)), g_.clear();
+ b_ = !1, y_ = !1, v_.forEach((e) => e.complete(x_)), v_.clear();
}
-function x_() {
- g_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (v_ = !0);
+function C_() {
+ v_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (b_ = !0);
});
}
-function Vee() {
- y_ = !0, x_(), b_(), y_ = !1;
+function zee() {
+ x_ = !0, C_(), S_(), x_ = !1;
}
-function Hee(e, t, n) {
+function Bee(e, t, n) {
if (typeof e == "string") {
if (vm(e) || bm(e)) return parseFloat(e);
- if (!Jh.test(e) && Jh.test(n)) return Qg(t, n);
+ if (!Jh.test(e) && Jh.test(n)) return e_(t, n);
}
return e ?? void 0;
}
-var S_ = class {
+var w_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (g_.add(this), __ || (__ = !0, dg.read(x_), dg.resolveKeyframes(b_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (v_.add(this), y_ || (y_ = !0, pg.read(C_), pg.resolveKeyframes(S_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -16978,71 +16978,71 @@ var S_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Hee(n.readValue(t, a), t, a);
+ let r = Bee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- $g(e);
+ t_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), g_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), v_.delete(this);
}
cancel() {
- this.state === "scheduled" && (g_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (v_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, C_ = (e) => e.startsWith("--");
+}, T_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function w_(e, t, n) {
- C_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function E_(e, t, n) {
+ T_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Uee = {};
+var Vee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function T_(e, t) {
+function D_(e, t) {
let n = /* @__PURE__ */ xm(e);
- return () => Uee[t] ?? n();
+ return () => Vee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Wee = /* @__PURE__ */ T_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), E_ = /*@__PURE__*/ T_(() => {
+var Hee = /* @__PURE__ */ D_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), O_ = /*@__PURE__*/ D_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), D_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, O_ = {
+}, "linearEasing"), k_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, A_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ D_([
+ circIn: /*@__PURE__*/ k_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ D_([
+ circOut: /*@__PURE__*/ k_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ D_([
+ backIn: /*@__PURE__*/ k_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ D_([
+ backOut: /*@__PURE__*/ k_([
.33,
1.53,
.69,
@@ -17050,14 +17050,14 @@ var Wee = /* @__PURE__ */ T_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function k_(e, t) {
- if (e) return typeof e == "function" ? E_() ? hg(e, t) : "ease-out" : /* @__PURE__ */ Km(e) ? D_(e) : Array.isArray(e) ? e.map((e) => k_(e, t) || O_.easeOut) : O_[e];
+function j_(e, t) {
+ if (e) return typeof e == "function" ? O_() ? _g(e, t) : "ease-out" : /* @__PURE__ */ Km(e) ? k_(e) : Array.isArray(e) ? e.map((e) => j_(e, t) || A_.easeOut) : A_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Gee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Uee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = k_(s, i);
+ let d = j_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17070,27 +17070,27 @@ function Gee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function A_(e) {
+function M_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Kee({ type: e, ...t }) {
- return A_(e) && E_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Wee({ type: e, ...t }) {
+ return M_(e) && O_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var j_ = class extends Ug {
+var N_ = class extends Gg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Kee(e);
- this.animation = Gee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Wee(e);
+ this.animation = Uee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Rg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), w_(t, n, e), this.animation.cancel();
+ let e = Bg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), E_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Hg(this, e, c);
+ }, Wg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17144,22 +17144,22 @@ var j_ = class extends Ug {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Wee() ? (this.animation.timeline = e, t?.(this.animation), Sm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Hee() ? (this.animation.timeline = e, t?.(this.animation), Sm) : n(this);
}
-}, M_ = {
+}, P_ = {
anticipate: Lm,
backInOut: Im,
circInOut: Bm
};
-function qee(e) {
- return e in M_;
+function Gee(e) {
+ return e in P_;
}
-function Jee(e) {
- typeof e.ease == "string" && qee(e.ease) && (e.ease = M_[e.ease]);
+function Kee(e) {
+ typeof e.ease == "string" && Gee(e.ease) && (e.ease = P_[e.ease]);
}
-var Yee = class extends j_ {
+var qee = class extends N_ {
constructor(e) {
- Jee(e), zg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Kee(e), Vg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
return this.state === "running" ? ($m.now() - this.startTime) * this.speed : this.time * 1e3;
@@ -17167,7 +17167,7 @@ var Yee = class extends j_ {
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Gg({
+ this.sampler = new qg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17186,39 +17186,39 @@ var Yee = class extends j_ {
return;
}
let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? gm(0, 10, a) : 0, s = this.sample(a);
- n && r && w_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ n && r && E_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, N_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Jh.test(e) || e === "0") && !e.startsWith("url("));
+}, F_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Jh.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function Xee(e) {
+function Jee(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function Zee(e, t, n, r) {
+function Yee(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = N_(i, t), s = N_(a, t);
- return !o || !s ? !1 : Xee(e) || (n === "spring" || A_(n)) && r;
+ let a = e[e.length - 1], o = F_(i, t), s = F_(a, t);
+ return !o || !s ? !1 : Jee(e) || (n === "spring" || M_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function P_(e) {
+function I_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var F_ = /* @__PURE__ */ new Set([
+var L_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), Qee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function $ee(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Qee.test(e[t])) return !0;
+]), Xee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Zee(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Xee.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var I_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), L_ = /* @__PURE__ */ new Set([
+var R_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), z_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17229,54 +17229,54 @@ var I_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), R_ = () => !_m.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function ete(e) {
+]), B_ = () => !_m.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function Qee(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(F_.has(n) || L_.has(n))) return !1;
+ if (!n || !(L_.has(n) || z_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return R_() && (F_.has(n) || L_.has(n) && $ee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !I_(e);
+ return B_() && (L_.has(n) || z_.has(n) && Zee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !R_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var z_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, tte = {
+var V_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, H_ = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, nte = l_.length, B_ = {}, V_ = (e, t, n = z_(t, Yg[e])) => (B_[e] || (B_[e] = (tte[e] || e) + "(")) + n + ")", H_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function U_(e, t, n) {
+}, U_ = d_.length, W_ = {}, G_ = (e, t, n = V_(t, Zg[e])) => (W_[e] || (W_[e] = (H_[e] || e) + "(")) + n + ")", K_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function $ee(e, t, n) {
let r = "";
- for (let i = 0; i < nte; i++) {
- let a = l_[i], o = e[a];
+ for (let i = 0; i < U_; i++) {
+ let a = d_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = z_(o, Xg[a]));
- H_(a, o) || (r += V_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = V_(o, Qg[a]));
+ K_(a, o) || (r += G_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += V_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += G_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var W_ = /* @__PURE__ */ new WeakMap(), G_ = 200, K_ = .001, rte = .1, ite = .001, ate = 100, ote = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), q_ = (e, t) => Math.abs(e - t) <= K_, J_ = (e, t) => e - t, Y_ = (e, t, n) => Fg(Array(n + 1)).map((n) => Qh(e, t, n)), X_ = (e) => e.motionValue.owner, Z_ = (e) => W_.get(e), Q_ = ({ state: e }) => e === "idle" || e === "finished", $_ = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ste = ({ name: e, motionValue: t }) => e && l_.includes(e) && t?.owner?.current instanceof HTMLElement && R_() && E_();
-function cte(e) {
- let t = X_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && ($_(t, "transform") || "none") === "none" && !$_(t, "pathRotation") && !t.projection?.isProjecting() && !I_(e);
+var q_ = /* @__PURE__ */ new WeakMap(), ete = 200, J_ = .001, tte = .1, nte = .001, rte = 100, ite = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Y_ = (e, t) => Math.abs(e - t) <= J_, X_ = (e, t) => e - t, Z_ = (e, t, n) => Lg(Array(n + 1)).map((n) => Qh(e, t, n)), Q_ = (e) => e.motionValue.owner, $_ = (e) => q_.get(e), ev = ({ state: e }) => e === "idle" || e === "finished", tv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ate = ({ name: e, motionValue: t }) => e && d_.includes(e) && t?.owner?.current instanceof HTMLElement && B_() && O_();
+function ote(e) {
+ let t = Q_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (tv(t, "transform") || "none") === "none" && !tv(t, "pathRotation") && !t.projection?.isProjecting() && !R_(e);
}
-var lte = class extends Gg {
+var ste = class extends qg {
constructor(e) {
- let t = X_(e).current, { driver: n = mg } = e, r, i = cte(e);
+ let t = Q_(e).current, { driver: n = gg } = e, r, i = ote(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = Z_(t);
+ let n = $_(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = Z_(t);
+ let e = $_(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17287,7 +17287,7 @@ var lte = class extends Gg {
};
}
get group() {
- return Z_(X_(this.options).current);
+ return $_(Q_(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17307,8 +17307,8 @@ var lte = class extends Gg {
return this.isAccelerated() ? this.sampleAt($m.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Km(n) ? D_(n) : ote(n) && O_[n];
- if (o && !i && !r && e.length === 2 && t === Ig && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Km(n) ? k_(n) : ite(n) && A_[n];
+ if (o && !i && !r && e.length === 2 && t === Rg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17318,7 +17318,7 @@ var lte = class extends Gg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Ig) === Ig ? u || Fg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Rg) === Rg ? u || Lg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17338,7 +17338,7 @@ var lte = class extends Gg {
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || ute(X_(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || cte(Q_(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17358,13 +17358,13 @@ var lte = class extends Gg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function ute(e) {
+function cte(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? l_ : a) {
- let a = r.get(s), c = t === void 0 ? $_(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? d_ : a) {
+ let a = r.get(s), c = t === void 0 ? tv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17372,7 +17372,7 @@ function ute(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && H_(r, i) || (n += V_(r, i) + " ");
+ t && K_(r, i) || (n += G_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17396,32 +17396,32 @@ function ute(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(G_, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(ete, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = Y_(t, n, i).concat(r).sort(J_), o = (e) => /* @__PURE__ */ wm(t, n, e), s, c;
+ let a = Z_(t, n, i).concat(r).sort(X_), o = (e) => /* @__PURE__ */ wm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * K_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * J_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !q_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !Y_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => q_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Wg(t) + " " + Wg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Y_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Kg(t) + " " + Kg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ite : rte))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? nte : tte))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = Y_(t, n, Math.ceil((n - t) / 100));
+ }, s = Z_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(J_)) e > c && o(c, e, 0), c = e;
- return i.sort(J_);
+ for (let e of s.sort(X_)) e > c && o(c, e, 0), c = e;
+ return i.sort(X_);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17460,10 +17460,10 @@ function ute(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = l_.filter((t) => {
+ i = {}, a = d_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = $_(e, t);
- return n !== void 0 && !H_(t, n);
+ let n = i[t] = tv(e, t);
+ return n !== void 0 && !K_(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17509,18 +17509,18 @@ function ute(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, Z_(t) === A && W_.delete(t), A.isJS || v(), !0), k = () => {
+ }, O = () => !n.size && (u = !0, $_(t) === A && q_.delete(t), A.isJS || v(), !0), k = () => {
let t = $m.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = $_(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => Q_(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = tv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => ev(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < ate) return A.demote();
+ if (t - f < rte) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -17530,14 +17530,14 @@ function ute(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, Xm.isProcessing ? dg.render(k, !1, !0) : queueMicrotask(k)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, Xm.isProcessing ? pg.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- Q_(e) && n.delete(e), O() || A.schedule(!0);
+ ev(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if ($_(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (tv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17546,40 +17546,40 @@ function ute(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return W_.set(t, A), A;
+ return q_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var dte = class extends Ug {
+var lte = class extends Gg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
}, this.createdAt = $m.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || S_;
+ let o = i?.KeyframeResolver || w_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
this.resolvedAt = $m.now();
- let u = Zee(e, i, a, o);
- u || ((_m.instantAnimations || !s) && l?.(Rg(e, n, t)), e[0] = e[e.length - 1], P_(n), n.repeat = 0);
+ let u = Yee(e, i, a, o);
+ u || ((_m.instantAnimations || !s) && l?.(Bg(e, n, t)), e[0] = e[e.length - 1], I_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && ete(n), p = !f && ste(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Bg(this.createdAt, this.resolvedAt));
+ let f = u && !c && Qee(n), p = !f && ate(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Hg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Yee(n);
+ m = new qee(n);
} catch {
- m = new Gg(n);
+ m = new qg(n);
}
- } else m = p ? new lte(n) : new Gg(n);
+ } else m = p ? new ste(n) : new qg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17592,7 +17592,7 @@ var dte = class extends Ug {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Vee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), zee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17633,7 +17633,7 @@ var dte = class extends Ug {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, fte = class {
+}, ute = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17673,10 +17673,10 @@ var dte = class extends Ug {
return this.getAll("startTime");
}
get duration() {
- return ev(this.animations, "duration");
+ return nv(this.animations, "duration");
}
get iterationDuration() {
- return ev(this.animations, "iterationDuration");
+ return nv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17694,7 +17694,7 @@ var dte = class extends Ug {
this.runAll("complete");
}
};
-function ev(e, t) {
+function nv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17703,22 +17703,22 @@ function ev(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var tv = class extends fte {
+var rv = class extends ute {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, nv = /* @__PURE__ */ new WeakMap(), pte = (e, t = "") => `${e}:${t}`;
-function mte(e) {
- let t = nv.get(e);
- return t || (t = /* @__PURE__ */ new Map(), nv.set(e, t)), t;
+}, iv = /* @__PURE__ */ new WeakMap(), dte = (e, t = "") => `${e}:${t}`;
+function fte(e) {
+ let t = iv.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), iv.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function rv(e, t, n, r = 0, i = 1) {
+function av(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var iv = 30, hte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov = class {
+var ov = 30, pte = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
let t = $m.now();
@@ -17726,7 +17726,7 @@ var iv = 30, hte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = $m.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = hte(this.current));
+ this.current = e, this.updatedAt = $m.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = pte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17745,7 +17745,7 @@ var iv = 30, hte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
};
}
stopIfUnobserved() {
- dg.read(() => {
+ pg.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -17776,7 +17776,7 @@ var iv = 30, hte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
this.dependents?.delete(e);
}
get() {
- av.current?.push(this);
+ sv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17788,8 +17788,8 @@ var iv = 30, hte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
}
getVelocity() {
let e = $m.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > iv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, iv);
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ov) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, ov);
return /* @__PURE__ */ Om(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
@@ -17811,11 +17811,11 @@ var iv = 30, hte = (e) => !isNaN(parseFloat(e)), av = { current: void 0 }, ov =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function sv(e, t) {
- return new ov(e, t);
+function lv(e, t) {
+ return new cv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function cv(e, t) {
+function uv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17826,25 +17826,25 @@ function cv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function lv(e, t) {
+function dv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : cv(n, e);
+ return n === e ? n : uv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var gte = {
+var mte = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, _te = (e) => ({
+}, hte = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), vte = {
+}), gte = {
type: "keyframes",
duration: .8
-}, yte = {
+}, _te = {
type: "keyframes",
ease: [
.25,
@@ -17853,7 +17853,7 @@ var gte = {
1
],
duration: .3
-}, bte = (e, { keyframes: t }) => t.length > 2 ? vte : u_.has(e) ? e.startsWith("scale") ? _te(t[1]) : gte : yte, xte = /* @__PURE__ */ new Set([
+}, vte = (e, { keyframes: t }) => t.length > 2 ? gte : f_.has(e) ? e.startsWith("scale") ? hte(t[1]) : mte : _te, yte = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17867,13 +17867,13 @@ var gte = {
"out",
"mixer"
]);
-function Ste(e) {
- for (let t in e) if (!xte.has(t)) return !0;
+function bte(e) {
+ for (let t in e) if (!yte.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var uv = (e, t, n, r = {}, i, a) => (o) => {
- let s = lv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+var fv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = dv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
l -= /* @__PURE__ */ Em(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
@@ -17892,195 +17892,195 @@ var uv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- Ste(s) || Object.assign(u, bte(e, u)), u.duration &&= /* @__PURE__ */ Em(u.duration), u.repeatDelay &&= /* @__PURE__ */ Em(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ bte(s) || Object.assign(u, vte(e, u)), u.duration &&= /* @__PURE__ */ Em(u.duration), u.repeatDelay &&= /* @__PURE__ */ Em(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (P_(u), u.delay === 0 && (d = !0)), (_m.instantAnimations || _m.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, P_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Rg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (I_(u), u.delay === 0 && (d = !0)), (_m.instantAnimations || _m.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, I_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Bg(u.keyframes, s);
if (e !== void 0) {
- dg.update(() => {
+ pg.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Gg(u) : new dte(u);
-}, Cte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function wte(e) {
- let t = Cte.exec(e);
+ return s.isSync ? new qg(u) : new lte(u);
+}, xte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function Ste(e) {
+ let t = xte.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function dv(e, t, n = 1) {
- let [r, i] = wte(e);
+function pv(e, t, n = 1) {
+ let [r, i] = Ste(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
return vm(e) ? parseFloat(e) : e;
}
- return ih(i) ? dv(i, t, n + 1) : i;
+ return ih(i) ? pv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Tte(e) {
+function Cte(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function fv(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Tte(r)) : t;
+function mv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Cte(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function pv(e, t, n) {
- return fv(e.getProps(), t, n, e);
+function hv(e, t, n) {
+ return mv(e.getProps(), t, n, e);
}
-var mv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, hv = /* @__PURE__ */ new Set([
+var gv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, _v = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...l_
-]), Ete = (e) => Array.isArray(e);
+ ...d_
+]), wte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Dte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, sv(n));
+function Tte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, lv(n));
}
-function Ote(e) {
- return Ete(e) ? e[e.length - 1] || 0 : e;
+function Ete(e) {
+ return wte(e) ? e[e.length - 1] || 0 : e;
}
-function kte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = pv(e, t) || {};
+function Dte(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = hv(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Dte(e, t, Ote(i[t]));
+ for (let t in i) Tte(e, t, Ete(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var gv = (e) => !!(e && e.getVelocity);
+var vv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Ate(e) {
- return !!(gv(e) && e.add);
+function Ote(e) {
+ return !!(vv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function _v(e, t) {
+function yv(e, t) {
let n = e.getValue("willChange");
- if (Ate(n)) return n.add(t);
+ if (Ote(n)) return n.add(t);
if (!n && _m.WillChange) {
let n = new _m.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var vv = "data-framer-appear-id";
+var bv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function yv(e) {
- return e.props[vv];
+function xv(e) {
+ return e.props[bv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var jte = typeof window < "u";
-function Mte({ protectedKeys: e, needsAnimating: t }, n) {
+var kte = typeof window < "u";
+function Ate({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function bv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Sv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? cv(a, c) : c;
+ a = a ? uv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Mte(f, t)) continue;
+ if (i === void 0 || f && Ate(f, t)) continue;
let o = {
delay: n,
- ...lv(f?.out[t] || a || {}, t)
+ ...dv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- dg.update(() => r.set(i));
+ pg.update(() => r.set(i));
continue;
}
let p = !1;
- if (jte && window.MotionHandoffAnimation) {
- let n = yv(e);
+ if (kte && window.MotionHandoffAnimation) {
+ let n = xv(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, dg);
+ let e = window.MotionHandoffAnimation(n, t, pg);
e !== null && (o.startTime = e, p = !0);
}
}
- _v(e, t);
+ yv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(uv(t, r, i, m && hv.has(t) ? { type: !1 } : o, e, p));
+ r.start(fv(t, r, i, m && _v.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => dg.update(() => {
- o && kte(e, o);
+ let t = () => pg.update(() => {
+ o && Dte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function xv(e, t, n = {}) {
- let r = pv(e, t, mv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? bv(e, r, n) : []), o = (r = 0) => {
+function Cv(e, t, n = {}) {
+ let r = hv(e, t, gv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Sv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(xv(e, t, {
+ e.notify("AnimationStart", t), l.push(Cv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + rv(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + av(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Nte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => xv(e, t, n))) : typeof t == "string" ? xv(e, t, n) : Promise.all(bv(e, pv(e, t, n.custom), n))).then(() => {
+function jte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Cv(e, t, n))) : typeof t == "string" ? Cv(e, t, n) : Promise.all(Sv(e, hv(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Pte = {
+var Mte = {
test: (e) => e === "auto",
parse: (e) => e
-}, Fte = (e) => (t) => t.test(e), Ite = [
+}, Nte = (e) => (t) => t.test(e), Pte = [
sh,
wh,
Ch,
Sh,
Eh,
Th,
- Pte
-], Sv = (e) => Ite.find(Fte(e));
+ Mte
+], wv = (e) => Pte.find(Nte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Lte(e) {
+function Fte(e) {
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || bm(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Rte = /* @__PURE__ */ new Set([
+var Ite = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function zte(e, t, n) {
+function Lte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Rte.has(t) && Bh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Ite.has(t) && Bh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = Qg(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = e_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Cv = class extends S_ {
+var Tv = class extends w_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18101,31 +18101,31 @@ var Cv = class extends S_ {
for (let n = 0; n < e.length; n++) {
let r = e[n];
if (typeof r == "string" && (r = r.trim(), ih(r))) {
- let i = dv(r, t.current);
+ let i = pv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !hv.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !_v.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Sv(r), o = Sv(i);
- if (oh(r) !== oh(i) && h_[n]) this.needsMeasurement = !0;
+ let a = wv(r), o = wv(i);
+ if (oh(r) !== oh(i) && __[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (d_(a) && d_(o)) for (let t = 0; t < e.length; t++) {
+ if (p_(a) && p_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else h_[n] && (this.needsMeasurement = !0);
+ else __[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Lte(e[t])) && n.push(t);
- n.length && zte(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Fte(e[t])) && n.push(t);
+ n.length && Lte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return h_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return __[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18141,19 +18141,19 @@ var Cv = class extends S_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, wv = [
+}, Ev = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Bte = /* @__PURE__ */ new Set([
+], Rte = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...wv,
+ ...Ev,
"width",
"maxWidth",
"height",
@@ -18196,21 +18196,21 @@ var Cv = class extends S_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Vte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Bte.has(t) && (e[n] = e[n] + "px");
+function zte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Rte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var Tv = [];
-function Hte(e) {
- Ev(e), Tv.unshift(e);
+var Dv = [];
+function Bte(e) {
+ Ov(e), Dv.unshift(e);
}
-function Ev(e) {
- hm(Tv, e);
+function Ov(e) {
+ hm(Dv, e);
}
-function Ute(e) {
- return Tv.find((t) => t.test(e));
+function Vte(e) {
+ return Dv.find((t) => t.test(e));
}
-function Dv(e, t, n = {}, r) {
+function kv(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18218,62 +18218,62 @@ function Dv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? dg.update(() => l.set(c)) : (l.start(uv(o, l, c, s && hv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? pg.update(() => l.set(c)) : (l.start(fv(o, l, c, s && _v.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
- let t = () => dg.update(() => {
+ let t = () => pg.update(() => {
for (let t in c) e(t).set(c[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function Ov(e, t, n, r, i) {
- return Dv((r) => {
+function Av(e, t, n, r, i) {
+ return kv((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Wte(i) ?? e.read(t, r, i);
+ o = Hte(i) ?? e.read(t, r, i);
}
- a = sv(o, { owner: i }), e(t, { [r]: a });
+ a = lv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Wte(e) {
+function Hte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function kv(e) {
+function jv(e) {
return ym(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Av(e) {
+function Mv(e) {
return ym(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var jv = {};
-function Mv(e) {
- return jv.current?.add(e), e;
+var Nv = {};
+function Pv(e) {
+ return Nv.current?.add(e), e;
}
-var Nv = (e) => jv.current ? jv.current.bind(e) : e;
+var Fv = (e) => Nv.current ? Nv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Pv(e, t, n) {
+function Iv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : jv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Nv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Gte = class {
- constructor(e = dg.render) {
+var Ute = class {
+ constructor(e = pg.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -18316,10 +18316,10 @@ var Gte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function Fv(e, { step: t, ...n } = {}) {
+function Lv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Gte(t);
+ let a = r.get(n) ?? new Ute(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18336,83 +18336,83 @@ function Fv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function Kte(e) {
+function Wte(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (H_(i, a) || (t += (t && " ") + V_(i, a)));
+ a !== void 0 && (K_(i, a) || (t += (t && " ") + G_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + V_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + G_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Iv = /* @__PURE__ */ new Set([
+var Rv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Lv = (e, t) => z_(e.get(t)?.get(), Xg[t]), Rv = (e, t, n, r) => {
+]), zv = (e, t) => V_(e.get(t)?.get(), Qg[t]), Bv = (e, t, n, r) => {
let i, a;
- if (u_.has(n)) {
+ if (f_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => l_.indexOf(e) - l_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => d_.indexOf(e) - d_.indexOf(t)));
}
- t.get("transform") || (!kv(e) && !t.get("transformBox") && Rv(e, t, "transformBox", new ov("fill-box")), t.set("transform", new ov("none"), () => {
- W_.get(e)?.check(), e.style.transform = Kte(t);
+ t.get("transform") || (!jv(e) && !t.get("transformBox") && Bv(e, t, "transformBox", new cv("fill-box")), t.set("transform", new cv("none"), () => {
+ q_.get(e)?.check(), e.style.transform = Wte(t);
})), a = t.get("transform");
- } else Iv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new ov(""), () => {
- let n = Lv(t, "originX") ?? "50%", r = Lv(t, "originY") ?? "50%", i = Lv(t, "originZ") ?? 0;
+ } else Rv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new cv(""), () => {
+ let n = zv(t, "originX") ?? "50%", r = zv(t, "originY") ?? "50%", i = zv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = C_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = T_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = z_(r.getCurrent(), Xg[n]);
+ e.style[n] = V_(r.getCurrent(), Qg[n]);
};
return t.set(n, r, i, a);
-}, qte = (e) => kv(e) || Av(e), zv = (e, t) => {
- if (u_.has(t)) return c_(e, t);
- let n = getComputedStyle(e), r = C_(t) ? n.getPropertyValue(t) : n[t];
+}, Gte = (e) => jv(e) || Mv(e), Vv = (e, t) => {
+ if (f_.has(t)) return u_(e, t);
+ let n = getComputedStyle(e), r = T_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, Jte = /*@__PURE__*/ Fv(Rv, {
- test: qte,
- read: zv
+}, Kte = /*@__PURE__*/ Lv(Bv, {
+ test: Gte,
+ read: Vv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Bv(e) {
+function Hv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Vv(e, t, n) {
+function Uv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (u_.has(e)) o = !0;
+ if (f_.has(e)) o = !0;
else if (nh(e)) i[e] = n;
else {
- let t = z_(n, Xg[e]);
+ let t = V_(n, Qg[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = U_(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = $ee(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var Yte = {
+var qte = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, Xte = {
+}, Jte = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function Zte(e, t, n = 1, r = 0, i = !0) {
+function Yte(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? Yte : Xte;
+ let a = i ? qte : Jte;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Hv = [
+var Wv = [
"transform",
"opacity",
"clipPath",
@@ -18422,55 +18422,55 @@ var Hv = [
"offsetRotate",
"offsetAnchor"
];
-function Uv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Vv(e, s, l), c) {
+function Gv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Uv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Hv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Zte(d, i, a, o, !1);
+ for (let e of Wv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Yte(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function Qte(e, t) {
+function Xte(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Wv = (e, t, n, r, i = n) => {
- let a = Qte(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Bv(i));
- let o = Xg[n] || Xg[i], s = a ? () => {
- e[i] = z_(r.get(), Xg[n]);
+var Kv = (e, t, n, r, i = n) => {
+ let a = Xte(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Hv(i));
+ let o = Qg[n] || Qg[i], s = a ? () => {
+ e[i] = V_(r.get(), Qg[n]);
} : () => {
- let t = z_(r.get(), o);
+ let t = V_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function $te(e, t, n, r) {
- return dg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+function Zte(e, t, n, r) {
+ return pg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new ov("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new cv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var ene = /*@__PURE__*/ Fv((e, t, n, r) => n.startsWith("path") && !u_.has(n) ? $te(e, t, n, r) : n.startsWith("attr") ? Wv(e, t, n, r, Gv(n)) : n === "d" ? t.set(n, r, () => {
+var Qte = /*@__PURE__*/ Lv((e, t, n, r) => n.startsWith("path") && !f_.has(n) ? Zte(e, t, n, r) : n.startsWith("attr") ? Kv(e, t, n, r, qv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (u_.has(n) || Iv.has(n) || C_(n) || n in e.style ? Rv : Wv)(e, t, n, r), {
- test: Av,
- read: (e, t) => u_.has(t) ? Xg[t]?.default || 0 : C_(t) || Hv.includes(t) ? zv(e, t) || e.getAttribute(Bv(t)) || 0 : (t = Gv(t), e.getAttribute(Bv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (f_.has(n) || Rv.has(n) || T_(n) || n in e.style ? Bv : Kv)(e, t, n, r), {
+ test: Mv,
+ read: (e, t) => f_.has(t) ? Qg[t]?.default || 0 : T_(t) || Wv.includes(t) ? Vv(e, t) || e.getAttribute(Hv(t)) || 0 : (t = qv(t), e.getAttribute(Hv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function Gv(e) {
+function qv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Kv({ top: e, left: t, right: n, bottom: r }) {
+function Jv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18482,7 +18482,7 @@ function Kv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function tne({ x: e, y: t }) {
+function $te({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18490,7 +18490,7 @@ function tne({ x: e, y: t }) {
left: e.min
};
}
-function nne(e, t) {
+function ene(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18507,13 +18507,13 @@ function nne(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function qv(e) {
+function Yv(e) {
return e === void 0 || e === 1;
}
-function Jv({ scale: e, scaleX: t, scaleY: n }) {
- return !qv(e) || !qv(t) || !qv(n);
+function Xv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Yv(e) || !Yv(t) || !Yv(n);
}
-var Yv = [
+var Zv = [
"rotate",
"rotateX",
"rotateY",
@@ -18521,67 +18521,67 @@ var Yv = [
"skewX",
"skewY"
];
-function Xv(e) {
- return Jv(e) || Qv(e) || Zv(e);
+function Qv(e) {
+ return Xv(e) || ey(e) || $v(e);
}
-function Zv(e) {
+function $v(e) {
return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
-function Qv(e) {
- return $v(e.x) || $v(e.y);
+function ey(e) {
+ return ty(e.x) || ty(e.y);
}
-function $v(e) {
+function ty(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function ey(e, t, n) {
+function ny(e, t, n) {
return n + t * (e - n);
}
-function ty(e, t, n, r, i) {
- return i !== void 0 && (e = ey(e, i, r)), ey(e, n, r) + t;
+function ry(e, t, n, r, i) {
+ return i !== void 0 && (e = ny(e, i, r)), ny(e, n, r) + t;
}
-function ny(e, t = 0, n = 1, r, i) {
- e.min = ty(e.min, t, n, r, i), e.max = ty(e.max, t, n, r, i);
+function iy(e, t = 0, n = 1, r, i) {
+ e.min = ry(e.min, t, n, r, i), e.max = ry(e.max, t, n, r, i);
}
-function ry(e, { x: t, y: n }) {
- ny(e.x, t.translate, t.scale, t.originPoint), ny(e.y, n.translate, n.scale, n.originPoint);
+function ay(e, { x: t, y: n }) {
+ iy(e.x, t.translate, t.scale, t.originPoint), iy(e.y, n.translate, n.scale, n.originPoint);
}
-var iy = .999999999999, ay = 1.0000000000001;
-function rne(e, t, n, r = !1) {
+var oy = .999999999999, sy = 1.0000000000001;
+function tne(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (oy(e.x, -a.scroll.offset.x), oy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ry(e, o)), r && (r.path?.[s] || r) !== a && Xv(a.latestValues) && ly(e, a.latestValues, a.layout?.layoutBox));
- t.x < ay && t.x > iy && (t.x = 1), t.y < ay && t.y > iy && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (cy(e.x, -a.scroll.offset.x), cy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ay(e, o)), r && (r.path?.[s] || r) !== a && Qv(a.latestValues) && dy(e, a.latestValues, a.layout?.layoutBox));
+ t.x < sy && t.x > oy && (t.x = 1), t.y < sy && t.y > oy && (t.y = 1);
}
-function oy(e, t) {
+function cy(e, t) {
e.min += t, e.max += t;
}
-function sy(e, t, n, r, i = .5) {
- ny(e, t, n, Qh(e.min, e.max, i), r);
+function ly(e, t, n, r, i = .5) {
+ iy(e, t, n, Qh(e.min, e.max, i), r);
}
-function cy(e, t) {
+function uy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function ly(e, t, n) {
+function dy(e, t, n) {
let r = n ?? e;
- sy(e.x, cy(t.x, r.x), t.scaleX, t.scale, t.originX), sy(e.y, cy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ ly(e.x, uy(t.x, r.x), t.scaleX, t.scale, t.originX), ly(e.y, uy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function uy(e, t) {
- return Kv(nne(e.getBoundingClientRect(), t));
+function fy(e, t) {
+ return Jv(ene(e.getBoundingClientRect(), t));
}
-function ine(e, t, n) {
- let r = uy(e, n), { scroll: i } = t;
- return i && (oy(r.x, i.offset.x), oy(r.y, i.offset.y)), r;
+function nne(e, t, n) {
+ let r = fy(e, n), { scroll: i } = t;
+ return i && (cy(r.x, i.offset.x), cy(r.y, i.offset.y)), r;
}
-var ane = () => ({
+var rne = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), one = {}, sne = (e) => Av(e) ? ene : Jte, cne = class {
+}), ine = {}, ane = (e) => Mv(e) ? Qte : Kte, one = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Cv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Tv;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18593,19 +18593,19 @@ var ane = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return uy(this.current);
+ return fy(this.current);
}
getProps() {
- return one;
+ return ine;
}
};
-function lne(e, t, n, r) {
- if (jv.current?.track(e), r) return Dv((e) => r.getValue(e, null), t, n, r);
- let i = sne(e);
- return Ov(i, e, t, n, new cne(i, e));
+function sne(e, t, n, r) {
+ if (Nv.current?.track(e), r) return kv((e) => r.getValue(e, null), t, n, r);
+ let i = ane(e);
+ return Av(i, e, t, n, new one(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var une = /*@__PURE__*/ Fv((e, t, n, r) => t.set(n, r, () => {
+var cne = /*@__PURE__*/ Lv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => ym(e),
@@ -18613,172 +18613,172 @@ var une = /*@__PURE__*/ Fv((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: dy, cancel: dne } = /* @__PURE__ */ ug(queueMicrotask, !1);
+}), { schedule: py, cancel: lne } = /* @__PURE__ */ fg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function fy(e, t, n) {
- let r = gv(e) ? e : sv(e);
- return r.start(uv("", r, t, n)), r.animation;
+function my(e, t, n) {
+ let r = vv(e) ? e : lv(e);
+ return r.start(fv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var py = {}, my = {
+var hy = {}, gy = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function fne(e, t) {
+function une(e, t) {
let n = $m.now();
- e = Nv(e);
+ e = Fv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (fg(r), e(a - t));
+ a >= t && (mg(r), e(a - t));
};
- return dg.setup(r, !0), Mv(() => fg(r));
+ return pg.setup(r, !0), Pv(() => mg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function pne(e) {
+function dne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function mne(e) {
- return Av(e) && e.tagName === "svg";
+function fne(e) {
+ return Mv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function hy(e) {
- return gv(e) ? e.get() : e;
+function _y(e) {
+ return vv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var gy = (e) => typeof e == "number" ? e : parseFloat(e), hne = wv.length, _y = (e) => typeof e == "number" || wh.test(e);
-function gne(e, t, n, r, i, a) {
- i ? (e.opacity = Qh(0, n.opacity ?? 1, _ne(r)), e.opacityExit = Qh(t.opacity ?? 1, 0, vne(r))) : a && (e.opacity = Qh(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < hne; i++) {
- let a = wv[i], o = vy(t, a), s = vy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || _y(o) === _y(s) ? (e[a] = Math.max(Qh(gy(o), gy(s), r), 0), (Ch.test(s) || Ch.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < Yv.length; i++) {
- let a = Yv[i];
+var vy = (e) => typeof e == "number" ? e : parseFloat(e), pne = Ev.length, yy = (e) => typeof e == "number" || wh.test(e);
+function mne(e, t, n, r, i, a) {
+ i ? (e.opacity = Qh(0, n.opacity ?? 1, hne(r)), e.opacityExit = Qh(t.opacity ?? 1, 0, gne(r))) : a && (e.opacity = Qh(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < pne; i++) {
+ let a = Ev[i], o = by(t, a), s = by(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || yy(o) === yy(s) ? (e[a] = Math.max(Qh(vy(o), vy(s), r), 0), (Ch.test(s) || Ch.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < Zv.length; i++) {
+ let a = Zv[i];
(t[a] || n[a]) && (e[a] = Qh(t[a] || 0, n[a] || 0, r));
}
}
-function vy(e, t) {
+function by(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var _ne = /*@__PURE__*/ yy(0, .5, zm), vne = /*@__PURE__*/ yy(.5, .95, Sm);
-function yy(e, t, n) {
+var hne = /*@__PURE__*/ xy(0, .5, zm), gne = /*@__PURE__*/ xy(.5, .95, Sm);
+function xy(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ wm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function by(e, t) {
+function Sy(e, t) {
e.min = t.min, e.max = t.max;
}
-function xy(e, t) {
- by(e.x, t.x), by(e.y, t.y);
+function Cy(e, t) {
+ Sy(e.x, t.x), Sy(e.y, t.y);
}
-function Sy(e, t) {
+function wy(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var yne = .9999, bne = 1.0001, xne = -.01, Cy = .01;
-function wy(e) {
+var _ne = .9999, Ty = 1.0001, vne = -.01, yne = .01;
+function Ey(e) {
return e.max - e.min;
}
-function Ty(e, t, n) {
+function bne(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Ey(e, t, n, r = .5) {
- e.origin = r, e.originPoint = Qh(t.min, t.max, e.origin), e.scale = wy(n) / wy(t), e.translate = Qh(n.min, n.max, e.origin) - e.originPoint, (e.scale >= yne && e.scale <= bne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= xne && e.translate <= Cy || isNaN(e.translate)) && (e.translate = 0);
+function Dy(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Qh(t.min, t.max, e.origin), e.scale = Ey(n) / Ey(t), e.translate = Qh(n.min, n.max, e.origin) - e.originPoint, (e.scale >= _ne && e.scale <= Ty || isNaN(e.scale)) && (e.scale = 1), (e.translate >= vne && e.translate <= yne || isNaN(e.translate)) && (e.translate = 0);
}
-function Dy(e, t, n, r) {
- Ey(e.x, t.x, n.x, r?.originX), Ey(e.y, t.y, n.y, r?.originY);
+function Oy(e, t, n, r) {
+ Dy(e.x, t.x, n.x, r?.originX), Dy(e.y, t.y, n.y, r?.originY);
}
-function Oy(e, t, n, r = 0) {
- e.min = (r ? Qh(n.min, n.max, r) : n.min) + t.min, e.max = e.min + wy(t);
+function ky(e, t, n, r = 0) {
+ e.min = (r ? Qh(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ey(t);
}
-function Sne(e, t, n, r) {
- Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
+function xne(e, t, n, r) {
+ ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
}
-function ky(e, t, n, r = 0) {
+function Ay(e, t, n, r = 0) {
let i = r ? Qh(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + wy(t);
+ e.min = t.min - i, e.max = e.min + Ey(t);
}
-function Ay(e, t, n, r) {
- ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
+function jy(e, t, n, r) {
+ Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function jy(e, t, n, r, i) {
- return e -= t, e = ey(e, 1 / n, r), i !== void 0 && (e = ey(e, 1 / i, r)), e;
+function My(e, t, n, r, i) {
+ return e -= t, e = ny(e, 1 / n, r), i !== void 0 && (e = ny(e, 1 / i, r)), e;
}
-function Cne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function Sne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (Ch.test(t) && (t = parseFloat(t), t = Qh(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = Qh(a.min, a.max, r);
- e === a && (s -= t), e.min = jy(e.min, t, n, s, i), e.max = jy(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = My(e.min, t, n, s, i), e.max = My(e.max, t, n, s, i);
}
-function My(e, t, [n, r, i], a, o) {
- Cne(e, t[n], t[r], t[i], t.scale, a, o);
+function Ny(e, t, [n, r, i], a, o) {
+ Sne(e, t[n], t[r], t[i], t.scale, a, o);
}
-var wne = [
+var Cne = [
"x",
"scaleX",
"originX"
-], Tne = [
+], wne = [
"y",
"scaleY",
"originY"
];
-function Ny(e, t, n, r) {
- My(e.x, t, wne, n?.x, r?.x), My(e.y, t, Tne, n?.y, r?.y);
+function Py(e, t, n, r) {
+ Ny(e.x, t, Cne, n?.x, r?.x), Ny(e.y, t, wne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Py = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Fy = Py("applewebkit/") && !Py("chrome/") ? Math.round : Sm;
-function Iy(e) {
- e.min = Fy(e.min), e.max = Fy(e.max);
+var Fy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Iy = Fy("applewebkit/") && !Fy("chrome/") ? Math.round : Sm;
+function Ly(e) {
+ e.min = Iy(e.min), e.max = Iy(e.max);
}
-function Ene(e) {
- Iy(e.x), Iy(e.y);
+function Tne(e) {
+ Ly(e.x), Ly(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Ly = () => ({
+var Ry = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Ry = () => ({
- x: Ly(),
- y: Ly()
}), zy = () => ({
+ x: Ry(),
+ y: Ry()
+}), By = () => ({
min: 0,
max: 0
-}), By = () => ({
- x: zy(),
- y: zy()
+}), Vy = () => ({
+ x: By(),
+ y: By()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Vy(e) {
+function Hy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Hy(e) {
- return Vy(e.x) && Vy(e.y);
+function Uy(e) {
+ return Hy(e.x) && Hy(e.y);
}
-function Uy(e, t) {
+function Wy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Dne(e, t) {
- return Uy(e.x, t.x) && Uy(e.y, t.y);
+function Ene(e, t) {
+ return Wy(e.x, t.x) && Wy(e.y, t.y);
}
-function Wy(e, t) {
+function Gy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Gy(e, t) {
- return Wy(e.x, t.x) && Wy(e.y, t.y);
+function Ky(e, t) {
+ return Gy(e.x, t.x) && Gy(e.y, t.y);
}
-function Ky(e) {
- return wy(e.x) / wy(e.y);
+function qy(e) {
+ return Ey(e.x) / Ey(e.y);
}
-function qy(e, t) {
+function Jy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var One = class {
+var Dne = class {
constructor() {
this.members = [];
}
@@ -18826,22 +18826,22 @@ var One = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Jy(e, t) {
+function Yy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Yy = { correct: (e, t) => {
+var Xy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (wh.test(e)) e = parseFloat(e);
else return e;
}
- return `${Jy(e, t.target.x)}% ${Jy(e, t.target.y)}%`;
-} }, kne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Yy, { applyTo: /* @__PURE__ */ wv.slice() }),
- borderTopLeftRadius: Yy,
- borderTopRightRadius: Yy,
- borderBottomLeftRadius: Yy,
- borderBottomRightRadius: Yy,
+ return `${Yy(e, t.target.x)}% ${Yy(e, t.target.y)}%`;
+} }, One = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Xy, { applyTo: /* @__PURE__ */ Ev.slice() }),
+ borderTopLeftRadius: Xy,
+ borderTopRightRadius: Xy,
+ borderBottomLeftRadius: Xy,
+ borderBottomRightRadius: Xy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = Jh.parse(e);
if (i.length > 5) return r;
@@ -18852,13 +18852,13 @@ var Yy = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Ane(e, t, n) {
+function kne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < Yv.length; e++) {
- let t = Yv[e], i = n[t];
+ for (let e = 0; e < Zv.length; e++) {
+ let t = Zv[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18866,11 +18866,11 @@ function Ane(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Xy(e) {
+function Zy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var jne = (e, t) => e.depth - t.depth, Mne = class {
+var Ane = (e, t) => e.depth - t.depth, jne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -18881,47 +18881,47 @@ var jne = (e, t) => e.depth - t.depth, Mne = class {
hm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(jne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Ane), this.isDirty = !1, this.children.forEach(e);
}
-}, Zy = {
+}, Qy = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Qy = [
+}, $y = [
"z",
"skew",
"skewZ"
-], Nne = 1e3, Pne = 0;
-function $y(e, t, n, r) {
+], Mne = 1e3, Nne = 0;
+function eb(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var eb = (e) => e.instance && W_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function tb(e) {
+var tb = (e) => e.instance && q_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function nb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = yv(t);
+ let n = xv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", dg, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", pg, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && tb(r);
+ r && !r.hasCheckedOptimisedAppear && nb(r);
}
-function nb(e) {
- if (e) return e.options.allowProjection === !1 ? nb(e.parent) : e.projection;
+function rb(e) {
+ if (e) return e.options.allowProjection === !1 ? rb(e.parent) : e.projection;
}
-function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(py, {
- ...kne,
- ...py
+function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(hy, {
+ ...One,
+ ...hy
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : nb(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : rb(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && pne(o),
+ alwaysMeasureLayout: !!a || o && dne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18934,16 +18934,16 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Pne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Nne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Lne), this.nodes.forEach(Gne), this.nodes.forEach(Kne), this.nodes.forEach(Rne), my.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Ine), this.nodes.forEach(Une), this.nodes.forEach(Wne), this.nodes.forEach(Lne), gy.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Mne());
+ this.root === this && (this.nodes = new jne());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Tm()), this.eventHandlers.get(e).add(t);
@@ -18956,15 +18956,15 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Av(t) && !mne(t), this.instance = t;
+ this.isSVG = Mv(t) && !fne(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- dg.read(() => {
+ pg.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = fne(i, 250), Zy.hasAnimatedSinceResize && (Zy.hasAnimatedSinceResize = !1, this.nodes.forEach(ob)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = une(i, 250), Qy.hasAnimatedSinceResize && (Qy.hasAnimatedSinceResize = !1, this.nodes.forEach(cb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -18976,21 +18976,21 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || Xne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Gy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || Jne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Ky(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...lv(a, "layout"),
+ ...dv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || ob(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || cb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
unmount() {
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, fg(this.updateProjection);
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, mg(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -19002,7 +19002,7 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(qne), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Gne), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19013,11 +19013,11 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && tb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- eb(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && nb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ tb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, eb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, tb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19027,39 +19027,39 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Bne), this.nodes.forEach(ib);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Rne), this.nodes.forEach(ob);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(ab);
+ this.nodes.forEach(sb);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Hne), this.nodes.forEach(Une), this.nodes.forEach(Wne), this.nodes.forEach(Fne), this.nodes.forEach(Ine)) : this.nodes.forEach(ab), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Bne), this.nodes.forEach(Vne), this.nodes.forEach(Hne), this.nodes.forEach(Pne), this.nodes.forEach(Fne)) : this.nodes.forEach(sb), this.clearAllSnapshots();
let e = $m.now();
- Xm.delta = gm(0, 1e3 / 60, e - Xm.timestamp), Xm.timestamp = e, Xm.isProcessing = !0, pg.update.process(Xm), pg.preRender.process(Xm), pg.render.process(Xm), Xm.isProcessing = !1;
+ Xm.delta = gm(0, 1e3 / 60, e - Xm.timestamp), Xm.timestamp = e, Xm.isProcessing = !0, hg.update.process(Xm), hg.preRender.process(Xm), hg.render.process(Xm), Xm.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, dy.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, py.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(zne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(ab), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, dg.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, pg.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- dg.postRender(() => {
+ pg.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !wy(this.snapshot.measuredBox.x) && !wy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ey(this.snapshot.measuredBox.x) && !Ey(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= By(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Vy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19079,13 +19079,13 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && eb(this);
- let t = this.projectionDelta && !Hy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Xv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && tb(this);
+ let t = this.projectionDelta && !Uy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || Qv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Ene(n), {
+ return e && (n = this.removeTransform(n)), Tne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19095,42 +19095,42 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return By();
+ if (!e) return Vy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Zne))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Yne))) {
let { scroll: e } = this.root;
- e && (oy(t.x, e.offset.x), oy(t.y, e.offset.y));
+ e && (cy(t.x, e.offset.x), cy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = By();
- if (xy(t, e), this.scroll?.wasRoot) return t;
+ let t = Vy();
+ if (Cy(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && xy(t, e), oy(t.x, i.offset.x), oy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Cy(t, e), cy(t.x, i.offset.x), cy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || By();
- xy(a, e);
+ let a = n || Vy();
+ Cy(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (oy(a.x, -n.scroll.offset.x), oy(a.y, -n.scroll.offset.y)), Xv(n.latestValues) && ly(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (cy(a.x, -n.scroll.offset.x), cy(a.y, -n.scroll.offset.y)), Qv(n.latestValues) && dy(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && Xv(this.latestValues) && ly(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && Qv(this.latestValues) && dy(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = By();
- xy(t, e);
+ let t = Vy();
+ Cy(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Xv(n.latestValues)) continue;
+ if (!Qv(n.latestValues)) continue;
let r;
- n.instance && (Jv(n.latestValues) && n.updateSnapshot(), r = By(), xy(r, n.measurePageBox())), Ny(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Xv(n.latestValues) && n.updateSnapshot(), r = Vy(), Cy(r, n.measurePageBox())), Py(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Xv(this.latestValues) && Ny(t, this.latestValues), t;
+ return Qv(this.latestValues) && Py(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19157,16 +19157,16 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = Xm.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = By(), this.targetWithTransforms = By()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Sne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : xy(this.target, this.layout.layoutBox), ry(this.target, this.targetDelta)) : xy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), my.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Vy(), this.targetWithTransforms = Vy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), xne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Cy(this.target, this.layout.layoutBox), ay(this.target, this.targetDelta)) : Cy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), gy.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Jv(this.parent.latestValues) || Qv(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Xv(this.parent.latestValues) || ey(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = By(), this.relativeTargetOrigin = By(), Ay(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), xy(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Vy(), this.relativeTargetOrigin = Vy(), jy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Cy(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -19176,11 +19176,11 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Xm.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- xy(this.layoutCorrected, this.layout.layoutBox);
+ Cy(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- rne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = By());
+ tne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Vy());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Sy(this.prevProjectionDelta.x, this.projectionDelta.x), Sy(this.prevProjectionDelta.y, this.projectionDelta.y)), Dy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && qy(this.projectionDelta.x, this.prevProjectionDelta.x) && qy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), my.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wy(this.prevProjectionDelta.x, this.projectionDelta.x), wy(this.prevProjectionDelta.y, this.projectionDelta.y)), Oy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Jy(this.projectionDelta.x, this.prevProjectionDelta.x) && Jy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), gy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19192,22 +19192,22 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = Ry(), this.projectionDelta = Ry(), this.projectionDeltaWithTransform = Ry();
+ this.prevProjectionDelta = zy(), this.projectionDelta = zy(), this.projectionDeltaWithTransform = zy();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ry();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = zy();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = By(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Yne));
+ let s = Vy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(qne));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- sb(o.x, e.x, n), sb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ay(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Jne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Dne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= By(), xy(f, this.relativeTarget)), c && (this.animationValues = a, gne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ lb(o.x, e.x, n), lb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Kne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Ene(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Vy(), Cy(f, this.relativeTarget)), c && (this.animationValues = a, mne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (fg(this.pendingAnimation), void 0), this.pendingAnimation = dg.update(() => {
- Zy.hasAnimatedSinceResize = !0, this.motionValue ||= sv(0), this.motionValue.jump(0, !1), this.currentAnimation = fy(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (mg(this.pendingAnimation), void 0), this.pendingAnimation = pg.update(() => {
+ Qy.hasAnimatedSinceResize = !0, this.motionValue ||= lv(0), this.motionValue.jump(0, !1), this.currentAnimation = my(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19217,7 +19217,7 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Oee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), Eee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19226,20 +19226,20 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Nne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Mne), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && ub(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && fb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || By(), lb(i.x, t.x, e.x), lb(i.y, t.y, e.y);
+ i = this.target || Vy(), db(i.x, t.x, e.x), db(i.y, t.y, e.y);
}
- xy(t, i), ly(t, r), Dy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Cy(t, i), dy(t, r), Oy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new One()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Dne()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19272,10 +19272,10 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!Zv(t)) return;
+ if (!$v(t)) return;
let n = {};
- for (let t = 0; t < Qy.length; t++) $y(Qy[t], e, n, this.animationValues);
- for (let t = 0; t < Yv.length; t++) $y(Yv[t], e, n, this.animationValues);
+ for (let t = 0; t < $y.length; t++) eb($y[t], e, n, this.animationValues);
+ for (let t = 0; t < Zv.length; t++) eb(Zv[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19289,70 +19289,70 @@ function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = hy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = _y(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = hy(t?.pointerEvents) || ""), this.hasProjected && !Xv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = _y(t?.pointerEvents) || ""), this.hasProjected && !Qv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Ane(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = kne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in py) {
+ for (let t in hy) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = py[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = hy[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? hy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? _y(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ib), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ob), this.root.sharedNodes.clear();
}
};
}
-function Fne(e) {
- e.updateLayout(), Vne(e);
+function Pne(e) {
+ e.updateLayout(), zne(e);
}
-function Ine(e) {
+function Fne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") Xy((e) => {
- let t = wy(r[e]);
+ if (i === "size") Zy((e) => {
+ let t = Ey(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- by(r[e], a[e]);
- } else ub(i, t.layoutBox, n) && Xy((t) => {
- let n = wy(a[t]);
+ Sy(r[e], a[e]);
+ } else fb(i, t.layoutBox, n) && Zy((t) => {
+ let n = Ey(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = Ry();
- Dy(c, n, t.layoutBox);
- let l = Ry();
- Dy(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Hy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = zy();
+ Oy(c, n, t.layoutBox);
+ let l = zy();
+ Oy(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Uy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = By();
- Ay(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = By();
- Ay(l, n, i.layoutBox, s), a && o(c, l), Gy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = Vy();
+ jy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Vy();
+ jy(l, n, i.layoutBox, s), a && o(c, l), Ky(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19366,65 +19366,65 @@ function Ine(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function Lne(e) {
- my.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function Ine(e) {
+ gy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function Rne(e) {
+function Lne(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function zne(e) {
+function ab(e) {
e.clearSnapshot();
}
-function ib(e) {
+function ob(e) {
e.clearMeasurements();
}
-function Bne(e) {
+function Rne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function ab(e) {
+function sb(e) {
e.isLayoutDirty = !1;
}
-function Vne(e) {
+function zne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Xy((e) => oy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Zy((e) => cy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Hne(e) {
+function Bne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Une(e) {
+function Vne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Wne(e) {
+function Hne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function ob(e) {
+function cb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Gne(e) {
+function Une(e) {
e.resolveTargetDelta();
}
-function Kne(e) {
+function Wne(e) {
e.calcProjection();
}
-function qne(e) {
+function Gne(e) {
e.resetSkewAndRotation();
}
-function sb(e, t, n) {
+function lb(e, t, n) {
e.translate = Qh(t.translate, 0, n), e.scale = Qh(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function cb(e, t, n, r) {
+function ub(e, t, n, r) {
e.min = Qh(t.min, n.min, r), e.max = Qh(t.max, n.max, r);
}
-function Jne(e, t, n, r) {
- cb(e.x, t.x, n.x, r), cb(e.y, t.y, n.y, r);
+function Kne(e, t, n, r) {
+ ub(e.x, t.x, n.x, r), ub(e.y, t.y, n.y, r);
}
-function Yne(e) {
+function qne(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var Xne = {
+var Jne = {
duration: .45,
ease: [
.4,
@@ -19433,51 +19433,51 @@ var Xne = {
1
]
};
-function lb(e, t, n) {
- e.max = wy(n) + (e.min = t.min);
+function db(e, t, n) {
+ e.max = Ey(n) + (e.min = t.min);
}
-function ub(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !Ty(Ky(t), Ky(n), .2);
+function fb(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !bne(qy(t), qy(n), .2);
}
-function Zne(e) {
+function Yne(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function db(e, t, n, r = { passive: !0 }) {
+function pb(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var Qne = /* @__PURE__ */ rb({
- attachResizeListener: (e, t) => db(e, "resize", t),
- measureScroll: ane,
+var Xne = /* @__PURE__ */ ib({
+ attachResizeListener: (e, t) => pb(e, "resize", t),
+ measureScroll: rne,
checkIsScrollRoot: () => !0
-}), fb = { current: void 0 }, pb = /* @__PURE__ */ rb({
+}), mb = { current: void 0 }, hb = /* @__PURE__ */ ib({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!fb.current) {
- let e = new Qne({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), fb.current = e;
+ if (!mb.current) {
+ let e = new Xne({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), mb.current = e;
}
- return fb.current;
+ return mb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), mb = /* @__PURE__ */ new WeakMap();
+}), gb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function hb(e) {
+function _b(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function gb(e) {
+function vb(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var _b = [
+var yb = [
"animate",
"whileInView",
"whileFocus",
@@ -19485,29 +19485,29 @@ var _b = [
"whileTap",
"whileDrag",
"exit"
-], vb = /* @__PURE__ */ ["initial"].concat(_b);
+], bb = /* @__PURE__ */ ["initial"].concat(yb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function yb(e) {
- if (hb(e.animate)) return !0;
- for (let t = 0; t < vb.length; t++) if (gb(e[vb[t]])) return !0;
+function xb(e) {
+ if (_b(e.animate)) return !0;
+ for (let t = 0; t < bb.length; t++) if (vb(e[bb[t]])) return !0;
return !1;
}
-function bb(e) {
- return !!(yb(e) || e.variants);
+function Sb(e) {
+ return !!(xb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function $ne(e, t, n) {
+function Zne(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (gv(i)) e.addValue(r, i);
- else if (gv(a)) e.addValue(r, sv(i, { owner: e }));
+ if (vv(i)) e.addValue(r, i);
+ else if (vv(a)) e.addValue(r, lv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, sv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, lv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19515,17 +19515,17 @@ function $ne(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var xb = { current: null }, Sb = { current: !1 }, ere = typeof window < "u";
-function Cb() {
- if (Sb.current = !0, ere) {
+var Cb = { current: null }, wb = { current: !1 }, Qne = typeof window < "u";
+function Tb() {
+ if (wb.current = !0, Qne) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => xb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Cb.current = e.matches;
e.addEventListener("change", t), t();
- } else xb.current = !1;
+ } else Cb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var wb = [
+var Eb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19533,35 +19533,35 @@ var wb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Tb = {};
-function Eb(e) {
- Tb = e;
+], Db = {};
+function Ob(e) {
+ Db = e;
}
-function tre() {
- return Tb;
+function $ne() {
+ return Db;
}
-var nre = class {
+var ere = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = S_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = w_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
let e = $m.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, dg.render(this.render, !1, !0));
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, pg.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = yb(t), this.isVariantNode = bb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = xb(t), this.isVariantNode = Sb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && gv(t) && t.set(c[e]);
+ c[e] !== void 0 && vv(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, mb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, gb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19571,10 +19571,10 @@ var nre = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Sb.current || Cb(), this.shouldReduceMotion = xb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (wb.current || Tb(), this.shouldReduceMotion = Cb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection?.unmount(), fg(this.notifyUpdate), fg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
+ this.projection?.unmount(), mg(this.notifyUpdate), mg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -19589,8 +19589,8 @@ var nre = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && F_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new j_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && L_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new N_({
element: this.current,
name: e,
keyframes: r,
@@ -19603,10 +19603,10 @@ var nre = class {
});
return;
}
- let n = u_.has(e);
+ let n = f_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && dg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), W_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && pg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), q_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19617,8 +19617,8 @@ var nre = class {
}
updateFeatures() {
let e = "animation";
- for (e in Tb) {
- let t = Tb[e];
+ for (e in Db) {
+ let t = Db[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19631,7 +19631,7 @@ var nre = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : By();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Vy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19641,14 +19641,14 @@ var nre = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && W_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < wb.length; t++) {
- let n = wb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && q_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < Eb.length; t++) {
+ let n = Eb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = $ne(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = Zne(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19678,11 +19678,11 @@ var nre = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = sv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = lv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (vm(n) || bm(n)) ? n = parseFloat(n) : typeof n != "number" && !Jh.test(n) && Jh.test(t) && (n = Qg(e, t)), this.setBaseTarget(e, gv(n) ? n.get() : n)), gv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (vm(n) || bm(n)) ? n = parseFloat(n) : typeof n != "number" && !Jh.test(n) && Jh.test(t) && (n = e_(e, t)), this.setBaseTarget(e, vv(n) ? n.get() : n)), vv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -19694,11 +19694,11 @@ var nre = class {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- dy.render(this.render);
+ py.render(this.render);
}
-}, Db = class extends nre {
+}, kb = class extends ere {
constructor() {
- super(...arguments), this.KeyframeResolver = Cv;
+ super(...arguments), this.KeyframeResolver = Tv;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19713,105 +19713,105 @@ var nre = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- gv(e) && (this.childSubscription = e.on("change", (e) => {
+ vv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Ob(e, { style: t, vars: n }, r, i) {
+function Ab(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function kb(e, { layout: t, layoutId: n }) {
- return u_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!py[e] || e === "opacity");
+function jb(e, { layout: t, layoutId: n }) {
+ return f_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!hy[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Ab(e, t, n) {
+function Mb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (gv(r[t]) || i && gv(i[t]) || kb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (vv(r[t]) || i && vv(i[t]) || jb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function rre(e) {
+function tre(e) {
return window.getComputedStyle(e);
}
-var ire = class extends Db {
+var nre = class extends kb {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Ob;
+ super(...arguments), this.type = "html", this.renderInstance = Ab;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (u_.has(t)) return this.projection?.isProjecting ? o_(t) : c_(e, t);
+ if (f_.has(t)) return this.projection?.isProjecting ? c_(t) : u_(e, t);
{
- let n = rre(e), r = (nh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = tre(e), r = (nh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return uy(e, t);
+ return fy(e, t);
}
build(e, t, n) {
- Vv(e, t, n.transformTemplate);
+ Uv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Ab(e, t, n);
+ return Mb(e, t, n);
}
-}, jb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Nb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function Mb(e) {
+function Pb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var are = (e) => (t) => jb(t) && e(t, Mb(t));
+var rre = (e) => (t) => Nb(t) && e(t, Pb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Nb(e, t, n, r) {
- return db(e, t, are(n), r);
+function Fb(e, t, n, r) {
+ return pb(e, t, rre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Pb = /* @__PURE__ */ new WeakMap(), Fb, Ib = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Av(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ore = /*@__PURE__*/ Ib("inline", "width", "offsetWidth"), sre = /*@__PURE__*/ Ib("block", "height", "offsetHeight");
-function cre({ target: e, borderBoxSize: t }) {
- Pb.get(e)?.forEach((n) => {
+var Ib = /* @__PURE__ */ new WeakMap(), Lb, Rb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Mv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ire = /*@__PURE__*/ Rb("inline", "width", "offsetWidth"), are = /*@__PURE__*/ Rb("block", "height", "offsetHeight");
+function ore({ target: e, borderBoxSize: t }) {
+ Ib.get(e)?.forEach((n) => {
n(e, {
get width() {
- return ore(e, t);
+ return ire(e, t);
},
get height() {
- return sre(e, t);
+ return are(e, t);
}
});
});
}
-function lre(e) {
- e.forEach(cre);
+function sre(e) {
+ e.forEach(ore);
}
-function ure() {
- typeof ResizeObserver < "u" && (Fb = new ResizeObserver(lre));
+function cre() {
+ typeof ResizeObserver < "u" && (Lb = new ResizeObserver(sre));
}
-function dre(e, t) {
- Fb || ure();
- let n = Pv(e);
+function lre(e, t) {
+ Lb || cre();
+ let n = Iv(e);
return n.forEach((e) => {
- let n = Pb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Pb.set(e, n)), n.add(t), Fb?.observe(e);
+ let n = Ib.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Ib.set(e, n)), n.add(t), Lb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Pb.get(e);
- n?.delete(t), n?.size || Fb?.unobserve(e);
+ let n = Ib.get(e);
+ n?.delete(t), n?.size || Lb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Lb = /* @__PURE__ */ new Set(), Rb;
-function fre() {
- Rb = () => {
+var zb = /* @__PURE__ */ new Set(), Bb;
+function ure() {
+ Bb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19820,26 +19820,26 @@ function fre() {
return window.innerHeight;
}
};
- Lb.forEach((t) => t(e));
- }, window.addEventListener("resize", Rb);
+ zb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Bb);
}
-function pre(e) {
- return Lb.add(e), Rb || fre(), () => {
- Lb.delete(e), !Lb.size && typeof Rb == "function" && (window.removeEventListener("resize", Rb), Rb = void 0);
+function dre(e) {
+ return zb.add(e), Bb || ure(), () => {
+ zb.delete(e), !zb.size && typeof Bb == "function" && (window.removeEventListener("resize", Bb), Bb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function zb(e, t) {
- return Mv(typeof e == "function" ? pre(e) : dre(e, t));
+function Vb(e, t) {
+ return Pv(typeof e == "function" ? dre(e) : lre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Bb = (e, t) => Math.abs(e - t);
-function mre(e, t) {
- let n = Bb(e.x, t.x), r = Bb(e.y, t.y);
+var Hb = (e, t) => Math.abs(e - t);
+function fre(e, t) {
+ let n = Hb(e.x, t.x), r = Hb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Vb = /*#__PURE__*/ new Set(["auto", "scroll"]), Hb = class {
+var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19847,8 +19847,8 @@ var Vb = /*#__PURE__*/ new Set(["auto", "scroll"]), Hb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Wb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Kb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = mre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Kb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Jb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = fre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19861,87 +19861,87 @@ var Vb = /*#__PURE__*/ new Set(["auto", "scroll"]), Hb = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Wb(t, this.transformPagePoint), this.hasPendingMove = !0, dg.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Kb(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Kb(e.type === "pointercancel" ? this.lastMoveEventInfo : Wb(t, this.transformPagePoint), this.history);
+ let a = Jb(e.type === "pointercancel" ? this.lastMoveEventInfo : Kb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !jb(e)) return;
+ }, !Nb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Wb(Mb(e), this.transformPagePoint), { point: c } = s;
+ let s = Kb(Pb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: $m.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Kb(s, this.history));
+ l && l(e, Jb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Cm(Nb(this.contextWindow, "pointermove", this.handlePointerMove, u), Nb(this.contextWindow, "pointerup", this.handlePointerUp, u), Nb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Cm(Fb(this.contextWindow, "pointermove", this.handlePointerMove, u), Fb(this.contextWindow, "pointerup", this.handlePointerUp, u), Fb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Vb.has(e.overflowX) || Vb.has(e.overflowY)) && this.scrollPositions.set(t, Ub(t)), t = t.parentElement;
+ (Ub.has(e.overflowX) || Ub.has(e.overflowY)) && this.scrollPositions.set(t, Gb(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Ub(window)), this.removeScrollListeners = Cm(db(window, "scroll", this.onElementScroll, { capture: !0 }), db(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Gb(window)), this.removeScrollListeners = Cm(pb(window, "scroll", this.onElementScroll, { capture: !0 }), pb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Ub(e), i = {
+ let n = e === window, r = Gb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), dg.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), pg.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), fg(this.updatePoint);
+ this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), mg(this.updatePoint);
}
-}, Ub = (e) => e === window ? {
+}, Gb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Wb(e, t) {
+function Kb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Gb(e, t) {
+function qb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Kb({ point: e }, t) {
+function Jb({ point: e }, t) {
return {
point: e,
- delta: Gb(e, qb(t)),
- offset: Gb(e, hre(t)),
- velocity: gre(t, .1)
+ delta: qb(e, Yb(t)),
+ offset: qb(e, pre(t)),
+ velocity: mre(t, .1)
};
}
-function hre(e) {
+function pre(e) {
return e[0];
}
-function qb(e) {
+function Yb(e) {
return e[e.length - 1];
}
-function gre(e, t) {
+function mre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = qb(e);
+ let n = e.length - 1, r = null, i = Yb(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Em(t)));) n--;
if (!r) return {
x: 0,
@@ -19960,95 +19960,95 @@ function gre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var _re = /* @__PURE__ */ new Set([
+var hre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function vre(e) {
- return _re.has(e.tagName) || e.isContentEditable === !0;
+function gre(e) {
+ return hre.has(e.tagName) || e.isContentEditable === !0;
}
-var yre = /* @__PURE__ */ new Set([
+var _re = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function bre(e) {
- return yre.has(e.tagName) || e.isContentEditable === !0;
+function vre(e) {
+ return _re.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Jb = {
+var Xb = {
x: !1,
y: !1
};
-function Yb() {
- return Jb.x || Jb.y;
+function Zb() {
+ return Xb.x || Xb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function xre(e) {
- return e === "x" || e === "y" ? Jb[e] ? null : (Jb[e] = !0, () => {
- Jb[e] = !1;
- }) : Jb.x || Jb.y ? null : (Jb.x = Jb.y = !0, () => {
- Jb.x = Jb.y = !1;
+function yre(e) {
+ return e === "x" || e === "y" ? Xb[e] ? null : (Xb[e] = !0, () => {
+ Xb[e] = !1;
+ }) : Xb.x || Xb.y ? null : (Xb.x = Xb.y = !0, () => {
+ Xb.x = Xb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function Sre(e, { min: t, max: n }, r) {
+function bre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? Qh(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Qh(n, e, r.max) : Math.min(e, n)), e;
}
-function Xb(e, t, n) {
+function Qb(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function Cre(e, { top: t, left: n, bottom: r, right: i }) {
+function $b(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Xb(e.x, n, i),
- y: Xb(e.y, t, r)
+ x: Qb(e.x, n, i),
+ y: Qb(e.y, t, r)
};
}
-function Zb(e, t) {
+function ex(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function wre(e, t) {
+function tx(e, t) {
return {
- x: Zb(e.x, t.x),
- y: Zb(e.y, t.y)
+ x: ex(e.x, t.x),
+ y: ex(e.y, t.y)
};
}
-function Tre(e, t) {
- let n = .5, r = wy(e), i = wy(t);
+function nx(e, t) {
+ let n = .5, r = Ey(e), i = Ey(t);
return i > r ? n = /* @__PURE__ */ wm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ wm(e.min, e.max - i, t.min)), gm(0, 1, n);
}
-function Ere(e, t) {
+function rx(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var Qb = .35;
-function Dre(e = Qb) {
- return e === !1 ? e = 0 : e === !0 && (e = Qb), {
- x: $b(e, "left", "right"),
- y: $b(e, "top", "bottom")
+var ix = .35;
+function xre(e = ix) {
+ return e === !1 ? e = 0 : e === !0 && (e = ix), {
+ x: ax(e, "left", "right"),
+ y: ax(e, "top", "bottom")
};
}
-function $b(e, t, n) {
+function ax(e, t, n) {
return {
- min: ex(e, t),
- max: ex(e, n)
+ min: ox(e, t),
+ max: ox(e, n)
};
}
-function ex(e, t) {
+function ox(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function tx(e) {
+function sx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20057,12 +20057,12 @@ function tx(e) {
}
return t;
}
-var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
+var Sre = /* @__PURE__ */ new WeakMap(), Cre = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = By(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Vy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20070,28 +20070,28 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = xre(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = yre(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), Xy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Zy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ih(t) && (t = dv(t, this.visualElement.current) || 0), wh.test(t)) t = parseFloat(t);
+ if (ih(t) && (t = pv(t, this.visualElement.current) || 0), wh.test(t)) t = parseFloat(t);
else if (Ch.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = wy(n) * (parseFloat(t) / 100));
+ n && (t = Ey(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && dg.update(() => a(e, t), !1, !0), _v(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), yv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = jre(o), this.currentDirection === null) return;
+ if (this.currentDirection = Tre(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
- this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && dg.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && pg.update(() => a(e, t), !1, !0);
}, o = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, s = () => {
@@ -20101,7 +20101,7 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Hb(e, {
+ this.panSession = new Wb(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20121,7 +20121,7 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
let { velocity: o } = i;
this.startAnimation(o, n);
let { onDragEnd: s } = this.getProps();
- s && dg.postRender(() => s(r, i));
+ s && pg.postRender(() => s(r, i));
}
cancel() {
this.isDragging = !1;
@@ -20133,26 +20133,26 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !ax(e, n, this.currentDirection)) return;
+ if (!t || !dx(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = Sre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = bre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- nx(e) ? this.constraints && this.scroll === tx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Cre(r.layoutBox, e) : !1, this.elastic = Dre(t), i !== this.constraints && !nx(e) && r && this.constraints && !this.hasMutatedConstraints && Xy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Ere(r.layoutBox[e], this.constraints[e]));
+ cx(e) ? this.constraints && this.scroll === sx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? $b(r.layoutBox, e) : !1, this.elastic = xre(t), i !== this.constraints && !cx(e) && r && this.constraints && !this.hasMutatedConstraints && Zy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = rx(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!nx(e)) return !1;
- let n = rx(e), { projection: r } = this.visualElement;
+ if (!cx(e)) return !1;
+ let n = lx(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = tx(r);
- let i = ine(n, r.root, this.visualElement.getTransformPagePoint()), a = wre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = sx(r);
+ let i = nne(n, r.root, this.visualElement.getTransformPagePoint()), a = tx(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(tne(a));
- this.hasMutatedConstraints = !!e, e && (a = Kv(e));
+ let e = t($te(a));
+ this.hasMutatedConstraints = !!e, e && (a = Jv(e));
}
return a;
}
@@ -20164,13 +20164,13 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && ax(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && dx(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = Xy((e) => {
- if (!ax(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = Zy((e) => {
+ if (!dx(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20188,10 +20188,10 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return _v(this.visualElement, e), n.start(uv(e, n, 0, t, this.visualElement, !1));
+ return yv(this.visualElement, e), n.start(fv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Xy((e) => this.getAxisMotionValue(e).stop());
+ Zy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20202,8 +20202,8 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Xy((e) => {
- if (!ax(e, n, this.currentDirection)) return;
+ Zy((e) => {
+ if (!dx(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - Qh(r, o, .5));
});
@@ -20211,41 +20211,41 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!nx(t) || !n || !this.constraints) return;
+ if (!cx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Xy((e) => {
+ Zy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Tre({
+ i[e] = nx({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Xy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Zy((t) => {
let n = this.getAxisMotionValue(t);
- if (!ax(t, e, null) || !n.get()) return;
+ if (!dx(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(Qh(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Ore.set(this.visualElement, this);
- let e = this.visualElement.current, t = Nb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && bre(i);
+ Sre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Fb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && vre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = nx(t) && rx(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Are(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = cx(t) && lx(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= wre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i.layout || (i.root?.updateScroll(), i.updateLayout()), dg.read(r);
- let o = db(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Xy((t) => {
- if (!ax(t, this.getProps().drag, this.currentDirection)) return;
+ i.layout || (i.root?.updateScroll(), i.updateLayout()), pg.read(r);
+ let o = pb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Zy((t) => {
+ if (!dx(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20255,7 +20255,7 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = Qb, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = ix, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20263,32 +20263,32 @@ var Ore = /* @__PURE__ */ new WeakMap(), kre = class {
};
}
};
-function nx(e) {
+function cx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var rx = (e) => "current" in e ? e.current : e;
-function ix(e) {
+var lx = (e) => "current" in e ? e.current : e;
+function ux(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Are(e, t, n) {
- let r = zb(e, ix(n)), i = zb(t, ix(n));
+function wre(e, t, n) {
+ let r = Vb(e, ux(n)), i = Vb(t, ux(n));
return () => {
r(), i();
};
}
-function ax(e, t, n) {
+function dx(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function jre(e, t = 10) {
+function Tre(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function ox(e, t) {
- let n = Pv(e), r = new AbortController();
+function fx(e, t) {
+ let n = Iv(e), r = new AbortController();
return [
n,
{
@@ -20296,16 +20296,16 @@ function ox(e, t) {
...t,
signal: r.signal
},
- Mv(() => r.abort())
+ Pv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Mre(e) {
- return !(e.pointerType === "touch" || Yb());
+function Ere(e) {
+ return !(e.pointerType === "touch" || Zb());
}
-function Nre(e, t, n = {}) {
- t = Nv(t);
- let [r, i, a] = ox(e, n);
+function Dre(e, t, n = {}) {
+ t = Fv(t);
+ let [r, i, a] = fx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20319,7 +20319,7 @@ function Nre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Mre(n)) return;
+ if (!Ere(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20327,71 +20327,71 @@ function Nre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var sx = (e, t) => t ? e === t || sx(e, t.parentElement) : !1, cx = /* @__PURE__ */ new WeakSet();
+var px = (e, t) => t ? e === t || px(e, t.parentElement) : !1, mx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function lx(e) {
+function hx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function ux(e, t) {
+function gx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Pre = (e, t) => {
- let n = !1, r = lx(() => {
- cx.has(e) || (n = !0, ux(e, "down"));
- }), i = lx(() => {
- n && (n = !1, ux(e, "up"));
+var Ore = (e, t) => {
+ let n = !1, r = hx(() => {
+ mx.has(e) || (n = !0, gx(e, "down"));
+ }), i = hx(() => {
+ n && (n = !1, gx(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && ux(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && gx(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function dx(e) {
- return jb(e) && !Yb();
+function _x(e) {
+ return Nb(e) && !Zb();
}
-var fx = /* @__PURE__ */ new WeakSet();
-function Fre(e, t, n = {}) {
- t = Nv(t);
- let [r, i, a] = ox(e, n), o = (e) => {
+var vx = /* @__PURE__ */ new WeakSet();
+function kre(e, t, n = {}) {
+ t = Fv(t);
+ let [r, i, a] = fx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!dx(e) || fx.has(e)) return;
- cx.add(r), n.stopPropagation && fx.add(e);
+ if (!_x(e) || vx.has(e)) return;
+ mx.add(r), n.stopPropagation && vx.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), cx.has(r) && cx.delete(r), dx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), mx.has(r) && mx.delete(r), _x(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || sx(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || px(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), kv(e) && (e.addEventListener("focus", () => Pre(e, i), i), !vre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), jv(e) && (e.addEventListener("focus", () => Ore(e, i), i), !gre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function px(e, t) {
+function yx(e, t) {
let n = window.getComputedStyle(e);
- return C_(t) ? n.getPropertyValue(t) : n[t];
+ return T_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var mx = class {
+var bx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, hx = /* @__PURE__ */ new Set([
+}, xx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20415,58 +20415,58 @@ var mx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), gx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), Sx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Ire(e, t, n, r) {
- Ob(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(hx.has(n) ? n : Bv(n), t.attrs[n]);
+function Are(e, t, n, r) {
+ Ab(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(xx.has(n) ? n : Hv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function _x(e, t, n) {
- let r = Ab(e, t, n);
- for (let n in e) if (n !== "children" && (gv(e[n]) || gv(t[n]))) {
- let t = l_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function Cx(e, t, n) {
+ let r = Mb(e, t, n);
+ for (let n in e) if (n !== "children" && (vv(e[n]) || vv(t[n]))) {
+ let t = d_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Lre = class extends Db {
+var jre = class extends kb {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = By;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Vy;
}
getBaseTargetFromProps(e, t) {
- return u_.has(t) ? super.getBaseTargetFromProps(e, t) ?? o_(t) : e[t];
+ return f_.has(t) ? super.getBaseTargetFromProps(e, t) ?? c_(t) : e[t];
}
getDefaultValue(e) {
- return u_.has(e) ? this.latestValues[e] ?? o_(e) : void 0;
+ return f_.has(e) ? this.latestValues[e] ?? c_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (u_.has(t)) {
- let e = Zg(t);
+ if (f_.has(t)) {
+ let e = $g(t);
return e && e.default || 0;
}
- if (Hv.includes(t)) {
+ if (Wv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = hx.has(t) ? t : Bv(t), e.getAttribute(t);
+ return t = xx.has(t) ? t : Hv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return _x(e, t, n);
+ return Cx(e, t, n);
}
build(e, t, n) {
- Uv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Gv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Ire(e, t, n, r);
+ Are(e, t, n, r);
}
mount(e) {
- this.isSVGTag = gx(e.tagName), super.mount(e);
+ this.isSVGTag = Sx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function vx(e, t) {
+function wx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20474,18 +20474,18 @@ function vx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Rre = [..._b].reverse(), yx = (e) => e?.out === !0 ? e : e?.out;
-function zre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Nte(e, t, n))), n = bx(), r = !0, i = !1;
+var Mre = [...yb].reverse(), Tx = (e) => e?.out === !0 ? e : e?.out;
+function Nre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => jte(e, t, n))), n = Ex(), r = !0, i = !1;
function a(a) {
- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && pv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && hv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && yx(f(l ?? (g && g.props.initial))?.transition);
- if (Rre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? gb(f) || f === !1 ? f : void 0 : l, y = gb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || hb(v) || typeof v == "boolean") return;
+ let _ = u && Tx(f(l ?? (g && g.props.initial))?.transition);
+ if (Mre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? vb(f) || f === !1 ? f : void 0 : l, y = vb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || _b(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20493,14 +20493,14 @@ function zre(e) {
};
return;
}
- let S = Bre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Pre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
- let { transition: r, transitionEnd: i, ...a } = pv(e, n, mv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = hv(e, n, gv(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = yx(r) || D;
+ }, D = Tx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20508,7 +20508,7 @@ function zre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !vx(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !wx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20523,8 +20523,8 @@ function zre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = pv(s, n)?.transition?.delayChildren;
- r.delay = rv(s.enteringChildren, e, t);
+ let t = hv(s, n)?.transition?.delayChildren;
+ r.delay = av(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20541,7 +20541,7 @@ function zre(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !gv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !vv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20562,16 +20562,16 @@ function zre(e) {
},
getState: () => n,
reset: () => {
- n = bx(), i = !0;
+ n = Ex(), i = !0;
}
};
}
-function Bre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !vx(t, e) : !1;
+function Pre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !wx(t, e) : !1;
}
-function bx() {
+function Ex() {
let e = {};
- for (let t of _b) e[t] = {
+ for (let t of yb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20581,55 +20581,55 @@ function bx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var xx = /* @__PURE__ */ (0, F.createContext)({
+var Dx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Sx(e, t) {
+function Ox(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Vre(...e) {
+function Fre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Sx(e, t);
+ let r = Ox(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Sx(e[t], null);
+ typeof n == "function" ? n() : Ox(e[t], null);
}
};
};
}
-function Hre(...e) {
- return F.useCallback(Vre(...e), e);
+function Ire(...e) {
+ return F.useCallback(Fre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Cx = (e) => {
+var kx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, wx = (e) => {
+}, Ax = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = Cx(r);
+ let [a, o] = kx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Cx(e.offsetParent);
+ let [i, a] = kx(e.offsetParent);
return [t / i, n / a];
-}, Ure = class extends F.Component {
+}, Lre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (kv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = kv(e) && e.offsetWidth || 0, r = kv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = wx(t);
+ if (jv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = jv(e) && e.offsetWidth || 0, r = jv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Ax(t);
}
return null;
}
@@ -20638,7 +20638,7 @@ var Cx = (e) => {
return this.props.children;
}
};
-function Wre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function Rre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20647,7 +20647,7 @@ function Wre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(xx), d = Hre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(Dx), d = Ire(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20660,10 +20660,10 @@ function Wre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return dy.setup(() => {
- let [e, t] = wx(r);
+ return py.setup(() => {
+ let [e, t] = Ax(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), dy.read(() => {
+ }), py.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20671,7 +20671,7 @@ function Wre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(Ure, {
+ }, [t]), (0, I.jsx)(Lre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20680,8 +20680,8 @@ function Wre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Gre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = dm(Kre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+var zre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = dm(Bre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
fm(() => {
p.current = n, m.current = r;
});
@@ -20707,7 +20707,7 @@ var Gre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Wre, {
+ }, [n]), e = (0, I.jsx)(Rre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20720,11 +20720,11 @@ var Gre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function Kre() {
+function Bre() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Tx(e = !0) {
+function jx(e = !0) {
let t = (0, F.useContext)(pm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
@@ -20738,23 +20738,23 @@ function Tx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Ex() {
- return qre((0, F.useContext)(pm));
+function Mx() {
+ return Vre((0, F.useContext)(pm));
}
-function qre(e) {
+function Vre(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Dx = (e) => e.key || "";
-function Ox(e) {
+var Nx = (e) => e.key || "";
+function Px(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Tx(o), f = (0, F.useMemo)(() => Ox(e), [e]), p = o && !u ? [] : f.map(Dx), m = (0, F.useRef)(!0), h = dm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+var Fx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = jx(o), f = (0, F.useMemo)(() => Px(e), [e]), p = o && !u ? [] : f.map(Nx), m = (0, F.useRef)(!0), h = dm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
fm(() => {
o && !u && !y.length && d?.();
}, [
@@ -20770,7 +20770,7 @@ var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), fm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Dx(y[e]);
+ let t = Nx(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20782,15 +20782,15 @@ var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Dx(n));
+ let r = p.indexOf(Nx(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Dx(e))) ? e = f : a === "wait" && (e = S), b(Ox(e)), v(f), null;
+ return S.every((e) => h.get(Nx(e))) ? e = f : a === "wait" && (e = S), b(Px(e)), v(f), null;
}
let { forceRender: C } = (0, F.useContext)(um);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Dx(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Gre, {
+ let _ = Nx(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(zre, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20811,8 +20811,8 @@ var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Ax = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), jx = {
- animation: ["variants", ..._b],
+}, Ix = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Lx = {
+ animation: ["variants", ...yb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20839,32 +20839,32 @@ var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Mx = !1;
-function Jre() {
- if (Mx) return;
+}, Rx = !1;
+function Hre() {
+ if (Rx) return;
let e = {};
- for (let t in jx) e[t] = { isEnabled: (e) => jx[t].some((t) => !!e[t]) };
- Eb(e), Mx = !0;
+ for (let t in Lx) e[t] = { isEnabled: (e) => Lx[t].some((t) => !!e[t]) };
+ Ob(e), Rx = !0;
}
-function Nx() {
- return Jre(), tre();
+function zx() {
+ return Hre(), $ne();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Yre(e) {
- let t = Nx();
+function Ure(e) {
+ let t = zx();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Eb(t);
+ Ob(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function Xre({ children: e, ...t }) {
- let n = (0, F.useContext)(xx);
+function Wre({ children: e, ...t }) {
+ let n = (0, F.useContext)(Dx);
t = {
...n,
...t
- }, t.transition = cv(t.transition, n.transition), t.isStatic = dm(() => t.isStatic);
+ }, t.transition = uv(t.transition, n.transition), t.isStatic = dm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20872,77 +20872,77 @@ function Xre({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(xx.Provider, {
+ return (0, I.jsx)(Dx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Px = /* @__PURE__ */ (0, F.createContext)({});
+var Bx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function Zre(e, t) {
- if (yb(e)) {
+function Gre(e, t) {
+ if (xb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || gb(t) ? t : void 0,
- animate: gb(n) ? n : void 0
+ initial: t === !1 || vb(t) ? t : void 0,
+ animate: vb(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function Qre(e) {
- let { initial: t, animate: n } = Zre(e, (0, F.useContext)(Px));
+function Kre(e) {
+ let { initial: t, animate: n } = Gre(e, (0, F.useContext)(Bx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Fx(t), Fx(n)]);
+ }), [Vx(t), Vx(n)]);
}
-function Fx(e) {
+function Vx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Ix = () => ({
+var Hx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Lx(e, t, n) {
- for (let r in t) !gv(t[r]) && !kb(r, n) && (e[r] = t[r]);
+function Ux(e, t, n) {
+ for (let r in t) !vv(t[r]) && !jb(r, n) && (e[r] = t[r]);
}
-function $re({ transformTemplate: e }, t) {
+function qre({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Ix();
- return Vv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Hx();
+ return Uv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function eie(e, t) {
+function Jre(e, t) {
let n = e.style || {}, r = {};
- return Lx(r, n, e), Object.assign(r, $re(e, t)), r;
+ return Ux(r, n, e), Object.assign(r, qre(e, t)), r;
}
-function tie(e, t) {
- let n = {}, r = eie(e, t);
+function Yre(e, t) {
+ let n = {}, r = Jre(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Rx = () => ({
- ...Ix(),
+var Wx = () => ({
+ ...Hx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function nie(e, t, n, r) {
+function Xre(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Rx();
- return Uv(n, t, gx(r), e.transformTemplate, e.style), {
+ let n = Wx();
+ return Gv(n, t, Sx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Lx(t, e.style, e), {
+ return Ux(t, e.style, e), {
...i,
style: {
...t,
@@ -20953,21 +20953,21 @@ function nie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var rie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function zx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || rie.has(e);
+var Zre = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Gx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Zre.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function iie(e, t) {
- return e.startsWith("on") ? !zx(e) : t?.(e) ?? !zx(e);
+function Qre(e, t) {
+ return e.startsWith("on") ? !Gx(e) : t?.(e) ?? !Gx(e);
}
-function aie(e, t, n, r) {
+function $re(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || gv(e[a]) || (iie(a, r) || n === !0 && zx(a) || !t && !zx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || vv(e[a]) || (Qre(a, r) || n === !0 && Gx(a) || !t && !Gx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var oie = [
+var eie = [
"animate",
"circle",
"defs",
@@ -20995,40 +20995,40 @@ var oie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Bx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(oie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Kx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(eie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function sie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Bx(e) ? nie : tie)(t, r, i, e), l = aie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function tie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Kx(e) ? Xre : Yre)(t, r, i, e), l = $re(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => gv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => vv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function cie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function nie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: lie(n, r, i, e),
+ latestValues: rie(n, r, i, e),
renderState: t()
};
}
-function lie(e, t, n, r) {
+function rie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = hy(a[e]);
- let { initial: o, animate: s } = e, c = yb(e), l = bb(e);
+ for (let e in a) i[e] = _y(a[e]);
+ let { initial: o, animate: s } = e, c = xb(e), l = Sb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !hb(d)) {
+ if (d && typeof d != "boolean" && !_b(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = fv(e, t[n]);
+ let r = mv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21045,18 +21045,18 @@ function lie(e, t, n, r) {
}
return i;
}
-var Vx = (e) => (t, n) => {
- let r = (0, F.useContext)(Px), i = (0, F.useContext)(pm), a = () => cie(e, t, r, i);
+var qx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Bx), i = (0, F.useContext)(pm), a = () => nie(e, t, r, i);
return n ? a() : dm(a);
-}, uie = /*@__PURE__*/ Vx({
- scrapeMotionValuesFromProps: Ab,
- createRenderState: Ix
-}), die = /*@__PURE__*/ Vx({
- scrapeMotionValuesFromProps: _x,
- createRenderState: Rx
-}), fie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}, iie = /*@__PURE__*/ qx({
+ scrapeMotionValuesFromProps: Mb,
+ createRenderState: Hx
+}), aie = /*@__PURE__*/ qx({
+ scrapeMotionValuesFromProps: Cx,
+ createRenderState: Wx
+}), oie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function pie(e, t, n) {
+function sie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21074,10 +21074,10 @@ function pie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Hx = /* @__PURE__ */ (0, F.createContext)({});
+var Jx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function mie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Px), s = (0, F.useContext)(Ax), c = (0, F.useContext)(pm), l = (0, F.useContext)(xx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function cie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Bx), s = (0, F.useContext)(Ix), c = (0, F.useContext)(pm), l = (0, F.useContext)(Dx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21088,11 +21088,11 @@ function mie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Hx);
+ let m = f.current, h = (0, F.useContext)(Jx);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
- let g = n[vv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ let g = n[bv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
return fm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
}, []), fm(() => {
@@ -21104,46 +21104,46 @@ function mie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Ux(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Yre(r);
- let a = n ? n === "svg" : Bx(e), o = a ? die : uie;
+function Yx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Ure(r);
+ let a = n ? n === "svg" : Kx(e), o = a ? aie : iie;
function s(n, s) {
- let c, l = hie(n);
- dm(() => !!fb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = lie(n);
+ dm(() => !!mb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(xx),
+ ...(0, F.useContext)(Dx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = Qre(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = Kre(n), m = o(n, d);
if (!d && typeof window < "u") {
- gie(u, r);
- let t = _ie(u);
- p.visualElement = mie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ uie(u, r);
+ let t = die(u);
+ p.visualElement = cie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Px.Provider, {
+ return (0, I.jsxs)(Bx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, sie(e, n, pie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, tie(e, n, sie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[fie] = e, c;
+ return c[oie] = e, c;
}
-function hie({ layoutId: e }) {
+function lie({ layoutId: e }) {
let t = (0, F.useContext)(um).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function gie(e, t) {
- (0, F.useContext)(Ax).strict;
+function uie(e, t) {
+ (0, F.useContext)(Ix).strict;
}
-function _ie(e) {
- let { drag: t, layout: n } = Nx();
+function die(e) {
+ let { drag: t, layout: n } = zx();
if (!t && !n) return {};
let r = {
...t,
@@ -21156,19 +21156,19 @@ function _ie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function vie(e, t) {
- if (typeof Proxy > "u") return Ux;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Ux(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Ux(a, void 0, e, t)), n.get(a)) });
+function fie(e, t) {
+ if (typeof Proxy > "u") return Yx;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Yx(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Yx(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection: e !== F.Fragment }), bie = class extends mx {
+var pie = (e, t) => t.isSVG ?? Kx(e) ? new jre(t) : new nre(t, { allowProjection: e !== F.Fragment }), mie = class extends bx {
constructor(e) {
- super(e), e.animationState ||= zre(e);
+ super(e), e.animationState ||= Nre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- hb(e) && (this.unmountControls = e.subscribe(this.node));
+ _b(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21179,11 +21179,11 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, xie = 0, Sie = {
- animation: { Feature: bie },
- exit: { Feature: class extends mx {
+}, hie = 0, gie = {
+ animation: { Feature: mie },
+ exit: { Feature: class extends bx {
constructor() {
- super(...arguments), this.id = xie++;
+ super(...arguments), this.id = hie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21194,7 +21194,7 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = pv(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = hv(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21213,9 +21213,9 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
}
unmount() {}
} }
-}, Cie = class extends mx {
+}, _ie = class extends bx {
constructor(e) {
- super(e), this.removeGroupControls = Sm, this.removeListeners = Sm, this.controls = new kre(e);
+ super(e), this.removeGroupControls = Sm, this.removeListeners = Sm, this.controls = new Cre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -21228,14 +21228,14 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Wx = (e) => (t, n) => {
- e && dg.update(() => e(t, n), !1, !0);
-}, wie = class extends mx {
+}, Xx = (e) => (t, n) => {
+ e && pg.update(() => e(t, n), !1, !0);
+}, vie = class extends bx {
constructor() {
super(...arguments), this.removePointerDownListener = Sm;
}
onPointerDown(e) {
- this.session = new Hb(e, this.createPanHandlers(), {
+ this.session = new Wb(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21243,16 +21243,16 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Wx(e),
- onStart: Wx(t),
- onMove: Wx(n),
+ onSessionStart: Xx(e),
+ onStart: Xx(t),
+ onMove: Xx(n),
onEnd: (e, t) => {
- delete this.session, r && dg.postRender(() => r(e, t));
+ delete this.session, r && pg.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Nb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Fb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21260,12 +21260,12 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Gx = !1, Kx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Zx = !1, Qx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), qx = (e, t) => {
+}), $x = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21274,33 +21274,33 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Tie = class extends F.Component {
+}, yie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Gx && i.root.didUpdate(), i.options.layoutId !== r && qx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Zx && i.root.didUpdate(), i.options.layoutId !== r && $x(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Kx(this.props),
+ ...Qx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Zy.hasEverUpdated = !0;
+ })), Qy.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), qx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), $x(o, n)), o.setOptions({
...o.options,
- ...Kx(this.props)
- }), Gx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || dg.postRender(() => {
+ ...Qx(this.props)
+ }), Zx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), dy.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), py.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Gx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Zx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21309,39 +21309,39 @@ var yie = (e, t) => t.isSVG ?? Bx(e) ? new Lre(t) : new ire(t, { allowProjection
return null;
}
};
-function Jx(e) {
- let [t, n] = Tx(), r = (0, F.useContext)(um);
- return (0, I.jsx)(Tie, {
+function eS(e) {
+ let [t, n] = jx(), r = (0, F.useContext)(um);
+ return (0, I.jsx)(yie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Hx),
+ switchLayoutGroup: (0, F.useContext)(Jx),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Eie = {
- pan: { Feature: wie },
+var bie = {
+ pan: { Feature: vie },
drag: {
- Feature: Cie,
- ProjectionNode: pb,
- MeasureLayout: Jx
+ Feature: _ie,
+ ProjectionNode: hb,
+ MeasureLayout: eS
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Yx(e, t, n, r) {
+function tS(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && dg.postRender(() => o(t, Mb(t)));
+ o && pg.postRender(() => o(t, Pb(t)));
}
-var Die = class extends mx {
+var xie = class extends bx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Nre(e, (e, t) => (Yx(this.node, t, "Hover", "Start"), (e) => Yx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Dre(e, (e, t) => (tS(this.node, t, "Hover", "Start"), (e) => tS(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Oie = class extends mx {
+}, Sie = class extends bx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21358,51 +21358,51 @@ var Die = class extends mx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Cm(db(this.node.current, "focus", () => this.onFocus()), db(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Cm(pb(this.node.current, "focus", () => this.onFocus()), pb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function Xx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Yx(e, t, "Tap", n);
+function nS(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || tS(e, t, "Tap", n);
}
-var kie = class extends mx {
+var Cie = class extends bx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Fre(e, (e, t) => (Xx(this.node, t, "Start"), (e, { success: t }) => Xx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = kre(e, (e, t) => (nS(this.node, t, "Start"), (e, { success: t }) => nS(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Zx = /* @__PURE__ */ new WeakMap(), Qx = /* @__PURE__ */ new WeakMap(), Aie = (e) => {
- let t = Zx.get(e.target);
+}, rS = /* @__PURE__ */ new WeakMap(), iS = /* @__PURE__ */ new WeakMap(), wie = (e) => {
+ let t = rS.get(e.target);
t && t(e);
-}, jie = (e) => {
- e.forEach(Aie);
+}, Tie = (e) => {
+ e.forEach(wie);
};
-function Mie({ root: e, ...t }) {
+function Eie({ root: e, ...t }) {
let n = e || document;
- Qx.has(n) || Qx.set(n, {});
- let r = Qx.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(jie, {
+ iS.has(n) || iS.set(n, {});
+ let r = iS.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Tie, {
root: e,
...t
})), r[i];
}
-function Nie(e, t, n) {
- let r = Mie(t);
- return Zx.set(e, n), r.observe(e), () => {
- Zx.delete(e), r.unobserve(e);
+function Die(e, t, n) {
+ let r = Eie(t);
+ return rS.set(e, n), r.observe(e), () => {
+ rS.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Pie = {
+var Oie = {
some: 0,
all: 1
-}, Fie = class extends mx {
+}, kie = class extends bx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21411,7 +21411,7 @@ var Pie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Pie[r]
+ threshold: typeof r == "number" ? r : Oie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21419,7 +21419,7 @@ var Pie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Nie(this.node.current, a, o);
+ this.stopObserver = Die(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21431,61 +21431,61 @@ var Pie = {
"amount",
"margin",
"root"
- ].some(Iie(e, t)) && this.startObserver();
+ ].some(Aie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Iie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Aie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Lie = /*@__PURE__*/ vie(/* @__PURE__ */ Object.assign({}, Sie, {
- inView: { Feature: Fie },
- tap: { Feature: kie },
- focus: { Feature: Oie },
- hover: { Feature: Die }
-}, Eie, { layout: {
- ProjectionNode: pb,
- MeasureLayout: Jx
-} }), yie);
+var jie = /*@__PURE__*/ fie(/* @__PURE__ */ Object.assign({}, gie, {
+ inView: { Feature: kie },
+ tap: { Feature: Cie },
+ focus: { Feature: Sie },
+ hover: { Feature: xie }
+}, bie, { layout: {
+ ProjectionNode: hb,
+ MeasureLayout: eS
+} }), pie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function $x() {
- !Sb.current && Cb();
- let [e] = (0, F.useState)(xb.current);
+function aS() {
+ !wb.current && Tb();
+ let [e] = (0, F.useState)(Cb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function eS(e) {
+function oS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function tS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && eS(t) ? Pv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function sS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && oS(t) ? Iv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Rie(e, t, n) {
+function Mie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function nS(e, t) {
+function cS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function zie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : nS(t, r) ?? e;
+function Nie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : cS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Bie(e, t, n) {
+function Pie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (hm(e, i), r--);
}
}
-function Vie(e, t, n, r, i, a) {
- Bie(e, i, a);
+function Fie(e, t, n, r, i, a) {
+ Pie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: Qh(i, a, r[o]),
@@ -21493,19 +21493,19 @@ function Vie(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Hie(e, t, n = 0) {
+function Iie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Uie(e, t) {
+function Lie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Wie = "easeInOut", Gie = 20;
-function Kie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var Rie = "easeInOut", zie = 20;
+function Bie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : zie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Nie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21520,12 +21520,12 @@ function Kie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = qie(e), { delay: l = 0, times: u = Fg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = Vie(e), { delay: l = 0, times: u = Lg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = A_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = M_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && Xie(c)) {
+ if (S === 2 && Wie(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21534,16 +21534,16 @@ function Kie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
..._
};
b !== void 0 && (n.duration = /* @__PURE__ */ Em(b));
- let r = vg(n, e, C);
+ let r = bg(n, e, C);
v = r.ease, b = r.duration;
}
b ??= o;
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Pg(u, T), c.length === 1 && c.unshift(null), m && m < Gie) {
+ if (T > 0 && Ig(u, T), c.length === 1 && c.unshift(null), m && m < zie) {
let e = b > 0 ? g / b : 0;
- b = Rie(b, m, g);
+ b = Mie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -21553,20 +21553,20 @@ function Kie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ Gm(f, e - 1));
}
- Hie(u, m, e);
+ Iie(u, m, e);
}
let E = w + b;
- Vie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Fie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (gv(g)) {
- let e = rS(g, c);
- b(_, v, iS("default", e));
+ if (vv(g)) {
+ let e = lS(g, c);
+ b(_, v, uS("default", e));
} else {
- let e = tS(g, _, r, l), t = e.length;
+ let e = sS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = rS(r, c);
- for (let e in _) b(_[e], Jie(v, e), iS(e, i), n, t);
+ let r = e[n], i = lS(r, c);
+ for (let e in _) b(_[e], Hie(v, e), uS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21576,13 +21576,13 @@ function Kie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Uie);
+ a.sort(Lie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ wm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Wie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Rie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21600,45 +21600,45 @@ function Kie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function rS(e, t) {
+function lS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function iS(e, t) {
+function uS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function qie(e) {
+function Vie(e) {
return Array.isArray(e) ? e : [e];
}
-function Jie(e, t) {
+function Hie(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var Yie = (e) => typeof e == "number", Xie = (e) => e.every(Yie);
+var Uie = (e) => typeof e == "number", Wie = (e) => e.every(Uie);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function Zie(e, t) {
- return gv(e) || typeof e == "number" || typeof e == "string" && !eS(t);
+function Gie(e, t) {
+ return vv(e) || typeof e == "number" || typeof e == "string" && !oS(t);
}
-function aS(e, t, n, r) {
+function dS(e, t, n, r) {
let i = [];
- if (Zie(e, t)) i.push(fy(e, eS(t) && t.default || t, n && (n.default || n)));
+ if (Gie(e, t)) i.push(my(e, oS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = tS(e, t, r), o = a.length;
+ let a = sS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...lne(r, t, s, mb.get(r))) : i.push(...Ov(Ute(r) ?? une, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...sne(r, t, s, gb.get(r))) : i.push(...Av(Vte(r) ?? cne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Qie(e, t, n, r) {
+function Kie(e, t, n, r) {
let i = [];
- return Kie(e.map((e) => {
+ return Bie(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = sv(0);
+ let t = e[0], n = lv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21650,31 +21650,31 @@ function Qie(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: jg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...aS(n, e, t));
+ }), t, n, { spring: Ng }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...dS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var oS = 0;
-function $ie(e, t) {
+var fS = 0;
+function qie(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var sS = (e, t) => t === void 0 ? e : {
+var pS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function cS(e) {
+function mS(e) {
e.pause(), e.time = 0, e.stop();
}
-var lS = class e {
+var hS = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = jv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Nv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new tv(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new rv(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
r && (r.animations.push(this), this.finished.then(() => hm(r.animations, this)));
}
@@ -21689,7 +21689,7 @@ var lS = class e {
item: e,
at: t,
marker: {
- name: "_m" + oS++,
+ name: "_m" + fS++,
time: 0,
callback: e
}
@@ -21700,7 +21700,7 @@ var lS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + oS++,
+ name: "_m" + fS++,
time: 0,
callback: t,
pause: !0
@@ -21794,50 +21794,50 @@ var lS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (cS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (mS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, cS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, mS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = jv.current;
- jv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Nv.current;
+ Nv.current = this.motionScope;
let m;
try {
- m = Qie(this.toSequence(d), {
+ m = Kie(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- jv.current = p;
+ Nv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = sv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = fy(e, [0, g], {
+ let e = this.clock = lv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = my(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new tv(m);
+ let v = this.group = new rv(m);
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), sS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), pS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? sS(n, r) : r === void 0 ? n : Array.isArray(n) ? $ie(n, r) : {
+ } : typeof n == "string" ? pS(n, r) : r === void 0 ? n : Array.isArray(n) ? qie(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : nS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : cS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21885,16 +21885,16 @@ var lS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function eae(e) {
+function Jie(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function tae(e = {}) {
+function Yie(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = jv.current?.transition, s = {};
+ let o = Nv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (eae(e)) {
+ if (Jie(e)) {
let n = {
...s,
...i,
@@ -21903,14 +21903,14 @@ function tae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new lS(e, n);
+ }), c = new hS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new lS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new hS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21925,29 +21925,29 @@ function tae(e = {}) {
...s,
onComplete: n,
scope: t
- }, aS(e, i, l, t));
+ }, dS(e, i, l, t));
}
return c;
}
return i;
}
-var uS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ tae(), {
- addEffect: Hte,
- removeEffect: Ev
+var gS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Yie(), {
+ addEffect: Bte,
+ removeEffect: Ov
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function nae(e, t, n, r) {
+function Xie(e, t, n, r) {
if (e == null) return [];
- let i = Pv(e, r), a = i.length, o = [];
+ let i = Iv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...lv(s, e) };
+ let i = { ...dv(s, e) };
i.duration &&= /* @__PURE__ */ Em(i.duration), i.delay &&= /* @__PURE__ */ Em(i.delay);
- let a = mte(r), c = pte(e, i.pseudoElement || ""), l = a.get(c);
+ let a = fte(r), c = dte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -21963,21 +21963,21 @@ function nae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = px(r, i)), $g(t), Vte(t, i), !a && t.length < 2 && t.unshift(px(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = yx(r, i)), t_(t), zte(t, i), !a && t.length < 2 && t.unshift(yx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new j_(r);
+ let { map: t, key: n, options: r } = o[e], i = new N_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var rae = /*@__PURE__*/ ((e) => {
+var Zie = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new tv(nae(t, n, r, e));
+ return new rv(Xie(t, n, r, e));
}
return t;
-})(), dS = Lie, fS = class {
+})(), _S = jie, vS = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -21992,22 +21992,22 @@ var rae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, pS = class extends fS {
+}, yS = class extends vS {
filter(e, t, n) {
- let [r, i] = _S(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = CS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends fS {
+(class extends vS {
static {
this.type = "header";
}
});
-var mS = class extends fS {
+var bS = class extends vS {
static {
this.type = "loader";
}
-}, hS = class extends pS {
+}, xS = class extends yS {
static {
this.type = "item";
}
@@ -22018,7 +22018,7 @@ var mS = class extends fS {
}
return null;
}
-}, iae = class extends pS {
+}, Qie = class extends yS {
static {
this.type = "section";
}
@@ -22030,7 +22030,7 @@ var mS = class extends fS {
}
return null;
}
-}, gS = class {
+}, SS = class {
get size() {
return this.itemCount;
}
@@ -22105,14 +22105,14 @@ var mS = class extends fS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = _S(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = CS(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function _S(e, t, n, r) {
+function CS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22126,7 +22126,7 @@ function _S(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var vS = class {
+var wS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22207,7 +22207,7 @@ var vS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, yS = class e extends vS {
+}, TS = class e extends wS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22258,7 +22258,7 @@ var vS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, aae = class extends vS {
+}, $ie = class extends wS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22266,7 +22266,7 @@ var vS = class {
return !0;
}
createElement(e) {
- return new yS(e, this);
+ return new TS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22288,8 +22288,8 @@ var vS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof yS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof yS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof TS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof TS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22307,13 +22307,13 @@ var vS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function bS(e) {
+function ES(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = oae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = eae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22338,7 +22338,7 @@ function bS(e) {
i
]);
}
-function oae(e) {
+function eae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22347,24 +22347,24 @@ function oae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function xS(e) {
+function DS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var SS = (e) => sae(e) ? e.document : cae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), CS = (e) => SS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function wS(e) {
+var OS = (e) => tae(e) ? e.document : nae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), kS = (e) => OS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function AS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function sae(e) {
+function tae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function cae(e) {
- return wS(e) && e.nodeType === 9;
+function nae(e) {
+ return AS(e) && e.nodeType === 9;
}
-function TS(e) {
- return wS(e) && e.nodeType === 11 && "host" in e;
+function jS(e) {
+ return AS(e) && e.nodeType === 11 && "host" in e;
}
-function ES(e, t, n, r) {
+function MS(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22372,7 +22372,7 @@ function ES(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function DS(e, t, n, r) {
+function NS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22386,70 +22386,70 @@ function DS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var lae = !1;
-function OS() {
- return lae;
+var rae = !1;
+function PS() {
+ return rae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function kS(e, t) {
- if (!OS()) return t && e ? e.contains(t) : !1;
+function FS(e, t) {
+ if (!PS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : TS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : jS(n) ? n.host : n.parentNode;
}
return !1;
}
-var AS = (e = document) => {
- if (!OS()) return e.activeElement;
+var IS = (e = document) => {
+ if (!PS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (OS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (PS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function jS(e, t) {
+function LS(e, t) {
if (t === null) return [];
- t ??= CS(e);
+ t ??= kS(e);
let n = [t];
- if (!OS() || !e || e === t) return n;
+ if (!PS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; TS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; jS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function MS(e) {
+function RS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = CS(e);
+ let t = e.getRootNode(), n = kS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var uae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function dae(e) {
- let t = CS(e);
+var iae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function aae(e) {
+ let t = kS(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = CS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = kS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function fae(e, t) {
+function oae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function NS(e, t) {
- return uae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && dae(e) && fae(e, t) && (!e.parentElement || NS(e.parentElement, e));
+function zS(e, t) {
+ return iae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && aae(e) && oae(e, t) && (!e.parentElement || zS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var PS = [
+var BS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22464,39 +22464,39 @@ var PS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], pae = PS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-PS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var mae = PS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function FS(e, t) {
- return e.matches(pae) && !LS(e) && (t?.skipVisibilityCheck || NS(e));
+], sae = BS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+BS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var cae = BS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function VS(e, t) {
+ return e.matches(sae) && !US(e) && (t?.skipVisibilityCheck || zS(e));
}
-function IS(e) {
- return e.matches(mae) && NS(e) && !LS(e);
+function HS(e) {
+ return e.matches(cae) && zS(e) && !US(e);
}
-function LS(e) {
+function US(e) {
let t = e;
for (; t != null;) {
- if (t instanceof CS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof kS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var RS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var WS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function zS(e) {
+function GS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function BS(e, t) {
+function KS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function VS(e) {
+function qS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return RS(() => {
+ return WS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22508,14 +22508,14 @@ function VS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = zS(r);
+ let t = GS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === AS() ? null : AS();
+ let e = n === IS() ? null : IS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22528,80 +22528,80 @@ function VS(e) {
}
}, [e]);
}
-var HS = !1;
-function hae(e) {
- for (; e && !FS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = AS(CS(e).document);
+var JS = !1;
+function lae(e) {
+ for (; e && !VS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = IS(kS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && TS(n) ? n : CS(e), i = (t) => t === e || wS(t) && kS(e, t), a = (e) => e === t || t != null && wS(e) && kS(t, e);
- HS = !0;
+ let n = e?.getRootNode(), r = n != null && jS(n) ? n : kS(e), i = (t) => t === e || AS(t) && FS(e, t), a = (e) => e === t || t != null && AS(e) && FS(t, e);
+ JS = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, DS(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, DS(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), HS = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), JS = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function US(e) {
+function YS(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function WS(e) {
+function XS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function GS(e) {
+function ZS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var KS = GS(function() {
- return WS(/^Mac/i);
-}), gae = GS(function() {
- return WS(/^iPhone/i);
-}), qS = GS(function() {
- return WS(/^iPad/i) || KS() && navigator.maxTouchPoints > 1;
-}), JS = GS(function() {
- return gae() || qS();
-}), _ae = GS(function() {
- return KS() || JS();
-}), YS = GS(function() {
- return US(/AppleWebKit/i) && (JS() || !XS());
-}), XS = GS(function() {
- return US(/Chrome|CriOS|CrMo/i);
-}), ZS = GS(function() {
- return US(/Android/i);
+var QS = ZS(function() {
+ return XS(/^Mac/i);
+}), uae = ZS(function() {
+ return XS(/^iPhone/i);
+}), $S = ZS(function() {
+ return XS(/^iPad/i) || QS() && navigator.maxTouchPoints > 1;
+}), eC = ZS(function() {
+ return uae() || $S();
+}), dae = ZS(function() {
+ return QS() || eC();
+}), tC = ZS(function() {
+ return YS(/AppleWebKit/i) && (eC() || !nC());
+}), nC = ZS(function() {
+ return YS(/Chrome|CriOS|CrMo/i);
+}), rC = ZS(function() {
+ return YS(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function QS(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : ZS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function iC(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : rC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function vae(e) {
- return !ZS() && e.width === 0 && e.height === 0 || ZS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function fae(e) {
+ return !rC() && e.width === 0 && e.height === 0 || rC() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var yae = /*#__PURE__*/ (0, F.createContext)({
+var pae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: Sae,
+ open: gae,
useHref: (e) => e
});
-function $S() {
- return (0, F.useContext)(yae);
+function aC() {
+ return (0, F.useContext)(pae);
}
-function bae(e, t) {
+function mae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function eC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = YS() && KS() && !qS() ? new KeyboardEvent("keydown", {
+function oC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = tC() && QS() && !$S() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22616,21 +22616,21 @@ function eC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- eC.isOpening = n, xS(e), e.dispatchEvent(s), eC.isOpening = !1;
+ oC.isOpening = n, DS(e), e.dispatchEvent(s), oC.isOpening = !1;
}
-eC.isOpening = !1;
-function xae(e, t) {
+oC.isOpening = !1;
+function hae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Sae(e, t) {
- xae(e, (e) => eC(e, t));
+function gae(e, t) {
+ hae(e, (e) => oC(e, t));
}
-function tC(e) {
- let t = $S().useHref(e.href ?? "");
+function sC(e) {
+ let t = aC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22640,8 +22640,8 @@ function tC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function nC(e) {
- let t = $S().useHref(e?.href ?? ""), n = {};
+function cC(e) {
+ let t = aC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22652,138 +22652,138 @@ function nC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Cae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && bae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function _ae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && mae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var rC = {
+var lC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, iC = /*#__PURE__*/ F.createContext(rC), wae = /*#__PURE__*/ F.createContext(!1);
+}, uC = /*#__PURE__*/ F.createContext(lC), vae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var aC = /* @__PURE__ */ new WeakMap();
-function Tae(e = !1) {
- let t = (0, F.useContext)(iC), n = (0, F.useRef)(null);
+var dC = /* @__PURE__ */ new WeakMap();
+function yae(e = !1) {
+ let t = (0, F.useContext)(uC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = aC.get(e);
- n == null ? aC.set(e, {
+ let n = dC.get(e);
+ n == null ? dC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, aC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, dC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Eae(e) {
- let t = (0, F.useContext)(iC), n = Tae(!!e), r = `react-aria${t.prefix}`;
+function bae(e) {
+ let t = (0, F.useContext)(uC), n = yae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Dae(e) {
- let t = F.useId(), [n] = (0, F.useState)(oC()), r = n ? "react-aria" : `react-aria${rC.prefix}`;
+function xae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(fC()), r = n ? "react-aria" : `react-aria${lC.prefix}`;
return e || `${r}-${t}`;
}
-var Oae = typeof F.useId == "function" ? Dae : Eae;
-function kae() {
+var Sae = typeof F.useId == "function" ? xae : bae;
+function Cae() {
return !1;
}
-function Aae() {
+function wae() {
return !0;
}
-function jae(e) {
+function Tae(e) {
return () => {};
}
-function oC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(jae, kae, Aae) : (0, F.useContext)(wae);
+function fC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Tae, Cae, wae) : (0, F.useContext)(vae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var sC = null, cC = /* @__PURE__ */ new Set(), lC = /* @__PURE__ */ new Map(), uC = !1, dC = !1, Mae = {
+var pC = null, mC = /* @__PURE__ */ new Set(), hC = /* @__PURE__ */ new Map(), gC = !1, _C = !1, Eae = {
Tab: !0,
Escape: !0
};
-function fC(e, t) {
- for (let n of cC) n(e, t);
+function vC(e, t) {
+ for (let n of mC) n(e, t);
}
-function Nae(e) {
- return !(e.metaKey || !KS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Dae(e) {
+ return !(e.metaKey || !QS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function pC(e) {
- uC = !0, !eC.isOpening && Nae(e) && (sC = "keyboard", fC("keyboard", e));
+function yC(e) {
+ gC = !0, !oC.isOpening && Dae(e) && (pC = "keyboard", vC("keyboard", e));
}
-function mC(e) {
- sC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (uC = !0, fC("pointer", e));
+function bC(e) {
+ pC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (gC = !0, vC("pointer", e));
}
-function hC(e) {
- !eC.isOpening && QS(e) && (uC = !0, sC = "virtual");
+function xC(e) {
+ !oC.isOpening && iC(e) && (gC = !0, pC = "virtual");
}
-function gC(e) {
- if (HS) return;
- let t = G(e), n = CS(t), r = SS(t);
- t === n ? dC = !0 : t !== r && e.isTrusted && (!uC && !dC && (sC = "virtual", fC("virtual", e)), uC = !1, dC = !1);
+function SC(e) {
+ if (JS) return;
+ let t = G(e), n = kS(t), r = OS(t);
+ t === n ? _C = !0 : t !== r && e.isTrusted && (!gC && !_C && (pC = "virtual", vC("virtual", e)), gC = !1, _C = !1);
}
-function _C() {
- HS || (uC = !1, dC = !0);
+function CC() {
+ JS || (gC = !1, _C = !0);
}
-function vC(e) {
- let t = AS(SS(G(e)));
+function wC(e) {
+ let t = IS(OS(G(e)));
queueMicrotask(() => {
- AS(SS(G(e))) !== t && CC("keyboard");
+ IS(OS(G(e))) !== t && kC("keyboard");
});
}
-function yC(e) {
+function TC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = CS(e), n = SS(e);
- if (lC.get(t)) return;
+ let t = kS(e), n = OS(e);
+ if (hC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- uC = !0, r.apply(this, arguments);
+ gC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", pC, !0), n.addEventListener("keyup", pC, !0), n.addEventListener("click", hC, !0), n.addEventListener("invalid", vC, !0), t.addEventListener("focus", gC, !0), t.addEventListener("blur", _C, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", mC, !0), n.addEventListener("pointermove", mC, !0), n.addEventListener("pointerup", mC, !0)), t.addEventListener("beforeunload", () => {
- bC(e);
- }, { once: !0 }), lC.set(t, { focus: r });
+ }), n.addEventListener("keydown", yC, !0), n.addEventListener("keyup", yC, !0), n.addEventListener("click", xC, !0), n.addEventListener("invalid", wC, !0), t.addEventListener("focus", SC, !0), t.addEventListener("blur", CC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", bC, !0), n.addEventListener("pointermove", bC, !0), n.addEventListener("pointerup", bC, !0)), t.addEventListener("beforeunload", () => {
+ EC(e);
+ }, { once: !0 }), hC.set(t, { focus: r });
}
-var bC = (e, t) => {
- let n = CS(e), r = SS(e);
- t && r.removeEventListener("DOMContentLoaded", t), lC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var EC = (e, t) => {
+ let n = kS(e), r = OS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), hC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: lC.get(n).focus
- }), r.removeEventListener("keydown", pC, !0), r.removeEventListener("keyup", pC, !0), r.removeEventListener("click", hC, !0), r.removeEventListener("invalid", vC, !0), n.removeEventListener("focus", gC, !0), n.removeEventListener("blur", _C, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", mC, !0), r.removeEventListener("pointermove", mC, !0), r.removeEventListener("pointerup", mC, !0)), lC.delete(n));
+ value: hC.get(n).focus
+ }), r.removeEventListener("keydown", yC, !0), r.removeEventListener("keyup", yC, !0), r.removeEventListener("click", xC, !0), r.removeEventListener("invalid", wC, !0), n.removeEventListener("focus", SC, !0), n.removeEventListener("blur", CC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", bC, !0), r.removeEventListener("pointermove", bC, !0), r.removeEventListener("pointerup", bC, !0)), hC.delete(n));
};
-function Pae(e) {
- let t = SS(e), n;
+function Oae(e) {
+ let t = OS(e), n;
return t.readyState === "loading" ? (n = () => {
- yC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : yC(e), () => bC(e, n);
+ TC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : TC(e), () => EC(e, n);
}
-typeof document < "u" && Pae();
-function xC() {
- return sC !== "pointer";
+typeof document < "u" && Oae();
+function DC() {
+ return pC !== "pointer";
}
-function SC() {
- return sC;
+function OC() {
+ return pC;
}
-function CC(e) {
- sC = e, fC(e, null);
+function kC(e) {
+ pC = e, vC(e, null);
}
-function wC() {
- yC();
- let [e, t] = (0, F.useState)(sC);
+function AC() {
+ TC();
+ let [e, t] = (0, F.useState)(pC);
return (0, F.useEffect)(() => {
let e = () => {
- t(sC);
+ t(pC);
};
- return cC.add(e), () => {
- cC.delete(e);
+ return mC.add(e), () => {
+ mC.delete(e);
};
- }, []), oC() ? null : e;
+ }, []), fC() ? null : e;
}
-var Fae = /* @__PURE__ */ new Set([
+var kae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22794,107 +22794,107 @@ var Fae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Iae(e, t, n) {
- let r = n ? G(n) : void 0, i = SS(r), a = CS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = AS(i);
- return e = e || u instanceof o && !Fae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Mae[n.key]);
+function Aae(e, t, n) {
+ let r = n ? G(n) : void 0, i = OS(r), a = kS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = IS(i);
+ return e = e || u instanceof o && !kae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Eae[n.key]);
}
-function TC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || xC());
- return EC((e) => {
+function jC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || DC());
+ return MC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function EC(e, t, n) {
- yC(), (0, F.useEffect)(() => {
+function MC(e, t, n) {
+ TC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Iae(!!n?.isTextInput, t, r) && e(xC());
+ Aae(!!n?.isTextInput, t, r) && e(DC());
};
- return cC.add(t), () => {
- cC.delete(t);
+ return mC.add(t), () => {
+ mC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var DC = /* @__PURE__ */ new Map(), OC = /* @__PURE__ */ new Set();
-function kC(e) {
+var NC = /* @__PURE__ */ new Map(), PC = /* @__PURE__ */ new Set();
+function FC(e) {
return "propertyName" in e;
}
-function Lae(e) {
+function jae(e) {
let t = G(e);
- if (!kC(e) || !t) return;
- let n = DC.get(t);
- n || (n = /* @__PURE__ */ new Set(), DC.set(t, n), t.addEventListener("transitioncancel", AC, { once: !0 })), n.add(e.propertyName);
+ if (!FC(e) || !t) return;
+ let n = NC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), NC.set(t, n), t.addEventListener("transitioncancel", IC, { once: !0 })), n.add(e.propertyName);
}
-function AC(e) {
+function IC(e) {
let t = G(e);
- if (!kC(e) || !t) return;
- let n = DC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", AC), DC.delete(t)), DC.size === 0)) for (let e of OC) e(!0), OC.delete(e);
+ if (!FC(e) || !t) return;
+ let n = NC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", IC), NC.delete(t)), NC.size === 0)) for (let e of PC) e(!0), PC.delete(e);
}
-function jC() {
- ES(document, "transitionrun", Lae), ES(document, "transitionend", AC);
+function LC() {
+ MS(document, "transitionrun", jae), MS(document, "transitionend", IC);
}
-function Rae() {
- for (let [e] of DC) "isConnected" in e && !e.isConnected && DC.delete(e);
+function Mae() {
+ for (let [e] of NC) "isConnected" in e && !e.isConnected && NC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? ES(document, "DOMContentLoaded", jC) : jC());
-function MC(e) {
+typeof document < "u" && (document.readyState === "loading" ? MS(document, "DOMContentLoaded", LC) : LC());
+function RC(e) {
let t = window.requestAnimationFrame(() => {
- if (Rae(), DC.size === 0) return e(!1);
- OC.add(e);
+ if (Mae(), NC.size === 0) return e(!1);
+ PC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), OC.delete(e);
+ window.cancelAnimationFrame(t), PC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function NC(e) {
+function zC(e) {
if (!e.isConnected) return;
- let t = SS(e);
- if (SC() === "virtual") {
- let n = AS(t);
- MC(() => {
- let r = AS(t);
- (r === n || r === t.body) && e.isConnected && xS(e);
+ let t = OS(e);
+ if (OC() === "virtual") {
+ let n = IS(t);
+ RC(() => {
+ let r = IS(t);
+ (r === n || r === t.body) && e.isConnected && DS(e);
});
- } else xS(e);
+ } else DS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function PC(...e) {
+function BC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function zae(e) {
+function Nae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return RS(() => {
+ return WS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Bae = !!(typeof window < "u" && window.document && window.document.createElement), FC = /* @__PURE__ */ new Map(), IC;
-typeof FinalizationRegistry < "u" && (IC = new FinalizationRegistry((e) => {
- FC.delete(e);
+var Pae = !!(typeof window < "u" && window.document && window.document.createElement), VC = /* @__PURE__ */ new Map(), HC;
+typeof FinalizationRegistry < "u" && (HC = new FinalizationRegistry((e) => {
+ VC.delete(e);
}));
-var LC = /* @__PURE__ */ new WeakMap();
-function RC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Oae(t), a = (0, F.useRef)(null), o = LC.get(a);
- if (IC && o !== i && (o != null && IC.unregister(a), IC.register(a, i, a), LC.set(a, i)), Bae) {
- let e = FC.get(i);
- e && !e.includes(r) ? e.push(r) : FC.set(i, [r]);
+var UC = /* @__PURE__ */ new WeakMap();
+function WC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Sae(t), a = (0, F.useRef)(null), o = UC.get(a);
+ if (HC && o !== i && (o != null && HC.unregister(a), HC.register(a, i, a), UC.set(a, i)), Pae) {
+ let e = VC.get(i);
+ e && !e.includes(r) ? e.push(r) : VC.set(i, [r]);
}
- return RS(() => {
+ return WS(() => {
let e = i;
return () => {
- IC && (IC.unregister(a), LC.delete(a)), FC.delete(e);
+ HC && (HC.unregister(a), UC.delete(a)), VC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22903,57 +22903,57 @@ function RC(e) {
};
}), i;
}
-function Vae(e, t) {
+function Fae(e, t) {
if (e === t) return e;
- let n = FC.get(e);
+ let n = VC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = FC.get(t);
+ let r = VC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function zC(e = []) {
- let t = RC(), [n, r] = zae(t), i = (0, F.useCallback)(() => {
+function GC(e = []) {
+ let t = WC(), [n, r] = Nae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return RS(i, [
+ return WS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function BC(...e) {
+function KC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = VC(e, t);
+ let r = qC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : VC(e[n], null);
+ typeof t == "function" ? t() : qC(e[n], null);
});
};
};
}
-function VC(e, t) {
+function qC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function HC(e) {
+function JC(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = HC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = JC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function UC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = HC(e)) && (r && (r += " "), r += t);
+function YC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = JC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -22963,17 +22963,17 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = PC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = UC(n, i) : e === "id" && n && i ? t.id = Vae(n, i) : e === "ref" && n && i ? t.ref = BC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = BC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = YC(n, i) : e === "id" && n && i ? t.id = Fae(n, i) : e === "ref" && n && i ? t.ref = KC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function WC(e) {
+function XC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = VS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = SS(t), a = r ? AS(r) : AS();
+ }, [r, i]), o = qS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = OS(t), a = r ? IS(r) : IS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -22986,7 +22986,7 @@ function WC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function GC(e) {
+function ZC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23010,33 +23010,33 @@ function GC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Hae = /* @__PURE__ */ new Set([
+var Iae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Uae = [
+]), Lae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Wae(e) {
+function Rae(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(KS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(QS() ? "Meta" : "Control"), t;
}
-function Gae(e) {
+function zae(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function KC(e) {
- return Uae.filter((t) => e.has(t));
+function QC(e) {
+ return Lae.filter((t) => e.has(t));
}
-function Kae(e) {
+function Bae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Hae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Iae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -23048,10 +23048,10 @@ function Kae(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function qC(e) {
+function $C(e) {
return e.toLowerCase();
}
-var qae = {
+var Vae = {
space: " ",
esc: "escape",
del: "delete",
@@ -23063,26 +23063,26 @@ var qae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Jae(e) {
- let t = qC(e);
- return qae[t] ?? t;
+function Hae(e) {
+ let t = $C(e);
+ return Vae[t] ?? t;
}
-function Yae(e) {
- let t = KC(Wae(e)), n = Jae(e.key);
+function Uae(e) {
+ let t = QC(Rae(e)), n = Hae(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function Xae(e) {
- let t = KC(Gae(e)), n = qC(e.key);
+function Wae(e) {
+ let t = QC(zae(e)), n = $C(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Zae(e) {
+function Gae(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Kae(n);
- t.set(Yae(e), r);
+ let e = Bae(n);
+ t.set(Uae(e), r);
}
return (e) => {
- let n = Xae(e), r = t.get(n), i = r?.(e);
+ let n = Wae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23093,23 +23093,23 @@ function Zae(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function JC(e) {
+function ew(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Zae(t), s = GC((e) => {
- kS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = GC((e) => {
- kS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Gae(t), s = ZC((e) => {
+ FS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = ZC((e) => {
+ FS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? PC(e.onKeyDown, s) : s, a = e.onKeyUp ? PC(e.onKeyUp, c) : c;
- } else i = GC(e.onKeyDown), a = GC(e.onKeyUp);
+ i = e.onKeyDown ? BC(e.onKeyDown, s) : s, a = e.onKeyUp ? BC(e.onKeyUp, c) : c;
+ } else i = ZC(e.onKeyDown), a = ZC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function YC(e) {
+function tw(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23131,25 +23131,25 @@ function YC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function XC(e, t) {
- RS(() => {
+function nw(e, t) {
+ WS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var ZC = /*#__PURE__*/ F.createContext(null);
-function Qae(e) {
- let t = (0, F.useContext)(ZC) || {};
- XC(t, e);
+var rw = /*#__PURE__*/ F.createContext(null);
+function Kae(e) {
+ let t = (0, F.useContext)(rw) || {};
+ nw(t, e);
let { ref: n, ...r } = t;
return r;
}
-function QC(e, t) {
- let { focusProps: n } = WC(e), { keyboardProps: r } = JC(e), i = K(n, r), a = Qae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function iw(e, t) {
+ let { focusProps: n } = XC(e), { keyboardProps: r } = ew(e), i = K(n, r), a = Kae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && NC(t.current), s.current = !1;
+ s.current && t.current && zC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23183,21 +23183,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var $C = /*#__PURE__*/ (0, F.createContext)(!1);
-function $ae(e) {
- if ((0, F.useContext)($C)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement($C.Provider, { value: !0 }, e.children);
+var aw = /*#__PURE__*/ (0, F.createContext)(!1);
+function qae(e) {
+ if ((0, F.useContext)(aw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(aw.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function ew(e) {
- let t = (t, n) => (0, F.useContext)($C) ? null : e(t, n);
+function ow(e) {
+ let t = (t, n) => (0, F.useContext)(aw) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function tw() {
- return (0, F.useContext)($C);
+function sw() {
+ return (0, F.useContext)(aw);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var eoe = /* @__PURE__ */ o(((e) => {
+var Jae = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23235,47 +23235,47 @@ var eoe = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), nw = /* @__PURE__ */ o(((e, t) => {
- t.exports = eoe();
-})), toe = nw(), rw = /*#__PURE__*/ (0, F.createContext)(!1), iw = /*#__PURE__*/ (0, F.createContext)(null);
-function aw(e) {
- if ((0, F.useContext)(iw)) return e.content;
- let { collection: t, document: n } = aoe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement($ae, null, /*#__PURE__*/ F.createElement(iw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(noe, {
+})), cw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Jae();
+})), Yae = cw(), lw = /*#__PURE__*/ (0, F.createContext)(!1), uw = /*#__PURE__*/ (0, F.createContext)(null);
+function dw(e) {
+ if ((0, F.useContext)(uw)) return e.content;
+ let { collection: t, document: n } = $ae(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(qae, null, /*#__PURE__*/ F.createElement(uw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Xae, {
render: e.children,
collection: t
}));
}
-function noe({ collection: e, render: t }) {
+function Xae({ collection: e, render: t }) {
return t(e);
}
-function roe(e, t, n) {
- let r = oC(), i = (0, F.useRef)(r);
+function Zae(e, t, n) {
+ let r = fC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, toe.useSyncExternalStore)(e, a);
+ return (0, Yae.useSyncExternalStore)(e, a);
}
-var ioe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : roe;
-function aoe(e) {
- let [t] = (0, F.useState)(() => new aae(e?.() || new gS()));
+var Qae = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : Zae;
+function $ae(e) {
+ let [t] = (0, F.useState)(() => new $ie(e?.() || new SS()));
return {
- collection: ioe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: Qae((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var ow = /*#__PURE__*/ (0, F.createContext)(null);
-function ooe(e) {
- return class extends fS {
+var fw = /*#__PURE__*/ (0, F.createContext)(null);
+function eoe(e) {
+ return class extends vS {
static {
this.type = e;
}
};
}
-function sw(e, t, n, r, i, a) {
- typeof e == "string" && (e = ooe(e));
+function pw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = eoe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23284,82 +23284,82 @@ function sw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(ow);
+ ]), s = (0, F.useContext)(fw);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(ow.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(fw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function cw(e, t) {
+function mw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(ZC);
- if (!(0, F.useContext)(rw)) {
+ let a = (0, F.useContext)(rw);
+ if (!(0, F.useContext)(lw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return sw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(ZC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return pw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(rw.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function lw(e, t, n = uw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => sw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function hw(e, t, n = gw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => pw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function uw(e) {
- return bS({
+function gw(e) {
+ return ES({
...e,
addIdAndValue: !0
});
}
-var dw = /*#__PURE__*/ (0, F.createContext)(null);
-function fw(e) {
- let t = (0, F.useContext)(dw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = uw({
+var _w = /*#__PURE__*/ (0, F.createContext)(null);
+function vw(e) {
+ let t = (0, F.useContext)(_w), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = gw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(iw) && (i = /*#__PURE__*/ F.createElement(soe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(uw) && (i = /*#__PURE__*/ F.createElement(toe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(dw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(_w.Provider, { value: t }, i);
}
-function soe({ children: e }) {
- let t = (0, F.useContext)(iw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(iw.Provider, { value: null }, /*#__PURE__*/ F.createElement(rw.Provider, { value: !0 }, e)), [e]);
- return oC() ? /*#__PURE__*/ F.createElement(ow.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
+function toe({ children: e }) {
+ let t = (0, F.useContext)(uw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(uw.Provider, { value: null }, /*#__PURE__*/ F.createElement(lw.Provider, { value: !0 }, e)), [e]);
+ return fC() ? /*#__PURE__*/ F.createElement(fw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var coe = "react-aria-clear-focus", loe = "react-aria-focus";
+var noe = "react-aria-clear-focus", roe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function pw(e) {
- let t = doe(SS(e));
- t !== e && (t && uoe(t, e), e && mw(e, t));
+function yw(e) {
+ let t = aoe(OS(e));
+ t !== e && (t && ioe(t, e), e && bw(e, t));
}
-function uoe(e, t) {
+function ioe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function mw(e, t) {
+function bw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function doe(e) {
- let t = AS(e), n = t?.getAttribute("aria-activedescendant");
+function aoe(e) {
+ let t = IS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function hw(e, t) {
- let n = CS(t), r = SS(t);
+function xw(e, t) {
+ let n = kS(t), r = OS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var gw = 100, _w = 600, vw = {
+var Sw = 100, Cw = 600, ww = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23369,7 +23369,7 @@ var gw = 100, _w = 600, vw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, foe = /* @__PURE__ */ new Set([
+}, ooe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23380,7 +23380,7 @@ var gw = 100, _w = 600, vw = {
"submit",
"reset"
]);
-function yw() {
+function Tw() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -23388,58 +23388,58 @@ function yw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function poe(e) {
- vw.resizeTimeStamp <= e.timeStamp + 50 && (vw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(vw.resizeTimeout), vw.resizeTimeout = window.setTimeout(bw, 150));
+function soe(e) {
+ ww.resizeTimeStamp <= e.timeStamp + 50 && (ww.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(ww.resizeTimeout), ww.resizeTimeout = window.setTimeout(Ew, 150));
}
-function bw() {
- let e = hw("viewport");
- if (ZS() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = yw(), r = t - vw.startTimeStamp, i = vw.screenHeight - n.height, a = vw.screenAngle - n.angle;
- Math.abs(a) % 180 && vw.screenWidth - n.height < gw && (vw.screenWidth = n.width, vw.screenHeight = n.height, vw.screenAngle = n.angle, i = 0), r > _w && (window.clearTimeout(vw.screenTimeout), vw.screenTimeout = window.setTimeout(() => {
- let e = Cw(document.hasFocus() ? AS() : null), t = yw();
- Math.abs(vw.screenAngle - t.angle) % 180 || vw.isOpen && e || (vw.screenWidth = t.width, vw.screenHeight = t.height, vw.screenAngle = t.angle, vw.isOpen = !1);
- }, _w)), r <= _w && i >= gw && (vw.endTimeStamp = t), vw.isOpen = i >= gw;
+function Ew() {
+ let e = xw("viewport");
+ if (rC() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = Tw(), r = t - ww.startTimeStamp, i = ww.screenHeight - n.height, a = ww.screenAngle - n.angle;
+ Math.abs(a) % 180 && ww.screenWidth - n.height < Sw && (ww.screenWidth = n.width, ww.screenHeight = n.height, ww.screenAngle = n.angle, i = 0), r > Cw && (window.clearTimeout(ww.screenTimeout), ww.screenTimeout = window.setTimeout(() => {
+ let e = kw(document.hasFocus() ? IS() : null), t = Tw();
+ Math.abs(ww.screenAngle - t.angle) % 180 || ww.isOpen && e || (ww.screenWidth = t.width, ww.screenHeight = t.height, ww.screenAngle = t.angle, ww.isOpen = !1);
+ }, Cw)), r <= Cw && i >= Sw && (ww.endTimeStamp = t), ww.isOpen = i >= Sw;
}
-function moe() {
- let e = yw(), t = vw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !vw.isOpen) {
- let e = vw.screenWidth;
- vw.screenWidth = vw.screenHeight, vw.screenHeight = e;
+function coe() {
+ let e = Tw(), t = ww.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !ww.isOpen) {
+ let e = ww.screenWidth;
+ ww.screenWidth = ww.screenHeight, ww.screenHeight = e;
}
- vw.isOpen || (vw.screenAngle = e.angle);
+ ww.isOpen || (ww.screenAngle = e.angle);
}
-function hoe(e) {
- let t = Cw(G(e)), n = performance.now(), r = yw(), i = vw.screenHeight - r.height;
- i < gw && t && (vw.screenWidth = r.width, vw.screenHeight = r.height, vw.screenAngle = r.angle, vw.startTimeStamp = n), t && window.clearTimeout(vw.screenTimeout), i >= gw && t && (vw.endTimeStamp = n);
+function loe(e) {
+ let t = kw(G(e)), n = performance.now(), r = Tw(), i = ww.screenHeight - r.height;
+ i < Sw && t && (ww.screenWidth = r.width, ww.screenHeight = r.height, ww.screenAngle = r.angle, ww.startTimeStamp = n), t && window.clearTimeout(ww.screenTimeout), i >= Sw && t && (ww.endTimeStamp = n);
}
-function xw() {
- let e = yw();
- ES(window.visualViewport, "resize", YS() ? bw : poe), ES(window.screen.orientation, "change", moe), ES(window, "focus", hoe, {
+function Dw() {
+ let e = Tw();
+ MS(window.visualViewport, "resize", tC() ? Ew : soe), MS(window.screen.orientation, "change", coe), MS(window, "focus", loe, {
capture: !0,
passive: !0
- }), vw.screenWidth = e.width, vw.screenHeight = e.height, vw.screenAngle = e.angle;
+ }), ww.screenWidth = e.width, ww.screenHeight = e.height, ww.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? ES(document, "DOMContentLoaded", xw) : xw());
-function Sw() {
- let e = hw("viewport");
- return ZS() && e?.includes("overlays-content") ? !1 : vw.isOpen ? !0 : vw.startTimeStamp ? vw.endTimeStamp >= vw.startTimeStamp ? !0 : performance.now() - vw.startTimeStamp <= _w ? vw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? MS(document, "DOMContentLoaded", Dw) : Dw());
+function Ow() {
+ let e = xw("viewport");
+ return rC() && e?.includes("overlays-content") ? !1 : ww.isOpen ? !0 : ww.startTimeStamp ? ww.endTimeStamp >= ww.startTimeStamp ? !0 : performance.now() - ww.startTimeStamp <= Cw ? ww.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Cw(e) {
- if (!(e instanceof Element) || !FS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !foe.has(e.type);
+function kw(e) {
+ if (!(e instanceof Element) || !VS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !ooe.has(e.type);
return t || n || r;
}
-function ww(e) {
- return KS() ? e.metaKey : e.ctrlKey;
+function Aw(e) {
+ return QS() ? e.metaKey : e.ctrlKey;
}
-function Tw() {
- return vw.isOpen;
+function jw() {
+ return ww.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var goe = F.useInsertionEffect ?? RS;
-function Ew(e) {
+var uoe = F.useInsertionEffect ?? WS;
+function Mw(e) {
let t = (0, F.useRef)(null);
- return goe(() => {
+ return uoe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23447,10 +23447,10 @@ function Ew(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Dw(e, t, n, r) {
- let i = Ew(n), a = n == null;
+function Nw(e, t, n, r) {
+ let i = Mw(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return ES(e.current, t, i, r);
+ if (!(a || e.current == null)) return MS(e.current, t, i, r);
}, [
e,
t,
@@ -23459,16 +23459,16 @@ function Dw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Ow(e, t) {
+function Pw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = RC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = WC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var _oe = /* @__PURE__ */ new Set([
+var doe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23479,7 +23479,7 @@ var _oe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), voe = /* @__PURE__ */ new Set([
+]), foe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23500,19 +23500,19 @@ var _oe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function yoe(e) {
+function poe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return _oe.has(t.script);
+ if (t.script) return doe.has(t.script);
}
let t = e.split("-")[0];
- return voe.has(t);
+ return foe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var kw = Symbol.for("react-aria.i18n.locale");
-function Aw() {
- let e = typeof window < "u" && window[kw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Fw = Symbol.for("react-aria.i18n.locale");
+function Iw() {
+ let e = typeof window < "u" && window[Fw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23520,31 +23520,31 @@ function Aw() {
}
return {
locale: e,
- direction: yoe(e) ? "rtl" : "ltr"
+ direction: poe(e) ? "rtl" : "ltr"
};
}
-var jw = Aw(), Mw = /* @__PURE__ */ new Set();
-function Nw() {
- jw = Aw();
- for (let e of Mw) e(jw);
+var Lw = Iw(), Rw = /* @__PURE__ */ new Set();
+function zw() {
+ Lw = Iw();
+ for (let e of Rw) e(Lw);
}
-function boe() {
- let e = oC(), [t, n] = (0, F.useState)(jw);
- return (0, F.useEffect)(() => (Mw.size === 0 && window.addEventListener("languagechange", Nw), Mw.add(n), () => {
- Mw.delete(n), Mw.size === 0 && window.removeEventListener("languagechange", Nw);
+function moe() {
+ let e = fC(), [t, n] = (0, F.useState)(Lw);
+ return (0, F.useEffect)(() => (Rw.size === 0 && window.addEventListener("languagechange", zw), Rw.add(n), () => {
+ Rw.delete(n), Rw.size === 0 && window.removeEventListener("languagechange", zw);
}), []), e ? {
- locale: typeof window < "u" && window[kw] || "en-US",
+ locale: typeof window < "u" && window[Fw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var xoe = /*#__PURE__*/ F.createContext(null);
-function Pw() {
- let e = boe();
- return (0, F.useContext)(xoe) || e;
+var hoe = /*#__PURE__*/ F.createContext(null);
+function Bw() {
+ let e = moe();
+ return (0, F.useContext)(hoe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Soe = Symbol.for("react-aria.i18n.locale"), Coe = Symbol.for("react-aria.i18n.strings"), Fw = void 0, Iw = class e {
+var goe = Symbol.for("react-aria.i18n.locale"), _oe = Symbol.for("react-aria.i18n.strings"), Vw = void 0, Hw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23555,38 +23555,38 @@ var Soe = Symbol.for("react-aria.i18n.locale"), Coe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = woe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = voe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Soe];
- if (Fw === void 0) {
- let t = window[Coe];
+ let n = window[goe];
+ if (Vw === void 0) {
+ let t = window[_oe];
if (!t) return null;
- Fw = {};
- for (let r in t) Fw[r] = new e({ [n]: t[r] }, n);
+ Vw = {};
+ for (let r in t) Vw[r] = new e({ [n]: t[r] }, n);
}
- let r = Fw?.[t];
+ let r = Vw?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function woe(e, t, n = "en-US") {
+function voe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Toe(e), i = Eoe(e);
+ let r = yoe(e), i = boe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Toe(e) {
+function yoe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Eoe(e) {
+function boe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Lw = /* @__PURE__ */ new Map(), Rw = /* @__PURE__ */ new Map(), Doe = class {
+var Uw = /* @__PURE__ */ new Map(), Ww = /* @__PURE__ */ new Map(), xoe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23597,36 +23597,36 @@ var Lw = /* @__PURE__ */ new Map(), Rw = /* @__PURE__ */ new Map(), Doe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Lw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Lw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Uw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Uw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Rw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Rw.set(this.locale, t)), t.format(e);
+ let t = Ww.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Ww.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, zw = /* @__PURE__ */ new WeakMap();
-function Ooe(e) {
- let t = zw.get(e);
- return t || (t = new Iw(e), zw.set(e, t)), t;
+}, Gw = /* @__PURE__ */ new WeakMap();
+function Soe(e) {
+ let t = Gw.get(e);
+ return t || (t = new Hw(e), Gw.set(e, t)), t;
}
-function Bw(e, t) {
- return t && Iw.getGlobalDictionaryForPackage(t) || Ooe(e);
+function Coe(e, t) {
+ return t && Hw.getGlobalDictionaryForPackage(t) || Soe(e);
}
-function Vw(e, t) {
- let { locale: n } = Pw(), r = Bw(e, t);
- return (0, F.useMemo)(() => new Doe(n, r), [n, r]);
+function Kw(e, t) {
+ let { locale: n } = Bw(), r = Coe(e, t);
+ return (0, F.useMemo)(() => new xoe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Hw = /* @__PURE__ */ new Set(["id"]), koe = /* @__PURE__ */ new Set([
+var woe = /* @__PURE__ */ new Set(["id"]), Toe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Aoe = /* @__PURE__ */ new Set([
+]), Eoe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23634,60 +23634,60 @@ var Hw = /* @__PURE__ */ new Set(["id"]), koe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), joe = /* @__PURE__ */ new Set([
+]), Doe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Uw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Moe = /^(data-.*)$/;
-function Ww(e, t = {}) {
+]), qw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Ooe = /^(data-.*)$/;
+function Jw(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Hw.has(t) || n && koe.has(t) || r && Aoe.has(t) || i && joe.has(t) || a && (Uw.has(t) || t.endsWith("Capture") && Uw.has(t.slice(0, -7))) || o?.has(t) || Moe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (woe.has(t) || n && Toe.has(t) || r && Eoe.has(t) || i && Doe.has(t) || a && (qw.has(t) || t.endsWith("Capture") && qw.has(t.slice(0, -7))) || o?.has(t) || Ooe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Gw = "default", Kw = "", qw = /* @__PURE__ */ new WeakMap();
-function Jw(e) {
- if (JS() && YS()) {
- if (Gw === "default") {
- let t = SS(e);
- Kw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Gw = "disabled";
+var Yw = "default", Xw = "", Zw = /* @__PURE__ */ new WeakMap();
+function Qw(e) {
+ if (eC() && tC()) {
+ if (Yw === "default") {
+ let t = OS(e);
+ Xw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Yw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- qw.set(e, e.style[t]), e.style[t] = "none";
+ Zw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Yw(e) {
- if (JS() && YS()) {
- if (Gw !== "disabled") return;
- Gw = "restoring", setTimeout(() => {
- MC(() => {
- if (Gw === "restoring") {
- let t = SS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Kw || ""), Kw = "", Gw = "default";
+function $w(e) {
+ if (eC() && tC()) {
+ if (Yw !== "disabled") return;
+ Yw = "restoring", setTimeout(() => {
+ RC(() => {
+ if (Yw === "restoring") {
+ let t = OS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Xw || ""), Xw = "", Yw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && qw.has(e)) {
- let t = qw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), qw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Zw.has(e)) {
+ let t = Zw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Zw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Xw = /* @__PURE__ */ new WeakMap();
-function Zw(e) {
- let t = SS(e), n = Xw.get(t);
- return n ??= hw("csp-nonce", t), n !== void 0 && Xw.set(t, n), n;
+var eT = /* @__PURE__ */ new WeakMap();
+function tT(e) {
+ let t = OS(e), n = eT.get(t);
+ return n ??= xw("csp-nonce", t), n !== void 0 && eT.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var Qw = F.createContext({ register: () => {} });
-Qw.displayName = "PressResponderContext";
+var nT = F.createContext({ register: () => {} });
+nT.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function $w() {
+function rT() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23713,15 +23713,15 @@ function $w() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Noe(e) {
- let t = (0, F.useContext)(Qw);
+function koe(e) {
+ let t = (0, F.useContext)(nT);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return XC(t, e.ref), e;
+ return nw(t, e.ref), e;
}
-var eT = class {
+var iT = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23734,9 +23734,9 @@ var eT = class {
get shouldStopPropagation() {
return this.#e;
}
-}, tT = Symbol("linkClicked"), nT = "react-aria-pressable-style", rT = "data-react-aria-pressable";
-function iT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Noe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, aT = Symbol("linkClicked"), oT = "react-aria-pressable-style", sT = "data-react-aria-pressable";
+function cT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = koe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23746,12 +23746,12 @@ function iT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = $w(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = rT(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new eT("pressstart", t, e);
+ let n = new iT("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23765,11 +23765,11 @@ function iT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new eT("pressend", r, e);
+ let t = new iT("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new eT("press", r, e);
+ let n = new iT("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23778,19 +23778,19 @@ function iT(e) {
i,
n,
t
- ]), x = Ew(b), S = Ew((0, F.useCallback)((e, t) => {
+ ]), x = Mw(b), S = Mw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new eT("pressup", t, e);
+ let r = new iT("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(sT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Yw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(dT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || $w(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23798,7 +23798,7 @@ function iT(e) {
d,
v,
b
- ]), w = Ew(C);
+ ]), w = Mw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23815,39 +23815,39 @@ function iT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- BS(n, t), o(zS(n));
+ KS(n, t), o(GS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (oT(t.nativeEvent, t.currentTarget) && kS(t.currentTarget, G(t))) {
- cT(G(t), t.key) && t.preventDefault();
+ if (uT(t.nativeEvent, t.currentTarget) && FS(t.currentTarget, G(t))) {
+ fT(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(SS(t.currentTarget), "keyup", PC((t) => {
- oT(t, i) && !t.repeat && kS(i, G(t)) && e.target && S(sT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && KS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(OS(t.currentTarget), "keyup", BC((t) => {
+ uT(t, i) && !t.repeat && FS(i, G(t)) && e.target && S(dT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && QS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || kS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !eC.isOpening) {
+ if ((!t || FS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !oC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || QS(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || iC(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(sT(t.currentTarget, t), r), a = x(sT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(dT(t.currentTarget, t), r), a = x(dT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && oT(t, e.target)) {
- cT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = kS(e.target, n);
- x(sT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && aT(e.target) && kS(e.target, n) && !t[tT] && (t[tT] = !0, eC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && uT(t, e.target)) {
+ fT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = FS(e.target, n);
+ x(dT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && lT(e.target) && FS(e.target, n) && !t[aT] && (t[aT] = !0, oC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -23856,39 +23856,39 @@ function iT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !kS(t.currentTarget, G(t))) return;
- if (vae(t.nativeEvent)) {
+ if (t.button !== 0 || !FS(t.currentTarget, G(t))) return;
+ if (fae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Jw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Qw(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(SS(t.currentTarget), "pointerup", n, !1), _(SS(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(OS(t.currentTarget), "pointerup", n, !1), _(OS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (kS(t.currentTarget, G(t)) && t.button === 0) {
+ if (FS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = hae(t.target);
+ let n = lae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- kS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ FS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(sT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(dT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(sT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(dT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (kS(e.target, G(t)) && e.pointerType != null) {
+ if (FS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (xS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (DS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23898,7 +23898,7 @@ function iT(e) {
w(e);
};
t.onDragStart = (e) => {
- kS(e.currentTarget, G(e)) && w(e);
+ FS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23915,14 +23915,14 @@ function iT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = SS(f.current);
- if (!e || !e.head || e.getElementById(nT)) return;
+ let e = OS(f.current);
+ if (!e || !e.head || e.getElementById(oT)) return;
let t = e.createElement("style");
- t.id = nT;
- let n = Zw(e);
+ t.id = oT;
+ let n = tT(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${rT}] {
+ [${sT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23930,23 +23930,23 @@ function iT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Yw(e.target ?? void 0);
+ d || $w(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [rT]: !0 })
+ pressProps: K(p, O, { [sT]: !0 })
};
}
-function aT(e) {
+function lT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function oT(e, t) {
+function uT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof CS(i).HTMLInputElement && !lT(i, n) || i instanceof CS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && aT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof kS(i).HTMLInputElement && !pT(i, n) || i instanceof kS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && lT(i)) && n !== "Enter");
}
-function sT(e, t) {
+function dT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -23959,13 +23959,13 @@ function sT(e, t) {
key: t.key
};
}
-function Poe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !aT(e);
+function Aoe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !lT(e);
}
-function cT(e, t) {
- return KS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !lT(e, t) : Poe(e);
+function fT(e, t) {
+ return QS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !pT(e, t) : Aoe(e);
}
-var Foe = /* @__PURE__ */ new Set([
+var joe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23976,11 +23976,11 @@ var Foe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function lT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Foe.has(e.type);
+function pT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : joe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Ioe(e, t) {
+function Moe(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -24002,7 +24002,7 @@ function Ioe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = iT({
+ let { pressProps: _, isPressed: v } = cT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24012,9 +24012,9 @@ function Ioe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = QC(e, t);
+ }), { focusableProps: y } = iw(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Ww(e, { labelable: !0 }));
+ let b = K(y, _, Jw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24028,7 +24028,7 @@ function Ioe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Loe = class {
+var Noe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24053,7 +24053,7 @@ var Loe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!kS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!FS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24067,7 +24067,7 @@ var Loe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return kS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return FS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24131,44 +24131,44 @@ var Loe = class {
return null;
}
};
-function uT(e, t, n, r) {
- return OS() ? new Loe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function mT(e, t, n, r) {
+ return PS() ? new Noe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var dT = /*#__PURE__*/ F.createContext(null), fT = "react-aria-focus-scope-restore", pT = null;
-function mT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(dT) || {}, l = (0, F.useMemo)(() => new DT({ scopeRef: s }), [s]);
- RS(() => {
- let e = c || OT.root;
- if (OT.getTreeNode(e.scopeRef) && pT && !bT(pT, e.scopeRef)) {
- let t = OT.getTreeNode(pT);
+var hT = /*#__PURE__*/ F.createContext(null), gT = "react-aria-focus-scope-restore", _T = null;
+function vT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(hT) || {}, l = (0, F.useMemo)(() => new jT({ scopeRef: s }), [s]);
+ WS(() => {
+ let e = c || MT.root;
+ if (MT.getTreeNode(e.scopeRef) && _T && !wT(_T, e.scopeRef)) {
+ let t = MT.getTreeNode(_T);
t && (e = t);
}
- e.addChild(l), OT.addNode(l);
- }, [l, c]), RS(() => {
- let e = OT.getTreeNode(s);
+ e.addChild(l), MT.addNode(l);
+ }, [l, c]), WS(() => {
+ let e = MT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), RS(() => {
+ }, [n]), WS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(fT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(gT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(fT, n);
+ for (let e of t) e.removeEventListener(gT, n);
};
- }, [t]), Woe(s, r, n), Voe(s, n), Goe(s, r, n), Uoe(s, i), (0, F.useEffect)(() => {
- let e = AS(SS(s.current ? s.current[0] : void 0)), t = null;
- if (vT(e, s.current)) {
- for (let n of OT.traverse()) n.scopeRef && vT(e, n.scopeRef.current) && (t = n);
- t === OT.getTreeNode(s) && (pT = t.scopeRef);
- }
- }, [s]), RS(() => () => {
- let e = OT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== pT && !bT(s, pT) || e && !OT.getTreeNode(e) || (pT = e), OT.removeTreeNode(s);
+ }, [t]), Boe(s, r, n), Loe(s, n), Voe(s, r, n), zoe(s, i), (0, F.useEffect)(() => {
+ let e = IS(OS(s.current ? s.current[0] : void 0)), t = null;
+ if (ST(e, s.current)) {
+ for (let n of MT.traverse()) n.scopeRef && ST(e, n.scopeRef.current) && (t = n);
+ t === MT.getTreeNode(s) && (_T = t.scopeRef);
+ }
+ }, [s]), WS(() => () => {
+ let e = MT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== _T && !wT(s, _T) || e && !MT.getTreeNode(e) || (_T = e), MT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Roe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Poe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(dT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(hT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24178,154 +24178,154 @@ function mT(e) {
ref: o
}));
}
-function Roe(e) {
+function Poe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || AS(SS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = ET(hT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || IS(OS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = AT(yT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = vT(s, n) ? s : c;
+ l.currentNode = ST(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && xT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && TT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || AS(SS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = ET(hT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || IS(OS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = AT(yT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = vT(s, n) ? s : c;
+ l.currentNode = ST(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && xT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && TT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = ET(hT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = AT(yT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && xT(o, !0), o;
+ return o && TT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = ET(hT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = AT(yT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && xT(o, !0), o;
+ return o && TT(o, !0), o;
}
};
}
-function hT(e) {
+function yT(e) {
return e[0].parentElement;
}
-function gT(e) {
- let t = OT.getTreeNode(pT);
+function bT(e) {
+ let t = MT.getTreeNode(_T);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function zoe(e) {
- if (!e.form) return Array.from(SS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = CS(e);
+function Foe(e) {
+ if (!e.form) return Array.from(OS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = kS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Boe(e) {
+function Ioe(e) {
if (e.checked) return !0;
- let t = zoe(e);
+ let t = Foe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Voe(e, t) {
+function Loe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- RS(() => {
+ WS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = SS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !gT(e) || t.isComposing) return;
- let n = AS(a), r = e.current;
- if (!r || !vT(n, r)) return;
- let i = ET(hT(r), { tabbable: !0 }, r);
+ let a = OS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !bT(e) || t.isComposing) return;
+ let n = IS(a), r = e.current;
+ if (!r || !ST(n, r)) return;
+ let i = AT(yT(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (xT(o, !0), o instanceof CS(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (TT(o, !0), o instanceof kS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!pT || bT(pT, e)) && vT(G(t), e.current) ? (pT = e, n.current = G(t)) : gT(e) && !yT(G(t), e) ? n.current ? xT(n.current) : pT && pT.current && CT(pT.current) : gT(e) && (n.current = G(t));
+ (!_T || wT(_T, e)) && ST(G(t), e.current) ? (_T = e, n.current = G(t)) : bT(e) && !CT(G(t), e) ? n.current ? TT(n.current) : _T && _T.current && DT(_T.current) : bT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = SC(), i = (r === "virtual" || r === null) && ZS() && XS(), o = AS(a);
- if (!i && o && gT(e) && !yT(o, e)) {
- pT = e;
+ let r = OC(), i = (r === "virtual" || r === null) && rC() && nC(), o = IS(a);
+ if (!i && o && bT(e) && !CT(o, e)) {
+ _T = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, xT(n.current)) : pT.current && CT(pT.current);
+ r && r.isConnected ? (n.current = r, TT(n.current)) : _T.current && DT(_T.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), RS(() => () => {
+ }, [e, t]), WS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function _T(e) {
- return yT(e);
+function xT(e) {
+ return CT(e);
}
-function vT(e, t) {
- return !e || !t ? !1 : t.some((t) => kS(t, e));
+function ST(e, t) {
+ return !e || !t ? !1 : t.some((t) => FS(t, e));
}
-function yT(e, t = null) {
+function CT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of OT.traverse(OT.getTreeNode(t))) if (n && vT(e, n.current)) return !0;
+ for (let { scopeRef: n } of MT.traverse(MT.getTreeNode(t))) if (n && ST(e, n.current)) return !0;
return !1;
}
-function Hoe(e) {
- return yT(e, pT);
+function Roe(e) {
+ return CT(e, _T);
}
-function bT(e, t) {
- let n = OT.getTreeNode(t)?.parent;
+function wT(e, t) {
+ let n = MT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function xT(e, t = !1) {
+function TT(e, t = !1) {
if (e != null && !t) try {
- NC(e);
+ zC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function ST(e, t = !0) {
- let n = e[0].previousElementSibling, r = hT(e), i = ET(r, { tabbable: t }, e);
+function ET(e, t = !0) {
+ let n = e[0].previousElementSibling, r = yT(e), i = AT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = hT(e), i = ET(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = yT(e), i = AT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function CT(e, t = !0) {
- xT(ST(e, t));
+function DT(e, t = !0) {
+ TT(ET(e, t));
}
-function Uoe(e, t) {
+function zoe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (pT = e, !vT(AS(SS(e.current ? e.current[0] : void 0)), pT.current) && e.current && CT(e.current)), n.current = !1;
+ n.current && (_T = e, !ST(IS(OS(e.current ? e.current[0] : void 0)), _T.current) && e.current && DT(e.current)), n.current = !1;
}, [e]);
}
-function Woe(e, t, n) {
- RS(() => {
+function Boe(e, t, n) {
+ WS(() => {
if (t || n) return;
- let r = e.current, i = SS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = OS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- vT(n, e.current) ? pT = e : _T(n) || (pT = null);
+ ST(n, e.current) ? _T = e : xT(n) || (_T = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24336,43 +24336,43 @@ function Woe(e, t, n) {
n
]);
}
-function wT(e) {
- let t = OT.getTreeNode(pT);
+function OT(e) {
+ let t = MT.getTreeNode(_T);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Goe(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? AS(SS(e.current ? e.current[0] : void 0)) : null);
- RS(() => {
- let r = e.current, i = SS(r ? r[0] : void 0);
+function Voe(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? IS(OS(e.current ? e.current[0] : void 0)) : null);
+ WS(() => {
+ let r = e.current, i = OS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!pT || bT(pT, e)) && vT(AS(i), e.current) && (pT = e);
+ (!_T || wT(_T, e)) && ST(IS(i), e.current) && (_T = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), RS(() => {
- let r = SS(e.current ? e.current[0] : void 0);
+ }, [e, n]), WS(() => {
+ let r = OS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !gT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !bT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!yT(n, e) || !wT(e)) return;
- let i = OT.getTreeNode(e);
+ if (!CT(n, e) || !OT(e)) return;
+ let i = MT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = ET(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = AT(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !yT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !CT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (yT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? xT(s, !0) : _T(a) ? xT(a, !0) : n.blur();
+ while (CT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? TT(s, !0) : xT(a) ? TT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24382,31 +24382,31 @@ function Goe(e, t, n) {
e,
t,
n
- ]), RS(() => {
- let n = SS(e.current ? e.current[0] : void 0);
+ ]), WS(() => {
+ let n = OS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = OT.getTreeNode(e);
+ let i = MT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = OT.getTreeNode(e);
+ let r = MT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = AS(n);
- if (t && i && (a && yT(a, e) || a === n.body && wT(e))) {
- let t = OT.clone();
+ let i = r.nodeToRestore, a = IS(n);
+ if (t && i && (a && CT(a, e) || a === n.body && OT(e))) {
+ let t = MT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- TT(n.nodeToRestore);
+ kT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && OT.getTreeNode(n.scopeRef)) {
- let e = ST(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && MT.getTreeNode(n.scopeRef)) {
+ let e = ET(n.scopeRef.current, !0);
if (e) {
- TT(e);
+ kT(e);
return;
}
}
@@ -24418,21 +24418,21 @@ function Goe(e, t, n) {
};
}, [e, t]);
}
-function TT(e) {
- e.dispatchEvent(new CustomEvent(fT, {
+function kT(e) {
+ e.dispatchEvent(new CustomEvent(gT, {
bubbles: !0,
cancelable: !0
- })) && xT(e);
+ })) && TT(e);
}
-function ET(e, t, n) {
- let r = t?.tabbable ? IS : FS, i = SS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = uT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return kS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Boe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || vT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function AT(e, t, n) {
+ let r = t?.tabbable ? HS : VS, i = OS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = mT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return FS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ioe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || ST(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Koe = class e {
+var Hoe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new DT({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new jT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24443,7 +24443,7 @@ var Koe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new DT({ scopeRef: e });
+ let i = new jT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24454,7 +24454,7 @@ var Koe = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && vT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && ST(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -24466,7 +24466,7 @@ var Koe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, DT = class {
+}, jT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24476,13 +24476,13 @@ var Koe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, OT = new Koe(), kT = 7e3, AT = null;
-function jT(e, t = "assertive", n = kT) {
- AT ? AT.announce(e, t, n) : (AT = new qoe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? AT.announce(e, t, n) : setTimeout(() => {
- AT?.isAttached() && AT?.announce(e, t, n);
+}, MT = new Hoe(), NT = 7e3, PT = null;
+function FT(e, t = "assertive", n = NT) {
+ PT ? PT.announce(e, t, n) : (PT = new Uoe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? PT.announce(e, t, n) : setTimeout(() => {
+ PT?.isAttached() && PT?.announce(e, t, n);
}, 100));
}
-var qoe = class {
+var Uoe = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -24507,7 +24507,7 @@ var qoe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = kT) {
+ announce(e, t = "assertive", n = NT) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -24519,8 +24519,8 @@ var qoe = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function MT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Ew(e);
+function IT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Mw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24529,30 +24529,30 @@ function MT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function NT(e, t) {
+function LT(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function PT(e, t) {
+function RT(e, t) {
let n = e;
- for (NT(n, t) && (n = n.parentElement); n && !NT(n, t);) n = n.parentElement;
+ for (LT(n, t) && (n = n.parentElement); n && !LT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function FT(e, t) {
+function zT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (NT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (LT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function IT(e, t, n = {}) {
- e !== t && Joe(e, t, t.getBoundingClientRect(), n);
+function BT(e, t, n = {}) {
+ e !== t && Woe(e, t, t.getBoundingClientRect(), n);
}
-function Joe(e, t, n, r = {}) {
+function Woe(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- JS() && YS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ eC() && tC() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24573,7 +24573,7 @@ function Joe(e, t, n, r = {}) {
top: o
});
}
-function LT(e, t = {}) {
+function VT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24586,45 +24586,45 @@ function LT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = FT(e, !0);
- for (let t of i) IT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = zT(e, !0);
+ for (let t of i) BT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? FT(n, !0) : [];
- for (let e of i) IT(e, n, {
+ i = n ? zT(n, !0) : [];
+ for (let e of i) BT(e, n, {
block: "center",
inline: "center"
});
- for (let t of FT(e, !0)) IT(t, e);
+ for (let t of zT(e, !0)) BT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Yoe = 0, RT = /* @__PURE__ */ new Map();
-function zT(e) {
+var Goe = 0, HT = /* @__PURE__ */ new Map();
+function UT(e) {
let [t, n] = (0, F.useState)();
- return RS(() => {
+ return WS(() => {
if (!e) return;
- let t = RT.get(e);
+ let t = HT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Yoe++}`;
+ let r = `react-aria-description-${Goe++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, RT.set(e, t);
+ }, HT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), RT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), HT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function BT(e, t, n) {
- let r = Ew((e) => {
+function WT(e, t, n) {
+ let r = Mw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24635,21 +24635,21 @@ function BT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function VT(e, t, n) {
+function GT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- RS(() => {
+ WS(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Zoe(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(qoe(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Ew(() => {
+ let a = (0, F.useRef)(!1), o = Mw(() => {
a.current || t.resetValidation();
- }), s = Ew((e) => {
+ }), s = Mw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Qoe(r) === n.current && (i ? i() : n.current?.focus(), CC("keyboard")), e.preventDefault();
- }), c = Ew(() => {
+ !e.defaultPrevented && n && r && Joe(r) === n.current && (i ? i() : n.current?.focus(), kC("keyboard")), e.preventDefault();
+ }), c = Mw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24663,7 +24663,7 @@ function VT(e, t, n) {
};
}, [n, r]);
}
-function Xoe(e) {
+function Koe(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24679,14 +24679,14 @@ function Xoe(e) {
valid: t.valid
};
}
-function Zoe(e) {
+function qoe(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Xoe(e),
+ validationDetails: Koe(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Qoe(e) {
+function Joe(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24694,23 +24694,23 @@ function Qoe(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function $oe(e = !0) {
+function Yoe(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return RS(() => {
+ return WS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function HT(e = !0) {
- let t = RC(), [n, r] = $oe(e);
+function KT(e = !0) {
+ let t = WC(), [n, r] = Yoe(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var UT = {
+var qT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24722,18 +24722,18 @@ var UT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, WT = {
- ...UT,
+}, JT = {
+ ...qT,
customError: !0,
valid: !1
-}, GT = {
+}, YT = {
isInvalid: !1,
- validationDetails: UT,
+ validationDetails: qT,
validationErrors: []
-}, ese = (0, F.createContext)({}), KT = "__reactAriaFormValidationState";
-function qT(e) {
+}, Xoe = (0, F.createContext)({}), XT = "__reactAriaFormValidationState";
+function ZT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[KT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[XT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24742,70 +24742,70 @@ function qT(e) {
commitValidation: a
};
}
- return tse(e);
+ return Zoe(e);
}
-function tse(e) {
+function Zoe(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: WT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : YT(nse(o, i)), [o, i]);
+ validationDetails: JT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : $T(Qoe(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(ese), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => JT(u[e])) : JT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(Xoe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => QT(u[e])) : QT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => YT(m ? [] : d), [m, d]), _ = (0, F.useRef)(GT), [v, y] = (0, F.useState)(GT), b = (0, F.useRef)(GT), x = () => {
+ let g = (0, F.useMemo)(() => $T(m ? [] : d), [m, d]), _ = (0, F.useRef)(YT), [v, y] = (0, F.useState)(YT), b = (0, F.useRef)(YT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- XT(e, b.current) || (b.current = e, y(e));
+ eE(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || GT,
+ realtimeValidation: c || g || l || a || YT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !XT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !eE(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = GT;
- XT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = YT;
+ eE(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function JT(e) {
+function QT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function nse(e, t) {
+function Qoe(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return JT(n);
+ if (n && typeof n != "boolean") return QT(n);
}
return [];
}
-function YT(e) {
+function $T(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: WT
+ validationDetails: JT
} : null;
}
-function XT(e, t) {
+function eE(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function ZT(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = qT({
+function tE(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = ZT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- VT(e, b, n);
+ GT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = iT({
+ }, { pressProps: T, isPressed: E } = cT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24813,7 +24813,7 @@ function ZT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = iT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = cT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24830,13 +24830,13 @@ function ZT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [KT]: i } = e, { commitValidation: a } = i || b;
+ let { [XT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = QC(e, n), j = K(T, A), M = Ww(e, { labelable: !0 });
- BT(n, t.defaultSelected, t.setSelected);
- let ee = HT(), N = HT();
+ }), { focusableProps: A } = iw(e, n), j = K(T, A), M = Jw(e, { labelable: !0 });
+ WT(n, t.defaultSelected, t.setSelected);
+ let ee = KT(), N = KT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24872,8 +24872,8 @@ function ZT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function QT(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = ZT(e, t, n), { isIndeterminate: m } = e;
+function nE(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = tE(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24891,17 +24891,17 @@ function QT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var rse = /* @__PURE__ */ new WeakMap();
+var $oe = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function $T(e) {
+function rE(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = RC(t);
- let o = RC(), s = {};
+ t = WC(t);
+ let o = WC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Ow({
+ let c = Pw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24912,13 +24912,13 @@ function $T(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function eE(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = $T(e), s = zC([
+function iE(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = rE(e), s = GC([
!!t,
!!n,
r,
i
- ]), c = zC([
+ ]), c = GC([
!!t,
!!n,
r,
@@ -24936,26 +24936,26 @@ function eE(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function tE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = $w(), c = (0, F.useCallback)((e) => {
- kS(e.currentTarget, G(e)) && a.current.isFocusWithin && !kS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function aE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = rT(), c = (0, F.useCallback)((e) => {
+ FS(e.currentTarget, G(e)) && a.current.isFocusWithin && !FS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = VS(c), u = (0, F.useCallback)((e) => {
- if (!kS(e.currentTarget, G(e))) return;
- let t = G(e), n = SS(t), s = AS(n);
+ ]), l = qS(c), u = (0, F.useCallback)((e) => {
+ if (!FS(e.currentTarget, G(e))) return;
+ let t = G(e), n = OS(t), s = IS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !kS(t, r)) {
+ if (a.current.isFocusWithin && !FS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- BS(e, t);
- let i = zS(e);
+ KS(e, t);
+ let i = GS(e);
c(i);
}
}, { capture: !0 });
@@ -24976,14 +24976,14 @@ function tE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var ise = F.useInsertionEffect ?? F.useLayoutEffect;
-function nE(e, t, n) {
+var ese = F.useInsertionEffect ?? F.useLayoutEffect;
+function oE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- ise(() => {
+ ese(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -24993,8 +24993,8 @@ function nE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function rE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = nE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function sE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = oE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25009,26 +25009,26 @@ function rE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function ase(e, t, n) {
- let r = rE({
+function tse(e, t, n) {
+ let r = sE({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = rse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = $oe.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = qT({
+ let { realtimeValidation: l } = ZT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(GT), d = () => {
+ }), u = (0, F.useRef)(YT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = QT({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = nE({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25036,7 +25036,7 @@ function ase(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [KT]: {
+ [XT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25059,10 +25059,10 @@ function ase(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function iE(e, t = -Infinity, n = Infinity) {
+function cE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function aE(e, t) {
+function lE(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -25075,23 +25075,23 @@ function aE(e, t) {
}
return n;
}
-function oE(e, t, n, r) {
+function uE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = aE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(aE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(aE((n - t) / r, r)) * r), a = aE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = lE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(lE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(lE((n - t) / r, r)) * r), a = lE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var sE = /* @__PURE__ */ new Map(), cE = !1;
+var dE = /* @__PURE__ */ new Map(), fE = !1;
try {
- cE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ fE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var ose = class {
+var nse = class {
constructor(e, t = {}) {
- this.numberFormatter = sse(e, t), this.options = t;
+ this.numberFormatter = rse(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !cE && this.options.signDisplay != null ? cse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !fE && this.options.signDisplay != null ? ise(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25123,21 +25123,21 @@ var ose = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !cE && this.options.signDisplay != null && (e = {
+ return !fE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function sse(e, t = {}) {
+function rse(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (sE.has(r)) return sE.get(r);
+ if (dE.has(r)) return dE.get(r);
let i = new Intl.NumberFormat(e, t);
- return sE.set(r, i), i;
+ return dE.set(r, i), i;
}
-function cse(e, t, n) {
+function ise(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25150,12 +25150,12 @@ function cse(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function lE(e) {
+function pE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = $w(), s = Ew((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = rT(), s = Mw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25177,8 +25177,8 @@ function lE(e) {
t,
n,
i
- ])), c = Ew((0, F.useCallback)((e, t) => {
- Yw(), i.current.didMove && r?.({
+ ])), c = Mw((0, F.useCallback)((e, t) => {
+ $w(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25189,7 +25189,7 @@ function lE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Jw(), i.current.didMove = !1;
+ Qw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25204,7 +25204,7 @@ function lE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = CS(G(e));
+ let a = kS(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25214,7 +25214,7 @@ function lE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = CS(G(e));
+ let o = kS(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25247,7 +25247,7 @@ function lE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var uE = {
+var mE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25259,37 +25259,37 @@ var uE = {
width: "1px",
whiteSpace: "nowrap"
};
-function dE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = tE({
+function hE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = aE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...uE,
+ ...mE,
...t
- } : uE, [r]);
+ } : mE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function fE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = dE(e);
+function gE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = hE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function lse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = nE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = QC(e, t), d = qT({
+function ase(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = oE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = iw(e, t), d = ZT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = eE({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = iE({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Ww(e, { labelable: !0 }), b = {
+ }), y = Jw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return BT(t, e.defaultValue ?? x, l), VT(e, d, t), {
+ return WT(t, e.defaultValue ?? x, l), GT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25335,26 +25335,26 @@ function lse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function use(e = {}) {
- let { locale: t } = Pw();
- return (0, F.useMemo)(() => new ose(t, e), [t, e]);
+function ose(e = {}) {
+ let { locale: t } = Bw();
+ return (0, F.useMemo)(() => new nse(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var pE = /* @__PURE__ */ new WeakMap();
-function mE(e, t) {
- let n = pE.get(e);
+var _E = /* @__PURE__ */ new WeakMap();
+function vE(e, t) {
+ let n = _E.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function hE(e, t, n) {
- let { labelProps: r, fieldProps: i } = $T(e), a = e.orientation === "vertical";
- pE.set(t, {
+function sse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = rE(e), a = e.orientation === "vertical";
+ _E.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Pw(), { addGlobalListener: s, removeGlobalListener: c } = $w(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = lE({
+ let { direction: o } = Bw(), { addGlobalListener: s, removeGlobalListener: c } = rT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = pE({
onMoveStart() {
d.current = null;
},
@@ -25364,7 +25364,7 @@ function hE(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = iE(d.current / s, 0, 1);
+ let e = cE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25388,7 +25388,7 @@ function hE(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(mE(t, 0))?.focus(), CC("keyboard");
+ document.getElementById(vE(t, 0))?.focus(), kC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25411,26 +25411,26 @@ function hE(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => mE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => vE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function gE(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Pw(), { addGlobalListener: m, removeGlobalListener: h } = $w(), g = pE.get(t), { labelProps: _, fieldProps: v } = $T({
+function cse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Bw(), { addGlobalListener: m, removeGlobalListener: h } = rT(), g = _E.get(t), { labelProps: _, fieldProps: v } = rE({
...e,
- id: mE(t, n),
+ id: vE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && xS(s.current);
+ s.current && DS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = JC({
+ }, { keyboardProps: T } = ew({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25446,7 +25446,7 @@ function gE(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = lE({
+ }), { moveProps: E } = pE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25457,7 +25457,7 @@ function gE(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, iE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, cE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25465,7 +25465,7 @@ function gE(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = QC(K(e, {
+ let { focusableProps: D } = iw(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25485,7 +25485,7 @@ function gE(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return BT(s, t.defaultValues[n], (e) => {
+ return WT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25525,42 +25525,42 @@ function gE(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var _E = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function vE(e) {
+var lse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function yE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var yE = /* @__PURE__ */ new WeakMap(), bE = [];
-function xE(e, t) {
- let n = CS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && _E, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var bE = /* @__PURE__ */ new WeakMap(), xE = [];
+function SE(e, t) {
+ let n = kS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && lse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (OS()) {
+ if (PS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; TS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; jS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (kS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (FS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = uT(SS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = mT(OS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = yE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), yE.set(e, t + 1));
+ let t = bE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), bE.set(e, t + 1));
};
- bE.length && bE[bE.length - 1].disconnect(), d(i);
+ xE.length && xE[xE.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => kS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && vE(e) ? o.add(e) : e instanceof Element && d(e);
- if (OS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => FS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && yE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (PS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25573,11 +25573,11 @@ function xE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (OS()) for (let e of u) {
+ if (PS()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => kS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && vE(e) ? o.add(e) : e instanceof Element && d(e);
- if (OS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => FS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && yE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (PS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25603,56 +25603,56 @@ function xE(e, t) {
p.disconnect();
}
};
- return bE.push(h), () => {
- if (p.disconnect(), OS()) for (let e of m) e.disconnect();
+ return xE.push(h), () => {
+ if (p.disconnect(), PS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = yE.get(e);
- t != null && (t === 1 ? (l(e, !1), yE.delete(e)) : yE.set(e, t - 1));
+ let t = bE.get(e);
+ t != null && (t === 1 ? (l(e, !1), bE.delete(e)) : bE.set(e, t - 1));
}
- h === bE[bE.length - 1] ? (bE.pop(), bE.length && bE[bE.length - 1].observe()) : bE.splice(bE.indexOf(h), 1);
+ h === xE[xE.length - 1] ? (xE.pop(), xE.length && xE[xE.length - 1].observe()) : xE.splice(xE.indexOf(h), 1);
};
}
-function SE(e) {
- let t = bE[bE.length - 1];
+function CE(e) {
+ let t = xE[xE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var CE = /* @__PURE__ */ new WeakMap();
-function dse(e) {
+var wE = /* @__PURE__ */ new WeakMap();
+function use(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function fse(e, t) {
- let n = CE.get(e);
+function dse(e, t) {
+ let n = wE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${dse(t)}`;
+ return `${n.id}-option-${use(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function wE(e) {
- return _ae() ? e.altKey : e.ctrlKey;
+function TE(e) {
+ return dae() ? e.altKey : e.ctrlKey;
}
-function TE(e, t) {
+function EE(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var EE = /* @__PURE__ */ new WeakMap();
-function pse(e) {
- let t = RC();
- return EE.set(e, t), t;
+var DE = /* @__PURE__ */ new WeakMap();
+function fse(e) {
+ let t = WC();
+ return DE.set(e, t), t;
}
-function mse(e) {
- return EE.get(e);
+function pse(e) {
+ return DE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var DE = class {
+var OE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : TE(this.ref, e);
+ let n = e == null ? null : EE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25678,12 +25678,12 @@ var DE = class {
height: e?.clientHeight ?? 0
};
}
-}, OE = class {
+}, kE = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new DE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new DE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new OE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new OE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25723,14 +25723,14 @@ var DE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = TE(this.ref, e);
+ let t = this.getNextKey(e), n = EE(this.ref, e);
if (t != null) {
- let e = TE(this.ref, t);
+ let e = EE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = TE(this.ref, r);
+ let e = EE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25764,7 +25764,7 @@ var DE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !NT(t)) return this.getFirstKey();
+ if (t && !LT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25779,7 +25779,7 @@ var DE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !NT(t)) return this.getLastKey();
+ if (t && !LT(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -25802,149 +25802,149 @@ var DE = class {
}
return null;
}
-}, kE = {};
-kE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, AE = {};
+AE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var AE = {};
-AE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
-// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
var jE = {};
-jE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
-// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
+jE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
var ME = {};
-ME = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
-// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
+ME = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
var NE = {};
-NE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
-// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
+NE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
var PE = {};
-PE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
-// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
+PE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
var FE = {};
-FE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
-// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
+FE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
var IE = {};
-IE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
-// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
+IE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
var LE = {};
-LE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
-// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
+LE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
var RE = {};
-RE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
-// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
+RE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
var zE = {};
-zE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
-// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
+zE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
var BE = {};
-BE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
-// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
+BE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
var VE = {};
-VE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
-// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
+VE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
var HE = {};
-HE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
-// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
+HE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
var UE = {};
-UE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
-// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
+UE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
var WE = {};
-WE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
-// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
+WE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
var GE = {};
-GE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
-// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
+GE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
var KE = {};
-KE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
-// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
+KE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
var qE = {};
-qE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
-// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
+qE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
var JE = {};
-JE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
-// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
+JE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
var YE = {};
-YE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
-// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
+YE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
var XE = {};
-XE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
-// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
+XE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
var ZE = {};
-ZE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
-// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
+ZE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
var QE = {};
-QE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
-// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
+QE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
var $E = {};
-$E = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
-// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
+$E = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
var eD = {};
-eD = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
-// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
+eD = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
var tD = {};
-tD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
-// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
+tD = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
var nD = {};
-nD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
-// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
+nD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
var rD = {};
-rD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
-// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
+rD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
var iD = {};
-iD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
-// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
+iD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
var aD = {};
-aD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
-// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
+aD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
var oD = {};
-oD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
-// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
+oD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
var sD = {};
-sD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
-// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
+sD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
var cD = {};
-cD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
-// node_modules/react-aria/dist/private/menu/intlStrings.mjs
+cD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
var lD = {};
-lD = {
- "ar-AE": kE,
- "bg-BG": AE,
- "cs-CZ": jE,
- "da-DK": ME,
- "de-DE": NE,
- "el-GR": PE,
- "en-US": FE,
- "es-ES": IE,
- "et-EE": LE,
- "fi-FI": RE,
- "fr-FR": zE,
- "he-IL": BE,
- "hr-HR": VE,
- "hu-HU": HE,
- "it-IT": UE,
- "ja-JP": WE,
- "ko-KR": GE,
- "lt-LT": KE,
- "lv-LV": qE,
- "nb-NO": JE,
- "nl-NL": YE,
- "pl-PL": XE,
- "pt-BR": ZE,
- "pt-PT": QE,
- "ro-RO": $E,
- "ru-RU": eD,
- "sk-SK": tD,
- "sl-SI": nD,
- "sr-SP": rD,
- "sv-SE": iD,
- "tr-TR": aD,
- "uk-UA": oD,
- "zh-CN": sD,
- "zh-TW": cD
+lD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+// node_modules/react-aria/dist/private/menu/intlStrings.mjs
+var uD = {};
+uD = {
+ "ar-AE": AE,
+ "bg-BG": jE,
+ "cs-CZ": ME,
+ "da-DK": NE,
+ "de-DE": PE,
+ "el-GR": FE,
+ "en-US": IE,
+ "es-ES": LE,
+ "et-EE": RE,
+ "fi-FI": zE,
+ "fr-FR": BE,
+ "he-IL": VE,
+ "hr-HR": HE,
+ "hu-HU": UE,
+ "it-IT": WE,
+ "ja-JP": GE,
+ "ko-KR": KE,
+ "lt-LT": qE,
+ "lv-LV": JE,
+ "nb-NO": YE,
+ "nl-NL": XE,
+ "pl-PL": ZE,
+ "pt-BR": QE,
+ "pt-PT": $E,
+ "ro-RO": eD,
+ "ru-RU": tD,
+ "sk-SK": nD,
+ "sl-SI": rD,
+ "sr-SP": iD,
+ "sv-SE": aD,
+ "tr-TR": oD,
+ "uk-UA": sD,
+ "zh-CN": cD,
+ "zh-TW": lD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var hse = 500;
-function uD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = hse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = $w(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = iT({
+var mse = 500;
+function dD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = mse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = rT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = cT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25952,12 +25952,12 @@ function uD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), SS(e.target).activeElement !== e.target && xS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), OS(e.target).activeElement !== e.target && DS(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = CS(e.target);
+ let t = kS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -25972,11 +25972,11 @@ function uD(e) {
});
}
});
- return { longPressProps: K(f, zT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, UT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function gse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = uD({
+function hse(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = dD({
onLongPressStart() {
n.current = !1;
},
@@ -25988,7 +25988,7 @@ function gse(e) {
});
}
});
- return t ? { contextMenuProps: K(JS() ? r : {}, {
+ return t ? { contextMenuProps: K(eC() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -25999,7 +25999,7 @@ function gse(e) {
});
},
onKeyDown(e) {
- if (KS() && e.ctrlKey && e.key === "Enter") {
+ if (QS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26018,13 +26018,13 @@ function gse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var dD = /* @__PURE__ */ new WeakMap();
-function _se(e) {
+var fD = /* @__PURE__ */ new WeakMap();
+function gse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : ES(jS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : MS(LS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !kS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || dD.get(t.current);
+ if (!t.current || n instanceof Node && !FS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || fD.get(t.current);
i && i();
}, !0), [
n,
@@ -26033,14 +26033,14 @@ function _se(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function vse(e, t, n) {
+function _se(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && dD.set(n.current, t.close);
+ n && n.current && fD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = RC();
+ let o = WC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26052,14 +26052,14 @@ function vse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function yse(e) {
+function vse(e) {
return e && e.__esModule ? e.default : e;
}
-function fD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = RC(), { triggerProps: s, overlayProps: c } = vse({ type: r }, t, n), l = (e, n, r = "first") => {
+function pD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = WC(), { triggerProps: s, overlayProps: c } = _se({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = JC({
+ }, { keyboardProps: u } = ew({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26071,7 +26071,7 @@ function fD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Vw(yse(lD), "@react-aria/menu"), { longPressProps: f } = uD({
+ }), d = Kw(vse(uD), "@react-aria/menu"), { longPressProps: f } = dD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26083,14 +26083,14 @@ function fD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (xS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (DS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (xS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (DS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = gse({ onContextMenu(e) {
+ let { contextMenuProps: m } = hse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26134,8 +26134,8 @@ function fD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var pD = 1e3;
-function mD(e) {
+var mD = 1e3;
+function hD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26154,12 +26154,12 @@ function mD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, pD);
+ }, mD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = bse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !kS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = yse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !FS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26170,32 +26170,32 @@ function mD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, pD);
+ }, mD);
}
} : void 0
} };
}
-function bse(e) {
+function yse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function hD(e, t) {
+function gD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- RS(() => (n.current = !0, () => {
+ WS(() => (n.current = !0, () => {
n.current = !1;
- }), []), RS(() => {
+ }), []), WS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function gD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Pw(), _ = $S(), v = (e, n, i) => {
+function _D(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Bw(), _ = aC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !wE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !TE(e)) {
(0, Lt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = TE(r, n), o = t.getItemProps(n);
+ let a = EE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26207,7 +26207,7 @@ function gD(e) {
t.extendSelection(n);
return;
}
- if (l && !wE(e)) {
+ if (l && !TE(e)) {
t.replaceSelection(n);
return;
}
@@ -26234,9 +26234,9 @@ function gD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, ww(e));
+ let r = n.getFirstKey(t.focusedKey, Aw(e));
if (t.setFocusedKey(r), r != null) {
- if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Aw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26268,9 +26268,9 @@ function gD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, ww(e));
+ let r = n.getLastKey(t.focusedKey, Aw(e));
if (t.setFocusedKey(r), r != null) {
- if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Aw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26301,12 +26301,12 @@ function gD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = ET(r.current, { tabbable: !0 }), t, n;
+ let e = AT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = AS();
- t && (!MS(t) || i && !IS(i)) && xS(t);
+ let i = IS();
+ t && (!RS(t) || i && !HS(i)) && DS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26316,11 +26316,11 @@ function gD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [KS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [QS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [KS() ? e + "+Alt" : e + "+Control"]: t,
+ [QS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = JC({
+ }), { keyboardProps: M } = ew({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26330,7 +26330,7 @@ function gD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = JC({ shortcuts: {
+ }), { keyboardProps: ee } = ew({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26341,7 +26341,7 @@ function gD(e) {
top: 0,
left: 0
});
- Dw(p, "scroll", () => {
+ Nw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26349,11 +26349,11 @@ function gD(e) {
});
let te = (e) => {
if (t.isFocused) {
- kS(e.currentTarget, G(e)) || t.setFocused(!1);
+ FS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!kS(e.currentTarget, G(e))) return;
- let i = SC();
+ if (!FS(e.currentTarget, G(e))) return;
+ let i = OC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26364,27 +26364,27 @@ function gD(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = TE(r, t.focusedKey);
- e instanceof HTMLElement && (!MS(e) && !d && xS(e), (i === "keyboard" || h && i === "virtual") && LT(e, { containingElement: r.current }));
+ let e = EE(r, t.focusedKey);
+ e instanceof HTMLElement && (!RS(e) && !d && DS(e), (i === "keyboard" || h && i === "virtual") && VT(e, { containingElement: r.current }));
}
}, P = (e) => {
- kS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ FS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Dw(r, loe, d ? (e) => {
+ Nw(r, roe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- hD(() => {
+ gD(() => {
if (ne.current) {
if (re == null) {
- let e = AS();
- pw(r.current), mw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = IS();
+ yw(r.current), bw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), hD(() => {
+ }, [re, t.collection.size]), gD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Dw(r, coe, d ? (e) => {
+ }, [t.focusedKey]), Nw(r, noe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26399,22 +26399,22 @@ function gD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && NC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && zC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = SC(), n = TE(r, t.focusedKey);
+ let e = OC(), n = EE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (IT(p.current, n), e !== "virtual" && LT(n, { containingElement: r.current }));
+ p.current && (BT(p.current, n), e !== "virtual" && VT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && NC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && zC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Dw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Nw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26424,27 +26424,27 @@ function gD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = mD({
+ }, { typeSelectProps: ce } = hD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = pse(t.collection);
+ let ue = fse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function _D(e, t) {
+function vD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function vD(e) {
- return yD(e, 0);
+function yD(e) {
+ return bD(e, 0);
}
-function yD(e, t) {
+function bD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26452,106 +26452,106 @@ function yD(e, t) {
n++;
}
}
-function bD(e) {
+function xD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function xD(e, t, n) {
+function SD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...SD(e, t), t], i = [...SD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...CD(e, t), t], i = [...CD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function SD(e, t) {
+function CD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var CD = /* @__PURE__ */ new WeakMap();
-function wD(e) {
- let t = CD.get(e);
+var wD = /* @__PURE__ */ new WeakMap();
+function TD(e) {
+ let t = wD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(_D(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(vD(i, e)) : i.type === "item" && n++;
};
- return r(e), CD.set(e, n), n;
+ return r(e), wD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var TD = /* @__PURE__ */ new Map();
-function ED(e) {
- let { locale: t } = Pw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (TD.has(n)) return TD.get(n);
+var ED = /* @__PURE__ */ new Map();
+function DD(e) {
+ let { locale: t } = Bw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (ED.has(n)) return ED.get(n);
let r = new Intl.Collator(t, e);
- return TD.set(n, r), r;
+ return ED.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var xse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(Qw), a = K(i || {}, {
+var bse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(nT), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = YC(n || i?.ref), XC(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = tw(n || i?.ref), nw(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(Qw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(nT.Provider, { value: a }, e);
});
-function Sse({ children: e }) {
+function xse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(Qw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(nT.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var DD = /*#__PURE__*/ (0, F.createContext)({});
-function OD(e) {
- let { getContainer: t } = e, { getContainer: n } = kD();
- return /*#__PURE__*/ F.createElement(DD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var OD = /*#__PURE__*/ (0, F.createContext)({});
+function kD(e) {
+ let { getContainer: t } = e, { getContainer: n } = AD();
+ return /*#__PURE__*/ F.createElement(OD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function kD() {
- return (0, F.useContext)(DD) ?? {};
+function AD() {
+ return (0, F.useContext)(OD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var AD = /*#__PURE__*/ F.createContext(null);
-function jD(e) {
- let t = oC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var jD = /*#__PURE__*/ F.createContext(null);
+function MD(e) {
+ let t = fC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = kD();
+ }), [i, a]), { getContainer: s } = AD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(mT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(vT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(AD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Sse, null, /*#__PURE__*/ F.createElement(ZC.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(jD.Provider, { value: o }, /*#__PURE__*/ F.createElement(xse, null, /*#__PURE__*/ F.createElement(rw.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
}
-function MD() {
- let e = (0, F.useContext)(AD)?.setContain;
- RS(() => {
+function ND() {
+ let e = (0, F.useContext)(jD)?.setContain;
+ WS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Cse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = zC();
+function Sse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = GC();
i = e["aria-label"] ? void 0 : i;
- let a = zC();
+ let a = GC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !MS(t.current)) {
- NC(t.current);
+ if (!r && t.current && !RS(t.current)) {
+ zC(t.current);
let e = setTimeout(() => {
- (AS() === t.current || AS() === document.body) && (o.current = !0, t.current && (t.current.blur(), NC(t.current)), o.current = !1);
+ (IS() === t.current || IS() === document.body) && (o.current = !0, t.current && (t.current.blur(), zC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), MD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), ND(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Ww(e, { labelable: !0 }),
+ ...Jw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26565,23 +26565,23 @@ function Cse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function ND(e = {}) {
+function PD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || xC()
+ isFocusVisible: t || DC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = xC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = DC(), o(e), l();
}, [l]);
- EC((e) => {
+ MC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = WC({
+ let { focusProps: d } = XC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = tE({
+ }), { focusWithinProps: f } = aE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26592,41 +26592,41 @@ function ND(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function wse(e = {}) {
- let { locale: t } = Pw();
+function Cse(e = {}) {
+ let { locale: t } = Bw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var PD = !1, FD = 0;
-function Tse() {
- PD = !0, setTimeout(() => {
- PD = !1;
+var FD = !1, ID = 0;
+function wse() {
+ FD = !0, setTimeout(() => {
+ FD = !1;
}, 500);
}
-function ID(e) {
- e.pointerType === "touch" && Tse();
+function LD(e) {
+ e.pointerType === "touch" && wse();
}
-function Ese() {
- let e = SS(null);
- if (e !== void 0) return FD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ID), FD++, () => {
- FD--, !(FD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ID);
+function Tse() {
+ let e = OS(null);
+ if (e !== void 0) return ID === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", LD), ID++, () => {
+ ID--, !(ID > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", LD);
};
}
-function LD(e) {
+function RD(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Ese, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = $w(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Tse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = rT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !kS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !FS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(SS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !kS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(OS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !FS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26641,9 +26641,9 @@ function LD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- PD && t.pointerType === "mouse" || e(t, t.pointerType);
+ FD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && kS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && FS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26665,22 +26665,22 @@ function LD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Dse(e) {
+function Ese(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Ew((e) => {
- n && RD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Ew((e) => {
+ }), o = Mw((e) => {
+ n && zD(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Mw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = SS(n);
+ let n = t.current, i = OS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && RD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && zD(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -26688,28 +26688,28 @@ function Dse(e) {
}
}, [t, r]);
}
-function RD(e, t) {
+function zD(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !kS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !FS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var zD = /* @__PURE__ */ new WeakMap();
-function BD(e, t) {
- let { id: n } = zD.get(e) ?? {};
+var BD = /* @__PURE__ */ new WeakMap();
+function VD(e, t) {
+ let { id: n } = BD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Ose(t)}`;
+ return `${n}-${Dse(t)}`;
}
-function Ose(e) {
+function Dse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var VD = {};
-VD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26722,8 +26722,8 @@ VD = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var HD = {};
-HD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26736,8 +26736,8 @@ HD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var UD = {};
-UD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -26750,8 +26750,8 @@ UD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var WD = {};
-WD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26764,8 +26764,8 @@ WD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var GD = {};
-GD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26778,8 +26778,8 @@ GD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var KD = {};
-KD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -26792,8 +26792,8 @@ KD = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var qD = {};
-qD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26806,8 +26806,8 @@ qD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var JD = {};
-JD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26820,8 +26820,8 @@ JD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var YD = {};
-YD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26834,8 +26834,8 @@ YD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var XD = {};
-XD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26848,8 +26848,8 @@ XD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var ZD = {};
-ZD = {
+var QD = {};
+QD = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -26862,8 +26862,8 @@ ZD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var QD = {};
-QD = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26876,8 +26876,8 @@ QD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var $D = {};
-$D = {
+var eO = {};
+eO = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26890,8 +26890,8 @@ $D = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var eO = {};
-eO = {
+var tO = {};
+tO = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26904,8 +26904,8 @@ eO = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var tO = {};
-tO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26918,8 +26918,8 @@ tO = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var nO = {};
-nO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -26932,8 +26932,8 @@ nO = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var rO = {};
-rO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -26946,8 +26946,8 @@ rO = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var iO = {};
-iO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -26960,8 +26960,8 @@ iO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var aO = {};
-aO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -26974,8 +26974,8 @@ aO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var oO = {};
-oO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -26988,8 +26988,8 @@ oO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var sO = {};
-sO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27002,8 +27002,8 @@ sO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var cO = {};
-cO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27016,8 +27016,8 @@ cO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var lO = {};
-lO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27030,8 +27030,8 @@ lO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var uO = {};
-uO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27044,8 +27044,8 @@ uO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var dO = {};
-dO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27058,8 +27058,8 @@ dO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var fO = {};
-fO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27072,8 +27072,8 @@ fO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var pO = {};
-pO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27086,8 +27086,8 @@ pO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var mO = {};
-mO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27100,8 +27100,8 @@ mO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var hO = {};
-hO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27114,8 +27114,8 @@ hO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var gO = {};
-gO = {
+var _O = {};
+_O = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27128,8 +27128,8 @@ gO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var _O = {};
-_O = {
+var vO = {};
+vO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27142,8 +27142,8 @@ _O = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var vO = {};
-vO = {
+var yO = {};
+yO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27156,8 +27156,8 @@ vO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var yO = {};
-yO = {
+var bO = {};
+bO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27170,8 +27170,8 @@ yO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var bO = {};
-bO = {
+var xO = {};
+xO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27184,54 +27184,54 @@ bO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var xO = {};
-xO = {
- "ar-AE": VD,
- "bg-BG": HD,
- "cs-CZ": UD,
- "da-DK": WD,
- "de-DE": GD,
- "el-GR": KD,
- "en-US": qD,
- "es-ES": JD,
- "et-EE": YD,
- "fi-FI": XD,
- "fr-FR": ZD,
- "he-IL": QD,
- "hr-HR": $D,
- "hu-HU": eO,
- "it-IT": tO,
- "ja-JP": nO,
- "ko-KR": rO,
- "lt-LT": iO,
- "lv-LV": aO,
- "nb-NO": oO,
- "nl-NL": sO,
- "pl-PL": cO,
- "pt-BR": lO,
- "pt-PT": uO,
- "ro-RO": dO,
- "ru-RU": fO,
- "sk-SK": pO,
- "sl-SI": mO,
- "sr-SP": hO,
- "sv-SE": gO,
- "tr-TR": _O,
- "uk-UA": vO,
- "zh-CN": yO,
- "zh-TW": bO
+var SO = {};
+SO = {
+ "ar-AE": HD,
+ "bg-BG": UD,
+ "cs-CZ": WD,
+ "da-DK": GD,
+ "de-DE": KD,
+ "el-GR": qD,
+ "en-US": JD,
+ "es-ES": YD,
+ "et-EE": XD,
+ "fi-FI": ZD,
+ "fr-FR": QD,
+ "he-IL": $D,
+ "hr-HR": eO,
+ "hu-HU": tO,
+ "it-IT": nO,
+ "ja-JP": rO,
+ "ko-KR": iO,
+ "lt-LT": aO,
+ "lv-LV": oO,
+ "nb-NO": sO,
+ "nl-NL": cO,
+ "pl-PL": lO,
+ "pt-BR": uO,
+ "pt-PT": dO,
+ "ro-RO": fO,
+ "ru-RU": pO,
+ "sk-SK": mO,
+ "sl-SI": hO,
+ "sr-SP": gO,
+ "sv-SE": _O,
+ "tr-TR": vO,
+ "uk-UA": yO,
+ "zh-CN": bO,
+ "zh-TW": xO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function kse(e) {
+function Ose(e) {
return e && e.__esModule ? e.default : e;
}
-function SO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Vw(kse(xO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function CO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Kw(Ose(SO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = CO(i, a.current), o = CO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = wO(i, a.current), o = wO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -27251,7 +27251,7 @@ function SO(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && jT(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && FT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27262,7 +27262,7 @@ function SO(e, t) {
n,
r
]);
- MT(() => {
+ IT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27270,20 +27270,20 @@ function SO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function CO(e, t) {
+function wO(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function wO(e, t) {
+function TO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return RS(() => {
+ return WS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = ET(e.current, { tabbable: !0 });
+ let t = AT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27301,12 +27301,12 @@ function wO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Ase(e) {
+function kse(e) {
return e && e.__esModule ? e.default : e;
}
-function TO(e) {
- let t = Vw(Ase(xO), "@react-aria/grid"), n = wC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return zT((0, F.useMemo)(() => {
+function EO(e) {
+ let t = Kw(kse(SO), "@react-aria/grid"), n = AC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return UT((0, F.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -27318,11 +27318,11 @@ function TO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function EO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ED({
+function DO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = DD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new OE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new kE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27339,7 +27339,7 @@ function EO(e) {
c,
l,
s
- ]), { collectionProps: d } = gD({
+ ]), { collectionProps: d } = _D({
...e,
ref: i,
selectionManager: t,
@@ -27348,10 +27348,10 @@ function EO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function jse(e, t, n) {
+function Ase(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = EO({
+ let { listProps: f } = DO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27366,30 +27366,30 @@ function jse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = RC(e.id);
- zD.set(t, {
+ }), p = WC(e.id);
+ BD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = TO({
+ let m = EO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = wO(n, { isDisabled: t.collection.size !== 0 }), g = K(Ww(e, { labelable: !0 }), {
+ }), h = TO(n, { isDisabled: t.collection.size !== 0 }), g = K(Jw(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), SO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), CO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function DO(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = $S();
- t = RC(t);
+function OO(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = aC();
+ t = WC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && wE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && TE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27400,11 +27400,11 @@ function DO(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (ww(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Aw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? pw(i.current) : s ? s() : AS() !== i.current && i.current && NC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? yw(i.current) : s ? s() : IS() !== i.current && i.current && zC(i.current));
}, [
i,
r,
@@ -27432,22 +27432,22 @@ function DO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || kO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || AO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !OO(e.key)) return;
+ if (e.pointerType === "keyboard" && !kO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || kO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || AO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && OO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && kO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = mse(n.collection);
+ let A = pse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27462,10 +27462,10 @@ function DO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = PC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = iT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = BC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = cT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = uD({
+ } : void 0, { longPressProps: N } = dD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27473,7 +27473,7 @@ function DO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- eC.isOpening || e.preventDefault();
+ oC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27486,7 +27486,7 @@ function DO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return IS(e);
+ return HS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27506,14 +27506,14 @@ function DO(e) {
hasAction: S
};
}
-function OO(e) {
+function kO(e) {
return e === "Enter";
}
-function kO(e) {
+function AO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var AO = {
+var jO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27523,18 +27523,18 @@ var AO = {
rtl: "ArrowRight"
}
};
-function Mse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Pw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = zD.get(t), f = zC(), p = (0, F.useRef)(null), m = () => {
+function jse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Bw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = BD.get(t), f = GC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (MS(n.current) && n.current !== AS(SS(n.current))) return;
- let e = ET(n.current, { tabbable: !0 }).firstChild();
+ if (RS(n.current) && n.current !== IS(OS(n.current))) return;
+ let e = AT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- NC(e), LT(e, { containingElement: PT(e) });
+ zC(e), VT(e, { containingElement: RT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !MS(n.current)) && NC(n.current);
+ (p.current != null && r.key !== p.current || !RS(n.current)) && zC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27544,7 +27544,7 @@ function Mse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Nse(e, t.collection);
+ let n = Mse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -27555,75 +27555,75 @@ function Mse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = DO({
+ let { itemProps: v, ...y } = OO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? PC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? BC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = AS(SS(n.current));
- if (!kS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = ET(n.current);
- if (a.currentNode = i, !jO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = IS(OS(n.current));
+ if (!FS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = AT(n.current);
+ if (a.currentNode = i, !MO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), NC(t), LT(t, { containingElement: PT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") NC(n.current), LT(n.current, { containingElement: PT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), zC(t), VT(t, { containingElement: RT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") zC(n.current), VT(n.current, { containingElement: RT(n.current) });
else {
a.currentNode = n.current;
- let e = MO(a);
- e && (NC(e), LT(e, { containingElement: PT(n.current) }));
+ let e = NO(a);
+ e && (zC(e), VT(e, { containingElement: RT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), NC(t), LT(t, { containingElement: PT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") NC(n.current), LT(n.current, { containingElement: PT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), zC(t), VT(t, { containingElement: RT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") zC(n.current), VT(n.current, { containingElement: RT(n.current) });
else {
a.currentNode = n.current;
- let e = MO(a);
- e && (NC(e), LT(e, { containingElement: PT(n.current) }));
+ let e = NO(a);
+ e && (zC(e), VT(e, { containingElement: RT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && kS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && FS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && kS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && AS(SS(n.current)) === n.current && m();
- }) : xC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && FS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && IS(OS(n.current)) === n.current && m();
+ }) : DC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = AS(SS(n.current));
- if (kS(e.currentTarget, G(e)) && n.current && i) {
+ let i = IS(OS(n.current));
+ if (FS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (jO(e, t, r, g, s, i, n.current, o)) return;
+ if (MO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = ET(n.current, { tabbable: !0 });
+ let t = AT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = tC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = sC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${BD(t, r.key)} ${f}` : void 0,
- id: BD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${VD(t, r.key)} ${f}` : void 0,
+ id: VD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27644,66 +27644,66 @@ function Mse(e, t, n) {
...y
};
}
-function jO(e, t, n, r, i, a, o, s) {
+function MO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === AO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === AO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === jO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === jO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function MO(e) {
+function NO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Nse(e, t) {
+function Mse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Pse(e) {
+function Nse(e) {
return e && e.__esModule ? e.default : e;
}
-function NO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = RC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function PO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = WC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Vw(Pse(xO), "@react-aria/grid").format("select"),
+ "aria-label": Kw(Nse(SO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Fse(e, t) {
- let { key: n } = e, { checkboxProps: r } = NO(e, t);
+function Pse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = PO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${BD(t, n)}`
+ "aria-labelledby": `${r.id} ${VD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Ise(e, t, n) {
- let r = Ww(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Fse(e, t, n) {
+ let r = Jw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = EO({
+ let { listProps: s } = DO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = tE({
+ }), { focusWithinProps: c } = aE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = RC(e.id);
- CE.set(t, {
+ }), l = WC(e.id);
+ wE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27713,7 +27713,7 @@ function Ise(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = $T({
+ let { labelProps: u, fieldProps: d } = rE({
...e,
id: l,
labelElementType: "span"
@@ -27728,8 +27728,8 @@ function Ise(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Lse(e) {
- let { heading: t, "aria-label": n } = e, r = RC();
+function Ise(e) {
+ let { heading: t, "aria-label": n } = e, r = WC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27747,8 +27747,8 @@ function Lse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Rse(e, t, n) {
- let { key: r } = e, i = CE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = zC(), f = zC(), p = {
+function Lse(e, t, n) {
+ let { key: r } = e, i = wE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = GC(), f = GC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27758,9 +27758,9 @@ function Rse(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = wD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = TD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = fse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = DO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = dse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = OO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27769,18 +27769,18 @@ function Rse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? PC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? BC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = LD({
+ }), { hoverProps: S } = RD({
isDisabled: a || !c,
onHoverStart() {
- xC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ DC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Ww(m?.props);
+ }), C = Jw(m?.props);
delete C.id;
- let w = nC(m?.props);
+ let w = cC(m?.props);
return {
optionProps: {
...p,
@@ -27790,7 +27790,7 @@ function Rse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && xC(),
+ isFocusVisible: y && t.selectionManager.isFocused && DC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27799,12 +27799,12 @@ function Rse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var PO = /* @__PURE__ */ new WeakMap();
+var FO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function zse(e, t, n) {
+function Rse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Ww(e, { labelable: !0 }), { listProps: c } = EO({
+ let s = Jw(e, { labelable: !0 }), { listProps: c } = DO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27813,7 +27813,7 @@ function zse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return PO.set(t, {
+ return FO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27829,15 +27829,15 @@ function zse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Bse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = PO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = $S(), M = () => {
+function zse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = FO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = aC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = zC(), te = zC(), P = zC(), ne = {
+ let N = GC(), te = GC(), P = GC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27854,17 +27854,17 @@ function Bse(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = wD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = TD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), Cae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), _ae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = DO({
+ }, { itemProps: se, isFocused: ce } = OO({
id: r,
selectionManager: C,
key: i,
@@ -27873,27 +27873,27 @@ function Bse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = iT({
+ }), { pressProps: le, isPressed: ue } = cT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = LD({
+ }), { hoverProps: de } = RD({
isDisabled: E,
onHoverStart(e) {
- !xC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !DC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = JC({
+ }), { keyboardProps: fe } = ew({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), CC("keyboard");
+ }, G(e).click(), kC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27901,8 +27901,8 @@ function Bse(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), CC("keyboard");
- else return CC("keyboard"), {
+ if (t.tagName !== "A") t.click(), kC("keyboard");
+ else return kC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27910,13 +27910,13 @@ function Bse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = QC({
+ }), { focusableProps: pe } = iw({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Ww(k?.props);
+ }, n), me = Jw(k?.props);
delete me.id;
- let he = nC(k?.props);
+ let he = cC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27931,15 +27931,15 @@ function Bse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && xC() && !T,
+ isFocusVisible: ce && C.isFocused && DC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Vse(e) {
- let { heading: t, "aria-label": n } = e, r = RC();
+function Bse(e) {
+ let { heading: t, "aria-label": n } = e, r = WC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27954,15 +27954,15 @@ function Vse(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Hse() {
+function Vse() {
return window.ResizeObserver !== void 0;
}
-function FO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Ew(r);
+function IO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Mw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Hse()) {
+ if (Vse()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -27977,154 +27977,154 @@ function FO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var IO = {};
-IO = { dismiss: "تجاهل" };
-// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
var LO = {};
-LO = { dismiss: "Отхвърляне" };
-// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
+LO = { dismiss: "تجاهل" };
+// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
var RO = {};
-RO = { dismiss: "Odstranit" };
-// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
+RO = { dismiss: "Отхвърляне" };
+// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
var zO = {};
-zO = { dismiss: "Luk" };
-// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
+zO = { dismiss: "Odstranit" };
+// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
var BO = {};
-BO = { dismiss: "Schließen" };
-// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
+BO = { dismiss: "Luk" };
+// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
var VO = {};
-VO = { dismiss: "Απόρριψη" };
-// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
+VO = { dismiss: "Schließen" };
+// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
var HO = {};
-HO = { dismiss: "Dismiss" };
-// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
+HO = { dismiss: "Απόρριψη" };
+// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
var UO = {};
-UO = { dismiss: "Descartar" };
-// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
+UO = { dismiss: "Dismiss" };
+// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
var WO = {};
-WO = { dismiss: "Lõpeta" };
-// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
+WO = { dismiss: "Descartar" };
+// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
var GO = {};
-GO = { dismiss: "Hylkää" };
-// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
+GO = { dismiss: "Lõpeta" };
+// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
var KO = {};
-KO = { dismiss: "Rejeter" };
-// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
+KO = { dismiss: "Hylkää" };
+// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
var qO = {};
-qO = { dismiss: "התעלם" };
-// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
+qO = { dismiss: "Rejeter" };
+// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
var JO = {};
-JO = { dismiss: "Odbaci" };
-// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
+JO = { dismiss: "התעלם" };
+// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
var YO = {};
-YO = { dismiss: "Elutasítás" };
-// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
+YO = { dismiss: "Odbaci" };
+// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
var XO = {};
-XO = { dismiss: "Ignora" };
-// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
+XO = { dismiss: "Elutasítás" };
+// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
var ZO = {};
-ZO = { dismiss: "閉じる" };
-// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
+ZO = { dismiss: "Ignora" };
+// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
var QO = {};
-QO = { dismiss: "무시" };
-// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
+QO = { dismiss: "閉じる" };
+// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
var $O = {};
-$O = { dismiss: "Atmesti" };
-// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
+$O = { dismiss: "무시" };
+// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
var ek = {};
-ek = { dismiss: "Nerādīt" };
-// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
+ek = { dismiss: "Atmesti" };
+// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
var tk = {};
-tk = { dismiss: "Lukk" };
-// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
+tk = { dismiss: "Nerādīt" };
+// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
var nk = {};
-nk = { dismiss: "Negeren" };
-// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
+nk = { dismiss: "Lukk" };
+// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
var rk = {};
-rk = { dismiss: "Zignoruj" };
-// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
+rk = { dismiss: "Negeren" };
+// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
var ik = {};
-ik = { dismiss: "Descartar" };
-// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
+ik = { dismiss: "Zignoruj" };
+// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
var ak = {};
-ak = { dismiss: "Dispensar" };
-// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
+ak = { dismiss: "Descartar" };
+// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
var ok = {};
-ok = { dismiss: "Revocare" };
-// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
+ok = { dismiss: "Dispensar" };
+// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
var sk = {};
-sk = { dismiss: "Пропустить" };
-// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
+sk = { dismiss: "Revocare" };
+// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
var ck = {};
-ck = { dismiss: "Zrušiť" };
-// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
+ck = { dismiss: "Пропустить" };
+// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
var lk = {};
-lk = { dismiss: "Opusti" };
-// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
+lk = { dismiss: "Zrušiť" };
+// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
var uk = {};
-uk = { dismiss: "Odbaci" };
-// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
+uk = { dismiss: "Opusti" };
+// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
var dk = {};
-dk = { dismiss: "Avvisa" };
-// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
+dk = { dismiss: "Odbaci" };
+// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
var fk = {};
-fk = { dismiss: "Kapat" };
-// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
+fk = { dismiss: "Avvisa" };
+// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
var pk = {};
-pk = { dismiss: "Скасувати" };
-// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
+pk = { dismiss: "Kapat" };
+// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
var mk = {};
-mk = { dismiss: "取消" };
-// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
+mk = { dismiss: "Скасувати" };
+// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
var hk = {};
-hk = { dismiss: "關閉" };
-// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
+hk = { dismiss: "取消" };
+// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
var gk = {};
-gk = {
- "ar-AE": IO,
- "bg-BG": LO,
- "cs-CZ": RO,
- "da-DK": zO,
- "de-DE": BO,
- "el-GR": VO,
- "en-US": HO,
- "es-ES": UO,
- "et-EE": WO,
- "fi-FI": GO,
- "fr-FR": KO,
- "he-IL": qO,
- "hr-HR": JO,
- "hu-HU": YO,
- "it-IT": XO,
- "ja-JP": ZO,
- "ko-KR": QO,
- "lt-LT": $O,
- "lv-LV": ek,
- "nb-NO": tk,
- "nl-NL": nk,
- "pl-PL": rk,
- "pt-BR": ik,
- "pt-PT": ak,
- "ro-RO": ok,
- "ru-RU": sk,
- "sk-SK": ck,
- "sl-SI": lk,
- "sr-SP": uk,
- "sv-SE": dk,
- "tr-TR": fk,
- "uk-UA": pk,
- "zh-CN": mk,
- "zh-TW": hk
+gk = { dismiss: "關閉" };
+// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
+var _k = {};
+_k = {
+ "ar-AE": LO,
+ "bg-BG": RO,
+ "cs-CZ": zO,
+ "da-DK": BO,
+ "de-DE": VO,
+ "el-GR": HO,
+ "en-US": UO,
+ "es-ES": WO,
+ "et-EE": GO,
+ "fi-FI": KO,
+ "fr-FR": qO,
+ "he-IL": JO,
+ "hr-HR": YO,
+ "hu-HU": XO,
+ "it-IT": ZO,
+ "ja-JP": QO,
+ "ko-KR": $O,
+ "lt-LT": ek,
+ "lv-LV": tk,
+ "nb-NO": nk,
+ "nl-NL": rk,
+ "pl-PL": ik,
+ "pt-BR": ak,
+ "pt-PT": ok,
+ "ro-RO": sk,
+ "ru-RU": ck,
+ "sk-SK": lk,
+ "sl-SI": uk,
+ "sr-SP": dk,
+ "sv-SE": fk,
+ "tr-TR": pk,
+ "uk-UA": mk,
+ "zh-CN": hk,
+ "zh-TW": gk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Use(e) {
+function Hse(e) {
return e && e.__esModule ? e.default : e;
}
-function _k(e) {
- let { onDismiss: t, ...n } = e, r = Ow(n, Vw(Use(gk), "@react-aria/overlays").format("dismiss")), i = () => {
+function vk(e) {
+ let { onDismiss: t, ...n } = e, r = Pw(n, Kw(Hse(_k), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(gE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28135,35 +28135,35 @@ function _k(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var vk = [];
-function yk(e, t) {
+var yk = [];
+function bk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !vk.includes(t)) return vk.push(t), () => {
- let e = vk.indexOf(t);
- e >= 0 && vk.splice(e, 1);
+ if (i && !yk.includes(t)) return yk.push(t), () => {
+ let e = yk.indexOf(t);
+ e >= 0 && yk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- vk[vk.length - 1] === t && n && n();
+ yk[yk.length - 1] === t && n && n();
}, u = (e) => {
- let n = vk[vk.length - 1];
+ let n = yk[yk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (vk[vk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = JC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (yk[yk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = ew({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Dse({
+ Ese({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = tE({
+ let { focusWithinProps: p } = aE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Hoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Roe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28175,87 +28175,87 @@ function yk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var Wse = 200, Gse = 50, Kse = 600, bk = /* @__PURE__ */ new WeakMap(), xk = /* @__PURE__ */ new Set(), Sk = /* @__PURE__ */ new Set();
-function qse(e, t) {
- let n = Tw();
- if (e !== n || t.aborted) for (let e of Sk) e(n), Sk.delete(e);
- if (!e && n && YS() && !t.aborted) window.clearInterval(bk.get(window)), bk.set(window, Ck(Wse));
+var Use = 200, Wse = 50, Gse = 600, xk = /* @__PURE__ */ new WeakMap(), Sk = /* @__PURE__ */ new Set(), Ck = /* @__PURE__ */ new Set();
+function Kse(e, t) {
+ let n = jw();
+ if (e !== n || t.aborted) for (let e of Ck) e(n), Ck.delete(e);
+ if (!e && n && tC() && !t.aborted) window.clearInterval(xk.get(window)), xk.set(window, wk(Use));
else {
- if (e !== n || t.aborted) for (let e of xk) e(n), xk.delete(e);
- (Sk.size + xk.size <= 0 || t.aborted) && (window.clearInterval(bk.get(window)), bk.delete(window));
+ if (e !== n || t.aborted) for (let e of Sk) e(n), Sk.delete(e);
+ (Ck.size + Sk.size <= 0 || t.aborted) && (window.clearInterval(xk.get(window)), xk.delete(window));
}
}
-function Ck(e = Kse) {
- return window.setInterval(qse, Gse, Tw(), AbortSignal.timeout(e));
+function wk(e = Gse) {
+ return window.setInterval(Kse, Wse, jw(), AbortSignal.timeout(e));
}
-function wk(e) {
- if (!Sw()) return e(!1), () => {};
+function Tk(e) {
+ if (!Ow()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Cw(document.hasFocus() ? AS() : null);
- if (Tw() === t || Tw() && !t) return e(t);
- Sk.add(e), bk.has(window) || bk.set(window, Ck());
+ let t = kw(document.hasFocus() ? IS() : null);
+ if (jw() === t || jw() && !t) return e(t);
+ Ck.add(e), xk.has(window) || xk.set(window, wk());
});
});
return () => {
- window.cancelAnimationFrame(t), Sk.delete(e);
+ window.cancelAnimationFrame(t), Ck.delete(e);
};
}
-function Jse(e) {
- if (!Sw()) return e(!1), () => {};
+function qse(e) {
+ if (!Ow()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Cw(document.hasFocus() ? AS() : null);
- if (Tw() === t) return e(t);
- xk.add(e), bk.has(window) || bk.set(window, Ck());
+ let t = kw(document.hasFocus() ? IS() : null);
+ if (jw() === t) return e(t);
+ Sk.add(e), xk.has(window) || xk.set(window, wk());
});
});
return () => {
- window.cancelAnimationFrame(t), xk.delete(e);
+ window.cancelAnimationFrame(t), Sk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Tk = typeof document < "u" && window.visualViewport, Ek = 0, Dk;
-function Ok(e = {}) {
+var Ek = typeof document < "u" && window.visualViewport, Dk = 0, Ok;
+function kk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- RS(() => {
- if (!t) return Ek++, Ek === 1 && (Dk = JS() && YS() ? Xse() : Yse(n)), () => {
- Ek--, Ek === 0 && Dk();
+ WS(() => {
+ if (!t) return Dk++, Dk === 1 && (Ok = eC() && tC() ? Yse() : Jse(n)), () => {
+ Dk--, Dk === 0 && Ok();
};
}, [t, n]);
}
-function Yse(e) {
+function Jse(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return PC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? DS(document.documentElement, "scrollbar-gutter", "stable") : DS(document.documentElement, "padding-right", `${t}px`)), DS(document.documentElement, "overflow", "hidden"), e && Ak(), e && Sw() && kk());
+ return BC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? NS(document.documentElement, "scrollbar-gutter", "stable") : NS(document.documentElement, "padding-right", `${t}px`)), NS(document.documentElement, "overflow", "hidden"), e && jk(), e && Ow() && Ak());
}
-function Xse() {
- let e = DS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function Yse() {
+ let e = NS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = NT(r, !0) ? r : PT(r, !0), n = !1;
+ t = LT(r, !0) ? r : RT(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Zw();
+ }, i = document.createElement("style"), a = tT();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = Ak(), c = PC(ES(document, "touchstart", r, {
+ }, s = jk(), c = BC(MS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), ES(document, "touchmove", o, {
+ }), MS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), kk());
+ }), Ak());
return () => {
e(), c(), i.remove(), s();
};
}
-function kk() {
- return ES(document, "blur", (e) => {
+function Ak() {
+ return MS(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && Cw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && kw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Ak() {
+function jk() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28266,9 +28266,9 @@ function Ak() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- AS() === this && Zse(this);
+ IS() === this && Xse(this);
};
- wk((t) => t ? e() : Jse(() => e()));
+ Tk((t) => t ? e() : qse(() => e()));
}
}
}), () => {
@@ -28279,15 +28279,15 @@ function Ak() {
});
};
}
-function Zse(e) {
+function Xse(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = PT(n);
+ let e = RT(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Tk && (n = Math.min(n, Tk.offsetTop + Tk.height));
+ Ek && (n = Math.min(n, Ek.offsetTop + Ek.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -28299,19 +28299,19 @@ function Zse(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Qse(e, t, n) {
- let { overlayProps: r, underlayProps: i } = yk({
+function Zse(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = bk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Ok({
+ kk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), MD();
+ }), ND();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? SE(n.current) : xE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? CE(n.current) : SE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28322,33 +28322,33 @@ function Qse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var jk = {
+var Mk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Mk = {
+}, Nk = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, $se = {
+}, Qse = {
top: "left",
left: "top"
-}, Nk = {
+}, Pk = {
top: "height",
left: "width"
-}, Pk = {
+}, Fk = {
width: "totalWidth",
height: "totalHeight"
-}, Fk = {}, ece = () => typeof document < "u" ? window.visualViewport : null;
-function Ik(e, t) {
+}, Ik = {}, $se = () => typeof document < "u" ? window.visualViewport : null;
+function Lk(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = Hk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return YS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Uk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return tC() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -28358,7 +28358,7 @@ function Ik(e, t) {
left: s
};
}
-function tce(e) {
+function ece(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28366,11 +28366,11 @@ function tce(e) {
height: e.scrollHeight
};
}
-function Lk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Nk[e]], l = o[e] + r.scroll[jk[e]] + a, u = o[e] + r.scroll[jk[e]] + c - a, d = t - s + r.scroll[jk[e]] + o[e] - r[jk[e]], f = t - s + n + r.scroll[jk[e]] + o[e] - r[jk[e]];
+function Rk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Pk[e]], l = o[e] + r.scroll[Mk[e]] + a, u = o[e] + r.scroll[Mk[e]] + c - a, d = t - s + r.scroll[Mk[e]] + o[e] - r[Mk[e]], f = t - s + n + r.scroll[Mk[e]] + o[e] - r[Mk[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function nce(e) {
+function tce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28379,55 +28379,55 @@ function nce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Rk(e) {
- if (Fk[e]) return Fk[e];
- let [t, n] = e.split(" "), r = jk[t] || "right", i = $se[r];
- jk[n] || (n = "center");
- let a = Nk[r], o = Nk[i];
- return Fk[e] = {
+function zk(e) {
+ if (Ik[e]) return Ik[e];
+ let [t, n] = e.split(" "), r = Mk[t] || "right", i = Qse[r];
+ Mk[n] || (n = "center");
+ let a = Pk[r], o = Pk[i];
+ return Ik[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Fk[e];
+ }, Ik[e];
}
-function zk(e, t, n, r, i, a, o, s, c, l, u) {
+function Bk(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = iE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Pk[h]];
- _[Mk[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = cE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Fk[h]];
+ _[Nk[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function rce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Pk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function nce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Fk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function Bk(e, t, n, r, i, a, o, s) {
+function Vk(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Mk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Mk[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Nk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Nk[l]] - i);
}
-function ice(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Rk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = zk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Bk(s, l, t, i, a + u, v, c, g);
+function rce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = zk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Bk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Vk(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Rk(`${Mk[S]} ${C}`), r = zk(t, s, n, e, u, d, l, f, m, h, c);
- Bk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = zk(`${Nk[S]} ${C}`), r = Bk(t, s, n, e, u, d, l, f, m, h, c);
+ Vk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = Lk(b, w[b], n[x], s, c, a, l);
+ let O = Rk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = rce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = zk(t, s, n, v, T, d, l, f, m, h, c), O = Lk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[jk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = jk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = iE(iE(M, t[b] + m / 2 - (w[b] + i[jk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[jk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = nce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Bk(t, s, n, v, T, d, l, f, m, h, c), O = Rk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Mk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Mk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = cE(cE(M, t[b] + m / 2 - (w[b] + i[Mk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Mk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28441,17 +28441,17 @@ function ice(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function ace(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = ece(), h = r instanceof HTMLElement ? oce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Hk(n, !1, p) : Uk(n, h, !1, p);
+function ice(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = $se(), h = r instanceof HTMLElement ? ace(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Uk(n, !1, p) : Wk(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = Hk(r, !0), x = nce(r);
+ let b = Uk(r, !0), x = tce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = tce(i), C = Ik(s, m), w = Ik(h, m), T;
+ let S = ece(i), C = Lk(s, m), w = Lk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Vk(h, !1);
+ let e = Hk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28463,11 +28463,11 @@ function ace(e) {
left: 0,
width: 0,
height: 0
- } : Uk(s, h, !1);
- let E = kS(s, h);
- return ice(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Wk(s, h, !1);
+ let E = FS(s, h);
+ return rce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Vk(e, t) {
+function Hk(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -28476,8 +28476,8 @@ function Vk(e, t) {
height: a
};
}
-function Hk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Vk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Uk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Hk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28485,29 +28485,29 @@ function Hk(e, t, n) {
height: o
};
}
-function Uk(e, t, n, r) {
+function Wk(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Vk(e, n);
+ if (i.position === "fixed") a = r || Hk(e, n);
else {
- a = Hk(e, n, r);
- let i = Hk(t, n), o = window.getComputedStyle(t);
+ a = Uk(e, n, r);
+ let i = Uk(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function oce(e) {
+function ace(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Wk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Wk(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Gk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Gk(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Wk(e) {
+function Gk(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Gk = typeof document < "u" ? window.visualViewport : null;
-function sce(e) {
- let { direction: t } = Pw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var Kk = typeof document < "u" ? window.visualViewport : null;
+function oce(e) {
+ let { direction: t } = Bw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28524,15 +28524,15 @@ function sce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Gk?.scale);
+ ], S = (0, F.useRef)(Kk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Gk?.scale);
+ m && (S.current = Kk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Gk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Kk?.scale !== S.current) return;
let e = null;
- if (o.current && MS(o.current)) {
- let t = AS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && RS(o.current)) {
+ let t = IS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28540,8 +28540,8 @@ function sce(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = ace({
- placement: Kk(s, t),
+ let y = ice({
+ placement: cce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28551,28 +28551,28 @@ function sce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Vk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Hk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = AS();
+ let x = IS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- RS(C, x), cce(C), FO({
+ WS(C, x), sce(C), IO({
ref: i,
onResize: C
- }), FO({
+ }), IO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- RS(() => {
+ WS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28580,16 +28580,16 @@ function sce(e) {
}, n = () => {
w.current && t();
};
- Gk?.addEventListener("resize", t), Gk?.addEventListener("scroll", n);
- let r = ES(jS(window), "scroll", n);
+ Kk?.addEventListener("resize", t), Kk?.addEventListener("scroll", n);
+ let r = MS(LS(window), "scroll", n);
return () => {
- Gk?.removeEventListener("resize", t), Gk?.removeEventListener("scroll", n), r();
+ Kk?.removeEventListener("resize", t), Kk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return _se({
+ return gse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28615,24 +28615,24 @@ function sce(e) {
updatePosition: C
};
}
-function cce(e) {
- RS(() => (window.addEventListener("resize", e, !1), () => {
+function sce(e) {
+ WS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Kk(e, t) {
+function cce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function qk(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = yk({
+function lce(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = bk({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = sce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = oce({
...c,
targetRef: n,
overlayRef: r,
@@ -28640,15 +28640,15 @@ function qk(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Ok({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? SE(i?.current ?? r.current) : xE([i?.current ?? r.current], { shouldUseInert: !0 });
+ kk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? CE(i?.current ?? r.current) : SE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = tE(e);
+ let { focusWithinProps: g } = aE(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28658,12 +28658,12 @@ function qk(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Jk = /* @__PURE__ */ new WeakMap();
+var qk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function lce(e, t, n) {
+function uce(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = iT({
+ }, { pressProps: g, isPressed: _ } = cT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28671,7 +28671,7 @@ function lce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = iT({
+ }), { pressProps: v, isPressed: y } = cT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28681,11 +28681,11 @@ function lce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = QC(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Ww(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = iw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Jw(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Jk.get(t);
- BT(n, t.defaultSelectedValue, t.setSelectedValue), VT({ validationBehavior: O }, t, n);
- let k = HT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = qk.get(t);
+ WT(n, t.defaultSelectedValue, t.setSelectedValue), GT({ validationBehavior: O }, t, n);
+ let k = KT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28716,13 +28716,13 @@ function lce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function uce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Pw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = eE({
+function dce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Bw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = iE({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Ww(e, { labelable: !0 }), { focusWithinProps: v } = tE({
+ }), _ = Jw(e, { labelable: !0 }), { focusWithinProps: v } = aE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28730,13 +28730,13 @@ function uce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = ET(n.currentTarget, {
+ let r = AT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof CS(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof kS(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = JC({
+ let { keyboardProps: b } = ew({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28744,8 +28744,8 @@ function uce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = RC(n);
- return Jk.set(t, {
+ }), x = WC(n);
+ return qk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28773,21 +28773,21 @@ function uce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Yk = /* @__PURE__ */ new WeakMap();
-function dce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ED({
+var Jk = /* @__PURE__ */ new WeakMap();
+function fce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = DD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new OE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new kE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = fD({
+ ]), { menuTriggerProps: d, menuProps: f } = pD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = JC({
+ }, t, n), { keyboardProps: p } = ew({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28803,21 +28803,21 @@ function dce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = mD({
+ }), { typeSelectProps: m } = hD({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = eE({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = iE({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Ww(e, { labelable: !0 }), C = K(m, d, y), w = RC();
- return Yk.set(t, {
+ let S = Jw(e, { labelable: !0 }), C = K(m, d, y), w = WC();
+ return Jk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28827,13 +28827,13 @@ function dce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), CC("keyboard"));
+ e.isDisabled || (n.current?.focus(), kC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: PC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: BC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28857,7 +28857,7 @@ function dce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- kS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ FS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28877,13 +28877,13 @@ function dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function fce(e, t, n) {
- let r = Yk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = dE({ style: {
+function pce(e, t, n) {
+ let r = Jk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = hE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- BT(e.selectRef, t.defaultValue, t.setValue), VT({
+ WT(e.selectRef, t.defaultValue, t.setValue), GT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28913,8 +28913,8 @@ function fce(e, t, n) {
}
};
}
-function pce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = fce({
+function mce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = pce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28938,7 +28938,7 @@ function pce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Yk.get(t) || {};
+ let { validationBehavior: e } = Jk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -28968,8 +28968,8 @@ function pce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function mce(e) {
- let t = Ww(e, { labelable: !0 }), n;
+function hce(e) {
+ let t = Jw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -28977,8 +28977,8 @@ function mce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function hce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = ZT(e, t, n);
+function gce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = tE(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -28991,10 +28991,10 @@ function hce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Xk = class {
+var Yk = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new gce(e.layout) : new DE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new _ce(e.layout) : new OE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29030,7 +29030,7 @@ var Xk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of _D(n, this.collection)) {
+ for (let e of vD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29064,13 +29064,13 @@ var Xk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = _D(t, this.collection);
- return (this.direction === "rtl" ? bD(e)?.key : vD(e)?.key) ?? null;
+ let e = vD(t, this.collection);
+ return (this.direction === "rtl" ? xD(e)?.key : yD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = _D(n, this.collection), i = (this.direction === "rtl" ? yD(r, t.index - 1) : yD(r, t.index + 1)) ?? null;
+ let r = vD(n, this.collection), i = (this.direction === "rtl" ? bD(r, t.index - 1) : bD(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -29079,13 +29079,13 @@ var Xk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = _D(t, this.collection);
- return (this.direction === "rtl" ? vD(e)?.key : bD(e)?.key) ?? null;
+ let e = vD(t, this.collection);
+ return (this.direction === "rtl" ? yD(e)?.key : xD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = _D(n, this.collection), i = (this.direction === "rtl" ? yD(r, t.index + 1) : yD(r, t.index - 1)) ?? null;
+ let r = vD(n, this.collection), i = (this.direction === "rtl" ? bD(r, t.index + 1) : bD(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -29096,13 +29096,13 @@ var Xk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? vD(_D(e, this.collection))?.key ?? null : null;
+ return e ? yD(vD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = vD(_D(e, this.collection))?.key ?? null;
+ n = yD(vD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29112,13 +29112,13 @@ var Xk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? bD(_D(e, this.collection))?.key ?? null : null;
+ return e ? xD(vD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = bD(_D(e, this.collection))?.key ?? null;
+ n = xD(vD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29154,13 +29154,13 @@ var Xk = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? vD(_D(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? yD(vD(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, gce = class {
+}, _ce = class {
constructor(e) {
this.layout = e;
}
@@ -29173,15 +29173,15 @@ var Xk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Zk = /* @__PURE__ */ new WeakMap();
+}, Xk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function _ce(e, t, n) {
+function vce(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = ED({
+ let h = DD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Pw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Xk({
+ }), { direction: g } = Bw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Yk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29198,7 +29198,7 @@ function _ce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = gD({
+ ]), { collectionProps: y } = _D({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29206,8 +29206,8 @@ function _ce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = RC(e.id);
- Zk.set(t, {
+ }), b = WC(e.id);
+ Xk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29216,42 +29216,42 @@ function _ce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = TO({
+ let x = EO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Ww(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? kS(e.currentTarget, G(e)) || m.setFocused(!1) : kS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Jw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? FS(e.currentTarget, G(e)) || m.setFocused(!1) : FS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = wO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = TO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), SO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), CO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Qk = /* @__PURE__ */ new WeakMap();
-function $k(e) {
+var Zk = /* @__PURE__ */ new WeakMap();
+function Qk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function eA(e, t) {
- let n = Qk.get(e);
+function $k(e, t) {
+ let n = Zk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${$k(t)}`;
+ return `${n}-${Qk(t)}`;
}
-function tA(e, t, n) {
- let r = Qk.get(e);
+function eA(e, t, n) {
+ let r = Zk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${$k(t)}-${$k(n)}`;
+ return `${r}-${Qk(t)}-${Qk(n)}`;
}
-function nA(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => tA(e, t, n)).join(" ");
+function tA(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => eA(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var rA = {};
-rA = {
+var nA = {};
+nA = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -29265,8 +29265,8 @@ rA = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var iA = {};
-iA = {
+var rA = {};
+rA = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -29280,8 +29280,8 @@ iA = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var aA = {};
-aA = {
+var iA = {};
+iA = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29295,8 +29295,8 @@ aA = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var oA = {};
-oA = {
+var aA = {};
+aA = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29310,8 +29310,8 @@ oA = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var sA = {};
-sA = {
+var oA = {};
+oA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29325,8 +29325,8 @@ sA = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var cA = {};
-cA = {
+var sA = {};
+sA = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -29340,8 +29340,8 @@ cA = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var lA = {};
-lA = {
+var cA = {};
+cA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29355,8 +29355,8 @@ lA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var uA = {};
-uA = {
+var lA = {};
+lA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29370,8 +29370,8 @@ uA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var dA = {};
-dA = {
+var uA = {};
+uA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29385,8 +29385,8 @@ dA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var fA = {};
-fA = {
+var dA = {};
+dA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29400,8 +29400,8 @@ fA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var pA = {};
-pA = {
+var fA = {};
+fA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29415,8 +29415,8 @@ pA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var mA = {};
-mA = {
+var pA = {};
+pA = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -29430,8 +29430,8 @@ mA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var hA = {};
-hA = {
+var mA = {};
+mA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29445,8 +29445,8 @@ hA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var gA = {};
-gA = {
+var hA = {};
+hA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29460,8 +29460,8 @@ gA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var _A = {};
-_A = {
+var gA = {};
+gA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29475,8 +29475,8 @@ _A = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var vA = {};
-vA = {
+var _A = {};
+_A = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29490,8 +29490,8 @@ vA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var yA = {};
-yA = {
+var vA = {};
+vA = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -29505,8 +29505,8 @@ yA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var bA = {};
-bA = {
+var yA = {};
+yA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29520,8 +29520,8 @@ bA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var xA = {};
-xA = {
+var bA = {};
+bA = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -29535,8 +29535,8 @@ xA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var SA = {};
-SA = {
+var xA = {};
+xA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29550,8 +29550,8 @@ SA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var CA = {};
-CA = {
+var SA = {};
+SA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29565,8 +29565,8 @@ CA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var wA = {};
-wA = {
+var CA = {};
+CA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29580,8 +29580,8 @@ wA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var TA = {};
-TA = {
+var wA = {};
+wA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29595,8 +29595,8 @@ TA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var EA = {};
-EA = {
+var TA = {};
+TA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29610,8 +29610,8 @@ EA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var DA = {};
-DA = {
+var EA = {};
+EA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29625,8 +29625,8 @@ DA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var OA = {};
-OA = {
+var DA = {};
+DA = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -29640,8 +29640,8 @@ OA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var kA = {};
-kA = {
+var OA = {};
+OA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29655,8 +29655,8 @@ kA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var AA = {};
-AA = {
+var kA = {};
+kA = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -29670,8 +29670,8 @@ AA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var jA = {};
-jA = {
+var AA = {};
+AA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29685,8 +29685,8 @@ jA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var MA = {};
-MA = {
+var jA = {};
+jA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29700,8 +29700,8 @@ MA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var NA = {};
-NA = {
+var MA = {};
+MA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29715,8 +29715,8 @@ NA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var PA = {};
-PA = {
+var NA = {};
+NA = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -29730,8 +29730,8 @@ PA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var FA = {};
-FA = {
+var PA = {};
+PA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29745,8 +29745,8 @@ FA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var IA = {};
-IA = {
+var FA = {};
+FA = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -29760,45 +29760,45 @@ IA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var LA = {};
-LA = {
- "ar-AE": rA,
- "bg-BG": iA,
- "cs-CZ": aA,
- "da-DK": oA,
- "de-DE": sA,
- "el-GR": cA,
- "en-US": lA,
- "es-ES": uA,
- "et-EE": dA,
- "fi-FI": fA,
- "fr-FR": pA,
- "he-IL": mA,
- "hr-HR": hA,
- "hu-HU": gA,
- "it-IT": _A,
- "ja-JP": vA,
- "ko-KR": yA,
- "lt-LT": bA,
- "lv-LV": xA,
- "nb-NO": SA,
- "nl-NL": CA,
- "pl-PL": wA,
- "pt-BR": TA,
- "pt-PT": EA,
- "ro-RO": DA,
- "ru-RU": OA,
- "sk-SK": kA,
- "sl-SI": AA,
- "sr-SP": jA,
- "sv-SE": MA,
- "tr-TR": NA,
- "uk-UA": PA,
- "zh-CN": FA,
- "zh-TW": IA
+var IA = {};
+IA = {
+ "ar-AE": nA,
+ "bg-BG": rA,
+ "cs-CZ": iA,
+ "da-DK": aA,
+ "de-DE": oA,
+ "el-GR": sA,
+ "en-US": cA,
+ "es-ES": lA,
+ "et-EE": uA,
+ "fi-FI": dA,
+ "fr-FR": fA,
+ "he-IL": pA,
+ "hr-HR": mA,
+ "hu-HU": hA,
+ "it-IT": gA,
+ "ja-JP": _A,
+ "ko-KR": vA,
+ "lt-LT": yA,
+ "lv-LV": bA,
+ "nb-NO": xA,
+ "nl-NL": SA,
+ "pl-PL": CA,
+ "pt-BR": wA,
+ "pt-PT": TA,
+ "ro-RO": EA,
+ "ru-RU": DA,
+ "sk-SK": OA,
+ "sl-SI": kA,
+ "sr-SP": AA,
+ "sv-SE": jA,
+ "tr-TR": MA,
+ "uk-UA": NA,
+ "zh-CN": PA,
+ "zh-TW": FA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var vce = class extends Xk {
+var yce = class extends Yk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29806,7 +29806,7 @@ var vce = class extends Xk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = vD(_D(n, this.collection));
+ let e = yD(vD(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -29827,13 +29827,13 @@ var vce = class extends Xk {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of _D(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of vD(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [..._D(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...vD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29862,7 +29862,7 @@ var vce = class extends Xk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of _D(o, this.collection)) {
+ for (let r of vD(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -29875,14 +29875,14 @@ var vce = class extends Xk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function yce(e) {
+function bce(e) {
return e && e.__esModule ? e.default : e;
}
-function bce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ED({
+function xce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = DD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Pw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new vce({
+ }), { direction: c } = Bw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new yce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29901,51 +29901,51 @@ function bce(e, t, n) {
s,
a,
o
- ]), d = RC(e.id);
- Qk.set(t, d);
- let { gridProps: f } = _ce({
+ ]), d = WC(e.id);
+ Zk.set(t, d);
+ let { gridProps: f } = vce({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = Vw(yce(LA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Kw(bce(IA), "@react-aria/table"), g = (0, F.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = zT(g);
- return MT(() => {
- g && jT(g, "assertive", 500);
+ ]), _ = UT(g);
+ return IT(() => {
+ g && FT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function RA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Pw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Zk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function LA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Bw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Xk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = ET(n.current);
+ let e = AT(n.current);
if (p === "child") {
- let i = AS(SS(n.current));
- if (MS(n.current) && n.current !== i) return;
- let a = SS(n.current);
+ let i = IS(OS(n.current));
+ if (RS(n.current) && n.current !== i) return;
+ let a = OS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && kS(n.current, e)) {
- NC(e);
+ if (e && m.current === r.key && FS(n.current, e)) {
+ zC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? zA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? RA(e) : e.firstChild();
if (o) {
- NC(o);
+ zC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !MS(n.current)) && NC(n.current);
+ (m.current != null && r.key !== m.current || !RS(n.current)) && zC(n.current);
}
- }, { itemProps: _, isPressed: v } = DO({
+ }, { itemProps: _, isPressed: v } = OO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -29957,44 +29957,44 @@ function RA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = AS(SS(n.current));
- if (!kS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = ET(n.current);
+ let i = IS(OS(n.current));
+ if (!FS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = AT(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), LT(t, { containingElement: PT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) zC(t), VT(t, { containingElement: RT(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (NC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : zA(a), t && (NC(t), LT(t, { containingElement: PT(n.current) })));
+ p === "cell" && l === "rtl" ? (zC(n.current), VT(n.current, { containingElement: RT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : RA(a), t && (zC(t), VT(t, { containingElement: RT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), LT(t, { containingElement: PT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) zC(t), VT(t, { containingElement: RT(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (NC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? zA(a) : a.firstChild(), t && (NC(t), LT(t, { containingElement: PT(n.current) })));
+ p === "cell" && l === "ltr" ? (zC(n.current), VT(n.current, { containingElement: RT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? RA(a) : a.firstChild(), t && (zC(t), VT(t, { containingElement: RT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && kS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && FS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = AS(SS(n.current));
- if (kS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = IS(OS(n.current));
+ if (FS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = ET(n.current, { tabbable: !0 });
+ let t = AT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30005,9 +30005,9 @@ function RA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && kS(n.current, i) && (h.current = i), xC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && kS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && AS(SS(n.current)) === n.current && g();
+ n.current && FS(n.current, i) && (h.current = i), DC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && FS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && IS(OS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30022,7 +30022,7 @@ function RA(e, t, n) {
isPressed: v
};
}
-function zA(e) {
+function RA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30030,32 +30030,32 @@ function zA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function xce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = RA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = tA(t, e.node.parentKey, a)), {
+function Sce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = LA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = eA(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Sce(e) {
+function Cce(e) {
return e && e.__esModule ? e.default : e;
}
-function Cce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = RA({
+function wce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = LA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = iT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = cT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = QC({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !ZS() && (u = d ? f : "none");
- let p = Vw(Sce(LA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && ZS() && (m = `${m}, ${p.format(f)}`));
- let h = zT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = iw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !rC() && (u = d ? f : "none");
+ let p = Kw(Cce(IA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && rC() && (m = `${m}, ${p.format(f)}`));
+ let h = UT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30066,7 +30066,7 @@ function Cce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: eA(t, r.key),
+ id: $k(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30074,17 +30074,17 @@ function Cce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function wce(e) {
+function Tce(e) {
return e && e.__esModule ? e.default : e;
}
-function Tce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Vw(wce(LA), "@react-aria/table"), d = RC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Pw(), b = (0, F.useCallback)((e) => {
+function Ece(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Kw(Tce(IA), "@react-aria/table"), d = WC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Bw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && NC(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && zC(i.current)), m.current = null;
}, [
t,
i,
@@ -30092,14 +30092,14 @@ function Tce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = JC({ shortcuts: {
+ }, { keyboardProps: w } = ew({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = lE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = pE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30115,12 +30115,12 @@ function Tce(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = wC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = AC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = zT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = UT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${eA(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${$k(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30128,11 +30128,11 @@ function Tce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && NC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Ew(b);
+ n.current && zC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Mw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = AS() === n.current, ne(r);
+ h.current = IS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30148,7 +30148,7 @@ function Tce(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = iT({
+ }, { pressProps: I } = cT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30156,7 +30156,7 @@ function Tce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = dE();
+ }), { visuallyHiddenProps: ie } = hE();
return {
resizerProps: K(w, {
...E,
@@ -30175,19 +30175,19 @@ function Tce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Ece(e, t, n) {
+function Dce(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Dce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Zk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = DO({
+function Oce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Xk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = OO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? PC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? BC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30201,10 +30201,10 @@ function Dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Oce(e) {
+function kce(e) {
return e && e.__esModule ? e.default : e;
}
-var BA = {
+var zA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30214,21 +30214,21 @@ var BA = {
rtl: "ArrowRight"
}
};
-function kce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Dce(e, t, n), { direction: s } = Pw();
+function Ace(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Oce(e, t, n), { direction: s } = Bw();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Vw(Oce(LA), "@react-aria/table"), u = Ow({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Kw(kce(IA), "@react-aria/table"), u = Pw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": nA(t, r.key)
+ "aria-labelledby": tA(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = VA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = VA(t.collection, a);
+ let n = BA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = BA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === BA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === BA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === zA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === zA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30246,42 +30246,42 @@ function kce(e, t, n) {
};
}
}
- let p = tC(r.props), m = o.hasAction ? p : {};
+ let p = sC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": nA(t, r.key)
+ "aria-labelledby": tA(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function VA(e, t) {
+function BA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Ace() {
+function jce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function HA() {
- return Ace();
+function VA() {
+ return jce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function jce(e) {
+function Mce(e) {
return e && e.__esModule ? e.default : e;
}
-function Mce(e, t) {
- let { key: n } = e, { checkboxProps: r } = NO(e, t);
+function Nce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = PO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${nA(t, n)}`
+ "aria-labelledby": `${r.id} ${tA(t, n)}`
} };
}
-function Nce(e) {
+function Pce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Vw(jce(LA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Kw(Mce(IA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -30289,22 +30289,22 @@ function Nce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var UA = /* @__PURE__ */ new WeakMap();
-function WA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${UA.get(e)}-${n}-${t}`) : "";
+var HA = /* @__PURE__ */ new WeakMap();
+function UA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${HA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Pce(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = DO({
+function Fce(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = OO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = WA(t, r, "tab"), m = WA(t, r, "tabpanel"), { tabIndex: h } = d, g = Ww(u?.props, { labelable: !0 });
+ }), p = UA(t, r, "tab"), m = UA(t, r, "tabpanel"), { tabIndex: h } = d, g = Jw(u?.props, { labelable: !0 });
delete g.id;
- let _ = nC(u?.props), { focusableProps: v } = QC({
+ let _ = cC(u?.props), { focusableProps: v } = iw({
...u?.props,
isDisabled: l
}, n);
@@ -30323,7 +30323,7 @@ function Pce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Fce = class {
+var Ice = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30366,11 +30366,11 @@ var Fce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Ice(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Pw(), { collectionProps: l } = gD({
+function Lce(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Bw(), { collectionProps: l } = _D({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Fce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Ice(a, c, r, s), [
a,
s,
r,
@@ -30380,9 +30380,9 @@ function Ice(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = RC();
- return UA.set(t, u), { tabListProps: {
- ...K(l, Ow({
+ }), u = WC();
+ return HA.set(t, u), { tabListProps: {
+ ...K(l, Pw({
...e,
id: u
})),
@@ -30392,12 +30392,12 @@ function Ice(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Lce(e, t, n) {
- let r = wO(n) ? void 0 : 0, i = WA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Ow({
+function Rce(e, t, n) {
+ let r = TO(n) ? void 0 : 0, i = UA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Pw({
...e,
id: i,
- "aria-labelledby": WA(t, t?.selectedKey, "tab")
+ "aria-labelledby": UA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30406,265 +30406,265 @@ function Lce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function Rce(e, t, n) {
- let { gridProps: r } = jse(e, t, n);
+function zce(e, t, n) {
+ let { gridProps: r } = Ase(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var GA = {};
-GA = {
+var WA = {};
+WA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var KA = {};
-KA = {
+var GA = {};
+GA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var qA = {};
-qA = {
+var KA = {};
+KA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var JA = {};
-JA = {
+var qA = {};
+qA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var YA = {};
-YA = {
+var JA = {};
+JA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var XA = {};
-XA = {
+var YA = {};
+YA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var ZA = {};
-ZA = {
+var XA = {};
+XA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var QA = {};
-QA = {
+var ZA = {};
+ZA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var $A = {};
-$A = {
+var QA = {};
+QA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var ej = {};
-ej = {
+var $A = {};
+$A = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var tj = {};
-tj = {
+var ej = {};
+ej = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var nj = {};
-nj = {
+var tj = {};
+tj = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var rj = {};
-rj = {
+var nj = {};
+nj = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var ij = {};
-ij = {
+var rj = {};
+rj = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var aj = {};
-aj = {
+var ij = {};
+ij = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var oj = {};
-oj = {
+var aj = {};
+aj = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var sj = {};
-sj = {
+var oj = {};
+oj = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var cj = {};
-cj = {
+var sj = {};
+sj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var lj = {};
-lj = {
+var cj = {};
+cj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var uj = {};
-uj = {
+var lj = {};
+lj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var dj = {};
-dj = {
+var uj = {};
+uj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var fj = {};
-fj = {
+var dj = {};
+dj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var pj = {};
-pj = {
+var fj = {};
+fj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var mj = {};
-mj = {
+var pj = {};
+pj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var hj = {};
-hj = {
+var mj = {};
+mj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var gj = {};
-gj = {
+var hj = {};
+hj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var _j = {};
-_j = {
+var gj = {};
+gj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var vj = {};
-vj = {
+var _j = {};
+_j = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var yj = {};
-yj = {
+var vj = {};
+vj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var bj = {};
-bj = {
+var yj = {};
+yj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var xj = {};
-xj = {
+var bj = {};
+bj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var Sj = {};
-Sj = {
+var xj = {};
+xj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var Cj = {};
-Cj = {
+var Sj = {};
+Sj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var wj = {};
-wj = {
+var Cj = {};
+Cj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var Tj = {};
-Tj = {
- "ar-AE": GA,
- "bg-BG": KA,
- "cs-CZ": qA,
- "da-DK": JA,
- "de-DE": YA,
- "el-GR": XA,
- "en-US": ZA,
- "es-ES": QA,
- "et-EE": $A,
- "fi-FI": ej,
- "fr-FR": tj,
- "he-IL": nj,
- "hr-HR": rj,
- "hu-HU": ij,
- "it-IT": aj,
- "ja-JP": oj,
- "ko-KR": sj,
- "lt-LT": cj,
- "lv-LV": lj,
- "nb-NO": uj,
- "nl-NL": dj,
- "pl-PL": fj,
- "pt-BR": pj,
- "pt-PT": mj,
- "ro-RO": hj,
- "ru-RU": gj,
- "sk-SK": _j,
- "sl-SI": vj,
- "sr-SP": yj,
- "sv-SE": bj,
- "tr-TR": xj,
- "uk-UA": Sj,
- "zh-CN": Cj,
- "zh-TW": wj
+var wj = {};
+wj = {
+ "ar-AE": WA,
+ "bg-BG": GA,
+ "cs-CZ": KA,
+ "da-DK": qA,
+ "de-DE": JA,
+ "el-GR": YA,
+ "en-US": XA,
+ "es-ES": ZA,
+ "et-EE": QA,
+ "fi-FI": $A,
+ "fr-FR": ej,
+ "he-IL": tj,
+ "hr-HR": nj,
+ "hu-HU": rj,
+ "it-IT": ij,
+ "ja-JP": aj,
+ "ko-KR": oj,
+ "lt-LT": sj,
+ "lv-LV": cj,
+ "nb-NO": lj,
+ "nl-NL": uj,
+ "pl-PL": dj,
+ "pt-BR": fj,
+ "pt-PT": pj,
+ "ro-RO": mj,
+ "ru-RU": hj,
+ "sk-SK": gj,
+ "sl-SI": _j,
+ "sr-SP": vj,
+ "sv-SE": yj,
+ "tr-TR": bj,
+ "uk-UA": xj,
+ "zh-CN": Sj,
+ "zh-TW": Cj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function zce(e) {
+function Bce(e) {
return e && e.__esModule ? e.default : e;
}
-function Ej(e, t, n) {
- let { node: r } = e, i = Mse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Vw(zce(Tj), "@react-aria/tree"), s = {
+function Tj(e, t, n) {
+ let { node: r } = e, i = jse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Kw(Bce(wj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...Ow({
+ ...Pw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30675,15 +30675,15 @@ function Ej(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var Dj = "(prefers-reduced-motion: reduce)", Bce = () => matchMedia(Dj).matches, Vce = (e) => {
- let t = matchMedia(Dj);
+var Ej = "(prefers-reduced-motion: reduce)", Vce = () => matchMedia(Ej).matches, Hce = (e) => {
+ let t = matchMedia(Ej);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Oj = /* @__PURE__ */ new Map(), kj = () => {
+}, Dj = /* @__PURE__ */ new Map(), Oj = () => {
let e = document.documentElement;
- Oj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Oj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Dj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Dj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function Hce({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Ex(), a = (0, F.useSyncExternalStore)(Vce, Bce, () => !1), { isFocusVisible: o } = TC(), s = a || o, c = {
+function Uce({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Mx(), a = (0, F.useSyncExternalStore)(Hce, Vce, () => !1), { isFocusVisible: o } = jC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30691,12 +30691,12 @@ function Hce({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Oj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), kj();
+ Dj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Oj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Oj.delete(e), kj();
+ n.disconnect(), window.removeEventListener("resize", t), Dj.delete(e), Oj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(dS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(_S.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30729,17 +30729,17 @@ function Hce({ children: e, count: t, label: n }) {
}), e]
});
}
-function Aj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(kx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Hce, { ...t }, "selection") : null });
+function kj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Fx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Uce, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var jj = {
+var Aj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Uce(e, t = !1) {
+function Wce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30755,7 +30755,7 @@ function Uce(e, t = !1) {
glyph: "trash",
danger: !0
},
- jj
+ Aj
];
case "junk": return [
t ? {
@@ -30776,7 +30776,7 @@ function Uce(e, t = !1) {
glyph: "trash",
danger: !0
},
- jj
+ Aj
];
case "follow": return [
{
@@ -30797,7 +30797,7 @@ function Uce(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- jj
+ Aj
];
default: return [
{
@@ -30831,38 +30831,38 @@ function Uce(e, t = !1) {
glyph: "trash",
danger: !0
},
- jj
+ Aj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Mj = null, Nj = {
+var jj = null, Mj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Pj = /* @__PURE__ */ new Set();
-function Wce(e) {
- return Pj.add(e), () => {
- Pj.delete(e);
+}, Nj = /* @__PURE__ */ new Set();
+function Gce(e) {
+ return Nj.add(e), () => {
+ Nj.delete(e);
};
}
-function Gce() {
- for (let e of [...Pj]) e();
+function Kce() {
+ for (let e of [...Nj]) e();
}
-var Kce = { render(e) {
- Nj = e, (0, Lt.flushSync)(Gce);
+var qce = { render(e) {
+ Mj = e, (0, Lt.flushSync)(Kce);
} };
-function qce(e) {
- return Mj = e, Kce;
+function Jce(e) {
+ return jj = e, qce;
}
-function Jce() {
- let e = (0, F.useSyncExternalStore)(Wce, () => Nj);
- return Mj ? /* @__PURE__ */ (0, I.jsx)(Yce, {
- host: Mj,
+function Yce() {
+ let e = (0, F.useSyncExternalStore)(Gce, () => Mj);
+ return jj ? /* @__PURE__ */ (0, I.jsx)(Xce, {
+ host: jj,
props: e
}) : null;
}
-function Yce({ host: e, props: t }) {
+function Xce({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30872,11 +30872,11 @@ function Yce({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(Aj, {
+ children: /* @__PURE__ */ (0, I.jsx)(kj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: Uce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: Wce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30892,11 +30892,11 @@ function Yce({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Fj(e, t, n, r) {
+function Pj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function Xce(e, t) {
+function Zce(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30915,7 +30915,7 @@ function Xce(e, t) {
};
}
// src/sort-preferences.ts
-var Ij = [
+var Fj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30924,7 +30924,7 @@ var Ij = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Lj = ["release", "发行时间"], Rj = [...Ij, Lj].map(([e]) => e), zj = {
+], Ij = ["release", "发行时间"], Lj = [...Fj, Ij].map(([e]) => e), Rj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30933,43 +30933,43 @@ var Ij = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Bj = {
+}, zj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Vj = (e, t, n = zj) => (n[e] || [])[+(t === "asc")] || "", Hj = (e, t = zj) => t[e] ? "desc" : "";
-function Uj(e, t, n, r = zj) {
+}, Bj = (e, t, n = Rj) => (n[e] || [])[+(t === "asc")] || "", Vj = (e, t = Rj) => t[e] ? "desc" : "";
+function Hj(e, t, n, r = Rj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Hj(e, r)
+ dir: Vj(e, r)
};
}
-function Wj(e, t, n) {
+function Uj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Gj(e, t, n, r, i = n) {
- let a = e ? Bj[e] : void 0, o = a ? a[0] : e, s = o && Rj.includes(o) ? o : i;
- return zj[s] ? {
+function Wj(e, t, n, r, i = n) {
+ let a = e ? zj[e] : void 0, o = a ? a[0] : e, s = o && Lj.includes(o) ? o : i;
+ return Rj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Wj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Uj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Kj = [
+var Gj = [
"spot1",
"spot2",
"spot3"
-], Zce = [
+], Qce = [
"光晕一",
"光晕二",
"光晕三"
-], qj = "native", Jj = [
+], Kj = "native", qj = [
[
"ash",
"灰雾",
@@ -31275,7 +31275,7 @@ var Kj = [
"rose"
],
[
- qj,
+ Kj,
"玻璃原色",
{
spot1: {
@@ -31293,7 +31293,7 @@ var Kj = [
},
"blue"
]
-], Yj = (e) => e === qj, Xj = [...Jj.map(([e, t]) => [e, t]), ["custom", "自定义"]], Qce = (e) => (Xj.find(([t]) => t === e) || Xj[0])[1], Zj = (e) => structuredClone((Jj.find(([t]) => t === e) || Jj[0])[2]), Qj = [
+], Jj = (e) => e === Kj, Yj = [...qj.map(([e, t]) => [e, t]), ["custom", "自定义"]], $ce = (e) => (Yj.find(([t]) => t === e) || Yj[0])[1], Xj = (e) => structuredClone((qj.find(([t]) => t === e) || qj[0])[2]), Zj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31306,7 +31306,7 @@ var Kj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], $j = "blue", eM = (e) => Qj.some(([t]) => t === e) ? e : $j, $ce = (e) => (Jj.find(([t]) => t === e) || [])[3] || "blue", ele = [
+], Qj = "blue", $j = (e) => Zj.some(([t]) => t === e) ? e : Qj, ele = (e) => (qj.find(([t]) => t === e) || [])[3] || "blue", tle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31316,7 +31316,7 @@ var Kj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], tle = [
+], nle = [
[
"gray",
"云灰",
@@ -31712,11 +31712,11 @@ var Kj = [
"霁蓝",
"#6686b8"
]
-], tM = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, nM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, nle = (e, t) => `rgba(${[
+], eM = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, tM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, rle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, rle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, ile = {
strength: [
0,
100,
@@ -31742,7 +31742,7 @@ var Kj = [
100,
50
]
-}, rM = {
+}, nM = {
on: !0,
preset: "ash",
strength: 100,
@@ -31750,56 +31750,56 @@ var Kj = [
speed: 100,
soften: 50,
size: 50,
- ...Zj("ash")
+ ...Xj("ash")
};
-function iM(e) {
- let t = e && typeof e == "object" ? e : {}, n = Xj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Zj(r === "custom" ? "ash" : r), a = {
+function rM(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Yj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Xj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(rle)) a[e] = tM(+t[e], n, r, i);
- for (let e of Kj) {
+ for (let [e, [n, r, i]] of Object.entries(ile)) a[e] = eM(+t[e], n, r, i);
+ for (let e of Gj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: nM(r.color, o.color),
- alpha: tM(+r.alpha, 0, 100, o.alpha)
+ color: tM(r.color, o.color),
+ alpha: eM(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var ile = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, aM = /* @__PURE__ */ new WeakMap();
-function ale(e, t) {
+var ale = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, iM = /* @__PURE__ */ new WeakMap();
+function ole(e, t) {
if (!e) return;
- let n = aM.get(e);
- n || (n = /* @__PURE__ */ new Map(), aM.set(e, n));
- let r = t.on && !Yj(t.preset), i = (t, r) => {
+ let n = iM.get(e);
+ n || (n = /* @__PURE__ */ new Map(), iM.set(e, n));
+ let r = t.on && !Jj(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Kj.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Gj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, nle(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, rle(r.color, r.alpha));
});
}
-function ole(e, t) {
+function sle(e, t) {
if (!e) return;
- let n = !t.on || Yj(t.preset);
+ let n = !t.on || Jj(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var sle = "peach.settings.v1", cle = [
+var cle = "peach.settings.v1", lle = [
"system",
"light",
"dark"
-], oM = [
+], aM = [
0,
7,
30,
90
-], lle = [
+], ule = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], sM = {
+], oM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31820,56 +31820,56 @@ var sle = "peach.settings.v1", cle = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Ll],
- homeGlow: rM,
- accent: $j,
+ homeGlow: nM,
+ accent: Qj,
performerNameLanguage: "zh-CN"
-}, cM = (e, t, n) => t.includes(e) ? e : n;
-function ule(e) {
+}, sM = (e, t, n) => t.includes(e) ? e : n;
+function dle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...sM,
+ ...oM,
...t
};
- n.followInitialDays = oM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = aM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Bj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Fj(+n.batchSize, 1, 200, 60), n.defaultSort = cM(n.defaultSort, Rj, "seed"), n.hoverDelaySeconds = Fj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Fj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Fj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Fj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Fj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = cM(n.theme, cle, "system"), n.performerNameLanguage = cM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = iM(n.homeGlow), n.accent = eM(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
+ let a = zj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Pj(+n.batchSize, 1, 200, 60), n.defaultSort = sM(n.defaultSort, Lj, "seed"), n.hoverDelaySeconds = Pj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Pj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Pj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Pj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Pj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = sM(n.theme, lle, "system"), n.performerNameLanguage = sM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = rM(n.homeGlow), n.accent = $j(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function dle(e) {
+function fle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return ule(t);
+ return dle(t);
}
-var lM = null;
-function uM() {
- if (lM) return lM;
- let { settings: e, migrated: t } = dle(localStorage);
- return lM = Xce(sle, e), t && lM.save(), lM;
+var cM = null;
+function lM() {
+ if (cM) return cM;
+ let { settings: e, migrated: t } = fle(localStorage);
+ return cM = Zce(cle, e), t && cM.save(), cM;
}
-function dM(e, t, n = uM()) {
+function uM(e, t, n = lM()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- oM.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of lle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ aM.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of ule) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Fj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== sM.searchHistoryLimit && fle(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Pj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== oM.searchHistoryLimit && ple(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function fle(e = uM()) {
+function ple(e = lM()) {
return wn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var ple = [
+var mle = [
[
"system",
"跟随系统",
@@ -31885,31 +31885,31 @@ var ple = [
"深色",
"moon"
]
-], mle = null, fM = () => mle ??= matchMedia("(prefers-color-scheme: dark)"), pM = null;
-function hle() {
- return pM || (pM = document.createElement("style"), pM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), pM.isConnected || document.head.append(pM), () => {
+], hle = null, dM = () => hle ??= matchMedia("(prefers-color-scheme: dark)"), fM = null;
+function gle() {
+ return fM || (fM = document.createElement("style"), fM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), fM.isConnected || document.head.append(fM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), pM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), fM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function mM(e = uM().value.theme) {
- let t = hle(), n = document.documentElement;
+function pM(e = lM().value.theme) {
+ let t = gle(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && fM().matches;
+ let r = e === "dark" || e === "system" && dM().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var hM = !1;
-function gle() {
- hM || (hM = !0, fM().addEventListener("change", () => {
- uM().value.theme === "system" && mM();
+var mM = !1;
+function _le() {
+ mM || (mM = !0, dM().addEventListener("change", () => {
+ lM().value.theme === "system" && pM();
}));
}
// src/appearance/layout.ts
-var gM = [[
+var hM = [[
"big",
"大图",
"maximize"
@@ -31917,7 +31917,7 @@ var gM = [[
"small",
"小图",
"layout-grid"
-]], _M = [[
+]], gM = [[
"big",
"大图",
"maximize"
@@ -31925,7 +31925,7 @@ var gM = [[
"small",
"小图",
"layout-grid"
-]], vM = [[
+]], _M = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31933,127 +31933,127 @@ var gM = [[
"masonry",
"瀑布流",
"columns-2"
-]], yM = .75, bM = () => uM().value, xM = (e = bM()) => Za(e.javLayout), _le = (e = bM()) => Za(e.homeLayout), SM = (e, t = bM()) => e ? _le(t) : xM(t), CM = _M.map(([e]) => e), wM = vM.map(([e]) => e), TM = (e = bM()) => cM(e.photoSize, CM, "small"), EM = (e = bM()) => cM(e.photoLayout, wM, "masonry"), DM = null;
-function OM(e, t = bM()) {
+]], vM = .75, yM = () => lM().value, bM = (e = yM()) => Za(e.javLayout), vle = (e = yM()) => Za(e.homeLayout), xM = (e, t = yM()) => e ? vle(t) : bM(t), SM = gM.map(([e]) => e), CM = _M.map(([e]) => e), wM = (e = yM()) => sM(e.photoSize, SM, "small"), TM = (e = yM()) => sM(e.photoLayout, CM, "masonry"), EM = null;
+function DM(e, t = yM()) {
let n = {
active: e.active,
- size: SM(e.home, t),
+ size: xM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = DM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (DM = n), DM;
+ }, r = EM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (EM = n), EM;
}
-function kM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? yM : 16 / 9;
+function OM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? vM : 16 / 9;
}
-function vle(e, t = uM()) {
+function yle(e, t = lM()) {
t.value.homeLayout = Za(e), t.save();
}
-function AM(e, t = uM()) {
+function kM(e, t = lM()) {
t.value.javLayout = Za(e), t.save();
}
-function yle(e, t = uM()) {
+function ble(e, t = lM()) {
t.value.homeLayout = t.value.javLayout = Za(e), t.save();
}
-function ble(e, t = uM()) {
- t.value.photoSize = cM(e, CM, "small"), t.save();
+function xle(e, t = lM()) {
+ t.value.photoSize = sM(e, SM, "small"), t.save();
}
-function jM(e, t = uM()) {
- t.value.photoLayout = cM(e, wM, "masonry"), t.save();
+function AM(e, t = lM()) {
+ t.value.photoLayout = sM(e, CM, "masonry"), t.save();
}
// src/appearance/density.ts
-var MM = "density", NM = {
+var jM = "density", MM = {
big: "336px",
dense: "168px"
-}, PM = () => localStorage.getItem(MM) === "dense" ? "dense" : "big";
-function FM(e, t) {
- let [n, r] = _M;
+}, NM = () => localStorage.getItem(jM) === "dense" ? "dense" : "big";
+function PM(e, t) {
+ let [n, r] = gM;
if (e.querySelector("[data-icon-swap]")) Ks(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Gs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- IM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ FM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function IM(e, t, n) {
+function FM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var LM = () => document.querySelector("#density");
-function RM(e = PM()) {
+var IM = () => document.querySelector("#density");
+function LM(e = NM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== NM[e] && t.style.setProperty("--tile", NM[e]), IM(document.body, "data-density", e);
- let n = LM();
- n && (IM(n, "aria-pressed", String(e === "dense")), IM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), FM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== MM[e] && t.style.setProperty("--tile", MM[e]), FM(document.body, "data-density", e);
+ let n = IM();
+ n && (FM(n, "aria-pressed", String(e === "dense")), FM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), PM(n, e === "big" ? "big" : "small"));
}
-function xle() {
- let e = PM() === "big" ? "dense" : "big";
- localStorage.setItem(MM, e), RM(e);
+function Sle() {
+ let e = NM() === "big" ? "dense" : "big";
+ localStorage.setItem(jM, e), LM(e);
}
-function Sle(e) {
- let t = LM();
- t && (IM(t, "aria-pressed", String(e === "small")), IM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), FM(t, e));
+function Cle(e) {
+ let t = IM();
+ t && (FM(t, "aria-pressed", String(e === "small")), FM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), PM(t, e));
}
// src/appearance/glow.ts
-function zM(e = uM()) {
- ale(document.querySelector(".glowlayer"), e.value.homeGlow);
+function RM(e = lM()) {
+ ole(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var BM = 0;
-function VM(e = uM()) {
- BM ||= requestAnimationFrame(() => {
- BM = 0, zM(e);
+var zM = 0;
+function BM(e = lM()) {
+ zM ||= requestAnimationFrame(() => {
+ zM = 0, RM(e);
});
}
-function HM(e = uM()) {
- ole(document.documentElement, e.value.homeGlow);
+function VM(e = lM()) {
+ sle(document.documentElement, e.value.homeGlow);
}
-function UM(e = uM()) {
+function HM(e = lM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var WM = (e, t, n) => ({
+var UM = (e, t, n) => ({
key: e,
label: t,
- native: Yj(e),
- fill: Yj(e) ? "" : ile(n)
+ native: Jj(e),
+ fill: Jj(e) ? "" : ale(n)
});
-function Cle(e) {
- let t = Jj.map(([e, t, n]) => WM(e, t, Kj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(WM("custom", "自定义", Kj.map((t) => e[t].color))), t;
+function wle(e) {
+ let t = qj.map(([e, t, n]) => UM(e, t, Gj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(UM("custom", "自定义", Gj.map((t) => e[t].color))), t;
}
-var wle = Qj;
-function Tle(e, t = uM()) {
+var Tle = Zj;
+function Ele(e, t = lM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Zj(e)), t.value.accent = $ce(e), t.save(), VM(t), HM(t), UM(t);
+ n.preset = e, Object.assign(n, Xj(e)), t.value.accent = ele(e), t.save(), BM(t), VM(t), HM(t);
}
-function Ele(e, t = uM()) {
- t.value.accent = eM(e), t.save(), UM(t);
+function Dle(e, t = lM()) {
+ t.value.accent = $j(e), t.save(), HM(t);
}
-function Dle(e = uM()) {
+function Ole(e = lM()) {
let t = e.value.homeGlow;
- t.preset = rM.preset, Object.assign(t, Zj(t.preset)), e.value.accent = $j, e.save(), VM(e), HM(e), UM(e);
+ t.preset = nM.preset, Object.assign(t, Xj(t.preset)), e.value.accent = Qj, e.save(), BM(e), VM(e), HM(e);
}
-function GM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Yj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function WM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Jj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Ole(e, t = uM()) {
- return GM(e, t.value.homeGlow), t.subscribe(() => GM(e, t.value.homeGlow));
+function kle(e, t = lM()) {
+ return WM(e, t.value.homeGlow), t.subscribe(() => WM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function KM({ store: e, label: t, hidden: n }) {
+function GM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Cle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: wle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Tle(t.key, e),
+ onClick: () => Ele(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32064,14 +32064,14 @@ function KM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var qM = null;
-function kle(e) {
- qM = e;
+var KM = null;
+function Ale(e) {
+ KM = e;
}
-function Ale() {
- return qM ? /* @__PURE__ */ (0, I.jsx)(jle, { host: qM }) : null;
+function jle() {
+ return KM ? /* @__PURE__ */ (0, I.jsx)(Mle, { host: KM }) : null;
}
-function jle({ host: e }) {
+function Mle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32083,11 +32083,11 @@ function jle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Dle(t),
+ onClick: () => Ole(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(KM, {
+ /* @__PURE__ */ (0, I.jsx)(GM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32101,14 +32101,14 @@ function jle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: wle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Tle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Ele(e, t),
+ onClick: () => Dle(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32126,31 +32126,31 @@ function jle({ host: e }) {
] });
}
// src/player/host.ts
-var JM = null;
-function Mle(e) {
- JM = e;
+var qM = null;
+function Nle(e) {
+ qM = e;
}
-function YM() {
- if (!JM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return JM;
+function JM() {
+ if (!qM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return qM;
}
// src/player/menu.ts
-var XM = null;
-function Nle(e) {
- XM = e;
+var YM = null;
+function Ple(e) {
+ YM = e;
}
-function Ple() {
+function Fle() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var ZM = null, QM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function $M() {
+var XM = null, ZM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function QM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && cs(e, () => {
e.innerHTML = "";
- }), ZM &&= (ZM(), null);
+ }), XM &&= (XM(), null);
}
-async function Fle(e) {
+async function Ile(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32163,8 +32163,8 @@ async function Fle(e) {
return t.remove(), n;
}
}
-function Ile(e) {
- let t = !!XM?.inMiniplayer(e), n = e.peachItem, r = XM?.kind(e) ?? "item", i = (t) => {
+function Lle(e) {
+ let t = !!YM?.inMiniplayer(e), n = e.peachItem, r = YM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32180,7 +32180,7 @@ function Ile(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Fle(i(e)).then((e) => YM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Ile(i(e)).then((e) => JM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32192,11 +32192,11 @@ function Ile(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => XM?.expand()
+ run: () => YM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => XM?.toMiniplayer()
+ run: () => YM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32219,29 +32219,29 @@ function Ile(e) {
run: () => s.click()
}), o;
}
-function Lle(e, t, n) {
- let r = Ple();
- $M();
- let i = YM().stage();
+function Rle(e, t, n) {
+ let r = Fle();
+ QM();
+ let i = JM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Ile(e);
+ let a = Lle(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${QM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? QM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${ZM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? ZM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ss(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- $M(), n?.run();
+ QM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || $M();
+ r.contains(e.target) || QM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), $M();
+ e.preventDefault(), e.stopPropagation(), QM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32249,49 +32249,49 @@ function Lle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- us(t, e.el()) && $M();
+ us(t, e.el()) && QM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), ZM = () => {
+ }, 0), XM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Rle(e) {
+function zle(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Lle(e, t.clientX, t.clientY));
- }), e.on("dispose", $M);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Rle(e, t.clientX, t.clientY));
+ }), e.on("dispose", QM);
}
// src/player/registry.ts
-var eN = null, tN = () => eN;
-function nN(e) {
- eN = e;
+var $M = null, eN = () => $M;
+function tN(e) {
+ $M = e;
}
-function rN(e) {
+function nN(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function iN(e) {
+function rN(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function zle(e) {
+function Ble(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var aN = 3e3;
-function oN(e, t) {
+var iN = 3e3;
+function aN(e, t) {
let n = Number(e) || 0, r = Kn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function sN(e) {
+function Vle(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32306,10 +32306,10 @@ function sN(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = zle(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Ble(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > aN * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > iN * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32318,55 +32318,55 @@ function sN(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > aN;) t.shift();
+ }); t.length > 2 && a - t[0].at > iN;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var cN = 24;
-function lN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > cN && e.splice(0, e.length - cN);
+var oN = 24;
+function sN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > oN && e.splice(0, e.length - oN);
}
-var uN = "peach-player-panel";
-function dN(e, t, n, r) {
- let i = [...Array(Math.max(0, cN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var cN = "peach-player-panel";
+function lN(e, t, n, r) {
+ let i = [...Array(Math.max(0, oN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function Ble() {
+function Hle() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function fN(e, t = "") {
+function uN(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function pN(e, t = "") {
- let n = fN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function dN(e, t = "") {
+ let n = uN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function mN(e, t, n = "", r = null) {
+function fN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : pN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : dN(t, n);
}
-function hN(e) {
+function pN(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function Vle(e, t) {
- return e > 0 ? hN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : hN(0);
+function mN(e, t) {
+ return e > 0 ? pN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : pN(0);
}
// src/player/subtitle-style.ts
-var gN = {
+var hN = {
font: {
label: "字体",
values: [
@@ -32469,7 +32469,7 @@ var gN = {
["shadow", "阴影"]
]
}
-}, _N = {
+}, gN = {
font: "sans",
size: "100",
color: "white",
@@ -32479,7 +32479,7 @@ var gN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, vN = "peach.caption-style.v1", Hle = {
+}, _N = "peach.caption-style.v1", Ule = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32488,7 +32488,7 @@ var gN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, Ule = {
+}, Wle = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32496,28 +32496,28 @@ var gN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, Wle = {
+}, Gle = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function Gle() {
+function Kle() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(vN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(_N) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(_N).map(([t, n]) => [t, gN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(gN).map(([t, n]) => [t, hN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function yN(e, t, n, r) {
- let i = Gle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function vN(e, t, n, r) {
+ let i = Kle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${Hle[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", Ule[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Wle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${Ule[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", Wle[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Gle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32533,15 +32533,15 @@ function yN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ..._N,
+ ...gN,
...e.caption_style
};
- for (let e of Object.keys(_N)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(gN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(vN);
+ e = !!localStorage.getItem(_N);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32549,18 +32549,18 @@ function yN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- gN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ hN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(_N).forEach((e) => a.add(e)), i = { ..._N }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(gN).forEach((e) => a.add(e)), i = { ...gN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = class {
+var yN = /* @__PURE__ */ new Map(), bN = /* @__PURE__ */ new WeakMap(), qle = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32588,7 +32588,7 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await bN.get(this.url)?.catch(() => {});
+ await yN.get(this.url)?.catch(() => {});
let e = await wn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32600,7 +32600,7 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (bN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (yN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32627,8 +32627,8 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
this.changed();
}
});
- return bN.set(this.url, t), t.finally(() => {
- bN.get(this.url) === t && bN.delete(this.url);
+ return yN.set(this.url, t), t.finally(() => {
+ yN.get(this.url) === t && yN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32637,12 +32637,12 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
} catch {}
}
};
-function SN(e) {
- let t = xN.get(e);
- return t || (t = new Kle(e), xN.set(e, t)), t;
+function xN(e) {
+ let t = bN.get(e);
+ return t || (t = new qle(e), bN.set(e, t)), t;
}
-function CN(e, t) {
- let n = SN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function SN(e, t) {
+ let n = xN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32655,7 +32655,7 @@ function CN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var wN = class {
+var CN = class {
player;
video;
changed;
@@ -32666,7 +32666,7 @@ var wN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = SN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = xN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32763,7 +32763,7 @@ var wN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, TN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", qle = class {
+}, wN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", Jle = class {
player;
video;
panels;
@@ -32782,7 +32782,7 @@ var wN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = yN(e.el(), t, this.cleanup.signal, SN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = TN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = vN(e.el(), t, this.cleanup.signal, xN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = wN(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32792,7 +32792,7 @@ var wN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new wN(e, t, () => {
+ }), this.session = new CN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32840,7 +32840,7 @@ var wN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(gN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(hN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32852,7 +32852,7 @@ var wN = class {
}
styleOptions(e) {
this.page = "style";
- let t = gN[e];
+ let t = hN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -32968,7 +32968,7 @@ var wN = class {
}
};
// src/player/timeline.ts
-function Jle(e, t) {
+function Yle(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -32980,8 +32980,8 @@ function Jle(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function EN(e, t) {
- let n = 0, r = !1, i = SN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function TN(e, t) {
+ let n = 0, r = !1, i = xN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33009,7 +33009,7 @@ function EN(e, t) {
};
}
// src/player/pip.ts
-function Yle(e, t, n, r) {
+function Xle(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33041,7 +33041,7 @@ function Yle(e, t, n, r) {
});
}
// src/player/controls.ts
-function DN(e, t, n = "") {
+function EN(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -33052,27 +33052,27 @@ function DN(e, t, n = "") {
};
return o(), o;
}
-function ON(e, t) {
+function DN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function Xle(e, t = !0) {
- let n = YM(), r = n.settings();
+function Zle(e, t = !0) {
+ let n = JM(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var kN = /* @__PURE__ */ new WeakMap();
-function AN(e) {
+var ON = /* @__PURE__ */ new WeakMap();
+function kN(e) {
if (!e) return;
- let t = YM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), kN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = JM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), ON.get(e)?.(t ? "默认视图" : "影院模式");
}
-function jN(e, t = !0) {
- let n = YM(), r = n.settings();
+function AN(e, t = !0) {
+ let n = JM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), AN(i?.querySelector("[data-player-theater]")), rN(tN());
+ i?.toggleAttribute("data-theater", r.theaterMode), kN(i?.querySelector("[data-player-theater]")), nN(eN());
}
-function Zle(e) {
- let t = YM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Qle(e) {
+ let t = JM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33095,9 +33095,9 @@ function Zle(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (YM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (JM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && YM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && JM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33106,7 +33106,7 @@ function Zle(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function MN(e, t, n = 0, r = null) {
+function jN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33116,8 +33116,8 @@ function MN(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- DN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = EN(e, t), d = CN(e, t), f = SN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ EN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = TN(e, t), d = SN(e, t), f = xN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33156,11 +33156,11 @@ function MN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(uN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(cN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(uN, C);
+ document.addEventListener(cN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33176,15 +33176,15 @@ function MN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${YM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${JM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${TN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${wN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- Xle(!YM().settings().ambientMode), k();
+ Zle(!JM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33288,8 +33288,8 @@ function MN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(uN, C), w && clearTimeout(w);
- }), p = new qle(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(cN, C), w && clearTimeout(w);
+ }), p = new Jle(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33298,21 +33298,21 @@ function MN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), Qle(e, a), $le(e), (e) => {
+ }), y(), $le(e, a), eue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function Qle(e, t) {
+function $le(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = YM().settings().theaterMode, i = document.createElement("div");
+ let r = JM().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- kN.set(a, DN(a, "影院模式", "T")), AN(a), a.onclick = (e) => {
- e.stopPropagation(), jN(!YM().settings().theaterMode);
+ ON.set(a, EN(a, "影院模式", "T")), kN(a), a.onclick = (e) => {
+ e.stopPropagation(), AN(!JM().settings().theaterMode);
};
}
-function $le(e) {
+function eue(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33324,7 +33324,7 @@ function $le(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = DN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = EN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -33335,7 +33335,7 @@ function $le(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = DN(p, "静音", "M"), g = () => {
+ let h = EN(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -33361,7 +33361,7 @@ function $le(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = DN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = EN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Jn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Jn(t)} / ${Jn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Jn(n)};点击显示已播放时间` : `已播放 ${Jn(t)},总时长 ${Jn(n)};点击显示剩余时间`);
};
@@ -33373,10 +33373,10 @@ function $le(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- DN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Yle(e, E, DN(E, "画中画"), (e) => YM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = DN(D, "全屏", "F"), A = () => {
+ EN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Xle(e, E, EN(E, "画中画"), (e) => JM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = EN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), rN(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), nN(e);
};
e.on([
"fullscreenchange",
@@ -33397,7 +33397,7 @@ function $le(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = DN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = EN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33409,7 +33409,7 @@ function $le(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function NN(e, t, n = {}) {
+function MN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -33420,7 +33420,7 @@ function NN(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = Jle(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = Yle(e, n);
if (s === null) return !1;
let c = Math.floor(s / o), l = s % o, f = Math.ceil(Math.min(o, n.frames - c * o) / a);
d = !!n.cues;
@@ -33445,13 +33445,13 @@ function NN(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function eue(e, t) {
+function tue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Kn(e.duration()) || Kn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(YM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(JM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33492,11 +33492,11 @@ function eue(e, t) {
} catch {}
});
}
-function PN(e) {
+function NN(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function FN(e, t) {
+function PN(e, t) {
wn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33512,35 +33512,35 @@ function FN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var IN = "peach.playback-position.v1", LN = /* @__PURE__ */ new WeakMap();
-function RN(e) {
- LN.get(e)?.(), LN.delete(e);
+var FN = "peach.playback-position.v1", IN = /* @__PURE__ */ new WeakMap();
+function LN(e) {
+ IN.get(e)?.(), IN.delete(e);
}
-function zN(e, t, n = null) {
+function RN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function tue(e) {
+function nue(e) {
try {
- let t = localStorage.getItem(`${IN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${FN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function nue(e, t) {
- let n = tue(e);
+function rue(e, t) {
+ let n = nue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * Kn(t.duration) : 0;
}
-function rue(e, t) {
- RN(t);
+function iue(e, t) {
+ LN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${IN}:${e}`, String(r));
+ localStorage.setItem(`${FN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33554,7 +33554,7 @@ function rue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), LN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), IN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33566,19 +33566,19 @@ function rue(e, t) {
});
}
// src/player/telemetry.ts
-var BN = /* @__PURE__ */ new WeakMap();
-function VN(e) {
- BN.get(e)?.(), BN.delete(e);
+var zN = /* @__PURE__ */ new WeakMap();
+function BN(e) {
+ zN.get(e)?.(), zN.delete(e);
}
-function HN(e, t, n, r) {
+function VN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), BN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), zN.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function UN(e, t, n = {}) {
+function HN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = Kn(e.duration) || Kn(t.duration);
@@ -33619,11 +33619,11 @@ function UN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, HN(t, l, u, () => {
+ }, VN(t, l, u, () => {
a++;
}), c();
}
-function iue(e, t) {
+function aue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Kn(e.duration) || Kn(t.duration);
(r || n) && (wn("/api/follow/activity", {
@@ -33654,22 +33654,22 @@ function iue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, HN(t, o, s, () => {});
+ }, VN(t, o, s, () => {});
}
// src/player/dispose.ts
-function WN(e) {
+function UN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (RN(t), VN(t));
+ t && (LN(t), BN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function GN() {
+function WN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33677,23 +33677,23 @@ function GN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function KN() {
- return GN();
+function GN() {
+ return WN();
}
-function qN(e, t) {
+function KN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function aue(e) {
+function oue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function JN(e, t) {
- let n = aue(e);
+async function qN(e, t) {
+ let n = oue(e);
if (n) return n;
try {
let n = await wn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33702,9 +33702,9 @@ async function JN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return qN(e, t);
+ return KN(e, t);
}
-function YN(e) {
+function JN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33713,22 +33713,22 @@ function YN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var XN = "";
+var YN = "";
+function XN() {
+ return YN;
+}
function ZN() {
- return XN;
+ return YN ||= GN(), YN;
}
+var sue = (e) => KN(e, ZN()), cue = (e) => qN(e, ZN());
function QN() {
- return XN ||= KN(), XN;
-}
-var oue = (e) => qN(e, QN()), sue = (e) => JN(e, QN());
-function $N() {
- let e = XN;
- e && (XN = "", YN(e));
+ let e = YN;
+ e && (YN = "", JN(e));
}
// src/player/v10-player.ts
-var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
+var $N = (e) => typeof e == "string" ? [e] : e, lue = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${GN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${WN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33823,9 +33823,9 @@ var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => eP(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => eP(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => eP(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => $N(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => $N(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => $N(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -33880,7 +33880,7 @@ var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, lue = "/vendor/videojs/10.2.0/", uue = [
+}, uue = "/vendor/videojs/10.2.0/", due = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -33898,17 +33898,17 @@ var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], tP = null;
-function nP() {
- return tP ??= Promise.all(uue.map((e) => import(
+], eP = null;
+function tP() {
+ return eP ??= Promise.all(due.map((e) => import(
/* @vite-ignore */
- `${lue}${e}`
-))).then(() => cue).catch((e) => {
- throw tP = null, e;
- }), tP;
+ `${uue}${e}`
+))).then(() => lue).catch((e) => {
+ throw eP = null, e;
+ }), eP;
}
// src/player/immerse-player.ts
-var due = {
+var fue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33920,45 +33920,45 @@ var due = {
errorDisplay: !1,
textTrackSettings: !1
};
-function fue(e, t) {
+function pue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([JN(n, r), nP().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([qN(n, r), tP().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = qN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = KN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, due);
- i = t, t.peachItem = n, t.peachPlaybackKey = zN("item", n);
+ let t = s(e, fue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = RN("item", n);
let r = new AbortController();
- yN(t.el(), e, r.signal, SN(t)), EN(t, e), CN(t, e), t.on("dispose", () => r.abort()), new wN(t, e), FN(t, n.id), l && t.one("error", () => {
+ vN(t.el(), e, r.signal, xN(t)), TN(t, e), SN(t, e), t.on("dispose", () => r.abort()), new CN(t, e), PN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- UN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ HN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, YN(r), i ? WN(i) : (e.pause(), VN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, JN(r), i ? UN(i) : (e.pause(), BN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var rP = !1, iP = () => rP;
-function pue() {
- return rP = !0, () => {
- rP = !1;
+var nP = !1, rP = () => nP;
+function mue() {
+ return nP = !0, () => {
+ nP = !1;
};
}
// src/player/detail-player.ts
-var aP = /* @__PURE__ */ new WeakMap(), oP = null, sP = null, cP = null;
-function lP() {
- oP &&= (clearInterval(oP), null), sP &&= (clearInterval(sP), null), cP &&= (clearTimeout(cP), null);
+var iP = /* @__PURE__ */ new WeakMap(), aP = null, oP = null, sP = null;
+function cP() {
+ aP &&= (clearInterval(aP), null), oP &&= (clearInterval(oP), null), sP &&= (clearTimeout(sP), null);
}
-async function mue(e, t, n, r = {}) {
- let i = tN();
+async function hue(e, t, n, r = {}) {
+ let i = eN();
if (i && !i.isDisposed()) return i;
- let a = YM(), o = r.resume ?? null;
+ let a = JM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : sue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : cue(e), c;
try {
- c = await nP();
+ c = await tP();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -33984,7 +33984,7 @@ async function mue(e, t, n, r = {}) {
} }
}
});
- nN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || zN("item", e), Rle(l), l.on("loadedmetadata", () => {
+ tN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || RN("item", e), zle(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -33992,7 +33992,7 @@ async function mue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = sN(oN(f, e.duration)), m = 0, h = !1, g = () => tN() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Vle(aN(f, e.duration)), m = 0, h = !1, g = () => eN() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -34003,15 +34003,15 @@ async function mue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- aP.set(l, y), y.updateStats = () => {
+ iP.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = ZN(), h = s ? fN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = XN(), h = s ? uN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = mN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = fN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = iN(t);
- lN(d.speed, x), lN(d.activity, C), lN(d.buffer, w);
+ let w = rN(t);
+ sN(d.speed, x), sN(d.activity, C), sN(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Yn(_) : "—"} · ${h.length} 请求`,
@@ -34029,17 +34029,17 @@ async function mue(e, t, n, r = {}) {
[
"连接速度",
D,
- dN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ lN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- dN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ lN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- dN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ lN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Jn(t.currentTime)} / ${Jn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34055,15 +34055,15 @@ async function mue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = mN(l, e.id, ZN(), r ? null : p), a = r ? hN(i) : Vle(i, iN(t));
+ let i = fN(l, e.id, XN(), r ? null : p), a = r ? pN(i) : mN(i, rN(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), sP && clearInterval(sP), sP = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), oP && clearInterval(oP), oP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (cP && clearTimeout(cP), cP = setTimeout(() => {
- e.hidden = !0, sP &&= (clearInterval(sP), null);
+ e && (sP && clearTimeout(sP), sP = setTimeout(() => {
+ e.hidden = !0, oP &&= (clearInterval(oP), null);
}, 1400));
};
return l.on([
@@ -34074,7 +34074,7 @@ async function mue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(oue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(sue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34082,13 +34082,13 @@ async function mue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = MN(l, t, e.height, r.qualities ?? null);
+ let n = jN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = oN(r, e.duration));
- }).catch(() => {}), NN(l, e, { thumbnail: !r.source }), r.guidePreview || eue(l, e), PN(l), r.source || FN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = aN(r, e.duration));
+ }).catch(() => {}), MN(l, e, { thumbnail: !r.source }), r.guidePreview || tue(l, e), NN(l), r.source || PN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34097,16 +34097,16 @@ async function mue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var hue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function uP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", hue), e.querySelector("#playerStatsBtn")) return;
+var gue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function lP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", gue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = Ble();
+ n.innerHTML = Hle();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function dP(e, t) {
- let n = aP.get(e);
+function uP(e, t) {
+ let n = iP.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34118,30 +34118,30 @@ function dP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), oP &&= (clearInterval(oP), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), aP &&= (clearInterval(aP), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(uN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), oP && clearInterval(oP), oP = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(cN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), aP && clearInterval(aP), aP = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(uN, t), s = () => document.removeEventListener(uN, t);
+ document.addEventListener(cN, t), s = () => document.removeEventListener(cN, t);
}
- let c = e.el().querySelector("video"), l = c ? Zle(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, lP()));
+ let c = e.el().querySelector("video"), l = c ? Qle(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, cP()));
};
return e.one("dispose", d), d;
}
-function fP(e, t) {
- if (t.kind === "immerse") return fue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = iP(), c = YM(), l = t.chrome === !1 ? null : e.parentElement;
- l && uP(l, e);
- let u = zN(n, r, i?.index ?? null), d = {
+function dP(e, t) {
+ if (t.kind === "immerse") return pue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = rP(), c = JM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && lP(l, e);
+ let u = RN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: nue(u, r),
+ time: rue(u, r),
autoplay: !1
}
};
@@ -34161,36 +34161,36 @@ function fP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (RN(h), f ? (tN() === f && (nN(null), lP()), WN(f)) : VN(h));
+ m(), !(f && a?.(f)) && (LN(h), f ? (eN() === f && (tN(null), cP()), UN(f)) : BN(h));
};
- return mue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (rue(u, h), n === "follow" ? iue(r, h) : (h.addEventListener("play", () => {
+ return hue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (iue(u, h), n === "follow" ? aue(r, h) : (h.addEventListener("play", () => {
wn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), UN(r, h, {
+ }, { once: !0 }), HN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = dP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = uP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function pP(e) {
+function fP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function mP(e, t) {
+function pP(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function gue(e, t, n) {
+function _ue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return nP().then((a) => {
+ return tP().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34215,30 +34215,30 @@ function gue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (MN(o, e), NN(o, null, { thumbnail: !1 }), PN(o));
+ r || o.isDisposed() || (jN(o, e), MN(o, null, { thumbnail: !1 }), NN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, WN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, UN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function hP(e, t) {
+function mP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var _ue = (e, t) => [
+var vue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], vue = (e, t) => [
+], yue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function yue(e, t, n, r, i) {
+async function bue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34248,22 +34248,22 @@ async function yue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var bue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, xue = (e, t) => {
+var xue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Sue = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function Sue(e) {
- let t = hP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Cue(e) {
+ let t = mP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: _ue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => yue(t, e, n, r, i),
+ queryKey: vue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => bue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: bue(n)
+ getNextPageParam: xue(n)
};
}
-function Cue(e) {
+function wue(e) {
return {
- queryKey: vue(e.entityKey || "", e.revision || 0),
+ queryKey: yue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34278,14 +34278,14 @@ function Cue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: xue
+ getNextPageParam: Sue
};
}
-function gP(e) {
+function hP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function _P(e, t, n) {
+function gP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34300,24 +34300,24 @@ function _P(e, t, n) {
return !0;
}) : [...e];
}
-var vP = (e, t) => !!e && !!eo(e, t);
-function wue(e, t) {
- let n = (e) => vP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => vP(e, t)) || e[e.length - 1];
+var _P = (e, t) => !!e && !!eo(e, t);
+function Tue(e, t) {
+ let n = (e) => _P(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => _P(e, t)) || e[e.length - 1];
}
-function Tue(e, { collapse: t, mix: n, javImage: r }) {
+function Eue(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = _P(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = gP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = wue(e, r);
+ let t = Tue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34330,16 +34330,16 @@ function Tue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Eue(e, t, n) {
+function Due(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function Due(e, t) {
+function Oue(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Oue(e, t) {
+function kue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34352,10 +34352,10 @@ function Oue(e, t) {
strip: null
}), r;
}
-function yP(e, t) {
- bP((t) => t.id === e, t);
+function vP(e, t) {
+ yP((t) => t.id === e, t);
}
-function bP(e, t) {
+function yP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34385,34 +34385,34 @@ function bP(e, t) {
} : n)
});
}
-var xP = (e) => Math.min(Math.max(e || 0, 0), 100), SP = (e) => Math.round(xP(e) / 20), kue = (e) => {
- let t = SP(e);
+var bP = (e) => Math.min(Math.max(e || 0, 0), 100), xP = (e) => Math.round(bP(e) / 20), Aue = (e) => {
+ let t = xP(e);
return t ? `${t} 星` : "未评分";
-}, CP = (e, t) => t === SP(e) ? 0 : t * 20, wP = (e) => ["item", e], TP = (e) => [
+}, SP = (e, t) => t === xP(e) ? 0 : t * 20, CP = (e) => ["item", e], wP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Aue = (e, t) => [
+], jue = (e, t) => [
"item-related",
e,
t
-], jue = (e) => `/api/item?id=${e}`, Mue = (e, t) => `/api/related?id=${e}&limit=${t}`, EP = "/api/playlist", DP = "/api/feedback", OP = "/api/item-tag", kP = "/api/watch-later", AP = "/api/quality-goal", jP = "/api/preference", MP = class extends Error {};
-async function NP(e, t) {
- let n = await B(jue(e), t);
- if (n.error) throw new MP(n.error);
+], Mue = (e) => `/api/item?id=${e}`, Nue = (e, t) => `/api/related?id=${e}&limit=${t}`, TP = "/api/playlist", EP = "/api/feedback", DP = "/api/item-tag", OP = "/api/watch-later", kP = "/api/quality-goal", AP = "/api/preference", jP = class extends Error {};
+async function MP(e, t) {
+ let n = await B(Mue(e), t);
+ if (n.error) throw new jP(n.error);
return n;
}
-async function PP(e, t, n) {
+async function NP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([NP(r, n), t.mixRelated(r)]);
- return H.setQueryData(wP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([MP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(CP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${jo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return FP(await B(`${EP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return PP(await B(`${TP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34423,19 +34423,19 @@ async function PP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var FP = (e) => ({
+var PP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), IP = (e) => e.disposal === "vanished";
-function LP(e, t) {
+}), FP = (e) => e.disposal === "vanished";
+function IP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !IP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !FP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Nue(e, t) {
+function Pue(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34443,20 +34443,20 @@ function Nue(e, t) {
part_label: n
};
}
-function RP(e, t) {
+function LP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function zP(e, t) {
+async function RP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = TP(n);
+ let o = wP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => PP(n, e.helpers, t),
+ queryFn: () => NP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34468,21 +34468,21 @@ async function zP(e, t) {
return;
}
}
- let o = i ? LP(i, e.id) : e.id;
+ let o = i ? IP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(wP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(CP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: wP(o),
- queryFn: () => NP(o, t),
+ queryKey: CP(o),
+ queryFn: () => MP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof MP) {
+ if (e instanceof jP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34493,7 +34493,7 @@ async function zP(e, t) {
id: Number(s.follow_item_id)
});
}
-function Pue(e) {
+function Fue(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Hn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34515,35 +34515,35 @@ function Pue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Fue(e, t) {
+function Iue(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Hn(t.tagLabel(e.k)), i = n.get(r);
(!i || Hn(e.k) === r && Hn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var BP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), VP = (e, t) => ({
+var zP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), BP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Hn(e.k) !== Hn(t))
-}), HP = (e, t) => BP(e, t.k) ? e : {
+}), VP = (e, t) => zP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, UP = "peach.recentTags";
-function WP() {
+}, HP = "peach.recentTags";
+function UP() {
try {
- let e = JSON.parse(localStorage.getItem(UP) || "[]");
+ let e = JSON.parse(localStorage.getItem(HP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function GP(e) {
+function WP(e) {
try {
- let t = WP().filter((t) => Hn(t) !== Hn(e));
- localStorage.setItem(UP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = UP().filter((t) => Hn(t) !== Hn(e));
+ localStorage.setItem(HP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Iue(e, t, n) {
+function Lue(e, t, n) {
let r = Hn(e), i = new Map(t.map((e) => [Hn(e.k), e])), a = t.filter((e) => !r || Hn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Hn(e)) || {
k: e,
n: 0
@@ -34554,72 +34554,72 @@ function Iue(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Lue = {
+var Rue = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Rue = {
+}, zue = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function zue(e) {
+function Bue(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Rue[e.kind],
+ title: zue[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var KP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Bue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(KP(e.part_label))}</small>` : "";
-function Vue(e, t, n, r) {
+var GP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Vue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(GP(e.part_label))}</small>` : "";
+function Hue(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Hue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Uue(e, t) {
+var Uue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Wue(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function Wue(e) {
+function Gue(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function qP(e, t) {
+function KP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var Gue = (e, t, n) => [
+var Kue = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Kue(e) {
+function que(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var que = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function Jue(e, t = Math.random) {
+var Jue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function Yue(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function Yue(e, t) {
- return Jue(((await B(`/api/items?${e}`)).items || []).filter((e) => que(e, t)));
+async function Xue(e, t) {
+ return Yue(((await B(`/api/items?${e}`)).items || []).filter((e) => Jue(e, t)));
}
-var JP = (e) => H.ensureQueryData({
- queryKey: wP(e),
- queryFn: ({ signal: t }) => NP(e, t)
+var qP = (e) => H.ensureQueryData({
+ queryKey: CP(e),
+ queryFn: ({ signal: t }) => MP(e, t)
});
-function Xue(e, t) {
+function Zue(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Zue(e) {
+function Que(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34628,306 +34628,306 @@ function Zue(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Que(e, t, n) {
+function $ue(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function $ue(e, t) {
+function ede(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var ede = 15e3, YP = {
+var tde = 15e3, JP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, XP = null, ZP = null, QP = YP, $P = /* @__PURE__ */ new Set(), eF = 0, tF = 0, nF = 0, rF = "", iF = [], aF = 0, oF = !1, sF = !1, cF = null, lF = /* @__PURE__ */ new Set(), uF = "", dF = null, fF = 0, pF = null, mF = !1;
-function hF() {
- if (!XP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return XP;
+}, YP = null, XP = null, ZP = JP, QP = /* @__PURE__ */ new Set(), $P = 0, eF = 0, tF = 0, nF = "", rF = [], iF = 0, aF = !1, oF = !1, sF = null, cF = /* @__PURE__ */ new Set(), lF = "", uF = null, dF = 0, fF = null, pF = !1;
+function mF() {
+ if (!YP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return YP;
}
-function tde(e) {
- return $P.add(e), () => {
- $P.delete(e);
+function nde(e) {
+ return QP.add(e), () => {
+ QP.delete(e);
};
}
-function nde() {
- for (let e of [...$P]) e();
+function rde() {
+ for (let e of [...QP]) e();
}
-function gF() {
- (0, Lt.flushSync)(nde);
+function hF() {
+ (0, Lt.flushSync)(rde);
}
-function _F() {
- let e = dF ? pN(dF.id) : 0;
- return e ? `${uF} · ${hN(e)}` : uF;
+function gF() {
+ let e = uF ? dN(uF.id) : 0;
+ return e ? `${lF} · ${pN(e)}` : lF;
}
-function vF(e, t = null) {
- clearInterval(fF), fF = 0, e === null ? (QP = {
- ...QP,
+function _F(e, t = null) {
+ clearInterval(dF), dF = 0, e === null ? (ZP = {
+ ...ZP,
loading: null
- }, gF()) : (uF = e, dF = t, QP = {
- ...QP,
- loading: _F()
- }, gF(), fF = window.setInterval(() => {
- dF = iF[aF] ?? null, QP = {
- ...QP,
- loading: _F()
- }, gF();
+ }, hF()) : (lF = e, uF = t, ZP = {
+ ...ZP,
+ loading: gF()
+ }, hF(), dF = window.setInterval(() => {
+ uF = rF[iF] ?? null, ZP = {
+ ...ZP,
+ loading: gF()
+ }, hF();
}, 500));
}
-function rde(e) {
+function ide(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), ZP.track.append(t);
- let r = KN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), XP.track.append(t);
+ let r = GN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => YN(r),
+ release: () => JN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return lF.add(a), a;
+ return cF.add(a), a;
}
-function ide(e, t) {
+function ade(e, t) {
return new Promise((n) => {
- e.release = fP(e.video, {
+ e.release = dP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- QP.open && TF(1);
+ ZP.open && wF(1);
}
}), e.gone.then(n);
});
}
-function yF(e) {
- e && !e.disposed && (e.disposed = !0, lF.delete(e), e.leave(), e.release(), e.el.remove(), cF === e && (cF = null));
+function vF(e) {
+ e && !e.disposed && (e.disposed = !0, cF.delete(e), e.leave(), e.release(), e.el.remove(), sF === e && (sF = null));
}
-var bF = [
+var yF = [
"loadeddata",
"canplay",
"error"
];
-function ade(e) {
+function ode(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), bF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), yF.forEach((e) => t.removeEventListener(e, i)), n());
};
- bF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, ede);
+ yF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, tde);
e.gone.then(i);
});
}
-function xF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Que(e.videoWidth, e.videoHeight, n);
+function bF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = $ue(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var SF = () => ZP?.track.querySelectorAll("video").forEach(xF);
-function ode(e) {
- delete e.dataset.fit, e.readyState >= 1 ? xF(e) : e.addEventListener("loadedmetadata", () => xF(e), { once: !0 });
-}
+var xF = () => XP?.track.querySelectorAll("video").forEach(bF);
function sde(e) {
- QP = {
- ...QP,
+ delete e.dataset.fit, e.readyState >= 1 ? bF(e) : e.addEventListener("loadedmetadata", () => bF(e), { once: !0 });
+}
+function cde(e) {
+ ZP = {
+ ...ZP,
wide: e
- }, gF(), SF();
+ }, hF(), xF();
}
-var CF = () => {
- let e = rF;
+var SF = () => {
+ let e = nF;
return H.fetchQuery({
- queryKey: Gue(e, tF, nF),
- queryFn: () => Yue(e, hF().sourceOffline),
+ queryKey: Kue(e, eF, tF),
+ queryFn: () => Xue(e, mF().sourceOffline),
staleTime: Infinity
});
};
-function cde(e, t) {
+function lde(e, t) {
let n = () => Kn(e.duration) || Kn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && ZP && (ZP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), pF = {
+ t && XP && (XP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), fF = {
video: e,
duration: n
};
}
-async function wF(e = 0) {
- let t = iF[aF];
- if (!t || oF) return;
- let n = eF;
- hF().route(t.id), oF = !0, vF(e ? "切换中" : "加载中", t);
+async function CF(e = 0) {
+ let t = rF[iF];
+ if (!t || aF) return;
+ let n = $P;
+ mF().route(t.id), aF = !0, _F(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await JP(t.id).catch((e) => {
- if (!(e instanceof MP)) throw e;
- }), n !== eF) return;
- let i = cF, a = !!(e && i);
- a || yF(i);
- let o = rde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, ode(o.video), await ide(o, t), await ade(o), o.disposed || (sde($ue(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await qP(t.id).catch((e) => {
+ if (!(e instanceof jP)) throw e;
+ }), n !== $P) return;
+ let i = sF, a = !!(e && i);
+ a || vF(i);
+ let o = ide(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, sde(o.video), await ade(o, t), await ode(o), o.disposed || (cde(ede(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), yF(i), o.el.style.transform = ""), o.disposed)) return;
- cF = o, r = null, o.video.play()?.catch(() => {}), QP = {
- ...QP,
+ })), await new Promise((e) => setTimeout(e, 210)), vF(i), o.el.style.transform = ""), o.disposed)) return;
+ sF = o, r = null, o.video.play()?.catch(() => {}), ZP = {
+ ...ZP,
idle: !1,
shown: {
item: t,
- index: aF,
- length: iF.length
+ index: iF,
+ length: rF.length
}
- }, cde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), vF(null);
+ }, lde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), _F(null);
} catch {
- yF(r), n === eF && vF(null);
+ vF(r), n === $P && _F(null);
} finally {
- n === eF && (oF = !1);
+ n === $P && (aF = !1);
}
}
-async function TF(e) {
- if (oF || !QP.open) return;
- let t = eF;
- if (aF += e, vF("切换中", iF[aF] ?? null), aF >= iF.length - 3 && !sF) {
- sF = !0;
+async function wF(e) {
+ if (aF || !ZP.open) return;
+ let t = $P;
+ if (iF += e, _F("切换中", rF[iF] ?? null), iF >= rF.length - 3 && !oF) {
+ oF = !0;
try {
- nF += 1;
- let e = await CF();
- t === eF && (iF = Xue(iF, e));
+ tF += 1;
+ let e = await SF();
+ t === $P && (rF = Zue(rF, e));
} catch {} finally {
- sF = !1;
+ oF = !1;
}
}
- t === eF && (aF >= iF.length && (aF = 0), aF < 0 && (aF = iF.length - 1), await wF(e));
+ t === $P && (iF >= rF.length && (iF = 0), iF < 0 && (iF = rF.length - 1), await CF(e));
}
-async function lde(e) {
- let t = ++eF;
- EF(), tF += 1, nF = 0, rF = Kue(hF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), QP = {
- ...QP,
+async function ude(e) {
+ let t = ++$P;
+ TF(), eF += 1, tF = 0, nF = que(mF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), ZP = {
+ ...ZP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), vF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), _F("加载内容");
try {
- let n = await CF();
+ let n = await SF();
if (e && !n.some((t) => t.id === e)) {
- let t = await JP(e).catch((e) => {
- if (e instanceof MP) return null;
+ let t = await qP(e).catch((e) => {
+ if (e instanceof jP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== eF) return;
- if (iF = n, !iF.length) {
- DF(), hF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== $P) return;
+ if (rF = n, !rF.length) {
+ EF(), mF().warn("当前筛选下没有可直接播放的内容");
return;
}
- aF = Math.max(0, iF.findIndex((t) => t.id === e)), await wF();
+ iF = Math.max(0, rF.findIndex((t) => t.id === e)), await CF();
} catch {
- if (t !== eF) return;
- vF(null), DF();
+ if (t !== $P) return;
+ _F(null), EF();
}
}
-function EF() {
- clearInterval(fF), fF = 0, NF(), jF = null, pF = null, mF = !1, [...lF].forEach(yF), oF = !1;
+function TF() {
+ clearInterval(dF), dF = 0, MF(), AF = null, fF = null, pF = !1, [...cF].forEach(vF), aF = !1;
}
-function DF() {
- QP.open && (eF++, EF(), QP = YP, document.body.removeAttribute("data-immerse-open"), gF(), hF().closed());
+function EF() {
+ ZP.open && ($P++, TF(), ZP = JP, document.body.removeAttribute("data-immerse-open"), hF(), mF().closed());
}
-var OF = 0, kF = null, AF = 0, jF = null, MF = 0;
-function NF() {
- clearTimeout(OF), OF = 0, kF = null;
+var DF = 0, OF = null, kF = 0, AF = null, jF = 0;
+function MF() {
+ clearTimeout(DF), DF = 0, OF = null;
}
-function ude(e) {
- let t = cF?.video;
+function dde(e) {
+ let t = sF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- kF && kF.side === n && r - kF.at <= 280 ? (NF(), mP(t, hF().seekSeconds() * n)) : (OF && (clearTimeout(OF), OF = 0, pP(t)), kF = {
+ OF && OF.side === n && r - OF.at <= 280 ? (MF(), pP(t, mF().seekSeconds() * n)) : (DF && (clearTimeout(DF), DF = 0, fP(t)), OF = {
side: n,
at: r
- }, OF = window.setTimeout(() => {
- OF = 0, kF = null, QP.open && pP(cF?.video);
+ }, DF = window.setTimeout(() => {
+ DF = 0, OF = null, ZP.open && fP(sF?.video);
}, 280));
}
-function dde() {
- Date.now() < AF || pP(cF?.video);
+function fde() {
+ Date.now() < kF || fP(sF?.video);
}
-var PF = (e) => ZP?.bar.toggleAttribute("data-scrubbing", e);
-function FF(e) {
- ZP && (ZP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var NF = (e) => XP?.bar.toggleAttribute("data-scrubbing", e);
+function PF(e) {
+ XP && (XP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function IF(e) {
+function FF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- jF = null;
+ AF = null;
return;
}
- let n = cF?.video;
- jF = {
+ let n = sF?.video;
+ AF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function LF(e) {
- if (!jF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - jF.x, n = e.touches[0].clientY - jF.y;
- if (!jF.axis) {
+function IF(e) {
+ if (!AF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - AF.x, n = e.touches[0].clientY - AF.y;
+ if (!AF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- jF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", jF.axis === "x" && PF(!0);
+ AF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", AF.axis === "x" && NF(!0);
}
- if (jF.axis !== "x") return;
- let r = cF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), jF.to = Math.min(i, Math.max(0, jF.from + t / window.innerWidth * i)), FF(jF.to / i));
+ if (AF.axis !== "x") return;
+ let r = sF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), AF.to = Math.min(i, Math.max(0, AF.from + t / window.innerWidth * i)), PF(AF.to / i));
}
-function RF(e) {
- if (!jF) return;
- let t = jF;
- if (jF = null, AF = Date.now() + 700, PF(!1), t.axis === "x") {
- let e = cF?.video;
+function LF(e) {
+ if (!AF) return;
+ let t = AF;
+ if (AF = null, kF = Date.now() + 700, NF(!1), t.axis === "x") {
+ let e = sF?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (NF(), TF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ude(n.clientX));
+ Math.abs(i) > 60 ? (MF(), wF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), dde(n.clientX));
}
-function zF() {
- jF = null, PF(!1);
+function RF() {
+ AF = null, NF(!1);
}
-function BF(e) {
+function zF(e) {
let t = Date.now();
- t - MF < 260 || (MF = t, TF(e.deltaY > 0 ? 1 : -1));
+ t - jF < 260 || (jF = t, wF(e.deltaY > 0 ? 1 : -1));
}
-function VF(e) {
- let t = ZP.bar.getBoundingClientRect();
+function BF(e) {
+ let t = XP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function fde(e) {
- pF?.duration() && (mF = !0, PF(!0), e.currentTarget.setPointerCapture(e.pointerId), FF(VF(e)), e.preventDefault());
-}
function pde(e) {
- mF && FF(VF(e));
+ fF?.duration() && (pF = !0, NF(!0), e.currentTarget.setPointerCapture(e.pointerId), PF(BF(e)), e.preventDefault());
}
function mde(e) {
- if (!mF) return;
- mF = !1, PF(!1);
- let t = pF?.duration();
- pF && t && (pF.video.currentTime = t * VF(e));
+ pF && PF(BF(e));
}
-function hde() {
- mF = !1, PF(!1);
+function hde(e) {
+ if (!pF) return;
+ pF = !1, NF(!1);
+ let t = fF?.duration();
+ fF && t && (fF.video.currentTime = t * BF(e));
}
-async function HF(e, t) {
- let n = await V(DP, {
+function gde() {
+ pF = !1, NF(!1);
+}
+async function VF(e, t) {
+ let n = await V(EP, {
id: e,
kind: t
- }), r = H.getQueryData(wP(e));
- if (!r) return yP(e, {
+ }), r = H.getQueryData(CP(e));
+ if (!r) return vP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34936,7 +34936,7 @@ async function HF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(wP(e), i), yP(e, {
+ return H.setQueryData(CP(e), i), vP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34944,7 +34944,7 @@ async function HF(e, t) {
o_count: i.o_count
}), n;
}
-var gde = [
+var _de = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -34961,31 +34961,31 @@ var gde = [
label: "记一次高潮"
}
];
-function UF(e) {
+function HF(e) {
return Pt({
- queryKey: wP(e ?? 0),
- queryFn: ({ signal: t }) => NP(e, t),
+ queryKey: CP(e ?? 0),
+ queryFn: ({ signal: t }) => MP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function _de({ kind: e, glyph: t, label: n, id: r }) {
- let i = UF(r), a = Ft({
+function vde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = HF(r), a = Ft({
mutationFn: async (t) => {
- let n = H.getQueryData(wP(t))?.feedback || null;
+ let n = H.getQueryData(CP(t))?.feedback || null;
return {
- result: await HF(t, e),
+ result: await VF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- hF().toast(qP(e, t), { undo: async () => {
- e === "o" ? await HF(r, "o-undo") : (t.feedback && await HF(r, t.feedback), n && await HF(r, n));
+ mF().toast(KP(e, t), { undo: async () => {
+ e === "o" ? await VF(r, "o-undo") : (t.feedback && await VF(r, t.feedback), n && await VF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- TF(1);
+ wF(1);
}, 260);
},
- onError: (e) => hF().failure("更新反馈", e)
+ onError: (e) => mF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35016,11 +35016,11 @@ function _de({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function vde({ shown: e }) {
- let t = e?.item ?? null, n = UF(t?.id ?? null), r = n ? Zue(n) : null, i = hF(), a = (e) => {
- e.preventDefault(), n && (DF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function yde({ shown: e }) {
+ let t = e?.item ?? null, n = HF(t?.id ?? null), r = n ? Que(n) : null, i = mF(), a = (e) => {
+ e.preventDefault(), n && (EF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (DF(), i.openItem(t.id));
+ t && (EF(), i.openItem(t.id));
}, s = r ? go(r.name, r.ref, Xa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35049,18 +35049,18 @@ function vde({ shown: e }) {
})]
});
}
-var yde = { __html: zs("媒体加载中") };
-function bde({ view: e }) {
+var bde = { __html: zs("媒体加载中") };
+function xde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return ZP = {
+ return XP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", IF, { passive: !0 }), e.addEventListener("touchmove", LF, { passive: !1 }), e.addEventListener("touchend", RF, { passive: !1 }), e.addEventListener("touchcancel", zF, { passive: !0 }), e.addEventListener("wheel", BF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", IF), e.removeEventListener("touchmove", LF), e.removeEventListener("touchend", RF), e.removeEventListener("touchcancel", zF), e.removeEventListener("wheel", BF), ZP = null;
+ }, e.addEventListener("touchstart", FF, { passive: !0 }), e.addEventListener("touchmove", IF, { passive: !1 }), e.addEventListener("touchend", LF, { passive: !1 }), e.addEventListener("touchcancel", RF, { passive: !0 }), e.addEventListener("wheel", zF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", FF), e.removeEventListener("touchmove", IF), e.removeEventListener("touchend", LF), e.removeEventListener("touchcancel", RF), e.removeEventListener("wheel", zF), XP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35077,10 +35077,10 @@ function bde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: dde
+ onClick: fde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: gde.map((e) => /* @__PURE__ */ (0, I.jsx)(_de, {
+ children: _de.map((e) => /* @__PURE__ */ (0, I.jsx)(vde, {
...e,
id: a
}, e.kind))
@@ -35093,7 +35093,7 @@ function bde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: yde
+ dangerouslySetInnerHTML: bde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35101,7 +35101,7 @@ function bde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: DF,
+ onClick: EF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35110,41 +35110,41 @@ function bde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: fde,
- onPointerMove: pde,
- onPointerUp: mde,
- onPointerCancel: hde,
+ onPointerDown: pde,
+ onPointerMove: mde,
+ onPointerUp: hde,
+ onPointerCancel: gde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(vde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(yde, { shown: e.shown })
]
});
}
-var xde = {
- open: lde,
- close: DF,
- isOpen: () => QP.open,
- activeVideo: () => QP.open ? cF?.video ?? null : null
+var Sde = {
+ open: ude,
+ close: EF,
+ isOpen: () => ZP.open,
+ activeVideo: () => ZP.open ? sF?.video ?? null : null
};
-function Sde(e) {
- if (!QP.open) return;
+function Cde(e) {
+ if (!ZP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && TF(1), e.key === "ArrowUp" && TF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && wF(1), e.key === "ArrowUp" && wF(-1));
}
-function Cde(e) {
- let t = !XP;
- return XP = e, t && (document.addEventListener("keydown", Sde), addEventListener("resize", () => {
- QP.open && SF();
+function wde(e) {
+ let t = !YP;
+ return YP = e, t && (document.addEventListener("keydown", Cde), addEventListener("resize", () => {
+ ZP.open && xF();
}), addEventListener("pagehide", () => {
- lF.forEach((e) => YN(e.session));
- })), xde;
+ cF.forEach((e) => JN(e.session));
+ })), Sde;
}
-function wde() {
- let e = (0, F.useSyncExternalStore)(tde, () => QP);
- return XP ? /* @__PURE__ */ (0, I.jsx)(bde, { view: e }) : null;
+function Tde() {
+ let e = (0, F.useSyncExternalStore)(nde, () => ZP);
+ return YP ? /* @__PURE__ */ (0, I.jsx)(xde, { view: e }) : null;
}
// src/manage-header.ts
-var WF = {
+var UF = {
...Jf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35152,47 +35152,47 @@ var WF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Tde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Ede(e) {
- let t = WF[e.path] ? "cleanup" : e.section;
+}, Ede = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Dde(e) {
+ let t = UF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Dde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function GF(e) {
+var Ode = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function WF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = WF[e.path] ?? "";
+ let n = UF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Ede(e),
+ pressed: Dde(e),
crumb: n,
- compact: Tde.has(e.path) || e.section === "configuration",
+ compact: Ede.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Dde(e.trash),
+ text: Ode(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var KF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var GF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), qF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${KF(e)}"/></svg>`, JF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Ode(e) {
- let t = GF(e);
+})[e]), KF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${GF(e)}"/></svg>`, qF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function kde(e) {
+ let t = WF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${KF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${qF(r)}<span>${KF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${qF("chevron-right")}</li><li aria-current="true"><span>${KF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? JF : `<span data-lede-text="">${KF(t.lede.text)}</span>${t.lede.total ? kde : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${KF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${GF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${KF(r)}<span>${GF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${KF("chevron-right")}</li><li aria-current="true"><span>${GF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? qF : `<span data-lede-text="">${GF(t.lede.text)}</span>${t.lede.total ? Ade : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${GF(t.title)}</h2>` + i;
}
-var kde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Ade = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function YF({ name: e }) {
+function JF({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35201,7 +35201,7 @@ function YF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function Ade({ name: e }) {
+function jde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35209,88 +35209,88 @@ function Ade({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var jde = (e, t) => {
+var Mde = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Mde = (e, t) => ({
+}, Nde = (e, t) => ({
classGroupId: e,
validator: t
-}), XF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), YF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), ZF = "-", QF = [], Nde = "arbitrary..", Pde = (e) => {
- let t = Ide(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), XF = "-", ZF = [], Pde = "arbitrary..", Fde = (e) => {
+ let t = Lde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Fde(e);
- let n = e.split(ZF);
- return $F(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Ide(e);
+ let n = e.split(XF);
+ return QF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? jde(i, t) : t : i || QF;
+ return t ? i ? Mde(i, t) : t : i || ZF;
}
- return n[e] || QF;
+ return n[e] || ZF;
}
};
-}, $F = (e, t, n) => {
+}, QF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = $F(e, t + 1, i);
+ let n = QF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(ZF) : e.slice(t).join(ZF), s = a.length;
+ let o = t === 0 ? e.join(XF) : e.slice(t).join(XF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Fde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Ide = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Nde + r : void 0;
-})(), Ide = (e) => {
+ return r ? Pde + r : void 0;
+})(), Lde = (e) => {
let { theme: t, classGroups: n } = e;
- return Lde(n, t);
-}, Lde = (e, t) => {
- let n = XF();
+ return Rde(n, t);
+}, Rde = (e, t) => {
+ let n = YF();
for (let r in e) {
let i = e[r];
- eI(i, n, r, t);
+ $F(i, n, r, t);
}
return n;
-}, eI = (e, t, n, r) => {
+}, $F = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Rde(i, t, n, r);
+ zde(i, t, n, r);
}
-}, Rde = (e, t, n, r) => {
- typeof e == "string" ? zde(e, t, n) : typeof e == "function" ? Bde(e, t, n, r) : Vde(e, t, n, r);
-}, zde = (e, t, n) => {
- let r = e === "" ? t : tI(t, e);
+}, zde = (e, t, n, r) => {
+ typeof e == "string" ? Bde(e, t, n) : typeof e == "function" ? Vde(e, t, n, r) : Hde(e, t, n, r);
+}, Bde = (e, t, n) => {
+ let r = e === "" ? t : eI(t, e);
r.classGroupId = n;
-}, Bde = (e, t, n, r) => {
- Hde(e) ? eI(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Mde(n, e)));
}, Vde = (e, t, n, r) => {
+ Ude(e) ? $F(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Nde(n, e)));
+}, Hde = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- eI(o, tI(t, a), n, r);
+ $F(o, eI(t, a), n, r);
}
-}, tI = (e, t) => {
- let n = e, r = t.split(ZF), i = r.length;
+}, eI = (e, t) => {
+ let n = e, r = t.split(XF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = XF(), n.nextPart.set(t, i)), n = i;
+ i || (i = YF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Hde = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ude = (e) => {
+}, Ude = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Wde = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35308,19 +35308,19 @@ var jde = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, nI = "!", rI = ":", Wde = [], iI = (e, t, n, r, i) => ({
+}, tI = "!", nI = ":", Gde = [], rI = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Gde = (e) => {
+}), Kde = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === rI) {
+ if (o === nI) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35332,13 +35332,13 @@ var jde = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(nI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nI) && (c = s.slice(1), l = !0);
+ s.endsWith(tI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(tI) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return iI(t, l, c, u);
+ return rI(t, l, c, u);
};
if (t) {
- let e = t + rI, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : iI(Wde, !1, t, void 0, !0);
+ let e = t + nI, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : rI(Gde, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35348,7 +35348,7 @@ var jde = (e, t) => {
});
}
return r;
-}, Kde = (e) => {
+}, qde = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35360,18 +35360,18 @@ var jde = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, qde = (e) => ({
- cache: Ude(e.cacheSize),
- parseClassName: Gde(e),
- sortModifiers: Kde(e),
- postfixLookupClassGroupIds: Jde(e),
- ...Pde(e)
-}), Jde = (e) => {
+}, Jde = (e) => ({
+ cache: Wde(e.cacheSize),
+ parseClassName: Kde(e),
+ sortModifiers: qde(e),
+ postfixLookupClassGroupIds: Yde(e),
+ ...Fde(e)
+}), Yde = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Yde = /\s+/, Xde = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Yde), l = "";
+}, Xde = /\s+/, Zde = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Xde), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35391,7 +35391,7 @@ var jde = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nI : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + tI : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35402,34 +35402,34 @@ var jde = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Zde = (...e) => {
+}, Qde = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = aI(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = iI(n)) && (i && (i += " "), i += r);
return i;
-}, aI = (e) => {
+}, iI = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = aI(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = iI(e[r])) && (n && (n += " "), n += t);
return n;
-}, oI = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = qde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, aI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Jde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Xde(e, n);
+ let a = Zde(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Zde(...e));
-}, Qde = [], sI = (e) => {
- let t = (t) => t[e] || Qde;
+ return a = o, (...e) => a(Qde(...e));
+}, $de = [], oI = (e) => {
+ let t = (t) => t[e] || $de;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, cI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, lI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $de = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, efe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, tfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, rfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ife = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, uI = (e) => $de.test(e), dI = (e) => !!e && !Number.isNaN(Number(e)), fI = (e) => !!e && Number.isInteger(Number(e)), pI = (e) => e.endsWith("%") && dI(e.slice(0, -1)), mI = (e) => efe.test(e), hI = () => !0, gI = (e) => tfe.test(e) && !nfe.test(e), _I = () => !1, vI = (e) => rfe.test(e), yI = (e) => ife.test(e), bI = (e) => !CI(e) && !OI(e), xI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), SI = (e) => MI(e, II, _I), CI = (e) => cI.test(e), wI = (e) => MI(e, LI, gI), TI = (e) => MI(e, ffe, dI), afe = (e) => MI(e, zI, hI), ofe = (e) => MI(e, RI, _I), EI = (e) => MI(e, PI, _I), sfe = (e) => MI(e, FI, yI), DI = (e) => MI(e, BI, vI), OI = (e) => lI.test(e), kI = (e) => NI(e, LI), cfe = (e) => NI(e, RI), AI = (e) => NI(e, PI), lfe = (e) => NI(e, II), ufe = (e) => NI(e, FI), jI = (e) => NI(e, BI, !0), dfe = (e) => NI(e, zI, !0), MI = (e, t, n) => {
- let r = cI.exec(e);
+}, sI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, cI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, efe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, tfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, rfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, ife = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, afe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, lI = (e) => efe.test(e), uI = (e) => !!e && !Number.isNaN(Number(e)), dI = (e) => !!e && Number.isInteger(Number(e)), fI = (e) => e.endsWith("%") && uI(e.slice(0, -1)), pI = (e) => tfe.test(e), mI = () => !0, ofe = (e) => nfe.test(e) && !rfe.test(e), hI = () => !1, sfe = (e) => ife.test(e), cfe = (e) => afe.test(e), gI = (e) => !yI(e) && !DI(e), _I = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), vI = (e) => MI(e, II, hI), yI = (e) => sI.test(e), bI = (e) => MI(e, LI, ofe), xI = (e) => MI(e, ffe, uI), SI = (e) => MI(e, zI, mI), CI = (e) => MI(e, RI, hI), wI = (e) => MI(e, PI, hI), TI = (e) => MI(e, FI, cfe), EI = (e) => MI(e, BI, sfe), DI = (e) => cI.test(e), OI = (e) => NI(e, LI), kI = (e) => NI(e, RI), AI = (e) => NI(e, PI), lfe = (e) => NI(e, II), ufe = (e) => NI(e, FI), jI = (e) => NI(e, BI, !0), dfe = (e) => NI(e, zI, !0), MI = (e, t, n) => {
+ let r = sI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
}, NI = (e, t, n = !1) => {
- let r = lI.exec(e);
+ let r = cI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
}, PI = (e) => e === "position" || e === "percentage", FI = (e) => e === "image" || e === "url", II = (e) => e === "length" || e === "size" || e === "bg-size", LI = (e) => e === "length", ffe = (e) => e === "number", RI = (e) => e === "family-name", zI = (e) => e === "number" || e === "weight", BI = (e) => e === "shadow", VI = () => {
- let e = sI("color"), t = sI("font"), n = sI("text"), r = sI("font-weight"), i = sI("tracking"), a = sI("leading"), o = sI("breakpoint"), s = sI("container"), c = sI("spacing"), l = sI("radius"), u = sI("shadow"), d = sI("inset-shadow"), f = sI("text-shadow"), p = sI("drop-shadow"), m = sI("blur"), h = sI("perspective"), g = sI("aspect"), _ = sI("ease"), v = sI("animate"), y = () => [
+ let e = oI("color"), t = oI("font"), n = oI("text"), r = oI("font-weight"), i = oI("tracking"), a = oI("leading"), o = oI("breakpoint"), s = oI("container"), c = oI("spacing"), l = oI("radius"), u = oI("shadow"), d = oI("inset-shadow"), f = oI("text-shadow"), p = oI("drop-shadow"), m = oI("blur"), h = oI("perspective"), g = oI("aspect"), _ = oI("ease"), v = oI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35454,8 +35454,8 @@ var jde = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- OI,
- CI
+ DI,
+ yI
], S = () => [
"auto",
"hidden",
@@ -35467,43 +35467,43 @@ var jde = (e, t) => {
"contain",
"none"
], w = () => [
- OI,
- CI,
+ DI,
+ yI,
c
], T = () => [
- uI,
+ lI,
"full",
"auto",
...w()
], E = () => [
- fI,
+ dI,
"none",
"subgrid",
- OI,
- CI
+ DI,
+ yI
], D = () => [
"auto",
{ span: [
"full",
- fI,
- OI,
- CI
+ dI,
+ DI,
+ yI
] },
- fI,
- OI,
- CI
+ dI,
+ DI,
+ yI
], O = () => [
- fI,
+ dI,
"auto",
- OI,
- CI
+ DI,
+ yI
], k = () => [
"auto",
"min",
"max",
"fr",
- OI,
- CI
+ DI,
+ yI
], A = () => [
"start",
"end",
@@ -35523,7 +35523,7 @@ var jde = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- uI,
+ lI,
"auto",
"full",
"dvw",
@@ -35538,7 +35538,7 @@ var jde = (e, t) => {
...w()
], N = () => [
s,
- uI,
+ lI,
"screen",
"full",
"dvw",
@@ -35549,7 +35549,7 @@ var jde = (e, t) => {
"fit",
...w()
], te = () => [
- uI,
+ lI,
"screen",
"full",
"lh",
@@ -35562,13 +35562,13 @@ var jde = (e, t) => {
...w()
], P = () => [
e,
- OI,
- CI
+ DI,
+ yI
], ne = () => [
...b(),
AI,
- EI,
- { position: [OI, CI] }
+ wI,
+ { position: [DI, yI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35580,24 +35580,24 @@ var jde = (e, t) => {
"cover",
"contain",
lfe,
- SI,
- { size: [OI, CI] }
+ vI,
+ { size: [DI, yI] }
], I = () => [
- pI,
- kI,
- wI
+ fI,
+ OI,
+ bI
], ie = () => [
"",
"none",
"full",
l,
- OI,
- CI
+ DI,
+ yI
], ae = () => [
"",
- dI,
- kI,
- wI
+ uI,
+ OI,
+ bI
], oe = () => [
"solid",
"dashed",
@@ -35621,32 +35621,32 @@ var jde = (e, t) => {
"color",
"luminosity"
], ce = () => [
- dI,
- pI,
+ uI,
+ fI,
AI,
- EI
+ wI
], le = () => [
"",
"none",
m,
- OI,
- CI
+ DI,
+ yI
], ue = () => [
"none",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
], de = () => [
"none",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
], fe = () => [
- dI,
- OI,
- CI
- ], pe = () => [
uI,
+ DI,
+ yI
+ ], pe = () => [
+ lI,
"full",
...w()
];
@@ -35660,17 +35660,17 @@ var jde = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [mI],
- breakpoint: [mI],
- color: [hI],
- container: [mI],
- "drop-shadow": [mI],
+ blur: [pI],
+ breakpoint: [pI],
+ color: [mI],
+ container: [pI],
+ "drop-shadow": [pI],
ease: [
"in",
"out",
"in-out"
],
- font: [bI],
+ font: [gI],
"font-weight": [
"thin",
"extralight",
@@ -35682,7 +35682,7 @@ var jde = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [mI],
+ "inset-shadow": [pI],
leading: [
"none",
"tight",
@@ -35699,11 +35699,11 @@ var jde = (e, t) => {
"distant",
"none"
],
- radius: [mI],
- shadow: [mI],
- spacing: ["px", dI],
- text: [mI],
- "text-shadow": [mI],
+ radius: [pI],
+ shadow: [pI],
+ spacing: ["px", uI],
+ text: [pI],
+ "text-shadow": [pI],
tracking: [
"tighter",
"tight",
@@ -35717,9 +35717,9 @@ var jde = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- uI,
- CI,
- OI,
+ lI,
+ yI,
+ DI,
g
] }],
container: ["container"],
@@ -35727,15 +35727,15 @@ var jde = (e, t) => {
"",
"normal",
"size",
- OI,
- CI
+ DI,
+ yI
] }],
- "container-named": [xI],
+ "container-named": [_I],
columns: [{ columns: [
- dI,
+ uI,
"auto",
- CI,
- OI,
+ yI,
+ DI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35832,13 +35832,13 @@ var jde = (e, t) => {
"collapse"
],
z: [{ z: [
- fI,
+ dI,
"auto",
- OI,
- CI
+ DI,
+ yI
] }],
basis: [{ basis: [
- uI,
+ lI,
"full",
"auto",
s,
@@ -35856,32 +35856,32 @@ var jde = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- dI,
uI,
+ lI,
"auto",
"initial",
"none",
- CI
+ yI
] }],
grow: [{ grow: [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
shrink: [{ shrink: [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
order: [{ order: [
- fI,
+ dI,
"first",
"last",
"none",
- OI,
- CI
+ DI,
+ yI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -35988,15 +35988,15 @@ var jde = (e, t) => {
"font-size": [{ text: [
"base",
n,
- kI,
- wI
+ OI,
+ bI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
dfe,
- afe
+ SI
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36008,15 +36008,15 @@ var jde = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- pI,
- CI
+ fI,
+ yI
] }],
"font-family": [{ font: [
- cfe,
- ofe,
+ kI,
+ CI,
t
] }],
- "font-features": [{ "font-features": [CI] }],
+ "font-features": [{ "font-features": [yI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36025,14 +36025,14 @@ var jde = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- OI,
- CI
+ DI,
+ yI
] }],
"line-clamp": [{ "line-clamp": [
- dI,
+ uI,
"none",
- OI,
- TI
+ DI,
+ xI
] }],
leading: [{ leading: [
"none",
@@ -36041,16 +36041,16 @@ var jde = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- OI,
- CI
+ DI,
+ yI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- OI,
- CI
+ DI,
+ yI
] }],
"text-alignment": [{ text: [
"left",
@@ -36070,18 +36070,18 @@ var jde = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- dI,
+ uI,
"from-font",
"auto",
- OI,
- wI
+ DI,
+ bI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- dI,
+ uI,
"auto",
- OI,
- CI
+ DI,
+ yI
] }],
"text-transform": [
"uppercase",
@@ -36102,9 +36102,9 @@ var jde = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- fI,
- OI,
- CI
+ dI,
+ DI,
+ yI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36115,8 +36115,8 @@ var jde = (e, t) => {
"text-bottom",
"sub",
"super",
- OI,
- CI
+ DI,
+ yI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36144,8 +36144,8 @@ var jde = (e, t) => {
] }],
content: [{ content: [
"none",
- OI,
- CI
+ DI,
+ yI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36180,24 +36180,24 @@ var jde = (e, t) => {
"l",
"tl"
] },
- fI,
- OI,
- CI
+ dI,
+ DI,
+ yI
],
radial: [
"",
- OI,
- CI
+ DI,
+ yI
],
conic: [
"",
- fI,
- OI,
- CI
+ dI,
+ DI,
+ yI
]
},
ufe,
- sfe
+ TI
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36264,15 +36264,15 @@ var jde = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"outline-w": [{ outline: [
"",
- dI,
- kI,
- wI
+ uI,
+ OI,
+ bI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36281,20 +36281,20 @@ var jde = (e, t) => {
"none",
u,
jI,
- DI
+ EI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
jI,
- DI
+ EI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [dI, wI] }],
+ "ring-offset-w": [{ "ring-offset": [uI, bI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
@@ -36302,13 +36302,13 @@ var jde = (e, t) => {
"none",
f,
jI,
- DI
+ EI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36330,7 +36330,7 @@ var jde = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [dI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [uI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36359,7 +36359,7 @@ var jde = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [OI, CI] }],
+ "mask-image-radial": [{ "mask-radial": [DI, yI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36370,7 +36370,7 @@ var jde = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [dI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [uI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36394,111 +36394,111 @@ var jde = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- OI,
- CI
+ DI,
+ yI
] }],
filter: [{ filter: [
"",
"none",
- OI,
- CI
+ DI,
+ yI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
contrast: [{ contrast: [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
jI,
- DI
+ EI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"hue-rotate": [{ "hue-rotate": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
invert: [{ invert: [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
saturate: [{ saturate: [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
sepia: [{ sepia: [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- OI,
- CI
+ DI,
+ yI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36514,39 +36514,39 @@ var jde = (e, t) => {
"shadow",
"transform",
"none",
- OI,
- CI
+ DI,
+ yI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- dI,
+ uI,
"initial",
- OI,
- CI
+ DI,
+ yI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- OI,
- CI
+ DI,
+ yI
] }],
delay: [{ delay: [
- dI,
- OI,
- CI
+ uI,
+ DI,
+ yI
] }],
animate: [{ animate: [
"none",
v,
- OI,
- CI
+ DI,
+ yI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- OI,
- CI
+ DI,
+ yI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36562,8 +36562,8 @@ var jde = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- OI,
- CI,
+ DI,
+ yI,
"",
"none",
"gpu",
@@ -36577,9 +36577,9 @@ var jde = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- fI,
- OI,
- CI
+ dI,
+ DI,
+ yI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36629,8 +36629,8 @@ var jde = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- OI,
- CI
+ DI,
+ yI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36716,15 +36716,15 @@ var jde = (e, t) => {
"scroll",
"contents",
"transform",
- OI,
- CI
+ DI,
+ yI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- dI,
- kI,
- wI,
- TI
+ uI,
+ OI,
+ bI,
+ xI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -36991,7 +36991,7 @@ var jde = (e, t) => {
}, GI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, mfe = (e, ...t) => typeof e == "function" ? oI(VI, e, ...t) : oI(() => pfe(VI(), e), ...t), hfe = [
+}, mfe = (e, ...t) => typeof e == "function" ? aI(VI, e, ...t) : aI(() => pfe(VI(), e), ...t), hfe = [
"large-title",
"display-1",
"display-2",
@@ -37115,7 +37115,7 @@ function Sfe() {
}) : null;
}
function Cfe({ host: e, props: t }) {
- let n = GF(t);
+ let n = WF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)(wfe, {
host: e,
@@ -37161,7 +37161,7 @@ function wfe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
@@ -37177,7 +37177,7 @@ function Tfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
@@ -37189,7 +37189,7 @@ function Efe({ host: e, lede: t }) {
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: JF }
+ dangerouslySetInnerHTML: { __html: qF }
}) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Dfe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
@@ -37976,7 +37976,7 @@ function FL(e, t) {
return n;
}
function IL(e, t, n) {
- let { ref: r, ...i } = FL(n, e.slot) || {}, a = YC((0, F.useMemo)(() => BC(t, r), [t, r])), o = K(i, e);
+ let { ref: r, ...i } = FL(n, e.slot) || {}, a = tw((0, F.useMemo)(() => KC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -37998,7 +37998,7 @@ function LL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return RS(() => {
+ return WS(() => {
r.current || n(!1);
}, []), [i, t];
}
@@ -38008,8 +38008,8 @@ function RL(e) {
return n;
}
function mpe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => BC(n, a), [n, a]);
- RS(() => {}, [e, r]);
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => KC(n, a), [n, a]);
+ WS(() => {}, [e, r]);
let s = {
...i,
ref: o
@@ -38029,7 +38029,7 @@ var zL = {}, BL = new Proxy({}, { get(e, t) {
}
};
function GL(e, t, n) {
- return bS({
+ return ES({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38067,7 +38067,7 @@ function qL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var JL = /*#__PURE__*/ (0, F.createContext)({}), YL = /*#__PURE__*/ ew(function(e, t) {
+var JL = /*#__PURE__*/ (0, F.createContext)({}), YL = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, JL);
let { elementType: n = "label", ...r } = e, i = BL[n];
return /*#__PURE__*/ F.createElement(i, {
@@ -38075,11 +38075,11 @@ var JL = /*#__PURE__*/ (0, F.createContext)({}), YL = /*#__PURE__*/ ew(function(
...r,
ref: t
});
-}), gpe = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)({}), ZL = /*#__PURE__*/ ew(function(e, t) {
+}), gpe = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)({}), ZL = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, XL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ioe(e, t);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Moe(e, t);
i = vpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = ND(e), { hoverProps: l, isHovered: u } = LD({
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = PD(e), { hoverProps: l, isHovered: u } = RD({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38093,19 +38093,19 @@ var JL = /*#__PURE__*/ (0, F.createContext)({}), YL = /*#__PURE__*/ ew(function(
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = RC(i.id), m = RC(), h = i["aria-labelledby"];
+ }), p = WC(i.id), m = WC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && jT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && FT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Ww(e, { global: !0 });
+ let _ = Jw(e, { global: !0 });
return delete _.onClick, /*#__PURE__*/ F.createElement(BL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
@@ -38138,7 +38138,7 @@ var QL = /*#__PURE__*/ (0, F.createContext)({}), $L = /*#__PURE__*/ (0, F.forwar
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), eR = /*#__PURE__*/ (0, F.createContext)({}), ype = /*#__PURE__*/ ew(function(e, t) {
+}), eR = /*#__PURE__*/ (0, F.createContext)({}), ype = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, eR);
let { elementType: n = "span", ...r } = e, i = BL[n];
return /*#__PURE__*/ F.createElement(i, {
@@ -38148,13 +38148,13 @@ var QL = /*#__PURE__*/ (0, F.createContext)({}), $L = /*#__PURE__*/ (0, F.forwar
});
}), tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.createContext)(null), rR = /*#__PURE__*/ (0, F.createContext)(null), iR = /*#__PURE__*/ (0, F.createContext)(null), bpe = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null);
function xpe(e, t) {
- let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(bpe), a = YC((0, F.useMemo)(() => BC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(bpe), a = tw((0, F.useMemo)(() => KC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
...RL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? ase(o, i, a) : QT(o, rE(e), a), a];
+ return [i ? tse(o, i, a) : nE(o, sE(e), a), a];
}
var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
@@ -38171,7 +38171,7 @@ var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
ref: t
}));
}), Cpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(aR), { isFocused: p, isFocusVisible: m, focusProps: h } = ND(), g = a || o, { hoverProps: _, isHovered: v } = LD({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(aR), { isFocused: p, isFocusVisible: m, focusProps: h } = PD(), g = a || o, { hoverProps: _, isHovered: v } = RD({
...e,
isDisabled: g
}), y = PL({
@@ -38189,7 +38189,7 @@ var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Ww(e, { global: !0 });
+ }), b = Jw(e, { global: !0 });
return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(BL.label, {
...K(b, n, _, y),
ref: t,
@@ -38204,7 +38204,7 @@ var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(gE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
@@ -38212,12 +38212,12 @@ var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = IL(e, t, oR);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = LD({
+ let { hoverProps: l, isHovered: u } = RD({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ND({ within: !0 }), m = PL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = PD({ within: !0 }), m = PL({
...e,
values: {
isHovered: u,
@@ -38244,12 +38244,12 @@ var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
}), cR = /*#__PURE__*/ (0, F.createContext)({}), wpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Tpe = /*#__PURE__*/ ew(function(e, t) {
+}, Tpe = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, cR);
- let { hoverProps: n, isHovered: r } = LD({
+ let { hoverProps: n, isHovered: r } = RD({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = ND({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = PD({
isTextInput: !0,
autoFocus: e.autoFocus
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = PL({
@@ -38277,12 +38277,12 @@ var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
function kpe(e) {
let { isDisabled: t = !1, minValue: n = Epe, maxValue: r = Dpe, numberFormatter: i, step: a = Ope, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = oE(e, 0, e + a, a), Math.max(e, a);
+ return e = uE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => oE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => uE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
@@ -38290,7 +38290,7 @@ function kpe(e) {
e.defaultValue,
n,
c
- ]), d = dR(e.value, e.defaultValue, e.onChange), f = dR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = nE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = dR(e.value, e.defaultValue, e.onChange), f = dR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = oE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38313,7 +38313,7 @@ function kpe(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = oE(n, r, i, a);
+ n = uE(n, r, i, a);
let o = lR(x.current, e, n);
C(o);
}
@@ -38342,15 +38342,15 @@ function kpe(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return iE(te(e * (r - n) + n), n, r);
+ return cE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, oE(p[e] + i, n, r, a));
+ A(e, uE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, oE(p[e] - i, n, r, a));
+ A(e, uE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38397,10 +38397,10 @@ function dR(e, t, n) {
// node_modules/react-aria-components/dist/private/Slider.mjs
var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.createContext)(null), jpe = /*#__PURE__*/ (0, F.createContext)(null), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = IL(e, t, Ape);
- let n = (0, F.useRef)(null), r = use(e.formatOptions), i = kpe({
+ let n = (0, F.useRef)(null), r = ose(e.formatOptions), i = kpe({
...e,
numberFormatter: r
- }), [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = hE({
+ }), [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = sse({
...e,
label: o
}, i, n), d = PL({
@@ -38411,7 +38411,7 @@ var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Ww(e, { global: !0 });
+ }), f = Jw(e, { global: !0 });
return delete f.id, /*#__PURE__*/ F.createElement(NL, { values: [
[fR, i],
[pR, {
@@ -38432,7 +38432,7 @@ var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.cre
}));
}), Npe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = IL(e, t, pR);
- let n = (0, F.useContext)(fR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = LD({
+ let n = (0, F.useContext)(fR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = RD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
@@ -38455,13 +38455,13 @@ var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.cre
"data-disabled": n.isDisabled || void 0
});
}), Ppe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(fR), { ref: i } = FL(pR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = LL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = gE({
+ let { inputRef: n = null } = e, r = (0, F.useContext)(fR), { ref: i } = FL(pR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = LL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = cse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = ND(), { hoverProps: v, isHovered: y } = LD(e), b = PL({
+ }, r), { focusProps: g, isFocusVisible: _ } = PD(), { hoverProps: v, isHovered: y } = RD(e), b = PL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38472,7 +38472,7 @@ var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Ww(e, { global: !0 });
+ }), x = Jw(e, { global: !0 });
return delete x.id, /*#__PURE__*/ F.createElement(BL.div, {
...K(x, u, v),
...b,
@@ -38486,7 +38486,7 @@ var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(gE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
})), /*#__PURE__*/ F.createElement(NL, { values: [[JL, {
@@ -38844,7 +38844,7 @@ function ez(e) {
return /*#__PURE__*/ F.createElement(Ipe.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var tz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), nz = /*#__PURE__*/ (0, F.createContext)({}), Lpe = /*#__PURE__*/ cw(class extends fS {
+var tz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), nz = /*#__PURE__*/ (0, F.createContext)({}), Lpe = /*#__PURE__*/ mw(class extends vS {
static {
this.type = "separator";
}
@@ -38860,11 +38860,11 @@ var tz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), nz = /*#__PURE_
[e, t] = IL(e, t, nz);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = BL[c], { separatorProps: u } = mce({
+ let l = BL[c], { separatorProps: u } = hce({
...s,
elementType: n,
orientation: r
- }), d = Ww(e, { global: !0 });
+ }), d = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -38936,7 +38936,7 @@ function Rpe(e, t) {
return !0;
}
function oz(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = nE((0, F.useMemo)(() => sz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => sz(e.defaultSelectedKeys, new az()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = oE((0, F.useMemo)(() => sz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => sz(e.defaultSelectedKeys, new az()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39029,7 +39029,7 @@ var cz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && xD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && SD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39037,7 +39037,7 @@ var cz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && xD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && SD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39067,7 +39067,7 @@ var cz = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? xD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? SD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -39117,7 +39117,7 @@ var cz = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(vD(_D(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(yD(vD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39377,14 +39377,14 @@ function pz(e, t) {
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
function mz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ew((e) => {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Mw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- RS(() => {
+ WS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: PT(t?.current),
+ root: RT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39406,7 +39406,7 @@ var hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.crea
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(Upe, {
+ }) : /*#__PURE__*/ F.createElement(dw, { content: /*#__PURE__*/ F.createElement(vw, e) }, (n) => /*#__PURE__*/ F.createElement(Upe, {
props: e,
listBoxRef: t,
collection: n
@@ -39431,10 +39431,10 @@ function Upe({ props: e, listBoxRef: t, collection: n }) {
}
function _z({ state: e, props: t, listBoxRef: n }) {
[t, n] = IL(t, n, VL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Vpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Pw(), { disabledBehavior: p, disabledKeys: m } = l, h = ED({
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Vpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Bw(), { disabledBehavior: p, disabledKeys: m } = l, h = DD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(KL), b = (0, F.useMemo)(() => t.keyboardDelegate || new OE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(KL), b = (0, F.useMemo)(() => t.keyboardDelegate || new kE({
collection: c,
collator: h,
ref: n,
@@ -39455,7 +39455,7 @@ function _z({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Ise({
+ ]), { listBoxProps: x } = Fse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39487,7 +39487,7 @@ function _z({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = ND(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = PD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39505,8 +39505,8 @@ function _z({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Ww(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(BL.div, {
+ let te = Jw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(vT, null, /*#__PURE__*/ F.createElement(BL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39539,7 +39539,7 @@ function _z({ state: e, props: t, listBoxRef: n }) {
}))), N, E));
}
function Wpe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(gz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(YR), { CollectionBranch: s } = (0, F.useContext)(KL), [c, l] = LL(), { headingProps: u, groupProps: d } = Lse({
+ let i = (0, F.useContext)(gz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(YR), { CollectionBranch: s } = (0, F.useContext)(KL), [c, l] = LL(), { headingProps: u, groupProps: d } = Ise({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = PL({
@@ -39548,7 +39548,7 @@ function Wpe(e, t, n, r = "react-aria-ListBoxSection") {
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Ww(e, { global: !0 });
+ }), p = Jw(e, { global: !0 });
return delete p.id, /*#__PURE__*/ F.createElement(BL.section, {
...K(p, f, d),
ref: t
@@ -39561,16 +39561,16 @@ function Wpe(e, t, n, r = "react-aria-ListBoxSection") {
renderDropIndicator: ZR(a, o)
})));
}
-var Gpe = /*#__PURE__*/ cw(hS, function(e, t, n) {
- let r = YC(t), i = (0, F.useContext)(gz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(YR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Rse({
+var Gpe = /*#__PURE__*/ mw(xS, function(e, t, n) {
+ let r = tw(t), i = (0, F.useContext)(gz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(YR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Lse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = LD({
+ }, i, r), { hoverProps: p, isHovered: m } = RD({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = JC(e), { focusProps: g } = WC(e), _ = null;
+ }), { keyboardProps: h } = ew(e), { focusProps: g } = XC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39599,7 +39599,7 @@ var Gpe = /*#__PURE__*/ cw(hS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? BL.a : BL.div, S = Ww(e, { global: !0 });
+ let x = e.href ? BL.a : BL.div, S = Jw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39620,7 +39620,7 @@ var Gpe = /*#__PURE__*/ cw(hS, function(e, t, n) {
} }], [tz, { isSelected: f.isSelected }]] }, b.children));
});
function Kpe(e, t) {
- t = YC(t);
+ t = tw(t);
let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(YR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ F.createElement(Jpe, {
...e,
@@ -39644,7 +39644,7 @@ function qpe(e, t) {
}));
}
var Jpe = /*#__PURE__*/ (0, F.forwardRef)(qpe);
-cw(mS, function(e, t, n) {
+mw(bS, function(e, t, n) {
let r = (0, F.useContext)(gz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
mz((0, F.useMemo)(() => ({
onLoadMore: a,
@@ -39679,7 +39679,7 @@ cw(mS, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(BL.div, {
- ...K(Ww(e, { global: !0 }), { tabIndex: -1 }),
+ ...K(Jw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -39689,7 +39689,7 @@ cw(mS, function(e, t, n) {
var Ype = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
function vz(e) {
- let [t, n] = nE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+ let [t, n] = oE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39709,9 +39709,9 @@ function vz(e) {
// node_modules/react-aria/dist/private/utils/animation.mjs
function yz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return RS(() => {
- if (!t && e.current) return PC(DS(e.current, "opacity", "0"), DS(e.current, "clip", "rect(0 0 0 0)"), DS(e.current, "clip-path", "inset(50%)"), DS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), RS(() => {
+ return WS(() => {
+ if (!t && e.current) return BC(NS(e.current, "opacity", "0"), NS(e.current, "clip", "rect(0 0 0 0)"), NS(e.current, "clip-path", "inset(50%)"), NS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), WS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
}, [e, a]), xz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
@@ -39730,8 +39730,8 @@ function bz(e, t, n) {
}, [])), a;
}
function xz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Ew(n);
- RS(() => {
+ let i = (0, F.useRef)(null), a = Mw(n);
+ WS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39758,7 +39758,7 @@ function xz(e, t, n, r) {
// node_modules/react-aria-components/dist/private/Popover.mjs
var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = IL(e, t, Sz);
- let n = (0, F.useContext)(Iz), r = vz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = bz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = tw(), { direction: c } = Pw();
+ let n = (0, F.useContext)(Iz), r = vz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = bz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = sw(), { direction: c } = Bw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39779,7 +39779,7 @@ var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.crea
});
});
function Xpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(Cz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = qk({
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(Cz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
@@ -39794,10 +39794,10 @@ function Xpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- RS(() => {
+ WS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || SC() !== "pointer") && g.current && !MS(g.current) && NC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || OC() !== "pointer") && g.current && !RS(g.current) && zC(g.current);
}, [
x,
g,
@@ -39810,7 +39810,7 @@ function Xpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- RS(E, [E]), FO({
+ WS(E, [E]), IO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39820,9 +39820,9 @@ function Xpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- RS(() => wk(() => u(!0)), []);
+ WS(() => Tk(() => u(!0)), []);
let O = /*#__PURE__*/ F.createElement(BL.div, {
- ...K(Ww(i, { global: !0 }), d),
+ ...K(Jw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39837,17 +39837,17 @@ function Xpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(_k, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Ype.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(vk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Ype.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(_k, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(jD, {
+ } }, C), /*#__PURE__*/ F.createElement(vk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(MD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(jD, {
+ }, O) : /*#__PURE__*/ F.createElement(MD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39937,7 +39937,7 @@ var Qpe = class {
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
function Ez(e) {
- let { onExpandedChange: t } = e, [n, r] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = oz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = dz(e, (0, F.useCallback)((e) => new Qpe(e, { expandedKeys: n }), [n]), null);
+ let { onExpandedChange: t } = e, [n, r] = oE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = oz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = dz(e, (0, F.useCallback)((e) => new Qpe(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -39958,11 +39958,11 @@ function $pe(e, t) {
// node_modules/react-aria-components/dist/private/Menu.mjs
var Dz = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null);
function eme(e) {
- let t = Tz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = fD({
+ let t = Tz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = pD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return tw() ? null : /*#__PURE__*/ F.createElement(NL, { values: [
+ return sw() ? null : /*#__PURE__*/ F.createElement(NL, { values: [
[Dz, {
...i,
ref: a
@@ -39977,14 +39977,14 @@ function eme(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(xse, {
+ ] }, /*#__PURE__*/ F.createElement(bse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
var tme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends fS {
+(class extends vS {
static {
this.type = "submenutrigger";
}
@@ -39998,7 +39998,7 @@ var tme = /*#__PURE__*/ (0, F.createContext)(null);
}
});
var nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = IL(e, t, Dz), /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(rme, {
+ return [e, t] = IL(e, t, Dz), /*#__PURE__*/ F.createElement(dw, { content: /*#__PURE__*/ F.createElement(vw, e) }, (n) => /*#__PURE__*/ F.createElement(rme, {
props: e,
collection: n,
menuRef: t
@@ -40010,7 +40010,7 @@ function rme({ props: e, collection: t, menuRef: n }) {
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(kz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(KL), { menuProps: u } = zse({
+ }), s = (0, F.useContext)(kz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(KL), { menuProps: u } = Rse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -40024,8 +40024,8 @@ function rme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(BL.div, {
+ let p = Jw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(vT, null, /*#__PURE__*/ F.createElement(BL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
@@ -40074,7 +40074,7 @@ var ime = class extends cz {
}
};
function jz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(Oz), { CollectionBranch: a } = (0, F.useContext)(KL), [o, s] = LL(), { headingProps: c, groupProps: l } = Vse({
+ let i = (0, F.useContext)(Oz), { CollectionBranch: a } = (0, F.useContext)(KL), [o, s] = LL(), { headingProps: c, groupProps: l } = Bse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = PL({
@@ -40085,7 +40085,7 @@ function jz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(Az), f = oz(e), p = e.selectionMode == null ? d : new ime(d, f), m = FL(Nz)?.shouldCloseOnSelect, h = Ww(e, { global: !0 });
+ }), d = (0, F.useContext)(Az), f = oz(e), p = e.selectionMode == null ? d : new ime(d, f), m = FL(Nz)?.shouldCloseOnSelect, h = Jw(e, { global: !0 });
return delete h.id, /*#__PURE__*/ F.createElement(BL.section, {
...K(h, u, l),
ref: t
@@ -40101,15 +40101,15 @@ function jz(e, t, n, r = "react-aria-MenuSection") {
parent: n
})));
}
-var Mz = /*#__PURE__*/ lw(iae, jz), Nz = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ cw(hS, function(e, t, n) {
+var Mz = /*#__PURE__*/ hw(Qie, jz), Nz = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ mw(xS, function(e, t, n) {
[e, t] = IL(e, t, Nz);
- let r = FL(Nz)?.id, i = (0, F.useContext)(Oz), a = YC(t), o = (0, F.useContext)(Az), { isVirtualized: s } = (0, F.useContext)(KL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Bse({
+ let r = FL(Nz)?.id, i = (0, F.useContext)(Oz), a = tw(t), o = (0, F.useContext)(Az), { isVirtualized: s } = (0, F.useContext)(KL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = zse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = LD({ isDisabled: f.isDisabled }), h = PL({
+ }, i, a), { hoverProps: p, isHovered: m } = RD({ isDisabled: f.isDisabled }), h = PL({
...e,
id: void 0,
children: n.rendered,
@@ -40123,7 +40123,7 @@ var Mz = /*#__PURE__*/ lw(iae, jz), Nz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? BL.a : BL.div, _ = Ww(e, { global: !0 });
+ }), g = e.href ? BL.a : BL.div, _ = Jw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40146,7 +40146,7 @@ var Mz = /*#__PURE__*/ lw(iae, jz), Nz = /*#__PURE__*/ (0, F.createContext)(null
[tz, { isSelected: f.isSelected }]
] }, h.children));
});
-cw(mS, function(e, t, n) {
+mw(bS, function(e, t, n) {
let r = (0, F.useContext)(Oz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
mz((0, F.useMemo)(() => ({
onLoadMore: a,
@@ -40181,7 +40181,7 @@ cw(mS, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(BL.div, {
- ...K(Ww(e, { global: !0 }), { tabIndex: -1 }),
+ ...K(Jw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -40191,7 +40191,7 @@ cw(mS, function(e, t, n) {
var Fz = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
[e, t] = IL(e, t, Fz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Cse({
+ let { dialogProps: r, titleProps: i, contentProps: a } = Sse({
...e,
"aria-labelledby": n
}, t), o = (0, F.useContext)(Iz);
@@ -40202,7 +40202,7 @@ var Fz = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ (0, F.crea
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Ww(e, { global: !0 });
+ }), c = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(BL.section, {
...K(c, s, r),
render: e.render,
@@ -40227,7 +40227,7 @@ var Fz = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ (0, F.crea
] }, s.children));
}), Rz = typeof document < "u" && window.visualViewport;
function ame() {
- let e = oC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+ let e = fC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
} : zz());
@@ -40237,15 +40237,15 @@ function ame() {
}, n = () => {
Rz && Rz.scale > 1 || e(zz());
}, i = (n) => {
- Rz && Rz.scale > 1 || Cw(G(n)) && (t.current = wk((t) => {
+ Rz && Rz.scale > 1 || kw(G(n)) && (t.current = Tk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(zz()), JS() && YS() && window.addEventListener("blur", i, !0), Rz ? Rz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), JS() && YS() && window.removeEventListener("blur", i, !0), Rz ? Rz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(zz()), eC() && tC() && window.addEventListener("blur", i, !0), Rz ? Rz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), eC() && tC() && window.removeEventListener("blur", i, !0), Rz ? Rz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
@@ -40279,7 +40279,7 @@ var ome = /*#__PURE__*/ (0, F.createContext)(null), Bz = /*#__PURE__*/ (0, F.cre
});
function cme(e, t) {
[e, t] = IL(e, t, ome);
- let n = (0, F.useContext)(Iz), r = vz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YC(t), o = (0, F.useRef)(null), s = bz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = bz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = oC();
+ let n = (0, F.useContext)(Iz), r = vz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = tw(t), o = (0, F.useRef)(null), s = bz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = bz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = fC();
return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(lme, {
...e,
state: i,
@@ -40291,7 +40291,7 @@ function cme(e, t) {
}
var Vz = /*#__PURE__*/ (0, F.forwardRef)(cme);
function lme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = yz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Qse({
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = yz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Zse({
...n,
isEntering: c
}, i, r), d = (0, F.useContext)(Fz), f = t ? ume(d, { isEntering: c }) : d, p = PL({
@@ -40304,7 +40304,7 @@ function lme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
}
}), m = ame(), h, g;
if (typeof document < "u") {
- let e = NT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = LT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40314,11 +40314,11 @@ function lme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return RS(() => wk(() => o(!0)), []), /*#__PURE__*/ F.createElement(jD, {
+ return WS(() => Tk(() => o(!0)), []), /*#__PURE__*/ F.createElement(MD, {
isExiting: n.isExiting,
portalContainer: e
}, /*#__PURE__*/ F.createElement(BL.div, {
- ...K(Ww(n, { global: !0 }), u),
+ ...K(Jw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
@@ -40355,7 +40355,7 @@ function ume(e, t) {
};
}
function Hz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Bz), s = (0, F.useContext)(Iz), c = YC((0, F.useMemo)(() => BC(e.modalRef, n), [e.modalRef, n])), l = yz(c, o, e.onEnter), u = PL({
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Bz), s = (0, F.useContext)(Iz), c = tw((0, F.useMemo)(() => KC(e.modalRef, n), [e.modalRef, n])), l = yz(c, o, e.onEnter), u = PL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40364,20 +40364,20 @@ function Hz(e) {
state: s
}
});
- return RS(() => {
+ return WS(() => {
i && (i.current = e.onExit);
}), /*#__PURE__*/ F.createElement(BL.div, {
- ...K(Ww(e, { global: !0 }), t),
+ ...K(Jw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(_k, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(vk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
var dme = Math.round(Math.random() * 1e10), fme = 0;
function pme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${dme}-${++fme}`, [e.name]), [n, r] = nE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = qT({
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${dme}-${++fme}`, [e.name]), [n, r] = oE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = ZT({
...e,
value: n
}), c = (t) => {
@@ -40404,7 +40404,7 @@ var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.cr
let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = pme({
...e,
validationBehavior: r
- }), [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = uce({
+ }), [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = dce({
...e,
label: o,
validationBehavior: r
@@ -40419,7 +40419,7 @@ var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Ww(e, { global: !0 });
+ }), p = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(BL.div, {
...K(p, f, s),
ref: t,
@@ -40445,7 +40445,7 @@ var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.cr
}), Gz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = IL(r, t, hme);
- let i = F.useContext(Uz), a = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = lce({
+ let i = F.useContext(Uz), a = tw((0, F.useMemo)(() => KC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = uce({
...RL(e),
children: typeof e.children == "function" || e.children
}, i, a);
@@ -40458,7 +40458,7 @@ var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.cr
ref: t
}));
}), Kz = /*#__PURE__*/ (0, F.createContext)(null), gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Kz), l = F.useContext(Uz), { isFocused: u, isFocusVisible: d, focusProps: f } = ND(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = LD({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Kz), l = F.useContext(Uz), { isFocused: u, isFocusVisible: d, focusProps: f } = PD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = RD({
...e,
isDisabled: p
}), g = PL({
@@ -40475,7 +40475,7 @@ var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Ww(e, { global: !0 });
+ }), _ = Jw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(BL.label, {
...K(_, n, m, g),
ref: t,
@@ -40488,7 +40488,7 @@ var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(gE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
@@ -40499,7 +40499,7 @@ function _me(e) {
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = nE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = oE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40526,7 +40526,7 @@ function _me(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = qT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = ZT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40560,7 +40560,7 @@ function vme(e) {
function yme(e) {
return e && e.__esModule ? e.default : e;
}
-var qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), bme = /*#__PURE__*/ ew(function(e, t) {
+var qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), bme = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, qz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
@@ -40576,7 +40576,7 @@ var qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(aw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Sme, {
+ return /*#__PURE__*/ F.createElement(dw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Sme, {
props: e,
collection: n,
selectRef: t
@@ -40592,7 +40592,7 @@ function Sme({ props: e, selectRef: t, collection: n }) {
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = ND({ within: !0 }), c = (0, F.useRef)(null), [l, u] = LL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = dce({
+ }), { isFocusVisible: o, focusProps: s } = PD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = LL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = fce({
...RL(e),
label: u,
validationBehavior: i
@@ -40614,7 +40614,7 @@ function Sme({ props: e, selectRef: t, collection: n }) {
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Ww(e, { global: !0 });
+ }), x = Jw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
return /*#__PURE__*/ F.createElement(NL, { values: [
@@ -40661,12 +40661,12 @@ function Sme({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(pce, {
+ }, b.children, /*#__PURE__*/ F.createElement(mce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(function(e, t) {
+for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, Yz);
let n = (0, F.useContext)(Jz), { placeholder: r } = FL(qz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
@@ -40680,7 +40680,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = wse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Cse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40695,7 +40695,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
a,
o,
i
- ]), u = Vw(yme(JR), "react-aria-components"), d = PL({
+ ]), u = Kw(yme(JR), "react-aria-components"), d = PL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40706,7 +40706,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Ww(e, { global: !0 });
+ }), f = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(BL.span, {
ref: t,
...f,
@@ -40716,7 +40716,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
}), wme = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), Tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = IL(r, t, wme);
- let i = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rE(e), o = hce({
+ let i = tw((0, F.useMemo)(() => KC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = sE(e), o = gce({
...RL(e),
children: typeof e.children == "function" || e.children
}, a, i);
@@ -40729,7 +40729,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
ref: t
}));
}), Zz = /*#__PURE__*/ (0, F.createContext)(null), Eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Zz), { isFocused: f, isFocusVisible: p, focusProps: m } = ND(), h = a || o, g = (0, F.useContext)(Xz), { hoverProps: _, isHovered: v } = LD({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Zz), { isFocused: f, isFocusVisible: p, focusProps: m } = PD(), h = a || o, g = (0, F.useContext)(Xz), { hoverProps: _, isHovered: v } = RD({
...e,
isDisabled: h
}), y = PL({
@@ -40747,7 +40747,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
isRequired: d || !1,
state: g
}
- }), b = Ww(e, { global: !0 });
+ }), b = Jw(e, { global: !0 });
return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(BL.label, {
...K(b, n, _, y),
ref: t,
@@ -40761,7 +40761,7 @@ for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ ew(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(gE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
@@ -41102,10 +41102,10 @@ var Ome = class extends Dme {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return vD(this.body.childNodes)?.key ?? null;
+ return yD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return bD(this.body.childNodes)?.key ?? null;
+ return xD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41310,8 +41310,8 @@ function Fme(e) {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = _D(n, t);
- e = r === "last" ? bD(i)?.key ?? null : vD(i)?.key ?? null;
+ let i = vD(n, t);
+ e = r === "last" ? xD(i)?.key ?? null : yD(i)?.key ?? null;
}
}
a(e, r);
@@ -41336,7 +41336,7 @@ function Fme(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [..._D(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...vD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -41373,7 +41373,7 @@ function Lme(e) {
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = oE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41410,7 +41410,7 @@ function Rme(e, t) {
function zme(e) {
return e && e.__esModule ? e.default : e;
}
-var Bme = class extends gS {
+var Bme = class extends SS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41535,18 +41535,18 @@ var Bme = class extends gS {
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new dB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
}, sB = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = YC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- RS(() => {
+ let n = tw(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ WS(() => {
let e = r.current;
- for (; e && e !== n.current && !NT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !LT(e);) e = e.parentElement;
i.current = e;
- }, [n]), FO({
+ }, [n]), IO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), RS(() => {
+ }), WS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
@@ -41566,7 +41566,7 @@ var Bme = class extends gS {
]);
return /*#__PURE__*/ F.createElement(BL.div, {
render: e.render,
- ...Ww(e, { global: !0 }),
+ ...Jw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
@@ -41584,8 +41584,8 @@ var Bme = class extends gS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(Kme.Provider, { value: s }, /*#__PURE__*/ F.createElement(fw, e));
- return /*#__PURE__*/ F.createElement(aw, {
+ ]), c = /*#__PURE__*/ F.createElement(Kme.Provider, { value: s }, /*#__PURE__*/ F.createElement(vw, e));
+ return /*#__PURE__*/ F.createElement(dw, {
content: c,
createCollection: () => new Bme()
}, (r) => /*#__PURE__*/ F.createElement(Gme, {
@@ -41616,8 +41616,8 @@ var Bme = class extends gS {
function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = IL(e, t, VL);
let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(sB);
- t = YC((0, F.useMemo)(() => BC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ t = tw((0, F.useMemo)(() => KC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = oE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
let d = Lme({
...s,
@@ -41626,13 +41626,13 @@ function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Rme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(KL), { dragAndDropHooks: _ } = e, { gridProps: v } = bce({
+ }), f = Rme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(KL), { dragAndDropHooks: _ } = e, { gridProps: v } = xce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Pw(), [k] = (0, F.useState)(() => new eB());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Bw(), [k] = (0, F.useState)(() => new eB());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41647,7 +41647,7 @@ function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new OE({
+ let e = new kE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41672,7 +41672,7 @@ function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = ND(), ee = PL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = PD(), ee = PL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41688,7 +41688,7 @@ function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Ww(e, { global: !0 });
+ let ne = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(NL, { values: [
[cB, f],
[lB, P],
@@ -41700,7 +41700,7 @@ function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[XR, { render: nhe }],
[VL, null],
[HL, null]
- ] }, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(Wme, {
+ ] }, /*#__PURE__*/ F.createElement(vT, null, /*#__PURE__*/ F.createElement(Wme, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41716,7 +41716,7 @@ function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
persistedKeys: QR(y, _, C)
})))), E);
}
-var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends fS {
+var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends vS {
static {
this.type = "tableheader";
}
@@ -41729,8 +41729,8 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends fS {
...e,
ref: t
});
-}), fB = /*#__PURE__*/ lw(dB, (e, t) => {
- let n = (0, F.useContext)(cB).collection, r = bS({
+}), fB = /*#__PURE__*/ hw(dB, (e, t) => {
+ let n = (0, F.useContext)(cB).collection, r = ES({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
@@ -41738,7 +41738,7 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends fS {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = HA(), { hoverProps: a, isHovered: o } = LD({
+ }), { rowGroupProps: i } = VA(), { hoverProps: a, isHovered: o } = RD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -41749,12 +41749,12 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends fS {
values: { isHovered: o }
});
return /*#__PURE__*/ F.createElement(qme, {
- ...K(Ww(e, { global: !0 }), i, a),
+ ...K(Jw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(fw, {
+}, (e) => /*#__PURE__*/ F.createElement(vw, {
dependencies: e.dependencies,
items: e.columns
}, e.children)), Jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
@@ -41768,10 +41768,10 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends fS {
});
});
function Yme({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(cB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(KL), { rowProps: a } = Ece({
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(cB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(KL), { rowProps: a } = Dce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Nce(n);
+ }, n, t), { checkboxProps: o } = Pce(n);
return /*#__PURE__*/ F.createElement(Jme, {
...a,
ref: t
@@ -41780,7 +41780,7 @@ function Yme({ item: e }) {
parent: e
})));
}
-var Xme = class extends fS {
+var Xme = class extends vS {
static {
this.type = "column";
}
@@ -41793,15 +41793,15 @@ var Xme = class extends fS {
...e,
ref: t
});
-}), pB = /*#__PURE__*/ cw(Xme, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(cB), { isVirtualized: a } = (0, F.useContext)(KL), { columnHeaderProps: o, isPressed: s } = Cce({
+}), pB = /*#__PURE__*/ mw(Xme, (e, t, n) => {
+ let r = tw(t), i = (0, F.useContext)(cB), { isVirtualized: a } = (0, F.useContext)(KL), { columnHeaderProps: o, isPressed: s } = wce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ND(), d = (0, F.useContext)(lB), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = PD(), d = (0, F.useContext)(lB), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = LD({ isDisabled: !e.allowsSorting }), h = PL({
+ let { hoverProps: p, isHovered: m } = RD({ isDisabled: !e.allowsSorting }), h = PL({
...e,
id: void 0,
children: n.rendered,
@@ -41827,7 +41827,7 @@ var Xme = class extends fS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Ww(e, { global: !0 });
+ let _ = Jw(e, { global: !0 });
return delete _.id, /*#__PURE__*/ F.createElement(Zme, {
...K(_, o, u, p),
...h,
@@ -41847,16 +41847,16 @@ var Xme = class extends fS {
}), mB = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = (0, F.useContext)(lB);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Vw(zme(JR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(sB), { column: s, triggerRef: c } = (0, F.useContext)(mB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Tce({
+ let r = Kw(zme(JR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(sB), { column: s, triggerRef: c } = (0, F.useContext)(mB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Ece({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = ND(), { hoverProps: _, isHovered: v } = LD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Pw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = PD(), { hoverProps: _, isHovered: v } = RD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Bw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = YC(t), [w, T] = (0, F.useState)("");
+ let C = tw(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
@@ -41872,7 +41872,7 @@ var Xme = class extends fS {
isHovered: v,
resizableDirection: S
}
- }), D = Ww(e, { global: !0 });
+ }), D = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(BL.div, {
ref: C,
role: "presentation",
@@ -41896,7 +41896,7 @@ var Xme = class extends fS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), hB = class extends pS {
+}), hB = class extends yS {
static {
this.type = "tablebody";
}
@@ -41909,7 +41909,7 @@ var Xme = class extends fS {
...e,
ref: t
});
-}), gB = /*#__PURE__*/ lw(hB, (e, t, n) => {
+}), gB = /*#__PURE__*/ hw(hB, (e, t, n) => {
let r = (0, F.useContext)(cB), { isVirtualized: i } = (0, F.useContext)(KL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(KL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(YR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
@@ -41932,7 +41932,7 @@ var Xme = class extends fS {
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = HA(), _ = Ww(e, { global: !0 });
+ let { rowGroupProps: g } = VA(), _ = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement($me, {
...K(_, p, g),
ref: t,
@@ -41943,12 +41943,12 @@ var Xme = class extends fS {
renderDropIndicator: ZR(s, c)
}), m);
});
-(class extends pS {
+(class extends yS {
static {
this.type = "tablefooter";
}
});
-var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), ehe = class extends fS {
+var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), ehe = class extends vS {
static {
this.type = "item";
}
@@ -41969,22 +41969,22 @@ var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), eh
...e,
ref: t
});
-}), yB = /*#__PURE__*/ lw(ehe, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(cB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(YR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(KL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = kce({
+}), yB = /*#__PURE__*/ hw(ehe, (e, t, n) => {
+ let r = tw(t), i = (0, F.useContext)(cB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(YR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(KL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ace({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ND(), { isFocusVisible: _, focusProps: v } = ND({ within: !0 }), { hoverProps: y, isHovered: b } = LD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = PD(), { isFocusVisible: _, focusProps: v } = PD({ within: !0 }), { hoverProps: y, isHovered: b } = RD({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Mce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Nce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = dE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = hE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42015,7 +42015,7 @@ var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), eh
isExpanded: j,
level: n.level + 1
}
- }), ee = Ww(e, { global: !0 });
+ }), ee = Jw(e, { global: !0 });
return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(vB, {
role: "row",
style: { height: 0 }
@@ -42071,12 +42071,12 @@ var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), eh
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(fw, {
+ return /*#__PURE__*/ F.createElement(vw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), the = class extends fS {
+}), the = class extends vS {
static {
this.type = "cell";
}
@@ -42089,16 +42089,16 @@ var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), eh
...e,
ref: t
});
-}), xB = /*#__PURE__*/ cw(the, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(cB), { dragState: a } = (0, F.useContext)(YR), { isVirtualized: o } = (0, F.useContext)(KL);
+}), xB = /*#__PURE__*/ mw(the, (e, t, n) => {
+ let r = tw(t), i = (0, F.useContext)(cB), { dragState: a } = (0, F.useContext)(YR), { isVirtualized: o } = (0, F.useContext)(KL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = xce({
+ let { gridCellProps: s, isPressed: c } = Sce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ND(), { hoverProps: f, isHovered: p } = LD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(_B), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = PL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = PD(), { hoverProps: f, isHovered: p } = RD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(_B), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = PL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42117,7 +42117,7 @@ var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), eh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Ww(e, { global: !0 });
+ }), S = Jw(e, { global: !0 });
return delete S.id, /*#__PURE__*/ F.createElement(bB, {
...K(S, x, s, d, f),
ref: r,
@@ -42135,7 +42135,7 @@ var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), eh
}, /*#__PURE__*/ F.createElement(KL.Provider, { value: WL }, x.children));
});
function nhe(e, t) {
- t = YC(t);
+ t = tw(t);
let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(YR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
@@ -42168,14 +42168,14 @@ var rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
});
});
function ahe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(cB), { visuallyHiddenProps: c } = dE(), l = PL({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(cB), { visuallyHiddenProps: c } = hE(), l = PL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
return /*#__PURE__*/ F.createElement(rhe, {
- ...Ww(e, { global: !0 }),
+ ...Jw(e, { global: !0 }),
...l,
role: "row",
ref: t,
@@ -42194,7 +42194,7 @@ function ahe(e, t) {
}
var ohe = /*#__PURE__*/ (0, F.forwardRef)(ahe);
function she() {
- let e = (0, F.useContext)(cB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(YR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = dE();
+ let e = (0, F.useContext)(cB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(YR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = hE();
return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(vB, {
role: "row",
"aria-hidden": i["aria-hidden"],
@@ -42210,7 +42210,7 @@ function she() {
ref: r
})));
}
-cw(mS, function(e, t, n) {
+mw(bS, function(e, t, n) {
let r = (0, F.useContext)(cB), { isVirtualized: i } = (0, F.useContext)(KL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
mz((0, F.useMemo)(() => ({
onLoadMore: o,
@@ -42245,7 +42245,7 @@ cw(mS, function(e, t, n) {
width: 1
}
}))), a && d.children && /*#__PURE__*/ F.createElement(vB, {
- ...K(Ww(e, { global: !0 }), f),
+ ...K(Jw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
@@ -42259,7 +42259,7 @@ cw(mS, function(e, t, n) {
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
function che(e) {
- let [t, n] = nE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = fz({
+ let [t, n] = oE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = fz({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42313,7 +42313,7 @@ var CB = /*#__PURE__*/ (0, F.createContext)(null), wB = /*#__PURE__*/ (0, F.crea
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(aw, { content: n }, (n) => /*#__PURE__*/ F.createElement(dhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(dw, { content: n }, (n) => /*#__PURE__*/ F.createElement(dhe, {
props: e,
collection: n,
tabsRef: t
@@ -42324,7 +42324,7 @@ function dhe({ props: e, tabsRef: t, collection: n }) {
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = ND({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = PD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42336,7 +42336,7 @@ function dhe({ props: e, tabsRef: t, collection: n }) {
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Ww(e, { global: !0 });
+ }), u = Jw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(BL.div, {
...K(u, l, a),
ref: t,
@@ -42351,10 +42351,10 @@ var TB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
return (0, F.useContext)(wB) ? /*#__PURE__*/ F.createElement(fhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(fw, e);
+ }) : /*#__PURE__*/ F.createElement(vw, e);
});
function fhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(wB), { CollectionRoot: r } = (0, F.useContext)(KL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = FL(CB), o = YC(t), { tabListProps: s } = Ice({
+ let n = (0, F.useContext)(wB), { CollectionRoot: r } = (0, F.useContext)(KL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = FL(CB), o = tw(t), { tabListProps: s } = Lce({
...e,
orientation: i,
keyboardActivation: a
@@ -42366,7 +42366,7 @@ function fhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Ww(e, { global: !0 });
+ }), l = Jw(e, { global: !0 });
return delete l.id, /*#__PURE__*/ F.createElement(BL.div, {
...K(l, c, s),
ref: o,
@@ -42376,15 +42376,15 @@ function fhe({ props: e, forwardedRef: t }) {
persistedKeys: qL(n.selectionManager.focusedKey)
})));
}
-var phe = /*#__PURE__*/ cw(class extends fS {
+var phe = /*#__PURE__*/ mw(class extends vS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(wB), i = YC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Pce({
+ let r = (0, F.useContext)(wB), i = tw(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Fce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ND(), { hoverProps: f, isHovered: p } = LD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = PD(), { hoverProps: f, isHovered: p } = RD({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
@@ -42402,7 +42402,7 @@ var phe = /*#__PURE__*/ cw(class extends fS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? BL.a : BL.div, g = Ww(e, { global: !0 });
+ }), h = n.props.href ? BL.a : BL.div, g = Jw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42413,8 +42413,8 @@ var phe = /*#__PURE__*/ cw(class extends fS {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ F.createElement(tz.Provider, { value: { isSelected: o } }, m.children));
-}), mhe = /*#__PURE__*/ ew(function(e, t) {
- let n = (0, F.useContext)(wB), r = YC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+}), mhe = /*#__PURE__*/ ow(function(e, t) {
+ let n = (0, F.useContext)(wB), r = tw(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
let s = bz(r, i);
return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(hhe, {
@@ -42425,7 +42425,7 @@ var phe = /*#__PURE__*/ cw(class extends fS {
});
});
function hhe(e) {
- let t = (0, F.useContext)(wB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Lce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ND(), d = t.selectedKey === e.id, f = yz(r) && !i, p = PL({
+ let t = (0, F.useContext)(wB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Rce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = PD(), d = t.selectedKey === e.id, f = yz(r) && !i, p = PL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -42436,7 +42436,7 @@ function hhe(e) {
isExiting: a,
state: t
}
- }), m = Ww(o, { global: !0 });
+ }), m = Jw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
return /*#__PURE__*/ F.createElement(BL.div, {
@@ -42456,7 +42456,7 @@ var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
return i;
}, _he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = IL(e, t, EB);
- let { hoverProps: n, isHovered: r } = LD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = ND({
+ let { hoverProps: n, isHovered: r } = RD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = PD({
isTextInput: !0,
autoFocus: e.autoFocus
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = PL({
@@ -42480,11 +42480,11 @@ var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), vhe = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ ew(function(e, t) {
+}), vhe = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ ow(function(e, t) {
[e, t] = IL(e, t, vhe);
let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
[e, i] = IL(e, i, HL);
- let [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = lse({
+ let [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ase({
...RL(e),
inputElementType: s,
label: o,
@@ -42500,7 +42500,7 @@ var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Ww(e, { global: !0 });
+ }), g = Jw(e, { global: !0 });
return delete g.id, /*#__PURE__*/ F.createElement(BL.div, {
...g,
...h,
@@ -42534,7 +42534,7 @@ var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
} }],
[tR, p]
] }, h.children));
-}), bhe = class e extends gS {
+}), bhe = class e extends SS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42607,8 +42607,8 @@ var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
}, xhe = /*#__PURE__*/ (0, F.createContext)(null), DB = /*#__PURE__*/ (0, F.createContext)(null), She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = IL(e, t, xhe), /*#__PURE__*/ F.createElement(aw, {
- content: /*#__PURE__*/ F.createElement(fw, e),
+ return [e, t] = IL(e, t, xhe), /*#__PURE__*/ F.createElement(dw, {
+ content: /*#__PURE__*/ F.createElement(vw, e),
createCollection: () => new bhe()
}, (n) => /*#__PURE__*/ F.createElement(Che, {
props: e,
@@ -42626,14 +42626,14 @@ var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
}
};
function Che({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Pw(), a = ED({
+ let { dragAndDropHooks: r } = e, { direction: i } = Bw(), a = DD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(KL), [y, b] = nE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(KL), [y, b] = oE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
Ahe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
let D = Ez({
...e,
@@ -42643,7 +42643,7 @@ function Che({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = Rce({
+ }), { gridProps: O } = zce({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42665,7 +42665,7 @@ function Che({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new OE({
+ let t = new kE({
collection: D.collection,
collator: a,
ref: n,
@@ -42692,7 +42692,7 @@ function Che({ props: e, collection: t, treeRef: n }) {
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = ND(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = PD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42717,8 +42717,8 @@ function Che({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(BL.div, {
+ let se = Jw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(vT, null, /*#__PURE__*/ F.createElement(BL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42743,7 +42743,7 @@ function Che({ props: e, collection: t, treeRef: n }) {
renderDropIndicator: ZR(r, A)
}))), oe)), ee);
}
-var whe = /*#__PURE__*/ cw(class extends fS {
+var whe = /*#__PURE__*/ mw(class extends vS {
static {
this.type = "content";
}
@@ -42753,29 +42753,29 @@ var whe = /*#__PURE__*/ cw(class extends fS {
values: t
});
return /*#__PURE__*/ F.createElement(KL.Provider, { value: WL }, n.children);
-}), kB = /*#__PURE__*/ (0, F.createContext)(null), The = /*#__PURE__*/ lw(class extends fS {
+}), kB = /*#__PURE__*/ (0, F.createContext)(null), The = /*#__PURE__*/ hw(class extends vS {
static {
this.type = "item";
}
}, (e, t, n) => {
let r = (0, F.useContext)(DB);
- t = YC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(YR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Ej({
+ t = tw(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(YR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Tj({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = LD({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = RD({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = ND(), { isFocusVisible: b, focusProps: x } = ND({ within: !0 }), { checkboxProps: S } = Fse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = PD(), { isFocusVisible: b, focusProps: x } = PD({ within: !0 }), { checkboxProps: S } = Pse({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = dE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = hE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42831,7 +42831,7 @@ var whe = /*#__PURE__*/ cw(class extends fS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = bS({
+ let P = ES({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42841,7 +42841,7 @@ var whe = /*#__PURE__*/ cw(class extends fS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = RC(), re = Ww(e, { global: !0 });
+ }), ne = WC(), re = Jw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42909,7 +42909,7 @@ var whe = /*#__PURE__*/ cw(class extends fS {
[tz, { isSelected: f.isSelected }]
] }, P))));
});
-cw(mS, function(e, t, n) {
+mw(bS, function(e, t, n) {
let { isVirtualized: r } = (0, F.useContext)(KL), i = (0, F.useContext)(DB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
mz((0, F.useMemo)(() => ({
onLoadMore: o,
@@ -42920,8 +42920,8 @@ cw(mS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = YC(t);
- let { rowProps: u, gridCellProps: d } = Ej({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = tw(t);
+ let { rowProps: u, gridCellProps: d } = Tj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
}, m = PL({
@@ -42948,7 +42948,7 @@ cw(mS, function(e, t, n) {
}
})), a && m.children && /*#__PURE__*/ F.createElement(BL.div, {
ref: t,
- ...K(Ww(e), p),
+ ...K(Jw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -42957,7 +42957,7 @@ cw(mS, function(e, t, n) {
}, m.children)));
});
function Ehe(e, t) {
- t = YC(t);
+ t = tw(t);
let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(YR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
@@ -42971,7 +42971,7 @@ function Ehe(e, t) {
});
}
function Dhe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = dE(), c = PL({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = hE(), c = PL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -42995,7 +42995,7 @@ function Dhe(e, t) {
}
var Ohe = /*#__PURE__*/ (0, F.forwardRef)(Dhe);
function khe() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(YR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = dE();
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(YR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = hE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43770,7 +43770,7 @@ var bge = {
tutorial: "max-w-2xl"
};
function yV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = TC();
+ let { isFocusVisible: o } = jC();
return /* @__PURE__ */ (0, I.jsx)(Vz, {
isOpen: e,
onOpenChange: t,
@@ -44434,7 +44434,7 @@ function VV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
}
// src/react/boardui/components/foundations/direction/direction.tsx
function HV() {
- return Pw().direction;
+ return Bw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
var UV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", Mge = "w-[266px]", Nge = "flex w-full flex-col gap-1 outline-none", WV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", GV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
@@ -44529,7 +44529,7 @@ var qV = {
};
function Fge({ collection: e, ...t }) {
let n = (0, F.useContext)(DB);
- return n ? /* @__PURE__ */ (0, I.jsx)(kx, {
+ return n ? /* @__PURE__ */ (0, I.jsx)(Fx, {
initial: !1,
children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Lge, {
state: n,
@@ -44600,8 +44600,8 @@ function Ige({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
});
}
function Lge({ state: e, children: t }) {
- let n = Ex(), r = $x(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(dS.div, {
+ let n = Mx(), r = aS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(_S.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44723,9 +44723,9 @@ function Rge() {
function $V({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(Xre, {
+ children: /* @__PURE__ */ (0, I.jsx)(Wre, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(OD, {
+ children: /* @__PURE__ */ (0, I.jsx)(kD, {
getContainer: Rge,
children: e
})
@@ -45605,12 +45605,12 @@ function w_e({ state: e, slow: t }) {
// src/react/components/use-moving-surface.ts
var T_e = {
selection: {
- type: jg,
+ type: Ng,
duration: .16,
bounce: 0
},
hover: {
- type: jg,
+ type: Ng,
duration: .08,
bounce: 0
}
@@ -45636,7 +45636,7 @@ function OH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = rae(n, { transform: [r, E] }, T_e[e]);
+ l = Zie(n, { transform: [r, E] }, T_e[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -46713,7 +46713,7 @@ function sU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(fE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(gE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46892,14 +46892,6 @@ function ive(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
-function ave(e) {
- let t = new URLSearchParams(location.search);
- for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
- Ep(location.pathname + (t.size ? `?${t}` : ""), {
- replace: !0,
- state: W.navigation.location.state
- });
-}
// src/onboarding/guide-catalog.ts
var SU = (e, t, n, r, i, a) => ({
id: e,
@@ -47059,7 +47051,7 @@ var SU = (e, t, n, r, i, a) => ({
CU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], ove = "当前浏览器 · 修改后自动保存", TU = "跟随馆藏 · 修改后自动保存", EU = "运行 Peach 的电脑 · 确认后保存配置", DU = (e, t, n = ove) => t.map(([t, r, i, a, o]) => SU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), OU = [
+], ave = "当前浏览器 · 修改后自动保存", TU = "跟随馆藏 · 修改后自动保存", EU = "运行 Peach 的电脑 · 确认后保存配置", DU = (e, t, n = ave) => t.map(([t, r, i, a, o]) => SU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), OU = [
{
id: "appearance",
kind: "settings",
@@ -47459,7 +47451,7 @@ var SU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], sve = {
+], ove = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47566,8 +47558,8 @@ var SU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of OU) for (let t of e.steps) t.details = sve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");
-var kU = [...wU, ...OU], cve = [
+for (let e of OU) for (let t of e.steps) t.details = ove[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");
+var kU = [...wU, ...OU], sve = [
{
id: "browse",
kind: "interface",
@@ -47645,11 +47637,11 @@ var kU = [...wU, ...OU], cve = [
]
}
];
-function lve(e) {
+function cve(e) {
return e === "/" ? wU[0] : OU.find((t) => t.steps[0]?.route === e) || wU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || wU[0];
}
// src/onboarding/guide-state.ts
-var uve = () => ({
+var lve = () => ({
version: 1,
campaign: "",
invited: !1,
@@ -47660,20 +47652,20 @@ function AU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function dve(e, t) {
+function uve(e, t) {
let n = e.chapters[t.id];
return !n || AU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function fve() {
+function dve() {
return B("/api/tutorial-progress");
}
-function pve(e, t) {
+function fve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function mve(e, t, n, r, i) {
+function pve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47696,7 +47688,7 @@ function NU(e = {}) {
MU.size || (jU = e);
for (let t of MU) t(e);
}
-function hve(e) {
+function mve(e) {
if (MU.add(e), jU) {
let t = jU;
jU = null, queueMicrotask(() => {
@@ -47708,38 +47700,38 @@ function hve(e) {
};
}
// src/react/components/card.tsx
-var gve = "min-w-0", _ve = {
+var hve = "min-w-0", gve = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, vve = {
+}, _ve = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, yve = {
+}, vve = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, bve = {
+}, yve = {
none: "",
default: "p-5"
-}, xve = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Sve = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+}, bve = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", xve = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
function PU(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- gve,
- _ve[t],
- vve[s],
- bve[n],
- a ? yve[a] : "",
- r ? xve : "",
- i ? Sve : "",
+ hve,
+ gve[t],
+ _ve[s],
+ yve[n],
+ a ? vve[a] : "",
+ r ? bve : "",
+ i ? xve : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var Cve = {
+var Sve = {
browse: rV,
collect: PB,
watch: QB,
@@ -47748,7 +47740,7 @@ var Cve = {
discovery: nV,
storage: RB,
system: iV
-}, wve = {
+}, Cve = {
basics: LB,
"find-play": rV,
entities: cV,
@@ -47772,8 +47764,8 @@ var Cve = {
"app-maintenance": sV,
diagnostics: cge
};
-function Tve({ chapter: e, className: t = "size-5" }) {
- let n = wve[e] || LB;
+function wve({ chapter: e, className: t = "size-5" }) {
+ let n = Cve[e] || LB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
@@ -47823,7 +47815,7 @@ function IU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(Tve, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(wve, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -47862,7 +47854,7 @@ function LU() {
})]
});
}
-function Eve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+function Tve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
let [s, c] = (0, F.useState)(null), l = kU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = AU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = kU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
@@ -47922,8 +47914,8 @@ function Eve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: cve.filter((t) => t.kind === e).map((e) => {
- let t = Cve[e.id];
+ children: sve.filter((t) => t.kind === e).map((e) => {
+ let t = Sve[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
@@ -47974,7 +47966,7 @@ var RU = "侧栏收起时,先点左上角的导航按钮。", zU = (...e) => (
path: ["侧栏底部的设置", e],
hint: RU
});
-function Dve(e) {
+function Eve(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48053,7 +48045,7 @@ function Dve(e) {
if (a?.section && a.title) return zU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function Ove({ details: e }) {
+function Dve({ details: e }) {
return e?.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
className: "flex flex-col gap-3",
children: e.map(([e, t]) => /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -48068,7 +48060,7 @@ function Ove({ details: e }) {
}, e))
}) : null;
}
-function kve({ chapter: e }) {
+function Ove({ chapter: e }) {
let t = kU.find((t) => t.id === e);
return t ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "text-body-2-regular text-text-secondary",
@@ -48084,8 +48076,8 @@ function kve({ chapter: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function Ave({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = ZV(), l = Dve(e);
+function kve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = ZV(), l = Eve(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48145,7 +48137,7 @@ function Ave({ step: e, position: t, total: n, missing: r, next: i, previous: a,
}) : null,
e.details?.length ? /* @__PURE__ */ (0, I.jsx)(XH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(Ove, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(Dve, { details: e.details })
}) : null,
e.scope ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
@@ -48209,10 +48201,10 @@ function VU(e, t, n) {
let r = document.createElement("div");
e.replaceChildren(r, t);
let i = (0, Rt.createRoot)(r);
- return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Ave, { ...n }))), () => i.unmount();
+ return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(kve, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function jve({ go: e }) {
+function Ave({ go: e }) {
let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);
(0, F.useEffect)(() => {
let e = new AbortController();
@@ -48371,15 +48363,15 @@ function jve({ go: e }) {
});
}
var HU = "tutorial-sync";
-function Mve({ actions: e }) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(uve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = ZV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+function jve({ actions: e }) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(lve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = ZV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
C.current = l;
let w = (0, F.useRef)(0), T = (0, F.useRef)(null), E = (0, F.useRef)(""), D = (0, F.useRef)(!1), O = (0, F.useRef)(() => {}), k = (0, F.useRef)(Promise.resolve()), A = (0, F.useRef)(0), j = (0, F.useRef)(0), M = (0, F.useRef)(!0), ee = (e) => {
C.current = e, u(e);
}, N = async (e = !0) => {
let t = j.current;
try {
- let n = await fve();
+ let n = await dve();
return !M.current || t !== j.current ? !1 : (ee(n), f(!0), e && m(""), b.current || i(!n.invited && !n.completed), !0);
} catch {
return M.current && m("未取得账本中的教程状态,请重新读取。"), !1;
@@ -48389,7 +48381,7 @@ function Mve({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await pve(e.campaign, t);
+ let r = await fve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48471,7 +48463,7 @@ function Mve({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = hve((e) => {
+ let r = mve((e) => {
(async () => {
let t = document.activeElement;
if (await k.current, !M.current || !await N() || e.invitation) return;
@@ -48509,7 +48501,7 @@ function Mve({ actions: e }) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? dve(C.current, t) : 0;
+ let i = r ? uve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48554,7 +48546,7 @@ function Mve({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(mve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(pve(C.current, t.id, t.steps[w.current].id, n, e), {
action: "step",
chapter: t.id,
step: t.steps[w.current].id,
@@ -48578,7 +48570,7 @@ function Mve({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = lve(location.pathname);
+ let ce = cve(location.pathname);
return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(yV, {
isOpen: t,
onOpenChange: (e) => {
@@ -48644,7 +48636,7 @@ function Mve({ actions: e }) {
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(jve, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(Eve, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(Ave, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(Tve, {
kind: a,
query: s,
setQuery: c,
@@ -48662,7 +48654,7 @@ function Mve({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var Nve = 12e4, Pve = 15e3, UU = () => document.visibilityState !== "hidden", WU = /* @__PURE__ */ new Set([
+var Mve = 12e4, Nve = 15e3, UU = () => document.visibilityState !== "hidden", WU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
@@ -48670,7 +48662,7 @@ var Nve = 12e4, Pve = 15e3, UU = () => document.visibilityState !== "hidden", WU
"restarting",
"installing"
]), GU = "/settings/maintenance#releaseUpdates";
-function Fve() {
+function Pve() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48682,19 +48674,19 @@ function Fve() {
}
}
function KU() {
- let e = (0, F.useRef)(Fve()), [t, n] = (0, F.useState)(null);
+ let e = (0, F.useRef)(Pve()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
if (t || !UU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), Pve);
+ let s = setTimeout(() => o.abort(), Nve);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && UU() && (r = setTimeout(a, Nve)));
+ clearTimeout(s), i === o && (i = void 0, !t && UU() && (r = setTimeout(a, Mve)));
}
}, o = () => {
clearTimeout(r), i?.abort(), i = void 0, UU() && a();
@@ -48707,7 +48699,7 @@ function KU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function Ive({ navigate: e }) {
+function Fve({ navigate: e }) {
let { snapshot: t, refresh: n } = KU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : WU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
@@ -48761,7 +48753,7 @@ function Ive({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function Lve() {
+function Ive() {
let e = (0, F.useContext)($W), { pathname: t } = Qd();
return (0, F.useEffect)(() => {
e?.openSettings?.(jf(t));
@@ -48808,11 +48800,11 @@ var qU = [
"其它",
"hard-drive"
]
-], Rve = (e) => qU.find(([t]) => t === e)?.[0] ?? "";
+], Lve = (e) => qU.find(([t]) => t === e)?.[0] ?? "";
function JU(e) {
let t = new URLSearchParams(e);
return {
- kind: Rve(t.get("type")),
+ kind: Lve(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
@@ -48836,12 +48828,12 @@ function XU(e) {
};
}
var ZU = (e) => e === "dismissed" ? "已排除" : "待判断", QU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function zve({ kind: e, view: t }) {
+function Rve({ kind: e, view: t }) {
let n = qU.map(([n, r, i]) => `<a href="${YU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${QU(i)}${z(r)}</a>`).join(""), r = XU(t);
return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(ZU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${QU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Bve(e, t, n) {
+function zve(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -48855,7 +48847,7 @@ function Bve(e, t, n) {
n
]);
}
-function Vve(e, t) {
+function Bve(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -48871,8 +48863,8 @@ function Vve(e, t) {
var $U = (0, F.createContext)("md");
function eW({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- Bve(d, () => f(!1), [l, u]);
- let p = Vve(d, l);
+ zve(d, () => f(!1), [l, u]);
+ let p = Bve(d, l);
return /* @__PURE__ */ (0, I.jsx)(bme, {
ref: s,
...c,
@@ -48957,7 +48949,7 @@ function iW({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var aW = "/api/downloads", oW = ["downloads"], Hve = "/api/downloads/cancel", Uve = "/api/downloads/postprocess", sW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Wve = {
+var aW = "/api/downloads", oW = ["downloads"], Vve = "/api/downloads/cancel", Hve = "/api/downloads/postprocess", sW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Uve = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -48973,8 +48965,8 @@ var aW = "/api/downloads", oW = ["downloads"], Hve = "/api/downloads/cancel", Uv
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, lW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Gve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function Kve() {
+}, lW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Wve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Gve() {
let e = (0, F.useId)(), t = It({
queryKey: [...oW, "pages"],
initialPageParam: null,
@@ -48999,7 +48991,7 @@ function Kve() {
r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(qve, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Kve, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49018,7 +49010,7 @@ function Kve() {
]
});
}
-function qve({ task: e, writable: t }) {
+function Kve({ task: e, writable: t }) {
gL();
let n = ae(), r = EH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = lW(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
@@ -49027,7 +49019,7 @@ function qve({ task: e, writable: t }) {
].filter(Boolean).join(" · "), h = () => {
n.invalidateQueries({ queryKey: oW });
}, g = () => {
- r.run("cancel", (t) => V(Hve, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Vve, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49041,7 +49033,7 @@ function qve({ task: e, writable: t }) {
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(Uve, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Hve, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
@@ -49057,7 +49049,7 @@ function qve({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(yM) },
+ style: { "--card-ratio": String(vM) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -49095,7 +49087,7 @@ function qve({ task: e, writable: t }) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
children: [/* @__PURE__ */ (0, I.jsx)(rW, {
- color: Wve[e.state] ?? "neutral",
+ color: Uve[e.state] ?? "neutral",
children: e.state_label
}), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(rW, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
@@ -49204,7 +49196,7 @@ function qve({ task: e, writable: t }) {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, I.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || Gve(e)
+ children: l || Wve(e)
})
}) : null
]
@@ -49213,18 +49205,18 @@ function qve({ task: e, writable: t }) {
// src/react/activity/work-code.ts
var uW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), dW = (e, t) => !!uW(e) && uW(e) === uW(t);
// src/react/activity/resource-search.tsx
-function Jve({ className: e }) {
+function qve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
});
}
-function Yve(e) {
+function Jve(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Xve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Yve(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = EH(), b = (0, F.useRef)(null);
+function Yve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Jve(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = EH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49272,7 +49264,7 @@ function Xve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Jve : rV,
+ leadingIcon: y.busy ? qve : rV,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -49366,7 +49358,7 @@ function Xve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var Zve = {
+var Xve = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
@@ -49378,7 +49370,7 @@ function fW({ prefill: e, close: t, receipt: n, provider: r }) {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Qve, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Zve, {
prefill: e,
close: t,
receipt: n,
@@ -49386,7 +49378,7 @@ function fW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Qve({ prefill: e, close: t, receipt: n, provider: r }) {
+function Zve({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Pt({
queryKey: oW,
queryFn: ({ signal: e }) => B(`${aW}?limit=50`, e),
@@ -49405,7 +49397,7 @@ function Qve({ prefill: e, close: t, receipt: n, provider: r }) {
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)($ve, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Qve, {
header: o,
snapshot: a,
prefill: e,
@@ -49434,7 +49426,7 @@ function Qve({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function $ve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = EH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
@@ -49453,7 +49445,7 @@ function $ve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
};
b(""), S.run("submit", (e) => V(aW, t, "POST", e), (e) => {
o.invalidateQueries({ queryKey: oW });
- let t = Zve[e.outcome];
+ let t = Xve[e.outcome];
if (e.ok && t) {
i(t), r();
return;
@@ -49490,7 +49482,7 @@ function $ve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Xve, {
+ /* @__PURE__ */ (0, I.jsx)(Yve, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
@@ -49586,17 +49578,17 @@ function $ve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var pW = "/api/wants", mW = ["wants"], eye = (e) => [
+var pW = "/api/wants", mW = ["wants"], $ve = (e) => [
"wants",
"follow",
e
-], tye = [
+], eye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
], hW = (e) => B(pW, e);
-function nye(e, t) {
+function tye(e, t) {
H.setQueryData(mW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
@@ -49605,17 +49597,17 @@ function nye(e, t) {
} : n)
} : n);
}
-var rye = (e, t) => B(`${pW}?follow=${encodeURIComponent(e)}`, t), gW = (e, t) => V(pW, {
+var nye = (e, t) => B(`${pW}?follow=${encodeURIComponent(e)}`, t), gW = (e, t) => V(pW, {
action: "add",
...e
}, "POST", t), _W = (e, t) => V(pW, {
action: "remove",
ids: e
-}, "POST", t), iye = (e, t) => V(pW, {
+}, "POST", t), rye = (e, t) => V(pW, {
action: "reset",
ids: e
-}, "POST", t), vW = () => H.invalidateQueries({ queryKey: mW }), aye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function oye(e) {
+}, "POST", t), vW = () => H.invalidateQueries({ queryKey: mW }), iye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function aye(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
// src/react/jav/discovery-sorts.ts
@@ -49627,7 +49619,7 @@ var yW = [
],
[
"release_date",
- Lj[1],
+ Ij[1],
"按发行日期排序"
],
[
@@ -49648,7 +49640,7 @@ var yW = [
], bW = [
[
"release_date",
- Lj[1],
+ Ij[1],
"按发行日期排序"
],
[
@@ -49672,10 +49664,10 @@ var yW = [
"按口味匹配排序"
]
];
-function sye(e) {
+function oye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function cye(e) {
+function sye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49700,6 +49692,14 @@ function cye(e) {
};
}
// src/react/jav/jav.ts
+function cye(e) {
+ let t = new URLSearchParams(location.search);
+ for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
+ Ep(location.pathname + (t.size ? `?${t}` : ""), {
+ replace: !0,
+ state: W.navigation.location.state
+ });
+}
var xW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
@@ -49921,7 +49921,7 @@ function BW(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = uM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = lM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -49935,7 +49935,7 @@ function BW(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: On[e] || o.get("state") || "",
- ...Gj(o.get("sort"), o.get("dir"), s, c),
+ ...Wj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? rr() : i.seed || rr()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -50222,7 +50222,7 @@ function vye({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(wf, { children: [kf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(Lve, {})
+ element: /* @__PURE__ */ (0, I.jsx)(Ive, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(Sf, {
path: "*",
element: null
@@ -50238,8 +50238,8 @@ function yye({ children: e, actions: t = null, background: n, processing: r = !1
/* @__PURE__ */ (0, I.jsx)(JW, {}),
r && t ? /* @__PURE__ */ (0, I.jsx)(Z_e, { toast: t.toast }) : null,
r && t ? /* @__PURE__ */ (0, I.jsx)(tve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Ive, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Mve, { actions: t }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(jve, { actions: t }) : null,
/* @__PURE__ */ (0, I.jsx)(vye, { children: e })
] })
})] });
@@ -50917,7 +50917,7 @@ function uG() {
}
// src/react/components/icon-swap.tsx
function dG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = TC();
+ let { isFocusVisible: i } = jC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -52041,7 +52041,7 @@ function sK({ item: e, actions: t }) {
}) : null] });
}
function cK(e, t, n) {
- return t === "short" ? rK : kM(n);
+ return t === "short" ? rK : OM(n);
}
function lK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = ko(e), s = i[0] || "", c = mo(e);
@@ -56832,7 +56832,7 @@ function Vbe(e, t, n = NK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || v() ? _(a, !0, n) : p.current = uS(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = gS(0, 1, {
duration: .42,
ease: [
.22,
@@ -56973,14 +56973,14 @@ function Wbe(e, t, n) {
}
// src/react/video-wall/wall-controls.tsx
function Gbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = $x(), x = Wbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+ let b = aS(), x = Wbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(bn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(dS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(_S.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57176,14 +57176,14 @@ function qbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? KP(e.part_label) : "",
+ e.part_label ? GP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
pic: /* @__PURE__ */ (0, I.jsx)(iW, { artwork: wo(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? KP(e.part_label) : "",
+ e.part_label ? GP(e.part_label) : "",
qn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57248,20 +57248,20 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Pt({
- queryKey: TP(M || {
+ queryKey: wP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => PP(M, {
+ queryFn: ({ signal: e }) => NP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === LP(N, O || w?.id || null)) || w, P = Vbe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === IP(N, O || w?.id || null)) || w, P = Vbe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = $x(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = aS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57366,7 +57366,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ve = () => {
- let e = RP(N || null, oe || 0);
+ let e = LP(N || null, oe || 0);
e && (k(e.id), Be(e));
};
(0, F.useEffect)(() => {
@@ -57517,7 +57517,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? KP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? GP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57717,7 +57717,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(dS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(_S.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -57797,7 +57797,7 @@ function Ybe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(dS.span, {
+ /* @__PURE__ */ (0, I.jsx)(_S.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58534,7 +58534,7 @@ function oq(e) {
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
var fxe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = nw();
+ var t = A(), n = cw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -60849,8 +60849,8 @@ function sY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
}
// src/react/catalog-grid/catalog-table-controls.tsx
function LCe({ item: e, actions: t }) {
- let { rating: n } = e, r = EH(), i = (0, F.useRef)(0), a = SP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- yP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+ let { rating: n } = e, r = EH(), i = (0, F.useRef)(0), a = xP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ vP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61067,7 +61067,7 @@ var RCe = Vq({
}
], gY = /* @__PURE__ */ new Map();
function BCe(e) {
- let t = ICe(), n = eK(), r = hP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+ let t = ICe(), n = eK(), r = mP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
}), [a, o] = (0, F.useState)(() => gY.get(i) || {
@@ -61523,7 +61523,7 @@ function UCe({ item: e, props: t }) {
function _Y(e) {
let t = lG();
if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(GCe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${hP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${mP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(BCe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
return /* @__PURE__ */ (0, I.jsx)(KCe, { ...e }, r);
@@ -61572,7 +61572,7 @@ function GCe(e) {
});
}
function KCe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Cue(e) : Sue(e), [s] = (0, F.useState)(() => e.wall ? gP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? gP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? wue(e) : Cue(e), [s] = (0, F.useState)(() => e.wall ? hP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? hP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61598,7 +61598,7 @@ function KCe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Tue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Eue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61654,7 +61654,7 @@ function KCe(e) {
onOpen: a ? w : C
}, i.item.id), O = () => {
if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Ybe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${hP(e.filters || {}, !!e.excludeVertical)}`,
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${mP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61694,7 +61694,7 @@ function KCe(e) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Oue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(JCe, {
+ children: kue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(JCe, {
cut: t.strip,
props: e,
onOpen: T
@@ -61787,12 +61787,12 @@ function yY({ entity: e, load: t, enabled: n, children: r }) {
}) : null] });
}
function qCe(e, t, n, r, i) {
- let a = ["catalog-short-layout", hP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+ let a = ["catalog-short-layout", mP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && _P(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && gP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -61818,7 +61818,7 @@ function qCe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Due(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Oue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -61832,9 +61832,9 @@ function qCe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Eue(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Due(n.length - t, h, l);
if (!g.length) return;
- let _ = _P(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = gP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -61894,7 +61894,7 @@ function YCe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = jo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => vP(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => _P(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), bY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = bY(e, t, !1);
return /* @__PURE__ */ (0, I.jsx)(hK, {
@@ -62501,7 +62501,7 @@ function QTe(e, t, n) {
})]);
}
async function $Te(e, t, n) {
- let r = new URLSearchParams({ limit: String(uM().value.feedLimit) });
+ let r = new URLSearchParams({ limit: String(lM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
return n && o.length && await QTe(s, XTe, ZTe), {
@@ -67532,7 +67532,7 @@ function ZQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
});
}
function jOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(Aj, {
+ return /* @__PURE__ */ (0, I.jsxs)(kj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
@@ -67911,7 +67911,7 @@ function u$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(Aj, {
+ /* @__PURE__ */ (0, I.jsxs)(kj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -70064,7 +70064,7 @@ var tAe = [
]
];
function nAe({ host: e, spot: t, index: n, glow: r }) {
- let i = Zce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = ZV(), [l, u] = (0, F.useState)("all");
+ let i = Qce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = ZV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70077,7 +70077,7 @@ function nAe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = nM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
+ r[t].color = tM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70102,7 +70102,7 @@ function nAe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70114,7 +70114,7 @@ function nAe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: ele.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: tle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70128,7 +70128,7 @@ function nAe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: tle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: nle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70146,7 +70146,7 @@ function nAe({ host: e, spot: t, index: n, glow: r }) {
});
}
function rAe({ host: e }) {
- let t = e.store.value.homeGlow, n = Yj(t.preset);
+ let t = e.store.value.homeGlow, n = Jj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70165,10 +70165,10 @@ function rAe({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: Qce(t.preset)
+ children: $ce(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(KM, {
+ /* @__PURE__ */ (0, I.jsx)(GM, {
store: e.store,
label: "光晕配色"
}),
@@ -70200,7 +70200,7 @@ function rAe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = iM(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = rM(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70219,7 +70219,7 @@ function rAe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Kj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(nAe, {
+ children: Gj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(nAe, {
host: e,
spot: n,
index: r,
@@ -70286,7 +70286,7 @@ function d1(e, t) {
}
function f1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
let a = iAe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Fj(Number(localStorage.getItem(u1(e))), o, s, n && n > 0 ? n : l);
+ d.current ||= Pj(Number(localStorage.getItem(u1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -70431,9 +70431,9 @@ function oAe({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(YF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(JF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70447,7 +70447,7 @@ function oAe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70457,7 +70457,7 @@ function oAe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70469,7 +70469,7 @@ function oAe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "eye-off" })
})
]
})]
@@ -70489,13 +70489,13 @@ function oAe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(YF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(JF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -70513,7 +70513,7 @@ function oAe({ host: e }) {
onClick: () => {
s(h1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
}, h1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
@@ -70725,7 +70725,7 @@ function bAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(YF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Ade, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(JF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(jde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -70736,9 +70736,9 @@ function bAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(JF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-right" })
]
})
})
@@ -70755,7 +70755,7 @@ function E1({ index: e, tab: t, children: n, cards: r = !1 }) {
hidden: e !== t,
children: [
/* @__PURE__ */ (0, I.jsx)("h3", { children: g1[e][0] }),
- /* @__PURE__ */ (0, I.jsx)(kve, { chapter: [
+ /* @__PURE__ */ (0, I.jsx)(Ove, { chapter: [
"appearance",
"playback",
"jav-settings",
@@ -71094,7 +71094,7 @@ function CAe({ host: e, tab: t, epoch: n }) {
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Fj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Pj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71154,7 +71154,7 @@ function wAe({ host: e, tab: t, epoch: n }) {
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Fj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Pj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
@@ -71283,7 +71283,7 @@ function OAe({ host: e, epoch: t }) {
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Fj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Pj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@ -71551,7 +71551,7 @@ function IAe({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(YF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, I.jsx)(JF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}, t || k1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -71750,7 +71750,7 @@ function VAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -71772,7 +71772,7 @@ function VAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
}
var L1 = (0, F.createContext)(() => {});
function HAe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(YF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(JF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -71851,7 +71851,7 @@ function UAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
}) : null] });
}
function z1({ rows: e, host: t, selected: n, badges: r }) {
@@ -72370,10 +72370,10 @@ function B0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function V0(e, t = xM()) {
+function V0(e, t = bM()) {
if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${R0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${Sje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${R0("80%")}${R0("60%")}${R0("40%")}</div></div>`).join("")}</div>`;
- let n = kM({
- ...OM({
+ let n = OM({
+ ...DM({
active: !0,
home: !1,
portrait: !1
@@ -72423,14 +72423,14 @@ function Tje() {
${j0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: xM(),
- options: gM
+ value: bM(),
+ options: hM
}, { folders: !1 })}
</div>
</div>`;
}
function Eje() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${xM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${bM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
<div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${B0()}</div></div>
@@ -73470,7 +73470,7 @@ function CMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? Iue(_, t, WP()) : {
+ let w = p ? Lue(_, t, UP()) : {
recent: [],
results: [],
create: ""
@@ -73632,7 +73632,7 @@ function wMe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && GP(s);
+ o === "add" && WP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -74294,8 +74294,8 @@ function FMe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Pt({
- queryKey: eye(r),
- queryFn: ({ signal: e }) => rye(r, e)
+ queryKey: $ve(r),
+ queryFn: ({ signal: e }) => nye(r, e)
}).data?.want ?? null, g = Ft({
mutationFn: async (e) => (e ? await _W([e.id]) : await gW({ follow: r }), !e),
onSuccess: (e) => {
@@ -74798,12 +74798,12 @@ var a4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
}), s4 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
function GMe(e) {
let { queue: t, actions: n } = e, r = Pt({
- queryKey: t ? TP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => PP(t, e.helpers, n),
+ queryKey: t ? wP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => NP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? LP(i, e.id) : t ? null : e.id, o = Pt({
- queryKey: wP(a ?? 0),
- queryFn: ({ signal: e }) => NP(a, e),
+ }), i = t && r.data || null, a = i ? IP(i, e.id) : t ? null : e.id, o = Pt({
+ queryKey: CP(a ?? 0),
+ queryFn: ({ signal: e }) => MP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -74828,7 +74828,7 @@ function GMe(e) {
}
return /* @__PURE__ */ (0, I.jsx)(KMe, {
...e,
- item: Nue(o.data, i),
+ item: Pue(o.data, i),
queue: i
}, o.data.id);
}
@@ -74846,13 +74846,13 @@ function KMe(e) {
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(EP, {
+ n?.kind === "playlist" && V(TP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = iP() ? "" : Uue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = RP(n, t.id);
+ let s = rP() ? "" : Wue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = LP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
@@ -75060,7 +75060,7 @@ function JMe({ item: e, badge: t, helpers: n, actions: r }) {
});
}
function YMe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = zue(e), a = (0, F.useRef)(null), o = ZMe(e, t, r), s = (0, F.useRef)(o);
+ let i = Bue(e), a = (0, F.useRef)(null), o = ZMe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -75096,10 +75096,10 @@ function YMe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${Lue[i.edition_label] || "censored"}`,
+ className: `javedition ${Rue[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && IP(i);
+ }) : null, s = e.kind === "playlist" && FP(i);
return /* @__PURE__ */ (0, I.jsxs)(FK, {
current: i.id === t,
"data-queue-item": i.id,
@@ -75139,14 +75139,14 @@ function YMe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? KP(i.part_label) : jo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? GP(i.part_label) : jo(i, n.tagLabel)
})]
}, i.id);
})
});
}
function XMe(e, t) {
- let n = Ft({ mutationFn: (t) => V(EP, {
+ let n = Ft({ mutationFn: (t) => V(TP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75160,10 +75160,10 @@ function XMe(e, t) {
});
}
function ZMe(e, t, n) {
- let r = TP({
+ let r = wP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, FP(e)), e), a = (t) => V(EP, {
+ }), i = (e) => (H.setQueryData(r, PP(e)), e), a = (t) => V(TP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ft({
@@ -75179,8 +75179,8 @@ function ZMe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Vue(s, t, r, c);
- if (Hue(l, s)) return;
+ let l = Hue(s, t, r, c);
+ if (Uue(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75295,7 +75295,7 @@ function QMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
/* @__PURE__ */ (0, I.jsx)(KK, {
assetIds: GK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: wP(e.id) });
+ H.invalidateQueries({ queryKey: CP(e.id) });
}
}),
/* @__PURE__ */ (0, I.jsx)(iNe, { item: e }),
@@ -75417,7 +75417,7 @@ function QMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
});
}
function $Me({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = Y2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Bue(e, t);
+ let { text: a, expanded: o, foldable: s, toggle: c } = Y2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Vue(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75454,9 +75454,9 @@ function $Me({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: wP(e.id),
+ queryKey: CP(e.id),
exact: !0
- }), bP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), yP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
@@ -75504,13 +75504,13 @@ function eNe({ id: e, actions: t, onStatus: n }) {
})] });
}
function tNe({ item: e, write: t }) {
- let n = SP(e.rating);
+ let n = xP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": xP(e.rating),
+ "data-value": bP(e.rating),
children: [/* @__PURE__ */ (0, I.jsx)(sY, {
value: n,
onRate: (e) => t.rate(e),
@@ -75525,12 +75525,12 @@ function tNe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: kue(e.rating)
+ children: Aue(e.rating)
})]
});
}
function nNe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => Pue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+ let n = (0, F.useMemo)(() => Fue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
return /* @__PURE__ */ (0, I.jsx)(q2, {
kind: e,
@@ -75606,7 +75606,7 @@ function rNe({ item: e, write: t, helpers: n, actions: r }) {
"data-item-tags": "",
children: /* @__PURE__ */ (0, I.jsx)(z2, {
id: "detailTags",
- tags: Fue(e, n),
+ tags: Iue(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -75618,7 +75618,7 @@ function rNe({ item: e, write: t, helpers: n, actions: r }) {
});
}
function iNe({ item: e }) {
- let t = Wue(e);
+ let t = Gue(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75693,8 +75693,8 @@ function aNe({ item: e, open: t, write: n }) {
}
function oNe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({
- queryKey: Aue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Mue(t.id, n), e)).items || []
+ queryKey: jue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Nue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, I.jsx)(P2, {
wireDrag: r.wireDrag,
@@ -75721,7 +75721,7 @@ function oNe(e) {
});
}
function sNe(e, t, n) {
- let r = e.id, i = wP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+ let r = e.id, i = CP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -75737,7 +75737,7 @@ function sNe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return yP(r, n), t;
+ return vP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -75752,7 +75752,7 @@ function sNe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(DP, t === void 0 ? { kind: e } : {
+ let n = await m(EP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -75772,21 +75772,21 @@ function sNe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = CP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${SP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = SP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${xP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(qP(e, r), { undo: async () => {
+ t.toast(KP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(kP, {});
+ let e = await m(OP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(kP, {})).watch_later });
+ p({ watch_later: (await m(OP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -75796,9 +75796,9 @@ function sNe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(AP, { wanted: !e.wanted });
+ }), r = await m(kP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(AP, e));
+ n(await m(kP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -75812,7 +75812,7 @@ function sNe(e, t, n) {
});
u("保存中…");
try {
- o(await m(jP, {
+ o(await m(AP, {
liked: a,
reason: i
}));
@@ -75822,7 +75822,7 @@ function sNe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(jP, r));
+ o(await m(AP, r));
} });
});
},
@@ -75831,30 +75831,30 @@ function sNe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => VP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(OP, {
+ p((t) => BP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(DP, {
operation: "add",
tag: e.k
- }), p((t) => HP(t, e));
+ }), p((t) => VP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(OP, {
+ let e = await m(DP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- BP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => HP(e, {
+ zP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => VP(e, {
k: i,
cat: "general"
- })), GP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(OP, {
+ })), WP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(DP, {
operation: "remove",
tag: i
- }), p((e) => VP(e, i));
+ }), p((e) => BP(e, i));
} }));
});
}
@@ -75978,7 +75978,7 @@ function v4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && nye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && tye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76522,7 +76522,7 @@ function xNe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), gue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), _ue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
@@ -76707,15 +76707,15 @@ function CNe({ item: e, actions: t, readOnly: n }) {
// src/react/stage/stage-player.ts
var T4 = null, E4 = null, D4 = null, O4 = null, k4 = null, A4 = !1, j4 = 0, M4 = null, N4 = () => !1, P4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
function wNe(e, t) {
- T4 = e, N4 = () => t.isOpen(), M4 = () => t.requestClose(), Mle({
+ T4 = e, N4 = () => t.isOpen(), M4 = () => t.requestClose(), Nle({
...e.player,
stage: () => document.getElementById("stage")
- }), Nle({
+ }), Ple({
inMiniplayer: (e) => E4?.player === e,
kind: (e) => E4?.player === e ? E4.kind : D4?.kind ?? O4?.kind ?? "item",
expand: () => e3(),
toMiniplayer: () => t3()
- }), F4 || (F4 = !0, addEventListener("pagehide", () => $N()));
+ }), F4 || (F4 = !0, addEventListener("pagehide", () => QN()));
}
var F4 = !1;
function I4() {
@@ -76740,7 +76740,7 @@ function R4(e, t) {
D4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = fP(s, {
+ let c = dP(s, {
kind: n,
item: r,
media: i,
@@ -76753,7 +76753,7 @@ function R4(e, t) {
});
return () => {
let e = !!o.player && E4?.player === o.player;
- D4 === o && (D4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), $N());
+ D4 === o && (D4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), QN());
};
}
async function ENe(e, t, n) {
@@ -76782,7 +76782,7 @@ async function ENe(e, t, n) {
}
function DNe(e, t) {
let { player: n } = t;
- Z4(t), E4 = null, Q4(), n.el().classList.remove("vjs-peach-mini"), uP(e), e.append(n.el()), nN(n);
+ Z4(t), E4 = null, Q4(), n.el().classList.remove("vjs-peach-mini"), lP(e), e.append(n.el()), tN(n);
let r = {
player: n,
kind: t.kind,
@@ -76791,9 +76791,9 @@ function DNe(e, t) {
key: t.key
};
D4 = r;
- let i = dP(n, e);
- return rN(n), () => {
- D4 === r && (D4 = null), i(), E4?.player !== n && (tN() === n && nN(null), WN(n), $N());
+ let i = uP(n, e);
+ return nN(n), () => {
+ D4 === r && (D4 = null), i(), E4?.player !== n && (eN() === n && tN(null), UN(n), QN());
};
}
var z4 = () => {
@@ -76903,13 +76903,13 @@ function jNe(e, t) {
off: [],
pending: !1
};
- E4 = n, j4++, e.player.el().classList.add("vjs-peach-mini"), k4.frame.prepend(e.player.el()), W4(t), X4(n), ANe(), rN(e.player);
+ E4 = n, j4++, e.player.el().classList.add("vjs-peach-mini"), k4.frame.prepend(e.player.el()), W4(t), X4(n), ANe(), nN(e.player);
}
function $4() {
let e = E4;
e && Z4(e), E4 = null, j4++;
let t = e?.player ?? null;
- t && tN() === t && nN(null), WN(t), t && $N(), k4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), $M(), Q4();
+ t && eN() === t && tN(null), UN(t), t && QN(), k4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), QM(), Q4();
}
function e3() {
if (!U4() || !E4) return;
@@ -76941,7 +76941,7 @@ async function NNe(e) {
return;
}
let r = E4;
- Z4(r), tN() === r.player && nN(null), WN(r.player), $N(), k4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ Z4(r), eN() === r.player && tN(null), UN(r.player), QN(), k4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", k4.frame.prepend(i);
let a = {
@@ -76950,14 +76950,14 @@ async function NNe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- W4(a), fP(i, {
+ W4(a), dP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== j4) {
- r && tN() === r && nN(null), WN(r);
+ r && eN() === r && tN(null), UN(r);
return;
}
if (!r) {
@@ -77238,7 +77238,7 @@ function HNe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(OD, {
+ children: /* @__PURE__ */ (0, I.jsx)(kD, {
getContainer: () => r2(t.current),
children: i
})
@@ -77369,7 +77369,7 @@ async function WNe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? zP(i.props, r.signal) : i.kind === "jav" ? $2(i.props, r.signal) : l2(i.props, r.signal);
+ let a = i.kind === "item" ? RP(i.props, r.signal) : i.kind === "jav" ? $2(i.props, r.signal) : l2(i.props, r.signal);
if (n !== u3 || s3?.request !== e) {
await a.catch(() => {});
return;
@@ -77402,10 +77402,10 @@ async function WNe(e) {
function GNe(e) {
if (e.kind === "jav") return !!H.getQueryData(Z2(e.props.code));
if (e.kind === "follow") return !!H.getQueryData(o2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(TP(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(wP(t)) : null;
if (t && !r) return !1;
- let i = r ? LP(r, n) : n;
- return i != null && !!H.getQueryData(wP(i));
+ let i = r ? IP(r, n) : n;
+ return i != null && !!H.getQueryData(CP(i));
}
async function KNe(e, t) {
let n = ++u3;
@@ -77414,12 +77414,12 @@ async function KNe(e, t) {
d3 = r, p3 = !1;
let i = S3(e);
try {
- i.kind === "item" ? await zP(i.props, r.signal) : i.kind === "jav" ? await $2(i.props, r.signal) : await l2(i.props, r.signal);
+ i.kind === "item" ? await RP(i.props, r.signal) : i.kind === "jav" ? await $2(i.props, r.signal) : await l2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== u3 || !s3 || C3(e.kind) !== t) return;
- e.kind === "jav" ? $4() : V4(e.kind, e.id ?? NaN), Al(t), $M(), s3 = {
+ e.kind === "jav" ? $4() : V4(e.kind, e.id ?? NaN), Al(t), QM(), s3 = {
...s3,
request: e,
content: i,
@@ -77443,7 +77443,7 @@ function qNe() {
function w3({ miniplayer: e = !0 } = {}) {
if (u3++, d3?.abort(), d3 = null, B4(e), !s3) return;
let t = m3();
- t && Al(t), $M(), a2(null), t?.open && t.close(), s3 = null, f3 = !1, p3 = !1, g3(), L4(null), document.body.removeAttribute("data-detail-open");
+ t && Al(t), QM(), a2(null), t?.open && t.close(), s3 = null, f3 = !1, p3 = !1, g3(), L4(null), document.body.removeAttribute("data-detail-open");
let n = c3;
c3 = null;
let r = () => {
@@ -77492,7 +77492,7 @@ var XNe = {
activeVideo: () => kNe(),
mountWallPlayer: ENe,
toggleTheater: () => {
- s3 && jN(!h3().player.settings().theaterMode);
+ s3 && AN(!h3().player.settings().theaterMode);
},
toggleMiniplayer: () => t3(),
closeMiniplayer: () => $4(),
@@ -78295,7 +78295,7 @@ function l6(e, t, n = {}) {
async function gFe(e, t, n, r) {
let i = c6();
if (!i) return;
- let a = `/${t}`, o = a6(t, n), s = i6(uM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ let a = `/${t}`, o = a6(t, n), s = i6(lM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
c || (e.surfaceChanged("index", a), s6(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {
...o,
layout: s,
@@ -78520,7 +78520,7 @@ function NFe() {
return /* @__PURE__ */ (0, I.jsx)(MFe, {}, QW());
}
// src/react/router/pages/managed.tsx
-var PFe = () => uu > 0, m6 = () => (0, F.useSyncExternalStore)(xu, PFe), h6 = () => uM().value.followLayout === "table" ? "table" : "default", g6 = () => new URLSearchParams(window.location.search);
+var PFe = () => uu > 0, m6 = () => (0, F.useSyncExternalStore)(xu, PFe), h6 = () => lM().value.followLayout === "table" ? "table" : "default", g6 = () => new URLSearchParams(window.location.search);
function _6(e) {
return wn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (Tn(e)) return null;
@@ -78563,7 +78563,7 @@ async function FFe(e, t) {
if (e === "/subscriptions") {
let e = KZ("?" + g6().toString()), n = await _6(t);
if (!t.live) return null;
- let r = uM().value;
+ let r = lM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
@@ -78964,11 +78964,11 @@ var I6 = (e) => ({
}, J6 = (e) => Object.hasOwn(q6, e), Y6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Jce, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Yce, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Ale, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(jle, {})
},
"manage-header": {
prefetch: async () => {},
@@ -78976,7 +78976,7 @@ var I6 = (e) => ({
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(wde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Tde, {})
},
"settings-panel": {
prefetch: async () => {},
@@ -79050,7 +79050,7 @@ function s8(e) {
var c8 = () => o8, l8 = null, u8 = null;
function ZFe(e) {
return l8 ??= (async () => {
- let t = Cde(e), n = document.createElement("div");
+ let t = wde(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await i8("immerse", n, (e) => (document.body.append(e), e)), u8 = t, t;
})(), l8;
}
@@ -79078,14 +79078,14 @@ function eIe(e) {
var b8 = () => y8, x8 = null, S8 = null;
function tIe(e) {
return x8 ??= (async () => {
- let t = qce(e);
+ let t = Jce(e);
return await i8("batch-dock", e.root), S8 = t, t;
})(), x8;
}
var C8 = () => S8, w8 = null;
function nIe(e) {
return w8 ??= (async () => {
- kle(e), await i8("glow-picker", e.root);
+ Ale(e), await i8("glow-picker", e.root);
})(), w8;
}
function T8(e, t, n, r) {
@@ -79167,7 +79167,7 @@ var iIe = [
"folder_recursive"
];
function D8(e, t, n, r = n.defaultSort) {
- return Gj(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return Wj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
function aIe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = An(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
@@ -79202,7 +79202,7 @@ function sIe(e) {
let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();
for (let t of iIe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Hj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Vj(e.sort ?? "") || n.set(t, r);
}
return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
@@ -79222,7 +79222,7 @@ function cIe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Wj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Uj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79606,12 +79606,12 @@ function W8(e, t) {
for (let e of GX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Gj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Wj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function G8(e) {
let t = new URLSearchParams();
- for (let n of GX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Hj(e.sort || "") || t.set(n, e[n]);
+ for (let n of GX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Vj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function K8(e) {
@@ -79707,7 +79707,7 @@ function TIe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Uj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Hj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -79843,7 +79843,7 @@ function AIe(e) {
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${yM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${vM}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
@@ -79890,7 +79890,7 @@ function NIe(e, t) {
});
}
function e5(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${yM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${vM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
return NIe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(AIe).join("")}${r}</div>`;
}
function t5(e) {
@@ -79929,7 +79929,7 @@ function IIe([e]) {
});
}
function LIe() {
- J8.FEED_SKELETON_CARDS = 8, J8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${yM}"></div>
+ J8.FEED_SKELETON_CARDS = 8, J8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${vM}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
<div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(J8.FEED_SKELETON_CARDS)}</div>`, J8.entityShapes = null, J8.entityShapesComplete = !1, J8.hasEntityShape = (e, t) => J8.entityShapesComplete || !!J8.entityShapes?.has(`${e}/${Hn(t)}`), J8.hasEntityPart = (e, t, n) => !!t && !!J8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), J8.feedNewSkeletonSection = () => `<section class="feednew">${J8.feedNewSkeletonHtml()}</section>`, J8.COSTAR_SKELETON_PEOPLE = 12, J8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(J8.COSTAR_SKELETON_PEOPLE)}</div></div>`, J8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, J8.feedRevision = 0, J8.feedNewHelpers = {
feedRowHtml: e5,
@@ -79999,13 +79999,13 @@ function c5() {
}
function l5(e, t, n = i7()) {
return ALe(n).map(([n, r]) => {
- let i = e === n, a = Uj(n, e, t);
+ let i = e === n, a = Hj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Vj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Vj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Bj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Bj(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -80026,7 +80026,7 @@ function f5() {
Y.photos.sync();
}
function p5() {
- d5() ? Sle(TM()) : RM();
+ d5() ? Cle(wM()) : LM();
}
function zIe(e) {
Y.photos.setSize(e);
@@ -80134,12 +80134,12 @@ function _5(e, t) {
let n = ["performer", "studio"].includes(e) && J8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : j0(l5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: xM(),
- options: gM
+ value: bM(),
+ options: hM
} : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${k0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${k0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${k0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = RIe(e, r, e === "agency" ? rc({
kind: "performers",
layout: N5.peopleIndexLayout()
- }) : ZJ("正在读取作品", kM(OM({
+ }) : ZJ("正在读取作品", OM(DM({
active: n,
home: !1,
portrait: !1
@@ -80253,12 +80253,12 @@ function KIe() {
preferences: () => ({
revision: Y.entityPageRevision,
feedRevision: J8.feedRevision,
- photoSize: TM(),
- photoLayout: EM(),
- photoLayouts: vM,
+ photoSize: wM(),
+ photoLayout: TM(),
+ photoLayouts: _M,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: xM(),
- javLayouts: gM,
+ javLayout: bM(),
+ javLayouts: hM,
states: X.VIEW_PILLS,
peopleLayout: N5.peopleIndexLayout(),
layout: K7(),
@@ -80280,8 +80280,8 @@ function KIe() {
U.seed = e, bu();
},
setJavLayout: s7,
- javLayout: xM,
- setPhotoLayout: jM,
+ javLayout: bM,
+ setPhotoLayout: AM,
syncPhotoWalls: f5,
openEntity: b5,
photoViewActive: d5,
@@ -80306,15 +80306,15 @@ function KIe() {
},
photos: {
preferences: () => ({
- size: TM(),
- layout: EM(),
+ size: wM(),
+ layout: TM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: s5,
pushFollow: w9,
syncDensity: p5,
- storeSize: ble
+ storeSize: xle
},
helpers: Y.entityPageHelpers,
actions: {
@@ -80713,8 +80713,8 @@ function sLe() {
junk: aLe,
clear: () => A5(!1, !0)
}, H8.handler(L("#density"), "onclick", () => {
- d5() ? zIe(TM() === "big" ? "small" : "big") : xle();
- }), RM(), Ol({
+ d5() ? zIe(wM() === "big" ? "small" : "big") : Sle();
+ }), LM(), Ol({
selecting: () => Yl,
censored: () => $7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
@@ -80815,7 +80815,7 @@ function R5(e = "正在读取作品") {
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = zve(JU(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Rve(JU(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
count: null,
...O7()
})), L("#loadSentinel").hidden = !0, U7()) return;
@@ -80860,7 +80860,7 @@ function bLe() {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: TM()
+ gridSize: wM()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -81063,7 +81063,7 @@ async function OLe() {
} catch {
return;
}
- e.isActive && dM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && uM(t, (e) => Z.settingsEffects[e]?.());
}
function Q5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
@@ -81086,10 +81086,10 @@ function e7(e = Q5()) {
let t = kLe(e), n = b8();
if (n) n.render(t);
else {
- let e = Ode(t);
+ let e = kde(t);
e !== H5.manageHeaderSkeleton && (H5.manageHeaderSkeleton = e, H5.manageHeaderRoot().innerHTML = e);
}
- let r = GF(t)?.title || "";
+ let r = WF(t)?.title || "";
r !== H5.lastManagePageLabel && (H5.lastManagePageLabel = r, r && Qs(H5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
function t7() {
@@ -81124,20 +81124,20 @@ function i7() {
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || fu : !1;
}
function ALe(e = i7()) {
- let t = Ij.filter(([e]) => e !== "seed");
- return e ? [Lj, ...t] : t;
+ let t = Fj.filter(([e]) => e !== "seed");
+ return e ? [Ij, ...t] : t;
}
function a7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
function o7() {
- return SM(a7());
+ return xM(a7());
}
function jLe(e) {
- vle(e), c7(), L("#grid").hidden || Y7();
+ yle(e), c7(), L("#grid").hidden || Y7();
}
function s7(e) {
- AM(e), c7(), Y7();
+ kM(e), c7(), Y7();
}
function c7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
@@ -81145,7 +81145,7 @@ function c7() {
}), X.catalogFilterProps && T7({ layout: D7() });
}
function MLe(e) {
- yle(e), c7(), Y7();
+ ble(e), c7(), Y7();
}
async function l7() {
M8(), X.mixRelatedCache.clear(), await Promise.all([u7(), N7()]);
@@ -81248,8 +81248,8 @@ function FLe() {
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Zo(e),
navCatalog: H5.NAV_CATALOG,
- themeOptions: ple,
- videoLayouts: gM,
+ themeOptions: mle,
+ videoLayouts: hM,
followInitialRanges: L8,
videoLayout: () => o7(),
setVideoLayout: MLe,
@@ -81259,7 +81259,7 @@ function FLe() {
setHighContrast: rRe,
receipt: (e) => E8.actionReceipt(e),
failure: E8.actionFailure,
- syncRemote: (e) => dM(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => uM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => wn("/healthz").then((e) => (yu({ runtimeConfigurable: !!e.configurable }), cu)).catch(() => null)
@@ -81378,7 +81378,7 @@ async function VLe(e, t) {
}
}
async function HLe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = CP(i, t), o = async (t, r) => {
+ let i = Number(e.rating) || 0, a = SP(i, t), o = async (t, r) => {
let i = (await wn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -81392,7 +81392,7 @@ async function HLe(e, t, n, r) {
};
try {
let e = await o(a, r);
- E8.actionReceipt(e ? `已评 ${SP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ E8.actionReceipt(e ? `已评 ${xP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || E8.actionFailure("评分", e), e;
}
@@ -81510,7 +81510,7 @@ function E7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Uj(e, U.sort, U.dir);
+ let t = Hj(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, bu(), Z7());
},
reshuffle: () => tRe(),
@@ -81529,13 +81529,13 @@ function D7() {
return i7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: xM(),
- options: gM
+ value: bM(),
+ options: hM
} : a7() ? {
name: "home-layout",
label: "首页卡片版式",
value: o7(),
- options: gM
+ options: hM
} : null;
}
function O7() {
@@ -81769,7 +81769,7 @@ function G7(e, t, n, r = {}) {
}
function K7() {
let e = a7();
- return OM({
+ return DM({
active: i7() || e,
home: e,
portrait: U.orient === "竖屏"
@@ -81779,7 +81779,7 @@ function q7(e = "正在读取作品") {
return ZJ(e, J7());
}
function J7() {
- return U ? kM(K7()) : 16 / 9;
+ return U ? OM(K7()) : 16 / 9;
}
function Y7() {
U7() && (Al(L("#grid")), W7({
@@ -82132,26 +82132,26 @@ function oRe() {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = uM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), mM(), gle(), zM(), HM(), UM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = lM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), pM(), _le(), RM(), VM(), HM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
Xt(Z.appSettings.performerNameLanguage), L5.syncPageTitle(location.href), X.barsRendered = "", N7();
},
- theme: () => mM(),
+ theme: () => pM(),
uiSounds: () => {
Xo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Zo("toggle-on");
},
- glowFrame: () => VM(),
+ glowFrame: () => BM(),
glow: () => {
- VM(), HM();
+ BM(), VM();
},
batchSize: () => {
location.pathname === "/" && R7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Wj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Uj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
},
sortDirection: () => {
- U.dir = Wj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
+ U.dir = Uj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -82706,7 +82706,7 @@ function ERe() {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), f5();
},
setPhotoLayout: (e) => {
- jM(e), f5();
+ AM(e), f5();
},
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => E8.actionReceipt(e, { undo: t }),
@@ -82748,8 +82748,8 @@ function DRe() {
preferences: () => ({
selectMode: Yl,
selected: Jl,
- photoSize: TM(),
- photoLayout: EM(),
+ photoSize: wM(),
+ photoLayout: TM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: C9,
@@ -83078,19 +83078,19 @@ function LRe() {
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), mP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), pP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), pP(t);
+ e.preventDefault(), fP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), ON(t, ".vjs-mute-control");
+ e.preventDefault(), DN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), ON(t, ".vjs-fullscreen-control");
+ e.preventDefault(), DN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -83375,13 +83375,13 @@ function VRe() {
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
t.getAttribute("aria-pressed") !== "true" && BRe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), mM();
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), pM();
});
- })), mM();
+ })), pM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = ds(g, v, _);
- e.own(y.dispose), e.own(Ole(v)), nIe({
+ e.own(y.dispose), e.own(kle(v)), nIe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -83838,6 +83838,6 @@ O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
fze($9);
-export { $L as $2ec61d1d4f780267$export$a8a3e93435678ff9, sR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, wz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, OD as $72abaeab4d80592f$export$78efe591171d7d45, gB as $76d00c5a4edb230a$export$76ccd210b9029917, pB as $76d00c5a4edb230a$export$816b5d811295e6bc, yB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, xB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, fB as $76d00c5a4edb230a$export$f850895b287ef28e, mhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, phe as $b4f18e3395fe64d7$export$3e41faf802a29e71, uhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, TB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, _he as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, fE as $ea3928288112382f$export$439d29a4e110a164, Lz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Wz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Gz as $fe21c36db05242bb$export$d7b12c4107be0d61, Zhe as $l, Qj as ACCENTS, Bke as AMANE_BRIDGE_CHECK_URL, q$ as AMANE_BRIDGE_KEY, Vke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, iW as ArtSlot, b2 as BATCH_DELETE_TEXT, J as Button, jL as ButtonLink, nV as Bx, S$ as CLEANUP_ENTRY, x$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, q1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, a1 as CONFIGURATION_KEY, nX as CONFIGURATION_URL, Hke as COOKIE_TEXT_LIMIT, K$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, H$ as CUSTOM_SOURCES_KEY, V$ as CUSTOM_SOURCES_URL, uG as CatalogViewToggle, XV as Checkbox, YV as CheckboxGlyph, BV as ChevronSortDown, rW as Chip, fW as CloudDownloadDialog, WH as CollapseChevron, UH as CollapseRegion, h$ as CollectionSummary, ywe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, VQ as DIAGNOSTICS_KEY, vTe as DIRECTORY_TEMPLATE_ERROR, yW as DISCOVERY_SORTS, oW as DOWNLOADS_KEY, aW as DOWNLOADS_URL, SY as DUPLICATES_KEY, nY as DataTableFooter, QJ as DataTableFrame, tY as DataTableSort, XH as Disclosure, Kve as DownloadsPanel, Hhe as E3, bwe as ENTITY_REVIEW_KINDS, G1 as ENTRY_LINKS_HELP, K1 as ENTRY_LINKS_HINT, JB as Ea, Sge as EmptyFocusButton, SV as EmptyState, JH as ErrorText, R_e as ExternalLink, Br as FEEDS_KEY, uX as FEED_SCHEDULE_KEY, y$ as FIELDSET_FOOT, eFe as FLOW_LABEL_X, e6 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, L8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, WZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, lX as FOLLOW_SCHEDULE_KEY, V_e as Fact, B_e as FactList, YH as FieldLabel, M$ as Fieldset, j$ as FieldsetTitle, dpe as FilterGlass, wL as FilterGlassRows, CL as FilterIconButton, TL as FilterPill, L_e as Footer, $B as Gg, EL as GlassPill, oV as HN, qH as Help, pV as HintText, KPe as IDLE_POLL_MS, cwe as IDLE_REPAIR, yL as IconButton, UQ as IndexSearch, vV as Input, _V as InputBase, P$ as IssueRow, gM as JAV_LAYOUTS, z0 as JAV_RECOMMENDATION_GRID, FX as JUNK_KEY, jW as JavHeader, nwe as KEEP_LABELS, Hr as LAYOUTS, W1 as LIBRARY_FOLDER_HELP, lH as LIBRARY_PROCESSING_KEY, JY as LINKS_KEY, YY as LINK_CHECK_KEY, Wwe as LINK_KINDS, XY as LINK_PRUNE_KEY, tr as LOC, fV as Label, L$ as LibraryProcessingCard, zV as LibraryShortcuts, TH as LinkButton, $he as Lo, RH as LoadingDots, Uhe as M6, Ywe as MEDIA_PROCESSING_KEY, fX as MEDIA_PROCESSING_URL, DY as MEDIA_REPAIR_KEY, EY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, WV as MENU_ITEM, GV as MENU_ITEM_INTERACTIVE, UV as MENU_POPOVER_SURFACE, tge as Ma, kH as MenuDialog, hK as MixCard, yV as ModalFrame, xx as MotionConfigContext, uV as NR, N$ as NameLink, xV as Note, vge as OA, hX as ORGANIZE_KEY, _2 as ORGANIZE_PARAMETER_HINT, g2 as ORGANIZE_SCOPE_HINT, h2 as ORGANIZE_TEXT, vX as ORPHAN_RECORDS_KEY, y2 as ORPHAN_RECORDS_TEXT, ZB as OV, IB as P7, MX as PERFORMER_DELETE_KEY, tye as PHASES, rX as PICK_FOLDER_URL, w$ as PLAIN_STAT_STRIP, z$ as PLAYLISTS_KEY, WAe as POLICY_COLUMNS, KAe as POLICY_COVER_NOTE, GAe as POLICY_MATRIX, U1 as POLICY_SUMMARY, eY as Pagination, I$ as PathLine, cV as Pf, JI as PillTabList, cke as PlainStat, BH as Progress, MY as QUALITY_GOALS_KEY, sV as RB, I0 as RELEASE_COLUMN_VISIBILITY_KEY, F0 as RELEASE_COLUMN_WIDTHS_KEY, bW as RELEASE_SORTS, bje as RELEASE_SORT_COLUMNS, E$ as REPAIR_CARD_TEXT, OY as REPAIR_LIBRARIES_KEY, CX as RESOURCE_APPLY_KEY, SX as RESOURCE_SCAN_KEY, v2 as RESOURCE_SYNC_TEXT, mke as RESULT_PANEL, hke as RESULT_SECTION, vwe as REVIEW_CATEGORIES, PX as REVIEW_COUNTS_KEY, xwe as REVIEW_DECISION_LABELS, FY as REVIEW_KEY, IY as REVIEW_LABELS, RY as REVIEW_QUEUES, zY as REVIEW_QUEUE_LABELS, BG as RetryNote, _ge as Rf, dV as Rk, P_e as Rows, Rke as SCRAPING_CHECK_URL, W$ as SCRAPING_COVER_URL, G$ as SCRAPING_KEY, Lke as SCRAPING_SETTINGS_URL, gU as SEGMENT, hU as SEGMENTED_TRACK, cX as SETTINGS_KEY, iX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, T3 as STATS_KEY, oke as STAT_STRIP, ske as STAT_STRIP_SIX, N_e as Section, gke as SectionHeading, I_e as SectionSkeleton, mU as SegmentedRadioGroup, nve as SegmentedTabList, NG as Segments, $J as Select, eW as Select$1, l1 as SelectField, tW as SelectItem, lY as SelectionActions, Aj as SelectionDock, uY as SelectionPopover, GH as SettingsCard, M_e as SettingsRow, KH as SettingsSectionLabel, PG as Shuffle, G_e as SiteLabel, fG as SortDirectionIcon, FG as SortKeys, wQ as SourceAvatar, eU as SourceLabel, ZH as SourceMark, F_e as Stack, lke as StatCard, F$ as StatusLabel, mge as Su, r4 as Switch, rL as TASKS_KEY, FPe as TASTE_REFRESH_KEY, IPe as TASTE_WINDOWS, dX as THUMBNAIL_JOBS_KEY, LX as TRASH_KEY, Wfe as TRIGGER_LABELS, VJ as Table, dY as TableColumnControls, fY as TableColumnResizer, mY as TableSelectionHeader, u$ as TagManager, z_e as TaskCenterLink, VH as TaskProgress, hV as TextField, mV as TextFieldContext, YB as Un, mW as WANTS_KEY, v4 as WantMagnets, Ug as WithPromise, BB as Wt, qB as Xc, lV as Xf, HB as Xl, VB as Xt, RB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, gge as aB, Ti as addAlias, wi as addSource, gW as addWant, uS as animate, B as apiGet, V as apiSend, uM as appSettingsStore, LTe as applyConfirmText, jX as applyLeftovers, ITe as applyPlanText, zTe as applyText, mM as applyTheme, gy as asNumber, TTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, kq as autoResetPageIndex, go as avatarInner, j3 as bandRows, yTe as baseName, swe as batchOperate, pue as beginPlayerGuidePreview, Fj as boundedPreference, iwe as bulkCloudPreferences, EV as busyProps, hge as cB, uNe as cachedMagnetStates, Lg as calcGeneratorVelocity, Owe as canApprove, fg as cancelFrame, ATe as candidateText, PU as cardClass, kM as cardRatio, YJ as catalogListSkeletonCellHtml, KB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Jwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Wke as checkText, Gi as checkedText, tK as clickedBlank, X5 as closeDrawerAfterNav, XCe as cloudLocations, w0 as cloudProxySkeleton, UC as clsx, ige as cn, av as collectMotionValues, Yq as columnVisibilityFeature, IJ as column_getCanSort, MJ as column_getSortFn, Ewe as commonReviewSources, Of as configurationSection, BPe as configureTasteBrowser, ol as confirmModal, Hfe as controlTask, dq as copyInstancePropertiesWithoutMemos, co as coverUrl, Bq as createColumnHelper, jke as createPlaylist, Yi as credentialDone, b0 as credentialsSkeleton, Lwe as currentReviewRow, q as cx, tV as dZ, Pwe as decisionPayload, Fwe as decisionReceipt, Nwe as defaultChoice, VTe as deletePerformerVideos, Nke as deletePlaylist, x as diagnosticHeaders, H1 as diagnosticsSkeleton, EW as discoveryArtwork, xW as discoveryKey, sye as discoveryScore, a9 as disposeStage, ewe as distinctName, zi as dropSources, pge as du, awe as duplicateVictims, uL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Oq as expandRowModel, AB as f1, yo as facePos, $r as feedIntervalText, X$ as fetchAmaneBridge, _i as fetchCheckJob, o1 as fetchConfiguration, Y$ as fetchCoverJob, gi as fetchCredentials, U$ as fetchCustomSources, NX as fetchDeletePerformers, BTe as fetchDeletePlan, HQ as fetchDiagnostics, SW as fetchDiscoveries, wY as fetchDuplicates, Rfe as fetchEarlier, Qwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Zwe as fetchFollowSchedule, zX as fetchJunkSummary, _H as fetchLibraryProcessing, $Y as fetchLinkCheck, eX as fetchLinkPrune, QY as fetchLinkStats, Xwe as fetchMediaProcessing, kY as fetchMediaRepair, yr as fetchMediaSources, gX as fetchOrganize, dTe as fetchOrganizeExample, yX as fetchOrphanRecords, Ai as fetchPending, B$ as fetchPlaylists, NY as fetchQualityGoals, TW as fetchReleases, AY as fetchRepairLibraries, vi as fetchResolveJob, TX as fetchResourceApply, wX as fetchResourceScan, GY as fetchReview, RX as fetchReviewCounts, pX as fetchSettings, J$ as fetchSources, E3 as fetchStats, yi as fetchSuggestions, aL as fetchTasks, Z3 as fetchTaste, VPe as fetchTasteJob, $we as fetchThumbnailJobs, BX as fetchTrashSummary, hW as fetchWants, wwe as filterReviewRows, $n as firstGrapheme, qK as flexRender, nFe as flowGraph, rFe as flowLabel, tPe as fmtCount, qn as fmtDur, Yn as fmtSize, Lfe as foldByKind, epe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, npe as followupDetail, Ife as followupTally, dg as frame, PB as g4, Qq as getDefaultPaginationState, OM as gridLayout, ci as groupByAuthor, $fe as groupFollowups, HY as groupReviewRows, PTe as hasChanges, EX as hasResourceRoots, sL as hasResultProblems, qPe as historySpan, jB as i2, GPe as importTasteExport, x0 as indexersSkeleton, Ng as interpolate, vW as invalidateWants, lL as isActive, Qr as isBroken, Kr as isLayout, gv as isMotionValue, LY as isReviewCategory, tpe as isRoutine, S0 as javBrowserSkeleton, V0 as javContentSkeleton, xM as javLayout, B0 as javTagSkeleton, KTe as junkBreakdown, Pke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, D3 as known, Rhe as l7, Qfe as latestOfKind, Qn as leadingGraphemes, pPe as lengthRows, Sr as localTime, fo as logoUrl, Fi as lookupFeedActor, FB as m7, eV as mM, En as mapLimit, ki as markItem, M3 as max, dPe as mediumRows, zfe as mergeFinished, N3 as min, Hwe as mirrorText, dwe as missingToolText, TY as mixedCloudPreferences, mL as momentText, dS as motion, sv as motionValue, nn as nameFallback, He as notifyManager, Whe as oe, xTe as organizeOutcome, r2 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, Mwe as pendingGenres, rPe as percentText, mTe as pickOrganizeFolder, C$ as plainStatClass, bTe as planSummary, O3 as playedFor, aPe as playedItemUrl, iL as pollInterval, Js as popCount, Ake as posterUrl, ube as previewLibraryColor, pTe as previewOrganize, mwe as previewUrl, Xfe as problemDestination, fH as processingActive, dL as progressText, $H as providerIcon, qwe as pruneText, OX as purgeCount, ETe as purgeOrphan, rV as pv, fge as qE, H as queryClient, MB as r2, $Pe as radarRows, cPe as radialArc, lPe as radialBarSize, sPe as radialCeiling, oPe as radialSlices, GN as randomId, ZPe as rankDetail, QPe as rankShares, A3 as reachedShare, fL as readableErrorHeadline, cye as recommendationScore, Rwe as recordGenre, OTe as recordsText, Fke as recreatePlaylist, Oke as refreshPlaylists, Cl as relayoutCovers, L0 as releaseColumns, CW as releaseFilters, wW as releaseKey, Bi as reloadFollowManage, Vwe as reloadReview, YAe as rememberShape, gTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, WPe as removeTasteSource, _W as removeWants, Di as renameAliasGroup, Mke as renamePlaylist, Se as replaceEqualDeep, hPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, sq as require_with_selector, iye as resetWants, pr as resolveFollowSort, Bg as resolveStartTime, m_e as restartEffectText, kke as resumeAssetId, Cwe as reviewGroupingOptions, VY as reviewQueueData, BY as reviewQueueOf, GTe as reviewSummary, Twe as reviewWindow, Awe as rowEvidence, WY as rowFieldName, aJ as rowPaginationFeature, EJ as rowSelectionFeature, zJ as rowSortingFeature, UY as rowSubject, jwe as rowTags, kwe as rowTitle, Fhe as s5, Oi as saveCredential, FTe as scanLine, iTe as schedulePollInterval, oye as searchNote, Dwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Bwe as settleReviewRows, $Ce as sharedNamePrefix, Ep as shellNavigate, T8 as showToast, zn as siteMarkUrl, yq as skipFirstRun, KI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, RTe as sourceMeta, zs as spinnerHtml, jg as spring, wV as spriteGlyph, bi as startCheck, Gwe as startLinkCheck, Kwe as startLinkPrune, hTe as startOrganize, xi as startResolve, MTe as startResourceApply, jTe as startResourceScan, UPe as startTasteRefresh, ake as statCardClass, Kfe as statusLabel, uwe as statusLine, Zr as statusText, AM as storeJavLayout, Iwe as submitDecision, hL as summaryItems, Vq as tableFeatures, bq as tableMemo, ui as tableRows, Yfe as taskIssues, Zfe as taskSubject, Q3 as tasteDate, YPe as tasteDimensions, JPe as tasteHours, X3 as tasteKey, RPe as tasteRefetchInterval, zPe as tasteTime, QI as textLang, P0 as tierPlaceholdersHtml, $m as time, Yhe as tl, mi as toggleGroup, $3 as topScores, oge as um, ege as uo, EH as useAction, zZ as useBackgroundJob, lG as useCatalogView, KU as useClientUpdates, dm as useConstant, gL as useEntityNames, SL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, eK as useLibraryTints, Ft as useMutation, ZV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, $x as useReducedMotion, rTe as useRunSchedule, tTe as useSaveFollowSchedule, mX as useSaveSettings, aTe as useSaveThumbnailMode, BJ as useTable, aY as useTablePreferences, kL as useViewGlide, owe as victimBytes, Xhe as vl, aye as wantName, iPe as watchNote, k3 as watchedShare, Dc as wireHorizontalScroller, _Te as withOrganizeJob, ave as writeJavQuery };
+export { $L as $2ec61d1d4f780267$export$a8a3e93435678ff9, sR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, wz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, kD as $72abaeab4d80592f$export$78efe591171d7d45, gB as $76d00c5a4edb230a$export$76ccd210b9029917, pB as $76d00c5a4edb230a$export$816b5d811295e6bc, yB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, xB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, fB as $76d00c5a4edb230a$export$f850895b287ef28e, mhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, phe as $b4f18e3395fe64d7$export$3e41faf802a29e71, uhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, TB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, _he as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, gE as $ea3928288112382f$export$439d29a4e110a164, Lz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Wz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Gz as $fe21c36db05242bb$export$d7b12c4107be0d61, Zhe as $l, Zj as ACCENTS, Bke as AMANE_BRIDGE_CHECK_URL, q$ as AMANE_BRIDGE_KEY, Vke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, iW as ArtSlot, b2 as BATCH_DELETE_TEXT, J as Button, jL as ButtonLink, nV as Bx, S$ as CLEANUP_ENTRY, x$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, q1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, a1 as CONFIGURATION_KEY, nX as CONFIGURATION_URL, Hke as COOKIE_TEXT_LIMIT, K$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, H$ as CUSTOM_SOURCES_KEY, V$ as CUSTOM_SOURCES_URL, uG as CatalogViewToggle, XV as Checkbox, YV as CheckboxGlyph, BV as ChevronSortDown, rW as Chip, fW as CloudDownloadDialog, WH as CollapseChevron, UH as CollapseRegion, h$ as CollectionSummary, ywe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, VQ as DIAGNOSTICS_KEY, vTe as DIRECTORY_TEMPLATE_ERROR, yW as DISCOVERY_SORTS, oW as DOWNLOADS_KEY, aW as DOWNLOADS_URL, SY as DUPLICATES_KEY, nY as DataTableFooter, QJ as DataTableFrame, tY as DataTableSort, XH as Disclosure, Gve as DownloadsPanel, Hhe as E3, bwe as ENTITY_REVIEW_KINDS, G1 as ENTRY_LINKS_HELP, K1 as ENTRY_LINKS_HINT, JB as Ea, Sge as EmptyFocusButton, SV as EmptyState, JH as ErrorText, R_e as ExternalLink, Br as FEEDS_KEY, uX as FEED_SCHEDULE_KEY, y$ as FIELDSET_FOOT, eFe as FLOW_LABEL_X, e6 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, L8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, WZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, lX as FOLLOW_SCHEDULE_KEY, V_e as Fact, B_e as FactList, YH as FieldLabel, M$ as Fieldset, j$ as FieldsetTitle, dpe as FilterGlass, wL as FilterGlassRows, CL as FilterIconButton, TL as FilterPill, L_e as Footer, $B as Gg, EL as GlassPill, oV as HN, qH as Help, pV as HintText, KPe as IDLE_POLL_MS, cwe as IDLE_REPAIR, yL as IconButton, UQ as IndexSearch, vV as Input, _V as InputBase, P$ as IssueRow, hM as JAV_LAYOUTS, z0 as JAV_RECOMMENDATION_GRID, FX as JUNK_KEY, jW as JavHeader, nwe as KEEP_LABELS, Hr as LAYOUTS, W1 as LIBRARY_FOLDER_HELP, lH as LIBRARY_PROCESSING_KEY, JY as LINKS_KEY, YY as LINK_CHECK_KEY, Wwe as LINK_KINDS, XY as LINK_PRUNE_KEY, tr as LOC, fV as Label, L$ as LibraryProcessingCard, zV as LibraryShortcuts, TH as LinkButton, $he as Lo, RH as LoadingDots, Uhe as M6, Ywe as MEDIA_PROCESSING_KEY, fX as MEDIA_PROCESSING_URL, DY as MEDIA_REPAIR_KEY, EY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, WV as MENU_ITEM, GV as MENU_ITEM_INTERACTIVE, UV as MENU_POPOVER_SURFACE, tge as Ma, kH as MenuDialog, hK as MixCard, yV as ModalFrame, Dx as MotionConfigContext, uV as NR, N$ as NameLink, xV as Note, vge as OA, hX as ORGANIZE_KEY, _2 as ORGANIZE_PARAMETER_HINT, g2 as ORGANIZE_SCOPE_HINT, h2 as ORGANIZE_TEXT, vX as ORPHAN_RECORDS_KEY, y2 as ORPHAN_RECORDS_TEXT, ZB as OV, IB as P7, MX as PERFORMER_DELETE_KEY, eye as PHASES, rX as PICK_FOLDER_URL, w$ as PLAIN_STAT_STRIP, z$ as PLAYLISTS_KEY, WAe as POLICY_COLUMNS, KAe as POLICY_COVER_NOTE, GAe as POLICY_MATRIX, U1 as POLICY_SUMMARY, eY as Pagination, I$ as PathLine, cV as Pf, JI as PillTabList, cke as PlainStat, BH as Progress, MY as QUALITY_GOALS_KEY, sV as RB, I0 as RELEASE_COLUMN_VISIBILITY_KEY, F0 as RELEASE_COLUMN_WIDTHS_KEY, bW as RELEASE_SORTS, bje as RELEASE_SORT_COLUMNS, E$ as REPAIR_CARD_TEXT, OY as REPAIR_LIBRARIES_KEY, CX as RESOURCE_APPLY_KEY, SX as RESOURCE_SCAN_KEY, v2 as RESOURCE_SYNC_TEXT, mke as RESULT_PANEL, hke as RESULT_SECTION, vwe as REVIEW_CATEGORIES, PX as REVIEW_COUNTS_KEY, xwe as REVIEW_DECISION_LABELS, FY as REVIEW_KEY, IY as REVIEW_LABELS, RY as REVIEW_QUEUES, zY as REVIEW_QUEUE_LABELS, BG as RetryNote, _ge as Rf, dV as Rk, P_e as Rows, Rke as SCRAPING_CHECK_URL, W$ as SCRAPING_COVER_URL, G$ as SCRAPING_KEY, Lke as SCRAPING_SETTINGS_URL, gU as SEGMENT, hU as SEGMENTED_TRACK, cX as SETTINGS_KEY, iX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, T3 as STATS_KEY, oke as STAT_STRIP, ske as STAT_STRIP_SIX, N_e as Section, gke as SectionHeading, I_e as SectionSkeleton, mU as SegmentedRadioGroup, nve as SegmentedTabList, NG as Segments, $J as Select, eW as Select$1, l1 as SelectField, tW as SelectItem, lY as SelectionActions, kj as SelectionDock, uY as SelectionPopover, GH as SettingsCard, M_e as SettingsRow, KH as SettingsSectionLabel, PG as Shuffle, G_e as SiteLabel, fG as SortDirectionIcon, FG as SortKeys, wQ as SourceAvatar, eU as SourceLabel, ZH as SourceMark, F_e as Stack, lke as StatCard, F$ as StatusLabel, mge as Su, r4 as Switch, rL as TASKS_KEY, FPe as TASTE_REFRESH_KEY, IPe as TASTE_WINDOWS, dX as THUMBNAIL_JOBS_KEY, LX as TRASH_KEY, Wfe as TRIGGER_LABELS, VJ as Table, dY as TableColumnControls, fY as TableColumnResizer, mY as TableSelectionHeader, u$ as TagManager, z_e as TaskCenterLink, VH as TaskProgress, hV as TextField, mV as TextFieldContext, YB as Un, mW as WANTS_KEY, v4 as WantMagnets, Gg as WithPromise, BB as Wt, qB as Xc, lV as Xf, HB as Xl, VB as Xt, RB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, gge as aB, Ti as addAlias, wi as addSource, gW as addWant, gS as animate, B as apiGet, V as apiSend, lM as appSettingsStore, LTe as applyConfirmText, jX as applyLeftovers, ITe as applyPlanText, zTe as applyText, pM as applyTheme, vy as asNumber, TTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, kq as autoResetPageIndex, go as avatarInner, j3 as bandRows, yTe as baseName, swe as batchOperate, mue as beginPlayerGuidePreview, Pj as boundedPreference, iwe as bulkCloudPreferences, EV as busyProps, hge as cB, uNe as cachedMagnetStates, zg as calcGeneratorVelocity, Owe as canApprove, mg as cancelFrame, ATe as candidateText, PU as cardClass, OM as cardRatio, YJ as catalogListSkeletonCellHtml, KB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Jwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Wke as checkText, Gi as checkedText, tK as clickedBlank, X5 as closeDrawerAfterNav, XCe as cloudLocations, w0 as cloudProxySkeleton, YC as clsx, ige as cn, sv as collectMotionValues, Yq as columnVisibilityFeature, IJ as column_getCanSort, MJ as column_getSortFn, Ewe as commonReviewSources, Of as configurationSection, BPe as configureTasteBrowser, ol as confirmModal, Hfe as controlTask, dq as copyInstancePropertiesWithoutMemos, co as coverUrl, Bq as createColumnHelper, jke as createPlaylist, Yi as credentialDone, b0 as credentialsSkeleton, Lwe as currentReviewRow, q as cx, tV as dZ, Pwe as decisionPayload, Fwe as decisionReceipt, Nwe as defaultChoice, VTe as deletePerformerVideos, Nke as deletePlaylist, x as diagnosticHeaders, H1 as diagnosticsSkeleton, EW as discoveryArtwork, xW as discoveryKey, oye as discoveryScore, a9 as disposeStage, ewe as distinctName, zi as dropSources, pge as du, awe as duplicateVictims, uL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Oq as expandRowModel, AB as f1, yo as facePos, $r as feedIntervalText, X$ as fetchAmaneBridge, _i as fetchCheckJob, o1 as fetchConfiguration, Y$ as fetchCoverJob, gi as fetchCredentials, U$ as fetchCustomSources, NX as fetchDeletePerformers, BTe as fetchDeletePlan, HQ as fetchDiagnostics, SW as fetchDiscoveries, wY as fetchDuplicates, Rfe as fetchEarlier, Qwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Zwe as fetchFollowSchedule, zX as fetchJunkSummary, _H as fetchLibraryProcessing, $Y as fetchLinkCheck, eX as fetchLinkPrune, QY as fetchLinkStats, Xwe as fetchMediaProcessing, kY as fetchMediaRepair, yr as fetchMediaSources, gX as fetchOrganize, dTe as fetchOrganizeExample, yX as fetchOrphanRecords, Ai as fetchPending, B$ as fetchPlaylists, NY as fetchQualityGoals, TW as fetchReleases, AY as fetchRepairLibraries, vi as fetchResolveJob, TX as fetchResourceApply, wX as fetchResourceScan, GY as fetchReview, RX as fetchReviewCounts, pX as fetchSettings, J$ as fetchSources, E3 as fetchStats, yi as fetchSuggestions, aL as fetchTasks, Z3 as fetchTaste, VPe as fetchTasteJob, $we as fetchThumbnailJobs, BX as fetchTrashSummary, hW as fetchWants, wwe as filterReviewRows, $n as firstGrapheme, qK as flexRender, nFe as flowGraph, rFe as flowLabel, tPe as fmtCount, qn as fmtDur, Yn as fmtSize, Lfe as foldByKind, epe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, npe as followupDetail, Ife as followupTally, pg as frame, PB as g4, Qq as getDefaultPaginationState, DM as gridLayout, ci as groupByAuthor, $fe as groupFollowups, HY as groupReviewRows, PTe as hasChanges, EX as hasResourceRoots, sL as hasResultProblems, qPe as historySpan, jB as i2, GPe as importTasteExport, x0 as indexersSkeleton, Fg as interpolate, vW as invalidateWants, lL as isActive, Qr as isBroken, Kr as isLayout, vv as isMotionValue, LY as isReviewCategory, tpe as isRoutine, S0 as javBrowserSkeleton, V0 as javContentSkeleton, bM as javLayout, B0 as javTagSkeleton, KTe as junkBreakdown, Pke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, D3 as known, Rhe as l7, Qfe as latestOfKind, Qn as leadingGraphemes, pPe as lengthRows, Sr as localTime, fo as logoUrl, Fi as lookupFeedActor, FB as m7, eV as mM, En as mapLimit, ki as markItem, M3 as max, dPe as mediumRows, zfe as mergeFinished, N3 as min, Hwe as mirrorText, dwe as missingToolText, TY as mixedCloudPreferences, mL as momentText, _S as motion, lv as motionValue, nn as nameFallback, He as notifyManager, Whe as oe, xTe as organizeOutcome, r2 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, Mwe as pendingGenres, rPe as percentText, mTe as pickOrganizeFolder, C$ as plainStatClass, bTe as planSummary, O3 as playedFor, aPe as playedItemUrl, iL as pollInterval, Js as popCount, Ake as posterUrl, ube as previewLibraryColor, pTe as previewOrganize, mwe as previewUrl, Xfe as problemDestination, fH as processingActive, dL as progressText, $H as providerIcon, qwe as pruneText, OX as purgeCount, ETe as purgeOrphan, rV as pv, fge as qE, H as queryClient, MB as r2, $Pe as radarRows, cPe as radialArc, lPe as radialBarSize, sPe as radialCeiling, oPe as radialSlices, WN as randomId, ZPe as rankDetail, QPe as rankShares, A3 as reachedShare, fL as readableErrorHeadline, sye as recommendationScore, Rwe as recordGenre, OTe as recordsText, Fke as recreatePlaylist, Oke as refreshPlaylists, Cl as relayoutCovers, L0 as releaseColumns, CW as releaseFilters, wW as releaseKey, Bi as reloadFollowManage, Vwe as reloadReview, YAe as rememberShape, gTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, WPe as removeTasteSource, _W as removeWants, Di as renameAliasGroup, Mke as renamePlaylist, Se as replaceEqualDeep, hPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, sq as require_with_selector, rye as resetWants, pr as resolveFollowSort, Hg as resolveStartTime, m_e as restartEffectText, kke as resumeAssetId, Cwe as reviewGroupingOptions, VY as reviewQueueData, BY as reviewQueueOf, GTe as reviewSummary, Twe as reviewWindow, Awe as rowEvidence, WY as rowFieldName, aJ as rowPaginationFeature, EJ as rowSelectionFeature, zJ as rowSortingFeature, UY as rowSubject, jwe as rowTags, kwe as rowTitle, Fhe as s5, Oi as saveCredential, FTe as scanLine, iTe as schedulePollInterval, aye as searchNote, Dwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Bwe as settleReviewRows, $Ce as sharedNamePrefix, Ep as shellNavigate, T8 as showToast, zn as siteMarkUrl, yq as skipFirstRun, KI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, RTe as sourceMeta, zs as spinnerHtml, Ng as spring, wV as spriteGlyph, bi as startCheck, Gwe as startLinkCheck, Kwe as startLinkPrune, hTe as startOrganize, xi as startResolve, MTe as startResourceApply, jTe as startResourceScan, UPe as startTasteRefresh, ake as statCardClass, Kfe as statusLabel, uwe as statusLine, Zr as statusText, kM as storeJavLayout, Iwe as submitDecision, hL as summaryItems, Vq as tableFeatures, bq as tableMemo, ui as tableRows, Yfe as taskIssues, Zfe as taskSubject, Q3 as tasteDate, YPe as tasteDimensions, JPe as tasteHours, X3 as tasteKey, RPe as tasteRefetchInterval, zPe as tasteTime, QI as textLang, P0 as tierPlaceholdersHtml, $m as time, Yhe as tl, mi as toggleGroup, $3 as topScores, oge as um, ege as uo, EH as useAction, zZ as useBackgroundJob, lG as useCatalogView, KU as useClientUpdates, dm as useConstant, gL as useEntityNames, SL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, eK as useLibraryTints, Ft as useMutation, ZV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, aS as useReducedMotion, rTe as useRunSchedule, tTe as useSaveFollowSchedule, mX as useSaveSettings, aTe as useSaveThumbnailMode, BJ as useTable, aY as useTablePreferences, kL as useViewGlide, owe as victimBytes, Xhe as vl, iye as wantName, iPe as watchNote, k3 as watchedShare, Dc as wireHorizontalScroller, _Te as withOrganizeJob, cye as writeJavQuery };
-//# debugId=330a9f2b-b1a5-4b2f-aeaf-5af5a5277514
\ No newline at end of file
+//# debugId=b3b86ff3-6517-4da8-98b0-578f179b9494
\ No newline at end of file